:root {
  --paper: #f5f0e4;
  --card: #fcf8ed;
  --ink: #293f44;
  --muted: #667572;
  --line: #d4d3c3;
  --coral: #da745b;
  --mint: #abc6b8;
  --shadow: #273f4520;
  font-family: "Avenir Next", Avenir, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  padding: env(safe-area-inset-top, 0px) 0 env(safe-area-inset-bottom, 0px);
  background-image: radial-gradient(#807c5f14 0.6px, transparent 0.6px);
  background-size: 5px 5px;
}
button,
input {
  font: inherit;
}
button,
a,
input {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
  color: inherit;
}
button:disabled {
  cursor: wait;
  opacity: 0.6;
}
button {
  touch-action: manipulation;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
canvas:focus-visible {
  outline: 3px solid #327c85;
  outline-offset: 5px;
}
button,
input {
  -webkit-appearance: none;
}
button {
  border: 0;
  background: none;
}
a {
  color: inherit;
  text-decoration: none;
}
[hidden] {
  display: none !important;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  letter-spacing: -1.2px;
}
button {
  transition:
    transform 0.16s,
    background 0.16s,
    box-shadow 0.16s;
}
button:active {
  transform: translateY(2px);
}
.app {
  max-width: 1256px;
  margin: auto;
  padding: 0 46px;
}
.masthead {
  height: 106px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  letter-spacing: 1.6px;
  font-weight: 800;
  line-height: 1.7;
}
.brand-small {
  display: block;
  font-family: Georgia, serif;
  font-size: 21px;
  letter-spacing: 3px;
  line-height: 1;
}
.brand img {
  transform: rotate(-7deg);
}
.edition {
  font-size: 9px;
  letter-spacing: 1.9px;
  color: var(--muted);
}
.masthead nav {
  display: flex;
  gap: 8px;
}
.icon-button {
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-family: Georgia, serif;
  font-size: 20px;
  font-weight: 700;
  background: var(--paper);
}
.icon-button:hover {
  background: #e6e7d8;
}
.icon-button svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.sound-button[aria-pressed="false"] {
  opacity: 0.55;
  position: relative;
}
.sound-button[aria-pressed="false"]::after {
  content: "";
  position: absolute;
  width: 23px;
  height: 2px;
  background: var(--ink);
  transform: rotate(-45deg);
}
.above-game {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 25px 0 17px;
  font-size: 9px;
  letter-spacing: 1.7px;
  font-weight: 700;
}
.above-game p {
  display: flex;
  gap: 8px;
  align-items: center;
}
.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #6f9c80;
}
.above-game b {
  font-family: Georgia, serif;
  font-size: 18px;
  letter-spacing: 0;
  margin-left: 10px;
}
.arena {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  aspect-ratio: 2.04;
  background: #dcebe0;
  border: 1px solid #9bac9d;
  border-radius: 7px 10px 8px 6px;
  box-shadow: 0 5px 0 #c9cbb94d;
}
canvas {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
}

.home-content {
  position: absolute;
  inset: 0;
}
.home-copy {
  position: absolute;
  inset: 0 auto 0 0;
  width: 55%;
  padding: 48px 0 30px 46px;
  background: linear-gradient(90deg, #f8f3e8f7 48%, #f8f3e8cf 77%, #f8f3e800);
}
.eyebrow {
  font-size: 9px;
  line-height: 1.6;
  letter-spacing: 1.6px;
  font-weight: 800;
}
.home-copy .eyebrow {
  font-size: 8px;
  letter-spacing: 1.3px;
}
.home-copy h1 {
  font-size: clamp(42px, 4.6vw, 65px);
  line-height: 1.05;
  margin: 19px 0 16px;
  letter-spacing: -2.7px;
}
.home-copy h1 em {
  font-weight: 400;
  color: #b05e46;
}
.hero-description {
  font-size: 13px;
  line-height: 1.75;
  color: #57645d;
}
.primary {
  background: var(--coral);
  color: #fff9ed;
  border: 1.5px solid #9c513f;
  border-radius: 5px 7px 5px 6px;
  box-shadow: 0 3px 0 #9c513f;
  font-size: 13px;
  font-weight: 750;
  padding: 15px 25px;
  letter-spacing: 0.2px;
  min-height: 48px;
}
.primary:hover {
  background: #cb684f;
  transform: translateY(-1px);
  box-shadow: 0 4px 0 #9c513f;
}
.primary:active {
  box-shadow: 0 1px 0 #9c513f;
  transform: translateY(2px);
}
.start-button {
  margin-top: 24px;
  min-width: 204px;
  text-align: left;
}
.start-note {
  margin-top: 17px;
  font-size: 7px;
  letter-spacing: 0.6px;
  color: #697469;
  display: flex;
  gap: 11px;
  font-weight: 700;
}
.start-note span:last-child {
  display: none;
}
.scene-sticker {
  position: absolute;
  right: 38px;
  top: 30px;
  transform: rotate(10deg);
  width: 103px;
  height: 103px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1.5px dashed #a17b47;
  border-radius: 50%;
  color: #745530;
  background: #f5e5b3eb;
  font:
    italic 14px/1.15 Georgia,
    serif;
  text-align: center;
  box-shadow: 3px 4px 0 #937c5722;
}
.scene-sticker span {
  font-size: 22px;
  margin-top: 4px;
}
.character-speech {
  position: absolute;
  right: 8%;
  bottom: 51%;
  padding: 10px 16px;
  background: #fff9e7;
  border: 1px solid #8a9884;
  border-radius: 50% 46% 43% 15%;
  font:
    italic 12px Georgia,
    serif;
  transform: rotate(-5deg);
  max-width: 185px;
  text-align: center;
  box-shadow: 2px 3px 0 #596a5120;
}
.boarding-label {
  position: absolute;
  bottom: 41px;
  right: 37px;
  font-size: 8px;
  letter-spacing: 2px;
  font-weight: 800;
  transform: rotate(-3deg);
  color: #5f7369;
}
.boarding-label span {
  font-size: 20px;
}
.scene-caption {
  position: absolute;
  bottom: 10px;
  left: 24px;
  font-size: 7px;
  letter-spacing: 1.4px;
  color: #57675b;
  font-weight: 650;
}
.crew-section {
  display: flex;
  align-items: center;
  gap: 30px;
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
}
.section-intro {
  min-width: 243px;
}
.section-intro h2 {
  font-size: 23px;
  margin-top: 8px;
  letter-spacing: -0.7px;
}
.section-intro > p:last-child {
  font-size: 11px;
  color: var(--muted);
  margin-top: 9px;
}
.crew-options {
  display: flex;
  gap: 12px;
  flex: 1;
}
.crew-card {
  position: relative;
  display: flex;
  gap: 6px;
  align-items: center;
  flex: 1;
  min-width: 0;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 5px 8px 4px 7px;
  background: #fcf8ed80;
  padding: 9px 12px 9px 2px;
  min-height: 95px;
}
.crew-card[aria-pressed="true"] {
  background: #e4eadd;
  border: 1.5px solid #6c8e7e;
  box-shadow: 2px 3px 0 #c8d1bc;
}
.crew-card img {
  width: 66px;
  height: 76px;
  object-fit: contain;
}
.crew-card strong {
  display: block;
  font-family: Georgia, serif;
  font-size: 18px;
  margin-bottom: 5px;
}
.crew-card small {
  display: block;
  font-size: 9px;
  line-height: 1.55;
  color: #61716b;
}
.crew-card .check {
  position: absolute;
  top: 7px;
  right: 8px;
  font-size: 9px;
  color: #517764;
}
.crew-card:hover {
  background: #ebecdf;
}
.departure-section {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 32px;
  margin-top: 28px;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}
.section-heading > span {
  font-size: 7px;
  letter-spacing: 1.3px;
  color: #6c7771;
}
.mode-options {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-top: 13px;
}
.mode-button {
  font-size: 10px;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fdf9ee;
  color: #61716c;
}
.mode-button[aria-pressed="true"] {
  color: #faf8e8;
  background: var(--ink);
  border-color: var(--ink);
}
.mode-button:hover {
  box-shadow: 0 2px 0 var(--line);
}
.mode-detail {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 10px;
  color: var(--muted);
  margin-top: 12px;
  line-height: 1.6;
}
.daily-note {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #eee5cf;
  border: 1px solid #d3c6a6;
  border-radius: 2px 5px 4px 3px;
  transform: rotate(-1deg);
  padding: 19px 19px 28px;
  position: relative;
}
.daily-note:before {
  content: "";
  position: absolute;
  left: 40%;
  top: -7px;
  width: 58px;
  height: 15px;
  background: #d9dec890;
  transform: rotate(4deg);
}
.note-star {
  font-size: 43px;
  color: #a77747;
}
.daily-note .eyebrow {
  font-size: 7px;
  letter-spacing: 1px;
}
.daily-note h3 {
  font-size: 21px;
  letter-spacing: -0.5px;
  margin: 5px 0;
}
.daily-note p:not(.eyebrow) {
  font-size: 10px;
  line-height: 1.6;
  max-width: 240px;
  color: #746e59;
}
.stamp-count {
  position: absolute;
  bottom: 10px;
  right: 16px;
  font-size: 7px;
  letter-spacing: 1px;
  font-weight: 700;
  color: #8c7857;
}
.passport {
  padding: 32px 0 23px;
  border-bottom: 1px solid var(--line);
}
.passport h2 {
  font-size: 24px;
  letter-spacing: -0.7px;
  margin-top: 5px;
}
.passport .eyebrow {
  font-size: 8px;
  color: #798278;
}
.text-button {
  font-size: 11px;
  text-decoration: underline;
  text-underline-offset: 4px;
  min-height: 44px;
  padding: 6px 0;
}
.stamp-list {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  margin-top: 22px;
}
.stamp {
  border: 1.5px dashed #c5cabb;
  min-height: 137px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  justify-content: center;
  padding: 14px 9px;
  border-radius: 7px;
  opacity: 0.65;
}
.stamp.earned {
  opacity: 1;
  border-color: #628c7e;
  background: #e2e9da;
  transform: rotate(-2deg);
}
.stamp-icon {
  font:
    32px Georgia,
    serif;
  color: #648d7c;
}
.stamp strong {
  font:
    14px Georgia,
    serif;
  margin: 7px 0;
}
.stamp small {
  font-size: 9px;
  line-height: 1.5;
}
.stamp .earned-label {
  font-size: 7px;
  letter-spacing: 1px;
  margin-top: 8px;
  font-weight: 800;
}
footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 0 25px;
  font-size: 7px;
  letter-spacing: 1px;
  color: #6c786d;
}
footer span:nth-child(2) {
  font-family: Georgia, serif;
  font-style: italic;
  font-size: 11px;
  letter-spacing: 0;
}
.party-setup {
  margin-top: 18px;
}
.party-setup label {
  display: block;
  font-size: 12px;
  font-weight: 700;
}
.party-setup label span {
  font-weight: 400;
  color: var(--muted);
  font-size: 10px;
  margin-left: 6px;
}
.party-setup input,
#shareFallback {
  width: 100%;
  border: 1px solid #b7bdaa;
  border-radius: 5px;
  background: #fffbf0;
  color: var(--ink);
  padding: 12px;
  margin-top: 8px;
  font-size: 14px;
}
.party-setup p {
  color: #a44630;
  font-size: 11px;
  margin-top: 6px;
}
.challenge-notice {
  font-size: 12px;
  line-height: 1.6;
  margin-top: 15px;
  padding: 12px;
  background: #e3e9d9;
  border: 1px dashed #7f9a82;
}
.play-hud {
  position: absolute;
  inset: 20px 22px auto;
  display: flex;
  gap: 15px;
  align-items: flex-start;
  pointer-events: none;
}
.score-ticket {
  display: flex;
  flex-direction: column;
  background: #fff9e7ed;
  border: 1px solid #a3ae96;
  padding: 9px 17px 11px;
  box-shadow: 2px 3px 0 #61736326;
  transform: rotate(-2deg);
  min-width: 115px;
}
.score-ticket strong {
  font:
    40px/1 Georgia,
    serif;
  letter-spacing: -2px;
  margin: 2px 0 5px;
}
.score-ticket > span:last-child {
  font-size: 8px;
  letter-spacing: 1px;
}
.destination-ticket {
  background: #f7f5e3d6;
  padding: 10px 17px;
  min-width: 174px;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.destination-ticket > span {
  font-size: 8px;
  letter-spacing: 1.4px;
}
.destination-ticket strong {
  font:
    22px Georgia,
    serif;
}
.route-track {
  height: 3px;
  background: #bcccb4;
  border-radius: 4px;
  margin-top: 5px;
  overflow: hidden;
}
.route-track span {
  display: block;
  height: 100%;
  background: #678b77;
  width: 0;
  transition: width 0.15s;
}
.pause-button {
  margin-left: auto;
  pointer-events: auto;
  background: #fff9e7e6;
}
.streak-ticket {
  position: absolute;
  top: 119px;
  font:
    21px Georgia,
    serif;
  text-shadow: 0 1px #fff7e1;
}
.streak-ticket span {
  font:
    7px "Avenir Next",
    sans-serif;
  letter-spacing: 1px;
  margin-left: 5px;
}
.lives-ticket {
  position: absolute;
  top: 100px;
  left: 145px;
  font-size: 11px;
  background: #fff6dfdd;
  padding: 5px 8px;
  border-radius: 3px;
}
.game-toast {
  position: absolute;
  top: 29%;
  left: 50%;
  transform: translateX(-50%) rotate(-2deg);
  background: #fff8e5f0;
  border: 1px solid #91a389;
  padding: 11px 20px;
  border-radius: 5px;
  text-align: center;
  font:
    italic 17px Georgia,
    serif;
  max-width: 80%;
  box-shadow: 3px 4px 0 #63847524;
  pointer-events: none;
  z-index: 2;
}
.game-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  background: #2d454352;
  display: flex;
  align-items: flex-start;
  overflow: auto;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(2px);
}
.postcard {
  margin: auto;
  flex-shrink: 0;
  position: relative;
  background: var(--card);
  border: 1px solid #a9b19a;
  border-radius: 4px 8px 4px 5px;
  box-shadow: 6px 8px 0 #263f4536;
  padding: 25px 30px;
  text-align: center;
  max-width: 470px;
  width: 100%;
}
.postcard:before {
  content: "";
  height: 5px;
  position: absolute;
  top: 0;
  left: 8px;
  right: 8px;
  background: repeating-linear-gradient(
    125deg,
    #da816b 0 9px,
    transparent 9px 18px,
    #8ea99a 18px 27px,
    transparent 27px 36px
  );
}
.postcard h2 {
  font-size: 32px;
  margin: 10px 0 8px;
  line-height: 1.08;
  letter-spacing: -1px;
}
.postcard > p:not(.eyebrow) {
  font-size: 11px;
  line-height: 1.6;
  color: #6b766a;
}
.postcard .primary {
  width: 100%;
  margin-top: 12px;
}
.small-postcard {
  max-width: 390px;
  padding: 38px 28px;
}
.small-postcard .primary {
  margin-top: 26px;
}
.small-postcard .text-button {
  margin-top: 10px;
}
.result-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  margin: 18px 0;
  padding: 14px 0;
  border-top: 1px dashed var(--line);
  border-bottom: 1px dashed var(--line);
}
.result-stats > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.result-stats strong {
  font:
    48px/1 Georgia,
    serif;
  letter-spacing: -3px;
}
.result-stats b {
  font:
    22px Georgia,
    serif;
}
.result-stats span {
  font-size: 7px;
  letter-spacing: 0.7px;
}
.result-stats .medal {
  width: 86px;
  height: 75px;
  border: 1px dashed #9eaa82;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  font:
    italic 14px Georgia,
    serif;
  color: #6c815a;
  transform: rotate(8deg);
  background: #e9edda;
}
.result-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 8px;
}
.secondary {
  border: 1px solid var(--line);
  border-radius: 4px;
  min-height: 40px;
  font-size: 10px;
  padding: 8px 12px;
  background: #f4edda;
}
.share-status {
  min-height: 0;
  font-size: 10px !important;
}
.share-status:not(:empty) {
  margin-top: 8px;
}
.postcard .unlock-message {
  background: #e1ead6;
  padding: 6px;
  color: #4e745e !important;
  font-size: 10px;
}
.party-table {
  width: 100%;
  font-size: 11px;
  text-align: left;
  border-collapse: collapse;
  margin: 8px 0;
}
.party-table td {
  padding: 5px;
  border-bottom: 1px solid var(--line);
}
.party-table td:last-child {
  text-align: right;
  font-weight: 700;
}
.party-table tr:first-child {
  color: #a75d45;
}
.touch-controls {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 14px;
}
.touch-controls button {
  flex: 1;
  background: #e6e9da;
  border: 1px solid #a8b49b;
  border-radius: 5px;
  min-height: 65px;
  font-size: 15px;
  font-weight: 800;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}
