/* === RPS Royal — Dark Gaming Theme === */

:root {
    --bg-primary: #0f0f1a;
    --bg-secondary: #1a1a2e;
    --bg-card: #16213e;
    --bg-input: #1a1a2e;
    --text-primary: #e0e0e0;
    --text-secondary: #a0a0b0;
    --text-muted: #666680;
    --accent: #00d4ff;
    --accent-hover: #00b8e6;
    --danger: #ff4757;
    --success: #2ed573;
    --warning: #ffa502;
    --gold: #ffd700;
    --blue: #3498db;
    --green: #2ecc71;
    --purple: #9b59b6;
    --border-color: #2a2a4a;
    --hp-high: #2ed573;
    --hp-mid: #ffa502;
    --hp-low: #ff4757;
    --phase-preparation: #e6a817;
    --phase-gameplay: #2ecc71;
    --phase-calculation: #9b59b6;
    --phase-boon: #e67e22;
}

*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    font-family: 'Segoe UI', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-primary);
    margin-top: 0;
}

h1:focus { outline: none; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }

/* === Buttons === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.5rem 1.2rem;
    border: 1px solid transparent;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    background: var(--bg-card);
    color: var(--text-primary);
}

.btn:hover { filter: brightness(1.2); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; filter: none; }

.btn-primary {
    background: var(--accent);
    color: #000;
    border-color: var(--accent);
}
.btn-primary:hover { background: var(--accent-hover); }

.btn-danger {
    background: var(--danger);
    color: #fff;
    border-color: var(--danger);
}

.btn-success {
    background: var(--success);
    color: #000;
    border-color: var(--success);
}

.btn-warning {
    background: var(--warning);
    color: #000;
    border-color: var(--warning);
}

.btn-outline {
    background: transparent;
    border-color: var(--border-color);
    color: var(--text-primary);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

.btn-sm { padding: 0.3rem 0.8rem; font-size: 0.8rem; }
.btn-lg { padding: 0.7rem 1.8rem; font-size: 1.1rem; }

.btn:focus, .btn:active:focus, .form-control:focus {
    box-shadow: 0 0 0 2px rgba(0, 212, 255, 0.3);
    outline: none;
}

/* === Forms === */
.form-control {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.6rem 0.8rem;
    border-radius: 6px;
    font-size: 0.9rem;
    width: 100%;
    transition: border-color 0.2s;
}

.form-control:focus {
    border-color: var(--accent);
    background: var(--bg-input);
    color: var(--text-primary);
}

.form-control::placeholder { color: var(--text-muted); }

.form-group { margin-bottom: 1rem; }
.form-group label {
    display: block;
    margin-bottom: 0.3rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.valid.modified:not([type=checkbox]) { outline: 1px solid var(--success); }
.invalid { outline: 1px solid var(--danger); }
.validation-message { color: var(--danger); font-size: 0.8rem; }

/* === Cards & Panels === */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 1.2rem;
}

.panel {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
}

/* === HP Bar === */
.hp-bar-container {
    width: 100%;
    height: 12px;
    background: #1a1a2e;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
}

.hp-bar-fill {
    height: 100%;
    border-radius: 6px;
    transition: width 0.5s ease, background-color 0.5s ease;
}

