/* style-r4-games.css - design round 4, area 3: THE GAMES. Games sheet, rules screens, wheel / dice / trivia / Guess Who play + results, DRINK IF, the UNO table chrome, the prize-drink picker, and the PAYMENT (fees) sheets.
   Money screens keep the amount and the CODE huge and every confirm two-step; amber = money. Colours unchanged. Reduced-motion safe. */

/* ---------- games sheet + rules ---------- */
.game-cards { gap: 10px; }
.game-card { background: linear-gradient(180deg, #2A2A2E, #232326); border: 1px solid rgba(52, 199, 89, .35); border-radius: 16px; padding: 12px 14px; }
.game-card-top b { font-size: 17px; }
.game-grid { gap: 10px; }
.game-grid button { border-radius: 16px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; line-height: 1.2; font-size: 16px; min-height: 64px; box-shadow: 0 1px 0 rgba(255, 255, 255, .28) inset, 0 4px 12px rgba(6, 199, 85, .28); }
.game-grid button .pf-tag { margin: 2px 0 0; font-size: 12px; }
#game-join-running { border-radius: 14px; min-height: 48px; }
.game-q { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: #9A9A9A; margin: 16px 0 6px; font-weight: 800; }
.game-opt { border-radius: 14px; min-height: 52px; border: 2px solid #3A3A3C; background: #26262A; font-weight: 700; transition: background-color .15s, border-color .15s, transform .1s; }
.game-opt:active { transform: scale(.97); }
.game-opt.on { background: linear-gradient(180deg, #17512E, #123D22); border-color: #34C759; box-shadow: 0 0 0 3px rgba(52, 199, 89, .18); }
.game-opt { position: relative; overflow-wrap: break-word; word-break: normal; }
.game-opt.on::before { content: "\2713"; position: absolute; top: 3px; right: 7px; font-size: 12px; color: #7DF0A8; }
.game-by { letter-spacing: .02em; }

/* ---------- play screens ---------- */
.game-wheel-wrap { filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .55)); }
.game-pointer { filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .6)); animation: r4Tick 1.6s ease-in-out infinite; transform-origin: 50% 0; }
@keyframes r4Tick { 50% { transform: translateX(-50%) rotate(-6deg); } }
.game-dice { filter: drop-shadow(0 8px 10px rgba(0, 0, 0, .5)); }
.game-players li { border: 1px solid #323236; background: linear-gradient(180deg, #2A2A2E, #26262A); border-radius: 12px; }
.game-players li:has(b) { border-color: rgba(52, 199, 89, .4); }
#game-spin, #game-go, #game-join, .di-btns button, #gw-begin, #gw-got { border-radius: 16px; }
#game-spin:not(:disabled) { animation: r4Pulse 1.8s ease-in-out infinite; }
@keyframes r4Pulse { 50% { box-shadow: 0 1px 0 rgba(255, 255, 255, .28) inset, 0 0 0 5px rgba(6, 199, 85, .22), 0 4px 14px rgba(6, 199, 85, .4); } }
.tri-bar { border-radius: 99px; overflow: hidden; }
.tri-ans { border-radius: 14px; border-width: 2px; background: #26262A; transition: background-color .15s, border-color .15s, transform .1s; }
.tri-ans:active:not(:disabled) { transform: scale(.98); }
.tri-life button { border-radius: 99px; }
.game-landed { text-shadow: 0 2px 12px rgba(255, 214, 10, .35); }

/* ---------- results: win = green, lose = red; a little celebration ---------- */
.game-result { border-radius: 22px; position: relative; overflow: hidden; }
.game-result.win { background: radial-gradient(120% 90% at 50% 0, #1B5A35 0, #0F3320 62%); box-shadow: 0 10px 30px rgba(47, 222, 118, .18), 0 8px 28px rgba(0, 0, 0, .4); }
.game-result.lose { background: radial-gradient(120% 90% at 50% 0, #5A2420 0, #3A1512 62%); box-shadow: 0 8px 28px rgba(0, 0, 0, .4); }
.game-result .game-big { display: inline-block; animation: r4Bounce .9s var(--r4-ease) both; }
@keyframes r4Bounce { 0% { transform: scale(.3) rotate(-20deg); opacity: 0; } 60% { transform: scale(1.2) rotate(6deg); opacity: 1; } 100% { transform: none; } }
.game-wl > div { border: 1px solid rgba(255, 255, 255, .08); }
#gm-prize { min-height: 56px; font-size: 18px; }
.bar-paid-done { border-radius: 18px; box-shadow: 0 8px 24px rgba(47, 222, 118, .15); }
.bar-paid-check { display: inline-block; animation: r4Bounce .7s var(--r4-ease) both; }

/* ---------- prize-drink picker ---------- */
.prize-tabs button { border-radius: 99px; }
.prize-item { border-radius: 16px; border: 1px solid var(--r4-line); box-shadow: var(--r4-shadow); overflow: hidden; transition: transform .12s var(--r4-ease), border-color .15s; }
.prize-item:active { transform: scale(.97); } .prize-item.on, .prize-item:focus-visible { border-color: #34C759; box-shadow: 0 0 0 3px rgba(52, 199, 89, .25); }
.prize-item img, .prize-ph { border-radius: 0; }

/* ---------- DRINK IF ---------- */
.di-card { border-radius: 24px; padding: 28px 18px; box-shadow: var(--r4-shadow); position: relative; background: linear-gradient(180deg, #232326, #1C1C1E); animation: r4CardIn .35s var(--r4-ease); }
@keyframes r4CardIn { from { transform: translateY(14px) rotate(-1.5deg); opacity: 0; } }
.di-card.di-mild { box-shadow: 0 0 0 4px rgba(52, 199, 89, .12), var(--r4-shadow); } .di-card.di-spicy { box-shadow: 0 0 0 4px rgba(255, 159, 10, .14), var(--r4-shadow); } .di-card.di-wild { box-shadow: 0 0 0 4px rgba(255, 59, 48, .16), var(--r4-shadow); }
.di-card.di-flirty { border-color: #FF6FB5; box-shadow: 0 0 0 4px rgba(255, 111, 181, .14), var(--r4-shadow); }
.di-text { font-size: 25px; letter-spacing: -.005em; text-wrap: balance; }
.di-clock { font-size: 34px; text-shadow: 0 2px 14px rgba(255, 181, 71, .3); }
.di-btns button { min-height: 64px; font-size: 19px; }
.di-names span { border-radius: 99px; background: linear-gradient(180deg, #4A3512, #3A2A10); }
.di-reveal b { font-size: 26px; color: #FFB547; }
.di-foot { padding-top: 6px; }

/* ---------- UNO: table chrome only (the table itself is style-uno.css) ---------- */
.uno-top { background: linear-gradient(180deg, rgba(0, 0, 0, .5), transparent); }
.uno-x { box-shadow: 0 2px 8px rgba(0, 0, 0, .5); }
.um-btns button { box-shadow: 0 1px 0 rgba(255, 255, 255, .22) inset, 0 3px 8px rgba(0, 0, 0, .4); }
.um-btns button:active:not(:disabled) { transform: scale(.95); }
.uno-oval { background-image: radial-gradient(closest-side, #17653F, #0F4A2E 70%, #0A2F1E), repeating-linear-gradient(45deg, rgba(255, 255, 255, .02) 0 2px, transparent 2px 6px); background-blend-mode: normal, overlay; }
.up-card, .ue-card { border-radius: 24px; box-shadow: 0 20px 50px rgba(0, 0, 0, .6); animation: r4CardIn .3s var(--r4-ease); }
.up-c { transition: transform .12s var(--r4-ease); } .up-c:active { transform: scale(.94); }

/* ---------- PAYMENT (fees) sheets: price -> PayPay + code -> waiting ---------- */
#bar-sheet-inner:has(#pf-pay) h2, #bar-sheet-inner:has(.pf-code) h2 { color: #FFD39A; }
#pf-pay, #pf-sent { min-height: 60px; font-size: 20px; }
.paypay-btn { min-height: 56px; font-size: 18px; border-radius: 16px; box-shadow: 0 6px 18px rgba(255, 0, 51, .35), 0 1px 0 rgba(255, 255, 255, .3) inset; }
.pf-code { margin: 14px 0; padding: 14px 10px 10px; border: 2px dashed #FFB547; border-radius: 20px; background: radial-gradient(100% 100% at 50% 0, #3A2A10, #241A08); }
.pf-code small { display: block; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: #FFD39A; }
.pf-code b { font-size: 52px; line-height: 1.15; color: #FFD60A; text-shadow: 0 0 22px rgba(255, 214, 10, .4); font-variant-numeric: tabular-nums; user-select: all; -webkit-user-select: all; }
.pf-code.small { padding: 4px 10px; border-width: 1.5px; border-radius: 12px; } .pf-code.small b { font-size: 24px; text-shadow: none; }
.bar-steps { counter-reset: s; list-style: none; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.bar-steps li { counter-increment: s; position: relative; padding: 2px 0 2px 34px; line-height: 1.4; min-height: 26px; }
.bar-steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 24px; height: 24px; border-radius: 50%; background: #3A2A10; border: 1.5px solid #FFB547; color: #FFD39A; font-weight: 800; font-size: 13px; display: grid; place-items: center; }
.bar-qr { border-radius: 18px; box-shadow: 0 8px 26px rgba(0, 0, 0, .5); }
#pf-stop::before { content: "\23F3\00a0"; }

@media (prefers-reduced-motion: reduce) { .game-pointer, #game-spin, .game-result .game-big, .bar-paid-check, .di-card, .up-card, .ue-card { animation: none !important; } .game-opt, .tri-ans, .prize-item, .up-c { transition: none !important; } }