.touch-controls button:last-child {
  background: #efd3b7;
  border-color: #bda184;
}
.touch-controls span {
  font-size: 24px;
  vertical-align: middle;
  margin-right: 8px;
}
.touch-controls small {
  display: block;
  font-size: 7px;
  letter-spacing: 1px;
  margin-top: 2px;
  color: #667563;
}
.play-footnote {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  color: var(--muted);
  padding: 19px 0;
  gap: 12px;
}
kbd {
  font: 8px monospace;
  border: 1px solid #bfc4b4;
  padding: 3px 5px;
  border-radius: 3px;
  background: #fcf8e9;
}
body[data-playing="true"] .arena {
  aspect-ratio: 1.85;
}
body[data-playing="true"] .scene-caption {
  display: none;
}
body[data-playing="true"] .masthead {
  height: 80px;
}
body[data-playing="true"] .above-game {
  padding-top: 17px;
}
dialog {
  color: var(--ink);
  background: var(--card);
  border: 1px solid #aab69f;
  border-radius: 6px;
  box-shadow: 7px 8px 0 #1c424324;
  padding: 36px;
  width: min(470px, calc(100vw - 32px));
  max-height: calc(100dvh - 40px);
  overflow: auto;
}
dialog::backdrop {
  background: #203c4480;
  backdrop-filter: blur(3px);
}
dialog h2 {
  font-size: 31px;
  margin: 9px 0 24px;
}
.dialog-close {
  position: absolute;
  right: 12px;
  top: 12px;
  width: 30px;
  height: 30px;
  font-size: 22px;
}
.help-steps {
  display: flex;
  flex-direction: column;
  gap: 17px;
}
.help-steps > div {
  display: flex;
  gap: 14px;
}
.help-steps > div > b {
  font:
    italic 20px Georgia,
    serif;
  color: #b78061;
}
.help-steps p {
  font-size: 12px;
  line-height: 1.65;
}
.help-steps strong {
  display: block;
}
.dialog-note {
  font-size: 11px;
  line-height: 1.7;
  margin: 22px 0;
  color: #667666;
}
dialog > .primary {
  width: 100%;
}
.setting {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.setting strong {
  font-size: 14px;
}
.setting small {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-top: 5px;
  line-height: 1.5;
}
.setting input {
  appearance: auto;
  accent-color: #607f6b;
  width: 22px;
  height: 22px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  clip: rect(0, 0, 0, 0);
  overflow: hidden;
  white-space: nowrap;
}
.noscript {
  padding: 20px;
  color: #a24935;
}
.result-quip {
  max-width: 360px;
  margin: auto;
}
@media (min-width: 1000px) and (pointer: fine) {
  .touch-controls {
    max-width: 430px;
    margin: 16px auto 0;
  }
  .touch-controls button {
    min-height: 53px;
  }
  .touch-controls small {
    display: none;
  }
}
@media (max-width: 1100px) {
  .app {
    padding: 0 28px;
  }
  .edition span {
    display: none;
  }
  .home-copy {
    padding: 32px 0 20px 30px;
  }
  .home-copy h1 {
    font-size: 48px;
    margin: 17px 0 12px;
  }
  .hero-description {
    font-size: 12px;
  }
  .start-button {
    margin-top: 20px;
  }
  .scene-sticker {
    width: 84px;
    height: 84px;
    right: 25px;
    font-size: 12px;
  }
  .crew-section {
    gap: 18px;
  }
  .section-intro {
    min-width: 202px;
  }
  .section-intro h2 {
    font-size: 20px;
  }
  .crew-options {
    gap: 8px;
  }
  .crew-card img {
    width: 52px;
  }
  .crew-card {
    padding-right: 8px;
  }
  .crew-card small {
    font-size: 8px;
  }
  .departure-section {
    gap: 22px;
  }
  .mode-button {
    font-size: 9px;
  }
  .daily-note {
    padding: 15px 12px 24px;
    gap: 12px;
  }
}
@media (max-width: 820px) {
  .masthead {
    height: 87px;
  }
  .edition {
    display: none;
  }
  .arena {
    aspect-ratio: 1.68;
  }
  .home-copy {
    width: 61%;
    padding: 32px 0 25px 27px;
  }
  .home-copy h1 {
    font-size: 43px;
  }
  .home-copy .eyebrow {
    font-size: 6px;
  }
  .crew-section {
    display: block;
    padding: 26px 0;
  }
  .section-intro {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 15px;
    flex-wrap: wrap;
  }
  .section-intro .eyebrow {
    width: 100%;
    margin-bottom: -9px;
  }
  .section-intro h2 {
    font-size: 24px;
  }
  .section-intro > p:last-child {
    margin: 0;
  }
  .crew-card {
    padding: 7px 10px;
    min-height: 92px;
  }
  .crew-card img {
    width: 63px;
  }
  .crew-card small {
    font-size: 9px;
  }
  .departure-section {
    grid-template-columns: 1.25fr 1fr;
  }
  .mode-options {
    grid-template-columns: repeat(2, 1fr);
  }
  .daily-note h3 {
    font-size: 20px;
  }
  .daily-note .note-star {
    display: none;
  }
  .section-heading > span {
    display: none;
  }
  .stamp-list {
    grid-template-columns: repeat(3, 1fr);
  }
  footer {
    flex-wrap: wrap;
  }
  footer span:last-child {
    font-size: 6px;
  }
  .character-speech {
    right: 5%;
    bottom: 51%;
    max-width: 140px;
    font-size: 11px;
  }
  .scene-sticker {
    top: 24px;
    right: 24px;
  }
  body[data-playing="true"] .arena {
    aspect-ratio: 1.5;
  }
  .result-postcard {
    padding: 24px;
  }
  .postcard h2 {
    font-size: 29px;
  }
}
@media (max-width: 560px) {
  .app {
    padding: 0 17px;
  }
  .masthead {
    height: 83px;
    gap: 9px;
  }
  .brand {
    font-size: 8px;
    letter-spacing: 1px;
    gap: 8px;
  }
  .brand-small {
    font-size: 17px;
    letter-spacing: 1.8px;
  }
  .brand img {
    width: 34px;
    height: 34px;
  }
  .masthead nav {
    gap: 5px;
  }
  .icon-button {
    width: 34px;
    height: 34px;
    font-size: 18px;
  }
  .icon-button svg {
    width: 17px;
    height: 17px;
  }
  .above-game {
    font-size: 7px;
    letter-spacing: 1px;
    padding: 19px 0 13px;
  }
  .above-game b {
    font-size: 16px;
    margin-left: 4px;
  }
  .arena {
    aspect-ratio: auto;
    height: 496px;
  }
  .home-copy {
    width: 100%;
    height: 67%;
    padding: 29px 25px;
    background: linear-gradient(
      180deg,
      #f8f3e8f7 55%,
      #f8f3e8d9 75%,
      #f8f3e800
    );
  }
  .home-copy h1 {
    font-size: 46px;
    margin: 12px 0 11px;
    letter-spacing: -2px;
  }
  .home-copy .eyebrow {
    font-size: 7px;
    letter-spacing: 1px;
  }
  .hero-description {
    font-size: 12px;
  }
  .start-button {
    margin-top: 17px;
    min-height: 45px;
    font-size: 12px;
    padding: 12px 22px;
  }
  .start-note {
    margin-top: 13px;
    font-size: 7px;
  }
  .scene-sticker {
    top: auto;
    bottom: 18px;
    right: 16px;
    width: 74px;
    height: 74px;
    font-size: 11px;
  }
  .scene-sticker span {
    font-size: 17px;
  }
  .character-speech {
    bottom: 149px;
    right: 12%;
    max-width: 145px;
    font-size: 11px;
  }
  .boarding-label {
    bottom: 14px;
    left: 21px;
    right: auto;
    font-size: 6px;
  }
  .scene-caption {
    display: none;
  }
  .crew-section {
    padding: 24px 0;
    display: block;
  }
  .section-intro h2 {
    font-size: 23px;
  }
  .section-intro > p:last-child {
    font-size: 9px;
  }
  .section-intro .eyebrow {
    font-size: 8px;
  }
  .crew-options {
    gap: 8px;
  }
  .crew-card {
    flex-direction: column;
    text-align: center;
    gap: 0;
    padding: 3px 6px 12px;
    min-height: 158px;
  }
  .crew-card img {
    width: 79px;
    height: 86px;
  }
  .crew-card strong {
    font-size: 18px;
    margin: 0 0 5px;
  }
  .crew-card small {
    font-size: 8px;
    max-width: 97px;
  }
  .crew-card .check {
    right: 5px;
    top: 5px;
  }
  .departure-section {
    grid-template-columns: 1fr;
    gap: 25px;
    margin-top: 22px;
  }
  .mode-options {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-top: 12px;
  }
  .mode-button {
    font-size: 11px;
  }
  .mode-detail {
    font-size: 10px;
  }
  .daily-note {
    padding: 20px 18px 29px;
    gap: 17px;
  }
  .daily-note .note-star {
    display: block;
  }
  .daily-note h3 {
    font-size: 23px;
  }
  .daily-note p:not(.eyebrow) {
    font-size: 11px;
    max-width: 260px;
  }
  .passport {
    padding-top: 28px;
  }
  .passport .eyebrow {
    font-size: 6px;
  }
  .passport h2 {
    font-size: 23px;
  }
  .passport .text-button {
    font-size: 10px;
  }
  .stamp-list {
    gap: 7px;
  }
  .stamp {
    padding: 10px 6px;
    min-height: 142px;
  }
  .stamp strong {
    font-size: 13px;
  }
  .stamp small {
    font-size: 8px;
  }
  footer {
    flex-direction: column;
    text-align: center;
    gap: 10px;
    padding: 23px 0;
  }
  footer span:last-child {
    font-size: 7px;
  }
  body[data-playing="true"] .masthead {
    height: 65px;
  }
  body[data-playing="true"] .above-game {
    padding-top: 13px;
  }
  body[data-playing="true"] .arena {
    height: clamp(350px, 58dvh, 570px);
    aspect-ratio: auto;
  }
  .play-hud {
    inset: 16px 13px auto;
    gap: 10px;
  }
  .score-ticket {
    min-width: 85px;
    padding: 8px 12px;
  }
  .score-ticket strong {
    font-size: 34px;
  }
  .destination-ticket {
    min-width: 112px;
    padding: 8px 11px;
  }
  .destination-ticket > span {
    font-size: 6px;
    letter-spacing: 0.7px;
  }
  .destination-ticket strong {
    font-size: 21px;
  }
  .streak-ticket {
    top: 102px;
    font-size: 19px;
  }
  .streak-ticket span {
    font-size: 6px;
  }
  .lives-ticket {
    top: 90px;
    left: 102px;
    font-size: 9px;
  }
  .game-toast {
    font-size: 14px;
    padding: 10px 14px;
    width: max-content;
    max-width: 88%;
    top: 38%;
  }
  .touch-controls {
    margin-top: 12px;
    gap: 12px;
  }
  .touch-controls button {
    min-height: 67px;
  }
  .play-footnote {
    padding: 14px 0;
    font-size: 9px;
    justify-content: center;
    text-align: center;
  }
  .play-footnote > span:first-child {
    display: none;
  }
  .game-overlay {
    padding: 12px;
  }
  .postcard {
    padding: 22px 19px;
  }
  .postcard h2 {
    font-size: 29px;
    margin-top: 10px;
  }
  .postcard .eyebrow {
    font-size: 7px;
    letter-spacing: 1px;
  }
  .result-stats {
    gap: 17px;
    margin: 13px 0;
    padding: 12px 0;
  }
  .result-stats strong {
    font-size: 44px;
  }
  .result-stats .medal {
    height: 66px;
    width: 73px;
    font-size: 12px;
    padding: 10px;
  }
  .result-actions {
    gap: 10px;
  }
  .result-actions .text-button {
    font-size: 10px;
  }
  .secondary {
    font-size: 9px;
    padding: 7px 9px;
  }
  .result-postcard .primary {
    margin-top: 7px;
    font-size: 12px;
    padding: 12px;
  }
  .party-table td {
    padding: 3px;
  }
  .result-stats span {
    font-size: 6px;
  }
  dialog {
    padding: 30px 23px;
  }
  dialog h2 {
    font-size: 28px;
  }
  #shareFallback {
    font-size: 10px;
    padding: 7px;
  }
}
@media (max-height: 560px) and (orientation: landscape) {
  body[data-playing="true"] .app {
    max-width: 930px;
    padding: 0 max(12px, env(safe-area-inset-right, 0px)) 0
      max(12px, env(safe-area-inset-left, 0px));
  }
  body[data-playing="true"] .masthead,
  body[data-playing="true"] .above-game,
  body[data-playing="true"] .play-footnote {
    display: none;
  }
  body[data-playing="true"] .arena {
    height: calc(100dvh - 20px);
    aspect-ratio: auto;
    margin: 10px 0;
  }
  body[data-playing="true"] .touch-controls {
    position: fixed;
    bottom: max(22px, env(safe-area-inset-bottom, 0px));
    left: max(27px, env(safe-area-inset-left, 0px));
    right: max(27px, env(safe-area-inset-right, 0px));
    pointer-events: none;
    z-index: 3;
    justify-content: space-between;
    margin: 0;
  }
  body[data-playing="true"] .touch-controls button {
    flex: 0 0 95px;
    min-height: 46px;
    background: #f7eddad9;
    pointer-events: auto;
  }
  .touch-controls small {
    display: none;
  }
  .postcard {
    padding: 18px 25px;
    max-width: 470px;
  }
  .postcard h2 {
    font-size: 24px;
    margin: 7px 0;
  }
  .result-stats {
    margin: 8px 0;
    padding: 8px 0;
  }
  .result-stats strong {
    font-size: 35px;
  }
  .result-stats .medal {
    height: 54px;
    font-size: 12px;
  }
  .result-postcard .primary {
    margin-top: 4px;
    min-height: 38px;
    padding: 10px;
  }
  .result-actions {
    margin-top: 3px;
  }
  .game-toast {
    top: 25%;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
.boost-ticket {
  position: absolute;
  right: 0;
  top: 65px;
  width: 158px;
  padding: 9px 12px;
  border: 1.5px solid #986d32;
  border-radius: 6px;
  background: #ffedb8f2;
  box-shadow: 2px 3px 0 #65452325;
}
.boost-ticket strong,
.boost-ticket > span {
  display: block;
}
.boost-ticket strong {
  font-size: 10px;
  letter-spacing: 1px;
}
.boost-ticket > span {
  font-size: 10px;
  margin-top: 3px;
}
.boost-track {
  height: 4px;
  background: #e0c78e;
  margin-top: 6px;
  border-radius: 4px;
  overflow: hidden;
}
.boost-track span {
  display: block;
  height: 100%;
  background: #ac6237;
}
@media (max-width: 560px) {
  .boost-ticket {
    top: 105px;
    width: 139px;
    padding: 7px 10px;
  }
  .boost-ticket strong {
    font-size: 9px;
  }
}
.signature-power {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.signature-power h3 {
  font-size: 23px;
  margin: 5px 0;
}
.signature-power p:last-child {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.6;
}
.power-options {
  display: flex;
  gap: 10px;
}
.power-choice {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--card);
  text-align: left;
}
.power-choice img {
  object-fit: contain;
  flex-shrink: 0;
}
.power-choice strong,
.power-choice small {
  display: block;
}
.power-choice strong {
  font-size: 13px;
}
.power-choice small {
  font-size: 9px;
  line-height: 1.5;
  color: var(--muted);
  margin-top: 5px;
}
.power-choice[aria-pressed="true"] {
  background: #f2e4c2;
  border: 1.5px solid #9f7e45;
  box-shadow: 2px 3px 0 #bca27235;
}
@media (max-width: 560px) {
  .power-options {
    width: 100%;
  }
  .power-choice {
    flex: 1;
    padding: 9px 8px;
    gap: 7px;
  }
  .power-choice img {
    width: 31px;
    height: 44px;
  }
  .power-choice strong {
    font-size: 11px;
  }
  .power-choice small {
    font-size: 8px;
  }
}
