.dg-dice-environment {
    --dg-dice-silver: #dbe2e6;
    --dg-dice-soft: rgba(231, 237, 239, 0.72);
    --dg-dice-border: rgba(224, 235, 240, 0.13);
    position: relative;
    isolation: isolate;
    min-height: calc(100vh - 80px);
    overflow: hidden;
    color: #f4f4f1;
    background:
        radial-gradient(circle at 50% 16%, rgba(154, 178, 191, 0.12), transparent 27%),
        radial-gradient(circle at 12% 64%, rgba(85, 104, 116, 0.07), transparent 24%),
        linear-gradient(180deg, #080a0c 0%, #050607 56%, #030405 100%);
    font-family: Georgia, "Times New Roman", serif;
}

.dg-dice-environment::before,
.dg-dice-environment::after {
    content: "";
    position: absolute;
    z-index: -1;
    left: 50%;
    border: 1px solid rgba(198, 218, 228, 0.07);
    border-radius: 50%;
    transform: translateX(-50%);
    pointer-events: none;
}

.dg-dice-environment::before {
    top: clamp(80px, 12vw, 145px);
    width: min(76vw, 920px);
    aspect-ratio: 1;
}

.dg-dice-environment::after {
    top: clamp(145px, 20vw, 238px);
    width: min(56vw, 680px);
    aspect-ratio: 1;
    border-color: rgba(198, 218, 228, 0.045);
}

.dg-dice-ambient-canvas {
    position: absolute;
    z-index: -2;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.dg-dice-shell {
    position: relative;
    z-index: 2;
    width: min(100% - 40px, 1040px);
    margin: 0 auto;
    padding: clamp(54px, 7vw, 92px) 0 90px;
}

.dg-dice-heading {
    max-width: 800px;
    margin: 0 auto 34px;
    text-align: center;
}

.dg-dice-kicker {
    margin: 0 0 16px;
    color: rgba(222, 231, 234, 0.68);
    font: 600 11px/1.2 Georgia, serif;
    letter-spacing: 0.23em;
    text-transform: uppercase;
}

.dg-dice-heading h1 {
    margin: 0;
    color: #f5f5f2;
    font-size: clamp(40px, 5.4vw, 66px);
    font-weight: 400;
    line-height: 0.98;
    letter-spacing: -0.035em;
    text-wrap: balance;
}

.dg-dice-heading p {
    max-width: 690px;
    margin: 20px auto 0;
    color: rgba(236, 237, 234, 0.7);
    font-size: clamp(15px, 1.45vw, 17px);
    line-height: 1.75;
    text-wrap: balance;
}

.dg-dice-notice {
    max-width: 850px;
    margin: 0 auto 24px;
    padding: 18px 20px;
    border: 1px solid var(--dg-dice-border);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(29, 34, 38, 0.84), rgba(11, 13, 15, 0.82));
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
    color: rgba(239, 241, 240, 0.8);
    font-size: 15px;
    line-height: 1.7;
}

.dg-dice-notice strong { color: #fff; }

.dg-dice-card {
    position: relative;
    max-width: 880px;
    margin: 0 auto;
    padding: clamp(24px, 4vw, 38px);
    overflow: hidden;
    border: 1px solid rgba(225, 235, 239, 0.12);
    border-radius: 28px;
    background:
        linear-gradient(145deg, rgba(32, 37, 41, 0.78), rgba(9, 11, 13, 0.92) 64%),
        rgba(10, 12, 14, 0.9);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.055),
        0 32px 90px rgba(0, 0, 0, 0.44);
    backdrop-filter: blur(16px);
}

.dg-dice-card::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(110deg, transparent 18%, rgba(230, 241, 245, 0.035) 46%, transparent 66%),
        repeating-linear-gradient(90deg, transparent 0 43px, rgba(255, 255, 255, 0.012) 44px 45px);
}

.dg-dice-controls {
    position: relative;
    z-index: 2;
    display: grid;
    gap: 18px;
}

