html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: radial-gradient(circle at top, #6b1e0e 0%, #3a1105 55%, #160a05 100%);
  color: #f8f9fa;
}

.page-wrap {
  min-height: 100%;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.linktree-shell {
  width: 100%;
  max-width: 720px;
}

.linktree-card {
  background: rgba(30, 12, 6, 0.92);
  border: 1px solid rgba(255, 179, 71, 0.18);
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 1rem 2.5rem rgba(0, 0, 0, 0.45);
}

.title {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.subtitle {
  color: #ffd9a8;
  margin-bottom: 1.25rem;
}

/* The creator's own statement, collapsed where the subtitle used to be so the link buttons stay in the first
   screen. The closed row is quiet text with a chevron rather than another button, and it rests on a hairline like
   the "Support my work" section does. */
.about-me {
  margin-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 179, 71, 0.25);
}

.about-me-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 2.75rem;
  color: #ffd9a8;
  cursor: pointer;
  list-style: none;
}

.about-me-summary::-webkit-details-marker {
  display: none;
}

.about-me-summary::after {
  content: "";
  flex: none;
  width: 0.55rem;
  height: 0.55rem;
  margin-right: 0.25rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-0.15rem) rotate(45deg);
  transition: transform 0.15s ease-out;
}

.about-me[open] > .about-me-summary::after {
  transform: translateY(0.1rem) rotate(-135deg);
}

.about-me-summary:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 2px;
}

@media (hover: hover) {
  .about-me-summary:hover {
    color: #fff3e6;
  }
}

.about-me-body {
  max-width: 70ch;
  padding-top: 0.25rem;
  color: #fff3e6;
  line-height: 1.65;
}

.about-me-body p {
  margin: 0 0 1rem;
  text-wrap: pretty;
}

/* The greeting stands on its own line and sits close to the paragraph it leads into. */
.about-me-body .about-me-lead {
  margin-bottom: 0.5rem;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.4;
  text-wrap: balance;
}

/* The disclosure is an open section under a hairline rather than a box, the same way "Support my work" is. */
.ai-disclosure {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 179, 71, 0.25);
}

.ai-disclosure h2 {
  margin: 0 0 0.5rem;
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.2;
  color: #fff3e6;
}

.ai-disclosure h3 {
  margin: 1.5rem 0 0.4rem;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
  color: #ffd9a8;
  text-wrap: balance;
}

.link-btn {
  margin-top: 0.5rem;
}

.safety-feature {
  margin: 1.25rem 0 1.75rem;
  padding: 1.4rem;
  border: 1px solid rgba(111, 167, 193, 0.55);
  border-top: 0.35rem solid #a53927;
  border-radius: 1rem;
  background: #1e272d;
  box-shadow: 0 0.8rem 1.8rem rgba(0, 0, 0, 0.28);
}

.safety-feature-copy h2 {
  margin: 0;
  max-width: 16ch;
  color: #fff;
  font-size: clamp(1.55rem, 6vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.05;
  text-wrap: balance;
}

.safety-feature-copy p {
  margin: 0.75rem 0 0;
  max-width: 62ch;
  color: #d8e3e7;
  font-size: 0.94rem;
  line-height: 1.58;
}

.safety-feature-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 1.25rem 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.safety-feature-facts div {
  padding: 0.8rem 0;
}

.safety-feature-facts div + div {
  padding-left: 1rem;
  border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.safety-feature-facts dt,
.safety-feature-facts dd {
  margin: 0;
}

.safety-feature-facts dt {
  color: #9fc4d3;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.safety-feature-facts dd {
  margin-top: 0.25rem;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
}

.safety-feature-evidence {
  margin: 0.85rem 0 0;
  color: #d8e3e7;
  font-size: 0.8rem;
  line-height: 1.55;
}

.safety-feature-evidence a {
  color: #fff;
  font-weight: 700;
  text-underline-offset: 0.2rem;
}

.safety-feature-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-top: 1.1rem;
  padding: 0.75rem 1rem;
  border: 2px solid #d8e3e7;
  border-radius: 0.55rem;
  color: #172126;
  background: #f5f1e9;
  font-size: 1rem;
  font-weight: 800;
}

.safety-feature-action:hover,
.safety-feature-action:focus-visible {
  border-color: #fff;
  color: #122026;
  background: #fff;
}

.site-links {
  margin-top: 1.35rem;
}

.site-links-title {
  margin: 0 0 0.65rem;
  color: #ffd9a8;
  font-size: 0.8rem;
  font-weight: 750;
  letter-spacing: 0.09em;
  text-align: center;
  text-transform: uppercase;
}

.site-link-grid,
.social-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
  gap: 0.5rem;
}

