* { box-sizing: border-box; image-rendering: pixelated; }

    :root {
      --bg-0: #06060a;
      --bg-1: #0b0b12;
      --bg-2: #11111a;
      --panel: rgba(18, 18, 26, 0.82);
      --panel-strong: rgba(12, 12, 18, 0.92);
      --line: rgba(255, 255, 255, 0.08);
      --line-strong: rgba(255, 255, 255, 0.14);
      --text: #edf0f7;
      --muted: #9aa1b5;
      --muted-2: #6f7690;
      --accent: #b77cff;
      --accent-2: #8d5cff;
      --accent-soft: rgba(183, 124, 255, 0.16);
      --success: #3f9f56;
      --success-soft: #4bb468;
      --danger: #d34b57;
      --danger-soft: #ef6b73;
      --shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
      --shadow-soft: 0 12px 30px rgba(0, 0, 0, 0.35);
      --radius-xl: 28px;
      --radius-lg: 22px;
      --radius-md: 16px;
      --radius-sm: 12px;
    }

    html, body { min-height: 100%; }

    body {
  background: #06060a; /* base dark, no static image here */

  color: white;
  font-family: 'Inter', sans-serif;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  padding: 60px 20px 0 20px;
  overflow-x: hidden;
}

    body::before {
  content: "";
  position: fixed;
  inset: -5%; /* extra space to avoid edges showing */
  background: url('../../../bg.png') center/cover no-repeat;

  filter: blur(5px) brightness(0.55) saturate(1.3);

  animation: bgDrift 55s ease-in-out infinite;

  z-index: -1;
}
@keyframes bgDrift {
  0% {
    transform: scale(1.06) translate(0px, 0px);
    filter: blur(5px) brightness(0.55) saturate(1.25);
  }

  50% {
    transform: scale(1.075) translate(-8px, 6px);
    filter: blur(5.5px) brightness(0.57) saturate(1.25);
  }

  100% {
    transform: scale(1.06) translate(0px, 0px);
    filter: blur(5px) brightness(0.55) saturate(1.25);
  }
}

