/* ============================================================
   PACIFIC GROVE LLC - pacific.css
   Layout: fixed left sidebar + light parchment content canvas.
   Palette pulled from brand art: deep indigo, violet crystal,
   amber sunset, harbor teal.
   ============================================================ */

:root {
    --pg-ink: #23204d;
    --pg-ink-2: #2d2960;
    --pg-violet: #7c4dff;
    --pg-violet-soft: #8b5cf6;
    --pg-amber: #f59e0b;
    --pg-orange: #ea7c3c;
    --pg-teal: #2ea3a8;
    --pg-sky: #3d8bfd;
    --pg-cream: #f7f3ea;
    --pg-paper: #fffdf7;
    --pg-line: #e7dfcd;
    --pg-muted: #6f6a8a;
    --pg-good: #1e9e6a;
    --pg-bad: #d64545;
    --pg-gold-grad: linear-gradient(135deg, #f5b942 0%, #ea7c3c 55%, #e0563a 100%);
    --pg-violet-grad: linear-gradient(135deg, #7c4dff 0%, #5728c4 100%);
    --pg-ink-grad: linear-gradient(160deg, #2d2960 0%, #23204d 55%, #1a1739 100%);
    --pg-shadow: 0 14px 34px rgba(35, 32, 77, .12);
    --pg-shadow-sm: 0 6px 18px rgba(35, 32, 77, .10);
    --pg-radius: 18px;
    --pg-side-w: 272px;
    --pg-font-head: 'Sora', 'Segoe UI', sans-serif;
    --pg-font-body: 'Inter', 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body.pg-body {
    font-family: var(--pg-font-body);
    background: var(--pg-cream);
    color: var(--pg-ink);
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--pg-violet); text-decoration: none; }
a:hover { color: var(--pg-orange); }

.pg-ic {
    width: 22px;
    height: 22px;
    flex: 0 0 auto;
}

/* ---------------- shell & sidebar ---------------- */

.pg-shell {
    display: grid;
    grid-template-columns: var(--pg-side-w) minmax(0, 1fr);
    min-height: 100vh;
}

.pg-side {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--pg-ink-grad);
    color: #ece9fb;
    padding: 28px 20px 20px;
    z-index: 60;
}

.pg-side-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 4px 6px 22px;
    border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.pg-side-brand img {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: #fff;
    padding: 3px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .35);
}

.pg-side-brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.pg-side-brand-text strong {
    font-family: var(--pg-font-head);
    font-size: 19px;
    letter-spacing: .06em;
    color: #fff;
}
.pg-side-brand-text small {
    font-size: 11px;
    letter-spacing: .34em;
    color: #b9b3e0;
}

.pg-side-nav { flex: 1; padding: 22px 0; overflow-y: auto; overflow-x: hidden; }
.pg-side-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }

