/*
Theme Name: Image Color Picker Studio
Theme URI: https://image-color-picker.com/
Author: Image-Color-Picker.com
Author URI: https://image-color-picker.com/
Description: Custom ultra-fast, modern, centered (no-sidebar) WordPress theme for Image-Color-Picker.com. Features a built-in client-side Image Color Picker Studio with precision pixel magnifier loupe, drag-and-drop, clipboard paste, URL loader, auto dominant palette extraction, one-click HEX/RGB/HSL/CMYK copy, color harmonies, and light/dark mode.
Version: 2.0.0
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 7.4
License: GPL v2 or later
Text Domain: image-color-picker
*/

:root {
  --bg-body: #f8fafc;
  --bg-surface: #ffffff;
  --bg-surface-alt: #f1f5f9;
  --bg-surface-hover: #e2e8f0;
  --bg-glass: rgba(255, 255, 255, 0.85);
  --text-main: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --border-color: #e2e8f0;
  --border-strong: #cbd5e1;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --accent-soft: rgba(37, 99, 235, 0.1);
  --success: #10b981;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 4px 12px -2px rgba(15, 23, 42, 0.08), 0 2px 6px -1px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 12px 28px -6px rgba(15, 23, 42, 0.12), 0 4px 10px -2px rgba(15, 23, 42, 0.06);
  --container-max: 1240px;
  --content-narrow: 840px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

[data-theme="dark"] {
  --bg-body: #0b0f19;
  --bg-surface: #111827;
  --bg-surface-alt: #1e293b;
  --bg-surface-hover: #334155;
  --bg-glass: rgba(17, 24, 39, 0.85);
  --text-main: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --border-color: #1e293b;
  --border-strong: #334155;
  --accent: #3b82f6;
  --accent-hover: #60a5fa;
  --accent-soft: rgba(59, 130, 246, 0.15);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 12px -2px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 12px 28px -6px rgba(0, 0, 0, 0.55);
}

/* Base Reset */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-main);
  background-color: var(--bg-body);
  transition: background-color 0.2s ease, color 0.2s ease;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--accent-hover);
}

img, svg, canvas {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Accessibility */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

.screen-reader-text:focus {
  background-color: var(--bg-surface);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  clip: auto !important;
  clip-path: none;
  color: var(--accent);
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  height: auto;
  left: 12px;
  line-height: normal;
  padding: 12px 20px;
  text-decoration: none;
  top: 12px;
  width: auto;
  z-index: 100000;
}

/* Centered Containers (No Sidebar) */
.icp-container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
}

.icp-container-narrow {
  width: 100%;
  max-width: var(--content-narrow);
  margin: 0 auto;
  padding: 0 20px;
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--text-main);
  letter-spacing: -0.02em;
  text-decoration: none;
  flex-shrink: 0;
}

.site-brand:hover {
  color: var(--text-main);
}

.brand-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: linear-gradient(145deg, #ffffff 0%, #e2e8f0 52%, #cbd5e1 100%);
  border: 1px solid #cbd5e1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), var(--shadow-sm);
  position: relative;
  flex-shrink: 0;
}

.brand-icon img {
  width: 20px;
  height: 22px;
  object-fit: contain;
  display: block;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}

.main-nav::-webkit-scrollbar {
  display: none;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
  transition: all 0.15s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-main);
  background: var(--bg-surface-alt);
}

.nav-link.active {
  color: var(--accent);
  background: var(--accent-soft);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.ext-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 999px;
  background: var(--bg-surface-alt);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  transition: all 0.15s ease;
}

.ext-badge:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.theme-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background: var(--bg-surface);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s ease;
}

.theme-toggle-btn:hover {
  color: var(--text-main);
  background: var(--bg-surface-alt);
  border-color: var(--border-strong);
}

[data-theme="dark"] .icon-sun { display: block; }
[data-theme="dark"] .icon-moon { display: none; }
:root:not([data-theme="dark"]) .icon-sun { display: none; }
:root:not([data-theme="dark"]) .icon-moon { display: block; }

/* Language Switcher Dropdown */
.icp-lang-dropdown {
  position: relative;
  display: inline-flex;
}

.icp-lang-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 38px;
  padding: 0 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background: var(--bg-surface);
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.icp-lang-btn:hover,
.icp-lang-dropdown.open .icp-lang-btn {
  color: var(--text-main);
  background: var(--bg-surface-alt);
  border-color: var(--border-strong);
}

.icp-lang-btn .lang-flag-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.lang-flag-svg {
  width: 18px;
  height: 12px;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15);
  display: block;
  flex-shrink: 0;
}

.icp-lang-btn .lang-code-text {
  letter-spacing: 0.5px;
}

.icp-lang-btn .lang-caret {
  transition: transform 0.2s ease;
  color: var(--text-tertiary);
}

.icp-lang-dropdown.open .lang-caret {
  transform: rotate(180deg);
}

.icp-lang-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 175px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md, 8px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  padding: 6px 0;
  z-index: 1050;
  display: none;
}

.icp-lang-dropdown.open .icp-lang-menu {
  display: flex;
  flex-direction: column;
  animation: icpFadeDown 0.15s ease;
}

[data-theme="dark"] .icp-lang-menu {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.lang-menu-header {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-tertiary, #9aa0a6);
  padding: 6px 14px 4px;
}

.lang-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  font-size: 0.85rem;
  color: var(--text-main);
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}

.lang-menu-item:hover {
  background: var(--bg-surface-alt);
  color: var(--accent);
}

.lang-menu-item.active {
  font-weight: 700;
  color: var(--accent);
  background: rgba(26, 115, 232, 0.08);
}

.lang-menu-item .menu-item-flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  line-height: 1;
}

.lang-menu-item .menu-item-flag .lang-flag-svg {
  width: 20px;
  height: 14px;
}

.lang-menu-item .menu-item-name {
  flex: 1;
}

.lang-menu-item .menu-item-check {
  color: var(--accent);
  font-weight: 800;
  font-size: 0.85rem;
}

@keyframes icpFadeDown {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Footer Language Dropup Positioning & Styles */
.footer-lang-col {
  display: inline-flex;
  align-items: center;
}

.site-footer .icp-lang-btn {
  height: 32px;
  padding: 0 10px;
  font-size: 0.78rem;
  border-radius: var(--radius-sm, 6px);
  background: var(--bg-surface-alt);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
}

.site-footer .icp-lang-btn:hover,
.site-footer .icp-lang-dropdown.open .icp-lang-btn {
  background: var(--bg-surface);
  color: var(--text-main);
  border-color: var(--accent);
}

/* Open upwards in footer so it's never cut off */
.site-footer .icp-lang-menu {
  top: auto;
  bottom: calc(100% + 8px);
  right: 0;
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.12);
  animation: icpFadeUp 0.15s ease;
}

[data-theme="dark"] .site-footer .icp-lang-menu {
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.5);
}

@keyframes icpFadeUp {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hero / Compact Intro */
.studio-hero {
  text-align: center;
  padding: 24px 0 16px;
}

.studio-hero h1 {
  margin: 0 0 6px;
  font-size: clamp(1.5rem, 3vw, 2.15rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-main);
}

.studio-hero p {
  margin: 0 auto;
  max-width: 1200px;
  font-size: 0.975rem;
  color: var(--text-secondary);
}

/* Ad Slot Wrapper */
.icp-ad-slot {
  margin: 14px auto;
  text-align: center;
  overflow: hidden;
  border-radius: var(--radius-md);
}

.icp-ad-slot:empty {
  display: none;
}

/* Main Studio Workspace Layout */
.studio-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 20px;
  align-items: start;
  margin-top: 8px;
  margin-bottom: 28px;
}

@media (max-width: 980px) {
  .studio-workspace {
    grid-template-columns: 1fr;
  }
}

/* Card Component */
.studio-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

/* Left Column: Image Canvas Stage */
.stage-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 8px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-surface-alt);
  overflow-x: auto;
  scrollbar-width: none;
}

.stage-toolbar::-webkit-scrollbar {
  display: none;
}

.toolbar-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.stage-toolbar .toolbar-group {
  flex-wrap: nowrap;
  gap: 6px;
  flex-shrink: 0;
}

.stage-toolbar .btn-studio {
  padding: 7px 11px;
  font-size: 0.81rem;
  gap: 6px;
  flex-shrink: 0;
}

.btn-studio {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid var(--border-color);
  background: var(--bg-surface);
  color: var(--text-main);
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.btn-studio:hover {
  background: var(--bg-surface-hover);
  border-color: var(--border-strong);
}

.btn-studio.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}

.btn-studio.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

.btn-studio.btn-icon-only {
  padding: 8px;
  width: 34px;
  height: 34px;
}

/* URL Input Bar (Collapsible) */
.url-loader-bar {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-color);
}

.url-loader-bar.is-open {
  display: flex;
}

.url-loader-input {
  flex: 1;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--bg-surface-alt);
  color: var(--text-main);
  font-size: 0.875rem;
  outline: none;
}

.url-loader-input:focus {
  border-color: var(--accent);
  background: var(--bg-surface);
}

/* Canvas Viewport & Dropzone */
.canvas-stage-wrap {
  position: relative;
  min-height: 380px;
  max-height: 620px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: auto;
  padding: 16px;
  background-color: var(--bg-surface);
  background-image:
    linear-gradient(45deg, var(--bg-surface-alt) 25%, transparent 25%),
    linear-gradient(-45deg, var(--bg-surface-alt) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, var(--bg-surface-alt) 75%),
    linear-gradient(-45deg, transparent 75%, var(--bg-surface-alt) 75%);
  background-size: 20px 20px;
  background-position: 0 0, 0 10px, 10px -10px, -10px 0;
  transition: box-shadow 0.2s ease;
}

.canvas-stage-wrap.is-dragover {
  box-shadow: inset 0 0 0 3px var(--accent);
}

.canvas-stage-wrap.is-dragover::after {
  content: "Drop image here to pick colors";
  position: absolute;
  inset: 12px;
  background: var(--bg-glass);
  backdrop-filter: blur(6px);
  border: 2px dashed var(--accent);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--accent);
  z-index: 20;
}

#icp-canvas {
  cursor: crosshair;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  max-width: 100%;
  height: auto;
  touch-action: none;
  user-select: none;
}

/* Selected Pixel Marker Pin on Canvas */
.canvas-wrapper-inner {
  position: relative;
  display: inline-block;
  line-height: 0;
}

.pixel-pin {
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2.5px solid #ffffff;
  box-shadow: 0 0 0 1.5px rgba(0,0,0,0.6), 0 2px 6px rgba(0,0,0,0.4);
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 10;
  transition: background-color 0.05s linear;
}

/* Precision Magnifier Loupe */
.pixel-loupe {
  position: absolute;
  width: 116px;
  height: 116px;
  border-radius: 50%;
  border: 3px solid #ffffff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(0, 0, 0, 0.2);
  pointer-events: none;
  z-index: 30;
  overflow: hidden;
  display: none;
  transform: translate(-50%, -125%);
  background: #000;
}

.pixel-loupe.is-active {
  display: block;
}

.pixel-loupe canvas {
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
}

.loupe-crosshair {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 12px;
  transform: translate(-50%, -50%);
  border: 1.5px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.8);
  pointer-events: none;
}

.loupe-hex-tag {
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(15, 23, 42, 0.85);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.03em;
  line-height: 1.2;
}

/* Stage Footer: Auto Dominant Palette & Presets */
.stage-footer {
  padding: 14px 16px;
  border-top: 1px solid var(--border-color);
  background: var(--bg-surface);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.palette-bar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.palette-bar-title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.dominant-palette-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 8px;
}

@media (max-width: 520px) {
  .dominant-palette-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.palette-swatch-btn {
  height: 38px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(0, 0, 0, 0.12);
  cursor: pointer;
  position: relative;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
  padding: 0;
}

.palette-swatch-btn:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: var(--shadow-md);
  z-index: 2;
}

.palette-swatch-btn span {
  position: absolute;
  bottom: 3px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  padding: 1px 4px;
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.palette-swatch-btn:hover span {
  opacity: 1;
}

/* Right Column: Color Inspector & Codes */
.inspector-card {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.swatch-comparison {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 10px;
  height: 92px;
}

.swatch-box {
  border-radius: var(--radius-md);
  border: 1px solid rgba(0, 0, 0, 0.12);
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.08);
  transition: background-color 0.08s ease;
}

.swatch-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  align-self: flex-start;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.65);
  color: #ffffff;
  backdrop-filter: blur(4px);
}

.swatch-name {
  font-size: 0.85rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.85);
  color: #0f172a;
  align-self: flex-start;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Code Copy Rows */
.color-codes-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.code-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 12px;
  background: var(--bg-surface-alt);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.code-row:hover {
  border-color: var(--border-strong);
}

.code-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary, #475569);
  min-width: 48px;
}

.code-value {
  font-family: var(--font-mono);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-main);
  flex: 1;
  user-select: all;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.btn-copy-code {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 6px;
  border: 1px solid var(--border-color);
  background: var(--bg-surface);
  color: var(--text-secondary);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-copy-code:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}

.btn-copy-code.copied {
  background: var(--success);
  border-color: var(--success);
  color: #ffffff;
}

/* Picked History Section */
.history-section {
  border-top: 1px solid var(--border-color);
  padding-top: 12px;
}

.section-mini-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.section-mini-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.btn-text-action {
  background: none;
  border: none;
  padding: 0;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
}

.btn-text-action:hover {
  color: var(--accent);
}

.history-swatches {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  min-height: 30px;
}

.history-dot {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  border: 1px solid rgba(0,0,0,0.15);
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
  padding: 0;
}

.history-dot:hover,
.history-dot.active {
  transform: scale(1.14);
  box-shadow: 0 0 0 2px var(--bg-surface), 0 0 0 4px var(--accent);
}

/* Harmonies & Shades Mini Bar */
.harmonies-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
}

.harmony-swatch {
  height: 28px;
  border-radius: 6px;
  border: 1px solid rgba(0,0,0,0.12);
  cursor: pointer;
  padding: 0;
  transition: transform 0.12s ease;
}

.harmony-swatch:hover {
  transform: translateY(-2px);
}

/* Quick Sub-Tools Grid */
.tools-directory-section {
  margin: 36px 0;
}

.section-heading {
  text-align: center;
  margin-bottom: 20px;
}

.section-heading h2 {
  margin: 0 0 6px;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.section-heading p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

@media (max-width: 768px) {
  .tools-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 500px) {
  .tools-grid {
    grid-template-columns: 1fr;
  }
}

.tool-card-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-main);
  box-shadow: var(--shadow-sm);
  transition: all 0.15s ease;
}

.tool-card-link:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  color: var(--text-main);
}

.tool-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-weight: 800;
  font-size: 0.85rem;
  color: #fff;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.tool-card-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tool-card-meta h3 {
  margin: 0 0 2px;
  font-size: 0.95rem;
  font-weight: 700;
}

.tool-card-meta p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* How-To Steps Cards */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 24px 0;
}

@media (max-width: 768px) {
  .steps-grid {
    grid-template-columns: 1fr;
  }
}

.step-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 800;
  font-size: 0.85rem;
  margin-bottom: 10px;
}

.step-card h3 {
  margin: 0 0 6px;
  font-size: 1.05rem;
}

.step-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* Interactive Converter / Sub-tool Box */
.converter-studio {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-md);
  margin: 20px 0 32px;
}

.sliders-grid {
  display: grid;
  grid-template-columns: 1fr 240px;
  gap: 24px;
  align-items: center;
}

@media (max-width: 720px) {
  .sliders-grid {
    grid-template-columns: 1fr;
  }
}

.slider-field {
  margin-bottom: 14px;
}

.slider-field label {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.slider-field input[type="range"] {
  width: 100%;
  accent-color: var(--accent);
  cursor: pointer;
}

/* Article / Page Content Area (Centered, No Sidebar) */
.entry-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: clamp(20px, 4vw, 36px);
  box-shadow: var(--shadow-sm);
  margin: 24px 0 36px;
}

.entry-card-with-media {
  display: block;
}

.entry-card-with-media:has(.entry-media-col) {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 28px;
  align-items: stretch;
}

