@font-face {
    font-family: 'PixelifySans';
    src: url('../fonts/PixelifySans-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}
@font-face {
    font-family: 'PixelifySans';
    src: url('../fonts/PixelifySans-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
}
@font-face {
    font-family: 'PixelifySans';
    src: url('../fonts/PixelifySans-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
}
@font-face {
    font-family: 'PixelifySans';
    src: url('../fonts/PixelifySans-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'SpaceMono';
    src: url('../fonts/SpaceMono-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}
@font-face {
    font-family: 'SpaceMono';
    src: url('../fonts/SpaceMono-Bold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
}
@font-face {
    font-family: 'PressStart2P';
    src: url('../fonts/PressStart2P-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    height: 100%;
}

body {
    font-family: 'SpaceMono', monospace;
    letter-spacing: 1px;
    background: #121212;
    color: #e8e8d3;
    line-height: 1.6;
    padding: 20px;
    padding-top: 80px;
    /*min-height: 100vh;*/
    font-size: 0.9rem;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(139, 0, 0, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(220, 20, 60, 0.05) 0%, transparent 50%);

    min-height: 100%;
    display: flex;
    flex-direction: column;
}

/* Your main content wrapper (e.g. .container or main) - must be the direct flex child that should grow */
body > .container,
body > main {
    flex: 1 0 auto;
}

.site-footer {
    flex-shrink: 0;
}

a {
    color: #f5f5dc;
    text-decoration: underline;
    transition: all 0.3s ease;
}

/* Navigation */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #1a1a1a;
    border-bottom: 2px solid #8b0000;
    z-index: 1000;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

.nav-container {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    gap: 20px;
    padding: 15px 20px;
}

.nav-link {
    font-family: 'PressStart2P', monospace;
    color: #e8e8d3;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 400;
    text-transform: uppercase;
    /*etter-spacing: 2px;*/
    padding: 8px 16px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: #dc143c;
    border-color: #dc143c;
    text-shadow: 0 0 8px rgba(220, 20, 60, 0.6);
}

/* Manage dropdown */
.nav-item-dropdown {
    position: relative;
}

.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    margin: 4px 0 0 0;
    padding: 8px 0;
    list-style: none;
    background: #2a2a2a;
    border: 2px solid #444;
    border-radius: 4px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.5);
    min-width: 180px;
    display: none;
    z-index: 1000;
}

.nav-item-dropdown:hover .nav-dropdown-menu {
    display: block;
}

.nav-dropdown-menu .nav-link {
    font-family: 'PressStart2P', monospace;
    display: block;
    padding: 10px 16px;
    border: none;
    white-space: nowrap;
}

.nav-dropdown-menu li {
    margin: 0;
}

.league-selector {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.league-select {
    font-family: 'PressStart2P', monospace;
    min-width: 220px;
    padding: 8px 10px;
    font-size: 0.9rem;
}

.league-checkboxes {
    display: grid;
    gap: 10px;
}

.league-choice {
    display: flex;
    gap: 10px;
    align-items: center;
    color: #e8e8d3;
    font-size: 0.8rem;
}

.league-choice input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #dc143c;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    margin-top: 20px;
}

header {
    text-align: center;
    margin-bottom: 40px;
    padding: 20px 0;
    border-bottom: 2px solid #8b0000;
}

.hero-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #f5f5dc;
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 10px;
    text-shadow: 1px 1px 10px #fff, 1px 1px 10px #dc2828b3;
}

.hero-hook {
    font-size: 1rem;
    color: #e8e8d3;
    letter-spacing: 3px;
}

.league-name {
    font-family: 'PressStart2P', monospace;
    font-size: 1rem;
    font-weight: 500;
    color: #dc143c;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

h1, h2, h3 {
    font-family: 'PressStart2P', monospace;
}
h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #f5f5dc;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 5px;
}

.section {
    background: #1a1a1a;
    border: 2px solid #8b0000;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

.section.landing {
    background: none;
    border: none;
    box-shadow: none;
    margin:100px 0;
}

.section.landing header {
    border:none;
}

.section-title {
    font-family: 'PressStart2P', monospace;
    font-size: 1rem;
    font-weight: 600;
    color: #dc143c;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-bottom: 1px solid #8b0000;
    padding-bottom: 10px;
}

.league-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

@media (max-width: 700px) {
    .league-grid {
        grid-template-columns: 1fr;
    }
}

.league-card {
    background: #0a0a0a;
    border: 2px solid #8b0000;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.league-card-title {
    font-size: 0.9rem;
    color: #f5f5dc;
    margin-bottom: 10px;
}

.league-card-meta {
    font-size: 0.9rem;
    color: #e8e8d3;
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.league-card-status {
    color: #dc143c;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.league-card-players {
    color: #f5f5dc;
}

.league-card-actions {
    margin-top: 10px;
}

.league-rounds {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.league-round summary {
    cursor: pointer;
    padding: 8px 12px;
    background: #0a0a0a;
    border: 1px solid #8b0000;
    color: #e8e8d3;
}

.league-round summary::-webkit-details-marker {
    color: #dc143c;
}

.player-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.info-item {
    display: flex;
    flex-direction: column;
}

.info-label {
    font-size: 0.9rem;
    color: #dc143c;
    font-weight: 500;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.info-value {
    /*font-size: 1rem;*/
    color: #f5f5dc;
    font-weight: 400;
}

.info-value a {
    color: #f5f5dc;
    text-decoration: none;
    transition: all 0.3s ease;
}

.info-value a:hover {
    color: #dc143c;
    text-shadow: 0 0 8px rgba(220, 20, 60, 0.6);
}

.current-game {
    background: linear-gradient(135deg, #1a0a0a 0%, #2a1a1a 100%);
    border: 3px solid #dc143c;
    padding: 30px;
    margin-bottom: 25px;
    box-shadow: 
        0 0 20px rgba(220, 20, 60, 0.3),
        0 4px 12px rgba(0, 0, 0, 0.6),
        inset 0 0 30px rgba(139, 0, 0, 0.1);
    position: relative;
}

.current-game::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 1px solid rgba(220, 20, 60, 0.2);
    pointer-events: none;
}

.game-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 15px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    text-align: center;
}

.stat-item {
    padding: 15px;
    background: #0a0a0a;
    border: 1px solid #8b0000;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #dc143c;
    display: block;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9rem;
    color: #e8e8d3;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.game-history {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

th {
    background: #0a0a0a;
    color: #dc143c;
    padding: 12px;
    text-align: left;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 2px solid #8b0000;
}

td {
    padding: 12px;
    border-bottom: 1px solid #2a2a2a;
    color: #e8e8d3;
}

td a {
    color: #f5f5dc;
    text-decoration: none;
    transition: all 0.3s ease;
}

td a:hover {
    color: #dc143c;
    text-shadow: 0 0 8px rgba(220, 20, 60, 0.6);
}

tr:hover {
    background: #0f0f0f;
}

tr.game-row {
    cursor: pointer;
    transition: all 0.2s ease;
}

tr.game-row:hover {
    background: #1a1a1a;
    box-shadow: inset 0 0 10px rgba(220, 20, 60, 0.1);
}

tr.game-row td:first-child {
    position: relative;
}

tr.game-row td:first-child::before {
    content: '▶';
    position: absolute;
    left: -20px;
    color: #8b0000;
    opacity: 0;
    transition: all 0.2s ease;
}

tr.game-row:hover td:first-child::before {
    opacity: 0.5;
    left: -15px;
}

.opponent-link {
    position: relative;
    z-index: 1;
}

.result-win {
    color: #90ee90;
    font-weight: 600;
}

.result-loss {
    color: #ff6b6b;
    font-weight: 600;
}

.result-tie {
    color: #ffd700;
    font-weight: 600;
}

/* Record Display */
.record-display {
    text-align: center;
    margin-top: 20px;
    font-size: 1.3rem;
    color: #f5f5dc;
    font-weight: 600;
}

.record-value {
    color: #dc143c;
}

.submit-button {
    display: block;
    width: 100%;
    padding: 18px;
    background: #8b0000;
    color: #f5f5dc;
    border: 2px solid #dc143c;
    font-family: 'PressStart2P', monospace;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    /*margin-top: 30px;*/
    text-decoration: none;
    text-align: center;
}

a.submit-button {
    color: #f5f5dc;
}

a.submit-button:hover {
    color: #f5f5dc;
    text-decoration: none;
}

.submit-button:hover {
    background: #dc143c;
    border-color: #ff1744;
    box-shadow: 0 0 15px rgba(220, 20, 60, 0.5);
    transform: translateY(-2px);
}

.submit-button:active {
    transform: translateY(0);
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    font-family: 'PressStart2P', monospace;
    display: block;
    font-size: 0.9rem;
    color: #dc143c;
    font-weight: 500;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 12px;
    background: #0a0a0a;
    border: 2px solid #8b0000;
    color: #f5f5dc;
    /*font-family: 'PressStart2P', monospace;*/
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: #dc143c;
    box-shadow: 0 0 10px rgba(220, 20, 60, 0.3);
}

.form-input[readonly] {
    background: #1a1a1a;
    cursor: not-allowed;
    opacity: 0.7;
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
}

.form-hint {
    display: block;
    font-size: 0.8rem;
    color: #8b0000;
    margin-top: 5px;
    font-style: italic;
}

.file-input {
    padding: 8px;
    cursor: pointer;
}

.file-input::file-selector-button {
    padding: 8px 16px;
    background: #8b0000;
    color: #f5f5dc;
    border: 2px solid #dc143c;
    font-family: 'PressStart2P', monospace;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    margin-right: 10px;
    transition: all 0.3s ease;
}

.file-input::file-selector-button:hover {
    background: #dc143c;
    border-color: #ff1744;
}

/* Result Buttons */
.result-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.bo3-score-row {
    display: grid;
    grid-template-columns: 1fr 80px 24px 80px 1fr;
    gap: 10px;
    align-items: center;
}

.bo3-player {
    color: #f5f5dc;
    font-weight: 600;
}

.bo3-sep {
    text-align: center;
    color: #dc143c;
    font-weight: 700;
    font-size: 1.5rem;
}

.bo3-score {
    text-align: center;
    min-width: 60px;
    padding-left: 6px;
    padding-right: 6px;
}

.result-button {
    padding: 25px;
    background: #1a1a1a;
    border: 3px solid #8b0000;
    color: #f5f5dc;
    font-family: 'PressStart2P', monospace;
    font-size: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.result-button.result-won {
    border-color: #90ee90;
}

.result-button.result-won:hover {
    background: rgba(144, 238, 144, 0.1);
    border-color: #90ee90;
    box-shadow: 0 0 20px rgba(144, 238, 144, 0.4);
    transform: translateY(-3px);
}

.result-button.result-lost {
    border-color: #ff6b6b;
}

.result-button.result-lost:hover {
    background: rgba(255, 107, 107, 0.1);
    border-color: #ff6b6b;
    box-shadow: 0 0 20px rgba(255, 107, 107, 0.4);
    transform: translateY(-3px);
}

.result-button:active {
    transform: translateY(0);
}

.result-button.selected {
    background: linear-gradient(135deg, #1a0a0a 0%, #2a1a1a 100%);
    box-shadow: 
        0 0 20px rgba(220, 20, 60, 0.3),
        0 4px 12px rgba(0, 0, 0, 0.6),
        inset 0 0 30px rgba(139, 0, 0, 0.1);
}

.result-button.result-won.selected {
    border-color: #90ee90;
    box-shadow: 
        0 0 20px rgba(144, 238, 144, 0.4),
        0 4px 12px rgba(0, 0, 0, 0.6);
}

.result-button.result-lost.selected {
    border-color: #ff6b6b;
    box-shadow: 
        0 0 20px rgba(255, 107, 107, 0.4),
        0 4px 12px rgba(0, 0, 0, 0.6);
}

/* Result Confirmation */
.result-confirmation {
    margin-top: 30px;
    padding: 25px;
    background: #1a1a1a;
    border: 2px solid #dc143c;
    text-align: center;
}

.result-confirmation.hidden {
    display: none;
}

.confirmation-text {
    font-size: 1.3rem;
    color: #f5f5dc;
    font-weight: 600;
    margin-bottom: 20px;
    line-height: 1.8;
}

.confirmation-text .player-name {
    color: #dc143c;
    font-weight: 700;
}

.confirmation-text .result-text {
    color: #dc143c;
}

.confirmation-text .result-won-text {
    color: #90ee90;
}

.confirmation-text .result-lost-text {
    color: #ff6b6b;
}

.confirmation-text .result-tie-text {
    color: #ffd700;
}

.confirmation-text .opponent-name {
    color: #dc143c;
    font-weight: 700;
}

/* Form Actions */
.form-actions {
    margin-top: 30px;
    text-align: center;
}

.cancel-button {
    display: inline-block;
    padding: 12px 30px;
    background: #1a1a1a;
    color: #e8e8d3;
    border: 2px solid #8b0000;
    font-family: 'PressStart2P', monospace;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.cancel-button:hover {
    background: #0a0a0a;
    border-color: #dc143c;
    color: #dc143c;
}

/* Game Result Display */
.game-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.game-result-section {
    background: linear-gradient(135deg, #1a0a0a 0%, #2a1a1a 100%);
    border: 3px solid #dc143c;
    box-shadow: 
        0 0 20px rgba(220, 20, 60, 0.3),
        0 4px 12px rgba(0, 0, 0, 0.6),
        inset 0 0 30px rgba(139, 0, 0, 0.1);
}

.result-display {
    text-align: center;
    padding: 20px 0;
}

.result-summary {
    font-size: 1.5rem;
    color: #f5f5dc;
    font-weight: 600;
    line-height: 2;
    margin: 0;
}

.game-details-display {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.game-details-display .info-item.full-width {
    grid-column: 1 / -1;
}

.game-details-display .info-value {
    word-wrap: break-word;
    white-space: pre-wrap;
}

/* Notes styling */
.notes-empty {
    font-style: italic;
    color: #8b0000;
}

/* Form validation error styling */
.form-error {
    display: block;
    color: #ff6b6b;
    font-size: 0.9rem;
    margin-top: 5px;
    font-weight: 500;
}

.form-input.error,
.form-textarea.error {
    border-color: #ff6b6b;
    box-shadow: 0 0 10px rgba(255, 107, 107, 0.3);
}

/* Login form tweaks */
#sorcery-login-form p {
    margin-bottom: 15px;
}

#sorcery-login-form label {
    display: block;
    font-size: 0.9rem;
    color: #dc143c;
    font-weight: 500;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

#sorcery-login-form input[type="text"],
#sorcery-login-form input[type="password"] {
    width: 100%;
    padding: 12px;
    background: #0a0a0a;
    border: 2px solid #8b0000;
    color: #f5f5dc;
    font-family: 'PressStart2P', monospace;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

#sorcery-login-form input[type="text"]:focus,
#sorcery-login-form input[type="password"]:focus {
    outline: none;
    border-color: #dc143c;
    box-shadow: 0 0 10px rgba(220, 20, 60, 0.3);
}

#sorcery-login-form #wp-submit {
    margin-top: 10px;
    padding: 12px 30px;
    background: #8b0000;
    color: #f5f5dc;
    border: 2px solid #dc143c;
    font-family: 'PressStart2P', monospace;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
}

#sorcery-login-form #wp-submit:hover {
    background: #dc143c;
    border-color: #ff1744;
    box-shadow: 0 0 15px rgba(220, 20, 60, 0.5);
    transform: translateY(-2px);
}

#sorcery-login-form #wp-submit:active {
    transform: translateY(0);
}

#sorcery-login-form .forgetmenot {
    display: flex;
    align-items: center;
    gap: 8px;
}

#sorcery-login-form .forgetmenot label {
    margin: 0;
    text-transform: none;
    letter-spacing: 0;
    color: #e8e8d3;
}

/* Lost password form tweaks */
#sorcery-lost-password-form .form-label {
    display: block;
}

#sorcery-lost-password-form .form-input {
    width: 100%;
    padding: 12px;
    background: #0a0a0a;
    border: 2px solid #8b0000;
    color: #f5f5dc;
    font-family: 'PressStart2P', monospace;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

#sorcery-lost-password-form .form-input:focus {
    outline: none;
    border-color: #dc143c;
    box-shadow: 0 0 10px rgba(220, 20, 60, 0.3);
}

/* League Landing Page */
.league-title {
    margin-top: 15px;
    font-size: 3rem;
    font-weight: 700;
    color: #dc143c;
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 10px;
    text-shadow: 0 0 20px rgba(220, 20, 60, 0.5);
}

.status-section {
    text-align: center;
    background: linear-gradient(135deg, #1a0a0a 0%, #2a1a1a 100%);
    border: 3px solid #dc143c;
    box-shadow: 
        0 0 20px rgba(220, 20, 60, 0.3),
        0 4px 12px rgba(0, 0, 0, 0.6);
}

.status-badge {
    display: inline-block;
    padding: 12px 24px;
    background: #8b0000;
    color: #f5f5dc;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    border: 2px solid #dc143c;
    margin-bottom: 15px;
    box-shadow: 0 0 15px rgba(220, 20, 60, 0.4);
}

.status-text {
    font-size: 0.8rem;
    color: #e8e8d3;
    margin: 0;
}

/* Scoreboard */
.scoreboard {
    overflow-x: auto;
}

.scoreboard-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.scoreboard-table th {
    background: #0a0a0a;
    color: #dc143c;
    padding: 15px;
    text-align: left;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 2px solid #8b0000;
    position: sticky;
    top: 0;
}

.scoreboard-table td {
    padding: 15px;
    border-bottom: 1px solid #2a2a2a;
    color: #e8e8d3;
}

.scoreboard-row {
    transition: all 0.2s ease;
}

.scoreboard-row:hover {
    background: #1a1a1a;
    box-shadow: inset 0 0 10px rgba(220, 20, 60, 0.1);
}

.rank {
    font-weight: 700;
    font-size: 1rem;
    text-align: center;
    width: 60px;
}

.rank-1 {
    color: #ffd700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.rank-2 {
    color: #c0c0c0;
    text-shadow: 0 0 10px rgba(192, 192, 192, 0.5);
}

.rank-3 {
    color: #cd7f32;
    text-shadow: 0 0 10px rgba(205, 127, 50, 0.5);
}

.player-link {
    color: #f5f5dc;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.player-link:hover {
    color: #dc143c;
    text-shadow: 0 0 8px rgba(220, 20, 60, 0.6);
}

/* Dropped player styling */
.player-dropped {
    opacity: 0.6;
}

.player-dropped .player-link {
    color: #888;
}

.dropped-badge {
    color: #8b0000;
    font-size: 0.75rem;
    font-style: italic;
    margin-left: 8px;
}

.drop-league-button:hover {
    background: #a00000;
    border-color: #ff4444;
}

/* Trophy Bookshelf */
.trophy-bookshelf {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 20px;
}

.trophy-row {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.trophy-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #e8e8d3;
    border-bottom: 2px solid #dc143c;
    padding-bottom: 8px;
}

.trophy-position {
    font-size: 0.9rem;
    color: #b0b0b0;
}

.trophy-shelf {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px;
    background: rgba(26, 10, 10, 0.6);
    border: 2px solid #2a1a1a;
    border-radius: 4px;
    min-height: 120px;
}

.trophy-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 15px;
    background: rgba(10, 10, 10, 0.8);
    border: 2px solid #3a2a2a;
    border-radius: 4px;
    min-width: 120px;
    transition: all 0.3s ease;
}

.trophy-item:hover {
    border-color: #dc143c;
    box-shadow: 0 0 15px rgba(220, 20, 60, 0.3);
    transform: translateY(-2px);
}

.trophy-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.trophy-icon img,
.trophy-icon-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.trophy-label .trophy-icon-img {
    width: 32px;
    height: 32px;
    margin-right: 8px;
}

.trophy-name {
    font-size: 0.9rem;
    text-align: center;
    color: #e8e8d3;
    font-weight: 500;
    word-break: break-word;
    max-width: 100px;
}

.trophy-empty {
    color: #666;
    font-style: italic;
    align-self: center;
    padding: 20px;
}

/* Achievements Grid */
.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.achievement-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 15px;
    background: rgba(26, 10, 10, 0.6);
    border: 2px solid #2a1a1a;
    border-radius: 4px;
    transition: all 0.3s ease;
    cursor: help;
    position: relative;
}

.achievement-item.achievement-unlocked {
    border-color: #dc143c;
    background: rgba(26, 10, 10, 0.9);
    box-shadow: 0 0 10px rgba(220, 20, 60, 0.2);
}

.achievement-item.achievement-locked {
    opacity: 0.4;
    filter: grayscale(100%);
}

.achievement-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(220, 20, 60, 0.3);
}

.achievement-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.achievement-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.achievement-name {
    font-size: 0.85rem;
    text-align: center;
    color: #e8e8d3;
    font-weight: 500;
    word-break: break-word;
}

.achievement-date {
    font-size: 0.7rem;
    color: #b0b0b0;
    font-style: italic;
}

@media (max-width: 768px) {
    body {
        padding-top: 70px;
    }

    .nav-container {
        padding: 10px 15px;
        gap: 10px;
    }

    .nav-link {
        font-size: 0.9rem;
        padding: 6px 12px;
    }

    .league-title {
        font-size: 2rem;
    }

    .player-info,
    .game-details,
    .stats-grid,
    .game-info-grid,
    .game-details-display {
        grid-template-columns: 1fr;
    }

    .result-buttons {
        grid-template-columns: 1fr;
    }

    h1 {
        font-size: 1.8rem;
    }

    .section-title {
        font-size: 1rem;
    }

    .result-summary {
        font-size: 1rem;
    }

    .scoreboard-table {
        font-size: 0.9rem;
    }

    .scoreboard-table th,
    .scoreboard-table td {
        padding: 10px 8px;
    }

    .achievements-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 10px;
    }

    .trophy-shelf {
        padding: 15px;
        gap: 15px;
    }

    .trophy-item {
        min-width: 100px;
        padding: 12px;
    }
}

.league-description a {
    color: #f78da7;
}