:root {
  color-scheme: dark;
  --bg: #061311;
  --surface: #0b211d;
  --surface-2: #102c27;
  --line: rgba(191, 236, 215, .12);
  --text: #f4fbf7;
  --muted: #8ca9a0;
  --mint: #66e7b4;
  --mint-2: #28bd8a;
  --gold: #ffc96b;
  --danger: #ff6978;
  --card-w: clamp(52px, 15.5vw, 74px);
  font-family: "Manrope", ui-sans-serif, system-ui, sans-serif;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { min-height: 100%; background: var(--bg); }
body { margin: 0; min-height: 100vh; overflow-x: hidden; color: var(--text); background: radial-gradient(circle at 50% -12%, #17493c 0, #0a211d 28%, #061311 62%); }
body::before, body::after { content: ""; position: fixed; z-index: -1; width: 240px; height: 240px; border-radius: 50%; filter: blur(90px); opacity: .14; pointer-events: none; }
body::before { top: 15%; left: -150px; background: #36ffbc; } body::after { right: -160px; bottom: 10%; background: #e8a42f; }
.noise { position: fixed; inset: 0; z-index: -1; opacity: .035; pointer-events: none; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E"); }
button, input { font: inherit; }
button { color: inherit; }
button:focus-visible, input:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; }
.hidden { display: none !important; }
.app-shell { width: min(100%, 620px); min-height: 100vh; margin: 0 auto; padding: max(14px, env(safe-area-inset-top)) 16px max(22px, env(safe-area-inset-bottom)); }
.topbar { display: flex; align-items: center; gap: 10px; min-height: 52px; margin-bottom: 15px; }
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 0; border: 0; text-align: left; background: none; cursor: pointer; }
.brand-mark { display: grid; flex: 0 0 39px; place-items: center; width: 39px; height: 39px; border-radius: 13px; color: #062019; background: linear-gradient(145deg, #88f7cc, #36c493); box-shadow: 0 9px 26px rgba(72, 221, 167, .2); font-size: 22px; font-weight: 900; }
.brand small, .brand strong { display: block; } .brand small { color: var(--mint); font-size: 8px; font-weight: 800; letter-spacing: .18em; } .brand strong { margin-top: 1px; font-size: 14px; }
.online-pill { margin-left: auto; padding: 7px 9px; border: 1px solid var(--line); border-radius: 99px; color: var(--muted); background: rgba(8, 29, 25, .68); font-size: 9px; white-space: nowrap; }
.online-pill i, .connection::before, .opponent-profile small i { display: inline-block; width: 6px; height: 6px; margin-right: 5px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 8px var(--mint); }
.profile-chip { display: flex; align-items: center; gap: 6px; max-width: 105px; padding: 4px 8px 4px 4px; overflow: hidden; border: 1px solid var(--line); border-radius: 99px; background: rgba(11, 34, 29, .85); font-size: 10px; }
.profile-chip > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile-avatar { display: grid; flex: 0 0 27px; place-items: center; width: 27px; height: 27px; border-radius: 50%; color: #092019; background: linear-gradient(145deg, #ffd884, #efa64f); font-weight: 900; }
.view { animation: view-in .28s ease both; } @keyframes view-in { from { opacity: 0; transform: translateY(8px); } }
.hero-card { position: relative; min-height: 323px; padding: 24px; overflow: hidden; border: 1px solid rgba(137, 237, 198, .16); border-radius: 30px; background: radial-gradient(circle at 85% 10%, rgba(107, 238, 189, .18), transparent 32%), linear-gradient(145deg, rgba(20, 64, 54, .96), rgba(9, 35, 30, .98)); box-shadow: 0 24px 70px rgba(0, 0, 0, .32); transition: background .3s ease, border-color .3s ease; }
.hero-card.transfer-mode { border-color: rgba(255, 201, 107, .2); background: radial-gradient(circle at 85% 10%, rgba(255, 201, 107, .18), transparent 32%), linear-gradient(145deg, rgba(66, 48, 25, .96), rgba(27, 31, 25, .98)); }.hero-card.transfer-mode h1 em { color: var(--gold); }
.hero-card.poker-mode { border-color: rgba(102, 165, 255, .22); background: radial-gradient(circle at 85% 10%, rgba(81, 151, 255, .2), transparent 34%), linear-gradient(145deg, rgba(22, 49, 72, .98), rgba(10, 26, 38, .98)); }.hero-card.poker-mode h1 em { color: #70b8ff; }
.hero-card.blackjack-mode { border-color: rgba(255, 102, 120, .22); background: radial-gradient(circle at 85% 10%, rgba(255, 83, 109, .18), transparent 34%), linear-gradient(145deg, rgba(70, 27, 37, .98), rgba(31, 20, 25, .98)); }.hero-card.blackjack-mode h1 em { color: #ff7187; }
.hero-card.mode-changing .hero-copy { animation: mode-copy .28s ease both; } @keyframes mode-copy { 0% { opacity: .25; transform: translateX(18px); } 100% { opacity: 1; transform: translateX(0); } }
.hero-glow { position: absolute; width: 220px; height: 220px; right: -90px; top: -110px; border-radius: 50%; background: var(--mint); filter: blur(80px); opacity: .12; }
.hero-copy { position: relative; z-index: 2; max-width: 76%; }
.eyebrow { color: #b6e8d5; font-size: 9px; font-weight: 700; letter-spacing: .04em; } .eyebrow i { display: inline-block; width: 6px; height: 6px; margin-right: 5px; border-radius: 50%; background: var(--mint); }
.hero-card h1 { margin: 17px 0 12px; font-size: clamp(32px, 10vw, 48px); line-height: .98; letter-spacing: -.055em; } .hero-card h1 em { color: var(--mint); font-style: normal; }
.hero-card p { max-width: 340px; margin: 0; color: #a7bdb5; font-size: 12px; line-height: 1.55; }
.button { min-height: 49px; padding: 0 20px; border: 0; border-radius: 15px; font-weight: 800; cursor: pointer; transition: transform .16s ease, filter .16s ease; } .button:active { transform: scale(.98); }
.button:disabled { cursor: default; filter: saturate(.45) brightness(.78); box-shadow: none; }
.button-primary { color: #062019; background: linear-gradient(135deg, #79efbf, #37c493); box-shadow: 0 12px 28px rgba(49, 204, 150, .18); }
.button-secondary { color: var(--text); border: 1px solid var(--line); background: #163b33; }
.button-large { position: absolute; z-index: 3; left: 24px; right: 24px; bottom: 24px; display: flex; align-items: center; gap: 11px; height: 62px; text-align: left; }
.button-large span:nth-child(2) { display: flex; flex-direction: column; } .button-large small { margin-top: 1px; opacity: .7; font-size: 9px; font-weight: 600; } .button-icon { font-size: 20px; } .arrow { margin-left: auto; font-size: 22px; }
.card-swipe-zone { --drag-x: 0px; --drag-rotate: 0deg; --zone-scale: 1; position: absolute; z-index: 4; right: 0; top: 62px; width: 142px; height: 143px; touch-action: pan-y; cursor: grab; user-select: none; transform: translateX(var(--drag-x)) rotate(var(--drag-rotate)) scale(var(--zone-scale)); transition: transform .28s cubic-bezier(.2,.8,.2,1), opacity .2s ease; }.card-swipe-zone:active, .card-swipe-zone.dragging { cursor: grabbing; }.card-swipe-zone.dragging { transition: none; }.card-swipe-zone:focus-visible { outline: 0; }.card-swipe-zone:focus-visible .floating-card { box-shadow: 0 0 0 2px var(--mint), 0 16px 26px rgba(0,0,0,.26); }
.floating-card { position: absolute; z-index: 1; right: 10px; top: 10px; width: 64px; height: 91px; padding: 8px; border-radius: 10px; color: #14211d; background: linear-gradient(145deg, #fff, #dce9e3); box-shadow: 0 16px 26px rgba(0,0,0,.26); transform: rotate(15deg); font-weight: 900; pointer-events: none; }
.floating-card b { display: block; font-size: 23px; } .floating-card.card-two { right: 54px; top: 24px; transform: rotate(-12deg); }.floating-card.red { color: #d93d56; }.card-swipe-cue { position: absolute; right: 13px; bottom: 4px; padding: 4px 7px; border-radius: 99px; color: #9cb9af; background: rgba(4, 22, 18, .58); font-size: 7px; font-weight: 700; letter-spacing: .08em; pointer-events: none; backdrop-filter: blur(6px); }.transfer-mode .card-swipe-cue { color: #e9c27d; }.poker-mode .card-swipe-cue { color: #8fc5ff; }.blackjack-mode .card-swipe-cue { color: #ff91a2; }
.stats-row { display: grid; grid-template-columns: repeat(3, 1fr); margin: 12px 0 22px; padding: 13px 4px; border: 1px solid var(--line); border-radius: 20px; background: rgba(9, 30, 26, .76); }
.stats-row div { text-align: center; border-right: 1px solid var(--line); } .stats-row div:last-child { border: 0; } .stats-row small, .stats-row b { display: block; } .stats-row small { color: var(--muted); font-size: 9px; } .stats-row b { margin-top: 3px; font-size: 16px; }
.section-head { display: flex; align-items: center; justify-content: space-between; margin: 0 2px 11px; } .section-head h2 { margin: 0; font-size: 16px; } .connection { color: var(--muted); font-size: 9px; } .connection.offline::before { background: var(--danger); box-shadow: none; }
.play-head { margin-top: 20px; }
.action-grid { display: grid; gap: 9px; }
.action-card { display: grid; grid-template-columns: 46px 1fr auto; align-items: center; gap: 13px; min-height: 74px; padding: 12px 15px; border: 1px solid var(--line); border-radius: 19px; text-align: left; background: rgba(12, 39, 33, .76); cursor: pointer; }
.action-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; color: var(--mint); background: rgba(94, 229, 177, .1); font-size: 22px; font-weight: 800; }
.action-card.join .action-icon { color: #ffc86b; background: rgba(255, 194, 97, .1); } .action-card.bot .action-icon { color: #94c6ff; background: rgba(106, 176, 255, .1); }
.action-card b, .action-card small { display: block; } .action-card b { font-size: 13px; } .action-card small { margin-top: 3px; color: var(--muted); font-size: 9px; } .chevron { color: #6f8c83; font-size: 26px; font-weight: 300; }
.season-card { display: grid; grid-template-columns: 46px 1fr auto; align-items: center; gap: 12px; margin-top: 12px; padding: 15px; border: 1px solid rgba(255, 201, 107, .13); border-radius: 20px; background: linear-gradient(120deg, rgba(73, 53, 26, .35), rgba(19, 37, 31, .7)); }
.season-icon { display: grid; place-items: center; width: 45px; height: 45px; border-radius: 14px; background: rgba(255, 201, 107, .1); } .season-card small { color: var(--gold); font-size: 8px; letter-spacing: .12em; } .season-card b { display: block; margin: 2px 0; font-size: 12px; } .season-card p { margin: 0; color: var(--muted); font-size: 8px; } .soon { padding: 5px 7px; border-radius: 8px; color: var(--gold); background: rgba(255, 201, 107, .09); font-size: 8px; }
footer { display: flex; justify-content: center; align-items: center; gap: 8px; padding: 18px 0 2px; color: #69827a; font-size: 8px; text-transform: uppercase; letter-spacing: .09em; } footer i { width: 3px; height: 3px; border-radius: 50%; background: #456058; }
.back-button { padding: 8px 0; border: 0; color: var(--muted); background: none; cursor: pointer; } .back-button span { margin-left: 5px; font-size: 11px; }
.waiting-view { padding: 22px 4px 0; text-align: center; } .room-badge { display: inline-block; margin-top: 30px; padding: 7px 10px; border-radius: 99px; color: var(--mint); background: rgba(91, 226, 175, .09); font-size: 8px; font-weight: 800; letter-spacing: .14em; }
.waiting-view h2 { margin: 16px 0 7px; font-size: 30px; letter-spacing: -.04em; } .waiting-view > p { margin: 0 auto 22px; max-width: 290px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.room-code { width: min(100%, 350px); padding: 18px; border: 1px dashed rgba(103, 231, 181, .35); border-radius: 22px; background: rgba(11, 42, 35, .78); cursor: pointer; } .room-code small, .room-code strong, .room-code span { display: block; } .room-code small { color: var(--muted); font-size: 8px; letter-spacing: .16em; } .room-code strong { margin: 8px 0 5px; color: var(--mint); font-size: 30px; letter-spacing: .18em; } .room-code span { color: #638279; font-size: 8px; }
.players-line { display: flex; align-items: center; justify-content: center; gap: 25px; margin: 32px 0; } .player-slot { width: 92px; } .player-slot > span { display: grid; place-items: center; width: 66px; height: 66px; margin: 0 auto 9px; border: 2px solid var(--mint); border-radius: 50%; color: #09221b; background: linear-gradient(145deg, #ffd984, #e8a849); font-size: 21px; font-weight: 900; } .player-slot b, .player-slot small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .player-slot b { font-size: 11px; } .player-slot small { margin-top: 3px; color: var(--mint); font-size: 8px; }
.player-slot.searching > span { border: 1px dashed #57746b; background: rgba(78, 111, 101, .08); } .player-slot.searching small { color: var(--muted); } .radar { position: relative; } .radar::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--mint); animation: pulse 1.5s infinite; } @keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(102,231,180,.35); } 50% { box-shadow: 0 0 0 17px transparent; } }
.versus { width: 34px; height: 34px; padding-top: 9px; border: 1px solid var(--line); border-radius: 50%; color: var(--muted); font-size: 9px; font-weight: 800; }
.waiting-view > .button { width: min(100%, 350px); } .wait-note { margin-top: 16px; color: var(--muted); font-size: 9px; } .wait-note span { color: var(--mint); }
.game-view { min-height: 0; display: flex; flex-direction: column; }
.game-top { display: flex; align-items: center; gap: 11px; margin-bottom: 11px; }.round-button { width: 37px; height: 37px; border: 1px solid var(--line); border-radius: 12px; color: var(--muted); background: #0b2721; font-size: 22px; cursor: pointer; }.opponent-profile { display: flex; align-items: center; gap: 9px; }.avatar { display: grid; place-items: center; width: 39px; height: 39px; border-radius: 50%; color: #11231d; background: linear-gradient(145deg, #c5d9d1, #789c8f); font-weight: 900; }.bot-face { color: #d7ecff; background: linear-gradient(145deg, #3f789e, #1e405b); }.opponent-profile b, .opponent-profile small { display: block; }.opponent-profile b { max-width: 135px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }.opponent-profile small { margin-top: 2px; color: var(--muted); font-size: 8px; }.room-mini { margin-left: auto; padding: 7px 8px; border: 1px solid var(--line); border-radius: 9px; color: #6f9186; background: transparent; font-size: 7px; letter-spacing: .08em; }
.game-table { position: relative; flex: 0 0 auto; height: clamp(300px, 42vh, 390px); min-height: 300px; overflow: hidden; border: 1px solid rgba(136, 226, 192, .14); border-radius: 25px; background: radial-gradient(circle at 50% 42%, #175947 0%, #0d4034 54%, #082c25 100%); box-shadow: inset 0 0 60px rgba(0,0,0,.2), 0 16px 38px rgba(0,0,0,.15); }.felt-lines { position: absolute; inset: 10px; border: 1px solid rgba(180, 242, 216, .07); border-radius: 19px; }.turn-pill { position: absolute; z-index: 3; left: 15px; top: 15px; max-width: 66%; padding: 7px 10px; border-radius: 99px; color: #c9f8e5; background: rgba(7, 31, 26, .56); font-size: 9px; font-weight: 700; backdrop-filter: blur(8px); }.deck-stack { position: absolute; z-index: 3; right: 16px; top: 14px; text-align: right; }.deck-stack span, .deck-stack small { display: block; }.deck-stack span { font-size: 16px; font-weight: 800; }.deck-stack small { color: var(--muted); font-size: 7px; }.trump-badge { position: absolute; z-index: 3; right: 15px; bottom: 13px; color: #a6c2b8; font-size: 8px; }.battlefield { position: absolute; inset: 51px 18px 27px; display: grid; grid-template-columns: repeat(3, minmax(55px, 1fr)); gap: 13px 7px; align-content: center; justify-items: center; }.pair { position: relative; width: var(--card-w); height: calc(var(--card-w) * 1.42); }.pair .playing-card.cover { position: absolute; left: 12px; top: 13px; transform: rotate(9deg); }
.game-actions { display: flex; justify-content: center; gap: 9px; min-height: 60px; padding-top: 9px; }.game-actions .button { min-width: 115px; }.your-label { display: flex; justify-content: space-between; padding: 3px 8px 0; color: #68877d; font-size: 7px; letter-spacing: .1em; }.your-label small { letter-spacing: 0; }.hand { display: flex; justify-content: center; min-height: 106px; padding: 8px 7px 0; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }.hand::-webkit-scrollbar { display: none; }
.playing-card { flex: 0 0 var(--card-w); width: var(--card-w); height: calc(var(--card-w) * 1.42); margin-left: calc(var(--card-w) * -.19); padding: 7px; border: 0; border-radius: 10px; color: #14201c; background: linear-gradient(150deg, #fff, #e4eee9); box-shadow: 0 9px 18px rgba(0,0,0,.28); text-align: left; font-weight: 900; transition: transform .18s ease, filter .18s ease; animation: card-in .25s ease both; }.playing-card:first-child { margin-left: 0; }.playing-card.red { color: #d93853; }.playing-card.playable { cursor: pointer; }.playing-card.playable:hover, .playing-card.playable:focus { transform: translateY(-11px); }.playing-card:not(.playable) { filter: brightness(.74) saturate(.8); }.card-rank { display: block; font-size: 17px; line-height: 1; }.card-suit { display: block; margin-top: 2px; font-size: 17px; line-height: 1; } @keyframes card-in { from { opacity: 0; transform: translateY(18px); } }
.sheet-backdrop { position: fixed; inset: 0; z-index: 30; display: flex; align-items: flex-end; justify-content: center; padding: 16px; background: rgba(2, 10, 8, .75); backdrop-filter: blur(7px); }.sheet { position: relative; width: min(100%, 480px); padding: 30px 23px max(23px, env(safe-area-inset-bottom)); border: 1px solid var(--line); border-radius: 28px; text-align: center; background: #0c2721; animation: sheet-in .25s ease both; } @keyframes sheet-in { from { transform: translateY(30px); opacity: 0; } }.sheet-close { position: absolute; top: 13px; right: 13px; width: 34px; height: 34px; border: 0; border-radius: 11px; color: var(--muted); background: rgba(255,255,255,.04); font-size: 21px; }.sheet-icon { display: grid; place-items: center; width: 54px; height: 54px; margin: 0 auto; border-radius: 17px; color: var(--gold); background: rgba(255, 201, 107, .1); font-size: 25px; font-weight: 900; }.sheet h2 { margin: 15px 0 6px; font-size: 23px; }.sheet p { margin: 0 auto 19px; max-width: 300px; color: var(--muted); font-size: 10px; line-height: 1.5; }.code-input { width: 100%; height: 61px; margin-bottom: 12px; border: 1px solid rgba(103, 231, 181, .25); border-radius: 17px; color: var(--mint); background: #081d19; text-align: center; text-transform: uppercase; font-size: 23px; font-weight: 800; letter-spacing: .22em; }.sheet .button { width: 100%; }.result-sheet > small { color: var(--mint); font-size: 8px; letter-spacing: .15em; }.result-orbit { display: grid; place-items: center; width: 78px; height: 78px; margin: 0 auto 14px; border: 1px solid rgba(102, 231, 180, .2); border-radius: 50%; background: radial-gradient(circle, rgba(102,231,180,.17), transparent 70%); font-size: 37px; }.text-button { margin-top: 13px; padding: 9px; border: 0; color: var(--muted); background: none; cursor: pointer; }
.profile-sheet { max-height: min(90vh, 760px); overflow-y: auto; padding-top: 24px; text-align: left; }
.profile-hero { display: flex; align-items: center; gap: 14px; padding-right: 35px; }
.profile-big-avatar { display: grid; flex: 0 0 62px; place-items: center; width: 62px; height: 62px; border: 2px solid var(--mint); border-radius: 20px; color: #092019; background: linear-gradient(145deg, #ffd984, #e8a849); font-size: 23px; font-weight: 900; }
.profile-hero small { color: var(--mint); font-size: 7px; letter-spacing: .13em; }.profile-hero h2 { margin: 2px 0 5px; font-size: 21px; }
.rank-badge { display: inline-block; padding: 4px 8px; border-radius: 99px; color: var(--gold); background: rgba(255, 201, 107, .1); font-size: 8px; font-weight: 800; }
.rank-progress { margin: 18px 0 12px; padding: 12px; border: 1px solid var(--line); border-radius: 15px; background: rgba(5, 23, 19, .55); }.rank-progress > div:first-child { display: flex; justify-content: space-between; margin-bottom: 8px; color: var(--muted); font-size: 8px; }.progress-track { height: 5px; overflow: hidden; border-radius: 99px; background: #16352e; }.progress-track i { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--mint-2), var(--mint)); transition: width .35s ease; }
.profile-stats { display: grid; grid-template-columns: repeat(3, 1fr); margin-bottom: 20px; padding: 12px 0; border: 1px solid var(--line); border-radius: 16px; }.profile-stats div { text-align: center; border-right: 1px solid var(--line); }.profile-stats div:last-child { border: 0; }.profile-stats b, .profile-stats small { display: block; }.profile-stats b { font-size: 15px; }.profile-stats small { margin-top: 2px; color: var(--muted); font-size: 7px; }
.profile-section-title { display: flex; align-items: center; justify-content: space-between; margin: 18px 2px 9px; }.profile-section-title h3 { margin: 0; font-size: 13px; }.profile-section-title span { color: var(--muted); font-size: 7px; }
.achievement-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }.achievement { display: grid; grid-template-columns: 34px 1fr; gap: 9px; min-height: 66px; padding: 10px; border: 1px solid var(--line); border-radius: 14px; background: rgba(8, 30, 25, .65); }.achievement-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; background: rgba(102, 231, 180, .1); font-size: 17px; }.achievement b, .achievement small { display: block; }.achievement b { font-size: 9px; }.achievement small { margin-top: 3px; color: var(--muted); font-size: 7px; line-height: 1.3; }.achievement.locked { opacity: .42; filter: grayscale(.8); }.achievement.unlocked { border-color: rgba(102, 231, 180, .25); }
.settings-list { overflow: hidden; border: 1px solid var(--line); border-radius: 17px; }.settings-list > label, .sort-setting { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 58px; padding: 10px 13px; border-bottom: 1px solid var(--line); }.settings-list > :last-child { border-bottom: 0; }.settings-list b, .settings-list small { display: block; }.settings-list b { font-size: 10px; }.settings-list small { margin-top: 2px; color: var(--muted); font-size: 7px; }.settings-list label { cursor: pointer; }.settings-list input { position: absolute; opacity: 0; pointer-events: none; }.settings-list label > i { position: relative; flex: 0 0 37px; width: 37px; height: 21px; border-radius: 99px; background: #23453c; transition: background .2s ease; }.settings-list label > i::after { content: ""; position: absolute; left: 3px; top: 3px; width: 15px; height: 15px; border-radius: 50%; background: #8aa69d; transition: transform .2s ease, background .2s ease; }.settings-list input:checked + i { background: var(--mint-2); }.settings-list input:checked + i::after { background: white; transform: translateX(16px); }
.sort-setting { align-items: flex-start; flex-direction: column; }.sort-setting > div:last-child { display: grid; grid-template-columns: 1fr 1fr; width: 100%; padding: 3px; border-radius: 11px; background: #071d18; }.sort-setting button { padding: 7px; border: 0; border-radius: 8px; color: var(--muted); background: transparent; font-size: 8px; cursor: pointer; }.sort-setting button.active { color: #082019; background: var(--mint); font-weight: 800; }
.reduce-animations *, .reduce-animations *::before, .reduce-animations *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
.desktop-game-info, .desktop-tools, .desktop-seats, .desktop-feed, .desktop-rules { display: none; }
.toast { position: fixed; z-index: 50; left: 50%; bottom: max(24px, env(safe-area-inset-bottom)); width: max-content; max-width: calc(100% - 32px); padding: 11px 15px; border: 1px solid var(--line); border-radius: 13px; color: #dff7ed; background: rgba(8, 34, 28, .96); box-shadow: 0 12px 35px rgba(0,0,0,.34); transform: translateX(-50%); font-size: 10px; }
@media (min-width: 700px) { .app-shell { padding-top: 24px; } .hero-card { min-height: 350px; } }
@media (min-width: 900px) and (orientation: landscape) {
  body.desktop-table-mode { overflow: hidden; background: #080403; }
  .desktop-table-mode .app-shell { width: 100%; max-width: none; min-height: 100vh; padding: 0; }
  .desktop-table-mode .topbar { display: none; }
  .desktop-table-mode #onlineGame { --card-w: clamp(64px, 5.1vw, 88px); position: fixed; z-index: 20; inset: 0; display: block; min-height: 100vh; overflow: hidden; background: #090504 url("/assets/desktop-table-v1.webp") center / cover no-repeat; }
  .desktop-table-mode #onlineGame::before { content: ""; position: absolute; z-index: 0; inset: 0; pointer-events: none; background: radial-gradient(ellipse at center, transparent 25%, rgba(4, 2, 2, .16) 67%, rgba(3, 2, 2, .64) 100%); }
  .desktop-table-mode .desktop-game-info { position: absolute; z-index: 12; left: 22px; top: 20px; display: flex; align-items: center; gap: 12px; min-width: 220px; padding: 11px 15px; border: 1px solid rgba(232, 181, 102, .28); border-radius: 17px; background: rgba(9, 6, 6, .78); box-shadow: 0 12px 35px rgba(0,0,0,.3); backdrop-filter: blur(12px); }
  .desktop-game-mark { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid rgba(241, 190, 104, .3); border-radius: 13px; color: var(--gold); background: rgba(255, 194, 91, .07); font-size: 24px; }.desktop-game-info div > * { display: block; }.desktop-game-info small { color: #c59455; font-size: 7px; letter-spacing: .15em; }.desktop-game-info b { margin: 1px 0; font-family: Georgia, serif; font-size: 17px; }.desktop-game-info div > span { color: #9c9188; font-size: 8px; }
  .desktop-table-mode .desktop-tools { position: absolute; z-index: 13; right: 79px; top: 20px; display: flex; gap: 7px; padding: 6px; border: 1px solid rgba(255,255,255,.12); border-radius: 15px; background: rgba(8, 7, 8, .78); backdrop-filter: blur(12px); }.desktop-tools button { width: 40px; height: 40px; padding: 0; border: 0; border-radius: 10px; color: white; background: rgba(255,255,255,.04); font-size: 17px; cursor: pointer; }.desktop-tools button:hover { background: rgba(255,255,255,.1); }
  .desktop-table-mode .game-top { position: static; margin: 0; }.desktop-table-mode .game-top .opponent-profile, .desktop-table-mode .game-top .room-mini { display: none; }.desktop-table-mode .game-top .round-button { position: absolute; z-index: 14; right: 22px; top: 26px; width: 46px; height: 46px; border-color: rgba(255, 74, 91, .45); color: #ff7180; background: rgba(80, 7, 17, .58); }
  .desktop-table-mode .desktop-seats { position: absolute; z-index: 7; inset: 0; display: block; pointer-events: none; }.desktop-seat { position: absolute; left: var(--seat-x); top: var(--seat-y); display: flex; align-items: center; gap: 9px; min-width: 135px; padding: 7px 11px 7px 7px; border: 1px solid rgba(255,255,255,.13); border-radius: 99px; background: rgba(7, 7, 8, .76); box-shadow: 0 10px 25px rgba(0,0,0,.35); transform: translate(-50%, -50%); backdrop-filter: blur(10px); }.desktop-seat.self { border-color: rgba(255, 202, 108, .5); box-shadow: 0 0 24px rgba(255, 187, 79, .13); }.desktop-seat-avatar { display: grid; flex: 0 0 42px; place-items: center; width: 42px; height: 42px; border: 2px solid #cfa45d; border-radius: 50%; color: #1a130b; background: linear-gradient(145deg, #ffe19c, #c98b3f); font-weight: 900; }.desktop-seat-copy b, .desktop-seat-copy small { display: block; max-width: 105px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.desktop-seat-copy b { font-size: 10px; }.desktop-seat-copy small { margin-top: 2px; color: #b8aaa0; font-size: 7px; }.desktop-seat-dot { display: inline-block; width: 5px; height: 5px; margin-right: 4px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 7px var(--mint); }
  .desktop-table-mode .game-table { position: absolute; z-index: 4; inset: 0; min-height: 100vh; overflow: visible; border: 0; border-radius: 0; background: transparent; box-shadow: none; }.desktop-table-mode .felt-lines { display: none; }.desktop-table-mode .turn-pill { left: 50%; top: 24%; max-width: 360px; padding: 8px 14px; border: 1px solid rgba(255, 201, 107, .2); color: #ffe4b4; background: rgba(22, 8, 8, .7); transform: translateX(-50%); font-size: 10px; }.desktop-table-mode .battlefield { inset: 32% auto auto 50%; width: min(42vw, 550px); min-height: 250px; grid-template-columns: repeat(3, var(--card-w)); gap: 18px 24px; align-content: start; transform: translateX(-50%); }.desktop-table-mode .pair { width: var(--card-w); height: calc(var(--card-w) * 1.42); }.desktop-table-mode .deck-stack { right: 15%; top: 42%; display: grid; place-items: center; width: 76px; height: 102px; border: 2px solid rgba(225, 179, 96, .38); border-radius: 12px; color: #ffe4af; background: repeating-linear-gradient(135deg, #152238 0 5px, #0b1220 5px 10px); box-shadow: 7px 7px 0 #090d15, 11px 11px 0 rgba(223, 176, 89, .2), 0 13px 35px rgba(0,0,0,.45); text-align: center; }.desktop-table-mode .deck-stack span { font-size: 20px; }.desktop-table-mode .deck-stack small { color: #c7ae86; }.desktop-table-mode .trump-badge { right: 14.5%; bottom: 31%; padding: 7px 10px; border-radius: 9px; color: #fff0cf; background: rgba(16, 8, 8, .72); font-size: 9px; }
  .desktop-table-mode .game-actions { position: absolute; z-index: 15; left: 50%; bottom: 142px; min-height: auto; padding: 0; transform: translateX(-50%); }.desktop-table-mode .game-actions .button { min-width: 132px; height: 48px; border-radius: 12px; text-transform: uppercase; font-size: 11px; letter-spacing: .04em; }.desktop-table-mode .game-actions .button-primary { color: #fff4dd; border: 1px solid #e9b95d; background: linear-gradient(180deg, rgba(113, 76, 28, .96), rgba(62, 34, 13, .98)); box-shadow: 0 0 22px rgba(245, 186, 77, .25); }.desktop-table-mode .game-actions .button-secondary { border-color: rgba(255, 81, 96, .6); background: linear-gradient(180deg, rgba(120, 16, 28, .95), rgba(64, 7, 14, .98)); }
  .desktop-table-mode .your-label { display: none; }.desktop-table-mode .hand { position: absolute; z-index: 12; left: 50%; bottom: 24px; align-items: flex-end; width: min(64vw, 850px); min-height: 145px; padding: 16px 20px 0; overflow: visible; transform: translateX(-50%); }.desktop-table-mode .hand .playing-card { margin-left: clamp(-25px, -1.5vw, -12px); transform: rotate(calc(var(--fan-offset, 0) * 2.2deg)) translateY(calc(var(--fan-lift, 0) * 1px)); transform-origin: 50% 150%; }.desktop-table-mode .hand .playing-card:first-child { margin-left: 0; }.desktop-table-mode .hand .playing-card.playable:hover, .desktop-table-mode .hand .playing-card.playable:focus { z-index: 20; filter: drop-shadow(0 0 10px rgba(255, 199, 102, .75)); transform: translateY(-24px) rotate(0); }
  .desktop-table-mode .desktop-feed { position: absolute; z-index: 10; left: 22px; bottom: 22px; display: block; width: 245px; min-height: 98px; padding: 12px 14px; border: 1px solid rgba(255,255,255,.12); border-radius: 15px; background: rgba(6, 7, 9, .78); backdrop-filter: blur(12px); }.desktop-feed div { display: flex; gap: 15px; border-bottom: 1px solid rgba(255,255,255,.08); }.desktop-feed div b, .desktop-feed div span { padding-bottom: 7px; font-size: 8px; }.desktop-feed div b { color: var(--gold); border-bottom: 1px solid var(--gold); }.desktop-feed div span { color: #817872; }.desktop-feed p { margin: 10px 0 0; color: #c2b8b0; font-size: 8px; line-height: 1.5; }
  .desktop-table-mode .desktop-rules { position: absolute; z-index: 10; right: 22px; bottom: 22px; display: block; width: 250px; padding: 13px 15px; border: 1px solid rgba(255,255,255,.12); border-radius: 15px; background: rgba(6, 7, 9, .78); backdrop-filter: blur(12px); }.desktop-rules b { font-family: Georgia, serif; font-size: 12px; }.desktop-rules ul { margin: 9px 0 0; padding-left: 15px; color: #c2b8b0; font-size: 8px; line-height: 1.55; }
}
@media (min-width: 900px) {
  body.desktop-table-mode { overflow: auto; background: radial-gradient(circle at 50% -12%, #17493c 0, #0a211d 28%, #061311 62%); }
  .desktop-table-mode .app-shell { width: min(100%, 920px); max-width: 920px; min-height: 100vh; padding: 24px 24px 32px; }
  .desktop-table-mode .topbar { display: flex; }
  .desktop-table-mode #onlineGame { --card-w: 76px; position: static; inset: auto; z-index: auto; display: flex; width: min(100%, 780px); min-height: 0; margin: 0 auto; overflow: visible; background: none; }
  .desktop-table-mode #onlineGame::before, .desktop-table-mode .desktop-game-info, .desktop-table-mode .desktop-tools, .desktop-table-mode .desktop-seats, .desktop-table-mode .desktop-feed, .desktop-table-mode .desktop-rules { display: none; }
  .desktop-table-mode .game-top { position: static; margin-bottom: 12px; }
  .desktop-table-mode .game-top .opponent-profile { display: flex; }
  .desktop-table-mode .game-top .room-mini { display: block; }
  .desktop-table-mode .game-top .round-button { position: static; width: 40px; height: 40px; color: var(--muted); border-color: var(--line); background: #0b2721; }
  .desktop-table-mode .game-table { position: relative; inset: auto; z-index: auto; flex: 0 0 auto; width: 100%; height: min(42vh, 380px); min-height: 330px; overflow: hidden; border: 1px solid rgba(136, 226, 192, .14); border-radius: 28px; background: radial-gradient(circle at 50% 42%, #175947 0%, #0d4034 54%, #082c25 100%); box-shadow: inset 0 0 70px rgba(0,0,0,.22), 0 18px 44px rgba(0,0,0,.18); }
  .desktop-table-mode .felt-lines { display: block; }
  .desktop-table-mode .turn-pill { left: 18px; top: 18px; max-width: 60%; padding: 8px 12px; color: #c9f8e5; border: 0; background: rgba(7, 31, 26, .62); transform: none; font-size: 10px; }
  .desktop-table-mode .battlefield { inset: 58px 90px 34px; width: auto; min-height: 0; grid-template-columns: repeat(3, minmax(76px, 1fr)); gap: 18px 12px; align-content: center; transform: none; }
  .desktop-table-mode .pair { width: var(--card-w); height: calc(var(--card-w) * 1.42); }
  .desktop-table-mode .deck-stack { right: 20px; top: 18px; display: block; width: auto; height: auto; border: 0; border-radius: 0; color: var(--text); background: none; box-shadow: none; text-align: right; }
  .desktop-table-mode .deck-stack span { font-size: 18px; }
  .desktop-table-mode .deck-stack small { color: var(--muted); }
  .desktop-table-mode .trump-badge { right: 18px; bottom: 16px; padding: 0; color: #a6c2b8; background: none; font-size: 9px; }
  .desktop-table-mode .game-actions { position: static; z-index: auto; min-height: 62px; padding-top: 10px; transform: none; }
  .desktop-table-mode .game-actions .button { min-width: 132px; height: 49px; border-radius: 15px; text-transform: none; font-size: 12px; letter-spacing: 0; }
  .desktop-table-mode .game-actions .button-primary { color: #062019; border: 0; background: linear-gradient(135deg, #79efbf, #37c493); box-shadow: 0 12px 28px rgba(49, 204, 150, .18); }
  .desktop-table-mode .game-actions .button-secondary { border: 1px solid var(--line); background: #163b33; }
  .desktop-table-mode .your-label { display: flex; }
  .desktop-table-mode .hand { position: static; z-index: auto; width: 100%; min-height: 126px; padding: 8px 10px 0; overflow-x: auto; overflow-y: hidden; transform: none; }
  .desktop-table-mode .hand .playing-card { margin-left: calc(var(--card-w) * -.19); transform: none; transform-origin: center; }
  .desktop-table-mode .hand .playing-card:first-child { margin-left: 0; }
  .desktop-table-mode .hand .playing-card.playable:hover, .desktop-table-mode .hand .playing-card.playable:focus { transform: translateY(-11px); filter: none; }
}
@media (max-width: 370px) { .online-pill { display: none; } .hero-card { padding: 20px; } .button-large { left: 20px; right: 20px; bottom: 20px; } .card-swipe-zone { --zone-scale: .9; right: -8px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; } }
