:root {
  color-scheme: dark;
  --ink: #060708;
  --ink-soft: #0d0c0c;
  --wine: #491018;
  --wine-deep: #23080d;
  --gold: #d8bb80;
  --gold-bright: #f0d9a3;
  --gold-dim: #8d7141;
  --paper: #f1e5cc;
  --muted: #b7a98d;
  --line: rgb(210 176 111 / 48%);
  --gold-hairline: rgb(216 187 128 / 28%);
  --gold-quiet: rgb(216 187 128 / 12%);
  --panel-black: rgb(5 5 5 / 86%);
  --focus-ring: #f5dfa9;
  --content-max: 760px;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", "Hiragino Mincho Pro", serif;
  background: var(--ink);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--ink);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  min-width: 280px;
  min-height: 100%;
  margin: 0;
  color: var(--paper);
  background: var(--ink);
  -webkit-tap-highlight-color: rgb(216 187 128 / 15%);
}

a,
button {
  color: inherit;
  font: inherit;
}

button {
  border: 0;
  touch-action: manipulation;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 4px;
}

button:not(:disabled),
a {
  -webkit-tap-highlight-color: rgb(216 187 128 / 17%);
}

.menu-link {
  position: absolute;
  z-index: 5;
  top: calc(18px + env(safe-area-inset-top));
  left: calc(18px + env(safe-area-inset-left));
  display: grid;
  justify-items: center;
  gap: 5px;
  min-width: 48px;
  min-height: 48px;
  align-content: center;
  color: var(--gold-bright);
  font: 600 10px/1 Georgia, "Times New Roman", serif;
  letter-spacing: .18em;
  text-decoration: none;
  text-shadow: 0 2px 8px #000;
}

.menu-link__lines {
  display: grid;
  gap: 5px;
  width: 36px;
}

.menu-link__lines i {
  display: block;
  height: 1px;
  background: currentColor;
  box-shadow: 0 0 5px rgb(240 217 163 / 45%);
}

.asset-slot {
  display: grid;
  place-items: center;
  color: rgb(216 187 128 / 58%);
  border: 1px solid rgb(216 187 128 / 48%);
  background:
    radial-gradient(circle, rgb(216 187 128 / 7%), transparent 68%),
    rgb(2 3 5 / 42%);
  font: 9px/1 Georgia, serif;
  letter-spacing: .2em;
}

.asset-slot span {
  opacity: .72;
}

.official-crest,
.official-title-logo {
  display: block;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}
