:root {
  --bg: #000000;
  --panel: #000000;
  --panel-border: #333333;
  --stage: #0a1424;
  --orange: #ff5c00;
  --green: #b7d200;
  --text: #ffffff;
  --muted: #ffffff;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  background: linear-gradient(
    0deg,
    #0c0b33 0%,
    #0b0a31 26%,
    #050415 72%,
    #000000 100%
  );
  color: var(--text);
  font-family: "Roboto Condensed", sans-serif;
  font-weight: 800;
  touch-action: manipulation;
}

button,
canvas {
  touch-action: manipulation;
}

body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 16px;
}

.app {
  position: relative;
  display: flex;
  gap: 20px;
  align-items: stretch;
  max-width: 100%;
}

.mute-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 28px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  background: transparent;
  color: rgba(255, 255, 255, 0.55);
  font-family: "Roboto Condensed", sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 5px 14px;
  cursor: pointer;
}

.mute-icon {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  fill: currentColor;
  opacity: 0.9;
}

.mute-slash {
  display: none;
}

.mute-btn:hover {
  color: rgba(255, 255, 255, 0.8);
  border-color: rgba(255, 255, 255, 0.55);
  background: transparent;
}

.mute-btn[aria-pressed="true"] {
  border-color: rgba(255, 255, 255, 0.25);
  color: rgba(255, 255, 255, 0.4);
}

.mute-btn[aria-pressed="true"] .mute-slash {
  display: block;
}

/* Full-viewport landing — hide chrome, fill screen */
.app.landing-mode .panel {
  display: none;
}

.app.landing-mode .touch {
  display: none !important;
}

.app.landing-mode {
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: none;
  height: auto; /* inset:0 owns size — avoid 100dvh bottom clip */
  margin: 0;
  gap: 0;
  justify-content: stretch;
  align-items: stretch;
  overflow: hidden;
  z-index: 20;
}

.app.landing-mode .play {
  width: 100%;
  max-width: none;
  height: 100%;
  flex: 1 1 auto;
  gap: 0;
}

