/* OMNI / THE SURFACE — presentation only. */
:root{--ink:#111f2b;--white:#f5f6eb;--muted:#c3d1d4;--panel:#243a43;--rim:#8ba8aa;--green:#b2d987;--gold:#f3ca78;--purple:#c4a9e7;--ease:cubic-bezier(.22,.75,.25,1);--accent:#b9db93}
html,body{height:100%;width:100%;overflow:hidden;background:#1c3543}body{font-family:'Trebuchet MS',Arial,sans-serif;font-weight:700;color:var(--white);isolation:isolate}body[data-region="1"]{--accent:#a1dfbd}body[data-region="2"]{--accent:#d5d8e3}body[data-region="3"]{--accent:#f6d18e}body[data-region="4"]{--accent:#a7bbfa}.land{display:none}.scenery{position:fixed;inset:0;z-index:-3;overflow:hidden;background:#36576a}.sceneLayer{position:absolute;inset:-2%;background-size:cover;background-position:center;opacity:0;transition:opacity .65s var(--ease);pointer-events:none}.sceneLayer.visible{opacity:1}.sceneMist{position:absolute;inset:0;background:radial-gradient(ellipse at 48% 42%,#faf8e00d,transparent 57%),linear-gradient(90deg,#102a3b35,transparent 22%,transparent 78%,#102a3b30);pointer-events:none}.veil{z-index:-2;background:linear-gradient(180deg,#12253480 0%,#132d3e0d 23%,#152e3f12 50%,#111f2e9c 100%);pointer-events:none}.app{width:100%;max-width:none;height:100dvh;min-height:0;padding:18px 24px 10px;gap:8px;overflow:hidden;position:relative}.header{display:grid;grid-template-columns:1fr minmax(135px,200px) minmax(120px,160px) minmax(140px,195px);gap:9px;align-items:center;flex:none}.brand{font-size:34px;letter-spacing:-1.7px;line-height:.9;text-shadow:0 3px #183441,1px 0 #183441,-1px 0 #183441}.brand small{color:#e4eac9;font-size:9px;letter-spacing:3px}.brand svg{height:48px;width:48px}.hud{min-height:48px;max-height:56px;border:1px solid #a3bcb9a0;border-radius:13px;background:linear-gradient(155deg,#385365f2,#203a48f2);box-shadow:0 3px 0 #132735cc,inset 0 1px #e8faf340;gap:11px;padding:7px 12px}.hud.gem{background:linear-gradient(155deg,#56486e,#38334f)}.hud.luck{background:linear-gradient(155deg,#435c48,#2d433e)}.hud label{color:#c6d2cf;font-size:9px;letter-spacing:1.7px}.hud strong{font-size:23px;line-height:1.05;font-variant-numeric:tabular-nums}.hud .sym{display:grid;place-items:center}.hud .uiIcon{width:32px;height:32px;filter:drop-shadow(0 2px 0 #162733)}.gameShell{position:relative;display:grid;grid-template-columns:78px minmax(0,1fr) 174px;gap:14px;flex:1;min-height:0;align-items:stretch}.sideRail{gap:8px;justify-content:center;align-self:center;max-height:100%;z-index:2}.navtile{min-height:62px;gap:4px;background:linear-gradient(150deg,#3b5361f5,#243c49f5);border:1px solid #a4b9b480;box-shadow:0 3px 0 #122a35d9,inset 0 1px #d4e5df38;border-radius:14px;font-size:11px;text-shadow:0 1px #172d3a;padding:7px 3px;transition:transform .18s var(--ease),background .18s,box-shadow .18s}.navtile.active{background:linear-gradient(145deg,#577b63,#315146);border-color:#b0cf9d;box-shadow:0 3px #1e3935,inset 0 1px #d7efc048}.navtile .uiIcon{width:29px;height:29px;filter:drop-shadow(0 2px 0 #142b36)}.navtile:hover:not(:disabled){transform:translateX(4px);box-shadow:0 4px #122a35d9,inset 0 1px #d4e5df55}.navtile:active:not(:disabled){transform:translateX(2px) scale(.96)}.navtile small{top:4px;right:4px;font-size:9px}.playfield{position:static;display:flex;flex-direction:column;justify-content:space-between;min-width:0;min-height:0;padding:5px 0 0;align-items:stretch}.fieldtop{min-height:55px;align-items:flex-start}.fieldtop h1{font-size:clamp(23px,3vw,38px);font-weight:900;line-height:1.04;letter-spacing:-1.25px;color:#f7f4e8;text-shadow:0 3px #243b43,0 0 14px #213a4270}.fieldtop .eyebrow{color:#e4e9d9;font-size:10px;letter-spacing:2.2px;text-shadow:0 2px #26404b}.fieldtop .mapbtn{display:none}.sideInfo{align-self:start;gap:9px;margin-top:8px;z-index:2}.panel,.sideInfo .panel{border:1px solid #8ca8ad88;background:linear-gradient(150deg,#273e4cee,#192e3ceF);box-shadow:0 4px #102b3999,inset 0 1px #ebfbf31f;border-radius:15px}.sideInfo .panel{padding:12px}.progresspanel .eyebrow{font-size:10px;color:#bcd0cd;letter-spacing:2px}.progresspanel .row{font-size:10px}.progresspanel .row b{font-size:12px}.progress{height:7px;background:#102a36;border:none}.progress i{background:linear-gradient(90deg,#75b78b,#c3e28a);transition:width .45s var(--ease)}.soundToggle{font-size:10px;min-height:33px}.btn{background:linear-gradient(160deg,#526d7b,#304b5a);border:1px solid #a0b6baaa;border-radius:10px;box-shadow:0 3px 0 #152e3e,inset 0 1px #d9f1ef45;letter-spacing:.35px;text-shadow:0 1px 2px #142e3c;transition:transform .16s var(--ease),filter .16s,box-shadow .16s}.btn.green{background:linear-gradient(160deg,#9dd288,#4c925e);border:1px solid #d5eab3;box-shadow:0 4px #244b36,inset 0 1px #f3ffd375}.btn.gold{background:linear-gradient(160deg,#eac073,#b7813f);border-color:#f4d49a;box-shadow:0 3px #644829,inset 0 1px #fff1bd6b}.btn.purple{background:linear-gradient(160deg,#9b85bf,#675287);border-color:#d4c4ea;box-shadow:0 3px #3d315c,inset 0 1px #f5ddff55}.btn.red{background:linear-gradient(160deg,#b46e69,#93494e);border-color:#dc9e99;box-shadow:0 3px #4e323b,inset 0 1px #ffe0d433}.btn:not(:disabled):hover{filter:brightness(1.10);transform:translateY(-2px)}.btn:not(:disabled):active{transform:translateY(2px) scale(.98);box-shadow:0 1px #132c38,inset 0 1px #eee3}.discoveryStage{position:absolute;left:50%;top:47%;transform:translate(-50%,-50%);width:min(1000px,calc(100vw - 220px));height:clamp(275px,49vh,420px);display:flex;justify-content:center;align-items:center;flex-direction:column;gap:5px;min-height:0;pointer-events:none}.discoveryStage .decisions{pointer-events:auto;position:absolute;bottom:3px;left:50%;transform:translateX(-50%);margin:0;width:250px;min-height:40px;gap:9px}.stageTitle{position:absolute;top:7px;margin:0;font-size:10px;letter-spacing:2.6px;color:#f6f4df;text-shadow:0 2px #223942;opacity:.9}.stageAura{position:absolute;inset:0;background:radial-gradient(ellipse at center,#e4ebbe29,transparent 58%);opacity:1;pointer-events:none}.stageRing{display:none}.result{gap:6px;padding:0;min-height:0;position:relative;z-index:1;width:100%;pointer-events:none;transform-origin:center}.result .emptyicon{font-size:75px;color:#f6f0ce;text-shadow:0 3px #577969;opacity:.9;animation:idleFloat 4s ease-in-out infinite}.result b{font-size:31px;letter-spacing:-.9px;text-shadow:0 3px #2b434c}.result .sub{color:#e7efea;font-size:12px;text-shadow:0 2px #243d4b}.result .itemart{width:clamp(100px,21vh,176px);height:clamp(100px,21vh,176px);filter:drop-shadow(0 8px 8px #0b253666);overflow:visible}.result .itemname{font-size:clamp(26px,3.2vw,41px);letter-spacing:-1px;line-height:1.15;-webkit-text-stroke:0;text-shadow:0 3px #243540,1px 0 #243540,-1px 0 #243540}.result .rarity{font-size:10px;letter-spacing:2.5px;text-shadow:0 2px #273b42}.result .odds{font-size:19px;color:#fff;font-variant-numeric:tabular-nums;text-shadow:0 2px #203642}.revealed .result{animation:softReveal .33s var(--ease) both}.revealed .stageAura{opacity:.14;animation:none}.decisions .btn{font-size:13px;padding:8px 10px}.decisions.show{animation:decisionAppear .22s var(--ease)}.rollDock{position:absolute;left:50%;bottom:24px;transform:translateX(-50%);width:min(100%,670px);padding:0;gap:9px;z-index:3}.rollline{display:grid;grid-template-columns:1fr 248px 1fr;align-items:center;gap:12px;width:100%}.rollbtn{grid-column:2;width:248px;min-height:64px;border-radius:17px;justify-content:center;padding:4px 18px;gap:10px;box-shadow:0 5px #244b36,inset 0 1px #f3ffd375}.rollbtn .die{width:68px;height:68px;flex-basis:68px;margin:-8px 0 -8px -10px;filter:drop-shadow(0 4px 1px #1d37495e)}.rolltext{font-size:31px;letter-spacing:1px;line-height:1;font-weight:900;text-shadow:0 2px #315c40}.autobtn{grid-column:3;justify-self:start;width:118px;min-height:42px;font-size:10px;padding:8px;line-height:1.25;border-radius:11px}.status{font-size:11px;max-width:100%;color:#e5efed;text-shadow:0 2px #1a3140;min-height:16px}.foot{flex:none;height:14px;font-size:9px;letter-spacing:1px;color:#dce9df;opacity:.8}.reelViewport{width:100%;height:clamp(185px,33vh,274px);margin:0;mask-image:linear-gradient(90deg,transparent,#000 13%,#000 87%,transparent);-webkit-mask-image:linear-gradient(90deg,transparent,#000 13%,#000 87%,transparent)}.reelCard{top:47%;width:158px;gap:5px;text-shadow:0 2px #142c3b;will-change:transform,opacity;contain:layout style}.reelIcon{height:132px;width:132px;border-radius:20px;background:linear-gradient(145deg,#1c364b30,#142b3e50);border:1px solid color-mix(in srgb,var(--rarity),transparent 52%);box-shadow:inset 0 1px #ffffff38;position:relative;overflow:hidden}.reelIcon:after{content:'';position:absolute;inset:0;background:#0b1e2c;opacity:var(--shade,0);pointer-events:none}.reelIcon svg{width:114px;height:114px;filter:drop-shadow(0 4px 3px #13233865)}.reelCard.focused .reelIcon{border-color:var(--rarity);box-shadow:inset 0 1px #ffffff65,0 0 0 2px #e9f1df26}.reelCard b{font-size:14px;color:var(--rarity);line-height:1.1}.reelCard small{font-size:12px}.reelGuide{top:8px;border-top-color:#eae7d4;border-width:10px 6px 0;filter:none}.reelCaption{bottom:4px;font-size:9px;letter-spacing:2px;opacity:.8}.rollingNow .stageAura{opacity:.35}.overlay{padding:20px;background:#0d1e2cbf;opacity:0;visibility:hidden;display:grid;pointer-events:none;transition:opacity .22s var(--ease),visibility .22s}.overlay.open{opacity:1;visibility:visible;pointer-events:auto}.dialog{max-height:calc(100dvh - 40px);padding:16px 18px;gap:11px;border-radius:19px;background:linear-gradient(150deg,#344d58,#1c3343);box-shadow:0 9px 0 #10263299,0 15px 50px #0c1e304d;overflow:auto;scrollbar-width:thin;transform:translateY(10px) scale(.985);transition:transform .25s var(--ease)}.overlay.open .dialog{animation:none;transform:none}.dialoghead h2{font-size:22px;letter-spacing:1px;text-shadow:0 2px #182f3d}.dialoghead .close{font-size:11px;padding:8px 12px}.mapDialog{width:min(1020px,100%);overflow:hidden}.mapframe{aspect-ratio:900/560;height:min(62vh,548px);width:100%;margin:auto;background:#245a6c;border:1px solid #a4c5c8;border-radius:14px;touch-action:none;box-shadow:inset 0 0 0 3px #142b4555;cursor:grab}.mapframe:active{cursor:grabbing}.mapLayer{will-change:transform}.mapmarker .pin{width:43px;height:43px;box-shadow:0 2px #16383a,0 0 0 2px #152f3d}.mapmarker .pin span{font-size:22px}.mapmarker b{font-size:12px;border:1px solid #a6c9ca70;border-radius:9px;background:#1b3340f2;padding:4px 8px;box-shadow:0 2px #132c3c80}.mapmarker small{font-size:9px}.mapmarker.current .pin{box-shadow:0 2px #173d32,0 0 0 3px #c8eeaa,0 0 0 8px #c8eeaa38}.mapmarker:hover .pin{scale:1.08}.mapintro,.maplegend{font-size:11px}.cameraControls .btn,.treecontrols .btn{font-size:12px;padding:6px 10px}.treeDialog{width:min(1100px,100%);overflow:hidden}.treeLayout{display:grid;grid-template-columns:minmax(0,1fr) 223px;gap:13px}.treewrap{height:min(65vh,560px);min-height:0;border-color:#a2b7bf65;background:radial-gradient(ellipse at center,#304653,#152c3c 75%);border-radius:14px}.treeSide{gap:10px;background:#172e3f;border-color:#8aa7b35c;padding:14px}.treeBalance b{color:#d0e7a7}.skillHex .outer{stroke-width:2.2;fill:#263d4e;stroke:#688493}.skillHex .hexShadow{fill:#132632;stroke:#132632}.skillHex.locked{opacity:.66}.skillHex.available .outer{fill:color-mix(in srgb,var(--node),#203648 70%);stroke-width:3.3}.skillHex.owned .outer{fill:color-mix(in srgb,var(--node),#203648 38%);stroke-width:3.5}.skillHex.selectedHex .outer{stroke:#fcf0ca;stroke-width:4.5}.skillHex:hover .outer{stroke:#f8f7dc;filter:brightness(1.12)}.skillHex .inner{stroke-opacity:.45}.skilldetail{background:#243e4e;border-color:#809ba577;border-radius:12px}.branchLine i{height:5px}.itemcard,.filterItem,.settingsbox{background:linear-gradient(155deg,#2b4554,#1c3444);border-color:#819ca477;border-radius:12px;box-shadow:inset 0 1px #d7ebec12}.itemcard{transition:transform .18s var(--ease),border-color .18s}.itemcard:hover{border-color:#b9d4d2;transform:translateY(-2px)}.filterItem{border-left:3px solid var(--rarity);min-height:60px}.filterItem svg{height:46px;width:46px}select{background:#223c4b;border:1px solid #89a4ae;border-radius:8px}.notice{background:#233e4d;border:1px solid #a6c3c8;bottom:12px;box-shadow:0 3px #142c3a;z-index:10;animation:toast .2s var(--ease)}
@keyframes idleFloat{0%,100%{transform:translateY(0)}50%{transform:translateY(-5px)}}@keyframes softReveal{from{opacity:.25;transform:translateY(5px) scale(.92)}to{opacity:1;transform:none}}@keyframes decisionAppear{from{opacity:0;transform:translate(-50%,5px)}to{opacity:1;transform:translate(-50%,0)}}@keyframes toast{from{opacity:0;transform:translate(-50%,5px)}to{opacity:1;transform:translate(-50%,0)}}
@media(max-height:670px){.app{padding:11px 15px 6px}.sideRail{gap:6px}.navtile{min-height:49px}.navtile .uiIcon{width:22px;height:22px}.header{gap:7px}.hud{min-height:42px;padding:5px 8px}.hud strong{font-size:18px}.brand{font-size:27px}.brand svg{height:39px;width:39px}.rollDock{bottom:15px}.rollbtn{min-height:54px}.rollbtn .die{width:57px;height:57px;flex-basis:57px}.reelIcon{width:100px;height:100px}.reelIcon svg{width:88px;height:88px}.discoveryStage{height:clamp(245px,52vh,340px)}.stageTitle{top:0}.result .itemart{width:110px;height:110px}.filterItem{min-height:49px}.filterItem svg{width:35px;height:35px}.treeSide{padding:9px;gap:6px}}
@media(max-width:900px){.app{padding:12px 13px 7px}.header{grid-template-columns:1fr 140px 115px 135px}.brand{font-size:25px}.brand svg{width:37px;height:37px}.gameShell{grid-template-columns:65px minmax(0,1fr) 145px;gap:8px}.navtile{min-height:52px}.sideInfo .panel{padding:9px}.discoveryStage{width:calc(100vw - 140px)}.treeLayout{grid-template-columns:1fr 190px}.treeSide{padding:10px}}
@media(max-width:650px){.app{padding:9px;gap:5px}.header{grid-template-columns:repeat(3,1fr);gap:5px}.brand{grid-column:1/-1;font-size:22px}.brand svg{width:30px;height:30px}.brand small{font-size:8px;margin-top:4px}.hud{min-height:39px;padding:4px;gap:4px}.hud .uiIcon{width:23px;height:23px}.hud strong{font-size:16px}.hud label{font-size:7px;letter-spacing:.7px}.gameShell{display:block;min-height:0}.sideRail{position:absolute;left:0;right:0;bottom:0;display:grid;grid-template-columns:repeat(6,1fr);gap:4px}.navtile{min-height:46px;padding:3px;font-size:9px}.navtile .uiIcon{width:20px;height:20px}.sideInfo{display:none}.playfield{height:100%;min-height:0;padding:5px}.fieldtop{min-height:0}.fieldtop h1{font-size:25px}.discoveryStage{width:100%;top:41%;height:min(280px,44vh)}.rollDock{bottom:66px;width:100%}.rollline{grid-template-columns:1fr 160px 1fr;gap:5px}.rollbtn{width:160px;min-height:51px;padding:5px;gap:4px}.rolltext{font-size:24px}.rollbtn .die{flex-basis:45px;width:45px;height:45px;margin:0}.autobtn{width:75px;font-size:9px;padding:4px;min-height:35px}.reelIcon{width:86px;height:86px}.reelIcon svg{width:72px;height:72px}.reelCard{width:103px}.reelCard b{font-size:11px}.reelCard small{font-size:10px}.overlay{padding:8px}.dialog{max-height:calc(100dvh - 16px);padding:10px;gap:8px}.treeLayout{display:flex;flex-direction:column;gap:6px}.treewrap{height:43vh}.treeSide{margin:0;padding:8px;gap:4px}.treeSide .branchLine{display:none}.treeSide .skilldetail{min-height:55px;margin:0}.treeBalance b{font-size:18px}.treeProgress{font-size:10px}.mapframe{height:auto;aspect-ratio:900/560}.mapmarker .pin{width:25px;height:25px}.mapmarker .pin span{font-size:13px}.mapmarker b{font-size:8px;padding:2px 3px}.mapmarker small{font-size:7px}.filterTabs .btn{font-size:10px;padding:5px}.filterItem{grid-template-columns:35px 1fr 108px}.filterItem b{font-size:11px}.filterItem small{font-size:9px}.filterHeader small{font-size:10px}.foot{font-size:8px}}
@media(prefers-reduced-motion:reduce){.sceneLayer,.overlay,.dialog{transition:none!important}.result .emptyicon{animation:none!important}}
/* Presentation finishing pass: ambient movement is deliberately quiet. */
.sceneMist{z-index:3}.ambient{position:absolute;inset:0;z-index:4;pointer-events:none;overflow:hidden}.ambient i{position:absolute;left:var(--x);top:var(--y);width:5px;height:3px;border-radius:50%;background:#eff1c8;opacity:0;animation:drift var(--d) linear var(--delay) infinite}body[data-region="1"] .ambient i{background:#b7e6aa}body[data-region="2"] .ambient i{background:#e5edf3;width:3px;height:3px}body[data-region="3"] .ambient i{background:#edc58b;width:8px;height:2px}body[data-region="4"] .ambient i{background:#b1c7fa;width:3px;height:3px}.veil{background:linear-gradient(180deg,#12253465 0%,#132d3e00 24%,#152e3f08 50%,#111f2e84 100%)}.sceneLayer{filter:saturate(1.13) contrast(1.025)}.mapframe{width:min(100%,calc(62vh * 900 / 560));height:auto;aspect-ratio:900/560}.mapLayer svg{width:100%;height:100%}.treeSide .skilldetail{transition:background .16s,border-color .16s}.skillHex .outer,.skillHex .inner{transition:fill .18s,stroke .18s,stroke-width .18s}.skillHex.selectedHex .inner{stroke:#fff4cf;stroke-opacity:.7}.treeHint{letter-spacing:1.3px}.navtile:focus-visible{outline:2px solid #f4e4ad;outline-offset:2px}.result .rarity,.result .itemname,.reelCard b{color:var(--rarity,#f5f6eb);text-shadow:0 2px #132a39,0 0 3px #132a39}.reelIcon{background:linear-gradient(145deg,#244b5c28,#182f4268)}.reelCard.focused .reelIcon{background:linear-gradient(145deg,#2e4d6040,#12273870)}.rollbtn:not(:disabled){color:#f9fff1}.rollbtn .die{transition:transform .18s var(--ease)}.rollbtn:not(:disabled):hover .die{transform:rotate(-7deg) scale(1.025)}.rollbtn:not(:disabled):active .die{transform:rotate(4deg) scale(.96)}
@keyframes drift{0%{opacity:0;transform:translate(-20px,20px)}20%{opacity:.4}80%{opacity:.35}100%{opacity:0;transform:translate(100px,-35px)}}
@media(max-width:650px){.mapframe{width:100%}}@media(prefers-reduced-motion:reduce){.ambient i{animation:none!important;display:none}}
