/* ===== Cheese Rush Landing - Widget Style ===== */

/* CSS Variables - From Widget */
:root {
    /* Widget Colors */
    --bg-cream: #FFFBEF;
    --bg-highlight: #F5FBB7;
    --text-dark: #262626;
    --text-brown: #74554C;
    --border-dark: #262626;

    /* Rarity Colors (from widget) */
    --rarity-common: #607488;
    --rarity-uncommon: #6257FF;
    --rarity-rare: #F83BFF;
    --rarity-epic: #FF693B;
    --rarity-legendary: #FF3B3F;

    /* Leaderboard Colors */
    --rank-1: #FFBC43;
    --rank-2: #F0F600;
    --rank-3: #F0F600;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Fredoka', sans-serif;
    background: var(--bg-cream);
    color: var(--text-dark);
    line-height: 1.6;
    min-height: 100vh;
}

/* Page Wrapper */
.page-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
}

/* ===== HEADER ===== */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    background: var(--bg-cream);
    border: 3px solid var(--border-dark);
    border-radius: 14px;
    margin-bottom: 30px;
    box-shadow: 2px 4px 12px rgba(0, 0, 0, 0.15);
}

.logo-section {
    text-align: center;
}

.logo-tagline {
    font-weight: 500;
    font-size: 11px;
    color: var(--text-brown);
    letter-spacing: 2px;
    display: block;
    margin-bottom: 4px;
    text-transform: uppercase;
}

.logo-main {
    font-weight: 700;
    font-size: 36px;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 1.4px;
    text-shadow:
        -2px -2px 0 #fff,
         2px -2px 0 #fff,
        -2px  2px 0 #fff,
         2px  2px 0 #fff;
}

.logo-subtitle {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-brown);
}

/* Navigation */
.main-nav {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-btn {
    font-weight: 600;
    font-size: 14px;
    padding: 10px 18px;
    border: 2.4px solid var(--border-dark);
    border-radius: 5px;
    text-decoration: none;
    color: var(--text-dark);
    background: transparent;
    transition: all 0.2s ease;
    transform: skewX(-2deg);
}

.nav-btn:hover,
.nav-btn.active {
    background: var(--rank-1);
}

.nav-btn.etsy-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #F1641E;
    color: #fff;
    border-color: #F1641E;
}

.nav-btn.etsy-btn:hover {
    background: #d45517;
}

.etsy-icon {
    width: 16px;
    height: 16px;
}

/* ===== SECTION CARDS ===== */
.section-card {
    background: var(--bg-cream);
    border: 3px solid var(--border-dark);
    border-radius: 14px;
    padding: 40px 30px;
    margin-bottom: 24px;
    box-shadow: 2px 4px 12px rgba(0, 0, 0, 0.15);
}

.section-header {
    text-align: center;
    margin-bottom: 30px;
}

.section-title {
    font-weight: 700;
    font-size: 36px;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 1.4px;
    text-shadow:
        -2px -2px 0 #fff,
         2px -2px 0 #fff,
        -2px  2px 0 #fff,
         2px  2px 0 #fff;
}

.section-note {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-brown);
    margin-top: 8px;
}

/* ===== HOW TO PLAY - STEPS ===== */
.steps-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.step-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: transparent;
    border: 2.5px solid var(--border-dark);
    border-radius: 7px;
    padding: 24px 20px;
    width: 220px;
    position: relative;
}

