* { box-sizing: border-box; }
:root { color-scheme: dark; background: #101815; color: #f5ebd7; }
body {
  margin: 0;
  min-height: 100dvh;
  background: radial-gradient(ellipse at 50% 48%, #263a2e, transparent 67%);
  font: 16px "DM Sans", system-ui, sans-serif;
}
.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: min(calc(100% - 36px), 1100px);
  margin: auto;
  padding: 14px 0;
  border-bottom: 1px solid #a399754d;
}
a { color: inherit; }
.wordmark { font: bold 25px Georgia, serif; text-decoration: none; }
button {
  border: 1px solid #887c5e;
  border-radius: 999px;
  background: #18271f;
  color: inherit;
  font: inherit;
  min-height: 44px;
  padding: 0 14px;
  cursor: pointer;
}
:focus-visible { outline: 2px solid #f6cf87; outline-offset: 4px; }
.orbit {
  --orbit-x: 38%;
  --orbit-y: 38%;
  position: relative;
  display: grid;
  place-items: center;
  width: min(92%, 820px);
  height: clamp(360px, 65dvh, 580px);
  margin: 16px auto 0;
}
.track {
  position: absolute;
  inset: calc(50% - var(--orbit-y)) calc(50% - var(--orbit-x));
  border: 1px solid #c5a86a66;
  border-radius: 50%;
  box-shadow: 0 0 40px #d4ac4620, inset 0 0 45px #d4ac4612;
}
.identity { z-index: 1; text-align: center; max-width: 64%; }
.avatar {
  display: grid;
  place-items: center;
  width: clamp(63px, 12vw, 108px);
  aspect-ratio: 1;
  margin: auto;
  border: 1px solid #b6955b;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 25%, #46634d, #1b2e24);
  color: #f1d498;
  font: italic clamp(26px, 5vw, 44px) Georgia, serif;
}
h1 {
  margin: 12px 0 4px;
  font: normal clamp(32px, 7vw, 78px)/.95 "Instrument Serif", Georgia, serif;
  letter-spacing: -.055em;
}
.identity p, .tip { color: #d1c8b0; font-size: 14px; }
.identity p { margin: 10px 0 0; }
.tip { text-align: center; margin: 8px 16px 28px; }
.prize {
  --delay: 0s;
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  justify-items: center;
  gap: 4px;
  width: clamp(66px, 13vw, 122px);
  offset-path: ellipse(var(--orbit-x) var(--orbit-y) at 50% 50%);
  offset-rotate: 0deg;
  animation: orbit 42s linear var(--delay) infinite;
  z-index: 2;
  text-decoration: none;
  border-radius: 24%;
}
.prize:nth-of-type(2) { --delay: -14s; }
.prize:nth-of-type(3) { --delay: -28s; }
.prize canvas {
  width: 100%;
  height: auto;
  border-radius: 50%;
  box-shadow: 0 4px 0 #78532e, 0 10px 25px #090c09a6;
}
.prize span { padding: 3px 6px; background: #122018; border-radius: 99px; font-size: 12px; }
.prize:hover canvas, .prize:focus-visible canvas { outline: 2px solid #f3cf88; }
.orbit.paused .prize, .orbit:has(.prize:focus-visible) .prize,
body:has(dialog[open]) .prize { animation-play-state: paused; }
@media (hover: hover) {
  .orbit:has(.prize:hover) .prize { animation-play-state: paused; }
}
@keyframes orbit { to { offset-distance: 100%; } }
dialog {
  width: min(720px, calc(100% - 20px));
  max-height: 96dvh;
  padding: 0;
  border: 1px solid #716348;
  border-radius: 18px;
  background: #141713;
  color: inherit;
  overflow: auto;
}
dialog::backdrop { background: #070c0bd9; }
body:has(dialog[open]) { overflow: hidden; }
.dialog-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-bottom: 1px solid #404337;
  font-size: 14px;
}
iframe { display: block; width: 100%; height: min(78dvh, 660px); border: 0; }