.pg-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    color: #cfcaf0;
    font-weight: 600;
    font-size: 15px;
    border-left: 4px solid transparent;
    transition: background .18s ease, color .18s ease, padding-left .18s ease;
}
.pg-nav-link:hover { background: rgba(255, 255, 255, .08); color: #fff; padding-left: 18px; }

.pg-nav-link .pg-ic { width: 20px; height: 20px; }

.pg-tone-amber .pg-ic { color: #f5b942; }
.pg-tone-teal .pg-ic { color: #5cc8cd; }
.pg-tone-violet .pg-ic { color: #b39dff; }
.pg-tone-sky .pg-ic { color: #7db4ff; }
.pg-tone-gold .pg-ic { color: #ffd479; }

.pg-nav-link.is-active {
    background: rgba(255, 255, 255, .10);
    color: #fff;
    border-left-color: var(--pg-amber);
}

.pg-nav-cta {
    margin-top: 14px;
    background: var(--pg-gold-grad);
    color: #3a1d05;
    box-shadow: 0 8px 20px rgba(234, 124, 60, .45);
    border-left: none;
    position: relative;
    animation: pg-cta-glow 2.6s ease-in-out infinite;
}
.pg-nav-cta .pg-ic { color: #3a1d05; }
.pg-nav-cta:hover { color: #2a1200; background: var(--pg-gold-grad); filter: brightness(1.06); }
.pg-nav-cta.is-active {
    background: var(--pg-gold-grad);
    color: #3a1d05;
    border-left: none;
    outline: 3px solid rgba(245, 185, 66, .55);
    outline-offset: 2px;
    animation: none;
}
.pg-nav-cta.is-active .pg-ic { color: #3a1d05; }

@keyframes pg-cta-glow {
    0%, 100% { box-shadow: 0 8px 20px rgba(234, 124, 60, .45); }
    50% { box-shadow: 0 8px 30px rgba(245, 185, 66, .75); }
}

.pg-nav-cta-tag {
    margin-left: auto;
    font-style: normal;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    background: rgba(35, 32, 77, .85);
    color: #ffd479;
    border-radius: 999px;
    padding: 3px 9px;
}

.pg-side-foot {
    border-top: 1px solid rgba(255, 255, 255, .12);
    padding-top: 14px;
    font-size: 12px;
    color: #a49ed2;
}
.pg-side-mail {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #cfcaf0;
    font-size: 12.5px;
    word-break: break-all;
    margin-bottom: 8px;
}
.pg-side-mail:hover { color: #ffd479; }
.pg-side-mail .pg-ic { width: 16px; height: 16px; }
.pg-side-foot p { margin: 0; }

/* ---------------- topbar (mobile) ---------------- */

.pg-topbar {
    display: none;
    position: sticky;
    top: 0;
    z-index: 70;
    background: var(--pg-ink-grad);
    color: #fff;
    padding: 10px 14px;
    align-items: center;
    gap: 12px;
}

.pg-burger {
    background: rgba(255, 255, 255, .10);
    border: 1px solid rgba(255, 255, 255, .2);
    color: #fff;
    border-radius: 10px;
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.pg-topbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-family: var(--pg-font-head);
    font-weight: 700;
    letter-spacing: .05em;
}
.pg-topbar-brand img { width: 34px; height: 34px; border-radius: 9px; background: #fff; padding: 2px; }

.pg-topbar-store {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: var(--pg-gold-grad);
    color: #3a1d05;
    font-weight: 700;
    font-size: 14px;
    padding: 9px 16px;
    border-radius: 999px;
}
.pg-topbar-store .pg-ic { width: 17px; height: 17px; }
.pg-topbar-store:hover { color: #2a1200; filter: brightness(1.06); }

.pg-veil {
    position: fixed;
    inset: 0;
    background: rgba(20, 16, 45, .55);
    z-index: 55;
    backdrop-filter: blur(2px);
}

/* ---------------- main canvas ---------------- */

.pg-main {
    min-width: 0;
    padding: 40px clamp(20px, 4.5vw, 64px) 30px;
}

.pg-wrap { max-width: 1080px; margin: 0 auto; }

.pg-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--pg-orange);
    background: rgba(234, 124, 60, .12);
    border: 1px solid rgba(234, 124, 60, .30);
    padding: 6px 14px;
    border-radius: 999px;
    margin-bottom: 14px;
}
.pg-kicker .pg-ic { width: 15px; height: 15px; }

.pg-h1 {
    font-family: var(--pg-font-head);
    font-size: clamp(30px, 4vw, 44px);
    line-height: 1.15;
    margin: 0 0 14px;
    color: var(--pg-ink);
}

.pg-h2 {
    font-family: var(--pg-font-head);
    font-size: clamp(22px, 2.6vw, 30px);
    margin: 0 0 16px;
    color: var(--pg-ink);
}

.pg-lead { font-size: 17.5px; color: var(--pg-muted); margin: 0 0 10px; max-width: 70ch; }

.pg-section { margin-top: 54px; }

.pg-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 22px;
    padding-bottom: 14px;
    border-bottom: 2px solid var(--pg-line);
}
.pg-section-head .pg-h2 { margin: 0; }

.pg-more-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-weight: 700;
    font-size: 14.5px;
    white-space: nowrap;
}
.pg-more-link .pg-ic { width: 17px; height: 17px; }

/* ---------------- buttons ---------------- */

.pg-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    font-family: var(--pg-font-head);
    font-weight: 700;
    font-size: 15.5px;
    padding: 14px 26px;
    border-radius: 14px;
    border: none;
    cursor: pointer;
    transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
}
.pg-btn:hover { transform: translateY(-2px); }
.pg-btn .pg-ic { width: 19px; height: 19px; }

.pg-btn-gold { background: var(--pg-gold-grad); color: #3a1d05; box-shadow: 0 10px 24px rgba(234, 124, 60, .40); }
.pg-btn-gold:hover { color: #2a1200; filter: brightness(1.05); }

.pg-btn-violet { background: var(--pg-violet-grad); color: #fff; box-shadow: 0 10px 24px rgba(124, 77, 255, .35); }
.pg-btn-violet:hover { color: #fff; filter: brightness(1.07); }

.pg-btn-ghost {
    background: transparent;
    color: var(--pg-ink);
    border: 2px solid var(--pg-ink);
}
.pg-btn-ghost:hover { background: var(--pg-ink); color: #fff; }

.pg-btn-block { width: 100%; }

.pg-btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }

/* store-badge buttons (google play / start game artwork) */
.pg-badge-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    margin-top: 26px;
}
.pg-badge-btn {
    display: inline-block;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--pg-shadow-sm);
    transition: transform .18s ease, box-shadow .18s ease;
    line-height: 0;
}
.pg-badge-btn:hover { transform: translateY(-3px) scale(1.02); box-shadow: var(--pg-shadow); }
.pg-badge-btn img { height: 58px; width: auto; }
.pg-badge-btn.pg-badge-play img { height: 64px; }

/* ---------------- home showcase ---------------- */

.pg-stage {
    position: relative;
    border-radius: 26px;
    overflow: hidden;
    background: var(--pg-ink-grad);
    box-shadow: var(--pg-shadow);
}

.pg-stage-art { position: relative; }
.pg-stage-art img { width: 100%; height: auto; }

.pg-stage-panel {
    position: absolute;
    inset: auto 0 0 0;
    padding: clamp(20px, 4vw, 40px);
    background: linear-gradient(180deg, rgba(26, 23, 57, 0) 0%, rgba(26, 23, 57, .82) 55%, rgba(26, 23, 57, .95) 100%);
    color: #fff;
}

.pg-stage-panel h1 {
    font-family: var(--pg-font-head);
    font-size: clamp(26px, 3.6vw, 42px);
    margin: 0 0 8px;
    color: #fff;
}
.pg-stage-panel p { margin: 0; color: #d9d4f2; max-width: 60ch; font-size: 15.5px; }

.pg-stage-panel .pg-badge-row { margin-top: 18px; }

/* ---------------- cards & grids ---------------- */

.pg-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 18px;
}

.pg-card {
    background: var(--pg-paper);
    border: 1px solid var(--pg-line);
    border-radius: var(--pg-radius);
    padding: 24px 22px;
    box-shadow: var(--pg-shadow-sm);
    transition: transform .18s ease, box-shadow .18s ease;
}
.pg-card:hover { transform: translateY(-4px); box-shadow: var(--pg-shadow); }

.pg-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    color: #fff;
}
.pg-card-icon .pg-ic { width: 24px; height: 24px; }

.pg-card-icon.pg-ci-amber { background: linear-gradient(135deg, #f5b942, #ea7c3c); }
.pg-card-icon.pg-ci-violet { background: linear-gradient(135deg, #8b5cf6, #5728c4); }
.pg-card-icon.pg-ci-teal { background: linear-gradient(135deg, #3bb6bb, #1d7f84); }
.pg-card-icon.pg-ci-sky { background: linear-gradient(135deg, #6aa8ff, #2f6bd8); }

.pg-card h3 {
    font-family: var(--pg-font-head);
    font-size: 17.5px;
    margin: 0 0 8px;
    color: var(--pg-ink);
}
.pg-card p { margin: 0; font-size: 14.5px; color: var(--pg-muted); }

/* ---------------- split blocks ---------------- */

.pg-split {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    gap: clamp(24px, 4vw, 48px);
    align-items: center;
}

.pg-split.pg-split-flip { grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); }

.pg-split-art { position: relative; }
.pg-split-art img {
    border-radius: 22px;
    box-shadow: var(--pg-shadow);
    border: 6px solid #fff;
}
.pg-split-art.pg-art-tilt { transform: rotate(-1.6deg); }
.pg-split-art.pg-art-tilt-r { transform: rotate(1.6deg); }

.pg-richtext p { margin: 0 0 14px; color: #45406b; }
.pg-richtext p:last-child { margin-bottom: 0; }

/* vision quote */
.pg-vision {
    margin-top: 26px;
    border-left: 5px solid var(--pg-violet);
    background: linear-gradient(90deg, rgba(124, 77, 255, .10), rgba(124, 77, 255, 0));
    padding: 18px 22px;
    border-radius: 0 14px 14px 0;
}
.pg-vision strong {
    display: block;
    font-family: var(--pg-font-head);
    font-size: 13px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--pg-violet);
    margin-bottom: 6px;
}
.pg-vision p { margin: 0; font-size: 16.5px; color: var(--pg-ink); font-weight: 500; }

/* ---------------- game page ---------------- */

.pg-game-head {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 26px;
    align-items: center;
    background: var(--pg-paper);
    border: 1px solid var(--pg-line);
    border-radius: 22px;
    padding: 26px;
    box-shadow: var(--pg-shadow-sm);
}
.pg-game-head img { width: 150px; height: 150px; border-radius: 26px; box-shadow: var(--pg-shadow-sm); }

.pg-tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.pg-tag {
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: .04em;
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(124, 77, 255, .10);
    color: var(--pg-violet);
    border: 1px solid rgba(124, 77, 255, .25);
}
.pg-tag.pg-tag-teal { background: rgba(46, 163, 168, .10); color: #1d7f84; border-color: rgba(46, 163, 168, .3); }
.pg-tag.pg-tag-amber { background: rgba(245, 158, 11, .12); color: #a35c05; border-color: rgba(245, 158, 11, .35); }

.pg-feature-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 18px;
    counter-reset: feat;
}

.pg-feature {
    position: relative;
    background: var(--pg-paper);
    border: 1px solid var(--pg-line);
    border-radius: var(--pg-radius);
    padding: 26px 22px 22px;
    box-shadow: var(--pg-shadow-sm);
    overflow: hidden;
}
.pg-feature::before {
    counter-increment: feat;
    content: "0" counter(feat);
    position: absolute;
    top: 10px;
    right: 16px;
    font-family: var(--pg-font-head);
    font-size: 44px;
    font-weight: 800;
    color: rgba(124, 77, 255, .12);
}
.pg-feature h3 { font-family: var(--pg-font-head); font-size: 17px; margin: 12px 0 8px; }
.pg-feature p { margin: 0; font-size: 14.5px; color: var(--pg-muted); }
.pg-feature .pg-card-icon { margin-bottom: 0; }

.pg-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
}
.pg-gallery a {
    border-radius: 16px;
    overflow: hidden;
    border: 4px solid #fff;
    box-shadow: var(--pg-shadow-sm);
    transition: transform .18s ease;
}
.pg-gallery a:hover { transform: scale(1.03); }
.pg-gallery img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 5 / 8; }

/* ---------------- contact page ---------------- */

.pg-contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(24px, 4vw, 44px);
    align-items: start;
}

.pg-contact-cards { display: flex; flex-direction: column; gap: 16px; }

.pg-contact-card {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    background: var(--pg-paper);
    border: 1px solid var(--pg-line);
    border-radius: var(--pg-radius);
    padding: 20px;
    box-shadow: var(--pg-shadow-sm);
}
.pg-contact-card h3 { font-family: var(--pg-font-head); font-size: 15px; margin: 2px 0 4px; letter-spacing: .04em; text-transform: uppercase; color: var(--pg-muted); }
.pg-contact-card p { margin: 0; font-size: 16.5px; font-weight: 600; color: var(--pg-ink); word-break: break-word; }
.pg-contact-card a { color: var(--pg-ink); }
.pg-contact-card a:hover { color: var(--pg-orange); }

.pg-contact-art img {
    border-radius: 22px;
    border: 6px solid #fff;
    box-shadow: var(--pg-shadow);
}

.pg-contact-note {
    margin-top: 18px;
    background: rgba(46, 163, 168, .10);
    border: 1px solid rgba(46, 163, 168, .30);
    border-radius: 14px;
    padding: 16px 18px;
    font-size: 14.5px;
    color: #175f63;
}

/* ---------------- store page ---------------- */

.pg-store-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 26px;
    align-items: start;
    margin-top: 26px;
}

.pg-notes {
    list-style: none;
    margin: 18px 0 0;
    padding: 0;
    display: grid;
    gap: 10px;
}
.pg-notes li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    background: var(--pg-paper);
    border: 1px solid var(--pg-line);
    border-radius: 13px;
    padding: 13px 16px;
    font-size: 14.5px;
    color: #45406b;
}
.pg-notes .pg-ic { width: 19px; height: 19px; color: var(--pg-teal); margin-top: 2px; }

.pg-money-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 22px 0 4px;
}
.pg-money-bar > span { font-size: 13px; font-weight: 700; color: var(--pg-muted); text-transform: uppercase; letter-spacing: .08em; }

.pg-money-btn {
    border: 2px solid var(--pg-line);
    background: var(--pg-paper);
    color: var(--pg-ink);
    font-weight: 700;
    font-size: 14px;
    padding: 8px 16px;
    border-radius: 999px;
    cursor: pointer;
    transition: all .15s ease;
}
.pg-money-btn:hover { border-color: var(--pg-violet); color: var(--pg-violet); }
.pg-money-btn.is-on {
    background: var(--pg-violet-grad);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 6px 16px rgba(124, 77, 255, .35);
}

.pg-pack-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.pg-pack {
    position: relative;
    background: var(--pg-paper);
    border: 2px solid var(--pg-line);
    border-radius: 16px;
    padding: 18px 14px 14px;
    text-align: center;
    cursor: pointer;
    transition: all .16s ease;
    font-family: inherit;
}
.pg-pack:hover { border-color: var(--pg-violet-soft); transform: translateY(-3px); box-shadow: var(--pg-shadow-sm); }
.pg-pack.is-picked {
    border-color: var(--pg-violet);
    box-shadow: 0 0 0 3px rgba(124, 77, 255, .22), var(--pg-shadow-sm);
    background: linear-gradient(180deg, rgba(124, 77, 255, .06), rgba(124, 77, 255, 0));
}
.pg-pack.is-picked::after {
    content: "";
    position: absolute;
    top: 10px;
    right: 10px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--pg-violet) url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><path d="m5 13 4 4 10-11"/></svg>') center / 13px no-repeat;
}

.pg-pack img { width: 64px; height: 64px; object-fit: contain; margin: 0 auto 10px; }
.pg-pack-amount { display: block; font-family: var(--pg-font-head); font-weight: 700; font-size: 16.5px; color: var(--pg-ink); }
.pg-pack-price { display: block; margin-top: 4px; font-weight: 700; font-size: 14.5px; color: var(--pg-orange); }

.pg-pack-empty {
    grid-column: 1 / -1;
    background: var(--pg-paper);
    border: 1px dashed var(--pg-line);
    border-radius: 14px;
    padding: 30px;
    text-align: center;
    color: var(--pg-muted);
}

/* order panel */
.pg-order {
    position: sticky;
    top: 26px;
    background: var(--pg-paper);
    border: 1px solid var(--pg-line);
    border-radius: 20px;
    box-shadow: var(--pg-shadow);
    overflow: hidden;
}
.pg-order-head {
    background: var(--pg-ink-grad);
    color: #fff;
    padding: 18px 22px;
}
.pg-order-head h2 { font-family: var(--pg-font-head); font-size: 19px; margin: 0; display: flex; align-items: center; gap: 10px; }
.pg-order-head .pg-ic { color: #ffd479; }
.pg-order-body { padding: 20px 22px 22px; }

.pg-field { margin-bottom: 16px; }
.pg-field label { display: block; font-size: 13px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--pg-muted); margin-bottom: 7px; }

.pg-field input[type="text"],
.pg-field input[type="email"] {
    width: 100%;
    border: 2px solid var(--pg-line);
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 15px;
    font-family: inherit;
    color: var(--pg-ink);
    background: #fff;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.pg-field input:focus { outline: none; border-color: var(--pg-violet); box-shadow: 0 0 0 3px rgba(124, 77, 255, .18); }
.pg-field input[readonly] { background: #f3efe3; color: var(--pg-muted); }
.pg-field input.pg-invalid { border-color: var(--pg-bad); box-shadow: 0 0 0 3px rgba(214, 69, 69, .15); }

.pg-err {
    display: block;
    min-height: 18px;
    font-size: 12.5px;
    color: var(--pg-bad);
    font-weight: 600;
    margin-top: 5px;
}

.pg-picked {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    background: #f3efe3;
    border: 1px dashed #d8cfb6;
    border-radius: 12px;
    padding: 12px 14px;
}
.pg-picked-name { font-weight: 700; font-size: 14.5px; color: var(--pg-ink); }
.pg-picked-price { font-family: var(--pg-font-head); font-weight: 800; color: var(--pg-orange); }

.pg-pay-list { display: grid; gap: 9px; }

.pg-pay {
    display: flex;
    align-items: center;
    gap: 11px;
    border: 2px solid var(--pg-line);
    border-radius: 12px;
    padding: 11px 14px;
    cursor: pointer;
    transition: all .15s ease;
    background: #fff;
}
.pg-pay:hover { border-color: var(--pg-violet-soft); }
.pg-pay input { position: absolute; opacity: 0; pointer-events: none; }
.pg-pay .pg-ic { width: 21px; height: 21px; color: var(--pg-ink); }
.pg-pay span { font-weight: 600; font-size: 14.5px; }
.pg-pay.is-on { border-color: var(--pg-violet); background: rgba(124, 77, 255, .07); box-shadow: 0 0 0 3px rgba(124, 77, 255, .15); }

.pg-pay.pg-pay-showonly {
    opacity: .55;
    cursor: not-allowed;
    border-style: dashed;
}
.pg-pay-showonly em {
    margin-left: auto;
    font-style: normal;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--pg-muted);
    border: 1px solid var(--pg-line);
    border-radius: 999px;
    padding: 2px 8px;
}

.pg-agree {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 13.5px;
    color: #45406b;
}
.pg-agree input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--pg-violet); flex: 0 0 auto; }

.pg-honeypot { position: absolute; left: -9999px; top: -9999px; height: 0; overflow: hidden; }

.pg-alert {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    border-radius: 14px;
    padding: 15px 18px;
    margin: 20px 0 0;
    font-size: 14.5px;
    font-weight: 600;
}
.pg-alert .pg-ic { margin-top: 1px; }
.pg-alert-bad { background: rgba(214, 69, 69, .10); border: 1px solid rgba(214, 69, 69, .35); color: #a02e2e; }
.pg-alert-good { background: rgba(30, 158, 106, .10); border: 1px solid rgba(30, 158, 106, .35); color: #146b47; }

/* ---------------- confirm / result pages ---------------- */

.pg-result {
    max-width: 720px;
    margin: 30px auto 0;
    background: var(--pg-paper);
    border: 1px solid var(--pg-line);
    border-radius: 24px;
    box-shadow: var(--pg-shadow);
    overflow: hidden;
}

.pg-result-band {
    padding: 30px 30px 24px;
    color: #fff;
    text-align: center;
}
.pg-result-band.pg-band-violet { background: var(--pg-violet-grad); }
.pg-result-band.pg-band-good { background: linear-gradient(135deg, #22b07d, #147a54); }
.pg-result-band.pg-band-bad { background: linear-gradient(135deg, #e0563a, #a02e2e); }
.pg-result-band.pg-band-ink { background: var(--pg-ink-grad); }

.pg-result-band .pg-ic { width: 46px; height: 46px; margin-bottom: 10px; }
.pg-result-band h1 { font-family: var(--pg-font-head); font-size: 26px; margin: 0 0 6px; color: #fff; }
.pg-result-band p { margin: 0; color: rgba(255, 255, 255, .85); font-size: 15px; }

.pg-result-body { padding: 26px 30px 30px; }

.pg-detail-rows { display: grid; gap: 0; border: 1px solid var(--pg-line); border-radius: 14px; overflow: hidden; }
.pg-detail-row {
    display: grid;
    grid-template-columns: 170px minmax(0, 1fr);
    gap: 12px;
    padding: 13px 18px;
    background: #fff;
    font-size: 14.5px;
}
.pg-detail-row:nth-child(even) { background: #faf7ee; }
.pg-detail-row dt { margin: 0; font-weight: 700; color: var(--pg-muted); text-transform: uppercase; font-size: 12px; letter-spacing: .06em; padding-top: 2px; }
.pg-detail-row dd { margin: 0; font-weight: 600; color: var(--pg-ink); word-break: break-word; }

.pg-result-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.pg-countdown {
    margin-top: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--pg-muted);
    font-weight: 600;
}
.pg-countdown .pg-ic { color: var(--pg-violet); animation: pg-spin 2.4s linear infinite; }

@keyframes pg-spin { to { transform: rotate(360deg); } }

/* ---------------- footer ---------------- */

.pg-foot {
    grid-column: 2;
    background: var(--pg-ink-grad);
    color: #cfcaf0;
    padding: 34px clamp(20px, 4.5vw, 64px) 24px;
}

.pg-foot-top {
    display: flex;
    flex-wrap: wrap;
    gap: 26px;
    align-items: flex-start;
    justify-content: space-between;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.pg-foot-brand { display: flex; gap: 14px; align-items: center; }
.pg-foot-brand img { width: 46px; height: 46px; border-radius: 12px; background: #fff; padding: 2px; }
.pg-foot-brand strong { display: block; font-family: var(--pg-font-head); color: #fff; font-size: 15px; }
.pg-foot-brand span { font-size: 13px; color: #a49ed2; }

.pg-foot-links, .pg-foot-legal { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.pg-foot-links a, .pg-foot-legal a { color: #cfcaf0; font-size: 14px; font-weight: 600; }
.pg-foot-links a:hover, .pg-foot-legal a:hover { color: #ffd479; }
.pg-foot-legal a { font-weight: 500; font-size: 13px; color: #a49ed2; }

.pg-foot-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 26px;
    margin-top: 18px;
    font-size: 13px;
    color: #a49ed2;
}
.pg-foot-meta span { display: inline-flex; align-items: center; gap: 8px; }
.pg-foot-meta .pg-ic { width: 15px; height: 15px; color: #7db4ff; }

.pg-foot-copy { margin: 16px 0 0; font-size: 12.5px; color: #8d87bd; }

/* ---------------- legal pages ---------------- */

.pg-legal {
    max-width: 860px;
    margin: 0 auto;
    background: var(--pg-paper);
    border: 1px solid var(--pg-line);
    border-radius: 20px;
    padding: clamp(24px, 4vw, 48px);
    box-shadow: var(--pg-shadow-sm);
}
.pg-legal h2 { font-family: var(--pg-font-head); font-size: 19px; margin: 26px 0 10px; color: var(--pg-ink); }
.pg-legal h3 { font-family: var(--pg-font-head); font-size: 16px; margin: 20px 0 8px; }
.pg-legal p { margin: 0 0 10px; color: #45406b; font-size: 15px; }

/* ---------------- responsive ---------------- */

@media (max-width: 1080px) {
    .pg-store-layout { grid-template-columns: minmax(0, 1fr); }
    .pg-order { position: static; }
}

@media (max-width: 920px) {
    .pg-shell { grid-template-columns: minmax(0, 1fr); }
    .pg-topbar { display: flex; }
    .pg-side {
        position: fixed;
        left: 0;
        top: 0;
        bottom: 0;
        width: min(82vw, 300px);
        height: auto;
        transform: translateX(-105%);
        transition: transform .24s ease;
        box-shadow: 0 0 60px rgba(0, 0, 0, .4);
    }
    .pg-side.is-open { transform: translateX(0); }
    .pg-main { padding: 26px 18px 20px; }
    .pg-foot { grid-column: 1; }
    .pg-split, .pg-split.pg-split-flip { grid-template-columns: minmax(0, 1fr); }
    .pg-contact-grid { grid-template-columns: minmax(0, 1fr); }
    .pg-game-head { grid-template-columns: 110px minmax(0, 1fr); padding: 20px; }
    .pg-game-head img { width: 110px; height: 110px; border-radius: 20px; }
    .pg-detail-row { grid-template-columns: minmax(0, 1fr); gap: 3px; }
}

@media (max-width: 520px) {
    .pg-pack-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pg-badge-btn img { height: 50px; }
    .pg-badge-btn.pg-badge-play img { height: 55px; }
    .pg-result-actions .pg-btn { width: 100%; }
}
