.gold-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #e8c987, #b8924e);
    color: #2b1d0f;
    padding: 12px 26px;
    border-radius: 28px;
    font-weight: 600;
    font-size: 15px;
    border: none;
    cursor: url('img/kunai-cursor-64.png') 6 5, auto;
    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.4),
        0 0 14px rgba(255, 210, 110, 0.25),
        inset 0 0 4px rgba(255, 255, 255, 0.3);
    transition: 0.2s ease;
}

.gold-btn:hover {
    filter: brightness(1.08);
    cursor: url('img/hand-pointing-cursor.png') 6 5, pointer !important;
}

.gold-btn:active {
    transform: translateY(0px) scale(0.98);
    box-shadow:
        0 0 8px rgba(255, 200, 110, 0.25),
        inset 0 0 2px rgba(255, 255, 255, 0.2);
}

.gold-outline-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 215, 130, 0.4);
    color: #e8c987;
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 500;
    cursor: url('img/kunai-cursor-64.png') 6 5, auto;
    transition: 0.2s ease;
}

.gold-outline-btn:hover {
    background: rgba(255, 215, 130, 0.08);
    border-color: rgba(255, 215, 130, 0.7);
    cursor: url('img/kunai-cursor-64-hover.png') 6 5, auto;
}

.edit-rituals-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: transparent;
    border: 1px solid rgba(212, 178, 111, 0.6);
    border-radius: 999px;
    font-size: 14px;
    font-weight: 500;
    color: #d4b26f;
    cursor: url('img/kunai-cursor-64.png') 6 5, auto;
    transition: all 0.25s ease;
}

.edit-rituals-btn:hover {
    border-color: rgba(212, 178, 111, 1);
    color: #f0d9a0;
    box-shadow: 0 0 12px rgba(212, 178, 111, 0.25);
    cursor: url('img/hand-pointing-cursor.png') 6 5, pointer !important;
}

.edit-rituals-btn:active {
    transform: scale(0.97);
}

.edit-icon {
    width: 16px;
    height: 16px;
    opacity: 0.85;
    background: linear-gradient(180deg, #D4B26F 0%, #A88956 100%);
    -webkit-background-clip: text;
    background-clip: text;
    fill: transparent;
    filter: brightness(1) sepia(1) saturate(200%) hue-rotate(10deg);
    transition: opacity 0.25s ease;
}

.edit-rituals-btn:hover .edit-icon {
    opacity: 1;
}

.btn-icon {
    font-size: 15px;
    opacity: 0.85;
    margin-bottom: 1px;
}

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,500;1,500&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;600&display=swap');

.war-banner-discipline {
    --banner-accent: #375bce;
    width: 100%;
    margin-bottom: 0.4rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 1.1rem;
    border-radius: 0.6rem;
    border: 1px solid var(--panel-border);
    background: radial-gradient(circle at top, rgba(255, 99, 71, 0.18), rgba(139, 0, 0, 0.35));
    box-shadow: var(--panel-shadow);
}

.war-banner-countdown {
    width: 100%;
    margin-bottom: 0.4rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 1.1rem;
    border-radius: 0.6rem;
    border: 1px solid var(--panel-border);
    background: radial-gradient(circle at top, rgba(99, 164, 255, 0.18), rgba(10, 40, 80, 0.35));
    box-shadow: var(--panel-shadow);
}
.war-duel-card {
    margin-top: 16px;
}

/* Duel images two-column layout */
.duel-images-row {
    display: flex;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.duel-image-column {
    flex: 1;
    min-width: 0;
}

.duel-column-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 0.5rem;
    object-fit: contain;
}

.duel-column-subheader {
    margin: 0.75rem 0 0.25rem 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #e4c680;
    letter-spacing: 0.5px;
}

.duel-column-meta {
    margin: 0;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.4;
}

/* Challenge form styling */
.duel-challenge-section {
    margin-top: 1rem;
}

.duel-challenge-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.duel-form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Desktop: username and assault order on same line, button below */
@media (min-width: 768px) {
    .duel-challenge-form {
        flex-direction: column;
        gap: 1rem;
    }
    
    .duel-form-group-row {
        display: flex;
        flex-direction: row;
        gap: 1rem;
        align-items: flex-end;
    }
    
    .duel-form-group-row .duel-form-group {
        flex: 1;
        min-width: 0;
    }
}

.duel-form-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 0.5px;
}

.duel-form-input,
.duel-form-select {
    padding: 0.75rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.4rem;
    color: #fff;
    font-size: 0.9rem;
    font-family: inherit;
    transition: border-color 0.2s, background 0.2s;
}

.duel-form-input:focus,
.duel-form-select:focus {
    outline: none;
    border-color: rgba(228, 198, 128, 0.5);
    background: rgba(0, 0, 0, 0.4);
}

.duel-form-input:disabled,
.duel-form-input[readonly] {
    opacity: 0.6;
    cursor: not-allowed;
    background: rgba(0, 0, 0, 0.2);
}

.duel-form-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.duel-form-select {
    cursor: url('img/kunai-cursor-64.png') 6 5, auto !important;
}

.duel-form-select:hover {
    cursor: url('img/kunai-cursor-64-hover.png') 6 5, auto !important;
}

.duel-form-select option {
    background: #1a1a1a;
    color: #fff;
}

/* Duel history section */
.duel-history-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.duel-history-entry {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    user-select: none;
    -webkit-user-select: none;
    touch-action: pan-y;
}

.duel-history-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    margin-top: 2px;
    opacity: 0.8;
}

.duel-history-text {
    margin: 0;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
    flex: 1;
}

.duel-history-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.duel-history-counter {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    margin-right: 0.25rem;
    letter-spacing: 0.5px;
}

.duel-history-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    cursor: url('img/kunai-cursor-64.png') 6 5, auto !important;
    transition: background 0.2s, transform 0.2s;
    padding: 0;
}

.duel-history-dot:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: scale(1.2);
    cursor: url('img/kunai-cursor-64-hover.png') 6 5, auto !important;
}

.duel-history-dot.active {
    background: #e4c680;
    transform: scale(1.3);
}

.duel-history-dot.duel-history-dot-prev,
.duel-history-dot.duel-history-dot-next {
    opacity: 0.5;
}

.duel-history-dot.duel-history-dot-prev:hover,
.duel-history-dot.duel-history-dot-next:hover {
    opacity: 0.8;
    transform: scale(1.1);
}

.duel-history-dot.duel-history-dot-current {
    opacity: 1;
}

/* Duel cards layout - full width, stacked */
.war-duel-grid {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    width: 100%;
    margin-top: 0.9rem;
}

.war-duel-grid > .war-duel-card {
    margin-top: 0 !important;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.war-duel-grid > .war-duel-card > .war-card-heading {
    margin-bottom: 0.6rem;
}

/* Golden card for Active Duels */
.war-duel-card-golden {
    background: radial-gradient(circle at top, #2a1f0f, #1a1208);
    border-color: rgba(255, 215, 128, 0.3);
}

.war-duel-card-golden .war-card-heading {
    color: #f4c148;
}

/* Red card for Incoming Challenges */
.war-duel-card-red {
    background: radial-gradient(circle at top, #2a0f0f, #1a0808);
    border-color: rgba(220, 60, 60, 0.3);
}

.war-duel-card-red .war-card-heading {
    color: #dc3c3c;
}

/* Gray card for History */
.war-duel-card-gray {
    background: radial-gradient(circle at top, #1a1a1a, #0f0f0f);
    border-color: rgba(150, 150, 150, 0.3);
}

.war-duel-card-gray .war-card-heading {
    color: #969696;
}

.war-duel-footer-standalone {
    margin-top: 0.9rem;
    width: 100%;
}

.war-duel-header {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 14px;
}

.war-duel-subtitle {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.55);
}

.war-duel-section + .war-duel-section {
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.war-duel-section-title {
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 8px;
}

.war-duel-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.war-duel-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    background: radial-gradient(circle at top left,
        rgba(255, 215, 128, 0.10),
        rgba(10, 10, 20, 0.95)
    );
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.war-duel-main {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.war-duel-vs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: baseline;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.war-duel-you {
    color: #ffd780;
}

.war-duel-opponent {
    color: #ff6b81;
}

.war-duel-vs-separator {
    color: rgba(255, 255, 255, 0.65);
}

.war-duel-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.7);
}

.war-duel-category {
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.war-duel-streak,
.war-duel-stakes {
    opacity: 0.8;
}

.war-duel-side {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}

.duel-status-pill {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.duel-status-ongoing {
    background: rgba(46, 213, 115, 0.12);
    border-color: rgba(46, 213, 115, 0.5);
    color: #a6f5c7;
}

.duel-status-won {
    background: rgba(255, 215, 128, 0.12);
    border-color: rgba(255, 215, 128, 0.7);
    color: #ffe6aa;
}

.duel-status-lost {
    background: rgba(255, 71, 87, 0.12);
    border-color: rgba(255, 71, 87, 0.7);
    color: #ff9fa8;
}

.war-btn-ghost {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: rgba(255, 255, 255, 0.85);
}

.war-btn-ghost:hover {
    background: rgba(255, 255, 255, 0.06);
    cursor: url('img/kunai-cursor-64-hover.png') 6 5, auto;
}

.war-btn-full {
    width: 100%;
    justify-content: center;
    text-align: center;
}

.war-btn-small {
    padding: 4px 10px;
    font-size: 0.75rem;
}

.war-duel-footer {
    margin-top: 16px;
}

.war-duel-empty {
    font-size: 0.8rem;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px dashed rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.6);
}

@media (max-width: 768px) {
    .war-duel-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .war-duel-side {
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
    }
}

.duel-history-section {
    margin-top: 20px;
}

.duel-history-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    padding-top: 14px;
    margin-top: 16px;
}

.duel-section-label {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
}

.duel-history-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: radial-gradient(circle at top, rgba(255, 255, 255, 0.1), transparent);
    cursor: url('img/hand-pointing-cursor.png') 6 5, pointer !important;
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.75);
}

.duel-history-toggle:hover {
    border-color: rgba(255, 255, 255, 0.4);
}

.duel-history-toggle-icon {
    font-size: 0.8rem;
    transform-origin: center;
    transition: transform 0.2s ease;
}

.duel-history-list {
    margin-top: 10px;
    border-radius: 10px;
    padding: 6px 12px;
    background: radial-gradient(circle at top, rgba(255, 255, 255, 0.04), transparent);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.25s ease, opacity 0.25s ease;
}

.duel-history-list.open {
    max-height: 320px;
    opacity: 1;
}

.duel-history-toggle.open .duel-history-toggle-icon {
    transform: rotate(-180deg);
}

.duel-history-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.8rem;
}

.duel-history-item:last-child {
    border-bottom: none;
}

.duel-history-main {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.duel-history-line {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: baseline;
}

.duel-history-vs {
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.9);
}

.duel-history-meta {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
}

.duel-history-result {
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border: 1px solid transparent;
}

.duel-history-result.win {
    background: radial-gradient(circle at top, rgba(74, 222, 128, 0.24), transparent);
    border-color: rgba(74, 222, 128, 0.6);
    color: rgb(187, 247, 208);
}

.duel-history-result.loss {
    background: radial-gradient(circle at top, rgba(248, 113, 113, 0.24), transparent);
    border-color: rgba(248, 113, 113, 0.7);
    color: rgb(254, 202, 202);
}

.duel-history-result.draw {
    background: radial-gradient(circle at top, rgba(252, 211, 77, 0.24), transparent);
    border-color: rgba(252, 211, 77, 0.7);
    color: rgb(254, 243, 199);
}

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

:root {
    --primary-color: #ff3a3a;
    --secondary-color: #3a7afe;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --bg-color: #0c0d10;            /* obsidian base */
    --bg-color-alt: #11131a;        /* panel base */
    --surface-color: #15171f;       /* card backgrounds */
    --surface-light: #1b1e27;       /* hover + elevated panels */
    --text-primary: #f2f2f7;        /* off-white */
    --text-secondary: #a8b0c0;      /* gray-blue */
    --border-color: #2a2d38;
    --accent-red: #ff3a3a;
    --accent-red-glow: #ff4444;
    --accent-blue: #3a7afe;
    --accent-purple: #6f4aff;
    --panel-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
    --panel-border: rgba(255, 255, 255, 0.04);
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --nav-panel-bg: linear-gradient(145deg, rgba(18, 22, 35, 0.96), rgba(6, 8, 14, 0.98));
    --nav-panel-border: rgba(255, 255, 255, 0.08);
    --nav-panel-shadow: 0 30px 60px rgba(0, 0, 0, 0.55);
    
    /* Category theme variables (dynamically set) */
    --category-primary: var(--primary-color);
    --category-secondary: var(--secondary-color);
    --category-accent: var(--accent-color);
}

html {
    cursor: url('img/kunai-cursor-64.png') 6 5, auto !important;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(180deg, #0a0a0e 0%, #0d0f14 50%, #13161d 100%);
    background-attachment: fixed;
    color: var(--text-primary);
    min-height: 100vh;
    padding: 0 0 60px;
    position: relative;
    cursor: url('img/kunai-cursor-64.png') 6 5, auto !important;
}

/* Ensure all interactive elements inherit the custom cursor */
button,
a,
input,
select,
label,
[role="button"],
[role="link"],
.clickable {
    cursor: url('img/kunai-cursor-64.png') 6 5, auto;
}

/* Hover cursor for interactive elements */
button:hover,
a:hover,
input:hover,
select:hover,
label:hover,
[role="button"]:hover,
[role="link"]:hover,
.clickable:hover {
    cursor: url('img/kunai-cursor-64-hover.png') 6 5, auto !important;
}


body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 40%, rgba(255, 58, 58, 0.08) 0%, transparent 45%),
        radial-gradient(circle at 80% 75%, rgba(106, 74, 255, 0.08) 0%, transparent 50%),
        radial-gradient(circle, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
    background-size: auto, auto, 140px 140px;
    background-position: center, center, 0 0;
    background-blend-mode: screen;
    pointer-events: none;
    z-index: 0;
}

body::after {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at bottom center, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0) 60%),
        radial-gradient(circle at center, transparent 55%, rgba(0, 0, 0, 0.35) 100%),
        linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.45) 100%);
    pointer-events: none;
    z-index: 0;
}

.app-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    padding: 0 clamp(20px, 4vw, 50px) 60px;
}

body.warroom-fullscreen .app-container {
    max-width: min(96vw, 1800px);
    width: 100%;
    padding: 0 clamp(12px, 3vw, 48px) 60px;
}


/* Header */
.header {
    width: 100%;
}

.header-inner {
    width: 100%;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.header-rail {
    width: 100%;
    display: flex;
    align-items: center;
    gap: clamp(12px, 2vw, 28px);
    background: linear-gradient(110deg, rgba(6, 10, 18, 0.95), rgba(12, 15, 28, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 12px clamp(16px, 3vw, 50px);
    box-shadow:
        0 25px 60px rgba(0, 0, 0, 0.55),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    border-radius: 0;
    position: relative;
    overflow: hidden;
}

.header-rail::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 65%);
    pointer-events: none;
    border-radius: inherit;
}

.header-anchor {
    flex: 1 1 0;
    min-height: 62px;
    display: flex;
    align-items: center;
    min-width: 0;
}

.header-anchor-title {
    justify-content: flex-start;
}

.header-anchor-clan {
    justify-content: flex-end;
    text-align: right;
    position: relative;
}

.header-anchor-clan::after {
    content: '';
    position: absolute;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    filter: blur(55px);
    background: radial-gradient(circle, rgba(255, 58, 58, 0.18), transparent 70%);
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    opacity: 0.35;
}

.header-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    align-items: stretch;
    justify-content: space-between;
}

.header h1 {
    font-size: 2.35rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--category-primary, var(--primary-color)) 0%, var(--category-secondary, var(--secondary-color)) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
    transform: translateY(4px);
}

.header-anchor-title h1 {
    margin: 0;
}

.header h1.ronin-title {
    font-family: 'Oswald', sans-serif;
    font-size: 2.4rem;
    letter-spacing: 0.35rem;
    text-transform: uppercase;
    position: relative;
    display: inline-block;
    margin: 0;
    margin-top: 0px;
    transform: scaleY(1.10);
    background: linear-gradient(180deg, #f9e6c1 0%, #d8ae69 45%, #6e5940 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow:
        0 0 1px rgba(255, 255, 255, 0.1),
        0 2px 6px rgba(0, 0, 0, 0.6),
        0 0 12px rgba(255, 215, 130, 0.25),
        0 -2px 4px rgba(255, 255, 255, 0.08);
}

.header h1.ronin-title::before {
    content: "";
    position: absolute;
    inset: 50% auto auto 50%;
    transform: translate(-50%, -52%);
    width: 200%;
    height: 260%;
    border-radius: 50%;
    background: radial-gradient(circle at 50% 40%, rgba(255, 195, 130, 0.12), transparent 70%);
    z-index: -1;
    pointer-events: none;
}

.header h1.ronin-title::after {
    content: "道";
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -48%);
    font-size: 6rem;
    opacity: 0.03;
    color: #f2d399;
    pointer-events: none;
}

.streak-card {
    background: #f7f7f7;   
    border: 2px solid rgba(0,0,0,0.15);
    border-radius: 14px;
    padding: 18px 24px;
    box-shadow:
        0 4px 12px rgba(0,0,0,0.08),
        inset 0 0 0 1px rgba(255,255,255,0.25);
    display: flex;
    flex-direction: column;
    gap: 6px; /* adds cleaner spacing */
}

.warroom-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    align-self: flex-start;
    margin-top: 4px;
    transition: opacity 0.2s ease, transform 0.2s ease;
    cursor: url('img/kunai-cursor-64.png') 6 5, auto;
}

.warroom-badge:hover {
    cursor: url('img/kunai-cursor-64-hover.png') 6 5, auto !important;
}

.warroom-logo {
    display: block;
    max-height: 56px;
    width: auto;
    object-fit: contain;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    --warroom-glow-shadow: drop-shadow(0 16px 25px rgba(0, 0, 0, 0.35));
    --warroom-glow-color: rgba(255, 215, 130, 0.6);
    filter: var(--warroom-glow-shadow) drop-shadow(0 0 6px var(--warroom-glow-color));
    animation: warroomGlow 4.5s ease-in-out infinite;
    transition: transform 0.25s ease, filter 0.25s ease;
    cursor: url('img/kunai-cursor-64.png') 6 5, auto;
}

.warroom-badge:hover .warroom-logo {
    cursor: url('img/kunai-cursor-64-hover.png') 6 5, auto !important;
}


.warroom-badge-text {
    font-family: 'Oswald', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    background: linear-gradient(180deg, #f9e6c1 0%, #d8ae69 45%, #6e5940 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow:
        0 0 1px rgba(255, 255, 255, 0.1),
        0 2px 6px rgba(0, 0, 0, 0.6),
        0 0 12px rgba(255, 215, 130, 0.25),
        0 -2px 4px rgba(255, 255, 255, 0.08);
    display: block;
    white-space: nowrap;
    transition: text-shadow 0.25s ease, transform 0.25s ease;
    cursor: url('img/kunai-cursor-64.png') 6 5, auto;
}

.warroom-badge:hover .warroom-badge-text {
    cursor: url('img/kunai-cursor-64-hover.png') 6 5, auto !important;
}

@keyframes warroomGlow {
    0%, 100% {
        filter: var(--warroom-glow-shadow) drop-shadow(0 0 4px rgba(255, 215, 130, 0.4));
    }
    50% {
        filter: var(--warroom-glow-shadow) drop-shadow(0 0 8px rgba(255, 215, 130, 0.7));
    }
}

@keyframes seasonMaskGlow {
    0%, 100% {
        filter: var(--warroom-glow-shadow) drop-shadow(0 0 35px rgba(215, 184, 122, 0.25));
    }
    50% {
        filter: var(--warroom-glow-shadow) drop-shadow(0 0 45px rgba(215, 184, 122, 0.35));
    }
}

@keyframes seasonInnerGlow {
    0%, 100% {
        opacity: 0.15;
        transform: translate(-50%, -50%) scale(0.67);
    }
    50% {
        opacity: 0.25;
        transform: translate(-50%, -50%) scale(1);
    }
}

.streak-main {
    font-size: 1.35rem;
    font-weight: 700;
    color: #1a1a1a;
    display: flex;
    align-items: center;
    gap: 10px;
}

.streak-icon {
    font-size: 1.1rem;
    animation: pulse 2s infinite;
    margin-right: 3px;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.streak-count {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--warning-color);
}

.streak-label {
    color: var(--text-secondary);
}

.streak-reset {
    font-size: 0.92rem;
    font-weight: 500;
    color: #7d8693; /* darker, better readability */
    display: flex;
    align-items: center;
    gap: 6px;
    padding-left: 4px;
}

.streak-reset-time {
    font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    letter-spacing: 0.03em;
}

.bonus-display {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--surface-color);
    padding: 15px 25px;
    border-radius: 15px;
    border: 2px solid var(--warning-color);
    box-shadow: 0 4px 6px rgba(245, 158, 11, 0.3);
}

.bonus-icon {
    font-size: 1.5rem;
}

.bonus-label {
    color: var(--warning-color);
    font-size: 1rem;
    font-weight: 600;
}

/* Category Tabs */
.category-tabs {
    flex: 5 1 0;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(12px, 2vw, 28px);
    padding-inline: clamp(8px, 1vw, 24px);
    background: transparent;
    border: none;
    box-shadow: none;
    overflow-x: auto;
    scrollbar-width: thin;
    --tab-accent: #a93a3a;
    --tab-accent-rgb: 169, 58, 58;
}
.category-tabs::before,
.category-tabs::after {
    content: '';
    flex: 1 1 0;
    min-width: 12px;
}

.category-tabs::-webkit-scrollbar {
    height: 6px;
}
.category-tabs::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}
.category-tabs::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 8px;
}

.category-tab {
    position: relative;
    flex: 1 1 auto;
    min-width: 110px;
    padding: 4px 2px 14px;
    border: none;
    background: transparent;
    color: rgba(240, 243, 255, 0.65);
    font-size: 0.78rem;
    letter-spacing: 0.26em;
    font-weight: 600;
    text-transform: uppercase;
    cursor: url('img/kunai-cursor-64.png') 6 5, auto !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    transition: color 0.25s ease, transform 0.25s ease;
}

.category-tab::after {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.05), rgba(var(--tab-accent-rgb, 163, 191, 250), 0.55), rgba(255, 255, 255, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.category-tab + .category-tab::before {
    content: '';
    position: absolute;
    left: -9px;
    top: 18%;
    bottom: 18%;
    width: 1px;
    background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    opacity: 0.45;
}

.category-tab:focus-visible {
    outline: 2px solid rgba(var(--tab-accent-rgb, 163, 191, 250), 0.4);
    outline-offset: 6px;
}

.category-tab:hover {
    color: rgba(255, 255, 255, 0.95);
    transform: translateY(-2px);
    cursor: url('img/kunai-cursor-64-hover.png') 6 5, auto !important;
}

.category-tab.active {
    color: #ffe8d1;
    text-shadow:
        0 0 4px rgba(var(--tab-accent-rgb, 163, 191, 250), 0.7),
        0 0 14px rgba(var(--tab-accent-rgb, 163, 191, 250), 0.35);
    box-shadow:
        0 4px 12px rgba(var(--tab-accent-rgb, 163, 191, 250), 0.25),
        0 14px 26px rgba(0, 0, 0, 0.45);
}

.category-tab.active::after {
    opacity: 0.4;
}

.category-tab-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.category-tab-accent {
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%) scaleX(0.4);
    width: 48px;
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(90deg,
        transparent,
        rgba(var(--tab-accent-rgb, 163, 191, 250), 0.9),
        transparent);
    box-shadow: 0 0 18px rgba(var(--tab-accent-rgb, 163, 191, 250), 0.75);
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.category-tab.active .category-tab-accent {
    opacity: 1;
    transform: translateX(-50%) scaleX(1);
    box-shadow:
        0 0 25px rgba(var(--tab-accent-rgb, 163, 191, 250), 0.75),
        0 4px 8px rgba(var(--tab-accent-rgb, 163, 191, 250), 0.25);
}

.category-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: inherit;
    position: relative;
    top: 2px;
}

.category-icon::after {
    content: '';
    position: absolute;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: radial-gradient(circle,
        rgba(255, 215, 145, 0.38) 0%,
        rgba(255, 205, 130, 0.18) 40%,
        rgba(255, 190, 100, 0.05) 70%,
        transparent 90%);
    filter: blur(10px);
    z-index: 0;
    pointer-events: none;
    transform: translate(-4px, -4px);
}

.category-icon-img,
.category-icon svg {
    width: 28px;
    height: 28px;
    display: block;
    object-fit: contain;
    filter:
        drop-shadow(0 0 12px rgba(255, 255, 255, 0.25)),
        drop-shadow(0 0 8px rgba(255, 200, 120, 0.65));
    stroke-width: 2.75;
}

.category-tab.active .category-icon {
    color: #fff;
    background: transparent;
    box-shadow: none;
}

.category-name {
    font-size: 0.76rem;
    letter-spacing: 0.32em;
    color: inherit;
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    background: transparent;
    border: none;
    padding: 8px;
    cursor: url('img/kunai-cursor-64.png') 6 5, auto !important;
    z-index: 1001;
    position: relative;
    flex-shrink: 0;
    transition: transform 0.15s ease;
    transform: translateY(4px);
}

.mobile-menu-icon {
    width: 44px;
    height: 44px;
    display: block;
    transition: opacity 0.3s ease, transform 0.3s ease, filter 0.15s ease;
    filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.3));
}

.mobile-menu-toggle:hover .mobile-menu-icon {
    opacity: 1;
    cursor: url('img/kunai-cursor-64-hover.png') 6 5, auto !important;
}

.mobile-menu-toggle.active .mobile-menu-icon {
    opacity: 0.7;
    transform: rotate(90deg);
}

.mobile-menu-toggle:active {
    transform: translateY(4px) scale(0.96);
}

.mobile-menu-toggle:active .mobile-menu-icon {
    opacity: 1;
    filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.5));
}

.mobile-menu-label {
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.58);
    font-weight: 600;
    transition: color 0.3s ease;
}

.mobile-menu-toggle:hover .mobile-menu-label {
    color: rgba(255, 255, 255, 0.75);
}

.mobile-menu-toggle:active .mobile-menu-label {
    color: rgba(255, 255, 255, 0.85);
}

.mobile-menu-toggle.active .mobile-menu-label {
    color: rgba(255, 255, 255, 0.5);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.85) 100%);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
    backdrop-filter: blur(4px);
}

.mobile-menu-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    max-width: 85vw;
    height: 100%;
    background: linear-gradient(180deg, 
        rgba(6, 10, 18, 0.98) 0%, 
        rgba(12, 15, 28, 0.98) 50%,
        rgba(6, 8, 14, 0.99) 100%);
    border-right: 1px solid rgba(255, 255, 255, 0.12);
    padding: 80px 0 0;
    margin: 0;
    transform: translateX(-100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    overflow-y: auto;
    box-shadow: 
        4px 0 30px rgba(0, 0, 0, 0.7),
        inset 1px 0 0 rgba(255, 255, 255, 0.08),
        inset -1px 0 0 rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    gap: 0;
    backdrop-filter: blur(20px);
    position: relative;
}

.mobile-menu::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(180deg, 
        rgba(255, 255, 255, 0.06) 0%, 
        transparent 100%);
    pointer-events: none;
    z-index: 0;
}

.mobile-menu-overlay.active .mobile-menu {
    transform: translateX(0);
}

.mobile-menu .category-tab {
    width: 100%;
    flex: none;
    min-width: 0;
    min-height: auto;
    padding: 16px 0;
    margin: 0;
    border-radius: 0;
    background: linear-gradient(90deg, 
        rgba(255, 255, 255, 0.05) 0%, 
        rgba(255, 255, 255, 0.03) 100%);
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.mobile-menu .category-tab::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, 
        rgba(var(--tab-accent-rgb, 163, 191, 250), 0.6) 0%, 
        transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease, width 0.3s ease;
    z-index: 0;
}

.mobile-menu .category-tab:hover {
    background: linear-gradient(90deg, 
        rgba(255, 255, 255, 0.1) 0%, 
        rgba(255, 255, 255, 0.05) 100%);
    transform: translateX(4px);
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 2px 8px rgba(0, 0, 0, 0.2);
}

.mobile-menu .category-tab:hover::before {
    opacity: 1;
}

.mobile-menu .category-tab:active {
    transform: translateX(2px) scale(0.98);
    transition: transform 0.1s ease;
}

