html[lang=es] .account-art .home-mode,html[lang=es] .account-art .account-help,html[lang=es] .account-art .account-tab,html[lang=es] .account-art .entry-provider,html[lang=es] .account-art .entry-guest,html[lang=es] .account-art .entry-title,html[lang=es] .account-art .entry-note,html[lang=es] .account-art .entry-privacy,html[lang=es] .account-art .entry-terms{color:transparent!important;background:transparent!important;text-shadow:none!important}.account-art .home-mode:after,.account-art .entry-provider:after,.account-art .entry-guest:after{content:'';position:absolute;left:-60%;right:-40%;top:-50%;bottom:-50%;background:transparent}.account-art .home-mode{font-weight:950;text-shadow:0 2px 0 #183146,1px 0 #183146,-1px 0 #183146}.account-art .account-zone:focus-visible{outline:3px solid #43dfff!important}.account-backdrop{image-rendering:auto}.play.match-stage{width:min(100vw,calc(100svh * 900 / 1746));aspect-ratio:900/1746;margin:0;height:auto;overflow:visible;background:repeating-linear-gradient(2deg,#0000 0 20px,#49241212 21px 22px),linear-gradient(110deg,#754021,#542b17 52%,#71381c);border-radius:0;container-type:inline-size}.match-stage .board-wrap{left:1%;top:18.2%;width:98%;height:53.3%;position:absolute;border-radius:2cqw;overflow:visible}.match-stage .board{width:100%;height:100%;display:block}.match-stage .match-avatars{position:absolute;inset:0;z-index:3}.match-stage .match-avatar{width:24%;height:11%;display:flex;flex-direction:column;gap:0;align-items:center;font-size:3cqw}.match-stage .match-avatar .match-avatar-art{width:78%;height:78%;aspect-ratio:1;border-width:3px;box-shadow:0 0 0 2px #ffd367,0 4px 4px #24100799;background:#fff4dc}.match-stage .match-avatar span{width:98%;max-width:100%;height:22%;display:grid;place-items:center;border:2px solid #dab045;border-radius:20px;background:linear-gradient(#fffdf0,#ffedc6);color:#4c2514;text-shadow:none;padding:0 5%;font:800 3.2cqw Arial;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.match-stage .corner-blue{left:3%;top:6.8%}.match-stage .corner-red{right:3%;top:6.8%}.match-stage .corner-yellow{left:3%;top:72.1%}.match-stage .corner-green{right:3%;top:72.1%}.match-stage .match-avatar.current .match-avatar-art{outline:2px solid #71efff;box-shadow:0 0 18px #6eeeff,0 0 0 4px #ffd760}.match-stage .pause{left:3%;right:auto;top:1%;width:9%;height:4.8%;background:linear-gradient(#fffdf2,#ffefd6);border:3px solid #e9a334;outline:1px solid #7c350c;border-radius:50%;color:#422510;font-size:5cqw;box-shadow:inset 0 0 0 2px #fff,0 3px 4px #1c0d0888;display:grid;place-items:center}.match-stage .match-gems{left:auto;right:3%;top:1.3%;height:3.6%;min-width:20%;font-size:3.5cqw;padding:0 2%;box-shadow:0 3px 4px #24120899}.match-stage .connection-state{top:6%;left:39%;width:23%;font-size:2cqw;text-align:center;background:transparent;color:#f7e9cf;padding:0}.match-stage .controls .turn{left:7%;top:84.3%;width:29%;height:8%;background:linear-gradient(110deg,#fffdf0,#fff1d6);border:3px solid #f0ab27;border-radius:4cqw;box-shadow:inset 0 0 0 2px white,0 4px 5px #2e100999;display:flex;align-items:center;padding:1%}.match-stage .turn>svg,.match-stage .turn .turn-skin{display:none}.match-stage .turn>div{width:100%;height:90%;justify-content:center}.match-stage .turn small{font:800 3cqw Arial;color:#60331b}.match-stage .turn strong{font:900 4cqw Arial;background:linear-gradient(#ffe495,#ffcd62);border-radius:12px;padding:4px 8px;margin-top:6%;width:100%;text-align:center}.match-stage .die-touch{left:40%;top:81%;width:20%;height:11%;border-radius:22%;background:#fff7e7;box-shadow:0 5px 8px #26140988}.match-stage .dice{width:100%;height:100%;background:linear-gradient(135deg,#fff,#e8e4de);box-shadow:inset -7px -6px 7px #aaa69e88,inset 4px 4px 5px white;border-radius:22%;padding:15%;gap:9%}.match-stage .die-touch.my-turn{outline:2px solid #ffc02e;box-shadow:0 0 12px 3px #ffb324aa,0 4px 7px #30180088}.match-stage .roll{left:64%;top:84.3%;width:29%;height:8%;min-height:0;background:linear-gradient(#06b76a,#007d3d);border:3px solid #f5b82c;border-radius:4cqw;box-shadow:inset 0 0 0 2px #ffffffaa,0 3px 5px #26110988;color:white;font:900 3.1cqw Arial;padding:5%;opacity:1}.match-stage .roll:disabled{opacity:1;background:linear-gradient(#087a42,#076434);color:#eadfc3}.match-stage[data-phase=SELECT] .roll{visibility:hidden}.match-stage .reroll-button{left:64%;top:84.3%;width:29%;height:8%;padding:3%;flex-direction:column;background:linear-gradient(110deg,#fffdf0,#ffefca);border:3px solid #f0ad2a;border-radius:4cqw;color:#492415;box-shadow:inset 0 0 0 2px white,0 3px 5px #26110988;font:900 3.2cqw Arial;gap:6%}.match-stage .reroll-button small{font:800 3.4cqw Arial;background:#ffdc74;width:100%;border-radius:10px;text-align:center}.match-stage .reroll-button:disabled{color:#91775a;background:#efe1c6}.match-stage[data-phase=ROLL] .reroll-button,.match-stage[data-phase=WON] .reroll-button{display:none}.match-stage .quick-guide,.match-stage:has(.reroll-button) .quick-guide{top:94%;left:5%;width:90%;font:600 2.8cqw Arial;color:#fff0d4;text-shadow:0 1px 2px #2c180a}.match-stage .roll-prompt{display:none}.room-chat.chat-anchored .chat-launch{width:100%;height:auto;min-height:40px;padding:8px 4px;border:2px solid #dba547;border-radius:16px;background:linear-gradient(#fffdf0,#ffeed1);box-shadow:0 3px 4px #27120977;font-size:clamp(12px,3vw,22px);white-space:nowrap;color:#4f2c17}.room-chat.chat-anchored .chat-panel{position:fixed;top:10%;left:50%;right:auto;transform:translateX(-50%);width:min(92vw,480px);max-height:75svh}.play-toolbar{z-index:4}.match-stage .controls{z-index:4}@media(orientation:landscape){.play.match-stage{width:calc(100svh * 900 / 1746);height:auto;aspect-ratio:900/1746}.room-chat.chat-anchored .chat-launch{min-height:20px;padding:3px;font-size:10px}}
body:has(.match-stage){background:#502915}.match-stage .quick-guide{display:block}.match-stage .corner-red,.match-stage .corner-green{flex-direction:column}.match-stage .match-avatar span{flex-shrink:0}.match-stage .die-touch:disabled{filter:none}.match-stage .board-wrap{box-shadow:none}.match-stage .dice-skin{background:transparent}.match-stage .dice-actual-result{font-size:4cqw}@supports(padding:env(safe-area-inset-top)){body:has(.match-stage) #app{height:calc(100svh - env(safe-area-inset-top) - env(safe-area-inset-bottom))}.play.match-stage{width:min(100vw,calc((100svh - env(safe-area-inset-top) - env(safe-area-inset-bottom))*900/1746))}}

.match-stage .match-avatar .match-avatar-art{width:70%;height:auto;aspect-ratio:1;flex-shrink:0}.match-stage .match-avatar span{height:22%;min-height:0}.host-settings button:disabled{filter:none}
.illustrated-main-nav{position:relative;display:block;flex-shrink:0;width:100%;height:auto;aspect-ratio:4.5;margin:0;padding:0;border:0;background:transparent;box-shadow:none;border-radius:0;overflow:visible}
.illustrated-main-nav>svg{position:absolute;inset:0;width:100%;height:100%;display:block}
.illustrated-main-nav>button,.illustrated-main-nav>button.active{position:absolute;top:0;width:25%;height:100%;margin:0;padding:0;border:0;background:transparent;box-shadow:none;border-radius:14%;transform:none;color:#642414}
.illustrated-main-nav>button:hover{background:#fff1;filter:none;transform:none}
.illustrated-main-nav>button span{position:absolute;bottom:16%;left:8%;width:84%;font-size:clamp(12px,2vw,20px);background:#ffedce;line-height:1.2;color:#642414}.illustrated-main-nav>button[aria-current=page] span{background:#009f3d;color:white}
.home-screen .illustrated-main-nav{position:absolute;left:1%;bottom:1.8%;width:98%;height:10.8%;aspect-ratio:auto}
.home-screen .illustrated-main-nav>button span{font-size:3.2cqw}

.profile-avatar-art{display:block;width:100%;height:100%;border-radius:50%;overflow:hidden}
.home-avatar-live{left:6%;width:29%;height:auto;aspect-ratio:1;top:13%}
.home-screen .illustrated-main-nav{height:9.2%;bottom:1.6%}
.illustrated-main-nav button[data-nav="play"]{transform:none;box-shadow:none;border:0}
.home-screen .home-help-live{top:84%;height:4.1%}

.home-screen .illustrated-main-nav{height:10.1%;bottom:.9%}

/* Display the supplied menu unchanged on every screen. */
.illustrated-main-nav.exact-main-nav>img{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:contain}
.illustrated-main-nav.exact-main-nav>button,.illustrated-main-nav.exact-main-nav>button:hover{background:transparent;border:0;box-shadow:none;transform:none}
.home-screen .illustrated-main-nav.exact-main-nav,.separated-shop .illustrated-main-nav.exact-main-nav,.friends-shell .illustrated-main-nav.exact-main-nav{height:auto;aspect-ratio:2170/725}
.home-screen .illustrated-main-nav.exact-main-nav{height:16.4%;}

/* One shared stage anchor keeps the transparent menu stationary across screens. */
.home-screen .illustrated-main-nav.exact-main-nav,
.separated-shop .illustrated-main-nav.exact-main-nav,
.friends-shell .illustrated-main-nav.exact-main-nav{position:absolute;left:1%;right:auto;bottom:.9%;width:98%;height:10.1%;min-height:0;aspect-ratio:auto;margin:0;padding:0;z-index:15;flex:none}
.illustrated-main-nav.exact-main-nav>svg{position:absolute;inset:0;width:100%;height:100%;display:block}
.separated-shop,.friends-shell{padding-bottom:min(11.5svh,calc(100vw * 1426 / 736 * .115))}

.navigation-slide-ghost{position:fixed;z-index:12;pointer-events:none;overflow:hidden;contain:layout paint}
.home-screen,.separated-shop,.friends-shell{touch-action:pan-y}

.home-profile-live{height:87%;bottom:auto}
.home-avatar-live{top:7%}

.home-top .home-wallet-live{transform:translateY(-1cqw)}
.home-gear-live{right:.6%;top:2.3%}

.home-top .home-wallet-live{transform:translateY(-1.55cqw)}
.home-wallet-live strong{font-family:Arial,sans-serif;font-weight:900;text-shadow:.025cqw 0 currentColor,-.025cqw 0 currentColor}
.home-wallet-live .wallet-plus{width:4.4cqw;height:4.4cqw;flex:0 0 4.4cqw;padding:0;border:.3cqw solid #ffe590;border-radius:50%;background:linear-gradient(145deg,#37ed7d,#04b94d 48%,#007b31);box-shadow:inset 0 .2cqw .3cqw #b6ffb1,0 .2cqw .4cqw #78401755;display:grid;place-items:center}
.home-wallet-live .wallet-plus svg{display:block;width:64%;height:64%;fill:none;stroke:white;stroke-width:3.7;stroke-linecap:round}

/* Keep wallet icons contained and center the profile's gold avatar frame. */
.home-wallet-live img{transform:none;height:88%;width:29%;max-height:100%;object-fit:contain}
.home-top .home-wallet-live{align-items:center}
.home-avatar-live{top:10%;border:.4cqw solid #eeb63c;box-shadow:inset 0 0 0 .15cqw #fff0a4,0 .55cqw .8cqw #60351170;background:#e3aa32;box-sizing:border-box}

/* Raised wallet frames must retain their complete upper gold edge. */
.home-frame-art{overflow:visible}
.home-avatar-live{top:50%;transform:translateY(-50%);display:grid;place-items:center;background:#f1e6cf;border:.35cqw solid #e8b548;box-shadow:0 .5cqw .75cqw #60351166}
.home-avatar-live>svg{display:block;width:100%;height:100%;margin:0;mix-blend-mode:multiply}
.home-wallet-live img{height:100%;width:31%;transform:none}

/* Fit the avatar artwork tightly inside its thin gold circle. */
.home-avatar-live{border:.25cqw solid #e8b548;overflow:hidden}
.home-avatar-live>svg{width:108%;height:108%;max-width:none;flex-shrink:0;position:absolute;left:50%;top:50%;transform:translate(-50%,-50%)}

.home-mode-live span{background:transparent;left:26%;width:59%;top:24%;height:50%;font-size:4.6cqw;font-weight:900;text-shadow:0 .4cqw .3cqw #382010}

.home-mode-live.live-mode-0 span{top:29%}

/* Settings shares the game's ivory, polished gold and emerald palette. */
dialog:has(.settings-card){width:min(94vw,440px);padding:18px 18px 13px;border:4px solid #f2bc3b;border-radius:30px;background:linear-gradient(120deg,#fff9e7,#f4dfb6);box-shadow:inset 0 0 0 2px #fff2a7,0 0 0 2px #a55a12,0 12px 35px #24100699;color:#50250f}
dialog:has(.settings-card)::backdrop{background:#351708aa;backdrop-filter:blur(7px)}
.settings-card{font-family:'Arial Rounded MT Bold','Trebuchet MS',Arial,sans-serif}
.settings-card h2{font-family:inherit;font-weight:900;font-size:29px;letter-spacing:.6px;color:#fff7df;background:linear-gradient(110deg,#974c1b,#5c290e 65%,#844012);border:2px solid #eab43a;border-radius:20px;padding:18px 36px;margin:0 0 18px;box-shadow:inset 0 0 0 1px #ffd87c,0 3px 5px #67330e40;text-shadow:0 2px 2px #301007}
.settings-card h2>span{font-size:30px;color:#ffcd59;text-shadow:0 2px 2px #331708}
dialog .settings-back{left:9px;top:18px;width:34px;height:34px;min-height:0;border:2px solid #ffd26b;color:#fff9e8;background:linear-gradient(#cf7833,#75380e);box-shadow:inset 0 1px 1px #ffe49a,0 2px 3px #35170870;font:900 23px/1 Arial;display:grid;place-items:center}
.settings-toggle{font-family:inherit;font-size:19px;padding:13px 12px;margin:10px 0;border:2px solid #e5b254;border-radius:17px;background:linear-gradient(120deg,#fffdf2,#f6e7ca);box-shadow:inset 0 0 0 1px #fff9e6,0 2px 4px #8c561225}
.settings-toggle>span{gap:9px}.settings-toggle i{width:35px;height:35px;border-radius:50%;display:grid;place-items:center;color:#a8640f;background:linear-gradient(#ffe895,#f2bd4d);border:1px solid #ce912d;font-size:25px;box-shadow:0 2px 2px #98641a30}.settings-toggle i svg{width:23px;height:23px}
.settings-toggle input{width:59px;height:33px;border:2px solid #d8a332;background:linear-gradient(#9d8766,#b8a588);box-shadow:inset 0 2px 3px #45301560,0 1px 0 #fff8da;margin:0}
.settings-toggle input:before{width:25px;height:25px;left:2px;top:2px;background:linear-gradient(#fffcef,#ffe5a5);border:1px solid #f5ce75;box-sizing:border-box}
.settings-toggle input:checked{background:linear-gradient(#0dd774,#008d41 65%,#006a2d)}.settings-toggle input:checked:before{transform:translateX(26px)}
.settings-language-title{font:900 20px/1.2 'Trebuchet MS',Arial,sans-serif;margin:20px 0 12px;color:#673512;display:flex;align-items:center;gap:10px}.settings-language-title>span:first-child{color:#bf841e;font-size:27px}
.language-grid{gap:10px}.language-grid button{font:900 16px/1.15 'Trebuchet MS',Arial,sans-serif;min-height:58px;border:2px solid #e7b341;border-radius:16px;background:linear-gradient(#fffdf3,#f5e4c4);color:#532a12;box-shadow:inset 0 0 0 1px #fff8dc,0 3px 0 #bb84372e;gap:7px;padding:8px 5px}
.language-grid button[aria-pressed=true]{color:#fff;background:linear-gradient(155deg,#16d776,#009a46 60%,#006d2f);border:2px solid #edbb41;box-shadow:inset 0 1px 0 #a0f7b0,inset 0 0 0 1px #ffe396,0 3px 0 #a77828;text-shadow:0 1px 2px #005829}
.language-flag{width:29px;height:29px}.automatic-globe{font-size:25px}.selected-language-check{width:17px;height:17px;font:900 12px/17px Arial;background:#fff2c4;color:#087a35}
dialog .language-hint{font:14px/1.3 'Trebuchet MS',Arial,sans-serif;color:#86522b;margin:15px 0;text-align:center}
dialog .settings-done{min-height:55px;font:900 22px/1 'Trebuchet MS',Arial,sans-serif;letter-spacing:1px;border:3px solid #e9b339;border-radius:22px;background:linear-gradient(150deg,#1cdf7d,#00a04a 50%,#006b2d);color:white;box-shadow:inset 0 1px 0 #a4f7b7,inset 0 0 0 1px #ffdfa0,0 4px 0 #a46819;text-shadow:0 2px 2px #00542b}
.settings-credit{font:11px/1.4 'Trebuchet MS',Arial,sans-serif!important;text-align:center!important;color:#8e643d;margin:16px 0 0!important}
@media(max-height:720px){dialog:has(.settings-card){padding:12px}.settings-card h2{padding:12px 33px;font-size:25px;margin-bottom:10px}dialog .settings-back{top:10px}.settings-toggle{padding:9px 10px;margin:7px 0;font-size:17px}.settings-language-title{margin:12px 0 9px}.language-grid button{min-height:48px;font-size:15px}dialog .language-hint{margin:11px 0}dialog .settings-done{min-height:48px}}

/* Clean play controls and fading footprints. */
.match-stage:after{content:'';position:absolute;left:3%;top:83.5%;width:94%;height:15%;border:2px solid #e9b33f;border-radius:5cqw;background:linear-gradient(120deg,#fff9e8,#f0dbb6);box-shadow:inset 0 0 0 2px #fff2bd,0 4px 8px #24100766;pointer-events:none;z-index:0;box-sizing:border-box}
.match-stage .controls{position:absolute;inset:0;pointer-events:none;z-index:4}.match-stage .controls>*{pointer-events:auto}
.match-stage .controls .turn{left:6%;top:85%;width:28%;height:6%;padding:0;border:0;background:transparent;box-shadow:none;text-align:center}
.match-stage .turn strong{background:transparent;margin-top:3%;padding:0;font-size:3.5cqw}.match-stage .turn small{color:#087644;font-size:3cqw}
.match-stage .die-touch{left:39%;top:83.8%;width:22%;height:10.5%;background:transparent;border:0;outline:0;padding:0;box-shadow:none;filter:drop-shadow(0 5px 4px #59310d66)}
.match-stage .die-touch.my-turn{outline:0;box-shadow:none;filter:drop-shadow(0 0 5px #ffc53e) drop-shadow(0 5px 4px #59310d66)}
.match-stage .die-touch .dice-skin{background:transparent;border-radius:0;overflow:visible}
.match-stage .roll{left:65%;top:85%;width:29%;height:6.5%;padding:2%;border-radius:50%;font:900 3cqw Georgia;background:linear-gradient(#00ba6a,#006c36);border:3px solid #eab23c;box-shadow:inset 0 0 0 2px #ffe9a5,0 3px 4px #59310d66}
.match-stage .reroll-button{left:65%;top:85%;width:29%;height:6.5%;padding:2%;gap:5%;border-width:2px;border-radius:3cqw;font:800 2.6cqw Arial}
.match-stage .reroll-button small{font-size:2.7cqw;background:transparent}
.match-stage .quick-guide,.match-stage:has(.reroll-button) .quick-guide{z-index:4;top:95%;color:#673b20;text-shadow:none;font-size:2.6cqw}
.piece-trail{animation:piece-footprint .7s ease-out forwards;transform-box:fill-box;transform-origin:center;filter:blur(1px)}
@keyframes piece-footprint{from{opacity:.38;transform:scale(1)}to{opacity:0;transform:scale(.65)}}
@media(prefers-reduced-motion:reduce){.piece-trail{display:none}}

.match-stage .roll{border:0;background:transparent;box-shadow:none;border-radius:0}.game-roll-art{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}.match-stage .roll>span{position:relative;z-index:1}.match-stage .roll:disabled{background:transparent;opacity:.65}.match-stage .turn:has(small) strong{font-size:3cqw}.match-stage .quick-guide{white-space:normal}

.play.match-stage{background:url('assets/fondo.png') center/100% 100% no-repeat}body:has(.match-stage){background:#a35a29 url('assets/fondo.png') center/cover fixed}

.match-stage .board-wrap{left:0;width:100%}
.match-stage .board-wrap{height:auto;aspect-ratio:974/1030}

/* Approved minimal die layout: collection faces and live reroll labels. */
.match-stage:after,.match-stage .match-avatars,.match-stage .controls .turn,.match-stage .roll{display:none}
.match-stage .die-touch{left:35.5%;top:74.77%;width:29%;height:auto;aspect-ratio:1;max-height:none;border:0;border-radius:0;background:transparent;filter:drop-shadow(0 4px 5px #63311066);box-shadow:none;outline:0;overflow:visible}
.match-stage .die-touch.my-turn{filter:drop-shadow(0 0 5px #ffd25899) drop-shadow(0 4px 5px #63311066);box-shadow:none;outline:0}
.match-stage .die-touch .dice-face{width:100%;height:100%;background:transparent;padding:0;box-shadow:none;overflow:visible}
.match-stage .dice-face img{width:100%;height:100%;object-fit:contain;display:block}
.match-stage .die-touch.is-rolling{animation:game-die-spin .82s cubic-bezier(.22,.65,.3,1) both}
.match-stage .dice-skin.rolling,.match-stage .dice.rolling{animation:none}
@keyframes game-die-spin{0%{transform:rotate(0) scale(.88)}45%{transform:rotate(210deg) scale(1.07)}80%{transform:rotate(340deg) scale(1)}100%{transform:rotate(360deg) scale(1)}}
.play.match-stage .reroll-button{left:20%;top:91%;width:60%;height:4.7%;padding:0 3%;display:flex;flex-direction:row;align-items:center;justify-content:center;gap:3%;border:2px solid #dc9c24;border-radius:999px;background:linear-gradient(#fffdf4,#f7e3b8);box-shadow:inset 0 0 0 2px #fff2bf,0 3px 4px #68340b66;color:#512810;font:800 3cqw Arial;white-space:nowrap}
.match-stage .reroll-price{display:flex;align-items:center;gap:1cqw}.match-stage .reroll-price img{width:4.4cqw;height:4.4cqw;object-fit:contain;filter:brightness(1.2)}
.match-stage .reroll-time{border-left:1px solid #c59b60;padding-left:2cqw;display:flex;gap:1cqw;align-items:center}
.play.match-stage .reroll-button:disabled{background:linear-gradient(#fffaf0,#eddcbb);color:#897056;opacity:.7}
.match-stage[data-phase=ROLL] .reroll-button,.match-stage[data-phase=WON] .reroll-button{visibility:hidden}
.match-stage .quick-guide,.match-stage:has(.reroll-button) .quick-guide{top:auto;bottom:1%;margin:0;left:2%;width:96%;color:#fff4dc;text-shadow:0 1px 3px #572600,0 0 3px #572600;font:700 2.7cqw Arial}
@media(prefers-reduced-motion:reduce){.match-stage .die-touch.is-rolling{animation:none}}

.match-stage .board-wrap{bottom:auto;right:auto}.match-stage .die-touch:after{display:none!important}

.play.match-stage #roll{display:none!important}

/* One fixed face box for classic and collection dice; gentle flip and landing. */
.play.match-stage .die-touch{display:grid;place-items:center;min-width:0;min-height:0;transform-origin:50% 50%}
.play.match-stage .die-touch>.dice-face{display:block;flex:none;width:100%;height:100%;min-width:0;min-height:0;margin:0;padding:0;aspect-ratio:1;position:absolute;inset:0}
.play.match-stage .die-touch>.dice-face>svg,.play.match-stage .die-touch>.dice-face>img{display:block;width:100%;height:100%;margin:0;object-fit:contain}
.match-stage .die-touch.is-rolling{animation:game-die-flip .82s ease-out both}
@keyframes game-die-flip{0%{transform:perspective(600px) translateY(0) rotateX(0) rotateY(0)}18%{transform:perspective(600px) translateY(-9px) rotateX(28deg) rotateY(-58deg)}36%{transform:perspective(600px) translateY(-15px) rotateX(-38deg) rotateY(48deg)}55%{transform:perspective(600px) translateY(-11px) rotateX(28deg) rotateY(-38deg)}72%{transform:perspective(600px) translateY(-5px) rotateX(-14deg) rotateY(20deg)}86%{transform:perspective(600px) translateY(2px) rotateX(0) rotateY(-6deg) scale(1.025,.96)}100%{transform:perspective(600px) translateY(0) rotateX(0) rotateY(0) scale(1)}}
@media(prefers-reduced-motion:reduce){.match-stage .die-touch.is-rolling{animation:none}}

/* Keep the next required action visible after simplifying the turn controls. */
.play.match-stage .roll-prompt{display:block;position:absolute;left:10%;top:72%;width:80%;margin:0;text-align:center;color:#fff5d9;text-shadow:0 2px 3px #48230c;font:800 3cqw/1.25 Arial;pointer-events:none;z-index:5}
.play.match-stage .die-touch>.dice-face{pointer-events:none}

/* Optical size correction for the solid classic face, keeping its center fixed. */
.play.match-stage .die-touch>.classic-die{width:88%;height:88%;inset:6%;}
.match-stage .die-touch.is-rolling{animation:game-die-shuffle .82s ease-out both}
@keyframes game-die-shuffle{
 0%{transform:translateX(0) rotate(0)}
 16%{transform:translateX(-10px) rotate(-24deg)}
 34%{transform:translateX(9px) rotate(21deg)}
 53%{transform:translateX(-6px) rotate(-14deg)}
 70%{transform:translateX(4px) rotate(8deg)}
 86%{transform:translateX(-1px) rotate(-3deg)}
 100%{transform:translateX(0) rotate(0)}
}
@media(prefers-reduced-motion:reduce){.match-stage .die-touch.is-rolling{animation:none}}

/* Keep the agreed reroll control below the die, enabled only in its time window. */
.play.match-stage[data-phase] .reroll-button{display:flex;visibility:visible}
.play.match-stage[data-phase=WON] .reroll-button{display:none}

/* Compact ornamental cream and gold frame with live labels above the artwork. */
.play.match-stage .reroll-button,.play.match-stage .reroll-button:disabled{left:23%;width:54%;height:4.8%;min-height:0;padding:0 5%;gap:3%;border:0;border-radius:0;background:transparent;box-shadow:none;color:#593012;font:800 2.7cqw Arial;overflow:visible;opacity:1}
.play.match-stage .reroll-frame{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:0;filter:drop-shadow(0 2px 2px #58270066)}
.play.match-stage .reroll-button>span{position:relative;z-index:1}
.play.match-stage .reroll-button:disabled>span{opacity:.65}
.play.match-stage .reroll-price img{width:3.8cqw;height:3.8cqw}
.play.match-stage .reroll-time{padding-left:1.5cqw}

/* Reference reroll pill: smooth oval gold rim, cream center, no side ornaments. */
.play.match-stage .reroll-button{font-weight:800;font-size:3cqw;gap:3%;padding:0 5%;}
.play.match-stage .reroll-button>span{text-shadow:0 1px 0 #fff9ea}
.play.match-stage .reroll-label{text-transform:none}
.play.match-stage .reroll-time{display:flex;align-items:center;gap:1.5cqw;border-left:1px solid #bb761f;padding-left:2cqw}
.play.match-stage .reroll-hourglass{width:3cqw;height:4cqw;flex:none}
.play.match-stage .reroll-price img{width:4.2cqw;height:4.2cqw}
.play.match-stage .reroll-button:disabled>span{opacity:.8}

.play.match-stage .reroll-button,.play.match-stage .reroll-button:disabled{left:26%;width:48%;padding:0 3.5%;font-size:2.8cqw}

.play.match-stage .reroll-button,.play.match-stage .reroll-button:disabled{left:27.5%;width:45%}

/* Player portraits follow their board corners and leave the central die clear. */
.play.match-stage .match-avatars{display:block;pointer-events:none}
.play.match-stage .match-avatar span{display:none}
.play.match-stage .match-avatar .match-avatar-art{width:76%;height:auto;aspect-ratio:1;flex:none}

.play.match-stage .match-avatar span{display:grid;place-items:center;height:22%;font-size:3cqw;line-height:1.1}
.play.match-stage .match-avatar .match-avatar-art{width:70%}
.play.match-stage .roll-prompt:empty{display:none}

/* Fill the portrait circle by cropping the artwork's baked-in outer cream margin. */
.play.match-stage .match-avatar-art>img{object-fit:cover;transform:scale(1.15);transform-origin:50% 50%;max-width:none}

/* A soft steady halo identifies the local player's die without altering its size. */
.play.match-stage .die-touch.my-turn{filter:drop-shadow(0 0 5px #fff6bddd) drop-shadow(0 0 11px #ffd448bb) drop-shadow(0 4px 5px #63311066)}
.play.match-stage .die-touch:not(.my-turn){filter:drop-shadow(0 4px 5px #63311066)}

/* Quiet status copy and consistent turn highlighting for portrait and nameplate. */
.play.match-stage .roll-prompt{top:73%;font-weight:800}
.play.match-stage .match-avatar.current span{border-color:#fff19b;box-shadow:0 0 0 1px #ffd65b,0 0 9px #ffe377cc,0 0 15px #ffd54d88,inset 0 0 5px #fff8cf}
.play.match-stage .reroll-button:disabled{opacity:.42;filter:saturate(.65)}
.play.match-stage .reroll-button:not(:disabled){opacity:1;filter:none}
.play.match-stage .reroll-button:disabled>span{opacity:1}

/* Polished gold controls with the game's emerald asset and live balance. */
.play.match-stage .pause{width:9%;height:auto;aspect-ratio:1;top:1.3%;border:2px solid #a55a0e;outline:1px solid #ffda59;background:linear-gradient(145deg,#fffef3,#ffefbe);box-shadow:inset 0 0 0 2px #fff8d9,inset 0 0 0 4px #efb936,0 3px 5px #63300c77;color:#643312;display:grid;place-items:center;padding:0}
.play.match-stage .pause-bars{display:flex;justify-content:center;align-items:center;gap:1cqw;width:100%;height:100%;filter:drop-shadow(0 1px 0 #fff8d9)}
.play.match-stage .pause-bars i{display:block;width:1.1cqw;height:3.7cqw;border-radius:.35cqw;background:linear-gradient(#966022,#57300e);box-shadow:inset 1px 0 #d5a459}
.play.match-stage .match-gems{right:3%;top:1.5%;height:4%;min-width:21%;gap:1.5cqw;padding:0 2.5% 0 1.4%;border:2px solid #c58a21;outline:1px solid #ffe598;border-radius:999px;background:linear-gradient(#fffef1,#ffebbf);box-shadow:inset 0 0 0 1px #fff9dc,0 3px 5px #63300c77;font:800 3.6cqw Arial;color:#593015}
.play.match-stage .match-gems>img{width:5.7cqw;height:5.7cqw;object-fit:contain;filter:brightness(1.13) drop-shadow(0 0 3px #8deba266)}

.play.match-stage .pause{width:9cqw;height:9cqw;min-width:0;min-height:0;aspect-ratio:1;box-sizing:border-box;border-radius:50%;line-height:1;padding:0}

/* Short colored footprints follow the ground path and fade independently. */
.play.match-stage .piece-trail{animation:piece-path-fade 1s ease-out forwards;filter:blur(1.4px);transform-box:fill-box;transform-origin:center;pointer-events:none}
@keyframes piece-path-fade{0%{opacity:.5;transform:scale(1)}45%{opacity:.28}100%{opacity:0;transform:scale(.55)}}
@media(prefers-reduced-motion:reduce){.play.match-stage .piece-trail{display:none}}

/* One soft circular pulse at each reached square, shrinking into its center. */
.play.match-stage .piece-trail{animation:piece-square-pulse 1s ease-out forwards;filter:blur(5px);transform-box:fill-box;transform-origin:center}
@keyframes piece-square-pulse{0%{opacity:.65;transform:scale(1)}35%{opacity:.45;transform:scale(.72)}100%{opacity:0;transform:scale(0)}}
@media(prefers-reduced-motion:reduce){.play.match-stage .piece-trail{display:none}}

.play.match-stage .match-gems{padding-right:.7%;gap:1cqw}
.play.match-stage .match-gems-plus{pointer-events:auto;display:grid;place-items:center;width:6.5cqw;height:6.5cqw;min-height:0;min-width:0;flex:none;padding:0;margin-left:.6cqw;border:1px solid #a66a10;border-radius:50%;background:linear-gradient(#22d574,#00823b);box-shadow:inset 0 0 0 1px #ffe491,0 1px 2px #63330c66;color:#fff9da;font:800 5.2cqw/1 Arial;text-shadow:0 1px #185b29}
.game-gem-shop{box-sizing:border-box;width:min(92vw,460px);max-height:85svh;overflow:auto;margin:auto;padding:14px 10px 18px;border:3px solid #e8b23f;border-radius:26px;background:linear-gradient(130deg,#fffcef,#f6e3bc);box-shadow:inset 0 0 0 2px #fff7cf,0 10px 45px #24110799;color:#593015;font-family:Arial;container-type:inline-size}
.game-gem-shop::backdrop{background:#241107a6;backdrop-filter:blur(3px)}
.game-gem-shop .gem-shop-head{display:flex;justify-content:space-between;align-items:center;padding:0 8px}
.game-gem-shop .gem-shop-head h2{margin:0;font-size:24px}
.game-gem-shop [data-close]{width:34px;height:34px;min-height:0;padding:0;border:2px solid #d69d2b;border-radius:50%;background:#fff7df;color:#6b3816;font:26px/1 Arial;display:grid;place-items:center}
.game-gem-shop .gem-shop-balance{display:flex;justify-content:center;align-items:center;gap:8px;margin:10px auto 16px;font-size:20px}
.game-gem-shop .gem-shop-balance img{width:30px;height:30px;object-fit:contain}
.game-gem-shop .shop-packs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0;margin-top:12px}
.game-gem-shop .shop-card>.shop-resource{position:absolute;inset:0;width:100%;height:100%}
.game-gem-shop .pack-card button.shop-action{min-height:0;display:flex;color:#522b13;font-family:Arial;cursor:pointer}
.game-gem-shop .pack-card small{text-align:center;font-family:Arial}
.game-gem-shop .gem-shop-notice{text-align:center;font:12px/1.4 Arial;margin:14px 4px 0}

.game-gem-shop.separated-shop{height:auto;overflow-x:hidden;overflow-y:auto}
.game-gem-shop.separated-shop::before{display:none}

.game-gem-shop.separated-shop{height:max-content;top:50%;bottom:auto;left:0;right:0;margin:0 auto;transform:translateY(-50%)}
.game-gem-shop .pack-card button.shop-action{color:#fff8dc;text-shadow:0 1px 1px #315b25}

/* Approved emerald and gold shop artwork; every amount is live HTML text. */
.game-gem-shop.separated-shop{width:min(94vw,480px,calc(85svh * 1380 / 1140));height:auto;aspect-ratio:1380/1140;padding:0;border:0;border-radius:0;overflow:visible;background:none;box-shadow:none;container-type:inline-size}
.game-gem-shop .gem-shop-frame{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;filter:drop-shadow(0 6px 8px #29110877)}
.game-gem-shop .gem-shop-head{position:absolute;inset:0;display:block;padding:0;pointer-events:none}
.game-gem-shop .gem-shop-head h2{position:absolute;left:23%;top:8.5%;width:54%;height:13%;display:grid;place-items:center;margin:0;color:#fff0a6;font:900 9cqw/1 Georgia,serif;letter-spacing:.25cqw;text-shadow:0 2px 0 #9f5b09,0 3px 3px #203a0b}
.game-gem-shop [data-close]{position:absolute;left:88.4%;top:13%;width:7.5%;height:9%;min-width:0;min-height:0;margin:0;padding:0;border:0;background:none;box-shadow:none;color:#6c350f;font:800 7cqw/1 Arial;pointer-events:auto}
.game-gem-shop .gem-shop-balance{position:absolute;left:25%;top:23.5%;width:50%;height:9.5%;margin:0;gap:1.3cqw;color:#623212;font:800 3.4cqw/1 Arial}
.game-gem-shop .gem-shop-balance img{width:5.5cqw;height:5.5cqw;filter:brightness(1.15)}
.game-gem-shop .gem-shop-subtitle{position:absolute;left:29%;top:36.7%;width:42%;height:6%;margin:0;display:grid;place-items:center;font:900 4.4cqw/1.1 Arial;color:#5b250a;text-align:center}
.game-gem-shop .pack-title{display:none}
.game-gem-shop .shop-packs{position:absolute;left:7%;top:44.5%;width:86%;margin:0;gap:0;}
.game-gem-shop .pack-quantity{position:absolute;left:15%;top:59%;width:70%;height:17%;display:grid;place-items:center;background:linear-gradient(#fff6dc,#fff1cb);color:#522109;font:900 4.5cqw/1 Arial;pointer-events:none;z-index:1}
.game-gem-shop .pack-card .pack-image-hit{z-index:2}
.game-gem-shop .pack-card button.shop-action{z-index:3;font-size:3.2cqw}
.game-gem-shop .gem-shop-notice{position:absolute;left:12%;top:88.4%;width:76%;margin:0;text-align:center;font:400 2.6cqw/1.25 Arial;color:#6c4b27}

.game-gem-shop .gem-shop-head h2{top:6.8%}
.game-gem-shop .pack-card,.game-gem-shop .pack-card:nth-child(2){aspect-ratio:1.06}
.game-gem-shop [data-close]{color:#c82320;display:grid;place-items:center;line-height:1}
.game-gem-shop [data-close]>svg{display:block;width:54%;height:54%;pointer-events:none}

/* Keep the reroll artwork on one paint layer in iOS Safari. */
.play.match-stage .reroll-button,.play.match-stage .reroll-button:disabled{filter:none;opacity:1;overflow:hidden;border-radius:999px;-webkit-tap-highlight-color:transparent}
.play.match-stage .reroll-frame{filter:none}
.play.match-stage .reroll-button:disabled .reroll-frame{opacity:.55}
.play.match-stage .reroll-button:disabled>span{opacity:.65}
.play.match-stage .quick-guide{background:none;box-shadow:none;filter:none;pointer-events:none}

.play.match-stage .reroll-button{contain:paint;isolation:isolate}
.play.match-stage button,.play.match-stage .pawn{-webkit-tap-highlight-color:transparent}

/* Explicit state avoids stale :has animation state in Safari after replacing a face. */
.play.match-stage .die-touch:not(.is-rolling){animation:none;transform:none}
.play.match-stage .die-touch>.dice-face>svg{overflow:visible}

/* Turn ownership drives the glow, independently of animation/network locks. */
.play.match-stage .die-touch,.play.match-stage .die-touch.my-turn,.play.match-stage .die-touch:not(.my-turn){filter:none;box-shadow:none;border:0;isolation:isolate;-webkit-tap-highlight-color:transparent}
.play.match-stage .die-touch::before{content:none}
.play.match-stage .die-touch.my-turn::before{content:'';position:absolute;inset:-12%;z-index:-1;border:0;border-radius:32%;background:radial-gradient(ellipse at center,#fff3a65c 12%,#ffd44555 40%,#ffd44520 58%,transparent 73%);pointer-events:none}
.play.match-stage .die-touch::after{display:none!important;content:none!important}
.play.match-stage .die-touch:focus:not(:focus-visible){outline:none}
.play.match-stage .die-touch>.dice-face,.play.match-stage .die-touch>.dice-face>svg{border:0;background:none;box-shadow:none;filter:none;display:block}