.entry-media-col {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.entry-featured-img {
  width: 100%;
  height: 100%;
  min-height: 200px;
  max-height: 380px;
  object-fit: cover;
  border-radius: var(--radius-md, 14px);
  border: 1px solid var(--border-color, #e8eaed);
  box-shadow: var(--shadow-sm, 0 2px 8px rgba(0, 0, 0, 0.06));
  display: block;
}

.entry-content {
  display: block;
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-main);
}

.entry-content > *:first-child {
  margin-top: 0 !important;
}

.entry-content > *:last-child {
  margin-bottom: 0 !important;
}

@media (max-width: 768px) {
  .entry-card-with-media:has(.entry-media-col) {
    grid-template-columns: 1fr;
    gap: 18px;
    align-items: start;
  }

  .entry-media-col {
    max-width: 100%;
    height: auto;
    margin: 0;
  }

  .entry-featured-img {
    max-height: 260px;
    aspect-ratio: 16 / 9;
  }
}

/* ==========================================================================
   EDITORIAL SINGLE POST & RELEASE NOTES VIEW
   ========================================================================== */

.single-post-wrap {
  margin: 16px auto 48px;
}

.single-post-header {
  background: var(--bg-surface, #ffffff);
  border: 1px solid var(--border-color, #e8eaed);
  border-radius: 20px;
  padding: clamp(24px, 4vw, 36px);
  margin-bottom: 24px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
}

.single-post-badges {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.single-post-title {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  font-weight: 800;
  color: var(--text-main, #202124);
  line-height: 1.28;
  margin: 0 0 16px;
  letter-spacing: -0.015em;
}

.single-post-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.88rem;
  color: var(--text-muted, #5f6368);
  padding-top: 14px;
  border-top: 1px solid var(--border-color, #e8eaed);
}

.single-post-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.single-post-body-card {
  background: var(--bg-surface, #ffffff);
  border: 1px solid var(--border-color, #e8eaed);
  border-radius: 20px;
  padding: clamp(24px, 5vw, 44px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
  margin-bottom: 32px;
  display: block;
}

.single-post-highlights-box {
  border-radius: 16px;
  padding: 20px 24px;
  margin-bottom: 32px;
  border: 1px solid;
}

.single-post-highlights-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0 0 12px;
}

.single-post-highlights-list {
  margin: 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.single-post-highlights-list li {
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--text-main, #202124);
}

.single-post-content {
  font-size: 1.05rem;
  line-height: 1.82;
  color: var(--text-main, #3c4043);
  display: block;
}

.single-post-content p {
  margin: 0 0 20px;
}

.single-post-content h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-main, #202124);
  margin: 40px 0 16px;
  line-height: 1.3;
  border-bottom: 2px solid var(--border-color, #e8eaed);
  padding-bottom: 8px;
}

.single-post-content h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main, #202124);
  margin: 30px 0 12px;
}

.single-post-content ul,
.single-post-content ol {
  margin: 0 0 24px;
  padding-left: 24px;
}

.single-post-content li {
  margin-bottom: 8px;
  line-height: 1.7;
}

.single-post-content blockquote {
  border-left: 4px solid #2563eb;
  background: var(--bg-surface-alt, #f8f9fa);
  padding: 16px 20px;
  border-radius: 0 12px 12px 0;
  margin: 24px 0;
  font-style: italic;
  color: var(--text-secondary);
}

.single-post-content code {
  font-family: var(--font-mono, monospace);
  background: var(--bg-surface-alt, #f1f3f4);
  padding: 3px 7px;
  border-radius: 6px;
  font-size: 0.9em;
  color: #d93025;
}

.single-post-nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin: 32px 0 44px;
}

.entry-header {
  text-align: center;
  margin-bottom: 24px;
}

.entry-title {
  margin: 0 0 8px;
  font-size: clamp(1.6rem, 3.2vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.025em;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
  color: var(--text-main);
  letter-spacing: -0.015em;
  margin-top: 1.6em;
  margin-bottom: 0.6em;
}

.entry-content p {
  color: var(--text-secondary);
  margin-bottom: 1.1em;
}

/* Legacy Shortcodes Ultimate Fallbacks (Clean Modern Override) */
.su-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 16px 0;
}

.su-column {
  flex: 1 1 280px;
}

.su-note {
  background: var(--bg-surface-alt) !important;
  border: 1px solid var(--border-color) !important;
  border-radius: var(--radius-md) !important;
  padding: 16px !important;
  margin: 12px 0 !important;
}

.su-note-inner {
  background: transparent !important;
  border: none !important;
  color: var(--text-main) !important;
}

/* Toast Notification */
.icp-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #0f172a;
  color: #ffffff;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 9999;
}

.icp-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.toast-swatch {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,0.4);
}

/* Site Footer */
.site-footer {
  border-top: 1px solid var(--border-color);
  background: var(--bg-surface);
  padding: 28px 0;
  margin-top: 48px;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links a {
  color: var(--text-secondary);
  font-weight: 500;
}

.footer-links a:hover {
  color: var(--accent);
}

/* ==========================================
 * MOBILE NAVIGATION BAR & OFF-CANVAS DRAWER
 * ========================================== */

/* Desktop defaults: Hide Mobile Elements */
.mobile-menu-toggle-btn {
  display: none;
}

.icp-mobile-bottom-nav {
  display: none;
}

.icp-drawer-overlay {
  display: none;
}

/* Base Mobile Toggle Button */
.mobile-menu-toggle-btn {
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm, 8px);
  border: 1px solid var(--border-color);
  background: var(--bg-surface);
  color: var(--text-main);
  cursor: pointer;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.mobile-menu-toggle-btn:hover {
  background: var(--bg-surface-alt);
  border-color: var(--border-strong);
  color: var(--accent);
}

/* Mobile Bottom Navigation Bar */
.icp-mobile-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 998;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-color);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  -webkit-user-select: none;
  user-select: none;
}

@supports (backdrop-filter: blur(16px)) or (-webkit-backdrop-filter: blur(16px)) {
  .icp-mobile-bottom-nav {
    background: var(--bg-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
  }
}

[data-theme="dark"] .icp-mobile-bottom-nav {
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.45);
}

.bottom-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-around;
  max-width: 600px;
  margin: 0 auto;
  height: 58px;
  padding: 0 4px;
}

.bottom-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  height: 100%;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.68rem;
  font-weight: 600;
  border: none;
  background: transparent;
  cursor: pointer;
  transition: color 0.15s ease, transform 0.12s ease;
  position: relative;
  border-radius: var(--radius-sm, 6px);
  -webkit-tap-highlight-color: transparent;
}

.bottom-nav-item:active {
  transform: scale(0.94);
}

.bottom-nav-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 24px;
  position: relative;
}

.bottom-nav-icon svg {
  display: block;
  transition: transform 0.15s ease;
}

.bottom-nav-item:hover {
  color: var(--text-main);
}

.bottom-nav-item.active {
  color: var(--accent);
  font-weight: 700;
}

.bottom-nav-item.active .bottom-nav-icon svg {
  transform: translateY(-1px);
}

.bottom-nav-label {
  line-height: 1;
  letter-spacing: -0.01em;
}

/* Off-Canvas Navigation Drawer */
body.icp-drawer-open {
  overflow: hidden !important;
  touch-action: none;
}

.icp-drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  justify-content: flex-end;
}

.icp-drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.icp-drawer-sheet {
  position: relative;
  width: 100%;
  max-width: 360px;
  height: 100%;
  background: var(--bg-surface);
  border-left: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.26s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.25);
  z-index: 2001;
}

[data-theme="dark"] .icp-drawer-sheet {
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.6);
}

.icp-drawer-overlay.is-open .icp-drawer-backdrop {
  opacity: 1;
}

.icp-drawer-overlay.is-open .icp-drawer-sheet {
  transform: translateX(0);
}

/* Drawer Header */
.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-surface-alt);
  flex-shrink: 0;
}

.drawer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-main);
}

.drawer-brand-text strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.2;
}

.drawer-brand-text span {
  display: block;
  font-size: 0.72rem;
  color: var(--text-tertiary);
  font-weight: 500;
}

.drawer-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.drawer-theme-btn,
.drawer-close-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm, 8px);
  border: 1px solid var(--border-color);
  background: var(--bg-surface);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s ease;
  font-size: 1.25rem;
  line-height: 1;
}

.drawer-theme-btn:hover,
.drawer-close-btn:hover {
  background: var(--bg-surface-alt);
  color: var(--text-main);
  border-color: var(--border-strong);
}

/* Drawer Scrollable Body */
.drawer-scroll-body {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* Drawer User Card */
.drawer-user-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--bg-surface-alt);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md, 10px);
}

.drawer-user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.drawer-user-info {
  flex: 1;
  min-width: 0;
}

.drawer-user-info .user-role-tag {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent);
  letter-spacing: 0.5px;
}

.drawer-user-info .user-name {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.drawer-profile-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  text-decoration: none;
  font-size: 0.76rem;
  font-weight: 600;
  transition: all 0.15s ease;
}

.drawer-profile-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Drawer Section */
.drawer-section-title {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-tertiary);
  margin-bottom: 8px;
  padding-left: 4px;
}

.drawer-nav-list {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.drawer-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-sm, 8px);
  color: var(--text-main);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  transition: all 0.15s ease;
}

.drawer-nav-item:hover {
  background: var(--bg-surface-alt);
  color: var(--accent);
}

.drawer-nav-item.active {
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
}

.drawer-item-icon {
  font-size: 1.1rem;
  width: 22px;
  text-align: center;
  flex-shrink: 0;
}

.drawer-item-text {
  flex: 1;
}

.drawer-nav-sublist .drawer-nav-item {
  font-size: 0.84rem;
  color: var(--text-secondary);
  padding: 8px 12px;
}

.drawer-nav-sublist .drawer-nav-item:hover {
  color: var(--text-main);
}

/* Drawer Languages Grid */
.drawer-lang-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}

.drawer-lang-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: var(--radius-sm, 6px);
  background: var(--bg-surface-alt);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 600;
  transition: all 0.15s ease;
}

.drawer-lang-chip:hover {
  border-color: var(--border-strong);
  background: var(--bg-surface);
}

.drawer-lang-chip.active {
  border-color: var(--accent);
  background: rgba(26, 115, 232, 0.08);
  color: var(--accent);
  font-weight: 700;
}

.drawer-lang-flag {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.drawer-lang-name {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.drawer-lang-check {
  color: var(--accent);
  font-weight: 800;
  font-size: 0.8rem;
}

.drawer-footer-note {
  text-align: center;
  font-size: 0.72rem;
  color: var(--text-tertiary);
  padding: 14px 0 4px;
  border-top: 1px solid var(--border-color);
  margin-top: auto;
}

/* ==========================================
 * RESPONSIVE MEDIA QUERIES (TABLETS & MOBILES)
 * ========================================== */
@media (max-width: 860px) {
  /* Site Header compact on mobile/tablet */
  .site-header {
    min-height: 56px;
  }
  .header-inner {
    min-height: 56px;
    padding: 0 16px;
    gap: 10px;
    flex-wrap: nowrap;
  }

  /* Hide Desktop Main Navigation in Header */
  .site-header .main-nav {
    display: none !important;
  }

  /* Show Mobile Menu Toggle */
  .mobile-menu-toggle-btn {
    display: inline-flex;
  }

  /* Show Mobile Bottom Navigation Bar */
  .icp-mobile-bottom-nav {
    display: block;
  }

  /* Prevent bottom nav from covering content */
  body {
    padding-bottom: calc(62px + env(safe-area-inset-bottom, 0px));
  }

  /* Compact badges */
  .ext-badge .badge-label {
    display: none;
  }
  .ext-badge {
    padding: 6px 10px;
  }

  .site-brand {
    font-size: 1.05rem;
    gap: 8px;
  }
  .brand-icon {
    width: 32px;
    height: 32px;
  }
  .brand-icon img {
    width: 18px;
    height: 20px;
  }

  /* Footer responsiveness */
  .footer-inner {
    flex-direction: column;
    text-align: center;
    gap: 14px;
  }
  .footer-links {
    justify-content: center;
  }
  .footer-lang-col {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .site-brand span {
    font-size: 0.92rem;
  }
  .profile-nav-btn {
    display: none; /* Accessible inside mobile drawer & bottom bar */
  }
  .header-actions {
    gap: 6px;
  }
}


/* ==========================================
 * BROWSE COLORS (/browse/colors) & COLOR DETAIL (/color-code/{hex})
 * ========================================== */
.browse-filter-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 24px;
  box-shadow: var(--shadow-md);
  margin-bottom: 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.browse-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
}

.browse-search-icon {
  position: absolute;
  left: 16px;
  color: var(--text-muted);
  pointer-events: none;
}

.browse-search-input {
  flex: 1;
  height: 48px;
  padding: 0 16px 0 46px;
  border-radius: var(--radius-md);
  border: 2px solid var(--border-color);
  background: var(--bg-body);
  color: var(--text-main);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.browse-search-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
  background: var(--bg-surface);
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.filter-group-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.filter-pills-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.family-pill,
.brightness-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 15px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid var(--border-color);
  background: var(--bg-surface-alt);
  color: var(--text-main);
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.family-pill:hover,
.brightness-pill:hover {
  transform: translateY(-1px);
  border-color: var(--border-strong);
}

.family-pill.active,
.brightness-pill.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
  box-shadow: var(--shadow-sm);
}

.pill-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.15);
}

.browse-status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--border-color);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
}

/* 3-Column Color Cards Grid */
.browse-colors-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 900px) {
  .browse-colors-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .browse-colors-grid {
    grid-template-columns: 1fr;
  }
  .browse-search-wrap {
    flex-direction: column;
    align-items: stretch;
  }
  .browse-search-icon {
    top: 14px;
  }
}

.color-browse-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.color-browse-card:hover {
  transform: translateY(-3px) scale(1.01);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-strong);
}

.color-card-swatch {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.color-card-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px;
}

.color-card-info {
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
  flex: 1;
  color: var(--text-main);
}

.color-card-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-main);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.color-card-hex {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  flex-shrink: 0;
}

.color-card-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.color-icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.color-icon-btn:hover {
  background: var(--bg-surface-alt);
  color: var(--text-main);
  border-color: var(--border-color);
}

.color-icon-btn.is-saved {
  color: #ec4899;
}

.color-icon-btn.is-saved svg {
  fill: #ec4899;
}

/* Color Detail Page (/color-code/{hex}) */
.color-detail-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin: 20px 0 16px;
}

.color-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.color-breadcrumb a {
  color: var(--text-secondary);
  font-weight: 600;
}

.color-jump-form {
  display: flex;
  align-items: center;
  gap: 8px;
}

.color-hero-showcase {
  border-radius: var(--radius-xl);
  padding: clamp(24px, 4vw, 40px);
  margin-bottom: 24px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 220px;
  gap: 28px;
}

.color-hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.color-hero-pill {
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  background: rgba(15, 23, 42, 0.22);
  backdrop-filter: blur(6px);
  color: inherit;
}

.color-hero-main {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.conversion-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

@media (max-width: 720px) {
  .conversion-cards-grid {
    grid-template-columns: 1fr;
  }
}

.variation-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
  gap: 10px;
}

.variation-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.variation-swatch {
  display: block;
  width: 100%;
  height: 54px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(0, 0, 0, 0.12);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.variation-swatch:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.variation-hex-btn {
  background: none;
  border: none;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
}

.variation-hex-btn:hover {
  background: var(--bg-surface-alt);
  color: var(--accent);
}

.harmonies-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.harmony-combo-card {
  background: var(--bg-surface-alt);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
}

.dual-analysis-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

@media (max-width: 820px) {
  .harmonies-cards-grid,
  .dual-analysis-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================
 * CREATIVE TOOLS SUITE & UNLIMITED FREE LIBRARY
 * ========================================== */
.free-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: linear-gradient(135deg, #10b981, #2563eb);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.25);
}

.lib-nav-btn {
  gap: 6px;
}

.lib-nav-btn.active {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
}

.lib-count-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 18px;
  padding: 0 6px;
  border-radius: 999px;
  background: #ec4899;
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 800;
}

.btn-accent-pink {
  background: linear-gradient(135deg, #ec4899, #8b5cf6);
  border-color: transparent;
  color: #ffffff;
}

.btn-accent-pink:hover {
  background: linear-gradient(135deg, #db2777, #7c3aed);
  border-color: transparent;
  color: #ffffff;
}

/* Palette Count +/- Mini Stepper */
.palette-count-controls {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--bg-surface-alt);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 2px 4px;
}

.btn-mini-step {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: none;
  background: var(--bg-surface);
  color: var(--text-main);
  font-weight: 800;
  font-size: 0.85rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.btn-mini-step:hover {
  background: var(--accent);
  color: #ffffff;
}

/* Fullscreen Studio Mode */
.studio-workspace.is-fullscreen {
  position: fixed;
  inset: 0;
  z-index: 9990;
  background: var(--bg-body);
  padding: 20px;
  overflow-y: auto;
  align-items: stretch;
  margin: 0;
}

/* Shared Tool Studio Card */
.tool-studio-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  margin-bottom: 32px;
}

.tool-control-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 14px 18px;
  background: var(--bg-surface-alt);
  border-bottom: 1px solid var(--border-color);
}

.control-inline-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.studio-select {
  height: 36px;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background: var(--bg-surface);
  color: var(--text-main);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  outline: none;
}

.studio-select:focus {
  border-color: var(--accent);
}

/* Save Drawer Grid */
.save-item-drawer {
  padding: 14px 18px;
  background: var(--bg-surface-alt);
  border-top: 1px solid var(--border-color);
}

.save-drawer-grid {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.save-drawer-grid .url-loader-input {
  flex: 1 1 200px;
}

/* 1. Palette Generator Columns Stage */
.pg-swatches-stage {
  display: flex;
  min-height: 410px;
  width: 100%;
  overflow: hidden;
}

@media (max-width: 720px) {
  .pg-swatches-stage {
    flex-direction: column;
    min-height: 480px;
  }
}

.pg-swatch-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px 14px;
  position: relative;
  transition: flex 0.2s ease, background-color 0.15s ease;
  min-height: 90px;
}

.pg-swatch-col:hover {
  flex: 1.15;
}

.pg-col-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.pg-icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  border: none;
  background: rgba(15, 23, 42, 0.25);
  backdrop-filter: blur(4px);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.12s ease, background-color 0.12s ease;
}

.pg-icon-btn:hover {
  transform: scale(1.08);
  background: rgba(15, 23, 42, 0.55);
}

.pg-icon-btn.is-locked {
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.pg-col-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.24);
  backdrop-filter: blur(6px);
  color: #ffffff;
}

.pg-col-hex {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  cursor: pointer;
}

.pg-col-name {
  font-size: 0.82rem;
  font-weight: 600;
  opacity: 0.92;
}

/* 2. Gradient Maker */
.gm-preview-box {
  height: 280px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-color);
  transition: background 0.1s ease;
}

.gm-preview-badges {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #ffffff;
}

.gm-controls-body {
  padding: 22px;
}

.gm-row-top {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
  align-items: end;
  margin-bottom: 20px;
}

.gm-control-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.gm-control-field label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.gm-stops-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.gm-stop-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  background: var(--bg-surface-alt);
  border: 1px solid var(--border-color);
}

.gm-code-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 12px 16px;
  background: var(--bg-surface-alt);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
}

.gm-css-code {
  font-family: var(--font-mono);
  font-size: 0.86rem;
  color: var(--text-main);
  word-break: break-all;
  flex: 1;
}

.gm-presets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 10px;
}

.gm-preset-swatch {
  height: 46px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(0, 0, 0, 0.12);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.gm-preset-swatch:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* 3. WCAG Contrast Checker */
.cc-layout-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 24px;
  padding: 24px;
}

@media (max-width: 860px) {
  .cc-layout-grid {
    grid-template-columns: 1fr;
  }
}

.cc-inputs-pair {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: center;
  margin-bottom: 18px;
}

@media (max-width: 580px) {
  .cc-inputs-pair {
    grid-template-columns: 1fr;
  }
}

.cc-color-panel {
  background: var(--bg-surface-alt);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px;
}

.cc-panel-title {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.cc-picker-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cc-native-color {
  width: 42px;
  height: 38px;
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
}

.cc-hex-field {
  font-family: var(--font-mono);
  font-weight: 700;
  width: 100%;
}

.cc-autofix-box {
  background: var(--bg-surface-alt);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin-bottom: 18px;
}

.cc-wcag-matrix {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.cc-matrix-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface-alt);
  border: 1px solid var(--border-color);
  font-size: 0.84rem;
  font-weight: 600;
}