.dg-dice-label {
    display: block;
    margin: 0 0 10px;
    color: rgba(246, 246, 243, 0.9);
    font-size: 15px;
    letter-spacing: 0.025em;
}

.dg-dice-question {
    box-sizing: border-box;
    width: 100%;
    min-height: 126px;
    padding: 18px;
    resize: vertical;
    border: 1px solid rgba(226, 236, 240, 0.12);
    border-radius: 18px;
    outline: none;
    background: rgba(2, 3, 4, 0.62);
    box-shadow: inset 0 10px 30px rgba(0, 0, 0, 0.25);
    color: #f3f4f2;
    font: 16px/1.7 Georgia, serif;
    transition: border-color 180ms ease, box-shadow 180ms ease;
}

.dg-dice-question:focus {
    border-color: rgba(224, 237, 242, 0.28);
    box-shadow: inset 0 10px 30px rgba(0, 0, 0, 0.25), 0 0 0 3px rgba(202, 224, 234, 0.045);
}

.dg-dice-question::placeholder { color: rgba(230, 233, 232, 0.38); }

.dg-dice-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.dg-dice-fixed-count {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 18px;
    border: 1px solid rgba(225, 235, 239, 0.12);
    border-radius: 999px;
    background: rgba(225, 235, 239, 0.035);
    color: rgba(242, 244, 242, 0.86);
    font: 600 12px/1 Georgia, serif;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.dg-dice-note {
    color: rgba(232, 234, 232, 0.56);
    font-size: 13px;
    line-height: 1.65;
    text-align: right;
}

.dg-dice-actions {
    position: relative;
    z-index: 2;
    margin: 25px 0 4px;
    text-align: center;
}

.dg-dice-stage {
    position: relative;
    z-index: 2;
    margin-top: 28px;
    text-align: center;
}

.dg-dice-board {
    display: flex;
    min-height: 184px;
    align-items: center;
    justify-content: center;
    gap: clamp(18px, 3.2vw, 38px);
    perspective: 1300px;
    perspective-origin: 50% 28%;
}

.dg-die-scene {
    position: relative;
    width: 118px;
    height: 142px;
    perspective: 1100px;
    filter: drop-shadow(0 20px 20px rgba(0, 0, 0, 0.42));
}

.dg-die-shadow {
    position: absolute;
    bottom: 3px;
    left: 50%;
    width: 88px;
    height: 20px;
    transform: translateX(-50%);
    border-radius: 50%;
    background: radial-gradient(ellipse, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.2) 55%, transparent 75%);
    filter: blur(5px);
    opacity: 0.82;
}

.dg-die-cube {
    position: absolute;
    top: 18px;
    left: 50%;
    width: 88px;
    height: 88px;
    transform: translateX(-50%) rotateX(-18deg) rotateY(28deg);
    transform-style: preserve-3d;
    transition: transform 620ms cubic-bezier(0.16, 0.84, 0.22, 1);
}

.dg-die-face {
    position: absolute;
    width: 88px;
    height: 88px;
    overflow: hidden;
    border: 2px solid rgba(216, 228, 234, 0.33);
    border-radius: 18px;
    background:
        radial-gradient(circle at 26% 18%, rgba(238, 246, 249, 0.16), transparent 32%),
        repeating-linear-gradient(90deg, transparent 0 17px, rgba(218, 231, 237, 0.035) 18px 19px),
        repeating-linear-gradient(0deg, transparent 0 17px, rgba(218, 231, 237, 0.026) 18px 19px),
        linear-gradient(145deg, #343b3f 0%, #12171a 42%, #050708 100%);
    box-shadow:
        inset 0 0 0 5px rgba(2, 3, 4, 0.58),
        inset 0 0 0 7px rgba(219, 232, 238, 0.08),
        inset 9px 10px 24px rgba(233, 243, 247, 0.065),
        inset -14px -16px 28px rgba(0, 0, 0, 0.72),
        0 0 26px rgba(180, 207, 219, 0.055);
    backface-visibility: hidden;
}

.dg-die-face::before {
    content: "";
    position: absolute;
    inset: 8px;
    border: 1px solid rgba(224, 236, 241, 0.11);
    border-radius: 12px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.07), transparent 24%),
        linear-gradient(315deg, rgba(0, 0, 0, 0.35), transparent 34%);
    pointer-events: none;
}

