:root {
    --pd-red: #e02e24;
    --pd-red-deep: #c4231a;
    --pd-red-soft: #fff1ee;
    --pd-yellow: #ffb300;
    --pd-yellow-deep: #f28b00;
    --pd-ink: #2a2320;
    --pd-gray: #8b7b74;
    --pd-line: #eee3de;
    --pd-bg: #f7f3f1;
    --pd-card: #ffffff;
    --pd-radius: 16px;
    --pd-shadow: 0 8px 24px rgba(66, 32, 22, .06);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body.pd-body {
    margin: 0;
    padding: 0 0 96px;
    background: var(--pd-bg);
    color: var(--pd-ink);
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.pd-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.pd-icon {
    width: 1em;
    height: 1em;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    vertical-align: -.125em;
}
.pd-inline-icon { font-size: 1em; }
.pd-cell-icon, .pd-prize-icon, .pd-modal-icon, .pd-tab-icon { font-size: inherit; }

img { max-width: 100%; display: block; }
a { color: var(--pd-red); text-decoration: none; }
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }

.pd-container {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 20px;
}

.pd-main {
    margin: 22px auto 26px;
    padding: 20px 22px 24px;
    background: #fff;
    border: 1px solid var(--pd-line);
    border-radius: 20px;
    box-shadow: 0 8px 26px rgba(66, 32, 22, .05);
}

.pd-topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, .94);
    backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--pd-line);
}
.pd-topbar-in {
    display: flex;
    align-items: center;
    gap: 24px;
    height: 62px;
}
.pd-brand { display: flex; align-items: center; gap: 10px; color: var(--pd-ink); flex: none; }
.pd-brand-mark {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: var(--pd-red);
    color: #fff;
}
.pd-brand-icon { width: 19px; height: 19px; }
.pd-brand-text b { display: block; font-size: 15px; line-height: 1.25; }
.pd-brand-text i { display: block; font-size: 11px; font-style: normal; color: var(--pd-gray); }

.pd-nav { display: flex; align-items: center; gap: 4px; flex: 1; }
.pd-nav a {
    padding: 7px 14px;
    border-radius: 999px;
    color: #5d4e47;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    transition: background .16s, color .16s;
}
.pd-nav a:hover { background: var(--pd-red-soft); color: var(--pd-red); }
.pd-nav a.on { background: var(--pd-red); color: #fff; font-weight: 600; }

.pd-user { display: flex; align-items: center; gap: 8px; flex: none; }
.pd-chance-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--pd-red-soft);
    color: var(--pd-red);
    font-size: 12px;
    font-weight: 500;
}
.pd-chance-chip b { font-size: 14px; }

.pd-bgm {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    border: 1px solid var(--pd-line);
    border-radius: 999px;
    background: #fff;
    color: var(--pd-gray);
    font-family: inherit;
    font-size: 12px;
    line-height: 1.4;
    cursor: pointer;
    transition: background .2s, color .2s, border-color .2s;
}
.pd-bgm:hover { border-color: var(--pd-red); color: var(--pd-red); }
.pd-bgm.is-on {
    background: var(--pd-red-soft);
    border-color: transparent;
    color: var(--pd-red);
    font-weight: 500;
}
.pd-bgm b { font-weight: 600; }
.pd-bgm-icon { font-size: 14px; }
.pd-bgm.is-on .pd-bgm-icon { animation: pd-bgm-beat 1.2s ease-in-out infinite; }

@keyframes pd-bgm-beat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.12); }
}
.pd-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff7a5c, var(--pd-red));
    color: #fff;
    font-size: 13px;
    font-weight: 700;
}

