@font-face{font-family:Gloock;src:url(../assets/gloock.ttf) format('truetype');font-display:swap}
@font-face{font-family:'DM Sans';src:url(../assets/dm-sans.ttf) format('truetype');font-weight:100 1000;font-display:swap}
:root{--page:#f7f3e9;--paper:#fffcf4;--ink:#302c24;--muted:#6c6559;--line:#d9cdbb;--wine:#792e2a;--dark-wine:#602722;--light:#fff5dc;--serif:Gloock,Georgia,serif;--sans:'DM Sans',Arial,sans-serif;font-family:var(--sans);color:var(--ink);background:var(--page);font-synthesis:none}
*{box-sizing:border-box}body{margin:0;min-width:288px;background-image:radial-gradient(ellipse at 13% 12%,#fdf9f133,transparent 58%),url("data:image/svg+xml,%3Csvg width='160' height='160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='.72' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' opacity='.045' filter='url(%23n)'/%3E%3C/svg%3E")}
button,input,select{font:inherit}button{color:inherit;cursor:pointer;border:0;background:none}button:disabled{cursor:default;opacity:.48}button:focus-visible,a:focus-visible,input:focus-visible,[tabindex]:focus-visible{outline:3px solid #13817b;outline-offset:3px}button,button svg{flex-shrink:0}button{touch-action:manipulation}img{max-width:100%}
.masthead{border-top:4px solid var(--wine);border-bottom:1px solid var(--line);background:#fcf9f1d9}.mast-inner,main{width:min(1176px,calc(100% - 96px));margin:auto}.mast-inner{min-height:91px;display:flex;align-items:center;justify-content:space-between;gap:16px}.brand{display:flex;align-items:center;gap:15px;padding:0;text-align:left}.brand img{width:51px;height:51px}.brand b{display:block;font:normal 36px/.99 var(--serif);letter-spacing:-1.35px;color:#542c25}.brand small{display:block;font-weight:650;font-size:10px;letter-spacing:2.15px;text-transform:uppercase;margin-top:7px;color:#786148}
nav{display:flex;align-items:center;gap:12px}.nav-btn,.text-btn,.secondary,.primary,.light-btn,.ghost-btn,.icon-btn,.tiny-btn{display:inline-flex;gap:9px;justify-content:center;align-items:center;font-weight:600}.nav-btn{padding:10px 13px;font-size:14px;min-height:44px}.nav-btn:hover,.text-btn:hover,.tiny-btn:hover{color:var(--wine);text-decoration:underline;text-underline-offset:4px}.nav-sep{width:1px;height:22px;background:var(--line);margin:0 5px}.icon-btn{min-width:44px;height:44px;padding:0;border:1px solid var(--line);border-radius:50%}.icon-btn:hover{background:#ebe3d3}.page-heading{display:flex;align-items:center;justify-content:space-between;padding:25px 0 21px;gap:12px}h1,h2,h3,p{margin:0}h1,h2,h3{font-family:var(--serif);font-weight:400}.page-heading h1{font-size:clamp(35px,3.4vw,49px);line-height:1.15;letter-spacing:-1.7px}.secondary,.primary,.light-btn,.ghost-btn{min-height:45px;border:1px solid var(--line);padding:9px 18px;border-radius:6px;font-size:14px}.secondary{background:#fcf8ef}.secondary:hover{background:#eee6d7;border-color:#b7a68f}.primary{background:var(--wine);color:#fff8ea;border-color:var(--wine)}.primary:hover{background:#63241f}.light-btn{background:#fff5df;color:#672b24;border-color:#f3dcb4}.light-btn:hover{background:white}.ghost-btn{color:#fff0d5;border-color:#bf8e74}.ghost-btn:hover:enabled{background:#ffffff15}.text-btn,.tiny-btn{min-height:44px;font-size:14px;padding:3px 2px}.tiny-btn{font-size:13px;gap:6px;color:var(--wine)}
.table{display:grid;grid-template-columns:minmax(0,1.44fr) minmax(315px,1fr);gap:32px;align-items:start}.board-column{min-width:0}.board{isolation:isolate;position:relative;aspect-ratio:1;border:1px solid #bda07e;border-radius:5px;overflow:hidden;background:#eddbb7;box-shadow:0 4px 9px #66502f23,0 1px 2px #69411c1f}.cloth,#markers{position:absolute;inset:0;width:100%;height:100%}#markers{overflow:visible;touch-action:manipulation}.piece{cursor:help}.piece.legal{cursor:pointer}.piece-num{font-family:var(--sans);font-weight:800;pointer-events:none}.halo{animation:pulse-ink 1.35s ease-in-out infinite;transform-box:fill-box;transform-origin:center}@keyframes pulse-ink{50%{opacity:.6;transform:scale(1.10)}}.board-message{position:absolute;left:50%;bottom:7%;transform:translateX(-50%);width:max-content;max-width:90%;padding:9px 13px;border-radius:5px;background:#372b23ed;color:#fff9ec;text-align:center;font-size:14px;z-index:4;pointer-events:none}.legend{display:flex;align-items:center;justify-content:center;gap:13px;padding:16px 0 1px;color:#695e4e;font-size:13px}.legend span{display:flex;align-items:center;gap:7px}.legend-rule{height:11px;width:1px;background:#c3b9a6}.safe-symbol,.center-symbol{display:inline-block;width:14px;height:14px;border:1px solid #7f664b}.safe-symbol{background:linear-gradient(45deg,transparent 45%,#876b46 47% 52%,transparent 54%),linear-gradient(-45deg,#e7d2a8 45%,#876b46 47% 52%,#e7d2a8 54%)}.center-symbol{border:3px double #e4be88;background:#934b39;transform:rotate(45deg);width:12px;height:12px}
aside{display:grid;gap:16px;min-width:0}.panel,.prompt{border-radius:9px;position:relative}.panel{background:#fffbf3;border:1px solid var(--line);box-shadow:0 2px 4px #61391104}.prompt{isolation:isolate;overflow:hidden;color:var(--light);background:linear-gradient(110deg,#792e2a,#6a2927);padding:25px 26px 23px;border:1px solid #652625}.prompt:before{content:"";z-index:-1;position:absolute;right:-29px;top:-43px;width:153px;height:153px;background:#eab587;mask:url(../assets/rosette.svg) center/contain no-repeat;opacity:.09}.eyebrow{display:flex;align-items:center;gap:9px;font-size:11px;font-weight:720;text-transform:uppercase;letter-spacing:1.8px}.prompt-top{display:flex;align-items:center;justify-content:space-between;gap:12px;color:#f1d6b3}.steps{display:flex;gap:4px}.steps i{width:15px;height:3px;background:#ffffff30;border-radius:2px}.steps i.complete{background:#f1ce8f}.prompt h2{font-size:clamp(28px,2.4vw,36px);letter-spacing:-.65px;line-height:1.16;margin:16px 0 9px}.prompt p{font-size:16px;line-height:1.55;color:#f7e7d1;max-width:39ch}.prompt-actions{display:flex;gap:10px;margin-top:19px}.prompt-actions button{flex:1;min-height:44px}.prompt-actions .ghost-btn{flex:0 1 30%}.prompt .move-list{margin-top:13px}.prompt .move-option{background:#fff4df;color:#432e24;border:1px solid #dec5a4}.prompt .move-option:hover{background:white}.prompt .active-message{margin-top:5px;font-size:14px}.prompt .progress-info{display:flex;align-items:center;gap:7px}.prompt .chip{color:#54372b;background:#feefd5}
.throws{padding:16px 23px 21px}.card-heading{display:flex;align-items:center;justify-content:space-between;gap:9px}.card-heading h2{font-size:24px;letter-spacing:-.6px}.card-heading .tiny-btn{min-height:36px}.shell-tray{display:flex;align-items:center;justify-content:space-evenly;gap:2px;margin-top:10px;background-color:#f0e5cc;background-image:repeating-linear-gradient(0deg,transparent 0 2px,#a8977220 2px 3px),repeating-linear-gradient(90deg,transparent 0 3px,#fff6dc66 3px 4px);border:1px solid #d9c7a5;box-shadow:inset 0 2px 4px #8f714514;min-height:90px;border-radius:6px;padding:9px 8px}.shell-tray img{width:clamp(25px,3.7vw,51px);height:64px;object-fit:contain;transform:rotate(var(--angle));filter:drop-shadow(1px 3px 1px #775e3c38)}.shell-tray.rolling img{animation:shell-roll .65s ease-in-out both;animation-delay:var(--delay)}@keyframes shell-roll{0%,100%{transform:rotate(var(--angle))}36%{transform:translateY(-14px) rotate(calc(var(--angle) + 90deg)) rotateY(140deg)}74%{transform:translateY(2px) rotate(calc(var(--angle) + 220deg)) rotateY(280deg)}}
.queue{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}.chip{border:1px solid var(--line);border-radius:5px;min-width:48px;min-height:48px;font-size:18px;font-weight:700;color:#67322a;background:#f8f1e3}.chip.sel{box-shadow:inset 0 0 0 2px var(--wine);border-color:var(--wine)}.chip.unusable{opacity:.5}.roll-note{font-size:14px;color:var(--muted);margin-top:10px}.score{padding:0 23px}.team-row{display:grid;grid-template-columns:48px 1fr;gap:12px;padding:16px 0;align-items:center}.team-row+.team-row{border-top:1px solid #e6ddce}.team-head{display:flex;justify-content:space-between;align-items:baseline;gap:7px}.team-head b{font-size:15px;font-weight:680}.team-head small{color:var(--muted);font-size:12px;white-space:nowrap}.progressbar{display:flex;gap:4px;margin-top:8px}.progressbar i{height:4px;background:#e9e1d3;flex:1;border-radius:2px}.progressbar i.filled{background:#975047}.team-row:nth-child(2) .progressbar i.filled{background:#b89246}.team-emblem{width:43px;height:32px;position:relative}.disc{display:inline-grid;place-items:center;font-size:13px;font-weight:700;color:white;width:23px;height:23px;background:var(--color);border:2px solid #fff7e8;border-radius:50%;box-shadow:0 0 0 1px #806e5740,0 2px 1px #62513630}.disc.ring:before{content:"";position:absolute;inset:3px;border:1px solid #f5ecd7a8;border-radius:inherit}.disc.diamond{border-radius:4px;transform:rotate(45deg);width:20px;height:20px}.disc.diamond em{transform:rotate(-45deg)}.disc em{font-style:normal}.team-emblem .disc{position:absolute;top:2px;left:0}.team-emblem .disc:nth-child(2){left:17px;top:9px}.team-emblem .diamond{top:5px;left:2px}.team-emblem .diamond:nth-child(2){left:19px;top:8px}
.menu-panel{padding:24px}.menu-panel h2{font-size:29px;margin-bottom:16px}.menu-option{width:100%;display:flex;align-items:center;gap:13px;min-height:53px;text-align:left;border:1px solid var(--line);border-radius:5px;padding:10px 14px;background:#fbf5e9;font-size:15px;font-weight:650;margin:8px 0}.menu-option svg{color:var(--wine)}.menu-option:hover,.move-option:hover{border-color:#a98865;background:#f4ead7}.move-list{display:grid;gap:6px}.move-option{min-height:48px;padding:9px 12px;display:flex;align-items:center;gap:10px;border-radius:5px;border:1px solid var(--line);text-align:left;font-size:14px;font-weight:600}.move-option .disc{position:relative;flex:none}.below-actions{display:flex;gap:18px;flex-wrap:wrap;margin-top:10px}.menu-panel .primary{width:100%;margin-top:16px}.format-label,.field-label{display:block;font-size:14px;font-weight:700;margin:16px 0 7px}select,.link-input{border:1px solid #cdbfa8;background:#fffaf0;border-radius:5px;min-height:44px;padding:9px 12px;width:100%;color:var(--ink)}select{appearance:none;padding-right:35px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath d='m3 5 4 4 4-4' stroke='%237a6652' fill='none' stroke-width='1.5'/%3E%3C/svg%3E");background-position:calc(100% - 13px) 50%;background-repeat:no-repeat}.helper{color:var(--muted);font-size:14px;line-height:1.5;margin-top:7px}.choice-buttons{display:flex;border:1px solid var(--line);border-radius:5px;overflow:hidden}.choice-buttons button{flex:1;min-height:44px;font-size:14px}.choice-buttons button+button{border-left:1px solid var(--line)}.choice-buttons button.chosen{background:var(--wine);color:white}.seat-choice{display:flex;align-items:center;justify-content:space-between;margin:8px 0;gap:14px}.seat-choice select{width:auto}.lobby-buttons{display:flex;flex-wrap:wrap;gap:9px;margin-top:12px}.lobby-buttons .primary{width:auto;margin:0}.link-input{margin-top:12px;user-select:all}.status{margin-top:9px;color:var(--wine);font-size:14px;line-height:1.4}
footer{display:flex;align-items:center;justify-content:space-between;margin:20px 0 18px;padding:14px 0 0;border-top:1px solid var(--line);color:var(--muted)}.flourish{display:flex;align-items:center;gap:7px}.flourish i{width:26px;height:1px;background:#bca78b}.flourish img{width:19px;opacity:.7}footer button{font-size:13px!important}
dialog{width:min(474px,calc(100% - 28px));padding:26px;border:1px solid #b8a487;border-radius:11px;background:var(--paper);color:var(--ink);box-shadow:0 18px 70px #30221942;max-height:85dvh;margin:auto}dialog::backdrop{background:#29241bd1;opacity:.56;backdrop-filter:blur(3px)}.modal-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:16px}.modal-head h2{font-size:30px;letter-spacing:-.6px}.modal-head .icon-btn{width:38px;min-width:38px;height:38px}.modal-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:20px}.rule-list{padding-left:25px;margin:8px 0 0}.rule-list li,dialog p{font-size:15px;line-height:1.6;margin:0 0 10px}.rule-list li::marker{color:var(--wine);font-weight:700}.setting-row{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:12px 0;border-bottom:1px solid var(--line);font-size:15px}.setting-row input{width:20px;height:20px;accent-color:var(--wine);flex:none}.odds-row{display:grid;grid-template-columns:1fr 60px;align-items:center;gap:9px;font-size:14px;padding:8px 0;border-bottom:1px solid #e6ddcc}.odds-bar{background:#ede1ce;border-radius:2px;height:5px}.odds-bar i{display:block;height:5px;background:#a85f45;border-radius:inherit}.odds-table{margin:12px 0 16px}.sr{position:absolute!important;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.choice-dialog{display:grid;gap:8px}
@media(min-width:1280px) and (max-height:860px){.mast-inner{min-height:76px}.page-heading{padding:21px 0 16px}.table{grid-template-columns:minmax(0,1.44fr) minmax(315px,1fr)}main,.mast-inner{width:min(1080px,calc(100% - 96px))}.prompt{padding:20px 23px}.shell-tray{min-height:79px}.team-row{padding:13px 0}}
@media(min-width:1500px){.mast-inner,main{width:min(1240px,calc(100% - 120px))}.page-heading{padding:30px 0 23px}.table{gap:38px}}
@media(max-width:1000px){.mast-inner,main{width:calc(100% - 48px)}.table{grid-template-columns:minmax(0,1.35fr) minmax(279px,1fr);gap:19px}.prompt{padding:20px}.throws{padding:13px 16px 16px}.score{padding:0 16px}.team-row{grid-template-columns:37px 1fr;gap:8px}.steps i{width:10px}.shell-tray img{width:15%}.team-head{flex-wrap:wrap;gap:2px 8px}}
@media(max-width:760px){.mast-inner,main{width:calc(100% - 32px)}.mast-inner{min-height:72px}.brand{gap:9px}.brand img{width:37px;height:37px}.brand b{font-size:27px}.brand small{font-size:8px;letter-spacing:1.45px;margin-top:5px}nav{gap:4px}.nav-btn{min-width:42px;padding:8px}.nav-btn span,.nav-sep{display:none}nav .icon-btn{border:0;width:42px;min-width:42px}.page-heading{padding:19px 0 14px}.page-heading h1{font-size:35px}.page-heading .secondary{min-height:44px;padding:7px 12px;font-size:13px}.table{display:flex;flex-direction:column;gap:17px}.board-column{width:100%}.legend{padding-top:11px}.board{max-width:min(100%,64svh);margin:auto}.table aside{width:100%;grid-template-columns:1fr 1fr;align-items:start;gap:12px}.prompt,.menu-panel{grid-column:1/-1}.prompt{padding:20px 22px}.prompt p{max-width:none}.prompt-actions{margin-top:14px}.prompt h2{margin-top:10px}.legend{font-size:12px}.shell-tray{min-height:65px}.shell-tray img{height:42px}.score{height:100%}.team-head{display:block}.team-head small{display:block}.flourish{display:none}footer{justify-content:center;margin-top:16px}}
@media(max-width:540px){.table aside{grid-template-columns:1fr}.throws,.score{grid-column:1}.brand small{font-size:7.8px}.brand{gap:7px}nav .nav-btn,nav .icon-btn{min-width:38px}.prompt h2{font-size:29px}.prompt p{font-size:15px}.throws{padding:14px 21px 17px}.shell-tray{min-height:74px}.shell-tray img{height:55px}.team-head{display:flex}.score{padding:0 21px}.team-row{padding:14px 0;grid-template-columns:45px 1fr}.table{gap:14px}.page-heading h1{font-size:32px}.steps i{width:14px}}
@media(min-width:761px) and (max-height:800px){.mast-inner,main{width:min(calc(100% - 50px),calc((100svh - 165px)*1.72 + 24px))}.mast-inner{min-height:66px}.brand b{font-size:30px}.brand img{width:43px;height:43px}.brand small{margin-top:5px}.page-heading{padding:14px 0}.page-heading h1{font-size:36px}.table{grid-template-columns:minmax(0,1.4fr) minmax(272px,1fr);gap:24px}.prompt{padding:18px 20px}.prompt h2{margin:12px 0 6px;font-size:29px}.prompt-actions{margin-top:14px}.prompt p{font-size:15px}.throws{padding:12px 18px 16px}.shell-tray{min-height:70px;margin-top:4px}.shell-tray img{height:51px}.team-row{padding:12px 0}.legend{padding-top:10px}aside{gap:13px}footer{margin-top:12px}}
.prompt:before{background:url(../assets/rosette.svg) center/contain no-repeat;mask:none;filter:grayscale(1) invert(1);mix-blend-mode:screen;opacity:.17}.waiting-count{display:block;font-size:12px;color:var(--muted);margin-top:5px}.card-heading .tiny-btn{min-height:44px}
@media(max-width:760px){nav .nav-btn,nav .icon-btn{min-width:44px}.mast-inner{gap:5px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;scroll-behavior:auto!important}}