.site-link-grid .link-btn {
  width: 100%;
  margin-top: 0;
}

.link-hint {
  margin: 0.35rem 0 0;
  color: #ffd9a8;
  font-size: 0.8rem;
  text-align: center;
  opacity: 0.85;
}

.dm-link-btn {
  border-color: #00aff0;
  background-color: #00aff0;
  color: #fff;
  font-weight: 700;
}

.dm-link-btn:hover,
.dm-link-btn:focus-visible {
  border-color: #0098d1;
  background-color: #0098d1;
  color: #fff;
}

.dm-link-btn:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 2px;
}

.lizard-scene {
  position: fixed;
  z-index: 0;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.lizard-snacks {
  position: absolute;
  inset: 0;
}

.lizard-snack {
  position: absolute;
  display: grid;
  width: 2.5rem;
  height: 2.5rem;
  place-items: center;
  font-size: 1.65rem;
  line-height: 1;
  filter: drop-shadow(0 0.25rem 0.2rem rgba(0, 0, 0, 0.5));
  transform: translate(-50%, -50%);
  animation: snack-drop 0.35s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.lizard-snack.is-eaten {
  animation: snack-eaten 0.35s ease-in both;
}

.lizard-snack.is-rejected {
  animation: snack-eaten 0.45s ease-in both;
}

.lizard-lasers {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.lizard-laser {
  animation: lizard-zap 0.45s ease-out both;
}

.lizard-laser-edge,
.lizard-laser-core {
  fill: none;
  stroke-linecap: round;
}

.lizard-laser-edge {
  stroke: #ed487d;
  stroke-width: 6;
}

.lizard-laser-core {
  stroke: #fff3cc;
  stroke-width: 2;
}

.lizard-laser-impact {
  fill: #fff3cc;
  stroke: #ed487d;
  stroke-width: 3;
}

@keyframes lizard-zap {
  0%, 35% { opacity: 1; }
  100% { opacity: 0; }
}

.screen-lizard {
  position: absolute;
  top: 0;
  left: 0;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  pointer-events: auto;
  touch-action: manipulation;
  cursor: pointer;
  transform: translate3d(-100vw, -100vh, 0);
}

.screen-lizard.is-ready {
  visibility: visible;
}

.screen-lizard:focus-visible {
  border-radius: 50%;
  outline: 3px solid #fff;
  outline-offset: 2px;
}

.lizard-art {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  filter: drop-shadow(0 0.25rem 0.3rem rgba(0, 0, 0, 0.45));
}

.lizard-segments {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  filter: drop-shadow(0 3px 3px rgba(0, 0, 0, 0.4));
}

.lizard-joint {
  fill: #344f35;
}

.lizard-segment {
  fill: #9cbb79;
  stroke: #344f35;
  stroke-width: 1.2;
}

.lizard-segment-ridge {
  fill: none;
  stroke: #d7dd9c;
  stroke-width: 1.6;
  stroke-linecap: round;
}

.lizard-head {
  fill: #a7c685;
  stroke: #344f35;
  stroke-width: 1.8;
}

.lizard-eye {
  fill: #fff9dc;
}

.lizard-pupil,
.lizard-nostril {
  fill: #263729;
}

.lizard-glint {
  fill: #fff;
}

.lizard-smile,
.lizard-face {
  fill: none;
  stroke: #354631;
  stroke-linecap: round;
  stroke-width: 1.5;
}

.lizard-cheek {
  fill: #e58b79;
  opacity: 0.75;
}

.lizard-hiss-mouth,
.lizard-fangs {
  display: none;
}

.lizard-hiss-mouth {
  fill: #3b2b30;
  stroke: #3b2b30;
  stroke-width: 1;
}

.lizard-fangs {
  fill: none;
  stroke: #fff4d4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.2;
}

.screen-lizard.is-hissing .lizard-smile {
  display: none;
}

.screen-lizard.is-hissing .lizard-hiss-mouth,
.screen-lizard.is-hissing .lizard-fangs {
  display: block;
}

.screen-lizard.is-hissing .lizard-art {
  animation: lizard-hiss 0.16s ease-in-out 4;
}

.screen-lizard.is-loved .lizard-art {
  animation: lizard-loved 0.45s ease-in-out 2;
}

.lizard-hint {
  position: absolute;
  left: 50%;
  padding: 0.35rem 0.65rem;
  border: 1px solid #748b56;
  border-radius: 1rem;
  background: #f1e8c9;
  color: #263729;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: normal;
  bottom: 100%;
  width: 8rem;
  text-align: center;
  display: none;
  box-shadow: 0 0.25rem 0.6rem rgba(0, 0, 0, 0.35);
  transform: translateX(-50%);
}

.lizard-scene.is-hint-visible .lizard-hint {
  display: block;
  animation: hint-pop 0.35s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes lizard-hiss {
  0%, 100% { transform: translateX(0) rotate(0); }
  50% { transform: translateX(-2px) rotate(-2deg); }
}

@keyframes lizard-loved {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-4px) scale(1.04); }
}

@keyframes hint-pop {
  from { opacity: 0; transform: translate(-50%, 0.25rem) scale(0.88); }
  to { opacity: 1; transform: translate(-50%, 0) scale(1); }
}

@keyframes snack-drop {
  from { opacity: 0; transform: translate(-50%, -50%) translateY(-0.75rem) scale(0.5); }
  to { opacity: 1; transform: translate(-50%, -50%) translateY(0) scale(1); }
}

@keyframes snack-eaten {
  to { opacity: 0; transform: translate(-50%, -50%) scale(0.25) rotate(20deg); }
}

.page-wrap:has(#lizard-scene:not([hidden])) {
  padding-bottom: 8rem;
}

.page-wrap:has(#lizard-scene) > .linktree-shell,
.page-wrap:has(#lizard-scene) > #twitch-live {
  position: relative;
  z-index: 1;
}

.lizard-scene.is-still * {
  animation: none !important;
}

@media (max-width: 1079px) {
  body:has(#lizard-scene:not([hidden])) {
    overflow: hidden;
  }

  .page-wrap:has(#lizard-scene:not([hidden])) {
    height: calc(100dvh - 132px);
    min-height: 0;
    padding-bottom: 1rem;
    overflow-y: auto;
    align-content: start;
  }
}

.confession-booth {
  position: relative;
  margin-top: 1.5rem;
  padding: 1.25rem;
  border-radius: 1.25rem;
  border: 1px solid rgba(255, 217, 168, 0.42);
  background: #2a211f;
  box-shadow: 0 0.8rem 1.8rem rgba(0, 0, 0, 0.2);
}

.confession-title {
  margin: 0 0 0.65rem;
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.2;
  color: #fff3e6;
}

.confession-tips,
.confession-fine,
.confession-count {
  color: #ddcbb5;
}

.btn-pop {
  border: none;
  border-radius: 999px;
  padding: 0.65rem 1rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #2b160b;
  background: #ffd9a8;
  box-shadow: 0 0.35rem 1rem rgba(0, 0, 0, 0.2);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-pop:hover,
.btn-pop:focus-visible {
  color: #2b160b;
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 0.5rem 1.4rem rgba(0, 0, 0, 0.28);
}

.btn-pop:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 2px;
}

.confession-anon {
  padding: 0.5rem 0.75rem;
  border-radius: 0.75rem;
  background: rgba(255, 217, 168, 0.09);
  border: 1px solid rgba(255, 217, 168, 0.28);
}

.vibe-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.vibe-group + .vibe-group {
  margin-top: 0.85rem;
}

.vibe-group-label {
  margin: 0 0 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffd9a8;
}

.vibe-chip {
  cursor: pointer;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 217, 168, 0.35);
  background: rgba(255, 255, 255, 0.05);
  font-size: 0.875rem;
  transition: background 0.15s ease, transform 0.15s ease;
}

.vibe-chip:hover {
  transform: scale(1.04);
}

.btn-check:checked + .vibe-chip {
  color: #2b160b;
  font-weight: 700;
  background: #ffd9a8;
  border-color: transparent;
}

.btn-check:focus-visible + .vibe-chip {
  outline: 3px solid #fff;
  outline-offset: 2px;
}

/* Mock post header above the anonymous story field: the chosen topic, then the anonymous poster. */
.post-meta {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  column-gap: 0.5rem;
  margin-bottom: 0.5rem;
  line-height: 1.25;
}

.post-avatar {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: #ffd9a8;
  box-shadow: 0 0.2rem 0.6rem rgba(0, 0, 0, 0.2);
  color: #2b160b;
  font-size: 1.1rem;
}

.post-topic {
  font-size: 0.9rem;
  font-weight: 800;
  color: #fff;
  overflow-wrap: anywhere;
}

.post-author {
  font-size: 0.75rem;
  color: #ddcbb5;
}

.confession-input {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 217, 168, 0.4);
  color: #fff;
}

.confession-input:focus {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: #ffd9a8;
  box-shadow: 0 0 0 0.25rem rgba(255, 217, 168, 0.2);
}

.confession-input::placeholder {
  color: #cbb9a5;
}

/* The video reaction request section is a calm teal card after the anonymous story form. It has no animation. */
.video-requests {
  margin-top: 1.5rem;
  padding: 1.25rem;
  border-radius: 1.25rem;
  border: 2px solid rgba(94, 234, 212, 0.55);
  background: linear-gradient(160deg, rgba(8, 40, 44, 0.96), rgba(10, 24, 36, 0.96));
  box-shadow: 0 0 1.25rem rgba(45, 212, 191, 0.18);
}

.video-kicker {
  margin: 0 0 0.25rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #7ee8d6;
}

.video-title {
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.2;
  color: #e6fffa;
}

.video-fine,
.video-optional {
  color: #a7e8dc;
}

.video-label {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: #d5f7f0;
}

.video-optional {
  font-weight: 400;
}

.video-input {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(94, 234, 212, 0.5);
  color: #fff;
}

.video-input:focus {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: #5eead4;
  box-shadow: 0 0 0 0.25rem rgba(45, 212, 191, 0.3);
}

.video-input::placeholder {
  color: #8fd3c8;
}

.btn-video {
  border: none;
  border-radius: 999px;
  padding: 0.65rem 1rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #052321;
  background: linear-gradient(90deg, #5eead4, #a7f3d0);
  box-shadow: 0 0.35rem 1rem rgba(45, 212, 191, 0.3);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-video:hover,
.btn-video:focus-visible {
  color: #052321;
  transform: translateY(-2px);
  box-shadow: 0 0.5rem 1.4rem rgba(45, 212, 191, 0.5);
}

.btn-video:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .lizard-scene .screen-lizard,
  .lizard-scene .lizard-art,
  .lizard-scene .lizard-snack,
  .lizard-scene .lizard-hint {
    animation: none;
    transition: none;
  }

  .btn-pop,
  .btn-video,
  .vibe-chip,
  .about-me-summary::after {
    transition: none;
  }
}

.fact-of-the-day {
  margin: 1rem 0 0;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  background: rgba(255, 140, 0, 0.14);
  border: 1px solid rgba(255, 140, 0, 0.4);
  color: #ffe0b3;
  font-size: 0.9rem;
  text-align: center;
}

.social-links {
  margin-top: 1.75rem;
  padding-top: 1.35rem;
  border-top: 1px solid rgba(255, 179, 71, 0.25);
  text-align: center;
}

.social-links-title {
  margin: 0;
  color: #fff3e6;
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.2;
}

.social-links-note {
  margin: 0.35rem 0 1rem;
  color: #ffd9a8;
  font-size: 0.92rem;
}

.social-links-empty {
  margin: 0;
  color: #ffd9a8;
  font-size: 0.9rem;
}

.social-links-grid > .btn,
.social-links-grid > .alert {
  width: 100%;
  align-self: stretch;
  margin-top: 0;
}

.social-download-link {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.social-download-link small {
  margin-top: 0.2rem;
  font-size: 0.7rem;
  font-weight: 500;
  opacity: 0.85;
}

/* The optional "Support my work" section is the quiet final block in the card. */
.support {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 179, 71, 0.25);
  text-align: center;
}

.support-title {
  margin: 0 0 0.25rem;
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.2;
  color: #fff3e6;
}

.support-note {
  margin: 0 0 1rem;
  color: #ffd9a8;
  font-size: 0.95rem;
  text-wrap: balance;
}

/* Two buttons sit side by side when there is room, stack on a narrow phone, and one alone fills the row. */
.support-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
  gap: 0.5rem;
}

/* Outlined in the service's colour; filled, with dark text, on hover, keyboard focus and press. The Bootstrap
   button variables are set here because .btn:hover reads them. Hover only fills where a pointer can really
   hover, so a tap doesn't leave the button filled when the visitor comes back from the new tab. */
.support-btn {
  --support-accent: #ffd9a8;
  --support-ink: #1c0d06;
  --bs-btn-font-weight: 700;
  --bs-btn-border-width: 2px;
  --bs-btn-color: var(--support-accent);
  --bs-btn-bg: transparent;
  --bs-btn-border-color: var(--support-accent);
  --bs-btn-hover-color: var(--support-accent);
  --bs-btn-hover-bg: transparent;
  --bs-btn-hover-border-color: var(--support-accent);
  --bs-btn-active-color: var(--support-ink);
  --bs-btn-active-bg: var(--support-accent);
  --bs-btn-active-border-color: var(--support-accent);
}

.support-btn-cashapp {
  --support-accent: #00d64f;
}

.support-btn-venmo {
  --support-accent: #3d95ce;
}

@media (hover: hover) {
  .support-btn:hover {
    --bs-btn-hover-color: var(--support-ink);
    --bs-btn-hover-bg: var(--support-accent);
  }
}

.support-btn:focus-visible {
  --bs-btn-hover-color: var(--support-ink);
  --bs-btn-hover-bg: var(--support-accent);
  --bs-btn-focus-box-shadow: none;
  outline: 3px solid #fff;
  outline-offset: 2px;
}

.promo-badge {
  background: linear-gradient(90deg, #ff7518, #ffb703);
  color: #2b1206;
  font-weight: 700;
  font-size: 0.85rem;
  text-align: center;
  border-radius: 999px;
  padding: 0.4rem 0.75rem;
  margin: 0 0 0.5rem;
  letter-spacing: 0.02em;
}

.btn-primary {
  background-color: #e85d04;
  border-color: #e85d04;
}

.referral-divider {
  margin: 1rem 0 0.75rem;
  border: none;
  border-top: 1px solid rgba(255, 179, 71, 0.25);
}

.referral-optional {
  opacity: 0.85;
}

.referral-optional .form-label {
  color: #ffd9a8;
  margin-bottom: 0.35rem;
}

/* Bootstrap leaves --bs-modal-color empty, so modal text would inherit the
   light body color and become unreadable. Give the modal the dark theme. */
.modal {
  --bs-modal-color: #f8f9fa;
  --bs-modal-bg: #221008;
  --bs-modal-border-color: rgba(255, 179, 71, 0.2);
  --bs-modal-header-border-color: rgba(255, 179, 71, 0.2);
  --bs-modal-footer-border-color: rgba(255, 179, 71, 0.2);
}

/* Play page: weekly crossword, Godzilla edition (atomic blue on a Tokyo night) */
.play-shell {
  min-width: 0;
}

/* The page background is one screen tall and would repeat down this long page. */
body:has(.play-shell) {
  background: radial-gradient(circle at top, #12475a 0%, #0a2430 45%, #050c10 100%) no-repeat;
  background-color: #050c10;
}

.play-shell .linktree-card {
  background: rgba(6, 18, 24, 0.94);
  border-color: rgba(77, 208, 255, 0.22);
  box-shadow: 0 1rem 2.5rem rgba(0, 0, 0, 0.5), 0 0 2.5rem rgba(0, 180, 255, 0.12);
}

.play-shell .title {
  text-shadow: 0 0 0.75rem rgba(77, 208, 255, 0.6);
}

.play-shell .subtitle {
  color: #bfeeff;
}

.back-link {
  margin-top: 1.5rem;
}

.crossword {
  --cw-line: #0b2530;
  --cw-paper: #eefbff;
  --cw-ink: #06222c;
  --cw-number: #2f6b80;
  --cw-active: #b8ecff;
  --cw-selected: #4dd0ff;
  --cw-solved: #c8f7d0;
  --cw-focus: #00b4ff;
  --cw-muted: #8fc3d3;
  --cw-accent: #4dd0ff;
  --cw-soft: #bfeeff;
  --cw-softer: #d9f6ff;
}

.cw-week-info {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.25rem 1rem;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
}

.cw-week-info p {
  margin: 0;
}

.cw-week {
  font-weight: 700;
  color: var(--cw-accent);
}

.cw-next {
  color: var(--cw-soft);
}

.cw-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin: 0 0 0.75rem;
  padding: 0.6rem 0.75rem;
  border-radius: 0.75rem;
  font-size: 0.9rem;
}

.cw-banner[hidden] {
  display: none;
}

.cw-rollover {
  background: rgba(77, 208, 255, 0.14);
  border: 1px solid rgba(77, 208, 255, 0.5);
  color: var(--cw-softer);
  font-weight: 600;
}

.cw-notice {
  background: rgba(0, 180, 255, 0.12);
  border: 1px solid rgba(0, 180, 255, 0.35);
  color: var(--cw-soft);
}

.cw-load-status {
  display: none;
  margin: 1.5rem 0;
  text-align: center;
  color: var(--cw-soft);
}

.crossword[data-state="loading"] .cw-load-status,
.crossword[data-state="error"] .cw-load-status {
  display: block;
}

.crossword[data-state="loading"] .cw-main,
.crossword[data-state="error"] .cw-main {
  display: none;
}

.cw-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.25rem 1rem;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  color: var(--cw-soft);
}

.cw-toolbar p {
  margin: 0;
}

.cw-timer-box {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.4rem;
}

.cw-timer {
  font-size: 1.25rem;
  font-weight: 700;
  color: #f8f9fa;
  font-variant-numeric: tabular-nums;
}

.crossword[data-timer="solved"] .cw-timer {
  color: #7dffa6;
}

.cw-timer-state {
  font-size: 0.8rem;
  color: var(--cw-muted);
}

.cw-board {
  min-width: 0;
}

.cw-bar {
  position: sticky;
  top: 0;
  z-index: 3;
  margin-bottom: 0.6rem;
  padding: 0.5rem 0.6rem 0.6rem;
  border: 1px solid rgba(77, 208, 255, 0.25);
  border-radius: 0.75rem;
  background: linear-gradient(90deg, rgba(0, 180, 255, 0.28), rgba(77, 208, 255, 0.16)), #08161c;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.35);
}

.cw-bar-clue {
  min-height: 2.7em;
  margin: 0 0 0.5rem;
  line-height: 1.35;
}

.cw-clue-label {
  margin-right: 0.4rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--cw-accent);
  white-space: nowrap;
}