.pd-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 42px;
    padding: 0 22px;
    border: 1px solid transparent;
    border-radius: 10px;
    background: #f2ece9;
    color: var(--pd-ink);
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    white-space: nowrap;
    transition: background .16s, border-color .16s, color .16s, opacity .16s;
}
.pd-btn:hover { opacity: .92; }
.pd-btn:disabled { opacity: .5; cursor: not-allowed; }
.pd-btn-red { background: var(--pd-red); color: #fff; }
.pd-btn-red:hover { background: var(--pd-red-deep); }
.pd-btn-yellow { background: var(--pd-yellow); color: #5a3400; }
.pd-btn-yellow:hover { background: var(--pd-yellow-deep); color: #fff; }
.pd-btn-ghost { background: #fff; border-color: var(--pd-line); color: var(--pd-ink); }
.pd-btn-ghost:hover { border-color: var(--pd-red); color: var(--pd-red); }
.pd-btn-sm { height: 34px; padding: 0 14px; font-size: 13px; }
.pd-btn-lg { height: 48px; padding: 0 40px; font-size: 15px; }
.pd-btn-block { display: flex; width: 100%; }

.pd-hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    margin: 0 0 16px;
    padding: 32px 34px;
    border-radius: 20px;
    background:
        radial-gradient(120% 160% at 100% 0%, rgba(255, 196, 60, .55) 0%, rgba(255, 196, 60, 0) 55%),
        linear-gradient(120deg, #ef3b2d 0%, #d4241b 65%, #b81b13 100%);
    color: #fff;
    overflow: hidden;
}
.pd-hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .18);
    font-size: 12px;
    font-weight: 500;
}
.pd-hero h1 {
    margin: 12px 0 6px;
    font-size: 34px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: .5px;
}
.pd-hero-sub { font-size: 14px; color: rgba(255, 255, 255, .86); }
.pd-hero-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.pd-hero-tags span {
    padding: 5px 12px;
    border-radius: 8px;
    background: rgba(255, 255, 255, .16);
    font-size: 12px;
}

.pd-hero-panel {
    position: relative;
    flex: none;
    width: 300px;
    padding: 18px;
    border-radius: 14px;
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .22);
    overflow: hidden;
}
.pd-countdown, .pd-hero-stats { position: relative; z-index: 2; }
.pd-countdown { display: flex; flex-direction: column; gap: 4px; }
.pd-countdown span { font-size: 12px; color: rgba(255, 255, 255, .82); display: inline-flex; align-items: center; gap: 5px; }
.pd-countdown b {
    font-size: 20px;
    letter-spacing: .5px;
    font-variant-numeric: tabular-nums;
    color: var(--pd-yellow);
    transform-origin: left center;
    animation: pd-countdown-pulse 2s ease-in-out infinite;
}
@keyframes pd-countdown-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.09); }
}
.pd-hero-stats { display: flex; margin-top: 16px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .2); }
.pd-hero-stats div { flex: 1; text-align: center; }
.pd-hero-stats b { display: block; font-size: 20px; line-height: 1.2; }
.pd-hero-stats span { font-size: 11px; color: rgba(255, 255, 255, .8); }

/* 顶部横幅循环动画 */
.pd-hero { animation: pd-hero-breathe 5s ease-in-out infinite; }
@keyframes pd-hero-breathe {
    0%, 100% { box-shadow: 0 12px 30px rgba(184, 27, 19, .14); }
    50% { box-shadow: 0 18px 40px rgba(184, 27, 19, .3); }
}
.pd-hero-tag .pd-inline-icon { animation: pd-sparkle 2.6s ease-in-out infinite; }
@keyframes pd-sparkle {
    0%, 100% { transform: rotate(0) scale(1); }
    50% { transform: rotate(180deg) scale(1.15); }
}
.pd-hero-tags span { animation: pd-float 3.2s ease-in-out infinite; }
.pd-hero-tags span:nth-child(2) { animation-delay: .35s; }
.pd-hero-tags span:nth-child(3) { animation-delay: .7s; }
@keyframes pd-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}
.pd-countdown span .pd-inline-icon { animation: pd-tick 1.6s ease-in-out infinite; transform-origin: 50% 15%; }
@keyframes pd-tick {
    0%, 100% { transform: rotate(-14deg); }
    50% { transform: rotate(14deg); }
}
.pd-hero-stats div { animation: pd-float 3.6s ease-in-out infinite; }
.pd-hero-stats div:nth-child(2) { animation-delay: .4s; }
.pd-hero-stats div:nth-child(3) { animation-delay: .8s; }

