* { margin: 0; padding: 0; box-sizing: border-box; }

html {
    width: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Comic Sans MS', 'PingFang SC', 'Microsoft YaHei', cursive;
    width: 100%;
    min-height: 100vh;
    overflow-x: hidden;
    background: #f5f0eb;
    position: relative;
    transition: background 0.4s, color 0.4s;
    -webkit-user-select: none;
    user-select: none;
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath d='M4 3 L17 12 L11 13.5 L14.5 21 L11.5 22.3 L8.1 14.9 L4 19 Z' fill='white' stroke='black' stroke-width='2' stroke-linejoin='round'/%3E%3C/svg%3E") 4 3, auto;
}

button,
.feedback-btn,
.copy-btn,
.vote-btn,
.daily-use-btn,
.restart-btn,
.refresh-btn {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath d='M8 10 V5 C8 3.9 8.9 3 10 3 C11.1 3 12 3.9 12 5 V9 H13 V6 C13 4.9 13.9 4 15 4 C16.1 4 17 4.9 17 6 V10 H18 C19.1 10 20 10.9 20 12 V15 C20 19 17.5 22 13.5 22 H11 C7 22 4 19 4 15 V12 C4 10.9 4.9 10 6 10 Z' fill='white' stroke='black' stroke-width='2' stroke-linejoin='round'/%3E%3C/svg%3E") 8 4, pointer;
}