.cw-clue-current {
  font-weight: 600;
  color: #fff;
  overflow-wrap: anywhere;
}

.cw-bar-actions {
  display: flex;
  gap: 0.5rem;
}

.cw-nav {
  flex: 0 0 auto;
  min-width: 44px;
  min-height: 44px;
  padding: 0 0.5rem;
  font-size: 1.5rem;
  line-height: 1;
}

.cw-hint-btn {
  flex: 1 1 auto;
  min-height: 44px;
  font-weight: 600;
}

.cw-hint-list {
  margin: 0.5rem 0 0;
  padding-left: 1.4rem;
  font-size: 0.9rem;
  line-height: 1.35;
  color: var(--cw-softer);
}

.cw-hint-list:empty {
  display: none;
}

.cw-hint-list li + li {
  margin-top: 0.2rem;
}

/* The grid must not be positioned: the letter input is placed using each
   square's offsetLeft/offsetTop, measured from .cw-grid-wrap. */
.cw-grid-wrap {
  position: relative;
}

.cw-grid {
  --cw-cell: 24px;
  display: flex;
  flex-direction: column;
  gap: 1px;
  width: max-content;
  margin: 0 auto;
  border: 2px solid var(--cw-line);
  border-radius: 3px;
  background: var(--cw-line);
  touch-action: manipulation;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}

