.gold-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;
}

.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: 0.5rem;
    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: 0.5rem;
    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;
}

/* Google Fonts load from <link> in each HTML file — avoids @import blocking parse of the rest of this stylesheet. */

.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 card header: same layout as Custom Operation (subtitle + title left; day + dots + forfeit right) */
.war-duel-card .duel-card-active-header {
    margin-bottom: 0.5rem;
}

.war-duel-card .duel-card-header-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.war-duel-card .duel-card-header-left {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.war-duel-card .duel-card-header-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.war-duel-card .duel-card-active-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    font-family: 'Share Tech Mono', monospace;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.war-duel-card .duel-card-day-dots {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.2rem;
}

.war-duel-card .duel-card-day-dot {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background-color: rgba(255, 255, 255, 0.16);
}

.war-duel-card .duel-card-day-dot.is-current {
    background-color: rgba(248, 231, 185, 0.9);
}

.war-duel-card .duel-card-forfeit-btn {
    padding: 0.4rem 0.85rem;
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 0.25rem;
    cursor: url('../img/hand-pointing-cursor.png') 6 5, pointer;
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.war-duel-card .duel-card-forfeit-btn:hover {
    border-color: rgba(248, 231, 185, 0.6);
    color: rgba(248, 231, 185, 0.95);
    background: rgba(248, 231, 185, 0.08);
}

/* 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;
}

/* Duel tagline column (left) */
.duel-tagline-column {
    flex: 1;
    min-width: 0;
}

.duel-tagline-block {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.duel-tagline-icon {
    display: block;
    font-size: 1.5rem;
    color: rgba(228, 198, 128, 0.6);
    margin-bottom: 0.5rem;
}

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

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

/* Duel tab bar */
.duel-tab-bar {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0;
}

.duel-tab {
    position: relative;
    overflow: hidden;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.5);
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0;
    clip-path: polygon(0 0, calc(100% - 7px) 0, 100% 7px, 100% 100%, 7px 100%, 0 calc(100% - 7px));
    cursor: url('../img/kunai-cursor-64.png') 6 5, auto;
    transition: color 0.2s, border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.duel-tab-kanji {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    font-weight: 600;
    font-family: "Noto Serif JP", serif;
    color: rgba(255, 255, 255, 0.02);
    line-height: 1;
    pointer-events: none;
}

.duel-tab.active .duel-tab-kanji {
    color: rgba(0, 0, 0, 0.02);
}

.duel-tab-name {
    position: relative;
    z-index: 1;
}

.duel-tab:hover {
    color: rgba(255, 255, 255, 0.8);
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.06);
    cursor: url('../img/kunai-cursor-64-hover.png') 6 5, auto;
}

.duel-tab.active {
    color: #fff;
    border-color: rgba(180, 140, 60, 0.95);
    background: radial-gradient(circle at 30% 0%, rgba(220, 175, 95, 0.98), rgba(155, 115, 45, 0.95));
    box-shadow: 0 0 12px rgba(180, 140, 60, 0.4);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.85);
}

.duel-tab-pane {
    display: none;
}

.duel-tab-pane.active {
    display: block;
}

.duel-tab-pane .duel-challenge-section {
    margin-top: 0.75rem;
}

.duel-tab-pane .duel-history-section {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* 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 {
    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 {
    outline: none;
    border-color: rgba(228, 198, 128, 0.5);
    background: rgba(0, 0, 0, 0.4);
}

.duel-form-select {
    padding: 0.75rem 2.25rem 0.75rem 0;
    background: transparent;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23e4c680' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.5rem center;
    border: none;
    border-bottom: 2px solid rgba(228, 198, 128, 0.4);
    border-radius: 0;
    color: #fff;
    font-size: 0.9rem;
    font-family: inherit;
    transition: border-color 0.2s;
    -webkit-appearance: none;
    appearance: none;
    cursor: url('../img/kunai-cursor-64.png') 6 5, auto !important;
}

.duel-form-select:focus {
    outline: none;
    border-bottom-color: rgba(228, 198, 128, 0.8);
}

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

.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-form-select-grouped optgroup {
    background: rgba(30, 60, 90, 0.4);
    color: rgba(255, 255, 255, 0.9);
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.35rem 0.5rem;
}

/* Duel locked message (shown under Issue challenge button when disabled) */
.duel-locked-message {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.4;
    margin: 0.5rem 0 0 0;
    padding: 0;
    width: 100%;
    flex-basis: 100%;
}

/* Duel alias prompt (set handle in Settings) */
.duel-alias-prompt {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0.5rem 0 1rem;
    padding: 0.5rem 0;
}

/* Incoming challenges block */
.incoming-challenges-section {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.incoming-challenges-title {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 0.75rem;
    letter-spacing: 0.5px;
}

.incoming-challenge-item {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.4rem;
    padding: 0.75rem 1rem;
    margin-bottom: 0.75rem;
}

.incoming-challenge-item:last-child {
    margin-bottom: 0;
}

.incoming-challenge-text {
    margin: 0 0 0.5rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
}

.incoming-challenge-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.incoming-challenge-actions .war-btn {
    font-size: 0.85rem;
    padding: 0.4rem 0.75rem;
}

/* PVP challenge form inline error */
.pvp-challenge-error {
    font-size: 0.875rem;
    color: #f59e0b;
    margin: 0 0 0.5rem;
    padding: 0.25rem 0;
}

/* Situation report duel result acknowledge */
.situation-report-duel-acknowledge {
    font-size: 0.8rem;
    padding: 0.25rem 0.5rem;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 0.25rem;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
}
.situation-report-duel-acknowledge:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Duel handle input (Settings) */
.settings-form-group .duel-handle-input {
    max-width: 16rem;
}

/* 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-main-col {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    flex: 1;
    border-left: 3px solid rgba(34, 197, 94, 0.5);
    padding-left: 0.75rem;
}

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

.duel-history-view-all {
    font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.45);
    text-decoration: none;
    letter-spacing: 0.3px;
}

.duel-history-view-all:hover {
    color: rgba(228, 198, 128, 0.7);
}

.duel-history-full-list {
    margin-top: 0.75rem;
    padding: 0.75rem;
    max-height: 12rem;
    overflow-y: auto;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 0.4rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.duel-history-full-item {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.6;
    padding: 0.25rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

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

/* PVP challenge row: Challenge button + Forfeit (when duel active) */
.pvp-challenge-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.duel-history-forfeit-wrap {
    margin-top: 0;
}

.duel-history-forfeit-wrap .duel-forfeit-btn {
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.45rem 1.2rem;
    border-radius: 6px;
    background: transparent;
    border: 1px solid rgba(192, 197, 206, 0.5);
    color: rgba(192, 197, 206, 0.9);
    transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease, color 0.12s ease;
}

.duel-history-forfeit-wrap .duel-forfeit-btn:hover:not(:disabled) {
    border-color: rgba(192, 197, 206, 0.75);
    color: rgba(255, 255, 255, 0.95);
    transform: translateY(-1px);
    cursor: url('../img/kunai-cursor-64-hover.png') 6 5, auto !important;
}

.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 */
    --text-dim: rgba(255, 255, 255, 0.45);
    --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;
}

/* War Room: hide static HTML placeholders until JS finishes first render (see renderWarRoomContent) */
body.warroom-boot #war-room {
    opacity: 0;
}

#war-room {
    transition: opacity 0.22s ease;
}

@media (prefers-reduced-motion: reduce) {
    #war-room {
        transition: none;
    }
}


/* 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;
}

/* Kunai cursor for all scrollbars */
::-webkit-scrollbar {
    cursor: url('../img/kunai-cursor-64.png') 6 5, auto !important;
}
::-webkit-scrollbar-thumb {
    cursor: url('../img/kunai-cursor-64.png') 6 5, auto !important;
}
::-webkit-scrollbar-thumb:hover {
    cursor: url('../img/kunai-cursor-64-hover.png') 6 5, auto !important;
}
::-webkit-scrollbar-track {
    cursor: url('../img/kunai-cursor-64.png') 6 5, auto !important;
}

.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.category-tab-link {
    text-decoration: none;
}

.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);
}

/* Mobile: prevent tooltips from being cut off */
@media (max-width: 768px) {
    .task-item[data-tooltip]::after,
    .training-task[data-tooltip]::after,
    .training-task-info-icon[data-tooltip]::after,
    .upcoming-rituals-list li[data-tooltip]::after {
        left: 1rem;
        right: 1rem;
        width: auto;
        margin-left: 0;
        margin-right: 0;
        max-width: calc(100vw - 2rem);
        transform: translateY(6px);
        z-index: 9999;
    }
    .training-task-info-icon[data-tooltip]::after {
        left: 50%;
        right: auto;
        width: min(320px, calc(100vw - 2rem));
        margin-left: max(-160px, -50vw);
        transform: translateX(-50%) translateY(6px);
    }
    .task-item[data-tooltip]:hover::after,
    .training-task[data-tooltip]:hover::after,
    .upcoming-rituals-list li[data-tooltip]:hover::after {
        transform: translateY(0);
    }
    .training-task-info-icon[data-tooltip]:hover::after {
        transform: translateX(-50%) translateY(0);
    }
    /* Ensure tooltip parents don't clip */
    .upcoming-rituals.card,
    .upcoming-rituals-list,
    .training-task-list,
    .training-task,
    .training-task-main,
    .training-daily.card,
    .training-daily-body {
        overflow: visible;
    }
}

.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: linear-gradient(135deg, #e8c987, #b8924e);
    color: #2b1d0f;
    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);
    border: none;
    cursor: url('../img/kunai-cursor-64.png') 6 5, auto;
}

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

.btn-primary: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);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 215, 130, 0.4);
    color: #e8c987;
    cursor: url('../img/kunai-cursor-64.png') 6 5, auto;
}

.btn-secondary: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;
}

/* 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: 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;
    margin-bottom: 0.9rem;
}

.settings-section h2 {
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-weight: 600;
    letter-spacing: 0.02em;
    font-size: 1.1rem;
}

.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: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-primary);
    font-size: 0.95rem;
    margin-bottom: 12px;
    transition: all 0.2s ease;
}

.settings-select:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.05);
}

.settings-select option {
    background: #181a24 !important;
    color: var(--text-primary) !important;
    padding: 0.5rem;
    display: block;
}

.settings-select option:hover,
.settings-select option:checked {
    background: rgba(255, 255, 255, 0.1) !important;
}

/* Ensure select dropdown is visible */
.settings-select {
    -webkit-appearance: menulist;
    -moz-appearance: menulist;
    appearance: menulist;
}

.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);
}

/* Timezone search container */
.timezone-search-container {
    position: relative;
    margin-bottom: 12px;
}

.timezone-search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.timezone-search-input {
    width: 100%;
    margin-bottom: 0;
    padding-left: 12px;
    padding-right: 40px;
}

.timezone-search-input.has-current-value {
    border-color: rgba(232, 201, 135, 0.3);
    background: rgba(232, 201, 135, 0.03);
}

.timezone-search-input.has-selected-value {
    border-color: rgba(255, 255, 255, 0.15);
}

.timezone-clear-btn {
    position: absolute;
    right: 8px;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.5rem;
    line-height: 1;
    cursor: url('../img/kunai-cursor-64.png') 6 5, auto !important;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
    z-index: 1;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.timezone-clear-btn:hover {
    color: rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.1);
}

.timezone-results-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: 300px;
    overflow-y: auto;
    background: radial-gradient(circle at top, #181a24, #090a0f);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.5rem;
    margin-top: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    z-index: 1000;
}

.timezone-results-header {
    padding: 10px 16px;
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(232, 201, 135, 0.8);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(232, 201, 135, 0.05);
}

.timezone-result-item {
    padding: 12px 16px;
    color: var(--text-primary);
    cursor: pointer;
    transition: background 0.2s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.timezone-result-item:last-child {
    border-bottom: none;
}

.timezone-result-item:hover {
    background: rgba(255, 255, 255, 0.08);
}

.timezone-result-item.timezone-current-item {
    background: rgba(232, 201, 135, 0.1);
    border-left: 3px solid rgba(232, 201, 135, 0.5);
}

.timezone-result-item.timezone-current-item:hover {
    background: rgba(232, 201, 135, 0.15);
}

.timezone-current-badge {
    font-size: 0.85rem;
    color: rgba(232, 201, 135, 0.8);
    font-weight: 500;
}

.timezone-no-results {
    color: var(--text-secondary);
    cursor: default;
    font-style: italic;
}

.timezone-no-results:hover {
    background: transparent;
}

.settings-page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem;
}

.settings-page-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #e0e0e0;
    text-align: left;
    letter-spacing: 0.05em;
}

.settings-info-group {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 0.6rem;
}

.settings-info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.settings-info-item:last-child {
    border-bottom: none;
}

.settings-info-label {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
}

.settings-info-value {
    color: var(--text-primary);
    font-weight: 500;
}

.subscription-details {
    margin-bottom: 1rem;
}

.subscription-detail {
    margin: 0.5rem 0;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.subscription-label {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
    margin-right: 0.5rem;
}

.settings-form-group {
    margin-bottom: 1.75rem;
}

.settings-form-label {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    letter-spacing: 0.02em;
}

.settings-form-row {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.settings-input {
    flex: 1;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.5rem;
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.settings-input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.05);
}

.settings-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.settings-error {
    margin-top: 0.75rem;
    padding: 0.875rem 1rem;
    background: rgba(220, 60, 60, 0.1);
    border: 1px solid rgba(220, 60, 60, 0.3);
    border-radius: 0.5rem;
    color: #fca5a5;
    font-size: 0.9rem;
}

.settings-success {
    margin-top: 0.75rem;
    padding: 0.875rem 1rem;
    background: rgba(74, 222, 128, 0.1);
    border: 1px solid rgba(74, 222, 128, 0.3);
    border-radius: 0.5rem;
    color: #86efac;
    font-size: 0.9rem;
}

.settings-hint {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    font-style: italic;
}

.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 {
        align-items: stretch;
    }

    .war-banner-discipline-body {
        flex-direction: column;
        align-items: center;
    }

    .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;
    }


    /* Warfront content grid: stack columns on mobile */
    .warfront-content-grid {
        grid-template-columns: 1fr;
        display: grid;
    }

    .warfront-reports-col {
        border-right: none;
        border-bottom: 1px solid var(--panel-border, rgba(255, 255, 255, 0.08));
    }

    .warfront-advantage-col {
        width: 100%;
    }

    /* 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 - tagline first, then forms */
    .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 {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
}

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

.war-streak-content {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    flex: 1;
}
.war-banner-discipline .war-banner-header .war-card-heading {
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

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

.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;
}

.scroll-divider-falcon::before {
    background: radial-gradient(ellipse at center, rgba(244, 193, 72, 0.05) 0%, rgba(244, 193, 72, 0.02) 40%, transparent 70%);
}

/* Siege axe divider: subtler halo so lit artwork isn’t doubled */
.scroll-divider-siege::before {
    background: radial-gradient(ellipse at center, rgba(244, 193, 72, 0.028) 0%, rgba(244, 193, 72, 0.012) 45%, transparent 72%);
}

.binoculars-divider-wrapper::before {
    display: none;
}

.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: radial-gradient(circle at top, #181a24, #090a0f);
    overflow: hidden;
    padding: 0;
    position: relative;
}

/* Top gold border gradient */
.war-order-card::after {
    content: '';
    position: absolute; top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #d4b06a 30%, #e4c680 50%, #d4b06a 70%, transparent);
    pointer-events: none;
    z-index: 2;
}

/* Faint inner glow at top */
.war-order-card::before {
    content: '';
    position: absolute; top: 0; left: 10%; right: 10%;
    height: 60px;
    background: radial-gradient(ellipse at top, rgba(228,198,128,0.06) 0%, transparent 70%);
    pointer-events: none;
    z-index: 1;
}

/* Corner kanji marks */
.sitrep-kmark {
    position: absolute;
    font-family: 'Noto Serif JP', serif;
    font-size: 11px;
    color: rgba(255,255,255,0.05);
    opacity: 0.7;
    line-height: 1;
    pointer-events: none;
    z-index: 3;
}
.sitrep-kmark-tl { top: 8px; left: 10px; }
.sitrep-kmark-tr { top: 8px; right: 10px; }
.sitrep-kmark-bl { bottom: 8px; left: 10px; }
.sitrep-kmark-br { bottom: 8px; right: 10px; }

/* ── SITREP HEADER ── */
.sitrep-header {
    padding: 18px 20px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    position: relative;
    z-index: 2;
}
.sitrep-mon-icon {
    font-size: 26px;
    line-height: 1;
    opacity: 0.85;
    flex-shrink: 0;
}
.sitrep-header-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}
.sitrep-header .war-card-heading {
    margin-bottom: 0;
    border-bottom: none;
    padding-bottom: 0;
}
.sitrep-eyebrow {
    font-family: 'Share Tech Mono', 'Courier New', monospace;
    font-size: 9px;
    letter-spacing: 0.28em;
    color: rgba(255,255,255,0.45);
    text-transform: uppercase;
    margin-bottom: 3px;
}
.sitrep-day-stamp {
    text-align: right;
    flex-shrink: 0;
}
.sitrep-day-num {
    font-family: 'Cinzel', 'Georgia', serif;
    font-size: 28px;
    font-weight: 700;
    color: #e4c680;
    line-height: 1;
}
.sitrep-day-label {
    font-family: 'Share Tech Mono', 'Courier New', monospace;
    font-size: 10px;
    letter-spacing: 0.18em;
    color: rgba(255,255,255,0.7);
    text-transform: uppercase;
    text-align: right;
    margin-top: 2px;
}

/* ── SITREP NARRATIVE ── */
.sitrep-narrative {
    padding: 12px 20px 14px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    background: rgba(0,0,0,0.25);
    position: relative;
}
.sitrep-narrative .sitrep-lead {
    display: block;
}
.sitrep-narrative .sitrep-italic {
    display: inline;
}
.sitrep-narrative .sitrep-italic::after {
    content: ' ';
}
.sitrep-narrative .sitrep-italic:last-of-type::after {
    content: none;
}
.sitrep-narrative::before {
    content: '';
    position: absolute; left: 10px; top: 12px; bottom: 12px;
    width: 2px;
    background: linear-gradient(to bottom, #e4c680, transparent);
    opacity: 0.45;
}
.sitrep-lead {
    font-size: 14px;
    color: rgba(255,255,255,0.88);
    line-height: 1.55;
    font-weight: 600;
    font-style: normal;
    margin: 0 0 3px 0;
    opacity: 1 !important;
}
.sitrep-italic {
    font-size: 14px;
    color: rgba(255,255,255,0.88);
    line-height: 1.55;
    font-weight: 600;
    font-style: normal;
    margin: 0;
    opacity: 1 !important;
}

/* ── SECTIONS WRAPPER ── */
.sitrep-sections {
    padding: 2px 0 6px;
}

/* ── INDIVIDUAL SECTION ── */
.sitrep-section {
    padding: 10px 20px;
    position: relative;
}

/* ── SECTION LABEL ── */
.sitrep-section-label {
    font-family: 'Share Tech Mono', 'Courier New', monospace;
    font-size: 12.5px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #c8a75a;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 7px;
}
.sitrep-section-icon {
    font-size: 10px;
    opacity: 0.8;
}
.sitrep-section-label::after {
    content: '';
    flex: 1; height: 1px;
    background: rgba(255,255,255,0.06);
}

/* ── DIAMOND DIVIDER ── */
.sitrep-divider {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 20px;
    margin: 0;
}
.sitrep-divider-line {
    flex: 1; height: 1px;
    background: rgba(255,255,255,0.06);
}
.sitrep-divider-diamond {
    width: 5px; height: 5px;
    background: rgba(255,255,255,0.08);
    transform: rotate(45deg);
    flex-shrink: 0;
}

/* ── WARFRONT ── */
.sitrep-ward-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 6px;
}
.sitrep-ward-left {
    display: flex;
    align-items: center;
    gap: 10px;
}
.sitrep-ward-glyph {
    font-family: 'Noto Serif JP', serif;
    font-size: 15px;
    opacity: 0.7;
    line-height: 1;
    flex-shrink: 0;
}
.sitrep-ward-name {
    font-family: 'Cinzel', 'Georgia', serif;
    font-size: 14px;
    font-weight: 600;
    color: #e4c680;
    letter-spacing: 0.04em;
}
.sitrep-ward-pct {
    font-family: 'Share Tech Mono', 'Courier New', monospace;
    font-size: 14px;
    font-weight: 500;
    color: #6ddc8a;
}
.sitrep-bar-track {
    height: 5px;
    background: rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.08);
    margin-bottom: 8px;
    position: relative;
    overflow: hidden;
}
.sitrep-bar-track-thin {
    height: 3px;
    margin-top: 4px;
    margin-bottom: 0;
}
.sitrep-bar-fill {
    height: 100%;
    position: relative;
    transition: width 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.sitrep-bar-fill::after {
    content: '';
    position: absolute; right: 0; top: 0; bottom: 0;
    width: 3px;
    background: rgba(255,255,255,0.25);
}
.sitrep-bar-fill.green {
    background: linear-gradient(90deg, #0d4a2a, #10b981);
}
.sitrep-bar-fill.amber {
    background: linear-gradient(90deg, #7c5a10, #d4b06a);
}
.sitrep-shrine-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 3px;
}
.sitrep-shrine-left {
    display: flex;
    align-items: center;
    gap: 10px;
}
.sitrep-shrine-glyph {
    font-family: 'Noto Serif JP', serif;
    font-size: 15px;
    opacity: 0.7;
    line-height: 1;
    flex-shrink: 0;
}
.sitrep-shrine-name {
    font-family: 'Cinzel', 'Georgia', serif;
    font-size: 13px;
    color: #e4c680;
    letter-spacing: 0.04em;
    font-style: normal;
}
.sitrep-shrine-pct {
    font-family: 'Share Tech Mono', 'Courier New', monospace;
    font-size: 14px;
    font-weight: 500;
    color: #c8d1c9;
}

/* ── OP ROWS (Deployment & Duel) ── */
.sitrep-op-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.sitrep-op-left {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}
.sitrep-op-glyph {
    font-family: 'Noto Serif JP', serif;
    font-size: 15px;
    opacity: 0.7;
    line-height: 1;
    flex-shrink: 0;
}
.sitrep-op-name {
    font-family: 'Cinzel', 'Georgia', serif;
    font-size: 13px;
    color: #e4c680;
    letter-spacing: 0.04em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.sitrep-op-day {
    font-family: 'Share Tech Mono', 'Courier New', monospace;
    font-size: 11px;
    letter-spacing: 0.1em;
    font-weight: 500;
    color: #e8e8e8;
    background: rgba(255,255,255,0.08);
    border: none;
    padding: 4px 10px;
    white-space: nowrap;
    flex-shrink: 0;
    margin-left: 8px;
}

/* ── WEEKLY STATS GRID ── */
.sitrep-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px;
}
.sitrep-stat-cell {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.07);
    padding: 9px 13px;
    position: relative;
    overflow: hidden;
}
.sitrep-stat-cell::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, #d4b06a, transparent);
    opacity: 0.4;
}
.sitrep-stat-num {
    font-family: 'Cinzel', 'Georgia', serif;
    font-size: 22px;
    font-weight: 700;
    color: #e4c680;
    line-height: 1;
    margin-bottom: 3px;
}
.sitrep-stat-green {
    color: #7ec47e;
}
.sitrep-stat-desc {
    font-family: 'Share Tech Mono', 'Courier New', monospace;
    font-size: 9.5px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.6);
}

/* ── WAR RECORD ── */
.sitrep-record-block {
    display: flex;
    align-items: center;
    gap: 14px;
}
.sitrep-record-num {
    font-family: 'Cinzel', 'Georgia', serif;
    font-size: 30px;
    font-weight: 700;
    color: #ff3a3a;
    line-height: 1;
    text-shadow: 0 0 20px rgba(255,58,58,0.35);
    flex-shrink: 0;
}
.sitrep-record-text {
    font-size: 13px;
    color: rgba(255,255,255,0.65);
    line-height: 1.4;
    font-style: italic;
}
.sitrep-record-text strong {
    display: block;
    font-family: 'Share Tech Mono', 'Courier New', monospace;
    font-size: 10px;
    font-style: normal;
    color: rgba(255,255,255,0.65);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-top: 2px;
}

