/* Diamonds: independent SVG facets and recording-led table geometry. */
.diamonds-body .diamonds-game-panel { display:block; height:auto; min-height:0; padding:0; overflow:hidden; border:0; background:#0f212e; }
.diamonds-body .diamond-stage-surface { position:relative; container-type:inline-size; height:630px; background:#0f212e; overflow:hidden; border-radius:5px; }
.diamonds-body .diamonds-recent-results,.diamonds-body .diamonds-result-grid { display:none; }
.diamonds-body .diamonds-table { position:absolute; left:16px; right:16px; top:16px; height:248px; display:grid; grid-template-columns:40% minmax(0,1fr); gap:12px; z-index:2; }
.diamonds-body .paytable-rows { display:grid; grid-template-rows:repeat(7,32px); gap:4px; min-width:0; }
.diamonds-body .paytable-row { display:flex; align-items:center; justify-content:space-between; gap:8px; width:100%; min-width:0; padding:3px 12px; border:0; border-radius:2px; background:#1a2c38; color:#b1c3d2; font-family:inherit; cursor:pointer; }
.diamonds-body .paytable-row.active,.diamonds-body .paytable-row:hover,.diamonds-body .paytable-row:focus-visible { background:#2f4553; }
.diamonds-body .paytable-row b { font-size:13px; white-space:nowrap; font-variant-numeric:tabular-nums; }
.diamonds-body .pattern-gems { display:flex; align-items:center; gap:14px; min-width:0; }
.diamonds-body .pattern-gem { width:18px; height:20px; color:#0b202b; flex:0 1 18px; overflow:visible; }
.diamonds-body .pattern-gem.primary { color:#435865; }
.diamonds-body .pattern-gem.secondary { color:#435865; }
.diamonds-body .pattern-gem path { fill:currentColor; stroke:currentColor; stroke-width:1.4; }
.diamonds-body .pattern-gem.secondary path { fill:#0b202b; }
.diamonds-body .pattern-gem.matched path { fill:currentColor; }
.diamonds-body .pattern-details { position:relative; align-self:start; top:clamp(0px,calc(var(--pattern-row,6) * 36px - 32px),153px); display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; padding:14px 12px 12px; background:#213743; border-radius:8px; color:#b1c3d2; min-width:0; }
.diamonds-body .pattern-details::before { content:""; position:absolute; left:-8px; top:calc(50% - 7px); border-right:8px solid #213743; border-top:7px solid transparent; border-bottom:7px solid transparent; }
.diamonds-body .pattern-details > div { min-width:0; }
.diamonds-body .pattern-label { display:block; margin-bottom:8px; font-size:13px; font-weight:600; }
.diamonds-body .pattern-value { display:flex; align-items:center; gap:6px; padding:10px; min-height:42px; min-width:0; border:1px solid #3f5767; border-radius:6px; background:#21323e; box-shadow:0 2px 4px #0002; }
.diamonds-body .pattern-value output { flex:1; min-width:0; overflow-wrap:anywhere; font-size:14px; font-weight:600; font-variant-numeric:tabular-nums; }
.diamonds-body .pattern-value small { color:#9bb2c3; font-size:11px; }
.diamonds-body .gem-slots { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:16px; position:absolute; left:32px; right:32px; bottom:30px; height:210px; }
.diamonds-body .gem-slot { position:relative; min-width:0; height:100%; --gem-colour:#435865; --base-colour:#243e4a; --base-edge:#354a56; }
.diamonds-body .gem-base { position:absolute; bottom:0; left:0; width:100%; height:62px; background:var(--base-colour); border-radius:2px; box-shadow:inset 0 -10px var(--base-edge),0 2px 2px #0003; }
.diamonds-body .gem-shadow { position:absolute; left:50%; bottom:22px; width:62%; height:20px; border-radius:50%; transform:translateX(-50%); background:#061a2566; }
.diamonds-body .gem-slot.match .gem-base { --base-colour:var(--match-base); --base-edge:var(--match-edge); }
.diamonds-body .gem-body { position:absolute; left:50%; bottom:38px; width:82%; max-width:126px; aspect-ratio:12 / 13; transform:translateX(-50%); transform-origin:50% 100%; }
.diamonds-body .gem-core { width:100%; height:100%; display:block; filter:drop-shadow(0 3px 1px #0001); }
.diamonds-body .gem-glint { position:absolute; width:13px; height:13px; left:22%; top:36%; background:#fff; clip-path:polygon(50% 0,61% 38%,100% 50%,61% 61%,50% 100%,39% 61%,0 50%,39% 38%); opacity:0; pointer-events:none; }
.diamonds-body .gem-slot.match .gem-glint { animation:diamond-glint 2.7s ease-in-out infinite; animation-delay:calc(var(--slot-index) * -.31s); }
.diamonds-body .gem-slot.revealed .gem-body { animation:diamond-hover 3s ease-in-out infinite; animation-delay:calc(var(--slot-index) * -.3s); }
.diamonds-body .gem-slot.recording-empty .gem-body,.diamonds-body .gem-slot.recording-empty .gem-shadow { visibility:hidden; }
.diamonds-body .gem-slot.green { --gem-colour:#29f514; --match-base:#009b00; --match-edge:#14e700; }
.diamonds-body .gem-slot.purple { --gem-colour:#a056f5; --match-base:#4606b4; --match-edge:#7424ef; }
.diamonds-body .gem-slot.yellow { --gem-colour:#ffd93e; --match-base:#9e7c00; --match-edge:#f3ca00; }
.diamonds-body .gem-slot.red { --gem-colour:#f52465; --match-base:#af003d; --match-edge:#f60050; }
.diamonds-body .gem-slot.cyan { --gem-colour:#3cd5db; --match-base:#008c91; --match-edge:#19c2c8; }
.diamonds-body .gem-slot.pink { --gem-colour:#ee48b2; --match-base:#ad007b; --match-edge:#f035bd; }
.diamonds-body .gem-slot.blue { --gem-colour:#438bff; --match-base:#1853bd; --match-edge:#3e85f0; }
.diamonds-body .crash-bet-panel { gap:12px; }
.diamonds-body .crash-bet-panel .segmented { margin-bottom:0; }
.diamonds-body .bet-stepper { display:grid; grid-template-columns:minmax(0,1fr) 43px 43px; gap:0; }
.diamonds-body .bet-stepper input { order:0; }
.diamonds-body .bet-stepper button { order:1; }
.diamonds-body .bet-action[disabled] { opacity:.6; }
.diamonds-body button:focus-visible { outline:2px solid #8bc4e5; outline-offset:2px; }
@keyframes diamond-glint { 0%,12%,36%,100% { opacity:0; transform:scale(.4); } 22%,26% { opacity:.85; transform:scale(1); } }
@keyframes diamond-hover { 0%,100% { translate:0 0; } 50% { translate:0 -3px; } }
@media(max-width:1100px) {
 .diamonds-body .diamond-stage-surface { height:580px; }
 .diamonds-body .diamonds-table { grid-template-columns:44% minmax(0,1fr); }
 .diamonds-body .pattern-gems { gap:8px; }
 .diamonds-body .pattern-details { gap:10px; }
 .diamonds-body .gem-slots { left:20px; right:20px; gap:12px; }
}
@media(max-width:760px) {
 .diamonds-body .diamond-stage-surface { height:530px; }
 .diamonds-body .diamonds-table { grid-template-columns:43% minmax(0,1fr); }
 .diamonds-body .gem-base { height:48px; box-shadow:inset 0 -7px var(--base-edge); }
 .diamonds-body .gem-body { bottom:29px; }
 .diamonds-body .gem-shadow { bottom:17px; height:15px; }
}
@media(max-width:600px) {
 .diamonds-body .diamond-stage-surface { height:440px; }
 .diamonds-body .diamonds-table { left:12px; right:12px; top:12px; grid-template-columns:53% minmax(0,1fr); gap:10px; }
 .diamonds-body .paytable-row { padding:3px 7px; gap:5px; }
 .diamonds-body .paytable-row b { font-size:11px; }
 .diamonds-body .pattern-gems { gap:4px; }
 .diamonds-body .pattern-gem { width:13px; height:16px; }
 .diamonds-body .pattern-details { grid-template-columns:minmax(0,1fr); gap:10px; padding:10px 8px; top:clamp(0px,calc(var(--pattern-row,6) * 36px - 54px),94px); }
 .diamonds-body .pattern-label { font-size:11px; margin-bottom:4px; }
 .diamonds-body .pattern-value { min-height:34px; padding:6px; gap:3px; }
 .diamonds-body .pattern-value output { font-size:12px; }
 .diamonds-body .pattern-value small { font-size:9px; }
 .diamonds-body .gem-slots { left:12px; right:12px; bottom:22px; gap:7px; height:140px; }
 .diamonds-body .gem-base { height:33px; box-shadow:inset 0 -5px var(--base-edge); }
 .diamonds-body .gem-body { width:96%; bottom:18px; }
 .diamonds-body .gem-shadow { height:9px; bottom:12px; width:70%; }
 .diamonds-body .gem-glint { width:7px; height:7px; }
}
@media(prefers-reduced-motion:reduce) { .diamonds-body * { animation:none !important; transition:none !important; } }
.diamonds-body .diamond-stage-surface.no-motion * { animation:none !important; }
