:root{color:#f5f7fb;background:#111827;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;font-synthesis:none;text-rendering:optimizeLegibility}*{box-sizing:border-box}body{margin:0;min-width:320px;min-height:100vh;background:linear-gradient(#111827c7,#111827e6),url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cg fill='none' stroke='%23334855' stroke-width='1'%3E%3Cpath d='M0 45h180M0 90h180M0 135h180M45 0v180M90 0v180M135 0v180'/%3E%3C/g%3E%3Cg fill='%2322c55e' opacity='.25'%3E%3Crect x='48' y='48' width='38' height='38'/%3E%3Crect x='94' y='94' width='38' height='38'/%3E%3C/g%3E%3C/svg%3E")}#root{min-height:100vh}button,input{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.55}.runtime-shell{display:grid;min-height:100vh;place-items:center;padding:32px}.guest-entry,.runtime-card{width:min(100%,520px);border:1px solid rgba(148,163,184,.28);border-radius:8px;background:#0f172aeb;box-shadow:0 28px 80px #0000006b;padding:32px}.brand-mark{display:grid;width:56px;height:56px;margin-bottom:24px;place-items:center;border-radius:8px;background:#2563eb;color:#fff;font-weight:800}.eyebrow{margin:0 0 8px;color:#93c5fd;font-size:.82rem;font-weight:700;letter-spacing:0;text-transform:uppercase}h1{margin:0;font-size:clamp(2rem,7vw,3.6rem);line-height:1;letter-spacing:0}.intro{margin:18px 0 0;color:#cbd5e1;font-size:1rem;line-height:1.55}.guest-form{margin-top:28px}.guest-form label{display:block;margin-bottom:8px;color:#e2e8f0;font-weight:700}.entry-row{display:grid;grid-template-columns:1fr auto;gap:10px}.entry-row input{min-width:0;border:1px solid rgba(148,163,184,.34);border-radius:8px;background:#020617;color:#fff;padding:13px 14px}.entry-row input:focus{border-color:#60a5fa;outline:3px solid rgba(59,130,246,.24)}.entry-row button,.secondary-button{border:0;border-radius:8px;background:#3b82f6;color:#fff;font-weight:800;padding:13px 18px}.secondary-button{margin-top:24px;background:#334155}.primary-link{display:inline-flex;align-items:center;justify-content:center;min-height:46px;border-radius:8px;background:#3b82f6;color:#fff;font-weight:800;padding:0 18px;text-decoration:none}.form-error{margin:12px 0 0;color:#fecaca}.guest-character-step{display:grid;gap:18px;margin-top:28px}.guest-step-header{display:flex;align-items:center;justify-content:space-between;gap:12px;color:#cbd5e1;font-weight:800}.guest-step-header button,.guest-character-actions button,.preset-picker-empty button{border:1px solid rgba(148,163,184,.28);border-radius:8px;background:#1e293b;color:#fff;font-weight:800;padding:10px 14px}.guest-character-actions{display:flex;flex-wrap:wrap;gap:10px}.guest-character-actions button:first-child{border-color:transparent;background:#3b82f6}.preset-picker-note{margin:0;color:#cbd5e1}.preset-picker-empty{display:grid;gap:10px;border:1px solid rgba(148,163,184,.2);border-radius:8px;background:#1e293ba3;color:#cbd5e1;padding:18px}.preset-picker-empty strong{color:#fff}.preset-picker-empty button{justify-self:start;margin-top:4px}.preset-picker-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(112px,1fr));gap:10px}.character-builder{display:grid;gap:16px}.character-preview{width:96px;height:96px;display:block;justify-self:center;border:1px solid rgba(147,197,253,.24);border-radius:8px;background-color:#0f172a;background-repeat:no-repeat;box-shadow:inset 0 0 0 1px #0f172aa6;image-rendering:pixelated}.character-preview--empty{display:grid;place-items:center;color:#94a3b8;font-weight:800}.character-builder-summary{display:grid;grid-template-columns:42px 1fr;align-items:center;gap:12px;min-width:0;color:#cbd5e1}.character-builder-summary .character-portrait{width:42px;height:42px}.character-builder-summary div{display:grid;gap:2px;min-width:0}.character-builder-summary strong{overflow:hidden;color:#fff;text-overflow:ellipsis;white-space:nowrap}.character-builder-summary span{color:#94a3b8}.character-builder-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));overflow:hidden;border:1px solid rgba(148,163,184,.24);border-radius:8px}.character-builder-tabs button{border:0;border-radius:0;background:transparent;color:#cbd5e1;font-weight:800;padding:10px 12px}.character-builder-tabs button.is-active{background:#3b82f6;color:#fff}.character-builder-placeholder{display:grid;gap:8px;border:1px solid rgba(148,163,184,.2);border-radius:8px;background:#1e293b75;color:#cbd5e1;padding:18px}.character-builder-placeholder strong{color:#fff}.character-parts-panel{display:grid;gap:14px}.character-parts-readiness{display:grid;gap:4px;border:1px solid rgba(96,165,250,.24);border-radius:8px;background:#0f172a94;color:#cbd5e1;padding:12px}.character-parts-readiness.is-empty{border-color:#facc1552;background:#713f1238}.character-parts-readiness strong{color:#fff}.character-parts-readiness span{color:#94a3b8;line-height:1.35}.character-category-tabs{display:flex;flex-wrap:wrap;gap:8px}.character-category-tabs button{border:1px solid rgba(148,163,184,.24);border-radius:8px;background:#1e293bb8;color:#cbd5e1;font-weight:800;padding:8px 10px}.character-category-tabs button.is-active{border-color:transparent;background:#3b82f6;color:#fff}.character-parts-section{display:grid;gap:12px}.character-parts-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;color:#cbd5e1}.character-parts-heading strong{color:#fff}.character-parts-heading span,.character-parts-empty{color:#94a3b8}.character-parts-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(92px,1fr));gap:10px}.character-parts-grid button{display:grid;gap:8px;min-height:98px;border:1px solid rgba(148,163,184,.24);border-radius:8px;background:#1e293b;color:#e2e8f0;font-weight:800;justify-items:center;padding:10px}.character-parts-grid button.is-selected{border-color:#60a5fa;outline:3px solid rgba(59,130,246,.24)}.character-part-empty{display:grid;width:48px;height:48px;place-items:center;border:1px dashed rgba(148,163,184,.42);border-radius:8px;color:#94a3b8}.character-part-thumb{display:block;border:1px solid rgba(147,197,253,.2);border-radius:8px;background-color:#0f172a;background-repeat:no-repeat;image-rendering:pixelated}.character-parts-empty{margin:0}.character-color-panel{display:grid;gap:10px;border-top:1px solid rgba(148,163,184,.18);padding-top:12px}.character-color-panel strong{color:#fff}.character-color-swatches{display:flex;flex-wrap:wrap;gap:8px}.character-color-swatches button{width:30px;height:30px;border:2px solid rgba(226,232,240,.35);border-radius:8px}.character-color-swatches button.is-selected{border-color:#60a5fa;outline:3px solid rgba(59,130,246,.24)}.character-color-panel input[type=color]{width:54px;height:36px;border:1px solid rgba(148,163,184,.28);border-radius:8px;background:#0f172a;padding:4px}.character-color-hue{display:grid;grid-template-columns:auto minmax(120px,1fr) auto;align-items:center;gap:10px;color:#cbd5e1;font-size:.88rem;font-weight:800}.character-color-hue input[type=range]{width:100%;accent-color:#60a5fa}.character-color-hue output{min-width:52px;color:#94a3b8;font-variant-numeric:tabular-nums;text-align:right}.character-builder-actions{display:flex;flex-wrap:wrap;gap:10px}.character-builder-quick-actions{display:flex;flex-wrap:wrap;gap:8px}.character-builder-actions button{border:1px solid rgba(148,163,184,.28);border-radius:8px;background:#1e293b;color:#fff;font-weight:800;padding:10px 14px}.character-builder-quick-actions button{border:1px solid rgba(148,163,184,.28);border-radius:8px;background:transparent;color:#dbeafe;font-weight:800;padding:8px 12px}.character-builder-actions button:first-child{border-color:transparent;background:#3b82f6}.preset-card{display:grid;gap:10px;min-height:144px;border:1px solid rgba(148,163,184,.24);border-radius:8px;background:#1e293b;color:#e2e8f0;font-weight:800;padding:12px}.preset-card--selected{border-color:#60a5fa;outline:3px solid rgba(59,130,246,.25)}.preset-card__preview{display:grid;min-height:82px;place-items:center;border-radius:6px;background:#0f172a}.preset-card__preview img{width:64px;height:64px;image-rendering:pixelated;object-fit:none;object-position:50% 66%}.loading-dot{width:14px;height:14px;margin-bottom:16px;border-radius:999px;background:#60a5fa;box-shadow:0 0 0 8px #60a5fa29}.welcome-card{text-align:left}.landing-shell{display:grid;min-height:100vh;grid-template-rows:1fr auto;background:linear-gradient(#1118274d,#111827db),url(/assets/tilesets/Outside_A2.png) center / 768px 576px}.landing-hero{align-self:center;width:min(100% - 40px,820px);margin:0 auto;padding:48px 0}.landing-hero h1{max-width:760px;font-size:clamp(2.4rem,7vw,5.8rem)}.landing-hero .intro{max-width:680px;color:#e2e8f0;font-size:1.08rem}.landing-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:28px}.landing-beta-panel{display:grid;gap:6px;width:min(100%,520px);margin-top:24px;border:1px solid rgba(191,219,254,.24);border-radius:8px;background:#0f172ab8;color:#dbeafe;padding:14px 16px}.landing-beta-panel span{color:#cbd5e1;line-height:1.45}.landing-footer{display:flex;flex-wrap:wrap;justify-content:space-between;gap:12px;border-top:1px solid rgba(226,232,240,.18);background:#0f172ac2;color:#cbd5e1;padding:18px 22px}.landing-footer a{color:#bfdbfe}.runtime-map-shell{display:grid;grid-template-rows:auto auto auto 1fr;min-height:100vh;background:#141922}.runtime-build-banner{background:#b91c1c;color:#fff;font-size:.78rem;font-weight:900;letter-spacing:0;line-height:1.25;overflow:hidden;padding:5px 12px;text-align:center;text-overflow:ellipsis;white-space:nowrap}.runtime-map-header{display:flex;align-items:center;justify-content:space-between;gap:20px;border-bottom:1px solid rgba(148,163,184,.22);background:#0f172aeb;padding:16px 22px}.runtime-map-header h1{font-size:1.35rem}.runtime-map-header p{margin:0;color:#cbd5e1}.runtime-presence-summary{display:grid;gap:4px;justify-items:end}.runtime-view-controls{display:flex;flex-wrap:wrap;gap:8px;align-items:center;justify-content:center;border-bottom:1px solid rgba(148,163,184,.16);background:#0f172ad6;padding:8px 12px}.runtime-view-controls button,.runtime-mobile-menu button{border:1px solid rgba(147,197,253,.28);border-radius:8px;background:#1e293beb;color:#dbeafe;font-size:.86rem;font-weight:800;padding:8px 12px}.runtime-view-controls button.is-active,.runtime-mobile-menu button.is-active{border-color:transparent;background:#3b82f6;color:#fff}.runtime-mobile-menu{position:fixed;top:38px;right:10px;z-index:5;display:none}.runtime-mobile-menu-toggle{box-shadow:0 10px 24px #00000059}.runtime-mobile-menu-panel{display:grid;gap:8px;width:min(260px,calc(100vw - 20px));margin-top:8px;border:1px solid rgba(147,197,253,.26);border-radius:8px;background:#0f172af5;box-shadow:0 18px 54px #0000006b;color:#dbeafe;padding:10px}.runtime-mobile-menu-panel strong{color:#fff}.runtime-mobile-menu-panel span{color:#cbd5e1;font-size:.84rem}.runtime-mobile-view-switch{display:grid;grid-template-columns:1fr 1fr;gap:6px}.runtime-audio-controls{display:flex;align-items:center;gap:10px;justify-content:flex-end;margin-top:6px}.runtime-audio-controls button{border:1px solid rgba(147,197,253,.35);border-radius:8px;background:#2563eb;color:#fff;font-weight:800;padding:8px 12px}.runtime-audio-controls span{color:#cbd5e1;font-size:.88rem}.runtime-switch-guest{border:1px solid rgba(148,163,184,.28);border-radius:8px;background:#334155d6;color:#e2e8f0;font-size:.86rem;font-weight:800;justify-self:end;margin-top:4px;padding:7px 10px}.runtime-character-button{border:1px solid rgba(147,197,253,.35);border-radius:8px;background:#1e40af80;color:#dbeafe;font-size:.86rem;font-weight:800;justify-self:end;margin-top:4px;padding:7px 10px}.runtime-debug-button{border:1px solid rgba(248,113,113,.4);border-radius:8px;background:#7f1d1d80;color:#fecaca;font-size:.86rem;font-weight:800;justify-self:end;margin-top:4px;padding:7px 10px}.runtime-share-row{display:flex;align-items:center;gap:8px;justify-content:flex-end;margin-top:4px}.runtime-share-button{border:1px solid rgba(147,197,253,.35);border-radius:8px;background:#2563eb38;color:#dbeafe;font-size:.86rem;font-weight:800;padding:7px 10px}.runtime-share-row span{color:#bfdbfe;font-size:.82rem;font-weight:700}.runtime-status-pill{display:inline-flex;align-items:center;justify-content:center;border:1px solid rgba(148,163,184,.28);border-radius:999px;color:#e2e8f0;font-size:.78rem;font-weight:800;justify-self:end;padding:3px 9px}.runtime-status-pill.is-connected{border-color:#4ade8061;background:#16a34a2e;color:#bbf7d0}.runtime-status-pill.is-connecting,.runtime-status-pill.is-reconnecting{border-color:#facc1561;background:#ca8a042e;color:#fef3c7}.runtime-status-pill.is-replaced{border-color:#f8717170;background:#b91c1c33;color:#fecaca}.runtime-audio-sink{position:absolute;width:1px;height:1px;overflow:hidden;opacity:0;pointer-events:none}.runtime-roster{position:fixed;right:16px;bottom:16px;z-index:2;display:grid;gap:6px;min-width:190px;max-width:260px;border:1px solid rgba(148,163,184,.24);border-radius:8px;background:#0f172ae6;color:#dbeafe;padding:10px 12px;text-align:left}.runtime-roster strong{color:#f8fafc}.runtime-roster span{color:#cbd5e1}.runtime-roster .is-you{color:#93c5fd}.runtime-roster-row{display:grid;grid-template-columns:34px 1fr;align-items:center;gap:8px}.runtime-roster-row>span:last-child{display:grid;gap:1px;min-width:0}.runtime-roster-row strong{overflow:hidden;color:inherit;font-size:.9rem;text-overflow:ellipsis;white-space:nowrap}.runtime-roster-row small{color:#94a3b8;font-size:.76rem}.character-portrait{display:grid;width:34px;height:34px;place-items:center;overflow:hidden;border:1px solid rgba(147,197,253,.24);border-radius:8px;background:#0f172a;background-repeat:no-repeat;image-rendering:pixelated}.character-portrait--fallback{color:#dbeafe;font-weight:900}.runtime-character-nudge{position:fixed;left:16px;bottom:16px;z-index:2;display:grid;gap:8px;width:min(280px,calc(100% - 32px));border:1px solid rgba(147,197,253,.3);border-radius:8px;background:#0f172af0;box-shadow:0 18px 50px #00000052;color:#dbeafe;padding:12px}.runtime-character-nudge strong{color:#fff}.runtime-character-nudge span{color:#cbd5e1;line-height:1.35}.runtime-character-nudge div{display:flex;gap:8px}.runtime-character-nudge button{border:1px solid rgba(148,163,184,.28);border-radius:8px;background:#1e293b;color:#fff;font-weight:800;padding:8px 10px}.runtime-character-nudge button:first-child{border-color:transparent;background:#3b82f6}.runtime-debug-panel{position:fixed;left:16px;top:88px;z-index:4;display:grid;gap:8px;width:min(360px,calc(100% - 32px));border:1px solid rgba(248,113,113,.36);border-radius:8px;background:#0f172af0;box-shadow:0 18px 50px #00000057;color:#e2e8f0;padding:12px}.runtime-debug-panel strong{color:#fecaca}.runtime-debug-panel>span{overflow:hidden;color:#fca5a5;font-size:.76rem;font-weight:800;text-overflow:ellipsis;white-space:nowrap}.runtime-debug-panel dl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px 10px;margin:0}.runtime-debug-panel div{min-width:0}.runtime-debug-panel dt{color:#94a3b8;font-size:.72rem;font-weight:800;text-transform:uppercase}.runtime-debug-panel dd{margin:0;overflow:hidden;color:#fff;font-size:.84rem;font-weight:800;text-overflow:ellipsis;white-space:nowrap}.runtime-map-viewport{min-height:0;position:relative;cursor:crosshair;touch-action:none}.runtime-testplay-shell{grid-template-rows:auto auto 1fr;height:100vh;min-height:100vh;overflow:hidden}.runtime-testplay-shell .runtime-map-viewport{min-height:0;overflow:hidden}.runtime-testplay-compact{grid-template-rows:1fr}.runtime-testplay-compact .runtime-touch-hint{display:none}.runtime-modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:5;display:grid;place-items:center;background:#020617b8;padding:20px}.runtime-character-modal{display:grid;gap:18px;width:min(100%,640px);max-height:min(760px,calc(100vh - 40px));overflow:auto;border:1px solid rgba(148,163,184,.32);border-radius:8px;background:#0f172a;box-shadow:0 28px 80px #00000080;padding:22px}.runtime-modal-header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.runtime-modal-header h2{margin:0;color:#f8fafc;font-size:1.5rem;letter-spacing:0}.runtime-modal-header button,.runtime-modal-actions button{border:1px solid rgba(148,163,184,.28);border-radius:8px;background:#1e293b;color:#fff;font-weight:800;padding:10px 14px}.runtime-modal-actions{display:flex;flex-wrap:wrap;gap:10px}.runtime-modal-actions button:first-child{border-color:transparent;background:#3b82f6}.runtime-modal-status{margin:0;color:#bfdbfe;font-weight:700}.runtime-blocking-message{position:absolute;left:50%;top:50%;z-index:3;display:grid;gap:6px;width:min(340px,calc(100% - 32px));transform:translate(-50%,-50%);border:1px solid rgba(248,113,113,.34);border-radius:8px;background:#0f172aeb;color:#e2e8f0;padding:16px;text-align:center}.runtime-blocking-message strong{color:#fecaca}.runtime-blocking-message span{color:#cbd5e1}.runtime-dialogue-box{position:fixed;left:50%;bottom:28px;z-index:4;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:18px;align-items:end;width:min(860px,calc(100vw - 36px));border:2px solid rgba(147,197,253,.68);border-radius:8px;background:#0f172af5;box-shadow:0 18px 54px #00000085;color:#f8fafc;padding:18px;transform:translate(-50%)}.runtime-dialogue-box strong{display:block;margin-bottom:6px;color:#bfdbfe;font-size:.82rem;letter-spacing:0;text-transform:uppercase}.runtime-dialogue-main{display:grid;grid-template-columns:auto minmax(0,1fr);gap:16px;align-items:start}.runtime-dialogue-copy{min-width:0}.runtime-dialogue-face{display:grid;justify-items:center;gap:6px;width:92px;border:1px solid rgba(147,197,253,.3);border-radius:8px;background:linear-gradient(45deg,rgba(148,163,184,.14) 25%,transparent 25%),linear-gradient(-45deg,rgba(148,163,184,.14) 25%,transparent 25%),linear-gradient(45deg,transparent 75%,rgba(148,163,184,.14) 75%),linear-gradient(-45deg,transparent 75%,rgba(148,163,184,.14) 75%);background-color:#0f172ab8;background-position:0 0,0 8px,8px -8px,-8px 0;background-size:16px 16px;padding:9px}.runtime-dialogue-face .character-portrait{width:72px;height:72px;image-rendering:pixelated}.runtime-dialogue-face-placeholder{display:grid;place-items:center;width:72px;height:72px;border-radius:8px;background:#1e293bf5;color:#bfdbfe;font-size:1.35rem;font-weight:900}.runtime-dialogue-face-label{overflow:hidden;width:100%;color:#cbd5e1;font-size:.68rem;font-weight:800;text-align:center;text-overflow:ellipsis;white-space:nowrap}.runtime-dialogue-box p{margin:0;color:#fff;font-size:1.05rem;line-height:1.45;max-height:min(34vh,260px);overflow:auto}.runtime-dialogue-box>button,.runtime-dialogue-choices button{border:1px solid rgba(147,197,253,.44);border-radius:8px;background:#2563eb;color:#fff;font-weight:800;padding:10px 16px}.runtime-dialogue-choices{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}.runtime-dialogue-choices button.is-default{box-shadow:0 0 0 2px #bfdbfe61}.runtime-dialogue-choices button.is-cancel{background:#1e293bf5}.runtime-dialogue-box button{min-height:42px}.runtime-map-viewport canvas{display:block;width:100%;height:100%;image-rendering:pixelated}.runtime-touch-hint{position:absolute;left:50%;bottom:18px;z-index:1;display:none;transform:translate(-50%);border:1px solid rgba(147,197,253,.26);border-radius:8px;background:#0f172ad1;color:#dbeafe;font-size:.88rem;font-weight:700;padding:8px 12px;pointer-events:none}@media (max-width: 560px){.runtime-shell{padding:18px}.runtime-dialogue-box{bottom:14px;grid-template-columns:1fr;gap:12px;width:calc(100vw - 24px);max-height:calc(100vh - 28px);padding:14px}.runtime-dialogue-box strong{font-size:.76rem}.runtime-dialogue-main{grid-template-columns:1fr}.runtime-dialogue-face{grid-template-columns:auto minmax(0,1fr);justify-items:start;width:100%}.runtime-dialogue-face .character-portrait,.runtime-dialogue-face-placeholder{width:52px;height:52px}.runtime-dialogue-face-label{align-self:center;text-align:left}.runtime-dialogue-box p{max-height:28vh;font-size:1rem}.runtime-dialogue-box>button{width:100%}.runtime-dialogue-choices{display:grid;grid-template-columns:1fr}.runtime-dialogue-choices button{justify-content:center;width:100%}.guest-entry,.runtime-card{padding:22px}.entry-row{grid-template-columns:1fr}.runtime-map-shell{grid-template-rows:auto 1fr;height:100vh;min-height:100vh;overflow:hidden}.runtime-build-banner{font-size:.68rem;padding:4px 8px}.runtime-map-header,.runtime-view-controls{display:none}.runtime-presence-summary{justify-items:start}.runtime-audio-controls{align-items:flex-start;flex-direction:column;justify-content:flex-start}.runtime-switch-guest{justify-self:start}.runtime-share-row{justify-content:flex-start}.runtime-status-pill{justify-self:start}.runtime-mobile-menu{display:block}.runtime-roster{left:10px;right:auto;bottom:10px;min-width:0;width:min(210px,calc(100vw - 20px));max-height:30vh;overflow:auto;padding:8px 10px}.runtime-roster>strong{font-size:.82rem}.runtime-roster-row{grid-template-columns:28px 1fr}.runtime-roster-row .character-portrait{width:28px;height:28px}.runtime-touch-hint{display:block;bottom:12px;left:auto;right:12px;transform:none}}@media (max-width: 920px) and (orientation: landscape){.runtime-map-shell{grid-template-rows:auto 1fr;height:100vh;min-height:100vh;overflow:hidden}.runtime-map-header,.runtime-view-controls{display:none}.runtime-build-banner{font-size:.66rem;padding:3px 8px}.runtime-mobile-menu{display:block;top:30px}.runtime-roster{right:10px;bottom:10px;max-height:36vh;overflow:auto}.runtime-touch-hint{display:block;bottom:10px}}@media (max-width: 640px){.runtime-modal-backdrop{align-items:end;padding:0}.runtime-character-modal{width:100%;max-height:min(92vh,760px);border-right:0;border-bottom:0;border-left:0;border-radius:8px 8px 0 0;padding:18px}.runtime-modal-header{align-items:center}.runtime-modal-header h2{font-size:1.22rem}.runtime-modal-header button{min-height:42px}.character-builder{gap:14px}.character-builder-summary{grid-template-columns:48px 1fr}.character-builder-summary .character-portrait{width:48px;height:48px}.character-builder-tabs button{min-height:44px}.preset-picker-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.preset-card{min-height:132px;padding:10px}.character-builder-quick-actions,.character-builder-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.character-builder-actions{position:sticky;bottom:-18px;margin-right:-18px;margin-left:-18px;border-top:1px solid rgba(148,163,184,.18);background:#0f172afa;padding:12px 18px 18px}.character-builder-actions button,.character-builder-quick-actions button{min-height:44px}}
