:root {
  color-scheme: dark;
  font-family: system-ui, -apple-system, "Hiragino Sans", "Noto Sans CJK JP", sans-serif;
  color: #fcf8ff;
  background: #141326;
  --muted: #c4bfd6;
  --accent: #c6b2ff;
  --accent-ink: #241745;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 280px; background: radial-gradient(ellipse at 50% 12%, #282141 0, #141326 63%); }
.shell { width: min(100% - 36px, 880px); min-height: 100svh; margin: auto; display: flex; flex-direction: column; }
.bar { height: 76px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #ffffff26; gap: 10px; }
a { color: inherit; text-decoration: none; }
.wordmark { font-size: .87rem; font-weight: 900; letter-spacing: .11em; }
.wordmark span { color: var(--accent); }
select { min-height: 44px; border-radius: 99px; padding: 0 12px; border: 1px solid #ffffff36; background: #1d1a30; color: inherit; font: inherit; font-size: .88rem; }
main { flex: 1; display: grid; align-items: center; padding-block: clamp(26px, 6vh, 70px); }
#game { width: min(100%, 460px); margin: auto; }
#season { color: var(--accent); font-size: clamp(2rem, 9vw, 3rem); margin: 0; text-align: center; }
.count { color: var(--muted); text-align: center; font-size: .86rem; margin: 5px 0 20px; }
.sources a { display: inline-flex; align-items: center; min-height: 44px; }
.result { border: 1px solid #ffffff29; border-radius: 21px; overflow: hidden; background: #211b37; }
.portrait { display: grid; place-items: center; background: #191529; }
.portrait img { display: block; width: 100%; height: min(46svh, 440px); object-fit: contain; }
.result-copy { padding: 35px 16px 12px; text-align: center; background: radial-gradient(ellipse at top, #ffffff13, transparent 80%); overflow-wrap: anywhere; }
.portrait:not([hidden]) + .result-copy { padding-top: 15px; }
h2 { color: var(--accent); font-size: clamp(2rem, 9vw, 3.15rem); margin: 0; line-height: 1.12; }
#alias { color: var(--muted); margin: 7px 0 0; font-size: 1.09rem; }
.sources { display: flex; justify-content: center; flex-wrap: wrap; gap: 0 18px; padding-inline: 10px; }
.sources a { font-size: .9rem; text-decoration: underline; text-underline-offset: 4px; }
.photo-note { text-align: center; color: var(--muted); font-size: .8rem; margin: 3px 10px 17px; }
#draw { border: 0; border-radius: 13px; background: var(--accent); color: var(--accent-ink); width: 100%; min-height: 54px; padding: 10px 16px; margin-top: 13px; font: inherit; font-weight: 850; cursor: pointer; }
#draw:disabled { opacity: .48; cursor: default; }
footer { color: var(--muted); padding: 14px 0 21px; border-top: 1px solid #ffffff26; font-size: .77rem; }
:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
.sr { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 540px) { .bar { height: 62px; } }