.mobile-menu .category-tab.active {
    background: linear-gradient(90deg, 
        rgba(var(--tab-accent-rgb, 163, 191, 250), 0.15) 0%, 
        rgba(var(--tab-accent-rgb, 163, 191, 250), 0.08) 100%);
    border-bottom-color: rgba(var(--tab-accent-rgb, 163, 191, 250), 0.4);
    box-shadow: 
        0 4px 16px rgba(var(--tab-accent-rgb, 163, 191, 250), 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        inset -2px 0 0 rgba(var(--tab-accent-rgb, 163, 191, 250), 0.5);
}

.mobile-menu .category-tab.active::before {
    opacity: 1;
    width: 4px;
}

.mobile-menu .category-tab-body {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 16px;
    width: 100%;
    padding: 0 20px;
}

.mobile-menu .category-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    filter: 
        drop-shadow(0 0 8px rgba(255, 255, 255, 0.2)),
        drop-shadow(0 0 4px rgba(255, 200, 120, 0.4));
    transition: filter 0.3s ease;
}

.mobile-menu .category-tab:hover .category-icon {
    filter: 
        drop-shadow(0 0 12px rgba(255, 255, 255, 0.3)),
        drop-shadow(0 0 8px rgba(255, 200, 120, 0.6));
}

.mobile-menu .category-tab.active .category-icon {
    filter: 
        drop-shadow(0 0 16px rgba(var(--tab-accent-rgb, 163, 191, 250), 0.6)),
        drop-shadow(0 0 8px rgba(var(--tab-accent-rgb, 163, 191, 250), 0.8));
}

.mobile-menu .category-name {
    font-size: 0.9rem;
    letter-spacing: 0.2em;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    transition: text-shadow 0.3s ease;
}

.mobile-menu .category-tab.active .category-name {
    text-shadow: 
        0 0 8px rgba(var(--tab-accent-rgb, 163, 191, 250), 0.5),
        0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Tabs (Sub-tabs: Today/Weekly/Settings) */
.tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 2px solid var(--border-color);
    background: var(--surface-color);
    padding: 10px;
    border-radius: 12px 12px 0 0;
}

.tab-button {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 500;
    cursor: url('img/kunai-cursor-64.png') 6 5, auto !important;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.tab-button:hover {
    color: var(--text-primary);
    background: var(--surface-light);
    cursor: url('img/kunai-cursor-64-hover.png') 6 5, auto !important;
}

.tab-button.active {
    color: white;
    background: var(--category-primary, var(--primary-color));
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
    transform: translateY(-2px);
}

/* Tab Content */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

/* Tasks Container */
.tasks-container {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.category-section {
    background: linear-gradient(135deg, var(--surface-color) 0%, var(--surface-light) 100%);
    border-radius: 20px;
    padding: 25px;
    border: 2px solid var(--border-color);
    box-shadow: var(--panel-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.category-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--category-primary, var(--primary-color)) 0%, var(--category-secondary, var(--secondary-color)) 100%);
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.category-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

.category-progress {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--category-primary, var(--primary-color));
    text-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
    background: linear-gradient(135deg, var(--category-primary, var(--primary-color)) 0%, var(--category-secondary, var(--secondary-color)) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Progress Bar */
.progress-bar-container {
    width: 100%;
    min-height: 30px;
    background: var(--surface-light);
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 20px;
    position: relative;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 15px;
}

/* Rest Day Message */
.rest-day-message {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
    opacity: 0.7;
}

/* Bonus Mode Indicator */
.bonus-mode-indicator {
    font-size: 1rem;
    font-weight: 600;
    color: #fbbf24;
    text-shadow: 0 0 10px rgba(251, 191, 36, 0.5);
    animation: bonusGlow 2s ease-in-out infinite;
}

@keyframes bonusGlow {
    0%, 100% {
        text-shadow: 0 0 10px rgba(251, 191, 36, 0.5);
    }
    50% {
        text-shadow: 0 0 20px rgba(251, 191, 36, 0.8);
    }
}

/* Bonus Mode Progress Text */
.category-progress.bonus-mode {
    color: #fbbf24;
    text-shadow: 0 0 10px rgba(251, 191, 36, 0.5);
}

/* Category progress - remove blue gradient for martial theme */
.martial-theme .category-progress {
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: unset;
    background-clip: unset;
    color: var(--martial-ink-black);
    text-shadow: none;
}

.martial-theme .category-progress.bonus-mode {
    color: #c32722;
    text-shadow: none;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(135deg, var(--category-primary, var(--primary-color)) 0%, var(--category-secondary, var(--secondary-color)) 100%);
    border-radius: 15px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.5), inset 0 1px 2px rgba(255, 255, 255, 0.3);
}

.progress-bar-fill::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.2) 50%, transparent 100%);
    animation: progressShine 2s infinite;
}

@keyframes progressShine {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

.progress-bar-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.progress-bar-fill.complete {
    background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
    box-shadow: 0 0 30px rgba(16, 185, 129, 0.8), inset 0 1px 2px rgba(255, 255, 255, 0.4);
    animation: completePulse 2s ease-in-out infinite;
}

@keyframes completePulse {
    0%, 100% {
        box-shadow: 0 0 30px rgba(16, 185, 129, 0.8), inset 0 1px 2px rgba(255, 255, 255, 0.4);
    }
    50% {
        box-shadow: 0 0 40px rgba(16, 185, 129, 1), inset 0 1px 2px rgba(255, 255, 255, 0.5);
    }
}

/* Task List */
.task-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.task-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--surface-light);
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.task-item:hover {
    background: var(--border-color);
    transform: translateX(3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.task-item[data-tooltip],
.training-task[data-tooltip],
.upcoming-rituals-list li[data-tooltip],
.training-task-info-icon[data-tooltip],
.training-edit-name-wrapper[data-tooltip] {
    position: relative;
}

.task-item[data-tooltip]::after,
.training-task[data-tooltip]::after,
.training-task-info-icon[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 16px;
    bottom: calc(100% + 14px);
    min-width: min(220px, calc(100vw - 48px));
    max-width: min(320px, calc(100vw - 48px));
    background: rgba(8, 11, 19, 0.95);
    border: 1px solid rgba(212, 184, 134, 0.35);
    color: rgba(247, 242, 218, 0.92);
    padding: 0.55rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.85rem;
    line-height: 1.35;
    letter-spacing: 0.01em;
    text-transform: none;
    box-shadow: 0 10px 25px rgba(2, 6, 23, 0.4);
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.18s ease, transform 0.18s ease;
    pointer-events: none;
    z-index: 25;
    white-space: normal;
    word-break: break-word;
}

.upcoming-rituals-list li[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 16px;
    bottom: calc(100% + 14px);
    min-width: min(220px, calc(100vw - 48px));
    max-width: min(320px, calc(100vw - 48px));
    background: rgba(8, 11, 19, 0.95);
    border: 1px solid rgba(212, 184, 134, 0.35);
    color: rgba(247, 242, 218, 0.92);
    padding: 0.55rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.85rem;
    line-height: 1.35;
    letter-spacing: 0.01em;
    text-transform: none;
    box-shadow: 0 10px 25px rgba(2, 6, 23, 0.4);
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.18s ease, transform 0.18s ease;
    pointer-events: none;
    z-index: 25;
    white-space: normal;
    word-break: break-word;
}


.training-task-info-icon[data-tooltip]::after {
    left: 50%;
    transform: translateX(-50%) translateY(6px);
    bottom: calc(100% + 10px);
}

.training-edit-name-wrapper {
    position: relative;
    width: 100%;
}

.training-edit-name-wrapper[data-tooltip] {
    position: relative;
}

.momentum-tooltip {
    position: fixed;
    min-width: min(220px, calc(100vw - 48px));
    max-width: min(320px, calc(100vw - 48px));
    background: rgba(8, 11, 19, 0.95);
    border: 1px solid rgba(212, 184, 134, 0.35);
    color: rgba(247, 242, 218, 0.92);
    padding: 0.7rem 0.9rem;
    border-radius: 0.5rem;
    font-family: 'Noto Serif JP', serif;
    font-size: 14px;
    line-height: 1.45;
    letter-spacing: 0.3px;
    text-transform: none;
    box-shadow: 0 10px 25px rgba(2, 6, 23, 0.4);
    opacity: 0;
    transition: opacity 0.18s ease;
    pointer-events: none;
    z-index: 10002;
    white-space: normal;
    word-break: break-word;
}

.momentum-tooltip::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 100%;
    width: 0;
    height: 0;
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-top: 7px solid rgba(8, 11, 19, 0.95);
    transform: translateX(-50%);
    margin-top: -1px;
}

.task-item[data-tooltip]::before,
.training-task[data-tooltip]::before,
.training-task-info-icon[data-tooltip]::before {
    content: '';
    position: absolute;
    left: 30px;
    bottom: calc(100% + 6px);
    width: 0;
    height: 0;
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-top: 7px solid rgba(8, 11, 19, 0.95);
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.18s ease, transform 0.18s ease;
    z-index: 24;
}

/* For upcoming rituals, keep the bullet in ::before and add tooltip arrow to ::after */
.upcoming-rituals-list li[data-tooltip]::before {
    content: '•';
    position: absolute;
    left: 0.35rem;
    color: #d4b886;
}

.training-task-info-icon[data-tooltip]::before {
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    bottom: calc(100% + 3px);
}

.training-edit-name-wrapper[data-tooltip]::before {
    content: '';
    position: absolute;
    left: 50%;
    bottom: calc(100% + 5px);
    width: 0;
    height: 0;
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-top: 7px solid rgba(8, 11, 19, 0.95);
    opacity: 0;
    transform: translateX(-50%) translateY(4px);
    transition: opacity 0.18s ease, transform 0.18s ease;
    z-index: 10000;
}

.task-item[data-tooltip]:hover::after,
.training-task[data-tooltip]:hover::after,
.task-item[data-tooltip]:hover::before,
.training-task[data-tooltip]:hover::before {
    opacity: 1;
    transform: translateY(0);
}

.upcoming-rituals-list li[data-tooltip]:hover::after {
    opacity: 1;
    transform: translateY(0);
}

.upcoming-rituals-list li[data-tooltip]:hover::before {
    /* Keep the bullet visible on hover */
    content: '•';
    opacity: 1;
    transform: none;
}

.training-task-info-icon[data-tooltip]:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}


.training-task-info-icon[data-tooltip]:hover::before {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}


.task-item.completed {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(16, 185, 129, 0.05) 100%);
    border-color: var(--success-color);
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.3);
}

.task-checkbox {
    width: 28px;
    height: 28px;
    cursor: url('img/hand-pointing-cursor.png') 6 5, pointer !important;
    accent-color: var(--category-primary, var(--primary-color));
    transform: scale(1);
    border-radius: 50%;
    appearance: none;
    -webkit-appearance: none;
    background: var(--surface-color);
    border: 3px solid var(--border-color);
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.task-checkbox:hover {
    border-color: var(--category-primary, var(--primary-color));
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.4);
    transform: scale(1.1);
}

.task-checkbox:checked {
    background: var(--category-primary, var(--primary-color));
    border-color: var(--category-primary, var(--primary-color));
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.6);
}

.task-checkbox:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 18px;
    font-weight: bold;
    animation: checkmarkPop 0.3s ease;
}

@keyframes checkmarkPop {
    0% {
        transform: translate(-50%, -50%) scale(0);
    }
    50% {
        transform: translate(-50%, -50%) scale(1.3);
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
    }
}

/* Ink/blood splatter animation for Physical Training */
.ink-splatter {
    position: fixed;
    pointer-events: none;
    border-radius: 50% 40% 60% 30% / 50% 60% 40% 50%; /* Organic splatter shape */
    animation: splatterExpand 0.2s ease-out, splatterFade 0.5s ease-out 0.2s forwards;
    transform-origin: center center;
}

@keyframes splatterExpand {
    0% {
        transform: scale(0);
        opacity: 0.95;
    }
    100% {
        transform: scale(1);
        opacity: 0.95;
    }
}

@keyframes splatterFade {
    0% {
        opacity: 0.95;
    }
    100% {
        opacity: 0;
    }
}

.ink-droplet {
    position: fixed;
    pointer-events: none;
    border-radius: 50%;
}

/* Purple ink/calligraphy animation for Mental Training */
.ink-calligraphy {
    position: fixed;
    pointer-events: none;
    animation: calligraphyExpand 0.25s ease-out, calligraphyFade 0.5s ease-out 0.25s forwards;
    transform-origin: center center;
}

@keyframes calligraphyExpand {
    0% {
        transform: scale(0);
        opacity: 0.9;
    }
    100% {
        transform: scale(1);
        opacity: 0.9;
    }
}

@keyframes calligraphyFade {
    0% {
        opacity: 0.9;
    }
    100% {
        opacity: 0;
    }
}

.ink-calligraphy-droplet {
    position: fixed;
    pointer-events: none;
    border-radius: 50%;
}

/* Gentle light/energy animation for Inner Temple */
.light-ring {
    position: fixed;
    pointer-events: none;
    border-radius: 50%;
}

.light-particle {
    position: fixed;
    pointer-events: none;
    border-radius: 50%;
}

.task-label {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.task-name {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 0.3px;
}

.task-item.completed .task-name {
    text-decoration: line-through;
    color: var(--text-secondary);
}

.task-item.weekend-bonus {
    border-color: var(--warning-color);
    background: rgba(245, 158, 11, 0.05);
}

.task-item.weekend-bonus:hover {
    background: rgba(245, 158, 11, 0.1);
}

/* Bonus Task Styling (Weekend) */
.task-item.bonus-task {
    border: 2px solid rgba(251, 191, 36, 0.6);
    background: linear-gradient(135deg, 
        rgba(251, 191, 36, 0.15) 0%, 
        rgba(245, 158, 11, 0.1) 100%);
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(251, 191, 36, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
}

.task-item.bonus-task::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(251, 191, 36, 0.1) 0%, 
        rgba(245, 158, 11, 0.05) 100%);
    pointer-events: none;
    border-radius: 12px;
}

.task-item.bonus-task.completed {
    border-color: rgba(251, 191, 36, 0.8);
    background: linear-gradient(135deg, 
        rgba(251, 191, 36, 0.25) 0%, 
        rgba(245, 158, 11, 0.15) 100%);
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.3),
        0 0 25px rgba(251, 191, 36, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.bonus-badge {
    font-size: 0.8rem;
    color: #fbbf24;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.3) 0%, rgba(245, 158, 11, 0.2) 100%);
    padding: 5px 10px;
    border-radius: 10px;
    font-weight: 700;
    border: 2px solid #fbbf24;
    box-shadow: 0 0 10px rgba(251, 191, 36, 0.5), inset 0 1px 2px rgba(255, 255, 255, 0.2);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        box-shadow: 0 0 10px rgba(251, 191, 36, 0.5), inset 0 1px 2px rgba(255, 255, 255, 0.2);
    }
    to {
        box-shadow: 0 0 15px rgba(251, 191, 36, 0.8), inset 0 1px 2px rgba(255, 255, 255, 0.3);
    }
}

.schedule-badge {
    font-size: 0.7rem;
    color: var(--category-primary, var(--primary-color));
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2) 0%, rgba(99, 102, 241, 0.1) 100%);
    padding: 4px 10px;
    border-radius: 10px;
    font-weight: 600;
    border: 1.5px solid rgba(99, 102, 241, 0.4);
    margin-left: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.schedule-badge.schedule-all {
    color: var(--success-color);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, rgba(16, 185, 129, 0.1) 100%);
    border-color: rgba(16, 185, 129, 0.4);
}

/* Buttons */
.btn-primary, .btn-secondary {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: url('img/hand-pointing-cursor.png') 6 5, pointer !important;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--gradient-1);
    color: white;
    box-shadow: 0 4px 6px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(99, 102, 241, 0.4);
    cursor: url('img/kunai-cursor-64-hover.png') 6 5, auto;
}

.btn-secondary {
    background: var(--surface-light);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--border-color);
    cursor: url('img/kunai-cursor-64-hover.png') 6 5, auto;
}

/* Weekly View */
.weekly-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px;
    background: var(--surface-color);
    border-radius: 15px;
}

/* Physical Training week navigation styling */
.martial-theme .weekly-controls {
    background-color: #0F1215;
}

.week-nav-btn {
    padding: 10px 20px;
    background: var(--surface-light);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: 8px;
    cursor: url('img/hand-pointing-cursor.png') 6 5, pointer !important;
    transition: all 0.3s ease;
}

.martial-theme .week-nav-btn {
    background-color: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
    color: #E6E6E6;
}

.martial-theme .week-nav-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.week-display {
    font-size: 1.2rem;
    font-weight: 600;
}

.martial-theme .week-display {
    color: #E6E6E6;
}

.chart-container {
    background: var(--surface-color);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 25px;
    border: 1px solid var(--border-color);
}

/* Physical Training chart styling */
.martial-theme .chart-container {
    background-color: #0F1215;
}

.martial-theme .chart-container canvas {
    background-color: #0F1215;
}

/* Heatmap */
.heatmap-container {
    background: var(--surface-color);
    border-radius: 15px;
    padding: 25px;
    margin-top: 25px;
    margin-bottom: 25px;
    border: 1px solid var(--border-color);
    overflow-x: auto;
}

/* Match chart container styling for different themes */
.martial-theme .heatmap-container {
    background-color: #0F1215;
}

.heatmap-wrapper {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.heatmap-month-labels-wrapper {
    display: flex;
    gap: 10px;
    margin-bottom: 8px;
    align-items: flex-start;
}

.heatmap-month-labels {
    flex: 1;
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 600;
    height: 20px;
    align-items: center;
}

.heatmap-month-label {
    white-space: nowrap;
    text-align: left;
    padding-left: 2px;
}

.heatmap-content {
    display: flex;
    gap: 10px;
}

.heatmap-day-labels {
    display: flex;
    flex-direction: column;
    gap: 3px;
    width: 45px;
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 600;
    padding-top: 3px;
}

.heatmap-day-label {
    height: 18px;
    line-height: 18px;
    text-align: right;
    padding-right: 8px;
}

.heatmap-grid {
    display: grid;
    grid-template-rows: repeat(7, 18px);
    gap: 3px;
    flex: 1;
}

.heatmap-cell {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    border: 1px solid transparent;
    cursor: url('img/hand-pointing-cursor.png') 6 5, pointer !important;
    transition: all 0.2s ease;
    position: relative;
}

.heatmap-cell:hover {
    transform: scale(1.3);
    z-index: 10;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
    border-width: 2px;
}

.heatmap-cell-empty {
    background-color: rgba(71, 85, 105, 0.15) !important;
    border-color: rgba(71, 85, 105, 0.2) !important;
    cursor: default;
}

.heatmap-cell-empty:hover {
    transform: none;
    box-shadow: none;
}

.heatmap-cell-today {
    border-width: 2px;
    box-shadow: 0 0 4px rgba(255, 255, 255, 0.4);
}

/* Heatmap tooltip (using title attribute, but can enhance with custom tooltip if needed) */
.heatmap-cell[title] {
    position: relative;
}

/* Responsive heatmap */
@media (max-width: 768px) {
    .heatmap-container {
        padding: 15px;
        overflow-x: scroll;
    }
    
    .heatmap-cell {
        width: 14px;
        height: 14px;
    }
    
    .heatmap-grid {
        grid-template-rows: repeat(7, 14px);
    }
    
    .heatmap-day-label {
        height: 14px;
        line-height: 14px;
    }
    
    .heatmap-day-labels {
        width: 35px;
        font-size: 0.65rem;
    }
    
    .heatmap-month-labels {
        font-size: 0.65rem;
    }
}

/* Settings */
.settings-section {
    background: var(--surface-color);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 25px;
    border: 1px solid var(--border-color);
}

.settings-section h2 {
    margin-bottom: 20px;
    color: var(--text-primary);
}

.settings-caption {
    margin-top: -10px;
    margin-bottom: 16px;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.settings-select {
    width: 100%;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    background: var(--background-color);
    color: var(--text-primary);
    font-size: 1rem;
    margin-bottom: 12px;
}

.timezone-current {
    display: flex;
    gap: 8px;
    align-items: baseline;
    margin-bottom: 12px;
    font-size: 1rem;
}

.timezone-label {
    font-weight: 600;
    color: var(--text-secondary);
}

.timezone-value {
    color: var(--text-primary);
}

.settings-warning {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.settings-warning.warning-active {
    color: #f97316;
}

.timezone-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.timezone-alert {
    border: 1px solid var(--accent-color);
    background: rgba(234, 88, 12, 0.1);
}

#taskList {
    margin-top: 20px;
}

.task-manage-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: var(--surface-light);
    border-radius: 10px;
    margin-bottom: 10px;
}

.task-manage-info {
    flex: 1;
}

.task-manage-name {
    font-weight: 600;
    color: var(--text-primary);
}

.task-manage-details {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 5px;
}

.task-manage-context {
    margin-top: 6px;
    font-size: 0.85rem;
    line-height: 1.4;
    color: rgba(247, 242, 218, 0.75);
    font-style: italic;
}

.btn-danger {
    padding: 8px 16px;
    background: var(--danger-color);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: url('img/hand-pointing-cursor.png') 6 5, pointer !important;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.btn-danger:hover {
    background: #dc2626;
    transform: scale(1.05);
    cursor: url('img/kunai-cursor-64-hover.png') 6 5, auto;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.modal.active {
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: var(--surface-color);
    border-radius: 15px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    position: relative;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    color: var(--text-secondary);
    cursor: url('img/hand-pointing-cursor.png') 6 5, pointer !important;
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: var(--text-primary);
}

.modal-content h2 {
    margin-bottom: 25px;
    color: var(--text-primary);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-weight: 500;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px;
    background: var(--surface-light);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1rem;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 25px;
}

/* Day selection grid */
.day-selection-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    margin-top: 10px;
    margin-bottom: 15px;
}

/* Keep old class name for backward compatibility */
.day-checkboxes {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    margin-top: 10px;
    margin-bottom: 15px;
}

.day-checkbox-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 8px;
    background: var(--surface-light);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: url('img/hand-pointing-cursor.png') 6 5, pointer !important;
    transition: all 0.3s ease;
    font-size: 0.85rem;
    color: var(--text-primary);
    text-align: center;
}

.day-checkbox-label:hover {
    background: var(--surface-color);
    border-color: var(--primary-color);
}

.day-checkbox-label input[type="checkbox"] {
    width: auto;
    margin: 0;
    cursor: url('img/hand-pointing-cursor.png') 6 5, pointer !important;
    order: -1; /* Put checkbox above text */
}

.day-checkbox-label:has(input[type="checkbox"]:checked) {
    color: var(--primary-color);
    border-color: var(--primary-color);
    background: rgba(99, 102, 241, 0.1);
}

.day-checkbox-label input[type="checkbox"]:checked + span {
    color: var(--primary-color);
    font-weight: 600;
}

.day-checkbox-label input[type="checkbox"]:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Day preset buttons */
.day-preset-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.preset-btn {
    padding: 8px 16px;
    background: var(--surface-light);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: url('img/hand-pointing-cursor.png') 6 5, pointer !important;
    transition: all 0.3s ease;
}

.preset-btn:hover {
    background: var(--surface-color);
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-1px);
}

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

/* Celebration Effects */
.celebration {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 2000;
}

/* Animations */
@keyframes checkmark {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.task-item.completed .task-checkbox {
    animation: checkmark 0.4s ease;
}

/* Weekly Summary Widget */
.weekly-summary {
    margin-top: 40px;
    padding: 25px;
    background: linear-gradient(135deg, var(--surface-color) 0%, var(--surface-light) 100%);
    border-radius: 20px;
    border: 2px solid var(--border-color);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.weekly-summary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--category-primary, var(--primary-color)) 0%, var(--category-secondary, var(--secondary-color)) 100%);
}

.weekly-summary-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--category-primary, var(--primary-color));
    margin-bottom: 20px;
}

.daily-progress-cards {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
    margin-bottom: 25px;
}

.daily-card {
    background: var(--surface-light);
    border-radius: 12px;
    padding: 15px 10px;
    text-align: center;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.daily-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(255, 255, 255, 0.05) 100%);
    pointer-events: none;
}

.daily-card.today {
    border-color: var(--category-primary, var(--primary-color));
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(99, 102, 241, 0.05) 100%);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.4);
    transform: scale(1.05);
}

.daily-card.completed {
    border-color: var(--success-color);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(16, 185, 129, 0.05) 100%);
}

.daily-card.completed .daily-percentage {
    color: var(--success-color);
}

.daily-card.weekend {
    opacity: 0.5;
    background: var(--surface-color);
}

.daily-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.daily-percentage {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.daily-card:not(.weekend) .daily-percentage {
    color: var(--category-primary, var(--primary-color));
}

.daily-card.today .daily-percentage {
    color: var(--category-primary, var(--primary-color));
    text-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
}

/* Green for completed days (≥80%), gray for incomplete */
.daily-card:not(.weekend):not(.today) .daily-percentage {
    color: var(--text-secondary);
}

.daily-card:not(.weekend):not(.today)[data-completion="100"] .daily-percentage,
.daily-card:not(.weekend):not(.today)[data-completion="80"] .daily-percentage,
.daily-card:not(.weekend):not(.today)[data-completion="90"] .daily-percentage {
    color: var(--success-color);
}

.summary-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

/* Bonus Metric Card */
.metric-card.bonus-metric {
    border: 2px solid rgba(251, 191, 36, 0.5);
    background: linear-gradient(135deg, 
        rgba(251, 191, 36, 0.15) 0%, 
        rgba(245, 158, 11, 0.1) 100%);
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.3);
}

.metric-card.bonus-metric:hover {
    border-color: rgba(251, 191, 36, 0.7);
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(251, 191, 36, 0.5);
}

