*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    /* Logo blues */
    --ink: #0a0a12;
    --navy: #0a1628;
    --blue-deep: #0047ab;
    --blue-mid: #0080ff;
    --blue-bright: #70cfff;
    --blue-glow: rgba(112, 207, 255, 0.35);

    /* Game wood & UI */
    --wood-dark: #4a2c1d;
    --wood-mid: #8b5a2b;
    --wood-plank: #c4956a;
    --wood-light: #d2b48c;
    --cream: #fff9e3;
    --cream-warm: #f5deb3;
    --chocolate: #4b2c20;

    /* Rainbow accents */
    --c-red: #ff4081;
    --c-orange: #ff9800;
    --c-yellow: #ffd700;
    --c-green: #42e641;
    --c-teal: #00bcd4;
    --c-blue: #00bfff;
    --c-purple: #ab47bc;

    /* UI */
    --gold: #ffc107;
    --gold-dark: #e6a800;
    --green-play: #42e641;
    --green-dark: #2e9e2d;
    --forest: #2d5016;
    --text-dark: #4a2c1d;
    --text-muted: #7a5c44;
    --text-light: #fff9e3;
    --white: #ffffff;
    --shadow: 0 10px 32px rgba(74, 44, 29, 0.18);
    --shadow-blue: 0 0 24px rgba(0, 128, 255, 0.25);
    --radius: 20px;
    --radius-sm: 14px;
    --panel-width: 240px;
    --frame-width: 1200px;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Nunito', sans-serif;
    background: var(--ink);
    color: var(--text-dark);
    line-height: 1.7;
    min-height: 100vh;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse at 15% 20%, rgba(0, 128, 255, 0.12) 0%, transparent 55%),
        radial-gradient(ellipse at 85% 80%, rgba(112, 207, 255, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 100%, rgba(66, 230, 65, 0.05) 0%, transparent 40%);
    pointer-events: none;
    z-index: 0;
}

/* ===== Frame ===== */
.site-frame {
    position: relative;
    z-index: 1;
    max-width: var(--frame-width);
    margin: 0 auto;
    min-height: 100vh;
    display: flex;
    box-shadow: 0 0 100px rgba(0, 0, 0, 0.6), var(--shadow-blue);
}

/* ===== Left sidebar — dark wood + blue glow ===== */
.side-panel {
    width: var(--panel-width);
    flex-shrink: 0;
    background:
        repeating-linear-gradient(90deg, transparent, transparent 3px, rgba(0,0,0,0.06) 3px, rgba(0,0,0,0.06) 4px),
        linear-gradient(180deg, #1a0f08 0%, var(--wood-dark) 40%, #2a1810 100%);
    border-right: 2px solid var(--blue-mid);
    box-shadow: inset -8px 0 24px rgba(0, 128, 255, 0.08), 4px 0 20px rgba(0,0,0,0.3);
    display: flex;
    flex-direction: column;
    padding: 20px 0;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}

.side-panel::before {
    content: '';
    position: absolute;
    top: 0; right: 0; bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, transparent, var(--blue-bright), var(--blue-mid), transparent);
    opacity: 0.6;
}

.panel-brand {
    padding: 0 16px 16px;
    text-align: center;
    border-bottom: 1px solid rgba(112, 207, 255, 0.15);
}

.panel-brand-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-decoration: none;
}

.panel-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    filter: drop-shadow(0 0 16px var(--blue-glow));
}

.panel-gameicon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    object-fit: cover;
    border: 2px solid var(--gold);
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
    margin-top: 4px;
}

.panel-studio {
    font-family: 'Fredoka', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: var(--blue-bright);
    letter-spacing: 0.5px;
    text-shadow: 0 0 12px var(--blue-glow);
}

.panel-game {
    display: block;
    margin-top: 4px;
    font-size: 10px;
    color: rgba(255, 249, 227, 0.55);
    line-height: 1.35;
}

.panel-cubes {
    display: flex;
    justify-content: center;
    gap: 5px;
    padding: 14px 0;
}

.mini-cube {
    width: 12px;
    height: 12px;
    border-radius: 3px;
    box-shadow: inset 0 -2px 0 rgba(0,0,0,0.25), 0 1px 3px rgba(0,0,0,0.3);
}