/* ── SITREP FOOTER ── */
.sitrep-footer {
    border-top: 1px solid rgba(255,255,255,0.06);
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: rgba(0,0,0,0.25);
    position: relative;
}
.sitrep-footer::before {
    content: '';
    position: absolute; bottom: 0; left: 10%; right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, #d4b06a 30%, #e4c680 50%, #d4b06a 70%, transparent);
    opacity: 0.25;
}
.sitrep-footer-creed {
    font-family: 'Crimson Pro', 'Georgia', serif;
    font-size: 11px;
    color: #a3acb6;
    font-style: italic;
    line-height: 1.55;
    flex: 1;
}
.sitrep-ack-btn {
    font-family: 'Cinzel', 'Georgia', serif !important;
    font-size: 9.5px !important;
    font-weight: 600 !important;
    letter-spacing: 0.16em !important;
    text-transform: uppercase !important;
    color: #0e0f14 !important;
    background: linear-gradient(135deg, #d4b06a, #e4c680, #c8a050) !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 9px 18px !important;
    box-shadow: 0 0 0 rgba(228,198,128,0.0);
    white-space: nowrap;
    clip-path: polygon(0 0, calc(100% - 7px) 0, 100% 7px, 100% 100%, 7px 100%, 0 calc(100% - 7px));
    flex-shrink: 0;
}
.sitrep-ack-btn:hover {
    opacity: 0.9 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 0 18px rgba(228,198,128,0.65);
}

@keyframes sitrepAckGlow {
    0%, 100% {
        box-shadow: 0 0 0 rgba(228,198,128,0.0);
        filter: brightness(1);
    }
    50% {
        box-shadow: 0 0 18px rgba(228,198,128,0.75);
        filter: brightness(1.08);
    }
}

.sitrep-ack-btn {
    animation: sitrepAckGlow 3s ease-in-out infinite;
}

.sitrep-ack-btn.sitrep-ack-btn-acknowledged {
    background: linear-gradient(135deg, #a8a8a8, #d8d8d8, #909090) !important;
    color: #2a2a2a !important;
    box-shadow: none !important;
    animation: none;
}
.sitrep-ack-btn.sitrep-ack-btn-acknowledged:hover {
    box-shadow: none !important;
}

@media (max-width: 768px) {
    .sitrep-footer {
        flex-direction: column-reverse;
        align-items: center;
        text-align: center;
    }
    .sitrep-footer-creed {
        flex: none;
    }

    /* Warfront: stack Reports and Warfront Advantage columns on mobile */
    .warfront-content-grid {
        grid-template-columns: 1fr;
        display: grid;
    }
    .warfront-reports-col,
    .warfront-advantage-col {
        min-width: 0;
        width: 100%;
    }
    .warfront-reports-col {
        border-right: none;
        border-bottom: 1px solid var(--panel-border, rgba(255, 255, 255, 0.08));
    }
}

.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;
}

/* Situation report section labels and intro lines */
.situation-report-body .situation-report-intro {
    margin: 0.15rem 0;
}
.situation-report-section {
    margin-top: 0.5rem;
    padding-top: 0.35rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.situation-report-section:first-of-type {
    border-top: none;
    padding-top: 0;
    margin-top: 0.5rem;
}
.situation-report-label {
    margin: 0;
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
}
.situation-report-content {
    margin: 0.1rem 0 0 0;
}

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

/* Headings, stats, progress */
.war-card-heading {
    font-family: Cinzel, "Noto Serif JP", Georgia, 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-card-header {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.war-card-subtitle {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(248, 231, 185, 0.75);
}

.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;
}

/* ── Samurai Ledger card (mockup-aligned) ── */
.samurai-ledger-card {
    position: relative;
    overflow: hidden;
}
.samurai-ledger-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(228, 198, 128, 0.6), transparent);
}

.samurai-ledger-header {
    padding: 0.75rem 0 0.85rem;
}
.samurai-ledger-tag {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    color: rgba(248, 231, 185, 0.75);
    text-transform: uppercase;
    margin-bottom: 4px;
}
.samurai-ledger-card .samurai-ledger-title {
    font-family: Cinzel, "Noto Serif JP", Georgia, serif;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #e0e0e0;
    margin: 0 0 0.75rem 0;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.samurai-ledger-hero-row {
    display: grid;
    grid-template-columns: 1fr 1px 1fr;
    gap: 0 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 10px;
}
.samurai-ledger-hero-cell {
    position: relative;
    min-height: 120px;
    padding: 1rem;
    padding-bottom: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.samurai-ledger-hero-bar-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0 1rem 0.75rem;
}
.samurai-ledger-hero-divider {
    background: rgba(255, 255, 255, 0.08);
    margin: 1rem 0;
}
.samurai-ledger-hero-label {
    font-family: 'Share Tech Mono', 'Courier New', monospace;
    font-size: 9px;
    letter-spacing: 0.2em;
    color: rgba(255, 255, 255, 0.75);
    text-transform: uppercase;
}
.samurai-ledger-hero-value {
    font-family: 'Cinzel', 'Georgia', serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: #f0d890;
    line-height: 1;
    text-shadow: 0 0 8px rgba(0, 0, 0, 0.4);
}
.samurai-ledger-hero-value.samurai-ledger-rank-value {
    font-size: 1.2rem;
    padding-top: 2px;
}
.samurai-ledger-hero-sub {
    font-family: 'Share Tech Mono', 'Courier New', monospace;
    font-size: 10px;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.65);
    margin-top: 2px;
}
.samurai-ledger-hero-bar-wrap {
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.samurai-ledger-hero-bar-label {
    display: flex;
    justify-content: space-between;
    font-family: 'Share Tech Mono', 'Courier New', monospace;
    font-size: 9px;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.75);
    text-transform: uppercase;
}
.samurai-ledger-hero-bar-track {
    height: 12px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(0, 0, 0, 0.4));
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    overflow: hidden;
    position: relative;
}
.samurai-ledger-hero-bar-fill {
    display: block;
    height: 100%;
    min-width: 4px;
    border-radius: inherit;
    transition: width 0.8s ease;
    position: relative;
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.15);
}
.samurai-ledger-hero-bar-fill::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0));
    border-radius: inherit;
    pointer-events: none;
}
.samurai-ledger-fill-gold {
    background: linear-gradient(120deg, #d4b06a, #f8e6bd, #d4b06a);
}
.samurai-ledger-fill-purple {
    background: linear-gradient(120deg, #8ea5ff, #b8caff, #8ea5ff);
}

.samurai-ledger-stats-section {
    padding: 0;
}
.samurai-ledger-stat-row {
    display: grid;
    grid-template-columns: 24px 1fr auto auto;
    align-items: center;
    gap: 10px;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: background 0.15s;
}
.samurai-ledger-stat-row:last-child {
    border-bottom: none;
}
.samurai-ledger-stat-row:hover {
    background: rgba(200, 168, 50, 0.02);
    margin: 0 -1.25rem;
    padding: 0.5rem 1.25rem;
}
.samurai-ledger-stat-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
    justify-self: center;
}
.samurai-ledger-dot-strength { background: #c86020; }
.samurai-ledger-dot-intelligence { background: #8060c8; }
.samurai-ledger-dot-spirit { background: #c8a832; }
.samurai-ledger-dot-endurance { background: #20a8a0; }
.samurai-ledger-dot-loyalty { background: #7a6030; }

.samurai-ledger-stat-info {
    display: flex;
    flex-direction: column;
    gap: 1px;
}
.samurai-ledger-stat-name {
    font-family: 'Cinzel', 'Georgia', serif;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
}
.samurai-ledger-stat-source {
    font-family: 'Share Tech Mono', 'Courier New', monospace;
    font-size: 9px;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
}
.samurai-ledger-stat-value {
    font-family: 'Cinzel', 'Georgia', serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #f0d890;
    text-align: right;
    min-width: 28px;
    text-shadow: 0 0 8px rgba(0, 0, 0, 0.4);
}
.samurai-ledger-stat-ritual {
    font-family: 'Share Tech Mono', 'Courier New', monospace;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-align: right;
    color: rgba(255, 255, 255, 0.55);
}
.samurai-ledger-stat-ritual.samurai-ledger-ritual-sealed {
    color: #c8a832;
}

.samurai-ledger-xp-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    gap: 1rem;
}
.samurai-ledger-xp-label {
    font-family: 'Share Tech Mono', 'Courier New', monospace;
    font-size: 10px;
    letter-spacing: 0.18em;
    color: rgba(255, 255, 255, 0.75);
    text-transform: uppercase;
    flex-shrink: 0;
}
.samurai-ledger-xp-track {
    flex: 1;
    height: 12px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(0, 0, 0, 0.4));
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    overflow: hidden;
    position: relative;
}
.samurai-ledger-xp-fill {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #7a6030, #e2c35a);
    transition: width 0.8s ease;
    position: relative;
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.15);
}
.samurai-ledger-xp-fill::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0));
    border-radius: inherit;
    pointer-events: none;
}
.samurai-ledger-xp-value {
    font-family: 'Cinzel', 'Georgia', serif;
    font-size: 1rem;
    font-weight: 600;
    color: #f0d890;
    flex-shrink: 0;
    text-shadow: 0 0 8px rgba(0, 0, 0, 0.4);
}

.samurai-ledger-footer {
    padding: 0.75rem 0;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(200, 168, 50, 0.02);
    margin: 0 -1.25rem -1.15rem;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
    padding-bottom: 1.15rem;
}
.samurai-ledger-footer-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #7a6030;
    flex-shrink: 0;
}
.samurai-ledger-footer-text {
    font-family: 'Share Tech Mono', 'Courier New', monospace;
    font-size: 10px;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
}
.samurai-ledger-footer-highlight {
    color: #f0d890;
}

@media (max-width: 640px) {
    .samurai-ledger-hero-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    .samurai-ledger-hero-divider {
        display: none;
    }
    .samurai-ledger-stat-row {
        grid-template-columns: 20px 1fr auto auto;
        gap: 6px;
    }
}

/* ── Kintsugi Relics Summary Card ── */
.relics-summary-card {
    margin-top: 0.9rem;
}
.relics-summary-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.relics-summary-tag {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    color: rgba(248, 231, 185, 0.75);
    text-transform: uppercase;
    margin-bottom: 4px;
}
.relics-summary-title {
    font-family: Cinzel, "Noto Serif JP", Georgia, serif;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #e0e0e0;
    margin: 0;
}
.relics-summary-count {
    font-family: 'Share Tech Mono', 'Courier New', monospace;
    font-size: 9px;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    flex-shrink: 0;
}
.relics-summary-pager {
    position: relative;
    display: flex;
    align-items: stretch;
    padding: 1rem 0;
}
.relics-summary-fade {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 48px;
    z-index: 2;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
}
.relics-summary-fade-active {
    opacity: 1;
    pointer-events: auto;
    cursor: url('../img/hand-pointing-cursor.png') 12 4, pointer;
}
.relics-summary-fade-left {
    left: 0;
    background: linear-gradient(to right, rgba(9, 9, 11, 0.95), transparent);
}
.relics-summary-fade-right {
    right: 0;
    background: linear-gradient(to left, rgba(9, 9, 11, 0.95), transparent);
}
.relics-summary-masks {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
}
.relics-summary-mask-slot {
    flex: 1;
    min-width: 0;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    position: relative;
    cursor: url('../img/mag-cursor-64.png') 6 5, pointer !important;
}
.relics-summary-mask-earned::before {
    content: '';
    position: absolute;
    inset: -15px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.12) 0%, rgba(212, 175, 55, 0.04) 40%, transparent 70%);
    pointer-events: none;
}
.relics-summary-mask-slot img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    position: relative;
    z-index: 1;
}
.relics-summary-mask-locked {
    cursor: default;
    pointer-events: auto;
}
.relics-summary-mask-locked img {
    opacity: 0.25;
    filter: grayscale(100%) brightness(0.4);
}
.relics-summary-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.relics-summary-zodiac {
    font-family: 'Share Tech Mono', 'Courier New', monospace;
    font-size: 9px;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.45);
    text-transform: uppercase;
}
.relics-summary-view-btn {
    font-family: 'Share Tech Mono', 'Courier New', monospace;
    font-size: 9px;
    letter-spacing: 0.15em;
    color: rgba(255, 255, 255, 0.45);
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    text-transform: uppercase;
    flex-shrink: 0;
}
.relics-summary-view-btn:hover {
    color: rgba(255, 255, 255, 0.7);
}

/* 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-header .war-card-heading {
    margin-bottom: 0;
    border-bottom: none;
    padding-bottom: 0;
}

.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: url('../img/kunai-cursor-64.png') 6 5, auto !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: url('../img/kunai-cursor-64-hover.png') 6 5, auto !important;
}

/* Custom tooltip for locked challenge buttons - matches site dark theme */
.challenge-btn-wrap {
    position: relative;
    display: inline-block;
}

.challenge-btn-tooltip {
    display: none;
    position: absolute;
    bottom: calc(100% + 0.5rem);
    left: 50%;
    transform: translateX(-50%);
    padding: 0.5rem 0.75rem;
    background: #1a1a1a;
    border: 1px solid rgba(228, 198, 128, 0.4);
    border-radius: 0.35rem;
    color: #e4c680;
    font-size: 0.8rem;
    line-height: 1.3;
    white-space: nowrap;
    max-width: 16rem;
    white-space: normal;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.challenge-btn-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: #1a1a1a;
}

.challenge-btn-wrap.has-tooltip:hover .challenge-btn-tooltip {
    display: block;
}

.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-activity-card {
    padding-top: 1rem;
    padding-bottom: 1rem;
    box-shadow:
        var(--panel-shadow),
        0 6px 25px rgba(0, 0, 0, 0.45);
}

.war-campaign-record-card {
    overflow: hidden;
    border-color: var(--panel-border);
    background: radial-gradient(circle at top, #181a24, #090a0f);
}

.campaign-record-hero {
    position: relative;
    width: calc(100% + 2.5rem);
    max-width: none;
    margin: 0 -1.25rem 0 -1.25rem;
    aspect-ratio: 4 / 1;
    border: none;
    border-bottom: 1px solid var(--panel-border, rgba(255, 255, 255, 0.08));
    background: #080a10;
    overflow: hidden;
}

.campaign-record-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    filter: brightness(0.68) contrast(1.1) saturate(1.05);
}

.campaign-record-hero-vignette {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(4, 6, 9, 0.28), rgba(4, 6, 9, 0.56));
    pointer-events: none;
}

.campaign-record-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 0.62rem 0.95rem 0.72rem;
}

.campaign-record-hero-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.6rem;
}

.campaign-record-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-family: 'Share Tech Mono', 'Courier New', monospace;
    font-size: 0.62rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(228, 198, 128, 0.86);
    line-height: 1.1;
}

.campaign-record-kicker::before {
    content: '';
    width: 2px;
    height: 13px;
    background: rgba(212, 175, 55, 0.8);
    box-shadow: 0 0 8px rgba(212, 175, 55, 0.25);
}

.campaign-record-chip {
    display: inline-flex;
    align-items: center;
    font-family: 'Share Tech Mono', 'Courier New', monospace;
    font-size: 0.62rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(122, 234, 228, 0.88);
    border: 1px solid rgba(35, 191, 184, 0.42);
    background: rgba(3, 30, 37, 0.7);
    padding: 0.34rem 0.56rem;
}

.campaign-record-chip-right {
    display: inline-flex;
    align-items: center;
    gap: 0.38rem;
    color: rgba(102, 219, 132, 0.9);
    border-color: rgba(69, 179, 88, 0.4);
    background: rgba(8, 38, 24, 0.65);
}

.campaign-record-chip-right::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: currentColor;
    animation: warfrontPulse 2s ease-in-out infinite;
}

.campaign-record-hero-copy {
    max-width: 92%;
}

.campaign-record-hero-line-1 {
    margin: 0 0 0.45rem 0;
    font-family: 'Cinzel', serif;
    font-size: 2.08rem;
    line-height: 1.06;
    color: #f4f7fb;
    letter-spacing: 0.02em;
    font-weight: 700;
    text-transform: uppercase;
    text-shadow: 0 3px 16px rgba(0, 0, 0, 0.82);
}

.campaign-record-hero-line-2 {
    margin: 0;
    font-family: 'Cinzel', serif;
    font-size: 0.94rem;
    line-height: 1.22;
    color: #afd8da;
    font-weight: 500;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.86);
    text-transform: uppercase;
    letter-spacing: 0.015em;
}

.campaign-record-body {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.7rem;
    border: none;
    margin-top: 0.8rem;
}

.campaign-ledger-col,
.campaign-pulse-col,
.campaign-discipline-col {
    padding: 0.95rem 1rem 1.02rem;
    background: radial-gradient(circle at top, #181a24, #090a0f);
    border: 1px solid var(--panel-border);
    border-radius: 0.9rem;
    box-shadow: var(--panel-shadow);
}

.campaign-record-col-title {
    margin: 0 0 0.85rem 0;
    font-family: Cinzel, "Noto Serif JP", Georgia, serif;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #e0e0e0;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    padding-bottom: 1.1rem;
}

.campaign-ledger-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.6rem;
}

.campaign-ledger-stat {
    padding: 0.75rem 0.75rem 0.72rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, rgba(12, 18, 31, 0.52), rgba(8, 12, 21, 0.72));
}

.campaign-ledger-value {
    font-family: 'Cinzel', serif;
    font-size: 2.08rem;
    font-weight: 700;
    line-height: 1;
    color: #f3cf70;
    margin-bottom: 0.45rem;
    letter-spacing: 0.01em;
}

.campaign-ledger-stat:nth-child(2) .campaign-ledger-value {
    color: #58d980;
}

.campaign-ledger-stat:nth-child(3) .campaign-ledger-value {
    color: #9ad7ff;
}

.campaign-ledger-stat:nth-child(4) .campaign-ledger-value {
    color: #f0a256;
}

.campaign-ledger-label {
    font-size: 0.66rem;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: rgba(181, 208, 236, 0.76);
    line-height: 1.45;
}

.campaign-ledger-quote {
    margin: 0.9rem 0 0;
    padding-top: 0.72rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-style: italic;
    font-size: 0.86rem;
    line-height: 1.48;
    color: rgba(201, 191, 162, 0.82);
}

.campaign-pulse-row {
    display: grid;
    grid-template-columns: minmax(120px, 1fr) minmax(160px, 2fr) auto;
    align-items: center;
    gap: 0.65rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

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

.campaign-pulse-room {
    font-family: 'Cinzel', serif;
    letter-spacing: 0.03em;
    color: rgba(238, 230, 205, 0.92);
    font-size: 0.94rem;
}

.campaign-pulse-bar-track {
    height: 7px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.16));
    overflow: hidden;
    position: relative;
}

.campaign-pulse-bar-fill {
    display: block;
    width: 0%;
    height: 100%;
    border-radius: inherit;
    transition: width 260ms ease;
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.22);
}

.campaign-pulse-physical {
    background: linear-gradient(90deg, #f1a044, #d8691d);
}

.campaign-pulse-mental {
    background: linear-gradient(90deg, #8c6af3, #5c45d6);
}

.campaign-pulse-inner {
    background: linear-gradient(90deg, #e7cf53, #b79a2b);
}

.campaign-pulse-jade {
    background: linear-gradient(90deg, #1fc8c4, #1b8f9f);
}

.campaign-pulse-pct {
    font-family: 'Share Tech Mono', 'Courier New', monospace;
    font-size: 0.9rem;
    color: rgba(241, 246, 255, 0.92);
    min-width: 40px;
    text-align: right;
}

.campaign-pulse-dispatch {
    padding: 0.65rem 0.85rem;
    border-left: 3px solid rgba(122, 96, 48, 0.6);
    background: rgba(200, 168, 50, 0.04);
    margin-bottom: 0.85rem;
}

.campaign-pulse-dispatch-label {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.65rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(122, 96, 48, 0.9);
    margin-bottom: 0.3rem;
}

.campaign-pulse-dispatch-text {
    font-style: italic;
    font-size: 0.88rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.72);
}

.campaign-discipline-row {
    padding: 0.56rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

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

.campaign-discipline-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    margin-bottom: 0.42rem;
}

.campaign-discipline-name {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(233, 226, 197, 0.9);
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.campaign-discipline-name::before {
    content: '•';
    color: rgba(212, 175, 55, 0.9);
}

.campaign-discipline-current-streak {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.66rem;
    letter-spacing: 0.08em;
    text-transform: lowercase;
    color: rgba(243, 195, 83, 0.92);
}

.campaign-discipline-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.6rem;
}

.campaign-discipline-metric {
    display: flex;
    flex-direction: column;
    gap: 0.12rem;
}

.campaign-discipline-metric-value {
    font-family: Cinzel, "Noto Serif JP", Georgia, serif;
    font-size: 1.28rem;
    font-weight: 700;
    line-height: 1;
    color: #e9cf77;
}

.campaign-discipline-metric:nth-child(2) .campaign-discipline-metric-value {
    color: #9ad7ff;
}

.campaign-discipline-metric:nth-child(3) .campaign-discipline-metric-value {
    color: #58d980;
}

.campaign-discipline-metric-label {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.56rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(154, 170, 198, 0.82);
}

.campaign-record-mission-footer {
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--panel-border, rgba(255, 255, 255, 0.08));
}

@media (max-width: 980px) {
    .campaign-record-hero {
        width: 100%;
        margin: 0;
        aspect-ratio: 3 / 1;
        border: 1px solid rgba(255, 209, 125, 0.18);
    }

    .campaign-record-hero-copy {
        max-width: 100%;
    }

    .campaign-record-hero-line-1 {
        font-size: 1.74rem;
    }

    .campaign-record-hero-line-2 {
        font-size: 0.84rem;
        line-height: 1.22;
    }

    .campaign-record-body {
        grid-template-columns: 1fr;
    }

    .campaign-pulse-col { border: 1px solid var(--panel-border); }
}

@media (max-width: 700px) {
    .campaign-record-hero {
        aspect-ratio: 2.2 / 1;
    }

    .campaign-record-hero-overlay {
        padding: 0.75rem 0.8rem;
    }

    .campaign-record-hero-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.35rem;
    }

    .campaign-record-kicker {
        font-size: 0.54rem;
        letter-spacing: 0.14em;
    }

    .campaign-record-chip {
        font-size: 0.56rem;
        letter-spacing: 0.13em;
    }

    .campaign-record-hero-line-1 {
        font-size: 1.4rem;
    }

    .campaign-record-hero-line-2 {
        font-size: 0.82rem;
        line-height: 1.32;
    }

    .campaign-ledger-grid {
        grid-template-columns: 1fr;
        gap: 0.45rem;
    }

    .campaign-pulse-row {
        grid-template-columns: 1fr;
        gap: 0.35rem;
        padding: 0.7rem 0;
    }

    .campaign-discipline-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }

    .campaign-discipline-metrics {
        grid-template-columns: 1fr;
        gap: 0.35rem;
    }

    .campaign-pulse-pct {
        text-align: left;
    }
}

/* Warfront map hero: full width, 220px, overlays */
.warfront-map-hero {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    border: 1px solid var(--panel-border, rgba(255, 255, 255, 0.08));
    margin-bottom: 0;
}

/* L-shaped gold accent at top-left (mockup style) */
.warfront-map-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 45px;
    height: 2px;
    background: linear-gradient(90deg, rgba(212, 175, 55, 0.55), rgba(212, 175, 55, 0.12));
    z-index: 3;
    pointer-events: none;
}

.warfront-map-hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 2px;
    height: 44px;
    background: linear-gradient(180deg, rgba(212, 175, 55, 0.55), rgba(212, 175, 55, 0.12));
    z-index: 3;
    pointer-events: none;
}

.warfront-map-hero-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 60%;
    filter: brightness(0.8) contrast(1.1);
    display: block;
}

.warfront-map-vignette {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(8, 10, 12, 0.6) 0%, transparent 30%, transparent 70%, rgba(8, 10, 12, 0.8) 100%),
        linear-gradient(to right, rgba(8, 10, 12, 0.3) 0%, transparent 20%, transparent 80%, rgba(8, 10, 12, 0.3) 100%);
    pointer-events: none;
    z-index: 1;
}

.warfront-map-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 16px 20px;
}

.warfront-map-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.warfront-map-ward {
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
    background: rgba(8, 10, 14, 0.7);
    padding: 4px 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-top-color: rgba(212, 175, 55, 0.4);
}

.warfront-map-status {
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent-red, #c43a28);
    background: rgba(8, 10, 14, 0.7);
    padding: 4px 10px;
    border: 1px solid rgba(196, 58, 40, 0.25);
    display: flex;
    align-items: center;
    gap: 6px;
}

.warfront-map-status::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent-red, #c43a28);
    animation: warfrontPulse 2s ease-in-out infinite;
}

@keyframes warfrontPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.warfront-map-bottom {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
}

.warfront-map-headline {
    font-family: Cinzel, serif;
    font-size: 21px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.95);
    line-height: 1.3;
}

.warfront-countdown {
    color: #a3c7ff;
    font-variant-numeric: tabular-nums;
}

.warfront-map-territory {
    text-align: right;
}

.warfront-territory-pct {
    font-size: 1.75rem;
    font-weight: 700;
    color: #7ec47e;
    text-shadow: 0 0 20px rgba(126, 196, 126, 0.4);
    line-height: 1;
    display: block;
}

.warfront-territory-label {
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(126, 196, 126, 0.9);
    display: block;
    margin-top: 2px;
}

.warfront-territory-today {
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    color: #7ec47e;
    display: block;
}

/* Map hero state classes (mirror .war-clan-map-container) */
.warfront-map-hero.map-victory .warfront-map-vignette {
    background: radial-gradient(circle at center, rgba(215, 184, 122, 0.35), transparent 50%);
}

.warfront-map-hero.map-cleansing {
    --corruption-opacity: 1;
}

.warfront-map-hero.map-cleansing .warfront-map-vignette {
    background: radial-gradient(circle at center, rgba(215, 184, 122, 0.3), 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%);
}

.warfront-map-hero.map-cleansing.cleansing-victory .warfront-map-vignette {
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.25), transparent 60%),
        radial-gradient(ellipse at 50% 50%, rgba(135, 206, 250, 0.3) 0%, transparent 70%);
}

/* Two-column content grid below map */
.warfront-content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border: 1px solid var(--panel-border, rgba(255, 255, 255, 0.08));
    border-top: none;
}

@media (max-width: 1199px) {
    .warfront-content-grid {
        grid-template-columns: 1fr;
    }
    .warfront-reports-col {
        border-right: none;
        border-bottom: 1px solid var(--panel-border, rgba(255, 255, 255, 0.08));
    }
    .warfront-advantage-col {
        width: 100%;
    }
}

.warfront-reports-col {
    padding: 18px 20px;
    border-right: 1px solid var(--panel-border, rgba(255, 255, 255, 0.08));
}

.warfront-col-label {
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    margin: 0 0 12px 0;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--panel-border, rgba(255, 255, 255, 0.08));
}

.warfront-reports-wrap {
    min-height: 140px;
    overflow: hidden;
    position: relative;
}

.warfront-advantage-col {
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.warfront-advantage-display {
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--panel-border, rgba(255, 255, 255, 0.08));
}

.warfront-advantage-pct {
    font-size: 2.25rem;
    font-weight: 700;
    color: #d1a95f;
    line-height: 1;
    text-shadow: 0 0 30px rgba(209, 169, 95, 0.25);
}

.warfront-advantage-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.warfront-advantage-label {
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(209, 169, 95, 0.75);
}

.warfront-advantage-sub {
    font-size: 0.85rem;
    font-style: italic;
    color: rgba(255, 255, 255, 0.55);
}

.warfront-bar-section {
    border-left: 3px solid rgba(212, 175, 55, 0.6);
    padding-left: 12px;
    margin-left: 0;
}

.warfront-bar-section .war-metal-bar-track {
    margin-top: 10px;
    margin-bottom: 0;
    height: 12px;
}

.warfront-bar-phase {
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #8a7840;
}

.warfront-bar-phase-desc {
    font-size: 13px;
    font-style: italic;
    color: #7a6a50;
    margin: 0 0 4px 0;
}

/* Overnight assault: red left border */
.warfront-overnight-assault {
    font-size: 0.8rem;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.85);
    padding: 8px 10px;
    background: rgba(140, 42, 26, 0.08);
    border: 1px solid rgba(140, 42, 26, 0.2);
    border-left: 3px solid var(--accent-red, #c43a28);
    margin-top: 4px;
}

.warfront-mission-footer {
    margin-top: 0;
    padding: 14px 20px;
    border-top: 1px solid var(--panel-border, rgba(255, 255, 255, 0.08));
    background: rgba(0, 0, 0, 0.15);
}

/* Report dots: victory (green), threat (red), neutral (dim) */
/* Report rows: left border + tint (same language as overnight assault) */
.battle-event.victory {
    --report-color: #6aaa5a;
    border: 1px solid rgba(106, 170, 90, 0.15);
    border-left: 2px solid var(--report-color);
    background: rgba(106, 170, 90, 0.06);
}

.battle-event.threat {
    --report-color: #c43a28;
    border: 1px solid rgba(196, 58, 40, 0.2);
    border-left: 2px solid var(--report-color);
    background: rgba(196, 58, 40, 0.06);
}

.battle-event.neutral {
    --report-color: #5a5848;
    border: 1px solid rgba(90, 88, 72, 0.2);
    border-left: 2px solid var(--report-color);
    background: rgba(90, 88, 72, 0.08);
}

.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 */
}

/* ═══ RELIC CARD (Kintsugi Relics) ═══ */
.mask-display-wrapper .relic-card {
    position: relative;
    width: 100%;
    height: 520px;
    overflow: hidden;
    border: 1px solid rgba(228, 198, 128, 0.15);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
    border-radius: 0.9rem 0.9rem 0 0;
    display: flex;
    flex-direction: row;
}

.mask-display-wrapper .relic-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, rgba(228, 198, 128, 0.8), rgba(228, 198, 128, 0.1) 60%, transparent);
    z-index: 4;
    pointer-events: none;
}

