/* game-doctor-talk.css: styles for Doctor Talk, moved out of the prototype for the site CSP (Oct 2026). */
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; src: url("/fonts/archivo-wdth.woff2") format("woff2"); }
@font-face { font-family: "Archivo"; font-style: italic; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; src: url("/fonts/archivo-wdth-italic.woff2") format("woff2"); }
@font-face { font-family: "Atkinson Next"; font-style: normal; font-weight: 200 800; font-display: swap; src: url("/fonts/atkinson-next.woff2") format("woff2"); unicode-range: U+0000-002F, U+003A-FFFF; }
@font-face { font-family: "Atkinson Next"; font-style: italic; font-weight: 200 800; font-display: swap; src: url("/fonts/atkinson-next-italic.woff2") format("woff2"); unicode-range: U+0000-002F, U+003A-FFFF; }
/* digits come from Archivo: Atkinson's slashed zero reads oddly in addresses and phone numbers */
@font-face { font-family: "Atkinson Next"; font-style: normal; font-weight: 200 800; font-display: swap; src: url("/fonts/archivo-wdth.woff2") format("woff2"); unicode-range: U+0030-0039; }
@font-face { font-family: "Atkinson Next"; font-style: italic; font-weight: 200 800; font-display: swap; src: url("/fonts/archivo-wdth-italic.woff2") format("woff2"); unicode-range: U+0030-0039; }
  :root {
    --navy: #0F1E33;
    --paper: #FBF8F2;
    --teal: #2E8B3E;
    --clay: #b3432b;
    --gold: #2E8B3E;
    --steel: #5f7286;
    --sans: 'Archivo', system-ui, sans-serif;
    --serif: "Atkinson Next", Verdana, sans-serif;
  }

  * { box-sizing: border-box; }

  html, body { margin: 0; padding: 0; }

  body {
    background: var(--paper);
    color: var(--navy);
    font-family: var(--serif);
    font-size: 16px;
    line-height: 1.55;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
  }

  /* ---------- header band ---------- */

  .band {
    background: var(--navy);
    color: var(--paper);
    padding: 14px 16px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    justify-content: space-between;
  }

  .band-name {
    font-family: var(--sans);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    margin: 0;
  }

  .band-tag {
    font-family: var(--sans);
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--navy);
    background: var(--gold);
    padding: 4px 9px;
    border-radius: 2px;
    white-space: nowrap;
  }

  /* ---------- layout ---------- */

  main {
    flex: 1;
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
    padding: 22px 16px 32px;
  }

  .screen { display: none; }
  .screen.is-active { display: block; }

  h1 {
    font-family: var(--sans);
    font-size: 1.9rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    line-height: 1.1;
    margin: 0 0 4px;
  }

  .kicker {
    font-family: var(--sans);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--teal);
    margin: 0 0 14px;
  }

  .lede { margin: 0 0 18px; max-width: 46ch; }

  .rules {
    border-left: 3px solid var(--gold);
    padding: 2px 0 2px 14px;
    margin: 0 0 24px;
    max-width: 46ch;
  }

  .rules p { margin: 0 0 8px; }
  .rules p:last-child { margin-bottom: 0; }

  .pick-label {
    font-family: var(--sans);
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--steel);
    margin: 0 0 8px;
  }

  .chips {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: 0 0 22px;
  }

  .chip {
    font-family: var(--sans);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--navy);
    background: none;
    border: 1px solid rgba(15, 30, 51, 0.35);
    border-radius: 999px;
    padding: 10px 15px;
    min-height: 42px;
    cursor: pointer;
  }

  .chip:hover { border-color: var(--navy); }

  .chip.is-on {
    background: var(--navy);
    border-color: var(--navy);
    color: var(--paper);
  }

  .topic-note {
    font-family: var(--sans);
    font-size: 0.58rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--steel);
    margin: 0 0 10px;
  }

  /* ---------- buttons ---------- */

  .btn {
    font-family: var(--sans);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--paper);
    background: var(--teal);
    border: none;
    border-radius: 3px;
    padding: 15px 26px;
    cursor: pointer;
    min-height: 48px;
  }

  .btn:hover { background: #237032; }

  .btn-quiet {
    background: none;
    color: var(--steel);
    border: 1px solid var(--steel);
  }

  .btn-quiet:hover { background: rgba(95, 114, 134, 0.1); }

  :focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 2px;
  }

  /* ---------- scoreboard ---------- */

  .meter {
    display: flex;
    gap: 8px;
    margin: 0 0 16px;
  }

  .meter div {
    flex: 1;
    border: 1px solid rgba(15, 30, 51, 0.16);
    border-radius: 3px;
    padding: 8px 6px;
    text-align: center;
    background: rgba(255, 255, 255, 0.5);
  }

  .meter dt {
    font-family: var(--sans);
    font-size: 0.55rem;
    font-weight: 600;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: var(--steel);
    margin: 0;
  }

  .meter dd {
    font-family: var(--sans);
    font-size: 1.15rem;
    font-weight: 700;
    margin: 2px 0 0;
    font-variant-numeric: tabular-nums;
  }

  /* ---------- the grid ---------- */

  .grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin: 0 0 16px;
  }

  .tile {
    display: block;
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1.06;
    border: none;
    background: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
    perspective: 900px;
    min-height: 92px;
  }

  .tile-inner {
    display: block;
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.42s ease;
  }

  .tile.is-up .tile-inner,
  .tile.is-done .tile-inner { transform: rotateY(180deg); }

  .side {
    position: absolute;
    inset: 0;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 7px;
    text-align: center;
    overflow: hidden;
  }

  .side-cover {
    background: var(--navy);
    box-shadow: inset 0 0 0 1px rgba(46, 139, 62, 0.35);
  }

  .side-cover span {
    display: block;
    width: 26px;
    height: 26px;
    flex: 0 0 auto;
    border: 2px solid var(--gold);
    border-radius: 50%;
    opacity: 0.85;
  }

  .side-content { transform: rotateY(180deg); }

  .side-content .label {
    display: block;
    min-width: 0;
    max-width: 100%;
    hyphens: auto;
    overflow-wrap: break-word;
    word-break: break-word;
  }

  .side-content.is-term {
    background: var(--teal);
    color: var(--paper);
    font-family: var(--sans);
    font-weight: 700;
    font-size: clamp(0.6rem, 2.9vw, 0.82rem);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    line-height: 1.2;
  }

  .side-content.is-term.is-long {
    font-size: clamp(0.5rem, 2.35vw, 0.66rem);
    letter-spacing: 0.01em;
  }

  .side-content.is-plain {
    background: #fff;
    color: var(--navy);
    border: 1px solid rgba(95, 114, 134, 0.5);
    font-family: var(--serif);
    font-size: clamp(0.72rem, 3.1vw, 0.9rem);
    line-height: 1.25;
  }

  .tile.is-done .side-content { box-shadow: inset 0 0 0 3px var(--gold); }
  .tile.is-done { cursor: default; }
  .tile.is-miss .side-content { box-shadow: inset 0 0 0 3px var(--clay); }

  /* ---------- explanation slot ---------- */

  .slot {
    border-top: 2px solid var(--navy);
    padding: 12px 0 0;
    min-height: 108px;
  }

  .slot-term {
    font-family: var(--sans);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--teal);
    margin: 0 0 4px;
  }

  .slot-text { margin: 0; max-width: 46ch; }
  .slot-idle { color: var(--steel); font-style: italic; }

  /* ---------- score screen ---------- */

  .rank {
    background: var(--navy);
    color: var(--paper);
    border-radius: 4px;
    padding: 22px 20px;
    text-align: center;
    margin: 0 0 20px;
  }

  .rank-label {
    font-family: var(--sans);
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--gold);
    margin: 0 0 6px;
  }

  .rank-name {
    font-family: var(--sans);
    font-size: 1.45rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    line-height: 1.15;
    margin: 0 0 10px;
  }

  .rank-stat {
    margin: 0;
    font-size: 0.9rem;
    color: rgba(247, 245, 241, 0.85);
    font-variant-numeric: tabular-nums;
  }

  .recap { margin: 0 0 22px; }

  .recap h2 {
    font-family: var(--sans);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--steel);
    margin: 0 0 10px;
  }

  .recap-item {
    border-bottom: 1px solid rgba(15, 30, 51, 0.14);
    padding: 0 0 10px;
    margin: 0 0 10px;
  }

  .recap-item:last-child { border-bottom: none; }

  .recap-term {
    font-family: var(--sans);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin: 0;
  }

  .recap-plain {
    color: var(--teal);
    font-family: var(--serif);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
  }
  .recap-text { margin: 3px 0 0; font-size: 0.94rem; }

  .actions { display: flex; flex-wrap: wrap; gap: 10px; }

  /* ---------- footer ---------- */

  footer {
    border-top: 1px solid rgba(15, 30, 51, 0.15);
    padding: 16px;
    text-align: center;
  }

  footer p {
    margin: 0 auto;
    max-width: 52ch;
    font-size: 0.78rem;
    color: var(--steel);
    line-height: 1.5;
  }

  @media (min-width: 520px) {
    .grid { grid-template-columns: repeat(4, 1fr); gap: 10px; }
    .tile { aspect-ratio: 1 / 1; }
  }

  @media (prefers-reduced-motion: reduce) {
    .tile-inner { transition: none; }
  }