.metric-card.bonus-metric .metric-value {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.metric-card {
    background: var(--surface-light);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
}

.metric-card:hover {
    border-color: var(--category-primary, var(--primary-color));
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}

.metric-value {
    font-size: 2.2rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--category-primary, var(--primary-color)) 0%, var(--category-secondary, var(--secondary-color)) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.metric-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* City Pop Theme (Japanese Learning) - Refined */
body.citypop-theme {
    --citypop-pink: #d946ef; /* Softer pink */
    --citypop-purple: #8b5cf6; /* Muted purple */
    --citypop-teal: #14b8a6; /* Softer teal */
    --citypop-orange: #f59e0b; /* Muted orange */
    --citypop-blue: #3b82f6; /* Navy blue */
    --citypop-bg: linear-gradient(180deg, var(--bg-color) 0%, var(--bg-color-alt) 35%, #1e1b4b 100%);
    background: var(--citypop-bg);
    position: relative;
}

body.citypop-theme::before {
    background: 
        radial-gradient(circle at 20% 20%, rgba(217, 70, 239, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(20, 184, 166, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(139, 92, 246, 0.06) 0%, transparent 70%);
}

/* Tokyo Skyline Background */
.citypop-theme .app-container::before {
    content: '';
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: 
        linear-gradient(to top, rgba(0, 0, 0, 0.3) 0%, transparent 100%),
        url("data:image/svg+xml,%3Csvg width='100' height='100' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='10' y='60' width='8' height='40' fill='%23333'/%3E%3Crect x='25' y='50' width='10' height='50' fill='%23444'/%3E%3Crect x='45' y='40' width='12' height='60' fill='%23333'/%3E%3Crect x='65' y='55' width='8' height='45' fill='%23444'/%3E%3Crect x='80' y='45' width='10' height='55' fill='%23333'/%3E%3C/svg%3E") repeat-x;
    background-size: 100px 100px;
    background-position: bottom;
    opacity: 0.3;
    pointer-events: none;
    z-index: 0;
}

.citypop-theme .category-section {
    background: linear-gradient(135deg, 
        rgba(30, 41, 59, 0.8) 0%, 
        rgba(15, 23, 42, 0.9) 100%);
    border: 2px solid rgba(217, 70, 239, 0.3);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.4),
        0 0 20px rgba(217, 70, 239, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.citypop-theme .category-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(217, 70, 239, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(217, 70, 239, 0.05) 1px, transparent 1px);
    background-size: 20px 20px;
    pointer-events: none;
    opacity: 0.4;
}

.citypop-theme .category-section::before {
    background: linear-gradient(90deg, 
        rgba(217, 70, 239, 0.6) 0%, 
        rgba(139, 92, 246, 0.6) 50%, 
        rgba(20, 184, 166, 0.6) 100%);
    height: 3px;
    box-shadow: 0 0 10px rgba(217, 70, 239, 0.3);
}

/* Refined Progress Bar */
.citypop-theme .progress-bar-fill {
    background: linear-gradient(90deg, 
        rgba(217, 70, 239, 0.8) 0%, 
        rgba(139, 92, 246, 0.8) 50%, 
        rgba(20, 184, 166, 0.8) 100%);
    box-shadow: 
        0 0 15px rgba(217, 70, 239, 0.4),
        inset 0 1px 2px rgba(255, 255, 255, 0.2);
    animation: subtlePulse 3s ease-in-out infinite;
}

@keyframes subtlePulse {
    0%, 100% {
        box-shadow: 
            0 0 15px rgba(217, 70, 239, 0.4),
            inset 0 1px 2px rgba(255, 255, 255, 0.2);
    }
    50% {
        box-shadow: 
            0 0 20px rgba(217, 70, 239, 0.5),
            inset 0 1px 2px rgba(255, 255, 255, 0.3);
    }
}

.citypop-theme .progress-bar-fill.complete {
    background: linear-gradient(90deg, 
        rgba(20, 184, 166, 0.9) 0%, 
        rgba(59, 130, 246, 0.9) 100%);
    box-shadow: 
        0 0 20px rgba(20, 184, 166, 0.5),
        inset 0 1px 2px rgba(255, 255, 255, 0.3);
}

/* Refined Task Cards */
.citypop-theme .task-item {
    background: rgba(30, 41, 59, 0.7);
    border: 1px solid rgba(71, 85, 105, 0.5);
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(5px);
}

.citypop-theme .task-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(217, 70, 239, 0.05) 0%, 
        rgba(20, 184, 166, 0.05) 100%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.citypop-theme .task-item:hover::before {
    opacity: 1;
}

.citypop-theme .task-item.completed {
    background: rgba(20, 184, 166, 0.15);
    border-color: rgba(20, 184, 166, 0.4);
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.3),
        0 0 15px rgba(20, 184, 166, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Refined Streak Counter */
.citypop-theme .streak-display {
    background: rgba(15, 23, 42, 0.9);
    border: 2px solid rgba(20, 184, 166, 0.4);
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.4),
        0 0 15px rgba(20, 184, 166, 0.2);
    font-family: 'Courier New', monospace;
    position: relative;
    backdrop-filter: blur(10px);
}

.citypop-theme .streak-display::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(78, 205, 196, 0.1) 2px,
            rgba(78, 205, 196, 0.1) 4px
        );
    pointer-events: none;
}

.citypop-theme .streak-count {
    color: var(--citypop-teal);
    text-shadow: 0 0 8px rgba(20, 184, 166, 0.6);
    font-family: 'Courier New', monospace;
    font-weight: 700;
    letter-spacing: 2px;
}

.citypop-theme .streak-icon {
    filter: drop-shadow(0 0 5px rgba(245, 158, 11, 0.5));
}

/* Refined Category Title */
.citypop-theme .category-title {
    background: linear-gradient(135deg, 
        var(--citypop-pink) 0%, 
        var(--citypop-teal) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Refined Header Title */
.citypop-theme .header h1 {
    background: linear-gradient(135deg, 
        var(--citypop-pink) 0%, 
        var(--citypop-purple) 50%, 
        var(--citypop-teal) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}



/* Refined Bonus Badge */
.citypop-theme .bonus-badge {
    background: rgba(245, 158, 11, 0.2);
    border: 1.5px solid rgba(245, 158, 11, 0.5);
    color: #fbbf24;
    box-shadow: 
        0 2px 8px rgba(245, 158, 11, 0.3),
        inset 0 1px 2px rgba(255, 255, 255, 0.1);
}

/* Refined Schedule Badge */
.citypop-theme .schedule-badge {
    background: rgba(20, 184, 166, 0.15);
    border: 1.5px solid rgba(20, 184, 166, 0.4);
    color: var(--citypop-teal);
    box-shadow: 0 2px 6px rgba(20, 184, 166, 0.2);
}

/* Category Progress with Neon */
.citypop-theme .category-progress {
    color: var(--citypop-teal);
    text-shadow: 0 0 8px rgba(20, 184, 166, 0.5);
    font-family: 'Courier New', monospace;
    letter-spacing: 1px;
}

/* Refined Checkbox */
.citypop-theme .task-checkbox {
    background: rgba(30, 41, 59, 0.8);
    border-color: rgba(71, 85, 105, 0.6);
}

.citypop-theme .task-checkbox:checked {
    background: linear-gradient(135deg, 
        rgba(217, 70, 239, 0.8) 0%, 
        rgba(20, 184, 166, 0.8) 100%);
    border-color: rgba(20, 184, 166, 0.6);
    box-shadow: 
        0 0 10px rgba(20, 184, 166, 0.4),
        inset 0 0 8px rgba(255, 255, 255, 0.2);
}

/* Refined Daily Cards */
.citypop-theme .daily-card {
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(71, 85, 105, 0.4);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.citypop-theme .daily-card.today {
    border-color: rgba(20, 184, 166, 0.5);
    background: rgba(20, 184, 166, 0.15);
    box-shadow: 
        0 0 15px rgba(20, 184, 166, 0.3),
        0 2px 8px rgba(0, 0, 0, 0.2);
}

.citypop-theme .daily-card.completed {
    border-color: rgba(20, 184, 166, 0.4);
    background: rgba(20, 184, 166, 0.1);
    box-shadow: 0 0 10px rgba(20, 184, 166, 0.2);
}

.citypop-theme .daily-percentage {
    color: var(--text-secondary);
}

.citypop-theme .daily-card.today .daily-percentage,
.citypop-theme .daily-card.completed .daily-percentage {
    color: var(--citypop-teal);
    text-shadow: 0 0 8px rgba(20, 184, 166, 0.5);
}

/* Refined Metric Cards */
.citypop-theme .metric-card {
    background: rgba(30, 41, 59, 0.7);
    border: 1px solid rgba(71, 85, 105, 0.4);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.citypop-theme .metric-card:hover {
    border-color: rgba(20, 184, 166, 0.5);
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.3),
        0 0 15px rgba(20, 184, 166, 0.3);
    transform: translateY(-2px);
}

.citypop-theme .metric-value {
    background: linear-gradient(135deg, 
        var(--citypop-pink) 0%, 
        var(--citypop-teal) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Refined Weekly Summary */
.citypop-theme .weekly-summary-title {
    background: linear-gradient(135deg, 
        var(--citypop-pink) 0%, 
        var(--citypop-teal) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.citypop-theme .weekly-summary {
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid rgba(71, 85, 105, 0.4);
}

.citypop-theme .weekly-summary::before {
    background: linear-gradient(90deg, 
        rgba(217, 70, 239, 0.6) 0%, 
        rgba(139, 92, 246, 0.6) 50%, 
        rgba(20, 184, 166, 0.6) 100%);
    height: 3px;
    box-shadow: 0 0 10px rgba(217, 70, 239, 0.3);
}

/* Refined Active Tab */
.citypop-theme .tab-button.active {
    background: linear-gradient(135deg, 
        rgba(217, 70, 239, 0.8) 0%, 
        rgba(20, 184, 166, 0.8) 100%);
    box-shadow: 
        0 4px 12px rgba(217, 70, 239, 0.4),
        0 0 15px rgba(20, 184, 166, 0.3);
}

/* Refined Category Tab */
.citypop-theme .category-tab.active {
    background: linear-gradient(135deg, 
        rgba(217, 70, 239, 0.8) 0%, 
        rgba(139, 92, 246, 0.8) 50%, 
        rgba(20, 184, 166, 0.8) 100%);
    box-shadow: 
        0 4px 12px rgba(217, 70, 239, 0.4),
        0 0 15px rgba(20, 184, 166, 0.3);
    border: 2px solid rgba(20, 184, 166, 0.5);
}

/* Martial Theme (Fitness) - Sumi-e Ink Wash Style */
body.martial-theme {
    --martial-red: #DC143C;
    --martial-dark-red: #8B0000;
    --martial-gold: #D4AF37;
    --martial-ink-black: #1a1a1a;
    --martial-paper: #f5f5f0;
    --martial-gray: #6b6b6b;
}

/* Sumi-e paper texture background */
body.martial-theme {
    background: 
        radial-gradient(circle at 20% 30%, rgba(220, 20, 60, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(26, 26, 26, 0.05) 0%, transparent 50%),
        linear-gradient(180deg, #fafafa 0%, #f5f5f0 100%);
    background-attachment: fixed;
}

body.martial-theme::before {
    background: 
        url("data:image/svg+xml,%3Csvg width='100' height='100' xmlns='http://www.w3.org/2000/svg'%3E%3Cdefs%3E%3Cpattern id='paper' x='0' y='0' width='100' height='100' patternUnits='userSpaceOnUse'%3E%3Ccircle cx='25' cy='25' r='1' fill='%23e0e0e0' opacity='0.3'/%3E%3Ccircle cx='75' cy='75' r='1' fill='%23e0e0e0' opacity='0.3'/%3E%3C/pattern%3E%3C/defs%3E%3Crect width='100' height='100' fill='url(%23paper)'/%3E%3C/svg%3E");
    opacity: 0.4;
}

/* Soft, elegant styling for martial theme - Parchment card */
.martial-theme .category-section {
    background: linear-gradient(180deg, 
        #f4f3f1 0%, 
        #e6e1dc 100%);
    border: 2px solid var(--martial-ink-black);
    box-shadow: 
        0 8px 32px rgba(26, 26, 26, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    border-radius: 8px; /* Softer, more organic */
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(2px);
}

/* Subtle ink wash pattern background */
.martial-theme .category-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(220, 20, 60, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(26, 26, 26, 0.03) 0%, transparent 50%);
    pointer-events: none;
    opacity: 0.6;
}

.martial-theme .category-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, 
        transparent 0%,
        var(--martial-ink-black) 20%,
        var(--martial-ink-black) 80%,
        transparent 100%);
    opacity: 0.3;
}

/* Elegant, brushstroke-style category title */
.martial-theme .category-title {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-weight: 700;
    letter-spacing: 3px;
    color: #181818;
    text-shadow: 
        0 1px 3px rgba(195, 39, 34, 0.1),
        0 0 6px rgba(195, 39, 34, 0.08);
    position: relative;
}

/* Ink wash-style progress bar */
.martial-theme .progress-bar-container {
    background: #f4f3f1;
    border: 2px solid var(--martial-ink-black);
    border-radius: 8px;
    box-shadow: 
        inset 0 2px 4px rgba(0, 0, 0, 0.1),
        0 1px 2px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.martial-theme .progress-bar-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(234, 52, 48, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.martial-theme .progress-bar-fill {
    background: linear-gradient(90deg, 
        var(--martial-ink-black) 0%, 
        rgba(26, 26, 26, 0.9) 50%,
        var(--martial-ink-black) 100%);
    border-radius: 6px;
    box-shadow: 
        inset 0 1px 3px rgba(0, 0, 0, 0.3),
        0 0 15px rgba(26, 26, 26, 0.4);
    position: relative;
    border-right: 1px solid rgba(220, 20, 60, 0.3);
}

.martial-theme .progress-bar-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at right center, rgba(220, 20, 60, 0.2) 0%, transparent 50%);
    pointer-events: none;
}

.martial-theme .progress-bar-fill.complete {
    background: linear-gradient(90deg, 
        var(--martial-ink-black) 0%, 
        rgba(220, 20, 60, 0.3) 50%,
        var(--martial-ink-black) 100%);
    box-shadow: 
        inset 0 1px 3px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(220, 20, 60, 0.3);
}

/* Soft, elegant task items */
.martial-theme .task-item {
    background: linear-gradient(135deg, 
        rgba(250, 250, 250, 0.9) 0%, 
        rgba(245, 245, 240, 0.95) 100%);
    border: 1.5px solid var(--martial-ink-black);
    border-bottom: 1px solid rgba(160, 150, 140, 0.3);
    border-radius: 6px;
    box-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    position: relative;
    backdrop-filter: blur(2px);
}

.martial-theme .task-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, 
        var(--martial-ink-black) 0%, 
        transparent 100%);
    opacity: 0.4;
}

.martial-theme .task-item.completed {
    border-color: var(--martial-ink-black);
    background: linear-gradient(135deg, 
        rgba(220, 20, 60, 0.08) 0%, 
        rgba(245, 245, 240, 0.95) 100%);
    box-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.08),
        0 0 15px rgba(220, 20, 60, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.martial-theme .task-item.completed::before {
    background: linear-gradient(180deg, 
        var(--martial-red) 0%, 
        transparent 100%);
    opacity: 0.6;
}

/* Completed task text - soft faded ink color */
.martial-theme .task-item.completed .task-name {
    color: #6c6b68;
}

/* Elegant, brushstroke-style typography */
.martial-theme .task-name {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-weight: 600;
    letter-spacing: 1px;
    color: #181818;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.martial-theme .category-progress {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-weight: 700;
    letter-spacing: 2px;
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: unset;
    background-clip: unset;
    color: var(--martial-ink-black);
    text-shadow: 
        1px 1px 2px rgba(0, 0, 0, 0.1),
        0 0 8px rgba(220, 20, 60, 0.2);
}

/* Soft, elegant checkboxes */
.martial-theme .task-checkbox {
    border-radius: 50%;
    border: 2px solid var(--martial-ink-black);
    background: rgba(245, 245, 240, 0.8);
    opacity: 0.7;
}

.martial-theme .task-checkbox:checked {
    background: var(--martial-ink-black);
    border-color: var(--martial-ink-black);
    box-shadow: 
        0 0 10px rgba(26, 26, 26, 0.4),
        inset 0 0 8px rgba(255, 255, 255, 0.1);
    opacity: 1;
}

/* Bonus pill styling */
.martial-theme .bonus-badge {
    border: 1px solid #ea3430;
    color: #c32722;
    background: rgba(244, 243, 241, 0.9);
    background-image: linear-gradient(to bottom, rgba(234, 52, 48, 0.1), rgba(244, 243, 241, 0.9));
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    animation: none;
    text-shadow: none;
}

/* Day-range pill (Mon-Fri) styling */
.martial-theme .schedule-badge {
    border: 1px solid #a0968c;
    color: #181818;
    background: rgba(244, 243, 241, 0.9);
    background-image: linear-gradient(to bottom, rgba(160, 150, 140, 0.05), rgba(244, 243, 241, 0.9));
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    text-shadow: none;
}

/* Elegant streak display - "Days of Training" */
.martial-theme .streak-display {
    background: linear-gradient(135deg, 
        rgba(245, 245, 240, 0.95) 0%, 
        rgba(250, 250, 250, 0.98) 100%);
    border: 2px solid var(--martial-ink-black);
    border-radius: 8px;
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(2px);
}

.martial-theme .streak-count {
    font-family: 'Georgia', 'Times New Roman', serif;
    color: var(--martial-ink-black);
    text-shadow: 
        1px 1px 2px rgba(0, 0, 0, 0.1),
        0 0 8px rgba(220, 20, 60, 0.2);
    letter-spacing: 2px;
    font-weight: 700;
}

.martial-theme .streak-label {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--martial-ink-black);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.martial-theme .streak-icon {
    filter: drop-shadow(0 0 4px rgba(220, 20, 60, 0.3));
    opacity: 0.8;
}

/* Tab bar background - Ink Black (softened) */
.martial-theme .tabs {
    background: #1a1a1a;
    border-bottom: 2px solid rgba(195, 39, 34, 0.2);
}

/* Inactive tab text - Light Gray (ink wash) */
.martial-theme .tab-button {
    color: #d7d2cc;
}

.martial-theme .tab-button:hover {
    color: #f4f3f1;
    background: rgba(26, 26, 26, 0.6);
}

/* Active tab - Deep Blood Red (samurai seal/stamp feel) */
.martial-theme .tab-button.active {
    background: #c32722;
    border-radius: 6px;
    box-shadow: 
        0 4px 12px rgba(195, 39, 34, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border: 2px solid #c32722;
    color: #f4f3f1; /* Paper Light */
    font-weight: 700;
    transform: translateY(-2px);
}

.martial-theme .category-tab.active {
    background: linear-gradient(135deg, 
        var(--martial-ink-black) 0%, 
        rgba(26, 26, 26, 0.9) 100%);
    border: 2px solid var(--martial-ink-black);
    border-radius: 6px;
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    color: white;
}

/* Physical Training header title */
.martial-theme .header h1 {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-weight: 700;
    letter-spacing: 4px;
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
    -webkit-text-fill-color: unset;
    color: #181818; /* Ink black */
    text-shadow: 0 1px 3px rgba(195, 39, 34, 0.1), 0 0 6px rgba(195, 39, 34, 0.08); /* Very subtle red shadow */
    position: relative;
}

/* Soft daily cards - Parchment gradient */
.martial-theme .daily-card {
    background: linear-gradient(180deg, #f4f3f1 0%, #e6e1dc 100%);
    border: 1px solid rgba(160, 150, 140, 0.3);
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.martial-theme .daily-card.today {
    border-color: rgba(160, 150, 140, 0.3);
    background: linear-gradient(180deg, #f4f3f1 0%, #e6e1dc 100%);
    box-shadow: 
        0 0 10px rgba(220, 20, 60, 0.2),
        0 2px 4px rgba(0, 0, 0, 0.08);
}

.martial-theme .daily-card.completed {
    border-color: rgba(160, 150, 140, 0.3);
    background: linear-gradient(180deg, #f4f3f1 0%, #e6e1dc 100%);
    box-shadow: 0 0 8px rgba(220, 20, 60, 0.15);
}

.martial-theme .daily-percentage {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-weight: 700;
    letter-spacing: 1px;
    color: #c32722;
}

.martial-theme .daily-label {
    color: #181818;
}

/* Elegant metric cards - Parchment gradient */
.martial-theme .metric-card {
    background: linear-gradient(180deg, #f4f3f1 0%, #e6e1dc 100%);
    border: 1px solid rgba(160, 150, 140, 0.3);
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.martial-theme .metric-card:hover {
    border-color: var(--martial-ink-black);
    box-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.08),
        0 0 12px rgba(220, 20, 60, 0.2);
}

.martial-theme .metric-value {
    font-family: 'Georgia', 'Times New Roman', serif;
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: unset;
    background-clip: unset;
    color: #c32722;
    text-shadow: none;
}

.martial-theme .metric-label {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-weight: 600;
    letter-spacing: 1px;
    color: #181818;
}

/* Weekly Summary Card - Ink Black background to match Today tab */
.martial-theme .weekly-summary {
    background: #1a1a1a;
    backdrop-filter: none;
    filter: none;
    transform: none;
}

.martial-theme .weekly-summary::before {
    background: #c32722;
    height: 4px;
}

/* Weekly Summary Title - Deep Blood Red, Sharp */
.martial-theme .weekly-summary-title {
    color: #c32722;
    text-shadow: none;
    opacity: 1;
    transform: none;
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: unset;
    background-clip: unset;
    filter: none;
}

/* Rest Day / Bonus Mode Bar - Parchment with radial tint */
.martial-theme .progress-bar-container {
    background: #f4f3f1;
    position: relative;
}

.martial-theme .progress-bar-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(234, 52, 48, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

/* Elegant rest day message */
.martial-theme .rest-day-message {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-weight: 700;
    letter-spacing: 2px;
    color: #181818;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.martial-theme .bonus-mode-indicator {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-weight: 600;
    letter-spacing: 1px;
    color: #c32722;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Contemplative Theme (Mental Training) - Sumi-e Landscape Style */
body.contemplative-theme {
    --contemplative-orange: #ea580c; /* Warm orange sun */
    --contemplative-yellow: #f59e0b; /* Muted yellow/orange */
    --contemplative-dark: #1a1a1a; /* Dark grey/black */
    --contemplative-cream: #f5f5f0; /* Light cream/beige */
    --contemplative-warm: #fef3c7; /* Warm beige */
}

/* Warm, serene background */
body.contemplative-theme {
    background: 
        radial-gradient(circle at 50% 20%, rgba(234, 88, 12, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 60%, rgba(245, 158, 11, 0.1) 0%, transparent 50%),
        linear-gradient(180deg, #fef3c7 0%, #f5f5f0 50%, #fafafa 100%);
    background-attachment: fixed;
}

body.contemplative-theme::before {
    background: 
        radial-gradient(circle at 50% 20%, rgba(234, 88, 12, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 20% 80%, rgba(26, 26, 26, 0.03) 0%, transparent 50%);
    opacity: 0.6;
}

/* Serene, contemplative styling */
.contemplative-theme .category-section {
    background: linear-gradient(135deg, 
        rgba(254, 243, 199, 0.95) 0%, 
        rgba(245, 245, 240, 0.98) 100%);
    border: 2px solid rgba(234, 88, 12, 0.3);
    box-shadow: 
        0 8px 32px rgba(234, 88, 12, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(2px);
}

/* Subtle landscape pattern */
.contemplative-theme .category-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(ellipse at 50% 30%, rgba(234, 88, 12, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 20% 70%, rgba(26, 26, 26, 0.04) 0%, transparent 40%);
    pointer-events: none;
    opacity: 0.5;
}

.contemplative-theme .category-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, 
        transparent 0%,
        rgba(234, 88, 12, 0.4) 20%,
        rgba(234, 88, 12, 0.4) 80%,
        transparent 100%);
    opacity: 0.6;
}

/* Warm, contemplative category title */
.contemplative-theme .category-title {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--contemplative-dark);
    text-shadow: 
        1px 1px 2px rgba(0, 0, 0, 0.1),
        0 0 10px rgba(234, 88, 12, 0.2);
    position: relative;
}

/* Warm progress bar */
.contemplative-theme .progress-bar-container {
    background: linear-gradient(180deg, 
        rgba(254, 243, 199, 0.8) 0%, 
        rgba(245, 245, 240, 0.9) 100%);
    border: 2px solid rgba(234, 88, 12, 0.3);
    border-radius: 12px;
    box-shadow: 
        inset 0 2px 4px rgba(0, 0, 0, 0.08),
        0 1px 2px rgba(234, 88, 12, 0.1);
    position: relative;
    overflow: hidden;
}

.contemplative-theme .progress-bar-fill {
    background: linear-gradient(90deg, 
        rgba(234, 88, 12, 0.9) 0%, 
        rgba(245, 158, 11, 0.9) 50%,
        rgba(234, 88, 12, 0.9) 100%);
    border-radius: 10px;
    box-shadow: 
        inset 0 1px 3px rgba(0, 0, 0, 0.2),
        0 0 15px rgba(234, 88, 12, 0.4);
    position: relative;
    border-right: 1px solid rgba(245, 158, 11, 0.5);
}

.contemplative-theme .progress-bar-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at right center, rgba(245, 158, 11, 0.3) 0%, transparent 50%);
    pointer-events: none;
}

.contemplative-theme .progress-bar-fill.complete {
    background: linear-gradient(90deg, 
        rgba(234, 88, 12, 0.95) 0%, 
        rgba(245, 158, 11, 0.95) 100%);
    box-shadow: 
        inset 0 1px 3px rgba(0, 0, 0, 0.2),
        0 0 20px rgba(234, 88, 12, 0.5);
}

/* Warm, serene task items */
.contemplative-theme .task-item {
    background: linear-gradient(135deg, 
        rgba(254, 243, 199, 0.9) 0%, 
        rgba(245, 245, 240, 0.95) 100%);
    border: 1.5px solid rgba(234, 88, 12, 0.2);
    border-radius: 10px;
    box-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    position: relative;
    backdrop-filter: blur(2px);
}

.contemplative-theme .task-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, 
        rgba(234, 88, 12, 0.6) 0%, 
        transparent 100%);
    opacity: 0.5;
}

.contemplative-theme .task-item.completed {
    border-color: rgba(234, 88, 12, 0.4);
    background: linear-gradient(135deg, 
        rgba(234, 88, 12, 0.1) 0%, 
        rgba(254, 243, 199, 0.95) 100%);
    box-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.06),
        0 0 15px rgba(234, 88, 12, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.contemplative-theme .task-item.completed::before {
    background: linear-gradient(180deg, 
        rgba(234, 88, 12, 0.8) 0%, 
        transparent 100%);
    opacity: 0.7;
}

/* Warm typography */
.contemplative-theme .task-name {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--contemplative-dark);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.contemplative-theme .category-progress {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--contemplative-dark);
    text-shadow: 
        1px 1px 2px rgba(0, 0, 0, 0.1),
        0 0 10px rgba(234, 88, 12, 0.3);
}

/* Warm checkboxes */
.contemplative-theme .task-checkbox {
    border-radius: 50%;
    border: 2px solid rgba(234, 88, 12, 0.4);
    background: rgba(254, 243, 199, 0.8);
    opacity: 0.8;
}

.contemplative-theme .task-checkbox:checked {
    background: linear-gradient(135deg, 
        rgba(234, 88, 12, 0.9) 0%, 
        rgba(245, 158, 11, 0.9) 100%);
    border-color: rgba(234, 88, 12, 0.6);
    box-shadow: 
        0 0 10px rgba(234, 88, 12, 0.4),
        inset 0 0 8px rgba(255, 255, 255, 0.2);
    opacity: 1;
}

/* Warm streak display */
.contemplative-theme .streak-display {
    background: linear-gradient(135deg, 
        rgba(254, 243, 199, 0.95) 0%, 
        rgba(245, 245, 240, 0.98) 100%);
    border: 2px solid rgba(234, 88, 12, 0.3);
    border-radius: 10px;
    box-shadow: 
        0 4px 12px rgba(234, 88, 12, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(2px);
}

.contemplative-theme .streak-count {
    font-family: 'Georgia', 'Times New Roman', serif;
    color: var(--contemplative-dark);
    text-shadow: 
        1px 1px 2px rgba(0, 0, 0, 0.1),
        0 0 10px rgba(234, 88, 12, 0.3);
    letter-spacing: 2px;
    font-weight: 700;
}

.contemplative-theme .streak-label {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--contemplative-dark);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.contemplative-theme .streak-icon {
    filter: drop-shadow(0 0 6px rgba(234, 88, 12, 0.4));
    opacity: 0.9;
}

/* Warm tabs */
.contemplative-theme .tab-button.active {
    background: linear-gradient(135deg, 
        rgba(234, 88, 12, 0.9) 0%, 
        rgba(245, 158, 11, 0.9) 100%);
    border-radius: 8px;
    box-shadow: 
        0 4px 12px rgba(234, 88, 12, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(234, 88, 12, 0.5);
    color: white;
}

.contemplative-theme .category-tab.active {
    background: linear-gradient(135deg, 
        rgba(234, 88, 12, 0.9) 0%, 
        rgba(245, 158, 11, 0.9) 100%);
    border: 2px solid rgba(234, 88, 12, 0.5);
    border-radius: 8px;
    box-shadow: 
        0 4px 12px rgba(234, 88, 12, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    color: white;
}

/* Warm header title */
.contemplative-theme .header h1 {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-weight: 700;
    letter-spacing: 4px;
    color: var(--contemplative-dark);
    text-shadow: 
        1px 1px 2px rgba(0, 0, 0, 0.1),
        0 0 15px rgba(234, 88, 12, 0.3);
}

/* Warm daily cards */
.contemplative-theme .daily-card {
    background: rgba(254, 243, 199, 0.9);
    border: 1.5px solid rgba(234, 88, 12, 0.2);
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
}

.contemplative-theme .daily-card.today {
    border-color: rgba(234, 88, 12, 0.5);
    background: rgba(234, 88, 12, 0.15);
    box-shadow: 
        0 0 12px rgba(234, 88, 12, 0.25),
        0 2px 4px rgba(0, 0, 0, 0.06);
}

.contemplative-theme .daily-card.completed {
    border-color: rgba(234, 88, 12, 0.4);
    background: rgba(234, 88, 12, 0.1);
    box-shadow: 0 0 10px rgba(234, 88, 12, 0.2);
}

.contemplative-theme .daily-percentage {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--contemplative-dark);
}

/* Warm metric cards */
.contemplative-theme .metric-card {
    background: linear-gradient(135deg, 
        rgba(254, 243, 199, 0.9) 0%, 
        rgba(245, 245, 240, 0.95) 100%);
    border: 1.5px solid rgba(234, 88, 12, 0.2);
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
}

.contemplative-theme .metric-card:hover {
    border-color: rgba(234, 88, 12, 0.4);
    box-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.06),
        0 0 15px rgba(234, 88, 12, 0.2);
}

.contemplative-theme .metric-value {
    font-family: 'Georgia', 'Times New Roman', serif;
    background: linear-gradient(135deg, 
        rgba(234, 88, 12, 0.9) 0%, 
        rgba(245, 158, 11, 0.9) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.contemplative-theme .metric-label {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--contemplative-dark);
}

/* Rest day message */
.contemplative-theme .rest-day-message {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-weight: 700;
    letter-spacing: 2px;
    color: rgba(26, 26, 26, 0.6);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.contemplative-theme .bonus-mode-indicator {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--contemplative-dark);
    text-shadow: 
        0 1px 2px rgba(0, 0, 0, 0.05),
        0 0 10px rgba(234, 88, 12, 0.3);
}

/* Compact Desktop Navigation (1200-1599px) */
@media (min-width: 1200px) and (max-width: 1599px) {
    .category-tabs {
        gap: clamp(8px, 1.5vw, 20px);
        padding-inline: clamp(6px, 0.8vw, 18px);
        display: flex !important;
    }

    .mobile-menu-toggle {
        display: none !important;
    }

    .header-anchor-clan .warroom-badge {
        display: flex !important;
    }

    .category-tab {
        min-width: 90px;
        padding: 3px 2px 12px;
        gap: 8px;
    }

    .category-icon {
        width: 34px;
        height: 34px;
        font-size: 1.05rem;
    }

    .category-icon::after {
        width: 32px;
        height: 32px;
    }

    .category-icon-img,
    .category-icon svg {
        width: 24px;
        height: 24px;
    }

    .category-name {
        font-size: 0.68rem;
        letter-spacing: 0.28em;
    }

    .category-tab:not(.active) {
        color: rgba(240, 243, 255, 0.5);
    }

    .category-tab:hover:not(.active) {
        color: rgba(255, 255, 255, 0.75);
    }

    /* Reduce title size */
    .header h1.ronin-title {
        font-size: 2.2rem;
        letter-spacing: 0.35rem;
    }

    /* Reduce House Kintsugi badge size */
    .warroom-badge {
        transform: scale(0.92);
    }

    .warroom-logo {
        max-height: 48px;
    }

    .warroom-badge-text {
        font-size: 0.95rem;
    }

    /* Tighter nav spacing */
    .category-tabs {
        gap: clamp(6px, 1.2vw, 16px) !important;
    }

    .category-tab {
        min-width: 80px;
        gap: 6px;
    }
}

/* Mobile Navigation (<1200px) */
@media (max-width: 1199px) {
    .header {
        padding-bottom: 0;
        margin-bottom: 0;
    }

    .app-container {
        padding-top: 0;
    }

    .header-inner {

        gap: 18px;
    }

    .header-rail {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 12px 16px;
        gap: 12px;
    }

    .header-anchor-title {
        display: flex;
        align-items: center;
        flex: 0 0 auto;
    }

    .header h1.ronin-title {
        letter-spacing: 0.25rem;
    }

    .header-anchor {
        flex: 0 0 auto;
        justify-content: center;
        text-align: center;
    }

    .header-anchor-clan {
        display: flex !important;
        align-items: center;
        justify-content: flex-end;
        flex: 0 0 auto;
        gap: 0;
        min-width: 0;
    }

    .header-anchor-clan .warroom-badge {
        display: none !important; /* Hide clan badge on mobile */
    }

    .mobile-menu-toggle {
        display: flex !important;
        margin-right: 0;
        margin-left: auto;
    }

    .category-tabs {
        display: none; /* Hide desktop nav on mobile */
    }

    .mobile-menu-overlay {
        display: block;
    }

    .category-tab {
        flex: 1 1 45%;
        min-width: 0;
        min-height: 90px;
        letter-spacing: 0.22em;
    }

    .header-meta-row {
        flex-direction: column;
    }

    .header h1 {
        font-size: 2rem;
    }

    .tabs {
        flex-wrap: wrap;
    }

    .task-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .task-label {
        width: 100%;
    }
    
    .daily-progress-cards {
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
    }
    
    .daily-card {
        padding: 12px 8px;
    }
    
    .daily-percentage {
        font-size: 1.2rem;
    }
    
    .summary-metrics {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .war-banner-discipline {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .war-banner-discipline .war-streak-icon {
        order: 2;
        width: 100%;
        max-width: 100%;
        height: auto;
        aspect-ratio: 1;
        object-fit: contain;
    }

    .war-banner-discipline .war-streak-content {
        order: 1;
        width: 100%;
        align-items: center;
        text-align: center;
    }

    .war-streak-details p:nth-last-child(2),
    .war-streak-details p:nth-last-child(1) {
        opacity: 0.7;
    }


    /* Reorder map to appear after warfront advantage on mobile */
    .war-activity-card > div[style*="display: flex"] {
        flex-direction: column !important;
    }

    .war-clan-war-status {
        order: 1;
    }

    .war-clan-map-container {
        order: 2;
        margin-top: 1.5rem;
    }

    /* Reorder zodiac shrine layout on mobile - text under battle progress */
    .war-season-layout {
        flex-direction: column !important;
    }

    .war-season-layout > .war-season-bars {
        order: 1;
    }

    .war-season-layout > .war-season-lore {
        order: 2;
        margin-top: 1.5rem;
    }

    /* Reorder duel cards on mobile - Bushido Trials under Challenge a friend */
    .duel-images-row {
        flex-direction: column !important;
    }

    .duel-image-column:first-child {
        order: 1;
    }

    .duel-image-column:last-child {
        order: 2;
        margin-top: 1.5rem;
    }
}

/* ========== WAR ROOM LAYOUT ========== */

.war-room {
    padding: 2.5rem 0 3.5rem;
    color: #e5e7eb;
}

body.warroom-fullscreen .war-room {
    max-width: none;
    padding: 3rem clamp(8px, 3vw, 50px) 3.5rem;
}

/* Top banners */
.war-banners {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-bottom: 1.75rem;
    width: 100%;
}

/* ============================================
   BASE WAR-BANNER ACCENT (AAA POLISH VERSION)
   ============================================ */

.war-banner {
    font-size: 0.9rem;
    padding: 1rem 1.3rem;
    padding-top: 1.45rem; /* increased for breathing room */
    border-radius: 0.6rem;
    border: 1px solid var(--panel-border);
    box-shadow: var(--panel-shadow);
    background: var(--surface-color);
    position: relative;
    margin-top: 0;
    margin-bottom: 0.65rem; /* consistent spacing between banners */
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.war-banner-discipline {
    align-items: flex-start;
    gap: 1rem;
}

.war-streak-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
}

.war-streak-main {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.war-streak-details {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    font-size: 0.85rem;
}

.war-streak-details p {
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
}

.war-streak-icon {
    width: 118px;
    height: 118px;
    object-fit: contain;
}

/* Ensure proper spacing when banner follows a card */
.war-card + .war-banner {
    margin-top: 0.9rem;
}

/* ============================================
   AAA SUBTLE ACCENTS (TONED DOWN)
   ============================================ */

.war-banner::before {
    content: "";
    position: absolute;
    top: 6px !important;   /* was 0 — now gives breathing room */
    left: 50%;
    transform: translateX(-50%);
    width: 50%;
    height: 2px;
    opacity: 0.75;
    background: linear-gradient(
        90deg,
        transparent 0%,
        var(--banner-accent, #888) 43%,
        rgba(255, 255, 255, 0.45) 50%,  /* quieter highlight */
        var(--banner-accent, #888) 57%,
        transparent 100%
    );
    box-shadow:
        0 0 6px rgba(255, 255, 255, 0.04),
        0 0 10px rgba(var(--banner-accent-rgb, 180, 180, 180), 0.25);
    pointer-events: none;
}

/* Banner-specific accents */
.war-banner-discipline {
    --banner-accent: rgb(60, 110, 255);
    --banner-accent-rgb: 60, 110, 255;
}

/* Ensure proper spacing after order card */
.war-order-card + .war-banner-discipline {
    margin-top: 0.9rem;
}

.war-banner-status {
    --banner-accent: rgb(220, 60, 60);
    --banner-accent-rgb: 220, 60, 60;
}

.war-banner-summary {
    --banner-accent: rgb(200, 155, 55);
    --banner-accent-rgb: 200, 155, 55;
}

/* Main grid */
/* Ensure both columns stretch equally */
.war-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.2fr);
    gap: 1.5rem;
    align-items: stretch;
}

/* Generic card */
.war-card {
    background: radial-gradient(circle at top, #181a24, #090a0f);
    border-radius: 0.9rem;
    padding: 1.15rem 1.25rem;
    border: 1px solid var(--panel-border);
    box-shadow: var(--panel-shadow);
    position: relative;
}

.war-card + .war-card {
    margin-top: 0.9rem;
}

.war-sword-card {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.war-sword-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #e0e0e0;
    margin: 0;
    text-align: center;
    letter-spacing: 0.05em;
}

.war-sword-image-wrapper {
    position: relative;
    width: 65%;
    max-width: 650px;
    margin: 0 auto;
    padding: 3rem 0 3.5rem 0;
}

.war-sword-image-wrapper::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(ellipse at center, rgba(244, 193, 72, 0.12) 0%, rgba(244, 193, 72, 0.06) 40%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.war-sword-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.scroll-divider-wrapper {
    position: relative;
    width: 48%;
    max-width: 400px;
    margin: 0 auto;
    padding: 1rem 0 1.25rem 0;
}

.scroll-divider-wrapper::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(ellipse at center, rgba(244, 193, 72, 0.12) 0%, rgba(244, 193, 72, 0.06) 40%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.key-divider-wrapper {
    position: relative;
    width: 48%;
    max-width: 400px;
    margin: 0 auto;
    padding: 1rem 0 1.25rem 0;
}

.key-divider-wrapper::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center 55%, rgba(244, 193, 72, 0.08) 0%, rgba(244, 193, 72, 0.04) 40%, transparent 65%);
    pointer-events: none;
    z-index: 0;
}

.scroll-divider-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.key-divider-image {
    width: 75%;
    height: auto;
    display: block;
    object-fit: contain;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.war-sword-text {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin: 0;
    max-width: 600px;
    text-align: center;
}

.war-sword-btn {
    margin-top: 0.5rem;
    max-width: 300px;
    width: 100%;
}

/* Daily Order */
.war-order-card {
    background-color: var(--surface-color);
}

.war-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
    color: #f8d86c;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    position: relative;
    padding-left: 0.2rem;
}

#situationReportTitle {
    letter-spacing: 0.06em;
}

.war-card-sub {
    color: rgba(255, 255, 255, 0.98);
    line-height: 1.85;
    font-size: 0.95rem;
    letter-spacing: 0.01em;
    max-width: 65ch;
}

.war-card-sub p {
    margin: 0.2rem 0;
}

.war-card-sub p:first-child {
    margin-top: 0;
}

.war-card-sub p:last-child {
    margin-bottom: 0;
    opacity: 0.8;
}

.war-card-sub {
    font-size: 0.95rem;
    line-height: 1.85;
    margin-bottom: 0.65rem;
    color: rgba(255, 255, 255, 0.98);
    letter-spacing: 0.01em;
    max-width: 65ch;
}

.war-card-meta {
    font-size: 0.8rem;
    color: #9ca3af;
    margin-bottom: 0.9rem;
}

/* Headings, stats, progress */
.war-card-heading {
    font-family: 'Oswald', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #e0e0e0;
    margin-bottom: 26px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    padding-bottom: 1.2rem;
}

.war-stats {
    margin: 0;
    line-height: 1.6;
}

.war-metal-bars {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.war-metal-bar {
    background: linear-gradient(135deg, rgba(14, 18, 27, 0.95), rgba(8, 10, 16, 0.95));
    border-radius: 0.7rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.65rem 0.9rem 0.9rem;
    box-shadow:
        inset 0 0 12px rgba(255, 255, 255, 0.04),
        0 8px 18px rgba(0, 0, 0, 0.45);
}

.war-metal-bar-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.5rem;
    line-height: 1.6;
    text-shadow: 0 0 4px rgba(255, 255, 255, 0.06);
}

.war-metal-bar-header-xp {
    letter-spacing: 1px;
    color: rgba(142, 165, 255, 0.85);
}

.war-metal-bar-header-honor {
    color: rgba(228, 198, 128, 0.85);
}

.war-metal-bar-header-physical {
    color: rgba(234, 88, 12, 0.85);
}

.war-metal-bar-header-mental {
    color: rgba(147, 51, 234, 0.85);
}

.war-metal-bar-header-inner-temple {
    color: rgba(74, 85, 104, 0.85);
}

.war-metal-bar-header-side-quests {
    color: rgba(16, 185, 129, 0.85);
}

.war-metal-bar-track {
    width: 100%;
    height: 12px;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(0, 0, 0, 0.5));
    border: 1px solid rgba(255, 255, 255, 0.12);
    overflow: hidden;
    position: relative;
}

.war-metal-bar-fill {
    display: block;
    height: 100%;
    border-radius: inherit;
    position: relative;
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.25);
}

.war-metal-bar-fill::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0));
    opacity: 0.7;
}

.war-metal-bar-fill-xp-level {
    background: linear-gradient(120deg, #8ea5ff, #d9e6ff, #8ea5ff);
}

.war-metal-bar-fill-honor {
    background: linear-gradient(120deg, #d4b06a, #f8e6bd, #d4b06a);
}

.war-metal-bar-fill-physical {
    background: linear-gradient(120deg, #ea580c, #fb923c, #ea580c);
}

.war-metal-bar-fill-mental {
    background: linear-gradient(120deg, #9333ea, #a855f7, #9333ea);
}

.war-metal-bar-fill-inner-temple {
    background: linear-gradient(120deg, #4A5568, #718096, #4A5568);
}

.war-metal-bar-fill-side-quests {
    background: linear-gradient(120deg, #10b981, #34d399, #10b981);
}

.war-metal-bar-fill-clan {
    background: linear-gradient(120deg, #5de0ff, #9fe1ff, #5de0ff);
}

.war-stat-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    padding: 0.15rem 0;
}

.war-stat-separator {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin: 6px 0;
    padding-top: 6px;
}

.war-stat-honor-group {
    margin-top: 10px;
}

.war-stat-row:first-child {
    padding-top: 0;
}

.war-stat-row dt {
    color: #d4d4d4;
    font-weight: 700;
}

.war-stat-row dd {
    margin: 0;
    font-weight: 600;
    color: #f9fafb;
    text-align: right;
    padding-right: 4px;
    min-width: 60px;
}

.war-stat-row dd.war-stat-value-gold {
    color: #e4c680 !important;
}

.war-stat-row dd.war-stat-value-blue {
    color: #8ea5ff !important;
}

/* Legacy list styles - keeping for backwards compatibility */
.war-progress-list {
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.85rem;
    line-height: 1.6;
}

.war-progress-list li {
    display: flex;
    justify-content: space-between;
    padding: 0.08rem 0;
}

.war-progress-list span {
    color: #d4d4d4;
    text-shadow: 0 0 4px rgba(255, 255, 255, 0.06);
}

.war-progress-list strong {
    text-align: right;
    padding-right: 4px;
    min-width: 40px;
    display: inline-block;
}

/* New horizontal icon layout */
.war-progress-icons {
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 1.5rem;
    padding: 1rem 0;
}

.war-progress-icon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
}

.war-progress-icon {
    width: 48px;
    height: 48px;
    object-fit: contain;
    opacity: 0.85;
    transition: opacity 0.2s ease;
}

.war-progress-icon-item:hover .war-progress-icon {
    opacity: 1;
}

.war-progress-count {
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    min-width: 32px;
}

.war-progress-positive {
    color: #a6ffb0;
}

.war-progress-zero {
    color: #aaaaaa;
}

/* Progress header with inline momentum indicator */
.war-progress-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 26px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    padding-bottom: 1.2rem;
}

.war-progress-header .war-card-heading {
    margin-bottom: 0;
    border-bottom: none;
    padding-bottom: 0;
}

/* Momentum indicator - subtle hint about momentum building */
.war-momentum-indicator {
    margin-bottom: 0;
    padding: 0.35rem 0.65rem;
    background: rgba(228, 198, 128, 0.06);
    border: 1px solid rgba(228, 198, 128, 0.15);
    border-radius: 4px;
    font-size: 0.75rem;
    color: rgba(228, 198, 128, 0.75);
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.war-momentum-text {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.war-momentum-text::before {
    content: '⚡';
    font-size: 0.85rem;
    opacity: 0.7;
}

.war-progress-group-separator {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 6px;
    padding-top: 6px;
}

.war-progress-group-start {
    margin-top: 10px;
}

/* Character card */
/* Right column fills the full height */
.war-column-right {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0; /* critical for flexbox stretching */
}

/* Character card expands to fill remaining height */
.war-character-card {
    padding: 1.25rem 1.4rem 1.1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.war-character-header {
    text-align: center;
    margin-bottom: 0.9rem;
}

.war-character-name {
    font-weight: 700;
    font-size: 0.95rem;
}

.war-character-clan {
    font-size: 0.85rem;
    color: #9ca3af;
}

/* Character art grows to fill *all* vertical leftover space */
.war-character-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: radial-gradient(circle at top, rgba(33, 36, 48, 0.8), #08090f);
    border-radius: 0.8rem;
    border: 1px dashed rgba(75, 85, 99, 0.3);
    margin-bottom: 0.85rem;
    justify-content: center;
    min-height: 0;
}

/* This makes the art stretch vertically while staying centered */
.war-character-silhouette {
    flex: 1;
    width: 100%;
    min-height: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background: radial-gradient(circle at top, #181a24, #090a0f);
    border-radius: 0.5rem;
    position: relative;
    overflow: hidden;
}

.war-character-image {
    max-height: 80vh;
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    cursor: url('img/mag-cursor-64.png') 6 5, pointer !important;
    transition: transform 0.2s ease, filter 0.2s ease;
}

.war-character-image:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
    cursor: url('img/mag-cursor-64.png') 6 5, pointer !important;
}


.armor-indicators {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    position: relative;
    margin-top: 1rem;
    padding-top: 0.5rem;
    z-index: 10;
}

.armor-counter {
    font-family: 'Oswald', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(228, 198, 128, 0.6);
    letter-spacing: 0.05em;
    margin-right: 4px;
}

.armor-indicator-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 1px solid rgba(228, 198, 128, 0.3);
    background: transparent;
    cursor: url('img/kunai-cursor-64.png') 6 5, pointer !important;
    transition: all 0.2s ease;
    padding: 0;
    margin: 0;
}

.armor-indicator-dot:hover {
    background: rgba(228, 198, 128, 0.4);
    border-color: rgba(228, 198, 128, 0.6);
    transform: scale(1.2);
    cursor: url('img/kunai-cursor-64-hover.png') 6 5, pointer !important;
}

.armor-indicator-dot.active {
    background: rgba(228, 198, 128, 0.8);
    border-color: rgba(228, 198, 128, 1);
    width: 20px;
    height: 20px;
}

/* Fade side dots in 3-dot pagination to indicate more content */
.armor-indicator-dot.armor-dot-prev,
.armor-indicator-dot.armor-dot-next {
    opacity: 0.5;
    border-color: rgba(228, 198, 128, 0.2);
}

.armor-indicator-dot.armor-dot-prev:hover,
.armor-indicator-dot.armor-dot-next:hover {
    opacity: 0.9;
    border-color: rgba(228, 198, 128, 0.6);
}

/* Tooltip styling for side dots */
.armor-indicator-dot[data-tooltip] {
    position: relative;
}

.armor-indicator-dot[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    background: rgba(8, 11, 19, 0.95);
    border: 1px solid rgba(228, 198, 128, 0.35);
    color: rgba(247, 242, 218, 0.92);
    padding: 0.4rem 0.6rem;
    border-radius: 0.4rem;
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    transform: translateX(-50%) translateY(4px);
    z-index: 20;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.armor-indicator-dot[data-tooltip]:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.war-character-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #4b5563;
    border: 2px dashed rgba(55, 65, 81, 0.9);
}

.war-streak-rewards {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(75, 85, 99, 0.2);
    margin-top: auto;
}

.war-streak-rewards .war-card-heading {
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.war-streak-current,
.war-streak-next {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
}

.war-streak-label {
    color: rgba(255, 255, 255, 0.7);
}

.war-streak-value {
    color: rgba(255, 255, 255, 0.95);
    font-weight: 600;
}

.war-streak-rewards .war-metal-bar {
    margin-top: 0.5rem;
}

/* Buttons */
.war-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 0.45rem 1.2rem;
    font-size: 0.85rem;
    font-weight: 600;
    border: none;
    cursor: url('img/kunai-cursor-64.png') 6 5, auto !important;
    transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}

.war-btn-primary {
    background: linear-gradient(120deg, #10b981, #059669);
    color: #f9fafb;
    box-shadow: 0 8px 18px rgba(5, 150, 105, 0.55);
    border: 1px solid rgba(209, 250, 229, 0.25);
    border-radius: 6px;
}

.war-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(16, 185, 129, 0.6);
    cursor: url('img/kunai-cursor-64-hover.png') 6 5, auto !important;
}

.war-btn-challenge-right {
    opacity: 1;
    background: linear-gradient(120deg, rgb(216, 174, 105), rgb(184, 148, 90));
    color: rgb(43, 29, 15);
    box-shadow: none;
    border: 1px solid rgba(216, 174, 105, 0.4);
    border-radius: 6px;
    text-shadow: none;
}

.war-btn-challenge-right:hover {
    transform: translateY(-1px);
    cursor: url('img/kunai-cursor-64-hover.png') 6 5, auto !important;
}

/* Locked challenge button state */
.war-btn-locked {
    background: transparent !important;
    border: 1px solid rgba(228, 198, 128, 0.5) !important;
    color: #e4c680 !important;
    box-shadow: none !important;
    cursor: not-allowed !important;
    opacity: 0.7;
    position: relative;
    padding-left: 2.5rem;
}

.war-btn-locked::before {
    content: '';
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background-image: url('img/lock-icon.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.8;
}

.war-btn-locked:hover {
    transform: none !important;
    cursor: not-allowed !important;
}

.war-btn-gold {
    width: 100%;
    background: linear-gradient(120deg, #d89c3c, #c9852d);
    color: #1b1206;
    box-shadow:
        0 8px 18px rgba(201, 133, 45, 0.55),
        0 0 10px rgba(255, 58, 58, 0.15);
    border: 1px solid rgba(255, 198, 134, 0.3);
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
}

.war-btn-gold:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(201, 133, 45, 0.7);
    cursor: url('img/kunai-cursor-64-hover.png') 6 5, auto;
}

.war-btn-gold::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background:
        linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.4) 100%),
        linear-gradient(120deg, rgba(255, 255, 255, 0.25), transparent);
    mix-blend-mode: soft-light;
    pointer-events: none;
    opacity: 0.55;
}

/* Bottom section */
.war-bottom {
    margin-top: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.war-encouragement {
    background: linear-gradient(90deg, #11131a, #151821);
    border-radius: 0.9rem;
    padding: 0.85rem 1.15rem;
    border: 1px solid rgba(248, 250, 252, 0.12);
    font-size: 0.9rem;
    text-align: center;
    color: #e5e7eb;
    margin-top: 0.9rem;
}

.war-encouragement strong {
    color: #facc15;
}

.war-activity-card {
    padding-top: 1rem;
    padding-bottom: 1rem;
    box-shadow:
        var(--panel-shadow),
        0 6px 25px rgba(0, 0, 0, 0.45);
}

.war-clan-map-container {
    position: relative;
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.war-clan-map-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(150, 150, 150, 0.5), transparent 50%);
    filter: blur(35px);
    z-index: 0;
    animation: fogGlow 4.5s ease-in-out infinite;
    pointer-events: none;
    transition: background 0.5s ease;
}

/* Golden glow when warfront advantage is at 100% */
.war-clan-map-container.map-victory::after {
    background: radial-gradient(circle at center, rgba(215, 184, 122, 0.6), transparent 50%);
    animation: mapVictoryGlow 4.5s ease-in-out infinite;
}

/* The Cleansing phase - golden map with fading corruption overlay */
.war-clan-map-container.map-cleansing {
    --corruption-opacity: 1;
}

.war-clan-map-container.map-cleansing::after {
    background: 
        radial-gradient(circle at center, rgba(215, 184, 122, 0.6), transparent 50%),
        radial-gradient(ellipse at 30% 40%, rgba(85, 92, 69, var(--corruption-opacity, 1)) 0%, transparent 60%),
        radial-gradient(ellipse at 70% 60%, rgba(65, 70, 52, var(--corruption-opacity, 1)) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(55, 60, 45, var(--corruption-opacity, 1)) 0%, transparent 40%);
    animation: mapCleansingGlow 6s ease-in-out infinite;
}

/* Make the map image golden/sepia during The Cleansing */
.war-clan-map-container.map-cleansing .war-clan-map {
    filter: sepia(30%) brightness(1.1) saturate(1.2);
    transition: filter 0.5s ease;
}

@keyframes mapCleansingGlow {
    0%, 100% {
        opacity: 0.6;
        transform: scale(1);
    }
    50% {
        opacity: 0.85;
        transform: scale(1.1);
    }
}

/* The Cleansing victory state - celestial holy glow */
.war-clan-map-container.map-cleansing.cleansing-victory::after {
    background: 
        radial-gradient(circle at center, rgba(255, 255, 255, 0.4), transparent 60%),
        radial-gradient(ellipse at 50% 50%, rgba(135, 206, 250, 0.5) 0%, transparent 70%),
        radial-gradient(ellipse at 30% 30%, rgba(200, 220, 255, 0.3) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 70%, rgba(173, 216, 230, 0.3) 0%, transparent 50%);
    animation: celestialGlow 4s ease-in-out infinite;
}

/* Update map filter for celestial victory */
.war-clan-map-container.map-cleansing.cleansing-victory .war-clan-map {
    filter: brightness(1.2) saturate(0.9) contrast(1.1);
}

@keyframes celestialGlow {
    0%, 100% {
        opacity: 0.7;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
}

.war-clan-map {
    position: relative;
    z-index: 1;
}

@keyframes mapVictoryGlow {
    0%, 100% {
        opacity: 0.5;
        transform: scale(1);
    }
    50% {
        opacity: 0.75;
        transform: scale(1.15);
    }
}

@keyframes fogGlow {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.15);
    }
}

.war-clan-activity-content {
    margin-top: 0.4rem;
    flex: 1;
}

.war-activity-list {
    list-style: none;
    margin: 0.4rem 0 0;
    padding: 0;
    font-size: 0.85rem;
}

.war-activity-list li {
    padding: 0.18rem 0;
    position: relative;
    padding-left: 1.1rem;
}

.war-activity-list li::before {
    content: "•";
    position: absolute;
    left: 0.25rem;
    color: #f97316;
}

.war-clan-standing {
    margin-top: 0.4rem;
    font-size: 0.85rem;
    flex: 1;
}

.war-standing-your-rank {
    margin-bottom: 1.2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.war-standing-your-rank p {
    margin: 0.4rem 0;
    color: rgba(255, 255, 255, 0.9);
}

.war-standing-section-title {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.7);
    margin: 1rem 0 0.6rem 0;
}

.war-standing-ahead,
.war-standing-behind {
    margin-bottom: 1rem;
}

.war-standing-entry {
    margin-bottom: 0.8rem;
}

.war-standing-entry p {
    margin: 0.3rem 0;
    color: rgba(255, 255, 255, 0.85);
}

.war-standing-quote {
    font-style: italic;
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.8rem;
    margin-top: 0.4rem;
}

/* Three-column clan info layout */
.war-clan-info-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem;
    width: 100%;
    align-items: stretch;
    align-content: start;
}

.war-clan-info-row > * {
    margin: 0 !important;
    margin-top: 0 !important;
}

.war-clan-info-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    align-self: stretch;
}

.war-clan-war-status {
    margin-top: 0.4rem;
    font-size: 0.85rem;
    flex: 1;
}

.war-clan-war-item {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.war-clan-war-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.war-clan-war-item p {
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
}

.war-clan-war-status p {
    font-size: 1.05rem;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.8);
}

.war-season-content {
    margin-top: 0.4rem;
    font-size: 0.85rem;
}

.war-season-complete {
    margin-bottom: 1.2rem;
    padding-top: 0.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.war-season-section-title {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.7);
    margin: 0 0 0.6rem 0;
}

.war-season-layout .war-season-section-title {
    margin-top: 0;
}

.war-season-list {
    list-style: none;
    margin: 0;
    padding: 0;
    padding-left: 1.1rem;
}

.war-season-list li {
    padding: 0.18rem 0;
    position: relative;
    color: rgba(255, 255, 255, 0.85);
}

.war-season-list li::before {
    content: "•";
    position: absolute;
    left: -0.85rem;
    color: #f97316;
}

.war-season-layout {
    display: flex;
    align-items: flex-start;
    gap: 68px;
    margin-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.war-season-layout .war-season-lore-title,
.war-season-layout .war-season-section-title {
    margin-top: 0;
    padding-top: 0;
    line-height: 1.2;
}

.war-season-image {
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    margin-left: 1.25rem;
    position: relative;
}

.war-season-image::before {
    content: '';
    position: absolute;
    width: 36px;
    height: 36px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(255, 247, 215, 1) 0%, transparent 70%);
    filter: blur(6px);
    mix-blend-mode: screen;
    pointer-events: none;
    z-index: -1;
    animation: seasonInnerGlow 4.5s ease-in-out infinite;
}

.war-season-lore {
    flex: 1;
    color: rgba(255, 255, 255, 0.98);
    line-height: 1.85;
    letter-spacing: 0.01em;
    min-width: 0;
}

.war-season-bars {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    flex: 1;
    min-width: 0;
}

/* Ensure 50/50 split for Assault section */
.war-season-layout > .war-season-bars,
.war-season-layout > .war-season-lore {
    flex: 1 1 50%;
    min-width: 0;
}

.war-season-mask-image {
    max-width: 100%;
    max-height: 425px;
    height: auto;
    width: auto;
    object-fit: contain;
    --warroom-glow-shadow: drop-shadow(0 16px 25px rgba(0, 0, 0, 0.35));
    filter: var(--warroom-glow-shadow) drop-shadow(0 0 35px rgba(215, 184, 122, 0.25));
    animation: seasonMaskGlow 4.5s ease-in-out infinite;
    position: relative;
    z-index: 1;
    display: block;
}

/* Mask Display Wrapper */
.mask-display-wrapper {
    display: flex;
    flex-direction: column;
}

/* Mask section specific overrides - isolate from assault section */
.mask-display-wrapper .war-season-layout > .war-season-bars,
.mask-display-wrapper .war-season-layout > .war-season-lore {
    /* Override the 50/50 split - allow 3-column layout for masks */
    flex: 1;
}

.mask-display-wrapper .war-season-image {
    max-width: 400px;
    flex-shrink: 1; /* Allow the left image container to shrink so right can grow */
}

.mask-display-wrapper .war-season-bars {
    flex-shrink: 0; /* Prevent the right container from shrinking */
    min-width: max-content; /* Allow it to be as wide as its content needs */
}

/* Mask Indicators (Dots) */
.mask-indicators {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
}

.mask-indicator-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 1px solid rgba(228, 198, 128, 0.3);
    background: transparent;
    cursor: url('img/kunai-cursor-64.png') 6 5, pointer !important;
    transition: all 0.2s ease;
    padding: 0;
    margin: 0;
}

.mask-indicator-dot:hover {
    background: rgba(228, 198, 128, 0.4);
    border-color: rgba(228, 198, 128, 0.6);
    transform: scale(1.2);
    cursor: url('img/kunai-cursor-64-hover.png') 6 5, pointer !important;
}

.mask-indicator-dot.active {
    background: rgba(228, 198, 128, 0.8);
    border-color: rgba(228, 198, 128, 1);
    width: 20px;
    height: 20px;
}

/* Remove glow from player-dorm image in mask section bars */
.mask-display-wrapper .war-season-bars .war-season-mask-image {
    filter: drop-shadow(0 16px 25px rgba(0, 0, 0, 0.35));
    animation: none;
    max-width: none; /* Remove width constraint to allow proper scaling */
}

/* Mask counter for 3-dot pagination */
.mask-counter {
    font-family: 'Oswald', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(228, 198, 128, 0.6);
    letter-spacing: 0.05em;
    margin-right: 4px;
}

/* Fade side dots in 3-dot pagination for masks */
.mask-indicator-dot.mask-dot-prev,
.mask-indicator-dot.mask-dot-next {
    opacity: 0.5;
    border-color: rgba(228, 198, 128, 0.2);
}

.mask-indicator-dot.mask-dot-prev:hover,
.mask-indicator-dot.mask-dot-next:hover {
    opacity: 0.9;
    border-color: rgba(228, 198, 128, 0.6);
}

/* Tooltip styling for mask side dots */
.mask-indicator-dot[data-tooltip] {
    position: relative;
}

.mask-indicator-dot[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    background: rgba(8, 11, 19, 0.95);
    border: 1px solid rgba(228, 198, 128, 0.35);
    color: rgba(247, 242, 218, 0.92);
    padding: 0.4rem 0.6rem;
    border-radius: 0.4rem;
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    transform: translateX(-50%) translateY(4px);
    z-index: 20;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.mask-indicator-dot[data-tooltip]:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Responsive styles for Kintsugi Relics / Mask section */

/* Large tablet/Small desktop: Reduce image sizes to fit 3-column layout */
@media (max-width: 1700px) {
    .mask-display-wrapper .war-season-layout {
        gap: 40px;
    }
    
    .mask-display-wrapper .war-season-image {
        max-width: 320px;
    }
    
    .mask-display-wrapper .war-season-bars .war-season-mask-image {
        max-height: 380px;
    }
    
    .war-season-mask-image {
        max-height: 380px;
    }
}

@media (max-width: 1550px) {
    .mask-display-wrapper .war-season-layout {
        gap: 32px;
    }
    
    .mask-display-wrapper .war-season-image {
        max-width: 280px;
    }
    
    .mask-display-wrapper .war-season-bars .war-season-mask-image {
        max-height: 340px;
    }
    
    .war-season-mask-image {
        max-height: 340px;
    }
}

/* Tablet/Small laptop: Mask + text on top row, context image below - use CSS Grid */
@media (max-width: 1450px) {
    .mask-display-wrapper .war-season-layout {
        display: grid !important;
        grid-template-columns: auto 1fr;
        grid-template-rows: auto auto;
        gap: 24px 32px;
    }
    
    .mask-display-wrapper .war-season-image {
        grid-column: 1;
        grid-row: 1;
        max-width: 300px;
        margin-left: 0;
    }
    
    .mask-display-wrapper .war-season-lore {
        grid-column: 2;
        grid-row: 1;
    }
    
    /* Context image spans full width on second row */
    .mask-display-wrapper .war-season-bars {
        grid-column: 1 / -1;
        grid-row: 2;
        display: flex;
        justify-content: center;
        min-width: unset !important;
        padding-top: 1rem;
    }
    
    .mask-display-wrapper .war-season-bars .war-season-mask-image {
        max-width: 90%;
        max-height: 500px;
        width: auto;
    }
    
    .war-season-mask-image {
        max-height: 350px;
    }
}

/* Mobile/Small tablet: Full vertical stack - mask, dots, text, image */
@media (max-width: 900px) {
    /* Use grid on wrapper to reorder dots below mask */
    .mask-display-wrapper {
        display: grid !important;
        grid-template-areas: 
            "layout"
            "indicators";
    }
    
    .mask-display-wrapper .war-season-complete {
        grid-area: layout;
    }
    
    .mask-display-wrapper .mask-indicators {
        grid-area: indicators;
    }
    
    .mask-display-wrapper .war-season-layout {
        display: flex !important;
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    
    .mask-display-wrapper .war-season-image {
        max-width: 280px;
        margin-left: 0;
        order: 1;
    }
    
    /* Dots appear right after mask image */
    .mask-display-wrapper .mask-indicators {
        order: 2;
        margin-top: -0.5rem;
        margin-bottom: 0.5rem;
    }
    
    .mask-display-wrapper .war-season-lore {
        order: 3;
        text-align: center;
    }
    
    .mask-display-wrapper .war-season-lore-title {
        text-align: center !important;
    }
    
    .mask-display-wrapper .war-season-bars {
        order: 4;
        display: flex;
        justify-content: center;
    }
    
    .mask-display-wrapper .war-season-bars .war-season-mask-image {
        max-width: 100%;
        max-height: 350px;
    }
    
    .war-season-mask-image {
        max-height: 300px;
    }
    
    .mask-indicators {
        gap: 10px;
        padding: 0.5rem 0;
    }
    
    .mask-indicator-dot {
        width: 14px;
        height: 14px;
    }
    
    .mask-indicator-dot.active {
        width: 18px;
        height: 18px;
    }
    
    .war-season-lore p {
        font-size: 0.9rem;
    }
}

/* Small mobile */
@media (max-width: 480px) {
    .mask-display-wrapper .war-season-image {
        max-width: 200px;
    }
    
    .war-season-mask-image {
        max-height: 220px;
    }
    
    .mask-display-wrapper .war-season-bars .war-season-mask-image {
        max-height: 250px;
    }
    
    .mask-indicators {
        gap: 8px;
    }
    
    .mask-indicator-dot {
        width: 12px;
        height: 12px;
    }
    
    .mask-indicator-dot.active {
        width: 16px;
        height: 16px;
    }
    
    .war-season-lore p {
        font-size: 0.85rem;
        line-height: 1.6;
    }
    
    .war-season-lore-title {
        font-size: 1.25rem !important;
    }
    
    .mask-counter {
        font-size: 0.7rem;
    }
}

/* Shrine Media with Snow Effect */
.shrine-media {
    position: relative;
    overflow: hidden;
    border-radius: 12px; /* match your card */
    margin-bottom: 0.5rem;
}

/* keep the image crisp */
.shrine-media img {
    display: block;
    width: 100%;
    height: auto;
}

/* snow layers - only for December (11), January (0), and February (1) */
.shrine-media[data-month="0"]::before,
.shrine-media[data-month="1"]::before,
.shrine-media[data-month="11"]::before,
.shrine-media[data-month="0"]::after,
.shrine-media[data-month="1"]::after,
.shrine-media[data-month="11"]::after {
    content: "";
    position: absolute;
    inset: -30% -10%; /* extra area so flakes don't pop in */
    pointer-events: none;
    background-repeat: repeat;
    opacity: 0.16; /* keep subtle */
    mix-blend-mode: screen; /* optional; remove if it looks weird */
}

/* small flakes, slow */
.shrine-media[data-month="0"]::before,
.shrine-media[data-month="1"]::before,
.shrine-media[data-month="11"]::before {
    background-image:
        radial-gradient(circle, rgba(255,255,255,.9) 1px, transparent 1.6px),
        radial-gradient(circle, rgba(255,255,255,.6) 1px, transparent 2px);
    background-size: 120px 120px, 180px 180px;
    background-position: 0 0, 60px 40px;
    animation: snowFall 14s linear infinite;
}

/* larger flakes, different speed/direction */
.shrine-media[data-month="0"]::after,
.shrine-media[data-month="1"]::after,
.shrine-media[data-month="11"]::after {
    opacity: 0.10;
    background-image:
        radial-gradient(circle, rgba(255,255,255,.7) 1.4px, transparent 2.6px);
    background-size: 220px 220px;
    background-position: 0 0;
    animation: snowFall2 22s linear infinite;
}

@keyframes snowFall {
    from { transform: translateY(-10%); }
    to   { transform: translateY(10%); }
}

@keyframes snowFall2 {
    from { transform: translate(0,-12%); }
    to   { transform: translate(4%,12%); }
}

/* accessibility + mobile sanity */
@media (prefers-reduced-motion: reduce) {
    .shrine-media[data-month="0"]::before,
    .shrine-media[data-month="1"]::before,
    .shrine-media[data-month="11"]::before,
    .shrine-media[data-month="0"]::after,
    .shrine-media[data-month="1"]::after,
    .shrine-media[data-month="11"]::after { 
        animation: none; 
    }
}

.war-season-lore-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #e0e0e0;
    margin: 0 0 0.75rem 0;
    text-align: center;
    padding: 0.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.war-season-lore p {
    margin: 0 0 1.25rem 0;
    font-size: 0.95rem;
}

.war-season-lore p:last-child {
    margin-bottom: 0;
}

.war-phase-label {
    color: #e4c680;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin: 0.5rem 0 2px 0;
    padding-top: calc(0.5rem - 4px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    opacity: 0.9;
}

.war-phase-description {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    line-height: 1.3;
    margin: 0 0 1rem 0;
    font-style: italic;
    letter-spacing: 0.02em;
}

.war-shrine-status {
    margin: 0.5rem 0 1.25rem 0;
    font-size: 1rem;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    font-style: italic;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.war-activity-card .war-season-reward {
    margin-top: 1.76rem;
}

.war-season-reward {
    margin-top: 0.8rem;
}

.war-season-reward-name {
    margin: 0.4rem 0 0 0;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    font-size: 0.9rem;
}

.war-quote-footer {
    margin-top: 1rem;
    padding: 1.25rem 0 2.25rem;
    display: flex;
    justify-content: center;
}

.war-quote {
    font-size: 0.85rem;
    text-align: center;
    color: #c4cad8;
    padding-top: 0.8rem;
    letter-spacing: 0.45px;
    position: relative;
    max-width: 720px;
    width: 100%;
}

.war-quote::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
}

/* ========== RESPONSIVE ========== */

@media (max-width: 1199px) {
    .war-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .war-column-right {
        margin-top: 1.5rem;
    }

    .war-character-body {
        padding: 0.75rem;
    }
    
    .war-character-silhouette {
        max-width: none;
        width: 100%;
    }
    
    .war-character-image {
        max-height: 100vh;
        max-width: 100%;
        width: 100%;
    }
}

@media (max-width: 640px) {
    .war-room {
        padding-top: 1.5rem;
    }

    .war-banners {
        gap: 0.3rem;
    }

    .war-clan-info-row {
        grid-template-columns: 1fr;
    }


    .war-card {
        padding: 0.95rem 1rem;
    }

    .war-character-silhouette {
        width: 100%;
    }
    
    .war-character-image {
        max-height: 100vh;
        max-width: 100%;
        width: 100%;
    }
}

/* ========== UNIVERSAL TRAINING LAYOUT ========== */

.training-page {
    --training-accent: #d4b886;
    --training-accent-soft: rgba(212, 184, 134, 0.35);
    --training-accent-softest: rgba(212, 184, 134, 0.12);
    --training-brass: #a6916a;
    --training-highlight: #f2d7a0;
    --training-card-bg: rgba(5, 8, 16, 0.92);
    --training-card-border: rgba(212, 184, 134, 0.18);
    --training-card-radius: 0.75rem;
    --training-text-main: #f5f5ff;
    --training-text-muted: #a3a7c2;
    --training-text-soft: #7b7f99;
    --training-success: #35c768;
    --training-card-gradient-tip: radial-gradient(circle at 20% -30%, rgba(242, 215, 160, 0.16), rgba(6, 9, 18, 0.92));
    --training-card-gradient-stats: radial-gradient(circle at 10% -20%, rgba(242, 215, 160, 0.14), rgba(8, 10, 19, 0.95));
    color: var(--training-text-main);
    max-width: 1200px;
    margin: 0 auto 4rem auto;
    padding: 2rem 1.5rem 4rem;
}

.training-page .card {
    position: relative;
    background: var(--training-card-bg);
    border-radius: var(--training-card-radius);
    border: 1px solid var(--training-card-border);
    padding: 1.25rem 1.5rem;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.6);
}

.training-banner {
    margin-bottom: 1.5rem;
    overflow: hidden;
    padding: 1.4rem 1.6rem 1.35rem;
    border-color: rgba(212, 184, 134, 0.25);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.01),
        0 10px 24px rgba(0, 0, 0, 0.45);
}

.training-banner.card {
    background: var(--training-card-gradient-stats);
    border: 1px solid rgba(212, 184, 134, 0.25);
}

.training-banner::before {
    content: "";
    position: absolute;
    inset-inline: 12%;
    top: 0.25rem;
    height: 0.12rem;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, rgba(242, 215, 160, 0.8), transparent);
    box-shadow: 0 0 14px rgba(242, 215, 160, 0.35);
}

.training-banner-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.training-banner-label {
    display: flex;
    align-items: center;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: #d4b886;
    text-shadow: 0 0 4px rgba(242, 215, 160, 0.25);
}

.training-banner-title {
    font-weight: 600;
    color: #f2d7a0;
}

.training-banner-metrics {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    font-size: 0.9rem;
}

.training-banner-metric {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.training-banner-metric-label {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.7rem;
    color: rgba(212, 184, 134, 0.75);
}

.training-banner-metric-value {
    font-weight: 600;
    color: #f2d7a0;
}

.training-banner-weekly {
    display: grid;
    grid-template-columns: minmax(0, 2.2fr) minmax(0, 1.4fr);
    gap: 1.25rem;
    margin-top: 0.5rem;
}

.training-week-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0.35rem;
}

.training-week-day {
    border: 1px solid rgba(212, 184, 134, 0.25);
    background: var(--training-card-gradient-tip);
    border-radius: 0.55rem;
    padding: 0.5rem 0.35rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    font-size: 0.75rem;
    color: var(--training-text-soft);
    cursor: default;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.04),
        inset 0 -1px 0 rgba(0, 0, 0, 0.35),
        0 10px 24px rgba(0, 0, 0, 0.35);
}

.training-week-day-label {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.65rem;
}

.training-week-day-value {
    font-weight: 600;
    color: rgba(242, 215, 160, 0.9);
}

.training-week-day.is-active {
    border-color: rgba(212, 184, 134, 0.55);
    box-shadow:
        0 0 14px rgba(248, 113, 113, 0.26),
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        inset 0 -1px 0 rgba(0, 0, 0, 0.35),
        0 12px 26px rgba(0, 0, 0, 0.4);
    background: var(--training-card-gradient-stats);
    color: rgba(242, 215, 160, 0.95);
}

.training-week-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
    align-items: stretch;
}

.training-week-stat {
    border-radius: 0.6rem;
    background: var(--training-card-gradient-tip);
    border: 1px solid rgba(212, 184, 134, 0.25);
    padding: 0.6rem 0.75rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.04),
        inset 0 -1px 0 rgba(0, 0, 0, 0.28),
        0 12px 28px rgba(0, 0, 0, 0.35);
}

.training-week-stat-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(212, 184, 134, 0.75);
}

.training-week-stat-value {
    font-size: 0.95rem;
    font-weight: 600;
    margin-top: 0.1rem;
    color: #f2d7a0;
}

.training-tip {
    margin: 0;
}

.training-tip.card {
    padding: 1.65rem 1.85rem 1.55rem;
    background: var(--training-card-gradient-tip);
    border: 1px solid rgba(212, 184, 134, 0.25);
}

.training-tip-heading {
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #d4b886;
    text-shadow: 0 0 6px rgba(212, 184, 134, 0.25);
    margin-bottom: 0.75rem;
}

.training-tip-body {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--training-text-main);
    margin-bottom: 0.4rem;
}

.training-tip-subtitle {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.72rem;
    color: rgba(242, 215, 160, 0.85);
}

.training-tip-text {
    font-size: 0.95rem;
}

.training-tip-text + .training-tip-subtitle {
    margin-top: 0.65rem;
    padding-top: calc(0.45rem + 2px);
    border-top: 1px solid rgba(212, 184, 134, 0.25);
}

.training-tip-quote {
    margin: 0.4rem 0 0;
    padding: 0.3rem 0 0 1.5rem;
    font-family: 'Cormorant Garamond', 'Merriweather', 'Georgia', serif;
    font-size: 1.05rem;
    font-style: italic;
    line-height: 1.6;
    letter-spacing: 0.03em;
    color: #f2d7a0;
    text-shadow:
        0 0 12px rgba(212, 184, 134, 0.2),
        0 2px 6px rgba(0, 0, 0, 0.45);
    position: relative;
}

.training-tip-quote::before {
    content: "";
    position: absolute;
    left: 0.35rem;
    top: 0.15rem;
    bottom: 0.15rem;
    width: 2px;
    background: linear-gradient(
        180deg,
        rgba(212, 184, 134, 0),
        rgba(212, 184, 134, 0.65),
        rgba(212, 184, 134, 0)
    );
    box-shadow: 0 0 6px rgba(212, 184, 134, 0.35);
    filter: drop-shadow(0 0 4px rgba(212, 184, 134, 0.2));
}

.training-tip-bullets {
    margin: 0.8rem 0 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.training-tip-bullets li {
    position: relative;
    padding-left: 1.2rem;
    font-size: 0.9rem;
    line-height: 1.5;
    color: rgba(242, 215, 160, 0.9);
}

.training-tip-bullets li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: rgba(212, 184, 134, 0.7);
    font-size: 1.1rem;
    line-height: 1.3;
}

.training-quote-author {
    display: block;
    margin-top: 0.75rem;
    font-size: 0.85rem;
    font-style: normal;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(242, 215, 160, 0.8);
}

/* Side Quests To-Do List */
.side-quests-todo-section {
    margin-bottom: 1.5rem;
}

.side-quests-todo-card {
    padding: 1.65rem 1.85rem 1.55rem;
    background: var(--training-card-gradient-tip);
    border: 1px solid rgba(212, 184, 134, 0.25);
}

.side-quests-todo-title {
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #d4b886;
    text-shadow: 0 0 6px rgba(212, 184, 134, 0.25);
    margin: 0 0 1rem 0;
    font-weight: 700;
}

.side-quests-todo-input-group {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.side-quests-todo-input {
    flex: 1;
    background: rgba(5, 8, 16, 0.6);
    border: 1px solid rgba(212, 184, 134, 0.2);
    border-radius: 0.5rem;
    padding: 0.65rem 1rem;
    color: var(--training-text-main);
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.side-quests-todo-input::placeholder {
    color: rgba(163, 167, 194, 0.6);
    font-style: italic;
}

.side-quests-todo-input:focus {
    outline: none;
    border-color: rgba(212, 184, 134, 0.4);
    box-shadow: 0 0 0 3px rgba(212, 184, 134, 0.1);
}

.side-quests-todo-add-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #e8c987, #b8924e);
    color: #2b1d0f;
    padding: 12px 26px;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 15px;
    border: none;
    cursor: url('img/kunai-cursor-64.png') 6 5, auto;
    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.4),
        0 0 14px rgba(255, 210, 110, 0.25),
        inset 0 0 4px rgba(255, 255, 255, 0.3);
    transition: 0.2s ease;
    font-family: 'Oswald', sans-serif;
    letter-spacing: 0.05em;
}

.side-quests-todo-add-btn:hover {
    filter: brightness(1.08);
    cursor: url('img/hand-pointing-cursor.png') 6 5, pointer !important;
}

.side-quests-todo-add-btn:active {
    transform: translateY(0px) scale(0.98);
    box-shadow:
        0 0 8px rgba(255, 200, 110, 0.25),
        inset 0 0 2px rgba(255, 255, 255, 0.2);
}

.side-quests-todo-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.side-quests-todo-item {
    opacity: 1;
    transition: opacity 0.5s ease-out;
}

.side-quests-todo-item.is-completed {
    opacity: 0;
}

.side-quests-todo-item-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    cursor: url('img/kunai-cursor-64.png') 6 5, auto !important;
}

.side-quests-todo-item-label:hover {
    cursor: url('img/kunai-cursor-64-hover.png') 6 5, auto !important;
}

.side-quests-todo-checkbox {
    width: 18px;
    height: 18px;
    cursor: url('img/kunai-cursor-64-hover.png') 6 5, auto !important;
    accent-color: #d4b886;
    flex-shrink: 0;
}

.side-quests-todo-item-text {
    flex: 1;
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--training-text-main);
    transition: color 0.3s ease, text-decoration 0.3s ease;
}

.side-quests-todo-item.is-completed .side-quests-todo-item-text {
    color: rgba(163, 167, 194, 0.6);
    text-decoration: line-through;
}

.side-quests-todo-empty {
    text-align: center;
    padding: 1rem 0;
    color: rgba(163, 167, 194, 0.6);
    font-size: 0.9rem;
    font-style: italic;
}

.training-stats {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.training-stats.card {
    padding: 1.6rem 1.75rem 1.5rem;
    background: var(--training-card-gradient-stats);
    border: 1px solid rgba(212, 184, 134, 0.25);
}

.training-stats-header {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.training-stats-meta-label {
    font-size: 0.68rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: rgba(212, 184, 134, 0.8);
    margin: 0;
}

.training-stats-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0;
    color: #f2d7a0;
}

.training-stats-caption {
    font-size: 0.78rem;
    color: rgba(212, 184, 134, 0.8);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 0;
}

.training-stats-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.training-stats-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.25rem;
    font-size: 0.9rem;
    padding: 0.85rem 0.95rem;
    border-radius: 0.75rem;
    background: radial-gradient(circle at 25% 0%, rgba(212, 184, 134, 0.16), rgba(11, 13, 22, 0.92));
    border: 1px solid rgba(212, 184, 134, 0.25);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.04),
        0 12px 28px rgba(0, 0, 0, 0.45);
    position: relative;
    overflow: hidden;
    --icon-fill: rgba(212, 184, 134, 0.45);
    --icon-border: rgba(212, 184, 134, 0.4);
    --icon-shadow: rgba(212, 184, 134, 0.35);
}

.training-stats-row::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.03), transparent 60%);
    pointer-events: none;
}

.training-stats-row-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.training-stats-icon {
    width: 36px;
    height: 36px;
    border-radius: 0.5rem;
    border: 1px solid var(--icon-border);
    background: radial-gradient(circle at 40% 0%, rgba(255, 255, 255, 0.35), var(--icon-fill));
    box-shadow: 0 0 14px var(--icon-shadow);
    position: relative;
}

.training-stats-icon::before {
    content: "";
    position: absolute;
    inset: 8px;
    border-radius: 0.35rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: inset 0 0 6px rgba(255, 255, 255, 0.15);
}

.training-stats-icon--flame {
    display: flex;
    align-items: center;
    justify-content: center;
}

.training-stats-icon--flame::before {
    content: none;
}

.training-stats-icon-flame {
    width: 18px;
    height: 18px;
    display: block;
    pointer-events: none;
    filter: drop-shadow(0 0 6px rgba(247, 200, 115, 0.45));
}

.training-stats-icon--calendar {
    display: flex;
    align-items: center;
    justify-content: center;
}

.training-stats-icon--calendar::before {
    content: none;
}

.training-stats-icon-calendar {
    width: 20px;
    height: 20px;
    display: block;
    pointer-events: none;
    filter: drop-shadow(0 0 4px rgba(212, 184, 134, 0.35));
}

.training-stats-row--days {
    --icon-fill: rgba(242, 215, 160, 0.45);
    --icon-border: rgba(242, 215, 160, 0.45);
    --icon-shadow: rgba(242, 215, 160, 0.35);
}

.training-stats-copy {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.training-stats-label {
    color: rgba(212, 184, 134, 0.85);
}

.training-stats-hint {
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: rgba(242, 215, 160, 0.75);
}

.training-stats-value {
    font-weight: 600;
    font-family: 'Space Mono', 'IBM Plex Mono', 'Courier New', monospace;
    color: #f2d7a0;
    min-width: 36px;
    text-align: right;
}

.training-stats-note {
    font-size: 0.8rem;
    color: rgba(212, 184, 134, 0.7);
    margin: 0;
}

.training-daily {
    margin-bottom: 1.75rem;
}

.training-daily.card {
    background: var(--training-card-gradient-tip);
    border: 1px solid rgba(212, 184, 134, 0.25);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.04),
        0 18px 40px rgba(0, 0, 0, 0.55);
}

.training-daily-titlebar {
    margin-bottom: 1.5rem;
    padding: 0.5rem 0.85rem;
    border-radius: 0.6rem;
    border: 1px solid rgba(212, 184, 134, 0.3);
    background: linear-gradient(120deg, rgba(212, 184, 134, 0.12), rgba(32, 34, 41, 0.95) 40%, rgba(4, 5, 9, 0.95));
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 12px 30px rgba(0, 0, 0, 0.45);
}

.training-daily-titlebar-text {
    font-size: 0.85rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: 600;
    color: #d4b886;
    text-align: center;
}

.training-guidance-grid {
    --dojo-ember: #d4b886;
    --dojo-ember-soft: rgba(212, 184, 134, 0.4);
    --dojo-ember-faint: rgba(212, 184, 134, 0.12);
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.75rem;
    margin-bottom: 1.75rem;
    position: relative;
    padding-top: 1.5rem;
}

.training-guidance-grid::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        var(--dojo-ember-faint),
        var(--dojo-ember),
        var(--dojo-ember-faint),
        transparent
    );
    box-shadow: 0 0 18px var(--dojo-ember-faint);
    pointer-events: none;
}

.training-guidance-grid .card {
    background: radial-gradient(circle at 25% 0%, rgba(242, 215, 160, 0.18), rgba(6, 9, 18, 0.95));
    border: 1px solid rgba(212, 184, 134, 0.25);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.04),
        0 18px 40px rgba(0, 0, 0, 0.55);
    transition: background 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.training-ritual-insights {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-bottom: 1.75rem;
}

.card-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.72rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #d4b886;
    margin: 0 0 0.15rem;
}

.card-kicker-icon {
    width: 0.85rem;
    height: 0.85rem;
    border-radius: 0.2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(212, 184, 134, 0.25);
    background: rgba(212, 184, 134, 0.08);
}

.card-kicker-icon img {
    width: 0.65rem;
    height: 0.65rem;
    display: block;
    opacity: 0.85;
}

.ritual-progress.card,
.upcoming-rituals.card {
    padding: 1.4rem 1.6rem;
    border: 1px solid rgba(212, 184, 134, 0.25);
    background: radial-gradient(circle at 20% -40%, rgba(242, 215, 160, 0.16), rgba(5, 7, 14, 0.96));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.04),
        0 16px 34px rgba(0, 0, 0, 0.55);
}

.ritual-progress-header {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-bottom: 1rem;
}

.ritual-progress-header h3 {
    margin: 0;
    font-size: 1rem;
    letter-spacing: 0.08em;
}

.ritual-progress-note {
    font-size: 0.78rem;
    color: rgba(212, 184, 134, 0.8);
    margin: 0;
}

.ritual-progress-table {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    font-size: 0.85rem;
}

.ritual-progress-row {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) repeat(7, minmax(0, 0.65fr)) minmax(0, 0.9fr);
    gap: 0.25rem;
    align-items: center;
    padding: 0.45rem 0.65rem;
    border-radius: 0.55rem;
    border: 1px solid rgba(212, 184, 134, 0.18);
    background: rgba(212, 184, 134, 0.02);
}

