/*! iu77u 幸运大转盘抽奖系统 · Lucky Draw System | Copyright (c) 2026 iu77u. All rights reserved. */
/* ==========================================================================
   喜庆质感主题（在 style.css 之后加载，只做增量覆盖）
   ========================================================================== */

:root {
    /* 暖纸 · 中国红 · 烫金 */
    --paper: #FBF5EA;
    --paper-2: #F6EEDF;
    --paper-3: #EFE3CF;
    --ink: #2A2118;
    --ink-2: #5E5245;
    --ink-3: #8C7E6E;
    --ink-4: #B3A695;
    --hair: rgba(184, 137, 43, .24);
    --hair-2: rgba(184, 137, 43, .44);
    --accent: #A8231B;
    --accent-soft: #F8E8E1;
    --green: #2F6B4F;
    --green-soft: #EDF3EE;
    --amber: #B8892B;
    --amber-soft: #FBF2DE;
    --cyan: #2C5A6E;
    --cyan-soft: #EBF1F3;

    --bg: var(--paper);
    --bg-soft: var(--paper-2);
    --card: #FFFDF8;
    --line: var(--hair);
    --line-2: var(--hair-2);
    --red: #A8231B;
    --red-2: #C4331F;
    --red-dark: #8E1A14;
    --red-soft: #F8E8E1;
    --gold: #B8892B;
    --gold-2: #D9B25E;
    --gold-3: #F0DCA8;
    --foil: linear-gradient(100deg, #EBD299 0%, #C9A24A 26%, #F5E6BE 45%, #B8892B 66%, #E9D09A 100%);

    --sh-1: 0 1px 2px rgba(90, 55, 20, .05);
    --sh-2: 0 10px 26px -14px rgba(90, 55, 20, .28);
    --sh-3: 0 26px 56px -28px rgba(90, 55, 20, .38);
    --r-sm: 3px;
    --r-md: 6px;
    --r-lg: 10px;
    --r-xl: 14px;
}

body {
    background:
        radial-gradient(1100px 520px at 78% -12%, rgba(233, 196, 122, .30), rgba(233, 196, 122, 0) 62%),
        radial-gradient(900px 460px at 8% -6%, rgba(255, 248, 233, .95), rgba(255, 248, 233, 0) 64%),
        var(--paper);
    background-attachment: fixed;
}

/* 纸纹 */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    opacity: .42;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.30'/%3E%3C/svg%3E");
}

