/* Arunvald public site. House style D-614 (brand.md §0); layout from landing-r2, calm look r3 (landing-page.md §12, Owner 2026-11-19).
   Font: IBM Plex Sans Thai (SIL OFL, /fonts/OFL-IBM-Plex-Sans-Thai.txt), self-hosted (D-105). */
@font-face { font-family: "IBM Plex Sans Thai"; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/ibm-plex-sans-thai-thai-400-normal.woff2) format("woff2"); unicode-range: U+02D7,U+0303,U+0331,U+0E01-0E5B,U+200C-200D,U+25CC; }
@font-face { font-family: "IBM Plex Sans Thai"; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/ibm-plex-sans-thai-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "IBM Plex Sans Thai"; font-style: normal; font-weight: 500; font-display: swap; src: url(/fonts/ibm-plex-sans-thai-thai-500-normal.woff2) format("woff2"); unicode-range: U+02D7,U+0303,U+0331,U+0E01-0E5B,U+200C-200D,U+25CC; }
@font-face { font-family: "IBM Plex Sans Thai"; font-style: normal; font-weight: 500; font-display: swap; src: url(/fonts/ibm-plex-sans-thai-latin-500-normal.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "IBM Plex Sans Thai"; font-style: normal; font-weight: 600; font-display: swap; src: url(/fonts/ibm-plex-sans-thai-thai-600-normal.woff2) format("woff2"); unicode-range: U+02D7,U+0303,U+0331,U+0E01-0E5B,U+200C-200D,U+25CC; }
@font-face { font-family: "IBM Plex Sans Thai"; font-style: normal; font-weight: 600; font-display: swap; src: url(/fonts/ibm-plex-sans-thai-latin-600-normal.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
:root {
  --paper: #FBF6EE; --alt: #FBF6EE; --card: #FFFDF9; --line: #ECE2D3; --ink: #2B2F5E; --text-ink: #4A454E; --muted: #776E77;
  --gold: #C9A24A; --blue: #4A5AA0; --red: #BB3E38;   /* --muted #776E77: 4.56:1 on --paper (spec #8C838B was 3.4:1) */
  --rule: linear-gradient(90deg, #4A5AA0 0 34%, #C9A24A 34% 66%, #BB3E38 66% 100%);
  --display: "IBM Plex Sans Thai", "Noto Sans Thai", "Leelawadee UI", "Segoe UI", sans-serif;
  --text: var(--display);
  --shadow: 0 1px 2px rgba(74,58,60,.06);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--text-ink); font: 400 17px/1.85 var(--text); overflow-x: hidden; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 4px; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 20; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 8px; }
.skip:focus { left: 16px; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
section { padding: 104px 0; scroll-margin-top: 64px; }
section.alt { background: var(--alt); }
h1, h2, h3 { color: var(--ink); }
h2 { font: 600 32px/1.35 var(--display); margin: 0 0 10px; }
.rule { height: 3px; width: 44px; background: var(--rule); border-radius: 3px; margin: 0 0 24px; }
.rule.west { transform: scaleX(-1); }
.lead { font-size: 18px; max-width: 600px; margin: 0 0 28px; }
.note { font-size: 14px; color: var(--muted); margin: 8px 0 0; }
.chip { display: inline-block; padding: 2px 12px; border-radius: 999px; font-size: 13px; font-weight: 500; background: transparent; border: 1px solid var(--line); color: var(--muted); line-height: 1.6; }
.chip.later { background: transparent; border: 1px dashed currentColor; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 28px; border-radius: 999px; font: 600 17px/1.2 var(--text); text-decoration: none; border: 0; cursor: pointer; color: var(--ink); }
.btn.primary { background: var(--ink); color: var(--paper); }
.btn.line { background: rgba(255,253,249,.6); color: var(--ink); box-shadow: inset 0 0 0 1.5px rgba(43,47,94,.32); }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.ph { display: grid; place-items: center; align-content: center; gap: 8px; text-align: center; padding: 16px; border-radius: 14px; border: 1px dashed #DCCFBD; color: var(--muted); font-size: 15px; font-weight: 500; aspect-ratio: 16 / 9; background: #F6EFE4; }
.card { border: 0; border-radius: 14px; background: var(--card); box-shadow: var(--shadow); overflow: hidden; }
.card .pad { padding: 16px 18px 18px; }
.card h3 { margin: 0 0 4px; font: 600 19px/1.4 var(--display); }
.card p { margin: 0; font-size: 16px; line-height: 1.6; }
.card .ph { border-radius: 0; border-width: 0 0 1px; }
.two { display: grid; grid-template-columns: 1.15fr 1fr; gap: 36px; align-items: center; }
.cols3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.cols4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.hidden, [hidden] { display: none !important; }

/* nav */
.top { position: sticky; top: 0; z-index: 10; background: rgba(251,246,238,.9); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.top .wrap { display: flex; align-items: center; gap: 20px; height: 64px; }
.top .brand img { height: 26px; width: auto; }
.top .links { display: flex; gap: 20px; }
.top a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 15px; }
.top .sp { flex: 1; }
.top .btn { min-height: 40px; font-size: 15px; padding: 0 16px; }
.top .lang { padding: 8px 4px; }
.menu { display: none; position: relative; }
.menu summary { list-style: none; display: grid; place-items: center; min-width: 48px; height: 48px; border-radius: 999px; border: 1px solid var(--line); font-weight: 500; color: var(--ink); cursor: pointer; padding: 0 14px; }
.menu summary::-webkit-details-marker { display: none; }
.menu ul { position: absolute; right: 0; top: 54px; margin: 0; padding: 8px; list-style: none; background: var(--card); border: 0; box-shadow: 0 6px 24px rgba(74,58,60,.12); border-radius: 14px; min-width: 220px; }
.menu li a { display: block; padding: 12px; min-height: 48px; }

/* Hero text and controls share a column opposite the character in the wide painting. */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  min-height: clamp(650px, 53vw, 820px); padding: 36px 7% 36px 51%;
}
.hero .art, .hero .painting, .hero::after { position: absolute; inset: 0; }
.hero .art { z-index: -2; }
.hero .painting { background: var(--hero-wide) center bottom / cover no-repeat; }
.hero::after {
  content: ""; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, transparent 24%, rgba(10,14,33,.22) 42%, rgba(12,16,38,.91) 74%, rgba(16,18,37,.87));
}
.hero .logo { width: min(31vw, 440px); aspect-ratio: 1200 / 173; margin: 0 0 24px; background: var(--hero-mark) left center / contain no-repeat; }
.hero .box { max-width: 540px; color: #eee8f0; }
.hero .box > .chip { padding: 0; border: 0; color: #f0cf80; font-weight: 600; }
.hero h1 { color: #fff8ec; font: 600 clamp(32px, 3vw, 48px)/1.24 var(--display); margin: 12px 0; text-wrap: balance; }
.hero .sub { max-width: 45ch; margin: 0 0 22px; font-size: 18px; line-height: 1.6; }
.hero .cta { display: flex; gap: 10px; flex-wrap: wrap; }
.hero .btn.primary { background: #efcf81; color: #1c2034; }
.hero .btn.line { background: #252840; color: #f8f1dc; border: 1px solid #aa9365; }
.hero .wipe {
  display: block; max-width: 52ch; margin: 14px 0 0; padding: 9px 13px;
  border-radius: 8px; border-inline-start: 2px solid #d9b65e; background: rgba(16,20,42,.91);
  color: #eee8f0; font-size: 14px; line-height: 1.55;
}
.hero .wipe a { color: #f3d68b; }
.wipe .ic { color: #f2ae99; }
.hero .plat { display: block; margin-top: 9px; color: #e3dfeb; font-size: 14px; }

/* facts */
.facts { padding: 28px 0; background: transparent; color: var(--text-ink); border-bottom: 1px solid var(--line); }
.facts ul { margin: 0 auto; padding: 0 24px; max-width: 1200px; list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; text-align: center; }
.facts b { display: block; font: 600 30px/1.2 var(--display); color: var(--ink); }
.facts span { font-size: 14px; color: var(--muted); }

/* light */
.stills { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.stills noscript { display: contents; }
.stills figure { margin: 0; } .stills figcaption { font-size: 14px; text-align: center; color: var(--muted); }
.stills .ph { font-size: 13px; }
.slider { margin-top: 14px; }
.slider input { width: 100%; height: 48px; cursor: pointer; -webkit-appearance: none; appearance: none; background: transparent; }
.slider input::-webkit-slider-runnable-track { height: 3px; background: var(--line); border-radius: 3px; }
.slider input::-moz-range-track { height: 3px; background: var(--line); border-radius: 3px; }
.slider input::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; margin-top: -8.5px; border-radius: 50%; background: var(--ink); border: 0; }
.slider input::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: var(--ink); border: 0; }
.slider .ticks { display: flex; justify-content: space-between; gap: 6px; }
.slider .ticks button { min-height: 48px; padding: 0 8px; border: 0; background: none; font: 500 14px var(--text); color: var(--muted); cursor: pointer; border-radius: 999px; }
.slider .ticks button[aria-pressed="true"] { color: var(--ink); font-weight: 600; }
.timebox { font-weight: 600; color: var(--ink); }

/* sound */
.tracks { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.track { display: grid; grid-template-columns: 48px 1fr; gap: 12px; align-items: center; padding: 8px 12px; border-radius: 14px; border: 0; background: var(--card); box-shadow: var(--shadow); }
.track small { color: var(--muted); display: block; font-size: 13px; line-height: 1.3; }
.play { width: 40px; height: 40px; border-radius: 50%; border: 0; background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); display: grid; place-items: center; font-size: 14px; }
.play[disabled] { opacity: .45; }
.pads { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 12px; }
.pads button { min-height: 56px; border-radius: 14px; border: 0; background: var(--card); box-shadow: var(--shadow); font: 500 15px var(--text); color: var(--ink); }
.pads button[disabled] { opacity: .6; }
/* sound r1: the playing track / pad */
.pads button[data-src] { cursor: pointer; transition: transform .15s ease, background .2s ease; } .pads button[data-src]:active { transform: scale(.96); }
.pads button.on, .track.on { background: var(--ink); color: #FBF6EE; } .track.on small { color: rgba(251,246,238,.75); } .track.on .play { color: #FBF6EE; box-shadow: inset 0 0 0 1.5px rgba(251,246,238,.6); }
.track .play[data-src] { cursor: pointer; }

/* nations */
.nations { padding: 0; }
.nation { position: relative; overflow: hidden; }
.nation .bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.nation .veil { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(251,246,238,.96) 0%, rgba(251,246,238,.84) 48%, rgba(251,246,238,.12) 100%); }
.nation .wrap { position: relative; padding-top: 56px; padding-bottom: 56px; }
.nation h3 { font: 600 26px/1.35 var(--display); margin: 0 0 6px; }
.nation ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; max-width: 560px; }
.nation li::before { content: "\B7  "; color: var(--muted); font-weight: 600; }
.nation .chip { position: absolute; right: 16px; bottom: 16px; }
.nations-head { padding-top: 104px; }
.nations-foot { padding-bottom: 104px; }
.switch { display: inline-grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 6px; border-radius: 999px; background: var(--card); border: 0; box-shadow: var(--shadow); margin-bottom: 8px; }
.switch button { display: flex; align-items: center; gap: 10px; min-height: 50px; padding: 6px 20px 6px 8px; border-radius: 999px; border: 0; background: none; font: 500 16px var(--text); color: var(--ink); cursor: pointer; }
.switch img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
.switch [aria-selected="true"] { background: var(--ink); color: var(--paper); }
.js-switch .nation { margin: 0; }

/* jobs */
.tabs { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }
.tabs button, .bands button { padding: 10px 22px; min-height: 48px; border-radius: 999px; font: 500 16px var(--text); border: 0; background: var(--card); box-shadow: var(--shadow); color: var(--ink); cursor: pointer; }
.tabs [aria-selected="true"], .bands [aria-selected="true"] { background: var(--ink); color: var(--paper); }
.jobline { margin-bottom: 36px; }
.jobline > h3 { font: 600 24px/1.35 var(--display); margin: 0 0 12px; }
.js-tabs .jobline > h3 { display: none; }
.jobs { display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: 20px; align-items: stretch; }
.job { border-radius: 14px; border: 0; box-shadow: var(--shadow); background: var(--card); overflow: hidden; display: grid; grid-template-rows: auto 1fr; }
.job .art { width: 100%; aspect-ratio: 2 / 3; max-height: 460px; overflow: hidden; background: #F6EFE4; }
.job .art img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 10%; }
/* cut-out figures (no painted background): a soft nation-tinted ground and a faint floor shadow so they stand like the framed paintings */
.job .art.cut { background: radial-gradient(42% 6% at 50% 94%, rgba(74,58,60,.2), transparent 75%), linear-gradient(180deg, #E3E7F2 0%, #F1ECE6 70%); }
.job.ar .art.cut { background: radial-gradient(42% 6% at 50% 94%, rgba(74,58,60,.2), transparent 75%), linear-gradient(180deg, #F4DED3 0%, #F6EDE4 70%); }
.job.vm { border-top: 3px solid var(--blue); } .job.ar { border-top: 3px solid var(--red); }
.job .pad { padding: 14px 18px 18px; }
.job h4 { margin: 0 0 6px; font: 600 19px/1.4 var(--display); color: var(--ink); }
.job p { margin: 6px 0 0; font-size: 15px; line-height: 1.6; }
.mf { float: right; display: inline-grid; grid-template-columns: 1fr 1fr; border-radius: 999px; overflow: hidden; border: 1px solid var(--line); }
.mf button { min-height: 40px; min-width: 52px; padding: 0 10px; border: 0; background: var(--card); font: 500 14px var(--text); color: var(--ink); cursor: pointer; }
.mf [aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.skills { display: grid; gap: 0; margin: 10px 0 0; padding: 0; list-style: none; font-size: 15px; }
.skills li { padding: 8px 0; border-top: 1px solid var(--line); line-height: 1.5; }
.skills small { display: block; color: var(--muted); font-size: 13px; }

/* world */
.bands { display: flex; gap: 8px; margin-bottom: 18px; flex-wrap: wrap; }
.bands button { border-radius: 999px; }
.band h3 { font-size: 20px; margin: 18px 0 6px; }
.js-bands .band h3 { display: none; }
.maplist { margin: 0; padding: 0; list-style: none; font-size: 15px; line-height: 1.5; columns: 3; column-gap: 28px; }
.maplist li { break-inside: avoid; padding: 6px 0; }
.maplist b { color: var(--muted); font-weight: 500; font-variant-numeric: tabular-nums; }
.maplist small { display: block; color: var(--muted); font-size: 13px; }

/* gather */
.gather-stage { position: relative; }
.nodes { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.nodes button { min-height: 48px; padding: 0 18px; border-radius: 999px; border: 0; box-shadow: var(--shadow); background: var(--card); font: 500 15px var(--text); color: var(--ink); cursor: pointer; }
.gotcard { margin-top: 12px; padding: 12px 16px; border-radius: 14px; border: 0; box-shadow: var(--shadow); background: var(--card); }
.gotcard b { color: var(--ink); }

/* news, faq */
.news-card time, .meta time { font-size: 13px; color: var(--muted); }
.news-card a { color: var(--ink); text-decoration: none; }
.news-card a:hover h3 { text-decoration: underline; }
.more { margin-top: 18px; }
.faq details { border: 0; border-radius: 14px; background: var(--card); box-shadow: var(--shadow); margin-bottom: 8px; }
.faq summary { cursor: pointer; padding: 12px 18px; min-height: 48px; font-weight: 600; color: var(--ink); }
.faq details p { margin: 0; padding: 0 16px 14px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; }
.boxes { max-width: 760px; margin-top: 48px; }
.odds { width: 100%; border-collapse: collapse; margin: 8px 0 18px; font-variant-numeric: tabular-nums; }
.odds th, .odds td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.odds .r { text-align: right; }
.odds tfoot td { font-weight: 600; border-bottom: 0; }

/* closing + footer */
.close { position: relative; padding: 0; text-align: center; overflow: hidden; }
.close .bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 100%; }
.close .veil { position: absolute; inset: 0; background: rgba(251,246,238,.5); }
.close .wrap { position: relative; padding-top: 90px; padding-bottom: 90px; }
.close .l { width: min(520px, 80%); margin: 0 auto 10px; }
.close h2 { font-size: 36px; }
.close .cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 18px; }
footer { background: var(--paper); color: var(--muted); font-size: 14px; padding: 32px 0; border-top: 1px solid var(--line); }
footer a { color: var(--ink); }
footer .wipe-foot { display: block; padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px solid var(--line); color: var(--text-ink); font-size: 15px; }
footer .wipe-foot b { color: var(--red); }
footer .row { display: flex; gap: 8px 22px; align-items: center; flex-wrap: wrap; }
footer .row img { height: 22px; width: auto; }
footer .sp { flex: 1; }
footer .small { margin-top: 12px; color: var(--muted); }
.sticky-cta { display: none; }

/* inner pages */
.page { padding: 56px 0 104px; }
.page h1 { font: 600 32px/1.35 var(--display); margin: 0 0 10px; }
.prose { max-width: 760px; }
.prose h2 { font-size: 24px; margin: 36px 0 8px; }
.prose ul { padding-left: 22px; }
.draft { padding: 12px 16px; border-radius: 14px; background: #FDF0EC; border: 1px solid var(--red); color: #7A2A26; font-weight: 600; margin: 0 0 20px; max-width: 760px; }
.toc { border: 0; box-shadow: var(--shadow); border-radius: 14px; background: var(--card); padding: 12px 18px; max-width: 760px; }
.toc ol { margin: 6px 0 0; padding-left: 22px; }
.toc a { display: inline-block; padding: 4px 0; }
.langpick { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-top: 24px; }

/* reveal: only with JS and no reduced-motion preference (site.js adds .anim) */
@media (prefers-reduced-motion: no-preference) {
  .anim .reveal { transition: opacity .5s ease, transform .5s ease; }
  .anim .reveal:not(.in) { opacity: 0; transform: translateY(8px); }
}
/* captures r1: game stills, clips and the world map (site/export-media.py) */
.stills img, .lightframe img, .clip video { display: block; width: 100%; height: auto; border-radius: 14px; background: #2B2F5E; }
.lightframe { position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #2B2F5E; }
.lightframe img { position: absolute; inset: 0; height: 100%; object-fit: cover; opacity: 0; transition: opacity .6s ease; border-radius: 0; }
.lightframe img.on { opacity: 1; }
.clip { position: relative; margin: 0; }
.clip-start { position: absolute; inset: 0; display: grid; place-items: center; border: 0; border-radius: 14px; background: linear-gradient(0deg, rgba(10,15,32,.5), transparent 55%); color: #ffdf96; cursor: pointer; }
.clip-start span { display: grid; place-items: center; width: 58px; height: 58px; border: 1px solid #e5c87a; border-radius: 50%; background: rgba(18,21,41,.9); font: 24px/1 var(--text); padding-left: 3px; }
.clip-start:focus-visible { outline-offset: -4px; outline-color: #ffdb85; } .clip video { aspect-ratio: 16 / 9; object-fit: cover; box-shadow: var(--shadow); }
.scenes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px 20px; margin-top: 8px; }
.scene p { margin: 10px 2px 0; font-size: .95rem; }
.eg-top { max-width: 880px; margin: 4px auto 26px; }
.scenes.three { grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 960px) { .scenes.three { grid-template-columns: 1fr 1fr; } }
@media (max-width: 720px) { .scenes, .scenes.three { grid-template-columns: 1fr; gap: 18px; } }
.worldmap { position: relative; margin: 0 auto 22px; max-width: 620px; aspect-ratio: 1; border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); background: #1F3557; }
.worldmap img { display: block; width: 100%; height: 100%; object-fit: cover; }
.worldmap .pin { position: absolute; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: #FCEBD7; box-shadow: 0 0 0 2px #2B2F5E; opacity: 0; transform: scale(.4); transition: opacity .3s ease, transform .3s ease; pointer-events: none; }
.js-bands .worldmap .pin.on { opacity: 1; transform: scale(1); }
.worldmap .pin:not([style]) { display: none; }
@media (max-width: 480px) { .worldmap { max-width: 100%; } }
/* motion r1 (Owner 2026-11-19 "ตอนนี้นิ่งเลย"): only the existing art moves; nothing is drawn. Off for reduced motion. */
@media (prefers-reduced-motion: no-preference) {
  .anim .hero .painting { animation: drift 38s ease-in-out infinite alternate; transform-origin: 30% 80%; will-change: transform; }
  @keyframes drift { from { transform: scale(1.02) translate3d(0, 0, 0); } to { transform: scale(1.09) translate3d(-1.2%, -.6%, 0); } }
  .anim .hero .art { transform: translate3d(var(--px, 0), var(--py, 0), 0) scale(1.03); transition: transform .9s cubic-bezier(.2,.7,.2,1); }
  .anim .hero .logo { animation: rise 1.1s .15s cubic-bezier(.2,.7,.2,1) both; transform: translate3d(calc(var(--px, 0) * -.6), calc(var(--py, 0) * -.6), 0); }
  .anim .hero .box > * { animation: rise .9s cubic-bezier(.2,.7,.2,1) both; }
  .anim .hero .box > :nth-child(2) { animation-delay: .35s; } .anim .hero .box > :nth-child(3) { animation-delay: .45s; }
  .anim .hero .box > :nth-child(4) { animation-delay: .55s; } .anim .hero .box > :nth-child(n+5) { animation-delay: .7s; }
  @keyframes rise { from { opacity: 0; transform: translate3d(0, 14px, 0); } to { opacity: 1; } }
  .anim .hero .btn.primary { animation: rise .45s ease-out both; }
  @keyframes glow { 0%, 100% { box-shadow: 0 0 0 0 rgba(43,47,94,0); } 50% { box-shadow: 0 0 0 8px rgba(43,47,94,.12); } }
  .anim .reveal.in .card, .anim .reveal.in .job, .anim .reveal.in figure, .anim .reveal.in .facts li { animation: rise .7s cubic-bezier(.2,.7,.2,1) both; }
  .anim .reveal.in :is(.card, .job, figure):nth-child(2) { animation-delay: .08s; } .anim .reveal.in :is(.card, .job, figure):nth-child(3) { animation-delay: .16s; }
  .anim .reveal.in :is(.card, .job, figure):nth-child(4) { animation-delay: .24s; } .anim .reveal.in :is(.card, .job, figure):nth-child(n+5) { animation-delay: .32s; }
  .job, .card { transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s ease; }
  .job .art img { transition: transform 1.2s cubic-bezier(.2,.7,.2,1), opacity .35s ease; }
  @media (hover: hover) {
    .job:hover, .card:hover { transform: translateY(-4px); box-shadow: 0 10px 28px rgba(74,58,60,.12); }
    .job:hover .art img { transform: scale(1.04); }
  }
  .job .art img.swap { opacity: 0; }
  .anim .worldmap img { animation: drift 46s ease-in-out infinite alternate; transform-origin: 50% 45%; }
  .js-bands .worldmap .pin.on { animation: ping 2.4s ease-out infinite; }
  @keyframes ping { 0% { box-shadow: 0 0 0 2px #2B2F5E, 0 0 0 0 rgba(252,235,215,.85); } 70%, 100% { box-shadow: 0 0 0 2px #2B2F5E, 0 0 0 12px rgba(252,235,215,0); } }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }

@media (max-width: 1000px) {
  .top .links { display: none; } .menu { display: block; }
  .cols4 { grid-template-columns: 1fr 1fr; } .maplist { columns: 2; }
}
@media (max-width: 760px) {
  body { font-size: 16px; } .wrap { padding: 0 16px; } section { padding: 60px 0; } h2 { font-size: 25px; }
  .top .wrap { gap: 10px; } .top .brand img { height: 22px; } .top .btn { display: none; }
  .top .brand, .top .lang, .top .theme-btn { min-width: 48px; min-height: 48px; display: inline-flex; align-items: center; justify-content: center; }
  .top .wrap { gap: 6px; }
  .hero { display: block; min-height: 0; padding: 0; }
  .hero .art { position: relative; height: clamp(205px, 35svh, 340px); overflow: hidden; }
  .hero .painting { background-image: var(--hero-phone); background-position: center 73%; }
  .hero::after { display: none; }
  .hero .logo { position: absolute; top: 14px; left: 19%; width: 62%; margin: 0; }
  .hero .box { max-width: none; padding: 16px 18px 22px; background: var(--paper); border-top: 1px solid #a38950; color: var(--text-ink); }
  .hero .box > .chip { color: #73570e; }
  html[data-theme="dark"] .hero .box > .chip { color: #efcf81; }
  .hero h1 { margin: 5px 0; color: var(--ink); font-size: 27px; line-height: 1.3; }
  .hero .sub { margin: 0 0 12px; font-size: 16px; line-height: 1.55; }
  .hero .cta { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(125px, 100%), 1fr)); gap: 8px; }
  .hero .wipe { max-width: none; margin-top: 12px; padding: 8px 11px; }
  .hero .plat { color: var(--muted); font-size: 13px; }
  .facts ul { grid-template-columns: 1fr 1fr; padding: 0 16px; } .facts li:last-child { grid-column: 1 / -1; } .facts b { font-size: 26px; }
  .two, .jobs, .cols3, .cols4, .split { grid-template-columns: 1fr; gap: 16px; }
  .pads { grid-template-columns: 1fr 1fr; }
  .tabs { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; } .tabs button { white-space: nowrap; padding: 10px 16px; }
  .job .art { max-height: 380px; }
  .maplist { columns: 1; }
  .nation .veil { background: rgba(251,246,238,.9); } .switch { display: grid; width: 100%; }
  .close h2 { font-size: 26px; }
  .page h1 { font-size: 28px; }
  .sticky-cta { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 9; padding: 10px 16px; background: rgba(251,246,238,.96); border-top: 1px solid var(--line); }
  .sticky-cta .btn { width: 100%; }
  .js .sticky-cta { display: none; } .js.past-hero .sticky-cta { display: block; }
  body { padding-bottom: 72px; }
}

/* condensed landing r2 (Owner via the Lead 2026-11-20: half the scroll): world, a one-row jobs grid, tabbed fights, news + FAQ */
section { padding: 72px 0; }
.lead { margin-bottom: 20px; }
.nats, .feats, .c2 { list-style: none; margin: 0; padding: 0; }
.nats { display: grid; gap: 10px; margin-bottom: 16px; }
.nat { display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: start; padding: 12px 14px; border-radius: 14px; background: var(--card); box-shadow: var(--shadow); line-height: 1.55; }
.nat img { width: 34px; height: auto; margin-top: 3px; } .nat.aruna { border-left: 3px solid var(--red); } .nat.valdmark { border-left: 3px solid var(--blue); }
.nat small { display: block; color: var(--muted); font-size: 14px; margin-top: 2px; }
.feats li { position: relative; padding-left: 18px; margin: 6px 0; font-size: 16px; line-height: 1.55; }
.feats li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
.jobrow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.jobcard { border-radius: 14px; background: var(--card); box-shadow: var(--shadow); overflow: hidden; display: grid; grid-template-rows: auto 1fr; }
.jobcard .art { aspect-ratio: 4 / 5; overflow: hidden; background: #F6EFE4; }
.jobcard .art img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 8%; }
.jobcard .art.cut { background: radial-gradient(42% 6% at 50% 94%, rgba(74,58,60,.2), transparent 75%), linear-gradient(180deg, #E3E7F2 0%, #F1ECE6 70%); }
.jobcard .pad { padding: 12px 16px 16px; }
.jobcard h3 { margin: 0 0 6px; font: 600 20px/1.35 var(--display); color: var(--ink); }
.jobcard p { margin: 8px 0 10px; font-size: 15px; line-height: 1.55; }
.c2 li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 7px 0; border-top: 1px solid var(--line); font-size: 15px; }
.c2 img { width: 20px; height: auto; } .c2 .chip { font-size: 12px; padding: 0 8px; }
.egchips { display: flex; flex-wrap: wrap; gap: 8px; margin: -6px 0 18px; }
.egchips .chip { font-size: 14px; color: var(--ink); background: var(--card); }
.ftabs { display: flex; gap: 8px; margin-bottom: 18px; flex-wrap: wrap; }
.ftabs button { border-radius: 999px; min-height: 48px; padding: 0 18px; border: 1px solid var(--line); background: var(--card); font: 500 15px var(--text); color: var(--ink); cursor: pointer; }
.ftabs [aria-selected="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.fpanel { margin-bottom: 26px; } .fpanel > h3 { font: 600 20px/1.35 var(--display); margin: 0 0 12px; }
.js-ftabs .fpanel > h3 { display: none; } .js-ftabs .fpanel { margin: 0; } .js-ftabs .fpanel[hidden] { display: none; }
.fpanel .note { margin: 0 0 12px; }
.fpanel .eg-top { max-width: 900px; margin: 0; } .fpanel .eg-top p { margin: 10px 2px 0; font-size: .95rem; }
.newsfaq { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.newslist { display: grid; gap: 12px; }
.newslist .news-card img, .newslist .card .ph { display: none; }
#faq { scroll-margin-top: 64px; }
@media (max-width: 1000px) { .jobrow { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) {
  section { padding: 48px 0; }
  .newsfaq { grid-template-columns: 1fr; gap: 28px; }
  .jobrow { grid-template-columns: 1fr 1fr; gap: 12px; } .jobcard .pad { padding: 10px 12px 12px; } .jobcard h3 { font-size: 17px; }
  .jobcard p { font-size: 14px; } .c2 li { font-size: 13px; } .c2 .chip { display: none; }
  .ftabs { flex-wrap: wrap; } .ftabs button { padding-inline: 12px; }
}

/* dark theme (Owner 2026-11-20: likes dark; theme.js sets html[data-theme] from the visitor's clock, dark 18:00–06:00, or the nav switch) */
:root { color-scheme: light; --topbar: rgba(251,246,238,.9); --glass: rgba(255,253,249,.8); --veil: rgba(251,246,238,.5); --art-bg: #F6EFE4; }
html[data-theme="dark"] {
  color-scheme: dark;
  --paper: #14162B; --alt: #14162B; --card: #1E2240; --line: #2F3458; --ink: #EDE6F7; --text-ink: #CBC5D9; --muted: #A39DB5;
  --gold: #D9B65E; --blue: #9DADF0; --red: #E8807A;
  --shadow: 0 1px 2px rgba(0,0,0,.35);
  --topbar: rgba(20,22,43,.88); --glass: rgba(30,34,64,.82); --veil: rgba(20,22,43,.55); --art-bg: #232846;
}
.top { background: var(--topbar); }
.btn.line { background: var(--glass); }
.close .veil { background: var(--veil); }
.jobcard .art, .job .art { background: var(--art-bg); }
.ph { border-color: var(--line); }
html[data-theme="dark"] .btn.line { box-shadow: inset 0 0 0 1.5px rgba(237,230,247,.35); }
html[data-theme="dark"] .menu ul { box-shadow: 0 6px 24px rgba(0,0,0,.45); }
html[data-theme="dark"] .draft { background: #3A1F28; color: #F3C2BE; }

/* until the night key art (Codex r8) is installed, the day painting keeps its own light text so it stays readable */
html[data-theme="dark"] .close .wrap { --ink: #2B2F5E; --paper: #FBF6EE; }
html[data-theme="dark"] .close .veil { background: rgba(20,22,43,.35); }
.theme-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); color: var(--ink); font-size: 18px; line-height: 1; cursor: pointer; padding: 0; }
.theme-btn[hidden] { display: none; }
.theme-btn .sun { display: none; }
html[data-theme="dark"] .theme-btn .sun { display: inline; } html[data-theme="dark"] .theme-btn .moon { display: none; }
@media (max-width: 760px) {
  .sticky-cta { background: var(--topbar); }
}
.top .brand .wd-dark { display: none; }
html[data-theme="dark"] .top .brand .wd-light { display: none; } html[data-theme="dark"] .top .brand .wd-dark { display: block; }

/* night art + fireflies (Codex r8; theme.js sets html[data-time] from the clock and builds the glows) */
.flies { position: absolute; inset: 0; pointer-events: none; overflow: hidden; display: none; }
html[data-time="night"] .flies { display: block; }
.flies span { position: absolute; margin: -20px 0 0 -20px; background-repeat: no-repeat; mix-blend-mode: screen; will-change: transform, opacity;
  animation-name: fly, flicker; animation-timing-function: ease-in-out, ease-in-out; animation-iteration-count: infinite, infinite; animation-direction: alternate, alternate; }
@keyframes fly { from { transform: translate(0, 0); } to { transform: translate(var(--dx), var(--dy)); } }
@keyframes flicker { 0% { opacity: .25; } 45% { opacity: 1; } 70% { opacity: .55; } 100% { opacity: .9; } }
@media (min-width: 761px) {
  html[data-time="night"] .hero h1, html[data-time="night"] .hero .sub { text-shadow: 0 1px 12px rgba(10,12,30,.6); }
}
html[data-time="night"] .close .wrap { --ink: #F3ECFA; --paper: #14162B; }
html[data-time="night"] .close .veil { background: rgba(14,16,34,.42); }

/* reference look (Owner 2026-11-20, a site he likes): small gold labels over centred headings */
.eyebrow { display: block; font: 600 13px/1.4 var(--display); letter-spacing: .22em; text-transform: uppercase; color: var(--gold); margin: 0 0 6px; }
.sec-c > .wrap > .eyebrow, .sec-c > .wrap > h2, .sec-c > .wrap > .lead { text-align: center; margin-left: auto; margin-right: auto; }
.sec-c > .wrap > .rule { margin-left: auto; margin-right: auto; }
.sec-c > .wrap > .egchips, .sec-c > .wrap > .ftabs { justify-content: center; }
html[data-theme="dark"] h2 { color: #F3ECFA; }
.mapsec { grid-template-columns: minmax(0, .95fr) 1fr; align-items: start; }
.mapsec .worldmap { margin: 0; max-width: none; }
.bandcount { margin: 4px 0 2px; font: 600 18px/1.5 var(--display); color: var(--ink); }
.bandboss { margin: 0 0 8px; font-size: 15px; color: var(--gold); }
.bandmaps { margin: 0; font-size: 14px; line-height: 1.7; color: var(--muted); }

/* class picker: the 12 in-game bodies (lineup12 capture) over one painting panel */
.jobpick { display: flex; justify-content: center; gap: 4px; flex-wrap: wrap; margin: 6px 0 22px; }
.jobpick button { display: grid; justify-items: center; gap: 2px; width: 88px; padding: 6px 2px 8px; border: 0; border-radius: 14px; background: transparent; cursor: pointer; color: var(--muted); font: 500 13px/1.3 var(--text); }
.jobpick button img { height: 96px; width: auto; image-rendering: pixelated; filter: saturate(.85) brightness(.9); transition: transform .2s ease, filter .2s ease; }
.jobpick button:hover img { transform: translateY(-3px); filter: none; }
.jobpick [aria-selected="true"] { color: var(--ink); background: var(--card); box-shadow: inset 0 -2px 0 var(--gold); }
.jobpick [aria-selected="true"] img { filter: none; transform: translateY(-3px); }
.jobpick button.c1:not(:first-child) { margin-left: 14px; }
.jobpanels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; text-align: left; }
.js-jobpick .jobpanels { display: block; max-width: 900px; margin: 0 auto; }
.jobpanel { display: grid; grid-template-columns: 1fr; border-radius: 14px; background: var(--card); box-shadow: var(--shadow); overflow: hidden; }
.js-jobpick .jobpanel { grid-template-columns: minmax(0, .9fr) 1.1fr; }
.jobpanel[hidden] { display: none; }
.jobpanel .art { aspect-ratio: 4 / 5; overflow: hidden; background: var(--art-bg); }
.jobpanel .art img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 8%; }
.jobpanel .art.cut { background: radial-gradient(42% 6% at 50% 94%, rgba(74,58,60,.2), transparent 75%), linear-gradient(180deg, #E3E7F2 0%, #F1ECE6 70%); }
.jobpanel .pad { padding: 22px 26px; align-self: center; }
.jobpanel h3 { font: 600 30px/1.3 var(--display); margin: 10px 0 8px; color: var(--ink); }
.jobpanel .chip img { display: inline; width: 16px; height: auto; vertical-align: -2px; }
.jobpanel p { margin: 12px 0; font-size: 17px; }
@media (max-width: 760px) {
  .jobpick { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; padding-bottom: 6px; }
  .jobpick button { flex: 0 0 72px; width: 72px; } .jobpick button img { height: 76px; } .jobpick button.c1:not(:first-child) { margin-left: 8px; }
  .jobpanels, .js-jobpick .jobpanel { grid-template-columns: 1fr; }
  .jobpanel .art { aspect-ratio: 1 / 1; } .jobpanel .pad { padding: 16px 18px; } .jobpanel h3 { font-size: 24px; }
}
@media (max-width: 760px) {
  .mapsec { grid-template-columns: 1fr; gap: 18px; }
  .sec-c > .wrap > .ftabs { justify-content: flex-start; }
  .bands { flex-wrap: nowrap; overflow-x: auto; } .bands button { white-space: nowrap; }
}

/* job cards: the in-game body breathing at idle (animated WebP of the game's two idle poses) on the painting and by each Class 2 */
.jobcard .art { position: relative; }
.jobcard .art img.body { position: absolute; left: 10px; bottom: 6px; width: auto; height: 138px; object-fit: contain; image-rendering: pixelated; filter: drop-shadow(0 2px 3px rgba(10,12,30,.45)); }
.c2 li { flex-wrap: nowrap; gap: 8px; }
.c2 img.mini { width: auto; height: 69px; flex: none; image-rendering: pixelated; }
.c2 .c2t { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.c2 .c2t img { width: 20px; height: auto; }
@media (max-width: 760px) { .jobcard .art img.body { height: 69px; left: 6px; bottom: 4px; } .c2 img.mini { height: 52px; } }