.cw-grid.has-focus {
  outline: 2px solid var(--cw-focus);
  outline-offset: 2px;
}

.cw-row {
  display: flex;
  gap: 1px;
}

.cw-cell {
  position: relative;
  flex: 0 0 auto;
  width: var(--cw-cell);
  height: var(--cw-cell);
  background: var(--cw-paper);
  color: var(--cw-ink);
  cursor: pointer;
}

.cw-cell.is-block {
  background: var(--cw-line);
  cursor: default;
}

.cw-cell.is-active {
  background: var(--cw-active);
}

.cw-cell.is-selected {
  background: var(--cw-selected);
}

.cw-grid.has-focus .cw-cell.is-selected {
  box-shadow: inset 0 0 0 2px var(--cw-focus);
}

.cw-grid.is-solved .cw-cell:not(.is-block) {
  background: var(--cw-solved);
  box-shadow: none;
  cursor: default;
}

.cw-num {
  position: absolute;
  top: 1px;
  left: 2px;
  font-size: calc(var(--cw-cell) * 0.3);
  font-weight: 600;
  line-height: 1;
  color: var(--cw-number);
  pointer-events: none;
}

.cw-letter {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding-top: calc(var(--cw-cell) * 0.14);
  font-size: calc(var(--cw-cell) * 0.58);
  font-weight: 700;
  line-height: 1;
  pointer-events: none;
}

