@layer base{.tc-page{color:#efece1;background:radial-gradient(circle at 50% 0,#28233e 0,#11111c 45%,#08080e 100%);min-height:100vh;padding:28px 16px 48px;font-family:Courier New,Courier,monospace}.tc-wrap{max-width:1040px;margin:0 auto}.tc-topline{letter-spacing:.07em;justify-content:space-between;align-items:center;gap:12px;margin-bottom:10px;font-size:12px;display:flex}.tc-topline a{color:#b3d7ff;text-decoration:none}.tc-topline a:hover{text-decoration:underline}.tc-topline span{color:#a4a0b7;text-align:right}.tc-window{color:#15151c;background:#a9aab0;border:4px ridge #bcbcc7;box-shadow:0 22px 65px #000a,0 0 0 2px #252633}.tc-titlebar{color:#fff;background:linear-gradient(90deg,#122a74,#4a75a6);border-bottom:3px solid #222b3a;justify-content:space-between;align-items:center;gap:12px;min-height:40px;padding:7px 12px;display:flex}.tc-titlebar h1{text-transform:uppercase;letter-spacing:.08em;margin:0;font-size:18px;font-weight:800;line-height:1.2}.tc-titlebar span{font-size:12px;font-weight:700}.tc-main{grid-template-columns:minmax(0,1fr) 148px minmax(0,1.25fr);gap:5px;min-height:380px;padding:6px;display:grid}.tc-scene,.tc-effects,.tc-actions{background:#d4d3d4;border:2px inset #ecebee;min-width:0}.tc-panel-label{color:#f1ead9;letter-spacing:.08em;background:#242638;padding:5px 8px;font-size:11px;font-weight:700}.tc-scene-image{aspect-ratio:1;background:#080913;border-bottom:3px solid #444354;width:100%;position:relative;overflow:hidden}.tc-scene-image img{object-fit:cover}.tc-scene-image img.tc-art-pixel{image-rendering:pixelated}.tc-scene-image svg{width:100%;height:100%;image-rendering:pixelated}.tc-door-badge{color:#ffe5a1;letter-spacing:.06em;background:#11172de8;border:1px solid #eed293;padding:4px 6px;font-size:10px;font-weight:700;position:absolute;bottom:8px;left:8px}.tc-approach-badge{color:#c8e5ff;letter-spacing:.06em;background:#11172de8;border:1px solid #9cd1f5;padding:4px 6px;font-size:10px;font-weight:700;position:absolute;bottom:8px;right:8px}.tc-view-directions{color:#a8a9ae;background:#222638;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:4px 8px;padding:6px 8px;font-size:9px;font-weight:700;display:flex}.tc-view-directions strong{color:#ffe5a1}.tc-view-directions .tc-route-open{color:#c5e4bc}.tc-art-controls{flex-wrap:wrap;align-items:center;gap:4px;padding:7px;display:flex}.tc-art-controls span{color:#373744;margin-right:auto;font-size:11px;font-weight:700}.tc-art-controls button,.tc-choice-list button,.tc-party-row{cursor:pointer;font-family:inherit}.tc-art-controls button{color:#1a1a20;background:#c4c3c9;border:2px outset #eee;padding:3px 7px;font-size:11px}.tc-art-controls button[aria-pressed=true]{color:#fff;background:#1e3c78;border-style:inset}.tc-navigation{border-top:1px solid #999aa0;justify-content:space-between;gap:8px;padding:9px;display:flex}.tc-navigation>div{min-width:0}.tc-navigation strong{letter-spacing:.06em;margin-bottom:5px;font-size:10px;display:block}.tc-navigation small{color:#55545d;max-width:100px;margin-top:4px;font-size:9px;line-height:1.25;display:block}.tc-local-map{background:#51515a;border:2px inset #f5f4f1;grid-template-rows:repeat(7,18px);grid-template-columns:repeat(7,18px);gap:1px;width:max-content;display:grid}.tc-local-map>span{color:#20232c;background:#a9a9ad;place-items:center;font-size:11px;font-weight:700;display:grid}.tc-local-map .tc-local-fog{background:#41414b}.tc-local-map .tc-local-wall{background:#f4f2ed}.tc-local-map .tc-local-guild{background:#e6d388}.tc-local-map .tc-local-store{background:#9ac4be}.tc-local-map .tc-local-tavern{background:#c5a7cc}.tc-local-map .tc-local-random{background:#a6c8e8}.tc-local-map .tc-local-current{color:#fff;background:#23478c;box-shadow:inset 0 0 0 1px #f8df90}.tc-map-panel{background:#b9bac0;border-top:4px ridge #eeeeef}.tc-map-wrap{padding:14px 8px 18px;overflow-x:auto}.tc-map-grid{background:#4d4f5a;border:2px inset #eeedf0;grid-template-rows:repeat(22,24px);grid-template-columns:repeat(14,24px);gap:1px;width:max-content;margin:auto;display:grid}.tc-map-axis{color:#222735;background:#e3e1dc;place-items:center;font-size:11px;font-weight:700;display:grid}.tc-map-cell{color:#20232c;background:#a9a9ad;place-items:center;font-size:12px;font-weight:700;line-height:1;display:grid}.tc-map-fog{background:#41414b}.tc-map-wall{background:#f4f2ed}.tc-map-guild{background:#e6d388}.tc-map-store{background:#9ac4be}.tc-map-tavern{background:#c5a7cc}.tc-map-random{background:#a6c8e8}.tc-map-current{color:#fff;background:#23478c;box-shadow:inset 0 0 0 2px #f8df90}.tc-map-visited:not(.tc-map-current){box-shadow:inset 0 0 0 1px #343c51}.tc-map-legend{color:#34343d;text-align:center;margin:10px 0 0;font-size:11px}.tc-compass{grid-template-rows:repeat(3,30px);grid-template-columns:repeat(3,30px);gap:2px;display:grid}.tc-compass button{color:#17234b;cursor:pointer;background:#e4e4e6;border:2px outset #f7f6f5;font-family:inherit;font-size:12px;font-weight:700}.tc-compass button:hover{background:#fff3d0}.tc-compass button:disabled{color:#777780;cursor:default;background:#b2b1b5;border-style:inset}.tc-dir-forward{grid-area:1/2}.tc-dir-left{grid-area:2/1}.tc-dir-centre{color:#17234b;grid-area:2/2;place-items:center;font-size:13px;font-weight:700;display:grid}.tc-dir-right{grid-area:2/3}.tc-dir-back{grid-area:3/2}.tc-effects{text-align:center}.tc-moves,.tc-gold{border-bottom:1px solid #999aa0;flex-direction:column;gap:2px;padding:18px 4px 12px;display:flex}.tc-moves strong{color:#243d82;font-size:clamp(34px,4vw,52px);line-height:1}.tc-gold strong{color:#65400b;font-size:30px;line-height:1}.tc-doors{border-bottom:1px solid #999aa0;flex-direction:column;gap:2px;padding:12px 4px;display:flex}.tc-doors strong{color:#243d82;font-size:22px;line-height:1}.tc-moves span,.tc-gold span,.tc-doors span{letter-spacing:.06em;font-size:10px;font-weight:700}.tc-effect-list{text-align:left;padding:12px 7px}.tc-effect-list h2{margin:0 0 10px;font-size:11px;line-height:1.3}.tc-effect-list p{background:#ece9df;border:1px solid #89858b;margin:0 0 7px;padding:5px;font-size:11px;font-weight:700}.tc-effect-list p span{color:#4c4191}.tc-effect-list small{margin:2px 0 0 16px;font-size:10px;font-weight:400;display:block}.tc-effect-list .tc-quiet{color:#55545d;background:0 0;border:none;font-weight:400}.tc-enemies{border-top:1px solid #999aa0;margin-top:12px;padding-top:10px}.tc-enemy{color:#1b1b23;text-align:left;cursor:pointer;background:#eee9df;border:1px solid #777987;flex-wrap:wrap;justify-content:space-between;gap:3px;width:100%;margin:0 0 5px;padding:5px;font:10px Courier New,Courier,monospace;display:flex}.tc-enemy strong{white-space:nowrap}.tc-enemy-target{background:#fbe4c5;outline:2px solid #9d311e}.tc-enemy:disabled{opacity:.55;cursor:default}.tc-enemy-meter{background:#6c6670;width:100%;height:5px;display:block}.tc-enemy-meter>span{background:#ae3826;height:100%;display:block}.tc-actions{flex-direction:column;display:flex}.tc-log{min-height:160px;padding:14px 14px 6px;line-height:1.35}.tc-current-message{margin:0 0 12px;font-size:clamp(15px,1.8vw,19px);font-weight:700}.tc-old-message{color:#54535c;margin:0 0 7px;font-size:11px}.tc-end-score{background:#efe1a7;margin:0 12px 8px;padding:7px;font-size:12px;font-weight:700}.tc-choice-list{background:#b8b9bf;border-top:2px solid #8e8f98;flex-direction:column;gap:5px;margin-top:auto;padding:8px;display:flex}.tc-choice-list button{text-align:left;color:#12151e;background:#ebebeb;border:2px outset #f7f6f5;align-items:flex-start;gap:8px;padding:8px 9px;display:flex}.tc-choice-list button:hover{background:#fff5d8}.tc-choice-list button:disabled{cursor:default;color:#67666d;background:#d0d0d2;border-style:inset}.tc-no-choice{color:#41414d;margin:5px;padding:7px;font-size:12px}.tc-choice-number{color:#fff;background:#1c3470;flex:0 0 22px;place-items:center;min-height:22px;font-size:12px;font-weight:700;display:inline-grid}.tc-choice-list strong{font-size:13px;display:block}.tc-choice-list small{color:#50505a;margin-top:2px;font-size:10px;display:block}.tc-party{background:#aaa9af;border-top:4px ridge #eeeeef;padding:7px}.tc-party-heading{justify-content:space-between;align-items:baseline;gap:10px;margin-bottom:5px;display:flex}.tc-party-heading h2{letter-spacing:.08em;margin:0;font-size:13px}.tc-party-heading span{font-size:10px}.tc-party-header,.tc-party-row{grid-template-columns:minmax(100px,1.4fr) minmax(76px,1fr) minmax(78px,.8fr) minmax(68px,.7fr);align-items:center;gap:6px;display:grid}.tc-party-header{color:#fff;letter-spacing:.06em;background:#333541;padding:2px 8px;font-size:10px;font-weight:700}.tc-party-row{color:#161720;text-align:left;background:#e1e0e0;border:1px solid #898991;width:100%;padding:5px 8px;font-size:13px}.tc-rank{color:#25233b;text-align:center;vertical-align:middle;background:#d2d0db;border:1px solid #666777;min-width:31px;padding:2px 3px;font-size:8px;line-height:1;display:inline-block}.tc-rank-front{color:#32240d;background:#f1d58d;border-color:#8a5c19}.tc-selected .tc-rank{border-color:#c6d6ee}.tc-party-row+.tc-party-row{border-top:none}.tc-party-row:hover{background:#f5f0d9}.tc-party-row.tc-selected{color:#fff;background:#283d79;font-weight:700}.tc-party-row.tc-selected:hover{background:#344e9a}.tc-party-row:disabled{color:#34343b;cursor:default;background:#929199}.tc-party-edit{cursor:default}.tc-party-edit input{color:#161720;width:100%;min-width:0;font:inherit;background:#fff;border:1px solid #777987;padding:3px 5px}.tc-inventory{flex-wrap:wrap;align-items:center;gap:6px;padding:9px 4px 2px;font-size:11px;display:flex}.tc-inventory button{color:#1b1b23;cursor:pointer;font:inherit;background:#eee9d7;border:2px outset #eee;padding:4px 7px}.tc-inventory button:disabled{opacity:.55;cursor:default}.tc-help{color:#b9b6c8;margin:10px 0 0;font-size:12px;line-height:1.5}.tc-page button:focus-visible,.tc-page a:focus-visible{outline-offset:2px;outline:3px solid #e5b647}@media (max-width:760px){.tc-page{padding:10px 8px 26px}.tc-main{grid-template-columns:minmax(0,1fr) 132px}.tc-actions{grid-column:1/-1;min-height:220px}.tc-log{min-height:100px}.tc-titlebar h1{font-size:15px}.tc-titlebar span,.tc-topline span{font-size:10px}}@media (max-width:430px){.tc-main{grid-template-columns:minmax(0,1fr) 112px}.tc-moves strong{font-size:34px}.tc-party-row{font-size:11px}.tc-party-header,.tc-party-row{grid-template-columns:minmax(70px,1.2fr) minmax(50px,1fr) minmax(56px,.7fr) minmax(45px,.6fr);gap:3px}.tc-party-heading{display:block}.tc-party-heading span{margin:3px 0;display:block}.tc-navigation{flex-wrap:wrap}}}