.mask-display-wrapper .relic-scene {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: brightness(0.35) contrast(1.1) saturate(0.7);
    transition: filter 0.8s ease;
    background-color: var(--bg-color, #0c0d10);
}

.mask-display-wrapper .relic-vignette {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        linear-gradient(to right, rgba(8, 10, 14, 0.6) 0%, rgba(8, 10, 14, 0.25) 45%, rgba(8, 10, 14, 0.5) 100%),
        linear-gradient(to bottom, rgba(8, 10, 14, 0.35) 0%, transparent 30%, transparent 70%, rgba(8, 10, 14, 0.6) 100%);
}

/* Left column: mask (40% width) */
.mask-display-wrapper .relic-mask-wrap {
    position: relative;
    z-index: 3;
    flex: 0 0 40%;
    min-width: 280px;
    max-width: 420px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(to right, rgba(8,10,14,0.7) 0%, rgba(8,10,14,0.65) 100%);
}

.mask-display-wrapper .relic-mask-img {
    width: 100%;
    max-width: 325px;
    height: auto;
    filter: drop-shadow(0 0 40px rgba(200, 168, 50, 0.35))
            drop-shadow(0 8px 24px rgba(0, 0, 0, 0.8));
    animation: maskFloat 6s ease-in-out infinite;
}

@keyframes maskFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.mask-display-wrapper .mask-glow {
    position: absolute;
    bottom: -24px;
    left: 50%;
    transform: translateX(-50%);
    width: 160px;
    height: 40px;
    background: radial-gradient(ellipse, rgba(200, 168, 50, 0.35) 0%, rgba(200, 168, 50, 0.1) 40%, transparent 70%);
    animation: glowPulse 6s ease-in-out infinite;
}

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

/* Right column: content */
.mask-display-wrapper .relic-content {
    position: relative;
    z-index: 3;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px 250px 40px 24px;
    min-width: 0;
    background: linear-gradient(to right, rgba(8,10,14,0.7) 0%, rgba(8,10,14,0.4) 80%, transparent 100%);
}

.mask-display-wrapper .relic-eyebrow {
    font-family: 'Share Tech Mono', monospace;
    font-size: 8px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: rgba(228, 198, 128, 0.6);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.mask-display-wrapper .relic-eyebrow::before {
    content: '';
    width: 20px;
    height: 1px;
    background: rgba(228, 198, 128, 0.5);
}

.mask-display-wrapper .relic-name {
    font-family: 'Cinzel', serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary, #f2f2f7);
    letter-spacing: 0.03em;
    line-height: 1.2;
    margin-bottom: 16px;
}

.mask-display-wrapper .relic-divider {
    width: 40px;
    height: 1px;
    background: linear-gradient(90deg, rgba(228, 198, 128, 0.8), transparent);
    margin-bottom: 16px;
}

.mask-display-wrapper .relic-lore {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mask-display-wrapper .relic-lore p {
    font-size: 14px;
    line-height: 1.8;
    color: #c8c0a8;
}

.mask-display-wrapper .relic-acquired {
    margin-top: 20px;
    font-family: 'Share Tech Mono', monospace;
    font-size: 9px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(228, 198, 128, 0.7);
    display: flex;
    align-items: center;
    gap: 8px;
    padding-top: 14px;
    border-top: 1px solid rgba(200, 168, 50, 0.15);
}

.mask-display-wrapper .relic-acquired::before {
    content: '鍛';
    font-family: serif;
    font-size: 16px;
    color: rgba(228, 198, 128, 0.8);
    opacity: 0.9;
}

/* Relic Navigation */
.mask-display-wrapper .relic-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    border: 1px solid rgba(228, 198, 128, 0.1);
    border-top: none;
    border-radius: 0 0 0.9rem 0.9rem;
    background: var(--surface-color, #15171f);
    box-shadow: inset 0 1px 0 0 rgba(228, 198, 128, 0.08);
}

.mask-display-wrapper .nav-btn.relic-nav-btn {
    font-family: 'Share Tech Mono', monospace;
    font-size: 9px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(168, 152, 120, 0.9);
    background: transparent;
    border: 1px solid var(--border-color, #2a2d38);
    padding: 8px 14px;
    cursor: url('../img/kunai-cursor-64.png') 6 5, pointer;
    transition: border-color 0.2s, color 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.mask-display-wrapper .nav-btn.relic-nav-btn:hover:not(:disabled) {
    border-color: rgba(228, 198, 128, 0.6);
    color: rgba(228, 198, 128, 0.9);
}

.mask-display-wrapper .nav-btn.relic-nav-btn:disabled {
    opacity: 0.3;
    cursor: default;
}

.mask-display-wrapper .relic-inventory {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mask-display-wrapper .inv-relic {
    width: 36px;
    height: 44px;
    border: none;
    background: transparent;
    box-shadow: none;
    cursor: url('../img/kunai-cursor-64.png') 6 5, pointer;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s, filter 0.2s;
    overflow: visible;
}

/* Inactive thumbnails: grayscale + low opacity (match main card mask aesthetic) */
.mask-display-wrapper .inv-relic:not(.active) {
    opacity: 0.4;
    filter: grayscale(1);
}

.mask-display-wrapper .inv-relic:not(.active):hover {
    opacity: 0.6;
}

.mask-display-wrapper .inv-relic.active {
    opacity: 1;
    filter: none;
}

.mask-display-wrapper .inv-relic.locked {
    opacity: 0.25;
    filter: grayscale(1);
    cursor: url('../img/kunai-cursor-64.png') 6 5, pointer;
}

.mask-display-wrapper .inv-relic.locked:hover {
    opacity: 0.25;
}

.mask-display-wrapper .inv-mask {
    width: 22px;
    height: 28px;
    object-fit: cover;
    border-radius: 50%;
}

.mask-display-wrapper .inv-mask.locked-mask {
    width: 14px;
    height: 18px;
    background: #1a1c24;
    border: 1px solid #2a2c3a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Share Tech Mono', monospace;
    font-size: 8px;
    color: #2a2c3a;
    border-radius: 0;
}

.mask-display-wrapper .inv-label {
    position: absolute;
    bottom: 3px;
    left: 0;
    right: 0;
    text-align: center;
    font-family: 'Share Tech Mono', monospace;
    font-size: 6px;
    letter-spacing: 0.1em;
    color: rgba(168, 152, 120, 0.8);
    text-transform: uppercase;
}

.mask-display-wrapper .inv-relic.active .inv-label {
    color: rgba(228, 198, 128, 0.9);
}

.mask-display-wrapper .nav-counter {
    font-family: 'Share Tech Mono', monospace;
    font-size: 9px;
    letter-spacing: 0.2em;
    color: rgba(168, 152, 120, 0.8);
}

.mask-display-wrapper .nav-counter span {
    color: rgba(228, 198, 128, 0.8);
}

/* Relic card transition */
.mask-display-wrapper .relic-card.transitioning .relic-content {
    animation: relicFadeOut 0.3s ease forwards;
}

.mask-display-wrapper .relic-card.transitioning .relic-mask-img {
    animation: maskFadeOut 0.3s ease forwards;
}

@keyframes relicFadeOut {
    to { opacity: 0; transform: translateX(-10px); }
}

@keyframes maskFadeOut {
    to { opacity: 0; transform: translateY(-8px) scale(0.95); }
}

.mask-display-wrapper .relic-content.revealed {
    animation: relicReveal 0.6s ease both;
}

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

/* Mask Indicators (Dots) - legacy, kept for compatibility */
.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 */

@media (max-width: 1700px) {
    .mask-display-wrapper .relic-card {
        height: 480px;
    }
    .mask-display-wrapper .relic-mask-wrap {
        flex: 0 0 38%;
        max-width: 360px;
    }
    .mask-display-wrapper .relic-mask-img {
        max-width: 280px;
    }
    .mask-display-wrapper .relic-content {
        padding: 32px 32px 32px 20px;
    }
}

@media (max-width: 1450px) {
    .mask-display-wrapper .relic-card {
        height: 460px;
    }
    .mask-display-wrapper .relic-mask-wrap {
        flex: 0 0 36%;
        max-width: 320px;
    }
    .mask-display-wrapper .relic-mask-img {
        max-width: 240px;
    }
    .mask-display-wrapper .relic-content {
        padding: 28px 24px 28px 16px;
    }
    .mask-display-wrapper .relic-name {
        font-size: 18px;
    }
    .mask-display-wrapper .relic-lore p {
        font-size: 13px;
    }
}

/* Mobile/Small tablet: Relic card stacks vertically */
@media (max-width: 900px) {
    .mask-display-wrapper .relic-card {
        flex-direction: column;
        height: auto;
        min-height: 560px;
    }
    .mask-display-wrapper .relic-mask-wrap {
        flex: none;
        width: 100%;
        max-width: none;
        min-width: unset;
        padding-top: 32px;
    }
    .mask-display-wrapper .relic-mask-img {
        max-width: 220px;
    }
    .mask-display-wrapper .relic-content {
        padding: 24px 20px 32px;
    }
    .mask-display-wrapper .relic-name {
        font-size: 16px;
    }
    .mask-display-wrapper .relic-lore p {
        font-size: 12px;
    }
    .mask-display-wrapper .relic-nav {
        padding: 10px 12px;
        justify-content: center;
    }
    
    .mask-display-wrapper .relic-inventory {
        display: none;
    }
    
    .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;
}

/* Under Assault badge — top-left of assault image (same style as warfront Under Siege) */
.shrine-assault-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent-red, #c43a28);
    background: rgba(8, 10, 14, 0.7);
    padding: 4px 10px;
    border: 1px solid rgba(196, 58, 40, 0.25);
    display: flex;
    align-items: center;
    gap: 6px;
}

.shrine-assault-badge::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent-red, #c43a28);
    animation: warfrontPulse 2s ease-in-out infinite;
}

/* 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%); }
}

/* Ash particle layer — March (Aries / Burning Ascent) only; ::after so it paints on top of image */
.shrine-media[data-month="2"]::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background-image:
        radial-gradient(2px 2px at 15% 20%, rgba(220,200,180,0.5) 0%, transparent 100%),
        radial-gradient(2px 2px at 35% 8%,  rgba(200,190,170,0.45) 0%, transparent 100%),
        radial-gradient(2px 2px at 55% 35%, rgba(230,215,195,0.5) 0%, transparent 100%),
        radial-gradient(2px 2px at 72% 15%, rgba(210,195,175,0.45) 0%, transparent 100%),
        radial-gradient(2px 2px at 88% 42%, rgba(220,200,180,0.4) 0%, transparent 100%),
        radial-gradient(2px 2px at 25% 55%, rgba(200,190,170,0.35) 0%, transparent 100%),
        radial-gradient(2px 2px at 60% 65%, rgba(210,195,175,0.4) 0%, transparent 100%),
        radial-gradient(2px 2px at 42% 78%, rgba(220,200,180,0.35) 0%, transparent 100%),
        radial-gradient(2px 2px at 80% 70%, rgba(200,190,170,0.45) 0%, transparent 100%),
        radial-gradient(2.5px 2.5px at 10% 85%, rgba(230,215,195,0.35) 0%, transparent 100%);
    background-size: 100% 200%;
    background-repeat: no-repeat;
    animation: ashFall 20s linear infinite;
}

@keyframes ashFall {
    0%   { background-position: 0% 100%; }
    100% { background-position: 2% 0%; }
}

/* 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; 
    }
    .shrine-media[data-month="2"]::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);
}

/* Shrine card: Cinzel for shrine title (card heading uses .war-card-heading globally) */
.war-shrine-layout .war-season-lore-title {
    font-family: Cinzel, "Noto Serif JP", Georgia, serif;
}

.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);
}

/* Shrine card layout: image full left column height; phase + bar in right column */
.war-shrine-layout {
    align-items: stretch;
}

.war-shrine-layout > .war-shrine-bars {
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.war-shrine-layout .war-shrine-bars .shrine-media {
    flex: 1;
    display: flex;
    min-height: 0;
    margin-bottom: 0;
}

.war-shrine-layout .war-shrine-bars .shrine-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Thin gold rule above phase + bar in right column */
.war-shrine-phase-divider {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(212, 175, 55, 0.5);
}

/* Phase block: gold left border (same as warfront), label and description */
.war-shrine-phase-section {
    margin-top: 0.5rem;
}

.war-shrine-phase-section .war-shrine-phase-label {
    color: #8a7840;
    border-top: none;
    padding-top: 0;
    margin-top: 0;
}

.war-shrine-phase-section .war-shrine-phase-desc {
    font-size: 13px;
    color: #7a6a50;
    margin: 0 0 0.5rem 0;
}

/* Battle progress bar on shrine card: no card wrapper, just label + % + track */
.war-shrine-progress-bar {
    background: none;
    border: none;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
}

.war-shrine-progress-bar .war-shrine-progress-track {
    height: 14px;
    margin-top: 0.5rem;
}

.war-shrine-progress-header .war-shrine-progress-label {
    color: #8a7840;
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.war-shrine-progress-header .war-shrine-progress-pct {
    font-family: Cinzel, "Noto Serif JP", Georgia, serif;
    font-size: 20px;
    color: #d4af37;
    font-weight: 600;
}

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

.war-season-reward {
    margin-top: 0.8rem;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0 0.35em;
}

.war-season-reward .war-season-section-title {
    margin: 0;
    display: inline;
}

.war-season-reward .war-season-reward-name {
    margin: 0;
    display: inline;
    flex: 1;
    min-width: 0;
}

/* Mobile: mission text on its own line so it uses full width */
@media (max-width: 768px) {
    .war-season-reward {
        flex-direction: column;
        align-items: stretch;
        gap: 0.25em 0;
    }
    .war-season-reward .war-season-reward-name {
        display: block;
        width: 100%;
        margin-top: 0.15em;
    }
}

.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;
    }

    .training-toolbelt-card .field-equipment-tray {
        margin-left: -1rem;
        margin-right: -1rem;
        margin-bottom: -0.95rem;
        padding: 1.25rem 1rem 0.95rem;
    }

    .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: min(93vw, 1580px);
    width: 100%;
    margin: 0 auto 3.5rem auto;
    padding: 2.5rem 0 3.5rem;
}

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

.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: radial-gradient(circle at top, #181a24, #090a0f);
    border: 1px solid var(--panel-border);
}

.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.15rem 1.25rem;
    background: radial-gradient(circle at top, #181a24, #090a0f);
    border: 1px solid var(--panel-border);
}

.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.15rem 1.25rem;
    background: radial-gradient(circle at top, #181a24, #090a0f);
    border: 1px solid var(--panel-border);
}

.side-quests-todo-header {
    margin-bottom: 1rem;
}

.side-quests-todo-header .war-card-heading,
.side-quests-todo-title {
    font-size: 1.05rem;
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.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 {
    appearance: none;
    width: 1.75rem;
    height: 1.75rem;
    min-width: 1.75rem;
    min-height: 1.75rem;
    border-radius: 0.25rem;
    border: 2px 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;
}

.side-quests-todo-checkbox:checked {
    border-color: rgba(212, 184, 134, 0.9);
    background: radial-gradient(circle at 30% 0%, rgba(255, 242, 220, 0.95), rgba(212, 184, 134, 0.9));
    box-shadow: 0 0 12px rgba(242, 215, 160, 0.5);
}

.side-quests-todo-checkbox:checked::after {
    content: "✓";
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 600;
    color: rgba(4, 5, 9, 0.95);
}

.side-quests-todo-card .custom-op-mission-footer,
.side-quests-todo-footer {
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--panel-border, rgba(255, 255, 255, 0.08));
}

/* Side Quests Sunrise Card */
.sunrise-section {
    margin-bottom: 1.5rem;
}

.sunrise-card {
    padding: 1.15rem 1.25rem;
    background: radial-gradient(circle at top, #181a24, #090a0f);
    border: 1px solid var(--panel-border);
}

.sunrise-titlebar {
    position: relative;
    margin-bottom: 1rem;
    padding: 0.6rem 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));
}

.sunrise-titlebar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    border-radius: 0.6rem 0.6rem 0 0;
    background: linear-gradient(90deg, rgba(212, 184, 134, 0.4), rgba(242, 215, 160, 0.25));
}

.sunrise-titlebar-collapsible {
    cursor: url('../img/hand-pointing-cursor.png') 6 5, pointer !important;
    transition: opacity 0.2s ease;
}

.sunrise-titlebar-collapsible:hover {
    opacity: 0.85;
}

.sunrise-titlebar-collapsible.collapsed .sunrise-toggle {
    transform: rotate(-90deg);
}

.sunrise-titlebar-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sunrise-titlebar-text {
    font-size: 0.85rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: 600;
    color: #d4b886;
}

.sunrise-toggle {
    font-size: 0.8rem;
    color: rgba(212, 184, 134, 0.7);
    transition: transform 0.25s ease;
}

.sunrise-titlebar-progress {
    height: 3px;
    margin-top: 0.5rem;
    background: rgba(0, 0, 0, 0.35);
    border-radius: 2px;
    overflow: hidden;
}

.sunrise-titlebar-progress-fill {
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, rgba(212, 184, 134, 0.6), rgba(242, 215, 160, 0.5));
    border-radius: 2px;
}

.sunrise-content {
    transition: max-height 0.3s ease, opacity 0.2s ease, padding 0.3s ease, margin 0.3s ease;
}

.sunrise-content.collapsed {
    max-height: 0 !important;
    opacity: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
}

.sunrise-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    align-items: stretch;
}

.sunrise-column-left {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.sunrise-block {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.sunrise-block-heading {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: rgba(242, 215, 160, 0.85);
    margin-bottom: 0.15rem;
}

.sunrise-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: 0.9rem;
    padding: 0.05rem 0;
    color: var(--training-text-main);
}

.sunrise-row--single {
    justify-content: flex-start;
}

.sunrise-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: rgba(163, 167, 194, 0.8);
}

.sunrise-value {
    font-variant-numeric: tabular-nums;
    color: #f7e4b5;
}

.sunrise-block--golden .sunrise-block-heading {
    margin-top: 0.3rem;
}

.sunrise-value--golden {
    font-weight: 600;
}

.sunrise-use-location-btn {
    margin-top: 0.75rem;
    align-self: flex-start;
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    font-family: inherit;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(212, 184, 134, 0.9);
    background: transparent;
    border: 1px solid rgba(212, 184, 134, 0.35);
    border-radius: 0.4rem;
    cursor: url('../img/kunai-cursor-64.png') 6 5, pointer;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.sunrise-use-location-btn:hover {
    border-color: rgba(212, 184, 134, 0.55);
    color: #d4b886;
    cursor: url('../img/kunai-cursor-64-hover.png') 6 5, pointer;
}

.sunrise-use-location-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.sunrise-calibrated-row {
    margin-top: 0.75rem;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(212, 184, 134, 0.7);
}

.sunrise-calibrated-label {
    color: inherit;
}

.sunrise-calibrated-sep {
    color: inherit;
    opacity: 0.85;
}

.sunrise-use-location-btn.sunrise-recalibrate-link {
    margin-top: 0;
    padding: 0;
    border: none;
    border-radius: 0;
    background: none;
    color: rgba(212, 184, 134, 0.85);
    font-style: italic;
}

.sunrise-use-location-btn.sunrise-recalibrate-link:hover {
    color: #d4b886;
}

.sunrise-use-location-btn.sunrise-recalibrate-link:disabled {
    opacity: 0.7;
}

.sunrise-calibrated {
    margin-top: 0.5rem;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(212, 184, 134, 0.7);
}

.sunrise-timeline {
    margin-top: 0.9rem;
}

.sunrise-daylight-bar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    background: rgba(4, 7, 15, 0.4);
    border: 1px solid rgba(212, 184, 134, 0.25);
}

.sunrise-daylight-label {
    font-size: 0.75rem;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(212, 184, 134, 0.85);
    flex-shrink: 0;
}

.sunrise-horizon {
    position: relative;
    flex: 1;
    min-width: 0;
    height: 20px;
    --sunrise-progress: 0;
}

.sunrise-horizon-line {
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 2px;
    background: rgba(212, 184, 134, 0.35);
    border-radius: 1px;
}

.sunrise-horizon-sun {
    position: absolute;
    top: 50%;
    left: calc(var(--sunrise-progress, 0) * 100%);
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #fff8e0, #f9d976 40%, #f6b26b);
    box-shadow: 0 0 8px rgba(246, 178, 107, 0.5), 0 0 12px rgba(249, 217, 118, 0.3);
    transition: left 0.9s ease-out;
}

.sunrise-daylight-percent {
    font-size: 0.75rem;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.05em;
    color: rgba(212, 184, 134, 0.9);
    flex-shrink: 0;
}

.sunrise-column-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.sunrise-image-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(212, 184, 134, 0.4), transparent);
    margin: 1rem 0 0.75rem;
}

.sunrise-quote {
    margin: 0;
    font-size: 0.85rem;
    font-style: italic;
    color: rgba(212, 184, 134, 0.85);
    line-height: 1.4;
}

.sunrise-figure {
    margin: 0;
    width: 100%;
    max-height: 280px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.sunrise-image {
    display: block;
    max-width: 100%;
    max-height: 280px;
    width: auto;
    height: auto;
    border-radius: 0.75rem;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.55);
    object-fit: contain;
}

@media (max-width: 768px) {
    .sunrise-layout {
        grid-template-columns: 1fr;
    }

    .sunrise-column-right {
        display: none;
    }

    .sunrise-titlebar-text-desktop {
        display: none;
    }

    .sunrise-titlebar-text-mobile {
        display: inline;
    }
}

@media (min-width: 769px) {
    .sunrise-titlebar-text-mobile {
        display: none;
    }
}

.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.15rem 1.25rem;
    background: radial-gradient(circle at top, #181a24, #090a0f);
    border: 1px solid var(--panel-border);
}

.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;
    position: relative;
}

.training-daily.card {
    background: radial-gradient(circle at top, #181a24, #090a0f);
    border: 1px solid var(--panel-border);
    box-shadow: var(--panel-shadow);
}

.custom-rituals-section {
    margin-bottom: 1.75rem;
}

.custom-rituals-card {
    padding: 1.15rem 1.25rem 0.9rem;
}

.custom-rituals-header-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.custom-rituals-header {
    flex: 1;
    min-width: 0;
}

.custom-rituals-subtitle {
    color: rgba(117, 233, 228, 0.78);
}

.custom-rituals-heading {
    font-size: 1.05rem;
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.custom-rituals-header-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.55rem;
    min-width: max-content;
}

.custom-rituals-count {
    font-size: 0.7rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.66);
}

.custom-rituals-header-actions {
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.custom-rituals-header-actions .gold-btn,
.custom-rituals-header-actions .edit-rituals-btn {
    min-height: 2rem;
    padding: 0.35rem 0.7rem;
    font-size: 0.72rem;
}

.custom-rituals-body {
    padding-top: 0.8rem;
}

.custom-rituals-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 0.45rem;
    overflow: hidden;
}

.custom-rituals-list .training-task {
    border-radius: 0;
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 0.6rem 0.8rem;
    min-height: 3.1rem;
}

.custom-rituals-list .training-task:nth-child(-n + 2) {
    border-top: none;
}

.custom-rituals-list .training-task:nth-child(odd) {
    border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.custom-rituals-list .training-task .training-task-label {
    font-size: 0.92rem;
}

.custom-rituals-list .training-task .training-task-badge,
.custom-rituals-list .training-task .training-task-schedule {
    font-size: 0.62rem;
}

.custom-rituals-empty {
    margin: 0;
    padding: 0.9rem 0.2rem;
    color: rgba(163, 167, 194, 0.9);
    font-size: 0.85rem;
}

.custom-rituals-card .custom-op-mission-footer,
.custom-rituals-footer {
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--panel-border, rgba(255, 255, 255, 0.08));
}

.training-daily-body {
    position: relative;
}

.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-daily-war-header {
    margin-bottom: 1rem;
}

.training-daily-war-subtitle {
    margin-bottom: 0.1rem;
}

.training-daily-war-heading {
    font-size: 1.02rem;
    margin-bottom: 0;
    padding-bottom: 0.7rem;
}

.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.15rem 1.25rem;
    border: 1px solid var(--panel-border);
    background: radial-gradient(circle at top, #181a24, #090a0f);
    box-shadow: var(--panel-shadow);
}

.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 .custom-op-mission-footer {
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--panel-border, rgba(255, 255, 255, 0.08));
}

.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.24fr) minmax(0, 0.52fr) minmax(280px, 0.24fr);
    gap: 1.75rem;
    align-items: stretch;
}

.training-toolbelt-column {
    min-width: 0;
}

.training-toolbelt-card {
    --gold: #e8c987;
    --gold-dim: rgba(228, 198, 128, 0.45);
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.training-toolbelt-header {
    margin-bottom: 0.2rem;
}

.training-toolbelt-subtitle {
    margin-bottom: 0.1rem;
}

.training-toolbelt-heading {
    font-size: 0.95rem;
    margin-bottom: 0;
    padding-bottom: 0.6rem;
}

.field-equipment-tray {
    padding: 16px;
    border-radius: 10px;
    background:
        repeating-linear-gradient(
            90deg,
            rgba(255,255,255,0.015) 0px,
            rgba(255,255,255,0.015) 1px,
            transparent 1px,
            transparent 3px
        ),
        repeating-linear-gradient(
            180deg,
            rgba(255,255,255,0.02) 0px,
            transparent 2px,
            transparent 6px
        ),
        linear-gradient(180deg, #0a0f1f, #050814);
    border: 1px solid rgba(212,178,111,0.08);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.03),
        inset 0 -12px 30px rgba(0,0,0,0.55),
        0 8px 20px rgba(0,0,0,0.35);
}

/* Field Equipment as card footer: full-width bottom rail, slot grid bottom-weighted */
.training-toolbelt-card .field-equipment-tray {
    position: relative;
    margin-left: -1.25rem;
    margin-right: -1.25rem;
    margin-bottom: -1.15rem;
    background:
        repeating-linear-gradient(90deg, rgba(255,255,255,0.015) 0px, rgba(255,255,255,0.015) 1px, transparent 1px, transparent 3px),
        repeating-linear-gradient(180deg, rgba(255,255,255,0.02) 0px, transparent 2px, transparent 6px),
        linear-gradient(180deg, #0c0d11, #060709);
    padding: 1.25rem 1.25rem 1rem;
    border-radius: 0 0 0.9rem 0.9rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.training-toolbelt-card .field-equipment-tray::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(200, 210, 220, 0.4);
    box-shadow:
        0 -1px 10px rgba(180, 200, 220, 0.12),
        0 -3px 20px rgba(180, 200, 220, 0.06);
    -webkit-mask: linear-gradient(90deg, transparent 0%, black 8%, black 92%, transparent 100%);
    mask: linear-gradient(90deg, transparent 0%, black 8%, black 92%, transparent 100%);
    pointer-events: none;
}

.field-equipment-tray-footer {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.65rem;
    letter-spacing: 0.16em;
    color: rgba(163, 167, 194, 0.7);
    text-align: center;
    margin-top: 1rem;
    display: block;
}

.training-toolbelt-tabs {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
    justify-items: center;
}

.training-toolbelt-tab {
    width: 52px;
    height: 52px;
    padding: 0;
    flex-shrink: 0;
    clip-path: polygon(0 0, calc(100% - 7px) 0, 100% 7px, 100% 100%, 7px 100%, 0 calc(100% - 7px));
    border: 1px solid rgba(200, 168, 50, 0.15);
    background: #040506;
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.4);
    cursor: url('../img/hand-pointing-cursor.png') 6 5, pointer !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

.training-toolbelt-tab-icon {
    width: 26px;
    height: 26px;
    object-fit: contain;
    display: block;
    opacity: 0.6;
}

.training-toolbelt-tab:hover {
    border-color: var(--gold-dim);
}

.training-toolbelt-tab:hover .training-toolbelt-tab-icon {
    opacity: 1;
}

.training-toolbelt-tab.is-active {
    border-color: var(--gold);
    background: rgba(232, 201, 135, 0.12);
}

.training-toolbelt-tab.is-active .training-toolbelt-tab-icon {
    filter: none;
    opacity: 1;
}

.training-toolbelt-tab.is-disabled {
    opacity: 0.45;
    cursor: default !important;
}

.training-toolbelt-panels {
    flex: 1;
    min-height: 0;
}

.training-toolbelt-panel {
    display: none;
}

.training-toolbelt-panel.is-active {
    display: block;
    max-height: 70vh;
    overflow-y: auto;
    padding-right: 0.2rem;
}

.training-toolbelt-panel > .toolbelt-section {
    margin-bottom: 0;
}

.training-toolbelt-panel .war-echo-section,
.training-toolbelt-panel .interval-section,
.training-toolbelt-panel .rest-section,
.training-toolbelt-panel .meditation-section,
.training-toolbelt-panel .pomodoro-section,
.training-toolbelt-panel .scratchpad-section,
.training-toolbelt-panel .sunrise-section {
    margin-bottom: 0;
}

.training-toolbelt-panel .interval-header-collapsible,
.training-toolbelt-panel .rest-header-collapsible,
.training-toolbelt-panel .meditation-header-collapsible,
.training-toolbelt-panel .pomodoro-header-collapsible,
.training-toolbelt-panel .scratchpad-header-collapsible,
.training-toolbelt-panel .sunrise-titlebar-collapsible {
    display: none !important;
}

.training-toolbelt-panel .interval-content,
.training-toolbelt-panel .rest-content,
.training-toolbelt-panel .meditation-content,
.training-toolbelt-panel .pomodoro-content,
.training-toolbelt-panel .scratchpad-content,
.training-toolbelt-panel .sunrise-content {
    max-height: none !important;
    opacity: 1 !important;
    margin: 0 !important;
    padding-top: 0 !important;
    overflow: visible !important;
}

/* Remove inner card wrapper from timers in toolbelt, like War Echo */
.training-toolbelt-panel .interval-card,
.training-toolbelt-panel .rest-card,
.training-toolbelt-panel .meditation-card,
.training-toolbelt-panel .pomodoro-card,
.training-toolbelt-panel .scratchpad-card,
.training-toolbelt-panel .sunrise-card {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    border-radius: 0;
}

.training-toolbelt-panel .interval-card:hover,
.training-toolbelt-panel .rest-card:hover,
.training-toolbelt-panel .meditation-card:hover,
.training-toolbelt-panel .pomodoro-card:hover,
.training-toolbelt-panel .scratchpad-card:hover,
.training-toolbelt-panel .sunrise-card:hover {
    box-shadow: none;
}

/* Timer label row: name left, progress right */
.timer-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}
.timer-system-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: rgba(212, 184, 134, 0.9);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-align: left;
}
.timer-progress {
    font-size: 0.7rem;
    color: rgba(242, 215, 160, 0.8);
}

/* Timer quotes below each timer display */
.timer-quote {
    text-align: center;
    font-style: italic;
    color: var(--text-dim);
    font-size: 14px;
    margin: 0.6rem 0 0;
}

