/* 子屏游戏 · 真心话大冒险（独立样式）
 * 风格：吉普赛神秘 × 巫术核心 × 斯莱特林。
 * 深紫至午夜黑渐变 + 金色符文微光 + 翡翠绿/紫水晶点缀，锐利边角，衬线字体。
 */
.truth-or-dare-game {
    position: absolute;
    inset: 0;
    z-index: 100195;
    box-sizing: border-box;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.24s ease, visibility 0.24s ease;
    font-family: 'Cormorant Garamond', 'Noto Serif SC', 'Songti SC', 'STSong', Georgia, 'Times New Roman', serif;
    color: #e8dcc0;
}

.truth-or-dare-game.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.tod-shell {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    background:
        radial-gradient(120% 80% at 18% -8%, rgba(123, 104, 174, 0.30) 0%, rgba(123, 104, 174, 0) 55%),
        radial-gradient(120% 80% at 92% 8%, rgba(31, 92, 67, 0.30) 0%, rgba(31, 92, 67, 0) 50%),
        linear-gradient(168deg, #3a1336 0%, #221037 38%, #110c1c 72%, #0a0810 100%);
}

/* 星尘微光层 */
.tod-shell::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        radial-gradient(1.5px 1.5px at 12% 22%, rgba(201, 167, 78, 0.55), transparent),
        radial-gradient(1.5px 1.5px at 78% 14%, rgba(201, 167, 78, 0.40), transparent),
        radial-gradient(1.2px 1.2px at 34% 68%, rgba(197, 201, 212, 0.45), transparent),
        radial-gradient(1.4px 1.4px at 64% 82%, rgba(123, 104, 174, 0.55), transparent),
        radial-gradient(1.1px 1.1px at 88% 56%, rgba(201, 167, 78, 0.35), transparent),
        radial-gradient(1.3px 1.3px at 20% 90%, rgba(197, 201, 212, 0.35), transparent);
    opacity: 0.7;
    animation: tod-stardust 7s ease-in-out infinite alternate;
}

@keyframes tod-stardust {
    from { opacity: 0.45; }
    to { opacity: 0.85; }
}

/* ============ 顶部栏 ============ */
.tod-header {
    position: relative;
    z-index: 2;
    flex: 0 0 auto;
    min-height: 58px;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) 64px;
    align-items: center;
    gap: 8px;
    padding: calc(10px + env(safe-area-inset-top, 0px)) max(14px, env(safe-area-inset-right, 0px)) 10px max(14px, env(safe-area-inset-left, 0px));
    box-sizing: border-box;
    border-bottom: 1px solid rgba(201, 167, 78, 0.28);
    background: linear-gradient(180deg, rgba(17, 12, 28, 0.72), rgba(17, 12, 28, 0.30));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.tod-header h3 {
    margin: 0;
    min-width: 0;
    text-align: center;
    font-size: 19px;
    line-height: 1.25;
    font-weight: 700;
    letter-spacing: 3px;
    color: #d9b863;
    text-shadow: 0 0 10px rgba(201, 167, 78, 0.45);
}

.tod-icon-btn,
.tod-text-btn {
    min-width: 0;
    height: 38px;
    border: 1px solid rgba(201, 167, 78, 0.45);
    border-radius: 4px;
    background: linear-gradient(180deg, rgba(74, 25, 66, 0.55), rgba(17, 12, 28, 0.55));
    color: #d9b863;
    cursor: pointer;
    font: inherit;
    font-weight: 600;
    letter-spacing: 1px;
    transition: all 0.25s ease;
    box-shadow: 0 0 10px rgba(201, 167, 78, 0.12);
}

.tod-icon-btn:hover,
.tod-text-btn:hover {
    border-color: rgba(201, 167, 78, 0.85);
    box-shadow: 0 0 18px rgba(201, 167, 78, 0.35);
}

.tod-icon-btn {
    width: 38px;
    font-size: 24px;
    line-height: 1;
}

.tod-text-btn {
    padding: 0 12px;
    font-size: 13px;
}

.tod-header-spacer {
    width: 38px;
    height: 38px;
}

/* ============ 主体滚动区 ============ */
.tod-main {
    position: relative;
    z-index: 2;
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 16px max(14px, env(safe-area-inset-right, 0px)) 16px max(14px, env(safe-area-inset-left, 0px));
    box-sizing: border-box;
}