.step-number {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    width: 32px;
    height: 32px;
    background: var(--rank-1);
    color: var(--text-dark);
    font-weight: 700;
    font-size: 18px;
    border: 2.5px solid var(--border-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-icon-wrap {
    width: 90px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.step-icon-wrap img {
    max-width: 85px;
    max-height: 85px;
    object-fit: contain;
}

.step-title {
    font-weight: 700;
    font-size: 18px;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.step-desc {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-brown);
    margin-bottom: 12px;
    line-height: 1.4;
}

.command-badge {
    font-weight: 700;
    font-size: 14px;
    padding: 6px 16px;
    background: var(--text-dark);
    color: #fff;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.command-badge.secondary {
    background: var(--rarity-uncommon);
}

.command-badge.danger {
    background: var(--rarity-epic);
}

.step-arrow {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-dark);
}

/* ===== OUTCOMES SECTION ===== */
.outcomes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.outcome-card {
    background: transparent;
    border: 2.5px solid var(--border-dark);
    border-radius: 7px;
    padding: 24px 16px;
    text-align: center;
    position: relative;
}

.outcome-card.win {
    background: var(--bg-highlight);
}

.outcome-percent {
    position: absolute;
    top: 12px;
    right: 12px;
    font-weight: 700;
    font-size: 20px;
    color: var(--text-brown);
}

.outcome-icon {
    width: 90px;
    height: 90px;
    margin: 0 auto 12px;
}

.outcome-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.outcome-title {
    font-weight: 700;
    font-size: 22px;
    color: var(--text-dark);
    margin-bottom: 6px;
    text-transform: uppercase;
}

.outcome-desc {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-brown);
    margin-bottom: 12px;
}

.outcome-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    font-size: 12px;
    padding: 6px 14px;
    border-radius: 4px;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.outcome-badge.win {
    background: #4CAF50;
}

.outcome-badge.whacked {
    background: var(--rarity-epic);
}

.outcome-badge.lose {
    background: var(--rarity-common);
}

.badge-star {
    width: 18px;
    height: 18px;
}

/* ===== CHEESE COLLECTION ===== */

/* Layout: Alert left, Table right */
.cheese-layout {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    justify-content: center;
}

/* Left: Alert side */
.cheese-alert-side {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
}

.alert-demo {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cheese-alert-item-demo {
    display: flex;
    flex-direction: column;
    align-items: center;
    transform-origin: top center;
    transform: scale(0.75);
}

.cheese-alert-item-demo.roll-anim {
    animation: rollBounce 0.5s ease-out;
}

@keyframes rollBounce {
    0% { transform: scale(0.5) rotate(-10deg); opacity: 0; }
    50% { transform: scale(0.8) rotate(5deg); opacity: 1; }
    100% { transform: scale(0.75) rotate(0deg); opacity: 1; }
}

/* Cheese image above the tag */
.cheese-alert-item-demo .label-cheese-img {
    width: 140px;
    height: 120px;
    object-fit: contain;
    position: relative;
    z-index: 4;
    filter: drop-shadow(2px 4px 6px rgba(0, 0, 0, 0.3));
    margin-bottom: -40px;
    transform: rotate(-7deg);
}

/* Rope SVG */
.cheese-alert-item-demo .label-rope {
    width: 40px;
    height: 110px;
    position: relative;
    z-index: 3;
    margin-bottom: -22px;
    margin-left: -3px;
    flex-shrink: 0;
}

/* Label body (price tag) */
.cheese-alert-item-demo .label-body {
    position: relative;
    width: 160px;
    z-index: 1;
    display: flex;
    flex-direction: column;
}

/* SVG background */
.cheese-alert-item-demo .label-bg-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: visible;
}

/* Content overlay */
.cheese-alert-item-demo .label-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 45px 12px 55px;
}

/* Rarity badge */
.cheese-alert-item-demo .label-rarity-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px 10px;
    border: 2px solid #262626;
    border-radius: 4px;
    background: #FFFBEF;
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Score display */
.cheese-alert-item-demo .label-score {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-weight: 700;
    font-size: 36px;
    color: #262626;
    line-height: 1;
}

.cheese-alert-item-demo .label-score-icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

/* Stars row */
.cheese-alert-item-demo .label-stars {
    display: flex;
    gap: 2px;
    justify-content: center;
}

.cheese-alert-item-demo .label-stars .star-icon {
    width: 16px;
    height: 16px;
}

