/* Table identity and explicit hold feedback sit above the optical cabinet styles. */
.table-navigation{display:flex;align-items:center;gap:22px;min-width:0}
.table-switch{display:flex;align-items:center;gap:8px;padding-right:20px;border-right:1px solid #cab57438}
.table-switch>span{font-size:7px;letter-spacing:.2em;color:var(--gold)}
.table-switch select{max-width:185px;background:#0a2029db;border:1px solid #d1b87866;border-radius:4px;font:11px var(--serif);letter-spacing:.025em;padding:7px 25px 7px 10px;cursor:pointer}
.table-switch select:disabled{opacity:.55;cursor:default}
.table-switch option{background:#071a25;color:#eee4cb}
.spin{overflow:hidden;isolation:isolate;touch-action:manipulation;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}
.spin .hold-meter{position:absolute;inset:0;background:linear-gradient(90deg,#bafaff12,#cffffc69);border-right:2px solid #d9fff9;transform:scaleX(var(--hold-progress,0));transform-origin:left;opacity:0;z-index:-1;pointer-events:none}
.spin.hold-active .hold-meter{opacity:1}
.spin.hold-active{box-shadow:0 0 0 3px #0a181c,0 0 0 4px #f4dfaa,inset 0 0 30px #a7fff24d,0 0 28px #7bf6e642}
.spin .auto-light{position:absolute;top:7px;right:8px;width:5px;height:5px;border-radius:50%;background:#8cffe5;box-shadow:0 0 10px #77ffe1;opacity:0}
.spin.auto-active,.in-bonus .spin.auto-active{background:radial-gradient(ellipse at top,#fdffd561,transparent 65%),linear-gradient(135deg,#409988,#24685d 55%,#153d48);border-color:#eeffcd;color:#f7ffe3;box-shadow:0 0 0 3px #081e23,0 0 0 5px #eeedbda6,inset 0 0 25px #a2fff74a,0 0 32px #96ffe773}
.spin.auto-active .auto-light{opacity:1}
.spin.auto-active .hold-meter{opacity:.12;border:0}
.spin.auto-active small{color:#ecffb3}
.spin.auto-active.spin-busy{opacity:1;cursor:pointer}
.spin.auto-active .spin-icon{animation:auto-turn 5s linear infinite}
.bonus-cell.empty{opacity:1;border-style:solid;border-color:#abd0d520;overflow:hidden;background:linear-gradient(90deg,#0616208c,#12374433,#04102077)}
.bonus-cell.empty .symbol{opacity:.84;filter:drop-shadow(0 3px 7px #0009)}
.bonus-cell.bonus-spinning .symbol{animation:reel-scroll .14s linear infinite;filter:blur(1.5px) drop-shadow(0 0 6px var(--accent))}
.bonus-cell.bonus-landed .symbol{animation:reel-land .3s ease-out}
.in-bonus .reels{opacity:0}
.archive-symbol{position:relative;background-size:contain!important;background-position:center!important;background-repeat:no-repeat;aspect-ratio:1}
.cell .archive-symbol{width:100%;height:100%;max-width:100%;max-height:100%}
.bonus-cell .archive-symbol{width:100%;height:100%}
.archive-symbol[data-symbol=wild]:after,.archive-symbol[data-symbol=compass]:after,.archive-symbol[data-symbol=orb]:after{position:absolute;bottom:2%;left:50%;transform:translateX(-50%);padding:2px 5px;border:1px solid #c4dfff70;background:#070e1bde;border-radius:3px;color:#edf8ff;font:600 clamp(5px,.55vw,9px) Arial,sans-serif;letter-spacing:.15em;line-height:1;white-space:nowrap}
.archive-symbol[data-symbol=wild]:after{content:'WILD';color:#f4dfff;border-color:#dfb9f3}
.archive-symbol[data-symbol=compass]:after{content:'PORTAL';color:#f7eac7}
.archive-symbol[data-symbol=orb]:after{content:'CORE';color:#a6e4ff}
.bonus-cell.locked .archive-symbol:after,.core-mini .archive-symbol:after,.paytable .archive-symbol:after{display:none}
body[data-table=multiverse]{--gold:#d6bd8d;--gold-dark:#80614e;--accent:#81c8ff;--accent-rgb:129,200,255}
body[data-table=multiverse][data-realm=ember]{--accent:#f1b55d;--accent-rgb:241,181,93}
body[data-table=multiverse][data-realm=bloom]{--accent:#c7a2ef;--accent-rgb:199,162,239}
body[data-table=multiverse] .title-row h1{letter-spacing:.3em;color:#e3e3ed;font-weight:600;text-shadow:0 0 24px #72a6fc7a,0 2px 5px #000}
body[data-table=multiverse] .title-row .eyebrow{color:var(--accent)}
body[data-table=multiverse] .world-shade{background:linear-gradient(180deg,#02050c82,#07091112 35%,#02091499 90%),radial-gradient(ellipse at center,transparent 25%,#020813a6)}
body[data-table=multiverse] .cabinet{border-radius:5px;border-color:#cab797;background:#050d1991;box-shadow:0 0 0 3px #1e1d20,0 0 0 4px #c4a2727a,0 20px 60px #000c,0 0 55px #668cff24}
body[data-table=multiverse] .cabinet-top{background:linear-gradient(90deg,#081624,#1b2437,#091421);border-radius:0}
body[data-table=multiverse] .cabinet-status{background:linear-gradient(90deg,#080e1b,#17233b,#08121e);border-radius:0}
body[data-table=multiverse] .stage{background:linear-gradient(120deg,#080f2191,#0a183754 60%,#060d1d9c)}
body[data-table=multiverse] .reel{border-color:#c1d9ff1c;background:linear-gradient(90deg,#040b16ab,#30437215 50%,#040c1b78)}
body[data-table=multiverse] .compass-ui{border-radius:5px;transform:rotate(45deg);width:66px;height:66px;margin-block:30px}
body[data-table=multiverse] .compass-ui span{transform:rotate(-45deg);font-size:45px}
body[data-table=multiverse] .familiar{width:20%;filter:drop-shadow(0 0 18px #b3b1ff70)}
body[data-table=multiverse] .realms{gap:18px}
body[data-table=multiverse] .realms button{letter-spacing:.11em}
@keyframes auto-turn{to{transform:rotate(360deg)}}
@media(max-width:1050px){.table-navigation{gap:12px}.table-switch{padding-right:12px}.table-navigation .incoprea span{display:none}.table-switch select{max-width:175px;font-size:10px}body[data-table=multiverse] .realms{gap:10px}body[data-table=multiverse] .realms button{font-size:8px}.spin.auto-active{font-size:18px}}
@media(max-width:760px){.table-navigation{gap:9px}.table-switch{gap:4px;padding-right:0;border:0}.table-switch>span{font-size:6px;letter-spacing:.1em}.table-switch select{max-width:140px;padding:6px 3px;font-size:10px}.table-navigation .incoprea{font-size:7px;letter-spacing:.08em}.topbar{gap:5px}.utilities{gap:3px}.utilities button{min-width:27px;width:27px}.table-switch+ .incoprea{display:none}body[data-table=multiverse] .title-row h1{font-size:30px;letter-spacing:.2em}body[data-table=multiverse] .realms{gap:5px}body[data-table=multiverse] .realms button{font-size:6px;letter-spacing:.05em;gap:4px;padding:8px 4px;max-width:37%;text-align:center}body[data-table=multiverse] .realms button span{max-width:100px;line-height:1.35}.spin.auto-active{font-size:21px}.spin small{font-size:5px;letter-spacing:.12em}.bonus-cell.empty .symbol{height:100%;width:100%}}
@media(max-height:550px) and (min-width:650px){.table-switch>span{font-size:6px}.table-switch select{font-size:9px;padding:4px}.table-navigation .incoprea{font-size:8px}body[data-table=multiverse] .title-row h1{font-size:22px}.spin.auto-active{font-size:17px}body[data-table=multiverse] .realms{gap:0}body[data-table=multiverse] .realms button{font-size:5px;max-width:78px;padding-block:5px}body[data-table=multiverse] .realms button span{max-width:74px}.bonus-cell .archive-symbol{height:100%;width:100%}.archive-symbol:after{bottom:0!important;padding:1px 3px!important;font-size:4px!important}}
@media(min-width:1100px) and (min-height:851px) and (max-height:1050px){.topbar{height:48px}.title-row{padding:14px 0 9px}.title-row h1{font-size:35px}.realms{margin-bottom:17px}.machine{grid-template-columns:120px minmax(0,890px) 120px;justify-content:center;gap:22px}.stage{aspect-ratio:1000/530}.console,.machine-footer{max-width:890px}.console{min-height:90px;margin-top:15px;padding:12px 20px}.spin{min-height:64px}.machine-footer{margin-block:13px}.bottom-mark{padding-bottom:12px}}
.cell .archive-symbol{position:absolute;inset:5%;width:90%;height:90%;aspect-ratio:auto}
.bonus-cell .archive-symbol{inset:5%;width:90%;height:90%;aspect-ratio:auto}
body[data-table=multiverse] .cell{border-bottom-color:#a6c8ff1b}
body[data-table=multiverse] .cell:before{content:'';position:absolute;inset:4% 10%;border:1px solid #89b0e70a;border-radius:3px;background:radial-gradient(ellipse at center,#4c73b010,transparent 70%);pointer-events:none}

/* A fixed environment surrounds the physical glass; pointer movement never moves it. */
.world-image{inset:0;transform:none;scale:none;translate:none;animation:none}
.reels,.glass,.routes,.bonus-grid{transform:none}

/* The rotor has a square, centered axis separate from all button typography. */
.spin{gap:2px;padding:7px 8px;line-height:1.05}
.spin #spin-text{display:block;white-space:nowrap;line-height:1.1;letter-spacing:.12em}
.spin .spin-icon{position:static;display:block;flex:0 0 14px;width:14px;height:14px;font-size:0;line-height:0;letter-spacing:0;opacity:.8;animation:none;transform:none}
.spin .spin-icon svg{display:block;width:100%;height:100%;transform-origin:50% 50%;transform-box:fill-box}
.spin.auto-active .spin-icon{animation:none}
.spin.auto-active .spin-icon svg,.spin.spin-busy .spin-icon svg{animation:rotor-turn 2.8s linear infinite}
.spin small{margin-top:0;line-height:1.2}
@keyframes rotor-turn{to{transform:rotate(360deg)}}

/* Two slow, low-opacity optical planes catch light without obscuring symbols. */
.optical-caustics,.optical-film{position:absolute;inset:0;pointer-events:none;overflow:hidden;contain:paint;mix-blend-mode:screen}
.optical-caustics{z-index:2;opacity:.17;background:repeating-conic-gradient(from 18deg at 40% 125%,transparent 0deg 13deg,rgba(var(--accent-rgb),.15) 15deg,transparent 19deg 31deg);mask-image:linear-gradient(transparent,#0008 60%,#000);animation:caustic-light 21s ease-in-out infinite alternate}
.optical-film{z-index:9;opacity:.3;background:linear-gradient(116deg,transparent 8%,#f2ffe90a 8.5%,transparent 9%,transparent 80%,#bdffff0b 80.5%,transparent 81%)}
.optical-film i{position:absolute;width:2px;height:2px;border-radius:50%;background:#cffff7;box-shadow:0 0 6px 2px #9affed33;left:9%;top:74%;animation:glass-drift 17s ease-in-out infinite;opacity:0}
.optical-film i:nth-child(2){left:91%;top:44%;animation-delay:-6s;animation-duration:23s}
.optical-film i:nth-child(3){left:47%;top:89%;animation-delay:-11s;animation-duration:29s}
@keyframes caustic-light{from{opacity:.08;transform:translateX(-1%)}to{opacity:.22;transform:translateX(1%)}}
@keyframes glass-drift{0%,100%{opacity:0;transform:translateY(0)}20%,70%{opacity:.65}90%{opacity:0;transform:translateY(-34px)}}
.page-hidden *,.page-hidden *:before,.page-hidden *:after{animation-play-state:paused!important}
.reduced-motion .optical-caustics,.reduced-motion .optical-film i{animation:none!important;opacity:.06;transform:none}
.reduced-motion .spin .spin-icon svg{animation:none!important}

/* Pelagic Observatory: champagne-metal hardware over a luminous deep-sea chamber. */
body[data-table=pelagic]{--gold:#e9d5a5;--gold-dark:#847158;--accent:#8aeae0;--accent-rgb:138,234,224}
body[data-table=pelagic][data-realm=ember]{--accent:#edc58c;--accent-rgb:237,197,140}
body[data-table=pelagic][data-realm=bloom]{--accent:#c2b8f3;--accent-rgb:194,184,243}
body[data-table=pelagic] .world-image[data-world=ember]{filter:sepia(.3) hue-rotate(325deg) saturate(.8)}
body[data-table=pelagic] .world-image[data-world=bloom]{filter:hue-rotate(30deg) saturate(.8)}
body[data-table=pelagic] .world-shade{background:linear-gradient(#02121866,#03172022 40%,#010d15a6),radial-gradient(ellipse at center,transparent 35%,#03172080)}
body[data-table=pelagic] .cabinet{border-radius:30px;border-color:#dac59a;background:linear-gradient(140deg,#1e4b527d,#061b286e 48%,#344f5078);box-shadow:0 0 0 3px #243e46,0 0 0 4px #bdac7d88,inset 0 0 25px #a9e8d31a,0 20px 60px #000b}
body[data-table=pelagic] .stage{background:linear-gradient(145deg,#081d315c,#17485426,#04203470)}
body[data-table=pelagic] .reel{background:linear-gradient(90deg,#0019258c,#34707616,#021f3180);border-color:#c6ebdf22}
body[data-table=pelagic] .glass-front{border-color:#d7ead858;box-shadow:0 0 15px #aaffee12,inset 0 0 28px #b0ffff0a}
body[data-table=pelagic] .optical-caustics{animation-duration:27s;background:repeating-conic-gradient(from 25deg at 55% -90%,transparent 0deg 10deg,#95eee520 12deg,transparent 15deg 25deg);mask-image:linear-gradient(#0008,transparent 95%)}
body[data-table=pelagic] .familiar{width:21%;filter:drop-shadow(0 0 14px #a1ffed66)}
body[data-table=pelagic] .orbital{border-style:dotted;opacity:.4}
.pelagic-symbol{background-image:url('assets/pelagic-symbols.png')}
body[data-table=pelagic] .cell .symbol{max-width:100%}
body[data-table=pelagic] .title-row h1{letter-spacing:.1em}

/* The title shares the utility bar, bringing the cabinet closer to the top. */
.topbar{display:grid;grid-template-columns:minmax(190px,1fr) minmax(280px,1.6fr) minmax(190px,1fr);height:76px;gap:15px;align-items:center}
.topbar .title-row{padding:0;margin:0;text-align:center;min-width:0}
.topbar .title-row .ornament{display:none}
.topbar .title-row h1{font-size:clamp(17px,1.6vw,28px);letter-spacing:.13em;white-space:nowrap;line-height:1.15}
.topbar .title-row .eyebrow{font-size:6px;letter-spacing:.25em;margin:0 0 6px}
.topbar .utilities{justify-self:end;white-space:nowrap}
.topbar .table-navigation{gap:12px}
.topbar .table-navigation .incoprea{display:none}
.topbar .table-switch{border:0;padding:0}
.realms{margin-top:8px;margin-bottom:15px}
body[data-table=multiverse] .topbar .title-row h1{font-size:clamp(20px,1.7vw,29px);letter-spacing:.22em}
body[data-table=pelagic] .topbar .title-row h1{font-size:clamp(17px,1.5vw,27px);letter-spacing:.09em}
@media(max-width:1099px){.topbar{grid-template-columns:1fr 1fr;height:auto;min-height:91px;gap:4px 10px;padding:7px 0}.topbar .table-navigation{grid-column:1;grid-row:1}.topbar .utilities{grid-column:2;grid-row:1}.topbar .title-row{grid-column:1/-1;grid-row:2;padding:5px 0 2px}.topbar .title-row h1,body[data-table=multiverse] .topbar .title-row h1,body[data-table=pelagic] .topbar .title-row h1{font-size:21px}.topbar .title-row .eyebrow{font-size:5px;margin-bottom:4px}.realms{margin-top:7px;margin-bottom:13px}}
@media(max-width:760px){.topbar{min-height:87px}.topbar .title-row h1,body[data-table=pelagic] .topbar .title-row h1{font-size:19px;letter-spacing:.09em}.realms{margin-bottom:13px}.spin{gap:2px;padding:5px 6px}.spin .spin-icon{width:12px;height:12px;flex-basis:12px}.spin #spin-text{font-size:20px}body[data-table=pelagic] .cabinet{border-radius:16px}body[data-table=pelagic] .realms{gap:5px}body[data-table=pelagic] .realms button{font-size:6px;letter-spacing:.05em}}
@media(max-height:550px) and (min-width:650px){.topbar{height:50px;min-height:0;padding:0;grid-template-columns:190px minmax(200px,1fr) 190px;gap:7px}.topbar .table-navigation,.topbar .title-row,.topbar .utilities{grid-column:auto;grid-row:auto}.topbar .title-row h1,body[data-table=multiverse] .topbar .title-row h1,body[data-table=pelagic] .topbar .title-row h1{font-size:14px;letter-spacing:.07em}.topbar .title-row .eyebrow{font-size:4px;margin-bottom:3px}.realms{position:static;flex-direction:row;margin:0 0 8px;gap:22px}.realms button{padding:4px 0;max-width:none!important}.realms button span{max-width:none!important}.spin{gap:1px;padding:3px 5px}.spin #spin-text{font-size:16px}.spin .spin-icon{width:10px;height:10px;flex-basis:10px}}
/* Worlds now follow the feature automatically; the table starts just below the bar. */
main{padding-top:16px}
body[data-table=pelagic] .world-image[data-world=ember],body[data-table=pelagic] .world-image[data-world=bloom]{filter:none}
@media(max-width:1099px){main{padding-top:10px}}
@media(max-height:550px) and (min-width:650px){main{padding-top:8px}}
/* Reels are temporarily noninteractive while turning, but their light stays on. */
.cell:disabled{opacity:1}
.sound-mix{margin:22px 0;padding:16px 18px;border:1px solid #a6cebf2b;border-radius:8px;background:#17434326}
.sound-mix-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}
#panel .sound-mix h3{margin:0;font-size:20px}
#panel .sound-mix p{font-size:11px;margin:10px 0 15px}
.sound-mix .small-button{margin:0;padding:8px 12px;white-space:nowrap;font-size:8px}
.mix-row{display:grid;grid-template-columns:108px minmax(60px,1fr) 35px;gap:12px;align-items:center;margin:12px 0;color:#c5dbd2;font-size:11px}
.mix-row input{width:100%;min-width:0;accent-color:var(--accent);cursor:pointer}
.mix-row output{text-align:right;color:var(--gold);font-variant-numeric:tabular-nums;font-size:10px}
@media(max-width:460px){.sound-mix{padding:14px 12px}.mix-row{grid-template-columns:84px minmax(45px,1fr) 32px;gap:8px;font-size:10px}#panel .sound-mix h3{font-size:17px}.sound-mix .small-button{font-size:7px;padding:7px 8px}}
