/* Generated by Trae Work */
/* 星际漂流瓶 - 样式表 */

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

body {
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
    background: #000;
    overflow: hidden;
    color: #fff;
}

#game-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(ellipse at center, #0a0a2e 0%, #000000 100%);
}

#game-canvas {
    display: block;
    max-width: 100%;
    max-height: 100%;
}

/* === HUD === */
#hud {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
}

.hud-top {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 40px;
    background: rgba(0, 10, 30, 0.6);
    padding: 12px 30px;
    border-radius: 30px;
    border: 1px solid rgba(100, 150, 255, 0.3);
    backdrop-filter: blur(10px);
}

.hud-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.hud-label {
    font-size: 12px;
    color: rgba(150, 180, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hud-value {
    font-size: 24px;
    font-weight: bold;
    color: #fff;
    text-shadow: 0 0 10px rgba(100, 150, 255, 0.8);
}

.hud-bottom {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 30px;
    background: rgba(0, 10, 30, 0.6);
    padding: 12px 25px;
    border-radius: 20px;
    border: 1px solid rgba(100, 150, 255, 0.3);
    backdrop-filter: blur(10px);
}

.energy-bar-container,
.wormhole-progress {
    display: flex;
    align-items: center;
    gap: 10px;
}

.energy-label,
.wormhole-label {
    font-size: 12px;
    color: rgba(150, 180, 255, 0.8);
    min-width: 30px;
}

.energy-bar,
.wormhole-bar {
    width: 150px;
    height: 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.energy-fill {
    height: 100%;
    background: linear-gradient(90deg, #00ff88, #00ffcc);
    border-radius: 6px;
    transition: width 0.3s ease;
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.6);
    width: 100%;
}

.wormhole-fill {
    height: 100%;
    background: linear-gradient(90deg, #9966ff, #ff66cc);
    border-radius: 6px;
    transition: width 0.3s ease;
    box-shadow: 0 0 10px rgba(153, 102, 255, 0.6);
    width: 0%;
}

/* === 覆盖层菜单 === */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 5, 20, 0.85);
    backdrop-filter: blur(5px);
    z-index: 100;
    pointer-events: auto;
}

.hidden {
    display: none !important;
}

.menu-content {
    text-align: center;
    max-width: 500px;
    padding: 40px;
}

.game-title {
    font-size: 56px;
    font-weight: bold;
    background: linear-gradient(135deg, #66ccff, #9966ff, #ff66cc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    margin-bottom: 10px;
    animation: titleGlow 3s ease-in-out infinite;
}

@keyframes titleGlow {
    0%, 100% { filter: drop-shadow(0 0 20px rgba(102, 204, 255, 0.5)); }
    50% { filter: drop-shadow(0 0 40px rgba(153, 102, 255, 0.7)); }
}

.game-subtitle {
    font-size: 18px;
    color: rgba(150, 180, 255, 0.6);
    margin-bottom: 30px;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.game-desc {
    font-size: 16px;
    color: rgba(200, 210, 255, 0.8);
    margin-bottom: 40px;
    line-height: 1.6;
}

.menu-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
    margin-bottom: 30px;
}

.btn {
    padding: 14px 40px;
    font-size: 18px;
    font-family: inherit;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 200px;
    font-weight: 500;
    letter-spacing: 1px;
}

.btn-primary {
    background: linear-gradient(135deg, #66ccff, #9966ff);
    color: #fff;
    box-shadow: 0 4px 20px rgba(102, 204, 255, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(102, 204, 255, 0.6);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

.menu-footer {
    color: rgba(150, 180, 255, 0.6);
    font-size: 14px;
}

/* 操作说明 */
.instructions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin: 30px 0;
    text-align: left;
}

.instruction-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.05);
    padding: 10px 15px;
    border-radius: 10px;
}

.key {
    background: rgba(102, 204, 255, 0.2);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-family: monospace;
    color: #66ccff;
    border: 1px solid rgba(102, 204, 255, 0.4);
    min-width: 60px;
    text-align: center;
}

.desc {
    font-size: 14px;
    color: rgba(200, 210, 255, 0.9);
}

.game-tips {
    text-align: left;
    margin: 25px 0;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.game-tips h3 {
    color: #66ccff;
    margin-bottom: 12px;
    font-size: 16px;
}

.game-tips ul {
    list-style: none;
}

.game-tips li {
    padding: 5px 0;
    color: rgba(200, 210, 255, 0.8);
    font-size: 14px;
}

/* 游戏结束 */
.game-over-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 30px 0;
}

.stat-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-item.new-record {
    grid-column: span 2;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 150, 50, 0.2));
    border-color: rgba(255, 215, 0, 0.5);
    animation: recordPulse 1s ease-in-out infinite;
}

@keyframes recordPulse {
    0%, 100% { box-shadow: 0 0 20px rgba(255, 215, 0, 0.3); }
    50% { box-shadow: 0 0 40px rgba(255, 215, 0, 0.6); }
}

.stat-label {
    display: block;
    font-size: 14px;
    color: rgba(150, 180, 255, 0.7);
    margin-bottom: 8px;
}

.stat-value {
    font-size: 32px;
    font-weight: bold;
    color: #fff;
}

/* 星系过渡 */
#galaxy-transition {
    background: rgba(0, 0, 0, 0.9);
    animation: fadeInOut 2.5s ease-in-out;
}