.dg-die-face::after {
    content: "";
    position: absolute;
    top: 9px;
    left: 13px;
    width: 44%;
    height: 13%;
    border-radius: 50%;
    background: rgba(240, 248, 250, 0.12);
    filter: blur(5px);
    transform: rotate(-13deg);
    pointer-events: none;
}

.dg-face-front  { transform: rotateY(0deg) translateZ(44px); }
.dg-face-back   { transform: rotateY(180deg) translateZ(44px); }
.dg-face-right  { transform: rotateY(90deg) translateZ(44px); }
.dg-face-left   { transform: rotateY(-90deg) translateZ(44px); }
.dg-face-top    { transform: rotateX(90deg) translateZ(44px); }
.dg-face-bottom { transform: rotateX(-90deg) translateZ(44px); }

.dg-face-grid {
    position: absolute;
    z-index: 3;
    inset: 0;
    display: grid;
    box-sizing: border-box;
    grid-template: repeat(3, 1fr) / repeat(3, 1fr);
    padding: 14px;
}

.dg-pip {
    width: 12px;
    height: 12px;
    align-self: center;
    justify-self: center;
    opacity: 0;
    transform: scale(0.8);
    border: 1px solid rgba(236, 245, 248, 0.3);
    border-radius: 50%;
    background: radial-gradient(circle at 45% 42%, #f5f8f8 0 16%, #b9c7cc 22%, #455157 55%, #080b0c 78%);
    box-shadow:
        inset 1px 2px 4px rgba(0, 0, 0, 0.85),
        0 0 9px rgba(224, 240, 246, 0.22);
}

.dg-pip.show { opacity: 1; transform: scale(1); }

.dg-pip.dg-centre-pip {
    width: 11px;
    height: 11px;
    border-radius: 2px;
    transform: rotate(45deg) scale(0.8);
}

.dg-pip.dg-centre-pip.show { transform: rotate(45deg) scale(1); }

.dg-die-scene.is-rolling { animation: dg-v36-die-flight 940ms ease-in-out infinite; }
.dg-die-scene.is-rolling .dg-die-cube { animation: dg-v36-cube-spin 940ms linear infinite; }
.dg-die-scene.is-rolling .dg-die-shadow { animation: dg-v36-shadow-flight 940ms ease-in-out infinite; }
.dg-die-scene.landed { animation: dg-v36-die-land 420ms ease both; }

.dg-die-scene.is-dissolving .dg-die-cube {
    opacity: 0;
    filter: blur(7px) brightness(1.45);
    transition: opacity 1700ms cubic-bezier(0.34, 0.05, 0.7, 1), filter 1700ms ease;
}

.dg-die-scene.is-dissolving .dg-die-shadow {
    opacity: 0;
    transform: translateX(-50%) scale(0.45);
    transition: opacity 1500ms ease, transform 1700ms ease;
}

.dg-dice-release-canvas {
    position: absolute;
    z-index: 8;
    inset: 0 0 22px;
    width: 100%;
    height: calc(100% - 22px);
    pointer-events: none;
}

.dg-dice-status {
    min-height: 22px;
    margin-top: 2px;
    color: rgba(222, 231, 234, 0.62);
    font: 600 11px/1.5 Georgia, serif;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

/* Loading page */
.dg-dice-loading .dg-dice-shell { width: min(100% - 30px, 980px); padding-top: clamp(34px, 5vw, 62px); }
.dg-dice-loading .dg-dice-heading { margin-bottom: 8px; }
.dg-dice-loading .dg-dice-heading h1 { font-size: clamp(36px, 4.8vw, 58px); }

.dg-oracle-die-stage {
    position: relative;
    width: clamp(250px, 32vw, 370px);
    aspect-ratio: 1;
    margin: 6px auto 0;
    perspective: 1200px;
}

.dg-oracle-die-stage::before,
.dg-oracle-die-stage::after {
    content: "";
    position: absolute;
    inset: 9%;
    border: 1px solid rgba(204, 224, 234, 0.1);
    border-radius: 50%;
    animation: dg-v36-orbit 16s linear infinite;
}

.dg-oracle-die-stage::after {
    inset: 19%;
    border-style: dashed;
    border-color: rgba(204, 224, 234, 0.075);
    animation-direction: reverse;
    animation-duration: 22s;
}

.dg-oracle-die-image,
.dg-oracle-die-particles {
    position: absolute;
    z-index: 2;
    inset: 8%;
    width: 84%;
    height: 84%;
}

.dg-oracle-die-image {
    object-fit: contain;
    filter: drop-shadow(0 24px 32px rgba(0, 0, 0, 0.55)) drop-shadow(0 0 18px rgba(191, 218, 231, 0.11));
    transform: translate3d(0, 0, 0) rotateZ(var(--dg-loader-tilt, 0deg)) scale(var(--dg-loader-breath, 1));
    opacity: var(--dg-loader-metal-opacity, 1);
    transition: opacity 100ms linear;
}

.dg-oracle-die-particles { z-index: 3; pointer-events: none; }

.dg-oracle-die-shadow {
    position: absolute;
    z-index: 1;
    bottom: 10%;
    left: 50%;
    width: 46%;
    height: 9%;
    transform: translateX(-50%) scale(var(--dg-loader-shadow-scale, 1));
    border-radius: 50%;
    background: radial-gradient(ellipse, rgba(0, 0, 0, 0.62), transparent 70%);
    filter: blur(8px);
    opacity: var(--dg-loader-metal-opacity, 1);
}

.dg-dice-reading-state {
    position: relative;
    max-width: 720px;
    margin: -4px auto 0;
    padding: 17px 20px;
    border: 1px solid rgba(224, 235, 240, 0.1);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(27, 31, 34, 0.76), rgba(7, 9, 10, 0.8));
    text-align: center;
}

.dg-dice-status-line {
    margin: 0 0 7px;
    color: #f2f3f1;
    font-size: 18px;
    transition: opacity 180ms ease;
}

.dg-dice-status-subline {
    color: rgba(230, 233, 232, 0.57);
    font-size: 13px;
    line-height: 1.6;
    transition: opacity 180ms ease;
}

.dg-dice-progress {
    max-width: 610px;
    margin: 15px auto 0;
}

.dg-dice-progress-track {
    height: 5px;
    overflow: hidden;
    border: 1px solid rgba(219, 232, 237, 0.08);
    border-radius: 999px;
    background: rgba(221, 232, 236, 0.055);
}

.dg-dice-progress-fill {
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #46535a, #eef3f4 52%, #53636b);
    box-shadow: 0 0 14px rgba(218, 237, 244, 0.25);
}

.dg-dice-progress-text {
    margin-top: 8px;
    color: rgba(226, 232, 232, 0.55);
    font: 600 10px/1.4 Georgia, serif;
    letter-spacing: 0.16em;
    text-align: center;
    text-transform: uppercase;
}

.dg-dice-bottom-symbols {
    display: flex;
    max-width: 680px;
    justify-content: center;
    gap: 10px;
    margin: 16px auto 0;
    flex-wrap: wrap;
}

.dg-dice-bottom-symbol {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 1px solid rgba(222, 234, 239, 0.095);
    border-radius: 50%;
    background: rgba(223, 234, 239, 0.025);
    color: rgba(233, 239, 240, 0.66);
    font-size: 12px;
    transition: opacity 220ms ease, transform 220ms ease;
}

.dg-dice-fallback { margin-top: 14px; opacity: 0; text-align: center; transition: opacity 300ms ease; }
.dg-dice-fallback.is-visible { opacity: 1; }

@keyframes dg-v36-orbit { to { transform: rotate(360deg); } }
@keyframes dg-v36-cube-spin {
    0% { transform: translateX(-50%) rotateX(0deg) rotateY(0deg) rotateZ(0deg); }
    25% { transform: translateX(-50%) rotateX(190deg) rotateY(135deg) rotateZ(82deg); }
    50% { transform: translateX(-50%) rotateX(330deg) rotateY(286deg) rotateZ(174deg); }
    75% { transform: translateX(-50%) rotateX(485deg) rotateY(430deg) rotateZ(266deg); }
    100% { transform: translateX(-50%) rotateX(650deg) rotateY(570deg) rotateZ(360deg); }
}
@keyframes dg-v36-die-flight {
    0%, 100% { transform: translateY(0) rotateZ(0); }
    23% { transform: translateY(-16px) rotateZ(-1.5deg); }
    50% { transform: translateY(4px) rotateZ(1deg); }
    74% { transform: translateY(-8px) rotateZ(-0.5deg); }
}
@keyframes dg-v36-shadow-flight {
    0%, 100% { transform: translateX(-50%) scale(1); opacity: 0.82; }
    23% { transform: translateX(-50%) scale(0.72); opacity: 0.32; }
    50% { transform: translateX(-50%) scale(1.08); opacity: 0.86; }
    74% { transform: translateX(-50%) scale(0.86); opacity: 0.48; }
}
@keyframes dg-v36-die-land {
    0% { transform: translateY(-13px) rotateZ(-2deg); }
    58% { transform: translateY(5px) rotateZ(1deg); }
    100% { transform: translateY(0) rotateZ(0); }
}

@media (max-width: 720px) {
    .dg-dice-shell { width: min(100% - 24px, 1040px); padding-top: 42px; }
    .dg-dice-heading { margin-bottom: 26px; }
    .dg-dice-heading h1 { font-size: clamp(38px, 12vw, 52px); }
    .dg-dice-card { padding: 20px 14px 24px; border-radius: 22px; }
    .dg-dice-meta-row { align-items: flex-start; flex-direction: column; }
    .dg-dice-note { text-align: left; }
    .dg-dice-board { min-height: 150px; gap: 2px; }
    .dg-die-scene { width: 84px; height: 116px; }
    .dg-die-cube, .dg-die-face { width: 72px; height: 72px; }
    .dg-face-front  { transform: rotateY(0deg) translateZ(36px); }
    .dg-face-back   { transform: rotateY(180deg) translateZ(36px); }
    .dg-face-right  { transform: rotateY(90deg) translateZ(36px); }
    .dg-face-left   { transform: rotateY(-90deg) translateZ(36px); }
    .dg-face-top    { transform: rotateX(90deg) translateZ(36px); }
    .dg-face-bottom { transform: rotateX(-90deg) translateZ(36px); }
    .dg-face-grid { padding: 11px; }
    .dg-pip { width: 10px; height: 10px; }
    .dg-pip.dg-centre-pip { width: 9px; height: 9px; }
    .dg-dice-loading .dg-dice-heading p { max-width: 94%; }
    .dg-oracle-die-stage { width: min(80vw, 315px); }
    .dg-dice-reading-state { padding: 15px 14px; }
    .dg-dice-bottom-symbol { width: 34px; height: 34px; }
}

/* Version 3.6 result experience */
.dg-dice-result {
    min-height: calc(100vh - 80px);
}

.dg-dice-result .dg-dice-shell {
    width: min(100% - 32px, 940px);
    padding-top: clamp(58px, 8vw, 104px);
}

.dg-result-panel {
    position: relative;
    max-width: 820px;
    margin: 0 auto;
    padding: clamp(28px, 5vw, 48px);
    overflow: hidden;
    border: 1px solid rgba(225, 235, 239, 0.12);
    border-radius: 28px;
    background: linear-gradient(145deg, rgba(31, 36, 40, 0.78), rgba(7, 9, 11, 0.94) 66%);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), 0 34px 96px rgba(0,0,0,0.46);
    text-align: center;
    backdrop-filter: blur(16px);
}

