/* ============================================================
   心途秘境 · 仙侠动态页样式
   配色：仙青 #0a1a2f → #123；鎏金 #e6b34d / #f3c96b；灵光青 #6fe3d0
   ============================================================ */

:root {
    --realm-bg-deep: #0a1a2f;
    --realm-bg: #0e2138;
    --realm-bg-soft: #123048;
    --realm-panel: rgba(12, 30, 48, 0.78);
    --realm-panel-solid: #0d2236;
    --realm-border: rgba(111, 227, 208, 0.16);
    --realm-border-soft: rgba(255, 255, 255, 0.08);
    --realm-gold: #e6b34d;
    --realm-gold-soft: #f3c96b;
    --realm-cyan: #6fe3d0;
    --realm-cyan-soft: rgba(111, 227, 208, 0.6);
    --realm-text: #eaf6f4;
    --realm-text-dim: rgba(226, 240, 238, 0.72);
    --realm-text-mute: rgba(226, 240, 238, 0.5);
    --realm-radius-lg: 20px;
    --realm-radius-md: 14px;
    --realm-radius-sm: 10px;
    --realm-shadow: 0 18px 48px rgba(2, 8, 16, 0.55);
    --realm-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

.realm-body {
    min-height: 100vh;
    background: var(--realm-bg-deep);
    color: var(--realm-text);
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

.realm-body a { color: inherit; text-decoration: none; }

.realm-body ::selection { background: rgba(111, 227, 208, 0.32); color: #fff; }

.realm-body :focus-visible {
    outline: 2px solid rgba(230, 179, 77, 0.85);
    outline-offset: 3px;
}

/* ==================== 动态背景 ==================== */
.realm-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}
.realm-sky {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 120% 70% at 50% -10%, rgba(111, 227, 208, 0.16), transparent 60%),
        radial-gradient(ellipse 90% 60% at 80% 110%, rgba(230, 179, 77, 0.10), transparent 62%),
        linear-gradient(180deg, #081524 0%, #0a1a2f 38%, #0f2a3f 72%, #123a4a 100%);
}
/* 巨大月亮 / 日轮光晕 */
.realm-moon {
    position: absolute;
    right: 9%;
    top: 7%;
    width: clamp(120px, 16vw, 220px);
    height: clamp(120px, 16vw, 220px);
    border-radius: 50%;
    background: radial-gradient(circle at 38% 34%, #fdf6e0 0%, #f6e7bd 40%, #e8cf94 64%, rgba(230, 191, 120, 0.35) 78%, transparent 84%);
    box-shadow: 0 0 60px rgba(246, 231, 189, 0.32), 0 0 140px rgba(230, 191, 120, 0.2), 0 0 260px rgba(111, 227, 208, 0.12);
    opacity: 0.85;
    animation: realmMoonGlow 9s ease-in-out infinite;
    will-change: opacity;
}
.realm-moon::after {
    content: '';
    position: absolute;
    inset: -28%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 245, 214, 0.16), transparent 62%);
    animation: realmMoonHalo 7s ease-in-out infinite;
    will-change: transform, opacity;
}
@keyframes realmMoonGlow {
    0%, 100% { opacity: 0.78; }
    50% { opacity: 0.95; }
}
@keyframes realmMoonHalo {
    0%, 100% { transform: scale(0.94); opacity: 0.5; }
    50% { transform: scale(1.06); opacity: 0.9; }
}
/* 三层云海（远/中/近，前层更亮更快） */
.realm-cloud {
    position: absolute;
    left: -35%;
    width: 170%;
    pointer-events: none;
    background-repeat: repeat-x;
    will-change: transform;
}
.realm-cloud--far {
    top: 11%;
    height: 30vh;
    background:
        radial-gradient(ellipse 24% 42% at 18% 62%, rgba(170, 230, 228, 0.16), transparent 70%),
        radial-gradient(ellipse 20% 36% at 44% 72%, rgba(140, 215, 218, 0.12), transparent 72%),
        radial-gradient(ellipse 26% 44% at 72% 60%, rgba(170, 230, 228, 0.14), transparent 72%),
        radial-gradient(ellipse 18% 32% at 92% 74%, rgba(140, 215, 218, 0.1), transparent 72%);
    filter: blur(14px);
    opacity: 0.7;
    animation: realmCloudFar 120s linear infinite;
}
.realm-cloud--mid {
    top: 30%;
    height: 34vh;
    background:
        radial-gradient(ellipse 26% 46% at 26% 58%, rgba(190, 242, 238, 0.2), transparent 70%),
        radial-gradient(ellipse 22% 40% at 56% 70%, rgba(160, 228, 226, 0.16), transparent 72%),
        radial-gradient(ellipse 28% 46% at 84% 58%, rgba(200, 244, 240, 0.18), transparent 72%);
    filter: blur(10px);
    opacity: 0.85;
    animation: realmCloudMid 86s linear infinite;
}
.realm-cloud--near {
    top: 50%;
    height: 38vh;
    background:
        radial-gradient(ellipse 30% 50% at 20% 62%, rgba(220, 255, 250, 0.22), transparent 70%),
        radial-gradient(ellipse 26% 44% at 50% 74%, rgba(255, 236, 190, 0.12), transparent 72%),
        radial-gradient(ellipse 30% 48% at 80% 62%, rgba(210, 250, 246, 0.2), transparent 72%);
    filter: blur(7px);
    opacity: 0.95;
    animation: realmCloudNear 58s linear infinite;
}
@keyframes realmCloudFar {
    from { transform: translate3d(-4%, 0, 0); }
    to { transform: translate3d(4%, 0, 0); }
}
@keyframes realmCloudMid {
    from { transform: translate3d(3%, -1%, 0); }
    to { transform: translate3d(-3%, 1%, 0); }
}
@keyframes realmCloudNear {
    from { transform: translate3d(-5%, 0.5%, 0); }
    to { transform: translate3d(5%, -0.5%, 0); }
}
/* 仙山剪影（远近两层 SVG） */
.realm-silhouette {
    position: absolute;
    left: -2%;
    width: 104%;
    pointer-events: none;
    will-change: transform;
}
.realm-silhouette--far {
    bottom: 12%;
    height: 30vh;
    fill: rgba(16, 42, 62, 0.92);
    opacity: 0.55;
    filter: blur(1px);
    animation: realmMountainDrift 180s ease-in-out infinite alternate;
}
.realm-silhouette--mid {
    bottom: 2%;
    height: 26vh;
    fill: rgba(9, 24, 38, 0.98);
    opacity: 0.92;
    filter: drop-shadow(0 -6px 18px rgba(4, 12, 20, 0.85));
    animation: realmMountainDrift 140s ease-in-out infinite alternate-reverse;
}
@keyframes realmMountainDrift {
    from { transform: translate3d(-1%, 0, 0); }
    to { transform: translate3d(1%, 0, 0); }
}
/* 古建筑剪影（宝塔 / 楼阁 / 小亭长桥 / 宫灯） */
.realm-architecture {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 40vh;
    fill: #071624;
    stroke: rgba(230, 179, 77, 0.26);
    stroke-width: 1.1;
    stroke-linejoin: round;
    opacity: 0.94;
    filter: drop-shadow(0 -4px 16px rgba(4, 12, 20, 0.85));
}
.realm-pagoda circle,
.realm-pavilion circle {
    fill: rgba(255, 231, 178, 0.7);
    stroke: rgba(255, 231, 178, 0.4);
}
.realm-lanterns circle {
    fill: #ffd98a;
    stroke: rgba(255, 215, 120, 0.55);
    filter: drop-shadow(0 0 6px rgba(255, 215, 120, 0.85));
    animation: realmLanternGlow 4.6s ease-in-out infinite;
}
.realm-lanterns circle:nth-child(2) { animation-delay: 0.7s; }
.realm-lanterns circle:nth-child(3) { animation-delay: 1.5s; }
.realm-lanterns circle:nth-child(4) { animation-delay: 2.2s; }
.realm-lanterns circle:nth-child(5) { animation-delay: 3s; }
@keyframes realmLanternGlow {
    0%, 100% { opacity: 0.55; }
    50% { opacity: 1; }
}
/* Canvas 灵气粒子层 */
.realm-canvas {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    mix-blend-mode: screen;
    opacity: 0.9;
}
/* 暗角 / 星尘 / 噪点 */
.realm-vignette {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 82% 72% at 50% 46%, transparent 44%, rgba(2, 8, 14, 0.5) 80%, rgba(1, 4, 8, 0.86) 100%);
}
.realm-stardust {
    position: absolute;
    inset: 0;
    opacity: 0.55;
    background-image:
        radial-gradient(1px 1px at 12% 18%, rgba(255, 255, 255, 0.8), transparent 60%),
        radial-gradient(1.5px 1.5px at 28% 42%, rgba(255, 231, 178, 0.75), transparent 60%),
        radial-gradient(1px 1px at 44% 12%, rgba(180, 255, 246, 0.8), transparent 60%),
        radial-gradient(1.5px 1.5px at 61% 34%, rgba(255, 255, 255, 0.65), transparent 60%),
        radial-gradient(1px 1px at 74% 16%, rgba(255, 231, 178, 0.7), transparent 60%),
        radial-gradient(1.5px 1.5px at 88% 38%, rgba(180, 255, 246, 0.6), transparent 60%),
        radial-gradient(1px 1px at 34% 66%, rgba(255, 255, 255, 0.55), transparent 60%),
        radial-gradient(1px 1px at 68% 58%, rgba(255, 231, 178, 0.5), transparent 60%);
    animation: realmStardustTwinkle 16s ease-in-out infinite;
    will-change: opacity;
}
@keyframes realmStardustTwinkle {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.7; }
}
.realm-grain {
    position: absolute;
    inset: 0;
    opacity: 0.05;
    background-image: radial-gradient(rgba(255, 255, 255, 0.09) 0.5px, transparent 0.5px);
    background-size: 3px 3px;
    mix-blend-mode: overlay;
}
.realm-array {
    position: absolute;
    left: 50%;
    bottom: 10%;
    width: min(78vw, 720px);
    height: min(78vw, 720px);
    transform: translateX(-50%);
    opacity: 0.5;
}
.array-ring {
    position: absolute;
    left: 50%;
    top: 50%;
    border-radius: 50%;
    border: 1px solid rgba(111, 227, 208, 0.22);
    transform: translate(-50%, -50%);
}
.array-ring--outer {
    width: 100%;
    height: 100%;
    border-style: dashed;
    animation: realmArraySpin 80s linear infinite;
}
.array-ring--mid {
    width: 68%;
    height: 68%;
    border-color: rgba(230, 179, 77, 0.22);
    animation: realmArraySpin 52s linear infinite reverse;
}
.array-ring--inner {
    width: 38%;
    height: 38%;
    border-color: rgba(111, 227, 208, 0.3);
    animation: realmArraySpin 34s linear infinite;
}
.array-core {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 12%;
    height: 12%;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(111, 227, 208, 0.5), rgba(111, 227, 208, 0) 70%);
    filter: blur(6px);
    animation: realmArrayBreathe 6s ease-in-out infinite;
}
@keyframes realmArraySpin { to { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes realmArrayBreathe {
    0%, 100% { opacity: 0.45; transform: translate(-50%, -50%) scale(0.9); }
    50% { opacity: 0.95; transform: translate(-50%, -50%) scale(1.15); }
}
.realm-glow {
    position: absolute;
    left: 50%;
    bottom: -20%;
    width: 120vw;
    height: 60vh;
    transform: translateX(-50%);
    background: radial-gradient(ellipse at center, rgba(111, 227, 208, 0.14), transparent 65%);
}

/* ==================== 顶栏 ==================== */
.realm-topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    padding: max(10px, env(safe-area-inset-top, 0px)) 18px 10px;
    background: linear-gradient(180deg, rgba(8, 21, 36, 0.92), rgba(8, 21, 36, 0.62) 70%, transparent);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}
.realm-topbar-inner {
    max-width: 1140px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.realm-topbar-left,
.realm-topbar-right { display: flex; align-items: center; gap: 10px; }
.realm-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--realm-border-soft);
    background: rgba(255, 255, 255, 0.05);
    color: var(--realm-text-dim);
    font-size: 14px;
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.realm-icon-btn:hover {
    color: var(--realm-gold-soft);
    border-color: rgba(230, 179, 77, 0.45);
    background: rgba(230, 179, 77, 0.08);
}
.realm-icon-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.realm-icon-btn.is-loading i { animation: realmSpin 1s linear infinite; }
@keyframes realmSpin { to { transform: rotate(360deg); } }

.realm-brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.realm-brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    color: #08131f;
    font-size: 17px;
    background: linear-gradient(135deg, #a9f3e6, var(--realm-gold-soft));
    box-shadow: 0 6px 18px rgba(111, 227, 208, 0.25);
}
.realm-brand-text { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.realm-brand-text strong {
    font-size: 16px;
    font-weight: 900;
    letter-spacing: 2px;
    color: #fff;
    text-shadow: 0 2px 12px rgba(111, 227, 208, 0.35);
}
.realm-brand-text em {
    font-style: normal;
    font-size: 10.5px;
    letter-spacing: 4px;
    color: var(--realm-gold-soft);
    opacity: 0.9;
}
.realm-brand-compact { display: none; }

.realm-token-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(230, 179, 77, 0.28);
    background: rgba(230, 179, 77, 0.08);
    color: var(--realm-gold-soft);
    font-size: 12px;
    white-space: nowrap;
}
.realm-token-pill i { font-size: 12px; }
.realm-token-value { font-size: 14px; font-weight: 800; font-variant-numeric: tabular-nums; }

.realm-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 600;
    white-space: nowrap;
    border: 1px solid var(--realm-border-soft);
    color: var(--realm-text-dim);
    background: rgba(255, 255, 255, 0.04);
}
.realm-status-badge.is-open {
    color: #9df5e8;
    border-color: rgba(111, 227, 208, 0.4);
    background: rgba(111, 227, 208, 0.1);
    box-shadow: 0 0 18px rgba(111, 227, 208, 0.18);
}
.realm-status-badge.is-soon {
    color: var(--realm-gold-soft);
    border-color: rgba(230, 179, 77, 0.35);
    background: rgba(230, 179, 77, 0.08);
}
.realm-status-badge.is-closed {
    color: var(--realm-text-mute);
    border-color: rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
}

