@font-face {
  font-family: "Hurme";
  src: url("assets/fonts/HurmeGeometricSansNoFour-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Hurme";
  src: url("assets/fonts/HurmeGeometricSansNoFour-Bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Hurme";
  src: url("assets/fonts/HurmeGeometricSansNoFour-Black.otf") format("opentype");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --quake-dark-blue: #320a4b;
  --quake-dark-purple: #640a55;
  --quake-mid-purple: #8c1e78;
  --quake-pink: #d2007d;
  --quake-white: #ffffff;
  --ink: #000000;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--quake-dark-blue);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--quake-white);
  background: var(--quake-dark-blue);
  font-family: "Hurme", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior: none;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

button,
a {
  font: inherit;
}

button {
  -webkit-tap-highlight-color: transparent;
}

.app-shell {
  position: relative;
  isolation: isolate;
  width: min(100%, 460px);
  min-height: 100svh;
  margin: 0 auto;
  padding: calc(12px + var(--safe-top)) 16px calc(12px + var(--safe-bottom));
  overflow-x: hidden;
  overflow-y: auto;
  background:
    radial-gradient(circle at 50% 32%, rgba(140, 30, 120, 0.24), transparent 34%),
    var(--quake-dark-blue);
}

.brand-fragment {
  position: absolute;
  z-index: 0;
  top: 24%;
  right: -42%;
  width: 108%;
  opacity: 0.042;
  pointer-events: none;
  transform: rotate(-7deg);
}

.brand-header {
  position: relative;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 28px;
  gap: 12px;
}

.quake-logo {
  display: block;
  width: 112px;
  height: auto;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}

.round-rule {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  opacity: 0.74;
  white-space: nowrap;
}

.round-rule strong {
  color: var(--quake-white);
  font-weight: 900;
}

.sound-toggle {
  min-width: 56px;
  min-height: 44px;
  padding: 5px 7px;
  color: var(--quake-white);
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: transparent;
  font-size: 0.56rem;
  font-weight: 900;
  letter-spacing: 0.07em;
  white-space: nowrap;
  cursor: pointer;
  touch-action: manipulation;
  clip-path: polygon(9% 0, 100% 0, 92% 100%, 0 100%, 0 23%);
}

.sound-toggle[aria-pressed="false"] {
  opacity: 0.58;
}

.sound-toggle:focus-visible {
  outline: 3px solid var(--quake-white);
  outline-offset: 2px;
}

.mission {
  position: relative;
  z-index: 6;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: flex-end;
  gap: 12px;
  margin-top: 8px;
}

.mission-copy {
  min-width: 0;
}

.mission .eyebrow {
  margin-bottom: 7px;
}

.eyebrow {
  margin: 0 0 2px;
  color: rgba(255, 255, 255, 0.7);
  font-size: clamp(0.58rem, 2.4vw, 0.68rem);
  font-weight: 700;
  letter-spacing: 0.14em;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: clamp(2rem, 10.4vw, 3rem);
  font-weight: 900;
  letter-spacing: -0.045em;
  line-height: 0.88;
  white-space: nowrap;
}

h1 span {
  color: var(--quake-white);
}

.timer {
  position: relative;
  min-width: clamp(96px, 26.7vw, 104px);
  padding: 8px 12px 9px;
  text-align: right;
  background: var(--quake-dark-purple);
  clip-path: polygon(10% 0, 100% 0, 100% 78%, 88% 100%, 0 100%, 0 20%);
}

.timer::before {
  content: "";
  position: absolute;
  inset: 3px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  clip-path: inherit;
}

.timer-label {
  position: relative;
  display: block;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  opacity: 0.7;
}

.timer strong {
  position: relative;
  display: block;
  font-size: clamp(1.5rem, 7.4vw, 1.8rem);
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.timer.is-urgent {
  background: var(--quake-mid-purple);
}

.timer.is-penalty {
  background: var(--quake-pink);
  animation: timer-penalty-pulse 680ms cubic-bezier(0.2, 0.85, 0.35, 1) both;
}

.progress-panel {
  position: relative;
  z-index: 6;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: end;
  gap: 14px;
  margin-top: 8px;
}

.progress-copy {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.progress-copy > span {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  opacity: 0.7;
}

.progress-copy strong {
  font-size: 0.92rem;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.progress-track {
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  gap: 3px;
  padding-bottom: 4px;
}

.progress-segment {
  height: 5px;
  background: rgba(255, 255, 255, 0.18);
  transform: skewX(-20deg);
  transition: background-color 180ms ease, transform 180ms ease;
}

.progress-segment.is-filled {
  background: var(--quake-white);
  transform: skewX(-20deg) scaleY(1.45);
  animation: progress-charge 240ms cubic-bezier(0.2, 1.25, 0.42, 1) both;
}

.game-stage {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  min-height: clamp(188px, 27svh, 222px);
  margin: 2px -16px 0;
  overflow: hidden;
}

.seismic-line {
  position: absolute;
  z-index: 1;
  inset: 47% 0 auto;
  height: 62px;
  opacity: 0.38;
}

.seismic-line svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.seismic-line path {
  fill: none;
  stroke: var(--quake-mid-purple);
  stroke-width: 5;
  vector-effect: non-scaling-stroke;
}

.backpack {
  position: relative;
  z-index: 2;
  width: clamp(136px, 44vw, 174px);
  height: auto;
  aspect-ratio: 4 / 5;
  margin-top: 0;
  filter: drop-shadow(0 17px 20px rgba(10, 0, 14, 0.32));
}

.backpack::before,
.backpack::after {
  content: "";
  position: absolute;
  z-index: 1;
  top: 47%;
  bottom: 13%;
  width: 17%;
  background: linear-gradient(180deg, var(--quake-mid-purple), var(--quake-dark-purple));
}

.backpack::before {
  left: 0;
  clip-path: polygon(18% 6%, 100% 0, 100% 92%, 0 100%, 0 22%);
}

.backpack::after {
  right: 0;
  clip-path: polygon(0 0, 82% 6%, 100% 22%, 100% 100%, 0 92%);
}

.backpack-handle {
  position: absolute;
  z-index: 0;
  top: 0;
  left: 50%;
  width: 46%;
  height: 21%;
  border: 7px solid var(--quake-mid-purple);
  border-bottom: 0;
  transform: translateX(-50%);
  clip-path: polygon(10% 0, 90% 0, 100% 100%, 78% 100%, 71% 31%, 29% 31%, 22% 100%, 0 100%);
}

.backpack-straps {
  position: absolute;
  z-index: 0;
  inset: 22% 9% -3%;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
}

.backpack-straps span {
  width: 22%;
  border: 6px solid rgba(140, 30, 120, 0.82);
  border-top: 0;
  clip-path: polygon(14% 0, 100% 4%, 82% 100%, 0 96%);
}

.backpack-body {
  position: absolute;
  z-index: 2;
  inset: 12% 5% 2%;
  overflow: hidden;
  background: linear-gradient(145deg, #971f80 0%, var(--quake-mid-purple) 42%, var(--quake-dark-purple) 100%);
  clip-path: polygon(20% 0, 80% 0, 94% 9%, 100% 23%, 98% 100%, 2% 100%, 0 23%, 6% 9%);
}

.backpack-body::after {
  content: "";
  position: absolute;
  inset: 5% 4%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  clip-path: polygon(18% 0, 82% 0, 100% 17%, 98% 100%, 2% 100%, 0 17%);
  pointer-events: none;
}

.backpack-opening {
  position: absolute;
  z-index: 3;
  top: 8%;
  right: 15%;
  left: 15%;
  height: 7%;
  min-height: 8px;
  background: rgba(0, 0, 0, 0.76);
  clip-path: polygon(4% 0, 96% 0, 100% 100%, 0 100%);
}

.backpack-opening::after {
  content: "";
  position: absolute;
  top: 25%;
  right: 9%;
  width: 10%;
  height: 50%;
  background: rgba(255, 255, 255, 0.78);
  transform: skewX(-18deg);
}

.bag-slots {
  position: absolute;
  z-index: 4;
  inset: 19% 16% 40%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 4px;
  place-items: center;
}

.bag-slot {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  color: transparent;
  border: 0;
}

.bag-slot.is-filled {
  color: var(--quake-white);
  border-color: transparent;
  animation: item-land 330ms cubic-bezier(0.2, 1.35, 0.55, 1);
}

.bag-slot svg {
  width: 88%;
  height: 88%;
}

.backpack-pocket {
  position: absolute;
  z-index: 3;
  right: 11%;
  bottom: 7%;
  left: 11%;
  height: 30%;
  background: linear-gradient(160deg, #711061, #4d0c53);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.12);
  clip-path: polygon(8% 0, 92% 0, 100% 16%, 96% 100%, 4% 100%, 0 16%);
}

.backpack-pocket::after {
  content: "";
  position: absolute;
  top: 16%;
  right: 24%;
  left: 15%;
  height: 3px;
  background: rgba(255, 255, 255, 0.42);
  transform: skewX(-20deg);
}

.backpack-pocket::before {
  content: "";
  position: absolute;
  top: 10%;
  right: 20%;
  width: 3px;
  height: 12px;
  background: var(--quake-white);
  opacity: 0.58;
  transform: rotate(14deg);
}

.backpack-pocket span {
  position: absolute;
  right: 57%;
  bottom: 18%;
  left: 14%;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  transform: skewX(-22deg);
}

.choices {
  position: relative;
  z-index: 5;
}

.choices-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 5px;
}

.choices-heading h2 {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 900;
  letter-spacing: 0.075em;
  white-space: nowrap;
}

.choices-heading span {
  font-size: 0.66rem;
  text-align: right;
  opacity: 0.72;
}

.item-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px 4px;
}

.item-button {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 74px;
  padding: 5px 2px 4px;
  place-items: center;
  align-content: center;
  color: var(--quake-white);
  border: 0;
  background: transparent;
  cursor: pointer;
  touch-action: manipulation;
}

.item-button:disabled,
.bonus-option:disabled {
  opacity: 1;
}

.item-button::before {
  content: "";
  position: absolute;
  inset: 1px 3px;
  z-index: -1;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.08);
  clip-path: polygon(12% 0, 100% 0, 89% 100%, 0 100%, 0 18%);
  transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.item-button:focus-visible::before {
  background: rgba(255, 255, 255, 0.16);
  transform: translateY(-2px);
}

.item-button:focus-visible {
  outline: 3px solid var(--quake-white);
  outline-offset: 2px;
}

.item-button:not(:disabled):active::before {
  border-color: rgba(255, 255, 255, 0.48);
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(2px) scale(0.97);
}

.item-button:not(:disabled):active svg {
  transform: scale(0.92);
}

.item-button svg {
  width: 43px;
  height: 43px;
  transition: transform 180ms ease, opacity 180ms ease;
}

.item-button .accent {
  fill: var(--quake-mid-purple);
  stroke: none;
}

.item-button .item-label {
  display: block;
  width: 100%;
  min-height: 2.2em;
  font-size: 0.69rem;
  font-weight: 700;
  line-height: 1.06;
  text-align: center;
  white-space: normal;
}

.item-button .item-label.is-stacked {
  font-size: 0.67rem;
  line-height: 1;
}

.item-label.is-stacked > span,
.item-label.is-stacked > small {
  display: block;
}

.item-label.is-stacked > small {
  margin-top: 2px;
  font-size: 0.9em;
  font-weight: 700;
  white-space: nowrap;
}

.item-state {
  position: absolute;
  right: 5px;
  bottom: 7px;
  left: 5px;
  display: none;
  min-height: 1.9em;
  place-items: center;
  color: var(--quake-white);
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0.035em;
  line-height: 1;
  text-align: center;
}

.item-button.is-packed {
  pointer-events: none;
}

.item-button.is-packed::before {
  border-color: rgba(255, 255, 255, 0.48);
  background: rgba(255, 255, 255, 0.14);
}

.item-button.is-packed svg {
  opacity: 0.52;
  transform: translateY(-7px) scale(0.82);
}

.item-button.is-packed .item-label,
.item-button.is-wrong .item-label {
  visibility: hidden;
}

.item-button.is-packed .item-state,
.item-button.is-wrong .item-state {
  display: grid;
}

.item-button.is-packed .item-state::before {
  content: "✓ NO KIT";
}

.item-button.is-wrong {
  color: var(--quake-white);
  animation: wrong-choice 420ms linear;
}

.item-button.is-wrong::before {
  border-color: var(--quake-pink);
  background: rgba(210, 0, 125, 0.4);
}

.item-button.is-wrong .item-state::before {
  content: "✕ FORA";
}

.status-message {
  position: relative;
  z-index: 6;
  display: flex;
  min-height: 80px;
  margin: 10px 0 12px;
  padding: 11px 14px;
  align-items: center;
  gap: 12px;
  color: var(--quake-dark-blue);
  background: var(--quake-white);
  line-height: 1.2;
  clip-path: polygon(2% 0, 100% 0, 98% 100%, 0 100%, 0 25%);
  transition: color 160ms ease, background-color 160ms ease;
}

.status-symbol {
  display: grid;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  place-items: center;
  color: var(--quake-white);
  background: var(--quake-dark-purple);
  font-size: 1.08rem;
  font-weight: 900;
}

.status-copy {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.status-copy strong,
.status-copy > span {
  display: block;
}

.status-copy strong {
  font-size: 1rem;
  font-weight: 900;
  line-height: 1.12;
}

.status-copy > span {
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.28;
  opacity: 1;
}

.status-message.is-positive,
.status-message.is-negative {
  color: var(--quake-dark-blue);
  background: var(--quake-white);
}

.status-copy > span {
  color: var(--quake-dark-purple);
}

.status-message.is-positive .status-symbol {
  color: var(--quake-white);
  background: var(--quake-dark-purple);
}

.status-message.is-negative .status-symbol {
  color: var(--quake-white);
  background: var(--quake-pink);
}

.status-message.is-updating {
  animation: status-confirm 260ms cubic-bezier(0.2, 0.9, 0.32, 1) both;
}

.overlay {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: none;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: calc(20px + var(--safe-top)) 22px calc(20px + var(--safe-bottom));
  overflow-x: hidden;
  overflow-y: auto;
  place-items: center;
  color: var(--quake-white);
  border: 0;
  background: rgba(50, 10, 75, 0.9);
  backdrop-filter: blur(8px);
}

.overlay[open],
.overlay.is-visible {
  display: grid;
}

.overlay::backdrop {
  background: rgba(50, 10, 75, 0.82);
}

.overlay-panel {
  position: relative;
  width: min(100%, 416px);
  padding: 34px 28px 28px;
  background: var(--quake-dark-purple);
  clip-path: polygon(7% 0, 100% 0, 100% 88%, 91% 100%, 0 100%, 0 9%);
  filter: drop-shadow(0 28px 34px rgba(0, 0, 0, 0.35));
}

.overlay-panel::before {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  clip-path: polygon(6% 0, 100% 0, 100% 87%, 90% 100%, 0 100%, 0 8%);
  pointer-events: none;
}

.overlay-logo {
  position: relative;
  display: block;
  width: 108px;
  height: auto;
  margin: 0 0 24px;
  opacity: 0.84;
}

.overlay-panel h2 {
  position: relative;
  max-width: 10ch;
  margin: 0 0 16px;
  font-size: clamp(2rem, 10vw, 3rem);
  font-weight: 900;
  letter-spacing: -0.045em;
  line-height: 0.9;
}

.overlay-panel h2:focus {
  outline: none;
}

.overlay-panel > p:not(.eyebrow):not(.microcopy) {
  position: relative;
  max-width: 31ch;
  margin-bottom: 22px;
  font-size: 0.93rem;
  line-height: 1.35;
}

.primary-action {
  position: relative;
  width: 100%;
  min-height: 54px;
  padding: 13px 20px;
  color: var(--quake-dark-blue);
  border: 0;
  background: var(--quake-white);
  clip-path: polygon(4% 0, 100% 0, 94% 100%, 0 100%, 0 24%);
  font-weight: 900;
  letter-spacing: 0.08em;
  cursor: pointer;
}

.primary-action:focus-visible {
  outline: 3px solid var(--quake-white);
  outline-offset: 4px;
}

.primary-action:disabled {
  cursor: wait;
  opacity: 0.58;
}

.primary-action:not(:disabled):active {
  transform: translateY(2px) scale(0.985);
}

.microcopy {
  position: relative;
  margin: 12px 0 0;
  font-size: 0.65rem;
  text-align: center;
  opacity: 0.58;
}

.mission-specs {
  position: relative;
  display: grid;
  margin: -4px 0 18px;
  padding: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid rgba(255, 255, 255, 0.34);
  border-bottom: 1px solid rgba(255, 255, 255, 0.34);
  list-style: none;
}

.mission-specs li {
  display: grid;
  min-width: 0;
  padding: 9px 7px 8px;
  gap: 2px;
  text-align: center;
}

.mission-specs li + li {
  border-left: 1px solid rgba(255, 255, 255, 0.24);
}

.mission-specs strong,
.mission-specs span {
  display: block;
}

.mission-specs strong {
  font-size: 1.05rem;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.mission-specs span {
  font-size: 0.54rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  opacity: 0.72;
}

.result-panel h2 {
  max-width: 12ch;
}

.result-score {
  position: relative;
  display: grid;
  margin: -6px 0 14px;
  padding: 10px 12px 11px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  color: var(--quake-dark-blue);
  background: var(--quake-white);
  clip-path: polygon(4% 0, 100% 0, 96% 100%, 0 100%, 0 24%);
}

.result-stat {
  display: grid;
  min-width: 0;
  padding: 2px 8px;
  place-items: center;
  gap: 3px;
  text-align: center;
}

.result-stat + .result-stat {
  border-left: 1px solid rgba(50, 10, 75, 0.22);
}

.result-stat strong {
  font-size: clamp(1.24rem, 6vw, 1.75rem);
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 1;
}

.result-stat span {
  color: var(--quake-dark-purple);
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  line-height: 1;
  opacity: 0.78;
}

.result-bonus {
  position: relative;
  display: none;
  margin: -3px 0 18px;
  padding-left: 13px;
  border-left: 4px solid var(--quake-white);
  font-size: 0.76rem;
  font-weight: 700;
}

.result-bonus.is-visible {
  display: block;
}

.missing-list {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px 12px;
  margin: -8px 0 20px;
  padding: 0;
  list-style: none;
  font-size: 0.72rem;
}

.missing-list li::before {
  content: "— ";
}

.source-link {
  position: relative;
  display: block;
  margin-top: 15px;
  color: var(--quake-white);
  font-size: 0.72rem;
  text-align: center;
  text-underline-offset: 3px;
}

.bonus-panel .bonus-heading {
  max-width: none;
  margin-bottom: 10px;
  font-size: clamp(2.55rem, 12vw, 3.2rem);
  line-height: 0.88;
  animation: bonus-heading-reveal 300ms cubic-bezier(0.2, 0.82, 0.25, 1) both;
}

.overlay-panel.bonus-panel > p.bonus-score {
  position: relative;
  max-width: none;
  margin: 0 0 9px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.025em;
  line-height: 1.2;
  opacity: 0.76;
}

.overlay-panel.bonus-panel > p.bonus-bridge {
  position: relative;
  max-width: 33ch;
  margin: 0 0 16px;
  font-size: 0.91rem;
  line-height: 1.3;
}

.overlay-panel.bonus-panel > p.bonus-topic {
  position: relative;
  display: flex;
  max-width: none;
  margin: 0 0 8px;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 3px 8px;
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.15;
}

.bonus-topic span {
  opacity: 0.68;
}

.bonus-topic strong {
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.075em;
}

.overlay-panel.bonus-panel > p.bonus-question {
  position: relative;
  max-width: 31ch;
  margin: 0 0 11px;
  font-size: 0.95rem;
  font-weight: 900;
  line-height: 1.22;
}

.bonus-options {
  position: relative;
  display: grid;
  gap: 7px;
}

.bonus-option {
  min-height: 46px;
  padding: 9px 13px;
  color: var(--quake-white);
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(50, 10, 75, 0.82);
  font-weight: 900;
  text-align: left;
  cursor: pointer;
  touch-action: manipulation;
  clip-path: polygon(3% 0, 100% 0, 97% 100%, 0 100%, 0 28%);
}

.bonus-option:focus-visible,
.text-action:focus-visible {
  outline: 3px solid var(--quake-white);
  outline-offset: 3px;
}

.bonus-option.is-correct {
  color: var(--quake-dark-blue);
  background: var(--quake-white);
}

.bonus-option.is-wrong {
  border-color: var(--quake-pink);
  background: var(--quake-pink);
}

.bonus-feedback {
  position: relative;
  min-height: 2.4em;
  margin: 10px 0 2px;
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1.2;
}

.text-action {
  position: relative;
  display: flex;
  min-height: 44px;
  margin: 7px auto 0;
  padding: 7px 10px;
  align-items: center;
  justify-content: center;
  color: var(--quake-white);
  border: 1px solid rgba(255, 255, 255, 0.42);
  background: transparent;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  cursor: pointer;
  clip-path: polygon(4% 0, 100% 0, 96% 100%, 0 100%, 0 26%);
}

.text-action.is-result-action {
  color: var(--quake-dark-blue);
  background: var(--quake-white);
  font-weight: 900;
}

.bonus-option:not(:disabled):active,
.text-action:not(:disabled):active {
  transform: translateY(2px) scale(0.99);
}

.flying-item,
.rejected-item {
  position: fixed;
  z-index: 4;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: var(--quake-white);
  pointer-events: none;
  filter: drop-shadow(0 8px 8px rgba(0, 0, 0, 0.42));
  will-change: transform, opacity;
}

.flying-item svg,
.rejected-item svg {
  width: 100%;
  height: 100%;
}

.flying-item .accent,
.rejected-item .accent {
  fill: var(--quake-mid-purple);
  stroke: none;
}

.flying-item {
  animation: fly-to-bag 480ms cubic-bezier(0.24, 0.82, 0.32, 1) both;
}

.rejected-item {
  color: var(--quake-white);
  animation: reject-from-bag 620ms cubic-bezier(0.25, 0.72, 0.32, 1) both;
}

.is-tremor .backpack {
  animation: stage-tremor 180ms linear;
}

.app-shell.is-earthquake {
  animation: emergency-quake 2.05s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

.app-shell.is-earthquake::after {
  content: "";
  position: fixed;
  z-index: 18;
  inset: 0;
  background: rgba(210, 0, 125, 0.16);
  pointer-events: none;
  animation: earthquake-flash 2.05s ease-out both;
}

.app-shell.is-earthquake .seismic-line {
  animation: seismic-alert 2.05s ease-out both;
}

.screen-fracture {
  position: fixed;
  z-index: 19;
  inset: 0;
  display: block;
  width: min(100%, 460px);
  margin-inline: auto;
  overflow: hidden;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.screen-fracture.is-active {
  visibility: visible;
  animation: fracture-stage 2.05s linear both;
}

.fracture-plane {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.32);
  opacity: 0;
  will-change: transform, opacity;
}

.fracture-plane-left {
  clip-path: polygon(0 0, 61% 0, 56% 9%, 61% 18%, 50% 28%, 55% 38%, 44% 48%, 49% 58%, 37% 69%, 42% 78%, 31% 90%, 34% 100%, 0 100%);
}

.fracture-plane-right {
  clip-path: polygon(61% 0, 100% 0, 100% 100%, 34% 100%, 31% 90%, 42% 78%, 37% 69%, 49% 58%, 44% 48%, 55% 38%, 50% 28%, 61% 18%, 56% 9%);
}

.screen-fracture.is-active .fracture-plane-left {
  animation: fracture-split-left 2.05s cubic-bezier(0.2, 0.76, 0.32, 1) both;
}

.screen-fracture.is-active .fracture-plane-right {
  animation: fracture-split-right 2.05s cubic-bezier(0.2, 0.76, 0.32, 1) both;
}

.screen-fracture svg {
  position: absolute;
  inset: -1%;
  width: 102%;
  height: 102%;
  overflow: visible;
  filter: drop-shadow(0 0 7px rgba(210, 0, 125, 0.95));
}

.fracture-gap,
.fracture-edge,
.fracture-branches path {
  fill: none;
  stroke-linecap: square;
  stroke-linejoin: miter;
  vector-effect: non-scaling-stroke;
}

.fracture-gap {
  stroke: rgba(0, 0, 0, 0.96);
  stroke-width: 13;
  stroke-dasharray: 130;
  stroke-dashoffset: 130;
}

.fracture-edge {
  stroke: rgba(255, 255, 255, 0.96);
  stroke-width: 2.1;
  stroke-dasharray: 130;
  stroke-dashoffset: 130;
}

.fracture-branches path {
  stroke: rgba(255, 255, 255, 0.82);
  stroke-width: 1.35;
  stroke-dasharray: 45;
  stroke-dashoffset: 45;
}

.screen-fracture.is-active .fracture-gap,
.screen-fracture.is-active .fracture-edge {
  animation: fracture-draw 430ms cubic-bezier(0.2, 0.82, 0.25, 1) 60ms forwards;
}

.screen-fracture.is-active .fracture-branches path {
  animation: fracture-draw 360ms cubic-bezier(0.2, 0.82, 0.25, 1) 230ms forwards;
}

@keyframes item-land {
  0% { opacity: 0; transform: translateY(-20px) scale(1.45) rotate(-8deg); }
  70% { transform: translateY(2px) scale(0.92) rotate(2deg); }
  100% { opacity: 1; transform: translateY(0) scale(1) rotate(0); }
}

@keyframes bonus-heading-reveal {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes progress-charge {
  0% { opacity: 0.35; transform: skewX(-20deg) scaleY(0.7); }
  65% { opacity: 1; transform: skewX(-20deg) scaleY(1.9); }
  100% { opacity: 1; transform: skewX(-20deg) scaleY(1.45); }
}

@keyframes status-confirm {
  0% { opacity: 0.7; transform: translateX(-5px); }
  58% { opacity: 1; transform: translateX(2px); }
  100% { opacity: 1; transform: translateX(0); }
}

@keyframes wrong-choice {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-5px) rotate(-2deg); }
  40% { transform: translateX(5px) rotate(2deg); }
  60% { transform: translateX(-4px) rotate(-1deg); }
  80% { transform: translateX(4px) rotate(1deg); }
}

@keyframes fly-to-bag {
  0% { opacity: 1; transform: translate(0, 0) scale(1); }
  38% { opacity: 1; transform: translate(calc(var(--fly-x) * 0.44), calc(var(--fly-y) * 0.32 - 24px)) scale(1.24) rotate(-6deg); }
  100% { opacity: 0.32; transform: translate(var(--fly-x), var(--fly-y)) scale(0.52) rotate(3deg); }
}

@keyframes reject-from-bag {
  0% { opacity: 1; transform: translate(0, 0) scale(1); }
  43% { opacity: 1; transform: translate(calc(var(--reject-x) * 0.64), calc(var(--reject-y) * 0.64)) scale(0.8) rotate(-7deg); }
  55% { opacity: 1; transform: translate(calc(var(--reject-x) * 0.58 - 7px), calc(var(--reject-y) * 0.58 + 5px)) scale(0.92) rotate(8deg); }
  100% { opacity: 0; transform: translate(0, 12px) scale(0.82) rotate(-3deg); }
}

@keyframes timer-penalty-pulse {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-3px); }
  40% { transform: translateX(3px); }
  60% { transform: translateX(-2px); }
  80% { transform: translateX(1px); }
}

@keyframes stage-tremor {
  0%, 100% { transform: translate(0); }
  25% { transform: translate(-2px, 1px); }
  50% { transform: translate(2px, -1px); }
  75% { transform: translate(-1px, -1px); }
}

@keyframes emergency-quake {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(0); }
  8% { transform: translate3d(-6px, 3px, 0) rotate(-0.2deg); }
  16% { transform: translate3d(7px, -4px, 0) rotate(0.25deg); }
  25% { transform: translate3d(-8px, -1px, 0) rotate(-0.18deg); }
  34% { transform: translate3d(6px, 4px, 0) rotate(0.2deg); }
  44% { transform: translate3d(-7px, 2px, 0) rotate(-0.16deg); }
  55% { transform: translate3d(5px, -3px, 0) rotate(0.14deg); }
  67% { transform: translate3d(-4px, 2px, 0) rotate(-0.1deg); }
  80% { transform: translate3d(3px, -1px, 0) rotate(0.06deg); }
  91% { transform: translate3d(-1px, 1px, 0) rotate(-0.03deg); }
}

@keyframes earthquake-flash {
  0% { opacity: 0; }
  12% { opacity: 1; }
  36% { opacity: 0.28; }
  58% { opacity: 0.7; }
  100% { opacity: 0; }
}

@keyframes seismic-alert {
  0% { opacity: 0.38; transform: scaleX(1); }
  18% { opacity: 1; transform: scaleX(1.07); }
  65% { opacity: 0.82; transform: scaleX(1.02); }
  100% { opacity: 0.38; transform: scaleX(1); }
}

@keyframes fracture-stage {
  0% { opacity: 0; }
  4%, 80% { opacity: 1; }
  100% { opacity: 0.18; }
}

@keyframes fracture-split-left {
  0%, 7% { opacity: 0; transform: translate3d(0, 0, 0); }
  18% { opacity: 0.48; transform: translate3d(-3px, 1px, 0) rotate(-0.08deg); }
  34% { opacity: 0.72; transform: translate3d(-11px, 3px, 0) rotate(-0.24deg); }
  66% { opacity: 0.48; transform: translate3d(-8px, 2px, 0) rotate(-0.16deg); }
  100% { opacity: 0.16; transform: translate3d(-5px, 1px, 0) rotate(-0.08deg); }
}

@keyframes fracture-split-right {
  0%, 7% { opacity: 0; transform: translate3d(0, 0, 0); }
  18% { opacity: 0.48; transform: translate3d(3px, -1px, 0) rotate(0.08deg); }
  34% { opacity: 0.72; transform: translate3d(11px, -3px, 0) rotate(0.24deg); }
  66% { opacity: 0.48; transform: translate3d(8px, -2px, 0) rotate(0.16deg); }
  100% { opacity: 0.16; transform: translate3d(5px, -1px, 0) rotate(0.08deg); }
}

@keyframes fracture-draw {
  to { stroke-dashoffset: 0; }
}

@media (min-width: 461px) {
  .app-shell {
    min-height: min(100svh, 900px);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 30px 80px rgba(0, 0, 0, 0.45);
  }
}

@media (hover: hover) and (pointer: fine) {
  .item-button:hover::before {
    background: rgba(255, 255, 255, 0.16);
    transform: translateY(-2px);
  }

  .bonus-option:hover {
    background: rgba(255, 255, 255, 0.16);
  }
}

@media (max-height: 720px) {
  .game-stage {
    min-height: 160px;
  }

  .backpack {
    width: 136px;
    height: auto;
    margin-top: 3px;
  }

  .item-button {
    min-height: 60px;
  }

  .item-button svg {
    width: 33px;
    height: 33px;
  }

  .item-button .item-label {
    font-size: 0.69rem;
  }

  .status-message {
    min-height: 76px;
    margin: 7px 0 9px;
    padding: 10px 12px;
  }

  .status-symbol {
    flex-basis: 34px;
    width: 34px;
    height: 34px;
  }

  .status-copy strong {
    font-size: 0.94rem;
  }

  .status-copy > span {
    font-size: 0.85rem;
  }

  .mission {
    margin-top: 5px;
  }

  .progress-panel {
    margin-top: 5px;
  }

  .choices-heading {
    margin-bottom: 2px;
    gap: 6px;
  }

  .choices-heading h2 {
    font-size: 0.8rem;
  }

  .choices-heading span {
    font-size: 0.6rem;
  }
}

@media (max-height: 590px) {
  .app-shell {
    padding-top: calc(5px + var(--safe-top));
    padding-bottom: calc(5px + var(--safe-bottom));
  }

  .brand-header {
    min-height: 23px;
  }

  .quake-logo {
    width: 94px;
  }

  .header-actions {
    gap: 6px;
  }

  .round-rule {
    display: none;
  }

  .sound-toggle {
    min-height: 44px;
    padding: 3px 6px;
  }

  h1 {
    font-size: 1.8rem;
  }

  .eyebrow {
    font-size: 0.52rem;
  }

  .timer {
    min-width: 96px;
    padding: 6px 9px 7px;
  }

  .timer strong {
    font-size: 1.5rem;
  }

  .game-stage {
    min-height: 136px;
  }

  .backpack {
    width: 117px;
    height: auto;
  }

  .item-button {
    min-height: 56px;
  }

  .item-button svg {
    width: 29px;
    height: 29px;
  }

  .item-button .item-label {
    font-size: 0.65rem;
  }

  .status-message {
    min-height: 72px;
    margin: 6px 0 8px;
    padding: 9px 10px;
    gap: 10px;
  }

  .status-symbol {
    flex-basis: 32px;
    width: 32px;
    height: 32px;
  }

  .status-copy strong {
    font-size: 0.875rem;
  }

  .status-copy > span {
    font-size: 0.8125rem;
  }
}

@media (max-width: 340px) {
  .overlay {
    padding: 10px 14px;
  }

  .overlay-panel {
    padding: 26px 20px 20px;
  }

  .overlay-logo {
    width: 94px;
    margin-bottom: 12px;
  }

  .mission-specs {
    margin-bottom: 12px;
  }

  .mission-specs li {
    padding: 7px 4px 6px;
  }

  .mission-specs strong {
    font-size: 0.92rem;
  }

  .mission-specs span {
    font-size: 0.48rem;
  }

  .bonus-panel .bonus-heading {
    margin-bottom: 12px;
    font-size: 1.82rem;
  }

  .overlay-panel.bonus-panel > p.bonus-score {
    margin-bottom: 7px;
    font-size: 0.68rem;
  }

  .overlay-panel.bonus-panel > p.bonus-bridge {
    margin-bottom: 12px;
    font-size: 0.82rem;
  }

  .overlay-panel.bonus-panel > p.bonus-topic {
    margin-bottom: 6px;
  }

  .bonus-options {
    gap: 6px;
  }

  .bonus-option {
    min-height: 44px;
    padding: 7px 10px;
    font-size: 0.78rem;
    line-height: 1.12;
  }

  .bonus-feedback {
    min-height: 2.2em;
    margin-top: 8px;
  }

  .overlay-panel.bonus-panel > p.bonus-question {
    font-size: 0.84rem;
  }

  .text-action {
    position: sticky;
    bottom: 0;
    z-index: 2;
    width: 100%;
    margin-top: 3px;
    padding-block: 5px;
    background: var(--quake-dark-purple);
  }

  .text-action.is-result-action {
    background: var(--quake-white);
  }

  .mission {
    gap: 8px;
  }

  h1 {
    font-size: 1.7rem;
  }
}

@media (orientation: landscape) and (max-height: 500px) {
  .screen-fracture {
    width: 100%;
  }

  .app-shell {
    display: grid;
    width: 100%;
    max-width: none;
    height: 100svh;
    min-height: 100svh;
    padding: calc(7px + var(--safe-top)) calc(12px + env(safe-area-inset-right, 0px)) calc(7px + var(--safe-bottom)) calc(12px + env(safe-area-inset-left, 0px));
    grid-template-columns: minmax(250px, 44%) minmax(0, 1fr);
    grid-template-rows: auto auto auto minmax(0, 1fr);
    column-gap: 14px;
    overflow-x: hidden;
    overflow-y: auto;
  }

  .brand-header {
    grid-column: 1;
    grid-row: 1;
  }

  .mission {
    grid-column: 1;
    grid-row: 2;
    gap: 6px;
  }

  .timer {
    min-width: 100px;
    padding: 5px 9px 6px;
  }

  .timer strong {
    font-size: 1.55rem;
  }

  h1 {
    font-size: 1.55rem;
  }

  .progress-panel {
    grid-column: 1;
    grid-row: 3;
  }

  .game-stage {
    min-height: 0;
    margin: 0 -12px;
    grid-column: 1;
    grid-row: 4;
  }

  .backpack {
    width: min(19vw, 104px);
    height: auto;
  }

  .status-message {
    min-height: 64px;
    margin: 0;
    padding: 8px 11px;
    gap: 10px;
    grid-column: 2;
    grid-row: 1;
  }

  .status-symbol {
    flex-basis: 30px;
    width: 30px;
    height: 30px;
  }

  .status-copy strong {
    font-size: 0.875rem;
  }

  .status-copy > span {
    font-size: 0.8125rem;
    line-height: 1.18;
  }

  .choices {
    display: grid;
    min-height: 0;
    grid-template-rows: auto minmax(0, 1fr);
    grid-column: 2;
    grid-row: 2 / 5;
  }

  .choices-heading {
    margin: 3px 0 2px;
  }

  .item-grid {
    min-height: 0;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: repeat(4, minmax(0, 1fr));
  }

  .item-button {
    min-height: 44px;
  }

  .item-button svg {
    width: min(8.5vh, 34px);
    height: min(8.5vh, 34px);
  }

  .item-button .item-label {
    font-size: 0.65rem;
  }

  .item-button .item-label.is-stacked {
    font-size: 0.6rem;
  }

  .overlay {
    padding: 7px 14px;
  }

  .overlay-panel {
    padding: 16px 24px 14px;
  }

  .overlay-logo {
    width: 76px;
    margin-bottom: 7px;
  }

  .mission-specs {
    margin: -2px 0 8px;
  }

  .mission-specs li {
    padding: 5px 4px 4px;
  }

  .mission-specs strong {
    font-size: 0.84rem;
  }

  .mission-specs span {
    font-size: 0.44rem;
  }

  .overlay-panel h2 {
    max-width: 18ch;
    margin-bottom: 8px;
    font-size: 1.65rem;
    line-height: 0.92;
  }

  .bonus-panel .bonus-heading {
    max-width: none;
    margin-bottom: 6px;
    font-size: 1.8rem;
    line-height: 0.9;
  }

  .overlay-panel.bonus-panel > p.bonus-score {
    margin-bottom: 4px;
    font-size: 0.62rem;
  }

  .overlay-panel.bonus-panel > p.bonus-bridge {
    max-width: none;
    margin-bottom: 7px;
    font-size: 0.76rem;
    line-height: 1.18;
  }

  .overlay-panel.bonus-panel > p.bonus-topic {
    margin-bottom: 4px;
    font-size: 0.56rem;
  }

  .bonus-topic strong {
    font-size: 0.68rem;
  }

  .overlay-panel.bonus-panel > p.bonus-question {
    max-width: none;
    margin-bottom: 6px;
    font-size: 0.8rem;
    line-height: 1.15;
  }

  .overlay-panel > p:not(.eyebrow):not(.microcopy):not(.bonus-feedback):not(.bonus-question):not(.bonus-score):not(.bonus-bridge):not(.bonus-topic) {
    max-width: none;
    margin-bottom: 10px;
    font-size: 0.76rem;
  }

  .primary-action {
    min-height: 44px;
    padding: 9px 16px;
  }

  .microcopy {
    margin-top: 6px;
    font-size: 0.56rem;
  }

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

  .bonus-option {
    min-height: 44px;
    padding: 6px 8px;
    font-size: 0.68rem;
  }

  .bonus-feedback {
    min-height: 1.4em;
    margin: 5px 0 0;
  }

  .bonus-panel .text-action {
    position: sticky;
    bottom: 0;
    z-index: 2;
    width: 100%;
    background: var(--quake-dark-purple);
  }

  .bonus-panel .text-action.is-result-action {
    background: var(--quake-white);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .screen-fracture.is-active {
    visibility: visible;
    opacity: 1;
    animation: none !important;
  }

  .screen-fracture.is-active .fracture-plane {
    opacity: 0.36;
    transform: none;
    animation: none !important;
  }

  .screen-fracture.is-active .fracture-gap,
  .screen-fracture.is-active .fracture-edge,
  .screen-fracture.is-active .fracture-branches path {
    stroke-dashoffset: 0;
    animation: none !important;
  }
}

/* v0.6.0 — Tensão sísmica: materialidade QUAKE sem linguagem promocional. */

.app-shell {
  min-height: 100vh;
  min-height: 100svh;
  padding-right: 18px;
  padding-left: 18px;
  background-color: var(--quake-dark-blue);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.78' numOctaves='3' seed='72'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .045 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

.brand-fragment {
  top: 18%;
  right: -54%;
  width: 132%;
  opacity: 0.085;
  transform: rotate(-9deg);
}

.quake-logo {
  width: 118px;
  filter: drop-shadow(4px 5px 0 rgba(23, 2, 36, 0.58));
}

.round-rule {
  opacity: 0.88;
}

.sound-toggle {
  border-color: rgba(255, 255, 255, 0.66);
  background: rgba(100, 10, 85, 0.48);
  filter: drop-shadow(4px 5px 0 rgba(23, 2, 36, 0.72));
  transition: transform 90ms ease, filter 90ms ease, background-color 120ms ease;
}

.sound-toggle:active {
  filter: drop-shadow(1px 2px 0 rgba(23, 2, 36, 0.72));
  transform: translate(3px, 3px);
}

.mission {
  align-items: center;
  gap: 4px;
  margin-top: 12px;
}

.mission .eyebrow {
  margin-bottom: 5px;
  opacity: 0.88;
}

h1 {
  font-size: clamp(2.05rem, 10.3vw, 2.75rem);
  line-height: 0.79;
  white-space: normal;
}

h1 span {
  display: block;
  margin-top: 0.03em;
  color: transparent;
  font-size: 1.5em;
  letter-spacing: -0.065em;
  -webkit-text-stroke: 1.7px var(--quake-white);
  text-shadow: 6px 6px 0 rgba(140, 30, 120, 0.56);
}

.timer {
  min-width: clamp(124px, 33vw, 142px);
  padding: 11px 14px 12px;
  background: var(--quake-mid-purple);
  filter: drop-shadow(-7px 8px 0 rgba(28, 3, 42, 0.86));
  clip-path: polygon(14% 0, 100% 9%, 94% 100%, 0 88%, 5% 18%);
  transform: rotate(1.5deg);
  transform-origin: center;
}

.timer::before {
  inset: 4px;
  border-width: 1.5px;
}

.timer-label {
  font-size: 0.64rem;
  letter-spacing: 0.11em;
  opacity: 0.92;
}

.timer strong {
  font-size: clamp(2rem, 9.2vw, 2.5rem);
  letter-spacing: -0.035em;
}

.timer.is-urgent {
  background: var(--quake-pink);
}

.timer.is-urgent strong {
  animation: timer-critical 760ms steps(2, end) infinite;
}

.progress-panel {
  gap: 12px;
  margin-top: 7px;
}

.progress-copy > span {
  opacity: 0.88;
}

.progress-copy strong {
  font-size: 1.02rem;
}

.progress-track {
  gap: 4px;
  padding-bottom: 5px;
}

.progress-segment {
  height: 7px;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: 2px 3px 0 rgba(19, 2, 30, 0.48);
}

.game-stage {
  min-height: clamp(188px, 25svh, 216px);
  margin-right: -18px;
  margin-left: -18px;
}

.game-stage::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 8% -22% 4% 7%;
  background: rgba(100, 10, 85, 0.48);
  clip-path: polygon(9% 0, 100% 13%, 88% 100%, 0 78%);
  transform: rotate(-3deg);
}

.seismic-line {
  opacity: 0.52;
}

.seismic-line path {
  stroke-width: 6;
}

.backpack {
  width: clamp(148px, 46vw, 184px);
  filter:
    drop-shadow(-11px 12px 0 rgba(36, 4, 44, 0.82))
    drop-shadow(0 20px 16px rgba(10, 0, 14, 0.28));
}

.backpack::before,
.backpack::after {
  background: var(--quake-dark-purple);
}

.backpack-handle {
  border-color: var(--quake-mid-purple);
  filter: drop-shadow(-4px 4px 0 rgba(35, 3, 46, 0.75));
}

.backpack-straps span {
  border-color: rgba(140, 30, 120, 0.9);
}

.backpack-body {
  background: var(--quake-mid-purple);
}

.backpack-body::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0 47% 0 0;
  background: rgba(255, 255, 255, 0.055);
  clip-path: polygon(0 0, 100% 9%, 76% 100%, 0 100%);
}

.backpack-body::after {
  inset: 4% 4%;
  border-color: rgba(255, 255, 255, 0.16);
}

.backpack-opening {
  background: #21042f;
  box-shadow: 0 4px 0 rgba(255, 255, 255, 0.13);
}

.backpack-pocket {
  background: var(--quake-dark-purple);
  box-shadow:
    -6px 7px 0 rgba(37, 3, 43, 0.7),
    inset 0 3px 0 rgba(255, 255, 255, 0.12);
}

.status-message {
  min-height: 86px;
  margin: -1px 0 15px;
  padding: 13px 15px;
  gap: 13px;
  filter: drop-shadow(8px 9px 0 rgba(140, 30, 120, 0.58));
  clip-path: polygon(3% 0, 100% 0, 96% 100%, 0 100%, 0 24%);
}

.status-message.is-negative {
  filter: drop-shadow(8px 9px 0 rgba(210, 0, 125, 0.65));
}

.status-symbol {
  flex-basis: 42px;
  width: 42px;
  height: 42px;
  box-shadow: 4px 4px 0 rgba(50, 10, 75, 0.2);
}

.status-copy strong {
  font-size: 1.05rem;
}

.status-copy > span {
  font-size: 0.92rem;
}

.choices-heading {
  margin-bottom: 7px;
}

.choices-heading h2 {
  font-size: 0.93rem;
  letter-spacing: 0.045em;
}

.choices-heading span {
  font-size: 0.6rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  opacity: 0.78;
}

.item-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px 5px;
}

.item-button {
  min-height: 67px;
  padding: 5px 4px 4px;
  transition: color 120ms ease, transform 90ms ease;
}

.item-button::before {
  inset: 1px 2px;
  border-top-color: rgba(255, 255, 255, 0.24);
  background: rgba(100, 10, 85, 0.76);
  filter: drop-shadow(5px 6px 0 rgba(27, 3, 39, 0.72));
  clip-path: polygon(11% 0, 100% 0, 91% 100%, 0 100%, 0 21%);
  transition: background-color 120ms ease, border-color 120ms ease, transform 90ms ease, filter 90ms ease;
}

.item-button::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: 7px;
  right: 15px;
  left: 15px;
  height: 1px;
  background: rgba(255, 255, 255, 0.16);
  transform: skewX(-18deg);
}

.item-button:not(:disabled):active {
  transform: translate(4px, 4px);
}

.item-button:not(:disabled):active::before {
  filter: drop-shadow(1px 2px 0 rgba(27, 3, 39, 0.72));
  transform: none;
}

.item-button svg {
  width: 38px;
  height: 38px;
}

.item-button .item-label {
  min-height: 2em;
  font-size: 0.7rem;
  line-height: 1.02;
}

.item-button.is-packed {
  color: var(--quake-dark-blue);
}

.item-button.is-packed::before {
  border-color: rgba(255, 255, 255, 0.9);
  background: var(--quake-white);
  filter: drop-shadow(5px 6px 0 rgba(140, 30, 120, 0.78));
}

.item-button.is-packed::after {
  background: rgba(50, 10, 75, 0.16);
}

.item-button.is-packed .item-state {
  color: var(--quake-dark-blue);
}

.item-button.is-wrong::before {
  border-color: rgba(255, 255, 255, 0.66);
  background: var(--quake-pink);
  filter: drop-shadow(5px 6px 0 rgba(46, 3, 45, 0.78));
}

.overlay {
  background: rgba(31, 4, 46, 0.93);
  backdrop-filter: blur(4px);
}

.overlay-panel {
  background-color: var(--quake-dark-purple);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.78' numOctaves='3' seed='72'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .04 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  filter: drop-shadow(13px 16px 0 rgba(25, 2, 37, 0.62));
}

.overlay-panel::before {
  border-width: 1.5px;
  border-color: rgba(255, 255, 255, 0.36);
}

.overlay-logo {
  filter: drop-shadow(4px 5px 0 rgba(28, 2, 39, 0.46));
}

.primary-action {
  min-height: 58px;
  filter: drop-shadow(7px 8px 0 rgba(34, 3, 44, 0.72));
  transition: transform 90ms ease, filter 90ms ease;
}

.primary-action:not(:disabled):active {
  filter: drop-shadow(2px 3px 0 rgba(34, 3, 44, 0.72));
  transform: translate(5px, 5px);
}

#startOverlay,
#resultOverlay {
  padding: 0;
  place-items: start center;
  background: var(--quake-dark-blue);
  backdrop-filter: none;
}

#startOverlay::backdrop,
#resultOverlay::backdrop {
  background: var(--quake-dark-blue);
}

.start-panel,
.result-panel {
  width: min(100%, 460px);
  min-height: 100svh;
  padding: calc(34px + var(--safe-top)) 30px calc(28px + var(--safe-bottom));
  overflow: hidden;
  background-color: var(--quake-dark-blue);
  clip-path: polygon(7% 0, 100% 0, 100% 91%, 92% 100%, 0 100%, 0 7%);
  filter: none;
}

.start-panel::before,
.result-panel::before {
  z-index: 0;
  inset: 9px;
  border-color: rgba(255, 255, 255, 0.26);
  clip-path: polygon(6% 0, 100% 0, 100% 90%, 91% 100%, 0 100%, 0 6%);
}

.start-panel::after,
.result-panel::after {
  content: "";
  position: absolute;
  z-index: 0;
  top: 15%;
  right: 0;
  width: 100%;
  height: 72%;
  background: rgba(140, 30, 120, 0.28);
  clip-path: polygon(20% 0, 100% 14%, 78% 100%, 0 78%);
  transform: rotate(-8deg);
  pointer-events: none;
}

.start-panel > *,
.result-panel > * {
  z-index: 1;
}

.start-panel .overlay-logo,
.result-panel .overlay-logo {
  width: 120px;
  margin-bottom: clamp(54px, 10svh, 86px);
  opacity: 1;
}

.start-panel .eyebrow,
.result-panel .eyebrow {
  position: relative;
  margin-bottom: 9px;
  padding-left: 17px;
  color: var(--quake-white);
  opacity: 0.84;
}

.start-panel .eyebrow::before,
.result-panel .eyebrow::before {
  content: "";
  position: absolute;
  top: 0.18em;
  bottom: 0.18em;
  left: 0;
  width: 6px;
  background: var(--quake-pink);
  transform: skewX(-14deg);
}

.start-panel h2,
.result-panel h2 {
  max-width: 9.4ch;
  margin-bottom: 22px;
  font-size: clamp(2.7rem, 13vw, 3.55rem);
  line-height: 0.82;
  text-shadow: 7px 8px 0 rgba(100, 10, 85, 0.7);
}

.start-panel h2 {
  max-width: none;
  margin-bottom: 18px;
  font-size: clamp(2.75rem, 13.5vw, 3.7rem);
  white-space: nowrap;
}

.start-panel h2 span {
  color: transparent;
  font-size: 1.08em;
  -webkit-text-stroke: 1.7px var(--quake-white);
  text-shadow: 6px 7px 0 rgba(140, 30, 120, 0.66);
}

.start-panel > p:not(.eyebrow):not(.microcopy) {
  max-width: 29ch;
  margin-bottom: 25px;
  font-size: 1.02rem;
  line-height: 1.3;
}

.start-panel > p.start-prompt {
  max-width: 23ch;
  margin-bottom: 6px;
  font-size: 1.24rem;
  font-weight: 900;
  line-height: 1.08;
}

.start-panel > p.start-prompt + p {
  margin-bottom: 25px;
  font-size: 0.96rem;
}

.start-panel .mission-specs {
  margin-bottom: 25px;
  border-width: 2px;
  background: rgba(100, 10, 85, 0.48);
  filter: drop-shadow(7px 8px 0 rgba(27, 3, 39, 0.62));
}

.start-panel .mission-specs li {
  min-height: 70px;
  place-content: center;
}

.start-panel .mission-specs strong {
  font-size: 1.35rem;
}

.start-panel .primary-action,
.result-panel .primary-action {
  margin-top: auto;
}

.start-panel .microcopy {
  margin-top: 17px;
  font-size: 0.68rem;
  opacity: 0.72;
}

.start-panel .museum-credit {
  display: grid;
  gap: 3px;
  line-height: 1.25;
}

.start-panel .museum-credit strong,
.start-panel .museum-credit span {
  display: block;
}

.start-panel .museum-credit strong {
  color: var(--quake-white);
  font-size: 0.61rem;
  font-weight: 900;
  letter-spacing: 0.055em;
}

.start-panel .museum-credit span {
  font-size: 0.62rem;
  font-weight: 500;
  opacity: 0.72;
}

.result-panel .overlay-logo {
  margin-bottom: clamp(34px, 7svh, 62px);
}

.result-panel h2 {
  max-width: 10ch;
}

.result-panel > p:not(.eyebrow):not(.result-bonus) {
  max-width: 31ch;
  font-size: 1rem;
}

.result-score {
  margin-bottom: 22px;
  filter: drop-shadow(7px 8px 0 rgba(140, 30, 120, 0.72));
}

.result-stat strong {
  font-size: clamp(1.55rem, 7vw, 2rem);
}

#bonusOverlay {
  padding: 0;
  place-items: start center;
  background: var(--quake-dark-blue);
  backdrop-filter: none;
}

