@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@500;600;700;800&family=DM+Sans:wght@400;500;600;700&display=swap');
:root{--bg:#0c0e0d;--panel:#151916;--panel2:#1d231e;--panel3:#222a24;--border:#313931;--ink:#eae9df;--muted:#a6ada2;--weak:#747d72;--accent:#9cae85;--accent-dark:#354536;--warn:#d0a06c;--danger:#dc7b70;--green:#8aab76;--shadow:0 20px 55px rgba(0,0,0,.32)}
*{box-sizing:border-box}html{min-height:100%;scroll-behavior:smooth}body{background:var(--bg);color:var(--ink);margin:0;font-family:'DM Sans',sans-serif;line-height:1.52;font-size:15px;min-height:100vh}button,input,textarea{font:inherit}button{cursor:pointer}button:disabled{opacity:.5;cursor:not-allowed}a{color:var(--accent)}.hidden{display:none!important}.ambient-glow{position:fixed;inset:0;z-index:-1;pointer-events:none;background:radial-gradient(ellipse 75% 60% at 75% 0,rgba(100,112,78,.095),transparent 70%),radial-gradient(ellipse 45% 40% at 12% 85%,rgba(104,63,38,.08),transparent 80%)}
.topbar{height:72px;border-bottom:1px solid #242925;display:flex;align-items:center;justify-content:space-between;padding:0 max(22px,calc((100vw - 1340px)/2));gap:16px;background:rgba(12,14,13,.92);position:sticky;top:0;z-index:20;backdrop-filter:blur(14px)}.brand-small{display:flex;gap:11px;align-items:center;cursor:pointer;user-select:none}.brand-square{font-family:'Barlow Condensed',sans-serif;font-size:20px;font-weight:800;color:#c9d5bc;border:1px solid #6b7862;padding:4px 8px;line-height:1.2}.brand-label{font:800 19px/1 'Barlow Condensed';letter-spacing:.05em}.brand-label span{color:#a0ae87}.brand-label small{display:block;font:600 8px/1.8 'DM Sans';color:#788476;letter-spacing:.23em}.top-actions{display:flex;align-items:center;gap:12px}.top-status{font-size:10px;letter-spacing:.17em;color:#899889;border:1px solid #3a473a;border-radius:50px;padding:7px 11px}.icon-button{font-size:20px;color:#b3bea9;border:1px solid var(--border);background:#1a201b;border-radius:8px;width:39px;height:39px}.ghost,.secondary,.primary{border:1px solid var(--border);border-radius:9px;display:inline-flex;justify-content:center;align-items:center;gap:9px;padding:12px 17px;text-decoration:none;color:var(--ink);background:#1a211c;transition:.18s ease;min-height:44px}.ghost:hover,.secondary:hover{border-color:#65765b;background:#263027}.primary{border:1px solid #a1b28b;color:#10150f;background:linear-gradient(145deg,#c0cca9,#91a27a);font-weight:700}.primary:hover{filter:brightness(1.1);transform:translateY(-1px)}.small{font-size:12px;padding:7px 12px;min-height:35px}.danger-btn{border-color:#7f4645;background:#40221f;color:#f6c4bc}.subtitle{font-size:11px;text-transform:uppercase;letter-spacing:.22em;color:var(--green);font-weight:700}.muted{color:var(--muted)}.tiny{font-size:12px}.overline{display:block;font-weight:700;color:#97a48c;text-transform:uppercase;letter-spacing:.17em;font-size:11px;margin-bottom:8px}.section-title{font:700 clamp(28px,4vw,44px)/1.08 'Barlow Condensed';text-transform:uppercase;letter-spacing:.018em;margin:0 0 10px}.page-shell{max-width:1320px;margin:0 auto;padding:30px 22px 60px}.intro-hero{max-width:1210px;margin:26px auto 20px;display:grid;grid-template-columns:minmax(0,1.3fr) minmax(260px,.7fr);overflow:hidden;border-radius:20px;border:1px solid #3e4238;background:linear-gradient(120deg,#1a1d19,#171a17);min-height:520px;box-shadow:var(--shadow)}.hero-art{position:relative;min-height:460px;background:linear-gradient(90deg,transparent 60%,#161a16),url('/assets/logo.webp') center/cover no-repeat}.hero-art:after{content:'';position:absolute;inset:0;background:linear-gradient(0deg,rgba(15,18,15,.55),transparent 42%)}.hero-content{padding:55px 38px 48px;display:flex;flex-direction:column;align-items:flex-start;justify-content:center}.hero-content h1{font:800 clamp(42px,5.6vw,80px)/.94 'Barlow Condensed';margin:12px 0 18px;letter-spacing:-.02em}.hero-content p{font-size:14px;color:#b5bcb0;line-height:1.8;max-width:410px}.button-stack{display:grid;gap:12px;width:100%;max-width:325px;margin-top:25px}.hero-footnotes{display:flex;gap:16px;flex-wrap:wrap;color:#839080;font-size:11px;margin-top:25px}.hero-footnotes span:before{content:'•';margin-right:7px;color:#a7b58b}.card{background:linear-gradient(160deg,#1a1f1a,#121612);border:1px solid var(--border);border-radius:14px;padding:21px;box-shadow:0 3px 20px #0002}.dashboard{max-width:1080px;margin:0 auto}.dashboard-top{display:flex;justify-content:space-between;align-items:end;gap:15px;margin-bottom:20px}.save-list{display:grid;gap:13px}.save-row{display:flex;gap:16px;align-items:center;justify-content:space-between}.save-row h3{margin:3px 0 5px;font:700 23px 'Barlow Condensed';text-transform:uppercase}.save-controls{display:flex;gap:8px;flex-wrap:wrap}.tag{font-size:10px;padding:4px 8px;border-radius:6px;border:1px solid #3f4e3f;color:#adc09f;text-transform:uppercase;letter-spacing:.07em}.tag.warning{color:#e4b590;border-color:#75543e}.notice{padding:14px 17px;background:#262b22;border:1px solid #49543f;border-radius:9px;font-size:13px;color:#bdc7b1}.notice.alert{background:#352622;border-color:#84564d;color:#edc4b2}
/* Main in-game layout */
.game-grid{display:grid;grid-template-columns:minmax(0,1fr) 305px;gap:20px;align-items:start}.game-main{min-width:0}.game-masthead{background:linear-gradient(120deg,rgba(26,31,24,.8),rgba(12,15,13,.95)),url('/assets/logo.webp') center 44%/cover;border:1px solid #364035;border-radius:17px;min-height:176px;padding:26px;display:flex;flex-direction:column;justify-content:flex-end;position:relative;overflow:hidden}.game-masthead::before{content:'';position:absolute;inset:0;background:linear-gradient(90deg,rgba(11,13,12,.9),rgba(11,13,12,.3))}.game-masthead>*{position:relative}.game-masthead h1{font:700 clamp(29px,4vw,43px)/1 'Barlow Condensed';text-transform:uppercase;margin:6px 0}.context-line{display:flex;gap:14px;flex-wrap:wrap;color:#b3bdad;font-size:12px}.context-line strong{font-weight:500;color:#d8e4cf}.scene-panel{margin-top:15px;padding:22px 25px 26px;border:1px solid #333b33;background:#151916;border-radius:15px}.scene-title-row{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:13px}.scene-title-row h2{font:700 21px 'Barlow Condensed';text-transform:uppercase;letter-spacing:.05em;margin:0}.small-dot{height:7px;width:7px;border-radius:50%;display:inline-block;background:#7eae71;margin-right:8px}.small-dot.red{background:#d08376}.story-stream{display:flex;flex-direction:column;gap:14px;max-height:580px;min-height:245px;overflow:auto;scrollbar-color:#454f43 transparent;padding-right:5px}.story{background:#1c221d;border-left:2px solid #6f8265;padding:16px 18px;border-radius:0 8px 8px 0}.story.intro{background:#20261e;border-color:#b0ae87}.story.danger,.story.death{background:#2e201c;border-color:#d58575}.story.warning{border-color:#c5a26b}.story.success{border-color:#9fbd8c}.story-time{font-size:10px;letter-spacing:.13em;text-transform:uppercase;color:#909d87;margin-bottom:6px}.story p{margin:0;color:#e5e4d9;font-size:14px;line-height:1.8}.story.death p{color:#ffccc0}.actions-panel{margin-top:15px;background:#161b17;border:1px solid var(--border);border-radius:15px;padding:21px}.action-list{display:flex;flex-wrap:wrap;gap:9px;margin-bottom:15px}.action-button{border:1px solid #3f4b40;background:#232b24;color:#dce3d6;border-radius:7px;padding:9px 13px;font-size:12px;text-align:left;transition:.16s}.action-button:hover{background:#344334;border-color:#9db28e}.action-button.combat{border-color:#705048;color:#f2c7b7;background:#382723}.action-button.active{outline:1px solid #bfd0a9}.action-entry{display:flex;gap:9px}.action-entry input{min-width:0;flex:1;border:1px solid #3c463c;background:#0d110e;color:var(--ink);padding:12px 14px;border-radius:8px;outline:none}.action-entry input:focus{border-color:#8caa79}.action-entry button{white-space:nowrap}.action-info{color:#7c8b7b;font-size:11px;margin:12px 0 0}.attack-picker{display:flex;gap:7px;flex-wrap:wrap;background:#291f1a;border:1px solid #5c453b;padding:10px;border-radius:9px;margin-bottom:14px}.attack-picker button{font-size:12px;padding:8px 12px}.side-panel{display:grid;gap:15px}.side-section{background:#171d18;border:1px solid var(--border);border-radius:13px;padding:19px}.side-section h3{font:700 18px 'Barlow Condensed';text-transform:uppercase;letter-spacing:.05em;margin:0 0 15px}.side-name{font:700 22px 'Barlow Condensed';margin:0}.status-bar-row{margin-bottom:12px}.status-label{display:flex;justify-content:space-between;color:#b0bcad;font-size:12px;margin-bottom:6px}.status-track{height:6px;background:#30382f;border-radius:10px;overflow:hidden}.status-fill{height:100%;background:#a8b790;border-radius:10px}.status-fill.bad{background:#c87d6c}.status-fill.warn{background:#caa56d}.line-item{display:flex;justify-content:space-between;gap:12px;font-size:12px;padding:8px 0;border-bottom:1px solid #2b342b}.line-item:last-child{border:0}.line-item span:last-child{color:#e4e6da}.bloc-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.bloc{border:1px solid #394438;border-radius:8px;padding:9px;font-size:11px;color:#9da89c;min-height:64px;background:#121613}.bloc strong{display:block;font:700 12px 'DM Sans';margin-bottom:4px;color:#c5d2bc}.bloc.active{border-color:#9db493;background:#283528}.bloc.hidden-place{opacity:.65}.stat-legend{font-size:11px;color:#869584;margin-top:13px}.site-footer{padding:20px 24px;display:flex;justify-content:space-between;gap:15px;border-top:1px solid #252b25;font-size:10px;color:#6e7b6b;letter-spacing:.12em;text-transform:uppercase;max-width:1400px;margin:auto}.modal-backdrop{position:fixed;inset:0;background:rgba(3,5,4,.77);z-index:30;display:grid;place-items:center;padding:18px;backdrop-filter:blur(7px)}.modal{width:min(520px,100%);max-height:95vh;overflow:auto;background:#192019;border:1px solid #465243;border-radius:16px;padding:25px;box-shadow:0 30px 120px #000b}.modal-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:20px}.modal-head h2{margin:0;font:700 28px 'Barlow Condensed';text-transform:uppercase}.field{margin-bottom:14px}.field label{display:block;font-size:12px;color:#afbfac;margin-bottom:6px}.field input,.field textarea{width:100%;border:1px solid #465043;background:#0e130f;border-radius:8px;padding:11px;color:#f4f2e8;outline:none}.field textarea{min-height:70px;resize:vertical}.field input:focus,.field textarea:focus{border-color:#a5bc90}.field-grid{display:grid;grid-template-columns:1fr 100px;gap:12px}.modal-footer{display:flex;gap:9px;justify-content:flex-end;margin-top:21px}.toast{position:fixed;bottom:22px;left:50%;transform:translateX(-50%);max-width:min(520px,90vw);z-index:50;background:#263127;border:1px solid #829876;border-radius:8px;padding:13px 18px;color:#e8f0e5;font-size:13px;box-shadow:var(--shadow)}.switch{display:inline-flex;align-items:center;gap:12px}.switch input{accent-color:#a6c08c;width:20px;height:20px}.settings-help{font-size:12px;color:#9dac9e;line-height:1.7}.empty-message{font-size:13px;color:var(--muted);text-align:center;padding:22px}.skeleton{opacity:.75;animation:pulse 1.5s infinite}@keyframes pulse{50%{opacity:.35}}.death-message{font:700 30px 'Barlow Condensed';text-transform:uppercase;color:#da9185}.grid-subtle{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:0 auto 30px;max-width:1210px}.mini-benefit{background:#141914;padding:17px;border:1px solid #2f372f;border-radius:10px}.mini-benefit strong{display:block;font-size:13px;margin-bottom:5px}.mini-benefit span{font-size:12px;color:#98a597}
@media(max-width:980px){.game-grid{grid-template-columns:1fr}.side-panel{grid-template-columns:repeat(2,minmax(0,1fr))}.intro-hero{grid-template-columns:1.2fr 1fr;min-height:420px}.hero-content{padding:28px}}
@media(max-width:700px){.topbar{padding:0 15px;height:64px}.brand-label{font-size:16px}.brand-label small{font-size:7px}.top-status{display:none}.page-shell{padding:15px 12px 55px}.intro-hero{display:flex;flex-direction:column;margin:8px 0 15px;border-radius:13px}.hero-art{min-height:275px;background-position:center}.hero-content{padding:22px 23px 30px}.hero-content h1{font-size:43px}.hero-content p{font-size:13px}.grid-subtle{grid-template-columns:1fr;gap:8px}.save-row{align-items:flex-start;flex-direction:column}.dashboard-top{align-items:flex-start;flex-direction:column}.game-grid{gap:12px}.game-masthead{min-height:150px;padding:18px}.scene-panel,.actions-panel{padding:15px}.story-stream{max-height:480px;min-height:210px}.story{padding:12px}.story p{font-size:13px}.side-panel{grid-template-columns:1fr}.action-entry{flex-direction:column}.action-entry button{width:100%}.site-footer{padding:15px 12px;flex-direction:column}.modal{padding:17px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important;scroll-behavior:auto!important}}
