:root{color-scheme:dark;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;background:#101612;color:#f3ecd7;font-synthesis:none;text-rendering:geometricPrecision}*{box-sizing:border-box}body{margin:0;min-width:320px;min-height:100vh;overflow:hidden}button,input{font:inherit}button{border:0;cursor:pointer}.loading,.authShell{min-height:100vh;display:grid;place-items:center;background:linear-gradient(#1016121a,#101612c7),repeating-linear-gradient(90deg,#17281d 0,#17281d 22px,#1c3225 22px,#1c3225 44px)}.authScene{width:min(420px,calc(100vw - 32px))}.brandMark,.sideBrand{display:flex;align-items:center;gap:10px;color:#f5e7b7}.brandMark{justify-content:center;margin-bottom:18px;font-size:28px;font-weight:800}.authBox,.characterPreview,.characterControls,.accountPanel,.adminBand,.mapEditorBand{border:1px solid rgba(238,219,159,.16);background:#17201bf0;box-shadow:0 24px 70px #00000040}.authBox{display:grid;gap:15px;padding:22px;border-radius:8px}.modeSwitch{display:grid;grid-template-columns:1fr 1fr;gap:6px;padding:4px;background:#0c120f;border-radius:8px}.modeSwitch button,.navList button,.ghostButton,.iconButton{color:#d9ccb0;background:transparent;border-radius:7px}.modeSwitch button{padding:10px 12px}.modeSwitch .active,.navList .active,.palette .active{color:#1a211b;background:#d8bd69}label{display:grid;gap:7px;color:#cfc2a4;font-size:13px}input{width:100%;padding:12px 13px;color:#f7eed7;background:#0d140f;border:1px solid #314332;border-radius:7px;outline:none}input:focus{border-color:#d7be69}.primaryButton,.ghostButton,.iconButton{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:40px;padding:0 14px;white-space:nowrap}.primaryButton{color:#111812;background:#d8bd69;border-radius:7px;font-weight:800}.primaryButton:disabled{opacity:.62}.primaryButton.compact{min-height:36px}.ghostButton,.iconButton{border:1px solid rgba(237,219,159,.14);background:#0c120fa3}.ghostButton:hover,.iconButton:hover{border-color:#eddb9f52}.iconButton{width:40px;padding:0}.iconButton.wide{width:auto;min-width:118px;padding:0 12px}.iconButton.danger{color:#ffd2c7;border-color:#e05d4a4d}.finePrint,.authMessage,.statusLine,.emptyState{color:#bbae91;line-height:1.5}.finePrint,.authMessage{margin:0;text-align:center;font-size:13px}.authMessage{margin-top:12px}.appShell{min-height:100vh;display:grid;grid-template-columns:220px minmax(0,1fr);background:#0d130f}.sideBar{display:flex;flex-direction:column;gap:18px;min-height:100vh;padding:18px;border-right:1px solid rgba(236,219,159,.12);background:#121b16}.sideBrand{height:36px;font-size:18px}.navList{display:grid;gap:8px}.navList button,.ghostButton{justify-content:flex-start;width:100%;padding:0 12px}.ghostButton{margin-top:auto}.workspace{height:100vh;overflow:auto;padding:26px}.workspaceHeader{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:18px}.workspaceHeader h1,.sectionTitle h2{margin:0;letter-spacing:0}.workspaceHeader h1{font-size:30px}.workspaceHeader p{margin:6px 0 0;color:#a9af9f}.adminWorkspace{display:grid;align-content:start;gap:18px}.adminBand,.mapEditorBand{padding:18px;border-radius:8px}.sectionTitle{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}.sectionTitle span{color:#bdae88}.applicationList{display:grid;gap:8px}.applicationRow{display:grid;grid-template-columns:minmax(180px,1fr) 110px auto;align-items:center;gap:12px;min-height:56px;padding:10px 12px;border:1px solid rgba(232,211,148,.1);border-radius:8px;background:#101813}.applicationRow div:first-child{display:grid;gap:4px}.applicationRow span{color:#aeb99f;font-size:13px}.statusBadge{justify-self:start;padding:5px 8px;border-radius:999px;background:#28352c}.statusBadge.approved{color:#b9f1c8}.statusBadge.rejected{color:#ffc0b5}.rowActions{display:flex;gap:8px}.editorLayout{display:grid;grid-template-columns:180px minmax(0,1fr);gap:18px;align-items:start}.palette{display:grid;gap:8px}.palette button{display:flex;align-items:center;gap:8px;min-height:36px;padding:0 10px;color:#eadcbc;background:#111912;border:1px solid rgba(232,211,148,.12);border-radius:7px}.tileSwatch{width:18px;height:18px;border:1px solid rgba(255,255,255,.2)}.mapGrid{display:grid;gap:1px;overflow:auto;max-width:100%;padding:10px;background:#080d0a;border-radius:8px}.mapCell{width:18px;height:18px;border-radius:4px}.tileSwatch.grass,.mapCell.grass{background:#3f7d4a}.tileSwatch.forest,.mapCell.forest{background:#244b35}.tileSwatch.water,.mapCell.water{background:#356c89}.tileSwatch.mud,.mapCell.mud{background:#6a5638}.tileSwatch.path,.mapCell.path{background:#9c8154}.tileSwatch.camp,.mapCell.camp{background:#7a6f45}.tileSwatch.bush,.mapCell.bush{background:#2f6841}.tileSwatch.sand,.mapCell.sand{background:#c9b87b}.tileSwatch.stone,.mapCell.stone{background:#5f6864}.characterWorkspace{display:grid;align-content:start}.characterEditor{display:grid;grid-template-columns:minmax(240px,340px) minmax(260px,520px);gap:18px}.characterPreview,.characterControls,.accountPanel{padding:20px;border-radius:8px}.accountPanel{margin-top:18px;max-width:878px}.passwordGrid{display:grid;grid-template-columns:repeat(3,minmax(180px,1fr)) auto;align-items:end;gap:14px}.characterPreview{display:grid;place-items:center;gap:18px;min-height:360px}.pixelPerson{position:relative;width:96px;height:128px;transform:scale(2)}.pixelPerson span{position:absolute;border-radius:3px}.pixelPerson .hat{z-index:2;left:27px;top:7px;width:42px;height:16px}.pixelPerson .hat.cap{background:#445d87;border-radius:8px 8px 4px 4px}.pixelPerson .hat.cap:after,.pixelPerson .hat.straw:after{content:"";position:absolute;right:-11px;top:8px;width:18px;height:7px;border-radius:8px;background:inherit}.pixelPerson .hat.hood{top:8px;height:28px;background:#586070;border-radius:18px 18px 10px 10px}.pixelPerson .hat.straw{left:21px;top:12px;width:54px;height:12px;background:#d1b75e;border-radius:999px}.pixelPerson .hat.beanie{background:#8d3f68;border-radius:18px 18px 8px 8px}.pixelPerson .hat.beanie:after{content:"";position:absolute;left:18px;top:-8px;width:9px;height:9px;border-radius:999px;background:#d6a2c1}.pixelPerson .hat.bandana{top:17px;height:10px;background:#a83b3b;border-radius:8px}.pixelPerson .glasses{z-index:3;left:34px;top:35px;width:28px;height:8px;border-top:2px solid #f1f7f3}.pixelPerson .glasses.round:before,.pixelPerson .glasses.round:after,.pixelPerson .glasses.square:before,.pixelPerson .glasses.square:after,.pixelPerson .glasses.sunglasses:before,.pixelPerson .glasses.sunglasses:after{content:"";position:absolute;top:-5px;width:10px;height:9px;border:2px solid #f1f7f3;background:#14141414}.pixelPerson .glasses.round:before,.pixelPerson .glasses.square:before,.pixelPerson .glasses.sunglasses:before{left:-1px}.pixelPerson .glasses.round:after,.pixelPerson .glasses.square:after,.pixelPerson .glasses.sunglasses:after{right:-1px}.pixelPerson .glasses.round:before,.pixelPerson .glasses.round:after{border-radius:999px}.pixelPerson .glasses.square:before,.pixelPerson .glasses.square:after{border-radius:2px}.pixelPerson .glasses.sunglasses:before,.pixelPerson .glasses.sunglasses:after{border-color:#111;background:#111;border-radius:2px}.pixelPerson .hair{left:30px;top:14px;width:36px;height:14px}.pixelPerson .head{left:34px;top:24px;width:28px;height:28px}.pixelPerson .body{left:28px;top:54px;width:40px;height:38px}.pixelPerson .shirtPattern{z-index:2;left:36px;top:65px;width:24px;height:18px}.pixelPerson .shirtPattern.stripe{background:repeating-linear-gradient(to bottom,transparent 0,transparent 4px,#f0d98b 4px,#f0d98b 8px)}.pixelPerson .shirtPattern.leaf{width:22px;height:12px;background:#b9e07c;border-radius:999px 0;transform:rotate(-20deg)}.pixelPerson .shirtPattern.mushroom:before{content:"";position:absolute;left:10px;top:8px;width:5px;height:9px;background:#f0dcc1}.pixelPerson .shirtPattern.mushroom:after{content:"";position:absolute;left:4px;top:2px;width:18px;height:9px;background:#d45d55;border-radius:999px 999px 4px 4px}.pixelPerson .shirtPattern.sun{left:39px;width:18px;height:18px;background:#f4cf5f;border-radius:999px;box-shadow:0 -8px 0 -6px #f4cf5f,0 8px 0 -6px #f4cf5f,-8px 0 0 -6px #f4cf5f,8px 0 0 -6px #f4cf5f}.pixelPerson .leg{top:92px;width:14px;height:30px}.pixelPerson .leg.left{left:31px}.pixelPerson .leg.right{left:51px}.characterControls{display:grid;gap:18px}fieldset{padding:0;margin:0;border:0}legend{margin-bottom:8px;color:#cfc2a4;font-size:13px}.swatchRow{display:flex;flex-wrap:wrap;gap:10px}.swatchRow button{width:38px;height:38px;border:2px solid rgba(255,255,255,.14);border-radius:7px}.swatchRow .selected{border-color:#efd57d;box-shadow:0 0 0 3px #efd57d29}.hatRow{display:flex;flex-wrap:wrap;gap:8px}.hatRow button{min-height:36px;padding:0 12px;color:#eadcbc;background:#111912;border:1px solid rgba(232,211,148,.14);border-radius:7px}.hatRow .selected{color:#1a211b;background:#d8bd69;border-color:#d8bd69}.gameShell{position:relative;min-width:0;height:100vh;overflow:hidden;background:#111813}.gameCanvas,.gameCanvas canvas{width:100%;height:100%;display:block;image-rendering:pixelated}.survivalHud,.inventoryHud,.actionBar,.mobilePad{position:absolute;z-index:5}.survivalHud{left:14px;bottom:14px;width:148px;height:148px;pointer-events:none;image-rendering:pixelated}.survivalHud svg{width:100%;height:100%;display:block;shape-rendering:crispEdges}.hudFrame circle,.hudFrame path{fill:none;stroke:#120f0b;stroke-width:18;stroke-linecap:butt;stroke-linejoin:miter}.hudFrame path:last-child{fill:#241b13;stroke:#0b0806;stroke-width:5}.hudTracks path,.hudTracks circle{fill:none;stroke:#2a2218;stroke-width:18;stroke-linecap:butt}.hudBars path,.hudBars circle{fill:none;stroke-width:16;stroke-linecap:butt}.waterBar{stroke:#1f95e7;stroke-dasharray:var(--water) 100}.foodBar{stroke:#f07d08;stroke-dasharray:var(--food) 100}.restBar{stroke:#8fd13d;stroke-dasharray:var(--rest) 100;transform:rotate(-90deg);transform-origin:90px 90px}.waterTrack{stroke:#0d3f6a}.foodTrack{stroke:#6d3108}.restTrack{stroke:#2b4a1b}.hudCenter{fill:#071221;stroke:#0b0806;stroke-width:6}.hudMoon{fill:#f2d573;stroke:#5d4520;stroke-width:3}.hudHeartBack{fill:#2b1511;stroke:#d8ad4b;stroke-width:10}.hudHeart{fill:#ef2f27;stroke:#5c1712;stroke-width:3;clip-path:inset(calc(100% - var(--health)) 0 0 0)}.hudIcon path{stroke:#0a0806;stroke-width:3;stroke-linejoin:miter}.waterIcon path:first-child{fill:#8fe6ff}.waterIcon path:last-child{fill:none;stroke:#e8fbff;stroke-width:4}.foodIcon path:first-child{fill:#b56525}.foodIcon path:last-child{fill:none;stroke:#f5ead5;stroke-width:5}.inventoryHud{left:174px;bottom:14px;display:flex;flex-wrap:wrap;gap:8px;max-width:calc(100% - 28px)}.inventoryHud span{display:inline-flex;align-items:center;gap:6px;min-height:34px;padding:0 10px;border:1px solid rgba(239,219,159,.16);border-radius:7px;background:#0c120fc7}.actionBar{right:14px;bottom:14px;display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px;max-width:min(1040px,calc(100% - 28px))}.mobilePad{right:18px;bottom:98px;display:none;grid-template-columns:repeat(3,46px);grid-template-rows:repeat(2,46px);gap:6px}.mobilePad button{color:#f0dfb5;background:#0c120fcc;border:1px solid rgba(239,219,159,.2);border-radius:7px}.mobilePad button:first-child{grid-column:2}.mobilePad button:nth-child(2){grid-column:1}@media (max-width: 900px){body{overflow:auto}.appShell{min-height:100vh;grid-template-columns:1fr}.sideBar{position:fixed;left:0;right:0;bottom:0;z-index:20;min-height:0;height:64px;flex-direction:row;align-items:center;padding:8px;border-top:1px solid rgba(236,219,159,.12);border-right:0}.sideBrand{display:none}.navList{display:flex;flex:1}.navList button,.ghostButton{justify-content:center;min-width:48px;padding:0 8px}.navList span,.ghostButton span{display:none}.workspace{height:calc(100vh - 64px);padding:16px}.workspaceHeader,.sectionTitle,.characterEditor,.passwordGrid,.editorLayout,.applicationRow{grid-template-columns:1fr}.workspaceHeader,.sectionTitle{align-items:flex-start}.survivalHud{width:128px;height:128px;left:10px;bottom:10px}.gameShell{height:calc(100vh - 64px)}.actionBar{bottom:78px}.inventoryHud{display:none}.mobilePad{display:grid}}@media (max-width: 560px){.survivalHud{width:112px;height:112px}.actionBar{left:10px;right:10px;justify-content:stretch}.actionBar .iconButton.wide,.actionBar .primaryButton{flex:1 1 112px;min-width:0}}
