@font-face { font-family: "Departure Mono"; src: url("/fonts/DepartureMono.woff2") format("woff2"); font-display: swap; }
/* Nadidle: a dive into Turkish waters (ART.md §2). Phone first; the sea is a canvas behind everything. */
:root {
  --surface: #3FC1C9; --aegean: #1B6F9A; --deep: #0E3554; --midnight: #071A2C; --abyss: #030B14;
  --nazar: #1E4FD8; --white: #F2F2F2; --gold: #E3B341; --coral: #E86A5C; --cream: #F4EAD5;
  --glass: rgba(7, 26, 44, .86); --glass-solid: rgba(7, 26, 44, .95); --line: rgba(244, 234, 213, .18); --dim: rgba(244, 234, 213, .66);
  /* one pixel font for everything (owner, 18 Nov 2026: the old fonts did not suit the sea): Departure Mono, SIL OFL,
     self-hosted (site/fonts), every Turkish letter; drawn at multiples of 11 px it stays crisp */
  --pixel: "Departure Mono", ui-monospace, monospace; --num: "Departure Mono", ui-monospace, monospace; --text: "Departure Mono", ui-monospace, monospace;
  --kb: 0px;                         /* the on-screen keyboard's height, set by main.js */
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--midnight); color: var(--cream); font: 15px/1.55 var(--text); }
/* the font has one weight: no fake bold smearing its pixels */
html, input, button { font-synthesis: none; -webkit-font-smoothing: antialiased; }
body { overflow-x: hidden; }
img.ico { width: 1.2em; height: 1.2em; vertical-align: -.25em; image-rendering: pixelated; }
[hidden] { display: none !important; }
#sea { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; image-rendering: pixelated; }
main { position: relative; z-index: 1; }

.bar { position: fixed; top: 0; left: 0; right: 0; z-index: 3; display: grid; grid-template-columns: 1fr auto 1fr; align-items: start;
  padding: max(8px, env(safe-area-inset-top)) 12px 8px; background: linear-gradient(rgba(3,11,20,.5), rgba(3,11,20,0)); }
.mark { color: var(--cream); text-decoration: none; font: 700 17px/1 var(--pixel); letter-spacing: .02em; padding-top: 6px; }
.mark b { color: var(--surface); font-weight: 700; }
.mute { justify-self: end; }
/* the dive gauges: depth on the left, the seven rounds in the middle, points on the right */
.hud { display: flex; gap: clamp(8px, 4vw, 40px); align-items: start; }
.gauge { min-width: 76px; padding: 5px 9px 6px; background: rgba(7,22,40,.82); border: 1px solid rgba(120,220,255,.28);
  border-radius: 4px; box-shadow: 0 2px 0 rgba(0,0,0,.35); }
.gauge span { display: block; font: 600 9px/1 var(--num); letter-spacing: .18em; text-transform: uppercase; color: var(--dim); }
.gauge b { display: inline-block; margin-top: 4px; font: 700 17px/1 var(--num); color: var(--surface); }
.gauge.right { text-align: right; }
.gauge.right b { color: #ff7a8a; }
.rounds { display: flex; flex-direction: column; align-items: center; gap: 5px; padding-top: 4px; }
.rounds .cap { font: 600 9px/1 var(--num); letter-spacing: .18em; text-transform: uppercase; color: var(--dim); }
/* always on screen while playing (the question card goes away during the plunge): the name for clips */
.rounds .hud-brand { font: 700 12px/1 var(--num); letter-spacing: .06em; color: #7fe3ea; text-shadow: 0 0 8px rgba(63,193,201,.45); }
.btn { font: 700 17px/1 var(--pixel); border: 0; border-radius: 6px; padding: 14px 20px; cursor: pointer; color: var(--midnight);
  background: var(--cream); box-shadow: 0 3px 0 rgba(0,0,0,.35); }
.btn.primary { background: var(--surface); }
.btn:active { transform: translateY(2px); box-shadow: 0 1px 0 rgba(0,0,0,.35); }
.btn.ghost { background: transparent; color: var(--cream); border: 1px solid var(--line); box-shadow: none; }
.btn:focus-visible, input:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* the start and closed screens sit in the sky and the shallows */
.screen { min-height: 100svh; padding: 76px 18px 24px; }
#start, #closed { display: flex; flex-direction: column; justify-content: flex-end; max-width: 520px; margin: 0 auto; padding-bottom: max(28px, env(safe-area-inset-bottom)); }
.title { font: 700 clamp(44px, 14vw, 72px)/1 var(--pixel); margin: 0 0 10px; text-shadow: 0 3px 0 rgba(3,11,20,.6); }
.tag { margin: 0 0 14px; font-size: 17px; text-shadow: 0 1px 3px rgba(3,11,20,.95), 0 0 12px rgba(3,11,20,.8); }
/* Nadidle's start screen is laid out like a title card in the deep (owner, 27 Nov 2026): the art stays clear above,
   the water darkens towards the bottom, the title carries its own dark pixel outline so it reads over anything.
   Scoped to #app (Nadidle's main): Eldidan loads this file too and has its own #start and .title. */
#app > #start { position: relative; z-index: 1; }
#app > #start::before { content: ""; position: fixed; left: 0; right: 0; bottom: 0; height: 62vh; z-index: -1; pointer-events: none;
  background: linear-gradient(to bottom, rgba(3,11,20,0), rgba(3,11,20,.55) 45%, rgba(3,11,20,.85)); }
#start .title { font-size: clamp(52px, 16vw, 88px); letter-spacing: .04em; margin: 0 0 6px; color: var(--cream); text-align: center;
  text-shadow: -3px 0 0 var(--abyss), 3px 0 0 var(--abyss), 0 -3px 0 var(--abyss), 0 3px 0 var(--abyss),
    -3px -3px 0 var(--abyss), 3px 3px 0 var(--abyss), -3px 3px 0 var(--abyss), 3px -3px 0 var(--abyss), 0 7px 0 rgba(3,11,20,.55); }
