
:root{--ink:#152437;--line:#17283d;--panel:#263a52;--rim:#7896ab;--white:#f7faff;--shadow:#15283b;--muted:#b9c8d7;--green:#a8e785;--gold:#ffcf70;--purple:#d6a0ff}*{box-sizing:border-box}html{min-height:100%;background:#344d64}body{margin:0;color:var(--white);font:700 16px/1.35 'Trebuchet MS',system-ui,sans-serif;min-height:100vh;overflow-x:hidden}button,select,input{font:inherit}button{cursor:pointer;color:inherit}button:disabled{cursor:not-allowed;opacity:.48}button:focus-visible,select:focus-visible{outline:3px solid #ffe599;outline-offset:3px}button:not(:disabled):active{transform:translateY(2px)}.land{position:fixed;inset:0;z-index:-2;width:100%;height:100%;object-fit:cover;transition:filter .3s}.veil{position:fixed;inset:0;background:linear-gradient(#14284416,#101d32a8);z-index:-1}.app{max-width:1500px;min-height:100vh;margin:auto;padding:18px 22px;display:flex;flex-direction:column;gap:15px}.header{display:grid;grid-template-columns:240px 1fr 1fr 1fr;gap:13px;align-items:center}.brand{display:flex;align-items:center;gap:10px;line-height:.85;font-size:31px;letter-spacing:-1.9px;font-weight:1000;text-shadow:2px 3px #17283d,-1px -1px #17283d,1px -1px #17283d,-1px 1px #17283d}.brand small{font-size:10px;letter-spacing:2.5px;color:#d7edb8;display:block;margin-top:9px;text-shadow:1px 2px #17283d}.brand svg{width:46px;height:46px;flex:none}.hud{border:3px solid var(--line);border-radius:18px;box-shadow:inset 0 0 0 2px #99b3c5,inset 0 -6px #0b172d36,0 4px #15243875;display:flex;align-items:center;gap:12px;padding:8px 13px;background:linear-gradient(155deg,#587e91,#31495f 52%);min-height:65px}.hud.gem{background:linear-gradient(155deg,#a66ec2,#634887 60%)}.hud.luck{background:linear-gradient(155deg,#507b68,#30495b 60%)}.hud .sym{font-size:30px;text-shadow:0 3px #17283d;line-height:1}.hud label{display:block;font-size:10px;letter-spacing:1.5px;color:#e0e9f1}.hud strong{font-size:23px;line-height:1.1;text-shadow:1px 2px #1b2942}.layout{display:grid;grid-template-columns:240px minmax(260px,1fr) 290px;gap:14px;flex:1;min-height:510px}.panel{border:3px solid #182a40;border-radius:23px;box-shadow:inset 0 0 0 2px #7e9db7,inset 0 -4px #101e2e6e,0 5px 0 #16273b65;background:linear-gradient(155deg,#243b53f5,#172a43f5);padding:15px;min-width:0}.sectionhead{font-size:20px;letter-spacing:.8px;text-shadow:1px 2px #101c31,-1px -1px #101c31;margin:0 0 13px;font-weight:1000}.eyebrow{font-size:10px;letter-spacing:2px;color:#a9c4d4;text-transform:uppercase}.world{display:flex;gap:10px;align-items:center;padding:10px 9px;background:#4c6a63;border:2px solid #9acaa0;border-radius:12px;box-shadow:0 3px #12283b;margin-bottom:16px}.world .worldicon{font-size:29px}.world b{font-size:16px}.world small{display:block;color:#e0f2d8;font-size:10px}.zone{width:100%;border:2px solid transparent;background:transparent;border-radius:11px;display:flex;align-items:center;text-align:left;padding:9px 6px;gap:10px;margin-bottom:5px;color:#e1eaf2}.zone.active{background:#4d715b;border-color:#b0d48d;box-shadow:0 2px #12283b}.zone.locked{color:#aab7c8}.zone .zicon{font-size:24px;width:32px;text-align:center}.zone b{font-size:14px;display:block}.zone small{display:block;font-size:10px;font-weight:700;color:#b9c9d3}.zone.active small{color:#deefcc}.progress{height:9px;background:#15273a;border:1px solid #132335;border-radius:8px;overflow:hidden}.progress i{display:block;background:linear-gradient(#b8ec87,#6fb75a);height:100%;border-radius:8px;transition:width .25s}.profile{margin-top:18px;padding-top:12px;border-top:1px solid #60788d66}.profile .row{margin:5px 0;font-size:11px;color:#cad8df}.row{display:flex;justify-content:space-between;align-items:center;gap:8px}.center{min-width:0;display:flex;flex-direction:column;align-items:center;justify-content:space-between;position:relative;padding:19px 3px 5px;text-align:center}.worldtitle{font-weight:1000;font-size:clamp(27px,4vw,47px);letter-spacing:-1px;text-shadow:0 4px #172c3a,2px 2px #172c3a,-2px -2px #172c3a,2px -2px #172c3a,-2px 2px #172c3a;line-height:1.1;margin:4px 0}.zonelabel{display:inline-block;background:#203a4ccb;border:1px solid #94bbc3;border-radius:20px;padding:4px 14px;font-size:12px;color:#f2f9d6}.diceStage{position:relative;width:min(270px,75%);aspect-ratio:1;display:grid;place-items:center;margin:3px auto;isolation:isolate}.diceStage:before{content:'';position:absolute;inset:8%;border-radius:50%;background:radial-gradient(#e1f1a755,transparent 68%);z-index:-1}.diceStage:after{content:'';position:absolute;bottom:6%;width:65%;height:12%;background:#0b253a6e;border-radius:50%;filter:blur(7px);z-index:-1}.die{width:100%;height:100%;overflow:visible;filter:drop-shadow(0 6px 0 #23354b4d);transform-origin:50% 53%;border:0;background:transparent;padding:0}.die svg{width:100%;height:100%;display:block}.rollarea{width:min(380px,100%);display:grid;gap:9px}.btn{border:3px solid #19293e;border-radius:13px;padding:10px 14px;background:linear-gradient(#708ca2,#3e566d);box-shadow:inset 0 0 0 2px #a4b9c8,inset 0 -5px #13283b42,0 4px #18283e88;font-weight:1000;letter-spacing:.6px;text-shadow:0 2px #172a40}.btn:hover:not(:disabled){filter:brightness(1.09)}.btn.green{background:linear-gradient(#9ed674,#4e9e54);box-shadow:inset 0 0 0 2px #d3eea5,inset 0 -5px #22493252,0 4px #18283e88}.btn.gold{background:linear-gradient(#f8c979,#b67b32);box-shadow:inset 0 0 0 2px #ffe4a7,inset 0 -5px #70481c50,0 4px #18283e88}.btn.purple{background:linear-gradient(#bb91e5,#7954b1);box-shadow:inset 0 0 0 2px #e3c2ff,inset 0 -5px #3d245952,0 4px #18283e88}.btn.red{background:linear-gradient(#e17b7e,#a83f50);box-shadow:inset 0 0 0 2px #f3b3ab,inset 0 -5px #57233b52,0 4px #18283e88}.rollbtn{font-size:37px;letter-spacing:2px;min-height:68px}.autobtn{font-size:15px;min-height:43px}.status{min-height:32px;font-size:12px;color:#f0f6ed;text-shadow:0 2px #203247;max-width:380px;margin:auto}.right{display:flex;flex-direction:column}.result{background:#102237a8;border:2px solid #59778e;border-radius:16px;min-height:244px;padding:13px 10px;text-align:center;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:6px}.result .itemart{width:110px;height:110px}.result .itemname{font-size:23px;font-weight:1000;text-shadow:0 2px #111f31;line-height:1.05}.result .odds{font-size:12px;color:#c4d3df}.result .rarity{font-size:10px;letter-spacing:2px}.result .emptyicon{font-size:49px;color:#8ca8c2;opacity:.6}.result .sub{color:#afc4d2;font-size:12px}.decisions{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin:11px 0}.decisions .btn{font-size:12px;padding:11px 3px}.minihead{font-size:11px;letter-spacing:1.3px;color:#b7cbd8;margin:14px 0 6px}.recent{display:grid;gap:6px}.recentitem{font-size:12px;display:flex;justify-content:space-between;gap:7px;background:#13263e80;border-radius:7px;padding:7px 9px}.recentitem span:last-child{color:#b9c9d7;font-size:10px}.nav{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.nav .btn{display:flex;justify-content:center;align-items:center;gap:8px;min-height:52px;font-size:15px}.nav .ico{font-size:23px}.foot{font-size:10px;letter-spacing:.4px;color:#d4e4e7;text-shadow:0 1px #112139;display:flex;justify-content:space-between}.overlay{position:fixed;inset:0;z-index:5;background:#081523c9;display:none;place-items:center;padding:16px}.overlay.open{display:grid}.dialog{width:min(880px,100%);max-height:92vh;display:flex;flex-direction:column;gap:12px;padding:17px;overflow:auto}.dialog.treeDialog{width:min(1000px,100%)}.dialoghead{display:flex;justify-content:space-between;align-items:center;gap:12px}.dialoghead h2{font-size:26px;margin:0;text-shadow:0 3px #132337}.close{padding:7px 12px}.tabs{display:flex;gap:7px;flex-wrap:wrap}.tabs .btn{font-size:12px;padding:8px 12px}.tabs .selected{background:linear-gradient(#a0c78f,#4f805d)}.cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(145px,1fr));gap:9px}.itemcard{border:2px solid #526e86;border-radius:12px;background:#162a40;padding:9px;display:flex;flex-direction:column;align-items:center;gap:5px;text-align:center}.itemcard .itemart{width:65px;height:65px}.itemcard.unknown .itemart{filter:brightness(0) opacity(.36)}.itemcard b{font-size:13px}.itemcard small{font-size:10px;color:#b7cbd8}.itemcard .btn{font-size:10px;padding:5px 9px;width:100%}.itemcard .itemcontrols{display:flex;gap:4px;width:100%}.settingsgrid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.settingsbox{background:#14273e;border:1px solid #57738b;border-radius:12px;padding:12px}.settingsbox h3{font-size:15px;margin:0 0 8px}.settingsbox p,.hint{color:#b7cad8;font-size:12px;font-weight:600;line-height:1.5}.filterrow{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:6px 0;font-size:12px}select{background:#253e57;color:white;border:1px solid #7993a9;border-radius:7px;padding:6px;max-width:100%;font-size:12px}.check{display:flex;gap:7px;align-items:center;font-size:13px;margin:8px 0}.settingsbox .btn{font-size:12px;margin:5px 3px 0 0}.treewrap{position:relative;background:radial-gradient(ellipse at center,#30475b,#122235 65%,#0d1a2b);border:2px solid #506b80;border-radius:15px;overflow:hidden;min-height:330px;height:min(54vh,470px);touch-action:none}.treewrap svg{width:100%;height:100%;display:block;cursor:grab}.treewrap svg:active{cursor:grabbing}.hex{cursor:pointer;outline:none}.hex:focus-visible .outer{stroke:white;stroke-width:4}.hex:hover .outer{filter:brightness(1.25)}.treecontrols{position:absolute;right:9px;top:9px;display:flex;gap:5px}.treecontrols .btn{font-size:13px;padding:5px 9px}.legend{display:flex;gap:12px;flex-wrap:wrap;font-size:12px}.skilldetail{background:#15273d;border:1px solid #58758c;border-radius:12px;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 13px;min-height:65px}.skilldetail small{display:block;color:#b9cbd9;font-size:11px}.skilldetail .btn{font-size:13px;white-space:nowrap}.notice{position:fixed;bottom:20px;left:50%;transform:translateX(-50%);padding:9px 15px;border:2px solid #9abbc9;background:#203b52;border-radius:12px;z-index:10;font-size:12px;box-shadow:0 4px #142336;display:none;text-align:center;max-width:90vw}.empty{padding:25px;text-align:center;color:#b6c9d8}.pill{padding:4px 8px;background:#152a40;border-radius:8px;font-size:11px;color:#c3d5e0}.smalltext{font-size:11px;color:#b8cad8}.danger{color:#ffb8b8}.nowrap{white-space:nowrap}@media(max-width:970px){.app{padding:11px;gap:10px}.header{grid-template-columns:180px 1fr 1fr 1fr;gap:7px}.brand{font-size:24px}.brand svg{width:35px}.hud{min-height:56px;padding:6px 8px;gap:7px}.hud .sym{font-size:23px}.hud strong{font-size:18px}.layout{grid-template-columns:180px minmax(180px,1fr) 226px;gap:9px;min-height:470px}.panel{padding:11px}.sectionhead{font-size:18px}.zone{gap:5px}.zone b{font-size:12px}.zone .zicon{font-size:20px;width:25px}.result{min-height:220px}.result .itemart{width:87px;height:87px}.rollbtn{font-size:31px}.nav .btn{font-size:13px}}@media(max-width:680px){.header{grid-template-columns:repeat(3,1fr)}.brand{grid-column:1/-1}.layout{display:flex;flex-wrap:wrap;min-height:0}.left{width:100%;order:2}.center{width:100%;order:0;min-height:370px}.right{width:100%;order:1}.zone{display:inline-flex;width:48%;margin-right:1%}.world{margin-bottom:9px}.profile{margin-top:7px}.result{min-height:180px}.nav{grid-template-columns:repeat(2,1fr)}.settingsgrid{grid-template-columns:1fr}.diceStage{width:190px}.foot{flex-wrap:wrap}.treewrap{height:350px}.skilldetail{flex-wrap:wrap}.dialog{padding:12px}.hud label{font-size:9px}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}

/* v0.2 interface */
:root{--ink:#18283d;--panel:#263b52;--line:#16283c;--muted:#b8d0d7}body{font-family:'Trebuchet MS',system-ui,sans-serif}.app{max-width:1440px;padding:17px 22px 12px;gap:14px;min-height:100svh}.header{grid-template-columns:minmax(180px,1.15fr) repeat(3,minmax(110px,1fr));gap:12px}.brand{font-size:35px;letter-spacing:-2px}.brand svg{width:54px;height:54px}.hud{min-height:62px;border-radius:17px}.hud strong{font-size:24px}.gameShell{display:grid;grid-template-columns:90px minmax(280px,1fr) 230px;gap:17px;flex:1;min-height:560px;align-items:stretch}.sideRail{display:flex;flex-direction:column;gap:10px;justify-content:center}.navtile{position:relative;border:2px solid #192c42;background:linear-gradient(150deg,#47667c,#293e56);box-shadow:inset 0 0 0 1.5px #7596a9,0 4px #1a2c3d99;border-radius:17px;min-height:76px;padding:7px 4px;font-size:12px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;text-shadow:0 2px #1b2d41;transition:transform .16s,filter .16s}.navtile span{font-size:30px;line-height:1.1}.navtile:hover{transform:translateY(-3px);filter:brightness(1.14)}.navtile.active{background:linear-gradient(#6a9781,#375f57);box-shadow:inset 0 0 0 2px #aad6ad,0 4px #1a2c3d99}.navtile small{position:absolute;right:7px;top:6px;border-radius:10px;background:#162a40;padding:1px 5px;font-size:10px}.hexicon{color:#e7b9ff}.playfield{position:relative;min-width:0;display:grid;grid-template-rows:auto 1fr auto;isolation:isolate;overflow:hidden;border:2px solid #a7d1c44d;border-radius:30px;background:linear-gradient(180deg,#152e493b,#1a344519 38%,#17374c78);box-shadow:inset 0 1px #d8e9d34d,0 8px 24px #17324826;padding:20px 22px 12px}.fieldtop{display:flex;justify-content:space-between;align-items:center;gap:12px}.fieldtop h1{font-size:clamp(22px,3vw,35px);line-height:1;margin:7px 0 0;letter-spacing:-.6px;text-shadow:0 3px #24445a,-1px -1px #24445a}.fieldtop .eyebrow{color:#ecf3dd;text-shadow:0 1px #294452}.mapbtn{font-size:12px;white-space:nowrap}.discoveryStage{position:relative;isolation:isolate;display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:285px;text-align:center;--reveal:#e5eec1}.stageAura{position:absolute;z-index:-1;width:min(440px,90%);aspect-ratio:1;border-radius:50%;background:radial-gradient(circle,#e5f0b340 0%,#e3efb321 30%,transparent 66%);pointer-events:none}.stageRing{position:absolute;z-index:-1;width:min(340px,77%);aspect-ratio:1;border:1px solid #d8f6cf25;border-radius:50%;pointer-events:none}.ring2{width:min(290px,66%);border-style:dashed}.stageTitle{color:#eff8d9;font-size:11px;letter-spacing:2.6px;text-shadow:0 2px #1f3d48;margin:0 0 5px}.result{border:0!important;background:transparent;min-height:0;padding:0;gap:5px;width:100%;text-shadow:0 2px #1c3144}.result .itemart{width:clamp(90px,19vh,155px);height:clamp(90px,19vh,155px);filter:drop-shadow(0 8px 6px #172a3c65)}.result .itemname{font-size:clamp(25px,4vw,42px);-webkit-text-stroke:.3px #172a3c;line-height:1.1}.result .rarity{font-size:12px;letter-spacing:2px;font-weight:1000}.result .odds{font-size:clamp(18px,2vw,25px);color:#fff;font-weight:1000}.result .sub{font-size:12px;color:#e4f0e8}.result .emptyicon{font-size:85px;color:#f1f5d5;opacity:.8;line-height:1.2}.result b{font-size:26px}.decisions{width:min(320px,100%);margin:12px 0 0;gap:9px;min-height:46px;visibility:hidden}.decisions.show{visibility:visible;animation:menuIn .2s ease-out}.decisions .btn{font-size:14px}.rollDock{position:relative;display:flex;align-items:center;flex-direction:column;gap:10px}.rollline{display:flex;align-items:center;justify-content:center;gap:9px;width:100%}.rollbtn{min-height:82px;width:min(340px,65%);position:relative;display:flex;align-items:center;justify-content:center;gap:12px;padding:8px 17px;border-radius:21px;letter-spacing:1px}.rollbtn .die{display:block;flex:0 0 80px;width:80px;height:80px;margin:-8px 0 -8px -14px;filter:drop-shadow(0 5px 0 #1c3a4160);pointer-events:none}.rolltext{display:flex;flex-direction:column;align-items:flex-start;line-height:1.05;font-size:36px}.rolltext small{font-size:10px;letter-spacing:.1px;margin-top:5px;color:#e8f3dc}.autobtn{min-height:48px;width:124px;font-size:11px;white-space:normal;line-height:1.3}.rollbtn:disabled{opacity:.8}.status{min-height:17px;max-width:100%;font-size:11px;color:#e8f4e6}.sideInfo{display:flex;flex-direction:column;justify-content:center;gap:14px}.sideInfo .panel{padding:13px;border-radius:17px}.progresspanel .row{font-size:11px;margin:8px 0 6px}.progresspanel .row b{font-size:13px}.progresspanel .progress{height:8px}.recentpanel h2{font-size:14px;margin:0}.recentpanel .pill{font-size:10px}.recentpanel .recent{margin-top:10px;min-height:110px}.recentitem{animation:menuIn .2s ease-out}.soundToggle{font-size:12px;min-height:39px}.overlay.open .dialog{animation:menuIn .21s cubic-bezier(.2,.8,.3,1)}.btn{transition:filter .14s,transform .14s}.btn:hover:not(:disabled){transform:translateY(-1px)}.btn:active:not(:disabled){transform:translateY(2px)}.rollingNow .result .itemart{animation:previewIn .18s ease-out}.revealed .result{animation:revealIn .42s cubic-bezier(.18,.7,.3,1.15)}.revealed .stageAura{background:radial-gradient(circle,var(--reveal) 0%,transparent 64%);opacity:.29;animation:auraIn .55s ease-out}.rollingNow .stageRing{opacity:.7}.rollingNow .ring2{animation:orbit 2s linear infinite}.foot{opacity:.9}.land{filter:saturate(1.14)}.veil{background:linear-gradient(#12304b40,#132b3e85)}
@keyframes previewIn{from{opacity:.52;transform:translateY(-12px) scale(.91)}to{opacity:1;transform:none}}@keyframes revealIn{from{opacity:.5;transform:translateY(12px) scale(.84)}to{opacity:1;transform:none}}@keyframes auraIn{from{opacity:.08;transform:scale(.7)}to{opacity:.29;transform:scale(1)}}@keyframes menuIn{from{opacity:0;transform:translateY(9px) scale(.98)}to{opacity:1;transform:none}}@keyframes orbit{to{transform:rotate(360deg)}}
.mapDialog{width:min(930px,100%)}.mapintro{display:flex;justify-content:space-between;gap:10px;align-items:center;margin-bottom:9px;font-size:12px;color:#d2e4e8}.mapframe{position:relative;overflow:hidden;border:2px solid #759ba5;border-radius:17px;background:#1d5668;aspect-ratio: 900/560}.mapframe svg{display:block;width:100%;height:100%}.mapmarker{position:absolute;transform:translate(-50%,-50%);background:transparent;border:0;display:flex;align-items:center;flex-direction:column;gap:2px;white-space:nowrap;z-index:1;padding:0;cursor:pointer}.mapmarker:not(:disabled):active{transform:translate(-50%,-50%) scale(.97)}.mapmarker:hover{z-index:2}.mapmarker .pin{display:grid;place-items:center;width:48px;height:48px;border-radius:50% 50% 50% 12%;transform:rotate(-45deg);background:linear-gradient(#c2ed9b,#548c67);box-shadow:0 3px #1a3e3e,0 0 0 3px #182c3d,0 0 0 7px #dbffbb30;border:2px solid #e2f0c3;transition:filter .15s,scale .15s}.mapmarker .pin span{transform:rotate(45deg);font-size:25px}.mapmarker b{font-size:clamp(9px,1.5vw,16px);padding:5px 9px;border-radius:12px;background:#182a39ed;border:1px solid #b5d4cd88;text-shadow:0 2px #0c1c29;box-shadow:0 3px #0e2e3e55}.mapmarker small{font-size:10px;color:#ebf4e0;background:#1b3548de;border-radius:8px;padding:2px 5px}.mapmarker.locked .pin{background:linear-gradient(#abb6b9,#576873);border-color:#bac5c7;box-shadow:0 3px #1b3640,0 0 0 3px #182c3d}.mapmarker.current .pin{box-shadow:0 3px #1a3e3e,0 0 0 3px #182c3d,0 0 0 7px #c3f89777}.mapmarker:hover .pin{filter:brightness(1.16);scale:1.08}.maplegend{display:flex;gap:12px;flex-wrap:wrap;margin-top:9px;font-size:12px;color:#c7dce4}.maplegend strong{color:#f0f7d6}.soundrow{display:flex;align-items:center;gap:10px;margin:10px 0}.soundrow input{width:120px;accent-color:#a3dc83}
@media(max-width:1000px){.app{padding:11px;gap:10px}.gameShell{grid-template-columns:76px minmax(260px,1fr) 185px;gap:10px;min-height:500px}.sideInfo .panel{padding:10px}.navtile{min-height:66px}.playfield{padding:15px 13px 9px}.brand{font-size:27px}.hud strong{font-size:20px}.hud .sym{font-size:24px}.header{gap:7px}.hud{padding:6px 8px;gap:7px}.brand svg{width:42px}.rolltext{font-size:30px}}@media(max-width:760px){.header{grid-template-columns:repeat(3,1fr)}.brand{grid-column:1/-1}.gameShell{display:flex;flex-direction:column;min-height:0}.sideRail{order:2;flex-direction:row;gap:6px}.navtile{flex:1;min-height:58px;font-size:10px}.navtile span{font-size:21px}.playfield{order:1;min-height:480px}.sideInfo{order:3;display:grid;grid-template-columns:1fr 1fr;gap:8px}.soundToggle{grid-column:1/-1}.hud{min-height:50px}.hud strong{font-size:17px}.hud label{font-size:8px}.rollbtn .die{width:65px;height:65px;flex-basis:65px}.mapmarker .pin{width:30px;height:30px}.mapmarker .pin span{font-size:17px}.mapmarker small{font-size:8px}.mapmarker b{padding:3px 5px}.mapbtn{font-size:10px;padding:7px}.mapframe{aspect-ratio:900/560}.fieldtop h1{font-size:24px}.stageRing{width:230px}.ring2{width:190px}}@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}}
/* final v0.2 layout and motion polish */
@media(min-width:1001px){.rollline{display:grid;grid-template-columns:minmax(0,1fr) minmax(210px,340px) minmax(0,1fr);gap:10px}.rollbtn{grid-column:2;width:100%}.autobtn{grid-column:3;justify-self:start;width:min(124px,100%)}.rollbtn .die{flex-basis:88px;width:88px;height:88px}}
@media(min-width:761px) and (max-width:1000px){.rollline{display:grid;grid-template-columns:1fr minmax(180px,270px) 1fr;gap:5px}.rollbtn{grid-column:2;width:100%;padding:5px}.autobtn{grid-column:3;width:100%;font-size:9px;padding:5px}.rollbtn .die{flex-basis:58px;width:58px;height:58px;margin:0}.rolltext small{font-size:8px}.rolltext{font-size:26px}}
@media(max-width:760px){.rollline{flex-direction:column;gap:8px}.rollbtn{width:min(280px,95%)}.autobtn{width:145px;min-height:34px}.playfield{min-height:520px}}
.rollingNow .ring1{animation:rollRing 1.1s ease-in-out infinite alternate}.revealed .stageRing{animation:ringReveal .55s ease-out}.hud,.mapmarker,.itemcard{transition:filter .16s,transform .16s}.itemcard:hover{filter:brightness(1.06);transform:translateY(-2px)}@keyframes rollRing{from{opacity:.35;transform:scale(.95)}to{opacity:.65;transform:scale(1.04)}}@keyframes ringReveal{from{opacity:.65;transform:scale(.87)}to{opacity:.25;transform:scale(1)}}@media(prefers-reduced-motion:reduce){.rollingNow .ring1,.revealed .stageRing{animation:none!important}}

/* v0.3: fixed, transparent discovery stage and navigation */
[hidden]{display:none!important}.reelViewport{position:relative;width:100%;height:240px;overflow:hidden;isolation:isolate;mask-image:linear-gradient(90deg,transparent,#000 10%,#000 90%,transparent)}.reelTrack{position:absolute;inset:0}.reelCard{position:absolute;left:50%;top:46%;width:145px;display:flex;flex-direction:column;align-items:center;gap:5px;will-change:transform,opacity;transform-origin:center;text-shadow:0 2px 3px #132838;color:#eef7fd;pointer-events:none}.reelIcon{width:120px;height:120px;display:grid;place-items:center;border-radius:24px;border:2px solid color-mix(in srgb,var(--rarity),transparent 38%);background:linear-gradient(155deg,color-mix(in srgb,var(--rarity),transparent 87%),#14293a36);box-shadow:inset 0 1px #ffffff35}.reelIcon svg{width:99px;height:99px;filter:drop-shadow(0 5px 4px #1323387a)}.reelCard b{font-size:15px;line-height:1.1;text-align:center;color:var(--rarity)}.reelCard small{font-size:13px;color:#fff}.reelCard.focused .reelIcon{border-color:var(--rarity);box-shadow:0 0 15px color-mix(in srgb,var(--rarity),transparent 65%),inset 0 1px #ffffff70}.reelGuide{position:absolute;left:50%;top:4px;width:0;height:0;transform:translateX(-50%);border-left:8px solid transparent;border-right:8px solid transparent;border-top:12px solid #f6f7e5;z-index:101;filter:drop-shadow(0 2px 2px #14293b)}.reelCaption{position:absolute;bottom:0;left:0;right:0;text-align:center;color:#d4e5e5;font-size:11px;letter-spacing:.4px}.rollingNow .stageAura{opacity:.18}.rollingNow .stageRing{opacity:.16}.stageTitle{margin-bottom:12px}.discoveryStage{min-width:0}.sideRail{gap:7px}.navtile{min-height:60px}.navtile span{font-size:25px}.navtile small{font-size:9px}.playfield{border:0;background:transparent;box-shadow:none;padding:15px 4px 4px}.sideInfo .recentpanel{display:none}.sideInfo{justify-content:flex-end;align-self:start}.rollDock{padding-bottom:7px}.rolltext small{display:none}.rollbtn{min-height:73px}.rollbtn .die{width:72px;height:72px;flex-basis:72px}.header{grid-template-columns:minmax(180px,1.2fr) repeat(3,minmax(120px,.8fr))}.hud{min-height:56px}.hud strong{font-size:21px}.brand{font-size:30px}.navtile:hover{filter:brightness(1.15)}.result .itemart{filter:drop-shadow(0 7px 7px #13233880)}
@media(min-width:761px){html,body{height:100%;overflow:hidden}.app{height:100dvh;min-height:0;padding:12px 18px 8px;gap:8px}.gameShell{min-height:0;grid-template-columns:78px minmax(0,1fr) 174px;gap:10px}.playfield{min-height:0;overflow:hidden}.discoveryStage{min-height:0}.foot{flex:none}.sideRail{min-height:0}.navtile{flex:0 1 68px;min-height:44px}.navtile span{font-size:23px}.result .itemart{width:clamp(65px,19vh,155px);height:clamp(65px,19vh,155px)}.sideInfo .panel{padding:9px}.rollline{display:grid;grid-template-columns:1fr minmax(180px,300px) 1fr}.rollbtn{grid-column:2;width:100%}.autobtn{grid-column:3;width:min(120px,100%);justify-self:start}.mapDialog,.treeDialog{overflow:hidden}.treeDialog{width:min(1160px,98vw);max-height:96vh}.mapDialog{width:min(970px,96vw);max-height:96vh}.mapframe{height:auto;aspect-ratio:900/560;max-height:64vh;width:min(100%,calc(64vh * 900 / 560));margin:auto}.treeLayout{display:grid;grid-template-columns:minmax(0,1fr) 220px;gap:14px;height:min(69vh,570px)}.treewrap{height:100%;min-height:0}.treeSide{min-height:0}.dialog.treeDialog #dialogBody{min-height:0}.filterDialog{width:min(900px,96vw);overflow:hidden}.filterList{grid-template-columns:1fr 1fr}}
.mapframe{touch-action:none;cursor:grab}.mapframe.dragging,.treewrap svg.dragging{cursor:grabbing}.mapLayer{width:100%;height:100%;position:absolute;inset:0;transform-origin:center}.mapLayer svg{width:100%;height:100%;display:block}.cameraControls{position:absolute;right:10px;top:10px;display:flex;gap:5px;z-index:5}.cameraControls .btn{padding:6px 10px;font-size:12px}.mapmarker .pin{transition:filter .2s,scale .2s}.mapmarker.current .pin{animation:mapPulse 2.5s ease-in-out infinite}@keyframes mapPulse{50%{box-shadow:0 3px #1a3e3e,0 0 0 3px #182c3d,0 0 0 10px #c3f89744}}.treeLayout{min-width:0}.treewrap{background:radial-gradient(ellipse at center,#243b4c,#111d2a 75%);border:1px solid #60788b;position:relative}.treeHint{position:absolute;bottom:10px;left:12px;font-size:10px;color:#9db1bf;pointer-events:none;letter-spacing:1px}.skillHex .outer{fill:#26333f;stroke:#536473;stroke-width:2.5;transition:fill .16s,stroke .16s}.skillHex .hexShadow{fill:#0a151f;stroke:#0b131d;stroke-width:4}.skillHex .inner{fill:none;stroke:#8194a3;stroke-opacity:.23;stroke-width:1.3}.skillHex.available .outer{fill:color-mix(in srgb,var(--node),#152434 77%);stroke:var(--node);stroke-width:3.4}.skillHex.owned .outer{fill:color-mix(in srgb,var(--node),#132537 48%);stroke:var(--node);stroke-width:4}.skillHex.selectedHex .outer{stroke:#fff4c6;stroke-width:5}.skillHex:hover .outer{filter:brightness(1.35);stroke:#f3faff}.skillHex.locked{opacity:.68}.treeSide{display:flex;flex-direction:column;gap:10px;background:#122538;border:1px solid #4b667b;border-radius:14px;padding:13px}.treeBalance small{display:block;font-size:10px;letter-spacing:1px;color:#a6bfcc}.treeBalance b{font-size:26px;color:#b3e78b}.treeProgress{font-size:12px;color:#adc4d0}.treeProgress b{color:#fff}.branchLine{display:grid;grid-template-columns:1fr auto;gap:4px;font-size:12px;color:var(--branch)}.branchLine i{grid-column:1/-1;background:#0b1b2b;height:6px;border-radius:5px;overflow:hidden}.branchLine em{display:block;height:100%;background:var(--branch);transition:width .3s}.treeSide .skilldetail{display:flex;flex-direction:column;align-items:stretch;margin-top:auto;min-height:96px;padding:10px}.treeSide .skilldetail small{margin:5px 0;line-height:1.35}.treeSide .skilldetail .btn{width:100%}.filterHeader{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px}.filterHeader small{display:block;color:#b8cad8;font-size:12px;margin-top:5px}.filterTabs{display:flex;gap:6px;flex-wrap:wrap;margin:8px 0 12px}.filterTabs .btn{font-size:11px;padding:7px 9px}.filterList{display:grid;gap:8px}.filterItem{display:grid;grid-template-columns:56px 1fr minmax(105px,126px);align-items:center;gap:7px;background:#14273b;border:1px solid #58738b;border-left:3px solid var(--rarity);padding:7px;border-radius:10px;min-height:72px}.filterItem svg{width:52px;height:52px}.filterItem b{font-size:13px;color:var(--rarity)}.filterItem small{display:block;font-size:10px;color:#bbccd6}.filterItem select{width:100%;font-size:11px}.filterBottom{display:flex;justify-content:space-between;gap:10px;margin-top:13px}.filterBottom .btn{font-size:11px;padding:6px 9px}.filterDialog .hint{margin:8px 0 0}.dialoghead h2{letter-spacing:1px}.btn:not(:disabled):hover{filter:brightness(1.12)}
@media(max-height:660px) and (min-width:761px){.hud{min-height:45px}.brand svg{width:40px;height:40px}.navtile{min-height:40px;font-size:10px}.navtile span{font-size:18px}.reelViewport{height:192px}.reelIcon{width:92px;height:92px}.reelIcon svg{width:76px;height:76px}.rollbtn{min-height:55px}.rollbtn .die{width:56px;height:56px;flex-basis:56px}.treeSide{gap:6px;padding:8px}.treeSide .skilldetail{min-height:65px}.treeBalance b{font-size:20px}.filterItem{min-height:55px;padding:4px}.filterItem svg{width:40px;height:40px}}
@media(max-width:760px){.treeSide{margin-top:10px}.treewrap{height:300px}.reelViewport{height:220px}.reelIcon{width:100px;height:100px}.reelIcon svg{width:82px;height:82px}.navtile{min-width:0}.filterItem{grid-template-columns:45px 1fr 110px}.filterHeader small{font-size:11px}}
