:root {
  --ink: #10243d;
  --navy: #163758;
  --paper: #fff9e9;
  --cream: #f6e4bb;
  --amber: #ffc857;
  --coral: #ef6f6c;
  --teal: #3aa6a0;
  --mint: #b9e3d7;
  --blue: #65a6d8;
  --shadow: #071523;
  --pixel: 3px;
}

* { box-sizing: border-box; }

html, body { min-height: 100%; }

body {
  margin: 0;
  color: var(--ink);
  background: #0e2239;
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", system-ui, sans-serif;
  image-rendering: pixelated;
}

.info-page { min-height:100dvh; padding:28px 14px; background:linear-gradient(rgba(8,24,42,.32),rgba(8,24,42,.78)),url("assets/office.png") center/cover fixed; }
.info-card { max-width:820px; margin:0 auto; line-height:1.9; }
.info-card h1 { margin:14px 0 28px; font-size:clamp(2rem,7vw,3.8rem); }
.info-card h2 { margin:32px 0 10px; padding-bottom:7px; border-bottom:3px solid var(--amber); }
.back-link { display:inline-block; margin-bottom:22px; color:#31506b; font-weight:900; }

button, input { font: inherit; }
button { touch-action: manipulation; }

.game-shell {
  min-height: 100dvh;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(rgba(8, 24, 42, .18), rgba(8, 24, 42, .62)),
    url("assets/office.png") center / cover fixed;
}

.game-shell::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(0deg, rgba(10, 20, 35, .08) 0 1px, transparent 1px 4px);
  mix-blend-mode: multiply;
}

.topbar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: max(12px, env(safe-area-inset-top)) 16px 10px;
  color: white;
  background: rgba(10, 30, 51, .9);
  border-bottom: 4px solid var(--amber);
  box-shadow: 0 4px 0 rgba(0,0,0,.28);
}

.brand { font-weight: 900; letter-spacing: .06em; }
.month-chip {
  padding: 5px 9px;
  background: var(--amber);
  color: var(--ink);
  border: 2px solid #fff4c6;
  box-shadow: 2px 2px 0 #805a12;
  font-size: .78rem;
  font-weight: 900;
}

.sound-btn {
  min-width: 42px;
  min-height: 38px;
  color: white;
  background: var(--navy);
  border: 2px solid white;
  box-shadow: 2px 2px 0 var(--shadow);
  cursor: pointer;
}

.screen {
  position: relative;
  z-index: 1;
  width: min(760px, calc(100% - 24px));
  margin: 0 auto;
  padding: 28px 0 max(32px, env(safe-area-inset-bottom));
}

.hero {
  min-height: calc(100dvh - 64px);
  display: grid;
  align-content: center;
  justify-items: center;
  text-align: center;
}

