/* ==========================================================
   召唤神龙 · 宝石版  样式
   移动端优先，深海主题
   ========================================================== */

:root {
    --bg-deep: #031a26;
    --bg-mid: #073148;
    --bg-soft: #0b4059;
    --text: #eaf6ff;
    --text-dim: #8fb3c7;
    --accent: #ff4d6a;
    --accent-2: #ff7a45;
    --gold: #ffd166;
    --line: rgba(140, 205, 235, .16);
    --card: rgba(10, 54, 76, .72);
    --card-2: rgba(7, 42, 60, .86);
    --shadow: 0 12px 32px rgba(0, 0, 0, .38);
    --radius: 18px;
    --safe-top: env(safe-area-inset-top, 0px);
    --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html,
body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    overscroll-behavior: none;
}

body {
    background: radial-gradient(120% 80% at 50% 0%, var(--bg-soft) 0%, var(--bg-mid) 42%, var(--bg-deep) 100%);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
    font-size: 15px;
    line-height: 1.5;
    user-select: none;
    -webkit-user-select: none;
}

/* ==========================================================
   图片保护：禁止长按保存 / 拖拽 / 右键另存
   ========================================================== */
img,
canvas,
video {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    user-select: none;
    -webkit-user-drag: none;
    pointer-events: none;
}

/* 图标容器：内部由 canvas 绘制，容器本身没有任何背景图。
   长按命中的是空容器，浏览器不会出现"存储图片"选项。 */
.gem-icon,
.gem-icon-lg,
.gem-icon-sm,
.avatar {
    position: relative;
    display: inline-block;
    flex: 0 0 auto;
    overflow: hidden;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

.icon-cv {
    display: block;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.gem-icon {
    width: 18px;
    height: 18px;
    vertical-align: middle;
    filter: drop-shadow(0 0 6px rgba(255, 77, 106, .55));
}

.gem-icon-lg {
    width: 34px;
    height: 34px;
    vertical-align: middle;
    filter: drop-shadow(0 0 10px rgba(255, 77, 106, .6));
}

.gem-icon-sm {
    width: 13px;
    height: 13px;
    vertical-align: -2px;
    filter: none;
}

.hide {
    display: none !important;
}

#app {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
}

/* ---------------- 顶栏 ---------------- */
.topbar {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: calc(var(--safe-top) + 10px) 16px 10px;
    position: relative;
    z-index: 20;
}

.brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: .5px;
    color: #cfe9f7;
}

.brand-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 10px var(--accent);
}

.wallet {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px 6px 8px;
    border-radius: 999px;
    background: rgba(3, 26, 38, .7);
    border: 1px solid var(--line);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    color: #fff;
}