#bonusOverlay::backdrop {
  background: var(--quake-dark-blue);
}

.bonus-panel {
  width: min(100%, 460px);
  min-height: 100svh;
  padding: calc(24px + var(--safe-top)) 28px calc(26px + var(--safe-bottom));
  overflow: hidden;
  background-color: var(--quake-dark-blue);
  clip-path: polygon(7% 0, 100% 0, 100% 91%, 92% 100%, 0 100%, 0 7%);
  filter: none;
}

.bonus-panel::before {
  z-index: 0;
  inset: 9px;
  border-color: rgba(255, 255, 255, 0.26);
  clip-path: polygon(6% 0, 100% 0, 100% 90%, 91% 100%, 0 100%, 0 6%);
}

.bonus-panel::after {
  content: "";
  position: absolute;
  z-index: 0;
  top: 6%;
  right: 0;
  width: 100%;
  height: 72%;
  background: rgba(140, 30, 120, 0.29);
  clip-path: polygon(20% 0, 100% 14%, 78% 100%, 0 78%);
  transform: rotate(-8deg);
  pointer-events: none;
}

.bonus-panel > * {
  z-index: 1;
}

.bonus-panel .overlay-logo {
  width: 118px;
  margin-bottom: 25px;
  opacity: 1;
}

.bonus-kicker {
  margin-bottom: 5px;
  opacity: 0.86;
}

