@font-face{font-family:'Room Arcade';src:url('./assets/higher-lower/room-arcade.woff') format('woff');font-display:swap;font-weight:400 900}
body.higher-lower-open #case-detail{overflow:hidden;background:#000}
body.higher-lower-open #orbit-stage{visibility:hidden}
body.higher-lower-open .detail-copy,body.higher-lower-open .detail-brand,body.higher-lower-open .case-close{display:none}
body.higher-lower-open #game-window.hl-active{position:fixed;inset:0;z-index:2;margin:0;padding:0;border:0;border-radius:0;box-shadow:none;background:#000;display:block;overflow:auto;color:#fff;overscroll-behavior:contain}
.hl-shell{--hl-cyan:#00c7e7;--hl-red:#ff263d;--hl-font:'Room Arcade','Courier New',monospace;min-height:100svh;width:100%;padding:clamp(20px,3.8vh,44px) max(24px,4vw);background:#000;color:#fff;text-shadow:none;font-family:var(--hl-font);outline:none;box-sizing:border-box;isolation:isolate}
.hl-shell *{box-sizing:border-box}
.hl-body{max-width:1440px;margin:auto;min-height:calc(100svh - clamp(40px,7.6vh,88px));display:flex;flex-direction:column;justify-content:center;gap:clamp(16px,2.8vh,30px)}
.hl-heading{text-align:center}
.hl-title{display:flex;justify-content:center;align-items:center;gap:clamp(14px,2.2vw,34px);margin:0;font:clamp(24px,5.3vw,76px)/1.18 var(--hl-font);letter-spacing:-.055em;white-space:nowrap}
.hl-title>span:nth-child(2){display:block}
.hl-arrow{display:block;background:var(--hl-red);width:clamp(24px,4.2vw,64px);height:clamp(32px,5.4vw,82px);flex-shrink:0;clip-path:polygon(40% 0,60% 0,60% 12%,72% 12%,72% 24%,84% 24%,84% 36%,100% 36%,100% 58%,65% 58%,65% 100%,35% 100%,35% 58%,0 58%,0 36%,16% 36%,16% 24%,28% 24%,28% 12%,40% 12%)}
.hl-down{background:var(--hl-cyan);transform:rotate(180deg)}
.hl-subtitle{font:clamp(13px,1.8vw,26px)/1.5 var(--hl-font);margin:16px 0 0;letter-spacing:.04em}
.hl-shell button{font-family:var(--hl-font);text-shadow:none;backdrop-filter:none;touch-action:manipulation;border-radius:0;min-height:44px}
.hl-shell button:focus-visible,.hl-shell a:focus-visible{outline:3px dashed #fff;outline-offset:7px}
.hl-sports{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:clamp(16px,2.4vw,36px);padding:3px 0}
.hl-shell .hl-sport{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;padding:clamp(6px,.65vw,12px);border:3px solid var(--hl-cyan);border-radius:2px;box-shadow:3px 0 #006477,-3px 0 #006477;background:#000;aspect-ratio:1.4;min-width:0;color:#fff;cursor:pointer;transition:transform 130ms ease,border-color 130ms ease;overflow:visible}
.hl-shell .hl-sport::before{content:'';position:absolute;inset:5px;border:2px solid transparent;pointer-events:none}
.hl-shell .hl-sport.is-selected{border-color:#fff;box-shadow:4px 0 #fff,-4px 0 #fff;transform:translateY(-2px)}
.hl-shell .hl-sport.is-selected::before{border-color:#fff}
.hl-shell .hl-sport.is-selected::after{content:'';position:absolute;left:-19px;top:42%;width:24px;height:30px;background:var(--hl-red);clip-path:polygon(0 0,25% 0,25% 15%,50% 15%,50% 30%,75% 30%,75% 40%,100% 40%,100% 60%,75% 60%,75% 70%,50% 70%,50% 85%,25% 85%,25% 100%,0 100%);animation:hl-pointer 1.2s steps(2,end) infinite}
.hl-art{display:block;width:100%;min-height:0;overflow:hidden;aspect-ratio:334/173;align-self:center;background:#000;pointer-events:none}
.hl-art svg{display:block;width:100%;height:100%;overflow:hidden;image-rendering:pixelated;mix-blend-mode:screen}
.hl-sport-name{font:clamp(12px,1.55vw,22px)/1.2 var(--hl-font);letter-spacing:-.055em;margin:8px 0 5px;white-space:nowrap;position:relative;z-index:1}
.hl-sport .hl-art{animation:hl-float 3.2s steps(10,end) infinite;transform-origin:center bottom}
.hl-sport:nth-child(2n) .hl-art{animation-delay:-1.3s}
.hl-sport:nth-child(3n) .hl-art{animation-delay:-2.2s}
.hl-sport.is-selected .hl-art{animation:hl-selected 1.4s steps(8,end) infinite}
.hl-card-best{position:absolute;right:10px;top:9px;font:9px/1.3 var(--hl-font);background:#000;padding:4px;color:var(--hl-cyan);z-index:2}
.hl-nav{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-top:4px}
.hl-shell .hl-button{position:relative;display:inline-flex;align-items:center;justify-content:center;background:#000;color:#fff;border:3px solid var(--hl-cyan);padding:16px 24px;font:clamp(13px,1.5vw,22px)/1.3 var(--hl-font);box-shadow:3px 3px #006376;cursor:pointer;transition:transform .12s ease,background .12s ease;min-height:54px}
.hl-shell .hl-button:hover{background:#06242b}
.hl-shell .hl-button:active{transform:translate(3px,3px);box-shadow:none}
.hl-shell .hl-all{min-width:36%;font-size:clamp(15px,2vw,28px);padding:18px 24px}
.hl-shell .hl-text-button{background:transparent;border:0;padding:12px 0;color:#fff;font:clamp(10px,1.3vw,19px)/1.5 var(--hl-font);box-shadow:none;cursor:pointer;white-space:nowrap}
.hl-shell .hl-text-button:hover{color:var(--hl-cyan);background:transparent}
.hl-back::before{content:'';display:inline-block;width:9px;height:14px;background:var(--hl-red);clip-path:polygon(0 50%,100% 0,100% 100%);margin-right:13px;vertical-align:middle}
.hl-help::after{content:'';display:inline-block;width:9px;height:14px;background:var(--hl-red);clip-path:polygon(0 0,100% 50%,0 100%);margin-left:13px;vertical-align:middle}
.hl-bottom{display:flex;justify-content:space-between;align-items:center;gap:14px;margin-top:0}
.hl-credit{color:#929292;font:clamp(7px,.65vw,10px)/1.5 var(--hl-font);text-align:right}
.hl-tools{display:flex;gap:20px;align-items:center}
.hl-shell .hl-tools .hl-text-button{font-size:9px;color:#929292;min-height:30px;padding:4px 0}
.hl-shell .hl-tools .hl-text-button:hover{color:#fff}
.hl-scorebar{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:clamp(10px,1.25vw,18px);color:#bbb;border-bottom:2px solid #2a2a2a;padding:0 0 18px}
.hl-scorebar span:nth-child(2){color:#fff}
.hl-scorebar span:last-child{color:var(--hl-cyan)}
.hl-shell[data-screen=round] .hl-title{font-size:clamp(22px,3vw,43px)}
.hl-shell[data-screen=round] .hl-arrow{width:30px;height:38px}
.hl-shell[data-screen=round] .hl-subtitle{font-size:clamp(12px,1.6vw,22px);margin-top:12px}
.hl-shell[data-screen=round] .hl-body{gap:clamp(12px,2vh,24px)}
.hl-match{display:grid;grid-template-columns:minmax(0,1fr) 62px minmax(0,1fr);align-items:stretch;max-width:1060px;margin:0 auto;width:100%}
.hl-contender{min-width:0;border:3px solid #3a3a3a;padding:10px 20px 16px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:12px;min-height:240px}
.hl-contender:last-child{border-color:var(--hl-cyan)}
.hl-art-small{width:min(190px,65%);max-height:88px;animation:hl-float 3.2s steps(10,end) infinite;flex-shrink:0}
.hl-name{font:clamp(14px,1.7vw,24px)/1.6 var(--hl-font);margin:0;min-height:3.2em;display:flex;align-items:center;justify-content:center;overflow-wrap:anywhere}
.hl-value{font:clamp(38px,5.5vw,76px)/1.15 var(--hl-font);color:#fff;letter-spacing:-.06em}
.is-hidden-number .hl-value{color:var(--hl-cyan)}
.hl-unit{font:clamp(8px,.85vw,12px)/1.4 var(--hl-font);margin:0;color:#aaa}
.hl-vs{align-self:center;text-align:center;color:var(--hl-red);font-size:22px}
.hl-revealed .hl-contender:last-child{border-color:#68dd90}
.hl-revealed .hl-contender:last-child .hl-value{color:#68dd90;animation:hl-reveal .24s steps(4,end) both}
.hl-revealed.hl-wrong .hl-contender:last-child{border-color:var(--hl-red)}
.hl-revealed.hl-wrong .hl-contender:last-child .hl-value{color:var(--hl-red)}
.hl-actions{display:flex;flex-direction:column;align-items:center;gap:12px;text-align:center}
.hl-question{font:clamp(15px,1.6vw,21px)/1.5 'Courier New',monospace;margin:0}
.hl-choices{display:flex;align-items:stretch;justify-content:center;gap:24px;width:100%}
.hl-choices .hl-button{min-width:220px}
.hl-shell .hl-higher{border-color:var(--hl-red);box-shadow:3px 3px #85202a}
.hl-shell .hl-higher:hover{background:#360810}
.hl-higher::before,.hl-lower::before{content:'';width:16px;height:20px;margin-right:18px;background:var(--hl-red);clip-path:polygon(50% 0,100% 45%,70% 45%,70% 100%,30% 100%,30% 45%,0 45%)}
.hl-lower::before{background:var(--hl-cyan);transform:rotate(180deg)}
.hl-keyhint{font:10px/1.5 'Courier New',monospace;color:#888;margin:0}
.hl-period{font:12px/1.4 'Courier New',monospace;color:#aaa;margin:0}
.hl-feedback{display:flex;align-items:center;justify-content:center;gap:20px;flex-wrap:wrap}
.hl-feedback strong{font-size:clamp(15px,2vw,25px);line-height:1.4}
.hl-feedback span{font:16px/1.5 'Courier New',monospace;color:#ddd}
.hl-feedback.is-correct strong{color:#68dd90}.hl-feedback.is-wrong strong{color:var(--hl-red)}
.hl-sources{display:flex;gap:18px;flex-wrap:wrap;justify-content:center;font:10px/1.5 'Courier New',monospace;margin:0}
.hl-sources a{color:#a8a8a8;text-underline-offset:3px}
.hl-round-nav{margin-top:auto;border-top:2px solid #292929;padding-top:6px}
.hl-round-nav .hl-text-button{font-size:clamp(9px,1vw,13px)}
.hl-instructions{width:min(850px,100%);margin:0 auto;display:flex;flex-direction:column;gap:24px;padding:15px 0}
.hl-rule{display:flex;gap:25px;align-items:flex-start}
.hl-rule>b{font-size:24px;color:var(--hl-cyan)}
.hl-rule h3{font:clamp(14px,1.5vw,20px)/1.5 var(--hl-font);margin:0 0 8px}
.hl-rule p,.hl-example p,.hl-note{font:17px/1.5 'Courier New',monospace;color:#ccc;margin:0}
.hl-example{border:2px solid var(--hl-cyan);padding:20px;display:flex;flex-direction:column;gap:12px}
.hl-example strong{font-size:13px;color:var(--hl-cyan)}
.hl-note{font-size:13px;color:#999}
.hl-shell[data-screen=help] .hl-nav{justify-content:center}
.hl-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
@keyframes hl-float{0%,100%{transform:translateY(0)}50%{transform:translateY(-3px)}}
@keyframes hl-selected{0%,100%{transform:translateY(0)}50%{transform:translateY(-6px)}}
@keyframes hl-pointer{0%,100%{transform:translateX(0)}50%{transform:translateX(3px)}}
@keyframes hl-reveal{from{transform:translateY(5px);opacity:.3}to{transform:translateY(0);opacity:1}}
.hl-motion-off *{animation:none!important;transition:none!important}
@media(min-width:1000px) and (max-height:760px){.hl-shell{padding:20px 5vw}.hl-body{min-height:calc(100svh - 40px);max-width:1160px;gap:18px}.hl-title{font-size:52px}.hl-subtitle{font-size:18px;margin-top:10px}.hl-sports{gap:22px}.hl-sport-name{font-size:17px}.hl-nav .hl-all{font-size:21px;padding:12px}.hl-nav .hl-text-button{font-size:13px}.hl-contender{min-height:210px;gap:8px}.hl-art-small{max-height:60px}.hl-value{font-size:48px}.hl-name{font-size:17px}.hl-shell[data-screen=round] .hl-body{gap:12px}.hl-shell[data-screen=round] .hl-title{font-size:29px}.hl-shell[data-screen=round] .hl-subtitle{font-size:15px}.hl-scorebar{padding-bottom:10px;font-size:12px}.hl-shell .hl-button{padding:10px 20px;min-height:48px}}
@media(max-width:900px){.hl-sport-name{font-size:12px}.hl-shell{padding:24px}.hl-body{min-height:calc(100svh - 48px)}.hl-sports{gap:18px}.hl-title{font-size:4.9vw}.hl-shell .hl-text-button{font-size:10px}.hl-credit{font-size:7px}.hl-choices .hl-button{min-width:180px}.hl-card-best{font-size:7px;right:5px;top:5px}}
@media(max-width:650px){.hl-shell{padding:24px 22px max(16px,env(safe-area-inset-bottom))}.hl-body{gap:20px;min-height:calc(100svh - 44px)}.hl-title{font-size:clamp(17px,4.45vw,28px);gap:9px;letter-spacing:-.075em}.hl-arrow{width:22px;height:30px}.hl-subtitle{font-size:12px;margin-top:15px}.hl-sports{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.hl-shell .hl-sport{aspect-ratio:1.5;padding:6px;border-width:2px}.hl-sport-name{font-size:clamp(10px,2.6vw,16px);margin:5px 0 2px}.hl-shell .hl-sport.is-selected::after{left:-13px;width:17px;height:24px}.hl-shell .hl-sport::before{inset:3px;border-width:1px}.hl-nav{flex-wrap:wrap;gap:10px}.hl-nav .hl-all{order:-1;width:100%;font-size:18px;padding:13px}.hl-nav .hl-text-button{font-size:10px;min-height:40px}.hl-bottom{align-items:flex-start;flex-direction:column;gap:5px}.hl-credit{align-self:flex-end}.hl-tools{gap:20px}.hl-shell .hl-tools .hl-text-button{font-size:8px}.hl-card-best{font-size:6px;padding:2px}.hl-match{grid-template-columns:minmax(0,1fr) 24px minmax(0,1fr)}.hl-contender{padding:8px 6px 14px;gap:8px;min-height:220px;border-width:2px}.hl-vs{font-size:10px}.hl-name{font-size:clamp(11px,2.7vw,17px);line-height:1.65;min-height:4.95em}.hl-value{font-size:clamp(25px,7vw,42px)}.hl-unit{font-size:7px}.hl-art-small{width:90%;max-height:65px}.hl-scorebar{font-size:8px;gap:6px;flex-wrap:wrap;line-height:1.8;padding-bottom:12px}.hl-scorebar>span:first-child{width:100%;color:var(--hl-cyan)}.hl-shell[data-screen=round] .hl-title{font-size:4.45vw}.hl-shell[data-screen=round] .hl-arrow{width:22px;height:30px}.hl-shell[data-screen=round] .hl-subtitle{font-size:11px;line-height:1.7}.hl-question{font-size:15px}.hl-choices{gap:12px}.hl-choices .hl-button{min-width:0;flex:1;max-width:330px;font-size:12px;padding:15px 8px;min-height:52px}.hl-higher::before,.hl-lower::before{width:12px;height:17px;margin-right:9px}.hl-keyhint{display:none}.hl-period{font-size:10px}.hl-feedback{gap:6px}.hl-feedback strong{width:100%;font-size:18px}.hl-feedback span{font-size:14px}.hl-round-nav{gap:8px}.hl-round-nav .hl-text-button{font-size:8px}.hl-back::before{margin-right:6px;width:6px;height:10px}.hl-help::after{margin-left:6px;width:6px;height:10px}.hl-rule{gap:14px}.hl-rule>b{font-size:17px}.hl-rule h3{font-size:12px}.hl-rule p,.hl-example p{font-size:15px}.hl-note{font-size:12px}.hl-instructions{gap:22px}.hl-sources{font-size:9px}}
@media(prefers-reduced-motion:reduce){.hl-shell *{animation:none!important;transition:none!important}}
