:root{color-scheme:dark;font-family:Arial,sans-serif;color:#f0e6d3;background:#171916}*{box-sizing:border-box}body.experiments-page{margin:0;background:#171916;color:#f0e6d3}body>.site-header,body>.page-back-bar{display:none}button{font:inherit;cursor:pointer}button:focus-visible,a:focus-visible{outline:2px solid #efd498;outline-offset:5px}button:disabled{cursor:not-allowed;opacity:.4}#game{position:relative;min-height:100svh;background:#171916;overflow:hidden}#arena{position:absolute;width:100%;height:100%;inset:0;display:block}#vignette{position:absolute;inset:0;pointer-events:none;background:linear-gradient(90deg,#0e1313df,#0e131338 52%,#0e1313ed)}#impact{position:absolute;inset:0;pointer-events:none;box-shadow:inset 0 0 130px #a22821;opacity:0;transition:opacity .15s}#game a{color:inherit;text-decoration:none}.masthead{position:relative;display:flex;justify-content:space-between;align-items:center;padding:25px 4vw;font-size:12px;letter-spacing:.1em;border-bottom:1px solid #e7d7b124;z-index:4}.masthead button{color:inherit;background:none;border:0}.masthead span{color:#c7bda8}.panel{position:relative;display:grid;grid-template-columns:1fr 1fr;gap:5vw;max-width:1500px;padding:6vh 5vw 25px;margin:auto;min-height:calc(100svh - 70px);align-items:center}.eyebrow{font-size:10px;font-weight:700;letter-spacing:.23em;color:#d5b87d;margin:0 0 20px}#game h1{font-family:Georgia,serif;font-size:clamp(64px,7.8vw,118px);font-weight:400;line-height:.95;letter-spacing:-.055em;margin:0 0 30px}#game h1 em{font-weight:400;color:#d9b976}.lede{font-size:17px;color:#ddd3c0;line-height:1.6}#game h2{font-family:Georgia,serif;font-size:29px;font-weight:400;margin:0 0 12px}.loadout{padding:26px;background:#111714bd;border:1px solid #e7d7b126;backdrop-filter:blur(10px)}#menu-note{font-size:12px;line-height:1.5;color:#c3bba9;min-height:36px;margin:0 0 20px}#game h3{font-size:10px;letter-spacing:.16em;text-transform:uppercase;font-weight:500;margin:17px 0 9px;display:flex;justify-content:space-between}h3 span{color:#c1ad84;letter-spacing:0;text-transform:none}.equipment{display:grid;gap:6px;grid-template-columns:repeat(4,1fr)}.equipment button{min-height:49px;padding:8px 5px;background:#ebd8ae08;color:#cac2b4;border:1px solid #e9d7ae24;font-size:11px;line-height:1.25}.equipment button.selected{background:#e7c48620;border-color:#d6b77c;color:#ffe5af}.equipment button small{display:block;font-size:8px;margin-top:4px;letter-spacing:.04em}.armor{grid-template-columns:repeat(5,1fr)}.round-preview{font-size:11px;line-height:1.6;border-top:1px solid #e9d7ae24;padding-top:13px;margin-top:18px;color:#d5c9b1}.primary{display:block;width:100%;padding:16px 20px;border:1px solid #dec087;color:#201f1a;background:#dfc391;font-weight:700;letter-spacing:.04em;font-size:13px;margin-top:16px}.primary:hover{background:#f1d7a8}.secondary{background:transparent;color:#d8c8aa;border:1px solid #897c61;padding:13px;margin-top:12px;width:100%}#status,#pause-status{font-size:10px;line-height:1.5;color:#bfb5a2;margin:10px 0 0}.controls{grid-column:1/-1;display:flex;flex-wrap:wrap;gap:12px 22px;color:#bdb6a7;font-size:10px;padding-top:20px;border-top:1px solid #e7d7b124}kbd{font-family:inherit;color:#e8d8b6;font-size:9px;margin-right:5px}.playing .masthead{display:none}.playing #vignette{background:radial-gradient(ellipse,transparent 45%,#10161155)}#hud{position:absolute;inset:0;pointer-events:none}#hud[hidden],.panel[hidden],.pause-panel[hidden]{display:none}.round-heading{position:absolute;top:28px;left:32px}.round-heading span{font-family:Georgia,serif;font-size:28px}.round-heading p{font-size:11px;color:#e0d5bf}.meters{position:absolute;left:32px;bottom:30px;width:240px;text-shadow:0 1px 4px #000}.meters label{display:flex;justify-content:space-between;font-size:9px;letter-spacing:.13em;margin:12px 0 7px}.meter{height:7px;background:#10120dcc;border:1px solid #d1bd872f}.meter i{display:block;height:100%;width:100%;transition:width .12s}.health i{background:#b75845}.stamina{position:relative}.stamina:after{content:'';position:absolute;inset:0;background:linear-gradient(90deg,transparent 32.8%,#171916 32.8%,#171916 33.8%,transparent 33.8%,transparent 66.2%,#171916 66.2%,#171916 67.2%,transparent 67.2%)}.stamina i{background:#d4b26d}.meters small{display:block;color:#e3d5b7;margin-top:14px;font-size:10px}#reticle{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:4px;height:4px}#reticle i{display:block;width:4px;height:4px;border-radius:100%;background:white;box-shadow:0 0 3px #000}#direction{display:block;position:absolute;left:-12px;top:18px;font-size:25px;color:#f2d199;width:28px;text-align:center}#direction-name{position:absolute;white-space:nowrap;top:51px;left:50%;transform:translateX(-50%);font-size:9px;text-shadow:0 1px 4px #000}#target{position:absolute;top:28px;left:50%;transform:translateX(-50%);width:230px;text-align:center;text-shadow:0 1px 4px #000}#target-name{font-family:Georgia,serif;font-size:17px}.target-track{margin-top:8px;height:4px;background:#201f18}.target-track i{display:block;background:#bf795c;height:100%}#target-action{display:block;margin-top:8px;font-size:10px;color:#f5d591}#toast{position:absolute;top:24%;left:50%;transform:translateX(-50%);text-align:center;max-width:80vw;font-size:14px;text-shadow:0 2px 8px #000;transition:opacity .3s}.combat-hint{position:absolute;bottom:30px;right:32px;font-size:10px;color:#e4d7bf;text-shadow:0 1px 5px #000}.pause-panel{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);background:#121916f2;border:1px solid #d5bd8155;padding:36px;width:min(400px,90vw);z-index:6}.pause-panel p{font-size:13px;color:#c6bfae}.playing #menu{display:none}@media(max-width:800px){.panel{grid-template-columns:1fr;padding:30px 20px;gap:25px}.intro h1{font-size:65px}.intro .lede{font-size:14px}.loadout{padding:18px}.controls{gap:13px}.masthead{padding:20px}.masthead span{display:none}#vignette{background:#101715ba}.meters{width:180px;left:18px;bottom:20px}.combat-hint{display:none}}@media(prefers-reduced-motion:reduce){*{transition:none!important}}
:root{--wound:#b275ff;color-scheme:light;background:var(--paper);color:var(--ink)}
body.experiments-page{background:var(--paper);color:var(--ink)}
body>.site-header{display:flex}
body>.page-back-bar{display:flex}
.duel-main{padding:clamp(12px,2vw,28px) var(--experiment-gutter) clamp(20px,3vw,40px)}
#game{color-scheme:dark;color:#f0e6d3;border:1px solid var(--ink);height:calc(100svh - var(--site-header-height) - var(--page-back-height) - clamp(12px,2vw,28px) - clamp(20px,3vw,40px));min-height:0;container-type:size}
#game{display:flex;flex-direction:column}
#game .masthead{flex-shrink:0}
#game .panel{flex:1;width:100%;min-height:0;overflow-y:auto;padding:24px 3%;gap:4%}
#game .intro h1{font-size:clamp(40px,6.2cqw,86px)}
#game #menu{padding:clamp(10px,3cqh,24px) 3%}
#menu .loadout{padding:clamp(12px,3cqh,26px)}
#menu .eyebrow{margin-bottom:12px}
#menu h2{font-size:26px;margin-bottom:8px}
#menu #menu-note{min-height:0;margin-bottom:12px}
#menu .character-choice{margin-bottom:8px}
#menu h3{margin:10px 0 6px}
#menu .equipment button{min-height:42px;padding:5px}
#menu .equipment button img{width:32px;height:32px}
#menu .round-preview{margin-top:10px;padding-top:8px}
#menu .primary{padding:12px;margin-top:10px}
#menu #status{margin-top:6px}
#menu .intro .controls{gap:8px;margin-top:20px}
@container(max-height:560px){#menu .intro h1{font-size:clamp(32px,5cqw,64px);margin-bottom:16px}#menu .intro .controls{gap:5px;font-size:12px}#menu .equipment button{min-height:34px;padding:3px}#menu .equipment button img{width:28px;height:28px}#menu .eyebrow{margin-bottom:6px}#menu .round-preview{font-size:10px}#menu .loadout{padding:12px}}
#game:fullscreen{width:100%;height:100%;min-height:0;border:0}
#game.mobile-unavailable{min-height:480px;height:auto}
#game .mobile-notice{min-height:480px}
#game .mobile-notice a.primary{color:#000}
#pause button{font-family:inherit;font-size:13px;font-weight:700;font-style:normal;line-height:1.4;letter-spacing:.04em}
@media(max-width:840px){.duel-main{padding:0 var(--experiment-gutter) 12px}}
#impact{box-shadow:inset 0 0 120px 20px #9b48ee;background:radial-gradient(ellipse,transparent 50%,#872ee82e);transition:opacity .05s}
#damage-readout{position:absolute;top:28px;right:30px;width:145px;display:flex;flex-direction:column;align-items:center;text-align:center;text-shadow:0 1px 5px #000}
#damage-readout>span{font-size:8px;letter-spacing:.1em;color:#e4d7bf}
#damage-readout svg{width:65px;height:90px;margin:12px 0 8px;color:#ddd4be60;filter:drop-shadow(0 2px 3px #0005)}
.equipment button{display:grid;place-items:center;min-height:58px;padding:10px}
.equipment button img{width:40px;height:40px;display:block;image-rendering:pixelated}
.character-choice{display:flex;align-items:center;justify-content:space-between;gap:16px;font-size:12px;margin-bottom:20px}.character-choice .equipment{display:grid;grid-template-columns:repeat(2,64px);gap:8px;margin:0}.character-choice button:focus-visible{outline:2px solid #efd498;outline-offset:3px}
#game h1{font-size:clamp(48px,6.2vw,96px)}
#damage-readout [data-part]{transition:fill .08s}
.enemy-health-bar{position:absolute;width:64px;height:7px;transform:translate(-50%,-100%);background:#171916df;border:1px solid #e5d5b68c;pointer-events:none}.enemy-health-bar[hidden]{display:none}.enemy-health-bar i{display:block;width:100%;height:100%;background:#d36e55;transform-origin:left;transition:transform .12s ease-out}
.victory-equipment{width:min(480px,100%);text-align:left;margin-top:24px}.round-result.with-equipment{overflow-y:auto;justify-content:flex-start;padding-top:32px;padding-bottom:32px}.round-result.with-equipment .eyebrow{margin-bottom:12px}.round-result.with-equipment>h2{font-size:48px;margin-bottom:12px}.round-result.with-equipment>.primary{width:min(480px,100%);flex-shrink:0;margin-top:24px}.victory-equipment .character-choice{margin-bottom:16px}.victory-equipment .equipment button{display:flex;align-items:center;justify-content:center}
.intro .controls{display:grid;grid-template-columns:1fr;gap:12px;border:0;padding:0;margin-top:32px;font-size:14px;color:#eee4d1}.intro .controls>span{display:grid;grid-template-columns:112px 1fr;align-items:baseline;gap:12px;line-height:1.4}.intro .controls kbd{font-size:12px;font-weight:700;color:#efd498;margin:0}
.mobile-unavailable>*{display:none!important}.mobile-unavailable>.mobile-notice{display:flex!important;min-height:100svh;flex-direction:column;justify-content:center;padding:32px;max-width:560px;margin:auto}.mobile-notice h2{font:400 clamp(36px,9vw,56px)/1.1 Georgia,serif;color:#efd498;margin:0 0 24px}.mobile-notice>p:not(.eyebrow){font-size:17px;line-height:1.6;color:#c7bda8;margin:0 0 32px}.mobile-notice .primary{display:block;text-align:center}
.round-result .primary{width:auto;min-width:160px;margin-top:32px}.round-result.defeat .primary{background:#cfabe5;border-color:#cfabe5;color:#24182b}
.round-result{position:absolute;inset:0;z-index:40;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:28px;background:#101714e8;color:#efd498;animation:result-appear .2s ease-out}.round-result.defeat{background:#1c1423ed;color:#cfabe5}.round-result .eyebrow{color:inherit;margin-bottom:20px}.round-result h2{font-family:Georgia,serif;font-size:clamp(48px,8vw,100px);font-weight:400;line-height:1.05;margin:0 0 24px}.round-result p:last-child{font-size:16px;line-height:1.5;max-width:36ch;color:#e8e0d2;margin:0}@keyframes result-appear{from{opacity:0}to{opacity:1}}@media(prefers-reduced-motion:reduce){.round-result{animation:none}}
#damage-readout .hit{fill:var(--wound)}
#player-portrait{position:absolute;right:32px;bottom:55px;width:112px;height:128px;border:1px solid #d6b77c80;pointer-events:none}
#player-portrait>span{position:absolute;bottom:calc(100% + 7px);left:0;width:100%;text-align:center;font-size:11px;color:#f0e6d3;text-shadow:0 1px 3px #111}
@media(max-width:700px){#player-portrait{right:12px;bottom:20px;width:84px;height:96px}}
#damage-part{font-size:11px;font-weight:500;color:#eadcff}
#damage-amount{font-size:10px;color:#c794ff;margin-top:5px}
@media(max-width:700px){#damage-readout{right:12px;top:18px;width:90px}#damage-readout>span{font-size:7px}#damage-readout svg{width:42px;height:60px}#target{width:150px}}