button:disabled,
.daily-use-btn:disabled,
.vote-btn:disabled,
.feedback-submit:disabled {
    cursor: not-allowed;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: radial-gradient(circle, #000 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.04;
    pointer-events: none;
}

/* === 深色模式 === */
body.dark { background: #1a1a2e; color: #eee; }
body.dark .bubble-card { background: #2a2a3e; border-color: #ff6b9d; box-shadow: 6px 6px 0 #ff6b9d44, 0 0 20px #ff6b9d22; }
body.dark .bubble-card::after { border-top-color: #ff6b9d; }
body.dark .bubble-card::before { border-top-color: #2a2a3e; }
body.dark .quote-text { color: #eee; }
body.dark .toolbar-control { background: #2a2a3e; color: #eee; border-color: #ff6b9d; box-shadow: 3px 3px 0 #ff6b9d44; }
body.dark .counter-label,
body.dark .counter-unit { color: #bbb; }
body.dark .daily-banner,
body.dark .moyu-board { background: #2a2a3e; border-color: #ffd700; color: #eee; box-shadow: 3px 3px 0 rgba(255, 215, 0, 0.22); }
body.dark .daily-label,
body.dark .moyu-title { border-color: #ffd700; box-shadow: none; }
body.dark .daily-use-btn { background: #333; color: #eee; border-color: #ffd700; }
body.dark .refresh-btn { background: #ff6b9d; box-shadow: 5px 5px 0 #ff6b9d44; border-color: #ff6b9d; }
body.dark .vote-btn { background: #333; color: #ccc; border-color: #555; }
body.dark .vote-btn.selected { border-color: #ff6b9d; }
body.dark .vote-comment { color: #ffb3c7; }
body.dark .achievement-area { background: #2a2a3e; border-color: #555; }
body.dark .streak-badge { background: #ff6b9d; border-color: #ff6b9d; }
body.dark::before { opacity: 0.02; }

/* === 入场动画 === */
.intro-overlay {
    position: fixed;
    inset: 0;
    background: #fff5e6;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: opacity 0.7s ease, visibility 0.7s ease;
}
body.dark .intro-overlay { background: #1a1a2e; }

.intro-overlay.hide { opacity: 0; visibility: hidden; pointer-events: none; }

.intro-burst {
    width: clamp(320px, 22vw, 420px);
    height: clamp(320px, 22vw, 420px);
    background: #fff;
    clip-path: polygon(50% 0%, 61% 15%, 78% 5%, 75% 22%, 95% 25%, 82% 38%, 100% 50%, 82% 62%, 95% 75%, 75% 78%, 78% 95%, 61% 85%, 50% 100%, 39% 85%, 22% 95%, 25% 78%, 5% 75%, 18% 62%, 0% 50%, 18% 38%, 5% 25%, 25% 22%, 22% 5%, 39% 15%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 4px solid #000;
    box-shadow: 6px 6px 0 #000;
    opacity: 0;
    transform: scale(0.8);
    animation: introAppear 1s ease-out 0.3s forwards;
}

@keyframes introAppear { to { opacity: 1; transform: scale(1); } }

.intro-title { font-size: clamp(32px, 2vw, 42px); font-weight: 900; color: #ff6b6b; text-shadow: 2px 2px 0 rgba(0,0,0,0.1); }
.intro-sub { font-size: clamp(15px, 0.9vw, 18px); color: #666; margin-top: 8px; font-weight: bold; }
.intro-bowl-emoji { font-size: clamp(62px, 4vw, 82px); margin-bottom: 12px; }

.intro-btn {
    margin-top: 32px;
    padding: 16px 44px;
    background: #ff6b6b;
    border: 3px solid #000;
    border-radius: 8px;
    color: #fff;
    font-size: 21px;
    font-weight: 900;
    box-shadow: 4px 4px 0 #000;
    transition: transform 0.2s, box-shadow 0.2s;
    opacity: 0;
    animation: introAppear 0.8s ease-out 1s forwards;
}
.intro-btn:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 #000; }
.intro-btn:active { transform: translate(4px, 4px); box-shadow: 0 0 0 #000; }

.intro-countdown {
    margin-top: 12px;
    padding: 5px 12px;
    border: 2px solid #000;
    border-radius: 999px;
    background: #ffd700;
    color: #333;
    font-size: 12px;
    font-weight: 900;
    opacity: 0;
    animation: introAppear 0.8s ease-out 1.15s forwards;
}
.intro-countdown strong {
    display: inline-block;
    min-width: 14px;
    color: #ff6b6b;
    font-variant-numeric: tabular-nums;
    text-align: center;
}
body.dark .intro-countdown { border-color: #ffd700; background: #2a2a3e; color: #eee; }

.sfx { position: absolute; font-size: 32px; font-weight: 900; color: rgba(0,0,0,0.06); pointer-events: none; }
.sfx-1 { top: 12%; left: 8%; transform: rotate(-15deg); }
.sfx-2 { top: 18%; right: 8%; transform: rotate(12deg); }
.sfx-3 { bottom: 18%; left: 12%; transform: rotate(-8deg); }

/* === 顶部工具栏 === */
.toolbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px clamp(18px, 2vw, 32px);
    z-index: 150;
    background: #f5f0eb;
    box-shadow: 0 2px 0 rgba(0, 0, 0, 0.08), 0 6px 8px -6px rgba(0, 0, 0, 0.18);
}
body.dark .toolbar {
    background: #1a1a2e;
    box-shadow: 0 2px 0 rgba(255, 107, 157, 0.18), 0 6px 8px -6px rgba(0, 0, 0, 0.4);
}

.toolbar-left { display: flex; align-items: center; gap: 10px; min-width: 0; }
.toolbar-right { display: flex; align-items: center; gap: 8px; min-width: 0; flex-shrink: 0; }

/* === 主题化 tooltip：替代单调的浏览器原生 title 提示 === */
[data-hint] { position: relative; }
[data-hint]::after {
    content: attr(data-hint);
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 220;
    padding: 6px 10px;
    background: #fff8d6;
    color: #333;
    border: 2px solid #000;
    border-radius: 8px;
    box-shadow: 3px 3px 0 #000;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.4;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity 0.15s ease, transform 0.15s ease;
}
[data-hint]:hover::after,
[data-hint]:focus-visible::after {
    opacity: 1;
    transform: translateY(0);
}
body.dark [data-hint]::after {
    background: #2a2a3e;
    color: #ffd700;
    border-color: #ff6b9d;
    box-shadow: 3px 3px 0 #ff6b9d;
}
@media (hover: none) {
    [data-hint]::after { display: none; }
}

.brand-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 38px;
    padding: 0 13px;
    background: #fff;
    border: 2px solid #000;
    color: #222;
    font-size: 13px;
    font-weight: 900;
    box-shadow: 3px 3px 0 #000;
    white-space: nowrap;
    flex-shrink: 1;
    min-width: 0;
}
body.dark .brand-badge {
    background: #2a2a3e;
    color: #eee;
    border-color: #ff6b9d;
    box-shadow: 3px 3px 0 #ff6b9d44;
}

.streak-badge {
    display: inline-flex;
    align-items: center;
    height: 38px;
    background: #ff6b6b;
    color: #fff;
    border: 2px solid #000;
    padding: 0 12px;
    font-size: 12px;
    font-weight: 900;
    box-shadow: 2px 2px 0 #000;
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.3s, transform 0.3s;
    white-space: nowrap;
    pointer-events: none;
    visibility: hidden;
}
.streak-badge.show {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
    visibility: visible;
}

.toolbar-control {
    background: #fff;
    border: 2px solid #000;
    height: 38px;
    min-width: 44px;
    box-shadow: 3px 3px 0 #000;
    color: #222;
    font-weight: 900;
}

.toolbar-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    padding: 0;
    font-size: 18px;
    line-height: 1;
    transition: transform 0.1s, box-shadow 0.1s;
}
.toolbar-icon:hover { transform: translate(1px, 1px); box-shadow: 2px 2px 0 #000; }
.toolbar-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 56px;
    padding: 0 10px;
    font-size: 12px;
    white-space: nowrap;
}
.toolbar-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: #ff6b6b;
    color: #fff;
    font-size: 11px;
    line-height: 1;
}

.counter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 118px;
    padding: 0 12px;
    font-size: 12px;
    font-variant-numeric: tabular-nums;
    line-height: 1;
}
.counter-label {
    color: #777;
    font-size: 11px;
    font-weight: 900;
}
.counter-main {
    color: #ff6b6b;
    font-size: 15px;
    font-weight: 900;
}
.counter-unit {
    color: #777;
    font-size: 11px;
    font-weight: 900;
}

/* === 每日一毒 === */
.daily-banner,
.moyu-board {
    background: #fff;
    border: 2px solid #ffd700;
    border-radius: 8px;
    max-width: 720px;
    width: 100%;
    min-width: 0;
    box-shadow: 3px 3px 0 rgba(255, 215, 0, 0.2);
}

.daily-banner {
    padding: 12px 14px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    text-align: left;
    position: relative;
    margin-bottom: 12px;
    cursor: pointer;
    transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.daily-banner:hover { transform: translate(1px, 1px); box-shadow: 2px 2px 0 rgba(255, 215, 0, 0.2); }

.daily-label,
.moyu-title {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #ffd700;
    color: #333;
    font-family: inherit;
    font-size: 11px;
    font-weight: 900;
    padding: 4px 10px;
    border-radius: 14px;
    border: 2px solid #000;
    line-height: 1;
    white-space: nowrap;
}

.daily-text {
    min-width: 0;
    font-size: 14px;
    font-weight: 900;
    color: #555;
    line-height: 1.45;
}
body.dark .daily-text { color: #ccc; }

.daily-actions {
    display: flex;
    justify-content: center;
}

.daily-use-btn {
    padding: 4px 12px;
    border: 2px solid #000;
    border-radius: 14px;
    background: #fff;
    color: #333;
    font-size: 11px;
    font-weight: 900;
    box-shadow: 2px 2px 0 rgba(0,0,0,0.14);
}
.daily-use-btn:disabled { cursor: not-allowed; opacity: 0.55; }

/* === 摸鱼办 === */
.moyu-board {
    padding: 11px 14px 12px;
    margin-bottom: 24px;
}

.moyu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.moyu-date {
    min-width: 0;
    color: #666;
    font-family: inherit;
    font-size: 11px;
    font-weight: 700;
    text-align: right;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.moyu-compact {
    display: none;
    padding-top: 8px;
    border-top: 1px dashed #ddd;
    color: #555;
    font-size: 12px;
    font-weight: 900;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.moyu-grid {
    display: grid;
    grid-template-columns: 0.85fr 1fr 1.25fr;
    gap: 14px;
    border-top: 1px dashed #ddd;
    padding-top: 9px;
}

.moyu-item {
    min-width: 0;
    padding: 0;
}

.moyu-label {
    display: block;
    color: #999;
    font-family: inherit;
    font-size: 10px;
    font-weight: 800;
    line-height: 1.2;
    white-space: nowrap;
}

.moyu-value {
    display: block;
    margin-top: 3px;
    color: #222;
    font-family: inherit;
    font-size: 15px;
    font-weight: 900;
    font-variant-numeric: tabular-nums;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.moyu-note {
    margin-top: 2px;
    color: #888;
    font-family: inherit;
    font-size: 10px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.moyu-value-weekday { color: #222; }
.moyu-value-countdown {
    color: #ff6b6b;
    font-family: 'Consolas', 'SF Mono', 'Menlo', monospace;
    font-size: 17px;
    font-weight: 900;
    letter-spacing: -0.5px;
}
.moyu-value-holiday {
    color: #ff6b6b;
    font-family: 'Consolas', 'SF Mono', 'Menlo', monospace;
    font-size: 17px;
    font-weight: 900;
    letter-spacing: -0.5px;
}
.moyu-num {
    font-size: 1.08em;
    font-weight: 900;
}
.moyu-unit {
    margin-left: 2px;
    font-family: inherit;
    font-size: 0.78em;
    font-weight: 900;
    color: #8a2020;
}
.moyu-sep {
    margin: 0 1px;
    color: #b94747;
}
.moyu-note-full {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    line-height: 1.35;
}
body.dark .moyu-date,
body.dark .moyu-note,
body.dark .moyu-compact { color: #bbb; }
body.dark .moyu-label { color: #888; }
body.dark .moyu-value-weekday { color: #eee; }
body.dark .moyu-value-countdown { color: #ff8a98; }
body.dark .moyu-value-holiday { color: #ff8a98; }
body.dark .moyu-unit,
body.dark .moyu-sep { color: #ffd6d6; }
body.dark .moyu-grid { border-color: #555; }

/* === 主卡片区 === */
.card-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 60px);
    width: 100%;
    max-width: 100vw;
    padding: 84px 20px 24px;
}

.stage-layout {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: min(100%, 720px);
}

.support-column,
.main-stage {
    width: 100%;
    min-width: 0;
}

.support-column {
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.pk-board {
    width: 100%;
    max-width: 720px;
    margin: 0 auto 18px;
    padding: 14px;
    border: 2px solid #000;
    border-radius: 8px;
    background: #fff;
    box-shadow: 4px 4px 0 #000;
}
.pk-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.pk-title {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border: 2px solid #000;
    border-radius: 14px;
    background: #ffd700;
    color: #333;
    font-size: 11px;
    font-weight: 900;
    line-height: 1;
}
.pk-refresh-btn {
    padding: 7px 12px;
    border: 2px solid #000;
    background: #fff;
    color: #222;
    font-size: 12px;
    font-weight: 900;
    box-shadow: 2px 2px 0 #000;
}
.pk-subtitle {
    margin-top: 10px;
    color: #666;
    font-size: 12px;
    font-weight: 800;
}
.pk-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 12px;
}
.pk-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    min-height: 148px;
    padding: 14px;
    border: 2px solid #000;
    border-radius: 8px;
    background: #fff8f1;
    color: #222;
    text-align: left;
    box-shadow: 3px 3px 0 #000;
    transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.2s ease;
}
.pk-card:hover { transform: translate(1px, 1px); box-shadow: 2px 2px 0 #000; }
.pk-card.selected {
    background: #ff6b6b;
    color: #fff;
    border-color: #ff6b6b;
    box-shadow: 3px 3px 0 rgba(255, 107, 107, 0.35);
}
.pk-card:disabled { cursor: not-allowed; opacity: 0.86; }
.pk-card-label {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border: 2px solid currentColor;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 900;
    line-height: 1;
}
.pk-card-text {
    font-size: 15px;
    line-height: 1.7;
    font-weight: 900;
}
.pk-card-meta {
    font-size: 11px;
    font-weight: 800;
    opacity: 0.82;
}
.pk-result {
    margin-top: 12px;
}
.pk-bar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    height: 10px;
    border-radius: 999px;
    overflow: hidden;
    background: #eee;
    border: 1px solid #ddd;
}
.pk-bar-left {
    background: linear-gradient(90deg, #ff6b6b, #ff9d7d);
    width: 0%;
    transition: width 0.4s ease;
}
.pk-bar-right {
    justify-self: end;
    background: linear-gradient(90deg, #ffd700, #ffad33);
    width: 0%;
    transition: width 0.4s ease;
}
.pk-result-stats {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-top: 6px;
    color: #888;
    font-size: 11px;
    font-weight: 800;
}
.pk-comment {
    min-height: 18px;
    margin-top: 10px;
    color: #ff6b6b;
    font-size: 12px;
    font-weight: 900;
}

.main-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.bubble-card {
    position: relative;
    background: #fff;
    border: 4px solid #000;
    border-radius: 24px;
    padding: 48px 44px 32px;
    max-width: 720px;
    width: 100%;
    min-width: 0;
    min-height: 180px;
    box-shadow: 6px 6px 0 #000;
    text-align: center;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.bubble-card::after {
    content: '';
    position: absolute;
    bottom: -28px;
    left: 50%;
    margin-left: -18px;
    border-left: 18px solid transparent;
    border-right: 18px solid transparent;
    border-top: 28px solid #000;
}
.bubble-card::before {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    margin-left: -14px;
    border-left: 14px solid transparent;
    border-right: 14px solid transparent;
    border-top: 22px solid #fff;
    z-index: 1;
}
body.dark .bubble-card::before { border-top-color: #2a2a3e; }

.bubble-card.slide-in { animation: cardSlideIn 0.45s ease-out; }
@keyframes cardSlideIn {
    0% { transform: translateY(8px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

.quote-text {
    font-size: clamp(17px, 3vw, 24px);
    line-height: 1.9;
    color: #222;
    font-weight: 700;
    min-height: 60px;
}

.quote-text.quote-fade-in {
    animation: quoteFadeIn 0.42s ease-out;
}
@keyframes quoteFadeIn {
    0%   { filter: blur(8px); opacity: 0; transform: translateY(4px); }
    100% { filter: blur(0); opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
    .bubble-card.slide-in,
    .quote-text.quote-fade-in { animation: none; }
}

.quote-number {
    position: absolute;
    top: 10px;
    right: 18px;
    font-size: 11px;
    color: #bbb;
    font-weight: bold;
}

/* === 投票区域 === */
.vote-area {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 2px dashed #eee;
}
body.dark .vote-area { border-top-color: #444; }

.vote-btn {
    padding: 6px 14px;
    border: 2px solid #000;
    background: #fff;
    font-size: 13px;
    font-weight: 700;
    border-radius: 20px;
    transition: transform 0.15s, background 0.2s;
}
.vote-btn:hover { transform: scale(1.05); }
.vote-btn.selected { background: #ff6b6b; color: #fff; border-color: #ff6b6b; pointer-events: none; }
.vote-btn:disabled { cursor: not-allowed; opacity: 0.65; }
.vote-btn.selected:disabled { opacity: 1; }

.vote-result {
    display: none;
    width: 100%;
    margin-top: 10px;
}
.vote-result.show { display: block; }

.vote-bar {
    height: 8px;
    border-radius: 4px;
    background: #eee;
    overflow: hidden;
    margin-top: 6px;
}
body.dark .vote-bar { background: #444; }

.vote-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff6b6b, #ff8e8e);
    border-radius: 4px;
    transition: width 0.6s ease;
}

.vote-stats {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: #999;
    margin-top: 4px;
}

.vote-comment {
    min-height: 20px;
    margin-top: 8px;
    font-size: 12px;
    font-weight: 900;
    color: #ff6b6b;
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}
.vote-comment.show { opacity: 1; transform: translateY(0); }

/* === 角色 + 按钮 === */
.character {
    margin-top: 28px;
    font-size: 52px;
    animation: characterFloat 2.5s ease-in-out infinite alternate;
}
@keyframes characterFloat {
    from { transform: translateY(0) rotate(-2deg); }
    to { transform: translateY(-5px) rotate(2deg); }
}

.refresh-btn {
    margin-top: 14px;
    padding: 14px 40px;
    min-width: 188px;
    background: #ff6b6b;
    border: 3px solid #000;
    border-radius: 0;
    color: #fff;
    font-size: 18px;
    font-weight: 900;
    box-shadow: 5px 5px 0 #000;
    transition: transform 0.1s, box-shadow 0.1s;
    letter-spacing: 2px;
}
.refresh-btn:hover { transform: translate(2px, 2px); box-shadow: 3px 3px 0 #000; background: #ff5252; }
.refresh-btn:active { transform: translate(5px, 5px); box-shadow: 0 0 0 #000; }

.refresh-btn.wiggle { animation: btnWiggle 0.5s ease; }
@keyframes btnWiggle {
    0%, 100% { transform: rotate(0deg); }
    20% { transform: rotate(-3deg); }
    40% { transform: rotate(3deg); }
    60% { transform: rotate(-2deg); }
    80% { transform: rotate(2deg); }
}

.hint-text {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-top: 16px;
    padding: 8px 16px;
    border: 3px solid #000;
    border-radius: 999px;
    background: #fff2a8;
    color: #333;
    font-size: 13px;
    font-weight: 900;
    box-shadow: 3px 3px 0 rgba(0,0,0,0.22);
}
.hint-text kbd {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 3px 10px;
    border: 2px solid #000;
    border-radius: 6px;
    background: #ffd700;
    color: #222;
    font-family: inherit;
    font-size: 12px;
    line-height: 1;
    box-shadow: 1px 1px 0 #000;
}
.mobile-hint { display: none; }
body.dark .hint-text {
    background: #2a2a3e;
    border-color: #ff6b9d;
    color: #eee;
    box-shadow: 2px 2px 0 #ff6b9d44;
}
body.dark .hint-text kbd { border-color: #ffd700; }

.combo-burst {
    min-height: 24px;
    margin-top: 8px;
    color: #ff6b6b;
    font-size: 14px;
    font-weight: 900;
    opacity: 0;
    transform: scale(0.92);
    transition: opacity 0.2s ease, transform 0.2s ease;
}
.combo-burst.show { opacity: 1; transform: scale(1); }

/* === 成就区 === */
.achievement-area {
    position: fixed;
    bottom: clamp(18px, 2vw, 28px);
    left: clamp(18px, 2vw, 28px);
    background: #fff;
    border: 2px solid #000;
    padding: 8px 14px;
    font-size: 12px;
    font-weight: 700;
    box-shadow: 3px 3px 0 #000;
    z-index: 50;
    max-width: 220px;
    text-align: left;
}

.achievement-title { font-size: 11px; color: #999; margin-bottom: 4px; }
.achievement-name { font-size: 14px; color: #ff6b6b; }

/* === 成就 toast === */
.achievement-toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    background: #fff;
    border: 3px solid #ffd700;
    border-radius: 12px;
    padding: 12px 24px;
    text-align: center;
    box-shadow: 4px 4px 0 rgba(255,215,0,0.3);
    z-index: 200;
    opacity: 0;
    visibility: hidden;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease, visibility 0.3s ease;
    display: flex;
    align-items: center;
    gap: 12px;
    pointer-events: none;
}
.achievement-toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    visibility: visible;
}
body.dark .achievement-toast { background: #2a2a3e; border-color: #ffd700; }
.achievement-toast .emoji { font-size: 32px; }
.achievement-toast .toast-content { text-align: left; }
.achievement-toast .title { font-size: 15px; font-weight: 900; color: #333; }
body.dark .achievement-toast .title { color: #eee; }
.achievement-toast .desc { font-size: 12px; color: #888; margin-top: 2px; }

/* === 完成弹窗 === */
.complete-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}
.complete-overlay.show { opacity: 1; visibility: visible; }

.complete-box {
    background: #fff;
    border: 4px solid #000;
    padding: 44px;
    text-align: center;
    box-shadow: 8px 8px 0 #000;
    border-radius: 8px;
    transform: scale(0);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.complete-overlay.show .complete-box { transform: scale(1); }
body.dark .complete-box { background: #2a2a3e; border-color: #ff6b9d; }

.complete-emoji { font-size: 60px; }
.complete-msg {
    font-size: 24px;
    font-weight: 900;
    margin: 14px 0 8px;
    color: #111;
}
.complete-sub {
    display: inline-block;
    padding: 5px 12px;
    margin-bottom: 20px;
    border: 2px solid #222;
    border-radius: 999px;
    background: #fff2a8;
    color: #222;
    font-size: 12px;
    font-weight: 800;
    box-shadow: 2px 2px 0 #222;
}

.complete-summary {
    display: grid;
    gap: 10px;
    width: min(360px, 82vw);
    margin: 0 auto 20px;
    text-align: left;
}
.complete-summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    border-bottom: 1px dashed #ddd;
    padding-bottom: 7px;
    font-size: 12px;
    color: #777;
}
.complete-summary-row > span {
    flex-shrink: 0;
}
.summary-label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #222;
    font-weight: 900;
}
.summary-icon {
    display: inline-grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border: 2px solid #222;
    border-radius: 6px;
    background: #fff;
    box-shadow: 2px 2px 0 #222;
    font-size: 13px;
    line-height: 1;
}
.complete-summary-row strong {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 74px;
    max-width: 180px;
    padding: 5px 10px;
    border: 2px solid #222;
    border-radius: 6px;
    box-shadow: 2px 2px 0 #222;
    color: #222;
    font-size: 13px;
    font-weight: 900;
    line-height: 1.15;
    text-align: center;
}
.summary-value-main,
.summary-value-choice,
.summary-value-copy { background: #fff2a8; color: #222; }
.summary-value-vote,
.summary-value-streak { background: #ffe0e0; color: #8a2020; }
body.dark .complete-summary-row { border-bottom-color: #555; color: #bbb; }
body.dark .complete-msg { color: #fff; }
body.dark .complete-sub {
    border-color: #ff6b9d;
    background: #6b5d20;
    color: #fff0a6;
    box-shadow: 2px 2px 0 #ff6b9d;
}
body.dark .summary-label { color: #eee; }
body.dark .summary-icon {
    border-color: #ff6b9d;
    background: #2a2a3e;
    box-shadow: 2px 2px 0 #ff6b9d;
}
body.dark .complete-summary-row strong {
    border-color: #ff6b9d;
    box-shadow: 2px 2px 0 #ff6b9d;
}
body.dark .summary-value-main,
body.dark .summary-value-choice,
body.dark .summary-value-copy { background: #6b5d20; color: #fff0a6; }
body.dark .summary-value-vote,
body.dark .summary-value-streak { background: #6d2a2a; color: #ffd6d6; }

.restart-btn {
    padding: 10px 28px;
    background: #ffd700;
    border: 3px solid #000;
    font-size: 16px;
    font-weight: 900;
    box-shadow: 4px 4px 0 #000;
    transition: transform 0.1s, box-shadow 0.1s;
}
.restart-btn:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 #000; }

/* === emoji 飘落 === */
.emoji-rain {
    position: fixed;
    font-size: 24px;
    pointer-events: none;
    z-index: 10;
    animation: emojiDrop 1.5s ease-in forwards;
}
@keyframes emojiDrop {
    0% { transform: translateY(-20px) rotate(0deg); opacity: 1; }
    100% { transform: translateY(100vh) rotate(360deg); opacity: 0; }
}

/* === 打字光标 === */
.typing-cursor {
    display: inline-block;
    width: 2px;
    height: 1.1em;
    background: #ff6b6b;
    margin-left: 3px;
    vertical-align: middle;
    animation: blink 0.8s step-end infinite;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

/* === 复制按钮 === */
.copy-btn {
    padding: 6px 14px;
    border: 2px solid #000;
    background: #fff;
    font-size: 13px;
    font-weight: 700;
    border-radius: 20px;
    transition: transform 0.15s, background 0.2s;
}
.copy-btn:hover { transform: scale(1.05); }
.copy-btn.copied { background: #4caf50; color: #fff; border-color: #4caf50; pointer-events: none; }
body.dark .copy-btn { background: #333; color: #ccc; border-color: #555; }
body.dark .copy-btn.copied { background: #4caf50; border-color: #4caf50; color: #fff; }
.favorite-btn.favorited {
    background: #ff6b6b;
    color: #fff;
    border-color: #ff6b6b;
}
.share-btn { background: #fff8f1; }

.favorites-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: min(360px, 100vw);
    height: 100vh;
    padding: 18px 16px 22px;
    border-left: 3px solid #000;
    background: #fff;
    box-shadow: -6px 0 0 #000;
    z-index: 180;
    transform: translateX(100%);
    transition: transform 0.22s ease;
    display: flex;
    flex-direction: column;
    gap: 12px;
    overscroll-behavior: contain;
    overflow-y: auto;
}
.favorites-drawer.show { transform: translateX(0); }

.pk-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: min(420px, 100vw);
    height: 100vh;
    padding: 18px 16px 22px;
    border-left: 3px solid #000;
    background: #fff;
    box-shadow: -6px 0 0 #000;
    z-index: 180;
    transform: translateX(100%);
    transition: transform 0.22s ease;
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow-y: auto;
    overscroll-behavior: contain;
}
.pk-drawer.show { transform: translateX(0); }
.pk-drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
body.dark .pk-drawer {
    background: #1e1e2e;
    border-left-color: #ff6b9d;
    box-shadow: -6px 0 0 #ff6b9d;
}

.favorites-head,
.share-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.favorites-title,
.share-title {
    font-size: 16px;
    font-weight: 900;
    color: #222;
}
.favorites-close,
.share-close {
    width: 30px;
    height: 30px;
    border: 2px solid #000;
    background: #fff;
    color: #222;
    font-size: 18px;
    font-weight: 900;
    line-height: 1;
}
.favorites-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: #777;
    font-size: 12px;
    font-weight: 800;
}
.favorites-refresh {
    padding: 6px 10px;
    border: 2px solid #000;
    background: #fff8f1;
    font-size: 12px;
    font-weight: 900;
    box-shadow: 2px 2px 0 #000;
}
.favorites-list {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-right: 2px;
}
.favorites-item {
    padding: 12px;
    border: 2px solid #000;
    border-radius: 8px;
    background: #fff8f1;
    box-shadow: 3px 3px 0 #000;
}
.favorites-item-text {
    color: #222;
    font-size: 13px;
    font-weight: 900;
    line-height: 1.6;
}
.favorites-item-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 10px;
    color: #888;
    font-size: 11px;
    font-weight: 800;
}
.favorites-item-actions {
    display: flex;
    gap: 8px;
}
.favorites-item-btn {
    padding: 5px 9px;
    border: 2px solid #000;
    background: #fff;
    font-size: 11px;
    font-weight: 900;
    box-shadow: 2px 2px 0 #000;
}
.favorites-empty {
    padding: 16px 14px;
    border: 2px dashed #bbb;
    border-radius: 8px;
    color: #777;
    font-size: 13px;
    font-weight: 800;
    text-align: center;
}

.daily-sign-overlay,
.share-modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(0, 0, 0, 0.62);
    z-index: 220;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}
.daily-sign-overlay.show,
.share-modal.show {
    opacity: 1;
    visibility: visible;
}
.daily-sign-card,
.share-box {
    width: min(100%, 420px);
    padding: 18px;
    border: 3px solid #000;
    border-radius: 10px;
    background: #fff;
    box-shadow: 6px 6px 0 #000;
}
.daily-sign-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.daily-sign-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border: 2px solid #000;
    border-radius: 999px;
    background: #ffd700;
    color: #222;
    font-size: 11px;
    font-weight: 900;
}
.daily-sign-date {
    color: #777;
    font-size: 11px;
    font-weight: 800;
}
.daily-sign-score {
    margin-top: 16px;
    display: flex;
    align-items: baseline;
    gap: 10px;
}
.daily-sign-score strong {
    color: #ff6b6b;
    font-size: 40px;
    line-height: 1;
}
.daily-sign-score span {
    color: #555;
    font-size: 13px;
    font-weight: 900;
}
.daily-sign-message {
    margin-top: 12px;
    color: #222;
    font-size: 18px;
    font-weight: 900;
    line-height: 1.5;
}
.daily-sign-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}
.daily-sign-tag {
    padding: 4px 10px;
    border: 2px solid #000;
    border-radius: 999px;
    background: #fff8f1;
    color: #333;
    font-size: 11px;
    font-weight: 900;
}
.daily-sign-quote {
    margin-top: 14px;
    padding: 12px;
    border: 2px dashed #000;
    border-radius: 8px;
    background: #fffdf8;
    color: #444;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.7;
}
.daily-sign-actions,
.share-actions {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}
.daily-sign-btn,
.daily-sign-secondary,
.share-action {
    flex: 1;
    min-height: 40px;
    border: 2px solid #000;
    font-size: 13px;
    font-weight: 900;
    box-shadow: 3px 3px 0 #000;
}
.daily-sign-btn,
.share-action.primary {
    background: #ff6b6b;
    color: #fff;
}
.daily-sign-secondary,
.share-action {
    background: #fff;
    color: #222;
}
.share-preview {
    margin-top: 14px;
    border: 2px solid #000;
    border-radius: 8px;
    overflow: hidden;
    background: #000;
    box-shadow: 3px 3px 0 #000;
}
.share-preview canvas {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 5;
    background: #000;
}
.share-tip {
    margin-top: 12px;
    color: #666;
    font-size: 12px;
    font-weight: 800;
}

.easter-egg-toast {
    position: fixed;
    right: 20px;
    top: 80px;
    width: min(92vw, 360px);
    padding: 14px 16px;
    border: 3px solid #000;
    border-radius: 8px;
    background: #fff2a8;
    box-shadow: 5px 5px 0 #000;
    z-index: 210;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}
.easter-egg-toast.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.easter-egg-title {
    color: #222;
    font-size: 13px;
    font-weight: 900;
}
.easter-egg-content {
    margin-top: 6px;
    color: #444;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.55;
}

/* === 反馈入口 === */
.feedback-entry {
    position: fixed;
    right: clamp(18px, 2vw, 28px);
    bottom: clamp(18px, 2vw, 28px);
    z-index: 80;
}

.feedback-btn {
    width: 54px;
    height: 54px;
    border: 3px solid #000;
    border-radius: 50%;
    background: #ffd700;
    color: #222;
    font-size: 22px;
    font-weight: 900;
    box-shadow: 4px 4px 0 #000;
    transition: transform 0.1s, box-shadow 0.1s;
}
.feedback-btn:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 #000; }

.feedback-panel {
    position: absolute;
    right: 0;
    bottom: 66px;
    width: min(320px, calc(100vw - 36px));
    padding: 14px;
    border: 3px solid #000;
    border-radius: 8px;
    background: #fff;
    box-shadow: 6px 6px 0 #000;
    transform: translateY(10px) scale(0.96);
    transform-origin: right bottom;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
}
.feedback-panel.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.feedback-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}
.feedback-title {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border: 2px solid #000;
    border-radius: 14px;
    background: #ffd700;
    color: #333;
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
}
.feedback-close {
    width: 28px;
    height: 28px;
    border: 2px solid #000;
    background: #fff;
    font-size: 18px;
    font-weight: 900;
    line-height: 1;
}

.feedback-textarea,
.feedback-input {
    width: 100%;
    border: 2px solid #000;
    border-radius: 8px;
    background: #fff;
    color: #222;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    outline: none;
}
.feedback-textarea {
    min-height: 104px;
    padding: 10px;
    resize: vertical;
    line-height: 1.55;
}
.feedback-input {
    margin-top: 8px;
    padding: 8px 10px;
}
.feedback-textarea:focus,
.feedback-input:focus { border-color: #ff6b6b; box-shadow: 0 0 0 3px #ff6b6b22; }

.feedback-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 10px;
}
.feedback-count {
    color: #999;
    font-size: 11px;
    font-weight: 800;
}
.feedback-submit {
    padding: 8px 16px;
    border: 2px solid #000;
    border-radius: 0;
    background: #ff6b6b;
    color: #fff;
    font-size: 13px;
    font-weight: 900;
    box-shadow: 3px 3px 0 #000;
    transition: transform 0.1s, box-shadow 0.1s;
}
.feedback-submit:hover { transform: translate(1px, 1px); box-shadow: 2px 2px 0 #000; }
.feedback-submit:disabled { cursor: not-allowed; opacity: 0.65; }

.feedback-tip {
    min-height: 18px;
    margin-top: 8px;
    color: #ff6b6b;
    font-size: 12px;
    font-weight: 900;
}

.feedback-toast {
    position: fixed;
    right: clamp(18px, 2vw, 28px);
    bottom: 92px;
    z-index: 90;
    max-width: min(320px, calc(100vw - 36px));
    padding: 10px 14px;
    border: 3px solid #000;
    border-radius: 8px;
    background: #fff2a8;
    color: #222;
    font-size: 13px;
    font-weight: 900;
    box-shadow: 4px 4px 0 #000;
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}
.feedback-toast.show { opacity: 1; transform: translateY(0); }

body.dark .feedback-panel,
body.dark .feedback-close,
body.dark .feedback-textarea,
body.dark .feedback-input {
    background: #2a2a3e;
    color: #eee;
    border-color: #ff6b9d;
}
body.dark .feedback-btn,
body.dark .feedback-title { border-color: #ffd700; }
body.dark .feedback-panel { box-shadow: 6px 6px 0 #ff6b9d44; }
body.dark .feedback-close { box-shadow: none; }
body.dark .feedback-toast {
    background: #6b5d20;
    color: #fff0a6;
    border-color: #ff6b9d;
    box-shadow: 4px 4px 0 #ff6b9d;
}
body.dark .toolbar-chip,
body.dark .pk-board,
body.dark .pk-drawer,
body.dark .favorites-drawer,
body.dark .daily-sign-card,
body.dark .share-box {
    background: #2a2a3e;
    color: #eee;
    border-color: #ff6b9d;
    box-shadow: 4px 4px 0 #ff6b9d44;
}
body.dark .toolbar-count,
body.dark .favorite-btn.favorited {
    background: #ff6b9d;
    color: #fff;
}
body.dark .pk-title,
body.dark .daily-sign-badge {
    border-color: #ffd700;
    background: #6b5d20;
    color: #fff0a6;
}
body.dark .pk-subtitle,
body.dark .pk-result-stats,
body.dark .favorites-summary,
body.dark .daily-sign-date,
body.dark .share-tip {
    color: #bbb;
}
body.dark .pk-card,
body.dark .favorites-item,
body.dark .daily-sign-quote,
body.dark .daily-sign-tag,
body.dark .share-close,
body.dark .favorites-close,
body.dark .favorites-item-btn,
body.dark .favorites-refresh,
body.dark .pk-refresh-btn,
body.dark .share-action,
body.dark .daily-sign-secondary {
    background: #333348;
    color: #eee;
    border-color: #ff6b9d;
    box-shadow: 3px 3px 0 #ff6b9d44;
}
body.dark .pk-card.selected {
    background: #ff6b9d;
    border-color: #ff6b9d;
    color: #fff;
}
body.dark .favorites-title,
body.dark .share-title,
body.dark .daily-sign-message,
body.dark .favorites-item-text,
body.dark .easter-egg-title,
body.dark .easter-egg-content {
    color: #eee;
}
body.dark .daily-sign-score span,
body.dark .daily-sign-quote {
    color: #ddd;
}
body.dark .favorites-empty {
    border-color: #666;
    color: #bbb;
}
body.dark .easter-egg-toast {
    background: #6b5d20;
    border-color: #ff6b9d;
    box-shadow: 5px 5px 0 #ff6b9d;
}

/* === PC 端舞台优化：顶部并列辅助信息，不做侧栏 === */
@media (min-width: 900px) {
    .toolbar-control {
        box-shadow: 2px 2px 0 #000;
    }

    .card-section {
        justify-content: center;
        padding: 76px 24px 42px;
    }

    .stage-layout {
        width: min(100%, 860px);
    }

    .support-column {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
        align-items: stretch;
        gap: 14px;
        margin-bottom: 20px;
    }

    .support-column .daily-banner,
    .support-column .moyu-board {
        max-width: none;
        margin-bottom: 0;
    }

    .support-column .daily-banner {
        grid-template-columns: 1fr auto;
        grid-template-rows: auto 1fr;
        align-content: start;
        padding: 12px 14px;
    }
    .support-column .daily-label {
        grid-column: 1 / -1;
        justify-self: start;
    }
    .support-column .daily-text {
        align-self: center;
    }
    .support-column .daily-actions {
        align-self: center;
    }

    .support-column .moyu-board {
        padding: 12px 14px;
    }
    .support-column .moyu-header {
        margin-bottom: 7px;
    }
    .support-column .moyu-grid {
        display: grid;
        grid-template-columns: 0.85fr 1fr 1.25fr;
    }
    .support-column .moyu-compact {
        display: none;
    }

    .pk-board {
        max-width: 860px;
    }

    .bubble-card {
        max-width: 760px;
        min-height: 260px;
        padding: 54px 50px 36px;
    }

    .quote-text {
        font-size: clamp(20px, 1.65vw, 26px);
    }

    .character {
        margin-top: 24px;
    }

    .refresh-btn {
        margin-top: 12px;
    }

}

/* === 移动端适配 === */
@media (max-width: 768px) {
    .toolbar {
        gap: 6px;
        padding: calc(8px + env(safe-area-inset-top)) 10px 8px;
        flex-wrap: nowrap;
        align-items: center;
    }
    /* 没连击时不换行；只要 toolbar 内出现 .show 的连击徽章，整体允许换行 */
    .toolbar:has(.streak-badge.show) { flex-wrap: wrap; }
    .toolbar:has(.streak-badge.show) .toolbar-right { flex-wrap: wrap; row-gap: 6px; }
    .toolbar-left { gap: 6px; flex-shrink: 1; min-width: 0; }
    .toolbar-right { gap: 6px; flex-wrap: nowrap; flex-shrink: 0; justify-content: flex-end; }
    .brand-badge { display: none; }
    .streak-badge { height: 28px; padding: 0 10px; font-size: 11px; }
    .card-section {
        min-height: calc(100svh - 56px);
        padding: calc(72px + env(safe-area-inset-top)) 16px 24px;
    }
    /* 出现连击时主区域上推一点，避免被换行后变高的 toolbar 盖住 */
    body:has(.streak-badge.show) .card-section {
        padding-top: calc(108px + env(safe-area-inset-top));
    }
    .bubble-card { padding: 36px 28px 28px; max-width: 100%; }
    .daily-banner, .moyu-board { max-width: 100%; }
    .daily-banner { grid-template-columns: auto minmax(0, 1fr) auto; gap: 8px; text-align: left; }
    .daily-actions { justify-content: flex-end; }
    .toolbar-icon { width: 32px; }
    .toolbar-chip { min-width: 40px; padding: 0 6px; gap: 4px; }
    .toolbar-control { height: 32px; padding: 0 8px; font-size: 11px; }
    .toolbar-count { min-width: 16px; height: 16px; font-size: 10px; padding: 0 4px; }
    .counter { min-width: 64px; padding: 0 6px; }
    .counter-label { display: none; }
    .counter-main { font-size: 13px; }
    .refresh-btn { padding: 12px 32px; font-size: 16px; }
    .pk-grid { gap: 10px; }
    .pk-card { min-height: 132px; }
    .moyu-board { padding: 10px 12px; margin-bottom: 16px; }
    .moyu-grid { grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
    .achievement-toast { top: 56px; padding: 10px 16px; }
    .achievement-toast .emoji { font-size: 26px; }
    .achievement-toast .title { font-size: 13px; }
    .achievement-toast .desc { font-size: 11px; }
}

@media (max-width: 640px) {
    .card-section { justify-content: flex-start; }
    .moyu-grid { grid-template-columns: 0.82fr 1.08fr 1.25fr; gap: 7px; }
    .moyu-value { font-size: 13px; }
    .moyu-note,
    .moyu-note-full {
        font-size: 9px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .moyu-date { font-size: 10px; }
    .vote-area { flex-wrap: wrap; row-gap: 8px; }
    .pk-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .card-section {
        padding: calc(64px + env(safe-area-inset-top)) 12px 18px;
        min-height: calc(100svh - 50px);
    }
    .bubble-card { padding: 28px 18px 22px; border-width: 3px; border-radius: 18px; box-shadow: 4px 4px 0 #000; }
    .bubble-card::after { bottom: -22px; margin-left: -14px; border-left-width: 14px; border-right-width: 14px; border-top-width: 22px; }
    .bubble-card::before { bottom: -16px; margin-left: -10px; border-left-width: 10px; border-right-width: 10px; border-top-width: 16px; }
    .quote-text { line-height: 1.7; min-height: 48px; }
    .vote-area { gap: 8px; margin-top: 14px; padding-top: 12px; flex-wrap: wrap; row-gap: 8px; }
    .vote-btn { padding: 5px 12px; font-size: 12px; }
    .copy-btn { padding: 5px 12px; font-size: 12px; }
    .character { font-size: 36px; margin-top: 16px; }
    .refresh-btn { padding: 10px 24px; font-size: 14px; box-shadow: 4px 4px 0 #000; }
    .hint-text { display: none; }
    .hint-text kbd { min-height: 18px; padding: 2px 7px; font-size: 10px; }
    .toolbar { padding: calc(8px + env(safe-area-inset-top)) 8px 6px; gap: 4px; }
    .toolbar-left { gap: 4px; }
    .toolbar-right { gap: 3px; }
    .streak-badge { height: 26px; padding: 0 7px; font-size: 10px; }
    .toolbar-icon { width: 26px; }
    .toolbar-chip { min-width: 36px; padding: 0 5px; font-size: 10px; gap: 3px; }
    .toolbar-count { min-width: 14px; height: 14px; font-size: 9px; padding: 0 3px; }
    .toolbar-control { height: 26px; padding: 0 5px; font-size: 10px; box-shadow: 2px 2px 0 #000; }
    .counter { min-width: 50px; padding: 0 5px; }
    .counter-main { font-size: 12px; }
    .achievement-area { display: none; }
    .pk-board { padding: 10px; margin-bottom: 12px; }
    .pk-subtitle { font-size: 11px; }
    .pk-card { min-height: 110px; padding: 10px; }
    .pk-card-text { font-size: 13px; }
    .daily-banner { padding: 8px 12px; margin-bottom: 10px; }
    .daily-label { font-size: 10px; padding: 3px 8px; }
    .daily-text { font-size: 12px; }
    .daily-use-btn { padding: 3px 8px; font-size: 10px; }
    .moyu-board { padding: 8px 10px; margin-bottom: 12px; }
    .moyu-title { font-size: 11px; padding: 3px 8px; }
    .moyu-header { gap: 8px; margin-bottom: 6px; }
    .moyu-label { font-size: 9px; }
    .moyu-note { display: none; }
    .moyu-grid { display: none; }
    .moyu-compact { display: block; }
    .feedback-entry { right: 10px; bottom: calc(14px + env(safe-area-inset-bottom)); }
    .feedback-btn { width: 44px; height: 44px; font-size: 18px; opacity: 0.92; }
    .feedback-btn:hover,
    .feedback-entry:has(.feedback-panel.show) .feedback-btn { opacity: 1; }
    .feedback-panel { width: calc(100vw - 24px); right: -2px; bottom: 48px; max-height: calc(100svh - 100px); overflow-y: auto; overscroll-behavior: contain; }
    .easter-egg-toast {
        right: 12px;
        left: 12px;
        top: auto;
        bottom: calc(76px + env(safe-area-inset-bottom));
        width: auto;
        max-width: 380px;
        margin: 0 auto;
    }
    .favorites-drawer { width: 100vw; padding: 14px 12px 18px; }
    .pk-drawer { width: 100vw; padding: 14px 12px 18px; }
    .daily-sign-card,
    .share-box { width: 100%; padding: 14px; }
    .daily-sign-message { font-size: 16px; }
    .share-actions,
    .daily-sign-actions { flex-direction: column; }
    .intro-burst { width: 220px; height: 220px; }
    .intro-title { font-size: 22px; }
    .intro-sub { font-size: 12px; }
    .intro-bowl-emoji { font-size: 40px; }
    .intro-btn { padding: 11px 24px; font-size: 15px; }
    .achievement-toast { top: 48px; padding: 8px 14px; gap: 8px; }
    .achievement-toast .emoji { font-size: 24px; }
    .achievement-toast .title { font-size: 12px; }
    .complete-overlay { padding: 16px; }
    .complete-box { width: 100%; padding: 24px 14px; }
    .complete-summary { width: 100%; }
    .complete-summary-row { gap: 10px; }
    .complete-summary-row strong { min-width: 64px; max-width: 60%; padding: 5px 8px; word-break: break-word; }
}

@media (max-width: 360px) {
    .toolbar-right { gap: 2px; }
    .bubble-card { padding: 22px 12px 16px; }
    .quote-text { font-size: 14px; line-height: 1.6; }
    .vote-area { gap: 6px; }
    .vote-btn { padding: 4px 10px; font-size: 11px; }
    .copy-btn { padding: 4px 10px; font-size: 11px; }
    .refresh-btn { padding: 9px 20px; font-size: 13px; }
    .character { font-size: 32px; margin-top: 16px; }
    .toolbar-icon { width: 24px; }
    .toolbar-control { padding: 0 4px; }
    .counter { min-width: 44px; }
    .daily-banner { grid-template-columns: auto minmax(0, 1fr); }
    .daily-actions { grid-column: 1 / -1; justify-content: center; }
    .moyu-grid { gap: 5px; }
    .moyu-value { font-size: 12px; }
}

@media (hover: none) and (pointer: coarse) {
    .desktop-hint { display: none; }
    .mobile-hint { display: inline; }
}

/* === PC 大屏 1280+ === */
@media (min-width: 1280px) {
    .stage-layout { width: min(100%, 1080px); }
    .bubble-card { max-width: 980px; padding: 60px 64px 40px; }
    .quote-text { font-size: clamp(22px, 1.6vw, 30px); }
    .pk-board { max-width: 1080px; }
}

/* === 超宽屏 1600+ === */
@media (min-width: 1600px) {
    .stage-layout { width: min(100%, 1240px); }
    .bubble-card { max-width: 1120px; }
}

/* === 最毒排行 === */
.top-toxic-list {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-right: 2px;
}
.top-toxic-item {
    padding: 12px;
    border: 2px solid #000;
    border-radius: 8px;
    background: #fff8f1;
    box-shadow: 3px 3px 0 #000;
    cursor: pointer;
    transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.top-toxic-item:hover { transform: translate(1px, 1px); box-shadow: 2px 2px 0 #000; }
.top-toxic-rank {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 6px;
    border-radius: 999px;
    background: #ff6b6b;
    color: #fff;
    font-size: 12px;
    font-weight: 900;
    margin-right: 8px;
}
.top-toxic-item:nth-child(1) .top-toxic-rank { background: #ff4444; }
.top-toxic-item:nth-child(2) .top-toxic-rank { background: #ff6b6b; }
.top-toxic-item:nth-child(3) .top-toxic-rank { background: #ff9d7d; }
.top-toxic-text {
    display: inline;
    color: #222;
    font-size: 13px;
    font-weight: 900;
    line-height: 1.6;
}
.top-toxic-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
    color: #888;
    font-size: 11px;
    font-weight: 800;
}
.top-toxic-percent {
    color: #ff6b6b;
    font-weight: 900;
}
body.dark .top-toxic-item {
    background: #2a2a3e;
    border-color: #ff6b9d;
    box-shadow: 3px 3px 0 #ff6b9d44;
}
body.dark .top-toxic-text { color: #eee; }

/* === API 文档抽屉 === */
.api-drawer {
    width: min(520px, 100vw);
}
.api-desc {
    font-size: 12px;
    color: #555;
    line-height: 1.6;
    padding: 6px 10px;
    background: #fffaef;
    border: 2px dashed #ffd700;
    border-radius: 6px;
}
.api-desc code { background: #fff3a8; padding: 0 4px; border-radius: 3px; font-size: 11px; }
.api-base {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #444;
    font-weight: 700;
}
.api-base code {
    flex: 1;
    padding: 4px 8px;
    background: #f5f0e8;
    border: 2px solid #000;
    border-radius: 4px;
    word-break: break-all;
    font-family: Consolas, monospace;
    font-size: 11px;
}
.api-copy-btn {
    padding: 4px 10px;
    border: 2px solid #000;
    background: #fff;
    font-size: 11px;
    font-weight: 900;
    box-shadow: 2px 2px 0 #000;
    cursor: pointer;
}
.api-copy-btn:hover { transform: translate(1px, 1px); box-shadow: 1px 1px 0 #000; }
.api-list {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-right: 2px;
}
.api-item {
    padding: 10px 12px;
    border: 2px solid #000;
    border-radius: 8px;
    background: #fff8f1;
    box-shadow: 3px 3px 0 #000;
}
.api-head {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.api-method {
    display: inline-block;
    padding: 2px 8px;
    border: 2px solid #000;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 900;
    color: #fff;
}
.api-method.GET { background: #2ecc71; }
.api-method.POST { background: #f0932b; }
.api-method.PUT { background: #3498db; }
.api-method.DELETE { background: #e74c3c; }
.api-path {
    flex: 1;
    min-width: 0;
    padding: 3px 6px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-family: Consolas, monospace;
    font-size: 12px;
    word-break: break-all;
}
.api-try-btn {
    padding: 4px 12px;
    border: 2px solid #000;
    background: #ffd700;
    color: #222;
    font-size: 11px;
    font-weight: 900;
    box-shadow: 2px 2px 0 #000;
    cursor: pointer;
}
.api-try-btn:hover { transform: translate(1px, 1px); box-shadow: 1px 1px 0 #000; }
.api-desc-row {
    margin-top: 6px;
    color: #666;
    font-size: 12px;
    line-height: 1.5;
    font-weight: 700;
}
.api-params {
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px dashed #ddd;
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.api-param { font-size: 11px; line-height: 1.6; }
.api-param code {
    padding: 1px 5px;
    background: #2ecc71;
    color: #fff;
    border-radius: 3px;
    font-family: Consolas, monospace;
    font-size: 10px;
    font-weight: 900;
    margin-right: 6px;
}
.api-param-desc { color: #666; font-weight: 700; }
.api-output {
    margin-top: 8px;
    padding: 8px 10px;
    background: #1e1e2e;
    color: #2ecc71;
    border-radius: 4px;
    font-family: Consolas, monospace;
    font-size: 11px;
    line-height: 1.55;
    max-height: 280px;
    overflow: auto;
    white-space: pre-wrap;
    word-break: break-all;
}
body.dark .api-desc { background: #2a2a3e; border-color: #ffd700; color: #ddd; }
body.dark .api-desc code { background: #4a3f1a; color: #ffd700; }
body.dark .api-base code { background: #1e1e2e; color: #eee; border-color: #2ecc71; }
body.dark .api-copy-btn { background: #2a2a3e; color: #eee; border-color: #2ecc71; box-shadow: 2px 2px 0 #2ecc71; }
body.dark .api-item { background: #2a2a3e; border-color: #ff6b9d; box-shadow: 3px 3px 0 #ff6b9d44; }
body.dark .api-path { background: #1e1e2e; color: #eee; border-color: #444; }
body.dark .api-desc-row { color: #aaa; }
body.dark .api-params { border-top-color: #444; }
body.dark .api-param-desc { color: #aaa; }
.drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 170;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}
.drawer-overlay.show {
    opacity: 1;
    visibility: visible;
}

/* === 投毒 Drawer === */
.submit-desc {
    color: #666;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.5;
}
.submit-form { display: flex; flex-direction: column; gap: 10px; }
.submit-textarea {
    width: 100%;
    min-height: 100px;
    padding: 10px;
    border: 2px solid #000;
    border-radius: 8px;
    background: #fff;
    color: #222;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    resize: vertical;
    outline: none;
    line-height: 1.55;
}
.submit-textarea:focus { border-color: #ff6b6b; box-shadow: 0 0 0 3px #ff6b6b22; }
.submit-count { text-align: right; color: #999; font-size: 11px; font-weight: 800; margin-top: -6px; }
.submit-input {
    width: 100%;
    padding: 8px 10px;
    border: 2px solid #000;
    border-radius: 8px;
    background: #fff;
    color: #222;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    outline: none;
}
.submit-input:focus { border-color: #ff6b6b; box-shadow: 0 0 0 3px #ff6b6b22; }
.submit-category {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.submit-cat-label { font-size: 12px; font-weight: 800; color: #555; }
.submit-cat-chip {
    padding: 5px 12px;
    border: 2px solid #000;
    border-radius: 14px;
    background: #fff;
    color: #333;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    transition: background 0.12s, color 0.12s;
}
.submit-cat-chip.active { background: #ff6b6b; color: #fff; border-color: #ff6b6b; }
.submit-cat-chip:hover:not(.active) { background: #ffe0e0; }
.submit-btn {
    width: 100%;
    padding: 12px;
    border: 2px solid #000;
    border-radius: 0;
    background: #ff6b6b;
    color: #fff;
    font-size: 14px;
    font-weight: 900;
    box-shadow: 3px 3px 0 #000;
    cursor: pointer;
    transition: transform 0.1s, box-shadow 0.1s;
}
.submit-btn:hover { transform: translate(2px, 2px); box-shadow: 1px 1px 0 #000; }
.submit-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: 3px 3px 0 #000; }
.submit-tip {
    font-size: 12px;
    font-weight: 700;
    text-align: center;
    min-height: 18px;
}
.submit-tip.success { color: #2ecc71; }
.submit-tip.error { color: #ff6b6b; }

/* === 底部备案 === */
.site-footer {
    text-align: center;
    padding: 16px 16px calc(20px + env(safe-area-inset-bottom));
    font-size: 12px;
    font-weight: 700;
    color: #999;
    min-height: 40px;
}
.site-footer a { color: #999; text-decoration: none; }
.site-footer a:hover { color: #666; }
body.dark .site-footer, body.dark .site-footer a { color: #666; }
body.dark .site-footer a:hover { color: #aaa; }

body.dark .submit-desc { color: #aaa; }
body.dark .submit-textarea,
body.dark .submit-input { background: #1e1e2e; color: #eee; border-color: #ff6b9d; }
body.dark .submit-cat-label { color: #bbb; }
body.dark .submit-cat-chip { background: #2a2a3e; color: #ddd; border-color: #ff6b9d; }
body.dark .submit-cat-chip.active { background: #ff6b9d; color: #fff; border-color: #ff6b9d; }

/* === 小程序入口弹窗 === */
.wxapp-box {
    width: min(100%, 360px);
    text-align: center;
}
.wxapp-qr {
    width: 240px;
    height: 240px;
    margin: 14px auto 12px;
    display: block;
    border: 3px solid #000;
    border-radius: 50%;
    box-shadow: 4px 4px 0 #000;
    background: #fff;
    object-fit: contain;
}
.wxapp-fallback {
    width: 240px;
    height: 240px;
    margin: 14px auto 12px;
    border: 3px dashed #000;
    border-radius: 50%;
    background: #fff8d6;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.wxapp-fallback-emoji { font-size: 64px; line-height: 1; }
.wxapp-fallback-text { font-weight: 700; color: #333; }
.wxapp-fallback-hint { font-size: 13px; color: #666; }
.wxapp-tip {
    margin-top: 6px;
    font-size: 13px;
    color: #555;
    font-weight: 700;
}
body.dark .wxapp-qr { background: #2a2a3e; border-color: #ff6b9d; box-shadow: 4px 4px 0 #ff6b9d; }
body.dark .wxapp-fallback { background: #1e1e2e; border-color: #ff6b9d; }
body.dark .wxapp-fallback-text { color: #eee; }
body.dark .wxapp-fallback-hint, body.dark .wxapp-tip { color: #aaa; }