.cube-red { background: var(--c-red); }
.cube-orange { background: var(--c-orange); }
.cube-yellow { background: var(--c-yellow); }
.cube-green { background: var(--c-green); }
.cube-blue { background: var(--c-blue); }
.cube-purple { background: var(--c-purple); }

.panel-nav { flex: 1; padding: 6px 10px; }

.panel-nav ul { list-style: none; }

.panel-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 12px;
    margin-bottom: 3px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: rgba(255, 249, 227, 0.7);
    font-weight: 700;
    font-size: 13px;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
    border: 1px solid transparent;
}

.link-cube {
    width: 7px;
    height: 7px;
    border-radius: 2px;
    flex-shrink: 0;
}

.panel-link i { width: 18px; text-align: center; font-size: 14px; opacity: 0.85; }

.panel-link:hover {
    background: rgba(0, 128, 255, 0.15);
    color: var(--text-light);
    border-color: rgba(112, 207, 255, 0.2);
}

.panel-link.is-active {
    background: linear-gradient(90deg, rgba(0, 128, 255, 0.25), rgba(66, 230, 65, 0.1));
    color: var(--white);
    border-color: rgba(112, 207, 255, 0.35);
    box-shadow: 0 0 16px rgba(0, 128, 255, 0.15);
}

.panel-footer {
    padding: 14px 16px 0;
    border-top: 1px solid rgba(112, 207, 255, 0.1);
    display: flex;
    flex-wrap: wrap;
    gap: 6px 10px;
    justify-content: center;
}

.panel-footer a {
    color: rgba(255, 249, 227, 0.45);
    text-decoration: none;
    font-size: 10px;
    font-weight: 600;
}

.panel-footer a:hover { color: var(--blue-bright); }

/* ===== Main column — warm wood plank ===== */
.main-column {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    background:
        repeating-linear-gradient(90deg, transparent, transparent 58px, rgba(74, 44, 29, 0.04) 58px, rgba(74, 44, 29, 0.04) 59px),
        linear-gradient(180deg, #e8c99a 0%, var(--cream-warm) 30%, var(--cream) 100%);
    position: relative;
}

.main-column::before,
.main-column::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 80px;
    opacity: 0.12;
    pointer-events: none;
    z-index: 0;
    background: radial-gradient(circle, var(--forest) 30%, transparent 70%);
    border-radius: 50%;
}

.main-column::before { top: 0; left: 0; }
.main-column::after { bottom: 60px; right: 0; }

.mobile-bar {
    display: none;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    background: var(--navy);
    border-bottom: 2px solid var(--blue-mid);
}

.mobile-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-light);
    font-family: 'Fredoka', sans-serif;
    font-weight: 600;
}

.mobile-brand img { width: 36px; height: 36px; border-radius: 8px; }

.panel-toggle {
    background: rgba(0, 128, 255, 0.2);
    border: 2px solid var(--blue-bright);
    color: var(--blue-bright);
    width: 40px;
    height: 40px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 18px;
}

.page-content {
    flex: 1;
    padding: 28px 32px 36px;
    position: relative;
    z-index: 1;
}

.site-footer {
    padding: 18px 32px 22px;
    border-top: 2px solid rgba(74, 44, 29, 0.12);
    text-align: center;
    background: rgba(255, 249, 227, 0.7);
    position: relative;
    z-index: 1;
}

.footer-nav, .footer-legal {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 16px;
    margin-bottom: 8px;
}

.footer-nav a, .footer-legal a {
    color: var(--wood-dark);
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
}

.footer-nav a:hover, .footer-legal a:hover { color: var(--blue-mid); }

.footer-copy { font-size: 11px; color: var(--text-muted); }

/* ===== Typography ===== */
.section-tag {
    display: inline-block;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: var(--blue-mid);
    background: rgba(0, 128, 255, 0.08);
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px solid rgba(0, 128, 255, 0.15);
    margin-bottom: 8px;
}

.section-title {
    font-family: 'Fredoka', sans-serif;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--chocolate);
    margin-bottom: 10px;
    text-shadow: 0 1px 0 rgba(255,255,255,0.5);
}

.section-lead {
    color: var(--text-muted);
    font-size: 1rem;
    max-width: 620px;
    margin-bottom: 22px;
}

.text-link {
    color: var(--blue-deep);
    text-decoration: none;
    font-weight: 700;
    transition: color 0.2s;
}

.text-link:hover { color: var(--blue-mid); }