/* Timer cycles logged (stats below settings) */
.timer-cycles-logged {
    margin-top: 1.2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.timer-cycles-tiles {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.6rem;
}
.timer-cycles-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
}
.timer-cycles-value {
    font-size: 1.5rem;
    font-weight: 700;
    font-family: 'Space Mono', 'IBM Plex Mono', 'Courier New', monospace;
    color: #e4c680;
}
.timer-cycles-tile-today .timer-cycles-value {
    color: rgba(212, 184, 134, 0.55);
}
.timer-cycles-label-tile {
    font-size: 0.65rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
}
.training-toolbelt-unavailable {
    border: 1px dashed rgba(212, 184, 134, 0.25);
    border-radius: 0.55rem;
    padding: 0.85rem;
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    color: rgba(163, 167, 194, 0.95);
    background: rgba(9, 12, 20, 0.65);
}

.training-coach-card {
    border: none;
    border-radius: 0;
    background: transparent;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    align-items: stretch;
    width: 100%;
    max-width: 420px;
    justify-self: end;
    overflow: visible;
}

.training-coach-frame {
    width: 100%;
    max-width: none;
    aspect-ratio: 9 / 16;
    max-height: min(64vh, 600px);
    border-radius: 0.75rem;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
}

.training-coach-frame.has-training-video {
    cursor: url('../img/hand-pointing-cursor.png') 6 5, pointer;
}

.coach-video-overlay-btn {
    position: absolute;
    top: 0.58rem;
    right: 0.58rem;
    z-index: 3;
    border-radius: 0.1rem;
    border: 1px solid rgba(188, 195, 208, 0.42);
    background: rgba(8, 10, 14, 0.72);
    color: rgba(205, 211, 221, 0.9);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.34rem;
    padding: 0.34rem 0.56rem 0.33rem 0.5rem;
    cursor: url('../img/hand-pointing-cursor.png') 6 5, pointer;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.38);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, color 0.18s ease, background 0.18s ease;
    font-family: 'Share Tech Mono', monospace;
    text-transform: uppercase;
}

.coach-video-overlay-btn .coach-video-overlay-icon {
    font-size: 0.62rem;
    line-height: 1;
    width: 0.62rem;
    text-align: center;
    color: currentColor;
    opacity: 0.95;
}

.coach-video-overlay-btn .coach-video-overlay-label {
    font-size: 0.62rem;
    line-height: 1;
    letter-spacing: 0.18em;
    color: currentColor;
}

.coach-video-overlay-btn:hover {
    transform: translateY(-1px);
    border-color: rgba(228, 236, 248, 0.48);
    color: rgba(226, 232, 242, 0.95);
    box-shadow: 0 10px 16px rgba(0, 0, 0, 0.46);
}

.coach-video-overlay-btn:focus-visible {
    outline: 2px solid rgba(248, 231, 185, 0.75);
    outline-offset: 2px;
}

.coach-video-overlay-btn.has-new-tapes {
    border-color: rgba(214, 169, 91, 0.66);
    color: rgba(244, 214, 144, 0.98);
}

.coach-video-overlay-btn.has-new-tapes .coach-video-overlay-icon {
    animation: coachPlayPulse 1.5s ease-in-out infinite;
}

.coach-video-overlay-btn.is-playing {
    border-color: rgba(248, 231, 185, 0.8);
    color: rgba(248, 231, 185, 0.96);
}

.coach-video-overlay-btn.is-disabled,
.coach-video-overlay-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    box-shadow: none;
    animation: none;
}

.coach-video-overlay-btn.is-disabled .coach-video-overlay-icon,
.coach-video-overlay-btn:disabled .coach-video-overlay-icon {
    animation: none;
}

@keyframes coachPlayPulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.35;
        transform: scale(1.18);
    }
}

@media (max-width: 768px) {
    .training-coach-frame.has-training-video {
        cursor: default;
    }

    .coach-video-overlay-btn {
        padding: 0.36rem 0.52rem 0.35rem 0.46rem;
    }
}

.training-coach-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: inherit;
    transition: opacity 0.3s ease;
}

.training-coach-frame--video-active .training-coach-image {
    opacity: 0;
}

.training-coach-frame--video-active .coach-video-overlay-btn {
    opacity: 0;
    pointer-events: none;
}

.training-coach-video-layer {
    position: absolute;
    inset: 0;
    z-index: 1;
    opacity: 0;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.04), rgba(7, 10, 18, 0.9));
}

.training-coach-frame--video-active .training-coach-video-layer {
    opacity: 1;
    pointer-events: auto;
}

.training-coach-inline-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    border-radius: inherit;
}

/* Fullscreen on mobile: video fills screen */
.training-coach-inline-video:fullscreen,
.training-coach-inline-video:-webkit-full-screen,
.training-coach-inline-video:-moz-full-screen,
.training-coach-inline-video:-ms-fullscreen {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
}

.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.75rem 0;
    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;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.15rem;
    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 .coach-audio-btn-new-label {
    display: none;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
}

.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;
}

/* New tapes available: same style as Add New Ritual (gold) button */
.coach-audio-btn.has-new-tapes {
    background: linear-gradient(135deg, #e8c987, #b8924e);
    color: #2b1d0f;
    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);
}

.coach-audio-btn.has-new-tapes .coach-audio-btn-new-label {
    display: block;
    color: #2b1d0f;
}

.coach-audio-btn.has-new-tapes .coach-audio-btn-main-label {
    color: #2b1d0f;
}

.coach-audio-btn.has-new-tapes:hover {
    filter: brightness(1.08);
}

.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-label-desktop {
    display: inline;
}

.coach-guidance-label-mobile {
    display: none;
}

.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;
}

/* Inline Coach Chat Panel */
.training-coach-chat-panel {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.3s ease,
                margin-top 0.4s ease;
    margin-top: 0;
    border-radius: 0.5rem;
    background: linear-gradient(180deg, #1a1d26 0%, #0f1215 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.training-coach-chat-panel.open {
    max-height: 600px;
    opacity: 1;
    margin-top: 0.75rem;
}

/* Desktop: overlay right column, slide in from right */
@media (min-width: 769px) {
    .training-coach-chat-panel {
        position: absolute;
        left: min(26%, 360px);
        right: 0;
        top: 0;
        bottom: 0;
        z-index: 10;
        max-height: none;
        overflow: visible;
        opacity: 1;
        margin-top: 0;
        transform: translateX(100%);
        transition: transform 0.35s ease-out;
        display: flex;
        flex-direction: column;
    }
    .training-coach-chat-panel.open {
        transform: translateX(0);
        max-height: none;
        margin-top: 0;
    }
    .training-coach-chat-panel .coach-chat-messages {
        flex: 1;
        min-height: 200px;
        max-height: none;
    }
}

@media (max-width: 768px) {
    .training-coach-chat-panel {
        position: static;
        left: auto;
        right: auto;
        top: auto;
        bottom: auto;
        transform: none;
        display: flex;
        flex-direction: column;
        margin-top: 0.75rem;
    }
    .training-coach-chat-panel.open {
        position: fixed;
        inset: 0;
        z-index: 9999;
        max-height: none;
        border-radius: 0;
        margin: 0;
        width: 100%;
        max-width: 100vw;
        height: 100%;
        height: 100dvh;
        box-sizing: border-box;
        padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
        overflow: hidden;
    }
    .training-coach-chat-panel.open > * {
        min-width: 0;
    }
    /* Mobile fullscreen: messages fill middle and scroll */
    .training-coach-chat-panel.open .coach-chat-messages {
        flex: 1;
        min-height: 0;
        max-height: none;
        overflow-y: auto;
    }
    /* Mobile: strict order — Taishi (header) → messages → chat box → Send button */
    .training-coach-chat-panel .coach-chat-header {
        flex-shrink: 0;
    }
    .training-coach-chat-panel .coach-chat-messages {
        flex-shrink: 0;
    }
    .training-coach-chat-panel .coach-chat-input-area {
        flex-shrink: 0;
        flex-direction: column;
        display: flex;
    }
    .training-coach-chat-panel .coach-chat-input {
        width: 100%;
        min-height: 80px;
        box-sizing: border-box;
    }
    .training-coach-chat-panel .coach-chat-send-btn {
        width: 100%;
    }
}

.coach-chat-header {
    padding: 1rem 1rem 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
}

.coach-chat-header-left {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.coach-chat-subtitle {
    margin-bottom: 0;
}

.coach-chat-title {
    font-family: Cinzel, "Noto Serif JP", Georgia, serif;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #e0e0e0;
    margin: 0;
    padding: 0;
    border: none;
}

.coach-chat-close {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.5rem;
    cursor: url('../img/hand-pointing-cursor.png') 6 5, pointer !important;
    transition: color 0.2s ease;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding: 0;
}

.coach-chat-close:hover {
    color: rgba(255, 255, 255, 1);
}

.coach-chat-messages {
    padding: 1rem;
    min-height: 200px;
    max-height: 300px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.coach-chat-input-area {
    padding: 0.75rem 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.coach-chat-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 0.75rem;
    color: #fff;
    font-size: 0.9rem;
    resize: none;
    font-family: inherit;
    line-height: 1.4;
}

.coach-chat-input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
}

.coach-chat-send-btn {
    background: linear-gradient(135deg, #e8c987, #b8924e);
    color: #2b1d0f;
    border: none;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: url('../img/hand-pointing-cursor.png') 6 5, pointer !important;
    transition: all 0.2s ease;
    min-height: 44px;
    width: 100%;
}

.coach-chat-send-btn:hover:not(:disabled) {
    filter: brightness(1.1);
}

.coach-chat-send-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed !important;
}

.chat-remaining-count {
    font-weight: 700;
}

.coach-chat-message {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    word-wrap: break-word;
}

.coach-chat-message.user {
    background: rgba(232, 201, 135, 0.15);
    border: 1px solid rgba(232, 201, 135, 0.3);
    color: #f5d9a0;
}

.coach-chat-message.assistant {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
}

.coach-chat-error {
    padding: 0.75rem 1rem;
    background: rgba(212, 178, 134, 0.08);
    border-top: 1px solid rgba(212, 178, 134, 0.15);
    color: rgba(212, 178, 134, 0.85);
    font-size: 0.85rem;
    text-align: center;
    letter-spacing: 0.5px;
}

.training-daily-content {
    display: flex;
    flex-direction: column;
}

.training-daily-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.125rem;
    padding-top: 0.25rem;
}

.training-daily-header-main {
    min-width: 0;
}

.training-daily-subheading {
    margin-bottom: 0.1rem;
}

.training-daily-title {
    font-size: 1.02rem;
    margin-bottom: 0;
    padding-bottom: 0.7rem;
}

.training-daily-meta {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    text-align: right;
    padding-top: 0.15rem;
    flex-shrink: 0;
}

.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;
}

/* Ritual row badge (Daily / Sealed) and sealed state */
.training-task-badge {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    margin-left: 0.35rem;
}

.training-task.is-sealed .training-task-badge {
    color: rgba(212, 184, 134, 0.9);
}

.training-task.is-sealed {
    border-left: 2px solid rgba(212, 184, 134, 0.6);
}

/* Assault Orders styling (game-like block with tiles) */
.training-task.is-assault-orders {
    cursor: url('../img/kunai-cursor-64.png') 6 5, auto !important;
    padding: 0;
    display: block;
    align-items: stretch;
}

.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,
.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;
}

/* Training section separators (line — label — line) */
.training-separator {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0.75rem 0 0.6rem;
}

.training-separator-line {
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.12);
}

.training-separator-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.65);
    flex-shrink: 0;
}

.training-task-list > .training-separator-item {
    list-style: none;
    padding: 0;
    margin: 0;
    border: none;
    background: transparent;
    min-height: 0;
}

.training-separator-item .training-separator {
    margin-top: 0.6rem;
    margin-bottom: 0.5rem;
}

/* Assault block (inside li.is-assault-orders) */
.assault-orders-block {
    padding: 0 0.85rem 1rem;
}

.assault-orders-header {
    margin-bottom: 0.75rem;
}

.assault-orders-title {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.95);
    margin: 0 0 0.25rem;
}

.assault-orders-sub {
    font-size: 13px;
    line-height: 1.35;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

.assault-tiles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    margin-bottom: 0.6rem;
}

.assault-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    padding: 0.45rem 0.4rem;
    border-radius: 0.4rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.25);
    cursor: url('../img/kunai-cursor-64.png') 6 5, pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
    position: relative;
    overflow: hidden;
}

.assault-tile-kanji {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    font-weight: 600;
    font-family: "Noto Serif JP", serif;
    color: rgba(255, 255, 255, 0.12);
    line-height: 1;
    pointer-events: none;
}

.assault-tile.executed .assault-tile-kanji {
    color: rgba(0, 0, 0, 0.12);
}

.assault-tile-name,
.assault-tile-damage {
    position: relative;
    z-index: 1;
}

.assault-tile:hover:not(.executed) {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.06);
    cursor: url('../img/kunai-cursor-64-hover.png') 6 5, pointer;
}

.assault-tile.executed {
    cursor: default;
}

.assault-tile.executed[data-category-id="fitness"] {
    border-color: rgba(234, 88, 12, 0.9);
    background: radial-gradient(circle at 30% 0%, rgba(255, 237, 213, 0.95), rgba(234, 88, 12, 0.9));
    box-shadow: 0 0 12px rgba(234, 88, 12, 0.4);
}

.assault-tile.executed[data-category-id="reading"] {
    border-color: rgba(147, 51, 234, 0.9);
    background: radial-gradient(circle at 30% 0%, rgba(233, 213, 255, 0.95), rgba(147, 51, 234, 0.9));
    box-shadow: 0 0 12px rgba(147, 51, 234, 0.4);
}

.assault-tile.executed[data-category-id="innerdojo"] {
    border-color: rgba(74, 85, 104, 0.9);
    background: radial-gradient(circle at 30% 0%, rgba(203, 213, 225, 0.95), rgba(74, 85, 104, 0.9));
    box-shadow: 0 0 12px rgba(74, 85, 104, 0.4);
}

.assault-tile.executed[data-category-id="extras"] {
    border-color: rgba(16, 185, 129, 0.9);
    background: radial-gradient(circle at 30% 0%, rgba(204, 251, 241, 0.95), rgba(16, 185, 129, 0.9));
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.4);
}

.assault-tile-checkbox {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.assault-tile-icon {
    font-size: 1.1rem;
    line-height: 1;
}

.assault-tile-name {
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.75);
    text-align: center;
    line-height: 1.2;
}

.assault-tile.executed .assault-tile-name {
    color: #fff;
    font-weight: 600;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.85);
}

.assault-tile-damage {
    font-size: 13px;
    font-weight: 600;
}

.assault-tile.executed[data-category-id="fitness"] .assault-tile-damage {
    color: #ea580c;
}

.assault-tile.executed[data-category-id="reading"] .assault-tile-damage {
    color: #9333ea;
}

.assault-tile.executed[data-category-id="innerdojo"] .assault-tile-damage {
    color: #4A5568;
}

.assault-tile.executed[data-category-id="extras"] .assault-tile-damage {
    color: #10b981;
}

.assault-orders-commit-row {
    margin-bottom: 0.5rem;
}

.assault-orders-note {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.75);
}

.assault-attack-log {
    margin-top: 0.5rem;
    padding-left: 0.6rem;
    border-left: 2px solid rgba(212, 184, 134, 0.35);
}

.assault-attack-log p {
    font-size: 13px;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.88);
    margin: 0 0 0.35rem;
}

.assault-attack-log .assault-log-count {
    color: var(--accent-red, #c75c5c);
    font-weight: 600;
}

.assault-attack-log p:last-child {
    margin-bottom: 0;
}

.assault-dug-in {
    font-size: 13px;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.85);
    margin-top: 0.5rem;
    padding: 0.4rem 0.5rem;
    background: rgba(80, 60, 40, 0.25);
    border-radius: 0.35rem;
}

.assault-counsel-link {
    display: block;
    margin-top: 0.75rem;
    margin-bottom: 0.5rem;
    text-align: center;
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.75rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(248, 231, 185, 0.9);
    text-decoration: none;
    cursor: url('../img/hand-pointing-cursor.png') 6 5, pointer;
    transition: color 0.18s ease, text-decoration 0.18s ease;
}

.assault-counsel-link:hover {
    color: rgba(248, 231, 185, 1);
    text-decoration: underline;
}

.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: rgba(212, 184, 134, 0.9);
    background: radial-gradient(circle at 30% 0%, rgba(255, 242, 220, 0.95), rgba(212, 184, 134, 0.9));
    box-shadow: 0 0 12px rgba(242, 215, 160, 0.5);
}

.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: 1.75rem;
    height: 1.75rem;
    min-width: 1.75rem;
    min-height: 1.75rem;
    border-radius: 0.25rem;
    border: 2px 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: rgba(212, 184, 134, 0.9);
    background: radial-gradient(circle at 30% 0%, rgba(255, 242, 220, 0.95), rgba(212, 184, 134, 0.9));
    box-shadow: 0 0 12px rgba(242, 215, 160, 0.5);
}

.training-task-checkbox:checked::after {
    content: attr(data-discipline-kanji);
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 600;
    color: rgba(4, 5, 9, 0.95);
    font-family: "Noto Serif JP", serif;
}

.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 mockup layout - unwrapped, direct panel content */
.training-toolbelt-panel .war-echo-section {
    margin-bottom: 0;
    padding: 0.75rem 0 0;
    cursor: url('../img/kunai-cursor-64.png') 6 5, auto;
}

.training-toolbelt-panel .war-echo-section button,
.training-toolbelt-panel .war-echo-section .war-echo-progress-bar,
.training-toolbelt-panel .war-echo-section .war-echo-volume-slider {
    cursor: url('../img/kunai-cursor-64.png') 6 5, pointer;
}

.training-toolbelt-panel .war-echo-section button:hover,
.training-toolbelt-panel .war-echo-section .war-echo-progress-bar:hover,
.training-toolbelt-panel .war-echo-section .war-echo-volume-slider:hover {
    cursor: url('../img/kunai-cursor-64-hover.png') 6 5, pointer;
}

.war-echo-label-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.war-echo-label-icon {
    display: flex;
    align-items: center;
    color: rgba(212, 184, 134, 0.9);
}

.war-echo-label-icon .panel-icon {
    color: rgba(212, 184, 134, 0.9);
}

.war-echo-label-icon .panel-icon svg {
    stroke: currentColor;
}

.war-echo-label-text {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.75rem;
    letter-spacing: 0.18em;
    color: rgba(212, 184, 134, 0.9);
}

.war-echo-separator-inline {
    flex: 1;
    border-top: 1px solid rgba(212, 178, 111, 0.2);
    margin-left: 0.25rem;
}

.war-echo-visualizer-wrap {
    position: relative;
    width: 100%;
    margin-bottom: 0.9rem;
    border-radius: 0.4rem;
    overflow: hidden;
    background: rgba(8, 10, 16, 0.8);
    border: 1px solid rgba(212, 178, 111, 0.12);
}

.war-echo-visualizer {
    display: block;
    width: 100%;
    height: 120px;
    max-height: 140px;
}

.war-echo-visualizer-track-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.6rem 0.75rem 0.5rem;
    background: linear-gradient(180deg, transparent 0%, rgba(8, 10, 16, 0.85) 30%);
    pointer-events: none;
}

.war-echo-track-info {
    margin-bottom: 0.6rem;
}

.war-echo-playlist-name {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    color: rgba(163, 167, 194, 0.75);
    margin-bottom: 0.2rem;
}

.war-echo-track-title {
    font-family: Cinzel, "Noto Serif JP", Georgia, serif;
    font-size: 1rem;
    font-weight: 700;
    color: rgba(232, 201, 135, 0.95);
    margin: 0;
    white-space: normal;
    word-break: break-word;
}

.war-echo-visualizer-track-overlay .war-echo-playlist-name {
    font-size: 0.65rem;
    letter-spacing: 0.14em;
    color: rgba(212, 184, 134, 0.8);
}

.war-echo-progress-row {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    margin-bottom: 0.7rem;
}

.war-echo-progress-row .war-echo-current-time,
.war-echo-progress-row .war-echo-duration {
    font-size: 0.7rem;
    color: rgba(163, 167, 194, 0.8);
    font-family: 'Share Tech Mono', monospace;
    min-width: 2.2rem;
}

.war-echo-progress-row .war-echo-current-time {
    text-align: right;
}

.war-echo-progress-row .war-echo-progress-bar {
    flex: 1;
    min-width: 0;
}

.war-echo-controls-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    margin-bottom: 0.75rem;
}

.war-echo-controls-row .war-echo-btn:not(.war-echo-play-btn-main) {
    min-width: 2rem;
    min-height: 2rem;
    padding: 0.35rem 0.5rem;
}

.war-echo-controls-row .war-echo-btn:not(.war-echo-play-btn-main) .war-echo-icon {
    width: 12px;
    height: 12px;
}

.war-echo-controls-row .war-echo-shuffle-btn {
    margin-right: 0.6rem;
}

.war-echo-controls-row .war-echo-prev-btn {
    margin-right: 0.5rem;
}

.war-echo-controls-row .war-echo-next-btn {
    margin-left: 0.5rem;
}

.war-echo-controls-row .war-echo-repeat-btn {
    margin-left: 0.6rem;
}

.war-echo-btn.war-echo-play-btn-main {
    min-width: 3rem;
    min-height: 3rem;
    clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
    box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.1), 0 2px 6px rgba(0, 0, 0, 0.35);
}

.war-echo-btn.war-echo-play-btn-main .war-echo-icon {
    width: 14px;
    height: 14px;
}

.war-echo-btn[data-active] {
    color: rgba(232, 201, 135, 1);
    border-color: rgba(232, 201, 135, 0.6);
}

.war-echo-volume-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.war-echo-volume-row .war-echo-volume-icon {
    font-size: 0.85rem;
}

.war-echo-volume-row .war-echo-volume-slider {
    flex: 1;
    min-width: 0;
}

.war-echo-volume-row .war-echo-volume-value {
    font-size: 0.75rem;
    color: rgba(163, 167, 194, 0.8);
    min-width: 2.5rem;
}

.war-echo-card-standalone {
    position: relative;
    background: radial-gradient(circle at top, #181a24, #090a0f);
    border: 1px solid var(--panel-border);
    box-shadow: var(--panel-shadow);
    cursor: url('../img/kunai-cursor-64.png') 6 5, auto;
    transition: all 0.2s ease;
}

.war-echo-card-standalone:hover {
    border-color: var(--panel-border);
    background: radial-gradient(circle at top, #181a24, #090a0f);
    box-shadow: var(--panel-shadow);
}

.war-echo-minimal {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.war-echo-minimal.panel-titlebar {
    padding: 0.6rem 0.85rem;
    margin-bottom: 0;
}

.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;
    align-self: center;
    line-height: 1;
    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-icon {
    display: block;
    flex-shrink: 0;
}

.war-echo-minimal-title {
    font-size: 0.85rem;
    color: #d4b886;
    font-weight: 600;
    letter-spacing: 0.14em;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.war-echo-toggle {
    font-size: 0.8rem;
    line-height: 1;
    color: rgba(242, 215, 160, 0.7);
    transition: transform 0.3s ease, color 0.2s ease;
    display: inline-block;
    flex-shrink: 0;
    margin-left: auto;
}

/* Collapsed: arrow points right (like Interval Timer) */
.war-echo-card-standalone[data-war-echo-expanded="false"] .war-echo-toggle {
    transform: rotate(-90deg);
}

/* Expanded: arrow points down */
.war-echo-card-standalone[data-war-echo-expanded="true"] .war-echo-toggle {
    transform: rotate(0);
    color: rgba(242, 215, 160, 0.7);
}

.war-echo-expanded {
    padding: 1rem 1.25rem;
    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-error {
    color: #fca5a5;
    font-size: 0.85rem;
    margin-top: 0.5rem;
    padding: 0.5rem;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 4px;
}

.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;
}

/* Field Equipment modal */
.field-equipment-modal-dialog {
    width: min(480px, 100%);
}

.siege-finish-early-modal-dialog {
    width: min(500px, 100%);
}

.siege-finish-early-copy {
    margin: 0;
    font-size: 0.96rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.82);
}

.siege-finish-early-copy strong {
    color: #f2d7a0;
    font-weight: 700;
}

.field-equipment-hint {
    margin: 0 0 1rem;
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.6);
}

.field-equipment-section {
    margin-bottom: 1.25rem;
}

.field-equipment-section:last-child {
    margin-bottom: 0;
}

.field-equipment-section-title {
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(212, 184, 134, 0.8);
    margin: 0 0 0.65rem;
}

.field-equipment-slots-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.field-equipment-slot {
    width: 100%;
    aspect-ratio: 1;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1a1a24;
    border: 1px solid rgba(200, 168, 50, 0.15);
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.4);
    clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 6px 100%, 0 calc(100% - 6px));
    cursor: url('../img/hand-pointing-cursor.png') 6 5, pointer !important;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.field-equipment-slot:hover {
    border-color: var(--gold-dim);
}

.field-equipment-slot.is-selected {
    border-color: var(--gold);
    background: rgba(232, 201, 135, 0.12);
}

.field-equipment-slot-icon {
    width: 28px;
    height: 28px;
    object-fit: contain;
    opacity: 0.85;
}

.field-equipment-slot.is-selected .field-equipment-slot-icon {
    opacity: 1;
}

.field-equipment-tools-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.field-equipment-tool-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.8rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(200, 168, 50, 0.2);
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.85rem;
    cursor: url('../img/hand-pointing-cursor.png') 6 5, pointer !important;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.field-equipment-tool-chip:hover {
    border-color: var(--gold-dim);
    background: rgba(255, 255, 255, 0.08);
}

.field-equipment-tool-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
    opacity: 0.8;
}

.training-toolbelt-tab--empty {
    opacity: 0.5;
    cursor: default !important;
}

.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);
}

/* Panel icons - thin stroke, gold tone */
.panel-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.4rem;
    color: rgba(212, 184, 134, 0.55);
    vertical-align: middle;
}

.panel-icon svg {
    display: block;
}

/* Shared panel titlebar - matches Operation look */
.panel-titlebar {
    position: relative;
    margin-bottom: 1rem;
    padding: 0.6rem 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));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 12px 30px rgba(0, 0, 0, 0.45);
}

.panel-titlebar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    border-radius: 0.6rem 0.6rem 0 0;
    background: linear-gradient(90deg, transparent, rgba(212, 184, 134, 0.25), transparent);
}

/* Interval Training Timer */
.interval-section {
    margin-bottom: 1.75rem;
}

.interval-card {
    position: relative;
    background: radial-gradient(circle at top, #181a24, #090a0f);
    border: 1px solid var(--panel-border);
    box-shadow: var(--panel-shadow);
    transition: box-shadow 0.2s ease;
}

.interval-card:hover {
    box-shadow: var(--panel-shadow);
}

.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;
    margin-bottom: 0;
    transition: opacity 0.2s ease;
}

.interval-header-collapsible.panel-titlebar {
    padding: 0.6rem 0.85rem;
    margin-bottom: 1rem;
}

.interval-header-collapsible:hover {
    opacity: 0.85;
}

.interval-title-container {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    flex: 1;
}

.interval-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: #d4b886;
    margin: 0;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.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: 0.9rem;
}

.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-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    margin-bottom: 0.5rem;
}

.interval-status {
    font-size: 0.75rem;
    font-style: italic;
    color: rgba(242, 215, 160, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.interval-status-sep {
    color: rgba(242, 215, 160, 0.5);
    font-size: 0.75rem;
}

.interval-rounds {
    font-size: 0.75rem;
    font-style: italic;
    color: rgba(242, 215, 160, 0.7);
    letter-spacing: 0.05em;
}

.interval-controls {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.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: 10px 24px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border: none;
    clip-path: polygon(0 0, 100% 0, 92% 100%, 0 100%);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35), 0 0 6px rgba(242, 215, 160, 0.08);
    transition: 0.2s ease;
}

.interval-reset-btn {
    background: #1a1c28;
    border: 1px solid rgba(212, 178, 111, 0.4);
    color: #d4b26f;
    padding: 10px 20px;
    border-radius: 0.4rem;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    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, 0.7);
    color: #f0d9a0;
    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 1px 4px rgba(0, 0, 0, 0.4), 0 0 4px rgba(242, 215, 160, 0.06);
}

