/* ------------------------------------------------------------------ fonts (self-hosted, OFL; CSP is 'self' only) */
@font-face { font-family: "Instrument Serif"; src: url("../fonts/instrument-serif-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; 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: "Instrument Serif"; src: url("../fonts/instrument-serif-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; 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: "Manrope"; src: url("../fonts/manrope-latin-wght-normal.woff2") format("woff2-variations"); font-weight: 200 800; font-display: swap; 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: "Noto Naskh Arabic"; src: url("../fonts/noto-naskh-arabic-arabic-wght-normal.woff2") format("woff2-variations"); font-weight: 400 700; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "Readex Pro"; src: url("../fonts/readex-pro-arabic-wght-normal.woff2") format("woff2-variations"); font-weight: 160 700; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }

/* ------------------------------------------------------------------ Direction B, CHRONICLE: cinematic letterbox, editorial serif, hairline outlined UI. */
:root {
  --ink: #0a0907;
  --ink-2: #13110e;
  --ink-3: #1d1a16;
  --bone: #e9e1d3;
  --muted: #9a9083;
  --hair: rgba(233, 225, 211, .18);
  --hair-2: rgba(233, 225, 211, .34);
  --accent: #c8372d;      /* banner crimson from the hero loop; primary CTA only */
  --serif: 'Instrument Serif', 'Noto Naskh Arabic', serif;
  --sans: 'Manrope', 'Readex Pro', sans-serif;
  --ds: 1;
  --gut: clamp(16px, 5vw, 72px);
  color-scheme: dark;
}
:root[dir="rtl"] { --ds: .74; }
* { box-sizing: border-box; margin: 0; padding: 0; }
body { background: var(--ink); color: var(--bone); font: 400 16px/1.6 var(--sans); overflow-x: hidden; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 var(--gut); }
.num { font-variant-numeric: lining-nums tabular-nums; direction: ltr; unicode-bidi: isolate; }
.cd { font-variant-numeric: lining-nums tabular-nums; white-space: nowrap; }
.cd-days { font-size: .5em; color: var(--muted); }
.flip { display: inline-block; }
:root[dir="rtl"] .flip { transform: scaleX(-1); }
.eyebrow { font: 600 12px/1.2 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
:root[dir="rtl"] .eyebrow { letter-spacing: 0; font-size: 14px; }

/* Buttons: outlined, hairline offset frame. Row order never mirrors. */
.btnrow { display: flex; gap: 16px; direction: ltr; flex-wrap: wrap; align-items: center; }
:root[dir="rtl"] .btnrow > * { direction: rtl; }
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; height: 50px; padding: 0 34px;
  font: 600 14px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; border: 1px solid var(--hair-2); white-space: nowrap;
  transition: background-color .3s, color .3s, border-color .3s; }
:root[dir="rtl"] .btn { letter-spacing: 0; font-size: 16px; }
.btn::after { content: ''; position: absolute; inset: -6px; border: 1px solid transparent; transition: inset .3s, border-color .3s; pointer-events: none; }
.btn:hover { border-color: var(--bone); }
.btn--primary { border-color: var(--accent); color: var(--bone); background: var(--accent); }
.btn--primary::after { border-color: rgba(233, 225, 211, .4); }
.btn--primary:hover { background: #a92b23; border-color: #a92b23; }
.btn--primary:hover::after { inset: -9px; }
.btn--sm { height: 38px; padding: 0 20px; font-size: 12px; }
:root[dir="rtl"] .btn--sm { font-size: 14px; }
.btn[aria-disabled="true"] { color: var(--muted); border-color: var(--hair); pointer-events: none; }

/* Nav: links split around a centred logo */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; transition: background-color .4s; }
.nav.is-solid, .page-sub .nav { background: rgba(10, 9, 7, .94); border-bottom: 1px solid var(--hair); }
.nav__in { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 76px; padding: 0 var(--gut); }
.nav__side { display: flex; align-items: center; gap: 30px; }
.nav__side--end { justify-content: flex-end; }
.nav__side a:not(.btn) { font: 500 13px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--bone); opacity: .72; transition: opacity .2s; }
:root[dir="rtl"] .nav__side a:not(.btn) { letter-spacing: 0; font-size: 15px; }
.nav__side a:not(.btn):hover, .nav__side a[aria-current] { opacity: 1; }
.nav__side a[aria-current] { box-shadow: 0 1px 0 var(--bone); padding-bottom: 4px; }
.nav__logo img { height: 34px; width: auto; }
.nav__icon svg { width: 20px; height: 20px; display: block; }
.nav__toggle { display: none; width: 40px; height: 40px; position: relative; }
.nav__toggle span { position: absolute; inset-inline: 10px; height: 1px; background: var(--bone); }
.nav__toggle span:nth-child(1) { top: 16px; } .nav__toggle span:nth-child(2) { top: 23px; }
.sheet { display: none; }

