:root{color-scheme:dark;--gold:#edc27a;--gold2:#a27c42;--font:Inter,"Segoe UI",Tahoma,Arial,sans-serif;--paper:#e9e6da;--muted:#afb6b8;--base:#0f1419;--panel:#1b2229;--border:#6a553b}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;min-height:100vh;background:radial-gradient(ellipse at 45% -15%,#37423f,transparent 54%),radial-gradient(ellipse at 90% 80%,#172937,transparent 52%),linear-gradient(#11171c,#090c11);color:var(--paper);font:14px/1.45 var(--font)}a{color:#eac38b}button,select,input{font:inherit}button{cursor:pointer}button:focus-visible,a:focus-visible,select:focus-visible,input:focus-visible{outline:2px solid var(--gold);outline-offset:2px}.masthead{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:18px;padding:19px max(25px,calc((100vw - 1570px)/2));background:linear-gradient(180deg,#242525f0,#111820e8);border-bottom:2px solid #926d32;box-shadow:0 5px 25px #0009}.brand,.masthead-right{display:flex;align-items:center;gap:19px}.brand-signet{width:57px;height:57px;border:3px solid #ddac5b;border-radius:50%;box-shadow:inset 0 0 0 4px #2d2618,0 0 0 2px #46361f,0 0 22px #6a511b;color:#e6ba61;background:radial-gradient(#554c34,#1d262b 70%);display:grid;place-items:center;font:700 38px Georgia,serif;text-shadow:0 2px 2px #000}.eyebrow{color:#d7b88b;font-size:12px;letter-spacing:.09em;text-transform:uppercase;margin:0 0 3px}.brand h1{font:700 27px Georgia,serif;letter-spacing:.01em;color:#f3d39e;text-shadow:0 2px 2px #000;margin:0}.small{font-size:12px;color:#b8bebf;margin:3px 0 0}.chip{border:1px solid #7b613f;padding:8px 12px;color:#edd7b9;border-radius:20px;background:#232c2d}.subtle-link{color:#d2b988;font-size:13px}.wrap{width:min(1590px,100%);margin:0 auto;padding:18px 22px 40px}.warning{background:#2f291b;border:1px solid #ad8441;padding:13px 16px;border-radius:7px;margin-bottom:16px;color:#eedcc1}.controlbar{display:grid;grid-template-columns:minmax(200px,1.2fr) minmax(155px,.9fr) minmax(245px,1.2fr) minmax(315px,1.4fr);gap:11px;align-items:stretch;margin-bottom:16px}.control,.controls-actions{border:1px solid #716049;background:linear-gradient(135deg,#25303a,#192029);border-radius:9px;min-width:0;padding:12px 15px;box-shadow:0 4px 12px #0004}.control label{display:block;font-size:11px;color:#bcb49c;text-transform:uppercase;letter-spacing:.08em;margin-bottom:9px}.level-control{display:flex;gap:10px;align-items:center}.level-control input{width:100%;accent-color:#dfac5e}.level-control output{min-width:38px;text-align:right;font:700 27px Georgia,serif;color:#f5cc88}.control select{width:100%;background:#101720;border:1px solid #756344;border-radius:6px;color:#f2eadc;padding:7px}.points-control{display:flex;align-items:center;justify-content:space-between;gap:14px}.points-control small{display:block;color:#afb1ae;font-size:11px}.points-control strong{display:block;color:#e9c184;font-size:29px;line-height:1.2}.points-control .green{color:#72e899}.controls-actions{display:flex;flex-wrap:wrap;gap:7px;align-items:center}.controls-actions button,.buttonlike,.detail-actions button,.action{border:1px solid #89704f;background:linear-gradient(#493e2d,#2b2a24);border-radius:6px;color:#f2dec1;padding:8px 11px;white-space:nowrap;text-decoration:none;cursor:pointer;font-size:12px}.controls-actions button:hover,.buttonlike:hover,.detail-actions button:hover{background:#695339}.action.primary,.detail-actions .primary{background:linear-gradient(#786039,#443520);border-color:#d9ad6a;color:#fff4d7}.controls-actions button:disabled,.detail-actions button:disabled{opacity:.36;cursor:default}.main-layout{display:grid;grid-template-columns:204px minmax(0,1fr);gap:15px}.sidebar{background:linear-gradient(#1b252e,#14191f);border:1px solid #60523d;border-radius:10px;padding:12px;height:fit-content}.sidebar h2{font-size:12px;color:#dcc095;text-transform:uppercase;letter-spacing:.1em;margin:3px 8px 12px}.class-nav{display:flex;flex-direction:column;gap:5px}.class-choice{display:flex;align-items:center;gap:10px;padding:7px 8px;border:1px solid transparent;border-radius:7px;color:#dfd8ce;text-decoration:none;min-width:0}.class-choice:hover{background:#293642}.class-choice.chosen{background:linear-gradient(90deg,#5f4b30,#31373a);border-color:#b58c52;box-shadow:inset 4px 0 #e3b466}.class-art,.class-avatar,.tree-art{display:inline-block;overflow:hidden;aspect-ratio:1;border:2px solid #817150;border-radius:6px;background:linear-gradient(130deg,#343b3b,#141a21);flex-shrink:0}.class-art{width:37px;height:37px}.class-avatar{width:48px;height:48px}.tree-art{width:38px;height:38px}.class-art img,.class-avatar img,.tree-art img,.talent-image img,.detail-heading img{display:block;width:100%;height:auto!important;min-height:100%;object-fit:cover;object-position:top}.class-names{min-width:0}.class-names b{display:block;font-size:14px}.class-names small{color:#abb2b2;font-size:11px;display:block}.tipline{font-size:12px;color:#aeb4b5;padding:4px 8px;line-height:1.55}.workspace{min-width:0}.workspace-head{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:10px;margin-bottom:12px}.selected-class{display:flex;gap:12px;align-items:center}.selected-class h2{font:700 27px Georgia,serif;color:#edc785;margin:0}.selected-class h2 span{color:#9faaa9;font:400 14px var(--font);margin-left:5px}.profiles{display:flex;gap:4px;padding:3px;border:1px solid #7f6848;background:#1b242a;border-radius:7px}.profiles button{background:transparent;border:0;border-radius:5px;color:#d7d0c4;padding:8px 15px}.profiles button.active{color:#ffe3aa;background:linear-gradient(#67512f,#42301c);box-shadow:inset 0 0 0 1px #ad854a}.trees{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px}.talent-tree{border:1px solid #86693e;border-radius:10px;background:radial-gradient(ellipse at 40% 18%,#62513447,transparent 58%),radial-gradient(ellipse at 90% 65%,#2735454d,transparent 65%),linear-gradient(#20242aed,#10151aed);box-shadow:inset 0 0 30px #0006,0 8px 18px #0005;overflow:hidden;min-width:0;padding:8px 5px 13px}.talent-tree:nth-child(2){background:radial-gradient(ellipse at 50% 20%,#66633c66,transparent 57%),radial-gradient(ellipse at 0 80%,#30463644,transparent 60%),linear-gradient(#222527,#111820)}.talent-tree:nth-child(3){background:radial-gradient(ellipse at 65% 25%,#34466669,transparent 57%),radial-gradient(ellipse at 0 80%,#25354b44,transparent 60%),linear-gradient(#1e2228,#10141a)}.tree-head{display:flex;align-items:center;justify-content:space-between;gap:6px;padding:4px 7px 10px;margin-bottom:4px;border-bottom:1px solid #77603988;min-height:62px}.tree-title{display:flex;align-items:center;min-width:0;gap:8px}.tree-title h3{font:700 clamp(14px,1.6vw,20px) Georgia,serif;color:#f2cb89;margin:0;overflow-wrap:anywhere;text-shadow:0 1px 3px #000}.tree-points{font:700 20px Georgia,serif;color:#8cf59a;background:#0e1918;border:1px solid #8b7f4c;border-radius:6px;padding:5px 9px;flex-shrink:0}.talent-grid{position:relative;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));grid-template-rows:repeat(7,92px);height:644px;min-width:0}.talent-grid:before{content:"";position:absolute;inset:0;background:repeating-linear-gradient(to bottom,transparent,transparent 91px,#f7efdf0e 91px,#f7efdf0e 92px);pointer-events:none}.tree-arrows{position:absolute;width:100%;height:100%;inset:0;pointer-events:none;z-index:1}.tree-arrows path{stroke:#b59d60;stroke-width:3px;fill:none;opacity:.65;filter:drop-shadow(0 1px 2px #000)}.talent{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:4px;border:0;background:transparent;color:#dddbd3;position:relative;z-index:2;min-width:0;padding:5px 0 0}.talent-image{width:min(60px,82%);aspect-ratio:1;display:block;overflow:hidden;border:3px solid #77776c;background:#10151a;border-radius:7px;box-shadow:0 1px 7px #000c;filter:grayscale(1) brightness(.43)}.talent.available .talent-image{filter:none;border-color:#ccb578}.talent.learned .talent-image{filter:none;border-color:#2be953;box-shadow:0 0 0 1px #14692c,0 0 13px #1ac65377}.talent.selected .talent-image{outline:2px solid #f2e2bf;outline-offset:2px}.talent:focus-visible{outline:none}.talent:focus-visible .talent-image{outline:2px solid #fff;outline-offset:2px}.talent-rank{display:block;position:absolute;top:48px;right:max(2px,calc(50% - 37px));background:#070b0c;padding:1px 3px;border:1px solid #987f53;border-radius:4px;color:#f5e0b4;font-size:12px;font-weight:750;line-height:16px;text-shadow:0 1px black}.talent.learned .talent-rank{border-color:#3bdd68;color:#96ffa1}.talent-caption{font-size:10px;line-height:1.12;text-align:center;max-width:98%;height:25px;overflow:hidden;overflow-wrap:anywhere;text-shadow:0 1px 3px #000}.bottom{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(250px,.8fr);gap:11px;margin-top:13px}.details,.history{border:1px solid #66553c;border-radius:8px;background:linear-gradient(#1e2930,#13191e);padding:15px;min-width:0}.details h3,.history h3{font:700 18px Georgia,serif;color:#ebcb94;margin:0 0 12px}.detail-heading{display:flex;align-items:center;gap:10px}.detail-art{width:47px;height:47px;aspect-ratio:1;border:2px solid #bc9a64;border-radius:5px;overflow:hidden;flex-shrink:0;background:#161d22}.detail-art img{width:100%;height:auto!important;display:block}.detail-heading strong{display:block;color:#f5daaa;font-size:16px}.detail-heading small{color:#bfc8bf}.detail-card p{margin:7px 0}.polish-summary{color:#d8dbc9}.detail-label{color:#f6cc87;font-weight:700;font-size:12px;margin:9px 0 3px}.detail-card .desc{color:#d7dfe0}.detail-card .desc.next{color:#a6efa9}.requirements{font-size:12px;color:#b6a889;border-top:1px solid #64543c;margin-top:10px!important;padding-top:9px}.detail-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:13px}.history ol{max-height:290px;overflow-y:auto;margin:0;padding-left:24px}.history li{margin:0 0 6px;color:#cad1d0;font-size:12px}.history li.empty{list-style:none;color:#87949a}.attribution{margin-top:13px;color:#8d989b;font-size:11px;line-height:1.6}.attribution a{color:#ccad79}.floating-tip{display:none;position:fixed;left:0;top:0;width:min(365px,calc(100vw - 20px));max-height:min(65vh,520px);overflow-y:auto;z-index:1000;padding:12px;background:linear-gradient(#121d25ee,#0a1017f8);border:2px solid #e0b268;border-radius:8px;box-shadow:0 10px 34px #000d;pointer-events:none}.floating-tip.visible{display:block}.floating-tip .detail-art{width:42px;height:42px}.floating-tip .detail-heading strong{font-size:14px}.floating-tip .desc{font-size:12px;line-height:1.5}.floating-tip .polish-summary{font-size:12px}.floating-tip .requirements{font-size:11px}.toast{position:fixed;right:17px;bottom:18px;z-index:1400;max-width:400px;padding:12px 16px;border-radius:7px;border:1px solid #b2955f;background:#252f2f;color:#e8e4d8;box-shadow:0 7px 24px #0009;opacity:0;transform:translateY(15px);transition:.2s;pointer-events:none}.toast.show{opacity:1;transform:none}.setup{max-width:850px;margin:55px auto;background:linear-gradient(#222e36,#141b20);padding:35px;border:1px solid #987746;border-radius:13px;box-shadow:0 10px 35px #0007}.setup h1{font:700 27px Georgia,serif;color:#f2d5a3}.setup p{color:#cbd1d0;line-height:1.75}.setup .action{font-size:15px;padding:11px 18px;margin:10px 0}.setup .status{color:#f0d19d;min-height:24px;margin:10px 0}.setup .meter{height:13px;border:1px solid #82704b;background:#0b1014;border-radius:12px;overflow:hidden}.setup .meter div{height:100%;width:0%;background:linear-gradient(90deg,#bb944d,#84b96d);transition:width .2s}.setup .notice.good{padding:14px;background:#192a21;border:1px solid #6ca073}.setup .footnote{font-size:12px;color:#9fa8a6}.setup code{color:#ecd09b}
@media(max-width:1250px){.controlbar{grid-template-columns:repeat(2,minmax(0,1fr))}.main-layout{grid-template-columns:175px minmax(0,1fr)}.class-art{width:30px;height:30px}.talent-grid{grid-template-rows:repeat(7,85px);height:595px}.talent{padding-top:3px}.talent-image{width:min(52px,84%)}.talent-rank{top:39px;right:max(0px,calc(50% - 32px))}.tree-arrows{height:100%}.talent-caption{font-size:9px}}
@media(max-width:980px){.main-layout{display:block}.sidebar{margin-bottom:14px}.class-nav{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}.trees{grid-template-columns:1fr}.talent-tree{max-width:500px;width:100%;margin:0 auto}.talent-grid{grid-template-rows:repeat(7,92px);height:644px}.talent-image{width:62px}.talent-rank{top:48px;right:max(2px,calc(50% - 37px))}.tree-title h3{font-size:20px}.bottom{grid-template-columns:1fr}.tipline{margin:7px 0 0}}
@media(max-width:600px){.masthead{padding:15px}.brand-signet{width:44px;height:44px;font-size:29px}.brand h1{font-size:21px}.masthead-right{width:100%;justify-content:space-between}.wrap{padding:13px 10px}.controlbar{grid-template-columns:1fr}.points-control{justify-content:space-around}.class-nav{grid-template-columns:repeat(2,minmax(0,1fr))}.selected-class h2{font-size:23px}.profiles{width:100%;justify-content:center}.trees{gap:15px}.setup{margin:16px 9px;padding:17px}.floating-tip{display:none!important}.talent-grid{grid-template-rows:repeat(7,92px)}}

/* ---------- TNSGuild 2.0: localized welcome and corrected calculator ---------- */
:root{--font-ui:"Segoe UI",Inter,Arial,sans-serif;--soft-gold:#eecb8b}
body{font-family:var(--font-ui);background-color:#090e14}
/* Original icons loaded by installation; the elegant initial is a deliberate fallback */
.class-icon{--class-color:#e2c18a;position:relative;display:grid;place-items:center;flex:0 0 auto;isolation:isolate;overflow:hidden;border:1px solid color-mix(in srgb,var(--class-color),transparent 58%);background:radial-gradient(circle at 37% 25%,color-mix(in srgb,var(--class-color),transparent 64%),transparent 64%),linear-gradient(150deg,#2b3238,#11171e);color:var(--class-color)}
.class-icon img{position:absolute;inset:0;width:100%;height:100%!important;object-fit:cover;object-position:center;z-index:2}
.class-fallback{font-family:Georgia,"Times New Roman",serif;font-size:1.35em;font-weight:700;text-shadow:0 2px 15px currentColor}
.masthead{position:relative;z-index:4;background:linear-gradient(180deg,#19222beF,#0f151beF);padding-top:14px;padding-bottom:14px}
.brand-signet{text-decoration:none;font-size:30px}
.masthead-right{gap:14px;flex-wrap:wrap;justify-content:flex-end}
.return-home{font-size:12px;text-decoration:none;color:#d4c5ac;padding:8px 10px;border:1px solid #716046;border-radius:7px;background:#28303a}
.return-home:hover{background:#443826}
.lang-switch{display:flex;gap:2px;border:1px solid #706045;padding:3px;border-radius:8px}
.lang-switch a{font-weight:700;font-size:11px;text-decoration:none;border-radius:5px;padding:6px 9px;color:#b4b0a7}
.lang-switch a.active{background:#6d4e2a;color:#f8e2b5}
.brand h1{font-size:25px}
.brand .small strong{color:#f8dc9b}
.class-choice{min-height:48px;padding:5px 7px;gap:8px}
.class-choice .class-icon{width:100%;height:100%;border-radius:5px}
.class-choice .class-art{width:35px;height:35px;border:0;background:none}
.class-names{font-family:var(--font-ui);font-size:12px;font-weight:650;line-height:1.3;color:#e9e2d6}
.name-slash{font-weight:400;opacity:.58;padding:0 2px}
.class-avatar{width:57px;height:57px;border:none;border-radius:10px}
.class-avatar .class-icon{width:100%;height:100%;border-radius:10px;font-size:28px}
.selected-class h2{font-family:Georgia,"Times New Roman",serif;font-size:clamp(20px,2.1vw,29px);font-weight:700;line-height:1.2}
.selected-class h2 .name-slash{color:#e0b76b;opacity:.8}
.points-control{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:center;justify-content:center;gap:0;padding:8px 10px}
.points-control>div{display:flex;min-height:64px;flex-direction:column;justify-content:center;align-items:center;text-align:center;gap:3px}
.points-control>div+div{border-left:1px solid #7f684855}
.points-control small{font-size:11px;font-weight:600;letter-spacing:.04em;line-height:1.4}
.points-control strong{font-size:clamp(23px,2.4vw,30px);font-variant-numeric:tabular-nums;line-height:1.12}
.talent-grid{isolation:isolate}
.talent{gap:0;align-self:stretch;justify-self:stretch;min-height:72px}
.talent-caption{display:none!important}
.talent-image{width:min(62px,79%);aspect-ratio:1}
.talent-rank{right:clamp(0px,calc(50% - 38px),30px);top:49px}
.talent-image img{object-position:top}
.tree-arrows{overflow:visible;z-index:1}
.tree-arrows path.tree-link{stroke:#a98d52;stroke-width:3;opacity:.9;filter:drop-shadow(0 1px 2px #000c);stroke-linejoin:round;stroke-linecap:round}
.tree-arrows path.tree-link.active{stroke:#36ed7b;stroke-width:3.5;opacity:1}
.tree-arrows path.tree-link.optional{opacity:.58;stroke-dasharray:5 5}
.tree-arrows path.arrow-cap{stroke:#a98d52;stroke-width:3;stroke-linecap:round;stroke-linejoin:round;opacity:1;fill:none}
.tree-arrows path.arrow-cap.active{stroke:#36ed7b}
.detail-card .polish-summary{font-size:13px}
.talent-grid:before{opacity:.4}
/* welcome */
.page-start{color:#eee5d3;background:#080d14;min-height:100vh;overflow-x:hidden}
.start-scene{position:absolute;inset:0;pointer-events:none;overflow:hidden;z-index:0;background:radial-gradient(circle at 25% 20%,#3b313041 0,transparent 31%),radial-gradient(circle at 74% 26%,#1d344a60 0,transparent 39%),radial-gradient(ellipse at 50% 60%,#101b29,transparent 80%),linear-gradient(150deg,#0a1018,#111925 48%,#090e16)}
.start-scene canvas{position:absolute;inset:0;display:block;opacity:.9}
.aurora{position:absolute;filter:blur(44px);border-radius:50%;opacity:.33;mix-blend-mode:screen;transform-origin:center;animation:auroraFloat 17s ease-in-out infinite alternate}
.aurora.a1{height:650px;width:700px;left:-22%;top:4%;background:radial-gradient(circle,#8f622e9a,#392c4077 45%,transparent 68%)}
.aurora.a2{height:520px;width:620px;right:-14%;top:18%;background:radial-gradient(circle,#1f75a17a,#3a375c50 49%,transparent 72%);animation-duration:21s;animation-delay:-7s}
.scene-grain{position:absolute;inset:0;opacity:.13;background-image:repeating-linear-gradient(90deg,#ffffff0b 0px,#ffffff0b 1px,transparent 1px,transparent 4px),repeating-linear-gradient(0deg,transparent 0px,transparent 49px,#ffffff10 50px,transparent 51px)}
.scene-runes{position:absolute;width:min(950px,100vw);height:min(950px,100vw);border-radius:50%;left:-365px;top:80px;opacity:.17}
.scene-runes-outer{border:1px dashed #d3ac6b;box-shadow:0 0 0 35px #d3ac6b09,0 0 0 75px #d3ac6b12,0 0 0 77px #d3ac6b17,inset 0 0 0 110px #d3ac6b08;animation:spinRune 140s linear infinite}
.scene-runes-inner{width:min(680px,72vw);height:min(680px,72vw);left:-225px;top:210px;border:2px dotted #e6b264;opacity:.12;animation:spinRune 80s linear infinite reverse}
.start-shell{position:relative;z-index:2;min-height:100vh;display:flex;flex-direction:column}
.start-topbar{width:min(1480px,100%);margin:0 auto;display:flex;justify-content:space-between;align-items:center;gap:20px;padding:26px 38px}
.wordmark{display:flex;align-items:center;gap:13px;text-decoration:none;color:#f5deb8}
.wordmark .mark{display:grid;place-items:center;width:49px;height:49px;border-radius:12px;border:1px solid #d4a75c;background:linear-gradient(140deg,#332718,#0c1822);box-shadow:inset 0 0 14px #bf944525,0 0 25px #ca90351d;font:700 30px Georgia,serif}
.wordmark-text{display:flex;flex-direction:column;gap:1px}.wordmark-text b{font-size:15px;letter-spacing:.22em}.wordmark-text small{font-size:9px;letter-spacing:.19em;color:#c1b6a2}
.version-pill{display:flex;align-items:center;gap:9px;border:1px solid #c9a66d53;border-radius:30px;background:#171c2688;padding:10px 16px;color:#aaaeb5;font-size:12px;white-space:nowrap;backdrop-filter:blur(12px)}
.version-pill b{color:#f3d096;font-size:13px}
.version-light{width:7px;height:7px;border-radius:50%;background:#b9e9b4;box-shadow:0 0 13px #77e7aa}
.start-main{flex:1;width:min(1480px,100%);margin:0 auto;display:grid;grid-template-columns:minmax(350px,.93fr) minmax(550px,1.07fr);align-items:center;gap:44px;padding:22px 38px 54px}
.start-hero{position:relative;display:flex;flex-direction:column;align-items:flex-start;min-height:600px;justify-content:center;overflow:visible}
.start-kicker{display:flex;align-items:center;gap:12px;font-size:11px;font-weight:700;letter-spacing:.20em;color:#ebba72;margin:0 0 29px}
.kicker-line{display:inline-block;width:33px;height:1px;background:#c5a165}
.start-hero h1{font-family:Georgia,"Times New Roman",serif;font-size:clamp(49px,5.2vw,88px);line-height:1.04;letter-spacing:-.045em;margin:0 0 28px;color:#f8ecda;font-weight:600;text-shadow:0 4px 35px #000a}
.start-hero h1 span{display:block;color:#e9bd73;background:linear-gradient(120deg,#ffe0a0,#c7954d 65%,#f5d39f);background-clip:text;-webkit-background-clip:text;-webkit-text-fill-color:transparent}
.start-lead{font-size:clamp(15px,1.2vw,18px);line-height:1.8;max-width:500px;color:#bcc5c8;margin:0}
.start-feature{margin-top:40px;display:flex;gap:18px;align-items:center;font-weight:600;letter-spacing:.05em;font-size:11px;color:#d1c0a3;text-transform:uppercase}
.feature-line{height:1px;width:38px;background:#b4884c}.feature-number{color:#d8b885;font-family:Georgia,serif;font-size:18px}
.start-orbit{position:absolute;width:310px;height:310px;bottom:-70px;left:5%;opacity:.45;pointer-events:none;filter:drop-shadow(0 0 25px #bca2651c)}
.orbit-orb,.orbit-halo{position:absolute;inset:30px;border-radius:50%;border:1px solid #b08b5366;box-shadow:inset 0 0 55px #c79b2a16,0 0 0 34px #d1a65c09,0 0 0 39px #d1a65c17}
.orbit-orb{animation:spinRune 50s linear infinite;border:2px dashed #cca46c77}
.orbit-halo{inset:65px;border:2px dotted #d5ba8e;animation:spinRune 18s linear infinite reverse}
.orbit-core{position:absolute;inset:0;display:grid;place-items:center;font:68px Georgia,serif;color:#c4a66d75}
.start-panel{position:relative;border:1px solid #bd9a644e;border-radius:18px;padding:31px 35px 23px;background:linear-gradient(145deg,#25282bd9,#101820e8 70%);box-shadow:0 25px 80px #0009,inset 0 1px #f9dba31c;backdrop-filter:blur(17px)}
.start-panel::before{content:"";position:absolute;inset:0;pointer-events:none;border-radius:18px;background:linear-gradient(125deg,#d9a9641b,transparent 36%)}
.language-caption{position:relative;font-size:11px;font-weight:700;color:#c9b99f;letter-spacing:.15em;text-transform:uppercase;margin-bottom:11px}
.language-choice{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:29px;position:relative}
.lang-option{display:flex;gap:12px;align-items:center;justify-content:flex-start;color:#c7c8c7;text-decoration:none;border:1px solid #6c63527b;border-radius:9px;background:#0e161e96;padding:12px 15px;transition:transform .22s,border-color .22s,background .22s,box-shadow .22s}
.lang-option .lang-mini{display:grid;place-items:center;background:#1f2b35;border:1px solid #6c6250;width:33px;height:30px;border-radius:6px;font-size:10px;font-weight:800;color:#d5ba82}
.lang-option strong{font-size:13px}
.lang-option:hover{transform:translateY(-2px);border-color:#d8b071}
.lang-option.selected{border-color:#e4b76a;background:linear-gradient(125deg,#553d25,#272b30);box-shadow:inset 0 0 0 1px #a5783960,0 6px 20px #0004;color:#fff1d0}
.start-heading-row{position:relative;border-top:1px solid #b7aa8742;padding-top:24px}
.chapter-label{font-size:11px;letter-spacing:.15em;color:#cc9d5b;margin:0 0 4px}
.start-heading-row h2{font:600 clamp(25px,2.3vw,34px) Georgia,serif;letter-spacing:-.015em;color:#f5dfb7;margin:0 0 6px}
.start-instruction{margin:0 0 20px;color:#aeb7ba;font-size:13px}
.start-classes{position:relative;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}
.start-class{display:flex;align-items:center;gap:9px;min-width:0;min-height:83px;border:1px solid #62655885;border-radius:9px;padding:10px;background:linear-gradient(135deg,#1b252d,#13191f);color:#f3eee6;text-decoration:none;transition:transform .22s,border-color .22s,background .25s,box-shadow .25s}
.start-class:hover,.start-class:focus-visible{transform:translateY(-3px);border-color:var(--class-color);box-shadow:0 6px 24px #0008,0 0 20px color-mix(in srgb,var(--class-color),transparent 86%);background:#293037}
.start-class .class-icon{width:44px;height:44px;border-radius:8px;color:var(--class-color);font-size:27px}
.start-class-text{display:flex;flex-direction:column;min-width:0;line-height:1.4;gap:2px;overflow:hidden}
.start-class-text strong{font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.start-class-text small{font-size:10px;color:#b2b7b9;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.class-arrow{align-self:flex-start;margin-left:auto;color:#d3aa67;font-size:13px;opacity:.45}
.start-class:hover .class-arrow{opacity:1}
.start-panel-foot{position:relative;display:flex;justify-content:center;gap:10px;margin-top:21px;align-items:center;color:#85949a;font-size:11px}
.start-panel-foot strong{color:#c6ac7b}
.start-footer{width:min(1480px,100%);padding:17px 38px 27px;margin:0 auto;border-top:1px solid #be995a30;font-size:11px;color:#86949a;text-align:center}
@keyframes auroraFloat{0%{transform:translate(-20px,-10px) scale(.92)}100%{transform:translate(30px,25px) scale(1.08)}}
@keyframes spinRune{to{transform:rotate(360deg)}}
@media(max-width:1300px){.start-main{gap:25px;grid-template-columns:minmax(315px,.82fr) minmax(500px,1.18fr);padding-left:30px;padding-right:30px}.start-panel{padding:25px}.start-class{min-height:75px;padding:8px}.start-class .class-icon{width:39px;height:39px}}
@media(max-width:1050px){.start-main{grid-template-columns:1fr;gap:0}.start-hero{min-height:auto;padding:60px 15px 55px}.start-orbit{right:0;left:auto;bottom:-5px;opacity:.23}.start-panel{max-width:850px;width:100%;margin:0 auto 30px}.start-topbar{padding:20px 30px}.class-names{font-size:11px}}
@media(max-width:650px){.start-topbar{padding:19px 17px;align-items:flex-start}.wordmark-text small{font-size:8px;letter-spacing:.07em}.version-pill{font-size:10px;padding:8px}.version-pill b{font-size:11px}.start-main{padding:0 14px 24px}.start-hero{padding:39px 3px 47px}.start-hero h1{font-size:clamp(48px,12vw,75px)}.start-lead{font-size:14px}.start-feature{margin-top:24px}.start-panel{padding:19px 14px}.start-classes{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.start-class .class-icon{width:43px;height:43px}.start-class{min-height:72px}.start-footer{padding:20px 17px;font-size:10px}.masthead-right{width:100%}.selected-class h2{font-size:21px}.points-control{justify-content:center}.points-control small{font-size:10px}.class-nav{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:380px){.start-classes{grid-template-columns:1fr 1fr}.start-class{gap:5px;padding:6px}.start-class-text strong{font-size:11px}.class-arrow{display:none}.start-class .class-icon{width:36px;height:36px}.wordmark .mark{width:38px;height:38px}}
@media(max-width:1250px){.talent-image{width:min(56px,79%)}.talent-rank{top:43px;right:clamp(0px,calc(50% - 35px),30px)}}
@media(max-width:980px){.talent-image{width:min(62px,79%)}.talent-rank{top:49px;right:clamp(0px,calc(50% - 38px),30px)}}
@media(prefers-reduced-motion:reduce){.aurora,.scene-runes,.orbit-orb,.orbit-halo{animation:none!important}.start-class,.lang-option{transition:none}}

/* TNSGuild 3.0 — one language at a time, compact layout, raster fantasy letterwork */
.sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
.version-plain{display:inline-flex;align-items:center;color:#e0c08c;font-family:Georgia,"Times New Roman",serif;letter-spacing:.09em;font-weight:700;font-size:13px;white-space:nowrap;opacity:.84}
.version-light,.version-pill{display:none!important}
.mark-crest{border:none!important;background:transparent!important;box-shadow:none!important;overflow:visible}
.mark-crest img{width:60px;height:60px;max-width:none;object-fit:contain;filter:drop-shadow(0 0 10px #d9a35c44)}
.brand-crest{background:transparent!important;border:0!important;box-shadow:none!important;border-radius:0!important}
.brand-crest img{display:block;width:56px;height:56px;object-fit:contain;filter:drop-shadow(0 0 8px #d19d4b45)}
.start-main{grid-template-columns:minmax(300px,.93fr) minmax(570px,1.07fr)}
.start-hero{min-height:515px}
.start-kicker{margin-bottom:12px}
.start-hero h1.graphic-heading{width:100%;max-width:650px;margin:0;line-height:normal;filter:drop-shadow(0 9px 28px #0009)}
.graphic-heading img{display:block;width:100%;height:auto;max-width:650px;object-fit:contain}
.start-orbit{bottom:-40px;opacity:.3}
.start-lead,.start-feature,.start-panel-foot{display:none!important}
.start-class-text{display:block}
.start-class-text strong{font-size:13px;font-weight:700}
.start-class-text small{display:none!important}
.start-class{min-height:75px}
.start-panel{border-color:#a886505f;box-shadow:0 22px 73px #000a,inset 0 0 24px #9a754310}
.start-heading-row h2,.workspace h2,.sidebar h2,.tree-title h3{font-family:Georgia,"Times New Roman",serif;letter-spacing:.01em;text-shadow:0 2px 8px #0007}
.start-footer,.calculator-footer{font-family:"Segoe UI",Arial,sans-serif;font-size:11px;color:#99a4a5;letter-spacing:.01em;line-height:1.6;text-align:center}
.start-footer{border-top:1px solid #b2925828}
.calculator-footer{max-width:1600px;margin:19px auto 4px;padding:14px 10px 24px;border-top:1px solid #b292582a}
.masthead{min-height:85px;gap:20px}
.masthead .brand{align-items:center;gap:11px}
.calc-title{padding:0!important;margin:0!important;line-height:0}
.calc-title img{display:block;width:min(460px,39vw);max-height:72px;height:auto;object-fit:contain;object-position:left center}
.masthead .eyebrow{margin:0!important;font-size:10px;color:#c9b693;letter-spacing:.12em}
.masthead-right{align-items:center}
.version-calc{margin-left:6px;font-size:12px}
.workspace{min-width:0}
.workspace-head{margin-bottom:12px}
.selected-class h2{margin-top:4px}
.trees{padding-bottom:0}
.talent-image{box-shadow:0 2px 7px #000b}
.talent-grid:before{opacity:.25}
.tipline{font-size:11px;line-height:1.45;color:#abb0b0}
.floating-tip{width:min(395px,calc(100vw - 18px));max-height:min(76vh,620px);border:1px solid #b9975b;background:linear-gradient(150deg,#273039f2,#101820f8);box-shadow:0 14px 46px #000e,inset 0 1px #f1d3a024;z-index:3000}
.floating-tip .detail-heading strong{font-family:Georgia,"Times New Roman",serif;color:#f1d39c;font-size:17px}
.floating-tip .detail-label{font-size:12px;color:#e9bb77}
.floating-tip .desc{font-size:13px;line-height:1.6}
.floating-tip .requirements{font-size:11px;line-height:1.5}
.floating-tip .detail-card .polish-summary{color:#b8f5c4}
/* No old bottom cards or duplicated language labels */
.bottom,.attribution,.class-names .name-slash{display:none!important}
@media(max-width:1300px){.start-main{grid-template-columns:minmax(290px,.85fr) minmax(500px,1.15fr)}.calc-title img{width:min(390px,38vw)}}
@media(max-width:1050px){.start-main{grid-template-columns:1fr}.start-hero{min-height:initial;padding:62px 14px 44px}.graphic-heading img{max-width:600px}.start-panel{margin-bottom:25px}.calc-title img{width:min(430px,58vw)}}
@media(max-width:650px){.start-topbar{align-items:center}.version-plain{font-size:11px}.start-hero{padding:40px 4px 30px}.start-hero h1.graphic-heading{width:100%}.start-kicker{font-size:9px;letter-spacing:.12em}.start-orbit{width:200px;height:200px}.start-panel{margin-top:14px}.start-class-text strong{font-size:12px}.masthead{gap:10px}.masthead .brand{width:100%}.calc-title img{width:min(325px,76vw);max-height:62px}.brand-crest img{width:44px;height:44px}.brand .eyebrow{font-size:8px!important}.masthead-right{gap:8px;justify-content:flex-end}.version-calc{margin-left:auto}.floating-tip{display:none!important}}
@media(prefers-reduced-motion:reduce){.start-orbit,.aurora,.scene-runes{animation:none!important}}

/* Touch devices: tapping a talent also opens the same localized tooltip. */
@media(max-width:650px){.floating-tip.visible{display:block!important;top:auto!important;bottom:9px!important;left:9px!important;right:9px!important;max-height:40vh;overflow-y:auto;width:auto;pointer-events:auto}.floating-tip .detail-heading strong{font-size:15px}}

/* Version 4: actual local font files (not text rendered as images) */
:root{--font-ui:"Segoe UI",Tahoma,Arial,sans-serif;--font-fantasy:Georgia,"Times New Roman",serif}
body,.start-panel,.sidebar,.controlbar,.floating-tip,.start-footer,.calculator-footer{font-family:var(--font-ui)}
.start-heading-row h2,.workspace h2,.sidebar h2,.tree-title h3,.selected-class h2,.floating-tip .detail-heading strong,.version-plain{font-family:var(--font-fantasy)}
.start-kicker,.wordmark-text b,.start-class-text strong,.class-names,.profiles button,.controls-actions button,.detail-label{font-family:var(--font-ui)}
.floating-tip .desc{white-space:pre-line;overflow-wrap:break-word}

/* 5.0: pełna kontrola nad lokalną typografią i poprawiona czytelność podpowiedzi. */
.floating-tip{width:min(430px,calc(100vw - 20px))}
.floating-tip .desc{color:#e2e9dc;line-height:1.64}
.floating-tip .desc.next{color:#aeefbf}
.floating-tip .detail-label{margin-top:12px}
.floating-tip .detail-heading strong{font-size:18px}
.floating-tip .requirements{margin-top:14px!important}
@media(max-width:650px){.floating-tip.visible{max-height:47vh}}

/* 9.0: V5 layout retained and uniformly scaled as a single unit. */
body.page-calculator{overflow-x:hidden}
body.page-calculator .calculator-viewport{width:100%;position:relative;overflow:visible;min-height:1px}
body.page-calculator .calculator-stage{position:absolute;left:0;top:0;width:1540px;zoom:1;transform:none;transform-origin:top left;will-change:auto}
body.page-calculator .masthead{width:1540px;padding:14px 25px;gap:20px;flex-wrap:nowrap}
body.page-calculator .masthead .brand{width:auto;min-width:0;flex:1}
body.page-calculator .masthead-right{width:auto;flex-wrap:nowrap;justify-content:flex-end;flex-shrink:0}
body.page-calculator .calc-title img{width:390px;max-height:none}
body.page-calculator .brand-crest img{width:54px;height:54px}
body.page-calculator .brand .eyebrow{font-size:10px!important}
body.page-calculator .wrap{width:100%;max-width:none;padding:18px 22px 40px}
body.page-calculator .controlbar{display:grid;grid-template-columns:minmax(200px,1.2fr) minmax(155px,.9fr) minmax(245px,1.2fr) minmax(210px,1fr);gap:11px}
body.page-calculator .control{min-width:0}
body.page-calculator .points-control{justify-content:space-around}
body.page-calculator .controls-actions{justify-content:center;align-content:center}
body.page-calculator .controls-actions .copy-build{border-color:#d8ac65;background:linear-gradient(#6e5330,#46331c);font-weight:600}
body.page-calculator .main-layout{display:grid;grid-template-columns:204px minmax(0,1fr);gap:15px}
body.page-calculator .sidebar{margin:0;max-width:none}
body.page-calculator .class-nav{display:flex;flex-direction:column;gap:5px}
body.page-calculator .class-art{width:37px;height:37px}
body.page-calculator .selected-class h2{font-size:27px}
body.page-calculator .profiles{width:auto;justify-content:flex-start}
body.page-calculator .trees{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px}
body.page-calculator .talent-tree{max-width:none;width:auto;margin:0;min-width:0}
body.page-calculator .talent-grid{grid-template-rows:repeat(7,92px);height:644px}
body.page-calculator .talent{padding-top:5px;min-height:72px}
body.page-calculator .talent-image{width:min(62px,79%);aspect-ratio:1}
body.page-calculator .talent-rank{top:49px;right:clamp(0px,calc(50% - 38px),30px)}
body.page-calculator .tree-title h3{font-size:20px}
body.page-calculator .tree-arrows{height:100%}
body.page-calculator .tipline{margin:7px 0 0}
/* Tooltip intentionally stays OUTSIDE the scaled stage for readability. */
body.page-calculator .floating-tip{transform:none}

/* 10.0: smaller desktop scaling with the fixed V5 three-tree layout. */
body.page-calculator .legacy-control { display:flex;flex-direction:column;justify-content:center; }
body.page-calculator .legacy-control label { margin-bottom:7px; }
body.page-calculator .legacy-control select { padding:6px 7px; }
body.page-calculator .legacy-help { color:#c3ad83;font-size:10px;line-height:1.35;margin:6px 0 0;min-height:26px; }
body.page-calculator .controls-actions .copy-build { white-space:nowrap; }


/* 11.0: compact auto-fit and direct zoom control, all three trees retained. */
body.page-calculator .calc-zoom{display:flex;align-items:center;justify-content:center;gap:2px;padding:3px;background:#101821;border:1px solid #7f6747;border-radius:7px;flex-shrink:0}
body.page-calculator .calc-zoom button{appearance:none;background:transparent;border:0;border-radius:4px;min-width:29px;height:28px;padding:0 5px;color:#e6c58d;font:700 15px/1 var(--font-ui);cursor:pointer}
body.page-calculator .calc-zoom button:hover,body.page-calculator .calc-zoom button:focus-visible{background:#4c3b27;color:#ffe6aa}
body.page-calculator .calc-zoom .zoom-value{font-size:11px;min-width:48px;font-variant-numeric:tabular-nums;color:#f3ddb5}

/* 12.0: sharp typography. CSS zoom asks the engine to lay out and paint text at the
   final resolution; no transform:scale() bitmap interpolation on the calculator. */
body.page-calculator .calculator-stage{transform:none!important;will-change:auto!important;backface-visibility:visible}
body.page-calculator .calculator-stage,body.page-calculator .calculator-stage *{-webkit-font-smoothing:auto;text-rendering:optimizeLegibility}
body.page-calculator .calculator-stage .talent-image img{image-rendering:auto}


/* 13.0: original 3-frame World of Warcraft class icon sprites.
   The local class.jpg is 56x168: color / grey / dark in three 56x56 frames.
   Show the grey frame by default and the FIRST, colored frame for the active
   class, mouse hover or keyboard focus. No new network requests are needed. */
.class-icon img{object-fit:cover!important;object-position:50% 50%!important;filter:none!important}
.start-class.chosen .class-icon img,
.start-class:hover .class-icon img,
.start-class:focus-visible .class-icon img,
.class-choice.chosen .class-icon img,
.class-choice:hover .class-icon img,
.class-choice:focus-visible .class-icon img,
.selected-class .class-icon img{object-position:50% 0%!important}
.start-class.chosen{border-color:var(--class-color);background:linear-gradient(110deg,#342e23,#1c252b);box-shadow:inset 3px 0 color-mix(in srgb,var(--class-color),#dfb366 35%),0 0 15px #0004}
.start-class.chosen .class-arrow{opacity:1}

/* 14.0: visible level-slider guidance and talent-style Legacy info popover. */
body.page-calculator .level-panel{display:flex;flex-direction:column;justify-content:center}
body.page-calculator .level-help{font-size:11px;line-height:1.4;color:#c9bcaa;margin:7px 0 0;min-height:27px}
body.page-calculator .legacy-label-row{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:7px}
body.page-calculator .legacy-label-row label{margin-bottom:0;min-width:0}
body.page-calculator .legacy-info{appearance:none;flex:0 0 25px;width:25px;height:25px;border:1px solid #ac874b;border-radius:50%;background:radial-gradient(circle at 40% 25%,#684e2b,#1b252d 75%);color:#ffe0a0;box-shadow:inset 0 0 0 2px #1b2228,0 2px 7px #0009;display:grid;place-items:center;padding:0;cursor:help;font:italic 700 15px Georgia,serif;transition:box-shadow .18s,border-color .18s}
body.page-calculator .legacy-info:hover,body.page-calculator .legacy-info:focus-visible{border-color:#f5cf80;box-shadow:0 0 0 2px #bd9b5350,0 0 14px #a9793470;outline:none}
body.page-calculator .legacy-info span{display:block;line-height:1}
.floating-tip .legacy-detail .legacy-detail-emblem{display:grid;place-items:center;width:42px;height:42px;flex:0 0 42px;border:2px solid #bda16d;border-radius:8px;background:radial-gradient(circle at 45% 20%,#705632,#202630 75%);color:#f6dcab;font:italic 700 26px Georgia,serif}
.floating-tip .legacy-detail .detail-heading small{display:block;margin-top:2px}
.floating-tip .legacy-detail .legacy-prerequisite{color:#edcd93;font-size:12px;line-height:1.5;margin:10px 0}
.floating-tip .legacy-detail .legacy-cap-note{color:#d5c5a8;font-size:12px;line-height:1.5;margin:11px 0}
.floating-tip .legacy-detail .detail-label{margin-top:12px}
.floating-tip .legacy-detail .requirements{margin-top:13px!important}

/* 20.0: class-specific build backgrounds and PNG export button, without changing layout. */
body.page-calculator .talent-tree{position:relative;isolation:isolate;overflow:hidden;background:linear-gradient(#1b2027f0,#10151bf2)!important}
body.page-calculator .talent-tree::before{content:"";position:absolute;inset:0;background-image:var(--tree-bg,none);background-repeat:no-repeat;background-size:300% 100%;background-position:var(--tree-bg-pos,50%) 50%;opacity:.34;filter:saturate(.95) brightness(.72);z-index:0;pointer-events:none}
body.page-calculator .talent-tree::after{content:"";position:absolute;inset:0;background:radial-gradient(ellipse at 50% 18%,#f1cd8c16,transparent 34%),linear-gradient(180deg,#0c1016d8 0%,#121821b9 18%,#11161d8a 38%,#0b1017de 100%);z-index:1;pointer-events:none}
body.page-calculator .talent-tree > *{position:relative;z-index:2}
body.page-calculator .controls-actions .export-png{border-color:#9f8153}
body.page-calculator .controls-actions{align-content:center}


/* 20.1: visible class tree art. The previous two dark pseudo-layers made
   the picture nearly black. Backgrounds are pre-cropped to each tree and
   painted directly by the browser, underneath the existing icons/arrows. */
body.page-calculator .talent-tree {
  background-image: linear-gradient(180deg,
    rgba(7, 12, 20, .32) 0%,
    rgba(8, 12, 19, .20) 36%,
    rgba(6, 10, 17, .42) 100%), var(--tree-bg) !important;
  background-color: #17212b !important;
  background-size: 100% 100%, cover !important;
  background-position: center, center !important;
  background-repeat: no-repeat !important;
}
body.page-calculator .talent-tree::before,
body.page-calculator .talent-tree::after { display: none !important; }
body.page-calculator .talent-tree .tree-head {
  background: rgba(11, 17, 24, .52);
  border-radius: 6px 6px 0 0;
}

.start-build-form {
  display: grid;
  gap: 7px;
  margin: 16px 0 20px;
  color: #edcf99;
}
.start-build-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.start-build-controls input {
  flex: 1 1 9rem;
  min-width: 0;
  padding: 9px 12px;
  border: 1px solid #756343;
  border-radius: 6px;
  background: #111923;
  color: #f1e4cb;
  font: inherit;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.start-build-controls input:focus-visible {
  outline: 2px solid #e5bd79;
  outline-offset: 2px;
}
.start-build-form [role="alert"] {
  margin: 0;
  color: #ffc59c;
}

.db-setup-languages,
.db-setup-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.db-setup-languages a[aria-current="page"] {
  font-weight: 700;
}
.db-setup-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
  gap: 14px;
}
.db-setup-grid label {
  display: grid;
  gap: 6px;
}
.db-setup-grid input {
  width: 100%;
  min-width: 0;
  padding: 9px 12px;
  border: 1px solid #756343;
  border-radius: 6px;
  background: #111923;
  color: #f1e4cb;
  font: inherit;
}
.db-setup-grid input:focus-visible {
  outline: 2px solid #e5bd79;
  outline-offset: 2px;
}
.db-setup-create {
  display: block;
  margin-top: 16px;
}
.db-setup .setup-success {
  color: #8ee9ac;
}
.db-setup .setup-error {
  color: #ffc59c;
}

.start-atlas {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #111c2a url("../../img/ui/forever-world-947.jpg") center / cover no-repeat;
  background-blend-mode: luminosity;
  opacity: .77;
}
.start-atlas.atlas-ready {
  background-image: none;
}
.atlas-world {
  position: absolute;
  top: 0;
  left: 0;
  width: 1002px;
  height: 668px;
  background: #41607b url("../../img/ui/forever-world-947.jpg") center / 100% 100% no-repeat;
  background-blend-mode: soft-light;
  filter: brightness(.58) saturate(.68);
  transform-origin: 0 0;
  mask-image: linear-gradient(to right, transparent, #000 6% 94%, transparent);
}
.start-atlas:not(.atlas-ready) .atlas-world {
  visibility: hidden;
}
.atlas-continent {
  position: absolute;
  background-size: 100% 100%;
  background-color: #41607b;
  background-blend-mode: soft-light;
  mask-image: radial-gradient(ellipse 66% 68% at center, #000 66%, transparent 100%);
  opacity: 0;
  transition: opacity .55s ease;
}
/* Game map rectangles on the Azeroth grid, as published by Zephras. */
.atlas-continent.west {
  left: -186.26px;
  top: 45.21px;
  width: 821.63px;
  height: 547.8px;
  background-image: url("../../img/ui/forever-kalimdor-1414.jpg");
}
.atlas-continent.east {
  left: 372.23px;
  top: 54.44px;
  width: 789.25px;
  height: 526.12px;
  background-image: url("../../img/ui/forever-eastern-1415.jpg");
}
[data-continent="west"] > .atlas-continent.west,
[data-continent="east"] > .atlas-continent.east { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .atlas-continent { transition: none; }
}
.start-atlas::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    radial-gradient(ellipse at 30% 49%, #0b14204d, transparent 55%),
    linear-gradient(180deg, #090e1673, transparent 22%, #090e1630 75%, #090e16c4);
}
.atlas-labels {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.atlas-label {
  position: absolute;
  left: 0;
  top: 0;
  white-space: nowrap;
  opacity: 0;
  color: #f7dcaa;
  font: 600 clamp(11px, 1.05vw, 15px) Georgia, serif;
  text-shadow: 0 1px 3px #000, 0 0 9px #000;
}
.atlas-label.region {
  color: #ecd39c;
  font-style: italic;
}
.atlas-label.continent {
  font-size: clamp(11px, 1.35vw, 20px);
  letter-spacing: .12em;
  text-transform: uppercase;
}
.atlas-label.city::before {
  content: "◆";
  margin-right: 5px;
  color: #ffcf79;
  font-size: .65em;
  vertical-align: .15em;
}
@media (max-width: 650px) {
  .start-atlas {
    inset: 37px 0 auto;
    height: clamp(270px, 84vw, 460px);
    opacity: .78;
    mask-image: linear-gradient(transparent, #000 9% 74%, transparent);
  }
}

.atlas-isle {
  position: absolute;
  top: 0;
  left: 0;
  width: 1002px;
  height: 668px;
  background: #41607b url("../../img/ui/forever-isle-2521.jpg") center / 100% 100% no-repeat;
  background-blend-mode: soft-light;
  filter: brightness(.58) saturate(.68);
  opacity: 0;
  transform-origin: 0 0;
}
.atlas-label.capital::before,
.atlas-label.pvp::before,
.atlas-label.raid::before {
  margin-right: 5px;
  font-size: .82em;
}
.atlas-label.capital::before { content: "✦"; color: #ffcf79; }
.atlas-label.pvp::before { content: "⚔"; color: #ffc09f; }
.atlas-label.raid::before { content: "▲"; color: #d6baf8; }
.atlas-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 15px;
  margin-bottom: 9px;
}
.atlas-actions[hidden] { display: none; }
.atlas-actions button,
button.atlas-result-name {
  color: #eed2a0;
  border: 0;
  background: transparent;
  padding: 2px 0;
  font: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.atlas-actions button:hover,
button.atlas-result-name:hover { color: #fff0ca; }
#atlas-catalog {
  width: min(640px, calc(100% - 28px));
  max-height: 84vh;
  padding: clamp(16px, 4vw, 28px);
  border: 1px solid #927346;
  border-radius: 14px;
  background: #15202c;
  color: #f1dec0;
  box-shadow: 0 18px 75px #000b;
}
#atlas-catalog::backdrop { background: #070d16bc; }
.atlas-catalog-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}
.atlas-catalog-head h2 {
  color: #f2d49c;
  margin: 0;
  font: 700 clamp(20px, 4vw, 29px) Georgia, serif;
}
.atlas-catalog-filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
  gap: 10px;
  margin-top: 15px;
}
.atlas-catalog-filters label { display: grid; gap: 5px; }
.atlas-catalog-filters input,
.atlas-catalog-filters select {
  background: #101923;
  color: #f2e3c8;
  border: 1px solid #756343;
  border-radius: 6px;
  padding: 8px 10px;
  font: inherit;
  min-width: 0;
}
#atlas-results-count { color: #cabba2; margin: 13px 0 6px; }
#atlas-results {
  padding: 0;
  margin: 0;
  list-style: none;
}
#atlas-results li {
  display: grid;
  justify-items: start;
  gap: 3px;
  padding: 9px 0;
  border-top: 1px solid #a58e5c30;
}
#atlas-results small { color: #c0b6a5; }

#atlas-catalog {
  width: min(1160px, calc(100% - 28px));
  max-height: 92vh;
  max-height: 92dvh;
}
.atlas-explorer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(238px, 29%);
  align-items: start;
  gap: 18px;
  margin-top: 18px;
}
.atlas-explorer-map,
.atlas-explorer-places { min-width: 0; }
.atlas-map-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}
.atlas-map-toolbar label { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.atlas-map-toolbar select {
  background: #101923;
  color: #f2e3c8;
  border: 1px solid #756343;
  border-radius: 6px;
  padding: 7px 8px;
  font: inherit;
}
#atlas-map {
  position: relative;
  overflow: hidden;
  height: clamp(260px, 54vh, 570px);
  border: 1px solid #927346;
  border-radius: 10px;
  background: radial-gradient(ellipse at center, #1a2b38, #0a121b 80%);
  cursor: grab;
  touch-action: none;
}
#atlas-map:active { cursor: grabbing; }
#atlas-map-art {
  position: absolute;
  top: 0;
  left: 0;
  width: 1002px;
  height: 668px;
  transform-origin: 0 0;
  background: #40546b url("../../img/ui/forever-world-947.jpg") center / 100% 100% no-repeat;
  background-blend-mode: soft-light;
  filter: brightness(.88) saturate(.84);
  pointer-events: none;
}
#atlas-map-art.isle {
  background-image: url("../../img/ui/forever-isle-2521.jpg");
}
.atlas-isle-label-mask {
  position: absolute;
  inset: 0;
  display: none;
  backdrop-filter: blur(10px);
  mask-image:
    radial-gradient(ellipse 42px 21px at 414px 124px, #000 73%, transparent),
    radial-gradient(ellipse 54px 23px at 621px 165px, #000 75%, transparent),
    radial-gradient(ellipse 46px 21px at 482px 290px, #000 73%, transparent),
    radial-gradient(ellipse 48px 21px at 637px 293px, #000 73%, transparent),
    radial-gradient(ellipse 46px 22px at 516px 357px, #000 73%, transparent),
    radial-gradient(ellipse 43px 15px at 644px 549px, #000 75%, transparent);
  pointer-events: none;
}
.atlas-isle > .atlas-isle-label-mask,
#atlas-map-art.isle > .atlas-isle-label-mask { display: block; }
.atlas-map-zoom {
  position: absolute;
  bottom: 12px;
  right: 12px;
  display: flex;
  gap: 5px;
}
.atlas-map-zoom button {
  width: 35px;
  height: 35px;
  border-radius: 5px;
  border: 1px solid #8e704a;
  color: #ffdea2;
  background: #111a24;
  font: 600 20px Georgia, serif;
  cursor: pointer;
}
.atlas-map-pin {
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  width: 19px;
  height: 19px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #f1d096;
  cursor: pointer;
}
.atlas-map-pin[hidden] { display: none; }
.atlas-map-pin::before {
  content: "";
  width: 7px;
  height: 7px;
  background: currentColor;
  border: 1px solid #09131d;
  border-radius: 50%;
  box-shadow: 0 0 8px #000;
}
.atlas-map-pin.capital { color: #ffd27a; }
.atlas-map-pin.capital::before { border-radius: 1px; transform: rotate(45deg); width: 9px; height: 9px; }
.atlas-map-pin.pvp { color: #ffb395; }
.atlas-map-pin.raid { color: #d6baf8; }
.atlas-map-pin.raid::before { border-radius: 1px; }
.atlas-map-pin span {
  position: absolute;
  left: 50%;
  bottom: 19px;
  transform: translateX(-50%);
  display: none;
  pointer-events: none;
  padding: 3px 6px;
  border-radius: 3px;
  background: #0c1721;
  color: #fff0cb;
  white-space: nowrap;
  font: 600 12px/1.25 Georgia, serif;
}
.atlas-map-pin:hover,
.atlas-map-pin:focus-visible,
.atlas-map-pin.is-selected { z-index: 1; }
.atlas-map-pin:hover span,
.atlas-map-pin:focus-visible span,
.atlas-map-pin.has-label span,
.atlas-map-pin.is-selected span { display: block; }
#atlas-details:not(:empty) {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px 12px;
  margin-top: 10px;
}
#atlas-details small { color: #cdbda7; }
#atlas-map-feedback { margin: 5px 0 0; font-size: .875rem; }
#atlas-catalog .atlas-catalog-filters { margin-top: 0; }
#atlas-catalog #atlas-results {
  max-height: min(49vh, 440px);
  overflow-y: auto;
  padding-right: 7px;
}
@media (max-width: 740px) {
  .atlas-explorer { grid-template-columns: 1fr; gap: 13px; }
  #atlas-map { height: clamp(230px, 37dvh, 400px); }
  #atlas-catalog #atlas-results { max-height: 38vh; }
}

#atlas-catalog.is-expanded {
  width: calc(100% - 16px);
  max-width: none;
  max-height: calc(100dvh - 16px);
}
#atlas-catalog.is-expanded #atlas-map { height: clamp(250px, 66dvh, 900px); }
.atlas-toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
#atlas-breadcrumb {
  margin: 0 0 6px;
  color: #d6bc8f;
  font: 600 .84rem/1.3 Georgia, serif;
}
#atlas-zone-art {
  position: absolute;
  top: 0;
  left: 0;
  max-width: none;
  transform-origin: 0 0;
  filter: brightness(.87) saturate(.86);
  pointer-events: none;
}
#atlas-minimap {
  position: absolute;
  left: 10px;
  bottom: 10px;
  width: clamp(85px, 15%, 148px);
  aspect-ratio: 1.5;
  overflow: hidden;
  border: 1px solid #a48654;
  border-radius: 5px;
  background-color: #121b25;
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
  cursor: crosshair;
}
#atlas-minimap span {
  position: absolute;
  border: 1px solid #fff0ae;
  background: #ffc96b21;
  box-shadow: 0 0 0 1px #000a;
  pointer-events: none;
}
.atlas-map-readout {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding-top: 6px;
  color: #c6b9a1;
  font-size: .8rem;
  font-variant-numeric: tabular-nums;
}
#atlas-map.is-placing-pin { cursor: crosshair; }
#atlas-add-pin[aria-pressed="true"] { border-color: #e1b67a; color: #ffdeb0; }
#atlas-terrain-toggle[aria-pressed="true"] { border-color: #e1b67a; color: #ffdeb0; }
#atlas-terrain-toggle:disabled { opacity: .5; cursor: default; }
.atlas-map-pin.custom { color: #79d1d8; }
.atlas-map-pin.custom::before {
  width: 10px;
  height: 10px;
  transform: rotate(45deg);
  border-radius: 1px;
}
.atlas-saved {
  margin-top: 11px;
  padding: 8px 0 0;
  border-top: 1px solid #a58e5c30;
}
.atlas-saved summary { color: #eed2a0; cursor: pointer; }
#atlas-saved-pins {
  max-height: 155px;
  overflow-y: auto;
  padding: 0;
  margin: 5px 0 0;
  list-style: none;
}
#atlas-saved-pins li {
  display: grid;
  justify-items: start;
  padding: 5px 0;
  color: #c5b69e;
}
@media (max-width: 740px) {
  #atlas-catalog.is-expanded #atlas-map { height: clamp(250px, 54dvh, 540px); }
}

#atlas-terrain,
#atlas-route {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
#atlas-terrain img {
  position: absolute;
  max-width: none;
}
#atlas-route {
  width: 100%;
  height: 100%;
}
.atlas-route-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 7px;
  color: #d8c8ab;
  font-size: .85rem;
}
