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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #e0e0e0;
    overflow: hidden;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.game-container {
    display: flex;
    gap: 15px;
    max-width: 1600px;
    width: 95%;
    height: 95vh;
    background: rgba(26, 26, 46, 0.8);
    border-radius: 16px;
    padding: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.main-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
}

.game-header {
    text-align: center;
    padding: 10px;
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(106, 17, 203, 0.3);
    flex-shrink: 0;
}

.game-header h1 {
    font-size: 18px;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    letter-spacing: 1px;
}

.canvas-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #0f0f1e;
    border-radius: 12px;
    padding: 10px;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    min-height: 0;
}

#game-canvas {
    image-rendering: pixelated;
    image-rendering: crisp-edges;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

#messages-panel {
    height: 200px;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    background: rgba(30, 30, 50, 0.9);
    border-radius: 10px;
    padding: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

#messages-panel h3 {
    font-size: 16px;
    margin-bottom: 10px;
    color: #4fc3f7;
    border-bottom: 2px solid rgba(79, 195, 247, 0.3);
    padding-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#message-log {
    flex: 1;
    overflow-y: auto;
    padding-right: 5px;
}

.message {
    padding: 5px 8px;
    margin-bottom: 3px;
    background: rgba(255, 255, 255, 0.05);
    border-left: 3px solid #4fc3f7;
    border-radius: 4px;
    font-size: 12px;
    animation: messageSlide 0.3s ease;
}

@keyframes messageSlide {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.sidebar {
    width: 320px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow-y: auto;
    flex-shrink: 0;
}

.menu-btn {
    width: 100%;
    padding: 10px;
    background: linear-gradient(135deg, #4fc3f7 0%, #2196f3 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    margin-bottom: 10px;
    box-shadow: 0 4px 10px rgba(33, 150, 243, 0.3);
}

.menu-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(33, 150, 243, 0.5);
}

.menu-btn:active {
    transform: translateY(0);
}

.panel {
    background: rgba(30, 30, 50, 0.9);
    border-radius: 10px;
    padding: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.panel h3 {
    font-size: 16px;
    margin-bottom: 10px;
    color: #4fc3f7;
    border-bottom: 2px solid rgba(79, 195, 247, 0.3);
    padding-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
    transition: background 0.2s;
    user-select: none;
    margin: -5px -5px 8px -5px;
}

.panel-header:hover {
    background: rgba(255, 255, 255, 0.1);
}

.panel-header h3 {
    margin: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.toggle-icon {
    font-size: 12px;
    color: #a0a0a0;
}

.stats-inline {
    display: flex;
    justify-content: space-between;
    gap: 8px;
}

.stats-inline span {
    font-size: 13px;
    padding: 6px 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    border-left: 3px solid #4fc3f7;
    flex: 1;
    text-align: center;
}

#player-stats .stat-row {
    padding: 4px 0;
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 13px;
}

.monster-card {
    background: linear-gradient(135deg, rgba(50, 50, 80, 0.6) 0%, rgba(40, 40, 70, 0.6) 100%);
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 8px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

.monster-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 195, 247, 0.2);
}

.monster-card.active {
    border-color: #4fc3f7;
    box-shadow: 0 0 20px rgba(79, 195, 247, 0.4);
    background: linear-gradient(135deg, rgba(79, 195, 247, 0.2) 0%, rgba(50, 50, 80, 0.6) 100%);
}

.monster-card.dead {
    opacity: 0.4;
    filter: grayscale(100%);
}

.monster-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    position: relative;
}

.monster-emoji {
    font-size: 28px;
}

.monster-name {
    flex: 1;
    font-weight: 700;
    font-size: 15px;
}

.monster-level {
    background: rgba(79, 195, 247, 0.3);
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 700;
}

.party-reorder-btns {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-left: auto;
}

.party-reorder-btn {
    padding: 2px 6px;
    font-size: 10px;
    background: rgba(79, 195, 247, 0.2);
    color: #4fc3f7;
    border: 1px solid rgba(79, 195, 247, 0.5);
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 20px;
    line-height: 1;
}

.party-reorder-btn:hover:not(:disabled) {
    background: rgba(79, 195, 247, 0.4);
    transform: scale(1.1);
}

.party-reorder-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.stat-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
}

.stat-label {
    font-size: 11px;
    font-weight: 700;
    min-width: 25px;
    color: #b0b0b0;
}