.ritual-progress-row--head {
    font-size: 0.7rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(212, 184, 134, 0.8);
    background: rgba(212, 184, 134, 0.05);
    border: 1px solid rgba(212, 184, 134, 0.2);
}

.ritual-progress-row--head span {
    text-align: center;
}

.ritual-progress-row--head span:first-child {
    text-align: left;
}

.ritual-progress-row--head span:last-child {
    text-align: right;
}

.ritual-progress-row span {
    position: relative;
}

.ritual-progress-row span + span::before {
    content: '';
    position: absolute;
    left: -0.15rem;
    top: 18%;
    bottom: 18%;
    width: 1px;
    background: rgba(212, 184, 134, 0.18);
}

.ritual-progress-name {
    font-weight: 500;
    color: #f2d7a0;
}

.ritual-progress-status {
    border-radius: 0.4rem;
    text-align: center;
    font-family: 'Space Mono', 'IBM Plex Mono', 'Courier New', monospace;
    font-size: 0.75rem;
    padding: 0.2rem 0.1rem;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.65);
    transition: transform 0.18s ease;
    cursor: url('img/kunai-cursor-64.png') 6 5, auto;
    position: relative;
}

.ritual-progress-status:hover {
    cursor: url('img/kunai-cursor-64-hover.png') 6 5, auto;
}

