    /* Game-specific extensions that use the Analysis site's shared variables. */
    body { min-height: 100vh; }

    .topbar { background: var(--background); }
    .topbar-inner {
      width: min(1120px, calc(100% - 32px));
      margin: 0 auto;
      padding: 24px 0 0;
    }
    .brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
    .brand-mark {
      width: 28px; height: 28px; flex: 0 0 auto;
      border-radius: 50%; background: var(--accent);
      border: 1px solid var(--accent-dark);
    }
    .brand-title {
      font-family: Georgia, "Times New Roman", serif;
      font-size: clamp(2rem, 6vw, 3rem);
      font-weight: 700; line-height: 1;
    }
    .brand-subtitle { margin-top: 8px; color: var(--muted); }

    .date-navigation {
      display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
      margin-top: 22px; padding: 14px; border: 1px solid var(--border);
      border-radius: 10px; background: var(--panel); box-shadow: var(--shadow);
    }
    .puzzle-date-inline {
      margin-right: 4px;
      color: var(--text);
      white-space: nowrap;
    }
    .puzzle-date-inline strong { font-weight: 800; }
    .date-navigation form { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; }
    .date-input, .nav-button {
      min-height: 38px; padding: 7px 12px; border: 1px solid var(--border);
      border-radius: 6px; background: var(--panel-secondary); color: var(--text);
      font: inherit; text-decoration: none;
    }
    .nav-button { display: inline-flex; align-items: center; justify-content: center; font-weight: 700; cursor: pointer; }
    .nav-button:hover { filter: brightness(.96); }
    .nav-button[aria-disabled="true"] { opacity: .45; pointer-events: none; }

    .page { width: min(1120px, calc(100% - 32px)); margin: 0 auto; padding: 14px 0 60px; }
    .stats-row {
      margin-bottom: 18px; padding: 10px 14px; border: 1px solid var(--border);
      border-radius: 10px; background: var(--panel); box-shadow: var(--shadow);
    }
    .status-line {
      display: grid;
      grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
      align-items: center;
      gap: 20px;
      min-height: 38px;
    }
    .progress-section { min-width: 0; }
    .score-wrap { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
    .score-line { display: flex; align-items: baseline; gap: 8px; margin: 0; }
    .score-value { font-size: 1.25rem; font-weight: 800; line-height: 1; min-width: auto; }
    .score-rank { color: var(--text); font-weight: 700; }
    .score-meta { color: var(--muted); font-size: .9rem; white-space: nowrap; }
    .progress-track {
      width: 100%; height: 7px; margin-top: 7px; background: var(--panel-secondary);
      border: 1px solid var(--border); border-radius: 999px; overflow: hidden;
    }
    .progress-bar { height: 100%; width: 0; background: var(--accent); }
    .meta-cluster {
      display: flex; align-items: baseline; justify-content: flex-end;
      gap: 0; flex-wrap: nowrap; min-width: 0;
    }
    .meta-chip { padding: 0 10px; border-left: 1px solid var(--border); font-weight: 700; white-space: nowrap; }
    .meta-chip:first-child { padding-left: 0; border-left: 0; }

    .main { display: grid; grid-template-columns: minmax(320px, 1fr) 420px; gap: 24px; align-items: start; }
    .left-col, .right-col {
      border: 1px solid var(--border); border-radius: 12px; background: var(--panel);
      box-shadow: var(--shadow); padding: 20px;
    }
    .left-col { display: flex; flex-direction: column; align-items: center; }
    .right-col { min-height: 520px; }
    .entry-display { min-height: 42px; font-size: 2rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; text-align: center; margin-bottom: 10px; }
    .message { min-height: 24px; color: var(--muted); text-align: center; margin-bottom: 8px; }
    .hive-wrap { display: flex; justify-content: center; width: 100%; margin: 8px 0 6px; }
    .hive { position: relative; width: 320px; height: 320px; }
    .hex {
      position: absolute; left: 50%; top: 50%; width: 88px; height: 88px;
      transform: translate(-50%, -50%); clip-path: polygon(25% 6.7%,75% 6.7%,100% 50%,75% 93.3%,25% 93.3%,0 50%);
      border: 0; display: flex; align-items: center; justify-content: center;
      background: var(--accent); color: #121212; font-size: 2rem; font-weight: 700;
      text-transform: uppercase; cursor: pointer; user-select: none; z-index: 1;
    }
    .hex:hover { filter: brightness(.96); }
    .hex.center { background: #ccaa00; color: var(--center-text); z-index: 2; }
    .hex.pressed { animation: hex-bounce 180ms ease; }
    @keyframes hex-bounce { 0%{transform:translate(-50%,-50%) scale(1)}45%{transform:translate(-50%,-50%) scale(.9)}100%{transform:translate(-50%,-50%) scale(1)} }

    .controls { display: flex; gap: 10px; justify-content: center; margin-top: 10px; flex-wrap: wrap; }
    .control-btn { min-width: 94px; }
    .control-btn.primary { background: var(--accent); color: var(--center-text); border-color: var(--accent-dark); }
    .input-row { display: none; }

    .tabs { display: flex; flex-wrap: wrap; gap: 8px; border-bottom: 1px solid var(--border); margin-bottom: 16px; }
    .tab-btn { appearance: none; border: 0; border-radius: 6px 6px 0 0; padding: 10px 12px; background: transparent; color: var(--muted); cursor: pointer; }
    .tab-btn.active { color: var(--text); background: var(--panel-secondary); box-shadow: inset 0 -3px 0 var(--accent-dark); }
    .tab-panel { display: none; }
    .tab-panel.active { display: block; }
    .word-list { column-width: 150px; column-gap: 24px; }
    .word-item { break-inside: avoid; margin-bottom: 8px; text-transform: uppercase; }
    .empty { color: var(--muted); }
    .hint-list, .rank-list { display: grid; gap: 0; }
    .hint-row, .rank-row { display: flex; justify-content: space-between; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--border); }
    .rank-row.reached { color: var(--success); font-weight: 700; }
    .pangram-list { display: flex; flex-wrap: wrap; gap: 10px; }
    .pangram-chip { padding: 8px 12px; border: 1px solid var(--accent-dark); border-radius: 999px; background: var(--accent); color: var(--center-text); font-weight: 800; text-transform: uppercase; }

    .confetti-layer { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 9999; }
    .confetti-piece { position: absolute; top: -20px; opacity: .95; animation: confetti-fall linear forwards; }
    @keyframes confetti-fall { to { transform: translate3d(var(--drift-x,0),105vh,0) rotate(var(--spin,360deg)); opacity:.15; } }

    .restart-wrap { margin-top: 24px; text-align: center; }

    @media (max-width: 960px) {
      .main { grid-template-columns: 1fr; }
      .right-col { min-height: 0; }
    }
    @media (max-width: 760px) {
      .date-navigation { width: 100%; }
      .puzzle-date-inline { width: 100%; margin-bottom: 2px; }
      .date-navigation form { flex: 1; }
      .date-input { flex: 1; min-width: 150px; }
      .status-line { grid-template-columns: 1fr; gap: 10px; }
      .meta-cluster { width: 100%; justify-content: flex-start; flex-wrap: wrap; }
      .meta-chip { padding: 0 8px; font-size: .9rem; }
      .hive { width: 286px; height: 286px; }
      .hex { width: 80px; height: 80px; font-size: 1.8rem; }
    }

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.brand-title {
    margin: 0;
    line-height: 1.05;
}

.brand-subtitle {
    margin-top: 2px;
    color: var(--muted);
    font-size: 0.95rem;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.celebration-modal[hidden] {
    display: none;
}

.celebration-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.celebration-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

.celebration-dialog {
    position: relative;
    z-index: 1;
    width: min(420px, 100%);
    padding: 34px 28px 28px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--panel);
    color: var(--text);
    box-shadow: var(--shadow);
    text-align: center;
}

.celebration-close {
    position: absolute;
    top: 8px;
    right: 10px;
    min-width: 38px;
    padding: 2px 8px;
    border: 0;
    background: transparent;
    font-size: 1.8rem;
    line-height: 1;
}

.celebration-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: var(--accent);
    color: var(--center-text);
    font-size: 2.5rem;
    line-height: 72px;
}

.celebration-dialog h2 {
    margin: 0 0 10px;
    font-size: 2rem;
}

.celebration-dialog p {
    margin: 0 0 22px;
    color: var(--muted);
}

.word-item.pangram-word {
    font-weight: 700;
}

.found-word-link {
    color: inherit;
    text-decoration: none;
}

.found-word-link:hover,
.found-word-link:focus-visible {
    text-decoration: underline;
}
