/* Hino Starlight Gacha — clean single-source layout */
.hino-gacha-page{--gc-panel:#111720;--gc-text:#f6f8fb;--gc-muted:#aab4c4;--gc-line:rgba(148,166,196,.2);--gc-blue:#4b8dff;--gc-violet:#7b6df1;position:relative;min-width:0;min-height:calc(100vh - 66px);color:var(--gc-text);font-family:"Segoe UI","Microsoft YaHei UI","Microsoft YaHei",Arial,sans-serif}
.hino-gacha-page,.hino-gacha-page *{box-sizing:border-box}.hino-gacha-page button{font:inherit;color:inherit}
.hgc-shell{width:min(1320px,100%);min-height:calc(100vh - 66px);margin:auto}
.hgc-stage-panel{position:relative;min-height:calc(100vh - 66px);overflow:hidden;padding:23px 30px 24px;background:radial-gradient(circle at 50% 37%,rgba(54,104,188,.09),transparent 31%),linear-gradient(145deg,rgba(14,18,25,.54),rgba(8,11,16,.24))}
.hgc-stage-panel:before{position:absolute;top:0;right:0;left:0;height:2px;background:linear-gradient(90deg,transparent,#4b8dff,transparent);content:""}.hgc-stage-panel:after{position:absolute;z-index:0;inset:0;background-image:linear-gradient(rgba(144,163,193,.025) 1px,transparent 1px),linear-gradient(90deg,rgba(144,163,193,.025) 1px,transparent 1px);background-size:42px 42px;content:"";pointer-events:none}
.hgc-status{position:absolute;z-index:5;top:24px;right:30px;display:flex;align-items:center;gap:7px;color:#8190aa;font-size:9px;letter-spacing:.08em}.hgc-dot{width:7px;height:7px;border-radius:50%;background:#45c79b;box-shadow:0 0 0 3px rgba(69,199,155,.1)}
.hgc-eyebrow{position:relative;z-index:3;display:flex;align-items:center;gap:9px;color:#78a8f4;font:700 9px "Cascadia Mono",Consolas,monospace;letter-spacing:.12em}.hgc-eyebrow i{width:23px;height:2px;background:#4b8dff}
.hgc-heading{position:relative;z-index:3;display:flex;align-items:end;justify-content:space-between;gap:22px;padding:4px 0 13px;border-bottom:1px solid rgba(148,166,196,.17)}.hgc-heading-copy{min-width:0}.hgc-heading h1{margin:9px 0 4px;color:#f7f9fc;font:750 clamp(31px,3vw,45px)/1 "Segoe UI","Microsoft YaHei UI",sans-serif;letter-spacing:-.04em}.hgc-heading p{max-width:680px;margin:0;color:#aab4c4;font-size:11px;line-height:1.55}.hgc-meta{flex:none;color:#8793a5;font-size:9px;line-height:1.55;text-align:right}.hgc-meta>span{display:block}.hgc-meta>strong{display:block;color:#c7d2e2;font-size:13px}.hgc-meta>strong b{color:#fff;font:700 17px "Cascadia Mono",Consolas,monospace;font-variant-numeric:tabular-nums}.hgc-meta-actions{display:flex;justify-content:flex-end;gap:6px;margin-top:6px}
.hgc-aux-button,.hgc-action-button{min-height:30px;padding:0 11px;border:1px solid #37455c;border-radius:8px;background:#151c27;color:#dce4ef;box-shadow:none;cursor:pointer;font-weight:650;transition:.18s}.hgc-aux-button:hover,.hgc-action-button:hover{border-color:#6489bd;background:#1d2837;color:#fff;transform:translateY(-1px)}.hgc-aux-button:disabled,.hgc-action-button:disabled{cursor:not-allowed;opacity:.4}.hgc-back-button{border-color:#2c3748;background:#10151d;color:#b9c4d3}
.hgc-stage{position:relative;z-index:2;height:clamp(250px,34vh,320px);display:grid;place-items:center;margin-top:4px;overflow:hidden}.hgc-orbit{position:absolute;width:330px;height:330px;border:1px solid rgba(84,134,210,.19);border-radius:50%;box-shadow:0 0 70px rgba(51,103,190,.08);transform:rotate(-18deg);animation:hgcOrbit 34s linear infinite}.hgc-orbit:before,.hgc-orbit:after{inset:67px;border-style:dashed;transform:rotate(-32deg)}.hgc-orbit:after{inset:61px;border-style:dashed;transform:rotate(-32deg)}.hgc-sigil{position:absolute;width:225px;height:225px;border:1px solid rgba(75,141,255,.13);border-radius:50%;background:radial-gradient(circle,rgba(39,93,184,.13),transparent 66%)}.hgc-sigil:before{position:absolute;inset:0;display:grid;place-items:center;color:rgba(158,194,249,.25);content:"H";font:800 62px "Segoe UI",sans-serif;letter-spacing:-.08em}.hgc-spark{position:absolute;width:3px;height:3px;border-radius:50%;background:#d9e8ff;box-shadow:0 0 10px #5d9bff;animation:hgcFloat 4s ease-in-out infinite}.hgc-s1{top:25%;left:31%}.hgc-s2{top:63%;left:27%;animation-delay:1.2s}.hgc-s3{top:27%;right:28%;animation-delay:2s}.hgc-s4{top:69%;right:29%;animation-delay:.5s}
.hgc-deck{position:relative;width:172px;height:237px;transform:translateY(-2px);transform-style:preserve-3d;transition:transform .18s ease}.hgc-deck-card{position:absolute;inset:0;border:1px solid #577db4;border-radius:13px;background:linear-gradient(155deg,#1a2535,#0d131d);box-shadow:inset 0 0 0 4px #090d13,inset 0 0 0 5px #2f425e,0 8px 0 #05070b,0 18px 30px rgba(0,0,0,.5)}.hgc-deck-card:nth-child(1){transform:translate(-5px,4px)}.hgc-deck-card:nth-child(2){transform:translate(4px,1px)}.hgc-deck-card:nth-child(3){transform:translate(-2px,-3px)}.hgc-deck-top{overflow:hidden;transform:translate(1px,-8px)}.hgc-deck-top:before{position:absolute;inset:22px;border:1px solid rgba(154,188,240,.2);border-radius:11px;content:""}.hgc-deck-top:after{position:absolute;inset:0;display:grid;place-items:center;color:#cfe0ff;content:"H";font:800 47px "Segoe UI",sans-serif;letter-spacing:-.08em;text-shadow:0 0 20px rgba(75,141,255,.42)}.hgc-deck-glint{position:absolute;z-index:3;inset:-50% 20% -20% -70%;background:linear-gradient(110deg,transparent 30%,rgba(236,243,255,.3),transparent 60%);animation:hgcGlint 5s ease-in-out infinite}.hgc-deck-topline,.hgc-deck-label{position:absolute;z-index:4;right:0;left:0;color:#8da8d0;font:700 7px "Cascadia Mono",Consolas,monospace;letter-spacing:.1em;text-align:center}.hgc-deck-topline{top:18px}.hgc-deck-label{bottom:18px}.hgc-stage-copy{position:absolute;right:0;bottom:4px;left:0;color:#74829f;font-size:9px;letter-spacing:.05em;text-align:center}.hgc-stage.is-busy .hgc-deck{animation:hgcBusy .72s ease-in-out infinite}
.hgc-collection{position:relative;z-index:3;padding:10px 0 8px;border-block:1px solid rgba(148,166,196,.14);background:linear-gradient(180deg,rgba(17,23,32,.48),rgba(10,14,20,.18))}.hgc-collection-head{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:0 2px}.hgc-collection-head h2{margin:0;font:700 14px "Segoe UI","Microsoft YaHei UI",sans-serif}.hgc-collection-head p{margin:2px 0 0;color:#7d899b;font:8px "Cascadia Mono",Consolas,monospace}.hgc-collection-actions{display:flex;align-items:center;gap:6px}.hgc-collection-actions>span{color:#74839d;font-size:8px}.hgc-collection-actions .hgc-aux-button{min-height:26px;padding:0 8px;font-size:8px}
.hgc-viewport{position:relative;overflow-x:auto;overflow-y:hidden;margin-top:6px;cursor:grab;overscroll-behavior-x:contain;scrollbar-width:thin;scrollbar-color:#526887 #0b1017}.hgc-viewport.is-dragging{cursor:grabbing}.hgc-track{display:flex;align-items:center;width:max-content;min-height:158px;gap:10px;padding:8px 15px 11px}.hgc-pool-card{position:relative;flex:0 0 102px;width:102px;aspect-ratio:5/7;padding:0;border:0;background:transparent;cursor:pointer;opacity:.92;transform:translateY(var(--pool-lift,0));transition:transform .2s,opacity .2s,filter .2s}.hgc-pool-card:hover,.hgc-pool-card:focus-visible{z-index:7;opacity:1;outline:0;filter:brightness(1.1);transform:translateY(calc(var(--pool-lift,0) - 7px))}
.hgc-card-face{position:absolute;inset:0;display:block;overflow:hidden;border:1px solid var(--rarity-color,#8799c5);border-radius:12px;background:#121923;backface-visibility:hidden;-webkit-backface-visibility:hidden;box-shadow:inset 0 0 0 4px #090d13,inset 0 0 0 5px rgba(153,176,213,.18),0 12px 19px rgba(0,0,0,.38)}.hgc-card-face:before{position:absolute;inset:8px;border:1px solid rgba(203,218,255,.12);border-radius:8px;content:""}.hgc-card-front{background:radial-gradient(circle at 50% 31%,rgba(75,141,255,.1),transparent 38%),linear-gradient(155deg,#172130,#0d131c)}.hgc-card-corner{position:absolute;z-index:3;top:9px;left:9px;color:var(--rarity-color);text-align:center}.hgc-card-corner b{display:grid;place-items:center;width:18px;height:18px;border:1px solid currentColor;border-radius:5px;font-size:8px;transform:none}.hgc-card-corner small{display:block;margin-top:4px;font-size:6px}.hgc-card-art{position:absolute;z-index:2;top:20%;right:14%;left:14%;display:grid;place-items:center;aspect-ratio:1}.hgc-card-art:before{position:absolute;width:78%;aspect-ratio:1;border:1px solid var(--rarity-color);border-radius:12px;content:"";opacity:.32;transform:none}.hgc-card-art:after{position:absolute;width:96%;aspect-ratio:1;border:1px dashed var(--rarity-color);border-radius:50%;content:"";opacity:.16;animation:hgcOrbit 24s linear infinite}.hgc-item-icon{position:relative;z-index:2;display:grid;place-items:center;width:53%;height:53%;color:var(--rarity-color);font-size:22px;font-weight:900}.hgc-item-icon img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain}.hgc-item-icon img+.hgc-icon-fallback{display:none}.hgc-card-copy{position:absolute;z-index:3;right:9px;bottom:10%;left:9px;padding:6px 4px;border-top:2px solid var(--rarity-color);background:rgba(7,11,17,.92);text-align:center}.hgc-card-name{display:block;overflow:hidden;color:#fff;font-size:8px;font-weight:700;text-overflow:ellipsis;white-space:nowrap}.hgc-card-grade{display:block;margin-top:2px;color:var(--rarity-color);font-size:7px;font-style:normal;font-weight:700}.hgc-card-qty{display:block;margin-top:2px;color:#7a88a2;font-size:6px}.hgc-card-foil{position:absolute;z-index:5;inset:-40% 20% -10% -55%;background:linear-gradient(110deg,transparent 32%,rgba(235,241,255,.25),transparent 62%);opacity:0;transform:rotate(12deg) translateX(-35%);transition:opacity .2s,transform .9s}.hgc-pool-card:hover .hgc-card-foil{opacity:.75;transform:rotate(12deg) translateX(175%)}
.hgc-controls{position:relative;z-index:3;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:10px}.hgc-draw-button{position:relative;min-height:68px;display:flex;align-items:center;justify-content:space-between;overflow:hidden;padding:8px 12px 8px 56px;border:1px solid #3d506b;border-radius:11px;background:linear-gradient(145deg,#182231,#101620);color:#edf3fb;box-shadow:none;transition:.2s}.hgc-draw-button:before{position:absolute;top:50%;left:15px;width:27px;height:27px;display:grid;place-items:center;border:1px solid #6b9cea;border-radius:8px;background:#17315a;color:#eaf2ff;content:attr(data-draw-count);font:700 9px "Cascadia Mono",Consolas,monospace;transform:translateY(-50%)}.hgc-draw-button:after{position:absolute;inset:0 0 auto 0;height:2px;background:linear-gradient(90deg,#4b8dff,transparent 68%);content:"";pointer-events:none}.hgc-draw-button:hover{border-color:#6d96cf;background:linear-gradient(145deg,#202f43,#131c29);transform:translateY(-1px)}.hgc-draw-button.is-insufficient{border-color:rgba(217,116,136,.25);opacity:.62}.hgc-draw-button span,.hgc-draw-button em{position:relative;z-index:2}.hgc-draw-button span{display:grid;gap:3px;text-align:left}.hgc-draw-button span b{font-size:13px}.hgc-draw-button span small{color:#8291aa;font-size:8px}.hgc-draw-button em{display:grid;justify-items:end;font-style:normal}.hgc-draw-button em strong{color:#dfe9fb;font:700 15px "Cascadia Mono",Consolas,monospace;font-variant-numeric:tabular-nums}.hgc-draw-button em small{color:#718099;font-size:7px}.hgc-primary{border-color:#5795f4;background:linear-gradient(145deg,#245fb9,#173865)}.hgc-primary:before{border-color:#a8caff;background:#275aab}
.hgc-modal{position:fixed;z-index:80;inset:0;display:none;place-items:center;padding:12px;background:rgba(3,5,8,.92)}.hgc-modal.is-open{display:grid}.hgc-result-shell{position:relative;width:min(960px,calc(100vw - 24px));max-height:calc(100vh - 24px);display:grid;grid-template-rows:auto minmax(0,1fr) auto;overflow:hidden;padding:15px 16px 12px;border:1px solid #3a4b64;border-radius:14px;background:radial-gradient(circle at 50% 38%,rgba(45,92,169,.07),transparent 34%),linear-gradient(145deg,#111821,#080c12);box-shadow:0 38px 120px rgba(0,0,0,.64)}.hgc-result-shell:before{position:absolute;top:100px;left:50%;width:420px;height:420px;margin-left:-210px;border:1px solid rgba(83,130,202,.1);border-radius:50%;content:"";pointer-events:none}.hgc-result-head{position:relative;z-index:3;display:flex;align-items:flex-start;justify-content:space-between;gap:15px;padding:0 3px 9px;border-bottom:1px solid rgba(148,166,196,.16);text-align:left}.hgc-result-head span{color:#81adf1;font:700 8px "Cascadia Mono",Consolas,monospace;letter-spacing:.1em}.hgc-result-head h2{margin:3px 0 0;font:750 25px/1 "Segoe UI","Microsoft YaHei UI",sans-serif;letter-spacing:-.03em}.hgc-result-head p{margin:5px 0 0;color:#8996ae;font-size:9px}.hgc-result-grid{position:relative;z-index:3;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));align-content:center;justify-items:center;gap:8px;min-height:0;overflow-y:auto;overscroll-behavior:contain;margin:6px 0;padding:9px}.hgc-result-grid[data-count="1"]{grid-template-columns:160px;justify-content:center}.hgc-result-grid[data-count="10"]{grid-template-rows:repeat(2,minmax(0,1fr))}.hgc-result-grid[data-count="100"]{grid-auto-rows:auto;align-content:start;justify-items:stretch;max-height:calc(100vh - 185px);gap:8px;padding:8px 12px 8px 8px;border-block:1px solid rgba(126,163,255,.1);background:rgba(4,8,20,.32)}.hgc-result-card{position:relative;width:min(100%,145px);aspect-ratio:3/4;padding:0;border:0;background:transparent;perspective:900px;cursor:pointer;transition:transform .2s}.hgc-result-card:hover:not(.is-revealed){z-index:8;transform:translateY(-5px)}.hgc-result-card-inner{position:absolute;inset:0;transform-style:preserve-3d;transition:transform .65s cubic-bezier(.18,.8,.24,1)}.hgc-result-card.is-revealed .hgc-result-card-inner{transform:rotateY(180deg)}.hgc-result-card .hgc-card-front{transform:rotateY(180deg)}.hgc-result-card.is-dealing{animation:hgcDeal .62s cubic-bezier(.18,.8,.24,1) both;animation-delay:var(--deal-delay)}.hgc-result-grid[data-count="100"] .hgc-result-card{width:100%;max-width:none}.hgc-card-back{background:linear-gradient(155deg,#1c2a3e,#0e151f)}.hgc-card-back:after{position:absolute;inset:15px;border:1px solid rgba(184,205,245,.16);border-radius:11px;content:""}.hgc-card-back-emblem{position:absolute;z-index:3;inset:0;display:grid;place-content:center;justify-items:center;gap:7px}.hgc-card-back-emblem-mark{color:#d8e8ff;font:800 42px "Segoe UI",sans-serif;letter-spacing:-.08em;text-shadow:0 0 18px rgba(75,141,255,.45)}.hgc-card-back-emblem-label{color:#8298c2;font-size:7px;letter-spacing:.12em}.hgc-card-back-serial{position:absolute;z-index:3;right:0;bottom:10px;left:0;color:#657796;font-size:6px;text-align:center}.hgc-result-actions{position:relative;z-index:3;display:flex;align-items:center;justify-content:space-between;gap:12px;padding-top:6px;border-top:1px solid rgba(126,163,255,.1)}.hgc-result-actions p{margin:0;color:#8491a8;font-size:9px}.hgc-result-actions>div{display:flex;gap:7px}.hgc-result-actions .hgc-action-button{min-width:110px}
.hgc-dialog-overlay{position:fixed;z-index:90;inset:0;display:grid;place-items:center;padding:12px;background:rgba(3,5,8,.92)}.hgc-dialog{width:min(800px,100%);max-height:calc(100vh - 24px);display:grid;grid-template-rows:auto minmax(0,1fr);overflow:hidden;border:1px solid #3a4b64;border-radius:14px;background:linear-gradient(145deg,#111821,#080c12 68%);box-shadow:0 28px 90px rgba(0,0,0,.64)}.hgc-dialog>header{display:flex;align-items:center;justify-content:space-between;padding:10px 12px;border-bottom:1px solid rgba(126,163,255,.1)}.hgc-dialog>header strong{font-size:13px}.hgc-dialog-body{min-height:0;max-height:calc(100vh - 75px);overflow-y:auto;overscroll-behavior:contain;padding:10px}.hgc-prob-row{display:flex;align-items:center;gap:8px;padding:8px 7px;border-bottom:1px solid rgba(126,163,255,.07)}.hgc-prob-row span{min-width:0;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:10px}.hgc-prob-row b{color:#cbdcff;font-size:9px}.hgc-dialog-icon{width:31px;height:31px}.hgc-insufficient strong{color:#efb4c0;font-size:15px}.hgc-insufficient p{color:#8d99af;font-size:10px;line-height:1.6}.hgc-history-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.hgc-history-section{min-width:0;border:1px solid rgba(148,166,196,.14);border-radius:9px;background:#0e141d;overflow:hidden}.hgc-history-section>header{display:flex;align-items:end;justify-content:space-between;padding:8px 9px;border-bottom:1px solid rgba(126,163,255,.08)}.hgc-history-section>header strong{font-size:11px}.hgc-history-section>header small{color:#7785a0;font-size:8px}.hgc-history-list{display:grid;max-height:calc(100vh - 125px);overflow-y:auto;overscroll-behavior:contain}.hgc-history-row,.hgc-reward-row{display:flex;align-items:center;gap:8px;min-width:0;padding:8px;border-bottom:1px solid rgba(126,163,255,.07)}.hgc-history-row>b{flex:0 0 40px;color:#cbdcff;font-size:9px}.hgc-history-row>span,.hgc-reward-row>span{min-width:0;flex:1}.hgc-history-row strong,.hgc-history-row small,.hgc-reward-row strong,.hgc-reward-row small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.hgc-history-row strong,.hgc-reward-row strong{font-size:9px}.hgc-history-row small,.hgc-reward-row small{margin-top:2px;color:#7b88a2;font-size:8px}.hgc-history-row em{color:#6d7a95;font-size:8px;font-style:normal}.hgc-reward-row>b{font-size:8px;white-space:nowrap}.hgc-reward-row.is-pending>b{color:#e1c47f}.hgc-reward-row.is-sent>b{color:#88c1c9}.hgc-reward-row.is-failed>b{color:#df929e}.hgc-history-empty{padding:28px 10px;color:#68769a;font-size:9px;text-align:center}

/* 751 x 528 game-client composition: native reflow, never scaled */
html.game-client-layout .roulette-page,
html.game-client-layout .hino-gacha-page{width:100%;height:100%;min-height:0;overflow:hidden}
html.game-client-layout .hgc-shell{width:100%;height:100%;min-height:0}
html.game-client-layout .hgc-stage-panel{height:100%;min-height:0;display:grid;grid-template-columns:224px minmax(0,1fr);grid-template-rows:12px 58px minmax(0,1fr) 58px;gap:5px 12px;padding:8px 12px 9px;overflow:hidden;background:radial-gradient(circle at 24% 52%,rgba(91,88,178,.13),transparent 29%),radial-gradient(circle at 78% 20%,rgba(65,100,158,.08),transparent 34%)}
html.game-client-layout .hgc-status{position:static;grid-column:2;grid-row:1;align-self:center;justify-self:end;font-size:7px}
html.game-client-layout .hgc-eyebrow{grid-column:1;grid-row:1;align-self:center;font-size:7px}
html.game-client-layout .hgc-heading{grid-column:1 / -1;grid-row:2;align-items:center;min-width:0;padding:2px 0 6px;gap:12px}
html.game-client-layout .hgc-heading h1{margin:2px 0 3px;font-size:24px}
html.game-client-layout .hgc-heading p{max-width:360px;overflow:hidden;font-size:8px;line-height:1.35;text-overflow:ellipsis;white-space:nowrap}
html.game-client-layout .hgc-meta{display:grid;grid-template-columns:auto auto;grid-template-rows:17px 25px;align-items:center;column-gap:9px;font-size:7px;line-height:1.2}
html.game-client-layout .hgc-meta>span{grid-column:1;grid-row:1;align-self:end}
html.game-client-layout .hgc-meta>strong{grid-column:1;grid-row:2;align-self:start;font-size:9px}
html.game-client-layout .hgc-meta>strong b{font-size:14px}
html.game-client-layout .hgc-meta-actions{grid-column:2;grid-row:1 / 3;align-self:center;margin:0;gap:4px}
html.game-client-layout .hgc-aux-button,
html.game-client-layout .hgc-action-button{min-height:25px;padding:0 8px;border-radius:7px;font-size:8px}
html.game-client-layout .hgc-stage{grid-column:1;grid-row:3 / 5;width:100%;height:auto;min-height:0;margin:0;border-right:1px solid rgba(126,163,255,.08)}
html.game-client-layout .hgc-orbit{width:238px;height:238px}
html.game-client-layout .hgc-sigil{width:170px;height:170px}
html.game-client-layout .hgc-deck{width:130px;height:181px;transform:translateY(-5px)}
html.game-client-layout .hgc-deck-card:nth-child(1){transform:translate(-4px,4px)}
html.game-client-layout .hgc-deck-card:nth-child(2){transform:translate(4px,1px)}
html.game-client-layout .hgc-deck-card:nth-child(3){transform:translate(-2px,-3px)}
html.game-client-layout .hgc-deck-top{transform:translate(1px,-7px)}
html.game-client-layout .hgc-stage-copy{bottom:8px;padding-right:12px;font-size:8px}
html.game-client-layout .hgc-collection{grid-column:2;grid-row:3;min-height:0;display:grid;grid-template-rows:auto minmax(0,1fr);padding:5px 0 3px;overflow:hidden}
html.game-client-layout .hgc-collection-head{min-height:28px;padding:0 2px 3px}
html.game-client-layout .hgc-collection-head h2{font-size:12px}
html.game-client-layout .hgc-collection-head p{font-size:6px}
html.game-client-layout .hgc-collection-actions{gap:4px}
html.game-client-layout .hgc-collection-actions>span{font-size:7px}
html.game-client-layout .hgc-collection-actions .hgc-aux-button{min-height:22px;padding:0 6px;font-size:7px}
html.game-client-layout .hgc-viewport{min-height:0;height:100%;margin-top:1px;padding-bottom:1px}
html.game-client-layout .hgc-track{min-height:100%;height:100%;gap:8px;padding:5px 7px 10px}
html.game-client-layout .hgc-pool-card{flex-basis:auto;width:auto;height:min(142px,calc(100% - 3px));aspect-ratio:5/7}
html.game-client-layout .hgc-pool-card:hover,
html.game-client-layout .hgc-pool-card:focus-visible{transform:translateY(calc(var(--pool-lift,0) - 4px))}
html.game-client-layout .hgc-card-name{font-size:7px}
html.game-client-layout .hgc-card-grade{font-size:6px}
html.game-client-layout .hgc-card-qty{font-size:5px}
html.game-client-layout .hgc-controls{grid-column:2;grid-row:4;height:58px;gap:6px;margin:0}
html.game-client-layout .hgc-draw-button{min-height:0;height:58px;padding:6px 8px 6px 39px;border-radius:9px}
html.game-client-layout .hgc-draw-button:before{left:11px;width:20px;height:20px;font-size:7px}
html.game-client-layout .hgc-draw-button span{gap:1px}
html.game-client-layout .hgc-draw-button span b{font-size:10px}
html.game-client-layout .hgc-draw-button span small{max-width:92px;overflow:hidden;font-size:6px;text-overflow:ellipsis;white-space:nowrap}
html.game-client-layout .hgc-draw-button em strong{font-size:12px}
html.game-client-layout .hgc-draw-button em small{font-size:6px}
html.game-client-layout .hgc-modal{padding:7px}
html.game-client-layout .hgc-result-shell{width:100%;height:calc(100vh - 14px);max-height:none;padding:9px 11px 8px;border-radius:10px}
html.game-client-layout .hgc-result-shell:before{top:64px;width:300px;height:300px;margin-left:-150px}
html.game-client-layout .hgc-result-head{min-height:45px;padding:0 2px 6px}
html.game-client-layout .hgc-result-head span{font-size:7px}
html.game-client-layout .hgc-result-head h2{margin-top:2px;font-size:19px}
html.game-client-layout .hgc-result-head p{margin-top:3px;font-size:8px}
html.game-client-layout .hgc-result-grid{grid-template-columns:repeat(5,minmax(0,1fr));grid-auto-rows:auto;align-content:start;justify-items:stretch;gap:6px;min-height:0;margin:5px 0;padding:6px 9px 7px 6px}
html.game-client-layout .hgc-result-grid[data-count="1"]{grid-template-columns:138px;align-content:center;justify-content:center;justify-items:center}
html.game-client-layout .hgc-result-grid[data-count="10"]{grid-template-rows:repeat(2,minmax(0,1fr));align-content:center;justify-items:center}
html.game-client-layout .hgc-result-grid[data-count="100"]{max-height:none;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px;padding:6px 10px 7px 6px}
html.game-client-layout .hgc-result-card{width:min(100%,116px);max-height:100%;justify-self:center}
html.game-client-layout .hgc-result-grid[data-count="100"] .hgc-result-card{width:100%;max-height:none}
html.game-client-layout .hgc-result-actions{min-height:33px;gap:8px;padding-top:5px}
html.game-client-layout .hgc-result-actions p{font-size:7px}
html.game-client-layout .hgc-result-actions>div{gap:5px}
html.game-client-layout .hgc-result-actions .hgc-action-button{min-width:82px}
html.game-client-layout .hgc-dialog-overlay{padding:7px}
html.game-client-layout .hgc-dialog{width:min(720px,100%);height:calc(100vh - 14px);max-height:none;border-radius:10px}
html.game-client-layout .hgc-dialog>header{min-height:37px;padding:6px 9px}
html.game-client-layout .hgc-dialog>header strong{font-size:11px}
html.game-client-layout .hgc-dialog-body{height:100%;max-height:none;padding:7px}
html.game-client-layout .hgc-history-grid{height:100%;min-height:0;gap:7px}
html.game-client-layout .hgc-history-section{min-height:0;display:grid;grid-template-rows:35px minmax(0,1fr);overflow:hidden}
html.game-client-layout .hgc-history-section>header{padding:6px 8px}
html.game-client-layout .hgc-history-list{height:100%;max-height:none;min-height:0}
html.game-client-layout .hgc-history-row,
html.game-client-layout .hgc-reward-row{padding:6px 7px}
html.game-client-layout .hgc-prob-row{padding:6px}

@keyframes hgcOrbit{to{transform:rotate(342deg)}}
@keyframes hgcFloat{0%,100%{opacity:.35;transform:translate3d(0,4px,0)}50%{opacity:1;transform:translate3d(0,-6px,0)}}
@keyframes hgcGlint{0%,22%{opacity:0;transform:rotate(12deg) translateX(-25%)}42%{opacity:.82}62%,100%{opacity:0;transform:rotate(12deg) translateX(185%)}}
@keyframes hgcBusy{0%,100%{transform:translate3d(0,-5px,0)}50%{transform:translate3d(0,-12px,0)}}
@keyframes hgcDeal{0%{opacity:0;transform:translate3d(0,-58px,0) rotate(-2deg)}62%{opacity:1;transform:translate3d(0,4px,0) rotate(.5deg)}100%{opacity:1;transform:translate3d(0,0,0) rotate(0)}}

@media(max-width:699px){
  .hgc-stage-panel{padding:18px 14px;overflow:visible}.hgc-status{top:18px;right:14px}.hgc-heading{align-items:flex-start;flex-direction:column}.hgc-meta{width:100%;text-align:left}.hgc-meta-actions{justify-content:flex-start}.hgc-stage{height:245px}.hgc-orbit{width:260px;height:260px}.hgc-deck{width:140px;height:195px}.hgc-collection-head{align-items:flex-start;flex-direction:column}.hgc-controls{grid-template-columns:1fr}.hgc-history-grid{grid-template-columns:1fr}.hgc-result-grid,.hgc-result-grid[data-count="100"]{grid-template-columns:repeat(2,minmax(0,1fr))}.hgc-result-grid[data-count="10"]{grid-template-rows:none}.hgc-result-actions{align-items:flex-start;flex-direction:column}
}
@media(prefers-reduced-motion:reduce){
  .hino-gacha-page *,
  .hino-gacha-page *:before,
  .hino-gacha-page *:after{animation-duration:.01ms!important;animation-delay:0ms!important;transition-duration:.01ms!important}
}