.ritual-progress-status::after {
    content: '';
    display: block;
    width: 8px;
    height: 8px;
    margin: 0 auto;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
}

.ritual-progress-status--complete::after {
    background: #f2d7a0;
    box-shadow: 0 0 8px rgba(242, 215, 160, 0.5);
}

.ritual-progress-status--pending::after {
    background: rgba(255, 255, 255, 0.2);
}

.ritual-progress-status--skip::after {
    background: rgba(255, 255, 255, 0.06);
}

.ritual-progress-total {
    font-weight: 650;
    text-align: right;
    color: rgba(255, 255, 255, 0.92);
}

.ritual-progress-empty,
.upcoming-rituals-empty {
    margin: 0;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

.upcoming-rituals-header h3 {
    margin: 0;
    font-size: 1rem;
    letter-spacing: 0.08em;
    color: #f2d7a0;
}

.upcoming-rituals-subtitle {
    margin: 0.3rem 0 0.65rem;
    font-size: 0.85rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.65);
}

.upcoming-rituals-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.upcoming-rituals-list li {
    position: relative;
    padding-left: 1.15rem;
    font-size: 0.92rem;
}

.upcoming-rituals-list li::before {
    content: '•';
    position: absolute;
    left: 0.35rem;
    color: #d4b886;
}

