/* Usability layer only. Card artwork, fan geometry and theme assets are untouched. */
.home-screen{height:100dvh;overflow-y:auto;overflow-x:hidden;overscroll-behavior-y:contain;scroll-padding-block:20px}
.home-header{gap:12px;flex-wrap:wrap}.home-login{border:1px solid var(--accent,#d8b56c);background:#142d2c;color:#ffe4ac;border-radius:12px;padding:10px 14px;font:inherit;min-height:44px}
.home-content .home-logo{margin-bottom:14px}.home-content .home-logo p{font-size:13px;line-height:1.8}.home-stats span,.wallet-bar small,.mode-card small,.economy-actions small{font-size:12px!important;line-height:1.6!important}.home-stats strong,.wallet-bar b{font-size:19px!important}.wallet-bar>div{flex-wrap:wrap;gap:7px}.wallet-bar{margin-bottom:10px}
.home-tools b,.home-tools button{font-size:13px!important}.home-tools button{min-height:64px}.economy-actions button{min-height:64px}.economy-actions button:disabled{opacity:.6;cursor:not-allowed}.connection{font-size:12px!important;line-height:1.7}.connection[data-state=offline] i,.connection[data-state=error] i{background:#f29682!important}.connection[data-state=checking] i{background:#e8c66c!important}.home-credits small,.home-credits a{font-size:11px!important;line-height:1.9}.home-credits{padding-bottom:calc(20px + env(safe-area-inset-bottom))}
.wallet-guide{border:1px solid #bba46555;border-radius:12px;padding:10px 12px;margin:8px 0 14px;text-align:start;font-size:12px;line-height:1.9}.wallet-guide summary{cursor:pointer;min-height:28px;color:var(--accent,#e8c66c)}.wallet-guide p{margin:5px 0}.guest-note{font-size:12px;line-height:1.8;text-align:center;color:#edcf8e;margin:8px 0}
.modal,.sheet{box-sizing:border-box;max-height:calc(100dvh - 24px - env(safe-area-inset-top));overflow-y:auto;overscroll-behavior:contain}.modal p,.sheet p,.modal small,.sheet small,.profile-recovery,.photo-rules{font-size:12px!important;line-height:1.8!important}.modal label,.sheet label,.settings-list label,.profile-options label{font-size:14px!important;line-height:1.8}.profile-stats small,.profile-history small{font-size:12px!important}.profile-history #profileRecentHistory{max-height:145px}.modal input,.modal select,.sheet select{font-size:16px!important}.modal input[type=checkbox],.sheet input[type=checkbox]{min-width:20px;min-height:20px;accent-color:#e1bb6d}.modal label:has(input[type=checkbox]),.sheet label:has(input[type=checkbox]){min-height:44px}
.overlay-close,.modal-close{min-width:44px!important;min-height:44px!important;z-index:40!important}.modal>.overlay-close,.modal>.modal-close,.sheet>.overlay-close{position:sticky!important;top:0!important;float:left;margin:0 0 4px 0!important;background:#1c3e3c!important}.modal h2,.sheet h2{clear:both}.modal button,.sheet button{touch-action:manipulation}.modal button:not(.card),.sheet button:not(.card){min-height:44px}
.game-actions{min-height:46px!important;gap:8px!important}.game-actions .icon-btn{width:44px!important;height:44px!important;flex-basis:44px!important}.game-actions .offer-hand{min-height:44px;font-size:12px;padding:6px 9px}.turn-clock{font-size:12px}.card-hint{position:absolute;bottom:calc(215px + env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);z-index:12;background:#092a29ed;border:1px solid #d4b37380;border-radius:12px;padding:8px 12px;max-width:85%;text-align:center;color:#fff1ca;font-size:13px;line-height:1.6;pointer-events:none}.practice-picker{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:18px 0}.practice-picker button{font-size:28px;background:#183a37;color:#f7dc99;border:1px solid #718e7d;border-radius:12px}.practice-picker button:disabled{opacity:.35}.practice-note{font-size:13px;line-height:1.9}
.cup-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:14px 0}.cup-summary>div{border:1px solid #b89f5a66;border-radius:12px;padding:10px}.cup-summary small{display:block;color:#ebce8b}.cup-summary b{font-size:15px}.cup-rules-box{border:1px solid #b89f5a66;border-radius:12px;padding:10px;margin:12px 0}.cup-rules-box summary{min-height:32px;cursor:pointer;font-size:14px}.cup-rules-box .cup-rules{border:0;margin:0;padding:8px 0}.cup-bracket{display:flex;gap:14px;overflow:auto;padding:10px 2px 18px;scroll-snap-type:x proximity}.cup-stage{flex:0 0 240px;scroll-snap-align:start;display:flex;flex-direction:column;justify-content:space-around;gap:12px}.cup-stage h4{color:#efcc80;margin:0}.cup-match{padding:12px;border:1px solid #6d8a7a;border-radius:12px;background:#0d2928}.cup-match div{padding:7px 0;overflow-wrap:anywhere}.cup-match .cup-winner{color:#ffdb86;font-weight:bold}.cup-match small{display:block;border-top:1px solid #ffffff20;padding-top:7px}.cup-actions{display:flex;gap:8px;flex-wrap:wrap}.cup-actions form{display:flex;gap:6px;width:100%}#tournamentModal{text-align:start!important}#tournamentModal .cup-tile{text-align:start!important;width:100%}.cup-form label:has(input[type=checkbox]){display:flex;align-items:center;gap:10px}.cup-form label:has(input[type=checkbox]) input{flex:none}
:focus-visible{outline:3px solid #f6d782!important;outline-offset:3px}
@media(max-width:420px){.home-header{padding-inline:14px}.home-login{font-size:12px;padding:8px 10px}.home-tools{grid-template-columns:repeat(2,minmax(0,1fr))!important}.economy-actions{grid-template-columns:1fr!important}.game-actions{gap:4px!important}.game-actions .offer-hand{font-size:11px;margin-inline:0}.profile-stats{grid-template-columns:repeat(3,minmax(0,1fr))}.card-hint{bottom:210px}}
@media(prefers-reduced-motion:reduce){.home-bg,.home-logo,.hakam-emphasis .player em,.turn-timer i{animation:none!important}.trick[class*=collect-] .played-card{animation-duration:.05s!important;animation-delay:0s!important}*{scroll-behavior:auto!important}}
