.dungeon-scene{padding-top:26px}.dungeon-heading{display:flex;align-items:center;gap:26px;margin-bottom:20px}.floor-label{display:flex;align-items:center;gap:18px}.floor-label>span{font:18px serif;color:var(--muted);letter-spacing:.12em}.floor-label h1{font:40px Georgia,serif;color:var(--gold);overflow-wrap:anywhere;max-width:36vw}.floor-label h1 small{font:14px sans-serif;color:var(--muted);margin-left:9px}.dungeon-record{font-size:12px;color:var(--muted);overflow-wrap:anywhere}.divider{margin-inline:12px;color:var(--line)}.dungeon-heading>button{margin-left:auto}.hud{display:flex;align-items:center;gap:28px;border:1px solid var(--line);padding:17px 24px;background:#19251f;margin-bottom:18px}.vital{width:190px;flex:1}.vital>div{display:flex;justify-content:space-between;font-size:11px;letter-spacing:.06em}.vital b{font-size:13px;font-weight:500}.vital meter{width:100%;height:6px;display:block;margin-top:8px;border:none;background:#2f3c32;border-radius:0}.vital meter::-webkit-meter-bar{background:#2f3c32;border:0;border-radius:0}.vital meter::-webkit-meter-optimum-value{background:#96af81}.vital meter::-moz-meter-bar{background:#96af81}.hunger meter::-webkit-meter-optimum-value{background:#c6a670}.hunger meter::-moz-meter-bar{background:#c6a670}.vital.danger{color:#f0a186}.vital.danger meter::-webkit-meter-optimum-value{background:#d68c73}.combat-stat{font-size:12px;white-space:nowrap;color:var(--muted)}.combat-stat b{color:var(--text);font:23px Georgia,serif;margin-left:3px}.combat-stat>span{margin-left:10px}.combat-stat small{display:block;margin-top:5px;font-size:9px;letter-spacing:.04em}.status-list{font-size:11px;color:var(--muted);line-height:1.7;max-width:110px}.dungeon-layout{display:grid;grid-template-columns:minmax(0,1fr) 236px;gap:20px}.board-column{min-width:0}.board-frame{position:relative;border:1px solid #3b4b3c;background:#091115;padding:0}.board-frame canvas{width:100%;height:480px;display:block;image-rendering:pixelated;touch-action:none}.board-label{position:absolute;bottom:12px;left:14px;pointer-events:none;font-size:9px;letter-spacing:.12em;color:#829784}.light-dot{display:inline-block;width:5px;height:5px;background:#c1b578;border-radius:50%;margin-right:5px}.tile-info{padding:12px 4px;font-size:12px;line-height:1.7;min-height:44px;color:#b6c3ac}.exploration-panel{padding:18px 16px;background:#19251f;border:1px solid var(--line)}.panel-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}.panel-heading .text-button{font-size:11px;padding:0}.panel-heading .tiny-label{font-size:9px;letter-spacing:.14em}#minimap{width:100%;height:auto;image-rendering:pixelated;border:1px solid #3b493a}.map-legend{display:flex;gap:12px;font-size:9px;color:var(--muted);margin-top:10px}.bag-heading{border-top:1px solid var(--line);padding-top:23px;margin-top:22px}#bag-count{font:12px Georgia,serif;color:var(--muted)}#equipment-summary{font-size:12px;line-height:2.3;margin-bottom:16px}#equipment-summary p{display:flex;gap:10px;align-items:center}#equipment-summary small{font-size:10px;color:var(--muted);width:23px}#inventory-button{font-size:12px;padding:12px;min-height:44px;letter-spacing:0;gap:0}.field-note{border-top:1px solid var(--line);padding-top:20px;margin-top:22px}.field-note>span{color:var(--gold);font-size:10px;letter-spacing:.08em}.field-note p{font-family:serif;font-size:12px;color:var(--muted);line-height:2;margin-top:8px}.action-row{display:flex;gap:10px;margin-top:2px}.action-row button{background:#1b2923;border:1px solid #3d4d3c;border-radius:3px;padding:10px 15px;font-size:12px;flex:1;min-height:42px}.action-row button:hover,.direction-pad button:hover{background:#314233;border-color:#a6ad80}.compact-bag{display:none}.dungeon-bottom{display:grid;grid-template-columns:1fr 130px;gap:24px;margin-top:24px}.log-panel{border-left:2px solid #65734d;padding-left:18px;min-width:0}.log-panel .tiny-label{color:#83927c;font-size:9px;display:flex;justify-content:space-between;gap:12px}.log-panel #turn-notice{letter-spacing:0;color:var(--gold)}#game-log{padding:0;list-style:none;margin:12px 0 0;max-height:110px;overflow:auto}#game-log li{font-size:12px;line-height:1.9;color:#82917f}#game-log li:first-child{color:#d4d9c7}.direction-pad{display:grid;grid-template-columns:repeat(3,38px);grid-template-rows:repeat(3,32px);gap:3px;align-self:center}.direction-pad button{background:#202f27;border:1px solid #46553e;border-radius:3px;font-size:17px;color:#c4c9a3}.direction-pad button:nth-child(1){grid-column:2;grid-row:1}.direction-pad button:nth-child(2){grid-column:1;grid-row:2}.direction-pad span{grid-column:2;grid-row:2;display:grid;place-items:center;color:#7c8b61}.direction-pad button:nth-child(4){grid-column:3;grid-row:2}.direction-pad button:nth-child(5){grid-column:2;grid-row:3}.keyboard-hint{font-size:10px;color:var(--muted);margin-top:22px;display:flex;align-items:center;gap:9px}.keyboard-hint span{margin-left:auto;font-size:10px;color:#7d8d79}dialog{width:min(670px,94vw);max-height:88dvh;border:1px solid #6a7255;border-radius:5px;background:#18251f;color:var(--text);padding:26px;box-shadow:0 20px 100px #000a}dialog::backdrop{background:#07100dd9;backdrop-filter:blur(4px)}.dialog-heading{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #485340;padding-bottom:18px;margin-bottom:20px;gap:20px}.dialog-heading h2{font-size:27px}.dialog-heading .icon-button{flex:none}#dialog-content{font-size:14px;line-height:1.9}#dialog-content p+p{margin-top:12px}#dialog-content .muted{color:var(--muted);font-size:12px}.dialog-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:24px}.dialog-actions button{font-size:13px;min-height:44px;padding:12px 18px}.item-row{display:flex;align-items:center;gap:14px;padding:16px 0;border-bottom:1px solid #334532;min-width:0}.item-icon{width:40px;height:40px;display:grid;place-items:center;flex:none;border:1px solid #49573d;border-radius:3px;color:var(--gold);font-size:20px;background:#202e23}.item-detail{flex:1;min-width:0}.item-detail strong{font-size:14px;font-weight:500;display:block;overflow-wrap:anywhere}.item-detail p{font-size:11px;color:var(--muted);line-height:1.7}.item-buttons{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}.item-buttons button{font-size:11px;border:1px solid #576347;background:#283722;border-radius:3px;min-height:34px;padding:7px 10px;color:#d9d7b9}.item-buttons button:hover{border-color:var(--gold)}.item-row label{width:22px}.item-row input[type=checkbox]{width:19px;min-height:19px;margin:0;accent-color:var(--gold)}.inventory-hint{display:flex;justify-content:space-between;color:var(--muted);font-size:12px;margin-bottom:12px}.settings-row{display:flex;align-items:center;gap:20px;justify-content:space-between;padding:10px 0;font-size:13px}.settings-row input[type=checkbox]{width:20px;min-height:20px;accent-color:var(--gold)}.settings-row input[type=range]{width:180px;min-height:24px;border:0;padding:0;accent-color:var(--gold)}.settings-row select{width:160px;font-size:12px}.settings-keys{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:12px}.settings-keys label{font-size:11px;color:var(--muted)}.settings-keys input{font-size:13px;min-height:38px;max-width:100%;text-align:center}.help-row{display:grid;grid-template-columns:100px 1fr;gap:20px;border-bottom:1px solid #354531;padding:10px 0;font-size:12px}.help-row dt{color:var(--gold)}.help-row dd{margin:0;color:var(--text)}.help-note{margin-top:20px;font-size:12px!important;color:var(--muted)}.stats-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin:22px 0}.stats-grid dt{font-size:11px;color:var(--muted)}.stats-grid dd{margin:8px 0 0;font:24px Georgia,serif;color:var(--gold);overflow-wrap:anywhere}.codex-title{font-size:18px;margin:26px 0 10px;color:var(--text)}.codex-entry{font-size:12px;padding-block:8px;border-bottom:1px solid #354531;line-height:1.8;color:var(--muted)}.full-map{width:100%;height:auto;image-rendering:pixelated;border:1px solid #46543b}.error-message{color:#e0a48d;overflow-wrap:anywhere}#toast{position:fixed;z-index:20;bottom:24px;left:50%;transform:translate(-50%);background:#e0c794;color:#243124;border:1px solid #f3e0b8;border-radius:4px;box-shadow:0 8px 30px #0008;padding:13px 20px;max-width:90vw;font-size:13px}@media(max-width:1050px){.hud{gap:18px;padding:15px}.dungeon-layout{grid-template-columns:minmax(0,1fr) 215px;gap:14px}.exploration-panel{padding:14px}.board-frame canvas{height:440px}.combat-stat b{font-size:21px}.status-list{max-width:70px}.keyboard-hint span{display:none}}@media(max-width:900px){.dungeon-layout{display:block}.exploration-panel{display:none}.compact-bag{display:block}.board-frame canvas{height:480px}.action-row{gap:7px}.action-row button{padding:10px 7px}.action-row kbd{display:none}.hud{gap:20px}.status-list{max-width:90px}}@media(max-width:600px){.dungeon-scene{padding-top:18px}.dungeon-heading{gap:14px;margin-bottom:14px;flex-wrap:wrap}.floor-label{gap:9px}.floor-label>span{font-size:15px}.floor-label h1{font-size:30px}.floor-label h1 small{font-size:11px;margin-left:4px}.dungeon-record{font-size:10px;margin-left:auto}.dungeon-heading>button{font-size:10px;margin-left:0}.dungeon-heading>button kbd{display:none}.divider{margin-inline:5px}.hud{display:grid;grid-template-columns:1fr 1fr;gap:13px 20px;padding:15px}.vital{width:auto}.combat-stat{font-size:11px}.combat-stat small{display:inline;margin-left:8px;font-size:9px}.combat-stat b{font-size:19px}.status-list{grid-column:1/-1;max-width:none;font-size:10px}.board-frame canvas{height:390px}.board-label{font-size:8px}.tile-info{font-size:11px;min-height:38px;padding-block:10px}.action-row{display:grid;grid-template-columns:repeat(3,1fr);gap:7px}.action-row button{padding:9px 5px;font-size:12px;min-height:40px}.dungeon-bottom{grid-template-columns:minmax(0,1fr) 112px;gap:16px;margin-top:18px}.direction-pad{grid-template-columns:repeat(3,35px);grid-template-rows:repeat(3,35px)}.log-panel{padding-left:12px}.log-panel .tiny-label{font-size:8px;display:block}.log-panel #turn-notice{display:block;margin-top:5px}#game-log{max-height:96px}#game-log li{font-size:10px}.keyboard-hint{flex-wrap:wrap;font-size:9px;gap:6px}.keyboard-hint kbd{font-size:9px}.item-row{gap:9px;flex-wrap:wrap}.item-icon{width:32px;height:32px;font-size:17px}.item-buttons{width:100%;justify-content:flex-end;padding-left:40px}.item-buttons button{font-size:12px;min-height:36px;padding-inline:12px}.item-detail strong{font-size:13px}.item-detail p{font-size:10px}dialog{padding:18px;max-height:90dvh}.dialog-heading h2{font-size:23px}.settings-keys{grid-template-columns:repeat(2,1fr)}.settings-row{font-size:12px;gap:12px}.settings-row input[type=range]{width:130px}.help-row{grid-template-columns:75px 1fr;gap:12px}.stats-grid{grid-template-columns:repeat(2,1fr)}.dialog-actions{gap:10px}.dialog-actions button{flex:1;justify-content:center}.result-scene .primary{min-width:230px}}.in-dungeon main{max-width:none;padding:0}.in-dungeon .site-footer{display:none}.in-dungeon .topbar{position:fixed;z-index:6;top:0;right:0;height:auto;max-width:none;margin:0;padding:6px 10px;border:0}.in-dungeon .topbar .brand{display:none}.in-dungeon .topbar-right{gap:8px}.in-dungeon .topbar .icon-button{width:32px;height:32px;font-size:16px;background:#0b1215cc}.in-dungeon .dungeon-scene{position:fixed;inset:0;z-index:2;padding:0;display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto minmax(0,1fr) auto auto;pointer-events:none}.in-dungeon .board-frame{position:fixed;inset:0;z-index:-1;border:0;background:#05090b;pointer-events:auto}.in-dungeon .board-frame canvas{width:100vw;height:100vh;height:100dvh}.in-dungeon .board-frame:has(>#board[data-loading=true]):after{content:"灯りを準備しています";position:fixed;left:12px;top:calc(30% - 36px);pointer-events:none;padding:4px 10px;border-radius:3px;background:#0b1215cc;color:var(--gold);font-size:13px;letter-spacing:.08em}.in-dungeon .edge-marks{position:fixed;inset:0;z-index:-1;pointer-events:none}.in-dungeon .edge-mark{position:absolute;width:32px;height:32px;margin:-16px 0 0 -16px;display:grid;place-items:center;border-radius:50%;background:#0b1215d9;border:1px solid #efae67;color:#ffcf8a;box-shadow:0 0 8px #0009;transform:rotate(var(--angle,0deg));pointer-events:none}.in-dungeon .edge-mark svg{display:block}.in-dungeon .hud-top{grid-column:1/-1;grid-row:1;pointer-events:auto;display:flex;flex-wrap:wrap;align-items:center;gap:4px 22px;padding:6px 18px 8px;background:linear-gradient(#0b1215e6,#0b1215c4);border-bottom:1px solid #dec08b59}.in-dungeon .dungeon-heading{margin:0;gap:16px;flex:1 1 100%;min-height:40px;padding-right:200px;min-width:0}.in-dungeon .floor-label{gap:10px}.in-dungeon .floor-label>span{font-size:15px}.in-dungeon .floor-label h1{font-size:28px;line-height:1}.in-dungeon .dungeon-heading>button{margin-left:auto;padding:4px 0}.in-dungeon .hud{margin:0;padding:0;border:0;background:none;flex:1 1 auto;gap:22px;min-width:0}.in-dungeon .vital{width:auto;flex:1 1 150px;max-width:240px}.in-dungeon .vital meter{margin-top:5px}.in-dungeon .combat-stat b{font-size:20px}.in-dungeon .combat-stat small{display:inline;margin:0 0 0 8px}.in-dungeon .status-list{max-width:none}.in-dungeon .board-label{position:static;margin-left:auto;font-size:12px;color:#9fb09c;white-space:nowrap}.in-dungeon .exploration-panel{display:block;grid-column:2;grid-row:2;align-self:start;pointer-events:auto;width:236px;max-height:100%;overflow:auto;margin:10px 12px 0 0;padding:12px 14px;background:#0b1215cc;border:1px solid #3b4b3c;border-radius:4px}.in-dungeon .field-note{display:none}.in-dungeon .bag-heading{padding-top:12px;margin-top:12px}.in-dungeon #equipment-summary{line-height:1.9;margin-bottom:10px}.in-dungeon .dungeon-bottom{grid-column:1/-1;grid-row:3;margin:0;padding:0 12px 10px;display:grid;grid-template-columns:minmax(0,520px) minmax(0,1fr) auto auto;grid-template-areas:"log . actions pad";align-items:end;gap:12px;pointer-events:none}.in-dungeon .dungeon-bottom>*{pointer-events:auto}.in-dungeon .log-panel{grid-area:log;align-self:end;padding:8px 14px;background:#0b1215d1;border:1px solid #3b4b3c;border-left:2px solid #c6a670;border-radius:4px}.in-dungeon #turn-notice:empty{display:none}.in-dungeon #game-log{margin-top:4px;max-height:calc(3 * 1.6em);overflow:auto}.in-dungeon #game-log li{line-height:1.6}.in-dungeon .tile-info{min-height:0;padding:5px 0 0;margin-top:5px;border-top:1px solid #34423b;line-height:1.6}.in-dungeon .action-row{grid-area:actions;margin:0;display:grid;grid-template-columns:repeat(2,minmax(104px,auto));gap:6px}.in-dungeon .action-row button{background:#0b1215d9;padding:8px 12px}.in-dungeon .direction-pad{grid-area:pad;align-self:end;padding:5px;background:#0b1215b3;border-radius:6px}.in-dungeon .direction-pad button{background:#16211cdd}.in-dungeon .keyboard-hint{grid-column:1/-1;grid-row:4;margin:0;padding:0 16px 8px;justify-content:center;pointer-events:none;color:#b3bfae;text-shadow:0 1px 2px #000}.in-dungeon .keyboard-hint span{margin-left:12px}.in-dungeon .compact-bag{display:none}@media(max-width:1023px){.in-dungeon .hud-top{padding:4px 10px 6px;gap:2px 14px}.in-dungeon .dungeon-heading{padding-right:196px;gap:10px;min-height:42px}.in-dungeon .board-label{display:none}.in-dungeon .exploration-panel{width:auto;margin:6px 8px 0 0;padding:3px}.in-dungeon .exploration-panel>:not(#minimap){display:none}.in-dungeon #minimap{display:block;width:150px;border:0}.in-dungeon .compact-bag{display:block}.in-dungeon .keyboard-hint{display:none}.in-dungeon .dungeon-bottom{grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"log pad" "actions pad";gap:6px 8px;padding:0 8px 8px}.in-dungeon .action-row{grid-template-columns:repeat(3,minmax(0,1fr))}.in-dungeon .action-row button{padding:6px 4px;min-height:44px}.in-dungeon .action-row kbd{display:none}}@media(max-width:600px){.in-dungeon .topbar{padding:5px 6px}.in-dungeon .topbar-right{gap:6px}.in-dungeon #save-indicator{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.in-dungeon .dungeon-record .best,.in-dungeon .dungeon-record .divider{display:none}.in-dungeon .dungeon-heading{padding-right:84px;flex-wrap:nowrap;gap:10px;min-height:40px}.in-dungeon .floor-label{gap:6px;flex:none}.in-dungeon .floor-label>span{font-size:13px}.in-dungeon .floor-label h1{font-size:22px}.in-dungeon .dungeon-record{font-size:12px;margin:0;white-space:nowrap}.in-dungeon .dungeon-heading>button{font-size:14px;margin-left:auto}.in-dungeon .hud{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:2px 10px;padding:0;width:100%}.in-dungeon .vital{grid-column:span 2;max-width:none}.in-dungeon .vital>div{font-size:14px}.in-dungeon .combat-stat{font-size:12px}.in-dungeon .combat-stat b{font-size:16px}.in-dungeon .combat-stat small{font-size:11px;margin-left:4px}.in-dungeon .status-list{grid-column:span 2;font-size:12px;align-self:center}.in-dungeon #minimap{width:112px}.in-dungeon .log-panel{padding:5px 8px}.in-dungeon .log-title{display:none}.in-dungeon .log-panel .tiny-label{display:block}.in-dungeon #game-log{font-size:13px;margin-top:0;max-height:4.5em}.in-dungeon #game-log li{font-size:13px;line-height:1.5}.in-dungeon .tile-info{font-size:13px;line-height:1.5;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;overflow:hidden;overflow-wrap:anywhere;padding-top:3px;margin-top:3px}.in-dungeon .action-row button{font-size:14px}.in-dungeon .direction-pad{padding:3px}}@media(max-height:500px)and (min-width:601px){.in-dungeon .dungeon-bottom{grid-template-columns:minmax(0,340px) minmax(0,1fr) auto;grid-template-areas:"log . pad" "actions actions pad"}.in-dungeon .action-row{grid-template-columns:repeat(6,minmax(0,110px))}.in-dungeon #game-log{max-height:3.2em}.in-dungeon .log-title{display:none}.in-dungeon .tile-info{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.in-dungeon #minimap{width:120px}}:root{color-scheme:dark;--bg:#10191d;--panel:#172321;--text:#e4e4d6;--muted:#9aa99f;--line:#34423b;--gold:#dec08b;--green:#94ac8d;--red:#e0a18e;font-family:Yu Gothic UI,Meiryo,sans-serif;font-size:16px;background:var(--bg);color:var(--text)}*{box-sizing:border-box}body{margin:0;min-width:320px;background:radial-gradient(ellipse at 30% 0,#25352b66,transparent 65%),var(--bg)}button,input,select{font:inherit}button,a,input,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer;color:inherit}button:disabled{opacity:.4;cursor:not-allowed}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,canvas:focus-visible{outline:2px solid var(--gold);outline-offset:4px}button{border:0}a{color:inherit;text-decoration:none}button{touch-action:manipulation}input,select{width:100%;min-height:46px;background:#0e1919;border:1px solid #46554b;border-radius:3px;color:var(--text);padding:10px 12px}label{display:block;line-height:1.8}label input,label select{margin-top:5px}h1,h2,h3,p{margin:0}h1,h2,h3{font-family:Yu Mincho,Hiragino Mincho ProN,serif;font-weight:500}small{font-size:12px}kbd{font-family:inherit;font-size:11px;border:1px solid #566255;border-radius:3px;padding:1px 4px;color:#b7c0b1;white-space:nowrap}button kbd{margin-left:6px}[hidden]{display:none!important}.topbar{height:88px;max-width:1440px;margin:auto;padding:0 5%;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line)}.brand{display:flex;align-items:center;gap:12px;font-family:serif;letter-spacing:.16em;font-size:22px}.brand small{display:block;font-family:Georgia,serif;font-size:8px;letter-spacing:.21em;margin-top:3px;color:var(--muted)}.brand-mark{color:var(--gold);font-size:35px}.topbar-right{display:flex;gap:16px;align-items:center}#save-indicator{font-size:12px;color:var(--muted)}.icon-button{width:36px;height:36px;border:1px solid var(--line);border-radius:50%;background:transparent;color:var(--muted);font-size:18px}.icon-button:hover{color:var(--gold);border-color:var(--gold)}main{max-width:1320px;margin:auto;padding:0 4%}.scene{padding:40px 0 50px}.eyebrow,.tiny-label{font-size:10px;letter-spacing:.18em;color:var(--gold);font-weight:500}.eyebrow{display:flex;align-items:center;gap:12px}.eyebrow>span:not(.caption-line){width:22px;height:1px;background:var(--gold)}.primary,.secondary{display:inline-flex;align-items:center;justify-content:space-between;gap:24px;padding:16px 24px;border:1px solid var(--gold);border-radius:3px;min-height:54px;font-weight:600;letter-spacing:.08em}.primary{background:var(--gold);color:#1c2924}.primary:hover{background:#eed5a6;border-color:#eed5a6}.secondary{background:transparent;color:var(--gold);border-color:#5c6650}.secondary:hover{background:#d9bf8d12}.wide{width:100%}.text-button{background:none;font-size:13px;color:var(--muted);padding:10px 0}.text-button:hover{color:var(--gold)}.text-button span{margin-left:14px}.arrow-icon{vertical-align:-.125em}.title-scene{display:grid;grid-template-columns:1fr 1.15fr;gap:0 44px;padding-top:62px}.title-copy{position:relative;z-index:2;padding-left:18px}.title-copy h1{font-size:clamp(60px,7.5vw,100px);letter-spacing:.08em;line-height:1.35;margin-top:18px}.title-copy h1>span{color:var(--gold)}.english-title{font-family:Georgia,serif;font-size:12px;letter-spacing:.35em;color:#b4bb9d;margin:0 0 28px 5px}.title-lead{font-family:serif;font-size:29px;letter-spacing:.13em;line-height:1.65}.title-description{font-size:13px;line-height:2.1;color:var(--muted);margin:20px 0 28px}.title-actions{display:flex;flex-direction:column;align-items:flex-start;gap:6px}.title-actions .primary{width:290px}.local-note{font-size:11px;color:#7c8e80;margin-top:16px}.title-foot{grid-column:1/-1;display:flex;justify-content:space-between;border-top:1px solid var(--line);margin-top:50px;padding:26px 18px 0;font-size:12px;color:var(--muted);gap:18px}.title-foot b{font-family:Georgia,serif;font-size:15px;color:var(--gold);margin-right:16px;font-weight:400}.site-footer{max-width:1320px;margin:auto;padding:24px 4%;display:flex;justify-content:space-between;border-top:1px solid #2b3833;font-size:9px;letter-spacing:.15em;color:#758677}.cave-art{position:relative;overflow:hidden;min-height:600px;align-self:stretch;background:radial-gradient(ellipse at 52% 66%,#aeb78122,transparent 42%),linear-gradient(160deg,#20372e,#0c1818 70%);border:1px solid #304338}.cave-art:after{content:"";position:absolute;inset:0;pointer-events:none;background:linear-gradient(0deg,#111c1bee,transparent 30%,transparent 80%,#15231b70);box-shadow:inset 0 0 80px #091514}.cave-arch{position:absolute;border-radius:45% 45% 0 0;border:35px solid #304438;box-shadow:inset 5px 0 30px #050c0b,0 0 0 1px #56735244;background:linear-gradient(#070f12,#182a26);height:76%;width:82%;left:9%;bottom:8%;transform:perspective(500px) rotateY(-5deg)}.arch-back{height:58%;width:45%;left:26%;bottom:16%;border:19px solid #2f453b;z-index:2;box-shadow:inset 0 0 45px #090e11,0 0 40px #b8b9780a}.arch-front{border-width:44px;background:transparent;z-index:3}.cave-path{position:absolute;z-index:2;bottom:-70px;left:-10%;width:120%;height:43%;background:repeating-linear-gradient(0deg,transparent 0 40px,#192620 41px 43px),repeating-linear-gradient(90deg,#3e514134 0 70px,#182921 71px 73px);transform:perspective(220px) rotateX(40deg);box-shadow:0 -14px 70px #aac38311}.cave-steps{position:absolute;z-index:3;left:36%;top:49%;width:28%;transform:perspective(300px) rotateX(23deg)}.cave-steps i{display:block;height:13px;border-top:4px solid #697158;background:linear-gradient(90deg,#2c4132,#555d41,#304135);margin-top:3px;box-shadow:0 3px 2px #101c17}.cave-steps i:nth-child(1){margin-inline:22px}.cave-steps i:nth-child(2){margin-inline:15px}.cave-steps i:nth-child(3){margin-inline:9px}.cave-steps i:nth-child(4){margin-inline:3px}.cave-columns{position:absolute;inset:0;z-index:4;pointer-events:none}.cave-columns i{position:absolute;width:34px;height:13px;background:#485b40;box-shadow:0 2px #1d3024}.cave-columns i:nth-child(1){left:7%;top:43%;transform:rotate(-7deg)}.cave-columns i:nth-child(2){left:11%;top:25%;transform:rotate(25deg)}.cave-columns i:nth-child(3){right:9%;top:62%;transform:rotate(5deg)}.cave-columns i:nth-child(4){right:16%;top:20%;transform:rotate(-27deg)}.hero-art{position:absolute;z-index:5;left:42%;top:62%;width:55px;height:80px;filter:drop-shadow(0 10px 8px #050b09)}.hero-art span{position:absolute;display:block}.hero-hat{width:48px;height:17px;left:0;top:0;background:#acaa77;box-shadow:8px -10px 0 -3px #87845b}.hero-face{width:26px;height:17px;left:12px;top:17px;background:#a68e64}.hero-coat{width:39px;height:38px;left:5px;top:32px;background:linear-gradient(90deg,#8d9560 65%,#bfb271 65%);clip-path:polygon(16% 0,83% 0,100% 100%,0 100%)}.hero-boots{left:8px;top:69px;width:12px;height:12px;background:#1c3027;box-shadow:22px 0 #1c3027}.hero-lantern{left:48px;top:42px;width:12px;height:17px;background:#ffe3a0;border:3px solid #a5905a;box-shadow:0 0 15px #ffd886,0 0 70px 40px #f3c75c25,0 0 110px 70px #fae07b0e}.cave-caption{position:absolute;bottom:35px;left:32px;z-index:6}.cave-caption .tiny-label{font-size:8px;color:#91a583}.cave-caption p{font-family:serif;font-size:15px;line-height:1.8;color:#c5cbbb;margin-top:12px}.caption-line{display:block;width:35px;height:1px;background:#69765a;margin-top:16px}.cave-coordinate{position:absolute;z-index:6;right:24px;bottom:32px;writing-mode:vertical-rl;letter-spacing:.18em;color:#72846c;font-size:10px}.scene-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:32px}.scene-heading h1{font-size:44px;margin-top:12px}.scene-heading h1 span{font:14px sans-serif;color:var(--muted);margin-left:24px}.hub-layout{display:grid;grid-template-columns:310px 1fr;gap:40px}.departure-panel{background:#1a2822;padding:28px;border:1px solid var(--line)}.departure-panel h2{font-size:23px;line-height:1.6;margin:12px 0 24px}.departure-panel label{font-size:13px;margin-bottom:18px}.departure-panel label small{color:var(--muted);margin-left:8px}.starter-kit{border-top:1px solid var(--line);padding-top:20px;margin-top:24px}.starter-kit h3{font:12px sans-serif;color:var(--gold);margin-bottom:10px}.starter-kit p{font-size:12px;line-height:1.9}.starter-kit small{display:block;color:var(--muted);line-height:1.8;margin-top:12px}#loadout-count{font-size:12px;margin:24px 0 14px;color:var(--gold)}#depart{width:100%;padding-inline:18px}.hub-currency{display:flex;align-items:baseline;gap:10px;justify-content:flex-end;margin:6px 0 28px}.hub-currency>span{margin-right:auto;color:var(--muted);font-size:12px}.hub-currency b{font:36px Georgia,serif;color:var(--gold)}.facility-tabs{display:flex;border-bottom:1px solid var(--line);gap:4px;margin-bottom:20px}.facility-tabs button{background:none;flex:1;color:var(--muted);font-size:14px;padding:14px 2px;border-bottom:2px solid transparent}.facility-tabs button.active{color:var(--gold);border-color:var(--gold)}.empty-state{padding:55px 20px;text-align:center;color:var(--muted);font-size:14px;line-height:2}.empty-state strong{display:block;color:var(--text);font-family:serif;font-size:24px;font-weight:400;margin-bottom:14px}.hub-tip{padding-top:24px;border-top:1px solid var(--line);margin-top:28px;font-size:12px;line-height:1.8;color:var(--muted)}.result-scene{max-width:700px;margin:auto;text-align:center;padding-block:60px 80px}.result-seal{font-size:72px;color:var(--gold);margin-bottom:22px}.result-scene .eyebrow{justify-content:center}.result-scene h1{font-size:44px;margin:20px 0}.result-scene>p:not(.eyebrow){font-size:14px;color:var(--muted);line-height:2}.result-stats{display:grid;grid-template-columns:repeat(3,1fr);border-block:1px solid var(--line);padding:28px 0;margin:32px 0;gap:20px}.result-stats dt{font-size:12px;color:var(--muted)}.result-stats dd{font:32px Georgia,serif;margin:14px 0 0;color:var(--gold);overflow-wrap:anywhere}.result-scene .primary{margin-top:30px;min-width:260px}.high-contrast{--muted:#c1cdba;--line:#738577;--bg:#081210;--text:#fffdf0}.reduced-motion *,.reduced-motion *:before,.reduced-motion *:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}@media(max-width:900px){.topbar{padding-inline:5%;height:74px}.title-scene{gap:22px;grid-template-columns:1fr 1fr;padding-top:44px}.title-copy{padding-left:0}.title-copy h1{font-size:68px}.cave-art{min-height:590px}.title-lead{font-size:25px}.title-actions .primary{width:100%;padding-inline:16px}.title-foot{font-size:11px;padding-inline:0;gap:10px}.title-foot b{margin-right:8px}.hub-layout{grid-template-columns:270px 1fr;gap:24px}.departure-panel{padding:22px}.scene-heading h1{font-size:36px}.site-footer{padding-top:20px}}@media(max-width:600px){.topbar{height:68px}.brand{font-size:20px;gap:9px}.brand-mark{font-size:28px}.brand small{font-size:7px}.topbar-right{gap:9px}#save-indicator{max-width:100px;font-size:10px;text-align:right;line-height:1.5}.icon-button{width:32px;height:32px}.title-scene{display:block;padding-top:32px}.title-copy{padding-inline:12px}.title-copy h1{font-size:68px;margin-top:10px}.english-title{margin-bottom:22px;font-size:10px}.title-lead{font-size:25px}.title-description{font-size:12px;margin-top:16px}.title-actions .primary{width:100%;max-width:330px}.cave-art{min-height:380px;margin:32px 10px 0}.cave-arch{border-width:30px}.arch-back{border-width:17px}.hero-art{transform:scale(.8)}.title-foot{display:block;margin-top:32px;padding:22px 14px 0}.title-foot p+p{margin-top:16px}.site-footer span:nth-child(2){display:none}.scene{padding-top:28px}.hub-layout{display:flex;flex-direction:column;gap:28px}.scene-heading h1{font-size:34px}.scene-heading h1 span{font-size:12px;margin-left:14px}.scene-heading .eyebrow{font-size:8px}.departure-panel{padding:24px}.departure-panel h2{font-size:26px}.hub-facilities{padding:0 8px}.facility-tabs button{font-size:13px}.result-scene h1{font-size:34px}.result-stats{grid-template-columns:repeat(2,1fr)}.result-stats dd{font-size:28px}}.depart-help{margin-top:16px}.depart-help p{font-size:12px;line-height:1.8;color:var(--gold);margin-bottom:10px;word-break:auto-phrase}.depart-help .secondary{justify-content:center;min-height:46px;padding:12px 16px}.tab-count:not(:empty){display:inline-block;min-width:20px;margin-left:6px;padding:0 6px;border-radius:10px;background:var(--gold);color:#1c2924;font-size:11px;line-height:20px;font-weight:600}.title-description,.departure-panel label,.starter-kit p,.starter-kit h3,.hub-tip,.facility-tabs button,.empty-state,.text-button,.dungeon-record,.vital>div,.combat-stat,.status-list,.tile-info,.action-row button,.field-note p,#equipment-summary,#inventory-button,#game-log li,#dialog-content,#dialog-content .muted,.dialog-actions button,.item-detail strong,.item-detail p,.item-buttons button,.settings-row,.settings-row select,.settings-keys label,.settings-keys input,.help-row,.codex-entry,.inventory-hint,.stats-grid dt,.result-stats dt,.result-scene>p:not(.eyebrow),#toast{font-size:16px}.help-note{font-size:16px!important}.local-note,.starter-kit small,#loadout-count,#equipment-summary small,#bag-count,.field-note>span,.map-legend,.combat-stat small,.keyboard-hint,.keyboard-hint span,.log-panel #turn-notice{font-size:14px}#equipment-summary small{width:auto;flex:none}.status-list{max-width:140px}#game-log{max-height:160px}.item-buttons button,.action-row button{min-height:44px}.direction-pad{grid-template-columns:repeat(3,44px);grid-template-rows:repeat(3,44px)}.dungeon-bottom{grid-template-columns:minmax(0,1fr) 138px}.floor-reports{text-align:left;border:1px solid var(--line);padding:16px;margin:24px 0;font-size:16px;line-height:1.8}.floor-reports summary{cursor:pointer;color:var(--gold)}.floor-reports p{margin-top:12px;overflow-wrap:anywhere}#board[data-renderer="3d"]{image-rendering:auto}.renderer-label{font-size:12px;color:var(--gold)}@media(max-width:900px){.hud{flex-wrap:wrap}.status-list{max-width:none}}@media(max-width:600px){.dungeon-heading>button{font-size:16px}.dungeon-record{font-size:14px}.combat-stat small{display:block;margin-left:0}.dungeon-bottom{grid-template-columns:minmax(0,1fr) 138px;gap:10px}.log-panel{padding-left:9px}.help-row{grid-template-columns:82px 1fr;gap:12px}.keyboard-hint kbd{font-size:12px}}.high-contrast.in-dungeon :is(.hud-top,.exploration-panel,.log-panel,.direction-pad){background:#000000f0;border-color:#9fb39f}.high-contrast.in-dungeon .action-row button,.high-contrast.in-dungeon .direction-pad button{background:#000;border-color:#9fb39f}.high-contrast.in-dungeon .edge-mark{background:#000;border-color:#fffdf0;color:#fffdf0}.high-contrast.in-dungeon .keyboard-hint{color:var(--text);text-shadow:0 0 3px #000,0 0 3px #000}.language-switch{position:absolute;right:0;top:88px;z-index:8;min-width:76px;min-height:44px;padding:10px 12px;background:var(--panel);color:var(--gold);border:1px solid var(--line);border-radius:4px 0 0 4px;font-size:13px}.settings-language{min-width:88px;min-height:44px;margin-top:20px}@media(max-width:900px){.language-switch{top:74px}}@media(max-width:600px){.language-switch{top:68px}}html[lang=en] .brand{font-size:17px;letter-spacing:.04em}html[lang=en] .brand small,html[lang=en] .english-title{display:none}html[lang=en] .title-copy h1{font-size:clamp(40px,5.4vw,72px);letter-spacing:.02em;line-height:1.15;margin-bottom:24px}html[lang=en] .title-copy h1>span{display:block}html[lang=en] .title-lead{font-size:27px;letter-spacing:.02em}html[lang=en] .title-actions .primary{width:auto;min-width:290px;max-width:100%}html[lang=en] .primary,html[lang=en] .secondary{letter-spacing:0;gap:12px}html[lang=en] .scene-heading h1 span{display:block;margin:8px 0 0}html[lang=en] .item-detail strong,html[lang=en] .tile-info{overflow-wrap:normal;word-break:normal}html[lang=en] .item-buttons,html[lang=en] .settings-row select{flex-shrink:0}html[lang=en] .inventory-hint{gap:12px;flex-wrap:wrap}html[lang=en] .floor-label>span{letter-spacing:0;max-width:160px}html[lang=en] #equipment-summary small{width:48px;flex-shrink:0}html[lang=en] #equipment-summary span{line-height:1.5}html[lang=en] .in-dungeon .board-frame:has(>#board[data-loading=true]):after{content:"Lighting the lantern"}@media(max-width:600px){html[lang=en] .brand{font-size:13px;gap:6px}html[lang=en] .brand-mark{font-size:22px}html[lang=en] .topbar-right{gap:6px}html[lang=en] #save-indicator{max-width:64px}html[lang=en] .title-copy h1{font-size:44px}html[lang=en] .title-actions .primary{min-width:0;width:100%}html[lang=en] .title-lead{font-size:24px}html[lang=en] .scene-heading h1{font-size:30px}html[lang=en] .settings-row{flex-wrap:wrap}html[lang=en] .settings-row select{max-width:100%}html[lang=en] .help-row{grid-template-columns:75px minmax(0,1fr)}html[lang=en] .in-dungeon .dungeon-heading{gap:6px;flex-wrap:wrap}html[lang=en] .in-dungeon .floor-label{flex:1 1 100%}html[lang=en] .in-dungeon .floor-label>span{font-size:12px;max-width:none}html[lang=en] .in-dungeon .dungeon-record{font-size:11px}html[lang=en] .in-dungeon .dungeon-heading>button{font-size:12px}html[lang=en] .in-dungeon .action-row button{font-size:12px}html[lang=en] .in-dungeon .combat-stat{font-size:10px;grid-column:span 2}html[lang=en] .in-dungeon .combat-stat small{font-size:9px}html[lang=en] .in-dungeon .status-list{font-size:11px;grid-column:1/-1}}@media(max-height:500px)and (min-width:601px){html[lang=en] .in-dungeon .hud{gap:12px}html[lang=en] .in-dungeon .dungeon-heading{gap:10px}html[lang=en] .in-dungeon .floor-label>span{font-size:13px}html[lang=en] .in-dungeon .log-panel{max-height:110px;overflow:auto}}