.wcag-pill {
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
}

.wcag-pill.pass {
  background: rgba(16, 185, 129, 0.16);
  color: #10b981;
}

.wcag-pill.fail {
  background: rgba(239, 68, 68, 0.16);
  color: #ef4444;
}

.cc-score-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  background: var(--bg-surface-alt);
  border: 1px solid var(--border-color);
  margin-bottom: 16px;
}

.cc-ratio-big {
  font-size: 2rem;
  font-weight: 900;
  font-family: var(--font-mono);
  line-height: 1.1;
}

.cc-live-preview-card {
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  box-shadow: var(--shadow-md);
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.cc-preview-tag {
  align-self: flex-start;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  letter-spacing: 0.05em;
}

/* 4. Color Blindness Simulator */
.bs-palette-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
  gap: 8px;
}

.bs-swatch-pill {
  height: 54px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(0, 0, 0, 0.12);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 6px 10px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

.bs-results-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  padding: 20px;
}

@media (max-width: 760px) {
  .bs-results-grid {
    grid-template-columns: 1fr;
  }
}

.bs-vision-card {
  background: var(--bg-surface-alt);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
}

.bs-vision-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

/* 6. My Library — Unlimited Free Workspace */
.free-forever-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 20px 24px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.09), rgba(236, 72, 153, 0.09));
  border: 1px solid var(--border-strong);
  margin-bottom: 22px;
}

.free-banner-left {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  max-width: 680px;
}

.lib-org-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 820px) {
  .lib-org-grid {
    grid-template-columns: 1fr;
  }
}

.lib-create-inline {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.lib-tabs-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--border-color);
}

.lib-items-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

@media (max-width: 760px) {
  .lib-items-grid {
    grid-template-columns: 1fr;
  }
}

.lib-palette-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.lib-palette-swatches {
  display: flex;
  height: 92px;
  width: 100%;
}

.lib-palette-swatches button {
  flex: 1;
  border: none;
  cursor: pointer;
  position: relative;
  transition: flex 0.15s ease;
}

.lib-palette-swatches button:hover {
  flex: 1.35;
}

.lib-palette-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.lib-card-meta-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.lib-tag-pill {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--bg-surface-alt);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
}

.lib-saved-image-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface-alt);
  border: 1px solid var(--border-color);
}

.lib-saved-image-thumb {
  width: 58px;
  height: 40px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid rgba(0, 0, 0, 0.15);
}

/* ==========================================================================
   7. Engagement Section: WP Ulike Button + US Popular Social Media Share (Compact 1-Line)
   ========================================================================== */
.icp-engagement-section {
  margin: 14px 0 24px;
}

.icp-engagement-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 12px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 9px 16px;
  box-shadow: var(--shadow-sm);
  overflow-x: auto;
  scrollbar-width: none;
}

.icp-engagement-card::-webkit-scrollbar {
  display: none;
}

.icp-like-column {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
  flex-shrink: 0;
}

.icp-like-inline-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-secondary);
  white-space: nowrap;
}

.icp-ulike-button-box {
  display: inline-flex;
  align-items: center;
}

.icp-ulike-button-box .wpulike {
  padding: 0 !important;
  margin: 0 !important;
  display: inline-flex !important;
  align-items: center;
}

.icp-ulike-button-box .wp_ulike_general_class {
  display: inline-flex !important;
  align-items: center;
  background: var(--bg-surface-alt);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 2px 10px 2px 4px;
  gap: 4px;
  height: 30px;
  box-shadow: none;
  transition: border-color 0.15s ease;
}

.icp-ulike-button-box .wp_ulike_general_class:hover {
  border-color: #ec4899;
}

.icp-ulike-button-box .wp_ulike_btn {
  padding: 4px 8px !important;
  min-height: 22px !important;
  line-height: 1 !important;
}

.icp-ulike-button-box .count-box {
  font-size: 0.76rem !important;
  font-weight: 700 !important;
  line-height: 1 !important;
}

.icp-like-rating-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.78rem;
  color: var(--text-secondary);
  white-space: nowrap;
  padding-left: 6px;
  border-left: 1px solid var(--border-color);
}

.icp-stars {
  color: #f59e0b;
  letter-spacing: 0.5px;
  font-size: 0.82rem;
  line-height: 1;
}

.icp-share-column {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
  flex-shrink: 0;
}

.icp-share-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-secondary);
  white-space: nowrap;
}

.icp-share-buttons {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
}

.icp-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 30px;
  padding: 0 10px;
  border-radius: 7px;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  border: 1px solid var(--border-color);
  background: var(--bg-surface-alt);
  color: var(--text-main);
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.icp-share-btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
  color: #ffffff;
}

.icp-share-btn.share-x:hover {
  background: #0f1419;
  border-color: #0f1419;
}

.icp-share-btn.share-facebook:hover {
  background: #1877f2;
  border-color: #1877f2;
}

.icp-share-btn.share-reddit:hover {
  background: #ff4500;
  border-color: #ff4500;
}

.icp-share-btn.share-pinterest:hover {
  background: #e60023;
  border-color: #e60023;
}

.icp-share-btn.share-linkedin:hover {
  background: #0a66c2;
  border-color: #0a66c2;
}

.icp-share-btn.share-threads:hover {
  background: #101010;
  border-color: #101010;
}

.icp-share-btn.share-email:hover {
  background: #475569;
  border-color: #475569;
}

.icp-share-btn.share-copy-link:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}

/* ==========================================================================
   IQUGAMES STYLE: DAILY COLOR & IMAGE PUZZLES HUB & ENGINES
   ========================================================================== */

