:root {
  --ink: #091126;
  --trench: #0a2430;
  --midwater: #134053;
  --foam: #e7f3f0;
  --foam-dim: #a7b6d2;
  --biolume: #f0b429;
  --biolume-soft: #f7d57a;
  --coral: #e26a55;
  --valid: #3ecf8e;
  --line: rgba(231, 243, 240, 0.12);
  --glow: 0 0 42px rgba(240, 180, 41, 0.22);
  --font-display: "Bricolage Grotesque", "Noto Sans SC", sans-serif;
  --font-body: "Noto Sans SC", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --topbar-h: 56px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--ink);
  color: var(--foam);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

body {
  overflow-x: hidden;
  min-height: 100dvh;
}

button,
input {
  font: inherit;
  color: inherit;
}

button {
  appearance: none;
}

/* Atmosphere */
.sea {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 55% at 50% 110%, #dc9b5b3d, transparent 65%),
    radial-gradient(ellipse 60% 40% at 85% 35%, #46477d55, transparent 60%),
    linear-gradient(180deg, #040817 0%, #101c3b 55%, #283c62 100%);
  transition: filter 0.8s ease;
}

.rays {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    108deg,
    transparent 0,
    transparent 52px,
    rgba(240, 180, 41, 0.028) 52px,
    rgba(240, 180, 41, 0.028) 54px
  );
  mask-image: linear-gradient(180deg, #000 0%, transparent 58%);
  animation: drift 32s linear infinite;
}

.particles span {
  position: absolute;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: var(--biolume-soft);
  opacity: 0.3;
  animation: floatUp linear infinite;
}

.depth-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.6));
  opacity: 0;
  transition: opacity 0.6s ease;
}

@keyframes drift {
  from { transform: translateX(0); }
  to { transform: translateX(-108px); }
}

@keyframes floatUp {
  from { transform: translateY(100vh) scale(0.5); opacity: 0; }
  20% { opacity: 0.35; }
  to { transform: translateY(-8vh) scale(1); opacity: 0; }
}

/* Signature: depth shaft on the edge */
.depth-shaft {
  position: fixed;
  top: calc(var(--topbar-h) + 12vh);
  bottom: 18vh;
  right: max(10px, calc((100vw - 560px) / 2 - 28px));
  width: 1px;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(240, 180, 41, 0.55),
    rgba(240, 180, 41, 0.08) 55%,
    rgba(231, 243, 240, 0.05)
  );
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
}

.depth-shaft span {
  position: relative;
  left: 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: rgba(168, 197, 192, 0.45);
  white-space: nowrap;
}

.depth-shaft span::before {
  content: "";
  position: absolute;
  left: -10px;
  top: 0.45em;
  width: 5px;
  height: 1px;
  background: rgba(240, 180, 41, 0.45);
}

@media (max-width: 640px) {
  .depth-shaft {
    right: 8px;
    opacity: 0.55;
  }
}

/* Chrome */
.topbar,
main,
.drawer,
.drawer-backdrop,
.toast {
  position: relative;
  z-index: 1;
}

.topbar {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  height: var(--topbar-h);
  padding: calc(6px + var(--safe-top)) 14px 6px;
  gap: 8px;
}

.brand {
  justify-self: center;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  opacity: 0.9;
}

.brand-quiet img {
  display: block;
  filter: drop-shadow(0 0 10px rgba(240, 180, 41, 0.25));
}

.brand-quiet {
  grid-auto-flow: column;
  gap: 8px;
}

.brand-name {
  color: var(--foam);
  font: 700 14px var(--font-display);
  letter-spacing: -0.02em;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-self: end;
}

.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(6, 20, 31, 0.4);
  display: grid;
  place-items: center;
  gap: 4px;
  cursor: pointer;
}

.icon-btn span {
  display: block;
  width: 15px;
  height: 1.5px;
  background: var(--foam);
}

.icon-btn.ghost {
  font-size: 15px;
}

.text-btn {
  border: 1px solid rgba(240, 180, 41, 0.4);
  background: rgba(240, 180, 41, 0.07);
  color: var(--biolume);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 20;
}

.drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: min(300px, 84vw);
  background: linear-gradient(180deg, #0d2834, #06141f);
  border-right: 1px solid var(--line);
  padding: 72px 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 30;
}

.drawer[hidden],
.drawer-backdrop[hidden] {
  display: none !important;
}

.drawer-brand {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--biolume);
}