.static-fallback { max-width:760px; margin:40px auto; padding:28px; color:var(--ink); background:var(--paper); border:4px solid var(--ink); }
.landing-page { display:grid; gap:22px; }
.landing-hero { text-align:center; }
.landing-section { position:relative; line-height:1.9; }
.landing-section h2 { margin-right:54px; }
.landing-section p:last-child { margin-bottom:0; }
.section-number { position:absolute; top:18px; right:20px; color:var(--amber); font-size:2.4rem; font-weight:900; text-shadow:2px 2px 0 var(--ink); }
.year-grid { display:grid; gap:12px; }
.year-grid article { padding:16px; background:white; border:3px solid var(--ink); }
.year-grid strong { display:inline-block; margin-bottom:8px; padding:3px 7px; color:white; background:var(--coral); border:2px solid var(--ink); }
.year-grid h3 { margin-bottom:7px; font-size:1.05rem; }
.year-grid p { margin:0; line-height:1.7; }
.faq details { padding:14px 0; border-top:2px dashed #8d9cab; }
.faq details:first-of-type { border-top:0; }
.faq summary { cursor:pointer; font-weight:900; }
.faq details p { margin:10px 0 0; }
.site-footer { padding:20px 8px 6px; color:white; text-align:center; }
.site-footer nav,.result-footer { display:flex; flex-wrap:wrap; justify-content:center; gap:10px 18px; }
.site-footer a { color:white; }
.site-footer p { margin:14px 0 0; font-size:.72rem; }

.pixel-panel {
  width: 100%;
  padding: clamp(18px, 5vw, 34px);
  background: rgba(255, 249, 233, .97);
  border: 4px solid var(--ink);
  box-shadow: 8px 8px 0 rgba(7, 21, 35, .75), inset 0 0 0 3px var(--cream);
}

.logo-kicker {
  display: inline-block;
  margin-bottom: 10px;
  padding: 5px 9px;
  color: white;
  background: var(--coral);
  border: 3px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .12em;
}

h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 8px; font-size: clamp(2.4rem, 10vw, 5rem); line-height: .98; letter-spacing: -.04em; }
h2 { font-size: clamp(1.45rem, 5vw, 2.2rem); line-height: 1.2; }
h3 { font-size: 1rem; }
.subtitle { margin: 0 auto 24px; color: #31506b; font-weight: 700; line-height: 1.8; }
.small { font-size: .78rem; color: #5d7082; line-height: 1.7; }

.pixel-btn {
  width: 100%;
  min-height: 54px;
  padding: 12px 18px;
  border: 3px solid var(--ink);
  color: var(--ink);
  background: var(--amber);
  box-shadow: 4px 4px 0 var(--ink);
  font-weight: 900;
  cursor: pointer;
  transition: transform .08s, box-shadow .08s;
}
.pixel-btn:hover { filter: brightness(1.04); transform: translate(-1px,-1px); box-shadow: 5px 5px 0 var(--ink); }
.pixel-btn:active { transform: translate(3px,3px); box-shadow: 1px 1px 0 var(--ink); }
.pixel-btn.secondary { background: var(--mint); }
.pixel-btn.ghost { background: white; }
.pixel-btn.danger { background: #ffd7d6; }
.button-stack { display: grid; gap: 12px; }
.button-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }

.avatar-stage {
  display: flex;
  justify-content: center;
  align-items: end;
  min-height: 148px;
  margin: 4px 0 18px;
}

.pixel-person {
  --hair: #342825;
  --shirt: #3aa6a0;
  position: relative;
  width: 76px;
  height: 124px;
  filter: drop-shadow(7px 7px 0 rgba(8,20,34,.28));
}
.pixel-person .hair { position:absolute; top:0; left:16px; width:44px; height:18px; background:var(--hair); box-shadow: 6px 8px 0 var(--hair), -5px 10px 0 var(--hair); }
.pixel-person .head { position:absolute; top:14px; left:18px; width:40px; height:40px; background:#f2bd8f; border:5px solid var(--ink); }
.pixel-person .head::before { content:""; position:absolute; left:7px; top:13px; width:5px; height:5px; background:var(--ink); box-shadow:15px 0 0 var(--ink); }
.pixel-person .body { position:absolute; top:56px; left:12px; width:52px; height:48px; background:var(--shirt); border:5px solid var(--ink); }
.pixel-person .body::after { content:""; position:absolute; left:17px; top:0; width:8px; height:24px; background:white; border:3px solid var(--ink); border-top:0; }
.pixel-person .legs { position:absolute; top:100px; left:16px; width:17px; height:22px; background:#294c6d; box-shadow:27px 0 0 #294c6d; border-bottom:5px solid var(--ink); }
.pixel-person.avatar-2 { --hair:#b75a3f; --shirt:#ef6f6c; }
.pixel-person.avatar-3 { --hair:#171d2f; --shirt:#7586d6; }
.pixel-person.avatar-4 { --hair:#73604e; --shirt:#e5a43a; }

.avatar-options { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 16px 0 22px; }
.avatar-choice { padding: 10px 4px; border: 3px solid var(--ink); background: white; cursor: pointer; }
.avatar-choice.selected { background: var(--amber); box-shadow: 3px 3px 0 var(--ink); transform: translate(-2px,-2px); }
.swatch { display:block; width:28px; height:28px; margin:auto; border:3px solid var(--ink); background:var(--color); }

.name-input { width:100%; margin:8px 0 20px; padding:14px; border:3px solid var(--ink); background:white; color:var(--ink); font-weight:800; outline:none; }
.name-input:focus { box-shadow: 0 0 0 4px var(--amber); }

.hud { display:grid; grid-template-columns: 1fr 1fr; gap:8px; margin-bottom:14px; }
.meter-card { padding:9px 10px; background:rgba(255,249,233,.96); border:3px solid var(--ink); box-shadow:3px 3px 0 rgba(7,21,35,.6); font-size:.72rem; font-weight:900; }
.meter { height:9px; margin-top:6px; background:#d5d5cc; border:2px solid var(--ink); overflow:hidden; }
.meter > span { display:block; height:100%; background:var(--meter, var(--teal)); }

.event-card { padding: 0; overflow:hidden; }
.event-heading { padding:18px 20px 14px; color:white; background:var(--navy); border-bottom:4px solid var(--amber); }
.event-heading .eyebrow { margin:0 0 4px; color:var(--amber); font-size:.75rem; font-weight:900; letter-spacing:.08em; }
.event-heading h2 { margin:0; }
.dialogue { padding:22px 20px 10px; line-height:1.85; font-weight:700; }
.speaker { display:inline-block; margin-bottom:9px; padding:4px 8px; color:white; background:var(--coral); border:2px solid var(--ink); font-size:.74rem; font-weight:900; }
.choices { display:grid; gap:11px; padding:10px 20px 22px; }
.choice-btn { text-align:left; background:white; }
.choice-btn small { display:block; margin-top:4px; color:#5d7082; font-weight:700; }

.feedback { margin: 0 20px 20px; padding:15px; background:#fff4c6; border:3px solid var(--ink); line-height:1.7; }
.aftermath-scene {
  position:relative;
  height:190px;
  margin:8px 20px 14px;
  overflow:hidden;
  border:4px solid var(--ink);
  background:linear-gradient(#9fd8e8 0 53%, #d4c7a4 53% 58%, #8ca57a 58%);
  image-rendering:pixelated;
  box-shadow:5px 5px 0 rgba(7,21,35,.28);
}
.pixel-window { position:absolute; top:18px; left:18px; width:76px; height:58px; border:5px solid var(--ink); background:#dff5ff; box-shadow:inset 0 -9px 0 #a9d8e6; }
.pixel-window::before,.pixel-window::after { content:""; position:absolute; background:var(--ink); }
.pixel-window::before { left:33px; top:0; width:4px; height:100%; }
.pixel-window::after { left:0; top:25px; width:100%; height:4px; }
.pixel-window i { position:absolute; width:7px; height:7px; background:white; }
.pixel-window i:nth-child(1){left:8px;top:8px}.pixel-window i:nth-child(2){right:8px;top:8px}.pixel-window i:nth-child(3){left:8px;bottom:8px}.pixel-window i:nth-child(4){right:8px;bottom:8px}
.pixel-desk { position:absolute; left:16%; right:12%; bottom:23px; height:18px; border:4px solid var(--ink); background:#c27b52; box-shadow:12px 24px 0 -5px var(--ink), calc(100% - 12px) 24px 0 -5px var(--ink); }
.pixel-desk i { position:absolute; left:45%; top:-20px; width:46px; height:19px; border:4px solid var(--ink); border-bottom:0; background:#f6f0db; }
.mini-person { --shirt:#3aa6a0; position:absolute; bottom:41px; width:44px; height:82px; }
.mini-person::before { content:""; position:absolute; top:2px; left:9px; width:25px; height:27px; border:4px solid var(--ink); background:#efbd90; }
.mini-person::after { content:""; position:absolute; top:0; left:7px; width:29px; height:9px; background:#2b2a36; }
.mini-person i { position:absolute; left:3px; bottom:0; width:38px; height:48px; border:4px solid var(--ink); background:var(--shirt); }
.mini-person b { position:absolute; z-index:2; top:14px; left:16px; width:4px; height:4px; background:var(--ink); box-shadow:10px 0 0 var(--ink); }
.person-a { left:25%; }
.person-b { right:19%; --shirt:#ef6f6c; transform:scaleX(-1); }
.scene-prop { position:absolute; left:48%; bottom:50px; width:28px; height:24px; border:4px solid var(--ink); background:#fff4c6; }
.pixel-bubble { position:absolute; right:15%; top:15px; min-width:42px; padding:5px 8px; border:4px solid var(--ink); background:white; color:var(--navy); font-size:1.2rem; font-weight:900; text-align:center; box-shadow:4px 4px 0 rgba(7,21,35,.3); }
.pixel-bubble::after { content:""; position:absolute; left:8px; bottom:-11px; width:9px; height:9px; border-right:4px solid var(--ink); border-bottom:4px solid var(--ink); background:white; transform:rotate(45deg); }
.mood-good { background:linear-gradient(#9fd8e8 0 53%, #d4c7a4 53% 58%, #8dbf7b 58%); }
.mood-good .pixel-bubble { background:#fff4a8; }
.mood-tense { background:linear-gradient(#9aa7bd 0 53%, #b7a99b 53% 58%, #7d8792 58%); }
.mood-tense .pixel-bubble { color:white; background:var(--coral); }
.mood-tense .person-b { transform:scaleX(-1) translateX(-10px); }
.mood-mixed .pixel-bubble { background:#e8e2ff; }
.scene-security .scene-prop,.scene-crisis .scene-prop { background:#ef6f6c; box-shadow:0 -30px 0 -7px #fff; }
.scene-leave .scene-prop,.scene-calendar .scene-prop { background:white; box-shadow:inset 0 7px 0 var(--coral); }
.scene-interview .pixel-desk,.scene-consultation .pixel-desk,.scene-coaching .pixel-desk { left:24%; right:24%; }
.scene-negotiation .person-a { left:16%; }.scene-negotiation .person-b { right:12%; }
.scene-analytics .scene-prop,.scene-strategy .scene-prop { height:36px; background:linear-gradient(90deg,#65a6d8 30%,#fff 30% 45%,#e5a43a 45% 70%,#fff 70%); }
.scene-support .scene-prop,.scene-shield .scene-prop { border-radius:50% 50% 45% 45%; background:#83c99a; }
.scene-official .person-b,.scene-discipline .person-b { --shirt:#7586d6; }
.scene-restructure .scene-prop { width:42px; background:repeating-linear-gradient(#fff 0 5px,#7586d6 5px 9px); }
.aftermath { margin:0 20px 12px; padding:16px; border:3px solid var(--ink); line-height:1.8; }
.aftermath.good { background:#e3f4e8; }
.aftermath.tense { background:#ffd7d6; }
.aftermath.mixed { background:#eee8ff; }
.judgment-note { margin:0 20px 12px; padding:14px; border:3px dashed #657786; background:#fffdf6; line-height:1.7; }
.judgment-note > span { display:inline-block; margin-bottom:5px; color:#31506b; font-size:.72rem; font-weight:900; }
.judgment-note p { margin:0; }
.delta-list { display:flex; flex-wrap:wrap; gap:7px; margin:10px 0 0; padding:0; list-style:none; }
.delta { padding:4px 7px; border:2px solid var(--ink); background:white; font-size:.72rem; font-weight:900; }
.delta.plus { background:var(--mint); }
.delta.minus { background:#ffd7d6; }

.progress-track { height:12px; margin:0 0 14px; background:#cbd4d8; border:3px solid var(--ink); }
.progress-fill { height:100%; background:var(--amber); }

.work-status {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:8px;
  margin:0 0 12px;
  padding:8px 10px;
  color:white;
  background:rgba(10,30,51,.92);
  border:3px solid var(--ink);
  font-size:.72rem;
  font-weight:900;
}
.choice-impact { padding:4px 7px; color:var(--ink); border:2px solid white; background:var(--amber); }
.risk { padding:4px 7px; color:var(--ink); border:2px solid white; }
.risk.safe { background:var(--mint); }
.risk.warn { background:var(--amber); }
.risk.danger { color:white; background:var(--coral); }
.feedback.failure { background:#ffd7d6; }
.feedback.success { background:#e3f4e8; }
.outcome-badge { display:block; width:max-content; margin-bottom:8px; padding:3px 7px; color:white; background:var(--navy); border:2px solid var(--ink); font-size:.68rem; font-weight:900; }
.feedback.failure .outcome-badge { background:var(--coral); }
.failure-note { margin:7px 0 0; font-size:.78rem; color:#7a2830; }

.result-hero { text-align:center; }
.result-badge { display:inline-block; margin: 0 0 12px; padding:7px 11px; background:var(--amber); border:3px solid var(--ink); box-shadow:3px 3px 0 var(--ink); font-weight:900; }
.result-intro { margin:4px auto 14px; color:#31506b; font-weight:800; line-height:1.8; }
.result-office {
  position:relative;
  height:300px;
  margin:10px 0 24px;
  overflow:hidden;
  border:4px solid var(--ink);
  background:linear-gradient(#83c8e6 0 55%, #d8c49f 55% 59%, #76996f 59%);
  box-shadow:6px 6px 0 rgba(7,21,35,.3);
}
.result-skyline { position:absolute; inset:18px 18px auto; height:128px; border:5px solid var(--ink); background:linear-gradient(#aee3f4 0 70%,#f7d477 70%); overflow:hidden; }
.result-skyline::before { content:""; position:absolute; inset:auto 0 0; height:44px; background:repeating-linear-gradient(90deg,#496985 0 24px,#31506b 24px 43px,#6f88a0 43px 60px); }
.result-skyline::after { content:""; position:absolute; left:50%; top:0; width:5px; height:100%; background:var(--ink); box-shadow:-170px 58px 0 18px #496985,148px 68px 0 25px #31506b; }
.result-skyline i { position:absolute; z-index:2; width:8px; height:8px; background:#fff1a8; bottom:16px; }
.result-skyline i:nth-child(1){left:9%}.result-skyline i:nth-child(2){left:27%}.result-skyline i:nth-child(3){right:28%}.result-skyline i:nth-child(4){right:10%}
.result-desk { position:absolute; z-index:3; left:28%; right:28%; bottom:35px; height:22px; border:5px solid var(--ink); background:#b66f48; box-shadow:13px 36px 0 -6px var(--ink),calc(100% - 13px) 36px 0 -6px var(--ink); }
.result-desk i { position:absolute; left:50%; top:-28px; width:58px; height:29px; transform:translateX(-50%); border:5px solid var(--ink); border-bottom:0; background:#fff9e9; }
.grown-avatar { position:absolute; z-index:5; left:50%; bottom:54px; transform:translateX(-50%) scale(.92); transform-origin:bottom center; }
.grown-avatar .pixel-person { filter:drop-shadow(6px 6px 0 rgba(8,20,34,.25)); }
.grown-avatar .pixel-person .body { box-shadow:inset 0 -9px 0 rgba(255,255,255,.18); }
.result-spark { position:absolute; right:-20px; top:-18px; color:var(--amber); font-size:2rem; text-shadow:3px 0 var(--ink),-3px 0 var(--ink),0 3px var(--ink),0 -3px var(--ink); animation:resultSpark 1.2s steps(2,end) infinite; }
@keyframes resultSpark { 50% { transform:scale(1.25) rotate(12deg); } }
.result-colleague { --shirt:#7586d6; position:absolute; z-index:4; bottom:46px; width:44px; height:82px; }
.result-colleague::before { content:""; position:absolute; top:2px; left:9px; width:25px; height:27px; border:4px solid var(--ink); background:#efbd90; }
.result-colleague::after { content:""; position:absolute; top:0; left:7px; width:29px; height:9px; background:#2b2a36; }
.result-colleague i { position:absolute; left:3px; bottom:0; width:38px; height:48px; border:4px solid var(--ink); background:var(--shirt); }
.result-colleague b { position:absolute; z-index:2; top:14px; left:16px; width:4px; height:4px; background:var(--ink); box-shadow:10px 0 0 var(--ink); }
.colleague-left { left:12%; transform:rotate(-5deg); }
.colleague-right { right:12%; --shirt:#ef6f6c; transform:scaleX(-1) rotate(-5deg); }
.result-plant { position:absolute; z-index:3; right:5%; bottom:34px; width:42px; height:37px; border:4px solid var(--ink); border-top:0; background:#d48653; }
.result-plant i,.result-plant i::before,.result-plant i::after { position:absolute; content:""; width:21px; height:34px; background:#4a9d69; border:4px solid var(--ink); }
.result-plant i { left:7px; top:-31px; }.result-plant i::before { left:-17px; top:9px; transform:rotate(-33deg); }.result-plant i::after { left:13px; top:3px; transform:rotate(33deg); }
.result-nameplate { position:absolute; z-index:7; left:50%; bottom:7px; max-width:72%; padding:5px 10px; transform:translateX(-50%); border:3px solid var(--ink); background:var(--amber); font-size:.68rem; font-weight:900; box-shadow:3px 3px 0 var(--ink); }
.result-confetti i { position:absolute; z-index:6; top:17px; width:8px; height:15px; background:var(--coral); animation:confettiDrop 2.2s steps(4,end) infinite; }
.result-confetti i:nth-child(1){left:13%;background:var(--amber)}.result-confetti i:nth-child(2){left:27%;top:42px;transform:rotate(45deg);background:var(--teal)}.result-confetti i:nth-child(3){left:42%;top:10px}.result-confetti i:nth-child(4){right:41%;top:40px;background:#7586d6}.result-confetti i:nth-child(5){right:25%;top:14px;background:var(--amber)}.result-confetti i:nth-child(6){right:12%;top:48px;transform:rotate(45deg);background:var(--teal)}
@keyframes confettiDrop { 50% { margin-top:10px; transform:rotate(90deg); } }
.appointment-card { position:relative; margin:0 auto 18px; padding:20px 18px 18px; border:5px double var(--ink); background:#fffdf6; box-shadow:5px 5px 0 var(--cream); }
.appointment-card > span { display:inline-block; margin-bottom:7px; color:#8b5b1a; font-size:.65rem; font-weight:900; letter-spacing:.12em; }
.appointment-card > p:first-of-type { margin:0 0 8px; font-size:1.05rem; font-weight:900; letter-spacing:.16em; }
.appointment-card small { display:block; margin-bottom:10px; color:#31506b; font-weight:800; }
.appointment-card .position-title { margin:4px 0 12px; }
.appointment-card > p:last-child { margin:0; line-height:1.75; font-weight:700; }
.result-type { color:var(--coral); }
.position-title { color:var(--coral); font-size:clamp(1.8rem,7vw,3.7rem); line-height:1.08; }
.result-grid { display:grid; grid-template-columns: 1fr 1fr; gap:12px; margin:18px 0; text-align:left; }
.result-box { padding:14px; background:white; border:3px solid var(--ink); }
.result-box h3 { margin-bottom:8px; color:#31506b; }
.result-box p { margin:0; line-height:1.7; }
.stat-list { display:grid; gap:10px; margin:18px 0 22px; }
.stat-row { display:grid; grid-template-columns:80px 1fr 32px; align-items:center; gap:8px; font-size:.78rem; font-weight:900; }
.stat-bar { height:13px; border:2px solid var(--ink); background:#d6d9d4; }
.stat-bar span { display:block; height:100%; background:var(--blue); }
.ending { margin:16px 0; padding:16px; color:white; background:var(--navy); border:3px solid var(--ink); line-height:1.7; }
.save-note { margin-top:14px; font-size:.7rem; color:#5d7082; }
.share-panel { margin:26px 0 20px; padding:18px; background:#eef8f4; border:4px solid var(--ink); text-align:left; }
.share-panel > h2,.share-panel > p { text-align:center; }
.share-preview { position:relative; min-height:180px; margin:16px 0; display:grid; place-items:center; background:#10243d; border:3px solid var(--ink); overflow:hidden; }
.share-preview img { display:none; width:100%; height:auto; }
.share-preview.ready img { display:block; }
.share-preview.ready .share-loading { display:none; }
.share-loading { color:white; font-weight:900; }
.share-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:10px; }
.share-grid .pixel-btn:first-child,.share-grid .pixel-btn:last-child { grid-column:1/-1; }
.x-button { color:white; background:#101820; }
.line-button { color:white; background:#06c755; }
.share-status { min-height:1.6em; margin:12px 0 0; color:#31506b; text-align:center; font-size:.8rem; font-weight:800; }
.result-footer { margin-top:20px; padding-top:16px; border-top:2px dashed #8d9cab; }
.result-footer a { color:#31506b; font-size:.78rem; font-weight:800; }

@media (min-width: 640px) {
  .hud { grid-template-columns: repeat(4, 1fr); }
  .choices { grid-template-columns: repeat(3, 1fr); }
  .choice-btn { min-height:132px; }
  .year-grid { grid-template-columns:repeat(3,1fr); }
}

@media (max-width: 520px) {
  .screen { padding-top:18px; }
  .pixel-panel { box-shadow:5px 5px 0 rgba(7,21,35,.75), inset 0 0 0 2px var(--cream); }
  .result-grid, .button-row { grid-template-columns:1fr; }
  h1 { font-size: 2.8rem; }
  .aftermath-scene { height:168px; margin-inline:12px; }
  .aftermath,.judgment-note { margin-inline:12px; }
  .person-a { left:17%; }
  .person-b { right:12%; }
  .result-office { height:270px; margin-inline:-7px; }
  .result-skyline { inset:14px 12px auto; height:115px; }
  .result-desk { left:23%; right:23%; }
  .grown-avatar { transform:translateX(-50%) scale(.82); }
  .colleague-left { left:5%; }.colleague-right { right:5%; }
  .result-plant { display:none; }
  .result-nameplate { max-width:88%; font-size:.62rem; }
  .share-grid { grid-template-columns:1fr; }
  .share-grid .pixel-btn:first-child,.share-grid .pixel-btn:last-child { grid-column:auto; }
}

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