:root{color-scheme:dark;--bg:#111919;--panel:#182222;--line:#303b37;--text:#e4e4d7;--muted:#91a09a;--gold:#d7b278;--green:#98b5a0;--red:#c67d69}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font-family:Arial,Helvetica,sans-serif;font-size:14px;background-image:radial-gradient(ellipse at 40% 20%,#21302a55,transparent 60%)}button,input{font:inherit}button,a,input{ -webkit-tap-highlight-color:transparent}button{cursor:pointer;color:inherit}button{transition:background .2s,border-color .2s,transform .2s}button:hover:enabled{border-color:var(--gold);background:#344039}button:active:enabled{transform:translateY(2px)}button:focus-visible,a:focus-visible,input:focus-visible{outline:2px solid #edcc91;outline-offset:4px}button:disabled{cursor:not-allowed;opacity:.4}main{max-width:1480px;margin:auto;padding:0 48px}.topbar{height:90px;display:flex;align-items:center;gap:36px;border-bottom:1px solid var(--line)}.brand{display:flex;align-items:center;gap:7px;text-decoration:none;color:#e5e4d5;letter-spacing:3px;font-family:Georgia,serif;font-size:20px}.brand>span:last-child{color:var(--gold);margin-left:-3px}.brand-mark{font-size:32px!important;color:var(--gold);margin-right:8px}.top-sub{font-size:10px;letter-spacing:2px;color:#8c9b92}.help-button{margin-left:auto;background:transparent;border:0;color:#bcc5b9;font-size:12px}.help-button span{display:inline-grid;place-items:center;border:1px solid #526052;border-radius:50%;width:19px;height:19px;margin-left:9px}.page-heading{display:flex;align-items:center;justify-content:space-between;padding:35px 0 27px}.eyebrow{font-size:9px;letter-spacing:2px;color:var(--gold);display:flex;gap:10px;align-items:center;font-weight:bold}.tiny-line{display:inline-block;width:20px;height:1px;background:var(--gold)}.chapter{color:#73867e;font-weight:normal}h1{font-family:Georgia,'Times New Roman',serif;font-weight:normal;font-size:39px;letter-spacing:-1px;margin:12px 0 10px}h1>span{color:var(--gold)}.page-heading p{font-size:12px;color:var(--muted);margin:0}.encounter-label{font-size:9px;letter-spacing:1.5px;color:#bfcebd;text-align:right}.live-dot{display:inline-block;width:6px;height:6px;border-radius:50%;background:#a2bf9c;box-shadow:0 0 10px #a2bf9c44;margin-right:7px}.encounter-label small{display:block;color:#84958c;letter-spacing:0;font-size:11px;margin-top:12px}.encounter-label b{color:var(--gold);font-weight:normal;margin-left:7px}.game-layout{display:grid;grid-template-columns:minmax(0,1fr) 290px;gap:22px}.play-column{min-width:0}.arena{position:relative;height:480px;border:1px solid #4a5548;overflow:hidden;background:#1e3230;border-radius:5px}.arena:after{content:'';position:absolute;inset:0;pointer-events:none;box-shadow:inset 0 0 90px #06191a55}.world{position:absolute;width:100%;height:100%;top:0;left:0}.arena-top{position:absolute;z-index:2;left:22px;right:22px;top:17px;display:flex;justify-content:space-between;font-size:9px;letter-spacing:2px;color:#d4d6bf}.weather{color:#99ada0}.fighters-stats{position:absolute;display:flex;justify-content:space-between;left:21px;right:21px;top:49px;z-index:2;gap:24px}.stat-card{width:230px;background:linear-gradient(125deg,#192a29e8,#1b2e2ad4);padding:14px 15px 11px;border:1px solid #53645266;border-radius:3px;box-shadow:0 5px 15px #09161522}.stat-heading{display:flex;align-items:center;gap:10px;margin-bottom:14px}.portrait{display:grid;place-items:center;width:32px;height:36px;border:1px solid #849079;color:#d4bf8b;background:#344641;font-size:24px;border-radius:3px}.enemy-portrait{color:#aaba88;background:#344631}.stat-heading small{font-size:7px;letter-spacing:1.1px;color:#9aaa98}.stat-heading h2{font-family:Georgia,serif;font-size:16px;margin:3px 0 0;font-weight:normal}.stat-heading h2 span{font-family:Arial,sans-serif;color:#a3ac8d;font-size:8px;margin-left:9px}.hp-label{display:flex;justify-content:space-between;font-size:8px;letter-spacing:1px;color:#9dad9f}.hp-label strong{color:#d1decb;letter-spacing:.5px;font-weight:normal;font-size:10px}.meter{height:5px;border-radius:1px;background:#0e1d1a;margin-top:6px;overflow:hidden}.meter>div{height:100%;width:100%;background:linear-gradient(90deg,#5f8d77,#afc7a1);transition:width .45s}.enemy-meter>div{background:linear-gradient(90deg,#985d4c,#c99374)}.secondary-stats{display:flex;gap:12px;font-size:7px;letter-spacing:.5px;color:#9cae9d;margin-top:10px}.secondary-stats b{font-size:10px;font-weight:normal;color:#dfdebf;margin:0 3px}.focus-stat{margin-left:auto;color:#91bfc8}.character-names{position:absolute;bottom:78px;left:22%;right:16%;display:flex;justify-content:space-between;font-size:7px;letter-spacing:1.5px;color:#a4b9a1;text-shadow:0 2px 5px #000}.intent{position:absolute;bottom:52px;right:16px;display:flex;align-items:center;gap:10px;background:#172322e8;border:1px solid #5a625244;padding:9px 12px;border-radius:3px;z-index:2}.intent-icon{font-size:20px;color:var(--gold)}.intent small{display:block;color:#a8b29d;font-size:7px;letter-spacing:1px;margin-bottom:4px}.intent strong{font-size:11px;font-weight:normal;color:#e1d6bb}.intent>span:last-child{color:#d3a585;font-size:11px;padding-left:10px}.intent.heavy{border-color:#c28a60;box-shadow:0 0 16px #b36b2922}.turn-strip{position:absolute;bottom:0;left:0;right:0;height:38px;display:flex;align-items:center;justify-content:space-between;padding:0 20px;z-index:4;border-top:1px solid #76836b55;background:#152321ed;color:#c3ccba;font-size:10px}.turn-strip strong{font-weight:normal}.turn-strip>span:last-child{font-size:8px;color:var(--gold);letter-spacing:1.4px}.actions-heading{display:flex;justify-content:space-between;margin:23px 0 12px;font-size:8px;letter-spacing:1.4px;color:#b8c3b3}.actions-heading>span:last-child{font-size:10px;letter-spacing:0;color:#85968c}.actions{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.action{background:#1b2623;border:1px solid #3f4c40;text-align:left;padding:13px 13px 11px;border-radius:4px;min-height:143px;position:relative;overflow:hidden}.action:first-child{border-color:#8c9369;background:linear-gradient(120deg,#303c2d,#202c25)}.action-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:11px}.action-icon{font-size:23px;line-height:24px;color:#c6c8a5}.action kbd{font-size:9px;border:1px solid #4e5c4b;border-radius:3px;padding:3px 5px;color:#9ba88e;background:#17201a66}.action strong{display:block;font-family:Georgia,serif;font-size:16px;font-weight:normal;margin-bottom:6px}.action small{display:block;font-size:9px;color:#a8b5a4;min-height:12px}.action-cost{display:flex;justify-content:space-between;border-top:1px solid #61705333;padding-top:9px;margin-top:11px;font-size:7px;letter-spacing:.9px;color:#b6c09f}.action-cost>span{font-size:12px}.ember-action .action-icon,.ember-action .action-cost{color:var(--gold)}.potion-action .action-icon{color:#a2c1a2}.supplies{display:flex;align-items:center;gap:21px;margin:15px 0 0;font-size:8px;letter-spacing:.7px;color:#83958a;min-height:25px}.supplies b{color:#b8c4ac;font-size:10px;font-weight:normal;letter-spacing:0;margin-left:8px}.supplies>span:nth-child(2){letter-spacing:0;font-size:10px}.tip{margin-left:auto;font-family:Georgia,serif;font-style:italic;font-size:11px;letter-spacing:0!important;color:#95a18d}.chronicle{background:linear-gradient(130deg,#1c2724,#17211f);border:1px solid #354138;border-radius:5px;display:flex;flex-direction:column;max-height:714px;min-height:0}.chronicle-heading{padding:24px 20px 19px;border-bottom:1px solid #344136;display:flex;justify-content:space-between;align-items:center}.chronicle-heading .eyebrow{font-size:7px;letter-spacing:1.7px;color:#91a189}.chronicle h2{font-family:Georgia,serif;font-weight:normal;font-size:21px;margin:8px 0 0}.log-icon{font-size:26px;color:#829279}.log{padding:6px 20px 16px;flex:1;overflow-y:auto;scrollbar-width:thin;scrollbar-color:#53634c transparent;min-height:300px}.log-entry{position:relative;padding:16px 0 16px 22px;border-bottom:1px solid #3f4c3b66;animation:entry .4s ease}.log-entry:before{content:'◆';position:absolute;left:0;top:19px;font-size:9px;color:#b7bc95}.log-entry.enemy:before{color:var(--red);content:'⚔'}.log-entry.heal:before{color:#a7c497;content:'+'}.log-entry.system:before{content:'✦';color:var(--gold)}.log-entry small{display:block;font-size:7px;color:#8e9d87;letter-spacing:1px;margin-bottom:7px}.log-entry p{margin:0;color:#c1cbb9;font-size:11px;line-height:1.7}.log-entry.enemy p{color:#c1b4a2}.log-entry.system p{color:#d7c59f;font-family:Georgia,serif;font-size:13px;font-style:italic}.log-footer{font-family:Georgia,serif;font-style:italic;font-size:11px;color:#899980;display:flex;gap:10px;align-items:center;padding:20px;border-top:1px solid #344136}.log-footer .tiny-line{width:13px;background:#748367}.bottom-bar{display:flex;justify-content:space-between;align-items:center;padding:23px 0;margin-top:20px;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}#seed-form{display:flex;align-items:center;gap:12px}#seed-form label{font-size:8px;letter-spacing:1.2px;color:#96a18e}input{width:123px;background:#1c2823;color:#c8c5a5;border:1px solid #485341;border-radius:3px;font-family:monospace;font-size:11px;padding:9px}#seed-form button{padding:8px 10px;border:1px solid #3f4c3e;border-radius:3px;background:#202b23;font-size:10px;color:#bdc4aa}#new-seed{background:transparent!important;border-color:transparent!important;color:#a1ae94!important}.bottom-bar>span{font-family:Georgia,serif;font-style:italic;font-size:12px;color:#8d9e89}.site-footer{display:flex;justify-content:space-between;padding:24px 0 27px;font-size:7px;letter-spacing:1.7px;color:#6c7f72}.site-footer>span:nth-child(2){font-size:11px;font-family:Georgia,serif;font-style:italic;letter-spacing:0}.result{position:absolute;inset:160px 14% 54px;z-index:3;display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center;background:#132321f5;border:1px solid #b6a272;border-radius:5px;box-shadow:0 5px 90px #091615dd;animation:entry .5s}.result[hidden]{display:none}.result>span{font-size:36px;color:var(--gold)}.result small{font-size:8px;color:var(--gold);letter-spacing:2px;margin-top:7px}.result h2{font-family:Georgia,serif;font-weight:normal;font-size:35px;margin:10px 0 0}.result p{font-size:11px;line-height:1.6;color:#b1c1ab;padding:0 20px;margin:9px 0 17px}.gold-button{padding:11px 18px;border:1px solid #c5a36c;background:#bfa370;color:#17241f;border-radius:3px;font-size:11px}.gold-button:hover:enabled{background:#dcc394}.float-number{position:absolute;top:47%;z-index:3;font-size:32px;font-family:Georgia,serif;font-weight:bold;color:#f0c293;text-shadow:0 2px 9px #000;pointer-events:none;opacity:0}.hero-float{left:28%}.enemy-float{left:73%}.float-number.show{animation:float 1s ease-out}.float-number.heal{color:#b6e6b2}.fighter{transform-box:fill-box;transform-origin:center bottom}.hero-figure{animation:breathe 3s ease-in-out infinite}.enemy-figure{animation:breathe 4s ease-in-out infinite}.hero-figure.strike{animation:hero-strike .5s ease}.enemy-figure.strike{animation:enemy-strike .5s ease}.fighter.hurt{animation:hurt .5s}.fighter.guarded{filter:drop-shadow(0 0 10px #b8d7dc)}.fighter.healed{filter:drop-shadow(0 0 14px #a5c88b)}.embers{animation:spark 5s ease-in-out infinite}.arena.enemy-hit{box-shadow:0 0 20px #cb8d5322}.arena.hero-hit{animation:shake .3s}.busy .actions-heading>span:first-child{color:var(--gold)}dialog{max-width:500px;width:calc(100% - 32px);background:#1c2b25;color:var(--text);border:1px solid #7b8263;border-radius:6px;padding:36px;box-shadow:0 10px 80px #0008}dialog::backdrop{background:#081311ca;backdrop-filter:blur(4px)}dialog h2{font:normal 29px Georgia,serif}dialog p,dialog li{font-size:12px;line-height:1.9;color:#c1cdba}dialog ul{padding-left:17px}dialog li{margin-bottom:8px}.dialog-close{position:absolute;right:15px;top:10px;background:transparent;border:0;font-size:26px;color:#aab69b}@keyframes breathe{50%{transform:translateY(-3px)}}@keyframes hero-strike{40%{transform:translateX(55px) rotate(8deg)}70%{transform:translateX(28px)}}@keyframes enemy-strike{40%{transform:translateX(-45px) rotate(-9deg)}}@keyframes hurt{30%,70%{filter:brightness(2) sepia(.4)}50%{transform:translateX(7px)}}@keyframes float{0%{opacity:0;transform:translateY(10px)}25%{opacity:1}80%{opacity:1}100%{opacity:0;transform:translateY(-45px)}}@keyframes entry{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}@keyframes spark{50%{opacity:.3;transform:translateY(-9px)}}@keyframes shake{25%{transform:translateX(2px)}75%{transform:translateX(-2px)}}
@media(min-width:1450px){.arena{height:530px}.chronicle{max-height:765px}}
@media(max-width:1150px){main{padding:0 28px}.game-layout{grid-template-columns:minmax(0,1fr) 250px;gap:16px}.arena{height:460px}.stat-card{width:205px;padding:12px}.stat-heading h2{font-size:14px}.action{padding:11px 9px}.action strong{font-size:15px}.action small{font-size:8px}.tip{display:none}.chronicle-heading,.log{padding-left:15px;padding-right:15px}.chronicle h2{font-size:19px}.bottom-bar>span{font-size:10px}.top-sub{display:none}}
@media(max-width:900px){.game-layout{grid-template-columns:1fr}.chronicle{max-height:320px}.log{min-height:160px}.chronicle-heading{padding:17px 20px}.chronicle-heading h2{font-size:20px}.chronicle-heading .eyebrow{display:none}.log-footer{padding:12px 20px}.bottom-bar>span{display:none}.arena{height:490px}.tip{display:inline}.world{object-fit:cover}.stat-card{width:230px}.action small{font-size:10px}.bottom-bar{margin-top:24px}.site-footer>span:last-child{display:none}}
@media(max-width:540px){main{padding:0 16px}.topbar{height:69px;gap:0}.brand{font-size:15px;letter-spacing:2px;gap:5px}.brand-mark{font-size:25px!important;margin-right:3px}.help-button{font-size:0;padding-right:0}.help-button span{font-size:11px}.page-heading{padding:25px 0 22px}.eyebrow{font-size:7px;letter-spacing:1.4px;gap:7px}.chapter{font-size:6px}h1{font-size:30px;margin:13px 0 10px}.page-heading p{font-size:10px;max-width:280px;line-height:1.7}.encounter-label{display:none}.arena{height:410px}.arena-top{left:12px;right:12px;top:13px;font-size:7px;letter-spacing:1.3px}.fighters-stats{left:10px;right:10px;top:36px;gap:10px}.stat-card{width:50%;padding:10px 9px}.stat-heading{gap:6px;margin-bottom:12px}.portrait{width:24px;height:29px;font-size:20px;flex-shrink:0}.stat-heading small{font-size:5px;letter-spacing:.65px}.stat-heading h2{font-size:12px}.stat-heading h2 span{font-size:6px;margin-left:4px}.hp-label{font-size:6px}.hp-label strong{font-size:8px}.secondary-stats{gap:5px;font-size:5px;letter-spacing:0}.secondary-stats b{font-size:8px;margin:0 1px}.world{width:140%;max-width:none;left:-20%;height:100%}.intent{bottom:47px;right:10px;padding:7px 8px;gap:7px}.intent small{font-size:6px}.intent strong{font-size:10px}.intent>span:last-child{font-size:10px;padding-left:3px}.intent-icon{font-size:16px}.character-names{bottom:102px;left:14%;right:7%;font-size:6px;letter-spacing:1px}.turn-strip{padding:0 12px;height:35px;font-size:9px}.turn-strip>span:last-child{font-size:7px}.actions-heading{margin-top:19px;font-size:7px;letter-spacing:1px}.actions-heading>span:last-child{font-size:9px}.desktop-only{display:none}.actions{grid-template-columns:repeat(2,1fr);gap:9px}.action{padding:12px;min-height:135px}.action strong{font-size:17px}.action small{font-size:9px}.action-top{margin-bottom:10px}.action-icon{font-size:22px}.action-cost{font-size:7px}.action kbd{font-size:8px}.supplies{gap:17px;font-size:7px;margin-top:13px}.supplies .tip{display:none}.chronicle{max-height:284px;margin-top:3px}.chronicle h2{font-size:19px}.log-entry{padding-top:13px;padding-bottom:13px}.bottom-bar{padding:18px 0;margin-top:21px}#seed-form{flex-wrap:wrap;gap:8px;width:100%}#seed-form label{font-size:6px;letter-spacing:.5px}#seed-form input{width:100px;font-size:10px;padding:8px 6px}#seed-form button{font-size:9px;padding:8px 6px}#new-seed{margin-left:auto}.site-footer{letter-spacing:1px;gap:15px;padding:20px 0}.site-footer>span:nth-child(2){font-size:9px}.result{inset:154px 6% 46px}.result h2{font-size:30px}.result>span{font-size:25px}.result p{font-size:10px;margin-bottom:12px}.hero-float{left:19%;top:49%}.enemy-float{left:77%;top:48%}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}.float-number.show{opacity:1}.fighter{transform:none!important}}
@media(max-width:540px){.world{width:140%;height:285px;top:95px;left:-20%}.character-names{left:17%;right:13%;bottom:93px}.hero-float{left:20%;top:52%}.enemy-float{left:79%;top:51%}}
[hidden]{display:none!important}