/* Hero: letterbox that opens on load */
.hero { position: relative; height: 100svh; min-height: 640px; max-height: 1100px; background: var(--ink); overflow: hidden; }
.hero__frame { position: absolute; inset: 0; clip-path: inset(50% 0 50% 0); animation: open 1.6s cubic-bezier(.7, 0, .15, 1) .15s forwards; }
@keyframes open { to { clip-path: inset(10vh 0 13vh 0); } }
.hero__frame video, .hero__frame img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.1); animation: settle 14s ease-out forwards; }
@keyframes settle { to { transform: scale(1); } }
.hero__frame::after { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(10, 9, 7, .15) 0, rgba(10, 9, 7, .7) 100%); }
.hero__copy { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 0 var(--gut); }
.hero__logo { width: min(560px, 80vw); height: auto; opacity: 0; animation: rise 1.2s ease 1.2s forwards; }
.hero__rule .eyebrow { color: var(--bone); text-shadow: 0 1px 8px rgba(0,0,0,.7); }
.hero__rule { display: flex; align-items: center; gap: 18px; margin: 18px 0 14px; opacity: 0; animation: rise 1.2s ease 1.4s forwards; }
.hero__rule::before, .hero__rule::after { content: ''; width: 64px; height: 1px; background: var(--hair-2); }
.hero__line { font: 400 calc(30px * var(--ds) + 6px * (1 - var(--ds))) / 1.35 var(--serif); max-width: 44ch; text-shadow: 0 1px 12px rgba(0,0,0,.6); opacity: 0; animation: rise 1.2s ease 1.55s forwards; }
:root[dir="rtl"] .hero__line { font-weight: 500; }
.hero .btnrow { margin-top: 34px; justify-content: center; opacity: 0; animation: rise 1.2s ease 1.7s forwards; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* Status line sits in the lower letterbox bar */
.status { position: absolute; z-index: 3; inset: auto 0 0; height: 13vh; min-height: 84px; display: flex; align-items: center; justify-content: center; }
.status ul { list-style: none; display: flex; align-items: center; gap: 0; flex-wrap: wrap; justify-content: center; }
.status li { display: flex; align-items: baseline; gap: 10px; padding: 0 26px; border-inline-start: 1px solid var(--hair); }
.status li:first-child { border: 0; align-items: center; }
.status b { font: 400 30px/1 var(--serif); }
.status span { font-size: 13px; color: var(--muted); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: #7fbf7a; box-shadow: 0 0 0 4px rgba(127, 191, 122, .15); }
.status li:first-child span { color: var(--bone); font-size: 14px; }

/* Chapters */
.ch { padding: 140px 0 0; }
.ch__head { display: grid; grid-template-columns: 120px 1fr auto; align-items: end; gap: 24px; margin-bottom: 48px; }
.ch__n { font: italic 400 64px/1 var(--serif); color: var(--muted); }
:root[dir="rtl"] .ch__n { font-family: 'Instrument Serif', serif; }
.ch__title { font: 400 calc(76px * var(--ds)) / 1 var(--serif); letter-spacing: -.01em; }
:root[dir="rtl"] .ch__title { font-weight: 600; line-height: 1.35; letter-spacing: 0; }
.link { display: inline-flex; align-items: center; gap: 10px; font: 600 13px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; padding-bottom: 8px; border-bottom: 1px solid var(--hair-2); white-space: nowrap; }
:root[dir="rtl"] .link { letter-spacing: 0; font-size: 15px; }
.link svg { width: 14px; height: 14px; }
.rule { height: 1px; background: var(--hair); transform-origin: var(--o, left); transform: scaleX(0); transition: transform 1.2s cubic-bezier(.6, 0, .2, 1); }
:root[dir="rtl"] .rule { --o: right; }
.rule.is-in { transform: none; }
.rv { opacity: 0; transform: translateY(22px); transition: opacity 1s ease, transform 1s ease; }
.rv.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .rv, .rule { opacity: 1; transform: none; transition: none; } .hero__frame { animation: none; clip-path: inset(10vh 0 13vh 0); } }

/* Events: featured next event + week timetable */
.week { display: grid; grid-template-columns: 380px 1fr; gap: 0; border: 1px solid var(--hair); }
.feat { padding: 40px; border-inline-end: 1px solid var(--hair); display: flex; flex-direction: column; background: var(--ink-2); }
.feat__name { font: 400 calc(44px * var(--ds)) / 1.1 var(--serif); margin: 14px 0 10px; }
:root[dir="rtl"] .feat__name { font-weight: 600; line-height: 1.5; }
.feat__meta { color: var(--muted); font-size: 14px; }
.feat__cd { margin-top: auto; padding-top: 40px; }
.feat__cd b { display: block; font: 400 76px/1 'Instrument Serif', serif; letter-spacing: -.01em; }
.feat__live { display: inline-flex; align-items: center; gap: 10px; color: var(--bone); }
.days { display: grid; grid-template-columns: repeat(7, 1fr); }
.day { border-inline-start: 1px solid var(--hair); padding: 22px 14px; min-height: 300px; }
.day:first-child { border-inline-start: 0; }
.day__h { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 18px; padding-bottom: 12px; border-bottom: 1px solid var(--hair); }
.day__h b { font: 600 13px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; }
:root[dir="rtl"] .day__h b { letter-spacing: 0; font-size: 14px; }
.day__h span { font: 400 22px/1 var(--serif); color: var(--muted); }
.day--today { background: rgba(233, 225, 211, .035); }
.day--today .day__h b::after { content: ' ·'; color: var(--muted); }
.slot { padding: 8px 0 10px; border-bottom: 1px dashed var(--hair); }
.slot:last-child { border: 0; }
.slot time { font: 400 20px/1 'Instrument Serif', serif; color: var(--muted); }
.slot div { font-size: 13px; line-height: 1.4; margin-top: 4px; }
.slot--next time, .slot--next div { color: var(--bone); }
.slot--next { box-shadow: inset 2px 0 0 var(--bone); padding-inline-start: 8px; }
:root[dir="rtl"] .slot--next { box-shadow: inset -2px 0 0 var(--bone); }
.tz { margin-top: 14px; color: var(--muted); font-size: 13px; }

/* News: lead story + list */
.news { display: grid; grid-template-columns: 1.55fr 1fr; gap: 56px; }
.lead { position: relative; display: block; overflow: hidden; }
.lead__img { aspect-ratio: 4 / 3; overflow: hidden; }
.lead__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s ease; }
.lead:hover .lead__img img { transform: scale(1.04); }
.lead__txt { padding-top: 24px; }
.lead h3 { font: 400 calc(46px * var(--ds)) / 1.1 var(--serif); margin: 12px 0 12px; max-width: 18ch; }
:root[dir="rtl"] .lead h3 { font-weight: 600; line-height: 1.5; }
.lead p, .item p { color: #bcb3a6; }
.list { display: flex; flex-direction: column; }
.item { display: grid; grid-template-columns: 1fr 120px; gap: 22px; padding: 28px 0; border-top: 1px solid var(--hair); }
.item:last-child { border-bottom: 1px solid var(--hair); }
.item h3 { font: 400 calc(28px * var(--ds) + 2px * (1 - var(--ds))) / 1.2 var(--serif); margin: 10px 0 8px; }
:root[dir="rtl"] .item h3 { font-weight: 600; line-height: 1.55; }
.item p { font-size: 14px; }
.item img { width: 120px; height: 120px; object-fit: cover; filter: grayscale(.3); }

/* Hall of records (rankings teaser) */
.hall { display: grid; grid-template-columns: 1.3fr 1fr 1fr; border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); }
.rec { padding: 36px 32px 34px; border-inline-start: 1px solid var(--hair); display: grid; grid-template-columns: auto 1fr; gap: 6px 22px; align-items: center; }
.rec:first-child { border: 0; padding-inline-start: 0; }
.rec__n { grid-row: span 3; font: italic 400 96px/1 'Instrument Serif', serif; color: var(--muted); }
.rec--1 .rec__n { font-size: 140px; color: var(--bone); }
.rec__who { display: flex; align-items: center; gap: 14px; }
.frame { width: 54px; height: 54px; padding: 4px; border: 1px solid var(--hair-2); outline: 1px solid var(--hair); outline-offset: 3px; flex: none; }
.frame img { width: 100%; height: 100%; }
.rec__name { font: 400 34px/1.1 var(--serif); }
.rec--1 .rec__name { font-size: 44px; }
.rec__sub { color: var(--muted); font-size: 13px; display: flex; gap: 8px; align-items: center; }
.emp { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.rec__val { grid-column: 2; font: 400 28px/1 'Instrument Serif', serif; }
.rec__val small { font: 500 12px/1 var(--sans); color: var(--muted); letter-spacing: .1em; text-transform: uppercase; margin-inline-start: 8px; }
:root[dir="rtl"] .rec__val small { letter-spacing: 0; }

/* Download */
.dl { margin-top: 140px; position: relative; padding: 120px 0; overflow: hidden; border-top: 1px solid var(--hair); }
.dl__bg { position: absolute; inset: 0; background: url(../img/art-village.jpg) center / cover; opacity: .2; }
.dl__bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom, var(--ink), transparent 30%, transparent 70%, var(--ink)); }
.dl .wrap { position: relative; text-align: center; }
.dl h2 { font: 400 calc(96px * var(--ds)) / 1 var(--serif); }
:root[dir="rtl"] .dl h2 { font-weight: 600; line-height: 1.4; }
.dl p { color: #cfc6b8; margin: 18px auto 48px; max-width: 46ch; }
.dl__opts { display: grid; grid-template-columns: 1fr 1fr; max-width: 820px; margin: 0 auto; border: 1px solid var(--hair); }
.opt { padding: 34px; display: flex; flex-direction: column; align-items: center; gap: 10px; background: rgba(10, 9, 7, .6); }
.opt + .opt { border-inline-start: 1px solid var(--hair); }
.opt svg { width: 30px; height: 30px; margin-bottom: 6px; }
.opt b { font: 400 30px/1.2 var(--serif); }
:root[dir="rtl"] .opt b { font-weight: 600; font-size: 24px; }
.opt span { color: var(--muted); font-size: 13px; margin-bottom: 12px; }

/* Footer */
.foot { border-top: 1px solid var(--hair); padding: 64px 0 40px; text-align: center; }
.foot img { height: 34px; width: auto; margin: 0 auto 28px; }
.foot nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px 32px; margin-bottom: 36px; }
.foot nav a { font: 500 13px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; opacity: .75; }
:root[dir="rtl"] .foot nav a { letter-spacing: 0; font-size: 15px; }
.foot p { color: var(--muted); font-size: 13px; }
.foot__legal { margin-top: 10px; font-size: 11px !important; opacity: .55; }
.foot__legal a { color: inherit; }