/* ==================== 主内容 ==================== */
.realm-main {
    position: relative;
    z-index: 1;
    max-width: 1140px;
    margin: 0 auto;
    padding: 26px 18px 10px;
}
.realm-notice {
    margin: 0 0 18px;
    padding: 11px 16px;
    border-radius: var(--realm-radius-md);
    border: 1px solid rgba(230, 179, 77, 0.26);
    background: rgba(230, 179, 77, 0.07);
    color: var(--realm-gold-soft);
    font-size: 12.5px;
    line-height: 1.6;
}
.realm-notice[hidden] { display: none !important; }

.realm-section {
    position: relative;
    margin: 34px 0;
    padding: 22px;
    border-radius: var(--realm-radius-lg);
    border: 1px solid var(--realm-border);
    background: linear-gradient(165deg, rgba(13, 35, 54, 0.82), rgba(9, 24, 39, 0.9));
    box-shadow: var(--realm-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.realm-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
}
.realm-section-heading { min-width: 0; }
.realm-eyebrow {
    display: block;
    margin-bottom: 5px;
    font-size: 11px;
    letter-spacing: 3px;
    color: var(--realm-cyan);
    opacity: 0.9;
}
.realm-eyebrow i { margin-right: 5px; }
.realm-section-heading h2 {
    margin: 0;
    font-size: clamp(19px, 2.4vw, 24px);
    font-weight: 800;
    letter-spacing: 1px;
}
.realm-section-heading h2::after {
    content: '';
    display: inline-block;
    width: 28px;
    height: 3px;
    margin-left: 10px;
    border-radius: 3px;
    vertical-align: middle;
    background: linear-gradient(90deg, var(--realm-gold), rgba(230, 179, 77, 0));
}
.realm-section-heading p {
    margin: 6px 0 0;
    font-size: 12px;
    color: var(--realm-text-mute);
}

/* ==================== 抽奖区 ==================== */
.realm-draw {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: 26px;
    align-items: center;
    overflow: hidden;
}
.realm-draw::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 50% at 24% 42%, rgba(111, 227, 208, 0.14), transparent 62%),
        radial-gradient(ellipse 50% 40% at 82% 18%, rgba(230, 179, 77, 0.08), transparent 60%);
    pointer-events: none;
}
.realm-stage {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 330px;
    isolation: isolate;
}
.stage-array {
    position: relative;
    width: min(62vw, 330px);
    height: min(62vw, 330px);
    display: flex;
    align-items: center;
    justify-content: center;
}
.stage-ring {
    position: absolute;
    left: 50%;
    top: 50%;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}