.hp-bar-fill.hp-high { background: linear-gradient(90deg, #2ed573, #7bed9f); }
.hp-bar-fill.hp-mid { background: linear-gradient(90deg, #ffa502, #eccc68); }
.hp-bar-fill.hp-low { background: linear-gradient(90deg, #ff4757, #ff6b81); }

.hp-text {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-align: center;
    margin-top: 2px;
}

/* === Hand Icons === */
.hand-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.2rem;
    height: 2.2rem;
    object-fit: contain;
}

.hand-icon.large {
    width: 3.5rem;
    height: 3.5rem;
}

/* === Phase Colors === */
.phase-preparation { color: var(--phase-preparation); }
.phase-gameplay { color: var(--phase-gameplay); }
.phase-calculation { color: var(--phase-calculation); }
.phase-boon { color: var(--phase-boon); }

.phase-badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.phase-badge.preparation { background: rgba(230, 168, 23, 0.2); color: var(--phase-preparation); }
.phase-badge.gameplay { background: rgba(46, 204, 113, 0.2); color: var(--phase-gameplay); }
.phase-badge.calculation { background: rgba(155, 89, 182, 0.2); color: var(--phase-calculation); }
.phase-badge.boon { background: rgba(230, 126, 34, 0.2); color: var(--phase-boon); }

/* === Phase Timer === */
.phase-timer {
    text-align: center;
    padding: 0.8rem;
    border-radius: 8px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
}

.phase-timer .timer-value {
    font-size: 2rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.phase-timer .timer-bar {
    height: 4px;
    background: var(--bg-primary);
    border-radius: 2px;
    overflow: hidden;
    margin-top: 0.5rem;
}

.phase-timer .timer-bar-fill {
    height: 100%;
    border-radius: 2px;
    transition: width 1s linear;
}

.timer-warning .timer-value { color: var(--warning); }
.timer-critical .timer-value { color: var(--danger); animation: pulse 0.8s ease-in-out infinite; }

/* === Item Card === */
.item-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.8rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    transition: border-color 0.2s;
}

.item-card:hover { border-color: var(--accent); }
.item-card.disabled { opacity: 0.5; }

.item-card-header {
    display: flex;
    gap: 0.6rem;
    align-items: center;
}

.item-card-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.item-icon {
    width: 64px;
    height: 64px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
}

.item-card .item-name { font-weight: 600; font-size: 0.9rem; }
.item-card .item-cost { color: var(--gold); font-size: 0.85rem; }
.item-card .item-desc { color: var(--text-secondary); font-size: 0.8rem; line-height: 1.3; }

.category-badge {
    display: inline-block;
    padding: 0.1rem 0.4rem;
    border-radius: 3px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
}

.category-badge.offensive { background: rgba(255, 71, 87, 0.2); color: var(--danger); }
.category-badge.defensive { background: rgba(46, 204, 113, 0.2); color: var(--success); }
.category-badge.intel { background: rgba(52, 152, 219, 0.2); color: var(--blue); }
.category-badge.disruption { background: rgba(155, 89, 182, 0.2); color: var(--purple); }

.timing-badge {
    display: inline-block;
    padding: 0.1rem 0.4rem;
    border-radius: 3px;
    font-size: 0.65rem;
    font-weight: 600;
    white-space: nowrap;
}
.timing-badge.before-round { background: rgba(241, 196, 15, 0.2); color: #f1c40f; }
.timing-badge.after-round { background: rgba(149, 165, 166, 0.2); color: #95a5a6; }
.timing-badge.instant { background: rgba(26, 188, 156, 0.2); color: #1abc9c; }

/* === Player Card === */
.player-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.8rem;
    min-width: 150px;
    position: relative;
    overflow: visible;
}

.player-card.dead { opacity: 0.5; }
.player-card.current-user { border-color: var(--accent); }
.player-card.submitted, .player-card.ready { border-color: var(--success); background: rgba(46, 204, 113, 0.08); }

.submitted-check {
    color: var(--success);
    font-weight: 700;
    margin-left: 0.3rem;
}

.player-card .player-name {
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.bot-badge {
    display: inline-block;
    padding: 0.1rem 0.3rem;
    border-radius: 3px;
    font-size: 0.65rem;
    font-weight: 600;
    background: rgba(155, 89, 182, 0.3);
    color: var(--purple);
}

/* === Self-Buff Chips on Player Card === */
.self-buff-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin-top: 0.35rem;
}

.self-buff-chip {
    display: inline-block;
    padding: 0.1rem 0.4rem;
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--success);
    background: rgba(46, 204, 113, 0.15);
    border: 1px solid var(--success);
    border-radius: 8px;
}

/* === Held Items on Player Card === */
.held-items-row {
    display: flex;
    gap: 0.25rem;
    margin-top: 0.35rem;
    flex-wrap: wrap;
}

.held-item-icon {
    position: relative;
    width: 22px;
    height: 22px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: default;
}

.held-item-icon img {
    width: 16px;
    height: 16px;
    object-fit: contain;
}

.held-item-icon:hover {
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.12);
}

.held-item-icon[title] {
    position: relative;
}

/* === Inventory Bar === */
.inventory-bar {
    display: flex;
    gap: 0.75rem;
    align-items: stretch;
    justify-content: center;
}

.inventory-slot {
    width: 160px;
    min-height: 120px;
    border: 1px dashed var(--border-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: var(--text-muted);
    background: var(--bg-primary);
}

.inventory-slot.filled {
    border-style: solid;
    border-color: var(--accent);
    background: var(--bg-card);
    color: var(--text-primary);
    font-size: 0.75rem;
    text-align: center;
    padding: 0.5rem;
    cursor: pointer;
    flex-direction: column;
}

.inventory-item-name {
    font-weight: 600;
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

.inventory-item-desc {
    font-size: 0.7rem;
    color: var(--text-secondary);
    margin-top: 0.2rem;
    line-height: 1.3;
}

.inventory-icon {
    width: 36px;
    height: 36px;
    border-radius: 4px;
    object-fit: cover;
}

/* === Player Grid === */
.player-grid {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    justify-content: center;
}

/* === Shop Grid === */
.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.8rem;
}

/* === Boon Grid === */
.boon-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    justify-items: center;
}

.boon-card {
    background: var(--bg-card);
    border: 2px solid rgba(230, 126, 34, 0.3);
    border-radius: 10px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.boon-card:hover {
    border-color: var(--phase-boon);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(230, 126, 34, 0.2);
}

.boon-free-label {
    color: var(--phase-boon);
    font-weight: 600;
    font-size: 0.85rem;
}

.boon-selected-message {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--phase-boon);
    margin-bottom: 0.5rem;
}

/* === Category Filter === */
.category-filter {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.category-filter .btn.active {
    border-color: var(--accent);
    color: var(--accent);
}

/* === Hand Selector (small, used elsewhere) === */
.hand-selector {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.hand-btn {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    background: var(--bg-card);
    cursor: pointer;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.hand-btn-img {
    width: 2rem;
    height: 2rem;
    object-fit: contain;
}

.hand-btn:hover { border-color: var(--accent); transform: scale(1.1); }
.hand-btn.selected { border-color: var(--accent); background: rgba(0, 212, 255, 0.15); box-shadow: 0 0 10px rgba(0, 212, 255, 0.3); }

/* === Fullscreen Matchup (Gameplay Phase) === */
.matchup-fullscreen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 50vh;
    gap: 1.2rem;
    text-align: center;
}

.matchup-progress {
    font-size: 0.85rem;
    color: var(--text-muted);
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.debuff-split {
    display: flex;
    gap: 1.5rem;
    width: 80%;
    max-width: 400px;
}

.debuff-col {
    flex: 1;
    min-width: 0;
    text-align: center;
}

.debuff-col-label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 0.3rem;
}

.debuff-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    justify-content: center;
}

.debuff-chip {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--danger);
    background: rgba(231, 76, 60, 0.15);
    border: 1px solid var(--danger);
    border-radius: 12px;
}

.debuff-chip.buff {
    color: var(--success);
    background: rgba(46, 204, 113, 0.15);
    border-color: var(--success);
}

.matchup-vs-label {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--phase-gameplay);
    letter-spacing: 0.3em;
    text-transform: uppercase;
}

.matchup-opponent-name {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
}

.matchup-opponent-hp {
    width: 60%;
    max-width: 300px;
}

.matchup-hand-buttons {
    display: flex;
    gap: 1.5rem;
    margin-top: 1rem;
}

.hand-btn-lg {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    width: 6rem;
    height: 9rem;
    border-radius: 1rem;
    border: 3px solid var(--border-color);
    background: var(--bg-card);
    cursor: pointer;
    transition: all 0.2s;
    padding: 0.6rem 0;
}

.hand-btn-lg-img {
    width: 2.5rem;
    height: 2.5rem;
    object-fit: contain;
}

.hand-btn-lg-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
}

.hand-btn-lg:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0, 212, 255, 0.2);
}

.hand-btn-lg.selected {
    border-color: var(--accent);
    background: rgba(0, 212, 255, 0.12);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

.hand-btn-lg.selected .hand-btn-lg-label {
    color: var(--accent);
}

.hand-btn-lg-dmg {
    font-size: 0.6rem;
    color: var(--text-muted);
    font-weight: 500;
    letter-spacing: 0.03em;
}

.hand-btn-lg.selected .hand-btn-lg-dmg {
    color: var(--accent);
}

.hand-btn-xp-track {
    width: 80%;
    height: 3px;
    background: var(--bg-primary);
    border-radius: 2px;
    overflow: hidden;
}

.hand-btn-xp-fill {
    height: 100%;
    background: var(--accent);
    border-radius: 2px;
    transition: width 0.3s ease;
}

/* === Intel Reveal Badge === */
.intel-reveal-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.8rem;
    border-radius: 8px;
    background: rgba(52, 152, 219, 0.2);
    border: 1px solid var(--blue);
    animation: pulse 1.5s ease-in-out infinite;
}

.intel-reveal-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--blue);
}