.tod-main--setup {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.tod-band {
    border: 1px solid rgba(201, 167, 78, 0.22);
    border-radius: 6px;
    background: rgba(13, 11, 20, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-shadow: 0 0 18px rgba(74, 25, 66, 0.35);
    padding: 14px;
    box-sizing: border-box;
}

.tod-band-title {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 10px;
}

.tod-band-title strong {
    font-size: 15px;
    letter-spacing: 2px;
    color: #d9b863;
    text-shadow: 0 0 8px rgba(201, 167, 78, 0.35);
}

.tod-band-title span {
    font-size: 12px;
    color: #9d8bc4;
    letter-spacing: 1px;
}

.tod-intro {
    margin: -2px 0 2px;
    font-size: 13px;
    line-height: 1.6;
    color: #c9bce0;
    letter-spacing: 0.5px;
}

/* ============ 好友选择 ============ */
.tod-search-row {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
}

.tod-search-row input {
    flex: 1 1 auto;
    min-width: 0;
    height: 38px;
    padding: 0 12px;
    box-sizing: border-box;
    border: 1px solid rgba(201, 167, 78, 0.28);
    border-radius: 4px;
    background: rgba(10, 8, 16, 0.7);
    color: #e8dcc0;
    font: inherit;
    font-size: 14px;
    outline: none;
}

.tod-search-row input::placeholder {
    color: rgba(201, 167, 78, 0.35);
}

.tod-search-row input:focus {
    border-color: rgba(201, 167, 78, 0.7);
    box-shadow: 0 0 14px rgba(201, 167, 78, 0.25);
}

.tod-search-row button {
    flex: 0 0 auto;
    padding: 0 14px;
    height: 38px;
    border: 1px solid rgba(123, 104, 174, 0.5);
    border-radius: 4px;
    background: rgba(123, 104, 174, 0.18);
    color: #c9bce0;
    font: inherit;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tod-search-row button:hover {
    border-color: rgba(123, 104, 174, 0.85);
    box-shadow: 0 0 14px rgba(123, 104, 174, 0.3);
}

.tod-friend-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 46vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-right: 2px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.tod-friend-list::-webkit-scrollbar { width: 0; height: 0; display: none; }

.tod-friend-row {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 8px 12px;
    box-sizing: border-box;
    border: 1px solid rgba(201, 167, 78, 0.16);
    border-radius: 4px;
    background: rgba(17, 12, 28, 0.5);
    color: #e8dcc0;
    cursor: pointer;
    text-align: left;
    font: inherit;
    transition: all 0.22s ease;
}

.tod-friend-row:hover {
    border-color: rgba(201, 167, 78, 0.45);
}

.tod-friend-row.is-selected {
    border-color: rgba(201, 167, 78, 0.7);
    background: linear-gradient(180deg, rgba(74, 25, 66, 0.5), rgba(31, 92, 67, 0.28));
    box-shadow: 0 0 16px rgba(201, 167, 78, 0.22);
}

.tod-friend-avatar,
.tod-avatar {
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(160deg, #4a1942, #1f5c43);
    border: 1px solid rgba(201, 167, 78, 0.45);
    color: #e8dcc0;
    font-size: 16px;
    font-weight: 600;
}

.tod-friend-avatar img,
.tod-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tod-friend-main {
    flex: 1 1 auto;
    min-width: 0;
}

.tod-friend-main strong {
    display: block;
    font-size: 15px;
    letter-spacing: 0.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tod-check {
    flex: 0 0 auto;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(201, 167, 78, 0.5);
    color: #d9b863;
    font-size: 15px;
    font-weight: 700;
}

.is-selected .tod-check {
    background: rgba(201, 167, 78, 0.85);
    color: #110c1c;
    border-color: rgba(201, 167, 78, 0.9);
}

.tod-empty {
    padding: 22px 12px;
    text-align: center;
    color: #9d8bc4;
    font-size: 13px;
    letter-spacing: 1px;
}

/* ============ 底部主按钮 ============ */
.tod-footer {
    position: relative;
    z-index: 2;
    flex: 0 0 auto;
    padding: 12px max(14px, env(safe-area-inset-right, 0px)) calc(14px + env(safe-area-inset-bottom, 0px)) max(14px, env(safe-area-inset-left, 0px));
    box-sizing: border-box;
    border-top: 1px solid rgba(201, 167, 78, 0.22);
    background: linear-gradient(0deg, rgba(10, 8, 16, 0.72), rgba(10, 8, 16, 0.15));
    display: flex;
    gap: 10px;
}

.tod-primary,
.tod-secondary {
    flex: 1 1 auto;
    height: 48px;
    border-radius: 5px;
    font: inherit;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 4px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.tod-primary {
    border: 1px solid rgba(201, 167, 78, 0.7);
    background: linear-gradient(180deg, rgba(74, 25, 66, 0.9), rgba(31, 92, 67, 0.55));
    color: #f0d985;
    text-shadow: 0 0 10px rgba(201, 167, 78, 0.5);
    box-shadow: 0 0 18px rgba(201, 167, 78, 0.22);
}

.tod-primary:hover:not(:disabled) {
    border-color: #c9a74e;
    box-shadow: 0 0 28px rgba(201, 167, 78, 0.45);
    transform: translateY(-1px);
}

.tod-secondary {
    border: 1px solid rgba(123, 104, 174, 0.5);
    background: rgba(123, 104, 174, 0.16);
    color: #c9bce0;
    letter-spacing: 2px;
}

.tod-secondary:hover:not(:disabled) {
    border-color: rgba(123, 104, 174, 0.9);
    box-shadow: 0 0 18px rgba(123, 104, 174, 0.3);
}

.tod-primary:disabled,
.tod-secondary:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

/* ============ 对局界面 ============ */
.tod-main--play {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0;
    overflow: hidden;
}

/* 头像区外框（含可收起/展开的标题条） */
.tod-avatars-wrap {
    flex: 0 0 auto;
    position: relative;
    z-index: 5;
    border-bottom: 1px solid rgba(201, 167, 78, 0.16);
}

/* 头像区收起/展开标题条 */
.tod-avatars-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    box-sizing: border-box;
    padding: 9px max(14px, env(safe-area-inset-right, 0px)) 9px max(14px, env(safe-area-inset-left, 0px));
    border: none;
    background: transparent;
    color: #c9a74e;
    font: inherit;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.tod-avatars-toggle__label {
    flex: 0 0 auto;
    font-size: 12px;
    letter-spacing: 2px;
    color: #c9a74e;
}

.tod-avatars-mini {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 4px;
    overflow: hidden;
}

.tod-avatars-mini[hidden] { display: none; }

.tod-avatars-mini__ava {
    flex: 0 0 auto;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(160deg, #4a1942, #1f5c43);
    border: 1px solid rgba(201, 167, 78, 0.45);
    color: #e8dcc0;
    font-size: 11px;
}

.tod-avatars-mini__ava img { width: 100%; height: 100%; object-fit: cover; }

.tod-avatars-toggle__chev {
    flex: 0 0 auto;
    margin-left: auto;
    font-size: 12px;
    letter-spacing: 1px;
    color: #9d8bc4;
}

/* 头像区（允许气泡向下溢出覆盖舞台，不裁切） */
.tod-avatars {
    flex: 0 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 12px;
    justify-content: center;
    overflow: visible;
    padding: 4px max(14px, env(safe-area-inset-left, 0px)) 14px;
    position: relative;
    z-index: 5;
}

/* 收起状态：隐藏完整头像网格，仅留标题条与缩略头像 */
.tod-main--play.is-avatars-collapsed .tod-avatars { display: none; }

.tod-player {
    position: relative;
    flex: 0 0 auto;
    width: 64px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.tod-player__ava {
    position: relative;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(160deg, #4a1942, #1f5c43);
    border: 2px solid rgba(201, 167, 78, 0.45);
    color: #e8dcc0;
    font-size: 18px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.tod-player__ava img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tod-player.is-winner .tod-player__ava {
    border-color: #f0d985;
    box-shadow: 0 0 18px rgba(201, 167, 78, 0.7);
}

.tod-player.is-loser .tod-player__ava {
    border-color: rgba(123, 104, 174, 0.6);
    filter: saturate(0.7) brightness(0.85);
}

.tod-player__name {
    max-width: 100%;
    font-size: 11px;
    letter-spacing: 0.5px;
    color: #c9bce0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tod-player__dice {
    position: absolute;
    top: -6px;
    right: 4px;
    min-width: 20px;
    height: 20px;
    padding: 0 4px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    background: rgba(10, 8, 16, 0.92);
    border: 1px solid rgba(201, 167, 78, 0.6);
    color: #f0d985;
}

.tod-player__badge {
    font-size: 10px;
    letter-spacing: 1px;
    padding: 1px 6px;
    border-radius: 3px;
}

.tod-player__badge.is-win {
    color: #110c1c;
    background: linear-gradient(180deg, #f0d985, #c9a74e);
}

.tod-player__badge.is-lose {
    color: #c9bce0;
    background: rgba(123, 104, 174, 0.3);
    border: 1px solid rgba(123, 104, 174, 0.5);
}

/* 头像下方气泡 */
.tod-player__bubble {
    position: absolute;
    top: 86px;
    left: 50%;
    transform: translateX(-50%) scale(0.92);
    width: max-content;
    max-width: 200px;
    padding: 8px 11px;
    border-radius: 8px;
    background: linear-gradient(170deg, rgba(31, 24, 48, 0.98), rgba(17, 12, 28, 0.98));
    border: 1px solid rgba(201, 167, 78, 0.5);
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.55), 0 0 16px rgba(201, 167, 78, 0.18);
    color: #ece3cc;
    font-size: 12.5px;
    line-height: 1.55;
    letter-spacing: 0.3px;
    z-index: 30;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    text-align: left;
    white-space: normal;
    word-break: break-word;
}

.tod-player__bubble::before {
    content: "";
    position: absolute;
    top: -7px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 12px;
    height: 12px;
    background: rgba(31, 24, 48, 0.98);
    border-left: 1px solid rgba(201, 167, 78, 0.5);
    border-top: 1px solid rgba(201, 167, 78, 0.5);
}

.tod-player__bubble.is-open {
    opacity: 1;
    transform: translateX(-50%) scale(1);
    pointer-events: auto;
}

.tod-player__bubble .tod-bubble-emo {
    display: block;
    color: #9d8bc4;
    font-style: italic;
    margin-bottom: 2px;
}

.tod-player__bubble .tod-bubble-trans {
    display: block;
    color: #8e83a8;
    font-size: 11px;
    margin-top: 3px;
}

/* 头像可点提示小点 */
.tod-player.has-bubble .tod-player__ava::after {
    content: "";
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #f0d985;
    box-shadow: 0 0 8px rgba(201, 167, 78, 0.8);
}

/* 中间舞台区（游戏互动特效区）：隐形滚动条，可触摸/拖拽滚动 */
.tod-stage {
    flex: 1 1 auto;
    min-height: 0;
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 18px 16px;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    touch-action: pan-y;
    text-align: center;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.tod-stage::-webkit-scrollbar { width: 0; height: 0; display: none; }

/* 内容包裹层：用 margin:auto 实现"内容少时垂直居中、内容多时从顶部完整可滚"
 * （避免 flex justify-content:center 在溢出时顶部被裁切、无法滚动到的兼容性问题） */
.tod-stage__inner {
    margin: auto 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

/* 拖拽滚动进行中：禁止文本选中，避免误选 */
.is-drag-scrolling,
.is-drag-scrolling * {
    -webkit-user-select: none;
    user-select: none;
    cursor: grabbing;
}

.tod-stage__hint {
    font-size: 14px;
    letter-spacing: 1px;
    color: #c9bce0;
    line-height: 1.7;
    max-width: 320px;
}

.tod-stage__phase {
    font-size: 12px;
    letter-spacing: 3px;
    color: #9d8bc4;
    text-transform: uppercase;
}

.tod-stage__title {
    font-size: 22px;
    letter-spacing: 4px;
    font-weight: 700;
    color: #d9b863;
    text-shadow: 0 0 12px rgba(201, 167, 78, 0.5);
}

/* 骰子 */
.tod-dice-tray {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
    justify-content: center;
    max-width: 360px;
}

.tod-dice {
    width: 56px;
    height: 56px;
    border-radius: 10px;
    background: linear-gradient(150deg, #f4ecd6 0%, #d8c9a0 100%);
    border: 1px solid rgba(201, 167, 78, 0.8);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.5), inset 0 0 10px rgba(120, 80, 30, 0.18);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    padding: 8px;
    box-sizing: border-box;
    gap: 2px;
}

.tod-dice .pip {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #5a2150, #2a0f26);
    align-self: center;
    justify-self: center;
    box-shadow: inset 0 0 2px rgba(0, 0, 0, 0.5);
}

.tod-dice.is-rolling {
    animation: tod-dice-shake 0.4s ease-in-out infinite;
}

@keyframes tod-dice-shake {
    0% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-10px) rotate(-12deg); }
    50% { transform: translateY(0) rotate(8deg); }
    75% { transform: translateY(-6px) rotate(-6deg); }
    100% { transform: translateY(0) rotate(0deg); }
}

.tod-dice__label {
    display: block;
    margin-top: 6px;
    font-size: 11px;
    letter-spacing: 0.5px;
    color: #9d8bc4;
}

.tod-dice-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* 舞台动作按钮 */
.tod-stage__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.tod-stage-btn {
    min-width: 130px;
    height: 46px;
    padding: 0 20px;
    border-radius: 5px;
    border: 1px solid rgba(201, 167, 78, 0.6);
    background: linear-gradient(180deg, rgba(74, 25, 66, 0.85), rgba(17, 12, 28, 0.7));
    color: #f0d985;
    font: inherit;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 3px;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 0 14px rgba(201, 167, 78, 0.18);
}

.tod-stage-btn:hover:not(:disabled) {
    border-color: #c9a74e;
    box-shadow: 0 0 26px rgba(201, 167, 78, 0.4);
    transform: translateY(-1px);
}

.tod-stage-btn.is-ghost {
    background: rgba(123, 104, 174, 0.14);
    border-color: rgba(123, 104, 174, 0.5);
    color: #c9bce0;
    letter-spacing: 2px;
}

.tod-stage-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 选择真心话 / 大冒险 */
.tod-choice-grid {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.tod-choice-card {
    width: 130px;
    padding: 18px 12px;
    border-radius: 8px;
    border: 1px solid rgba(201, 167, 78, 0.4);
    background: rgba(13, 11, 20, 0.6);
    color: #e8dcc0;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font: inherit;
}

.tod-choice-card .ico {
    font-size: 28px;
}

.tod-choice-card .ttl {
    font-size: 16px;
    letter-spacing: 2px;
    font-weight: 700;
}

.tod-choice-card .sub {
    font-size: 11px;
    color: #9d8bc4;
    letter-spacing: 0.5px;
}

.tod-choice-card.truth:hover {
    border-color: #7b68ae;
    box-shadow: 0 0 22px rgba(123, 104, 174, 0.45);
    transform: translateY(-2px);
}

.tod-choice-card.dare:hover {
    border-color: #2e7d57;
    box-shadow: 0 0 22px rgba(46, 125, 87, 0.45);
    transform: translateY(-2px);
}

/* 表现内容卡片（中间区域展示） */
.tod-perform-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    max-width: 460px;
    text-align: left;
}

.tod-perform-card {
    border: 1px solid rgba(201, 167, 78, 0.28);
    border-radius: 8px;
    background: rgba(17, 12, 28, 0.6);
    padding: 12px 14px;
    box-shadow: 0 0 16px rgba(74, 25, 66, 0.3);
}

.tod-perform-card.type-truth {
    border-left: 3px solid #7b68ae;
}

.tod-perform-card.type-dare {
    border-left: 3px solid #2e7d57;
}

.tod-perform-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.tod-perform-head .tod-avatar {
    width: 34px;
    height: 34px;
    font-size: 14px;
}

.tod-perform-head .nm {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 14px;
    font-weight: 700;
    color: #d9b863;
    letter-spacing: 0.5px;
}

.tod-perform-head .tag {
    flex: 0 0 auto;
    font-size: 10px;
    letter-spacing: 1px;
    padding: 2px 8px;
    border-radius: 3px;
}

.tod-perform-head .tag.truth {
    color: #d6cdef;
    background: rgba(123, 104, 174, 0.3);
}

.tod-perform-head .tag.dare {
    color: #c2e6d2;
    background: rgba(46, 125, 87, 0.3);
}

.tod-perform-prompt {
    font-size: 12.5px;
    color: #b7a9d4;
    font-style: italic;
    margin-bottom: 6px;
    line-height: 1.55;
}

.tod-perform-body {
    font-size: 13.5px;
    color: #ece3cc;
    line-height: 1.7;
    letter-spacing: 0.3px;
    white-space: pre-wrap;
    word-break: break-word;
}

.tod-perform-body .tod-bubble-emo {
    color: #9d8bc4;
    font-style: italic;
}

.tod-perform-body .tod-bubble-trans {
    display: block;
    color: #8e83a8;
    font-size: 11.5px;
    margin-top: 2px;
}

.tod-perform-card.is-pending .tod-perform-body {
    color: #8e83a8;
    font-style: italic;
}

/* 加载点 */
.tod-loading {
    display: inline-flex;
    gap: 5px;
    align-items: center;
}

.tod-loading span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #c9a74e;
    animation: tod-blink 1.1s ease-in-out infinite;
}

.tod-loading span:nth-child(2) { animation-delay: 0.18s; }
.tod-loading span:nth-child(3) { animation-delay: 0.36s; }

@keyframes tod-blink {
    0%, 80%, 100% { opacity: 0.25; transform: scale(0.8); }
    40% { opacity: 1; transform: scale(1); }
}

/* 赢家拟题区 */
.tod-compose-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    max-width: 460px;
    text-align: left;
}

.tod-compose-card {
    border: 1px solid rgba(201, 167, 78, 0.28);
    border-radius: 8px;
    background: rgba(17, 12, 28, 0.6);
    padding: 12px 14px;
}

.tod-compose-card label {
    display: block;
    font-size: 13px;
    color: #d9b863;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.tod-compose-card textarea {
    width: 100%;
    min-height: 64px;
    box-sizing: border-box;
    border: 1px solid rgba(201, 167, 78, 0.3);
    border-radius: 5px;
    background: rgba(10, 8, 16, 0.7);
    color: #e8dcc0;
    font: inherit;
    font-size: 14px;
    line-height: 1.55;
    padding: 9px 11px;
    resize: vertical;
    outline: none;
}

.tod-compose-card textarea:focus {
    border-color: rgba(201, 167, 78, 0.7);
    box-shadow: 0 0 12px rgba(201, 167, 78, 0.22);
}

/* ============ 底部输入栏 ============ */
.tod-inputbar {
    position: relative;
    z-index: 2;
    flex: 0 0 auto;
    border-top: 1px solid rgba(201, 167, 78, 0.22);
    background: linear-gradient(0deg, rgba(10, 8, 16, 0.85), rgba(10, 8, 16, 0.4));
    padding: 10px max(12px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-left, 0px));
    box-sizing: border-box;
}

.tod-inputbar__hint {
    font-size: 11.5px;
    letter-spacing: 0.5px;
    color: #9d8bc4;
    margin-bottom: 7px;
    min-height: 14px;
}

.tod-inputbar__row {
    display: flex;
    align-items: flex-end;
    gap: 8px;
}

.tod-input-icon {
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    border-radius: 5px;
    border: 1px solid rgba(201, 167, 78, 0.4);
    background: rgba(74, 25, 66, 0.4);
    color: #d9b863;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tod-input-icon:hover {
    border-color: rgba(201, 167, 78, 0.8);
    box-shadow: 0 0 12px rgba(201, 167, 78, 0.3);
}

.tod-input-field {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 40px;
    max-height: 110px;
    box-sizing: border-box;
    border: 1px solid rgba(201, 167, 78, 0.3);
    border-radius: 5px;
    background: rgba(10, 8, 16, 0.75);
    color: #e8dcc0;
    font: inherit;
    font-size: 14px;
    line-height: 1.5;
    padding: 9px 12px;
    resize: none;
    outline: none;
}

.tod-input-field::placeholder {
    color: rgba(201, 167, 78, 0.32);
}

.tod-input-field:focus {
    border-color: rgba(201, 167, 78, 0.7);
    box-shadow: 0 0 12px rgba(201, 167, 78, 0.2);
}

.tod-input-field:disabled {
    opacity: 0.5;
}

.tod-send-btn {
    flex: 0 0 auto;
    height: 40px;
    padding: 0 16px;
    border-radius: 5px;
    border: 1px solid rgba(201, 167, 78, 0.7);
    background: linear-gradient(180deg, rgba(31, 92, 67, 0.85), rgba(17, 12, 28, 0.7));
    color: #f0d985;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.22s ease;
}

.tod-send-btn:hover:not(:disabled) {
    border-color: #c9a74e;
    box-shadow: 0 0 18px rgba(201, 167, 78, 0.4);
}

.tod-send-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

/* 表情面板 */
.tod-emoji-panel {
    display: none;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 8px;
    max-height: 168px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 8px;
    border: 1px solid rgba(201, 167, 78, 0.22);
    border-radius: 6px;
    background: rgba(13, 11, 20, 0.7);
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.tod-emoji-panel::-webkit-scrollbar { width: 0; height: 0; display: none; }

.tod-emoji-panel.is-open {
    display: block;
}

.tod-emoji-group { margin-bottom: 10px; }
.tod-emoji-group:last-child { margin-bottom: 0; }
.tod-emoji-group__title {
    font-size: 11px;
    letter-spacing: 1px;
    color: #c9a74e;
    opacity: 0.85;
    margin: 0 0 5px 2px;
}
.tod-emoji-group__grid {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.tod-emoji-panel button {
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    font-size: 21px;
    cursor: pointer;
    border-radius: 5px;
    transition: background 0.15s ease;
}

.tod-emoji-panel button:hover {
    background: rgba(201, 167, 78, 0.18);
}

/* ============ 战绩 ============ */
.tod-history-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tod-history-row {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 10px;
    align-items: center;
    padding: 10px 12px;
    border: 1px solid rgba(201, 167, 78, 0.18);
    border-radius: 5px;
    background: rgba(17, 12, 28, 0.5);
    font-size: 13px;
}

.tod-history-row .date {
    color: #9d8bc4;
    font-size: 12px;
    letter-spacing: 0.5px;
}

.tod-history-row .win {
    color: #d9b863;
    font-weight: 700;
}

.tod-history-row .rounds {
    color: #8e83a8;
    font-size: 12px;
}

/* ============================================================
 * v2：互动消息流 / 侧边标签 / 出题卡 / 揭晓卡 / 心跳监控 / 积分榜
 * ============================================================ */

/* —— 对局布局：消息区占主，舞台受限可滚 —— */
.tod-main--play .tod-stage {
    flex: 0 0 auto;
    max-height: 48%;
}
.tod-main--play.is-collapsed .tod-stage {
    flex: 1 1 auto;
    max-height: none;
}
/* 头像收起后，舞台获得更多纵向空间 */
.tod-main--play.is-avatars-collapsed .tod-stage {
    max-height: 60%;
}
.tod-main--play.is-collapsed.is-avatars-collapsed .tod-stage {
    max-height: none;
}

/* —— 头像心跳标记 —— */
.tod-player.has-heart .tod-player__ava {
    box-shadow: 0 0 0 2px rgba(178, 64, 110, 0.6), 0 0 14px rgba(178, 64, 110, 0.45);
    cursor: pointer;
}
.tod-player__heart {
    position: absolute;
    right: -2px;
    bottom: -2px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: radial-gradient(circle at 40% 35%, #e36a93, #8c1f45);
    color: #fff;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 6px rgba(227, 106, 147, 0.7);
    animation: tod-heart-beat 1.1s ease-in-out infinite;
}
@keyframes tod-heart-beat {
    0%, 100% { transform: scale(1); }
    30% { transform: scale(1.28); }
    60% { transform: scale(0.94); }
}

/* —— 互动消息展示区 —— */
.tod-msgarea {
    flex: 1 1 auto;
    min-height: 90px;
    display: flex;
    flex-direction: column;
    margin: 10px 12px 6px;
    border: 1px solid rgba(201, 167, 78, 0.28);
    border-radius: 4px;
    background: linear-gradient(180deg, rgba(28, 16, 44, 0.55), rgba(14, 9, 24, 0.62));
    box-shadow: inset 0 0 26px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(201, 167, 78, 0.06);
    overflow: hidden;
}
.tod-msgarea__bar {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 7px 12px;
    border-bottom: 1px solid rgba(201, 167, 78, 0.16);
}
.tod-msgarea__title {
    font-size: 12px;
    letter-spacing: 3px;
    color: #c9a74e;
}
.tod-msgarea__collapse {
    background: transparent;
    border: 1px solid rgba(201, 167, 78, 0.4);
    color: #c9bce0;
    font-size: 11px;
    letter-spacing: 1px;
    padding: 3px 9px;
    border-radius: 3px;
    cursor: pointer;
    font-family: inherit;
}
.tod-msgarea__collapse:hover { color: #f0e4c4; border-color: rgba(201, 167, 78, 0.7); }
.tod-msgarea__scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}
.tod-msgarea__scroll::-webkit-scrollbar { width: 0; height: 0; display: none; }

.tod-msg-empty {
    margin: auto;
    text-align: center;
    color: rgba(157, 139, 196, 0.7);
    font-size: 13px;
    letter-spacing: 1px;
    line-height: 1.8;
    max-width: 240px;
}

.tod-msg {
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-width: 86%;
}
.tod-msg.is-user { align-self: flex-end; align-items: flex-end; }
.tod-msg.is-char { align-self: flex-start; align-items: flex-start; }
.tod-msg-head {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: #9d8bc4;
    letter-spacing: 0.5px;
}
.tod-msg-ava {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #2a1840;
    font-size: 11px;
    color: #c9a74e;
    flex: 0 0 auto;
}
.tod-msg-ava img { width: 100%; height: 100%; object-fit: cover; }
.tod-msg-bubble {
    padding: 9px 12px;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.7;
    letter-spacing: 0.4px;
    word-break: break-word;
    border: 1px solid rgba(201, 167, 78, 0.2);
}
.tod-msg.is-char .tod-msg-bubble {
    background: linear-gradient(180deg, rgba(58, 32, 78, 0.65), rgba(38, 22, 54, 0.7));
    color: #e8dcc0;
    border-top-left-radius: 0;
}
.tod-msg.is-user .tod-msg-bubble {
    background: linear-gradient(180deg, rgba(74, 25, 66, 0.72), rgba(52, 18, 48, 0.78));
    color: #f0e4c4;
    border-top-right-radius: 0;
}
.tod-msg.tag-win .tod-msg-bubble { border-color: rgba(217, 184, 99, 0.6); box-shadow: 0 0 10px rgba(217, 184, 99, 0.18); }
.tod-msg.tag-lose .tod-msg-bubble { border-color: rgba(120, 110, 150, 0.45); }
.tod-msg.tag-truth .tod-msg-bubble { border-left: 2px solid #6fae8f; }
.tod-msg.tag-dare .tod-msg-bubble { border-left: 2px solid #b2406e; }
.tod-msg-act { color: #b6a0d8; font-style: normal; opacity: 0.92; }
.tod-msg-say { color: inherit; }
.tod-msg-trans { display: block; margin-top: 3px; font-size: 12px; color: #9d8bc4; }

/* 旁白：不进气泡，淡色斜体一行 */
.tod-msg-narr {
    margin: 2px 0 4px;
    padding: 0 2px;
    font-size: 13px;
    line-height: 1.6;
    font-style: italic;
    color: #a99bcb;
    opacity: 0.92;
    word-break: break-word;
}
.tod-msg.is-char .tod-msg-narr { max-width: 86%; }

/* 一条消息里可能含多段气泡 + 旁白，纵向堆叠 */
.tod-msg.is-char { display: flex; flex-direction: column; align-items: flex-start; }
.tod-msg.is-char .tod-msg-bubble { display: inline-block; }

/* 消息气泡长按互动菜单（仿微信） */
.tod-msg[data-tod-msg-id] { -webkit-touch-callout: none; cursor: default; }

.tod-msg-menu {
    position: fixed;
    z-index: 100210;
    display: none;
    flex-direction: row;
    gap: 2px;
    padding: 4px;
    background: linear-gradient(180deg, #2c1c40, #1a1028);
    border: 1px solid rgba(201, 167, 78, 0.5);
    border-radius: 6px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.55);
    font-family: inherit;
    -webkit-user-select: none;
    user-select: none;
}

.tod-msg-menu.is-open {
    display: flex;
}

.tod-msg-menu__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-width: 52px;
    padding: 8px 10px;
    background: transparent;
    border: none;
    border-radius: 4px;
    color: #e8dcc0;
    font-size: 12px;
    line-height: 1;
    letter-spacing: 0.5px;
    cursor: pointer;
    font-family: inherit;
}

.tod-msg-menu__item:hover {
    background: rgba(201, 167, 78, 0.16);
    color: #f0e4c4;
}

.tod-msg-menu__item:active {
    background: rgba(201, 167, 78, 0.28);
}

.tod-msg-menu__ico {
    font-size: 17px;
    line-height: 1;
    color: #c9a74e;
}

/* 本局分隔线 */
.tod-msg-divider {
    align-self: center;
    margin: 8px auto;
    padding: 2px 12px;
    font-size: 11px;
    letter-spacing: 2px;
    color: #8d7fb4;
    opacity: 0.7;
}

/* 表情贴纸 */
.tod-msg-sticker {
    display: inline-block;
    width: 110px;
    height: 110px;
    object-fit: contain;
    vertical-align: middle;
    border-radius: 8px;
}
/* 仅含一张贴纸的消息：不套气泡，直接放大显示 */
.tod-msg-stickerwrap { padding: 2px 0; }
.tod-msg-sticker.is-solo {
    width: 120px;
    height: 120px;
    border-radius: 10px;
}
.tod-emoji-sticker {
    width: 46px !important;
    height: 46px !important;
    padding: 3px !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.tod-emoji-sticker img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 6px;
    pointer-events: none;
}
.tod-msg-typing { display: inline-flex; gap: 4px; }
.tod-msg-typing i {
    width: 5px; height: 5px; border-radius: 50%;
    background: #c9a74e; opacity: 0.5;
    animation: tod-blink 1.1s ease-in-out infinite;
}
.tod-msg-typing i:nth-child(2) { animation-delay: 0.18s; }
.tod-msg-typing i:nth-child(3) { animation-delay: 0.36s; }

/* —— 收叠的侧边标签卡 —— */
.tod-sidetab {
    position: fixed;
    left: 6px;
    top: 38%;
    z-index: 100196;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 9px 7px;
    border: 1px solid rgba(201, 167, 78, 0.5);
    border-radius: 4px;
    background: linear-gradient(180deg, rgba(58, 32, 78, 0.92), rgba(30, 16, 46, 0.95));
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5), 0 0 12px rgba(201, 167, 78, 0.18);
    color: #e8dcc0;
    cursor: grab;
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
}
.tod-sidetab:active { cursor: grabbing; }
.tod-sidetab__icon { font-size: 18px; }
.tod-sidetab__txt { font-size: 11px; letter-spacing: 2px; color: #c9a74e; writing-mode: vertical-rl; }
.tod-sidetab__count {
    min-width: 18px;
    padding: 1px 4px;
    border-radius: 9px;
    background: #b2406e;
    color: #fff;
    font-size: 11px;
    text-align: center;
}

/* —— 出题卡编辑器 —— */
.tod-compose-editor {
    width: 100%;
    max-width: 340px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.tod-compose-field { display: flex; flex-direction: column; gap: 5px; text-align: left; }
.tod-compose-field .lab { font-size: 12px; letter-spacing: 1px; color: #c9a74e; }
.tod-compose-field .lab.truth { color: #8fcaa9; }
.tod-compose-field .lab.dare { color: #d98fb0; }
.tod-compose-field textarea {
    width: 100%;
    box-sizing: border-box;
    resize: none;
    padding: 9px 11px;
    border-radius: 4px;
    border: 1px solid rgba(201, 167, 78, 0.32);
    background: rgba(14, 9, 24, 0.6);
    color: #f0e4c4;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.6;
}
.tod-compose-field textarea:focus { outline: none; border-color: rgba(201, 167, 78, 0.7); }

/* —— 揭晓 / 执行卡 —— */
.tod-reveal-card {
    width: 100%;
    max-width: 340px;
    text-align: left;
    border: 1px solid rgba(201, 167, 78, 0.3);
    border-radius: 4px;
    padding: 12px 14px;
    background: linear-gradient(180deg, rgba(48, 26, 66, 0.6), rgba(26, 14, 40, 0.7));
}
.tod-reveal-card.type-truth { border-left: 3px solid #6fae8f; }
.tod-reveal-card.type-dare { border-left: 3px solid #b2406e; }
.tod-reveal-card.is-mini { padding: 9px 12px; }
.tod-reveal-from {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #9d8bc4;
    margin-bottom: 8px;
}
.tod-reveal-body { font-size: 15px; line-height: 1.8; color: #f0e4c4; letter-spacing: 0.4px; }

/* —— 落幕积分小条 —— */
.tod-done-standing {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
}
.tod-done-chip {
    font-size: 12px;
    padding: 3px 10px;
    border-radius: 12px;
    border: 1px solid rgba(201, 167, 78, 0.3);
    background: rgba(40, 22, 58, 0.6);
    color: #d9c99a;
}

/* —— 接收按钮 —— */
.tod-recv-btn {
    flex: 0 0 auto;
    padding: 0 14px;
    height: 38px;
    border-radius: 4px;
    border: 1px solid rgba(201, 167, 78, 0.45);
    background: rgba(40, 22, 58, 0.7);
    color: #c9a74e;
    font-family: inherit;
    font-size: 14px;
    letter-spacing: 1px;
    cursor: pointer;
}
.tod-recv-btn:hover:not(:disabled) { background: rgba(58, 32, 78, 0.85); }
.tod-recv-btn:disabled { opacity: 0.45; cursor: default; }

.tod-dice-tray--mini { transform: scale(0.78); transform-origin: center; margin: -6px 0; }

/* —— 心跳监控弹层 —— */
.tod-hb-mask {
    position: absolute;
    inset: 0;
    z-index: 100197;
    background: rgba(8, 5, 16, 0.7);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.tod-hb-modal {
    width: 100%;
    max-width: 340px;
    border: 1px solid rgba(201, 167, 78, 0.4);
    border-radius: 6px;
    background: linear-gradient(180deg, rgba(40, 22, 60, 0.98), rgba(20, 12, 32, 0.98));
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(178, 64, 110, 0.18);
    padding: 14px 16px 18px;
}
.tod-hb-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}
.tod-hb-head > div { flex: 1 1 auto; display: flex; flex-direction: column; }
.tod-hb-head strong { color: #f0e4c4; font-size: 15px; }
.tod-hb-head small { color: #b2406e; font-size: 11px; letter-spacing: 2px; }
.tod-hb-modal .hb-report { display: flex; flex-direction: column; gap: 10px; }
.tod-hb-modal .hb-section-label { font-size: 11px; letter-spacing: 2px; color: #9d8bc4; }
.tod-hb-modal .hb-rate-wrap { display: flex; align-items: baseline; gap: 4px; }
.tod-hb-modal .hb-rate-num { font-size: 32px; font-weight: 700; color: #e36a93; }
.tod-hb-modal .hb-rate-unit { font-size: 12px; color: #9d8bc4; }
.tod-hb-modal .hb-emotions { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; }
.tod-hb-modal .hb-emotion-tag {
    font-size: 11px;
    padding: 2px 9px;
    border-radius: 11px;
    background: rgba(178, 64, 110, 0.2);
    border: 1px solid rgba(178, 64, 110, 0.4);
    color: #e7a8c2;
}
.tod-hb-modal .hb-thought {
    font-size: 13px;
    line-height: 1.8;
    color: #d8cbe8;
    white-space: pre-wrap;
}

/* —— 积分总榜 —— */
.tod-rank-list { display: flex; flex-direction: column; gap: 8px; }
.tod-rank-row {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 9px 12px;
    border: 1px solid rgba(201, 167, 78, 0.2);
    border-radius: 4px;
    background: rgba(30, 16, 46, 0.5);
}
.tod-rank-row.is-top { border-color: rgba(217, 184, 99, 0.5); box-shadow: 0 0 12px rgba(217, 184, 99, 0.12); }
.tod-rank-no { width: 26px; text-align: center; font-size: 16px; color: #d9b863; flex: 0 0 auto; }
.tod-rank-ava {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    overflow: hidden;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #2a1840;
    color: #c9a74e;
}
.tod-rank-ava img { width: 100%; height: 100%; object-fit: cover; }
.tod-rank-main { flex: 1 1 auto; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tod-rank-main strong { color: #f0e4c4; font-size: 14px; }
.tod-rank-main small { color: #9d8bc4; font-size: 11px; }
.tod-rank-score { flex: 0 0 auto; color: #d9b863; font-size: 12px; }
.tod-rank-score b { font-size: 18px; margin-right: 2px; }

/* 旧版气泡提示遮罩已弃用 */
.tod-stage.is-dismissable::after { content: none; }