.dg-result-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(112deg, transparent 20%, rgba(231,241,245,0.04) 48%, transparent 70%);
}

.dg-result-kicker,
.dg-result-title,
.dg-result-subtitle,
.dg-result-values,
.dg-result-answer,
.dg-result-message,
.dg-result-actions { position: relative; z-index: 2; }

.dg-result-kicker {
    margin-bottom: 13px;
    color: rgba(222,231,234,0.66);
    font: 600 10px/1.2 Georgia, serif;
    letter-spacing: 0.23em;
    text-transform: uppercase;
}

.dg-result-title {
    margin: 0;
    color: #f5f5f2;
    font-size: clamp(36px, 5.2vw, 58px);
    font-weight: 400;
    line-height: 1;
    letter-spacing: -0.035em;
}

.dg-result-subtitle {
    margin: 12px 0 24px;
    color: rgba(233,235,233,0.62);
    font-size: 14px;
    letter-spacing: 0.06em;
}

.dg-result-values {
    display: flex;
    min-height: 122px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 8px auto 20px;
}

.dg-result-die-card {
    width: 104px;
    opacity: 0;
    transform: translateY(12px) scale(0.94);
    animation: dg-v36-result-reveal 620ms ease forwards;
}

.dg-result-die-card:nth-child(2) { animation-delay: 150ms; }
.dg-result-die-card:nth-child(3) { animation-delay: 300ms; }

