/* ── Reset & Base ──────────────────────────────── */ *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; } :root { --felt: #1d6b3a; --felt-dark: #145228; --felt-light: #268847; --card-w: 68px; --card-h: 98px; --radius: 8px; --shadow: 0 2px 8px rgba(0,0,0,.4); --red: #d32f2f; --black: #111; --gold: #f5c518; --heart-red: #e53935; --muted: rgba(255,255,255,.55); } html, body { height: 100%; overflow: hidden; font-family: 'Segoe UI', system-ui, sans-serif; background: var(--felt-dark); color: #fff; touch-action: manipulation; } /* ── Screens ──────────────────────────────────── */ .screen { display: none; } .screen.active { display: flex; flex-direction: column; height: 100vh; } /* ── Lobby ────────────────────────────────────── */ #screen-lobby { justify-content: center; align-items: center; background: radial-gradient(ellipse at center, #1d6b3a 0%, #0c3a20 100%); } .lobby-box { background: rgba(0,0,0,.45); border: 1px solid rgba(255,255,255,.15); border-radius: 16px; padding: 32px 36px; width: min(420px, 94vw); display: flex; flex-direction: column; gap: 16px; } .logo { font-size: 2.4rem; text-align: center; color: var(--heart-red); text-shadow: 0 2px 8px rgba(0,0,0,.5); letter-spacing: 2px; } .tagline { text-align: center; color: rgba(255,255,255,.6); font-size: .9rem; margin-top: -10px; } .btn-install { display: block; margin: 8px auto 0; padding: 7px 20px; background: rgba(100,180,255,.15); border: 1px solid rgba(100,180,255,.4); border-radius: 20px; color: rgba(180,220,255,.9); font-size: .82rem; cursor: pointer; letter-spacing: .03em; } .btn-install:hover { background: rgba(100,180,255,.28); } /* ── PWA install banner ─────────────────────────────────────── */ .pwa-banner { position: fixed; bottom: 0; left: 0; right: 0; display: flex; align-items: center; gap: 10px; padding: 12px 14px 14px; background: #1a3354; border-top: 1px solid rgba(100,180,255,.25); box-shadow: 0 -4px 24px rgba(0,0,0,.5); z-index: 9999; transform: translateY(100%); transition: transform .35s cubic-bezier(.22,1,.36,1); padding-bottom: calc(14px + env(safe-area-inset-bottom)); } .pwa-banner.show { transform: translateY(0); } .pwa-banner-icon { width: 44px; height: 44px; border-radius: 10px; flex-shrink: 0; } .pwa-banner-text { flex: 1; display: flex; flex-direction: column; gap: 2px; } .pwa-banner-text strong { color: #fff; font-size: .9rem; } .pwa-banner-text span { color: rgba(255,255,255,.6); font-size: .75rem; line-height: 1.3; } .pwa-banner-btn { padding: 7px 16px; background: #2979ff; border: none; border-radius: 8px; color: #fff; font-size: .85rem; font-weight: 600; cursor: pointer; white-space: nowrap; flex-shrink: 0; } .pwa-banner-btn:hover { background: #448aff; } .pwa-banner-close { background: none; border: none; color: rgba(255,255,255,.45); font-size: 1rem; cursor: pointer; padding: 4px; flex-shrink: 0; } .pwa-banner-close:hover { color: rgba(255,255,255,.8); } .field label { display: block; font-size: .8rem; color: rgba(255,255,255,.7); margin-bottom: 4px; } .field input { width: 100%; padding: 10px 14px; border-radius: 8px; border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.1); color: #fff; font-size: 1rem; outline: none; transition: border-color .2s; } .field input:focus { border-color: var(--heart-red); } /* Score limit buttons */ .score-limit-row { display: flex; gap: 8px; } .score-btn { flex: 1; padding: 8px; border-radius: 8px; border: 1px solid rgba(255,255,255,.2); background: transparent; color: rgba(255,255,255,.6); font-size: .9rem; cursor: pointer; transition: all .2s; } .score-btn.active { background: var(--heart-red); color: #fff; border-color: var(--heart-red); font-weight: 700; } .lobby-tabs { display: flex; gap: 8px; } .tab-btn { flex: 1; padding: 8px; border-radius: 8px; border: 1px solid rgba(255,255,255,.2); background: transparent; color: rgba(255,255,255,.6); font-size: .9rem; cursor: pointer; transition: all .2s; } .tab-btn.active { background: var(--gold); color: #000; border-color: var(--gold); font-weight: 600; } .tab-panel { display: none; flex-direction: column; gap: 12px; } .tab-panel.active { display: flex; } .btn-primary { padding: 12px 20px; background: var(--gold); color: #000; border: none; border-radius: 8px; font-size: 1rem; font-weight: 700; cursor: pointer; transition: opacity .2s, transform .1s; } .btn-primary:hover { opacity: .9; } .btn-primary:active { transform: scale(.97); } .btn-primary:disabled { opacity: .4; cursor: default; } .btn-secondary { padding: 10px 20px; background: rgba(255,255,255,.12); color: rgba(255,255,255,.85); border: 1px solid rgba(255,255,255,.25); border-radius: 8px; font-size: .9rem; cursor: pointer; transition: background .2s; } .btn-secondary:hover { background: rgba(255,255,255,.2); } .error-msg { color: #ff8a80; font-size: .85rem; min-height: 18px; text-align: center; } /* ── Auth bar ─────────────────────────────────── */ .auth-bar { display: flex; align-items: center; justify-content: space-between; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); border-radius: 8px; padding: 8px 12px; font-size: .82rem; gap: 8px; } .auth-status { color: rgba(255,255,255,.7); flex: 1; } .auth-bar-actions { display: flex; gap: 6px; flex-wrap: wrap; } .btn-text { background: none; border: 1px solid rgba(255,255,255,.25); border-radius: 6px; color: rgba(255,255,255,.85); cursor: pointer; font-size: .78rem; padding: 3px 8px; white-space: nowrap; transition: background .15s; } .btn-text:hover { background: rgba(255,255,255,.12); } /* ── Auth modal ───────────────────────────────── */ .auth-box { position: relative; min-width: min(340px, 90vw); } .btn-close { position: absolute; top: 10px; right: 14px; background: none; border: none; color: rgba(255,255,255,.5); font-size: 1.1rem; cursor: pointer; line-height: 1; } .btn-close:hover { color: #fff; } .auth-tabs { display: flex; gap: 8px; margin-bottom: 16px; } .auth-tab { flex: 1; padding: 8px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15); border-radius: 8px; color: rgba(255,255,255,.7); cursor: pointer; font-size: .9rem; transition: background .15s; } .auth-tab.active { background: var(--gold); border-color: var(--gold); color: #000; font-weight: 700; } .auth-panel { display: none; flex-direction: column; gap: 12px; } .auth-panel.active { display: flex; } /* ── Profile / Leaderboard ────────────────────── */ #screen-profile, #screen-leaderboard { justify-content: center; align-items: center; background: radial-gradient(ellipse at center, #1d6b3a 0%, #0c3a20 100%); overflow-y: auto; } .profile-wrap { display: flex; justify-content: center; align-items: center; width: 100%; padding: 20px; } .profile-box { background: rgba(0,0,0,.45); border: 1px solid rgba(255,255,255,.15); border-radius: 16px; padding: 32px 36px; width: min(440px, 96vw); display: flex; flex-direction: column; align-items: center; gap: 20px; position: relative; } .btn-back { align-self: flex-start; background: none; border: 1px solid rgba(255,255,255,.25); border-radius: 6px; color: rgba(255,255,255,.8); cursor: pointer; font-size: .85rem; padding: 4px 12px; transition: background .15s; } .btn-back:hover { background: rgba(255,255,255,.1); } .profile-avatar { font-size: 3rem; } .profile-name { font-size: 1.6rem; font-weight: 700; } .stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; width: 100%; } .stat-card { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); border-radius: 12px; padding: 16px 12px; display: flex; flex-direction: column; align-items: center; gap: 6px; } .stat-num { font-size: 2rem; font-weight: 700; color: var(--gold); } .stat-label { font-size: .75rem; color: rgba(255,255,255,.6); text-align: center; } .points-legend { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: 10px; padding: 14px 16px; width: 100%; } .points-legend h4 { font-size: .85rem; color: rgba(255,255,255,.6); margin-bottom: 8px; } .points-legend ul { list-style: none; display: flex; flex-direction: column; gap: 6px; } .points-legend li { font-size: .82rem; color: rgba(255,255,255,.75); } .points-legend strong { color: var(--heart-red); } .profile-section { width: 100%; border: 1px solid rgba(255,255,255,.12); border-radius: 10px; padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; } .admin-section { border-color: rgba(255,193,7,.3); } .admin-title { font-size: .9rem; color: var(--gold); margin: 0 0 4px; } .admin-row { display: flex; align-items: center; justify-content: space-between; font-size: .88rem; color: rgba(255,255,255,.8); } .btn-admin-toggle { font-size: .82rem; padding: 4px 12px; min-width: 90px; } /* ── Leaderboard ──────────────────────────────── */ .lb-table { width: 100%; border-collapse: collapse; font-size: .9rem; } .lb-table th { text-align: left; padding: 6px 10px; color: rgba(255,255,255,.5); font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; border-bottom: 1px solid rgba(255,255,255,.12); } .lb-table td { padding: 9px 10px; border-bottom: 1px solid rgba(255,255,255,.06); } .lb-table tr:last-child td { border-bottom: none; } .lb-rank { font-size: 1.1rem; width: 36px; } .lb-name { font-weight: 600; } .lb-top td { background: rgba(245,197,24,.06); } .lb-btn { background: none; border: 1px solid rgba(255,255,255,.2); color: rgba(255,255,255,.7); border-radius: 4px; font-size: .75rem; padding: 2px 8px; cursor: pointer; } .lb-btn:hover { background: rgba(255,255,255,.1); } /* ── Waiting Room ─────────────────────────────── */ #screen-waiting { justify-content: center; align-items: center; background: radial-gradient(ellipse at center, #1d6b3a 0%, #0c3a20 100%); } .waiting-box { background: rgba(0,0,0,.45); border: 1px solid rgba(255,255,255,.15); border-radius: 16px; padding: 24px 36px 32px; width: min(440px, 94vw); display: flex; flex-direction: column; gap: 20px; align-items: center; } .waiting-box .btn-leave-screen { align-self: flex-start; } .waiting-box h2 { font-size: 1.4rem; color: var(--heart-red); } .room-code-box { display: flex; align-items: center; gap: 12px; background: rgba(0,0,0,.3); border-radius: 10px; padding: 12px 20px; } .room-code-box .label { font-size: .8rem; color: rgba(255,255,255,.6); } .room-code { font-size: 1.8rem; font-weight: 800; letter-spacing: 4px; color: var(--gold); } .btn-copy { background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.3); color: #fff; border-radius: 6px; padding: 6px 10px; font-size: 1rem; cursor: pointer; } .btn-copy:hover { background: rgba(255,255,255,.25); } .hint { font-size: .82rem; color: rgba(255,255,255,.5); text-align: center; } .waiting-seats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; } .seat-slot { display: flex; flex-direction: column; align-items: center; gap: 4px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15); border-radius: 10px; padding: 12px; } .seat-slot.filled { background: rgba(229,57,53,.18); border-color: var(--heart-red); } .seat-num { font-size: .75rem; color: rgba(255,255,255,.4); } .seat-name { font-size: .9rem; font-weight: 600; } .waiting-status { color: rgba(255,255,255,.7); font-size: .9rem; } .btn-fill-bots { padding: 9px 18px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.25); border-radius: 8px; color: rgba(255,255,255,.85); cursor: pointer; font-size: .9rem; transition: background .15s; } .btn-fill-bots:hover { background: rgba(255,255,255,.18); } /* ── Game Screen layout ───────────────────────── */ #screen-game { flex-direction: column; height: 100vh; height: 100dvh; overflow: hidden; background: radial-gradient(ellipse at center, var(--felt-light) 0%, var(--felt) 50%, var(--felt-dark) 100%); } .btn-leave-screen { background: none; border: 1px solid rgba(255,255,255,.25); color: rgba(255,255,255,.7); border-radius: 6px; cursor: pointer; font-size: .78rem; padding: 4px 10px; white-space: nowrap; flex-shrink: 0; } .btn-leave-screen:hover { background: rgba(255,255,255,.1); color: #fff; } /* Info bar */ #info-bar { display: flex; align-items: center; justify-content: space-between; padding: 4px 16px; background: rgba(0,0,0,.35); border-bottom: 1px solid rgba(255,255,255,.1); flex-shrink: 0; font-size: .85rem; gap: 10px; order: 0; } #screen-game.info-bottom #info-bar { order: 10; border-top: 1px solid rgba(255,255,255,.1); border-bottom: none; } #screen-game.info-bottom #table-grid { order: 1; } #screen-game.info-bottom #my-area { order: 5; } #screen-game.info-bottom .game-menu-dropdown { top: auto; bottom: calc(100% + 6px); } #score-block { display: flex; flex-direction: column; align-items: center; gap: 2px; flex: 1; } #score-display { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: center; } .score-entry { display: flex; align-items: center; gap: 3px; font-size: .8rem; } .score-name { color: rgba(255,255,255,.6); font-size: .72rem; max-width: 60px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .score-val { font-size: 1rem; font-weight: 800; color: var(--gold); min-width: 20px; text-align: center; } .score-entry.my-score .score-name { color: rgba(255,255,255,.9); } .score-entry.my-score .score-val { color: #fff; } .score-entry.leading .score-val { color: var(--heart-red); } #hand-points-display { display: flex; align-items: center; gap: 4px; font-size: .68rem; color: rgba(255,255,255,.5); border-top: 1px solid rgba(255,255,255,.1); padding-top: 2px; justify-content: center; } .hp-entry { display: flex; gap: 2px; align-items: center; } .hp-name { color: rgba(255,255,255,.45); font-size: .65rem; } .hp-val { font-weight: 700; color: rgba(255,255,255,.75); min-width: 14px; text-align: center; } .hp-val.has-pts { color: var(--heart-red); } .hearts-broken { font-size: .75rem; color: var(--heart-red); background: rgba(229,57,53,.15); border: 1px solid rgba(229,57,53,.35); border-radius: 10px; padding: 2px 8px; white-space: nowrap; flex-shrink: 0; } .pass-dir-display { font-size: .78rem; color: rgba(255,255,255,.75); background: rgba(100,180,255,.15); border: 1px solid rgba(100,180,255,.3); border-radius: 10px; padding: 2px 8px; white-space: nowrap; flex-shrink: 0; } /* Hamburger menu */ .game-menu-wrap { position: relative; flex-shrink: 0; } .game-menu-dropdown { position: absolute; top: calc(100% + 6px); right: 0; background: #0e2235; border: 1px solid rgba(255,255,255,.18); border-radius: 10px; padding: 6px 0; min-width: 160px; z-index: 200; box-shadow: 0 8px 28px rgba(0,0,0,.55); display: flex; flex-direction: column; } .game-menu-dropdown.hidden { display: none; } .game-menu-item { background: none; border: none; color: rgba(255,255,255,.85); font-size: .85rem; padding: 10px 16px; text-align: left; cursor: pointer; white-space: nowrap; transition: background .12s; } .game-menu-item:hover { background: rgba(255,255,255,.1); } .game-menu-exit { color: rgba(255,140,140,.9); } .game-menu-exit:hover { background: rgba(200,50,50,.2); } .hidden { display: none !important; } .spectator-banner { text-align: center; padding: 6px; font-size: .8rem; background: rgba(0,0,0,.4); color: rgba(255,255,255,.6); border-bottom: 1px solid rgba(255,255,255,.08); flex-shrink: 0; } /* Table grid */ #table-grid { display: grid; grid-template-areas: "top top top" "left trick right"; grid-template-columns: 80px 1fr 80px; grid-template-rows: auto 1fr; flex: 1; min-height: 0; gap: 8px; padding: 8px; } .player-area { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; } .area-top { grid-area: top; flex-direction: row; align-items: center; justify-content: center; gap: 12px; padding: 4px 0; } .area-left { grid-area: left; } .area-right { grid-area: right; } #trick-area { grid-area: trick; } .player-label { display: flex; align-items: center; gap: 4px; font-size: .8rem; font-weight: 600; white-space: nowrap; background: rgba(0,0,0,.3); border-radius: 12px; padding: 3px 8px; } .player-label.vertical { flex-direction: column; font-size: .72rem; } .turn-dot { font-size: .6rem; color: #4fc3f7; animation: blink 1s infinite; } @keyframes blink { 0%,100% { opacity:1; } 50% { opacity:.25; } } .player-score-badge { font-size: .7rem; font-weight: 700; color: var(--gold); min-width: 18px; text-align: center; } .hand-pts-badge { font-size: .72rem; color: var(--heart-red); font-weight: 700; min-width: 18px; } /* Trick area */ #trick-area { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; } .trick-slot { width: var(--card-w); height: var(--card-h); display: flex; align-items: center; justify-content: center; } .trick-slot img { width: var(--card-w); height: var(--card-h); border-radius: 6px; box-shadow: var(--shadow); } .trick-middle-row { display: flex; align-items: center; gap: 4px; } .trick-center-info { width: 60px; text-align: center; } .phase-msg { font-size: .72rem; color: rgba(255,255,255,.6); line-height: 1.4; } .trick-winner-flash { animation: flash-win .6s ease-out; } @keyframes flash-win { 0% { filter: brightness(1.8); } 100% { filter: brightness(1); } } /* Opponent card piles */ .opp-cards { display: flex; flex-wrap: wrap; gap: 3px; justify-content: center; max-width: 140px; } .opp-cards.vertical { flex-direction: column; max-width: 36px; max-height: 200px; overflow: hidden; } .card-back { width: 36px; height: 52px; background: linear-gradient(135deg, #1565c0 0%, #0d47a1 50%, #1565c0 100%); border-radius: 4px; border: 1px solid rgba(255,255,255,.25); box-shadow: 0 1px 3px rgba(0,0,0,.4); } .opp-cards.vertical .card-back { width: 30px; height: 42px; } /* My hand */ #my-area { flex-shrink: 0; padding: 6px 12px 10px; background: rgba(0,0,0,.2); border-top: 1px solid rgba(255,255,255,.08); display: flex; flex-direction: column; gap: 6px; padding-bottom: calc(10px + env(safe-area-inset-bottom)); } #my-label { display: flex; align-items: center; gap: 6px; font-size: .82rem; font-weight: 600; } /* ── Hand display: scroll mode (default) ─────────────── */ .my-hand { display: flex; align-items: flex-end; gap: 4px; overflow-x: auto; overflow-y: visible; padding: 2px 0 4px; scrollbar-width: none; justify-content: safe center; } .my-hand::-webkit-scrollbar { display: none; } /* ── Hand display: fan/overlap mode (Hokm-style) ─────── */ .my-hand.fan-mode { gap: 0; overflow: visible; padding: 14px 4px 4px; justify-content: flex-start; } /* Allow cards to pop up above the hand area in fan mode */ #my-area.fan-active { overflow: visible; } /* ── Play mode / hand mode toggle buttons ─────────────── */ .btn-play-mode, .btn-hand-mode { margin-left: auto; padding: 2px 8px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); border-radius: 6px; color: rgba(255,255,255,.8); font-size: .72rem; cursor: pointer; white-space: nowrap; } .btn-play-mode:hover, .btn-hand-mode:hover { background: rgba(255,255,255,.22); } .btn-play-mode.drag-mode { background: rgba(100,200,100,.18); border-color: #66bb6a; color: #a5d6a7; } .btn-hand-mode.fan-mode { background: rgba(100,180,255,.18); border-color: rgba(100,180,255,.5); color: rgba(180,220,255,.9); } /* ── Card magnifier (drag mode with crowded hand) ─────── */ .card.magnified { transform: translateY(-34px) scale(1.5) !important; z-index: 50 !important; box-shadow: 0 14px 36px rgba(0,0,0,.75) !important; border: 2px solid #fff !important; transition: transform .1s, box-shadow .1s !important; } /* ── Drag ghost ───────────────────────────────────────── */ .drag-ghost { position: fixed; pointer-events: none; opacity: 0.92; z-index: 9999; transform: scale(1.15) rotate(-4deg); box-shadow: 0 12px 32px rgba(0,0,0,.7); border-radius: 6px; width: var(--card-w); height: var(--card-h); overflow: hidden; transition: none !important; } .drag-ghost img { width: 100%; height: 100%; display: block; } /* ── Drop-zone pulse when dragging ───────────────────── */ #trick-area { position: relative; } #trick-area.drag-active::before { content: ''; position: absolute; inset: -10px; border: 2px dashed rgba(255,255,255,.4); border-radius: 18px; pointer-events: none; animation: pulse-border .8s ease-in-out infinite alternate; } @keyframes pulse-border { from { opacity: .35; } to { opacity: 1; } } .card { width: var(--card-w); height: var(--card-h); flex-shrink: 0; cursor: pointer; border-radius: 6px; box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s; position: relative; } .card img { width: 100%; height: 100%; border-radius: 6px; display: block; } .card:hover { transform: translateY(-8px); box-shadow: 0 6px 16px rgba(0,0,0,.5); } .card.selected { transform: translateY(-12px); box-shadow: 0 0 0 3px var(--heart-red), 0 8px 20px rgba(0,0,0,.5); } .card.illegal { cursor: default; } /* Solid overlay keeps the card opaque so it never bleeds through fan neighbours */ .card.illegal::after { content: ''; position: absolute; inset: 0; background: rgba(0,0,0,.55); border-radius: 6px; pointer-events: none; } .card.illegal:hover { transform: none; box-shadow: var(--shadow); } .card.my-play { animation: play-out .3s ease-out forwards; } @keyframes play-out { to { transform: scale(.9); opacity: 0; } } /* ── Pass overlay ─────────────────────────────── */ .pass-box { max-height: 92vh; overflow-y: auto; width: min(500px, 96vw); } #pass-title { color: var(--heart-red); font-size: 1.2rem; margin-bottom: 4px; } .pass-hint { font-size: .82rem; color: var(--muted); margin-bottom: 8px; } /* One row per suit */ .pass-hand { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; width: 100%; } .pass-suit-row { display: flex; align-items: center; gap: 6px; } .pass-suit-label { font-size: 1.3rem; width: 28px; text-align: center; flex-shrink: 0; line-height: 1; } .pass-suit-label.suit-h, .pass-suit-label.suit-d { color: var(--heart-red); } .pass-suit-label.suit-c, .pass-suit-label.suit-s { color: #ddd; } .pass-suit-cards { display: flex; gap: 4px; flex-wrap: wrap; } .pass-hand .card { width: 58px; height: 82px; } .pass-hand .card img { width: 58px; height: 82px; } .pass-selected-row { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; } .pass-selected-label { font-size: .8rem; color: var(--muted); white-space: nowrap; } .pass-selected-preview { display: flex; gap: 6px; } .pass-selected-preview .card { width: 48px; height: 68px; } .pass-selected-preview .card img { width: 48px; height: 68px; } .pass-placeholder { width: 48px; height: 68px; border: 2px dashed rgba(255,255,255,.2); border-radius: 6px; } /* ── Overlays ─────────────────────────────────── */ .overlay { position: fixed; inset: 0; background: rgba(0,0,0,.7); display: flex; align-items: center; justify-content: center; z-index: 100; padding: 16px; } .overlay-box { background: rgba(10,28,20,.95); border: 1px solid rgba(255,255,255,.18); border-radius: 16px; padding: 28px 32px; display: flex; flex-direction: column; align-items: center; gap: 14px; max-width: 420px; width: 100%; text-align: center; } .overlay-box.small { max-width: 320px; padding: 24px; } .result-icon { font-size: 3rem; } .result-icon.big { font-size: 4rem; } .result-scores { display: flex; flex-direction: column; gap: 6px; width: 100%; } .result-row { display: flex; justify-content: space-between; align-items: center; padding: 6px 12px; background: rgba(255,255,255,.06); border-radius: 8px; font-size: .92rem; } .result-row.winner { background: rgba(245,197,24,.12); border: 1px solid rgba(245,197,24,.3); } .result-row.moon { background: rgba(229,57,53,.12); border: 1px solid rgba(229,57,53,.35); } .result-delta { font-weight: 700; } .result-delta.red { color: var(--heart-red); } .result-delta.gold { color: var(--gold); } .result-delta.zero { color: #69f0ae; } .gameover-scores { display: flex; flex-direction: column; gap: 6px; width: 100%; margin-bottom: 8px; } .go-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 14px; background: rgba(255,255,255,.06); border-radius: 8px; } .go-row.winner { background: rgba(245,197,24,.15); border: 1px solid rgba(245,197,24,.4); } .go-name { font-weight: 600; } .go-score { font-size: 1.3rem; font-weight: 800; color: var(--gold); } .go-row.winner .go-score { color: #fff; } .go-badge { font-size: .8rem; color: rgba(255,255,255,.5); margin-left: 6px; } /* Modal box (player details) */ .modal-box { background: rgba(10,28,20,.95); border: 1px solid rgba(255,255,255,.18); border-radius: 16px; padding: 24px 28px; width: min(360px, 95vw); display: flex; flex-direction: column; align-items: center; gap: 8px; } /* Spinner */ .spinner { width: 36px; height: 36px; border: 3px solid rgba(255,255,255,.15); border-top-color: var(--gold); border-radius: 50%; animation: spin .7s linear infinite; margin: 8px auto; } @keyframes spin { to { transform: rotate(360deg); } } /* ── Responsive ────────────────────────────────── */ @media (max-width: 400px) { .lobby-box { padding: 24px 20px; } .profile-box { padding: 24px 20px; } :root { --card-w: 56px; --card-h: 80px; } } @media (max-height: 600px) { :root { --card-w: 52px; --card-h: 74px; } #my-area { padding-bottom: 4px; } }