/* Cheese name */
.cheese-alert-item-demo .label-cheese-name {
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    color: #100717;
    letter-spacing: 1px;
    text-align: center;
}

/* Player name section (colored bar) */
.cheese-alert-item-demo .label-player-section {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    font-weight: 700;
    font-size: 11px;
    color: #FFFBEF;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 0 0 20px 20px;
}

/* Calculator info */
.calc-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    margin-top: -20px;
    margin-bottom: 10px;
}

.calc-mult {
    font-weight: 700;
    font-size: 20px;
    color: var(--rarity-legendary);
}

.calc-base {
    font-size: 11px;
    color: var(--text-brown);
}

/* Roll button */
.roll-btn {
    font-family: 'Fredoka', sans-serif;
    font-weight: 700;
    font-size: 14px;
    padding: 10px 20px;
    background: var(--rank-1);
    color: var(--text-dark);
    border: 2.5px solid var(--border-dark);
    border-radius: 7px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.roll-btn:hover {
    background: var(--rank-2);
    transform: scale(1.05);
}

.roll-btn:active {
    transform: scale(0.95);
}

/* Right: Compact Rarity Table */
.rarity-table {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-width: 420px;
}

.rarity-row-compact {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 12px;
    border: 2px solid var(--border-dark);
    border-radius: 6px;
    background: transparent;
}

.rarity-row-compact.legendary-row {
    background: var(--bg-highlight);
}

.rt-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 3px 8px;
    border: 2px solid var(--border-dark);
    border-radius: 3px;
    background: var(--bg-cream);
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    min-width: 90px;
    flex-shrink: 0;
}

.rt-badge.common { color: var(--rarity-common); }
.rt-badge.uncommon { color: var(--rarity-uncommon); }
.rt-badge.rare { color: var(--rarity-rare); }
.rt-badge.epic { color: var(--rarity-epic); }
.rt-badge.legendary { color: var(--rarity-legendary); }

.rt-pts {
    font-weight: 600;
    font-size: 13px;
    color: var(--text-brown);
    min-width: 50px;
    flex-shrink: 0;
}

.rarity-row-compact img {
    width: 36px;
    height: 36px;
    object-fit: contain;
    filter: drop-shadow(1px 2px 2px rgba(0,0,0,0.15));
    transition: transform 0.2s ease;
}

.rarity-row-compact img:hover {
    transform: scale(1.2);
}

/* Star multipliers info - in Star System section */
.stars-mult-info {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    background: var(--bg-cream);
    border: 2px solid var(--border-dark);
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin-top: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.mult-item {
    background: var(--bg-highlight);
    padding: 4px 10px;
    border-radius: 4px;
    border: 2px solid var(--border-dark);
    font-size: 14px;
}

/* ===== STARS SECTION ===== */
.stars-section {
    background: var(--rank-1);
    border-color: var(--border-dark);
}

.stars-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.stars-visual {
    display: flex;
    gap: 6px;
}

.star-icon {
    width: 36px;
    height: 36px;
}

.stars-info {
    text-align: left;
}

.stars-info h3 {
    font-weight: 700;
    font-size: 24px;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.stars-info p {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-dark);
}

.stars-bonus {
    font-weight: 700 !important;
}

/* ===== COMMANDS SECTION ===== */
.commands-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    max-width: 700px;
    margin: 0 auto;
}

.command-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: transparent;
    border: 2.5px solid var(--border-dark);
    border-radius: 5px;
    padding: 12px 16px;
    transform: skewX(-1deg);
    transition: all 0.2s ease;
}

.command-item:hover {
    background: var(--rank-2);
}

.command-item code {
    font-family: 'Fredoka', sans-serif;
    font-weight: 700;
    font-size: 16px;
    background: var(--text-dark);
    color: #fff;
    padding: 6px 12px;
    border-radius: 4px;
    min-width: 90px;
    text-align: center;
}

.command-item span {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark);
}