.progress-bar {
    flex: 1;
    height: 14px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4caf50 0%, #8bc34a 100%);
    box-shadow: 0 0 8px rgba(76, 175, 80, 0.5);
}

.progress-fill.enemy {
    background: linear-gradient(90deg, #f44336 0%, #e91e63 100%);
    box-shadow: 0 0 8px rgba(244, 67, 54, 0.5);
}

.progress-fill.ally {
    background: linear-gradient(90deg, #2196f3 0%, #03a9f4 100%);
    box-shadow: 0 0 8px rgba(33, 150, 243, 0.5);
}

.stat-value {
    font-size: 11px;
    min-width: 50px;
    text-align: right;
    font-weight: 600;
}

.stat-row {
    font-size: 12px;
    padding: 3px 0;
    color: #c0c0c0;
}

.stat-row.small {
    font-size: 10px;
    color: #a0a0a0;
}

.exp-bar {
    height: 5px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 3px;
    overflow: hidden;
    margin-top: 6px;
    margin-bottom: 3px;
}

.exp-fill {
    height: 100%;
    background: linear-gradient(90deg, #ffc107 0%, #ff9800 100%);
    transition: width 0.3s ease;
}

.empty-message {
    text-align: center;
    color: #808080;
    font-style: italic;
    padding: 15px;
    font-size: 12px;
}

.item-slot {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    margin-bottom: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    border-left: 3px solid #4fc3f7;
}

.item-emoji {
    font-size: 24px;
}

.item-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.item-name {
    font-weight: 700;
    font-size: 13px;
}

.item-desc {
    font-size: 11px;
    color: #a0a0a0;
}

.item-target-select {
    padding: 4px 6px;
    background: rgba(30, 30, 50, 0.9);
    color: #e0e0e0;
    border: 1px solid rgba(79, 195, 247, 0.3);
    border-radius: 4px;
    font-size: 11px;
    cursor: pointer;
    max-width: 120px;
}

.item-use-btn {
    padding: 6px 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.item-use-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(102, 126, 234, 0.4);
}

#combat-ui {
    display: none;
}

.combat-enemy,
.combat-ally {
    margin-bottom: 12px;
    padding: 10px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
}

.enemy-name,
.ally-name {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 6px;
}

.enemy-name {
    color: #ff6b6b;
}

.ally-name {
    color: #4fc3f7;
}

.combat-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    margin-top: 12px;
}

.combat-btn {
    padding: 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.combat-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.combat-btn:active {
    transform: translateY(0);
}

.combat-btn.capture {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    box-shadow: 0 4px 15px rgba(240, 147, 251, 0.3);
}

.combat-btn.flee {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    box-shadow: 0 4px 15px rgba(79, 172, 254, 0.3);
}

.turn-indicator {
    text-align: center;
    padding: 12px;
    background: rgba(255, 193, 7, 0.2);
    border-radius: 8px;
    font-weight: 700;
    margin-top: 8px;
    color: #ffc107;
    font-size: 13px;
}

#game-over {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.game-over-content {
    text-align: center;
    padding: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.game-over-content h2 {
    font-size: 32px;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.game-over-stats {
    margin: 20px 0;
}

.stat-item {
    font-size: 18px;
    margin: 10px 0;
}

.restart-btn {
    padding: 15px 30px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    background: #ffc107;
    color: #333;
    border: none;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.4);
    transition: all 0.3s ease;
}

.restart-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 193, 7, 0.6);
}

::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb {
    background: rgba(79, 195, 247, 0.5);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(79, 195, 247, 0.7);
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.party-swap-content {
    background: rgba(30, 30, 50, 0.95);
    border-radius: 16px;
    padding: 24px;
    max-width: 700px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(79, 195, 247, 0.3);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.party-swap-content .modal-header {
    text-align: center;
    margin-bottom: 24px;
}

.party-swap-content .modal-header h2 {
    font-size: 24px;
    color: #4fc3f7;
    margin-bottom: 8px;
}

.party-swap-content .modal-header p {
    font-size: 14px;
    color: #b0b0b0;
}

.new-monster-section {
    margin-bottom: 24px;
}

.new-monster-section h3,
.party-section h3 {
    font-size: 16px;
    color: #4fc3f7;
    margin-bottom: 12px;
    border-bottom: 2px solid rgba(79, 195, 247, 0.3);
    padding-bottom: 6px;
}

.swap-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 12px;
    transition: all 0.3s ease;
}

.swap-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(79, 195, 247, 0.4);
    transform: translateY(-2px);
}

