#mobile-more{display:none}
@media(max-width:680px){
 :root{--gap:clamp(2px,1vw,4px);background:#174339}
 body{padding:env(safe-area-inset-top) max(2px,env(safe-area-inset-right)) 0 max(2px,env(safe-area-inset-left));background:#174339}
 body::before{display:none}
 main{width:100%;min-height:calc(100svh - env(safe-area-inset-top));padding:0;display:flex;flex-direction:column}
 main>*{flex-shrink:0}
 .mast{order:0;margin:0 6px;padding:0;min-height:44px;border-color:#f0d6a537}
 .mast .back{min-height:44px;font-size:.82rem}
 .mast .series{display:block;color:#eedfb6;font-size:.57rem;letter-spacing:.08em}
 .intro{order:1;display:flex;align-items:center;justify-content:space-between;gap:5px;margin:2px 7px 4px}
 .intro .kicker,.intro .tagline{display:none}
 .intro h1{font-size:clamp(20px,6.3vw,30px);line-height:1.12;margin:0;white-space:nowrap}
 .meters{margin:0;gap:clamp(5px,2vw,12px)}
 .meters span{gap:0}
 .meters small{font-size:.59rem;line-height:1.2}
 .meters strong{font-size:clamp(.76rem,3.75vw,1rem);line-height:1.2}
 .game-points{order:2;gap:7px;flex-wrap:wrap;margin:1px 7px 6px}
 .game-points span{gap:4px;padding:0;border:0;background:none;font-size:.69rem}
 .game-points span+span{border-left:1px solid #e9d7b94b;border-radius:0;padding-left:7px}
 .game-points strong{font-size:.84rem}
 #field{order:3;min-height:0;padding:3px 1px 8px;border:0;border-radius:7px;background:#1b4e40;box-shadow:none;overflow:visible}
 #field:has(#welcome:not([hidden])){min-height:225px}
 .grid{width:100%;gap:var(--gap)}
 .upper{margin-bottom:9px}
 .slot,.card{border-radius:4px;-webkit-touch-callout:none;-webkit-user-select:none}
 .slot small{font-size:9px}
 .slot .symbol{font-size:20px}
 .spread .card.facedown{--step:10px}
 .spread .card.faceup{--step:24px}
 .card.faceup .corner,.card.faceup .opposite{width:auto;height:auto;display:flex;align-items:center;gap:2px;line-height:1;letter-spacing:-.045em;color:inherit;background:#faf3e2;border-radius:2px;padding:1px 1px;font-size:clamp(13px,3.75vw,17px)}
 .card.faceup .corner{inset:3% auto auto 2%}
 .card.faceup .opposite{inset:auto 2% 3% auto}
 .card.faceup .corner svg,.card.faceup .opposite svg{width:clamp(8px,2.5vw,11px);height:clamp(8px,2.5vw,11px)}
 .card.faceup .corner b,.card.faceup .opposite b{line-height:1}
 .card.faceup .pips{inset:13% 7%;transform:none}
 .card.faceup .court{inset:17% 7% 9%}
 .card.faceup .fabric-tab{opacity:.43}
 .welcome{padding:6px;background:#10392a76}
 .welcome-card{width:min(96%,315px);border-radius:14px;padding:13px 15px}
 .welcome-card img{width:37px;height:48px;margin:0 auto 2px}
 .welcome-card h2{font-size:24px}
 .welcome-card p:not(.kicker){margin:6px 0 8px;font-size:.76rem}
 #status{order:4;margin:4px 6px 2px;min-height:1.45em;font-size:.72rem}
 .footer{order:5;display:none}
 .tools{order:6;position:sticky;z-index:5;bottom:0;margin:auto 0 0;padding:5px 4px max(5px,env(safe-area-inset-bottom));background:#153d34;border-top:1px solid #afc3a96b;gap:4px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));box-shadow:0 -4px 10px #102f252d}
 .tools button,.tools .deck-link,#mobile-more summary,.mobile-more-panel a{min-height:44px;display:grid;place-items:center;text-align:center;text-decoration:none;font-size:.8rem;padding:4px 3px;white-space:normal}
 .tools #auto-finish{grid-column:1/-1;order:-1}
 #mobile-more{display:block;position:relative;min-width:0}
 #mobile-more summary{list-style:none;border:1px solid #fff4dc45;border-radius:10px;background:#254746;color:#fff5dc;cursor:pointer;font-weight:740;touch-action:manipulation}
 #mobile-more summary::-webkit-details-marker{display:none}
 #mobile-more summary:focus-visible{outline:2px solid #ffda91;outline-offset:2px}
 .mobile-more-panel{position:absolute;bottom:calc(100% + 6px);right:0;min-width:147px;width:max-content;max-width:calc(100vw - 22px);display:grid;gap:4px;padding:6px;border-radius:12px;background:#153d34;box-shadow:0 8px 20px #0d241c97;border:1px solid #e7d9ab73}
 .mobile-more-panel a{color:#fff5dc;background:#254746;border-radius:10px;border:1px solid #fff4dc45}
 .tools.has-mobile-drawer>#new,.tools.has-mobile-drawer>#rules,.tools.has-mobile-drawer>#backs,.tools.has-mobile-drawer>.deck-link,main:has(.tools.has-mobile-drawer) .mast #rank{display:none}
}

@media (max-width:680px) and (pointer:coarse){
 #field .faceup{touch-action:none}
 #field .touch-source{opacity:.72}
 #field .drop-target{outline:2px solid #fbc778;outline-offset:-2px}
}