/* Top Breadcrumb Bar */
.page-breadcrumb-bar {
  background: var(--bg-surface-alt, #f8f9fa);
  border-bottom: 1px solid var(--border-color, #e8eaed);
  padding: 12px 0;
  font-size: 0.85rem;
  margin-bottom: 24px;
  width: 100%;
  box-sizing: border-box;
}

[data-theme="dark"] .page-breadcrumb-bar {
  background: var(--bg-surface, #111827);
  border-bottom-color: var(--border-color, #1e293b);
}

.page-breadcrumb-container {
  max-width: var(--container-max, 1200px);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 8px 12px;
  flex-wrap: wrap;
  color: var(--text-muted, #5f6368);
  line-height: 1.5;
  box-sizing: border-box;
}

/* Align Breadcrumb with 900px Game Arena Card on Single Game Pages */
.single-daily_games .page-breadcrumb-container,
.single-game-breadcrumb-container {
  max-width: 900px;
  padding: 0 16px;
}

.breadcrumb-link {
  color: var(--accent, #2563eb);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.15s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.breadcrumb-link:hover {
  text-decoration: underline;
}

.breadcrumb-separator {
  color: var(--text-muted, #9aa0a6);
  flex-shrink: 0;
  user-select: none;
}

.breadcrumb-current {
  color: var(--text-main, #0f172a);
  font-weight: 700;
  word-break: break-word;
}

[data-theme="dark"] .breadcrumb-current {
  color: var(--text-main, #f8fafc);
}

.breadcrumb-challenge-tag {
  background: var(--accent-soft, rgba(37, 99, 235, 0.1));
  color: var(--accent, #2563eb);
  padding: 3px 10px;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Daily Puzzle Page Container */
.daily-puzzle-page-wrapper {
  min-height: 80vh;
  padding-bottom: 60px;
}

.daily-hub-container {
  max-width: 100%;
  margin: 0 auto;
  padding: 0;
}

/* 1. Top Header Card (IQuGames Signature Card) */
.daily-hub-header-card {
  background: var(--bg-surface, #ffffff);
  border: 1.5px solid var(--border-color, #e8eaed);
  border-radius: 20px;
  padding: 26px 30px;
  box-shadow: 0 4px 16px rgba(60, 64, 67, 0.06);
  position: relative;
  overflow: hidden;
  margin-bottom: 32px;
}

.daily-hub-header-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #1a73e8, #fbbc04, #34a853, #ea4335);
}

.daily-hub-top-pills {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.daily-hub-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 9999px;
  background: rgba(234, 67, 53, 0.1);
  color: #c5221f;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.daily-hub-clock-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 9999px;
  background: var(--bg-surface-alt, #f1f3f4);
  color: var(--text-main, #3c4043);
  font-size: 0.82rem;
  font-weight: 600;
}

.daily-hub-clock-pill strong {
  font-family: var(--font-mono, monospace);
  color: var(--accent, #1a73e8);
  font-size: 0.95rem;
}

.daily-hub-quest-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 9999px;
  background: #fef3c7;
  color: #92400e;
  font-size: 0.78rem;
  font-weight: 700;
  margin-left: auto;
}

.daily-hub-headline-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.daily-hub-title {
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-main, #202124);
  margin: 0 0 8px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.daily-hub-edition-badge {
  font-size: 0.82rem;
  font-weight: 700;
  padding: 3px 10px;
  background: var(--bg-surface-alt, #f1f3f4);
  color: var(--text-muted, #5f6368);
  border-radius: 9999px;
  vertical-align: middle;
}

.daily-hub-desc {
  font-size: 0.98rem;
  color: var(--text-muted, #5f6368);
  line-height: 1.55;
  margin: 0;
  max-width: 680px;
}

.daily-hub-quick-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* 7-Day Visual Streak Track (IQuGames Signature) */
.daily-streak-track-container {
  background: var(--bg-surface-alt, #f8f9fa);
  border: 1px solid var(--border-color, #e8eaed);
  border-radius: 16px;
  padding: 16px 20px;
  margin-top: 20px;
}

.streak-track-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.streak-track-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-main, #202124);
}

.streak-best-badge {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 2px 8px;
  background: #fef3c7;
  color: #92400e;
  border-radius: 6px;
}

.streak-current-stat {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 800;
  color: #c5221f;
}

.streak-fire-icon {
  font-size: 1.15rem;
}

.streak-days-row {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
}

.streak-day-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 4px;
  background: var(--bg-surface, #ffffff);
  border: 1px solid var(--border-color, #e8eaed);
  border-radius: 12px;
  transition: all 0.2s ease;
  position: relative;
}

.streak-day-cell.today {
  border: 2px solid var(--accent, #1a73e8);
  box-shadow: 0 0 0 2px rgba(26, 115, 232, 0.15);
  background: #f8fbff;
}

.streak-day-name {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted, #5f6368);
  margin-bottom: 2px;
  text-transform: uppercase;
}

.streak-day-num {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-main, #202124);
  margin-bottom: 6px;
}

.streak-day-badge {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
}

.streak-day-cell.solved .streak-day-badge {
  background: #137333;
  color: #ffffff;
}

.streak-day-cell.unsolved .streak-day-badge {
  background: var(--bg-surface-alt, #f1f3f4);
  color: var(--text-muted, #80868b);
}

.streak-day-cell.today-pending .streak-day-badge {
  background: #e8f0fe;
  color: var(--accent, #1a73e8);
  border: 1px dashed var(--accent, #1a73e8);
}

.streak-today-tag {
  position: absolute;
  top: -8px;
  font-size: 0.62rem;
  font-weight: 800;
  color: var(--accent, #1a73e8);
  background: #e8f0fe;
  border-radius: 6px;
  padding: 1px 5px;
  letter-spacing: 0.5px;
}

/* Category Filter Tabs */
.daily-filter-tabs-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 28px 0 24px;
  flex-wrap: wrap;
}

.btn-filter-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 9999px;
  font-size: 0.88rem;
  font-weight: 600;
  background: var(--bg-surface, #ffffff);
  border: 1px solid var(--border-color, #dadce0);
  color: var(--text-main, #3c4043);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-filter-tab:hover {
  background: var(--bg-surface-alt, #f8f9fa);
  border-color: var(--accent, #1a73e8);
  color: var(--accent, #1a73e8);
}

.btn-filter-tab.active {
  background: var(--accent, #1a73e8);
  border-color: var(--accent, #1a73e8);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(26, 115, 232, 0.25);
}

/* Daily Puzzle Dedicated Grid */
.daily-puzzle-dedicated-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 22px;
  margin-bottom: 48px;
}

.daily-quest-card {
  background: var(--bg-surface, #ffffff);
  border: 1.5px solid var(--border-color, #e8eaed);
  border-top-width: 4px;
  border-radius: 18px;
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 2px 8px rgba(60, 64, 67, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  position: relative;
}

.daily-quest-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(60, 64, 67, 0.1);
}

.daily-quest-top {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.daily-quest-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.daily-game-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.daily-game-date {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted, #5f6368);
  background: var(--bg-surface-alt, #f1f3f4);
  padding: 2px 8px;
  border-radius: 8px;
}

.daily-boss-chip {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 9999px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #ffffff;
}

.daily-quest-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main, #202124);
  margin: 0;
  line-height: 1.35;
}

.daily-quest-desc {
  font-size: 0.88rem;
  color: var(--text-muted, #5f6368);
  line-height: 1.5;
  margin: 0;
  min-height: 42px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Mini Preview Box (IQuGames Visual Widget Previews) */
.daily-quest-preview-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: var(--bg-surface-alt, #f8f9fa);
  border: 1px solid var(--border-color, #e8eaed);
  border-radius: 14px;
  padding: 12px 16px;
  margin: 14px 0;
  height: 92px;
  box-sizing: border-box;
}

.daily-quest-preview-meta {
  font-size: 0.78rem;
  color: var(--text-muted, #5f6368);
  line-height: 1.45;
  text-align: right;
}

.daily-quest-preview-meta strong {
  color: var(--text-main, #202124);
}

.iqu-preview-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 90px;
  height: 64px;
  border-radius: 10px;
  background: var(--bg-surface, #ffffff);
  border: 1px solid var(--border-color, #e8eaed);
  position: relative;
  overflow: hidden;
}

.iqu-swatch-pair {
  display: flex;
  gap: 6px;
}

.iqu-swatch {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.iqu-mini-sliders {
  position: absolute;
  bottom: 6px;
  display: flex;
  gap: 4px;
}

.iqu-mini-sliders i {
  display: block;
  width: 16px;
  height: 3px;
  border-radius: 2px;
}

.iqu-mini-sliders i.r { background: #ef4444; }
.iqu-mini-sliders i.g { background: #10b981; }
.iqu-mini-sliders i.b { background: #3b82f6; }

.preview-rgb-guess {
  flex-direction: column;
  gap: 4px;
}

.iqu-rgb-code-pill {
  font-family: var(--font-mono, monospace);
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-muted, #5f6368);
}

.iqu-guess-tiles {
  display: flex;
  gap: 4px;
}

.iqu-guess-tiles span {
  width: 18px;
  height: 18px;
  border-radius: 4px;
}

.preview-sprint {
  position: relative;
}

.iqu-sprint-dial {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 3px solid #f59e0b;
  display: flex;
  align-items: center;
  justify-content: center;
}

.iqu-sprint-timer {
  font-size: 0.75rem;
  font-weight: 800;
  color: #d97706;
}

.iqu-bolt {
  position: absolute;
  top: 4px;
  right: 6px;
  font-size: 0.85rem;
}

.preview-hue-sort {
  padding: 6px;
}

.iqu-spectrum-bar {
  display: flex;
  gap: 3px;
  width: 100%;
  height: 32px;
  align-items: center;
}

.iqu-spectrum-bar i {
  flex: 1;
  height: 100%;
  border-radius: 3px;
}

.iqu-grid-mini {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
}

.iqu-grid-mini i {
  width: 14px;
  height: 14px;
  border-radius: 3px;
}

.iqu-grid-mini i.odd-dot {
  opacity: 0.7;
}

.iqu-radar-svg {
  width: 48px;
  height: 48px;
}

.iqu-memory-tiles {
  display: flex;
  align-items: center;
  gap: 3px;
}

.iqu-memory-tiles span {
  width: 16px;
  height: 24px;
  border-radius: 3px;
}

.iqu-memory-tiles .q-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f1f5f9;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--accent, #1a73e8);
}

.iqu-picross-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3px;
}

.iqu-picross-grid span {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 800;
}

/* Card Actions & Google Buttons */
.daily-quest-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-primary-google {
  background: var(--accent, #1a73e8);
  color: #ffffff;
  padding: 10px 22px;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 0.88rem;
  border: 1px solid var(--accent, #1a73e8);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 6px rgba(26, 115, 232, 0.2);
}

.btn-primary-google:hover {
  filter: brightness(1.08);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(26, 115, 232, 0.35);
  transform: translateY(-1px);
}

.btn-primary-google:active {
  transform: translateY(0);
}

.btn-secondary-google {
  background: var(--bg-surface, #ffffff);
  color: var(--text-main, #202124);
  border: 1px solid var(--border-color, #dadce0);
  padding: 8px 18px;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none !important;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-secondary-google:hover {
  background: var(--bg-surface-alt, #f8f9fa);
  color: var(--accent, #1a73e8);
  border-color: var(--accent, #1a73e8);
}

.daily-hub-solved-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 9999px;
  background: #dcfce7;
  color: #15803d;
  font-size: 0.82rem;
  font-weight: 700;
}

/* Daily FAQ Section */
.daily-faq-card {
  background: var(--bg-surface, #ffffff);
  border: 1.5px solid var(--border-color, #e8eaed);
  border-radius: 20px;
  padding: 32px;
  margin-top: 40px;
}

.daily-faq-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-main, #202124);
  margin: 0 0 24px;
}

.daily-faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.daily-faq-item h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main, #202124);
  margin: 0 0 8px;
}

.daily-faq-item p {
  font-size: 0.9rem;
  color: var(--text-muted, #5f6368);
  line-height: 1.55;
  margin: 0;
}

/* ==========================================================================
   SINGLE GAME ARENA & ERGONOMIC GAME ENGINES (IQuGames Standard)
   ========================================================================== */

.single-game-wrapper {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 16px 60px;
  box-sizing: border-box;
}

.single-game-card {
  background: var(--bg-surface, #ffffff);
  border: 1.5px solid var(--border-color, #e8eaed);
  border-radius: 24px;
  padding: 32px;
  box-shadow: 0 4px 20px rgba(60, 64, 67, 0.06);
  margin-bottom: 32px;
}

.single-game-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-color, #e8eaed);
  flex-wrap: wrap;
}

.header-pills-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.game-axis-pill {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 9999px;
  border: 1px solid;
  text-transform: uppercase;
}

.game-diff-pill {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 9999px;
  background: var(--bg-surface-alt, #f1f3f4);
  color: var(--text-muted, #5f6368);
}

.game-edition-pill {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 9999px;
  background: rgba(26, 115, 232, 0.1);
  color: var(--accent, #1a73e8);
}

.single-game-h1 {
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-main, #202124);
  margin: 0 0 8px;
}

.single-game-subtext {
  font-size: 0.95rem;
  color: var(--text-muted, #5f6368);
  margin: 0;
  line-height: 1.5;
}

.single-game-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 12px;
  background: var(--bg-surface-alt, #f8f9fa);
  border: 1px solid var(--border-color, #e8eaed);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted, #5f6368);
  flex-shrink: 0;
}

/* Heads-Up Display (HUD) */
.game-hud {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  background: var(--bg-surface-alt, #f8f9fa);
  border: 1px solid var(--border-color, #e8eaed);
  border-radius: 16px;
  padding: 14px 18px;
  margin-bottom: 28px;
}

.hud-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.hud-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted, #5f6368);
}

.hud-value {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main, #202124);
  font-family: var(--font-mono, monospace);
}

.hud-value.highlight {
  color: var(--accent, #1a73e8);
}

/* Universal Action Buttons & Feedback */
.game-actions-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.btn-large-prominent {
  min-height: 52px;
  padding: 14px 32px;
  font-size: 1.05rem;
  font-weight: 800;
  border-radius: 9999px;
  cursor: pointer;
  border: none;
  background: linear-gradient(135deg, #1a73e8, #1557b0);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 4px 14px rgba(26, 115, 232, 0.35);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-large-prominent:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(26, 115, 232, 0.45);
}

.btn-large-prominent:active {
  transform: translateY(0);
}

.btn-restart-game {
  min-height: 52px;
  padding: 12px 24px;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: 9999px;
  cursor: pointer;
  background: var(--bg-surface-alt, #f1f3f4);
  border: 1px solid var(--border-color, #dadce0);
  color: var(--text-main, #3c4043);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.btn-restart-game:hover {
  background: #e8eaed;
}

.game-feedback-banner {
  margin-top: 20px;
  padding: 14px 20px;
  border-radius: 14px;
  font-size: 0.95rem;
  font-weight: 700;
  text-align: center;
  background: var(--bg-surface-alt, #f8f9fa);
  border: 1px solid var(--border-color, #e8eaed);
  color: var(--text-main, #202124);
  display: none;
}

/* ==========================================================================
   ENGINE 1: RGB COLOR MATCH (With Stepper Buttons & 5-Round Progression)
   ========================================================================== */
.rcm-round-stepper-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-surface, #ffffff);
  border: 1px solid var(--border-color, #e8eaed);
  border-radius: 16px;
  padding: 12px 18px;
  margin-bottom: 20px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.rcm-stepper-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.rcm-stepper-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted, #5f6368);
}

.rcm-stepper-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  background: #eff6ff;
  color: #2563eb;
  font-size: 0.82rem;
  font-weight: 800;
  border-radius: 9999px;
  border: 1px solid #bfdbfe;
}

.rcm-round-pills {
  display: flex;
  gap: 8px;
}

.rcm-step-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 800;
  background: var(--bg-surface-alt, #f1f3f4);
  color: var(--text-muted, #5f6368);
  border: 1px solid var(--border-color, #dadce0);
  transition: all 0.2s ease;
}

.rcm-step-dot.active {
  background: #2563eb;
  border-color: #2563eb;
  color: #ffffff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
  transform: scale(1.1);
}

.rcm-step-dot.completed {
  background: #10b981;
  border-color: #10b981;
  color: #ffffff;
}

.rcm-swatches-arena {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.rcm-swatch-panel {
  flex: 1;
  min-width: 240px;
  max-width: 380px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.swatch-role-tag {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--text-muted, #5f6368);
}

.rcm-swatch-box {
  width: 100%;
  height: 180px;
  border-radius: 20px;
  position: relative;
  border: 2px solid #ffffff;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12), inset 0 2px 6px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: background-color 0.1s ease;
}

.btn-swatch-peek {
  padding: 8px 16px;
  border-radius: 9999px;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(6px);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.btn-swatch-peek:hover {
  background: rgba(0, 0, 0, 0.85);
  transform: scale(1.05);
}

.rcm-swatch-code {
  font-family: var(--font-mono, monospace);
  font-size: 0.95rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 10px;
  background: var(--bg-surface-alt, #f1f3f4);
  color: var(--text-muted, #5f6368);
  transition: all 0.2s ease;
}

.rcm-swatch-code.highlight {
  color: var(--text-main, #202124);
  border: 1px solid var(--border-color, #dadce0);
}

.rcm-swatch-code.revealed {
  color: #10b981;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  font-weight: 800;
}

.rcm-vs-badge {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-surface-alt, #f1f3f4);
  border: 1.5px solid var(--border-color, #dadce0);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--text-muted, #5f6368);
  flex-shrink: 0;
}

/* Ergonomic Steppers with Large +/- Touch Targets */
.rcm-stepper-controls {
  background: var(--bg-surface-alt, #f8f9fa);
  border: 1px solid var(--border-color, #e8eaed);
  border-radius: 20px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 24px;
}

.color-stepper-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.stepper-label-col {
  display: flex;
  align-items: center;
  gap: 10px;
}

.channel-badge {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 800;
}

.channel-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-main, #202124);
}

.channel-num {
  font-family: var(--font-mono, monospace);
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-main, #202124);
  background: var(--bg-surface, #ffffff);
  border: 1px solid var(--border-color, #dadce0);
  padding: 2px 8px;
  border-radius: 6px;
  min-width: 40px;
  text-align: center;
}

.stepper-actions-col {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-step-minus,
.btn-step-plus {
  min-width: 44px;
  height: 44px;
  padding: 0 10px;
  border-radius: 12px;
  border: 1px solid var(--border-color, #dadce0);
  background: var(--bg-surface, #ffffff);
  color: var(--text-main, #202124);
  font-size: 0.85rem;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  user-select: none;
}

.btn-step-minus.quick,
.btn-step-plus.quick {
  background: var(--bg-surface-alt, #f1f3f4);
  font-size: 0.8rem;
  color: var(--text-muted, #5f6368);
}

.btn-step-minus:hover:not(:disabled),
.btn-step-plus:hover:not(:disabled) {
  background: #e8eaed;
  border-color: #bad3fb;
  transform: translateY(-1px);
}

.btn-step-minus:active:not(:disabled),
.btn-step-plus:active:not(:disabled) {
  transform: scale(0.92);
}

.btn-step-minus:disabled,
.btn-step-plus:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.ergonomic-range-slider {
  flex: 1;
  height: 10px;
  border-radius: 5px;
  outline: none;
  appearance: none;
  background: #cbd5e1;
  cursor: pointer;
}

.ergonomic-range-slider.red::-webkit-slider-thumb {
  appearance: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #ef4444;
  border: 2px solid #ffffff;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
}

.ergonomic-range-slider.green::-webkit-slider-thumb {
  appearance: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #10b981;
  border: 2px solid #ffffff;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.4);
}

.ergonomic-range-slider.blue::-webkit-slider-thumb {
  appearance: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #3b82f6;
  border: 2px solid #ffffff;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.4);
}

/* Result Meta & Victory Card */
.result-accuracy-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.result-accuracy-meta .feedback-sub {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted, #5f6368);
}

.rcm-victory-card {
  text-align: center;
  background: var(--bg-surface, #ffffff);
  border: 1px solid var(--border-color, #e8eaed);
  border-radius: 20px;
  padding: 32px 24px;
  margin-bottom: 24px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.rcm-round-results-summary {
  margin-top: 20px;
}

.rcm-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
}

.rcm-summary-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px;
  border-radius: 12px;
  background: var(--bg-surface-alt, #f8f9fa);
  border: 1px solid var(--border-color, #e8eaed);
}

.rcm-summary-item.gold {
  border-color: #fbbf24;
  background: #fffbeb;
}

.rcm-summary-item .round-num {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted, #5f6368);
}

.rcm-summary-item .round-acc {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main, #202124);
  margin: 2px 0;
}

.rcm-summary-item .round-badge {
  font-size: 0.72rem;
  font-weight: 800;
  color: #10b981;
}

/* ==========================================================================
   ENGINE 2: RGB COLOR GUESS
   ========================================================================== */
.rcg-prompt-card {
  text-align: center;
  padding: 24px;
  background: var(--bg-surface-alt, #f8f9fa);
  border: 1px solid var(--border-color, #e8eaed);
  border-radius: 20px;
  margin-bottom: 24px;
}

.rcg-code-label {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--text-muted, #5f6368);
  margin-bottom: 6px;
}

.rcg-rgb-display {
  font-family: var(--font-mono, monospace);
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-main, #202124);
  margin: 6px 0 14px;
}

.rcg-difficulty-toggle {
  display: inline-flex;
  background: var(--bg-surface, #ffffff);
  border: 1px solid var(--border-color, #dadce0);
  border-radius: 9999px;
  padding: 3px;
  gap: 4px;
}

.btn-mode-toggle {
  padding: 6px 16px;
  border-radius: 9999px;
  border: none;
  background: transparent;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted, #5f6368);
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-mode-toggle.active {
  background: var(--accent, #1a73e8);
  color: #ffffff;
}

.rcg-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.rcg-swatch-card-btn {
  height: 140px;
  border-radius: 18px;
  border: 2px solid transparent;
  cursor: pointer;
  padding: 12px;
  display: flex;
  align-items: flex-start;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.rcg-swatch-card-btn:hover:not(:disabled) {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.rcg-swatch-card-btn:active:not(:disabled) {
  transform: translateY(0);
}

.rcg-card-chip {
  padding: 4px 10px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 800;
}

/* ==========================================================================
   ENGINE 3: COLOR MATCH SPRINT
   ========================================================================== */
.cms-stage {
  text-align: center;
}

.cms-sprint-bar {
  margin-bottom: 20px;
}

.cms-timer-track {
  width: 100%;
  height: 12px;
  background: var(--bg-surface-alt, #e8eaed);
  border-radius: 6px;
  overflow: hidden;
  position: relative;
  margin-bottom: 6px;
}

.cms-timer-fill {
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, #10b981, #f59e0b, #ef4444);
  transition: width 0.2s linear;
}

.cms-timer-text {
  font-family: var(--font-mono, monospace);
  font-size: 1.15rem;
  font-weight: 800;
  color: #c5221f;
}

.cms-target-title {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--text-muted, #5f6368);
  margin-bottom: 8px;
}

.cms-swatch-large {
  width: 140px;
  height: 140px;
  border-radius: 24px;
  margin: 0 auto 24px;
  border: 3px solid #ffffff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
}

.cms-choices-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.cms-tile-btn {
  width: 90px;
  height: 90px;
  border-radius: 18px;
  border: 2px solid transparent;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.15s ease;
}

.cms-tile-btn:hover:not(:disabled) {
  transform: scale(1.08);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}

/* ==========================================================================
   ENGINE 4: COLOR HUE SORT
   ========================================================================== */
.chs-status-bubble {
  text-align: center;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted, #5f6368);
  margin-bottom: 20px;
}

.chs-strip-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 24px 0 28px;
  flex-wrap: wrap;
}

.chs-color-block {
  width: 64px;
  height: 110px;
  border-radius: 12px;
  border: 2px solid transparent;
  cursor: pointer;
  position: relative;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.chs-color-block.chs-anchored {
  cursor: default;
  border-color: rgba(0, 0, 0, 0.25);
}

.chs-color-block.chs-selected {
  transform: translateY(-8px) scale(1.06);
  border-color: #ffffff;
  box-shadow: 0 0 0 3px var(--accent, #1a73e8), 0 10px 20px rgba(0, 0, 0, 0.2);
}

.chs-anchor-pin {
  position: absolute;
  top: 6px;
  right: 6px;
  font-size: 0.75rem;
}

/* ==========================================================================
   ENGINE 5: ODD COLOR OUT
   ========================================================================== */
.oco-round-tracker {
  text-align: center;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-muted, #5f6368);
  margin-bottom: 16px;
}

.oco-grid-container {
  max-width: 420px;
  margin: 0 auto 24px;
  display: grid;
  gap: 8px;
  aspect-ratio: 1 / 1;
  background: var(--bg-surface-alt, #f8f9fa);
  padding: 12px;
  border-radius: 20px;
  border: 1.5px solid var(--border-color, #e8eaed);
}

.oco-tile-btn {
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.1s ease;
}

.oco-tile-btn:active {
  transform: scale(0.92);
}

/* ==========================================================================
   ENGINE 6: DAILY IMAGE COLOR HUNT
   ========================================================================== */
.pch-target-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.pch-target-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 16px;
  background: var(--bg-surface-alt, #f8f9fa);
  border: 1px solid var(--border-color, #e8eaed);
  border-radius: 9999px;
  font-size: 0.9rem;
  font-weight: 700;
}

.pch-swatch-circle {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.pch-canvas-wrap {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: 0 auto 16px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
  cursor: crosshair;
}

#pch-canvas {
  width: 100%;
  height: auto;
  display: block;
}

.pch-marker-target,
.pch-marker-user {
  position: absolute;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 3px solid #ffffff;
  box-shadow: 0 0 0 2px #000000;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.pch-marker-user {
  background: rgba(239, 68, 68, 0.7);
}

.pch-marker-target {
  background: rgba(16, 185, 129, 0.7);
}

/* ==========================================================================
   ENGINE 7: IMAGE PALETTE MEMORY
   ========================================================================== */
.ipm-photo-arena {
  position: relative;
  max-width: 600px;
  width: 100%;
  margin: 0 auto 20px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
}

#ipm-canvas {
  width: 100%;
  height: auto;
  display: block;
}

.ipm-memorize-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #ffffff;
  font-size: 1.25rem;
  font-weight: 700;
}

.ipm-mem-countdown {
  font-size: 2.8rem;
  font-weight: 900;
  color: #f59e0b;
}

.ipm-palette-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.ipm-swatch-box {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 800;
}

.ipm-choices-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.ipm-choice-btn {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  border: 2px solid transparent;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  transition: transform 0.15s ease;
}

.ipm-choice-btn:hover:not(:disabled) {
  transform: scale(1.1);
}

/* ==========================================================================
   ENGINE 8: PIXEL COLOR REVEAL
   ========================================================================== */
.pcr-palette-selector {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 20px;
}

.pcr-brush-btn {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  border: 2px solid transparent;
  color: #ffffff;
  font-weight: 800;
  font-size: 1.1rem;
  cursor: pointer;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
  transition: all 0.15s ease;
}

.pcr-brush-btn.active {
  transform: scale(1.18);
  border-color: #ffffff;
  box-shadow: 0 0 0 3px var(--accent, #1a73e8);
}

.pcr-canvas-wrap {
  max-width: 360px;
  margin: 0 auto 20px;
}

#pcr-grid-canvas {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 4px;
  background: var(--bg-surface-alt, #f8f9fa);
  padding: 10px;
  border-radius: 16px;
  border: 1.5px solid var(--border-color, #e8eaed);
}

.pcr-cell {
  aspect-ratio: 1 / 1;
  border: none;
  border-radius: 6px;
  background: var(--bg-surface, #ffffff);
  color: var(--text-muted, #5f6368);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
}

.pcr-cell.painted {
  cursor: default;
}

.pcr-cell.shake {
  animation: pcrShake 0.4s ease;
}

@keyframes pcrShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

/* ==========================================================================
   WIN / SHARE SCORECARD MODAL
   ========================================================================== */
.daily-game-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.game-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(6px);
}

.game-modal-card {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 480px;
  background: var(--bg-surface, #ffffff);
  border: 1.5px solid var(--border-color, #e8eaed);
  border-radius: 24px;
  padding: 32px;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
  animation: modalPop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalPop {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.game-modal-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 14px;
  border-radius: 9999px;
  background: #dcfce7;
  color: #15803d;
  font-size: 0.82rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.game-modal-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-main, #202124);
  margin: 0 0 10px;
}

.game-modal-stars {
  font-size: 2rem;
  margin-bottom: 16px;
}

.game-modal-score {
  background: var(--bg-surface-alt, #f8f9fa);
  border: 1px solid var(--border-color, #e8eaed);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 24px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main, #202124);
}

.modal-actions-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-share-result {
  width: 100%;
  padding: 14px;
  border-radius: 9999px;
  border: none;
  background: linear-gradient(135deg, #10b981, #059669);
  color: #ffffff;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
  transition: all 0.2s ease;
}

.btn-share-result:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.45);
}

.btn-next-puzzle {
  width: 100%;
  padding: 12px;
  border-radius: 9999px;
  border: 1px solid var(--border-color, #dadce0);
  background: var(--bg-surface-alt, #f1f3f4);
  color: var(--text-main, #202124);
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.15s ease;
}

.btn-next-puzzle:hover {
  background: #e8eaed;
}

/* Fallback Badge for Entry Card Media Left */
.entry-fallback-badge-img {
  width: 100%;
  height: 100%;
  min-height: 200px;
  border-radius: var(--radius-md, 14px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px 20px;
  color: #ffffff;
  text-align: center;
  box-sizing: border-box;
  box-shadow: var(--shadow-sm, 0 2px 8px rgba(0, 0, 0, 0.06));
}

.entry-fallback-badge-img .game-badge-icon {
  font-size: 2.5rem;
}

.entry-fallback-badge-img .game-badge-title {
  font-size: 1.15rem;
  font-weight: 800;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.entry-fallback-badge-img .game-badge-type {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 10px;
  background: rgba(0, 0, 0, 0.35);
  border-radius: 9999px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* More Daily Games Section */
.more-games-section {
  margin-top: 48px;
  padding-top: 36px;
  border-top: 1px solid var(--border-color, #e8eaed);
}

@media (max-width: 768px) {
  .daily-hub-header-card {
    padding: 20px 18px;
  }
  .streak-days-row {
    gap: 4px;
  }
  .streak-day-cell {
    padding: 8px 2px;
  }
  .streak-day-num {
    font-size: 0.8rem;
  }
  .streak-day-badge {
    width: 20px;
    height: 20px;
    font-size: 0.68rem;
  }
  .single-game-card {
    padding: 20px 16px;
  }
  .game-hud {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .rcm-swatch-box {
    height: 140px;
  }
  .stepper-inputs-group {
    flex-wrap: wrap;
  }
}


/* ==========================================================================
   INTERACTIVE GAME ENGINES: DETAILED COMPONENT STYLES
   ========================================================================== */

.game-instruction-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-surface-alt, #f8f9fa);
  border: 1px solid var(--border-color, #e8eaed);
  border-radius: 14px;
  padding: 12px 18px;
  font-size: 0.92rem;
  color: var(--text-main, #3c4043);
  margin-bottom: 22px;
  line-height: 1.5;
}

.game-primary-action-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.game-result-card {
  background: var(--bg-surface-alt, #f8f9fa);
  border: 1.5px solid var(--border-color, #e8eaed);
  border-radius: 18px;
  padding: 20px 24px;
  margin-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.result-accuracy-meter {
  display: flex;
  align-items: baseline;
  gap: 14px;
}

.result-accuracy-meter .accuracy-percentage {
  font-size: 1.5rem;
  font-weight: 800;
  font-family: var(--font-mono, monospace);
}

.result-accuracy-meter .feedback-msg {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main, #202124);
}

.result-actions-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* RGB Color Guess Controls */
.rcg-mode-selector-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.mode-prompt {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted, #5f6368);
}

.btn-mode-pill {
  padding: 8px 16px;
  border-radius: 9999px;
  font-size: 0.82rem;
  font-weight: 700;
  border: 1px solid var(--border-color, #dadce0);
  background: var(--bg-surface, #ffffff);
  color: var(--text-main, #3c4043);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-mode-pill:hover {
  background: var(--bg-surface-alt, #f1f3f4);
}

.btn-mode-pill.active {
  background: var(--accent, #1a73e8);
  border-color: var(--accent, #1a73e8);
  color: #ffffff;
}

/* RGB Color Guess Controls & 5-Round Daily Stepper */
.rcg-round-stepper-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-surface, #ffffff);
  border: 1px solid var(--border-color, #e8eaed);
  border-radius: 16px;
  padding: 12px 18px;
  margin-bottom: 20px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.rcg-stepper-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.rcg-stepper-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted, #5f6368);
}

.rcg-stepper-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  background: #f3e8ff;
  color: #7c3aed;
  font-size: 0.82rem;
  font-weight: 800;
  border-radius: 9999px;
  border: 1px solid #ddd6fe;
}

.rcg-round-pills {
  display: flex;
  gap: 8px;
}

.rcg-step-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 800;
  background: var(--bg-surface-alt, #f1f3f4);
  color: var(--text-muted, #5f6368);
  border: 1px solid var(--border-color, #dadce0);
  transition: all 0.2s ease;
}

.rcg-step-dot.active {
  background: #7c3aed;
  border-color: #7c3aed;
  color: #ffffff;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.2);
  transform: scale(1.1);
}

.rcg-step-dot.completed {
  background: #10b981;
  border-color: #10b981;
  color: #ffffff;
}

.rcg-target-banner {
  text-align: center;
  background: var(--bg-surface-alt, #f8f9fa);
  border: 1px solid var(--border-color, #e8eaed);
  border-radius: 20px;
  padding: 24px;
  margin-bottom: 24px;
}

.rcg-rgb-breakdown {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 10px 0 14px;
}

.rcg-channel-badge {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono, monospace);
  font-size: 0.85rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 8px;
  color: #ffffff;
}

.rcg-r-badge {
  background: #ef4444;
}

.rcg-g-badge {
  background: #10b981;
}

.rcg-b-badge {
  background: #3b82f6;
}

.rcg-feedback-banner {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted, #5f6368);
}

.rcg-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.rcg-swatch-card-btn {
  height: 150px;
  border-radius: 20px;
  border: 3px solid transparent;
  cursor: pointer;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 14px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

.rcg-swatch-card-btn:hover:not(:disabled) {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.18);
  border-color: rgba(255, 255, 255, 0.6);
}

.rcg-swatch-card-btn.is-correct {
  border-color: #10b981 !important;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.35) !important;
  transform: scale(1.03);
}

.rcg-swatch-card-btn.is-wrong {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.25) !important;
  animation: rcgCardShake 0.35s ease;
}

@keyframes rcgCardShake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}

.rcg-card-chip {
  align-self: flex-start;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(6px);
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 800;
}

.rcg-chip-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 6px;
  font-size: 0.75rem;
}

.rcg-chip-rgb {
  font-family: var(--font-mono, monospace);
  font-size: 0.75rem;
  letter-spacing: 0.02em;
}

.rcg-card-status-badge {
  align-self: flex-end;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.75);
  color: #ffffff;
  display: none;
}

.rcg-swatch-card-btn.is-correct .rcg-card-status-badge {
  display: block;
  background: #10b981;
}

.rcg-swatch-card-btn.is-wrong .rcg-card-status-badge {
  display: block;
  background: #ef4444;
}

/* Victory Card & Summary */
.rcg-victory-card {
  text-align: center;
  background: var(--bg-surface, #ffffff);
  border: 1px solid var(--border-color, #e8eaed);
  border-radius: 20px;
  padding: 32px 24px;
  margin-bottom: 24px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.rcg-round-results-summary {
  margin-top: 20px;
}

.rcg-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
}

.rcg-summary-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px;
  border-radius: 12px;
  background: var(--bg-surface-alt, #f8f9fa);
  border: 1px solid var(--border-color, #e8eaed);
}

.rcg-summary-item.gold {
  border-color: #fbbf24;
  background: #fffbeb;
}

.rcg-summary-item .round-num {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted, #5f6368);
}

.rcg-summary-item .round-pts {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-main, #202124);
  margin: 2px 0;
}

.rcg-summary-item .round-badge {
  font-size: 0.72rem;
  font-weight: 800;
  color: #10b981;
}

/* Color Match Sprint Controls */
.sprint-timer-track {
  width: 100%;
  height: 14px;
  background: var(--bg-surface-alt, #e8eaed);
  border-radius: 7px;
  overflow: hidden;
  margin-bottom: 20px;
}

.sprint-timer-bar {
  height: 100%;
  background: linear-gradient(90deg, #10b981, #f59e0b, #ef4444);
  transition: width 0.25s linear;
}

.cms-target-stage {
  text-align: center;
  margin-bottom: 20px;
}

.stage-sub-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--text-muted, #5f6368);
  margin-bottom: 8px;
}

.cms-target-swatch {
  width: 140px;
  height: 140px;
  border-radius: 24px;
  margin: 0 auto;
  border: 3px solid #ffffff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
}

.cms-instructions-text {
  text-align: center;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted, #5f6368);
  margin-bottom: 16px;
}

.cms-choices-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.cms-tile-btn {
  width: 90px;
  height: 90px;
  border-radius: 18px;
  border: 2px solid transparent;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.15s ease;
}

.cms-tile-btn:hover:not(:disabled) {
  transform: scale(1.08);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}

.cms-banner-msg {
  text-align: center;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main, #202124);
  padding: 8px;
}

/* Color Hue Sort Controls (Daily Standard) */
.chs-track-wrapper {
  background: var(--bg-surface-alt, #f8f9fa);
  border: 1.5px solid var(--border-color, #e8eaed);
  border-radius: 20px;
  padding: 28px 20px;
  margin-bottom: 20px;
  overflow-x: auto;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.04);
}

.chs-spectrum-track {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-width: min-content;
  padding: 10px 4px;
}

.chs-block-btn,
.chs-color-block {
  width: 76px;
  height: 140px;
  border-radius: 16px;
  border: 3px solid rgba(255, 255, 255, 0.45);
  cursor: pointer;
  position: relative;
  transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.22s ease, border-color 0.2s ease;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12), inset 0 1px 2px rgba(255, 255, 255, 0.4);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 10px 4px;
  outline: none;
  user-select: none;
  -webkit-user-select: none;
}

.chs-block-btn:hover:not(.anchor):not(.chs-anchored) {
  transform: translateY(-8px);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.2);
  border-color: #ffffff;
}

.chs-block-btn.anchor,
.chs-color-block.chs-anchored {
  cursor: not-allowed;
  border-color: rgba(0, 0, 0, 0.25);
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.25);
  opacity: 0.95;
}

.chs-block-btn.selected,
.chs-color-block.chs-selected {
  transform: translateY(-16px) scale(1.08);
  border-color: #ffffff !important;
  box-shadow: 0 0 0 4px var(--accent, #1a73e8), 0 20px 36px rgba(26, 115, 232, 0.4) !important;
  z-index: 10;
  animation: chsPulseOutline 1.5s infinite ease-in-out;
}

@keyframes chsPulseOutline {
  0%, 100% { box-shadow: 0 0 0 4px var(--accent, #1a73e8), 0 20px 36px rgba(26, 115, 232, 0.4); }
  50% { box-shadow: 0 0 0 6px var(--accent, #1a73e8), 0 24px 44px rgba(26, 115, 232, 0.55); }
}

.chs-block-btn.won {
  animation: chsVictoryWave 1s ease-in-out infinite alternate;
}

@keyframes chsVictoryWave {
  0% { transform: translateY(0); }
  100% { transform: translateY(-6px); }
}

.chs-lock-tag {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 8px;
  border-radius: 9999px;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.chs-selected-tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 6px;
  border-radius: 6px;
  background: var(--accent, #1a73e8);
  color: #ffffff;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.chs-drag-handle {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.15rem;
  font-weight: 800;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.chs-pos-tag {
  font-size: 0.72rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.95);
  background: rgba(0, 0, 0, 0.4);
  border-radius: 6px;
  padding: 1px 6px;
  font-family: var(--font-mono, monospace);
}

.chs-status-text {
  text-align: center;
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--text-muted, #5f6368);
  min-height: 28px;
}

@media (max-width: 680px) {
  .chs-block-btn,
  .chs-color-block {
    width: 48px;
    height: 105px;
    border-radius: 12px;
  }
  .chs-lock-text {
    display: none;
  }
  .chs-spectrum-track {
    gap: 8px;
  }
}

/* Odd Color Out Controls */
.oco-grid-wrapper {
  max-width: 440px;
  margin: 0 auto 20px;
}

.oco-grid {
  display: grid;
  gap: 8px;
  aspect-ratio: 1 / 1;
  background: var(--bg-surface-alt, #f8f9fa);
  padding: 12px;
  border-radius: 20px;
  border: 1.5px solid var(--border-color, #e8eaed);
}

.oco-tile-btn {
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.1s ease;
}

.oco-tile-btn:active {
  transform: scale(0.92);
}

.oco-banner-msg {
  text-align: center;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main, #202124);
}

/* Daily Image Color Hunt Controls */
.pch-target-header-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--bg-surface-alt, #f8f9fa);
  border: 1px solid var(--border-color, #e8eaed);
  border-radius: 18px;
  padding: 16px 20px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.pch-target-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pch-label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--text-muted, #5f6368);
}

.pch-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 4px 12px;
  background: var(--bg-surface, #ffffff);
  border: 1px solid var(--border-color, #dadce0);
  border-radius: 9999px;
  font-size: 0.95rem;
}

.pch-circle-swatch {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #ffffff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.pch-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pch-canvas-wrapper {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: 0 auto 16px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
  cursor: crosshair;
}

#pch-canvas {
  width: 100%;
  height: auto;
  display: block;
}

.pch-marker {
  position: absolute;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 3px solid #ffffff;
  box-shadow: 0 0 0 2px #000000;
  transform: translate(-50%, -50%);
  pointer-events: none;
  background: rgba(239, 68, 68, 0.75);
}

.pch-hint-radar {
  position: absolute;
  border-radius: 50%;
  border: 2.5px dashed #10b981;
  background: rgba(16, 185, 129, 0.12);
  transform: translate(-50%, -50%);
  pointer-events: none;
  animation: radarPulse 1.5s infinite ease-out;
}

@keyframes radarPulse {
  0% { transform: translate(-50%, -50%) scale(0.9); opacity: 0.9; }
  100% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.3; }
}

.pch-feedback-box {
  text-align: center;
  padding: 12px 18px;
  background: var(--bg-surface-alt, #f8f9fa);
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main, #202124);
}

/* Image Palette Memory Controls */
.ipm-stepper-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 16px;
  background: var(--bg-surface-alt, #f8f9fa);
  padding: 8px 18px;
  border-radius: 9999px;
  border: 1px solid var(--border-color, #e8eaed);
  flex-wrap: wrap;
}

.ipm-stepper-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-secondary, #5f6368);
}

.ipm-steps-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ipm-step-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #e2e8f0;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 800;
  transition: all 0.25s ease;
}

.ipm-step-dot.active {
  background: #db2777;
  color: #ffffff;
  transform: scale(1.15);
  box-shadow: 0 2px 8px rgba(219, 39, 119, 0.35);
}

.ipm-step-dot.completed {
  background: #10b981;
  color: #ffffff;
}

.ipm-stage-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
}

.ipm-timer-track {
  width: 100%;
  max-width: 600px;
  height: 8px;
  background: #e2e8f0;
  border-radius: 9999px;
  overflow: hidden;
  margin-bottom: 2px;
}

.ipm-timer-fill {
  height: 100%;
  background: linear-gradient(90deg, #ec4899, #db2777);
  transition: width 0.1s linear;
  border-radius: 9999px;
}

.ipm-photo-box {
  position: relative;
  max-width: 600px;
  width: 100%;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
  background: #0f172a;
}

#ipm-canvas {
  width: 100%;
  height: auto;
  display: block;
}

.ipm-curtain {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.94);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  padding: 24px;
}

.ipm-curtain-msg {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}

.curtain-q-icon {
  font-size: 2.8rem;
  line-height: 1;
}

.curtain-sub {
  font-size: 0.88rem;
  color: #94a3b8;
}

.ipm-swatches-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
  max-width: 600px;
}

.ipm-section-label {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--text-secondary, #5f6368);
  letter-spacing: 0.5px;
}

.ipm-palette-preview-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.ipm-swatch-box {
  position: relative;
  width: 68px;
  height: 68px;
  border-radius: 16px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  border: 2.5px solid #ffffff;
}

.ipm-swatch-box .swatch-idx {
  position: absolute;
  top: 4px;
  left: 6px;
  font-size: 0.7rem;
  font-weight: 800;
  color: #ffffff;
  text-shadow: 0 1px 3px rgba(0,0,0,0.6);
}

.ipm-swatch-box.is-hidden {
  background: #1e293b !important;
  border: 2.5px dashed #f59e0b !important;
  animation: pulseSlot 1.5s infinite;
}

.ipm-swatch-box.is-revealed {
  animation: popReveal 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes pulseSlot {
  0%, 100% { transform: scale(1); border-color: #f59e0b; }
  50% { transform: scale(1.06); border-color: #ec4899; box-shadow: 0 0 16px rgba(236, 72, 153, 0.4); }
}

@keyframes popReveal {
  0% { transform: scale(0.7); opacity: 0.5; }
  60% { transform: scale(1.15); }
  100% { transform: scale(1); opacity: 1; }
}

.ipm-options-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 600px;
}

.ipm-options-label {
  font-size: 0.8rem;
  font-weight: 800;
  color: #db2777;
  letter-spacing: 0.5px;
}

.ipm-choices-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.ipm-choice-btn {
  position: relative;
  width: 72px;
  height: 72px;
  border-radius: 16px;
  border: 3px solid #ffffff;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
  transition: transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.18s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ipm-choice-btn:hover:not(:disabled) {
  transform: translateY(-4px) scale(1.08);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
  border-color: #facc15;
}

.ipm-choice-btn:active:not(:disabled) {
  transform: scale(0.96);
}

.ipm-choice-btn .choice-num {
  position: absolute;
  top: 4px;
  left: 6px;
  background: rgba(15, 23, 42, 0.65);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 6px;
}

.ipm-choice-btn.is-wrong {
  animation: shakeWrong 0.4s ease;
  opacity: 0.25;
  cursor: not-allowed;
}

@keyframes shakeWrong {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}

.ipm-banner-msg {
  text-align: center;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-main, #202124);
  padding: 10px 16px;
  border-radius: 12px;
  margin: 10px 0;
  transition: all 0.2s ease;
}

.ipm-victory-card {
  width: 100%;
  max-width: 520px;
  background: linear-gradient(135deg, #fdf2f8 0%, #f0fdf4 100%);
  border: 2px solid #86efac;
  border-radius: 20px;
  padding: 24px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(16, 185, 129, 0.12);
  animation: popReveal 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.victory-icon {
  font-size: 3rem;
  margin-bottom: 6px;
}

.victory-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: #15803d;
  margin: 0 0 6px;
}

.victory-subtitle {
  font-size: 0.95rem;
  color: #374151;
  margin: 0 0 16px;
}

.victory-score-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  padding: 8px 18px;
  border-radius: 9999px;
  border: 1.5px solid #86efac;
  font-size: 1rem;
  color: #15803d;
  font-weight: 700;
}

/* ====================================================
   PIXEL COLOR REVEAL (IQuGames Standard)
   ==================================================== */
.pcr-theme-selector-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.pcr-theme-label {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text-secondary, #5f6368);
}

.pcr-theme-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.pcr-theme-pill {
  background: var(--bg-surface-alt, #f8f9fa);
  border: 1.5px solid var(--border-color, #dadce0);
  border-radius: 9999px;
  padding: 6px 14px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-main, #202124);
  cursor: pointer;
  transition: all 0.18s ease;
}

.pcr-theme-pill:hover {
  background: #f1f3f4;
  border-color: #1a73e8;
}

.pcr-theme-pill.active {
  background: #1a73e8;
  color: #ffffff;
  border-color: #1a73e8;
  box-shadow: 0 2px 8px rgba(26, 115, 232, 0.3);
}

.pcr-progress-card {
  max-width: 440px;
  width: 100%;
  margin: 0 auto 16px;
  background: var(--bg-surface-alt, #f8f9fa);
  border: 1px solid var(--border-color, #e8eaed);
  border-radius: 14px;
  padding: 10px 16px;
}

.pcr-progress-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  font-size: 0.84rem;
}

.pcr-meta-label {
  font-weight: 700;
  color: var(--text-secondary, #5f6368);
}

.pcr-meta-val {
  color: #1a73e8;
  font-weight: 800;
}

.pcr-progress-track {
  width: 100%;
  height: 8px;
  background: #e2e8f0;
  border-radius: 9999px;
  overflow: hidden;
}

.pcr-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #3b82f6, #10b981);
  transition: width 0.2s ease;
  border-radius: 9999px;
}

.pcr-active-palette-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  background: var(--bg-surface, #ffffff);
  border: 1.5px solid var(--border-color, #e8eaed);
  border-radius: 18px;
  padding: 14px 20px;
  margin: 0 auto 20px;
  max-width: 480px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}

.palette-prompt-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  flex-wrap: wrap;
  gap: 8px;
}

.palette-prompt {
  font-size: 0.84rem;
  font-weight: 800;
  color: var(--text-secondary, #5f6368);
  letter-spacing: 0.5px;
}

.palette-auto-hint {
  font-size: 0.78rem;
  font-weight: 600;
  color: #16a34a;
}

.pcr-palette-selector {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.pcr-brush-btn {
  position: relative;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  border: 3px solid #ffffff;
  color: #ffffff;
  font-weight: 800;
  font-size: 1.15rem;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.16);
  transition: transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.18s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

.pcr-brush-btn:hover {
  transform: translateY(-3px) scale(1.08);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22);
}

.pcr-brush-btn.active {
  transform: scale(1.15);
  box-shadow: 0 0 0 3px #1a73e8, 0 6px 18px rgba(26, 115, 232, 0.35);
  border-color: #ffffff;
}

.pcr-brush-btn.is-done {
  opacity: 0.45;
}

.pcr-brush-btn .brush-count {
  position: absolute;
  bottom: -6px;
  right: -6px;
  background: #1e293b;
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 9999px;
  border: 1px solid #ffffff;
  text-shadow: none;
}

.pcr-brush-btn .brush-done-check {
  position: absolute;
  top: -6px;
  right: -6px;
  background: #10b981;
  color: #ffffff;
  font-size: 0.72rem;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid #ffffff;
  text-shadow: none;
}

.pcr-canvas-grid-box {
  max-width: 440px;
  width: 100%;
  margin: 0 auto 20px;
  user-select: none;
  -webkit-user-select: none;
}

.pcr-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 3px;
  background: #e2e8f0;
  padding: 6px;
  border-radius: 16px;
  border: 2px solid #cbd5e1;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.1);
  transition: gap 0.3s ease, border-color 0.3s ease;
}

.pcr-grid.is-completed {
  gap: 0px;
  padding: 0px;
  border-color: #86efac;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(16, 185, 129, 0.25);
}

.pcr-grid.is-completed .pcr-cell {
  border-radius: 0px;
}

.pcr-cell {
  aspect-ratio: 1 / 1;
  border: none;
  border-radius: 4px;
  background: #ffffff;
  color: #475569;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-weight: 800;
  font-size: 0.92rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.12s ease, background 0.15s ease;
  touch-action: none;
}

.pcr-cell:hover:not(.painted) {
  background: #f1f5f9;
  transform: scale(1.05);
  z-index: 2;
}

.pcr-cell.matching-active:not(.painted) {
  background: #fef08a;
  color: #854d0e;
  animation: pulseTarget 1.4s infinite;
}

@keyframes pulseTarget {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); box-shadow: 0 0 8px rgba(250, 204, 21, 0.6); z-index: 3; }
}

.pcr-cell.painted {
  color: transparent !important;
  cursor: default;
  animation: popPaint 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes popPaint {
  0% { transform: scale(0.7); }
  60% { transform: scale(1.15); }
  100% { transform: scale(1); }
}

.pcr-cell.shake {
  animation: pcrShake 0.35s ease;
}

@keyframes pcrShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); background: #fee2e2; }
  75% { transform: translateX(4px); background: #fee2e2; }
}

.pcr-banner-msg {
  text-align: center;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-main, #202124);
  padding: 10px 16px;
  border-radius: 12px;
  margin: 10px 0;
  transition: all 0.2s ease;
}

.pcr-victory-card {
  max-width: 440px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
  border: 2px solid #86efac;
  border-radius: 20px;
  padding: 24px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(16, 185, 129, 0.15);
  animation: popPaint 0.4s ease;
}

.pcr-victory-icon {
  font-size: 3rem;
  margin-bottom: 6px;
}

.pcr-victory-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #15803d;
  margin: 0 0 6px;
}

.pcr-victory-sub {
  font-size: 0.92rem;
  color: #374151;
  margin: 0 0 14px;
}

.pcr-victory-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.pcr-victory-stats .stat-pill {
  background: #ffffff;
  padding: 6px 16px;
  border-radius: 9999px;
  border: 1.5px solid #86efac;
  font-size: 0.88rem;
  color: #15803d;
}


/* ==========================================================================
   ENGINE 9: FIND THE DIFFERENCE
   ========================================================================== */

/* Mini Visual Preview in Hub Quest Card */
.preview-find-diff {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.iqu-diff-duo {
  display: flex;
  gap: 6px;
  align-items: center;
}

.diff-frame {
  width: 32px;
  height: 38px;
  border-radius: 6px;
  background: linear-gradient(135deg, #e0f2fe, #bae6fd);
  border: 1.5px solid #0284c7;
  position: relative;
  overflow: hidden;
}

.diff-dot {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #f43f5e;
}

.diff-dot.d1 { top: 8px; left: 10px; }
.diff-dot.d2 { bottom: 8px; right: 8px; }

.iqu-search-glass {
  position: absolute;
  bottom: 2px;
  right: 4px;
  font-size: 1rem;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

/* Find The Difference Game Arena */
.ftd-round-stepper-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-surface, #ffffff);
  border: 1px solid var(--border-color, #e8eaed);
  border-radius: 16px;
  padding: 12px 18px;
  margin-bottom: 20px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.ftd-stepper-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ftd-stepper-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-tertiary, #5f6368);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.ftd-stepper-pill {
  font-size: 0.85rem;
  font-weight: 800;
  padding: 4px 12px;
  background: rgba(8, 145, 178, 0.12);
  color: #0891b2;
  border-radius: 9999px;
}

.ftd-round-pills {
  display: flex;
  gap: 8px;
}

.ftd-step-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #e2e8f0;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 800;
  transition: all 0.2s ease;
}

.ftd-step-dot.active {
  background: #0891b2;
  color: #ffffff;
  transform: scale(1.15);
  box-shadow: 0 2px 8px rgba(8, 145, 178, 0.35);
}

.ftd-step-dot.completed {
  background: #10b981;
  color: #ffffff;
}

.ftd-header-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--bg-surface-alt, #f8f9fa);
  border: 1px solid var(--border-color, #e8eaed);
  border-radius: 18px;
  padding: 14px 20px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.ftd-counter-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--bg-surface, #ffffff);
  border: 1px solid var(--border-color, #dadce0);
  border-radius: 9999px;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-main, #202124);
}

.ftd-counter-pill strong {
  font-family: var(--font-mono, monospace);
  color: #0891b2;
  font-size: 1.05rem;
}

.ftd-actions-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ftd-arenas-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 20px;
}

@media (max-width: 820px) {
  .ftd-arenas-container {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

.ftd-scene-card {
  background: var(--bg-surface, #ffffff);
  border: 1.5px solid var(--border-color, #e8eaed);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(60, 64, 67, 0.05);
  display: flex;
  flex-direction: column;
}

.ftd-scene-header {
  padding: 10px 16px;
  background: var(--bg-surface-alt, #f8f9fa);
  border-bottom: 1px solid var(--border-color, #e8eaed);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ftd-scene-badge {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 3px 10px;
  border-radius: 9999px;
  background: #e0f2fe;
  color: #0369a1;
}

.ftd-scene-badge.highlight {
  background: #cffafe;
  color: #0e7490;
}

.ftd-canvas-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 600 / 380;
  cursor: crosshair;
  background: #e0f2fe;
  user-select: none;
  -webkit-user-select: none;
}

.ftd-canvas-wrap canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.ftd-markers-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.ftd-found-marker {
  position: absolute;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 3.5px solid #10b981;
  background: rgba(16, 185, 129, 0.22);
  box-shadow: 0 0 0 2px #ffffff, 0 4px 14px rgba(16, 185, 129, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: ftdPopMarker 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes ftdPopMarker {
  0% { transform: translate(-50%, -50%) scale(0.3); opacity: 0; }
  100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}

.ftd-marker-tick {
  color: #10b981;
  font-size: 1.1rem;
  font-weight: 900;
  text-shadow: 0 1px 3px rgba(255, 255, 255, 0.9);
}

.ftd-miss-ripple {
  position: absolute;
  width: 32px;
  height: 32px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 2px solid #ef4444;
  background: rgba(239, 68, 68, 0.15);
  animation: ftdRippleFade 0.6s ease-out forwards;
}

@keyframes ftdRippleFade {
  0% { transform: translate(-50%, -50%) scale(0.6); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(1.6); opacity: 0; }
}

.ftd-hint-pulse {
  position: absolute;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 3px dashed #f59e0b;
  background: rgba(245, 158, 11, 0.18);
  animation: ftdPulseHalo 1.2s infinite ease-in-out;
}

@keyframes ftdPulseHalo {
  0% { transform: translate(-50%, -50%) scale(0.9); opacity: 0.9; }
  50% { transform: translate(-50%, -50%) scale(1.15); opacity: 0.4; }
  100% { transform: translate(-50%, -50%) scale(0.9); opacity: 0.9; }
}

.ftd-feedback-banner {
  text-align: center;
  padding: 12px 18px;
  background: var(--bg-surface-alt, #f8f9fa);
  border: 1px solid var(--border-color, #e8eaed);
  border-radius: 14px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main, #202124);
  margin-bottom: 16px;
}

/* ========================================================
   IQUGAMES STYLE SHARE MODAL & DAILY CHALLENGE COMPONENTS
   ======================================================== */
.iqu-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s cubic-bezier(0, 0, 0.2, 1), visibility 0.22s cubic-bezier(0, 0, 0.2, 1);
}

.iqu-modal-overlay.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.iqu-modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(32, 33, 36, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  cursor: pointer;
}

.iqu-modal-dialog {
  position: relative;
  background: #ffffff;
  border-radius: 24px;
  width: 100%;
  max-width: 480px;
  padding: 28px 24px 24px;
  box-shadow: 0 16px 48px rgba(32, 33, 36, 0.25);
  border: 1px solid rgba(0, 0, 0, 0.08);
  transform: scale(0.92) translateY(12px);
  transition: transform 0.25s cubic-bezier(0, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  z-index: 1;
}

.iqu-modal-overlay.is-visible .iqu-modal-dialog {
  transform: scale(1) translateY(0);
}

.iqu-modal-close {
  position: absolute;
  top: 16px;
  right: 18px;
  background: transparent;
  border: none;
  font-size: 26px;
  line-height: 1;
  color: #5f6368;
  cursor: pointer;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, color 0.15s ease;
}

.iqu-modal-close:hover {
  background: #f1f3f4;
  color: #202124;
}

.iqu-modal-icon-badge {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 16px;
}

.iqu-modal-icon-badge.success {
  background: #e6f4ea;
  color: #1e8e3e;
}

.iqu-modal-title {
  font-family: inherit;
  font-size: 20px;
  font-weight: 700;
  color: #202124;
  margin: 0 0 8px 0;
  line-height: 1.35;
}

.iqu-modal-body {
  font-size: 14.5px;
  line-height: 1.6;
  color: #5f6368;
  margin-bottom: 20px;
  word-break: break-word;
}

.iqu-modal-body p {
  margin: 0 0 12px 0;
}

.daily-share-preview-pre {
  background: #f1f3f4;
  border: 1px solid #dadce0;
  padding: 12px 14px;
  border-radius: 12px;
  font-family: 'Consolas', 'Menlo', 'Monaco', monospace;
  font-size: 12.5px;
  line-height: 1.55;
  color: #202124;
  white-space: pre-wrap;
  word-break: break-word;
  margin: 12px 0 16px;
  text-align: left;
  user-select: all;
  -webkit-user-select: all;
}

.daily-share-intent-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.share-intent-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
  border: none;
}

.share-intent-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
}

.share-intent-btn.twitter {
  background: #0f1419;
  color: #ffffff !important;
}

.share-intent-btn.whatsapp {
  background: #25d366;
  color: #ffffff !important;
}

.share-intent-btn.copy-again {
  background: #e8f0fe;
  color: #1a73e8;
  border: 1px solid #d2e3fc;
}

.iqu-modal-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  border-top: 1px solid #f1f3f4;
  padding-top: 16px;
}

.iqu-modal-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  border-radius: 9999px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
}

.iqu-modal-btn.btn-confirm {
  background: #1a73e8;
  color: #ffffff;
}

.iqu-modal-btn.btn-confirm:hover {
  background: #1557b0;
  box-shadow: 0 2px 8px rgba(26, 115, 232, 0.35);
}

/* Floating Toast Chip */
.daily-toast-chip {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translate(-50%, 20px);
  background: #202124;
  color: #ffffff;
  padding: 10px 22px;
  border-radius: 9999px;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.22s cubic-bezier(0, 0, 0.2, 1), opacity 0.22s ease;
  z-index: 1000000;
}

.daily-toast-chip.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* Prominent IQuGames Style Share Button across all daily games */
.btn-share-iqu,
.btn-secondary-google.btn-share-iqu,
button[id$="-btn-share"] {
  background: #ffffff !important;
  border: 1.5px solid #1a73e8 !important;
  color: #1a73e8 !important;
  font-weight: 700 !important;
  border-radius: 9999px !important;
  padding: 9px 20px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
  box-shadow: 0 2px 6px rgba(26, 115, 232, 0.12) !important;
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
  cursor: pointer !important;
}

.btn-share-iqu:hover,
button[id$="-btn-share"]:hover {
  background: #1a73e8 !important;
  color: #ffffff !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 16px rgba(26, 115, 232, 0.28) !important;
}

/* Color Hue Sort Multi-Stage Stepper */
.chs-stages-stepper {
  background: var(--bg-surface-alt, #f8f9fa);
  border: 1px solid var(--border-color, #e8eaed);
  border-radius: 16px;
  padding: 12px 18px;
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.chs-stepper-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.chs-stepper-title {
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--text-main, #202124);
}

.chs-stepper-difficulty {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 9999px;
  background: #e0f2fe;
  color: #0369a1;
}

.chs-stepper-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

.chs-dot {
  flex: 1;
  height: 32px;
  border-radius: 8px;
  background: #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 800;
  color: #64748b;
  transition: all 0.25s ease;
}

.chs-dot.active {
  background: #0284c7;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.35);
  transform: scale(1.04);
}

.chs-dot.completed {
  background: #10b981;
  color: #ffffff;
}

/* ========================================================
   GLOBAL LEADERBOARD & PLAYER PROFILE DASHBOARD (IQuGames Style)
   ======================================================== */

/* HUD Quick Profile & Leaderboard Links */
.hud-profile-item {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 6px !important;
}

.hud-profile-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f1f3f4;
  padding: 4px 10px;
  border-radius: 9999px;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 700;
  color: #202124;
  transition: all 0.18s ease;
}

.hud-profile-pill:hover {
  background: #e8f0fe;
  color: #1a73e8;
  transform: translateY(-1px);
}

.hud-lb-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: #fef3c7;
  border-radius: 50%;
  text-decoration: none;
  font-size: 0.85rem;
  transition: all 0.18s ease;
}

.hud-lb-pill:hover {
  transform: scale(1.1);
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

/* LEADERBOARD HERO */
.lb-page-main {
  padding-bottom: 90px;
}

.lb-hero-section {
  text-align: center;
  margin-bottom: 32px;
  padding: 16px 0;
}

.lb-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 9999px;
  background: #e8f0fe;
  color: #1a73e8;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  margin-bottom: 12px;
}

.lb-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  color: var(--text-main, #202124);
  margin: 0 0 10px;
  letter-spacing: -0.02em;
}

.lb-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary, #5f6368);
  max-width: 680px;
  margin: 0 auto 24px;
  line-height: 1.6;
}

/* Category Filter Tabs */
.lb-category-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.lb-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 9999px;
  background: var(--bg-surface, #ffffff);
  border: 1.5px solid var(--border-color, #e8eaed);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-secondary, #5f6368);
  cursor: pointer;
  transition: all 0.18s ease;
}

.lb-tab:hover {
  background: var(--bg-surface-alt, #f8f9fa);
  border-color: #1a73e8;
  color: #1a73e8;
}

.lb-tab.active {
  background: #1a73e8;
  border-color: #1a73e8;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(26, 115, 232, 0.3);
}

/* Main Leaderboard Card */
.lb-main-card {
  background: var(--bg-surface, #ffffff);
  border: 1px solid var(--border-color, #e8eaed);
  border-radius: 24px;
  padding: clamp(20px, 3.5vw, 36px);
  box-shadow: 0 6px 24px rgba(60, 64, 67, 0.06);
  margin-bottom: 40px;
}

.lb-list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-color, #e8eaed);
}

.lb-current-cat-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main, #202124);
  margin: 0 0 4px;
}

.lb-current-cat-desc {
  font-size: 0.88rem;
  color: var(--text-muted, #70757a);
}

/* 1. PODIUM SHOWCASE */
.lb-podium-showcase {
  display: grid;
  grid-template-columns: 1fr 1.15fr 1fr;
  gap: 16px;
  align-items: end;
  margin-bottom: 36px;
  padding: 10px 0;
}

@media (max-width: 680px) {
  .lb-podium-showcase {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

.lb-podium-slot {
  background: var(--bg-surface-alt, #f8f9fa);
  border: 1.5px solid var(--border-color, #e8eaed);
  border-radius: 20px;
  padding: 24px 16px 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.lb-podium-slot:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
}

.lb-podium-slot.podium-gold {
  background: linear-gradient(180deg, #fffbeb 0%, var(--bg-surface, #ffffff) 100%);
  border-color: #fde68a;
  box-shadow: 0 8px 30px rgba(245, 158, 11, 0.15);
  transform: scale(1.03);
}

.lb-podium-slot.podium-gold:hover {
  transform: scale(1.03) translateY(-4px);
}

.podium-rank-medal {
  font-size: 2rem;
  margin-bottom: 8px;
}

.podium-avatar-wrap {
  position: relative;
  display: inline-block;
  margin-bottom: 10px;
}

.podium-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  font-size: 28px;
  border-radius: 50%;
  background: var(--bg-surface, #ffffff);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border: 2px solid var(--border-color, #e8eaed);
}

.podium-gold .podium-avatar {
  border-color: #f59e0b;
  width: 68px;
  height: 68px;
  font-size: 34px;
}

.podium-flag-pill {
  position: absolute;
  bottom: -2px;
  right: -2px;
  font-size: 16px;
}

.podium-player-name {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-main, #202124);
  margin: 0 0 6px;
}

.podium-tier-pill {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 9999px;
  margin-bottom: 10px;
}

.podium-score-badge {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 6px;
}

.podium-score-val {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--text-main, #202124);
}

.podium-score-unit {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted, #70757a);
}

.podium-streak-tag {
  font-size: 0.76rem;
  font-weight: 700;
  color: #d97706;
  margin-bottom: 12px;
}

.podium-pedestal {
  width: 100%;
  padding: 8px 12px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.pedestal-num {
  font-size: 0.9rem;
  font-weight: 900;
  color: var(--text-main, #202124);
}

.pedestal-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted, #70757a);
}

/* 2. RANKINGS TABLE */
.lb-table-responsive {
  width: 100%;
  overflow-x: auto;
}

.lb-rankings-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.lb-rankings-table th {
  padding: 12px 14px;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted, #70757a);
  border-bottom: 1px solid var(--border-color, #e8eaed);
}

.lb-rankings-table td {
  padding: 14px;
  border-bottom: 1px solid var(--border-color, #f1f3f4);
  vertical-align: middle;
}

.lb-row:hover {
  background: var(--bg-surface-alt, #f8f9fa);
}

.lb-row.is-current-user {
  background: rgba(26, 115, 232, 0.08) !important;
  font-weight: 700;
}

.lb-podium-slot.is-current-user {
  border-color: #1a73e8 !important;
  box-shadow: 0 0 0 2px #1a73e8, 0 10px 25px rgba(26, 115, 232, 0.18) !important;
}

.you-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  color: #1a73e8;
  background: rgba(26, 115, 232, 0.12);
  padding: 2px 7px;
  border-radius: 9999px;
  margin-left: 4px;
  vertical-align: middle;
  line-height: 1.2;
}

.td-rank {
  width: 60px;
}

.rank-badge {
  font-weight: 800;
  color: var(--text-muted, #70757a);
  font-size: 0.95rem;
}

.rank-badge.top-medal {
  font-size: 1.3rem;
}

.player-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}

.player-avatar-mini {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-surface-alt, #f1f3f4);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.player-name-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.player-name {
  font-weight: 700;
  color: var(--text-main, #202124);
}

.player-flag {
  font-size: 14px;
}

.verified-tick {
  color: #1a73e8;
  font-weight: 900;
  font-size: 0.85rem;
}

.tier-pill-small {
  font-size: 0.74rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 9999px;
  white-space: nowrap;
}

.streak-pill {
  font-size: 0.82rem;
  font-weight: 700;
  color: #d97706;
  white-space: nowrap;
}

.score-num {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-main, #202124);
}

/* STICKY FLOATING CURRENT PLAYER BAR */
.lb-sticky-player-bar {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: 860px;
  background: var(--bg-surface, #ffffff);
  border: 1.5px solid #1a73e8;
  border-radius: 9999px;
  padding: 10px 20px;
  box-shadow: 0 12px 36px rgba(26, 115, 232, 0.25);
  z-index: 1000;
}

.lb-sticky-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.sticky-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sticky-rank-pill {
  font-size: 0.8rem;
  font-weight: 800;
  background: #1a73e8;
  color: #ffffff;
  padding: 3px 9px;
  border-radius: 9999px;
}

.sticky-avatar {
  font-size: 22px;
}

.sticky-info {
  display: flex;
  flex-direction: column;
}

.sticky-name {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--text-main, #202124);
}

.sticky-tier {
  font-size: 0.72rem;
  color: var(--text-muted, #70757a);
}

.sticky-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.sticky-stats {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.sticky-streak {
  font-size: 0.82rem;
  font-weight: 700;
  color: #d97706;
}

.sticky-score {
  font-size: 1.1rem;
  font-weight: 900;
  color: #1a73e8;
}

/* ========================================================
   PLAYER PROFILE DASHBOARD STYLES
   ======================================================== */
.prof-hero-card {
  background: var(--bg-surface, #ffffff);
  border: 1px solid var(--border-color, #e8eaed);
  border-radius: 24px;
  padding: clamp(20px, 3vw, 32px);
  box-shadow: 0 4px 20px rgba(60, 64, 67, 0.05);
  margin-bottom: 24px;
}

.prof-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.prof-identity-wrap {
  display: flex;
  align-items: center;
  gap: 18px;
}

.prof-avatar-badge {
  position: relative;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: var(--bg-surface-alt, #f8f9fa);
  border: 2px solid var(--border-color, #e8eaed);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 38px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.prof-avatar-badge:hover {
  transform: scale(1.05);
  border-color: #1a73e8;
}

.prof-avatar-edit-icon {
  position: absolute;
  bottom: 0;
  right: 0;
  font-size: 14px;
  background: #ffffff;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.prof-name-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.prof-gamertag {
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  font-weight: 800;
  color: var(--text-main, #202124);
  margin: 0;
}

.prof-edit-name-btn {
  background: transparent;
  border: none;
  font-size: 0.8rem;
  font-weight: 700;
  color: #1a73e8;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 8px;
  transition: background 0.15s ease;
}

.prof-edit-name-btn:hover {
  background: #e8f0fe;
}

.prof-badges-line {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.prof-tier-pill {
  font-size: 0.78rem;
  font-weight: 800;
  padding: 3px 12px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.prof-streak-pill {
  font-size: 0.8rem;
  font-weight: 700;
  color: #d97706;
  background: #fef3c7;
  padding: 3px 10px;
  border-radius: 9999px;
}

.prof-status-pill {
  font-size: 0.74rem;
  font-weight: 600;
  color: #10b981;
}

.prof-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* 4 Metrics Grid */
.prof-metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

@media (max-width: 900px) {
  .prof-metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 500px) {
  .prof-metrics-grid {
    grid-template-columns: 1fr;
  }
}

.prof-stat-box {
  background: var(--bg-surface, #ffffff);
  border: 1px solid var(--border-color, #e8eaed);
  border-radius: 18px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 2px 10px rgba(60, 64, 67, 0.04);
}

.stat-icon {
  font-size: 28px;
}

.stat-meta {
  display: flex;
  flex-direction: column;
}

.stat-val {
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--text-main, #202124);
  line-height: 1.2;
}

.stat-lbl {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted, #70757a);
  margin-top: 2px;
}

/* 2-Column Dashboard */
.prof-dashboard-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 40px;
}

@media (max-width: 860px) {
  .prof-dashboard-columns {
    grid-template-columns: 1fr;
  }
}

.prof-panel-card {
  background: var(--bg-surface, #ffffff);
  border: 1px solid var(--border-color, #e8eaed);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 4px 16px rgba(60, 64, 67, 0.05);
}

.panel-header {
  margin-bottom: 20px;
}

.panel-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main, #202124);
  margin: 0 0 4px;
}

.panel-desc {
  font-size: 0.84rem;
  color: var(--text-muted, #70757a);
}

/* Color Cognitive Star Diagram & Radar Card */
.prof-radar-card {
  display: flex;
  flex-direction: column;
}

.panel-header-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.prof-overall-acuity-badge {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  padding: 6px 14px;
  border-radius: 12px;
}

.acuity-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #3b82f6;
}

.acuity-val {
  font-family: var(--font-mono, monospace);
  font-size: 1.25rem;
  font-weight: 800;
  color: #1d4ed8;
  line-height: 1.2;
}

.prof-star-diagram-stage {
  width: 100%;
  min-height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: radial-gradient(circle, rgba(248, 250, 252, 0.8) 0%, rgba(241, 245, 249, 0.4) 100%);
  border-radius: 18px;
  border: 1px solid #f1f5f9;
  margin: 16px 0 20px;
  overflow: hidden;
}

#profCognitiveRadarCanvas {
  display: block;
  max-width: 100%;
  height: auto;
}

/* Dimensions Pills Grid */
.prof-dimensions-pills-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dim-pill-item {
  background: var(--bg-surface-alt, #f8f9fa);
  border: 1px solid var(--border-color, #e8eaed);
  border-radius: 14px;
  padding: 10px 14px;
  transition: all 0.2s ease;
}

.dim-pill-item:hover {
  background: #ffffff;
  border-color: #cbd5e1;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.dim-pill-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
  font-size: 0.86rem;
}

.dim-pill-icon {
  margin-right: 6px;
  font-size: 0.95rem;
}

.dim-pill-title {
  font-weight: 700;
  color: var(--text-main, #202124);
  flex: 1;
}

.dim-pill-score {
  font-family: var(--font-mono, monospace);
  font-size: 0.9rem;
  font-weight: 800;
  color: #1e293b;
}

.dim-pill-track {
  width: 100%;
  height: 8px;
  background: #e2e8f0;
  border-radius: 9999px;
  overflow: hidden;
}

.dim-pill-fill {
  height: 100%;
  border-radius: 9999px;
  transition: width 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* 9 Games Grid in Profile */
.prof-games-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.prof-game-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: 14px;
  background: var(--bg-surface-alt, #f8f9fa);
  border: 1px solid var(--border-color, #e8eaed);
  transition: all 0.15s ease;
}

.prof-game-row:hover {
  background: #ffffff;
  border-color: #1a73e8;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.game-row-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.game-row-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.game-row-meta {
  display: flex;
  flex-direction: column;
}

.game-row-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-main, #202124);
}

.game-row-high {
  font-size: 0.76rem;
  color: var(--text-muted, #70757a);
}

.game-row-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.game-status-badge {
  font-size: 0.74rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 9999px;
  background: #e2e8f0;
  color: #64748b;
}

.game-status-badge.solved {
  background: #dcfce7;
  color: #15803d;
}

.btn-sm-google {
  padding: 6px 14px !important;
  font-size: 0.8rem !important;
  min-height: 32px;
  line-height: 1.4;
}

/* Explicit contrast guarantees for buttons */
.btn-secondary-google,
.btn-secondary-google.btn-sm-google {
  color: var(--text-main, #202124) !important;
}

.btn-secondary-google:hover,
.btn-secondary-google.btn-sm-google:hover {
  color: var(--accent, #1a73e8) !important;
}

.btn-primary-google,
.btn-primary-google.btn-sm-google {
  color: #ffffff;
}

.btn-primary-google[style*="background: var(--bg-surface"],
.btn-primary-google[style*="background:var(--bg-surface"],
.btn-primary-google[style*="background: #f"],
.btn-primary-google[style*="background:#f"],
.btn-primary-google[style*="background: #fff"],
.btn-primary-google[style*="background:#fff"],
.btn-primary-google[style*="background: white"],
.btn-primary-google[style*="background:white"] {
  color: var(--text-main, #202124) !important;
}

/* Avatar Selection Grid */
.avatar-choices-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 10px;
}

.avatar-opt-btn {
  background: var(--bg-surface-alt, #f8f9fa);
  border: 1.5px solid var(--border-color, #e8eaed);
  border-radius: 14px;
  padding: 12px;
  font-size: 26px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.avatar-opt-btn:hover {
  background: #e8f0fe;
  border-color: #1a73e8;
  transform: scale(1.08);
}

/* Edit Gamertag Input */
.prof-name-input {
  width: 100%;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1.5px solid var(--border-color, #dadce0);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-main, #202124);
  outline: none;
  transition: border-color 0.2s ease;
}

.prof-name-input:focus {
  border-color: #1a73e8;
  box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.15);
}

/* ====================================================
   CLOUD SYNC BANNERS & AUTH MODAL (IQuGames Standard)
   ==================================================== */
.prof-cloud-sync-banner {
  background: linear-gradient(135deg, #f0f7ff 0%, #f5f3ff 100%);
  border: 1.5px solid #d2e3fc;
  border-radius: 20px;
  padding: 20px 24px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  box-shadow: 0 4px 16px rgba(26, 115, 232, 0.08);
}

.cloud-banner-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.cloud-banner-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  box-shadow: 0 2px 8px rgba(26, 115, 232, 0.12);
  flex-shrink: 0;
}

.cloud-banner-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #1a73e8;
  margin: 0 0 4px;
}

.cloud-banner-desc {
  font-size: 0.88rem;
  color: #4b5563;
  margin: 0;
  line-height: 1.45;
}

.cloud-banner-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.prof-cloud-synced-banner {
  background: #f0fdf4;
  border: 1.5px solid #bbf7d0;
  border-radius: 20px;
  padding: 18px 24px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.06);
}

.synced-banner-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.synced-banner-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.12);
  flex-shrink: 0;
}

.synced-banner-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #15803d;
  margin: 0 0 3px;
}

.synced-banner-desc {
  font-size: 0.86rem;
  color: #374151;
  margin: 0;
}

.prof-status-pill.synced {
  color: #15803d;
  background: #dcfce7;
  padding: 3px 10px;
  border-radius: 9999px;
  font-weight: 700;
}

.prof-status-pill.guest {
  color: #6b7280;
  background: #f3f4f6;
  padding: 3px 10px;
  border-radius: 9999px;
  font-weight: 600;
}

.prof-sync-link-btn {
  background: none;
  border: none;
  color: #1a73e8;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  padding: 2px 6px;
}

@media (max-width: 768px) {
  .prof-cloud-sync-banner,
  .prof-cloud-synced-banner {
    flex-direction: column;
    align-items: flex-start;
  }
  .cloud-banner-actions {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}

/* Auth Dialog Modal */
.auth-dialog {
  max-width: 460px;
  width: 90%;
  padding: 28px 24px;
  position: relative;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.auth-modal-close {
  position: absolute;
  top: 16px;
  right: 18px;
  background: transparent;
  border: none;
  font-size: 24px;
  color: #5f6368;
  cursor: pointer;
  line-height: 1;
  padding: 4px 8px;
  border-radius: 8px;
  transition: all 0.15s ease;
}

.auth-modal-close:hover {
  background: #f1f3f4;
  color: #202124;
}

.auth-header {
  text-align: center;
  margin-bottom: 20px;
}

.auth-icon-badge {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: #e8f0fe;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin: 0 auto 12px;
}

.auth-title {
  font-size: 20px;
  font-weight: 800;
  color: #202124;
  margin-bottom: 6px;
}

.auth-subtitle {
  font-size: 13px;
  color: #5f6368;
  line-height: 1.45;
  margin: 0;
}

.auth-tabs {
  display: flex;
  background: #f1f3f4;
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 18px;
  gap: 4px;
}

.auth-tab {
  flex: 1;
  background: transparent;
  border: none;
  padding: 9px 12px;
  border-radius: 9px;
  font-size: 13.5px;
  font-weight: 700;
  color: #5f6368;
  cursor: pointer;
  transition: all 0.2s ease;
}

.auth-tab.active {
  background: #ffffff;
  color: #1a73e8;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.auth-alert {
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.4;
  margin-bottom: 14px;
  text-align: left;
}

.auth-alert.error {
  background: #fce8e6;
  color: #c5221f;
  border: 1px solid #f28b82;
}

.auth-alert.success {
  background: #e6f4ea;
  color: #137333;
  border: 1px solid #81c995;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: left;
}

.auth-form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.auth-form-label {
  font-size: 12.5px;
  font-weight: 700;
  color: #3c4043;
}

.auth-form-input {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid #dadce0;
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
  color: #202124;
  background: #ffffff;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}

.auth-form-input:focus {
  outline: none;
  border-color: #1a73e8;
  box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.15);
}

.btn-auth-submit {
  width: 100%;
  justify-content: center;
  padding: 12px 18px;
  font-size: 14.5px;
  font-weight: 700;
  border-radius: 9999px;
  margin-top: 4px;
  cursor: pointer;
}

.auth-footer-note {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid #e8eaed;
  font-size: 12px;
  color: #5f6368;
  line-height: 1.45;
  text-align: center;
}

/* ====================================================
   SOCIAL MEDIA SHARE CHIPS (IQuGames Standard)
   ==================================================== */
.share-social-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 14px 0;
  padding: 12px 16px;
  background: #f8f9fa;
  border-radius: 16px;
  border: 1px solid #e8eaed;
}

.share-social-label {
  font-size: 12px;
  font-weight: 800;
  color: #5f6368;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.share-social-chips {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.social-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 13px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
  line-height: 1.2;
}

.social-chip:hover {
  transform: translateY(-1.5px);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12);
}

.chip-x {
  background: #000000;
  color: #ffffff;
  border-color: #000000;
}
.chip-x:hover {
  background: #1a1a1a;
  color: #ffffff;
}

.chip-fb {
  background: #1877F2;
  color: #ffffff;
  border-color: #1877F2;
}
.chip-fb:hover {
  background: #166fe5;
  color: #ffffff;
}

.chip-reddit {
  background: #ff4500;
  color: #ffffff;
  border-color: #ff4500;
}
.chip-reddit:hover {
  background: #e03d00;
  color: #ffffff;
}

.chip-discord {
  background: #5865F2;
  color: #ffffff;
  border: none;
  font-family: inherit;
}
.chip-discord:hover {
  background: #4752c4;
}

.chip-wa {
  background: #25D366;
  color: #ffffff;
  border-color: #25D366;
}
.chip-wa:hover {
  background: #1ebe57;
  color: #ffffff;
}

.share-feedback-notice {
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 12.5px;
  font-weight: 600;
  text-align: center;
  margin-bottom: 12px;
  background: #e6f4ea;
  color: #137333;
  border: 1px solid #ceead6;
}

/* ====================================================
   LEGAL & INFORMATIONAL PAGES (About, Contact, Terms, Privacy)
   ==================================================== */
.icp-legal-main {
  padding: 40px 0 70px;
}

.icp-page-hero {
  text-align: center;
  margin-bottom: 32px;
}

.icp-page-hero .hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 9999px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #2563eb;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.icp-page-hero .hero-title {
  font-size: 2.3rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--text-main, #202124);
  margin: 0 0 10px;
  line-height: 1.2;
}

.icp-page-hero .hero-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted, #5f6368);
  max-width: 820px;
  margin: 0 auto;
  line-height: 1.55;
}

/* Prose Card Container */
.icp-prose-card {
  background: var(--bg-surface, #ffffff);
  border: 1px solid var(--border-color, #e8eaed);
  border-radius: 24px;
  padding: 40px 44px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

@media (max-width: 768px) {
  .icp-prose-card {
    padding: 24px 20px;
    border-radius: 18px;
  }
}

.prose-section {
  margin-bottom: 36px;
}

.prose-section:last-child {
  margin-bottom: 0;
}

.prose-icon-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.prose-icon-heading h2 {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-main, #202124);
  margin: 0;
  letter-spacing: -0.015em;
}

.prose-icon-heading .prose-icon {
  font-size: 1.35rem;
  line-height: 1;
}

.prose-section p {
  font-size: 0.98rem;
  line-height: 1.7;
  color: var(--text-main, #3c4043);
  margin-bottom: 14px;
}

.prose-section p:last-child {
  margin-bottom: 0;
}

/* About Steps 3-Column Grid */
.about-steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.about-step-card {
  background: var(--bg-surface-alt, #f8f9fa);
  border: 1px solid var(--border-color, #e8eaed);
  border-radius: 18px;
  padding: 22px 18px;
  position: relative;
  transition: all 0.2s ease;
}

.about-step-card:hover {
  transform: translateY(-3px);
  border-color: #bad3fb;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
}

.step-num-pill {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #2563eb;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.88rem;
  margin-bottom: 12px;
}

.about-step-card h3 {
  font-size: 1.05rem;
  font-weight: 800;
  margin: 0 0 8px;
  color: var(--text-main, #202124);
}

.about-step-card p {
  font-size: 0.88rem;
  color: var(--text-muted, #5f6368);
  line-height: 1.5;
  margin: 0;
}

/* About Features List */
.about-features-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 14px;
}

.about-feature-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 18px;
  background: var(--bg-surface-alt, #f8f9fa);
  border: 1px solid var(--border-color, #e8eaed);
  border-radius: 16px;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--text-main, #3c4043);
}

.about-feature-row .feat-check {
  font-size: 1.25rem;
  line-height: 1.2;
}

.about-feature-row strong {
  display: block;
  font-weight: 700;
  color: var(--text-main, #202124);
  margin-bottom: 2px;
}

/* About Callout Card */
.about-callout-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #eff6ff;
  border: 1.5px solid #bfdbfe;
  border-radius: 20px;
  padding: 26px 28px;
  margin-top: 36px;
}

@media (max-width: 640px) {
  .about-callout-card {
    flex-direction: column;
    text-align: center;
    gap: 14px;
    padding: 20px;
  }
}

.about-callout-card .callout-icon {
  font-size: 2.2rem;
  line-height: 1;
}

.about-callout-card h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: #1e3a8a;
  margin: 0 0 6px;
}

.about-callout-card p {
  font-size: 0.92rem;
  color: #1e40af;
  line-height: 1.5;
  margin: 0 0 16px;
}

.btn-about-contact {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #2563eb;
  color: #ffffff;
  padding: 10px 22px;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none;
  transition: all 0.15s ease;
}

.btn-about-contact:hover {
  background: #1d4ed8;
  color: #ffffff;
  transform: translateY(-1.5px);
}

/* ====================================================
   CONTACT PAGE GRID & FORM
   ==================================================== */
.contact-grid-arena {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 24px;
  align-items: start;
}

@media (max-width: 860px) {
  .contact-grid-arena {
    grid-template-columns: 1fr;
  }
}

.contact-channels-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-info-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--bg-surface, #ffffff);
  border: 1px solid var(--border-color, #e8eaed);
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.channel-icon-wrap {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.channel-body h3 {
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--text-main, #202124);
  margin: 0 0 4px;
}

.channel-body p {
  font-size: 0.85rem;
  color: var(--text-muted, #5f6368);
  line-height: 1.45;
  margin: 0;
}

.contact-form-card {
  padding: 32px 36px;
}

@media (max-width: 640px) {
  .contact-form-card {
    padding: 22px 18px;
  }
}

.form-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
  flex-wrap: wrap;
  gap: 10px;
}

.form-header-row h2 {
  font-size: 1.35rem;
  font-weight: 800;
  margin: 0;
  color: var(--text-main, #202124);
}

.response-time-pill {
  font-size: 0.76rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 9999px;
  background: #f0fdf4;
  color: #16a34a;
  border: 1px solid #bbf7d0;
}

.icp-modern-contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-row-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 600px) {
  .form-row-2col {
    grid-template-columns: 1fr;
  }
}

.form-field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-field-label {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text-main, #3c4043);
}

.form-field-label .req-star {
  color: #ef4444;
}

.form-field-input,
.form-field-select,
.form-field-textarea {
  width: 100%;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--border-color, #dadce0);
  background: var(--bg-surface-alt, #f8f9fa);
  color: var(--text-main, #202124);
  font-size: 0.92rem;
  font-family: inherit;
  transition: all 0.15s ease;
}

.form-field-input:focus,
.form-field-select:focus,
.form-field-textarea:focus {
  outline: none;
  border-color: #2563eb;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.form-field-textarea {
  resize: vertical;
  min-height: 110px;
}

.btn-submit-contact {
  align-self: flex-start;
  padding: 12px 28px;
  font-size: 0.95rem;
  font-weight: 800;
  border-radius: 12px;
  cursor: pointer;
  margin-top: 6px;
  background: #2563eb;
  color: #ffffff;
  border: none;
  transition: all 0.15s ease;
}

.btn-submit-contact:hover:not(:disabled) {
  background: #1d4ed8;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25);
}

.contact-alert-banner {
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 0.92rem;
  margin-bottom: 16px;
  line-height: 1.45;
}

.contact-alert-banner.success {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.contact-alert-banner.error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

/* ====================================================
   LEGAL DOCUMENTS (Terms & Privacy Policy)
   ==================================================== */
.legal-summary-callout {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 20px;
  border-radius: 16px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  margin-bottom: 32px;
  font-size: 0.92rem;
  line-height: 1.55;
  color: #334155;
}

.legal-summary-callout .summary-icon {
  font-size: 1.4rem;
  line-height: 1;
}

.legal-summary-callout.privacy-summary {
  background: #f0fdf4;
  border-color: #bbf7d0;
  color: #14532d;
}

.styled-legal-list {
  margin: 12px 0 16px 20px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.styled-legal-list li {
  font-size: 0.94rem;
  line-height: 1.6;
  color: var(--text-main, #3c4043);
}

.styled-legal-list li strong {
  color: var(--text-main, #202124);
}

.legal-contact-callout {
  margin-top: 40px;
  background: var(--bg-surface-alt, #f8f9fa);
  border-color: var(--border-color, #e8eaed);
}

.legal-contact-callout h3 {
  color: var(--text-main, #202124);
}

.legal-contact-callout p {
  color: var(--text-muted, #5f6368);
}

/* ====================================================
   FAQ PAGE ACCORDIONS & INTERACTIVE SEARCH
   ==================================================== */
.faq-search-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  max-width: 680px;
  margin: 0 auto 20px;
}

.faq-search-icon {
  position: absolute;
  left: 18px;
  font-size: 1.15rem;
  color: var(--text-muted, #70757a);
  pointer-events: none;
}

.faq-search-input {
  width: 100%;
  padding: 14px 46px 14px 50px;
  border-radius: 9999px;
  border: 1.5px solid var(--border-color, #dadce0);
  background: var(--bg-surface, #ffffff);
  color: var(--text-main, #202124);
  font-size: 0.98rem;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.04);
  transition: all 0.2s ease;
}

.faq-search-input:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15);
}

.faq-search-clear {
  position: absolute;
  right: 14px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-surface-alt, #e8eaed);
  border: none;
  color: var(--text-muted, #5f6368);
  font-size: 1.2rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.faq-search-clear:hover {
  background: #cbd5e1;
  color: #1e293b;
}

/* FAQ Category Pills */
.faq-category-pills {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.faq-cat-pill {
  padding: 8px 18px;
  border-radius: 9999px;
  border: 1px solid var(--border-color, #dadce0);
  background: var(--bg-surface, #ffffff);
  color: var(--text-main, #3c4043);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s ease;
}

.faq-cat-pill:hover {
  background: var(--bg-surface-alt, #f1f3f4);
  border-color: #bad3fb;
}

.faq-cat-pill.active {
  background: #2563eb;
  border-color: #2563eb;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.28);
}

/* FAQ Group & Accordions */
.faq-card-container {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.faq-group-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border-color, #f1f3f4);
}

.faq-group-icon {
  font-size: 1.35rem;
  line-height: 1;
}

.faq-group-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main, #202124);
  margin: 0;
}

.faq-items-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Accordion Item */
.faq-item-accordion {
  border: 1px solid var(--border-color, #e8eaed);
  border-radius: 16px;
  background: var(--bg-surface-alt, #f8f9fa);
  overflow: hidden;
  transition: all 0.2s ease;
}

.faq-item-accordion:hover {
  border-color: #bfdbfe;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.faq-item-accordion[open] {
  background: var(--bg-surface, #ffffff);
  border-color: #93c5fd;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.06);
}

.faq-item-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--text-main, #202124);
  cursor: pointer;
  list-style: none;
  user-select: none;
  gap: 14px;
}

.faq-item-question::-webkit-details-marker {
  display: none;
}

.faq-chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted, #70757a);
  transition: transform 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
}

.faq-item-accordion[open] .faq-chevron {
  transform: rotate(180deg);
  color: #2563eb;
}

.faq-item-answer {
  padding: 0 20px 18px;
  border-top: 1px solid transparent;
}

.faq-item-accordion[open] .faq-item-answer {
  border-top-color: var(--border-color, #f1f3f4);
  padding-top: 14px;
}

.faq-item-answer p {
  font-size: 0.94rem;
  line-height: 1.68;
  color: var(--text-main, #3c4043);
  margin: 0 0 10px;
}

.faq-item-answer p:last-child {
  margin-bottom: 0;
}

.faq-item-answer code {
  background: var(--bg-surface-alt, #e8eaed);
  padding: 2px 6px;
  border-radius: 6px;
  font-family: var(--font-mono, monospace);
  font-size: 0.88rem;
  color: #1e293b;
}

.faq-no-results-banner {
  text-align: center;
  padding: 48px 20px;
}

.faq-no-results-banner .no-res-icon {
  font-size: 2.8rem;
  display: block;
  margin-bottom: 12px;
}

.faq-no-results-banner h3 {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-main, #202124);
  margin: 0 0 6px;
}

.faq-no-results-banner p {
  font-size: 0.92rem;
  color: var(--text-muted, #5f6368);
  margin: 0;
}

.faq-contact-callout {
  margin-top: 16px;
}

/* ====================================================
   FOOTER INTERACTIVE VERSION BADGE & MODAL
   ==================================================== */
.footer-version-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 10px;
  padding: 3px 10px;
  background: var(--bg-surface-alt, #f1f3f4);
  border: 1px solid var(--border-color, #dadce0);
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-main, #3c4043);
  cursor: pointer;
  vertical-align: middle;
  transition: all 0.18s ease;
}

.footer-version-badge:hover {
  background: #ffffff;
  border-color: #2563eb;
  color: #2563eb;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.18);
}

.version-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: versionPulse 2s infinite;
}

@keyframes versionPulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 5px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.version-text {
  font-family: var(--font-mono, monospace);
  font-weight: 800;
}

.version-tag {
  font-size: 0.62rem;
  font-weight: 800;
  padding: 1px 5px;
  background: #dcfce7;
  color: #15803d;
  border-radius: 4px;
  letter-spacing: 0.04em;
}

/* Version Modal Dialog */
.version-dialog {
  max-width: 520px;
  padding: 32px 30px;
}

.version-modal-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.version-badge-lg {
  position: relative;
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono, monospace);
  font-size: 0.95rem;
  font-weight: 800;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.version-modal-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main, #202124);
  margin: 0 0 4px;
}

.version-modal-subtitle {
  font-size: 0.82rem;
  color: var(--text-muted, #5f6368);
  margin: 0;
}

.version-specs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 24px;
}

.version-spec-card {
  background: var(--bg-surface-alt, #f8f9fa);
  border: 1px solid var(--border-color, #e8eaed);
  border-radius: 12px;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
}

.spec-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted, #70757a);
  letter-spacing: 0.04em;
}

.spec-val {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--text-main, #202124);
  margin-top: 2px;
}

.version-changelog-section {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 16px 20px;
  margin-bottom: 24px;
}

.changelog-title {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--text-main, #1e293b);
  margin: 0 0 10px;
}

.version-changelog-list {
  margin: 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--text-main, #334155);
}

.version-modal-actions button {
  padding: 12px;
  font-size: 0.95rem;
  font-weight: 800;
  border-radius: 12px;
}

/* ====================================================
   INSIGHTS & RELEASE HUB (POSTS INDEX)
   ==================================================== */
.hub-filter-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.hub-pill-btn {
  padding: 9px 20px;
  border-radius: 9999px;
  border: 1px solid var(--border-color, #dadce0);
  background: var(--bg-surface, #ffffff);
  color: var(--text-main, #3c4043);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s ease;
}

.hub-pill-btn:hover {
  background: var(--bg-surface-alt, #f1f3f4);
  border-color: #bad3fb;
}

.hub-pill-btn.active {
  background: #2563eb;
  border-color: #2563eb;
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(37, 99, 235, 0.28);
}

.hub-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin-bottom: 48px;
}

.hub-card {
  background: var(--bg-surface, #ffffff);
  border: 1px solid var(--border-color, #e8eaed);
  border-radius: 20px;
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

.hub-card:hover {
  transform: translateY(-4px);
  border-color: #bad3fb;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
}

.hub-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.hub-badge {
  font-size: 0.75rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 8px;
  border: 1px solid transparent;
  letter-spacing: 0.02em;
}

.hub-version-tag {
  font-family: var(--font-mono, monospace);
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--text-muted, #70757a);
  background: var(--bg-surface-alt, #f1f3f4);
  padding: 3px 8px;
  border-radius: 6px;
}

.hub-card-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main, #202124);
  margin: 0 0 8px;
  line-height: 1.35;
}

.hub-card-date {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted, #70757a);
  margin-bottom: 12px;
}

.hub-card-excerpt {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--text-main, #3c4043);
  margin-bottom: 18px;
  flex-grow: 1;
}

.hub-highlights-box {
  background: var(--bg-surface-alt, #f8f9fa);
  border: 1px solid var(--border-color, #e8eaed);
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 20px;
}

.highlights-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--text-main, #202124);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 8px;
}

.highlights-list {
  margin: 0;
  padding-left: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.highlights-list li {
  font-size: 0.85rem;
  line-height: 1.45;
  color: var(--text-muted, #4b5563);
}

.hub-card-footer {
  margin-top: auto;
  padding-top: 10px;
}

.hub-card-footer a {
  width: 100%;
  justify-content: center;
}

/* ==========================================================================
   HOMEPAGE GAMES CAROUSEL
   ========================================================================== */

.games-carousel-section {
  position: relative;
  margin: 40px 0;
}

.games-carousel-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.games-carousel-title-col {
  flex: 1;
  min-width: 260px;
}

.games-carousel-title-col .hero-badge {
  display: inline-block;
  margin-bottom: 8px;
}

.games-carousel-title-col h2 {
  font-size: clamp(1.4rem, 2.8vw, 1.85rem);
  font-weight: 800;
  color: var(--text-main, #202124);
  margin: 0 0 6px;
  line-height: 1.25;
}

.games-carousel-title-col p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-muted, #5f6368);
  line-height: 1.5;
}

.games-carousel-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.carousel-arrow-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.carousel-arrow-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border-color, #dadce0);
  background: var(--bg-surface, #ffffff);
  color: var(--text-main, #3c4043);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.carousel-arrow-btn:hover:not(:disabled) {
  background: var(--bg-surface-alt, #f8f9fa);
  border-color: var(--accent, #1a73e8);
  color: var(--accent, #1a73e8);
  box-shadow: 0 2px 8px rgba(26, 115, 232, 0.2);
  transform: translateY(-1px);
}

.carousel-arrow-btn:active:not(:disabled) {
  transform: translateY(0);
}

.carousel-arrow-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}

.games-carousel-viewport {
  position: relative;
  overflow: hidden;
  margin: 0 -12px;
  padding: 8px 12px 16px;
}

.games-carousel-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 4px;
}

.games-carousel-track::-webkit-scrollbar {
  display: none;
}

.game-carousel-card {
  flex: 0 0 calc(33.333% - 11px);
  min-width: 290px;
  max-width: 380px;
  scroll-snap-align: start;
  border-radius: var(--radius-lg, 16px);
  background: var(--bg-surface, #ffffff);
  border: 1px solid var(--border-color, #e8eaed);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.game-carousel-card:hover {
  transform: translateY(-4px);
  border-color: #bad3fb;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.game-carousel-card .tool-card-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.game-carousel-card:hover .tool-card-icon {
  transform: scale(1.1) rotate(-3deg);
}

.game-card-emoji {
  font-size: 1.5rem;
  line-height: 1;
  display: inline-block;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.game-card-subcat {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 3px;
  display: block;
}

.game-carousel-card .tool-card-meta {
  flex: 1;
  min-width: 0;
}

.game-carousel-card .tool-card-meta h3 {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-main, #202124);
  margin: 0 0 3px;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.game-carousel-card .tool-card-meta p {
  font-size: 0.82rem;
  color: var(--text-muted, #5f6368);
  margin: 0;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.games-carousel-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
}

.carousel-dot-btn {
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  background: var(--border-color, #dadce0);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-dot-btn.active {
  width: 24px;
  background: var(--accent, #1a73e8);
}

@media (max-width: 992px) {
  .game-carousel-card {
    flex: 0 0 calc(50% - 8px);
    min-width: 260px;
  }
}

@media (max-width: 600px) {
  .games-carousel-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .games-carousel-actions {
    width: 100%;
    justify-content: space-between;
  }
  .game-carousel-card {
    flex: 0 0 82%;
    min-width: 240px;
  }
}



