:root {
  color-scheme: dark;
  --night: #15120e;
  --night-2: #1e1812;
  --panel: #292018;
  --cream: #fff4df;
  --sand: #d5c5ac;
  --gold: #e7bb7a;
  --bronze: #735731;
  --rule: #574431;
  --head: "Cinzel", Georgia, serif;
  --body: "Rubik", system-ui, sans-serif;
  --gutter: clamp(18px, 5vw, 88px);
}
:lang(ar) { --head: "Cairo", sans-serif; --body: "Cairo", sans-serif; }
:lang(zh-CN) { --head: "Noto Sans SC", sans-serif; --body: "Noto Sans SC", sans-serif; }
:lang(ja) { --head: "Noto Sans JP", sans-serif; --body: "Noto Sans JP", sans-serif; }
:lang(ja) :is(h1,h2,h3) { word-break: auto-phrase; }
* { box-sizing: border-box; margin: 0; }
html { background: var(--night); scroll-behavior: smooth; }
body { background: var(--night); color: var(--cream); font: 400 17px/1.55 var(--body); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid #fff0bb; outline-offset: 3px; }
.top {
  display: flex; align-items: center; gap: clamp(14px, 2vw, 34px);
  padding: 6px var(--gutter); background: #120f0c; border-bottom: 1px solid var(--rule);
}
.mark { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; direction: ltr; }
.mark img { width: 36px; height: 36px; }
.mark span { color: var(--cream); font: 700 clamp(14px, 1.3vw, 21px)/1.12 "Cinzel", Georgia, serif; white-space: nowrap; }
.top nav { display: flex; gap: clamp(14px, 1.6vw, 28px); margin-inline-start: auto; }
.top nav a, .top .play { display: inline-flex; align-items: center; min-height: 44px; white-space: nowrap; font: 500 15px/1.25 var(--body); }
.top nav a { color: var(--sand); }
.top a:hover, .top a[aria-current] { color: var(--cream); text-decoration: underline; text-underline-offset: 5px; }
.top .play { color: var(--gold); }
.lang { min-height: 44px; max-width: 9.5em; padding-inline: 6px; cursor: pointer; border: 0; background: var(--night); color: var(--cream); font: 500 15px/1.2 var(--body); }
.lang:hover { color: var(--gold); }
.command {
  display: inline-grid; place-items: center; min-width: min(235px, 100%); min-height: 54px; padding: 9px 32px;
  border: 0; border-image: url("img/command.webp") 12 46 fill / 5px 23px stretch;
  background-color: #281c14; color: var(--cream);
  font: 700 20px/1.45 var(--head); text-shadow: 0 1px 2px #000; cursor: pointer;
}
.command:hover { color: #fff; filter: brightness(1.22); }
.command:active { filter: brightness(.86); }
.kicker { color: var(--gold); font: 500 14px/1.4 var(--body); }
footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 28px; padding: 24px var(--gutter) calc(24px + env(safe-area-inset-bottom)); border-top: 1px solid var(--rule); color: var(--sand); font-size: 14px; }
footer img { height: 42px; width: auto; }
footer a { display: inline-flex; align-items: center; min-height: 44px; color: var(--gold); }
footer a:hover { text-decoration: underline; }
@media (max-width: 1080px) {
  .top { flex-wrap: wrap; gap: 0 16px; padding-block: 3px 0; }
  .top .lang { margin-inline-start: auto; }
  .top nav { order: 1; width: 100%; justify-content: center; gap: clamp(12px, 2vw, 24px); border-top: 1px solid var(--rule); }
}
@media (max-width: 600px) {
  .top { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 10px; }
  .top .lang { grid-column: 2; grid-row: 1; }
  .top nav { grid-column: 1 / -1; grid-row: 2; overflow: auto; justify-content: flex-start; scrollbar-width: thin; }
  .top nav a { font-size: 14px; }
  .mark { gap: 6px; } .mark img { width: 28px; height: 28px; }
  footer { text-align: center; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
