@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Libre+Baskerville:wght@400;700&display=swap');
:root{color-scheme:dark;--bg:#101b19;--panel:#1a2825;--line:#31413b;--cream:#f5eddb;--muted:#a6b6ae;--gold:#e4bd76;--green:#a5d8bd}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--cream);font-family:'DM Sans',sans-serif;font-size:16px}button,select{font:inherit}button{cursor:pointer}button:disabled{cursor:default}button:focus-visible,a:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid var(--gold);outline-offset:4px}header{max-width:1500px;margin:auto;padding:24px 44px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line)}.brand{color:var(--cream);text-decoration:none;display:flex;gap:14px;align-items:center;font-size:23px;letter-spacing:3px}.brandmark{font-family:Georgia,serif;font-size:26px;letter-spacing:-2px;padding:7px;border:1px solid var(--gold);border-radius:6px;color:var(--gold)}.brand small{display:block;font-size:10px;letter-spacing:2.5px;margin-top:4px;color:var(--muted)}nav{display:flex;gap:22px;align-items:center}.mode{font-size:12px;letter-spacing:1px;color:var(--muted)}.quiet{border:1px solid var(--line);background:transparent;color:var(--cream);padding:10px 14px;border-radius:6px;font-size:14px}.quiet:hover{background:#293b33}main{max-width:1500px;margin:0 auto;display:grid;grid-template-columns:minmax(0,1fr) 310px;gap:32px;padding:30px 44px}.table-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:24px}.eyebrow{font-size:11px;font-weight:700;letter-spacing:2px;color:var(--gold)}h1{font-family:'Libre Baskerville',Georgia,serif;font-size:30px;font-weight:400;margin:9px 0 0}h2{font-size:18px;margin:0}.round{color:var(--muted);font-size:12px;letter-spacing:1px}.round strong{display:block;text-align:center;color:var(--cream);font-size:26px;margin-top:5px}.felt{position:relative;min-height:440px;background:radial-gradient(ellipse at center,#23594b,#184438 70%);border:10px solid #483b2d;border-radius:120px;box-shadow:0 0 0 2px #6e5940,0 16px 40px #0004,inset 0 0 60px #061f1a99}.felt-inside{position:absolute;inset:14px;border:1px solid #d3bb7628;border-radius:100px;pointer-events:none}.seat{position:absolute;z-index:2;text-align:center;min-width:100px}.north{top:20px;left:50%;transform:translateX(-50%)}.west{left:20px;top:44%}.east{right:20px;top:44%}.south{bottom:30px;left:50%;transform:translateX(-50%)}.avatar{width:36px;height:36px;border:1px solid #a8c1ac66;border-radius:50%;display:inline-grid;place-items:center;background:#163a30;color:#d7e6da;font-family:Georgia,serif;margin-bottom:7px}.active .avatar{outline:2px solid var(--gold);outline-offset:3px}.seat strong{display:block;font-size:14px}.seat small{display:block;color:#acd0bb;font-size:11px;margin-top:3px}.backs{display:flex;justify-content:center;gap:3px;margin:8px 0}.back{width:10px;height:22px;background:linear-gradient(120deg,#ddcfb6,#b1a68f);border:1px solid #eee2c9;border-radius:2px}.table-center{position:absolute;top:48%;left:50%;transform:translate(-50%,-50%);width:250px;text-align:center}.table-word{font-family:Georgia,serif;color:#cfce9b24;font-size:27px;letter-spacing:6px;white-space:nowrap}.trick{position:relative;height:160px;margin-top:-65px}.played{position:absolute}.played.p0{top:108px;left:98px}.played.p2{top:-18px;left:98px}.played.p1{left:25px;top:42px;transform:rotate(-90deg)}.played.p3{right:25px;top:42px;transform:rotate(90deg)}.table-footer{position:absolute;bottom:14px;left:0;right:0;display:flex;justify-content:space-around;font-size:9px;letter-spacing:1.5px;color:#a6c0a870}.hand-head{display:flex;justify-content:space-between;align-items:center;margin:28px 0 18px;gap:12px}.hand-head p{font-size:14px;color:var(--muted);margin:7px 0 0}.hand{display:flex;justify-content:center;gap:12px;min-height:111px}.domino{display:flex;flex-direction:column;align-items:center;justify-content:center;background:linear-gradient(110deg,#fff9e9,#e3d6bc);color:#182922;width:53px;height:104px;border-radius:7px;border:1px solid #c7bda6;box-shadow:0 4px 0 #aa9d82,0 8px 12px #0004;padding:5px;transition:transform .15s,opacity .15s}.hand .domino:hover:not(:disabled){transform:translateY(-10px)}.hand .domino:disabled{opacity:.42}.hand .domino.inspect{opacity:1}.domino.hinted{outline:3px solid var(--gold);transform:translateY(-10px)}.divider{height:1px;background:#9f957b77;width:90%;margin:4px 0}.half{display:grid;grid-template-columns:repeat(3,1fr);grid-template-rows:repeat(3,1fr);width:34px;height:34px;gap:3px}.pip{border-radius:50%;background:#1d3029}.pip.off{visibility:hidden}.played .domino{width:42px;height:80px;padding:4px}.played .half{width:27px;height:27px;gap:2px}#status{min-height:30px;text-align:center;font-size:14px;color:var(--gold);padding-top:18px}.panel{background:var(--panel);border:1px solid var(--line);border-radius:10px;padding:22px;margin-bottom:16px}.panel-title{display:flex;align-items:center;justify-content:space-between;gap:10px}.panel-title>span{font-size:10px;color:var(--muted);letter-spacing:1px}.scoreteams{display:flex;justify-content:space-around;text-align:center;margin:24px 0 20px}.scoreteams>div{display:flex;flex-direction:column;gap:6px}.scoreteams span{font-size:12px;letter-spacing:2px}.scoreteams .team-us{color:var(--green)}.scoreteams strong{font-family:Georgia,serif;font-size:52px;font-weight:400;line-height:1}.scoreteams small{font-size:12px;color:var(--muted)}.score-dash{align-self:center;color:#637067}.markrows{display:flex;justify-content:space-around;gap:15px}.markrow{display:flex;gap:5px}.markrow i{height:5px;width:12px;border-radius:2px;background:#3c4e43}.markrow i.filled{background:var(--gold)}.action{border-top:2px solid var(--gold)}.action h2{font-family:Georgia,serif;font-size:25px;font-weight:400;margin-top:10px}.action p{font-size:14px;line-height:1.6;color:var(--muted);margin:10px 0 16px}.buttons{display:flex;gap:8px;margin-top:12px}.primary{background:var(--gold);color:#1c2820;border:0;border-radius:5px;padding:12px 18px;font-weight:700;flex:1}.primary:hover{background:#f1cd8e}select{width:100%;background:#12211b;color:var(--cream);border:1px solid #536451;padding:12px;border-radius:5px}label{display:block;font-size:14px;color:var(--muted);margin-bottom:8px}.stat{display:flex;justify-content:space-between;gap:8px;font-size:14px;margin-top:18px}.stat span{color:var(--muted)}.points{display:flex;justify-content:space-between;margin-top:20px;border-top:1px solid var(--line);padding-top:16px;color:var(--muted)}.points b{color:var(--cream);padding-left:10px}.history{padding:12px 4px}.history h2{font-size:14px;color:var(--muted)}.history ol{padding-left:18px;font-size:13px;line-height:1.7;color:var(--muted)}details{font-size:13px;color:var(--muted)}summary{cursor:pointer;padding:10px 0}#captures p{font-size:12px;line-height:1.7}footer{max-width:1500px;margin:auto;padding:14px 44px 24px;display:flex;justify-content:space-between;color:#788d80;font-size:12px}dialog{background:var(--panel);color:var(--cream);border:1px solid #687463;border-radius:12px;padding:30px;max-width:560px;width:calc(100% - 30px);max-height:85vh}dialog::backdrop{background:#050d0acc;backdrop-filter:blur(4px)}dialog p{line-height:1.7;color:var(--muted);font-size:15px}dialog h2{font-family:Georgia,serif;font-size:28px;margin:14px 0}dialog h3{font-size:16px;color:var(--gold)}dialog a{color:var(--gold);font-size:14px}.dialogtop{display:flex;align-items:center;justify-content:space-between}@media(min-width:1450px){.felt{min-height:480px}}@media(max-width:1000px){header{padding:20px 24px}.mode{display:none}main{padding:25px 24px;gap:20px;grid-template-columns:minmax(0,1fr) 275px}.felt{border-radius:85px}.west{left:8px}.east{right:8px}.seat{min-width:65px}.hand{gap:8px}.domino{width:47px;height:95px}h1{font-size:25px}.panel{padding:18px}}@media(max-width:760px){header{padding:16px}.brand{font-size:18px;gap:10px}nav{gap:7px}.quiet{padding:9px 10px;font-size:12px}main{display:flex;flex-direction:column;padding:22px 16px}.table-heading{margin-bottom:20px}h1{font-size:25px}.felt{min-height:385px;border-width:7px;border-radius:80px}.table-center{transform:translate(-50%,-50%) scale(.85)}.seat strong{font-size:12px}.west{left:10px}.east{right:10px}.back{width:7px;height:17px}.backs{gap:2px}.hand{gap:7px}.hand .domino{width:44px;height:90px;padding:4px}.hand .half{width:30px;height:30px}.hand-head{margin-top:24px}aside{display:grid;grid-template-columns:1fr 1fr;gap:14px}.panel{margin:0}.action{grid-column:1/-1;grid-row:1}.scoreteams strong{font-size:38px}.panel-title{flex-wrap:wrap}.scoreteams{margin:18px 0}.scoreteams small{font-size:11px}.history{grid-column:1/-1}.table-footer{font-size:7px}.south{bottom:28px}footer{padding:16px;gap:20px}.markrow{gap:3px}.markrow i{width:7px}}@media(prefers-reduced-motion:reduce){*{transition:none!important}}
/* Portraits in warm metallic frames; the same roster follows each seat. */
.avatar{width:64px;height:64px;border-radius:14px;padding:3px;border:2px solid #d1aa66;background:linear-gradient(135deg,#f2d6a0,#695032);box-shadow:0 3px 10px #0006;overflow:hidden;margin-bottom:5px}.avatar img{width:100%;height:100%;object-fit:cover;object-position:center;border-radius:9px}.active .avatar{outline-color:#ffe6a3;box-shadow:0 0 20px #e4bd7644}.seat small{font-size:12px;color:#e2eadf}.felt{min-height:510px}.north{top:18px}.south{bottom:30px}.west,.east{top:39%}.table-center{top:47%}.seat strong{max-width:155px}.table-word{font-size:23px}.brand small,.eyebrow,.panel-title>span{font-size:12px}.mode{display:none}nav{gap:10px}.seat.south strong{font-size:14px}
#settings{max-width:850px;padding:28px}#settings>p{margin-top:0}.seat-picker{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin:20px 0}.seat-option{display:flex;align-items:center;gap:8px;text-align:left;color:var(--cream);background:#12211d;border:1px solid var(--line);border-radius:10px;padding:8px;font-size:12px}.seat-option img{width:42px;height:42px;object-fit:cover;border-radius:7px}.seat-option b{display:block;font-size:14px;margin-top:4px}.selected{border-color:var(--gold)!important;box-shadow:0 0 0 1px var(--gold)}.character-picker{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.character-card{background:linear-gradient(135deg,#785b35,#c19c5e 50%,#624725);border:2px solid #8e744c;border-radius:13px;padding:5px;color:#fff4df;overflow:hidden}.character-card img{display:block;width:100%;aspect-ratio:1;object-fit:contain;border-radius:7px}.character-card span{display:block;padding:8px;font-size:14px;font-weight:700}.character-card.selected{background:#d3ad69;color:#182922}.character-card:hover{transform:translateY(-2px)}#difficultyControl{margin:24px 0;padding:16px;background:#10211a;border-radius:10px}#difficultyControl p{font-size:14px;margin:12px 0 0}#difficultyControl input{width:100%;accent-color:var(--gold);min-height:32px}.range-labels{display:flex;justify-content:space-between;font-size:12px;color:var(--muted)}.style-fields{display:grid;grid-template-columns:1fr 1fr;gap:16px}.style-fields select{margin-top:8px}.swatches{display:flex;flex-wrap:wrap;gap:10px;margin:12px 0 24px}.swatch{display:flex;align-items:center;gap:9px;border:1px solid var(--line);border-radius:8px;padding:10px 12px;background:#12211b;color:var(--cream);font-size:14px}.sample{display:block;width:21px;height:21px;border:1px solid #ffffff77;border-radius:50%;background:#eee}.sample.green{background:#23594b}.sample.blue{background:#1e466b}.sample.wine{background:#703440}.sample.purple{background:#523477}.sample.slate{background:#424b55}.sample.ivory{background:#eee2c9}.sample.onyx{background:#171b20}.sample.silver{background:linear-gradient(120deg,#77818b,#fff,#88939d)}.sample.gold{background:linear-gradient(120deg,#a66c21,#ffdf7b,#ac7728)}.sample.copper{background:linear-gradient(120deg,#7f3b26,#f3b69a,#ae6447)}.sample.glass{background:linear-gradient(120deg,#8adddcaa,#e0ffffdd,#3c949daa)}.material-preview{display:flex;align-items:center;justify-content:center;gap:15px;padding:18px;background:#10231e;border-radius:12px}.material-preview small{display:block;max-width:170px;color:var(--muted);font-size:14px;margin-top:7px}.setting-note{font-size:14px!important;margin-top:18px!important}#doneSettings{width:100%}
body{--tile-bg:linear-gradient(110deg,#fff9e9,#e3d6bc);--tile-edge:#aa9d82;--pip:#1d3029;--tile-border:#c7bda6;--felt-center:#23594b;--felt-edge:#184438;--rail:#483b2d}.domino,.back{background:var(--tile-bg);border-color:var(--tile-border);box-shadow:0 4px 0 var(--tile-edge),0 8px 12px #0004}.pip{background:var(--pip)}.divider{background:var(--pip);opacity:.35}.felt{background:radial-gradient(ellipse at center,var(--felt-center),var(--felt-edge) 80%);border-color:var(--rail)}body[data-felt=blue]{--felt-center:#234e73;--felt-edge:#122d49}body[data-felt=wine]{--felt-center:#783b4b;--felt-edge:#4c1e2b}body[data-felt=purple]{--felt-center:#5e4084;--felt-edge:#38264f}body[data-felt=slate]{--felt-center:#4c5864;--felt-edge:#28333c}body[data-shape=square] .felt{border-radius:28px}body[data-shape=square] .felt-inside{border-radius:14px}body[data-rail=oak]{--rail:#9e7846}body[data-rail=black]{--rail:#151519}body[data-material=onyx]{--tile-bg:linear-gradient(120deg,#3d434b,#101317);--tile-edge:#080b0d;--tile-border:#707a84;--pip:#f3ead8}body[data-material=silver]{--tile-bg:linear-gradient(115deg,#b0b8c1 0%,#f8fafc 30%,#8c98a4 55%,#dfe5eb 85%,#a9b4bf);--tile-edge:#64707c;--tile-border:#e8eef4;--pip:#132337}body[data-material=gold]{--tile-bg:linear-gradient(115deg,#a9772d,#ffe7a2 30%,#d6a340 55%,#f3d47f 85%,#b48632);--tile-edge:#8a5b1b;--tile-border:#f6d985;--pip:#382311}body[data-material=copper]{--tile-bg:linear-gradient(115deg,#a56148,#ffd4b5 30%,#bd785b 60%,#ecb698);--tile-edge:#82462d;--tile-border:#f3bc97;--pip:#3a1d16}body[data-material=glass]{--tile-bg:linear-gradient(125deg,#e5ffffe6,#8acbccaa 40%,#dcffffdd 44%,#53a8b5b3 48%,#b5ededcc);--tile-edge:#407e88;--tile-border:#caffff;--pip:#0b3540}body[data-material=glass] .domino{backdrop-filter:blur(8px);box-shadow:inset 2px 2px 3px #ffffffaa,0 4px 0 var(--tile-edge),0 8px 12px #0004}
@media(max-width:1100px){main{grid-template-columns:minmax(0,1fr) 280px;padding:24px;gap:22px}.avatar{width:56px;height:56px}.west{left:10px}.east{right:10px}.seat{min-width:75px;max-width:115px}.seat small{font-size:12px}.table-center{transform:translate(-50%,-50%) scale(.82)}}
@media(max-width:760px){header{flex-wrap:wrap;gap:15px}nav{width:100%;justify-content:space-between}nav .quiet{font-size:14px}main{display:flex;padding:20px 14px}.felt{min-height:455px}.avatar{width:54px;height:54px}.west,.east{max-width:86px;top:38%;min-width:65px}.west{left:6px}.east{right:6px}.seat strong{font-size:14px}.seat small{font-size:12px}.table-center{transform:translate(-50%,-50%) scale(.72)}.seat-picker{grid-template-columns:1fr 1fr}.character-picker{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}#settings{padding:20px}.character-card span{padding:6px 2px}.hand{gap:5px}.hand .domino{width:calc((100vw - 72px)/7);max-width:48px}.hand .half{width:28px;height:28px}.style-fields{gap:12px}.hand-head .quiet{font-size:14px}.felt-inside{inset:10px}.table-footer{display:none}}
@media(max-width:370px){.table-center{transform:translate(-50%,-50%) scale(.62)}.seat small{font-size:12px}.hand .half{width:25px;height:25px}.character-picker{grid-template-columns:1fr 1fr}}
/* Compact table: primary controls stay beside the playing surface. */
header{padding:12px 24px}.brand{font-size:20px}.brandmark{font-size:23px}.brand small{font-size:10px}main{max-width:1440px;padding:14px 24px;gap:22px;grid-template-columns:minmax(0,1fr) 300px}.table-heading{margin-bottom:10px}h1{font-size:22px;margin:0}.round strong{display:inline;font-size:20px;margin-left:6px}.connection-status{display:block;font-size:12px;color:var(--green);margin-bottom:4px}.connection-status:empty{display:none}.felt{height:clamp(340px,calc(100dvh - 260px),520px);min-height:340px;border-radius:85px}.felt-inside{border-radius:65px}.north{top:12px}.south{bottom:16px}.west,.east{top:36%}.avatar{width:52px;height:52px}.seat .backs{margin:5px 0}.table-footer{display:none}.table-center{top:46%;transform:translate(-50%,-50%) scale(.8)}.seat small{font-size:12px}.hand-head{margin:14px 0 10px}.hand-head p{margin-top:4px}.hand{min-height:86px;gap:10px}.hand .domino{height:82px;width:44px}.hand .half{width:28px;height:28px}.hand-head .eyebrow{font-size:12px}#status{padding-top:8px;min-height:23px}.panel{padding:15px;margin-bottom:10px}.scoreteams{margin:12px 0;gap:8px}.scoreteams strong{font-size:36px}.scoreteams small{font-size:12px}.scoreteams>div{min-width:0;max-width:115px;overflow-wrap:anywhere}.panel-title>span{font-size:12px;letter-spacing:0}.panel-title h2{font-size:16px}.action h2{font-size:23px;margin-top:6px}.action p{margin:8px 0 10px;font-size:14px;line-height:1.45}.action select{padding:9px}.stat{margin-top:12px}.points{margin-top:12px;padding-top:10px}.history{padding:0}.history>details>summary{font-size:14px}.history>details[open]{max-height:180px;overflow:auto}.history ol{margin-top:0}.online-setting-note{display:none}.online .solo-setting-note,.online #seatPicker,.online #characterPicker,.online #difficultyControl{display:none}.online .online-setting-note{display:block}.banter-setting{display:flex;gap:10px;align-items:center;margin-top:20px;font-size:14px}.banter-setting input{accent-color:var(--gold);width:18px;height:18px}.banter-bubble{position:absolute;z-index:20;display:flex;align-items:center;gap:9px;background:#fff7e8;color:#30251d;border:2px solid #d9b56f;padding:9px;border-radius:14px;box-shadow:0 7px 24px #0005;width:235px;text-align:left;font-size:14px;line-height:1.35;pointer-events:none}.banter-bubble::before{content:'';position:absolute;width:12px;height:12px;background:#fff7e8;transform:rotate(45deg);border:solid #d9b56f;border-width:0 0 2px 2px;left:-8px;top:22px}.west .banter-bubble{left:75px;top:0}.east .banter-bubble{right:75px;top:0}.east .banter-bubble::before{left:auto;right:-8px;transform:rotate(225deg)}.north .banter-bubble{left:95px;top:8px}.south .banter-bubble{left:85px;bottom:10px}.reaction-face{display:block;flex:none;width:58px;height:58px;border-radius:10px;background-repeat:no-repeat;background-color:#fff7e8}.seat:has(.banter-bubble){z-index:10}
#roomDialog{max-width:750px}#roomDialog input:not([type=range]){width:100%;font:inherit;color:var(--cream);background:#12211b;border:1px solid #536451;border-radius:6px;padding:11px;margin-bottom:14px}#roomDialog select{margin-bottom:14px}#createRoom{width:100%;margin-top:14px}.join-row{display:flex;gap:12px;align-items:center;margin-top:22px}.join-row label{flex:1;margin:0}.join-row input{display:block;margin-top:8px}.room-error{color:#ffc6a6!important}.room-error:empty{display:none}.access-note,.chat-note{font-size:14px!important}.room-code-bar{display:flex;align-items:center;justify-content:space-between;padding:12px;background:#102019;border-radius:8px}.room-code-bar strong{font-size:22px;letter-spacing:3px;color:var(--gold);margin-left:10px}#roomSeats{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:18px 0}.lobby-seat{display:flex;gap:10px;padding:12px;background:#102019;border:1px solid var(--line);border-radius:10px}.lobby-seat img{width:64px;height:64px;border:2px solid var(--gold);border-radius:10px}.lobby-seat>div{flex:1;min-width:0}.lobby-seat b,.lobby-seat span{display:block;font-size:14px}.lobby-seat span{color:var(--muted);margin:5px 0 8px}.lobby-seat select{font-size:14px;padding:8px!important;margin-bottom:8px!important}.lobby-seat label{font-size:12px;margin:5px 0}.lobby-seat input{width:100%;accent-color:var(--gold)}.room-messages{height:170px;overflow:auto;border:1px solid var(--line);border-radius:8px;padding:12px;background:#102019}.room-messages p{font-size:14px;margin:0 0 8px;overflow-wrap:anywhere}.room-messages b{color:var(--gold);margin-right:6px}#chatForm{display:flex;gap:10px;align-items:flex-start;margin-top:10px}#chatForm input{flex:1}#chatForm button{flex:0}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}[hidden]{display:none!important}input:focus-visible{outline:3px solid var(--gold);outline-offset:3px}
@media(min-width:1000px) and (max-height:760px){header{padding-block:9px}.brand small{display:none}main{padding-block:10px}.felt{height:calc(100dvh - 235px)}.panel{padding:12px}.scoreteams{margin:8px 0}.scoreteams strong{font-size:30px}.action p{font-size:14px}.history>details[open]{max-height:90px}.action h2{font-size:20px}}
@media(max-width:999px){main{grid-template-columns:minmax(0,1fr) 270px;padding:14px;gap:16px}.west,.east{max-width:88px}.north .banter-bubble{left:50%;transform:translateX(-50%);top:80px}.north .banter-bubble::before{left:50%;top:-8px;transform:rotate(135deg)}.banter-bubble{width:205px;font-size:13px}.west .banter-bubble{left:65px}.east .banter-bubble{right:65px}.reaction-face{width:45px;height:45px}.brand small{display:none}nav{gap:7px}}
@media(max-width:760px){header{padding:10px 12px;gap:10px}.brand{font-size:18px}nav{flex-wrap:wrap;width:auto;flex:1;justify-content:flex-end}nav .quiet{font-size:12px;padding:8px}main{display:flex;padding:12px;gap:12px}.table-heading{margin-bottom:8px}.felt{height:360px;min-height:360px}.avatar{width:44px;height:44px}.seat strong{font-size:13px}.seat small{font-size:12px}.north{top:10px}.south{bottom:12px}.west,.east{top:35%;max-width:78px}.table-center{transform:translate(-50%,-50%) scale(.67)}.hand-head{margin-top:12px}.hand-head p{font-size:13px}.hand-head .quiet{font-size:12px}.hand .domino{height:76px;width:39px}.hand .half{width:25px;height:25px}.hand{min-height:80px;gap:7px}.hand-head .eyebrow{display:none}.round{font-size:12px}h1{font-size:19px}.scoreteams{margin:8px 0}.scoreteams strong{font-size:28px}aside{gap:10px;grid-template-columns:1fr 1fr}.action{grid-row:1}.handscore,.score{padding:12px}.panel-title>span{font-size:12px}.handscore .stat{font-size:12px}.history{grid-column:1/-1}.west .banter-bubble{left:55px}.east .banter-bubble{right:55px}.banter-bubble{width:190px;padding:7px}.south .banter-bubble{left:50%;transform:translateX(-50%);bottom:85px}.south .banter-bubble::before{left:50%;top:auto;bottom:-8px;transform:rotate(-45deg)}#roomSeats{grid-template-columns:1fr}.lobby-seat img{width:55px;height:55px}.room-code-bar strong{font-size:18px;letter-spacing:2px}.buttons{flex-wrap:wrap}.join-row{align-items:center}}
@media(max-height:600px) and (min-width:761px){.felt{min-height:300px}.table-center{transform:translate(-50%,-50%) scale(.65)}.avatar{width:42px;height:42px}.seat .backs{display:none}.hand-head{margin-top:9px}.hand .domino{height:70px}.hand{min-height:75px}}
/* The Duck follows the seat that shuffled; the concealed pile is drawn from one tile at a time. */
.seat .duck-at-seat{position:absolute;z-index:4;left:calc(50% + 11px);top:37px;width:37px;height:37px;object-fit:contain;filter:drop-shadow(0 3px 5px #0009);pointer-events:none}.seat.active .duck-at-seat{filter:drop-shadow(0 0 10px #f7c979)}
.table-center:has(.draw-pile:not([hidden])){top:39%}.table-center:has(.draw-pile:not([hidden])) .table-word{display:block;font-size:16px;letter-spacing:3px;color:#e8d5a198;margin-bottom:12px}.draw-pile{display:grid;grid-template-columns:repeat(7,27px);justify-content:center;gap:6px;margin:0 auto;min-height:172px}.pile-bone{width:27px;height:36px;border-radius:4px;border:2px solid #dfc99f;background:linear-gradient(135deg,#f2e9d1,#b8a890);box-shadow:0 3px 0 #625947,0 4px 7px #0006;padding:0;color:#324c40;display:grid;place-items:center;transition:transform .15s,filter .15s}.pile-bone-mark{width:19px;height:25px;border:1px solid #947a56;border-radius:2px;display:grid;place-items:center;font:700 9px Georgia,serif;opacity:.7}.pile-bone:hover:not(:disabled){transform:translateY(-6px) rotate(-3deg);filter:brightness(1.18)}.pile-bone:focus-visible{outline:3px solid var(--gold);outline-offset:3px;transform:translateY(-5px)}.pile-bone:disabled{cursor:default;opacity:.75}.draw-pile[hidden],.trick[hidden]{display:none!important}
.duck-picker{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:10px 0 20px}.duck-choice{min-width:0;display:flex;flex-direction:column;align-items:center;gap:4px;padding:10px 5px;background:#12211b;border:2px solid var(--line);border-radius:10px;color:var(--cream);font-size:13px;line-height:1.25;min-height:105px}.duck-choice:hover:not(:disabled){background:#22372c}.duck-choice img{width:65px;height:65px;object-fit:contain}.duck-choice.selected{border-color:var(--gold);background:#334333}.duck-choice:disabled{cursor:default;opacity:.67}#duckHelp,#roomCoinHelp{font-size:14px;color:var(--muted);line-height:1.45}
@media(max-width:760px){.duck-picker{grid-template-columns:repeat(3,minmax(0,1fr))}.duck-choice img{width:54px;height:54px}.seat .duck-at-seat{width:30px;height:30px;left:calc(50% + 8px);top:30px}.felt:has(.draw-pile:not([hidden])){min-height:455px;height:455px}.felt:has(.draw-pile:not([hidden])) .west,.felt:has(.draw-pile:not([hidden])) .east{top:19%}.table-center:has(.draw-pile:not([hidden])){top:36%;transform:translate(-50%,-50%) scale(1);width:230px}.table-center:has(.draw-pile:not([hidden])) .table-word{font-size:14px;margin-bottom:10px}.draw-pile{grid-template-columns:repeat(7,25px);gap:5px;min-height:170px}.pile-bone{width:25px;height:34px}.pile-bone-mark{width:17px;height:23px}}
@media(max-width:375px){.table-center:has(.draw-pile:not([hidden])){width:205px}.draw-pile{grid-template-columns:repeat(7,23px);gap:4px}.pile-bone{width:23px;height:34px}.pile-bone-mark{width:16px}}
/* The company mark is printed into the felt, below the tiles and player controls. */
.table-emblem{position:absolute;z-index:0;left:50%;top:48%;width:clamp(155px,26%,250px);aspect-ratio:1885.13 / 1659.22;transform:translate(-50%,-50%);pointer-events:none;opacity:.64;filter:drop-shadow(0 2px 3px #061b16aa)}.table-emblem img{display:block;width:100%;height:100%;object-fit:contain}.table-center{z-index:1}.table-word{display:none}.felt:has(.draw-pile:not([hidden])) .table-emblem{opacity:.24}
@media(max-width:760px){.table-emblem{top:48%;width:clamp(135px,43%,190px)}}
#accountDialog{max-width:440px}#accountDialog h2{margin:8px 0 12px}#accountDialog p{font-size:14px;color:var(--muted);line-height:1.5}#accountMessage{color:var(--gold)!important;min-height:20px}#accountDialog form>label,#passwordRecovery label{display:block;font-size:14px;margin:12px 0 6px}#accountDialog input{display:block;width:100%;padding:11px;border:1px solid #536451;border-radius:6px;background:#12211b;color:var(--cream);font:inherit}#accountDialog .primary{width:100%;margin:16px 0 8px}#accountDialog #signUpBtn{width:100%}.text-button{display:block;border:0;background:transparent;color:var(--gold);margin:10px auto 16px;text-decoration:underline}.social-buttons{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding-top:15px;border-top:1px solid var(--line)}.social-buttons button{font-size:13px}#accountSignedIn{margin-top:16px}
#friendsDialog{max-width:540px}#friendsMessage{color:var(--gold);min-height:20px}#friendsDialog h3{margin:24px 0 10px}.my-friend-code,.friend-row{display:flex;align-items:center;gap:10px;padding:12px;background:#12211b;border:1px solid var(--line);border-radius:8px;margin:9px 0}.my-friend-code{justify-content:space-between;flex-wrap:wrap}.my-friend-code strong{letter-spacing:2px;color:var(--gold);display:block;font-size:20px}.friend-row .primary{flex:0}.friend-row .quiet{white-space:nowrap}.friend-name{flex:1;min-width:0;overflow-wrap:anywhere}.friend-name small{display:block;color:var(--muted);font-size:12px}.presence{width:10px;height:10px;border-radius:50%;background:#79847b;flex:none}.presence.is-online{background:#76d49c;box-shadow:0 0 8px #76d49c}.friend-code-entry{display:flex;gap:8px}.friend-code-entry input{min-width:0;flex:1;padding:11px;background:#12211b;color:var(--cream);border:1px solid #536451;border-radius:6px;text-transform:uppercase;letter-spacing:1px}.friend-code-entry .primary{flex:0}.friend-alert{border-color:var(--gold)!important;color:var(--gold)!important}#friendsHelp{font-size:13px}@media(max-width:480px){.friend-row{flex-wrap:wrap}.friend-code-entry{flex-direction:column}}
/* Tile arranging changes only the player's display order. */
.hand-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}.hand-actions .quiet{white-space:nowrap}.hand .domino[draggable=true]{cursor:grab;touch-action:manipulation}.hand .domino[draggable=true]:active{cursor:grabbing}.hand .domino.reorder-selected{outline:3px solid var(--gold);outline-offset:3px;transform:translateY(-9px)}#arrangeBtn[aria-pressed=true]{border-color:var(--gold);color:var(--gold)}
/* Larger portraits and played tiles, with room left between the four seats. */
.avatar{width:76px;height:76px}.seat{min-width:110px}.seat .duck-at-seat{left:calc(50% + 24px);top:49px;width:42px;height:42px}.table-center{width:300px;transform:translate(-50%,-50%) scale(.9)}.trick{height:190px;margin-top:-70px}.played .domino{width:58px;height:108px;padding:5px}.played .half{width:38px;height:38px;gap:3px}.played.p0{top:114px;left:121px}.played.p2{top:-24px;left:121px}.played.p1{top:37px;left:36px}.played.p3{top:37px;right:36px}
@media(max-width:1100px){.avatar{width:68px;height:68px}.seat{min-width:95px}.table-center{transform:translate(-50%,-50%) scale(.78)}.seat .duck-at-seat{left:calc(50% + 20px);top:43px;width:38px;height:38px}}
@media(max-width:760px){.felt{min-height:390px;height:390px}.avatar{width:60px;height:60px}.seat{min-width:70px}.west,.east{max-width:82px;top:37%}.table-center{transform:translate(-50%,-50%) scale(.68)}.seat .duck-at-seat{left:calc(50% + 16px);top:38px;width:32px;height:32px}.hand-head{align-items:flex-start}.hand-actions{gap:5px}.hand-actions .quiet{font-size:12px;padding:7px}.hand{flex-wrap:nowrap;gap:5px}.hand .domino{min-width:0;width:clamp(36px,calc((100vw - 66px)/7),48px)}}
@media(max-width:375px){.table-center{transform:translate(-50%,-50%) scale(.6)}.avatar{width:54px;height:54px}.hand-actions .quiet{font-size:11px;padding:6px}}
@media(max-height:600px) and (min-width:761px){.avatar{width:58px;height:58px}.table-center{transform:translate(-50%,-50%) scale(.7)}.seat .duck-at-seat{left:calc(50% + 17px);top:36px;width:32px;height:32px}}
/* Keep the north player's hidden tiles beside their portrait, clear of the played trick. */
.north{top:4px}.north .backs{position:absolute;right:calc(100% + 10px);top:28px;width:max-content;margin:0}.played.p2{top:-14px}
@media(max-width:760px){.north{top:2px}.north .backs{right:calc(100% + 2px);top:20px;transform:scale(.8);transform-origin:right center}}
.north .north-details{position:absolute;top:23px;left:calc(100% + 12px);width:clamp(105px,12vw,180px);text-align:left;line-height:1.25}.north .north-details strong{max-width:none;overflow-wrap:anywhere}.north .north-details small{margin-top:4px;overflow-wrap:anywhere}
@media(max-width:760px){.north .north-details{top:11px;left:calc(100% + 5px);width:clamp(88px,28vw,125px)}.north .north-details strong{font-size:12px}.north .north-details small{font-size:11px}}

/* The active multiplayer room keeps its conversation beside the table. */
.table-chat .panel-title{margin-bottom:12px}.table-chat .room-messages{height:155px}
#tableChatForm{display:flex;gap:8px;margin-top:10px}
#tableChatInput{min-width:0;flex:1;background:#12211b;color:var(--cream);border:1px solid #536451;border-radius:6px;padding:10px}
#tableChatForm .primary{flex:0;padding:9px 13px}
.tutorial-overlay{position:fixed;inset:0;z-index:10000;pointer-events:auto}
.tutorial-shade{position:fixed;border:2px solid var(--gold);border-radius:10px;box-shadow:0 0 0 9999px #050d0ad9,0 0 0 4px #e4bd7633;pointer-events:none}
.tutorial-card{position:fixed;max-height:calc(100dvh - 24px);overflow:auto;background:#1a2825;border:1px solid var(--gold);border-radius:12px;padding:18px;box-shadow:0 16px 45px #0009}
.tutorial-card h2{font:normal 22px Georgia,serif;margin:10px 0}.tutorial-card p{line-height:1.5;color:var(--cream);margin:0 0 16px}.tutorial-card .buttons{align-items:stretch}
#ownedStatus{font-size:14px;color:var(--muted)}#ownedGrid{margin-bottom:22px}
@media(max-width:760px){.table-chat{grid-column:1/-1}.tutorial-card{padding:15px}}

/* Compact publisher mark beside the game name. */
.brand-logo{width:54px;height:54px;object-fit:contain;flex:none;filter:drop-shadow(0 2px 4px #0009)}
.brand small{color:var(--green);font-size:11px;letter-spacing:1.2px;text-transform:none}
.account-home-link{display:inline-block;text-decoration:none;margin-top:20px}
.share-game{border-top:1px solid var(--line);margin-top:22px;padding-top:18px}
.share-game h3{margin:0 0 8px}.share-game p{font-size:14px;margin:0 0 12px}
.share-actions{display:flex;flex-wrap:wrap;gap:8px}
.share-actions .quiet{display:inline-flex;align-items:center;justify-content:center;text-decoration:none;font-size:14px;min-height:40px}
#shareStatus:not(:empty){color:var(--green);margin-top:10px}
@media(max-width:760px){.brand-logo{width:45px;height:45px}.brand small{font-size:10px;letter-spacing:.6px}}

.facebook-photo-control{display:flex;align-items:center;gap:9px;margin:14px 0 20px;color:var(--cream)}
.facebook-photo-control input{width:18px;height:18px;accent-color:var(--gold)}
/* Deal and trick motion only runs when a move changes the table state. */
.draw-pile .pile-bone:not(:disabled){transition:transform .16s ease,filter .16s ease}
.draw-pile .pile-bone:not(:disabled):hover{transform:translateY(-5px) rotate(3deg);filter:brightness(1.15)}
.hand .domino.new-draw{animation:tile-draw .38s cubic-bezier(.18,.8,.25,1.2) both}
.played.new-play .domino{animation:tile-play .42s cubic-bezier(.18,.8,.26,1.18) both}
.played.p0.new-play .domino{--play-x:0px;--play-y:80px}
.played.p1.new-play .domino{--play-x:-90px;--play-y:0px}
.played.p2.new-play .domino{--play-x:0px;--play-y:-80px}
.played.p3.new-play .domino{--play-x:90px;--play-y:0px}
.trick.claimed::after{content:'';position:absolute;left:50%;top:48%;width:70px;height:70px;border:2px solid var(--gold);border-radius:50%;pointer-events:none;animation:trick-claim .7s ease-out both}
.markrow i.earned{animation:mark-earn .65s ease-out both}
@keyframes tile-draw{from{opacity:0;transform:translateY(-32px) rotate(-9deg) scale(.8)}to{opacity:1;transform:translateY(0) rotate(0) scale(1)}}
@keyframes tile-play{from{opacity:0;transform:translate(var(--play-x),var(--play-y)) rotate(-10deg) scale(.75)}to{opacity:1;transform:translate(0,0) rotate(0) scale(1)}}
@keyframes trick-claim{0%{opacity:0;transform:translate(-50%,-50%) scale(.45)}35%{opacity:.8}100%{opacity:0;transform:translate(-50%,-50%) scale(2.5)}}
@keyframes mark-earn{0%{background:#fff6cf;box-shadow:0 0 0 0 #e4bd76;transform:scale(1.35)}100%{background:var(--gold);box-shadow:0 0 0 12px #e4bd7600;transform:scale(1)}}
@media(prefers-reduced-motion:reduce){.hand .domino.new-draw,.played.new-play .domino,.trick.claimed::after,.markrow i.earned{animation:none}.draw-pile .pile-bone:not(:disabled){transition:none}}
.facebook-photo-control img{object-fit:cover;border-radius:7px;border:1px solid var(--gold);flex:none}

#accountSignedIn h3{font-size:17px;margin:8px 0}#accountSignedIn .account-link-note{margin:0 0 14px}.account-link-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 0;border-top:1px solid var(--line)}.account-link-row span{display:flex;flex-direction:column;font-weight:700}.account-link-row small{color:var(--muted);font-weight:400}.account-link-row button{white-space:nowrap}#signOutBtn{margin-top:18px}

/* Friend invites in the multiplayer screen. */
.room-friends{margin:18px 0;padding:14px;background:#102019;border:1px solid var(--line);border-radius:10px}
.room-friends h3{margin:0 0 6px}
.room-friends p{margin:0;color:var(--muted);font-size:14px}
.room-friends .friend-row{margin:9px 0 0;min-width:0}
.room-friends .friend-row button{flex:none}
#friendsName{display:block;width:100%;min-width:0;padding:11px;margin:6px 0 14px;background:#12211b;color:var(--cream);border:1px solid #536451;border-radius:6px;font:inherit}
#friendsName:focus-visible{outline:3px solid var(--gold);outline-offset:3px}
/* Keep the optional Facebook photo control inside the same field width as the other lobby controls. */
#roomDialog #roomFacebookPhotoControl{display:flex;width:100%;min-width:0;align-items:center;gap:10px;padding:10px 12px;margin:0 0 16px;border:1px solid var(--line);border-radius:8px;background:#12211b;overflow-wrap:anywhere}
#roomDialog #roomFacebookPhotoToggle{appearance:auto;width:18px;height:18px;min-width:18px;flex:none;padding:0;margin:0;accent-color:var(--gold);border:0;background:transparent}
#roomDialog #roomFacebookPhotoPreview{width:34px;height:34px;min-width:34px;flex:none}
@media(max-width:480px){#roomDialog{padding:18px}.room-friends .friend-row{flex-wrap:wrap}.room-friends .friend-row button{width:100%}}

.room-invite-status{color:var(--green)!important}.room-invite-status:empty{display:none}