.transition-content {
    text-align: center;
}

.transition-content h2 {
    font-size: 48px;
    background: linear-gradient(135deg, #66ccff, #9966ff, #ff66cc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
}

.transition-content p {
    font-size: 20px;
    color: rgba(150, 180, 255, 0.8);
}

@keyframes fadeInOut {
    0% { opacity: 0; }
    20% { opacity: 1; }
    80% { opacity: 1; }
    100% { opacity: 0; }
}

/* === 漂流瓶详情界面 === */
.bottle-detail-container {
    background: linear-gradient(135deg, rgba(20, 25, 50, 0.95), rgba(30, 20, 60, 0.95));
    border: 1px solid rgba(100, 150, 255, 0.3);
    border-radius: 20px;
    max-width: 520px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.bottle-detail-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 20px 25px;
    border-bottom: 1px solid rgba(100, 150, 255, 0.2);
    position: relative;
}

.rarity-badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
}

.rarity-common {
    background: rgba(136, 221, 255, 0.2);
    color: #88ddff;
    border: 1px solid rgba(136, 221, 255, 0.5);
}

.rarity-rare {
    background: rgba(170, 136, 255, 0.2);
    color: #aa88ff;
    border: 1px solid rgba(170, 136, 255, 0.5);
}

.rarity-legendary {
    background: rgba(255, 204, 68, 0.2);
    color: #ffcc44;
    border: 1px solid rgba(255, 204, 68, 0.5);
    animation: legendaryGlow 2s ease-in-out infinite;
}

@keyframes legendaryGlow {
    0%, 100% { box-shadow: 0 0 10px rgba(255, 204, 68, 0.3); }
    50% { box-shadow: 0 0 25px rgba(255, 204, 68, 0.6); }
}

.category-tag {
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    font-size: 12px;
    color: rgba(200, 210, 255, 0.8);
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 24px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: all 0.2s;
}

.close-btn:hover {
    background: rgba(255, 100, 100, 0.3);
}

.bottle-detail-body {
    padding: 25px;
}

.bottle-title {
    font-size: 24px;
    color: #fff;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #66ccff, #9966ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bottle-content {
    color: rgba(220, 230, 255, 0.9);
    line-height: 1.8;
    margin-bottom: 20px;
    font-size: 15px;
}

.fun-fact {
    background: linear-gradient(135deg, rgba(255, 204, 68, 0.1), rgba(255, 150, 50, 0.1));
    border-left: 3px solid #ffcc44;
    padding: 12px 15px;
    border-radius: 0 10px 10px 0;
    margin-bottom: 15px;
    display: flex;
    gap: 10px;
}