.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 {
    position: relative;
    background: radial-gradient(circle at top, #181a24, #090a0f);
    border: 1px solid var(--panel-border);
    box-shadow: var(--panel-shadow);
    transition: box-shadow 0.2s ease;
}

.rest-card:hover {
    box-shadow: var(--panel-shadow);
}

.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;
    margin-bottom: 0;
    transition: opacity 0.2s ease;
}

.rest-header-collapsible.panel-titlebar {
    padding: 0.6rem 0.85rem;
    margin-bottom: 1rem;
}

.rest-header-collapsible:hover {
    opacity: 0.85;
}

.rest-title-container {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    flex: 1;
}

.rest-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: #d4b886;
    margin: 0;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.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;
}

/* 30-Day Trials */
.trials-section {
    margin-bottom: 1.75rem;
}

.trials-card.card {
    background: radial-gradient(circle at top, #181a24, #090a0f);
    border: 1px solid var(--panel-border);
    box-shadow: var(--panel-shadow);
}

.trials-titlebar {
    position: relative;
    margin-bottom: 1.25rem;
    padding: 0.6rem 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;
    flex-direction: column;
    gap: 0.5rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 12px 30px rgba(0, 0, 0, 0.45);
}

.trials-titlebar-collapsible {
    cursor: url('../img/hand-pointing-cursor.png') 6 5, pointer !important;
    transition: opacity 0.2s ease;
}

.trials-titlebar-collapsible:hover {
    opacity: 0.85;
}

.trials-titlebar-collapsible.collapsed .trials-toggle {
    transform: rotate(-90deg);
}

.trials-titlebar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    border-radius: 0.6rem 0.6rem 0 0;
    background: linear-gradient(90deg, transparent, rgba(212, 184, 134, 0.25), transparent);
}

.trials-titlebar-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.trials-titlebar-progress {
    height: 3px;
    background: rgba(0, 0, 0, 0.35);
    border-radius: 2px;
    overflow: hidden;
}

.trials-titlebar-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, rgba(212, 184, 134, 0.6), rgba(242, 215, 160, 0.5));
    border-radius: 2px;
    transition: width 0.3s ease;
}

.trials-titlebar-sep {
    font-size: 0.65rem;
    color: rgba(140, 145, 155, 0.5);
}

.trials-titlebar-text {
    font-size: 0.85rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: 600;
    color: #d4b886;
}

.trials-titlebar-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.trials-withdraw-btn {
    font-size: 0.7rem;
    color: rgba(140, 145, 155, 0.7);
    background: none;
    border: none;
    cursor: url('../img/hand-pointing-cursor.png') 6 5, pointer;
    padding: 0;
    text-decoration: none;
    transition: color 0.2s ease;
}

.trials-withdraw-btn:hover {
    color: #8b2635;
}

.trials-titlebar-meta {
    font-size: 0.75rem;
    color: rgba(212, 184, 134, 0.7);
}

.trials-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 0.75rem 0.85rem;
    margin-bottom: 0;
}

.trials-header-main {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex: 1;
}

.trials-objective {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.trials-objective-label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(212, 184, 134, 0.85);
}

.trials-objective-text {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.88);
}

.trials-header-row {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.trials-header-actions {
    display: flex;
    gap: 0.5rem;
}

.trials-header-collapsible:not(.collapsed) .trials-header-actions {
    display: none;
}

.trials-header-collapsible:not(.collapsed) .trials-objective {
    display: none;
}

.trials-toggle {
    font-size: 0.8rem;
    line-height: 1;
    color: rgba(242, 215, 160, 0.7);
    transition: transform 0.2s ease;
    user-select: none;
    flex-shrink: 0;
}

.trials-quick-complete-btn,
.trials-view-campaign-btn {
    padding: 0.4rem 0.75rem;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 0.4rem;
    cursor: url('../img/hand-pointing-cursor.png') 6 5, pointer;
    transition: opacity 0.2s, background 0.2s;
    color: #fff;
}

.trials-quick-complete-btn {
    background: transparent;
    border: 1px solid rgba(212, 184, 134, 0.65);
    color: #fff;
}

.trials-quick-complete-btn:hover:not(:disabled) {
    background: rgba(212, 184, 134, 0.18);
    box-shadow: 0 0 12px rgba(212, 184, 134, 0.25);
}

.trials-quick-complete-btn:focus-visible {
    outline: 2px solid rgba(212, 184, 134, 0.7);
    outline-offset: 2px;
}

.trials-quick-complete-btn:disabled {
    opacity: 0.5;
    border-color: rgba(212, 184, 134, 0.25);
    color: rgba(255, 255, 255, 0.6);
    cursor: default;
}

.trials-quick-complete-btn.trials-done {
    border-color: rgba(52, 168, 130, 0.45);
    color: rgba(52, 168, 130, 0.9);
    animation: trials-done-pop 0.35s ease-out;
}

.trials-quick-complete-btn.trials-done:disabled {
    opacity: 0.92;
}

@keyframes trials-done-pop {
    0% { transform: scale(1); }
    50% { transform: scale(1.04); }
    100% { transform: scale(1); }
}

.trials-view-campaign-btn {
    background: transparent;
    border: 1px solid rgba(160, 165, 175, 0.5);
    color: #fff;
}

.trials-view-campaign-btn:hover {
    background: rgba(160, 165, 175, 0.1);
}

.trials-view-campaign-btn:focus-visible {
    outline: 2px solid rgba(160, 165, 175, 0.6);
    outline-offset: 2px;
}

.trials-withdraw-btn:focus-visible {
    outline: 2px solid rgba(160, 165, 175, 0.6);
    outline-offset: 2px;
}

.trials-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: 3000px;
}

.trials-content.collapsed {
    max-height: 0 !important;
    opacity: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
}

.trials-expanded-content {
    padding: 1.25rem 0.85rem 0;
}

.trials-expanded-grid {
    display: grid;
    grid-template-columns: minmax(200px, 0.32fr) minmax(0, 0.68fr);
    gap: 1.75rem;
    align-items: stretch;
}

@media (max-width: 900px) {
    .trials-expanded-grid {
        display: flex;
        flex-direction: column;
        gap: 1.75rem;
    }

    .trials-detail-content {
        min-height: 240px;
        flex: 0 0 auto;
    }

    .trials-detail-placeholder {
        min-height: 220px;
        flex: 0 0 auto;
        aspect-ratio: 16 / 9;
    }
}

.trials-visual-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-self: start;
}

.trials-visual-frame {
    width: 100%;
    aspect-ratio: 9 / 16;
    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));
}

.trials-visual-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.3s ease;
}

.trials-visual-frame--video-active .trials-visual-image {
    opacity: 0;
}

.trials-visual-video-layer {
    position: absolute;
    inset: 0;
    z-index: 1;
    opacity: 0;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.04), rgba(7, 10, 18, 0.9));
}

.trials-visual-frame--video-active .trials-visual-video-layer {
    opacity: 1;
    pointer-events: auto;
}

.trials-visual-inline-video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    border-radius: 0.4rem;
}

.trials-visual-inline-video:fullscreen,
.trials-visual-inline-video:-webkit-full-screen,
.trials-visual-inline-video:-moz-full-screen,
.trials-visual-inline-video:-ms-fullscreen {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
}

.trials-begin-mission-btn,
.trials-begin-instruction-btn {
    width: 100%;
    min-height: 3rem;
    border-radius: 0.65rem;
    border: 1px solid rgba(212, 184, 134, 0.35);
    background: #0c0f15;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    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;
    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;
}

.trials-begin-mission-btn:hover,
.trials-begin-instruction-btn:hover:not(:disabled) {
    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;
}

.trials-begin-instruction-btn:disabled {
    opacity: 0.8;
    cursor: default !important;
}

.trials-guidance-btn {
    width: 100%;
    border-radius: 0.65rem;
    border: 1px solid rgba(212, 184, 134, 0.4);
    padding: 0.75rem 1.5rem;
    background: #0c0f15;
    color: rgba(212, 184, 134, 0.9);
    font-size: 0.85rem;
    cursor: default;
    opacity: 0.8;
}

.trials-detail-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    position: relative;
}

.trials-active-mission-banner {
    flex: 1;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1.5rem;
    border-radius: 0.6rem;
    background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.03), rgba(6, 9, 18, 0.98));
    border: 1px solid rgba(212, 184, 134, 0.2);
}

.trials-active-mission-label {
    font-size: 1rem;
    font-weight: 700;
    color: #f2d7a0;
}

.trials-active-mission-hint {
    margin: 0.5rem 0 0;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.trials-view-campaign-btn.trials-btn-disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.trials-detail-placeholder {
    flex: 1;
    min-height: 0;
    width: 100%;
    border-radius: 0.6rem;
    overflow: hidden;
    background: rgba(6, 9, 18, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.03);
    position: relative;
}

.trials-placeholder-img-wrap {
    position: absolute;
    inset: 0;
    transform: scale(1.03);
    transition: transform 250ms ease-out;
}

.trials-detail-content.trials-begin-dismissing .trials-placeholder-img-wrap {
    transform: scale(1);
}

.trials-placeholder-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.trials-begin-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(
        ellipse 85% 85% at 50% 50%,
        rgba(0, 0, 0, 0.18) 0%,
        rgba(0, 0, 0, 0.32) 100%
    );
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    transition: opacity 250ms ease-out;
    z-index: 1;
}

.trials-detail-content.trials-begin-dismissing .trials-begin-overlay {
    opacity: 0;
    pointer-events: none;
}

.trials-begin-overlay .trials-begin-mission-btn {
    position: relative;
    width: auto;
    min-height: auto;
    font-family: 'Oswald', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    box-shadow:
        0 0 0 1px rgba(242, 215, 160, 0.2),
        0 0 50px 15px rgba(242, 215, 160, 0.08),
        0 8px 36px rgba(0, 0, 0, 0.45);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(212, 184, 134, 0.5);
    background: rgba(12, 15, 21, 0.9);
    color: #f5d9a0;
    cursor: url('../img/hand-pointing-cursor.png') 6 5, pointer;
    transition: transform 120ms ease;
}

.trials-begin-overlay .trials-begin-mission-btn:hover {
    transform: translateY(-1px);
}

.trials-begin-overlay .trials-begin-mission-btn:active {
    transform: translateY(0) scale(0.98);
}

.trials-begin-overlay .trials-begin-mission-btn:focus-visible {
    outline: 2px solid rgba(212, 184, 134, 0.8);
    outline-offset: 2px;
}

.trials-detail-story {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

.trials-detail-story-hidden {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    overflow-y: auto;
    z-index: 2;
    background: transparent;
    transition: opacity 250ms ease-out;
}

.trials-detail-content.trials-begin-dismissing .trials-detail-placeholder {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.trials-detail-content.trials-begin-dismissing .trials-detail-story-hidden {
    opacity: 1;
    pointer-events: auto;
    position: relative;
}

.trials-story-card {
    padding: 1rem 0.85rem;
    margin-bottom: 24px;
    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);
}

.trials-story-card .trials-day-heading {
    margin: 0 0 16px 0;
}

.trials-story-card .trials-story {
    margin-bottom: 0;
}

@keyframes trials-quote-in {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes trials-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

.trials-quote-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.7rem 0.85rem;
    margin-bottom: 14px;
    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);
}

.trials-quote-avatar {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 0.4rem;
    flex-shrink: 0;
}

.trials-quote-card .trials-companion {
    margin: 0;
}

.trials-companion-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.7rem 0.85rem;
    margin-bottom: 12px;
    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);
}

.trials-companion-avatar {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 0.4rem;
    flex-shrink: 0;
}

.trials-companion-card.trials-companion-absent .trials-companion-avatar {
    filter: grayscale(100%);
    opacity: 0.8;
}

.trials-objective-card {
    padding: 0.85rem 0.85rem;
    margin-bottom: 0;
    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);
    border-left: 3px solid rgba(212, 184, 134, 0.4);
}

.trials-objective-label {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(212, 184, 134, 0.85);
    margin-right: 0.35rem;
}

.trials-objective-text {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.45;
}

/* Quote cards start hidden; animation runs when scrolled into view (see JS Intersection Observer) */
.trials-content:not(.collapsed) .trials-detail-story .trials-quote-card,
.trials-content:not(.collapsed) .trials-detail-story .trials-companion-card,
.trials-content:not(.collapsed) .trials-detail-story .trials-objective-card {
    opacity: 0;
}

@keyframes trials-objective-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

.trials-detail-story.trials-quotes-in-view .trials-objective-card {
    animation: trials-objective-fade-in 0.6s ease-out 4.05s both;
}

.trials-detail-story.trials-quotes-in-view .trials-quote-card.trials-haruka-card {
    animation: trials-quote-in 1.35s ease-out both;
}

.trials-detail-story.trials-quotes-in-view .trials-quote-card:not(.trials-haruka-card) {
    animation: trials-quote-in 1.35s ease-out 1.35s both;
}

.trials-detail-story.trials-quotes-in-view .trials-companion-card {
    animation: trials-quote-in 1.35s ease-out 2.7s both;
}

.trials-day-heading {
    font-size: 1.1rem;
    font-weight: 700;
    color: #f2d7a0;
    margin: 0 0 24px 0;
}

.trials-story {
    max-width: 62ch;
    font-size: 0.9rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 16px;
}

.trials-story p {
    margin: 0 0 1em 0;
}

.trials-story p:last-child {
    margin-bottom: 0;
}

.trials-story .sunrise-manual-link {
    color: rgba(212, 184, 134, 0.95);
    text-decoration: underline;
    text-underline-offset: 0.2em;
    cursor: url('../img/kunai-cursor-64.png') 6 5, pointer;
}
.trials-story .sunrise-manual-link:hover {
    color: #f2d7a0;
}

.trials-companion {
    font-size: 0.9rem;
    font-style: italic;
    color: rgba(242, 215, 160, 0.9);
    margin: 0;
}

.trials-mark-complete {
    padding: 1.25rem 0.85rem;
    margin-bottom: 0;
    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);
    border-left: 3px solid rgba(242, 215, 160, 0.4);
    transition: border-left-color 0.25s ease;
}

.trials-mark-complete.trials-complete-done {
    border-left-color: rgba(212, 184, 134, 0.6);
}

.trials-mark-complete.trials-complete-done .trials-mark-complete-label {
    color: #f5e6b3;
    text-shadow: 0 0 12px rgba(242, 215, 160, 0.4);
}

.trials-mark-complete-main {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    cursor: url('../img/hand-pointing-cursor.png') 6 5, pointer !important;
}

.trials-mark-complete-checkbox {
    appearance: none;
    width: 1.75rem;
    height: 1.75rem;
    min-width: 1.75rem;
    min-height: 1.75rem;
    border-radius: 0.25rem;
    border: 2px solid rgba(212, 184, 134, 0.5);
    background: rgba(0, 0, 0, 0.3);
    flex-shrink: 0;
    margin-top: 0.1rem;
    cursor: url('../img/hand-pointing-cursor.png') 6 5, pointer;
    position: relative;
    transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.trials-mark-complete-checkbox:hover {
    border-color: rgba(242, 215, 160, 0.7);
    box-shadow: 0 0 12px rgba(242, 215, 160, 0.3);
}

.trials-mark-complete-checkbox:checked {
    border-color: rgba(212, 184, 134, 0.9);
    background: radial-gradient(circle at 30% 0%, rgba(255, 242, 220, 0.95), rgba(212, 184, 134, 0.9));
    box-shadow: 0 0 12px rgba(242, 215, 160, 0.5);
}

.trials-mark-complete-checkbox:checked::after {
    content: attr(data-discipline-kanji);
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 600;
    color: rgba(4, 5, 9, 0.95);
    font-family: "Noto Serif JP", serif;
}

.trials-mark-complete-label-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.18rem;
}

.trials-mark-complete-label {
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #f2d7a0;
}

.trials-mark-complete-line2 {
    display: flex;
    align-items: baseline;
    gap: 0.35rem;
}

.trials-mark-complete-instruction {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: rgba(163, 172, 182, 0.9);
}

.trials-mark-complete-sep {
    font-size: 0.75rem;
    color: rgba(163, 172, 182, 0.7);
}

.trials-mark-complete-subtitle {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: rgba(255, 255, 255, 0.55);
}

@keyframes trials-check-settle {
    0% { transform: scale(1); }
    50% { transform: scale(1.08); }
    100% { transform: scale(1); }
}

.trials-mark-complete-checkbox.trials-check-settle {
    animation: trials-check-settle 0.2s ease-out both;
}

@keyframes trials-gold-pulse {
    0% { box-shadow: 0 0 12px rgba(242, 215, 160, 0.5); }
    50% { box-shadow: 0 0 24px rgba(242, 215, 160, 0.7), 0 0 36px rgba(212, 184, 134, 0.4); }
    100% { box-shadow: 0 0 12px rgba(242, 215, 160, 0.35); }
}

.trials-mark-complete-checkbox.trials-gold-pulse {
    animation: trials-gold-pulse 0.6s ease-out both;
}

/* Mission Complete Actions */
.trials-mission-complete-actions {
    padding: 1.25rem 0.85rem;
    margin-top: 0.5rem;
    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);
    border-left: 3px solid rgba(242, 215, 160, 0.4);
}

.trials-mission-complete-message {
    font-size: 1rem;
    font-weight: 500;
    color: #f2d7a0;
    margin: 0 0 0.5rem 0;
}

.trials-mission-complete-prompt {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0 0 1rem 0;
}

.trials-mission-complete-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.trials-mission-complete-btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: #f2d7a0;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(242, 215, 160, 0.5);
    border-radius: 0.4rem;
    cursor: url('../img/hand-pointing-cursor.png') 6 5, pointer;
    transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.trials-mission-complete-btn:hover {
    background: rgba(242, 215, 160, 0.15);
    border-color: rgba(242, 215, 160, 0.7);
    box-shadow: 0 0 12px rgba(242, 215, 160, 0.3);
}

/* Seal Medallion Button */
.seal-medallion-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    background: none;
    border: none;
    cursor: url('../img/hand-pointing-cursor.png') 6 5, pointer;
    padding: 0;
}

.seal-medallion-btn:disabled,
.seal-medallion-btn.seal-completed {
    cursor: default;
}

.seal-medallion-rim {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    border: 3px solid #8b7355;
    box-shadow: 0 0 0 1px #d4b86e, inset 0 0 12px rgba(0, 0, 0, 0.4);
    background: rgba(20, 18, 15, 0.9);
    overflow: hidden;
    position: relative;
}

.seal-medallion-inner {
    position: absolute;
    inset: 4px;
    border-radius: 50%;
    overflow: hidden;
    transition: transform 0.25s ease;
}

.seal-medallion-water {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 65%;
    background: linear-gradient(to top, #4a6a7a, #5a7a8a);
    border-radius: 0 0 50% 50% / 0 0 100% 100%;
    animation: seal-water-wave 3s ease-in-out infinite;
}

@keyframes seal-water-wave {
    0%, 100% { transform: scaleY(1) scaleX(1.02); }
    50% { transform: scaleY(1.02) scaleX(0.98); }
}

.seal-medallion-gold {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 0;
    background: linear-gradient(to top, #8b6914, #c9a227, #e8c967);
    border-radius: 0 0 50% 50% / 0 0 100% 100%;
    transition: height 0.5s ease;
}

.seal-medallion-kanji {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: rgba(139, 105, 20, 0.95);
    opacity: 0;
    transition: opacity 0.4s ease 0.3s;
}

/* Seal animation states */
.seal-medallion-inner.seal-pulse {
    animation: seal-pulse 0.4s ease;
}

@keyframes seal-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.04); }
    100% { transform: scale(1); }
}

.seal-medallion-water.seal-draining {
    animation: seal-drain 0.5s ease forwards;
}

.seal-medallion-water.seal-drained {
    height: 0 !important;
}

@keyframes seal-drain {
    to { height: 0; }
}

.seal-medallion-gold.seal-filling {
    transition: height 0.5s ease 0.2s;
}

.seal-medallion-gold.seal-filled {
    height: 100% !important;
}

.seal-medallion-kanji.seal-visible {
    opacity: 1;
}

.seal-medallion-btn.seal-completed .seal-medallion-water {
    height: 0;
    animation: none;
}

.seal-medallion-btn.seal-completed .seal-medallion-gold {
    height: 100%;
}

.seal-medallion-btn.seal-completed .seal-medallion-kanji {
    opacity: 1;
}

.seal-medallion-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #d4b86e;
}

.trials-stats {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
}

.trials-stat-block {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.trials-stat-block .trials-best,
.trials-stat-block .trials-completions-count {
    display: block;
}

.rest-container {
    padding: 1rem;
}

.rest-display {
    text-align: center;
    margin-bottom: 0.9rem;
}

.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.75rem;
    font-style: italic;
    color: rgba(242, 215, 160, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}

.rest-controls {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.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: 10px 24px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border: none;
    clip-path: polygon(0 0, 100% 0, 92% 100%, 0 100%);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35), 0 0 6px rgba(242, 215, 160, 0.08);
    transition: 0.2s ease;
}

.rest-reset-btn {
    background: #1a1c28;
    border: 1px solid rgba(212, 178, 111, 0.4);
    color: #d4b26f;
    padding: 10px 20px;
    border-radius: 0.4rem;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    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, 0.7);
    color: #f0d9a0;
    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 1px 4px rgba(0, 0, 0, 0.4), 0 0 4px rgba(242, 215, 160, 0.06);
}

.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 {
    position: relative;
    background: radial-gradient(circle at top, #181a24, #090a0f);
    border: 1px solid var(--panel-border);
    box-shadow: var(--panel-shadow);
    transition: box-shadow 0.2s ease;
}

.meditation-card:hover {
    box-shadow: var(--panel-shadow);
}

.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;
    margin-bottom: 0;
    transition: opacity 0.2s ease;
}

.meditation-header-collapsible.panel-titlebar {
    padding: 0.6rem 0.85rem;
    margin-bottom: 1rem;
}

.meditation-header-collapsible:hover {
    opacity: 0.85;
}

.meditation-title-container {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    flex: 1;
}

.meditation-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: #d4b886;
    margin: 0;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.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: 0.9rem;
}

.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.75rem;
    font-style: italic;
    color: rgba(242, 215, 160, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}

.meditation-controls {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.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: 10px 24px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border: none;
    clip-path: polygon(0 0, 100% 0, 92% 100%, 0 100%);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35), 0 0 6px rgba(242, 215, 160, 0.08);
    transition: 0.2s ease;
}

.meditation-reset-btn {
    background: #1a1c28;
    border: 1px solid rgba(212, 178, 111, 0.4);
    color: #d4b26f;
    padding: 10px 20px;
    border-radius: 0.4rem;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    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, 0.7);
    color: #f0d9a0;
    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 1px 4px rgba(0, 0, 0, 0.4), 0 0 4px rgba(242, 215, 160, 0.06);
}

.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 {
    position: relative;
    background: radial-gradient(circle at top, #181a24, #090a0f);
    border: 1px solid var(--panel-border);
    box-shadow: var(--panel-shadow);
    transition: box-shadow 0.2s ease;
}

.pomodoro-card:hover {
    box-shadow: var(--panel-shadow);
}

.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;
    margin-bottom: 0;
    transition: opacity 0.2s ease;
}

.pomodoro-header-collapsible.panel-titlebar {
    padding: 0.6rem 0.85rem;
    margin-bottom: 1rem;
}

.pomodoro-header-collapsible:hover {
    opacity: 0.85;
}

.pomodoro-title-container {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    flex: 1;
}

.pomodoro-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: #d4b886;
    margin: 0;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.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: 0.9rem;
}

.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-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    margin-bottom: 0.5rem;
}

.pomodoro-status {
    font-size: 0.75rem;
    font-style: italic;
    color: rgba(242, 215, 160, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.pomodoro-status-sep {
    color: rgba(242, 215, 160, 0.5);
    font-size: 0.75rem;
}

.pomodoro-session-counter {
    font-size: 0.75rem;
    font-style: italic;
    color: rgba(242, 215, 160, 0.7);
    letter-spacing: 0.05em;
}

.pomodoro-controls {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.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: 10px 24px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border: none;
    clip-path: polygon(0 0, 100% 0, 92% 100%, 0 100%);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35), 0 0 6px rgba(242, 215, 160, 0.08);
    transition: 0.2s ease;
}

.pomodoro-reset-btn {
    background: #1a1c28;
    border: 1px solid rgba(212, 178, 111, 0.4);
    color: #d4b26f;
    padding: 10px 20px;
    border-radius: 0.4rem;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    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, 0.7);
    color: #f0d9a0;
    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 1px 4px rgba(0, 0, 0, 0.4), 0 0 4px rgba(242, 215, 160, 0.06);
}

.pomodoro-reset-btn:active {
    transform: scale(0.97);
}

.timer-controls-separator {
    border: none;
    border-top: 1px solid rgba(242, 215, 160, 0.18);
    margin: 0.75rem 0;
}

.timer-settings-toggle {
    position: relative;
    margin-bottom: 0.75rem;
}

.timer-settings-toggle-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.timer-settings-toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.4rem 0;
    cursor: url('../img/hand-pointing-cursor.png') 6 5, pointer !important;
    color: rgba(242, 215, 160, 0.85);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.timer-settings-toggle-row:hover {
    color: rgba(242, 215, 160, 0.95);
    opacity: 0.9;
}

.timer-settings-toggle-text {
    flex: 1;
}

.timer-settings-toggle-chevron {
    font-size: 0.6rem;
    opacity: 0.8;
    transition: transform 0.2s ease;
}

.timer-settings-toggle:has(.timer-settings-toggle-input:checked) .timer-settings-toggle-chevron {
    transform: rotate(180deg);
}

.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 top, #181a24, #090a0f);
    border: 1px solid var(--panel-border);
}

.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-toolbelt-column {
        order: 3;
    }

    .coach-guidance-label-desktop {
        display: none;
    }

    .coach-guidance-label-mobile {
        display: inline;
    }

    .custom-rituals-header-row {
        flex-direction: column;
        gap: 0.8rem;
    }

    .custom-rituals-header-right {
        width: 100%;
        align-items: flex-start;
    }

    .custom-rituals-header-actions {
        width: 100%;
        flex-wrap: wrap;
    }

    .custom-rituals-list {
        grid-template-columns: minmax(0, 1fr);
    }

    .custom-rituals-list .training-task:nth-child(odd) {
        border-right: none;
    }

    .custom-rituals-list .training-task:nth-child(-n + 2) {
        border-top: 1px solid rgba(255, 255, 255, 0.06);
    }

    .custom-rituals-list .training-task:first-child {
        border-top: none;
    }

    .training-week-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

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

    .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;
    opacity: 1;
    transition: opacity 0.8s ease;
    margin-bottom: 6px;
    padding: 10px 14px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-left: 2px solid var(--report-color, #5a5848);
    background: rgba(90, 88, 72, 0.06);
}

.battle-event p {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.4;
    color: rgba(255, 255, 255, 1);
    opacity: 0.9;
}

.battle-event.fading-out {
    opacity: 0;
    transition: opacity 0.8s ease;
}

.battle-event.fading-in {
    opacity: 0;
    animation: reportDissolve 1.2s ease forwards;
}

@keyframes reportDissolve {
    0%   { opacity: 0; background: rgba(200, 168, 50, 0.08); }
    15%  { opacity: 0.6; background: rgba(200, 168, 50, 0.04); }
    100% { opacity: 1; background: inherit; }
}

/* 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 */

/* Auth Modal Styles */
.auth-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.auth-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
}

.auth-modal-content {
    position: relative;
    max-width: 400px;
    width: 90%;
    background: #1a1a1a;
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    z-index: 1;
    margin: auto;
}

.auth-modal-content h2 {
    margin-top: 0;
    margin-bottom: 1.5rem;
    color: #fff;
    font-family: 'Oswald', sans-serif;
    font-size: 1.5rem;
}

.auth-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-modal-close:hover {
    color: #a3c7ff;
}

.auth-form-group {
    margin-bottom: 1rem;
}

.auth-form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #fff;
    font-size: 0.9rem;
}

.auth-form-group input {
    width: 100%;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    color: #fff;
    font-size: 1rem;
    box-sizing: border-box;
}

.auth-form-group input:focus {
    outline: none;
    border-color: #a3c7ff;
    background: rgba(255, 255, 255, 0.15);
}

