:root {
  --accent: #ad1c42;
  --accent-dark: #7a1230;
  --accent-soft: rgba(173, 28, 66, 0.1);
  --ink: #20242d;
  --ink-soft: #5e6573;
  --line: rgba(32, 36, 45, 0.12);
  --line-strong: rgba(173, 28, 66, 0.18);
  --success: #2f8a59;
  --danger: #d94a67;
  --card: rgba(255, 255, 255, 0.9);
  --card-solid: #ffffff;
  --shadow: 0 24px 60px rgba(51, 26, 35, 0.12);
  --cell-size: 52px;
  --cell-radius: 14px;
  --gap: 4px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Avenir Next", "Segoe UI", "Helvetica Neue", sans-serif;
  font-size: 16px;
  line-height: 1.45;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(173, 28, 66, 0.16), transparent 34%),
    radial-gradient(circle at right center, rgba(44, 54, 78, 0.12), transparent 30%),
    linear-gradient(180deg, #fff7f8 0%, #f7f7fb 55%, #f3f4f7 100%);
}

body::before,
body::after {
  position: fixed;
  inset: auto;
  content: "";
  z-index: -1;
  border-radius: 999px;
  filter: blur(40px);
}

body::before {
  top: 5%;
  right: 8%;
  width: 22rem;
  height: 22rem;
  background: rgba(173, 28, 66, 0.08);
}

body::after {
  bottom: 10%;
  left: -2rem;
  width: 18rem;
  height: 18rem;
  background: rgba(32, 36, 45, 0.06);
}

button,
input {
  font: inherit;
}

button {
  touch-action: manipulation;
}

.app-shell {
  max-width: none;
  margin: 0 auto;
  padding: 28px clamp(16px, 3vw, 40px) calc(120px + env(safe-area-inset-bottom, 0px));
}

.card {
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero {
  display: grid;
  gap: 24px;
  padding: clamp(20px, 3vw, 32px);
  border-radius: 28px;
}

.hero-brand {
  display: flex;
  gap: 18px;
  align-items: center;
}

.logo-badge {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: clamp(132px, 11vw, 156px);
  height: clamp(132px, 11vw, 156px);
  padding: 16px;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(173, 28, 66, 0.12), rgba(173, 28, 66, 0.03)),
    #fff;
  border: 1px solid rgba(173, 28, 66, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.logo-badge img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.eyebrow,
.panel-label {
  margin: 0;
  font-size: 0.77rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero-title {
  margin: 0.3rem 0 0.45rem;
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 1;
  letter-spacing: -0.04em;
  cursor: pointer;
  user-select: none;
}

.hero-subtitle {
  margin: 0;
  font-size: 1.06rem;
  color: var(--ink-soft);
}

.hero-stats {
  display: grid;
  gap: 12px;
}

.stat-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(246, 247, 250, 0.9)),
    #fff;
  border: 1px solid rgba(32, 36, 45, 0.08);
}

.stat-card span {
  font-size: 0.82rem;
  color: var(--ink-soft);
}

.stat-card strong {
  font-size: 1.08rem;
  line-height: 1.2;
}

.section-tabs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-top: 18px;
  padding: 12px;
  border-radius: 24px;
}

.section-tab {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  min-width: 0;
  padding: 12px 16px;
  border: 1px solid transparent;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink);
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
  -webkit-tap-highlight-color: transparent;
}

.section-tab:hover {
  transform: translateY(-1px);
  border-color: rgba(173, 28, 66, 0.18);
}

.section-tab.is-active {
  background: linear-gradient(180deg, rgba(173, 28, 66, 0.96), rgba(122, 18, 48, 0.96));
  color: #fff;
  box-shadow: 0 16px 28px rgba(173, 28, 66, 0.22);
}