.app.landing-mode .stage {
  width: 100%;
  height: 100%;
  max-width: none;
  flex: 1 1 auto;
  border-radius: 0;
  box-shadow: none;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.app.landing-mode .stage canvas {
  width: 100% !important;
  height: auto !important;
  max-height: 100%;
  max-width: 100%;
  text-align: center;
  box-shadow: none;
}

.panel > * {
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

body:has(.app.landing-mode) {
  padding: 0;
  overflow: hidden;
  align-items: stretch;
  justify-content: stretch;
}

.panel {
  width: 240px;
  flex: 0 0 240px;
  align-self: stretch;
  height: 100%;
  min-height: 0;
  background: var(--panel);
  border: 5px solid var(--panel-border);
  border-radius: 28px;
  padding: 30px 20px;
  display: grid;
  grid-template-rows: auto 1.6fr 1fr;
  align-items: stretch;
  justify-items: stretch;
  overflow: hidden;
  box-sizing: border-box;
  text-align: center;
  box-shadow: none;
}

.panel > * {
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.stats {
  display: contents;
}

.stat {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  margin-inline: auto;
}

.stats .stat:first-child {
  align-self: start;
  justify-content: flex-start;
}

.stats .stat:nth-child(2) {
  align-self: center;
  justify-content: center;
}

.tag {
  align-self: center;
  font-family: "Roboto Condensed", sans-serif;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  padding: 7px 14px;
  border-radius: 2px;
  margin-bottom: 14px;
  line-height: 1;
}

.stat .tag {
  display: inline-block;
  margin-inline: auto;
}

.tag-orange { background: var(--orange); color: #fff; }
.tag-green { background: var(--green); color: #000; }

.score {
  font-family: "Roboto Condensed", sans-serif;
  font-size: 56px;
  font-weight: 800;
  letter-spacing: 0.02em;
  margin: 0;
  line-height: 1;
  color: #fff;
}

.next {
  height: auto;
  min-height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0;
}

.next img {
  max-width: 140px;
  max-height: 110px;
  background: transparent;
  image-rendering: auto;
}

.spacer { display: none; }

.tip-section {
  width: 100%;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  align-self: end;
  margin-top: 0;
  margin-inline: auto;
}

.tip-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 12px 0 0;
  width: 100%;
}

.tip-count {
  font-family: "Roboto Condensed", sans-serif;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--green);
  min-width: 4.5rem;
  text-align: center;
}

.tip-viewport {
  width: 100%;
  min-width: 0;
  overflow: hidden;
  contain: inline-size;
}

.tip-track {
  display: flex;
  align-items: flex-start;
  width: 100%;
  transition: transform 0.28s ease;
  will-change: transform;
}

.tip-slide {
  flex: 0 0 100%;
  width: 100%;
  min-width: 0;
  padding: 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.tip-slide .tip-body {
  margin: 0;
  font-family: "Roboto Condensed", sans-serif;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.35;
  color: var(--muted);
  text-align: center;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.tip-slide:not(.locked) .tip-body {
  min-height: 5.5em;
  display: block;
}

.tip-body sup,
.game-over-card sup {
  font-size: 0.55em;
  font-weight: 400;
  vertical-align: super;
  line-height: 0;
}

.tip-slide.locked .tip-body {
  color: #888;
  min-height: 0;
  gap: 0;
}

.tip-lock-icon {
  width: 36px;
  height: 36px;
  display: block;
}

.tip-slide .tip-meta {
  margin: 10px 0 0;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #aaa;
  text-align: center;
}

.tip-slide.locked .tip-meta {
  color: #aaa;
  margin-top: 4px;
}

.tip-slide:not(.locked) .tip-meta {
  display: none;
}

.tip-arrow {
  flex: 0 0 auto;
  width: 32px;
  height: 28px;
  border: 2px solid #333;
  border-radius: 6px;
  background: #111;
  color: #fff;
  font-family: "Roboto Condensed", sans-serif;
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}

.tip-arrow:disabled {
  opacity: 0.3;
  cursor: default;
}

.overlay-btn {
  margin-top: 8px;
  border: 0;
  border-radius: 6px;
  background: var(--green);
  color: #000;
  font-family: "Roboto Condensed", sans-serif;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 10px 18px;
  cursor: pointer;
  pointer-events: auto;
}

.overlay-btn.hidden {
  display: none;
}

.overlay #overlay-sub {
  max-width: 28rem;
  padding: 0 12px;
  white-space: pre-wrap;
}

.overlay.celebration {
  gap: 18px;
  padding: 24px 20px;
}

.overlay.celebration #overlay-title {
  font-size: clamp(32px, 5vw, 48px);
  letter-spacing: 0.08em;
  line-height: 1.1;
  text-wrap: balance;
}

.overlay.celebration #overlay-sub {
  max-width: min(42rem, 92%);
  font-size: clamp(18px, 2.4vw, 24px);
  line-height: 1.45;
  text-wrap: pretty;
}

.overlay.celebration .overlay-tip-meta {
  margin: 0 0 12px;
  font-weight: 800;
}

.overlay.celebration .overlay-tip-body {
  margin: 0;
  font-weight: 400;
}

.overlay.celebration .overlay-btn {
  margin-top: 12px;
  font-size: clamp(16px, 2vw, 20px);
  padding: 12px 28px;
}

.stage {
  position: relative;
  background: var(--stage);
  border-radius: 4px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
  flex: 0 0 auto;
}

canvas {
  display: block;
  width: 320px;
  height: 640px;
}

.landing {
  position: absolute;
  inset: 0;
  z-index: 5;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  min-height: 100%;
  display: grid;
  grid-template-rows: 1fr auto;
  align-items: stretch;
  justify-items: center;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.72) 0%,
    rgba(5, 4, 21, 0.78) 45%,
    rgba(10, 10, 36, 0.82) 100%
  );
  overflow: hidden;
  text-align: center;
  border-radius: 0;
}

.landing.hidden {
  display: none;
}

.game-over {
  position: absolute;
  inset: 0;
  z-index: 3;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 14px;
  padding: clamp(16px, 3%, 32px) clamp(16px, 4%, 40px);
  text-align: center;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.72) 0%,
    rgba(5, 4, 21, 0.78) 45%,
    rgba(10, 10, 36, 0.82) 100%
  );
  pointer-events: auto;
}

.game-over.hidden {
  display: none;
}

