:root {
    --ink: #100826;
    --navy: #17133a;
    --panel: #221c4d;
    --line: rgba(255, 255, 255, 0.12);
    --gold: #e8c14a;
    --gold-deep: #c9a227;
    --cyan: #4fd6e8;
    --mint: #7ee0b0;
    --pink: #ff6bb5;
    --sky: #7eb6ff;
    --lime: #b6e05d;
    --paper: #f6f0e4;
    --muted: #c4bfd8;
    --danger: #ff6b7a;
    --ok: #3dce8b;
    --radius: 18px;
    --frame: 1200px;
    --head: 84px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
    font-family: Figtree, "Segoe UI", sans-serif;
    color: var(--paper);
    background:
        radial-gradient(900px 420px at 90% -10%, rgba(255, 107, 181, 0.18), transparent 55%),
        radial-gradient(700px 380px at -10% 20%, rgba(79, 214, 232, 0.16), transparent 50%),
        linear-gradient(180deg, #12082c 0%, #0d0822 45%, #140b30 100%);
    min-height: 100vh;
    line-height: 1.6;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--cyan); text-decoration: none; }
a:hover { color: var(--gold); }
h1, h2, h3 { font-family: Newsreader, Georgia, serif; letter-spacing: -0.02em; margin: 0 0 12px; }

.jl-app { min-height: 100vh; display: flex; flex-direction: column; }
.jl-main { flex: 1; padding-bottom: 64px; }
.jl-frame { width: 100%; max-width: var(--frame); margin: 0 auto; padding: 0 20px; }

.jl-head {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(16, 8, 38, 0.88);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
}

.jl-head-bar {
    min-height: var(--head);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.jl-brand { display: flex; align-items: center; min-width: 0; }
.jl-brand:hover { color: var(--paper); }
.jl-brand-mark {
    width: 168px;
    height: 78px;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.35));
}

.jl-menu-btn {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--panel);
    color: var(--paper);
    cursor: pointer;
}

