/* The site's look since December 2026 (theme.js loads it on every page; an admin can switch one device back to the old look).
   Softer and calmer across every page: warm charcoal and off-white instead of near-black and bright white, quieter
   borders, no hard offset shadows except on game icons, plain type instead of typewriter capitals, rounded buttons. */
html[data-look="soft"] {
  --paper: #f3f0e8; --card: #fbf9f4; --ink: #2b2925; --ink-2: #706b61; --rule: #c9c2b3; --soft: #e3ded2;
  --mono: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
@media (prefers-color-scheme: dark) {
  html[data-look="soft"]:not([data-theme="light"]) { --paper: #1f1e1b; --card: #292724; --ink: #e8e3d7; --ink-2: #a39d90; --rule: #4d4a43; --soft: #3a3833; --land: #33312c; --land-muted: #2a2825; --ocean: #22272a; --lake: #22272a; }
}
html[data-look="soft"][data-theme="dark"] { --paper: #1f1e1b; --card: #292724; --ink: #e8e3d7; --ink-2: #a39d90; --rule: #4d4a43; --soft: #3a3833; --land: #33312c; --land-muted: #2a2825; --ocean: #22272a; --lake: #22272a; }
html[data-look="soft"] body { background: var(--paper); color: var(--ink); }
/* flat surfaces: hard shadows stay only on the game icons, where they give the games some depth */
html[data-look="soft"] body *:not(.game-icon):not(.app-icon):not(.mini):not(.ic):not(.dd-menu):not(.folder-box):not(.about-box):not(.dd-streak-pop):not(.dd-toast):not(.fr-frame):not(.fr-view):not(.hung):not(.fr-label):not(.fr-ticket):not(.fr-rail) { box-shadow: none !important; }
html[data-look="soft"] .btn, html[data-look="soft"] button.tool, html[data-look="soft"] .tool { border-radius: 8px; }
html[data-look="soft"] .card, html[data-look="soft"] .game, html[data-look="soft"] .stage, html[data-look="soft"] dialog { border-radius: 12px; }
html[data-look="soft"] .btn.primary { border-color: var(--ink); }
/* top bars: one thin quiet line underneath instead of a heavy rule */
html[data-look="soft"] header, html[data-look="soft"] .bar, html[data-look="soft"] .topbar { border-bottom-width: 1px !important; border-bottom-color: var(--soft) !important; }
/* plain words instead of shouting capitals in small labels */
html[data-look="soft"] .bar nav, html[data-look="soft"] .eyebrow, html[data-look="soft"] .when, html[data-look="soft"] .today { text-transform: none; letter-spacing: 0; }

/* No grey lines: panels are soft filled blocks with no outline, and the divider lines inside them (under headings,
   above the stats, between list rows, under the title) are gone; spacing does that job instead. Buttons, inputs and
   game boards keep their edges. */
html[data-look="soft"] :is(.panel, .mode-panel, .card, .rank-panel, .tl-card) { border-color: transparent !important; background: var(--card); border-radius: 14px; }
html[data-look="soft"] :is(.panel, .mode-panel, .card, .rank-panel, .hero, .panels, .stats, .lineup, .lb, .sum) :is(*:not(.btn):not(button):not(input):not(select):not(textarea):not(svg):not(svg *):not(.era-bar):not(.ic):not(.dd-pip)) { border-top-color: transparent !important; border-bottom-color: transparent !important; }
html[data-look="soft"] :is(.hero, .panel-top, .stats, .lineup, .lb, .sum, .section-head) { border-color: transparent !important; }
html[data-look="soft"] hr { display: none; }
/* small labels in plain words, not tiny spaced-out capitals */
html[data-look="soft"] :is(dt, .eyebrow, .panel-count, .menu-count, .stat dt, .stats dt, .label) { text-transform: none !important; letter-spacing: 0 !important; font-family: var(--sans, 'Archivo', system-ui, sans-serif) !important; }
html[data-look="soft"] :is(.atlas-panel, .passport, .trip, .blob-panel, .playlist) { border-color: transparent !important; background: var(--card); border-radius: 14px; }
/* no thin vertical lines between stats or at the ends of bars either */
html[data-look="soft"] :is(.panel, .mode-panel, .card, .rank-panel, .atlas-panel, .stats, .lineup) :is(*:not(.btn):not(button):not(input):not(select):not(textarea):not(svg):not(svg *):not(.ic):not(.dd-pip)) { border-left-color: transparent !important; border-right-color: transparent !important; }
html[data-look="soft"] :is(.next-daily, .countdown, .rank-key summary, .all-ranks, .mode-actions .btn, .btn) { text-transform: none !important; letter-spacing: 0 !important; font-family: var(--sans, 'Archivo', system-ui, sans-serif) !important; }

/* Buttons: one clear main action per screen, filled in the game's own colour; everything else is a quiet text button
   (no outline), so nothing competes with it. Inside the games' boards and the top bar, buttons keep their own look. */
html[data-look="soft"] .btn.primary { background: var(--accent); color: var(--accent-ink, #fff); border: 0 !important; border-radius: 10px; padding: 12px 22px; min-height: 46px; font-weight: 800; }
html[data-look="soft"] .btn.primary:hover { filter: brightness(1.06); }
html[data-look="soft"] .btn.primary:active { transform: scale(.98); }
html[data-look="soft"] .btn:not(.primary):not(.done):not(.nudge):not(.sr-reset) { background: transparent; border-color: transparent !important; color: var(--ink); font-weight: 700; padding: 10px 12px; text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--ink) 25%, transparent); text-underline-offset: 4px; }
html[data-look="soft"] .btn:not(.primary):not(.done):not(.nudge):not(.sr-reset):hover { background: transparent; text-decoration-color: var(--ink); }
/* links styled as buttons: word in the middle, like real buttons */
html[data-look="soft"] a.btn:not([hidden]):not(.wide) { display: inline-flex; align-items: center; justify-content: center; vertical-align: middle; }
html[data-look="soft"] .btn.done { background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--ink); border: 0 !important; border-radius: 10px; }
/* button sizing, from common guidance: labels of at least 16px, about 48px tall, side padding about half the height,
   so the words fill the button instead of floating in a block of colour */
html[data-look="soft"] .btn.primary { font-size: 17px !important; font-weight: 700; min-height: 50px; padding: 0 25px; line-height: 1; }
html[data-look="soft"] .btn:not(.primary):not(.done):not(.nudge):not(.sr-reset) { font-size: 16px !important; min-height: 48px; padding: 0 12px; }
html[data-look="soft"] .btn.done { font-size: 16px !important; min-height: 48px; padding: 0 20px; }
/* keep a game's buttons on one row on phones: the text buttons need little room once they have no outline */
html[data-look="soft"] :is(.mode-actions, .panel-actions, .card > .row) { flex-wrap: nowrap; gap: 2px; align-items: center; }
html[data-look="soft"] :is(.mode-actions, .panel-actions, .card > .row) .btn.primary { margin-right: 8px; flex: none; }
html[data-look="soft"] :is(.mode-actions, .panel-actions, .card > .row) .btn:not(.primary) { padding: 0 9px; flex: none; }
@media (max-width: 340px) { html[data-look="soft"] :is(.mode-actions, .panel-actions, .card > .row) { flex-wrap: wrap; } }
/* the Sprint strip's Play is its main action: the bold green button */
html[data-look="soft"] .sprint-card .sc-go { background: #2fa866 !important; color: #fff !important; border: 0 !important; border-radius: 10px; min-height: 48px; padding: 0 24px; font: 700 17px var(--sans, 'Archivo', system-ui, sans-serif) !important; text-transform: none !important; letter-spacing: 0 !important; text-decoration: none; display: inline-flex; align-items: center; }
/* a row of buttons wraps onto a second line when it doesn't fit (Sprint has five for admins), instead of running past
   the card's edge; the tight spacing above still keeps a game's three buttons on one row on phones */
html[data-look="soft"] :is(.mode-actions, .panel-actions, .card > .row) { flex-wrap: wrap; row-gap: 4px; }
html[data-look="soft"] :is(.mode-actions, .panel-actions, .card > .row) > .btn { width: auto !important; min-width: 0 !important; flex: 0 0 auto !important; }

/* the ☰ menu and the top bar's buttons: a soft floating panel with no outline, no divider lines and plain section names;
   the square outlined buttons along the top become soft rounded ones */
html[data-look="soft"] .dd-menu { border: 0 !important; border-radius: 16px; box-shadow: 0 18px 50px rgba(0, 0, 0, .32) !important; padding: 10px 18px; }
html[data-look="soft"] .dd-menu-sec { border: 0 !important; padding: 10px 0; }
html[data-look="soft"] .dd-menu-title { text-transform: none !important; letter-spacing: 0 !important; font: 700 13px var(--sans, 'Archivo', system-ui, sans-serif) !important; color: var(--ink-2); }
html[data-look="soft"] :is(.icon-btn, .dd-menu-btn, .dd-streak, .dd-theme-btn, .tool-btn, .rank-chip) { border-color: transparent !important; background: color-mix(in srgb, var(--ink) 8%, transparent) !important; border-radius: 10px !important; }
html[data-look="soft"] :is(.icon-btn, .dd-menu-btn, .dd-streak, .dd-theme-btn):hover { background: color-mix(in srgb, var(--ink) 14%, transparent) !important; }
html[data-look="soft"] .dd-mark { border-radius: 7px; }
html[data-look="soft"] :is(.dd-streak-pop, .dd-toast) { border: 0 !important; border-radius: 14px; box-shadow: 0 14px 40px rgba(0, 0, 0, .3) !important; }
html[data-look="soft"] .dd-has-games .dd-games { border-color: transparent !important; }
html[data-look="soft"] :is(input.field, .field, input[type="search"], input[type="email"], input[type="text"]) { border-radius: 8px; border-width: 1.5px; }
html[data-look="soft"] :is(.page.summary, .page.answered, article.page) { border-color: transparent !important; border-radius: 14px; }
@media (max-width: 420px) {
  html[data-look="soft"] :is(.mode-actions, .panel-actions, .card > .row) .btn.primary { padding: 0 18px; margin-right: 4px; }
  html[data-look="soft"] :is(.mode-actions, .panel-actions, .card > .row) .btn:not(.primary) { padding: 0 7px; }
}
html[data-look="soft"] :is(.rows, .rows li, .page .rows) { border-color: transparent !important; }

/* the Sprint strip on the home page: a calm panel like the rest (the five puzzle icons give it its colour), a soft
   rounded "Played" pill, and a plain button in the page's ink instead of green on green */
html[data-look="soft"] body[data-folders] .sprint-card { background: var(--card) !important; color: var(--ink) !important; }
html[data-look="soft"] .sprint-card .sc-go { background: var(--ink) !important; color: var(--card) !important; text-decoration: none !important; }
html[data-look="soft"] .sprint-card .sc-go:hover { filter: none; opacity: .9; }
html[data-look="soft"] .sprint-card .sc-done { background: color-mix(in srgb, #2fa866 16%, transparent); color: var(--ink); border-radius: 999px; padding: 4px 12px 4px 5px; font-weight: 700; }
html[data-look="soft"] .sprint-card .sc-done .tick { background: #2fa866; color: var(--card); }
/* the same soft pill for "Played" on the game folders' cards */
html[data-look="soft"] .done-badge { border-radius: 999px; background: color-mix(in srgb, var(--g) 16%, transparent); color: var(--ink); border: 0; }
html[data-look="soft"] .done-badge .tick { background: var(--g); color: var(--card); }

/* THE RULE: nothing is a sharp-cornered outlined box. Every panel, card, page, dialog, result and list block is a soft
   rounded block with no outline; badges, chips and tags are rounded pills. (Full-screen game maps are left square.) */
html[data-look="soft"] :is(section, article, aside, dialog, details.adm, .card, .panel, .page, .modal, [class*="panel"], [class*="-card"], [class*="box"]:not(.checkbox), .result, .era-line, .duel-invite, .lb li, .sum, .rows, .stage, .board, .tl-card) { border-radius: 14px; }
html[data-look="soft"] :is(section, article, aside, dialog, .card, .panel, .page, .modal, [class*="panel"], [class*="-card"], .result, .duel-invite, .era-line):not(.map-wrap):not(.board) { border-color: transparent !important; }
html[data-look="soft"] :is([class*="badge"], [class*="chip"], .tag, .pill, .clue, .plus-tag, .menu-count, .panel-count, .dev-badge) { border-radius: 999px; }
html[data-look="soft"] :is(.map-wrap, .map, #map) { border-radius: 0; }
html[data-look="soft"] :is(.sc-pz, .lineup .ic, .ic, .mini) { border-radius: 8px; }
html[data-look="soft"] .dd-nudge { border-top-color: transparent !important; }
html[data-look="soft"] :is(.dd-signin, .dd-later) { border-radius: 10px; }
html[data-look="soft"] :is(.plan, .perks, .dd-cookies, .plans > *) { border-radius: 14px; border-color: transparent !important; background: var(--card); }
html[data-look="soft"] :is(.page, .doc) h2 { border-top-color: transparent !important; padding-top: 6px; }

/* THE TOP BAR ON PHONES: taller, with buttons big enough to tap (about 42px), no grey line under it, and the DD mark
   as a clear "back to all games" button with an arrow. During a round on a narrow phone the bar is busier, so the
   buttons there come down a little (see below) so the menu button never falls off the edge. */
@media (max-width: 900px) {
  html[data-look="soft"] header.dd-has-games { min-height: 64px; padding-top: 10px !important; padding-bottom: 10px !important; padding-left: 14px !important; padding-right: 14px !important; gap: 8px !important; border-bottom-color: transparent !important; }
  html[data-look="soft"] .dd-mark { display: inline-flex !important; align-items: center; gap: 3px; height: 42px; padding: 0 13px 0 9px; border-radius: 12px; font-size: 21px; line-height: 1; background: var(--ink); color: var(--paper); margin-right: 4px; }
  html[data-look="soft"] .dd-mark::before { content: '\2039'; font: 700 26px/1 var(--sans, 'Archivo', system-ui, sans-serif); margin-top: -3px; }
  html[data-look="soft"] .dd-has-games :is(.icon-btn, .dd-menu-btn) { width: 42px !important; height: 42px !important; border-radius: 12px !important; font-size: 19px !important; }
  html[data-look="soft"] .dd-has-games .dd-menu-btn span { width: 20px; gap: 5px; }
  html[data-look="soft"] .dd-has-games .dd-menu-btn { gap: 5px; }
  html[data-look="soft"] .dd-menu-open .dd-menu-btn span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  html[data-look="soft"] .dd-menu-open .dd-menu-btn span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  html[data-look="soft"] .dd-has-games .dd-streak { height: 42px !important; padding: 0 12px 0 9px !important; gap: 5px !important; border-radius: 12px !important; font-size: 18px; background: color-mix(in srgb, var(--ink) 8%, transparent) !important; }
  html[data-look="soft"] .dd-has-games .dd-streak .dd-flame { width: 22px !important; height: 22px !important; }
  html[data-look="soft"] .dd-has-games :is(.atlas-chip, .rank-chip) { min-height: 42px; border-radius: 12px !important; padding: 0 12px !important; font-size: 15px; }
  html[data-look="soft"] .dd-menu { top: 72px; }
}
/* narrow phones during a round: score and round boxes need the room */
@media (max-width: 430px) {
  html[data-look="soft"] body:not([data-screen="home"]):not([data-screen="summary"]) header.dd-has-games:not(:has(> .status:empty)) { padding-left: 10px !important; padding-right: 10px !important; gap: 6px !important; }
  html[data-look="soft"] body:not([data-screen="home"]):not([data-screen="summary"]) header.dd-has-games:not(:has(> .status:empty)) :is(.icon-btn, .dd-menu-btn) { width: 38px !important; height: 38px !important; }
  html[data-look="soft"] body:not([data-screen="home"]):not([data-screen="summary"]) header.dd-has-games:not(:has(> .status:empty)) .dd-streak { height: 38px !important; padding: 0 8px 0 6px !important; }
  html[data-look="soft"] body:not([data-screen="home"]):not([data-screen="summary"]) header.dd-has-games:not(:has(> .status:empty)) :is(.atlas-chip, .rank-chip) { min-height: 38px; padding: 0 8px !important; }
}
/* a game's start screen: the in-game home button is hidden there, so it shouldn't keep its space ("‹ DD" goes home) */
html[data-look="soft"] body[data-screen="home"] #btn-home { display: none !important; }
@media (max-width: 400px) {
  html[data-look="soft"] .dd-has-games :is(.atlas-chip, .rank-chip) { padding: 0 8px !important; gap: 5px !important; }
  html[data-look="soft"] .dd-has-games .dd-streak { padding: 0 9px 0 7px !important; }
  html[data-look="soft"] header.dd-has-games { padding-left: 12px !important; padding-right: 12px !important; gap: 7px !important; }
}
/* the light/dark switch on the home, Plus and account pages: same size and shape as the other bar buttons */
html[data-look="soft"] .dd-theme-btn.hub { width: 40px; height: 40px; border-radius: 12px !important; }
/* no zoom on a quick double tap (tapping a button twice, like the light/dark switch); pinching to zoom still works */
html, body, button, a, input, select, label, summary, [role="button"] { touch-action: manipulation; }
/* the admin page: each dropdown is a soft card (no top line bent by the rounded corners) with a normal-sized heading */
html[data-look="soft"] details.adm { border: 0 !important; background: var(--card); padding: 0 18px; margin: 0 0 10px; }
html[data-look="soft"] .adm > summary { padding: 16px 0; min-height: 30px; }
html[data-look="soft"] .adm > summary h2 { font-size: 24px !important; line-height: 1.1; }
html[data-look="soft"] .adm > summary::after { font: 600 24px/1 var(--sans, 'Archivo', sans-serif); color: var(--ink-2); }
html[data-look="soft"] .adm-body { padding: 0 0 18px; }
/* inside the admin cards: tinted boxes with gaps instead of outlined boxes and divider lines */
html[data-look="soft"] :is(.st-tiles, .st-live, .st-scroll) { border: 0 !important; background: transparent; border-radius: 12px; }
html[data-look="soft"] .st-tiles { gap: 8px; }
html[data-look="soft"] .st-tile { border: 0 !important; border-radius: 12px; background: color-mix(in srgb, var(--ink) 6%, transparent); }
html[data-look="soft"] :is(.st-live, .st-scroll) { background: color-mix(in srgb, var(--ink) 6%, transparent); }
html[data-look="soft"] .st-plot { border-bottom-color: color-mix(in srgb, var(--ink) 15%, transparent); }
html[data-look="soft"] .st-table :is(th, td) { border-bottom-color: color-mix(in srgb, var(--ink) 8%, transparent) !important; }
html[data-look="soft"] .acct-search { border: 0 !important; border-radius: 10px; background: color-mix(in srgb, var(--ink) 6%, transparent); }
html[data-look="soft"] body:has(.adm) header.bar { border-bottom-color: transparent !important; }
/* admin: who's on the site right now, at the very top as its own card */
html[data-look="soft"] .st-live.live-top { margin: 0 0 14px; padding: 16px 18px; background: var(--card) !important; border-radius: 14px; }
/* admin: a link to the game prototypes, under who's on the site right now */
.proto-link { display: block; margin: 0 0 14px; padding: 16px 18px; border-radius: 14px; background: var(--card); color: var(--ink); font-weight: 800; text-decoration: none; }
.proto-link::after { content: ' \2192'; }
/* Daily Plus perks: room inside the rounded box, so the text doesn't touch its edges */
html[data-look="soft"] .perks li { padding: 14px 18px; }
/* Endless lives in every game (/shared/lives.js): three X's, red once lost */
.dd-lives { display: inline-flex; flex-shrink: 0; align-items: center; gap: 3px; font: 900 15px/1 var(--sans, 'Archivo', system-ui, sans-serif); white-space: nowrap; }
@media (max-width: 900px) {
  /* phones, in Endless: the lives keep their room in the top bar; the word "Endless" goes (the game says it anyway) */
  .dd-has-games .status:has(.dd-lives) { flex-shrink: 0 !important; overflow: visible !important; }
  .dd-has-games .status:has(.dd-lives) .status-label { display: none !important; }
}
.dd-lives i { font-style: normal; color: color-mix(in srgb, currentColor 45%, transparent); transition: color .3s ease, transform .3s ease; }
.dd-lives i.lost { color: #e5484d; transform: scale(1.15); }
@media (max-width: 400px) { .dd-has-games .dd-lives { font-size: 11px; gap: 1px; } .dd-has-games .status:has(.dd-lives) { gap: 0 !important; } }
@media (max-width: 370px) { html[data-look="soft"] body header.dd-has-games.dd-has-games:has(.dd-lives) { gap: 4px !important; padding-left: 10px !important; padding-right: 10px !important; } }
@media (max-width: 370px) { html[data-look="soft"] body:not([data-screen="home"]):not([data-screen="summary"]) header.dd-has-games:not(:has(> .status:empty)):has(.dd-lives) { gap: 3px !important; } }
