:root {
  color-scheme: light;
  font-family: "Trebuchet MS", "Segoe UI", Arial, sans-serif;
  --ink: #244f47;
  --muted: #6c827c;
  --paper: #fffdf6;
  --line: #ded4b6;
  --green: #4f9b76;
  --green-dark: #30755a;
  --gold: #e8b247;
  --coral: #df6e62;
  --shadow: 0 18px 42px rgba(61, 78, 68, .14);
  --soft-shadow: 0 8px 19px rgba(61, 78, 68, .1);
}

* { box-sizing: border-box; }

html {
  min-width: 320px;
  min-height: 100%;
  overflow-y: scroll;
  scrollbar-gutter: stable;
  background: #f5f7eb;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: clip;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 7%, rgba(232, 178, 71, .17) 0 130px, transparent 133px),
    radial-gradient(circle at 94% 10%, rgba(91, 159, 187, .15) 0 165px, transparent 168px),
    linear-gradient(145deg, #f4f7e9, #fffaf0 55%, #eef4ed);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: .12;
  background-image:
    linear-gradient(30deg, transparent 48%, rgba(66, 113, 91, .24) 49% 51%, transparent 52%),
    linear-gradient(-30deg, transparent 48%, rgba(66, 113, 91, .17) 49% 51%, transparent 52%);
  background-size: 44px 44px;
  content: "";
  pointer-events: none;
}

button { color: inherit; font: inherit; }
button:not(:disabled) { cursor: pointer; }
button:focus-visible { outline: 4px solid rgba(232, 178, 71, .65); outline-offset: 4px; }
button:disabled { cursor: default; }
h1, h2, h3, p { margin-top: 0; }

.app {
  width: min(1120px, calc(100% - 32px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 20px 0 50px;
}

.topbar,
.brand,
.top-actions,
.journal-button,
.hero-actions,
.section-heading,
.room-foot,
.game-heading,
.progress-wrap,
.scene-top,
.feedback,
.game-footer,
.mini-progress,
.result-actions,
.result-stats,
.journal-heading {
  display: flex;
  align-items: center;
}

.topbar {
  min-height: 62px;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 19px;
}

.brand {
  min-width: 0;
  gap: 12px;
  padding: 0;
  text-align: left;
  background: none;
  border: 0;
}

.brand-mark {
  display: grid;
  flex: 0 0 auto;
  width: 55px;
  height: 55px;
  place-items: center;
  padding: 4px;
  background: #fff5cf;
  border: 3px solid #decda3;
  border-radius: 18px;
  box-shadow: 0 7px 14px rgba(57, 79, 69, .13);
  transform: rotate(-3deg);
}
.brand-mark svg { display: block; width: 100%; height: 100%; }
.brand strong,
.brand small,
.journal-button b,
.journal-button small { display: block; }
.brand strong { overflow: hidden; font-family: Georgia, serif; font-size: 23px; text-overflow: ellipsis; white-space: nowrap; }
.brand small { margin-top: 3px; color: #8c704a; font-size: 10px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.top-actions { flex: 0 0 auto; gap: 8px; }

.icon-button,
.journal-button {
  min-height: 49px;
  color: var(--ink);
  background: rgba(255, 253, 246, .95);
  border: 2px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 6px 14px rgba(61, 78, 68, .08);
}
.icon-button { width: 49px; padding: 0; font-size: 23px; }
.journal-button { gap: 9px; padding: 5px 13px; text-align: left; }
.journal-button > span:first-child { display: grid; width: 30px; height: 30px; place-items: center; color: #fff; background: var(--green); border-radius: 10px; font-weight: 900; }
.journal-button b { font-size: 12px; line-height: 1.05; }
.journal-button small { margin-top: 3px; color: var(--muted); font-size: 10px; }

.eyebrow {
  margin: 0 0 8px;
  color: #8c6535;
  font-family: Georgia, serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.primary-button,
.secondary-button,
.hint-button,
.start-button {
  display: inline-flex;
  min-height: 53px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 20px;
  font-weight: 900;
  border-radius: 16px;
  transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease;
}
.primary-button { color: #fff; background: var(--green); border: 0; box-shadow: 0 8px 0 var(--green-dark), 0 15px 25px rgba(47, 116, 88, .18); }
.primary-button.compact { min-height: 47px; flex: 0 0 auto; margin-left: auto; padding-inline: 17px; box-shadow: 0 5px 0 var(--green-dark); }
.secondary-button { color: var(--ink); background: #fffdf6; border: 2px solid #d9d2bc; box-shadow: 0 5px 0 #ddd6c3; }
.hint-button { min-height: 48px; color: #72531b; background: #fff4ca; border: 2px solid #e3b953; box-shadow: 0 5px 0 #d6a640; }
.hint-button.wide { width: 100%; margin-top: 14px; }
.start-button { min-height: 45px; padding-inline: 17px; color: #fff; background: var(--accent); border: 0; box-shadow: 0 5px 0 color-mix(in srgb, var(--accent), #24483f 30%); }
.primary-button:not(:disabled):hover,
.secondary-button:not(:disabled):hover,
.hint-button:not(:disabled):hover,
.start-button:not(:disabled):hover,
.icon-button:not(:disabled):hover,
.journal-button:not(:disabled):hover { transform: translateY(-2px); }
.primary-button:not(:disabled):active,
.secondary-button:not(:disabled):active,
.hint-button:not(:disabled):active,
.start-button:not(:disabled):active { transform: translateY(3px); box-shadow: none; }

.hero {
  display: grid;
  min-height: 414px;
  grid-template-columns: minmax(0, 1.05fr) minmax(410px, .95fr);
  align-items: center;
  overflow: hidden;
  background: linear-gradient(120deg, #fffaf0 0 53%, #eaf4e7 53% 100%);
  border: 3px solid #ded4b5;
  border-radius: 38px;
  box-shadow: var(--shadow);
}
.hero-copy { padding: 44px 0 40px 45px; }
.hero h1 { max-width: 590px; margin-bottom: 18px; font-size: clamp(39px, 4.5vw, 55px); font-weight: 800; line-height: 1.03; letter-spacing: -.035em; }
.hero-copy > p:not(.eyebrow) { max-width: 555px; margin-bottom: 25px; color: var(--muted); font-size: 18px; font-weight: 600; line-height: 1.5; }
.hero-actions { flex-wrap: wrap; gap: 12px; }
.hero-progress { display: flex; align-items: center; gap: 12px; margin-top: 31px; color: var(--muted); }
.hero-progress strong { color: var(--ink); font-family: Georgia, serif; font-size: 42px; line-height: 1; }
.hero-progress span { font-size: 13px; }
.hero-visual { min-width: 0; padding: 21px 27px 15px 14px; }
.hero-svg { display: block; width: 100%; height: auto; }

.safety-note,
.adult-note {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 19px;
  padding: 18px 22px;
  background: #fff3c7;
  border: 2px solid #e4c36d;
  border-radius: 23px;
}
.safety-note > span,
.adult-note > span { display: grid; flex: 0 0 auto; width: 48px; height: 48px; place-items: center; background: #fffdf6; border-radius: 15px; font-size: 23px; font-weight: 900; }
.safety-note strong,
.adult-note strong { display: block; margin-bottom: 3px; font-size: 15px; }
.safety-note p,
.adult-note p { margin: 0; color: #786f59; font-size: 13px; line-height: 1.45; }

.rooms-section,
.steps-section { margin-top: 48px; }
.section-heading { justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.section-heading h2 { margin-bottom: 0; font-size: clamp(31px, 4vw, 46px); line-height: 1; }
.section-heading > p { max-width: 310px; margin: 0; color: var(--muted); font-size: 14px; font-weight: 700; line-height: 1.45; text-align: right; }
.rooms-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.room-card {
  overflow: hidden;
  min-width: 0;
  background: var(--paper);
  border: 3px solid #dfd5b8;
  border-radius: 29px;
  box-shadow: 0 10px 0 #ddd6be, var(--soft-shadow);
}
.room-preview { position: relative; color: var(--accent); background: color-mix(in srgb, var(--accent), #fff 87%); border-bottom: 1px solid #e2d9c1; }
.room-preview > span { position: absolute; top: 18px; right: 18px; display: grid; width: 48px; height: 48px; place-items: center; background: #fffdf6; border: 3px solid color-mix(in srgb, var(--accent), #fff 45%); border-radius: 15px; font-size: 23px; box-shadow: var(--soft-shadow); }
.preview-svg { display: block; width: 100%; height: auto; }
.room-copy { padding: 21px 23px 25px; }
.room-copy h3 { margin-bottom: 9px; font-size: 27px; line-height: 1.05; }
.room-copy > p:not(.eyebrow) { min-height: 63px; margin-bottom: 22px; color: var(--muted); font-size: 14px; font-weight: 600; line-height: 1.5; }
.room-foot { justify-content: space-between; gap: 9px; padding-top: 17px; border-top: 1px dashed #ddd3b8; }
.room-foot > span { color: var(--muted); font-size: 11px; }
.room-foot b { color: var(--ink); font-size: 14px; }

.steps-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.steps-grid article {
  display: flex;
  min-height: 128px;
  align-items: center;
  gap: 15px;
  padding: 22px;
  background: rgba(255, 253, 246, .8);
  border: 2px solid #e0d7bf;
  border-radius: 23px;
}
.steps-grid article > span { display: grid; flex: 0 0 auto; width: 48px; height: 48px; place-items: center; color: #fff; background: var(--green); border-radius: 15px; font-family: Georgia, serif; font-size: 23px; font-weight: 800; }
.steps-grid h3 { margin-bottom: 5px; font-size: 17px; }
.steps-grid p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.4; }

.game-shell {
  padding: 31px;
  background: rgba(255, 253, 246, .97);
  border: 3px solid #ded4b5;
  border-radius: 34px;
  box-shadow: var(--shadow);
}
.game-heading { justify-content: space-between; gap: 24px; margin-bottom: 23px; }
.game-heading h1 { margin: 0; font-size: clamp(32px, 4vw, 46px); line-height: 1; }
.progress-wrap { flex: 0 0 auto; gap: 13px; }
.progress-track { width: 300px; height: 13px; overflow: hidden; background: #e5e1d4; border-radius: 20px; }
.progress-track span { display: block; height: 100%; background: var(--accent); border-radius: inherit; }
.progress-wrap b { min-width: 40px; font-size: 15px; }
.patrol-grid { display: grid; grid-template-columns: minmax(0, 1.42fr) minmax(330px, .78fr); align-items: stretch; gap: 19px; }
.scene-card,
.mission-panel {
  min-width: 0;
  background: #fffdf7;
  border: 2px solid #ded5bd;
  border-radius: 27px;
}
.scene-card { overflow: hidden; padding: 16px; }
.scene-top { justify-content: space-between; gap: 12px; margin-bottom: 12px; color: var(--muted); font-size: 12px; font-weight: 800; }
.scene-top b { color: var(--accent); }
.room-scene {
  position: relative;
  overflow: hidden;
  aspect-ratio: 760 / 500;
  background: #f2ebda;
  border: 3px solid color-mix(in srgb, var(--accent), #fff 45%);
  border-radius: 22px;
}
.room-scene > svg { display: block; width: 100%; height: 100%; }
.scene-note { margin: 12px 4px 0; color: var(--muted); font-size: 11px; line-height: 1.4; text-align: center; }
.hotspot {
  position: absolute;
  left: var(--x);
  top: var(--y);
  display: grid;
  width: 104px;
  min-height: 86px;
  place-items: center;
  align-content: center;
  gap: 2px;
  padding: 7px 6px 6px;
  color: var(--ink);
  background: rgba(255, 253, 247, .96);
  border: 3px solid #f2df9e;
  border-radius: 19px;
  box-shadow: 0 7px 0 rgba(118, 98, 59, .19), 0 12px 20px rgba(68, 77, 65, .14);
  transform: translate(-50%, -50%);
  transition: border-color 150ms ease, background 150ms ease, box-shadow 150ms ease;
}
.hotspot > span { font-size: 29px; line-height: 1; }
.hotspot b { max-width: 90px; overflow: hidden; font-size: 11px; line-height: 1.15; text-align: center; text-overflow: ellipsis; white-space: nowrap; }
.hotspot i { position: absolute; top: -10px; right: -9px; display: grid; width: 28px; height: 28px; place-items: center; color: #fff; background: #517f74; border: 3px solid #fff; border-radius: 50%; font-size: 11px; font-style: normal; font-weight: 900; }
.hotspot:not(:disabled):hover { background: #fff7d8; border-color: #d6a93e; }
.hotspot.is-wrong { background: #fff0ed; border-color: #df887f; box-shadow: 0 7px 0 #e9bbb5; }
.hotspot.is-hinted { background: #fff3bb; border-color: #d49f27; box-shadow: 0 0 0 7px rgba(231, 177, 62, .25), 0 7px 0 #dfbd6a; }
.hotspot.is-found { color: #215e45; background: #e9f7e9; border-color: #62a77e; box-shadow: 0 0 0 7px rgba(79, 155, 118, .2), 0 7px 0 #9fc9ac; opacity: 1; }
.hotspot:disabled:not(.is-found) { opacity: .48; }

.mission-panel { display: flex; flex-direction: column; padding: 23px; }
.mission-panel h2 { margin-bottom: 15px; font-size: clamp(25px, 3vw, 34px); line-height: 1.08; }
.mission-copy { margin-bottom: 16px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.scan-list { display: grid; gap: 9px; }
.scan-list span { display: flex; min-height: 45px; align-items: center; gap: 10px; padding: 7px 10px; background: #f5f3ea; border-radius: 14px; color: #526b65; font-size: 13px; font-weight: 800; }
.scan-list i { display: grid; flex: 0 0 auto; width: 29px; height: 29px; place-items: center; color: #fff; background: #71978e; border-radius: 9px; font-style: normal; }
.answers-grid { display: grid; gap: 10px; }
.answer-card {
  display: grid;
  min-height: 74px;
  grid-template-columns: 38px 1fr 25px;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  color: var(--ink);
  text-align: left;
  background: #fff;
  border: 2px solid #dcd7c8;
  border-radius: 18px;
  box-shadow: 0 5px 0 #ded9c9;
}
.answer-card > span { display: grid; width: 36px; height: 36px; place-items: center; color: #fff; background: #6f9990; border-radius: 11px; font-weight: 900; }
.answer-card b { font-size: 14px; line-height: 1.25; }
.answer-card i { font-style: normal; font-size: 19px; font-weight: 900; text-align: center; }
.answer-card:not(:disabled):hover { background: #f1f8f0; border-color: #85b39c; }
.answer-card.is-wrong { color: #903d36; background: #fff0ed; border-color: #e4968e; box-shadow: 0 5px 0 #ecc1bb; }
.answer-card.is-hinted { background: #fff6cf; border-color: #dfb84f; box-shadow: 0 0 0 5px rgba(235, 188, 76, .17), 0 5px 0 #e4cd88; }
.answer-card.is-correct { color: #236047; background: #edf8ec; border-color: #72af8e; box-shadow: 0 5px 0 #add2bc; }
.feedback {
  min-height: 96px;
  justify-content: flex-start;
  gap: 12px;
  margin-top: auto;
  padding: 14px;
  background: #f4f2e9;
  border: 2px solid #ddd7c6;
  border-radius: 19px;
}
.scan-list + .feedback,
.answers-grid + .feedback { margin-top: 15px; }
.feedback > span { display: grid; flex: 0 0 auto; width: 43px; height: 43px; place-items: center; background: #fff; border-radius: 13px; font-size: 20px; }
.feedback > div { min-width: 0; }
.feedback strong { display: block; margin-bottom: 4px; font-size: 15px; }
.feedback p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.4; }
.feedback small { display: block; margin-top: 5px; color: #708179; font-size: 10px; line-height: 1.4; }
.feedback.error { background: #fff0ed; border-color: #e49b94; }
.feedback.hint { background: #fff6d3; border-color: #e1bd59; }
.feedback.found,
.feedback.success { background: #edf8ed; border-color: #8fc0a0; }
.feedback.success { flex-wrap: wrap; }
.feedback.success .primary-button { margin-top: 5px; }
.game-footer { justify-content: space-between; gap: 14px; margin-top: 20px; }
.mini-progress { gap: 8px; color: var(--muted); font-size: 13px; }
.mini-progress span { font-size: 22px; }

.result-card {
  padding: 43px;
  text-align: center;
  background: var(--paper);
  border: 3px solid #ded4b5;
  border-radius: 36px;
  box-shadow: var(--shadow);
}
.result-shield { width: 260px; margin: 0 auto 8px; }
.result-shield svg { display: block; width: 100%; height: auto; }
.result-card h1 { margin-bottom: 13px; font-size: clamp(39px, 6vw, 60px); line-height: 1; }
.result-card > p:not(.eyebrow) { max-width: 680px; margin: 0 auto 17px; color: var(--muted); font-size: 17px; line-height: 1.5; }
.stars { margin: 12px 0 20px; color: #d8d1bd; font-size: 45px; letter-spacing: 7px; }
.stars .on { color: var(--gold); text-shadow: 0 5px 0 #c88e28; }
.result-stats { max-width: 800px; justify-content: center; gap: 14px; margin: 0 auto 28px; }
.result-stats > div { display: grid; flex: 1; min-height: 91px; place-items: center; align-content: center; background: #eef5e9; border: 2px solid #d2dfca; border-radius: 20px; }
.result-stats strong { font-size: 28px; }
.result-stats span { color: var(--muted); font-size: 12px; font-weight: 700; }
.result-actions { flex-wrap: wrap; justify-content: center; gap: 12px; }

.journal-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  margin-bottom: 27px;
  padding: 33px 37px;
  background: var(--paper);
  border: 3px solid #ded4b5;
  border-radius: 31px;
  box-shadow: var(--soft-shadow);
}
.journal-hero h1 { margin-bottom: 9px; font-size: clamp(35px, 5vw, 53px); line-height: 1; }
.journal-hero p:not(.eyebrow) { max-width: 720px; margin: 0; color: var(--muted); font-size: 16px; line-height: 1.45; }
.journal-hero > strong { display: grid; flex: 0 0 auto; width: 130px; height: 102px; place-items: center; align-content: center; color: var(--green-dark); background: #edf7eb; border: 2px solid #b8d5b9; border-radius: 24px; font-family: Georgia, serif; font-size: 42px; }
.journal-hero small { display: block; margin-top: 2px; color: var(--muted); font-family: "Trebuchet MS", sans-serif; font-size: 11px; }
.journal-group {
  margin-top: 22px;
  padding: 25px;
  background: rgba(255, 253, 246, .96);
  border: 3px solid color-mix(in srgb, var(--accent), #fff 55%);
  border-radius: 29px;
}
.journal-heading { gap: 12px; margin-bottom: 18px; }
.journal-heading > span { display: grid; width: 52px; height: 52px; place-items: center; background: color-mix(in srgb, var(--accent), #fff 82%); border-radius: 16px; font-size: 24px; }
.journal-heading h2 { margin: 0; font-size: 29px; }
.journal-heading > b { margin-left: auto; color: var(--accent); font-size: 19px; }
.rules-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.rule-card { display: flex; min-width: 0; min-height: 127px; align-items: flex-start; gap: 12px; padding: 15px; background: #fff; border: 2px solid #ded8c8; border-radius: 19px; }
.rule-card > span { display: grid; flex: 0 0 auto; width: 43px; height: 43px; place-items: center; color: #fff; background: var(--accent); border-radius: 13px; font-size: 19px; font-weight: 900; }
.rule-card small,
.rule-card strong { display: block; }
.rule-card small { margin-bottom: 4px; color: #997448; font-size: 9px; font-weight: 900; letter-spacing: .05em; text-transform: uppercase; }
.rule-card strong { margin-bottom: 5px; font-size: 15px; }
.rule-card p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.4; }
.rule-card.is-locked { background: #f1efe7; }
.rule-card.is-locked > span { background: #c5bfaf; }
.rule-card.is-locked strong,
.rule-card.is-locked p { color: #858178; }
.adult-note { background: #edf5ec; border-color: #afd0b5; }

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; background: linear-gradient(180deg, #fffaf0 0 55%, #eaf4e7 55% 100%); }
  .hero-copy { padding: 38px 40px 10px; }
  .hero-visual { width: min(570px, 100%); margin: 0 auto; padding: 0 25px 20px; }
  .rooms-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .patrol-grid { grid-template-columns: 1fr; }
  .room-scene { max-width: 720px; margin: 0 auto; }
  .mission-panel { min-height: 430px; }
}

@media (max-width: 760px) {
  .app { padding-top: 12px; }
  .brand strong { font-size: 19px; }
  .brand small { display: none; }
  .journal-button b { display: none; }
  .journal-button { min-width: 49px; justify-content: center; padding: 0; }
  .journal-button small { display: none; }
  .steps-grid { grid-template-columns: 1fr; }
  .game-shell { padding: 22px; }
  .game-heading { align-items: flex-end; }
  .progress-track { width: 185px; }
}

@media (max-width: 620px) {
  .app { width: min(100% - 20px, 1120px); }
  .topbar { gap: 8px; }
  .brand { gap: 7px; }
  .brand-mark { width: 47px; height: 47px; }
  .brand strong { max-width: 165px; font-size: 16px; }
  .top-actions { gap: 5px; }
  .icon-button,
  .journal-button { width: 45px; min-width: 45px; min-height: 45px; height: 45px; }
  .hero { border-radius: 28px; }
  .hero-copy { padding: 31px 24px 8px; }
  .hero h1 { font-size: 38px; }
  .hero-copy > p:not(.eyebrow) { font-size: 16px; }
  .hero-actions { display: grid; }
  .hero-actions > button { width: 100%; }
  .hero-progress { margin-top: 25px; }
  .hero-visual { padding-inline: 12px; }
  .safety-note,
  .adult-note { align-items: flex-start; padding: 16px; }
  .rooms-section,
  .steps-section { margin-top: 38px; }
  .section-heading { align-items: flex-start; }
  .section-heading > p { display: none; }
  .section-heading h2 { font-size: 33px; }
  .rooms-grid { grid-template-columns: 1fr; }
  .room-copy > p:not(.eyebrow) { min-height: 0; }
  .game-shell { padding: 16px; border-radius: 26px; }
  .game-heading { display: block; }
  .game-heading h1 { font-size: 31px; }
  .progress-wrap { margin-top: 17px; }
  .progress-track { flex: 1; width: auto; }
  .scene-card { padding: 10px; }
  .room-scene { aspect-ratio: 1 / 1.04; }
  .room-scene > svg { width: 100%; height: 100%; object-fit: cover; }
  .hotspot { width: 88px; min-height: 78px; padding: 6px 4px; border-radius: 17px; }
  .hotspot > span { font-size: 25px; }
  .hotspot b { max-width: 78px; font-size: 10px; }
  .mission-panel { min-height: 0; padding: 17px; }
  .mission-panel h2 { font-size: 27px; }
  .answer-card { min-height: 70px; grid-template-columns: 36px 1fr 23px; padding-inline: 10px; }
  .feedback { align-items: flex-start; }
  .feedback.success .primary-button { width: 100%; margin: 8px 0 0; }
  .game-footer { display: grid; justify-items: stretch; }
  .game-footer > button { width: 100%; }
  .mini-progress { justify-content: center; }
  .result-card { padding: 27px 18px; }
  .result-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
  .result-stats > div { min-height: 80px; }
  .result-stats strong { font-size: 23px; }
  .result-actions { display: grid; }
  .result-actions button { width: 100%; }
  .journal-hero { display: block; padding: 27px 22px; }
  .journal-hero > strong { width: 100%; height: 79px; margin-top: 20px; }
  .journal-group { padding: 17px; }
  .journal-heading h2 { font-size: 23px; }
  .rules-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