.intel-reveal-hand {
    width: 1.5rem;
    height: 1.5rem;
    object-fit: contain;
}

.intel-reveal-text {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--blue);
}

/* === Matchup Stats Panel (Gameplay Phase) === */
.matchup-stats-panel {
    width: 70%;
    max-width: 320px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 0.6rem;
    padding: 0.8rem 1rem;
}

.matchup-stat-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.25rem 0;
}

.matchup-stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.matchup-stat-value {
    font-size: 0.9rem;
    color: var(--text-primary);
    font-weight: 600;
}

.matchup-stat-divider {
    border-top: 1px solid var(--border-color);
    margin: 0.4rem 0;
}

.hand-history-split {
    display: flex;
    gap: 1rem;
    width: 100%;
}

.hand-history-col {
    flex: 1;
    min-width: 0;
}

.hand-history-heading {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.3rem;
}

.hand-stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hand-stat-img {
    width: 1.5rem;
    height: 1.5rem;
    object-fit: contain;
}

.hand-stat-bar-track {
    flex: 1;
    height: 6px;
    background: var(--bg-primary);
    border-radius: 3px;
    overflow: hidden;
}

.hand-stat-bar-fill {
    height: 100%;
    background: var(--accent);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.hand-stat-pct {
    font-size: 0.75rem;
    color: var(--text-muted);
    width: 2.5rem;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

/* === Match Result === */
.matchup-row {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.matchup-row:last-child { border-bottom: none; }

.result-win { color: var(--success); font-weight: 600; }
.result-loss { color: var(--danger); font-weight: 600; }
.result-tie { color: var(--warning); font-weight: 600; }
.result-blocked { color: var(--blue); font-weight: 600; }
.gold-earned { color: var(--gold); font-weight: 600; }

/* === Game Over === */
.game-over-screen {
    text-align: center;
    padding: 2rem;
}

.game-over-screen .winner-name {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 1rem;
}

.round-label {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.05em;
    padding: 0.8rem;
    border-radius: 8px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
}

.round-results-heading {
    color: var(--text-primary);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-align: center;
}

.standings-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

.standings-table th, .standings-table td {
    padding: 0.6rem;
    text-align: left;
    border-bottom: 1px solid #3a3a5a;
}

.standings-table td {
    color: var(--text-primary);
}

.standings-table th {
    color: var(--text-primary);
    font-size: 0.8rem;
    text-transform: uppercase;
    border-bottom: 2px solid var(--accent);
}

/* === Modal / Target Selector === */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

.modal-content {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    min-width: 300px;
    max-width: 500px;
}

.target-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
}

.target-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    cursor: pointer;
    transition: border-color 0.2s;
}

.target-option:hover { border-color: var(--accent); }

/* === Auth Forms === */
.auth-container {
    max-width: 400px;
    margin: 3rem auto;
    padding: 2rem;
}

.auth-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 1.5rem;
}

