body.arcade-open{overflow:hidden}.arcade-dialog{width:100vw;height:100dvh;max-width:none;max-height:none;margin:0;padding:20px max(16px,calc((100vw - 1000px)/2));border:0;border-radius:0;color:#f8e5bd;background:radial-gradient(ellipse at top,#5b3628,#20120d 70%);overflow-y:auto;overscroll-behavior:contain;box-sizing:border-box}.arcade-dialog::backdrop{background:#100807}.arcade-dialog header{display:flex;justify-content:space-between;gap:16px;align-items:center;margin:20px 0 8px}.arcade-dialog h1{font:30px Georgia;color:#f4d18a}.arcade-dialog h2{font:23px Georgia}.arcade-dialog p,.arcade-dialog li{font:15px/1.65 system-ui}.arcade-dialog button,.arcade-dialog select{min-height:44px;padding:10px 16px;border:1px solid #ba9057;border-radius:12px;background:linear-gradient(#5f4029,#322017);color:#ffe8ba;font:600 14px system-ui;cursor:pointer}.arcade-dialog button.primary{background:linear-gradient(#ffe1a0,#c39143);color:#2a190c}.arcade-dialog button:disabled{opacity:.5;cursor:default}.arcade-dialog button:focus-visible,.arcade-dialog input:focus-visible,.arcade-dialog select:focus-visible{outline:3px solid #72e0d5;outline-offset:3px}.arcade-mode-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.arcade-card,.arcade-room-row{padding:20px;margin:12px 0;border:1px solid #c3924b88;border-radius:18px;background:#150c0888}.arcade-card button{margin:5px}.arcade-room-row{display:flex;align-items:center;flex-wrap:wrap;gap:14px}.arcade-room-row p{flex:1;min-width:150px}.arcade-entry{display:block;min-height:54px;width:100%;margin:16px 0;border:1px solid #c7a56e;border-radius:15px;background:linear-gradient(100deg,#462b23,#53335c);color:#ffe3a3;font:bold 18px Georgia;cursor:pointer}.arcade-dialog label{display:flex;gap:14px;align-items:center;min-height:48px;font:16px system-ui}.arcade-dialog fieldset{margin:20px 0;border:1px solid #987340;border-radius:12px}.arcade-dialog input{width:22px;height:22px;accent-color:#d9ae64}.arcade-actions{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin:16px 0}.arcade-status{min-height:24px;color:#ffe5a0}.arcade-pot,.arcade-wild{border:1px solid #dbb768;padding:12px 18px;border-radius:12px;background:#3b2c18}.arcade-turn{color:#ffe1a0}.arcade-rule-copy{max-width:760px}.dama-board{display:grid;grid-template-columns:repeat(8,1fr);width:min(100%,560px);aspect-ratio:1;margin:20px auto;border:8px solid #8d602d;border-radius:10px;overflow:hidden;box-shadow:0 10px 25px #0007}.arcade-dialog .dama-square{position:relative;display:grid;place-items:center;aspect-ratio:1;padding:7%;min-height:0;min-width:0;border:0;border-radius:0}.dama-square.light{background:#ceae79}.dama-square.dark{background:#593822}.arcade-dialog .dama-square:disabled{opacity:1}.dama-piece{width:100%;height:100%;border-radius:50%;display:grid;place-items:center;font:clamp(12px,4vw,27px) Georgia;box-shadow:inset 0 0 0 3px #ffffff25,0 4px 2px #0008;pointer-events:none}.dama-piece.ivory{background:radial-gradient(circle at 35% 25%,#ffebbe,#be904b 65%,#70461c);color:#593315}.dama-piece.onyx{background:radial-gradient(circle at 35% 25%,#806188,#2d1d33 65%,#100b12);color:#ebcb83}.dama-square.chosen{box-shadow:inset 0 0 0 4px #f4d770}.dama-square.target:after{content:'';position:absolute;inset:34%;border-radius:50%;background:#74e9d8aa;pointer-events:none}.konker-seats{display:flex;flex-wrap:wrap;gap:8px}.konker-seats span{padding:10px;border:1px solid #ae875455;border-radius:10px;font:13px system-ui}.konker-seats .active{border-color:#f4ce79;background:#694b24}.konker-hand{display:flex;flex-wrap:wrap;gap:8px;padding:12px 0}.arcade-dialog .konker-card{min-width:58px;min-height:86px;background:linear-gradient(140deg,#fff8e8,#e7d7b5);border:2px solid #b99c67;border-bottom:5px solid #9c8157;color:#211b1a;font:700 19px Georgia;box-shadow:0 3px 7px #0005;transition:transform .15s ease-out}.arcade-dialog .konker-card.red{color:#ad263a}.arcade-dialog .konker-card.wild{border-color:#4fc8c0}.arcade-dialog .konker-card.selected{transform:translate3d(0,-7px,0);outline:3px solid #57dbc8}.arcade-dialog .konker-card:disabled{opacity:1}.konker-meld{padding:12px 18px;border:1px solid #9c7844;border-radius:12px;margin:12px 0}.konker-meld p{font:20px Georgia;word-spacing:8px;overflow-wrap:anywhere}@media(max-width:600px){.arcade-dialog{padding:12px}.arcade-dialog h1{font-size:25px}.arcade-mode-grid{grid-template-columns:1fr}.arcade-dialog .konker-card{min-width:48px;min-height:72px;font-size:17px;padding:6px}.dama-board{border-width:5px}.arcade-actions button{flex-grow:1}}@media(prefers-reduced-motion:reduce){.arcade-dialog .konker-card{transition:none}}

@media(max-width:380px){.arcade-dialog{padding:4px}.dama-board{border:0;border-radius:4px}}

.arcade-dialog header{margin:8px 0}.arcade-dialog h1{margin:8px 0}.arcade-dialog .arcade-status:empty{min-height:0;margin:0}.arcade-dialog .arcade-actions{margin:10px 0}.arcade-dialog .arcade-actions button{padding:8px 12px}.arcade-dialog .arcade-turn{margin:12px 0}.arcade-dialog .arcade-pot,.arcade-dialog .arcade-wild{margin:10px 0;padding:10px 12px}.arcade-dialog h3{margin:12px 0 4px}.konker-piles button{flex:1}.arcade-dialog[aria-busy="true"] button{cursor:progress}@media(max-width:600px){.arcade-dialog nav.arcade-actions button{flex-grow:0}.arcade-dialog nav.arcade-actions{gap:6px}.arcade-dialog .konker-piles button{font-size:13px;padding:8px}.konker-seats span{padding:7px;font-size:12px}}

.dama-board{width:min(100%,560px,max(352px,calc(100dvh - 300px)));margin:12px auto}
/* Physical-card presentation: private hand buttons retain their accessible labels. */
.arcade-dialog .konker-card{position:relative;min-width:62px;width:62px;height:98px;min-height:98px;padding:0;overflow:visible;touch-action:pan-y;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;cursor:grab;isolation:isolate}
.playing-card-face{position:absolute;inset:0;border-radius:8px;background:linear-gradient(125deg,#fffdf4,#f4ead3);color:inherit;overflow:hidden;pointer-events:none}
.card-corner{position:absolute;z-index:1;white-space:pre-line;font:700 12px/1.02 Georgia;text-align:center}.corner-top{top:5px;left:4px}.corner-bottom{bottom:5px;right:4px;transform:rotate(180deg)}
.card-pips{position:absolute;inset:14px 13px;display:grid;grid-template:repeat(5,1fr)/repeat(3,1fr);place-items:center;font:13px/1 Georgia}.card-pips .lower-pip{transform:rotate(180deg)}.card-pips.ace-pip{font-size:32px;inset:14px 8px}.court-symbol{position:absolute;inset:17px 11px;display:grid;place-items:center;border:1px solid #bf995c;border-radius:45% 45% 25% 25%;font:700 32px Georgia;background:repeating-linear-gradient(45deg,#c7a45a16 0 3px,transparent 3px 7px)}.court-suit{position:absolute;bottom:2px;font:16px Georgia}.joker-face{color:#704476}.joker-word{position:absolute;bottom:13px;left:0;right:0;text-align:center;font:bold 8px system-ui;letter-spacing:1px}.joker-face .court-symbol{font-size:29px;border-color:#a579a4}.arcade-dialog .konker-card.card-dragging{z-index:20;box-shadow:0 12px 22px #0008;cursor:grabbing;transition:none}
.konker-public-card{position:relative;display:inline-block;width:46px;height:72px;border:1px solid #aa8b50;border-radius:8px;color:#241b18;box-shadow:0 2px 4px #0005;flex:0 0 auto}.konker-public-card.red{color:#ad263a}.konker-public-card.wild{outline:2px solid #51c9bd}.konker-public-card .card-corner{font-size:9px}.konker-public-card .card-pips{font-size:9px;inset:12px 10px}.konker-public-card .ace-pip{font-size:25px}.konker-public-card .court-symbol{font-size:23px;inset:13px 9px}.konker-public-card .court-suit{font-size:11px}.konker-help{font-size:12px!important;line-height:1.45!important;color:#dbc8a9;margin:7px 0}.konker-rule-setting{font:13px system-ui;color:#f5d38e;margin:8px 0}.konker-drafts,.konker-public-table{margin:18px 0;padding:14px;border:1px solid #a77a4455;border-radius:14px;background:#0e090633}.konker-public-table{border-color:#c5a36a;background:#392c1c66}.konker-draft-line,.konker-table-cards{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin:10px 0}.konker-draft-line>span:last-child:not(.konker-public-card){font:13px system-ui;padding-left:8px}.konker-arrange button{font-size:12px!important;padding:8px!important}.konker-meld>small{display:block;margin:8px 0}
@media(max-width:600px){.arcade-dialog .konker-card{width:54px;min-width:54px;height:88px;min-height:88px}.card-corner{font-size:11px}.card-pips{font-size:11px;inset:13px 11px}.court-symbol{font-size:28px;inset:16px 10px}.konker-hand{gap:7px}.konker-drafts,.konker-public-table{padding:10px}}

/* Konker royal table: scoped away from Dama and all existing games. */
.konker-royal-room{background:radial-gradient(ellipse at 50% 40%,#95500e 0,#4c270e 46%,#1b0c08 95%);max-width:1000px!important;width:100vw;min-height:100dvh;border-color:#d5aa5e!important;color:#fff0d1}
.konker-royal-room .konker-public-table{border:3px ridge #f1cf8a;background:linear-gradient(135deg,#3b251e,#63432b,#281a16);box-shadow:inset 0 0 18px #0009,0 6px 20px #0006;display:flex;flex-wrap:wrap;gap:10px;justify-content:center;margin:16px 0}
.konker-royal-room .konker-public-table>h3,.konker-royal-room .konker-public-table>p{width:100%;text-align:center}.konker-royal-room .konker-meld{padding:8px;border:1px solid #a67b4c;border-radius:10px;background:#110b0866;max-width:100%;flex:1 1 180px}.konker-royal-room .konker-table-cards{gap:2px;flex-wrap:wrap}.konker-royal-room .konker-meld>small{color:#ffe096;font-weight:bold}.konker-royal-room .konker-seats{display:flex;flex-wrap:wrap;justify-content:space-around;gap:8px}.konker-royal-room .konker-seats span{background:repeating-linear-gradient(45deg,#50321e 0 3px,#674829 3px 5px);border:2px ridge #b99159;box-shadow:0 4px 9px #0007;padding:14px;border-radius:8px}.konker-royal-room .konker-seats .active{outline:2px solid #f4d66b}
.konker-royal-room .konker-piles{display:grid;grid-template-columns:1fr 1fr;justify-items:center;max-width:420px;margin:18px auto;gap:16px}.konker-stock-art{width:72px;height:104px;border:4px double #e7bf78;border-radius:7px;background:repeating-conic-gradient(#986731 0 25%,#68451f 0 50%) 0/12px 12px;transform:perspective(500px) rotateY(12deg) rotateZ(5deg);box-shadow:-3px 3px #e7d1a5,-6px 6px #7e603d,-9px 9px #e7d1a5,0 12px 18px #0008;display:grid;place-items:center;color:#f7d391;font:36px Georgia}.konker-discard-art{display:flex;min-height:110px;padding-left:10px;align-items:center}.konker-royal-room .konker-discard-card{position:relative;width:68px;height:102px;min-width:68px;padding:0;transform:rotate(-7deg);color:#211a16;border:1px solid #bea676;box-shadow:0 5px 8px #0008}.konker-royal-room .konker-discard-card:last-child{margin-left:-24px;transform:rotate(9deg)}.konker-royal-room .konker-discard-card.selected{outline:3px solid #79e9f2}.konker-royal-room .konker-piles>button{width:100%;min-height:48px}
.konker-royal-room .konker-hand{display:flex;flex-wrap:nowrap;overflow-x:auto;overflow-y:hidden;align-items:center;justify-content:flex-start;padding:22px 10px 14px;min-height:150px;max-width:100%;gap:0;scrollbar-width:thin}.konker-royal-room .konker-hand .konker-card{flex:0 0 62px;margin-right:-12px;transform:rotate(-2deg);transition:transform .18s ease,box-shadow .18s ease}.konker-royal-room .konker-hand .konker-card:last-child{margin-right:0}.konker-royal-room .konker-hand .konker-card.selected{transform:translate3d(0,-13px,0);box-shadow:0 0 12px #68e0ec;outline:2px solid #95f7ff;z-index:2}.konker-royal-room button:focus-visible{outline:3px solid #91edff;outline-offset:3px}.konker-royal-room>button:last-child{background:linear-gradient(#ac3c35,#681d1a);border-color:#e9a58b;font-weight:bold;min-height:48px}.konker-round-score{color:#ffe190;text-align:center;font-weight:bold}
@media(max-width:600px){.konker-royal-room{padding:8px!important}.konker-royal-room .konker-hand .konker-card{flex-basis:54px;margin-right:-8px}.konker-royal-room .konker-meld{flex-basis:135px}.konker-royal-room .konker-meld button{font-size:12px;min-height:44px}.konker-royal-room .konker-seats span{font-size:11px;padding:8px}.konker-royal-room .konker-public-table{gap:6px;padding:8px}.konker-royal-room .konker-table-cards .konker-public-card{width:36px;height:60px}.konker-royal-room .konker-hand{min-height:132px}}
@media(prefers-reduced-motion:reduce){.konker-royal-room .konker-hand .konker-card{transition:none}}
.konker-royal-room header{display:flex;align-items:center;justify-content:space-between;margin:4px 0!important}.konker-royal-room header h1{font-size:22px!important}.konker-royal-room nav.arcade-actions{margin:4px 0!important}.konker-royal-room .arcade-turn{font-size:18px;margin:6px 0!important}.konker-royal-room .konker-rule-setting,.konker-royal-room .arcade-wild,.konker-royal-room>.konker-practice-note,.konker-royal-room>small{display:none}.konker-royal-room .konker-seats span{padding:7px 10px}.konker-royal-room .konker-public-table{margin:10px 0;padding:8px}.konker-royal-room .konker-public-table h3{margin:0;font-size:16px}.konker-royal-room .konker-public-table>p{margin:8px;font-size:12px}.konker-royal-room .konker-piles{margin:12px auto 0;gap:10px}.konker-royal-room .konker-piles>.konker-help{grid-column:1/-1;text-align:center;margin:2px 0}.konker-royal-room>h3{font-size:15px;text-align:center;margin:4px 0}.konker-royal-room .konker-main-actions{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px}.konker-royal-room .konker-main-actions>button,.konker-royal-room .konker-grouping>summary{padding:9px 5px;font-size:12px;min-height:58px;border:1px solid #d7b375;border-radius:10px;background:linear-gradient(#784574,#39203a);color:#fff3d2;text-align:center;display:grid;place-items:center;cursor:pointer}.konker-royal-room .konker-main-actions>button:last-child{background:linear-gradient(#cb9537,#715019)}.konker-grouping[open]{grid-column:1/-1;grid-row:2}.konker-grouping[open]>summary{min-height:44px!important}.konker-tools{margin:12px 0;border-top:1px solid #b18d51;padding-top:8px}.konker-tools>summary{min-height:44px;cursor:pointer}.konker-royal-room .konker-discard-card.red{color:#ad263a}.konker-royal-room .konker-discard-card:disabled{opacity:1}.konker-royal-room .konker-drafts{margin:8px 0}.konker-royal-room .konker-main-actions button:disabled{opacity:.45}
.konker-seat-backs{display:block;font-style:normal;text-align:center;color:#d6b578;letter-spacing:-3px;font-size:18px}.konker-seats span>button{display:inline-block!important;min-height:44px;min-width:44px;padding:2px!important;margin-left:5px}
.konker-royal-room>.arcade-resign{background:linear-gradient(#ac3c35,#681d1a)!important;border:2px solid #e9a58b!important;color:#fff3e7;font-weight:bold;min-height:48px;width:100%;margin:10px 0}.konker-royal-room>.konker-goals{width:100%;text-align:left;min-height:44px;padding:8px 12px;background:#372014;border:1px solid #ad874b;color:#f3d698}
.konker-floor-action{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px;margin:10px 0;padding:10px;border:1px solid #c7a05b;border-radius:10px;background:#271711}.konker-floor-action>button{min-height:48px;background:linear-gradient(#d5aa4b,#8c5b1c);color:#fff7df;font-weight:bold}.konker-floor-action>p{flex-basis:100%}
/* Dama: carved royal presentation; board colours and piece artwork retained. */
.arcade-dialog.dama-royal-room{padding:8px max(10px,calc((100vw - 650px)/2));background:radial-gradient(ellipse at 50% 42%,#704321,#2c160e 62%,#120b08);color:#fff0cf}
.dama-royal-room>header{display:flex;align-items:center;justify-content:space-between;margin:4px 0!important;padding:8px 12px;border:1px solid #a47b43;border-radius:12px;background:linear-gradient(110deg,#392019,#1d100c)}
.dama-royal-room>header h1{font:bold 23px Georgia;margin:0!important;letter-spacing:.04em}.dama-toolbar{display:flex;gap:7px}.dama-royal-room .dama-icon{min-width:44px;min-height:44px;padding:4px;font-size:22px;border-color:#b68a4b;border-radius:10px}
.dama-player{max-width:560px;margin:8px auto;display:flex;align-items:center;gap:10px;padding:9px 14px;border:1px solid #8f673a;border-radius:12px;background:linear-gradient(110deg,#2b180f,#402819);box-shadow:inset 0 1px #e9bc5c22}.dama-player.is-turn{border-color:#e4bd73;box-shadow:0 0 16px #e9b54c1c,inset 0 1px #ffe4a444}.dama-player strong{display:block;font:600 17px Georgia}.dama-player small{display:block;font:12px system-ui;color:#cdbb9f}.dama-turn-pill{margin-left:auto;color:#ffe4a0;font:600 12px system-ui;background:#6d4825;border:1px solid #a67a3d;border-radius:20px;padding:6px 10px}
.dama-seat-piece{width:30px;height:30px;border-radius:50%;border:2px solid #d6b26e;box-shadow:inset 0 0 0 3px #fff2,0 3px 4px #0007;flex:none}.dama-seat-piece.ivory{background:radial-gradient(circle at 30% 20%,#ffeac0,#c39754 65%,#71441d)}.dama-seat-piece.onyx{background:radial-gradient(circle at 30% 20%,#806188,#2d1d33 65%,#100b12)}
.dama-royal-frame{position:relative;max-width:580px;margin:12px auto;padding:12px;border:3px double #edca84;border-radius:18px;background:repeating-linear-gradient(96deg,#694020 0 3px,#724925 3px 6px,#573318 6px 10px);box-shadow:inset 0 0 0 4px #2c170e,inset 0 0 0 6px #be914b,0 12px 24px #0008}.dama-royal-frame:before,.dama-royal-frame:after{content:'✣';position:absolute;left:-8px;color:#f7d790;text-shadow:0 2px #351d0c;font:24px Georgia;z-index:1}.dama-royal-frame:before{top:-12px}.dama-royal-frame:after{bottom:-12px;left:auto;right:-8px}
.dama-royal-room .dama-board{width:100%;max-width:none;margin:0;border:3px solid #3a2112;border-radius:5px;box-shadow:inset 0 0 15px #0008}.dama-royal-room .dama-square.dark{background:linear-gradient(130deg,#65432a,#4e2e1d)}.dama-royal-room .dama-square.light{background:linear-gradient(130deg,#dbbd87,#c3a16c)}.dama-royal-room .dama-square.target:after{inset:37%;background:#a5f2cd;box-shadow:0 0 0 4px #51bda229,0 0 12px #8ee8be55}.dama-royal-room .dama-square.chosen{box-shadow:inset 0 0 0 3px #ffe4a0}.dama-royal-room .dama-move-hint{font:12px/1.5 system-ui;text-align:center;color:#e1cba6;margin:10px 0}.dama-clear-selection{display:block;margin:8px auto;min-height:44px}
.dama-pause-panel,.dama-result{max-width:550px;margin:12px auto;padding:18px;border:1px solid #c79c58;border-radius:14px;background:#21120ef2;text-align:center}.dama-pause-panel h2,.dama-result h2{margin:0 0 8px;font:22px Georgia}.dama-pause-panel button{margin:4px}.dama-pause-panel p{font:13px/1.5 system-ui}.dama-royal-room .dama-danger{color:#ffd1bc;border-color:#bc7251;background:linear-gradient(#703b2b,#3e2019)}
.dama-match-chat{position:fixed;z-index:10;right:max(10px,calc((100vw - 620px)/2));bottom:16px;width:min(380px,calc(100vw - 20px));max-height:min(65dvh,530px);display:flex;flex-direction:column;padding:14px;border:2px solid #cba35e;border-radius:16px;background:#20130ff5;box-shadow:0 12px 45px #000b;box-sizing:border-box}.dama-match-chat header{margin:0;display:flex;justify-content:space-between;align-items:center}.dama-match-chat h2{font:20px Georgia;margin:0}.dama-match-chat>p{font:11px/1.4 system-ui;color:#d6bf98;margin:4px 0 10px}.dama-chat-messages{overflow-y:auto;min-height:90px;flex:1;overscroll-behavior:contain}.dama-chat-bubble{background:#4d3526;border-radius:12px 12px 12px 3px;padding:8px 11px;margin:7px 32px 7px 0;overflow-wrap:anywhere}.dama-chat-bubble.mine{margin:7px 0 7px 32px;border-radius:12px 12px 3px 12px;background:#365247}.dama-chat-bubble small{font:11px system-ui;color:#edcc8d}.dama-chat-bubble p{font:14px/1.45 system-ui;margin:3px 0;white-space:pre-wrap}.dama-match-chat form{display:flex;gap:8px;margin-top:10px}.arcade-dialog .dama-match-chat input{flex:1;width:0;height:44px;padding:10px;min-width:0;border:1px solid #9c7d4a;border-radius:9px;background:#100c09;color:#fff2da;box-sizing:border-box;font:14px system-ui}
@media(max-width:600px){.dama-royal-room .dama-royal-frame{padding:9px;margin:9px auto}.dama-player{padding:7px 10px;margin:6px auto}.dama-player strong{font-size:15px}.dama-turn-pill{font-size:11px;padding:5px 7px}.dama-royal-room>header h1{font-size:20px}.dama-royal-room>header{padding:6px 10px}.dama-royal-room .dama-piece{box-shadow:inset 0 0 0 2px #ffffff25,0 3px 2px #0008}}
.dama-royal-room .dama-royal-frame,.dama-royal-room .dama-player{width:min(100%,580px,max(280px,calc(100dvh - 330px)));box-sizing:border-box}.dama-royal-room .dama-square.available .dama-piece{outline:1px solid #ffe2a077;outline-offset:1px}
.dama-pause-panel,.dama-result{position:fixed;z-index:5;left:50%;top:50%;transform:translate(-50%,-50%);width:min(500px,calc(100vw - 36px));box-sizing:border-box;max-height:80dvh;overflow:auto;margin:0;box-shadow:0 0 0 100vmax #10090599,0 16px 45px #000a}.dama-toolbar svg{width:22px;height:22px;display:block;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
/* Entry and capture storage stay separate from the playable 8x8 grid. */
.dama-entry-screen{max-width:none;padding:16px max(12px,calc((100vw - 720px)/2));background:radial-gradient(ellipse at 50% 20%,#6c4428,#24130e 75%)}.dama-entry-intro,.dama-entry-card{padding:18px;border:1px solid #bb9354;border-radius:15px;background:linear-gradient(120deg,#4b2e1d,#25150f);margin:12px 0;box-shadow:inset 0 1px #e8c58633}.dama-entry-intro h2{margin:0}.dama-entry-card strong{font:600 18px Georgia}.dama-entry-intro button,.dama-entry-card button{margin:4px}.dama-entry-card p{color:#d8c3a1;font-size:13px}.dama-end-confirm{padding:8px;border-left:3px solid #bd8e4c}
.dama-vs-strip{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px;max-width:720px;margin:8px auto}.dama-vs-strip .dama-player{width:100%;margin:0;min-width:0;flex-wrap:wrap;gap:6px;padding:8px}.dama-vs-strip .dama-player>div{min-width:0;flex:1}.dama-vs-strip strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.dama-vs-strip .dama-turn-pill{font-size:10px;padding:4px 7px}
.dama-board-stage{display:grid;grid-template-columns:clamp(26px,6vw,60px) minmax(0,1fr) clamp(26px,6vw,60px);gap:8px;align-items:stretch;width:min(100%,720px,max(360px,calc(100dvh - 180px)));margin:12px auto}.dama-board-stage .dama-royal-frame{width:100%;max-width:none;margin:0;min-width:0;padding:9px}.dama-capture-pot{border:3px ridge #ae7a3e;border-radius:44%/12%;background:radial-gradient(ellipse at center,#180d08 20%,#3d2516 60%,#976233 90%);box-shadow:inset 0 0 12px #000b,0 4px 7px #0007;text-align:center;padding:12px 3px;color:#f4d89b;min-width:0;overflow:hidden}.dama-capture-pot>small{font:10px/1.2 system-ui;display:block;overflow-wrap:anywhere}.dama-capture-pot>strong{font:700 20px Georgia;display:block;margin:7px 0}.dama-pot-pieces{display:flex;flex-direction:column;align-items:center;gap:3px}.dama-pot-token{width:min(28px,80%);aspect-ratio:1;border:1px solid #d0b176;border-radius:50%;box-shadow:inset 0 0 0 2px #fff2,0 2px 2px #0009;flex:none}.dama-pot-token.ivory{background:radial-gradient(circle at 30% 20%,#ffebbe,#be904b 65%,#70461c)}.dama-pot-token.onyx{background:radial-gradient(circle at 30% 20%,#806188,#2d1d33 65%,#100b12)}
@media(max-width:600px){.dama-board-stage{grid-template-columns:26px minmax(0,1fr) 26px;gap:4px}.dama-board-stage .dama-royal-frame{padding:6px;border-width:2px}.dama-capture-pot{padding:10px 1px;border-width:2px}.dama-capture-pot>small{font-size:8px}.dama-capture-pot>strong{font-size:17px}.dama-vs-strip strong{font-size:13px}.dama-vs-strip .dama-seat-piece{width:22px;height:22px}.dama-pot-token{width:17px}.dama-vs-strip .dama-turn-pill{margin-left:0}}
.dama-capture-pot>small{max-height:24px;overflow:hidden}.dama-pot-pieces{gap:0}.dama-pot-token:not(:first-child){margin-top:-5px}
/* Supplied board artwork, with the interactive grid registered to its painted squares. */
.dama-royal-room .dama-photo-stage{grid-template-columns:.2955fr minmax(0,1fr) .2955fr;gap:0;width:min(100%,1080px,calc((100dvh - 230px)*1.591));align-items:center;margin:12px auto;filter:drop-shadow(0 10px 12px #0007)}
.dama-photo-stage .dama-photo-frame{position:relative;aspect-ratio:714/708;width:100%;padding:0!important;border:0;border-radius:2%;background:none;box-shadow:none;overflow:hidden;margin:0}.dama-photo-frame:before,.dama-photo-frame:after{display:none}.dama-photo-art{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;display:block}
.dama-royal-room .dama-photo-frame .dama-board{position:absolute;left:9.66%;top:9.75%;width:80.67%;height:80.23%;max-width:none;aspect-ratio:auto;grid-template-rows:repeat(8,minmax(0,1fr));margin:0;border:0;border-radius:0;box-shadow:none;background:none;overflow:visible}.dama-photo-frame .dama-square{width:100%;height:100%;box-sizing:border-box;aspect-ratio:auto!important;padding:10%!important;background:transparent!important}.dama-photo-frame .dama-square.chosen{box-shadow:inset 0 0 0 2px #fff0af}.dama-photo-frame .dama-square.available .dama-piece{outline-color:#ffe7a555}.dama-photo-frame .dama-piece{box-shadow:inset 0 0 0 2px #ffffff18,inset 0 -3px 4px #0005,0 4px 3px #0008}
.dama-photo-stage .dama-capture-pot{position:relative;width:100%;height:65.25%;align-self:center;border:0;border-radius:0;background:none;box-shadow:none;padding:0;overflow:visible;box-sizing:border-box}.dama-photo-stage .dama-capture-pot>small{position:absolute;top:13%;left:12%;width:76%;color:#f4d39c;text-shadow:0 1px 3px #000;font:11px/1.2 system-ui;max-height:28px;z-index:1}.dama-photo-stage .dama-capture-pot>strong{position:absolute;top:20%;left:12%;width:76%;margin:0;color:#f8dc9b;text-shadow:0 2px 3px #000;font:700 22px Georgia;z-index:1}.dama-photo-stage .dama-pot-pieces{position:absolute;left:25%;top:32%;width:50%;height:52%;display:flex;flex-flow:row wrap;align-content:flex-start;justify-content:center;gap:3px;overflow:hidden}.dama-photo-stage .dama-pot-token{width:26px;max-width:40%;margin:0!important;aspect-ratio:1}.dama-royal-room .dama-seat-piece.onyx,.dama-photo-stage .dama-piece.onyx,.dama-photo-stage .dama-pot-token.onyx{background:radial-gradient(circle at 35% 25%,#6a503d,#291c13 65%,#0c0907)}
.dama-toolbar .dama-icon{position:relative;overflow:visible}.dama-chat-unread{position:absolute;top:-7px;right:-7px;display:grid;place-items:center;min-width:21px;height:21px;padding:0 4px;box-sizing:border-box;border-radius:14px;border:2px solid #f4d6a0;background:#b72c28;color:#fff;font:700 11px system-ui;box-shadow:0 2px 5px #0007}.dama-entry-unread{display:inline-block;margin-left:8px;padding:4px 8px;border-radius:12px;background:#942a23;color:#fff2d2;font:600 11px system-ui}
.dama-message-toast,.arcade-dialog .dama-message-toast{position:fixed;top:max(14px,env(safe-area-inset-top));left:50%;transform:translateX(-50%);z-index:99999;display:flex;flex-direction:column;align-items:flex-start;gap:3px;width:min(340px,calc(100vw - 32px));padding:12px 18px;border:1px solid #e7bc70;border-radius:14px;background:linear-gradient(120deg,#493420f5,#20170ff5);color:#fff0cf;box-shadow:0 6px 28px #0008;cursor:pointer;text-align:left;backdrop-filter:blur(12px)}.dama-message-toast strong{font:700 15px Georgia}.dama-message-toast span{font:12px system-ui;color:#e8d5b6}
.dama-royal-room .dama-match-chat{left:50%;right:auto;top:50%;bottom:auto;transform:translate(-50%,-50%);width:min(390px,calc(100vw - 28px));height:min(540px,74dvh);max-height:74dvh;padding:0;border:1px solid #c9b38488;border-radius:24px;background:linear-gradient(145deg,#4b3c25ce,#211b13de);backdrop-filter:blur(18px);box-shadow:0 16px 55px #0009;overflow:hidden}.dama-match-chat>header{padding:15px 18px!important;margin:0!important;border-bottom:1px solid #dfc18c33;background:linear-gradient(110deg,#fff2,#0001)}.dama-match-chat h2{font:700 20px system-ui;color:#edcd86;margin:0 0 4px}.dama-match-chat header small{font:12px system-ui;color:#e4d4b6}.dama-match-chat header .dama-icon{border:0;background:none;color:#e0bf74;font-size:28px;box-shadow:none}.dama-match-chat .dama-chat-messages{padding:14px 18px;min-height:80px;flex:1;scrollbar-width:thin}.dama-match-chat .dama-chat-bubble{width:fit-content;max-width:85%;margin:7px auto 12px 0;padding:10px 14px;border:1px solid #e6dfcc33;border-radius:19px 19px 19px 5px;background:linear-gradient(130deg,#fff2,#fff1);box-shadow:0 2px 7px #0002}.dama-match-chat .dama-chat-bubble.mine{margin:7px 0 12px auto;border-radius:19px 19px 5px 19px;border-color:#f3d38a99;background:linear-gradient(130deg,#b28239e6,#80541ee6)}.dama-match-chat .dama-chat-bubble p{font:14px/1.45 system-ui;color:#fff4dd;margin:0}.dama-chat-empty{font:13px system-ui!important;color:#d6c6aa;text-align:center;margin:18px 0!important}.dama-match-chat form{position:relative;flex:none;display:flex;align-items:center;gap:4px;margin:10px 12px 12px;padding:7px;border:1px solid #d7bf88aa;border-radius:20px;background:#fff1}.arcade-dialog .dama-match-chat input{border:0;border-radius:0;background:transparent;outline-offset:-2px;font:14px system-ui;min-height:44px;padding:6px;box-shadow:none}.arcade-dialog .dama-match-chat .dama-chat-send{border:1px solid #f7d88c;background:linear-gradient(#ffe2a0,#c5923c);color:#3d2c12;width:40px;min-width:40px;height:40px;min-height:40px;border-radius:50%;padding:0;font:700 25px system-ui}.arcade-dialog .dama-match-chat .dama-emoji-toggle{border:0;background:none;width:34px;min-width:34px;min-height:44px;padding:0;color:#dec695;font:23px system-ui}.dama-emoji-picker{position:absolute;bottom:78px;left:15px;display:flex;gap:4px;padding:6px;border:1px solid #c9aa70;border-radius:13px;background:#38291ef5}.dama-emoji-picker button{padding:3px!important;font-size:21px!important;min-width:40px;min-height:40px}
@media(max-width:600px){.dama-royal-room .dama-photo-stage{grid-template-columns:.13fr minmax(0,1fr) .13fr;width:100%;max-width:500px}.dama-photo-stage .dama-capture-pot>small{font-size:8px;top:11%;max-height:20px;left:8%;width:84%}.dama-photo-stage .dama-capture-pot>strong{font-size:16px;top:23%}.dama-photo-stage .dama-pot-pieces{left:15%;width:70%;top:36%;gap:1px}.dama-photo-stage .dama-pot-token{width:14px;max-width:75%}.dama-photo-stage .dama-pot-token:not(:first-child){margin-top:-3px!important}.dama-match-chat h2{font-size:18px}}
@media(prefers-reduced-motion:reduce){.dama-message-toast{scroll-behavior:auto}}
/* Dama design v2 — scoped presentation only. */
.arcade-dialog.dama-entry-screen{padding:12px max(12px,calc((100vw - 840px)/2));background:#111718;color:#f4dfab}.dama-entry-screen>header{position:relative;isolation:isolate;overflow:hidden;border:1px solid #bd9459;border-radius:5px;background:linear-gradient(90deg,#3c2014,#23120d 50%,#47291b);padding:10px 16px;margin:12px 0 20px}.dama-entry-screen>header:before,.dama-entry-screen>header:after{content:'';position:absolute;z-index:-1;top:0;bottom:0;width:27%;opacity:.8;background-image:url('/dama-carved-board-v1.png');background-size:350% auto;background-position:33% 5%}.dama-entry-screen>header:before{left:0}.dama-entry-screen>header:after{right:0;transform:scaleX(-1)}.dama-entry-screen>header h1{font:700 clamp(28px,5vw,44px) Georgia;margin:0;color:#f7d88c;text-shadow:0 2px 3px #000}.dama-entry-screen>header>button{font:32px/1 Georgia;width:46px;height:46px;padding:0;border-radius:8px;border:2px solid #c5a26c}
.dama-entry-screen .dama-entry-intro{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(120px,.8fr);gap:20px;align-items:center;margin:0;padding:24px;border:1px solid #d3b17c;border-radius:18px;background:#28170f;box-shadow:none}.dama-intro-copy{min-width:0}.dama-entry-intro h2{font:700 clamp(23px,4vw,34px)/1.1 Georgia!important;margin:0 0 12px;color:#f5dfac}.dama-entry-intro p{font:15px/1.5 system-ui;margin:0 0 20px;color:#ead9b5}.dama-entry-actions{display:flex;gap:10px;flex-wrap:wrap}.dama-entry-intro .dama-entry-actions button{margin:0;min-height:48px;padding:10px 16px;flex:1;white-space:nowrap;border:2px solid #987545;border-radius:10px;box-shadow:inset 0 0 0 2px #fce0a13b,0 3px 5px #0007;font:700 15px system-ui}.dama-entry-actions .dama-bronze{background:linear-gradient(#c6a16d,#8d6636);color:#27180e}.dama-board-preview{position:relative;aspect-ratio:714/708;filter:drop-shadow(0 6px 6px #0008);overflow:hidden;border-radius:3%}.dama-games-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:22px 0 12px}.dama-games-heading h2{font:700 28px Georgia;margin:0}.dama-game-filters{display:flex;gap:4px}.dama-game-filters button{font:13px system-ui;min-height:40px;padding:8px 12px}.dama-game-filters [aria-pressed=true]{background:#d8af61;color:#28180d;border-color:#f4d790}.dama-games-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding-bottom:12px}.dama-entry-screen .dama-entry-card{margin:0;min-width:0;display:flex;flex-direction:column;justify-content:space-between;gap:18px;padding:20px;min-height:140px;border:1px solid #bda06c;background:#271811;box-shadow:none;border-radius:14px;overflow:hidden}.dama-entry-card .dama-game-info{min-width:0}.dama-entry-card strong{font:700 22px/1.25 Georgia;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.dama-entry-card p{font:13px/1.4 system-ui;margin:8px 0 0;color:#deccb0}.dama-entry-card .dama-game-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.dama-entry-card .dama-game-actions button{margin:0;min-height:44px;padding:9px 18px}.dama-entry-card .dama-entry-unread{margin:8px 0 0}.dama-games-list.is-compact{display:flex;flex-direction:column;max-height:min(52dvh,480px);overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;padding-right:4px}.dama-games-list.is-compact .dama-entry-card{flex:none;min-height:0;flex-direction:row;align-items:center;padding:14px;gap:12px}.is-compact .dama-game-info{flex:1}.is-compact .dama-entry-card strong{font-size:18px}.is-compact .dama-game-actions{flex:none}.dama-games-empty{grid-column:1/-1;color:#cebd9e}
.arcade-dialog.dama-royal-room{padding:10px max(10px,calc((100vw - 880px)/2));background:radial-gradient(ellipse at 50% 40%,#50301b,#211209 75%,#150c08)}.dama-royal-room>header{padding:10px 14px;border-color:#a78b64;background:linear-gradient(110deg,#3e2418,#21130d);border-radius:13px}.dama-royal-room>header h1{font:700 28px Georgia}.dama-toolbar{gap:7px;align-items:center}.dama-toolbar button{border:2px double #c2a06b;border-radius:7px;background:linear-gradient(#69472a,#362214);box-shadow:inset 0 0 0 2px #d7b26d28,0 2px 5px #0006;color:#f3d99d;min-height:44px}.dama-toolbar .dama-rules-button{font:700 16px Georgia;padding:9px 13px}.dama-toolbar .dama-icon{min-width:44px;font-size:25px}.dama-vs-strip{max-width:none;gap:10px;margin:14px 0}.dama-vs-strip .dama-player{flex-wrap:nowrap;min-height:72px;padding:12px;border:2px double #b79966;border-radius:10px;background:linear-gradient(100deg,#56351e,#2b190e);box-shadow:inset 0 0 0 3px #cf9d5022}.dama-vs-strip strong{font:700 19px Georgia}.dama-vs-strip .dama-seat-piece{width:42px;height:42px;border:0;box-shadow:none;background:none!important}.dama-token-art{position:absolute;inset:0;width:100%;height:100%;display:block;pointer-events:none}.dama-seat-piece,.dama-piece,.dama-pot-token{position:relative;isolation:isolate;overflow:hidden}.dama-piece:has(.dama-token-art),.dama-pot-token:has(.dama-token-art){background:none!important;border:0;box-shadow:0 3px 3px #0008!important}.dama-piece{color:#ffdb79!important;text-shadow:0 2px 2px #2c170c;font-weight:bold}.dama-piece .dama-token-art{z-index:-1}.dama-turn-pill{white-space:nowrap}.dama-player.is-turn .dama-turn-pill{border:1px solid #ffe2a0;background:#705229;box-shadow:0 0 10px #ffda7c80,inset 0 0 7px #f9dc7866;color:#fff0bf;font-size:12px}
.dama-royal-room .dama-photo-stage{grid-template-columns:.105fr minmax(0,1fr) .105fr;gap:6px;width:min(100%,880px,calc((100dvh - 240px)*1.2));margin:16px auto;align-items:center}.dama-photo-stage .dama-capture-pot{height:78%;align-self:center}.dama-photo-stage .dama-pot-label{position:absolute;left:50%;top:50%;width:auto;max-height:none;max-width:none;transform:translate(-50%,-50%) rotate(-90deg);white-space:nowrap;overflow:visible;overflow-wrap:normal;font:700 clamp(12px,1.7vw,19px) Georgia;z-index:2;color:#f0d5a3}.dama-photo-stage .dama-capture-pot:last-child .dama-pot-label{transform:translate(-50%,-50%) rotate(-90deg)}.dama-photo-stage .dama-pot-pieces{top:14%;height:72%;left:18%;width:64%;display:flex;flex-direction:column;flex-wrap:nowrap;gap:0;align-items:center;justify-content:flex-start;overflow:hidden}.dama-photo-stage .dama-pot-token{width:100%;max-width:none;max-height:18%;flex:none}.dama-photo-stage .dama-pot-token:not(:first-child){margin-top:-12%!important}.dama-photo-frame .dama-square{padding:7%!important}.dama-royal-room .dama-square.target:after{inset:28%;background:#e6c87a99;box-shadow:0 0 0 3px #fff0ab44,0 0 15px #ffda7280}.dama-royal-room .dama-square.chosen{box-shadow:inset 0 0 0 3px #ffe5a1}.dama-royal-room .dama-move-hint{font:14px/1.4 system-ui;margin:14px 0 20px}
.dama-modal-backdrop{position:fixed;z-index:20;inset:0;display:grid;place-items:center;padding:18px;background:#080502a8;box-sizing:border-box;overflow:auto;overscroll-behavior:contain}.dama-royal-room .dama-match-chat{position:relative;top:auto;left:auto;right:auto;bottom:auto;transform:none;width:min(560px,100%);height:min(660px,82dvh);max-height:82dvh;border-radius:22px;background:linear-gradient(135deg,#83715566,#2a221966);backdrop-filter:blur(14px);border:1px solid #e8d9b080;box-shadow:0 15px 55px #0009}.dama-match-chat>header{padding:18px 20px!important}.dama-match-chat h2{font:700 23px Georgia}.dama-match-chat header small{font-size:14px}.dama-match-chat .dama-chat-bubble{padding:12px 16px;border-radius:24px 24px 24px 6px;max-width:85%}.dama-match-chat .dama-chat-bubble.mine{border-radius:24px 24px 6px 24px}.dama-match-chat .dama-chat-bubble p{font-size:16px;line-height:1.5}.dama-match-chat form{border-radius:40px;margin:12px 16px 16px}.dama-match-chat input:focus-visible{outline:1px solid #eaca86;outline-offset:-1px}.dama-match-chat .dama-chat-messages{padding:16px 20px}
.dama-rules-modal,.dama-modal-backdrop .dama-result{position:relative;top:auto;left:auto;transform:none;width:min(590px,100%);max-height:88dvh;margin:0;overflow:auto;box-sizing:border-box;border:3px double #c3a26a;border-radius:13px;padding:24px;background:radial-gradient(ellipse at top,#573722,#28170f);box-shadow:inset 0 0 0 5px #321c12,inset 0 0 0 6px #ac8245,0 16px 45px #000a;color:#f4dfb1}.dama-rules-modal>header{margin:0 0 20px!important;gap:10px}.dama-rules-modal h2{font:700 clamp(23px,4vw,30px) Georgia;margin:0}.dama-rules-modal .dama-icon{min-width:44px;min-height:44px;font-size:24px;padding:0}.dama-rule-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.dama-rule-grid article{border:1px solid #ad905a;border-radius:14px;background:#29190f;padding:18px 16px;box-shadow:0 3px 5px #0005}.dama-rule-grid h3{font:700 19px/1.25 Georgia;margin:0 0 12px}.dama-rule-grid p{font:15px/1.5 system-ui;margin:0;color:#e9d9b7}.dama-full-rules{margin:16px 0;color:#dfc9a2;font:13px/1.5 system-ui}.dama-full-rules summary{min-height:36px;cursor:pointer}.dama-rules-modal>.primary{display:block;min-width:155px;margin:18px auto 0;border-radius:25px;box-shadow:0 0 15px #d8ad4b66;font:700 22px Georgia}.dama-result-counts{margin:18px 0;padding:10px 0;border-block:1px solid #b18a4e66}.dama-result h2{font:700 30px Georgia}.dama-result h3{font:700 23px Georgia}.dama-earned-reward{color:#ffdb89;font-weight:700!important}.dama-result-actions{display:flex;justify-content:center;gap:10px;flex-wrap:wrap}
@media(max-width:600px){.arcade-dialog.dama-royal-room{padding:8px}.dama-royal-room>header{padding:8px 10px}.dama-royal-room>header h1{font-size:24px}.dama-toolbar{gap:5px}.dama-toolbar .dama-rules-button{font-size:14px;padding:8px}.dama-vs-strip{gap:6px;margin:10px 0}.dama-vs-strip .dama-player{padding:8px;gap:6px;min-height:65px;flex-wrap:wrap}.dama-vs-strip .dama-seat-piece{width:32px;height:32px}.dama-vs-strip strong{font-size:15px}.dama-vs-strip small{font-size:11px}.dama-vs-strip .dama-turn-pill{margin-left:auto;font-size:10px;padding:4px 6px}.dama-royal-room .dama-photo-stage{width:100%;grid-template-columns:.09fr minmax(0,1fr) .09fr;gap:4px}.dama-photo-stage .dama-pot-label{font-size:12px;left:50%;top:50%;width:auto;max-height:none}.dama-photo-stage .dama-pot-pieces{top:14%;left:18%;width:64%;gap:0}.dama-photo-stage .dama-pot-token{width:100%;max-width:none}.dama-entry-screen .dama-entry-intro{padding:16px;gap:12px;grid-template-columns:minmax(0,1.4fr) minmax(90px,.75fr)}.dama-entry-intro h2{font-size:23px!important}.dama-entry-intro p{font-size:12px;margin-bottom:14px}.dama-entry-actions{gap:6px}.dama-entry-intro .dama-entry-actions button{font-size:12px;padding:8px;white-space:normal;min-width:70px}.dama-games-heading{flex-wrap:wrap;margin-top:20px}.dama-entry-screen .dama-entry-card{padding:15px;min-height:125px}.dama-entry-card strong{font-size:19px}.dama-entry-card .dama-game-actions{gap:6px}.dama-entry-card .dama-game-actions button{padding:8px 11px;font-size:13px}.dama-games-list{gap:10px}.dama-games-list.is-compact .dama-entry-card{padding:12px}.is-compact .dama-game-actions{flex-wrap:nowrap}.is-compact .dama-entry-card strong{font-size:16px}.dama-game-filters button{padding:7px 10px}.dama-rules-modal{padding:20px 16px}.dama-rule-grid{gap:8px}.dama-rule-grid article{padding:14px 12px}.dama-rule-grid h3{font-size:17px}.dama-rule-grid p{font-size:13px}.dama-match-chat h2{font-size:21px}.dama-match-chat .dama-chat-bubble p{font-size:15px}.dama-modal-backdrop{padding:14px}.dama-royal-room .dama-match-chat{height:min(620px,82dvh)}}
@media(max-width:350px){.dama-toolbar{gap:3px}.dama-toolbar .dama-icon{min-width:38px}.dama-entry-screen .dama-entry-intro{grid-template-columns:1fr 88px;padding:12px}.dama-entry-intro h2{font-size:20px!important}.dama-games-list:not(.is-compact){grid-template-columns:1fr}.dama-rule-grid article{padding:12px 9px}.dama-rule-grid h3{font-size:15px}.dama-vs-strip .dama-turn-pill{font-size:9px}}
.dama-entry-screen>header:before,.dama-entry-screen>header:after{background-image:none;background-size:100% 100%;background-position:center;width:26%;opacity:.65}.dama-entry-screen>header h1{position:relative;z-index:1}.dama-photo-stage .dama-capture-pot>small.dama-pot-label{left:50%;top:50%;width:auto;max-height:none;max-width:none;white-space:nowrap;overflow:visible;overflow-wrap:normal;font:700 clamp(12px,1.7vw,19px) Georgia;color:#f4d39c}.dama-photo-stage .dama-capture-pot:has(.dama-pot-token)>small.dama-pot-label{top:82%;font-size:12px}.dama-photo-stage .dama-capture-pot:has(.dama-pot-token) .dama-pot-pieces{height:55%}.dama-game-actions .dama-danger{background:#6e3021}.dama-match-chat input:focus-visible{outline:1px solid #d9bd7f!important;outline-offset:-1px!important}
@media(max-width:600px){.dama-photo-stage .dama-capture-pot>small.dama-pot-label{font-size:12px}.dama-vs-strip .dama-player{min-height:62px}.dama-games-list.is-compact .dama-game-actions{max-width:46%;flex-wrap:wrap;justify-content:flex-end}.dama-games-list.is-compact .dama-game-actions button{min-width:60px;min-height:44px}.dama-games-list.is-compact .dama-entry-card{min-height:70px}}
.dama-entry-screen>header:before,.dama-entry-screen>header:after{display:none}.dama-entry-screen>header .dama-header-carving{z-index:-1;opacity:.65;mask-image:linear-gradient(90deg,#000,transparent 34%,transparent 66%,#000);pointer-events:none}.dama-entry-screen>header{isolation:isolate}.dama-entry-screen>header button{position:relative;z-index:1}

.dama-photo-stage .dama-pot-pieces .dama-pot-token{position:absolute;left:0;max-height:20%;margin:0!important}
/* Room for all twelve captured pieces, without overlap. */
.dama-royal-room .dama-photo-stage{grid-template-columns:.18fr minmax(0,1fr) .18fr;width:min(100%,960px,calc((100dvh - 245px)*1.36));gap:8px}.dama-photo-stage .dama-capture-pot{height:94%}.dama-photo-stage .dama-capture-pot .dama-pot-pieces{left:20%;top:15%;width:60%;height:67%;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(6,minmax(0,1fr));align-items:center;justify-items:center;gap:5px;overflow:visible}.dama-photo-stage .dama-pot-pieces .dama-pot-token{position:relative;top:auto!important;left:auto;width:100%;height:auto;max-width:32px;max-height:none;aspect-ratio:1;margin:0!important}.dama-photo-stage .dama-capture-pot:has(.dama-pot-token) .dama-pot-pieces{height:67%}.dama-photo-stage .dama-capture-pot>small.dama-pot-label,.dama-photo-stage .dama-capture-pot:has(.dama-pot-token)>small.dama-pot-label{top:89%;left:50%;transform:translate(-50%,-50%);font-size:11px;max-width:92%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.dama-photo-stage .dama-capture-pot:last-child .dama-pot-label{transform:translate(-50%,-50%)}
@media(max-width:600px){.dama-royal-room .dama-photo-stage{grid-template-columns:.16fr minmax(0,1fr) .16fr;gap:4px;width:100%}.dama-photo-stage .dama-capture-pot .dama-pot-pieces{gap:3px}.dama-photo-stage .dama-capture-pot>small.dama-pot-label{font-size:9px}}

.dama-chat-status:empty{display:none}.dama-chat-status{font:12px system-ui!important;color:#ffe1a2;margin:4px 18px!important}
.dama-photo-stage .dama-capture-pot:first-child .dama-pot-pieces{left:34%;width:54%}.dama-photo-stage .dama-capture-pot:last-child .dama-pot-pieces{left:12%;width:54%}.dama-photo-stage .dama-capture-pot .dama-pot-pieces{gap:4px}.dama-photo-stage .dama-pot-pieces .dama-pot-token{max-width:27px}
/* Konker royal table: presentation only; all actions still use the table API. */
.konker-entry-screen{background:radial-gradient(ellipse at top,#33221a,#131716 65%)}
.konker-lobby-preview{position:relative;height:170px;min-width:180px;display:flex;justify-content:center;align-items:center;isolation:isolate}
.konker-preview-card{position:relative;display:block;width:82px;height:126px;border:2px solid #c6a66b;border-radius:10px;color:#241b18;box-shadow:0 8px 15px #0008;margin-left:-28px;transform:rotate(-14deg)}
.konker-preview-card:nth-child(2){transform:translateY(-10px);z-index:2}.konker-preview-card:nth-child(3){transform:rotate(14deg);z-index:3}.konker-preview-card.red{color:#903d43}
.konker-royal-room{--hand-card:clamp(60px,12vw,100px);box-sizing:border-box;max-width:940px!important;margin:0 auto;padding:12px 16px 24px!important;background:radial-gradient(ellipse at 50% 45%,#312713,#171307 76%);color:#e9d5a2;overflow-x:hidden}
.konker-royal-room>.player-hud{display:none}.konker-royal-room>header{padding:10px 14px;border:1px solid #9c8258;border-radius:15px;background:linear-gradient(110deg,#352117,#120e09);margin:0 0 14px!important}
.konker-royal-room>header h1{font:bold clamp(25px,4vw,38px) Georgia!important;margin:0}.konker-royal-room .dama-toolbar{display:flex;gap:8px;align-items:center}.konker-royal-room .dama-toolbar button{min-width:48px;height:48px;border:3px ridge #b69964;border-radius:8px;background:linear-gradient(#493626,#241a11);box-shadow:0 2px 7px #0008;font:700 21px Georgia;padding:4px 12px}.konker-royal-room .dama-toolbar svg{width:26px;height:26px;fill:#edcf8c;stroke:#edcf8c;stroke-width:1.5}
.konker-royal-room .konker-seats{display:grid;grid-template-columns:repeat(auto-fit,minmax(100px,1fr));gap:10px;margin:0 0 15px}.konker-royal-room .konker-seats>span{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:center;padding:10px 8px;border:2px ridge #a48856;border-radius:9px;background:linear-gradient(#46351d,#2b2115);font:600 clamp(13px,2vw,21px) Georgia;box-shadow:inset 0 0 8px #0007}.konker-royal-room .konker-seats>.active{outline:1px solid #ecd68f;box-shadow:0 0 9px #c4a45155}
.konker-royal-room .konker-public-table{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));grid-auto-rows:minmax(100px,auto);gap:12px 9px;width:100%;max-height:480px;overflow-y:auto;box-sizing:border-box;border:2px solid #af9867;border-radius:13px;padding:28px 10px 12px;margin:10px auto 14px;background:radial-gradient(ellipse,#39301b99,#19180da6);position:relative;box-shadow:inset 0 0 20px #0005}
.konker-royal-room .konker-public-table>h3{position:absolute;top:6px;left:0;right:0;font:600 17px Georgia}.konker-royal-room .konker-public-table>p{position:absolute;top:48%;left:0;right:0;text-align:center;pointer-events:none;color:#a79671}.konker-royal-room .konker-meld{min-width:0;max-width:none;padding:0;border:0;border-radius:0;background:none;display:flex;align-items:center;flex-direction:column;gap:0;overflow:visible}.konker-royal-room .konker-meld>strong{font:500 15px Georgia;border:1px solid #9c8756;border-radius:18px;padding:2px 10px;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.konker-royal-room .konker-meld>small{font:12px Georgia;margin:3px 0 0}.konker-royal-room .konker-table-cards{display:flex;flex-wrap:nowrap;justify-content:center;gap:0;margin:0;max-width:100%;padding-right:6px}.konker-royal-room .konker-table-cards .konker-public-card{width:clamp(31px,5vw,47px);height:clamp(48px,7.7vw,72px);margin-right:-12px;border-radius:7px;box-shadow:1px 2px 3px #0005;background:#f2ebce}.konker-royal-room .konker-table-cards .konker-public-card .card-pips{opacity:.82}.konker-royal-room .konker-meld>button{font-size:11px;min-height:32px;padding:4px 6px;margin:4px 0;max-width:100%}.konker-empty-meld{min-height:100px;border-radius:9px;background:linear-gradient(135deg,#ddc77e04,#00000004);pointer-events:none}
.konker-royal-room .konker-piles{display:grid;grid-template-columns:1fr 1fr;width:min(100%,330px);margin:4px auto 14px;gap:7px 24px;align-items:center}.konker-royal-room .konker-stock-art{width:76px;height:106px;transform:rotate(0);margin:0 0 5px}.konker-royal-room .konker-discard-art{min-height:110px;padding:0;max-width:110px}.konker-royal-room .konker-discard-card{width:74px;height:108px;min-width:74px;border-radius:8px}.konker-royal-room .konker-discard-card:not(:last-child){display:none}.konker-royal-room .konker-discard-card:last-child{margin:0;transform:rotate(0)}.konker-royal-room .konker-piles>button{font:16px Georgia;padding:6px;min-height:40px;border:0;background:transparent;color:#d6bd8a;box-shadow:none}.konker-royal-room .konker-piles>.konker-help{font-size:11px!important;margin:0;line-height:1.35!important}
.konker-royal-room .konker-main-actions{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);max-width:640px;width:100%;margin:10px auto 0;gap:20px}.konker-royal-room .konker-main-actions>button{border:3px ridge #b99b5a;border-radius:40px;background:linear-gradient(#63502b,#31240e);font:600 clamp(14px,2.2vw,22px) Georgia;min-height:50px;padding:8px 12px;color:#ebd49a}.konker-royal-room .konker-main-actions>button.primary{background:linear-gradient(#8c753b,#403112);box-shadow:0 0 13px #d9bd5366}.konker-royal-room .konker-main-actions>button:last-child{background:linear-gradient(#42321c,#281c11)}.konker-royal-room .konker-turn-prompt{text-align:center;font:17px Georgia;margin:12px 0 4px;color:#c8b386}.konker-royal-room .konker-extra-options{order:10;margin:8px 0 0;font:12px system-ui;color:#bca778}.konker-royal-room .konker-extra-options>summary{cursor:pointer;min-height:30px;display:flex;align-items:center;justify-content:center}.konker-royal-room .konker-extra-options .konker-grouping{display:block}.konker-royal-room .konker-extra-options .konker-grouping summary{font:14px system-ui;min-height:36px;padding:6px}.konker-royal-room .konker-drafts{font-size:12px}.konker-royal-room .konker-arrange,.konker-royal-room .konker-floor-action{display:none}
.konker-royal-room .konker-hand{position:relative;display:block;width:100%;box-sizing:border-box;margin:0 auto;padding:18px 0 10px;height:calc(var(--hand-card)*1.55 + 58px);min-height:0;overflow:visible;touch-action:pan-y;isolation:isolate}.konker-royal-room .konker-hand .konker-card{position:absolute;left:calc(var(--slot)*(100% - var(--hand-card)));top:calc(18px + var(--lift));width:var(--hand-card);height:calc(var(--hand-card)*1.55);min-width:0;min-height:0;margin:0;padding:0;border:1px solid #bca97a;border-radius:9px;background:#f4efd5;color:#29271e;box-shadow:1px 3px 5px #0008;transform:rotate(var(--tilt));transform-origin:50% 120%;transition:transform .16s ease,box-shadow .16s ease;user-select:none;touch-action:none;-webkit-touch-callout:none;z-index:1}.konker-royal-room .konker-hand .konker-card.red{color:#98434c}.konker-royal-room .konker-hand .konker-card.selected{transform:translateY(-17px) rotate(var(--tilt));outline:2px solid #f4d77f;box-shadow:0 0 12px #e6cb6877;z-index:3}.konker-royal-room .konker-hand .konker-card.card-held{outline:3px solid #e8cc77;z-index:20}.konker-royal-room .konker-hand .konker-card.card-dragging{z-index:30;transition:none;box-shadow:0 12px 24px #000b;opacity:.97}.konker-royal-room .konker-hand .card-corner{font-size:clamp(12px,2.1vw,18px)}.konker-royal-room .konker-hand .card-pips{font-size:clamp(11px,1.7vw,16px)}.konker-royal-room .konker-hand .court-symbol{font:600 clamp(27px,4.5vw,46px) Georgia}.konker-royal-room .konker-hand .court-suit{font-size:22px}
.konker-royal-room .dama-modal-backdrop{z-index:100}.konker-royal-room .dama-result{max-width:540px}.konker-royal-room .dama-chat-bubble>small{font:600 11px system-ui;color:#d8ba7c}.konker-royal-room .dama-chat-bubble p{margin:3px 0}.konker-royal-room .dama-rule-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.konker-royal-room .dama-rules-modal>header h2{font-size:26px}
@media(max-width:600px){.konker-royal-room{padding:8px 8px 18px!important}.konker-royal-room>header{padding:7px 9px}.konker-royal-room .dama-toolbar{gap:5px}.konker-royal-room .dama-toolbar button{min-width:38px;height:40px;padding:4px 8px;font-size:16px}.konker-royal-room .dama-toolbar svg{width:22px;height:22px}.konker-royal-room .konker-seats{grid-template-columns:repeat(auto-fit,minmax(65px,1fr));gap:5px;margin-bottom:8px}.konker-royal-room .konker-seats>span{font-size:12px;padding:8px 3px}.konker-royal-room .konker-public-table{grid-template-columns:repeat(3,minmax(0,1fr));grid-auto-rows:minmax(82px,auto);max-height:365px;padding:27px 6px 8px;gap:7px 3px}.konker-royal-room .konker-meld>strong{font-size:12px;padding:2px 7px}.konker-empty-meld{min-height:82px}.konker-royal-room .konker-piles{width:240px;gap:4px 20px}.konker-royal-room .konker-stock-art{width:57px;height:82px;font-size:28px}.konker-royal-room .konker-discard-art{min-height:88px}.konker-royal-room .konker-discard-card{width:57px;min-width:57px;height:84px}.konker-royal-room .konker-piles>button{font-size:13px;min-height:35px}.konker-royal-room .konker-main-actions{gap:12px}.konker-royal-room .konker-main-actions>button{min-height:45px}.konker-royal-room .konker-turn-prompt{font-size:13px;margin-top:10px}.konker-royal-room .dama-rule-grid{gap:8px}.konker-royal-room .dama-rule-grid article{padding:12px}.konker-royal-room .dama-rule-grid h3{font-size:17px}.konker-royal-room .dama-rule-grid p{font-size:13px;line-height:1.45}}
@media(prefers-reduced-motion:reduce){.konker-royal-room .konker-hand .konker-card{transition:none}}

.konker-royal-room .konker-hand .konker-card{left:calc(24px + var(--slot)*(100% - var(--hand-card) - 48px))}
.konker-royal-room .konker-extra-options{margin-top:0}
@media(max-width:600px){.konker-royal-room .konker-public-table{max-height:250px;grid-auto-rows:minmax(82px,auto)}.konker-royal-room .konker-piles>.konker-help{display:none}.konker-royal-room .konker-piles{margin-bottom:8px}.konker-royal-room .konker-turn-prompt{font-size:12px}.konker-royal-room .konker-hand{height:calc(var(--hand-card)*1.55 + 55px)}}
@media(min-width:601px) and (max-height:800px){.konker-royal-room{--hand-card:80px}.konker-royal-room .konker-public-table{max-height:240px;grid-auto-rows:minmax(84px,auto)}.konker-royal-room .konker-empty-meld{min-height:84px}.konker-royal-room .konker-piles>.konker-help{display:none}}

/* Tap the piles themselves; the labels remain accessible alternative controls. */
.konker-royal-room .konker-piles>button.konker-stock-art{width:76px;height:106px;min-height:0;padding:0;border:4px double #e7bf78;border-radius:7px;background:repeating-conic-gradient(#986731 0 25%,#68451f 0 50%) 0/12px 12px;box-shadow:-3px 3px #e7d1a5,-6px 6px #7e603d,-9px 9px #e7d1a5,0 12px 18px #0008;color:#f7d391;font:36px Georgia;display:grid;place-items:center}
.konker-royal-room .konker-piles .is-drawable{outline:2px solid #eacf7a;outline-offset:3px;filter:drop-shadow(0 0 6px #dabd5a66);cursor:pointer}.konker-royal-room .konker-piles>button.konker-stock-art:disabled{opacity:.55;cursor:default}.konker-royal-room .konker-hand .konker-card.just-drawn{animation:konker-draw-to-hand .45s cubic-bezier(.2,.7,.2,1);outline:2px solid #f3d779;z-index:25}
@keyframes konker-draw-to-hand{from{transform:translate(var(--draw-dx,0),var(--draw-dy,-150px)) rotate(0deg) scale(.65);opacity:.5}to{transform:translate(0,0) rotate(var(--tilt));opacity:1}}
@media(max-width:600px){.konker-royal-room .konker-piles>button.konker-stock-art{width:57px;height:82px;font-size:28px}}
@media(prefers-reduced-motion:reduce){.konker-royal-room .konker-hand .konker-card.just-drawn{animation:none}}

/* Floor grows around real melds instead of reserving empty slots. */
.konker-royal-room .konker-public-table{grid-template-columns:repeat(var(--meld-columns,1),minmax(0,1fr));grid-auto-rows:max-content;min-height:0;align-content:start;overflow:auto}
.konker-royal-room .konker-public-table>p{grid-column:1/-1;text-align:center;margin:8px;color:#c8b386}
.konker-royal-room .konker-meld.is-long{grid-column:1/-1}
.konker-royal-room .konker-table-cards{width:100%;box-sizing:border-box;padding:0 4px;display:grid;grid-template-columns:repeat(var(--meld-card-count,3),minmax(0,1fr));justify-content:center;max-width:calc(var(--meld-card-count,3)*47px)}
.konker-royal-room .konker-table-cards .konker-public-card{width:100%;min-width:0;margin:0;max-width:47px;height:auto;aspect-ratio:47/72}
@media(max-width:600px){.konker-royal-room .konker-public-table{grid-template-columns:repeat(min(var(--meld-columns,1),3),minmax(0,1fr));grid-auto-rows:max-content}.konker-royal-room .konker-table-cards{max-width:calc(var(--meld-card-count,3)*38px)}}
.konker-royal-room .konker-public-table>h3{width:auto;box-sizing:border-box}.konker-royal-room .konker-public-table>p{position:static;width:auto;box-sizing:border-box;pointer-events:auto}

/* Center a larger Dama board between horizontal captured-piece trays. */
.dama-royal-room .dama-photo-stage{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:52px auto 52px;gap:8px;width:min(100%,calc(100dvh - 285px),780px);margin:12px auto;align-items:center;justify-items:center}.dama-royal-room .dama-capture-pot{position:relative;width:86%;height:52px;min-height:0;overflow:hidden;margin:0}.dama-capture-pot .dama-horizontal-pot-art{position:absolute;width:52px;height:100%;left:50%;top:50%;transform:translate(-50%,-50%) rotate(90deg) scaleY(6);transform-origin:center}.dama-royal-room .dama-pot-pieces,.dama-royal-room .dama-capture-pot:first-child .dama-pot-pieces,.dama-royal-room .dama-capture-pot:last-child .dama-pot-pieces{position:absolute;left:9%;top:22%;width:82%;height:60%;display:grid;grid-template-columns:repeat(12,minmax(0,1fr));grid-template-rows:1fr;gap:2px;align-items:center}.dama-royal-room .dama-pot-token{position:static;width:100%;max-width:28px;height:auto;aspect-ratio:1}.dama-royal-room .dama-pot-label{position:absolute;top:0;bottom:auto;left:50%;transform:translateX(-50%);font-size:10px;line-height:14px;white-space:nowrap;z-index:2}.dama-royal-room .dama-photo-frame{width:100%;margin:0}@media(max-width:600px){.dama-royal-room .dama-photo-stage{width:100%;grid-template-rows:44px auto 44px;gap:5px;margin:8px auto}.dama-royal-room .dama-capture-pot{height:44px}.dama-capture-pot .dama-horizontal-pot-art{width:44px;transform:translate(-50%,-50%) rotate(90deg) scaleY(6)}}

.dama-capture-pot .dama-horizontal-pot-art{inset:0;width:100%;height:100%;transform:none}.dama-royal-room .dama-capture-pot{overflow:visible}.dama-royal-room .dama-pot-pieces{z-index:1}
