@import"https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Noto+Sans+SC:wght@400;500;600;700&display=swap";.moontrace{--bg: #f4f5f8;--surface: #fff;--ink: #202539;--muted: #72788b;--line: #e4e6ed;--accent: #5754ce;--tint: #eeedff;--red: #b74252;--green: #268568;--shadow: 0 4px 24px #28305005;font-family:DM Sans,Noto Sans SC,system-ui,sans-serif;color:var(--ink);background:var(--bg);min-height:100vh;font-size:15px;line-height:1.6;color-scheme:light}.moontrace *{box-sizing:border-box}.moontrace button,.moontrace input,.moontrace textarea,.moontrace select{font:inherit}.moontrace button,.moontrace a,.moontrace select,.moontrace summary{touch-action:manipulation}.moontrace a{color:inherit;text-decoration:none}.moontrace button{cursor:pointer}.moontrace button:disabled{cursor:not-allowed;opacity:.45}.moontrace h1,.moontrace h2,.moontrace h3,.moontrace h4,.moontrace p{margin:0}.moontrace h1{font-size:clamp(24px,3vw,32px);font-weight:600;letter-spacing:-.8px}.moontrace h2{font-size:18px;font-weight:600;letter-spacing:-.3px}.moontrace h3{font-size:16px}.moontrace h4{font-size:14px;color:var(--muted);font-weight:500}.moontrace :focus-visible{outline:3px solid #a6a2ef;outline-offset:3px}.moontrace input,.moontrace select,.moontrace textarea{border:1px solid var(--line);border-radius:8px;background:#fff;color:var(--ink);font-size:16px;min-height:44px;padding:9px 12px;max-width:100%}.moontrace textarea{resize:vertical;min-height:115px;width:100%;line-height:1.8}.moontrace label{display:flex;flex-direction:column;gap:8px;font-size:13px;color:var(--muted)}.moontrace label+label{margin-top:16px}.mt-header{height:88px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);padding:0 4vw;background:#fff}.mt-brand{display:flex;align-items:center;gap:12px}.mt-brand b{font-size:22px;letter-spacing:-.6px;display:block;line-height:1.2}.mt-brand small{font-size:11px;letter-spacing:2px;color:var(--muted)}.moon-logo{font-size:44px;line-height:1;color:var(--accent)}.header-links{display:flex;align-items:center;gap:24px;font-size:13px}.header-links>a{display:flex;align-items:center;min-height:44px}.mt-main{max-width:1460px;margin:auto;padding:38px 4vw 0}.page-intro{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:28px}.page-intro p{margin-top:10px;max-width:920px;font-size:12px}.eyebrow{font-size:10px;letter-spacing:2px;color:var(--muted);display:block;font-weight:600;margin-bottom:8px}.save-state{font-size:11px;display:flex;align-items:center;gap:8px;white-space:nowrap;color:var(--muted)}.save-state i{height:6px;width:6px;border-radius:50%;background:var(--green)}.muted{color:var(--muted)}.small{font-size:12px}.mt-tabs{display:flex;gap:28px;border-bottom:1px solid var(--line);margin-bottom:24px;overflow:auto}.mt-tabs button{background:none;border:0;border-bottom:2px solid transparent;padding:12px 3px 17px;min-height:52px;white-space:nowrap;color:var(--muted);font-size:14px}.mt-tabs button span{font-size:10px;margin-right:10px;font-variant-numeric:tabular-nums;opacity:.6}.mt-tabs button[aria-current]{border-color:var(--accent);color:var(--accent);font-weight:600}.context-bar{display:flex;align-items:center;gap:16px;margin-bottom:24px}.context-bar label{flex-direction:row;align-items:center;gap:8px}.context-bar label+label{margin:0}.context-bar select{min-width:80px}.context-summary{margin-left:auto;color:var(--muted);font-size:12px}.mt-button{min-height:44px;min-width:44px;padding:10px 16px;border:1px solid var(--line);border-radius:8px;background:var(--surface);color:var(--ink);display:inline-flex;justify-content:center;align-items:center;gap:9px;font-size:13px;transition:background .15s,border-color .15s;white-space:nowrap;font-weight:500}.mt-button:hover{background:#f6f6fc;border-color:#c1bfdc}.mt-button.primary{background:var(--accent);color:#fff;border-color:var(--accent)}.mt-button.primary:hover{background:#4845b8}.mt-button.danger{color:var(--red);background:#fff4f5;border-color:#f1d5d9}.mt-button.full{width:100%}.button-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:18px}.mt-card{min-width:0;background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:24px;box-shadow:var(--shadow)}.mobile-toolbar{display:none}.graph-scroll{overflow-x:auto;max-width:100%}.review-checkbox{min-height:44px;flex-direction:row!important;align-items:center;gap:10px!important}.review-checkbox input{min-width:24px;min-height:24px}@media (max-width: 850px){.mobile-toolbar{display:flex;align-items:center;gap:7px;position:fixed;bottom:0;left:0;right:0;padding:10px 12px calc(10px + env(safe-area-inset-bottom));background:#fff;border-top:1px solid var(--line);box-shadow:0 -4px 20px #20253908;z-index:5}.mobile-toolbar>span{margin-right:auto;font-size:12px;flex-shrink:0}.mobile-toolbar small{display:block;font-size:9px;color:var(--muted)}.mobile-toolbar .mt-button{padding:10px 9px;font-size:11px}.moontrace .mt-main{padding-bottom:90px}.mt-toast{bottom:90px}}.section-head{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:20px}.section-head .eyebrow{margin-bottom:4px}.section-head small{font-size:11px}.live-layout{display:grid;grid-template-columns:minmax(300px,.85fr) minmax(350px,1.15fr);gap:22px}.seat-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:9px}.seat{border:1px solid var(--line);background:#fafbfc;border-radius:9px;padding:13px 3px 10px;min-height:70px;text-align:center;transition:.15s}.seat b{display:block;font-size:19px;font-weight:500;line-height:1.2}.seat span{display:block;font-size:9px;color:var(--muted);margin-top:5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.seat.selected{border-color:var(--accent);background:var(--tint);color:var(--accent);box-shadow:0 0 0 1px var(--accent)}.seat.selected span{color:var(--accent)}.seat.out{opacity:.4}.queue-head{display:flex;align-items:center;justify-content:space-between;margin-top:24px;font-size:12px}.queue-head select{font-size:12px;border:none;padding:5px}.queue-strip{display:flex;overflow-x:auto;gap:5px;margin:8px 0 18px;padding-bottom:3px}.queue-strip button{min-width:44px;min-height:44px;background:#f4f5f9;border:0;border-radius:6px;font-size:12px}.queue-strip button:first-child{color:var(--accent);background:var(--tint)}.recorder-card textarea{min-height:210px;background:#fcfcfe;border-color:#e7e8f0;padding:18px;font-size:16px}.seat-badge{display:inline-flex;justify-content:center;align-items:center;border-radius:8px;color:var(--accent);background:var(--tint);width:36px;height:36px;font-size:16px;margin-right:12px}.phase-pill{color:var(--muted);font-size:10px;padding:5px 9px;background:#f4f5f8;border-radius:5px;white-space:nowrap}.record-strip{display:flex;align-items:center;gap:14px;margin:14px 0}.record-time{font-size:11px;color:var(--muted)}.record-dot{height:9px;width:9px;border-radius:50%;background:#cf5263}.pulsing{animation:mt-pulse 1s infinite}@keyframes mt-pulse{50%{opacity:.3}}.action-strip{display:flex;gap:8px;border-top:1px solid var(--line);padding-top:16px}.action-strip .mt-button{flex:1;padding:10px 5px}.recorder-card .small{margin-top:15px}.recent-events{grid-column:1/-1}.events-list{display:flex;flex-direction:column;gap:10px}.event-card{display:block;width:100%;text-align:left;border:1px solid var(--line);border-radius:9px;padding:14px;background:#fff;color:var(--ink);min-height:44px}.event-card:hover{border-color:#c1bfdc;background:#fdfdff}.event-header{display:flex;align-items:center;gap:10px;font-size:12px}.event-header strong{font-weight:500}.event-header small{margin-left:auto;color:var(--muted);font-size:10px}.event-icon{height:25px;width:25px;background:#f2f3f7;border-radius:6px;display:flex;align-items:center;justify-content:center;font-size:12px;font-weight:600;color:var(--muted);flex-shrink:0}.event-icon.speech,.event-icon.police,.event-icon.sheriff{background:var(--tint);color:var(--accent)}.event-icon.eliminate,.event-icon.suspect{background:#fff0f1;color:var(--red)}.event-icon.trust{background:#eaf7f1;color:var(--green)}.event-card p{font-size:13px;line-height:1.8;margin:9px 0 5px;white-space:pre-wrap;overflow-wrap:anywhere}.event-card p:empty{display:none}.event-meta{font-size:10px;color:var(--muted)}.empty{padding:35px 10px;text-align:center;color:var(--muted);font-size:13px}.vote-layout{display:grid;grid-template-columns:1.1fr 1fr;gap:22px}.vote-layout .muted{margin:10px 0}.field-row{display:flex;gap:16px;align-items:flex-end;margin:16px 0}.field-row label{flex:1}.field-row label+label{margin:0}.field-row select,.field-row input{width:100%}.candidate-log{margin-top:24px;display:flex;flex-direction:column;gap:8px}.ballot-preview{display:flex;align-items:center;justify-content:center;gap:35px;padding:25px;font-size:44px;line-height:1;color:var(--accent);font-weight:500;font-variant-numeric:tabular-nums}.ballot-preview span{font-size:28px;color:#b6b8ca}.vote-table{margin-top:18px}.vote-tally{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}.vote-tally>span{display:flex;gap:14px;align-items:center;background:var(--tint);color:var(--accent);border-radius:6px;padding:6px 10px;font-size:11px}.vote-tally b{font-size:13px}.vote-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(90px,1fr));gap:6px}.vote-grid button{display:flex;align-items:center;justify-content:space-evenly;min-height:44px;border:1px solid var(--line);background:#fff;border-radius:6px;font-size:13px}.vote-grid span{color:#acafbd}.vote-grid strong{color:var(--accent)}.vote-table p{margin-top:12px}.overview-tools{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:20px}.overview-tools p{font-size:12px;margin-top:6px}.overview-tools label{flex-direction:row;align-items:center;white-space:nowrap}.stat-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:15px;margin-bottom:22px}.stat{display:flex;align-items:center;justify-content:space-between;padding:20px 24px}.stat span{font-size:12px;color:var(--muted)}.stat b{font-size:28px;font-weight:500}.overview-layout{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(320px,1fr);gap:22px}.overview-aside{display:flex;flex-direction:column;gap:22px}.round-group+.round-group{border-top:1px solid var(--line);margin-top:24px;padding-top:24px}.round-group h3{display:flex;align-items:center;gap:10px;margin-bottom:18px}.round-dot{width:8px;height:8px;border-radius:50%;background:var(--accent)}.phase-group{padding-left:18px;border-left:1px solid var(--line);margin-left:3px;margin-bottom:20px}.phase-group h4{margin:15px 0 10px}.phase-group .event-card{margin-top:8px}.phase-group details{margin-top:12px;border:1px solid var(--line);border-radius:9px;padding:12px}.phase-group summary{font-size:12px;min-height:44px;display:flex;align-items:center;cursor:pointer;color:var(--accent)}.overview-seats{display:flex;flex-direction:column}.player-line{display:flex;align-items:center;gap:14px;padding:10px 3px;min-height:56px;border:0;border-bottom:1px solid #f0f1f5;background:none;text-align:left;color:var(--ink)}.player-line b{font-size:20px;min-width:30px;font-weight:500;color:var(--accent)}.player-line span{font-size:12px}.player-line small{display:block;color:var(--muted);font-size:10px}.player-line em{margin-left:auto;font-style:normal;font-size:10px;color:var(--muted)}.player-line.out{opacity:.5}.relation-svg{width:100%;max-width:400px;display:block;margin:16px auto}.relation{stroke:#8e8adc;stroke-width:1;opacity:.45}.relation.suspect{stroke:var(--red);stroke-dasharray:6 3}.relation.trust{stroke:var(--green);stroke-dasharray:2 3}.graph-seat{cursor:pointer;outline:none}.graph-seat circle{fill:#f7f7fd;stroke:#dad9ee;stroke-width:1}.graph-seat:hover circle,.graph-seat:focus circle{fill:var(--tint);stroke:var(--accent)}.graph-seat text{fill:var(--ink);font-size:11px}.game-item{display:flex;align-items:center;gap:16px;padding:16px;border:1px solid var(--line);border-radius:9px;margin-top:12px}.game-item.selected{border-color:#b5b2e6;background:#fcfcff}.game-item>button:first-child{flex:1;text-align:left;background:none;border:0;min-height:44px;color:var(--ink)}.game-item strong{font-size:14px;font-weight:500;display:block}.game-item small{display:block;font-size:11px;color:var(--muted);margin-top:5px}.cloud-panel{padding:24px;background:#f7f7fc;border-radius:9px;margin-top:28px}.cloud-panel p{font-size:12px;margin:8px 0}.file-button{position:relative;cursor:pointer}.file-button input{position:absolute;inset:0;opacity:0;width:100%;cursor:pointer}.mt-footer{display:flex;justify-content:space-between;gap:20px;padding:35px 0;margin-top:25px;font-size:10px;color:var(--muted)}.mt-footer a{min-height:44px;display:flex;align-items:center}.welcome{text-align:center;padding:55px 25px}.welcome .button-row{justify-content:center}.welcome p{margin-top:15px;color:var(--muted);font-size:13px}.moon-big{font-size:70px;color:var(--accent)}.mt-skeleton{height:450px;background:linear-gradient(100deg,#eeeef5 30%,#f8f8fc,#eeeef5 70%);border-radius:14px}.mt-modal{border:1px solid var(--line);border-radius:16px;width:min(660px,calc(100vw - 24px));max-height:88vh;padding:25px;background:var(--surface);color:var(--ink);box-shadow:0 20px 100px #18234535;overflow:auto}.mt-modal::backdrop{background:#1d253b66;backdrop-filter:blur(3px)}.modal-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:24px}.modal-head h2{font-size:20px}.modal-head .mt-button{font-size:23px;border:0;padding:0}.mt-modal textarea{margin-bottom:14px}.mt-modal h3{margin:18px 0 12px}.role-config{display:grid;grid-template-columns:1fr 1fr;gap:0 25px;max-height:330px;overflow-y:auto;border:1px solid var(--line);border-radius:9px;padding:10px 14px;margin-top:16px}.role-config label{display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:10px;margin:0;padding:7px 0;border-bottom:1px solid #f0f1f6}.role-config b{font-weight:500;color:var(--ink);font-size:13px}.role-config small{display:block;font-size:9px}.role-config input{width:65px;font-size:16px}.role-total{text-align:right;font-size:13px;padding:12px 0;color:var(--green)}.role-total.invalid{color:var(--red)}.audio-player{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin:12px 0}.audio-player audio{max-width:100%;height:44px}.raw-text{background:#f5f6fa;border-radius:8px;padding:14px;font-size:14px;line-height:1.8;white-space:pre-wrap;overflow-wrap:anywhere;color:var(--ink);margin-bottom:15px}.mt-toast{position:fixed;bottom:24px;left:50%;transform:translate(-50%);z-index:10000;background:#242941;color:#fff;border-radius:9px;padding:14px 22px;box-shadow:0 5px 25px #20253830;font-size:13px;max-width:calc(100% - 28px);width:max-content;line-height:1.7}@media (min-width: 1300px){.mt-main{padding-right:35px;padding-left:35px}.live-layout{grid-template-columns:420px minmax(480px,1fr)}.seat-grid{grid-template-columns:repeat(5,1fr)}}@media (max-width: 850px){.mt-header{height:72px;padding:0 20px}.mt-main{padding:25px 20px 0}.header-links{gap:15px}.live-layout,.vote-layout,.overview-layout{grid-template-columns:1fr}.recent-events{grid-column:1}.overview-aside{display:grid;grid-template-columns:1fr 1fr}.page-intro{align-items:flex-start}.save-state{display:none}.stat{padding:16px}.seat-grid{grid-template-columns:repeat(6,1fr)}.recorder-card textarea{min-height:170px}.mt-footer{flex-direction:column;gap:6px}.mt-tabs{gap:20px}}@media (max-width: 520px){.mt-header{padding:0 16px}.mt-brand b{font-size:18px}.moon-logo{font-size:35px}.mt-brand small{font-size:9px}.header-links{gap:9px}.header-links>a{font-size:11px}.header-links>a:first-child{display:none}.header-links>.mt-button{font-size:11px;padding:8px 10px}.mt-main{padding:24px 14px 0}.page-intro{margin-bottom:18px}.page-intro h1{font-size:23px}.page-intro p{font-size:10px;line-height:1.9}.mt-tabs{gap:5px;justify-content:space-between;margin-bottom:18px}.mt-tabs button{font-size:12px;padding:10px 3px 14px}.mt-tabs button span{display:none}.context-bar{gap:7px;flex-wrap:wrap}.context-bar label{font-size:11px;gap:5px}.context-bar select{padding:7px;min-width:50px;font-size:14px}.context-bar .mt-button{font-size:10px;padding:8px}.context-summary{display:none}.mt-card{padding:18px;border-radius:11px}.live-layout,.vote-layout,.overview-layout{gap:16px}.seat-grid{grid-template-columns:repeat(5,1fr);gap:7px}.seat{min-height:67px;padding-top:12px}.section-head{gap:8px}.section-head .muted{font-size:10px}.recorder-card .section-head h2{font-size:16px}.seat-badge{display:none}.recorder-card .phase-pill{font-size:9px}.record-strip{align-items:flex-start}.record-time{max-width:135px;font-size:10px}.button-row{gap:8px}.button-row .mt-button{padding:10px 12px;font-size:12px}.recorder-card .button-row .primary{flex:1}.stat-grid{grid-template-columns:repeat(2,1fr);gap:10px}.stat{padding:15px 18px}.stat b{font-size:24px}.overview-tools label{font-size:10px;gap:5px}.overview-tools select{padding:8px;font-size:13px}.overview-aside{display:flex}.overview-timeline{padding:18px 12px}.phase-group{padding-left:12px}.role-config{gap:0 12px;padding:8px}.role-config b{font-size:12px}.role-config input{width:55px;padding:8px}.mt-modal{padding:20px 16px}.field-row{gap:10px}.game-item{padding:12px;gap:10px}.game-item .mt-button{font-size:11px;padding:8px}.event-header strong{font-size:11px}.event-card{padding:12px}.event-card p{font-size:12px}.mt-footer{font-size:9px}.mt-toast{bottom:16px}}@media (prefers-reduced-motion: reduce){.moontrace *{animation:none!important;transition:none!important}}