.stage-ring--outer {
    width: 100%;
    height: 100%;
    border: 1px dashed rgba(180, 255, 246, 0.28);
    animation: realmArraySpin 46s linear infinite;
    box-shadow: 0 0 42px rgba(111, 227, 208, 0.12) inset;
}
.stage-ring--mid {
    width: 72%;
    height: 72%;
    border: 1px solid rgba(230, 179, 77, 0.35);
    animation: realmArraySpin 32s linear infinite reverse;
}
.stage-ring--inner {
    width: 46%;
    height: 46%;
    border: 1px solid rgba(111, 227, 208, 0.5);
    box-shadow: 0 0 30px rgba(111, 227, 208, 0.22), inset 0 0 24px rgba(111, 227, 208, 0.16);
    animation: realmArraySpin 22s linear infinite;
}
.stage-runes {
    position: absolute;
    inset: 0;
    animation: realmArraySpin 60s linear infinite reverse;
}
.stage-rune {
    position: absolute;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    margin: -13px 0 0 -13px;
    border-radius: 50%;
    font-style: normal;
    font-size: 12px;
    font-weight: 700;
    color: var(--realm-cyan);
    background: rgba(9, 28, 44, 0.9);
    border: 1px solid rgba(111, 227, 208, 0.3);
    text-shadow: 0 0 10px rgba(111, 227, 208, 0.6);
}
.stage-rune:nth-child(1) { left: 50%; top: 0; }
.stage-rune:nth-child(2) { left: 85.3%; top: 14.7%; }
.stage-rune:nth-child(3) { left: 100%; top: 50%; }
.stage-rune:nth-child(4) { left: 85.3%; top: 85.3%; }
.stage-rune:nth-child(5) { left: 50%; top: 100%; }
.stage-rune:nth-child(6) { left: 14.7%; top: 85.3%; }
.stage-rune:nth-child(7) { left: 0; top: 50%; }
.stage-rune:nth-child(8) { left: 14.7%; top: 14.7%; }
.stage-core {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 96px;
    height: 96px;
    border-radius: 50%;
    font-size: 40px;
    color: #08131f;
    background: radial-gradient(circle at 35% 30%, #d9fff9, #8ff0e2 45%, var(--realm-gold) 100%);
    box-shadow: 0 0 44px rgba(111, 227, 208, 0.5), 0 0 90px rgba(230, 179, 77, 0.25);
    animation: realmCoreBreathe 5s ease-in-out infinite;
}
@keyframes realmCoreBreathe {
    0%, 100% { transform: scale(1); box-shadow: 0 0 40px rgba(111, 227, 208, 0.42), 0 0 80px rgba(230, 179, 77, 0.2); }
    50% { transform: scale(1.06); box-shadow: 0 0 60px rgba(111, 227, 208, 0.62), 0 0 120px rgba(230, 179, 77, 0.32); }
}
.stage-pillar {
    position: absolute;
    left: 50%;
    bottom: 8%;
    width: 16px;
    height: 0;
    transform: translateX(-50%);
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(180, 255, 246, 0.95), rgba(230, 179, 77, 0.9));
    filter: blur(1px);
    opacity: 0;
    pointer-events: none;
    z-index: 2;
}
.stage-burst {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 10px;
    height: 10px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.95), rgba(111, 227, 208, 0.6) 35%, transparent 70%);
    opacity: 0;
    pointer-events: none;
    z-index: 3;
}
.realm-stage.is-drawing .stage-pillar { animation: realmPillar 1.15s var(--realm-ease) forwards; }
.realm-stage.is-drawing .stage-burst { animation: realmBurst 1.15s var(--realm-ease) forwards; }
.realm-stage.is-drawing .stage-core { animation: realmCoreSpin 1.15s var(--realm-ease) forwards; }
.realm-stage.is-drawing .stage-ring--outer { animation: realmArraySpin 3.2s linear infinite; }
@keyframes realmPillar {
    0% { height: 0; opacity: 0; }
    35% { height: 62%; opacity: 0.95; }
    100% { height: 80%; opacity: 0; }
}
@keyframes realmBurst {
    0% { opacity: 0; transform: translate(-50%, -50%) scale(0.3); }
    45% { opacity: 1; transform: translate(-50%, -50%) scale(14); }
    100% { opacity: 0; transform: translate(-50%, -50%) scale(26); }
}
@keyframes realmCoreSpin {
    0% { transform: scale(1) rotate(0deg); }
    60% { transform: scale(1.16) rotate(200deg); }
    100% { transform: scale(1) rotate(360deg); }
}

.realm-draw-panel { position: relative; z-index: 1; }
.realm-title {
    margin: 0 0 8px;
    font-size: clamp(23px, 3.4vw, 32px);
    font-weight: 900;
    letter-spacing: 2px;
    background: linear-gradient(120deg, #eafffb 10%, var(--realm-gold-soft) 55%, var(--realm-cyan) 95%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 6px 30px rgba(111, 227, 208, 0.18);
}
.realm-subtitle { margin: 0 0 16px; font-size: 13px; color: var(--realm-text-mute); }
.realm-countdown {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 16px;
    padding: 12px 16px;
    border-radius: 14px;
    border: 1px solid rgba(230, 179, 77, 0.32);
    background: linear-gradient(145deg, rgba(230, 179, 77, 0.12), rgba(9, 26, 42, 0.72));
    box-shadow: 0 8px 24px rgba(2, 8, 16, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}
.realm-countdown[hidden] { display: none !important; }
.countdown-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    letter-spacing: 0.5px;
    color: var(--realm-gold-soft);
    white-space: nowrap;
}
.countdown-label i { font-size: 11px; }
.countdown-time {
    font-size: 21px;
    font-weight: 800;
    letter-spacing: 2px;
    color: #ffe7b2;
    font-variant-numeric: tabular-nums;
    text-shadow: 0 0 12px rgba(255, 231, 178, 0.55), 0 0 28px rgba(230, 179, 77, 0.35);
    animation: realmCountdownPulse 2s ease-in-out infinite;
    will-change: opacity, text-shadow;
}
@keyframes realmCountdownPulse {
    0%, 100% { opacity: 0.92; text-shadow: 0 0 10px rgba(255, 231, 178, 0.45), 0 0 22px rgba(230, 179, 77, 0.3); }
    50% { opacity: 1; text-shadow: 0 0 16px rgba(255, 231, 178, 0.75), 0 0 34px rgba(230, 179, 77, 0.45); }
}
.realm-top-countdown {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(230, 179, 77, 0.35);
    background: rgba(230, 179, 77, 0.08);
    color: #ffe7b2;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    animation: realmCountdownPulse 2s ease-in-out infinite;
}
.realm-top-countdown i { font-size: 10px; color: var(--realm-gold-soft); }
.realm-top-countdown[hidden] { display: none !important; }
.realm-draw-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 22px;
    margin-bottom: 8px;
    font-size: 12.5px;
    color: var(--realm-text-dim);
}
.realm-meta-item strong { color: var(--realm-gold-soft); font-size: 15px; font-variant-numeric: tabular-nums; }
.realm-meta-item em { font-style: normal; color: var(--realm-text-mute); font-size: 11.5px; }
.realm-pity-bar {
    height: 6px;
    margin: 0 0 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.07);
    overflow: hidden;
}
.realm-pity-bar span {
    display: block;
    height: 100%;
    width: 0;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--realm-cyan), var(--realm-gold));
    box-shadow: 0 0 12px rgba(111, 227, 208, 0.5);
    transition: width 0.6s var(--realm-ease);
}
/* 参与门槛（累计消耗 Token 解锁抽奖） */
.realm-threshold {
    margin: 0 0 16px;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(111, 227, 208, 0.22);
    background: rgba(111, 227, 208, 0.05);
}
.realm-threshold[hidden] { display: none !important; }
.realm-threshold.is-met {
    border-color: rgba(111, 227, 208, 0.42);
    background: rgba(111, 227, 208, 0.09);
}
.realm-threshold-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 12px;
}
.realm-threshold-title {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-weight: 700;
    color: var(--realm-cyan);
}
.realm-threshold-title i { font-size: 11px; }
.realm-threshold-values { color: var(--realm-text-dim); font-variant-numeric: tabular-nums; }
.realm-threshold-values b { color: var(--realm-gold-soft); font-weight: 800; }
.realm-threshold-bar {
    height: 6px;
    margin-bottom: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
}
.realm-threshold-bar span {
    display: block;
    height: 100%;
    width: 0;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(111, 227, 208, 0.9), var(--realm-gold));
    box-shadow: 0 0 12px rgba(111, 227, 208, 0.45);
    transition: width 0.6s var(--realm-ease);
}
.realm-threshold-hint { margin: 0; font-size: 11.5px; color: var(--realm-text-mute); }
.realm-threshold-hint.is-met { color: #9df5e8; }
.realm-draw-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }

/* ==================== 按钮 ==================== */
.realm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 20px;
    border-radius: 12px;
    border: 1px solid transparent;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: transform 0.2s var(--realm-ease), box-shadow 0.25s, background 0.2s, color 0.2s, border-color 0.2s;
}
.realm-btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; box-shadow: none; }
.realm-btn-label { font-weight: 700; }
.realm-btn-cost { font-style: normal; font-size: 11.5px; font-weight: 500; opacity: 0.85; white-space: nowrap; }
.realm-btn-primary {
    color: #04141f;
    background: linear-gradient(135deg, #b9fff4, var(--realm-cyan) 55%, #7fd8c8);
    box-shadow: 0 10px 26px rgba(111, 227, 208, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
.realm-btn-primary:not(:disabled):hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(111, 227, 208, 0.34); }
.realm-btn-gold {
    color: #2b1c05;
    background: linear-gradient(135deg, #ffe7b2, var(--realm-gold) 60%, #d79a2b);
    box-shadow: 0 10px 26px rgba(230, 179, 77, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}
.realm-btn-gold:not(:disabled):hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(230, 179, 77, 0.36); }
.realm-btn-ghost {
    color: var(--realm-text-dim);
    border-color: var(--realm-border-soft);
    background: rgba(255, 255, 255, 0.05);
}
.realm-btn-ghost:not(:disabled):hover {
    color: var(--realm-gold-soft);
    border-color: rgba(230, 179, 77, 0.42);
    background: rgba(230, 179, 77, 0.08);
}
.realm-btn-sm { min-height: 36px; padding: 0 14px; font-size: 12.5px; border-radius: 10px; }
.realm-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 2px;
    border: none;
    background: none;
    color: var(--realm-text-mute);
    font-family: inherit;
    font-size: 12px;
    cursor: pointer;
    transition: color 0.2s;
}
.realm-link-btn:hover { color: var(--realm-gold-soft); }

/* ==================== 我的奖品 ==================== */
.winnings-unclaimed {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}
.winnings-unclaimed[hidden] { display: none !important; }
.winnings-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border-radius: var(--realm-radius-md);
    border: 1px solid rgba(230, 179, 77, 0.3);
    background: linear-gradient(160deg, rgba(230, 179, 77, 0.1), rgba(255, 255, 255, 0.02));
    box-shadow: 0 8px 22px rgba(2, 8, 16, 0.3);
}
.winnings-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    flex-shrink: 0;
    border-radius: 12px;
    background: rgba(230, 179, 77, 0.12);
    color: var(--realm-gold-soft);
    font-size: 20px;
    overflow: hidden;
}
.winnings-icon img { width: 100%; height: 100%; object-fit: cover; }
.winnings-main { flex: 1; min-width: 0; }
.winnings-name { font-size: 14px; font-weight: 700; margin-bottom: 3px; overflow-wrap: anywhere; }
.winnings-benefit { font-size: 11.5px; color: var(--realm-cyan); }
.winnings-history-title {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0 0 10px;
    font-size: 13px;
    font-weight: 700;
    color: var(--realm-text-dim);
}
.winnings-history-title i { color: var(--realm-cyan); }
.winnings-history { display: flex; flex-direction: column; gap: 2px; }
.winnings-history[hidden] { display: none !important; }
.winnings-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: var(--realm-radius-sm);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.winnings-row:nth-child(odd) { background: rgba(255, 255, 255, 0.02); }
.winnings-row-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    border-radius: 9px;
    background: rgba(111, 227, 208, 0.08);
    color: var(--realm-cyan);
    font-size: 14px;
    overflow: hidden;
}
.winnings-row-icon img { width: 100%; height: 100%; object-fit: cover; }
.winnings-row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.winnings-row-name { font-size: 13px; font-weight: 600; overflow-wrap: anywhere; }
.winnings-row-benefit { font-size: 11px; color: var(--realm-text-mute); }
.winnings-status {
    font-size: 11px;
    padding: 3px 9px;
    border-radius: 999px;
    white-space: nowrap;
    color: var(--realm-cyan);
    border: 1px solid rgba(111, 227, 208, 0.3);
    background: rgba(111, 227, 208, 0.08);
}