.auth-switch {
    text-align: center;
    margin-top: 1rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.auth-switch a {
    color: #a3c7ff;
    text-decoration: none;
}

.auth-switch a:hover {
    text-decoration: underline;
}

.auth-forgot-password {
    text-align: right;
    margin-top: -0.5rem;
    margin-bottom: 1rem;
    font-size: 0.85rem;
}

.auth-forgot-password a {
    color: #a3c7ff;
    text-decoration: none;
}

.auth-forgot-password a:hover {
    text-decoration: underline;
}

.auth-forgot-password-instructions {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.auth-simulation {
    text-align: center;
    margin-top: calc(0.75rem + 4px);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.auth-simulation a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    opacity: 0.8;
}

.auth-simulation a:hover {
    text-decoration: underline;
}

.auth-simulation-note {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    opacity: 0.8;
}

.auth-message {
    padding: 1rem;
    border-radius: 4px;
    margin-top: 1rem;
    font-size: 0.9rem;
}

.auth-message-success {
    background: rgba(76, 175, 80, 0.2);
    color: #4caf50;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.auth-message-error {
    background: rgba(244, 67, 54, 0.2);
    color: #f44336;
    border: 1px solid rgba(244, 67, 54, 0.3);
}

.auth-message-info {
    background: rgba(33, 150, 243, 0.2);
    color: #2196f3;
    border: 1px solid rgba(33, 150, 243, 0.3);
}

/* Recovery prompt modal - calm prompt after password reset */
.recovery-prompt-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.recovery-prompt-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
}

.recovery-prompt-content {
    position: relative;
    max-width: 380px;
    width: 90%;
    background: #1a1a1a;
    padding: 1.75rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.recovery-prompt-message {
    margin: 0 0 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.05rem;
    line-height: 1.5;
}

.recovery-prompt-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.recovery-prompt-actions .btn-primary,
.recovery-prompt-actions .btn-secondary {
    width: 100%;
}

.recovery-btn-recommended {
    font-weight: 600;
}

.recovery-prompt-content #recoverySetPasswordForm {
    margin-top: 0.5rem;
}

.recovery-prompt-content #recoverySetPasswordForm .auth-form-group {
    margin-bottom: 1rem;
}

.auth-button {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    margin-left: 1rem;
}

.auth-button:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Paywall overlay */
.paywall-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.paywall-content {
    background: linear-gradient(180deg, rgba(30, 30, 35, 0.98), rgba(20, 20, 25, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 2rem;
    max-width: 420px;
    text-align: center;
}

.paywall-title {
    font-family: 'Oswald', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #e4c680;
}

.paywall-text {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.paywall-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.paywall-buttons .btn-primary {
    width: 100%;
}

.paywall-simulation {
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

.paywall-simulation a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
}

.paywall-simulation a:hover {
    text-decoration: underline;
}

.paywall-refresh {
    margin-top: 0.75rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

.paywall-refresh a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
}

.paywall-refresh a:hover {
    text-decoration: underline;
}

.paywall-sign-out-wrap {
    margin-top: 1rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

.paywall-sign-out {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: underline;
    cursor: pointer;
    font-size: inherit;
    padding: 0;
    font-family: inherit;
}

.paywall-sign-out:hover {
    color: rgba(255, 255, 255, 0.9);
}

.paywall-error {
    margin-top: 1rem;
    color: #f44336;
    font-size: 0.9rem;
}

/* ─── Custom Operation Wizard ─────────────────────────────────── */

.custom-op-wizard-radios {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-top: 0.75rem;
}

.custom-op-wizard-radio {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.65rem 0.85rem;
    border: 1px solid rgba(212, 184, 134, 0.2);
    border-radius: 0.5rem;
    background: rgba(12, 15, 21, 0.6);
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
    transition: border-color 0.15s, background 0.15s;
    cursor: pointer;
}

.custom-op-wizard-radio:hover {
    border-color: rgba(212, 184, 134, 0.4);
    background: rgba(12, 15, 21, 0.85);
}

.custom-op-wizard-radio input[type="radio"] {
    accent-color: #d4b886;
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
}

.custom-op-wizard-radio input[type="radio"]:checked + span {
    color: #f2d7a0;
}

.custom-op-wizard-textarea {
    width: 100%;
    min-height: 5rem;
    padding: 0.75rem;
    border: 1px solid rgba(212, 184, 134, 0.2);
    border-radius: 0.5rem;
    background: rgba(12, 15, 21, 0.6);
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    font-family: inherit;
    resize: vertical;
}

.custom-op-wizard-textarea:focus {
    outline: none;
    border-color: rgba(212, 184, 134, 0.5);
}

.custom-op-wizard-textarea::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.custom-op-wizard-nav {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
    margin-top: 1.25rem;
}

.custom-op-nav-btn {
    min-width: 5rem;
}

.custom-op-back-btn {
    background: transparent;
    border: 1px solid rgba(212, 184, 134, 0.25);
    color: rgba(255, 255, 255, 0.7);
    border-radius: 0.65rem;
    padding: 0.5rem 1.25rem;
    font-size: 0.85rem;
    font-family: 'Oswald', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    cursor: pointer;
    transition: border-color 0.15s, color 0.15s;
}

.custom-op-back-btn:hover {
    border-color: rgba(212, 184, 134, 0.5);
    color: rgba(255, 255, 255, 0.9);
}

.custom-op-wizard-summary {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-top: 0.75rem;
}

.custom-op-summary-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.85);
}

.custom-op-summary-label {
    color: rgba(212, 184, 134, 0.7);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    font-family: 'Oswald', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.custom-op-confirm-btn {
    min-width: 8rem;
}

#customOperationSection .trials-expanded-grid {
    width: 100%;
}

#customOperationSection .trials-detail-story {
    position: relative;
}

#customOperationSection .war-card.war-activity-card {
    border-radius: 0.9rem;
}

#customOperationSection .trials-visual-card {
    margin-bottom: 1.5rem;
    background: none;
    border-color: transparent;
    padding: 0;
}

#customOperationSection .trials-visual-frame {
    position: relative;
}

#customOperationSection .trials-visual-frame::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(circle at 30% 20%, rgba(255, 180, 90, 0.08), transparent 60%);
    pointer-events: none;
    z-index: 1;
    animation: slowPulse 10s ease-in-out infinite alternate;
}

@keyframes slowPulse {
    from { opacity: 0.6; }
    to { opacity: 1; }
}

#customOperationSection .trials-story {
    max-width: 90ch;
    font-size: 1rem;
    line-height: 1.68;
}

#customOperationSection .trials-day-phase {
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(248, 231, 185, 0.82);
    margin: 0 0 0.35rem 0;
}

#customOperationSection .trials-story-card {
    border-left: 3px solid rgba(212, 184, 134, 0.35);
    background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.05), rgba(6, 9, 18, 0.98));
    margin-bottom: 0;
    padding-bottom: 1.1rem;
}

#customOperationSection .trials-story-card .trials-chapter-title {
    font-family: 'Cinzel', 'Noto Serif JP', serif;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #f2d7a0;
    margin: 0 0 0 0;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

#customOperationSection .trials-story-card .trials-story {
    padding-top: 0.9rem;
}

#customOperationSection .custom-op-active-header {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

#customOperationSection .custom-op-header-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 0.75rem;
}

#customOperationSection .custom-op-header-left {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

#customOperationSection .custom-op-contract-line {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(248, 231, 185, 0.75);
}

#customOperationSection .custom-op-header-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

#customOperationSection .custom-op-planning-header {
    margin-bottom: 0.75rem;
}

#customOperationSection .warroom-mission-mode {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.24rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    background: rgba(11, 14, 24, 0.72);
}

#customOperationSection .warroom-mission-mode-btn {
    border: 1px solid transparent;
    background: transparent;
    color: rgba(255, 255, 255, 0.72);
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.66rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    border-radius: 999px;
    padding: 0.3rem 0.68rem;
    cursor: url('../img/hand-pointing-cursor.png') 6 5, pointer;
    transition: all 0.2s ease;
}

#customOperationSection .warroom-mission-mode-btn:hover {
    color: rgba(255, 255, 255, 0.92);
    border-color: rgba(255, 255, 255, 0.2);
}

#customOperationSection .warroom-mission-mode-btn.is-active {
    color: rgba(247, 230, 186, 0.95);
    border-color: rgba(247, 230, 186, 0.5);
    background: linear-gradient(130deg, rgba(185, 140, 70, 0.26), rgba(136, 100, 42, 0.26));
}

#customOperationSection .custom-op-title {
    font-family: 'Cinzel', 'Noto Serif JP', serif;
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.95);
    margin: 0;
}

#customOperationSection .custom-op-withdraw-btn {
    padding: 0.4rem 0.85rem;
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 0.25rem;
    cursor: url('../img/hand-pointing-cursor.png') 6 5, pointer;
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

#customOperationSection .custom-op-withdraw-btn:hover {
    border-color: rgba(248, 231, 185, 0.6);
    color: rgba(248, 231, 185, 0.95);
    background: rgba(248, 231, 185, 0.08);
}

#customOperationSection .custom-op-active-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
}

#customOperationSection .custom-op-day-label {
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

#customOperationSection .custom-op-day-dots {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.2rem;
}

#customOperationSection .custom-op-day-dot {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background-color: rgba(255, 255, 255, 0.16);
}

#customOperationSection .custom-op-day-dot.is-current {
    background-color: rgba(248, 231, 185, 0.9);
}

#customOperationSection .custom-op-quote-body {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

#customOperationSection .custom-op-quote-name {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(248, 231, 185, 0.9);
}

/* Quote rows: flat layout — avatar, name, line; thin divider between speakers */
#customOperationSection .trials-quote-card,
#customOperationSection .trials-companion-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: none;
    border: none;
    border-radius: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    padding: 0.85rem 0 0.5rem 0;
    margin: 0;
}

#customOperationSection .trials-quote-card.custom-op-quote-row-first,
#customOperationSection .trials-companion-card.custom-op-quote-row-first {
    border-top: none;
    padding-top: 0.5rem;
}

.custom-op-quotes-divider {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin: 1.35rem 0 1.1rem 0;
}

.custom-op-quotes-divider-line {
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.09);
}

.custom-op-quotes-divider-ornament {
    font-size: 0.5rem;
    color: rgba(212, 184, 134, 0.55);
    line-height: 1;
    letter-spacing: 0;
}

#customOperationSection .trials-mark-complete-right {
    margin-top: 0;
    margin-left: 0;
    padding: 1rem 0 0.75rem 0;
    background: none;
    border: none;
    border-radius: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

#customOperationSection .trials-mark-complete-right .trials-mark-complete-main {
    align-items: center;
}

#customOperationSection .trials-mark-complete-label-objective {
    font-style: italic;
    text-transform: none;
}

#customOperationSection .trials-content:not(.collapsed) .trials-detail-story .trials-mark-complete-right {
    opacity: 0;
}

/* Dialogue block: single fade+slide for the whole section (no per-card stagger) */
#customOperationSection .trials-detail-story .custom-op-dialogue-block {
    opacity: 0;
    transform: translateY(12px);
}

#customOperationSection .trials-detail-story.trials-quotes-in-view .custom-op-dialogue-block {
    animation: trials-quote-in 1.35s ease-out both;
}

#customOperationSection .trials-detail-story .trials-quote-card,
#customOperationSection .trials-detail-story .trials-companion-card {
    opacity: 1;
    animation: none;
}

#customOperationSection .trials-detail-story.trials-quotes-in-view .trials-mark-complete-right {
    animation: trials-objective-fade-in 0.5s ease-out 1.5s both;
}

/* ─── Custom Operation Wizard 2-Step Layout ───────────────────── */

.custom-op-section {
    margin-top: 0.9rem;
}

#customOperationSection .custom-op-field-orders-actions {
    margin-top: 1.1rem;
    display: flex;
    justify-content: flex-start;
    gap: 0.65rem;
    flex-wrap: wrap;
}

.custom-op-section-label {
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 0.45rem;
}

.custom-op-section-optional {
    font-size: 0.7rem;
    letter-spacing: 0.05em;
    text-transform: none;
    font-style: italic;
    opacity: 0.75;
}

.custom-op-type-toggle {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
}

.custom-op-type-btn {
    border-radius: 0.6rem;
    border: 1px solid rgba(212, 184, 134, 0.25);
    background: radial-gradient(circle at top left, rgba(232, 211, 151, 0.12), transparent 55%),
                rgba(10, 12, 18, 0.9);
    padding: 0.7rem 0.9rem;
    text-align: left;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    transition: border-color 0.15s ease, background 0.15s ease, transform 0.1s ease;
}

.custom-op-type-title {
    font-family: 'Cinzel', 'Noto Serif JP', serif;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.9);
}

.custom-op-type-sub {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.65rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(248, 231, 185, 0.65);
}

.custom-op-type-btn.is-active {
    border-color: rgba(222, 196, 140, 0.95);
    background: radial-gradient(circle at top left, rgba(248, 231, 185, 0.22), transparent 65%),
                rgba(14, 16, 24, 0.95);
    transform: translateY(-1px);
}

.custom-op-type-btn:hover {
    border-color: rgba(222, 196, 140, 0.7);
}

.custom-op-leader-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.4rem;
}

.custom-op-leader-tile {
    border-radius: 0.6rem;
    border: 1px solid rgba(212, 184, 134, 0.25);
    background: rgba(10, 12, 18, 0.88);
    padding: 0.65rem 0.7rem;
    cursor: pointer;
    text-align: left;
    transition: border-color 0.15s ease, background 0.15s ease, transform 0.1s ease;
}

.custom-op-leader-name {
    font-family: 'Cinzel', 'Noto Serif JP', serif;
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.95);
}

.custom-op-leader-desc {
    margin-top: 0.25rem;
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.6rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(201, 182, 144, 0.8);
    line-height: 1.4;
}

.custom-op-leader-tile.is-active {
    border-color: rgba(222, 196, 140, 0.95);
    background: radial-gradient(circle at top left, rgba(248, 231, 185, 0.18), transparent 65%),
                rgba(16, 18, 26, 0.98);
    transform: translateY(-1px);
}

.custom-op-leader-tile:hover {
    border-color: rgba(222, 196, 140, 0.7);
}

.custom-op-leader-tile-locked {
    cursor: default;
}

.custom-op-duration-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.4rem;
}

.custom-op-duration-tile {
    border-radius: 0.6rem;
    border: 1px solid rgba(212, 184, 134, 0.25);
    background: rgba(10, 12, 18, 0.9);
    padding: 0.55rem 0.3rem 0.6rem 0.3rem;
    cursor: pointer;
    text-align: center;
    transition: border-color 0.15s ease, background 0.15s ease, transform 0.1s ease;
}

.custom-op-duration-days {
    display: block;
    font-family: 'Cinzel', 'Noto Serif JP', serif;
    font-size: 1.1rem;
    color: rgba(243, 223, 179, 0.9);
}

.custom-op-duration-label {
    display: block;
    margin-top: 0.1rem;
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.6rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(199, 182, 148, 0.8);
}

.custom-op-duration-tile.is-active {
    border-color: rgba(222, 196, 140, 0.95);
    background: radial-gradient(circle at top, rgba(248, 231, 185, 0.2), transparent 70%),
                rgba(16, 18, 26, 0.98);
    transform: translateY(-1px);
}

.custom-op-duration-tile:hover {
    border-color: rgba(222, 196, 140, 0.7);
}

.custom-op-duration-tile-locked {
    cursor: default;
}

.custom-op-category-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.45rem;
}

.custom-op-category-tile {
    border-radius: 999px;
    border: 1px solid rgba(212, 184, 134, 0.25);
    background: rgba(10, 12, 18, 0.92);
    padding: 0.4rem 0.6rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    cursor: pointer;
    font-size: 0.7rem;
    white-space: nowrap;
    transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.custom-op-category-dot {
    width: 0.4rem;
    height: 0.4rem;
    border-radius: 999px;
    background: rgba(212, 184, 134, 0.65);
}

.custom-op-category-name {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.65rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(233, 220, 195, 0.85);
}

.custom-op-category-name-mobile {
    display: none;
}

.custom-op-category-tile.is-active {
    border-color: rgba(222, 196, 140, 0.95);
    background: radial-gradient(circle at left, rgba(248, 231, 185, 0.18), transparent 70%),
                rgba(16, 18, 26, 0.98);
}

.custom-op-jade-fixed {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 0.6rem 0.75rem;
    border-radius: 0.6rem;
    border: 1px solid rgba(212, 184, 134, 0.35);
    background: linear-gradient(90deg, rgba(32, 24, 12, 0.85), rgba(10, 10, 14, 0.95));
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.65rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(240, 225, 192, 0.9);
}

.custom-op-jade-fixed strong {
    color: rgba(248, 231, 185, 0.95);
    font-weight: 600;
}

.custom-op-portrait {
    position: relative;
    overflow: hidden;
}

.custom-op-portrait-overlay {
    position: absolute;
    inset: auto 0 0 0;
    padding: 0.8rem 1rem;
    background: linear-gradient(to top, rgba(4, 6, 10, 0.95), transparent 65%);
}

.custom-op-portrait-name {
    font-family: 'Cinzel', 'Noto Serif JP', serif;
    font-size: 0.85rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(248, 231, 185, 0.98);
}

.custom-op-portrait-desc {
    margin-top: 0.15rem;
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.65rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(202, 188, 158, 0.9);
}

@media (max-width: 900px) {
    .trials-expanded-grid .trials-visual-card {
        margin-bottom: 1rem;
    }

    .custom-op-type-toggle {
        grid-template-columns: minmax(0, 1fr);
    }

    .custom-op-category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 540px) {
    .custom-op-leader-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .custom-op-duration-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .custom-op-type-title {
        font-size: 0.78rem;
        letter-spacing: 0.07em;
    }

    .custom-op-type-sub {
        font-size: 0.6rem;
        letter-spacing: 0.14em;
    }

    .custom-op-leader-name {
        font-size: 0.8rem;
    }

    .custom-op-leader-desc {
        font-size: 0.56rem;
        letter-spacing: 0.14em;
    }

    .custom-op-category-name-desktop {
        display: none;
    }

    .custom-op-category-name-mobile {
        display: inline;
    }
}

/* ─── Custom Op: 3-column grid + section nav ────────────────── */
#customOperationSection .custom-op-three-col-grid {
    display: grid;
    grid-template-columns: minmax(190px, 0.27fr) minmax(0, 0.49fr) minmax(190px, 0.24fr);
    gap: 1.75rem;
    align-items: stretch;
}

@media (max-width: 1100px) {
    #customOperationSection .custom-op-three-col-grid {
        grid-template-columns: minmax(190px, 0.32fr) minmax(0, 0.68fr);
        grid-template-rows: auto auto;
    }
    #customOperationSection .custom-op-three-col-grid .custom-op-nav-column {
        grid-column: 1 / -1;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.55rem;
    }
    #customOperationSection .custom-op-three-col-grid .custom-op-nav-column .custom-op-nav-item {
        flex: 1 1 calc(25% - 0.55rem);
        min-width: 120px;
    }
}

@media (max-width: 900px) {
    #customOperationSection .custom-op-three-col-grid {
        display: flex;
        flex-direction: column;
        gap: 1.75rem;
    }
    #customOperationSection .custom-op-three-col-grid .custom-op-nav-column {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.55rem;
    }
    #customOperationSection .custom-op-three-col-grid .custom-op-nav-column .custom-op-nav-item {
        flex: unset;
        min-width: 0;
        height: 88px;
    }
}

.custom-op-nav-column {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.custom-op-nav-item {
    position: relative;
    width: 100%;
    height: 130px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 0.5rem;
    padding: 0;
    cursor: url('../img/hand-pointing-cursor.png') 6 5, pointer;
    text-align: left;
    transition: border-color 0.2s ease, transform 0.15s ease;
    flex-shrink: 0;
}

.custom-op-nav-item:hover:not(.is-locked) {
    border-color: rgba(248, 231, 185, 0.45);
    transform: scale(1.015);
}

.custom-op-nav-item.is-active {
    border-color: rgba(247, 230, 186, 0.65);
    box-shadow: 0 0 0 1px rgba(247, 230, 186, 0.25);
}

.custom-op-nav-item.is-locked {
    opacity: 0.35;
    cursor: not-allowed;
}

.custom-op-nav-item-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    border-radius: 0;
    display: block;
}

.custom-op-nav-item-text {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    padding: 0.5rem 0.6rem 0.45rem;
    background: linear-gradient(to top, rgba(4, 6, 14, 0.92) 0%, rgba(4, 6, 14, 0.65) 70%, transparent 100%);
}

.custom-op-nav-item-title {
    font-family: 'Cinzel', 'Noto Serif JP', serif;
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.96);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}

.custom-op-nav-item-sub {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.55rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(248, 231, 185, 0.75);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
}

/* ─── Custom Op: Team intro video overlay ───────────────────── */
#customOperationSection .custom-op-team-video-layer {
    position: absolute;
    inset: 0;
    z-index: 2;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    background: #000;
    border-radius: inherit;
}

#customOperationSection .custom-op-portrait--video-active .trials-visual-image {
    opacity: 0;
    transition: opacity 0.3s ease;
}

#customOperationSection .custom-op-portrait--video-active .custom-op-team-video-layer {
    opacity: 1;
    pointer-events: auto;
}

.custom-op-team-intro-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ─── Custom Op: Team roster cards ──────────────────────────── */
.custom-op-team-roster {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.custom-op-team-member {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    align-items: flex-start;
}

.custom-op-team-avatar {
    width: 84px;
    height: 116px;
    object-fit: cover;
    object-position: center top;
    border-radius: 0.45rem;
    flex-shrink: 0;
    border: 2px solid transparent;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.custom-op-team-avatar[data-portrait-src] {
    cursor: url('../img/hand-pointing-cursor.png') 6 5, pointer;
}

.custom-op-team-avatar[data-portrait-src]:hover {
    border-color: rgba(248, 231, 185, 0.4);
}

.custom-op-team-avatar[data-portrait-src].is-active {
    border-color: rgba(247, 230, 186, 0.75);
    box-shadow: 0 0 10px rgba(247, 230, 186, 0.18);
}

.custom-op-team-member-body {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    flex: 1;
    min-width: 0;
    padding-top: 0.1rem;
}

.custom-op-team-intro-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.3rem;
    padding: 0.28rem 0.7rem;
    border: 1px solid rgba(248, 231, 185, 0.45);
    border-radius: 0.3rem;
    background: transparent;
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.6rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(248, 231, 185, 0.85);
    cursor: url('../img/hand-pointing-cursor.png') 6 5, pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
    align-self: flex-start;
}

.custom-op-team-intro-btn:hover:not(:disabled):not(.is-coming-soon) {
    background: rgba(248, 231, 185, 0.1);
    border-color: rgba(248, 231, 185, 0.75);
    color: rgba(248, 231, 185, 1);
}

.custom-op-team-intro-btn.is-coming-soon {
    opacity: 0.4;
    cursor: not-allowed;
    border-color: rgba(255, 255, 255, 0.18);
    color: rgba(255, 255, 255, 0.45);
}

.custom-op-team-member-role {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.62rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(248, 231, 185, 0.65);
}

.custom-op-team-member-name {
    font-family: 'Cinzel', 'Noto Serif JP', serif;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.95);
}

.custom-op-team-member-bio {
    font-size: 0.88rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.72);
    margin: 0;
    padding-left: 0;
}

.custom-op-team-divider {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin: 1rem 0;
}

.custom-op-team-resource {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.custom-op-team-resource-title {
    font-family: 'Cinzel', 'Noto Serif JP', serif;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.92);
    margin: 0.1rem 0 0;
}

.custom-op-team-resource-desc {
    font-size: 0.88rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.65);
    margin: 0;
}

.custom-op-training-manual-video {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    margin-top: 0.65rem;
    border-radius: 0.55rem;
    overflow: hidden;
    background: rgba(6, 9, 18, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.custom-op-training-manual-vid {
    width: 100%;
    aspect-ratio: 16 / 9;
    display: block;
    background: #000;
    cursor: url('../img/kunai-cursor-64.png') 6 5, auto !important;
}

/* Native video controls live in a shadow tree; set cursor on each Chromium panel part */
.custom-op-training-manual-vid::-webkit-media-controls-enclosure,
.custom-op-training-manual-vid::-webkit-media-controls-panel,
.custom-op-training-manual-vid::-webkit-media-controls-play-button,
.custom-op-training-manual-vid::-webkit-media-controls-overlay-play-button,
.custom-op-training-manual-vid::-webkit-media-controls-timeline-container,
.custom-op-training-manual-vid::-webkit-media-controls-timeline,
.custom-op-training-manual-vid::-webkit-media-controls-current-time-display,
.custom-op-training-manual-vid::-webkit-media-controls-time-remaining-display,
.custom-op-training-manual-vid::-webkit-media-controls-volume-slider-container,
.custom-op-training-manual-vid::-webkit-media-controls-volume-slider,
.custom-op-training-manual-vid::-webkit-media-controls-mute-button,
.custom-op-training-manual-vid::-webkit-media-controls-fullscreen-button {
    cursor: url('../img/kunai-cursor-64.png') 6 5, auto !important;
}

.custom-op-training-manual-label {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.6rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(248, 231, 185, 0.55);
    text-align: center;
    padding: 0.4rem 0.75rem 0.6rem;
    margin: 0;
}

/* ─── Co-op Guard Duty ───────────────────────────────────────── */
#guardDutySection .war-card {
    margin-bottom: 0.9rem;
}

/* New layout: header with tabs + full-width bar + two columns */
#guardDutySection .guard-duty-card {
    overflow: hidden;
    padding-top: 0;
}
#guardDutySection .guard-duty-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    padding-top: 0.5rem;
}
#guardDutySection .guard-duty-header-left .war-card-subtitle {
    margin-bottom: 0.25rem;
}
#guardDutySection .guard-duty-header-right {
    text-align: right;
}
#guardDutySection .guard-duty-tabs {
    display: flex;
    gap: 0.25rem;
}
#guardDutySection .guard-duty-tab {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    padding: 0.4rem 0.75rem;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.6);
    cursor: default;
    border-radius: 0.35rem;
}
#guardDutySection .guard-duty-tab-active {
    background: rgba(228, 198, 128, 0.15);
    border-color: rgba(228, 198, 128, 0.5);
    color: rgba(248, 231, 185, 0.95);
}
#guardDutySection .guard-duty-tab[data-tab="pending"].guard-duty-tab-active {
    cursor: pointer;
}
#guardDutySection .guard-duty-status {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 0.5rem;
}
#guardDutySection .guard-duty-header-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(228, 198, 128, 0.4), transparent);
    margin: 0.25rem 0 0 0;
}
#guardDutySection .guard-duty-hero-warfront {
    margin-top: 0;
}

/* Warfront-style hero: full-bleed, 21:9 aspect ratio */
#guardDutySection .guard-duty-hero-warfront {
    position: relative;
    width: calc(100% + 2.5rem);
    max-width: none;
    margin: 0 -1.25rem 0 -1.25rem;
    height: 0;
    padding-bottom: 42.857%;
    overflow: hidden;
    border: none;
    border-bottom: 1px solid var(--panel-border, rgba(255, 255, 255, 0.08));
}
#guardDutySection .guard-duty-hero-warfront > .guard-duty-hero-warfront-img,
#guardDutySection .guard-duty-hero-warfront > .guard-duty-hero-vignette,
#guardDutySection .guard-duty-hero-warfront > .guard-duty-hero-overlay {
    position: absolute;
    inset: 0;
}
#guardDutySection .guard-duty-hero-warfront-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 40%;
    filter: brightness(0.75) contrast(1.1);
    display: block;
}
#guardDutySection .guard-duty-hero-vignette {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(8, 10, 12, 0.5) 0%, transparent 35%, transparent 65%, rgba(8, 10, 12, 0.85) 100%);
    pointer-events: none;
    z-index: 1;
}
#guardDutySection .guard-duty-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 16px 20px;
}
#guardDutySection .guard-duty-hero-overlay-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}
#guardDutySection .guard-duty-on-duty-badge {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(228, 198, 128, 0.95);
    background: rgba(8, 10, 14, 0.7);
    padding: 4px 10px;
    border: 1px solid rgba(228, 198, 128, 0.35);
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}
#guardDutySection .guard-duty-on-duty-badge::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(228, 198, 128, 0.95);
    animation: warfrontPulse 2s ease-in-out infinite;
}

