/* The round characters supply the color; the interface supplies the space. */
.tool-card{display:flex;flex-direction:column;align-items:stretch}.tool-card .card-art{flex-shrink:0}
:root{--canvas:#f7f8fb;--surface:#fff;--ink:#30364a;--muted:#687083;--line:#e8eaf1;--accent:#526bc3;--accent-hover:#4058ad;--soft:#edf0fc;--radius:12px;--panel-radius:22px}
body:not(.playing){background:var(--canvas)}
.site-header,.landing,.workspace,.home-guides{width:min(1160px,calc(100% - 48px));max-width:1160px;margin-inline:auto}
.site-header{height:88px;padding:0;border:0;background:transparent}.brand{font-size:23px;letter-spacing:-1px;gap:10px}.brand-symbol{width:42px;height:42px}.header-right{gap:16px}.header-right .pill{font-size:14px}
.hero{grid-template-columns:1fr 300px;gap:64px;padding:32px 0 40px}.hero h1{font-size:32px;line-height:1.4;letter-spacing:-1px}.hero-copy>p{font-size:16px;margin-top:12px;line-height:1.6}.hero-actions{margin-top:24px}.join-panel{border:0;padding:24px;background:#eef0f7;border-radius:22px}.join-panel h2{margin-bottom:14px}.join-panel input{border:0;height:46px;margin:6px 0 12px;border-radius:10px}.join-panel .outline{background:#fff;border:0;min-height:44px}.primary,.outline{border-radius:12px}.outline{border-color:transparent;background:#edf0f6}.outline:hover:not(:disabled){border-color:transparent;background:#e4e8f4}
.tool-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;border:0;border-radius:0;overflow:visible}.tool-card{border:0!important;border-radius:22px;padding:12px 24px 24px;background:var(--card-bg);overflow:hidden;transition:background-color .2s,transform .2s}.tool-card:hover{background:var(--card-bg);transform:translateY(-3px)}.tool-card h2{font-size:18px;margin:4px 0 8px}.tool-card p{font-size:14px;color:#626b7f;line-height:1.6}.card-race{--card-bg:#e9effb}.card-ladder{--card-bg:#f0ebf7}.card-wheel{--card-bg:#f9ecea}.card-timer{--card-bg:#f8f1de}.card-time{--card-bg:#e9f2ec}.card-vote{--card-bg:#e8f1f6}.card-art{width:100%;height:140px;display:block}
.mini-racer{animation:mini-bounce 3.6s ease-in-out infinite;transform-box:fill-box;transform-origin:center}.mini-racer.two{animation-delay:-1.1s}.mini-racer.three{animation-delay:-2.2s}.mini-wheel{transform-origin:160px 78px;animation:mini-spin 9s cubic-bezier(.5,.05,.3,1) infinite}.mini-route{stroke-dasharray:310;animation:mini-trace 4s ease-in-out infinite}.mini-hand{transform-origin:160px 81px;animation:mini-spin 12s linear infinite}.mini-slot{animation:mini-fill 3.8s ease-in-out infinite;animation-delay:var(--delay)}.mini-vote{transform-box:fill-box;transform-origin:bottom;animation:mini-grow 4s ease-in-out infinite;animation-delay:var(--delay)}
@keyframes mini-bounce{0%,100%{transform:translateY(0) rotate(-8deg)}40%{transform:translateY(10px) rotate(15deg)}70%{transform:translateY(-6px) rotate(-12deg)}}@keyframes mini-spin{to{transform:rotate(360deg)}}@keyframes mini-trace{0%,15%{stroke-dashoffset:310}75%,100%{stroke-dashoffset:0}}@keyframes mini-fill{0%,100%{opacity:.4}50%{opacity:1}}@keyframes mini-grow{0%,100%{transform:scaleY(.6)}50%,70%{transform:scaleY(1)}}
.ad-placeholder{display:grid;place-items:center;min-height:120px;margin:32px 0 0;border-radius:16px;background:#eceef3;color:#737b8b;font-size:14px;user-select:none}.home-bottom{padding-top:16px}.home-guides{border:0;padding-top:16px}.home-guides>p{margin:8px 0 16px}.guide-links>a{border-color:#e8eaf1}.content-footer{border:0;margin-top:24px}
.workspace{display:block;min-height:calc(100vh - 88px)}.sidebar{display:flex;gap:8px;overflow:auto;padding:8px 0 20px;border:0;background:transparent}.nav-item{width:auto;flex-shrink:0;padding:10px 16px;margin:0;border-radius:14px;min-height:44px;font-weight:400}.nav-item.active{font-weight:400;background:#e7ebf8}.nav-item b{display:none}.work-main,.playing:has(#marble-canvas) .work-main{padding:12px 0 40px}.work-heading{margin-bottom:12px}.work-heading h1{font-size:28px}.members-bar{border:0;padding:4px 0 16px;margin-bottom:12px;gap:12px}.member-chip{border:0;border-radius:14px;padding:3px 8px;background:#fff}.add-member{border:0;background:#e9edf6;border-radius:12px}.game-area{border:0;border-radius:22px}.panel-toolbar{border:0;padding:20px 24px 8px}.panel-toolbar>strong{font-weight:400}.marble-screen{border:0;border-radius:16px;background:#f9fafc}.marble-hud{border:0;background:#f4f6fa;color:var(--muted)}.race-ranking li{border-left:0;border-radius:10px;background:#f3f5fa}.race-map{border:0;border-radius:14px;background:#f4f5f9}.race-map.selected{background:#e8edfb;box-shadow:inset 0 0 0 1.5px #aabbe9}.race-map strong{font-weight:400}.wheel-items{border:0;background:#fafbfc}.ladder-board{border-radius:16px}.dislike-row label,.time-tools label{font-weight:400}.vote-option{border-color:transparent;background:#f4f6fa;border-radius:14px}.vote-option.picked{border-color:#aabbe9}.vote-option strong{font-weight:400}.option-letter{border:0;border-radius:8px}.time-suggestion{border:0;border-radius:10px;background:#f1f4fa}.schedule-scroll{border-block:0}.code-badge{border:0;border-radius:12px;background:#e9edf7}.result-summary{border-top:0}.result-summary-row{border-bottom-color:#eff1f6}.result-summary-row:first-child{border-radius:12px}.result-dialog{border:0}
dialog{border:0;border-radius:24px;box-shadow:0 20px 70px #30364a26}dialog::backdrop{background:#30364a55}dialog label,dialog legend,.avatar-picker legend{font-weight:400}dialog input,dialog textarea,dialog select{font-weight:400!important}dialog input:not([type=checkbox]):not([type=radio]),dialog textarea{border:1px solid #dce1eb;border-radius:12px;background:#fafbfe}dialog .note{font-weight:400;background:#f2f4f9;border-radius:12px}.modal-head h2{font-size:18px}.icon-btn{border-radius:50%}.avatar-option{border-radius:14px}.avatar-picker legend{font-size:14px}
.timer-stage{display:flex;flex-direction:column;align-items:center;padding:40px 24px 56px;gap:20px}.timer-display{font-size:clamp(52px,9vw,96px);line-height:1.2;letter-spacing:-3px;font-variant-numeric:tabular-nums;font-weight:400}.timer-stage>p{color:var(--muted);font-size:14px;min-height:24px}.timer-presets{display:flex;justify-content:center;flex-wrap:wrap;gap:8px}.timer-controls{display:flex;gap:12px;margin-top:8px}.timer-controls button{min-width:130px}.timer-finished{background:#f5f0dc}.timer-finished .timer-display{color:#9b732a}.segmented{border-radius:12px}.segmented button{border-radius:9px;font-weight:400}
@media(max-width:1000px){.hero{gap:32px;grid-template-columns:1fr 280px}.hero-actions{flex-wrap:wrap}.tool-card{padding:12px 18px 20px}.nav-item{padding:10px 12px}.site-header .header-right .pill{display:none}}
@media(max-width:760px){.site-header,.landing,.workspace,.home-guides{width:calc(100% - 32px);margin-inline:auto}.site-header{height:76px;padding:0;gap:12px}.brand{font-size:20px;gap:7px}.brand-symbol{width:36px;height:36px}.hero{grid-template-columns:1fr;padding:20px 0 28px;gap:24px}.hero h1{font-size:28px}.hero-copy>p{font-size:14px}.hero-actions{gap:8px;margin-top:20px}.hero-actions>*{flex:1;min-width:140px;padding-inline:10px}.join-panel{padding:20px}.tool-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.tool-card{padding:6px 14px 18px;border-radius:18px}.card-art{height:100px}.tool-card h2{font-size:16px;word-break:keep-all;min-height:43px;display:flex;align-items:end;margin-bottom:6px}.tool-card p{font-size:14px;word-break:keep-all}.sidebar{padding:4px 0 16px;gap:6px}.nav-item{padding:8px 12px}.work-main,.playing:has(#marble-canvas) .work-main{padding:8px 0 28px}.members-label{width:auto}.members-bar{gap:10px}.member-list{gap:6px}.work-heading h1{font-size:24px}.panel-toolbar{padding:16px 16px 8px}.game-area{border-radius:18px}.ad-placeholder{min-height:100px;margin-top:24px}.home-bottom{align-items:flex-start}.header-right .small.outline{font-size:12px;padding:8px}.timer-stage{padding:28px 16px 40px;gap:18px}.timer-controls button{min-width:112px}.timer-display{letter-spacing:-2px}dialog{padding:24px}.modal-head h2{font-size:18px}.home-guides{padding-top:8px}.wheel-side .game-controls{margin-top:20px}}
.work-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.sound-controls{display:flex;gap:6px}.sound-controls button{font-size:12px;font-weight:400;padding:7px 10px;background:transparent;color:var(--muted,#72798b);border:0;border-radius:20px}.sound-controls button[aria-pressed=true]{background:var(--soft);color:var(--accent)}.sound-controls span{margin-left:4px}.sound-controls button:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.ladder-board{max-height:400px;overscroll-behavior:contain}.ladder-result rect{fill:#dfe4ec}.ladder-result text{font-weight:700;fill:#697083}.ladder-result.open rect{fill:#edf0fc}.ladder-result.open text{fill:var(--ink)}.ladder-route{animation-duration:9s}
.wheel-editor{padding:22px 24px;background:#fafbfe}.wheel-editor-head{display:flex;justify-content:space-between;align-items:end;gap:16px;margin-bottom:18px}.wheel-editor-head label{display:flex;flex-direction:column;gap:7px;font-size:14px}.probability-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 24px}.probability-list label{display:grid;grid-template-columns:minmax(100px,1fr) minmax(100px,1.3fr) 42px;align-items:center;gap:10px;font-size:13px}.probability-list label>span{display:flex;align-items:center;gap:7px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.probability-list i{width:9px;height:9px;border-radius:50%;flex:none}.probability-list input{width:100%;accent-color:var(--accent)}.probability-list output{text-align:right;font-variant-numeric:tabular-nums}.penalty-examples{margin-top:18px;padding:14px;background:var(--canvas);border-radius:12px}.penalty-examples summary{cursor:pointer;font-size:14px}.penalty-examples button{display:block;padding:8px 0;font-size:13px;color:var(--accent)}
.vote-create{max-width:620px;margin:auto;padding:36px}.vote-create h2{font-size:20px;margin-bottom:20px}.vote-create label{display:block;font-size:14px;margin:16px 0}.vote-create input:not([type=checkbox]),.vote-create textarea{display:block;width:100%;margin-top:8px;padding:12px;border:1px solid #a8b3c2;border-radius:10px;font-weight:400}.vote-create .checkbox{justify-content:flex-start;gap:8px;min-height:44px;margin:12px 0;white-space:nowrap;cursor:pointer}.vote-create .checkbox input{flex:0 0 20px;width:20px;height:20px;margin:0;padding:0}.vote-create>.primary{width:100%;margin-top:4px}.vote-waiting{min-height:420px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;text-align:center;padding:32px}.vote-waiting h2{font-size:22px}.vote-waiting p,.vote-waiting span{font-size:14px;color:var(--muted)}
.lap-list{list-style:none;width:min(420px,100%);margin:6px 0 0;padding:0;border-top:1px solid var(--line);max-height:220px;overflow:auto}.lap-list li{display:flex;justify-content:space-between;padding:12px 8px;border-bottom:1px solid var(--line);font-size:14px}.lap-list strong{font-variant-numeric:tabular-nums}.timer-display{font-variant-numeric:tabular-nums}
.calendar-head,.calendar-foot{display:flex;align-items:center;justify-content:space-between}.calendar-head button{font-size:24px;width:40px;height:40px}.calendar-week,.calendar-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:4px}.calendar-week span{text-align:center;padding:10px 0;font-size:12px;color:var(--muted)}.calendar-grid button,.calendar-grid i{height:38px;border-radius:10px;font-size:13px}.calendar-grid button:hover{background:var(--canvas)}.calendar-grid button.selected{background:var(--accent);color:#fff}.calendar-foot{margin-top:12px;font-size:13px;color:var(--muted)}.calendar-foot button{color:var(--accent);font-size:13px}.time-cell.edit{cursor:crosshair}.time-cell.compare{cursor:default}.schedule-bottom .danger{color:#b94848}.time-cell.mine.compare{box-shadow:inset 0 0 0 3px #274da8}
@media(max-width:760px){.probability-list{grid-template-columns:1fr}.wheel-editor-head{align-items:stretch;flex-direction:column}.wheel-editor-head label,.wheel-editor-head select,.wheel-editor-head button{width:100%;max-width:none}.vote-create{padding:24px 16px}.timer-display{font-size:clamp(38px,13vw,64px)}}
.ladder-board{scroll-behavior:smooth}.ladder-runner{filter:drop-shadow(0 3px 5px #30364a22)}.runner-name{paint-order:stroke;stroke:#fff;stroke-width:6px;stroke-linejoin:round}.ladder-controls{justify-content:flex-end}.ladder-controls p,.ladder-controls #result-view{margin-right:auto}.ladder-controls .ladder-mismatch{color:#b94848}.timer-display{display:block;width:9ch;text-align:center;white-space:nowrap;font-variant-numeric:tabular-nums lining-nums;font-feature-settings:"tnum" 1,"lnum" 1;letter-spacing:0!important}.schedule-mode-tabs{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:20px 24px 0;padding:5px;background:#eef1f7;border-radius:16px}.schedule-mode-tabs button{position:relative;display:flex;flex-direction:column;align-items:flex-start;gap:2px;min-height:64px;padding:11px 16px;border-radius:12px;text-align:left;color:var(--muted)}.schedule-mode-tabs button span{font-size:15px}.schedule-mode-tabs button small{font-size:12px;font-weight:400;opacity:.8}.schedule-mode-tabs button.selected{background:#fff;color:var(--accent);box-shadow:0 2px 8px #30364a16}
@media(max-width:760px){.schedule-mode-tabs{margin:16px 12px 0}.schedule-mode-tabs button{padding:10px;min-height:60px}.schedule-mode-tabs button small{font-size:11px}.ladder-controls{flex-direction:row}.ladder-controls button{flex:1}}
.timer-display{display:flex;justify-content:center;width:auto;max-width:100%;font-size:clamp(30px,8vw,96px)}
.tool-title{display:flex;align-items:center;gap:8px;min-width:0}.tool-reset{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;min-height:36px;flex-shrink:0;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;color:#7c8597}.tool-reset:hover{background:transparent;box-shadow:none;color:#303c53}.tool-reset:focus-visible{outline:2px solid currentColor;outline-offset:2px}
.timer-digit{display:inline-block;flex:0 0 .66em;width:.66em;text-align:center}.timer-separator{display:inline-block;flex:0 0 .28em;width:.28em;text-align:center}
.ladder-board{scroll-behavior:auto!important}.ladder-board svg{width:auto;height:1650px;margin-inline:auto}.ladder-board .svg-name,.ladder-board .svg-role{font-size:14px;font-weight:400}.schedule-scroll{max-height:none;overflow-x:auto;overflow-y:visible}.schedule .date-head,.schedule .time-corner{position:static}.schedule.scroll-mode,.schedule.scroll-mode button{touch-action:pan-x pan-y}
.member-chip{height:46px;min-height:46px;box-sizing:border-box}.member-list{align-items:center}.add-member{width:46px;height:46px;min-height:46px;flex-shrink:0}.member-picker{position:relative;display:inline-block;min-width:140px}.member-picker-trigger{display:flex;align-items:center;gap:9px;min-height:44px;padding:7px 16px 7px 10px;background:#f0f3f9;border-radius:12px;width:100%;font-size:14px}.member-picker-trigger>svg{margin-left:auto;flex-shrink:0}.member-picker-trigger>span{white-space:nowrap}.member-picker-menu{position:absolute;top:calc(100% + 6px);left:0;min-width:100%;width:max-content;max-height:300px;overflow:auto;background:white;padding:6px;border-radius:14px;box-shadow:0 8px 30px #30364a26;z-index:30}.member-picker-menu button{display:flex;align-items:center;gap:10px;padding:9px 14px;width:100%;border-radius:9px;text-align:left;font-size:14px}.member-picker-menu button:hover{background:#edf0fc}.member-picker [hidden]{display:none!important}.game-area:has(.member-picker){overflow:visible}select{appearance:none;padding-right:36px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%23697386' stroke-width='1.5'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 12px center}
.member-picker-static{cursor:default}
.probability-editor{padding:18px 0 2px}.probability-track{position:relative;display:flex;height:36px;margin:6px 0 28px;border-radius:9px;isolation:isolate}.probability-track>div:first-child{border-radius:9px 0 0 9px}.probability-track>div:last-of-type{border-radius:0 9px 9px 0}.probability-handle{position:absolute;top:-7px;height:50px;width:22px;margin-left:-11px;border:3px solid #fff;border-radius:8px;background:#505c7d;box-shadow:0 2px 6px #30364a40;touch-action:none;cursor:ew-resize;padding:0}.probability-handle:before{content:'';position:absolute;inset:12px 6px;border-left:2px solid white}.probability-labels{display:flex;flex-wrap:wrap;gap:12px 22px}.probability-labels>span{display:flex;align-items:center;gap:7px;font-size:13px}.probability-labels i{width:10px;height:10px;border-radius:50%}.probability-labels output{color:#626d83;font-variant-numeric:tabular-nums}.time-cell.compare{display:grid;place-items:center}
@media(prefers-reduced-motion:reduce){.card-art *{animation:none!important}.tool-card:hover{transform:none}.avatar-option img{transition:none}.ladder-board{scroll-behavior:auto}}
.time-cell.edit{cursor:pointer;color:#97651b}.time-cell.edit.mine{box-shadow:inset 0 0 0 2px #c28a32}.time-cell.edit.mine:after{content:'✓'}#time-edit.selected{color:#97651b;background:#fffaf0}
.schedule-share-actions{display:flex;justify-content:flex-end;padding:20px 24px 28px}.schedule-share-actions button{margin:0;min-height:44px}@media(max-width:760px){.schedule-share-actions{padding:20px 16px 24px}}
.item-editor{border:0;padding:0;margin:20px 0;min-width:0}.item-editor legend{font-size:14px;font-weight:400;margin-bottom:10px}.item-editor-rows{display:grid;gap:8px}.item-editor-row{display:flex;align-items:center;gap:8px}.item-editor-row input{min-width:0;flex:1;margin:0!important;font-weight:400}.item-editor .item-grip,.item-editor .item-remove{flex:0 0 32px;height:40px;padding:0;color:#788297;font-size:22px}.item-grip{touch-action:none;cursor:grab}.item-editor-row.dragging{opacity:.6}.item-editor .item-add{display:flex;align-items:center;justify-content:center;gap:6px;width:calc(100% - 80px);margin:10px 40px 0;padding:10px 12px;min-height:44px;border:0;border-radius:10px;background:#f0f3f9;color:#626d83;font-size:14px;font-weight:400}.item-editor .item-add:hover:not(:disabled){background:#e7ecf5;color:#303c53}.item-editor .item-add:disabled{opacity:.5}.item-add>span{font-size:20px;line-height:1}.item-editor-row .item-remove:hover{color:#b94848}
.header-right .code-badge,.header-right .invite-link{color:var(--ink);background:#e9edf7}.header-right .code-badge:hover,.header-right .invite-link:hover{color:var(--ink);background:#dfe6f4}
.list-toggle{display:none}
.game-area:has(.schedule-sticky-header){overflow:visible}
.schedule-sticky-header{position:sticky;top:0;z-index:5;overflow:hidden;background:#fff;margin-inline:24px}
.schedule-header-row{margin:0;max-width:none}
.schedule-sticky-header .date-head,.schedule-sticky-header .time-corner{background:#fff}
.probability-handle{width:44px;margin-left:-22px;border:0;background:transparent;box-shadow:none}
.probability-handle:before{inset:4px 18px;border:1px solid #a7b1c3;border-radius:3px;background:#fff;box-shadow:none}
.probability-handle:after{content:none}
@media(max-width:760px){
  .list-toggle{display:inline-flex;align-items:center;min-height:44px;padding:8px 12px;font-size:13px;color:var(--muted)}
  .work-heading{margin-bottom:6px}
  .members-bar{padding-top:0;padding-bottom:6px;margin-bottom:4px}
  .members-bar>.list-toggle{margin-left:auto}
  .members-bar:not(.is-expanded) .member-list{display:none}
  .members-bar.is-expanded .member-list{width:100%}
  .roles-toggle{margin-left:4px}
  .ladder-roles:not(.is-expanded){display:none}
  .schedule-sticky-header{margin-inline:8px}
}
.modal-notice{margin:16px 0;padding:12px 14px;border-radius:10px;background:#fff1ee;color:#a03932;font-size:14px;font-weight:400;overflow-wrap:anywhere}
.modal-notice[hidden]{display:none}
.modal-notice-floating{position:absolute;top:12px;left:20px;right:20px;z-index:5;margin:0;box-shadow:0 4px 16px #30364a20;pointer-events:none}
/* Editable cells handle dragging; labels and surrounding space remain scrollable. */
.schedule.scroll-mode button.time-cell.edit{touch-action:none}
@media(max-width:760px){
  input:not([type=checkbox]):not([type=radio]),select,textarea,dialog input,dialog select,dialog textarea,.vote-create input,.vote-create textarea,.item-editor-row input{font-size:16px!important}
  .ladder-board{padding:12px 6px;margin-inline:12px}
  .ladder-board svg{width:auto;min-width:500px!important;max-width:none;height:1650px}
  .schedule-scroll{margin-inline:8px}
  .schedule{min-width:calc(34px + var(--days)*48px);width:100%;grid-template-columns:34px repeat(var(--days),minmax(48px,1fr))}
  .schedule .time-cell{min-width:0;min-height:32px;font-size:12px}
  .schedule .time-label{font-size:10px;padding-inline:0;white-space:nowrap}
  .schedule .date-head{min-width:0;font-size:10px;padding-inline:0;overflow:hidden}
  .schedule .date-head strong{font-size:11px}
}
.vote-settings{display:flex;flex-wrap:wrap;gap:8px 24px;margin:16px 0}.vote-settings .checkbox{margin:0!important}.vote-person,.vote-retry-controls{display:flex;align-items:center;gap:10px}.vote-retry-controls{flex-wrap:wrap;justify-content:center;margin:8px 0}.vote-person{font-size:14px}.header-right .invite-link{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;min-width:40px;padding:0;border-radius:12px;margin-left:-12px}.header-right .invite-link svg{width:16px;height:16px}@media(max-width:760px){.header-right .invite-link{margin-left:0}.vote-retry-controls{width:100%}}
.avatar-option:has(input:disabled){cursor:not-allowed;background:#f1f3f6}.avatar-option:has(input:disabled) img{opacity:.3;transform:none}.avatar-used{position:absolute;bottom:3px;font-size:10px;color:#788297}
.brand{gap:8px;letter-spacing:-.8px;color:var(--ink)}.brand-symbol{width:42px;height:42px}.brand-wordmark{font-size:23px;line-height:1;font-weight:700;transform:translateY(1px)}@media(max-width:760px){.brand{gap:6px}.brand-symbol{width:36px;height:36px}.brand-wordmark{font-size:20px;letter-spacing:-.7px}}
.vote-close-muted{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:12px 20px;border-radius:12px;background:#edf0f5;color:#626d83;font-size:14px}.vote-close-muted:hover{background:#e2e7ef;color:#30364a}
.item-editor legend{display:flex;justify-content:space-between;gap:16px;width:100%}.item-count{font-variant-numeric:tabular-nums;white-space:nowrap}.item-count[data-status="match"]{color:#2f7d5a}.item-count[data-status="mismatch"]{color:#b94848}
.result-summary.neutral-rows .result-summary-row{background:transparent;border-radius:0}
.result-summary.neutral-rows .result-summary-row.is-highlighted{background:var(--soft);border-radius:12px}
.ladder-roles{display:flex;flex-wrap:wrap;gap:8px;padding:8px 24px 16px}.ladder-roles>span{padding:6px 12px;border-radius:8px;background:#f4f6fa;color:var(--muted);font-size:13px}
button.time-cell.compare{cursor:pointer;touch-action:pan-x pan-y}.slot-detail{font-size:24px!important;font-variant-numeric:tabular-nums;margin:8px 0 12px}
@media(max-width:760px){.ladder-roles{padding-inline:16px}}
.sound-controls button{display:inline-flex;align-items:center;gap:6px}.sound-controls button span{display:inline-flex;align-items:center;margin-left:0}
.guide-screenshot{margin:32px 0 40px}.guide-screenshot img{display:block;width:100%;height:auto;border-radius:16px;background:#fff}.guide-screenshot figcaption{margin:14px 4px 0;font-size:14px;line-height:1.8;color:var(--muted);word-break:keep-all}
.house-ad{display:flex;align-items:center;justify-content:space-between;gap:24px;margin:32px 0 0;padding:24px 36px;background:#e9edf5;border-radius:16px;color:#30364a;overflow:hidden}
.house-ad-label{display:block;font-size:11px;color:#59647a;letter-spacing:.02em}
.house-ad-copy p,.guide-page article .house-ad-copy p{font-size:21px;line-height:1.45;font-weight:600;margin:9px 0 16px;word-break:keep-all}
.house-ad-link{display:inline-block;font-size:13px;color:#4359a4;text-decoration:underline;text-underline-offset:4px}
.house-ad-art{position:relative;display:flex;align-items:end;gap:0;padding-top:28px;flex-shrink:0}
.house-ad-art>span{position:absolute;top:0;left:10px;background:white;border-radius:12px 12px 12px 2px;padding:6px 12px;font-size:12px;transform:rotate(-5deg)}
.house-ad-art img{object-fit:contain;transform:rotate(-12deg)}
.house-ad-art img+img{margin-left:-8px;transform:rotate(12deg)}
.house-ad-link:focus-visible{outline:2px solid #4359a4;outline-offset:5px;border-radius:2px}
.guide-page article .inquiry-email{text-decoration:none;margin-top:24px}
.guide-page article .inquiry-note{font-size:13px;color:var(--muted);margin-top:16px}
@media(max-width:600px){.house-ad{padding:22px 20px;gap:12px;margin-top:24px}.house-ad-copy p,.guide-page article .house-ad-copy p{font-size:18px}.house-ad-art img{width:54px;height:54px}.house-ad-art img+img{width:46px;height:46px}.house-ad-art>span{font-size:10px;left:0;white-space:nowrap}.guide-page .house-ad{padding:20px 16px}}
/* Shared footer stays outside the home-only discovery content. */
.game-view-tools,.game-close{display:none}
@media(hover:none){.tool-card:active{filter:brightness(.97)}button:active:not(:disabled),a.outline:active{filter:brightness(.95)}}
.schedule-people-tooltip{position:fixed;z-index:90;display:flex;flex-wrap:wrap;gap:5px;max-width:calc(100vw - 16px);padding:8px;border:1px solid #e1e5eb;border-radius:12px;background:#fff;box-shadow:0 4px 16px #30364a14;pointer-events:none}.schedule-people-tooltip[hidden]{display:none}.slot-people{display:flex;flex-wrap:wrap;gap:8px 16px;margin-top:16px;font-size:14px}
#wheel-tooltip{position:fixed;z-index:90;max-width:calc(100vw - 16px);padding:8px 12px;border-radius:8px;background:#30364a;color:#fff;font-size:13px;line-height:1.5;pointer-events:none;white-space:normal}
.result-dialog .modal-head h2:focus{outline:none}
.wheel-pointer{width:26px;height:34px;left:calc(50% - 13px);top:-5px;border:0;background:#e76873;clip-path:path('M 6 0 L 20 0 Q 26 0 25 7 L 16 30 Q 13 36 10 30 L 1 7 Q 0 0 6 0 Z')}
body.game-expanded .game-area>.race-map-picker{display:none}
.ladder-half-label{display:block;margin:0 16px 4px;color:var(--muted);font-size:11px}
@media(max-width:760px){
 .game-view-tools{display:flex;justify-content:flex-end;margin-left:auto;padding:0}
 .game-expand{display:grid;place-items:center;width:36px;height:36px;padding:0;color:var(--muted)}
 .marble-hud{align-items:center;padding-block:4px}
 .dislike-row .game-view-tools{align-self:center}
 .ladder-controls{display:flex;flex-wrap:wrap;gap:10px}
 .ladder-controls .ladder-mismatch{flex:0 0 100%;margin:0;font-size:12px}
 .ladder-controls button{min-width:0;white-space:nowrap}
 .ladder-board{overflow-x:hidden!important}
 .ladder-board svg{display:block;width:100%!important;min-width:0!important;max-width:100%;height:auto!important}
 .ladder-split .ladder-board{height:230px;max-height:230px;margin-bottom:6px;border-radius:16px 0 0 16px}
 .ladder-split .ladder-board-copy{border-radius:0 16px 16px 0}
 body.game-expanded{overflow:hidden}
 body.game-expanded .game-area{position:fixed;inset:0;z-index:80;border-radius:0;padding:calc(env(safe-area-inset-top) + 64px) 0 env(safe-area-inset-bottom);height:100dvh;display:flex;flex-direction:column;overflow:hidden;background:#f0f4ff}
 body.game-expanded .game-area>.panel-toolbar,body.game-expanded .game-area>.race-map-list,body.game-expanded .game-area>.list-toggle,body.game-expanded .game-area>.ladder-roles,body.game-expanded .game-area>.dislike-row{display:none}
 body.game-expanded .marble-stage{flex:1;min-height:0;padding:0;display:flex;flex-direction:column;gap:0}
 body.game-expanded .marble-screen{flex:1;min-height:0;display:flex;flex-direction:column}
 body.game-expanded #marble-canvas{flex:1;min-height:0;height:0}
 body.game-expanded .race-ranking,body.game-expanded .marble-hud,body.game-expanded .game-controls,body.game-expanded .game-view-tools{display:none}
 body.game-expanded .ladder-board{flex:1;min-height:0;max-height:none;height:0;margin:0;padding:12px 0;border-radius:0;background:var(--canvas)}
 body.game-expanded .game-area:has(.ladder-board){background:var(--canvas)}
 body.game-expanded .marble-screen{border-radius:0}
 body.game-expanded .game-close{display:grid;place-items:center;position:absolute;right:12px;top:calc(env(safe-area-inset-top) + 12px);width:40px;height:40px;padding:0;border:1px solid #dce2ec;border-radius:50%;background:#ffffffdd;color:var(--ink);z-index:6}
 body.game-expanded .game-area{padding-top:env(safe-area-inset-top)}
 body.game-expanded .ladder-board{padding-top:64px;padding-bottom:80px}
 body.game-expanded .game-area>.game-controls{display:flex;position:absolute;bottom:env(safe-area-inset-bottom);left:0;right:0;justify-content:center;padding:12px 16px;margin:0;z-index:5;transform:translateY(0);opacity:1;transition:transform 300ms cubic-bezier(.22,1,.36,1),opacity 200ms ease}
 body.game-expanded .game-area>.game-controls.viewport-controls-hidden{transform:translateY(calc(100% + 24px));opacity:0;pointer-events:none}
 body.game-expanded .game-area>.game-controls>#race-stop,body.game-expanded .game-area>.game-controls>#ladder-stop,body.game-expanded .game-area>.game-controls>.ladder-mismatch,body.game-expanded .game-area>.game-controls>#result-view{display:none}
 body.game-expanded .game-area>.game-controls>.outline{background:#fff}
 body.game-expanded .game-area:has(#marble-canvas)>.game-controls>#result-view{display:none}
 body.game-expanded .game-area:has(#marble-canvas)>.game-controls>.primary{width:100%;max-width:360px;margin:0}
}
.app-loading{min-height:100vh;min-height:100dvh;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:24px;background:var(--canvas)}
@media(prefers-reduced-motion:reduce){body.game-expanded .game-area>.game-controls{transition:none}}
.loading-brand{display:flex;flex-direction:column;align-items:center;transform:translateY(-20px)}
.loading-mark{display:block;width:72px;height:72px}.loading-mark svg{display:block;width:100%;height:100%}
.loading-name{margin-top:12px;font-size:20px;font-weight:700;letter-spacing:-.5px;color:var(--ink)}
.loading-dots{display:flex;gap:7px;margin-top:24px;height:8px;align-items:center}.loading-dots i{width:5px;height:5px;border-radius:50%;background:#91b9f8;animation:loading-dot 1.2s ease-in-out infinite}.loading-dots i:nth-child(2){animation-delay:.15s}.loading-dots i:nth-child(3){animation-delay:.3s}
body:has(.app-loading)>#discovery-content,body:has(.app-loading)>.content-footer{display:none}
@keyframes loading-dot{0%,70%,100%{opacity:.35;transform:translateY(0)}35%{opacity:1;transform:translateY(-3px)}}
@media(prefers-reduced-motion:reduce){.loading-dots i{animation:none;opacity:.65}}
#marble-canvas{touch-action:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;-webkit-tap-highlight-color:transparent}
@media(max-width:760px){#marble-canvas{height:460px}}
body{min-height:100vh;min-height:100dvh;display:flex;flex-direction:column}
body>#app,body>.guide-page{flex:1 0 auto}
body>.guide-page{width:100%}
body>.site-header,body>.content-footer{flex-shrink:0}
body>.content-footer{border-top:1px solid #e1e5eb}
body>.content-footer,body>.guide-page+.content-footer{width:min(1160px,calc(100% - 48px));max-width:1160px;margin:24px auto 0;padding:24px 0 32px}
@media(max-width:760px){body>.content-footer,body>.guide-page+.content-footer{width:calc(100% - 32px);gap:16px;margin-top:16px;padding:20px 0 max(16px,env(safe-area-inset-bottom))}.home-guides{padding-bottom:0}}

/* Short presses, soft settling; drag surfaces remain immediate. */
:root{--motion-settle:cubic-bezier(.22,1,.36,1);--motion-press:cubic-bezier(.2,0,0,1)}
button,a{transition:background-color 180ms ease-out,color 180ms ease-out,border-color 180ms ease-out,box-shadow 220ms ease-out,transform 280ms var(--motion-settle)}
button:active:not(:disabled){transform:scale(.96);transition-duration:80ms}
.tool-card{transition:background-color 180ms ease-out,transform 320ms var(--motion-settle),box-shadow 240ms ease-out}
@media(hover:hover) and (pointer:fine){.tool-card:hover{transform:translateY(-4px);box-shadow:0 8px 20px #2027350a}.tool-card:active{transform:translateY(-1px) scale(.96)}}
@media(hover:none){.tool-card:hover{transform:none}}
.probability-handle,.item-grip,.time-cell{transition:none!important}.probability-handle:active,.item-grip:active{transform:none!important}
.avatar-option img{transition:transform 300ms var(--motion-settle)}
.member-picker-trigger>svg{transition:transform 240ms var(--motion-settle)}
.member-picker-trigger[aria-expanded=true]>svg{transform:rotate(180deg)}
.member-picker-menu:not([hidden]){transform-origin:top center;animation:menu-settle 200ms var(--motion-settle)}
@keyframes menu-settle{from{opacity:0;transform:translateY(-4px) scale(.98)}to{opacity:1;transform:none}}
dialog{opacity:0;transform:translateY(8px) scale(.98);transition:opacity 160ms ease-out,transform 200ms var(--motion-settle),display 200ms allow-discrete,overlay 200ms allow-discrete}
dialog[open]{opacity:1;transform:none;transition-duration:220ms,300ms,300ms,300ms}
dialog::backdrop{background:#20273500;transition:background-color 200ms ease-out,display 200ms allow-discrete,overlay 200ms allow-discrete}
dialog[open]::backdrop{background:#20273566}
@starting-style{dialog[open]{opacity:0;transform:translateY(12px) scale(.96)}dialog[open]::backdrop{background:#20273500}}
#toast{transition:opacity 180ms ease-out,transform 280ms var(--motion-settle)}
.result-summary-row{animation-timing-function:var(--motion-settle);animation-duration:340ms;animation-delay:calc(min(var(--row,0),5)*40ms)}
@media(prefers-reduced-motion:reduce){button,a,dialog,dialog::backdrop,.avatar-option img,.member-picker-trigger>svg,#toast{transition:none!important}.member-picker-menu:not([hidden]){animation:none}button:active:not(:disabled),.tool-card:hover,.tool-card:active{transform:none!important}dialog,dialog[open]{transform:none}}

.home-notice{display:flex;align-items:center;gap:14px;padding:12px 16px;margin:0 0 20px;background:#eef1f8;border-radius:12px;font-size:13px;color:#535d73}.home-notice>span:first-child{color:#5671d1;flex-shrink:0}.home-notice>span:nth-child(2){flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.home-notice time,.notice-list time{color:#7b8393;font-size:12px;white-space:nowrap}.notice-list a{display:flex;justify-content:space-between;gap:16px;padding:20px 0;border-bottom:1px solid #e9ecf2}.notice-date{display:block;color:#7b8393;font-size:13px;margin:0 0 28px}.notice-back{display:inline-block;margin-top:32px;color:#5671d1}.home-notice:hover{background:#e7ecf7}@media(max-width:600px){.home-notice{gap:10px;padding:10px 12px}.home-notice time{display:none}.notice-list a{flex-direction:column;gap:6px}}
.landing .home-notice{margin-bottom:0}.home-notice+.hero{padding-top:16px}
@media(min-width:761px){.landing .home-notice+.hero{padding-top:32px}}
.site-header .header-right>a[href="/guide"]{font-size:14px;line-height:1;position:relative;top:5.5px}
@media(max-width:760px){.site-header .header-right>a[href="/guide"]{top:4px}}
.race-map>svg.course-symbol{display:block;width:46px;height:46px;position:relative;top:-2px;align-self:center}.race-map{gap:12px}@media(max-width:600px){.race-map>svg.course-symbol{width:40px;height:40px}.race-map{gap:6px}}
.brand .brand-symbol{position:relative;top:2px}

/* Shared action buttons: page actions, dialogs and chat use the same geometry. */
:root{--button-height:48px;--button-small-height:40px;--button-radius:12px;--button-secondary:#edf0f6;--button-secondary-hover:#e4e8f4}
body .primary,body .outline{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:var(--button-height);height:auto;padding:12px 20px;border:1px solid transparent;border-radius:var(--button-radius);font-size:14px;font-weight:400;line-height:22px;box-shadow:none;vertical-align:middle}
body .primary{background:var(--accent);color:#fff}
body .primary:hover:not(:disabled){background:var(--accent-hover)}
body .outline{background:var(--button-secondary);color:var(--ink)}
body .outline:hover:not(:disabled){background:var(--button-secondary-hover);border-color:transparent}
body .primary:disabled,body .outline:disabled{background:#e8ebf0;color:#6b7482;border-color:transparent;box-shadow:none}
body .primary.small,body .outline.small{min-height:var(--button-small-height);padding:8px 12px;line-height:22px;font-size:14px}
body :is(.primary,.outline)>svg{display:block;width:20px;height:20px;flex-shrink:0}
body :is(.primary,.outline).small>svg{width:18px;height:18px}
.game-controls,.vote-bottom,.timer-controls,.result-actions,.schedule-share-actions{align-items:center;gap:12px}
.game-controls>.primary{margin-left:auto}
.game-controls>#result-view{margin-right:auto}
.wheel-side .game-controls>.primary{margin-left:0}
.panel-toolbar{align-items:center}
.panel-toolbar>.small.outline{margin-left:auto;flex-shrink:0}
body .member-picker-trigger{min-height:var(--button-height);border-radius:var(--button-radius);background:var(--button-secondary);font-size:14px}
@media(max-width:760px){.game-controls,.vote-bottom{align-items:stretch}.game-controls>.primary{margin-left:0}.game-controls>#result-view{margin-right:0}.timer-controls{flex-wrap:wrap;justify-content:center}.timer-controls button{min-width:0;flex:1 1 auto}.result-actions{align-items:stretch}body.game-expanded .game-area>.game-controls>.outline{background:#fff}}
.ladder-conflict-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:24px}.ladder-conflict-actions>button{width:100%;min-width:0;padding:12px 10px;margin:0}
@media(max-width:760px){.workspace .sidebar{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));overflow:visible;gap:6px}.workspace .sidebar .nav-item{width:100%;min-width:0;justify-content:center;padding:8px 4px;gap:5px;font-size:12px}.workspace .sidebar .nav-item svg{width:16px;height:16px}}
@media(max-width:360px){.workspace .sidebar .nav-item{font-size:11px;gap:3px;padding-inline:2px}.workspace .sidebar .nav-item svg{width:14px;height:14px}}
@media(max-width:760px){.landing .tool-card .card-art{width:125%;max-width:none;align-self:center;height:96px}.landing .tool-card h2{min-height:0;display:block;margin:0 0 4px;line-height:1.4}.landing .tool-card h2,.landing .tool-card p{position:relative;top:4px}}
.result-dialog .modal-head{position:sticky;top:0;z-index:3;background:#fff}
.wheel-person-picker{pointer-events:auto;padding:0;border:0;border-radius:50%;background:transparent;min-width:0;min-height:0;line-height:0;cursor:pointer}
.wheel-person-picker:active:not(:disabled){transform:translate(-50%,-50%)}
.wheel-side .game-controls{margin-top:0;align-items:center}
.wheel-side .game-controls>button{margin-top:0;margin-bottom:0}
.wheel-side .game-controls>#result-view{margin:0}
.race-ranking li.is-me{background:#e8edff;box-shadow:inset 0 0 0 1.5px #7d91db;color:#3e54a2}
.my-name{display:inline-flex;align-items:center;gap:8px}
.my-name>img{flex-shrink:0}
.guide-page:has(.notice-date) article{margin-top:12px}
.notice-date{text-align:left;margin-bottom:40px}
.analytics-choice{position:fixed;bottom:16px;left:50%;transform:translateX(-50%);z-index:1000;box-sizing:border-box;width:max-content;max-width:calc(100% - 24px);padding:14px 16px;background:#fff;border:1px solid #e1e5ef;border-radius:14px;box-shadow:0 8px 32px #30374a18;color:#30374a;display:flex;gap:20px;align-items:center}
.analytics-choice p{font-size:13px;line-height:1.5;margin:0;min-width:0;word-break:keep-all;overflow-wrap:normal}.analytics-choice p a{white-space:nowrap}.analytics-choice>div{display:flex;gap:10px;flex:0 0 auto;margin:0;padding:0}.analytics-choice button{box-sizing:border-box;flex:0 0 auto;width:auto;min-width:48px;height:34px;min-height:34px;margin:0;padding:0 12px;border-radius:9px;font-size:13px;line-height:1;font-weight:400}.analytics-choice button[data-consent="yes"]{background:#556bc9;border:1px solid #556bc9;color:#fff}.analytics-choice button[data-consent="yes"]:hover{background:#465bb7;border-color:#465bb7}
@media(max-width:480px){.analytics-choice{gap:16px;bottom:max(4px,env(safe-area-inset-bottom))}.analytics-choice p{font-size:12px}.analytics-choice button{min-width:44px;padding:0 10px}}
button[data-analytics-settings]{color:#556bc9}