/* ==================== 天骄榜 ==================== */
.rank-list { display: flex; flex-direction: column; gap: 6px; }
.rank-list[hidden] { display: none !important; }
.rank-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: var(--realm-radius-md);
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(255, 255, 255, 0.025);
    transition: background 0.2s, border-color 0.2s, transform 0.2s var(--realm-ease);
}
.rank-item:hover { background: rgba(111, 227, 208, 0.06); border-color: rgba(111, 227, 208, 0.22); transform: translateY(-1px); }
.rank-item--1 {
    border-color: rgba(230, 179, 77, 0.45);
    background: linear-gradient(90deg, rgba(230, 179, 77, 0.14), rgba(255, 255, 255, 0.02));
    box-shadow: 0 8px 26px rgba(230, 179, 77, 0.14);
}
.rank-item--2 { border-color: rgba(200, 210, 225, 0.32); background: linear-gradient(90deg, rgba(200, 210, 225, 0.1), rgba(255, 255, 255, 0.02)); }
.rank-item--3 { border-color: rgba(205, 140, 90, 0.34); background: linear-gradient(90deg, rgba(205, 140, 90, 0.1), rgba(255, 255, 255, 0.02)); }
.rank-index {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    flex-shrink: 0;
    font-size: 15px;
    font-weight: 800;
    color: var(--realm-text-mute);
    font-variant-numeric: tabular-nums;
}
.rank-medal { font-size: 20px; }
.rank-medal--gold { color: #ffd76e; text-shadow: 0 0 16px rgba(255, 215, 110, 0.6); }
.rank-medal--silver { color: #d7e2ee; text-shadow: 0 0 14px rgba(215, 226, 238, 0.5); }
.rank-medal--bronze { color: #d9975f; text-shadow: 0 0 14px rgba(217, 151, 95, 0.5); }
.rank-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border-radius: 50%;
    overflow: hidden;
    color: var(--realm-text-mute);
    font-size: 15px;
    border: 1px solid rgba(111, 227, 208, 0.22);
    background: rgba(111, 227, 208, 0.06);
}
.rank-avatar img { width: 100%; height: 100%; object-fit: cover; }
.rank-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.rank-name-row { display: flex; align-items: center; gap: 6px; min-width: 0; }
.rank-name { font-size: 13.5px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-vip-badge {
    flex-shrink: 0;
    padding: 1px 7px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    color: #2b1c05;
    background: linear-gradient(135deg, #ffe7b2, var(--realm-gold));
}
.rank-draws { font-size: 11px; color: var(--realm-text-mute); }

.rare-ticker-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
    padding: 10px 14px;
    border-radius: var(--realm-radius-md);
    border: 1px solid var(--realm-border-soft);
    background: rgba(255, 255, 255, 0.025);
    overflow: hidden;
}
.rare-ticker-label {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
    font-size: 11.5px;
    font-weight: 700;
    color: var(--realm-gold-soft);
    white-space: nowrap;
}
.rare-ticker-label i { font-size: 11px; }
.rare-ticker { flex: 1; min-width: 0; display: flex; align-items: center; gap: 26px; overflow: hidden; }
.rare-ticker.is-marquee { animation: realmMarquee 26s linear infinite; width: max-content; }
.rare-ticker:hover { animation-play-state: paused; }
@keyframes realmMarquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.rare-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    color: var(--realm-text-dim);
    white-space: nowrap;
}
.rare-user { color: var(--realm-cyan); font-weight: 600; }
.rare-arrow { color: var(--realm-text-mute); font-size: 10.5px; }
.rare-prize { font-weight: 700; }
.rare-item--empty { color: var(--realm-text-mute); }

/* ==================== 稀有度 ==================== */
.rarity-common { color: #c3ccd8; }
.rarity-rare { color: #6fb6ff; }
.rarity-epic { color: #c58bff; }
.rarity-legend { color: #ffd76e; }
.realm-rarity-tag {
    display: inline-flex;
    align-items: center;
    padding: 1px 8px;
    border-radius: 999px;
    font-size: 10px;
    font-style: normal;
    font-weight: 700;
    border: 1px solid currentColor;
    opacity: 0.92;
    white-space: nowrap;
}
.realm-rarity-tag.rarity-common { border-color: rgba(195, 204, 216, 0.4); background: rgba(195, 204, 216, 0.08); }
.realm-rarity-tag.rarity-rare { border-color: rgba(111, 182, 255, 0.45); background: rgba(111, 182, 255, 0.1); }
.realm-rarity-tag.rarity-epic { border-color: rgba(197, 139, 255, 0.45); background: rgba(197, 139, 255, 0.1); }
.realm-rarity-tag.rarity-legend { border-color: rgba(255, 215, 110, 0.55); background: rgba(255, 215, 110, 0.12); }
.realm-prob-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
    background: currentColor;
    box-shadow: 0 0 8px currentColor;
}

/* ==================== 状态 / 骨架 / 错误 ==================== */
.realm-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 30px 18px;
    text-align: center;
    border-radius: var(--realm-radius-md);
    border: 1px dashed var(--realm-border-soft);
    background: rgba(255, 255, 255, 0.02);
}
.realm-state[hidden] { display: none !important; }
.realm-state-icon { font-size: 26px; color: var(--realm-cyan); }
.realm-state.is-error .realm-state-icon { color: #ff8f8f; }
.realm-state-title { margin: 0; font-size: 15px; font-weight: 700; }
.realm-state-desc { margin: 0; font-size: 12px; color: var(--realm-text-mute); line-height: 1.6; }
.realm-state .realm-btn { margin-top: 6px; }

.realm-skeleton { position: relative; z-index: 1; max-width: 1140px; margin: 26px auto; padding: 0 18px; }
.realm-skeleton[hidden] { display: none !important; }
.skeleton-title,
.skeleton-block,
.skeleton-row {
    border-radius: var(--realm-radius-lg);
    background: linear-gradient(100deg, rgba(255, 255, 255, 0.05) 30%, rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0.05) 70%);
    background-size: 220% 100%;
    animation: realmSkeleton 1.8s ease-in-out infinite;
}
.skeleton-title { width: 40%; height: 30px; margin: 0 0 18px; border-radius: 8px; }
.skeleton-block { height: 220px; margin-bottom: 18px; }
.skeleton-row { height: 64px; margin-bottom: 12px; border-radius: var(--realm-radius-md); }
@keyframes realmSkeleton { 0% { background-position: 120% 0; } 100% { background-position: -120% 0; } }

.realm-error {
    position: relative;
    z-index: 2;
    max-width: 460px;
    margin: 60px auto;
    padding: 32px 24px;
    text-align: center;
    border-radius: var(--realm-radius-lg);
    border: 1px solid rgba(255, 143, 143, 0.24);
    background: linear-gradient(165deg, rgba(30, 20, 30, 0.9), rgba(14, 20, 32, 0.94));
    box-shadow: var(--realm-shadow);
}
.realm-error[hidden] { display: none !important; }
.realm-error-icon { display: inline-flex; font-size: 30px; color: #ff8f8f; margin-bottom: 12px; }
.realm-error h2 { margin: 0 0 8px; font-size: 18px; }
.realm-error p { margin: 0 0 18px; font-size: 12.5px; color: var(--realm-text-mute); }

/* ==================== 门禁卡 ==================== */
.realm-gate {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(4, 10, 18, 0.82);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}
.realm-gate[hidden] { display: none !important; }
.gate-card {
    width: min(92vw, 420px);
    padding: 34px 28px;
    text-align: center;
    border-radius: var(--realm-radius-lg);
    border: 1px solid rgba(230, 179, 77, 0.28);
    background: linear-gradient(165deg, rgba(16, 38, 58, 0.96), rgba(9, 22, 36, 0.98));
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 60px rgba(111, 227, 208, 0.08);
}
.gate-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 66px;
    height: 66px;
    margin-bottom: 16px;
    border-radius: 50%;
    font-size: 26px;
    color: var(--realm-gold-soft);
    background: rgba(230, 179, 77, 0.1);
    border: 1px solid rgba(230, 179, 77, 0.32);
    box-shadow: 0 0 34px rgba(230, 179, 77, 0.2);
}
.gate-card h2 { margin: 0 0 10px; font-size: 19px; font-weight: 800; line-height: 1.45; }
.gate-card p { margin: 0 0 22px; font-size: 12.5px; line-height: 1.7; color: var(--realm-text-mute); }
.gate-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.gate-actions .realm-btn { min-width: 132px; }

/* ==================== 抽奖结果 ==================== */
.realm-results {
    position: fixed;
    inset: 0;
    z-index: 130;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(3, 8, 14, 0.86);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}
.realm-results[hidden] { display: none !important; }
.realm-results-inner {
    width: min(94vw, 860px);
    max-height: 90vh;
    overflow-y: auto;
    padding: 30px;
    border-radius: var(--realm-radius-lg);
    border: 1px solid rgba(230, 179, 77, 0.3);
    background: linear-gradient(165deg, rgba(16, 40, 60, 0.97), rgba(8, 20, 34, 0.99));
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.7), 0 0 80px rgba(111, 227, 208, 0.12);
    text-align: center;
}
.realm-results-title {
    margin: 0 0 22px;
    font-size: clamp(20px, 3vw, 26px);
    letter-spacing: 4px;
    background: linear-gradient(120deg, #eafffb, var(--realm-gold-soft));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.realm-results-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 12px;
    margin-bottom: 24px;
}
.realm-result-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 16px 10px;
    border-radius: var(--realm-radius-md);
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
    opacity: 0;
    transform: rotateY(90deg) scale(0.9);
    transition: opacity 0.5s var(--realm-ease), transform 0.5s var(--realm-ease);
}
.realm-result-card.is-revealed { opacity: 1; transform: rotateY(0deg) scale(1); }
.realm-result-card.rarity-common { border-color: rgba(195, 204, 216, 0.28); background: rgba(195, 204, 216, 0.06); }
.realm-result-card.rarity-rare { border-color: rgba(111, 182, 255, 0.42); background: rgba(111, 182, 255, 0.08); box-shadow: 0 0 24px rgba(111, 182, 255, 0.16); }
.realm-result-card.rarity-epic { border-color: rgba(197, 139, 255, 0.45); background: rgba(197, 139, 255, 0.1); box-shadow: 0 0 28px rgba(197, 139, 255, 0.2); }
.realm-result-card.rarity-legend {
    border-color: rgba(255, 215, 110, 0.65);
    background: linear-gradient(160deg, rgba(255, 215, 110, 0.18), rgba(255, 255, 255, 0.03));
    box-shadow: 0 0 34px rgba(255, 215, 110, 0.32), inset 0 0 22px rgba(255, 215, 110, 0.12);
}
.realm-result-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    font-size: 22px;
    color: var(--realm-gold-soft);
    background: rgba(255, 255, 255, 0.06);
    overflow: hidden;
}
.realm-result-icon img { width: 100%; height: 100%; object-fit: cover; }
.realm-result-name { font-size: 12.5px; font-weight: 700; line-height: 1.4; overflow-wrap: anywhere; }
.realm-result-benefit { font-size: 11px; color: var(--realm-text-mute); text-align: center; }
.realm-results-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.realm-body.realm-legend-flash::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 200;
    pointer-events: none;
    background: radial-gradient(circle at 50% 45%, rgba(255, 231, 178, 0.5), rgba(255, 215, 110, 0.12) 42%, transparent 72%);
    animation: realmLegendFlash 1.3s var(--realm-ease) forwards;
}
@keyframes realmLegendFlash {
    0% { opacity: 0; }
    35% { opacity: 1; }
    100% { opacity: 0; }
}

/* ==================== 概率公示弹窗 ==================== */
.realm-modal {
    position: fixed;
    inset: 0;
    z-index: 140;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 22px;
    background: rgba(3, 8, 14, 0.84);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}
.realm-modal[hidden] { display: none !important; }
.realm-modal-card {
    position: relative;
    width: min(94vw, 520px);
    max-height: 86vh;
    overflow-y: auto;
    padding: 26px 24px;
    border-radius: var(--realm-radius-lg);
    border: 1px solid rgba(111, 227, 208, 0.24);
    background: linear-gradient(165deg, rgba(14, 36, 56, 0.98), rgba(8, 20, 34, 0.99));
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.68);
}
.realm-modal-close {
    position: absolute;
    right: 14px;
    top: 14px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid var(--realm-border-soft);
    background: rgba(255, 255, 255, 0.05);
    color: var(--realm-text-dim);
    font-size: 13px;
    cursor: pointer;
}
.realm-modal-close:hover { color: var(--realm-gold-soft); border-color: rgba(230, 179, 77, 0.4); }
.realm-modal-title { margin: 0 0 8px; font-size: 18px; font-weight: 800; letter-spacing: 1px; }
.realm-modal-title i { color: var(--realm-cyan); margin-right: 6px; }
.realm-modal-sub { margin: 0 0 16px; font-size: 12px; color: var(--realm-text-mute); line-height: 1.6; }
.realm-prob-list { display: flex; flex-direction: column; gap: 2px; margin-bottom: 14px; }
.realm-prob-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 4px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.realm-prob-name { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 13px; }
.realm-prob-name span { overflow-wrap: anywhere; }
.realm-prob-value { font-size: 13px; font-weight: 800; color: var(--realm-gold-soft); font-variant-numeric: tabular-nums; white-space: nowrap; }
.realm-prob-empty { margin: 0; padding: 16px 0; text-align: center; font-size: 12.5px; color: var(--realm-text-mute); }
.realm-prob-notice {
    margin: 0 0 10px;
    padding: 10px 12px;
    border-radius: var(--realm-radius-sm);
    border: 1px solid rgba(230, 179, 77, 0.22);
    background: rgba(230, 179, 77, 0.06);
    font-size: 11.5px;
    line-height: 1.6;
    color: var(--realm-gold-soft);
}
.realm-prob-compliance { margin: 0; font-size: 10.5px; line-height: 1.6; color: var(--realm-text-mute); }