.fun-fact-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.fun-fact p {
    color: rgba(255, 230, 180, 0.95);
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

.source-label {
    font-size: 12px;
    color: rgba(150, 180, 255, 0.5);
    margin-top: 15px;
}

.source-label span {
    color: rgba(150, 180, 255, 0.8);
}

/* 答题区域 */
.quiz-section {
    padding: 20px 25px;
    border-top: 1px solid rgba(100, 150, 255, 0.2);
    background: rgba(0, 10, 30, 0.3);
}

.quiz-section h3 {
    color: #66ccff;
    font-size: 18px;
    margin-bottom: 15px;
}

.quiz-question {
    color: #fff;
    font-size: 16px;
    margin-bottom: 18px;
    line-height: 1.6;
}

.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.quiz-option {
    padding: 12px 18px;
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    color: #fff;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
    font-family: inherit;
}

.quiz-option:hover:not(.disabled) {
    background: rgba(102, 204, 255, 0.15);
    border-color: rgba(102, 204, 255, 0.5);
}

.quiz-option.correct {
    background: rgba(0, 255, 136, 0.2);
    border-color: #00ff88;
    color: #00ff88;
}

.quiz-option.wrong {
    background: rgba(255, 68, 68, 0.2);
    border-color: #ff4444;
    color: #ff8888;
}

.quiz-option.disabled {
    cursor: default;
}

.quiz-result {
    margin-top: 15px;
    padding: 12px;
    border-radius: 10px;
    text-align: center;
    font-weight: bold;
}

.quiz-result.correct {
    background: rgba(0, 255, 136, 0.15);
    color: #00ff88;
    border: 1px solid rgba(0, 255, 136, 0.3);
}

.quiz-result.wrong {
    background: rgba(255, 68, 68, 0.15);
    color: #ff8888;
    border: 1px solid rgba(255, 68, 68, 0.3);
}

.bottle-detail-footer {
    padding: 20px 25px;
    text-align: center;
    border-top: 1px solid rgba(100, 150, 255, 0.2);
}

/* === 知识图鉴 === */
.collection-container {
    background: linear-gradient(135deg, rgba(15, 20, 40, 0.95), rgba(25, 15, 50, 0.95));
    border: 1px solid rgba(100, 150, 255, 0.3);
    border-radius: 20px;
    max-width: 700px;
    width: 92%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.collection-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid rgba(100, 150, 255, 0.2);
    position: sticky;
    top: 0;
    background: inherit;
    z-index: 10;
}

.collection-header h2 {
    font-size: 24px;
    color: #66ccff;
}

.collection-stats {
    display: flex;
    gap: 30px;
    padding: 15px 25px;
    border-bottom: 1px solid rgba(100, 150, 255, 0.1);
}

.stat-mini {
    display: flex;
    flex-direction: column;
}

.stat-mini-label {
    font-size: 12px;
    color: rgba(150, 180, 255, 0.6);
    margin-bottom: 4px;
}

.stat-mini-value {
    font-size: 20px;
    font-weight: bold;
    color: #fff;
}

.galaxy-tabs {
    display: flex;
    gap: 5px;
    padding: 15px 25px 0;
    overflow-x: auto;
}

.galaxy-tab {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px 15px 0 0;
    color: rgba(200, 210, 255, 0.7);
    cursor: pointer;
    font-size: 13px;
    font-family: inherit;
    white-space: nowrap;
    transition: all 0.2s;
    border-bottom: none;
}

.galaxy-tab:hover {
    background: rgba(102, 204, 255, 0.1);
    color: #aaddff;
}

.galaxy-tab.active {
    background: rgba(102, 204, 255, 0.2);
    color: #66ccff;
    border-color: rgba(102, 204, 255, 0.4);
}

.galaxy-progress {
    padding: 12px 25px;
    background: rgba(0, 10, 30, 0.3);
    border-bottom: 1px solid rgba(100, 150, 255, 0.1);
}

.galaxy-progress span {
    font-size: 13px;
    color: rgba(150, 180, 255, 0.7);
    margin-bottom: 6px;
    display: block;
}

.progress-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #66ccff, #9966ff);
    border-radius: 4px;
    transition: width 0.5s ease;
    width: 0%;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
    padding: 20px 25px;
}