#start .sub { margin: 0 0 10px; text-align: center; font: 700 13px/1.2 var(--num); letter-spacing: .32em; text-transform: uppercase; color: #7fe3ea;
  text-shadow: 0 2px 0 var(--abyss); }
#start .tag { margin: 0 0 26px; text-align: center; font-size: 14px; color: rgba(244,234,213,.85); text-shadow: 0 1px 2px var(--abyss); }
/* Caretta Party's card: two thirds wide, on the left; the start button below it, full width, both with a thick frame */
#start .party { position: relative; align-self: flex-start; width: max-content; min-width: 66%; max-width: 100%; box-sizing: border-box; display: flex; align-items: center; gap: 12px;
  margin: 0 0 14px; padding: 22px 16px 18px; background: rgba(13,27,48,.94); border: 3px solid var(--surface); border-radius: 0;
  box-shadow: inset 0 0 0 3px var(--abyss); color: var(--cream); font: 700 clamp(15px, 4.2vw, 21px)/1 var(--pixel); letter-spacing: .08em;
  text-transform: uppercase; white-space: nowrap; cursor: pointer; text-decoration: none; }
#start .party i { position: absolute; top: -11px; left: 14px; padding: 4px 8px; background: var(--surface); color: var(--midnight); font: 700 10px/1 var(--num);
  letter-spacing: .16em; font-style: normal; box-shadow: 0 0 0 3px var(--abyss); }
.caretta { flex: none; width: 46px; height: 33px; background: url(/img/caretta.png) 0 0 / 184px 33px no-repeat; image-rendering: pixelated;
  animation: caretta-swim .9s steps(4) infinite; }
@keyframes caretta-swim { to { background-position: -184px 0; } }
#app #go { width: 100%; padding: 24px 16px; border: 3px solid var(--surface); border-radius: 0; background: rgba(13,27,48,.94); color: var(--cream);
  box-shadow: inset 0 0 0 3px var(--abyss), 0 0 22px rgba(63,193,201,.45); font: 700 clamp(18px, 5.2vw, 24px)/1 var(--pixel); letter-spacing: .14em;
  text-transform: uppercase; }
.how { margin: 0 0 18px; padding: 14px 14px 14px 32px; background: var(--glass); border: 1px solid var(--line); border-radius: 8px; }
#app .how { margin: 8px 0; padding: 0 0 0 20px; background: none; border: 0; }
.how li { margin: 4px 0; }
.note { color: var(--dim); font-size: 14px; min-height: 1.5em; margin: 10px 0 0; }

/* playing: the prompt card floats near the top, the dock sits at the bottom above the keyboard */
#play { min-height: 0; padding: 0; }
.qcard { position: fixed; z-index: 2; left: 50%; top: max(78px, 12svh); transform: translateX(-50%); width: min(92vw, 460px);
  padding: 14px 18px 12px; background: rgba(9,24,44,.88); border: 1px solid rgba(120,220,255,.22); border-radius: 6px;
  box-shadow: 0 6px 24px rgba(0,0,0,.35); transition: opacity .35s, transform .35s, filter .35s; }
