/* The Atlas Exchange: game-first cockpit. Interactive HUD remains HTML. */
:root{--cell:clamp(76px,min(10.5vw,calc((100dvh - 410px)/3)),132px);--cyan:#69f6ff;--gold:#ffd463;--text:#fff8ef;--muted:#c3daf3}
html{height:100%;background:#070719}
body{min-height:100%;background:#070719;color:var(--text);overflow:hidden}
body:before{display:none}
#stars{display:none!important}
.spin-options .mobile-hint{display:none}
.cockpit-scene{position:fixed;inset:0;z-index:0;background-image:linear-gradient(180deg,#0605137a 0,#06051b31 27%,#0603155c 75%,#06030bd9 100%),url('./assets/cockpit-nebula-v1.webp');background-size:cover;background-position:center center;pointer-events:none}
.cockpit-scene:after{content:"";position:absolute;inset:0;background:radial-gradient(ellipse at 50% 44%,transparent 19%,#09041936 72%,#030207aa 100%);pointer-events:none}
.game-shell{position:relative;z-index:1;display:grid;grid-template-rows:58px minmax(0,1fr) 29px;height:100dvh;min-height:540px;isolation:isolate}
.topbar{width:100%;height:58px;max-width:none;padding:0 clamp(12px,2.2vw,34px);gap:14px;background:linear-gradient(180deg,#070a19f5,#080b1ccf);border:0;border-bottom:1px solid #80f7ff85;box-shadow:0 6px 24px #02030dcc;backdrop-filter:blur(12px);position:relative;z-index:10}
.brand{font-family:Bahnschrift,'Segoe UI',sans-serif;font-size:15px;letter-spacing:1.6px;white-space:nowrap;gap:10px;color:#fff}.brand em{font-style:normal;color:#ffb2f5;text-shadow:0 0 18px #f538d577}.brand small{font-size:7px;letter-spacing:1.45px;color:#9edaf6;margin-top:2px}.brand-mark{flex:none;width:30px;height:33px;font-size:22px;letter-spacing:0;transform:none;border:1px solid #a9fbff9e;border-radius:7px;background:linear-gradient(135deg,#8ce9ff51,#e35efe5c);color:#fff1a6;box-shadow:0 0 20px #42eaff76,inset 0 0 10px #ff86f77a}.brand-mark:after{display:none}
.practice{margin-left:auto;border:1px solid #79f8f67a;border-radius:100px;padding:7px 11px;background:#06333e9e;color:#9cfff0;white-space:nowrap;font-size:8px;letter-spacing:1.2px;box-shadow:0 0 16px #00ffe228}.practice i{background:#5effb7;margin-right:6px}
.header-actions{display:flex;gap:6px;align-items:center;flex:none}
.icon-button{display:grid;place-items:center;width:34px;height:34px;border:1px solid #a8e9ff8c;border-radius:6px;background:linear-gradient(140deg,#104d69b8,#1d1d57bd);color:#e9ffff;font-size:19px;text-shadow:0 0 11px #5df8ff99;box-shadow:inset 0 1px #d9ffff46,0 2px 10px #01010b91}.icon-button:hover:not(:disabled){background:linear-gradient(140deg,#1a7f96,#6e2e91);border-color:#ffe387;box-shadow:0 0 17px #6bfaff81}.icon-button[aria-pressed=true]{color:#7b9caa}
main.game-stage{position:relative;max-width:none;width:100%;min-width:0;min-height:0;padding:8px clamp(12px,2vw,32px);margin:0;display:grid;place-items:center;overflow:hidden}
.windshield-reticle{position:absolute;inset:10px 6vw auto;display:flex;justify-content:space-between;align-items:center;color:#b5faff9c;font:8px Consolas,monospace;letter-spacing:2px;text-shadow:0 0 10px #5afcff;pointer-events:none}.windshield-reticle i{width:20px;height:20px;border:1px solid #afffffa8;border-radius:50%;box-shadow:0 0 12px #75ffff73;position:relative}.windshield-reticle i:before,.windshield-reticle i:after{content:"";position:absolute;background:#a1faff8c}.windshield-reticle i:before{width:1px;height:30px;left:9px;top:-5px}.windshield-reticle i:after{height:1px;width:30px;top:9px;left:-5px}
.game{width:min(910px,100%);min-width:0;display:flex;flex-direction:column;gap:8px;filter:drop-shadow(0 18px 24px #02020ed6)}
.game-heading{display:flex;align-items:center;justify-content:center;text-align:center;gap:24px;color:#fff;min-height:52px}.game-heading p{margin:0 0 1px;color:#a0f7ff;font-size:9px;font-weight:800;letter-spacing:3.2px;text-shadow:0 0 12px #63f9ff}.game-heading h1{margin:0;font-family:Bahnschrift,'Arial Narrow','Segoe UI',sans-serif;font-size:clamp(27px,3vw,42px);line-height:1;letter-spacing:1.1px;font-weight:900;color:#fff3a8;text-shadow:0 2px #9a3865,0 0 12px #ff7d7d,0 0 32px #ff54c7}.game-heading h1 span{font-weight:900;color:#f7b7ff;text-shadow:0 2px #584291,0 0 20px #e656ff}.heading-spark{font-size:24px;color:#fff8b1;text-shadow:0 0 22px #ffa7dd}
.machine-tabs{display:flex;gap:7px;margin:0}.machine-tabs button{height:39px;min-width:0;padding:0 12px;justify-content:center;gap:7px;border:1px solid #66def9a6;border-radius:6px 6px 2px 2px;background:linear-gradient(145deg,#0e3c62e8,#23165edd);color:#d6edff;font-size:11px;letter-spacing:1px;box-shadow:inset 0 1px #a1f7ff45,0 2px 8px #02020f9e}.machine-tabs button>span{color:#a0f5ff;font-size:9px}.machine-tabs small{margin-left:4px;color:#c3d5f1;font-size:8px}.machine-tabs button.selected{border-color:#ffdd91;background:linear-gradient(135deg,#ad2a93f0,#742eb7e8 55%,#9c4a8dc9);color:#fff;box-shadow:inset 0 -3px #ffe081,0 0 20px #ff5be368}.machine-tabs button.selected>span,.machine-tabs button.selected small{color:#fff5ba}
.cabinet{position:relative;padding:9px 13px 0;border:2px solid #7afff9d6;border-radius:12px;background:linear-gradient(160deg,#0b1b3fc5,#201041a9 50%,#081126e8);box-shadow:0 0 0 4px #070b20d9,0 0 0 5px #f787fb83,0 0 34px #ff62ea65,inset 0 0 26px #1adfff1b;backdrop-filter:blur(8px)}.cabinet:before,.cabinet:after{content:"";top:-4px;width:36px;height:28px;border-top:4px solid #ffde8f;filter:drop-shadow(0 0 8px #ffcb83);z-index:7}.cabinet:before{left:-4px;border-left:4px solid #ffde8f}.cabinet:after{right:-4px;border-right:4px solid #ffde8f}
.cabinet-top{height:61px;padding:0 7px 6px;display:flex;align-items:center;justify-content:space-between;gap:10px}.jackpot-label{min-width:0}.cabinet-top .eyebrow{margin:0 0 3px;color:#ffe38b;font-size:9px;letter-spacing:2px;text-shadow:0 0 12px #ffb56b}.jackpot{display:flex;align-items:baseline;gap:8px}.jackpot>span{font-size:clamp(25px,3vw,39px);color:#fff9cb;font-weight:900;line-height:1;text-shadow:0 0 11px #ffba44,0 0 27px #ff6a87;font-variant-numeric:tabular-nums}.jackpot small{font-size:9px;color:#ffe892;font-weight:800}.jackpot-description{display:block;min-height:0;color:#eeccff;font-size:8px;letter-spacing:1.1px;text-align:right;text-shadow:0 0 10px #b973ff}
.reel-surround{border:2px solid #b5fff8;border-radius:10px;background:#071d3bad;box-shadow:0 0 0 3px #02091bd9,0 0 24px #72fffac2,inset 0 0 27px #65f5ff73;overflow:hidden}.reel-window{height:calc(var(--cell)*3);padding:0 7px;gap:4px;background:radial-gradient(ellipse at 50% 50%,#1f6395cf,#152565d8 55%,#080f35eb);isolation:isolate}.reel-window:before{background:linear-gradient(#07112bd9,#1021504d,transparent)}.reel-window:after{background:linear-gradient(transparent,#091a4f59,#050d29e3)}.reel-surround:after{opacity:.45}.reel{background:linear-gradient(90deg,#81fff915,transparent 18%,#9c87ff25 50%,transparent 82%,#82fff915);border-right:1px solid #d4fff772}.reel:nth-child(even){background:linear-gradient(90deg,#ff89dd19,transparent 22%,#76dfff22 50%,transparent 82%,#e98cfa1a)}.symbol img{width:min(calc(var(--cell) - 20px),95%);height:calc(var(--cell) - 25px);filter:drop-shadow(0 0 10px #62e9ff) drop-shadow(0 0 20px #ed72ff8c);object-fit:contain}.symbol span{font-weight:850;color:#fff;letter-spacing:1px;font-size:8px;text-shadow:0 0 8px #1ff8ff,0 1px 3px #000}.payline{border-color:#ffeeb4;background:linear-gradient(90deg,#fc7ddd1d,#f8d35c16,#71f4ff22);box-shadow:0 0 17px #ffdd8e9e,inset 0 0 22px #ffbc6399;color:#ffe78e}.payline span{font-size:13px;text-shadow:0 0 10px #ffecb4}.reel.winning{background:radial-gradient(ellipse,#ffd0547a,#ef4af532 60%,transparent 83%)}
.machine-status{height:33px;gap:8px;padding:0 4px}.machine-status p{font-size:10px;color:#e3f6ff;font-weight:650;text-shadow:0 1px 2px #000}.status-dot{width:7px;height:7px;background:#76ffd3;box-shadow:0 0 12px #6dffce}.centerline{font-size:8px;color:#96dfff;letter-spacing:1px}
.console{display:grid;grid-template-columns:1.2fr 1.1fr 1.25fr;margin:0 -13px;padding:12px 14px 13px;gap:14px;border-top:2px solid #53dfffaa;border-radius:0 0 10px 10px;background:linear-gradient(145deg,#051e3ef5,#151442fa 52%,#251044f4);box-shadow:inset 0 8px 20px #41e6ff15}.console .eyebrow{margin:0 0 4px;color:#a8efff;font-size:8px;letter-spacing:1.2px;font-weight:800}.balance-cell,.wager-cell{min-width:0}.balance-cell>strong{display:block;color:#fff5bf;font-family:Bahnschrift,'Segoe UI',sans-serif;font-size:clamp(20px,2.4vw,31px);font-weight:850;line-height:1.1;text-shadow:0 0 16px #ffd85e;font-variant-numeric:tabular-nums}.currency-switch,.wager-steps{display:flex;gap:5px;margin-top:7px}.currency-switch button,.wager-steps button{min-height:25px;padding:3px 6px;border:1px solid #6cd7f393;border-radius:4px;background:#122b59a6;color:#d1e8ff;font-size:8px;font-weight:700;letter-spacing:.1px}.currency-switch button.selected,.wager-steps button.selected{color:#241339;background:#fff1a3;border-color:#fff7c7;box-shadow:0 0 11px #ffe17e8c}.wager-control{height:32px;gap:4px}.wager-control strong{font-size:clamp(18px,2vw,27px);color:#fff;font-weight:800;text-shadow:0 0 10px #5ceeff}.wager-control button{width:31px;height:31px;background:#145786b8;border:1px solid #8aecff;border-radius:6px;color:#eaffff;font-size:22px;box-shadow:inset 0 1px #ecffff6b}.wager-steps{justify-content:center}.wager-steps button{width:34px}
.spin-cell{padding:0}.spin-button{height:60px;width:100%;gap:7px;border-radius:12px;border:2px solid #fff8d3;background:linear-gradient(125deg,#ffeb6a,#ff9d31 55%,#ff4ba5);color:#2a1044;font-size:clamp(12px,1.5vw,19px);font-weight:1000;letter-spacing:1.1px;box-shadow:inset 0 2px #fffde3,0 4px 0 #a43970,0 0 21px #ff8a70,0 0 42px #ff5ad97a;text-shadow:0 1px #ffffff91}.spin-button:hover:not(:disabled){background:linear-gradient(125deg,#fff7a0,#ffbd50 55%,#ff70c1);box-shadow:inset 0 2px #fff,0 4px 0 #a43970,0 0 30px #ffaf68,0 0 50px #ff5ad9}.spin-symbol{font-size:24px;line-height:1}.spin-options{margin-top:6px;color:#beeaff;font-size:8px}.spin-options button{color:#d8f3ff;font-size:9px}.spin-options button span{color:#ffc976}.spin-arrow{top:6px;right:8px}
.under-machine{display:flex;justify-content:space-between;align-items:center;gap:9px;margin:0;padding:2px 6px;color:#e7dcff;font-size:10px;text-shadow:0 1px 3px #030310}.under-machine button{padding:3px 6px;color:#fff6b1;font-weight:800;font-size:10px;letter-spacing:.6px}.under-machine button span{display:inline-grid;place-items:center;width:17px;height:17px;margin-left:4px;border:1px solid #ffe28c;border-radius:50%}
footer{margin:0;padding:0 clamp(14px,2vw,30px);height:29px;display:flex;flex-wrap:nowrap;align-items:center;justify-content:space-between;gap:8px;border-top:1px solid #82efff76;background:#050b20e5;color:#c2d7eb;font-size:8px;font-weight:700;letter-spacing:1px;position:relative;z-index:5}footer>span:first-child{width:auto;text-align:left}footer nav{gap:14px}footer nav a{font-size:8px;font-weight:800;text-decoration:none;color:#f5eec6;padding:4px 0}footer nav a:hover{text-decoration:underline}
.cabinet.spinning{box-shadow:0 0 0 4px #070b20d9,0 0 0 5px #cba0ff,0 0 40px #d580ffb0}.cabinet.win{box-shadow:0 0 0 4px #070b20d9,0 0 0 6px #fff5b2,0 0 60px #ffc564ed}.celebration{background:radial-gradient(ellipse,#101947ef,#270b5ec2 64%,#05061a35);backdrop-filter:blur(4px)}.celebration>span{color:#fff3a6;font-weight:900}.celebration strong{color:#fff9c6;text-shadow:0 0 20px #ffca65,0 0 42px #ff5ddf}.celebration small{color:#cefbff}
.activity-status{position:absolute;top:8px;left:50%;transform:translateX(-50%);z-index:15;width:min(680px,calc(100vw - 24px));margin:0;text-align:center;background:#081d39f2;border-color:#ffda79;color:#fff8da;box-shadow:0 7px 30px #01030d}.activity-status[data-state=error]{background:#382022f3}.discord-activity main.game-stage{padding-top:8px}
dialog{border:2px solid #9dfcff;border-radius:12px;background:linear-gradient(145deg,#0a2d53,#1c0b3b 70%,#280f48);box-shadow:0 0 45px #78faff74,0 30px 100px #01010de8}dialog::backdrop{background:#020315c9;backdrop-filter:blur(8px)}dialog h2{color:#fff1a8;font-weight:850;text-shadow:0 0 14px #ff8dd0}dialog p,dialog li{color:#dceaff}.table td:last-child{color:#ffe181}.small-button{background:#17486e;border-color:#98eaff;color:#f8ffff}.small-button:hover{background:#286b9b}.modal-note{color:#c2d8e6!important}.history-list{display:grid;gap:7px}.history-list .history-entry{padding:12px;border:1px solid #88dffd78;border-radius:7px;background:#17406380;font-size:12px}.history-list .history-entry span{font-size:10px}.history-list .history-entry strong{font-size:14px}.symbol-legend{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;margin-top:12px}.symbol-legend span{display:flex;align-items:center;gap:6px;font-size:9px;border:1px solid #6fbeed6b;border-radius:6px;padding:5px}.symbol-legend img{width:25px;height:25px;object-fit:contain}
@media(max-width:700px){:root{--cell:clamp(52px,min(23.5vw,calc((100dvh - 445px)/3)),93px)}.game-shell{grid-template-rows:53px minmax(0,1fr) 27px;min-height:560px}.topbar{height:53px;padding:0 8px;gap:6px}.brand{font-size:10px;letter-spacing:.5px;gap:5px}.brand small{font-size:5px;letter-spacing:.55px}.brand-mark{width:23px;height:26px;font-size:16px}.practice{display:none}.topbar .header-actions{display:flex;gap:3px}.icon-button{width:29px;height:31px;font-size:17px;border-radius:5px}.header-actions #fullscreen{display:none}main.game-stage{padding:4px 9px}.windshield-reticle{display:none}.game{gap:5px}.game-heading{min-height:39px;gap:9px}.game-heading p{font-size:6px;letter-spacing:2px}.game-heading h1{font-size:clamp(21px,5.4vw,29px);letter-spacing:.1px}.heading-spark{font-size:14px}.machine-tabs{gap:3px}.machine-tabs button{height:35px;padding:0 2px;gap:3px;font-size:8px;letter-spacing:0}.machine-tabs button>span{font-size:7px}.machine-tabs small{font-size:6px;margin-left:1px}.cabinet{padding:7px 8px 0;border-radius:8px;backdrop-filter:none}.cabinet:before,.cabinet:after{width:19px;height:18px}.cabinet-top{height:48px;padding:0 3px 5px}.cabinet-top .eyebrow{font-size:7px;letter-spacing:.7px}.jackpot>span{font-size:clamp(20px,5.7vw,28px)}.jackpot small{font-size:7px}.jackpot-description{font-size:6px;max-width:70px;line-height:1.25}.reel-window{gap:2px;padding:0 3px}.symbol img{width:min(calc(var(--cell) - 13px),95%);height:calc(var(--cell) - 20px)}.symbol span{font-size:6px;letter-spacing:0}.reel-window[data-count='5'] .symbol img{width:min(calc(var(--cell) - 18px),calc((100vw - 45px)/5 - 6px));height:calc(var(--cell) - 19px)}.reel-window[data-count='5'] .symbol span{font-size:5px}.payline span{font-size:9px}.machine-status{height:28px}.machine-status p{font-size:8px}.centerline{display:none}.console{grid-template-columns:1fr 1fr;gap:8px 11px;margin:0 -8px;padding:8px 9px 10px}.console .eyebrow{font-size:7px;letter-spacing:.45px}.balance-cell>strong{font-size:clamp(18px,5vw,23px)}.wager-control strong{font-size:19px}.wager-control button{height:29px;width:29px}.currency-switch,.wager-steps{margin-top:5px;gap:3px}.currency-switch button,.wager-steps button{min-height:23px;padding:2px 4px;font-size:7px}.spin-cell{grid-column:1/-1}.spin-button{height:49px;font-size:15px}.spin-symbol{font-size:20px}.spin-options{margin-top:5px;font-size:7px}.under-machine{font-size:8px;padding:0 3px}.under-machine button{font-size:8px;white-space:nowrap}footer{height:27px;padding:0 10px;font-size:6px}footer nav{gap:8px}footer nav a{font-size:7px}.cockpit-scene{background-position:center center}.symbol-legend{grid-template-columns:repeat(2,1fr)}}
@media(max-width:700px){.cockpit-scene{background-image:linear-gradient(180deg,#06051396 0,#06051b38 25%,#06031559 75%,#06030bbd 100%),url('./assets/cockpit-mobile-v1.webp');background-size:100% 100%;background-position:center}}
@media(max-width:700px){.spin-options .mobile-hint{display:inline}.spin-options .desktop-hint{display:none}}
@media(max-width:380px){.brand small{display:none}.brand{font-size:9px}.header-actions{gap:2px}.icon-button{width:28px}.machine-tabs small{display:none}.jackpot-description{display:none}}
@media(max-height:680px){.game-shell{height:auto;min-height:100dvh}.game-stage{overflow:auto}.game{padding:5px 0}.cockpit-scene{position:fixed}.game-shell footer{min-height:27px}}
@media(prefers-reduced-motion:reduce){.cabinet,.spin-button,.game-heading{text-shadow:none}.reel.winning .symbol[data-center] img{animation:none}}