.auth-tab {
    flex: 1;
    padding: 0.6rem;
    text-align: center;
    cursor: pointer;
    border-bottom: 2px solid var(--border-color);
    color: var(--text-secondary);
    transition: all 0.2s;
    background: none;
    border-top: none;
    border-left: none;
    border-right: none;
    font-size: 0.95rem;
}

.auth-tab.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

.error-message {
    background: rgba(255, 71, 87, 0.15);
    border: 1px solid var(--danger);
    border-radius: 6px;
    padding: 0.6rem 0.8rem;
    color: var(--danger);
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

/* === Lobby === */
.lobby-container {
    max-width: 600px;
    margin: 2rem auto;
    padding: 1rem;
}

.lobby-code {
    font-family: monospace;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: var(--accent);
    background: var(--bg-card);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    display: inline-block;
    cursor: pointer;
}

.lobby-player-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.lobby-player-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 0.8rem;
    border-bottom: 1px solid var(--border-color);
}

.lobby-player-item:last-child { border-bottom: none; }

/* === Gold Display === */
.gold-display {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    color: var(--gold);
    font-weight: 600;
    padding: 0.8rem;
    border-radius: 8px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
}

.gold-display-sm {
    color: var(--gold);
    font-weight: 600;
}

/* === Notifications === */
.notification {
    padding: 0.5rem 0.8rem;
    border-radius: 6px;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    animation: slideIn 0.3s ease;
}

.notification.info { background: rgba(52, 152, 219, 0.2); border: 1px solid var(--blue); }
.notification.warning { background: rgba(255, 165, 2, 0.2); border: 1px solid var(--warning); }

