:root{font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;color:#d2dde8;background:#080f19;font-synthesis:none}*{box-sizing:border-box}html,body{width:100%;height:100%;margin:0;overflow:hidden}body{padding:0}lott-root{display:block;width:100%;height:100%;height:100dvh;overflow:hidden}button,.import-button{font:inherit;cursor:pointer;background:#263d56;color:#f0dbb3;border:1px solid #5d7588;border-radius:6px;padding:8px 10px}button:hover:not(:disabled),.import-button:hover{border-color:#d4b477}button:disabled{opacity:.45;cursor:not-allowed}.game-shell{--gap:clamp(5px,1dvh,12px);width:100%;max-width:680px;height:100%;height:100dvh;min-height:0;margin:0 auto;background:#0c1421;border-inline:1px solid #26384d;padding:calc(env(safe-area-inset-top,0px) + 8px) max(10px,env(safe-area-inset-right,0px)) calc(env(safe-area-inset-bottom,0px) + 8px) max(10px,env(safe-area-inset-left,0px));display:flex;flex-direction:column;gap:var(--gap);overflow:hidden}header{text-align:center;flex:0 0 auto;padding:0}h1{color:#e4c184;font-size:clamp(1.15rem,3.5dvh,2rem);letter-spacing:.06em;margin:2px 0}h2{color:#e4c184;margin:3px 0 8px;font-size:clamp(1rem,2.7dvh,1.3rem)}h3{font-size:.72rem;letter-spacing:.1em;color:#d8b977;margin:5px 0 8px}.eyebrow{font-size:.62rem;letter-spacing:.13em;color:#7fb9b4}.subtitle{font-size:.65rem;letter-spacing:.1em;color:#8b9eaf;margin:2px 0}.mode{font-size:.62rem;color:#76bca8;margin:2px 0}.character,.scene,.log{background:#192a3d;border:1px solid #2a415a;border-radius:8px;padding:clamp(8px,1.5dvh,14px);margin:0;min-width:0}.character{flex:0 0 auto}.character-top{display:flex;justify-content:space-between;gap:6px;flex-wrap:wrap}.character-top strong{color:#e1bc79}.character-top span{color:#b0c0cf;font-size:.68rem}.resources{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:8px}.resources>div{background:#101d2b;border:1px solid #2c4156;border-radius:6px;padding:7px}.resources span{font-size:.65rem;color:#a7bacd}.resources strong{float:right;font-size:.7rem}.bar{clear:both;background:#344358;height:5px;border-radius:7px;overflow:hidden;margin-top:7px}.bar i{display:block;background:#76bca8;height:100%;border-radius:7px}.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px;margin-top:7px}.stats div{background:#101d2b;text-align:center;border:1px solid #2c4156;border-radius:6px;padding:5px 2px;font-size:.6rem;color:#a3b8c9}.stats strong{display:block;color:#e4c184;margin-top:2px;font-size:.85rem}nav{display:flex;gap:4px;flex:0 0 auto;margin:0}nav button{flex:1;min-width:0;background:transparent;border:0;border-bottom:2px solid transparent;color:#94a9bd;padding:8px 2px;cursor:pointer;font-size:.82rem}nav button.selected{border-color:#d4b477;color:#e4c184}.scene p,.log p{color:#b6c5d4;line-height:1.35;margin:7px 0}.log{flex:1 1 80px;min-height:48px;overflow-y:auto;overscroll-behavior:contain}.log h3{position:sticky;top:-1px;background:#192a3d;padding:2px 0;z-index:1}.log p{border-bottom:1px solid #304459;padding-bottom:6px;font-size:.78rem}.actions{display:flex;gap:6px;flex-wrap:wrap;margin:8px 0}.enemy{display:flex;flex-direction:column;gap:4px;text-align:center;border:1px solid #9a614e;background:#281e29;padding:8px;margin:8px 0;border-radius:8px}.enemy-art{font-size:clamp(2rem,5dvh,3.5rem);color:#d87964}.save-actions{flex:0 0 auto;display:flex;gap:6px;flex-wrap:wrap;justify-content:center}.save-actions button,.import-button{font-size:.7rem;padding:6px 8px}.error{color:#ffaaa2;text-align:center;flex:0 0 auto;margin:0;font-size:.75rem}.scene input{display:block;width:100%;padding:10px;margin:8px 0;background:#101d2b;color:#fff;border:1px solid #5d7588;border-radius:6px}@media(max-height:650px){.game-shell{--gap:4px;padding-top:max(4px,env(safe-area-inset-top));padding-bottom:max(4px,env(safe-area-inset-bottom))}.character,.scene,.log{padding:7px}.resources,.stats{margin-top:5px}header .eyebrow,header .subtitle{display:none}.scene p{font-size:.83rem}.log{min-height:36px}}@media(max-width:440px){.game-shell{padding-left:max(7px,env(safe-area-inset-left));padding-right:max(7px,env(safe-area-inset-right))}.resources{gap:5px}.stats{gap:3px}.character-top{font-size:.82rem}}.log{display:flex;flex-direction:column;overflow:hidden}.log-entries{min-height:0;flex:1 1 auto;overflow-y:auto;overscroll-behavior:contain}.primary-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:6px 0 8px}.primary-actions button{min-height:42px;border-color:#b3925c;color:#f5d9a2;font-weight:700}.secondary-action{font-size:.75rem;padding:6px 9px}.stats-toggle{font-size:.7rem;padding:3px 7px;margin-left:6px;color:#e4c184;background:#101d2b;border:1px solid #3e5870}.exploration-stats{margin-top:8px;padding:8px;background:#101d2b;border:1px solid #304459;border-radius:6px;font-size:.73rem;color:#b6c5d4}.exploration-stats>strong{color:#e4c184;font-size:.7rem;letter-spacing:.06em}.exploration-stats p{margin:5px 0}.visited-rooms{display:flex;flex-wrap:wrap;gap:4px;margin-top:6px}.visited-rooms span{border:1px solid #3e5870;border-radius:4px;padding:3px 6px}.scene{flex:0 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain}.log{flex:1 1 70px;min-height:42px;display:flex;flex-direction:column;overflow:hidden}.log h3{position:static;flex:0 0 auto;margin:0 0 6px;padding:0}.log-entries{flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain}.log-entries p:first-child{margin-top:0}@media(max-height:650px){.primary-actions button{min-height:36px}.exploration-stats{max-height:110px;overflow-y:auto}}:root{--gold:#e7be79;--coral:#e7787c;--teal:#61d1bf;--panel:#17283b}.game-shell{max-width:680px;gap:clamp(4px,.8dvh,9px);padding-top:max(6px,env(safe-area-inset-top));padding-bottom:max(6px,env(safe-area-inset-bottom))}header{background:#17283b;border-radius:12px;padding:7px 6px}header h1{font-size:clamp(1.2rem,3dvh,1.65rem)}.character{background:transparent;border:0;padding:2px 1px}.character-top strong{font-size:1.08rem;color:var(--gold)}.resources>div,.stats div{background:var(--panel);border-color:#20364a}.resources>div{padding:8px 10px}.resources span{font-size:.72rem}.resources strong{font-size:.75rem}.resources .bar{height:9px;margin-top:10px}.health-resource>span{color:#ef9295}.health-resource .bar i,.combat-panel .bar i{background:var(--coral)}.shinsu-resource>span{color:var(--teal)}.shinsu-resource .bar i{background:var(--teal)}.xp-resource{margin-top:7px;display:block}.xp-resource>span{color:#a8bacb;font-size:.68rem}.xp-resource>strong{float:right;color:var(--gold);font-size:.68rem}.xp-resource .bar{clear:both;height:6px;background:#344358;margin-top:5px}.xp-resource .bar i{background:var(--gold)}.stats{margin-top:8px}.stats div{padding:7px 2px;font-size:.65rem}.stats strong{font-size:1.1rem}nav button.selected{background:#292a2d;border:0;border-radius:24px}.scene,.log{background:var(--panel);border:0;border-radius:12px}.scene{flex:0 1 auto}.scene h2{font-size:1.2rem}.primary-actions{display:flex;flex-direction:column;gap:7px}.primary-actions button{width:100%;border-radius:30px;background:#454445;color:#f5f5f5;border:0;min-height:42px;font-weight:600}.primary-actions button:first-child{background:#f4f3f2;color:#151515}.combat-panel{background:#281f29;border:1px solid #a8666c;text-align:left;gap:7px;padding:12px}.combat-eyebrow{font-size:.69rem;color:#f09b9f}.enemy-name{font-size:1.13rem;color:#f7f2f0}.enemy-health{display:flex;justify-content:space-between;font-size:.75rem;color:#e0dfe3;margin-top:6px}.combat-panel .bar{height:10px}.combat-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin-top:8px}.combat-actions button{border:0;border-radius:28px;min-height:40px;background:#f3f2f1;color:#171717;font-weight:600;padding:7px 4px;font-size:.77rem}.combat-actions .combat-secondary{background:#454445;color:#f3f2f1}.event-choice{text-align:left}.event-choice .actions button{flex:1}.log{flex:1 1 80px;min-height:64px}.log h3{display:flex;justify-content:space-between;align-items:center;color:var(--gold);font-size:.73rem}.log h3 span{color:#99a9b9;font-size:.61rem;font-weight:400}.log p{border:0;margin:7px 0;font-size:.78rem}.log p.latest{color:var(--teal)}.save-actions{opacity:.85}@media(max-height:740px){header .eyebrow,header .subtitle{display:none}header{padding:4px}.character-top strong{font-size:.95rem}.resources>div{padding:5px 7px}.resources .bar{margin-top:6px}.stats div{padding:4px 2px}.combat-actions button{min-height:34px}.scene{padding:8px}.log{min-height:48px}}.scene:has(.event-choice){flex:0 1 auto;min-height:0;overflow-y:auto}.scene:has(.event-choice) .event-choice{flex:none;margin:0;overflow:visible}.event-choice{display:flex;flex-direction:column;align-items:stretch;justify-content:center;gap:clamp(12px,2.2dvh,24px);padding:clamp(14px,2.5dvh,24px);text-align:left}.event-choice .combat-eyebrow{display:block;color:#f09b9f;font-size:.72rem;letter-spacing:.08em}.event-choice .event-title{display:block;color:#f4f0ee;font-size:clamp(1.25rem,2.8dvh,1.8rem);line-height:1.2}.event-choice p{font-size:clamp(.88rem,1.8dvh,1.05rem);line-height:1.55;margin:0;color:#d2cbd1}.event-choice .actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin:0}.event-choice .actions button{min-width:0;min-height:48px;border-radius:25px;background:#f3f2f1;border:0;color:#171717;font-weight:600;padding:9px 8px}.event-choice .actions button:last-child:not(:first-child){background:#454445;color:#f3f2f1}.event-choice .actions button:only-child{grid-column:1/-1}@media(max-height:700px){.event-choice{gap:10px;padding:10px}.event-choice .actions button{min-height:38px}}.scene .room-action{display:block;width:100%;box-sizing:border-box;min-height:42px;margin-top:7px;padding:9px 12px;border:0;border-radius:30px;background:#454445;color:#f5f5f5;font-weight:600;text-align:center;font-size:inherit}@media(max-height:740px){.scene .room-action{min-height:36px;padding:7px 10px}}.scene:has(.combat-panel){flex:0 0 auto;overflow:visible}.scene .combat-panel{flex:none;overflow:visible;margin:0}.scene .combat-panel .bar{display:block;flex:0 0 auto;min-height:10px}.scene .combat-panel .combat-actions{flex:0 0 auto}.scene .event-choice{justify-content:flex-start;gap:8px;padding:12px}.scene .event-choice .combat-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin-top:8px}.scene .event-choice .combat-actions button{min-width:0;min-height:40px;border:0;border-radius:28px;padding:7px 4px;background:#f3f2f1;color:#171717;font-size:.77rem;font-weight:600}.scene .event-choice .combat-actions button:last-child:nth-child(odd){grid-column:1/-1;background:#454445;color:#f3f2f1}.scene .event-choice p{font-size:.88rem;line-height:1.4}@media(max-height:740px){.scene .event-choice .combat-actions button{min-height:34px}}.floor-guardian-card{border-color:#d7b46e;background:linear-gradient(145deg,#302736,#24202e);box-shadow:inset 0 0 0 1px #d7b46e26;animation:guardian-reveal .65s ease-out both}.floor-guardian-card .combat-eyebrow{color:#e7be79;letter-spacing:.12em}.floor-guardian-card .enemy-name{color:#f1d69b}@keyframes guardian-reveal{0%{opacity:.3;transform:translateY(8px) scale(.985);box-shadow:0 0 #d7b46e00}55%{opacity:1;box-shadow:0 0 20px #d7b46e2e}to{opacity:1;transform:translateY(0) scale(1)}}.guardian-hit-number{display:inline-block;color:#ffb2a6;font-weight:800;transform-origin:center;animation:guardian-hit-pulse .65s ease-out both}@keyframes guardian-hit-pulse{0%{transform:scale(1);color:#ffb2a6}35%{transform:scale(1.45);color:#ffe3b8}to{transform:scale(1);color:#ffb2a6}}.combat-stat-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;margin:7px 0}.combat-stat-summary span{min-width:0;border:1px solid #304459;border-radius:5px;padding:5px 3px;text-align:center;font-size:.65rem}.combat-stat-summary strong{display:block;color:#e4c184;font-size:.95rem;margin-top:3px}@media(prefers-reduced-motion:reduce){.floor-guardian-card,.guardian-hit-number{animation:none}}
