/* A clear game lobby within Pound's existing landscape stage and visual identity. */
/* Center artwork inside each of the five tiles and leave the titles their own row. */
.mode-card .mode-art{flex:1;min-height:112px;max-height:120px;margin:5px 0 4px}
.mode-card b,.mode-card small{flex:none}
.mode-card small{margin:3px 0}
.ranked-art .rank-badge{height:112px;width:100px}
.mode-portraits .portrait{left:calc(50% - 92px);width:69px;height:83px}
.mode-portraits .portrait:nth-child(2){left:calc(50% - 40px);width:80px;height:98px}
.mode-portraits .portrait:nth-child(3){left:calc(50% + 22px)}
.friends-art .portrait{left:calc(50% - 72px);width:76px;height:95px}
.friends-art .portrait:nth-child(2){left:calc(50% - 1px)}
.training-card-back{left:calc(50% - 63px);top:8px}
.training-card-face{left:calc(50% - 10px);top:7px}
.training-spark{left:calc(50% - 84px);top:14px}
.individual-card-art,.card-atlas{z-index:2}
.individual-card-art[hidden],.card-atlas[hidden]{display:none!important}
#lobbyStage button[hidden],#lobbyStage nav[hidden],#lobbyStage [hidden],#gameStage [hidden]{display:none!important}
#lobbyPages{inset:94px 0 76px}
.lobby-hud{height:92px}
.bottom-nav{height:72px}
.bottom-nav button{font-size:18px}
.bottom-nav .nav-play{font-size:21px}
#lobbyStage .page.active#shop{display:flex;flex-direction:column;overflow:hidden;padding:0 30px 4px}
.shop-groups{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;flex:none;height:48px;direction:rtl;margin:3px 0 8px}
.shop-groups button{display:flex;gap:10px;align-items:center;justify-content:center;background:#15364b;border:1px solid #53738866;border-radius:11px;color:#bdd1dc;font-size:18px;font-weight:700;padding:7px 12px;box-shadow:none}
.shop-groups .ui-icon{width:24px;height:24px}
.shop-groups button[aria-pressed=true]{background:#284a5c;border-color:#e6c180;color:#f5d799;box-shadow:inset 0 -3px #e6c180}
.shop-tabs{display:flex;justify-content:center;gap:8px;flex:none;height:39px;margin:0;border:0;direction:rtl}
.shop-tabs button{display:flex;align-items:center;justify-content:center;gap:8px;min-width:175px;min-height:38px;padding:5px 18px;border:1px solid #5d7b8b44;border-radius:8px;color:#bcced8;background:#102c3f}
.shop-tabs button>span{height:22px}.shop-tabs .ui-icon{width:21px;height:21px}.shop-tabs small{font-size:16px;margin:0}
.shop-tabs button.selected{color:#ffe2a5;border-color:#cbae7199;background:#56492e55}.shop-tabs button.selected::after{display:none}
.shop-heading{height:29px;flex:none;margin:5px 2px 4px}.shop-heading h1{font-size:19px!important}.shop-heading>span{font-size:13px}
.shop-scroll{flex:1;height:auto;min-height:0;padding:2px 1px 6px;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable}
.shop-pager{display:flex;justify-content:center;align-items:center;gap:18px;min-height:39px;flex:none;margin:3px 0 0;color:#d1dfe4}
.shop-pager button{min-width:108px;min-height:36px;padding:4px 16px;border-radius:8px;border:1px solid #718c9c66;color:#f4dcaa;background:#213f53;font-size:16px;box-shadow:none}
.shop-pager span{font-size:15px;min-width:70px;text-align:center;font-variant-numeric:tabular-nums}
.collection-filters{position:static;justify-content:center;margin:0 0 7px;padding:0;gap:8px;background:transparent;flex-wrap:wrap}
.collection-filters button{min-height:34px;font-size:14px;padding:5px 16px}
.collection-section-title{display:none}
.collection-grid{gap:14px;padding:0;align-items:stretch}
.collection-tile{min-height:239px;box-shadow:0 3px 8px #0003}
.collection-visual,.collection-pack .collection-visual{height:133px;flex:none}
.collection-info{padding:8px 12px 0;gap:3px}
.collection-info>b{font-size:20px;line-height:1.4}.collection-info>small{font-size:12px;letter-spacing:.4px}
.collection-cta{min-height:43px;padding:7px 0;font-size:15px}.collection-cta strong{font-size:20px}
.collection-badge{font-size:11px;top:7px;right:7px;padding:3px 6px}
.collection-card .back-preview{height:122px;width:81px}
.collection-visual .collection-fan{height:120px;max-width:260px}.collection-visual .collection-fan img{height:90px;top:15px}.collection-visual .collection-fan img:last-child{height:104px;top:8px}
.collection-footnote{font-size:12px;margin:7px 0 0!important}.collection-requirement{font-size:12px}
.cosmetic-grid{gap:14px;align-items:stretch}
.cosmetic-tile{min-height:251px}.item-art{height:167px}.item-art .portrait{width:120px;height:139px}
.cosmetic-tile>b{font-size:19px;line-height:1.35;padding:6px}.item-price{font-size:18px;line-height:38px}.item-status{font-size:13px;padding:5px 9px;min-height:29px}
.item-art .back-preview,.item-art .face-preview{height:146px;width:101px}
.item-art .table-pack-preview{height:150px}
.character-voice-button{width:34px;height:34px;top:7px;left:7px}
.shop-footnote{margin-top:8px!important;font-size:12px}
.coin-summary{height:31px;gap:10px;margin-bottom:7px}.coin-summary b{font-size:21px}.coin-summary small{font-size:13px}.coin-summary .quiet{font-size:14px;padding:5px 10px}
.cash-packs{grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}
.cash-pack{min-height:214px;padding:10px 15px;gap:5px;border-radius:13px}
.cash-pack>span{font-size:14px}.cash-pack .pack-coins{font-size:30px;line-height:34px}.cash-pack h2{font-size:34px!important;line-height:1.1}.cash-pack h2 small{font-size:17px}.cash-pack>p{font-size:15px}
.cash-pack .chunky-button{margin-top:auto;min-height:41px;font-size:20px;padding:6px 15px}.cash-pack>small{font-size:12px}
.coin-rewards{margin:7px 0;gap:12px}.coin-rewards button{padding:6px 15px;min-height:34px;font-size:14px}
#lobbyStage .vip-intro{height:66px;margin-bottom:10px;padding:8px 15px;border-radius:12px}
#lobbyStage .vip-intro>img{height:48px;width:48px;border-radius:10px}
#lobbyStage .vip-intro h2{font-size:21px}#lobbyStage .vip-intro p{font-size:14px}#lobbyStage .vip-intro small{font-size:12px}
#lobbyStage .vip-subscription{padding:14px 20px;gap:8px;border-radius:13px;min-height:178px}
#lobbyStage .vip-subscription h2{font-size:24px}#lobbyStage .vip-subscription strong{font-size:29px}#lobbyStage .vip-subscription .chunky-button{font-size:18px}
/* The countdown stays inside one small gift badge, with a full accessible label. */
#lobbyStage[data-page=home] #home.page.active{gap:10px;padding-bottom:8px}
.home-caption{display:grid;grid-template-columns:1fr auto;grid-template-rows:auto auto;align-items:center;text-align:right;gap:0 20px;padding:4px 38px 0;min-height:65px}
.home-caption h1{font-size:26px!important;grid-column:1;grid-row:1;align-self:end}.home-caption>span{grid-column:1;grid-row:2;font-size:14px;margin:0;align-self:start}
.home-caption #dailyGift{grid-column:2;grid-row:1/3;position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:0;width:70px;height:64px;min-width:70px;min-height:64px;padding:4px;border:1px solid #bea163;border-radius:16px;background:radial-gradient(ellipse at 50% 15%,#6b5939,#193b4d 80%);box-shadow:0 4px 14px #0002;color:#f7d997;opacity:1}
.gift-button .gift-symbol{display:flex;align-items:center;justify-content:center;height:41px}
.gift-button .ui-icon{width:43px;height:43px;filter:drop-shadow(0 2px 2px #0005)}
.gift-button .gift-caption{font-size:10px;line-height:14px;color:#f2d99f;white-space:nowrap}
.gift-button .gift-clock{position:absolute;top:23px;left:5px;right:5px;line-height:22px;border-radius:5px;background:#0a2638ed;color:#fff0c4;font:700 17px/22px Arial,sans-serif;font-variant-numeric:tabular-nums;direction:ltr;text-align:center;border:1px solid #bc9b5f66}
.gift-waiting .gift-symbol{opacity:.65}.gift-waiting{cursor:default}
.gift-button .gift-ready-dot{position:absolute;top:5px;right:5px;width:8px;height:8px;margin:0;border-radius:50%;background:#8ae2b7;box-shadow:0 0 0 2px #153445}
.gift-ready{box-shadow:0 0 0 2px #edca8433,0 3px 14px #edca8415!important}
.mode-public{order:4}.mode-friends{order:3}.mode-training{order:2}.mode-vip{order:1}
.mode-card .mode-top{font-size:13px}.mode-top>span{font-size:12px}.mode-card small{font-size:15px}.mode-foot{font-size:16px;min-height:43px}.mode-foot i{display:none}
/* Secondary actions share one calm row so the five play choices have more room. */
.mode-card .mode-top{justify-content:flex-start}
.home-bottom{min-height:48px;padding-top:0;gap:16px}
.home-bottom .home-tools{flex:none}
.home-bottom .home-events{flex:1;min-width:0;margin:0;gap:8px;justify-content:center;direction:rtl}
.home-bottom .home-events button{min-height:44px;padding:7px 12px;font-size:13px;white-space:nowrap;background:#123347;border-color:#75929e55;color:#dce4de}
.home-bottom .home-events span{padding-inline-start:9px;font-variant-numeric:tabular-nums;color:#a8c3d0}
#launchCount,#eventCount{display:inline-block;direction:ltr;unicode-bidi:isolate}
.pound-contact-links{display:flex;align-items:center;justify-content:center;gap:8px;direction:rtl;flex:none}
:is(#lobbyStage,.game-modal) .pound-contact-link{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:44px;padding:8px 14px;border:1px solid #bea36766;border-radius:12px;background:linear-gradient(150deg,#34433788,#143348);color:#f0d49b;text-decoration:none;font-size:15px;font-weight:700;white-space:nowrap;box-shadow:inset 0 1px #ffffff09;touch-action:manipulation;transition:background .15s,border-color .15s}
.pound-contact-link .ui-icon{width:21px;height:21px;stroke-width:1.7}
.pound-contact-link i{font:16px/1 Arial,sans-serif;font-style:normal;direction:ltr;color:#b2c9cc;margin-inline-start:2px}
:is(#lobbyStage,.game-modal) .support-link{background:#143f4380;border-color:#6cac9166;color:#b8dfcb}
:is(#lobbyStage,.game-modal) .pound-contact-link:hover{background:#294b56;border-color:#d3ba7f}
:is(#lobbyStage,.game-modal) .pound-contact-link:focus-visible{outline:3px solid #f5d68e;outline-offset:3px}
#settingsDialog .pound-contact-links{margin-top:18px;flex-wrap:wrap}
@media(prefers-reduced-motion:reduce){.pound-contact-link{transition:none}}
/* A single search action; match settings open separately. */
#lobbyStage #publicRooms{padding:4px 65px 8px;overflow:auto}
#lobbyStage #publicRooms .section-heading{margin:0 0 14px;height:48px}
#lobbyStage #publicRooms .section-heading h1{font-size:27px}
#lobbyStage #publicRooms>.panel{padding:0;background:none;border:0;display:grid;grid-template-columns:340px 1fr;gap:24px;min-height:295px}
.online-search-card,.online-waiting-card{border:1px solid #7894a644;border-radius:17px;background:#143246ec;padding:20px}
.online-search-card{text-align:center;background:linear-gradient(145deg,#34576c,#173447);display:flex;flex-direction:column;align-items:center;gap:8px}
#lobbyStage .online-search-card h2{font-size:22px}
.online-search-card p{font-size:14px;line-height:1.7;color:#c4d7e0;margin:0}
.online-options-button{font-size:14px;background:#102c4055;border:1px solid #93abbf55;border-radius:8px;color:#dbebef;padding:6px 14px;min-height:35px}
#lobbyStage #createPublicBtn{width:100%;min-height:48px;margin:5px 0 0;border-radius:11px;font-size:21px}
.online-search-economy{font-size:13px;line-height:1.6;color:#f1d49a}
.online-search-card>small{font-size:12px;color:#adc6d4}
.online-waiting-heading{display:flex;align-items:center;justify-content:space-between;gap:15px}
#lobbyStage .online-waiting-heading h2{font-size:21px}
#lobbyStage #refreshRooms{background:transparent;color:#c9dce5;border:1px solid #728d9e55;border-radius:8px;font-size:13px;padding:5px 11px;min-height:32px}
#lobbyStage #directoryStatus{font-size:14px;line-height:1.8;margin:12px 0!important;text-align:right;color:#b9cfdc}
#lobbyStage .public-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px;max-height:216px;overflow:auto;margin:0}
#lobbyStage .public-room{display:flex;flex-direction:column;align-items:stretch;gap:10px;min-height:169px;padding:12px;border:1px solid #8aa4b855;background:#20465b;border-radius:12px}
.room-card-heading{display:flex;align-items:center;justify-content:space-between;gap:10px}
#lobbyStage .public-room h2{font-size:17px!important;line-height:1.4;overflow-wrap:anywhere}
#lobbyStage .public-room p{font-size:12px;margin:0;color:#c5d9e4}
.room-needed{font-size:14px;white-space:nowrap;background:#edca841c;color:#f3d69d;padding:5px 8px;border-radius:7px}
.room-seats{display:flex;align-items:center;gap:8px;color:#718a9c;font-size:20px;line-height:1}
.room-seats .occupied{color:#7fdcc7}.room-seats small{margin-inline-start:auto;font-size:13px;color:#d9e8ec;direction:ltr}
#lobbyStage .public-room .room-prices{font-size:12px;color:#ddc595}
.public-room .chunky-button{font-size:16px;min-height:35px;padding:5px 14px;margin-top:auto}
#app>#onlineOptions[open]{width:520px;padding:25px}
#onlineOptions fieldset{border:0;padding:0;margin:18px 0}
#onlineOptions legend{color:#c9dce7;margin-bottom:9px}
.directory-players,.directory-limits{display:flex;gap:12px}
#app>#onlineOptions .directory-players button,#app>#onlineOptions .directory-limits button{flex:1;background:#1c4258;color:#dbebef;border:1px solid #7895a777;border-radius:9px;min-height:48px;font-size:19px}
#app>#onlineOptions button[aria-pressed=true]{background:#63533566;color:#f7d797;border-color:#edca84}
#lobbyStage #lobby[data-matchmaking=true]{padding:10px 130px}
#lobby[data-matchmaking=true] .room-share,#lobby[data-matchmaking=true] #lobbySettings,#lobby[data-matchmaking=true] #hostControls,#lobby[data-matchmaking=true] #waitingHost{display:none!important}
#lobby[data-matchmaking=true] .section-heading h1{font-size:28px}
#lobby[data-matchmaking=true] .section-heading p{font-size:16px}
#lobby[data-matchmaking=true] .lobby-panel{padding:25px;background:linear-gradient(145deg,#244c62,#143246)}
#lobby[data-matchmaking=true] .lobby-seats{margin:8px 0 22px}
#lobby[data-matchmaking=true] .lobby-seat{min-height:115px;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:7px;border-style:dashed}
#lobby[data-matchmaking=true] .lobby-seat:has(.avatar){border-style:solid;border-color:#7fdcc788}
#lobbyStage #lobby[data-matchmaking=true] #leaveRoom{min-height:43px;width:240px;margin:17px auto 0;font-size:17px;border:1px solid #849eae77;border-radius:9px;background:#24495e;color:#f1e0bc}
#gameStage .training-online-invite{position:absolute;top:90px;right:20px;width:292px;z-index:30;background:#103548f5;border:1px solid #d7bc7a;border-radius:12px;padding:12px 14px;box-shadow:0 8px 24px #00142466;direction:rtl;text-align:right}
.training-online-invite .invite-live{font-size:11px;color:#8fe0bf;display:block;margin-bottom:5px}
.training-online-invite b{font-size:16px;display:block;color:#f6dd9c}
.training-online-invite p{font-size:12px;color:#c3d9e3;line-height:1.7;margin:5px 0 10px}
.invite-actions{display:flex;gap:8px}
#gameStage .invite-actions button{min-height:36px;padding:5px 9px;font-size:13px;border:1px solid #b5a379;border-radius:7px;background:#e6c982;color:#123247;box-shadow:none}
#gameStage .invite-actions [data-invite-dismiss]{background:#234c61;color:#cfdee7;border-color:#708e9e77}
/* Team totals lead, tricks follow. Detailed round scoring is one tap away. */
#gameStage .match-strip{width:398px;height:106px;right:22px;top:14px;padding:7px 10px;gap:8px;grid-template-columns:1fr 1.1fr 1fr;border-radius:13px;background:#0e2638f5}
#gameStage .score-team{gap:2px}.score-team .team-label{font-size:15px!important}
#gameStage .match-points{font-size:0;order:1}#gameStage .score-team .match-points b{font-size:35px;line-height:1}
#gameStage .score-team:not(.opponent){color:#7ce0de}#gameStage .score-team.opponent{color:#f4a297}
#gameStage .tricks-total{order:2;gap:4px}#gameStage .tricks-total b{font-size:20px}#gameStage .tricks-total span{font-size:12px}
#gameStage .trick-pips{display:flex;order:3;gap:3px;justify-content:center;height:6px;margin-top:2px}
#gameStage .trick-pips i{height:5px;width:7px;border:0;border-radius:4px;background:#71869655}#gameStage .trick-pips i.taken{background:currentColor}#gameStage .trick-pips i.goal{outline:1px solid #f5dcab;outline-offset:1px}
#gameStage .match-center{gap:4px;padding:0}.score-details{font:700 17px Tahoma,sans-serif;border:0;border-bottom:1px solid #d2b37588;border-radius:0;background:transparent;color:#f8dda5;padding:2px 4px;box-shadow:none;cursor:pointer}
#gameStage .match-center #roundInfo{font-size:17px}#gameStage .match-center #matchInfo{font-size:12px;line-height:1.3}#gameStage #remainingTricks{display:none}
#gameStage[data-phase=result] .controls,#gameStage[data-phase=finished] .controls{top:158px;width:610px;padding:15px 20px}
#gameStage[data-phase=result] .controls h2,#gameStage[data-phase=finished] .controls h2{font-size:27px;margin:5px 0 8px}
#gameStage[data-phase=result] .controls p,#gameStage[data-phase=finished] .controls p{font-size:15px;line-height:1.4;margin:8px 0}
.score-totals{display:grid;grid-template-columns:1fr 90px 1fr;gap:10px;align-items:center;padding:11px 16px;background:#081b2ce6;border:1px solid #7994a64d;border-radius:12px;text-align:center;direction:rtl}
.score-totals>div{display:flex;align-items:center;flex-direction:column;gap:3px}.score-totals span{font-size:17px}.score-totals strong{font:800 43px/1.05 Arial,sans-serif;font-variant-numeric:tabular-nums}.score-totals small{font-size:13px;color:#cad8dd}
.score-ours{color:#7ce0de}.score-theirs{color:#f4a297}.score-limit{color:#d5c194}.score-limit span{font-size:13px}.score-limit b{font:700 23px Arial,sans-serif}
#app>#scoreDialog[open]{display:block;width:760px;max-height:540px;padding:20px;background:#112d40;color:#f2e9d5;border:1px solid #d6b978;border-radius:17px}
#scoreDialog .dialog-heading h2{font-size:25px}#scoreDialog .dialog-heading{margin-bottom:13px}.score-rounds{max-height:310px;overflow:auto;margin-top:13px}
.score-rounds table{width:100%;border-collapse:collapse;text-align:center;font-size:17px}.score-rounds caption{text-align:right;padding:6px 0 12px;font-size:18px;font-weight:bold}.score-rounds th,.score-rounds td{padding:11px 10px;border-bottom:1px solid #7c95a433}.score-rounds thead th{background:#1e4156;position:sticky;top:0}.score-rounds td:last-child{font-size:15px}
@media(prefers-reduced-motion:reduce){.gift-ready{animation:none}.shop-groups button{transition:none}}

/* Live activity uses the existing subtitle space on the card and room header. */
.presence-chip{display:inline-flex;align-items:center;justify-content:center;gap:7px;color:#cadce6;font-size:14px;line-height:21px;white-space:nowrap;font-variant-numeric:tabular-nums}
.presence-chip::before{content:'';width:7px;height:7px;border-radius:50%;background:#7c8d99;flex:none}
.presence-chip[data-live=true]::before{background:#8ce5ca;box-shadow:0 0 0 3px #8ce5ca15}
.presence-chip b{font-size:16px;color:#f6dfad;line-height:inherit}
#lobbyStage .mode-card small.presence-chip{display:flex;font-size:15px;min-height:24px;gap:7px}
#lobbyStage #publicRooms .online-activity{display:flex;align-items:center;justify-content:center;gap:19px;margin:0;min-height:21px}
.online-activity .presence-tables{display:inline-flex;align-items:center;gap:7px;color:#cadce6;font-size:14px;line-height:21px;white-space:nowrap}
.presence-tables b{font-size:16px;color:#f6dfad;font-variant-numeric:tabular-nums}

/* The active online player's portrait is the timer; training has no clock. */
#gameStage #timer{display:none}
#gameStage .player .avatar{position:relative}
#gameStage .turn-ring{position:absolute;inset:0;width:100%;height:100%;z-index:5;overflow:visible;pointer-events:none;fill:none;stroke-width:4;stroke-linejoin:round;stroke-linecap:round}
.turn-ring-track{stroke:#071b2bbb}.turn-ring-line{stroke:#8ce5ca;stroke-dasharray:100;stroke-dashoffset:0}
.turn-ring-low .turn-ring-line{stroke:#ffb08e}
#gameStage .player.timed-turn.active .avatar{border-color:#47677c;box-shadow:0 4px 0 #071c2e,0 6px 17px #00132170}
#gameStage[data-trick-pause=true] .controls{visibility:hidden;pointer-events:none}
#gameStage[data-trick-pause=true] .hand{pointer-events:none}

