:root {
  color-scheme: light;
  font-family: "Trebuchet MS", "Arial Rounded MT Bold", Arial, sans-serif;
  --ink: #294e50;
  --muted: #6a807f;
  --paper: #fffdf8;
  --line: #d8d2b9;
  --green: #559577;
  --blue: #568da3;
  --gold: #d69a42;
  --coral: #d67668;
  --purple: #806fa4;
  --shadow: 0 20px 46px rgba(50, 74, 70, .14);
}

* { box-sizing: border-box; }
.animal-portrait { display: block; width: 100%; height: auto; object-fit: contain; filter: drop-shadow(0 7px 7px rgba(49, 73, 65, .15)); }
html { min-width: 320px; min-height: 100%; background: #f1f8f4; }
body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: clip;
  color: var(--ink);
  background:
    radial-gradient(circle at 7% 7%, rgba(214, 154, 66, .21) 0 150px, transparent 152px),
    radial-gradient(circle at 96% 92%, rgba(86, 141, 163, .16) 0 190px, transparent 192px),
    linear-gradient(145deg, #eff8f4, #fffaf0 58%, #f2eef8);
}
body::before { position: fixed; inset: 0; z-index: -1; opacity: .12; background-image: radial-gradient(#527976 1px, transparent 1px); background-size: 27px 27px; content: ""; }
button { color: inherit; font: inherit; }
button:not(:disabled) { cursor: pointer; }
button:focus-visible { outline: 4px solid rgba(214, 154, 66, .78); outline-offset: 4px; }
h1, h2, p { margin-top: 0; }

.app { width: min(1120px, calc(100% - 32px)); min-height: 100vh; margin: 0 auto; padding: 22px 0 48px; }
.topbar,
.brand,
.top-actions,
.section-heading,
.game-heading,
.mission-place,
.secret-heading,
.console-heading,
.feedback,
.result-actions { display: flex; align-items: center; }
.topbar { min-height: 66px; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.brand { gap: 12px; min-width: 0; padding: 0; text-align: left; background: none; border: 0; }
.brand-mark { position: relative; display: grid; width: 58px; height: 54px; flex-shrink: 0; place-items: center; color: #fff; background: var(--blue); border: 5px solid #dcecf1; border-radius: 19px; box-shadow: 0 7px 16px rgba(67, 87, 78, .13); transform: rotate(-3deg); }
.brand-mark i,
.brand-mark b { position: absolute; font-size: 20px; font-style: normal; }
.brand-mark i { left: 9px; top: 10px; color: #fff; }
.brand-mark b { right: 8px; bottom: 8px; color: #ffe09b; }
.brand strong,
.brand small { display: block; }
.brand strong { font-size: 24px; font-weight: 900; }
.brand small { margin-top: 3px; color: var(--muted); font-size: 11px; font-weight: 900; letter-spacing: .07em; text-transform: uppercase; }
.top-actions { gap: 10px; }
.quiet-badge,
.back-button { min-height: 49px; flex-shrink: 0; font-weight: 900; background: rgba(255, 253, 248, .94); border: 2px solid var(--line); border-radius: 17px; }
.quiet-badge { display: inline-flex; align-items: center; gap: 7px; padding: 0 16px; color: var(--muted); font-size: 13px; }
.quiet-badge > span { font-size: 20px; }
.back-button { width: 49px; min-width: 49px; padding: 0; font-size: 22px; }
.top-spark { display: grid; width: 46px; height: 46px; place-items: center; color: var(--gold); font-size: 25px; }
.eyebrow { margin: 0 0 8px; color: #39765f; font-family: Georgia, serif; font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.primary-button,
.secondary-button,
.next-button,
.hint-button,
.handoff-button { display: inline-flex; min-height: 52px; align-items: center; justify-content: center; gap: 8px; padding: 0 21px; font-weight: 900; border-radius: 17px; }
.primary-button,
.next-button,
.handoff-button { color: #fff; background: var(--green); border: 0; box-shadow: 0 7px 0 #3d725b; }
.secondary-button,
.hint-button { background: #fff8dd; border: 2px solid #e2c46b; }

.hero {
  display: grid;
  min-height: 500px;
  align-items: center;
  grid-template-columns: 1fr 1fr;
  gap: clamp(34px, 5vw, 62px);
  padding: clamp(38px, 5.5vw, 68px);
  overflow: hidden;
  background: rgba(255, 253, 248, .97);
  border: 3px solid var(--line);
  border-radius: 46px;
  box-shadow: var(--shadow);
}
.hero h1 { margin-bottom: 18px; font-size: clamp(47px, 5.8vw, 68px); font-weight: 900; letter-spacing: -.05em; line-height: .98; }
.hero-copy > p:not(.eyebrow) { margin-bottom: 27px; color: var(--muted); font-size: 18px; font-weight: 800; line-height: 1.52; }
.hero-board { position: relative; min-height: 360px; overflow: hidden; background: linear-gradient(150deg, #dff2eb, #fff0bc); border: 8px solid #fff; border-radius: 38px; box-shadow: 0 20px 38px rgba(57, 75, 70, .18); }
.hero-label { position: absolute; top: 20px; left: 22px; z-index: 5; padding: 8px 12px; color: #fff; font-size: 10px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; background: var(--purple); border-radius: 999px; }
.hero-animal { position: absolute; bottom: -5px; width: 52%; }
.hero-animal svg,
.level-preview svg,
.animal svg,
.result-animal svg { display: block; width: 100%; height: auto; }
.hero-guide { left: -10px; }
.hero-operator { right: -10px; transform: scaleX(-1); }
.hero-code { position: absolute; top: 74px; left: 50%; z-index: 5; display: flex; gap: 5px; padding: 8px; background: #fff; border: 3px solid #d8d0b7; border-radius: 17px; transform: translateX(-50%); }
.hero-code i { display: grid; width: 35px; height: 35px; place-items: center; color: #fff; font-size: 20px; font-style: normal; font-weight: 900; background: var(--blue); border-radius: 10px; }
.hero-code i:nth-child(2) { background: var(--gold); }
.hero-talk { position: absolute; top: 139px; left: 50%; z-index: 5; width: max-content; padding: 9px 13px; color: #fff; font-size: 11px; font-weight: 900; background: var(--green); border-radius: 999px; transform: translateX(-50%); }
.hero-link { position: absolute; top: 190px; left: 50%; z-index: 5; color: var(--purple); font: 900 22px/1 Georgia, serif; transform: translateX(-50%); }
.hero-facts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.hero-facts > span { display: flex; min-height: 47px; align-items: center; gap: 6px; padding: 8px 12px; color: var(--muted); background: #f1f3ec; border-radius: 15px; }
.hero-facts strong { color: var(--ink); font-size: 19px; }
.hero-facts small { font-size: 11px; font-weight: 900; }

.how-section,
.levels-section { margin-top: 48px; }
.section-heading { justify-content: space-between; gap: 24px; margin-bottom: 18px; }
.section-heading h2 { margin: 0; font-size: clamp(32px, 4vw, 45px); font-weight: 900; }
.section-heading > p { max-width: 470px; margin: 0; color: var(--muted); font-size: 14px; font-weight: 800; line-height: 1.45; text-align: right; }
.steps-grid,
.levels-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.steps-grid > article { display: grid; min-height: 132px; align-items: center; grid-template-columns: 62px 1fr; gap: 15px; padding: 21px; background: var(--paper); border: 2px solid var(--line); border-radius: 25px; }
.steps-grid > article > b { display: grid; width: 60px; height: 60px; place-items: center; color: #fff; font: 900 27px/1 Georgia, serif; background: var(--purple); border: 5px solid #e5dff2; border-radius: 19px; }
.steps-grid > article:nth-child(2) > b { background: var(--blue); border-color: #dcecf1; }
.steps-grid > article:nth-child(3) > b { background: var(--green); border-color: #dceee5; }
.steps-grid strong,
.steps-grid small { display: block; }
.steps-grid strong { margin-bottom: 7px; font-size: 18px; }
.steps-grid small { color: var(--muted); font-size: 13px; font-weight: 800; line-height: 1.4; }

.level-card { min-width: 0; min-height: 370px; padding: 24px; overflow: hidden; text-align: left; background: var(--paper); border: 3px solid var(--line); border-radius: 29px; box-shadow: 0 8px 0 #d8d0b7; transition: transform .18s ease, border-color .18s ease; }
.level-card:hover { border-color: var(--accent); transform: translateY(-3px); }
.level-top,
.level-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.level-top > b { color: var(--accent); font: 900 38px/1 Georgia, serif; }
.level-top > small { color: var(--gold); font-size: 12px; font-weight: 900; }
.level-preview { position: relative; display: grid; height: 116px; align-items: end; grid-template-columns: 1fr 46px 1fr; margin: 17px 0; overflow: hidden; background: color-mix(in srgb, var(--accent) 12%, white); border-radius: 20px; }
.level-preview > span { width: 108px; max-width: 100%; }
.level-preview > span:last-child { transform: scaleX(-1); }
.level-preview > i { align-self: center; color: var(--accent); font-size: 27px; font-style: normal; text-align: center; }
.level-copy,
.level-copy > small,
.level-copy > strong,
.level-copy > span { display: block; }
.level-copy > small { color: var(--accent); font-size: 10px; font-weight: 900; text-transform: uppercase; }
.level-copy > strong { margin: 6px 0; font-size: 22px; line-height: 1.1; }
.level-copy > span { min-height: 58px; color: var(--muted); font-size: 13px; font-weight: 800; line-height: 1.4; }
.level-footer { margin-top: 17px; font-size: 11px; font-weight: 900; }
.level-footer > b { color: var(--accent); }
.parent-note { display: flex; align-items: center; gap: 15px; margin-top: 20px; padding: 17px 20px; color: var(--muted); font-size: 13px; font-weight: 800; line-height: 1.4; background: rgba(255, 253, 248, .85); border: 2px dashed var(--line); border-radius: 22px; }
.parent-note > span { font-size: 25px; }
.parent-note p { margin: 0; }

.game-shell,
.result-card { padding: clamp(22px, 4vw, 45px); background: var(--paper); border: 3px solid var(--line); border-radius: 42px; box-shadow: var(--shadow); }
.game-heading { justify-content: space-between; gap: 20px; }
.game-heading h1 { margin-bottom: 7px; font-size: clamp(34px, 4.5vw, 50px); font-weight: 900; letter-spacing: -.04em; line-height: 1; }
.game-heading p:not(.eyebrow) { margin-bottom: 0; color: var(--muted); font-weight: 900; }
.round-badge { display: grid; min-width: 82px; height: 82px; place-items: center; align-content: center; color: #fff; font-family: Georgia, serif; background: var(--accent); border: 6px solid color-mix(in srgb, var(--accent) 25%, white); border-radius: 22px; }
.round-badge strong { font-size: 29px; line-height: 1; }
.round-badge small { margin-top: 4px; font-size: 10px; }
.progress-track { height: 12px; margin: 22px 0 14px; overflow: hidden; background: #ece9df; border-radius: 999px; }
.progress-track span { display: block; height: 100%; background: var(--accent); border-radius: inherit; transition: width .25s ease; }
.role-banner { display: grid; min-height: 58px; align-items: center; grid-template-columns: 1fr auto 1fr; gap: 12px; margin-bottom: 15px; padding: 9px 15px; background: color-mix(in srgb, var(--accent) 10%, white); border: 2px solid color-mix(in srgb, var(--accent) 35%, white); border-radius: 20px; }
.role-banner > span { min-width: 0; }
.role-banner > span:last-child { text-align: right; }
.role-banner b,
.role-banner small { display: block; }
.role-banner b { font-size: 14px; }
.role-banner small { margin-top: 3px; color: var(--muted); font-size: 10px; font-weight: 900; }
.role-banner > i { color: var(--accent); font: 900 18px/1 Georgia, serif; font-style: normal; }
.mission-layout { display: grid; align-items: stretch; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 17px; }
.brief-card,
.secret-card,
.team-card,
.console-card { min-width: 0; padding: 21px; border: 2px solid var(--line); border-radius: 29px; }
.brief-card,
.team-card { background: #eff7f3; }
.secret-card,
.console-card { background: #fffcf5; }
.mission-place { gap: 11px; min-height: 62px; padding: 10px 13px; background: #fff; border-radius: 18px; }
.mission-place > span { display: grid; min-width: 42px; height: 42px; place-items: center; font-size: 22px; background: #f2efe5; border-radius: 13px; }
.mission-place small,
.mission-place strong { display: block; }
.mission-place small { color: var(--muted); font-size: 9px; font-weight: 900; text-transform: uppercase; }
.mission-place strong { margin-top: 3px; font-size: 14px; }
.guide-scene { display: grid; min-height: 320px; align-items: end; grid-template-columns: 46% 54%; gap: 6px; margin-top: 13px; overflow: hidden; background: linear-gradient(155deg, color-mix(in srgb, var(--accent) 14%, white), #fff0c8); border-radius: 24px; }
.guide-scene .animal { align-self: end; width: 112%; margin-left: -8px; }
.guide-scene > div:last-child { align-self: center; padding: 18px 15px 18px 0; }
.guide-scene h2 { margin-bottom: 11px; font-size: 24px; line-height: 1.05; }
.guide-scene p:not(.eyebrow) { margin: 0; color: var(--muted); font-size: 13px; font-weight: 800; line-height: 1.45; }
.secret-heading { gap: 11px; padding: 11px 13px; background: color-mix(in srgb, var(--purple) 12%, white); border: 2px solid color-mix(in srgb, var(--purple) 38%, white); border-radius: 18px; }
.secret-heading > span { display: grid; min-width: 42px; height: 42px; place-items: center; color: #fff; font-size: 20px; background: var(--purple); border-radius: 13px; }
.secret-heading small,
.secret-heading strong { display: block; }
.secret-heading small { color: var(--muted); font-size: 9px; font-weight: 900; text-transform: uppercase; }
.secret-heading strong { margin-top: 3px; font-size: 14px; }
.command-strip { display: flex; min-height: 145px; align-items: center; justify-content: center; flex-wrap: wrap; gap: 7px; margin: 15px 0; padding: 16px 10px; background: #f2f3ed; border-radius: 22px; }
.command-strip > em { color: var(--gold); font-size: 17px; font-style: normal; font-weight: 900; }
.secret-command { position: relative; display: grid; width: 72px; min-height: 91px; place-items: center; align-content: center; gap: 3px; padding: 9px 5px; color: #fff; background: var(--command); border-radius: 17px; box-shadow: 0 5px 0 color-mix(in srgb, var(--command) 70%, black); }
.secret-command > b { position: absolute; top: 5px; left: 6px; display: grid; width: 19px; height: 19px; place-items: center; font-size: 9px; background: rgba(0, 0, 0, .18); border-radius: 50%; }
.secret-command > i { font-size: 27px; font-style: normal; font-weight: 900; line-height: 1; }
.secret-command > small { font-size: 9px; font-weight: 900; text-align: center; }
.speech-tip { display: flex; min-height: 70px; align-items: center; gap: 11px; padding: 11px 13px; background: #eef7f1; border-radius: 18px; }
.speech-tip > span { font-size: 24px; }
.speech-tip p { margin: 0; }
.speech-tip strong,
.speech-tip small { display: block; }
.speech-tip small { margin-top: 4px; color: var(--muted); font-size: 11px; font-weight: 800; line-height: 1.35; }
.handoff-button { width: 100%; margin-top: 14px; }

.team-scene { position: relative; display: grid; min-height: 300px; align-items: end; grid-template-columns: 1fr 45px 1fr; overflow: hidden; background: linear-gradient(155deg, color-mix(in srgb, var(--accent) 14%, white), #fff0c8); border-radius: 24px; }
.team-animal { position: relative; align-self: end; }
.team-animal.operator { transform: scaleX(-1); }
.team-animal > small { position: absolute; bottom: 8px; left: 50%; z-index: 3; min-width: 92px; padding: 6px 9px; color: #fff; font-size: 9px; font-weight: 900; text-align: center; background: var(--blue); border-radius: 999px; transform: translateX(-50%); }
.team-animal.operator > small { transform: translateX(-50%) scaleX(-1); }
.team-animal > small b { display: block; margin-top: 2px; font-size: 8px; }
.team-link { align-self: center; z-index: 4; font-size: 25px; text-align: center; }
.hidden-scheme { display: flex; min-height: 82px; align-items: center; justify-content: center; gap: 12px; margin-top: 12px; padding: 10px 13px; text-align: left; background: #e8efed; border: 2px dashed #9eb5af; border-radius: 18px; }
.hidden-scheme > span { font-size: 23px; }
.hidden-scheme p { margin: 0; }
.hidden-scheme strong,
.hidden-scheme small { display: block; }
.hidden-scheme small { margin-top: 3px; color: var(--muted); font-size: 10px; font-weight: 900; }
.hidden-scheme.revealed { background: #fff8da; border-color: var(--gold); }
.hidden-scheme .command-strip { width: 100%; min-height: auto; margin: 0; padding: 5px; background: transparent; }
.hidden-scheme .secret-command { width: 55px; min-height: 64px; }
.hidden-scheme .secret-command > i { font-size: 21px; }
.hidden-scheme .secret-command > small { display: none; }
.console-heading { align-items: flex-start; justify-content: space-between; gap: 13px; }
.console-heading h2 { margin: 0; font-size: 22px; line-height: 1.15; }
.console-heading > span { display: grid; min-width: 51px; height: 48px; place-items: center; color: #fff; font-size: 24px; background: var(--accent); border-radius: 15px; }
.sequence-progress { display: flex; min-height: 65px; align-items: center; justify-content: center; gap: 6px; margin-top: 14px; padding: 9px; background: #f1f2eb; border-radius: 18px; }
.sequence-progress > span { display: grid; width: 42px; height: 42px; place-items: center; color: var(--muted); background: #fff; border: 3px solid #d9d6ca; border-radius: 13px; }
.sequence-progress > span.active { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(214, 154, 66, .17); }
.sequence-progress > span.done { color: #fff; background: var(--green); border-color: var(--green); }
.sequence-progress > span i { font-size: 20px; font-style: normal; font-weight: 900; }
.sequence-progress > em { color: #c4bfae; font-size: 13px; font-style: normal; font-weight: 900; }
.controls-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.control-button { display: grid; min-height: 104px; place-items: center; align-content: center; gap: 5px; padding: 12px; background: #fff; border: 3px solid #dcd6c5; border-radius: 20px; box-shadow: 0 5px 0 #d6cfbe; }
.control-button:nth-child(odd):last-child { grid-column: 1 / -1; }
.control-button:hover:not(:disabled) { border-color: var(--control); }
.control-button > span { display: grid; width: 46px; height: 46px; place-items: center; color: #fff; font-size: 25px; font-weight: 900; background: var(--control); border-radius: 14px; }
.control-button strong { font-size: 13px; }
.feedback { min-height: 85px; gap: 12px; margin-top: 15px; padding: 12px; background: #f2f3ed; border: 2px solid #dcdbd2; border-radius: 21px; }
.feedback.success { background: #edf8f0; border-color: #9fc7ac; }
.feedback.retry { background: #fff2ee; border-color: #e5b1a8; }
.feedback.hint { background: #fff8d9; border-color: #ead079; }
.feedback.step { background: #eef5f8; border-color: #a9c5d0; }
.feedback-icon { display: grid; min-width: 47px; height: 47px; place-items: center; font-size: 22px; background: #fff; border-radius: 14px; }
.feedback > div { min-width: 0; flex: 1; }
.feedback strong,
.feedback small,
.feedback em { display: block; }
.feedback strong { font-size: 14px; }
.feedback small { margin-top: 4px; color: var(--muted); font-size: 12px; font-weight: 800; line-height: 1.35; }
.feedback em { margin-top: 6px; color: #39765f; font-size: 10px; font-weight: 900; text-transform: uppercase; }
.feedback .hint-button,
.feedback .next-button { min-width: 128px; flex-shrink: 0; padding: 0 14px; font-size: 12px; }

.result-card { display: grid; min-height: 590px; align-items: center; grid-template-columns: .9fr 1.1fr; gap: clamp(30px, 5vw, 65px); }
.result-art { position: relative; min-height: 410px; overflow: hidden; background: linear-gradient(150deg, #e0f3eb, #fff0be); border: 7px solid #fff; border-radius: 35px; box-shadow: 0 18px 35px rgba(57, 75, 70, .17); }
.result-animal { position: absolute; bottom: 17px; width: 57%; }
.result-one { left: -8px; }
.result-two { right: -7px; transform: scaleX(-1); }
.result-title { position: absolute; top: 43px; left: 50%; z-index: 3; padding: 11px 17px; font-size: 13px; font-weight: 900; background: #fff; border: 3px solid #d7d0b7; border-radius: 999px; transform: translateX(-50%); }
.result-link { position: absolute; top: 106px; left: 50%; z-index: 3; color: var(--purple); font: 900 25px/1 Georgia, serif; transform: translateX(-50%); }
.result-copy h1 { margin-bottom: 13px; font-size: clamp(40px, 5vw, 58px); line-height: 1; letter-spacing: -.045em; }
.result-copy > p { color: var(--muted); font-weight: 800; line-height: 1.5; }
.result-stars { margin: 18px 0; color: var(--gold); font-size: 39px; letter-spacing: 5px; }
.result-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.result-stats span { padding: 13px 8px; text-align: center; background: #f1f2eb; border-radius: 17px; }
.result-stats strong,
.result-stats small { display: block; }
.result-stats strong { font-size: 24px; }
.result-stats small { color: var(--muted); font-size: 10px; font-weight: 900; }
.result-copy blockquote { margin: 17px 0; padding: 13px 16px; color: #39765f; font-weight: 900; line-height: 1.35; background: #eef7f1; border-left: 5px solid var(--green); border-radius: 10px 17px 17px 10px; }
.result-actions { flex-wrap: wrap; gap: 11px; }
.error-card { margin-top: 100px; padding: 30px; text-align: center; background: var(--paper); border: 3px solid var(--line); border-radius: 30px; }
.error-card > span { display: block; font: 900 55px/1 Georgia, serif; }
.error-card strong,
.error-card small { display: block; margin-top: 10px; }

@media (max-width: 930px) {
  .hero { grid-template-columns: 1fr; }
  .hero-copy { text-align: center; }
  .hero-board { width: min(540px, 100%); margin: 0 auto; }
  .hero-facts { justify-content: center; }
  .steps-grid { grid-template-columns: 1fr; }
  .levels-grid { grid-template-columns: repeat(2, 1fr); }
  .level-card:last-child { grid-column: 1 / -1; }
  .mission-layout { grid-template-columns: 1fr; }
  .result-card { grid-template-columns: 1fr; }
  .result-art { width: min(480px, 100%); margin: 0 auto; }
}

@media (max-width: 680px) {
  .app { width: min(100% - 20px, 1120px); padding-top: 12px; }
  .topbar { min-height: 53px; margin-bottom: 13px; }
  .brand-mark { width: 47px; height: 44px; border-width: 4px; border-radius: 15px; }
  .brand strong { font-size: 18px; }
  .brand small { display: none; }
  .quiet-badge { width: 47px; min-width: 47px; min-height: 46px; justify-content: center; padding: 0; font-size: 0; }
  .hero { min-height: auto; padding: 33px 20px; border-radius: 31px; }
  .hero h1 { font-size: clamp(42px, 13vw, 54px); }
  .hero-board { min-height: 310px; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 8px; }
  .section-heading > p { text-align: left; }
  .levels-grid { grid-template-columns: 1fr; }
  .level-card:last-child { grid-column: auto; }
  .game-shell,
  .result-card { padding: 20px 14px; border-radius: 29px; }
  .game-heading { align-items: flex-start; }
  .round-badge { min-width: 64px; height: 64px; border-width: 4px; }
  .round-badge strong { font-size: 23px; }
  .role-banner { grid-template-columns: 1fr; text-align: center; }
  .role-banner > span:last-child { text-align: center; }
  .role-banner > i { transform: rotate(90deg); }
  .brief-card,
  .secret-card,
  .team-card,
  .console-card { padding: 15px; border-radius: 23px; }
  .guide-scene { min-height: 285px; grid-template-columns: 43% 57%; }
  .guide-scene h2 { font-size: 21px; }
  .command-strip { min-height: 130px; }
  .secret-command { width: 65px; min-height: 84px; }
  .team-scene { min-height: 270px; }
  .feedback { align-items: stretch; flex-wrap: wrap; }
  .feedback > div { min-width: calc(100% - 62px); }
  .feedback .hint-button,
  .feedback .next-button { width: 100%; }
  .result-art { min-height: 340px; }
  .result-copy { text-align: center; }
  .result-copy blockquote { text-align: left; }
  .result-actions { flex-direction: column; }
  .result-actions button { width: 100%; }
}

@media (max-width: 390px) {
  .brand strong { max-width: 150px; line-height: 1.05; }
  .game-heading h1 { font-size: 30px; }
  .game-heading p:not(.eyebrow) { font-size: 13px; }
  .guide-scene { min-height: 270px; }
  .guide-scene > div:last-child { padding-right: 10px; }
  .guide-scene h2 { font-size: 19px; }
  .secret-command { width: 61px; }
  .command-strip > em { display: none; }
  .team-scene { min-height: 250px; grid-template-columns: 1fr 35px 1fr; }
  .sequence-progress { gap: 3px; }
  .sequence-progress > span { width: 38px; height: 38px; }
  .sequence-progress > em { display: none; }
  .controls-grid { grid-template-columns: 1fr 1fr; }
  .control-button { min-height: 92px; }
}

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