/* Invisible, but focusable: it sits on the selected square so phones open their
   keyboard and scroll to the right place. 16px text stops iOS from zooming. */
.cw-input {
  position: absolute;
  top: 0;
  left: 0;
  width: 24px;
  height: 24px;
  margin: 0;
  padding: 0;
  border: 0;
  outline: none;
  opacity: 0;
  background: transparent;
  color: transparent;
  caret-color: transparent;
  font-size: 16px;
  pointer-events: none;
  scroll-margin: 9rem 0 2rem;
}

.cw-message {
  margin: 0.75rem 0 0;
  font-weight: 600;
  text-align: center;
}

.cw-message:empty {
  margin: 0;
}

.cw-message[data-kind="success"],
.cw-message[data-kind="warning"] {
  padding: 0.75rem;
  border-radius: 0.75rem;
}

.cw-message[data-kind="success"] {
  background: rgba(125, 255, 166, 0.12);
  border: 1px solid rgba(125, 255, 166, 0.45);
  color: #b9ffcf;
}

.cw-message[data-kind="warning"] {
  background: rgba(255, 183, 3, 0.12);
  border: 1px solid rgba(255, 183, 3, 0.45);
  color: #ffe0b3;
}

.cw-help {
  margin: 0.75rem 0 0;
  font-size: 0.8rem;
  color: var(--cw-muted);
  text-align: center;
}