.jl-nav { margin-left: auto; }
.jl-nav ul {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.jl-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    border-radius: 999px;
    color: var(--paper);
    font-weight: 650;
    font-size: 14px;
    border: 1px solid transparent;
    transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.jl-link i { font-size: 13px; }
.jl-link:hover {
    transform: translateY(-2px);
    color: #0d0822;
}

.jl-link-cyan:hover { background: var(--cyan); box-shadow: 0 8px 18px rgba(79, 214, 232, 0.35); }
.jl-link-mint:hover { background: var(--mint); box-shadow: 0 8px 18px rgba(126, 224, 176, 0.35); }
.jl-link-pink:hover { background: var(--pink); box-shadow: 0 8px 18px rgba(255, 107, 181, 0.35); }
.jl-link-sky:hover  { background: var(--sky);  box-shadow: 0 8px 18px rgba(126, 182, 255, 0.35); }

.jl-link-cyan.is-current { background: rgba(79, 214, 232, 0.16); color: var(--cyan); }
.jl-link-mint.is-current { background: rgba(126, 224, 176, 0.16); color: var(--mint); }
.jl-link-pink.is-current { background: rgba(255, 107, 181, 0.16); color: var(--pink); }
.jl-link-sky.is-current { background: rgba(126, 182, 255, 0.16); color: var(--sky); }

.jl-link-cyan.is-current:hover,
.jl-link-mint.is-current:hover,
.jl-link-pink.is-current:hover,
.jl-link-sky.is-current:hover { color: #0d0822; }

.jl-link-shop {
    background: linear-gradient(135deg, #f3cc63, #c9961c);
    color: #1c1400 !important;
    font-weight: 800;
    padding: 11px 20px;
    box-shadow: 0 8px 22px rgba(232, 193, 74, 0.38);
    transform: translateY(0);
    margin-left: 8px;
    font-size: 15px;
}
.jl-link-shop:hover {
    color: #1c1400 !important;
    background: linear-gradient(135deg, #ffe08a, #e0b322);
    box-shadow: 0 10px 26px rgba(232, 193, 74, 0.55);
    transform: translateY(-2px) scale(1.04);
    filter: none;
}
.jl-link-shop.is-current {
    outline: 2px solid #fff3c4;
}

.jl-nav-home .jl-link { border-radius: 10px; }
.jl-nav-about .jl-link { letter-spacing: 0.04em; text-transform: uppercase; font-size: 12px; }
.jl-nav-game .jl-link { border: 1px solid var(--line); }
.jl-nav-contact .jl-link { background: rgba(255,255,255,0.03); }
.jl-nav-shop .jl-link { opacity: 0.86; }
.jl-nav-shop .jl-link-shop { opacity: 1; }

.jl-kicker {
    display: inline-block;
    font-size: 12px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 700;
    margin-bottom: 10px;
}

.jl-title { font-size: clamp(32px, 5vw, 52px); line-height: 1.12; }
.jl-lead { color: var(--muted); font-size: 17px; max-width: 640px; }

.jl-stage {
    padding: 28px 0 10px;
}
.jl-stage-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 22px;
    align-items: stretch;
}
.jl-stage-copy {
    background: linear-gradient(160deg, rgba(34, 28, 77, 0.92), rgba(16, 8, 38, 0.85));
    border: 1px solid var(--line);
    border-radius: 28px;
    padding: 36px 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.jl-stage-copy h1 em {
    font-style: italic;
    color: var(--gold);
    display: block;
    font-weight: 650;
}
.jl-play-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
    align-items: center;
}
.jl-play-row a img { height: 52px; width: auto; }
.jl-stage-collage {
    position: relative;
    min-height: 360px;
}
.jl-stage-collage > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 28px;
    border: 1px solid var(--line);
    min-height: 360px;
}

.jl-home-band { padding: 36px 0 0; }
.jl-home-split {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 16px;
}
.jl-tile {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 22px;
}
.jl-tile h3 { font-size: 24px; }
.jl-tile p { color: var(--muted); margin: 0 0 14px; }
.jl-tile.wide { grid-column: span 2; }
.jl-more { font-weight: 700; display: inline-flex; gap: 8px; align-items: center; }

.jl-shot-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 18px;
}
.jl-shot-row img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 14px;
    border: 1px solid var(--line);
}

.jl-page { padding: 36px 0 0; }

.jl-about-layout {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 28px;
    align-items: start;
}
.jl-about-photo {
    border-radius: 28px;
    overflow: hidden;
    border: 1px solid var(--line);
    position: sticky;
    top: 108px;
}
.jl-about-photo img { width: 100%; height: 520px; object-fit: cover; }
.jl-essay p { color: var(--muted); font-size: 16.5px; }
.jl-pull {
    font-family: Newsreader, Georgia, serif;
    font-size: 26px;
    line-height: 1.35;
    color: var(--gold);
    border-left: 3px solid var(--gold);
    padding-left: 16px;
    margin: 22px 0;
}