/* ---------------- 视图 ---------------- */
.view {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0 16px calc(18px + var(--safe-bottom));
    animation: fadeIn .28s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

/* ---------------- 登录 / 注册 ---------------- */
.view-auth {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 26px;
    padding-top: calc(var(--safe-top) + 20px);
}

.auth-hero {
    position: relative;
    text-align: center;
    padding: 18px 0 4px;
}

.hero-glow {
    position: absolute;
    left: 50%;
    top: 10px;
    width: 220px;
    height: 220px;
    transform: translateX(-50%);
    background: radial-gradient(circle, rgba(255, 122, 69, .28) 0%, rgba(255, 77, 106, .12) 42%, transparent 70%);
    filter: blur(8px);
    pointer-events: none;
}

.auth-hero h1 {
    position: relative;
    margin: 0;
    font-size: 34px;
    letter-spacing: 6px;
    font-weight: 700;
    background: linear-gradient(180deg, #fff 0%, #9fd8ee 60%, #5fa9c6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 6px 24px rgba(0, 0, 0, .4);
}

.auth-hero p {
    position: relative;
    margin: 10px 0 0;
    font-size: 13px;
    color: var(--text-dim);
    letter-spacing: 1px;
}

.card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.auth-card {
    padding: 18px;
}

.tabs {
    display: flex;
    gap: 6px;
    padding: 4px;
    border-radius: 12px;
    background: rgba(3, 26, 38, .6);
    margin-bottom: 18px;
}

.tab {
    flex: 1;
    border: 0;
    padding: 10px 0;
    border-radius: 9px;
    background: transparent;
    color: var(--text-dim);
    font-size: 15px;
    font-family: inherit;
    transition: .2s;
    cursor: pointer;
}

.tab.active {
    background: linear-gradient(135deg, rgba(255, 77, 106, .9), rgba(255, 122, 69, .9));
    color: #fff;
    font-weight: 600;
    box-shadow: 0 6px 18px rgba(255, 77, 106, .3);
}

.form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.field>span {
    font-size: 12.5px;
    color: var(--text-dim);
    letter-spacing: .5px;
}

.field>span i {
    font-style: normal;
    color: var(--accent);
    font-size: 11px;
    margin-left: 4px;
}

.field input {
    width: 100%;
    padding: 13px 14px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: rgba(3, 26, 38, .62);
    color: var(--text);
    font-size: 16px;
    font-family: inherit;
    outline: none;
    transition: .2s;
}

.field input::placeholder {
    color: #5b8399;
}

.field input:focus {
    border-color: rgba(255, 122, 69, .65);
    box-shadow: 0 0 0 3px rgba(255, 122, 69, .12);
}

.tip {
    margin: 0;
    text-align: center;
    font-size: 12px;
    color: var(--text-dim);
}

/* ---------------- 按钮 ---------------- */
.btn {
    border: 0;
    border-radius: 13px;
    padding: 12px 18px;
    font-size: 15px;
    font-family: inherit;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    transition: transform .12s, filter .2s, opacity .2s;
}

.btn:active {
    transform: scale(.97);
}

.btn:disabled {
    opacity: .55;
    pointer-events: none;
}

.btn-lg {
    padding: 15px;
    font-size: 16px;
    letter-spacing: 2px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
    color: #fff;
    box-shadow: 0 10px 26px rgba(255, 77, 106, .32);
}

.btn-ghost {
    background: rgba(140, 205, 235, .1);
    border: 1px solid var(--line);
    color: #bfe0f0;
    font-weight: 500;
}

.btn-ghost:active {
    background: rgba(140, 205, 235, .18);
}

.icon-btn {
    border: 1px solid var(--line);
    background: rgba(3, 26, 38, .6);
    color: var(--text-dim);
    border-radius: 10px;
    padding: 7px 12px;
    font-size: 13px;
    font-family: inherit;
    cursor: pointer;
}

/* ---------------- 大厅 ---------------- */
.view-lobby {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.profile {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
}

.avatar {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    border-radius: 14px;
    background-color: #e8f6fd;
    border: 1px solid rgba(160, 220, 245, .35);
}

.profile-main {
    flex: 1;
    min-width: 0;
}

.nickname {
    font-size: 16px;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.meta {
    margin-top: 3px;
    font-size: 12.5px;
    color: var(--text-dim);
    display: flex;
    align-items: center;
    gap: 5px;
}

.meta .uid b {
    color: var(--gold);
    letter-spacing: 1px;
    font-variant-numeric: tabular-nums;
}

.wallet-card {
    padding: 18px 16px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.wallet-card::after {
    content: "";
    position: absolute;
    right: -40px;
    top: -40px;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(255, 77, 106, .18), transparent 70%);
    pointer-events: none;
}

.wallet-label {
    font-size: 12.5px;
    color: var(--text-dim);
    letter-spacing: 1px;
}

.wallet-value {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 6px 0 14px;
}

.wallet-value span {
    font-size: 38px;
    font-weight: 700;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    background: linear-gradient(180deg, #fff, #ffd9e1);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.wallet-actions {
    display: flex;
    gap: 10px;
}

.wallet-actions .btn {
    flex: 1;
    padding: 10px;
    font-size: 14px;
}

.stats {
    display: flex;
    gap: 10px;
}

.stat {
    flex: 1;
    padding: 12px 8px;
    border-radius: 14px;
    background: var(--card-2);
    border: 1px solid var(--line);
    text-align: center;
}

.stat b {
    display: block;
    font-size: 19px;
    font-variant-numeric: tabular-nums;
}

.stat span {
    font-size: 11.5px;
    color: var(--text-dim);
}

.play-wrap {
    margin-top: auto;
    padding-top: 6px;
}

.btn-play {
    width: 100%;
    padding: 16px;
    border-radius: 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    background: linear-gradient(135deg, #ff4d6a 0%, #ff7a45 100%);
    box-shadow: 0 14px 34px rgba(255, 77, 106, .36), inset 0 1px 0 rgba(255, 255, 255, .25);
    color: #fff;
}

.play-main {
    font-size: 19px;
    font-weight: 700;
    letter-spacing: 3px;
}

.play-sub {
    font-size: 12px;
    opacity: .92;
    display: flex;
    align-items: center;
    gap: 4px;
}

.play-sub .gem-icon-sm {
    filter: none;
}

.rule-line {
    margin: 10px 0 0;
    text-align: center;
    font-size: 11.5px;
    color: #6d97ac;
}

/* ---------------- 游戏 ---------------- */
.view-game {
    position: relative;
    padding: 0;
    overflow: hidden;
    background: #062f42;
}

#game {
    display: block;
    width: 100%;
    height: 100%;
    touch-action: none;
}

.hud {
    position: absolute;
    top: calc(var(--safe-top) + 10px);
    left: 12px;
    right: 12px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    pointer-events: none;
}

.hud-left {
    text-shadow: 0 2px 8px rgba(0, 0, 0, .55);
}

.hud-score {
    font-size: 30px;
    font-weight: 800;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    color: #fff;
}

.hud-level {
    margin-top: 4px;
    font-size: 12.5px;
    color: var(--gold);
    letter-spacing: 1px;
}

.hud-right {
    pointer-events: auto;
}

.progress-wrap {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: calc(16px + var(--safe-bottom));
    pointer-events: none;
}

.progress-bar {
    height: 8px;
    border-radius: 99px;
    background: rgba(2, 20, 30, .55);
    overflow: hidden;
    border: 1px solid rgba(160, 220, 245, .18);
}

.progress-bar i {
    display: block;
    height: 100%;
    width: 0%;
    border-radius: 99px;
    background: linear-gradient(90deg, #47d0a0, #ffd166);
    transition: width .22s ease;
    box-shadow: 0 0 12px rgba(255, 209, 102, .5);
}

.progress-text {
    margin-top: 6px;
    text-align: center;
    font-size: 12px;
    color: #b7d8e8;
    text-shadow: 0 1px 6px rgba(0, 0, 0, .6);
}

.hint {
    position: absolute;
    left: 0;
    right: 0;
    top: 68%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: #cfe9f7;
    font-size: 13px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, .6);
    pointer-events: none;
    animation: hintPulse 1.8s ease-in-out infinite;
}

.hint img {
    width: 54px;
    opacity: .92;
}

@keyframes hintPulse {

    0%,
    100% {
        opacity: .85;
        transform: translateY(0);
    }

    50% {
        opacity: .35;
        transform: translateY(-8px);
    }
}

/* ---------------- 弹层 ---------------- */
.modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-mask {
    position: absolute;
    inset: 0;
    background: rgba(2, 14, 22, .72);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

.modal-body {
    position: relative;
    width: 100%;
    max-width: 360px;
    padding: 22px 20px;
    border-radius: 20px;
    background: linear-gradient(180deg, #0a3b53, #062b3d);
    border: 1px solid rgba(160, 220, 245, .2);
    box-shadow: 0 20px 50px rgba(0, 0, 0, .5);
    animation: popIn .24s cubic-bezier(.2, .9, .3, 1.2);
    max-height: 82vh;
    overflow-y: auto;
}

@keyframes popIn {
    from {
        opacity: 0;
        transform: scale(.9) translateY(10px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.modal-title {
    margin: 0 0 6px;
    font-size: 19px;
    text-align: center;
}

.modal-sub {
    margin: 0 0 18px;
    text-align: center;
    font-size: 13px;
    color: var(--text-dim);
}

.modal-actions {
    display: flex;
    gap: 10px;
    margin-top: 18px;
}

.modal-actions .btn {
    flex: 1;
}

/* 结算 */
.result-win {
    text-align: center;
}

.result-icon {
    font-size: 46px;
    line-height: 1;
    margin-bottom: 8px;
}

.result-reward {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 12px 0;
    padding: 8px 18px;
    border-radius: 999px;
    background: rgba(255, 209, 102, .12);
    border: 1px solid rgba(255, 209, 102, .3);
    color: var(--gold);
    font-weight: 700;
    font-size: 18px;
}

.result-score {
    color: var(--text-dim);
    font-size: 13px;
    margin-top: 4px;
}

/* 流水 */
.log-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
    max-height: 46vh;
    overflow-y: auto;
    margin: 0 -6px;
}

.log-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 8px;
    border-radius: 10px;
}

.log-item:nth-child(odd) {
    background: rgba(255, 255, 255, .03);
}

.log-item .l-left {
    min-width: 0;
}

.log-item .l-label {
    font-size: 14px;
}

.log-item .l-time {
    font-size: 11px;
    color: #6d97ac;
    margin-top: 1px;
}

.log-item .l-amount {
    font-variant-numeric: tabular-nums;
    font-weight: 700;
    font-size: 15px;
}

.l-amount.plus {
    color: #4fe0a5;
}

.l-amount.minus {
    color: #ff7d8f;
}

.empty {
    padding: 30px 0;
    text-align: center;
    color: var(--text-dim);
    font-size: 13px;
}

/* 转赠 */
.transfer-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(3, 26, 38, .55);
    font-size: 13px;
    color: var(--text-dim);
    margin-bottom: 14px;
}

.transfer-info b {
    color: var(--gold);
}

.quick-amounts {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.quick-amounts button {
    flex: 1;
    padding: 8px 0;
    border-radius: 9px;
    border: 1px solid var(--line);
    background: rgba(140, 205, 235, .08);
    color: #bfe0f0;
    font-size: 13px;
    font-family: inherit;
    cursor: pointer;
}

/* ---------------- Toast ---------------- */
.toast {
    position: fixed;
    left: 50%;
    top: auto;
    bottom: 26%;
    transform: translate(-50%, 12px);
    padding: 10px 18px;
    border-radius: 999px;
    background: rgba(4, 28, 40, .94);
    border: 1px solid var(--line);
    color: #eaf6ff;
    font-size: 13.5px;
    max-width: 80vw;
    text-align: center;
    opacity: 0;
    pointer-events: none;
    transition: .25s;
    z-index: 200;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .4);
}

.toast.show {
    opacity: 1;
    transform: translate(-50%, 0);
}

/* 小屏微调 */
@media (max-height: 680px) {
    .auth-hero h1 {
        font-size: 28px;
    }

    .auth-hero {
        padding: 6px 0 0;
    }

    .wallet-value span {
        font-size: 32px;
    }
}


/* ---------------- 游戏 iframe ---------------- */
#game-frame {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    background: #EAF6FA;
    touch-action: none;
}

.quit-btn {
    position: absolute;
    top: calc(var(--safe-top) + 12px);
    right: 12px;
    z-index: 20;
    padding: 8px 14px;
    border-radius: 10px;
    border: 1px solid rgba(200, 240, 255, .28);
    background: rgba(4, 32, 45, .55);
    color: #d9f1fb;
    font-size: 13px;
    font-family: inherit;
    cursor: pointer;
    backdrop-filter: blur(4px);
}


/* ==========================================================
   浅色孟菲斯主题（覆盖上面的深海配色）
   糖果撞色 + 粗黑描边 + 硬投影 + 几何装饰
   ========================================================== */

:root {
    --bg-deep: #FFF7EA;
    --bg-mid: #FFEFD8;
    --bg-soft: #FFE6C7;
    --text: #1B2A4A;
    --text-dim: #6B7A99;
    --accent: #FF5E5B;
    --accent-2: #FFC93C;
    --gold: #E8A100;
    --line: #1B2A4A;
    --card: #FFFFFF;
    --card-2: #FFFFFF;
    --shadow: 6px 6px 0 #1B2A4A;
    --ink: #1B2A4A;
    --mint: #4ECDC4;
    --lilac: #B197FC;
}

body {
    background: var(--bg-deep);
    color: var(--text);
}

/* 背景点阵 */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image: radial-gradient(circle, rgba(27, 42, 74, .10) 1.6px, transparent 1.6px);
    background-size: 24px 24px;
    pointer-events: none;
    z-index: 0;
}

#app {
    position: relative;
    z-index: 2;
}

/* ---------------- 孟菲斯装饰 ---------------- */
.deco {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.deco span {
    position: absolute;
    display: block;
}

.d-circle {
    width: 150px;
    height: 150px;
    right: -52px;
    top: 84px;
    border-radius: 50%;
    background: var(--accent-2);
    border: 3px solid var(--ink);
}

.d-ring {
    width: 90px;
    height: 90px;
    left: -34px;
    top: 210px;
    border-radius: 50%;
    border: 12px solid var(--mint);
}

.d-tri {
    width: 0;
    height: 0;
    left: 18px;
    bottom: 128px;
    border-left: 34px solid transparent;
    border-right: 34px solid transparent;
    border-bottom: 58px solid var(--lilac);
}

.d-cross {
    width: 26px;
    height: 26px;
    right: 34px;
    bottom: 210px;
    background: var(--accent);
    transform: rotate(45deg);
}

.d-cross::after {
    content: "";
    position: absolute;
    inset: -8px 6px;
    background: var(--accent);
}

.d-zig {
    width: 70px;
    height: 13px;
    opacity: .32;
    right: 10px;
    bottom: 96px;
    background:
        linear-gradient(135deg, transparent 50%, var(--ink) 50%) 0 0 / 16px 16px repeat-x;
    opacity: .55;
}

body.in-game .deco {
    display: none;
}

/* ---------------- 顶栏 ---------------- */
.topbar {
    padding-bottom: 12px;
}

.brand {
    color: var(--ink);
    font-weight: 800;
    letter-spacing: 1px;
}

.brand-dot {
    background: var(--accent);
    box-shadow: none;
    border: 2px solid var(--ink);
    width: 10px;
    height: 10px;
}

.wallet {
    background: #fff;
    border: 2px solid var(--ink);
    border-radius: 999px;
    color: var(--ink);
    box-shadow: 3px 3px 0 var(--ink);
    font-weight: 800;
}

/* ---------------- 卡片 ---------------- */
.card {
    background: #fff;
    border: 2px solid var(--ink);
    border-radius: 20px;
    box-shadow: var(--shadow);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

/* ---------------- 登录页 ---------------- */
.auth-hero h1 {
    background: none;
    -webkit-text-fill-color: var(--ink);
    color: var(--ink);
    text-shadow: 3px 3px 0 var(--accent-2);
    font-weight: 900;
}

.auth-hero p {
    color: var(--text-dim);
    font-weight: 600;
}

.hero-glow {
    background: radial-gradient(circle, rgba(255, 201, 60, .38) 0%, rgba(78, 205, 196, .14) 48%, transparent 72%);
    filter: blur(4px);
}

.tabs {
    background: #FFF1DA;
    border: 2px solid var(--ink);
    border-radius: 14px;
    padding: 4px;
}

.tab {
    color: var(--text-dim);
    font-weight: 700;
}

.tab.active {
    background: var(--accent);
    color: #fff;
    border: 2px solid var(--ink);
    box-shadow: 2px 2px 0 var(--ink);
    transform: translate(-1px, -1px);
}

.field > span {
    color: var(--ink);
    font-weight: 700;
    font-size: 12px;
}

.field input {
    background: #FFFDF8;
    border: 2px solid var(--ink);
    border-radius: 12px;
    color: var(--ink);
    font-weight: 600;
}

.field input::placeholder {
    color: #A9B4C7;
    font-weight: 500;
}

.field input:focus {
    border-color: var(--accent);
    box-shadow: 3px 3px 0 var(--accent);
}

.tip {
    color: var(--text-dim);
}

/* ---------------- 按钮 ---------------- */
.btn {
    border: 2px solid var(--ink);
    border-radius: 14px;
    font-weight: 800;
    box-shadow: 4px 4px 0 var(--ink);
    transition: transform .1s, box-shadow .1s;
}

.btn:active {
    transform: translate(3px, 3px);
    box-shadow: 1px 1px 0 var(--ink);
}

.btn-primary {
    background: var(--accent);
    color: #fff;
    box-shadow: 4px 4px 0 var(--ink);
}

.btn-ghost {
    background: #fff;
    color: var(--ink);
    border: 2px solid var(--ink);
    box-shadow: 3px 3px 0 var(--ink);
}

.icon-btn {
    background: #fff;
    border: 2px solid var(--ink);
    color: var(--ink);
    font-weight: 700;
    box-shadow: 2px 2px 0 var(--ink);
}

/* ---------------- 大厅 ---------------- */
.avatar {
    background-color: var(--accent-2);
    border: 2px solid var(--ink);
    border-radius: 16px;
    box-shadow: 3px 3px 0 var(--ink);
}

.nickname {
    color: var(--ink);
    font-weight: 800;
}

.meta {
    color: var(--text-dim);
    font-weight: 600;
}

.meta .uid b {
    color: var(--accent);
    font-weight: 800;
}

.wallet-card {
    background: #fff;
    position: relative;
    overflow: hidden;
}

.wallet-card::after {
    background: radial-gradient(circle, rgba(255, 201, 60, .5), transparent 68%);
}

.wallet-label {
    color: var(--text-dim);
    font-weight: 700;
}

.wallet-value span {
    background: none;
    -webkit-text-fill-color: var(--ink);
    color: var(--ink);
    text-shadow: 3px 3px 0 var(--accent-2);
    font-weight: 900;
}

.stats .stat {
    background: #fff;
    border: 2px solid var(--ink);
    box-shadow: 4px 4px 0 var(--ink);
    border-radius: 16px;
}

.stat:nth-child(1) {
    background: #FFF3D1;
}

.stat:nth-child(2) {
    background: #E2FBF7;
}

.stat:nth-child(3) {
    background: #EFE7FF;
}

.stat b {
    color: var(--ink);
    font-weight: 900;
}

.stat span {
    color: var(--text-dim);
    font-weight: 600;
}

.btn-play {
    background: var(--accent);
    border: 3px solid var(--ink);
    box-shadow: 6px 6px 0 var(--ink);
    color: #fff;
}

.btn-play:active {
    transform: translate(4px, 4px);
    box-shadow: 2px 2px 0 var(--ink);
}

.play-main {
    color: #fff;
    font-weight: 900;
    text-shadow: 2px 2px 0 rgba(27, 42, 74, .35);
}

.play-sub {
    color: #FFF1F1;
    opacity: 1;
}

.rule-line {
    color: var(--text-dim);
    font-weight: 600;
}

/* ---------------- 弹层 ---------------- */
.modal-mask {
    background: rgba(27, 42, 74, .38);
    backdrop-filter: blur(2px);
}

.modal-body {
    background: #fff;
    border: 3px solid var(--ink);
    border-radius: 22px;
    box-shadow: 8px 8px 0 var(--ink);
}

.modal-title {
    color: var(--ink);
    font-weight: 900;
}

.modal-sub {
    color: var(--text-dim);
}

.result-reward {
    background: #FFF3D1;
    border: 2px solid var(--ink);
    color: var(--ink);
    box-shadow: 3px 3px 0 var(--ink);
}

.result-score {
    color: var(--text-dim);
}

.log-item:nth-child(odd) {
    background: #FFF7EA;
}

.log-item .l-label {
    color: var(--ink);
    font-weight: 700;
}

.log-item .l-time {
    color: var(--text-dim);
}

.l-amount.plus {
    color: #12A594;
}

.l-amount.minus {
    color: var(--accent);
}

.transfer-info {
    background: #FFF3D1;
    border: 2px dashed var(--ink);
    color: var(--ink);
    font-weight: 600;
}

.quick-amounts button {
    background: #fff;
    border: 2px solid var(--ink);
    color: var(--ink);
    font-weight: 700;
    box-shadow: 2px 2px 0 var(--ink);
}

.quick-amounts button:active {
    transform: translate(2px, 2px);
    box-shadow: 0 0 0 var(--ink);
}

.toast {
    background: var(--ink);
    color: #fff;
    border: 2px solid var(--ink);
    box-shadow: 4px 4px 0 rgba(27, 42, 74, .25);
    font-weight: 700;
}

.quit-btn {
    background: #fff;
    border: 2px solid var(--ink);
    color: var(--ink);
    font-weight: 700;
    box-shadow: 3px 3px 0 var(--ink);
}

.empty {
    color: var(--text-dim);
}
