/* NerdZap "Not Recommended" game. The game board copies the Steam store's own colours so the
   review cards read as real Steam reviews; everything else follows the site. */
.nr-game {
    --nr-page: #1b2838;
    --nr-deep: #0f1620;
    --nr-card: #16202d;
    --nr-text: #c6d4df;
    --nr-review: #acb2b8;
    --nr-muted: #8091a2;
    --nr-faint: #56677a;
    --nr-line: rgba(255, 255, 255, 0.07);
    --nr-blue: #66c0f4;
    --nr-good: #5ba32b;
    --nr-warn: #e6b422;
    --nr-bad: #c0392b;
    --nr-steam-font: Arial, Helvetica, "Motiva Sans", sans-serif;
    background: radial-gradient(ellipse at top, #22364d 0%, var(--nr-page) 50%, var(--nr-deep) 100%);
    background-color: var(--nr-page);
    border: 2px solid rgba(102, 192, 244, 0.45);
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.55), 0 0 28px rgba(102, 192, 244, 0.16), 0 12px 32px rgba(0, 0, 0, 0.5);
    border-radius: 12px;
    padding: 16px;
    color: var(--nr-text);
    display: grid;
    gap: 12px;
    margin-bottom: 20px;
    min-height: 520px;
    align-content: start; /* short screens (History, messages) stay under the menu instead of stretching the rows */
    position: relative;
    overflow: hidden;
}
.nr-confetti { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 5; }
.nr-game *, .nr-game *::before, .nr-game *::after { box-sizing: border-box; }
.nr-game button { font-family: inherit; }
.nr-game button:focus-visible, .nr-game a:focus-visible { outline: 2px solid var(--nr-blue); outline-offset: 2px; }

