/* Project Beelzebub game website: colours of style A (cream paper, navy ink, one gold accent) on the layout of style C
   (portal: title, status, big buttons, framed panels). Six languages: Kanit carries Thai + basic Latin; Vietnamese uses the
   system font (Kanit's Vietnamese subset is not in assets/fonts), Chinese falls back to the system CJK font. */
@font-face { font-family: Kanit; font-weight: 400; font-display: swap; src: url("assets/fonts/kanit-thai-400-normal.woff2") format("woff2"); unicode-range: U+0E01-0E5B, U+200C-200D, U+25CC; }
@font-face { font-family: Kanit; font-weight: 600; font-display: swap; src: url("assets/fonts/kanit-thai-600-normal.woff2") format("woff2"); unicode-range: U+0E01-0E5B, U+200C-200D, U+25CC; }
@font-face { font-family: Kanit; font-weight: 800; font-display: swap; src: url("assets/fonts/kanit-thai-800-normal.woff2") format("woff2"); unicode-range: U+0E01-0E5B, U+200C-200D, U+25CC; }
@font-face { font-family: Kanit; font-weight: 400; font-display: swap; src: url("assets/fonts/kanit-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122; }
@font-face { font-family: Kanit; font-weight: 600; font-display: swap; src: url("assets/fonts/kanit-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122; }
@font-face { font-family: Kanit; font-weight: 800; font-display: swap; src: url("assets/fonts/kanit-latin-800-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122; }
@font-face { font-family: "Pixelify Sans"; font-weight: 700; font-display: swap; src: url("assets/fonts/pixelify-sans-latin-700-normal.woff2") format("woff2"); }

:root {
  --paper: #fffdf6; --cream: #f6efdc; --card: #ffffff; --ink: #1b2238; --ink2: #4d546a; --line: #e2d6b4;
  --gold: #f2c230; --gold2: #b98a06; --ok: #2e9d5b; --up: #1f6fb3; --fix: #8a5a12;
  --w: 1120px; --r: 12px; --bar: 68px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--bar) + 14px); }
body { margin: 0; background: var(--cream); color: var(--ink); font: 400 16px/1.6 Kanit, "Segoe UI", Tahoma, sans-serif; -webkit-text-size-adjust: 100%; }
html:lang(vi) body { font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }
html:lang(zh-Hans) body { font-family: Kanit, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif; }
html:lang(zh-Hant) body { font-family: Kanit, "PingFang TC", "Microsoft JhengHei", "Noto Sans TC", sans-serif; }
.brand, .hero h1, .foot strong, .job h3, .places li { font-family: Kanit, "Segoe UI", sans-serif; }
img, video { max-width: 100%; height: auto; display: block; }
.px { image-rendering: pixelated; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--up); outline-offset: 2px; border-radius: 4px; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 50; }
.skip:focus { left: 8px; top: 8px; }

/* ---- top bar (A): quiet paper bar, the one gold button ---- */
.bar { position: sticky; top: 0; z-index: 30; background: var(--paper); border-bottom: 2px solid var(--ink); }
.bar__in { max-width: 1280px; margin: 0 auto; height: var(--bar); padding: 0 20px; display: flex; align-items: center; gap: 22px; }
.brand { font-weight: 800; font-size: 20px; letter-spacing: .04em; text-decoration: none; white-space: nowrap; }
.nav { display: flex; gap: 4px; margin-right: auto; }
.nav a { text-decoration: none; font-weight: 600; font-size: 16px; padding: 8px 12px; border-radius: 8px; }
.nav a:hover { background: var(--cream); }
.nav__lang { display: none; }
.lang { position: relative; }
.lang summary { list-style: none; display: flex; align-items: center; gap: 6px; cursor: pointer; font-weight: 600; font-size: 14px; line-height: 1.4; padding: 7px 11px; border: 2px solid var(--line); border-radius: 8px; white-space: nowrap; }
.lang summary::-webkit-details-marker { display: none; }
.lang summary svg { width: 17px; height: 17px; }
.lang summary:hover, .lang[open] summary { border-color: var(--ink); }
.lang ul { position: absolute; right: 0; top: calc(100% + 8px); min-width: 196px; background: var(--paper); border: 2px solid var(--ink); border-radius: 10px; box-shadow: 0 5px 0 var(--ink); padding: 6px; z-index: 40; }
.lang a { display: block; padding: 8px 12px; border-radius: 6px; text-decoration: none; font-weight: 600; }
.lang a:hover { background: var(--cream); }
.lang a[aria-current] { background: var(--ink); color: #fff; }
.btn { display: inline-flex; align-items: center; justify-content: center; background: var(--gold); color: var(--ink); font-weight: 800; text-decoration: none;
  border: 2px solid var(--ink); border-radius: 10px; box-shadow: 0 4px 0 var(--ink); transition: transform .08s, box-shadow .08s; }
.btn:hover { transform: translateY(2px); box-shadow: 0 2px 0 var(--ink); }
.btn:active { transform: translateY(4px); box-shadow: 0 0 0 var(--ink); }
.btn--s { font-size: 16px; padding: 7px 20px; margin-bottom: 4px; }
.btn--wide { width: 100%; font-size: 19px; padding: 12px 20px; margin-top: 18px; }
.btn--xl { font-size: 24px; padding: 14px 54px; }
.tog { display: none; width: 44px; height: 44px; background: none; border: 2px solid var(--ink); border-radius: 8px; padding: 0; cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.tog i { display: block; width: 20px; height: 3px; background: var(--ink); }

/* ---- hero: the key art whole (A), the portal stack on it (C) ---- */
.hero { position: relative; aspect-ratio: 1640 / 624; min-height: 430px; max-height: 660px; width: 100%; background: var(--ink) url("assets/cover_a_river.webp") 55% 100% / cover no-repeat;
  image-rendering: pixelated; color: #fff; text-align: center; border-bottom: 2px solid var(--ink); }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(27, 34, 56, .72) 0%, rgba(27, 34, 56, .5) 34%, rgba(27, 34, 56, 0) 62%, rgba(27, 34, 56, .2) 100%); }
.hero__in { position: relative; max-width: var(--w); margin: 0 auto; padding: clamp(26px, 4.2vw, 60px) 16px 0; }
.hero h1 { font-weight: 800; font-size: clamp(30px, 6.6vw, 84px); line-height: 1.05; letter-spacing: .1em; text-shadow: 0 4px 0 rgba(27, 34, 56, .6), 0 0 28px rgba(27, 34, 56, .55); }
.hero__tag { font-size: clamp(16px, 2vw, 21px); font-weight: 600; margin-top: 10px; text-shadow: 0 2px 0 rgba(27, 34, 56, .7); }
.status { display: inline-flex; align-items: center; gap: 9px; margin-top: 16px; padding: 5px 16px; background: rgba(27, 34, 56, .78); border: 1px solid rgba(255, 255, 255, .35); border-radius: 999px; font-size: 15px; }
.status i { width: 10px; height: 10px; border-radius: 50%; background: #5fdc8c; box-shadow: 0 0 0 3px rgba(95, 220, 140, .25); }
.gate { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: -42px; text-align: center; }
.gate__b { display: flex; flex-direction: column; justify-content: center; min-height: 92px; padding: 14px 10px; background: var(--paper); color: var(--ink); text-decoration: none;
  border: 2px solid var(--ink); border-radius: var(--r); box-shadow: 0 5px 0 var(--ink); transition: transform .08s, box-shadow .08s; }
.gate__b:hover { transform: translateY(2px); box-shadow: 0 3px 0 var(--ink); }
.gate__b b { font-weight: 800; font-size: 21px; line-height: 1.25; }
.gate__b span { font-size: 13.5px; color: var(--ink2); }
.gate__b--play { background: var(--gold); }
.gate__b--play b { font-size: 25px; }
.gate__b--play span { color: var(--ink); }

/* ---- portal panels (C) in paper colours (A) ---- */
.wrap { max-width: var(--w); margin: 0 auto; padding: 26px 16px 60px; display: grid; gap: 22px; }
.row { display: grid; gap: 22px; align-items: stretch; }
.row--a { grid-template-columns: 290px minmax(0, 1fr); }
.row--b { grid-template-columns: minmax(0, 1fr) 340px; }
.col { display: grid; gap: 22px; align-content: start; min-width: 0; }
.panel { min-width: 0; background: var(--card); border: 2px solid var(--ink); border-radius: var(--r); padding: 18px 22px 22px; box-shadow: 6px 6px 0 var(--line); }
.panel__h { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; padding-bottom: 8px; margin-bottom: 14px; border-bottom: 3px solid var(--gold); }
.panel__h small { font: 700 14px/1 "Pixelify Sans", Kanit, sans-serif; letter-spacing: .12em; color: var(--gold2); }
.panel__h h2 { font-weight: 800; font-size: 23px; line-height: 1.3; }
.lead { color: var(--ink2); margin-bottom: 14px; }
.fine { color: var(--ink2); font-size: 14px; margin-top: 12px; }

.menu li + li { border-top: 1px solid var(--line); }
.menu a { display: flex; align-items: center; gap: 10px; padding: 10px 4px; text-decoration: none; font-weight: 600; }
.menu a::before { content: ""; width: 0; height: 0; border-left: 8px solid var(--gold2); border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
.menu a:hover { background: var(--cream); }

.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.tabs button { font: inherit; font-weight: 600; font-size: 15px; line-height: 1; color: var(--ink); background: var(--paper); border: 2px solid var(--line); border-radius: 999px; padding: 8px 16px; cursor: pointer; }
.tabs button:hover { border-color: var(--ink); }
.tabs button[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }

.news li { display: grid; grid-template-columns: 62px auto minmax(0, 1fr); gap: 4px 10px; align-items: baseline; padding: 10px 2px; border-top: 1px solid var(--line); }
.news li:first-child { border-top: 0; }
.news li[hidden] { display: none; }
.news time { color: var(--ink2); font-size: 14px; white-space: nowrap; }
.kind { font-size: 12.5px; font-weight: 600; line-height: 1; padding: 4px 9px; border-radius: 6px; color: #fff; white-space: nowrap; }
.kind--up { background: var(--up); }
.kind--fix { background: var(--fix); }
.news p { font-weight: 600; }

.rk__row { display: grid; grid-template-columns: 52px minmax(0, 1fr) 150px 96px; gap: 10px; align-items: center; padding: 8px 6px; border-top: 1px solid var(--line); }
.rk__row--h { border-top: 0; padding-top: 2px; padding-bottom: 6px; font-size: 13.5px; color: var(--ink2); }
.rk--nojob .rk__row { grid-template-columns: 52px minmax(0, 1fr) 96px; }
.rk__n { width: 34px; height: 34px; display: grid; place-items: center; font-weight: 800; border-radius: 8px; background: var(--cream); }
.rk__row[data-n="1"] .rk__n { background: var(--gold); border: 2px solid var(--ink); }
.rk__row[data-n="2"] .rk__n { background: #d5dae3; border: 2px solid var(--ink); }
.rk__row[data-n="3"] .rk__n { background: #e0a878; border: 2px solid var(--ink); }
.rk__name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rk__row[data-n="1"] .rk__name { font-weight: 800; font-size: 18px; }
.rk__job { display: flex; align-items: center; gap: 8px; font-size: 14.5px; color: var(--ink2); white-space: nowrap; }
.rk__job i { width: 10px; height: 10px; border-radius: 3px; background: var(--c, var(--ink2)); flex: none; }
.rk__val { text-align: right; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rk__val small { font-weight: 400; font-size: 13px; color: var(--ink2); margin-right: 4px; }
.rk__row--h .rk__val { font-weight: 400; }
.rk__note { margin-top: 12px; font-size: 13.5px; color: var(--ink2); }
.rk__note b { display: inline-block; font-weight: 600; color: var(--fix); background: #fbf0cf; border: 1px dashed var(--gold2); border-radius: 6px; padding: 2px 10px; }

.steps { counter-reset: s; display: grid; gap: 14px; }
.steps li { counter-increment: s; position: relative; padding-left: 50px; min-height: 38px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 2px; width: 36px; height: 36px; display: grid; place-items: center; background: var(--ink); color: var(--gold); font-weight: 800; font-size: 18px; border-radius: 8px; }
.steps strong { display: block; font-weight: 800; line-height: 1.35; }
.steps p { color: var(--ink2); font-size: 14.5px; }

.lineup { border: 2px solid var(--ink); border-radius: 10px; overflow: hidden; margin-bottom: 16px; }
.lineup img { width: 100%; aspect-ratio: 1640 / 440; object-fit: cover; object-position: center 100%; }
.jobs { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; }
.job { border: 2px solid var(--line); border-top: 7px solid var(--c); border-radius: 10px; padding: 10px 11px 12px; background: var(--paper); }
.job h3 { font-weight: 800; font-size: 16.5px; line-height: 1.25; overflow-wrap: anywhere; }
.job--0 { --c: #c0392b; }
.job--1 { --c: #6c4cc4; }
.job--2 { --c: #2f8a45; }
.job--3 { --c: #39424f; }
.job--4 { --c: #b8651b; }
.job--5 { --c: #1f8fb3; }
.job--6 { --c: #c2418b; }
.job p { font-size: 13.5px; line-height: 1.5; color: var(--ink2); margin-top: 5px; }

.board { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.photo { padding: 0; background: var(--paper); border: 2px solid var(--ink); border-radius: 10px; overflow: hidden; cursor: zoom-in; text-align: left; font: inherit; color: inherit; }
.photo img { width: 100%; aspect-ratio: 5 / 3; object-fit: cover; }
.photo span { display: block; padding: 7px 10px 8px; font-size: 13.5px; line-height: 1.4; border-top: 2px solid var(--ink); }
.photo:hover { box-shadow: 0 0 0 3px var(--gold); }
.places { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.places li { font-size: 14px; font-weight: 600; padding: 4px 12px; background: var(--cream); border: 1px solid var(--line); border-radius: 999px; }

.need dt { font-weight: 800; line-height: 1.4; }
.need dd { color: var(--ink2); font-size: 14.5px; margin-bottom: 8px; }
.faq { columns: 2; column-gap: 34px; }
.faq details { break-inside: avoid; }
.faq details { border-top: 1px solid var(--line); }
.faq details { border-top: 0; border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 600; padding: 10px 2px; list-style-position: outside; margin-left: 18px; }
.faq details p { color: var(--ink2); padding: 0 2px 12px 18px; }

/* ---- our channels ---- */
.ico { width: 38px; height: 38px; display: grid; place-items: center; flex: none; color: var(--ink); border: 2px solid var(--line); border-radius: 9px; text-decoration: none; }
.ico svg { width: 19px; height: 19px; }
a.ico:hover { border-color: var(--ink); background: var(--gold); }
.ico--dark { color: #fff; border-color: rgba(255, 255, 255, .35); }
a.ico--dark:hover { color: var(--ink); border-color: var(--gold); }
.bar__soc { display: flex; gap: 6px; }
.socs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.socs--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.socs--1 { grid-template-columns: minmax(0, 1fr); }
.soc { display: flex; align-items: center; gap: 14px; padding: 14px 16px; background: var(--paper); color: var(--ink); text-decoration: none; border: 2px solid var(--ink); border-radius: var(--r); box-shadow: 0 4px 0 var(--ink); transition: transform .08s, box-shadow .08s; }
a.soc:hover { transform: translateY(2px); box-shadow: 0 2px 0 var(--ink); background: #fff7d6; }
.soc svg { width: 46px; height: 46px; flex: none; padding: 10px; background: var(--ink); color: var(--gold); border-radius: 10px; }
.soc b { display: block; font-weight: 800; font-size: 19px; line-height: 1.25; }
.soc small { display: block; font-size: 13.5px; line-height: 1.45; color: var(--ink2); }
.foot__soc { display: flex; align-items: center; gap: 8px; font-size: 14.5px; }
.foot__soc span { margin-right: 4px; }

/* ---- last call + footer ---- */
.last { position: relative; background: var(--ink) url("assets/cover_c_boss.webp") center 45% / cover no-repeat; image-rendering: pixelated; color: #fff; text-align: center; border-top: 2px solid var(--ink); }
.last::before { content: ""; position: absolute; inset: 0; background: rgba(27, 34, 56, .62); }
.last__in { position: relative; padding: 76px 16px 84px; }
.last h2 { font-weight: 800; font-size: clamp(28px, 4.6vw, 48px); line-height: 1.2; text-shadow: 0 3px 0 rgba(27, 34, 56, .7); }
.last p { font-size: 18px; margin: 6px 0 24px; }
.foot { background: var(--ink); color: #dfe3ee; }
.foot__in { max-width: var(--w); margin: 0 auto; padding: 26px 16px 30px; display: grid; gap: 22px; }
.foot__top, .foot__end { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 28px; }
.foot strong { color: #fff; font-weight: 800; letter-spacing: .06em; margin-right: auto; }
.foot__legal { display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 14.5px; margin-right: auto; }
.foot small { font-size: 14px; }
/* footer site map: every page one click away */
.foot__map { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px 28px; padding: 18px 0; border-top: 1px solid rgba(255, 255, 255, .18); border-bottom: 1px solid rgba(255, 255, 255, .18); }
.foot__h { font: 700 13px/1.2 "Pixelify Sans", Kanit, sans-serif; letter-spacing: .12em; color: var(--gold); text-transform: uppercase; margin-bottom: 8px; }
.foot__map ul { display: grid; gap: 4px; font-size: 14.5px; }
.foot__map a { text-decoration: none; }
.foot__map a:hover { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; }

.zoom { border: 2px solid var(--ink); border-radius: var(--r); padding: 12px; background: var(--paper); color: var(--ink); max-width: min(96vw, 1100px); }
.zoom::backdrop { background: rgba(27, 34, 56, .8); }
.zoom img { width: 100%; image-rendering: pixelated; border-radius: 6px; }
.zoom p { margin-top: 8px; font-weight: 600; padding-right: 48px; }
.zoom button { position: absolute; right: 12px; bottom: 8px; width: 40px; height: 40px; font: 800 22px/1 Kanit, sans-serif; background: var(--gold); color: var(--ink); border: 2px solid var(--ink); border-radius: 8px; cursor: pointer; }

/* ---- inner pages: a page head band (breadcrumbs + the one h1) over the section's key art, then the same panels ---- */
.phead { position: relative; background: var(--ink) url("assets/cover_a_river.webp") 55% 100% / cover no-repeat; image-rendering: pixelated; color: #fff; border-bottom: 2px solid var(--ink); }
.phead--classes { background-image: url("assets/cover_b_lineup.webp"); background-position: center 100%; }
.phead--news { background-image: url("assets/cover_c_boss.webp"); background-position: center 45%; }
.phead::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(27, 34, 56, .84) 0%, rgba(27, 34, 56, .66) 60%, rgba(27, 34, 56, .5) 100%); }
.phead__in { position: relative; max-width: var(--w); margin: 0 auto; padding: 22px 16px 34px; }
.phead h1 { font-weight: 800; font-size: clamp(30px, 5vw, 54px); line-height: 1.12; letter-spacing: .03em; margin-top: 18px; text-shadow: 0 3px 0 rgba(27, 34, 56, .6); overflow-wrap: anywhere; }
.phead__tag { font-size: clamp(16px, 1.9vw, 19px); font-weight: 600; margin-top: 8px; max-width: 760px; text-shadow: 0 2px 0 rgba(27, 34, 56, .7); }
.phead__tag .zone { text-shadow: none; }
.crumbs ol { display: flex; flex-wrap: wrap; font-size: 14px; color: #dfe3ee; }
.crumbs li + li::before { content: "/"; margin: 0 8px; opacity: .6; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; text-decoration-color: var(--gold); }
.crumbs [aria-current] { color: #fff; font-weight: 600; }
.nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--gold); }

.more { margin-top: 14px; }
.more a { font-weight: 600; text-decoration: none; border-bottom: 2px solid var(--gold); }
.more a::after { content: " \2192"; }
.more a:hover { background: var(--cream); }
.wrap > .more { text-align: center; }
.news a, .job h3 a, .places a, .menu--x a, .area h3 a { text-decoration: none; }
.news a:hover, .job h3 a:hover, .places a:hover, .area h3 a:hover { text-decoration: underline; text-decoration-color: var(--gold2); text-underline-offset: 3px; }
.news .news__ex { grid-column: 3; color: var(--ink2); font-size: 14.5px; font-weight: 400; }
.places a { display: block; }
.row--c { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }

/* class cards, branches, skill chips */
.jobs--cards { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.job .job__role { font-weight: 600; color: var(--ink); }
.facts dd { font-size: 15.5px; }
.brs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.br { border: 2px solid var(--line); border-top: 7px solid var(--c); border-radius: 10px; padding: 12px 14px 14px; background: var(--paper); }
.br h3 { font-weight: 800; font-size: 19px; line-height: 1.25; }
.br > p { color: var(--ink2); font-size: 14.5px; margin-top: 8px; }
.br > .br__h { font-weight: 800; color: var(--ink); font-size: 13.5px; margin-top: 12px; }
.places--s { margin-top: 8px; gap: 6px; }
.places--s li { font-size: 13px; padding: 2px 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.chip { font-size: 13.5px; font-weight: 600; padding: 3px 11px; background: #fff; border: 1px solid var(--line); border-radius: 999px; }
.chip small { font-weight: 600; font-size: 11.5px; color: var(--ink2); }
.chip--ult { background: #fbf0cf; border: 1px solid var(--gold2); }
.chip--ult small { color: var(--fix); }
.chip--pas { border-style: dashed; }
.peoples { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.people { border: 2px solid var(--line); border-radius: 10px; padding: 12px 14px 14px; background: var(--paper); }
.people h3 { font-weight: 800; font-size: 19px; }
.people p { margin-top: 4px; }
.people .places { margin-top: 10px; }
.menu--x li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; padding: 9px 4px; }
.menu--x a { display: inline; padding: 0; font-weight: 700; }
.menu--x a::before { display: none; }
.menu--x a:hover { background: none; text-decoration: underline; text-decoration-color: var(--gold2); }

/* areas: zone chips, cards, monsters, deeper floors, previous / next */
.zone { display: inline-block; font-size: 12.5px; font-weight: 600; line-height: 1; padding: 4px 9px; border-radius: 6px; color: #fff; white-space: nowrap; vertical-align: 2px; }
.zone--safe { background: var(--ok); }
.zone--neutral { background: var(--up); }
.zone--red { background: #c0392b; }
.zone--black { background: #11151f; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35); }
.zones dt { margin-top: 4px; }
.areas { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.area { border: 2px solid var(--line); border-top: 7px solid var(--up); border-radius: 10px; padding: 10px 12px 12px; background: var(--paper); }
.area.zone-safe { border-top-color: var(--ok); }
.area h3 { font-weight: 800; font-size: 17.5px; line-height: 1.25; margin-bottom: 6px; }
.area p { font-size: 14.5px; }
.mobs { columns: 2; column-gap: 28px; }
.mobs li { break-inside: avoid; display: flex; justify-content: space-between; gap: 10px; padding: 8px 2px; border-top: 1px solid var(--line); }
.mobs span { font-weight: 600; }
.mobs b { font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.kind--boss { background: var(--ink); color: var(--gold); margin-left: 6px; vertical-align: 2px; }
.shots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.shot { border: 2px solid var(--ink); border-radius: 10px; overflow: hidden; background: var(--paper); }
.shot img { width: 100%; aspect-ratio: 5 / 3; object-fit: cover; }
.shot figcaption { padding: 7px 10px 8px; font-size: 13.5px; border-top: 2px solid var(--ink); }
.subs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.sub { border: 2px solid var(--line); border-radius: 10px; padding: 10px 12px 12px; background: var(--paper); }
.sub h3 { font-weight: 800; font-size: 17px; margin-bottom: 6px; }
.sub p { font-size: 14.5px; }
.pn { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 8px 0 16px; }
.pn__b { display: flex; flex-direction: column; padding: 10px 14px; background: var(--paper); text-decoration: none; border: 2px solid var(--ink); border-radius: var(--r); box-shadow: 0 4px 0 var(--ink); transition: transform .08s, box-shadow .08s; }
.pn__b:hover { transform: translateY(2px); box-shadow: 0 2px 0 var(--ink); }
.pn__b--next { grid-column: 2; text-align: right; }
.pn__b small { font-size: 13px; color: var(--ink2); }
.pn__b b { font-weight: 800; font-size: 18px; line-height: 1.3; }
.pn__b span { font-size: 13.5px; color: var(--ink2); }

/* news posts, FAQ page */
.prose p { font-size: 17px; }
.prose p + p { margin-top: 12px; }
.post__h { font-weight: 800; font-size: 19px; margin-top: 22px; padding-bottom: 6px; border-bottom: 3px solid var(--gold); }
.faq--page { columns: 1; }

/* legal + top-up pages (WEB-LEGAL, English only): the DRAFT note, a seller detail still to fill in, headings and lists in
   the prose, the price tables */
.draft { background: #fff3c4; border: 2px solid var(--gold2); border-radius: var(--r); padding: 12px 16px; font-size: 15px; line-height: 1.5; }
.draft b { display: inline-block; font: 700 13px/1 "Pixelify Sans", Kanit, sans-serif; letter-spacing: .12em; background: var(--ink); color: var(--gold); padding: 4px 8px; border-radius: 6px; margin-right: 6px; vertical-align: 1px; }
.ph { background: #ffd65a; color: var(--ink); font-weight: 700; padding: 0 4px; border-radius: 4px; }
.prose h2 { font-weight: 800; font-size: 19px; line-height: 1.35; margin-top: 24px; padding-bottom: 6px; border-bottom: 3px solid var(--gold); }
.prose h2 + p, .prose h2 + ul { margin-top: 10px; }
.prose ul { list-style: disc; padding-left: 22px; margin-top: 10px; }
.prose ul + p { margin-top: 12px; }
.prose li { font-size: 16.5px; }
.prose li + li { margin-top: 6px; }
.prose li::marker { color: var(--gold2); }
.prose a { text-decoration-color: var(--gold2); text-underline-offset: 3px; overflow-wrap: anywhere; }
.legal__lead { color: var(--ink2); }
.tbl { overflow-x: auto; }
.tbl + .tbl { margin-top: 18px; }
.prices { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.prices caption { text-align: left; font-weight: 800; font-size: 17px; padding-bottom: 6px; }
.prices th, .prices td { text-align: left; padding: 9px 10px; border-top: 1px solid var(--line); vertical-align: top; }
.prices thead th { font-size: 13.5px; font-weight: 600; color: var(--ink2); border-top: 0; border-bottom: 2px solid var(--ink); }
.prices .n { text-align: right; white-space: nowrap; }
.prices td:not(.n) { min-width: 9em; }
.foot__legal a { text-decoration: none; }
.foot__legal a:hover { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; }

/* ---- small pages: 404 and the streamer hand-over ---- */
.mini { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.mini__in { width: 100%; max-width: 440px; background: var(--card); border: 2px solid var(--ink); border-radius: var(--r); padding: 26px 24px 28px; box-shadow: 6px 6px 0 var(--line); text-align: center; }
.mini__code { font: 700 64px/1 "Pixelify Sans", Kanit, sans-serif; color: var(--gold2); margin: 18px 0 6px; }
.mini h1 { font-weight: 800; font-size: 24px; line-height: 1.3; }
.mini p { color: var(--ink2); }
.mini__go { margin-top: 18px; display: grid; gap: 10px; text-align: left; }
.mini__go a { font-weight: 800; }
.mini__go small { display: block; color: var(--ink2); font-size: 13.5px; }

/* ---- tablet ---- */
@media (max-width: 980px) {
  .nav a { padding: 8px 8px; font-size: 15px; }
  .bar__soc { display: none; }
  .row--a, .row--b { grid-template-columns: minmax(0, 1fr); }
  .jobs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .col { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .row--c { grid-template-columns: minmax(0, 1fr); }
  .jobs--cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .areas, .subs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot__map { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* ---- phone ---- */
@media (max-width: 760px) {
  :root { --bar: 60px; }
  .bar__in { padding: 0 12px; gap: 10px; }
  .brand { font-size: 16px; margin-right: auto; }
  .tog { display: flex; order: 5; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: var(--bar); flex-direction: column; gap: 0; background: var(--paper); border-bottom: 2px solid var(--ink); padding: 6px 12px 10px; margin: 0; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 8px; font-size: 17px; border-top: 1px solid var(--line); border-radius: 0; }
  .nav a:first-child { border-top: 0; }
  .lang { display: none; }
  .nav__lang { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 8px 4px; border-top: 1px solid var(--line); }
  .nav .nav__lang a { padding: 6px 12px; font-size: 14.5px; border: 2px solid var(--line); border-radius: 8px; }
  .nav .nav__lang a[aria-current] { background: var(--ink); border-color: var(--ink); color: #fff; }
  .btn--s { padding: 6px 14px; }
  .hero h1 { letter-spacing: .05em; }
  .gate { grid-template-columns: 1fr 1fr; gap: 12px; margin-top: -34px; }
  .col { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .faq { columns: 1; }
  .socs, .socs--2 { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .foot__soc { width: 100%; }
  .gate__b { min-height: 82px; }
  .gate__b b { font-size: 18px; }
  .gate__b--play { grid-column: 1 / -1; }
  .gate__b--play b { font-size: 25px; }
  .gate__b:last-child { grid-column: 1 / -1; }
  .wrap { padding: 20px 12px 44px; gap: 18px; }
  .row { gap: 18px; }
  .panel { padding: 16px 14px 18px; box-shadow: 4px 4px 0 var(--line); }
  .panel__h h2 { font-size: 21px; }
  .news li { grid-template-columns: auto auto minmax(0, 1fr); }
  .news p { grid-column: 1 / -1; }
  .rk__row { grid-template-columns: 40px minmax(0, 1fr) 76px; gap: 8px; }
  .rk--nojob .rk__row { grid-template-columns: 40px minmax(0, 1fr) 76px; }
  .rk__row--h .rk__job { display: none; }
  .rk__row:not(.rk__row--h) .rk__job { grid-column: 2; grid-row: 2; font-size: 13px; margin-top: -8px; }
  .rk__row:not(.rk__row--h) .rk__n { grid-row: 1 / span 2; }
  .rk--nojob .rk__row .rk__n { grid-row: auto; }
  .rk__row:not(.rk__row--h) .rk__val { grid-row: 1 / span 2; grid-column: 3; }
  .rk--nojob .rk__row .rk__val { grid-row: auto; }
  .jobs { grid-template-columns: 1fr 1fr; }
  .lineup img { aspect-ratio: 1640 / 624; }
  .board { grid-template-columns: 1fr 1fr; gap: 10px; }
  .last__in { padding: 54px 16px 60px; }
  .btn--xl { font-size: 22px; padding: 13px 40px; }
  .foot__legal { margin-right: 0; width: 100%; }
  .brs, .peoples, .shots, .areas, .subs { grid-template-columns: minmax(0, 1fr); }
  .jobs--cards { grid-template-columns: 1fr 1fr; }
  .mobs { columns: 1; }
  .news .news__ex { grid-column: 1 / -1; }
  .pn { grid-template-columns: minmax(0, 1fr); }
  .pn__b--next { grid-column: 1; }
  .phead__in { padding: 16px 12px 26px; }
}
@media (max-width: 430px) {
  .brand { white-space: normal; max-width: 6.4em; font-size: 15px; line-height: 1.08; }
  .btn--s { font-size: 15px; padding: 6px 12px; }
  .gate__b b { font-size: 17px; }
  .gate__b--play b { font-size: 23px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn, .gate__b, .soc, .pn__b { transition: none; } }