@media (hover: none) {
  .cw-help-keys {
    display: none;
  }
}

.cw-heading {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cw-accent);
}

.cw-clues {
  display: grid;
  gap: 1rem;
  margin-top: 1.25rem;
}

.cw-clue-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.cw-clue-list li + li {
  margin-top: 0.3rem;
}

.cw-clue {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  width: 100%;
  padding: 0.45rem 0.6rem;
  border: 1px solid transparent;
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.04);
  color: #f8f9fa;
  font: inherit;
  font-size: 0.95rem;
  line-height: 1.35;
  text-align: left;
  cursor: pointer;
}

.cw-clue:hover {
  background: rgba(255, 255, 255, 0.08);
}

.cw-clue:focus-visible,
.cw-bar .btn:focus-visible,
.cw-rollover .btn:focus-visible {
  outline: 2px solid var(--cw-focus);
  outline-offset: 2px;
}

.cw-clue.is-cross {
  border-color: rgba(255, 255, 255, 0.22);
}

.cw-clue.is-active {
  border-color: rgba(77, 208, 255, 0.75);
  background: rgba(0, 180, 255, 0.24);
}

.cw-clue.is-filled .cw-clue-text {
  color: var(--cw-muted);
}

.cw-clue-num {
  flex: 0 0 1.6rem;
  font-weight: 700;
  text-align: right;
  color: var(--cw-accent);
}

