@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');
:root{--ink:#25392f;--paper:#f4f1e9;--muted:#748077;--line:#dddeda;--green:#304e3e}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font-family:'DM Sans',sans-serif}header,main,footer{max-width:1240px;margin:auto}header{padding:30px 36px;display:flex;align-items:center;gap:40px;border-bottom:1px solid var(--line)}.brand{font-family:Manrope,sans-serif;font-size:31px;font-weight:800;text-decoration:none;letter-spacing:-1.7px;color:var(--ink)}.brand span{color:#d16a47;padding-left:5px}.eyebrow{font-size:10px;letter-spacing:2px;font-weight:700}.quiet{background:transparent;border:0;color:var(--ink)}header button{margin-left:auto}main{padding:60px 36px;min-height:75vh}button,input{font:inherit}button{cursor:pointer;border:1px solid var(--line);padding:13px 20px;border-radius:9px;background:#fff;color:var(--ink);font-weight:600;transition:transform .15s,background .15s}button:hover:enabled{transform:translateY(-2px);background:#e5eadf}button:disabled{cursor:default;opacity:.45}button:focus-visible,input:focus-visible{outline:3px solid #cc9d4d;outline-offset:3px}.primary{background:var(--green);border-color:var(--green);color:white}.primary:hover:enabled{background:#456550}input{width:100%;padding:15px;border:1px solid var(--line);border-radius:9px;background:#fafbf8;color:var(--ink)}label{display:block;font-size:12px;font-weight:600;margin:22px 0 9px}h1,h2{font-family:Manrope,sans-serif}h1{font-weight:500;letter-spacing:-3px;font-size:64px;line-height:1.1;margin:24px 0}h2{font-size:23px;font-weight:600;letter-spacing:-.7px;margin:14px 0}p{line-height:1.7;color:var(--muted)}#home{display:grid;grid-template-columns:1.3fr 1fr;gap:100px;align-items:center}.intro p{font-size:16px}.card{background:#fffefa;border:1px solid var(--line);border-radius:18px;padding:30px;box-shadow:0 5px 25px #27392f04}.welcome{max-width:410px;padding:38px}.welcome .primary{width:100%;margin-top:20px;display:flex;justify-content:space-between}.divider{display:flex;align-items:center;gap:15px;margin:25px 0 0;font-size:11px;color:var(--muted)}.divider:before,.divider:after{content:'';flex:1;border-top:1px solid var(--line)}.joinline{display:flex;gap:10px}.joinline input{min-width:0;text-transform:uppercase}.joinline button{white-space:nowrap}.solo{display:block;margin:24px auto 10px}.welcome small{display:block;text-align:center;color:var(--muted);font-size:10px}.art{height:180px;position:relative;margin-top:40px}.art-die{display:block;position:absolute;left:20px;top:5px;transform:rotate(-15deg);font-size:100px;color:#456550;line-height:1}.art-die.small{left:140px;top:45px;font-size:70px;color:#cc9d4d;transform:rotate(15deg)}.art-track{position:absolute;left:245px;top:80px;display:flex;gap:6px;transform:rotate(-10deg)}.art-track i{font-style:normal;border:1px solid #45846f66;background:#e5ece3;width:35px;height:42px;border-radius:6px;display:grid;place-items:center;font-weight:600}.art-track .cross{color:white;background:#45846f;text-decoration:line-through}footer{padding:25px 36px;display:flex;justify-content:space-between;border-top:1px solid var(--line);font-size:10px;letter-spacing:1px;color:var(--muted)}[hidden]{display:none!important}.game-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:30px}.game-heading h1{font-size:39px;letter-spacing:-1.8px;margin:10px 0}.layout{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:24px}.turn{margin-bottom:24px}.turn h2{font-size:24px}.turn p{font-size:13px;margin:0}.dice{display:flex;gap:10px;margin:25px 0;flex-wrap:wrap}.die{width:50px;height:50px;background:var(--dc,#faf9f4);color:white;border-radius:11px;font-size:29px;text-align:center;line-height:50px;box-shadow:0 3px 0 #0000000c}.die.light{color:var(--ink);border:1px solid var(--line)}.actions{display:flex;flex-wrap:wrap;gap:10px}.sheet-title{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px}.sheet-title h2{margin:0}.score{font-size:26px;font-weight:600}.score small{font-size:11px;color:var(--muted);font-weight:400}.track{margin:17px 0}.track-label{display:flex;justify-content:space-between;font-size:11px;margin:0 0 8px;color:var(--tc);font-weight:700}.cells{display:grid;grid-template-columns:repeat(11,minmax(0,1fr)) 24px;gap:5px}.cell{height:43px;padding:0;border-radius:7px;color:var(--tc);border-color:color-mix(in srgb,var(--tc) 30%,white);background:color-mix(in srgb,var(--tc) 7%,white);font-size:16px;position:relative}.cell:disabled{opacity:1}.cell.marked{background:var(--tc);color:white;border-color:var(--tc)}.cell.marked:after{content:'×';position:absolute;font-size:34px;font-weight:400;left:50%;top:50%;transform:translate(-50%,-50%);opacity:.55}.cell.past{opacity:.25}.cell.available{outline:2px solid var(--tc);outline-offset:1px;box-shadow:0 0 0 4px color-mix(in srgb,var(--tc) 12%,transparent)}.lock{display:grid;place-items:center;font-size:13px;color:var(--tc)}.sheet-bottom{border-top:1px solid var(--line);padding-top:20px;margin-top:25px;display:flex;justify-content:space-between;gap:10px;font-size:12px}.sheet-bottom small{color:var(--muted);font-size:10px}.players h2 span{font-size:13px;color:var(--muted);padding-left:4px}.person{padding:17px 0;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;gap:10px}.person b{font-size:13px}.person small{display:block;font-size:10px;color:var(--muted);margin-top:5px}.person .points{font-size:22px}.avatar{width:32px;height:32px;display:grid;place-items:center;border-radius:50%;background:#e7ece2;font-size:12px}.person-info{flex:1}.table-note{font-size:11px;margin-top:25px}#result{border-radius:10px;background:#e7ece2;padding:15px;margin-top:22px;font-size:13px}#error{min-height:24px;color:#a4462c;font-size:13px;margin:24px 0 0}dialog{border:1px solid var(--line);border-radius:18px;max-width:640px;background:var(--paper);color:var(--ink);padding:32px;max-height:85vh}dialog::backdrop{background:#25392f66;backdrop-filter:blur(4px)}dialog .close{float:right}dialog li{font-size:14px;line-height:1.7;margin:12px 0}dialog p{font-size:13px}@media(max-width:1000px){#home{gap:40px}h1{font-size:52px}.art-track{left:200px}.art-track i{width:25px}.layout{grid-template-columns:minmax(0,1fr) 230px}.card{padding:22px}.cells{gap:4px}.cell{font-size:14px}}@media(max-width:760px){header{padding:18px 20px;gap:10px}header>.eyebrow{display:none}header button{font-size:12px;padding:10px}main{padding:36px 20px}#home{grid-template-columns:1fr;gap:20px}.intro h1{font-size:47px}.intro p{font-size:14px}.art{height:135px;margin-top:20px}.art-die{font-size:80px}.art-track{left:190px;top:70px}.art-track i{width:24px;height:32px;font-size:12px}.welcome{max-width:none}.layout{grid-template-columns:1fr}.game-heading h1{font-size:29px}.game-heading button{font-size:11px;max-width:125px}.sheet{padding:18px 12px}.cells{gap:3px;grid-template-columns:repeat(11,minmax(0,1fr)) 17px}.cell{height:36px;font-size:12px;border-radius:5px}.sheet-bottom{font-size:10px}.sheet-bottom small{max-width:110px}.players{padding:22px}.die{width:43px;height:43px;line-height:43px;font-size:25px}footer{padding:20px;font-size:9px}.game-heading{margin-bottom:20px}}

.die svg{width:100%;height:100%;display:block}
@media(max-width:760px){.dice{gap:8px}}

#end{width:min(700px,94vw);max-width:700px}#end-scores{overflow-x:auto}.results-table{border-collapse:collapse;width:100%;font-size:12px;margin:20px 0}.results-table th,.results-table td{text-align:right;padding:12px 6px;border-bottom:1px solid var(--line)}.results-table th:first-child{text-align:left}#end-winner{font-weight:700;color:var(--ink)}#end-confirm{border-top:1px solid var(--line);margin-top:20px}#end-reason{color:var(--ink)}

#ai-panel,#ai-move,#ai-error{border-top:1px solid var(--line);margin-top:25px;padding-top:22px}#ai-panel h3{margin:12px 0;font-size:17px}#ai-panel .table-note{margin-top:10px}#ai-panel label{margin-top:16px}#ai-panel button{margin-top:12px;width:100%}#ai-choice{font-size:13px;color:var(--ink);font-weight:700}#ai-explanation{margin-top:8px}#ai-error-text{color:#a4462c;font-size:12px}

.player-name{background:transparent;border:0;padding:3px 0;font-size:13px;text-align:left;color:var(--ink);text-decoration:underline;text-decoration-color:var(--line);text-underline-offset:4px}.player-name span{color:var(--muted)}.player-name:hover:enabled{transform:none;background:transparent;text-decoration-color:var(--ink)}.board-help{font-size:11px;margin:14px 0}.person-info{min-width:0;overflow-wrap:anywhere}
.roller{display:flex;align-items:center;gap:12px;padding:14px 16px;margin-top:20px;border:1px solid #c7d8ca;background:#eaf0e6;border-radius:12px;color:var(--ink)}.roller-icon{font-size:32px;line-height:1}.roller .eyebrow{display:block;font-size:9px;letter-spacing:1.5px;margin-bottom:5px}.roller strong{display:block;font-size:17px}.dice{min-height:50px}.die.rolling{animation:dice-roll .55s both;animation-delay:var(--delay)}@keyframes dice-roll{0%{opacity:0;transform:translateY(-12px) rotate(-30deg) scale(.65)}35%{opacity:1;transform:translateY(5px) rotate(20deg)}70%{transform:translateY(-4px) rotate(-8deg)}100%{opacity:1;transform:translateY(0) rotate(0)}}
.board-switcher{display:flex;flex-wrap:wrap;gap:7px;position:sticky;top:8px;z-index:2;padding:10px;margin:-10px -10px 20px;background:#fffefa;border:1px solid var(--line);border-radius:12px;box-shadow:0 4px 12px #25392f08}.board-tab{padding:9px 12px;font-size:12px;max-width:100%;overflow-wrap:anywhere}.board-tab span{margin-left:5px;opacity:.7;font-size:11px}.board-tab.selected{background:var(--green);color:white;border-color:var(--green)}.board-tab.selected:hover{background:#456550}.board-tab:hover:enabled{transform:none}.opponent-sheet{background:#eef0fa;border-color:#c6cce3}.opponent-sheet .board-switcher{background:#eef0fa;border-color:#c6cce3}.opponent-sheet .sheet-title h2{color:#464d79}.viewing-other{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;border-bottom:1px solid #c6cce3;padding-bottom:16px;margin-bottom:20px;font-size:12px;color:#464d79}.viewing-other button{padding:9px 12px;font-size:12px;border-color:#b7bed8;background:white}.sheet{scroll-margin-top:16px}.sheet-title{gap:12px}.sheet-title h2{overflow-wrap:anywhere}.sheet-title .score{white-space:nowrap}
@media(max-width:760px){.roller{padding:12px}.roller strong{font-size:16px}.board-switcher{margin:0 0 18px;padding:8px;top:6px}.board-tab{font-size:11px;padding:9px 10px}.sheet-title h2{font-size:21px}.sheet-title .score{font-size:22px}.viewing-other{gap:10px}.dice{min-height:43px}}
@media(prefers-reduced-motion:reduce){.die.rolling{animation:none}.board-tab,button{transition:none}}

.board-controls{margin-top:20px;border-top:1px solid var(--line);padding-top:18px}.board-controls .board-switcher{position:static;margin:0 0 12px;box-shadow:none}.board-controls .viewing-other{border-bottom:0;padding:0;margin:0}.opponent-sheet .board-controls{border-color:#c6cce3}

.turn-owner{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap;padding:15px 17px;border-radius:12px;margin-bottom:16px;background:#e8efe5;border:1px solid #c7d8ca}.turn-owner strong{font-size:13px;letter-spacing:.5px}.turn-owner span{font-size:11px;color:var(--muted)}.their-turn .turn-owner{background:#eef0fa;border-color:#c6cce3}.their-turn .turn-owner strong{color:#464d79}.turn-steps{list-style:none;display:flex;gap:8px;padding:0;margin:0 0 24px}.turn-steps li{flex:1;min-width:0;font-size:11px;color:var(--muted);padding:10px 8px;border-radius:9px;border:1px solid var(--line);background:#f7f7f2}.turn-steps li>span{display:inline-grid;place-items:center;width:19px;height:19px;border-radius:50%;background:#e7e8e2;margin-right:6px;font-size:10px}.turn-steps .current{background:#304e3e;color:white;border-color:#304e3e;font-weight:700}.turn-steps .current>span{background:#ffffff26}.their-turn .turn-steps .current{background:#515980;border-color:#515980}.turn-steps .done{color:var(--ink)}@media(max-width:760px){.turn-owner{padding:12px}.turn-owner strong{font-size:12px}.turn-steps{gap:5px}.turn-steps li{padding:9px 6px;font-size:10px;line-height:1.5}.turn-steps li>span{display:grid;margin-bottom:5px}}

.turn p.ai-wait{font-size:11px;margin-top:10px;padding-top:10px;border-top:1px solid var(--line)}

.sheet-dice-heading .dice{margin:0 0 20px;gap:10px}.sheet-dice-heading h2{font-size:16px;margin:0 0 14px;color:#464d79}.sheet-bottom{align-items:center;flex-wrap:wrap;justify-content:flex-start;gap:12px 20px}.sheet-bottom #penalties{white-space:nowrap}.board-scores{display:flex;gap:8px 14px;flex-wrap:wrap;align-items:center}.board-score{white-space:nowrap;font-size:12px}.board-score strong{font-size:16px;margin-left:3px}.board-score small{font-size:10px;color:var(--muted)}.board-score.shown-player{font-weight:700}.board-controls{margin-top:14px;padding-top:14px}@media(max-width:760px){.sheet-dice-heading .dice{gap:8px;margin-bottom:18px}.sheet-bottom{gap:10px 14px}.board-score{font-size:11px}.board-score strong{font-size:14px}}

.board-scores{gap:16px;align-items:flex-start}.board-score{display:flex;flex-direction:column;align-items:center;gap:4px;white-space:normal;max-width:100px;text-align:center;font-weight:400}.board-score strong{font-size:23px;line-height:1;margin:0}.board-score>span{font-size:10px;overflow-wrap:anywhere;color:var(--muted)}.board-score.shown-player strong{color:var(--green)}.dice-bar{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:18px}.sheet-dice-heading .dice{margin:0;flex:1;gap:8px;min-width:0}.dice-turn{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;width:65px;flex-shrink:0;text-align:center}.dice-roll-button{height:48px;width:48px;padding:0;border-radius:11px;background:var(--green);color:white;border-color:var(--green);font-size:34px;line-height:1}.dice-roll-button:hover:enabled{background:#456550}.dice-roller-symbol{display:grid;place-items:center;height:40px;width:40px;font-size:29px;background:#e8efe5;border-radius:10px;color:var(--green)}.other-roller .dice-roller-symbol{background:#dfe3f4;color:#515980}#dice-roller-label{font-size:10px;font-weight:600;overflow-wrap:anywhere}.dice-roll-button:focus-visible{outline-offset:3px}@media(max-width:760px){.dice-bar{gap:6px}.sheet-dice-heading .dice{gap:5px;flex-wrap:nowrap}.sheet-dice-heading .die{width:calc((100% - 25px)/6);height:auto;aspect-ratio:1;line-height:1;border-radius:8px}.dice-turn{width:45px}.dice-roll-button{width:38px;height:38px;font-size:28px}.dice-roller-symbol{width:32px;height:32px;font-size:25px}#dice-roller-label{font-size:9px}.board-score strong{font-size:21px}.board-scores{gap:14px}}

.waiting-die{display:grid;place-items:center;border-style:dashed!important;opacity:.45;font-size:28px!important;background:transparent}

.board-scores{gap:16px;align-items:flex-start}.board-score{display:flex;flex-direction:column;align-items:center;gap:4px;white-space:normal;max-width:100px;text-align:center;font-weight:400}.board-score strong{font-size:23px;line-height:1;margin:0}.board-score>span{font-size:10px;overflow-wrap:anywhere;color:var(--muted)}.board-score.shown-player strong{color:var(--green)}.dice-bar{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:18px}.sheet-dice-heading .dice{margin:0;flex:1;gap:8px;min-width:0}.dice-turn{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;width:65px;flex-shrink:0;text-align:center}.dice-roll-button{height:48px;width:48px;padding:0;border-radius:11px;background:var(--green);color:white;border-color:var(--green);font-size:34px;line-height:1}.dice-roll-button:hover:enabled{background:#456550}.dice-roller-symbol{display:grid;place-items:center;height:40px;width:40px;font-size:29px;background:#e8efe5;border-radius:10px;color:var(--green)}.other-roller .dice-roller-symbol{background:#dfe3f4;color:#515980}#dice-roller-label{font-size:10px;font-weight:600;overflow-wrap:anywhere}.dice-roll-button:focus-visible{outline-offset:3px}
.waiting-die{display:grid;place-items:center;border-style:dashed!important;opacity:.45;font-size:28px!important;background:transparent}.layout>div,.sheet,.dice-bar{min-width:0}.sheet-dice-heading .die{min-width:0}
.sheet-bottom{display:flex;flex-direction:column;align-items:stretch;gap:12px}.board-scores{display:flex;flex-wrap:wrap;align-items:stretch;gap:8px}.board-score{flex:1 1 65px;max-width:none;min-width:0;border:1px solid var(--score-border,#d2ddcc);border-radius:10px;padding:12px 10px;background:var(--score-bg,#eef3e9);gap:6px}.board-score>span{color:var(--ink);font-size:11px}.board-score.shown-player{box-shadow:inset 0 0 0 1px var(--score-border,#d2ddcc)}.score-colour-0{--score-bg:#eef3e9;--score-border:#d2ddcc}.score-colour-1{--score-bg:#edf0f8;--score-border:#d0d6e6}.score-colour-2{--score-bg:#f8f0e6;--score-border:#e5d8c6}.score-colour-3{--score-bg:#f5ebee;--score-border:#e2cfd6}.score-colour-4{--score-bg:#e9f3f1;--score-border:#ccdfda}.score-colour-5{--score-bg:#f1edf6;--score-border:#d9d0e4}.penalty-row{display:flex}.penalty-box{padding:9px 12px;border:1px solid #e1d6cd;border-radius:9px;background:#f5efe9;font-size:11px;color:#775c48}.opponent-sheet .penalty-box{background:#f7f2ed}
@media(max-width:760px){.dice-bar{gap:6px}.sheet-dice-heading .dice{gap:5px;flex-wrap:nowrap}.sheet-dice-heading .die{width:calc((100% - 25px)/6);height:auto;aspect-ratio:1;line-height:1;border-radius:8px}.dice-turn{width:45px}.dice-roll-button{width:38px;height:38px;font-size:28px}.dice-roller-symbol{width:32px;height:32px;font-size:25px}#dice-roller-label{font-size:9px}.board-score{padding:11px 8px}.board-score strong{font-size:23px}.layout{grid-template-columns:minmax(0,1fr)}}

.board-scores{display:grid;grid-template-columns:repeat(auto-fit,minmax(70px,1fr));gap:8px}.board-score{flex:none;height:auto;min-height:72px;justify-content:center}

.board-score{height:80px;min-height:80px}.board-scores{grid-template-columns:repeat(auto-fit,minmax(90px,1fr));grid-auto-rows:80px}

.dice-actions{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin:0 0 12px}.dice-actions button{padding:7px 12px;font-size:11px;border-radius:8px;font-weight:600;line-height:1.2}.dice-actions .small-pass{background:#f1eadb;border:1px solid #dfd0b4;color:#72572f}.dice-actions .small-pass:hover:enabled{background:#e9dec8}.dice-actions .small-skip{background:#e9edf5;border:1px solid #cdd5e5;color:#505d7b}.dice-actions .small-skip:hover:enabled{background:#dfe5f0}.dice-actions:has(button:not([hidden])){display:flex}.dice-actions:not(:has(button:not([hidden]))){display:none}

button.board-score{font-weight:400;color:var(--ink);cursor:pointer;transition:border-color .15s,box-shadow .15s}button.board-score:hover:enabled{transform:none;background:var(--score-bg);border-color:#8b9a88;box-shadow:0 0 0 2px #25392f0a}button.board-score.shown-player{border-color:#82957a;box-shadow:inset 0 0 0 1px #82957a}button.board-score.shown-player>span{font-weight:700}.sheet-bottom{padding-bottom:0}

.roll-prompt{width:100%;padding:12px 14px;min-height:62px;border-radius:11px;background:#eef3e9;border:1px solid #d2ddcc;display:flex;flex-direction:column;justify-content:center;gap:5px}.roll-prompt strong{font-size:14px;line-height:1.3}.roll-prompt>span{font-size:10px;color:var(--muted);line-height:1.4}.other-roll-prompt{background:#edf0f8;border-color:#d0d6e6;color:#515980}.dice-roll-button.roll-ready{animation:roll-invite 1.5s ease-in-out infinite;position:relative;z-index:1}@keyframes roll-invite{0%,100%{transform:scale(1);box-shadow:0 0 0 0 #304e3e22}50%{transform:scale(1.16);box-shadow:0 0 0 7px #304e3e12}}@media(max-width:760px){.roll-prompt{padding:11px 12px}.roll-prompt strong{font-size:13px}.dice-turn:has(.roll-ready){margin-right:4px}}@media(prefers-reduced-motion:reduce){.dice-roll-button.roll-ready{animation:none;outline:3px solid #c5d4b9;outline-offset:3px}}

.roll-line,.roll-prompt.other-roll-prompt{display:flex;flex-direction:row;align-items:center;gap:14px;width:100%;min-height:76px;padding:16px 18px;border-radius:12px}.roll-line{border:1px solid #bdcdb3;background:#e9f1e2;color:var(--green);text-align:left;cursor:pointer}.roll-line:hover:enabled{background:#e1ecd8;transform:none}.roll-line-copy{display:flex;flex-direction:column;gap:5px;flex:1;min-width:0}.roll-line-copy strong{font-size:18px;line-height:1.3;overflow-wrap:anywhere}.roll-line-copy>span{font-size:11px;font-weight:400;color:var(--muted)}.roll-line-icon{font-size:40px;line-height:1;flex-shrink:0}.roll-line-arrow{font-size:25px}.roll-line.roll-ready{animation:roll-line-pulse 1.6s ease-in-out infinite}@keyframes roll-line-pulse{0%,100%{transform:scale(1);box-shadow:0 0 0 0 #304e3e16}50%{transform:scale(1.015);box-shadow:0 0 0 4px #304e3e0d}}.dice-roller-symbol{width:44px;height:44px;font-size:34px}.dice-turn{width:90px}#dice-roller-label{font-size:13px;font-weight:700}@media(max-width:760px){.roll-line,.roll-prompt.other-roll-prompt{padding:13px 14px;gap:12px}.roll-line-copy strong{font-size:17px}.dice-turn{width:58px}.dice-roller-symbol{width:38px;height:38px;font-size:30px}#dice-roller-label{font-size:11px}}@media(prefers-reduced-motion:reduce){.roll-line.roll-ready{animation:none;outline:2px solid #bdcdb3;outline-offset:2px}}

.welcome .create-ai{display:flex;justify-content:space-between;width:100%;margin-top:10px;background:#edf0f8;border-color:#cdd5e5;color:#515980}.welcome .create-ai:hover:enabled{background:#e0e5f2}

.spectator-notice{background:#edf0f8;border:1px solid #cdd5e5;border-radius:12px;padding:14px 18px;margin-bottom:20px;color:#515980;font-size:13px;line-height:1.6}.waiting-players{border-top:1px solid var(--line);margin-top:18px;padding-top:14px}.waiting-players h3{font-size:13px;margin:0 0 7px}.waiting-players p{font-size:12px;margin:0;overflow-wrap:anywhere}

#invite{width:min(560px,94vw)}#invite textarea{width:100%;resize:vertical;font:inherit;font-size:14px;line-height:1.6;padding:14px;border:1px solid var(--line);border-radius:9px;background:#fffefa;color:var(--ink);margin-bottom:18px}#invite textarea:focus-visible{outline:3px solid #cc9d4d;outline-offset:3px}.invite-mail{display:inline-flex;align-items:center;padding:13px 20px;border:1px solid var(--line);border-radius:9px;background:white;color:var(--ink);text-decoration:none;font-weight:600}#invite-status{min-height:22px}

.welcome .kastor-option{display:flex;align-items:flex-start;gap:12px;margin:22px 0 0;padding:14px;border:1px solid #d2ddcc;border-radius:10px;background:#eef3e9;cursor:pointer}.kastor-option input{width:19px;height:19px;margin:2px 0 0;flex-shrink:0;accent-color:var(--green)}.kastor-option strong{font-size:14px}.welcome .kastor-option small{text-align:left;font-size:11px;font-weight:400;line-height:1.5;margin-top:4px}.kastor-option:has(input:checked){border-color:var(--green)}

.person-actions{display:flex;gap:6px;flex-wrap:wrap;margin-top:9px}.person-actions button{padding:6px 8px;font-size:10px;background:#edf0f8}.person-actions button[data-remove-player]{background:#f4eae3;color:#8a5140}.spectator-notice button{margin:10px 0 0;display:block;padding:9px 12px}#remove-person{width:min(480px,94vw)}

.waiting-person{display:block;margin:8px 0}.waiting-person button{font-size:10px;padding:5px 8px;background:#f4eae3;color:#8a5140}

.dice-bar{padding:8px;border:1px solid transparent;border-radius:13px;transition:background-color .2s,border-color .2s}.dice-bar.own-roll{background:#dfeeda;border-color:#aec9a6}.dice-bar.own-roll .dice-roller-symbol{background:#c7dfbe;color:#304e3e}@media(prefers-reduced-motion:reduce){.dice-bar{transition:none}}

.choice-notice{display:flex;flex-direction:column;gap:4px;padding:10px 12px;margin-bottom:9px;border:1px solid #dfd0b4;border-radius:9px;background:#f5efe2;color:#72572f}.choice-notice strong{font-size:12px}.choice-notice span{font-size:11px;line-height:1.4}.choice-notice.colour-choice{background:#e8eef8;border-color:#abbddc;color:#3c5278;animation:choice-arrives .35s ease-out}.dice-actions .small-pass.colour-pass{background:#dce6f5;border-color:#abbddc;color:#3c5278}.dice-actions .small-pass.colour-pass:hover:enabled{background:#ccdbee}@keyframes choice-arrives{from{transform:translateY(-4px);box-shadow:0 0 0 3px #abbddc44}to{transform:translateY(0);box-shadow:none}}@media(prefers-reduced-motion:reduce){.choice-notice.colour-choice{animation:none}}

.dice-actions .small-pass.forced-pass{background:#edf0ec;border-color:#cdd5c9;color:#54614f}.dice-actions .small-pass.forced-pass:hover:enabled{background:#e1e7de}

.invited #room-create-controls,.invited #code-label,.invited #code,.invited #solo{display:none!important}.invited .joinline{margin:20px 0 16px}.invited .joinline button{width:100%;background:var(--green);border-color:var(--green);color:white}.invited .joinline button:hover:enabled{background:#456550}.invited .welcome #entry-footnote{font-size:11px;line-height:1.6}.invite-home{display:block;text-align:center;margin-top:24px;font-size:11px;color:var(--muted);text-decoration:underline;text-underline-offset:3px}.invited #welcome-title{font-size:52px}@media(max-width:760px){.invited #home{gap:24px}.invited #home .art{display:none}.invited #welcome-title{font-size:39px}.invited #home .welcome{padding:26px}}

@media(max-width:760px){.cells .cell{width:100%;height:auto;min-height:0;aspect-ratio:1;padding:0;display:grid;place-items:center;line-height:1}.track{margin:12px 0}.track-label{margin-bottom:6px}.sheet-dice-heading .dice[data-mode="rolled"]{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:5px;min-height:0;align-items:start}.sheet-dice-heading .dice[data-mode="rolled"] .die{position:relative;width:100%;height:auto;min-height:0;aspect-ratio:1;line-height:1}.sheet-dice-heading .dice[data-mode="rolled"] .die svg{position:absolute;inset:0;width:100%;height:100%}.dice-bar{margin-bottom:12px}.dice-turn{gap:3px}.dice-roller-symbol{width:30px;height:30px;font-size:24px}#dice-roller-label{font-size:10px;line-height:1.2}}
