/* Take the Rock: one phone-first screen. The Bay at night, one island, two drones. */
:root {
  --you: #35e6ff;
  --rival: #ff4d5e;
  --none: #e8eefc;
  --ink: #eaf1ff;
  --dim: #9fb0cf;
  --panel: rgba(8, 14, 28, .86);
  --line: rgba(140, 170, 230, .22);
  --ok: #4cf2a0;
  --bad: #ff5f6d;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: #050b16; color: var(--ink); }
body { font: 18px/1.4 system-ui, "Segoe UI", Roboto, sans-serif; overflow: hidden; -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; }
.ttr-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

#ttr {
  position: relative; height: 100vh; height: 100dvh; width: 100%; overflow: hidden;
  display: grid; grid-template-rows: auto minmax(0, 1fr) auto;
  padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom);
  --own: var(--none);
}
#ttr[data-owner="you"] { --own: var(--you); }
#ttr[data-owner="rival"] { --own: var(--rival); }

/* ---------- sky: the Bay skyline at night, cropped to its upper band ---------- */
.ttr-sky { position: absolute; inset: 0 0 auto 0; height: 62%; overflow: hidden; z-index: 0; }
.ttr-sky img { width: 100%; height: 100%; object-fit: cover; object-position: 22% 8%; display: block; transform: scale(1.18); transform-origin: 22% 0;
  filter: saturate(1.05) brightness(.9); }
.ttr-sky::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(5, 11, 22, .55) 0%, rgba(5, 11, 22, .05) 28%, rgba(5, 11, 22, 0) 55%, #07101f 100%); }

/* ---------- HUD ---------- */
.ttr-hud { position: relative; z-index: 5; display: grid; grid-template-columns: 1fr 1fr; grid-template-areas: "you rival" "mid mid"; align-items: center; gap: 2px 8px;
  padding: 10px 14px 4px; background: linear-gradient(180deg, rgba(3, 7, 15, .85), rgba(3, 7, 15, 0)); }