.shell {
  position: relative;
  z-index: 1;
}

    body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;

  background:
    radial-gradient(circle at 20% 30%, rgba(183,124,255,0.12), transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(141,92,255,0.10), transparent 45%);

  mix-blend-mode: screen;
  opacity: 0.6;

  animation: energyShift 18s ease-in-out infinite alternate;

  z-index: 0;
}
@keyframes energyShift {
  0% {
    transform: translate(0px, 0px) scale(1);
    opacity: 0.5;
  }
  50% {
    transform: translate(-20px, 10px) scale(1.1);
    opacity: 0.7;
  }
  100% {
    transform: translate(15px, -15px) scale(1.05);
    opacity: 0.55;
  }
}
body .bg-energy {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

    #notification {
      position: fixed;
      top: -120px;
      left: 50%;
      transform: translateX(-50%);
      background: rgba(10, 10, 14, 0.95);
      border: 1px solid rgba(183, 124, 255, 0.72);
      color: var(--text);
      padding: 14px 18px;
      border-radius: 999px;
      font-family: 'Press Start 2P', cursive;
      font-size: 8px;
      letter-spacing: 0.5px;
      z-index: 6000;
      box-shadow: 0 10px 28px rgba(0,0,0,0.45), 0 0 0 1px rgba(255,255,255,0.03) inset;
      transition: top 0.35s cubic-bezier(0.18, 0.89, 0.32, 1.2), opacity 0.35s ease;
      opacity: 0;
      white-space: nowrap;
    }
    #notification.show { top: 24px; opacity: 1; }

    .shell {
      width: 100%;
      max-width: 1120px;
      display: flex;
      flex-direction: column;
      align-items: center;
      position: relative;
      z-index: 5;
    }


    .top-glass {
      width: 100%;
      max-width: 760px;
      margin-bottom: 28px;
      padding: 22px;
      border-radius: var(--radius-xl);
      background:
        linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01)),
        var(--panel);
      border: 1px solid rgba(183,124,255,0.22);
      box-shadow:
        0 0 0 1px rgba(183,124,255,0.08),
        0 0 28px rgba(183,124,255,0.10),
        var(--shadow);
      backdrop-filter: blur(18px);
      -webkit-backdrop-filter: blur(18px);
      position: relative;
      overflow: hidden;
    }

    .quest-layout {
      width: 100%;
      max-width: 1176px;
      margin-bottom: 28px;
      display: flex;
      align-items: stretch;
      justify-content: center;
      gap: 18px;
      transform: translateX(-13px);
    }

    .quest-layout::before {
      content: "";
      width: 190px;
      flex: 0 0 190px;
    }

    .quest-layout .top-glass {
      flex: 0 1 760px;
      margin-bottom: 0;
    }

    .top-actions {
      position: absolute;
      top: 14px;
      right: 14px;
      z-index: 2;
    }

    .top-glass::before {
      content: "";
      position: absolute;
      inset: 0;
      border-radius: inherit;
      pointer-events: none;
      background: radial-gradient(circle at 10% 0%, rgba(183,124,255,0.10), transparent 34%);
      opacity: 0.9;
    }

    .top-title {
      margin: 0 0 18px;
      text-align: center;
      font-family: 'Press Start 2P', cursive;
      font-size: 11px;
      line-height: 1.6;
      letter-spacing: 1px;
      color: var(--accent);
      text-shadow: 0 2px 0 #000;
    }

    .quest-help-row {
      position: relative;
      z-index: 1;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 12px;
      margin: -6px auto 18px;
      flex-wrap: wrap;
    }

    .spoiler-note {
      position: relative;
      z-index: 1;
      margin: 0;
      width: fit-content;
      max-width: 100%;
      padding: 10px 14px;
      border-radius: 14px;
      background: rgba(183,124,255,0.10);
      border: 1px solid rgba(183,124,255,0.22);
      color: rgba(237,240,247,0.76);
      font-family: 'Press Start 2P', cursive;
      font-size: 7px;
      line-height: 1.7;
      text-align: center;
      text-shadow: 0 2px 0 #000;
    }

    .spoiler-note span {
      color: var(--accent);
    }

    .clue-row {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 16px;
    }

    .clue-tile {
      min-height: 194px;
      border-radius: var(--radius-lg);
      background:
        linear-gradient(180deg, rgba(255,255,255,0.04), transparent),
        linear-gradient(180deg, rgba(12, 12, 18, 0.98), rgba(9, 9, 14, 0.98));
      border: 1px solid rgba(183,124,255,0.18);
      box-shadow:
        0 0 0 1px rgba(183,124,255,0.07),
        inset 0 1px 0 rgba(255,255,255,0.03),
        inset 0 -1px 0 rgba(0,0,0,0.35),
        0 14px 26px rgba(0,0,0,0.28),
        0 0 22px rgba(183,124,255,0.06);
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      text-align: center;
      padding: 18px;
      position: relative;
      overflow: hidden;
    }

    .clue-tile::after {
      content: "";
      position: absolute;
      inset: 0;
      pointer-events: none;
      background: linear-gradient(180deg, rgba(183,124,255,0.08), transparent 30%, transparent 70%, rgba(255,255,255,0.03));
      opacity: 0.55;
    }

    .clue-label {
    font-family: 'Press Start 2P', cursive;
    font-size: 9px; /* bigger */
    color: #aaa;
    margin: 0 auto 12px auto;
    line-height: 1.8;
    text-transform: uppercase;
    width: 100%;
    text-align: center;
}

    .tile-icon {
      position: relative;
      z-index: 1;
      font-size: 34px;
      opacity: 0.18;
      line-height: 1;
      margin-bottom: 14px;
      filter: grayscale(1);
    }

    .reveal-btn {
      position: relative;
      z-index: 1;
      border: 1px solid rgba(255,255,255,0.14);
      background: linear-gradient(180deg, rgba(183,124,255,1), rgba(141,92,255,1));
      color: #0b0912;
      padding: 12px 16px;
      border-radius: 14px;
      font-family: 'Press Start 2P', cursive;
      font-size: 8px;
      font-weight: 900;
      cursor: pointer;
      box-shadow: 0 10px 24px rgba(141,92,255,0.18);
      transition: transform 0.15s ease, filter 0.15s ease;
    }
    .reveal-btn:hover { transform: translateY(-1px); filter: brightness(1.08); }

    #hintImg {
      position: relative;
      z-index: 1;
      height: 122px;
      width: auto;
      border-radius: 12px;
      display: none;
      border: 1px solid rgba(255,255,255,0.10);
      box-shadow: 0 10px 24px rgba(0,0,0,0.32);
      filter: blur(10px) saturate(0.95) contrast(1.03);
      pointer-events: none;
      -webkit-user-drag: none;
      user-select: none;
    }

    .skin-clue-guard {
      position: relative;
      z-index: 1;
      display: none;
      line-height: 0;
      user-select: none;
      -webkit-user-select: none;
    }

    .skin-clue-guard::after {
      content: "";
      position: absolute;
      inset: 0;
      z-index: 2;
      border-radius: 12px;
      background: transparent;
    }

    .xp-container {
      width: 100%;
      max-width: 500px;
      margin-bottom: 34px;
      text-align: center;
    }

    .xp-level {
      font-family: 'Press Start 2P', cursive;
      font-size: 14px;
      color: var(--accent);
      text-shadow: 0 2px 0 #000;
      margin-bottom: 10px;
    }

    .xp-bar-outer {
      width: 100%;
      height: 14px;
      background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(0,0,0,0.35)), rgba(0,0,0,0.55);
      border: 1px solid rgba(255,255,255,0.08);
      border-radius: 999px;
      overflow: hidden;
      box-shadow: inset 0 1px 0 rgba(255,255,255,0.04), 0 10px 24px rgba(0,0,0,0.26);
    }

    .xp-bar-fill {
      height: 100%;
      width: 0%;
      border-radius: inherit;
      background: linear-gradient(90deg, #8f57ff, #b77cff, #d0a8ff);
      box-shadow: 0 0 0 1px rgba(255,255,255,0.08) inset;
      transition: width 0.8s ease;
    }

    .search-wrapper {
      width: 100%;
      max-width: 560px;
      margin-bottom: 34px;
      position: relative;
      z-index: 12;
    }

    .search-wrapper.suggestions-open {
      z-index: 120;
    }

    .search-container {
      display: flex;
      align-items: stretch;
      width: 100%;
      background: rgba(10, 10, 14, 0.85);
      border: 1px solid rgba(255,255,255,0.10);
      border-radius: 20px;
      overflow: hidden;
      box-shadow: var(--shadow-soft);
      backdrop-filter: blur(16px);
      -webkit-backdrop-filter: blur(16px);
    }

    #guessInput {
      flex: 1;
      min-width: 0;
      background: transparent;
      border: 0;
      outline: none;
      color: var(--text);
      font-size: 16px;
      padding: 18px 18px;
      font-weight: 700;
      letter-spacing: 0.2px;
    }

    #guessInput::placeholder { color: var(--muted-2); }
    #guessInput:disabled { opacity: 0.55; color: #7b8095; }

    .guess-btn {
      flex: 0 0 auto;
      min-width: 132px;
      padding: 0 20px;
      border: 0;
      border-left: 1px solid rgba(255,255,255,0.08);
      background: linear-gradient(180deg, rgba(183,124,255,1), rgba(141,92,255,1));
      color: #0d0912;
      font-family: 'Press Start 2P', cursive;
      font-size: 10px;
      font-weight: 900;
      cursor: pointer;
      transition: transform 0.15s ease, filter 0.15s ease;
    }
    .guess-btn:hover { filter: brightness(1.07); }
    .guess-btn:active { transform: translateY(1px); }
    .guess-btn:disabled { background: #1b1b24; color: #5e6377; cursor: not-allowed; }

    .yesterday-answer {
      width: max-content;
      max-width: 100%;
      margin: 12px auto 0;
      padding: 0;
      border: 0;
      background: transparent;
      color: rgba(237,240,247,0.68);
      font-family: 'Press Start 2P', cursive;
      font-size: 9px;
      line-height: 1.7;
      text-align: center;
      text-shadow: 0 2px 0 #000;
      box-shadow: none;
    }

    .yesterday-answer span {
      color: #b77cff;
      font-size: 12px;
      text-shadow: 0 2px 0 #000, 0 0 12px rgba(183,124,255,0.36);
    }

    .suggestions-box {
      position: absolute;
      top: calc(100% + 12px);
      left: 0;
      right: 0;
      z-index: 120;
      width: 100%;
      margin-top: 0;
      display: none;
      background: rgba(11, 11, 17, 0.98);
      border: 1px solid rgba(255,255,255,0.10);
      border-radius: 18px;
      overflow: hidden;
      box-shadow: 0 24px 60px rgba(0,0,0,0.55);
      backdrop-filter: blur(18px);
      -webkit-backdrop-filter: blur(18px);
      max-height: 360px;
      overflow-y: auto;
    }

    .suggestion-item {
      display: flex;
      align-items: center;
      gap: 14px;
      padding: 12px 14px;
      cursor: pointer;
      color: var(--text);
      border-bottom: 1px solid rgba(255,255,255,0.06);
      transition: background 0.12s ease;
    }
    .suggestion-item:hover { background: rgba(255,255,255,0.05); }
    .suggestion-item img {
      width: 38px;
      height: 38px;
      border-radius: 10px;
      border: 1px solid rgba(255,255,255,0.08);
      flex: 0 0 auto;
    }
    .suggestion-info b {
      display: block;
      font-size: 14px;
      margin-bottom: 2px;
    }

    #gameArea {
      width: 100%;
      overflow-x: auto;
      padding: 8px 0 20px;
      -webkit-overflow-scrolling: touch;
      position: relative;
      z-index: 2;
    }

    #headerRow {
      display: none;
      gap: 12px;
      justify-content: center;
      min-width: 760px;
      margin: 0 auto 14px;
      width: fit-content;
    }

    .header-item {
      width: 110px;
      min-height: 38px;
      text-align: center;
      font-family: 'Press Start 2P', cursive;
      font-size: 8px;
      color: var(--muted);
      letter-spacing: 0.8px;
      text-transform: uppercase;
      line-height: 1.4;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .header-label {
      width: 100%;
      min-height: 38px;
      border: 1px solid rgba(255,255,255,0.07);
      border-radius: 10px;
      background: rgba(10,10,16,0.42);
      color: inherit;
      font: inherit;
      letter-spacing: inherit;
      text-transform: inherit;
      line-height: inherit;
      text-shadow: 0 2px 0 #000;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 5px 7px;
      box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
    }

    .guide-scrim {
      position: fixed;
      inset: 0;
      z-index: 2390;
      background: rgba(3,3,8,0.66);
      backdrop-filter: blur(8px);
      -webkit-backdrop-filter: blur(8px);
      opacity: 0;
      visibility: hidden;
      pointer-events: none;
      transition: opacity 0.16s ease, visibility 0s linear 0.16s;
    }

    body.guide-open .guide-scrim {
      opacity: 1;
      visibility: visible;
      pointer-events: auto;
      transition-delay: 0s;
    }

    .category-guide {
      display: none;
      position: fixed;
      top: 82px;
      left: 50%;
      transform: translateX(-50%) translateY(-8px);
      z-index: 2400;
      width: min(820px, calc(100vw - 32px));
      max-height: calc(100vh - 120px);
      overflow-y: auto;
      padding: 22px;
      border-radius: 18px;
      background:
        linear-gradient(180deg, rgba(255,255,255,0.04), transparent),
        rgba(10,10,16,0.97);
      border: 1px solid rgba(183,124,255,0.30);
      box-shadow:
        0 26px 70px rgba(0,0,0,0.58),
        0 0 0 1px rgba(255,255,255,0.03) inset,
        0 0 28px rgba(183,124,255,0.10);
      backdrop-filter: blur(14px);
      -webkit-backdrop-filter: blur(14px);
    }

    .category-guide.show {
      display: block;
      animation: guidePop 0.18s ease-out both;
    }

    @keyframes guidePop {
      from { opacity: 0; transform: translateX(-50%) translateY(4px) scale(0.98); }
      to { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
    }

    .guide-title {
      margin: 0 0 12px;
      font-family: 'Press Start 2P', cursive;
      font-size: 14px;
      line-height: 1.5;
      color: var(--accent);
      text-shadow: 0 2px 0 #000;
      text-align: center;
    }

    .guide-copy {
      margin: 0 auto 16px;
      max-width: 680px;
      font-family: 'Press Start 2P', cursive;
      font-size: 7px;
      line-height: 1.7;
      color: rgba(237,240,247,0.55);
      text-shadow: 0 2px 0 #000;
      text-align: center;
    }

    .guide-close {
      position: absolute;
      top: 12px;
      right: 12px;
      width: 38px;
      height: 38px;
      border: 0;
      border-radius: 12px;
      background: rgba(255,255,255,0.06);
      color: rgba(237,240,247,0.66);
      font-size: 24px;
      line-height: 1;
      cursor: pointer;
      transition: background 0.15s ease, color 0.15s ease;
    }

    .guide-close:hover,
    .guide-close:focus-visible {
      background: rgba(183,124,255,0.14);
      color: #fff;
      outline: none;
    }

    .guide-section {
      margin-top: 16px;
      padding-top: 16px;
      border-top: 1px solid rgba(255,255,255,0.08);
    }

    .guide-section-title {
      margin: 0 0 10px;
      font-family: 'Press Start 2P', cursive;
      font-size: 8px;
      line-height: 1.6;
      color: rgba(237,240,247,0.74);
      text-shadow: 0 2px 0 #000;
    }

    .palette-row {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 10px;
    }

    .palette-card {
      min-height: 78px;
      padding: 12px;
      border-radius: 14px;
      border: 1px solid rgba(255,255,255,0.09);
      box-shadow: inset 0 1px 0 rgba(255,255,255,0.04), 0 12px 24px rgba(0,0,0,0.22);
    }

    .palette-card.correct-swatch {
      background:
        radial-gradient(circle at 50% 0%, rgba(255,255,255,0.06), transparent 45%),
        linear-gradient(180deg, rgba(29, 100, 51, 0.95), rgba(23, 74, 38, 0.98));
      border-color: rgba(115, 223, 135, 0.22);
    }

    .palette-card.incorrect-swatch {
      background:
        radial-gradient(circle at 50% 0%, rgba(255,255,255,0.05), transparent 45%),
        linear-gradient(180deg, rgba(150, 33, 44, 0.95), rgba(101, 24, 32, 0.98));
      border-color: rgba(255, 125, 138, 0.18);
    }

    .palette-card.arrow-swatch {
      background:
        radial-gradient(circle at 50% 0%, rgba(255,255,255,0.04), transparent 40%),
        linear-gradient(180deg, rgba(24,24,34,0.98), rgba(13,13,20,0.98));
      border-color: rgba(255,255,255,0.08);
    }

    .palette-name {
      display: block;
      margin-bottom: 7px;
      font-family: 'Press Start 2P', cursive;
      font-size: 7px;
      line-height: 1.5;
      color: #fff;
      text-shadow: 0 2px 0 #000;
    }

    .palette-desc {
      display: block;
      font-family: 'Press Start 2P', cursive;
      font-size: 6px;
      line-height: 1.7;
      color: rgba(237,240,247,0.70);
      text-shadow: 0 2px 0 #000;
    }

    .guide-list {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      max-height: 150px;
      overflow-y: auto;
      padding: 2px 4px 2px 0;
      scrollbar-width: thin;
      scrollbar-color: rgba(183,124,255,0.55) rgba(255,255,255,0.06);
    }

    .guide-pill {
      flex: 0 0 auto;
      padding: 8px 10px;
      border-radius: 10px;
      background: rgba(255,255,255,0.06);
      border: 1px solid rgba(255,255,255,0.08);
      color: rgba(237,240,247,0.82);
      font-family: 'Press Start 2P', cursive;
      font-size: 7px;
      line-height: 1.4;
      text-shadow: 0 2px 0 #000;
    }

    .how-to-btn {
      flex: 0 0 auto;
      min-height: 34px;
      border: 1px solid rgba(183,124,255,0.24);
      border-radius: 12px;
      background:
        linear-gradient(180deg, rgba(255,255,255,0.05), transparent),
        linear-gradient(90deg, rgba(26,20,40,0.96), rgba(10,10,18,0.96));
      color: #ead8ff;
      font-family: 'Press Start 2P', cursive;
      font-size: 6px;
      line-height: 1.6;
      padding: 8px 10px;
      cursor: pointer;
      text-shadow: 0 2px 0 #000;
      text-decoration: none;
      box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.04),
        0 8px 18px rgba(0,0,0,0.22),
        0 0 20px rgba(183,124,255,0.08);
      transition: transform 0.15s ease, border-color 0.15s ease, filter 0.15s ease;
    }

    .how-to-btn:hover,
    .how-to-btn:focus-visible {
      transform: translateY(-1px);
      border-color: rgba(183,124,255,0.42);
      filter: brightness(1.05);
      outline: none;
    }

    .mode-jump {
      width: 190px;
      min-height: 100%;
      padding: 20px 16px;
      color: #ead8ff;
      background:
        radial-gradient(circle at 50% 0%, rgba(183,124,255,0.16), transparent 42%),
        linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01)),
        var(--panel);
      border: 1px solid rgba(183,124,255,0.24);
      border-radius: var(--radius-xl);
      box-shadow:
        0 0 0 1px rgba(183,124,255,0.08),
        0 0 28px rgba(183,124,255,0.10),
        var(--shadow);
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 16px;
      font-family: 'Press Start 2P', cursive;
      font-size: 10px;
      letter-spacing: 0.6px;
      line-height: 1.7;
      font-weight: 400;
      text-decoration: none;
      text-align: center;
      text-shadow: 0 2px 0 #000, 0 0 14px rgba(183,124,255,0.24);
      backdrop-filter: blur(18px);
      -webkit-backdrop-filter: blur(18px);
      position: relative;
      overflow: hidden;
      transition: transform 0.15s ease, border-color 0.15s ease, filter 0.15s ease;
    }

    .mode-jump::before {
      content: "";
      position: absolute;
      inset: 0;
      pointer-events: none;
      background: radial-gradient(circle at 15% 0%, rgba(183,124,255,0.12), transparent 40%);
    }

    .mode-jump > * {
      position: relative;
      z-index: 1;
    }

    .mode-jump .quote-bubble {
      width: 58px;
      height: 45px;
      filter: drop-shadow(0 8px 18px rgba(0,0,0,0.35));
    }

    .mode-jump .quote-title-small {
      color: #c89aff;
    }

    .mode-jump:hover,
    .mode-jump:focus-visible {
      transform: translateY(-1px);
      border-color: rgba(183,124,255,0.42);
      filter: brightness(1.06);
      outline: none;
    }

    .grid {
      display: flex;
      flex-direction: column;
      gap: 12px;
      min-width: 760px;
      width: fit-content;
      margin: 0 auto;
      padding-bottom: 10px;
    }

    .row {
      display: flex;
      gap: 12px;
      justify-content: center;
    }
    .box.no-anim {
      animation: none !important;
      opacity: 1 !important;
      transform: none !important;
    }
    .box {
      width: 110px;
      height: 110px;
      border-radius: 18px;
      background:
        radial-gradient(circle at 50% 0%, rgba(255,255,255,0.04), transparent 40%),
        linear-gradient(180deg, rgba(24,24,34,0.98), rgba(13,13,20,0.98));
      border: 1px solid rgba(255,255,255,0.08);
      display: flex;
      align-items: center;
      justify-content: center;
      text-align: center;
      padding: 10px;
      position: relative;
      overflow: hidden;
      font-size: 14px;
      font-weight: 900;
      color: var(--text);
      text-shadow: 0 2px 0 #000;
      box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.04),
        inset 0 -1px 0 rgba(0,0,0,0.4),
        0 12px 24px rgba(0,0,0,0.25);
      opacity: 0;
      animation: revealIn 0.45s cubic-bezier(0.18, 0.89, 0.32, 1.2) both;
    }

    .box::before {
      content: "";
      position: absolute;
      inset: 0;
      background: linear-gradient(180deg, rgba(255,255,255,0.04), transparent 26%, transparent 72%, rgba(255,255,255,0.02));
      pointer-events: none;
    }

    .box span { position: relative; z-index: 1; }

    .box-skin { padding: 0 !important; }
    .box-skin img { width: 100% !important; height: 100% !important; object-fit: cover !important; }

    .box img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
    }

    .hover-name {
      position: absolute;
      left: 50%;
      bottom: 8px;
      transform: translateX(-50%);
      padding: 6px 8px;
      border-radius: 10px;
      background: rgba(8, 8, 12, 0.95);
      border: 1px solid rgba(183,124,255,0.45);
      color: var(--text);
      font-family: 'Press Start 2P', cursive;
      font-size: 8px;
      opacity: 0;
      pointer-events: none;
      white-space: nowrap;
      z-index: 2;
      box-shadow: 0 10px 22px rgba(0,0,0,0.35);
    }

    .box:hover .hover-name { opacity: 1; }
    .box:hover img { opacity: 0.45; }

    @keyframes revealIn {
      0% { opacity: 0; transform: translateY(8px) scale(0.92); }
      100% { opacity: 1; transform: translateY(0) scale(1); }
    }

    .correct {
      background:
        radial-gradient(circle at 50% 0%, rgba(255,255,255,0.06), transparent 45%),
        linear-gradient(180deg, rgba(29, 100, 51, 0.95), rgba(23, 74, 38, 0.98)) !important;
      border-color: rgba(115, 223, 135, 0.22) !important;
      box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.05),
        inset 0 0 0 1px rgba(255,255,255,0.02),
        0 14px 26px rgba(0,0,0,0.26) !important;
    }

    .incorrect {
      background:
        radial-gradient(circle at 50% 0%, rgba(255,255,255,0.05), transparent 45%),
        linear-gradient(180deg, rgba(150, 33, 44, 0.95), rgba(101, 24, 32, 0.98)) !important;
      border-color: rgba(255, 125, 138, 0.18) !important;
      box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.04),
        inset 0 0 0 1px rgba(255,255,255,0.02),
        0 14px 26px rgba(0,0,0,0.26) !important;
    }

    .arrow-svg {
      position: absolute;
      bottom: 8px;
      left: 50%;
      transform: translateX(-50%);
      width: 20px;
      height: 20px;
      fill: rgba(255,255,255,0.96);
      filter: drop-shadow(0 2px 0 #000);
      z-index: 1;
    }

.footer-fade { 
  position: relative; 
  width: 100%; 
  height: 250px; 
  pointer-events: none; 
  z-index: 0; 
  margin-top: auto;
  margin-left: 0;
  margin-right: 0;
  display: flex; 
  align-items: flex-end; 
  justify-content: center;
  padding-bottom: 30px;

  background: linear-gradient(
    to top,
    rgba(0,0,0,0.95) 0%,
    rgba(0,0,0,0.75) 30%,
    rgba(0,0,0,0.35) 65%,
    rgba(0,0,0,0.0) 100%
  );
}

    .footer-links {
      pointer-events: auto;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 8px;
      font-family: 'Press Start 2P', cursive;
      font-size: 7px;
      color: rgba(233,236,247,0.40);
      letter-spacing: 0.6px;
      user-select: none;
    }

    .footer-links a {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-height: 30px;
      padding: 8px 11px;
      color: rgba(233,236,247,0.58);
      text-decoration: none;
    }

    .footer-links a:hover,
    .footer-links a:focus-visible {
      color: rgba(233,236,247,0.88);
      text-decoration: underline;
      outline: 0;
    }

    .loading-screen {
      position: fixed;
      inset: 0;
      z-index: 9999;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 18px;
      background:
        radial-gradient(circle at 50% 36%, rgba(183,124,255,0.16), transparent 28%),
        rgba(6,6,10,0.88);
      backdrop-filter: blur(10px);
      -webkit-backdrop-filter: blur(10px);
      opacity: 0;
      visibility: hidden;
      pointer-events: none;
      transition: opacity 0.16s ease, visibility 0s linear 0.16s;
    }

    body:not(.page-ready) .loading-screen,
    body.is-loading .loading-screen {
      opacity: 1;
      visibility: visible;
      transition-delay: 0s;
    }

    body.midnight-reloading .loading-screen {
      opacity: 1;
      visibility: visible;
      transition-delay: 0s;
    }

    body:not(.page-ready) .shell,
    body:not(.page-ready) .footer-fade,
    body.is-loading .shell,
    body.is-loading .footer-fade,
    body.midnight-reloading .shell,
    body.midnight-reloading .footer-fade {
      opacity: 0;
      transition: opacity 0.12s ease;
    }

    html.skip-initial-loader body:not(.is-loading):not(.midnight-reloading) .loading-screen {
      opacity: 0;
      visibility: hidden;
      transition: none;
    }

    html.skip-initial-loader body:not(.is-loading):not(.midnight-reloading) .shell,
    html.skip-initial-loader body:not(.is-loading):not(.midnight-reloading) .footer-fade {
      opacity: 1;
      transition: none;
    }

    .loading-title {
      font-family: 'Press Start 2P', cursive;
      font-size: 18px;
      line-height: 1.7;
      color: var(--accent);
      text-shadow: 0 2px 0 #000, 0 0 16px rgba(183,124,255,0.32);
    }

    .loading-dots {
      display: flex;
      gap: 10px;
    }

    .loading-dots span {
      width: 8px;
      height: 8px;
      border-radius: 2px;
      background: rgba(237,240,247,0.75);
      animation: loadingDot 0.84s ease-in-out infinite;
    }

    .loading-dots span:nth-child(2) { animation-delay: 0.12s; }
    .loading-dots span:nth-child(3) { animation-delay: 0.24s; }

    @keyframes loadingDot {
      0%, 100% { transform: translateY(0); opacity: 0.35; }
      50% { transform: translateY(-8px); opacity: 1; }
    }

        .found-banner {
      margin: -8px 0 26px 0;
      padding: 8px 14px;
      background: rgba(255,255,255,0.08);
      border: 1px solid rgba(255,255,255,0.12);
      border-radius: 10px;
      font-family: 'Inter', sans-serif;
      font-size: 14px;
      font-weight: 600;
      color: rgba(255,255,255,0.88);
      box-shadow: 0 8px 18px rgba(0,0,0,0.22);
      backdrop-filter: blur(6px);
    }
    .found-counter {
      margin: -18px 0 28px;
      text-align: center;
      font-family: 'Press Start 2P', cursive;
      font-size: 10px;
      color: rgba(237,240,247,0.72);
      text-shadow: 0 2px 0 #000;
    }

  #foundCount {
  color: #b77cff;
  font-size: 10px;
  margin-right: 6px;
  font-weight: 800;
  text-shadow:
    0 2px 0 #000,
    0 0 10px rgba(183,124,255,0.55);
}

    #winOverlay {
      display: none;
      position: fixed;
      inset: 0;
      background: rgba(3, 3, 8, 0.84);
      backdrop-filter: blur(14px);
      -webkit-backdrop-filter: blur(14px);
      z-index: 3000;
      justify-content: center;
      align-items: center;
      padding: 18px;
    }

    .win-card {
      width: min(480px, 100%);
      max-height: calc(100dvh - 36px);
      background:
        radial-gradient(circle at 50% 0%, rgba(183,124,255,0.08), transparent 28%),
        linear-gradient(180deg, rgba(18,18,27,0.98), rgba(10,10,16,0.98));
      border: 1px solid rgba(183,124,255,0.22);
      border-radius: 30px;
      box-shadow:
        0 0 0 1px rgba(183,124,255,0.08),
        0 0 30px rgba(183,124,255,0.10),
        0 30px 80px rgba(0,0,0,0.62);
      padding: 30px;
      position: relative;
      animation: winPop 1s ease-out;
      overflow-x: hidden;
      overflow-y: auto;
    }

    .win-card::before {
      content: "";
      position: absolute;
      inset: 0;
      pointer-events: none;
      background: linear-gradient(180deg, rgba(255,255,255,0.05), transparent 18%, transparent 72%, rgba(255,255,255,0.02));
    }

    @keyframes winPop {
      from { transform: translateY(20px) scale(0.96); opacity: 0; }
      to { transform: translateY(0) scale(1); opacity: 1; }
    }

    .close-x {
      position: absolute;
      top: 14px;
      right: 14px;

      width: 48px;
      height: 48px;

      display: flex;
      align-items: center;
      justify-content: center;

      font-size: 28px;
      line-height: 1;
      font-weight: 900;

      cursor: pointer;
      color: rgba(255,255,255,0.55);

      border: 0;
      background: transparent;
      padding: 0;
      border-radius: 14px;

      z-index: 20;
      user-select: none;
      pointer-events: auto;

      transition: color 0.18s ease, background 0.18s ease, transform 0.18s ease;
    }

    .close-x:hover {
      color: var(--accent);
      background: rgba(255,255,255,0.08);
      transform: scale(1.05);
    }

    .win-card h2 {
      position: relative;
      z-index: 1;
      margin: 0;
      text-align: center;
      font-family: 'Press Start 2P', cursive;
      font-size: 30px;
      color: var(--accent);
      line-height: 1.5;
      text-shadow: 0 2px 0 #000;
    }

    .win-main-info {
      position: relative;
      z-index: 1;
      display: flex;
      flex-direction: column;
      gap: 18px;
      align-items: center;
      margin: 28px 0 24px;
      text-align: center;
    }

    .win-main-info img {
      width: 106px;
      height: 106px;
      border-radius: 18px;
      border: 1px solid rgba(255,255,255,0.08);
      box-shadow: 0 14px 30px rgba(0,0,0,0.35);
      object-fit: cover;
    }

    .win-text-side { display: flex; flex-direction: column; align-items: center; }
    .win-card .label {
      margin: 0 0 8px;
      font-family: 'Press Start 2P', cursive;
      font-size: 10px;
      color: var(--muted);
      letter-spacing: 0.5px;
    }
    .win-card .char-name {
      margin: 0;
      font-size: 30px;
      font-weight: 900;
      line-height: 1.05;
      text-align: center;
      text-shadow: 0 2px 0 #000;
    }
    .solved-summary .label {
      margin: 0 0 8px;
      font-family: 'Press Start 2P', cursive;
      font-size: 10px;
      color: var(--muted);
      letter-spacing: 0.5px;
    }

    .solved-summary .char-name {
      margin: 0;
      font-size: 30px;
      font-weight: 900;
      line-height: 1.05;
      color: var(--text);
      text-align: center;
      text-shadow: 0 2px 0 #000;
    }

    .solved-summary .win-main-info {
      position: relative;
      z-index: 1;
      display: flex;
      flex-direction: column;
      gap: 18px;
      align-items: center;
      margin: 28px 0 24px;
      text-align: center;
    }

    .solved-summary .win-main-info img {
      width: 106px;
      height: 106px;
      border-radius: 18px;
      border: 1px solid rgba(255,255,255,0.08);
      box-shadow: 0 14px 30px rgba(0,0,0,0.35);
      object-fit: cover;
    }

    .solved-summary .win-text-side {
      display: flex;
      flex-direction: column;
      align-items: center;
    }
  .solved-summary {
    width: min(480px, calc(100% - 28px));
    margin: 28px auto 34px;
    padding: 30px;
    scroll-margin-top: 18px;
    position: relative;
    z-index: 2;

    background:
      radial-gradient(circle at 50% 0%, rgba(183,124,255,0.08), transparent 28%),
      linear-gradient(180deg, rgba(18,18,27,0.98), rgba(10,10,16,0.98));

    border: 1px solid rgba(183,124,255,0.22);
    border-radius: 30px;
    box-shadow:
      0 0 0 1px rgba(183,124,255,0.08),
      0 0 30px rgba(183,124,255,0.10),
      0 30px 80px rgba(0,0,0,0.62);
    overflow: hidden;

    animation: winPop 1s ease-out;
    overflow-x: hidden;
  }

  .solved-summary::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(
      180deg,
      rgba(255,255,255,0.05),
      transparent 18%,
      transparent 72%,
      rgba(255,255,255,0.02)
    );
  }

  .solved-summary h2 {
    position: relative;
    z-index: 1;
    margin: 0;
    text-align: center;
    font-family: 'Press Start 2P', cursive;
    font-size: 30px;
    color: var(--accent);
    line-height: 1.5;
    text-shadow: 0 2px 0 #000;
  }

  .solved-summary .share-btn {
    margin-top: 22px;
  }

  #solvedAlias {
    color: var(--accent);
    font-family: 'Press Start 2P', cursive;
    font-size: 8px;
    margin-top: 4px;
    line-height: 1.4;
  }

  #solvedStreak {
    display: block;
    font-size: 18px;
    margin-top: 6px;
    color: var(--accent);
  }

  #solvedCountdown {
    font-family: 'Press Start 2P', cursive;
    font-size: 24px;
    color: var(--accent);
    text-align: center;
    margin-top: 4px;
  }

    @keyframes solvedSlideIn {
      from {
        opacity: 0;
        transform: translateY(-18px) scale(0.97);
      }
      to {
        opacity: 1;
        transform: translateY(0) scale(1);
      }
    }

    .solved-title {
      font-family: 'Press Start 2P', cursive;
      font-size: 9px;
      line-height: 1.7;
      color: var(--accent);
      text-align: center;
      text-shadow: 0 2px 0 #000;
      margin-bottom: 18px;
    }

    .solved-main {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 16px;
    }

    .solved-main img {
      width: 74px;
      height: 74px;
      border-radius: 16px;
      border: 1px solid rgba(255,255,255,0.10);
      box-shadow: 0 12px 26px rgba(0,0,0,0.35);
    }

    .solved-label {
      font-family: 'Press Start 2P', cursive;
      font-size: 7px;
      color: rgba(237,240,247,0.55);
      margin-bottom: 8px;
    }

    .solved-name {
      font-size: 24px;
      font-weight: 900;
      color: var(--text);
      text-shadow: 0 2px 0 #000;
      line-height: 1.05;
    }

    .solved-alias {
      font-family: 'Press Start 2P', cursive;
      font-size: 7px;
      color: var(--accent);
      opacity: 0.85;
      margin-top: 6px;
      line-height: 1.5;
    }

    .solved-stats {
      display: flex;
      justify-content: center;
      gap: 18px;
      margin-top: 18px;

      font-family: 'Press Start 2P', cursive;
      font-size: 8px;
      color: rgba(237,240,247,0.72);
      text-shadow: 0 2px 0 #000;
    }

    .solved-stats b {
      color: var(--accent);
      font-size: 11px;
    }

    .solved-place-text {
      margin-top: 16px;
      font-family: 'Press Start 2P', cursive;
      font-size: 9px;
      line-height: 1.8;
      text-align: center;
      color: rgba(237,240,247,0.78);
      text-shadow: 0 2px 0 #000;
    }

    .solved-place-text span {
      color: var(--accent);
      font-size: 12px;
      text-shadow:
        0 2px 0 #000,
        0 0 10px rgba(183,124,255,0.55);
    }

    @media (max-width: 560px) {
      .solved-summary {
        padding: 18px;
      }

      .solved-main {
        flex-direction: column;
        text-align: center;
      }

      .solved-name {
        font-size: 20px;
      }

      .solved-stats {
        flex-direction: column;
        gap: 10px;
      }
    }
    #winAlias {
  color: var(--accent);
  font-family: 'Press Start 2P', cursive;
  font-size: 8px;
  margin-top: 4px;
  line-height: 1.4;
}

    .stats-group {
    margin-top: 22px;
    padding-top: 18px;
    

    border-top: 1px solid rgba(255,255,255,0.08);

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    
  }

    .suggestion-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
    }

    .suggestion-info b {
    font-size: 14px;
    margin: 0;
    line-height: 1.2;
    }

    .alias {
    font-size: 10px;
    color: #95a0b8;
    opacity: 0.8;
    line-height: 1;
    white-space: nowrap;
    }
    .stat-line {
    font-family: 'Press Start 2P', cursive;
    font-size: 11px;
    text-align: center;
    line-height: 1.8;
    text-shadow: 0 2px 0 #000;
  }
  .stat-line b,
  #winStreak {
    display: block;
    font-size: 18px;
    margin-top: 6px;
    color: var(--accent);
  }
        .timezone-text {
        font-family: 'Press Start 2P', cursive;
        font-size: 9px;          /* bigger than before */
        opacity: 0.6;
        text-align: center;
        margin-top: 6px;
        letter-spacing: 0.5px;
        }
        .found-place-text {
          font-family: 'Press Start 2P', cursive; /* keep same */
          font-size: 10px; /* your size */
          line-height: 1.8;
          text-align: center;
          max-width: 360px;

          word-break: break-word; /* 🔥 handles long numbers */
        }

        .found-place-text span {
          color: var(--accent);
          font-size: 14px; /* your size */

          display: inline-block;
          max-width: 100%;
          overflow-wrap: anywhere; /* 🔥 prevents overflow */
        }
    .countdown-label {
    font-family: 'Press Start 2P', cursive;
    font-size: 8px;
    opacity: 0.6;
    text-align: center;
    }

  #countdown {
    font-family: 'Press Start 2P', cursive;
    font-size: 24px;
    color: var(--accent);
    text-align: center;
    margin-top: 4px;
    }

    .share-btn {
      position: relative;
      z-index: 1;
      width: 100%;
      margin-top: 22px;
      padding: 16px 18px;
      border: 0;
      border-radius: 16px;
      background: linear-gradient(180deg, rgba(183,124,255,1), rgba(141,92,255,1));
      color: #0c0912;
      font-family: 'Press Start 2P', cursive;
      font-size: 10px;
      font-weight: 900;
      cursor: pointer;
      box-shadow: 0 12px 24px rgba(141,92,255,0.16);
      transition: transform 0.15s ease, filter 0.15s ease;
    }
    .share-btn:hover { transform: translateY(-1px); filter: brightness(1.08); }

    .next-mode {
      position: relative;
      z-index: 1;
      width: 100%;
      margin-top: 22px;
      padding-top: 18px;
      border-top: 1px solid rgba(255,255,255,0.08);
    }

    .next-mode-label {
      margin: 0 0 12px;
      font-family: 'Press Start 2P', cursive;
      font-size: 9px;
      line-height: 1.6;
      color: rgba(237,240,247,0.72);
      text-align: center;
      text-shadow: 0 2px 0 #000;
    }

    .mode-card {
      display: flex;
      align-items: center;
      gap: 14px;
      width: 100%;
      padding: 14px;
      border-radius: 18px;
      background:
        linear-gradient(180deg, rgba(255,255,255,0.04), transparent),
        linear-gradient(90deg, rgba(26,20,40,0.98), rgba(10,10,18,0.98));
      border: 1px solid rgba(183,124,255,0.18);
      box-shadow:
        0 0 0 1px rgba(183,124,255,0.07),
        inset 0 1px 0 rgba(255,255,255,0.03),
        inset 0 -1px 0 rgba(0,0,0,0.35),
        0 14px 26px rgba(0,0,0,0.28),
        0 0 22px rgba(183,124,255,0.06);
      text-decoration: none;
      transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
      position: relative;
      overflow: hidden;
    }

    .mode-card::after {
      content: "";
      position: absolute;
      inset: 0;
      pointer-events: none;
      background: linear-gradient(
        90deg,
        rgba(183,124,255,0.05),
        transparent 22%,
        transparent 78%,
        rgba(141,92,255,0.05)
      );
      opacity: 0.8;
    }

    .mode-card:hover {
      transform: translateY(-2px);
      border-color: rgba(183,124,255,0.24);
      box-shadow:
        0 0 0 1px rgba(183,124,255,0.10),
        inset 0 1px 0 rgba(255,255,255,0.04),
        inset 0 -1px 0 rgba(0,0,0,0.38),
        0 18px 34px rgba(0,0,0,0.34),
        0 0 0 1px rgba(183,124,255,0.08);
    }

    .mode-icon {
      width: 54px;
      height: 54px;
      flex: 0 0 54px;
      border-radius: 16px;
      background:
        linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02)),
        linear-gradient(180deg, rgba(33,26,52,0.98), rgba(16,13,28,0.98));
      border: 1px solid rgba(183,124,255,0.20);
      display: flex;
      align-items: center;
      justify-content: center;
      box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.04),
        0 12px 24px rgba(0,0,0,0.28);
      position: relative;
      z-index: 1;
    }

    .quote-bubble {
      width: 31px;
      height: 24px;
      background: #eceaf3;
      border-radius: 8px;
      position: relative;
      box-shadow: inset 0 1px 0 rgba(255,255,255,0.4);
    }

    .quote-bubble::after {
      content: "";
      position: absolute;
      left: 7px;
      bottom: -5px;
      width: 9px;
      height: 9px;
      background: #eceaf3;
      transform: rotate(45deg);
      border-bottom-left-radius: 2px;
    }

    .quote-dots {
      position: absolute;
      inset: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 4px;
    }

    .quote-dots span {
      width: 5px;
      height: 9px;
      border-radius: 5px;
      background: #16161d;
    }

    .mode-text {
      flex: 1;
      min-width: 0;
      position: relative;
      z-index: 1;
    }

    .mode-card .mode-name {
      margin: 0 0 6px;
      font-family: 'Inter', sans-serif;
      font-size: 20px;
      line-height: 1.05;
      font-weight: 900;
      text-align: left;
      color: #ead8ff;
      text-shadow:
        0 2px 0 #000,
        0 0 10px rgba(183,124,255,0.12);
    }

    .mode-card .mode-desc {
      margin: 0;
      font-family: 'Press Start 2P', cursive;
      font-size: 7px;
      line-height: 1.6;
      color: rgba(237,240,247,0.72);
    }

    .mode-enter {
      position: relative;
      z-index: 1;
      flex: 0 0 auto;
      min-width: 74px;
      text-align: center;
      padding: 11px 12px;
      border-radius: 12px;
      background: linear-gradient(180deg, rgba(183,124,255,1), rgba(141,92,255,1));
      color: #12081f;
      font-family: 'Press Start 2P', cursive;
      font-size: 8px;
      line-height: 1;
      box-shadow:
        0 4px 0 #4c248b,
        0 12px 24px rgba(141,92,255,0.16);
      transition: transform 0.15s ease, filter 0.15s ease;
    }

    .mode-card:hover .mode-enter {
      transform: translateY(-1px);
      filter: brightness(1.05);
    }

    .unlocked {
      outline: 1px solid rgba(183,124,255,0.22);
      box-shadow: 0 0 0 1px rgba(183,124,255,0.10) inset, 0 14px 26px rgba(0,0,0,0.26);
    }

    @media (max-width: 780px) {
      body { padding: 34px 14px 0; }
      .quest-layout { flex-direction: column; align-items: center; gap: 14px; margin-bottom: 22px; transform: none; }
      .quest-layout::before { display: none; }
      .top-glass { padding: 18px; border-radius: 24px; }
      .quest-layout .top-glass { flex-basis: auto; }
      .top-actions { position: static; display: flex; justify-content: center; margin: -4px 0 14px; }
      .top-title { font-size: 9px; }
      .quest-help-row { gap: 8px; }
      .spoiler-note { font-size: 6px; padding: 9px 10px; }
      .how-to-btn { font-size: 6px; min-height: 36px; padding: 8px 10px; }
      .mode-jump { width: min(100%, 360px); min-height: 92px; padding: 15px; flex-direction: row; font-size: 8px; letter-spacing: 0.5px; border-radius: 20px; }
      .mode-jump .quote-bubble { width: 46px; height: 36px; }
      .clue-row { grid-template-columns: 1fr; }
      .clue-tile { min-height: 168px; }
      .search-container { border-radius: 18px; }
      .guess-btn { min-width: 112px; font-size: 8px; }
      .win-card { padding: 24px; border-radius: 24px; }
      .win-main-info { flex-direction: column; align-items: center; text-align: center; }
      .win-text-side { align-items: center; }
      .win-card .char-name { text-align: center; font-size: 26px; }
      .mode-card { gap: 10px; padding: 12px; }
      .mode-icon { width: 48px; height: 48px; flex-basis: 48px; }
      .mode-card .mode-name { font-size: 17px; }
      .mode-card .mode-desc { font-size: 6px; }
      .mode-enter { min-width: 64px; padding: 10px 9px; font-size: 7px; }
      .footer-fade { height: 150px; }
      .category-guide { top: 56px; max-height: calc(100vh - 78px); padding: 18px; }
      .palette-row { grid-template-columns: 1fr; }
      .solved-summary .win-main-info {
      flex-direction: column;
      align-items: center;
      text-align: center;
    }

    .solved-summary .win-text-side {
      align-items: center;
    }

    .solved-summary .char-name {
      text-align: center;
      font-size: 26px;
    }
    }

    @media (max-width: 560px) {
      .logo { width: min(420px, 100%); }
      .xp-level { font-size: 10px; }
      #guessInput { font-size: 15px; padding: 16px 14px; }
      .clue-label { font-size: 6px; }
      .clue-tile { padding: 16px; }
      .win-card h2 { font-size: 16px; }
      #countdown { font-size: 18px; }
    }

    .main-title {
    font-family: 'Press Start 2P', cursive;
    font-size: 28px;
    letter-spacing: 3px;
    margin: 0 0 10px 0;
    color: #d6b3ff;
    }
    .main-title::after {
    content: "";
    display: block;
    height: 2px;
    margin-top: 10px;
    background: linear-gradient(90deg, transparent, #b77cff, transparent);
    animation: scan 3s infinite ease-in-out;
    }

@keyframes scan {
  0% { transform: translateX(-30%); opacity: 0.3; }
  50% { opacity: 1; }
  100% { transform: translateX(30%); opacity: 0.3; }
}
    

            .title-wrap {
      position: relative;
      display: flex;
      justify-content: center;
      align-items: center;
      margin-bottom: 42px;
    }

    .title-wrap::before {
      content: "";
      position: absolute;
      width: 420px;
      height: 140px;
      background: radial-gradient(circle, rgba(183,124,255,0.30) 0%, rgba(183,124,255,0.12) 40%, transparent 75%);
      filter: blur(26px);
      z-index: 0;
      pointer-events: none;
    }

    .logo {
      position: relative;
      z-index: 1;
      width: min(680px, 92vw);
      filter:
        drop-shadow(0 10px 0 rgba(0,0,0,0.9))
        drop-shadow(0 18px 35px rgba(0,0,0,0.55))
        drop-shadow(0 0 18px rgba(183,124,255,0.35));
    }

    .home-link {
      position: relative;
      z-index: 1;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      line-height: 0;
      cursor: pointer;
      transform-origin: center;
      transition: transform 0.22s ease, filter 0.22s ease;
    }

    .home-link:hover,
    .home-link:focus-visible {
      transform: scale(1.035);
      filter: brightness(1.04);
    }

    .home-link:focus-visible {
      outline: 2px solid var(--accent);
      outline-offset: 8px;
      border-radius: 12px;
    }

    .logo {
      animation: logoFloat 4s ease-in-out infinite;
    }

    @keyframes logoFloat {
      0%, 100% { transform: translateY(0px); }
      50% { transform: translateY(-4px); }
    }

    .subtitle {
    font-family: 'Press Start 2P', cursive;
    font-size: 7px;
    opacity: 0.45;
    letter-spacing: 1px;
    margin-top: 8px;
    color: #b9b2cc;
    }
    body {
     padding-top: 80px;
    }
    

        @keyframes scanSweep {
        0% { transform: translateX(-120%); }
        40% { transform: translateX(120%); }
        100% { transform: translateX(120%); }
        }

@keyframes auraShift {
  0% { transform: scale(1) translateY(0px); opacity: 0.5; }
  100% { transform: scale(1.05) translateY(-6px); opacity: 0.8; }
}

    @media (max-width: 560px) {
      body {
        padding: 38px 10px 0;
      }

      .title-wrap {
        margin-bottom: 24px;
      }

      .title-wrap::before {
        width: min(360px, 96vw);
        height: 104px;
      }

      .logo {
        width: min(430px, 96vw);
      }

      .top-glass {
        padding: 16px;
      }

      .top-title {
        font-size: 8px;
        line-height: 1.8;
      }

      .clue-tile {
        min-height: 142px;
      }

      .search-wrapper,
      .xp-container {
        max-width: 100%;
      }

      .search-container {
        border-radius: 17px;
      }

      #guessInput {
        font-size: 14px;
        padding: 15px 13px;
      }

      .guess-btn {
        min-width: 96px;
        padding: 0 12px;
        font-size: 7px;
      }

      .suggestions-box {
        max-height: min(300px, 46vh);
      }

      #winOverlay {
        align-items: flex-start;
        overflow-y: auto;
        padding: 12px;
      }

      .win-card {
        width: 100%;
        max-height: calc(100dvh - 24px);
        margin: 12px auto;
        padding: 22px 16px;
      }

      .win-card h2,
      .solved-summary h2 {
        font-size: 16px;
      }

      .win-main-info img,
      .solved-summary .win-main-info img {
        width: 82px;
        height: 82px;
      }

      .mode-card {
        gap: 8px;
      }

      .mode-card .mode-name {
        font-size: 14px;
      }

      .mode-enter {
        min-width: 58px;
      }

      .footer-links {
        font-size: 6px;
        line-height: 1.7;
      }
    }

    @media (max-height: 780px) {
      #winOverlay {
        align-items: flex-start;
        overflow-y: auto;
        padding: 10px;
      }

      .win-card {
        width: min(440px, 100%);
        max-height: calc(100dvh - 20px);
        margin: 0 auto;
        padding: 18px;
        border-radius: 22px;
      }

      .win-card h2,
      .solved-summary h2 {
        font-size: 20px;
        line-height: 1.35;
      }

      .win-main-info,
      .solved-summary .win-main-info {
        gap: 10px;
        margin: 14px 0 12px;
      }

      .win-main-info img,
      .solved-summary .win-main-info img {
        width: 76px;
        height: 76px;
        border-radius: 14px;
      }

      .win-card .char-name,
      .solved-summary .char-name {
        font-size: 24px;
      }

      .stats-group {
        margin-top: 12px;
        padding-top: 12px;
        gap: 9px;
      }

      .stat-line {
        font-size: 9px;
        line-height: 1.55;
      }

      .stat-line b,
      #winStreak,
      #solvedStreak {
        font-size: 15px;
        margin-top: 4px;
      }

      #countdown,
      #solvedCountdown {
        font-size: 18px;
        line-height: 1.3;
      }

      .next-mode {
        margin-top: 12px;
        padding-top: 12px;
      }

      .next-mode-label {
        margin-bottom: 8px;
        font-size: 7px;
      }

      .mode-card {
        min-height: 60px;
        padding: 9px 10px;
        gap: 9px;
        border-radius: 14px;
      }

      .mode-icon {
        width: 42px;
        height: 42px;
        flex-basis: 42px;
        border-radius: 12px;
      }

      #winOverlay .mode-card .mode-name,
      #solvedSummary .mode-card .mode-name {
        font-size: 15px;
      }

      .share-btn,
      .solved-summary .share-btn {
        margin-top: 12px;
        padding: 12px 14px;
        border-radius: 14px;
        font-size: 8px;
      }

      .solved-summary {
        width: min(440px, calc(100% - 20px));
        margin: 18px auto 24px;
        padding: 18px;
        border-radius: 22px;
      }
    }

    @media (max-width: 380px) {
      .search-container {
        flex-direction: column;
        overflow: visible;
      }

      .guess-btn {
        width: 100%;
        min-height: 44px;
        border-left: 0;
        border-top: 1px solid rgba(255,255,255,0.08);
      }

      .mode-jump {
        width: 100%;
      }
    }

    @media (max-width: 780px) {
      #notification {
        width: calc(100vw - 28px);
        max-width: 420px;
        white-space: normal;
        text-align: center;
        line-height: 1.6;
      }

      .category-guide {
        top: 56px;
        max-height: calc(100vh - 78px);
        padding: 54px 18px 18px;
      }
    }

    @media (max-width: 560px) {
      #gameArea {
        overflow-x: visible;
      }

      #headerRow,
      .grid {
        min-width: 0;
        width: 100%;
        gap: 6px;
      }

      .row {
        width: 100%;
        gap: 6px;
      }

      .header-item,
      .box {
        width: clamp(43px, calc((100vw - 52px) / 6), 82px);
      }

      .box {
        height: clamp(43px, calc((100vw - 52px) / 6), 82px);
        border-radius: 12px;
        padding: 5px;
        font-size: 10px;
        line-height: 1.15;
      }

      .header-item {
        min-height: 34px;
        font-size: 6px;
        line-height: 1.35;
      }

      .header-label {
        padding: 4px 3px;
        border-radius: 8px;
      }

      .arrow-svg {
        width: 15px;
        height: 15px;
        bottom: 5px;
      }

      .hover-name {
        display: none;
      }

      .win-card .char-name,
      .solved-summary .char-name,
      .solved-name {
        overflow-wrap: anywhere;
      }

      .stat-line,
      .timezone-text,
      .countdown-label,
      .found-place-text {
        font-size: 8px;
      }

      #countdown,
      #solvedCountdown {
        font-size: 18px;
        line-height: 1.45;
        overflow-wrap: anywhere;
      }

      .mode-card {
        min-width: 0;
      }

      #winOverlay .mode-card .mode-name,
      #solvedSummary .mode-card .mode-name {
        white-space: normal;
        font-size: 15px;
        overflow-wrap: anywhere;
      }

      #winOverlay .mode-card .mode-desc,
      #solvedSummary .mode-card .mode-desc {
        font-size: 8px;
      }
    }

    @media (max-width: 380px) {
      .mode-card {
        flex-wrap: wrap;
      }

      .mode-icon {
        width: 44px;
        height: 44px;
        flex-basis: 44px;
      }

      .mode-enter {
        width: 100%;
        min-height: 38px;
      }

      .loading-title {
        max-width: calc(100vw - 28px);
        font-size: 13px;
        text-align: center;
      }
    }