.upcoming-rituals-quote {
    margin: 1.65rem 0 0;
    font-size: 0.85rem;
    font-style: italic;
    color: rgba(242, 215, 160, 0.9);
    letter-spacing: 0.05em;
}

.training-daily-grid {
    display: grid;
    grid-template-columns: minmax(220px, 0.4fr) minmax(0, 0.6fr);
    gap: 1.75rem;
    align-items: stretch;
}

.training-coach-card {
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 0.65rem;
    background: radial-gradient(circle at top, rgba(255, 255, 255, 0.05), rgba(8, 11, 19, 0.95));
    padding: 0.9rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    align-items: stretch;
}

.training-coach-frame {
    width: 100%;
    aspect-ratio: 3 / 4;
    border-radius: 0.5rem;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.04), rgba(7, 10, 18, 0.9));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.25rem;
}

.training-coach-title {
    position: absolute;
    top: 0.75rem;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 1rem);
    text-align: center;
    font-size: 0.8rem;
    font-variant: small-caps;
    letter-spacing: 0.11em;
    color: #bbb;
    background: rgba(4, 6, 10, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    padding: 0.25rem 0.5rem;
    text-transform: none;
    pointer-events: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(4px);
}

.training-coach-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 0.4rem;
}

.training-coach-quote {
    margin: 0.75rem 0 1rem;
    font-size: 0.875rem;
    color: #aaa;
    font-style: italic;
    font-family: 'Merriweather', 'Georgia', serif;
    line-height: 1.45;
    text-align: center;
    letter-spacing: 0.01em;
    quotes: none;
}
.training-coach-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    padding: 0 6px;
    flex-shrink: 0;
}

.coach-audio-btn {
    width: 100%;
    min-height: 3rem;
    border-radius: 0.65rem;
    border: 1px solid rgba(212, 184, 134, 0.35);
    background: #0c0f15;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: url('img/hand-pointing-cursor.png') 6 5, pointer !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 10px 24px rgba(0, 0, 0, 0.45);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    padding: 0.75rem 1.5rem;
    font-family: 'Oswald', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: #f5d9a0;
}

.coach-audio-btn:hover {
    transform: translateY(-1px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.12),
        0 14px 30px rgba(0, 0, 0, 0.5);
    cursor: url('img/hand-pointing-cursor.png') 6 5, pointer !important;
}

.coach-audio-btn img {
    display: none;
}

/* Pulsation animation for new tapes notification */
@keyframes gentlePulse {
    0%, 100% {
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.08),
            0 10px 24px rgba(0, 0, 0, 0.45),
            0 0 0 0 rgba(212, 184, 134, 0.4);
    }
    50% {
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.12),
            0 14px 30px rgba(0, 0, 0, 0.5),
            0 0 0 4px rgba(212, 184, 134, 0.2);
    }
}

.coach-audio-btn.has-new-tapes {
    animation: gentlePulse 2s ease-in-out infinite;
    border-color: rgba(212, 184, 134, 0.6);
}

.coach-guidance-btn {
    width: 100%;
    border-radius: 0.65rem;
    border: 1px solid rgba(212, 184, 134, 0.4);
    padding: 0.75rem 1.5rem;
    font-family: 'Oswald', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: none;
    color: #f5d9a0;
    background: #0c0f15;
    box-shadow:
        inset 0 0 8px rgba(255, 255, 255, 0.15),
        0 0 10px rgba(255, 200, 120, 0.15);
    cursor: url('img/hand-pointing-cursor.png') 6 5, pointer !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.coach-guidance-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.coach-guidance-btn img.coach-guidance-lock {
    width: 16px;
    height: 16px;
    display: inline-block;
}

.coach-guidance-btn[data-tooltip] {
    position: relative;
}

.coach-guidance-btn[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    top: -0.75rem;
    right: 0;
    transform: translateY(-100%);
    background: linear-gradient(120deg, rgba(12, 15, 21, 0.9), rgba(32, 28, 18, 0.9));
    color: #f5d9a0;
    padding: calc(0.35rem + 2px) 0.65rem;
    border-radius: 0.4rem;
    font-size: 0.75rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
    white-space: nowrap;
}

.coach-guidance-btn[data-tooltip]:hover::after {
    opacity: 1;
    transform: translateY(calc(-100% - 4px));
}

.coach-guidance-btn:hover {
    transform: translateY(-2px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.25),
        0 22px 44px rgba(0, 0, 0, 0.6);
    cursor: url('img/hand-pointing-cursor.png') 6 5, pointer !important;
}

.training-daily-content {
    display: flex;
    flex-direction: column;
}

.training-daily-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.125rem;
    padding-top: 0.25rem;
}

.training-daily-title {
    font-size: 1rem;
    font-weight: 700;
}

.training-daily-meta {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    text-align: right;
}

.training-daily-count {
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.015);
    color: rgba(255, 255, 255, 0.75);
}

.training-task-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.training-task {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.75rem 0.85rem;
    border-radius: 0.6rem;
    background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.04), rgba(6, 9, 18, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.03);
    transition: background 0.2s ease, border-color 0.2s ease;
    cursor: url('img/hand-cursor-64.png') 6 5, grab;
    user-select: none;
}

.training-task + .training-task {
    border-top: 1px solid rgba(255, 255, 255, 0.03);
}

.training-task:hover {
    background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.05), rgba(6, 9, 18, 0.98));
    cursor: url('img/hand-cursor-64.png') 6 5, grab;
}

.training-task:active {
    cursor: url('img/hand-closed-cursor-64.png') 6 5, grabbing;
}

.training-task.is-dragging {
    opacity: 0.6;
}

.training-task.drag-over {
    border-color: rgba(212, 184, 134, 0.35);
    box-shadow:
        inset 0 0 0 1px rgba(212, 184, 134, 0.2),
        0 6px 18px rgba(0, 0, 0, 0.35);
    background: radial-gradient(circle at top, rgba(212, 184, 134, 0.08), rgba(6, 9, 18, 0.98));
}

.training-task-main {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    cursor: url('img/hand-pointing-cursor.png') 6 5, pointer !important;
}

/* Override for War Echo card to use kunai cursor */
.training-task.war-echo-card {
    cursor: url('img/kunai-cursor-64.png') 6 5, auto !important;
}

.training-task.war-echo-card .training-task-main {
    cursor: url('img/kunai-cursor-64.png') 6 5, auto !important;
}

.training-task.war-echo-card button,
.training-task.war-echo-card input,
.training-task.war-echo-card .war-echo-progress-bar,
.training-task.war-echo-card .war-echo-volume-slider {
    cursor: url('img/kunai-cursor-64.png') 6 5, auto !important;
}

.training-task.war-echo-card button:hover,
.training-task.war-echo-card button:focus,
.training-task.war-echo-card input:hover,
.training-task.war-echo-card input:focus,
.training-task.war-echo-card .war-echo-progress-bar:hover,
.training-task.war-echo-card .war-echo-volume-slider:hover {
    cursor: url('img/kunai-cursor-64-hover.png') 6 5, auto !important;
}

.training-task.is-momentum-ritual {
    cursor: url('img/kunai-cursor-64.png') 6 5, auto !important;
}

.training-task.is-momentum-ritual:hover {
    cursor: url('img/kunai-cursor-64-hover.png') 6 5, auto !important;
}

.training-task.is-momentum-ritual:active {
    cursor: url('img/kunai-cursor-64-hover.png') 6 5, auto !important;
}

.training-task.is-momentum-ritual .training-task-main {
    align-items: flex-start;
    cursor: url('img/kunai-cursor-64.png') 6 5, auto !important;
}

.training-task.is-momentum-ritual .training-task-main:hover {
    cursor: url('img/kunai-cursor-64-hover.png') 6 5, auto !important;
}

.training-task.is-momentum-ritual .training-task-checkbox {
    margin-top: 0.15rem;
}

/* Assault Orders styling */
.training-task.is-assault-orders {
    cursor: url('img/kunai-cursor-64.png') 6 5, auto !important;
    padding: 1rem 0.85rem;
}

.training-task.is-assault-orders:hover {
    cursor: url('img/kunai-cursor-64-hover.png') 6 5, auto !important;
    background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.04), rgba(6, 9, 18, 0.98));
}

.training-task.is-assault-orders .training-task-main {
    align-items: flex-start;
    cursor: url('img/kunai-cursor-64.png') 6 5, auto !important;
}

.training-task.is-assault-orders .training-task-main:hover {
    cursor: url('img/kunai-cursor-64-hover.png') 6 5, auto !important;
}

.training-task.is-assault-orders .training-task-label-wrapper,
.training-task.is-assault-orders .training-task-label,
.training-task.is-assault-orders .assault-orders-item,
.training-task.is-assault-orders .assault-orders-checkbox,
.training-task.is-assault-orders .assault-orders-subitems .assault-orders-item,
.training-task.is-assault-orders .assault-orders-subitems .assault-orders-checkbox,
.training-task.is-assault-orders label,
.training-task.is-assault-orders input[type="checkbox"] {
    cursor: url('img/kunai-cursor-64.png') 6 5, auto !important;
}

.training-task.is-assault-orders .training-task-label-wrapper:hover,
.training-task.is-assault-orders .training-task-label:hover,
.training-task.is-assault-orders .assault-orders-item:hover,
.training-task.is-assault-orders .assault-orders-checkbox:hover,
.training-task.is-assault-orders .assault-orders-subitems .assault-orders-item:hover,
.training-task.is-assault-orders .assault-orders-subitems .assault-orders-checkbox:hover,
.training-task.is-assault-orders label:hover,
.training-task.is-assault-orders input[type="checkbox"]:hover {
    cursor: url('img/kunai-cursor-64-hover.png') 6 5, auto !important;
}

.assault-orders-subitems {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 0.5rem;
}

.assault-orders-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: url('img/hand-pointing-cursor.png') 6 5, pointer !important;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
}

.assault-orders-item:hover {
    color: rgba(255, 255, 255, 0.95);
}

.assault-orders-checkbox {
    appearance: none;
    width: 0.9rem;
    height: 0.9rem;
    border-radius: 0.2rem;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(0, 0, 0, 0.5);
    position: relative;
    flex-shrink: 0;
    cursor: url('img/hand-pointing-cursor.png') 6 5, pointer !important;
}