.section-tab__badge {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.section-tab:not(.is-active) .section-tab__badge {
  background: rgba(173, 28, 66, 0.08);
  border-color: rgba(173, 28, 66, 0.12);
  color: var(--accent);
}

.game-layout {
  display: grid;
  gap: 20px;
  margin-top: 20px;
  grid-template-columns: minmax(0, 1fr);
}

.board-panel,
.clues-panel {
  border-radius: 28px;
}

.board-panel {
  padding: clamp(16px, 2vw, 24px);
}

.panel-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  flex-wrap: wrap;
}

.progress-block {
  flex: 1 1 360px;
}

.progress-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.progress-head h2 {
  margin: 0.25rem 0 0;
  font-size: clamp(1.3rem, 2vw, 1.7rem);
  line-height: 1.1;
}

.summary-chip,
.direction-chip {
  display: inline-flex;
  align-items: center;
  min-height: 2.2rem;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  background: rgba(173, 28, 66, 0.08);
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
}

.progress-strip {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.progress-bar {
  flex: 1 1 240px;
  min-width: 180px;
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(32, 36, 45, 0.08);
}

.progress-fill {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), #f56c8a);
  transition: width 0.24s ease;
}

#progressCaption {
  font-size: 0.92rem;
}

.action-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 3rem;
  padding: 0.8rem 1.15rem;
  border: 0;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button:active {
  transform: translateY(0);
}

.button-primary {
  color: #fff;
  background: linear-gradient(180deg, var(--accent), var(--accent-dark));
  box-shadow: 0 14px 24px rgba(173, 28, 66, 0.22);
}

.button-secondary {
  color: var(--ink);
  background: #fff;
  border: 1px solid rgba(32, 36, 45, 0.1);
}

.button-ghost {
  color: #fff;
  background: rgba(32, 36, 45, 0.92);
}

.current-clue {
  max-height: 0;
  overflow: hidden;
  margin-top: 0;
  padding: 0 18px;
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(173, 28, 66, 0.08), rgba(32, 36, 45, 0.04)),
    #fff;
  border: 0 solid rgba(173, 28, 66, 0.12);
  opacity: 0;
  transform: translateY(-10px);
  transition:
    max-height 0.28s ease,
    opacity 0.22s ease,
    transform 0.22s ease,
    margin 0.22s ease,
    padding 0.22s ease,
    border-width 0.22s ease;
}

.current-clue.is-open {
  max-height: 260px;
  margin-top: 18px;
  padding: 16px 18px;
  border-width: 1px;
  opacity: 1;
  transform: translateY(0);
}

.current-clue__top,
.current-clue__meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.current-clue__question {
  margin: 0.85rem 0 0.7rem;
  font-size: clamp(1.05rem, 1.6vw, 1.28rem);
  font-weight: 700;
  line-height: 1.35;
}

.current-clue__meta {
  color: var(--ink-soft);
  font-size: 0.94rem;
}

.status-line {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(32, 36, 45, 0.05);
  color: var(--ink-soft);
  font-size: 0.94rem;
}

.board-scroll {
  margin-top: 18px;
  overflow: visible;
  display: flex;
  justify-content: center;
  width: 100%;
  padding: 14px 8px;
  border-radius: 24px;
  border: 1px solid rgba(32, 36, 45, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(247, 248, 251, 0.95)),
    #fff;
}

.board {
  display: grid;
  gap: var(--gap);
  justify-content: center;
  align-self: center;
  width: max-content;
  min-width: 0;
  max-width: 100%;
  margin: 0 auto;
}

.letter-shell,
.clue-cell,
.void-cell {
  width: var(--fit-cell-size, var(--cell-size));
  height: var(--fit-cell-size, var(--cell-size));
}

.void-cell {
  border-radius: var(--cell-radius);
  background: rgba(255, 255, 255, 0.16);
  border: 1px dashed rgba(32, 36, 45, 0.05);
}

.letter-shell {
  position: relative;
}

