/* Eldidan: Nadidle's sea upside down (site/js/eldidan/scene.js), on Nadidle's own look: the page loads
   site/css/nadidle.css first (the bar and its gauges, the prompt card, the answer dock, the answer card, the pixel
   font) and this file only adds Eldidan's start and results panels and its few differences. Phone first. */
:root { --tq: var(--surface); --card: rgba(7, 26, 44, .86); }
a { color: var(--surface); }
.bar { grid-template-columns: 1fr auto 1fr; }

/* the start and results: a glass panel in the sea; under water the prompt card and the dock take over (#play) */
main { max-width: 560px; margin: 0 auto; padding: 76px 16px 40px; }
/* a new day opens at the surface: room for the gulet and the turtle at the waterline above the rules */
body.at-surface main { padding-top: max(18px, calc(44vh - 30px)); }
body.at-surface .title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }   /* the panel says it */
body.diving footer, body:not(.done):not(.at-surface) footer { visibility: hidden; }   /* under water: only the sea */
/* the results: more of the sea above them, where the turtle ended */
body.done main { padding-top: max(76px, calc(34vh - 40px)); }
.title { font-size: clamp(32px, 9vw, 48px); }
.title span { font: 16px/1 var(--num); color: var(--dim); margin-left: 10px; }
.panel { background: var(--card); border: 1px solid rgba(120, 220, 255, .22); border-radius: 8px; padding: 16px 18px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, .35); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }
.lead { font-size: 16px; margin: 0 0 8px; }
.panel .how { margin: 0 0 12px; padding: 0 0 0 20px; background: none; border: 0; color: var(--dim); font-size: 14px; line-height: 1.45; }
#start .note:empty { display: none; }
#start-nadidle { color: var(--surface); margin: 0 0 12px; }
#go { width: 100%; }
/* playing: the prompt card is the header (the page title would show behind it) */
body.playing .title { visibility: hidden; }
.qcard .hint { letter-spacing: .06em; }

/* the results */
.total { font: 700 56px/1 var(--num); margin: 0; text-align: center; }
.total span { font-size: 22px; color: var(--dim); }
.surf { text-align: center; margin: 8px 0 0; font: 15px/1.3 var(--num); color: var(--surface); }
.squares { text-align: center; font-size: 24px; letter-spacing: 2px; margin: 8px 0 14px; }
.r-rounds { list-style: none; margin: 0 0 18px; padding: 0; }
.r-rounds > li { padding: 10px 0; border-top: 1px solid var(--line); }
.r-rounds .q { font-size: 13px; color: var(--dim); margin: 0 0 4px; }
.r-rounds .mine { font-size: 14px; margin: 0; }
.r-rounds .mine b { color: var(--cream); }
.r-rounds .mine .band { color: var(--c); }
.r-rounds details { margin-top: 6px; font-size: 13px; }
.r-rounds summary { cursor: pointer; color: var(--dim); }
/* the top 10 in two columns (1–5, 6–10) with the numbers inside the panel: the list's own markers hung out past
   the panel's edge on phones (owner, 26 Nov 2026) */
.r-rounds .top { margin: 6px 0 0; padding: 0; list-style: none; counter-reset: top; display: grid; grid-template-rows: repeat(5, auto);
  grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); column-gap: 14px; row-gap: 2px; }
.r-rounds .top li { counter-increment: top; display: grid; grid-template-columns: 2.1em minmax(0, 1fr); overflow-wrap: anywhere; }
.r-rounds .top li::before { content: counter(top) "."; color: var(--dim); }
.r-rounds .top li.you { color: var(--surface); }
.share { align-items: center; }
.share .msg { flex: 1 1 100%; margin: 0; }

footer { position: relative; z-index: 1; display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; padding: 20px 16px 30px; font-size: 13px; }
footer a { color: var(--dim); }

/* after the results: the next games (Nadidle's .games grid) */
.next-games { margin: 18px 0 6px; }
.next-games h2 { font: 700 15px/1 var(--mono); color: var(--dim); text-transform: uppercase; letter-spacing: 1px; margin: 0 0 10px; }
.next-games .games a:first-child { border-color: var(--tq); }