#guardDutySection .guard-duty-invitation-pending-overlay {
    position: absolute;
    top: 10px;
    right: 10px;
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #e08c3a;
    background: rgba(8, 10, 14, 0.75);
    padding: 6px 12px;
    border: 1px solid rgba(224, 140, 58, 0.4);
    border-radius: 0.35rem;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 0 12px rgba(224, 140, 58, 0.15);
}
#guardDutySection .guard-duty-invitation-pending-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #e08c3a;
    animation: warfrontPulse 2s ease-in-out infinite;
}
#guardDutySection .guard-duty-hero-headline {
    font-family: Cinzel, serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.9);
    line-height: 1.3;
    letter-spacing: 0.04em;
}
#guardDutySection .guard-duty-hero-overlay-bottom {
    display: flex;
    align-items: flex-end;
}
#guardDutySection .guard-duty-hero-bar-overlay {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
    padding: 0;
}
#guardDutySection .guard-duty-bar-top-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}
#guardDutySection .guard-duty-bar-left {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}
#guardDutySection .guard-duty-bar-status {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.6rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.95);
}
#guardDutySection .guard-duty-bar-title-under {
    font-family: Cinzel, serif;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}
#guardDutySection .guard-duty-bar-value {
    font-family: Cinzel, serif;
    font-size: 2rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}
#guardDutySection .guard-duty-bar-strip {
    position: relative;
    width: 100%;
}
#guardDutySection .guard-duty-integrity-bar-styled {
    position: relative;
    height: 14px;
    background: rgba(30, 30, 35, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 2px;
    overflow: visible;
}
#guardDutySection .guard-duty-integrity-bar-styled .guard-duty-integrity-bar-fill {
    height: 100%;
    border-radius: 2px 0 0 2px;
    background: linear-gradient(90deg, rgba(226, 195, 90, 0.9), rgba(160, 125, 50, 0.95));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15);
    transition: width 0.4s ease;
}
#guardDutySection .guard-duty-bar-current-marker {
    position: absolute;
    top: -2px;
    bottom: -2px;
    width: 3px;
    margin-left: -1.5px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.7);
    border-radius: 1px;
    z-index: 2;
    pointer-events: none;
}
#guardDutySection .guard-duty-bar-thresholds {
    position: relative;
    height: 1.2rem;
    margin-top: 0.35rem;
}
#guardDutySection .guard-duty-bar-tick {
    position: absolute;
    top: 0;
    transform: translateX(-50%);
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.55rem;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}
#guardDutySection .guard-duty-bar-tick::before {
    content: '';
    display: block;
    width: 1px;
    height: 4px;
    background: currentColor;
}
#guardDutySection .guard-duty-bar-tick-25::before {
    background: #c43a28;
}
#guardDutySection .guard-duty-bar-tick-25 {
    color: rgba(196, 58, 40, 0.8);
}
#guardDutySection .guard-duty-bar-tick-50::before {
    background: rgba(255, 255, 255, 0.6);
}
#guardDutySection .guard-duty-bar-tick-75::before {
    background: #5aaa4a;
}
#guardDutySection .guard-duty-bar-tick-75 {
    color: rgba(90, 170, 74, 0.8);
}

/* Three-column content grid below hero */
#guardDutySection .guard-duty-content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0;
}
#guardDutySection .guard-duty-reports-col {
    padding: 1rem 0.5rem 1rem 1rem;
}
#guardDutySection .guard-duty-middle-col {
    padding: 1rem 0.5rem;
}
#guardDutySection .guard-duty-advantage-col {
    padding: 1rem 1rem 1rem 0.5rem;
}
#guardDutySection .guard-duty-col-label {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.6rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
    margin-bottom: 0.75rem;
}
#guardDutySection .guard-duty-mission-footer {
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--panel-border, rgba(255, 255, 255, 0.08));
}

#customOperationSection .custom-op-mission-footer {
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--panel-border, rgba(255, 255, 255, 0.08));
}

#siegeModeSection .siege-mode-card {
    border-radius: 0.9rem;
}

#siegeModeSection .siege-mode-header {
    margin-bottom: 0;
}

#siegeModeSection .siege-mode-three-col-grid {
    display: grid;
    grid-template-columns: minmax(210px, 0.26fr) minmax(0, 0.48fr) minmax(240px, 0.26fr);
    gap: 1.4rem;
    align-items: stretch;
}

#siegeModeSection .trials-expanded-content {
    padding: 0.7rem 0.85rem 0.95rem;
}

#siegeModeSection .siege-mode-visual-card {
    margin-bottom: 0;
    background: none;
    border-color: transparent;
    padding: 0;
}

#siegeModeSection .siege-mode-portrait {
    min-height: 100%;
}

#siegeModeSection .siege-mode-wizard-card {
    min-height: 100%;
    padding: 0.9rem 1rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(9, 10, 15, 0.96);
    box-shadow: inset 0 0 0 1px rgba(245, 215, 150, 0.08), 0 16px 40px rgba(0, 0, 0, 0.34);
}

#siegeModeSection .siege-section-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.45rem;
}

#siegeModeSection .siege-section-header-main {
    min-width: 0;
}

#siegeModeSection .siege-section-heading {
    font-size: 1.02rem;
    margin-bottom: 0;
    padding-bottom: 0.45rem;
}

#siegeModeSection .siege-section-header-compact .siege-section-heading {
    padding-bottom: 0.35rem;
}

#siegeModeSection .siege-section-header-meta {
    padding-top: 0.1rem;
    flex-shrink: 0;
}

#siegeModeSection .siege-mode-strike-name {
    min-height: 2.35rem;
    resize: none;
}

#siegeModeSection [data-siege-pattern-name] {
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(10, 13, 20, 0.52);
}

#siegeModeSection [data-siege-pattern-name]:focus {
    border-color: rgba(255, 255, 255, 0.26);
}

#siegeModeSection .siege-pattern-brief {
    margin: 0 0 1rem;
    padding: 0.65rem 0.75rem 0.72rem;
    border-radius: 0.45rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
}

#siegeModeSection .siege-pattern-brief p {
    margin: 0;
    font-size: 0.79rem;
    line-height: 1.52;
    color: rgba(255, 247, 232, 0.78);
}

#siegeModeSection .siege-pattern-brief p + p {
    margin-top: 0.62rem;
}

#siegeModeSection .custom-op-section {
    margin-top: 0.75rem;
}

#siegeModeSection .custom-op-section-label {
    font-size: 0.62rem;
    letter-spacing: 0.16em;
    color: rgba(246, 221, 168, 0.78);
    margin-bottom: 0.35rem;
}

#siegeModeSection .siege-field-hint {
    margin: 0.35rem 0 0;
    font-size: 0.68rem;
    line-height: 1.45;
    color: rgba(224, 210, 176, 0.7);
}

#siegeModeSection .siege-strike-summary {
    margin: 0 0 0.35rem 0;
    text-align: right;
    font-size: 0.66rem;
    letter-spacing: 0.05em;
    color: rgba(248, 231, 185, 0.6);
}

#siegeModeSection .siege-strike-actions {
    margin-top: 0.65rem;
}

#siegeModeSection .siege-add-strike-btn {
    width: 100%;
    min-height: 2.5rem;
    padding: 0.46rem 0.64rem;
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.82);
    clip-path: none;
    box-shadow: inset 0 0 0 1px rgba(235, 198, 125, 0.12), 0 0 16px rgba(168, 121, 41, 0.18);
}

#siegeModeSection .siege-add-strike-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(244, 218, 156, 0.44);
    box-shadow: inset 0 0 0 1px rgba(245, 219, 163, 0.2), 0 0 24px rgba(183, 132, 43, 0.32);
}

#siegeModeSection .siege-formation-board {
    margin-top: 0.55rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.55rem;
}

#siegeModeSection .siege-formation-slot {
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 0.55rem;
    min-height: 180px;
    overflow: hidden;
    background: rgba(10, 13, 20, 0.7);
}

#siegeModeSection .siege-formation-slot.is-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    border-style: dashed;
    border-color: rgba(255, 255, 255, 0.16);
    background: rgba(10, 13, 20, 0.46);
}

#siegeModeSection .siege-formation-empty {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.28rem;
}

#siegeModeSection .siege-formation-empty-icon {
    width: 1.55rem;
    height: 1.55rem;
    border: 1px solid rgba(231, 205, 152, 0.34);
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    line-height: 1;
    color: rgba(235, 209, 154, 0.72);
}

#siegeModeSection .siege-formation-empty-label {
    font-size: 0.67rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(226, 210, 172, 0.56);
}

#siegeModeSection .siege-formation-slot.is-filled {
    display: block;
    cursor: url('../img/hand-cursor-64.png') 6 5, grab;
}

#siegeModeSection .siege-formation-slot.is-newly-recruited {
    animation: siegeRecruitPulse 560ms ease-out;
}

#siegeModeSection .siege-formation-slot.is-filled:active {
    cursor: url('../img/hand-closed-cursor-64.png') 6 5, grabbing;
}

#siegeModeSection .siege-formation-slot.is-filled.is-dragging {
    opacity: 0.5;
    cursor: url('../img/hand-closed-cursor-64.png') 6 5, grabbing;
}

#siegeModeSection .siege-formation-slot.is-filled.is-drop-target {
    border-color: rgba(255, 255, 255, 0.46);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2);
}

#siegeModeSection .siege-formation-duration-badge {
    position: absolute;
    bottom: 0.42rem;
    right: 0.42rem;
    z-index: 3;
    padding: 0.18rem 0.42rem;
    border-radius: 0.28rem;
    border: 1px solid rgba(228, 198, 132, 0.42);
    background: rgba(9, 11, 18, 0.62);
    font-family: 'Space Mono', 'IBM Plex Mono', 'Courier New', monospace;
    font-size: 0.62rem;
    letter-spacing: 0.08em;
    color: rgba(238, 214, 164, 0.92);
    pointer-events: none;
}

#siegeModeSection .siege-formation-avatar-wrap {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

#siegeModeSection .siege-formation-avatar-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 125% 85% at 18% 102%, rgba(6, 8, 14, 0.92) 0%, rgba(6, 8, 14, 0.55) 42%, rgba(6, 8, 14, 0) 72%),
        linear-gradient(180deg, rgba(9, 12, 20, 0.05) 0%, rgba(9, 12, 20, 0.38) 100%);
}

#siegeModeSection .siege-formation-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 35%;
    filter: grayscale(0.85) contrast(0.98) brightness(0.9);
}

#siegeModeSection .siege-formation-avatar-wrap > .siege-formation-avatar {
    position: absolute;
    inset: 0;
}

#siegeModeSection .siege-formation-avatar-video {
    display: block;
    z-index: 2;
    opacity: 1;
    transition: opacity 160ms ease;
}

#siegeModeSection .siege-formation-avatar-video.is-finished {
    opacity: 0;
    pointer-events: none;
}

#siegeModeSection .siege-formation-overlay {
    position: absolute;
    left: 0.5rem;
    right: 4.25rem;
    bottom: 0.48rem;
    z-index: 2;
    pointer-events: none;
}

#siegeModeSection .siege-formation-task {
    font-family: 'Cinzel', serif;
    font-size: 0.82rem;
    line-height: 1.22;
    font-weight: 600;
    color: rgba(241, 218, 164, 0.96);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.65);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
}

#siegeModeSection .siege-recruit-card {
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 0.55rem;
    padding: 0.7rem 0.75rem 0.8rem;
    background:
        radial-gradient(circle at 16% 0%, rgba(220, 182, 108, 0.12), transparent 42%),
        rgba(10, 13, 20, 0.88);
}

#siegeModeSection .siege-recruit-card .siege-mode-strike-name {
    min-height: 2.2rem;
}

#siegeModeSection .siege-duration-presets {
    margin-top: 0.42rem;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0.32rem;
}

#siegeModeSection .siege-duration-preset-btn {
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.42rem;
    background: rgba(11, 14, 22, 0.72);
    color: rgba(244, 236, 219, 0.9);
    min-height: 2rem;
    padding: 0.32rem 0.24rem;
    font-family: 'Space Mono', 'IBM Plex Mono', 'Courier New', monospace;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    cursor: url('../img/hand-pointing-cursor.png') 6 5, pointer;
    transition: border-color 0.18s ease, background-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

#siegeModeSection .siege-duration-preset-btn:hover {
    border-color: rgba(245, 221, 170, 0.48);
    background: rgba(28, 23, 16, 0.55);
}

#siegeModeSection .siege-duration-preset-btn.is-selected {
    border-color: rgba(236, 197, 112, 0.95);
    background: rgba(224, 196, 133, 0.96);
    color: rgba(31, 22, 10, 0.96);
    text-shadow: 0 1px 0 rgba(255, 241, 210, 0.3);
    box-shadow: inset 0 1px 0 rgba(255, 243, 212, 0.46), 0 0 0 1px rgba(247, 222, 168, 0.22), 0 0 16px rgba(185, 136, 48, 0.28);
}

#siegeModeSection .siege-draft-strike-time {
    font-family: 'Space Mono', 'IBM Plex Mono', 'Courier New', monospace;
    font-size: 0.76rem;
    color: rgba(247, 230, 186, 0.9);
}

#siegeModeSection .siege-draft-strike-remove {
    position: absolute;
    top: 0.38rem;
    right: 0.38rem;
    z-index: 4;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 0.45rem;
    background: rgba(255, 255, 255, 0.02);
    color: rgba(255, 236, 203, 0.58);
    width: 1.85rem;
    height: 1.65rem;
    min-width: 1.85rem;
    padding: 0;
    font-size: 0.9rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    cursor: url('../img/hand-pointing-cursor.png') 6 5, pointer;
}

#siegeModeSection .siege-draft-strike-remove:hover {
    color: rgba(255, 236, 203, 0.92);
    border-color: rgba(246, 219, 163, 0.42);
}

#siegeModeSection .siege-add-strike-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

@media (max-width: 1100px) {
    #siegeModeSection .siege-duration-presets {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

#siegeModeSection .siege-strike-metrics {
    margin-top: 0.6rem;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.45rem;
}

#siegeModeSection .siege-metric-tile {
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 0.55rem;
    background: rgba(11, 14, 22, 0.9);
    padding: 0.52rem 0.65rem;
    text-align: center;
    box-shadow: inset 0 0 0 1px rgba(242, 211, 142, 0.08);
}

#siegeModeSection .siege-metric-value {
    display: block;
    font-family: 'Cinzel', serif;
    font-size: 1rem;
    color: rgba(242, 215, 160, 0.88);
}

#siegeModeSection .siege-metric-label {
    display: block;
    margin-top: 0.14rem;
    font-size: 0.58rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.48);
}

#siegeModeSection .siege-formation-readiness {
    margin-top: 0.5rem;
    text-align: center;
    font-size: 0.66rem;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: rgba(240, 215, 156, 0.86);
    border: 1px solid rgba(242, 209, 137, 0.2);
    border-radius: 0.44rem;
    padding: 0.34rem 0.45rem;
    background: rgba(37, 29, 16, 0.28);
}

#siegeModeSection .siege-pattern-row {
    margin-top: 0.65rem;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.45rem;
}

#siegeModeSection .siege-seal-btn,
#siegeModeSection .siege-clear-btn {
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

#siegeModeSection .siege-seal-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: rgba(255, 255, 255, 0.88);
    clip-path: none;
    box-shadow: none;
}

#siegeModeSection .siege-seal-btn:hover {
    border-color: rgba(255, 255, 255, 0.26);
    background: rgba(255, 255, 255, 0.03);
}

#siegeModeSection .siege-seal-btn {
    width: 100%;
}

#siegeModeSection .siege-clear-btn {
    min-width: 5rem;
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: rgba(255, 255, 255, 0.82);
    background: transparent;
    clip-path: none;
    box-shadow: none;
}

#siegeModeSection .siege-clear-btn:hover {
    border-color: rgba(255, 255, 255, 0.26);
    background: rgba(255, 255, 255, 0.03);
}

@keyframes siegeRecruitPulse {
    0% {
        transform: translateY(4px);
        border-color: rgba(228, 198, 132, 0.55);
        box-shadow: 0 0 0 rgba(189, 141, 53, 0);
    }
    55% {
        transform: translateY(0);
        border-color: rgba(241, 214, 154, 0.85);
        box-shadow: 0 0 22px rgba(175, 128, 42, 0.42);
    }
    100% {
        transform: translateY(0);
        border-color: rgba(255, 255, 255, 0.14);
        box-shadow: 0 0 0 rgba(189, 141, 53, 0);
    }
}

#siegeModeSection .siege-saved-patterns {
    margin-top: 1rem;
}

#siegeModeSection .siege-saved-list {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

#siegeModeSection .siege-saved-toggle-btn {
    border: 0;
    padding: 0;
    background: transparent;
    width: 100%;
}

#siegeModeSection .siege-saved-item {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 0.5rem;
    background: rgba(12, 15, 21, 0.62);
    color: rgba(255, 255, 255, 0.88);
    padding: 0.58rem 0.7rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    cursor: url('../img/hand-cursor-64.png') 6 5, grab;
    transition: border-color 0.2s ease, background 0.2s ease;
}

#siegeModeSection .siege-saved-item:hover {
    border-color: rgba(255, 255, 255, 0.28);
    background: rgba(12, 15, 21, 0.82);
}

#siegeModeSection .siege-saved-item:active {
    cursor: url('../img/hand-closed-cursor-64.png') 6 5, grabbing;
}

#siegeModeSection .siege-saved-item.is-dragging {
    opacity: 0.45;
    cursor: url('../img/hand-closed-cursor-64.png') 6 5, grabbing;
}

#siegeModeSection .siege-saved-item.is-drop-target {
    border-color: rgba(255, 255, 255, 0.46);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2);
}

body.is-siege-pattern-dragging,
body.is-siege-pattern-dragging * {
    cursor: url('../img/hand-closed-cursor-64.png') 6 5, grabbing !important;
}

#siegeModeSection .siege-saved-item.is-active {
    border-color: rgba(255, 255, 255, 0.36);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14);
}

#siegeModeSection .siege-saved-name {
    font-size: 0.84rem;
    font-weight: 600;
}

#siegeModeSection .siege-saved-time {
    font-family: 'Space Mono', 'IBM Plex Mono', 'Courier New', monospace;
    font-size: 0.8rem;
    color: rgba(247, 230, 186, 0.9);
}

#siegeModeSection .siege-empty-saved {
    margin: 0;
    padding: 0.65rem 0;
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.84rem;
}

#siegeModeSection .siege-mode-timer-column {
    min-width: 0;
}

#siegeModeSection .siege-recruit-card + .siege-saved-patterns-rail {
    margin-top: 0.7rem;
}

#siegeModeSection .siege-mode-timer-section {
    margin-bottom: 0;
}

#siegeModeSection .siege-mode-timer-card {
    height: 100%;
    padding: 0.95rem;
}

#siegeModeSection .siege-mode-timer-card .pomodoro-time {
    font-size: clamp(2.2rem, 4vw, 3rem);
}

#siegeModeSection .siege-mode-timer-card .pomodoro-controls {
    margin-bottom: 0;
}

@media (max-width: 1120px) {
    #siegeModeSection .siege-mode-three-col-grid {
        grid-template-columns: minmax(190px, 0.34fr) minmax(0, 0.66fr);
    }

    #siegeModeSection .siege-mode-timer-column {
        grid-column: 1 / -1;
    }

    #siegeModeSection .siege-formation-board {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    #siegeModeSection .siege-mode-three-col-grid {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    #siegeModeSection .siege-mode-timer-card {
        padding: 0.75rem;
    }

    #siegeModeSection .siege-formation-board {
        grid-template-columns: 1fr;
    }
}

#siegeModeSection .siege-execution-center .siege-mode-timer-section-center {
    margin-bottom: 0.85rem;
    position: relative;
}

#siegeModeSection .siege-mode-timer-section-rail {
    margin-bottom: 0.75rem;
    position: relative;
}

#siegeModeSection .siege-mode-timer-section-rail .siege-mode-timer-card {
    height: auto;
    min-height: 0;
}

#siegeModeSection .siege-execution-header {
    margin-bottom: 0.55rem;
}

#siegeModeSection .siege-complete-overlay {
    margin-bottom: 0.65rem;
    border: 1px solid rgba(173, 129, 47, 0.55);
    border-radius: 0.55rem;
    background: radial-gradient(circle at 22% -25%, rgba(244, 218, 156, 0.28), rgba(55, 38, 12, 0.9));
    box-shadow: 0 0 22px rgba(156, 111, 34, 0.28);
    animation: siegeCompletePulse 1.6s ease-in-out infinite;
}

#siegeModeSection .siege-complete-overlay-inner {
    padding: 0.6rem 0.75rem 0.68rem;
    text-align: center;
}

#siegeModeSection .siege-complete-kicker {
    font-size: 0.68rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 236, 194, 0.92);
}

#siegeModeSection .siege-complete-count {
    margin-top: 0.16rem;
    font-family: 'Cinzel', serif;
    font-size: 1.75rem;
    line-height: 1;
    color: rgba(255, 248, 229, 0.95);
}

#siegeModeSection .siege-complete-copy {
    margin: 0.24rem 0 0;
    font-size: 0.8rem;
    color: rgba(255, 235, 197, 0.8);
}

@keyframes siegeCompletePulse {
    0%, 100% {
        box-shadow: 0 0 16px rgba(156, 111, 34, 0.22);
    }
    50% {
        box-shadow: 0 0 28px rgba(192, 143, 47, 0.4);
    }
}

#siegeModeSection .custom-op-portrait--video-active .custom-op-portrait-overlay {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.42s ease;
}

#siegeModeSection .custom-op-team-video-layer--siege {
    position: absolute;
    inset: 0;
    z-index: 2;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.42s ease;
    background: #000;
    border-radius: inherit;
}

#siegeModeSection .custom-op-portrait--video-active .trials-visual-image {
    opacity: 0;
    transition: opacity 0.42s ease;
}

#siegeModeSection .custom-op-portrait--video-active .custom-op-team-video-layer--siege {
    opacity: 1;
    pointer-events: auto;
}

#siegeModeSection .siege-mode-portrait.has-siege-transmission {
    cursor: url('../img/hand-pointing-cursor.png') 6 5, pointer;
}

#siegeModeSection .siege-mode-portrait.siege-portrait--handoff-vignette {
    overflow: hidden;
}

#siegeModeSection .siege-mode-portrait.siege-portrait--handoff-vignette::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    border-radius: inherit;
    background: radial-gradient(circle at 50% 45%, rgba(12, 16, 24, 0) 32%, rgba(9, 12, 20, 0.2) 68%, rgba(6, 9, 14, 0.5) 100%);
    animation: siegePortraitHandoffVignette 640ms ease-out;
}

#siegeModeSection .siege-mode-portrait.siege-portrait--rei-out .trials-visual-image,
#siegeModeSection .siege-mode-portrait.siege-portrait--rei-out .custom-op-portrait-overlay {
    animation: siegePortraitReiOut 220ms cubic-bezier(0.4, 0, 1, 1) forwards;
}

#siegeModeSection .siege-mode-portrait.siege-portrait--rokan-in {
    animation: siegePortraitRokanIn 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

#siegeModeSection .siege-mode-portrait .coach-video-overlay-btn {
    transition: opacity 180ms ease, transform 180ms ease;
}

#siegeModeSection .siege-mode-portrait .coach-video-overlay-label {
    transition: opacity 180ms ease, transform 180ms ease;
}

#siegeModeSection .siege-mode-portrait .coach-video-overlay-btn.siege-transmission-badge--swap .coach-video-overlay-label {
    opacity: 0;
    transform: translateY(-2px);
    animation: siegeTransmissionLabelIn 220ms ease-out 60ms forwards;
}

#siegeModeSection [data-siege-portrait-frame].custom-op-portrait--video-active .coach-video-overlay-btn {
    opacity: 0;
    pointer-events: none;
}

@keyframes siegePortraitReiOut {
    0% {
        opacity: 1;
        filter: brightness(1) blur(0);
        transform: scale(1);
    }
    100% {
        opacity: 0;
        filter: brightness(0.84) blur(1.1px);
        transform: scale(1.013);
    }
}

@keyframes siegePortraitRokanIn {
    0% {
        opacity: 0;
        filter: brightness(0.86) blur(1.2px);
        transform: scale(1.018);
    }
    100% {
        opacity: 1;
        filter: brightness(1) blur(0);
        transform: scale(1);
    }
}

@keyframes siegePortraitHandoffVignette {
    0% {
        opacity: 0;
    }
    45% {
        opacity: 1;
    }
    100% {
        opacity: 0.35;
    }
}

@keyframes siegeTransmissionLabelIn {
    0% {
        opacity: 0;
        transform: translateY(-2px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    #siegeModeSection .siege-mode-portrait.has-siege-transmission {
        cursor: default;
    }
}

#siegeModeSection .siege-opened-task-grid.is-victory-flash .siege-opened-task-card {
    animation: siegeVictoryFlash 520ms ease-out;
}

@keyframes siegeVictoryFlash {
    0% {
        box-shadow: 0 0 0 rgba(233, 189, 111, 0);
        filter: brightness(1);
    }
    35% {
        box-shadow: 0 0 20px rgba(217, 164, 64, 0.46);
        filter: brightness(1.08);
    }
    100% {
        box-shadow: 0 0 0 rgba(233, 189, 111, 0);
        filter: brightness(1);
    }
}

#siegeModeSection .siege-opened-checklist {
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 0.55rem;
    background: rgba(10, 12, 18, 0.72);
    padding: 0.5rem 0;
}

#siegeModeSection .siege-opened-pattern-info {
    margin: 0 0.85rem 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 0.45rem;
    background: rgba(255, 255, 255, 0.02);
    padding: 0.48rem 0.6rem;
}

#siegeModeSection .siege-opened-pattern-info-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.94);
    margin: 0;
}

#siegeModeSection .siege-opened-pattern-info-copy {
    margin: 0.18rem 0 0;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.68);
    line-height: 1.35;
}

#siegeModeSection .siege-opened-pattern-info-copy--lead {
    margin: 0;
    font-size: 1.08rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.45;
}

#siegeModeSection .siege-completion-enlist-row {
    display: flex;
    justify-content: center;
    padding: 0.85rem 0.85rem 0.35rem;
}

#siegeModeSection .siege-completion-enlist-btn.pricing-btn-primary {
    width: 100%;
    max-width: min(100%, 38rem);
    margin: 0 auto 0;
    letter-spacing: 0.18em;
    font-size: clamp(0.62rem, 1.35vw, 0.72rem);
    padding: 1.15rem 1.25rem;
    box-shadow:
        0 4px 28px rgba(184, 142, 52, 0.42),
        0 0 0 1px rgba(255, 236, 192, 0.18),
        inset 0 1px 0 rgba(255, 248, 220, 0.28);
}

#siegeModeSection .siege-completion-enlist-btn.pricing-btn-primary:hover {
    box-shadow:
        0 6px 34px rgba(212, 175, 72, 0.5),
        0 0 0 1px rgba(255, 236, 192, 0.26),
        inset 0 1px 0 rgba(255, 248, 220, 0.35);
}

#siegeModeSection .siege-opened-task-grid {
    margin-bottom: 0.6rem;
    gap: 0.55rem;
}

#siegeModeSection .siege-opened-task-card {
    display: block;
    min-height: 180px;
    padding: 0;
    border-radius: 0.55rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(10, 13, 20, 0.7);
}

#siegeModeSection .siege-opened-task-card .assault-tile-kanji {
    display: none;
}

#siegeModeSection .siege-opened-task-card .siege-opened-task-title-overlay {
    display: flex;
    align-items: baseline;
    gap: 0.38rem;
}

#siegeModeSection .siege-opened-task-card .siege-opened-task-title-overlay .siege-formation-task {
    flex: 1;
    min-width: 0;
}

#siegeModeSection .siege-opened-task-card .siege-opened-task-title-overlay--seal {
    justify-content: center;
    left: 0.35rem;
    right: 0.35rem;
    bottom: 0.35rem;
    padding: 0.48rem 0.62rem;
    border-radius: 0.38rem;
    background: rgba(8, 10, 17, 0.9);
    border: 1px solid rgba(231, 205, 154, 0.35);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
}

#siegeModeSection .siege-opened-task-card .siege-opened-task-title-overlay--seal .siege-formation-task {
    flex: none;
    max-width: 100%;
    text-align: center;
}

#siegeModeSection .siege-opened-task-seal-flavor {
    font-style: italic;
    letter-spacing: 0.02em;
}

#siegeModeSection .siege-opened-task-name {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: left;
    line-height: 1.22;
}

#siegeModeSection .siege-opened-task-card.is-active {
    border-color: rgba(255, 255, 255, 0.26);
    background: rgba(255, 255, 255, 0.06);
}