/* === Submitted Indicator === */
.submitted-indicator {
    color: var(--success);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

/* === Defence Level === */
.defence-indicator {
    display: inline-flex;
    gap: 2px;
}

.defence-pip {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--border-color);
}

.defence-pip.active {
    background: var(--blue);
}

.shield-charge {
    font-size: 0.6rem;
    font-weight: 700;
    color: var(--blue);
    background: rgba(52, 152, 219, 0.2);
    border: 1px solid var(--blue);
    border-radius: 3px;
    padding: 0 0.2rem;
    margin-left: 0.2rem;
    line-height: 1.2;
}

.shield-charge::before {
    content: "\1F6E1";
    font-size: 0.55rem;
    margin-right: 0.1rem;
}

/* === HP Change Float === */
@keyframes floatUpFade {
    0%   { opacity: 1; transform: translateX(-50%) translateY(0); }
    100% { opacity: 0; transform: translateX(-50%) translateY(-40px); }
}

.hp-change-float {
    position: absolute;
    top: -0.2rem;
    left: 50%;
    transform: translateX(-50%);
    font-weight: 800;
    font-size: 1.6rem;
    pointer-events: none;
    animation: floatUpFade 1.5s ease-out forwards;
    z-index: 10;
    text-shadow: 0 0 8px currentColor, 0 1px 4px rgba(0, 0, 0, 0.8);
}

.hp-change-float.damage { color: #ff5a6a; }
.hp-change-float.heal   { color: #4aea8b; }

/* === Animations === */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-4px); }
    75% { transform: translateX(4px); }
}

@keyframes hpChange {
    0% { filter: brightness(1); }
    50% { filter: brightness(1.5); }
    100% { filter: brightness(1); }
}

@keyframes slideOutLeft {
    from { opacity: 1; transform: translateX(0); }
    to   { opacity: 0; transform: translateX(-60px); }
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(60px); }
    to   { opacity: 1; transform: translateX(0); }
}

.animate-fade-in { animation: fadeIn 0.3s ease; }
.animate-slide-in { animation: slideIn 0.3s ease; }
.matchup-slide-in { animation: slideInRight 0.3s ease forwards; }
.matchup-slide-out { animation: slideOutLeft 0.25s ease forwards; }

/* === Utility === */
.text-center { text-align: center; }
.text-muted { color: var(--text-secondary); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.d-flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.align-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.w-100 { width: 100%; }

/* === Blazor Error UI === */
#blazor-error-ui {
    background: var(--bg-card);
    color: var(--danger);
    bottom: 0;
    box-shadow: 0 -1px 4px rgba(0, 0, 0, 0.4);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

.blazor-error-boundary {
    background: var(--danger);
    padding: 1rem;
    color: white;
    border-radius: 6px;
}

.blazor-error-boundary::after { content: "An error has occurred."; }

/* === Loading Progress === */
.loading-progress {
    position: absolute;
    display: block;
    width: 8rem;
    height: 8rem;
    inset: 20vh 0 auto 0;
    margin: 0 auto;
}

.loading-progress circle {
    fill: none;
    stroke: var(--border-color);
    stroke-width: 0.6rem;
    transform-origin: 50% 50%;
    transform: rotate(-90deg);
}

.loading-progress circle:last-child {
    stroke: var(--accent);
    stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
    transition: stroke-dasharray 0.05s ease-in-out;
}

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
    color: var(--text-primary);
}

.loading-progress-text:after {
    content: var(--blazor-load-percentage-text, "Loading");
}

/* === Admin Page === */
.admin-page {
    max-width: 800px;
    margin: 2rem auto;
    padding: 1rem;
}

.admin-section {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.admin-section h2 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--accent);
}

.admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.admin-field {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.admin-field label {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.admin-field input[type="number"] {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 0.5rem 0.7rem;
    color: var(--text-primary);
    font-size: 0.9rem;
    width: 100%;
}

.admin-field input[type="number"]:focus {
    outline: none;
    border-color: var(--accent);
}

.admin-message {
    padding: 0.6rem 0.8rem;
    border-radius: 6px;
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.admin-message.success {
    background: rgba(46, 213, 115, 0.15);
    border: 1px solid var(--success);
    color: var(--success);
}

.admin-message.error {
    background: rgba(255, 71, 87, 0.15);
    border: 1px solid var(--danger);
    color: var(--danger);
}

.admin-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.admin-tab {
    padding: 0.7rem 1.5rem;
    border: none;
    background: none;
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border-bottom: 2px solid transparent;
}

.admin-tab:hover {
    color: var(--text-primary);
    background: rgba(0, 212, 255, 0.05);
}

.admin-tab.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
    background: rgba(0, 212, 255, 0.08);
}

.admin-parts-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    padding: 1rem 0;
}

.admin-part-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-card);
    min-width: 80px;
    position: relative;
}

