:root { --bg: #17152a; --bg-2: #35265b; --gold: #ffd166; --gold-dark: #d99527; --paper: #fff9ed; --muted: #d5cfe9; --ink: #231d3a; }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: grid; place-items: center; padding: 24px; background: radial-gradient(circle at 18% 8%, rgba(255,209,102,.25), transparent 28%), linear-gradient(135deg, var(--bg), var(--bg-2)); color: var(--paper); font-family: Georgia, 'Times New Roman', serif; }
.app { width: min(620px, 100%); }
.coin-card { padding: 30px; border: 1px solid rgba(255,255,255,.13); border-radius: 24px; background: rgba(27,22,48,.92); box-shadow: 0 24px 70px rgba(0,0,0,.35); }
.back-link { color: var(--muted); font: 700 .85rem Arial, sans-serif; }
.eyebrow { margin: 28px 0 7px; color: var(--gold); font: 700 .74rem Arial, sans-serif; letter-spacing: .14em; text-transform: uppercase; }
.header-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
h1 { margin: 0; font-size: clamp(2.4rem, 8vw, 4rem); line-height: .95; }
.subtitle { margin: 10px 0 0; color: var(--muted); font: 1rem/1.4 Arial, sans-serif; }
.reset-button { border: 1px solid rgba(255,255,255,.25); border-radius: 999px; padding: 9px 13px; background: transparent; color: var(--paper); cursor: pointer; font-weight: 700; }
.coin-stage { display: grid; justify-items: center; gap: 18px; margin: 36px 0 24px; }
.coin { display: grid; place-items: center; width: 184px; height: 184px; border: 10px solid var(--gold-dark); border-radius: 50%; background: radial-gradient(circle at 35% 28%, #ffe89b, var(--gold) 58%, #e4a32d); color: var(--ink); box-shadow: inset 0 0 0 4px rgba(255,255,255,.3), 0 14px 0 rgba(0,0,0,.2); font: 700 4.8rem Georgia, serif; }
.coin.tails { background: radial-gradient(circle at 35% 28%, #dbe7ff, #9db9ea 58%, #577bb8); border-color: #7898d0; }
.coin.flipping { animation: flip 750ms cubic-bezier(.2,.75,.3,1); }
@keyframes flip { 0% { transform: rotateY(0) translateY(0); } 45% { transform: rotateY(900deg) translateY(-35px); } 100% { transform: rotateY(1800deg) translateY(0); } }
#result { min-height: 1.4em; margin: 0; color: var(--muted); font: 700 1.05rem Arial, sans-serif; }
.flip-button { width: 100%; border: 0; border-radius: 12px; padding: 16px; background: linear-gradient(135deg, var(--gold), #f2a03b); color: var(--ink); cursor: pointer; font: 800 1.1rem Arial, sans-serif; box-shadow: 0 10px 25px rgba(255,189,70,.2); }
.flip-button:hover { filter: brightness(1.07); }.flip-button:disabled { cursor: wait; opacity: .65; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 18px; }.stats div { padding: 13px 10px; border: 1px solid rgba(255,255,255,.1); border-radius: 12px; background: rgba(255,255,255,.04); text-align: center; }.stats span { display: block; color: var(--muted); font: 700 .7rem Arial, sans-serif; letter-spacing: .08em; text-transform: uppercase; }.stats strong { display: block; margin-top: 4px; font-size: 1.55rem; }.tip { margin: 20px 0 0; color: var(--muted); text-align: center; font: .78rem Arial, sans-serif; }
@media (max-width: 480px) { body { padding: 16px; }.coin-card { padding: 22px 18px; }.coin { width: 150px; height: 150px; font-size: 3.9rem; } }