.qcard.gone { opacity: 0; filter: blur(2px); transform: translate(-50%, -24px) scale(.94); pointer-events: none; }
.qn { margin: 0 0 8px; font: 700 11px/1 var(--num); letter-spacing: .22em; text-transform: uppercase; color: #ff7a8a; }
.qn b { color: #ff7a8a; }
/* the game's name on every question, for clips and screenshots (owner, 21 Nov 2026: streamers share clips) */
.qn { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.qn .brand { color: #7fe3ea; letter-spacing: .08em; font-size: 13px; text-transform: none; text-shadow: 0 0 8px rgba(63,193,201,.45); white-space: nowrap; }
.prompt { margin: 0 0 8px; font: clamp(16px, 4.2vw, 21px)/1.3 var(--pixel); color: var(--cream); }   /* smaller on phones (owner, 27 Nov 2026: the text ran edge to edge) */
.hint { margin: 0; font: 600 10px/1 var(--num); letter-spacing: .12em; color: var(--dim); }
.dock { position: fixed; left: 0; right: 0; bottom: var(--kb); z-index: 2; padding: 26px 12px max(12px, env(safe-area-inset-bottom));
  background: linear-gradient(rgba(3,9,18,0), rgba(3,9,18,.92) 38%); transition: opacity .3s, transform .3s; }
.dock form, .dock .msg, .dock .timebar { max-width: 560px; margin-left: auto; margin-right: auto; }
.dock.revealing { opacity: 0; transform: translateY(110%); pointer-events: none; }
form { display: flex; gap: 8px; align-items: center; }
#guess { flex: 1; min-width: 0; font: 600 16px/1 var(--num); color: var(--cream); background: rgba(5,16,30,.9);
  border: 1px solid rgba(120,220,255,.55); border-radius: 3px; padding: 12px 12px; }
#guess::placeholder { color: rgba(244,234,213,.45); }
.btn.dive { background: #ff6f86; color: #1a0610; font: 700 15px/1 var(--num); letter-spacing: .2em; text-transform: uppercase;
  padding: 14px 16px; border-radius: 3px; }
.timebar { height: 3px; margin-top: 6px; background: rgba(120,220,255,.12); }
.timebar i { display: block; height: 100%; width: 100%; background: var(--surface); transform-origin: left; }
.msg { margin: 8px 0 0; min-height: 1.5em; font-size: 15px; }
.msg b { color: var(--gold); }
.msg.miss { color: var(--coral); }
.msg.hint { color: var(--gold); }
.shake { animation: shake .4s linear; }
@keyframes shake { 20% { transform: translateX(-8px); } 45% { transform: translateX(7px); } 70% { transform: translateX(-4px); } 88% { transform: translateX(2px); } }
/* a new prompt drops in; while the answer sinks the panel steps back */
.prompt.enter { animation: prompt-in .55s cubic-bezier(.2,1.4,.4,1); }
@keyframes prompt-in { from { opacity: 0; transform: translateY(-14px); } }


.clock { position: relative; width: 44px; height: 44px; }
.clock svg { width: 44px; height: 44px; transform: rotate(-90deg); }
.clock circle { fill: none; stroke-width: 4; }
.clock .track { stroke: rgba(244,234,213,.15); }
.clock .arc { stroke: var(--surface); stroke-dasharray: 119.4; stroke-dashoffset: 0; stroke-linecap: round; }
.clock.low .arc { stroke: var(--coral); }
.clock span { position: absolute; inset: 0; display: grid; place-items: center; font: 700 15px/1 var(--num); }
.clock.low span { color: var(--coral); }
.clock.low { animation: clock-pulse .5s ease-in-out infinite alternate; }
@keyframes clock-pulse { to { transform: scale(1.12); } }

/* Krillion's feel: the bubbles' own layer above the panel, the CRT zap when an answer goes out, faint scanlines over
   everything, the answer box turning coral when time runs short */
.fizz-layer { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 3; pointer-events: none; }
.dock.zap form { animation: zap .3s ease-out; }
/* the answer goes out: one bright blink, no jolt (a jolt read as "wrong" while the check took its time) */
@keyframes zap { 0% { filter: brightness(1.8); } 100% { filter: none; } }
body::after { content: ""; position: fixed; inset: 0; z-index: 7; pointer-events: none;
  background: repeating-linear-gradient(to bottom, rgba(0,0,0,0) 0 2px, rgba(0,0,0,.07) 2px 3px); }
.dock:has(.clock.low) #guess { border-color: var(--coral); box-shadow: 0 0 0 1px rgba(232,74,60,.35), 0 0 14px rgba(232,74,60,.35); }
#guess { transition: border-color .2s, box-shadow .2s; }
#guess:focus { box-shadow: 0 0 12px rgba(120,220,255,.25); }

/* juice layers (fx.js): a colour flash over everything, red edges that throb when time runs short */
.fx-flash { position: fixed; inset: 0; z-index: 6; pointer-events: none; opacity: 0; }
.fx-edge { position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: 0; transition: opacity .3s;
  box-shadow: inset 0 0 70px 18px rgba(232,74,60,.65); }
.fx-edge.on { animation: edge-throb .55s ease-in-out infinite; }
@keyframes edge-throb { 0%, 100% { opacity: .15; } 50% { opacity: .85; } }

/* the bar: seven dots for the rounds, the sound switch */
.dots { display: inline-flex; gap: 5px; align-items: center; }
.dots i { width: 8px; height: 8px; border-radius: 2px; background: rgba(244,234,213,.25); }
.dots i.done { background: var(--c, #41506a); }
.dots i.cur { background: var(--cream); animation: dot-pulse 1.4s ease-in-out infinite; }
@keyframes dot-pulse { 50% { transform: scale(1.4); } }
.hud { align-items: center; }
#hud-depth, #hud-points { display: inline-block; }
.mute { background: none; border: 0; font-size: 18px; line-height: 1; cursor: pointer; padding: 4px 2px 4px 10px; filter: grayscale(.2); }

/* the start button breathes */
#go { animation: btn-bob 1.9s ease-in-out infinite; }
@keyframes btn-bob { 50% { transform: translateY(4px); } }

/* the 3-second read: the count stands in the clock's place, below the prompt, so it never covers the text
   (it used to sit in the prompt card's corner, over a long prompt on a phone) */
.clock.reading svg, .clock.reading #secs { visibility: hidden; }
.readcount { position: absolute; inset: 0; display: grid; place-items: center; font: 700 24px/1 var(--num); color: var(--gold);
  pointer-events: none; }

/* the result stands in the water itself, no box: the icon, the tier in its colour, the answer, the points */
:root { --t-malum: #a9bbd6; --t-bilmis: #d9a46b; --t-kiymetli: #4de3ff; --t-nadir: #ff5a6e; --t-mustesna: #c39bff; --t-nadide: #ffd166; }
/* the card sits on its own dark glass panel, between the reefs on both sides (owner, 24 Nov 2026: the depth notes
   behind it showed through the text) */
.card { position: fixed; left: 50%; top: 44%; transform: translate(-50%, -50%); z-index: 4; width: min(calc(100vw - 112px), 420px); text-align: center;
  padding: 14px 14px 16px; color: var(--cream); animation: card-in .75s cubic-bezier(.2,1.5,.4,1) backwards;
  background: linear-gradient(180deg, rgba(22,70,108,.72), rgba(10,38,66,.8)); border: 1px solid color-mix(in srgb, var(--tc, var(--cream)) 35%, transparent); border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,.45), 0 0 24px color-mix(in srgb, var(--tc, transparent) 18%, transparent);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
/* a long fact (a Nadide's note) never runs up under the top bar (owner, 28 Nov 2026): the card keeps clear of it and scrolls
   inside instead; svh, so an open phone keyboard does not count */
.card { max-height: calc(80svh - 120px); overflow-y: auto; overscroll-behavior: contain; }
@media (min-width: 700px) { .card { width: min(70vw, 440px); } }
.card-tier { color: var(--tc, var(--cream)); text-shadow: 0 0 14px var(--tc, transparent), 0 2px 0 rgba(3,11,20,.8); letter-spacing: .12em; text-transform: uppercase; }
.card-answer, .card-points, .card-fact { text-shadow: 0 1px 3px rgba(3,11,20,.95), 0 0 10px rgba(3,11,20,.7); }
.card-points { color: var(--tc, var(--gold)) !important; }
.card-icon { filter: drop-shadow(0 0 10px var(--tc, transparent)); }
/* the card springs up from below, overshooting a little; it leaves upward, blurring */
@keyframes card-in { from { opacity: 0; transform: translate(-50%, calc(-50% + 46px)) scale(.92); } }
.card.gone { animation: card-gone .38s ease-in forwards; }
@keyframes card-gone { to { opacity: 0; filter: blur(2px); transform: translate(-50%, calc(-50% - 28px)) scale(.9); } }
.card-icon { animation: icon-bob 2.6s ease-in-out infinite; }
@keyframes icon-bob { 50% { transform: translateY(-7px); } }
.card #next { animation: rise-in .5s cubic-bezier(.2,1.4,.4,1) .25s backwards; }
@keyframes rise-in { from { opacity: 0; transform: translateY(24px); } }
.card-icon { width: 96px; height: 72px; object-fit: contain; image-rendering: pixelated; }
.card-tier { margin: 6px 0 0; font: 700 22px/1 var(--pixel); }
.card-answer { margin: 8px 0 0; font: 600 20px/1.3 var(--text); }
.card-points { margin: 6px 0 12px; color: var(--gold); font: 700 clamp(12px, 3.7vw, 18px)/1 var(--num); white-space: nowrap; }
.card-fact { margin: -4px 0 14px; color: var(--dim); font-size: 15px; }
/* an answer that sank today (worker/live-tier.js): why it pays less than its tier on the sheet */
.card-live { white-space: pre-line; margin: -6px 0 12px; color: var(--gold, #E3B341); font-size: 14px; text-shadow: 0 1px 3px rgba(3,11,20,.95); }
.card.nadide .card-icon { filter: drop-shadow(0 0 16px rgba(255,209,102,.9)); }
.card.nadide .card-tier { color: var(--gold); }
.card.miss .card-tier { color: var(--coral); }

/* results: a column over the dark sea */
.results { max-width: 560px; margin: 0 auto; padding-top: 70px; }
.results section, .results .block { background: var(--glass-solid); border: 1px solid var(--line); border-radius: 10px; padding: 14px; margin: 0 0 14px; }
.results h2 { margin: 0 0 10px; font: 700 14px/1 var(--pixel); letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
.score-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.score-top .n { font: 600 15px/1 var(--num); color: var(--dim); }
/* the way home on the score card (owner, 26 Nov 2026: the only home link was at the very bottom) */
.score-top .home-btn { padding: 6px 12px; border: 1px solid rgba(244, 234, 213, .35); border-radius: 999px; color: #fff;
  font: 600 14px/1 var(--num); text-decoration: none; white-space: nowrap; }
.score-top .home-btn:hover { border-color: #fff; }
.big { font: 700 64px/1 var(--num); margin: 6px 0 0; letter-spacing: -.02em; }
.big small { font-size: 18px; color: var(--surface); margin-left: 10px; }
.band-now { font: 600 17px/1.3 var(--text); margin: 6px 0 0; }
.curve svg, .divelog svg { width: 100%; height: auto; display: block; }
.curve .area { fill: rgba(63,193,201,.25); stroke: var(--surface); stroke-width: 2; }
.curve .you { stroke: var(--coral); stroke-width: 2; }
.curve text, .divelog text { fill: var(--dim); font: 10px var(--num); }
.better { margin: 8px 0 0; color: var(--surface); font: 600 15px/1.3 var(--text); }
.divelog line.drop { stroke: rgba(244,234,213,.35); stroke-width: 2; stroke-dasharray: 3 3; }
.bands { list-style: none; margin: 0; padding: 0; }
.bands li { display: grid; grid-template-columns: 34px 70px 1fr; gap: 8px; align-items: center; padding: 7px 0; border-top: 1px solid var(--line); color: var(--dim); }
.bands li:first-child { border-top: 0; }
.bands li.on { color: var(--cream); font-weight: 600; }
.bands li.on .r { color: var(--gold); }
.bands img { width: 32px; height: 24px; object-fit: contain; image-rendering: pixelated; }
.bands .r { font: 700 13px/1 var(--num); }
.share { display: flex; gap: 8px; flex-wrap: wrap; }
.share .btn { flex: 1 1 140px; }
.share-preview { white-space: pre-line; font: 600 15px/1.5 var(--text); margin: 0 0 12px; }
.catch li { list-style: none; border-top: 1px solid var(--line); padding: 10px 0; display: grid; grid-template-columns: 30px 1fr auto; gap: 8px; align-items: center; cursor: pointer; }
.catch ol { margin: 0; padding: 0; }
.catch li:first-child { border-top: 0; }
.catch .q { color: var(--dim); font-size: 13px; }
.catch .a { font-weight: 600; }
.catch .who { color: var(--dim); font-size: 13px; }
.catch .p { font: 700 16px/1 var(--num); color: var(--gold); }
.catch img { width: 28px; height: 22px; object-fit: contain; image-rendering: pixelated; }
.log { display: grid; grid-template-columns: repeat(4, 1fr); text-align: center; }
.log b { display: block; font: 700 26px/1.1 var(--num); }
.log span { color: var(--dim); font-size: 12px; }
.next-dive { text-align: center; margin: 12px 0 0; color: var(--dim); }
.next-dive b { color: var(--cream); font-family: var(--num); }
.games { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.games a { border: 1px solid var(--line); border-radius: 8px; padding: 12px; color: var(--dim); text-decoration: none; }
.games b { display: block; color: var(--cream); }
.foot { text-align: center; color: var(--dim); font-size: 13px; padding: 10px 0 30px; }
.foot a { color: var(--dim); }

/* the full answer sheet of one prompt (Hazine) */
.sheet { position: fixed; inset: 0; z-index: 5; background: rgba(3,11,20,.7); display: flex; align-items: flex-end; justify-content: center; }
.sheet-box { width: min(100%, 560px); max-height: 92svh; display: flex; flex-direction: column; background: var(--midnight);
  border: 1px solid var(--line); border-radius: 12px 12px 0 0; padding: 14px 14px max(14px, env(safe-area-inset-bottom)); }
.sheet-head { display: flex; justify-content: space-between; gap: 10px; align-items: start; }
.sheet-head h3 { margin: 0; font: 600 17px/1.3 var(--text); }
.sheet-close { background: none; border: 0; color: var(--cream); font-size: 26px; line-height: 1; cursor: pointer; padding: 0 4px; }
.sheet input[type=search] { width: 100%; margin: 10px 0 8px; font: 16px var(--text); padding: 10px; border-radius: 6px; border: 0; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.chip { border: 1px solid var(--line); background: none; color: var(--cream); border-radius: 999px; padding: 4px 10px; font: 13px var(--text); cursor: pointer; }
.chip.on { background: var(--cream); color: var(--midnight); }
.sheet ul { list-style: none; margin: 0; padding: 0; overflow-y: auto; flex: 1; }
.sheet li { display: grid; grid-template-columns: 26px 1fr auto; gap: 8px; align-items: center; padding: 6px 2px; border-top: 1px solid var(--line); }
.sheet li img { width: 24px; height: 18px; object-fit: contain; image-rendering: pixelated; }
.sheet li .pts { font: 700 13px/1 var(--num); color: var(--gold); }
.sheet li.yours { background: rgba(63,193,201,.15); }
.sheet li.nadide { display: block; padding: 10px 4px; }
.sheet li.nadide p { margin: 4px 0 0; color: var(--dim); font-size: 14px; }
.sheet .more { margin: 8px auto 0; display: block; }
.report { margin-top: 10px; border-top: 1px solid var(--line); padding-top: 10px; }
.report form { margin-top: 6px; }
.report input { flex: 1; font: 16px var(--text); padding: 10px; border: 0; border-radius: 6px; }

@media (max-width: 520px) {
  .bar { grid-template-columns: 0 1fr auto; padding-left: 8px; padding-right: 8px; }
  .mark { visibility: hidden; width: 0; overflow: hidden; }
  .hud { justify-self: center; gap: 10px; }
  .gauge { min-width: 0; padding: 4px 7px 5px; }
  .gauge b { font-size: 14px; white-space: nowrap; }
  .dots { gap: 4px; }
  .dots i { width: 7px; height: 7px; }
}
@media (min-width: 700px) {
  .dock { padding-bottom: 22px; }
}
/* results: blocks rise in turn; the dive log's lines grow down, then each icon sinks to its depth */
.results > section { animation: fade-up .45s ease-out backwards; animation-delay: calc(var(--k, 0) * 90ms); }
@keyframes fade-up { from { opacity: 0; transform: translateY(10px); } }
.divelog .drop { transform-box: fill-box; transform-origin: top; animation: drop-grow .9s cubic-bezier(.5,0,.85,.6) backwards;
  animation-delay: calc(.5s + var(--i) * 120ms); }
@keyframes drop-grow { from { transform: scaleY(0); } }
.divelog .sinkicon { animation: icon-sink .5s ease-out backwards; animation-delay: calc(1.3s + var(--i) * 120ms); }
@keyframes icon-sink { from { opacity: 0; transform: translateY(-14px); } }
#big-total { display: inline-block; }

@media (prefers-reduced-motion: reduce) {
  .results > section, .divelog .drop, .divelog .sinkicon { animation: none; }
  .shake, .dock.zap form, .card, .card.gone, .card-icon, .card #next, .prompt.enter, .clock.low, .dots i.cur, #go, .fx-edge.on, .caretta { animation: none; }
}

/* moving between the shows and the home page: a soft cross-fade where the browser can (same-origin page change) */
@view-transition { navigation: auto; }

/* SEO text: crawlable, not drawn over the game */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
/* "Nasıl oynanır" disclosure on the start screen: collapsed by default, scrolls inside itself when open */
.about { margin: 12px 0 0; font-size: 14px; color: var(--dim); }
.about summary { cursor: pointer; padding: 6px 0; }
.about[open] { max-height: 34svh; overflow-y: auto; background: var(--glass); border-radius: 8px; padding: 0 12px 8px; }
.about p { margin: 6px 0; }
.about a { color: inherit; }

/* the phone's keyboard is open (js/kbfit.js): iOS pans the page, so the bar and the prompt follow the visible part;
   on a short visible part the prompt sits right under the bar and the dock right above the keys */
html.kbopen body { overflow: hidden; }
/* while a round is on the page never scrolls (play-view.js): everything is fixed, so a drag only pans the box away */
html.playing, html.playing body { overflow: hidden; overscroll-behavior: none; }
html.playing body { touch-action: manipulation; }
html.kbopen .bar { top: var(--vvtop); }
html.kbopen .qcard { top: calc(var(--vvtop) + 58px); }
html.kbopen .card { top: calc(var(--vvtop) + var(--vvh) * 0.42); }
@media (max-height: 1400px) { html.kbopen .qcard { padding: 10px 14px 8px; } html.kbopen .dock { padding-top: 10px; } }
/* the answer is being checked: the box breathes until the server answers (never looks ignored) */
form.checking #guess { animation: checking .7s ease-in-out infinite alternate; }
@keyframes checking { from { box-shadow: 0 0 0 1px rgba(120,220,255,.25); } to { box-shadow: 0 0 16px rgba(120,220,255,.6); border-color: rgba(120,220,255,.8); } }
@media (prefers-reduced-motion: reduce) { form.checking #guess { animation: none; border-color: rgba(120,220,255,.8); } }
/* after the dive (owner, 24 Nov 2026): today's most typed answers, and a sunk answer's note */
.top-picks ol { list-style: none; padding: 0; margin: 0; text-align: left; }
.top-picks li { padding: 8px 0; border-bottom: 1px solid rgba(244,234,213,.12); font-size: 14px; }
.top-picks .q { color: var(--dim); font-size: 13px; }
.top-picks .pick { white-space: nowrap; }
.top-picks small, .sank { color: var(--gold); }
.sank { font-size: 11px; }

/* Eldidan, right under the score (owner, 25 Nov 2026: nobody reached the link at the bottom of the results) */
.up-next { position: relative; display: block; margin: 0; padding: 14px 16px 14px; border-radius: 10px; text-decoration: none;
  background: linear-gradient(180deg, rgba(22, 70, 108, .9), rgba(10, 38, 66, .95)); border: 2px solid var(--tq, #3FC1C9); color: #fff; }
.up-next b { display: block; font-size: 18px; color: #fff; }
.up-next small { display: block; margin-top: 2px; color: rgba(244, 234, 213, .75); font-size: 14px; }
.up-next .tag { position: absolute; top: -10px; right: 12px; padding: 2px 7px; font: 700 11px/1.2 monospace; letter-spacing: 1px; text-transform: uppercase;
  background: #ffcf4a; color: #1b1424; border-radius: 3px; }
.up-next:hover { border-color: #fff; }

/* the next games right under the score: Eldidan and the studio (owner, 25 Nov 2026), side by side when there is room */
.next-top { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; margin: 4px 0 18px; }
/* the party card sits under the two, the row's full width, on every screen (owner, 29 Nov 2026) */
.up-next.party { grid-column: 1 / -1; border-color: #f4c95d; background: linear-gradient(180deg, rgba(18, 104, 110, .92), rgba(8, 58, 70, .96)); }
.up-next.studio { border-color: #ffcf4a; background: linear-gradient(180deg, rgba(70, 30, 60, .9), rgba(40, 16, 40, .95)); }

/* the suggestion line (Krillion's way): "typed" → "suggested", and how to take it */
.msg .sug { display: block; font-family: "Departure Mono", ui-monospace, monospace; color: #f4ead5; }
.msg .sug b { color: #4de3ff; font-weight: 400; }
.msg .sug-how { display: block; margin-top: 2px; font-size: 12px; opacity: .7; letter-spacing: .5px; }

/* the line over the answer box (owner, 25 Nov 2026): centred, a little above the box, room for two lines so the
   dock does not jump when a suggestion appears */
.dock .msg { text-align: center; margin-top: 0; margin-bottom: 10px; min-height: 2.6em;
  display: flex; flex-direction: column; justify-content: flex-end; align-items: center; }
/* "Bence doğru" under a refusal (play-view.js): a small quiet chip, the thanks in its place once sent */
.msg .rep { margin: 4px 0 0; padding: 3px 10px; font: 600 12px/1.4 var(--text); color: var(--cream); background: rgba(244,234,213,.08);
  border: 1px solid rgba(244,234,213,.35); border-radius: 999px; cursor: pointer; }
.msg .rep:hover { background: rgba(244,234,213,.16); }
.msg .rep-done { display: block; margin-top: 4px; font-size: 12px; color: var(--dim); }
/* points given back (main.js regrade): a note under the bar for a few seconds, a tap closes it */
.late-note { position: fixed; z-index: 8; left: 50%; top: max(76px, 11svh); transform: translateX(-50%); width: min(92vw, 440px);
  display: grid; gap: 4px; padding: 12px 16px; text-align: center; cursor: pointer; color: var(--cream);
  background: rgba(6,22,38,.94); border: 1px solid var(--t-kiymetli); border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,.45);
  animation: late-in .35s ease-out; }
.late-note > b { font-size: 15px; color: var(--t-kiymetli); }
.late-note span { font-size: 14px; line-height: 1.45; }
.late-note small { font-size: 11px; color: var(--dim); }
@keyframes late-in { from { opacity: 0; transform: translate(-50%, -8px); } }
@media (prefers-reduced-motion: reduce) { .late-note { animation: none; } }

/* the nazar bead that flies from a Nadide's card onto the turtle's shell (main.js flyBead) */
.flying-bead { position: fixed; left: 0; top: 0; z-index: 60; pointer-events: none; image-rendering: pixelated; filter: drop-shadow(0 0 6px rgba(120, 200, 255, .9)) drop-shadow(0 0 14px rgba(255, 209, 102, .6)); will-change: transform; }

/* the game's own keyboard (site/js/keyboard.js, ?kb=1): the iPhone's Turkish Q rows, 12 / 11 / 9 keys */
html.ownkb #form { position: relative; }
.okb { --gap: 5px; --u: calc((100% - 11 * var(--gap)) / 12); position: relative; max-width: 560px; margin: 10px auto 0;
  user-select: none; -webkit-user-select: none; touch-action: manipulation; -webkit-touch-callout: none; }
.okb-row { display: flex; justify-content: center; gap: var(--gap); margin-top: 9px; }
.okb-row:first-of-type { margin-top: 0; }
.okb-k { flex: 0 0 var(--u); width: var(--u); height: 44px; padding: 0; border: 0; border-radius: 4px;
  background: #22355a; color: var(--cream); box-shadow: 0 3px 0 #0b1526; font: 600 19px/1 var(--num);
  display: flex; align-items: center; justify-content: center; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.okb-k.down { transform: translateY(2px); box-shadow: 0 1px 0 #0b1526; background: #2e4775; }
.okb-k.fn { flex-basis: calc(var(--u) * 1.45); width: calc(var(--u) * 1.45); background: #16243f; font-size: 15px; }
.okb-k.back { font-size: 20px; }
.okb-k[hidden] { display: none; }
.okb-k.shift.on { background: var(--cream); color: #071a2c; }
.okb-k.layer { flex: 0 0 calc(var(--u) * 2.2); width: calc(var(--u) * 2.2); }
.okb-k { text-transform: none; }
.okb-k.space { flex: 1 1 auto; width: auto; font-size: 13px; letter-spacing: .12em; color: rgba(244,234,213,.6); }
.okb-k.enter { flex: 0 0 calc(var(--u) * 3.2); width: calc(var(--u) * 3.2); background: #ff6f86; color: #1a0610;
  box-shadow: 0 3px 0 #8a2a3d; font: 700 15px/1 var(--num); letter-spacing: .18em; text-transform: uppercase; }
.okb-k.enter.down { background: #ff8fa1; box-shadow: 0 1px 0 #8a2a3d; }
.okb-pop { position: absolute; z-index: 3; transform: translate(-50%, -100%); margin-top: -6px; min-width: 46px; padding: 8px 10px 10px;
  border-radius: 6px; background: #3a5688; color: #fff; font: 700 30px/1 var(--num); text-align: center; pointer-events: none;
  box-shadow: 0 4px 0 #0b1526, 0 0 18px rgba(120,220,255,.25); }
.okb-caret { position: absolute; width: 3px; background: #7fe3ea; animation: okb-blink 1s steps(1) infinite; pointer-events: none; }
.okb-caret[hidden] { display: none; }
@keyframes okb-blink { 50% { opacity: 0; } }
html.ownkb #form.okb-sel #guess { color: #071a2c; background: linear-gradient(#7fe3ea, #7fe3ea) no-repeat 12px 50% / calc(100% - 24px) 1.3em, rgba(5,16,30,.9); }
html.ownkb .dock { padding-top: 14px; }
@media (max-width: 360px) { .okb { --gap: 4px; } .okb-k { height: 40px; font-size: 17px; } }
@media (prefers-reduced-motion: reduce) { .okb-caret { animation: none; } }
html.ownkb, html.ownkb body { touch-action: manipulation; }
.okb { touch-action: none; }
.okb-debug { position: absolute; right: 0; top: -22px; font: 600 11px/1 var(--num); color: #7fe3ea; background: rgba(3,9,18,.8); padding: 3px 6px; border-radius: 3px; pointer-events: none; }
/* the symbol pages: 10 keys a row across the full width; the third row's five keys and its side keys wider */
.okb.sym { --u: calc((100% - 9 * var(--gap)) / 10); }
.okb.sym .r3 .okb-k:not(.fn) { flex-basis: calc(var(--u) * 1.3); width: calc(var(--u) * 1.3); }
.okb.sym .r3 .okb-k.fn { flex-basis: calc(var(--u) * 1.3); width: calc(var(--u) * 1.3); font-size: 14px; }
.okb.sym .r3 { justify-content: space-between; }
.okb .r3 .shift { margin-right: auto; } .okb .r3 .back { margin-left: auto; }   /* ⇧ and ⌫ at the edges, the letters together */

/* the share card under the score (owner, 27 Nov 2026) */
#end .share-top { border: 1px solid rgba(255, 207, 74, .55); border-radius: 12px; padding: 16px 16px 12px;
  background: linear-gradient(180deg, rgba(20, 52, 72, .92), rgba(10, 30, 46, .96)); }
.share-top h2 { color: #ffcf4a; }
.share-why { margin: 0 0 12px; font: 500 15px/1.5 var(--text); color: rgba(244, 234, 213, .92); }
.share-top-btns .btn { flex: 1 1 40%; min-width: 0; padding-left: 6px; padding-right: 6px; }
.share-top-btns .btn.ghost { flex-basis: 100%; }
/* the card picture as a low strip: its top-left corner (depth, points, the game's name) big enough to read, the rest
   a tap away (owner, 28 Nov 2026: the whole picture pushed the page down; a thumbnail could not be read) */
.share-card-wrap { display: block; height: clamp(112px, 30vw, 150px); overflow: hidden; margin: 0 0 12px; border-radius: 8px;
  border: 1px solid rgba(244, 234, 213, .18); }
.share-card { display: block; width: 150%; max-width: none; height: auto; }
.share-top-btns .btn { padding-top: 8px; padding-bottom: 8px; min-height: 0; font-size: 15px; }
.share-thanks { min-height: 0; margin: 10px 0 0; color: #9fe8c8; font-weight: 600; }
.share-thanks.on { animation: thanks-in .5s ease-out; }
@keyframes thanks-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