.admin-part-card svg {
    background: var(--bg-primary);
    border-radius: 4px;
}

.admin-part-name {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-align: center;
    max-width: 70px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-part-badge {
    font-size: 0.6rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.btn-icon-danger {
    background: none;
    border: 1px solid var(--danger);
    color: var(--danger);
    border-radius: 4px;
    padding: 0.1rem 0.4rem;
    font-size: 0.7rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-icon-danger:hover {
    background: var(--danger);
    color: white;
}

.admin-upload-area {
    margin-top: 1rem;
    padding: 1rem;
    border: 2px dashed var(--border-color);
    border-radius: 8px;
}

.admin-upload-area h3 {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.8rem;
}

.admin-upload-area input[type="file"] {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.admin-staged-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin: 1rem 0;
}

.admin-staged-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 6px;
}

.admin-staged-item svg {
    flex-shrink: 0;
    background: var(--bg-primary);
    border-radius: 4px;
}

.admin-staged-item input[type="text"] {
    flex: 1;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 0.3rem 0.5rem;
    color: var(--text-primary);
    font-size: 0.85rem;
}

.admin-staged-item input[type="text"]:focus {
    outline: none;
    border-color: var(--accent);
}

/* === Polygon Battle Arena === */
.arena-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.arena-container {
    position: relative;
    width: 100%;
    max-width: 500px;
    aspect-ratio: 1 / 1;
    margin: 0 auto 1.5rem;
    overflow: visible;
    animation: arenaFadeIn 0.5s ease both;
}

.arena-lines {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.arena-line {
    stroke: var(--border-color);
    stroke-width: 0.5;
    opacity: 0.6;
    stroke-dasharray: 150;
    stroke-dashoffset: 150;
    animation: arenaLineDraw 0.5s ease forwards;
}

.arena-vertex {
    position: absolute;
    transform: translate(-50%, -50%);
    z-index: 2;
    opacity: 0;
    animation: arenaFadeIn 0.3s ease 0.3s both;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    padding: 0.25rem 0.5rem;
    white-space: nowrap;
}

.arena-vertex.is-me {
    border-color: var(--accent);
}

.arena-vertex-name {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1;
}

.arena-vertex.is-me .arena-vertex-name {
    color: var(--accent);
}

.arena-vertex-hp {
    width: 100%;
    min-width: 40px;
    height: 4px;
    background: var(--bg-primary);
    border-radius: 2px;
    overflow: hidden;
}

.arena-vertex-hp-fill {
    height: 100%;
    border-radius: 2px;
    transition: width 0.5s ease;
}

.arena-vertex-hp-fill.hp-high { background: var(--hp-high); }
.arena-vertex-hp-fill.hp-mid  { background: var(--hp-mid); }
.arena-vertex-hp-fill.hp-low  { background: var(--hp-low); }

.arena-hand {
    position: absolute;
    width: 2rem;
    height: 2rem;
    object-fit: contain;
    z-index: 3;
    transform: translate(-50%, -50%);
    opacity: 0;
}

.arena-damage {
    position: absolute;
    z-index: 4;
    transform: translate(-50%, -50%);
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--danger);
    opacity: 0;
    text-shadow: 0 0 8px var(--danger), 0 1px 4px rgba(0, 0, 0, 0.8);
    pointer-events: none;
}

.arena-blocked {
    position: absolute;
    z-index: 4;
    transform: translate(-50%, -50%);
    font-weight: 800;
    font-size: 1rem;
    color: var(--blue);
    opacity: 0;
    text-shadow: 0 0 8px var(--blue), 0 1px 4px rgba(0, 0, 0, 0.8);
    pointer-events: none;
}

.arena-blocked::before {
    content: "\1F6E1 ";
}

.arena-heal-float {
    position: absolute;
    z-index: 4;
    transform: translate(-50%, -50%);
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--success);
    opacity: 0;
    text-shadow: 0 0 8px var(--success), 0 1px 4px rgba(0, 0, 0, 0.8);
    pointer-events: none;
}

.arena-thorns-float {
    position: absolute;
    z-index: 4;
    transform: translate(-50%, -50%);
    font-weight: 800;
    font-size: 0.9rem;
    color: var(--warning);
    opacity: 0;
    text-shadow: 0 0 8px var(--warning), 0 1px 4px rgba(0, 0, 0, 0.8);
    pointer-events: none;
}

.arena-gold-float {
    position: absolute;
    z-index: 4;
    transform: translate(-50%, -50%);
    font-weight: 800;
    font-size: 0.9rem;
    color: var(--gold);
    opacity: 0;
    text-shadow: 0 0 8px var(--gold), 0 1px 4px rgba(0, 0, 0, 0.8);
    pointer-events: none;
}

.arena-vertex.arena-revive-pulse {
    animation: arenaFadeIn 0.3s ease 0.3s both, revivePulse 1.0s ease var(--revive-delay, 2s) both;
}

@keyframes revivePulse {
    0%   { box-shadow: 0 0 0 0 rgba(46, 204, 113, 0); }
    30%  { box-shadow: 0 0 20px 6px rgba(46, 204, 113, 0.6); }
    60%  { box-shadow: 0 0 10px 3px rgba(46, 204, 113, 0.3); }
    100% { box-shadow: 0 0 0 0 rgba(46, 204, 113, 0); }
}

@keyframes arenaFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes arenaLineDraw {
    to { stroke-dashoffset: 0; }
}

@keyframes arenaDmgFloat {
    0%   { opacity: 0; transform: translate(-50%,-50%) translateY(0); }
    20%  { opacity: 1; transform: translate(-50%,-50%) translateY(0); }
    100% { opacity: 0; transform: translate(-50%,-50%) translateY(-30px); }
}

@keyframes arenaHpDrain {
    from { width: var(--hp-before, 100%); }
    to { width: var(--hp-after, 100%); }
}

.arena-panel-delayed { opacity: 0; animation: arenaFadeIn 0.4s ease var(--delay, 0s) both; }

/* === Avatar === */
.avatar-display {
    border-radius: 50%;
    background: transparent;
    overflow: hidden;
    flex-shrink: 0;
    vertical-align: middle;
}

/* === Profile Page === */
.profile-container {
    max-width: 700px;
    margin: 2rem auto;
    padding: 1rem;
}

/* === Avatar Builder === */
.avatar-builder {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.avatar-builder-preview {
    display: flex;
    justify-content: center;
    padding: 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
}

.avatar-builder-controls {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
}

.avatar-builder-tabs {
    display: flex;
    flex-wrap: wrap;
    border-bottom: 1px solid var(--border-color);
}

.avatar-tab {
    flex: 1;
    min-width: 60px;
    padding: 0.6rem 0.4rem;
    text-align: center;
    cursor: pointer;
    border: none;
    background: none;
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.2s;
}

.avatar-tab:hover {
    color: var(--text-primary);
    background: rgba(0, 212, 255, 0.05);
}

.avatar-tab.active {
    color: var(--accent);
    border-bottom: 2px solid var(--accent);
    background: rgba(0, 212, 255, 0.08);
}

.avatar-builder-panel {
    padding: 1rem;
}

.avatar-builder-panel h4 {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.6rem;
    margin-top: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.avatar-builder-panel h4:first-child {
    margin-top: 0;
}

.avatar-part-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.8rem;
}

.avatar-part-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    padding: 0.5rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-card);
    cursor: pointer;
    transition: all 0.2s;
    min-width: 72px;
}