.bonus-panel .bonus-heading {
  display: flex;
  max-width: none;
  margin-bottom: 7px;
  align-items: baseline;
  gap: 8px;
  font-size: clamp(2.35rem, 11.8vw, 3.25rem);
  line-height: 0.84;
}

.bonus-heading span {
  color: transparent;
  font-size: 1.22em;
  -webkit-text-stroke: 1.6px var(--quake-white);
  text-shadow: 5px 5px 0 rgba(140, 30, 120, 0.66);
}

.bonus-phase {
  position: relative;
  display: flex;
  margin: 0 0 12px;
  padding: 7px 0 6px 42px;
  align-items: baseline;
  gap: 9px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.78);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
}

.bonus-phase::before {
  content: "";
  position: absolute;
  top: 12px;
  left: 0;
  width: 31px;
  height: 6px;
  background: var(--quake-pink);
  transform: skewX(-18deg);
}

.bonus-phase span {
  font-weight: 700;
  opacity: 0.76;
}

.bonus-phase strong {
  font-weight: 900;
}

.overlay-panel.bonus-panel > p.bonus-score {
  display: inline-block;
  margin-bottom: 7px;
  padding: 4px 8px 3px;
  color: var(--quake-dark-blue);
  background: var(--quake-white);
  font-size: 0.7rem;
  opacity: 1;
  transform: skewX(-8deg);
}

