/* Mobile Swipe Interface for Character Sheet */

/* Hide mobile interface on desktop by default */
.mobile-swipe-container {
    display: none;
}

/* Show mobile interface only on mobile devices */
@media screen and (max-width: 768px) {
    /* Hide desktop layout on mobile */
    .gold-frame,
    .sheet-tabs-v2,
    .sheet-layout-v2,
    .csd-root {
        display: none !important;
    }
    
    /* Show mobile swipe interface */
    .mobile-swipe-container {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--bg-primary, #0d0d0d);
        z-index: 10;
        width: 100%;
    }
}

.mobile-portrait-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(165px, 1fr));
}

/* Mobile Indicator Bar */
.mobile-indicator-bar {
    position: sticky;
    top: 0;
    background: var(--bg-elevated, #1a1a1a);
    padding: 0.75rem 1rem;
    z-index: 100;
    margin-top: 55px;
}

.mobile-indicator-labels {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    overflow: hidden;
}

.mobile-indicator-label {
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    color: var(--text-secondary, #888);
    font-size: 10px;
    opacity: 0.3;
    font-weight: normal;
}

.mobile-indicator-label.active {
    color: var(--accent-gold, #d4af37);
    font-size: 14px;
    font-weight: bold;
    opacity: 1;
    font-family: 'Cinzel';
}

.mobile-indicator-label.adjacent {
    font-size: 12px;
    opacity: 0.6;
    color: var(--text-secondary, #aaa);
    font-family: 'Cinzel';
}

.mobile-indicator-label.outer {
    font-size: 10px;
    opacity: 0.3;
    color: var(--text-muted, #666);
    font-family: 'Cinzel';
}

.mobile-indicator-label.hidden {
    display: none;
}

/* Mobile Swipe Slides Container */
.mobile-swipe-slides {
display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    height: calc(100vh - 56px);
    padding-top: 5px;
}

.mobile-swipe-slides::-webkit-scrollbar {
    display: none;
}

/* Individual Slide */
.mobile-swipe-slide {
    min-width: 100%;
    flex-shrink: 0;
    scroll-snap-align: start;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0.5rem;
    box-sizing: border-box;
}

.mobile-slide-header {
    font-size: 1.2rem;
    font-weight: 1000;
    color: var(--accent-gold, #d4af37);
    text-align: center;
    margin-bottom: 0.5rem;
    padding-bottom: 0rem;
    border-bottom: 1px solid #433b1d;
    font-family: 'Cinzel';
}

.mobile-slide-content {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

/* Slide 1: Översikt */
.mobile-portrait {
    display: flex;
    justify-content: center;
    margin-bottom: 0.5rem;
}

.mobile-portrait .race-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid var(--accent-gold, #d4af37);
}

.mobile-char-name {
    font-size: 1.25rem;
    text-align: center;
    font-weight: bold;
    background: var(--bg-elevated, #1a1a1a);
    border: 2px solid var(--accent-gold, #d4af37);
    border-radius: 8px;
    padding: 0.75rem;
    color: var(--text-primary, #fff);
}

.mobile-input,
.mobile-select {
    width: 100%;
    padding: 0.75rem;
    background: var(--bg-elevated, #1a1a1a);
    border: 1px solid var(--border-panel, #333);
    border-radius: 6px;
    color: var(--text-primary, #fff);
    font-size: 1rem;
    min-height: 44px; /* Touch target */
}

.mobile-field-group {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.mobile-field-group label {
    color: #cdaa24;
    font-weight: 100;
    font-family: 'Cinzel';
    font-size: 0.675rem;
}

.mobile-ability-box {
    background: var(--bg-elevated, #1a1a1a);
    border: 1px solid #d4af3740;
    border-radius: 3px;
    padding: 0.45rem;
}

.mobile-ability-label {
    font-weight: bold;
    color: var(--accent-gold, #d4af37);
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
    font-family: 'Cinzel';
}

.mobile-ability-text {
    color: var(--text-primary, #fff);
    font-size: 0.875rem;
    line-height: 1.4;
    font-family: 'Crimson Text';
    letter-spacing: 0.5px;
}

/* Slide 2: Grundegenskaper */
.mobile-attr-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.2rem;
    margin-bottom: 0rem;
}

.mobile-attr-box {
    background: linear-gradient(165deg, #1e2128, #12141a);
    border: 2px solid var(--border-panel, #333);
    border-radius: 8px;
    padding: 0.2rem;
    height: 110px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0rem;
}

.mobile-attr-box.mobile-condition-active {
    border: 1px solid #6b2b2b;
    background: rgba(198, 40, 40, 0.1);
}

.mobile-attr-label {
    font-weight: 1000;
    font-size: 1.1rem;
    color: var(--accent-gold, #d4af37);
    font-family: 'Cinzel';
}

.mobile-attr-input {
    width: 60px;
    padding: 0.5rem;
    background: var(--bg-secondary, #0a0a0a);
    border: 1px solid var(--border-panel, #333);
    border-radius: 4px;
    color: var(--text-primary, #fff);
    font-size: 1.25rem;
    font-weight: bold;
    text-align: center;
}

.mobile-condition-checkbox {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
}

.mobile-condition-diamond {
    width: 14px;
    height: 14px;
    background: var(--bg-secondary, #0a0a0a);
    border: 2px solid var(--accent-gold, #d4af37);
    transform: rotate(45deg);
    transition: background 0.2s ease;
}

.mobile-condition-checkbox.checked .mobile-condition-diamond {
    background: var(--accent-gold, #d4af37);
}

.mobile-condition-label {
    font-size: 0.75rem;
    color: var(--text-secondary, #aaa);
    text-align: center;
}

.mobile-secondary-stats {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.mobile-stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-elevated, #1a1a1a);
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    border: 1px solid var(--border-panel, #333);
    height: 50px;
    font-family: 'Cinzel';
}

.mobile-stat-row label {
    font-size: 0.9rem;
    color: var(--text-secondary, #aaa);
}

.mobile-input-small {
    width: 80px;
    padding: 0.5rem;
    background: var(--bg-secondary, #0a0a0a);
    border: 1px solid var(--border-panel, #333);
    border-radius: 4px;
    color: var(--text-primary, #fff);
    text-align: center;
    min-height: 44px;
}

/* Slide 3: Färdigheter */
.mobile-skills-content {
    padding-bottom: 2rem; /* Extra padding for scrolling */
}

.mobile-skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.25rem;
}

.mobile-skill-row {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    background: linear-gradient(165deg, #1a1d24, #13151b);
    padding: 0.25rem;
    border-radius: 4px;
    border: 1px solid #2d3341a3;
    min-height: 36px;
    height: 40px;
}

.mobile-skill-core {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
}

.mobile-skill-core::before {
    content: '';
    width: 10px;
    height: 10px;
    background: var(--bg-secondary, #0a0a0a);
    border: 1px solid var(--accent-gold, #d4af37);
    transform: rotate(45deg);
    transition: background 0.2s ease;
}

.mobile-skill-core.checked::before {
    background: var(--accent-gold, #d4af37);
}

.mobile-skill-value {
    width: 36px;
    padding: 0.25rem;
    background: var(--bg-secondary, #0a0a0a);
    border: 1px solid var(--border-panel, #333);
    border-radius: 3px;
    color: var(--text-primary, #fff);
    text-align: center;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.mobile-skill-name {
    color: var(--text-primary, #fff);
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-family: 'Cinzel';
    font-size: 0.7rem;
}

.mobile-skill-attr {
    font-size: 0.7rem;
    color: #c59d3d;
    flex-shrink: 0;
    font-family: 'Cinzel';
}

/* Slide 4: Vapenfärdigheter */
.mobile-weapon-skills-grid {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.mobile-weapon-skill-row {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    background: var(--bg-elevated, #1a1a1a);
    padding: 0.3rem;
    border-radius: 6px;
    border: 1px solid var(--border-panel, #333);
    min-height: 40px;
}

/* Slide 5: KP & VP */
.mobile-hp-box,
.mobile-vp-box {
    background: linear-gradient(165deg, #1e2128, #12141a);
    border: 1px solid #2b2b2b;
    border-radius: 8px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.mobile-hp-label,
.mobile-vp-label {
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--accent-gold, #d4af37);
    text-align: center;
    font-family: 'Cinzel';
}

.mobile-hp-display,
.mobile-vp-display {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.mobile-hp-btn,
.mobile-vp-btn {
    width: 44px;
    height: 44px;
    background: linear-gradient(165deg, #1e2128, #12141a);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 50%;
    color: var(--accent-gold);
    font-size: 1.3rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.mobile-hp-btn:active,
.mobile-vp-btn:active {
    background: var(--accent-gold, #d4af37);
    color: var(--bg-primary, #0d0d0d);
    transform: scale(0.95);
}

.mobile-hp-value,
.mobile-vp-value {
    flex: 1;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text-primary, #fff);
    text-align: center;
    font-family: 'Cinzel Decorative';
}

.mobile-death-saves {
    background: linear-gradient(165deg, #1a1d24, #13151b);
    border: 1px solid #2d3341a3;
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
}

.mobile-death-saves-label {
    font-size: 1rem;
    font-weight: bold;
    color: var(--accent-gold, #d4af37);
    text-align: center;
    margin-bottom: 0.75rem;
    font-family: 'Cinzel Decorative';
}

.mobile-death-group {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.mobile-death-group label {
    font-size: 0.9rem;
    color: var(--text-secondary, #aaa);
}

.mobile-death-pips {
    display: flex;
    gap: 0.5rem;
}

.mobile-death-pip {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid var(--border-panel, #333);
    background: var(--bg-secondary, #0a0a0a);
    cursor: pointer;
    transition: all 0.2s ease;
}

.mobile-death-pip.success {
    border-color: var(--success-green, #4caf50);
}

.mobile-death-pip.success.filled {
    background: var(--success-green, #4caf50);
}

.mobile-death-pip.failure {
    border-color: var(--brand-red, #c62828);
}

.mobile-death-pip.failure.filled {
    background: var(--brand-red, #c62828);
}

/* Slide 6: Rustning & Vapen */
.mobile-armor-section {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.mobile-armor-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    background: var(--bg-elevated, #1a1a1a);
    padding: 0.75rem;
    border-radius: 6px;
    border: 1px solid var(--border-panel, #333);
}

.mobile-armor-row label {
    font-size: 0.9rem;
    color: var(--text-secondary, #aaa);
    white-space: nowrap;
    font-family: 'Cinzel';
}

.mobile-input-armor {
    flex: 1;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0.5rem;
    background: var(--bg-secondary, #0a0a0a);
    border: 1px solid var(--border-panel, #333);
    border-radius: 4px;
    color: var(--text-primary, #fff);
    min-height: 44px;
}

.mobile-armor-prot-label {
    font-size: 0.85rem;
}

.mobile-input-prot {
    width: 55px;
    min-width: 55px;
    max-width: 55px;
    box-sizing: border-box;
    padding: 0.5rem;
    background: var(--bg-secondary, #0a0a0a);
    border: 1px solid var(--border-panel, #333);
    border-radius: 4px;
    color: var(--text-primary, #fff);
    text-align: center;
    min-height: 44px;
}

.mobile-weapons-label {
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--accent-gold, #d4af37);
    margin-bottom: 0.5rem;
    font-family: 'Cinzel';
}

.mobile-weapons-table {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.mobile-weapons-empty {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted, #666);
    font-style: italic;
}

.mobile-weapon-card {
    max-width: 100%;
    box-sizing: border-box;
    background: var(--bg-elevated, #1a1a1a);
    border: 1px solid var(--border-panel, #333);
    border-radius: 6px;
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mobile-weapon-name {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    padding: 0.5rem;
    background: var(--bg-secondary, #0a0a0a);
    border: 1px solid var(--accent-gold, #d4af37);
    border-radius: 4px;
    color: var(--text-primary, #fff);
    font-weight: bold;
    min-height: 44px;
}

.mobile-weapon-details {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
}

.mobile-weapon-features {
    grid-column: 1 / -1;
    text-align: left !important;
}

.mobile-weapon-stat {
    min-width: 0;
    box-sizing: border-box;
    padding: 0.5rem;
    background: var(--bg-secondary, #0a0a0a);
    border: 1px solid var(--border-panel, #333);
    border-radius: 4px;
    color: var(--text-primary, #fff);
    text-align: center;
    font-size: 0.85rem;
    min-height: 44px;
}

/* Slide 7: Mynt & Erfarenhet */
.mobile-currency-section {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.mobile-currency-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--bg-elevated, #1a1a1a);
    padding: 0.75rem;
    border-radius: 6px;
    border: 1px solid var(--border-panel, #333);
}

.mobile-currency-icon {
    font-size: 1.5rem;
    width: 32px;
    text-align: center;
}

.mobile-currency-row label {
    flex: 1;
    font-size: 1rem;
    color: var(--text-primary, #fff);
    font-family: 'Cinzel';
}

.mobile-currency-input {
    width: 100px;
    padding: 0.5rem;
    background: var(--bg-secondary, #0a0a0a);
    border: 1px solid var(--border-panel, #333);
    border-radius: 4px;
    color: var(--text-primary, #fff);
    text-align: center;
    font-size: 1rem;
    font-weight: bold;
    min-height: 44px;
}

.mobile-xp-section {
    background: var(--bg-elevated, #1a1a1a);
    border: 2px solid var(--accent-gold, #d4af37);
    border-radius: 8px;
    padding: 1rem;
}

.mobile-xp-label {
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--accent-gold, #d4af37);
    text-align: center;
    margin-bottom: 0.75rem;
    font-family: 'Cinzel';
}

.mobile-xp-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-panel, #333);
}

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

.mobile-xp-row label {
    font-size: 0.95rem;
    color: var(--text-secondary, #aaa);
    font-family: 'Cinzel';
}

.mobile-xp-value {
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--text-primary, #fff);
}

/* Remove number input spinners on mobile */
input[type="number"].mobile-attr-input::-webkit-inner-spin-button,
input[type="number"].mobile-attr-input::-webkit-outer-spin-button,
input[type="number"].mobile-skill-value::-webkit-inner-spin-button,
input[type="number"].mobile-skill-value::-webkit-outer-spin-button,
input[type="number"].mobile-input-small::-webkit-inner-spin-button,
input[type="number"].mobile-input-small::-webkit-outer-spin-button,
input[type="number"].mobile-input-prot::-webkit-inner-spin-button,
input[type="number"].mobile-input-prot::-webkit-outer-spin-button,
input[type="number"].mobile-currency-input::-webkit-inner-spin-button,
input[type="number"].mobile-currency-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Ensure proper touch scrolling */
.mobile-swipe-slide {
    -webkit-overflow-scrolling: touch;
}

/* Prevent text selection during swipe */
.mobile-swipe-slides {
    -webkit-user-select: none;
    user-select: none;
}

/* But allow text selection in inputs */
.mobile-swipe-slide input,
.mobile-swipe-slide select,
.mobile-swipe-slide textarea {
    -webkit-user-select: text;
    user-select: text;
    font-family: 'Crimson Text';
    letter-spacing: 0.5px;
    color: #e1e1e1;
    border-radius: 3px;
    background: linear-gradient(165deg, #1a1d24, #13151b);
    background-color: #14161c;
    padding: 5px;
}

@media print {
    .mobile-swipe-container {
        display: none !important;
    }
}

/* ===== SWIPE HINT OVERLAY ===== */
.mobile-swipe-hint-overlay {
    display: none;
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
    z-index: 200;
    align-items: center;
    justify-content: center;
}

.mobile-hint-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 2rem;
    text-align: center;
}

@keyframes mobileHintSwipe {
    0%   { transform: translateX(-24px); }
    50%  { transform: translateX(24px); }
    100% { transform: translateX(-24px); }
}

.mobile-hint-hand {
    font-size: 2.5rem;
    animation: mobileHintSwipe 1.6s ease-in-out infinite;
}

.mobile-hint-arrows {
    font-size: 1.8rem;
    color: var(--accent-gold, #d4af37);
    letter-spacing: 0.5rem;
}

.mobile-hint-text {
    font-size: 1rem;
    color: var(--text-primary, #fff);
    font-family: 'Crimson Text', serif;
    letter-spacing: 0.5px;
    max-width: 240px;
    line-height: 1.5;
}

.mobile-hint-dismiss {
    margin-top: 0.5rem;
    padding: 0.75rem 1.75rem;
    min-height: 44px;
    background: transparent;
    border: 2px solid var(--accent-gold, #d4af37);
    border-radius: 6px;
    color: var(--accent-gold, #d4af37);
    font-size: 1rem;
    font-family: 'Cinzel', serif;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.mobile-hint-dismiss:active {
    background: var(--accent-gold, #d4af37);
    color: var(--bg-primary, #0d0d0d);
}

/* ===== DOT POSITION INDICATORS ===== */
.mobile-dot-indicators {
    display: none;
}

@media screen and (max-width: 768px) {
    .mobile-dot-indicators {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 8px;
        padding: 5px 0 4px;
        padding-bottom: 7px;
        background: var(--bg-elevated, #1a1a1a);
        border-bottom: 2px solid var(--accent-gold, #d4af37);
    }
}

.mobile-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #3a3a42;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    flex-shrink: 0;
}

.mobile-dot.active {
    background: var(--accent-gold, #d4af37);
    transform: scale(1.35);
}

/* ===== EDGE INDICATORS ===== */
/* .mobile-swipe-container is position:fixed, which creates the containing block for these */
.mobile-edge-indicator {
    display: none;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    pointer-events: none;
    font-size: 1.3rem;
    color: var(--accent-gold, #d4af37);
    opacity: 0.7;
}

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

@media screen and (max-width: 768px) {
    .mobile-edge-left {
        left: 6px;
        animation: mobileEdgePulse 1.8s ease-in-out infinite;
    }

    .mobile-edge-right {
        right: 6px;
        animation: mobileEdgePulse 1.8s ease-in-out infinite;
    }
}

/* ===== BOTTOM NAVIGATION BAR ===== */
.mobile-bottom-nav {
    display: none;
}

@media screen and (max-width: 768px) {
    .mobile-bottom-nav {
        display: flex;
        align-items: center;
        justify-content: space-between;
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 56px;
        padding: 0 0.75rem;
        background: var(--bg-elevated, #1a1a1a);
        border-top: 1px solid var(--accent-gold, #d4af37);
        z-index: 50;
    }
}

.mobile-nav-btn {
    min-width: 44px;
    min-height: 44px;
    padding: 0 0.75rem;
    background: transparent;
    border: 1px solid var(--accent-gold, #d4af37);
    border-radius: 6px;
    color: var(--accent-gold, #d4af37);
    font-size: 1.25rem;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.mobile-nav-btn:active {
    background: var(--accent-gold, #d4af37);
    color: var(--bg-primary, #0d0d0d);
}

.mobile-nav-btn:disabled {
    opacity: 0.3;
    cursor: default;
}

.mobile-nav-counter {
    font-size: 0.95rem;
    color: var(--text-secondary, #aaa);
    font-family: 'Cinzel', serif;
}

/* Account for bottom nav height (56px) in slide content, with 8px extra breathing room */
@media screen and (max-width: 768px) {
    .mobile-swipe-slide {
        padding-bottom: 64px;
        max-width: 100%;
    }
}

/* Packning slide */
.mobile-carry-section {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color, #333);
}

.mobile-carry-label,
.mobile-smallitems-label {
    font-size: 0.9rem;
    color: var(--accent-gold, #d4af37);
    font-family: 'Cinzel', serif;
    font-weight: 600;
    white-space: nowrap;
}

.mobile-barvarde-label {
    margin-left: auto;
    font-size: 0.8rem;
    color: var(--text-secondary, #aaa);
    white-space: nowrap;
}

.mobile-barvarde-counter {
    font-size: 0.9rem;
    color: var(--accent-gold, #d4af37);
    font-family: 'Cinzel', serif;
    font-weight: 600;
    white-space: nowrap;
}

.mobile-inventory-section {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-bottom: 1rem;
}

.mobile-inventory-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.mobile-inventory-num {
    min-width: 1.4rem;
    text-align: right;
    font-size: 0.85rem;
    color: var(--text-secondary, #aaa);
    font-family: 'Cinzel', serif;
}

.mobile-inventory-input {
    flex: 1;
}

.mobile-inventory-value {
    width: 70px;
    flex-shrink: 0;
}

.mobile-smallitems-section {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.mobile-smallitems-textarea {
    width: 100%;
    min-height: 80px;
    background: var(--bg-elevated, #1a1a1a);
    border: 1px solid var(--border-color, #444);
    border-radius: 6px;
    color: var(--text-primary, #e8e0d0);
    font-size: 0.95rem;
    padding: 0.5rem 0.6rem;
    resize: vertical;
    box-sizing: border-box;
    font-family: inherit;
}

.mobile-smallitems-textarea:focus {
    outline: none;
    border-color: var(--accent-gold, #d4af37);
}
