/* ChaiHome — photography, readable profiles, native controls. */
:root {
  color-scheme: dark;
  --bg: #101a23;
  --ink: #f3f1ec;
  --muted: #b1bcc6;
  --blue: #b7d9e6;
  --warm: #efa27e;
  --line: #ffffff25;
  --sans: "Noto Sans TC", "PingFang TC", system-ui, sans-serif;
  --serif: "Noto Serif TC", "Songti TC", serif;
  --mono: "JetBrains Mono", monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.8 var(--sans); -webkit-font-smoothing: antialiased; }
button, a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button { color: inherit; font: inherit; cursor: pointer; }
a { color: inherit; text-underline-offset: 5px; }
button, input { border-radius: 0; }
img { display: block; width: 100%; height: auto; }
figure, blockquote, dl, dd { margin: 0; }
h1, h2, h3, h4, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.3; }
h2 { font-size: clamp(28px, 3.5vw, 46px); font-weight: 600; letter-spacing: -.04em; margin-bottom: 20px; }
h4 { font-size: 12px; font-weight: 500; letter-spacing: .04em; }
[hidden] { display: none; }
:focus-visible { outline: 3px solid var(--warm); outline-offset: 5px; }
::selection { background: #b7d9e6; color: #142331; }
.wrap { width: min(1160px, calc(100% - 96px)); margin-inline: auto; }
.eyebrow { font-size: 13px; letter-spacing: .06em; color: var(--blue); margin-bottom: 14px; }
.lead { font-size: 20px; line-height: 1.8; }
.skip { position: fixed; top: 8px; left: 12px; z-index: 100; transform: translateY(-150%); background: var(--ink); color: var(--bg); padding: 10px 18px; }
.skip:focus { transform: none; }
#starfield { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: max(18px, env(safe-area-inset-top)) max(48px, env(safe-area-inset-right)) 18px max(48px, env(safe-area-inset-left)); }
.brand { font: 700 25px/1 var(--sans); letter-spacing: -1.5px; text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.brand span { color: var(--warm); }
.site-header nav { display: flex; gap: 28px; }
.site-header nav a { min-width: 44px; display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; text-decoration: none; color: var(--muted); }
.site-header nav a:hover { color: var(--ink); }
/* The mobile portrait gets its own full-width composition. */
.hero { position: relative; isolation: isolate; overflow: clip; padding: 46px 0 70px; }
.hero-night { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, #101a2380, #101a2320), linear-gradient(0deg, var(--bg), transparent 55%), url('assets/night-07.jpg') center/cover; opacity: .7; }
.hero-inner { display: grid; grid-template-columns: 1fr .86fr; column-gap: 90px; align-items: center; }
.hero-copy { grid-column: 1; grid-row: 1; align-self: end; }
.hero-copy .eyebrow { color: #d5dedc; }
.hero-copy .eyebrow span { color: var(--warm); }
.hero h1 { margin: 18px 0 8px; font: 900 clamp(100px, 10.6vw, 154px)/1.16 var(--serif); letter-spacing: -.07em; animation: title-in .45s ease-out; }
.hero-dot { color: var(--warm); font-family: var(--sans); font-size: .45em; margin-left: -.1em; }
.hero-personality { font-size: clamp(22px, 2vw, 28px); margin: 0 0 26px; letter-spacing: .05em; }
.hero-aside { grid-column: 1; grid-row: 2; align-self: start; padding-top: 22px; }
.hero-aside p { font-size: 16px; color: #dae0e0; }
.text-link { min-height: 48px; display: inline-flex; align-items: center; justify-content: space-between; gap: 42px; text-decoration: none; border-bottom: 1px solid var(--warm); font-size: 15px; }
.text-link span { color: var(--warm); font-size: 22px; transition: transform .2s; }
.text-link:hover span { transform: translate(3px, -3px); }
.portrait { grid-column: 2; grid-row: 1 / span 2; background: #e8e3db; padding: 10px 10px 0; color: #38434b; box-shadow: 20px 24px 50px #0003; }
.portrait button { display: block; padding: 0; border: 0; width: 100%; background: none; }
.portrait img { aspect-ratio: 3 / 4; object-fit: cover; object-position: center bottom; }
.portrait figcaption { padding: 11px 4px; font-size: 12px; }
@keyframes title-in { from { opacity: .75; transform: translateY(8px); } to { opacity: 1; transform: none; } }
/* Personal information stays visible, with no nested reveal animation. */
.about-section { background: #22333f; padding: 65px 0; }
.about-layout { display: grid; grid-template-columns: .8fr 1.3fr; gap: 70px; }
.about-heading { display: flex; align-items: flex-start; gap: 22px; }
.avatar { border: none; background: none; width: 82px; min-width: 82px; padding: 0; }
.avatar img { border-radius: 50%; aspect-ratio: 1; object-fit: cover; }
.about-heading .eyebrow { margin-top: 3px; margin-bottom: 10px; }
.about-heading h2 { font-size: 35px; white-space: nowrap; }
.about-story > p:not(.lead) { color: #c7d1d7; font-size: 15px; }
.personal-facts { display: grid; grid-template-columns: 1.5fr 1fr; gap: 17px 24px; padding-top: 15px; }
.personal-facts dt { font-size: 12px; color: #a8bdc9; margin-bottom: 4px; }
.personal-facts dd { font-size: 14px; }
.life-section { padding-block: 65px 58px; display: grid; grid-template-columns: .8fr 1.3fr; gap: 70px; }
.life-copy > p { color: #c6d0d6; }
.life-copy > .lead { color: var(--ink); font-size: 18px; }
.other-games { margin-top: 25px; }
.other-games h3 { font-size: 13px; color: var(--blue); margin: 0 0 5px; }
.other-games p { font-size: 13px; color: var(--muted); margin-bottom: 16px; }
/* Game identities use real text/data and different editorial compositions. No official art. */
.archive-section { background: #0c141b; padding: 60px 0 68px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 32px; }
.section-heading h2 { margin-bottom: 0; }
.section-heading > p { margin: 0; color: var(--muted); font-size: 13px; }
.archive-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 32px; }
.game-tabs { display: none; }
.archive-section.is-enhanced .game-tabs { display: flex; flex-direction: column; gap: 6px; align-self: start; }
.game-tabs button { position: relative; text-align: left; background: none; border: none; padding: 19px 16px; color: #adbac3; min-height: 80px; }
.game-tabs strong { display: block; font-size: 17px; font-weight: 500; }
.game-tabs span { display: block; font-size: 11px; margin-top: 6px; opacity: .8; }
.game-tabs button[aria-selected='true'] { color: #f5f1e8; background: #263744; }
.game-tabs button[aria-selected='true']::before { content: ''; position: absolute; left: 0; top: 18px; bottom: 18px; width: 3px; background: var(--warm); }
.game-tabs button:hover { background: #ffffff0c; }
.game-stage { min-width: 0; display: grid; gap: 30px; }
.archive-section:not(.is-enhanced) .game-stage { grid-column: 1 / -1; }
.game-panel { overflow: clip; }
.game-panel h4 { margin-bottom: 9px; }
.game-panel p:last-child { margin-bottom: 0; }
.game-panel.panel-enter { animation: panel-in .16s ease-out; }
@keyframes panel-in { from { opacity: .75; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.sky-panel { background: #e4edf0; color: #233e50; display: grid; grid-template-columns: .8fr 1fr; }
.sky-panel[hidden], .apex-panel[hidden] { display: none; }
.sky-cover { padding: 32px; background: #b9d2e0; background-image: radial-gradient(ellipse at 100% 10%, #edf4ec, transparent 75%); display: flex; flex-direction: column; align-items: flex-start; }
.sky-cover > p:first-child { font-size: 11px; margin-bottom: 22px; }
.sky-cover h3 { font: 600 60px var(--serif); letter-spacing: .15em; margin: 0 0 12px; }
.sky-style { font-size: 14px; }
.wing-record { margin-top: auto; padding-top: 40px; display: flex; align-items: baseline; gap: 8px; }
.wing-record > span { font-size: 13px; }
.wing-record strong { font: 500 85px/1 var(--serif); }
.sky-journal { padding: 34px 30px; display: grid; grid-template-columns: 1fr; gap: 24px; }
.sky-journal h4 { color: #516d7f; }
.map-records { list-style: none; padding: 0; margin: 0; }
.map-records li { display: flex; justify-content: space-between; padding-block: 9px; border-bottom: 1px solid #24445626; font: 600 18px var(--serif); }
.map-records span { font: 12px var(--sans); color: #3e6470; }
.sky-home p { font: 600 26px var(--serif); }
.sky-note p { font-size: 14px; }
.sky-note p + p { color: #516d7f; font-size: 12px; }
.delta-panel { background: #1f2b28; color: #f1f0df; }
.delta-cover { padding: 30px 36px; background-color: #455347; background-image: repeating-linear-gradient(92deg, transparent 0 5px, #111c1408 5px 6px); position: relative; }
.delta-cover > p:first-child, .arena-cover > p:first-child, .apex-cover > p:first-child { display: flex; justify-content: space-between; gap: 20px; font-size: 12px; margin-bottom: 24px; }
.delta-cover h3 { font-size: clamp(32px, 4vw, 50px); font-weight: 700; letter-spacing: -.03em; margin: 0 0 10px; }
.player-name { font-size: 17px; margin: 0; }
.mode-label { display: inline-block; position: absolute; right: 36px; bottom: 30px; color: #e2e7bf; font-size: 14px; }
.game-details { padding: 28px 34px; }
.game-summary { font-size: 16px; color: #d5decb; }
.operator-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding: 10px 0 25px; }
.operator-row h4 { color: #bbc7aa; }
.operator-row p { margin: 0; font-size: 18px; }
.operator-row p span { font-size: 13px; color: #8d9d89; }
.compact-facts > div { display: grid; grid-template-columns: 52px 1fr; gap: 10px; padding: 9px 0; border-top: 1px solid #ffffff17; font-size: 13px; }
.compact-facts dt { color: #a8baa7; }
.compact-facts small, .self-rating small { font-size: 11px; opacity: .75; margin-left: 6px; }
.arena-panel { background: #e2ded5; color: #2b3335; }
.arena-cover { padding: 28px 34px; background: #c9c7bd; display: grid; grid-template-columns: 1.3fr 1fr; align-items: end; }
.arena-cover > p:first-child { grid-column: 1 / -1; }
.arena-cover h3 { font: 900 clamp(30px, 3.5vw, 45px)/1.3 var(--serif); margin: 0; }
.arena-cover .player-name { text-align: right; font-size: 15px; }
.arena-preferences { display: grid; grid-template-columns: 1fr 1.4fr; gap: 24px; margin-bottom: 25px; }
.arena-preferences h4, .arena-panel .game-details > h4 { color: #5e6561; }
.arena-preferences p { font-size: 18px; }
.arena-weapons { padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 14px 28px; margin: 15px 0 24px; }
.arena-weapons li { font: 500 25px var(--mono); }
.self-rating { font-size: 13px; padding-top: 20px; border-top: 1px solid #28343030; }
.apex-panel { display: grid; grid-template-columns: .62fr 1fr; background: #25252a; color: #f0ece9; }
.apex-cover { padding: 30px 25px; background: #934b48; display: flex; flex-direction: column; justify-content: space-between; }
.apex-cover > p:first-child { flex-wrap: wrap; color: #f8e2d8; }
.apex-cover h3 { font: 700 clamp(28px, 3vw, 43px)/1.2 var(--sans); margin: 16px 0 45px; }
.apex-cover h3 span { display: block; margin-top: 12px; font: 400 16px var(--sans); letter-spacing: .06em; }
.apex-cover > p:last-child { font-size: 14px; }
.apex-panel h4 { color: #bebbc0; }
.apex-name { font-size: 21px; line-height: 1.65; overflow-wrap: anywhere; font-weight: 600; margin-bottom: 22px; }
.rank-record { display: flex; gap: 40px; margin-bottom: 28px; }
.rank-record dt { font-size: 12px; color: #bbb7bd; }
.rank-record dd { color: #e2c097; font-size: 23px; margin-top: 3px; }
.apex-weapons { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1.2fr; gap: 12px 20px; font-size: 14px; }
.apex-weapons span { display: block; font-size: 10px; color: #bcb8bd; }
/* Photography: preserve the complete image, including vertical compositions. */
.photo-section { padding-block: 72px; }
.photo-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 35px 30px; align-items: start; }
.photo { min-width: 0; grid-column: span 6; }
.photo--1 { grid-column: span 8; }
.photo--2 { grid-column: span 4; margin-top: 64px; }
.photo--3 { grid-column: span 4; }
.photo--4 { grid-column: span 8; margin-top: 42px; }
.photo--5 { grid-column: span 8; }
.photo--6 { grid-column: span 4; margin-top: 60px; }
.photo--7, .photo--8 { grid-column: span 6; }
.photo-open { border: none; background: none; padding: 0; width: 100%; display: block; position: relative; overflow: clip; cursor: zoom-in; }
.photo-open img { transition: transform .3s ease; }
.photo-open > span { position: absolute; bottom: 12px; right: 12px; background: #101a23dc; padding: 6px 12px; font-size: 12px; }
.photo-open:hover img { transform: scale(1.015); }
.photo figcaption { display: flex; gap: 15px; padding-top: 12px; font-size: 13px; color: #c1ccd2; }
.photo figcaption > span { font: 11px/2 var(--mono); color: #92aab8; }
/* Contact links are directly available; share belongs in the footer. */
.contact-section { background: #22333f; padding-block: 60px; }
.contact-layout { display: grid; grid-template-columns: .8fr 1.3fr; gap: 70px; }
.contact-intro > p { font-size: 14px; color: #c4d0d7; }
.contact-intro .discord-note { max-width: 32ch; font-size: 12px; color: #a7bdc8; margin-top: 30px; overflow-wrap: anywhere; }
.social-links { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; }
.social-links li { min-width: 0; }
.social-links a { min-height: 75px; display: grid; grid-template-columns: minmax(0, 1fr) 20px; align-content: center; padding: 12px 0; text-decoration: none; border-bottom: 1px solid #ffffff20; }
.social-name { font-size: 17px; line-height: 1.5; overflow-wrap: anywhere; }
.social-handle { font-size: 11px; color: #afc4cf; grid-column: 1; overflow-wrap: anywhere; }
.social-arrow { grid-column: 2; grid-row: 1 / span 2; align-self: center; color: #ddc4b3; transition: transform .2s; }
.social-links a:hover .social-arrow { transform: translate(2px, -2px); }
.quote-section { display: grid; grid-template-columns: .8fr 1.3fr; gap: 70px; padding-block: 65px; }
.quote-content blockquote { font: 600 clamp(24px, 2.8vw, 37px)/1.65 var(--serif); margin-bottom: 25px; min-height: 3.3em; transition: opacity .18s; }
.quote-content blockquote.swap { opacity: .4; }
.quote-actions { display: flex; gap: 12px; }
.quote-actions button, .site-footer button { min-height: 44px; padding: 9px 16px; background: none; border: 1px solid #ffffff40; font-size: 13px; }
.quote-actions button:first-child { background: var(--blue); color: #1a2a35; border-color: var(--blue); }
.quote-actions button span { margin-left: 10px; }
.site-footer { background: #0a1218; padding: 26px 0 max(26px, env(safe-area-inset-bottom)); }
.site-footer > div { display: flex; gap: 22px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.site-footer p { font-size: 11px; color: var(--muted); margin: 0; }
.site-footer > div > div { display: flex; gap: 10px; }
/* Native modal provides background inertness and keyboard focus containment. */
.lightbox { position: fixed; inset: 0; width: 100%; height: 100%; height: 100dvh; max-width: none; max-height: none; border: none; margin: 0; padding: max(12px, env(safe-area-inset-top)) max(20px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left)); background: #0a1118fa; color: var(--ink); }
.lightbox[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: 12px; }
.lightbox::backdrop { background: #000b; }
.lightbox header, .lightbox footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.lightbox button { min-width: 48px; min-height: 48px; padding: 8px 14px; border: 1px solid #ffffff40; background: none; }
.lightbox header span { font: 13px var(--mono); color: #b9cbd6; }
.lightbox-image { min-height: 0; display: flex; align-items: center; justify-content: center; touch-action: pan-y; }
.lightbox-image img { width: auto; max-width: 100%; height: auto; max-height: 100%; object-fit: contain; }
.lightbox footer p { margin: 0; font-size: 13px; text-align: center; }
.bubble { position: fixed; z-index: 60; max-width: min(280px, calc(100vw - 24px)); background: #f3e2cc; color: #24313a; padding: 12px 16px; font-size: 14px; border-radius: 12px; box-shadow: 0 6px 20px #0003; pointer-events: none; }
.toast { position: fixed; z-index: 70; left: 50%; bottom: max(22px, env(safe-area-inset-bottom)); transform: translate(-50%, 10px); opacity: 0; max-width: calc(100vw - 32px); padding: 10px 18px; background: #e2ebee; color: #142633; font-size: 14px; pointer-events: none; transition: opacity .2s, transform .2s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
/* Only offscreen photos reveal; reading content is never hidden. */
[data-reveal].reveal-pending { opacity: 0; transform: translateY(12px); }
[data-reveal] { transition: opacity .4s cubic-bezier(.2,.7,.3,1), transform .4s cubic-bezier(.2,.7,.3,1); }
@media (max-width: 1050px) {
  .wrap { width: calc(100% - 64px); }
  .hero-inner { column-gap: 45px; }
  .hero h1 { font-size: 115px; }
  .about-layout, .life-section, .contact-layout, .quote-section { column-gap: 35px; grid-template-columns: .8fr 1.2fr; }
  .about-heading { flex-direction: column; }
  .archive-layout { grid-template-columns: 185px minmax(0, 1fr); gap: 20px; }
  .game-tabs strong { font-size: 15px; }
  .game-tabs button { padding-inline: 12px; }
  .sky-cover, .sky-journal { padding: 26px 22px; }
  .apex-panel { grid-template-columns: 1fr; }
  .apex-cover { padding: 24px 28px; display: grid; grid-template-columns: 1.3fr 1fr; align-items: end; }
  .apex-cover > p:first-child { grid-column: 1 / -1; margin-bottom: 8px; }
  .apex-cover h3 { margin: 8px 0 0; }
  .apex-cover > p:last-child { text-align: right; }
}
@media (max-width: 760px) {
  html { scroll-padding-top: 16px; }
  .wrap { width: calc(100% - 40px); }
  .site-header { padding: max(8px, env(safe-area-inset-top)) max(20px, env(safe-area-inset-right)) 8px max(20px, env(safe-area-inset-left)); gap: 14px; }
  .brand { font-size: 22px; }
  .site-header nav { gap: 5px; }
  .site-header nav a { font-size: 12px; padding-inline: 7px; min-width: 44px; justify-content: center; }
  .hero { padding: 25px 0 38px; }
  .hero-inner { display: flex; flex-direction: column; align-items: stretch; gap: 22px; }
  .hero-copy { align-self: stretch; }
  .hero-copy .eyebrow { margin-bottom: 8px; font-size: 12px; }
  .hero h1 { font-size: clamp(86px, 22vw, 118px); margin: 0; display: inline-block; }
  .hero-personality { display: inline-block; vertical-align: bottom; font-size: 16px; margin: 0 0 13px 12px; max-width: 6em; line-height: 1.65; }
  .hero-personality span { display: block; }
  .portrait { padding: 6px 6px 0; box-shadow: none; }
  .portrait img { height: clamp(270px, 43svh, 420px); aspect-ratio: auto; object-position: center bottom; }
  .portrait figcaption { padding: 8px 4px; font-size: 11px; }
  .hero-aside { padding: 0; display: flex; justify-content: space-between; align-items: center; gap: 18px; }
  .hero-aside p { font-size: 13px; margin: 0; }
  .text-link { font-size: 12px; gap: 10px; flex-shrink: 0; }
  .text-link span { font-size: 18px; }
  .about-section { padding-block: 38px; }
  .about-layout, .life-section, .contact-layout, .quote-section { display: block; }
  .about-heading { flex-direction: row; align-items: center; margin-bottom: 20px; }
  .avatar { width: 65px; min-width: 65px; }
  .about-heading h2 { font-size: 30px; margin: 0; }
  .about-heading .eyebrow { margin: 0 0 5px; }
  .about-story > .lead { font-size: 18px; }
  .about-story > p:not(.lead) { font-size: 14px; margin-bottom: 14px; }
  .personal-facts { padding-top: 7px; gap: 16px; }
  .personal-facts dd { font-size: 13px; }
  .life-section { padding-block: 38px; }
  .life-intro h2 br { display: none; }
  .life-intro h2 { font-size: 25px; }
  .life-copy > .lead { font-size: 16px; }
  .life-copy > p { font-size: 14px; margin-bottom: 12px; }
  .other-games { margin-top: 22px; }
  .other-games p { font-size: 12px; }
  .archive-section { padding-block: 38px; }
  .section-heading { display: block; margin-bottom: 24px; }
  .section-heading h2 { font-size: 30px; }
  .section-heading > p { margin-top: 12px; font-size: 12px; }
  .archive-layout { display: block; }
  .archive-section.is-enhanced .game-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2px; margin-bottom: 12px; }
  .game-tabs button { padding: 13px 4px; min-height: 60px; text-align: center; }
  .game-tabs strong { font-size: 12px; font-weight: 500; line-height: 1.4; }
  .game-tabs span { display: none; }
  .game-tabs button[aria-selected='true']::before { inset: auto 10px 0; height: 2px; width: auto; }
  .sky-panel { grid-template-columns: 1fr; }
  .sky-cover { padding: 22px; display: grid; grid-template-columns: 1fr auto; align-items: center; }
  .sky-cover > p:first-child { grid-column: 1 / -1; margin: 0 0 12px; }
  .sky-cover h3 { font-size: 42px; margin: 0; }
  .sky-style { font-size: 12px; margin: 8px 0 0; grid-column: 1; grid-row: 3; }
  .wing-record { margin: 0; padding: 0; grid-column: 2; grid-row: 2 / span 2; gap: 4px; }
  .wing-record strong { font-size: 64px; }
  .wing-record > span { font-size: 11px; }
  .sky-journal { padding: 22px; grid-template-columns: 1fr 70px; gap: 24px; }
  .sky-note { grid-column: 1 / -1; }
  .sky-note p { font-size: 13px; }
  .sky-home p { font-size: 22px; }
  .map-records li { font-size: 17px; }
  .map-records span { font-size: 11px; }
  .delta-cover, .arena-cover { padding: 22px; }
  .delta-cover h3 { font-size: 35px; }
  .delta-cover > p:first-child, .arena-cover > p:first-child, .apex-cover > p:first-child { font-size: 11px; margin-bottom: 18px; gap: 10px; }
  .mode-label { right: 22px; bottom: 23px; font-size: 12px; }
  .player-name { font-size: 15px; }
  .game-details { padding: 22px; }
  .game-summary { font-size: 14px; }
  .operator-row { gap: 15px; padding: 0 0 20px; }
  .operator-row p { font-size: 16px; }
  .compact-facts > div { font-size: 12px; grid-template-columns: 40px 1fr; }
  .compact-facts small { display: inline-block; margin-left: 0; }
  .arena-cover h3 { font-size: 30px; }
  .arena-cover .player-name { font-size: 13px; }
  .arena-preferences { gap: 15px; margin-bottom: 22px; }
  .arena-preferences p { font-size: 16px; }
  .arena-weapons { gap: 20px; }
  .arena-weapons li { font-size: 22px; }
  .apex-cover { padding: 22px; }
  .apex-cover h3 { font-size: 32px; }
  .apex-name { font-size: 20px; }
  .apex-weapons { font-size: 14px; }
  .photo-section { padding-block: 38px; }
  .photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 14px; }
  .photo { margin-top: 0; grid-column: span 1; }
  .photo--1, .photo--4, .photo--5, .photo--8 { grid-column: 1 / -1; }
  .photo--6 { grid-column: 1; }
  .photo--7 { grid-column: 2; align-self: end; }
  .photo figcaption { font-size: 11px; gap: 8px; padding-top: 8px; }
  .photo-open > span { font-size: 10px; padding: 4px 7px; bottom: 8px; right: 8px; }
  .contact-section { padding-block: 38px; }
  .contact-intro .discord-note { margin-top: 12px; max-width: none; font-size: 11px; }
  .social-links { margin-top: 20px; gap: 0 24px; }
  .social-name { font-size: 15px; }
  .social-handle { font-size: 10px; }
  .social-links a { min-height: 74px; }
  .quote-section { padding-block: 38px; }
  .quote-section h2 { font-size: 26px; }
  .quote-content blockquote { font-size: 25px; }
  .site-footer > div { gap: 15px; }
  .site-footer > div > div { flex-basis: 100%; }
  .site-footer button { flex: 1; }
  .lightbox { padding-inline: max(12px, env(safe-area-inset-left)); }
  .lightbox footer { gap: 10px; }
  .lightbox footer p { font-size: 12px; }
}
@media (max-width: 360px) {
  .wrap { width: calc(100% - 32px); }
  .site-header { padding-inline: 16px; gap: 8px; }
  .brand { font-size: 20px; }
  .site-header nav { gap: 0; }
  .site-header nav a { padding-inline: 4px; font-size: 11px; }
  .hero-personality { font-size: 14px; margin-left: 5px; }
  .hero-aside { flex-wrap: wrap; gap: 8px; }
  .hero-aside p { font-size: 13px; }
  .text-link { min-height: 44px; }
  .personal-facts { grid-template-columns: 1.6fr 1fr; gap: 14px 10px; }
  .personal-facts dd { font-size: 12px; }
  .wing-record strong { font-size: 56px; }
  .sky-cover, .sky-journal, .game-details { padding: 18px; }
  .game-tabs strong { font-size: 11px; }
  .arena-cover h3 { font-size: 28px; }
  .arena-cover .player-name { font-size: 12px; }
  .arena-weapons { gap: 16px; }
  .arena-weapons li { font-size: 21px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero h1, .game-panel.panel-enter { animation: none; }
  [data-reveal], .photo-open img, .text-link span, .social-arrow, .quote-content blockquote, .toast { transition: none; }
  [data-reveal].reveal-pending { opacity: 1; transform: none; }
}