.card-item {
    background: rgba(30, 35, 60, 0.6);
    border: 1px solid rgba(100, 150, 255, 0.15);
    border-radius: 12px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.2s;
    min-height: 100px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-item:hover:not(.locked) {
    transform: translateY(-2px);
    border-color: rgba(102, 204, 255, 0.4);
    box-shadow: 0 5px 20px rgba(102, 204, 255, 0.2);
}

.card-item.locked {
    opacity: 0.5;
    cursor: default;
}

.card-item.rarity-common { border-top: 3px solid #88ddff; }
.card-item.rarity-rare { border-top: 3px solid #aa88ff; }
.card-item.rarity-legendary { border-top: 3px solid #ffcc44; }

.card-item-title {
    font-size: 14px;
    color: #fff;
    margin-bottom: 8px;
    line-height: 1.4;
}

.card-item.locked .card-item-title {
    color: rgba(200, 210, 255, 0.4);
}

.card-item-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
}

.card-item-category {
    color: rgba(150, 180, 255, 0.6);
}

.card-item-rarity {
    padding: 2px 8px;
    border-radius: 8px;
    font-size: 10px;
}

.card-item.rarity-common .card-item-rarity { background: rgba(136, 221, 255, 0.2); color: #88ddff; }
.card-item.rarity-rare .card-item-rarity { background: rgba(170, 136, 255, 0.2); color: #aa88ff; }
.card-item.rarity-legendary .card-item-rarity { background: rgba(255, 204, 68, 0.2); color: #ffcc44; }

/* 主菜单按钮行 */
.menu-btn-row {
    display: flex;
    gap: 12px;
    width: 100%;
}

.menu-btn-row .btn {
    flex: 1;
    padding: 14px 16px;
    font-size: 15px;
}

.wish-btn {
    background: linear-gradient(135deg, #ff99cc, #ff66aa);
    color: #fff;
    box-shadow: 0 4px 20px rgba(255, 102, 170, 0.4);
}

.wish-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(255, 102, 170, 0.6);
}

.my-wish-btn {
    background: linear-gradient(135deg, #ffcc66, #ff9944);
    color: #fff;
    box-shadow: 0 4px 20px rgba(255, 153, 68, 0.4);
}

.my-wish-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(255, 153, 68, 0.6);
}

/* === 投放心愿界面 === */
.wish-release-container {
    background: linear-gradient(135deg, rgba(40, 15, 35, 0.95), rgba(50, 20, 50, 0.95));
    border: 1px solid rgba(255, 153, 204, 0.3);
    border-radius: 20px;
    max-width: 480px;
    width: 92%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(255, 102, 170, 0.3);
}

.wish-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid rgba(255, 153, 204, 0.2);
    position: relative;
}

.wish-header h2 {
    font-size: 22px;
    color: #ff99cc;
}

.wish-body {
    padding: 25px;
}

.wish-intro {
    color: rgba(255, 220, 240, 0.85);
    line-height: 1.8;
    margin-bottom: 25px;
    font-size: 15px;
    text-align: center;
}

.wish-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.wish-label {
    font-size: 14px;
    color: #ffb3d9;
    margin-bottom: 4px;
}

.wish-input {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 153, 204, 0.3);
    border-radius: 10px;
    color: #fff;
    font-size: 15px;
    font-family: inherit;
    transition: all 0.2s;
}

.wish-input:focus {
    outline: none;
    border-color: #ff99cc;
    background: rgba(255, 153, 204, 0.1);
}

.wish-textarea {
    width: 100%;
    height: 120px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 153, 204, 0.3);
    border-radius: 10px;
    color: #fff;
    font-size: 15px;
    font-family: inherit;
    resize: vertical;
    line-height: 1.6;
    transition: all 0.2s;
}

.wish-textarea:focus {
    outline: none;
    border-color: #ff99cc;
    background: rgba(255, 153, 204, 0.1);
}

.wish-galaxy-select {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.wish-galaxy-btn {
    flex: 1;
    min-width: 100px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    color: rgba(255, 220, 240, 0.8);
    cursor: pointer;
    font-size: 13px;
    font-family: inherit;
    transition: all 0.2s;
}

.wish-galaxy-btn:hover {
    background: rgba(255, 153, 204, 0.15);
    border-color: rgba(255, 153, 204, 0.4);
}

.wish-galaxy-btn.active {
    background: rgba(255, 153, 204, 0.25);
    border-color: #ff99cc;
    color: #ffccdd;
}

.wish-hint {
    display: flex;
    gap: 10px;
    padding: 12px 15px;
    background: rgba(255, 204, 68, 0.1);
    border-radius: 10px;
    font-size: 13px;
    color: rgba(255, 230, 180, 0.85);
    line-height: 1.6;
}

.hint-icon {
    font-size: 18px;
    flex-shrink: 0;
}

.wish-footer {
    padding: 20px 25px;
    text-align: center;
    border-top: 1px solid rgba(255, 153, 204, 0.2);
}

/* === 心愿详情界面 === */
.wish-detail-container {
    background: linear-gradient(135deg, rgba(40, 15, 35, 0.95), rgba(50, 20, 50, 0.95));
    border: 1px solid rgba(255, 153, 204, 0.3);
    border-radius: 20px;
    max-width: 500px;
    width: 92%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(255, 102, 170, 0.3);
}

.wish-detail-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 20px 25px;
    border-bottom: 1px solid rgba(255, 153, 204, 0.2);
    position: relative;
}

.wish-type-badge {
    padding: 5px 14px;
    border-radius: 14px;
    font-size: 13px;
    font-weight: bold;
}

.type-other {
    background: rgba(255, 153, 204, 0.2);
    color: #ff99cc;
    border: 1px solid rgba(255, 153, 204, 0.5);
}

.type-mine {
    background: rgba(255, 204, 68, 0.2);
    color: #ffcc44;
    border: 1px solid rgba(255, 204, 68, 0.5);
}

.wish-detail-body {
    padding: 25px;
}

.wish-envelope {
    background: linear-gradient(135deg, rgba(255, 240, 248, 0.1), rgba(255, 220, 240, 0.05));
    border: 1px solid rgba(255, 153, 204, 0.2);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 25px;
    position: relative;
}

.wish-author-line {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.wish-from-label {
    font-size: 13px;
    color: rgba(255, 180, 220, 0.6);
}

.wish-author-name {
    font-size: 16px;
    color: #ffccdd;
    font-weight: 600;
}

.wish-detail-content {
    font-size: 16px;
    color: #fff;
    line-height: 1.8;
    margin-bottom: 15px;
}

.wish-galaxy-line {
    text-align: right;
}

.wish-galaxy-tag {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(255, 153, 204, 0.15);
    border-radius: 10px;
    font-size: 12px;
    color: #ffb3d9;
}

/* 心愿答题 */
.wish-quiz-section {
    background: rgba(0, 10, 30, 0.3);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
}

.wish-quiz-header {
    margin-bottom: 18px;
    text-align: center;
}

.wish-quiz-header h3 {
    color: #ff99cc;
    font-size: 18px;
    margin-bottom: 8px;
}

.wish-quiz-desc {
    font-size: 13px;
    color: rgba(255, 200, 230, 0.7);
    margin-bottom: 12px;
}

.wish-quiz-progress {
    display: flex;
    justify-content: space-between;
    padding: 8px 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    font-size: 13px;
    color: rgba(255, 220, 240, 0.8);
}

.wish-quiz-question {
    color: #fff;
    font-size: 16px;
    margin-bottom: 18px;
    line-height: 1.6;
}

.wish-quiz-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 15px;
}

.wish-quiz-options .quiz-option {
    padding: 12px 18px;
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    color: #fff;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
    font-family: inherit;
}

.wish-quiz-options .quiz-option:hover:not(.disabled) {
    background: rgba(255, 153, 204, 0.15);
    border-color: rgba(255, 153, 204, 0.5);
}

.wish-quiz-options .quiz-option.correct {
    background: rgba(0, 255, 136, 0.2);
    border-color: #00ff88;
    color: #00ff88;
}

.wish-quiz-options .quiz-option.wrong {
    background: rgba(255, 68, 68, 0.2);
    border-color: #ff4444;
    color: #ff8888;
}

.wish-quiz-options .quiz-option.disabled {
    cursor: default;
}

.wish-quiz-feedback {
    padding: 12px;
    border-radius: 10px;
    text-align: center;
    font-size: 14px;
    margin-bottom: 15px;
}

.wish-quiz-feedback.correct {
    background: rgba(0, 255, 136, 0.15);
    color: #00ff88;
    border: 1px solid rgba(0, 255, 136, 0.3);
}

.wish-quiz-feedback.wrong {
    background: rgba(255, 68, 68, 0.15);
    color: #ff8888;
    border: 1px solid rgba(255, 68, 68, 0.3);
}

.wish-quiz-footer {
    text-align: center;
}

.wish-quiz-footer .btn {
    min-width: 120px;
}

/* 心愿结果 */
.wish-result-section {
    text-align: center;
    padding: 30px 20px;
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.1), rgba(255, 204, 68, 0.1));
    border-radius: 15px;
    border: 1px solid rgba(0, 255, 136, 0.3);
}

.wish-result-icon {
    font-size: 60px;
    margin-bottom: 15px;
    animation: bounce 1s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.wish-result-section h3 {
    color: #00ff88;
    font-size: 22px;
    margin-bottom: 10px;
}

.wish-result-section p {
    color: rgba(200, 255, 220, 0.85);
    margin-bottom: 20px;
}

.wish-result-reward {
    display: inline-block;
    padding: 10px 20px;
    background: rgba(255, 204, 68, 0.2);
    border-radius: 20px;
    color: #ffcc44;
    font-weight: bold;
    margin-bottom: 20px;
}

/* 我的心愿列表 */
.wish-stats {
    display: flex;
    gap: 20px;
    padding: 15px 25px;
    border-bottom: 1px solid rgba(255, 204, 68, 0.1);
}

.wishes-list {
    padding: 15px 25px 25px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.wish-item {
    background: rgba(40, 30, 50, 0.6);
    border: 1px solid rgba(255, 153, 204, 0.15);
    border-radius: 12px;
    padding: 16px;
    transition: all 0.2s;
}

.wish-item:hover {
    border-color: rgba(255, 153, 204, 0.35);
}

.wish-item.status-floating { border-left: 3px solid #66ccff; }
.wish-item.status-found { border-left: 3px solid #ffcc44; }
.wish-item.status-granted { border-left: 3px solid #00ff88; }

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

.wish-item-status {
    padding: 3px 10px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: bold;
}

.status-floating .wish-item-status {
    background: rgba(102, 204, 255, 0.2);
    color: #66ccff;
}

.status-found .wish-item-status {
    background: rgba(255, 204, 68, 0.2);
    color: #ffcc44;
}

.status-granted .wish-item-status {
    background: rgba(0, 255, 136, 0.2);
    color: #00ff88;
}

.wish-item-galaxy {
    font-size: 12px;
    color: rgba(200, 180, 255, 0.6);
}

.wish-item-content {
    color: rgba(255, 230, 245, 0.9);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 8px;
}

.wish-item-footer {
    font-size: 12px;
    color: rgba(255, 200, 230, 0.5);
}

.wish-empty {
    text-align: center;
    padding: 40px 20px;
    color: rgba(255, 200, 230, 0.4);
    font-size: 14px;
}

/* === 星座图鉴按钮 === */
.constellation-btn {
    background: linear-gradient(135deg, #66aaff, #8866ff);
    color: #fff;
    box-shadow: 0 4px 20px rgba(102, 170, 255, 0.4);
}

.constellation-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(102, 170, 255, 0.6);
}

/* === 星座图鉴界面 === */
.constellation-container {
    background: linear-gradient(135deg, rgba(10, 15, 35, 0.95), rgba(20, 10, 45, 0.95));
    border: 1px solid rgba(102, 170, 255, 0.3);
    border-radius: 20px;
    max-width: 750px;
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    position: relative;
}

.constellation-stats {
    display: flex;
    gap: 30px;
    padding: 15px 25px;
    border-bottom: 1px solid rgba(102, 170, 255, 0.1);
}

/* 星座网格 */
.constellation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 14px;
    padding: 20px 25px;
}

.constellation-card {
    background: rgba(20, 25, 50, 0.6);
    border: 1px solid rgba(102, 170, 255, 0.15);
    border-radius: 14px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.25s;
    text-align: center;
}

.constellation-card:hover:not(.locked) {
    transform: translateY(-3px);
    border-color: rgba(102, 204, 255, 0.5);
    box-shadow: 0 8px 25px rgba(102, 170, 255, 0.3);
}

.constellation-card.locked {
    opacity: 0.5;
    cursor: default;
}

.constellation-canvas {
    width: 100%;
    height: 100px;
    margin-bottom: 10px;
    background: rgba(0, 5, 20, 0.5);
    border-radius: 8px;
}

.constellation-card-name {
    font-size: 15px;
    color: #fff;
    font-weight: 600;
    margin-bottom: 4px;
}

.constellation-card.locked .constellation-card-name {
    color: rgba(200, 210, 255, 0.3);
}

.constellation-card-latin {
    font-size: 11px;
    color: rgba(150, 180, 255, 0.5);
    font-style: italic;
    margin-bottom: 8px;
}

.constellation-card.locked .constellation-card-latin {
    color: rgba(150, 180, 255, 0.2);
}

.constellation-card-difficulty {
    font-size: 11px;
    color: #ffcc44;
}

/* 星座详情 */
.const-detail {
    padding: 0 25px 25px;
}

.const-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.back-btn {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #aaddff;
    cursor: pointer;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.2s;
}

.back-btn:hover {
    background: rgba(102, 204, 255, 0.2);
    border-color: rgba(102, 204, 255, 0.4);
}

.const-difficulty {
    padding: 4px 12px;
    background: rgba(255, 204, 68, 0.15);
    border-radius: 10px;
    font-size: 12px;
    color: #ffcc44;
}

.const-detail-starfield {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

#const-detail-canvas {
    background: radial-gradient(ellipse at center, rgba(10, 15, 40, 0.9), rgba(0, 5, 15, 0.95));
    border-radius: 50%;
    border: 1px solid rgba(102, 170, 255, 0.3);
    box-shadow: 0 0 40px rgba(102, 170, 255, 0.2), inset 0 0 30px rgba(0, 0, 0, 0.5);
}

.const-detail-info {
    text-align: center;
}

.const-detail-name {
    font-size: 26px;
    color: #66ccff;
    margin-bottom: 4px;
}

.const-detail-latin {
    font-size: 15px;
    color: rgba(150, 180, 255, 0.6);
    font-style: italic;
    margin-bottom: 15px;
}

.const-detail-meta {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.const-detail-meta span {
    font-size: 13px;
    color: rgba(200, 210, 255, 0.7);
}

.const-detail-meta span span {
    color: #aaddff;
    font-weight: 600;
}

.const-detail-section {
    text-align: left;
    margin-bottom: 18px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border-left: 3px solid #66aaff;
}

.const-detail-section h4 {
    font-size: 15px;
    color: #66ccff;
    margin-bottom: 10px;
}

.const-detail-section p {
    font-size: 14px;
    color: rgba(220, 230, 255, 0.85);
    line-height: 1.7;
    margin: 0;
}

/* ===== 今日运势 ===== */
.horoscope-btn {
    background: linear-gradient(135deg, #aa66ff, #6644cc);
    color: #fff;
    box-shadow: 0 4px 20px rgba(170, 102, 255, 0.4);
}

.horoscope-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(170, 102, 255, 0.6);
}

.horoscope-container {
    background: linear-gradient(180deg, rgba(20, 15, 50, 0.98), rgba(15, 10, 40, 0.98));
    border-radius: 20px;
    padding: 25px;
    max-width: 420px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    border: 2px solid rgba(170, 102, 255, 0.3);
    box-shadow: 0 0 60px rgba(170, 102, 255, 0.2);
}

.horoscope-date {
    text-align: center;
    color: rgba(170, 136, 255, 0.8);
    font-size: 14px;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.horoscope-constellation {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(100, 80, 180, 0.2);
    border-radius: 12px;
    border: 1px solid rgba(170, 102, 255, 0.2);
}

.horoscope-const-icon {
    flex-shrink: 0;
}

#horoscope-canvas {
    display: block;
    width: 160px;
    height: 120px;
    border-radius: 8px;
    background: rgba(10, 5, 30, 0.6);
}

.horoscope-const-info {
    flex: 1;
    min-width: 0;
}

.horoscope-level {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 8px;
    text-shadow: 0 0 20px currentColor;
}

.horoscope-const-name {
    font-size: 20px;
    font-weight: bold;
    color: #fff;
    margin-bottom: 4px;
}

.horoscope-const-latin {
    font-size: 13px;
    color: rgba(170, 200, 255, 0.6);
    font-style: italic;
}

.horoscope-message {
    text-align: center;
    font-size: 15px;
    color: rgba(220, 210, 255, 0.9);
    line-height: 1.8;
    padding: 15px;
    margin-bottom: 20px;
    background: rgba(120, 90, 200, 0.15);
    border-radius: 10px;
    border-left: 3px solid #aa66ff;
}

.horoscope-lucky {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 20px;
}

.horoscope-lucky-item {
    text-align: center;
}

.lucky-label {
    display: block;
    font-size: 12px;
    color: rgba(170, 170, 200, 0.6);
    margin-bottom: 6px;
}

.lucky-value {
    display: block;
    font-size: 28px;
    font-weight: bold;
    color: #ffcc66;
    text-shadow: 0 0 15px rgba(255, 204, 102, 0.5);
}

.lucky-color {
    display: inline-block;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    box-shadow: 0 0 15px currentColor;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.horoscope-buff {
    text-align: center;
    padding: 15px;
    margin-bottom: 20px;
    background: linear-gradient(135deg, rgba(255, 204, 68, 0.1), rgba(102, 204, 255, 0.1));
    border-radius: 10px;
    border: 1px solid rgba(255, 204, 68, 0.3);
}

.buff-title {
    font-size: 14px;
    color: #ffcc66;
    margin-bottom: 8px;
    font-weight: bold;
}

.buff-desc {
    font-size: 13px;
    color: rgba(220, 230, 255, 0.9);
    line-height: 1.6;
}

.horoscope-footer {
    text-align: center;
}

.horoscope-footer .btn {
    min-width: 180px;
    font-size: 16px;
}

.horoscope-activated-tip {
    margin-top: 12px;
    font-size: 14px;
    color: #66ff99;
    text-shadow: 0 0 10px rgba(102, 255, 153, 0.5);
}

/* ===== 星座连线小游戏 ===== */
.constellation-game-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 5, 20, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 200;
    backdrop-filter: blur(5px);
}

.constellation-game-container {
    background: linear-gradient(180deg, rgba(20, 15, 50, 0.98), rgba(10, 8, 35, 0.98));
    border-radius: 20px;
    padding: 25px;
    max-width: 500px;
    width: 90%;
    border: 2px solid rgba(102, 204, 255, 0.4);
    box-shadow: 0 0 80px rgba(102, 204, 255, 0.3);
}

.constellation-game-header {
    text-align: center;
    margin-bottom: 15px;
}

.constellation-game-title {
    font-size: 20px;
    color: #66ccff;
    margin: 0 0 8px 0;
}

.constellation-game-hint {
    font-size: 13px;
    color: rgba(170, 200, 255, 0.7);
    margin: 0;
}

.constellation-game-canvas-wrap {
    position: relative;
    margin: 15px 0;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(5, 5, 25, 0.8);
    border: 1px solid rgba(102, 170, 255, 0.3);
}

#constellation-game-canvas {
    display: block;
    width: 100%;
    height: auto;
    cursor: pointer;
}

.constellation-game-stars-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding: 10px 15px;
    background: rgba(80, 120, 200, 0.15);
    border-radius: 8px;
}

.constellation-game-progress {
    font-size: 14px;
    color: #66ccff;
    font-weight: bold;
}

.constellation-game-target {
    font-size: 13px;
    color: rgba(200, 220, 255, 0.8);
}

.constellation-game-footer {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.constellation-game-footer .btn {
    flex: 1;
    max-width: 150px;
}

.constellation-game-result {
    text-align: center;
    padding: 20px;
}

.game-result-title {
    font-size: 24px;
    margin-bottom: 10px;
}

.game-result-title.success {
    color: #66ff99;
    text-shadow: 0 0 20px rgba(102, 255, 153, 0.6);
}

.game-result-title.fail {
    color: #ff6677;
    text-shadow: 0 0 20px rgba(255, 102, 119, 0.6);
}

.game-result-desc {
    font-size: 14px;
    color: rgba(220, 230, 255, 0.85);
    line-height: 1.6;
    margin-bottom: 15px;
}

.game-result-reward {
    padding: 12px;
    background: rgba(255, 204, 68, 0.15);
    border-radius: 8px;
    border: 1px solid rgba(255, 204, 68, 0.3);
    margin-bottom: 15px;
}

.game-result-reward-title {
    font-size: 14px;
    color: #ffcc66;
    margin-bottom: 6px;
    font-weight: bold;
}

.game-result-reward-list {
    font-size: 13px;
    color: rgba(220, 230, 255, 0.9);
    line-height: 1.8;
}

/* 响应式 */
@media (max-width: 600px) {
    background: linear-gradient(135deg, #ffcc44, #ff8844);
    color: #fff;
    box-shadow: 0 4px 20px rgba(255, 204, 68, 0.4);
}

.collection-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(255, 204, 68, 0.6);
}

/* 响应式 */
@media (max-width: 600px) {
    .game-title {
        font-size: 36px;
    }
    
    .hud-top {
        gap: 20px;
        padding: 10px 20px;
    }
    
    .hud-value {
        font-size: 18px;
    }
    
    .energy-bar,
    .wormhole-bar {
        width: 100px;
    }
    
    .instructions {
        grid-template-columns: 1fr;
    }
    
    .game-over-stats {
        grid-template-columns: 1fr;
    }
}

/* ===== 用户登录/注册 ===== */
.user-info {
    margin-top: 12px;
    text-align: center;
}

.btn-link {
    background: none;
    border: none;
    color: rgba(136, 180, 255, 0.8);
    font-size: 14px;
    cursor: pointer;
    padding: 4px 8px;
}

.btn-link:hover {
    color: #aaccff;
    text-decoration: underline;
}

.auth-container {
    background: linear-gradient(180deg, rgba(20, 25, 50, 0.98), rgba(15, 20, 45, 0.98));
    border-radius: 20px;
    padding: 25px;
    max-width: 400px;
    width: 90%;
    border: 2px solid rgba(102, 170, 255, 0.3);
    box-shadow: 0 0 60px rgba(102, 170, 255, 0.2);
}

.auth-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 20px;
    background: rgba(50, 80, 150, 0.3);
    border-radius: 10px;
    padding: 4px;
}

.auth-tab {
    flex: 1;
    padding: 10px;
    background: none;
    border: none;
    color: rgba(170, 200, 255, 0.6);
    font-size: 15px;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s;
}

.auth-tab.active {
    background: rgba(102, 170, 255, 0.3);
    color: #66aaff;
    font-weight: bold;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 13px;
    color: rgba(170, 200, 255, 0.8);
}

.form-group input {
    padding: 10px 14px;
    background: rgba(20, 30, 60, 0.8);
    border: 1px solid rgba(102, 170, 255, 0.3);
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s;
}

.form-group input:focus {
    border-color: #66aaff;
    box-shadow: 0 0 10px rgba(102, 170, 255, 0.2);
}

.auth-submit {
    margin-top: 5px;
    width: 100%;
}

.auth-error {
    padding: 10px 14px;
    background: rgba(255, 80, 100, 0.15);
    border: 1px solid rgba(255, 80, 100, 0.4);
    border-radius: 8px;
    color: #ff8090;
    font-size: 13px;
    margin-bottom: 15px;
}

.auth-tip {
    margin-top: 15px;
    text-align: center;
    font-size: 12px;
    color: rgba(150, 180, 220, 0.6);
}

/* ===== 用户面板 ===== */
.user-profile {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 25px;
    padding: 15px;
    background: rgba(80, 120, 200, 0.15);
    border-radius: 12px;
}

.user-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #66aaff, #aa66ff);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 0 0 20px rgba(102, 170, 255, 0.4);
}

.user-details {
    flex: 1;
    min-width: 0;
}

.user-name {
    font-size: 18px;
    font-weight: bold;
    color: #fff;
    margin-bottom: 4px;
}

.user-username {
    font-size: 13px;
    color: rgba(150, 180, 220, 0.7);
}

.user-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 25px;
}

.user-stat-item {
    text-align: center;
    padding: 15px 10px;
    background: rgba(80, 120, 200, 0.15);
    border-radius: 10px;
}

.stat-value {
    font-size: 24px;
    font-weight: bold;
    color: #66ccff;
    margin-bottom: 4px;
    text-shadow: 0 0 10px rgba(102, 204, 255, 0.5);
}

.stat-label {
    font-size: 12px;
    color: rgba(170, 200, 255, 0.7);
}

.user-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-danger {
    background: linear-gradient(135deg, #ff5577, #cc3355);
    color: #fff;
    box-shadow: 0 4px 15px rgba(255, 85, 119, 0.3);
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(255, 85, 119, 0.5);
}

.sync-status {
    margin-top: 12px;
    text-align: center;
    font-size: 13px;
    padding: 10px;
    border-radius: 8px;
}

.sync-status.success {
    color: #66ff99;
    background: rgba(102, 255, 153, 0.1);
    border: 1px solid rgba(102, 255, 153, 0.3);
}

.sync-status.error {
    color: #ff8090;
    background: rgba(255, 80, 100, 0.1);
    border: 1px solid rgba(255, 80, 100, 0.3);
}