/* ===== Welcome stage (home banner) ===== */
.welcome-stage {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 24px;
    box-shadow: var(--shadow), 0 0 40px rgba(0, 128, 255, 0.1);
    min-height: 360px;
    display: flex;
    align-items: stretch;
    border: 3px solid var(--wood-dark);
}

.welcome-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.welcome-overlay {
    position: relative;
    z-index: 1;
    flex: 1;
    display: flex;
    align-items: center;
    gap: 28px;
    padding: 32px 36px;
    background: linear-gradient(105deg, rgba(10, 10, 18, 0.82) 0%, rgba(10, 22, 40, 0.65) 50%, rgba(10, 10, 18, 0.3) 100%);
    color: var(--white);
}

.welcome-text { flex: 1; min-width: 0; }

.welcome-visual {
    flex-shrink: 0;
    text-align: center;
}

.welcome-visual img {
    width: 120px;
    height: 120px;
    border-radius: 24px;
    border: 3px solid var(--gold);
    box-shadow: 0 8px 24px rgba(0,0,0,0.4), 0 0 20px rgba(255, 193, 7, 0.2);
}

.welcome-badge {
    display: inline-block;
    background: rgba(66, 230, 65, 0.2);
    border: 1px solid var(--green-play);
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--green-play);
    margin-bottom: 12px;
}

.welcome-title {
    font-family: 'Fredoka', sans-serif;
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #fff, var(--blue-bright));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.welcome-desc {
    font-size: 0.98rem;
    color: rgba(255, 255, 255, 0.85);
    max-width: 460px;
    margin-bottom: 20px;
}

.cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.cta-row a img {
    height: 46px;
    width: auto;
    transition: transform 0.2s, filter 0.2s;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}

.cta-row a:hover img {
    transform: scale(1.06) translateY(-2px);
    filter: drop-shadow(0 6px 12px rgba(0,0,0,0.4));
}

/* ===== Stats ribbon — game UI pills ===== */
.stats-ribbon {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 24px;
}

.stat-chip {
    background: var(--cream);
    border: 3px solid var(--wood-dark);
    border-radius: var(--radius-sm);
    padding: 14px 10px;
    text-align: center;
    box-shadow: inset 0 2px 0 rgba(255,255,255,0.6), 0 4px 0 var(--wood-dark);
    transition: transform 0.2s;
}

.stat-chip:hover { transform: translateY(-2px); }

.stat-chip .num {
    display: block;
    font-family: 'Fredoka', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--blue-deep);
}

.stat-chip .lbl {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 700;
}

/* ===== Feature chips (game-style 3-box) ===== */
.feature-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 24px;
}

.feature-chip {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--cream);
    border: 3px solid var(--wood-dark);
    border-radius: var(--radius-sm);
    padding: 16px 18px;
    box-shadow: inset 0 2px 0 rgba(255,255,255,0.5), 0 3px 0 var(--wood-dark);
}

.feature-chip .fi {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--white);
    flex-shrink: 0;
}

.feature-chip h4 {
    font-family: 'Fredoka', sans-serif;
    font-size: 0.95rem;
    color: var(--chocolate);
    margin-bottom: 2px;
}

.feature-chip p {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.4;
}