.swap-card.active {
    border-color: #4fc3f7;
    background: rgba(79, 195, 247, 0.1);
}

.swap-card.new-monster {
    border-color: #ffc107;
    background: rgba(255, 193, 7, 0.1);
}

.swap-card.new-monster:hover {
    border-color: #ffd54f;
    background: rgba(255, 193, 7, 0.15);
}

.swap-card .monster-emoji {
    font-size: 48px;
    flex-shrink: 0;
}

.swap-card .monster-info {
    flex: 1;
}

.swap-card .monster-name {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
}

.swap-card .monster-level {
    font-size: 14px;
    color: #4fc3f7;
    margin-bottom: 6px;
}

.swap-card .monster-stats-compact {
    font-size: 12px;
    color: #a0a0a0;
}

.release-btn {
    padding: 10px 20px;
    background: linear-gradient(135deg, #f44336 0%, #e91e63 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(244, 67, 54, 0.3);
}

.release-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(244, 67, 54, 0.5);
}

.party-swap-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

@media (max-width: 1200px) {
    .game-container {
        flex-direction: column;
        height: auto;
    }

    .sidebar {
        width: 100%;
        max-height: 400px;
    }
}

/* 繝｢繝ｳ繧ｹ繧ｿ繝ｼ蝗ｳ髑・*/
.dex-content {
    max-width: 900px;
    height: 80vh;
    display: flex;
    flex-direction: column;
    position: relative;
    background: rgba(30, 30, 50, 0.95);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(79, 195, 247, 0.3);
    animation: slideUp 0.3s ease;
}

.dex-stats {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 10px;
    font-size: 14px;
    color: #b0b0b0;
}

.dex-container {
    flex: 1;
    display: flex;
    gap: 20px;
    overflow: hidden;
    margin-top: 20px;
}

.dex-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 12px;
    overflow-y: auto;
    padding-right: 10px;
}

.dex-card {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    aspect-ratio: 1;
}

.dex-card:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.1);
}

.dex-card.captured {
    border-color: #4fc3f7;
    background: rgba(79, 195, 247, 0.1);
}

.dex-card.seen {
    border-color: #b0b0b0;
}

.dex-card.unknown {
    opacity: 0.5;
}

.dex-emoji {
    font-size: 32px;
    margin-bottom: 5px;
}

.dex-emoji.grayscale {
    filter: grayscale(100%);
    opacity: 0.7;
}

