:root {
    --primary: #ff66aa;
    --secondary: #3366cc;
    --dark: #2c2c54;
    --light: #f7f7f7;
    --danger: #ff4757;
    --success: #2ed573;
    --warning: #ffa502;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    color: white;
    min-height: 100vh;
    padding: 20px;
    overflow-x: hidden;
}

/* 防止双击放大 */
* {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

/* 增强移动端点击反馈 */
.card,
.action-btn,
.skill-card,
.tab-btn {
    transition: transform 0.1s ease;
}

.card:active,
.action-btn:active,
.skill-card:active,
.tab-btn:active {
    transform: scale(0.95);
}

/* 移动端优化布局 */
@media (max-width: 768px) {
    .game-info {
        flex-direction: column;
        align-items: center;
    }

    .player-info,
    .enemy-info {
        width: 100%;
        max-width: 300px;
        margin-bottom: 15px;
    }

    .card {
        width: 120px;
        height: 160px;
        font-size: 0.8rem;
    }

    .stat {
        padding: 3px 5px;
    }

    .stat-value {
        font-size: 0.9rem;
    }

    .player-name {
        font-size: 0.75rem;
    }

    .action-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .battle-area {
        flex-direction: column;
    }

    .player-area,
    .enemy-area {
        margin-bottom: 20px;
    }

    .skills {
        flex-direction: column;
        align-items: center;
    }

    .skill-card {
        width: 100%;
        max-width: 300px;
        margin-bottom: 15px;
    }
}

/* 点击反馈动画 */
@keyframes tap-feedback {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(0.95);
    }

    100% {
        transform: scale(1);
    }
}