.game-over-title {
  margin: 0;
  font-family: "Silkscreen", sans-serif;
  font-size: clamp(48px, 9vw, 88px);
  font-weight: 400;
  letter-spacing: 0.06em;
  color: #fff;
}

.game-over > .play-now {
  align-self: center;
  margin: 0;
}

.game-over-tips {
  width: 100%;
  flex: 0 1 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
  margin-top: clamp(20px, 3vh, 36px);
}

.game-over-tips-heading {
  margin: 0;
  font-family: "Roboto Condensed", sans-serif;
  font-size: clamp(16px, 2.2vw, 24px);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.35;
}

.game-over-carousel {
  display: flex;
  align-items: stretch;
  gap: 14px;
  width: 100%;
}

.game-over-cards {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(12px, 2%, 20px);
  min-width: 0;
}

.game-over-card {
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 10px;
  background: #000;
  padding: clamp(16px, 2%, 22px);
  min-height: 0;
  text-align: left;
  display: flex;
  align-items: center;
}

.game-over-card p {
  margin: 0;
  font-family: "Roboto Condensed", sans-serif;
  font-size: clamp(15px, 1.8vw, 20px);
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0;
}

.game-over-arrow {
  flex: 0 0 auto;
  align-self: center;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 8px 4px;
  line-height: 0;
}

.game-over-arrow-icon {
  display: block;
  width: clamp(30px, 3.8vw, 44px);
  height: auto;
  image-rendering: pixelated;
}

.game-over-arrow-icon-next {
  transform: scaleX(-1);
}

.game-over-arrow:disabled {
  opacity: 0.3;
  cursor: default;
}

@media (max-width: 520px) {
  .game-over-cards {
    grid-template-columns: 1fr;
  }

  .game-over-card:nth-child(2) {
    display: none;
  }
}

.landing-copy {
  position: relative;
  z-index: 1;
  grid-row: 1;
  align-self: center;
  justify-self: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 16px;
  margin: 0;
  pointer-events: none;
}

.landing-eyebrow {
  margin: 0;
  font-family: "Roboto Condensed", sans-serif;
  font-size: clamp(14px, 2.4vw, 20px);
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.85);
}

.landing-title {
  margin: 0;
  font-family: "Silkscreen", sans-serif;
  font-size: clamp(56px, 8vw, 120px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: 0.02em;
  color: #fff;
  text-transform: uppercase;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.9);
}

.landing-actions {
  pointer-events: auto;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 14px;
}

.play-now {
  border: 0;
  border-radius: 999px;
  background: #c5d800;
  color: #0a0a20;
  font-family: "Roboto Condensed", sans-serif;
  font-size: clamp(15px, 2vw, 18px);
  font-weight: 800;
  letter-spacing: 0.02em;
  padding: 10px 28px;
  cursor: pointer;
}

.play-now:hover {
  filter: brightness(1.05);
}

.how-to-play {
  border: 2px solid #fff;
  border-radius: 999px;
  background: transparent;
  color: #fff;
  font-family: "Roboto Condensed", sans-serif;
  font-size: clamp(15px, 2vw, 18px);
  font-weight: 800;
  letter-spacing: 0.02em;
  padding: 8px 26px;
  cursor: pointer;
}

.how-to-play:hover {
  background: rgba(255, 255, 255, 0.08);
}

.how-panel {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(20px, 3vh, 36px);
  padding: clamp(24px, 4vh, 40px) clamp(20px, 3vw, 32px) clamp(28px, 4vh, 44px);
  background: linear-gradient(180deg, #050415 0%, #0a0a24 55%, #000 100%);
  text-align: center;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.how-panel.hidden {
  display: none;
}

.how-title {
  margin: 0;
  flex: 0 0 auto;
  font-family: "Roboto Condensed", sans-serif;
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #fff;
}

.how-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 20px);
  width: 100%;
  max-width: min(1280px, 94%);
  flex: 0 1 auto;
  min-height: 0;
}

.how-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
  padding: clamp(24px, 3vh, 32px) clamp(20px, 2.5vw, 28px) clamp(20px, 2.5vh, 28px);
  min-height: clamp(260px, 38vh, 340px);
  background: #000;
  border: 2px solid #333;
  border-radius: 16px;
  min-width: 0;
  text-align: left;
}

.how-card-title {
  margin: 0;
  font-family: "Roboto Condensed", sans-serif;
  font-size: clamp(26px, 3.4vw, 36px);
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #fff;
  text-align: left;
}