.overlay-panel.bonus-panel > p.bonus-bridge {
  max-width: 35ch;
  margin-bottom: 20px;
  font-size: 1rem;
  line-height: 1.28;
}

.overlay-panel.bonus-panel > p.bonus-topic {
  margin-bottom: 8px;
  padding-left: 13px;
  border-left: 5px solid var(--quake-pink);
  font-size: 0.65rem;
}

.bonus-topic strong {
  font-size: 0.82rem;
}

.overlay-panel.bonus-panel > p.bonus-question {
  max-width: 30ch;
  margin-bottom: 14px;
  font-size: clamp(1.18rem, 5.2vw, 1.45rem);
  line-height: 1.04;
}

.bonus-options {
  counter-reset: answer;
  gap: 10px;
}

.bonus-option {
  counter-increment: answer;
  min-height: 58px;
  padding: 12px 14px 11px 61px;
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(100, 10, 85, 0.92);
  font-size: 0.93rem;
  filter: drop-shadow(7px 8px 0 rgba(26, 2, 37, 0.72));
  clip-path: polygon(5% 0, 100% 0, 96% 100%, 0 100%, 0 28%);
  transition: transform 90ms ease, filter 90ms ease, background-color 120ms ease;
}

.bonus-option::before {
  content: "0" counter(answer) " /";
  position: absolute;
  top: 50%;
  left: 18px;
  font-size: 0.64rem;
  letter-spacing: 0.08em;
  opacity: 0.68;
  transform: translateY(-50%);
}

.bonus-option:not(:disabled):active {
  filter: drop-shadow(2px 3px 0 rgba(26, 2, 37, 0.72));
  transform: translate(5px, 5px);
}

.bonus-option.is-correct {
  color: var(--quake-dark-blue);
  border-color: var(--quake-white);
  background: var(--quake-white);
  filter: drop-shadow(7px 8px 0 rgba(140, 30, 120, 0.78));
}

.bonus-option.is-wrong {
  border-color: rgba(255, 255, 255, 0.66);
  background: var(--quake-pink);
}

.bonus-feedback {
  min-height: 43px;
  margin: 13px 0 4px;
  padding: 10px 12px;
  border-left: 4px solid rgba(255, 255, 255, 0.48);
  background: rgba(100, 10, 85, 0.72);
  font-size: 0.82rem;
  line-height: 1.25;
}

