/* Shared royal board presentation. Gameplay geometry and network actions stay in their existing owners. */
.gebeta-board-art{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}.gebeta-lobby-preview{position:relative;aspect-ratio:2.4;filter:drop-shadow(0 5px 7px #0008)}.gebeta-lobby .dama-entry-intro{grid-template-columns:1.1fr 1fr}.gebeta-lobby .dama-entry-intro select{margin-top:12px;width:100%;max-width:220px}.gebeta-lobby>header{background:linear-gradient(110deg,#603c23,#24150f);border:2px double #bd995e}.gebeta-lobby .dama-entry-intro h2{font-size:30px!important}
body.gebeta-playing #game-shell{height:auto;min-height:100dvh;padding:8px max(10px,calc((100vw - 980px)/2)) 24px;background:radial-gradient(ellipse at center,#55321c,#201209 75%);gap:0}body.gebeta-playing #game-shell .gebeta-main-header{padding:0;width:100%;flex:none}body.gebeta-playing #game-shell>.royal-gebeta-toolbar{position:relative;inset:auto;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 14px;margin:12px 0;border:1px solid #ae8d5a;border-radius:12px;background:linear-gradient(110deg,#40271a,#25160e);width:100%;z-index:2}body.gebeta-playing .royal-gebeta-toolbar h1{font:700 28px Georgia;margin:0;color:#f5d99d}.royal-gebeta-toolbar button{border:2px double #b59661;border-radius:8px;background:linear-gradient(#65472c,#322116);color:#f0d49c;min-width:44px;min-height:44px;font:700 23px Georgia;cursor:pointer}.royal-gebeta-toolbar .dama-rules-button{font-size:16px;padding:8px 13px}.royal-gebeta-toolbar [hidden]{display:none!important}
body.gebeta-playing #game-shell>.players{position:relative;display:flex;width:100%;max-width:none;margin:0;padding:0;gap:10px;align-items:stretch;flex:none}body.gebeta-playing .players .player{position:relative;max-width:none;min-width:0;width:50%;flex:1;padding:12px;border:2px double #b59460;border-radius:10px;background:linear-gradient(100deg,#50311d,#2b190e);min-height:72px;box-shadow:inset 0 0 0 3px #b58c3822;display:flex;align-items:center;text-align:left}.gebeta-playing .players .player input{font:700 18px Georgia;text-align:left}.gebeta-playing .players .player .crest{font-size:27px}.gebeta-playing .players .score{flex-direction:row;text-align:left}.gebeta-playing .players .score strong{font:700 17px Georgia}.gebeta-playing .players .score span{font:10px system-ui;letter-spacing:0}.royal-turn-pill{font:12px system-ui;white-space:nowrap;padding:6px 9px;border:1px solid #edce86;border-radius:22px;background:#76532a;color:#fff1c8;box-shadow:0 0 10px #d9ad5680;margin-left:auto}.royal-turn-pill[hidden]{display:none}
body.gebeta-playing #game-shell>main{min-height:0;display:grid;place-items:center;width:100%;height:auto;flex:none;margin:20px 0 0;padding:0}body.gebeta-playing #game-shell .scene{position:relative;inset:auto;transform:none;width:100%;height:auto;max-width:none;aspect-ratio:2.7;background:none!important;isolation:isolate;filter:drop-shadow(0 12px 12px #0008)}body.gebeta-playing #game-shell .pit{left:calc(var(--x)*128.615% - 14.231%);top:calc(var(--y)*232.346% - 122.222%);width:11.7%;height:30.2%;pointer-events:auto}body.gebeta-playing .pit .count{font:700 13px system-ui;bottom:-8%;border-color:#d5b06f;color:#f9df9e;background:#2e1b0ded}body.gebeta-playing #game-shell>.turn-panel{position:static!important;inset:auto!important;width:100%!important;height:auto!important;clip-path:none!important;white-space:normal!important;overflow:visible!important;min-height:20px!important;padding:8px!important;margin:14px 0 0!important;border:0!important;text-align:center;background:none;flex:none;pointer-events:none}body.gebeta-playing #game-shell>.turn-panel p{font:13px/1.5 system-ui;color:#e8d3b0}.gebeta-playing #game-shell>footer{display:none!important}body.gebeta-playing [data-royal-footer]{display:none!important}
.royal-board-popup,#help.royal-board-rules,#result.royal-board-result{padding:26px;border:3px double #ba985e;border-radius:15px;background:radial-gradient(ellipse at top,#593923,#29180f);color:#f3dfb6;box-shadow:inset 0 0 0 5px #321c12,0 15px 50px #000a;width:min(570px,calc(100vw - 30px));max-height:88dvh;overflow:auto;margin:auto}.royal-board-popup::backdrop,#help.royal-board-rules::backdrop,#result.royal-board-result::backdrop{background:#080502b3;backdrop-filter:blur(3px)}.royal-board-popup h2,.royal-board-result h2{font:700 28px Georgia;margin:0 0 18px}.royal-board-popup p{font:15px/1.6 system-ui}.royal-board-actions{display:flex;gap:10px;flex-wrap:wrap;justify-content:center}.royal-board-popup button,.royal-board-rules button,.royal-board-result button{min-height:44px;border:1px solid #b79760;border-radius:10px;padding:10px 16px;background:linear-gradient(#62432a,#362116);color:#efd9ac;font:600 14px system-ui;cursor:pointer}.royal-board-popup .primary,.royal-board-rules .primary,.royal-board-result .primary{background:linear-gradient(#ffe1a0,#bd893a);color:#2a190d}.royal-board-popup .dama-danger{background:#692f22;border-color:#c1845e}.royal-board-rules .dialog-head{display:flex;align-items:center;justify-content:space-between;gap:14px}.royal-board-rules h1{font:700 29px Georgia;margin:0 0 20px}.royal-board-rules ol{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:0;list-style:none;margin:0}.royal-board-rules li{padding:17px;border:1px solid #b09362;border-radius:14px;background:#2a1a10}.royal-board-rules li svg{display:none}.royal-board-rules li h2{font:700 19px Georgia;margin:0 0 12px}.royal-board-rules li p{font:14px/1.5 system-ui;margin:0}.royal-board-rules .draw,.royal-board-rules .note{font:12px/1.5 system-ui;color:#ddc9a5}.royal-got-it{display:block;margin:18px auto 0;min-width:145px;border-radius:24px!important;font:700 21px Georgia!important}.royal-board-result{text-align:center}.royal-board-result #result-title{font:700 23px Georgia}.royal-board-result #final-scores{padding:16px 0;border-block:1px solid #ad874a77}.royal-board-result .dialog-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:10px}.royal-board-result [data-hub=rewards],.royal-board-result #view-board{display:none!important}
#chat-panel.chat-panel{width:min(560px,calc(100vw - 28px));height:min(650px,82dvh);max-height:82dvh;padding:0;border:1px solid #e6d5aa88;border-radius:24px;background:linear-gradient(135deg,#8b795b88,#292116a8);backdrop-filter:blur(16px);color:#f4dfb2;box-shadow:0 16px 55px #000a}#chat-panel::backdrop{background:#080502aa}#chat-panel>.dialog-head{padding:18px 20px;margin:0;background:#fff1;border-bottom:1px solid #d1bb8c44}#chat-panel h1{font:700 23px Georgia;margin:0}#chat-panel #chat-close{min-width:44px;min-height:44px;border:0;background:none;color:#f0ce83;font-size:24px}#chat-conversation:not([hidden]){display:flex;flex-direction:column;height:calc(100% - 80px);min-height:0}#chat-conversation #chat-back{display:none}#chat-log{flex:1;overflow:auto;padding:16px 20px;min-height:80px}.chat-panel .chat-bubble{border:1px solid #dfd2b344;border-radius:23px 23px 23px 6px;background:#fff2;color:#fff0d5;width:fit-content;max-width:85%;padding:12px 16px;margin:6px auto 14px 0;font:15px/1.5 system-ui}.chat-panel .chat-bubble.mine{margin-left:auto;margin-right:0;border-radius:23px 23px 6px 23px;background:linear-gradient(130deg,#b18139e6,#82531de6);border-color:#e8c37799}.chat-panel .chat-bubble small{font-size:10px;opacity:.65}#chat-panel #message-form{display:flex;align-items:center;gap:6px;border:1px solid #d9c18c;border-radius:40px;margin:12px 16px 16px;padding:6px;background:#fff1}#chat-panel #message-text{width:0;flex:1;min-height:44px;font:15px system-ui;color:#fff1d8;border:0;background:none;min-width:0}#chat-panel #send-message{width:42px;height:42px;min-width:42px;padding:0;border-radius:50%;border:1px solid #f8d991;background:linear-gradient(#ffe4a5,#bd8d3b);color:#38250e;font:700 25px system-ui}.board-chat-emoji{background:none;border:0;color:#edcf92;font-size:23px;width:34px;height:44px;cursor:pointer}.board-emoji-options{display:flex;gap:6px;margin:0 18px}.board-emoji-options button{font-size:21px;min-width:40px;min-height:40px;background:#3e2b1b;border:1px solid #a98a56;border-radius:9px}
@media(max-width:600px){body.gebeta-playing #game-shell{padding:8px 8px 24px}.gebeta-lobby .dama-entry-intro{grid-template-columns:1fr}.gebeta-lobby-preview{max-width:340px;width:100%;margin:auto}.gebeta-lobby .dama-entry-intro h2{font-size:25px!important}body.gebeta-playing #game-shell .scene{aspect-ratio:1.9}body.gebeta-playing .players .player{padding:8px;min-height:70px;flex-wrap:wrap;gap:5px}.gebeta-playing .players .player input{font-size:14px}.gebeta-playing .players .player .crest{font-size:20px}.royal-turn-pill{font-size:10px;padding:4px 6px}.royal-gebeta-toolbar .dama-toolbar{gap:5px}.royal-gebeta-toolbar h1{font-size:24px!important}.royal-board-rules ol{gap:8px}.royal-board-rules li{padding:12px}.royal-board-rules li h2{font-size:17px}.royal-board-rules li p{font-size:13px}.royal-board-rules h1{font-size:25px}#chat-panel h1{font-size:20px}#chat-panel #message-form{margin:8px 12px 12px}.royal-board-popup,#help.royal-board-rules,#result.royal-board-result{padding:20px 16px}}
.royal-friend-choices{display:flex;flex-direction:column;gap:8px;max-height:300px;overflow:auto;margin:12px 0}.royal-friend-choices button{width:100%;text-align:left}.gebeta-lobby input[type=search]{font:15px system-ui;width:100%;max-width:none;padding:10px;border:1px solid #a98a53;border-radius:8px;color:#ffedc8;background:#160e08}.royal-gebeta-toolbar .dama-toolbar{flex:none}
#chat-panel.chat-panel{overflow:hidden}#chat-panel.chat-panel[open]{display:flex;flex-direction:column}#chat-panel>.dialog-head{flex:none}#chat-panel #chat-conversation:not([hidden]){height:auto;flex:1;min-height:0}#chat-panel #message-form{flex:none}#chat-panel #message-text:focus{outline:none;box-shadow:none}#chat-panel #message-form:focus-within{border-color:#ffdf9d;box-shadow:0 0 0 1px #f9dc8544}

/* Captured seeds remain attached to the upper and lower board edges. */
body.gebeta-playing .gebeta-capture-tray{box-sizing:border-box;position:relative;width:72%;min-height:70px;padding:7px 25px 9px;margin:0 auto;border:4px ridge #b58b4c;border-radius:48% / 34px;background:radial-gradient(ellipse at center,#32190a 40%,#160c06 75%,#794626);box-shadow:inset 0 0 0 3px #683d20,inset 0 5px 10px #000b,0 5px 8px #0007;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;z-index:1}
body.gebeta-playing .gebeta-capture-label{font:700 clamp(12px,2vw,19px) Georgia;color:#f1d6a0;white-space:nowrap;max-width:100%;overflow:hidden;text-overflow:ellipsis}
body.gebeta-playing .gebeta-capture-seeds{display:grid;grid-template-columns:repeat(12,1fr);gap:3px;width:100%;max-width:300px;min-height:9px;justify-items:center}
body.gebeta-playing .gebeta-captured-seed{display:block;width:clamp(6px,1.2vw,11px);aspect-ratio:1;border-radius:50%;background:radial-gradient(circle at 32% 25%,#fff1b8,#ddac3b 38%,#94631c 70%,#3e250a);box-shadow:0 2px 2px #000b}
body.gebeta-playing .gebeta-capture-tray.is-capturing{animation:tray-capture .6s ease-out}
@keyframes tray-capture{50%{filter:drop-shadow(0 0 7px #e8c374)}}
@media(max-width:600px){body.gebeta-playing .gebeta-capture-tray{width:78%;min-height:57px;padding:6px 17px;border-width:3px}body.gebeta-playing .gebeta-capture-seeds{gap:2px;max-width:220px}}
@media(prefers-reduced-motion:reduce){body.gebeta-playing .gebeta-capture-tray.is-capturing{animation:none}}
/* Royal Gebeta: carved timber, two independently equipped halves. */
body.gebeta-playing #game-shell{background:radial-gradient(ellipse at 50% 35%,#382410,#160f06 75%);max-width:none}
body.gebeta-playing #game-shell .gebeta-main-header{display:none}
body.gebeta-playing #game-shell>main{container-type:inline-size;--royal-seed-size:2.65cqw;gap:0;margin-top:16px}
body.gebeta-playing #game-shell .scene{aspect-ratio:1200/520;filter:drop-shadow(0 7px 8px #0009)}
body.gebeta-playing #game-shell .scene::before,body.gebeta-playing #game-shell .scene::after{display:none!important}
body.gebeta-playing #game-shell .pit{left:calc(11.6667% + var(--column)*15.3333%);top:34.6154%;width:12%;height:27.6923%;border-radius:50%;background:transparent}
body.gebeta-playing #game-shell .pit[data-row=bottom]{top:67.3077%}
body.gebeta-playing #game-shell .pit .seeds{inset:13%;}
body.gebeta-playing #game-shell .pit .seed{width:var(--royal-seed-size)!important;height:var(--royal-seed-size)!important;border-radius:50%}
body.gebeta-playing #game-shell .pit .count{font:700 clamp(11px,1.6vw,17px) Georgia;min-width:clamp(22px,3.8vw,35px);height:clamp(22px,3.8vw,35px);border:3px double #c9a66a;border-radius:50%;background:radial-gradient(#4f301a,#211309);color:#f7e2ad}
body.gebeta-playing #game-shell .pit[data-row=top] .count{top:-48%;bottom:auto}
body.gebeta-playing #game-shell .pit[data-row=bottom] .count{top:auto;bottom:-48%}
body.gebeta-playing .players .player{background:linear-gradient(100deg,#51321c,#291a0d);box-shadow:inset 0 0 0 3px #bf94522b,0 3px 7px #0007;padding:12px 15px;border:3px double #b79860;min-height:90px;gap:12px}
body.gebeta-playing .players .player .crest{flex:none;display:block;width:clamp(35px,6.3vw,67px);aspect-ratio:1;border-radius:50%;font-size:0;border:5px double #e7cf8d;background:radial-gradient(circle at 35% 28%,#fff0b6,#cfad60 58%,#7b5b27 90%);box-shadow:inset 0 0 0 3px #b39656,0 2px 5px #000a}
body.gebeta-playing .players .player[style*="order: 1"] .crest{border-color:#c9b784;background:radial-gradient(circle at 35% 25%,#5277aa,#25466f 62%,#142437);box-shadow:inset 0 0 0 3px #49678d,0 2px 5px #000a}
body.gebeta-playing .players .score{display:flex;gap:4px;align-items:baseline}
body.gebeta-playing .players .score strong,body.gebeta-playing .players .score span{font:clamp(10px,1.7vw,16px)/1.3 Georgia;white-space:nowrap;max-width:none;text-transform:none;letter-spacing:0;color:#decba6}
body.gebeta-playing .players .player input{max-width:100%;font-size:clamp(13px,2.5vw,25px);padding:0}
body.gebeta-playing .gebeta-capture-tray{width:65%;height:15cqw;max-height:116px;min-height:0;padding:0;margin:0 auto;border:0;border-radius:0;background:none;box-shadow:none;overflow:visible}
body.gebeta-playing .gebeta-capture-label{display:none}
body.gebeta-playing .gebeta-tray-wood{position:absolute;inset:0;width:100%;height:100%;filter:drop-shadow(0 4px 4px #0008)}
body.gebeta-playing .gebeta-capture-seeds{position:relative;z-index:1;display:grid;grid-template-columns:repeat(16,var(--royal-seed-size));justify-content:center;align-content:center;gap:.55cqw;width:80%;height:70%;max-width:none;min-height:0}
body.gebeta-playing .gebeta-captured-seed{width:var(--royal-seed-size);height:var(--royal-seed-size);background:radial-gradient(ellipse at 34% 27%,#fff5b5 0%,#ffdc61 15%,#e6a01c 37%,#bc6503 61%,#623000 83%,#2b1000 100%);box-shadow:inset -1px -2px 2px #3e1600b3,inset 1px 1px 1px #ffe8a68c,1px 2px 2px #1b050ade;border-radius:50%}
.board-half[data-board=cedar],.gebeta-capture-tray[data-board=cedar] .gebeta-tray-wood{filter:sepia(.35) saturate(.7) brightness(1.2)}
.board-half[data-board=emerald],.gebeta-capture-tray[data-board=emerald] .gebeta-tray-wood{filter:sepia(.65) hue-rotate(72deg) saturate(.8) brightness(.84)}
.board-half[data-board=midnight],.gebeta-capture-tray[data-board=midnight] .gebeta-tray-wood{filter:sepia(.7) hue-rotate(170deg) saturate(.55) brightness(.65)}
body.gebeta-playing [data-seeds=gold] .seed,body.gebeta-playing [data-seeds=gold] .gebeta-captured-seed{background:radial-gradient(ellipse at 34% 27%,#fff5b5,#ffdc61 15%,#e6a01c 37%,#bc6503 61%,#623000 83%,#2b1000)}
body.gebeta-playing [data-seeds=ivory] .seed,body.gebeta-playing [data-seeds=ivory] .gebeta-captured-seed{background:radial-gradient(circle at 35% 25%,#fffdf2,#ece0b6 35%,#a89468 70%,#53432b)}
body.gebeta-playing [data-seeds=jade] .seed,body.gebeta-playing [data-seeds=jade] .gebeta-captured-seed{background:radial-gradient(circle at 35% 25%,#c7ffd8,#49bd80 35%,#116b4e 70%,#062f26)}
body.gebeta-playing [data-seeds=ruby] .seed,body.gebeta-playing [data-seeds=ruby] .gebeta-captured-seed{background:radial-gradient(circle at 35% 25%,#ffe0ce,#ea7460 35%,#9d2428 70%,#400b18)}
body.gebeta-playing #game-shell>footer{display:flex!important;position:static;justify-content:center;background:none;padding:16px 0 0}
body.gebeta-playing #game-shell>footer>*{display:none}body.gebeta-playing #game-shell>footer .game-actions{display:contents}body.gebeta-playing #game-shell>footer .game-actions>*{display:none}body.gebeta-playing #game-shell>footer #skip:not([hidden]){display:block;min-width:230px;border:4px ridge #a67c40;border-radius:40px;background:linear-gradient(#663f23,#2c1c0e);color:#f2dba6;font:700 19px Georgia}
@media(max-width:600px){body.gebeta-playing #game-shell>.players{gap:7px}body.gebeta-playing .players .player{padding:8px 7px;gap:7px;min-height:74px}body.gebeta-playing .royal-turn-pill{font-size:9px;padding:5px;margin-left:0}body.gebeta-playing .players .player .crest{border-width:3px}body.gebeta-playing .gebeta-capture-tray{width:70%;height:17cqw}body.gebeta-playing .players .score{gap:3px}}
body.gebeta-playing .gebeta-tray-wood{clip-path:ellipse(49% 48% at 50% 50%)}
body.gebeta-playing #game-shell .gebeta-board-art{clip-path:inset(1px 6px round 8px)}
body.gebeta-playing .players .player>div{min-width:0;flex:1}
body.gebeta-playing .players .player.right{text-align:left;flex-direction:row}
body.gebeta-playing .players .player.right input{text-align:left}
body.gebeta-playing .royal-gebeta-toolbar .dama-toolbar{display:flex;flex:none;gap:9px}
@media(max-width:600px){body.gebeta-playing #game-shell>.royal-gebeta-toolbar{gap:6px;padding:8px 10px}body.gebeta-playing .royal-gebeta-toolbar h1{font-size:25px}body.gebeta-playing .royal-gebeta-toolbar .dama-toolbar{gap:5px}body.gebeta-playing .royal-gebeta-toolbar button{min-width:34px;min-height:38px;padding:5px;font-size:20px}body.gebeta-playing .royal-gebeta-toolbar .dama-rules-button{font-size:13px;padding:5px 7px}body.gebeta-playing .players .player{padding-bottom:27px}body.gebeta-playing .royal-turn-pill{position:absolute;bottom:5px;right:8px;padding:3px 7px}body.gebeta-playing .players .score{font-size:10px}}
body.gebeta-playing #game-shell .pit .seed{transform:translate(-50%,-50%)}
body.gebeta-playing .gebeta-capture-tray{max-height:160px}.gebeta-lobby-preview{aspect-ratio:1200/520}
.style-preview.board-preview{position:relative;display:block;aspect-ratio:1200/520;height:auto!important;min-height:110px;border:0;padding:0;background:none;box-shadow:none;filter:none!important}

/* Inset both capture wells into the same timber frame as the playing surface. */
body.gebeta-playing #game-shell>main{row-gap:0}body.gebeta-playing .gebeta-capture-tray.opponent-tray{margin-bottom:-4cqw;z-index:2}body.gebeta-playing .gebeta-capture-tray.own-tray{margin-top:-4cqw;z-index:2}body.gebeta-playing .gebeta-tray-wood{filter:drop-shadow(0 2px 2px #0007)}