/* 横幅动态背景装饰 */
.pd-hero-main, .pd-hero-panel { position: relative; z-index: 2; }
.pd-hero-deco { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.pd-hero-deco i {
    position: absolute;
    display: block;
    border-radius: 50%;
    background: rgba(255, 255, 255, .1);
    animation: pd-deco-drift 9s ease-in-out infinite;
}
.pd-hero-deco i:nth-child(1) { width: 130px; height: 130px; left: -34px; top: -46px; animation-duration: 11s; }
.pd-hero-deco i:nth-child(2) { width: 74px; height: 74px; left: 36%; bottom: -28px; background: rgba(255, 179, 0, .2); animation-duration: 8.5s; animation-delay: -2s; }
.pd-hero-deco i:nth-child(3) { width: 44px; height: 44px; right: 48%; top: 16px; background: rgba(255, 255, 255, .16); animation-duration: 7.5s; animation-delay: -4s; }
.pd-hero-deco i:nth-child(4) { width: 170px; height: 170px; right: -64px; bottom: -74px; background: rgba(255, 255, 255, .08); animation-duration: 13s; animation-delay: -6s; }
.pd-hero-deco i:nth-child(5) {
    width: 26px; height: 26px; left: 47%; top: 60%;
    border-radius: 6px; background: rgba(255, 179, 0, .32);
    animation: pd-deco-spin 6.5s ease-in-out infinite; animation-delay: -1s;
}
.pd-hero-deco i:nth-child(6) {
    width: 18px; height: 18px; right: 32%; top: 38%;
    border-radius: 5px; background: rgba(255, 255, 255, .26);
    animation: pd-deco-spin 5.5s ease-in-out infinite; animation-delay: -3s;
}
@keyframes pd-deco-drift {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
    33% { transform: translate3d(16px, -20px, 0) scale(1.06); }
    66% { transform: translate3d(-12px, 14px, 0) scale(.95); }
}
@keyframes pd-deco-spin {
    0% { transform: rotate(0) translateY(0); }
    50% { transform: rotate(180deg) translateY(-14px); }
    100% { transform: rotate(360deg) translateY(0); }
}
.pd-hero-panel::after {
    content: '';
    position: absolute;
    top: -60%;
    left: -60%;
    width: 42%;
    height: 220%;
    border-radius: 50%;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, .5) 50%, rgba(255, 255, 255, 0) 100%);
    transform: rotate(18deg);
    pointer-events: none;
    z-index: 1;
    animation: pd-panel-sweep 4.5s ease-in-out infinite;
}
@keyframes pd-panel-sweep {
    0% { left: -60%; opacity: 0; }
    8% { opacity: .9; }
    55%, 100% { left: 130%; opacity: 0; }
}

.pd-marquee {
    display: flex;
    align-items: center;
    gap: 12px;
    height: 46px;
    padding: 0 16px;
    margin-bottom: 16px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid var(--pd-line);
    overflow: hidden;
}
.pd-marquee-label {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    flex: none;
    color: var(--pd-red);
    font-size: 12px;
    font-weight: 600;
}
.pd-marquee-view { flex: 1; overflow: hidden; }
.pd-marquee-track {
    display: flex;
    gap: 10px;
    width: max-content;
    animation: pd-marquee 32s linear infinite;
}
.pd-marquee-item {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 4px 14px 4px 5px;
    background: var(--pd-red-soft);
    border-radius: 999px;
    color: #6b5a52;
    font-size: 12px;
    white-space: nowrap;
}
.pd-marquee-chip-icon {
    width: 22px;
    height: 22px;
    padding: 5px;
    border-radius: 50%;
    background: #fff;
    color: var(--pd-red);
    stroke-width: 2.2;
    box-sizing: border-box;
}
.pd-marquee-item b { color: var(--pd-ink); font-weight: 600; }
.pd-marquee-item em { color: var(--pd-red); font-style: normal; font-weight: 700; padding: 0 3px; }
@keyframes pd-marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* 中奖播报标签循环动画 */
.pd-marquee-label { animation: pd-label-breathe 2.4s ease-in-out infinite; }
@keyframes pd-label-breathe {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.04); }
}
.pd-marquee-label .pd-inline-icon { animation: pd-fire 1.4s ease-in-out infinite; transform-origin: 50% 80%; }
@keyframes pd-fire {
    0%, 100% { transform: scale(1) rotate(-6deg); }
    50% { transform: scale(1.14) rotate(6deg); }
}

.pd-alert {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    padding: 10px 16px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid var(--pd-line);
    color: #6b5a52;
    font-size: 13px;
}
.pd-alert.bad {
    background: #fff;
    border-color: #f6d5ce;
    animation: pd-alert-pulse 2.6s ease-in-out infinite;
}
@keyframes pd-alert-pulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 rgba(224, 46, 36, 0); }
    50% { transform: scale(1.012); box-shadow: 0 8px 20px rgba(224, 46, 36, .09); }
}
.pd-alert-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--pd-red-soft);
    color: var(--pd-red);
    font-size: 16px;
}
.pd-alert-body { display: flex; flex-direction: column; gap: 2px; line-height: 1.5; }
.pd-alert-body b { font-size: 13px; font-weight: 700; color: var(--pd-ink); }
.pd-alert-body span { font-size: 12px; color: var(--pd-gray); }

.pd-stage {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 16px;
    align-items: start;
    margin-bottom: 16px;
}
.pd-wheel-card, .pd-card {
    background: var(--pd-card);
    border: 1px solid var(--pd-line);
    border-radius: var(--pd-radius);
    box-shadow: var(--pd-shadow);
}
.pd-wheel-card { padding: 20px; }