.tap-feedback {
    animation: tap-feedback 0.2s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

header {
    text-align: center;
    padding: 20px 0;
    margin-bottom: 30px;
}

h1 {
    font-size: 3rem;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 10px rgba(255, 102, 170, 0.3);
    margin-bottom: 10px;
}

.game-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    background: rgba(0, 0, 0, 0.3);
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.round-info {
    text-align: center;
}

.player-info,
.enemy-info {
    text-align: center;
    padding: 15px;
    border-radius: 8px;
    min-width: 200px;
}

.player-info {
    background: rgba(51, 102, 204, 0.2);
}

.enemy-info {
    background: rgba(255, 102, 170, 0.2);
}

.health-bar {
    height: 20px;
    background: #444;
    border-radius: 10px;
    margin-top: 10px;
    overflow: hidden;
}

.health-fill {
    height: 100%;
    background: linear-gradient(to right, var(--danger), var(--success));
    border-radius: 10px;
    transition: width 0.5s ease;
}

.battle-area {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    gap: 20px;
}

.player-area,
.enemy-area {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.selected-stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
    padding: 10px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .selected-stats {
        flex-direction: column;
        align-items: center;
        gap: 5px;
    }
}

.stat-sum {
    display: flex;
    align-items: center;
    padding: 5px 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    font-weight: bold;
}

.stat-sum.aim {
    background: rgba(255, 107, 107, 0.3);
}

.stat-sum.aim:has(.top) {
    border: 2px solid #ff6b6b;
}

.stat-sum.spd {
    background: rgba(155, 89, 182, 0.3);
}

.stat-sum.spd:has(.top) {
    border: 2px solid #9b59b6;
}

.stat-sum.acc {
    background: rgba(46, 204, 113, 0.3);
}

.stat-sum.acc:has(.top) {
    border: 2px solid #2ecc71;
}

.area-title {
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.5rem;
    color: var(--primary);
}

.mod-indicator {
    text-align: center;
    font-size: 1.8rem;
    margin: 20px 0;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 2px;
    animation: pulse 2s infinite;
}

.card-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.card {
    width: 150px;
    height: 200px;
    background: linear-gradient(135deg, #3d5afe, #7c4dff);
    border-radius: 12px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.card.selected {
    transform: translateY(-15px);
    box-shadow: 0 0 20px var(--primary);
    border: 2px solid var(--primary);
}

.card.collection-selected {
    border: 3px solid var(--warning) !important;
    box-shadow: 0 0 20px var(--warning) !important;
}

.card.collection-upgrade-target {
    border: 3px solid #2ed573 !important;
    /* 绿色边框 */
    box-shadow: 0 0 20px #2ed573 !important;
    position: relative;
}

.card.collection-upgrade-target::after {
    content: "目标";
    position: absolute;
    top: 8px;
    right: 12px;
    background: #2ed573;
    color: #fff;
    font-size: 0.9em;
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: bold;
}

.card.collection-upgrade-material {
    border: 3px solid #ffa502 !important;
    /* 橙色边框 */
    box-shadow: 0 0 20px #ffa502 !important;
    position: relative;
}

.card.collection-upgrade-material::after {
    content: "素材";
    position: absolute;
    top: 8px;
    right: 12px;
    background: #ffa502;
    color: #fff;
    font-size: 0.9em;
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: bold;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* 玩家头部样式 */
.player-header {
    display: flex;
    align-items: center;
    padding: 2px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px 8px 0 0;
    margin: -15px -15px 2px -15px;
}

.player-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.5);
    margin-right: 10px;
    object-fit: cover;
}

.player-name {
    font-weight: bold;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-mod {
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.9rem;
    padding: 3px 8px;
    border-radius: 20px;
    background: rgba(0, 0, 0, 0.3);
}

.card-mod.highlight {
    border: 2px solid rgba(255, 255, 255, 0.5) !important;
    box-shadow: 0 0 10px rgba(255, 255, 255, 1) !important;
}

.card-mod.EZ {
    background-color: #14a57d;
}

.card-mod.HR {
    background-color: #e74141;
}

.card-mod.HD {
    background-color: #2a85e1;
}

.card-mod.DT {
    background-color: #934bdf;
}

.card-stats {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 5px;
}

.card.disabled {
    opacity: 0.5;
    filter: grayscale(80%);
    cursor: not-allowed;
}

.card.disabled:hover {
    transform: none !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3) !important;
}

/* Aim高卡 - 红色边框 */
.card.high-aim {
    border: 2px solid #ff6b6b;
    box-shadow: 0 0 10px rgba(255, 107, 107, 0.5);
    background: rgba(255, 107, 107, 0.3);
}

/* Spd高卡 - 紫色边框 */
.card.high-spd {
    border: 2px solid #9b59b6;
    box-shadow: 0 0 10px rgba(155, 89, 182, 0.5);
    background: rgba(155, 89, 182, 0.3);
}

/* Acc高卡 - 绿色边框 */
.card.high-acc {
    border: 2px solid #2ecc71;
    box-shadow: 0 0 10px rgba(46, 204, 113, 0.5);
    background: rgba(46, 204, 113, 0.3);
}

/* Aim/Spd高卡 */
.card.high-aim-spd {
    border: 2px solid #cc2e85;
    box-shadow: 0 0 10px rgba(92, 10, 103, 0.5);
    background: linear-gradient(45deg,
            #ff6b6b 0%,
            #9b59b6 100%);
}

/* Aim/Acc高卡 */
.card.high-aim-acc {
    border: 2px solid #c1cc2e;
    box-shadow: 0 0 10px rgba(103, 98, 10, 0.5);
    background: linear-gradient(45deg,
            #ff6b6b 0%,
            #2ecc71 100%);
}

/* Spd/Acc高卡 */
.card.high-spd-acc {
    border: 2px solid #2e33cc;
    box-shadow: 0 0 10px rgba(10, 10, 103, 0.5);
    background: linear-gradient(45deg,
            #9b59b6 0%,
            #2ecc71 100%);
}

/* 三高卡 - 彩色渐变边框 */
.card.all-high {
    position: relative;
    border: 2px solid transparent;
    background: linear-gradient(45deg,
            #ff6b6b 0%,
            #9b59b6 50%,
            #2ecc71 100%);
}

.card.all-high::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg,
            #ff6b6b 0%,
            #9b59b6 50%,
            #2ecc71 100%);
    z-index: -1;
    border-radius: 12px;
}

/* 平衡卡 - 蓝色边框 */
.card.balanced {
    border: 2px solid #48dbfb;
    box-shadow: 0 0 10px rgba(72, 219, 251, 0.5);
    background: rgba(72, 219, 251, 0.3);
}

.stat {
    display: flex;
    justify-content: space-between;
    padding: 5px 8px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 5px;
}

.stat-name {
    font-weight: bold;
}

.stat-value {
    font-weight: bold;
    font-size: 1.0rem;
}

.card-footer {
    text-align: center;
    font-size: 0.8rem;
    opacity: 0.7;
}

.actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

button {
    padding: 12px 30px;
    border: none;
    border-radius: 50px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    color: white;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.result-area {
    background: rgba(0, 0, 0, 0.3);
    padding: 20px;
    border-radius: 15px;
    margin-top: 30px;
    min-height: 100px;
}

.result-title {
    text-align: center;
    margin-bottom: 15px;
    color: var(--warning);
    font-size: 1.4rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.battle-outcome {
    text-align: center;
    font-size: 1.8rem;
    font-weight: bold;
    margin: 20px 0;
    padding: 15px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.player-win {
    color: #2ed573;
    background: rgba(46, 213, 115, 0.1);
}

.enemy-win {
    color: #ff4757;
    background: rgba(255, 71, 87, 0.1);
}

.draw-outcome {
    color: #feca57;
    background: rgba(254, 202, 87, 0.1);
}

.result-content {
    display: flex;
    justify-content: space-around;
    text-align: center;
}

.result-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 10px;
    min-width: 200px;
}

.result-sum {
    width: 100%;
    text-align: center;
    border-radius: 5px;
    padding: 4px;
    font-size: 1.1em;
}

.result-sum.aim {
    background: rgba(255, 107, 107, 0.3);
}

.result-sum.aim.top {
    border: 2px solid #ff6b6b;
    font-weight: bold;
}

.result-sum.spd {
    background: rgba(155, 89, 182, 0.3);
}

.result-sum.spd.top {
    border: 2px solid #9b59b6;
    font-weight: bold;
}

.result-sum.acc {
    background: rgba(46, 204, 113, 0.3);
}

.result-sum.acc.top {
    border: 2px solid #2ecc71;
    font-weight: bold;
}

.critical-hit {
    color: var(--warning);
    font-weight: bold;
    font-size: 1.2rem;
    text-align: center;
    margin-top: 10px;
    animation: blink 1s infinite;
}

.played-cards-container {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    margin-top: 20px;
}

.player-cards,
.enemy-cards {
    flex: 1;
    padding: 15px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.2);
}

.cards-label {
    text-align: center;
    margin-bottom: 15px;
    font-size: 1.3rem;
    font-weight: bold;
}

.player-cards .cards-label {
    color: #3498db;
}

.enemy-cards .cards-label {
    color: #e74c3c;
}

.played-cards {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.action-hint,
.comparison-detail {
    margin-top: 20px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 10px;
    font-size: 1.1rem;
    text-align: center;
    line-height: 1.6;
}

.critical-hit {
    color: var(--warning);
    font-weight: bold;
    font-size: 1.3rem;
    text-align: center;
    margin-top: 15px;
    animation: blink 1s infinite;
    padding: 10px;
    border-radius: 8px;
    background: rgba(255, 202, 87, 0.2);
}

.attribute-highlight {
    font-weight: bold;
    font-size: 1.2em;
    padding: 2px 8px;
    border-radius: 4px;
    margin: 0 3px;
}

.aim-highlight {
    background: rgba(255, 107, 107, 0.3);
    color: #ff6b6b;
}

.spd-highlight {
    background: rgba(155, 89, 182, 0.3);
    color: #9b59b6;
}

.acc-highlight {
    background: rgba(46, 204, 113, 0.3);
    color: #2ecc71;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 102, 170, 0.4);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(255, 102, 170, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 102, 170, 0);
    }
}

@keyframes blink {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }

    100% {
        opacity: 1;
    }
}

.instructions {
    background: rgba(0, 0, 0, 0.3);
    padding: 20px;
    border-radius: 15px;
    margin-top: 30px;
    font-size: 0.9rem;
    line-height: 1.6;
}

.instructions h3 {
    margin-bottom: 10px;
    color: var(--primary);
}

.instructions ul {
    padding-left: 20px;
}

.instructions li {
    margin-bottom: 8px;
}

@media (max-width: 768px) {
    .battle-area {
        flex-direction: column;
    }

    .card {
        width: 130px;
        height: 180px;
    }
}

/* 技能区域样式 */
.skills-area {
    background: rgba(0, 0, 0, 0.3);
    padding: 20px;
    border-radius: 15px;
    margin-top: 20px;
}

.skills-area h3 {
    text-align: center;
    margin-bottom: 15px;
    color: #feca57;
}

.skills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.skill-card {
    width: 220px;
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    border-radius: 10px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.skill-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.skill-card.used,
.skill-card.disabled {
    opacity: 0.5;
    filter: grayscale(80%);
    cursor: not-allowed;
}

.skill-card.used:hover,
.skill-card.disabled:hover {
    transform: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.skill-card .skill-left {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #ff6b6b;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.skill-card.used .skill-left {
    display: none;
}

.skill-card .skill-name {
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: #feca57;
}

.skill-card .skill-desc {
    font-size: 0.9rem;
    line-height: 1.4;
}

/* 偷取模式下的敌方卡牌样式 */
.enemy-card.steal-target {
    border: 2px solid #feca57;
    box-shadow: 0 0 15px #feca57;
    cursor: pointer;
    transform: scale(1.05);
}

.enemy-card.steal-target:hover {
    transform: scale(1.1);
}

/* 侦察模式下显示的敌方卡牌 */
.enemy-card.revealed {
    opacity: 1;
    filter: none;
}

.skill-hint {
    text-align: center;
    margin-top: 10px;
    color: #feca57;
    font-style: italic;
    font-size: 0.9rem;
}

/* 奖励选择界面样式 */
.reward-area {
    background: rgba(0, 0, 0, 0.3);
    padding: 20px;
    border-radius: 15px;
    margin-top: 30px;
}

.reward-title {
    text-align: center;
    margin-bottom: 20px;
    color: var(--success);
    font-size: 1.8rem;
}

.reward-cards {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

/*
.reward-card {
    width: 180px;
    height: 250px;
    background: var(--card-bg);
    border-radius: 12px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
}

.reward-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 20px var(--success);
}

.reward-card.selected {
    border: 3px solid var(--success);
    box-shadow: 0 0 20px var(--success);
}
*/

.reward-hint {
    text-align: center;
    margin-top: 20px;
    color: var(--warning);
    font-style: italic;
}

/* 标签页样式 */
.tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    gap: 20px;
}

.tab-btn {
    padding: 12px 30px;
    border: none;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.tab-btn.active {
    background: linear-gradient(to right, var(--primary), var(--secondary));
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.tab-btn:hover:not(.active) {
    background: rgba(255, 255, 255, 0.2);
}


.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.hide {
    display: none;
}

/* 养成界面样式 */
.collection-area {
    background: rgba(0, 0, 0, 0.3);
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 30px;
}

.collection-title {
    text-align: center;
    margin-bottom: 20px;
    color: var(--warning);
    font-size: 1.8rem;
}

.collection-stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
    text-align: center;
}

.collection-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

/*
.collection-card {
    width: 180px;
    height: 250px;
    background: var(--card-bg);
    border-radius: 12px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
}

.collection-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.collection-card.selected {
    border: 3px solid var(--warning);
    box-shadow: 0 0 20px var(--warning);
}

.collection-card .player-header {
    display: flex;
    align-items: center;
    padding: 5px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    margin: -15px -15px 10px -15px;
}

.collection-card .player-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.5);
    margin-right: 10px;
    object-fit: cover;
}

.collection-card .player-name {
    font-weight: bold;
    font-size: 0.85rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

*/

.collection-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
}

.action-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 20px;
    width: 300px;
    text-align: center;
}

.action-title {
    color: var(--primary);
    margin-bottom: 15px;
}

.action-desc {
    margin-bottom: 20px;
    font-size: 0.9rem;
    line-height: 1.5;
}

.action-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 50px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.action-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.action-btn:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.shop-area {
    background: rgba(0, 0, 0, 0.3);
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 30px;
}

.shop-title {
    text-align: center;
    margin-bottom: 20px;
    color: #feca57;
    font-size: 1.8rem;
}

.shop-gold {
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 20px;
    background: rgba(254, 202, 87, 0.2);
    padding: 10px;
    border-radius: 8px;
}

.shop-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.shop-item {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.shop-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

.shop-item.selected {
    border: 2px solid #feca57;
    box-shadow: 0 0 15px #feca57;
}

.shop-item-name {
    font-weight: bold;
    font-size: 1.2rem;
    color: #48dbfb;
    margin-bottom: 10px;
}

.shop-item-desc {
    font-size: 0.9rem;
    margin-bottom: 10px;
    line-height: 1.4;
}

.shop-item-price {
    font-weight: bold;
    color: #feca57;
    text-align: right;
}

.shop-hint {
    text-align: center;
    margin-top: 20px;
    color: #feca57;
    font-style: italic;
    min-height: 24px;
}

.inventory {
    display: flex;
    justify-content: space-around;
    background: rgba(0, 0, 0, 0.3);
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 15px;
    font-weight: bold;
}

.card-action-box {
    position: absolute;
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: rgba(0, 0, 0, 0.9);
    padding: 10px;
    border-radius: 8px;
    z-index: 100;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    min-width: 150px;
}

.card-action-box .action-btn {
    padding: 5px;
    font-size: 0.8rem;
    white-space: nowrap;
    width: 100%;
}

.inventory {
    background: rgba(0, 0, 0, 0.3);
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    text-align: center;
}

.inventory h3 {
    margin-bottom: 10px;
    color: #feca57;
}

.inventory div {
    margin: 5px 0;
    font-size: 1.1rem;
}