/* ==================== Toast ==================== */
.realm-toast-stack {
    position: fixed;
    left: 50%;
    top: max(18px, env(safe-area-inset-top, 0px));
    transform: translateX(-50%);
    z-index: 200;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    pointer-events: none;
    width: min(92vw, 460px);
}
.realm-toast {
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: 100%;
    padding: 10px 16px;
    border-radius: 999px;
    border: 1px solid rgba(111, 227, 208, 0.3);
    background: rgba(10, 28, 44, 0.96);
    color: var(--realm-text);
    font-size: 12.5px;
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.45);
    animation: realmToastIn 0.28s var(--realm-ease);
}
.realm-toast--success { border-color: rgba(111, 227, 208, 0.4); color: #c9fff7; }
.realm-toast--success i { color: var(--realm-cyan); }
.realm-toast--error { border-color: rgba(255, 143, 143, 0.4); color: #ffd9d9; }
.realm-toast--error i { color: #ff8f8f; }
.realm-toast.is-out { opacity: 0; transform: translateY(-6px); transition: opacity 0.3s, transform 0.3s; }
@keyframes realmToastIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==================== 分页 / 页脚 ==================== */
.realm-pager {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.realm-pager[hidden] { display: none !important; }
.realm-pager-info { font-size: 12px; color: var(--realm-gold-soft); font-variant-numeric: tabular-nums; }

.realm-footer {
    position: relative;
    z-index: 1;
    max-width: 1140px;
    margin: 30px auto 0;
    padding: 22px 18px calc(28px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    text-align: center;
}
.realm-footer-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 12.5px;
    color: var(--realm-text-dim);
}
.realm-footer-links a:hover,
.realm-footer-link:hover { color: var(--realm-gold-soft); }
.realm-footer-link {
    padding: 0;
    border: none;
    background: none;
    color: var(--realm-cyan);
    font-family: inherit;
    font-size: 12.5px;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.realm-footer-dot { color: var(--realm-text-mute); }
.realm-footer-compliance {
    margin: 0;
    font-size: 10.5px;
    line-height: 1.7;
    color: var(--realm-text-mute);
}

/* ==================== 移动端 ==================== */
@media (max-width: 860px) {
    .realm-draw { grid-template-columns: minmax(0, 1fr); gap: 10px; }
    .realm-stage { min-height: 250px; }
    .stage-array { width: min(58vw, 260px); height: min(58vw, 260px); }
    .stage-core { width: 76px; height: 76px; font-size: 32px; }
    .realm-draw-panel { text-align: center; }
    .realm-draw-meta { justify-content: center; }
    .realm-draw-actions { justify-content: center; }
}

@media (max-width: 768px) {
    .realm-topbar { padding: max(8px, env(safe-area-inset-top, 0px)) 12px 8px; }
    .realm-topbar-inner { gap: 8px; }
    .realm-brand-text em { font-size: 9.5px; letter-spacing: 3px; }
    .realm-brand-compact { display: inline; font-size: 12px; font-weight: 800; letter-spacing: 1px; color: #fff; }
    .realm-brand-text strong,
    .realm-brand-text em { display: none; }
    .realm-token-pill { padding: 7px 11px; }
    .realm-token-label { display: none; }
    .realm-status-badge { padding: 6px 10px; font-size: 11px; }
    .realm-icon-btn { width: 42px; height: 42px; }
    .realm-main { padding: 18px 12px 8px; }
    .realm-section { margin: 22px 0; padding: 16px 14px; border-radius: 16px; }
    .realm-draw { padding: 16px 14px 20px; }
    .realm-stage { min-height: 220px; }
    .stage-array { width: min(64vw, 240px); height: min(64vw, 240px); }
    .stage-core { width: 68px; height: 68px; font-size: 28px; }
    .realm-title { font-size: 22px; letter-spacing: 1px; }
    .realm-draw-actions { gap: 8px; }
    .realm-draw-actions .realm-btn { flex: 1 1 140px; min-height: 48px; }
    .realm-btn { min-height: 44px; }
    .winnings-unclaimed { grid-template-columns: minmax(0, 1fr); }
    .rank-item { padding: 9px 10px; gap: 9px; }
    .rank-avatar { width: 36px; height: 36px; }
    .rare-ticker-wrap { flex-wrap: wrap; gap: 8px; }
    .rare-ticker { width: 100%; }
    .realm-results { padding: 14px; }
    .realm-results-inner { padding: 22px 16px; max-height: 86vh; }
    .realm-results-cards { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 9px; }
    .realm-result-card { padding: 13px 8px; }
    .realm-modal { padding: 14px; align-items: flex-end; }
    .realm-modal-card { width: 100%; max-height: 82vh; border-radius: 18px 18px 12px 12px; padding: 22px 18px; padding-bottom: calc(22px + env(safe-area-inset-bottom, 0px)); }
    .realm-gate { padding: 16px; }
    .gate-card { padding: 26px 20px; }
    .realm-footer { margin-top: 22px; }
    .realm-toast-stack { top: max(12px, env(safe-area-inset-top, 0px)); }
    .realm-pager { gap: 10px; }
    .realm-pager .realm-btn { min-height: 44px; }
}

@media (max-width: 380px) {
    .realm-brand-mark { width: 34px; height: 34px; font-size: 15px; }
    .realm-status-badge { font-size: 10px; padding: 5px 8px; }
    .realm-result-name { font-size: 11.5px; }
}

/* ==================== R18 背景 / 倒计时 / 门槛 移动端 ==================== */
@media (max-width: 768px) {
    .realm-moon {
        right: 6%;
        top: 5%;
        width: clamp(92px, 26vw, 132px);
        height: clamp(92px, 26vw, 132px);
        opacity: 0.7;
    }
    .realm-cloud--far { opacity: 0.55; }
    .realm-cloud--mid { opacity: 0.68; }
    .realm-cloud--near { opacity: 0.78; }
    .realm-silhouette--far { height: 24vh; bottom: 14%; }
    .realm-silhouette--mid { height: 22vh; bottom: 4%; }
    .realm-architecture { height: 30vh; opacity: 0.88; }
    .realm-canvas { opacity: 0.72; }
    .realm-top-countdown {
        padding: 5px 8px;
        font-size: 10px;
        letter-spacing: 0;
    }
    .realm-countdown { padding: 10px 12px; gap: 8px; }
    .countdown-time { font-size: 18px; letter-spacing: 1px; }
    .countdown-label { font-size: 11.5px; }
    .realm-threshold { padding: 10px 12px; }
    .realm-threshold-head { font-size: 11.5px; }
    .realm-threshold-values { font-size: 11.5px; }
    .realm-threshold-hint { font-size: 11px; }
}
@media (max-width: 480px) {
    .realm-top-countdown { display: none !important; }
    .realm-moon { width: 84px; height: 84px; }
    .realm-architecture { height: 26vh; }
}
@media (prefers-reduced-motion: reduce) {
    .realm-moon,
    .realm-moon::after,
    .realm-cloud--far,
    .realm-cloud--mid,
    .realm-cloud--near,
    .realm-silhouette--far,
    .realm-silhouette--mid,
    .realm-lanterns circle,
    .realm-stardust,
    .realm-canvas,
    .countdown-time,
    .realm-top-countdown { animation: none !important; }
}

/* ==================== 减少动效 ==================== */
@media (prefers-reduced-motion: reduce) {
    .realm-cloud,
    .realm-moon,
    .realm-moon::after,
    .realm-silhouette--far,
    .realm-silhouette--mid,
    .realm-lanterns circle,
    .realm-stardust,
    .array-ring,
    .array-core,
    .stage-ring,
    .stage-runes,
    .stage-core,
    .realm-ticker,
    .rare-ticker.is-marquee,
    .skeleton-title,
    .skeleton-block,
    .skeleton-row { animation: none !important; }
    .realm-stage.is-drawing .stage-pillar,
    .realm-stage.is-drawing .stage-burst,
    .realm-stage.is-drawing .stage-core { animation: none !important; }
    .realm-result-card { opacity: 1; transform: none; transition: none; }
    .realm-body.realm-legend-flash::after { animation: none; display: none; }
    .realm-icon-btn.is-loading i { animation: none; }
    .realm-pity-bar span,
    .realm-threshold-bar span { transition: none; }
    .countdown-time,
    .realm-top-countdown { animation: none !important; }
}

/* ============================================================
   R19：参考图级仙侠月夜场景（上传底图 / 增强程序化背景 / 粒子层）
   ============================================================ */

/* ---------- A. 后台上传底图（cover + 极慢 Ken Burns） ---------- */
.realm-bg-photo {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 0.9s ease;
    will-change: transform, opacity;
    pointer-events: none;
}
.realm-bg-photo:not([hidden]) {
    opacity: 1;
    animation: realmKenBurns 60s ease-in-out infinite alternate;
}
@keyframes realmKenBurns {
    from { transform: scale(1.0) translate3d(0, 0, 0); }
    to { transform: scale(1.06) translate3d(-1.2%, -0.9%, 0); }
}

/* 有上传底图时：隐藏程序化山体与古建，保留并调淡云海/月晕/星尘/粒子/暗角 */
body.realm-has-photo .realm-silhouette,
body.realm-has-photo .realm-architecture { display: none; }
body.realm-has-photo .realm-sky { opacity: 0.40; }
body.realm-has-photo .realm-moon { opacity: 0.5; }
body.realm-has-photo .realm-haze { opacity: 0.6; }
body.realm-has-photo .realm-cloud--far { opacity: 0.16; }
body.realm-has-photo .realm-cloud--mid { opacity: 0.22; }
body.realm-has-photo .realm-cloud--near { opacity: 0.26; }
body.realm-has-photo .realm-cloud-bank { opacity: 0.30; }
body.realm-has-photo .realm-glow { opacity: 0.5; }

/* ---------- B. 增强程序化场景：深蓝青月夜 ---------- */
.realm-sky {
    background:
        radial-gradient(ellipse 120% 70% at 50% -8%, rgba(120, 220, 225, 0.18), transparent 60%),
        radial-gradient(ellipse 90% 62% at 82% 8%, rgba(205, 232, 236, 0.16), transparent 62%),
        radial-gradient(ellipse 80% 50% at 20% 102%, rgba(38, 108, 128, 0.24), transparent 66%),
        linear-gradient(180deg, #040b1a 0%, #071a30 34%, #0b2a42 64%, #10384c 100%);
}
.realm-haze {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(180deg, rgba(150, 215, 225, 0.10) 0%, transparent 30%, rgba(170, 220, 228, 0.07) 52%, transparent 70%),
        radial-gradient(ellipse 70% 30% at 50% 66%, rgba(200, 235, 240, 0.10), transparent 70%);
    mix-blend-mode: screen;
    animation: realmHazeBreath 18s ease-in-out infinite;
    will-change: opacity;
}
@keyframes realmHazeBreath {
    0%, 100% { opacity: 0.72; }
    50% { opacity: 1; }
}

/* 巨大明亮满月 + 环形山纹理 */
.realm-moon {
    right: 13%;
    top: 7%;
    width: clamp(150px, 19vw, 280px);
    height: clamp(150px, 19vw, 280px);
    border-radius: 50%;
    overflow: hidden;
    background:
        radial-gradient(circle at 38% 32%, #fffdf2 0%, #f6eed2 34%, #e2d3a6 58%, #c9b47d 74%, rgba(150, 185, 190, 0.30) 86%, transparent 93%);
    box-shadow:
        0 0 80px rgba(246, 240, 210, 0.45),
        0 0 180px rgba(200, 225, 222, 0.26),
        0 0 320px rgba(110, 200, 215, 0.18);
    opacity: 0.9;
    animation: realmMoonGlow 9s ease-in-out infinite;
    will-change: opacity;
}
.realm-moon::after {
    inset: -30%;
    background: radial-gradient(circle, rgba(255, 248, 222, 0.18), transparent 62%);
    animation: realmMoonHalo 7s ease-in-out infinite;
}
.realm-moon-craters {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    opacity: 0.42;
    mix-blend-mode: multiply;
    background:
        radial-gradient(circle at 30% 36%, rgba(120, 108, 82, 0.38) 0 6%, transparent 7%),
        radial-gradient(circle at 52% 27%, rgba(120, 108, 82, 0.30) 0 4%, transparent 5%),
        radial-gradient(circle at 67% 45%, rgba(120, 108, 82, 0.32) 0 8%, transparent 9%),
        radial-gradient(circle at 42% 62%, rgba(120, 108, 82, 0.28) 0 5%, transparent 6%),
        radial-gradient(circle at 24% 57%, rgba(120, 108, 82, 0.24) 0 3.5%, transparent 4.5%),
        radial-gradient(circle at 58% 73%, rgba(120, 108, 82, 0.26) 0 4%, transparent 5%),
        radial-gradient(circle at 75% 63%, rgba(120, 108, 82, 0.22) 0 3%, transparent 4%),
        radial-gradient(circle at 36% 78%, rgba(120, 108, 82, 0.20) 0 2.6%, transparent 3.6%);
}

/* 上层流云（月光薄云，更快更暗） */
.realm-cloud--far { top: 9%; height: 26vh; opacity: 0.52; filter: blur(18px); animation-duration: 150s; }
.realm-cloud--mid { top: 25%; height: 30vh; opacity: 0.68; filter: blur(14px); animation-duration: 102s; }
.realm-cloud--near { top: 43%; height: 32vh; opacity: 0.8; filter: blur(11px); animation-duration: 72s; }

/* 浓厚明亮云海（填谷三层，前层更亮更快） */
.realm-cloud-bank {
    position: absolute;
    left: -12%;
    width: 124%;
    pointer-events: none;
    will-change: transform;
}
.realm-cloud-bank--back {
    bottom: 5%;
    height: 44vh;
    opacity: 0.82;
    filter: blur(26px);
    background:
        radial-gradient(ellipse 30% 46% at 12% 70%, rgba(170, 215, 230, 0.34), transparent 70%),
        radial-gradient(ellipse 26% 40% at 32% 78%, rgba(185, 230, 240, 0.42), transparent 72%),
        radial-gradient(ellipse 34% 48% at 55% 72%, rgba(160, 210, 228, 0.36), transparent 72%),
        radial-gradient(ellipse 28% 42% at 78% 78%, rgba(190, 235, 242, 0.40), transparent 72%),
        radial-gradient(ellipse 30% 44% at 94% 70%, rgba(170, 215, 230, 0.32), transparent 72%);
    animation: realmCloudBankBack 150s ease-in-out infinite alternate;
}
.realm-cloud-bank--mid {
    bottom: -1%;
    height: 40vh;
    opacity: 0.9;
    filter: blur(19px);
    background:
        radial-gradient(ellipse 28% 44% at 20% 68%, rgba(200, 240, 246, 0.44), transparent 70%),
        radial-gradient(ellipse 30% 46% at 44% 76%, rgba(215, 248, 250, 0.5), transparent 72%),
        radial-gradient(ellipse 26% 40% at 68% 66%, rgba(190, 235, 242, 0.44), transparent 72%),
        radial-gradient(ellipse 32% 48% at 88% 76%, rgba(210, 244, 248, 0.46), transparent 72%);
    animation: realmCloudBankMid 104s ease-in-out infinite alternate;
}
.realm-cloud-bank--front {
    bottom: -7%;
    height: 36vh;
    opacity: 0.96;
    filter: blur(14px);
    background:
        radial-gradient(ellipse 26% 44% at 14% 64%, rgba(228, 250, 252, 0.52), transparent 70%),
        radial-gradient(ellipse 30% 48% at 38% 74%, rgba(240, 255, 255, 0.58), transparent 72%),
        radial-gradient(ellipse 24% 38% at 60% 62%, rgba(214, 246, 250, 0.5), transparent 72%),
        radial-gradient(ellipse 34% 50% at 82% 74%, rgba(235, 252, 255, 0.54), transparent 72%);
    animation: realmCloudBankFront 72s ease-in-out infinite alternate;
}
@keyframes realmCloudBankBack {
    from { transform: translate3d(-2.5%, 0, 0); }
    to { transform: translate3d(2.5%, 0, 0); }
}
@keyframes realmCloudBankMid {
    from { transform: translate3d(2%, -0.4%, 0); }
    to { transform: translate3d(-2%, 0.6%, 0); }
}
@keyframes realmCloudBankFront {
    from { transform: translate3d(-3.5%, 0.5%, 0); }
    to { transform: translate3d(3.5%, -0.5%, 0); }
}

/* 喀斯特峰林三层 + 松树剪影 */
.realm-silhouette { left: -3%; width: 106%; }
.realm-silhouette--far {
    bottom: 26%;
    height: 34vh;
    fill: rgba(26, 52, 74, 0.85);
    opacity: 0.62;
    filter: blur(1.2px);
    animation: realmMountainDrift 200s ease-in-out infinite alternate;
}
.realm-silhouette--mid {
    bottom: 15%;
    height: 30vh;
    fill: rgba(13, 32, 50, 0.94);
    opacity: 0.92;
    animation: realmMountainDrift 160s ease-in-out infinite alternate-reverse;
}
.realm-silhouette--near {
    position: absolute;
    bottom: 1%;
    height: 36vh;
    fill: rgba(5, 15, 26, 0.98);
    opacity: 0.98;
    filter: drop-shadow(0 -8px 24px rgba(3, 10, 18, 0.9));
    animation: realmMountainDrift 128s ease-in-out infinite alternate;
}
.realm-pines { fill: rgba(10, 26, 42, 0.96); }
.realm-pines--far { fill: rgba(20, 44, 64, 0.9); }
.realm-silhouette--far .realm-pines { fill: rgba(22, 46, 66, 0.88); }

/* 古建群：多层宝塔 + 飞檐 + 窗棂暖光 + 宫灯 */
.realm-architecture {
    bottom: 0;
    height: 46vh;
    fill: #040d18;
    stroke: rgba(230, 190, 120, 0.32);
    stroke-width: 1.1;
    opacity: 0.97;
    filter: drop-shadow(0 -6px 22px rgba(2, 8, 14, 0.9));
}
.realm-pagoda--minor { opacity: 0.9; }
.realm-windows rect {
    fill: #ffcf7a;
    stroke: none;
    opacity: 0.85;
    filter: drop-shadow(0 0 5px rgba(255, 190, 110, 0.9));
    animation: realmWindowFlicker 5.2s ease-in-out infinite;
}
.realm-windows rect:nth-child(3n) { animation-delay: 1.1s; }
.realm-windows rect:nth-child(3n + 1) { animation-delay: 2.3s; }
@keyframes realmWindowFlicker {
    0%, 100% { opacity: 0.55; }
    45% { opacity: 0.95; }
    55% { opacity: 0.78; }
}
.realm-lanterns circle {
    fill: #ffd98a;
    stroke: rgba(255, 215, 120, 0.6);
    filter: drop-shadow(0 0 8px rgba(255, 210, 130, 0.95));
    animation: realmLanternGlow 4.2s ease-in-out infinite;
}
.realm-pagoda circle,
.realm-pavilion circle {
    fill: rgba(255, 231, 178, 0.72);
    stroke: rgba(255, 231, 178, 0.42);
}

/* 门槛周期标签 */
#thresholdPeriodLabel {
    color: var(--realm-cyan);
    font-weight: 600;
}

/* ---------- C. 移动端降级 ---------- */
@media (max-width: 768px) {
    .realm-moon {
        right: 8%;
        top: 6%;
        width: clamp(104px, 26vw, 150px);
        height: clamp(104px, 26vw, 150px);
        opacity: 0.78;
    }
    .realm-silhouette--far { height: 26vh; bottom: 28%; opacity: 0.5; }
    .realm-silhouette--mid { height: 24vh; bottom: 16%; }
    .realm-silhouette--near { height: 28vh; opacity: 0.9; }
    .realm-cloud-bank--back { height: 34vh; opacity: 0.7; filter: blur(20px); }
    .realm-cloud-bank--mid { height: 32vh; opacity: 0.78; filter: blur(15px); }
    .realm-cloud-bank--front { height: 30vh; opacity: 0.84; filter: blur(11px); }
    .realm-architecture { height: 34vh; opacity: 0.92; }
    .realm-haze { opacity: 0.7; }
    body.realm-has-photo .realm-cloud--far { opacity: 0.12; }
    body.realm-has-photo .realm-cloud-bank { opacity: 0.22; }
}
@media (max-width: 480px) {
    .realm-moon { width: 96px; height: 96px; }
    .realm-architecture { height: 30vh; }
    .realm-cloud-bank--front { opacity: 0.7; }
}

/* ---------- R19 减少动效 ---------- */
@media (prefers-reduced-motion: reduce) {
    .realm-bg-photo:not([hidden]),
    .realm-haze,
    .realm-cloud-bank--back,
    .realm-cloud-bank--mid,
    .realm-cloud-bank--front,
    .realm-silhouette--near,
    .realm-windows rect,
    .realm-lanterns circle,
    .realm-moon,
    .realm-moon::after { animation: none !important; }
    .realm-bg-photo { transition: none; }
}