.avatar-part-option span {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.avatar-part-option:hover {
    border-color: var(--accent);
}

.avatar-part-option.selected {
    border-color: var(--accent);
    background: rgba(0, 212, 255, 0.1);
    box-shadow: 0 0 8px rgba(0, 212, 255, 0.2);
}

.avatar-part-option.selected span {
    color: var(--accent);
}

/* === Color Palette === */
.color-palette {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.5rem;
}

.color-swatch {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    cursor: pointer;
    transition: all 0.2s;
    padding: 0;
}

.color-swatch:hover {
    transform: scale(1.15);
    border-color: var(--text-primary);
}

.color-swatch.selected {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px var(--accent);
    transform: scale(1.15);
}

.avatar-builder-actions {
    display: flex;
    gap: 0.8rem;
    justify-content: center;
}

/* === Combat Log Overlay === */
.combat-log-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 150;
    display: flex;
    justify-content: flex-end;
}

.combat-log-panel {
    width: 420px;
    max-width: 100%;
    height: 100%;
    background: var(--bg-secondary);
    border-left: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    animation: combatLogSlideIn 0.25s ease;
}

@keyframes combatLogSlideIn {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

.combat-log-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.8rem 1rem;
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
}

.combat-log-header h3 {
    margin: 0;
    font-size: 1rem;
    color: var(--text-primary);
}

