:root{color-scheme:light;--safe-top:env(safe-area-inset-top,0px);--safe-right:env(safe-area-inset-right,0px);--safe-bottom:env(safe-area-inset-bottom,0px);--safe-left:env(safe-area-inset-left,0px)}html{min-height:100%;-webkit-text-size-adjust:100%;text-size-adjust:100%}body{min-height:100vh;min-height:100dvh;overscroll-behavior-y:none;padding-left:var(--safe-left);padding-right:var(--safe-right)}button,a,select,input{touch-action:manipulation}button:disabled{touch-action:none}body>header{padding-top:var(--safe-top);height:calc(88px + var(--safe-top))}body>footer{padding-bottom:calc(24px + var(--safe-bottom))}dialog{max-height:calc(100vh - var(--safe-top) - var(--safe-bottom) - 24px);max-height:calc(100dvh - var(--safe-top) - var(--safe-bottom) - 24px);overscroll-behavior:contain;scrollbar-gutter:stable}.launch-stage{height:100vh;height:100dvh;top:0;padding-top:var(--safe-top);padding-bottom:var(--safe-bottom)}.grail-title{top:max(6%,calc(var(--safe-top) + 15px))}.launch-caption{bottom:max(9%,calc(var(--safe-bottom) + 20px))}.admin-shell{min-height:100vh;min-height:100dvh}.admin-sidebar{height:100vh;height:100dvh;padding-top:calc(30px + var(--safe-top));padding-bottom:calc(20px + var(--safe-bottom))}.admin-toolbar{padding-top:var(--safe-top);height:calc(74px + var(--safe-top))}.admin-footer{padding-bottom:calc(20px + var(--safe-bottom))}#toast{bottom:calc(28px + var(--safe-bottom));max-width:min(90%,500px)}#connection-status{position:sticky;top:0;z-index:200;padding:10px 16px;background:#fff0e6;border-bottom:1px solid #8e6c3b;color:#f6ddaf;font-size:13.2px;text-align:center;line-height:1.6}#install-app{white-space:nowrap}#install-dialog{max-width:440px;padding:30px;background:#ffffff;border:1px solid #ead8cd}#install-dialog h2{margin-top:20px}#install-dialog p{font-size:14.4px;line-height:1.9;color:#746158}html[data-native] #install-app{display:none}.effect-preview-dialog{max-height:calc(100dvh - var(--safe-top) - var(--safe-bottom) - 24px)}
@media(pointer:coarse){button,.nav,.filter,.text-button,.table-action,.market-actions button{min-height:44px}.close{min-width:44px;min-height:44px;display:grid;place-items:center;right:8px;top:5px}.pagination button{min-width:44px}.wallet .plus{display:grid;place-items:center;min-width:28px}.avatar{min-width:44px;min-height:44px}.search-box{min-height:44px}.admin-nav{min-height:44px}.effect-tier{min-height:150px}.market-actions{gap:4px}.admin-table td{padding-top:13px;padding-bottom:13px}.stock-row{min-height:24px}input,select,textarea{font-size:19.2px!important}.search-box input{min-width:0}.admin-sidebar .brand{min-height:36px}.toggle-row input{min-width:24px;min-height:24px}}
@media(max-width:760px){body>header{height:auto;min-height:calc(110px + var(--safe-top));padding-top:calc(15px + var(--safe-top))}.account{gap:7px}.wallet{white-space:nowrap}header>nav{gap:10px}.hero-copy p{max-width:100%}.admin-content{min-width:0}.table-scroll{-webkit-overflow-scrolling:touch;overscroll-behavior-x:contain}.table-scroll:focus-visible{outline:2px solid #c94011}#toast{font-size:13.2px;padding:13px 16px}.ticker-label{font-size:9.6px}.hero-proof{flex-wrap:wrap;row-gap:12px}.market-metrics .last-research{overflow-wrap:anywhere}.admin-toolbar{height:calc(52px + var(--safe-top))}.admin-sidebar{height:auto;padding:calc(18px + var(--safe-top)) 15px 0}.workspace-badge{top:calc(8px + var(--safe-top))}.admin-mode .admin-toolbar{padding-top:0;height:52px}.opening-meta{gap:10px;font-size:8.4px}.opening-meta>span:last-child{white-space:nowrap}.winner-info{min-width:0}.winner-info h3{overflow-wrap:anywhere}.rarity-label{overflow-wrap:anywhere}.opening-actions{gap:9px}.case-title{gap:5px}.case-card{min-width:0}}
@media(max-width:380px){header{padding-left:4%;padding-right:4%;column-gap:8px}.brand{font-size:27.6px}.brand-icon{width:26px;height:29px;font-size:26.4px}.wallet{gap:6px;padding-left:8px}.wallet b{font-size:12px}.sound-toggle{padding:6px;min-width:32px}.account{gap:5px}.avatar{font-size:12px;min-width:32px!important;min-height:36px!important}.hero h1{font-size:73.2px}.case-grid{gap:10px}.case-info{padding:11px}.case-title h3{font-size:15.6px}.case-price{gap:5px;flex-wrap:wrap}.case-price button{margin-left:auto}.filter{padding:8px;font-size:9.6px}.sort select{max-width:83px}.winner-stage{gap:12px;padding:20px 12px}.winner-card{width:105px}.winner-info h3{font-size:32.4px}.winner-info>strong{font-size:32.4px}.model-results div{font-size:10.8px}.effect-preview-result>img{height:145px}}
@media(max-height:500px) and (orientation:landscape){.hero{grid-template-columns:1.1fr 1fr}.hero-art{height:320px}.hero-copy{padding:25px 0}.hero h1{font-size:68.4px}.hero-proof{gap:10px}.hero-actions{margin:17px 0}.launch-stage .fly-card{width:115px;height:190px}.launch-caption{bottom:5%}.launch-caption>b{font-size:27.6px}.launch-caption>span{font-size:7.2px}.grail-title{top:max(5%,var(--safe-top))}.grail-title b{font-size:34.8px}.grail-title small{font-size:7.2px;letter-spacing:3px}.rarity-crown{font-size:28.8px;top:4%}.rarity-portal{height:60vh;width:60vh}.grail-orbit,.rarity-orbit{height:80vh;width:80vh}.winner-stage{min-height:220px}.winner-card{width:100px}.effect-preview-result{min-height:180px}.effect-preview-result>img{height:105px}.reel-shell{height:190px}.reel-card img{height:115px}.admin-sidebar{position:relative;height:auto}}
@media(prefers-reduced-motion:reduce){.launch-stage{display:none!important}}
@media(max-width:760px){.hero-actions{gap:18px}.hero-actions .primary{display:flex;align-items:center;justify-content:space-between;gap:16px;white-space:nowrap;padding:14px 18px}.hero-actions .primary span{margin-left:0}.hero-actions .text-button{white-space:nowrap}}
@media(max-width:760px){body>header{column-gap:8px}.brand{font-size:28.8px}.brand-icon{width:26px;height:29px;font-size:26.4px}.account{gap:6px}.account .wallet{gap:6px;padding:5px 7px}.account .wallet>span:first-child{display:none}.wallet b{font-size:12px}.wallet .plus{font-size:20.4px;padding:3px 7px}.sound-toggle{padding:6px;min-width:30px}.avatar{width:32px;height:32px;font-size:12px}.admin-sidebar nav{height:auto;min-height:74px;flex-shrink:0;align-items:center;overflow-x:auto;overflow-y:hidden}}

#install-dialog{background:#251d29;border:1px solid #76503c;color:#f6e9cb;border-radius:24px;box-shadow:0 30px 100px #0009}#install-dialog p{color:#c4b6c5}#install-dialog::backdrop{background:#08060dc9;backdrop-filter:blur(8px)}