/* Rankings page */
.page-sub main { padding-top: 76px; }
.rk-head { padding: 96px 0 56px; text-align: center; position: relative; }
.rk-head h1 { font: 400 calc(120px * var(--ds)) / 1 var(--serif); margin-top: 18px; }
:root[dir="rtl"] .rk-head h1 { font-weight: 600; line-height: 1.35; }
.tabs { display: flex; justify-content: center; flex-wrap: wrap; border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); }
.tab { padding: 20px 22px; font: 500 13px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); display: flex; gap: 10px; align-items: baseline; transition: color .2s; }
:root[dir="rtl"] .tab { letter-spacing: 0; font-size: 15px; }
.tab i { font: italic 400 18px/1 'Instrument Serif', serif; }
.tab:hover, .tab[aria-selected="true"] { color: var(--bone); }
.tab[aria-selected="true"] { box-shadow: inset 0 -1px 0 var(--bone); }
.subjects { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 26px; padding: 22px 0 0; }
.subj { font-size: 14px; color: var(--muted); padding-bottom: 4px; border-bottom: 1px solid transparent; }
.subj[aria-pressed="true"] { color: var(--bone); border-color: var(--bone); }
.board { display: grid; grid-template-columns: 360px 1fr; gap: 56px; margin-top: 56px; align-items: start; }
.champ { border: 1px solid var(--hair); padding: 36px; text-align: center; position: sticky; top: 100px; }
.champ .frame { width: 112px; height: 112px; margin: 18px auto 20px; padding: 8px; outline-offset: 6px; }
.champ__name { font: 400 52px/1 var(--serif); }
.champ__sub { color: var(--muted); font-size: 14px; display: flex; gap: 8px; justify-content: center; align-items: center; margin: 12px 0 24px; }
.champ__val { font: 400 56px/1 'Instrument Serif', serif; padding-top: 22px; border-top: 1px solid var(--hair); }
.champ__val small { display: block; font: 500 12px/1.4 var(--sans); color: var(--muted); letter-spacing: .12em; text-transform: uppercase; margin-top: 8px; }
:root[dir="rtl"] .champ__val small { letter-spacing: 0; font-size: 13px; }
.duo { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--hair); margin-top: 0; }
.duo > div { padding: 18px 0; display: flex; align-items: center; gap: 14px; }
.duo > div + div { border-inline-start: 1px solid var(--hair); padding-inline-start: 18px; }
.duo i { font: italic 400 40px/1 'Instrument Serif', serif; color: var(--muted); }
.duo b { font: 400 24px/1.1 var(--serif); display: block; }
.duo span { font-size: 13px; color: var(--muted); }
.table { width: 100%; border-collapse: collapse; margin-top: 8px; }
.table th { text-align: start; font: 600 11px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); padding: 14px 12px; border-bottom: 1px solid var(--hair-2); }
:root[dir="rtl"] .table th { letter-spacing: 0; font-size: 13px; }
.table td { padding: 14px 12px; border-bottom: 1px solid var(--hair); }
.table td.c-pos { font: italic 400 26px/1 'Instrument Serif', serif; color: var(--muted); width: 56px; }
.table .c-val { text-align: end; }
.table td.c-val { font: 400 24px/1 'Instrument Serif', serif; }
.who { display: flex; align-items: center; gap: 12px; }
.who img { width: 30px; height: 30px; border: 1px solid var(--hair); padding: 2px; }
.who b { font-weight: 600; }
.mine td { border-top: 1px solid var(--bone); border-bottom: 1px solid var(--bone); background: var(--ink-2); }
.mine td.c-pos { color: var(--bone); }
.mine small { display: block; font-size: 11px; color: var(--muted); letter-spacing: .12em; text-transform: uppercase; }
:root[dir="rtl"] .mine small { letter-spacing: 0; font-size: 12px; }
.note { color: var(--muted); font-size: 13px; margin-top: 18px; }

@media (max-width: 1100px) {
  .nav__in { grid-template-columns: auto 1fr auto; }
  .nav__in > .nav__side:first-child { display: none; }
  .nav__logo { grid-column: 1; }
  .nav__side--end > :not(.btnrow):not(.nav__toggle) { display: none; }
  .nav__toggle { display: block; }
  .sheet { position: fixed; inset: 76px 0 0; z-index: 49; background: var(--ink); padding: 32px var(--gut); flex-direction: column; }
  .sheet.is-open { display: flex; }
  .sheet a { font: 400 calc(40px * var(--ds) + 6px * (1 - var(--ds))) / 1.5 var(--serif); border-bottom: 1px solid var(--hair); padding: 8px 0; }
  .sheet .sheet__row { display: flex; gap: 28px; border: 0; margin-top: 18px; }
  .sheet .sheet__row a { font: 500 15px/1 var(--sans); border: 0; }
  .week { grid-template-columns: 1fr; }
  .feat { border-inline-end: 0; border-bottom: 1px solid var(--hair); }
  .days { overflow-x: auto; grid-template-columns: repeat(7, minmax(150px, 1fr)); }
  .board { grid-template-columns: 1fr; }
  .champ { position: static; }
}
@media (max-width: 760px) {
  .ch { padding-top: 96px; }
  .ch__head { grid-template-columns: auto 1fr; margin-bottom: 32px; }
  .ch__head .link { grid-column: 1 / -1; justify-self: start; }
  .ch__n { font-size: 44px; }
  .ch__title { font-size: calc(48px * var(--ds) + 6px * (1 - var(--ds))); }
  .feat { padding: 26px; }
  .feat__cd b { font-size: 56px; }
  .days { display: block; }
  .day { min-height: 0; border: 0; border-top: 1px solid var(--hair); padding: 16px 20px; display: grid; grid-template-columns: 96px 1fr; gap: 0 12px; }
  .day__h { flex-direction: column; border: 0; margin: 0; padding: 0; gap: 6px; justify-content: flex-start; align-items: flex-start; }
  .day--empty, .day:nth-child(n+5) { display: none; }
  .news { grid-template-columns: 1fr; gap: 24px; }
  .lead h3 { font-size: calc(34px * var(--ds) + 4px * (1 - var(--ds))); }
  .item { grid-template-columns: 1fr 88px; }
  .item img { width: 88px; height: 88px; }
  .hall { grid-template-columns: 1fr; }
  .rec, .rec:first-child { border: 0; border-top: 1px solid var(--hair); padding: 22px 0; }
  .rec:first-child { border-top: 0; }
  .rec__n { font-size: 64px; } .rec--1 .rec__n { font-size: 84px; }
  .rec__name, .rec--1 .rec__name { font-size: 30px; }
  .dl { padding: 88px 0; margin-top: 96px; }
  .dl h2 { font-size: calc(60px * var(--ds) + 4px * (1 - var(--ds))); }
  .dl__opts { grid-template-columns: 1fr; }
  .opt + .opt { border-inline-start: 0; border-top: 1px solid var(--hair); }
  .status { height: auto; min-height: 13vh; padding: 10px 0; }
  .status li { padding: 4px 14px; }
  .status li:first-child { flex-basis: 100%; justify-content: center; border: 0; margin-bottom: 6px; }
  .status li:nth-child(2) { border: 0; }
  .status b { font-size: 22px; }
  .status span { font-size: 12px; }
  .hero__line { font-size: calc(24px * var(--ds) + 4px * (1 - var(--ds))); }
  .rk-head { padding: 56px 0 36px; }
  .rk-head h1 { font-size: calc(68px * var(--ds) + 4px * (1 - var(--ds))); }
  .tabs { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--gut) * -1); padding: 0 var(--gut); }
  .tab { flex: none; padding: 16px 14px; }
  .subjects { justify-content: flex-start; }
  .champ { padding: 26px; }
  .table .hide-sm { display: none; }
  .table td, .table th { padding-inline: 6px; }
  .table td.c-val { font-size: 20px; }
}

/* ------------------------------------------------------------------ legacy component tokens -> B
   Forms, panels, account and shop pages still use these names; Task 7 of plan 1 restyles their markup. */