.bonus-feedback.is-positive {
  color: var(--quake-dark-blue);
  border-color: var(--quake-mid-purple);
  background: var(--quake-white);
  filter: drop-shadow(6px 7px 0 rgba(140, 30, 120, 0.72));
}

.bonus-feedback.is-negative {
  border-color: var(--quake-pink);
}

.bonus-panel .text-action {
  width: 100%;
  min-height: 54px;
  margin-top: 12px;
  border: 0;
  color: var(--quake-dark-blue);
  background: var(--quake-white);
  font-size: 0.72rem;
  font-weight: 900;
  filter: drop-shadow(7px 8px 0 rgba(140, 30, 120, 0.78));
  transition: transform 90ms ease, filter 90ms ease;
}

.bonus-panel .text-action:not(:disabled):active {
  filter: drop-shadow(2px 3px 0 rgba(140, 30, 120, 0.78));
  transform: translate(5px, 5px);
}

@keyframes timer-critical {
  0%, 100% { opacity: 1; transform: translateX(0); }
  50% { opacity: 0.82; transform: translateX(-2px); }
}

@media (max-height: 720px) and (orientation: portrait) {
  .mission {
    margin-top: 5px;
  }

  h1 {
    font-size: 1.78rem;
  }

  .timer {
    min-width: 108px;
    padding: 8px 11px 9px;
  }

  .timer strong {
    font-size: 1.78rem;
  }

  .game-stage {
    min-height: 151px;
  }

  .backpack {
    width: 127px;
  }

  .status-message {
    min-height: 72px;
    margin-top: -2px;
    margin-bottom: 10px;
    padding: 9px 11px;
  }

  .status-symbol {
    flex-basis: 34px;
    width: 34px;
    height: 34px;
  }

  .status-copy strong {
    font-size: 0.92rem;
  }

  .status-copy > span {
    font-size: 0.82rem;
  }

  .item-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 7px 4px;
  }

  .item-button {
    min-height: 59px;
  }

  .item-button svg {
    width: 31px;
    height: 31px;
  }

  .item-button .item-label {
    font-size: 0.64rem;
  }

  .bonus-panel {
    padding-top: calc(15px + var(--safe-top));
    padding-bottom: calc(18px + var(--safe-bottom));
  }

  .bonus-panel .overlay-logo {
    width: 92px;
    margin-bottom: 12px;
  }

  .bonus-panel .bonus-heading {
    margin-bottom: 4px;
    font-size: 2rem;
  }

  .bonus-phase {
    margin-bottom: 7px;
    padding-top: 4px;
    padding-bottom: 4px;
  }

  .bonus-phase::before {
    top: 9px;
  }

  .overlay-panel.bonus-panel > p.bonus-bridge {
    margin-bottom: 10px;
    font-size: 0.84rem;
  }

  .overlay-panel.bonus-panel > p.bonus-question {
    margin-bottom: 8px;
    font-size: 1rem;
  }

  .bonus-options {
    gap: 7px;
  }

  .bonus-option {
    min-height: 47px;
    padding-top: 8px;
    padding-bottom: 8px;
    font-size: 0.78rem;
  }

  .bonus-feedback {
    min-height: 36px;
    margin-top: 9px;
    padding: 7px 10px;
    font-size: 0.72rem;
  }

  .bonus-panel .text-action {
    min-height: 46px;
    margin-top: 7px;
  }
}

@media (max-width: 340px) {
  .app-shell {
    padding-right: 14px;
    padding-left: 14px;
  }

  .mission {
    gap: 2px;
  }

  .quake-logo {
    width: 98px;
  }

  h1 {
    font-size: 1.66rem;
  }

  .timer {
    min-width: 96px;
    padding: 7px 9px 8px;
  }

  .timer strong {
    font-size: 1.52rem;
  }

  .game-stage {
    min-height: 120px;
    margin-right: -14px;
    margin-left: -14px;
  }

  .backpack {
    width: 101px;
  }

  .status-message {
    min-height: 60px;
    margin-bottom: 5px;
    padding: 7px 9px;
    filter: drop-shadow(6px 7px 0 rgba(140, 30, 120, 0.58));
  }

  .status-symbol {
    flex-basis: 30px;
    width: 30px;
    height: 30px;
  }

  .status-copy strong {
    font-size: 0.84rem;
  }

  .status-copy > span {
    font-size: 0.72rem;
  }

  .choices-heading h2 {
    font-size: 0.72rem;
  }

  .choices-heading {
    margin-bottom: 3px;
  }

  .item-grid {
    row-gap: 3px;
  }

  .item-button {
    min-height: 54px;
  }

  .item-button::before,
  .item-button.is-packed::before,
  .item-button.is-wrong::before {
    filter: drop-shadow(3px 3px 0 rgba(27, 3, 39, 0.72));
  }

  .item-button svg {
    width: 28px;
    height: 28px;
  }

  .item-button .item-label,
  .item-button .item-label.is-stacked {
    font-size: 0.59rem;
  }

  .bonus-panel {
    padding-right: 20px;
    padding-left: 20px;
  }

  .bonus-panel .bonus-heading {
    display: block;
  }

  .bonus-heading span {
    display: inline-block;
    margin-left: 5px;
  }

  .start-panel .overlay-logo,
  .result-panel .overlay-logo {
    margin-bottom: 22px;
  }

  .start-panel h2 {
    font-size: 2.05rem;
  }

  .start-panel > p.start-prompt {
    font-size: 0.98rem;
  }

  .start-panel .mission-specs li {
    min-height: 54px;
  }
}

@media (min-width: 341px) and (max-width: 370px) and (max-height: 820px) {
  .app-shell {
    padding-right: 14px;
    padding-left: 14px;
  }

  .quake-logo {
    width: 104px;
  }

  .mission {
    margin-top: 5px;
  }

  h1 {
    font-size: 1.74rem;
  }

  .timer {
    min-width: 104px;
    padding: 8px 10px 9px;
  }

  .timer strong {
    font-size: 1.68rem;
  }

  .game-stage {
    min-height: 135px;
    margin-right: -14px;
    margin-left: -14px;
  }

  .backpack {
    width: 115px;
  }

  .status-message {
    min-height: 68px;
    margin-bottom: 8px;
    padding: 8px 10px;
  }

  .status-symbol {
    flex-basis: 32px;
    width: 32px;
    height: 32px;
  }

  .status-copy strong {
    font-size: 0.88rem;
  }

  .status-copy > span {
    font-size: 0.77rem;
  }

  .item-grid {
    row-gap: 4px;
  }

  .item-button {
    min-height: 56px;
  }

  .item-button svg {
    width: 29px;
    height: 29px;
  }

  .item-button .item-label,
  .item-button .item-label.is-stacked {
    font-size: 0.61rem;
  }

  .start-panel .overlay-logo,
  .result-panel .overlay-logo {
    margin-bottom: 28px;
  }

  .start-panel h2 {
    font-size: 2.25rem;
  }

  .start-panel > p.start-prompt {
    font-size: 1.05rem;
  }

  .start-panel .mission-specs li {
    min-height: 58px;
  }
}

@media (orientation: landscape) and (max-height: 500px) {
  .app-shell {
    padding-right: calc(14px + env(safe-area-inset-right, 0px));
    padding-left: calc(14px + env(safe-area-inset-left, 0px));
  }

  h1 {
    font-size: 1.52rem;
  }

  h1 span {
    display: inline;
    margin-left: 4px;
    font-size: 1.04em;
    color: var(--quake-white);
    -webkit-text-stroke: 0;
    text-shadow: none;
  }

  .game-stage {
    min-height: 0;
    margin-right: -14px;
    margin-left: -14px;
  }

  .backpack {
    width: min(19vw, 104px);
  }

  .status-message {
    min-height: 64px;
    margin: 0;
    padding: 8px 11px;
    filter: drop-shadow(5px 6px 0 rgba(140, 30, 120, 0.58));
  }

  .item-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: repeat(4, minmax(0, 1fr));
  }

  .item-button {
    min-height: 44px;
  }

  .item-button svg {
    width: min(8.5vh, 32px);
    height: min(8.5vh, 32px);
  }

  .item-button .item-label,
  .item-button .item-label.is-stacked {
    font-size: 0.6rem;
  }

  .bonus-panel {
    display: grid;
    width: 100%;
    max-width: none;
    min-height: 100svh;
    padding: calc(11px + var(--safe-top)) calc(24px + env(safe-area-inset-right, 0px)) calc(11px + var(--safe-bottom)) calc(24px + env(safe-area-inset-left, 0px));
    grid-template-columns: minmax(180px, 0.72fr) minmax(0, 1.35fr);
    grid-template-rows: repeat(7, auto) 1fr;
    column-gap: 28px;
    align-content: center;
  }

  .bonus-panel .overlay-logo,
  .bonus-panel .bonus-kicker,
  .bonus-panel .bonus-heading,
  .bonus-panel .bonus-phase,
  .bonus-panel .bonus-score,
  .bonus-panel .bonus-bridge {
    grid-column: 1;
  }

  .bonus-panel .overlay-logo {
    width: 80px;
    margin-bottom: 8px;
  }

  .bonus-panel .bonus-heading {
    display: block;
    margin-bottom: 5px;
    font-size: 1.75rem;
  }

  .bonus-heading span {
    display: block;
    margin-top: 4px;
    font-size: 1.42em;
  }

  .bonus-phase {
    margin-bottom: 5px;
    padding-top: 4px;
    padding-bottom: 4px;
  }

  .bonus-phase::before {
    top: 9px;
  }

  .overlay-panel.bonus-panel > p.bonus-score {
    width: fit-content;
    margin-bottom: 5px;
  }

  .overlay-panel.bonus-panel > p.bonus-bridge {
    margin-bottom: 0;
    font-size: 0.76rem;
  }

  .bonus-panel .bonus-topic,
  .bonus-panel .bonus-question,
  .bonus-panel .bonus-options,
  .bonus-panel .bonus-feedback,
  .bonus-panel .text-action {
    grid-column: 2;
  }

  .overlay-panel.bonus-panel > p.bonus-topic {
    grid-row: 1;
    align-self: end;
  }

  .overlay-panel.bonus-panel > p.bonus-question {
    grid-row: 2;
    margin-bottom: 7px;
    font-size: 1rem;
  }

  .bonus-options {
    grid-row: 3 / span 3;
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .bonus-option {
    min-height: 43px;
    padding-top: 6px;
    padding-bottom: 6px;
    font-size: 0.72rem;
  }

  .bonus-feedback {
    grid-row: 6;
    min-height: 33px;
    margin-top: 6px;
    padding: 6px 9px;
    font-size: 0.67rem;
  }

  .bonus-panel .text-action {
    position: static;
    grid-row: 7;
    min-height: 42px;
    margin-top: 5px;
  }
}

@media (orientation: landscape) and (max-height: 500px) and (max-width: 640px) {
  .bonus-panel {
    grid-template-columns: minmax(154px, 0.66fr) minmax(0, 1.34fr);
    column-gap: 16px;
  }

  .bonus-panel .bonus-heading {
    font-size: 1.45rem;
  }

  .bonus-panel .bonus-kicker {
    font-size: 0.48rem;
  }

  .bonus-phase {
    padding-left: 34px;
    gap: 5px;
    font-size: 0.55rem;
  }

  .bonus-phase::before {
    width: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .timer.is-urgent strong {
    animation: none;
  }
}

/* v0.7 — the final action turns sharing into the last game mechanic. */
.result-panel {
  overflow-x: hidden;
  overflow-y: auto;
}

.share-mission {
  position: relative;
  z-index: 1;
  margin: 4px 0 20px;
  padding: 18px 16px 17px;
  color: var(--quake-dark-blue);
  background:
    linear-gradient(118deg, rgba(255, 255, 255, 0.98), rgba(245, 234, 244, 0.98)),
    var(--quake-white);
  clip-path: polygon(4% 0, 100% 0, 96% 100%, 0 100%, 0 13%);
  filter: drop-shadow(7px 8px 0 rgba(140, 30, 120, 0.72));
}

.share-mission::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: -24px;
  bottom: -38px;
  width: 155px;
  height: 100px;
  background: rgba(140, 30, 120, 0.09);
  clip-path: polygon(22% 0, 100% 18%, 78% 100%, 0 76%);
  transform: rotate(-9deg);
}

.share-sequence {
  display: flex;
  margin: 0 0 11px;
  align-items: center;
  gap: 7px;
  color: var(--quake-pink);
  font-size: 0.54rem;
  font-style: normal;
  font-weight: 900;
  letter-spacing: 0.1em;
  line-height: 1;
}

.share-sequence i {
  display: block;
  min-width: 12px;
  height: 4px;
  flex: 1 1 18px;
  background: var(--quake-mid-purple);
  clip-path: polygon(0 0, 88% 0, 100% 50%, 88% 100%, 0 100%, 12% 50%);
  opacity: 0.55;
}

.share-mission h3 {
  max-width: 17ch;
  margin: 0 0 7px;
  font-size: 1.08rem;
  font-weight: 900;
  letter-spacing: -0.025em;
  line-height: 1.02;
}

.share-mission > p:not(.share-sequence):not(.share-feedback) {
  max-width: 36ch;
  margin: 0 0 14px;
  color: var(--quake-dark-purple);
  font-size: 0.79rem;
  line-height: 1.3;
}

.share-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.share-action {
  min-height: 46px;
  padding: 9px 10px;
  color: var(--quake-white);
  border: 0;
  background: var(--quake-mid-purple);
  font: inherit;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  line-height: 1.08;
  cursor: pointer;
  touch-action: manipulation;
  clip-path: polygon(5% 0, 100% 0, 95% 100%, 0 100%, 0 24%);
  filter: drop-shadow(4px 5px 0 rgba(50, 10, 75, 0.28));
  transition: transform 90ms ease, filter 90ms ease;
}

.share-action-primary {
  grid-column: 1 / -1;
  min-height: 52px;
  color: var(--quake-white);
  background: var(--quake-pink);
  font-size: 0.72rem;
}

.story-action {
  grid-column: 1 / -1;
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(110deg, var(--quake-pink), var(--quake-orange));
}

.story-action svg {
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: square;
  stroke-linejoin: bevel;
  stroke-width: 2.2;
}

.story-action > span {
  display: grid;
  gap: 2px;
  text-align: left;
}

.story-action strong,
.story-action small {
  display: block;
}

.story-action strong {
  font-size: 0.72rem;
  line-height: 1;
}

.story-action small {
  font-size: 0.5rem;
  font-weight: 900;
  letter-spacing: 0.09em;
  opacity: 0.82;
}

.story-action:disabled {
  cursor: wait;
  opacity: 0.72;
}

.share-action:focus-visible {
  outline: 3px solid var(--quake-dark-blue);
  outline-offset: 3px;
}

