:root{font-family:Segoe UI,Arial,sans-serif;color:#e5e9dd;background:#112722;--gold:#c9b580;--muted:#91a698;--panel:#19352e;--line:#80937635;--green:#b9cfaa;--ink:#152e25;color-scheme:dark}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button,a{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:default;opacity:.38}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid #edd59a;outline-offset:4px}svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.55;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}button{color:inherit}a{color:inherit}h1,h2,h3,p{margin:0}h1,h2,h3{font-family:Georgia,'Times New Roman',serif;font-weight:400}button{transition:background .18s,border-color .18s,transform .15s}button:not(:disabled):active{transform:translateY(1px)}[hidden]{display:none!important}.app-shell{max-width:2100px;margin:auto}.app-header{height:86px;display:flex;align-items:center;justify-content:space-between;padding:0 32px;border-bottom:1px solid var(--line);background:#122b25}.brand{display:flex;align-items:center;gap:11px;text-decoration:none;color:#e0d7b9;font-family:Georgia,serif;font-size:22px;letter-spacing:.17em}.brand-gem{font-family:Georgia;font-size:49px;line-height:.9;color:var(--gold);transform:scaleX(.7)}.brand small{display:block;font-family:Segoe UI,sans-serif;font-size:8px;letter-spacing:.26em;margin-top:5px;color:#a3b399}.expedition{font-size:12px;color:#b6c6b0;letter-spacing:.04em}.live-dot{display:inline-block;width:6px;height:6px;background:#9db980;border-radius:50%;margin-right:8px;box-shadow:0 0 12px #9db98066}.expedition small{display:block;font-size:10px;color:#738f7e;text-align:center;margin-top:5px}.header-actions{display:flex;align-items:center;gap:11px}.icon-button{display:inline-grid;place-items:center;border:1px solid #7c927443;border-radius:50%;background:transparent;min-width:38px;min-height:38px;font-size:19px;line-height:1}.icon-button:hover{background:#b4cb9d17;border-color:#b5c69788}.new-game-button{display:flex;align-items:center;gap:9px;background:transparent;border:0;font-size:12px;min-height:44px;margin-left:13px;color:#c4cfb6}.new-game-button svg{width:17px}.game-layout{display:grid;grid-template-columns:minmax(0,1fr) 332px;min-height:calc(100svh - 86px)}.world-panel{position:relative;min-width:0;height:calc(100svh - 86px);min-height:590px;overflow:hidden;background:radial-gradient(ellipse at 43% 50%,#6d8f7f,#26483f 68%,#17382e)}#scene{position:absolute;inset:0;touch-action:none;outline:none}#scene canvas{display:block;width:100%;height:100%;outline:none}.world-top{position:absolute;top:27px;left:29px;right:29px;display:flex;justify-content:space-between;gap:20px;pointer-events:none}.eyebrow{font-size:9px;letter-spacing:.19em;font-weight:600;color:var(--gold)}.map-title .eyebrow{color:#c9d0b4;text-shadow:0 1px 8px #18382a}.map-title h1{font-size:27px;line-height:1.22;margin-top:9px;color:#f0ead5;text-shadow:0 2px 18px #1a382e}.hud{display:flex;align-items:flex-start;gap:26px;padding:14px 20px;background:#112f25bf;backdrop-filter:blur(14px);border:1px solid #a7b99130;border-radius:9px;height:78px;box-shadow:0 9px 30px #102c2422}.hud-stat>span{display:block;font-size:8px;letter-spacing:.16em;color:#a6b59a;margin-bottom:9px}.hud-stat strong{font:24px Georgia,serif;line-height:1;white-space:nowrap}.hud-stat strong small{font:12px Segoe UI;color:#8ca28e;margin-left:5px}.hud-stat b{font:inherit}.heart-number,.gold-number{display:flex;gap:6px;align-items:center}.heart-number svg{width:15px;height:15px;fill:#ce9c7a33;color:#d3a17b;stroke-width:1.3}.gold-number{color:#e5cb88}.gold-number>span{font-size:18px}.map-controls{position:absolute;right:26px;bottom:101px;display:flex;flex-direction:column;gap:9px}.map-control{display:flex;align-items:center;justify-content:center;gap:6px;min-width:43px;min-height:43px;padding:8px;background:#19392edb;border:1px solid #b2bd9555;border-radius:7px;box-shadow:0 5px 15px #142f2722}.map-control span{display:none;font-size:11px}.map-control[aria-pressed=true]{background:#475a3eea;color:#eee2bb;border-color:#cbb57a99}.map-control:hover{background:#50684be8}.world-bottom{position:absolute;left:27px;bottom:38px;right:27px;display:flex;justify-content:space-between;align-items:center;gap:20px}.tool-bar{display:flex;gap:3px;padding:5px;background:#15372de8;border:1px solid #a6af8845;border-radius:9px;backdrop-filter:blur(16px);box-shadow:0 7px 20px #0a221f44}.tool{display:flex;gap:8px;align-items:center;justify-content:center;min-height:46px;min-width:110px;padding:9px 14px;background:none;border:1px solid transparent;border-radius:5px;font-size:11px;color:#b5c6ae}.tool svg{width:19px;height:19px}.tool.active{color:#eeddb1;background:#69724644;border-color:#c1b17c77}.tool:hover:not(:disabled){background:#8fa97933}.time-controls{display:flex;gap:5px;background:#18392edb;border:1px solid #a6af883d;border-radius:9px;padding:4px}.time-controls .icon-button{border:0;min-height:42px;min-width:40px;border-radius:5px}.time-controls svg{width:15px;height:15px}.time-controls button:last-child{min-width:42px;border:0;background:transparent;border-radius:5px;font-size:13px;color:#d9d2ad}.scene-note{position:absolute;left:28px;bottom:15px;font-size:9px;letter-spacing:.02em;color:#c6d0b282;text-shadow:0 1px #14372f}.game-sidebar{padding:29px 25px 18px;background:linear-gradient(125deg,#203d33,#172e28 80%);border-left:1px solid #b3ac7a36;display:flex;flex-direction:column;min-height:calc(100svh - 86px);max-height:calc(100svh - 86px);overflow:auto;scrollbar-width:thin;scrollbar-color:#71866a #173128}.phase-heading h2{font-size:27px;color:#eadcba;line-height:1.15;margin:11px 0 10px}.phase-heading p{color:#a7baaa;font-size:11px;line-height:1.75;min-height:58px}.draft-heading{display:flex;align-items:center;justify-content:space-between;margin:25px 0 10px;color:#c5cebb;font-size:10px}.draft-heading>span:last-child{color:#d1bc8b;font-family:Georgia;font-size:14px}.draft-strip{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:5px}.draft-slot{min-width:0;height:59px;background:#132b2555;border:1px solid #93a78039;border-radius:4px;display:flex;align-items:center;justify-content:center;position:relative;padding:0}.draft-slot.empty{border-style:dashed;color:#9fb49c44;font-family:Georgia;font-size:23px}.draft-slot img{width:100%;height:48px;object-fit:contain;filter:drop-shadow(0 3px 3px #0003)}.draft-slot small{position:absolute;right:3px;bottom:1px;font-size:8px;color:#d0bb85}.draft-slot.selected{border-color:#dbc590;background:#88956a28;box-shadow:0 0 0 1px #dbc59033}.selected-panel{margin-top:20px;border-top:1px solid var(--line);padding-top:15px;min-height:207px}.empty-selection{text-align:center;padding:12px 10px 15px}.empty-gem{font-size:37px;line-height:1;color:#9eae7e88}.empty-selection h3{color:#d6d8ba;font-size:18px;margin:12px 0 8px}.empty-selection p{font-size:11px;color:#9aaf9c;line-height:1.7}.gem-identity{display:flex;gap:10px;align-items:center}.selected-art{width:82px;height:82px;object-fit:contain;filter:drop-shadow(0 7px 5px #0b201f55)}.gem-name h3{font-size:23px;color:#ece4cc;line-height:1.1}.gem-name p{font-size:10px;line-height:1.5;color:#bdcca9;margin-top:5px}.grade-dots{display:flex;gap:3px;margin-top:8px}.grade-dots i{height:4px;width:10px;background:#5d735c;border-radius:1px}.grade-dots i.on{background:#c6b47d}.gem-stats{display:grid;grid-template-columns:repeat(3,1fr);margin-top:14px;border-top:1px solid #8c9e7629;padding-top:12px;gap:8px}.gem-stats small{display:block;color:#829b86;font-size:8px;letter-spacing:.08em;text-transform:uppercase}.gem-stats b{display:block;font:19px Georgia,serif;color:#dedbbc;margin-top:5px}.effect-description{font-size:10px;line-height:1.65;margin-top:13px;color:#9eb49f;min-height:34px}.selected-coordinates{font-size:10px;color:#b8c398;margin-top:8px}.primary-action{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:49px;padding:12px 17px;margin:15px 0 0;color:#193326;background:linear-gradient(100deg,#d6c28c,#aebd8b);border:1px solid #e1d2a4;border-radius:5px;font-size:12px;font-weight:600;letter-spacing:.02em;box-shadow:0 6px 20px #0b221c33}.primary-action:hover:not(:disabled){background:#e4d4a5;box-shadow:0 4px 22px #b1bf8740}.primary-action:disabled{opacity:.45}.resolve-buttons{display:flex;flex-wrap:wrap;gap:6px;margin-top:11px}.resolve-buttons button{flex:1;min-width:95px;min-height:37px;background:#2c4938;border:1px solid #9eaa743d;border-radius:4px;font-size:10px;padding:7px;color:#d6d8b7}.resolve-buttons button:hover:not(:disabled){border-color:#c9b57c}.wave-progress{margin-top:17px}.wave-progress>div{display:flex;justify-content:space-between;font-size:11px;color:#d2d4b7;margin-bottom:9px}progress{appearance:none;height:4px;width:100%;border:0;display:block;background:#102c24;border-radius:5px;overflow:hidden}progress::-webkit-progress-bar{background:#0f2b24}progress::-webkit-progress-value{background:linear-gradient(90deg,#719977,#c3c38b);border-radius:4px}progress::-moz-progress-bar{background:#b4bc84}.recipe-button{display:flex;align-items:center;gap:10px;min-height:46px;flex-shrink:0;border:1px solid #97aa7c48;background:#172e2433;border-radius:5px;padding:11px 14px;width:100%;font-size:11px;color:#bfccb1;margin-top:20px}.recipe-button svg{width:17px;height:17px;color:#c4b986}.recipe-button>span{margin-left:auto;color:#99ae8d;font-size:9px}.recipe-button:hover{background:#53644244}.builder-level{margin-top:25px}.builder-level>div{display:flex;justify-content:space-between;gap:5px;font-size:9px;color:#8fa68e;margin-bottom:8px}.builder-level b{font-weight:500;color:#c9c89d}.builder-level small{font-size:8px;color:#7d977f}.builder-level progress{height:3px}.sidebar-footer{margin-top:auto;padding-top:24px;display:flex;flex-direction:column;gap:9px;text-align:center;color:#78917d;font-size:8px;letter-spacing:.02em}.sidebar-footer button{border:0;background:transparent;color:#8fa68d;font-size:9px;padding:7px;min-height:30px}.toast{position:absolute;bottom:110px;left:50%;transform:translateX(-50%) translateY(10px);padding:11px 18px;background:#142f26ed;color:#e1d6b4;border:1px solid #c4b27a77;border-radius:7px;font-size:11px;text-align:center;width:max-content;max-width:82%;box-shadow:0 10px 30px #102a2544;opacity:0;pointer-events:none;transition:opacity .25s,transform .25s}.toast.visible{opacity:1;transform:translateX(-50%)}.scene-loader{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;flex-direction:column;background:#1b3b32ef;gap:14px;color:#c8cfb6;z-index:3}.loader-ring{width:40px;height:40px;border:1px solid #d6c28b33;border-top-color:#d6c28b;border-radius:50%;animation:spin 1.3s linear infinite}.scene-loader p{font:21px Georgia,serif}.scene-loader small{font-size:10px;color:#8ba78e}@keyframes spin{to{transform:rotate(360deg)}}.fatal-error{position:absolute;z-index:10;inset:25%;background:#172e28;padding:25px;border:1px solid #af9a68;border-radius:8px}.fatal-error h2{margin-bottom:12px}.fatal-error p{font-size:13px;line-height:1.8}.fatal-error button{padding:12px;margin-top:15px;background:#bcc797;color:#193326;border:0}dialog{color:#d9dfcb;background:#1b352c;border:1px solid #9b9c674d;border-radius:12px;box-shadow:0 30px 100px #071e1bcc;max-height:88svh;max-width:calc(100vw - 32px);width:760px;padding:27px 30px;scrollbar-width:thin;scrollbar-color:#71866a #173128}dialog::backdrop{background:#0b211cc7;backdrop-filter:blur(6px)}.modal-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:22px}.modal-heading h2{font-size:32px;color:#e1d7b5;margin-top:7px}.modal-heading .icon-button{font-size:23px;flex-shrink:0}.welcome-dialog{padding:0;width:830px;overflow:hidden}.welcome-dialog[open]{display:grid;grid-template-columns:40% 60%}.welcome-art{background:linear-gradient(0deg,#183b3280,#15352b00),url('art/scene_menu_background.webp') 51% center/cover;min-height:510px;border-right:1px solid #a2b18544}.welcome-copy{padding:35px 35px 25px}.welcome-copy h2{font-size:43px;line-height:1.1;color:#eee0b9;margin:16px 0}.welcome-copy>p{font-size:12px;color:#b2c3ab;line-height:1.85;max-width:320px}.welcome-copy ol{list-style:none;padding:0;display:grid;gap:19px;margin:29px 0}.welcome-copy li{display:flex;gap:15px;align-items:flex-start}.welcome-copy li>span{font:21px Georgia,serif;color:#a7b18499}.welcome-copy li b{display:block;font-size:11px;font-weight:500;color:#dddcc0;margin:1px 0 5px}.welcome-copy li small{display:block;font-size:10px;line-height:1.7;color:#9fb69f}.welcome-caption{display:block;text-align:center;font-size:8px;color:#829d85;margin-top:16px;line-height:1.6}.subtle-button{width:100%;padding:12px;background:none;border:0;color:#b1c29c;font-size:11px;margin-top:8px}.modal-prose{font-size:12px;color:#b2c4ae;line-height:1.85}.modal-prose h3{font-size:21px;color:#dddbb9;margin:21px 0 8px}.modal-prose p{margin:9px 0}.modal-prose a{color:#d8c387}.modal-prose ul{padding-left:20px}.settings-list{display:grid;gap:14px}.settings-list label{display:flex;gap:20px;align-items:center;justify-content:space-between;border-bottom:1px solid #b9be8c22;padding:12px 0;font-size:13px}.settings-list label>span small{display:block;color:#8ea68f;font-size:10px;margin-top:5px;line-height:1.6}.settings-list input[type=checkbox]{width:21px;height:21px;accent-color:#b8c495}.settings-list select,.recipe-search{color:#d4dfc2;background:#123025;border:1px solid #91a77955;padding:10px;border-radius:5px;min-height:43px}.recipe-controls{display:flex;align-items:center;gap:15px;margin-bottom:15px}.recipe-search{flex:1;min-width:0;font-size:12px}.recipe-controls label{font-size:10px;white-space:nowrap;color:#aec0a7}.recipes-list{display:grid;gap:9px}.recipe-row{display:grid;grid-template-columns:65px minmax(0,1fr) 87px;gap:12px;align-items:center;border:1px solid #8ca3782d;padding:11px;border-radius:7px;background:#14302455}.recipe-row>img{width:65px;height:65px;object-fit:contain}.recipe-row h3{font-size:19px;color:#ded8b8}.recipe-row p{font-size:9px;color:#96ad94;line-height:1.8;margin-top:5px}.recipe-row.ready{border-color:#c3b67899;background:#68805422}.recipe-row button{background:#b4c18b;color:#173326;border:0;min-height:40px;padding:9px;border-radius:4px;font-size:10px}.recipe-row small{display:block;color:#9ab094;font-size:9px;line-height:1.5}.result-symbol{font:60px Georgia;text-align:center;color:#d4c08a;margin:18px}.result-title{font:38px Georgia;text-align:center;color:#ebddb8}.result-copy{text-align:center;color:#afc1a6;font-size:13px;line-height:1.8;margin:18px auto 22px;max-width:450px}.result-stats{display:flex;justify-content:center;gap:40px;text-align:center;margin:25px 0}.result-stats strong{display:block;font:30px Georgia;color:#e0d5ae}.result-stats span{display:block;font-size:10px;color:#9ab193;margin-top:6px}body.reduced-motion *{animation:none!important;scroll-behavior:auto!important;transition:none!important}@media(min-width:1600px){.game-layout{grid-template-columns:minmax(0,1fr) 370px}.game-sidebar{padding:34px 32px}.phase-heading h2{font-size:30px}.phase-heading p{font-size:12px}.selected-panel{min-height:225px}.selected-art{width:100px;height:100px}.gem-stats b{font-size:22px}.draft-slot{height:66px}.draft-slot img{height:57px}.effect-description{font-size:11px}.tool{min-width:128px}.map-title h1{font-size:33px}.world-top{top:33px;left:35px;right:35px}}@media(max-width:1100px){.game-layout{grid-template-columns:minmax(0,1fr) 295px}.app-header{padding:0 22px}.game-sidebar{padding:24px 19px}.world-top{left:20px;right:20px}.map-title h1{font-size:23px}.hud{gap:15px;padding:13px 14px}.hud-stat strong{font-size:22px}.tool{min-width:83px;padding:8px 9px;gap:6px}.world-bottom{left:19px;right:19px}.tool svg{width:17px}.phase-heading h2{font-size:24px}}@media(max-width:760px){.app-header{height:67px;padding:0 15px}.brand{font-size:18px;gap:5px}.brand-gem{font-size:39px}.brand small{font-size:6px;letter-spacing:.2em}.expedition{display:none}.header-actions{gap:7px}.header-actions .icon-button{min-width:35px;min-height:35px;font-size:17px}.new-game-button{margin-left:0;min-width:35px;min-height:35px;padding:0;justify-content:center}.new-game-button span{display:none}.game-layout{display:block}.world-panel{height:59svh;min-height:420px;max-height:680px}.world-top{top:18px;left:16px;right:16px;gap:8px}.map-title .eyebrow{font-size:6px;letter-spacing:.1em}.map-title h1{font-size:19px;margin-top:7px}.hud{padding:10px 12px;gap:15px;height:63px;border-radius:7px}.hud-stat>span{font-size:6px;margin-bottom:8px}.hud-stat strong{font-size:19px}.hud-stat strong small{font-size:9px;margin-left:2px}.heart-number svg{width:11px;height:11px}.gold-number>span{font-size:14px}.world-bottom{left:13px;right:13px;bottom:28px;gap:5px}.tool-bar{padding:4px}.tool{min-height:40px;min-width:63px;padding:7px 8px;gap:5px;font-size:9px}.tool svg{width:15px;height:15px}.time-controls{padding:2px}.time-controls .icon-button{min-width:34px;min-height:40px}.time-controls button:last-child{min-width:31px;font-size:11px}.scene-note{font-size:7px;bottom:10px;left:16px}.map-controls{right:13px;bottom:88px;gap:5px}.map-control{min-width:35px;min-height:35px;padding:7px}.map-control svg{width:17px;height:17px}.game-sidebar{padding:22px 20px;max-height:none;min-height:0;border-left:0;border-top:1px solid #b9b07e50;display:block}.phase-heading h2{font-size:26px;margin-top:8px}.phase-heading p{font-size:11px;min-height:0;max-width:480px}.draft-heading{margin-top:19px}.draft-strip{gap:8px}.draft-slot{height:65px}.draft-slot img{height:60px}.selected-panel{margin-top:17px;padding-top:15px;min-height:0}.empty-selection{padding:12px;display:flex;flex-wrap:wrap;align-items:center;gap:8px;justify-content:center}.empty-gem{font-size:29px}.empty-selection h3{font-size:19px;margin:0}.empty-selection p{width:100%;font-size:10px}.gem-identity{float:left;width:55%;margin-top:4px}.selected-art{width:71px;height:76px}.gem-name h3{font-size:22px}.gem-name p{font-size:9px}.grade-dots i{width:8px}.gem-stats{grid-template-columns:repeat(3,1fr);width:43%;margin-left:auto;margin-top:0;padding-top:14px;border-top:0;gap:8px}.gem-stats b{font-size:17px}.gem-stats small{font-size:7px}.effect-description{clear:both;padding-top:12px;min-height:0;margin-top:6px}.primary-action{margin-top:15px}.builder-level{margin-top:20px}.sidebar-footer{padding-top:18px;flex-direction:row;justify-content:space-between;align-items:center}.recipe-button{margin-top:16px}.welcome-dialog[open]{display:block;overflow:auto;width:450px;max-height:92svh}.welcome-art{display:none}.welcome-copy{padding:30px 27px 24px;background:radial-gradient(ellipse at top right,#4e654622,transparent 75%)}.welcome-copy h2{font-size:39px}.welcome-copy>p{font-size:11px}.welcome-copy ol{gap:17px;margin:24px 0}.welcome-copy li small{font-size:9px}.welcome-caption{font-size:7px}dialog{padding:22px 20px;max-width:calc(100vw - 22px);max-height:90svh}.modal-heading h2{font-size:28px}.recipe-row{grid-template-columns:50px minmax(0,1fr) 68px;gap:7px;padding:8px}.recipe-row>img{width:50px;height:57px}.recipe-row h3{font-size:17px}.recipe-row p{font-size:8px}.recipe-row button{font-size:9px;padding:7px}.recipe-controls{gap:9px}.recipe-controls label{font-size:9px}.result-title{font-size:32px}.result-stats{gap:27px}.fatal-error{inset:15%;padding:20px}}@media(max-width:370px){.hud{gap:10px;padding:10px}.map-title h1{font-size:17px}.tool{min-width:56px;padding:6px;font-size:8px}.brand{font-size:16px}.gem-identity{width:52%;gap:5px}.selected-art{width:61px}.gem-name h3{font-size:19px}.gem-stats{width:46%}.hud-stat strong{font-size:18px}}@media(max-height:650px) and (min-width:761px){.world-panel{min-height:520px}.game-sidebar{max-height:none}.game-layout{min-height:520px}}