#siegeModeSection .siege-opened-task-card.is-checked {
    border-color: rgba(166, 121, 44, 0.88);
    background:
        radial-gradient(circle at 50% 120%, rgba(245, 224, 178, 0.58) 0%, rgba(245, 224, 178, 0.12) 48%, transparent 72%),
        radial-gradient(circle at 30% 0%, rgba(245, 224, 178, 0.92), rgba(128, 91, 28, 0.9));
    box-shadow: 0 0 14px rgba(143, 103, 33, 0.38);
}

#siegeModeSection .siege-opened-task-card.is-checked .siege-formation-avatar {
    filter: none;
}

#siegeModeSection .siege-opened-task-card.is-checked .siege-formation-avatar-wrap::after {
    background:
        radial-gradient(ellipse 125% 85% at 18% 102%, rgba(6, 8, 14, 0.55) 0%, rgba(6, 8, 14, 0.22) 42%, rgba(6, 8, 14, 0) 72%),
        linear-gradient(180deg, rgba(9, 12, 20, 0) 0%, rgba(5, 7, 12, 0.72) 100%);
}

#siegeModeSection .siege-opened-task-card.is-checked .siege-formation-duration-badge {
    display: none;
}

#siegeModeSection .siege-opened-task-card.is-checked .assault-tile-kanji {
    color: rgba(24, 16, 6, 0.2);
}

#siegeModeSection .siege-opened-task-card.is-checked .siege-opened-task-title-overlay--seal .siege-formation-task {
    color: rgba(245, 232, 198, 0.98);
    font-weight: 600;
    text-shadow:
        0 1px 2px rgba(0, 0, 0, 0.95),
        0 0 18px rgba(0, 0, 0, 0.55);
}

#siegeModeSection .siege-opened-task-card.is-just-completed {
    animation: siegeTaskSealFade 620ms ease-out forwards;
}

@keyframes siegeTaskSealFade {
    0% {
        border-color: rgba(255, 255, 255, 0.14);
        background: rgba(0, 0, 0, 0.25);
        box-shadow: none;
    }
    100% {
        border-color: rgba(166, 121, 44, 0.88);
        background:
            radial-gradient(circle at 50% 120%, rgba(245, 224, 178, 0.58) 0%, rgba(245, 224, 178, 0.12) 48%, transparent 72%),
            radial-gradient(circle at 30% 0%, rgba(245, 224, 178, 0.92), rgba(128, 91, 28, 0.9));
        box-shadow: 0 0 14px rgba(143, 103, 33, 0.38);
    }
}

#siegeModeSection .siege-opened-task-order {
    flex-shrink: 0;
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.68);
}

#siegeModeSection .siege-opened-orders-block {
    padding: 0 0.85rem 0.5rem;
}

#siegeModeSection .siege-opened-actions-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.9rem;
    padding: 0 0.85rem 0.25rem;
}

#siegeModeSection .siege-opened-action-link {
    margin-top: 0.2rem;
    margin-bottom: 0;
}

#siegeModeSection .siege-opened-action-link.is-disabled {
    position: relative;
}

#siegeModeSection .siege-opened-action-link.is-disabled::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 50%;
    bottom: calc(100% + 0.5rem);
    transform: translateX(-50%) translateY(4px);
    min-width: 12.5rem;
    max-width: 16rem;
    padding: 0.34rem 0.5rem;
    border-radius: 0.36rem;
    border: 1px solid rgba(220, 182, 108, 0.45);
    background: rgba(6, 10, 18, 0.96);
    color: rgba(246, 231, 196, 0.96);
    font-size: 0.64rem;
    line-height: 1.25;
    text-align: center;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    pointer-events: none;
    opacity: 0;
    transition: opacity 120ms ease, transform 120ms ease;
    z-index: 8;
}

#siegeModeSection .siege-opened-action-link.is-disabled:hover::after,
#siegeModeSection .siege-opened-action-link.is-disabled:focus-visible::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

#siegeModeSection .siege-saved-patterns-rail {
    margin-top: 0;
    border: 1px solid rgba(212, 184, 134, 0.18);
    border-radius: 0.55rem;
    background:
        radial-gradient(circle at 18% 0%, rgba(220, 182, 108, 0.08), transparent 40%),
        rgba(10, 12, 18, 0.78);
    padding: 0.65rem;
    height: auto;
    align-self: start;
}

#siegeModeSection .siege-saved-item {
    display: block;
    padding: 0.5rem 0.55rem;
}

#siegeModeSection .siege-saved-item.is-opened {
    border-color: rgba(102, 219, 132, 0.45);
}

#siegeModeSection .siege-saved-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

#siegeModeSection .siege-saved-task-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    margin-top: 0.4rem;
}

#siegeModeSection .siege-saved-task-chip {
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(212, 184, 134, 0.25);
    border-radius: 0.32rem;
    padding: 0.14rem 0.38rem;
    background: rgba(7, 10, 16, 0.72);
}

#siegeModeSection .siege-saved-task-chip.is-more {
    color: rgba(233, 208, 152, 0.85);
    border-color: rgba(212, 184, 134, 0.42);
}

#siegeModeSection .siege-saved-actions {
    margin-top: 0.45rem;
    display: flex;
    gap: 0.35rem;
    justify-content: flex-end;
}

#siegeModeSection .siege-saved-action-btn {
    border: 1px solid rgba(212, 184, 134, 0.28);
    border-radius: 0.35rem;
    background: rgba(12, 15, 21, 0.9);
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.2rem 0.5rem;
    cursor: url('../img/hand-pointing-cursor.png') 6 5, pointer;
}

#siegeModeSection .siege-saved-action-btn:hover {
    border-color: rgba(247, 230, 186, 0.55);
    color: rgba(255, 255, 255, 0.94);
}

#siegeModeSection .siege-saved-action-btn.is-danger {
    border-color: rgba(180, 80, 80, 0.45);
    color: rgba(255, 180, 180, 0.88);
}

#guardDutySection .guard-duty-assignment-block {
    margin-bottom: 0;
}
#guardDutySection .guard-duty-assignment-subtitle {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.6rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
    margin-bottom: 0.2rem;
}
#guardDutySection .guard-duty-assignment-title {
    font-family: Cinzel, serif;
    font-size: 1rem;
    font-weight: 600;
    color: rgba(228, 198, 128, 0.95);
    margin-bottom: 0.5rem;
}
#guardDutySection .guard-duty-wizard-hint {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.6rem;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.45);
    display: block;
    margin-top: 0.35rem;
}
#guardDutySection .guard-duty-msg {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    margin-top: 0.75rem;
}
#guardDutySection .guard-duty-msg-warn {
    color: rgba(255, 200, 100, 0.9);
    font-size: 0.85rem;
}
#guardDutySection .guard-duty-conditions-block {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--panel-border);
}
#guardDutySection .guard-duty-conditions-subtitle {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.6rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
    margin-bottom: 0.2rem;
}
#guardDutySection .guard-duty-conditions-title {
    font-family: Cinzel, serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: rgba(228, 198, 128, 0.95);
    margin-bottom: 0.75rem;
}
#guardDutySection .guard-duty-active-content {
    display: block;
}
#guardDutySection .guard-duty-active-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.9rem;
}

/* Left column: stretch so hero fills to match right column height */
#guardDutySection .duel-images-row .duel-tagline-column {
    display: flex;
    flex-direction: column;
}

#guardDutySection .guard-duty-hero {
    position: relative;
    width: 100%;
    flex: 1;
    min-height: 0;
    overflow: hidden;
    background: #0a0a12;
    border-radius: 0.9rem;
    border: 1px solid var(--panel-border);
}

#guardDutySection .guard-duty-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
    filter: brightness(0.75) contrast(1.1);
    display: block;
}

#guardDutySection .guard-duty-integrity-wrap {
    padding: 1rem 1.25rem 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

#guardDutySection .guard-duty-integrity-label-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.5rem;
}

#guardDutySection .guard-duty-integrity-status {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(248, 231, 185, 0.8);
}

#guardDutySection .guard-duty-integrity-value {
    font-family: Cinzel, "Noto Serif JP", serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: rgba(228, 198, 128, 0.95);
}

#guardDutySection .guard-duty-integrity-bar-track {
    height: 6px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(200, 168, 50, 0.2);
    border-radius: 2px;
    overflow: visible;
}

#guardDutySection .guard-duty-integrity-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, rgba(122, 96, 48, 0.9), rgba(226, 195, 90, 0.9));
    border-radius: 2px;
    transition: width 0.5s ease;
}

#guardDutySection .guard-duty-partner-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(200, 168, 50, 0.06);
}

#guardDutySection .guard-duty-partner-row:last-child {
    border-bottom: none;
}

#guardDutySection .guard-duty-avatar {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    background: rgba(26, 26, 36, 0.95);
    border: 1px solid rgba(122, 96, 48, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: Cinzel, serif;
    font-size: 1rem;
    font-weight: 600;
    color: rgba(228, 198, 128, 0.9);
}

#guardDutySection .guard-duty-partner-name {
    font-family: Cinzel, serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 0.05em;
}

#guardDutySection .guard-duty-partner-sub {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
}

#guardDutySection .guard-duty-status-sealed {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 4px 10px;
    border: 1px solid rgba(32, 168, 160, 0.4);
    background: rgba(32, 168, 160, 0.12);
    color: rgba(200, 235, 232, 0.95);
}

#guardDutySection .guard-duty-status-unknown {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 4px 10px;
    border: 1px solid rgba(120, 120, 100, 0.2);
    color: rgba(255, 255, 255, 0.5);
}

/* Seal / Ritual button next to "YOU" – dark background and bright text for legibility */
#guardDutySection button.guard-duty-status-sealed,
#guardDutySection button.guard-duty-status-unknown {
    cursor: pointer;
    border-radius: 0.25rem;
    background: rgba(20, 20, 28, 0.95);
    border: 1px solid rgba(228, 198, 128, 0.45);
    color: rgba(248, 231, 185, 0.95);
}
#guardDutySection button.guard-duty-status-sealed:disabled {
    background: rgba(32, 168, 160, 0.12);
    border-color: rgba(32, 168, 160, 0.45);
    color: rgba(200, 235, 232, 0.95);
    cursor: default;
}
#guardDutySection button.guard-duty-status-unknown:not(:disabled):hover {
    border-color: rgba(228, 198, 128, 0.65);
    color: rgba(255, 255, 255, 0.98);
}
#guardDutySection button.guard-duty-status-unknown:disabled {
    cursor: default;
}

#guardDutySection .guard-duty-dispatch {
    padding: 0.75rem 1rem;
    border-left: 3px solid rgba(122, 96, 48, 0.6);
    background: rgba(200, 168, 50, 0.04);
    margin-bottom: 1rem;
}

#guardDutySection .guard-duty-dispatch-label {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.65rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(122, 96, 48, 0.9);
    margin-bottom: 0.35rem;
}

#guardDutySection .guard-duty-dispatch-text {
    font-style: italic;
    font-size: 0.9rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.7);
}

#guardDutySection .guard-duty-movement-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

#guardDutySection .guard-duty-pill {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 4px 10px;
    border: 1px solid;
}

#guardDutySection .guard-duty-pill-up {
    color: #5aaa4a;
    border-color: rgba(90, 170, 74, 0.35);
    background: rgba(90, 170, 74, 0.06);
}

#guardDutySection .guard-duty-pill-hold {
    color: rgba(200, 168, 50, 0.9);
    border-color: rgba(200, 168, 50, 0.25);
}

#guardDutySection .guard-duty-pill-down {
    color: #c43a28;
    border-color: rgba(196, 58, 40, 0.35);
    background: rgba(196, 58, 40, 0.06);
}

#guardDutySection .guard-duty-tonight-recent-watch {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

#guardDutySection .guard-duty-tonight-recent-watch .guard-duty-dispatch-label {
    margin-bottom: 0.25rem;
}

#guardDutySection .guard-duty-recent-watch-heading {
    font-family: Cinzel, serif;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: rgba(228, 198, 128, 0.95);
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

#guardDutySection .guard-duty-recent-watch-empty {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.4);
    margin: 0.5rem 0 0 0;
}

#guardDutySection .guard-duty-threshold-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.6rem 0.75rem;
    border-left: 3px solid;
    margin-bottom: 0.5rem;
}

#guardDutySection .guard-duty-threshold-item:last-child {
    margin-bottom: 0;
}

#guardDutySection .guard-duty-threshold-value {
    font-family: Cinzel, serif;
    font-size: 0.95rem;
    font-weight: 700;
    flex-shrink: 0;
    width: 2.25rem;
}

#guardDutySection .guard-duty-threshold-name {
    font-family: Cinzel, serif;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.2rem;
}

#guardDutySection .guard-duty-threshold-desc {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.6rem;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.55);
    text-transform: uppercase;
    line-height: 1.4;
}

#guardDutySection .guard-duty-history-row {
    display: grid;
    grid-template-columns: 70px 1fr 1fr auto;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(200, 168, 50, 0.05);
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
}

#guardDutySection .guard-duty-history-row.header {
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.65rem;
    padding-bottom: 0.4rem;
}

#guardDutySection .guard-duty-history-you-sealed {
    color: #20a8a0;
}

#guardDutySection .guard-duty-history-partner-sealed {
    color: rgba(228, 198, 128, 0.9);
}

#guardDutySection .guard-duty-history-missed {
    color: rgba(255, 255, 255, 0.4);
}

#guardDutySection .guard-duty-history-delta-up {
    color: #5aaa4a;
}

#guardDutySection .guard-duty-history-delta-down {
    color: #c43a28;
}

#guardDutySection .guard-duty-roster-quote {
    font-family: 'Crimson Pro', Georgia, serif;
    font-style: italic;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.45);
    margin: 0.75rem 0 0 0;
    padding: 0;
}

#guardDutySection .guard-duty-vigil-label {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.65rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
    margin: 0.75rem 0 0.25rem 0;
}

#guardDutySection .guard-duty-vigil-text {
    font-family: 'Crimson Pro', serif;
    font-style: italic;
    font-size: 16px;
    color: var(--gold, #e8c987);
    margin: 0 0 0.5rem 0;
    padding: 0;
}

#guardDutySection .guard-duty-dissolve-row {
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--panel-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#guardDutySection .guard-duty-dissolve-btn {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    background: none;
    border: 1px solid rgba(120, 120, 100, 0.25);
    padding: 0.4rem 0.75rem;
    cursor: pointer;
    border-radius: 0.35rem;
    transition: color 0.2s, border-color 0.2s;
}

#guardDutySection .guard-duty-dissolve-btn:hover {
    color: rgba(196, 58, 40, 0.9);
    border-color: rgba(196, 58, 40, 0.4);
}

#guardDutySection #guardDutyRelieveBtn:hover {
    color: rgba(228, 198, 128, 0.95);
    border-color: rgba(228, 198, 128, 0.5);
}

#guardDutySection .guard-duty-wizard-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 0;
    align-items: start;
    max-width: 1000px;
}

#guardDutySection .guard-duty-wizard-form {
    padding-left: 2rem;
    border-left: 1px solid var(--panel-border);
}

#guardDutySection .guard-duty-wizard-quote {
    font-style: italic;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--panel-border);
    line-height: 1.55;
}

#guardDutySection .guard-duty-wizard-label {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.65rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 0.5rem;
    display: block;
}

#guardDutySection .guard-duty-wizard-label-sentence {
    text-transform: none;
}

#guardDutySection .guard-duty-wizard-input {
    width: 100%;
    background: none;
    border: none;
    border-bottom: 1px solid rgba(122, 96, 48, 0.5);
    color: rgba(255, 255, 255, 0.9);
    font-family: inherit;
    font-size: 1rem;
    padding: 0.5rem 0;
    outline: none;
}

#guardDutySection .guard-duty-wizard-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
    font-style: italic;
}

#guardDutySection .guard-duty-wizard-privacy {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-top: 0.75rem;
    padding: 0.6rem 0.75rem;
    background: rgba(32, 168, 160, 0.05);
    border: 1px solid rgba(32, 168, 160, 0.2);
    border-left: 3px solid rgba(13, 74, 70, 0.8);
}

#guardDutySection .guard-duty-wizard-privacy-text {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.55);
    text-transform: none;
    line-height: 1.45;
}

/* Unified screen: gate mechanics block in right column */
#guardDutySection .guard-duty-unified-mechanics {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--panel-border);
}
#guardDutySection .guard-duty-unified-mechanics-title {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.65rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 0.75rem;
}
#guardDutySection .guard-duty-unified-thresholds {
    margin-top: 0.75rem;
}

#guardDutySection .war-btn-primary {
    background: linear-gradient(135deg, #e8c987, #b8924e);
    color: #2b1d0f;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4), 0 0 14px rgba(255, 210, 110, 0.25);
    border: 1px solid rgba(212, 178, 111, 0.5);
}

#guardDutySection .war-btn-primary:hover:not(:disabled) {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4), 0 0 18px rgba(255, 210, 110, 0.35);
    filter: brightness(1.06);
}

@media (max-width: 768px) {
    /* Hero keeps 2:1 aspect ratio on mobile */
    #guardDutySection .guard-duty-hero-headline {
        font-size: 0.95rem;
    }
    #guardDutySection .guard-duty-header {
        flex-direction: column;
        align-items: flex-start;
    }
    #guardDutySection .guard-duty-header-right {
        text-align: left;
    }
    #guardDutySection .guard-duty-content-grid {
        grid-template-columns: 1fr;
    }
    #guardDutySection .guard-duty-wizard-layout {
        grid-template-columns: 1fr;
    }
    #guardDutySection .guard-duty-wizard-form {
        padding-left: 0;
        border-left: none;
        padding-top: 1rem;
    }
    #guardDutySection .guard-duty-history-row {
        grid-template-columns: 60px 1fr 1fr auto;
        font-size: 0.65rem;
    }
}

/* Guard Duty confirm modal (overlay on body) */
.guard-duty-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}
.guard-duty-modal-overlay.guard-duty-modal-open {
    opacity: 1;
    visibility: visible;
}
.guard-duty-modal {
    background: var(--panel-bg, #16162a);
    border: 1px solid var(--panel-border);
    border-radius: 0.9rem;
    padding: 1.5rem 1.75rem;
    max-width: 420px;
    width: calc(100% - 2rem);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}
.guard-duty-setup-modal.guard-duty-modal {
    --gold: #e8c987;
    --gold-dim: rgba(228, 198, 128, 0.45);
    --gold-bright: rgba(248, 231, 185, 0.98);
    --jade-dim: rgba(32, 168, 160, 0.5);
    --text-dim: rgba(255, 255, 255, 0.45);
    --border: rgba(255, 255, 255, 0.08);
    max-width: 520px;
    background: radial-gradient(ellipse at top, #1c1e2e, #0f1018);
    border: 1px solid rgba(228, 198, 128, 0.18);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.03);
    padding: 1.75rem 2rem;
}
.guard-duty-setup-header {
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.guard-duty-setup-header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}
.guard-duty-setup-context {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.58rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
}
.guard-duty-modal-close {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.55);
    font-size: 1.25rem;
    line-height: 1;
    width: 2rem;
    height: 2rem;
    padding: 0;
    cursor: pointer;
    border-radius: 0.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.guard-duty-modal-close:hover {
    color: rgba(228, 198, 128, 0.95);
    border-color: rgba(228, 198, 128, 0.35);
    background: rgba(228, 198, 128, 0.08);
}
.guard-duty-setup-modal .guard-duty-setup-protocol {
    margin-bottom: 0.35rem;
    font-size: 0.65rem;
    letter-spacing: 0.22em;
    color: rgba(248, 231, 185, 0.7);
}
.guard-duty-modal-header {
    font-family: Cinzel, serif;
    font-size: 1rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    margin: 0 0 1rem 0;
    letter-spacing: 0.05em;
}
.guard-duty-setup-modal .guard-duty-modal-header {
    font-family: Cinzel, "Noto Serif JP", Georgia, serif;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: rgba(248, 231, 185, 0.98);
    margin-bottom: 0;
}
.guard-duty-modal-line {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0.4rem 0;
}
.guard-duty-modal-tz {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
}
.guard-duty-modal-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    justify-content: flex-end;
}
.guard-duty-modal-actions .war-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 0;
    clip-path: polygon(0 0, calc(100% - 7px) 0, 100% 7px, 100% 100%, 7px 100%, 0 calc(100% - 7px));
    color: rgba(255, 255, 255, 0.85);
    padding: 0.5rem 1rem;
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
}
.guard-duty-modal-actions .war-btn:hover {
    border-color: rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.95);
}
.guard-duty-modal-actions .war-btn-primary {
    background: linear-gradient(135deg, rgba(228, 198, 128, 0.95), rgba(184, 146, 78, 0.9));
    color: #1a1510;
    border: 1px solid rgba(212, 178, 111, 0.5);
    border-radius: 0;
    clip-path: polygon(0 0, calc(100% - 7px) 0, 100% 7px, 100% 100%, 7px 100%, 0 calc(100% - 7px));
    font-weight: 600;
}
.guard-duty-modal-actions .war-btn-primary:hover {
    background: linear-gradient(135deg, rgba(235, 210, 140, 1), rgba(195, 155, 90, 0.95));
    border-color: rgba(228, 198, 128, 0.7);
}

/* Guard Duty setup modal form (on body, not in #guardDutySection) */
.guard-duty-setup-modal .guard-duty-wizard-label {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.62rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
    display: block;
}
.guard-duty-setup-modal .guard-duty-wizard-input {
    width: 100%;
    background: none;
    border: none;
    border-bottom: 1px solid var(--gold-dim);
    border-radius: 0;
    color: rgba(255, 255, 255, 0.92);
    font-family: inherit;
    font-size: 0.95rem;
    padding: 0.5rem 0;
    outline: none;
    transition: border-color 0.15s ease;
}
.guard-duty-setup-modal .guard-duty-wizard-input:focus {
    border-bottom-color: var(--gold);
}
.guard-duty-setup-modal .guard-duty-wizard-input::placeholder {
    color: rgba(255, 255, 255, 0.35);
}
.guard-duty-setup-modal textarea.guard-duty-wizard-input {
    min-height: 3.5rem;
    resize: vertical;
    color: var(--gold);
    font-family: 'Crimson Pro', Georgia, serif;
    font-style: italic;
}
.guard-duty-setup-modal .guard-duty-wizard-privacy {
    padding: 0.5rem 0 0.5rem 0.75rem;
    margin-top: 8px;
    margin-bottom: 8px;
    background: none;
    border: none;
    border-left: 3px solid var(--jade-dim);
    border-radius: 0;
}
.guard-duty-setup-modal .guard-duty-wizard-privacy-text {
    font-family: 'Crimson Pro', Georgia, serif;
    font-size: 0.85rem;
    font-style: italic;
    letter-spacing: 0.02em;
    color: var(--text-dim);
    text-transform: none;
    line-height: 1.5;
}
.guard-duty-setup-modal .guard-duty-wizard-hint {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.58rem;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.4);
    display: block;
    margin-top: 0.35rem;
    margin-bottom: 8px;
}

.guard-duty-setup-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 1.25rem;
    padding-bottom: 0;
    border-bottom: 1px solid var(--border);
}
.guard-duty-mode-tab {
    flex: 1;
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    padding: 0.6rem 0.75rem;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    color: var(--text-dim);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    transition: color 0.15s ease, border-color 0.15s ease;
}
.guard-duty-mode-tab:hover {
    color: rgba(255, 255, 255, 0.7);
}
.guard-duty-mode-tab-active {
    color: var(--gold-bright);
    border-bottom-color: var(--gold);
}
.guard-duty-mode-tab-active:hover {
    color: var(--gold-bright);
}
.guard-duty-mode-tab-sub {
    font-size: 0.55rem;
    letter-spacing: 0.1em;
    color: inherit;
    margin-top: 0.2rem;
    opacity: 0.85;
}
.guard-duty-mode-tab-active .guard-duty-mode-tab-sub {
    opacity: 1;
}
.guard-duty-setup-quote {
    font-family: 'Crimson Pro', Georgia, serif;
    font-size: 0.9rem;
    font-style: italic;
    color: rgba(255, 255, 255, 0.55);
    margin: 1.25rem 0 calc(1.25rem + 8px) 0;
    padding: 0;
    line-height: 1.45;
}
.guard-duty-setup-pane {
    min-height: 0;
    margin-bottom: 0.5rem;
}
.guard-duty-setup-modal .guard-duty-wizard-label {
    margin-bottom: calc(0.4rem + 8px);
}
.guard-duty-setup-modal .guard-duty-wizard-hint {
    margin-bottom: 8px;
}
.guard-duty-setup-modal .guard-duty-wizard-privacy {
    margin-top: 8px;
    margin-bottom: 8px;
}
.guard-duty-setup-modal .guard-duty-wizard-label-vigil {
    margin-top: calc(1rem + 8px);
    margin-bottom: calc(0.4rem + 8px);
}
.guard-duty-npc-guardian-block {
    padding: 1rem 1.15rem;
    border: 1px solid rgba(228, 198, 128, 0.22);
    border-radius: 0.6rem;
    background: radial-gradient(ellipse at top left, rgba(228, 198, 128, 0.08), rgba(228, 198, 128, 0.02));
    margin-bottom: 1rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}
.guard-duty-npc-guardian-row {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}
.guard-duty-npc-guardian-avatar {
    flex-shrink: 0;
    width: 3rem;
    height: 3rem;
    border: 1px solid rgba(228, 198, 128, 0.5);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: Cinzel, serif;
    font-size: 1.15rem;
    font-weight: 600;
    color: rgba(228, 198, 128, 0.95);
    background: rgba(228, 198, 128, 0.06);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.guard-duty-npc-guardian-info {
    flex: 1;
    min-width: 0;
}
.guard-duty-npc-guardian-title {
    font-family: Cinzel, serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(228, 198, 128, 0.95);
    letter-spacing: 0.05em;
    margin-bottom: 0.2rem;
}
.guard-duty-npc-guardian-subtitle {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.6rem;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 0.35rem;
}
.guard-duty-npc-guardian-reliability {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0.35rem;
}
.guard-duty-npc-guardian-lore {
    font-family: 'Crimson Pro', Georgia, serif;
    font-size: 0.85rem;
    font-style: italic;
    color: rgba(255, 255, 255, 0.55);
    margin: 0 0 0.5rem 0;
    line-height: 1.4;
}
.guard-duty-npc-reliability-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.4rem;
}
.guard-duty-npc-reliability-label {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.58rem;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.45);
    flex-shrink: 0;
}
.guard-duty-npc-reliability-bar {
    flex: 1;
    height: 0.35rem;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 0.2rem;
    overflow: hidden;
}
.guard-duty-npc-reliability-fill {
    height: 100%;
    background: linear-gradient(90deg, rgba(228, 198, 128, 0.4), rgba(228, 198, 128, 0.85));
    border-radius: 0.2rem;
    transition: width 0.2s ease;
}
.guard-duty-npc-reliability-pct {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.65rem;
    color: rgba(228, 198, 128, 0.95);
    flex-shrink: 0;
}
.guard-duty-npc-duration {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.6rem;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.35;
}
.guard-duty-npc-note {
    margin-top: 0.5rem;
}

/* ===== Page Transition Overlays ===== */
.page-transition-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    pointer-events: none;
    opacity: 0;
}

/* Departing TO Signal Corps: green scan wipe */
.page-transition-overlay.sc-depart {
    background: rgba(3, 10, 5, 0.92);
    opacity: 1;
    animation: scDepartFade 0.75s ease-in forwards;
}

.page-transition-overlay.sc-depart::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(120, 200, 70, 0.15) 20%,
        rgba(120, 200, 70, 0.6) 50%,
        rgba(120, 200, 70, 0.15) 80%,
        transparent 100%);
    animation: scDepartScan 0.75s ease-in-out forwards;
}

@keyframes scDepartFade {
    0%   { opacity: 0; }
    65%  { opacity: 0.85; }
    100% { opacity: 1; }
}

@keyframes scDepartScan {
    0%   { top: 0%; opacity: 0; }
    15%  { opacity: 1; }
    100% { top: 100%; opacity: 0.5; }
}

/* Arriving back at War Room */
body.warroom-arriving {
    animation: warArrive 0.6s ease-out forwards;
}

@keyframes warArrive {
    0%   { opacity: 0.3; filter: brightness(1.1) saturate(1.15); }
    100% { opacity: 1; filter: brightness(1) saturate(1); }
}

@media (prefers-reduced-motion: reduce) {
    .page-transition-overlay,
    body.warroom-arriving {
        animation: none !important;
        opacity: 1 !important;
    }
}