:root{--d-bg:#071611;--d-panel:#13291f;--d-edge:#3c614a;--d-gold:#ffc857;--d-white:#f7f5e9;--d-ink:#12231b;--d-green:#0d5937;--d-teal:#7ee6c1}
.dom-page{color:var(--d-white);background:radial-gradient(circle at 48% 10%,#18402d 0,#06130f 62%);min-height:100vh;padding-bottom:35px}
.dom-header{max-width:1480px;margin:auto;padding:22px clamp(15px,3vw,45px);display:flex;align-items:center;justify-content:space-between;gap:20px;flex-wrap:wrap}
.dom-brand{display:flex;align-items:center;gap:12px}.dom-mark{width:48px;height:48px;display:grid;place-items:center;border:2px solid #b88d34;border-radius:12px;font-weight:950;font-size:25px;background:#0c2519;color:#ffd279}.dom-brand b,.dom-brand small{display:block}.dom-brand b{font-size:16px;letter-spacing:.025em}.dom-brand small{color:#b2cfb8;font-size:10px;letter-spacing:.16em}
.dom-nav,.dom-actions,.dom-chat-form,.dom-chat-top{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.dom-nav{justify-content:end}.dom-nav a,.dom-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:11px 16px;border:1px solid #567659;border-radius:10px;background:#1a3627;color:#f7f2e6;font:700 13px/1.25 Inter,Arial,sans-serif;min-height:43px;cursor:pointer;text-align:center;text-decoration:none;white-space:nowrap}.dom-nav a:hover,.dom-btn:hover:not(:disabled){border-color:#ffce72;background:#31543a}.dom-btn.primary,.dom-nav .active{background:#f6bd4c;border-color:#f6bd4c;color:#17311f}.dom-btn.primary:hover:not(:disabled){background:#ffdb83}.dom-btn:disabled{opacity:.4;cursor:not-allowed}.dom-btn.secondary{background:#153126}.dom-btn.danger{background:#4f2e2b;border-color:#9d6257}.dom-btn[hidden]{display:none!important}
.dom-hero{max-width:1480px;margin:0 auto;padding:26px clamp(15px,3vw,45px) 20px}.dom-eyebrow{display:inline-flex;gap:10px;align-items:center;color:#fac966;font-weight:900;font-size:11px;letter-spacing:.18em}.dom-hero h1{font-size:clamp(32px,5vw,64px);letter-spacing:-.055em;line-height:1.05;margin:13px 0 14px}.dom-hero h1 em{font-style:normal;color:var(--d-gold)}.dom-hero p{color:#b9cbbd;max-width:790px;margin:0;font-size:14px}
.dom-grid{max-width:1480px;padding:0 clamp(15px,3vw,45px) 45px;margin:auto;display:grid;grid-template-columns:minmax(0,1.55fr) minmax(295px,.63fr);gap:22px;align-items:start}
.dom-game,.dom-chat{border:1px solid #416c50;border-radius:18px;background:linear-gradient(160deg,#163527,#0d251b 70%);box-shadow:0 25px 70px #0006;min-width:0;overflow:hidden}
.dom-game-head{display:flex;gap:14px;align-items:center;justify-content:space-between;flex-wrap:wrap;padding:17px 20px;border-bottom:1px solid #355440}.dom-kicker{color:#a9c5b1;font-size:11px;letter-spacing:.13em;font-weight:850}.dom-round{font-size:12px;color:#efc76d}.dom-score{font-weight:950;color:#ffe09a;font-size:23px;letter-spacing:.04em}.dom-score-labels{font-size:10px;color:#b9cbbf;font-weight:700;letter-spacing:.12em}
.dom-felt{background:radial-gradient(ellipse at center,#137246 0%,#0b4a2f 58%,#06341f 100%);min-height:425px;position:relative;padding:12px 14px 17px;border-bottom:6px solid #795330;box-shadow:inset 0 0 0 7px #092a1b,inset 0 0 0 12px #527744}
.dom-table-layout{height:100%;min-height:392px;display:grid;grid-template-columns:110px minmax(0,1fr) 110px;grid-template-rows:auto minmax(190px,1fr) auto;align-items:center;gap:12px;position:relative}.dom-seat{display:grid;justify-items:center;gap:4px;text-align:center;padding:8px 5px;border:1px solid #ffffff30;background:#072c2180;border-radius:11px;min-width:0}.dom-seat.current,.dom-human.current{border-color:#ffdc7a;box-shadow:0 0 0 2px #ffdb7260}.dom-seat strong{font-size:11px}.dom-seat small{font-size:10px;color:#d4e3ce}.dom-seat.top{grid-row:1;grid-column:2;justify-self:center;min-width:185px}.dom-seat.left{grid-row:2;grid-column:1}.dom-seat.right{grid-row:2;grid-column:3}.dom-backs{display:flex;gap:2px;justify-content:center;max-width:100%;overflow:hidden}.bone-back{width:12px;height:23px;flex:0 0 12px;border:1px solid #e4d6a7;border-radius:3px;background:repeating-linear-gradient(45deg,#1a442d,#1a442d 4px,#c4a962 5px,#1a442d 6px)}
.dom-center{min-width:0;grid-column:2;grid-row:2;text-align:center}.dom-center h2{font-size:16px;color:#fff5d7;line-height:1.3}.dom-chain{display:flex;gap:4px;align-items:center;justify-content:start;overflow-x:auto;scrollbar-width:thin;padding:17px 8px;min-height:115px;border:1px solid #ffffff3b;background:#03291e80;border-radius:14px}.board-bone{display:inline-flex;flex:0 0 auto;align-items:center;justify-content:center}.chain-empty{margin:auto;color:#b2d6be;font-weight:800;font-size:13px}.dom-ends{font-size:11px;letter-spacing:.11em;color:#ffe19c;font-weight:850;min-height:20px;white-space:pre-wrap}.dom-table-badge{grid-column:2;grid-row:3;text-align:center;align-self:end;font-size:11px;font-weight:850;color:#d0f7d0;letter-spacing:.12em}
.dom-human{padding:15px;border:1px solid transparent}.dom-hand-title{font-size:12px;letter-spacing:.13em;color:#e4e2c3;font-weight:800;margin-bottom:10px}.dom-hand{display:flex;justify-content:center;align-items:center;gap:7px;flex-wrap:wrap;min-height:67px}.hand-bone{padding:4px;background:transparent;border:2px solid transparent;border-radius:10px;cursor:pointer;transition:transform .1s,background .1s}.hand-bone.playable{background:#ffffff13}.hand-bone:hover:not(:disabled),.hand-bone.picked{transform:translateY(-7px);border-color:#ffd270;background:#fff2ad24}.hand-bone:disabled{cursor:default;opacity:.86}.dom-controls{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin:14px 0 0}.dom-controls .dom-btn{width:100%;padding:11px 7px;white-space:normal}.dom-hint,.dom-status{font-size:12px;color:#b4d4bc;margin:10px 0}.dom-status{color:#ffd784;font-weight:800}.dom-log{margin:10px 18px 18px;padding:12px 14px;border:1px solid #345640;background:#0a1b14;border-radius:12px;font-size:11px;line-height:1.85;color:#bfcfc2;min-height:110px}
.bone{display:inline-flex;align-items:stretch;background:linear-gradient(115deg,#fffef6,#e6e1cc);border-radius:5px;border:1px solid #e2dac4;box-shadow:0 2px 0 #817866,0 5px 8px #0007;padding:3px;color:#14221c;height:48px;min-width:43px;max-width:53px;vertical-align:middle}.bone.is-double{box-shadow:0 2px 0 #aa9571,0 4px 7px #0006}.dom-face{width:20px;height:40px;position:relative;display:inline-block;flex:0 0 20px}.dom-mid{width:1px;flex:0 0 1px;background:#4d5249;margin:2px 0}.pip{position:absolute;width:5px;height:5px;border-radius:50%;background:#17211d;box-shadow:inset 0 0 0 1px #0008}.p0{top:4px;left:2px}.p1{top:4px;left:8px}.p2{top:4px;right:2px}.p3{top:16px;left:2px}.p4{top:16px;left:8px}.p5{top:16px;right:2px}.p6{bottom:4px;left:2px}.p7{bottom:4px;left:8px}.p8{bottom:4px;right:2px}
.dom-chat-head{display:flex;justify-content:space-between;align-items:center;padding:18px 20px;border-bottom:1px solid #36543f;gap:12px}.dom-chat-head h2{margin:0;font-size:19px}.dom-live{color:#8aebbc;font-size:10px;font-weight:850;text-transform:uppercase;letter-spacing:.1em}.dom-chat-body{padding:16px 17px}.dom-chat-messages{height:365px;overflow-y:auto;display:flex;flex-direction:column;gap:10px;padding-right:4px;scrollbar-width:thin}.dom-msg{padding:9px 12px;border-radius:12px;background:#203c2b;border:1px solid #385641;overflow-wrap:anywhere}.dom-msg.self{background:#4c3e20;border-color:#8a6937}.dom-msg.system{background:transparent;border-style:dashed;color:#c7c6aa}.dom-msg b{color:#f8d074;font-size:11px;margin-right:7px}.dom-msg time{font-size:10px;color:#91ad9e}.dom-msg p{font-size:12px;line-height:1.5;margin:3px 0 0}.dom-chat-name{width:100%;border:1px solid #557058;border-radius:8px;background:#092318;color:#fff;padding:12px 13px;margin-bottom:10px;font:inherit}.dom-chat-form{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px}.dom-chat-form input{min-width:0;padding:12px;border-radius:8px;border:1px solid #557058;background:#092318;color:#fff;font:inherit}.dom-chat-form .dom-btn{padding:10px 14px}.dom-chat-note{font-size:11px;color:#9fb9a7;margin:10px 0 0}.dom-join{display:flex;gap:8px}.dom-join .dom-btn{flex:0 0 auto}.dom-panel-title{font-size:13px;color:#ffd485;font-weight:800;margin:12px 0 8px}.dom-rules{max-width:1480px;margin:0 auto 35px;padding:0 clamp(15px,3vw,45px)}.dom-rules-inner{padding:20px 25px;background:#142a1e;border:1px solid #416548;border-radius:14px;color:#bfd0c2}.dom-rules-inner b{color:#ffce67}.dom-rules-inner p{margin:4px 0 0;font-size:13px}
@media(max-width:1060px){.dom-grid{grid-template-columns:1fr}.dom-chat-messages{height:240px}.dom-nav{justify-content:start}.dom-nav a{flex:1 0 auto}}
@media(max-width:620px){.dom-header{align-items:flex-start}.dom-nav{width:100%;display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.dom-nav a{white-space:normal}.dom-hero{padding-top:8px}.dom-felt{padding:11px 8px;min-height:380px}.dom-table-layout{grid-template-columns:68px minmax(0,1fr) 68px;grid-template-rows:auto minmax(168px,1fr) auto;gap:5px;min-height:360px}.dom-seat.top{min-width:130px}.dom-seat strong{font-size:9px}.dom-seat small{font-size:9px}.dom-backs .bone-back{width:8px;flex-basis:8px}.dom-center h2{font-size:13px}.dom-chain{min-height:100px}.board-bone .bone{transform:scale(.87);margin:0 -3px}.dom-controls{grid-template-columns:repeat(2,minmax(0,1fr))}.dom-human{padding:14px 10px}.dom-hand{gap:2px}.hand-bone{padding:2px}.hand-bone .bone{transform:scale(.92)}.dom-log{margin:10px}.dom-chat-head h2{font-size:16px}}

.dom-join[hidden],.dom-chat-form[hidden]{display:none!important}

/* Consistent typography, links and full-width end-of-hand action */
.dom-page{font-family:Inter,Arial,Helvetica,sans-serif}.dom-brand,.dom-brand:visited{color:#f4f5e9;text-decoration:none}.dom-nav a:visited{color:#f4f5e9}.dom-nav a.active,.dom-nav a.active:visited{color:#17311f}#domNext{grid-column:1/-1}.dom-join .dom-chat-name{min-width:0;flex:1 1 0;width:0;margin-bottom:0}.dom-controls .dom-btn{min-height:44px}
@media(max-width:620px){#domPass{grid-column:1/-1}}

/* RADIO2 v7 – realistic standard horizontal double-six domino pieces. */
.bone{
  --bone-half:30px;
  box-sizing:border-box;display:inline-flex;align-items:stretch;flex:0 0 auto;
  width:calc(var(--bone-half)*2 + 9px);height:calc(var(--bone-half) + 9px);
  min-width:0;max-width:none;padding:4px;vertical-align:middle;
  background:linear-gradient(135deg,#fffdf2 0%,#f2ecd9 45%,#dbd0b9 100%);
  border:1px solid #d2c2a8;border-radius:5px;
  box-shadow:inset 1px 1px 0 #fffef9,inset -2px -3px 2px #b5a88f88,0 2px 0 #a9997e,0 5px 9px #0009;
  color:#191b16;
}
.dom-face{box-sizing:border-box;position:relative;display:inline-block;flex:0 0 var(--bone-half);width:var(--bone-half);height:var(--bone-half);}
.dom-mid{width:1px;flex:0 0 1px;height:calc(var(--bone-half) - 4px);align-self:center;background:#3f3c34;box-shadow:1px 0 0 #fffcf0;margin:0 1px;}
.pip{width:14%;height:14%;min-width:3px;min-height:3px;transform:translate(-50%,-50%);background:radial-gradient(circle at 32% 25%,#444943,#050a09 75%);border:1px solid #080b08;box-shadow:inset 0 1px 2px #0009,0 1px 0 #ffffff99;}
.p0{left:17%;top:17%}.p1{left:50%;top:17%}.p2{left:83%;top:17%}
.p3{left:17%;top:50%}.p4{left:50%;top:50%}.p5{left:83%;top:50%}
.p6{left:17%;top:83%}.p7{left:50%;top:83%}.p8{left:83%;top:83%}
.board-bone .bone{--bone-half:23px;transform:none;margin:0;}
.hand-bone .bone{--bone-half:35px;transform:none;}
.dom-chain{gap:3px;overflow-x:auto;align-items:center;justify-content:flex-start;}
.dom-felt{background:repeating-linear-gradient(17deg,#ffffff04 0px,#ffffff04 1px,transparent 1px,transparent 4px),radial-gradient(ellipse at center,#176c44 0%,#105338 56%,#072f23 100%);box-shadow:inset 0 0 0 7px #432b19,inset 0 0 0 11px #a2703e,inset 0 0 18px #000b;}
@media(max-width:620px){.board-bone .bone{--bone-half:20px;transform:none;margin:0}.hand-bone .bone{--bone-half:27px;transform:none}.dom-chain{min-height:76px;}}