.board-cell {
  width: 100%;
  height: 100%;
  padding: 0;
  border: 1px solid rgba(32, 36, 45, 0.14);
  border-radius: var(--cell-radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 246, 249, 0.96)),
    #fff;
  box-shadow: inset 0 -2px 0 rgba(32, 36, 45, 0.05);
  color: var(--ink);
  text-align: center;
  font-size: clamp(0.92rem, calc(var(--fit-cell-size, 48px) * 0.38), 1.35rem);
  font-weight: 800;
  text-transform: uppercase;
  caret-color: var(--accent);
  outline: none;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
  -webkit-appearance: none;
}

.board-cell:focus {
  border-color: rgba(173, 28, 66, 0.5);
  box-shadow:
    0 0 0 4px rgba(173, 28, 66, 0.12),
    inset 0 -2px 0 rgba(173, 28, 66, 0.08);
}

.letter-shell.is-active .board-cell {
  background: linear-gradient(180deg, #fff, #ffe5ec);
  border-color: rgba(173, 28, 66, 0.28);
}

.letter-shell.is-filled .board-cell {
  box-shadow:
    inset 0 -2px 0 rgba(32, 36, 45, 0.03),
    0 10px 18px rgba(32, 36, 45, 0.05);
}

.letter-shell.is-correct .board-cell {
  background: linear-gradient(180deg, #f8fff9, #e0f6e8);
  border-color: rgba(47, 138, 89, 0.34);
}

.letter-shell.is-wrong .board-cell {
  background: linear-gradient(180deg, #fff5f7, #ffdce3);
  border-color: rgba(217, 74, 103, 0.44);
  animation: wobble 0.28s ease;
}

.letter-shell.is-revealed .board-cell {
  color: var(--accent-dark);
}

.letter-shell__tag {
  position: absolute;
  top: 4px;
  left: 6px;
  display: inline-flex;
  align-items: center;
  min-width: 1rem;
  font-size: 0.62rem;
  line-height: 1;
  color: rgba(32, 36, 45, 0.56);
  pointer-events: none;
}

.clue-cell {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: max(5px, calc(var(--fit-cell-size, 48px) * 0.12));
  border: 0;
  border-radius: var(--cell-radius);
  color: #fff;
  cursor: pointer;
  text-align: left;
  background:
    linear-gradient(160deg, rgba(192, 42, 83, 1), rgba(122, 18, 48, 0.96)),
    var(--accent);
  box-shadow: 0 14px 24px rgba(173, 28, 66, 0.2);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.clue-cell:hover {
  transform: translateY(-1px);
  filter: saturate(1.08);
}

.clue-cell.is-active {
  box-shadow:
    0 0 0 3px rgba(255, 255, 255, 0.82),
    0 18px 34px rgba(173, 28, 66, 0.26);
}

.clue-cell__top {
  display: flex;
  justify-content: space-between;
  gap: 4px;
  align-items: center;
  font-size: clamp(0.55rem, calc(var(--fit-cell-size, 48px) * 0.14), 0.66rem);
  line-height: 1;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.clue-cell__preview {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  font-size: clamp(0.34rem, calc(var(--fit-cell-size, 48px) * 0.12), 0.58rem);
  line-height: 1.08;
  opacity: 0.98;
}

.board-empty {
  display: grid;
  place-items: center;
  min-height: 340px;
  padding: 20px;
  color: var(--ink-soft);
  text-align: center;
}

.clues-panel {
  display: flex;
  flex-direction: column;
  padding: clamp(18px, 2vw, 24px);
  margin-top: 4px;
}

.clues-panel__head h2 {
  margin: 0.3rem 0 0.45rem;
  font-size: 1.6rem;
  line-height: 1.1;
}

.clues-panel__head p:last-child {
  margin: 0;
  color: var(--ink-soft);
}

.clue-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.clue-item {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  appearance: none;
  text-align: left;
  border: 1px solid rgba(32, 36, 45, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  -webkit-tap-highlight-color: transparent;
}

.clue-item:hover {
  transform: translateY(-1px);
  border-color: rgba(173, 28, 66, 0.18);
}

.clue-item.is-active {
  border-color: rgba(173, 28, 66, 0.3);
  background: rgba(255, 245, 247, 0.92);
  box-shadow: 0 16px 28px rgba(173, 28, 66, 0.08);
}

.clue-item.is-solved {
  border-color: rgba(47, 138, 89, 0.24);
}

.clue-item.is-revealed {
  border-style: dashed;
}

.clue-cell.is-solved {
  box-shadow: 0 12px 20px rgba(122, 18, 48, 0.14);
  filter: saturate(0.88);
}

.clue-item__head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
}

.clue-item__number {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
}

.clue-item__status {
  display: inline-flex;
  align-items: center;
  min-height: 1.9rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--ink-soft);
  background: rgba(32, 36, 45, 0.06);
}

.clue-item.is-solved .clue-item__status {
  color: var(--success);
  background: rgba(47, 138, 89, 0.1);
}

.clue-item__question {
  margin: 0;
  color: var(--ink);
  font-weight: 600;
}

.clue-item__meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 0.84rem;
  color: var(--ink-soft);
}

.mobile-bar {
  position: fixed;
  right: 12px;
  bottom: 12px;
  left: 12px;
  z-index: 30;
  display: none;
  gap: 10px;
  padding: 10px 10px calc(10px + env(safe-area-inset-bottom, 0px));
  border-radius: 22px;
  background: rgba(20, 24, 31, 0.88);
  box-shadow: 0 24px 48px rgba(18, 22, 28, 0.26);
  backdrop-filter: blur(18px);
}

.mobile-bar .button {
  flex: 1 1 0;
  min-height: 3.2rem;
  padding: 0.75rem 0.6rem;
  font-size: 0.95rem;
}

.clue-popup {
  --arrow-x: 50%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 45;
  width: min(360px, calc(100vw - 24px));
  padding: 16px 18px 18px;
  border-radius: 20px;
  border: 1px solid rgba(173, 28, 66, 0.18);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 24px 54px rgba(33, 25, 31, 0.2);
  opacity: 0;
  transform: translateY(6px) scale(0.98);
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.clue-popup::after {
  position: absolute;
  left: var(--arrow-x);
  width: 16px;
  height: 16px;
  content: "";
  background: rgba(255, 255, 255, 0.98);
  border-right: 1px solid rgba(173, 28, 66, 0.18);
  border-bottom: 1px solid rgba(173, 28, 66, 0.18);
  transform: translateX(-50%) rotate(45deg);
}

.clue-popup[data-placement="top"]::after {
  bottom: -9px;
}

.clue-popup[data-placement="bottom"]::after {
  top: -9px;
  transform: translateX(-50%) rotate(225deg);
}

.clue-popup[data-placement="sheet"] {
  width: calc(100vw - 20px);
  max-width: none;
  border-radius: 24px;
  padding: 16px 18px calc(18px + env(safe-area-inset-bottom, 0px));
}

.clue-popup[data-placement="sheet"]::after {
  display: none;
}

.clue-popup.is-open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.clue-popup__close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 999px;
  background: rgba(32, 36, 45, 0.08);
  color: var(--ink);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

.clue-popup__meta {
  margin: 0 2.2rem 0.5rem 0;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.clue-popup__text {
  margin: 0;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.45;
}

.toast {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 50;
  max-width: min(360px, calc(100vw - 32px));
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(32, 36, 45, 0.08);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 40px rgba(18, 22, 28, 0.16);
  color: var(--ink);
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.toast[data-tone="success"] {
  border-color: rgba(47, 138, 89, 0.2);
}

.toast[data-tone="error"] {
  border-color: rgba(217, 74, 103, 0.24);
}

.toast[data-tone="accent"] {
  border-color: rgba(173, 28, 66, 0.24);
}

@keyframes wobble {
  0% {
    transform: translateX(0);
  }

  25% {
    transform: translateX(-2px);
  }

  50% {
    transform: translateX(2px);
  }

  75% {
    transform: translateX(-1px);
  }

  100% {
    transform: translateX(0);
  }
}

@media (min-width: 980px) {
  .hero {
    grid-template-columns: minmax(0, 1.2fr) minmax(290px, 0.8fr);
    align-items: start;
  }

  .hero-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 979px) {
  .hero-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .app-shell {
    padding-bottom: calc(118px + env(safe-area-inset-bottom, 0px));
  }

  .desktop-actions {
    display: none;
  }

  .mobile-bar {
    display: flex;
  }

  .section-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .clue-list {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 720px) {
  :root {
    --gap: 3px;
  }

  .app-shell {
    padding: 14px 12px calc(112px + env(safe-area-inset-bottom, 0px));
  }

  .hero {
    gap: 18px;
    padding: 16px;
    border-radius: 24px;
  }

  .hero-brand {
    align-items: flex-start;
    gap: 14px;
  }

  .logo-badge {
    width: 88px;
    height: 88px;
    padding: 10px;
    border-radius: 20px;
  }

  .hero-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .stat-card {
    padding: 12px;
    border-radius: 16px;
  }

  .stat-card strong {
    font-size: 0.98rem;
  }

  .hero-title {
    font-size: clamp(1.55rem, 7vw, 2.1rem);
  }

  .hero-subtitle {
    font-size: 0.97rem;
  }

  .progress-head,
  .progress-strip,
  .current-clue__top,
  .current-clue__meta {
    align-items: flex-start;
  }

  .section-tabs {
    gap: 8px;
    padding: 10px;
    border-radius: 20px;
  }

  .section-tab {
    min-height: 56px;
    padding: 10px 12px;
    border-radius: 16px;
    font-size: 0.92rem;
  }

  .section-tab__badge {
    width: 1.8rem;
    height: 1.8rem;
  }

  .board-panel,
  .clues-panel {
    border-radius: 24px;
  }

  .board-panel {
    padding: 14px;
  }

  .progress-head h2 {
    font-size: 1.2rem;
  }

  .summary-chip,
  .direction-chip {
    min-height: 2rem;
    padding: 0.45rem 0.75rem;
  }

  .status-line {
    font-size: 0.9rem;
    border-radius: 16px;
  }

  .board-scroll {
    margin-top: 14px;
    padding: 10px 4px;
  }

  .current-clue__question {
    font-size: 1rem;
  }

  .clues-panel {
    padding: 16px;
  }

  .clue-item {
    border-radius: 16px;
    padding: 12px;
  }

  .mobile-bar {
    right: 10px;
    left: 10px;
    bottom: 10px;
    gap: 8px;
    padding-top: 8px;
    border-radius: 18px;
  }

  .mobile-bar .button {
    min-height: 3.35rem;
    padding: 0.8rem 0.55rem;
    font-size: 0.94rem;
  }
}

@media (max-width: 480px) {
  :root {
    --gap: 2px;
  }

  .section-tabs {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero {
    gap: 14px;
    padding: 14px;
  }

  .hero-brand {
    align-items: center;
  }

  .logo-badge {
    width: 72px;
    height: 72px;
    border-radius: 18px;
  }

  .hero-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stat-card:last-child {
    grid-column: 1 / -1;
  }

  .section-tab {
    min-height: 52px;
  }

  .mobile-bar .button {
    font-size: 0.92rem;
  }

  .toast {
    top: 14px;
    right: 14px;
    left: 14px;
    max-width: none;
  }

  .clue-popup {
    width: calc(100vw - 20px);
    padding: 14px 16px 16px;
  }

  .clue-popup[data-placement="sheet"] {
    width: calc(100vw - 16px);
    left: 8px !important;
    bottom: calc(80px + env(safe-area-inset-bottom, 0px)) !important;
    border-radius: 22px;
  }
}