.share-action:active {
  filter: drop-shadow(1px 2px 0 rgba(50, 10, 75, 0.28));
  transform: translate(3px, 3px);
}

.share-feedback {
  min-height: 1.1em;
  margin: 10px 0 0;
  color: var(--quake-dark-purple);
  font-size: 0.66rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
}

.stats-link {
  position: relative;
  display: block;
  margin-top: 13px;
  color: var(--quake-white);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.045em;
  text-align: center;
  text-underline-offset: 3px;
}

@media (max-width: 370px), (max-height: 700px) {
  .share-mission {
    padding: 15px 13px 14px;
  }

  .share-mission h3 {
    font-size: 0.98rem;
  }

  .share-mission > p:not(.share-sequence):not(.share-feedback) {
    font-size: 0.73rem;
  }
}

/* v0.8 — Visual aprovado: energia de jogo, materialidade e fragmentos QUAKE. */

.game-v08 {
  --quake-red: #d71900;
  --quake-orange: #f58200;
  --quake-yellow: #ffb400;
  --quake-ink: #21042f;
}

.game-v08 .app-shell {
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  background-color: var(--quake-dark-blue);
  background-image:
    radial-gradient(circle at 58% 39%, rgba(140, 30, 120, 0.82), transparent 33%),
    radial-gradient(circle at 10% 82%, rgba(210, 0, 125, 0.24), transparent 34%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 7px),
    linear-gradient(155deg, var(--quake-dark-blue) 0%, #250735 100%);
  box-shadow: 0 0 70px rgba(0, 0, 0, 0.42);
}

.game-v08 .brand-header {
  min-height: 44px;
}

.game-v08 .quake-logo {
  width: 124px;
  filter:
    drop-shadow(4px 5px 0 rgba(33, 4, 47, 0.74))
    drop-shadow(0 8px 14px rgba(0, 0, 0, 0.22));
}

.game-v08 .round-rule {
  color: rgba(255, 255, 255, 0.76);
}

.game-v08 .round-rule strong {
  color: var(--quake-yellow);
}

.game-v08 .sound-toggle {
  min-width: 66px;
  border-top: 2px solid rgba(255, 255, 255, 0.78);
  border-right: 0;
  border-bottom: 2px solid rgba(255, 255, 255, 0.78);
  border-left: 0;
  background: rgba(100, 10, 85, 0.68);
  box-shadow: inset 0 0 0 1px rgba(210, 0, 125, 0.24);
  filter: drop-shadow(5px 6px 0 rgba(33, 4, 47, 0.72));
  clip-path: polygon(8% 0, 100% 0, 91% 100%, 0 100%, 0 24%);
}

.game-v08 .mission {
  margin-top: 8px;
  align-items: center;
  gap: 8px;
}

.game-v08 .mission .eyebrow {
  color: var(--quake-yellow);
  font-weight: 900;
  opacity: 1;
}

.game-v08 h1 {
  font-size: clamp(2rem, 9.25vw, 2.65rem);
  line-height: 0.86;
  white-space: nowrap;
  text-shadow: 6px 7px 0 rgba(100, 10, 85, 0.72);
}

.game-v08 h1 span {
  display: inline;
  margin: 0 0 0 0.05em;
  color: var(--quake-yellow);
  font-size: 1em;
  letter-spacing: -0.055em;
  -webkit-text-stroke: 0;
  text-shadow: 5px 6px 0 rgba(210, 0, 125, 0.52);
}

.game-v08 .timer {
  min-width: clamp(124px, 32vw, 142px);
  padding: 11px 15px 12px;
  border: 2px solid var(--quake-orange);
  background: rgba(50, 10, 75, 0.9);
  filter:
    drop-shadow(7px 8px 0 var(--quake-pink))
    drop-shadow(0 14px 18px rgba(20, 1, 28, 0.34));
  clip-path: polygon(0 16%, 10% 0, 100% 0, 100% 82%, 90% 100%, 0 100%);
  transform: none;
}

.game-v08 .timer::before {
  inset: 4px;
  border-color: rgba(255, 255, 255, 0.24);
  clip-path: inherit;
}

.game-v08 .timer-label {
  color: var(--quake-yellow);
  font-size: 0.66rem;
  font-weight: 900;
  opacity: 1;
}

.game-v08 .timer strong {
  font-size: clamp(2rem, 9vw, 2.55rem);
  text-shadow: 3px 4px 0 rgba(210, 0, 125, 0.56);
}

.game-v08 .timer.is-urgent {
  border-color: var(--quake-yellow);
  background: var(--quake-red);
  filter:
    drop-shadow(8px 9px 0 var(--quake-orange))
    drop-shadow(0 14px 18px rgba(20, 1, 28, 0.34));
}

.game-v08 .progress-panel {
  margin-top: 10px;
}

.game-v08 .progress-copy > span {
  color: rgba(255, 255, 255, 0.78);
  font-weight: 900;
  opacity: 1;
}

.game-v08 .progress-copy strong {
  color: var(--quake-yellow);
  font-size: 1.1rem;
}

.game-v08 .progress-segment {
  height: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.13);
  box-shadow: 3px 4px 0 rgba(33, 4, 47, 0.54);
}

.game-v08 .progress-segment.is-filled {
  background: var(--quake-yellow);
  box-shadow: 3px 4px 0 rgba(210, 0, 125, 0.6);
}

.game-v08 .game-stage {
  min-height: clamp(190px, 25svh, 220px);
  isolation: isolate;
  margin-top: 5px;
  background: radial-gradient(ellipse at center, rgba(210, 0, 125, 0.2), transparent 62%);
}

.game-v08 .game-stage::before {
  z-index: 0;
  inset: 9% -36% 0 34%;
  background: var(--quake-pink);
  opacity: 0.38;
  clip-path: polygon(0 11%, 100% 0, 81% 100%, 14% 86%);
  transform: rotate(-7deg);
  filter: drop-shadow(-15px 18px 0 rgba(245, 130, 0, 0.3));
}

.game-v08 .brand-fragment {
  position: absolute;
  z-index: 0;
  max-width: none;
  pointer-events: none;
}

.game-v08 .brand-fragment-q {
  top: -95%;
  right: -79%;
  width: 158%;
  height: 218%;
  object-fit: fill;
  opacity: 0.17;
  transform: rotate(13deg);
  filter: drop-shadow(-13px 18px 0 rgba(210, 0, 125, 0.52));
}

.game-v08 .brand-fragment-u {
  top: 18%;
  left: -78%;
  width: 148%;
  height: auto;
  opacity: 0.16;
  transform: rotate(-17deg);
}

.game-v08 .seismic-line {
  z-index: 1;
  opacity: 0.72;
  filter: drop-shadow(0 5px 0 rgba(33, 4, 47, 0.42));
}

.game-v08 .seismic-line path {
  stroke: var(--quake-pink);
  stroke-width: 7;
}

.game-v08 .backpack {
  z-index: 3;
  width: clamp(150px, 47vw, 190px);
  filter:
    drop-shadow(-12px 14px 0 rgba(33, 4, 47, 0.82))
    drop-shadow(12px 22px 18px rgba(11, 0, 16, 0.36));
}

.game-v08 .backpack::before,
.game-v08 .backpack::after {
  background:
    repeating-linear-gradient(93deg, rgba(255, 255, 255, 0.05) 0 2px, transparent 2px 5px),
    linear-gradient(180deg, var(--quake-orange), #b94b00 70%, var(--quake-dark-purple));
  box-shadow: inset 2px 0 0 rgba(255, 255, 255, 0.2);
}

.game-v08 .backpack-handle {
  border-width: 8px;
  border-color: var(--quake-orange);
  filter: drop-shadow(-5px 6px 0 rgba(33, 4, 47, 0.75));
}

.game-v08 .backpack-straps span {
  border-width: 7px;
  border-color: #b54b04;
  filter: drop-shadow(-3px 5px 0 rgba(33, 4, 47, 0.5));
}

.game-v08 .backpack-body {
  background:
    repeating-linear-gradient(8deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 5px),
    radial-gradient(circle at 32% 23%, rgba(210, 0, 125, 0.94), transparent 33%),
    linear-gradient(145deg, #a6228e 0%, var(--quake-mid-purple) 43%, #4a0848 100%);
  box-shadow:
    inset 9px 0 0 rgba(255, 255, 255, 0.045),
    inset -12px -16px 0 rgba(33, 4, 47, 0.14);
}

.game-v08 .backpack-body::after {
  inset: 5% 4%;
  border: 2px solid rgba(255, 180, 0, 0.26);
}

.game-v08 .backpack-opening {
  height: 8%;
  border-top: 3px solid var(--quake-orange);
  background: #17021f;
  box-shadow: 0 5px 0 rgba(255, 180, 0, 0.22);
}

.game-v08 .backpack-opening::after {
  width: 12%;
  background: var(--quake-yellow);
  box-shadow: 2px 3px 0 rgba(33, 4, 47, 0.55);
}

.game-v08 .bag-slots {
  inset: 19% 14% 40%;
}

.game-v08 .bag-slot.is-filled {
  color: var(--quake-yellow);
  filter: drop-shadow(2px 3px 0 rgba(33, 4, 47, 0.78));
}

.game-v08 .backpack-pocket {
  border-top: 3px solid rgba(245, 130, 0, 0.72);
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 5px),
    linear-gradient(160deg, #791166, #470841);
  box-shadow:
    -7px 9px 0 rgba(33, 4, 47, 0.68),
    inset 0 4px 0 rgba(255, 255, 255, 0.1);
}

.game-v08 .backpack-pocket::after {
  height: 4px;
  background: var(--quake-orange);
}

.game-v08 .backpack-pocket::before {
  background: var(--quake-yellow);
}

.game-v08 .status-message {
  min-height: 88px;
  margin: -2px 0 16px;
  padding: 14px 15px 13px 19px;
  border-left: 7px solid var(--quake-orange);
  color: var(--quake-dark-blue);
  background: var(--quake-white);
  filter:
    drop-shadow(8px 9px 0 var(--quake-pink))
    drop-shadow(0 13px 18px rgba(19, 1, 27, 0.2));
  clip-path: polygon(3% 0, 100% 0, 96% 100%, 0 100%, 0 24%);
}

.game-v08 .status-message.is-positive {
  border-left-color: var(--quake-yellow);
  filter:
    drop-shadow(8px 9px 0 var(--quake-orange))
    drop-shadow(0 13px 18px rgba(19, 1, 27, 0.2));
}

.game-v08 .status-message.is-negative {
  border-left-color: var(--quake-pink);
  filter:
    drop-shadow(8px 9px 0 var(--quake-red))
    drop-shadow(0 13px 18px rgba(19, 1, 27, 0.2));
}

.game-v08 .status-symbol {
  flex-basis: 44px;
  width: 44px;
  height: 44px;
  color: var(--quake-white);
  background: var(--quake-dark-blue);
  font-size: 1.2rem;
  box-shadow: 4px 5px 0 rgba(210, 0, 125, 0.28);
  clip-path: polygon(14% 0, 100% 0, 86% 100%, 0 100%);
}

.game-v08 .status-message.is-positive .status-symbol {
  color: var(--quake-dark-blue);
  background: var(--quake-yellow);
}

.game-v08 .status-message.is-negative .status-symbol {
  background: var(--quake-red);
}

.game-v08 .status-copy strong {
  font-size: 1.08rem;
  line-height: 1.08;
}

.game-v08 .status-copy > span {
  color: var(--quake-dark-purple);
  font-size: 0.94rem;
  line-height: 1.22;
}

.game-v08 .choices-heading {
  margin-bottom: 8px;
}

.game-v08 .choices-heading h2 {
  color: var(--quake-white);
  font-size: 0.96rem;
  letter-spacing: 0.055em;
  text-shadow: 3px 4px 0 rgba(33, 4, 47, 0.65);
}

.game-v08 .choices-heading h2::before {
  content: "LOADOUT / ";
  color: var(--quake-yellow);
  font-size: 0.64em;
  letter-spacing: 0.11em;
}

.game-v08 .choices-heading span {
  color: var(--quake-yellow);
  opacity: 1;
}

.game-v08 .item-grid {
  gap: 9px 6px;
}

.game-v08 .item-button {
  min-height: 72px;
  padding: 6px 3px 5px;
  color: var(--quake-white);
  filter: drop-shadow(0 9px 12px rgba(15, 1, 22, 0.17));
}

.game-v08 .item-button::before {
  inset: 1px 2px 4px;
  border-top: 2px solid rgba(255, 255, 255, 0.34);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), transparent 40%),
    rgba(100, 10, 85, 0.9);
  box-shadow: inset 0 -6px 0 rgba(33, 4, 47, 0.13);
  filter: drop-shadow(5px 7px 0 rgba(33, 4, 47, 0.74));
  clip-path: polygon(12% 0, 100% 0, 91% 100%, 0 100%, 0 22%);
}

.game-v08 .item-button:nth-child(3n + 2)::before {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), transparent 40%),
    rgba(90, 11, 91, 0.92);
}

.game-v08 .item-button::after {
  top: 7px;
  right: 14px;
  left: 14px;
  height: 2px;
  background: rgba(255, 180, 0, 0.28);
}

.game-v08 .item-button svg {
  width: 39px;
  height: 39px;
  filter: drop-shadow(2px 3px 0 rgba(33, 4, 47, 0.5));
}

.game-v08 .item-button .accent {
  fill: rgba(210, 0, 125, 0.48);
}

.game-v08 .item-button .item-label,
.game-v08 .item-button .item-label.is-stacked {
  min-height: 2em;
  font-size: 0.71rem;
  line-height: 1.02;
}

.game-v08 .item-button.is-packed {
  color: var(--quake-dark-blue);
}

.game-v08 .item-button.is-packed::before {
  border-color: var(--quake-yellow);
  background: var(--quake-white);
  filter: drop-shadow(5px 7px 0 var(--quake-orange));
}

.game-v08 .item-button.is-packed::after {
  background: rgba(50, 10, 75, 0.18);
}

.game-v08 .item-button.is-wrong::before {
  border-color: var(--quake-yellow);
  background: var(--quake-red);
  filter: drop-shadow(5px 7px 0 var(--quake-pink));
}

.game-v08 .overlay {
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.02) 0 1px, transparent 1px 7px),
    var(--quake-dark-blue);
}

.game-v08 .start-panel,
.game-v08 .bonus-panel,
.game-v08 .result-panel {
  overflow-x: hidden;
  overflow-y: auto;
  background:
    radial-gradient(circle at 72% 46%, rgba(140, 30, 120, 0.72), transparent 42%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 7px),
    var(--quake-dark-blue);
}

