/*! tailwindcss v4.2.2 | MIT License | https://tailwindcss.com */
@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial}}}@layer theme{:root,:host{--font-sans:ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--font-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--spacing:.25rem;--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab, red, red)){::placeholder{color:color-mix(in oklab, currentcolor 50%, transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.visible{visibility:visible}.sr-only{clip-path:inset(50%);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.static{position:static}.end{inset-inline-end:var(--spacing)}.transform{transform:var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,)}.filter{filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}}:root{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;--bg:#07111f;--bg-elevated:#0f172ad1;--border:#94a3b82e;--text:#e5eefc;--muted:#90a4c3;--accent:#7c9bff;--accent-2:#2dd4bf;--danger:#fb7185;--tg-safe-area-top:0px;--tg-safe-area-bottom:0px;--tg-safe-area-left:0px;--tg-safe-area-right:0px;--tg-content-safe-area-top:0px;--tg-content-safe-area-bottom:0px;--tg-content-safe-area-left:0px;--tg-content-safe-area-right:0px;--tg-top-inset:0px;--tg-bottom-inset:0px;--tg-left-inset:0px;--tg-right-inset:0px;--tg-theme-bg:#07111f;--tg-theme-text:#e5eefc;color:var(--text);background:radial-gradient(circle at top,#6366f13d,#0000 36%),linear-gradient(#091120 0%,#040814 100%);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}*{box-sizing:border-box}html,body,#root{min-height:100%;margin:0}body{min-height:var(--tg-viewport-height,100vh);color:var(--tg-theme-text);-webkit-font-smoothing:antialiased;text-rendering:optimizelegibility;-webkit-tap-highlight-color:#7c9bff1f;background:radial-gradient(circle at top,#6366f13d,#0000 36%),linear-gradient(#091120 0%,#040814 100%);overflow-x:hidden}button,input,textarea{font:inherit;touch-action:manipulation}.shell{min-height:var(--tg-viewport-height,100vh);padding:calc(16px + var(--tg-top-inset)) calc(16px + var(--tg-right-inset)) calc(24px + var(--tg-bottom-inset)) calc(16px + var(--tg-left-inset));max-width:720px;margin:0 auto}.shell-telegram{padding-top:calc(16px + var(--tg-top-inset))}.shell-preview{padding-top:calc(16px + env(safe-area-inset-top,0px))}.topbar{justify-content:space-between;align-items:center;gap:12px;margin-bottom:16px;display:flex}.content-area{padding-bottom:max(8px, var(--tg-bottom-inset));flex-direction:column;gap:16px;display:flex}.room-shell{padding-bottom:calc(132px + var(--tg-bottom-inset))}.room-tab-content,.stack-lg{flex-direction:column;gap:16px;display:flex}.grid-two{gap:16px;display:flex}.grid-two>*{flex:1 1 0}.badge-group{flex-wrap:wrap;gap:8px;display:flex}.world-option-list{flex-direction:column;gap:10px;display:flex}.world-option{width:100%;color:var(--text);cursor:pointer;text-align:left;background:#080f1e61;border:1px solid #94a3b81f;border-radius:16px;flex-direction:column;align-items:flex-start;gap:6px;padding:14px;transition:border-color .15s,background .15s,transform .15s;display:flex}.world-option span{color:var(--muted);font-size:13px;line-height:1.5}.world-option:hover:not(:disabled){border-color:#7c9bff4d;transform:translateY(-1px)}.world-option-active{background:linear-gradient(135deg,#7c9bff29,#2dd4bf14);border-color:#7c9bff61}.badge{color:var(--muted);background:#0f172ab8;border:1px solid #7c9bff33;border-radius:999px;align-items:center;gap:4px;padding:6px 12px;font-size:12px;display:inline-flex}.badge-active{border-color:var(--accent);color:var(--accent)}.eyebrow{letter-spacing:.16em;text-transform:uppercase;color:var(--accent-2);margin:0;font-size:11px}h1,h2,h3,p{margin:0}h1,h2{letter-spacing:-.03em;text-wrap:balance}h1{font-size:clamp(28px,5vw,40px)}h2{font-size:clamp(22px,3vw,30px)}h3{font-size:16px}.body-muted{color:var(--muted);font-size:14px;line-height:1.6}.sr-only{clip:rect(0, 0, 0, 0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.field-block{flex-direction:column;gap:8px;min-width:0;display:flex}.field-block-compact{flex:auto}.field-label{color:#e5eefceb;font-size:13px;font-weight:600}.panel{border:1px solid var(--border);background:var(--bg-elevated);-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px);border-radius:20px;box-shadow:0 16px 60px #0f172a4d}.inset-panel{border-radius:18px;flex-direction:column;gap:12px;padding:18px;display:flex}.hero-card{background:linear-gradient(135deg,#7c9bff26,#2dd4bf0f),#080f1ebf;border:1px solid #7c9bff38;border-radius:20px;flex-direction:column;gap:10px;padding:20px;display:flex}.landing-hero{gap:18px;position:relative;overflow:hidden}.landing-hero:before{content:"";opacity:.75;pointer-events:none;background:radial-gradient(circle,#ffffff1f,#0000 64%);border-radius:50%;width:180px;height:180px;position:absolute;inset:-12% auto auto 52%}.landing-hero-copy,.landing-world-stage{z-index:1;position:relative}.landing-hero-copy{flex-direction:column;gap:10px;max-width:28rem;display:flex}.landing-world-stage{flex-direction:column;gap:12px;display:flex}.landing-world-stage-card{background:radial-gradient(circle at 100% 0,#ffffff1f,#0000 30%),#080f1e6b;border:1px solid #ffffff14;border-radius:18px;padding:16px;box-shadow:inset 0 1px #ffffff0a}.landing-world-stage-card h3{margin-top:4px;font-size:20px}.landing-world-stage-card-ashes-and-catacombs{background:radial-gradient(circle at 100% 0,#facc1529,#0000 28%),linear-gradient(160deg,#221812d9,#090f1ce6)}.landing-world-stage-card-neon-afterglow{background:radial-gradient(circle at 100% 0,#2dd4bf3d,#0000 30%),linear-gradient(160deg,#071423e0,#0b101feb)}.landing-world-stage-card-red-dust-caravan{background:radial-gradient(circle at 100% 0,#fb923c38,#0000 28%),linear-gradient(160deg,#2c1710db,#0c121ee6)}.landing-hero-ashes-and-catacombs{background:radial-gradient(circle at 82% 16%,#facc1529,#0000 22%),linear-gradient(135deg,#7c9bff1f,#2dd4bf0a),#080f1ec7}.landing-hero-neon-afterglow{background:radial-gradient(circle at 82% 16%,#2dd4bf2e,#0000 22%),linear-gradient(135deg,#7c9bff24,#2dd4bf14),#080f1ecc}.landing-hero-red-dust-caravan{background:radial-gradient(circle at 82% 16%,#fb923c2e,#0000 22%),linear-gradient(135deg,#7c9bff1a,#2dd4bf0a),#080f1ecc}.landing-hero-preview{background:radial-gradient(circle at 82% 16%,#7c9bff2e,#0000 24%),linear-gradient(135deg,#7c9bff26,#2dd4bf0f),#080f1ebf}.landing-bullet-list{flex-wrap:wrap;gap:8px;display:flex}.landing-bullet{color:#e5eefcd6;background:#080f1e57;border:1px solid #ffffff14;border-radius:999px;align-items:center;padding:8px 12px;font-size:12px;display:inline-flex}.landing-action-stack{flex-direction:column;gap:16px;display:flex}.room-hero{gap:14px}.room-hero-top,.section-header,.scene-header,.story-card-top,.waiting-row,.readiness-row{justify-content:space-between;align-items:flex-start;gap:12px;display:flex}.hero-grid,.stats-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;display:grid}.info-tile,.stat-tile{background:#080f1e75;border:1px solid #94a3b814;border-radius:16px;padding:12px}.info-tile span,.stat-tile span{color:var(--muted);margin-bottom:6px;font-size:12px;display:block}.info-tile strong,.stat-tile strong{display:block}.status-pill{border-radius:999px;align-items:center;padding:8px 12px;font-size:12px;font-weight:600;display:inline-flex}.status-pill-lobby{color:#facc15;background:#fbbf241f}.status-pill-active{color:var(--accent-2);background:#2dd4bf1f}.status-pill-finished{color:var(--muted);background:#94a3b824}.scene-threat{color:var(--accent);white-space:normal;text-align:left;background:#7c9bff1f;border-radius:999px;max-width:100%;padding:8px 12px;font-size:12px}.scene-header>div{min-width:0}.scene-header h3,.scene-lead,.scene-objective{white-space:pre-wrap;overflow-wrap:anywhere;word-break:break-word}.scene-art{background:radial-gradient(circle at 25% 30%,#2dd4bf47,#0000 22%),radial-gradient(circle at 72% 20%,#7c9bff4d,#0000 24%),linear-gradient(#0f172a1f,#080f1ed1);border:1px solid #7c9bff29;border-radius:18px;min-height:132px;position:relative;overflow:hidden}.scene-art-orb,.scene-art-ridge{display:block;position:absolute}.scene-art-orb{filter:blur(2px);opacity:.8;border-radius:50%;width:82px;height:82px}.scene-art-orb-left{background:radial-gradient(circle,#2dd4bfd9,#2dd4bf0f);animation:5.4s ease-in-out infinite art-float;top:18px;left:18px}.scene-art-orb-right{background:radial-gradient(circle,#7c9bffd9,#7c9bff14);animation:6.2s ease-in-out infinite reverse art-float;top:12px;right:24px}.scene-art-ridge{clip-path:polygon(0 100%,16% 64%,34% 78%,50% 46%,63% 70%,76% 56%,100% 100%);background:linear-gradient(#0e182c33,#050a14f2);height:86px;bottom:-26px;left:-8%;right:-8%}.scene-art-ridge-back{opacity:.34;bottom:18px;transform:scaleX(1.04)}.scene-lead{color:var(--text);font-size:15px;line-height:1.7}.scene-copy{flex-direction:column;gap:8px;display:flex}.scene-lead-clamped{-webkit-line-clamp:8;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.scene-objective{font-size:16px;line-height:1.55}.scene-progress{flex-direction:column;gap:10px;display:flex}.scene-progress-bar{background:#94a3b81a;border-radius:999px;width:100%;height:10px;position:relative;overflow:hidden}.scene-progress-fill{border-radius:inherit;background:linear-gradient(90deg, var(--accent), var(--accent-2));height:100%;display:block}.meta-block{flex-direction:column;gap:8px;display:flex}.meta-block>div{border-top:1px solid #94a3b81a;justify-content:space-between;gap:16px;padding:8px 0;display:flex}.meta-block>div:first-child{border-top:0}.meta-block span{color:var(--muted);font-size:13px}.meta-block strong{font-size:13px}.error-banner{color:#ffd5db;background:#7f1d1d47;border:1px solid #fb718547;border-radius:14px;padding:12px 14px;font-size:14px}.loading-bar{text-align:center;color:var(--muted);padding:20px}.loading-scene,.dice-resolve-card{text-align:center;align-items:center;overflow:hidden}.dice-stage{perspective:960px;width:96px;height:96px;margin-bottom:4px}.dice-cube{width:68px;height:68px;transform-style:preserve-3d;margin:10px auto 0;animation:2.2s linear infinite dice-spin;position:relative}.dice-face{color:var(--text);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);background:linear-gradient(135deg,#7c9bff42,#2dd4bf2e);border:1px solid #7c9bff5c;border-radius:16px;justify-content:center;align-items:center;font-weight:700;display:flex;position:absolute;inset:0;box-shadow:inset 0 1px #ffffff14,0 16px 32px #080f1e57}.dice-face-front{transform:translateZ(34px)}.dice-face-back{transform:rotateY(180deg)translateZ(34px)}.dice-face-right{transform:rotateY(90deg)translateZ(34px)}.dice-face-left{transform:rotateY(-90deg)translateZ(34px)}.dice-face-top{transform:rotateX(90deg)translateZ(34px)}.dice-face-bottom{transform:rotateX(-90deg)translateZ(34px)}.loading-scene-compact{padding-top:24px;padding-bottom:24px}.loading-stage-list{flex-direction:column;gap:8px;width:100%;max-width:440px;display:flex}.loading-stage-list-compact{max-width:360px}.loading-stage-item{color:var(--muted);text-align:left;background:#080f1e57;border:1px solid #94a3b814;border-radius:14px;align-items:center;gap:10px;padding:10px 12px;transition:border-color .18s,background .18s,color .18s;display:flex}.loading-stage-item-active{color:var(--text);background:#121e349e;border-color:#7c9bff3d}.loading-stage-dot{background:#94a3b852;border-radius:50%;width:9px;height:9px;transition:background .18s,box-shadow .18s;box-shadow:0 0 0 4px #94a3b80f}.loading-stage-item-active .loading-stage-dot{background:linear-gradient(135deg, var(--accent), var(--accent-2));box-shadow:0 0 0 4px #7c9bff24}.loading-linger-note{color:var(--muted);margin-top:2px;font-size:13px;line-height:1.55}.loading-orb{width:76px;height:28px;position:relative}.loading-orb span{background:linear-gradient(135deg, var(--accent), var(--accent-2));border-radius:50%;width:18px;height:18px;animation:1.2s ease-in-out infinite room-pulse;position:absolute;top:0;box-shadow:0 0 18px #7c9bff47}.loading-orb span:first-child{left:0}.loading-orb span:nth-child(2){animation-delay:.14s;left:29px}.loading-orb span:nth-child(3){animation-delay:.28s;left:58px}@keyframes room-pulse{0%,80%,to{opacity:.45;transform:translateY(0)scale(.88)}40%{opacity:1;transform:translateY(-6px)scale(1)}}@keyframes art-float{0%,to{transform:translateY(0)scale(1)}50%{transform:translateY(-8px)scale(1.04)}}@keyframes dice-spin{0%{transform:rotateX(0)rotateY(0)rotate(0)}to{transform:rotateX(360deg)rotateY(720deg)rotate(360deg)}}.invite-code{letter-spacing:.1em;color:var(--accent);font-family:monospace;font-size:16px}.member-chips{flex-wrap:wrap;gap:8px;margin-top:8px;display:flex}.btn-row,.button-row{flex-wrap:wrap;gap:10px;display:flex}.btn{border:1px solid var(--border);cursor:pointer;border-radius:12px;padding:10px 18px;font-size:14px;font-weight:500;transition:background .15s,border-color .15s}.btn:focus-visible,.input:focus-visible,.world-option:focus-visible,.room-nav-btn:focus-visible,.inventory-chip:focus-visible,.inline-toggle-btn:focus-visible,.compact-section summary:focus-visible,.story-roll-summary:focus-visible,.nudge-btn:focus-visible{outline-offset:2px;outline:2px solid #7c9bffb3}.btn:disabled{opacity:.5;cursor:not-allowed}.btn-primary{color:var(--accent);background:#7c9bff2e;border-color:#7c9bff59}.btn-primary:hover:not(:disabled){background:#7c9bff47}.btn-secondary{color:var(--muted);background:#94a3b81a;border-color:#94a3b833}.btn-secondary:hover:not(:disabled){background:#94a3b82e}.btn-danger{color:#ffd5db;background:#fb718529;border-color:#fb718557}.btn-danger:hover:not(:disabled){background:#fb71853d}.btn-sm{border-radius:10px;padding:8px 14px;font-size:13px}.input{border:1px solid var(--border);width:100%;color:var(--text);background:#080f1e99;border-radius:12px;outline:none;padding:10px 14px;font-size:14px;transition:border-color .15s}.input:focus{border-color:var(--accent)}.input:disabled{opacity:.5}.textarea{resize:vertical;min-height:72px;line-height:1.5}.character-sheet{margin-top:8px}.character-layout{flex-direction:column;gap:16px;display:flex}.compact-character-layout{gap:12px}.character-hero-card{background:radial-gradient(circle at 100% 0,#7c9bff47,#0000 34%),linear-gradient(160deg,#0f172af0,#080f1ee0);border:1px solid #7c9bff33;border-radius:24px;flex-direction:column;gap:14px;padding:18px;display:flex;box-shadow:inset 0 1px #ffffff0a}.character-hero-shell{grid-template-columns:88px minmax(0,1fr);align-items:start;gap:16px;display:grid}.character-crest{color:#f8fbff;letter-spacing:.08em;background:radial-gradient(circle at 30% 30%,#ffffff2e,#0000 34%),linear-gradient(145deg,#7c9bff80,#2dd4bf33);border:1px solid #ffffff24;border-radius:24px;place-items:center;width:88px;height:88px;font-size:28px;font-weight:800;display:grid;box-shadow:0 18px 28px #0000003d}.character-hero-copy{flex-direction:column;gap:12px;display:flex}.character-summary-head{justify-content:space-between;align-items:flex-start;gap:12px;display:flex}.character-hero-name{margin-top:4px;font-size:clamp(24px,5vw,30px);line-height:1}.character-hero-title{color:#e5eefcb8;margin-top:6px;font-size:13px;line-height:1.5}.character-flavor{color:#e5eefce0;font-size:14px;line-height:1.6}.character-ribbon-row{flex-wrap:wrap;gap:8px;display:flex}.character-ribbon{color:var(--text);background:#ffffff0f;border:1px solid #ffffff14;border-radius:999px;align-items:center;padding:8px 12px;font-size:12px;display:inline-flex}.character-ribbon-accent{background:#2dd4bf1a;border-color:#2dd4bf2e}.character-resource-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;display:grid}.resource-card{background:#080f1e7a;border:1px solid #94a3b81a;border-radius:18px;flex-direction:column;gap:10px;padding:14px;display:flex}.resource-card-top{justify-content:space-between;align-items:baseline;gap:8px;display:flex}.resource-card-top span{color:var(--muted);text-transform:uppercase;letter-spacing:.08em;font-size:12px}.resource-card-top strong{font-size:22px}.resource-track{background:#ffffff0f;border-radius:999px;height:8px;overflow:hidden}.resource-fill{border-radius:inherit;background:linear-gradient(90deg,#7c9bffb3,#2dd4bfeb);height:100%}.resource-card-health .resource-fill{background:linear-gradient(90deg,#22c55e,#86efac)}.resource-card-focus .resource-fill{background:linear-gradient(90deg,#60a5fa,#7dd3fc)}.resource-card-armor .resource-fill{background:linear-gradient(90deg,#cbd5e1,#f8fafc)}.resource-card-stress .resource-fill{background:linear-gradient(90deg,#fb7185,#fbbf24)}.character-main-grid{grid-template-columns:minmax(0,1.35fr) minmax(0,.95fr);gap:12px;display:grid}.character-stat-panel,.character-side-panel{background:#080f1e70;border:1px solid #94a3b814;border-radius:20px;flex-direction:column;gap:12px;padding:16px;display:flex}.rpg-attribute-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;display:grid}.rpg-attribute-card{appearance:none;text-align:center;width:100%;color:var(--text);cursor:pointer;background:linear-gradient(#0e1931eb,#080f1ecc);border:1px solid #7c9bff14;border-radius:18px;padding:14px 12px}.rpg-attribute-card span{color:var(--muted);margin-bottom:8px;font-size:11px;display:block}.rpg-attribute-card strong{font-size:30px;line-height:1;display:block}.rpg-attribute-card small{color:var(--accent-2);margin-top:8px;font-size:12px;font-weight:700;display:block}.rpg-attribute-card-top{border-color:#2dd4bf38;box-shadow:inset 0 0 0 1px #2dd4bf14}.rpg-attribute-card-active{border-color:#7c9bff57;box-shadow:inset 0 0 0 1px #7c9bff2e,0 0 0 1px #7c9bff14}.identity-card-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;display:grid}.character-tag-panel{flex-direction:column;gap:10px;display:flex}.badge-skill{color:#e5eefce6;background:#2dd4bf14;border-color:#2dd4bf29}.compact-section{background:#080f1e5c;border:1px solid #94a3b814;border-radius:18px;overflow:hidden}.compact-section summary{cursor:pointer;padding:14px 16px;font-weight:600;list-style:none}.compact-section summary::-webkit-details-marker{display:none}.compact-section summary:after{content:"+";float:right;color:var(--accent)}.compact-section[open] summary:after{content:"−"}.compact-section-body{flex-direction:column;gap:14px;padding:0 16px 16px;display:flex}.compact-stats-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.compact-list{gap:4px}.compact-callout{padding:12px}.clarification-callout{overflow:visible}.clarification-callout-title{white-space:pre-wrap;overflow-wrap:anywhere;word-break:break-word;line-height:1.45;display:block}.compact-section h3{margin-bottom:8px}.character-questionnaire{flex-direction:column;gap:12px;display:flex}.character-question-card{background:#080f1e6b;border:1px solid #94a3b814;border-radius:16px;flex-direction:column;gap:8px;padding:14px;display:flex}.character-question-card span{color:var(--text);font-weight:600}.plain-list{color:var(--text);flex-direction:column;gap:6px;margin:0;padding-left:18px;display:flex}.soft-callout{background:#2dd4bf14;border:1px solid #2dd4bf29;border-radius:16px;padding:14px}.code-block{white-space:pre-wrap;word-break:break-word;max-height:300px;color:var(--muted);background:#080f1ecc;border:1px solid #94a3b81a;border-radius:12px;padding:12px;font-size:12px;overflow:auto}.code-block-sm{max-height:150px;padding:8px;font-size:11px}.turn-state{font-weight:600}.turn-state-draft{color:var(--muted)}.turn-state-waiting{color:#fbbf24}.turn-state-confirmed{color:var(--accent-2)}.turn-state-resolved{color:var(--accent)}.clarify-block{background:#fbbf2414;border:1px solid #fbbf2433;border-radius:14px;flex-direction:column;gap:10px;padding:14px;display:flex}.badge-turn-draft_open,.badge-turn-one_confirmed{color:#facc15;border-color:#fbbf2447}.badge-turn-resolve_pending,.badge-turn-resolving{color:var(--accent);border-color:#7c9bff52}.badge-turn-resolved{color:var(--accent-2);border-color:#2dd4bf47}.waiting-list{flex-direction:column;gap:10px;display:flex}.waiting-row{background:#080f1e66;border-radius:14px;padding:12px 14px}.nudge-btn{cursor:pointer;background:0 0;border:none;border-radius:6px;padding:2px 4px;font-size:14px;transition:background .15s}.nudge-btn:hover{background:#7c9bff26}.tab-bar{background:#080f1e80;border-radius:14px;gap:4px;padding:4px;display:flex}.tab-btn{color:var(--muted);cursor:pointer;background:0 0;border:none;border-radius:10px;flex:1;padding:8px 12px;font-size:13px;transition:background .15s,color .15s}.tab-btn:hover{color:var(--text)}.tab-active{color:var(--accent);background:#7c9bff26}.tab-content{max-height:400px;margin-top:12px;overflow-y:auto}.feed-list{flex-direction:column;gap:10px;display:flex}.story-feed{flex-direction:column;gap:12px;display:flex}.story-card{background:#080f1e73;border:1px solid #94a3b814;border-radius:18px;flex-direction:column;gap:10px;padding:14px;display:flex}.story-card p{color:var(--text);line-height:1.6}.story-card-copy{color:var(--text);line-height:1.7}.story-card-copy-clamped{-webkit-line-clamp:12;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.story-card-system{background:#080f1e61}.story-card-warn{background:#fbbf240f;border-color:#fbbf242e}.story-meta{flex-wrap:wrap;gap:8px;display:flex}.expandable-copy{flex-direction:column;gap:8px;display:flex}.inline-toggle-btn{appearance:none;color:var(--accent-2);cursor:pointer;background:0 0;border:0;align-self:flex-start;padding:0;font-size:13px;font-weight:600}.story-rolls{flex-direction:column;gap:10px;display:flex}.story-roll-card{background:#080f1e6b;border:1px solid #94a3b81f;border-radius:16px;overflow:hidden}.story-roll-card-self{border-color:#2dd4bf38}.story-roll-card-ally{border-color:#7c9bff38}.story-roll-summary{cursor:pointer;justify-content:space-between;align-items:flex-start;gap:12px;padding:12px 14px;list-style:none;display:flex}.story-roll-summary::-webkit-details-marker{display:none}.story-roll-summary strong,.story-roll-summary span{display:block}.story-roll-summary span{color:var(--muted);margin-top:4px;font-size:13px}.story-roll-outcome{color:var(--accent);background:#7c9bff14;border:1px solid #7c9bff2e;border-radius:999px;flex-shrink:0;padding:4px 10px}.story-roll-body{flex-direction:column;gap:8px;padding:0 14px 14px;display:flex}.feed-event{background:#080f1e66;border-radius:12px;flex-wrap:wrap;align-items:center;gap:8px;padding:10px;display:flex}.feed-time{color:var(--muted);margin-left:auto;font-size:11px}.chat-container{flex-direction:column;gap:10px;display:flex}.chat-messages{overscroll-behavior:contain;scrollbar-gutter:stable;flex-direction:column;gap:8px;max-height:min(42svh,420px);padding-right:2px;display:flex;overflow-y:auto}.chat-msg{background:#080f1e66;border-radius:10px;flex-direction:column;gap:2px;padding:8px 10px;font-size:13px;display:flex}.chat-msg strong{color:var(--accent);font-size:12px}.chat-input-row{align-items:flex-end;gap:8px;display:flex}.chat-input-row .input{flex:1}.room-bottom-nav{left:50%;bottom:calc(12px + var(--tg-bottom-inset));width:min(calc(100vw - 24px - var(--tg-left-inset) - var(--tg-right-inset)), 688px);-webkit-backdrop-filter:blur(22px);backdrop-filter:blur(22px);z-index:40;touch-action:manipulation;background:#040814e0;border:1px solid #7c9bff29;border-radius:22px;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;padding:10px;display:grid;position:fixed;transform:translate(-50%);box-shadow:0 18px 40px #02061759}.room-nav-btn{color:var(--muted);cursor:pointer;text-align:left;-webkit-tap-highlight-color:transparent;background:0 0;border:none;border-radius:16px;flex-direction:column;gap:4px;min-width:0;padding:12px 10px;display:flex}.room-nav-label{align-items:center;gap:8px;font-weight:600;display:inline-flex}.room-nav-badge{color:#fff7ed;background:linear-gradient(135deg,#fb7185,#f97316);border-radius:999px;justify-content:center;align-items:center;min-width:20px;height:20px;padding:0 6px;font-size:11px;line-height:1;display:inline-flex;box-shadow:0 8px 18px #f9731647}.room-nav-btn small{color:inherit;opacity:.8}.room-nav-btn-active{color:var(--text);background:linear-gradient(135deg,#7c9bff33,#2dd4bf1f)}.confirm-shell{z-index:80;justify-content:center;align-items:flex-end;display:flex;position:fixed;inset:0}.confirm-backdrop{background:#020617ad;border:0;position:absolute;inset:0}.confirm-sheet{z-index:1;width:min(100%,720px);margin:0 12px calc(12px + var(--tg-bottom-inset));overscroll-behavior:contain;background:radial-gradient(circle at 100% 0,#7c9bff29,#0000 30%),#080f1ef5;border-radius:24px;position:relative}.inventory-detail-list{flex-wrap:wrap;gap:10px;display:flex}.inventory-chip{min-width:0;color:var(--text);cursor:pointer;background:#0c14249e;border:1px solid #94a3b829;border-radius:16px;flex-direction:column;align-items:flex-start;gap:4px;padding:12px 14px;transition:transform .15s,border-color .15s,background .15s;display:flex}.inventory-chip strong{font-size:14px}.inventory-chip span{color:var(--muted);font-size:12px}.inventory-chip:hover,.inventory-chip:focus-visible{background:#121e34e0;border-color:#7c9bff52;transform:translateY(-1px)}.inventory-chip-active{background:linear-gradient(#10233afa,#081120fa);border-color:#5eead46b}.inventory-detail-card{margin-top:12px}@media (width<=600px){.shell{padding:12px}.grid-two{flex-direction:column}.topbar{flex-direction:column;align-items:flex-start}.hero-grid,.stats-grid,.character-hero-shell,.character-main-grid,.identity-card-grid,.character-resource-grid,.rpg-attribute-grid,.compact-stats-grid{grid-template-columns:1fr}.room-hero-top,.section-header,.scene-header,.story-card-top,.waiting-row,.readiness-row,.character-summary-head{flex-direction:column;align-items:flex-start}.character-crest{border-radius:20px;width:72px;height:72px;font-size:22px}.character-hero-card,.resource-card,.character-stat-panel,.character-side-panel{padding:14px}.room-bottom-nav{gap:8px;padding:8px}.landing-world-stage-card h3{font-size:18px}}@media (prefers-reduced-motion:reduce){html:focus-within{scroll-behavior:auto}*,:before,:after{scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}