/* ---------- 头部 ---------- */
.site-header {
    background: rgba(251, 245, 234, .88);
    border-bottom: 1px solid var(--hair-2);
    backdrop-filter: saturate(140%) blur(8px);
}
.site-header .brand { color: var(--ink); }
.logo-mark {
    background: radial-gradient(circle at 34% 28%, #C4331F, #A8231B 58%, #8E1A14);
    color: #F6DFAE !important;
    border-radius: 50%;
    box-shadow: 0 0 0 1px rgba(184, 137, 43, .55), inset 0 0 0 2px rgba(255, 240, 216, .16);
}
.brand-text { font-weight: 700; letter-spacing: .01em; }
.header-links a { color: var(--ink-2); }
.header-links a:hover { color: var(--accent); }
.header-links .btn-login,
.header-links a.btn-login {
    background: linear-gradient(180deg, #B3261E, #8E1A14);
    border: 1px solid #7E1512;
    color: #FFF6E6;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 6px 14px -6px rgba(140, 26, 20, .5);
}
.header-links .btn-login:hover { color: #FFF6E6; filter: brightness(1.06); }

/* ---------- 页脚 ---------- */
.site-footer {
    background: #2A2118;
    color: rgba(255, 244, 226, .62);
    border-top: 1px solid rgba(240, 220, 168, .18);
}
.site-footer .footer-brand,
.site-footer a { color: rgba(255, 244, 226, .86); }
.site-footer a:hover { color: #F0DCA8; }
.site-footer .logo-mark { box-shadow: 0 0 0 1px rgba(240, 220, 168, .4); }

/* ---------- 通用按钮 ---------- */
.btn-primary,
.draw-btn {
    background: linear-gradient(180deg, #B3261E, #8E1A14);
    border: 1px solid #7E1512;
    color: #FFF6E6;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 10px 20px -12px rgba(140, 26, 20, .6);
}
.btn-primary:hover,
.draw-btn:hover { color: #FFF6E6; filter: brightness(1.06); }
.btn-primary:disabled,
.draw-btn:disabled { opacity: .45; filter: none; }
.btn-secondary {
    background: #FFFDF8;
    border: 1px solid var(--hair-2);
    color: var(--ink);
}
.btn-secondary:hover { border-color: var(--gold); color: var(--accent); }
.btn-gold {
    background: linear-gradient(180deg, #F3DFAF, #D9B25E);
    border: 1px solid #B8892B;
    color: #5C3F12;
}

/* ---------- 卡片 / 表单 / 表格 ---------- */
.card, .surface, .query-box, .pay-card, .auth-box, .auth-shell, .wheel-card {
    background: var(--card);
    border: 1px solid var(--hair-2);
    border-radius: var(--r-md);
    box-shadow: var(--sh-2);
}
.field input, .field textarea, .field select,
.card-modal input, .query-box input, .auth-box input,
.form-group input, .form-group textarea, .form-group select {
    background: #FFFDF8;
    border: 1px solid var(--hair-2);
}
.field input:focus, .field textarea:focus, .card-modal input:focus,
.query-box input:focus, .auth-box input:focus,
.form-group input:focus, .form-group textarea:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(184, 137, 43, .14);
}
.data-table th {
    background: var(--paper-2);
    color: var(--ink-3);
}
.data-table tbody tr:hover { background: rgba(184, 137, 43, .05); }
.tab.is-active, .tab.active {
    background: linear-gradient(180deg, #B3261E, #8E1A14);
    color: #FFF6E6;
}
.alert-warning { background: #FDF4DD; border-color: rgba(184, 137, 43, .4); color: #6B4A12; }
.alert-error, .alert-danger { background: #FBEAE6; border-color: rgba(168, 35, 27, .3); color: #8E1A14; }
.alert-success { background: #EDF3EE; border-color: rgba(47, 107, 79, .28); color: #2F6B4F; }
.badge-gold, .badge-amber { background: #FBF2DE; color: #8A6512; border-color: rgba(184, 137, 43, .4); }

/* ==========================================================================
   首页（fx-*）：喜庆版排版
   ========================================================================== */
.fx-wrap { position: relative; z-index: 1; max-width: 1200px; margin: 0 auto; padding: 0 28px; }

.fx-topbar {
    background: linear-gradient(90deg, #8E1A14, #A8231B 50%, #8E1A14);
    color: #F7E3B8;
    border-bottom: 1px solid rgba(240, 220, 168, .28);
}
.fx-topbar__in {
    max-width: 1200px; margin: 0 auto; padding: 8px 28px;
    display: flex; align-items: center; justify-content: center; gap: 12px;
    font-size: 12px; letter-spacing: .12em;
}
.fx-topbar i { width: 4px; height: 4px; background: #E8CC92; transform: rotate(45deg); opacity: .85; }

.fx-ornament {
    max-width: 1200px; margin: 22px auto 0; padding: 0 28px;
    display: flex; align-items: center; gap: 14px; opacity: .8;
}
.fx-ornament span { flex: 1; height: 1px; background: rgba(184, 137, 43, .42); }
.fx-ornament i { width: 6px; height: 6px; transform: rotate(45deg); background: rgba(184, 137, 43, .78); }

.fx-hero {
    display: grid; grid-template-columns: minmax(0, 1fr) 300px;
    gap: 44px; align-items: end; padding: 40px 0 26px;
}
.fx-kicker {
    display: inline-flex; align-items: center; gap: 8px;
    border: 1px solid rgba(184, 137, 43, .5); border-radius: var(--r-pill, 999px);
    padding: 5px 13px; font-size: 11.5px; letter-spacing: .14em; color: #8A6512;
    background: rgba(255, 253, 248, .6);
}
.fx-kicker i { width: 4px; height: 4px; border-radius: 50%; background: var(--red); }
.fx-title {
    margin: 16px 0 0; font-size: clamp(32px, 4vw, 46px); line-height: 1.18;
    font-weight: 700; letter-spacing: -.02em; color: var(--ink);
}
.fx-title em { font-style: normal; color: var(--red); }
.fx-title .fx-stamp {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; margin-left: 16px; vertical-align: 8px;
    border-radius: 4px; border: 1.5px solid var(--gold-3);
    background: linear-gradient(160deg, #B3261E, #8E1A14); color: #FFF0D8;
    font-size: 21px; font-weight: 700; line-height: 1; transform: rotate(-5deg);
    box-shadow: 0 6px 16px -8px rgba(140, 26, 20, .6), inset 0 0 0 2px rgba(255, 240, 216, .16);
}
.fx-desc { margin: 14px 0 0; color: var(--ink-2); font-size: 14.5px; line-height: 1.7; }
.fx-stats { display: flex; gap: 26px; margin-top: 22px; }
.fx-stats div { padding-left: 18px; border-left: 1px solid var(--hair-2); }
.fx-stats div:first-child { padding-left: 0; border-left: 0; }
.fx-stats b {
    display: block; font-family: Georgia, "Times New Roman", serif;
    font-size: 26px; font-weight: 400; color: var(--red); line-height: 1.1;
}
.fx-stats span { font-size: 12px; color: var(--ink-3); letter-spacing: .04em; }

.fx-side-stats {
    display: flex; gap: 30px; justify-content: flex-end; align-self: center;
    padding: 22px 26px; border: 1px solid var(--hair); border-radius: var(--r-md);
    background: rgba(255, 253, 248, .66);
}
.fx-side-stats b {
    font-family: Georgia, "Times New Roman", serif; font-size: 30px; font-weight: 400;
    color: var(--red); line-height: 1;
}
.fx-side-stats span { display: block; margin-top: 7px; font-size: 11.5px; color: var(--ink-3); letter-spacing: .06em; }
.fx-side-stats > div + div { padding-left: 30px; border-left: 1px solid var(--hair); }

.fx-winners-bar {
    display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
    border: 1px solid var(--hair); border-radius: var(--r-md);
    background: rgba(255, 253, 248, .72); padding: 11px 18px; margin-bottom: 26px;
    font-size: 12.5px; color: var(--ink-2);
}
.fx-winners-bar .tag {
    font-size: 11px; letter-spacing: .1em; color: var(--gold);
    border-right: 1px solid var(--hair-2); padding-right: 14px; flex: none;
}
.fx-winners-bar b { color: var(--red); font-weight: 600; }

/* 舞台：左玩法 + 右面板 */
.fx-stage { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 22px; align-items: start; }
.fx-card {
    background: var(--card); border: 1px solid var(--hair-2); border-radius: var(--r-md);
    box-shadow: var(--sh-2); overflow: hidden; position: relative;
}
.fx-card::before {
    content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px;
    background: var(--foil);
}
.fx-card__head {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 17px 22px 15px; border-bottom: 1px solid var(--hair);
}
.fx-card__head h2 {
    margin: 0; font-size: 12px; font-weight: 600; letter-spacing: .18em;
    text-transform: uppercase; color: var(--gold);
}
.fx-card__hint { font-size: 12px; color: var(--ink-3); letter-spacing: .02em; }
.fx-card__body { padding: 26px 22px 22px; display: grid; place-items: center; min-height: 470px; }
.fx-card__note {
    margin: 18px 0 0; text-align: center; font-size: 12px; color: var(--ink-4); letter-spacing: .02em;
}

/* 右侧面板 */
.fx-side { display: grid; gap: 14px; }
.fx-panel {
    background: var(--card); border: 1px solid var(--hair-2); border-radius: var(--r-md);
    padding: 18px 20px; box-shadow: var(--sh-1);
}
.fx-panel__label {
    font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold);
    margin-bottom: 12px;
}
.fx-credits { display: flex; align-items: baseline; gap: 8px; }
.fx-credits b {
    font-family: Georgia, "Times New Roman", serif; font-size: 38px; font-weight: 400;
    color: var(--red); line-height: 1;
}
.fx-credits span { font-size: 12.5px; color: var(--ink-3); }
.fx-sub { margin-top: 8px; font-size: 12.5px; color: var(--ink-3); line-height: 1.6; }
.fx-panel .btn { margin-top: 14px; width: 100%; }
.fx-code-in {
    width: 100%; height: 44px; text-align: center; letter-spacing: .1em;
    font-family: Georgia, "Times New Roman", serif; font-size: 14px;
    background: #FFFDF8; border: 1px solid var(--hair-2); border-radius: var(--r-sm);
    color: var(--ink);
}
.fx-code-in::placeholder { font-family: var(--sans, inherit); letter-spacing: .04em; color: var(--ink-4); }
.fx-code-in:focus { outline: 0; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(184, 137, 43, .14); }
.fx-link { display: block; margin-top: 10px; text-align: center; font-size: 11.5px; color: var(--ink-3); }
.fx-link:hover { color: var(--accent); }
.fx-prize-list { display: grid; gap: 12px; }
.fx-prize-row {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    padding-bottom: 11px; border-bottom: 1px dashed var(--hair);
    font-size: 13px;
}
.fx-prize-row:last-child { border-bottom: 0; padding-bottom: 0; }
.fx-prize-row .st { font-size: 11.5px; color: var(--ink-4); white-space: nowrap; }
.fx-prize-row .st.is-ok { color: var(--green); }
.fx-empty { font-size: 12.5px; color: var(--ink-4); }

/* 奖池 */
.fx-section { padding: 46px 0 0; }
.fx-section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.fx-section__head h2 { margin: 0; font-size: 20px; font-weight: 700; letter-spacing: -.01em; }
.fx-section__head h2::before {
    content: ""; display: inline-block; width: 3px; height: 15px; margin-right: 10px;
    background: var(--red); vertical-align: -1px;
}
.fx-section__head span { font-size: 12px; color: var(--ink-3); }

.fx-pool {
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px; background: var(--hair); border: 1px solid var(--hair);
}
.fx-pool__item { background: var(--card); padding: 18px 18px 16px; display: flex; gap: 14px; align-items: center; }
.fx-pool__ico {
    width: 42px; height: 42px; flex: none; border-radius: 50%; display: grid; place-items: center;
    background: radial-gradient(circle at 34% 28%, #FBF1DA, #F2E1BC); color: var(--red);
}
.fx-pool__ico svg { width: 21px; height: 21px; }
.fx-pool__ico img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.fx-pool__item > span:last-child { display: block; min-width: 0; }
.fx-pool__name { display: block; font-size: 13.5px; font-weight: 600; color: var(--ink); }
.fx-pool__meta { display: block; margin-top: 4px; font-size: 11.5px; color: var(--ink-3); }

/* 中奖滚动列表 */
.fx-winners { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 34px; border-top: 1px solid var(--hair); }
.fx-winner {
    display: flex; align-items: center; gap: 12px; padding: 14px 0;
    border-bottom: 1px solid var(--hair); font-size: 13px;
}
.fx-winner__av {
    width: 30px; height: 30px; flex: none; border-radius: 50%; display: grid; place-items: center;
    background: var(--paper-2); color: var(--ink-2); font-size: 12.5px; border: 1px solid var(--hair-2);
}
.fx-winner__name { flex: 1; min-width: 0; color: var(--ink-2); }
.fx-winner__name span { margin-left: 8px; font-size: 11.5px; color: var(--ink-4); }
.fx-winner__prize { color: var(--red); font-weight: 600; white-space: nowrap; }

/* 参与方式 */
.fx-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--hair); border: 1px solid var(--hair); }
.fx-step { background: var(--card); padding: 24px 22px; }
.fx-step__no {
    font-family: Georgia, "Times New Roman", serif; font-size: 13px; color: var(--gold);
    letter-spacing: .08em;
}
.fx-step h4 { margin: 10px 0 6px; font-size: 14.5px; font-weight: 600; }
.fx-step p { margin: 0; font-size: 12.5px; line-height: 1.75; color: var(--ink-3); }

.fx-sign {
    display: flex; align-items: center; justify-content: center; gap: 14px;
    margin: 40px 0 0; font-size: 12px; color: var(--ink-4); letter-spacing: .04em;
}
.fx-sign span { width: 46px; height: 1px; background: var(--hair-2); }

/* ==========================================================================
   玩法：转盘
   ========================================================================== */
.play-wheel { position: relative; width: min(446px, 78vw); aspect-ratio: 1; }
.play-wheel .wheel-canvas { display: block; width: 100% !important; height: 100% !important; }
.play-wheel .wheel-pointer {
    position: absolute; left: 50%; top: -12px; width: 34px; height: 46px; margin-left: -17px; z-index: 6;
    background: linear-gradient(180deg, #FFF6DC, #F0D08E 45%, #C79A45 80%, #9E7330);
    clip-path: polygon(50% 100%, 3% 15%, 50% 0, 97% 15%);
    filter: drop-shadow(0 5px 8px rgba(110, 55, 12, .35));
}
.play-wheel .wheel-center {
    position: absolute; left: 50%; top: 50%; width: 112px; height: 112px; margin: -56px 0 0 -56px; transform: none;
    border-radius: 50%; display: grid; place-items: center; cursor: pointer;
    background: radial-gradient(circle at 34% 28%, #F8E9BE, #D9B25E 58%, #B8892B);
    color: var(--red-dark); font-size: 13.5px; font-weight: 700; letter-spacing: .16em; text-indent: .16em;
    border: 1px solid rgba(140, 90, 20, .3);
    box-shadow: 0 8px 18px -8px rgba(120, 60, 15, .55), inset 0 1px 2px rgba(255, 255, 255, .6);
    z-index: 5;
}
.play-wheel .wheel-center::after {
    content: ""; position: absolute; inset: 9px; border-radius: 50%; border: 1px solid rgba(140, 90, 20, .25);
}
.play-wheel .wheel-center.spinning { animation: fx-hub 1.1s linear infinite; }
@keyframes fx-hub { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.04); } }

/* ==========================================================================
   玩法：九宫格
   ========================================================================== */
.play-grid { display: grid; grid-template-columns: repeat(3, 138px); grid-template-rows: repeat(3, 138px); gap: 5px; }
.play-grid__cell {
    background: #FFFDF8; border: 1px solid rgba(184, 137, 43, .22); border-radius: 4px;
    display: grid; place-content: center; justify-items: center; gap: 7px; padding: 8px;
    text-align: center; transition: background .15s, box-shadow .15s;
}
.play-grid__ico {
    width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
    color: var(--red); background: radial-gradient(circle at 34% 28%, #FBF1DA, #F2E1BC);
}
.play-grid__ico svg { width: 19px; height: 19px; }
.play-grid__ico img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.play-grid__name { font-size: 12.5px; font-weight: 600; color: var(--ink); line-height: 1.2; }
.play-grid__prob { font-family: Georgia, "Times New Roman", serif; font-size: 10.5px; color: var(--ink-4); }
.play-grid__cell.is-on {
    background: #FFFBF1; border-color: rgba(184, 137, 43, .8);
    box-shadow: 0 0 0 2px rgba(184, 137, 43, .2), 0 10px 20px -12px rgba(140, 70, 20, .6);
}
.play-grid__cell.is-on .play-grid__ico { background: radial-gradient(circle at 34% 28%, #F9DFA4, #DDB65F); color: var(--red-dark); }
.play-grid__start {
    background: linear-gradient(168deg, #B82A20, #8E1A14); border: 1px solid rgba(240, 220, 168, .5);
    border-radius: 4px; color: #FFF3DA; display: grid; place-content: center; justify-items: center;
    cursor: pointer; box-shadow: inset 0 1px 0 rgba(255, 240, 216, .22), 0 10px 22px -12px rgba(140, 26, 20, .7);
    transition: filter .2s;
}
.play-grid__start:hover { filter: brightness(1.07); }
.play-grid__start b { font-size: 15px; letter-spacing: .1em; text-indent: .1em; }
.play-grid__start small { margin-top: 6px; font-size: 10.5px; color: rgba(255, 240, 216, .72); letter-spacing: .06em; }

/* ==========================================================================
   玩法：刮刮卡
   ========================================================================== */
.play-scratch { position: relative; width: min(420px, 80vw); }
.scratch-card {
    position: relative; height: 210px; border-radius: 4px; overflow: hidden;
    background: linear-gradient(150deg, #FFF9EC, #F6EBD6);
    border: 1px solid rgba(184, 137, 43, .5);
    box-shadow: inset 0 0 0 6px #FFFDF8, inset 0 0 0 7px rgba(184, 137, 43, .28);
    display: grid; place-content: center; justify-items: center; gap: 8px; text-align: center;
}
.scratch-result__ico { color: var(--red); }
.scratch-result__ico svg { width: 40px; height: 40px; }
.scratch-result__name { font-size: 24px; font-weight: 700; color: var(--ink); }
.scratch-result__tip { font-size: 12.5px; color: var(--ink-3); }
.scratch-canvas {
    position: absolute; inset: 0; width: 100%; height: 100%; cursor: grab; touch-action: none;
    border-radius: 3px;
}
.scratch-canvas:active { cursor: grabbing; }
.scratch-hint {
    position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%);
    font-size: 11.5px; letter-spacing: .16em; color: #8C8A82; background: #FFFDF8;
    border: 1px solid rgba(184, 137, 43, .3); border-radius: 999px; padding: 5px 14px; white-space: nowrap;
    pointer-events: none;
}

/* ==========================================================================
   玩法：翻牌 / 盲盒
   ========================================================================== */
.play-flip { display: flex; gap: 14px; }
.flip-card {
    width: 150px; height: 196px; border-radius: 4px; cursor: pointer; position: relative;
    perspective: 900px; background: none; border: 0; padding: 0;
}
.flip-card__inner {
    position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .7s var(--ease, cubic-bezier(.22,1,.36,1));
}
.flip-card.is-open .flip-card__inner { transform: rotateY(180deg); }
.flip-face {
    position: absolute; inset: 0; border-radius: 4px; backface-visibility: hidden;
    display: grid; place-content: center; justify-items: center; gap: 10px;
    border: 1px solid rgba(184, 137, 43, .5); box-shadow: var(--sh-2);
}
.flip-face--back {
    background:
        repeating-linear-gradient(45deg, rgba(184, 137, 43, .10) 0 6px, rgba(184, 137, 43, 0) 6px 12px),
        linear-gradient(150deg, #B3261E, #8E1A14);
    color: #F6DFAE;
}
.flip-face--back .flip-mark { width: 54px; height: 54px; border-radius: 50%; border: 1px solid rgba(240, 220, 168, .45); display: grid; place-items: center; }
.flip-face--back .flip-mark svg { width: 26px; height: 26px; }
.flip-face--back em { font-style: normal; font-size: 11px; letter-spacing: .22em; color: rgba(246, 223, 174, .8); }
.flip-face--front {
    transform: rotateY(180deg); background: #FFFDF8; text-align: center; padding: 12px;
}
.flip-face--front .nm { font-size: 16px; font-weight: 700; color: var(--ink); }
.flip-face--front .ic { color: var(--red); }
.flip-face--front .ic svg { width: 36px; height: 36px; }
.flip-card.is-dim { opacity: .45; }
.flip-no { position: absolute; left: 10px; top: 8px; font-family: Georgia, serif; font-size: 11px; color: rgba(246, 223, 174, .7); }

.play-box { display: flex; gap: 16px; align-items: flex-end; }
.box-item { cursor: pointer; display: grid; justify-items: center; gap: 10px; background: none; border: 0; padding: 0; }
.box-item__body {
    width: 128px; height: 120px; border-radius: 4px; position: relative;
    background: linear-gradient(160deg, #B3261E, #8E1A14); border: 1px solid rgba(240, 220, 168, .4);
    box-shadow: var(--sh-2); transition: transform .25s var(--ease, ease);
    display: grid; place-items: center; color: rgba(246, 223, 174, .85);
}
.box-item__body::before {
    content: ""; position: absolute; left: 0; right: 0; top: 22px; height: 12px;
    background: linear-gradient(180deg, rgba(240, 220, 168, .95), rgba(217, 178, 94, .95));
    border-top: 1px solid rgba(140, 90, 20, .3); border-bottom: 1px solid rgba(140, 90, 20, .3);
}
.box-item__body::after {
    content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 12px; margin-left: -6px;
    background: linear-gradient(180deg, rgba(240, 220, 168, .95), rgba(217, 178, 94, .95));
    border-left: 1px solid rgba(140, 90, 20, .22); border-right: 1px solid rgba(140, 90, 20, .22);
}
.box-item__body span { position: relative; z-index: 1; font-size: 22px; font-family: Georgia, serif; }
.box-item:hover .box-item__body { transform: translateY(-4px); }
.box-item__label { font-size: 11.5px; color: var(--ink-3); letter-spacing: .06em; }
.box-item.is-open .box-item__body {
    background: linear-gradient(160deg, #FFF9EC, #F6EBD6);
    border-color: rgba(184, 137, 43, .55); color: var(--red);
}
.box-item.is-open .box-item__body::before,
.box-item.is-open .box-item__body::after { opacity: .18; }
.box-item.is-open .box-item__body span { font-size: 13px; font-family: inherit; font-weight: 700; color: var(--ink); padding: 0 8px; text-align: center; }

/* ---------- 响应式 ---------- */
@media (max-width: 1080px) {
    .fx-hero { grid-template-columns: 1fr; gap: 18px; align-items: start; }
    .fx-side-stats { justify-content: flex-start; }
    .fx-stage { grid-template-columns: 1fr; }
    .fx-pool { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .play-grid { grid-template-columns: repeat(3, 106px); grid-template-rows: repeat(3, 106px); }
}
@media (max-width: 640px) {
    .fx-wrap { padding: 0 16px; }
    .fx-topbar__in { font-size: 11px; letter-spacing: .06em; padding: 7px 14px; text-align: center; }
    .fx-ornament { padding: 0 16px; }
    .fx-title { font-size: 30px; }
    .fx-title .fx-stamp { width: 32px; height: 32px; font-size: 17px; margin-left: 10px; vertical-align: 4px; }
    .fx-card__body { padding: 18px 12px; min-height: 0; }
    .fx-winners { grid-template-columns: 1fr; }
    .fx-steps { grid-template-columns: 1fr; }
    .fx-pool { grid-template-columns: 1fr; }
    .play-grid { grid-template-columns: repeat(3, 96px); grid-template-rows: repeat(3, 96px); }
    .play-grid__name { font-size: 11px; }
    .play-flip { gap: 8px; }
    .flip-card { width: 96px; height: 132px; }
    .flip-face--front .nm { font-size: 13px; }
    .play-box { gap: 8px; }
    .box-item__body { width: 96px; height: 92px; }
    .play-wheel .wheel-center { width: 84px; height: 84px; margin: -42px 0 0 -42px; font-size: 12px; }
    .play-wheel .wheel-pointer { width: 26px; height: 36px; margin-left: -13px; top: -9px; }
    .scratch-card { height: 168px; }
}

/* ============================================================
   首页补充：主 CTA 区 / 玩法交互态
   ============================================================ */
.fx-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.fx-actions .btn { min-width: 148px; }
.btn-lg { height: 50px; padding: 0 30px; font-size: 15px; }
.fx-tip {
    margin: 14px 0 0; font-size: 12.5px; color: var(--ink-3);
    letter-spacing: .02em; display: flex; align-items: center; gap: 8px;
}
.fx-tip::before { content: ''; width: 4px; height: 4px; background: var(--gold); transform: rotate(45deg); flex: 0 0 4px; }

/* 九宫格：开始按钮禁用态 */
.play-grid__start:disabled { filter: grayscale(.4) brightness(.9); cursor: not-allowed; }
.play-grid__cell { transition: background .18s ease, box-shadow .18s ease, transform .18s ease; }

/* 刮刮卡：涂层区域 */
.scratch-card { position: relative; }
.scratch-canvas { position: absolute; inset: 0; z-index: 2; cursor: grab; touch-action: none; }
.scratch-hint {
    position: static; margin: 16px 0 0; text-align: center;
    font-size: 12px; color: var(--ink-3); letter-spacing: .04em;
    transition: opacity .3s ease; pointer-events: none;
}

/* 翻牌 / 盲盒：未选中的置灰 */
.box-item.is-dim { opacity: .42; }
.flip-card, .box-item { transition: opacity .25s ease, transform .25s ease; }
.flip-card:not(.is-open):hover { transform: translateY(-4px); }

/* 玩法容器在小屏下的留白 */
@media (max-width: 560px) {
    .fx-actions .btn { flex: 1 1 140px; }
    .play-box { gap: 10px; }
}

/* 幽灵按钮：确保有可见边界，不然它看起来像一段普通文字 */
.btn-ghost {
    display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid var(--hair-2); background: rgba(255, 253, 248, .6);
    color: var(--ink-2); border-radius: var(--r-pill, 999px);
    font-size: 14px; font-weight: 600; letter-spacing: .02em; text-decoration: none;
    transition: border-color .2s ease, color .2s ease, background .2s ease;
}
.btn-ghost:hover { border-color: var(--gold); color: var(--red); background: #FFFDF8; }

/* 九宫格外框：金箔边 + 扇区间的细金缝 */
.play-grid { padding: 7px; background: var(--foil); box-shadow: 0 18px 40px -30px rgba(120, 60, 15, .6); }
.play-grid__cell { background: var(--card); }
.play-grid__start { border-radius: 0; }

.play-scratch { display: flex; flex-direction: column; align-items: center; }

/* 盲盒上的问号要看得见：默认继承墨色在红底上几乎没对比 */
.box-item__body span { color: #FFF3DA; font-weight: 600; }

/* 刮刮卡：flex 列布局下卡片默认按内容收缩，必须显式撑满 */
.play-scratch .scratch-card { width: 100%; }


/* 小屏：标题旁的福字印章会掉到第三行，单独居中太怪，直接收掉 */
@media (max-width: 560px) {
    .fx-title .fx-stamp { display: none; }
    .fx-side-stats { gap: 20px; justify-content: flex-start; margin-top: 18px; }
}

/* 没有可抽奖品时的占位：不能让玩法区变成一块空白 */
.play-empty { display: grid; justify-items: center; gap: 10px; padding: 40px 0; text-align: center; }
.play-empty__ico {
    width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center;
    background: radial-gradient(circle at 34% 28%, #FBF1DA, #F2E1BC); color: var(--gold);
}
.play-empty__ico svg { width: 28px; height: 28px; }
.play-empty__title { font-size: 15px; font-weight: 600; color: var(--ink); }
.play-empty__desc { font-size: 12.5px; color: var(--ink-3); }

/* 盲盒：金丝带是绝对定位伪元素，会盖住中间的“?”，明确层级 */
.box-item__body::before, .box-item__body::after { z-index: 0; }
.box-item__body > span { position: relative; z-index: 2; font-size: 26px; }
.box-item__body { width: 136px; height: 128px; }

/* “?” 正好落在金色竖丝带上，同色系几乎看不见 → 改深红描白 */
.box-item__body > span { color: #8E1A14; font-weight: 700; text-shadow: 0 1px 0 rgba(255,255,255,.45); }
.box-item.is-open .box-item__body > span { color: var(--ink); text-shadow: none; }