.game-v08 .start-panel::before,
.game-v08 .bonus-panel::before,
.game-v08 .result-panel::before {
  z-index: 2;
  border-color: rgba(255, 255, 255, 0.28);
}

.game-v08 .start-panel::after,
.game-v08 .bonus-panel::after,
.game-v08 .result-panel::after {
  z-index: 0;
  width: 116%;
  height: 72%;
  clip-path: none;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  pointer-events: none;
}

.game-v08 .start-panel::after {
  top: -23%;
  right: -72%;
  background-image: url("assets/brand/fragments/fragment-q-orange.png");
  filter: drop-shadow(-14px 19px 0 rgba(210, 0, 125, 0.78));
  opacity: 0.76;
  transform: rotate(16deg);
}

.game-v08 .bonus-panel::after {
  top: -28%;
  right: -62%;
  background-image: url("assets/brand/fragments/fragment-u-pink.png");
  opacity: 0.45;
  transform: rotate(17deg);
}

.game-v08 .result-panel::after {
  top: -27%;
  right: -67%;
  background-image: url("assets/brand/fragments/fragment-k-red.png");
  opacity: 0.42;
  transform: rotate(-14deg);
}

.game-v08 .start-panel > *,
.game-v08 .bonus-panel > *,
.game-v08 .result-panel > * {
  position: relative;
  z-index: 3;
}

.game-v08 .start-panel .overlay-logo,
.game-v08 .bonus-panel .overlay-logo,
.game-v08 .result-panel .overlay-logo {
  width: 126px;
  margin-bottom: 28px;
  filter: none;
}

.game-v08 .start-panel .eyebrow,
.game-v08 .bonus-panel .eyebrow,
.game-v08 .result-panel .eyebrow {
  color: var(--quake-yellow);
  font-weight: 900;
  opacity: 1;
}

.game-v08 .start-panel .eyebrow::before,
.game-v08 .result-panel .eyebrow::before {
  background: var(--quake-orange);
}

.game-v08 .start-panel h2,
.game-v08 .result-panel h2 {
  color: var(--quake-white);
  font-size: clamp(3rem, 13.8vw, 3.8rem);
  text-shadow: 8px 9px 0 rgba(210, 0, 125, 0.52);
}

.game-v08 .start-panel h2 span,
.game-v08 .bonus-heading span {
  color: var(--quake-yellow);
  -webkit-text-stroke: 0;
  text-shadow: 6px 7px 0 rgba(210, 0, 125, 0.56);
}

.game-v08 .start-panel > p.start-prompt {
  max-width: 18ch;
  color: var(--quake-white);
  font-size: 1.32rem;
}

.game-v08 .start-panel > p.start-prompt + p {
  max-width: 36ch;
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.98rem;
  line-height: 1.4;
}

.game-v08 .start-visual {
  position: relative;
  z-index: 2;
  height: clamp(165px, 22svh, 195px);
  margin: 16px -10px 6px 0;
  pointer-events: none;
}

.game-v08 .start-visual img {
  position: absolute;
  right: -8px;
  bottom: 0;
  width: auto;
  height: 100%;
  filter:
    drop-shadow(-13px 19px 0 rgba(33, 4, 47, 0.5))
    drop-shadow(0 20px 19px rgba(8, 0, 12, 0.28));
  transform: rotate(1.5deg);
}

.game-v08 .start-visual span {
  position: absolute;
  z-index: 2;
  bottom: 35px;
  left: 0;
  padding-left: 11px;
  border-left: 6px solid var(--quake-yellow);
  color: var(--quake-white);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  line-height: 1.04;
}

.game-v08 .start-panel .mission-specs {
  margin-bottom: 24px;
  border-color: rgba(255, 180, 0, 0.68);
  background: rgba(50, 10, 75, 0.74);
  filter: drop-shadow(7px 8px 0 rgba(210, 0, 125, 0.68));
  clip-path: polygon(3% 0, 100% 0, 97% 100%, 0 100%, 0 17%);
}

.game-v08 .start-panel .mission-specs strong {
  color: var(--quake-yellow);
}

.game-v08 .primary-action,
.game-v08 .bonus-panel .text-action {
  min-height: 58px;
  color: var(--quake-dark-blue);
  background: var(--quake-yellow);
  filter:
    drop-shadow(8px 9px 0 var(--quake-pink))
    drop-shadow(0 16px 20px rgba(19, 1, 27, 0.24));
  clip-path: polygon(0 0, 94% 0, 100% 26%, 100% 100%, 6% 100%, 0 74%);
}

.game-v08 .primary-action:not(:disabled):active,
.game-v08 .bonus-panel .text-action:not(:disabled):active {
  filter: drop-shadow(2px 3px 0 var(--quake-pink));
  transform: translate(6px, 6px);
}

.game-v08 .campaign-link {
  display: flex;
  min-height: 44px;
  margin-top: 8px;
  align-items: center;
  justify-content: center;
  color: var(--quake-yellow);
  font-size: 0.6rem;
  font-weight: 900;
  letter-spacing: 0.075em;
  line-height: 1.2;
  text-align: center;
  text-decoration-color: rgba(255, 180, 0, 0.52);
  text-underline-offset: 4px;
}

.game-v08 .why-72h-link {
  display: flex;
  min-height: 34px;
  margin-top: 7px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: var(--quake-white);
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-align: center;
  text-decoration-color: rgba(255, 255, 255, 0.45);
  text-underline-offset: 4px;
}

.game-v08 .why-72h-link span {
  color: var(--quake-yellow);
  font-size: 0.8rem;
}

.game-v08 .learn-at-own-pace {
  display: flex;
  min-height: 44px;
  margin-top: 12px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--quake-white);
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 1.3;
  text-align: center;
  text-underline-offset: 4px;
  text-decoration-color: var(--quake-yellow);
}

.game-v08 .prepare-real-kit {
  display: grid;
  gap: 9px;
  margin: 18px 0 28px;
  padding: 23px 21px;
  color: var(--quake-dark-blue);
  background: var(--quake-white);
  border-left: 6px solid var(--quake-yellow);
  box-shadow: 7px 8px 0 var(--quake-pink);
  text-decoration: none;
}

.game-v08 .prepare-real-kit > span {
  color: var(--quake-dark-purple);
  font-size: 0.64rem;
  font-weight: 900;
  letter-spacing: 0.06em;
}

.game-v08 .prepare-real-kit strong {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  font-size: 1.16rem;
  line-height: 1.12;
}

.game-v08 .prepare-real-kit strong b {
  flex: 0 0 auto;
}

.game-v08 .prepare-real-kit small {
  font-size: 0.88rem;
  line-height: 1.35;
}

.game-v08 .prepare-real-kit:focus-visible,
.game-v08 .learn-at-own-pace:focus-visible {
  outline: 3px solid var(--quake-yellow);
  outline-offset: 5px;
}

.game-v08 .bonus-panel .bonus-heading {
  color: var(--quake-white);
  text-shadow: 7px 8px 0 rgba(210, 0, 125, 0.48);
}

.game-v08 .bonus-phase {
  border-color: var(--quake-yellow);
}

.game-v08 .bonus-phase::before {
  background: var(--quake-orange);
  box-shadow: 5px 5px 0 rgba(210, 0, 125, 0.46);
}

.game-v08 .overlay-panel.bonus-panel > p.bonus-score {
  color: var(--quake-dark-blue);
  background: var(--quake-yellow);
  box-shadow: 5px 6px 0 rgba(210, 0, 125, 0.5);
}

.game-v08 .overlay-panel.bonus-panel > p.bonus-topic {
  border-left-color: var(--quake-orange);
}

.game-v08 .bonus-topic span {
  color: var(--quake-yellow);
}

.game-v08 .bonus-option {
  border-top: 2px solid rgba(255, 255, 255, 0.28);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.07), transparent 42%),
    rgba(100, 10, 85, 0.94);
  filter: drop-shadow(7px 8px 0 rgba(33, 4, 47, 0.76));
}

.game-v08 .bonus-option::before {
  color: var(--quake-yellow);
  font-weight: 900;
  opacity: 1;
}

.game-v08 .bonus-option.is-correct {
  color: var(--quake-dark-blue);
  border-color: var(--quake-yellow);
  background: var(--quake-white);
  filter: drop-shadow(7px 8px 0 var(--quake-orange));
}

.game-v08 .bonus-option.is-wrong {
  border-color: var(--quake-yellow);
  background: var(--quake-red);
  filter: drop-shadow(7px 8px 0 var(--quake-pink));
}

.game-v08 .bonus-feedback {
  border-left-width: 6px;
  border-left-color: var(--quake-orange);
  background: rgba(100, 10, 85, 0.86);
}

.game-v08 .bonus-feedback.is-positive {
  color: var(--quake-dark-blue);
  border-color: var(--quake-yellow);
  background: var(--quake-white);
  filter: drop-shadow(6px 7px 0 var(--quake-orange));
}

.game-v08 .bonus-feedback.is-negative {
  border-color: var(--quake-red);
}

.game-v08 .result-panel h2 {
  color: var(--quake-yellow);
}

.game-v08 .result-score {
  border-top: 2px solid var(--quake-yellow);
  border-bottom: 2px solid var(--quake-yellow);
  background: var(--quake-dark-purple);
  filter: drop-shadow(7px 8px 0 var(--quake-pink));
}

.game-v08 .result-stat strong {
  color: var(--quake-yellow);
}

.game-v08 .result-stat span {
  color: var(--quake-white);
  font-weight: 900;
  opacity: 1;
}

.game-v08 .result-stat + .result-stat {
  border-left-color: rgba(255, 255, 255, 0.28);
}

.game-v08 .share-mission {
  border-left: 7px solid var(--quake-yellow);
  background:
    repeating-linear-gradient(0deg, rgba(50, 10, 75, 0.025) 0 1px, transparent 1px 6px),
    var(--quake-white);
  filter:
    drop-shadow(8px 9px 0 var(--quake-orange))
    drop-shadow(0 15px 18px rgba(19, 1, 27, 0.2));
}

.game-v08 .movement-counter {
  position: relative;
  display: block;
  min-height: 150px;
  margin: 4px 0 22px;
  padding: 17px 17px 16px 20px;
  overflow: hidden;
  color: var(--quake-white);
  border: 2px solid var(--quake-yellow);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 42%),
    var(--quake-dark-purple);
  text-decoration: none;
  clip-path: polygon(4% 0, 100% 0, 95% 100%, 0 100%, 0 14%);
  filter:
    drop-shadow(8px 9px 0 var(--quake-pink))
    drop-shadow(0 15px 18px rgba(19, 1, 27, 0.22));
  transition: transform 100ms ease, filter 100ms ease;
}

.game-v08 .movement-counter::after {
  content: "";
  position: absolute;
  right: -30px;
  bottom: -46px;
  width: 150px;
  height: 130px;
  background: var(--quake-orange);
  clip-path: polygon(38% 0, 100% 14%, 80% 100%, 0 78%);
  opacity: 0.34;
  transform: rotate(-11deg);
  pointer-events: none;
}

.game-v08 .movement-counter-kicker {
  position: relative;
  z-index: 1;
  display: block;
  margin-bottom: 7px;
  color: var(--quake-yellow);
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.game-v08 .movement-counter strong {
  position: relative;
  z-index: 1;
  display: flex;
  margin-bottom: 8px;
  align-items: flex-end;
  gap: 10px;
  line-height: 0.82;
}

.game-v08 .movement-counter strong > b {
  color: var(--quake-yellow);
  font-size: clamp(2.9rem, 13vw, 4rem);
  font-weight: 900;
  letter-spacing: -0.06em;
  text-shadow: 5px 6px 0 rgba(33, 4, 47, 0.66);
}

.game-v08 .movement-counter strong > span {
  max-width: 7ch;
  padding-bottom: 5px;
  font-size: 0.77rem;
  font-weight: 900;
  letter-spacing: 0.045em;
  line-height: 0.95;
}

.game-v08 .movement-counter em {
  position: relative;
  z-index: 1;
  display: block;
  max-width: 29ch;
  color: var(--quake-white);
  font-size: 0.73rem;
  font-style: normal;
  font-weight: 900;
  letter-spacing: 0.025em;
  line-height: 1.13;
}

.game-v08 .movement-counter em b {
  color: var(--quake-yellow);
  font-size: 1.05rem;
}

.game-v08 .movement-counter small {
  position: relative;
  z-index: 1;
  display: block;
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.62rem;
  line-height: 1.2;
}

.game-v08 .movement-counter:focus-visible {
  outline: 4px solid var(--quake-white);
  outline-offset: 5px;
}

.game-v08 .movement-counter:active {
  filter: drop-shadow(2px 3px 0 var(--quake-pink));
  transform: translate(6px, 6px);
}

.game-v08 .share-sequence {
  color: var(--quake-pink);
}

.game-v08 .share-sequence i {
  background: var(--quake-orange);
  opacity: 0.8;
}

.game-v08 .share-action {
  min-height: 48px;
  background: var(--quake-dark-purple);
  filter: drop-shadow(4px 5px 0 rgba(50, 10, 75, 0.3));
}

.game-v08 .share-action-primary {
  min-height: 56px;
  background: var(--quake-pink);
  filter: drop-shadow(5px 6px 0 var(--quake-orange));
}

.game-v08 .story-action {
  min-height: 54px;
  background: linear-gradient(105deg, var(--quake-pink) 0%, var(--quake-red) 54%, var(--quake-orange) 100%);
  filter: drop-shadow(5px 6px 0 rgba(50, 10, 75, 0.42));
}

.game-v08 .bonus-panel .text-action:not(.is-result-action) {
  color: rgba(255, 255, 255, 0.88);
  border: 2px solid rgba(255, 255, 255, 0.5);
  background: transparent;
  filter: none;
}

.game-v08 .bonus-panel .text-action.is-result-action {
  color: var(--quake-dark-blue);
  border: 0;
  background: var(--quake-yellow);
  filter: drop-shadow(7px 8px 0 var(--quake-pink));
}

.game-v08 .result-panel #restartButton {
  min-height: 54px;
  margin-top: 4px;
  color: var(--quake-white);
  border: 2px solid rgba(255, 255, 255, 0.62);
  background: rgba(50, 10, 75, 0.46);
  filter: none;
}

.game-v08 .result-panel #restartButton:not(:disabled):active {
  filter: none;
  transform: translateY(2px);
}

.game-v08 .whatsapp-action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.game-v08 .whatsapp-action svg {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
}

.game-v08 .whatsapp-action svg path:first-child {
  fill: #25d366;
}

.game-v08 .whatsapp-action svg path:last-child {
  fill: var(--quake-white);
}

.game-v08 .stats-link,
.game-v08 .source-link {
  display: flex;
  min-height: 44px;
  margin-top: 8px;
  align-items: center;
  justify-content: center;
  padding: 8px 10px;
  font-size: 0.72rem;
  line-height: 1.2;
}