.pd-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 14px;
}
.pd-card-head h2 { font-size: 17px; font-weight: 700; }
.pd-card-head h3 { font-size: 15px; font-weight: 700; }
.pd-pill {
    padding: 3px 10px;
    border-radius: 999px;
    background: #f7f0ec;
    color: var(--pd-gray);
    font-size: 12px;
    white-space: nowrap;
}

.pd-wheel {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 8px;
    width: 100%;
    max-width: 520px;
    aspect-ratio: 1 / 1;
    margin: 0 auto;
    padding: 8px;
    border-radius: 18px;
    background: #fff6f2;
    border: 1px solid var(--pd-line);
}

.pd-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 6px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid #f3e5de;
    text-align: center;
    overflow: hidden;
    transition: background .12s, border-color .12s, transform .12s;
}
.pd-cell img { width: 40px; height: 40px; object-fit: cover; border-radius: 8px; }
.pd-cell-icon { width: 26px; height: 26px; color: var(--pd-red); }
.pd-cell.is-none .pd-cell-icon { color: #c2b4ad; }
.pd-cell-title {
    font-size: 12px;
    line-height: 1.35;
    color: var(--pd-ink);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-all;
}
.pd-cell.is-none .pd-cell-title { color: #a99a93; }

.pd-cell.is-active {
    background: var(--pd-red-soft);
    border-color: var(--pd-red);
    transform: scale(1.015);
}
.pd-cell.is-win {
    background: #fff8e1;
    border-color: var(--pd-yellow);
    box-shadow: inset 0 0 0 2px rgba(255, 179, 0, .45);
}
.pd-cell.is-win .pd-cell-title { color: #9a5b00; font-weight: 700; }

.pd-draw {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 8px 6px;
    border: 1px solid var(--pd-red-deep);
    border-radius: 12px;
    background: var(--pd-red);
    color: #fff;
    font-family: inherit;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(224, 46, 36, .24);
    transition: background .16s, transform .16s, box-shadow .16s, opacity .16s;
}
.pd-draw:hover:not(:disabled) {
    background: var(--pd-red-deep);
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(224, 46, 36, .34);
}
.pd-draw:active:not(:disabled) {
    transform: translateY(1px) scale(.98);
    box-shadow: 0 4px 10px rgba(224, 46, 36, .24);
}
.pd-draw:focus-visible { outline: 2px solid var(--pd-yellow); outline-offset: 2px; }
.pd-draw:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; transform: none; }
.pd-draw-text { font-size: 16px; font-weight: 700; line-height: 1.2; letter-spacing: .06em; white-space: nowrap; }
.pd-draw-sub { font-size: 11px; color: rgba(255, 255, 255, .85); letter-spacing: .04em; white-space: nowrap; }

.pd-wheel-actions {
    display: flex;
    gap: 10px;
    margin-top: 18px;
}
.pd-wheel-actions .pd-btn { flex: 1; }

.pd-side { display: flex; flex-direction: column; gap: 16px; }
.pd-card { padding: 18px; }

.pd-chance-card .pd-btn-block + .pd-btn-block { margin-top: 10px; }

.pd-chance-hero {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 10px;
}
.pd-chance-num { display: flex; align-items: baseline; gap: 6px; }
.pd-chance-num b { font-size: 32px; line-height: 1; color: var(--pd-red); font-weight: 800; }
.pd-chance-num span { font-size: 12px; color: var(--pd-gray); }
.pd-chance-rate { padding-bottom: 3px; font-size: 12px; color: var(--pd-gray); white-space: nowrap; }
.pd-chance-rate b { font-size: 13px; font-weight: 700; color: var(--pd-ink); }

.pd-progress {
    height: 6px;
    border-radius: 999px;
    background: #f3e9e4;
    overflow: hidden;
    margin-bottom: 14px;
}
.pd-progress i {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #ff8a5c, var(--pd-red));
    transition: width .3s ease;
}

.pd-chance-list { display: grid; gap: 8px; list-style: none; padding: 0; margin: 0 0 14px; }
.pd-chance-list.cols-2 { grid-template-columns: repeat(2, 1fr); }
.pd-chance-list.cols-3 { grid-template-columns: repeat(3, 1fr); }
.pd-chance-list li {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 10px 6px;
    border-radius: 10px;
    background: #fdf7f4;
    font-size: 11px;
    color: var(--pd-gray);
    text-align: center;
}
.pd-chance-list li b { font-size: 17px; font-weight: 700; line-height: 1.1; color: var(--pd-ink); }
.pd-chance-list li b.is-bump { animation: pd-points-bump .7s ease; }
.pd-chance-list li b.is-cut { animation: pd-points-cut .7s ease; }
@keyframes pd-points-bump {
    0% { transform: scale(1); color: var(--pd-ink); }
    35% { transform: scale(1.28); color: var(--pd-red); }
    100% { transform: scale(1); color: var(--pd-ink); }
}
@keyframes pd-points-cut {
    0% { transform: translateX(0); color: var(--pd-ink); }
    25% { transform: translateX(-3px) scale(.94); color: #d4380d; }
    55% { transform: translateX(3px) scale(.94); color: #d4380d; }
    100% { transform: translateX(0); color: var(--pd-ink); }
}
.pd-chance-list li span { white-space: nowrap; }

.pd-invite-text { margin-bottom: 12px; font-size: 12px; color: var(--pd-gray); line-height: 1.7; }

.pd-invite-stats { display: grid; gap: 8px; list-style: none; padding: 0; margin: 0; }
.pd-invite-stats.cols-2 { grid-template-columns: repeat(2, 1fr); }
.pd-invite-stats.cols-3 { grid-template-columns: repeat(3, 1fr); }
.pd-invite-stats li {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 10px 6px;
    border-radius: 10px;
    background: #fdf7f4;
    text-align: center;
}
.pd-invite-stats li b { font-size: 17px; font-weight: 700; line-height: 1.1; color: var(--pd-red); }
.pd-invite-stats li span { font-size: 11px; color: var(--pd-gray); white-space: nowrap; }
.pd-invite-stats + .pd-invite-box,
.pd-invite-stats + .pd-btn-block { margin-top: 14px; }

.pd-invite-box { display: flex; gap: 8px; }
.pd-invite-box input {
    flex: 1;
    min-width: 0;
    height: 34px;
    padding: 0 10px;
    border: 1px solid var(--pd-line);
    border-radius: 8px;
    background: #faf7f5;
    color: var(--pd-gray);
    font-size: 12px;
}
.pd-invite-box input:focus { outline: none; border-color: var(--pd-red); }
.pd-invite-code { margin-top: 10px; font-size: 12px; color: var(--pd-gray); }
.pd-invite-code b { color: var(--pd-red); letter-spacing: 1px; }

.pd-block { margin-bottom: 16px; }
.pd-block-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}
.pd-block-head h2 { font-size: 18px; font-weight: 700; }
.pd-sub { font-size: 12px; color: var(--pd-gray); }

.pd-prize-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}
.pd-prize {
    display: flex;
    flex-direction: column;
    background: var(--pd-card);
    border: 1px solid var(--pd-line);
    border-radius: 16px;
    overflow: hidden;
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.pd-prize:hover {
    transform: translateY(-3px);
    border-color: #f2d3c8;
    box-shadow: 0 10px 24px rgba(66, 32, 22, .08);
}
.pd-prize-cover {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 128px;
    background: linear-gradient(160deg, #fff4ee 0%, #ffe4d9 100%);
    overflow: hidden;
}
.pd-prize-cover::before {
    content: "";
    position: absolute;
    right: -34px;
    top: -46px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .5);
}
.pd-prize-cover::after {
    content: "";
    position: absolute;
    left: -20px;
    bottom: -36px;
    width: 84px;
    height: 84px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .35);
}
.pd-prize.is-virtual .pd-prize-cover { background: linear-gradient(160deg, #eef4ff 0%, #dde8ff 100%); }
.pd-prize.is-chance .pd-prize-cover { background: linear-gradient(160deg, #fffaea 0%, #ffedb8 100%); }
.pd-prize.is-none .pd-prize-cover { background: linear-gradient(160deg, #f7f4f2 0%, #ece5e1 100%); }
.pd-prize-cover img { position: relative; width: 100%; height: 100%; object-fit: cover; }
.pd-prize-iconbox {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .85);
    box-shadow: 0 4px 12px rgba(66, 32, 22, .08);
}
.pd-prize-icon { width: 26px; height: 26px; color: var(--pd-red); }
.pd-prize.is-virtual .pd-prize-icon { color: #3b6fd4; }
.pd-prize.is-chance .pd-prize-icon { color: #b97900; }
.pd-prize.is-none .pd-prize-icon { color: #a99a93; }
.pd-prize-badge {
    position: absolute;
    z-index: 2;
    top: 10px;
    right: 10px;
    padding: 2px 9px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .88);
    color: var(--pd-ink);
    font-size: 11px;
    line-height: 1.6;
    white-space: nowrap;
}
.pd-prize-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 12px 14px 14px;
}
.pd-prize-body h3 {
    min-height: 40px;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.pd-prize-meta { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: auto; }
.pd-tag {
    padding: 2px 8px;
    border-radius: 6px;
    background: var(--pd-red-soft);
    color: var(--pd-red);
    font-size: 11px;
    white-space: nowrap;
}
.pd-prize.is-virtual .pd-tag { background: #eef4ff; color: #3b6fd4; }
.pd-prize.is-chance .pd-tag { background: #fff7e0; color: #a35a00; }
.pd-prize-stock { font-size: 11px; color: var(--pd-gray); white-space: nowrap; }
.pd-prize-desc {
    margin-top: 8px;
    font-size: 11px;
    color: var(--pd-gray);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.pd-prize-grid-lg {
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 16px;
}

.pd-head-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.pd-head-chips span {
    padding: 5px 12px;
    border: 1px solid var(--pd-line);
    border-radius: 999px;
    background: #fff;
    color: var(--pd-gray);
    font-size: 12px;
}
.pd-head-chips b { color: var(--pd-red); font-size: 13px; }

.pd-rank {
    list-style: none;
    padding: 8px 18px;
    margin: 0;
    background: var(--pd-card);
    border: 1px solid var(--pd-line);
    border-radius: var(--pd-radius);
}
.pd-rank li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #f7eeea;
    font-size: 13px;
}
.pd-rank li:last-child { border-bottom: none; }
.pd-rank-no {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    flex: none;
    border-radius: 6px;
    background: #f3ece8;
    color: var(--pd-gray);
    font-size: 11px;
    font-weight: 700;
}
.pd-rank li.is-top .pd-rank-no { background: var(--pd-red); color: #fff; }
.pd-rank-name { flex: 1; color: var(--pd-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pd-rank-count { color: var(--pd-red); font-weight: 600; font-size: 12px; }

.pd-page-head { margin: 4px 0 16px; }
.pd-page-head h1 { font-size: 24px; font-weight: 800; }
.pd-page-head p { margin-top: 6px; font-size: 13px; color: var(--pd-gray); }

.pd-invitee-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
}
.pd-invitee-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: var(--pd-card);
    border: 1px solid var(--pd-line);
    border-radius: 12px;
}
.pd-invitee-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    flex: none;
    border-radius: 50%;
    background: var(--pd-red-soft);
    color: var(--pd-red);
    font-size: 12px;
    font-weight: 700;
}
.pd-invitee-name {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 13px;
}
.pd-invitee-time { flex: none; font-size: 11px; color: var(--pd-gray); }

.pd-ftabs { display: flex; gap: 8px; margin-bottom: 14px; }
.pd-ftab {
    padding: 6px 16px;
    border: 1px solid var(--pd-line);
    border-radius: 999px;
    background: #fff;
    color: var(--pd-gray);
    font-size: 12px;
    font-family: inherit;
    cursor: pointer;
    transition: all .16s;
}
.pd-ftab:hover { border-color: var(--pd-red); color: var(--pd-red); }
.pd-ftab.on { background: var(--pd-red); border-color: var(--pd-red); color: #fff; }

.pd-table-wrap { overflow-x: auto; }
.pd-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.pd-table th, .pd-table td {
    padding: 11px 12px;
    border-bottom: 1px solid #f7eeea;
    text-align: left;
    vertical-align: middle;
}
.pd-table th { background: #fffaf8; color: var(--pd-gray); font-weight: 600; white-space: nowrap; }
.pd-table tr:last-child td { border-bottom: none; }
.pd-table strong { font-weight: 600; }
.pd-muted { color: var(--pd-gray); font-size: 12px; }
.pd-record-note { display: block; margin-top: 3px; font-size: 11px; color: var(--pd-gray); }

.pd-status {
    display: inline-block;
    padding: 2px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
}
.pd-status.is-new { background: #fff4d6; color: #a35a00; }
.pd-status.is-delivered { background: #e8f8ef; color: #0b7a44; }
.pd-status.is-rejected { background: #fff0ed; color: #b42318; }
.pd-status.is-none { background: #f3f1ef; color: var(--pd-gray); }

.pd-empty {
    padding: 44px 20px;
    text-align: center;
    color: var(--pd-gray);
    font-size: 13px;
}

.pd-pager {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 16px;
}
.pd-pager button {
    min-width: 32px;
    height: 32px;
    padding: 0 10px;
    border: 1px solid var(--pd-line);
    border-radius: 8px;
    background: #fff;
    color: #5d4e47;
    font-size: 12px;
    line-height: 1;
    cursor: pointer;
    transition: all .15s ease;
}
.pd-pager button:hover:not(:disabled):not(.on) {
    border-color: var(--pd-red);
    color: var(--pd-red);
    background: #fff7f5;
}
.pd-pager button.on {
    border-color: var(--pd-red);
    background: var(--pd-red);
    color: #fff;
    font-weight: 700;
}
.pd-pager button.is-ellipsis { color: var(--pd-gray); }
.pd-pager button:disabled { opacity: .45; cursor: not-allowed; }

.pd-rules-card p {
    margin-bottom: 10px;
    font-size: 13px;
    color: #5d4e47;
    line-height: 1.9;
}
.pd-rules-card p:last-child { margin-bottom: 0; }
.pd-rules-card h2,
.pd-rules-card h3,
.pd-rules-card h4 { margin: 18px 0 10px; font-size: 15px; font-weight: 700; color: var(--pd-ink); }
.pd-rules-card h2:first-child,
.pd-rules-card h3:first-child { margin-top: 0; }
.pd-rules-card ul,
.pd-rules-card ol { margin: 0 0 12px 20px; padding: 0; color: #5d4e47; font-size: 13px; line-height: 1.9; }
.pd-rules-card li { margin-bottom: 4px; }
.pd-rules-card a { color: var(--pd-red); text-decoration: underline; }
.pd-rules-card strong,
.pd-rules-card b { font-weight: 700; color: var(--pd-ink); }
.pd-rules-card img { max-width: 100%; height: auto; border-radius: 10px; margin: 8px 0; }

.pd-footer {
    margin-top: 30px;
    padding: 22px 0 10px;
    border-top: 1px solid var(--pd-line);
}
.pd-footer-in {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 12px;
    color: var(--pd-gray);
}
.pd-footer-in a { color: var(--pd-gray); }
.pd-footer-in a:hover { color: var(--pd-red); }

.pd-tabbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    display: none;
    background: rgba(255, 255, 255, .97);
    border-top: 1px solid var(--pd-line);
    padding: 6px 0 calc(6px + env(safe-area-inset-bottom));
}
.pd-tabbar a {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 4px 0;
    color: var(--pd-gray);
    font-size: 11px;
}
.pd-tabbar a.on { color: var(--pd-red); font-weight: 600; }
.pd-tab-icon { width: 20px; height: 20px; }

.pd-modal {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.pd-modal.is-open { display: flex; }
.pd-modal-mask { position: absolute; inset: 0; background: rgba(28, 16, 12, .5); }
.pd-modal-card {
    position: relative;
    width: 100%;
    max-width: 360px;
    padding: 26px 22px 20px;
    border-radius: 18px;
    background: #fff;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .22);
    animation: pd-pop .2s ease-out;
    overflow: hidden;
}
@keyframes pd-pop {
    from { transform: translateY(10px) scale(.97); opacity: .5; }
    to { transform: none; opacity: 1; }
}
.pd-modal-card h3 { font-size: 18px; font-weight: 700; margin: 8px 0 6px; }
.pd-modal-card > p { font-size: 13px; color: var(--pd-gray); line-height: 1.7; }
.pd-modal-emoji { display: inline-flex; font-size: 40px; color: var(--pd-red); }
.pd-modal-icon { width: 44px; height: 44px; }
.pd-result-prize {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 14px 0 4px;
    padding: 8px 18px;
    border-radius: 10px;
    background: #fff8e1;
    border: 1px dashed var(--pd-yellow);
    color: #9a5b00;
    font-size: 14px;
    font-weight: 700;
}
.pd-modal-actions { display: flex; gap: 10px; margin-top: 18px; }
.pd-modal-actions .pd-btn { flex: 1; }

.pd-modal-form { text-align: left; }
.pd-modal-form h3, .pd-modal-form > p { text-align: center; }
.pd-modal-form label { display: block; margin-bottom: 12px; font-size: 12px; color: var(--pd-gray); }
.pd-modal-form input, .pd-modal-form textarea {
    display: block;
    width: 100%;
    margin-top: 5px;
    padding: 9px 12px;
    border: 1px solid var(--pd-line);
    border-radius: 10px;
    background: #faf7f5;
    color: var(--pd-ink);
    font-size: 13px;
    font-family: inherit;
    resize: vertical;
}
.pd-modal-form input:focus, .pd-modal-form textarea:focus {
    outline: none;
    border-color: var(--pd-red);
    background: #fff;
}

.pd-confetti { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.pd-confetti i {
    position: absolute;
    top: -12px;
    display: block;
    border-radius: 2px;
    animation: pd-fall linear forwards;
}
@keyframes pd-fall {
    to { transform: translateY(320px) rotate(540deg); opacity: 0; }
}

.pd-toast {
    position: fixed;
    left: 50%;
    bottom: 110px;
    z-index: 120;
    max-width: 80vw;
    padding: 10px 18px;
    border-radius: 10px;
    background: rgba(42, 35, 32, .92);
    color: #fff;
    font-size: 13px;
    opacity: 0;
    transform: translate(-50%, 10px);
    pointer-events: none;
    transition: opacity .2s, transform .2s;
}
.pd-toast.is-show { opacity: 1; transform: translate(-50%, 0); }
.pd-toast.is-error { background: rgba(180, 35, 24, .95); }
.pd-toast.is-success { background: rgba(11, 122, 68, .95); }

@media (max-width: 960px) {
    .pd-hero { padding: 24px; }
    .pd-hero h1 { font-size: 26px; }
    .pd-hero-panel { width: 260px; }
    .pd-stage { grid-template-columns: 1fr; }
    .pd-side { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
    .pd-prize-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .pd-prize-grid-lg { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
    body.pd-body { padding-bottom: 78px; }
    .pd-container { padding: 0 14px; }
    .pd-topbar-in { height: 54px; gap: 12px; }
    .pd-nav { display: none; }
    .pd-user { margin-left: auto; }
    .pd-bgm { padding: 6px 10px; }
    .pd-bgm span { display: none; }
    .pd-brand-text i { display: none; }

    .pd-hero {
        flex-direction: column;
        align-items: stretch;
        gap: 18px;
        padding: 20px;
        margin: 14px 0 12px;
        border-radius: 16px;
    }
    .pd-hero h1 { font-size: 22px; }
    .pd-hero-panel { width: auto; padding: 14px; }
    .pd-hero-stats { margin-top: 12px; padding-top: 12px; }

    .pd-wheel-card { padding: 12px; border-radius: 14px; }
    .pd-card { padding: 14px; }
    .pd-wheel { gap: 6px; padding: 6px; border-radius: 14px; }
    .pd-cell { gap: 4px; padding: 6px 4px; border-radius: 10px; }
    .pd-cell-icon { width: 22px; height: 22px; }
    .pd-cell img { width: 30px; height: 30px; }
    .pd-cell-title { font-size: 11px; }
    .pd-draw { border-radius: 10px; gap: 3px; }
    .pd-draw-text { font-size: 14px; }
    .pd-draw-sub { font-size: 10px; }

    .pd-prize-grid, .pd-prize-grid-lg { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pd-prize-grid-lg { gap: 12px; }
    .pd-prize-cover { height: 104px; }
    .pd-prize-iconbox { width: 46px; height: 46px; }
    .pd-prize-icon { width: 22px; height: 22px; }
    .pd-prize-body { padding: 10px 12px 12px; }
    .pd-prize-body h3 { min-height: 0; font-size: 13px; }
    .pd-prize-badge { top: 8px; right: 8px; font-size: 10px; }
    .pd-block-head h2 { font-size: 16px; }

    .pd-table th, .pd-table td { padding: 9px 8px; font-size: 12px; }
    .pd-table th:nth-child(2) { display: none; }
    .pd-table td:nth-child(2) { display: none; }

    .pd-tabbar { display: flex; }
    .pd-footer { margin-top: 20px; padding-bottom: 4px; }
    .pd-page-head { margin: 0 0 12px; }
    .pd-page-head h1 { font-size: 20px; }
    .pd-main { margin-top: 14px; padding: 16px 14px 18px; border-radius: 16px; }

    .pd-toast { bottom: 86px; }
}

@media (prefers-reduced-motion: reduce) {
    .pd-marquee-track { animation: none; }
    .pd-modal-card, .pd-confetti i { animation: none; }
    .pd-hero, .pd-hero-tag .pd-inline-icon, .pd-hero-tags span,
    .pd-countdown span .pd-inline-icon, .pd-hero-stats div,
    .pd-countdown b,
    .pd-marquee-label, .pd-marquee-label .pd-inline-icon { animation: none; }
    .pd-alert.bad { animation: none; }
    .pd-hero-panel::after { display: none; }
    .pd-hero-deco i { animation: none; }
}

@media print {
    .pd-topbar, .pd-tabbar, .pd-footer, .pd-modal { display: none !important; }
}