/* Top bar: mode switch + status */
.nr-top { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.nr-modes { display: flex; background: rgba(0, 0, 0, 0.3); border: 1px solid var(--nr-line); border-radius: 999px; padding: 3px; }
.nr-modes button { font-weight: 700; font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--nr-muted); background: none; border: 0; border-radius: 999px; padding: 7px 14px; cursor: pointer; }
.nr-modes button[aria-pressed="true"] { background: var(--accent-primary); color: #1a0d02; }
.nr-status { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; font-size: 0.82rem; color: var(--nr-muted); }
.nr-status strong { color: var(--nr-text); font-variant-numeric: tabular-nums; }
.nr-dots { display: flex; gap: 5px; }
.nr-dots i { width: 22px; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.1); }
.nr-dots i.now { background: var(--nr-text); }
/* Same colours as the share squares: green 4 pts, yellow 3, orange 2, red 1, black missed */
.nr-dots i.s4 { background: #78b159; } .nr-dots i.s3 { background: #fdcb58; } .nr-dots i.s2 { background: #f4900c; } .nr-dots i.s1 { background: #dd2e44; } .nr-dots i.s0 { background: #3a4654; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25); }

/* ---- Steam-style review card ---- */
.nr-review { display: grid; grid-template-columns: 150px minmax(0, 1fr); background: var(--nr-card); box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.25), 0 10px 30px rgba(0, 0, 0, 0.35); min-height: 228px; font-family: var(--nr-steam-font); }
.nr-author { padding: 12px; display: flex; gap: 9px; align-items: flex-start; background: linear-gradient(180deg, rgba(0, 0, 0, 0.18), transparent); }
.nr-avatar { width: 34px; height: 34px; flex: none; padding: 1px; background: linear-gradient(#5d7182, #3c4a56); }
.nr-avatar svg { display: block; width: 100%; height: 100%; }
.nr-who { min-width: 0; display: grid; gap: 3px; font-size: 11px; color: var(--nr-muted); }
.nr-redact { height: 12px; width: 84px; background: repeating-linear-gradient(90deg, #2b3d50 0 6px, #34495e 6px 9px); border-radius: 2px; }
.nr-rv { min-width: 0; display: flex; flex-direction: column; }
.nr-vote { display: flex; align-items: center; gap: 10px; background: rgba(0, 0, 0, 0.25); padding: 7px 10px; }
.nr-icon { width: 40px; height: 40px; flex: none; display: grid; place-items: center; background: linear-gradient(135deg, #32252a, #1f1a20); }
.nr-icon svg { width: 26px; height: 26px; }
.nr-vote-title { font-size: 16px; color: #d6d7d8; line-height: 1.15; }
.nr-hrs { font-size: 11px; color: var(--nr-muted); }
.nr-posted { font-size: 10px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--nr-faint); padding: 10px 12px 0; }
.nr-body { padding: 8px 12px 12px; color: var(--nr-review); font-size: 13px; line-height: 1.55; white-space: pre-line; overflow-wrap: anywhere; flex: 1; }
.nr-feedback { border-top: 1px solid var(--nr-line); margin: 0 12px; padding: 8px 0 10px; font-size: 11.5px; color: var(--nr-faint); display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.nr-feedback .counts { display: grid; gap: 2px; }
.nr-report { background: none; border: 0; padding: 0; color: var(--nr-faint); font-size: 11px; text-decoration: underline; cursor: pointer; align-self: flex-end; }
.nr-report:hover { color: var(--nr-muted); }
/* Review / answer box: one fixed slot, so nothing below it moves */
.nr-card { min-height: 238px; display: grid; }
.nr-card > * { min-height: 238px; }
.nr-card.swap > * { animation: nr-drop 0.3s ease-out; }
@keyframes nr-drop { from { opacity: 0.4; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* The answer, in the review's place */
/* The answer, in the review's place: a picture, the verdict, then one clear button */
.nr-answer { display: grid; grid-template-columns: minmax(0, 40%) minmax(0, 1fr); gap: 12px 16px; align-items: center; background: var(--nr-card); padding: 14px; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.25), 0 10px 30px rgba(0, 0, 0, 0.35); border-top: 3px solid var(--nr-good); }
.nr-answer.is-wrong { border-top-color: var(--nr-bad); }
.nr-answer img { width: 100%; border-radius: 2px; display: block; }
/* Steam's header art sometimes has a 5px coloured frame baked into the picture (gold on a few games). Players read that as
   the "right answer" ring, so every game picture is scaled up slightly inside a clipping box to crop the frame away. */
.nr-crop { display: block; font-style: normal; overflow: hidden; border-radius: 2px; }
.nr-crop img { display: block; transform: scale(1.06); }
.nr-opt .nr-crop { border-radius: 0; }
.nr-recap .nr-crop { width: 64px; flex: none; }
.nr-recap .nr-crop img { width: 100%; border-radius: 0; }

.nr-answer-text { min-width: 0; }
.nr-verdict { display: inline-block; font-weight: 800; font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: #0d1a07; background: var(--nr-good); padding: 3px 9px; border-radius: 3px; margin-bottom: 6px; }
.is-wrong .nr-verdict { background: var(--nr-bad); color: #fff; }
.nr-answer h2 { margin: 0 0 4px; font-size: 1.35rem; font-weight: 800; line-height: 1.15; color: #fff; text-wrap: balance; overflow-wrap: anywhere; }
.nr-rating { margin: 0 0 6px; font-size: 0.88rem; color: var(--nr-muted); }
.nr-rating b { color: var(--nr-blue); font-weight: 600; }
.nr-answer p { margin: 0; color: var(--nr-muted); }
.nr-answer h2 .nr-year { font-size: 0.7em; font-weight: 500; color: var(--nr-muted); white-space: nowrap; }
.nr-cta { grid-column: 1 / -1; display: grid; justify-items: center; gap: 6px; }
.nr-go { justify-content: center; gap: 8px; width: min(100%, 320px); font-size: 1rem; padding: 13px 22px; box-shadow: 0 4px 16px rgba(249, 115, 22, 0.35); }
.nr-steam { font-size: 0.8rem; color: var(--nr-muted); text-decoration: underline; text-underline-offset: 3px; padding: 2px 6px; }
.nr-steam:hover { color: #fff; }

/* A wrong guess: the new review swings in with a gold flash, so it isn't missed (no extra text, no extra space) */
.nr-card { position: relative; }
.nr-card.nr-new > * { animation: nr-arrive 0.6s cubic-bezier(0.2, 0.9, 0.3, 1.25); }
.nr-card.nr-new { animation: nr-glow 1.6s ease-out; }
.nr-tabs button.fresh { animation: nr-pulse 0.9s ease-out 3; }
@keyframes nr-arrive { 0% { opacity: 0; transform: translateX(48px) rotate(1.5deg); } 55% { opacity: 1; transform: translateX(-7px) rotate(-0.5deg); } 80% { transform: translateX(3px); } 100% { transform: none; } }
@keyframes nr-glow { 0% { box-shadow: 0 0 0 3px var(--nr-warn), 0 0 32px rgba(230, 180, 34, 0.7); } 100% { box-shadow: 0 0 0 0 rgba(230, 180, 34, 0), 0 0 0 rgba(230, 180, 34, 0); } }
@keyframes nr-pulse { 0% { box-shadow: 0 0 0 0 rgba(102, 192, 244, 0.9); } 100% { box-shadow: 0 0 0 10px rgba(102, 192, 244, 0); } }

/* Review tabs */
.nr-tabs { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.nr-tabs button { font-weight: 700; font-size: 0.75rem; color: var(--nr-muted); background: rgba(0, 0, 0, 0.3); border: 1px solid var(--nr-line); padding: 6px 10px; border-radius: 3px; cursor: pointer; }
.nr-tabs button[aria-current="true"] { color: #fff; border-color: var(--nr-blue); background: rgba(102, 192, 244, 0.12); }
.nr-tabs button:disabled { opacity: 0.35; cursor: default; }

.nr-worth { margin-left: auto; font-size: 0.78rem; font-weight: 800; padding: 4px 10px; border-radius: 999px; font-variant-numeric: tabular-nums; }
/* Same colours as the score squares: green 4, yellow 3, orange 2, red 1 */
.nr-worth.w4 { background: rgba(120, 177, 89, 0.18); color: #9ed37f; box-shadow: inset 0 0 0 1px rgba(120, 177, 89, 0.5); }
.nr-worth.w3 { background: rgba(253, 203, 88, 0.15); color: #fdcb58; box-shadow: inset 0 0 0 1px rgba(253, 203, 88, 0.45); }
.nr-worth.w2 { background: rgba(244, 144, 12, 0.15); color: #f6a53a; box-shadow: inset 0 0 0 1px rgba(244, 144, 12, 0.45); }
.nr-worth.w1 { background: rgba(221, 46, 68, 0.15); color: #f06b7d; box-shadow: inset 0 0 0 1px rgba(221, 46, 68, 0.5); }
.nr-hint { margin: 0; font-size: 0.85rem; color: var(--nr-text); background: rgba(102, 192, 244, 0.08); border-left: 3px solid var(--nr-blue); padding: 7px 10px; border-radius: 2px; }
.nr-hint b { color: var(--nr-blue); }


/* Choices */
.nr-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.nr-opt { position: relative; display: grid; padding: 0; border: 0; background: #0f1923; color: var(--nr-text); cursor: pointer; text-align: left; border-radius: 3px; overflow: hidden; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06); transition: transform 0.12s, box-shadow 0.12s, opacity 0.2s; }
.nr-opt img { display: block; width: 100%; aspect-ratio: 460 / 215; object-fit: cover; background: #0b1118; }
.nr-opt span { padding: 7px 8px 8px; font-size: 12px; font-weight: 700; line-height: 1.25; min-height: 2.5em; }
.nr-opt:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 0 0 2px var(--nr-blue); }
.nr-opt:disabled { cursor: default; }
.nr-opt.wrong img, .nr-opt.wrong span { opacity: 0.35; filter: grayscale(1); }
.nr-opt.wrong.just { animation: nr-shake 0.4s; }
@keyframes nr-shake { 0%, 100% { transform: none; } 20% { transform: translateX(-6px); } 40% { transform: translateX(6px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(4px); } }
.nr-nope { position: absolute; left: 0; right: 0; top: 0; aspect-ratio: 460 / 215; display: grid; place-items: center; font-style: normal; font-weight: 800; font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase; color: #fff; background: rgba(192, 57, 43, 0.55); text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6); }
.nr-opt.right::after { position: absolute; top: 6px; right: 6px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font: 800 15px/1 Arial, sans-serif; color: #fff; }
.nr-opt.right { box-shadow: 0 0 0 3px var(--nr-good); }
.nr-opt.right::after { content: "\2713"; background: var(--nr-good); }
.nr-opt.answer { box-shadow: 0 0 0 3px var(--nr-warn); }

.nr-rating { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; margin: 0 0 8px; font-size: 12px; color: var(--nr-muted); }
.nr-rating b { color: var(--nr-blue); font-weight: 400; font-size: 13px; }
.nr-pts { color: var(--accent-primary); font-weight: 700; }
.nr-btn { font-weight: 800; font-size: 0.9rem; letter-spacing: 0.05em; text-transform: uppercase; background: var(--accent-primary); color: #1a0d02; border: 0; padding: 10px 18px; border-radius: 4px; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; }
.nr-btn.ghost { background: transparent; color: var(--nr-text); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25); }
.nr-btn.small { font-size: 0.75rem; padding: 6px 12px; }
.nr-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* End of the Daily */
.nr-summary { text-align: center; display: grid; gap: 12px; justify-items: center; background: rgba(0, 0, 0, 0.3); border: 1px solid var(--nr-line); padding: 22px 16px; border-radius: 4px; }
.nr-summary h2 { margin: 0; font-size: 1.8rem; font-weight: 800; text-transform: uppercase; color: #fff; }
.nr-big { font-size: 3.2rem; font-weight: 800; line-height: 1; color: var(--accent-primary); font-variant-numeric: tabular-nums; }
.nr-squares { font-size: 1.6rem; letter-spacing: 4px; line-height: 1; }
.nr-btn svg { width: 15px; height: 15px; margin-right: 7px; }
.nr-share-row { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.nr-share-btn { display: inline-flex; align-items: center; gap: 6px; font-size: 0.8rem; font-weight: 700; color: var(--nr-text); text-decoration: none; background: rgba(255, 255, 255, 0.06); border: 1px solid var(--nr-line); padding: 7px 11px; border-radius: 999px; }
.nr-share-btn:hover { border-color: var(--nr-blue); color: #fff; }
.nr-share-btn svg { width: 14px; height: 14px; }
.nr-link { background: none; border: 0; padding: 0; color: var(--nr-blue); font: inherit; text-decoration: underline; cursor: pointer; }
.nr-promo { width: 100%; max-width: 560px; border-top: 1px solid var(--nr-line); padding-top: 16px; display: grid; gap: 10px; justify-items: center; }
.nr-promo[hidden] { display: none; }
.nr-promo h3 { margin: 0; font-size: 1rem; color: #fff; }
.nr-free { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; width: 100%; }
.nr-free-card { display: grid; gap: 6px; text-decoration: none; color: var(--nr-muted); font-size: 0.75rem; text-align: left; }
.nr-free-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 3px; background: #0b1118; }
.nr-free-card b { display: block; color: var(--nr-text); font-size: 0.8rem; line-height: 1.25; }
.nr-share { font-family: ui-monospace, Menlo, Consolas, monospace; background: #0b1118; border: 1px solid var(--nr-line); padding: 10px 14px; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--nr-text); font-size: 0.9rem; max-width: 100%; text-align: left; }
.nr-recap { display: grid; gap: 6px; width: 100%; max-width: 420px; text-align: left; }
.nr-recap div { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; color: var(--nr-muted); }
.nr-recap img { width: 64px; border-radius: 2px; flex: none; }
.nr-recap b { color: var(--nr-text); }
.nr-toast { min-height: 1.2em; font-size: 0.8rem; color: var(--nr-good); }
.nr-next { font-size: 0.85rem; color: var(--nr-muted); }
.nr-next strong { color: var(--nr-text); font-variant-numeric: tabular-nums; }
.nr-msg { padding: 40px 16px; text-align: center; color: var(--nr-muted); }

@media (max-width: 560px) {
    .nr-game { padding: 12px; border-radius: 8px; }
    .nr-review { grid-template-columns: minmax(0, 1fr); min-height: 0; }
    .nr-author { padding: 8px 10px 0; background: none; }
    .nr-who { grid-auto-flow: column; align-items: center; gap: 8px; }
    .nr-avatar { width: 26px; height: 26px; }
    .nr-options { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .nr-card, .nr-card > * { min-height: 0; }
    .nr-answer { grid-template-columns: minmax(0, 36%) minmax(0, 1fr); gap: 10px 12px; padding: 12px; }
    .nr-answer h2 { font-size: 1.05rem; }
    .nr-rating { font-size: 0.8rem; margin-bottom: 4px; }
    .nr-rating span { display: none; }
    .nr-answer p { font-size: 0.85rem; }
    .nr-go { width: 100%; }
    .nr-free { grid-template-columns: minmax(0, 1fr); }
    .nr-free-card { grid-template-columns: 96px minmax(0, 1fr); align-items: center; }
}
@media (max-width: 560px) {
    .nr-tl { display: none; }
    .nr-tabs { flex-wrap: nowrap; }
    .nr-tabs button { min-width: 44px; text-align: center; }
    .nr-worth { font-size: 0.72rem; padding: 3px 9px; white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) { .nr-card.swap > *, .nr-opt.wrong.just, .nr-card.nr-new, .nr-card.nr-new > *, .nr-tabs button.fresh { animation: none; } .nr-opt { transition: none; } }

/* Steam-style vote header used as the page title and on the Games hub card */
.nr-brand { display: inline-flex; align-items: center; gap: 12px; text-align: left; background: rgba(0, 0, 0, 0.25); padding: 8px 18px 8px 8px; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.05); }
.nr-brand .nr-icon { width: 56px; height: 56px; }
.nr-brand .nr-icon svg { width: 36px; height: 36px; }
/* "Not Recommended" always stays on one line next to the thumb (beats the site's .hero h1 sizes) */
.hero.hero-compact .nr-brand h1, .hero .nr-brand h1, .nr-brand h1, .nr-brand .nr-brand-title { margin: 0; font-family: Arial, Helvetica, "Motiva Sans", sans-serif; font-weight: 400; font-size: clamp(1.35rem, 6.2vw, 2rem) !important; line-height: 1.1; color: #d6d7d8; letter-spacing: 0 !important; white-space: nowrap; }
.nr-brand { max-width: 100%; }
.nr-brand .nr-brand-sub { font-family: Arial, Helvetica, sans-serif; font-size: 0.85rem; color: #8091a2; }
.nr-brand .nr-brand-sub b { color: var(--accent-primary); font-weight: 700; }
@media (max-width: 560px) { .nr-brand { gap: 10px; padding-right: 14px; } .nr-brand .nr-icon { width: 44px; height: 44px; } .nr-brand .nr-icon svg { width: 28px; height: 28px; } }

/* Games hub card, laid out like a Steam review */
.nr-hub-card { display: flex; flex-direction: column; text-decoration: none; background: #16202d; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.3), 0 10px 30px rgba(0, 0, 0, 0.35); transition: transform 0.15s, box-shadow 0.15s; font-family: Arial, Helvetica, "Motiva Sans", sans-serif; }
.nr-hub-card:hover { transform: translateY(-3px); box-shadow: 0 0 0 2px #66c0f4, 0 14px 34px rgba(0, 0, 0, 0.45); }
.nr-hub-vote { display: flex; align-items: center; gap: 10px; background: rgba(0, 0, 0, 0.25); padding: 8px 10px; }
.nr-hub-vote .nr-icon { width: 46px; height: 46px; }
.nr-hub-vote .nr-icon svg { width: 30px; height: 30px; }
.nr-hub-title { font-size: 1.3rem; color: #d6d7d8; line-height: 1.15; }
.nr-hub-sub { font-size: 0.78rem; color: #8091a2; }
.nr-hub-sub b { color: var(--accent-primary); }
.nr-hub-posted { font-size: 10px; letter-spacing: 0.04em; text-transform: uppercase; color: #56677a; padding: 12px 14px 0; }
.nr-hub-body { margin: 0; padding: 8px 14px 14px; color: #acb2b8; font-size: 0.95rem; line-height: 1.55; flex: 1; }
.nr-hub-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; border-top: 1px solid rgba(255, 255, 255, 0.07); margin: 0 14px; padding: 10px 0 12px; font-size: 0.75rem; color: #56677a; }
.nr-hub-play { font-weight: 700; color: #66c0f4; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; }

/* ---- Page layout: a slim header so the game starts near the top ---- */
.nr-col .breadcrumbs { margin-top: 10px !important; }
.hero.hero-compact.nr-hero { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 20px; max-width: 900px; margin-top: 8px; padding: 4px 0 10px; }
.nr-hero .nr-tag { margin: 0 !important; flex: 0 1 300px; max-width: 300px !important; text-align: center; text-wrap: balance; font-size: 0.95rem; line-height: 1.35; }
.nr-hero .nr-beer { margin: 0 !important; }
@media (max-width: 700px) {
    .nr-col .breadcrumbs { margin-top: 6px !important; }
    .hero.hero-compact.nr-hero { gap: 6px; padding: 2px 0 6px; margin-top: 4px; }
    .nr-hero .nr-tag { flex-basis: 100%; max-width: 100% !important; text-align: center; font-size: 0.85rem; }
    .nr-hero .nr-beer { display: none !important; } /* the beer button is under the game too */
}

/* ---- Focus mode button ---- */
.nr-focus { display: inline-flex; align-items: center; gap: 6px; order: 2; font-weight: 700; font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--nr-text); background: rgba(0, 0, 0, 0.3); border: 1px solid var(--nr-line); border-radius: 999px; padding: 7px 12px; cursor: pointer; }
.nr-focus:hover { border-color: var(--nr-blue); color: #fff; }
.nr-focus svg { width: 14px; height: 14px; }
.nr-focus b { font-weight: 700; }
.nr-top .nr-status { order: 1; margin-left: auto; }
@media (max-width: 560px) { .nr-top .nr-focus { margin-left: auto; } .nr-top .nr-status { order: 3; flex-basis: 100%; margin-left: 0; } .nr-focus:not([aria-pressed="true"]) b { display: none; } .nr-focus:not([aria-pressed="true"]) { padding: 7px 9px; } }

/* ---- Bigger tap targets on touch screens ---- */
@media (pointer: coarse) {
    .nr-modes button { padding: 11px 16px; }
    .nr-focus { min-height: 44px; padding: 8px 14px; }
    .nr-tabs button { min-height: 40px; padding: 8px 12px; }
    .nr-report { min-height: 36px; padding: 0 6px; }
    .nr-btn.small { min-height: 40px; }
}

/* ---- Focus mode: the game fills the screen and everything fits ---- */
html.nr-lock { overflow: hidden; }
.nr-game.is-focus {
    position: fixed; inset: 0; z-index: 9000; margin: 0; border: 0; border-radius: 0; box-shadow: none;
    height: 100vh; height: 100dvh; min-height: 0; max-height: none;
    /* keep clear of rounded screen corners, camera cut-outs and notches */
    padding: calc(14px + env(safe-area-inset-top, 0px)) calc(16px + env(safe-area-inset-right, 0px)) calc(12px + env(safe-area-inset-bottom, 0px) + var(--nr-bottom, 0px)) calc(16px + env(safe-area-inset-left, 0px));
    display: flex; flex-direction: column; gap: 10px; overflow: hidden;
}
.nr-game.is-focus > .nr-top, .nr-game.is-focus > #nr-stage { width: 100%; max-width: 1000px; margin-left: auto; margin-right: auto; flex: none; }
.nr-game.is-focus > #nr-stage { display: flex !important; flex-direction: column; gap: 10px; flex: 1 1 auto; min-height: 0; overflow-y: auto; }
.is-focus .nr-card { flex: 0 0 auto; min-height: 0; max-height: max(38vh, 250px); max-height: max(38dvh, 250px); overflow-y: auto; }
.is-focus .nr-card > *, .is-focus .nr-review { min-height: 0; }
.is-focus .nr-tabs, .is-focus .nr-hint { flex: none; }
/* Answer pictures keep their shape (the logo is often the clue) and shrink to fit the height that's left */
.nr-game.is-focus { --nr-fixed: 300px; --nr-rows: 2; }
.is-focus .nr-options { flex: 0 0 auto; align-content: start; }
.is-focus .nr-opt img { aspect-ratio: 460 / 215; width: 100%; height: auto; min-height: calc((min(100vw, 1000px) - 44px) / 3 * 0.42); object-fit: contain; background: transparent;
    max-height: calc((100vh - var(--nr-bottom, 0px) - var(--nr-fixed)) / var(--nr-rows) - 44px);
    max-height: calc((100dvh - var(--nr-bottom, 0px) - var(--nr-fixed)) / var(--nr-rows) - 44px); }
.is-focus .nr-nope { aspect-ratio: auto; bottom: 3.4em; }
@media (max-width: 560px) {
    .nr-game.is-focus { padding: calc(14px + env(safe-area-inset-top, 0px)) calc(14px + env(safe-area-inset-right, 0px)) calc(8px + env(safe-area-inset-bottom, 0px) + var(--nr-bottom, 0px)) calc(14px + env(safe-area-inset-left, 0px)); --nr-fixed: 372px; --nr-rows: 3; }
    .is-focus .nr-opt img { min-height: calc((100vw - 28px) / 2 * 0.42); }
    .is-focus .nr-opt span { font-size: 11px; padding: 5px 6px 6px; min-height: 2.4em; }
    .is-focus .nr-author { display: none; } /* the greyed-out reviewer is decoration; the room goes to the answers */
}
/* A phone on its side: review on the left, answers on the right */
@media (orientation: landscape) and (max-height: 560px) and (min-width: 600px) {
    .nr-game.is-focus { --nr-fixed: 90px; --nr-rows: 2; padding: calc(10px + env(safe-area-inset-top, 0px)) calc(32px + env(safe-area-inset-right, 0px)) calc(8px + env(safe-area-inset-bottom, 0px) + var(--nr-bottom, 0px)) calc(32px + env(safe-area-inset-left, 0px)); }
    .nr-game.is-focus > #nr-stage { display: grid !important; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); grid-auto-rows: min-content; column-gap: 12px; row-gap: 8px; align-content: start; }
    .is-focus .nr-card, .is-focus .nr-tabs, .is-focus .nr-hint { grid-column: 1; }
    .is-focus .nr-card { max-height: none; }
    .is-focus .nr-options { grid-column: 2; grid-row: 1 / span 4; }
    .is-focus .nr-opt img { min-height: 40px; }
    .is-focus .nr-opt span { font-size: 11px; padding: 5px 6px 6px; min-height: 2.4em; }
}

/* How everyone did today */
.nr-stats { width: 100%; max-width: 420px; display: grid; gap: 6px; justify-items: center; font-size: 0.9rem; color: var(--nr-muted); }
.nr-stats[hidden] { display: none; }
.nr-stats p { margin: 0; }
.nr-stats strong { color: var(--nr-text); font-variant-numeric: tabular-nums; }
.nr-spread { display: flex; align-items: flex-end; gap: 2px; height: 48px; width: 100%; }
.nr-spread i { flex: 1; background: rgba(255, 255, 255, 0.22); border-radius: 2px 2px 0 0; min-height: 2px; }
.nr-spread i.you { background: var(--accent-primary); }
.nr-spread-axis { display: flex; justify-content: space-between; width: 100%; font-size: 0.7rem; }

/* Endless share: small icon in the status bar, opens a box under the top bar */
.nr-share-icon { display: inline-grid; place-items: center; width: 30px; height: 30px; padding: 0; color: var(--nr-text); background: rgba(255, 255, 255, 0.06); border: 1px solid var(--nr-line); border-radius: 50%; cursor: pointer; }
.nr-share-icon svg { width: 14px; height: 14px; }
.nr-share-icon:hover, .nr-share-icon[aria-expanded="true"] { border-color: var(--nr-blue); color: #fff; }
.nr-sharebox { position: absolute; z-index: 30; right: 0; top: calc(100% + 8px); width: min(360px, 100%); display: grid; gap: 12px; padding: 14px; background: var(--nr-card); border: 1px solid var(--nr-line); border-radius: 12px; box-shadow: 0 14px 40px rgba(0, 0, 0, 0.5); }
.nr-sharebox[hidden] { display: none; }
.nr-sharebox .nr-row { justify-content: center; }
.nr-sharebox .nr-share-row { justify-content: center; }
.nr-sharebox-head { display: flex; align-items: center; justify-content: space-between; color: var(--nr-text); font-size: 0.9rem; }
.nr-sharebox-x { width: 28px; height: 28px; font-size: 1.3rem; line-height: 1; color: var(--nr-muted); background: none; border: 0; border-radius: 50%; cursor: pointer; }
.nr-sharebox-x:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }

/* ---- History: replay an earlier Daily ---- */
.nr-tag { font-style: normal; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent-primary); border: 1px solid currentColor; border-radius: 999px; padding: 1px 7px; margin-left: 4px; }
.nr-history { display: grid; gap: 10px; }
.nr-history h2 { margin: 0; font-size: 1.15rem; }
.nr-history ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.nr-history li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 4px 12px; background: var(--nr-card); border-radius: 6px; padding: 8px 10px 8px 14px; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.25); }
.nr-h-day { font-size: 0.9rem; color: var(--nr-muted); }
.nr-h-day b { color: var(--nr-text); margin-right: 6px; }
.nr-h-res { font-size: 0.85rem; color: var(--nr-muted); white-space: nowrap; }
.nr-h-res b { color: var(--nr-text); font-variant-numeric: tabular-nums; }
.nr-h-none { opacity: 0.7; }
@media (max-width: 560px) {
    .nr-history li { grid-template-columns: minmax(0, 1fr) auto; }
    .nr-h-res { grid-column: 1; grid-row: 2; }
    .nr-history li .nr-btn { grid-column: 2; grid-row: 1 / span 2; }
    .nr-modes button { padding-left: 12px; padding-right: 12px; }
}