.assault-orders-checkbox:checked {
    border-color: var(--training-success, #35c768);
    background: radial-gradient(circle at 30% 0%, #fff, var(--training-success, #35c768));
    box-shadow: 0 0 8px rgba(53, 199, 104, 0.4);
}

.assault-orders-checkbox:checked::after {
    content: "✓";
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    color: #031208;
}

.training-task-checkbox {
    appearance: none;
    width: 0.9rem;
    height: 0.9rem;
    border-radius: 0.2rem;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(0, 0, 0, 0.5);
    position: relative;
    flex-shrink: 0;
    cursor: url('img/hand-pointing-cursor.png') 6 5, pointer !important;
}

.training-task-checkbox:checked {
    border-color: var(--training-success, #35c768);
    background: radial-gradient(circle at 30% 0%, #fff, var(--training-success, #35c768));
    box-shadow: 0 0 8px rgba(53, 199, 104, 0.4);
}

.training-task-checkbox:checked::after {
    content: "✓";
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    color: #031208;
}

.training-task-label-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.training-task-label {
    font-size: 0.9rem;
}

.training-task-momentum-subtitle {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.3;
}

.training-task.is-momentum-ritual {
    padding: 1rem 0.85rem;
    min-height: auto;
    cursor: default !important;
}

.training-task-schedule {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    font-family: 'Space Mono', 'IBM Plex Mono', 'Courier New', monospace;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.training-task-info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.1rem;
    height: 1.1rem;
    color: rgba(212, 184, 134, 0.9);
    cursor: url('img/kunai-cursor-64.png') 6 5, auto !important;
    transition: all 0.2s ease;
    position: relative;
    flex-shrink: 0;
    padding: 0;
}

.training-task-info-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.training-task-info-icon:hover {
    color: rgba(212, 184, 134, 1);
    transform: scale(1.1);
    cursor: url('img/kunai-cursor-64-hover.png') 6 5, auto !important;
}

/* War Echo Soundtrack Player Styles - Samurai/Feudal Japan Aesthetic */
.war-echo-section {
    margin-bottom: 1.75rem;
}

.war-echo-card-standalone {
    background: radial-gradient(circle at 20% -20%, rgba(242, 215, 160, 0.08), rgba(7, 9, 17, 0.98));
    border: 1px solid rgba(242, 215, 160, 0.15);
    padding: 0.75rem 1rem;
    cursor: url('img/kunai-cursor-64.png') 6 5, auto;
    transition: all 0.2s ease;
}

.war-echo-card-standalone:hover {
    border-color: rgba(242, 215, 160, 0.25);
    background: radial-gradient(circle at 20% -20%, rgba(242, 215, 160, 0.12), rgba(7, 9, 17, 0.97));
}

.war-echo-minimal {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.war-echo-minimal-play-pause {
    background: transparent;
    border: 1px solid rgba(242, 215, 160, 0.3);
    color: rgba(242, 215, 160, 0.9);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: url('img/kunai-cursor-64.png') 6 5, auto;
    font-size: 0.75rem;
    padding: 0;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.war-echo-minimal-play-pause:hover {
    border-color: rgba(242, 215, 160, 0.5);
    background: rgba(242, 215, 160, 0.1);
    cursor: url('img/kunai-cursor-64-hover.png') 6 5, auto;
}

.war-echo-minimal-title {
    font-size: 0.85rem;
    color: rgba(242, 215, 160, 0.7);
    font-weight: 400;
    letter-spacing: 0.02em;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.war-echo-toggle {
    font-size: 0.75rem;
    color: rgba(242, 215, 160, 0.5);
    transition: transform 0.3s ease, color 0.2s ease;
    display: inline-block;
    flex-shrink: 0;
    margin-left: auto;
}

.war-echo-card-standalone[data-war-echo-expanded="true"] .war-echo-toggle {
    transform: rotate(180deg);
    color: rgba(242, 215, 160, 0.7);
}

.war-echo-expanded {
    animation: fadeIn 0.2s ease;
}

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

.war-echo-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(242, 215, 160, 0.9);
    letter-spacing: 0.05em;
}

.war-echo-header-compact {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
    cursor: url('img/kunai-cursor-64.png') 6 5, auto;
    position: relative;
}

.war-echo-header-compact .war-echo-toggle {
    margin-left: auto;
}

.war-echo-separator {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

.war-echo-now-playing-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

.war-echo-song-title-compact {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.war-echo-controls-compact {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.war-echo-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.war-echo-progress-compact {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
    min-width: 200px;
}

.war-echo-progress-compact .war-echo-progress-bar {
    flex: 1;
    min-width: 0;
}

.war-echo-time-display-compact {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    color: #a6916a;
    font-family: 'Space Mono', 'IBM Plex Mono', 'Courier New', monospace;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    flex-shrink: 0;
    white-space: nowrap;
}

.war-echo-volume-container-compact {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
    min-width: 150px;
}

.war-echo-btn {
    background: linear-gradient(135deg, 
        rgba(212, 184, 134, 0.15) 0%, 
        rgba(166, 145, 106, 0.1) 100%);
    border: 1px solid rgba(212, 184, 134, 0.4);
    color: #f2d7a0;
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 1rem;
    min-width: 2.5rem;
    min-height: 2.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-shadow: 
        inset 0 1px 2px rgba(255, 255, 255, 0.1),
        0 2px 4px rgba(0, 0, 0, 0.3),
        0 0 8px rgba(212, 184, 134, 0.2);
    position: relative;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}


.war-echo-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 0.375rem;
    background: linear-gradient(135deg, 
        rgba(242, 215, 160, 0.1) 0%, 
        transparent 50%,
        rgba(166, 145, 106, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
}

.war-echo-btn:hover {
    background: linear-gradient(135deg, 
        rgba(212, 184, 134, 0.25) 0%, 
        rgba(166, 145, 106, 0.2) 100%);
    border-color: rgba(212, 184, 134, 0.6);
    color: #f2d7a0;
    transform: translateY(-1px) scale(1.02);
    box-shadow: 
        inset 0 1px 3px rgba(255, 255, 255, 0.15),
        0 4px 8px rgba(0, 0, 0, 0.4),
        0 0 12px rgba(212, 184, 134, 0.3);
}

.war-echo-btn:hover::before {
    opacity: 1;
}

.war-echo-btn:active {
    transform: translateY(0) scale(0.98);
    background: linear-gradient(135deg, 
        rgba(212, 184, 134, 0.2) 0%, 
        rgba(166, 145, 106, 0.15) 100%);
    box-shadow: 
        inset 0 2px 4px rgba(0, 0, 0, 0.3),
        0 1px 2px rgba(0, 0, 0, 0.2),
        0 0 6px rgba(212, 184, 134, 0.2);
}


.war-echo-card .war-echo-progress-bar {
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, 
        rgba(166, 145, 106, 0.2) 0%, 
        rgba(212, 184, 134, 0.15) 50%,
        rgba(166, 145, 106, 0.2) 100%);
    border-radius: 3px;
}

.war-echo-progress-bar {
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, 
        rgba(166, 145, 106, 0.2) 0%, 
        rgba(212, 184, 134, 0.15) 50%,
        rgba(166, 145, 106, 0.2) 100%);
    border-radius: 3px;
    position: relative;
    border: 1px solid rgba(212, 184, 134, 0.2);
    box-shadow: 
        inset 0 1px 2px rgba(0, 0, 0, 0.3),
        0 1px 1px rgba(0, 0, 0, 0.2);
    cursor: url('img/kunai-cursor-64.png') 6 5, auto !important;
}

.war-echo-progress-bar:hover {
    cursor: url('img/kunai-cursor-64-hover.png') 6 5, auto !important;
}

.war-echo-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, 
        rgba(212, 184, 134, 0.9) 0%, 
        rgba(242, 215, 160, 0.95) 50%,
        rgba(212, 184, 134, 0.9) 100%);
    border-radius: 3px;
    transition: width 0.1s linear;
    position: relative;
    box-shadow: 
        inset 0 1px 2px rgba(255, 255, 255, 0.3),
        0 0 8px rgba(212, 184, 134, 0.4);
}

.war-echo-progress-fill::after {
    content: '';
    position: absolute;
    right: -7px;
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    height: 14px;
    background: radial-gradient(circle, 
        rgba(242, 215, 160, 1) 0%, 
        rgba(212, 184, 134, 1) 100%);
    border: 2px solid rgba(166, 145, 106, 0.8);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.2s ease;
    box-shadow: 
        0 0 8px rgba(212, 184, 134, 0.6),
        inset 0 1px 2px rgba(255, 255, 255, 0.4);
}

.war-echo-progress-bar:hover .war-echo-progress-fill::after {
    opacity: 1;
}

.war-echo-progress-bar:hover {
    border-color: rgba(212, 184, 134, 0.4);
    box-shadow: 
        inset 0 1px 2px rgba(0, 0, 0, 0.3),
        0 1px 1px rgba(0, 0, 0, 0.2),
        0 0 12px rgba(212, 184, 134, 0.2);
}

.war-echo-time-separator {
    color: rgba(166, 145, 106, 0.6);
}

/* Responsive: stack controls on smaller screens */
@media (max-width: 600px) {
    .war-echo-controls-compact {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }
    
    .war-echo-progress-compact {
        min-width: 100%;
    }
    
    .war-echo-volume-container-compact {
        min-width: 100%;
    }
}

.war-echo-volume-icon {
    font-size: 0.875rem;
    color: #d4b886;
    min-width: 1.25rem;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5));
}

.war-echo-volume-slider {
    flex: 1;
    height: 5px;
    background: linear-gradient(90deg, 
        rgba(166, 145, 106, 0.2) 0%, 
        rgba(212, 184, 134, 0.15) 50%,
        rgba(166, 145, 106, 0.2) 100%);
    border-radius: 3px;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    border: 1px solid rgba(212, 184, 134, 0.2);
    box-shadow: 
        inset 0 1px 2px rgba(0, 0, 0, 0.3),
        0 1px 1px rgba(0, 0, 0, 0.2);
}

.war-echo-volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    background: radial-gradient(circle, 
        rgba(242, 215, 160, 1) 0%, 
        rgba(212, 184, 134, 1) 100%);
    border: 2px solid rgba(166, 145, 106, 0.8);
    border-radius: 50%;
    transition: all 0.2s ease;
    box-shadow: 
        0 0 8px rgba(212, 184, 134, 0.6),
        inset 0 1px 2px rgba(255, 255, 255, 0.4);
}

.war-echo-volume-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 
        0 0 12px rgba(212, 184, 134, 0.8),
        inset 0 1px 2px rgba(255, 255, 255, 0.5);
    border-color: rgba(242, 215, 160, 1);
}

.war-echo-volume-slider::-moz-range-thumb {
    width: 14px;
    height: 14px;
    background: radial-gradient(circle, 
        rgba(242, 215, 160, 1) 0%, 
        rgba(212, 184, 134, 1) 100%);
    border: 2px solid rgba(166, 145, 106, 0.8);
    border-radius: 50%;
    transition: all 0.2s ease;
    box-shadow: 
        0 0 8px rgba(212, 184, 134, 0.6),
        inset 0 1px 2px rgba(255, 255, 255, 0.4);
}

.war-echo-volume-slider::-moz-range-thumb:hover {
    transform: scale(1.2);
    box-shadow: 
        0 0 12px rgba(212, 184, 134, 0.8),
        inset 0 1px 2px rgba(255, 255, 255, 0.5);
    border-color: rgba(242, 215, 160, 1);
}

.war-echo-volume-value {
    font-size: 0.75rem;
    color: #a6916a;
    min-width: 2.5rem;
    text-align: right;
    font-family: 'Space Mono', 'IBM Plex Mono', 'Courier New', monospace;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.training-modal {
    position: fixed;
    inset: 0;
    background: rgba(3, 5, 10, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    padding: 1.5rem;
}

.training-modal.is-active {
    opacity: 1;
    pointer-events: auto;
}

.training-modal-dialog {
    width: min(720px, 100%);
    max-height: 92vh;
    overflow: visible;
    display: flex;
    flex-direction: column;
    background: radial-gradient(circle at top, rgba(242, 215, 160, 0.08), rgba(6, 9, 18, 0.98));
    border: 1px solid rgba(212, 184, 134, 0.25);
    border-radius: 1rem;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.65);
}

.training-modal-dialog--tasks {
    width: min(520px, 100%);
}

.training-modal-header {
    display: flex;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.75rem 2rem 1.25rem;
}

.training-modal-kicker {
    margin: 0 0 0.6rem;
    font-size: 0.78rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(212, 184, 134, 0.75);
}

.training-modal-subhead {
    margin: 0.3rem 0 0;
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.7);
}

.training-modal-close {
    border: none;
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.8);
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 999px;
    font-size: 1.35rem;
    cursor: url('img/hand-pointing-cursor.png') 6 5, pointer !important;
    transition: background 0.2s ease;
}

.training-modal-close:hover {
    background: rgba(255, 255, 255, 0.08);
    cursor: url('img/hand-pointing-cursor.png') 6 5, pointer !important;
}

.training-modal-body {
    padding: 0 2rem 1rem;
    overflow-y: auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.training-task-form {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.training-form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.training-form-group label {
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(212, 184, 134, 0.8);
}

.training-task-days-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.4rem;
}

.training-day-presets {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.65rem;
}

.training-day-preset {
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.03);
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.35rem 0.75rem;
    cursor: url('img/hand-pointing-cursor.png') 6 5, pointer !important;
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.training-day-preset:hover {
    border-color: rgba(242, 215, 160, 0.5);
    color: #f2d7a0;
    cursor: url('img/hand-pointing-cursor.png') 6 5, pointer !important;
}

.training-edit-row {
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 0.9rem;
    padding: 1rem 1.25rem;
    background: rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    transition: border-color 0.2s ease, opacity 0.2s ease;
    overflow: visible;
}

.training-edit-row.is-removed {
    opacity: 0.45;
    border-color: rgba(239, 68, 68, 0.6);
}

.training-edit-row-main {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    overflow: visible;
    position: relative;
}

.training-edit-row-meta {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1rem;
}

.training-edit-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.training-edit-label {
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(212, 184, 134, 0.75);
}

.training-edit-input {
    width: 100%;
    border-radius: 0.5rem;
    border: 1px solid rgba(212, 184, 134, 0.25);
    background: rgba(2, 4, 9, 0.65);
    color: #f7f2da;
    padding: 0.6rem 0.75rem;
    font-size: 0.95rem;
}

.training-edit-input:focus {
    outline: none;
    border-color: rgba(212, 184, 134, 0.55);
    box-shadow: 0 0 0 2px rgba(212, 184, 134, 0.15);
}

textarea.training-edit-input {
    min-height: 110px;
    resize: vertical;
    line-height: 1.45;
}

.training-edit-delete {
    border-radius: 999px;
    border: 1px solid rgba(239, 68, 68, 0.35);
    background: rgba(239, 68, 68, 0.08);
    color: #fca5a5;
    padding: 0.45rem 1rem;
    cursor: url('img/hand-pointing-cursor.png') 6 5, pointer !important;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.training-edit-delete:hover {
    background: rgba(239, 68, 68, 0.18);
    border-color: rgba(239, 68, 68, 0.55);
    cursor: url('img/hand-pointing-cursor.png') 6 5, pointer !important;
}

.training-edit-context {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.training-edit-context-input {
    min-height: 110px;
    resize: vertical;
    line-height: 1.45;
}

.training-edit-days {
    display: none;
    flex-direction: column;
    gap: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.training-edit-days.is-visible {
    display: flex;
}

.training-edit-days-label {
    margin: 0;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.72);
    letter-spacing: 0.04em;
}

.training-edit-days-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0.4rem;
}

.training-day-chip {
    cursor: url('img/hand-pointing-cursor.png') 6 5, pointer !important;
    font-size: 0.8rem;
}

.training-day-chip:hover {
    cursor: url('img/hand-pointing-cursor.png') 6 5, pointer !important;
}

.training-day-chip input {
    display: none;
}

.training-day-chip span {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.45rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 0.35rem 0.2rem;
    background: rgba(255, 255, 255, 0.02);
    color: rgba(255, 255, 255, 0.75);
    min-height: 1.9rem;
}

.training-day-chip input:checked + span {
    border-color: rgba(242, 215, 160, 0.8);
    background: rgba(242, 215, 160, 0.08);
    color: #f2d7a0;
    font-weight: 600;
    box-shadow: 0 0 12px rgba(242, 215, 160, 0.25);
}

.training-edit-days-hint {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.55);
}

.training-modal-footer {
    padding: 1.25rem 2rem 1.75rem;
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.training-modal-btn {
    border-radius: 999px;
    padding: 0.65rem 1.5rem;
    border: 1px solid transparent;
    cursor: url('img/hand-pointing-cursor.png') 6 5, pointer !important;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.training-modal-btn:hover {
    cursor: url('img/hand-pointing-cursor.png') 6 5, pointer !important;
}

.training-modal-btn.ghost {
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    border-color: rgba(255, 255, 255, 0.2);
}

.training-modal-btn.primary {
    background: linear-gradient(120deg, #e4c680, #caa35e);
    border-color: rgba(0, 0, 0, 0.1);
    color: #1f1405;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}

.training-edit-empty {
    margin: 0;
    padding: 1rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.65);
    border: 1px dashed rgba(255, 255, 255, 0.2);
    border-radius: 0.75rem;
}
.training-history {
    margin-bottom: 1.75rem;
}

.training-history-header {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-bottom: 0.85rem;
}

.training-history-title {
    font-size: 0.95rem;
    font-weight: 600;
}

.training-history-caption {
    font-size: 0.75rem;
    color: var(--training-text-soft);
}

/* Interval Training Timer */
.interval-section {
    margin-bottom: 1.75rem;
}

.interval-card {
    background: radial-gradient(circle at 20% -20%, rgba(242, 215, 160, 0.16), rgba(7, 9, 17, 0.96));
    border: 1px solid rgba(242, 215, 160, 0.3);
}

.interval-header-collapsible {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: url('img/hand-pointing-cursor.png') 6 5, pointer !important;
    padding: 0.5rem 0;
    margin-bottom: 1rem;
    transition: opacity 0.2s ease;
}

.interval-header-collapsible:hover {
    opacity: 0.85;
}

.interval-title-container {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    flex: 1;
}

.interval-title {
    font-size: 1rem;
    font-weight: 700;
    color: #f2d7a0;
    margin: 0;
    letter-spacing: 0.05em;
}

.interval-toggle {
    font-size: 0.8rem;
    color: rgba(242, 215, 160, 0.7);
    transition: transform 0.2s ease;
    user-select: none;
}

.interval-header-collapsible.collapsed .interval-toggle {
    transform: rotate(-90deg);
}

.interval-content {
    transition: max-height 0.3s ease, opacity 0.2s ease, padding 0.3s ease, margin 0.3s ease;
    overflow: hidden;
    opacity: 1;
    max-height: 2000px;
}

.interval-content.collapsed {
    max-height: 0 !important;
    opacity: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
}

.interval-container {
    padding: 1rem;
}

.interval-display {
    text-align: center;
    margin-bottom: 1.5rem;
}

.interval-time {
    font-size: 3rem;
    font-weight: 700;
    color: #f2d7a0;
    font-family: 'Space Mono', 'IBM Plex Mono', 'Courier New', monospace;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 20px rgba(242, 215, 160, 0.3);
}

.interval-status {
    font-size: 0.9rem;
    color: rgba(242, 215, 160, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}

.interval-rounds {
    font-size: 0.85rem;
    color: rgba(242, 215, 160, 0.6);
    letter-spacing: 0.05em;
}

.interval-controls {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.interval-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 600;
    cursor: url('img/kunai-cursor-64.png') 6 5, auto;
    font-family: -apple-system, BlinkSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.interval-start-btn,
.interval-pause-btn {
    background: linear-gradient(135deg, #e8c987, #b8924e);
    color: #2b1d0f;
    padding: 12px 26px;
    border-radius: 28px;
    font-size: 15px;
    border: none;
    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.4),
        0 0 14px rgba(255, 210, 110, 0.25),
        inset 0 0 4px rgba(255, 255, 255, 0.3);
    transition: 0.2s ease;
}

.interval-reset-btn {
    background: transparent;
    border: 1px solid rgba(212, 178, 111, 0.6);
    color: #d4b26f;
    padding: 10px 20px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: none;
    transition: all 0.25s ease;
}

.interval-start-btn:hover,
.interval-pause-btn:hover {
    filter: brightness(1.08);
    cursor: url('img/hand-pointing-cursor.png') 6 5, pointer !important;
}

.interval-reset-btn:hover {
    border-color: rgba(212, 178, 111, 1);
    color: #f0d9a0;
    box-shadow: 0 0 12px rgba(212, 178, 111, 0.25);
    cursor: url('img/hand-pointing-cursor.png') 6 5, pointer !important;
}

.interval-start-btn:active,
.interval-pause-btn:active {
    transform: translateY(0px) scale(0.98);
    box-shadow:
        0 0 8px rgba(255, 200, 110, 0.25),
        inset 0 0 2px rgba(255, 255, 255, 0.2);
}

.interval-reset-btn:active {
    transform: scale(0.97);
}

.interval-settings {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(242, 215, 160, 0.2);
}

.interval-setting-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.interval-setting-group label {
    font-size: 0.8rem;
    color: rgba(242, 215, 160, 0.8);
    letter-spacing: 0.05em;
}

.interval-input {
    padding: 0.5rem 0.75rem;
    border-radius: 0.4rem;
    border: 1px solid rgba(242, 215, 160, 0.25);
    background: rgba(2, 4, 9, 0.65);
    color: #f7f2da;
    font-size: 0.95rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.interval-input:focus {
    outline: none;
    border-color: rgba(242, 215, 160, 0.55);
    box-shadow: 0 0 0 2px rgba(242, 215, 160, 0.15);
}

.interval-checkbox-group {
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
}

.interval-checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: url('img/hand-pointing-cursor.png') 6 5, pointer !important;
    font-size: 0.9rem;
    color: rgba(242, 215, 160, 0.9);
}

.interval-checkbox {
    width: 1.1rem;
    height: 1.1rem;
    cursor: url('img/hand-pointing-cursor.png') 6 5, pointer !important;
    accent-color: #f2d7a0;
}

/* Rest Timer */
.rest-section {
    margin-bottom: 1.75rem;
}

.rest-card {
    background: radial-gradient(circle at 20% -20%, rgba(242, 215, 160, 0.16), rgba(7, 9, 17, 0.96));
    border: 1px solid rgba(242, 215, 160, 0.3);
}

.rest-header-collapsible {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: url('img/hand-pointing-cursor.png') 6 5, pointer !important;
    padding: 0.5rem 0;
    margin-bottom: 1rem;
    transition: opacity 0.2s ease;
}

.rest-header-collapsible:hover {
    opacity: 0.85;
}

.rest-title-container {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    flex: 1;
}

.rest-title {
    font-size: 1rem;
    font-weight: 700;
    color: #f2d7a0;
    margin: 0;
    letter-spacing: 0.05em;
}

.rest-toggle {
    font-size: 0.8rem;
    color: rgba(242, 215, 160, 0.7);
    transition: transform 0.2s ease;
    user-select: none;
}

.rest-header-collapsible.collapsed .rest-toggle {
    transform: rotate(-90deg);
}

.rest-content {
    transition: max-height 0.3s ease, opacity 0.2s ease, padding 0.3s ease, margin 0.3s ease;
    overflow: hidden;
    opacity: 1;
    max-height: 2000px;
}

.rest-content.collapsed {
    max-height: 0 !important;
    opacity: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
}

.rest-container {
    padding: 1rem;
}

.rest-display {
    text-align: center;
    margin-bottom: 1.5rem;
}

.rest-time {
    font-size: 3rem;
    font-weight: 700;
    color: #f2d7a0;
    font-family: 'Space Mono', 'IBM Plex Mono', 'Courier New', monospace;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 20px rgba(242, 215, 160, 0.3);
}

.rest-status {
    font-size: 0.9rem;
    color: rgba(242, 215, 160, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.rest-controls {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.rest-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 600;
    cursor: url('img/kunai-cursor-64.png') 6 5, auto;
    font-family: -apple-system, BlinkSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.rest-start-btn,
.rest-pause-btn {
    background: linear-gradient(135deg, #e8c987, #b8924e);
    color: #2b1d0f;
    padding: 12px 26px;
    border-radius: 28px;
    font-size: 15px;
    border: none;
    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.4),
        0 0 14px rgba(255, 210, 110, 0.25),
        inset 0 0 4px rgba(255, 255, 255, 0.3);
    transition: 0.2s ease;
}

.rest-reset-btn {
    background: transparent;
    border: 1px solid rgba(212, 178, 111, 0.6);
    color: #d4b26f;
    padding: 10px 20px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: none;
    transition: all 0.25s ease;
}

.rest-start-btn:hover,
.rest-pause-btn:hover {
    filter: brightness(1.08);
    cursor: url('img/hand-pointing-cursor.png') 6 5, pointer !important;
}

.rest-reset-btn:hover {
    border-color: rgba(212, 178, 111, 1);
    color: #f0d9a0;
    box-shadow: 0 0 12px rgba(212, 178, 111, 0.25);
    cursor: url('img/hand-pointing-cursor.png') 6 5, pointer !important;
}

.rest-start-btn:active,
.rest-pause-btn:active {
    transform: translateY(0px) scale(0.98);
    box-shadow:
        0 0 8px rgba(255, 200, 110, 0.25),
        inset 0 0 2px rgba(255, 255, 255, 0.2);
}

.rest-reset-btn:active {
    transform: scale(0.97);
}

.rest-settings {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(242, 215, 160, 0.2);
}

.rest-setting-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.rest-setting-group label {
    font-size: 0.8rem;
    color: rgba(242, 215, 160, 0.8);
    letter-spacing: 0.05em;
}

.rest-input {
    padding: 0.5rem 0.75rem;
    border-radius: 0.4rem;
    border: 1px solid rgba(242, 215, 160, 0.25);
    background: rgba(2, 4, 9, 0.65);
    color: #f7f2da;
    font-size: 0.95rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.rest-input:focus {
    outline: none;
    border-color: rgba(242, 215, 160, 0.55);
    box-shadow: 0 0 0 2px rgba(242, 215, 160, 0.15);
}

/* Meditation Timer */
.meditation-section {
    margin-bottom: 1.75rem;
}

.meditation-card {
    background: radial-gradient(circle at 20% -20%, rgba(242, 215, 160, 0.16), rgba(7, 9, 17, 0.96));
    border: 1px solid rgba(242, 215, 160, 0.3);
}

.meditation-header-collapsible {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: url('img/hand-pointing-cursor.png') 6 5, pointer !important;
    padding: 0.5rem 0;
    margin-bottom: 1rem;
    transition: opacity 0.2s ease;
}

.meditation-header-collapsible:hover {
    opacity: 0.85;
}

.meditation-title-container {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    flex: 1;
}

.meditation-title {
    font-size: 1rem;
    font-weight: 700;
    color: #f2d7a0;
    margin: 0;
    letter-spacing: 0.05em;
}

.meditation-toggle {
    font-size: 0.8rem;
    color: rgba(242, 215, 160, 0.7);
    transition: transform 0.2s ease;
    user-select: none;
}

.meditation-header-collapsible.collapsed .meditation-toggle {
    transform: rotate(-90deg);
}

.meditation-content {
    transition: max-height 0.3s ease, opacity 0.2s ease;
    overflow: hidden;
    opacity: 1;
    max-height: 800px;
}

.meditation-content.collapsed {
    max-height: 0;
    opacity: 0;
    margin: 0;
    padding: 0;
}

.meditation-container {
    padding: 0;
}

.meditation-display {
    text-align: center;
    margin-bottom: 1.5rem;
}

.meditation-time {
    font-size: 3rem;
    font-weight: 700;
    color: #f2d7a0;
    font-family: 'Space Mono', 'IBM Plex Mono', 'Courier New', monospace;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 20px rgba(242, 215, 160, 0.3);
}

.meditation-status {
    font-size: 0.9rem;
    color: rgba(242, 215, 160, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.meditation-controls {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.meditation-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 600;
    cursor: url('img/kunai-cursor-64.png') 6 5, auto;
    font-family: -apple-system, BlinkSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.meditation-start-btn,
.meditation-pause-btn {
    background: linear-gradient(135deg, #e8c987, #b8924e);
    color: #2b1d0f;
    padding: 12px 26px;
    border-radius: 28px;
    font-size: 15px;
    border: none;
    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.4),
        0 0 14px rgba(255, 210, 110, 0.25),
        inset 0 0 4px rgba(255, 255, 255, 0.3);
    transition: 0.2s ease;
}

.meditation-reset-btn {
    background: transparent;
    border: 1px solid rgba(212, 178, 111, 0.6);
    color: #d4b26f;
    padding: 10px 20px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: none;
    transition: all 0.25s ease;
}

.meditation-start-btn:hover,
.meditation-pause-btn:hover {
    filter: brightness(1.08);
    cursor: url('img/hand-pointing-cursor.png') 6 5, pointer !important;
}

.meditation-reset-btn:hover {
    border-color: rgba(212, 178, 111, 1);
    color: #f0d9a0;
    box-shadow: 0 0 12px rgba(212, 178, 111, 0.25);
    cursor: url('img/hand-pointing-cursor.png') 6 5, pointer !important;
}

.meditation-start-btn:active,
.meditation-pause-btn:active {
    transform: translateY(0px) scale(0.98);
    box-shadow:
        0 0 8px rgba(255, 200, 110, 0.25),
        inset 0 0 2px rgba(255, 255, 255, 0.2);
}

.meditation-reset-btn:active {
    transform: scale(0.97);
}

.meditation-settings {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(242, 215, 160, 0.2);
}

.meditation-setting-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.meditation-setting-group label {
    font-size: 0.8rem;
    color: rgba(242, 215, 160, 0.8);
    letter-spacing: 0.05em;
}

.meditation-input {
    padding: 0.5rem 0.75rem;
    border-radius: 0.4rem;
    border: 1px solid rgba(242, 215, 160, 0.25);
    background: rgba(2, 4, 9, 0.65);
    color: #f7f2da;
    font-size: 0.95rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.meditation-input:focus {
    outline: none;
    border-color: rgba(242, 215, 160, 0.55);
    box-shadow: 0 0 0 2px rgba(242, 215, 160, 0.15);
}

.meditation-checkbox-group {
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
}

.meditation-checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: url('img/hand-pointing-cursor.png') 6 5, pointer !important;
    font-size: 0.9rem;
    color: rgba(242, 215, 160, 0.9);
}

.meditation-checkbox {
    width: 1.1rem;
    height: 1.1rem;
    cursor: url('img/hand-pointing-cursor.png') 6 5, pointer !important;
    accent-color: #f2d7a0;
}

/* Pomodoro Timer */
.pomodoro-section {
    margin-bottom: 1.75rem;
}

.pomodoro-card {
    background: radial-gradient(circle at 20% -20%, rgba(242, 215, 160, 0.16), rgba(7, 9, 17, 0.96));
    border: 1px solid rgba(242, 215, 160, 0.3);
}

.pomodoro-header-collapsible {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: url('img/hand-pointing-cursor.png') 6 5, pointer !important;
    padding: 0.5rem 0;
    margin-bottom: 1rem;
    transition: opacity 0.2s ease;
}

.pomodoro-header-collapsible:hover {
    opacity: 0.85;
}

.pomodoro-title-container {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    flex: 1;
}

.pomodoro-title {
    font-size: 1rem;
    font-weight: 700;
    color: #f2d7a0;
    margin: 0;
    letter-spacing: 0.05em;
}

.pomodoro-toggle {
    font-size: 0.8rem;
    color: rgba(242, 215, 160, 0.7);
    transition: transform 0.2s ease;
    user-select: none;
}

.pomodoro-header-collapsible.collapsed .pomodoro-toggle {
    transform: rotate(-90deg);
}

.pomodoro-content {
    transition: max-height 0.3s ease, opacity 0.2s ease;
    overflow: hidden;
    opacity: 1;
    max-height: 1000px;
}

.pomodoro-content.collapsed {
    max-height: 0;
    opacity: 0;
    margin: 0;
    padding: 0;
}

.pomodoro-container {
    padding: 0;
}

.pomodoro-display {
    text-align: center;
    margin-bottom: 1.5rem;
}

.pomodoro-time {
    font-size: 3rem;
    font-weight: 700;
    color: #f2d7a0;
    font-family: 'Space Mono', 'IBM Plex Mono', 'Courier New', monospace;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 20px rgba(242, 215, 160, 0.3);
}

.pomodoro-status {
    font-size: 0.9rem;
    color: rgba(242, 215, 160, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.pomodoro-controls {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.pomodoro-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 600;
    cursor: url('img/kunai-cursor-64.png') 6 5, auto;
    font-family: -apple-system, BlinkSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.pomodoro-start-btn,
.pomodoro-pause-btn {
    background: linear-gradient(135deg, #e8c987, #b8924e);
    color: #2b1d0f;
    padding: 12px 26px;
    border-radius: 28px;
    font-size: 15px;
    border: none;
    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.4),
        0 0 14px rgba(255, 210, 110, 0.25),
        inset 0 0 4px rgba(255, 255, 255, 0.3);
    transition: 0.2s ease;
}

.pomodoro-reset-btn {
    background: transparent;
    border: 1px solid rgba(212, 178, 111, 0.6);
    color: #d4b26f;
    padding: 10px 20px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: none;
    transition: all 0.25s ease;
}

.pomodoro-start-btn:hover,
.pomodoro-pause-btn:hover {
    filter: brightness(1.08);
    cursor: url('img/hand-pointing-cursor.png') 6 5, pointer !important;
}

.pomodoro-reset-btn:hover {
    border-color: rgba(212, 178, 111, 1);
    color: #f0d9a0;
    box-shadow: 0 0 12px rgba(212, 178, 111, 0.25);
    cursor: url('img/hand-pointing-cursor.png') 6 5, pointer !important;
}

.pomodoro-start-btn:active,
.pomodoro-pause-btn:active {
    transform: translateY(0px) scale(0.98);
    box-shadow:
        0 0 8px rgba(255, 200, 110, 0.25),
        inset 0 0 2px rgba(255, 255, 255, 0.2);
}

.pomodoro-reset-btn:active {
    transform: scale(0.97);
}

.pomodoro-settings-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.pomodoro-toggle-switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 24px;
}

.pomodoro-toggle-input {
    opacity: 0;
    width: 0;
    height: 0;
}

.pomodoro-toggle-slider {
    position: absolute;
    cursor: url('img/hand-pointing-cursor.png') 6 5, pointer !important;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(242, 215, 160, 0.2);
    transition: 0.3s;
    border-radius: 24px;
}

.pomodoro-toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: rgba(242, 215, 160, 0.6);
    transition: 0.3s;
    border-radius: 50%;
}

.pomodoro-toggle-input:checked + .pomodoro-toggle-slider {
    background-color: rgba(242, 215, 160, 0.4);
}

.pomodoro-toggle-input:checked + .pomodoro-toggle-slider:before {
    transform: translateX(24px);
    background-color: #f2d7a0;
}

.pomodoro-toggle-label {
    font-size: 0.9rem;
    color: rgba(242, 215, 160, 0.8);
    cursor: url('img/hand-pointing-cursor.png') 6 5, pointer !important;
}

.pomodoro-settings {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(242, 215, 160, 0.2);
}

.pomodoro-setting-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.pomodoro-setting-group label {
    font-size: 0.8rem;
    color: rgba(242, 215, 160, 0.8);
    letter-spacing: 0.05em;
}

.pomodoro-input {
    padding: 0.5rem 0.75rem;
    border-radius: 0.4rem;
    border: 1px solid rgba(242, 215, 160, 0.25);
    background: rgba(2, 4, 9, 0.65);
    color: #f7f2da;
    font-size: 0.95rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.pomodoro-input:focus {
    outline: none;
    border-color: rgba(242, 215, 160, 0.55);
    box-shadow: 0 0 0 2px rgba(242, 215, 160, 0.15);
}

.pomodoro-checkbox-group {
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
}

.pomodoro-autostart-group {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1.25rem;
    padding-bottom: 0.75rem;
    margin-bottom: 0.5rem;
    border-bottom: 1px solid rgba(242, 215, 160, 0.15);
    flex-wrap: wrap;
}

.pomodoro-checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: url('img/hand-pointing-cursor.png') 6 5, pointer !important;
    font-size: 0.85rem;
    color: rgba(242, 215, 160, 0.75);
}

.pomodoro-checkbox {
    width: 1.1rem;
    height: 1.1rem;
    cursor: url('img/hand-pointing-cursor.png') 6 5, pointer !important;
    accent-color: #f2d7a0;
}

/* FIELD NOTES (Scratchpad) */
.scratchpad-section {
    margin-bottom: 1.75rem;
}

.scratchpad-card {
    background: radial-gradient(circle at 20% -20%, rgba(242, 215, 160, 0.16), rgba(7, 9, 17, 0.96));
    border: 1px solid rgba(242, 215, 160, 0.3);
}

.scratchpad-header-collapsible {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: url('img/hand-pointing-cursor.png') 6 5, pointer !important;
    padding: 0.5rem 0;
    margin-bottom: 1rem;
    transition: opacity 0.2s ease;
}

.scratchpad-header-collapsible:hover {
    opacity: 0.85;
}

.scratchpad-title-container {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    flex: 1;
}

.scratchpad-title {
    font-size: 1rem;
    font-weight: 700;
    color: #f2d7a0;
    margin: 0;
    letter-spacing: 0.05em;
}

.scratchpad-subtitle {
    font-size: 0.75rem;
    color: rgba(242, 215, 160, 0.7);
    font-weight: 400;
}

.scratchpad-toggle {
    font-size: 0.8rem;
    color: rgba(242, 215, 160, 0.7);
    transition: transform 0.2s ease;
    user-select: none;
}

.scratchpad-header-collapsible.collapsed .scratchpad-toggle {
    transform: rotate(-90deg);
}

.scratchpad-content {
    transition: max-height 0.3s ease, opacity 0.2s ease;
    overflow: hidden;
    opacity: 1;
    max-height: 500px;
}

.scratchpad-content.collapsed {
    max-height: 0;
    opacity: 0;
    margin: 0;
    padding: 0;
}

.scratchpad-container {
    padding: 0;
}

.scratchpad-textarea {
    width: 100%;
    min-height: 150px;
    padding: 0.85rem 1rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(242, 215, 160, 0.25);
    background: rgba(2, 4, 9, 0.65);
    color: #f7f2da;
    font-size: 0.95rem;
    line-height: 1.5;
    resize: vertical;
    font-family: -apple-system, BlinkSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.scratchpad-textarea:focus {
    outline: none;
    border-color: rgba(242, 215, 160, 0.55);
    box-shadow: 0 0 0 2px rgba(242, 215, 160, 0.15);
}

.scratchpad-textarea::placeholder {
    color: rgba(242, 215, 160, 0.4);
}

.consistency-section {
    margin-top: 0;
    padding: 1.5rem 1.6rem;
    background: radial-gradient(circle at 20% -20%, rgba(242, 215, 160, 0.14), rgba(7, 9, 17, 0.96));
    border-radius: var(--training-card-radius);
    border: 1px solid rgba(212, 184, 134, 0.25);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
    overflow: hidden;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        0 18px 38px rgba(0, 0, 0, 0.55);
}

.consistency-section::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 75% 0%, rgba(248, 113, 113, 0.12), transparent 55%);
    opacity: 0.6;
    pointer-events: none;
}

.month-row {
    display: grid;
    grid-template-columns: 120px 1fr;
    align-items: center;
    gap: 1.2rem;
    padding: 0.45rem 0.75rem 0.45rem 0.6rem;
    border-radius: 0.65rem;
    border: 1px solid rgba(212, 184, 134, 0.18);
    background: rgba(212, 184, 134, 0.02);
    transition: border-color 0.2s ease, background 0.2s ease;
}

.month-row.current-month {
    background: radial-gradient(circle at left, rgba(242, 215, 160, 0.2), rgba(255, 255, 255, 0.01));
    border-color: rgba(212, 184, 134, 0.4);
}

.month-label {
    font-size: 0.78rem;
    color: rgba(242, 215, 160, 0.85);
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.consistency-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(10px, 1fr));
    gap: 6px;
    max-width: 720px;
}

.day-square {
    width: 10px;
    height: 10px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.06);
}

.day-square.active {
    background: #d4b886;
    box-shadow: 0 0 6px rgba(212, 184, 134, 0.65);
}

.training-manage {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.training-manage-header {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-bottom: 0.8rem;
}

.training-manage-title {
    font-size: 0.85rem;
    font-weight: 600;
}

.training-manage-caption {
    font-size: 0.8rem;
    color: var(--training-text-soft);
}

.training-manage-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
}

.training-page .btn {
    border-radius: 999px;
    padding: 0.45rem 0.95rem;
    font-size: 0.8rem;
    border: 1px solid transparent;
    cursor: url('img/hand-pointing-cursor.png') 6 5, pointer !important;
}

.training-page .btn-primary {
    background: linear-gradient(135deg, var(--training-accent), var(--training-accent-soft));
    border-color: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.training-page .btn-secondary {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.12);
    color: var(--training-text-main);
}

@media (max-width: 900px) {
    .training-banner-weekly {
        grid-template-columns: minmax(0, 1fr);
    }

    .training-guidance-grid {
        grid-template-columns: minmax(0, 1fr);
        padding-top: 1.2rem;
        gap: 1.25rem;
    }

    .training-daily-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .training-coach-card {
        max-width: 360px;
        width: 100%;
        margin: 0 auto;
    }

    .training-week-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .training-page {
        padding-inline: 1rem;
    }

    .training-banner-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .training-banner-metrics {
        width: 100%;
        justify-content: flex-start;
        gap: 1.25rem;
    }

    .training-week-stats {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }

    .month-row {
        grid-template-columns: minmax(0, 1fr);
        padding-right: 0;
    }

    .month-label {
        margin-bottom: 0.2rem;
    }
}

.training-page--physical {
    --training-accent: #ea580c;
    --training-accent-soft: rgba(234, 88, 12, 0.4);
    --training-accent-softest: rgba(234, 88, 12, 0.16);
}

.training-page--mental {
    --training-accent: #9333ea;
    --training-accent-soft: rgba(147, 51, 234, 0.4);
    --training-accent-softest: rgba(147, 51, 234, 0.18);
}

.training-page--inner {
    --training-accent: #4A5568;
    --training-accent-soft: rgba(74, 85, 104, 0.4);
    --training-accent-softest: rgba(74, 85, 104, 0.18);
}

.training-page--sidequests {
    --training-accent: #10b981;
    --training-accent-soft: rgba(16, 185, 129, 0.4);
    --training-accent-softest: rgba(16, 185, 129, 0.18);
}

/* Warfront Advantage Bar Visual Effects */
.warfront-bar-enhanced {
    position: relative;
}

.warfront-gold-sparks {
    position: absolute;
    left: 0;
    top: 0;
    width: 30%;
    height: 100%;
    background: radial-gradient(ellipse at left, rgba(228, 198, 128, 0.01) 0%, rgba(228, 198, 128, 0.005) 30%, transparent 60%);
    pointer-events: none;
    z-index: 1;
    animation: sparkDrift 8s ease-in-out infinite;
}

.warfront-fog-wisps {
    position: absolute;
    right: 0;
    top: 0;
    width: 30%;
    height: 100%;
    background: radial-gradient(ellipse at right, rgba(150, 150, 180, 0.01) 0%, rgba(150, 150, 180, 0.005) 30%, transparent 60%);
    pointer-events: none;
    z-index: 1;
    animation: fogDrift 10s ease-in-out infinite;
}

.warfront-bar-enhanced .war-metal-bar-fill {
    position: relative;
    z-index: 2;
}

@keyframes sparkDrift {
    0%, 100% {
        opacity: 0.01;
        transform: translateX(0);
    }
    50% {
        opacity: 0.02;
        transform: translateX(2px);
    }
}

@keyframes fogDrift {
    0%, 100% {
        opacity: 0.01;
        transform: translateX(0);
    }
    50% {
        opacity: 0.02;
        transform: translateX(-2px);
    }
}

.battle-event {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.battle-event .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #d1a95f; /* Kintsugi gold */
    display: inline-block;
    margin-right: 10px;
    flex-shrink: 0;
    margin-top: 0.4rem;
}

.battle-event p {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.4;
    color: rgba(255, 255, 255, 1);
    opacity: 0.8;
}

.battle-event.fade-out {
    animation: fadeOut 1.5s ease-out forwards;
}

.battle-event.slide-down {
    animation: slideDown 1.5s ease-out forwards;
}

.battle-event.fade-slide-in {
    animation: fadeSlideIn 1.5s ease-out forwards;
}

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

@keyframes slideDown {
    from {
        transform: translateY(0);
    }
    to {
        transform: translateY(0);
    }
}

@keyframes fadeSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 0.8;
        transform: translateY(0);
    }
}

/* Shield Modal Styles */
.shield-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.shield-modal.is-active {
    display: flex;
}

.shield-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
}

.shield-modal-content {
    position: relative;
    z-index: 10001;
    background: linear-gradient(180deg, #1a1d26 0%, #0f1215 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2.5rem;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    animation: shieldModalFadeIn 0.3s ease-out;
}

@keyframes shieldModalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.shield-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 2rem;
    line-height: 1;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: url('img/kunai-cursor-64.png') 6 5, auto;
    transition: all 0.2s ease;
    z-index: 10002;
}

.shield-modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 1);
    cursor: url('img/kunai-cursor-64-hover.png') 6 5, auto;
}

.shield-modal-image-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem;
}

.shield-modal-image {
    max-width: 100%;
    max-height: 400px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.5));
}

.shield-modal-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    font-weight: 600;
    color: #e4c680;
    text-align: center;
    margin: 0 0 0.5rem 0;
    letter-spacing: 0.05em;
    text-shadow: 0 0 20px rgba(228, 198, 128, 0.3);
}

.shield-modal-subtitle {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem;
    font-weight: 500;
    font-style: italic;
    color: rgba(228, 198, 128, 0.75);
    text-align: center;
    margin: 0 0 1.5rem 0;
    letter-spacing: 0.03em;
}

.shield-modal-lore {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1rem;
    line-height: 1.8;
    letter-spacing: 0.02em;
    text-align: left;
}

.shield-modal-lore p {
    margin: 0 0 1.2rem 0;
}

.shield-modal-lore p:last-child {
    margin-bottom: 0;
    font-style: italic;
    color: rgba(228, 198, 128, 0.9);
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Training Tapes Modal Styles */
.training-tapes-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.training-tapes-modal.is-active {
    display: flex;
}

.training-tapes-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
}

.training-tapes-modal-content {
    position: relative;
    z-index: 10001;
    background: linear-gradient(180deg, #1a1d26 0%, #0f1215 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2.5rem;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    overflow-x: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    animation: shieldModalFadeIn 0.3s ease-out;
}

.training-tapes-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 2rem;
    line-height: 1;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: url('img/kunai-cursor-64.png') 6 5, auto;
    transition: all 0.2s ease;
    z-index: 10002;
}

.training-tapes-modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 1);
    cursor: url('img/kunai-cursor-64-hover.png') 6 5, auto;
}

.training-tapes-modal-header {
    margin-bottom: 2rem;
    text-align: center;
}

.training-tapes-modal-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    font-weight: 600;
    color: #e4c680;
    margin: 0 0 0.5rem 0;
    letter-spacing: 0.05em;
    text-shadow: 0 0 20px rgba(228, 198, 128, 0.3);
}