.dg-result-die-label,
.dg-result-die-number {
    color: rgba(231,236,237,0.62);
    font: 600 10px/1.2 Georgia, serif;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.dg-result-die-number {
    position: relative;
    z-index: 2;
    display: inline-grid;
    place-items: center;
    min-width: 34px;
    height: 31px;
    margin-top: 12px;
    padding: 0 10px;
    border: 1px solid rgba(226, 233, 235, 0.22);
    border-radius: 999px;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.09), rgba(255,255,255,0.025)),
        rgba(7, 10, 12, 0.82);
    box-shadow:
        0 8px 20px rgba(0,0,0,0.34),
        inset 0 1px 0 rgba(255,255,255,0.10),
        0 0 18px rgba(205, 222, 226, 0.07);
    color: #ffffff;
    font-size: 15px;
    line-height: 1;
    letter-spacing: 0.08em;
    text-shadow: 0 0 10px rgba(233, 244, 246, 0.32);
}

.dg-die-result-scene {
    width: 104px;
    height: 106px;
    transform: scale(0.68);
    transform-origin: center;
    margin: -10px auto -5px;
}

.dg-result-fallback-die {
    display: grid;
    width: 58px;
    height: 58px;
    place-items: center;
    margin: 14px auto 10px;
    border: 2px solid rgba(216,228,234,0.34);
    border-radius: 14px;
    background: linear-gradient(145deg, #343b3f, #080b0d 72%);
    box-shadow: inset 0 0 0 5px rgba(2,3,4,0.5), 0 14px 24px rgba(0,0,0,0.38);
    color: #eef3f4;
    font-size: 20px;
}

.dg-result-answer {
    margin: 4px 0 16px;
    color: #e8ecec;
    font-size: clamp(21px, 3vw, 29px);
    line-height: 1;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.dg-result-message {
    max-width: 680px;
    margin: 0 auto;
    color: #f1f2ef;
    font-size: clamp(20px, 2.5vw, 27px);
    line-height: 1.55;
}

.dg-result-error { color: #d8c1c1; font-size: 17px; line-height: 1.7; }

.dg-result-answer,
.dg-result-message,
.dg-result-actions { opacity: 0; transform: translateY(8px); }

.dg-result-answer.is-visible { animation: dg-v36-soft-reveal 520ms ease 420ms forwards; }
.dg-result-message.is-visible { animation: dg-v36-soft-reveal 620ms ease 620ms forwards; }

.dg-result-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 27px;
}

.dg-result-actions.is-visible { animation: dg-v36-soft-reveal 620ms ease 820ms forwards; }

@keyframes dg-v36-result-reveal {
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes dg-v36-soft-reveal {
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 720px) {
    .dg-result-panel { padding: 28px 16px; border-radius: 22px; }
    .dg-result-values { gap: 0; }
    .dg-result-die-card { width: 88px; }
    .dg-die-result-scene { width: 88px; transform: scale(0.62); }
    .dg-result-die-number {
        min-width: 32px;
        height: 29px;
        margin-top: 4px;
        padding: 0 9px;
        font-size: 14px;
    }
    .dg-result-message { font-size: 19px; }
    .dg-result-actions { flex-direction: column; }
    .dg-result-actions .dg-btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    .dg-oracle-die-stage::before,
    .dg-oracle-die-stage::after,
    .dg-die-scene,
    .dg-die-cube,
    .dg-die-shadow {
        animation: none !important;
        transition: none !important;
    }

    .dg-result-die-card,
    .dg-result-answer,
    .dg-result-message,
    .dg-result-actions {
        animation: none !important;
        transition: none !important;
        opacity: 1;
        transform: none;
    }
}

/* DiviniGen 4.2 — homepage-matched metallic dice and scroll choreography */
.dg-dice-reading-v42 {
    min-height: 135svh;
    --dg-dice-stage-shift-v42: 0px;
    --dg-dice-stage-scale-v42: 1;
    --dg-dice-board-opacity-v42: 1;
    --dg-dice-particle-opacity-v42: .34;
    --dg-dice-heading-shift-v42: 0px;
    --dg-dice-heading-opacity-v42: 1;
    --dg-dice-card-shift-v42: 0px;
}

.dg-dice-reading-v42 .dg-dice-heading {
    transform: translate3d(0, var(--dg-dice-heading-shift-v42), 0);
    opacity: var(--dg-dice-heading-opacity-v42);
    will-change: transform, opacity;
}

.dg-dice-reading-v42 .dg-dice-card {
    transform: translate3d(0, var(--dg-dice-card-shift-v42), 0);
    will-change: transform;
}

.dg-dice-reading-v42 .dg-dice-stage {
    transform:
        translate3d(0, var(--dg-dice-stage-shift-v42), 0)
        scale(var(--dg-dice-stage-scale-v42));
    transform-origin: 50% 45%;
    will-change: transform;
}

.dg-dice-reading-v42 .dg-dice-board {
    opacity: var(--dg-dice-board-opacity-v42);
    will-change: opacity;
}

.dg-dice-reading-v42 .dg-die-face {
    background:
        radial-gradient(circle at 26% 18%, rgba(238,246,249,.13), transparent 32%),
        linear-gradient(145deg, rgba(45,52,56,.68), rgba(5,7,8,.88)),
        url('../images/divinigen-oracle-sphere-metallic.png') center / 185% auto;
    background-blend-mode: screen, multiply, normal;
    filter: brightness(.84) contrast(1.12);
}

.dg-dice-scroll-particles-v42 {
    position: absolute;
    z-index: 7;
    inset: 0 0 22px;
    width: 100%;
    height: calc(100% - 22px);
    opacity: var(--dg-dice-particle-opacity-v42);
    mix-blend-mode: screen;
    filter: drop-shadow(0 0 20px rgba(201,221,232,.14));
    pointer-events: none;
    will-change: opacity;
}

@media (max-width: 720px) {
    .dg-dice-reading-v42 { min-height: 125svh; }
}

@media (prefers-reduced-motion: reduce) {
    .dg-dice-reading-v42 {
        --dg-dice-stage-shift-v42: 0px !important;
        --dg-dice-stage-scale-v42: 1 !important;
        --dg-dice-board-opacity-v42: 1 !important;
        --dg-dice-particle-opacity-v42: .34 !important;
        --dg-dice-heading-shift-v42: 0px !important;
        --dg-dice-heading-opacity-v42: 1 !important;
        --dg-dice-card-shift-v42: 0px !important;
    }
}