.how-card-text {
  margin: 0;
  font-family: "Roboto Condensed", sans-serif;
  font-size: clamp(15px, 1.9vw, 20px);
  font-weight: 400;
  font-synthesis: none;
  line-height: 1.45;
  color: #fff;
  text-align: left;
  max-width: none;
}

.how-panel .how-card-text {
  font-weight: 400;
}

.how-viz {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: auto;
  min-height: clamp(88px, 12vh, 112px);
  width: 100%;
  align-self: center;
}

.how-piece {
  display: block;
  height: clamp(56px, 9vw, 92px);
  width: auto;
  max-width: 42%;
  object-fit: contain;
  image-rendering: pixelated;
}

.how-piece-rot {
  transform: rotate(90deg);
}

.how-arrow {
  display: block;
  width: clamp(28px, 4vw, 40px);
  height: auto;
  flex: 0 0 auto;
}

/* arrow.svg tips left by default */
.how-arrow-flip {
  transform: scaleX(-1);
}

.how-arrow-down {
  transform: rotate(-90deg);
  width: clamp(24px, 3.5vw, 34px);
}

.how-viz-drop {
  flex-direction: column;
  gap: 6px;
}

.how-piece-drop {
  height: clamp(44px, 6.5vw, 64px);
  max-width: 44%;
}

.how-drop-pile {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 0;
  width: auto;
}

.how-drop-pile img {
  display: block;
  height: clamp(44px, 6.5vw, 64px);
  width: auto;
  object-fit: contain;
  image-rendering: pixelated;
}

.how-drop-t {
  max-width: 56px;
}

.how-drop-o {
  max-width: 48px;
}

.how-panel .play-now {
  flex: 0 0 auto;
  margin-top: 8px;
  font-size: clamp(16px, 2.2vw, 20px);
  padding: 12px 32px;
}

@media (min-width: 800px) {
  .how-panel {
    justify-content: center;
  }
}

@media (max-width: 799px) {
  .how-panel {
    position: fixed;
    inset: 0;
    z-index: 40;
    padding: 20px 16px calc(20px + env(safe-area-inset-bottom, 0px));
    gap: 16px;
  }

  .how-title {
    font-size: clamp(30px, 7.5vw, 42px);
  }

  .how-cards {
    grid-template-columns: 1fr;
    max-width: 420px;
    width: 100%;
    gap: 12px;
    flex: 0 0 auto;
  }

  .how-card {
    padding: 18px 18px 16px;
    gap: 12px;
    min-height: auto;
  }

  .how-card-title {
    font-size: 24px;
  }

  .how-card-text {
    font-size: 15px;
    font-weight: 400;
    line-height: 1.45;
  }

  .how-viz {
    min-height: 72px;
  }

  .how-piece {
    height: 52px;
    max-width: 40%;
  }

  .how-piece-drop {
    height: 44px;
  }

  .how-drop-pile img {
    height: 44px;
  }

  .how-panel .play-now {
    margin-top: 8px;
    margin-bottom: 8px;
  }

  .app.landing-mode {
    max-width: none;
  }

  .app.landing-mode .play {
    max-width: none;
  }
}

.landing-stack {
  grid-row: 2;
  position: relative;
  left: auto;
  right: auto;
  bottom: auto;
  display: flex;
  flex-direction: column;
  width: 100%;
  pointer-events: none;
  padding-bottom: max(2px, env(safe-area-inset-bottom, 0px));
  box-sizing: border-box;
}

.landing-stack-row {
  display: flex;
  flex: 0 0 var(--landing-candy-size, 48px);
  height: var(--landing-candy-size, 48px);
  align-items: flex-end;
  justify-content: center;
  gap: calc(var(--landing-candy-size, 48px) * 0.35);
  min-height: 0;
}

.landing-cluster {
  display: flex;
  flex: 0 0 auto;
  gap: 0;
}

.landing-cell {
  width: var(--landing-candy-size, 48px);
  height: var(--landing-candy-size, 48px);
  flex: 0 0 auto;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.landing-cell img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  image-rendering: pixelated;
}

.overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: rgba(5, 10, 20, 0.72);
  text-align: center;
  padding: 16px;
}

.overlay.hidden { display: none; }

