:root{--bg:#0b0507;--panel:#1d0f15;--text:#fff2ea;--muted:#c9aaa8;--rose:#ff7d97;--violet:#c06b8d;--amber:#ffc38e;--line:#ffe0d21c;--shadow:0 24px 60px -30px #000000e6}*,:before,:after{box-sizing:border-box}[hidden]{display:none!important}:where(button,a,input,select,textarea):focus-visible{outline-offset:2px;outline:2px solid #ff96a08c}.choice{color:var(--text);border:1px solid var(--line);cursor:pointer;touch-action:manipulation;background:#ffffff09;transition:background .18s,border-color .18s,transform .12s}.choice[aria-pressed=true]{color:#fff;background:#ff7d9729;border-color:#ff96a075;box-shadow:inset 0 0 0 1px #ffa0aa2e}.choice[aria-pressed=true] strong{color:#fff}.choice:active{transform:scale(.99)}html{height:100%}body{min-height:100dvh;color:var(--text);background:radial-gradient(1100px 700px at 50% -18%, #451427 0%, transparent 60%), radial-gradient(900px 620px at 108% 112%, #2c0d18 0%, transparent 58%), var(--bg);-webkit-font-smoothing:antialiased;-webkit-tap-highlight-color:transparent;overscroll-behavior-y:none;-webkit-user-select:none;user-select:none;margin:0;font-family:-apple-system,BlinkMacSystemFont,PingFang SC,HarmonyOS Sans SC,Noto Sans SC,Microsoft YaHei,system-ui,sans-serif}body:before{content:"";z-index:0;pointer-events:none;will-change:transform;background:radial-gradient(circle at 18% 20%,#ff96781a,#0000 26%),radial-gradient(circle at 82% 16%,#ff6e8c17,#0000 28%),radial-gradient(circle at 70% 82%,#a03c5f24,#0000 36%),radial-gradient(circle at 28% 90%,#ffc38c0f,#0000 24%);animation:24s ease-in-out infinite alternate ambientDrift;position:fixed;inset:-12%}@keyframes ambientDrift{0%{transform:translate(-1%)scale(1)}to{transform:translate(1.5%,-1.2%)scale(1.05)}}.app{z-index:1;width:100%;max-width:520px;min-height:100dvh;padding:calc(env(safe-area-inset-top) + 14px) max(16px, env(safe-area-inset-right)) calc(env(safe-area-inset-bottom) + 14px) max(16px, env(safe-area-inset-left));flex-direction:column;gap:12px;margin:0 auto;display:flex;position:relative}.topbar{justify-content:space-between;align-items:center;gap:12px;min-height:44px;display:flex}.brand{align-items:center;gap:10px;display:flex}.brand__mark{filter:drop-shadow(0 0 16px #ff788c2e);flex:none;place-items:center;width:42px;height:42px;display:grid}.brand__mark svg{width:100%;height:100%;display:block}.brand__title{letter-spacing:.12em;text-shadow:0 0 24px #ff8c962e;margin:0;font-family:Songti SC,STSong,Noto Serif SC,Noto Serif CJK SC,Source Han Serif SC,SimSun,serif;font-size:21px;font-weight:700}.brand__sub{color:var(--muted);letter-spacing:.1em;margin:3px 0 0;font-size:12px}.icon-btn{width:44px;height:44px;color:var(--muted);border:1px solid var(--line);cursor:pointer;touch-action:manipulation;background:#ffffff0d;border-radius:14px;flex:none;place-items:center;padding:0;text-decoration:none;transition:color .18s,background .18s,transform .12s;display:grid}.icon-btn:hover{color:var(--text);background:#ffffff17}.icon-btn:active{transform:scale(.94)}.icon-btn svg{width:20px;height:20px}.icon-btn--sm{border-radius:12px;width:38px;height:38px}.icon-btn--sm svg{width:17px;height:17px}.controls{flex-direction:column;gap:8px;display:flex}.segmented{border:1px solid var(--line);background:#ffffff0b;border-radius:999px;grid-template-columns:repeat(3,1fr);gap:4px;padding:4px;display:grid}.segmented--sm{padding:3px}.segmented--sm button{letter-spacing:.12em;height:32px;font-size:12.5px}.segmented button{height:38px;font:inherit;letter-spacing:.08em;color:var(--muted);cursor:pointer;touch-action:manipulation;background:0 0;border:0;border-radius:999px;padding:0 6px;font-size:14px;font-weight:600;transition:color .18s,background .18s,box-shadow .18s}.segmented button[aria-pressed=true]{color:#fff8f4;background:linear-gradient(135deg,#ff7d97,#a63a5c);box-shadow:0 8px 22px -10px #ff6e828c,inset 0 1px #ffffff40}.segmented--sm button[aria-pressed=true]{background:#ff7d9729;box-shadow:inset 0 0 0 1px #ffa0aa4d,0 4px 14px -8px #ff6e8273}.stage{flex-direction:column;flex:1;gap:10px;min-height:0;padding-top:2px;display:flex}.dice{cursor:pointer;flex:1;grid-template-columns:1fr;gap:10px;min-height:0;display:grid}.die{--glow:#ff7d976b;min-height:104px;box-shadow:var(--shadow), inset 0 1px 0 #ffffff12;background:linear-gradient(158deg,#ffe1d214,#ffffff03 62%),#ffffff03;border:1px solid #ffd6be1f;border-radius:28px;flex-direction:column;flex:1;justify-content:center;padding:58px 18px 24px;transition:border-color .25s,background .25s,transform .18s;display:flex;position:relative;overflow:hidden}.die--target{--glow:#c06b8d6b}.die.is-revealed{animation:.62s cubic-bezier(.2,.9,.3,1) both dieReveal}@keyframes dieReveal{0%{opacity:.35;transform:translateY(8px)scale(.985)}55%{opacity:1}to{opacity:1;transform:translateY(0)scale(1)}}.die:before{content:"";opacity:.65;pointer-events:none;background-image:radial-gradient(circle,#ffe6d729 1.8px,#0000 2.4px);background-size:15px 15px;width:46px;height:46px;position:absolute;top:14px;right:14px}.die:after{content:"";aspect-ratio:1;background:radial-gradient(circle, var(--glow), transparent 68%);opacity:.42;pointer-events:none;width:68%;animation:8s ease-in-out infinite alternate glowBreathe;position:absolute;bottom:-70%;right:-18%}.die--target:after{animation-delay:-3s}@keyframes glowBreathe{0%{opacity:.3;transform:scale(1)}to{opacity:.55;transform:scale(1.08)}}.die__label{z-index:1;letter-spacing:.22em;color:var(--muted);background:#ffe1d20f;border:1px solid #ffd6be1f;border-radius:999px;align-items:center;gap:6px;padding:4px 10px;font-size:11px;font-weight:600;display:inline-flex;position:absolute;top:14px;left:18px}.die__label:before{content:"";background:var(--rose);width:5px;height:5px;box-shadow:0 0 8px var(--rose);border-radius:50%}.die--target .die__label:before{background:var(--violet);box-shadow:0 0 8px var(--violet)}.die__value{z-index:1;letter-spacing:.02em;text-shadow:0 0 34px #ff968c38;overflow-wrap:anywhere;font-family:Songti SC,STSong,Noto Serif SC,Noto Serif CJK SC,Source Han Serif SC,SimSun,serif;font-size:clamp(32px,10.5vw,46px);font-weight:600;line-height:1.1;position:relative}.die.is-long .die__value{font-size:clamp(20px,6.8vw,31px)}.die.is-wild{background:linear-gradient(158deg,#ffc46b24,#ffffff04 62%),#ffffff04;border-color:#ffc46b59}.die.is-wild .die__value{color:var(--amber)}.die.is-wild .die__label:before{background:var(--amber);box-shadow:0 0 8px var(--amber)}.dice.is-rolling .die{animation:.3s ease-in-out infinite shake}.dice.is-rolling .die__value{opacity:.72}@keyframes shake{0%,to{transform:translateY(0)rotate(0)}35%{transform:translateY(-4px)rotate(-.5deg)}70%{transform:translateY(1px)rotate(.5deg)}}.readout{align-items:center;gap:10px;min-height:44px;display:flex}.sentence{letter-spacing:.01em;color:#ffeee4d1;flex:1;margin:0;font-size:15px;line-height:1.5}.sentence b{color:var(--text);font-weight:700}.sentence.is-fresh{animation:.32s both fadeUp}.tip-btn{height:38px;font:inherit;letter-spacing:.08em;color:var(--muted);border:1px solid var(--line);cursor:pointer;touch-action:manipulation;background:#ffffff0d;border-radius:12px;flex:none;padding:0 12px;font-size:12px;font-weight:600;transition:color .18s,background .18s,transform .12s,opacity .18s}.tip-btn:hover:not(:disabled){color:var(--text);background:#ffffff17}.tip-btn:active:not(:disabled){transform:scale(.96)}.tip-btn:disabled{opacity:.35;cursor:default}@keyframes fadeUp{0%{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}.history{scrollbar-width:none;-webkit-overflow-scrolling:touch;gap:8px;min-height:32px;margin:0;padding:0 0 2px;list-style:none;display:flex;overflow-x:auto}.history:empty{display:none}.history::-webkit-scrollbar{display:none}.history__item{height:32px;color:var(--muted);white-space:nowrap;border:1px solid var(--line);background:#ffffff0b;border-radius:999px;flex:none;align-items:center;gap:6px;padding:0 12px;font-size:12px;display:inline-flex}.history__item strong{color:var(--text);font-weight:600}.actions{flex-direction:column;gap:10px;display:flex}.note{letter-spacing:.08em;color:#c9aaa8a8;text-align:center;margin:0;font-size:11px}.roll{width:100%;height:64px;font:inherit;letter-spacing:.12em;color:#fff;cursor:pointer;isolation:isolate;touch-action:manipulation;background:linear-gradient(135deg,#ff8ba0 0%,#c24163 52%,#6f1e38 100%);border:0;border-radius:22px;justify-content:center;align-items:center;gap:10px;padding:0 18px;font-size:19px;font-weight:800;transition:transform .12s,filter .2s,box-shadow .2s;display:inline-flex;position:relative;overflow:hidden;box-shadow:0 16px 38px -14px #ff6e828c,inset 0 1px #ffffff52}.roll:after{content:"";z-index:0;pointer-events:none;background:linear-gradient(105deg,#0000 42%,#ffffff2b 50%,#0000 58%);animation:7s ease-in-out infinite sheen;position:absolute;inset:-30% -70%;transform:translate(-60%)rotate(8deg)}.roll>*{z-index:1;position:relative}@keyframes sheen{0%,58%{opacity:0;transform:translate(-60%)rotate(8deg)}66%{opacity:1}84%,to{opacity:0;transform:translate(60%)rotate(8deg)}}.roll:active{filter:brightness(1.06);transform:translateY(1px)scale(.988);box-shadow:0 8px 20px -12px #ff6e82b3,inset 0 1px #ffffff4d}.roll:disabled{cursor:default;opacity:.58;filter:saturate(.75);box-shadow:0 10px 24px -18px #ff6e8273}.roll:focus-visible,.btn:focus-visible,.identity__choice:focus-visible,.icon-btn:focus-visible,.tip-btn:focus-visible,.segmented button:focus-visible{outline-offset:3px;outline:2px solid #ffcdb9cc}.roll__icon{width:21px;height:21px;display:inline-flex}.roll__icon svg{width:100%;height:100%;display:block}.identity{z-index:58;padding:24px max(20px, env(safe-area-inset-right)) 24px max(20px, env(safe-area-inset-left));background:radial-gradient(700px 460px at 50% 0,#381321 0%,#0000 70%),#0b0507;justify-content:center;align-items:center;display:flex;position:fixed;inset:0;overflow-y:auto}.identity[hidden]{display:none}.identity.is-leaving{pointer-events:none;animation:.3s forwards identityOut}@keyframes identityOut{to{opacity:0;transform:scale(1.015)}}.identity__panel{text-align:center;width:100%;max-width:380px;margin:auto}.identity__eyebrow{letter-spacing:.28em;color:var(--amber);margin:0 0 8px;font-size:11px}.identity__title{letter-spacing:.12em;margin:0 0 10px;font-family:Songti SC,STSong,Noto Serif SC,Noto Serif CJK SC,Source Han Serif SC,SimSun,serif;font-size:30px;font-weight:700}.identity__text{color:var(--muted);margin:0 0 22px;font-size:13.5px;line-height:1.75}.identity__actions{grid-template-columns:1fr 1fr;gap:12px;display:grid}.identity__choice{min-height:126px;font:inherit;color:var(--text);cursor:pointer;touch-action:manipulation;background:linear-gradient(160deg,#ffe1d212,#ffffff04);border:1px solid #ffd6be24;border-radius:24px;flex-direction:column;justify-content:center;align-items:center;gap:7px;padding:18px 12px;transition:border-color .2s,background .2s,transform .12s,opacity .2s;display:flex}.identity__choice span{color:var(--rose);text-shadow:0 0 22px #ff7d9740;font-family:Songti SC,STSong,Noto Serif SC,Noto Serif CJK SC,Source Han Serif SC,SimSun,serif;font-size:38px;line-height:1}.identity__choice small{letter-spacing:.22em;color:var(--muted);font-size:11px}.identity__choice:hover{background:linear-gradient(160deg,#ffaaaa1a,#ffffff05);border-color:#ff96a066}.identity__choice:active{transform:scale(.985)}.identity__choice:disabled{opacity:.55;cursor:default}.identity__error{color:#ffb4a8;margin:14px 0 0;font-size:12px;line-height:1.5}.identity__note{letter-spacing:.12em;color:#c9aaa894;margin:18px 0 0;font-size:11px}.identity__panel--categories{max-width:420px}.identity__panel--categories:not([hidden]){animation:.3s both categoryIn}@keyframes categoryIn{0%{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}.category-grid{grid-template-columns:1fr 1fr;gap:8px;margin-bottom:14px;display:grid}.category{text-align:left;min-height:66px;font:inherit;color:var(--text);border:1px solid var(--line);cursor:pointer;touch-action:manipulation;background:#ffffff09;border-radius:16px;padding:11px 13px;transition:background .18s,border-color .18s,transform .12s}.category strong{letter-spacing:.04em;font-size:13.5px;font-weight:700;display:block}.category small{color:var(--muted);margin-top:3px;font-size:10.5px;line-height:1.4;display:block}.category[aria-pressed=true] strong{color:#fff}.category:active{transform:scale(.985)}@media (max-width:360px){.identity{padding-top:18px;padding-bottom:18px}.identity__title{font-size:26px}.identity__text{font-size:12.5px}.category-grid{gap:6px;margin-bottom:12px}.category{border-radius:13px;min-height:54px;padding:8px 10px}.category strong{font-size:12.5px}.category small{margin-top:2px;font-size:9.5px;line-height:1.35}.identity__start{height:48px}.identity__back{height:40px;margin-top:6px}.switch-row--self{margin-top:10px;padding:8px 10px}.identity__panel .lang-switch{margin-top:12px}.chat__form{flex-wrap:wrap}.chat__form input[type=text]{flex:100%;order:1}.chat__task,.chat__photo,.chat__send{order:2}.chat__send{flex:1}}.identity__cta{border-top:1px solid #ffd6be1a;margin-top:10px;padding-top:10px}.identity__cta .identity__start{margin-top:0}.identity__start{width:100%;height:56px;margin-top:2px}.identity__back{width:100%;height:46px;margin-top:8px}.app.has-identity .controls .segmented--sm,.app.is-paired .controls .segmented--sm{display:none}.lang-switch{border:1px solid var(--line);background:#ffffff0b;border-radius:999px;align-items:center;display:inline-flex;position:relative}.lang-switch select{appearance:none;min-width:104px;height:32px;font:inherit;letter-spacing:.02em;color:var(--text);cursor:pointer;touch-action:manipulation;background:0 0;border:0;border-radius:999px;padding:0 30px 0 14px;font-size:11.5px}.lang-switch select:focus-visible{outline-offset:2px;outline:2px solid #ff96a08c}.lang-switch option{color:#fff;background:#1c0d13}.lang-switch__chevron{border-right:1.5px solid var(--muted);border-bottom:1.5px solid var(--muted);pointer-events:none;width:7px;height:7px;position:absolute;top:50%;right:12px;transform:translateY(-65%)rotate(45deg)}.identity__panel .lang-switch,.gate__panel .lang-switch{margin-top:16px}.lang-row{border-top:1px solid var(--line);justify-content:space-between;align-items:center;gap:12px;margin-top:14px;padding-top:14px;display:flex}.lang-row__label{font-size:14px;font-weight:600}.self-badge{letter-spacing:.08em;color:#ffd8d2;vertical-align:middle;background:#ff7d9729;border:1px solid #ff96a052;border-radius:999px;margin-left:8px;padding:2px 7px;font-family:ui-sans-serif,system-ui,sans-serif;font-size:9.5px;font-weight:700;display:inline-block}.self-badge[hidden]{display:none}.switch-row--self{text-align:left;border:1px solid var(--line);background:#ffffff08;border-radius:16px;margin-top:16px;padding:11px 13px}.switch-row--self .switch-row__title{font-size:13.5px}.switch-row--self .switch-row__desc{font-size:10.5px;line-height:1.45}.settings-leave{color:#c9aaa8b3;flex:none;width:100%;margin-top:10px}.sheet{z-index:50;padding:16px max(16px, env(safe-area-inset-right)) calc(env(safe-area-inset-bottom) + 16px) max(16px, env(safe-area-inset-left));-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);background:#060204a8;justify-content:center;align-items:flex-end;animation:.2s both fadeIn;display:flex;position:fixed;inset:0}.sheet[hidden]{display:none}.sheet__panel{background:linear-gradient(#2b131c,#180b10);border:1px solid #ffd6be1f;border-radius:26px;width:100%;max-width:480px;max-height:calc(100dvh - 32px);padding:20px;animation:.28s cubic-bezier(.2,.9,.3,1) both sheetIn;overflow-y:auto;box-shadow:0 30px 60px -30px #000}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}@keyframes sheetIn{0%{opacity:0;transform:translateY(18px)}to{opacity:1;transform:translateY(0)}}.sheet__head{justify-content:space-between;align-items:center;gap:12px;margin-bottom:8px;display:flex}.sheet__title{letter-spacing:.04em;margin:0;font-size:17px;font-weight:800}.sheet__hint{color:var(--muted);margin:0 0 14px;font-size:12.5px;line-height:1.6}.switch-row{border-bottom:1px solid var(--line);cursor:pointer;justify-content:space-between;align-items:center;gap:14px;min-height:54px;display:flex}.switch-row__text{flex-direction:column;gap:2px;display:flex}.switch-row__title{font-size:14.5px;font-weight:600}.switch-row__desc{color:var(--muted);font-size:11.5px}.switch{flex:none;width:48px;height:28px;position:relative}.switch input{opacity:0;cursor:pointer;width:100%;height:100%;margin:0;position:absolute;inset:0}.switch__track{pointer-events:none;background:#ffffff1f;border-radius:999px;transition:background .2s;position:absolute;inset:0}.switch__track:after{content:"";background:#fff;border-radius:50%;width:22px;height:22px;transition:transform .2s cubic-bezier(.2,.9,.3,1);position:absolute;top:3px;left:3px;box-shadow:0 2px 6px #00000059}.switch input:checked+.switch__track{background:linear-gradient(135deg, var(--rose), var(--violet))}.switch input:checked+.switch__track:after{transform:translate(20px)}.switch input:focus-visible+.switch__track{outline:2px solid var(--amber);outline-offset:3px}.sheet__foot{gap:10px;margin-top:16px;display:flex}.tip__meta{letter-spacing:.04em;color:var(--muted);margin:2px 0 12px;font-size:12.5px}.tip__text{margin:0 0 14px;font-size:15px;line-height:1.8}.tip__note{color:#b9a3b4b8;margin:0 0 18px;font-size:11.5px;line-height:1.65}.tip__panel .btn{width:100%}.btn{height:50px;font:inherit;color:var(--text);border:1px solid var(--line);cursor:pointer;touch-action:manipulation;background:#ffffff0f;border-radius:16px;flex:1;justify-content:center;align-items:center;padding:0 16px;font-size:15px;font-weight:700;text-decoration:none;transition:background .18s,transform .12s;display:inline-flex}.btn:active{transform:scale(.98)}.btn:hover{background:#ffffff1a}.btn--primary{color:#fff;background:linear-gradient(135deg, var(--rose), var(--violet));border-color:#0000}.btn--primary:hover{background:linear-gradient(135deg,#ff7099,#b56bff)}.btn--ghost{color:var(--muted);background:0 0}.gate{z-index:60;background:radial-gradient(700px 420px at 50% 0,#3a1220 0%,#0000 70%),#080405;justify-content:center;align-items:center;padding:24px;display:flex;position:fixed;inset:0}.gate[hidden]{display:none}.gate__panel{text-align:center;width:100%;max-width:380px;max-height:calc(100dvh - 32px);overflow-y:auto}.gate__badge{letter-spacing:.04em;color:#fff;background:linear-gradient(145deg,#ff7d974d,#ffc38e24);border:1px solid #ffd6be2e;border-radius:24px;place-items:center;width:74px;height:74px;margin-bottom:18px;font-size:20px;font-weight:800;display:inline-grid;box-shadow:0 18px 40px -18px #ff6e8280}.gate__title{letter-spacing:.06em;margin:0 0 10px;font-family:Songti SC,STSong,Noto Serif SC,Noto Serif CJK SC,Source Han Serif SC,SimSun,serif;font-size:23px;font-weight:700}.gate__text{color:var(--muted);margin:0 0 24px;font-size:13.5px;line-height:1.75}.gate__actions{flex-direction:column;gap:12px;display:flex}.gate__actions .btn{border-radius:18px;flex:none;height:64px;padding:0 20px;font-size:17px}.gate__note{letter-spacing:.12em;color:#b9a3b48c;margin:18px 0 0;font-size:11px}.blocked{text-align:center;padding:24px}.blocked h2{margin:0 0 8px;font-size:20px}.blocked p{color:var(--muted);margin:0 0 20px;font-size:13.5px;line-height:1.7}.toast{left:50%;bottom:calc(env(safe-area-inset-bottom) + 96px);z-index:70;color:var(--text);opacity:0;pointer-events:none;background:#261018f2;border:1px solid #ffd6be24;border-radius:999px;padding:10px 16px;font-size:13px;transition:opacity .2s,transform .2s;position:fixed;transform:translate(-50%,8px);box-shadow:0 14px 30px -14px #000}.toast.is-on{opacity:1;transform:translate(-50%)}.topbar__actions{align-items:center;gap:8px;display:flex}.icon-btn[hidden]{display:none}.room-code{min-height:30px;font:inherit;color:var(--muted);border:1px solid var(--line);cursor:pointer;background:#ffffff0a;border-radius:999px;align-self:center;align-items:center;gap:7px;padding:0 12px;font-size:11px;display:inline-flex}.room-code[hidden]{display:none}.room-code strong{color:var(--text);letter-spacing:.12em}.match-modes{grid-template-columns:repeat(2,1fr);gap:6px;margin:0 0 8px;display:grid}.match-label{color:var(--muted);letter-spacing:.04em;text-align:left;grid-column:1/-1;margin:0 0 8px;font-size:11.5px}.cat-toggle{width:100%;height:42px;font:inherit;color:var(--text);border:1px solid var(--line);cursor:pointer;background:#ffffff09;border-radius:13px;justify-content:space-between;align-items:center;margin:0 0 12px;padding:0 13px;font-size:12.5px;display:flex}.cat-toggle[hidden]{display:none}.cat-toggle__chevron{border-right:1.5px solid var(--muted);border-bottom:1.5px solid var(--muted);width:7px;height:7px;transition:transform .18s;transform:rotate(45deg)}.cat-toggle[aria-expanded=true] .cat-toggle__chevron{transform:rotate(-135deg)}.match-modes button{height:38px;font:inherit;color:var(--muted);border:1px solid var(--line);cursor:pointer;touch-action:manipulation;background:#ffffff09;border-radius:12px;padding:0 6px;font-size:11.5px}.match-hint{color:var(--muted);margin:0 0 14px;font-size:11px;line-height:1.5}.code-box{margin-bottom:12px}.code-box[hidden]{display:none}.code-box input{width:100%;height:44px;font:inherit;letter-spacing:.22em;text-align:center;text-transform:uppercase;color:var(--text);border:1px solid var(--line);background:#ffffff0a;border-radius:12px;padding:0 14px;font-size:16px}.code-box input:focus{border-color:#ff96a080;outline:none}.code-box__actions{grid-template-columns:1fr 1fr;gap:8px;margin-top:8px;display:grid}.code-box__actions .btn{height:42px;font-size:13px}.match-waiting{z-index:62;background:radial-gradient(700px 460px at 50% 0,#381321 0%,#0000 70%),#0b0507;justify-content:center;align-items:center;padding:24px;display:flex;position:fixed;inset:0}.match-waiting[hidden]{display:none}.match-waiting__panel{text-align:center;width:100%;max-width:360px}.match-waiting__spinner{border:2px solid #ffffff1a;border-top-color:#ff96a0d9;border-radius:50%;width:44px;height:44px;margin:0 auto 20px;animation:1s linear infinite matchSpin}@keyframes matchSpin{to{transform:rotate(360deg)}}.chat__messages{overscroll-behavior:contain;flex-direction:column;flex:1;gap:8px;min-height:120px;max-height:46dvh;padding:8px 2px;display:flex;overflow-y:auto}.chat__messages::-webkit-scrollbar{width:3px}.chat__messages::-webkit-scrollbar-thumb{background:#ffffff24;border-radius:99px}.chat__empty{color:var(--muted);text-align:center;margin:18px 0;font-size:12px}.chat__empty[hidden]{display:none}.chat__msg{border:1px solid var(--line);background:#ffffff0f;border-radius:14px 14px 14px 4px;align-self:flex-start;max-width:82%;padding:8px 11px;font-size:13px;line-height:1.5}.chat__msg.is-self{background:#ff7d9729;border-color:#ff96a04d;border-radius:14px 14px 4px;align-self:flex-end}.chat__who{color:var(--muted);letter-spacing:.06em;font-size:9.5px;display:block}.chat__msg p{white-space:pre-wrap;overflow-wrap:anywhere;margin:2px 0 0}.chat__msg img{border-radius:10px;max-width:100%;max-height:220px;margin-top:5px;display:block}.chat__form{align-items:center;gap:7px;margin-top:10px;display:flex}.chat__form input[type=text]{min-width:0;height:42px;font:inherit;color:var(--text);border:1px solid var(--line);background:#ffffff0a;border-radius:12px;flex:1;padding:0 12px;font-size:13px}.chat__form input[type=text]:focus{border-color:#ff96a080;outline:none}.chat__photo{width:42px;height:42px;color:var(--muted);border:1px solid var(--line);cursor:pointer;background:#ffffff0a;border-radius:12px;flex:none;place-items:center;display:inline-grid}.chat__photo svg{width:19px;height:19px}.chat__send{height:42px;padding:0 14px;font-size:13px}.chat__status{color:#ffb4a8;text-align:center;min-height:16px;margin:6px 0 0;font-size:11px}.game-modes{gap:10px;margin-top:18px;display:grid}.game-mode{text-align:left;width:100%;font:inherit;color:var(--text);border:1px solid var(--line);cursor:pointer;touch-action:manipulation;background:#ffffff09;border-radius:18px;padding:16px 18px;transition:background .18s,border-color .18s,transform .12s}.game-mode strong{letter-spacing:.04em;font-size:16px;font-weight:700;display:block}.game-mode small{color:var(--muted);margin-top:5px;font-size:11.5px;line-height:1.5;display:block}.game-mode:active{transform:scale(.99)}.game-mode:hover{border-color:#ff96a066}.mode-home{text-align:center;flex-direction:column;flex:1;justify-content:center;width:100%;max-width:420px;margin:0 auto;padding:8px 0 28px;display:flex}.mode-home[hidden]{display:none}.mode-home__eyebrow{letter-spacing:.28em;color:var(--amber);margin:0 0 8px;font-size:11px}.mode-home__title{letter-spacing:.1em;margin:0;font-family:Songti SC,STSong,Noto Serif SC,Noto Serif CJK SC,Source Han Serif SC,SimSun,serif;font-size:27px;font-weight:700}.mode-home .game-modes{margin-top:22px}.mode-home__back{font:inherit;color:var(--muted);text-underline-offset:3px;cursor:pointer;background:0 0;border:0;align-self:center;margin-top:16px;padding:6px 10px;font-size:12px;text-decoration:underline}.app[data-step=mode] .controls,.app[data-step=mode] .stage,.app[data-step=mode] .actions,.app[data-step=mode] .room-code{display:none}.role-modes{text-align:left;margin:12px 0 16px}.role-modes[hidden]{display:none}.role-modes__label{color:var(--muted);margin:0 0 8px;font-size:11.5px}.role-modes__buttons{grid-template-columns:repeat(3,1fr);gap:6px;display:grid}.role-modes__buttons button{height:36px;font:inherit;color:var(--muted);border:1px solid var(--line);cursor:pointer;touch-action:manipulation;background:#ffffff09;border-radius:11px;font-size:12px}.app.game-remote .controls,.app.game-remote .stage,.app.game-remote .actions{display:none}.remote{text-align:center;flex-direction:column;flex:1;justify-content:center;align-items:center;gap:10px;padding:28px 12px;display:flex}.remote[hidden]{display:none}.remote__eyebrow{letter-spacing:.28em;color:var(--amber);margin:0;font-size:11px}.remote__role{margin:0;font-family:Songti SC,STSong,Noto Serif SC,Noto Serif CJK SC,Source Han Serif SC,SimSun,serif;font-size:30px;font-weight:700}.remote__partner{color:var(--muted);margin:0;font-size:14px}.remote__hint{color:var(--muted);margin:4px 0 0;font-size:12px;line-height:1.6}.remote__chat{width:100%;max-width:280px;height:52px;margin-top:10px}.chat__task{height:42px;font:inherit;color:#ffd8d2;cursor:pointer;background:#ff7d971f;border:1px solid #ff96a052;border-radius:12px;flex:none;padding:0 11px;font-size:12px}.chat__task[hidden]{display:none}.chat__msg.is-task{background:#ffc46b17;border-color:#ffc46b47}.chat__msg.is-task.is-self{background:#ff7d9729;border-color:#ff96a04d}.chat__task-done{font:inherit;color:var(--text);border:1px solid var(--line);cursor:pointer;background:#ffffff12;border-radius:999px;margin-top:6px;padding:3px 9px;font-size:10.5px;display:inline-block}.chat__task-state{color:var(--muted);margin-top:5px;font-size:10px;display:inline-block}@media (min-width:480px),(orientation:landscape) and (max-height:560px){.dice{grid-template-columns:1fr 1fr}}@media (max-height:620px){.app{padding-top:calc(env(safe-area-inset-top) + 10px);padding-bottom:calc(env(safe-area-inset-bottom) + 10px);gap:8px}.die{min-height:92px;padding:52px 16px 18px}.roll{height:56px}.note{display:none}.segmented--sm button{height:30px}}@media (orientation:landscape) and (max-height:560px){.app{padding-top:calc(env(safe-area-inset-top) + 8px);padding-bottom:calc(env(safe-area-inset-bottom) + 8px);gap:8px}.topbar{min-height:34px}.brand__mark{border-radius:10px;width:32px;height:32px;font-size:16px}.brand__title{font-size:15px}.brand__sub{font-size:10px}.icon-btn{border-radius:12px;width:36px;height:36px}.controls{grid-template-columns:1fr 1fr;gap:8px;display:grid}.segmented{padding:3px}.segmented button{height:32px;font-size:12.5px}.segmented--sm button{height:32px}.die{border-radius:18px;min-height:84px;padding:36px 14px 10px}.die__label{padding:2px 8px;font-size:10px;top:9px;left:12px}.die__value{font-size:clamp(20px,3.6vw,30px)}.die.is-long .die__value{font-size:clamp(17px,3vw,24px)}.readout{min-height:30px}.sentence{font-size:12.5px}.history{display:none}.roll{border-radius:18px;height:48px;font-size:17px}.gate{padding:12px 24px}.gate__badge{border-radius:18px;width:56px;height:56px;margin-bottom:10px;font-size:17px}.gate__title{margin-bottom:6px;font-size:19px}.gate__text{margin-bottom:14px;font-size:12.5px;line-height:1.6}.gate__actions{gap:8px}.gate__actions .btn{border-radius:15px;height:52px;font-size:15px}.gate__note{margin-top:10px}.identity{padding:12px 20px}.identity__eyebrow{margin-bottom:4px;font-size:10px}.identity__title{margin-bottom:4px;font-size:22px}.identity__text{margin-bottom:12px;font-size:12px;line-height:1.55}.identity__actions{gap:8px}.identity__choice{border-radius:16px;min-height:78px;padding:10px}.identity__choice span{font-size:28px}.identity__note{margin-top:10px}.identity__panel--categories{max-width:560px}.category-grid{grid-template-columns:repeat(3,1fr);gap:6px;margin-bottom:10px}.category{border-radius:12px;min-height:50px;padding:7px 9px}.category strong{font-size:12px}.category small{margin-top:2px;font-size:9px}.identity__start{height:46px;font-size:14px}.identity__back{height:38px;margin-top:4px;font-size:13px}.identity__cta{margin-top:8px;padding-top:8px}.identity__panel .lang-switch,.gate__panel .lang-switch{margin-top:8px}.lang-switch select{min-width:92px;height:28px;padding:0 26px 0 11px;font-size:10.5px}.lang-switch__chevron{width:6px;height:6px;right:10px}.switch-row--self{margin-top:8px;padding:7px 10px}.switch-row--self .switch-row__desc{font-size:10px}}@media (prefers-reduced-motion:reduce){*,:before,:after{transition-duration:.001ms!important;animation-duration:.001ms!important;animation-iteration-count:1!important}}@media (max-width:360px){.chat__form{flex-wrap:wrap}.chat__form input[type=text]{flex:100%;order:1}.chat__task,.chat__photo,.chat__send{order:2}.chat__send{flex:1}}.chat-join{top:calc(env(safe-area-inset-top) + 62px);z-index:60;width:min(92vw,430px);color:var(--text);opacity:0;pointer-events:none;background:#2a101af7;border:1px solid #ff96a080;border-radius:14px;align-items:center;gap:10px;padding:10px 10px 10px 14px;transition:opacity .22s,transform .22s;display:flex;position:fixed;left:50%;transform:translate(-50%,-10px);box-shadow:0 16px 44px -12px #000}.chat-join.is-on{opacity:1;pointer-events:auto;transform:translate(-50%)}.chat-join__text{flex:1;min-width:0}.chat-join__text strong{color:#fff;font-size:13px;display:block}.chat-join__text span{color:var(--muted);margin-top:2px;font-size:11px;display:block}.chat-join__close{width:30px;height:30px;color:var(--muted);border:1px solid var(--line);cursor:pointer;background:#ffffff0d;border-radius:9px;flex:none;place-items:center;display:grid}.chat-join__close svg{width:15px;height:15px}.chat-page{height:100dvh;min-height:100dvh;padding:calc(env(safe-area-inset-top) + 12px) max(14px, env(safe-area-inset-right)) calc(env(safe-area-inset-bottom) + 12px) max(14px, env(safe-area-inset-left));background:radial-gradient(900px 520px at 50% -10%, #381321 0%, transparent 65%), var(--bg);flex-direction:column;gap:9px;display:flex}.chat-page__head{flex:none;align-items:center;gap:10px;display:flex}.chat-page__back{width:40px;height:40px;color:var(--text);border:1px solid var(--line);background:#ffffff0b;border-radius:12px;flex:none;place-items:center;text-decoration:none;display:grid}.chat-page__back svg{width:19px;height:19px}.chat-page__titles{flex:1;min-width:0}.chat-page__titles h1{letter-spacing:.04em;white-space:nowrap;text-overflow:ellipsis;margin:0;font-family:Songti SC,STSong,Noto Serif SC,Noto Serif CJK SC,Source Han Serif SC,SimSun,serif;font-size:19px;font-weight:700;overflow:hidden}.chat-page__titles p{color:var(--muted);white-space:nowrap;text-overflow:ellipsis;margin:2px 0 0;font-size:11px;overflow:hidden}.chat-page__lang{flex:none}.chat-page__lang select{min-width:94px;height:34px;padding:0 26px 0 10px;font-size:11px}.chat-page__lang option{color:#fff;background:#1c0d13}.chat-page__meta{color:var(--muted);flex-wrap:wrap;flex:none;align-items:center;gap:6px 10px;font-size:10.5px;line-height:1.5;display:flex}.chat-page__meta .room-code{min-height:28px}.chat-page__messages{flex:1;min-height:0;max-height:none;padding:8px 2px 4px}.chat-page__form{flex:none}.chat-page .chat__empty{flex:none;margin:4px 0}.chat-page .chat__status{flex:none;margin:0}@media (max-height:560px){.chat-page{padding-top:calc(env(safe-area-inset-top) + 8px);padding-bottom:calc(env(safe-area-inset-bottom) + 8px);gap:6px}.chat-page__head{gap:8px}.chat-page__back{width:36px;height:36px}.chat-page__titles h1{font-size:17px}}