.fi-heart { background: linear-gradient(135deg, var(--c-red), #e91e63); }
.fi-star { background: linear-gradient(135deg, var(--c-yellow), var(--c-orange)); }
.fi-puzzle { background: linear-gradient(135deg, var(--c-blue), var(--c-purple)); }

/* ===== Home tiles ===== */
.home-tiles {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.tile-card {
    background: var(--cream);
    border: 3px solid var(--wood-dark);
    border-radius: var(--radius);
    padding: 22px;
    box-shadow: inset 0 2px 0 rgba(255,255,255,0.5), 0 4px 0 rgba(74, 44, 29, 0.25);
    transition: transform 0.25s;
}

.tile-card:hover { transform: translateY(-3px); }

.tile-card h3 {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.1rem;
    color: var(--chocolate);
    margin-bottom: 8px;
}

.tile-card p {
    color: var(--text-muted);
    font-size: 0.92rem;
    margin-bottom: 10px;
}

.tile-card img {
    width: 100%;
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
    border: 2px solid var(--wood-dark);
}

.btn-play {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(180deg, var(--green-play), var(--green-dark));
    color: var(--white);
    padding: 10px 22px;
    border-radius: 24px;
    text-decoration: none;
    font-weight: 800;
    font-size: 14px;
    border: 2px solid #1b5e20;
    box-shadow: 0 4px 0 #1b5e20, 0 6px 16px rgba(0,0,0,0.15);
    transition: transform 0.2s;
    font-family: 'Fredoka', sans-serif;
}

.btn-play:hover { transform: translateY(-2px); }

/* ===== Gallery — phone frame style ===== */
.shot-gallery {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
}

.shot-gallery img,
.game-screens img {
    width: 100%;
    border-radius: var(--radius-sm);
    border: 3px solid var(--wood-dark);
    box-shadow: var(--shadow);
    transition: transform 0.25s, box-shadow 0.25s;
}

.shot-gallery img:hover,
.game-screens img:hover {
    transform: scale(1.04) translateY(-4px);
    box-shadow: 0 12px 32px rgba(74, 44, 29, 0.25);
}

/* ===== Company page ===== */
.company-layout {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 24px;
    align-items: start;
}

.company-visual img {
    width: 100%;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 4px solid var(--wood-dark);
}

.company-body {
    background: var(--cream);
    border-radius: var(--radius);
    padding: 28px;
    border: 3px solid var(--wood-dark);
    box-shadow: inset 0 2px 0 rgba(255,255,255,0.5), 0 4px 0 rgba(74, 44, 29, 0.2);
}

.company-body p {
    color: var(--text-muted);
    margin-bottom: 14px;
    font-size: 1rem;
}

.quote-block {
    background: linear-gradient(135deg, rgba(0, 71, 171, 0.08), rgba(112, 207, 255, 0.12));
    border-radius: var(--radius-sm);
    padding: 18px 22px;
    margin: 16px 0;
    border-left: 4px solid var(--blue-mid);
    font-style: italic;
    color: var(--wood-dark);
    font-weight: 700;
    font-size: 0.95rem;
}

.value-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.value-pill {
    background: var(--white);
    border: 2px solid var(--wood-dark);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 800;
    color: var(--chocolate);
}

.value-pill:nth-child(1) { border-color: var(--c-red); color: var(--c-red); }
.value-pill:nth-child(2) { border-color: var(--c-blue); color: var(--blue-deep); }
.value-pill:nth-child(3) { border-color: var(--c-green); color: #2e7d32; }
.value-pill:nth-child(4) { border-color: var(--c-purple); color: var(--c-purple); }

/* ===== Game page ===== */
.game-showcase {
    display: flex;
    gap: 28px;
    align-items: center;
    background: var(--cream);
    border: 3px solid var(--wood-dark);
    border-radius: var(--radius);
    padding: 24px 28px;
    margin-bottom: 24px;
    box-shadow: inset 0 2px 0 rgba(255,255,255,0.5), 0 4px 0 rgba(74, 44, 29, 0.2);
}

.game-showcase-icon img {
    width: 100px;
    height: 100px;
    border-radius: 22px;
    border: 3px solid var(--gold);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

.game-showcase-text p {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 12px;
}

.game-intro-block {
    background: var(--cream);
    border: 3px solid var(--wood-dark);
    border-radius: var(--radius);
    padding: 24px 28px;
    margin-bottom: 24px;
    box-shadow: inset 0 2px 0 rgba(255,255,255,0.5), 0 4px 0 rgba(74, 44, 29, 0.2);
}

.game-intro-block p {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 12px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin-bottom: 24px;
}

.feature-card {
    background: var(--cream);
    border: 3px solid var(--wood-dark);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: inset 0 2px 0 rgba(255,255,255,0.5), 0 3px 0 rgba(74, 44, 29, 0.15);
    transition: transform 0.25s;
}

.feature-card:hover { transform: translateY(-2px); }

.feature-card:nth-child(1) { border-top: 4px solid var(--c-blue); }
.feature-card:nth-child(2) { border-top: 4px solid var(--c-green); }
.feature-card:nth-child(3) { border-top: 4px solid var(--c-yellow); }
.feature-card:nth-child(4) { border-top: 4px solid var(--c-purple); }
.feature-card:nth-child(5) { border-top: 4px solid var(--c-teal); }

.feature-card h3 {
    font-family: 'Fredoka', sans-serif;
    font-size: 1rem;
    color: var(--chocolate);
    margin-bottom: 6px;
}

.feature-card p { color: var(--text-muted); font-size: 0.9rem; }

.feature-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--white);
}

.fi-blue { background: linear-gradient(135deg, var(--c-blue), var(--blue-deep)); }
.fi-green { background: linear-gradient(135deg, var(--c-green), var(--green-dark)); }
.fi-gold { background: linear-gradient(135deg, var(--c-yellow), var(--c-orange)); color: var(--chocolate); }
.fi-purple { background: linear-gradient(135deg, var(--c-purple), #7b1fa2); }
.fi-sky { background: linear-gradient(135deg, var(--c-teal), #0288d1); }

.game-screens {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
}

/* ===== Contact page ===== */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.contact-tile {
    background: var(--cream);
    border: 3px solid var(--wood-dark);
    border-radius: var(--radius);
    padding: 26px 20px;
    text-align: center;
    box-shadow: inset 0 2px 0 rgba(255,255,255,0.5), 0 4px 0 rgba(74, 44, 29, 0.2);
    transition: transform 0.25s;
}

.contact-tile:hover { transform: translateY(-3px); }

.contact-icon-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
    font-size: 24px;
    color: var(--white);
    border: 3px solid var(--wood-dark);
    box-shadow: 0 3px 0 var(--wood-dark);
}

.icon-loc { background: linear-gradient(135deg, var(--c-red), #c62828); }
.icon-mail { background: linear-gradient(135deg, var(--c-blue), var(--blue-deep)); }
.icon-phone { background: linear-gradient(135deg, var(--c-green), var(--green-dark)); }

.contact-tile h3 {
    font-family: 'Fredoka', sans-serif;
    font-size: 0.95rem;
    color: var(--chocolate);
    margin-bottom: 6px;
}

.contact-tile p, .contact-tile a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.92rem;
    word-break: break-word;
}

.contact-tile a:hover { color: var(--blue-mid); }

.contact-map-note {
    background: var(--cream);
    border: 3px solid var(--wood-dark);
    border-radius: var(--radius);
    padding: 22px 26px;
    text-align: center;
    color: var(--text-muted);
    box-shadow: inset 0 2px 0 rgba(255,255,255,0.5);
}

/* ===== Shop ===== */
.shop-alert {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff0f0;
    border: 3px solid var(--c-red);
    color: #b71c1c;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 18px;
    font-weight: 700;
    font-size: 14px;
}

.shop-notes {
    list-style: none;
    background: var(--cream);
    border: 3px solid var(--wood-dark);
    border-radius: var(--radius);
    padding: 18px 22px;
    margin-bottom: 20px;
    box-shadow: inset 0 2px 0 rgba(255,255,255,0.5);
}

.shop-notes li {
    display: flex;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(74, 44, 29, 0.08);
    color: var(--text-muted);
    font-size: 0.92rem;
}

.shop-notes li:last-child { border-bottom: none; }
.shop-notes i { color: var(--gold); margin-top: 3px; }

.currency-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    background: var(--cream);
    border: 3px solid var(--wood-dark);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    margin-bottom: 18px;
}

.currency-bar-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
    color: var(--chocolate);
    font-size: 13px;
}

.currency-switcher { display: flex; flex-wrap: wrap; gap: 6px; }

.currency-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 7px 12px;
    border: 2px solid var(--wood-dark);
    border-radius: 10px;
    background: var(--white);
    cursor: pointer;
    font-weight: 800;
    font-size: 12px;
    color: var(--chocolate);
    transition: all 0.2s;
    font-family: 'Nunito', sans-serif;
}

.currency-btn.is-active {
    border-color: var(--blue-mid);
    background: rgba(0, 128, 255, 0.1);
    color: var(--blue-deep);
    box-shadow: 0 0 12px rgba(0, 128, 255, 0.15);
}

.shop-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 20px;
    align-items: stretch;
}

.shop-panel, .checkout-panel {
    display: flex;
    flex-direction: column;
    background: var(--cream);
    border: 3px solid var(--wood-dark);
    border-radius: var(--radius);
    padding: 22px;
    box-shadow: inset 0 2px 0 rgba(255,255,255,0.5), 0 4px 0 rgba(74, 44, 29, 0.15);
}

.shop-panel h2, .checkout-panel h2 {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.1rem;
    color: var(--chocolate);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.shop-panel h2 i, .checkout-panel h2 i { color: var(--gold); }

.coin-list-body {
    max-height: 640px;
    overflow: hidden;
}

.coin-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    max-height: 640px;
    overflow-y: auto;
    overflow-x: hidden;
    align-content: start;
    padding-right: 6px;
    scrollbar-width: thin;
    scrollbar-color: rgba(74, 44, 29, 0.35) rgba(74, 44, 29, 0.08);
}

.coin-grid::-webkit-scrollbar {
    width: 8px;
}

.coin-grid::-webkit-scrollbar-track {
    background: rgba(74, 44, 29, 0.08);
    border-radius: 4px;
}

.coin-grid::-webkit-scrollbar-thumb {
    background: rgba(74, 44, 29, 0.35);
    border-radius: 4px;
}

.coin-grid::-webkit-scrollbar-thumb:hover {
    background: rgba(74, 44, 29, 0.5);
}

.checkout-panel form {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.checkout-panel .btn-submit {
    margin-top: auto;
}

.coin-card {
    background: var(--white);
    border: 2px solid rgba(74, 44, 29, 0.15);
    border-radius: var(--radius-sm);
    padding: 14px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.coin-card:hover {
    border-color: var(--blue-mid);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 128, 255, 0.1);
}

.coin-card.is-selected {
    border-color: var(--green-play);
    background: rgba(66, 230, 65, 0.08);
    box-shadow: 0 0 0 2px rgba(66, 230, 65, 0.25);
}

.coin-card img { width: 44px; height: 44px; margin-bottom: 6px; }

.coin-card .coin-title {
    font-weight: 800;
    font-size: 13px;
    color: var(--chocolate);
    margin-bottom: 3px;
}

.coin-card .coin-price {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.05rem;
    color: var(--blue-deep);
    font-weight: 700;
}

.coin-loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 36px;
    color: var(--text-muted);
}

.coin-loading-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid rgba(0, 128, 255, 0.15);
    border-top-color: var(--blue-mid);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 10px;
}

@keyframes spin { to { transform: rotate(360deg); } }

.form-group { margin-bottom: 14px; }

.form-group label {
    display: block;
    font-weight: 800;
    font-size: 12px;
    color: var(--chocolate);
    margin-bottom: 5px;
}

.form-group label .required { color: var(--c-red); }

.form-group input[type="text"],
.form-group input[type="email"] {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid rgba(74, 44, 29, 0.2);
    border-radius: 10px;
    font-size: 14px;
    font-family: inherit;
    background: var(--white);
}

.form-group input:focus {
    outline: none;
    border-color: var(--blue-mid);
    box-shadow: 0 0 0 3px rgba(0, 128, 255, 0.1);
}

.form-group input[readonly] {
    background: #f0e8d8;
    color: var(--text-muted);
}

.selected-display {
    padding: 10px 12px;
    background: var(--white);
    border: 2px dashed rgba(74, 44, 29, 0.2);
    border-radius: 10px;
    font-size: 13px;
    color: var(--text-muted);
}

.selected-display.has-value {
    border-style: solid;
    border-color: var(--green-play);
    color: var(--chocolate);
    font-weight: 700;
}

.payment-options { display: flex; flex-direction: column; gap: 6px; }

.payment-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border: 2px solid rgba(74, 44, 29, 0.12);
    border-radius: 10px;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    background: var(--white);
}

.payment-option.is-selected {
    border-color: var(--blue-mid);
    background: rgba(0, 128, 255, 0.06);
}

.payment-option.is-display-only { opacity: 0.5; cursor: default; }

.payment-option input { accent-color: var(--blue-mid); }
.payment-option i { font-size: 18px; color: var(--wood-dark); width: 26px; text-align: center; }

.agree-row { display: flex; align-items: flex-start; gap: 8px; }
.agree-row input { margin-top: 3px; accent-color: var(--blue-mid); }
.agree-row label { font-size: 12px; color: var(--text-muted); font-weight: 400; }
.agree-row a { color: var(--blue-deep); }

.field-error {
    display: block;
    color: var(--c-red);
    font-size: 11px;
    font-weight: 700;
    margin-top: 3px;
    min-height: 14px;
}

.btn-submit {
    width: 100%;
    padding: 13px;
    background: linear-gradient(180deg, var(--green-play), var(--green-dark));
    color: var(--white);
    border: 2px solid #1b5e20;
    border-radius: var(--radius-sm);
    font-family: 'Fredoka', sans-serif;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 0 #1b5e20;
    transition: transform 0.2s;
    margin-top: 6px;
}

.btn-submit:hover:not(:disabled) { transform: translateY(-2px); }
.btn-submit:disabled { opacity: 0.5; cursor: not-allowed; }

/* ===== Result pages ===== */
.result-panel {
    max-width: 540px;
    margin: 0 auto;
    background: var(--cream);
    border: 3px solid var(--wood-dark);
    border-radius: var(--radius);
    padding: 32px 28px;
    text-align: center;
    box-shadow: inset 0 2px 0 rgba(255,255,255,0.5), 0 6px 0 rgba(74, 44, 29, 0.2);
}

.result-icon { font-size: 52px; margin-bottom: 14px; }
.result-icon.success { color: var(--green-play); }
.result-icon.fail { color: var(--c-red); }

.result-panel h2 {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.5rem;
    color: var(--chocolate);
    margin-bottom: 10px;
}

.result-panel p { color: var(--text-muted); margin-bottom: 20px; }

.order-details {
    text-align: left;
    background: var(--white);
    border: 2px solid rgba(74, 44, 29, 0.12);
    border-radius: var(--radius-sm);
    padding: 18px;
    margin-bottom: 20px;
}

.order-details h3 {
    font-family: 'Fredoka', sans-serif;
    font-size: 0.95rem;
    margin-bottom: 12px;
    color: var(--chocolate);
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 7px 0;
    border-bottom: 1px solid rgba(74, 44, 29, 0.08);
    font-size: 13px;
}

.detail-row:last-child { border-bottom: none; }
.detail-row .label { color: var(--text-muted); font-weight: 700; }
.detail-row .value { color: var(--chocolate); font-weight: 800; text-align: right; max-width: 58%; word-break: break-word; }
.detail-row .value.total { color: var(--blue-deep); font-size: 1.05rem; }

.action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 22px;
    background: linear-gradient(180deg, var(--blue-mid), var(--blue-deep));
    color: var(--white);
    border-radius: 24px;
    text-decoration: none;
    font-weight: 800;
    font-family: 'Fredoka', sans-serif;
    border: 2px solid #003399;
    box-shadow: 0 4px 0 #003399;
    transition: transform 0.2s;
    cursor: pointer;
    font-size: 14px;
}

