* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: #1b0f26; color: #fff4ff; font-family: system-ui, -apple-system, sans-serif; }
body { background: radial-gradient(120% 80% at 50% -10%, #5a2a7a 0%, #1b0f26 60%); min-height: 100vh; }
main { max-width: 560px; margin: auto; padding: 14px; display: grid; gap: 12px; }
h1 { margin: 0; font-size: 26px; letter-spacing: -.03em; }
header p { margin: 4px 0 0; color: #d9b8f0; font-size: 13px; line-height: 1.4; }
.reels { display: grid; gap: 8px; }
.reel { position: relative; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px; min-height: 86px; padding: 10px 12px; border-radius: 16px; background: #2b1a3b; border: 1px solid #5b3a77; overflow: hidden; }
.reel small { position: absolute; top: 8px; inset-inline-start: 12px; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: #ff9ee0; font-weight: 800; }
.reel .value { margin-top: 14px; font-size: 20px; line-height: 1.2; font-weight: 800; transition: transform .12s, opacity .12s; }
.reel.rolling .value { opacity: .5; transform: translateY(-3px); filter: blur(1.2px); }
.reel button { width: 44px; height: 44px; border-radius: 12px; border: 1px solid #6b4690; background: #3a2450; color: #fff; font-size: 18px; cursor: pointer; }
.reel button[aria-pressed=true] { background: #ff9ee0; color: #3a0c33; border-color: #ffc4ee; }
.spin { min-height: 58px; border: 0; border-radius: 16px; background: linear-gradient(90deg, #ff7ad9, #ffb36b); color: #34082c; font: 850 18px system-ui, sans-serif; cursor: pointer; box-shadow: 0 8px 26px #ff7ad944; }
.spin:active { transform: scale(.985); }
.timer { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 16px; background: #2b1a3b; border: 1px solid #5b3a77; }
.timer output { font: 800 32px ui-monospace, monospace; font-variant-numeric: tabular-nums; }
.timer.warn output { color: #ff8a6b; }
.timer button { min-height: 44px; padding: 0 16px; border-radius: 12px; border: 1px solid #6b4690; background: #3a2450; color: #fff; font: 750 14px system-ui, sans-serif; cursor: pointer; }
.history h2 { margin: 6px 0; font-size: 13px; color: #d9b8f0; }
.history ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.history li { font-size: 13px; padding: 8px 10px; border-radius: 10px; background: #24142f; color: #e8d2f6; line-height: 1.35; }
:focus-visible { outline: 2px solid #ffc4ee; outline-offset: 3px; }