:root {
  --bg: var(--ink); --bg-2: var(--ink-2); --bg-3: var(--ink-3); --panel: var(--ink-2);
  --line: var(--hair); --line-strong: var(--hair-2);
  --gold: var(--bone); --gold-hi: var(--bone); --gold-lo: var(--muted);
  --red: var(--accent); --red-hi: var(--accent); --text: var(--bone);
  --ok: #7fbf7a; --bad: #e0675a; --warn: #d9a441;
  --radius: 0; --shadow: none; --wrap: 1180px;
  --font-body: var(--sans); --font-head: var(--serif);
}
.sr, .skip { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip:focus { position: fixed; inset-inline-start: 12px; top: 12px; width: auto; height: auto; clip: auto; padding: 8px 14px; background: var(--ink); border: 1px solid var(--hair-2); z-index: 100; }
.hp { position: absolute; inset-inline-start: -9999px; }
:focus-visible { outline: 1px solid var(--bone); outline-offset: 3px; }
.wrap--narrow { max-width: 860px; }
.muted { color: var(--muted); } .small { font-size: .875em; } .gold { color: var(--bone); }
.mono { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: .95em; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.2; }
:root[dir="rtl"] h1, :root[dir="rtl"] h2, :root[dir="rtl"] h3 { font-weight: 600; line-height: 1.5; }
p { margin: 0 0 1em; }
.nav__logout { display: inline; }
.linkbtn { background: none; border: 0; color: var(--bone); opacity: .72; font: 500 13px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; cursor: pointer; padding: 0; }
:root[dir="rtl"] .linkbtn { letter-spacing: 0; font-size: 15px; }
.linkbtn:hover { opacity: 1; }
.btn--gold { border-color: var(--bone); color: var(--bone); background: transparent; }
.btn--gold:hover { background: var(--bone); color: var(--ink); }
.btn--ghost { background: transparent; }
.btn--lg { height: 56px; }
.btn--block { display: flex; width: 100%; }
.btn--discord { background: #5865f2; border-color: #5865f2; color: #fff; }
.flashes { padding-top: 96px; }
.page-home .flashes { position: relative; z-index: 60; }

/* ------------------------------------------------------------------ flashes / notices */
.flashes { margin-top: 16px; }
.flash, .notice { padding: 12px 16px; border-radius: var(--radius); border: 1px solid var(--line); background: rgba(255, 255, 255, .03); margin-bottom: 14px; }
.flash--ok { border-color: rgba(95, 191, 106, .5); background: rgba(95, 191, 106, .1); }
.flash--error { border-color: rgba(214, 86, 69, .55); background: rgba(214, 86, 69, .12); }
.notice--warn { border-color: rgba(224, 166, 64, .55); background: rgba(224, 166, 64, .1); }
.notice--gold { border-color: var(--line-strong); background: linear-gradient(90deg, rgba(212, 175, 106, .14), rgba(212, 175, 106, .03)); }

/* ------------------------------------------------------------------ panels */
.panel { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.panel::before, .panel::after { content: ""; position: absolute; width: 14px; height: 14px; border: 2px solid var(--gold); opacity: .75; pointer-events: none; }
.panel::before { top: -1px; inset-inline-start: -1px; border-inline-end: 0; border-bottom: 0; border-start-start-radius: var(--radius); }
.panel::after { bottom: -1px; inset-inline-end: -1px; border-inline-start: 0; border-top: 0; border-end-end-radius: var(--radius); }
.panel--glow { box-shadow: var(--shadow), 0 0 0 1px rgba(212, 175, 106, .08), 0 0 60px rgba(212, 175, 106, .08); }
.panel__title { font-size: 1.15rem; color: var(--gold-hi); margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.panel__title::before { content: ""; width: 8px; height: 8px; transform: rotate(45deg); background: var(--gold); box-shadow: 0 0 8px var(--gold); flex-shrink: 0; }
.subtitle { font-size: 1rem; color: var(--gold); margin-bottom: 10px; }

/* ------------------------------------------------------------------ sections */
.section { padding-block: 64px; }
.section--alt { background: linear-gradient(180deg, var(--bg-2), var(--bg)); border-block: 1px solid rgba(212, 175, 106, .08); }
.section__title { text-align: center; font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: 34px; display: flex; align-items: center; justify-content: center; gap: 18px; color: var(--gold-hi); }
.section__title::before, .section__title::after { content: ""; height: 1px; flex: 0 1 120px; background: linear-gradient(90deg, transparent, var(--gold)); }
.section__title::after { transform: scaleX(-1); }
.section__title--start { justify-content: flex-start; text-align: start; margin-bottom: 0; }
.section__title--start::before, .section__title--start::after { display: none; }
.section__title--start { white-space: nowrap; }
.section__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.section__head .panel__title { margin: 0; }
.more { font-weight: 700; font-size: .92rem; display: inline-flex; align-items: center; gap: 6px; }
.more::after { content: "→"; transition: transform .2s; }
html[dir="rtl"] .more::after { content: "←"; }
.more:hover::after { transform: translateX(3px); }
html[dir="rtl"] .more:hover::after { transform: translateX(-3px); }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { position: relative; padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(160deg, rgba(36, 27, 30, .7), rgba(14, 12, 16, .9)); overflow: hidden; transition: border-color .25s, transform .25s; }
.feature::after { content: ""; position: absolute; inset-inline-end: -40px; top: -40px; width: 120px; height: 120px; background: radial-gradient(circle, rgba(212, 175, 106, .16), transparent 70%); }
.feature:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.feature__icon { width: 52px; height: 52px; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 50%; color: var(--gold-hi); margin-bottom: 16px; background: radial-gradient(circle, rgba(155, 33, 33, .35), rgba(0, 0, 0, .2)); box-shadow: 0 0 18px rgba(212, 175, 106, .15); }
.feature h3 { font-size: 1.12rem; color: var(--gold-hi); }
.feature p { color: var(--muted); margin: 0; font-size: .95rem; }

.twocol { display: grid; grid-template-columns: 1fr 360px; gap: 32px; align-items: start; }
.twocol--even { grid-template-columns: 1fr 1fr; margin-top: 28px; }
.newsgrid { display: grid; gap: 18px; }
.newsgrid--wide { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.newscard { display: grid; grid-template-columns: 200px 1fr; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: rgba(18, 15, 20, .9); color: var(--text); transition: border-color .2s, transform .2s; }
.newsgrid--wide .newscard { grid-template-columns: 1fr; }
.newscard:hover { border-color: var(--line-strong); transform: translateY(-2px); color: var(--text); }
.newscard__art { min-height: 150px; background: center / cover no-repeat; position: relative; }
.newscard__art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10, 9, 12, .6), transparent 60%); }
.newscard__body { padding: 18px 20px; }
.newscard__body h3 { font-size: 1.12rem; margin-bottom: 6px; }
.newscard__body p { color: var(--muted); font-size: .93rem; margin-bottom: 8px; }
.newscard__meta { display: flex; align-items: center; gap: 10px; font-size: .82rem; color: var(--muted); margin-bottom: 8px; }
.tag { display: inline-block; padding: 1px 9px; border-radius: 99px; font-size: .78rem; font-weight: 700; border: 1px solid var(--line-strong); color: var(--gold-hi); }
.tag--patch { border-color: rgba(95, 160, 220, .6); color: #9cc8f0; }
.tag--event { border-color: rgba(198, 58, 43, .7); color: #f2a090; }
.tag--maintenance { border-color: rgba(224, 166, 64, .6); color: #f1c47a; }

/* art backgrounds, shared by news cards and page heads */
.newscard__art--storm, .pagehead--storm::before { background-image: url("../img/art-storm.jpg"); }
.newscard__art--fire, .pagehead--fire::before { background-image: url("../img/art-fire.jpg"); }
.newscard__art--ice, .pagehead--ice::before { background-image: url("../img/art-ice.jpg"); }
.newscard__art--orc, .pagehead--orc::before { background-image: url("../img/art-orc.jpg"); }
.newscard__art--forest, .pagehead--forest::before { background-image: url("../img/art-forest.jpg"); }
.newscard__art--lightning, .pagehead--lightning::before { background-image: url("../img/hero-lightning.jpg"); }
.newscard__art--village, .pagehead--village::before { background-image: url("../img/art-village.jpg"); }

.rankmini ol { list-style: none; padding: 0; margin: 0 0 18px; }
.rankmini li { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px solid rgba(212, 175, 106, .08); }
.rankmini__name { flex: 1; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rankmini__lv { color: var(--gold); font-size: .88rem; white-space: nowrap; }
.pos { display: inline-grid; place-items: center; min-width: 28px; height: 28px; border-radius: 50%; font: 800 .85rem/1 var(--font-body); color: var(--muted); border: 1px solid rgba(212, 175, 106, .15); flex-shrink: 0; }
.pos--1 { color: #1b1206; background: linear-gradient(180deg, #ffe9a8, #c99a3d); border-color: #ffe9a8; box-shadow: 0 0 12px rgba(244, 220, 156, .5); }
.pos--2 { color: #121212; background: linear-gradient(180deg, #f2f2f2, #9a9a9a); border-color: #ddd; }
.pos--3 { color: #1a0d05; background: linear-gradient(180deg, #f0b27a, #9a5a2a); border-color: #f0b27a; }
.face { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line-strong); object-fit: cover; flex-shrink: 0; }

.eventstrip { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.eventchip { padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(135deg, rgba(155, 33, 33, .18), rgba(18, 15, 20, .9)); display: grid; gap: 2px; }
.eventchip strong { color: var(--gold-hi); }
.eventchip span { color: var(--muted); font-size: .88rem; }
.eventchip time { font: 800 1.25rem/1.3 var(--font-head); color: var(--text); }

.cta { padding-block: 56px; background: linear-gradient(90deg, rgba(155, 33, 33, .28), rgba(10, 9, 12, .4) 60%), url("../img/art-fire.jpg") center / cover; border-top: 1px solid var(--line); position: relative; }
.cta::before { content: ""; position: absolute; inset: 0; background: rgba(10, 9, 12, .62); }
.cta__inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); color: var(--gold-hi); margin-bottom: 4px; }
.cta p { margin: 0; color: #e6dcc6; }
.cta__buttons { display: flex; gap: 12px; flex-wrap: wrap; }

/* ------------------------------------------------------------------ page head */
.pagehead { position: relative; padding: 78px 0 54px; overflow: hidden; isolation: isolate; border-bottom: 1px solid var(--line); }
.pagehead::before { content: ""; position: absolute; inset: 0; z-index: -2; background-position: center 30%; background-size: cover; background-repeat: no-repeat; opacity: .55; }
.pagehead::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, var(--bg) 2%, rgba(10, 9, 12, .55) 60%, rgba(10, 9, 12, .7)); }
.pagehead--slim { padding: 52px 0 36px; }
.pagehead__title { font-size: clamp(1.9rem, 4.5vw, 3rem); color: var(--gold-hi); margin: 0; text-shadow: 0 3px 16px #000; }
.pagehead__lead { color: #e9dfc8; max-width: 44em; margin: 10px 0 0; font-size: 1.05rem; text-shadow: 0 2px 8px #000; }

/* ------------------------------------------------------------------ prose */
.prose { font-size: 1.02rem; }
.prose h2 { font-size: 1.4rem; color: var(--gold-hi); margin-top: 1.4em; }
.prose h3 { font-size: 1.15rem; color: var(--gold); margin-top: 1.2em; }
.prose ul, .prose ol { padding-inline-start: 1.4em; }
.prose li { margin-bottom: .35em; }
.prose table { width: 100%; border-collapse: collapse; margin: 1em 0; font-size: .95rem; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 10px; text-align: start; }
.prose th { background: rgba(212, 175, 106, .08); color: var(--gold-hi); }
.prose code { background: rgba(255, 255, 255, .06); padding: 1px 6px; border-radius: 4px; }
.prose blockquote { margin: 1em 0; padding: 10px 16px; border-inline-start: 3px solid var(--gold); background: rgba(212, 175, 106, .06); }

/* ------------------------------------------------------------------ forms */
input[type=text], input[type=email], input[type=password], input[type=search], input:not([type]), select {
  width: 100%; padding: 11px 13px; border-radius: var(--radius); border: 1px solid rgba(212, 175, 106, .25);
  background: rgba(5, 4, 6, .7); color: var(--text); font: inherit; font-size: 1rem; transition: border-color .2s, box-shadow .2s;
}
input:focus, select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(212, 175, 106, .15); }
input[dir=ltr] { text-align: left; }
html[dir=rtl] input[dir=ltr]::placeholder { text-align: right; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%);
  background-position: calc(100% - 18px) 55%, calc(100% - 13px) 55%; background-size: 5px 5px; background-repeat: no-repeat; padding-inline-end: 34px; }
html[dir=rtl] select { background-position: 18px 55%, 13px 55%; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 700; font-size: .92rem; margin-bottom: 6px; }
.field__control { position: relative; }
.field__show { position: absolute; inset-inline-end: 6px; top: 50%; transform: translateY(-50%); background: none; border: 0; color: var(--gold); font: 700 .8rem var(--font-body); cursor: pointer; padding: 6px 8px; }
html[dir=rtl] .field__show { inset-inline-end: auto; inset-inline-start: 6px; }
.field__control input[type=password], .field__control input[data-pw] { padding-inline-end: 64px; }
html[dir=rtl] .field__control input[type=password], html[dir=rtl] .field__control input[data-pw] { padding-inline-end: 13px; padding-left: 64px; }
.field__help { color: var(--muted); font-size: .82rem; margin: 6px 0 0; }
.field__error { color: #ff9c8c; font-size: .85rem; margin: 6px 0 0; }
.has-error input { border-color: rgba(214, 86, 69, .8); }
.field--check label { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.field--check input { width: 18px; height: 18px; margin-top: 5px; accent-color: var(--gold); flex-shrink: 0; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.more-options { margin: 4px 0 16px; border: 1px dashed var(--line); border-radius: var(--radius); padding: 10px 14px; }
.more-options summary { cursor: pointer; color: var(--gold); font-weight: 700; }
.more-options[open] summary { margin-bottom: 12px; }
.cf-turnstile, .h-captcha { margin-bottom: 16px; }

.authpage { padding: 60px 16px 80px; display: grid; place-items: center; background: radial-gradient(700px 400px at 50% 0%, rgba(155, 33, 33, .2), transparent 70%), url("../img/art-storm.jpg") center top / cover no-repeat; position: relative; isolation: isolate; min-height: 70vh; }
.authpage::before { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, var(--bg) 5%, rgba(10, 9, 12, .82) 50%, rgba(10, 9, 12, .7)); z-index: -1; }
.authcard { width: min(100%, 440px); padding: 34px 30px; }
.authcard--wide { width: min(100%, 560px); }
.authcard h1 { font-size: 1.8rem; color: var(--gold-hi); margin-bottom: 4px; }
.authcard form { margin-top: 20px; }
.authcard form + form { margin-top: 10px; }
.authcard__links { margin: 14px 0 0; text-align: center; font-size: .92rem; }
.authcard__alt { margin: 18px 0 0; padding-top: 16px; border-top: 1px solid var(--line); text-align: center; color: var(--muted); }

/* ------------------------------------------------------------------ account */
.account { display: grid; grid-template-columns: 220px 1fr; gap: 24px; align-items: start; }
.account__nav { position: sticky; top: 86px; display: grid; gap: 2px; padding: 12px; }
.account__nav a { color: var(--text); padding: 9px 12px; border-radius: var(--radius); font-weight: 700; }
.account__nav a:hover { background: rgba(212, 175, 106, .08); color: var(--gold-hi); }
.account__main { display: grid; gap: 22px; }
.account__main > .panel { scroll-margin-top: 90px; }
.kv { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; margin: 0; }
.kv div { padding: 12px 14px; border: 1px solid rgba(212, 175, 106, .12); border-radius: var(--radius); background: rgba(0, 0, 0, .2); }
.kv dt { color: var(--muted); font-size: .8rem; }
.kv dd { margin: 2px 0 0; font-weight: 700; }
.badge { display: inline-block; padding: 1px 10px; border-radius: 99px; font-size: .82rem; font-weight: 700; }
.badge--ok { background: rgba(95, 191, 106, .15); color: #a8e6ae; border: 1px solid rgba(95, 191, 106, .4); }
.badge--bad { background: rgba(214, 86, 69, .15); color: #f3a093; border: 1px solid rgba(214, 86, 69, .4); }
.badge--warn { background: rgba(224, 166, 64, .15); color: #f1c47a; border: 1px solid rgba(224, 166, 64, .4); }
.reveal summary { cursor: pointer; color: var(--gold); font-weight: 700; font-size: .9rem; }
.reveal[open] summary { display: none; }
.charlist { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.charcard { display: flex; gap: 14px; align-items: center; padding: 14px; border: 1px solid rgba(212, 175, 106, .15); border-radius: var(--radius); background: linear-gradient(135deg, rgba(155, 33, 33, .12), rgba(0, 0, 0, .25)); }
.charcard .face { width: 52px; height: 52px; }
.charcard h3 { font-size: 1.08rem; margin: 0 0 2px; color: var(--gold-hi); }
.charcard p { margin: 0; font-size: .9rem; }
.balance { font-size: 1.05rem; }
.balance strong { font-size: 1.8rem; margin-inline: 6px; }
table.mini { width: 100%; border-collapse: collapse; font-size: .9rem; }
table.mini td { padding: 7px 4px; border-bottom: 1px solid rgba(212, 175, 106, .08); }
.pos-delta { color: #a8e6ae; text-align: end; } .neg-delta { color: #f3a093; text-align: end; }
.secgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; }
.secform { padding: 18px; border: 1px solid rgba(212, 175, 106, .12); border-radius: var(--radius); background: rgba(0, 0, 0, .2); }

/* ------------------------------------------------------------------ shop */
.packages { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 20px; }
@media (max-width: 640px) { .packages { grid-template-columns: 1fr 1fr; } }
.package { display: grid; justify-items: center; gap: 2px; text-align: center; cursor: pointer; padding: 26px 16px; transition: transform .2s, border-color .2s; }
.package input { position: absolute; opacity: 0; }
.package:hover { transform: translateY(-3px); }
.package:has(input:checked) { border-color: var(--gold); box-shadow: var(--shadow), 0 0 0 1px var(--gold), 0 0 40px rgba(212, 175, 106, .2); }
.package--featured { background: linear-gradient(180deg, rgba(155, 33, 33, .35), rgba(17, 14, 19, .95)); }
.package__coins { font: 900 2rem/1.1 var(--font-head); color: var(--gold-hi); }
.package__name { color: var(--muted); font-size: .9rem; }
.package__bonus { color: #a8e6ae; font-weight: 700; font-size: .9rem; margin-top: 4px; }
.package__total { font-size: .82rem; color: var(--muted); }
.package__price { margin-top: 10px; font: 800 1.2rem/1 var(--font-body); color: var(--text); padding: 8px 16px; border-radius: 99px; border: 1px solid var(--line-strong); }
.providers { display: flex; flex-wrap: wrap; gap: 12px 24px; margin-bottom: 20px; }
.providers legend { color: var(--gold); font-weight: 700; padding: 0 6px; }
.provider { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.provider input { accent-color: var(--gold); }
.faq { margin-top: 28px; }
.faq ul { margin: 0; padding-inline-start: 1.2em; color: var(--muted); }
.order-status { font: 800 1.15rem/1.4 var(--font-head); margin: 10px 0 18px; }
.order-status--credited { color: #a8e6ae; } .order-status--failed { color: #f3a093; } .order-status--pending, .order-status--created { color: var(--warn); }
.authcard .kv { grid-template-columns: 1fr; margin-bottom: 18px; }
.authcard .btn + .btn { margin-top: 10px; }

/* ------------------------------------------------------------------ errors */
.errorpage { text-align: center; padding-block: 100px; }
.errorpage__code { font: 900 6rem/1 var(--font-head); color: transparent; -webkit-text-stroke: 1px var(--gold); margin-bottom: 10px; }

/* ------------------------------------------------------------------ responsive */
@media (max-width: 960px) {
  .hero__inner { grid-template-columns: 1fr; padding-block: 56px 40px; }
  .features { grid-template-columns: 1fr 1fr; }
  .twocol, .twocol--even, .dlgrid { grid-template-columns: 1fr; }
  .account { grid-template-columns: 1fr; }
  .account__nav { position: static; display: flex; overflow-x: auto; }
  .account__nav a { white-space: nowrap; }
}
@media (max-width: 640px) {
  body { font-size: 15px; }
  html[lang="ar"] body { font-size: 16px; }
  .section { padding-block: 44px; }
  .features { grid-template-columns: 1fr; }
  .newscard { grid-template-columns: 1fr; }
  .newscard__art { min-height: 130px; }
  .grid2 { grid-template-columns: 1fr; }
  .hide-sm { display: none; }
  .ranktable { min-width: 0; }
  .eventrow { grid-template-columns: 1fr; gap: 4px; }
  .footer__inner { grid-template-columns: 1fr; }
  .hero__cta .btn { flex: 1 1 100%; }
  .authcard { padding: 26px 20px; }
  .section__title::before, .section__title::after { flex-basis: 40px; }
}

/* coins: redeem form, three-column history */
.redeem { margin: 6px 0 22px; }
.redeem label { display: block; font-weight: 700; margin-bottom: 6px; color: var(--gold); }
.redeem__row { display: flex; gap: 10px; }
.redeem__row input { flex: 1; font-family: ui-monospace, Menlo, Consolas, monospace; letter-spacing: .08em; text-transform: uppercase; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.shopnote { margin: 4px 0 22px; }
.shopagree { align-items: flex-start; margin-bottom: 20px; }
.faq { margin-top: 0; }
@media (max-width: 960px) { .grid3 { grid-template-columns: 1fr; } }


/* legacy overrides: no ornament corners, no glow */
.panel { background: var(--ink-2); border: 1px solid var(--hair); box-shadow: none; }
.panel::before, .panel::after, .panel__title::before { display: none; }
.panel--glow { box-shadow: none; }
.pagehead { padding: 150px 0 48px; }
.pagehead__title { color: var(--bone); text-shadow: none; font-size: calc(76px * var(--ds)); }
@media (max-width: 760px) { .week--full .day:nth-child(n+5) { display: grid; } .week--full .day--empty { display: none; } }
/* empire dots and tags (CSP: no inline styles) */
.emp--shinsoo { background: #d8382e; } .emp--chunjo { background: #e0b324; } .emp--jinno { background: #2f74d0; }
.empire-tag { display: inline-flex; gap: 8px; align-items: center; }
.who > span { display: flex; flex-direction: column; }
.empty { padding: 64px 0; text-align: center; }
.tab, .subj { cursor: pointer; }
/* news page + article */
.news--page { margin-top: 56px; }
.art { max-width: 860px; padding-top: 120px; }
.art__head { padding-bottom: 32px; margin-bottom: 40px; border-bottom: 1px solid var(--hair); }
.art__head h1 { font: 400 calc(64px * var(--ds)) / 1.1 var(--serif); margin: 16px 0 12px; }
:root[dir="rtl"] .art__head h1 { font-weight: 600; line-height: 1.5; }
.art__lead { color: #cfc6b8; font-size: 18px; }
.art .prose { font-size: 17px; line-height: 1.8; }
.art .prose p, .art .prose ul, .art .prose ol { margin: 0 0 1.1em; }
.art .prose h2 { font: 400 calc(36px * var(--ds)) / 1.2 var(--serif); color: var(--bone); margin: 1.4em 0 .5em; }
.art__back { margin-top: 48px; }
@media (max-width: 760px) { .art { padding-top: 96px; } .art__head h1 { font-size: calc(40px * var(--ds) + 4px * (1 - var(--ds))); } }
/* download page */
.dl--page { margin-top: 0; padding-top: 170px; border-top: 0; }
.dl--page h1 { font: 400 calc(96px * var(--ds)) / 1 var(--serif); }
:root[dir="rtl"] .dl--page h1 { font-weight: 600; line-height: 1.4; }
.dl__opts--3 { grid-template-columns: repeat(3, 1fr); max-width: 1100px; }
.dl__opts--3 .opt + .opt { border-inline-start: 1px solid var(--hair); }
.dlinfo > * { min-width: 0; }
.dlinfo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; padding-top: 72px; }
.dlinfo h2 { font: 400 calc(36px * var(--ds)) / 1.2 var(--serif); margin-bottom: 18px; }
.dlinfo ol, .dlinfo ul { padding-inline-start: 1.3em; display: grid; gap: 10px; color: #cfc6b8; }
.dlinfo .muted { margin-top: 18px; }
.dlinfo__hash { grid-column: 1 / -1; border-top: 1px solid var(--hair); padding-top: 40px; }
.dlinfo pre { background: var(--ink-2); border: 1px solid var(--hair); padding: 14px 16px; overflow-x: auto; margin-top: 12px; font-size: 13px; text-align: left; }
@media (max-width: 760px) { .dl__opts--3 { grid-template-columns: 1fr; } .dl__opts--3 .opt + .opt { border-inline-start: 0; border-top: 1px solid var(--hair); } .dlinfo { grid-template-columns: minmax(0, 1fr); gap: 40px; } }
/* landing */
.hero__brand { margin: 0; }
.hero__logo { width: min(420px, 70vw); }
.dot--down { background: #e0675a; box-shadow: 0 0 0 4px rgba(224, 103, 90, .15); }
.hall__cat { margin-bottom: 18px; }
@media (prefers-reduced-motion: reduce) { .hero__frame video { display: none; } .hero__frame { background: url(../media/poster.jpg) center / cover; } .hero__logo, .hero__rule, .hero__line, .hero .btnrow { animation: none; opacity: 1; } }
/* B: no pills, no radii on legacy components */
.tag, .badge, .package__price, .pos, .field__control, input, select, textarea, .notice, .flash { border-radius: 0; }
.notice--gold { background: var(--ink-2); border-color: var(--hair-2); }
.verify-banner { display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.verify-banner p { margin: 0; }
/* character page */
.char { padding-top: 120px; }
.char__head { border-bottom: 1px solid var(--hair); padding-bottom: 32px; }
.char__id { display: flex; gap: 32px; align-items: center; margin-top: 28px; flex-wrap: wrap; }
.char__stage { width: 220px; height: 280px; display: grid; place-items: center; border: 1px solid var(--hair); background: radial-gradient(ellipse at 50% 70%, rgba(233,225,211,.06), transparent 70%); }
.frame--lg { width: 112px; height: 112px; padding: 8px; outline-offset: 6px; }
.char h1 { font: 400 calc(80px * var(--ds)) / 1 var(--serif); margin: 10px 0; }
:root[dir="rtl"] .char h1 { font-weight: 600; line-height: 1.4; }
.char__title { color: var(--accent); }
.char__sub { color: var(--muted); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.char__stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-bottom: 1px solid var(--hair); }
.stat { padding: 28px 20px; border-inline-start: 1px solid var(--hair); display: flex; flex-direction: column; gap: 8px; }
.stat:first-child { border: 0; padding-inline-start: 0; }
.stat b { font: 400 48px/1 var(--serif); } .stat small { color: var(--muted); font-size: 12px; }
.bar { display: block; height: 3px; background: var(--hair); } .bar__fill { display: block; height: 100%; background: var(--bone); width: 0; }
.bar--0 { width: 0%; }
.bar--5 { width: 5%; }
.bar--10 { width: 10%; }
.bar--15 { width: 15%; }
.bar--20 { width: 20%; }
.bar--25 { width: 25%; }
.bar--30 { width: 30%; }
.bar--35 { width: 35%; }
.bar--40 { width: 40%; }
.bar--45 { width: 45%; }
.bar--50 { width: 50%; }
.bar--55 { width: 55%; }
.bar--60 { width: 60%; }
.bar--65 { width: 65%; }
.bar--70 { width: 70%; }
.bar--75 { width: 75%; }
.bar--80 { width: 80%; }
.bar--85 { width: 85%; }
.bar--90 { width: 90%; }
.bar--95 { width: 95%; }
.bar--100 { width: 100%; }
.char__cols { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 56px; padding-top: 48px; }
.char__cols h2 { font: 400 calc(34px * var(--ds)) / 1.2 var(--serif); margin: 0 0 14px; }
.char__cols h2:not(:first-child) { margin-top: 40px; }
.char__list { list-style: none; } .char__list li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--hair); }
.char__list small { color: var(--muted); }
.charitem { display: grid; grid-row: span 2; grid-template-rows: subgrid; row-gap: 0; }
.charitem .charunstuck { margin-top: 8px; }
.charunstuck { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; padding: 0 4px; }
.charunstuck form { margin: 0; } .charunstuck p { margin: 0; flex: 1 1 180px; }
.charunstuck__pending { color: var(--bone); }
a.charcard { color: inherit; } a.charcard:hover { border-color: var(--hair-2); }
.table--compact td, .table--compact th { padding: 10px 8px; font-size: 14px; }
@media (max-width: 760px) { .char__stats { grid-template-columns: repeat(2, minmax(0,1fr)); } .stat:nth-child(odd) { border-inline-start: 0; padding-inline-start: 0; } .char__cols { grid-template-columns: minmax(0,1fr); gap: 32px; } .char__stage { width: 100%; height: 240px; } }
.char__stage--3d { width: 320px; height: 420px; cursor: grab; }
.char__stage--3d canvas { width: 100%; height: 100%; display: block; }
@media (max-width: 760px) { .char__stage--3d { width: 100%; height: 380px; } }
/* admin */
.adm { padding-top: 110px; }
.adm__nav { display: flex; gap: 24px; flex-wrap: wrap; border-bottom: 1px solid var(--hair); padding-bottom: 16px; margin-bottom: 28px; }
.adm h1 { font: 400 calc(48px * var(--ds)) / 1.2 var(--serif); margin-bottom: 16px; }
.adm h2 { font: 400 calc(28px * var(--ds)) / 1.2 var(--serif); margin: 32px 0 10px; }
.adm__search input { width: 100%; max-width: 520px; }
.adm__forms { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; margin-top: 24px; }
.adm__forms form, .adm__live { border: 1px solid var(--hair); padding: 18px; display: grid; gap: 10px; }
.adm__live { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); align-items: end; margin-bottom: 24px; }
.adm__secret { font-size: 20px; letter-spacing: .12em; word-break: break-all; }
.adm .table { font-size: 13px; }
.adm__qr { width: 260px; max-width: 100%; margin: 16px 0; padding: 18px; background: #fff; }
.adm__qr svg { display: block; width: 100%; height: auto; }
.adm__manual { margin-bottom: 16px; } .adm__manual summary { cursor: pointer; color: var(--muted); }
.adm__secret { font-size: 16px; letter-spacing: .08em; word-break: break-all; }

/* ------------------------------------------------------------------ Wiki (/wiki): the in-game wiki window (root/uiwiki.py,
   uirebornstyle.py). Art from the client, exported by ops tools/wiki/export_json.py to static/wiki/ui: Board + titlebar
   around the window, ThinBoard panels and rows, slot_base under every icon, stone buttons. Colours: uirebornstyle. */
.page-wiki { --board: url("../wiki/ui/board.png"); --base: url("../wiki/ui/board_base.png"); --thin: url("../wiki/ui/thinboard.png"); --title: url("../wiki/ui/titlebar.png"); --slot: url("../wiki/ui/slot.png"); --btn: url("../wiki/ui/button.png"); --btn-h: url("../wiki/ui/button_hover.png"); --btn-d: url("../wiki/ui/button_down.png");
  --g-text: #ddd6c6; --g-gold: #ffd778; --g-dim: #8a8a8a; --g-mark: #9b824b; --g-hover: #5c5240; --g-green: #b4d8b4; }
.gw-page { padding: 28px 12px 72px; }
.gw { max-width: 1120px; margin: 0 auto; position: relative; color: var(--g-text); font: 400 13px/1.45 Tahoma, Verdana, 'Readex Pro', sans-serif;
  border: 32px solid transparent; border-image: var(--board) 32 round; background: var(--base) repeat; background-clip: padding-box; padding: 0; }
:root[dir="rtl"] .gw { font-size: 15px; }
.gw a { color: inherit; }
.gw-title { margin: -26px -20px 10px; height: 32px; border-style: solid; border-width: 0 32px; border-image: var(--title) 0 32 fill / 0 32px stretch; display: flex; align-items: center; justify-content: center; }
.gw-title span { font-size: 12px; color: #fff; text-shadow: 0 1px 1px #000; }
.gw-tb { border: 16px solid transparent; border-image: var(--thin) 16 round; background: rgba(0, 0, 0, .51); background-clip: padding-box; }
.gw-body { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 10px; }
.gw-side, .gw-pane { border-width: 12px; padding: 0; }
.gw-side { align-self: start; }
.gw-search { display: flex; gap: 6px; direction: ltr; }
:root[dir="rtl"] .gw-search > * { direction: rtl; }
.gw .gw-input { flex: 1; min-width: 0; height: 24px; padding: 0 6px; background: #000; color: var(--g-text); border: 1px solid var(--g-mark); font: inherit; font-size: 12px; }
.gw .gw-input:focus { outline: none; border-color: var(--g-gold); }
.gw-btn { display: inline-flex; align-items: center; justify-content: center; min-width: 66px; height: 21px; padding: 0 8px; border: 0;
  background: var(--btn) center / 100% 100% no-repeat; color: #fff; font: inherit; font-size: 12px; cursor: pointer; text-shadow: 0 1px 1px #000; }
.gw-btn:hover, .gw-btn.is-on { background-image: var(--btn-h); }
.gw-btn:active { background-image: var(--btn-d); }
.gw-gold { color: var(--g-gold); }
.gw-dim { color: var(--g-dim); }
.gw-in { padding-inline-start: 28px; }   /* indented detail line (fishing needs), as the in-game 28 px indent */
.gw-green { color: var(--g-green); }
.gw-cats-h { margin: 12px 0 6px; }
.gw-cats { display: flex; flex-direction: column; gap: 2px; }
.gw-cat { display: flex; align-items: center; gap: 10px; min-height: 46px; border-width: 8px; padding: 0 2px; }
.gw-cat:hover { border-image-source: var(--thin); outline: 1px solid var(--g-hover); outline-offset: -5px; }
.gw-cat.is-on { outline: 1px solid var(--g-mark); outline-offset: -5px; color: var(--g-gold); }
.gw-cat__name { flex: 1; }
.gw-cat__n { color: var(--g-text); opacity: .85; font-variant-numeric: tabular-nums; }
.gw-slot { position: relative; flex: none; display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; background: var(--slot) center / 32px 32px no-repeat; }
.gw-slot img { max-width: 32px; max-height: 32px; image-rendering: pixelated; }
.gw-slot i { font-style: normal; color: var(--g-dim); }
.gw-slot b { position: absolute; inset-inline-end: 1px; bottom: -1px; font: 700 11px/1 Tahoma, sans-serif; color: #fff; text-shadow: 0 0 2px #000, 0 0 2px #000; }
.gw-slot--card img { width: 30px; height: 30px; object-fit: cover; object-position: top; image-rendering: auto; border: 1px solid #000; }
.gw-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 2px 4px 0; }
.gw-head h1 { font: inherit; font-size: 13px; color: var(--g-gold); }
:root[dir="rtl"] .gw-head h1 { font-size: 15px; font-weight: 400; line-height: 1.45; }
.gw-head .gw-dim a:hover { color: var(--g-text); }
.gw-banner { color: var(--g-dim); padding: 4px 4px 6px; margin: 0 0 8px; border-bottom: 1px solid #3a3a3a; }
.gw-content { padding: 0 4px 6px; }
.gw-subs { display: flex; flex-wrap: wrap; gap: 2px; align-items: center; margin-bottom: 8px; }
.gw-subs__gap { flex: 1; min-width: 12px; }
.gw-tile { display: inline-flex; padding: 1px; border: 1px solid transparent; }
.gw-tile:hover { border-color: var(--g-hover); }
.gw-tile.is-on { border-color: var(--g-gold); }
.gw-face { display: inline-flex; border: 1px solid transparent; opacity: .55; }
.gw-face img { width: 34px; height: 34px; }
.gw-face:hover { opacity: 1; } .gw-face.is-on { opacity: 1; border-color: var(--g-gold); }
.gw-intro { padding: 12px 4px; } .gw-intro p { margin: 0 0 6px; }
.gw-guide { padding: 8px 4px; }
.gw-guide h2 { font: inherit; font-size: 13px; color: var(--g-gold); margin: 12px 0 8px; }
:root[dir="rtl"] .gw-guide h2 { font-size: 15px; font-weight: 400; }
.gw-guide p { margin: 0 0 8px; }
.gw-gtable { border-collapse: collapse; width: 100%; max-width: 300px; margin: 0 0 10px; }
.gw-gtable th, .gw-gtable td { padding: 4px 10px; text-align: start; border-bottom: 2px solid rgba(0, 0, 0, .55); background: rgba(255, 255, 255, .05); font-weight: 400; }
.gw-gtable th { color: var(--g-gold); background: rgba(150, 110, 50, .18); }
.gw-gtable td + td, .gw-gtable th + th { text-align: end; }
.gw-gtable td + td { color: #9fdf9f; }
.gw-list { display: flex; flex-direction: column; gap: 2px; }
.gw-row { display: flex; align-items: center; gap: 12px; min-height: 50px; border-width: 8px; padding: 0 4px; }
a.gw-row:hover { outline: 1px solid var(--g-hover); outline-offset: -5px; }
.gw-row .gw-slot { width: 36px; height: 36px; background-size: 36px 36px; }
.gw-row__txt { display: flex; flex-direction: column; min-width: 0; }
.gw-row__name { overflow-wrap: anywhere; }
.gw-row__x { color: var(--g-green); font-size: .92em; }
.gw-h { font: inherit; color: var(--g-gold); margin: 14px 0 6px; }
.gw-h3 { font: inherit; color: var(--g-text); margin: 10px 0 4px; }
:root[dir="rtl"] .gw-h, :root[dir="rtl"] .gw-h3 { font-weight: 400; line-height: 1.45; }
.gw-hero { display: flex; gap: 16px; align-items: flex-start; border-width: 10px; padding: 6px; }
.gw-hero.is-gold { outline: 1px solid var(--g-mark); outline-offset: -6px; }
.gw-hero__icon { flex: none; width: 64px; min-height: 64px; display: flex; align-items: center; justify-content: center; }
.gw-hero__icon img { image-rendering: pixelated; max-width: 64px; }
.gw-hero__txt { flex: 1; min-width: 0; } .gw-hero__txt p { margin: 0 0 4px; }
.gw-hero__name { font-size: 1.05em; }
.gw-hero__id { font-size: 11px; }
.gw-stats { list-style: none; margin: 6px 0 0; color: #a8d0ff; }
.gw-desc { color: var(--g-text); opacity: .9; margin-top: 6px !important; }
.gw-ucard { border-width: 10px; margin-bottom: 4px; }
.gw-ucard__head { display: flex; justify-content: space-between; padding: 0 4px 4px; border-bottom: 1px solid #3a3a3a; }
.gw-ucard__body { display: flex; gap: 8px; align-items: center; padding-top: 6px; }
.gw-ucard__icon { flex: none; width: 56px; display: flex; justify-content: center; }
.gw-ucard__icon img { image-rendering: pixelated; }
.gw-ucard__grid { flex: 1; min-width: 0; overflow-x: auto; }
.gw-ucard table { border-collapse: collapse; width: 100%; }
.gw-ucard th, .gw-ucard td { padding: 1px 2px; text-align: center; font-weight: 400; white-space: nowrap; }
.gw-ucard tr > th:first-child { text-align: start; padding-inline-end: 10px; color: var(--g-text); }
.gw-ucard tr.gw-green > th:first-child { color: var(--g-green); }
.gw-ucard th a:hover { color: var(--g-gold); }
.gw-ucard th.is-here a { color: var(--g-gold); }
.gw-ucard .gw-mats td { padding: 1px; }
.gw-yang { image-rendering: pixelated; }
.gw-mcard { display: grid; grid-template-columns: 96px minmax(0, 1fr) 160px; gap: 10px; border-width: 10px; padding: 2px; }
.gw-mcard__portrait { position: relative; min-height: 110px; border: 1px solid var(--g-mark); background: #232328; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; padding-top: 4px; gap: 4px; }
.gw-mcard__portrait img { width: 92px; max-width: 100%; height: auto; }
.gw-mcard__drops p, .gw-mcard__loc p { margin: 0 0 6px; }
.gw-mcard__loc { border-inline-start: 1px solid var(--g-hover); padding-inline-start: 10px; }
.gw-mcard__loc .gw-gold { border-bottom: 1px solid var(--g-mark); padding-bottom: 2px; }
.gw-loc { display: block; padding: 2px 0; } .gw-loc:hover { color: var(--g-gold); }
.gw-tiles { display: flex; flex-wrap: wrap; gap: 2px; }
.gw-tiles--big { margin: 4px 0 8px; }
.gw-facts { list-style: none; margin: 10px 4px; } .gw-facts li { padding: 4px 0; }
.gw-recipe { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 10px; border-width: 10px; margin-bottom: 4px; }
.gw-recipe .gw-row { border: 0; background: none; min-height: 40px; }
.gw-recipe__in p { margin: 4px 0 0; }
.gw-pages { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 10px; }
.gw-pages .gw-btn { min-width: 30px; }
.gw .lnk { box-shadow: none; text-decoration: underline; text-decoration-color: var(--g-hover); }
@media (max-width: 820px) {
  .gw-page { padding: 12px 0 48px; }
  .gw { border-width: 16px; border-image-width: 16px; font-size: 13px; }
  .gw-title { margin: -12px -6px 8px; }
  .gw-body { grid-template-columns: minmax(0, 1fr); }
  .gw-cats { flex-direction: row; overflow-x: auto; scrollbar-width: none; gap: 2px; }
  .gw-cat { flex: none; min-height: 44px; }
  .gw-mcard { grid-template-columns: 80px minmax(0, 1fr); }
  .gw-mcard__loc { grid-column: 1 / -1; border: 0; padding: 0; }
  .gw-recipe { grid-template-columns: minmax(0, 1fr); }
  .gw-ucard__icon { display: none; }
}

/* Nav with the Wiki link (2026-11-01): six links no longer fit beside the centred logo below 1440px, so the
   menu sheet takes over there (it used to start at 1100px). DECISION: keep the centred logo, move the breakpoint. */
.nav__side a { white-space: nowrap; }
.nav__in > .nav__side:first-child { gap: 22px; }
@media (max-width: 1439px) {
  .nav__in { grid-template-columns: auto 1fr auto; }
  .nav__in > .nav__side:first-child { display: none; }
  .nav__logo { grid-column: 1; }
  .nav__side--end > :not(.btnrow):not(.nav__toggle) { display: none; }
  .nav__toggle { display: block; }
  .sheet { position: fixed; inset: 76px 0 0; z-index: 49; background: var(--ink); padding: 32px var(--gut); flex-direction: column; }
  .sheet.is-open { display: flex; }
  .sheet a { font: 400 calc(40px * var(--ds) + 6px * (1 - var(--ds))) / 1.5 var(--serif); border-bottom: 1px solid var(--hair); padding: 8px 0; }
  .sheet .sheet__row { display: flex; gap: 28px; border: 0; margin-top: 18px; }
  .sheet .sheet__row a { font: 500 15px/1 var(--sans); border: 0; }
}