.dex-name {
    font-size: 12px;
    font-weight: 700;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

.dex-rarity {
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    margin-top: 4px;
    font-weight: 700;
}

.dex-rarity.common {
    color: #b0b0b0;
    background: rgba(176, 176, 176, 0.2);
}

.dex-rarity.uncommon {
    color: #4caf50;
    background: rgba(76, 175, 80, 0.2);
}

.dex-rarity.rare {
    color: #2196f3;
    background: rgba(33, 150, 243, 0.2);
}

.dex-rarity.legendary {
    color: #ffc107;
    background: rgba(255, 193, 7, 0.2);
}

.dex-status {
    font-size: 10px;
    color: #b0b0b0;
    margin-top: 4px;
}

.dex-detail-view {
    width: 300px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    padding: 20px;
    overflow-y: auto;
}

.detail-placeholder {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #808080;
    font-style: italic;
}

.detail-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.detail-emoji {
    font-size: 48px;
}

.detail-info h3 {
    font-size: 20px;
    margin-bottom: 5px;
    color: #e0e0e0;
}

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

.rarity-badge.common {
    background: #757575;
    color: white;
}

.rarity-badge.uncommon {
    background: #388e3c;
    color: white;
}

.rarity-badge.rare {
    background: #1976d2;
    color: white;
}

.rarity-badge.legendary {
    background: #ffa000;
    color: black;
}

.rarity-badge.unknown {
    background: #424242;
    color: #9e9e9e;
}

.detail-stats {
    margin-bottom: 20px;
}

.detail-stats .stat-row {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.detail-skills {
    margin-bottom: 20px;
}

.detail-skills h4 {
    font-size: 14px;
    color: #4fc3f7;
    margin-bottom: 10px;
}

.detail-skills ul {
    list-style: none;
    padding: 0;
}

.detail-skills li {
    font-size: 12px;
    margin-bottom: 5px;
    padding-left: 10px;
    border-left: 2px solid #4fc3f7;
}

.detail-desc {
    font-size: 12px;
    color: #b0b0b0;
    line-height: 1.5;
}

.close-btn {
    position: absolute;
    top: 30px;
    right: 30px;
    background: none;
    border: none;
    color: #b0b0b0;
    font-size: 24px;
    cursor: pointer;
    transition: color 0.2s;
}

.close-btn:hover {
    color: white;
}

/* ランキングシステム */
.ranking-content,
.score-submit-content {
    background: rgba(30, 30, 50, 0.95);
    border-radius: 16px;
    padding: 24px;
    max-width: 600px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(79, 195, 247, 0.3);
    animation: slideUp 0.3s ease;
    position: relative;
}

.ranking-content .modal-header,
.score-submit-content .modal-header {
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(79, 195, 247, 0.3);
}

.ranking-content h2,
.score-submit-content h2 {
    font-size: 24px;
    color: #4fc3f7;
    margin-bottom: 8px;
}

.week-info {
    font-size: 12px;
    color: #b0b0b0;
}

.ranking-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

.ranking-entry {
    display: grid;
    grid-template-columns: 40px 1fr 100px 80px;
    gap: 12px;
    align-items: center;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border-left: 3px solid rgba(79, 195, 247, 0.3);
    transition: all 0.2s ease;
}

.ranking-entry:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(2px);
}

.ranking-entry.rank-1 {
    border-left-color: #ffd700;
    background: rgba(255, 215, 0, 0.1);
}

.ranking-entry.rank-2 {
    border-left-color: #c0c0c0;
    background: rgba(192, 192, 192, 0.1);
}

.ranking-entry.rank-3 {
    border-left-color: #cd7f32;
    background: rgba(205, 127, 50, 0.1);
}

.ranking-rank {
    font-size: 18px;
    font-weight: 700;
    color: #4fc3f7;
    text-align: center;
}

.rank-1 .ranking-rank {
    color: #ffd700;
}

.rank-2 .ranking-rank {
    color: #c0c0c0;
}

.rank-3 .ranking-rank {
    color: #cd7f32;
}

.ranking-nickname {
    font-size: 16px;
    font-weight: 600;
    color: #e0e0e0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ranking-score {
    font-size: 16px;
    font-weight: 700;
    color: #4fc3f7;
    text-align: right;
}

.ranking-date {
    font-size: 11px;
    color: #808080;
    text-align: right;
}

.empty-message {
    text-align: center;
    color: #808080;
    padding: 40px 20px;
    font-style: italic;
}

.submit-form {
    padding: 20px 0;
}

.submit-form label {
    display: block;
    margin-bottom: 8px;
    color: #b0b0b0;
    font-size: 14px;
}

.submit-form input[type='text'] {
    width: 100%;
    padding: 12px;
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(79, 195, 247, 0.3);
    border-radius: 8px;
    color: #e0e0e0;
    font-size: 16px;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.submit-form input[type='text']:focus {
    outline: none;
    border-color: #4fc3f7;
}

.submit-buttons {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.submit-btn,
.cancel-btn {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

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

.cancel-btn {
    background: rgba(255, 255, 255, 0.1);
    color: #e0e0e0;
}

.cancel-btn:hover {
    background: rgba(255, 255, 255, 0.15);
}

.error-message {
    margin-top: 12px;
    padding: 10px;
    background: rgba(244, 67, 54, 0.2);
    border-left: 3px solid #f44336;
    border-radius: 4px;
    color: #ff6b6b;
    font-size: 13px;
    min-height: 20px;
}

/* HP Bar Colors */
.progress-fill.high {
    background: #4caf50 !important;
    box-shadow: 0 0 8px rgba(76, 175, 80, 0.5) !important;
}

.progress-fill.mid {
    background: #ffeb3b !important;
    box-shadow: 0 0 8px rgba(255, 235, 59, 0.5) !important;
}

.progress-fill.low {
    background: #f44336 !important;
    box-shadow: 0 0 8px rgba(244, 67, 54, 0.5) !important;
}