/* Eight stable drop zones replace the instructional footer. */
.bottom-hud{display:none!important}body[data-screen="intro"] .hand-dock{display:none!important}
body[data-screen="playing"] .hand-dock{display:block!important;position:fixed;left:0;right:0;bottom:0;max-width:none;width:100%;padding:10px 24px 14px;background:linear-gradient(#262132f5,#201b2afc);border-top:1px solid #bd986d88;box-shadow:0 -4px 0 #120e2055;pointer-events:auto;z-index:11}
.hand-caption{max-width:1000px;margin:0 auto 8px;padding:0 4px;border:0;background:none;justify-content:flex-start;height:22px}.hand-caption b{font-size:10px;letter-spacing:1.5px}.hand-caption span{margin-right:auto;color:#a8968b;font-size:8px}.hand-caption button{padding:6px 10px;min-height:26px}
#hand-cards{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:14px;max-width:1000px;width:100%;margin:auto;padding:0;overflow:visible;pointer-events:auto}
.hand-slot{height:132px;position:relative;min-width:0;border:1px solid #b99a6b36;background:#16131d66;touch-action:none;box-shadow:inset 0 0 0 3px #17131e88;transition:background .12s,border-color .12s}
.hand-slot.empty{display:grid;place-items:center;color:#ac8c6533;font:28px Georgia}.hand-slot.empty:after{content:'◇'}
.hand-slot .talisman.hand-card{position:absolute;inset:5px;width:calc(100% - 10px);height:calc(100% - 10px);padding:8px 4px;transform:none!important;transition:box-shadow .12s;box-shadow:2px 3px 0 #0e0b1866;animation:none}
.hand-slot .hand-card:hover{box-shadow:0 0 0 1px #fbe0ac,0 0 16px #d5ad6d44}.hand-slot .hand-card.just-sealed{animation:slot-print .22s ease-out;outline:1px solid #f6d698}.hand-slot .hand-card.drag-source{opacity:.2!important}.hand-slot .card-glyph{width:51px;height:49px}.hand-slot .card-name{font-size:10px}.hand-slot .card-seal{margin-top:3px}.hand-slot .card-level{margin-top:3px}
.hand-slot.fusion-hover{border:2px solid #ffe5a3;background:#8a6a3a88;box-shadow:0 0 0 4px #edc48033,0 0 24px #f2c77966;animation:none;transform:none}.hand-slot.fusion-hover:before{content:'HỢP PHÙ';position:absolute;bottom:calc(100% + 6px);left:50%;transform:translateX(-50%);padding:5px 9px;background:#edcc8f;color:#282033;font:700 9px Arial;white-space:nowrap;z-index:3}.hand-slot.fusion-hover .hand-card{filter:brightness(1.12)}
.run-clock{min-width:110px;font-variant-numeric:tabular-nums}.run-clock small{display:block;font:8px Arial;letter-spacing:1.5px;color:#b4a195;margin-bottom:4px}.run-clock strong{font:26px Georgia;color:#f1d09a;letter-spacing:2px;white-space:nowrap}.run-clock .best{display:block;font:8px Arial;color:#bda68a;margin-top:4px;white-space:nowrap}.run-clock.record strong{color:#fff0b5;text-shadow:0 0 16px #ffc56a66}
.topbar{gap:22px}.topbar .castle{margin-left:auto;width:150px}.tools #records{width:68px;font-size:8px;letter-spacing:.5px}.wave>span{white-space:nowrap}.side-note{top:130px}.side-note>b{font-size:19px}.side-note p{display:none}
.player-label{display:flex;align-items:center;justify-content:space-between;width:310px;margin:22px 0 12px;color:#c1ab91;font:9px Arial;letter-spacing:1px}.player-label input{width:190px;min-width:0;background:#282130;border:1px solid #a9895e99;color:#f1d3a3;padding:10px;font:13px Arial;user-select:text}.intro-record{font:11px/1.7 Arial;color:#cdb694;max-width:380px;margin-top:14px}.intro-record strong{color:#f7d49a}.intro-panel h1{font-size:clamp(38px,4vw,58px)}.intro-record-link{display:inline-block;margin-top:8px;padding:8px 0;border:0;background:transparent;color:#e7c38d;font:9px Arial;letter-spacing:1px}
.leader-table{width:100%;border-collapse:collapse;margin:22px 0;font:11px Arial}.leader-table th{color:#ac9885;font-size:8px;text-align:left;padding:9px 7px;border-bottom:1px solid #af916633}.leader-table td{padding:10px 7px;border-bottom:1px solid #af916622;color:#ddcbb7}.leader-table td:nth-child(3){font-variant-numeric:tabular-nums;white-space:nowrap;font-weight:700;color:#f1d09a}.leader-table tr:first-child td{color:#ffe0a0}.leader-table td:nth-child(2){max-width:170px;overflow-wrap:anywhere}.record-note{font-size:10px!important;color:#bda993!important}.result-time{font:64px Georgia;font-variant-numeric:tabular-nums;color:#f4d498;line-height:1.2;margin:20px 0}.result-time small{display:block;font:10px Arial;letter-spacing:2px;color:#bfa58b;margin-bottom:10px}.result-stats{gap:24px}.result-stats b{font-size:27px}.result-stats span{font-size:8px}.result-share{user-select:text}
@keyframes slot-print{from{opacity:.1;filter:brightness(2)}to{opacity:1;filter:brightness(1)}}
.legacy-records{margin-top:20px;padding-top:12px;border-top:1px solid #af916644}.legacy-records summary{cursor:pointer;color:#c5ac8b;font:11px Arial}.legacy-records .leader-table{opacity:.8}
@media(max-width:1100px){.topbar{gap:12px;padding:15px 18px}.brand{font-size:16px;gap:8px;letter-spacing:2px}.brand small{font-size:6px;letter-spacing:2px}.topbar .castle{width:110px}.run-clock{min-width:90px}.run-clock strong{font-size:23px}.wave>span{font-size:17px}.tools{gap:4px}#hand-cards{gap:10px}.hand-slot{height:123px}.hand-slot .card-name{font-size:9px}.hand-slot .card-glyph{height:44px;width:44px}}
@media(max-width:700px){body[data-screen="playing"] .hand-dock{padding:8px 8px 10px}#hand-cards{grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}.hand-slot{height:92px}.hand-slot .hand-card{inset:4px!important;width:calc(100% - 8px)!important;height:calc(100% - 8px)!important;padding:6px 3px!important}.hand-slot .card-glyph{height:31px;width:31px;margin:2px auto}.hand-slot .card-name{font-size:8px;min-height:10px}.hand-slot .card-seal{display:none}.hand-slot .card-level{font-size:5px}.hand-slot .hand-card>small{font-size:5px}.hand-caption{height:21px;margin-bottom:7px;gap:8px}.hand-caption b{font-size:8px}.hand-caption span{font-size:6px}.hand-caption button{font-size:6px;padding:4px 7px;min-height:23px}.hand-slot.fusion-hover:before{font-size:7px;padding:3px 5px;bottom:calc(100% + 2px)}.topbar{padding:10px;gap:8px;flex-wrap:wrap}.brand{font-size:12px}.brand-icon{width:28px;height:31px}.topbar .castle{width:95px}.run-clock{min-width:74px}.run-clock small{font-size:6px;letter-spacing:1px}.run-clock strong{font-size:21px}.run-clock .best{font-size:6px}.topbar .tools{width:100%;justify-content:flex-end}.tools #records,.tools #book{font-size:7px;width:64px}.tools button{height:25px}.wave{display:block!important;position:absolute;left:10px;top:68px}.wave small{display:none}.wave>span{font-size:13px}.wave em{font-size:8px}.toast{top:108px;max-width:calc(100vw - 24px)}.player-label{width:280px}.player-label input{width:160px}.intro-record{font-size:10px}.result-time{font-size:48px}.leader-table{font-size:10px}.leader-table th,.leader-table td{padding:8px 4px}}
@media(max-height:650px) and (min-width:701px){body[data-screen="playing"] .hand-dock{padding:6px 18px 9px}.hand-caption{margin-bottom:5px;height:20px}.hand-slot{height:98px}.hand-slot .card-glyph{height:33px;width:33px}.hand-slot .card-seal{display:none}.hand-slot .card-name{font-size:8px}}