.ttr-side-you { grid-area: you; }
.ttr-side-rival { grid-area: rival; }
.ttr-side { display: flex; align-items: center; gap: 8px; min-width: 0; }
.ttr-side-rival { justify-content: flex-end; }
.ttr-tag { font-weight: 800; letter-spacing: .04em; text-transform: uppercase; font-size: 16px; }
.ttr-side-you .ttr-tag { color: var(--you); }
.ttr-side-rival .ttr-tag { color: var(--rival); }
/* score pips: small flat diamonds, a tally, nothing to tap */
.ttr-pips { display: flex; align-items: center; gap: 6px; pointer-events: none; user-select: none; -webkit-user-select: none; cursor: default; }
.ttr-pips i { width: 9px; height: 9px; border-radius: 1px; background: rgba(255, 255, 255, .16); display: block; transform: rotate(45deg); transition: background .25s, box-shadow .25s, transform .25s; }
#ttr-pips-you i.on { background: var(--you); box-shadow: 0 0 8px var(--you); }
#ttr-pips-rival i.on { background: var(--rival); box-shadow: 0 0 8px var(--rival); }
.ttr-pips i.pop { animation: pip .5s ease-out; }
@keyframes pip { 0% { transform: rotate(45deg) scale(1); } 40% { transform: rotate(45deg) scale(1.8); } 100% { transform: rotate(45deg) scale(1); } }
.ttr-mid { grid-area: mid; font-size: 16px; font-weight: 700; letter-spacing: .08em; color: var(--dim); text-align: center; white-space: nowrap; text-transform: uppercase; }
#ttr-mid.hot { color: #ffd36b; }
.ttr-sound { position: absolute; right: 4px; bottom: -14px; width: 44px; height: 44px; padding: 0; display: grid; place-items: center; background: none; border: 0; border-radius: 50%; color: var(--dim); opacity: .8; cursor: pointer; }
.ttr-sound svg { width: 22px; height: 22px; display: block; }
.ttr-sound:hover, .ttr-sound:focus-visible { opacity: 1; color: #fff; outline: none; box-shadow: 0 0 0 1px var(--line); }
.ttr-sound .ttr-snd-off { display: none; }
.ttr-sound[aria-pressed="false"] .ttr-snd-on { display: none; }
.ttr-sound[aria-pressed="false"] .ttr-snd-off { display: inline; }

/* ---------- arena ---------- */
.ttr-arena { position: relative; z-index: 1; min-height: 0; }
.ttr-stars { position: absolute; inset: 0 0 50% 0; pointer-events: none; opacity: .55;
  background-image: radial-gradient(1px 1px at 12% 18%, #fff, transparent), radial-gradient(1px 1px at 38% 8%, #cfe, transparent),
    radial-gradient(1.5px 1.5px at 64% 22%, #fff, transparent), radial-gradient(1px 1px at 82% 12%, #fff, transparent),
    radial-gradient(1px 1px at 92% 30%, #dff, transparent), radial-gradient(1px 1px at 52% 34%, #fff, transparent);
  animation: twinkle 4s ease-in-out infinite alternate; }
@keyframes twinkle { to { opacity: .25; } }
.ttr-water { position: absolute; left: 0; right: 0; bottom: 0; height: 46%;
  background: linear-gradient(180deg, rgba(8, 20, 38, 0) 0%, rgba(8, 20, 38, .92) 14%, #071426 45%, #040b17 100%); overflow: hidden; }
.ttr-moonpath { position: absolute; left: 50%; top: 6%; width: 34%; height: 90%; transform: translateX(-50%);
  background: radial-gradient(ellipse at 50% 30%, color-mix(in srgb, var(--own) 35%, transparent), transparent 70%);
  opacity: .5; transition: background .6s; filter: blur(6px); }
.ttr-waves { position: absolute; inset: 0; opacity: .5;
  background-image: repeating-linear-gradient(176deg, transparent 0 11px, rgba(150, 190, 255, .10) 11px 12px, transparent 12px 23px);
  animation: drift 9s linear infinite; }
.ttr-waves-2 { opacity: .35; animation-duration: 14s; animation-direction: reverse;
  background-image: repeating-linear-gradient(183deg, transparent 0 17px, rgba(120, 220, 255, .08) 17px 18px, transparent 18px 31px); }
@keyframes drift { from { background-position: 0 0; } to { background-position: 240px 0; } }

.ttr-rock { position: absolute; left: 50%; bottom: 14%; width: min(64vw, 360px); transform: translateX(-50%); color: var(--own); transition: color .5s; }
.ttr-rock-svg { width: 100%; height: auto; display: block; overflow: visible; filter: drop-shadow(0 6px 18px rgba(0, 0, 0, .6)); }
.ttr-beacon { animation: beacon 1.8s ease-in-out infinite; transform-origin: 127px 11px; }
@keyframes beacon { 0%, 100% { opacity: .75; transform: scale(.85); } 50% { opacity: 1; transform: scale(1.25); } }
.ttr-rock-glow { transition: opacity .5s; }
#ttr[data-owner="you"] .ttr-rock-glow, #ttr[data-owner="rival"] .ttr-rock-glow { opacity: .55; }
.ttr-flag { opacity: 0; transition: opacity .3s; }
#ttr[data-owner="you"] .ttr-flag, #ttr[data-owner="rival"] .ttr-flag { opacity: 1; }
.ttr-rock.shake { animation: shake .45s; }
@keyframes shake { 0%, 100% { transform: translateX(-50%); } 20% { transform: translateX(calc(-50% - 6px)); } 40% { transform: translateX(calc(-50% + 5px)); } 60% { transform: translateX(calc(-50% - 3px)); } 80% { transform: translateX(calc(-50% + 2px)); } }

.ttr-ring { position: absolute; left: 53%; top: 14%; width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 50%;
  border: 3px solid var(--own); opacity: 0; pointer-events: none; }
.ttr-ring.go { animation: ring .75s ease-out; }
@keyframes ring { 0% { opacity: 1; transform: scale(.3); } 100% { opacity: 0; transform: scale(7); } }
.ttr-sparks { position: absolute; left: 53%; top: 14%; width: 0; height: 0; }
.ttr-sparks b { position: absolute; width: 6px; height: 6px; border-radius: 50%; background: var(--own); box-shadow: 0 0 8px var(--own);
  animation: spark .7s ease-out forwards; }
@keyframes spark { from { transform: translate(0, 0) scale(1); opacity: 1; } to { transform: translate(var(--dx), var(--dy)) scale(.2); opacity: 0; } }

.ttr-beam { position: absolute; width: 26px; margin-left: -13px; transform-origin: top; transform: scaleY(0); opacity: 0; pointer-events: none;
  background: linear-gradient(180deg, var(--beam, #fff), transparent); filter: blur(1px); border-radius: 12px; }
.ttr-beam.go { animation: beam .7s ease-out; }
@keyframes beam { 0% { transform: scaleY(0); opacity: .95; } 35% { transform: scaleY(1); opacity: .95; } 100% { transform: scaleY(1); opacity: 0; } }

.ttr-drone { position: absolute; width: min(26vw, 128px); margin-left: calc(min(26vw, 128px) / -2); margin-top: calc(min(26vw, 128px) * -.27);
  transition: left .42s cubic-bezier(.2, .9, .25, 1.15), top .42s cubic-bezier(.2, .9, .25, 1.15); will-change: left, top; }
.ttr-drone.creep { transition: none; }
.ttr-drone svg { width: 100%; height: auto; display: block; overflow: visible; animation: bob 2.2s ease-in-out infinite; }
.ttr-drone-you { color: var(--you); left: 18%; top: 30%; }
.ttr-drone-rival { color: var(--rival); left: 82%; top: 30%; }
.ttr-drone-rival svg { animation-delay: -1.1s; }
.ttr-drone svg { filter: drop-shadow(0 0 10px currentColor) drop-shadow(0 10px 8px rgba(0, 0, 0, .55)); }
.ttr-drone .ttr-rot { animation: spin .12s linear infinite; transform-box: fill-box; transform-origin: center; opacity: .65; }
@keyframes spin { 0% { transform: scaleX(1); } 50% { transform: scaleX(.25); } 100% { transform: scaleX(1); } }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-7px) rotate(1deg); } }
.ttr-drone.hot svg { animation: bob .5s ease-in-out infinite; }
.ttr-drone.hit svg { animation: hit .5s ease-out; }
@keyframes hit { 0% { transform: rotate(0); } 25% { transform: rotate(-18deg) translateX(-6px); } 60% { transform: rotate(12deg); } 100% { transform: rotate(0); } }
.ttr-name { position: absolute; left: 50%; top: 100%; transform: translateX(-50%); font-size: 16px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  color: currentColor; text-shadow: 0 1px 4px #000; white-space: nowrap; }
.ttr-drone .ttr-name { transition: opacity .3s; }
.ttr-drone.perched .ttr-name { opacity: 0; }
.ttr-flash { position: absolute; inset: 0; pointer-events: none; opacity: 0; background: radial-gradient(circle at 50% 70%, var(--own), transparent 60%); }
.ttr-flash.go { animation: flash .6s ease-out; }
@keyframes flash { 0% { opacity: .45; } 100% { opacity: 0; } }

/* ---------- panels (intro, puzzle card, game over) ---------- */
.ttr-panel { position: relative; z-index: 4; margin: 0 auto; width: min(100%, 620px); padding: 16px 16px 18px;
  background: var(--panel); border-top: 1px solid var(--line); border-radius: 20px 20px 0 0;
  box-shadow: 0 -12px 40px rgba(0, 0, 0, .45); }
.ttr-panel[hidden] { display: none; }
.ttr-intro, .ttr-over { text-align: center; padding: 22px 20px 26px; }
.ttr-title { margin: 0 0 8px; font-size: clamp(34px, 9vw, 52px); line-height: 1; letter-spacing: .02em; font-weight: 900;
  background: linear-gradient(180deg, #fff, #9fe9ff); -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: 0 0 30px rgba(53, 230, 255, .25); }
.ttr-goal { margin: 0 auto 18px; max-width: 30ch; font-size: 18px; line-height: 1.35; color: var(--ink); }
.ttr-big { display: block; width: 100%; max-width: 360px; margin: 0 auto; min-height: 60px; border: 0; border-radius: 16px; cursor: pointer;
  font-size: 22px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; color: #001018;
  background: linear-gradient(180deg, #7ff3ff, var(--you)); box-shadow: 0 0 0 2px rgba(255, 255, 255, .25) inset, 0 8px 30px rgba(53, 230, 255, .4);
  animation: breathe 2.2s ease-in-out infinite; }
.ttr-big:active { transform: translateY(2px); }
.ttr-aboard { display: block; width: 100%; max-width: 360px; margin: 12px auto 0; padding: 12px 10px; border: 1.5px solid var(--line); border-radius: 14px; color: var(--ink); font-size: 16px; font-weight: 700; letter-spacing: .04em; text-decoration: none; }
.ttr-aboard:hover, .ttr-aboard:focus-visible { border-color: var(--you); }
.ttr-pilot { display: inline-block; margin-top: 8px; padding: 12px 6px; color: var(--dim); font-size: 16px; text-decoration: underline; text-underline-offset: 3px; }
.ttr-pilot:hover, .ttr-pilot:focus-visible { color: var(--ink); }
@keyframes breathe { 50% { box-shadow: 0 0 0 2px rgba(255, 255, 255, .25) inset, 0 8px 44px rgba(53, 230, 255, .7); } }

.ttr-card { height: var(--card-h, auto); display: flex; flex-direction: column; overflow: hidden; }
.ttr-ask { flex: 1 1 auto; min-height: 0; position: relative; }
.ttr-choices { margin-top: auto; }
.ttr-card.done .ttr-kicker, .ttr-card.done .ttr-q, .ttr-card.done .ttr-show { visibility: hidden; }
.ttr-charge { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.ttr-charge-label { font-size: 16px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--rival); }
.ttr-charge-track { flex: 1; height: 8px; border-radius: 99px; background: rgba(255, 77, 94, .14); overflow: hidden; }
.ttr-charge-fill { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #ff8a5b, var(--rival)); box-shadow: 0 0 10px var(--rival); }
.ttr-kicker { margin: 0; font-size: 16px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--you); }
.ttr-q { margin: 2px 0 4px; font-size: 20px; font-weight: 700; line-height: 1.25; }
/* The rule in plain words, shown before he answers. */
.ttr-hint { margin: 0 0 8px; font-size: 17px; line-height: 1.3; color: #cfe0ff; }
.ttr-hint:empty { display: none; }
.ttr-show { margin-bottom: 10px; }
.ttr-code { font: 700 26px/1.2 ui-monospace, Menlo, Consolas, monospace; letter-spacing: .08em; padding: 8px 12px; border-radius: 12px;
  background: rgba(53, 230, 255, .08); border: 1px solid rgba(53, 230, 255, .3); color: #dffaff; text-align: center; overflow-wrap: anywhere; }
.ttr-code.small { font-size: 17px; letter-spacing: .02em; }
.ttr-key { display: grid; grid-template-columns: repeat(13, 1fr); gap: 2px; margin-top: 8px; font: 700 16px/1 ui-monospace, Menlo, Consolas, monospace; text-align: center; }
.ttr-key span { padding: 4px 0; background: rgba(255, 255, 255, .05); border-radius: 4px; }
.ttr-key span.b { color: #9fe9ff; }
.ttr-chips { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 8px; }
.ttr-chips span { font: 600 16px/1 ui-monospace, Menlo, Consolas, monospace; padding: 6px 9px; border-radius: 8px; background: rgba(255, 255, 255, .06); border: 1px solid var(--line); }
.ttr-scan { width: 100%; border-collapse: collapse; font: 600 17px/1.2 ui-monospace, Menlo, Consolas, monospace; }
.ttr-scan td { padding: 5px 10px; border-bottom: 1px solid var(--line); }
.ttr-scan td:last-child { text-align: right; color: var(--dim); }
.ttr-scan tr.open td:last-child { color: var(--dim); }

.ttr-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ttr-choices.wide { grid-template-columns: 1fr; gap: 8px; }
.ttr-choice { min-height: 58px; padding: 10px 12px; border-radius: 14px; cursor: pointer; text-align: center;
  font: 800 20px/1.15 ui-monospace, Menlo, Consolas, monospace; overflow-wrap: anywhere;
  background: linear-gradient(180deg, rgba(40, 62, 104, .9), rgba(20, 32, 58, .95)); border: 1px solid rgba(140, 180, 255, .35);
  box-shadow: 0 4px 0 rgba(0, 0, 0, .45); transition: transform .08s, background .2s, border-color .2s; }
.ttr-choices.wide .ttr-choice { min-height: 56px; font-size: 18px; font-weight: 700; text-align: left; }
.ttr-choice:active { transform: translateY(3px); box-shadow: 0 1px 0 rgba(0, 0, 0, .45); }
.ttr-choice:disabled { cursor: default; opacity: .55; }
.ttr-choice.right { opacity: 1; background: linear-gradient(180deg, #2fd88a, #138a55); border-color: #8affc8; color: #02170c; }
.ttr-choice.wrong { opacity: 1; background: linear-gradient(180deg, #ff6b78, #a5222f); border-color: #ffb3ba; color: #1c0003; animation: nope .35s; }
@keyframes nope { 25% { transform: translateX(-6px); } 50% { transform: translateX(5px); } 75% { transform: translateX(-3px); } }

.ttr-fb { position: absolute; left: 0; right: 0; bottom: 10px; min-height: calc(100% - 10px); padding: 12px 14px; border-radius: 14px; background: #0b1426; border: 1px solid var(--line);
  display: flex; flex-direction: column; justify-content: center; animation: fbin .25s ease-out; }
.ttr-fb[hidden] { display: none; }
@keyframes fbin { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.ttr-fb.ok { border-color: rgba(76, 242, 160, .55); }
.ttr-fb.no { border-color: rgba(255, 95, 109, .55); }
.ttr-fb-head { margin: 0; font-weight: 900; font-size: 20px; line-height: 1.25; }
.ttr-fb.ok .ttr-fb-head { color: var(--ok); }
.ttr-fb.no .ttr-fb-head { color: var(--bad); }
.ttr-fb-why { margin: 4px 0 10px; color: var(--ink); font-size: 18px; line-height: 1.3; }
.ttr-next { width: 100%; min-height: 56px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .25); cursor: pointer; font-weight: 800; font-size: 20px;
  background: rgba(255, 255, 255, .1); position: relative; overflow: hidden; }
.ttr-next::after { content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--you); transform-origin: left;
  transform: scaleX(0); }
.ttr-next.run::after { animation: fill var(--auto, 3s) linear forwards; }
@keyframes fill { to { transform: scaleX(1); } }

.ttr-result { margin: 0 0 4px; font-size: clamp(30px, 8vw, 44px); font-weight: 900; line-height: 1.05; }
#ttr[data-state="over"][data-winner="you"] .ttr-result { color: var(--you); text-shadow: 0 0 24px rgba(53, 230, 255, .5); }
#ttr[data-state="over"][data-winner="rival"] .ttr-result { color: var(--rival); text-shadow: 0 0 24px rgba(255, 77, 94, .45); }
.ttr-final { margin: 0 0 4px; font: 900 34px/1 ui-monospace, Menlo, Consolas, monospace; }
.ttr-stats { margin: 0 0 18px; color: var(--dim); font-size: 17px; }

.ttr-pointcall { position: absolute; left: 50%; top: 38%; transform: translate(-50%, -50%); font-weight: 900; font-size: 28px; letter-spacing: .1em; text-transform: uppercase;
  color: #fff; text-shadow: 0 0 18px var(--own), 0 2px 6px #000; pointer-events: none; animation: call .9s ease-out forwards; white-space: nowrap; z-index: 3; }
@keyframes call { 0% { opacity: 0; transform: translate(-50%, -50%) scale(.6); } 25% { opacity: 1; transform: translate(-50%, -50%) scale(1.05); } 75% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -60%) scale(1); } }

/* ---------- wide screens: scene behind, card centred low ---------- */
@media (min-width: 760px) {
  .ttr-sky { height: 70%; }
  .ttr-sky img { object-position: 30% 12%; transform: none; }
  .ttr-rock { width: min(34vw, 380px); bottom: 12%; }
  .ttr-drone { width: 130px; margin-left: -65px; margin-top: -35px; }
  .ttr-drone-you { left: 26%; }
  .ttr-drone-rival { left: 74%; }
  .ttr-panel { border-radius: 20px; margin-bottom: 16px; border: 1px solid var(--line); }
  .ttr-card { min-height: 0; }
  .ttr-hud { padding: 14px 24px 10px; }
  .ttr-tag { font-size: 16px; }
  .ttr-pips i { width: 11px; height: 11px; }
}
/* ---------- landscape desktop: scene on the left, puzzle column on the right ---------- */
@media (min-width: 900px) and (min-aspect-ratio: 5/4) {
  #ttr { grid-template-columns: minmax(0, 1fr) min(460px, 36vw); grid-template-rows: auto minmax(0, 1fr); }
  .ttr-hud { grid-column: 1 / -1; }
  .ttr-arena { grid-column: 1; grid-row: 2; }
  .ttr-panel { grid-column: 2; grid-row: 2; align-self: center; width: auto; margin: 0 20px 20px 0; }
  .ttr-sky { height: 100%; }
  .ttr-sky img { object-position: 20% 0; }
  .ttr-sky::after { background: linear-gradient(180deg, rgba(5, 11, 22, .55) 0%, rgba(5, 11, 22, 0) 25%, rgba(5, 11, 22, 0) 46%, #06101e 78%); }
  .ttr-water { height: 56%; }
  .ttr-rock { width: min(46%, 420px); bottom: 16%; }
  .ttr-intro .ttr-goal { font-size: 20px; }
}
@media (max-height: 700px) {
  .ttr-card { min-height: 0; }
  .ttr-choice { min-height: 56px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Match over: the result panel says it; the top "Final" label only collided with the drone tags. */
#ttr[data-state="over"] .ttr-mid { visibility: hidden; }
/* The ship's server did not answer: one quiet line under Play (take-the-rock.js down()). */
.ttr-down { margin: 12px auto 0; max-width: 32em; color: var(--ink); font-size: 17px; }

/* Easy pace ("Take your time"): a quieter second choice under Play (Play stays the one primary), and a big Next point he taps himself. */
.ttr-starts { display: grid; gap: 12px; max-width: 360px; margin: 0 auto; }
.ttr-easy-go { display: block; width: 100%; max-width: 360px; margin: 0 auto; min-height: 56px; padding: 10px 14px; border-radius: 16px; cursor: pointer;
  font-size: 17px; font-weight: 600; letter-spacing: .02em; color: #cfe0ff; background: transparent; border: 1px solid rgba(207, 224, 255, .35); }
.ttr-easy-go:hover, .ttr-easy-go:focus-visible { background: rgba(207, 224, 255, .08); outline: none; }
.ttr-easy-go[hidden] { display: none; }
.ttr-easy-again { margin-top: 12px; }
.ttr-play-line { margin: -6px auto 2px; font-size: 16px; line-height: 1.3; color: #cfe0ff; }
.ttr-easy-line { margin: 10px auto 0; max-width: 32ch; font-size: 16px; line-height: 1.35; color: #cfe0ff; }
.ttr-next.tap { min-height: 60px; font-size: 22px; color: #001018; background: linear-gradient(180deg, #7ff3ff, var(--you)); border-color: rgba(255, 255, 255, .5); }
/* Slow wifi: a plain line while the ship checks, and Retry when the connection drops. Both sit over the card. */
.ttr-wait { position: absolute; left: 12px; right: 12px; top: 8px; z-index: 3; margin: 0; padding: 10px 12px; border-radius: 12px; text-align: center;
  font-size: 18px; font-weight: 700; color: var(--ink); background: #0b1426; border: 1px solid var(--line); }
.ttr-wait[hidden], .ttr-retry[hidden] { display: none; }
.ttr-retry { position: absolute; left: 16px; right: 16px; bottom: 18px; z-index: 3; min-height: 60px; border: 0; border-radius: 16px; cursor: pointer;
  font-size: 22px; font-weight: 900; color: #001018; background: linear-gradient(180deg, #7ff3ff, var(--you)); }