.drawer a {
  color: var(--foam);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1.1rem;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.drawer-close {
  position: absolute;
  top: 14px;
  right: 14px;
  border: 0;
  background: transparent;
  font-size: 28px;
  cursor: pointer;
  color: var(--foam-dim);
}

main {
  width: min(560px, 100%);
  margin: 0 auto;
  padding: 0 20px calc(20px + var(--safe-bottom));
}

.view[hidden] {
  display: none !important;
}

/* Lobby — one composition, CTA docked */
.view-lobby {
  min-height: calc(100dvh - var(--topbar-h) - var(--safe-top));
  display: flex;
  flex-direction: column;
}

.lobby-stage {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: calc(100dvh - var(--topbar-h) - var(--safe-top) - 8px);
  padding-bottom: 20px;
}

.lobby-hero {
  position: relative;
  text-align: center;
  padding-top: clamp(8vh, 12vh, 16vh);
  animation: heroIn 0.7s ease both;
}

.lobby-hero::before,
.lobby-hero::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 42%;
  width: min(86vw, 390px);
  height: min(86vw, 390px);
  border: 1px solid rgba(161, 197, 255, 0.1);
  border-radius: 50%;
  transform: translate(-50%, -50%) rotate(-18deg);
  pointer-events: none;
  z-index: -1;
}

.lobby-hero::after {
  width: min(68vw, 300px);
  height: min(68vw, 300px);
  border-color: rgba(240, 180, 41, 0.13);
  transform: translate(-50%, -50%) rotate(28deg);
}

@keyframes heroIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--biolume);
  margin: 0 0 14px;
}

.logo-mark {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 14vw, 4.6rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  margin: 0;
  line-height: 0.92;
  text-shadow: var(--glow);
}

.tagline {
  margin: 16px 0 0;
  font-size: 1.2rem;
  color: var(--biolume-soft);
  font-weight: 500;
  letter-spacing: 0.04em;
}

.lede {
  margin: 16px auto 0;
  max-width: 28ch;
  color: var(--foam-dim);
  line-height: 1.7;
  font-size: 0.95rem;
}

.lobby-insight {
  display: grid;
  grid-template-columns: repeat(3, auto);
  justify-content: center;
  gap: 10px;
  margin: 28px auto 0;
}

.lobby-insight span {
  min-width: 84px;
  padding: 10px 11px 9px;
  border: 1px solid rgba(164, 191, 232, 0.16);
  border-radius: 13px;
  background: rgba(6, 11, 31, 0.34);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.lobby-insight b,
.lobby-insight em {
  display: block;
  font-style: normal;
}

.lobby-insight b {
  color: var(--biolume);
  font: 600 10px var(--font-mono);
  letter-spacing: 0.12em;
}

.lobby-insight em {
  margin-top: 5px;
  color: var(--foam);
  font-size: 12px;
}

.lobby-dock {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 8px 0 12px;
  animation: heroIn 0.7s ease 0.12s both;
}

.cta-note {
  margin: -6px 0 0;
  color: var(--foam-dim);
  font-size: 12px;
}

.status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 6px;
  border-radius: 50%;
  background: var(--valid);
  box-shadow: 0 0 10px rgba(62, 207, 142, 0.8);
}

.lobby-links {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.lobby-links .dot {
  color: rgba(168, 197, 192, 0.35);
  font-size: 12px;
}

.btn-link {
  background: none;
  border: 0;
  color: var(--foam-dim);
  cursor: pointer;
  font-size: 13px;
  padding: 4px;
}

.btn-link:hover {
  color: var(--foam);
}

.btn-primary,
.btn-secondary,
.btn-submit {
  border: 0;
  cursor: pointer;
  border-radius: 16px;
  padding: 16px 22px;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.03em;
}

.btn-primary {
  width: min(100%, 340px);
  background: linear-gradient(180deg, var(--biolume), #d49214);
  color: #1a1203;
  box-shadow: var(--glow), 0 12px 28px rgba(0, 0, 0, 0.32);
  font-size: 1.08rem;
  transition: transform 0.15s ease, filter 0.15s ease;
}

.btn-primary:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
}

.btn-primary:active {
  transform: translateY(1px);
}

.btn-secondary {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--foam);
}

.ad-slot {
  margin-top: 8px;
  border-top: 1px solid var(--line);
  padding: 20px 8px 12px;
  text-align: center;
  color: rgba(168, 197, 192, 0.45);
  font-size: 12px;
}

/* Keep ads below the first viewport */
#adLobby {
  margin-top: 0;
}

.rarity-rail {
  margin: 2px 0 22px;
  padding: 15px 14px 13px;
  border: 1px solid rgba(164, 191, 232, 0.14);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(16, 27, 63, 0.68), rgba(6, 13, 34, 0.72));
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.rail-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.rail-heading .eyebrow {
  margin: 0;
  color: var(--foam-dim);
  font-size: 9px;
}

.rail-note {
  color: rgba(231, 243, 240, 0.46);
  font: 10px var(--font-mono);
}

.rail-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 3px;
  margin-top: 18px;
}