.jl-game-top {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 22px;
    align-items: center;
    margin-bottom: 28px;
}
.jl-game-top img {
    width: 160px;
    height: 160px;
    object-fit: cover;
    border-radius: 28px;
    border: 1px solid var(--line);
}
.jl-feature-board {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin: 28px 0;
}
.jl-block {
    border-radius: 20px;
    padding: 22px;
    min-height: 150px;
}
.jl-block h3 { font-size: 22px; margin-bottom: 8px; }
.jl-block p { margin: 0; color: rgba(255,255,255,0.86); }
.jl-block.b1 { background: linear-gradient(135deg, #3a1f73, #5b2d91); }
.jl-block.b2 { background: linear-gradient(135deg, #164e63, #0e7490); }
.jl-block.b3 { background: linear-gradient(135deg, #7a2d4b, #be185d); }
.jl-block.b4 { background: linear-gradient(135deg, #854d0e, #ca8a04); }
.jl-block i { font-size: 22px; margin-bottom: 10px; display: block; }

.jl-contact-layout {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 24px;
}
.jl-contact-list { display: flex; flex-direction: column; gap: 14px; }
.jl-contact-item {
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 16px;
    align-items: center;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 18px;
}
.jl-ico {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    font-size: 24px;
    color: #1c1400;
}
.jl-ico.pin { background: var(--gold); }
.jl-ico.mail { background: var(--cyan); }
.jl-ico.phone { background: var(--mint); }
.jl-contact-item h3 { font-size: 18px; margin: 0 0 4px; font-family: Figtree, sans-serif; }
.jl-contact-item p, .jl-contact-item a { margin: 0; color: var(--paper); }
.jl-contact-photo {
    border-radius: 28px;
    overflow: hidden;
    border: 1px solid var(--line);
}
.jl-contact-photo img { width: 100%; height: 100%; min-height: 360px; object-fit: cover; }

.jl-shop-notes {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin: 18px 0 22px;
    padding: 0;
    list-style: none;
}
.jl-shop-notes li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    background: rgba(255,255,255,0.04);
    border-left: 4px solid var(--gold);
    padding: 12px 14px;
    border-radius: 0 12px 12px 0;
    color: var(--muted);
}
.jl-shop-notes i { color: var(--gold); margin-top: 3px; }

.jl-money-bar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}
.jl-money-btn {
    border: 1px solid var(--line);
    background: var(--panel);
    color: var(--paper);
    border-radius: 999px;
    padding: 8px 14px;
    cursor: pointer;
    font-weight: 700;
}
.jl-money-btn.is-on { background: var(--gold); color: #1c1400; border-color: var(--gold); }

.jl-shop-desk {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 20px;
    align-items: start;
}
.jl-pack-col, .jl-slip {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 20px;
}
.jl-slip { position: sticky; top: 108px; background: #2a2158; }
.jl-pack-list { display: flex; flex-direction: column; gap: 10px; min-height: 120px; }
.jl-pack {
    display: grid;
    grid-template-columns: 56px 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px dashed rgba(232, 193, 74, 0.35);
    background: rgba(16, 8, 38, 0.35);
    cursor: pointer;
}
.jl-pack.is-on {
    border-style: solid;
    border-color: var(--gold);
    background: rgba(232, 193, 74, 0.12);
}
.jl-pack img { width: 56px; height: 56px; object-fit: contain; }
.jl-pack-title { font-weight: 800; }
.jl-pack-price { color: var(--gold); font-weight: 800; font-size: 18px; }

.jl-picked {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 42px;
    padding: 8px 12px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: #160e33;
}
.jl-picked-name {
    font-size: 13px;
    font-weight: 650;
    color: var(--paper);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.jl-picked-price {
    flex-shrink: 0;
    color: var(--gold);
    font-weight: 800;
    font-size: 14px;
}

.jl-field { margin-bottom: 14px; }
.jl-field label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; color: var(--muted); }
.jl-field input[type="text"],
.jl-field input[type="email"] {
    width: 100%;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: #160e33;
    color: var(--paper);
    padding: 11px 12px;
    font: inherit;
}
.jl-field input[readonly] { opacity: 0.8; }
.jl-honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.jl-pay-list { display: flex; flex-direction: column; gap: 8px; }
.jl-pay {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid var(--line);
    cursor: pointer;
}
.jl-pay.is-on { border-color: var(--gold); background: rgba(232, 193, 74, 0.1); }
.jl-pay input { accent-color: var(--gold); }
.jl-agree { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: var(--muted); }
.jl-agree input { margin-top: 3px; }
.jl-err { color: var(--danger); font-size: 12px; min-height: 16px; display: block; margin-top: 4px; }
.jl-alert {
    background: rgba(255, 107, 122, 0.12);
    border: 1px solid var(--danger);
    color: #ffd4d8;
    padding: 12px 14px;
    border-radius: 12px;
    margin-bottom: 16px;
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.jl-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    cursor: pointer;
    font: inherit;
    font-weight: 800;
    border-radius: 999px;
    padding: 12px 18px;
}
.jl-btn-gold { background: linear-gradient(135deg, #f3cc63, #c9961c); color: #1c1400; width: 100%; }
.jl-btn-ghost { background: transparent; color: var(--paper); border: 1px solid var(--line); }
.jl-btn-ok { background: var(--ok); color: #062016; }
.jl-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.jl-actions .jl-btn { width: auto; padding: 11px 18px; }

.jl-invoice {
    max-width: 720px;
    margin: 40px auto 0;
    background: var(--paper);
    color: #1c1633;
    border-radius: 8px;
    padding: 28px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.28);
}
.jl-invoice h1 { color: #1c1633; }
.jl-invoice p { color: #4a4460; }
.jl-table { width: 100%; border-collapse: collapse; margin: 18px 0; }
.jl-table th, .jl-table td { text-align: left; padding: 10px 0; border-bottom: 1px solid #e4dcc8; }
.jl-table th { width: 38%; color: #6b6480; font-weight: 600; }
.jl-total { color: #9a7308; font-weight: 800; font-size: 20px; }
.jl-count { font-size: 42px; font-weight: 800; color: #9a7308; }

.jl-result {
    margin-top: 40px;
    border-radius: 28px;
    padding: 42px 28px;
    text-align: center;
    border: 1px solid var(--line);
}
.jl-result.ok { background: linear-gradient(180deg, rgba(61, 206, 139, 0.18), rgba(16,8,38,0.4)); }
.jl-result.bad { background: linear-gradient(180deg, rgba(255, 107, 122, 0.16), rgba(16,8,38,0.4)); }
.jl-result i { font-size: 52px; display: block; margin-bottom: 12px; }
.jl-result.ok i { color: var(--ok); }
.jl-result.bad i { color: var(--danger); }

.jl-legal {
    background: #f7f4ee;
    color: #2c2a32;
    border-radius: 20px;
    padding: 28px 24px 40px;
    margin-top: 24px;
}
.jl-legal h1, .jl-legal h2, .jl-legal h3 { color: #1d1b24; font-family: Figtree, sans-serif; }
.jl-legal p { color: #3d3a44; }

.jl-foot {
    border-top: 1px solid var(--line);
    padding: 28px 0 36px;
    background: rgba(8, 4, 20, 0.5);
}
.jl-foot-grid { display: grid; gap: 16px; }
.jl-foot-brand { display: flex; gap: 12px; align-items: center; }
.jl-foot-brand img {
    width: 96px;
    height: 48px;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.35));
}
.jl-foot-brand div { display: flex; flex-direction: column; color: var(--muted); font-size: 13px; }
.jl-foot-brand strong { color: var(--paper); font-size: 14px; }
.jl-foot-nav { display: flex; flex-wrap: wrap; gap: 12px 18px; }
.jl-foot-nav a { color: var(--muted); font-size: 13px; }
.jl-foot-copy { color: #8c87a4; font-size: 12px; margin: 0; }

.jl-empty, .jl-load { color: var(--muted); padding: 28px 8px; text-align: center; }

@media (max-width: 980px) {
    .jl-brand-mark { width: 132px; height: 62px; }
    .jl-menu-btn { display: grid; place-items: center; }
    .jl-nav {
        display: none;
        position: absolute;
        right: 20px;
        top: calc(var(--head) + 8px);
        width: min(320px, calc(100vw - 40px));
        background: #1a1440;
        border: 1px solid var(--line);
        border-radius: 16px;
        padding: 10px;
        box-shadow: 0 16px 40px rgba(0,0,0,0.4);
    }
    .jl-nav.is-open { display: block; }
    .jl-nav ul { flex-direction: column; align-items: stretch; }
    .jl-link, .jl-link-shop { width: 100%; justify-content: flex-start; margin-left: 0; }
    .jl-stage-grid,
    .jl-home-split,
    .jl-about-layout,
    .jl-game-top,
    .jl-feature-board,
    .jl-contact-layout,
    .jl-shop-desk,
    .jl-shot-row { grid-template-columns: 1fr; }
    .jl-tile.wide { grid-column: auto; }
    .jl-about-photo { position: static; }
    .jl-about-photo img, .jl-contact-photo img { height: 240px; min-height: 240px; }
    .jl-slip { position: static; }
}
