/* Lucky Spin - Lottery Page Styles (方案B: 整图旋转) */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

@font-face {
    font-family: 'Roboto';
    src: url('../font/Roboto-Regular.ttf') format('truetype');
    font-weight: 400;
    font-display: swap;
}
@font-face {
    font-family: 'Roboto';
    src: url('../font/Roboto-Medium.ttf') format('truetype');
    font-weight: 500;
    font-display: swap;
}
@font-face {
    font-family: 'Roboto';
    src: url('../font/Roboto-Bold.ttf') format('truetype');
    font-weight: 700;
    font-display: swap;
}
@font-face {
    font-family: 'AlimamaShuHeiTi';
    src: url('../font/AlimamaShuHeiTi-Bold.woff2') format('woff2');
    font-weight: 700;
    font-display: swap;
}

body {
    background: url('../lucky/wheel/bg.png') no-repeat center top;
    background-size: 100% 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;
    padding: 0;
    overflow-x: hidden;
}

/* 顶部 logo */
.topbar {
    position: fixed;
    top: clamp(16px, 4vw, 32px);
    left: clamp(12px, 3vw, 18px);
    z-index: 1001;
}
.topbar .logo {
    height: 22px;
    width: auto;
}

/* 主容器 */
.container {
    width: 100%;
    max-width: 480px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 16px;
    margin-top: 102px;
}

/* 标题 */
.title-group {
    text-align: center;
    margin-bottom: 13px;
}
.title-cn {
    font-size: 43px;
    font-weight: 700;
    color: #fff;
    font-family: 'AlimamaShuHeiTi', sans-serif;
    line-height: 1;
    margin: 0;
    text-transform: uppercase;
    background: linear-gradient(180deg, rgba(10,163,230,1) 0%, rgba(252,253,252,1) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.6));
}
.title-en {
    font-size: 19px;
    font-weight: 700;
    color: #efffe3;
    font-family: 'AlimamaShuHeiTi', sans-serif;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    margin-top: 1.5px;
    line-height: 36px;
    letter-spacing: 0;
    text-transform: uppercase;
}

/* 转盘舞台 */
.wheel-stage {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* 转盘外层容器 */
.wheel-wrapper {
    position: relative;
    width: 326px;
    height: 326px;
}

/* 转盘旋转部分 */
.wheel-spin {
    position: absolute;
    inset: 0;
    border-radius: 50%;
}
.wheel-bg {
    width: 100%;
    height: 100%;
    display: block;
}

/* 指针（固定在中心，三角朝上） */
.pointer {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 26%;
    z-index: 10;
    cursor: pointer;
    transition: transform 0.1s;
}
.pointer:active {
    transform: translate(-50%, -50%) scale(0.95);
}

/* 奖品绝对定位 */
.prize-img {
    position: absolute;
    transform: translate(-50%, -50%);
    object-fit: contain;
    pointer-events: none;
}
.prize-lbl {
    position: absolute;
    transform: translate(-50%, -50%);
    font-size: 10px;
    color: #1a3a5c;
    font-weight: 700;
    white-space: nowrap;
    pointer-events: none;
}

/* 底座 */
.stand {
    width: 257px;
    margin-top: -50px;
    pointer-events: none;
}

/* 规则和记录按钮 */
.action-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 26px;
    margin-top: 56px;
    width: 100%;
    padding-bottom: 40px;
}
.action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 44px;
    border-radius: 25px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: #050A18;
    background: linear-gradient(180deg, #d4eaf7 0%, #f0faff 100%);
    box-shadow: 0 4px 0 #a3cde0, 0 6px 12px rgba(0,0,0,0.15);
    transition: all 0.2s;
}
.action-btn:first-child {
    width: 205px;
}
.action-btn:last-child {
    width: 201px;
}
.action-btn img {
    width: 20px;
    height: 20px;
}
.action-btn:active {
    transform: translateY(3px);
    box-shadow: 0 1px 0 #a3cde0;
}

/* 中奖结果弹窗 */
.result-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
    align-items: flex-start;
    justify-content: center;
    padding-top: 117.5px;
}
.result-content {
    background: #fff;
    border-radius: 10px;
    width: 320px;
    height: 522px;
    position: relative;
    text-align: center;
    overflow: visible;
}
.confetti-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 320px;
    height: 198px;
    object-fit: contain;
    pointer-events: none;
}
.result-title {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 37px;
    color: rgba(9,171,242,1);
    font-size: 26px;
    font-weight: 600;
    line-height: 30.5px;
    white-space: nowrap;
}
.result-prize-img {
    position: absolute;
    top: 93px;
    left: 50%;
    transform: translateX(-50%);
    width: 74.5px;
    height: 77.5px;
    object-fit: contain;
}
.result-prize {
    position: absolute;
    top: 198px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 16px;
    color: #050A18;
    font-weight: 600;
    line-height: 22px;
    white-space: nowrap;
    text-align: center;
}
.prize-highlight {
    color: rgba(9,171,242,1);
}
.result-code {
    display: none;
}
.result-qr-wrap {
    position: absolute;
    top: 231px;
    left: 50%;
    transform: translateX(-50%);
}
.result-qr {
    width: 144px;
    height: 145px;
    display: none;
}
.qr-check-overlay {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    width: 58px;
    height: 58px;
}
.result-instruction {
    position: absolute;
    top: 383px;
    left: 50%;
    transform: translateX(-50%);
    width: 215px;
    font-size: 14px;
    color: #050A18;
    line-height: 22px;
    text-align: center;
}
.result-btn {
    position: absolute;
    top: 443px;
    left: 50%;
    transform: translateX(-50%);
    background: #050A18;
    color: #fff;
    border: none;
    border-radius: 26px;
    width: 270px;
    height: 50px;
    font-size: 18px;
    cursor: pointer;
    line-height: 21px;
}

/* 规则弹窗 */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
    align-items: flex-start;
    justify-content: center;
    padding-top: 195px;
}
.modal-content {
    background: #fff;
    border-radius: 10px;
    padding: 20px 25px 41px 25px;
    width: 320px;
}
.modal-title {
    font-size: 20px;
    font-weight: 600;
    color: #000;
    text-align: center;
    line-height: 22px;
}
.modal-rules {
    margin-top: 22px;
}
.rule-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 22px;
}
.rule-item:first-child {
    margin-top: 0;
}
.rule-dot {
    width: 7px;
    height: 7px;
    min-width: 7px;
    background: #050A18;
    border-radius: 50%;
    margin-top: 8px;
}
.rule-text {
    font-size: 16px;
    color: #050A18;
    line-height: 22px;
}
.modal-close {
    background: #050A18;
    color: #fff;
    border: none;
    border-radius: 26px;
    padding: 16px;
    font-size: 18px;
    cursor: pointer;
    width: 100%;
    margin-top: 32px;
    line-height: 21px;
}

/* 响应式 */
@media (max-width: 360px) {
    .wheel-wrapper {
        width: 290px;
        height: 290px;
    }
    .stand { width: 228px; }
}