.training-tapes-modal-subtitle {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
    font-weight: 500;
    font-style: italic;
    color: rgba(228, 198, 128, 0.75);
    margin: 0;
    letter-spacing: 0.03em;
}

.training-tapes-modal-body {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.training-tapes-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    overflow: visible;
    min-width: 0;
}

.training-tapes-section-title {
    font-family: 'Oswald', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: #e4c680;
    letter-spacing: 0.05em;
    margin: 0 0 0.5rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(228, 198, 128, 0.2);
}

.training-tapes-series {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.training-tapes-series-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: url('img/hand-pointing-cursor.png') 6 5, pointer !important;
    padding: 0.75rem 1rem;
    background: rgba(228, 198, 128, 0.05);
    border: 1px solid rgba(228, 198, 128, 0.2);
    border-radius: 8px;
    transition: all 0.2s ease;
}

.training-tapes-series-header:hover {
    background: rgba(228, 198, 128, 0.1);
    border-color: rgba(228, 198, 128, 0.4);
    cursor: url('img/hand-pointing-cursor.png') 6 5, pointer !important;
}

.training-tapes-series-name {
    font-family: 'Oswald', sans-serif;
    font-size: 1.1rem;
    font-weight: 500;
    color: #e4c680;
    letter-spacing: 0.03em;
}

.training-tapes-series-toggle {
    color: rgba(228, 198, 128, 0.7);
    font-size: 1.2rem;
    transition: transform 0.2s ease;
}

.training-tapes-series-header.collapsed .training-tapes-series-toggle {
    transform: rotate(-90deg);
}

.training-tapes-series-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-left: 1rem;
    margin-top: 0.5rem;
}

.training-tapes-series-content.collapsed {
    display: none;
}

.training-tape-item {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transition: all 0.2s ease;
    overflow: visible;
    min-width: 0;
}

.training-tape-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(228, 198, 128, 0.3);
}

.training-tape-item:hover .training-video-player video {
    opacity: 1;
    filter: none;
}

.training-tape-item-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.training-tape-item-info {
    flex: 1;
}

.training-tape-item-title {
    font-family: 'Oswald', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    color: #f5d9a0;
    margin: 0 0 0.25rem 0;
    letter-spacing: 0.02em;
}

.training-tape-item-description {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
    line-height: 1.5;
}

.training-tape-item-new-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    background: rgba(228, 198, 128, 0.2);
    border: 1px solid rgba(228, 198, 128, 0.4);
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    color: #e4c680;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.training-tape-player {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.training-tape-player audio {
    flex: 1;
    height: 40px;
}

.training-tape-player audio::-webkit-media-controls-panel {
    background-color: rgba(12, 15, 21, 0.8);
}

.training-tape-player audio::-webkit-media-controls-play-button {
    background-color: rgba(228, 198, 128, 0.8);
    border-radius: 50%;
}

.training-video-player {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.5rem;
    width: 100%;
    overflow: visible;
}

/* Custom video wrapper */
.custom-video-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    border-radius: 8px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.custom-video-wrapper video {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

/* Hide browser's native captions - we use custom overlay instead */
.custom-video-wrapper video::cue {
    display: none !important;
}

.custom-video-wrapper video::-webkit-media-text-track-display {
    display: none !important;
}

.custom-video-wrapper video::-webkit-media-text-track-container {
    display: none !important;
}

/* Custom video captions overlay */
.custom-video-captions {
    position: absolute;
    bottom: 72px;
    left: 0;
    right: 0;
    padding: 1rem 1.5rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.7) 60%, transparent 100%);
    color: #fff;
    font-family: 'Oswald', sans-serif;
    font-size: 1.1rem;
    line-height: 1.6;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8), 0 0 8px rgba(0, 0, 0, 0.6);
    display: none;
    z-index: 10;
    pointer-events: none;
    max-width: 90%;
    margin: 0 auto;
    word-wrap: break-word;
}

/* Custom video controls */
.custom-video-controls {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: rgba(12, 15, 21, 0.95);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
}

.custom-video-play-pause,
.custom-video-volume-btn,
.custom-video-cc-btn,
.custom-video-fullscreen {
    background: transparent;
    border: none;
    color: #e4c680;
    cursor: url('img/kunai-cursor-64.png') 6 5, auto !important;
    font-size: 1.2rem;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease, transform 0.2s ease;
    flex-shrink: 0;
}

.custom-video-play-pause:hover,
.custom-video-volume-btn:hover,
.custom-video-cc-btn:hover,
.custom-video-fullscreen:hover {
    color: #f5d9a0;
    transform: scale(1.1);
    cursor: url('img/kunai-cursor-64-hover.png') 6 5, auto !important;
}

.custom-video-play-pause:active,
.custom-video-volume-btn:active,
.custom-video-cc-btn:active,
.custom-video-fullscreen:active {
    transform: scale(0.95);
}

.custom-video-cc-btn {
    font-family: 'Oswald', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
}

.custom-video-cc-btn.is-active {
    color: #f5d9a0;
    text-decoration: underline;
}

.custom-video-cc-btn.is-active .cc-icon-active {
    color: #f5d9a0;
}

/* Progress bar */
.custom-video-progress-container {
    flex: 1;
    display: flex;
    align-items: center;
    height: 100%;
    min-width: 0;
    cursor: url('img/kunai-cursor-64.png') 6 5, auto !important;
}

.custom-video-progress-container:hover {
    cursor: url('img/kunai-cursor-64-hover.png') 6 5, auto !important;
}

.custom-video-progress-bar {
    position: relative;
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    cursor: url('img/kunai-cursor-64.png') 6 5, auto !important;
    overflow: visible;
}

.custom-video-progress-filled {
    height: 100%;
    background: linear-gradient(90deg, #e4c680, #caa35e);
    border-radius: 3px;
    width: 0%;
    transition: width 0.1s linear;
}

.custom-video-progress-thumb {
    position: absolute;
    top: 50%;
    left: 0%;
    transform: translate(-50%, -50%);
    width: 14px;
    height: 14px;
    background: #e4c680;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
    box-shadow: 0 0 8px rgba(228, 198, 128, 0.6);
}

.custom-video-progress-bar:hover {
    cursor: url('img/kunai-cursor-64-hover.png') 6 5, auto !important;
}

.custom-video-progress-bar:hover {
    cursor: url('img/kunai-cursor-64-hover.png') 6 5, auto !important;
}

.custom-video-progress-bar:hover .custom-video-progress-thumb {
    opacity: 1;
}

/* Time display */
.custom-video-time {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    font-family: 'Oswald', sans-serif;
    min-width: fit-content;
    flex-shrink: 0;
}

.custom-video-separator {
    color: rgba(255, 255, 255, 0.5);
}

/* Volume controls */
.custom-video-volume-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.custom-video-volume-slider {
    width: 0;
    opacity: 0;
    transition: width 0.2s ease, opacity 0.2s ease;
    overflow: hidden;
}

.custom-video-volume-container:hover .custom-video-volume-bar {
    cursor: url('img/kunai-cursor-64-hover.png') 6 5, auto !important;
}

.custom-video-volume-container:hover .custom-video-volume-slider {
    width: 60px;
    opacity: 1;
}

.custom-video-volume-bar {
    position: relative;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    cursor: url('img/kunai-cursor-64.png') 6 5, auto !important;
}

.custom-video-volume-filled {
    height: 100%;
    background: #e4c680;
    border-radius: 2px;
    width: 100%;
}

/* Fullscreen mode - override max-height and scale video properly */
.custom-video-wrapper:fullscreen,
.custom-video-wrapper:-webkit-full-screen,
.custom-video-wrapper:-moz-full-screen,
.custom-video-wrapper:-ms-fullscreen,
.custom-video-wrapper.is-fullscreen {
    position: relative !important;
    width: 100vw !important;
    height: 100dvh !important;
    background: #000 !important;
    overflow: hidden !important;
    border-radius: 0 !important;
    padding-bottom: var(--custom-video-controls-height, 72px) !important;
}

.custom-video-wrapper:fullscreen video,
.custom-video-wrapper:-webkit-full-screen video,
.custom-video-wrapper:-moz-full-screen video,
.custom-video-wrapper:-ms-fullscreen video,
.custom-video-wrapper.is-fullscreen video {
    width: 100% !important;
    height: auto !important;
    max-height: calc(100dvh - var(--custom-video-controls-height, 72px)) !important;
    object-fit: contain !important;
    display: block !important;
    margin: 0 !important;
}

.custom-video-wrapper:fullscreen .custom-video-controls,
.custom-video-wrapper:-webkit-full-screen .custom-video-controls,
.custom-video-wrapper:-moz-full-screen .custom-video-controls,
.custom-video-wrapper:-ms-fullscreen .custom-video-controls,
.custom-video-wrapper.is-fullscreen .custom-video-controls {
    position: absolute !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    z-index: 10050 !important;
    padding-bottom: env(safe-area-inset-bottom, 0) !important;
    pointer-events: auto !important;
}

.custom-video-wrapper:fullscreen .custom-video-captions,
.custom-video-wrapper:-webkit-full-screen .custom-video-captions,
.custom-video-wrapper:-moz-full-screen .custom-video-captions,
.custom-video-wrapper:-ms-fullscreen .custom-video-captions,
.custom-video-wrapper.is-fullscreen .custom-video-captions {
    bottom: var(--custom-video-controls-height, 72px) !important;
    padding: 1.5rem 2rem !important;
    font-size: 1.3rem !important;
    max-width: 85% !important;
    padding-bottom: calc(1.5rem + env(safe-area-inset-bottom, 0)) !important;
}

/* Fullscreen video controls - kunai cursor */
.custom-video-wrapper:fullscreen .custom-video-play-pause,
.custom-video-wrapper:-webkit-full-screen .custom-video-play-pause,
.custom-video-wrapper:-moz-full-screen .custom-video-play-pause,
.custom-video-wrapper:-ms-fullscreen .custom-video-play-pause,
.custom-video-wrapper.is-fullscreen .custom-video-play-pause,
.custom-video-wrapper:fullscreen .custom-video-volume-btn,
.custom-video-wrapper:-webkit-full-screen .custom-video-volume-btn,
.custom-video-wrapper:-moz-full-screen .custom-video-volume-btn,
.custom-video-wrapper:-ms-fullscreen .custom-video-volume-btn,
.custom-video-wrapper.is-fullscreen .custom-video-volume-btn,
.custom-video-wrapper:fullscreen .custom-video-cc-btn,
.custom-video-wrapper:-webkit-full-screen .custom-video-cc-btn,
.custom-video-wrapper:-moz-full-screen .custom-video-cc-btn,
.custom-video-wrapper:-ms-fullscreen .custom-video-cc-btn,
.custom-video-wrapper.is-fullscreen .custom-video-cc-btn,
.custom-video-wrapper:fullscreen .custom-video-fullscreen,
.custom-video-wrapper:-webkit-full-screen .custom-video-fullscreen,
.custom-video-wrapper:-moz-full-screen .custom-video-fullscreen,
.custom-video-wrapper:-ms-fullscreen .custom-video-fullscreen,
.custom-video-wrapper.is-fullscreen .custom-video-fullscreen {
    cursor: url('img/kunai-cursor-64.png') 6 5, auto !important;
}

.custom-video-wrapper:fullscreen .custom-video-play-pause:hover,
.custom-video-wrapper:-webkit-full-screen .custom-video-play-pause:hover,
.custom-video-wrapper:-moz-full-screen .custom-video-play-pause:hover,
.custom-video-wrapper:-ms-fullscreen .custom-video-play-pause:hover,
.custom-video-wrapper.is-fullscreen .custom-video-play-pause:hover,
.custom-video-wrapper:fullscreen .custom-video-volume-btn:hover,
.custom-video-wrapper:-webkit-full-screen .custom-video-volume-btn:hover,
.custom-video-wrapper:-moz-full-screen .custom-video-volume-btn:hover,
.custom-video-wrapper:-ms-fullscreen .custom-video-volume-btn:hover,
.custom-video-wrapper.is-fullscreen .custom-video-volume-btn:hover,
.custom-video-wrapper:fullscreen .custom-video-cc-btn:hover,
.custom-video-wrapper:-webkit-full-screen .custom-video-cc-btn:hover,
.custom-video-wrapper:-moz-full-screen .custom-video-cc-btn:hover,
.custom-video-wrapper:-ms-fullscreen .custom-video-cc-btn:hover,
.custom-video-wrapper.is-fullscreen .custom-video-cc-btn:hover,
.custom-video-wrapper:fullscreen .custom-video-fullscreen:hover,
.custom-video-wrapper:-webkit-full-screen .custom-video-fullscreen:hover,
.custom-video-wrapper:-moz-full-screen .custom-video-fullscreen:hover,
.custom-video-wrapper:-ms-fullscreen .custom-video-fullscreen:hover,
.custom-video-wrapper.is-fullscreen .custom-video-fullscreen:hover {
    cursor: url('img/kunai-cursor-64-hover.png') 6 5, auto !important;
}

.custom-video-wrapper:fullscreen .custom-video-progress-container,
.custom-video-wrapper:-webkit-full-screen .custom-video-progress-container,
.custom-video-wrapper:-moz-full-screen .custom-video-progress-container,
.custom-video-wrapper:-ms-fullscreen .custom-video-progress-container,
.custom-video-wrapper.is-fullscreen .custom-video-progress-container {
    cursor: url('img/kunai-cursor-64.png') 6 5, auto !important;
}

.custom-video-wrapper:fullscreen .custom-video-progress-container:hover,
.custom-video-wrapper:-webkit-full-screen .custom-video-progress-container:hover,
.custom-video-wrapper:-moz-full-screen .custom-video-progress-container:hover,
.custom-video-wrapper:-ms-fullscreen .custom-video-progress-container:hover,
.custom-video-wrapper.is-fullscreen .custom-video-progress-container:hover {
    cursor: url('img/kunai-cursor-64-hover.png') 6 5, auto !important;
}

.custom-video-wrapper:fullscreen .custom-video-progress-bar,
.custom-video-wrapper:-webkit-full-screen .custom-video-progress-bar,
.custom-video-wrapper:-moz-full-screen .custom-video-progress-bar,
.custom-video-wrapper:-ms-fullscreen .custom-video-progress-bar,
.custom-video-wrapper.is-fullscreen .custom-video-progress-bar {
    cursor: url('img/kunai-cursor-64.png') 6 5, auto !important;
}

.custom-video-wrapper:fullscreen .custom-video-progress-bar:hover,
.custom-video-wrapper:-webkit-full-screen .custom-video-progress-bar:hover,
.custom-video-wrapper:-moz-full-screen .custom-video-progress-bar:hover,
.custom-video-wrapper:-ms-fullscreen .custom-video-progress-bar:hover,
.custom-video-wrapper.is-fullscreen .custom-video-progress-bar:hover {
    cursor: url('img/kunai-cursor-64-hover.png') 6 5, auto !important;
}

.custom-video-wrapper:fullscreen .custom-video-progress-filled,
.custom-video-wrapper:-webkit-full-screen .custom-video-progress-filled,
.custom-video-wrapper:-moz-full-screen .custom-video-progress-filled,
.custom-video-wrapper:-ms-fullscreen .custom-video-progress-filled,
.custom-video-wrapper.is-fullscreen .custom-video-progress-filled {
    cursor: url('img/kunai-cursor-64.png') 6 5, auto !important;
}

.custom-video-wrapper:fullscreen .custom-video-progress-thumb,
.custom-video-wrapper:-webkit-full-screen .custom-video-progress-thumb,
.custom-video-wrapper:-moz-full-screen .custom-video-progress-thumb,
.custom-video-wrapper:-ms-fullscreen .custom-video-progress-thumb,
.custom-video-wrapper.is-fullscreen .custom-video-progress-thumb {
    cursor: url('img/kunai-cursor-64.png') 6 5, auto !important;
}

.custom-video-wrapper:fullscreen .custom-video-volume-bar,
.custom-video-wrapper:-webkit-full-screen .custom-video-volume-bar,
.custom-video-wrapper:-moz-full-screen .custom-video-volume-bar,
.custom-video-wrapper:-ms-fullscreen .custom-video-volume-bar,
.custom-video-wrapper.is-fullscreen .custom-video-volume-bar {
    cursor: url('img/kunai-cursor-64.png') 6 5, auto !important;
}

.custom-video-wrapper:fullscreen .custom-video-volume-container:hover .custom-video-volume-bar,
.custom-video-wrapper:-webkit-full-screen .custom-video-volume-container:hover .custom-video-volume-bar,
.custom-video-wrapper:-moz-full-screen .custom-video-volume-container:hover .custom-video-volume-bar,
.custom-video-wrapper:-ms-fullscreen .custom-video-volume-container:hover .custom-video-volume-bar,
.custom-video-wrapper.is-fullscreen .custom-video-volume-container:hover .custom-video-volume-bar {
    cursor: url('img/kunai-cursor-64-hover.png') 6 5, auto !important;
}

.training-tapes-empty {
    text-align: center;
    padding: 2rem;
    color: rgba(255, 255, 255, 0.5);
    font-style: italic;
}

.training-tape-transcript-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.75rem 1rem;
    margin-top: 0.75rem;
    background: rgba(228, 198, 128, 0.05);
    border: 1px solid rgba(228, 198, 128, 0.2);
    border-radius: 6px;
    color: rgba(228, 198, 128, 0.8);
    font-family: 'Oswald', sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    cursor: url('img/hand-pointing-cursor.png') 6 5, pointer !important;
    transition: all 0.2s ease;
}

.training-tape-transcript-btn:hover {
    background: rgba(228, 198, 128, 0.1);
    border-color: rgba(228, 198, 128, 0.4);
    color: #e4c680;
    cursor: url('img/hand-pointing-cursor.png') 6 5, pointer !important;
}

.training-tape-transcript-btn-text {
    flex: 1;
    text-align: left;
}

.training-tape-transcript-btn-icon {
    transition: transform 0.2s ease;
    font-size: 0.75rem;
}

.training-tape-transcript {
    margin-top: 0.75rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(228, 198, 128, 0.15);
    border-radius: 6px;
}

.training-tape-transcript-content {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
    line-height: 1.7;
    letter-spacing: 0.01em;
    white-space: pre-line;
}

/* Make shield icon clickable */
.war-streak-icon {
    cursor: url('img/mag-cursor-64.png') 6 5, pointer !important;
    transition: transform 0.2s ease, filter 0.2s ease;
}

.war-streak-icon:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
    cursor: url('img/mag-cursor-64.png') 6 5, pointer !important;
}

/* ==========================================
   DEV PANEL STYLES
   Only visible with ?dev=1 URL parameter
   ========================================== */

.dev-panel {
    position: fixed;
    top: 10px;
    right: 10px;
    width: 280px;
    background: rgba(15, 15, 20, 0.95);
    border: 1px solid #444;
    border-radius: 8px;
    z-index: 99999;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 12px;
    color: #e0e0e0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.dev-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: rgba(228, 198, 128, 0.15);
    border-bottom: 1px solid #444;
    font-weight: 600;
    color: #e4c680;
    letter-spacing: 0.5px;
}

.dev-panel-toggle {
    background: none;
    border: none;
    color: #e4c680;
    font-size: 18px;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
}

.dev-panel-toggle:hover {
    color: #fff;
}

.dev-panel-body {
    padding: 12px;
    overflow-y: auto;
    max-height: calc(90vh - 40px);
}

.dev-panel-body.collapsed {
    display: none;
}

.video-fs-overlay {
    position: fixed;
    inset: 0;
    display: none;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.95);
    z-index: 12000;
    pointer-events: none;
}

.video-fs-overlay.is-active {
    display: flex;
    pointer-events: auto;
}

.video-fs-overlay .custom-video-wrapper {
    width: 100%;
    height: 100%;
    margin: 0;
}

.video-fs-overlay .custom-video-wrapper video {
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.video-fs-overlay {
    position: fixed;
    inset: 0;
    display: none;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.95);
    z-index: 12000;
    pointer-events: none;
}

.video-fs-overlay.is-active {
    display: flex;
    pointer-events: auto;
}

.video-fs-overlay .custom-video-wrapper {
    width: 100%;
    height: 100%;
}

/* Video fullscreen overlay - kunai cursor for all controls */
.video-fs-overlay.is-active {
    cursor: url('img/kunai-cursor-64.png') 6 5, auto !important;
}

.video-fs-overlay.is-active .custom-video-progress-container,
.video-fs-overlay.is-active .custom-video-progress-bar,
.video-fs-overlay.is-active .custom-video-progress-filled,
.video-fs-overlay.is-active .custom-video-progress-thumb {
    cursor: url('img/kunai-cursor-64.png') 6 5, auto !important;
}

.video-fs-overlay.is-active .custom-video-progress-container:hover,
.video-fs-overlay.is-active .custom-video-progress-bar:hover {
    cursor: url('img/kunai-cursor-64-hover.png') 6 5, auto !important;
}

.video-fs-overlay.is-active .custom-video-play-pause,
.video-fs-overlay.is-active .custom-video-volume-btn,
.video-fs-overlay.is-active .custom-video-cc-btn,
.video-fs-overlay.is-active .custom-video-fullscreen {
    cursor: url('img/kunai-cursor-64.png') 6 5, auto !important;
}

.video-fs-overlay.is-active .custom-video-play-pause:hover,
.video-fs-overlay.is-active .custom-video-volume-btn:hover,
.video-fs-overlay.is-active .custom-video-cc-btn:hover,
.video-fs-overlay.is-active .custom-video-fullscreen:hover {
    cursor: url('img/kunai-cursor-64-hover.png') 6 5, auto !important;
}

.video-fs-overlay.is-active .custom-video-volume-bar {
    cursor: url('img/kunai-cursor-64.png') 6 5, auto !important;
}

.video-fs-overlay.is-active .custom-video-volume-container:hover .custom-video-volume-bar {
    cursor: url('img/kunai-cursor-64-hover.png') 6 5, auto !important;
}

/* Universal cursor for all elements in fullscreen overlay */
.video-fs-overlay.is-active * {
    cursor: url('img/kunai-cursor-64.png') 6 5, auto !important;
}

.video-fs-overlay.is-active .custom-video-progress-container:hover *,
.video-fs-overlay.is-active .custom-video-progress-bar:hover *,
.video-fs-overlay.is-active .custom-video-play-pause:hover,
.video-fs-overlay.is-active .custom-video-volume-btn:hover,
.video-fs-overlay.is-active .custom-video-cc-btn:hover,
.video-fs-overlay.is-active .custom-video-fullscreen:hover,
.video-fs-overlay.is-active .custom-video-volume-container:hover * {
    cursor: url('img/kunai-cursor-64-hover.png') 6 5, auto !important;
}

/* Use :fullscreen pseudo-class for browser native fullscreen - target the overlay */
.video-fs-overlay:fullscreen .custom-video-progress-container,
.video-fs-overlay:fullscreen .custom-video-progress-bar,
.video-fs-overlay:fullscreen .custom-video-progress-filled,
.video-fs-overlay:fullscreen .custom-video-progress-thumb,
.video-fs-overlay:-webkit-full-screen .custom-video-progress-container,
.video-fs-overlay:-webkit-full-screen .custom-video-progress-bar,
.video-fs-overlay:-webkit-full-screen .custom-video-progress-filled,
.video-fs-overlay:-webkit-full-screen .custom-video-progress-thumb,
.video-fs-overlay:-moz-full-screen .custom-video-progress-container,
.video-fs-overlay:-moz-full-screen .custom-video-progress-bar,
.video-fs-overlay:-moz-full-screen .custom-video-progress-filled,
.video-fs-overlay:-moz-full-screen .custom-video-progress-thumb,
.video-fs-overlay:-ms-fullscreen .custom-video-progress-container,
.video-fs-overlay:-ms-fullscreen .custom-video-progress-bar,
.video-fs-overlay:-ms-fullscreen .custom-video-progress-filled,
.video-fs-overlay:-ms-fullscreen .custom-video-progress-thumb {
    cursor: url('img/kunai-cursor-64.png') 6 5, auto !important;
}

.video-fs-overlay:fullscreen .custom-video-progress-container:hover,
.video-fs-overlay:fullscreen .custom-video-progress-bar:hover,
.video-fs-overlay:fullscreen .custom-video-progress-filled:hover,
.video-fs-overlay:fullscreen .custom-video-progress-thumb:hover,
.video-fs-overlay:-webkit-full-screen .custom-video-progress-container:hover,
.video-fs-overlay:-webkit-full-screen .custom-video-progress-bar:hover,
.video-fs-overlay:-webkit-full-screen .custom-video-progress-filled:hover,
.video-fs-overlay:-webkit-full-screen .custom-video-progress-thumb:hover,
.video-fs-overlay:-moz-full-screen .custom-video-progress-container:hover,
.video-fs-overlay:-moz-full-screen .custom-video-progress-bar:hover,
.video-fs-overlay:-moz-full-screen .custom-video-progress-filled:hover,
.video-fs-overlay:-moz-full-screen .custom-video-progress-thumb:hover,
.video-fs-overlay:-ms-fullscreen .custom-video-progress-container:hover,
.video-fs-overlay:-ms-fullscreen .custom-video-progress-bar:hover,
.video-fs-overlay:-ms-fullscreen .custom-video-progress-filled:hover,
.video-fs-overlay:-ms-fullscreen .custom-video-progress-thumb:hover {
    cursor: url('img/kunai-cursor-64-hover.png') 6 5, auto !important;
}

/* Also target all elements within fullscreen overlay */
.video-fs-overlay:fullscreen *,
.video-fs-overlay:-webkit-full-screen *,
.video-fs-overlay:-moz-full-screen *,
.video-fs-overlay:-ms-fullscreen * {
    cursor: url('img/kunai-cursor-64.png') 6 5, auto !important;
}

.dev-group {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.dev-group:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.dev-label {
    display: block;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #888;
    margin-bottom: 6px;
}

.dev-row {
    display: flex;
    gap: 6px;
}

.dev-input {
    flex: 1;
    padding: 6px 8px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid #444;
    border-radius: 4px;
    color: #fff;
    font-size: 12px;
}

.dev-input:focus {
    outline: none;
    border-color: #e4c680;
}

.dev-select {
    width: 100%;
    padding: 6px 8px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid #444;
    border-radius: 4px;
    color: #fff;
    font-size: 12px;
}

.dev-select:focus {
    outline: none;
    border-color: #e4c680;
}

.dev-btn {
    padding: 6px 12px;
    background: linear-gradient(135deg, #e4c680, #c9a855);
    border: none;
    border-radius: 4px;
    color: #1a1a1a;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.dev-btn:hover {
    background: linear-gradient(135deg, #f0d890, #d9b865);
    transform: translateY(-1px);
}

.dev-btn-full {
    width: 100%;
    margin-bottom: 6px;
}

.dev-btn-full:last-child {
    margin-bottom: 0;
}

.dev-quick-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 6px;
}

.dev-btn-small {
    padding: 4px 8px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid #555;
    border-radius: 3px;
    color: #ccc;
    font-size: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.dev-btn-small:hover {
    background: rgba(228, 198, 128, 0.2);
    border-color: #e4c680;
    color: #e4c680;
}

.dev-radio-group {
    display: flex;
    gap: 12px;
}

.dev-radio-group label {
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    font-size: 11px;
}

.dev-radio-group input[type="radio"] {
    accent-color: #e4c680;
}

.dev-info {
    margin-top: 4px;
    font-size: 11px;
    color: #7ec47e;
}

.dev-state {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid #333;
    border-radius: 4px;
    padding: 8px;
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 10px;
    line-height: 1.4;
    color: #aaa;
    max-height: 150px;
    overflow-y: auto;
    white-space: pre-wrap;
    word-break: break-all;
    margin: 0;
}

/* Global kunai cursor - applied at end to ensure it overrides all other cursor rules */


