/* Shared application styles for ScoreTracker */
:root { --main-color: #2ecc71; --primary-color: #f1c40f; --secondary-color: #3498db; --accent-color: #e74c3c; --main-radius: 8px; }
h1, h2, h3, h4, h5, h6,.subtitle { margin: 0; font-family: "Archivo Black", sans-serif; text-transform: uppercase; }
.decorated-inline { display: flex; align-items: center; gap: 6px; }
*, *::before, *::after { box-sizing: border-box; }
html { font-family: "Commissioner", sans-serif; line-height: 1.5; }
body { margin: 0 auto; min-height: 100vh; color: #333; background: var(--main-color); max-width: 750px; padding: 8px 8px 45px 8px; }
body.has-topbar { padding-top: 64px; }
body.login-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 0; max-width: none; }
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { border: none; cursor: pointer; }
button:hover { opacity: 0.95; }
.card { background: white; padding: 12px; border-radius: var(--main-radius); box-shadow: 0 4px 6px rgba(0,0,0,0.05); margin-bottom: 12px; }
.form-group {  }
label { display: block; margin-bottom: 6px; font-weight: 600; color: #34495e; }
input[type="text"], input[type="password"], input[type="number"], input[type="date"], select, textarea { width: 100%; padding: 10px; border: 1px solid #cbd5e1; border-radius: var(--main-radius); background: white; }
.input-section-title { margin-bottom: 12px; font-weight: bold; color: #475569; }
.score-input-row { display: flex; gap: 20px; align-items: center; }
.font-medium { font-weight: 500; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary-color); box-shadow: 0 0 0 3px rgba(59,130,246,0.15); }
button.btn-primary, .btn-primary { display: inline-flex; justify-content: center; align-items: center; background: var(--primary-color); color: white; padding: 12px 20px; border-radius: var(--main-radius); font-weight: bold; width: 100%; font-size: 16px; }
button.btn-primary:hover, .btn-primary:hover { background: var(--primary-color); }
button.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }
button.btn-secondary, .btn-secondary { background: #475569; color: white; padding: 10px 16px; border-radius: var(--main-radius); font-weight: bold; }
button.btn-secondary:hover, .btn-secondary:hover { background: #334155; }
.alert { padding: 14px 40px 14px 14px; border-radius: var(--main-radius); margin: 10px; font-weight: bold; position: fixed; top: 15px; left: 0; right: 0; transition: opacity 0.4s ease, transform 0.4s ease; opacity: 1; }
.alert.success { background: #d4edda; color: #155724; border-left: 5px solid #28a745; }
.alert.error { background: #f8d7da; color: #721c24; border-left: 5px solid #dc3545; }
.alert.alert-hide { opacity: 0; transform: translateY(-10px); pointer-events: none; }
.alert-close-btn { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); background: none; border: none; color: inherit; font-size: 1.3em; line-height: 1; font-weight: bold; cursor: pointer; padding: 4px 8px; }
.table-view, table { width: 100%; border-collapse: collapse; }
.table-view th, .table-view td, th, td { padding: 12px; text-align: left; border-bottom: 1px solid #e2e8f0; }
th { background: #f8fafc; color: #64748b; font-size: 0.85em; text-transform: uppercase; letter-spacing: 0.03em; }
.radio-group { display: flex; gap: 20px; margin-top: 5px; }
.player-checkbox-label { display: flex; align-items: center; gap: 8px; font-weight: 600; cursor: pointer; color: #334155; padding: 8px 10px; background: white; border: 1px solid #e2e8f0; border-left: 5px solid var(--accent, #cbd5e1); border-radius: var(--main-radius); user-select: none; transition: all 0.15s ease; }
.player-checkbox-label:hover { background: #f1f5f9; transform: translateY(-1px); }
input[type="radio"], input[type="checkbox"] { transform: scale(1.15); cursor: pointer; }
.color-picker-wrapper { display: flex; align-items: center; gap: 10px; }
.player-item-card { background: #f8f9fa; border: 2px solid var(--accent); padding: 8px; text-align: center; border-radius: var(--main-radius); color: #2c3e50; transition: all 0.2s ease; /* border-left: 5px solid var(--accent, #bdc3c7); */
    display: flex; justify-content: space-between; align-items: center; gap: 8px; font-weight: 600; cursor: pointer; }
.player-item-card:hover { transform: translateY(-2px); background: white; box-shadow: 0 4px 8px rgba(0,0,0,0.08); }
.group-list { list-style: none; padding: 0; margin: 0; }
.badge { display: inline-block; padding: 4px 8px; border-radius: var(--main-radius); font-size: 0.8em; font-weight: bold; color: white; text-shadow: 0 1px 1px rgba(0,0,0,0.05); }
.status-badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px; border-radius: var(--main-radius); font-size: 0.8em; font-weight: bold; }
.status-active { background: #d4edda; color: #155724; }
.status-inactive { background: #e2e8f0; color: #475569; }
button.logout-btn, .logout-btn { color: #e74c3c; background: rgba(231,76,60,0.05); padding: 14px 20px; border-radius: var(--main-radius); display: inline-flex; align-items: center; justify-content: center; }
button.logout-btn:hover, .logout-btn:hover { background: #c0392b; color: white; }
.app-nav { background: #2c3e50; padding: 0; display: flex; justify-content: space-between; align-items: center; box-shadow: 0px -4px 12px 12px var(--main-color); position: fixed; left: 0; right: 0; bottom: 0; z-index: 9999; }
.app-topbar { background: #2c3e50; display: flex; align-items: center; justify-content: space-between; padding: 10px 16px; position: fixed; top: 0; left: 0; right: 0; height: 56px; box-shadow: 0 4px 12px rgba(0,0,0,0.15); z-index: 9999; }
.app-topbar .brand { font-family: "Archivo Black", sans-serif; text-transform: uppercase; letter-spacing: 0.05em; font-size: 20px; color: white; }
.app-topbar .dropbtn { color: #b0bec5; font-weight: bold; font-size: 14px; padding: 10px 14px; border-radius: var(--main-radius); background: none; cursor: pointer; transition: all 0.2s ease; }
.app-topbar .dropbtn:hover, .app-topbar .dropbtn.active { color: white; background: #34495e; }
.app-topbar .dropdown-content { position: absolute; top: calc(100% + 8px); right: 0; left: auto; bottom: auto; width: 160px; flex-direction: column; }
.accent-border { border-left: 6px solid var(--accent); padding-left: 8px; }
.accent-card-top { border: 6px solid var(--accent, var(--secondary-color)); border-top: 5px solid var(--accent); }
.accent-border-wide { border-left: 6px solid var(--accent, transparent); padding-left: 12px; }
.wide-field { flex: 2; }
.detail-note { font-size: 0.75em; font-weight: normal; opacity: 0.7; display: inline-block; }
.text-right { text-align: right; }
.rank-first-place { color: #f6b93b; }
.rank-default { color: white; background: #000000; padding: 3px 6px; border-radius: var(--main-radius); font-size: 0.8em; margin-left: 6px; display: inline-block; }
.activity-game-title { font-weight: bold; font-size: 1.1em; color: #2c3e50; display: flex; align-items: center; gap: 6px; }
.stopper-tag { margin-top: 8px; font-size: 0.75em; background: #fffbeb; color: #92400e; padding: 3px 6px; border-radius: var(--main-radius); display: inline-block; }
.card-highlight { border: 2px solid var(--secondary-color); }
.section-note { font-size: 0.9em; color: #475569; margin-top: -5px; margin-bottom: 12px; font-weight: bold; }
.form-actions { margin-top: 30px; }
.app-nav form { display: inline; margin: 0; }
.view-mode-container { gap: 6px; display: flex; flex-direction: column; }
.font-semibold { font-weight: 600; }
.history-date { font-size: 0.85em; color: #7f8c8d; }
.history-score-panel { text-align: right; }
.history-points { font-size: 0.9em; color: var(--secondary-color); font-weight: bold; }
.profile-subtitle { font-size: 0.85em; color: #7f8c8d; }
.profile-title { margin: 0; }
.match-meta-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.form-field-wide { flex: 2; }
.inline-action-form { display: inline; }
.status-text { color: #7f8c8d; font-size: 0.9em; }
.empty-data-row { color: #888; font-style: italic; }
.score-label { margin-bottom: 12px; font-weight: bold; color: #475569; }
.round-number { font-weight: bold; color: #64748b; }
.round-remove-btn { background: #ef4444; color: white; border: none; padding: 5px 9px; border-radius: var(--main-radius); cursor: pointer; font-weight: bold; }
.score-input { width: 110px; }
.inline-label { display: inline-flex; align-items: center; gap: 5px; font-weight: 600; }
.stopper-label { font-weight: bold; color: #92400e; font-size: 0.9em; display: inline-block; margin-right: 12px; margin-bottom: 5px; }
.stopper-option { margin-right: 14px; display: inline-block; font-weight: 600; color: #78350f; }
.col-round { width: 60px; }
.col-remove { width: 50px; }
.hidden { display: none !important; }
.login-card { background: white; padding: 30px; border-radius: var(--main-radius); box-shadow: 0 4px 10px rgba(0,0,0,0.1); width: 100%; max-width: 350px; text-align: center; margin: auto; }
.login-page body { background: #f4f7f6; }
.btn-login { background: #2c3e50; color: white; padding: 12px; width: 100%; border-radius: var(--main-radius); cursor: pointer; font-size: 16px; font-weight: bold; }
.btn-login:hover { background: #34495e; }
.login-error { color: #e74c3c; font-weight: bold; margin-bottom: 10px; font-size: 0.9em; }
.text-muted { color: #7f8c8d; }
.text-small { font-size: 0.9em; }
.text-italic { font-style: italic; }
.inline-form { display: flex; gap: 10px; margin-top: 10px; }
.flex-row { display: flex; align-items: center; gap: 6px; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.scrollable-table { overflow-x: auto; }
.border-left-accent { padding-left: 8px; border-left: 4px solid currentColor; }
.app-nav .nav-links { display: flex; align-items: center; width: 100%; justify-content: center; max-width: 800px; margin: auto; }
.app-nav a, .app-nav .dropbtn { color: #b0bec5; font-weight: bold; font-size: 14px; padding: 12px 10px; display: inline-flex; transition: all 0.2s ease; background: none; cursor: pointer; width: 100%; align-items: center; justify-content: center; }
.app-nav a:hover, .app-nav .dropbtn:hover { color: white; background: #34495e; }
.app-nav a.active, .app-nav .dropbtn.active { color: white; background: var(--main-color); }
.dropdown { position: relative; display: inline-block; }
.dropdown-content { display: none; position: absolute; background-color: #2c3e50; box-shadow: 0px 8px 16px rgba(0,0,0,0.15); z-index: 100; }
.dropdown-content a, .dropdown-logout-btn { color: #b0bec5; padding: 12px 20px; display: block; text-align: left; font-size: 14px; background: transparent; border: none; width: 100%; cursor: pointer; }
.dropdown-content a:hover, .dropdown-logout-btn:hover { background-color: #34495e; color: white; }
.dropdown-content a.active { background-color: #2980b9; color: white; }
.dropdown.show-menu .dropdown-content { display: flex; }
@media (min-width: 769px) {
    .dropdown:hover .dropdown-content { display: flex; }
}
.app-nav .dropdown-content { position: absolute; bottom: calc(100% + 0px); right: 0px; width: 160px; flex-direction: column; }
.no-padding { padding: 0 !important; }
/* App-specific component utilities */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.navigation { margin-bottom: 20px; }
.badge-blue { background: #475569; }
.badge-purple { background: #8b5cf6; }
.badge-rose { background: #e11d48; }
.badge-slate { background: #94a3b8; }
.color-picker-wrapper input[type="color"] { border: none; width: 50px; height: 40px; background: none; cursor: pointer; }
.group-item { background: white;
    padding: 8px;
    margin-bottom: 10px;
    border-radius: var(--main-radius);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 3px solid var(--accent); }
.group-badge { color: white;
    border-radius: 20px;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
    background-color: var(--accent, var(--secondary-color));
    width: 40px;
    height: 40px; }
.player-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; margin-top: 15px; }
.group-section { margin-bottom: 24px; }
.player-list-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 12px; background: #f8f9fa; margin-bottom: 6px; border-radius: var(--main-radius); }
.leaderboard-table tr.player-table-row { display: table-row; }
.leaderboard-table tr.player-table-row > td { display: table-cell; vertical-align: middle; }
.actions { display: flex; gap: 10px; }
.btn-edit { color: var(--secondary-color); text-decoration: none; font-weight: bold; font-size: 0.9em; }
.btn-remove { background: none; border: none; color: #e74c3c; cursor: pointer; font-weight: bold; font-size: 0.9em; padding: 0; }
.btn-remove:hover { text-decoration: underline; }
.btn-save { background: #2ecc71; color: white; border: none; padding: 10px 15px; border-radius: var(--main-radius); cursor: pointer; font-size: 16px; }
.btn-save:hover { background: #27ae60; }
.btn-purple { background: #9b59b6; color: white; padding: 10px 16px; border-radius: var(--main-radius); font-weight: bold; }
.btn-purple:hover { background: #8e44ad; }
.btn-inline { background: var(--primary-color); color: white; padding: 10px 16px; border-radius: var(--main-radius); font-weight: bold; }
.btn-inline:hover { background: var(--primary-color); }
.btn-close { background: none; border: none; color: #475569; font-weight: bold; font-size: 0.95em; cursor: pointer; text-decoration: none; }
.btn-close:hover { color: #2c3e50; }
.cancel-link { margin-left: 15px; color: #7f8c8d; text-decoration: none; }
.cancel-link:hover { text-decoration: underline; }
.score-row { display: flex; gap: 20px; align-items: center; }
.spotlight-header { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; }
.spotlight-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px; }
.spotlight-metric { background: #f8fafc; padding: 14px; border-radius: var(--main-radius); text-align: center; }
.spotlight-num { font-size: 2rem; font-weight: bold; color: #2c3e50; display: block; }
.spotlight-lbl { display: block; color: #7f8c8d; margin-top: 6px; font-size: 0.9em; }
.detail-badge { font-size: 0.7em; background: #e2e8f0; padding: 3px 6px; border-radius: var(--main-radius); color: #4a5568; margin-left: 5px; display: inline-flex; align-items: center; }
.history-score-value { font-size: 0.9em; color: #475569; margin-bottom: 4px; }
.view-row { display: flex; justify-content: space-between; align-items: center; padding: 4px 0; border-bottom: 1px solid #f9f9f9; }
.view-row:last-child { border-bottom: none; }
.winner-row { background: #f4fbf7; font-weight: bold; border-radius: var(--main-radius); }
.win-badge { background: #f6b93b; color: #2c2c2c; padding: 3px 6px; border-radius: var(--main-radius); font-size: 0.8em; display: inline-block; }
.stopper-badge { background: #e11d48; color: white; padding: 3px 6px; border-radius: var(--main-radius); font-size: 0.8em; font-weight: bold; display: inline-block; }
.silver-badge { background: #9aa6b2; color: white; padding: 3px 6px; border-radius: var(--main-radius); font-size: 0.8em; font-weight: bold; display: inline-block; }
.bronze-badge { background: #b76b2f; color: white; padding: 3px 6px; border-radius: var(--main-radius); font-size: 0.8em; font-weight: bold; display: inline-block; }
.skull-badge { background: #4b5563; color: white; padding: 3px 6px; border-radius: var(--main-radius); font-size: 0.8em; font-weight: bold; display: inline-block; }
.lp-delta { padding: 3px 6px; border-radius: var(--main-radius); font-size: 0.8em; font-weight: bold; display: inline-block; background: #e2e8f0; color: #334155; border: 1px solid; }
.lp-delta.lp-gain { background: #dcfce7; color: #166534; }
.lp-delta.lp-loss { background: #fee2e2; color: #991b1b; }
.edit-mode-container { display: none; }
.edit-score-row { display: flex; align-items: center; justify-content: space-between; padding: 8px 0; border-bottom: 1px dashed #eee; }
.btn-update { background: #2ecc71; color: white; border: none; padding: 8px 16px; border-radius: var(--main-radius); cursor: pointer; font-weight: bold; }
.btn-cancel { background: #95a5a6; color: white; border: none; padding: 8px 16px; border-radius: var(--main-radius); cursor: pointer; font-weight: bold; text-decoration: none; margin-right: 10px; font-size: 0.9em; }
.footer-actions { display: flex; justify-content: flex-end; margin-top: 15px; }
.dashboard-toggle-bar { display: flex; background: #e2e8f0; border-radius: var(--main-radius); gap: 4px; }
.toggle-tab { min-width: 60px; flex: 1; text-align: center; font-weight: bold; text-decoration: none; border-radius: var(--main-radius); font-size: 12px; transition: all 0.2s ease; color: #64748b; display: flex; align-items: center; justify-content: center; height: 42px; }
.toggle-tab.active.ranked-mode { background: #f1c40f; color: #2c3e50; box-shadow: 0 2px 4px rgba(0,0,0,0.1); }
.toggle-tab.active.casual-mode { background: #2ecc71; color: white; box-shadow: 0 2px 4px rgba(0,0,0,0.1); }
.toggle-tab:hover:not(.active) { background: rgba(255,255,255,0.5); color: #334155; }
.filter-wrapper { display: flex; gap: 6px; align-items: center; justify-content: space-between; }
.game-filter-wrapper { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.game-filter-wrapper label { font-weight: bold; color: #475569; font-size: 14px; }
.game-filter-select { flex-grow: 1; padding: 10px; font-size: 15px; font-weight: 600; border: 0; border-radius: var(--main-radius); background-color: #e2e8f0; color: #1e293b; cursor: pointer; }
.stats-grid { display: flex; gap: 15px; margin-bottom: 25px; }
.stat-box { flex: 1; background: white; padding: 12pxpx; border-radius: var(--main-radius); text-align: center; box-shadow: 0 2px 4px rgba(0,0,0,0.02); border-top: 4px solid #cbd5e1; }
.stat-box.themed { border-top-color: #2ecc71; }
.stat-value { font-size: 24px; font-weight: bold; color: #b3d6f8; margin-top: 5px; }
.stat-label { font-size: 13px; color: #7f8c8d; font-weight: bold; text-transform: uppercase; }
.leaderboard-table-wrapper { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.sticky-name { position: sticky; left: 0; background: white; }
.leaderboard-table { width: 100%; min-width: 680px; border-collapse: collapse; }
.leaderboard-table th, .leaderboard-table td { padding: 8px 6px; border-bottom: 1px solid #e2e8f0; }
.rank-col { width: 50px; text-align: center; font-weight: bold; color: #7f8c8d; }
.player-name-badge { display: inline-block; font-weight: bold; color: #2c3e50; }
.activity-card { background: white; padding: 12px; border-radius: var(--main-radius); box-shadow: 0 2px 4px rgba(0,0,0,0.04); border: 1px solid #e2e8f0; margin-bottom: 15px; }
.activity-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.activity-game { font-weight: bold; color: #1e293b; font-size: 1.1em; display: flex; align-items: center; gap: 6px; }
.activity-date { font-size: 0.85em; color: #94a3b8; font-weight: 500; }
.activity-body { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.player-pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: var(--main-radius); background: #f1f5f9; font-size: 0.88em; font-weight: 500; color: #334155; border: 1px solid #e2e8f0; border-left: 3px solid var(--accent, #cbd5e1); }
.player-pill.winner-pill { font-weight: bold; }
.pill-score { padding: 3px 6px; border-radius: var(--main-radius); border: 1px solid black; font-size: 1rem; }
.empty-state { text-align: center; color: #7f8c8d; font-style: italic; padding: 30px 10px; }
.step-card { background: white; padding: 22px; border-radius: var(--main-radius); box-shadow: 0 4px 6px rgba(0,0,0,0.05); margin-bottom: 20px; border-top: 4px solid #cbd5e1; transition: all 0.3s ease; min-height: 92vh; }
.active-step { border-top-color: var(--secondary-color); }
.step-hidden { display: none !important; }
.step-badge { background: #64748b; color: white; border-radius: 50%; width: 24px; height: 24px; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: bold; }
.active-step .step-badge { background: var(--secondary-color); }
.step-nav { margin-top: 20px; display: flex; justify-content: flex-end; }
.step-nav-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; }
.step-progress { color: #94a3b8; font-size: 0.85em; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
.form-flex { display: flex; gap: 15px; }
.form-flex > div { flex: 1; }
.player-selection-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; max-height: 650px; overflow-y: auto; border: 1px solid #e2e8f0; padding: 12px; border-radius: var(--main-radius); background: #f8fafc; }
.single-score-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; background: #f8fafc; padding: 12px; border-radius: var(--main-radius); border: 1px solid #e2e8f0; }
.rounds-table-wrapper { overflow-x: auto; margin-bottom: 15px; border: 1px solid #e2e8f0; border-radius: var(--main-radius); }
.rounds-table { width: 100%; border-collapse: collapse; min-width: 450px; background: white; }
.rounds-table th, .rounds-table td { padding: 12px; text-align: center; border-bottom: 1px solid #e2e8f0; }
.rounds-table th { background: #f8fafc; font-size: 0.9em; color: #64748b; font-weight: 700; }
.rounds-table input { width: 60px; padding: 6px; text-align: center; border: 1px solid #cbd5e1; border-radius: var(--main-radius); }
.rounds-table tfoot td { font-weight: bold; background: #f0f7ff; color: #1e3a8a; font-size: 1.05em; border-top: 2px solid #bfdbfe; }
.round-input-wrapper { display: flex; align-items: center; justify-content: center; gap: 4px; }
.sign-toggle-btn { background: #64748b; color: white; border: none; border-radius: var(--main-radius); width: 36px; height: 36px; font-size: 1.1em; font-weight: bold; flex-shrink: 0; }
.sign-toggle-btn:hover { background: #475569; }
.round-input-wrapper .sign-toggle-btn { width: 28px; height: 28px; font-size: 0.9em; }
.skullking-round-card { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: var(--main-radius); padding: 14px; margin-bottom: 14px; }
.skullking-round-header { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.skullking-round-title { font-weight: 700; color: #334155; }
.skullking-round-header .round-remove-btn { margin-left: auto; }
.skullking-player-rows { display: flex; flex-direction: column; gap: 10px; }
.skullking-player-row { background: white; border: 1px solid #e2e8f0; border-radius: var(--main-radius); padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; border-left: 4px solid #cbd5e1; }
.skullking-player-header { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.skullking-player-name { font-weight: 700; color: #2c3e50; margin-right: auto; }
.sk-bid-chip { font-size: 0.8em; font-weight: 600; color: #475569; background: #f1f5f9; border: 1px solid #e2e8f0; border-radius: 999px; padding: 2px 10px; }
.skullking-controls { display: flex; flex-direction: column; gap: 8px; }
.sk-control-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.sk-control-row-split { justify-content: space-between; gap: 6px; }
.sk-subfield { display: flex; align-items: center; gap: 6px; }
.sk-field-label { font-size: 0.85em; font-weight: 600; color: #64748b; text-transform: uppercase; letter-spacing: 0.03em; }
input.sk-bid-input, input.sk-won-input { width: 42px; padding: 6px 2px; text-align: center; border: 1px solid #cbd5e1; border-radius: var(--main-radius); }
.sk-stepper { display: flex; align-items: center; gap: 8px; }
.sk-stepper-btn { background: #475569; color: white; border: none; border-radius: 50%; width: 30px; height: 30px; font-weight: bold; flex-shrink: 0; font-size: 1em; }
.sk-stepper-btn:hover { background: #334155; }
.sk-stepper .bonus-count { display: inline-block; min-width: 32px; padding: 6px 2px; text-align: center; border: 1px solid #cbd5e1; border-radius: var(--main-radius); font-weight: 600; color: #1e3a8a; background: white; }
.sk-stepper-compact { gap: 4px; }
.sk-stepper-compact .sk-stepper-btn { width: 24px; height: 24px; font-size: 0.85em; }
.sk-stepper-compact input.sk-won-input { width: 32px; padding: 4px 2px; }
.sk-stepper-compact .bonus-count { min-width: 24px; padding: 4px 2px; font-size: 0.9em; }
.sk-round-points { font-size: 0.95em; font-weight: 700; border-radius: 999px; padding: 3px 10px; }
.skullking-phase-nav { margin-top: 14px; }
.skullking-phase-nav .sk-phase-btn { width: 100%; }
.skullking-totals-footer { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.skullking-total-item { background: #f0f7ff; color: #1e3a8a; border-radius: var(--main-radius); padding: 8px 12px; font-weight: bold; display: flex; flex-direction: column; align-items: center; gap: 2px; flex: 1; min-width: 90px; transition: order 0.2s ease; }
.skullking-totals-sticky { position: sticky; top: 64px; z-index: 50; background: white; padding: 10px; margin: -22px -22px 16px -22px; border-bottom: 1px solid #e2e8f0; box-shadow: 0 4px 6px rgba(0,0,0,0.05); flex-wrap: nowrap; overflow-x: auto; }
.skullking-totals-sticky .skullking-total-item { min-width: 78px; flex: 0 0 auto; }
.info-badge { display: inline-block; background: #334155; color: white; padding: 4px 8px; border-radius: var(--main-radius); font-size: 0.8em; font-weight: bold; margin-top: 6px; }
.stopper-box { margin-bottom: 18px; background: #fffbeb; padding: 12px; border-radius: var(--main-radius); border: 1px solid #fef3c7; }
.form-row { display: flex; gap: 15px; flex-wrap: wrap; margin-bottom: 15px; }
.form-row .form-group { flex: 1; min-width: 180px; }
.btn-activate { background: var(--secondary-color); color: white; padding: 6px 12px; border-radius: var(--main-radius); font-size: 0.85em; font-weight: bold; }
.btn-activate:hover { background: #2980b9; }
.section-divider { border: none; border-top: 2px dashed #e2e8f0; margin: 25px 0; }
.field-info { flex: 1; }
.field-title { font-weight: bold; color: #2c3e50; margin-bottom: 3px; display: block; }
.field-desc { font-size: 0.85em; color: #7f8c8d; line-height: 1.4; }
.input-wrapper { width: 120px; text-align: right; }
.match-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; flex-wrap: wrap; }
.card-outline-blue { border: 2px solid var(--secondary-color); }
.no-players { color: #888; font-style: italic; font-size: 0.9em; padding-left: 12px; }
.player-meta { padding-left: 8px; border-left: 4px solid var(--accent); display: inline-flex; gap: 8px; align-items: center; }
.small-description { font-size: 0.7rem; }
.small-label { font-size: 0.85em; color: #7f8c8d; margin-right: 5px; }
.left-compact { display: flex; align-items: center; gap: 6px; }
.stopper-note { font-weight: bold; color: #92400e; font-size: 0.9em; display: inline-block; margin-right: 12px; margin-bottom: 5px; }
.align-right { text-align: right; }
.points-label { font-size: 0.9em; color: var(--secondary-color); font-weight: bold; }
.text-center { text-align: center; }
.no-margin { margin: 0; }
.mb-large { margin-bottom: 35px; }
.top-negative { margin-top: -10px; }
.player-name-label { font-weight: 500; min-width: 120px; display: inline-flex; align-items: center; gap: 6px; }
.activity-title { font-weight: bold; font-size: 1.1em; color: #2c3e50; }
.stopper-pill { margin-top: 8px; font-size: 0.75em; background: #fffbeb; color: #92400e; padding: 3px 6px; border-radius: var(--main-radius); display: inline-block; }
.btn-secondary { background: #475569; color: white; padding: 10px 16px; border-radius: var(--main-radius); font-weight: bold; }
.btn-secondary:hover { background: #334155; }
.form-submit-group { margin-top: 30px; }
.subtitle { color: #7f8c8d; font-size: 0.9em; }
.rank-first { color: #f6b93b; }
.landing-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(180px,1fr)); gap: 16px; max-width: 960px; margin: 40px auto; }
.landing-card { background: #fff; border-radius: var(--main-radius); padding: 18px; box-shadow: 0 3px 6px rgba(0,0,0,0.06); text-align: center; }
.landing-card a { text-decoration: none; color: inherit; display: block; }
.landing-icon { font-size: 28px; margin-bottom: 8px; }
.landing-title { font-weight: 700; margin-bottom: 6px; }
.home-wrapper { padding: 24px; }
/* Podium Styles */
.podium-card { margin-bottom: 15px; }
.podium-container { display: flex; justify-content: space-between; align-items: flex-end; gap: 0; padding-top: 60px; }
.podium-step { flex: 1; display: flex; flex-direction: column; justify-content: space-between; align-items: center; padding: 6px; border-radius: 0; max-width: 300px; transition: all 0.3s ease; text-align: center; }
.podium-step.podium-1 { background: linear-gradient(135deg, #ffd700, #ffed4e); height: 90px; border-radius: var(--main-radius) var(--main-radius) 0 0; }
.podium-step.podium-2 { background: linear-gradient(135deg, #c0c0c0, #e0e0e0); height: 70px; border-right: 6px solid #c2c2c2; border-radius: var(--main-radius) 0 0 0; }
.podium-step.podium-3 { background: linear-gradient(135deg, #cd7f32, #d4a06c); height: 60px; border-left: 6px solid #bd7732; border-radius: 0 var(--main-radius) 0 0; }
.podium-name { margin-top: -60px; }
.podium-position {  }
.podium-badge { display: inline-block; padding: 6px; border-radius: var(--main-radius); font-weight: bold; font-size: 1.1em; }
.podium-badge.gold { background: rgba(255, 215, 0, 0.9); color: #2c2c2c; }
.podium-badge.silver { background: rgba(192, 192, 192, 0.9); color: #2c2c2c; }
.podium-badge.bronze { background: rgba(205, 127, 50, 0.9); color: white; }
.counter { background: #4ff597; padding: 6px; border-radius: var(--main-radius); color: #2eab63; display: inline-block; font-weight: 700; }
.title-card { margin-bottom: 12px; background: transparent; box-shadow: none; color: white; }
.column { flex-direction: column; }
.match-result-hero { text-align: center; padding: 24px 16px; }
.match-result-title { font-weight: 800; font-size: 1.3em; margin-bottom: 8px; }
.match-winner-banner { margin-top: 16px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.match-winner-name { font-size: 1.4em; font-weight: 800; color: #2c3e50; }
.match-result-actions { display: flex; gap: 12px; margin-top: 12px; margin-bottom: 20px; }
.match-result-actions a { flex: 1; text-align: center; }
.match-result-link { font-size: 0.75em; font-weight: 700; color: var(--secondary-color); text-decoration: none;    background: #f1f1f1;
    padding: 6px;
    border-radius: 6px; }
.match-result-link:hover { text-decoration: underline; }
.nav-links div { flex: 1; }