.rail-track::before {
  content: "";
  position: absolute;
  top: 5px;
  left: 5px;
  right: 5px;
  height: 1px;
  background: linear-gradient(90deg, rgba(231, 243, 240, 0.22), var(--biolume), #c6b4ff);
}

.rail-stop {
  position: relative;
  min-width: 0;
  text-align: center;
}

.rail-dot {
  position: relative;
  display: block;
  width: 11px;
  height: 11px;
  margin: 0 auto 8px;
  border: 2px solid rgba(231, 243, 240, 0.45);
  border-radius: 50%;
  background: #101b40;
  box-shadow: 0 0 0 4px rgba(8, 16, 42, 0.7);
}

.rail-stop strong,
.rail-stop small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rail-stop strong {
  color: var(--foam);
  font: 600 10px var(--font-display);
}

.rail-stop small {
  margin-top: 3px;
  color: var(--foam-dim);
  font: 9px var(--font-mono);
}

.rail-ground .rail-dot { border-color: #e2d59a; }
.rail-drift .rail-dot { border-color: #b4e6db; }
.rail-rise .rail-dot { border-color: #9ce2ff; box-shadow: 0 0 0 4px rgba(8, 16, 42, 0.7), 0 0 12px rgba(156, 226, 255, 0.35); }
.rail-soar .rail-dot { border-color: #bdb3ff; box-shadow: 0 0 0 4px rgba(8, 16, 42, 0.7), 0 0 12px rgba(189, 179, 255, 0.35); }
.rail-aerillion .rail-dot { border-color: var(--biolume-soft); background: var(--biolume); box-shadow: 0 0 0 4px rgba(8, 16, 42, 0.7), 0 0 14px rgba(240, 180, 41, 0.65); }

.ad-slot[hidden],
.ad-slot.premium-hidden {
  display: none !important;
}

.ad-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 4px;
  opacity: 0.7;
}

.ad-slot p {
  margin: 0;
}

/* Game — stage + sticky answer dock */
.view-game {
  min-height: calc(100dvh - var(--topbar-h) - var(--safe-top));
  display: flex;
  flex-direction: column;
  padding-bottom: 0;
}

.game-stage {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 12px 16px 4px;
  border: 1px solid rgba(164, 191, 232, 0.14);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(15, 28, 65, 0.62), rgba(5, 12, 31, 0.64));
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.game-hud {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
  padding: 4px 0 8px;
}

.hud-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hud-item.right {
  align-items: flex-end;
  text-align: right;
}

.hud-item.center {
  align-items: center;
}

.hud-label {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--foam-dim);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hud-value {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--biolume);
}

.timer-ring {
  position: relative;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
}

.timer-ring svg {
  position: absolute;
  inset: 0;
  transform: rotate(-90deg);
}

.timer-bg {
  fill: none;
  stroke: rgba(231, 243, 240, 0.12);
  stroke-width: 2.5;
}

.timer-fg {
  fill: none;
  stroke: var(--biolume);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 97.4;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 0.2s linear, stroke 0.2s ease;
}

.timer-ring.urgent .timer-fg {
  stroke: var(--coral);
}

#timerText {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 1.05rem;
  z-index: 1;
}

.prompt-block {
  flex: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  padding: 12px 4px 20px;
  min-height: 160px;
}

.prompt-en {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.02em;
  color: var(--foam-dim);
}

.prompt-text {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 6.5vw, 2.15rem);
  font-weight: 700;
  line-height: 1.35;
}

.answer-dock {
  position: sticky;
  bottom: 0;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 12px 0 calc(12px + var(--safe-bottom));
  background: linear-gradient(180deg, transparent, rgba(9, 17, 38, 0.96) 28%);
  margin-top: auto;
}

#answerInput {
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(6, 20, 31, 0.85);
  border-radius: 14px;
  padding: 15px 16px;
  outline: none;
  font-size: 1.05rem;
}

#answerInput:focus {
  border-color: rgba(240, 180, 41, 0.5);
  box-shadow: 0 0 0 3px rgba(240, 180, 41, 0.12);
}

.btn-submit {
  background: var(--midwater);
  border: 1px solid rgba(240, 180, 41, 0.35);
  color: var(--biolume);
  padding-inline: 18px;
  border-radius: 14px;
}

.feedback {
  margin: 0 auto 8px;
  text-align: center;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  max-width: 320px;
  animation: pop 0.35s ease;
}

.feedback.good {
  border-color: rgba(62, 207, 142, 0.35);
  color: var(--valid);
}

.feedback.bad {
  border-color: rgba(226, 106, 85, 0.35);
  color: var(--coral);
}

.feedback .pts {
  display: block;
  margin-top: 4px;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
}

@keyframes pop {
  from { transform: translateY(8px); opacity: 0; }
  to { transform: none; opacity: 1; }
}

