/* --- MAIN GRID CONTAINER --- */
.layout {
    --mint-pad: 24px;
    --mint-gap: 24px;
    --mint-left-w: 340px;
    --mint-right-w: 440px;
    --mint-size: 320px;
    --mint-glyph-size: 14vmin;
    --mint-stack-center-h: auto;

    position: absolute;
    inset: 0;
    z-index: 10;
    display: flex;
    gap: var(--mint-gap);
    padding: var(--mint-pad);
    min-width: 0;
    min-height: 0;
    pointer-events: none;
}

/* Re-enable clicks on panels */
.panel-left,
.panel-center,
.panel-right {
    pointer-events: auto;
    min-width: 0;
    min-height: 0;
}

/* --- PANEL PRESETS --- */
.panel-left,
.panel-right {
    display: flex;
    flex-direction: column;
    background: var(--panel-bg);
    backdrop-filter: blur(28px) saturate(1.2);
    -webkit-backdrop-filter: blur(28px) saturate(1.2);
    border: 1px solid var(--panel-border);
    border-radius: var(--radius);
    box-shadow:
        0 24px 48px rgba(0, 0, 0, 0.55),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
    height: 100%;
    min-height: 0;
    transition: width 0.18s ease, transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@media (prefers-reduced-motion: reduce), (hover: none) {
    .panel-left,
    .panel-right {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        background: rgba(15, 15, 15, 0.96);
        transition: none;
    }
}

/* --- SPECIFIC PANELS --- */
.panel-left {
    width: var(--mint-left-w);
    flex: 0 0 var(--mint-left-w);
    padding: 0;
    overflow: hidden;
}

.panel-left-content {
    flex: 1;
    overflow-x: hidden;
    overflow-y: auto;
    padding: clamp(14px, 2.2vw, 28px);
    display: flex;
    flex-direction: column;
    gap: clamp(14px, 2vw, 28px);
}

.panel-center {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    min-width: 0;
    overflow: hidden;
}

.panel-right {
    width: var(--mint-right-w);
    flex: 0 0 var(--mint-right-w);
}

/* --- SHOP STRUCTURE --- */
.shop-header {
    flex-shrink: 0;
    padding: clamp(12px, 1.6vw, 24px) clamp(14px, 1.8vw, 28px);
    border-bottom: 1px solid var(--panel-border);
    background: rgba(255, 255, 255, 0.015);
    display: flex;
    flex-direction: column;
    gap: clamp(8px, 1vw, 12px);
}

.shop-list {
    flex: 1;
    overflow-y: auto;
    padding: clamp(12px, 1.5vw, 20px);
    mask-image: linear-gradient(to bottom, black 94%, transparent 100%);
}

/* --- HEIGHT COMPACTION --- */
body[data-mint-height="short"] .panel-left-content {
    gap: 14px;
    padding: 16px;
}

body[data-mint-height="short"] .nav-readout {
    margin-bottom: 16px;
}

body[data-mint-height="short"] .nav-line {
    font-size: clamp(1.6rem, 4.2vw, 2.5rem);
}

body[data-mint-height="short"] .prestige-container {
    padding: 14px;
    margin-bottom: 12px;
}

body[data-mint-height="tiny"] .panel-left-content {
    gap: 10px;
    padding: 12px;
}

body[data-mint-height="tiny"] .nav-readout {
    margin-bottom: 10px;
}

body[data-mint-height="tiny"] .nav-line {
    font-size: clamp(1.35rem, 3.8vw, 2rem);
}

body[data-mint-height="tiny"] .ops-tools {
    display: none;
}

body[data-mint-height="tiny"] .news-bar {
    transform: scale(0.92);
    transform-origin: bottom center;
}

/* --- COMPACT / MEDIUM WIDTH --- */
body[data-mint-layout="medium"] .panel-left-content,
body[data-mint-layout="compact"] .panel-left-content {
    padding: 14px;
    gap: 14px;
}

body[data-mint-layout="compact"] .ops-links {
    grid-template-columns: 1fr 1fr;
}

body[data-mint-layout="compact"] .ops-tool {
    font-size: 0.62rem;
    padding: 6px 4px;
}

body[data-mint-layout="compact"] .shop-header {
    padding: 12px 12px 10px;
}

body[data-mint-layout="compact"] .hype-hint {
    display: block;
}

/* --- STACKED (narrow / short) --- */
body[data-mint-layout="stacked"] .layout {
    flex-direction: column;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    pointer-events: auto;
    gap: var(--mint-gap);
}

body[data-mint-layout="stacked"] .panel-left,
body[data-mint-layout="stacked"] .panel-right,
body[data-mint-layout="stacked"] .panel-center {
    width: 100%;
    flex: none;
    height: auto;
}

body[data-mint-layout="stacked"] .panel-center {
    order: 1;
    height: var(--mint-stack-center-h);
    min-height: 160px;
    max-height: 46vh;
    overflow: hidden;
}

body[data-mint-layout="stacked"] .panel-left {
    order: 2;
    height: auto;
    max-height: none;
    flex: 0 0 auto;
}

body[data-mint-layout="stacked"] .panel-left-content {
    overflow: visible;
}

body[data-mint-layout="stacked"] .panel-right {
    order: 3;
    height: min(520px, 62vh);
    min-height: 280px;
}

body[data-mint-layout="stacked"] .big-button-container {
    max-height: none;
}