.btn-primary:hover { transform: translateY(-2px); }

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 22px;
    border: 2px solid var(--wood-dark);
    color: var(--chocolate);
    border-radius: 24px;
    text-decoration: none;
    font-weight: 800;
    font-family: 'Fredoka', sans-serif;
    font-size: 14px;
    transition: background 0.2s;
    background: var(--white);
}

.btn-outline:hover { background: rgba(74, 44, 29, 0.06); }

.error-code {
    display: inline-block;
    background: #fff0f0;
    color: var(--c-red);
    padding: 4px 12px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 800;
    margin-bottom: 8px;
    border: 2px solid var(--c-red);
}

/* ===== Responsive ===== */
@media (max-width: 960px) {
    .site-frame { flex-direction: column; }

    .side-panel {
        position: fixed;
        left: 0; top: 0;
        z-index: 200;
        transform: translateX(-100%);
        transition: transform 0.3s;
        height: 100vh;
    }

    .side-panel.is-open { transform: translateX(0); }

    .mobile-bar { display: flex; }
    .page-content { padding: 20px 18px 28px; }

    .welcome-overlay { flex-direction: column; text-align: center; padding: 28px 20px; }
    .welcome-desc { margin-left: auto; margin-right: auto; }
    .cta-row { justify-content: center; }

    .stats-ribbon { grid-template-columns: repeat(2, 1fr); }
    .feature-strip { grid-template-columns: 1fr; }
    .home-tiles { grid-template-columns: 1fr; }
    .company-layout { grid-template-columns: 1fr; }
    .game-showcase { flex-direction: column; text-align: center; }
    .feature-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .shop-layout { grid-template-columns: 1fr; }
    .shot-gallery { grid-template-columns: repeat(3, 1fr); }
    .game-screens { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 520px) {
    .shot-gallery { grid-template-columns: repeat(2, 1fr); }
    .coin-grid { grid-template-columns: 1fr; }
    .stats-ribbon { grid-template-columns: 1fr 1fr; }
}