/* ===== ENERGY SECTION ===== */
.energy-section {
    background: var(--rarity-uncommon);
    border-color: var(--border-dark);
}

.energy-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.energy-icon {
    width: 50px;
    height: 50px;
    color: #fff;
}

.energy-icon svg {
    width: 100%;
    height: 100%;
}

.energy-info h3 {
    font-weight: 700;
    font-size: 24px;
    color: #fff;
    margin-bottom: 4px;
}

.energy-info p {
    font-size: 15px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    max-width: 400px;
}

/* ===== LEADERBOARD & STATS SECTION ===== */
.panels-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 30px;
}

.panel-preview {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.panel-demo {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Leaderboard Demo */
.leaderboard-demo .lb-label-body {
    width: 320px;
    background: var(--bg-cream);
    border: 3px solid var(--border-dark);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 2px 4px 12px rgba(0, 0, 0, 0.15);
}

.lb-header-bar {
    background: var(--text-dark);
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px 11px 0 0;
}

.lb-header-text {
    font-weight: 700;
    font-size: 28px;
    color: #fff;
    text-transform: uppercase;
    text-align: center;
}

.lb-entries {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px 14px 14px;
}

.lb-row {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 14px 0 14px;
    height: 42px;
    border: 2.4px solid var(--border-dark);
    border-radius: 5px;
    font-weight: 600;
    font-size: 16px;
    color: var(--text-dark);
    transform: skewX(-1deg);
    background: transparent;
}

.lb-row.lb-rank-1 { background: var(--rank-1); }
.lb-row.lb-rank-2 { background: var(--rank-2); }
.lb-row.lb-rank-3 { background: var(--rank-2); }

.lb-row-rank {
    flex-shrink: 0;
    min-width: 24px;
    font-weight: 700;
}

.lb-row-name {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lb-row-dash {
    flex-shrink: 0;
    color: var(--text-brown);
}

.lb-row-score {
    flex-shrink: 0;
    font-weight: 700;
}

.lb-row-icon {
    width: 18px;
    height: 17px;
    object-fit: contain;
    flex-shrink: 0;
}

/* Stats Panel Demo */
.stats-demo {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stats-label-body {
    position: relative;
    width: 280px;
    background: var(--bg-cream);
    border: 3px solid var(--border-dark);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 2px 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
}

.stats-label-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 14px 16px;
    flex: 1;
}

.stats-label-row {
    display: flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: 2.5px solid var(--border-dark);
    border-radius: 7px;
    padding: 6px 16px;
    min-height: 36px;
}

.stats-label-text {
    font-weight: 600;
    font-size: 18px;
    color: var(--text-dark);
    white-space: nowrap;
}

.stats-label-cheese-icon {
    width: 20px;
    height: 18px;
    object-fit: contain;
}

.stats-label-bar {
    height: 40px;
    background: var(--text-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    border-radius: 0 0 11px 11px;
    flex-shrink: 0;
}

.stats-bar-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.stats-bar-icon {
    width: 18px;
    height: 18px;
    color: #fff;
}

.stats-bar-value {
    font-weight: 600;
    font-size: 20px;
    color: #fff;
}

.stats-bar-divider {
    width: 2px;
    height: 20px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 1px;
}

.stats-label-title {
    font-weight: 700;
    font-size: 14px;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-align: center;
    margin-top: 8px;
}

/* Panel Info */
.panel-info {
    text-align: center;
}

.panel-info h3 {
    font-weight: 700;
    font-size: 20px;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.panel-info p {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-brown);
    margin-bottom: 12px;
}

.panel-command {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    border: 2.5px solid var(--border-dark);
    border-radius: 5px;
    padding: 8px 14px;
}

.panel-command code {
    font-family: 'Fredoka', sans-serif;
    font-weight: 700;
    font-size: 14px;
    background: var(--text-dark);
    color: #fff;
    padding: 4px 10px;
    border-radius: 4px;
}

.panel-command span {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-brown);
}

/* Features List */
.panels-features {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    padding-top: 20px;
    border-top: 2px solid var(--border-dark);
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
}

.feature-icon {
    width: 20px;
    height: 20px;
    color: var(--rarity-uncommon);
}

/* ===== SHOPS SECTION ===== */
.shops-section {
    background: var(--bg-highlight);
}

.shops-content {
    text-align: center;
}

.shops-title {
    font-weight: 700;
    font-size: 24px;
    color: var(--text-dark);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.shops-grid {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.shop-link {
    display: inline-block;
    padding: 12px 30px;
    border: 2.5px solid var(--border-dark);
    border-radius: 7px;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    transition: all 0.2s ease;
    transform: skewX(-2deg);
}

.shop-link.etsy {
    background: #F1641E;
    color: #fff;
    border-color: #F1641E;
}

.shop-link.etsy:hover {
    background: #d45517;
    transform: skewX(-2deg) scale(1.05);
}

.shop-link.gumroad {
    background: #FF90E8;
    color: #000;
    border-color: #FF90E8;
}

.shop-link.gumroad:hover {
    background: #ff6bdf;
    transform: skewX(-2deg) scale(1.05);
}

.shop-link.booth {
    background: #FC4D50;
    color: #fff;
    border-color: #FC4D50;
}

.shop-link.booth:hover {
    background: #e33e41;
    transform: skewX(-2deg) scale(1.05);
}

/* ===== FOOTER ===== */
.footer {
    text-align: center;
    padding: 24px;
    color: var(--text-brown);
    font-size: 15px;
    font-weight: 500;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 16px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 2.5px solid var(--border-dark);
    border-radius: 50%;
    color: var(--text-dark);
    transition: all 0.2s ease;
}

.social-link:hover {
    background: var(--rank-1);
    transform: scale(1.1);
}

.social-link svg {
    width: 22px;
    height: 22px;
}

.footer strong {
    color: var(--text-dark);
    font-weight: 700;
}

.footer-cheese {
    width: 20px;
    height: 20px;
    vertical-align: middle;
    margin: 0 4px;
}

/* ===== ANIMATIONS ===== */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.step-icon-wrap {
    animation: float 3s ease-in-out infinite;
}

.step-card:nth-child(3) .step-icon-wrap {
    animation-delay: 0.3s;
}

.step-card:nth-child(5) .step-icon-wrap {
    animation-delay: 0.6s;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .steps-row {
        flex-direction: column;
    }

    .step-arrow {
        transform: rotate(90deg);
    }

    .outcomes-grid {
        grid-template-columns: 1fr;
    }

    .commands-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .panels-grid {
        grid-template-columns: 1fr;
    }

    .panels-features {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
}

@media (max-width: 768px) {
    .header {
        flex-direction: column;
        gap: 16px;
        padding: 20px;
    }

    .main-nav {
        flex-wrap: wrap;
        justify-content: center;
    }

    .section-title {
        font-size: 26px;
    }

    .section-card {
        padding: 24px 16px;
    }

    .step-card {
        width: 100%;
        max-width: 260px;
    }

    .commands-grid {
        grid-template-columns: 1fr;
    }

    .stars-content {
        flex-direction: column;
        text-align: center;
    }

    .stars-info {
        text-align: center;
    }

    .energy-content {
        flex-direction: column;
        text-align: center;
    }

    .rarity-row {
        flex-wrap: wrap;
        justify-content: center;
    }

    .rarity-cheeses {
        width: 100%;
        justify-content: center;
        margin-top: 4px;
    }

    .cheese-layout {
        flex-direction: column;
        align-items: center;
    }

    .rarity-table {
        width: 100%;
    }

    .shops-grid {
        flex-direction: column;
        align-items: center;
    }

    .shop-link {
        width: 200px;
        justify-content: center;
    }

    .nav-btn.etsy-btn {
        order: -1;
    }

    .stars-mult-info {
        justify-content: center;
    }
}