.cw-clue-text {
  flex: 1 1 auto;
  min-width: 0;
  overflow-wrap: anywhere;
}

.cw-clue-hints {
  flex: 0 0 auto;
  font-size: 0.8rem;
  color: var(--cw-softer);
}

.cw-stats {
  margin-top: 1.25rem;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.04);
}

.cw-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0;
}

.cw-stats-grid dt {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--cw-muted);
}

.cw-stats-grid dd {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.cw-stats-week {
  margin: 0.75rem 0 0;
  font-size: 0.9rem;
  color: var(--cw-soft);
}

.cw-storage-note {
  margin: 0.25rem 0 0;
  font-size: 0.8rem;
  color: var(--cw-muted);
}

@media (max-width: 575.98px) {
  .page-wrap:has(.play-shell) {
    padding: 0.5rem;
  }

  .play-shell .linktree-card {
    padding: 1rem 0.75rem;
  }

  .play-shell .title {
    font-size: 1.6rem;
  }

  .play-shell .subtitle {
    margin-bottom: 0.75rem;
  }
}

@media (min-width: 576px) {
  .cw-clues {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cw-stats-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 992px) {
  .play-shell {
    max-width: 960px;
  }

  .cw-layout {
    display: grid;
    grid-template-columns: minmax(0, 31rem) minmax(0, 1fr);
    gap: 1.5rem;
    align-items: start;
  }

  .cw-clues {
    grid-template-columns: minmax(0, 1fr);
    margin-top: 0;
  }
}
