/* poker-dice - felt, rail, rank bar, banner, bigger touch targets. Look and goals layer only. */
.pd-table{background:
 radial-gradient(circle at 20% 15%,rgba(255,255,255,.07) 0 1px,transparent 1.5px) 0 0/14px 14px,
 radial-gradient(120% 90% at 50% 20%,#1f7a4a 0%,#14532d 70%,#0b2f1a 100%);
 border:5px solid #6b3e0a;border-radius:20px;
 box-shadow:inset 0 0 0 2px #0b2f1a,inset 0 4px 22px rgba(0,0,0,.5),0 0 0 2px #3b2106,0 8px 18px rgba(66,32,6,.28)}
.pd-table #status{font-weight:700;text-shadow:0 1px 0 rgba(0,0,0,.45);min-height:1.5em}
.pd-die{box-shadow:0 5px 0 #a8a29e,0 8px 10px rgba(0,0,0,.4),inset 0 2px 0 #fff}
.pd-die i.on{box-shadow:inset 0 -2px 2px rgba(255,255,255,.18)}
.pd-hud .btn{min-height:44px;min-width:44px}
.pd-hud{align-items:center}
.pd-controls .btn{min-height:52px;font-weight:800}
.pd-meta{--p:0%;position:relative;margin:.35rem 0 .1rem;padding:.4rem .6rem .55rem;border-radius:10px;background:#fef3c7;color:#713f12;font-size:.74rem;font-weight:700;text-align:center;line-height:1.3}
.pd-meta:empty{display:none}
.pd-meta::after{content:"";position:absolute;left:.6rem;right:.6rem;bottom:.22rem;height:4px;border-radius:2px;background:linear-gradient(90deg,#854D0E var(--p),rgba(133,77,14,.18) var(--p))}
.pd-daily-on .pd-table{border-color:#7c2d12}
.pd-daily-on #pd-daily{background:#facc15;color:#422006}
.pd-pop2{top:22%;font-size:1.05rem;color:#fff;letter-spacing:.02em;animation-duration:1.1s}
.pd-pop2.strong{color:#facc15;font-size:1.25rem}
.pd-over .pd-over-rank{color:#fde68a;font-weight:700;max-width:22rem}
.pd-over .pd-over-rank:empty{display:none}
@media (max-width:420px){.pd-hud{justify-content:center}.pd-hud .btn{flex:1 1 auto}}
@media (prefers-reduced-motion:reduce){.pd-pop2{animation:none!important;opacity:0}}

/* Graphics: table light pool and die gloss (static, no per-frame work) */
.pd-table::before{content:"";z-index:-1;position:absolute;inset:0;pointer-events:none;border-radius:inherit;background:radial-gradient(70% 55% at 50% 38%,rgba(255,255,230,.14),transparent 70%),radial-gradient(120% 100% at 50% 50%,transparent 55%,rgba(0,0,0,.38) 100%)}
.pd-table{isolation:isolate}
.pd-die::after{content:"";z-index:1;position:absolute;left:8%;top:6%;width:84%;height:42%;border-radius:10px 10px 50% 50%/10px 10px 40% 40%;background:linear-gradient(rgba(255,255,255,.55),rgba(255,255,255,0));pointer-events:none}
.pd-die[aria-pressed="true"]::after{background:linear-gradient(rgba(254,240,138,.6),rgba(254,240,138,0))}
.pd-controls .btn{box-shadow:0 3px 0 rgba(0,0,0,.28)}
.pd-controls .btn:active:not(:disabled){transform:translateY(2px);box-shadow:0 1px 0 rgba(0,0,0,.28)}

/* Full screen (native and immersive): hide copy and extras, keep the table, controls and HUD in view */
html.pip-immersive .pd-how,html.pip-native .pd-how,
html.pip-immersive .pd-craft,html.pip-native .pd-craft,
html.pip-immersive .pd-chart,html.pip-native .pd-chart,
html.pip-immersive .pd-log,html.pip-native .pd-log,
html.pip-immersive .pd-streak,html.pip-native .pd-streak,
html.pip-immersive #pd-meta,html.pip-native #pd-meta,
html.pip-immersive .similar-games,html.pip-native .similar-games{display:none!important}
html.pip-immersive .pd-die,html.pip-native .pd-die{--s:clamp(52px,16vw,66px)}
html.pip-immersive .pd-hud .btn,html.pip-native .pd-hud .btn{min-height:44px;min-width:44px}
/* Landscape: table gets wider, dice and controls sit side by side */
@media (orientation:landscape) and (max-height:520px){
 html.pip-immersive .game-wrap,html.pip-native .game-wrap{max-width:820px;padding:.4rem .8rem}
 html.pip-immersive .pd-table,html.pip-native .pd-table{display:grid;grid-template-columns:1fr auto;column-gap:1rem;align-items:center;padding:.5rem 1rem}
 html.pip-immersive #status,html.pip-native #status{grid-column:1/-1}
 html.pip-immersive .pd-preview,html.pip-native .pd-preview{grid-column:1/-1}
 html.pip-immersive .pd-dice,html.pip-native .pd-dice{padding:.6rem 0 .2rem}
 html.pip-immersive .pd-controls,html.pip-native .pd-controls{flex-direction:column}
}

/* qa: depth panels hidden in full screen */
html.pip-immersive #pd-depth-gameplay,html.pip-immersive #pd-depth-replay,html.pip-native #pd-depth-gameplay,html.pip-native #pd-depth-replay{display:none !important}
