:root {
  color-scheme: dark;
  font-family: system-ui, -apple-system, "Microsoft YaHei", sans-serif;
  color: #f4ebd6;
  background: #121b21;
  --gold: #eed39a;
  --muted: #aca896;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  min-height: 100vh;
  margin: 0;
  padding: clamp(20px, 5vw, 76px) 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(160deg, #0c1a21bb, #0c1116f0), url('/assets/background.jpg') center / cover;
}
main {
  width: min(100%, 468px);
  padding: clamp(22px, 6vw, 40px);
  border: 1px solid #887248;
  border-radius: 24px;
  background: #151e23f5;
  box-shadow: 0 24px 80px #070a0db0;
}
header { text-align: center; margin-bottom: 25px; }
.game { color: var(--gold); letter-spacing: .32em; margin: 0 0 8px; font-size: .88rem; }
h1 { margin: 0; font-size: clamp(2.2rem, 8vw, 2.8rem); letter-spacing: .1em; }
.reward {
  padding: 18px 12px;
  margin-bottom: 22px;
  border: 1px solid #645638;
  border-radius: 15px;
  background: linear-gradient(135deg, #352b1f, #242422);
  text-align: center;
}
.reward-name { color: var(--gold); font-size: 1.15rem; }
.reward-name strong { font-family: "Georgia", serif; font-size: clamp(2.55rem, 10vw, 3.55rem); }
.reward p { margin: 6px 0 0; font-size: .9rem; color: #d6c6a7; }
label { display: block; margin: 13px 0 7px; font-weight: 600; }
select, button, .button {
  display: block;
  width: 100%;
  min-height: 48px;
  border: 1px solid #61583e;
  border-radius: 9px;
  padding: 10px 13px;
  font: inherit;
}
select { background: #0e171c; color: #f4ebd6; }
button, .button {
  color: #221b10;
  background: #e5c785;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
button { margin-top: 18px; }
button:disabled, select:disabled { opacity: .6; cursor: default; }
button:enabled:hover, .button:hover { background: #f4d99d; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
#status { min-height: 1.5em; margin: 14px 0 0; line-height: 1.5; color: var(--muted); }
#status[data-type="error"] { color: #ffb5ac; }
#status[data-type="success"] { color: #b7e1aa; }
footer { margin-top: 18px; padding-top: 15px; border-top: 1px solid #625436; text-align: center; }
footer a { color: var(--gold); text-underline-offset: 3px; }