.combat-log-filters {
    display: flex;
    gap: 0.4rem;
    padding: 0.6rem 1rem;
    border-bottom: 1px solid var(--border-color);
    overflow-x: auto;
    flex-shrink: 0;
}

.filter-chip {
    padding: 0.25rem 0.7rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
}

.filter-chip:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.filter-chip.active {
    background: rgba(0, 212, 255, 0.15);
    border-color: var(--accent);
    color: var(--accent);
}

.combat-log-entries {
    flex: 1;
    overflow-y: auto;
    padding: 0.5rem 0;
}

.combat-log-entry {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    font-size: 0.8rem;
    line-height: 1.4;
    border-bottom: 1px solid rgba(42, 42, 74, 0.4);
}

.combat-log-entry:hover {
    background: rgba(255, 255, 255, 0.03);
}

.log-round-badge {
    flex-shrink: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 0.1rem 0.4rem;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
}

.log-timestamp {
    flex-shrink: 0;
    font-size: 0.7rem;
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
    min-width: 52px;
}

.log-message {
    flex: 1;
    min-width: 0;
    color: var(--text-primary);
}

.log-matchup-detail {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    flex-wrap: wrap;
}

.log-hand-icon {
    width: 1.2rem;
    height: 1.2rem;
    object-fit: contain;
    vertical-align: middle;
}

.log-damage {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Combat log entry accent colors */
.combat-log-entry.danger { border-left: 3px solid var(--danger); }
.combat-log-entry.warning { border-left: 3px solid var(--warning); }
.combat-log-entry.info { border-left: 3px solid var(--blue); }
.combat-log-entry.success { border-left: 3px solid var(--success); }
.combat-log-entry.gold { border-left: 3px solid var(--gold); }

.combat-log-entry.danger .log-message { color: var(--danger); }
.combat-log-entry.gold .log-message { color: var(--gold); }

/* Combat Log Toggle Button */
.combat-log-toggle {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-primary);
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.combat-log-toggle:hover {
    border-color: var(--accent);
    transform: scale(1.1);
}

/* === Responsive === */
@media (max-width: 768px) {
    .combat-log-panel { width: 100%; }
    .shop-grid { grid-template-columns: 1fr; }
    .boon-grid { grid-template-columns: repeat(2, 1fr); }
    .auth-container { margin: 1rem; padding: 1rem; }
    .lobby-container { margin: 1rem; }
    .profile-container { margin: 1rem; }
    .avatar-tab { font-size: 0.7rem; min-width: 44px; padding: 0.5rem 0.2rem; }
    .avatar-part-option { min-width: 56px; }
    .color-swatch { width: 30px; height: 30px; }
    .hand-btn { width: 2.8rem; height: 2.8rem; }
    .hand-btn-lg { width: 5rem; height: 7.5rem; }
    .hand-btn-lg-img { width: 2rem; height: 2rem; }
    .matchup-hand-buttons { gap: 1rem; }
    .matchup-opponent-name { font-size: 1.5rem; }
    .matchup-opponent-hp { width: 80%; }
    .arena-container { max-width: 350px; }
    .arena-hand { width: 1.6rem; height: 1.6rem; }
    .arena-vertex { padding: 0.2rem 0.4rem; }
    .arena-vertex-name { font-size: 0.6rem; }
    .arena-vertex-hp { min-width: 30px; height: 3px; }
    .arena-damage { font-size: 1rem; }
}

@media (max-width: 480px) {
    .log-timestamp { display: none; }
    .player-grid { flex-direction: column; align-items: stretch; }
    .boon-grid { grid-template-columns: 1fr; }
    .player-card { min-width: unset; }
    .hand-btn-lg { width: 4.5rem; height: 7rem; }
    .hand-btn-lg-img { width: 1.8rem; height: 1.8rem; }
    .arena-container { max-width: 280px; }
    .arena-hand { width: 1.3rem; height: 1.3rem; }
    .arena-vertex { padding: 0.15rem 0.3rem; }
    .arena-vertex-name { font-size: 0.55rem; }
    .arena-vertex-hp { min-width: 24px; height: 2px; }
    .arena-damage { font-size: 0.85rem; }
}
