*{box-sizing:border-box}html,body{margin:0;height:100%;overflow:hidden}body{color:#f9e5bb;background:#0d0e10;font-family:system-ui,sans-serif}button,a,input{touch-action:manipulation}button,a{color:inherit}button{font:inherit;cursor:pointer;border:1px solid #91704b;border-radius:6px;background:linear-gradient(#403125,#211c18);box-shadow:inset 0 1px #ffffff24,0 2px 4px #0008;padding:8px 14px}button:hover{filter:brightness(1.2)}button:disabled{cursor:default;opacity:.45}a:focus-visible,button:focus-visible,input:focus-visible{outline:3px solid #74eeed;outline-offset:3px}.world{position:fixed;inset:0;background:linear-gradient(#05081033,#080a0d44 50%,#050507ed),url('forge-scene.png') center/cover;z-index:-2}.world:after{content:'';position:absolute;inset:0;box-shadow:inset 0 0 150px 40px #0009;background:radial-gradient(ellipse at 50% 70%,#f77d1720,transparent 60%)}.topbar{height:48px;display:flex;align-items:center;justify-content:space-between;padding:5px max(18px,env(safe-area-inset-left));background:#080c11b0;border-bottom:1px solid #ddaa4a3b;font-size:14px}.topbar>a{padding:7px 12px;text-decoration:none;border:1px solid #9c7c50;border-radius:5px;background:#151b1bd0}.topbar>span{font-weight:800;letter-spacing:2px}.edition{font-size:10px;color:#d8ad69}small{font-weight:400}.topbar small{letter-spacing:0;color:#bfac95;margin-left:8px}.topbar button{font-size:13px;padding:7px 11px}main{height:calc(100dvh - 48px);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:9px;padding:8px 16px max(8px,env(safe-area-inset-bottom));max-width:1150px;margin:auto}.title{text-align:center;flex-shrink:0}.eyebrow{color:#dbb377;letter-spacing:4px;font-size:11px;font-weight:700}.title h1{margin:0;font:900 clamp(30px,4.5vh,55px)/1.05 Georgia,serif;letter-spacing:4px;text-shadow:0 2px #513118,0 4px 0 #261a0f,0 8px 18px #000;color:#f7cf83}.title h1 em{font-style:normal;color:#ffe1a0}.title p{margin:4px 0 0;font:italic 15px Georgia;color:#cbb898}.cabinet{position:relative;width:min(100%,calc((100dvh - 298px)*1.68));border:3px solid #b3894b;outline:2px solid #292522;border-radius:16px 16px 10px 10px;padding:6px;background:repeating-linear-gradient(95deg,#2b241b 0px,#34291b 3px,#211d18 7px,#33291c 11px);box-shadow:inset 0 0 0 2px #efc675,0 18px 55px #000a,0 0 45px #ed782a1f;flex-shrink:0}.crown,.rail{display:flex;align-items:center;justify-content:space-between;gap:8px;background:linear-gradient(#4c3925,#1a1918 45%,#28211b);padding:9px 16px;border:1px solid #8a6d46;box-shadow:inset 0 1px #f4c47445;text-shadow:0 2px #000;font-size:11px;letter-spacing:1.5px}.crown{border-radius:9px 9px 0 0}.crown strong{color:#efbf75;font:700 15px Georgia;letter-spacing:3px}.machine{display:flex;position:relative;background:#101416;padding:9px 8px 9px 13px;gap:9px;border-left:4px ridge #9a784b;border-right:4px ridge #9a784b}.board{flex:1;min-width:0;display:grid;grid-template-columns:repeat(5,1fr);gap:5px;background:linear-gradient(90deg,#020303,#303231,#020303);border:2px solid #0d1113;border-radius:5px;overflow:hidden;box-shadow:inset 0 8px 16px #000}.reel{aspect-ratio:1/3;overflow:hidden;position:relative;border-left:1px solid #9d754d;border-right:1px solid #7d5c37;background:#050909;container-type:inline-size}.strip{display:flex;flex-direction:column;transform:translateY(-25%);will-change:transform}.symbol{width:100%;aspect-ratio:1;background-image:url('symbols.png');background-size:300% 300%;flex-shrink:0;position:relative;box-shadow:inset 0 0 8px #0008;transition:filter .2s}.symbol.winner{filter:brightness(1.2);z-index:1;box-shadow:inset 0 0 0 3px #ffdc62,inset 0 0 18px 3px #ffb50d,0 0 18px #ff981f}.symbol.winner:after{content:'';position:absolute;inset:2px;border:2px solid #fff2ac;border-radius:7px;animation:pulse .65s alternate infinite}.symbol .stamp{position:absolute;bottom:5%;left:0;right:0;text-align:center;color:#fff4bf;font:900 13cqw Georgia;letter-spacing:1px;text-shadow:0 2px #000,0 0 7px #000,0 0 4px #000;background:#170d04bb}.reel.spinning .strip{filter:blur(2px);animation:roll .13s linear infinite}.reel.nudging .strip{animation:nudge .44s cubic-bezier(.18,.6,.3,1) both}.reel.stopping{animation:settle .2s ease-out}.heat{width:48px;flex-shrink:0;display:flex;align-items:center;flex-direction:column;justify-content:space-between;padding:7px 2px;background:linear-gradient(90deg,#30291e,#14191a,#30291e);border:1px solid #a57a40;border-radius:14px;font-size:9px;text-align:center;letter-spacing:1px;box-shadow:0 0 0 2px #080d0e}.heat>span{font:700 10px/1.2 Georgia;color:#efc98c}.heat>div{display:flex;flex:1;flex-direction:column-reverse;gap:3px;width:22px;margin:7px 0}.heat i{flex:1;min-height:1px;border:1px solid #63523c;border-radius:3px;background:linear-gradient(#2b211c,#120e0b)}.heat i.lit{background:linear-gradient(#fff2a1,#ffae2b 45%,#da390e);box-shadow:0 0 8px #ff6e15}.heat strong{font-size:10px;letter-spacing:0}.heat small{font-size:9px;color:#f8cb78;margin-top:5px}.rail{font-size:10px;padding:7px 12px;border-radius:0 0 4px 4px}.rail span:first-child{color:#f6c66d}.console{display:flex;align-items:stretch;gap:7px;flex-shrink:0;width:min(100%,900px);border:2px solid #907043;border-radius:9px;background:linear-gradient(#33332f,#11191b);box-shadow:0 7px 18px #0008,inset 0 1px #e4c38d;padding:7px}.readout{flex:1;min-width:0;padding:6px 13px;background:linear-gradient(#071315,#18201d);border:1px solid #615437;border-radius:4px;display:flex;flex-direction:column;justify-content:center}.readout>span,.bet>span{font-size:10px;letter-spacing:1.5px;color:#b8b6a3}.readout strong{font-size:clamp(20px,3vh,31px);font-variant-numeric:tabular-nums;line-height:1.1;letter-spacing:.4px}.win strong{color:#ffd67a}.bet{text-align:center;display:flex;flex-direction:column;justify-content:center;gap:3px;padding:2px 6px}.bet>div{display:flex;align-items:center;gap:10px}.bet button{padding:4px 10px;font-size:23px;line-height:1}.bet strong{font-size:19px;min-width:29px}.spin{background:linear-gradient(#fff0a5,#e2a244 45%,#a45d20);color:#27180a;font:900 24px Georgia;letter-spacing:2px;text-shadow:0 1px #fff5d3;min-width:140px;border:2px solid #e6be6a;box-shadow:inset 0 2px #fff8d2,0 4px 0 #53341b,0 0 18px #efa33522}.spin:disabled{opacity:.65}#auto{font-weight:700;font-size:13px;min-width:66px;color:#ddcfb6}#auto small{font-size:8px}#auto[aria-pressed=true]{color:#ffdb7d;border-color:#ffc34d}.status{margin:0;text-align:center;height:20px;flex-shrink:0;font-size:14px;color:#e1cfaa;text-shadow:0 2px 4px #000}footer{display:flex;align-items:center;justify-content:space-between;gap:20px;width:min(100%,900px);font-size:12px;flex-shrink:0}.sound{display:flex;align-items:center;gap:10px}.sound label{display:flex;align-items:center;gap:3px}input{accent-color:#dfa747}.sound input[type=range]{width:60px}.disclaimer{font-size:9px;color:#a59a8a;letter-spacing:1px}#reset{font-size:11px;padding:5px 9px;background:#101719c9}.celebration{position:absolute;inset:30% 3%;z-index:8;display:flex;align-items:center;justify-content:center;flex-direction:column;pointer-events:none;opacity:0;transform:scale(.9);transition:.3s;background:radial-gradient(ellipse,#171005ed,transparent 75%);text-align:center;text-shadow:0 3px #5d290b,0 0 22px #000}.celebration.show{opacity:1;transform:scale(1)}.celebration span{font:900 clamp(20px,4vw,48px) Georgia;color:#ffe29b;letter-spacing:4px}.celebration strong{font:900 clamp(32px,6vw,80px) Georgia;color:#fff0b6}.torch{position:absolute;left:-25px;top:25%;width:20px;height:65px;background:linear-gradient(90deg,#20170d,#a37a43,#291c11);border:2px solid #bd934d;border-radius:5px;z-index:2;box-shadow:0 0 20px #000}.torch i{position:absolute;bottom:45px;left:2px;width:13px;height:38px;background:radial-gradient(ellipse at bottom,#fff7ae,#ffaa25 45%,#d83c0a 70%,transparent 75%);border-radius:70% 30% 55% 50%;box-shadow:0 0 30px 12px #ff801935;animation:flame .5s alternate infinite}.embers{position:fixed;inset:0;pointer-events:none;z-index:-1;overflow:hidden}.embers i{position:absolute;bottom:-10px;left:var(--x);width:3px;height:3px;background:#ffc17d;border-radius:50%;box-shadow:0 0 6px #ff7016;animation:ember var(--speed) linear infinite;animation-delay:var(--delay)}body.bonus-active .cabinet{border-color:#80d7d7;box-shadow:0 0 35px #63d4d92e,0 18px 55px #000a}body.bonus-active .heat i.lit{background:#6cfcf4;box-shadow:0 0 10px #72ffff}body.bonus-active .torch i{filter:hue-rotate(140deg)}dialog{color:#ead9b5;border:2px solid #bc9355;border-radius:14px;background:radial-gradient(ellipse at top,#3a2b1c,#101a1d 80%);max-width:620px;max-height:88dvh;padding:28px;box-shadow:0 20px 100px #000;font-size:15px;line-height:1.65}dialog::backdrop{background:#02080cd9;backdrop-filter:blur(6px)}dialog h2{font:700 31px Georgia;color:#ffde95;margin:8px 0 16px}dialog h3{font:700 21px Georgia;color:#ffd88f}.close{float:right;padding:0 9px;font-size:24px}table{border-collapse:collapse;width:100%;font-size:14px}th,td{border-bottom:1px solid #bd965331;padding:6px 8px;text-align:right}th:first-child,td:first-child{text-align:left}#bonus{text-align:center;width:530px}#bonus h2{font-size:42px}#bonus .spin{padding:14px 22px;font-size:20px}.bonus-emblem{width:130px;aspect-ratio:1;margin:auto;background:url('symbols.png') 50% 100%/300% 300%;box-shadow:0 0 40px #ffb02c3d;border-radius:12px}@keyframes roll{from{transform:translateY(-25%)}to{transform:translateY(0)}}@keyframes nudge{from{transform:translateY(-25%)}to{transform:translateY(0)}}@keyframes settle{50%{transform:translateY(3px)}}@keyframes pulse{to{opacity:.4}}@keyframes flame{to{transform:scale(.85,1.12) rotate(7deg)}}@keyframes ember{to{transform:translate(80px,-85vh);opacity:0}}@media(min-width:1000px) and (min-height:800px){main{gap:12px}.cabinet{width:min(100%,calc((100dvh - 325px)*1.68))}}@media(max-width:650px){.topbar{height:42px;padding:4px 9px;font-size:12px}.edition{display:none}.topbar small{font-size:10px}.topbar a,.topbar button{padding:6px 8px;font-size:12px}main{height:calc(100dvh - 42px);padding:6px 9px;gap:9px}.title h1{font-size:clamp(28px,7vw,40px);letter-spacing:2px}.title p{font-size:13px}.eyebrow{font-size:9px;letter-spacing:3px}.cabinet{width:100%;padding:4px;border-width:2px;border-radius:10px}.crown{padding:8px 6px;font-size:8px;letter-spacing:.3px}.crown strong{font-size:10px;letter-spacing:1px}.machine{padding:6px 4px;gap:5px;border-width:2px}.board{gap:2px}.heat{width:33px;padding:5px 1px;border-radius:9px}.heat>span{font-size:8px}.heat>div{width:17px;gap:2px;margin:4px 0}.heat strong{font-size:8px}.heat small{font-size:7px}.rail{padding:6px 5px;font-size:7px;letter-spacing:.6px}.torch{display:none}.console{flex-wrap:wrap;gap:5px;padding:5px}.readout{padding:6px 8px}.readout strong{font-size:21px}.readout>span,.bet>span{font-size:8px;letter-spacing:.8px}.bet{padding:1px 3px}.bet>div{gap:6px}.bet strong{font-size:17px}.bet button{padding:4px 8px;font-size:21px}.console>.spin{min-height:44px;flex:1;font-size:21px}.console>#auto{order:4;min-height:44px;width:65px}.console>.spin{order:5;flex-basis:65%}.status{font-size:11px;height:30px;line-height:15px;max-width:100%}footer{flex-wrap:wrap;gap:6px;justify-content:center;font-size:11px}.disclaimer{order:3;width:100%;text-align:center;font-size:8px}.sound{gap:7px}.sound input[type=range]{width:48px}#reset{font-size:10px}dialog{padding:20px;font-size:14px}#bonus h2{font-size:32px}}@media(orientation:landscape) and (max-height:550px){.topbar{height:32px;font-size:11px;padding:2px 12px}.topbar a,.topbar button{padding:3px 9px;font-size:11px}main{height:calc(100dvh - 32px);padding:3px 10px;gap:3px}.title{position:absolute;left:15px;top:48px;width:100px}.title .eyebrow,.title p{display:none}.title h1{font-size:19px;line-height:1.15;letter-spacing:1px}.title h1 em{display:block;font-size:25px}.cabinet{width:min(calc(100% - 230px),calc((100dvh - 140px)*1.72));padding:3px;border-width:2px}.crown{padding:4px 6px;font-size:7px}.crown strong{font-size:9px;letter-spacing:1px}.machine{padding:4px;gap:4px}.board{gap:2px}.heat{width:30px;padding:3px 1px}.heat>span{font-size:7px}.heat>div{width:16px;gap:2px;margin:3px 0}.heat small{font-size:6px}.heat strong{font-size:7px}.rail{font-size:7px;padding:4px 6px}.console{width:min(100%,720px);flex-wrap:nowrap;padding:4px;gap:5px}.console .spin{flex:0 0 110px;min-width:100px;min-height:35px;font-size:20px;order:0}.console #auto{order:0;width:auto;min-width:50px;min-height:35px;font-size:10px;padding:3px}.readout{padding:3px 8px}.readout strong{font-size:20px}.readout>span,.bet>span{font-size:7px}.bet>div{gap:6px}.bet button{font-size:17px;padding:2px 8px}.bet strong{font-size:16px}.bet{padding:0}.status{font-size:10px;height:14px;line-height:14px}footer{width:min(100%,720px);flex-wrap:nowrap;font-size:10px;gap:5px}.disclaimer{order:0;width:auto;font-size:7px}#reset{font-size:9px;padding:3px 7px}.sound{gap:5px}.sound input[type=range]{width:45px}.torch{display:none}dialog{max-height:90dvh}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important}.embers{display:none}.reel.spinning .strip{filter:none}}
@media(orientation:landscape) and (max-height:550px){.cabinet{width:min(calc(100% - 230px),calc((100dvh - 172px)*1.72))}}
@media(orientation:portrait) and (max-height:650px){main{gap:5px;padding:5px 8px}.title .eyebrow,.title p{display:none}.title h1{font-size:22px;letter-spacing:1px;line-height:1.1}.crown{padding:5px 4px}.crown strong{font-size:8px}.crown>span{font-size:6px}.console{gap:3px;padding:4px}.readout{padding:4px 5px}.readout strong{font-size:18px}.bet>div{gap:3px}.bet button{padding:3px 6px}.console>.spin,.console>#auto{min-height:35px}.status{height:24px;font-size:10px;line-height:12px}footer{gap:3px;font-size:10px}.sound{gap:4px}.sound input[type=range]{width:34px}#reset{font-size:9px;padding:3px 6px}.disclaimer{font-size:7px}}
@media(max-width:350px){.title h1{font-size:17px;white-space:nowrap;letter-spacing:.5px}.topbar>span{font-size:9px;letter-spacing:.3px}.topbar small{font-size:8px;margin-left:2px}.topbar a,.topbar button{font-size:9px;padding:5px 6px;white-space:nowrap}.crown{gap:3px;min-height:22px}.crown strong{font-size:8px;white-space:nowrap}.crown>span{font-size:6px;letter-spacing:0}.machine{padding-right:42px;min-height:0;align-items:flex-start}.board{align-self:flex-start}.heat{position:absolute;top:6px;bottom:6px;right:4px;width:31px;min-height:0;padding:3px 1px}.heat>span{font-size:6px}.heat>div{min-height:0;gap:1px;margin:2px 0}.heat i{min-height:0}.heat small{font-size:6px;margin-top:2px}.heat strong{font-size:7px}.rail{font-size:6px;letter-spacing:0;padding:4px}.readout strong{font-size:16px}.readout>span,.bet>span{font-size:7px;letter-spacing:.2px}.bet strong{font-size:15px;min-width:20px}.bet button{font-size:16px;padding:3px 5px}.bet>div{gap:2px}.console>.spin,.console>#auto{min-height:32px}.console>.spin{font-size:19px}.console>#auto{font-size:10px;width:54px}.console>#auto small{font-size:6px}footer{gap:3px}.sound{font-size:9px;gap:3px}.sound label{gap:1px}.sound input[type=range]{width:30px}.sound input[type=checkbox]{width:11px;height:11px;margin:2px}.disclaimer{font-size:6px;letter-spacing:.5px}#reset{font-size:8px;padding:3px 4px}}
@media(orientation:landscape) and (max-height:550px){.machine{padding-right:40px;align-items:flex-start}.board{align-self:flex-start}.heat{position:absolute;top:4px;bottom:4px;right:4px;min-height:0}.heat>div{min-height:0;gap:1px;margin:2px 0}.heat i{min-height:0}.heat>span{font-size:6px}.heat small{font-size:6px}.crown strong{white-space:nowrap}.crown{gap:3px}.rail{white-space:nowrap;letter-spacing:0}.crown>span{font-size:6px;letter-spacing:0}.console{line-height:1.1}.console .bet{gap:2px}.console .bet>span{white-space:nowrap}footer{white-space:nowrap}}
@media(orientation:landscape) and (max-height:280px){.cabinet{width:calc((100dvh - 190px)*2.6 + 30px)}.crown{justify-content:center;padding:3px}.crown>span{display:none}.crown strong{font-size:7px}.rail{padding:3px;font-size:5px}.rail span:last-child{display:none}.heat{width:25px;padding:2px 0}.machine{padding-right:33px}.heat small{font-size:5px;margin:0}.heat>span{font-size:5px}.heat strong{font-size:6px}.console{padding:3px;gap:3px;min-height:38px}.console .readout{padding:3px 4px}.console .readout strong{font-size:16px}.console .readout>span{font-size:6px;letter-spacing:0}.console .spin{flex-basis:80px;min-width:80px;font-size:17px;min-height:30px;padding:3px 6px}.console #auto{min-width:40px;font-size:8px;min-height:30px}.console #auto small{font-size:5px}.console .bet strong{font-size:14px;min-width:20px}.console .bet button{font-size:15px;padding:2px 5px}.console .bet>div{gap:3px}.status{font-size:9px;height:12px;line-height:12px}footer{font-size:8px}.sound{gap:2px}.sound input[type=checkbox]{height:11px;width:11px}.disclaimer{font-size:5px;letter-spacing:0}#reset{font-size:8px;padding:2px 4px}.topbar>span{font-size:9px}.topbar small{font-size:8px}}