.game-v08 .source-links {
  display: grid;
  margin-top: 8px;
  gap: 2px;
}

.game-v08 .source-links .source-link {
  margin-top: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.055em;
  text-align: center;
  text-decoration-color: rgba(255, 180, 0, 0.68);
}

.game-v08 .source-links .source-link span {
  color: var(--quake-yellow);
  font-size: 0.76rem;
}

@media (max-height: 720px) and (orientation: portrait) {
  .game-v08 .brand-header {
    min-height: 34px;
  }

  .game-v08 .quake-logo {
    width: 106px;
  }

  .game-v08 h1 {
    font-size: 1.78rem;
  }

  .game-v08 .timer {
    min-width: 108px;
    padding: 8px 11px 9px;
    filter: drop-shadow(5px 6px 0 var(--quake-pink));
  }

  .game-v08 .timer strong {
    font-size: 1.78rem;
  }

  .game-v08 .game-stage {
    min-height: 141px;
  }

  .game-v08 .backpack {
    width: 119px;
  }

  .game-v08 .status-message {
    min-height: 72px;
    margin-bottom: 9px;
    padding: 9px 10px 9px 13px;
    border-left-width: 5px;
    filter: drop-shadow(6px 7px 0 var(--quake-pink));
  }

  .game-v08 .status-symbol {
    flex-basis: 34px;
    width: 34px;
    height: 34px;
  }

  .game-v08 .status-copy strong {
    font-size: 0.92rem;
  }

  .game-v08 .status-copy > span {
    font-size: 0.82rem;
  }

  .game-v08 .item-grid {
    gap: 6px 4px;
  }

  .game-v08 .item-button {
    min-height: 58px;
  }

  .game-v08 .item-button svg {
    width: 30px;
    height: 30px;
  }

  .game-v08 .item-button .item-label,
  .game-v08 .item-button .item-label.is-stacked {
    font-size: 0.64rem;
  }

  .game-v08 .start-panel .overlay-logo,
  .game-v08 .result-panel .overlay-logo {
    width: 102px;
    margin-bottom: 16px;
  }

  .game-v08 .start-panel h2 {
    margin-bottom: 12px;
    font-size: 2.45rem;
  }

  .game-v08 .start-panel > p.start-prompt {
    font-size: 1.05rem;
  }

  .game-v08 .start-panel > p.start-prompt + p {
    margin-bottom: 12px;
    font-size: 0.84rem;
  }

  .game-v08 .start-visual {
    height: 138px;
    margin-top: 12px;
  }

  .game-v08 .start-visual img {
    width: auto;
  }

  .game-v08 .start-visual span {
    bottom: 23px;
    font-size: 0.59rem;
  }

  .game-v08 .start-panel .mission-specs {
    margin-bottom: 14px;
  }

  .game-v08 .start-panel .mission-specs li {
    min-height: 54px;
  }

  .game-v08 .start-panel .primary-action {
    min-height: 52px;
  }

  .game-v08 .campaign-link {
    margin-top: 3px;
    font-size: 0.54rem;
  }

  .game-v08 .why-72h-link {
    min-height: 28px;
    margin-top: 2px;
    font-size: 0.51rem;
  }
}

@media (max-width: 340px) {
  .game-v08 .app-shell {
    padding-right: 14px;
    padding-left: 14px;
  }

  .game-v08 .quake-logo {
    width: 98px;
  }

  .game-v08 h1 {
    font-size: 1.58rem;
  }

  .game-v08 .timer {
    min-width: 101px;
    padding: 7px 9px 8px;
  }

  .game-v08 .timer strong {
    font-size: 1.58rem;
  }

  .game-v08 .game-stage {
    min-height: 113px;
    margin-right: -14px;
    margin-left: -14px;
  }

  .game-v08 .backpack {
    width: 95px;
  }

  .game-v08 .status-message {
    min-height: 64px;
    margin-bottom: 6px;
  }

  .game-v08 .status-copy strong {
    font-size: 0.88rem;
  }

  .game-v08 .status-copy > span {
    font-size: 0.82rem;
  }

  .game-v08 .choices-heading h2 {
    font-size: 0.73rem;
  }

  .game-v08 .choices-heading h2::before {
    content: "";
  }

  .game-v08 .item-button {
    min-height: 55px;
  }

  .game-v08 .item-button svg {
    width: 28px;
    height: 28px;
  }

  .game-v08 .item-button .item-label,
  .game-v08 .item-button .item-label.is-stacked {
    font-size: 0.61rem;
  }

  .game-v08 .start-panel,
  .game-v08 .bonus-panel,
  .game-v08 .result-panel {
    padding-right: 20px;
    padding-left: 20px;
  }

  .game-v08 .start-panel h2 {
    font-size: 2.05rem;
  }
}

@media (orientation: landscape) and (max-height: 500px) {
  .game-v08 .app-shell {
    border: 0;
  }

  .game-v08 .quake-logo {
    width: 92px;
  }

  .game-v08 h1 {
    font-size: 1.48rem;
    text-shadow: 3px 4px 0 rgba(100, 10, 85, 0.72);
  }

  .game-v08 .timer {
    min-width: 103px;
    padding: 6px 9px 7px;
    filter: drop-shadow(4px 5px 0 var(--quake-pink));
  }

  .game-v08 .timer strong {
    font-size: 1.5rem;
  }

  .game-v08 .game-stage {
    min-height: 0;
  }

  .game-v08 .backpack {
    width: min(19vw, 102px);
  }

  .game-v08 .status-message {
    min-height: 64px;
    margin: 0;
    padding: 8px 10px 8px 12px;
    filter: drop-shadow(5px 6px 0 var(--quake-pink));
  }

  .game-v08 .status-copy strong {
    font-size: 0.88rem;
  }

  .game-v08 .status-copy > span {
    font-size: 0.82rem;
  }

  .game-v08 .choices-heading h2 {
    font-size: 0.78rem;
  }

  .game-v08 .item-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: repeat(4, minmax(0, 1fr));
    gap: 5px;
  }

  .game-v08 .item-button {
    min-height: 44px;
  }

  .game-v08 .item-button svg {
    width: min(8vh, 30px);
    height: min(8vh, 30px);
  }

  .game-v08 .item-button .item-label,
  .game-v08 .item-button .item-label.is-stacked {
    font-size: 0.61rem;
  }

  .game-v08 .start-panel {
    display: grid;
    width: 100%;
    max-width: none;
    min-height: 100svh;
    padding: calc(12px + var(--safe-top)) calc(26px + env(safe-area-inset-right, 0px)) calc(10px + var(--safe-bottom)) calc(26px + env(safe-area-inset-left, 0px));
    grid-template-columns: minmax(230px, 0.9fr) minmax(280px, 1.1fr);
    grid-template-rows: auto auto auto auto 1fr;
    column-gap: 28px;
    align-content: center;
  }

  .game-v08 .start-panel .overlay-logo,
  .game-v08 .start-panel .eyebrow,
  .game-v08 .start-panel h2,
  .game-v08 .start-panel > p.start-prompt,
  .game-v08 .start-panel > p.start-prompt + p {
    grid-column: 1;
  }

  .game-v08 .start-panel .overlay-logo {
    width: 82px;
    margin-bottom: 7px;
  }

  .game-v08 .start-panel h2 {
    margin-bottom: 7px;
    font-size: 1.95rem;
  }

  .game-v08 .start-panel > p.start-prompt {
    margin-bottom: 3px;
    font-size: 0.9rem;
  }

  .game-v08 .start-panel > p.start-prompt + p {
    margin-bottom: 0;
    font-size: 0.7rem;
  }

  .game-v08 .start-visual,
  .game-v08 .start-panel .mission-specs,
  .game-v08 .start-panel .primary-action,
  .game-v08 .start-panel .microcopy,
  .game-v08 .why-72h-link,
  .game-v08 .campaign-link {
    grid-column: 2;
  }

  .game-v08 .start-visual {
    grid-row: 1 / span 3;
    height: 150px;
    margin: 0;
  }

  .game-v08 .start-visual img {
    right: 8%;
    bottom: 0;
    width: auto;
  }

  .game-v08 .start-visual span {
    left: 1%;
    bottom: 26px;
  }

  .game-v08 .start-panel .mission-specs {
    grid-row: 4;
    margin: 3px 0 8px;
  }

  .game-v08 .start-panel .mission-specs li {
    min-height: 45px;
  }

  .game-v08 .start-panel .primary-action {
    grid-row: 5;
    min-height: 44px;
  }

  .game-v08 .learn-at-own-pace {
    grid-column: 2;
    grid-row: 6;
    margin-top: 4px;
  }

  .game-v08 .start-panel .microcopy,
  .game-v08 .why-72h-link,
  .game-v08 .campaign-link {
    display: none;
  }

  .game-v08 .bonus-panel .overlay-logo,
  .game-v08 .result-panel .overlay-logo {
    width: 80px;
  }

  .game-v08 .bonus-panel .text-action {
    min-height: 44px;
  }

  .game-v08 .stats-link,
  .game-v08 .source-link {
    min-height: 44px;
    margin-top: 2px;
    padding: 5px;
  }
}

/* 0.9.1 — reading hierarchy; scroll instead of shrinking type to the viewport. */
.game-v08 .start-panel > p.start-prompt + p,
.game-v08 .bonus-bridge,
.game-v08 .bonus-score,
.game-v08 .result-panel > p,
.game-v08 .share-mission > p,
.game-v08 .prepare-real-kit span,
.game-v08 .status-copy > span {
  font-size: 1rem;
  line-height: 1.5;
}
.game-v08 .start-panel > p.start-prompt { font-size: 1.3rem; line-height: 1.3; }
.game-v08 .start-panel .microcopy,
.game-v08 .start-panel .microcopy strong,
.game-v08 .mission-specs li span,
.game-v08 .eyebrow,
.game-v08 .round-rule,
.game-v08 .timer-label,
.game-v08 .progress-copy,
.game-v08 .choices-heading h2,
.game-v08 .choices-heading > span,
.game-v08 .movement-counter small,
.game-v08 .movement-counter em,
.game-v08 .movement-counter-kicker,
.game-v08 .result-score span,
.game-v08 .share-action small,
.game-v08 .source-link,
.game-v08 .learn-at-own-pace,
.game-v08 .why-72h-link,
.game-v08 .campaign-link {
  font-size: 0.875rem;
  line-height: 1.45;
}
.game-v08 .primary-action,
.game-v08 .share-action,
.game-v08 .text-action,
.game-v08 .bonus-option,
.game-v08 .sound-toggle {
  min-height: 48px;
  height: auto;
  font-size: 1rem;
  line-height: 1.35;
  padding-top: 12px;
  padding-bottom: 12px;
}
.game-v08 .share-mission h3,
.game-v08 .result-panel h2,
.game-v08 .bonus-phase strong,
.game-v08 .choices-heading h2 { text-transform: none; }
.game-v08 .share-mission h3 { font-size: 1.7rem; line-height: 1.15; }
.game-v08 .result-panel h2 { font-size: clamp(2.4rem, 10vw, 3.6rem); line-height: 1.05; }
.game-v08 .bonus-question { font-size: 1.2rem; line-height: 1.4; }
.game-v08 .bonus-feedback,
.game-v08 .share-feedback { font-size: 1rem; line-height: 1.5; }
.game-v08 .item-button { min-height: 82px; height: auto; }
.game-v08 .item-button .item-label,
.game-v08 .item-button .item-label.is-stacked { font-size: 0.875rem; line-height: 1.15; }
.game-v08 .status-message { min-height: 90px; height: auto; }
.game-v08 .status-copy strong { font-size: 1.05rem; line-height: 1.3; }
.game-v08 .share-message-label { display: block; margin: 24px 0 8px; font-size: 1.1rem; font-weight: 700; }
.game-v08 #shareMessage {
  display: block; width: 100%; min-height: 230px; resize: vertical;
  border: 2px solid var(--quake-yellow); border-radius: 0; padding: 14px;
  background: var(--quake-dark-blue); color: white; font: inherit;
  font-size: 1rem; line-height: 1.5; user-select: text; -webkit-user-select: text;
}
.game-v08 .share-actions { margin-top: 18px; gap: 12px; }
.game-v08 .story-preview { margin: 24px 0 16px; }
.game-v08 #storyPreview { display: block; width: min(100%, 320px); height: auto; margin: 0 auto 16px; }
.game-v08 #storyHelp { font-size: 1rem; line-height: 1.5; }
.game-v08 #storyDownload { display: flex; justify-content: center; align-items: center; text-decoration: none; }
.game-v08 [hidden] { display: none !important; }
.game-v08 .share-notice { color: var(--quake-yellow); }
.game-v08 .start-panel,
.game-v08 .bonus-panel,
.game-v08 .result-panel { max-height: none; }
@media (orientation: landscape) and (max-height: 500px) {
  .game-v08 .app-shell { height: auto; grid-template-rows: auto auto auto auto; }
  .game-v08 .item-grid { grid-template-rows: repeat(4, auto); }
  .game-v08 .start-panel { grid-template-rows: auto auto auto auto auto; align-content: start; }
  .game-v08 .start-panel .microcopy,
  .game-v08 .why-72h-link,
  .game-v08 .campaign-link { display: block; }
  .game-v08 .start-panel h2 { font-size: 2.8rem; }
}

/* Match legacy selectors explicitly so landscape never restores miniature copy. */
#startOverlay .start-panel > p:not(.eyebrow):not(.microcopy) { font-size: 1rem; line-height: 1.5; }
#startOverlay .start-panel > p.start-prompt { font-size: 1.3rem; line-height: 1.3; }
#resultOverlay .result-panel > p:not(.eyebrow) { font-size: 1rem; line-height: 1.5; }
#resultOverlay .share-mission > p:not(.share-sequence) { font-size: 1rem; line-height: 1.5; }
#bonusOverlay .bonus-panel > p { font-size: 1rem; line-height: 1.5; }
#bonusOverlay .bonus-panel > p.bonus-question { font-size: 1.2rem; line-height: 1.4; }
.game-v08 .start-panel .museum-credit span,
.game-v08 .missing-list { font-size: 0.875rem; line-height: 1.5; }
.game-v08 .item-label.is-stacked > small { white-space: normal; }
.game-v08 .overlay { scroll-padding-block: 24px; }
@media (max-width: 440px) {
  .game-v08 .item-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .game-v08 .item-button .item-label { overflow-wrap: anywhere; }
}

.game-v08 .source-links .source-link,
.game-v08 .movement-counter strong > span,
.game-v08 .prepare-real-kit small,
.game-v08 .start-visual span { font-size: 0.875rem; line-height: 1.4; }
