/* Global Tavla: raster brushed-metal surfaces, independently drawn gilded inlay. */
:root{--gold-metal:url('assets/global-gold.webp');--panel-metal:url('assets/global-panel.webp');--frame-art:url('assets/global-frame.webp');--crest-art:url('assets/global-crest.webp')}
.lobby-sidebar button,.top-actions button,.controls button,.rank-dialog button,.onlinepanel button,#globalDialog button,.global-launch,.global-language{border:1px solid #b88a47;border-radius:11px;background:linear-gradient(180deg,#ffffff12,transparent 38%,#0006),var(--panel-metal) center/cover;color:#f5ddb1;box-shadow:inset 0 1px 0 #e8c17d55,inset 0 -2px 0 #0009,0 3px 7px #0008;text-shadow:0 2px 3px #000;min-height:38px}
.lobby-sidebar button:hover,.top-actions button:hover,.controls button:hover,.rank-dialog button:hover,.onlinepanel button:hover,#globalDialog button:hover{border-color:#ffe4a1;box-shadow:inset 0 1px 1px #ffdb9b66,0 0 13px #e8ad4d44}
.modecard button,.primary,.rank-dialog button.primary,#globalDialog .primary{background:linear-gradient(180deg,#1c0e0440,#0004),var(--gold-metal) center/100% 100%;color:#fff0ba;border:1px solid #d5a154;text-shadow:0 2px 3px #000,0 0 3px #000;box-shadow:0 3px 9px #000b,inset 0 0 0 1px #fff3}
.panel,.rank-dialog,#modal,#globalDialog{background:linear-gradient(145deg,#0a111be8,#1d100ced),var(--panel-metal) center/cover;border:1px solid #9e773e;box-shadow:inset 0 0 0 1px #f2ce7d20,0 10px 30px #0008}
.rank-top,.global-header{position:relative;border-bottom:1px solid #a97f3f;padding-bottom:12px}.rank-top:after,.global-header:after{content:'';position:absolute;bottom:-3px;left:calc(50% - 4px);width:8px;height:8px;background:#e7bd6d;transform:rotate(45deg)}
.lobby-profile{background:linear-gradient(120deg,#101a23ea,#0a0e14f2),var(--panel-metal);box-shadow:0 4px 18px #0009,inset 0 0 0 2px #b98b402c}.lobby-profile img{outline:2px solid #ae7c38;outline-offset:3px}.lobby-brand{display:flex;align-items:center;gap:10px;flex-wrap:wrap;justify-content:center}.lobby-brand:before{content:'';width:43px;height:43px;background:var(--crest-art) center/contain no-repeat}.lobby-brand small{flex-basis:100%;margin-top:-8px}
.modecard{box-shadow:inset 0 0 24px color-mix(in srgb,var(--accent) 13%,transparent),0 4px 20px #000b,0 0 7px color-mix(in srgb,var(--accent) 40%,transparent);position:relative}.modecard:before{content:'';position:absolute;inset:0;pointer-events:none;border-radius:inherit;background:linear-gradient(130deg,#ffffff12,transparent 30%,transparent 80%,#ffffff08)}.modecard button{position:relative}.lobby-footer{background:var(--panel-metal) center/cover;box-shadow:inset 0 0 0 1px #d9ad6544,0 5px 16px #0009}.lobby-footer>div+div{border-left:1px solid #a67b3a66}
.global-tools{display:flex;flex-wrap:wrap;gap:6px;justify-content:center;align-items:center}.global-language{padding:7px 10px;max-width:100%}.global-launch{padding:8px 14px}.global-seo{margin:24px auto;max-width:1100px;padding:24px;color:#ebdcc1;border-radius:16px;line-height:1.65}.global-seo a,.global-links a{color:#f4cb80}.global-links{display:flex;flex-wrap:wrap;gap:10px 16px}.global-seo h1,.global-seo h2{font-family:Georgia,serif;color:#f0cd8a}.global-seo h1{font-size:clamp(25px,4vw,38px)}
#globalDialog{width:min(780px,94vw);color:#f7e9ce;border-radius:18px;max-height:92dvh;padding:20px}#globalDialog::backdrop{background:#000b;backdrop-filter:blur(3px)}.global-header{display:flex;align-items:center;gap:10px}.global-header img{width:56px}.global-header h2{flex:1;color:#f4d18b;font:700 clamp(22px,4vw,32px) Georgia,serif;margin:0}.global-puzzle-board{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));grid-template-rows:repeat(2,110px);border:9px solid #8c5731;border-image:linear-gradient(130deg,#321809,#e0b36a,#3f2310) 1;background:url('assets/wood.webp') center/cover;gap:2px;padding:3px;box-shadow:0 10px 20px #0009}.global-point{position:relative;display:flex;flex-direction:column;align-items:center;gap:0;isolation:isolate;overflow:hidden;font-size:11px;color:#fff;text-shadow:0 1px 3px #000}.global-point:before{content:'';position:absolute;inset:0;background:linear-gradient(145deg,#edbd7c,#8c562b);clip-path:polygon(0 0,100% 0,50% 95%);z-index:-1}.global-point:nth-child(even):before{background:linear-gradient(145deg,#43291e,#18131a)}.global-point:nth-child(n+13){flex-direction:column-reverse}.global-point:nth-child(n+13):before{transform:rotate(180deg)}.global-chip{border-radius:50%;width:min(90%,32px);aspect-ratio:1;background:radial-gradient(circle at 32% 22%,#fff7d9,#e7be7c 45%,#795124);box-shadow:0 2px 3px #0009,inset 0 0 0 2px #fff5;color:#26160b;display:grid;place-items:center;font-weight:bold;text-shadow:none}.global-chip.dark{background:radial-gradient(circle at 30% 20%,#b2865e,#482820 45%,#170e0a);color:#f4dcb3}.global-options{display:flex;flex-wrap:wrap;gap:8px;margin:16px 0}.global-options button{flex:1 1 100px;padding:10px}.global-result{font-weight:700;color:#f1cf85;min-height:1.5em}.global-card-preview{max-width:100%;border:1px solid #a97f3f;border-radius:14px;display:block;margin:12px auto;width:min(100%,440px)}.global-toolbar{display:flex;gap:8px;flex-wrap:wrap;margin:10px 0}.global-toolbar button{padding:9px 16px}.global-seo[hidden]{display:none!important}
@media(max-width:650px){.global-puzzle-board{grid-template-rows:repeat(2,83px);border-width:5px}.global-seo{margin:14px 8px;padding:16px}.global-header img{width:42px}.global-tools{gap:4px}.lobby-footer>div+div{border-left:0}.lobby-brand:before{width:28px;height:28px}}
@media(prefers-reduced-motion:no-preference){.global-launch:hover,.modecard button:hover{filter:brightness(1.15);transition:filter .18s}.global-result{animation:globalGlow .4s ease-out}@keyframes globalGlow{from{opacity:.45;transform:translateY(4px)}to{opacity:1;transform:none}}}
.global-subtitle{font:700 clamp(15px,2.6vw,35px) Georgia,serif;letter-spacing:1px;color:#efc171;text-shadow:0 2px 4px #000;margin:-8px 0 0}.global-tools{position:relative;z-index:2}.lobby-head{gap:6px}.global-seo nav{margin:10px 0}.global-seo nav a{padding:6px;border:1px solid #95734055;border-radius:7px}.global-launch:disabled{opacity:.5}.global-puzzle-board .global-point span:first-child{margin:3px 0}.lobby-title{max-width:100%} @media(max-width:650px){.global-subtitle{font-size:16px}.global-tools select{font-size:13px}}
/* final proportion and ornamental detail adjustments */
.lobby-profile small{display:block;line-height:1.35}.lobby-profile>div{min-width:0}.lobby-profile strong{overflow-wrap:anywhere}.lobby-brand:before{flex:none}.modecard button{background:linear-gradient(180deg,#0e0b08a6 0%,#120e0bc7 46%,#080a0ce8 85%),var(--gold-metal) center/100% 100%;border:1px solid #d5a154;color:#ffe3a2;box-shadow:inset 0 1px 0 #ffe0a766,0 3px 8px #000a,0 0 5px #e9ba5a22}.modecard button:hover{background:linear-gradient(180deg,#4c321b80,#090c10df),var(--gold-metal) center/100% 100%}.rank-dialog .rank-top:before,.global-header:before{content:'';position:absolute;inset:-7px -7px 0;background:var(--frame-art) center/100% 100% no-repeat;pointer-events:none;opacity:.45}.lobby-sidebar button:first-child{border-color:#ffd785;box-shadow:inset 0 0 10px #e4ad4d3b,0 0 13px #e2a44c66}.game .player,.matchtitle{background:linear-gradient(135deg,#0c1118cc,#0b121bd9),var(--panel-metal);border-color:#a47b43}.game .player .avatar{box-shadow:0 3px 10px #000a,0 0 0 2px #d7ac623b}.top-actions .global-language{width:auto;min-width:95px;max-width:160px}.controls .global-launch{font-weight:600}
@media(min-width:1100px){.lobby{min-height:min(100svh,980px);grid-template-rows:auto 1fr auto;padding:16px 18px 10px}.lobby-content{grid-template-rows:clamp(170px,24vh,225px) auto minmax(130px,1fr);gap:12px}.lobby-head{min-height:0;padding:0;justify-content:flex-start;gap:2px}.lobby-title{max-height:145px;width:auto;max-width:62%;object-fit:contain}.global-subtitle{margin:0;font-size:clamp(20px,2.1vw,34px)}.global-tools{position:absolute;right:4px;top:3px;gap:6px;flex-direction:column;align-items:flex-end}.global-tools .global-language{min-width:110px;width:auto;max-width:140px}.global-tools .global-launch{font-size:12px}.modecard{min-height:clamp(225px,34vh,310px)}.modecard img{height:clamp(70px,12vh,116px)}.lobby-table{height:100%;max-height:300px;min-height:140px}.lobby-footer{padding:8px 12px;grid-template-columns:repeat(5,1fr)}}
@media(min-width:1100px){.lobby-profile img{width:clamp(58px,5.1vw,82px);flex-shrink:0}.lobby-profile strong{font-size:clamp(16px,1.25vw,21px);white-space:nowrap;overflow-wrap:normal}.lobby-table{object-fit:fill}.lobby-profile{min-height:110px}}

/* Royal Premium v0.9 — original physically shaded raster materials. */
:root{--royal-button:url(assets/royal-button.webp);--royal-corner:url(assets/royal-corner.webp)}
.lobby-sidebar button,.top-actions button,.controls button,.rank-dialog button,.onlinepanel button,#globalDialog button,.global-launch,.account-launch,.modecard button,.global-language,.game button:not(.point):not(.barstack){background:linear-gradient(180deg,#07101922,#070b1066),var(--royal-button) center/100% 100%;border:1px solid #c49a57;color:#ffebbd;box-shadow:0 3px 9px #000b,inset 0 1px 0 #ffdf9b66;text-shadow:0 2px 3px #000;}
.lobby-sidebar button{display:flex;align-items:center;gap:10px;border-radius:10px;background:linear-gradient(180deg,#19222be8,#070d15e8),var(--royal-button) center/100% 100%;border-color:#67522e}.lobby-sidebar button::before{content:'';width:30px;height:30px;flex:none;background:var(--nav-art) center/contain no-repeat;filter:drop-shadow(0 2px 3px #0008)}
.lobby-sidebar button:first-child{background:linear-gradient(180deg,#50331533,#0d0a05aa),var(--royal-button) center/100% 100%;box-shadow:0 0 12px #e3ad5680,inset 0 0 0 1px #ffdf9b;border-color:#f3c477}
.modecard{background:radial-gradient(ellipse at 50% 4%,color-mix(in srgb,var(--accent),#050c13 78%),transparent 65%),linear-gradient(165deg,#050b13f0,#11131cf5);border:1px solid color-mix(in srgb,var(--accent),#fff 32%);box-shadow:inset 0 0 0 2px color-mix(in srgb,var(--accent) 28%,transparent),inset 0 -7px 24px color-mix(in srgb,var(--accent) 13%,transparent),0 0 13px color-mix(in srgb,var(--accent) 47%,transparent),0 10px 20px #000a}.modecard img{filter:drop-shadow(0 5px 8px #0009) saturate(1.12);mask-image:radial-gradient(ellipse,#000 66%,transparent 90%)}.modecard button{border-radius:30px;font-weight:700}.modecard h2{text-shadow:0 2px 5px #000}.modecard p{color:#e2dcd1}
.lobby-profile,.lobby-footer,.game .player,.matchtitle,.panel,.rank-dialog,#modal,#globalDialog,.legacy-tile,.rank-tile,.legacy-hero,.rank-hero{border-color:#b18a4b;box-shadow:inset 0 0 0 1px #dfb86a44,inset 0 0 18px #0008,0 5px 20px #0009;background-image:linear-gradient(130deg,#0a1018e8,#131922ed),var(--panel-metal);background-size:cover}
.rank-dialog,#globalDialog,#modal{border:2px solid #d0a057;border-radius:15px;box-shadow:0 0 0 3px #281a0e,0 0 0 4px #947144,0 22px 90px #000e,inset 0 0 36px #0009}.rank-top,.global-header{border-bottom:1px solid #cda35b}.rank-top h2,.global-header h2,#modalTitle{color:#f4d18b;text-shadow:0 2px 6px #000;font-family:Georgia,serif}.lobby-profile img{box-shadow:0 0 14px #dca64b66}.lobby-footer{border-radius:20px;position:relative}.lobby-footer>div{padding:3px 0}.lobby-footer strong{text-shadow:0 1px 5px #d4983030}
.boardframe{box-shadow:0 18px 38px #000d,inset 0 0 0 4px #1e0d06,inset 0 0 0 6px #b57f42,inset 0 0 0 8px #f0c17b;border-width:2px}.boardframe:before,.boardframe:after{filter:drop-shadow(0 1px 1px #000)}.boardframe .board{box-shadow:inset 0 0 22px #000d,0 0 0 1px #e8bd7a}.checker:after{display:none!important}.checker{border:0!important;box-shadow:none!important;filter:drop-shadow(0 3px 2px #000b);background-size:100% 100%!important;background-repeat:no-repeat!important}.point.source .checker:last-of-type{filter:drop-shadow(0 0 4px #ffe39a)}.checker em{background:#120b07ab;border-radius:50%;inset:27%;font-size:clamp(9px,1vw,13px)}.die{border:0!important;box-shadow:0 5px 7px #000c;transform:perspective(300px) rotateX(12deg) rotate(-10deg);background-size:100% 100%!important;background-repeat:no-repeat!important}.die:nth-child(2){transform:perspective(300px) rotateX(-12deg) rotate(12deg)}.die i.on{box-shadow:inset 0 2px 2px #0009,0 1px 0 #ffffff55}
.player .avatar:not(.portrait){background-image:url(assets/royal-portrait.webp);background-position:center;background-size:cover;color:transparent}.player#p1 .avatar:not(.portrait){background-image:url(assets/royal-guest-opponent.webp)}.legacy-preview{box-shadow:inset 0 0 20px #000a,0 5px 10px #0009}.legacy-preview.preview-checker i{background-size:100% 100%!important;border:0;box-shadow:none;filter:drop-shadow(0 4px 4px #000b)}.legacy-preview.preview-dice i{background-size:100% 100%!important;border:0}
#royalSettings{width:min(520px,92vw);background:linear-gradient(150deg,#101923,#0b0e12);border:2px solid #c49a57;color:#f8e6bf;padding:24px;border-radius:15px;box-shadow:0 12px 80px #000d}#royalSettings::backdrop{background:#000b}#royalSettings h2{font-family:Georgia;color:#f1cd84;margin:0 0 18px}#royalSettings label{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:15px 0;min-height:36px}#royalSettings input{accent-color:#ce9d50;width:23px;height:23px}#royalSettings button{width:100%;min-height:44px;background:var(--royal-button) center/100% 100%;border:1px solid #e4bb72;color:#ffe9bc;border-radius:12px}button:focus-visible,select:focus-visible,input:focus-visible,a:focus-visible{outline:3px solid #ffe4a2!important;outline-offset:3px!important}button:disabled{cursor:not-allowed;opacity:.55}html[data-royal-contrast="1"] button:not(.point),html[data-royal-contrast="1"] select,html[data-royal-contrast="1"] .panel{color:#fff!important;border-color:#fce2a3!important}html[data-royal-contrast="1"] .point.destination{outline:3px solid #fff!important;outline-offset:-3px}html[data-royal-lite="1"] .modecard,html[data-royal-lite="1"] .panel,html[data-royal-lite="1"] .rank-dialog{box-shadow:0 2px 6px #0008!important}html[data-royal-lite="1"] .checker,html[data-royal-lite="1"] .modecard img{filter:none!important}html[data-royal-motion="1"] *,html[data-royal-motion="1"] *::before,html[data-royal-motion="1"] *::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}
@keyframes royalDice{0%{transform:perspective(300px) translateY(-12px) rotateX(45deg) rotateY(45deg) rotate(-30deg)}50%{transform:perspective(300px) translateY(2px) rotateX(-28deg) rotateY(-30deg) rotate(16deg)}100%{transform:perspective(300px) rotateX(12deg) rotate(-10deg)}}@media(prefers-reduced-motion:no-preference){.rolling .die{animation:royalDice .15s ease-in-out 3}.checker{transition:filter .12s}.modecard button:hover{filter:brightness(1.19)}#modal[open]{animation:royalReveal .25s ease-out}@keyframes royalReveal{from{opacity:0;transform:translateY(9px) scale(.98)}to{opacity:1;transform:none}}}
@media(max-width:650px){.lobby-sidebar button::before{width:22px;height:22px}.lobby-sidebar button{gap:5px}.checker{filter:none}.lobby-footer strong{font-size:15px}#royalSettings{padding:16px}.modecard{box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--accent) 22%,transparent),0 3px 8px #0008}}
.lobby-sidebar [data-lobby="home"]{--nav-art:url(assets/royal-icon-home.webp)}
.lobby-sidebar [data-lobby="local"]{--nav-art:url(assets/royal-icon-local.webp)}
.lobby-sidebar [data-lobby="tournament"]{--nav-art:url(assets/royal-icon-tournament.webp)}
.lobby-sidebar [data-lobby="leaderboard"]{--nav-art:url(assets/royal-icon-leaderboard.webp)}
.lobby-sidebar [data-lobby="online"]{--nav-art:url(assets/royal-icon-online.webp)}
.lobby-sidebar [data-lobby="achievements"]{--nav-art:url(assets/royal-icon-achievements.webp)}
.lobby-sidebar [data-lobby="collection"]{--nav-art:url(assets/royal-icon-collection.webp)}
.lobby-sidebar [data-lobby="guide"]{--nav-art:url(assets/royal-icon-guide.webp)}
.lobby-sidebar [data-lobby="about"]{--nav-art:url(assets/royal-icon-about.webp)}
.lobby-sidebar [data-lobby="settings"]{--nav-art:url(assets/royal-icon-settings.webp)}
html[data-legacy-checker="checker-0"] .checker.white{background-image:url(assets/royal-checker-0-0.webp)!important} .preview-checker[data-item="checker-0"] i:nth-child(1){background-image:url(assets/royal-checker-0-0.webp)!important}
html[data-legacy-checker="checker-0"] .checker.green{background-image:url(assets/royal-checker-0-1.webp)!important} .preview-checker[data-item="checker-0"] i:nth-child(2){background-image:url(assets/royal-checker-0-1.webp)!important}
html[data-legacy-dice="dice-0"] .die,.preview-dice[data-item="dice-0"] i{background-image:url(assets/royal-die-0.webp)!important}
html[data-legacy-checker="checker-1"] .checker.white{background-image:url(assets/royal-checker-1-0.webp)!important} .preview-checker[data-item="checker-1"] i:nth-child(1){background-image:url(assets/royal-checker-1-0.webp)!important}
html[data-legacy-checker="checker-1"] .checker.green{background-image:url(assets/royal-checker-1-1.webp)!important} .preview-checker[data-item="checker-1"] i:nth-child(2){background-image:url(assets/royal-checker-1-1.webp)!important}
html[data-legacy-dice="dice-1"] .die,.preview-dice[data-item="dice-1"] i{background-image:url(assets/royal-die-1.webp)!important}
html[data-legacy-checker="checker-2"] .checker.white{background-image:url(assets/royal-checker-2-0.webp)!important} .preview-checker[data-item="checker-2"] i:nth-child(1){background-image:url(assets/royal-checker-2-0.webp)!important}
html[data-legacy-checker="checker-2"] .checker.green{background-image:url(assets/royal-checker-2-1.webp)!important} .preview-checker[data-item="checker-2"] i:nth-child(2){background-image:url(assets/royal-checker-2-1.webp)!important}
html[data-legacy-dice="dice-2"] .die,.preview-dice[data-item="dice-2"] i{background-image:url(assets/royal-die-2.webp)!important}
html[data-legacy-checker="checker-3"] .checker.white{background-image:url(assets/royal-checker-3-0.webp)!important} .preview-checker[data-item="checker-3"] i:nth-child(1){background-image:url(assets/royal-checker-3-0.webp)!important}
html[data-legacy-checker="checker-3"] .checker.green{background-image:url(assets/royal-checker-3-1.webp)!important} .preview-checker[data-item="checker-3"] i:nth-child(2){background-image:url(assets/royal-checker-3-1.webp)!important}
html[data-legacy-dice="dice-3"] .die,.preview-dice[data-item="dice-3"] i{background-image:url(assets/royal-die-3.webp)!important}
html[data-legacy-checker="checker-4"] .checker.white{background-image:url(assets/royal-checker-4-0.webp)!important} .preview-checker[data-item="checker-4"] i:nth-child(1){background-image:url(assets/royal-checker-4-0.webp)!important}
html[data-legacy-checker="checker-4"] .checker.green{background-image:url(assets/royal-checker-4-1.webp)!important} .preview-checker[data-item="checker-4"] i:nth-child(2){background-image:url(assets/royal-checker-4-1.webp)!important}
html[data-legacy-dice="dice-4"] .die,.preview-dice[data-item="dice-4"] i{background-image:url(assets/royal-die-4.webp)!important}
html[data-legacy-checker="checker-5"] .checker.white{background-image:url(assets/royal-checker-5-0.webp)!important} .preview-checker[data-item="checker-5"] i:nth-child(1){background-image:url(assets/royal-checker-5-0.webp)!important}
html[data-legacy-checker="checker-5"] .checker.green{background-image:url(assets/royal-checker-5-1.webp)!important} .preview-checker[data-item="checker-5"] i:nth-child(2){background-image:url(assets/royal-checker-5-1.webp)!important}
html[data-legacy-dice="dice-5"] .die,.preview-dice[data-item="dice-5"] i{background-image:url(assets/royal-die-5.webp)!important}
html[data-legacy-checker="checker-6"] .checker.white{background-image:url(assets/royal-checker-6-0.webp)!important} .preview-checker[data-item="checker-6"] i:nth-child(1){background-image:url(assets/royal-checker-6-0.webp)!important}
html[data-legacy-checker="checker-6"] .checker.green{background-image:url(assets/royal-checker-6-1.webp)!important} .preview-checker[data-item="checker-6"] i:nth-child(2){background-image:url(assets/royal-checker-6-1.webp)!important}
html[data-legacy-dice="dice-6"] .die,.preview-dice[data-item="dice-6"] i{background-image:url(assets/royal-die-6.webp)!important}
html[data-legacy-checker="checker-7"] .checker.white{background-image:url(assets/royal-checker-7-0.webp)!important} .preview-checker[data-item="checker-7"] i:nth-child(1){background-image:url(assets/royal-checker-7-0.webp)!important}
html[data-legacy-checker="checker-7"] .checker.green{background-image:url(assets/royal-checker-7-1.webp)!important} .preview-checker[data-item="checker-7"] i:nth-child(2){background-image:url(assets/royal-checker-7-1.webp)!important}
html[data-legacy-dice="dice-7"] .die,.preview-dice[data-item="dice-7"] i{background-image:url(assets/royal-die-7.webp)!important}
html[data-legacy-checker="checker-8"] .checker.white{background-image:url(assets/royal-checker-8-0.webp)!important} .preview-checker[data-item="checker-8"] i:nth-child(1){background-image:url(assets/royal-checker-8-0.webp)!important}
html[data-legacy-checker="checker-8"] .checker.green{background-image:url(assets/royal-checker-8-1.webp)!important} .preview-checker[data-item="checker-8"] i:nth-child(2){background-image:url(assets/royal-checker-8-1.webp)!important}
html[data-legacy-dice="dice-8"] .die,.preview-dice[data-item="dice-8"] i{background-image:url(assets/royal-die-8.webp)!important}
html[data-legacy-checker="checker-9"] .checker.white{background-image:url(assets/royal-checker-9-0.webp)!important} .preview-checker[data-item="checker-9"] i:nth-child(1){background-image:url(assets/royal-checker-9-0.webp)!important}
html[data-legacy-checker="checker-9"] .checker.green{background-image:url(assets/royal-checker-9-1.webp)!important} .preview-checker[data-item="checker-9"] i:nth-child(2){background-image:url(assets/royal-checker-9-1.webp)!important}
html[data-legacy-dice="dice-9"] .die,.preview-dice[data-item="dice-9"] i{background-image:url(assets/royal-die-9.webp)!important}
html[data-legacy-board="board-0"] .boardframe:before,html[data-legacy-board="board-0"] .boardframe:after{background-image:url(assets/royal-inlay-0.webp)}
html[data-legacy-board="board-1"] .boardframe:before,html[data-legacy-board="board-1"] .boardframe:after{background-image:url(assets/royal-inlay-1.webp)}
html[data-legacy-board="board-2"] .boardframe:before,html[data-legacy-board="board-2"] .boardframe:after{background-image:url(assets/royal-inlay-2.webp)}
html[data-legacy-board="board-3"] .boardframe:before,html[data-legacy-board="board-3"] .boardframe:after{background-image:url(assets/royal-inlay-3.webp)}
html[data-legacy-board="board-4"] .boardframe:before,html[data-legacy-board="board-4"] .boardframe:after{background-image:url(assets/royal-inlay-4.webp)}
html[data-legacy-board="board-5"] .boardframe:before,html[data-legacy-board="board-5"] .boardframe:after{background-image:url(assets/royal-inlay-5.webp)}
html[data-legacy-board="board-6"] .boardframe:before,html[data-legacy-board="board-6"] .boardframe:after{background-image:url(assets/royal-inlay-6.webp)}
html[data-legacy-board="board-7"] .boardframe:before,html[data-legacy-board="board-7"] .boardframe:after{background-image:url(assets/royal-inlay-7.webp)}
html[data-legacy-board="board-8"] .boardframe:before,html[data-legacy-board="board-8"] .boardframe:after{background-image:url(assets/royal-inlay-8.webp)}
html[data-legacy-board="board-9"] .boardframe:before,html[data-legacy-board="board-9"] .boardframe:after{background-image:url(assets/royal-inlay-9.webp)}
html[data-legacy-board="board-10"] .boardframe:before,html[data-legacy-board="board-10"] .boardframe:after{background-image:url(assets/royal-inlay-10.webp)}
html[data-legacy-board="board-11"] .boardframe:before,html[data-legacy-board="board-11"] .boardframe:after{background-image:url(assets/royal-inlay-11.webp)}
html[data-legacy-board="board-12"] .boardframe:before,html[data-legacy-board="board-12"] .boardframe:after{background-image:url(assets/royal-inlay-12.webp)}
html[data-legacy-board="board-13"] .boardframe:before,html[data-legacy-board="board-13"] .boardframe:after{background-image:url(assets/royal-inlay-13.webp)}
html[data-legacy-board="board-14"] .boardframe:before,html[data-legacy-board="board-14"] .boardframe:after{background-image:url(assets/royal-inlay-14.webp)}
html:not([data-legacy-checker]) .checker.white{background-image:url(assets/royal-checker-0-0.webp)!important}html:not([data-legacy-checker]) .checker.green{background-image:url(assets/royal-checker-0-1.webp)!important}html:not([data-legacy-dice]) .die{background-image:url(assets/royal-die-0.webp)!important}
/* Finishing pass: consistent settings and ornate corners. */
.royal-settings-launch{background:var(--royal-button) center/100% 100%!important;border:1px solid #c49a57!important;color:#ffebbd!important;border-radius:10px;min-height:38px;padding:7px 12px;display:flex;align-items:center;gap:5px}.royal-settings-launch::before{content:'';width:19px;height:19px;background:url(assets/royal-icon-settings.webp) center/contain no-repeat;flex:none}.lobby-sidebar button::before{width:31px;height:31px}.rank-dialog,#globalDialog,#modal{background-image:var(--royal-corner),linear-gradient(130deg,#0a1018e8,#131922ed),var(--panel-metal);background-position:top left,center,center;background-size:80px 80px,cover,cover;background-repeat:no-repeat}.game .panel button:not(.point):not(.barstack){border-color:#b18a4b}.game .panel button.active{background:var(--royal-button) center/100% 100%;border-color:#ffe0a0;box-shadow:0 0 8px #c38e4c77}.modecard img{mask-image:radial-gradient(ellipse,#000 48%,transparent 83%)}.lobby-profile .account-launch{background:var(--royal-button) center/100% 100%;border-color:#c49a57}.lobby-brand:before{filter:drop-shadow(0 2px 4px #000)}
@media(max-width:650px){.lobby-sidebar button::before{width:22px;height:22px}.royal-settings-launch{font-size:12px}.royal-settings-launch::before{width:15px;height:15px}}
/* King of Backgammon: engraved shared ornament layer; gameplay geometry unchanged. */
:root{--final-plaque:url(assets/final-plaque.webp);--final-laurel:url(assets/final-laurel.webp)}
.lobby-footer{background:var(--final-plaque) center/100% 100% no-repeat,linear-gradient(#151d25,#060a10);padding:14px 28px;border:0;border-radius:12px;box-shadow:0 5px 24px #000b}
.lobby-profile img{outline:0;box-shadow:0 0 0 2px #d1a352,0 0 14px #e4aa4d35}
.lobby-profile{position:relative}.lobby-profile:after{content:'';position:absolute;top:10px;left:5px;width:100px;height:100px;background:var(--final-laurel) center/contain no-repeat;pointer-events:none}
.modecard button{background:var(--final-plaque) center/100% 100% no-repeat!important;box-shadow:0 4px 9px #0009;text-shadow:0 2px 3px #000;border:0!important;padding-inline:15px}
.rank-top,.global-header{background:linear-gradient(90deg,transparent,#bc894c19,transparent);border-bottom:1px solid #d2a65e}
#modalTitle,.rank-top h2,.global-header h2{letter-spacing:.3px;color:#ffe0a4}
#modal[open]{border-color:#e3b86a;box-shadow:0 0 0 2px #3b2715,0 0 55px #bc8c3e35,0 22px 70px #000c}
button:focus-visible,select:focus-visible,input:focus-visible,a:focus-visible{outline:3px solid #ffdf8a!important;outline-offset:3px!important}
@media(min-width:1100px){.lobby-head>.lobby-brand,.lobby-head>.lobby-title,.lobby-head>.global-subtitle{transform:translateX(-8%)}.modecard button{min-height:47px}.lobby-footer>div{padding:2px 6px}}
@media(max-width:650px){.lobby-profile:after{display:none}.lobby-footer{background:linear-gradient(#151d25,#060a10);border:1px solid #a67c3d;padding:10px}.modecard button{min-height:44px}}
html[data-royal-lite="1"] .lobby-profile:after{display:none}html[data-royal-contrast="1"] .modecard button{background:#090909!important;color:#fff!important;border:2px solid #ffe2a0!important}
@media(min-width:1100px){.lobby-footer{padding-inline:12%}.lobby-profile:after{width:88px;height:88px;left:10px;top:17px}}
