/* Wildillion · Layered Paper World
   The user's uploaded rainforest/reef art is the visual source of truth.
   Load after styles.css, never alongside pixel-theme.css. */
:root {
  color-scheme: light;
  --font-display: Georgia, 'Times New Roman', serif;
  --font-copy: 'Avenir Next', Avenir, 'Segoe UI', Arial, sans-serif;
  --ink: #274936;
  --muted: #5e6b55;
  --faint: #77816d;
  --gold: #98631c;
  --gold-dark: #715026;
  --green: #426e37;
  --red: #a33d33;
  --blue: #276f7e;
  --panel: #f5eed9;
  --panel-2: #eae8ce;
  --line: #c9c9a4;
  --radius: 22px 17px 21px 14px;
  --paper-shadow: 0 2px 0 #fff8e6, 0 7px 0 #bfb38d, 0 9px 3px #354c3455, 0 20px 38px #112f3540;
  --paper-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.72' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3CfeComponentTransfer%3E%3CfeFuncA type='table' tableValues='0 .09'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.65'/%3E%3C/svg%3E");
  background: #526f46;
  color: var(--ink);
  font-family: var(--font-copy);
  font-size: 16px;
  line-height: 1.6;
}
body[data-habitat='ocean'] {
  --ink: #234c58;
  --muted: #566f70;
  --faint: #6c8586;
  --gold: #966321;
  --gold-dark: #72532d;
  --green: #327069;
  --red: #a3423c;
  --blue: #276e84;
  --panel: #f2efdc;
  --panel-2: #e5ece1;
  --line: #b8c7b6;
}
body { overflow-x: clip; }
button, input, select, textarea { font-family: var(--font-copy); }
h1, h2, h3, .brand > span { font-family: var(--font-display); font-weight: 700; letter-spacing: -.035em; }
h1 { font-size: clamp(2rem, 3.2vw, 3rem); }
h2 { font-size: 1.65rem; }
h3 { font-size: 1.2rem; }
a { color: #466735; }
body[data-habitat='ocean'] a { color: #296b78; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible, textarea:focus-visible {
  outline: 3px solid #af762c;
  outline-offset: 4px;
}
.icon { fill: currentColor; stroke: none; stroke-width: 0; shape-rendering: geometricPrecision; image-rendering: auto; }

/* This is the exact reference, not an approximation or the old pixel art. */
.scene {
  background-image: url('/assets/paper/habitats-reference.png');
  background-size: max(200vw, 300.2933vh) auto;
  background-position: left center;
  image-rendering: auto;
}
body[data-habitat='ocean'] .scene { background-position: right center; }
.scene-light, body[data-habitat='ocean'] .scene-light {
  background: linear-gradient(180deg, #1233290b, transparent 32%, #0d3a2c13);
}
.habitat-foreground { display: none; }
.ambient { opacity: .48; }
.site-shell { max-width: 1536px; padding-inline: clamp(18px, 3.2vw, 48px); }
.site-header { min-height: 112px; height: 112px; padding-block: 0; grid-template-columns: 160px 1fr 160px; }
.header-start, .header-tools { gap: 10px; }
.brand { color: #fff9e8 !important; }
.brand > span {
  font-size: clamp(2.25rem, 3.65vw, 3.6rem);
  letter-spacing: -.045em;
  line-height: 1;
  text-shadow: 0 1px 0 #fffdf5, 0 3px 0 #baab79, 0 5px 0 #315640, 0 8px 12px #153e3b55;
}
.brand-gold { color: #ffdd77; }
.brand small {
  color: #fff7de;
  font-size: .75rem;
  letter-spacing: .17em;
  margin-top: 13px;
  text-shadow: 0 1px 3px #234c38;
}
.explore-label { font-size: .75rem; color: #fff9de; letter-spacing: .13em; text-shadow: 0 1px 3px #254636; }
.mantis-button, .icon-button {
  background-color: #f4edce;
  background-image: var(--paper-grain);
  color: #3b603f;
  border: 1px solid #ded1a9;
  border-radius: 16px 11px 15px 10px;
  box-shadow: inset 0 1px 0 #fffdf0, 0 4px 0 #b3aa7e, 0 7px 8px #16382e40;
}
.mantis-button { width: 57px; height: 57px; padding: 5px; }
.mantis-button img { image-rendering: auto; width: 45px; height: 45px; filter: drop-shadow(0 2px 1px #6c5d3d3b); }
.icon-button { width: 44px; height: 44px; }
.icon-button:hover, .mantis-button:hover { background-color: #fff4cc; border-color: #a7a773; }
.menu-lines { background: #dcb657; border-color: #eee0aa; border-radius: 4px 3px; box-shadow: 0 2px 2px #2c4f3733; }
.menu-lines::after { border-color: #39583b; }
/* Scene controls live in the collapsible mantis menu, leaving one header row. */
.site-header > #habitat-switch,
.site-header > .habitat-switch { display: none; }
.site-menu { max-height: calc(100svh - 110px); overflow-y: auto; overscroll-behavior: contain; }
.menu-scenery { margin-top: 14px; padding: 14px 10px 5px; border-top: 1px solid #c5cdae; }
.menu-section-label { display: block; margin: 0 0 10px; color: #78884e; font-size: .75rem; line-height: 1.4; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.menu-scenery-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.site-menu .habitat-choice,
.site-menu .scenery-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 0;
  min-height: 39px;
  padding: 9px 10px;
  border: 1px solid #bec9a0;
  border-radius: 10px 7px 9px 6px;
  background-color: #e8ecd1;
  background-image: var(--paper-grain);
  color: #4c6741;
  font-family: var(--font-copy);
  font-size: .8125rem;
  font-weight: 700;
  line-height: 1.25;
  box-shadow: inset 0 1px 0 #faf8e6, 0 2px 0 #bbc5a0;
}
.site-menu .habitat-choice .icon,
.site-menu .scenery-button .icon { width: 17px; height: 17px; }
.site-menu .habitat-choice:hover:not(:disabled),
.site-menu .scenery-button:hover:not(:disabled) { background-color: #dce5bd; border-color: #9aad7d; }
.site-menu .habitat-choice[aria-pressed='true'] { background-color: #67844c; color: #fff9df; border-color: #5c7742; box-shadow: inset 0 1px 0 #93aa72, 0 2px 0 #4e693b; }
body[data-habitat='ocean'] .site-menu .habitat-choice[aria-pressed='true'] { background-color: #4c8083; border-color: #3f7377; box-shadow: inset 0 1px 0 #81aaa6, 0 2px 0 #39686c; }
.site-menu .scenery-button { width: 100%; margin-top: 9px; background-color: #eee4be; border-color: #ccbc8c; color: #766037; box-shadow: inset 0 1px 0 #fff4d8, 0 2px 0 #c3b181; }
.menu-scenery-options .scenery-button { grid-column: 1 / -1; margin-top: 2px; }
.site-menu .scenery-button:hover:not(:disabled) { background-color: #f3e8c5; border-color: #b5a16f; }
body[data-scenery='true'] .site-menu,
body[data-scenery='true'] .menu-backdrop { visibility: visible; pointer-events: auto; }
body[data-scenery='true'] .content-layout, body[data-scenery='true'] .site-footer, body[data-scenery='true'] #connection-banner { visibility: hidden; pointer-events: none; }
body[data-scenery='true'] .scene-light { background: transparent; }
body[data-scenery='true'] .site-shell { min-height: 100svh; }

/* A little field journal made from stacked, lightly textured paper. */
.content-layout { gap: 30px; }
.panel, dialog {
  position: relative;
  background-color: var(--panel);
  background-image: var(--paper-grain);
  border: 1px solid #e3dcc0;
  border-radius: var(--radius);
  box-shadow: var(--paper-shadow);
  color: var(--ink);
  backdrop-filter: none;
}
.panel::before {
  content: '';
  pointer-events: none;
  position: absolute;
  inset: 7px;
  border: 1px solid #a6af812f;
  border-radius: 17px 12px 16px 9px;
}
.panel > * { position: relative; }
.panel-inner { padding: clamp(22px, 2.7vw, 34px); }
.eyebrow, .mode-kicker, .daily-badge {
  color: #728345;
  font-size: .8125rem;
  letter-spacing: .12em;
  font-weight: 800;
  line-height: 1.4;
}
body[data-habitat='ocean'] .eyebrow, body[data-habitat='ocean'] .mode-kicker { color: #477c80; }
.fine { font-size: .875rem; line-height: 1.6; }
.page-heading { margin: 24px 0 18px; }
.page-heading > div > h1, .page-heading > div > .eyebrow, .page-heading > div > p {
  color: #fff9e6;
  text-shadow: 0 2px 6px #194535, 0 1px 2px #194535;
}
.page-heading > .quiet-button {
  background-color: #f3ecd6;
  background-image: var(--paper-grain);
  box-shadow: 0 3px 0 #b7ae87, 0 5px 7px #224d3338;
  color: var(--ink);
}
.home-intro { min-height: 185px; padding: 16px 0 28px; text-shadow: none; }
.home-intro h1 { color: #fff9e7; font-size: clamp(2.3rem, 4vw, 3.65rem); text-shadow: 0 2px 0 #375c3c, 0 4px 12px #244d3d4f; margin-bottom: 11px; }
.home-intro p { color: #fffde8; text-shadow: 0 1px 4px #1f4b36; font-size: 1rem; }
.theme-pill {
  border: 1px solid #e5dfbd;
  border-radius: 12px 16px 13px 10px;
  background-color: #eee9cf;
  background-image: var(--paper-grain);
  color: #3a603e;
  box-shadow: 0 3px 0 #a9aa7d, 0 6px 7px #254b3433;
  font-size: .8125rem;
  letter-spacing: .05em;
  padding: 7px 13px;
  margin-bottom: 18px;
}
.welcome-bar, .home-bottom { background: #d6ddb338; border-color: #c7c9a9; padding: 16px 24px; }
.welcome-bar strong { font-size: .9375rem; }
.welcome-bar span, .home-bottom { font-size: .875rem; }
.text-button { color: #426a3c; font-weight: 700; }
.mode-card { padding: 24px; }
.mode-card + .mode-card { border-color: #c9c9ab; }
.mode-card h2 { font-size: 1.5rem; line-height: 1.2; margin-bottom: 12px; }
.mode-card > p { font-size: .9375rem; line-height: 1.6; min-height: 70px; }
.mode-meta { color: #556e4c; font-size: .8125rem; line-height: 1.55; margin-bottom: 20px; }
.mode-status { color: #587544; font-size: .8125rem; line-height: 1.5; }
.mode-emblem { width: 56px; height: 54px; color: #5c7742; background-color: #dee3bb; background-image: var(--paper-grain); border: 1px solid #c7d09a; border-radius: 18px 13px 19px 12px; padding: 11px; box-shadow: 0 3px 0 #b0bc82, 0 5px 5px #6b784326; margin-bottom: 20px; }
.mode-emblem .icon { width: 32px; height: 32px; }
.mode-card:nth-child(2) .mode-emblem { background-color: #ebd294; border-color: #d8bc78; color: #87612c; box-shadow: 0 3px 0 #c4a567, 0 5px 5px #78654326; }
.mode-card:nth-child(3) .mode-emblem { background-color: #c9dcd4; border-color: #aec7bc; color: #436f6a; box-shadow: 0 3px 0 #98b6a9, 0 5px 5px #43706c26; }
.primary-button, .secondary-button, .quiet-button {
  border-radius: 13px 9px 12px 8px;
  font-family: var(--font-copy);
  font-size: .9375rem;
  font-weight: 800;
  min-height: 46px;
  padding: 12px 18px;
  transition: transform .14s ease, box-shadow .14s ease, background-color .14s ease;
}
.primary-button {
  background-color: #e9bc58;
  background-image: var(--paper-grain);
  color: #4c4024 !important;
  border: 1px solid #f4d488;
  box-shadow: inset 0 1px 0 #ffedb2, 0 4px 0 #a9863f, 0 6px 7px #8b74302b;
}
.primary-button:hover:not(:disabled) { background-color: #f0c869; background-image: var(--paper-grain); transform: translateY(-2px); box-shadow: inset 0 1px 0 #fff0bd, 0 6px 0 #a9863f, 0 10px 10px #8b743026; }
.primary-button:active:not(:disabled) { transform: translateY(3px); box-shadow: inset 0 1px 0 #efd18d, 0 1px 0 #a9863f; }
.secondary-button {
  background-color: #dce4bf;
  background-image: var(--paper-grain);
  border: 1px solid #bac993;
  color: #3d613b;
  box-shadow: inset 0 1px 0 #f1f4dc, 0 3px 0 #a4b37e, 0 5px 6px #6573441c;
}
.secondary-button:hover:not(:disabled) { background-color: #e4eccb; border-color: #91a267; }
.quiet-button { background: #eff0db; border-color: #bec9a8; color: var(--muted); }
.quiet-button:hover:not(:disabled) { color: var(--ink); border-color: #a6b580; background: #e3e9cf; }
.button-row { gap: 12px; }

/* Launch screen: compact enough to start, with the paper landscape above it. */
body[data-page='intro'] #main { padding-top: 88px; }
body[data-page='intro'] .page-heading { margin-top: 0; }
.intro-heading .eyebrow { display: flex; gap: 8px; align-items: center; color: #fff9df !important; margin: 0; font-size: .875rem; text-shadow: 0 1px 4px #204e35; }
.intro-heading .eyebrow .icon { width: 18px; height: 18px; }
.intro-panel { max-width: 920px; }
.intro-panel .panel-inner { padding: 27px 30px 23px; }
.mode-hero { margin-bottom: 22px; gap: 20px; }
.mode-hero h1 { font-size: clamp(2.3rem, 3.45vw, 3.2rem); line-height: 1.05; margin-bottom: 12px; color: var(--ink); text-shadow: none; text-transform: none; }
.mode-hero p { font-size: 1rem; line-height: 1.65; margin: 0; max-width: 600px; }
.mode-hero .mode-kicker { margin-bottom: 10px; }
.mode-hero > .mode-emblem { width: 82px; height: 84px; padding: 18px; margin: 0; background-color: #dfe6c0; background-image: var(--paper-grain); border: 1px solid #c1cc98; border-radius: 25px 17px 22px 15px; box-shadow: 0 4px 0 #acb980, 0 8px 9px #52663826; }
.mode-hero > .mode-emblem .icon { width: 46px; height: 46px; }
.rule-list, .intro-facts { border: 1px solid #cbd0af; background: #e6e8cb; border-radius: 13px 9px 11px 8px; margin-bottom: 22px; }
.rule-list > div { padding: 13px 16px; min-width: 0; }
.rule-list > div + div { border-color: #c8ccaa; }
.rule-list strong { display: flex; gap: .25em; flex-wrap: wrap; align-items: baseline; color: #58713e; line-height: 1.2; font-size: 1.4rem; margin-bottom: 6px; }
.rule-list span { font-size: .875rem; line-height: 1.4; }
.intro-facts strong .stat-number, .intro-facts strong .stat-unit { display: inline; font: inherit; color: inherit; line-height: inherit; }
.intro-facts strong .stat-number { white-space: nowrap; }
.intro-footer { margin-top: 0; gap: 16px; align-items: center; }
.intro-footer .fine { margin: 0; }
.attempt-note { font-size: .8125rem; line-height: 1.6; color: #67715b; background: #e2e4c252; border-left: 3px solid #a8b77b; padding: 10px 13px; margin: 18px 0 0; border-radius: 0 8px 8px 0; }
.intro-rules { margin-top: 17px; border-top: 1px solid #ccd1ae; }
.intro-rules > summary { padding: 13px 0 0; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 10px; color: #526d40; font-size: .9375rem; font-weight: 700; list-style: none; }
.intro-rules > summary::-webkit-details-marker { display: none; }
.intro-rules > summary .icon { width: 18px; height: 18px; }
.intro-rule-content { padding-top: 14px; font-size: .875rem; line-height: 1.7; color: var(--muted); }
.intro-rule-content p { margin-bottom: 12px; }

/* The active game keeps its readable paper surface and a visible clock. */
.game-panel { margin-top: 24px; }
.game-topbar { background-color: #e5e8ca; background-image: var(--paper-grain); border-color: #c6cba8; padding: 16px 24px; }
.game-mode-name { color: #52723d; font-size: .875rem; letter-spacing: .055em; }
.game-stage-label { font-size: .875rem; color: var(--muted); margin-top: 3px; }
.score-label { color: #657257; font-size: .75rem; }
.score-label strong { color: #456a36; font-size: 1.55rem; font-weight: 800; }
.timer { color: #826328; background: #f1deb0; border: 1px solid #d3bb80; border-radius: 13px 9px 12px 8px; box-shadow: inset 0 1px 0 #fff2ce, 0 3px 0 #c0a66b; font-size: 1.3rem; font-variant-numeric: tabular-nums; padding: 8px 12px; }
.timer.urgent { color: #903b2e; background: #f1ceba; border-color: #d89f80; }
.timer.paused { color: #306f79; background: #d9e7df; }
.progress-track { gap: 6px; padding-inline: 24px; margin-top: 20px; }
.progress-track span { background: #d4d8bb; height: 6px; border-radius: 2px 5px 3px 4px; box-shadow: inset 0 1px 1px #9da77b45; }
.progress-track .done { background: #7e9b5d; }
.progress-track .current { background: #cfa64d; box-shadow: 0 1px 1px #a58d4b44; }
.question-heading { color: var(--ink); font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1.3; letter-spacing: -.025em; margin-top: 4px; }
.question-instruction { font-size: .9375rem; }
.animal-grid { gap: 14px; }
.animal-card {
  background-color: #fff9e9;
  background-image: var(--paper-grain);
  border: 1px solid #cfceaa;
  border-radius: 18px 12px 17px 10px;
  box-shadow: 0 3px 0 #c8c5a2, 0 5px 8px #6e79522a;
  padding: 14px 12px;
  min-height: 166px;
  color: var(--ink);
  transition: transform .16s ease, box-shadow .16s ease, background-color .16s ease;
}
.animal-card:nth-child(2n) { border-radius: 12px 18px 10px 17px; }
.animal-card:hover:not(:disabled) { border-color: #9eae73; background-color: #fffcef; transform: translateY(-3px); box-shadow: 0 6px 0 #c2c4a0, 0 10px 13px #6e79522a; }
.animal-card.selected { border: 2px solid #b28936; background-color: #f7e9bd; padding: 13px 11px; box-shadow: 0 3px 0 #b79e63, 0 6px 9px #7c733b2b; }
.animal-card.correct { background-color: #e6eed3; border-color: #87a264; }
.animal-card.incorrect { background-color: #f3ddd0; border-color: #ca9c86; }
.animal-card :is(img, .animal-art), .animal-card .animal-sprite { width: 144px; height: 102px; object-fit: contain; image-rendering: auto; filter: drop-shadow(0 4px 3px #5e6e4126); }
.animal-card strong { color: var(--ink); font-size: .9375rem; line-height: 1.35; margin-top: 8px; }
.animal-card .animal-detail { color: var(--muted); font-size: .8125rem; }
.animal-card .option-key { color: #8b9777; font-size: .75rem; left: 11px; top: 9px; }
.animal-card .pick-mark { color: #86692b; border: 1px solid #b5bc92; border-radius: 7px 5px; background: #f7f2dc; width: 23px; height: 23px; }
.animal-card.selected .pick-mark { color: #fff8da; background: #ac893d; border-color: #ac893d; }
.animal-card.broken::before { color: #98a77a; }
.selection-count, .sync-label { color: var(--muted); font-size: .875rem; }
.sync-label.saving { color: #8e6b2c; }
.sync-label.error { color: #a54435; }
.game-bottom { border-color: #c6ceae; background: #e1e7ca44; color: var(--muted); font-size: .8125rem; }
.practice-badge { background: #e0e9dc; border-color: #a4bb9d; color: #4c7356; border-radius: 6px 4px; font-size: .75rem; padding: 4px 8px; }
.daily-badge { font-size: .75rem; }
.old-day { color: #86672b; background: #edddb2; border-color: #c7b075; font-size: .875rem; }
.callout { background: #e0e5c666; color: var(--muted); border-left-color: #9eb67c; border-radius: 0 10px 8px 0; font-size: .9375rem; }
.callout.gold { border-color: #c8a357; }

/* A little paper-and-twine scale with layered cardstock weights. */
.scale-ground { background: #8a9a6b24; height: 15px; filter: blur(2px); }
.scale-base { background-color: #b6a17b; background-image: var(--paper-grain); border: 1px solid #9c825b; border-radius: 10px 8px 4px 5px; box-shadow: inset 0 2px 0 #d6c4a2, 0 3px 1px #705a3c40; }
.scale-pillar { background-color: #c8b28a; background-image: var(--paper-grain); border: 1px solid #a88d64; border-radius: 7px 7px 2px 2px; box-shadow: inset 3px 0 0 #dfcba6, 3px 0 2px #82704e29; }
.scale-pivot { background: #e7d2a3; border: 5px solid #a4ad7e; box-shadow: 1px 2px 2px #7a805838; }
.scale-beam { background-color: #cab68a; background-image: var(--paper-grain); border: 1px solid #a38c61; height: 10px; border-radius: 5px 3px 4px 4px; box-shadow: inset 0 2px 0 #ead4a8, 0 2px 2px #72654244; transition-timing-function: ease-in-out; }
.scale-pan { border-bottom: 9px solid #94a16a; border-radius: 0 0 50px 50px; background: linear-gradient(transparent 81%, #b6bf8b77); }
.scale-pan::before, .scale-pan::after { width: 2px; background: #9c8e68; box-shadow: 1px 0 0 #d4c8a5; }
.pan-animals :is(img, .animal-art), .station-drop :is(img, .animal-art), .mini-animal :is(img, .animal-art), .journey-stop :is(img, .animal-art) { image-rendering: auto; filter: drop-shadow(0 2px 1px #6c6d4726); }
.target-weight { background-color: #799278; background-image: var(--paper-grain); color: #fff6d6; border: 1px solid #546f54; border-radius: 17px 15px 6px 7px; box-shadow: inset 2px 2px 0 #a8b599, inset 0 -5px 0 #607c60, 1px 3px 3px #536f3d40; font-size: .875rem; }
.target-weight::before { border-color: #728c6a; border-width: 4px; border-radius: 9px 8px 0 0; }
.scale-metrics { border-color: #c6cbaa; background: #e7e9d0; border-radius: 12px 9px 11px 8px; }
.scale-metrics > div + div { border-color: #c6cbaa; }
.scale-metrics small { font-size: .8125rem; }
.scale-metrics strong { font-size: 1.35rem; color: #56723b; }
.weight-meter { background: #d2d8b5; height: 11px; box-shadow: inset 0 2px 2px #a5af7c55; }
.weight-meter > span { background: #8fa566; box-shadow: inset 0 2px 0 #bbca91; }
.weight-meter .perfect-zone { border-color: #bd8f35; background: #e5b74b38; border-radius: 3px; }
.weight-meter.over > span { background: #c47e67; }
.meter-caption, .scale-note { font-size: .8125rem; }

/* Folded field cards and a four-stop expedition trail. */
.animal-tags { gap: 5px; margin-top: 11px; }
.animal-tags .tag { font-size: .8125rem; color: #4f6b43; background: #e1e7c8; border-color: #c3cca2; border-radius: 6px 4px 7px 3px; padding: 3px 6px; }
.assigned-badge { background: #d7dfb6; color: #55703b; border-color: #a4b67b; font-size: .75rem; border-radius: 6px 4px; }
.station { border-color: #c1caa2; border-radius: 17px 12px 15px 10px; background-color: #faf5e4; background-image: var(--paper-grain); box-shadow: 0 3px 0 #c5c9a8, 0 5px 6px #64744b20; }
.station.active-target { border-color: #b5903e; }
.station-heading { border-color: #ccd2b2; background: #e1e7c588; padding: 13px 15px; font-size: .9375rem; }
.station-number { border-radius: 50% 42% 49% 44%; background: #92a16a; color: #fff8dc; box-shadow: 0 2px 0 #788753; font-size: .8125rem; width: 25px; height: 25px; }
.station-conditions { font-size: .9375rem; padding: 13px 15px; }
.station-conditions .condition-label { font-size: .75rem; color: #778264; }
.condition.pass { color: #47753d; }
.condition.fail { color: #a34c3a; }
.station-drop { border-color: #b7c199; background: #e5e8ce77; color: #687653; border-radius: 10px 8px 9px 6px; font-size: .875rem; }
.station-drop.has-animal { background: #e8edcf; color: var(--ink); }
.station-drop:hover:not(:disabled) { border-color: #93a272; color: #456a38; }
.station-clear { color: #6c7655; background: #e4e6cb; border-radius: 5px; }
.assign-hint { border-color: #c8bd87; background: #efe5bf; color: #80713f; border-radius: 11px 7px 10px 6px; font-size: .875rem; }

.review-banner { background: #e1e8c8; border-color: #b1c28f; border-radius: 18px 12px 17px 10px; box-shadow: 0 3px 0 #bcc9a0; }
.review-banner.low { background: #eee2c4; border-color: #cdb883; }
.review-score, .result-total, .journey-stop .points { color: #778945; font-family: var(--font-display); font-weight: 700; }
.review-banner h2 { font-size: 1.4rem; }
.review-banner p { font-size: .9375rem; }
.review-score span { font-family: var(--font-copy); font-size: .75rem; }
.review-explanation { color: #55694b; font-size: 1rem; }
.source-links { font-size: .8125rem; }
.source-links a { color: #527f4e; }
.result-emblem { color: #ac863c; width: 54px; height: 54px; filter: drop-shadow(0 3px 1px #ae994e44); }
.result-hero { padding: 33px 24px 25px; }
.result-hero h1 { font-size: 2.2rem; }
.result-total { font-size: 4.8rem; }
.result-total small { font-family: var(--font-copy); font-size: 1.25rem; }
.result-hero p { font-size: .9375rem; }
.result-rank { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 7px; color: var(--muted); }
.result-rank strong { color: var(--ink); }
.result-rank span { padding: 2px 7px; border: 1px solid #b7c397; border-radius: 8px 5px 7px 4px; background: #e8ebce; font-size: .75rem; }
.score-tile { background: #e3e8ca; border-color: #b7c296; border-radius: 11px 8px 10px 6px; padding: 10px 12px; box-shadow: 0 3px 0 #c2cbaa; }
.score-tile strong { color: #5e813e; font-size: 1.15rem; }
.score-tile small { font-size: .6875rem; }
.score-tile.low strong { color: #92733a; }
.review-item { border-color: #c6cdae; }
.review-item > summary { font-size: .9375rem; }
.review-item > summary strong, .review-item > summary::after { color: #9b7938; }
.review-list > h2 { font-size: 1.45rem; }
.answer-label { color: #5b813f; font-size: .8125rem; }
.answer-label.wrong { color: #ad5b44; }
.weight-table { font-size: .875rem; }
.weight-table th, .weight-table td { border-color: #c7cfb0; }
.weight-table th { font-size: .75rem; }
.weight-table td:last-child { font-size: .8125rem; }
.best-combination { background: #e7ebcf; border-color: #b2c293; color: #597345; border-radius: 11px 7px 10px 6px; font-size: .9375rem; }
.journey-stop { border-color: #b8c69a; background-color: #e8edcf; background-image: var(--paper-grain); border-radius: 15px 11px 14px 9px; box-shadow: 0 3px 0 #c0cba3; }
.journey-stop + .journey-stop::before { border-color: #a1b276; }
.journey-stop.low { border-color: #c7b17b; }
.journey-stop h3 { font-size: 1rem; letter-spacing: -.02em; }
.journey-stop p { font-size: .8125rem; }
.journey-stop .eyebrow { font-size: .75rem; }

/* The same paper system extends to the board, settings, menus and dialogs. */
input, select, textarea { border-color: #b7c19e; border-radius: 10px 7px 9px 6px; background-color: #fffbec; color: var(--ink); box-shadow: inset 0 2px 3px #7b8c5f12; }
select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%23597146' stroke-width='2'/%3E%3C/svg%3E"); }
.field { font-size: .875rem; }
.board-tabs button { background: #e3e8cb; border-color: #bac69b; border-radius: 10px 8px 9px 6px; font-size: .875rem; font-weight: 700; }
.board-tabs button[aria-pressed='true'] { background: #a2b778; border-color: #849f59; color: #263f2c; box-shadow: inset 0 1px 0 #c6d3a0, 0 2px 0 #7d9655; }
.board-heading { border-color: #c8cfb0; }
.board-heading h2 { font-size: 1.5rem; }
.board-heading > span { font-size: .75rem; }
.board-meta { margin: 4px 0 0; color: var(--muted); font-size: .875rem; }
.board-heading > .board-status { align-self: start; padding: 3px 8px; border: 1px solid #b8c399; border-radius: 8px 5px 7px 4px; background: #e8ebce; color: var(--ink); font-weight: 700; }
.board-status:is([data-status='settling'], [data-status='void']) { border-color: #cdb883; background: #eee2c4; }
.board-personal { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin: 14px 0; padding: 12px 16px; border: 1px solid #bac69b; border-radius: 12px 8px 10px 6px; background-color: #e8ebce; background-image: var(--paper-grain); }
.board-personal h3 { margin: 0 0 4px; font-size: 1rem; }
.board-personal p { margin: 0; overflow-wrap: anywhere; color: var(--muted); font-size: .875rem; }
.board-personal-rank { color: var(--ink); font-family: var(--font-display); font-size: 1.625rem; line-height: 1; }
.board-table th { font-size: .75rem; }
.board-table td { border-color: #d0d4b7; }
.board-table td:first-child { color: #94713c; }
.board-table tr.you { background: #dce5bd; }
.you-label { color: #7e7037; font-size: .75rem; }
.board-foot { font-size: .875rem; }
.empty-state .icon { color: #9ba768; }
.empty-state p { font-size: .9375rem; }
.settings-section h2 { font-size: 1.5rem; }
.settings-section p, .settings-section li { font-size: 1rem; }
.setting-row strong { font-size: 1rem; }
.setting-row p { font-size: .875rem; }
.toggle { background: #c7d0b1; border-color: #a9b58e; box-shadow: inset 0 1px 3px #89986c44; }
.toggle::before { background: #fff8df; box-shadow: 0 2px 2px #788e5338; }
.toggle[aria-checked='true'] { background: #8ca669; border-color: #748f55; }
.toggle[aria-checked='true']::before { background: #fff8df; }
.help-table { font-size: .9375rem; }
.help-table td, .help-table th, .help-block { border-color: #c5cdae; }
.help-block > summary { color: #5c7c41; }
.site-menu { position: fixed; top: 92px; padding: 16px; box-shadow: var(--paper-shadow); }
.site-menu a { color: var(--ink); font-size: 1rem; border-radius: 10px 7px 9px 6px; padding: 12px; }
.site-menu a:hover, .site-menu a[aria-current='page'] { background: #dce4c0; color: #456d3b; }
.menu-heading { color: #87954f; font-size: .8125rem; }
.site-menu .menu-separator { border-color: #c5cdae; }
.menu-backdrop { background: #19332c70; }
.toast { background-color: #f5eed8; background-image: var(--paper-grain); color: var(--ink); border-color: #c2c6a2; border-radius: 13px 9px 12px 8px; box-shadow: 0 4px 0 #b7b68f, 0 10px 30px #163a2e44; font-size: .9375rem; }
dialog { padding: 27px; }
dialog::backdrop { background: #183e387d; }
.dialog-top h2 { font-size: 1.65rem; }
dialog p, dialog textarea { font-size: .9375rem; }
#share-dialog .field { margin-bottom: 8px; }
#share-dialog .button-row { margin-block: 8px 14px; }
#share-status:empty { display: none; }
.connection-banner { background: #eddfb8; border-color: #cdb16b; color: #745e2c; border-radius: 13px 9px 12px 8px; font-size: .9375rem; }
.connection-banner button { border-color: #bfa569; background: #f6eccd; border-radius: 7px; color: #6e5628; }
.noscript { background: #f5eed8; border-color: #b9bd91; color: var(--ink); }
.loading-leaf { background: #9caf70; box-shadow: 1px 2px 3px #607e4840; }

.ad-column { margin-top: 173px; color: #fff9de; text-shadow: 0 1px 4px #29503d; font-size: .6875rem; }
.ad-slot { background-color: #f2ecd5; background-image: var(--paper-grain); border: 1px solid #ddd7b8; border-radius: 21px 15px 19px 13px; box-shadow: 0 3px 0 #cec3a0, 0 7px 0 #a5a27a, 0 13px 20px #133d3433; text-shadow: none; }
.ad-slot::before { content: ''; position: absolute; width: 280px; height: 230px; border: 1px dashed #a6b18688; border-radius: 14px 10px 13px 8px; pointer-events: none; }
.ad-leaf { color: #8b9a65; }
.ad-leaf .icon { width: 32px; height: 32px; }
.ad-slot small { color: #71805e; font-size: .9375rem; }
.ad-size { color: #7b8568; font-size: .75rem; opacity: 1; }
.ad-column > p { font-size: .8125rem; color: #fff9df; }
.site-footer { font-size: .8125rem; color: #fffce5; text-shadow: 0 1px 5px #153e2e; padding-top: 34px; }
.site-footer a { color: #fffce5 !important; }
.site-footer > span:first-child { font-size: .75rem; }
.footer-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.site-info { max-width: 920px; margin-inline: auto; }

@media (min-width: 951px) and (max-height: 820px) {
  body[data-page='intro'] #main { padding-top: 36px; }
  .site-header { min-height: 104px; height: 104px; padding-block: 0; }
  .home-intro { min-height: 150px; }
}
@media (max-width: 1160px) and (min-width: 951px) {
  .mode-card { grid-template-columns: 52px 1fr auto; padding: 21px; gap: 0 16px; }
  .mode-card .mode-emblem { grid-row: 1 / 4; margin: 0; }
  .mode-card h2 { font-size: 1.35rem; }
  .mode-card > p { min-height: 0; font-size: .875rem; }
  .mode-card .mode-meta, .mode-card .mode-status { font-size: .75rem; }
  .mode-card .primary-button { padding-inline: 13px; font-size: .875rem; }
}
@media (max-width: 950px) {
  .site-header { min-height: 105px; height: 105px; grid-template-columns: 100px 1fr 100px; }
  .site-shell { padding-inline: 22px; }
  .content-layout { grid-template-columns: minmax(0, 1fr); }
  .ad-column { margin-top: 34px; justify-self: center; }
  .home-intro { min-height: 190px; }
  .mode-card { padding: 24px 19px; }
  .mode-card .mode-emblem { height: 54px; margin-bottom: 20px; }
  .mode-card h2 { font-size: 1.35rem; }
  .mode-card > p { min-height: 80px; font-size: .9375rem; }
  .mode-card .mode-meta { font-size: .8125rem; }
  .mode-card .mode-status { font-size: .8125rem; }
  .game-panel { overflow: visible; }
  .game-panel > .game-topbar { position: sticky; top: 8px; z-index: 20; background-color: #e6e9cf; background-image: var(--paper-grain); border-radius: 19px 14px 13px 11px; box-shadow: 0 3px 0 #bcc7a1, 0 8px 10px #233f3826; }
  .game-panel .animal-card, .game-panel .station-drop, .game-panel .station-clear, .game-panel [data-running-action] { scroll-margin-top: 120px; }
}
@media (max-width: 700px) {
  .site-shell { padding-inline: 16px; }
  .site-header { grid-template-columns: 48px minmax(0, 1fr) 80px; gap: 6px; min-height: 92px; height: 92px; padding-block: 0; }
  .brand > span { font-size: clamp(1.45rem, 5vw, 2rem); letter-spacing: -.045em; }
  .brand small { font-size: .5rem; letter-spacing: .09em; margin-top: 8px; }
  .explore-label { display: none; }
  .mantis-button { width: 44px; height: 45px; border-radius: 13px 9px 12px 8px; }
  .mantis-button img { width: 35px; height: 35px; }
  .header-tools { gap: 7px; }
  .header-tools .icon-button { width: 34px; height: 36px; border-radius: 11px 8px 10px 7px; }
  .header-tools .icon { width: 19px; height: 19px; }
  .home-intro { min-height: 160px; padding: 17px 3px 23px; }
  .home-intro h1 { font-size: clamp(2.1rem, 7vw, 2.7rem); }
  .home-intro p { font-size: .9375rem; }
  .theme-pill { font-size: .75rem; margin-bottom: 16px; }
  .mode-cards { grid-template-columns: minmax(0,1fr); }
  .mode-card { display: grid; grid-template-columns: 44px minmax(0,1fr); gap: 0 15px; padding: 23px 22px; }
  .mode-card + .mode-card { border-left: 0; border-top: 1px solid #c6ceab; }
  .mode-card .mode-emblem { grid-column: 1; grid-row: 1 / 3; width: 44px; height: 45px; padding: 9px; margin: 0; border-radius: 14px 10px 13px 8px; }
  .mode-card .mode-emblem .icon { width: 26px; height: 26px; }
  .mode-card h2 { grid-column: 2; font-size: 1.4rem; margin-bottom: 8px; }
  .mode-card > p { grid-column: 2; min-height: 0; font-size: .9375rem; margin-bottom: 10px; }
  .mode-card .mode-meta { grid-column: 2; margin-bottom: 16px; }
  .mode-card .primary-button { grid-column: 2; grid-row: auto; align-self: auto; justify-self: start; min-width: 150px; }
  .mode-card .mode-status { grid-column: 2; text-align: left; margin-top: 12px; }
  .welcome-bar, .home-bottom { padding: 16px 20px; gap: 8px; }
  .welcome-bar span, .home-bottom { font-size: .8125rem; }
  body[data-page='intro'] #main { padding-top: 38px; }
  .page-heading { margin-bottom: 17px; gap: 12px; }
  .intro-heading .eyebrow { font-size: .75rem; line-height: 1.5; gap: 6px; }
  .page-heading > .quiet-button { font-size: .75rem; padding: 9px 11px; min-height: 39px; }
  .panel-inner, .game-panel .panel-inner { padding: 21px; }
  .intro-panel .panel-inner { padding: 23px 21px 19px; }
  .mode-hero { grid-template-columns: minmax(0,1fr) 62px; gap: 14px; margin-bottom: 20px; }
  .mode-hero h1 { font-size: 2rem; margin-bottom: 10px; }
  .mode-hero .mode-kicker { font-size: .6875rem; letter-spacing: .08em; }
  .mode-hero p { font-size: .9375rem; }
  .mode-hero > .mode-emblem { width: 62px; height: 66px; padding: 13px; border-radius: 19px 13px 17px 11px; }
  .mode-hero > .mode-emblem .icon { width: 36px; height: 36px; }
  .rule-list { margin-bottom: 20px; }
  .rule-list > div { padding: 13px 9px; }
  .rule-list strong { font-size: 1.15rem; gap: 2px; line-height: 1.2; }
  .intro-facts strong { flex-direction: column; gap: 2px; }
  .intro-facts strong .stat-number { font-size: 1.3rem; }
  .intro-facts strong .stat-unit { font-size: .8125rem; }
  .rule-list > div > span { font-size: .75rem; line-height: 1.45; display: block; margin-top: 7px; }
  .intro-footer { gap: 15px; }
  .intro-footer .button-row { width: 100%; gap: 9px; }
  .intro-footer .button-row > * { flex: 1; padding: 11px 10px; font-size: .8125rem; }
  .intro-footer .fine { font-size: .8125rem; }
  .intro-footer .fine br { display: none; }
  .attempt-note { font-size: .75rem; margin-top: 15px; padding: 10px 11px; }
  .intro-rules { margin-top: 14px; }
  .intro-rule-content { font-size: .875rem; }
  .game-panel { margin-top: 16px; }
  .game-panel > .game-topbar { padding: 12px 15px; top: 6px; }
  .game-mode-name { font-size: .75rem; gap: 5px; }
  .game-stage-label { font-size: .75rem; }
  .game-mode-name .icon { width: 17px; height: 17px; }
  .game-summary { gap: 9px; }
  .score-label { font-size: .6875rem; }
  .score-label strong { font-size: 1.2rem; }
  .score-label strong .fine { font-size: .75rem; }
  .timer { min-width: 59px; font-size: 1.125rem; padding: 8px; gap: 4px; }
  .timer .icon { width: 16px; height: 16px; }
  .progress-track { padding-inline: 17px; margin-top: 17px; }
  .question-heading { font-size: 1.5rem; }
  .question-instruction { font-size: .875rem; margin-bottom: 20px; }
  .animal-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 11px; }
  .animal-card { padding: 12px 8px; min-height: 150px; }
  .animal-card.selected { padding: 11px 7px; }
  .animal-card :is(img, .animal-art), .animal-card .animal-sprite { width: 118px; height: 90px; }
  .animal-card strong { font-size: .875rem; }
  .animal-card .animal-detail { font-size: .75rem; }
  .animal-card .pick-mark { width: 20px; height: 20px; top: 7px; right: 7px; }
  .animal-card .option-key { top: 7px; left: 9px; font-size: .6875rem; }
  .selection-count { font-size: .875rem; }
  .game-actions > .button-row { gap: 9px; }
  .game-actions > .button-row > * { font-size: .8125rem; padding-inline: 10px; }
  .game-bottom { font-size: .75rem; }
  .scale-scene { margin-inline: 12px; }
  .scale-metrics small { font-size: .6875rem; }
  .scale-metrics strong { font-size: 1rem; }
  .scale-metrics strong .fine { font-size: .6875rem; }
  .scale-metrics > div { padding: 10px 7px; }
  .target-weight { font-size: .75rem; }
  .meter-caption { font-size: .6875rem; }
  .scale-note { font-size: .8125rem; }
  .animal-tags .tag { font-size: .75rem; padding: 3px 5px; }
  .expedition-animals .animal-card { min-height: 170px; }
  .stations { grid-template-columns: minmax(0,1fr); }
  .station { grid-template-columns: minmax(0,1fr) 118px; }
  .station-heading { font-size: .875rem; padding: 12px; }
  .station-conditions { padding: 12px; font-size: .8125rem; }
  .station-conditions .condition-label { font-size: .6875rem; }
  .station-drop { font-size: .75rem; }
  .assigned-badge { font-size: .6875rem; }
  .review-banner { padding: 16px; gap: 13px; }
  .review-banner h2 { font-size: 1.25rem; }
  .review-banner p { font-size: .875rem; }
  .review-explanation { font-size: .9375rem; }
  .review-list { padding-inline: 21px; }
  .result-hero { padding: 28px 20px 24px; }
  .result-hero h1 { font-size: 1.9rem; }
  .result-total { font-size: 4rem; }
  .result-hero p { font-size: .875rem; }
  .score-tile { padding: 9px; min-width: 43px; }
  .score-tile small { font-size: .625rem; }
  .results-actions { gap: 10px; }
  .results-actions > * { font-size: .8125rem; padding-inline: 12px; }
  .journey-results { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 11px; }
  .journey-stop h3 { font-size: 1rem; }
  .journey-stop p { font-size: .75rem; }
  .review-item > summary { font-size: .875rem; }
  .weight-table, .weight-table td:last-child { font-size: .75rem; }
  .weight-table th { font-size: .6875rem; }
  .board-tabs button { font-size: .8125rem; padding-inline: 9px; }
  .board-heading { gap: 10px; align-items: start; }
  .board-heading h2 { font-size: 1.25rem; }
  .board-heading > span { font-size: .6875rem; }
  .board-table th, .board-table td { padding: 13px 7px; }
  .board-table { font-size: .875rem; }
  .board-table .fine { font-size: .75rem; }
  .settings-section p, .settings-section li { font-size: .9375rem; }
  .setting-row { gap: 15px; }
  .setting-row p { font-size: .8125rem; }
  .help-table { font-size: .8125rem; }
  .site-menu { left: 16px; top: 76px; max-height: calc(100svh - 94px); }
  .site-footer { font-size: .75rem; padding-top: 30px; }
  .scene { background-size: auto max(100svh, 66.6vw); }
  body[data-habitat='rainforest'] .scene { background-position: 15.5% center; }
  body[data-habitat='ocean'] .scene { background-position: 84.5% center; }
}
@media (max-width: 380px) {
  .site-shell { padding-inline: 12px; }
  .site-header { grid-template-columns: 42px minmax(0,1fr) 75px; gap: 5px; }
  .brand > span { font-size: 1.35rem; }
  .brand small { font-size: .43rem; letter-spacing: .065em; }
  .intro-panel .panel-inner, .panel-inner, .game-panel .panel-inner { padding-inline: 17px; }
  .mode-hero { grid-template-columns: minmax(0,1fr) 53px; gap: 10px; }
  .mode-hero h1 { font-size: 1.85rem; }
  .mode-hero > .mode-emblem { width: 53px; height: 57px; padding: 11px; }
  .mode-hero > .mode-emblem .icon { width: 31px; height: 31px; }
  .game-stage-label { font-size: .6875rem; }
  .game-mode-name { font-size: .6875rem; }
  .game-summary { gap: 7px; }
  .animal-card strong { font-size: .8125rem; }
  .animal-card :is(img, .animal-art), .animal-card .animal-sprite { width: 105px; height: 82px; }
  .animal-grid { gap: 9px; }
  .station { grid-template-columns: minmax(0,1fr) 105px; }
  .game-panel > .game-topbar { padding-inline: 12px; }
}

/* Shared sprite atlas keeps the same footprint in every game placement. */
.animal-art { display: block; overflow: hidden; max-width: 100%; flex-shrink: 0; }
.pan-animals .animal-art { width: 60px; height: 55px; margin: 0 -9px; animation: animalDrop .65s ease-out; }
.station-drop .animal-art { width: 58px; height: 44px; }
.mini-animal .animal-art { width: 46px; height: 34px; }
.journey-stop .animal-art { width: 80px; height: 60px; margin-inline: auto; }
.review-item .animal-card .animal-art { width: 90px; height: 68px; }
@media (max-width: 1160px) and (min-width: 951px) { .pan-animals .animal-art { width: 54px; } }
@media (max-width: 700px) {
  .pan-animals .animal-art { width: 43px; height: 50px; }
  .station-drop .animal-art { height: 42px; }
  .mini-animal .animal-art { width: 32px; height: 30px; }
}

/* Place the actual introHTML children explicitly. The copy wrapper must not
   inherit a flattened/grid placement from an earlier theme. On small screens,
   only the kicker/title sit beside the emblem; the description uses full width. */
.intro-panel .mode-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 82px;
  grid-auto-flow: row;
  align-items: center;
}
.intro-panel .mode-hero > div:not(.mode-emblem) {
  display: block;
  min-width: 0;
  width: auto;
  max-width: 100%;
  grid-column: 1;
  grid-row: 1;
}
.intro-panel .mode-hero > .mode-emblem {
  grid-column: 2;
  grid-row: 1;
  align-self: center;
  justify-self: end;
}
.intro-panel .mode-hero h1,
.intro-panel .mode-hero .mode-kicker,
.intro-panel .mode-hero .intro-brief {
  min-width: 0;
  width: auto;
  max-width: 100%;
  grid-column: auto;
  grid-row: auto;
}
@media (max-width: 700px) {
  .intro-panel .mode-hero {
    grid-template-columns: 62px minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    column-gap: 15px;
    row-gap: 7px;
    align-items: start;
  }
  .intro-panel .mode-hero > div:not(.mode-emblem) { display: contents; }
  .intro-panel .mode-hero > .mode-emblem {
    grid-column: 1;
    grid-row: 1 / 3;
    align-self: center;
    justify-self: start;
    width: 62px;
    height: 66px;
  }
  .intro-panel .mode-hero .mode-kicker {
    grid-column: 2;
    grid-row: 1;
    align-self: end;
    margin: 0;
    font-size: .6875rem;
    line-height: 1.45;
    letter-spacing: .075em;
  }
  .intro-panel .mode-hero h1 {
    grid-column: 2;
    grid-row: 2;
    margin: 0;
    font-size: 2rem;
    line-height: 1.1;
    overflow-wrap: normal;
  }
  .intro-panel .mode-hero .intro-brief {
    grid-column: 1 / -1;
    grid-row: 3;
    margin: 9px 0 0;
    line-height: 1.6;
  }
}
@media (max-width: 380px) {
  .intro-panel .mode-hero { grid-template-columns: 53px minmax(0, 1fr); column-gap: 13px; }
  .intro-panel .mode-hero > .mode-emblem { width: 53px; height: 57px; }
  .intro-panel .mode-hero h1 { font-size: 1.85rem; }
}