#overlay-title {
  font-family: "Roboto Condensed", sans-serif;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

#overlay-sub {
  font-family: "Roboto Condensed", sans-serif;
  font-size: 15px;
  font-weight: 800;
  color: var(--muted);
}

.help {
  display: none;
}

.play {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1 1 auto;
}

.touch {
  display: flex;
  margin-top: 0;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
  max-width: 100%;
}

.touch button {
  min-width: 56px;
  height: 48px;
  border: 0;
  border-radius: 8px;
  background: #1a2438;
  color: #fff;
  font-family: "Roboto Condensed", sans-serif;
  font-size: 18px;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.15s ease, filter 0.15s ease;
}

.touch button:hover {
  background: #243352;
  filter: brightness(1.12);
}

.touch button:active {
  background: #152033;
  filter: brightness(0.95);
}

/* Desktop: sidebar + wide landscape board */
@media (min-width: 800px) {
  body {
    padding: 20px 24px;
    align-items: stretch;
    justify-content: center;
  }

  .app {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    align-items: stretch;
    min-width: 0;
    overflow: hidden;
  }

  .app.landing-mode {
    max-width: none;
    align-self: stretch;
  }

  .panel {
    min-height: 0;
  }

  .stage {
    flex: 0 1 auto;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    box-shadow: none;
  }

  .stage canvas {
    max-width: 100%;
    max-height: 100%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
    background: var(--stage);
  }

  .touch {
    display: flex;
  }
}

/* Mobile: board width = panel width; compact chrome; vertically centered */
@media (max-width: 799px) {
  body {
    padding: 8px 12px;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
    overflow-y: auto;
    min-height: 100vh;
    min-height: 100dvh;
  }

  body:has(.app.landing-mode) {
    padding: 0;
    overflow: hidden;
  }

  .app {
    flex-direction: column-reverse;
    align-items: stretch;
    width: 100%;
    max-width: 420px;
    gap: 8px;
  }

  .app.landing-mode {
    flex-direction: row;
    max-width: none;
    width: 100%;
    height: auto;
  }

  .play {
    width: 100%;
    gap: 8px;
  }

  .panel {
    width: 100%;
    flex: none;
    height: auto;
    min-height: clamp(280px, 38vh, 360px);
    padding: 30px 20px;
    border-radius: 20px;
    border-width: 5px;
    grid-template-rows: auto 1fr;
  }

  .stage {
    width: 100%;
    box-shadow: none;
    background: transparent;
  }

  .stage canvas {
    display: block;
    width: 100% !important;
    height: auto !important;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
    background: var(--stage);
    border-radius: 4px;
  }

  .stats {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 12px;
    width: 100%;
  }

  .stat {
    flex: 1;
    min-width: 0;
    width: auto;
    max-width: none;
    margin-inline: 0;
    justify-content: flex-start;
  }

  .stats .stat:first-child,
  .stats .stat:nth-child(2) {
    align-self: stretch;
    justify-content: flex-start;
  }

  .stat .tag,
  .tip-section .tag {
    display: block;
    width: 100%;
    box-sizing: border-box;
    font-size: 16px;
    padding: 8px 10px;
    margin-bottom: 10px;
    margin-inline: 0;
    letter-spacing: 0.06em;
    text-align: center;
  }

  .score {
    margin: 0 auto;
    width: 100%;
    text-align: center;
    font-size: clamp(40px, 11vw, 56px);
  }

  .next {
    width: 100%;
    height: auto;
    min-height: 72px;
    margin: 0 auto;
    justify-content: center;
  }

  .next img {
    max-width: 100%;
    max-height: 72px;
  }

  .tip-section {
    margin-top: 12px;
    align-items: center;
    justify-content: flex-start;
    align-self: stretch;
    min-height: 0;
  }

  .tip-slide .tip-body {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.45;
  }

  .tip-slide:not(.locked) .tip-body {
    min-height: 4.5em;
  }

  .tip-slide.locked .tip-body {
    min-height: 0;
    padding: 0 4px;
  }

  .tip-slide .tip-meta {
    font-size: 14px;
  }

  .touch {
    display: flex;
    margin-top: 0;
    max-width: 100%;
  }

  .touch button {
    min-width: 48px;
    height: 40px;
    font-size: 16px;
  }
}