/* Site chrome added when the game joined drcrodriguez.com (Oct 2026) */
.band a { color: inherit; text-decoration: none; }
.band a.ge-back { color: #2E8B3E; }
.band a.name, .band a.band-name { display: block; }
.skip-link { position: absolute; left: 8px; top: -60px; z-index: 200; background: #0F1E33; color: #fff;
  font-family: Archivo, Arial, sans-serif; font-size: 14px; font-weight: 700; padding: 12px 20px; text-decoration: none; transition: top .15s ease; }
.skip-link:focus { top: 8px; outline: 3px solid #2E8B3E; outline-offset: 2px; }
main:focus { outline: none; }
footer a { color: var(--accent, #2E8B3E); }
.game-exits { margin-top: 14px; padding-top: 14px; border-top: 1px solid #E2DACB; display: flex; flex-wrap: wrap;
  gap: 8px 18px; justify-content: center; font-family: Archivo, Arial, sans-serif; font-size: 13px; font-weight: 700; letter-spacing: .04em; }
.game-exits a { color: var(--accent, #2E8B3E); text-decoration: none; display: inline-flex; align-items: center; min-height: 24px; }
.game-exits a:hover { text-decoration: underline; }
/* Oct 2026 palette: text on navy uses the site's bright green; close calls use dress blue so they read apart from hits. */
.rank-label { color: #9BE77A; }
.side-cover span { border-color: #9BE77A; color: #9BE77A; }
