@charset "UTF-8";

/* The puzzle is the workspace; battle status stays in one quiet line above it. */
.site-header{height:82px}
.site-header nav button{min-height:44px}
.game-screen{max-width:1160px;padding:25px 40px 32px}
.run-top{gap:16px;margin-bottom:18px}
.floor-title h1{display:flex;align-items:baseline;gap:14px;font-size:22px;letter-spacing:.07em;margin:0}
.floor-title h1 span{font:12px var(--sans);letter-spacing:0;color:var(--muted);margin:0;white-space:nowrap}
.run-actions{display:flex;align-items:center;gap:20px}
.run-actions button{min-height:44px;font-size:12px}
.run-actions .leave-button{font-size:11px}
.battle-layout{display:grid;grid-template-columns:minmax(0,460px) minmax(0,1fr);gap:26px 40px;align-items:start}
.enemy-panel{grid-column:1/-1;display:grid;grid-template-columns:92px minmax(140px,1fr) minmax(190px,1.15fr) minmax(160px,.85fr);grid-template-rows:auto auto;align-items:center;column-gap:24px;row-gap:6px;padding:0 0 18px;border-bottom:1px solid var(--line);position:relative;min-width:0}
.enemy-art{grid-column:1;grid-row:1/3;position:relative;left:auto;top:auto;width:92px;height:96px;background:none}
.enemy-art .creature{width:112px;height:112px}
.enemy-art .rune-orbit{width:78px;height:25px;bottom:6px}
.enemy-art .ward-ring{width:79px;height:79px}
.enemy-heading{grid-column:2;grid-row:1;align-self:end;padding:0;min-height:0;display:flex;align-items:center;flex-wrap:wrap;gap:9px}
.enemy-heading h2{font:19px var(--serif);letter-spacing:.05em;line-height:1.4;margin:0;white-space:normal}
.elite-label,.rage-label{position:static;display:inline-block;font-size:10px;line-height:1.4;padding:2px 5px;color:var(--accent);border:1px solid #647254}
.enemy-health{grid-column:2;grid-row:2;align-self:start;min-width:0;gap:7px;font-size:11px;padding:0;margin:0}
.enemy-health strong{font:17px Georgia,serif}
.enemy-health small{font-size:11px}
.enemy-track{height:3px}
.armor-label{font-size:10px;margin-left:5px;white-space:nowrap}
.intent-area{grid-column:3;grid-row:1/3;display:flex;align-items:center;flex-wrap:wrap;gap:5px 12px;margin:0;min-width:0}
.intent-area .enemy-intent{display:flex;grid-column:auto;grid-row:auto;align-items:center;text-align:left;width:100%;min-height:62px;gap:12px;margin:0;padding:9px 12px;background:transparent;border:1px solid transparent;border-left:1px solid var(--line);color:var(--ink);font:inherit;transition:background .15s,border-color .15s}
.intent-area .enemy-intent:hover:not(:disabled){background:#b4dfb408;border-left-color:#718569}
.enemy-intent>.icon{width:23px;height:23px;color:var(--muted)}
.enemy-intent div span{font-size:11px;letter-spacing:0;color:var(--muted)}
.enemy-intent div strong{font-size:14px;font-weight:500;margin-top:4px;line-height:1.4}
.enemy-intent b,.intent-heavy b{font:30px Georgia,serif;color:var(--ink);margin-left:auto;white-space:nowrap;text-align:center;line-height:1}
.enemy-intent b small{display:block;font:10px/1.4 var(--sans);color:var(--muted);margin-top:5px}
.enemy-intent b.no-counter{font:12px/1.5 var(--sans);color:var(--muted)}
.intent-disclosure{font:12px var(--sans);color:var(--muted);flex-shrink:0;margin-left:1px}
.intent-pierce b{color:#ddceb5}
.intent-tag{font-size:11px;line-height:1.5;color:var(--accent);padding-left:48px}
.hero-status{grid-column:4;grid-row:1/3;align-self:center;min-width:0;margin:0;padding:0}
.hero-status>div:first-child{margin-bottom:8px;gap:8px}
.hero-status .stat-label{font-size:11px;white-space:nowrap}
.hero-status .stat-label .icon{width:16px;height:16px}
.hero-status strong{font:24px Georgia,serif}
.hero-status strong small{font-size:12px}
.hero-status .health-track{height:5px}
.hero-minor{justify-content:flex-end;margin-top:10px;gap:8px;font-size:11px}
.hero-minor .icon{width:15px;height:15px}
.hero-minor strong{font:14px Georgia,serif;margin-left:5px}
.puzzle-panel{grid-column:1;width:100%;max-width:none;justify-self:stretch}
.board-shell{padding:16px;background:var(--paper);box-shadow:none}
.board-meta{justify-content:flex-end;font-size:11px;letter-spacing:0;line-height:1.3;margin-bottom:11px}
.crossword{gap:3px;padding:3px}
.cell>span{font-size:24px}
.cell small{font-size:9px;top:3px;left:4px}
.cell i{font-size:12px}
.answer-box{margin-top:18px;padding-top:13px}
.answer-label{gap:10px;margin-bottom:10px;font-size:12px;line-height:1.5}
.answer-label small{font-size:11px;margin-left:8px}
.effect-preview{font-size:12px;flex-wrap:wrap;justify-content:flex-end;gap:5px}
.effect-preview .icon{width:15px;height:15px}
.combo-preview{font-size:11px;min-height:0;line-height:1.6;gap:5px 8px;margin-bottom:9px}
.combo-preview>span{font-size:11px;margin-left:0}
.combo-preview strong{font-weight:500;color:var(--accent)}
.cascade-preview{font-size:11px;padding:0;border:0;margin:0 0 9px;gap:6px}
.cascade-preview small{font-size:10px;padding-left:21px}
.clue-stage{font-size:11px;color:var(--muted);margin:0 0 6px}
.answer-box label{font-size:15px;line-height:1.7;min-height:0;color:var(--ink)}
.answer-controls{gap:8px;margin-top:13px}
.answer-controls input{height:48px;font-size:20px}
.answer-submit{min-width:92px;min-height:48px;font-size:13px;gap:10px}
.answer-bottom{justify-content:space-between;gap:14px;margin-top:3px}
.answer-bottom>.answer-risk{font-size:11px;line-height:1.6;color:var(--muted);max-width:none}
.hint-button{font-size:12px;min-height:44px;padding:8px 0;gap:6px}
.hint-button .icon{width:16px;height:16px}
.input-error{font-size:12px;min-height:0;margin-top:4px}
.input-error:empty{display:none}
.sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
.clues-panel{grid-column:2;min-width:0;width:100%}
.clue-lists{display:grid;grid-template-columns:1fr 1fr;align-items:start;gap:24px}
.clue-column h2{font-size:12px;font-weight:500;line-height:1.5;margin:0 0 10px;gap:6px;color:var(--muted);padding:0 7px}
.clue-column h2 .icon{width:16px;height:16px}
.clue{font-size:13px;line-height:1.65;min-height:62px;gap:10px;padding:10px 9px 10px 7px;border-left-width:2px;color:#c4cdc1;transition:background .15s,border-color .15s,color .15s}
.clue.active{color:var(--ink);background:#b4dfb40b}
.clue.active small{color:var(--muted)}
.clue-number{font:14px Georgia,serif;padding-top:3px;min-width:12px}
.clue small{font-size:11px;line-height:1.4;margin-top:4px}
.clue.linkable:not(.active){background:transparent}
.clue.linkable small{color:var(--muted)}
.solved-words{grid-column:1/-1;margin-top:20px;border-top:1px solid var(--line);padding-top:5px;color:var(--muted);font-size:12px}
.solved-words summary{min-height:44px;cursor:pointer;display:list-item;line-height:1.6;padding:12px 0;list-style-position:inside}
.solved-words summary:focus-visible{outline:2px solid var(--accent);outline-offset:4px}
.solved-words ul{list-style:none;padding:0;margin:0 0 8px;display:flex;flex-wrap:wrap;gap:8px 18px;line-height:1.8;font-size:12px}
.solved-words li{color:#b9c5b5}
.dialog-close{min-width:44px;min-height:44px}
.info-dialog button{min-height:44px}
.info-dialog .relic-bar{margin-top:18px;gap:16px}
.info-dialog .relic-token{font-size:12px}
.info-dialog .battle-log p{font-size:12px}
.hint-options{display:grid;gap:17px;margin-top:20px}
.hint-options button{width:100%;text-align:left;justify-content:space-between;gap:12px;min-height:52px}
.hint-options button small{font-size:11px;font-weight:400;color:var(--muted);white-space:nowrap}
.info-dialog .hint-options p{font-size:11px;line-height:1.7;margin:7px 0 0;color:var(--muted)}
.run-summary{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin:0 0 25px;padding-bottom:20px;border-bottom:1px solid var(--line)}
.run-summary dt{font-size:11px;line-height:1.5;color:var(--muted)}
.run-summary dd{font:23px/1.3 Georgia,serif;color:var(--accent);margin:7px 0 0}
.info-dialog h3{font-size:12px;line-height:1.5;font-weight:500;color:var(--muted);margin:0 0 12px}
.relic-summary{list-style:none;padding:0;margin:0 0 20px;display:grid;gap:16px}
.relic-summary li{display:grid;gap:5px}
.relic-summary strong{font:15px/1.6 var(--serif);font-weight:400;color:var(--ink)}
.relic-summary span{font-size:12px;line-height:1.8;color:var(--muted)}
.adventure-record{margin:20px 0 16px;padding-top:4px;border-top:1px solid var(--line)}
.adventure-record summary{min-height:44px;font-size:12px;line-height:1.6;padding:12px 0;cursor:pointer;list-style-position:inside;color:var(--muted)}
.adventure-record summary:focus-visible{outline:2px solid var(--accent);outline-offset:4px}
.adventure-record ul{list-style:none;margin:3px 0 13px;padding:0;display:grid;gap:9px}
.adventure-record li{font-size:12px;line-height:1.7;color:var(--muted)}

@media(max-width:980px){
  .game-screen{padding:23px 28px 30px}
  .battle-layout{grid-template-columns:minmax(0,420px) minmax(0,1fr);gap:22px 28px}
  .enemy-panel{grid-template-columns:72px minmax(110px,1fr) minmax(165px,1.15fr) minmax(140px,.85fr);column-gap:16px;padding-bottom:16px}
  .enemy-art{width:72px;height:88px}
  .enemy-art .creature{width:96px;height:96px}
  .enemy-art .rune-orbit{width:65px;height:22px;bottom:5px}
  .enemy-art .ward-ring{width:68px;height:68px}
  .enemy-heading h2{font-size:17px}
  .enemy-intent div strong{font-size:13px}
  .hero-status strong{font-size:22px}
  .clue-lists{grid-template-columns:1fr;gap:20px}
  .clue{min-height:57px;font-size:12px}
  .cell>span{font-size:23px}
}

@media(max-width:760px){
  .battle-layout{grid-template-columns:minmax(0,1fr);gap:22px}
  .enemy-panel{grid-column:1;grid-template-columns:74px minmax(0,1fr) minmax(145px,.75fr);column-gap:14px;row-gap:5px}
  .enemy-art{grid-column:1;grid-row:1/3;width:74px;height:86px}
  .enemy-heading{grid-column:2;grid-row:1;align-self:end}
  .enemy-health{grid-column:2;grid-row:2}
  .hero-status{grid-column:3;grid-row:1/3}
  .intent-area{grid-column:1/-1;grid-row:3;display:flex;flex-wrap:nowrap;gap:12px;margin-top:6px;border-top:1px solid var(--line)}
  .intent-area .enemy-intent{flex:1;grid-column:auto;grid-row:auto;min-height:56px;border:0;padding:8px 0;gap:11px}
  .enemy-intent div{display:flex;align-items:baseline;gap:12px}
  .enemy-intent div strong{margin-top:0}
  .enemy-intent b{font-size:27px}
  .intent-tag{flex:0 1 auto;max-width:145px;padding:0;font-size:11px}
  .puzzle-panel{grid-column:1;max-width:420px;width:100%;justify-self:center}
  .clues-panel{grid-column:1;max-width:560px;width:100%;justify-self:center}
  .clue-lists{grid-template-columns:1fr 1fr;gap:22px}
  .solved-words{margin-top:15px}
}

@media(max-width:650px){
  .site-header{height:68px;padding:0 16px}
  .site-header nav{gap:14px}
  .brand{font-size:13px;gap:9px}
  .brand-mark{width:32px;height:32px;font-size:23px}
  .brand small{font-size:7px}
  .site-header nav .text-button{font-size:11px}
  .site-header nav .icon-button{font-size:18px}
  .site-header nav .icon-button span{font-size:9px}
  .game-screen{padding:18px 16px 25px}
  .run-top{flex-wrap:nowrap;gap:10px;margin-bottom:10px}
  .floor-title h1{font-size:18px;letter-spacing:.05em;gap:10px;flex-wrap:wrap}
  .floor-title h1 span{font-size:11px}
  .run-actions{gap:12px}
  .run-actions button{font-size:11px;white-space:nowrap}
  .run-actions .leave-button{font-size:10px;margin-left:0}
  .battle-layout{display:grid;grid-template-columns:minmax(0,1fr);gap:18px}
  .enemy-panel{width:100%;grid-template-columns:60px minmax(0,1fr) minmax(108px,.83fr);gap:5px 12px;padding:0 0 7px;border-bottom:1px solid var(--line)}
  .enemy-art{position:relative;left:auto;top:auto;width:60px;height:74px;grid-column:1;grid-row:1/3}
  .enemy-art .creature{width:83px;height:83px}
  .enemy-art .rune-orbit{width:52px;height:18px;bottom:4px}
  .enemy-art .ward-ring{width:58px;height:58px}
  .enemy-heading{grid-column:2;grid-row:1;min-height:0;padding:0;gap:5px}
  .enemy-heading h2{font-size:15px;line-height:1.4;margin:0;letter-spacing:.02em;white-space:normal}
  .elite-label,.rage-label{font-size:9px;padding:1px 4px}
  .enemy-health{grid-column:2;grid-row:2;padding:0;margin:0;font-size:10px;gap:6px}
  .enemy-health strong{font-size:14px}
  .enemy-health small{font-size:10px}
  .armor-label{font-size:9px;margin-left:3px}
  .hero-status{grid-column:3;grid-row:1/3;margin:0;padding:0}
  .hero-status>div:first-child{margin-bottom:7px;gap:5px}
  .hero-status .stat-label{font-size:10px;gap:4px}
  .hero-status .stat-label .icon{width:13px;height:13px}
  .hero-status strong{font-size:21px}
  .hero-status strong small{font-size:10px}
  .hero-minor{font-size:11px;gap:6px;margin-top:8px;justify-content:flex-end}
  .hero-minor .icon{width:14px;height:14px}
  .hero-minor strong{font-size:13px}
  .intent-area{grid-column:1/-1;grid-row:3;gap:10px;margin-top:5px;display:flex;flex-wrap:nowrap}
  .intent-area .enemy-intent{grid-column:auto;grid-row:auto;min-height:50px;margin:0;padding:7px 0;gap:8px;width:auto;flex:1}
  .enemy-intent>.icon{width:19px;height:19px}
  .enemy-intent div{display:flex;align-items:baseline;gap:9px}
  .enemy-intent div span{font-size:11px;white-space:nowrap}
  .enemy-intent div strong{font-size:12px;margin:0}
  .enemy-intent b,.intent-heavy b{font-size:25px}
  .intent-tag{max-width:110px;padding:0;font-size:10px}
  .puzzle-panel{grid-column:1;max-width:440px;width:100%;justify-self:center}
  .board-shell{padding:13px}
  .board-meta{font-size:10px;margin-bottom:9px}
  .crossword{gap:3px;padding:3px}
  .cell>span{font-size:23px}
  .cell small{font-size:9px;top:2px;left:3px}
  .cell i{font-size:12px;right:2px}
  .answer-box{margin-top:16px;padding-top:12px}
  .answer-label{font-size:12px;line-height:1.5;margin-bottom:8px;gap:8px}
  .answer-label small{font-size:10px;margin-left:7px}
  .effect-preview{font-size:11px;gap:4px}
  .combo-preview{font-size:11px;min-height:0;margin-bottom:8px}
  .combo-preview>span{font-size:10px}
  .cascade-preview{font-size:11px;margin-bottom:8px}
  .clue-stage{font-size:10px;margin-bottom:5px}
  .answer-box label{font-size:14px;line-height:1.7}
  .answer-controls{margin-top:11px;gap:8px}
  .answer-controls input{font-size:19px;height:48px;padding:0 11px}
  .answer-submit{min-width:86px;min-height:48px;padding:10px 12px;font-size:12px}
  .answer-bottom{flex-wrap:nowrap;justify-content:space-between;gap:14px;margin-top:2px}
  .answer-bottom>.answer-risk{font-size:11px;max-width:none}
  .answer-bottom .hint-button{font-size:12px;min-height:44px;padding:8px 0}
  .clues-panel{grid-column:1;width:100%;max-width:440px}
  .clue-lists{display:grid;grid-template-columns:1fr 1fr;gap:16px}
  .clue-column h2{font-size:11px;margin:0 0 7px;padding:0 6px}
  .clue-column h2 .icon{width:15px;height:15px}
  .clue{font-size:12px;line-height:1.65;min-height:59px;gap:7px;padding:9px 7px 9px 6px}
  .clue-number{font-size:13px;min-width:10px;padding-top:3px}
  .clue small{font-size:10px;margin-top:3px}
  .solved-words{font-size:11px;margin-top:14px;padding-top:3px}
  .solved-words ul{font-size:11px;gap:6px 16px}
  .site-footer{padding:18px 16px}
}

@media(max-width:360px){
  .site-header nav{gap:10px}
  .game-screen{padding-left:12px;padding-right:12px}
  .floor-title h1{font-size:16px;gap:8px}
  .enemy-panel{grid-template-columns:52px minmax(0,1fr) minmax(102px,.86fr);column-gap:10px}
  .enemy-art{width:52px}
  .enemy-art .creature{width:76px;height:76px}
  .enemy-heading h2{font-size:14px}
  .hero-status strong{font-size:19px}
  .enemy-intent div{gap:7px}
  .enemy-intent div span{font-size:10px}
  .enemy-intent div strong{font-size:11px}
  .intent-tag{max-width:95px}
  .board-shell{padding:11px}
  .cell>span{font-size:21px}
  .clue-lists{gap:12px}
}

@media(prefers-reduced-motion:reduce){
  .clue,.intent-area .enemy-intent{transition:none}
}

/* Return visits begin at the entrance, keeping the battle workspace quiet. */
.start-screen{padding-top:35px;padding-bottom:28px}
.start-copy h1{margin-top:18px;margin-bottom:24px}
.hero-line{font-size:26px;line-height:1.6}
.start-description{margin-top:13px}
.start-actions{margin-top:22px}
.daily-entry{display:flex;align-items:center;justify-content:space-between;gap:16px;max-width:420px;border-top:1px solid var(--line);margin-top:23px;padding-top:15px}
.daily-entry>div{display:flex;flex-direction:column;gap:6px;min-width:0}
.daily-entry strong{font:17px var(--serif);letter-spacing:.05em}
.daily-entry>div>span{font-size:11px;color:var(--muted);line-height:1.5}
.daily-entry button{min-height:44px;padding:9px 15px;gap:12px;white-space:nowrap}
.daily-entry button .icon{width:16px;height:16px}
.daily-note{max-width:420px;display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:0 12px;color:var(--muted);font-size:11px;line-height:1.8;margin-top:7px}
.daily-note button{min-height:44px;font-size:11px;color:var(--accent)}
.start-records{display:flex;align-items:center;gap:20px;margin-top:9px;max-width:420px;color:var(--muted)}
.start-records button{min-height:44px;font-size:12px}
.start-records>span{font-size:11px}
.start-meta{margin-top:8px}
.best-score{margin-top:16px}
.journey-history{list-style:none;margin:8px 0 20px;padding:0}
.journey-history li{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:12px 0;border-bottom:1px solid var(--line)}
.journey-history li>div{display:flex;flex-direction:column;gap:7px}
.journey-history strong{font-size:13px;font-weight:500}
.journey-history li span{color:var(--muted);font-size:11px}
.journey-history b{font:22px Georgia,serif;color:var(--accent);white-space:nowrap}
.journey-history b small{font:10px var(--sans);margin-left:5px;color:var(--muted)}
.word-collection{border-top:1px solid var(--line);margin-top:20px;padding-top:5px}
.word-collection summary{cursor:pointer;min-height:44px;line-height:1.8;padding:12px 0;list-style-position:inside;font-size:12px}
.word-collection summary:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
.word-collection ul{list-style:none;margin:0;padding:0}
.word-collection li{padding:12px 0;border-bottom:1px solid var(--line);display:flex;flex-direction:column;gap:6px;font-size:12px;line-height:1.7}
.word-collection li strong{font-weight:500;color:var(--accent)}
.word-collection li span{color:var(--muted)}
.end-links{display:flex;flex-wrap:wrap;gap:8px 25px;margin-top:18px}
.end-links button{min-height:44px;font-size:12px;color:var(--muted)}
.end-copy .return-note{margin-top:22px}
@media(max-width:650px){
  .start-screen{padding:25px 24px 28px}
.start-copy h1{font-size:clamp(42px,13vw,49px);margin-top:15px;margin-bottom:20px}
  .hero-line{font-size:23px}
  .start-art{top:80px;opacity:.33}
  .daily-entry strong{font-size:16px}
  .daily-entry button{font-size:12px;padding:9px 13px;gap:9px}
  .daily-note{font-size:11px}
  .start-records{gap:18px}
  .start-records>span{font-size:10px}
  .end-links{justify-content:center}
}

/* Combat review: a quiet forest ledger with one accent and connected dividers.
   Content: action, readable results, HP changes, then optional calculations.
   Interaction: native details reveals the arithmetic; only the dialog scrolls. */
.run-top>.floor-title{min-width:0}
.run-actions{flex-shrink:0}
#combat-log-button{color:var(--muted);white-space:nowrap}
#combat-log-button:hover{color:var(--accent)}
.info-dialog:has(.combat-history){width:min(660px,calc(100vw - 32px));max-width:660px;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable;font-size:14px}
.info-dialog:has(.combat-history)>h2{margin-bottom:10px}
.info-dialog p.log-intro{font-size:13px;line-height:1.7;color:var(--muted);margin:0}
.combat-history{list-style:none;margin:18px 0 0;padding:0;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.combat-history>.combat-turn{padding:8px 0 7px;border-top:1px solid var(--line)}
.combat-history>.combat-turn:first-child{border-top-color:var(--accent)}
.combat-turn-head{display:flex;align-items:baseline;flex-wrap:wrap;gap:2px 12px;margin-bottom:2px}
.combat-turn-head>.floor-action{font-size:13px;line-height:1.5;color:var(--muted)}
.info-dialog .combat-action-title{font-size:17px;font-weight:500;line-height:1.5;color:var(--ink);margin:0 0 5px}
.combat-events{margin:0;padding:0}
.combat-event{display:grid;grid-template-columns:64px minmax(0,1fr);gap:0 12px;align-items:baseline}
.combat-event dt{font-size:13px;font-weight:400;line-height:1.6;color:var(--muted)}
.combat-event dd{margin:0;font-size:14px;line-height:1.5;color:var(--ink);min-width:0}
.combat-event strong{font-weight:600;color:var(--accent)}
.combat-event .combat-context{display:block;font-size:13px;line-height:1.6;color:var(--muted)}
.combat-event+.combat-enemy-event,.combat-event+.combat-outcome-event{margin-top:2px}
.info-dialog p.combat-hp-line{display:flex;align-items:baseline;flex-wrap:wrap;gap:2px 20px;margin:2px 0 0;padding:0;font-size:13px;line-height:1.5;color:var(--muted)}
.combat-hp-line strong{font-weight:500;color:var(--muted)}
.combat-turn-detail>summary{min-height:44px;padding:11px 0;font-size:13px;line-height:22px;cursor:pointer;list-style-position:inside;color:var(--muted)}
.combat-turn-detail>summary::marker{color:var(--muted)}
.combat-turn-detail>summary:hover{color:var(--accent)}
.combat-turn-detail>summary:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
.combat-turn-body{padding:0 0 8px}
.combat-word-effects{list-style:none;padding:0;margin:0}
.combat-word-effects>li{padding:8px 0;border-top:1px solid var(--line)}
.combat-word-head{display:flex;align-items:baseline;flex-wrap:wrap;gap:3px 10px;margin-bottom:3px;font-size:13px;line-height:1.7;color:var(--ink)}
.combat-word-head strong{font-weight:500;color:var(--accent)}
.combat-word-head small,.combat-word-head span{font-size:13px;color:var(--muted)}
.info-dialog p.combat-math,.info-dialog p.combat-defense{font-size:13px;line-height:1.7;color:var(--muted);margin:3px 0}
.combat-math strong,.combat-defense strong{font-weight:500;color:var(--accent)}
.info-dialog p.combat-enemy{border-top:1px solid var(--line);padding-top:8px;margin:3px 0;font-size:13px;line-height:1.7;color:var(--muted)}
.combat-enemy strong{font-weight:500;color:var(--ink)}
.info-dialog p.combat-outcome{font-size:13px;line-height:1.7;color:var(--accent);margin:3px 0}
.info-dialog p.combat-note{font-size:13px;line-height:1.7;color:var(--muted);margin:3px 0}
.record-result{display:flex;flex-direction:column;gap:7px;margin-top:27px}
.record-result>strong{font:36px/1.3 var(--serif);color:var(--accent);letter-spacing:.03em}
.record-result>span{font-size:12px;line-height:1.8;color:var(--muted)}
@media(max-width:650px){
  .run-top>.floor-title{flex:1}
  .info-dialog:has(.combat-history){padding:32px 20px 20px}
  .combat-turn-head{gap:2px 10px}
  .combat-event{grid-template-columns:60px minmax(0,1fr);column-gap:10px}
  .info-dialog p.combat-hp-line{gap:2px 16px}
  .record-result{margin-top:22px}
  .record-result>strong{font-size:30px}
}
.reward-screen .reward-content{max-width:600px;margin:24px auto 48px}
.reward-screen .phase-intro{margin:0 0 28px}
.reward-screen .phase-icon{width:32px;height:32px;margin-bottom:12px}
.reward-screen .phase-intro h2{font-size:32px}
.reward-screen .phase-intro p:last-child{margin-top:12px}
.reward-choices{display:flex;flex-direction:column}
.reward-choice{display:flex;align-items:center;gap:22px;width:100%;min-height:104px;padding:22px 16px;border:0;border-top:1px solid var(--line);background:transparent;text-align:left;color:var(--ink);transition:background .18s,transform .18s}
.reward-choice:last-child{border-bottom:1px solid var(--line)}
.reward-choice:not(:disabled):hover{background:#b4dfb408;transform:translateX(3px)}
.reward-choice:focus-visible{outline:2px solid var(--accent);outline-offset:4px}
.reward-choice:disabled{opacity:.5;cursor:default}
.reward-symbol{color:var(--accent);display:flex}
.reward-symbol .icon{width:34px;height:34px}
.reward-copy{flex:1;display:flex;flex-direction:column;gap:7px}
.reward-copy strong{font:22px var(--serif);letter-spacing:.04em}
.reward-copy>span{font-size:13px;color:var(--muted)}
.reward-amount{font:32px Georgia,serif;color:var(--accent);white-space:nowrap}
.reward-choice:disabled .reward-amount{font:12px var(--sans);color:var(--muted)}
.reward-arrow{width:21px;height:21px;color:var(--accent)}
.reward-next{text-align:center;font-size:12px;color:var(--muted);margin-top:24px}
.reward-continue{display:flex;align-items:center;justify-content:center;gap:24px;margin:36px auto 0}
@media(max-width:650px){.reward-screen .reward-content{margin-top:24px}.reward-screen .phase-intro h2{font-size:27px}.reward-choice{gap:14px;padding:20px 8px}.reward-copy strong{font-size:20px}.reward-symbol .icon{width:28px;height:28px}.reward-amount{font-size:30px}.reward-arrow{width:18px;height:18px}}

/* Equal halves: enemy HP and forecast on the left, your resources on the right. */
.enemy-panel{grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-rows:auto;align-items:stretch;gap:24px}
.enemy-side{min-width:0;display:grid;grid-template-columns:92px minmax(0,1fr);align-items:center;gap:24px}
.enemy-side>.enemy-art{grid-column:1;grid-row:1;align-self:center}
.enemy-summary{grid-column:2;grid-row:1;min-width:0;display:flex;flex-direction:column;gap:8px}
.enemy-summary .enemy-heading,.enemy-summary .enemy-health{align-self:stretch}
.enemy-summary .enemy-health>span{display:inline-flex;align-items:center;gap:5px;min-height:22px}
.enemy-summary .armor-label{font:10px var(--sans);color:var(--accent);background:none;border:0;padding:0 4px;min-height:44px;margin:-11px 0;cursor:pointer}
.armor-label:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.enemy-summary .intent-area{display:flex;flex-wrap:wrap;gap:0 10px;margin:0;padding:0;border:0;border-top:1px solid var(--line)}
.enemy-summary .enemy-intent{width:100%;min-height:48px;gap:10px;padding:6px 0;border:0}
.enemy-summary .enemy-intent:hover:not(:disabled){border:0}
.enemy-summary .enemy-intent div{display:flex;align-items:baseline;gap:12px;min-width:0}
.enemy-summary .enemy-intent div strong{margin:0}
.enemy-summary .enemy-intent b{font-size:25px}
.enemy-summary .enemy-intent b.no-counter{font:12px/1.5 var(--sans)}
.enemy-summary .intent-tag{padding:0 0 5px 33px;max-width:none}
.enemy-panel>.hero-status{grid-column:2;grid-row:1;align-self:stretch;border-left:1px solid var(--line);padding:10px 0 0 26px;display:flex;flex-direction:column;justify-content:center}
.clue .clue-copy{min-width:0}
.clue small.clue-meta{display:flex;align-items:center;flex-wrap:wrap;gap:4px 12px}
.clue-power,.clue-power>span{display:inline-flex;align-items:center;gap:4px;white-space:nowrap}
.clue-power{gap:9px;font-variant-numeric:tabular-nums}
.clue-power .icon{width:14px;height:14px}
.word-link{background:none;border:0;color:var(--accent);padding:5px 0;min-height:44px;font:inherit;display:inline-flex;align-items:center;gap:8px;text-align:left;cursor:pointer}
.word-link>span{font-size:11px;color:var(--muted)}
.word-link .icon{width:15px;height:15px;color:var(--muted)}
.word-link:hover{color:var(--ink)}
.word-link:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
.word-collection li{padding:4px 0 12px}
.word-collection .word-link{font-size:14px;padding:0;justify-content:space-between;width:100%}
.info-dialog .word-note{border-top:1px solid var(--line);margin-top:22px;padding-top:20px}
.info-dialog .word-reading{margin:-8px 0 18px;color:var(--accent);font-size:12px;letter-spacing:.1em}
.info-dialog .word-note h3{margin-bottom:10px}
.info-dialog .word-note p{margin:0;font-size:15px;line-height:1.9}
.info-dialog .word-source{font-size:12px;line-height:1.8;color:var(--muted);margin-top:20px}
.word-source a{color:var(--muted);text-underline-offset:4px}
.word-source a:hover{color:var(--accent)}
.hint-unavailable{color:var(--muted)}
.reward-amount.reward-mixed{display:flex;gap:12px;font:20px Georgia,serif}
.reward-mixed>span{display:flex;align-items:center;gap:4px}
.reward-mixed .icon{width:18px;height:18px}
.reward-screen .phase-intro{margin-bottom:20px}
.reward-screen .reward-content{margin-top:18px;margin-bottom:32px}
.reward-choice{min-height:94px;padding-top:18px;padding-bottom:18px}
@media(max-width:980px){
  .enemy-panel{gap:18px}
  .enemy-side{grid-template-columns:72px minmax(0,1fr);gap:18px}
  .enemy-panel>.hero-status{padding-left:20px}
}
@media(max-width:760px){
  .enemy-panel{gap:14px}
  .enemy-side{grid-template-columns:64px minmax(0,1fr);gap:14px}
  .enemy-panel>.hero-status{padding-left:16px}
  .enemy-summary .enemy-intent div{flex-direction:column;align-items:flex-start;gap:2px}
}
@media(max-width:650px){
  .enemy-panel{gap:14px;padding-bottom:12px}
  .enemy-side{display:block}
  .enemy-side>.enemy-art{display:none}
  .enemy-summary{grid-column:auto;grid-row:auto}
  .enemy-summary{gap:7px}
  .enemy-summary .enemy-health{gap:5px}
  .enemy-summary .enemy-health>span{min-height:20px;gap:2px}
  .enemy-summary .armor-label{font-size:9px;margin:-12px 0;padding:0 1px}
  .enemy-summary .enemy-intent{min-height:54px;gap:6px;width:100%;padding:5px 0}
  .enemy-summary .enemy-intent>.icon{width:17px;height:17px;flex-shrink:0}
  .enemy-summary .enemy-intent div span{font-size:10px}
  .enemy-summary .enemy-intent div strong{font-size:12px}
  .enemy-summary .enemy-intent b{font-size:23px}
  .enemy-summary .enemy-intent b.no-counter{font:10px var(--sans)}
  .enemy-summary .enemy-intent b small{font-size:8px;margin-top:3px}
  .enemy-summary .intent-disclosure{font-size:10px;margin:0}
  .enemy-summary .intent-tag{font-size:10px;padding-left:23px}
  .enemy-panel>.hero-status{padding:9px 0 0 10px;justify-content:flex-start}
  .hero-status>div:first-child{flex-wrap:wrap;justify-content:flex-end}
  .hero-status .stat-label{width:100%;justify-content:flex-end;font-size:11px}
  .hero-status>div:first-child strong{font-size:28px}
  .clue small.clue-meta{gap:4px 8px}
  .clue-power{gap:6px}
  .clue-power .icon{width:13px;height:13px}
  .solved-words ul{gap:0 16px}
  .reward-amount.reward-mixed{flex-direction:column;gap:5px;font-size:20px}
  .reward-mixed .icon{width:16px;height:16px}
  .reward-screen .reward-content{margin-top:10px}
  .reward-screen .phase-intro{margin-bottom:16px}
  .reward-screen .phase-icon{margin-bottom:8px;width:24px;height:24px}
  .reward-choice{min-height:88px;padding-top:16px;padding-bottom:16px}
}
@media(max-width:370px){.site-header nav{gap:9px}.site-header nav .text-button{white-space:nowrap}.enemy-panel{gap:12px}.enemy-summary .enemy-intent{gap:5px}.enemy-summary .intent-disclosure{display:none}}

.unique-word-count{grid-column:1/-1}
.run-summary dd small{font:12px var(--sans);color:var(--muted)}
.adventure-words{list-style:none;padding:0;margin:10px 0 24px;display:grid;grid-template-columns:1fr 1fr;gap:0 20px}
.adventure-words li{min-width:0;border-bottom:1px solid var(--line)}
.adventure-words .word-link{width:100%;display:flex;flex-wrap:wrap;gap:4px 8px;padding:8px 0;font-size:14px}
.adventure-words .word-link>span:first-child{color:var(--accent);font-size:14px}
.adventure-words .word-reading-inline{flex-basis:100%;color:var(--muted);font-size:10px}
.adventure-words .word-link>span:first-child:only-of-type{flex-basis:auto}
@media(max-width:370px){.adventure-words{grid-template-columns:1fr}}

/* Keep current resources above the reward list; each choice shows only its refill. */
.reward-screen .reward-status{max-width:600px;margin:8px auto 30px}
.reward-status>.hero-status{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:9px 28px;margin:0;padding:0}
.reward-status .hero-status>div:first-child{grid-column:1;grid-row:1;min-width:0;margin:0;flex-wrap:nowrap;justify-content:space-between;align-items:baseline}
.reward-status .stat-label{width:auto;justify-content:flex-start;font-size:12px}
.reward-status .hero-status>div:first-child strong{font:28px Georgia,serif}
.reward-status .health-track{grid-column:1;grid-row:2;height:5px}
.reward-status .hero-minor{grid-column:2;grid-row:1/3;align-self:center;margin:0;font-size:12px}
.reward-status .hero-minor>span{display:inline-flex;align-items:center;gap:5px}
.reward-status .hero-minor .icon{width:18px;height:18px;margin:0}
.reward-status .hero-minor strong{font:20px Georgia,serif;margin-left:3px}
.reward-screen .reward-choice{min-height:82px;padding:18px 16px;gap:20px}
.reward-screen .reward-copy{min-width:0;gap:4px}
.reward-screen .reward-copy strong{line-height:1.5}
.reward-screen .reward-copy>span{font-size:11px}
.reward-screen .reward-choice .reward-amount.reward-mixed{display:flex;flex-direction:row;flex-shrink:0;align-items:center;gap:16px;font:24px Georgia,serif}
.reward-screen .reward-mixed>span{align-items:center;gap:6px}
.reward-screen .reward-mixed .icon{width:20px;height:20px;flex-shrink:0}
.reward-screen .reward-choice:disabled .reward-amount{color:var(--muted)}
@media(max-width:650px){
  .reward-screen .reward-status{margin:4px auto 26px}
  .reward-status>.hero-status{gap:8px 18px}
  .reward-status .stat-label{font-size:11px}
  .reward-status .hero-status>div:first-child strong{font-size:25px}
  .reward-status .hero-minor{font-size:11px}
  .reward-status .hero-minor strong{font-size:18px}
  .reward-screen .reward-choice{min-height:76px;padding:16px 8px;gap:12px}
  .reward-screen .reward-copy strong{font-size:18px}
  .reward-screen .reward-choice .reward-amount.reward-mixed{gap:12px;font-size:20px}
  .reward-screen .reward-mixed>span{gap:5px}
  .reward-screen .reward-mixed .icon{width:18px;height:18px}
}

/* Enemy block is a separate resource beneath HP, in a quiet blue. */
.enemy-health .enemy-block{grid-column:1/-1;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:5px 8px;width:100%;min-height:38px;padding:5px 0 2px;margin:0;background:none;border:0;text-align:left;color:#a6c4d9;cursor:pointer}
.enemy-block .block-label{display:flex;align-items:center;gap:4px;font:10px var(--sans);white-space:nowrap}
.enemy-block .block-label .icon{width:13px;height:13px}
.enemy-block .block-label>span{margin-left:2px;font-size:10px}
.enemy-block .block-value{font:16px Georgia,serif;font-variant-numeric:tabular-nums}
.enemy-block .block-track{grid-column:1/-1;display:block;height:4px;width:100%;background:#28414f;overflow:hidden}
.enemy-block .block-track>span{display:block;height:100%;background:#a6c4d9;transition:width .3s}
.enemy-block:hover:not(:disabled) .block-track>span{background:#c2dfef}
.enemy-block:focus-visible{outline:2px solid #a6c4d9;outline-offset:3px}
.enemy-block:disabled{opacity:1;cursor:default}
@media(max-width:650px){.enemy-health .enemy-block{gap:4px 6px;min-height:34px;padding-top:3px}.enemy-block .block-value{font-size:14px}.enemy-block .block-label{font-size:9px}}
@media(prefers-reduced-motion:reduce){.enemy-block .block-track>span{transition:none}}

/* The Japanese identity is readable at both the entrance and in the game. */
.brand{min-height:44px;letter-spacing:0;flex-shrink:0}
.brand-logo{display:block;width:210px;height:auto}
.site-header nav button{min-width:44px}
.start-copy h1.title-logo{max-width:530px;line-height:0;margin:14px 0 22px;letter-spacing:0}
.title-logo img{display:block;width:100%;height:auto}
.start-copy>.eyebrow{letter-spacing:.12em;font-weight:500;font-size:12px}
.start-description{font-size:14px;line-height:1.9}
.start-meta{font-size:12px}
.start-records{flex-wrap:wrap;gap:2px 18px}
.start-records>span{font-size:12px}
.start-actions>.primary,.start-actions>.secondary{font-size:14px;min-height:50px}
.info-dialog h2{padding-right:32px}
.site-footer{font-size:11px;letter-spacing:.04em}
.site-footer button{font-size:12px;min-height:44px}
.answer-risk{font-size:12px}
.how-strip strong{font-size:14px;line-height:1.5}
.how-strip p>span{font-size:12px;line-height:1.75}
@media(max-width:650px){
  .brand-logo{width:138px}
  .site-header{padding-left:12px;padding-right:12px}
  .site-header nav{gap:10px}
  .site-header nav button{font-size:12px}
  .site-header nav .icon-button{font-size:17px;gap:4px}
  .start-screen{display:block;min-height:0;padding:24px 20px 30px}
  .start-copy h1.title-logo{margin:12px 0 20px;max-width:420px}
  .start-copy>.eyebrow{font-size:11px;letter-spacing:.09em}
  .start-description{font-size:14px}
  .start-actions{gap:10px}
  .start-actions>.primary,.start-actions>.secondary{font-size:13px;padding:12px 16px;gap:12px}
  .start-art{position:relative;inset:auto;width:100%;height:210px;margin-top:26px;opacity:.8;pointer-events:none;animation:none}
  .start-art .gate-art{height:210px;width:100%;max-height:210px;filter:none}
  .start-records{gap:0 16px}
  .start-records>span{font-size:12px}
  .start-meta{font-size:12px;gap:16px}
  .start-meta span+span:before{margin-right:16px}
  .site-footer{gap:6px;padding-top:14px;padding-bottom:14px}
}
@media(max-width:370px){.brand-logo{width:126px}.site-header nav{gap:8px}.site-header nav .text-button{font-size:11px}}

/* The entrance carries the atmosphere; the menu contains only game controls. */
.start-screen{grid-template-columns:minmax(0,1fr) minmax(0,1.12fr);gap:22px;padding-top:24px;padding-bottom:24px;min-height:570px}
.start-art{align-items:center;justify-content:center}
.gate-art.dungeon-entrance{display:block;width:100%;height:auto;max-height:610px;object-fit:contain;filter:none}
.start-copy h1.title-logo{margin-top:0;margin-bottom:28px}
.start-copy .start-actions{margin-top:0}
.word-source a{text-decoration:underline;text-underline-offset:4px}
.end-art .gate-art.dungeon-entrance{width:100%;height:100%;max-height:none;object-fit:contain;transform:none}
@media(max-width:650px){
  .start-screen{display:block;min-height:0;padding:25px 20px 28px}
  .start-copy h1.title-logo{margin-bottom:24px}
  .start-art{height:280px;opacity:1;margin-top:20px}
  .start-art .gate-art.dungeon-entrance{width:100%;height:100%;max-height:none}
}

/* Footer utilities: the title already appears in the header. */
.site-footer{justify-content:flex-end}
.game-tagline{font-size:16px;line-height:1.6;letter-spacing:.06em;color:var(--muted);margin:0 0 18px}
@media(max-width:600px){.game-tagline{font-size:14px;margin-bottom:14px}}

/* Display placements stay apart from the game's controls. Hidden when disabled. */
.display-ad{width:calc(100% - 48px);max-width:728px;margin:150px auto 32px;min-height:110px;font-size:11px;color:var(--muted)}
.display-ad[hidden]{display:none}
.display-ad-label{display:block;margin-bottom:12px;text-align:left}
.display-ad .adsbygoogle{width:100%;height:90px}
.display-ad-sample{height:90px;display:grid;place-items:center;border:1px dashed var(--line);background:var(--surface)}
@media(max-width:600px){.display-ad{width:calc(100% - 32px);margin-bottom:24px}}

/* Local layout sample only; no real ad unit is fixed by application CSS. */
.side-rail-sample{display:none}
@media(min-width:1860px){
  .ad-layout-preview #app,.ad-layout-preview .site-header,.ad-layout-preview .site-footer{max-width:1180px;margin-left:auto;margin-right:auto}
  .side-rail-sample{display:grid;place-items:center;position:fixed;right:16px;top:130px;width:160px;height:600px;border:1px dashed var(--line);background:var(--surface);font-size:11px;color:var(--muted)}
}
.info-dialog p a{text-decoration:underline;text-underline-offset:3px}
.privacy-page{max-width:760px;margin:auto;padding:56px 24px 64px;min-height:calc(100svh - 102px)}
.privacy-page h1{font-family:var(--serif);font-size:28px;font-weight:400;margin-bottom:32px}
.privacy-page p{font-size:14px;line-height:1.9;margin-bottom:24px}
.privacy-page p a{text-decoration:underline;text-underline-offset:3px}
.privacy-page>.secondary{margin-top:12px}
@media(max-width:600px){.privacy-page{padding-top:32px}.privacy-page h1{font-size:24px}}