/* Result */
.view-result,
.view-panel {
  text-align: center;
  padding-top: 2vh;
  padding-bottom: 24px;
}

.view-result {
  position: relative;
}

.view-result::before {
  content: "";
  position: absolute;
  top: -30px;
  left: 50%;
  width: 260px;
  height: 150px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(240, 180, 41, 0.18), transparent 68%);
  transform: translateX(-50%);
  pointer-events: none;
}

.result-hero {
  margin-bottom: 22px;
}

.result-depth {
  font-family: var(--font-display);
  font-size: clamp(3rem, 14vw, 4.4rem);
  font-weight: 800;
  color: var(--biolume);
  margin: 4px 0 0;
  line-height: 1;
  text-shadow: var(--glow);
}

.result-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  margin: 10px 0 0;
  color: var(--foam);
}

.result-score {
  color: var(--foam-dim);
  margin: 8px 0 0;
  font-size: 0.92rem;
}

.tier-breakdown {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  text-align: left;
  border-top: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: rgba(8, 16, 40, 0.38);
}

.tier-row {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.tier-row .idx {
  font-family: var(--font-mono);
  color: var(--foam-dim);
  font-size: 12px;
}

.tier-row .pts {
  font-family: var(--font-mono);
  color: var(--biolume);
}

.share-preview {
  margin: 0 auto 18px;
  width: min(100%, 240px);
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4);
}

.share-preview img {
  display: block;
  width: 100%;
  height: auto;
}

.result-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}

.result-actions .btn-primary,
.result-actions .btn-secondary {
  width: min(100%, 300px);
}

.view-panel h2 {
  font-family: var(--font-display);
  margin-bottom: 16px;
}

.panel-card {
  text-align: left;
  padding: 16px;
  border: 1px solid rgba(164, 191, 232, 0.12);
  border-radius: 16px;
  margin-bottom: 10px;
  background: rgba(12, 24, 54, 0.5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.panel-card h3 {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 1.05rem;
}

.panel-card p {
  margin: 0;
  color: var(--foam-dim);
  line-height: 1.6;
  font-size: 14px;
}

.panel-card p + p {
  margin-top: 10px;
}

.mode-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 12px;
  color: var(--foam-dim);
  cursor: pointer;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(22px + var(--safe-bottom));
  transform: translateX(-50%);
  background: #122a35;
  border: 1px solid rgba(240, 180, 41, 0.35);
  color: var(--foam);
  padding: 12px 18px;
  border-radius: 999px;
  z-index: 50;
  font-size: 14px;
  box-shadow: var(--glow);
}

.toast[hidden] {
  display: none !important;
}

.tier-row div { min-width: 0; }
.tier-row strong { display: block; overflow-wrap: anywhere; font-size: 14px; }
.tier-row small { display: block; margin-top: 5px; color: var(--foam-dim); line-height: 1.6; font-size: 11px; }
button:disabled { cursor: wait; opacity: .5; }
.sea::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, transparent 0 3px, #00000012 3px 4px); pointer-events: none; }

@media (prefers-reduced-motion: reduce) {
  .rays,
  .particles span,
  .feedback,
  .lobby-hero,
  .lobby-dock {
    animation: none !important;
  }
}

@media (max-width: 420px) {
  .brand-name { display: none; }
  .lobby-insight span { min-width: 0; padding-inline: 8px; }
  .lobby-insight em { font-size: 11px; }
  .rarity-rail { margin-inline: -4px; }
  .rail-track { gap: 0; }
  .rail-stop strong { font-size: 9px; }
  .rail-stop small { font-size: 8px; }
  .game-stage { padding-inline: 12px; border-radius: 20px; }
  .answer-dock {
    grid-template-columns: 1fr;
  }
  .btn-submit {
    width: 100%;
  }
}

/* Keep the question, rules and answer together on smaller laptop screens. */
.view-game{min-height:calc(100dvh - var(--topbar-h) - 36px);gap:0}
.prompt-text{text-wrap:balance;word-break:normal;overflow-wrap:anywhere}
.prompt-rule{font-size:12px;line-height:1.8;color:var(--foam-dim);max-width:400px;margin:10px auto 0;padding:0 16px}
.prompt-rule:empty{display:none}.prompt-block{padding:26px 12px;gap:12px}
.answer-dock{padding-bottom:calc(16px + var(--safe-bottom))}.btn-submit{background:linear-gradient(145deg,#efca70,#e7ae35);color:#282115;font-weight:700;padding-inline:25px}
@media(max-width:420px){.answer-dock{grid-template-columns:minmax(0,1fr) auto}.btn-submit{width:auto;padding-inline:18px}.prompt-text{font-size:1.65rem}.prompt-block{padding:22px 4px}.view-game{min-height:calc(100dvh - var(--topbar-h) - 24px)}}
