/* ===========================================================
   Grapapack — vending machine homepage (Concept 07 Faithful Arcade)
   Ported from concept-arcade-faithful.jsx + proto-ui.jsx keyframes
   =========================================================== */

/* ───── Idle animation keyframes (proto-ui.jsx) ───── */
@keyframes gp-pulse-glow {
    0%, 100% { box-shadow: 0 0 0 2px rgba(67,232,216,.55), 0 0 24px rgba(67,232,216,.55); }
    50%      { box-shadow: 0 0 0 4px rgba(67,232,216,.85), 0 0 36px rgba(67,232,216,.90); }
}
@keyframes gp-pulse-gold {
    0%, 100% { box-shadow: 0 0 0 2px rgba(255,203,5,.55), 0 0 24px rgba(255,203,5,.55), 0 6px 0 var(--gp-ink-2); }
    50%      { box-shadow: 0 0 0 4px rgba(255,203,5,.85), 0 0 36px rgba(255,203,5,.90), 0 6px 0 var(--gp-ink-2); }
}
@keyframes gp-pulse-red {
    0%, 100% { box-shadow: 0 0 0 2px var(--gp-red), 0 6px 0 var(--gp-ink-2), 0 0 22px rgba(255,53,72,.55), inset 0 -4px 0 rgba(0,0,0,.3); }
    50%      { box-shadow: 0 0 0 3px var(--gp-red), 0 6px 0 var(--gp-ink-2), 0 0 44px rgba(255,53,72,.95), inset 0 -4px 0 rgba(0,0,0,.3); }
}
@keyframes gp-bolt-flicker {
    0%, 100% { opacity: 0.85; }
    50%      { opacity: 1; }
}
@keyframes gp-led-blink {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.45; }
}
@keyframes gp-led-flow {
    0%   { background-position: 0 0; }
    100% { background-position: 0 20px; }
}
@keyframes gp-card-tilt {
    0%, 100% { transform: rotate(-3deg) translateY(0); }
    50%      { transform: rotate(3deg) translateY(-4px); }
}
@keyframes gp-shimmer {
    0%   { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}
@keyframes gp-slidein-row {
    from { transform: translateY(-8px); opacity: 0; }
    to   { transform: translateY(0); opacity: 1; }
}
@keyframes gp-fadein-up {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes gp-live-pulse {
    0%, 100% { transform: scale(1);   opacity: 1; }
    50%      { transform: scale(1.4); opacity: .55; }
}
@keyframes gp-trolley-drift {
    0%, 100% { transform: translateX(0); }
    50%      { transform: translateX(40px); }
}
@keyframes gp-claw-bob {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(3px); }
}
@keyframes gp-spring-jitter {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%      { transform: translateX(-50%) translateY(.6px); }
}
@keyframes gp-cabinet-breathe {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-1px); }
}


.gp-home {
    padding: 20px 0 0;
    color: var(--gp-text);
}
.gp-home-grid {
    display: grid;
    grid-template-columns: 260px 1fr 260px;
    gap: 20px;
    align-items: stretch;
    padding: 0 28px;
}

/* ===========================================================
   Left rail: live stream + activity ticker
   =========================================================== */
.gp-rail-left, .gp-rail-right { display: flex; flex-direction: column; gap: 14px; min-height: 0; }

.gp-live {
    background: var(--gp-ink-3);
    border: 1px solid var(--gp-line);
    border-radius: var(--gp-radius);
    overflow: hidden;
}
.gp-live__thumb {
    position: relative;
    aspect-ratio: 5/4;
    background:
        radial-gradient(ellipse at 50% 60%, rgba(255,200,80,.18), transparent 60%),
        linear-gradient(180deg, #1a1830 0%, #06060f 100%);
}
.gp-live__tag {
    position: absolute; top: 8px; left: 8px;
    padding: 3px 7px; border-radius: 2px;
    background: var(--gp-led-red); color: #fff;
    font-family: var(--gp-font-body); font-weight: 900;
    font-size: 10px; letter-spacing: 1.4px;
    display: inline-flex; align-items: center; gap: 5px;
}
.gp-live__tag::before {
    content: ''; width: 5px; height: 5px; border-radius: 50%; background: #fff;
    animation: gp-live-pulse 1.2s ease-in-out infinite;
}
.gp-live__tag { animation: gp-led-blink 1.6s ease-in-out infinite; }
.gp-live__viewers {
    position: absolute; bottom: 6px; right: 6px;
    font-family: var(--gp-font-mono); font-size: 9px;
    background: rgba(0,0,0,.55); color: #fff;
    padding: 2px 5px; border-radius: 2px;
}
.gp-live__svg { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .8; }
.gp-live__btn {
    display: flex; align-items: center; justify-content: center; gap: 6px;
    padding: 10px; background: var(--gp-yellow); color: var(--gp-ink-2);
    font-family: var(--gp-font-heading); font-size: 14px; letter-spacing: 2px;
    border: none; cursor: pointer; width: 100%;
}
.gp-live__btn-play {
    width: 18px; height: 18px; border-radius: 50%;
    background: var(--gp-ink-2); color: var(--gp-yellow);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 10px;
}

.gp-activity { flex: 1; display: flex; flex-direction: column; overflow: hidden; min-height: 280px; }
.gp-activity__head {
    padding: 10px 12px;
    font-family: var(--gp-font-heading); font-size: 14px; letter-spacing: 2.5px;
    color: var(--gp-yellow);
    border-bottom: 1px solid var(--gp-line);
}
.gp-activity__list { flex: 1; overflow: hidden; }
.gp-activity__row {
    display: flex; align-items: center; gap: 10px;
    padding: 10px;
    border-top: 1px solid var(--gp-line);
    background: rgba(255,255,255,.02);
    animation: gp-slidein-row .5s ease-out both;
}
.gp-activity__row:nth-child(2) { animation-delay: .05s; }
.gp-activity__row:nth-child(3) { animation-delay: .10s; }
.gp-activity__row:nth-child(4) { animation-delay: .15s; }
.gp-activity__row:nth-child(5) { animation-delay: .20s; }
.gp-activity__row:nth-child(6) { animation-delay: .25s; }
.gp-activity__row:nth-child(7) { animation-delay: .30s; }
.gp-activity__row:nth-child(8) { animation-delay: .35s; }
.gp-activity__avatar {
    width: 40px; height: 40px; border-radius: 50%;
    border: 2px solid var(--gp-yellow);
    overflow: hidden;
    flex: 0 0 auto;
    box-shadow: 0 2px 4px rgba(0,0,0,.4);
}
.gp-activity__avatar svg { display: block; width: 100%; height: 100%; }
.gp-activity__meta { flex: 1; min-width: 0; }
.gp-activity__name {
    color: var(--gp-yellow); font-weight: 800; font-size: 11px;
    display: flex; align-items: center; gap: 6px;
}
.gp-activity__country {
    color: var(--gp-text-muted); font-size: 9px; letter-spacing: .3px;
}
.gp-activity__pull {
    color: var(--gp-yellow); font-weight: 800;
    font-size: 10px; letter-spacing: .5px; margin-top: 2px;
}
.gp-activity__thumb {
    width: 32px; height: 44px; border-radius: 3px;
    border: 1.5px solid rgba(0,0,0,.6);
    display: flex; align-items: center; justify-content: center;
    font-family: var(--gp-font-display); font-size: 12px; color: #fff;
    flex: 0 0 auto;
    text-shadow: 0 1px 0 #000;
    box-shadow: 0 2px 4px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.4);
    position: relative;
    overflow: hidden;
}
.gp-activity__thumb--sealed {
    background: linear-gradient(180deg, var(--gp-purple), #1a1130);
    border-color: var(--gp-magic, #7a3aff);
    color: #ffcb05;
    font-size: 14px;
}
.gp-activity__thumb-star {
    color: rgba(255,255,255,.85);
    font-size: 14px;
    text-shadow: 0 0 4px rgba(255,255,255,.6), 0 1px 1px rgba(0,0,0,.6);
}
.gp-activity__foot {
    padding: 10px 12px;
    border-top: 1px solid var(--gp-line);
    text-align: center;
    font-family: var(--gp-font-body); font-size: 11px; font-weight: 700;
    letter-spacing: 1px; color: var(--gp-text); opacity: .65;
    background: rgba(255,255,255,.02);
}

/* ===========================================================
   The machine
   =========================================================== */
.gp-machine-col { position: relative; display: flex; justify-content: center; min-height: 0; }

.gp-machine {
    position: relative; width: 100%;
    background:
        radial-gradient(ellipse 80% 30% at 50% 0%, #fff34a, transparent 70%),
        linear-gradient(180deg, var(--gp-yellow) 0%, var(--gp-yellow-deep) 60%, #c89500 100%);
    border: 6px solid var(--gp-ink-2);
    border-radius: 20px;
    box-shadow:
        0 0 0 3px var(--gp-yellow),
        0 30px 60px rgba(0,0,0,.85),
        inset 0 6px 0 rgba(255,255,255,.45),
        inset 0 -12px 0 rgba(0,0,0,.30),
        inset 4px 0 0 rgba(255,255,255,.10),
        inset -4px 0 0 rgba(0,0,0,.10);
    padding: 18px 22px 16px;
    display: flex; flex-direction: column; gap: 10px;
    animation: gp-cabinet-breathe 4s ease-in-out infinite;
}
.gp-machine.is-shake { animation: gp-cabinet-breathe 4s ease-in-out infinite, gp-card-tilt .12s ease-in-out infinite; }

/* Corner rivets (4 small dark dots inset into the cabinet body) */
.gp-machine::after {
    content: ''; display: none;
}
.gp-machine__rivet {
    position: absolute; z-index: 4;
    width: 9px; height: 9px; border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #fff8c0, #aa7d00 60%, #4a2e00 100%);
    box-shadow: 0 1px 2px rgba(0,0,0,.6), inset 0 -1px 0 rgba(0,0,0,.5);
}
.gp-machine__rivet--tl { top: 14px;    left: 16px; }
.gp-machine__rivet--tr { top: 14px;    right: 16px; }
.gp-machine__rivet--bl { bottom: 14px; left: 16px; }
.gp-machine__rivet--br { bottom: 14px; right: 16px; }

/* Side decorative lightning bolts (outside the glass, inside the cabinet body) */
.gp-machine__sidebolt {
    position: absolute; z-index: 2;
    width: 16px; height: 64px;
    pointer-events: none;
}
.gp-machine__sidebolt--left  { left: 5px;  top: 50%; transform: translateY(-50%); }
.gp-machine__sidebolt--right { right: 5px; top: 50%; transform: translateY(-50%); }
.gp-machine__sidebolt svg { width: 100%; height: 100%; }
.gp-machine__tape {
    position: absolute; left: -1px; right: -1px; height: 12px;
    background: repeating-linear-gradient(135deg, #000 0 14px, var(--gp-yellow) 14px 28px);
}
.gp-machine__tape--top    { top: -1px;    border-radius: 8px 8px 0 0; }
.gp-machine__tape--bottom { bottom: -1px; border-radius: 0 0 8px 8px; }

/* ===========================================================
   Machine header banner: Pokéballs + mascots + MYSTERY PACKS title.
   Yellow banner background, white lightning bolts, chunky 3D title.
   =========================================================== */
.gp-machine__header {
    position: relative;
    background:
        radial-gradient(ellipse 80% 70% at 50% 100%, rgba(255,255,255,.30), transparent 70%),
        linear-gradient(180deg, #ffe056 0%, var(--gp-yellow) 45%, var(--gp-yellow-deep) 100%);
    border-radius: var(--gp-radius);
    border: 3px solid var(--gp-ink-2);
    padding: 18px 22px;
    display: flex; align-items: center; justify-content: space-between; gap: 14px;
    min-height: 160px;
    box-shadow:
        inset 0 2px 0 rgba(255,255,255,.4),
        inset 0 -4px 0 rgba(0,0,0,.15),
        0 4px 16px rgba(0,0,0,.4);
    overflow: hidden;
}
.gp-machine__bolts {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    opacity: 1;
    pointer-events: none;
    animation: gp-bolt-flicker 1.8s ease-in-out infinite;
    z-index: 1;
}
.gp-machine__title {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    z-index: 3;
    flex: 1;
}
.gp-machine__title-row {
    font-family: var(--gp-font-display);
    font-size: clamp(38px, 5.5vw, 68px);
    letter-spacing: 3px;
    color: #fff34a;
    line-height: 0.95;
    text-shadow:
        -3px -3px 0 #000, 3px -3px 0 #000, -3px 3px 0 #000, 3px 3px 0 #000,
        -3px 0 0 #000, 3px 0 0 #000, 0 -3px 0 #000, 0 3px 0 #000,
        4px 4px 0 #c8101b,
        6px 6px 0 #8a0a13,
        8px 8px 12px rgba(0,0,0,.5);
}
.gp-machine__title-row--bot { margin-top: -4px; }
.gp-machine__title-row em {
    color: #ff3030;
    font-style: normal;
    display: inline-block;
    animation: gp-bolt-flicker 1.2s ease-in-out infinite;
    text-shadow:
        -3px -3px 0 #000, 3px -3px 0 #000, -3px 3px 0 #000, 3px 3px 0 #000,
        -3px 0 0 #000, 3px 0 0 #000, 0 -3px 0 #000, 0 3px 0 #000,
        4px 4px 0 #8a0a13;
}

/* Mascot SVGs / images in the banner */
.gp-mascot { flex: 0 0 auto; position: relative; z-index: 3; transform-origin: 50% 80%; animation: gp-card-tilt 3.2s ease-in-out infinite; }
.gp-machine__header .gp-mascot:nth-of-type(2) { animation-delay: 1.6s; }

/* Image-based art (when user uploaded actual licensed image via Customizer) */
.gp-art { position: relative; z-index: 3; flex: 0 0 auto; }
.gp-art img { width: 100%; height: 100%; object-fit: contain; display: block; }
.gp-art--mascot-left,
.gp-art--mascot-right {
    transform-origin: 50% 80%;
    animation: gp-card-tilt 3.2s ease-in-out infinite;
}
.gp-art--mascot-right { animation-delay: 1.6s; }
.gp-art--pokeball-left,
.gp-art--pokeball-right { animation: gp-cabinet-breathe 5s ease-in-out infinite; }

/* Pokéball SVG drop-shadow */
.gp-pokeball { filter: drop-shadow(0 4px 4px rgba(0,0,0,.4)); }

/* Pokéball mounting plate — dark circular plate behind each header Pokéball,
   matches the v2 design where the balls sit on the cabinet, not just floating */
.gp-pokeball-mount {
    position: relative;
    display: inline-flex; align-items: center; justify-content: center;
    width: 110px; height: 110px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 35% 30%, #2a2a36, #0a0a14 60%, #000 100%);
    border: 3px solid #000;
    box-shadow:
        0 0 0 2px rgba(255,203,5,.4),
        0 6px 14px rgba(0,0,0,.6),
        inset 0 2px 0 rgba(255,255,255,.15),
        inset 0 -2px 0 rgba(0,0,0,.5);
    flex: 0 0 auto;
    z-index: 3;
    animation: gp-cabinet-breathe 5s ease-in-out infinite;
}
.gp-pokeball-mount .gp-pokeball,
.gp-pokeball-mount .gp-art { animation: none; }
.gp-mascot__label {
    position: absolute; left: 50%; bottom: 6px; transform: translateX(-50%);
    background: rgba(255,255,255,.85); color: #000; font-family: var(--gp-font-mono);
    font-size: 6px; letter-spacing: .5px; padding: 1px 3px; border-radius: 2px;
    white-space: nowrap;
}

/* ===========================================================
   Glass panel + 5×5 coil grid
   =========================================================== */
.gp-machine__glass {
    position: relative;
    border: 5px solid var(--gp-ink-2);
    border-radius: 10px;
    background:
        radial-gradient(ellipse at 50% 0%, rgba(120,150,255,.22), transparent 60%),
        linear-gradient(180deg, #0e1430 0%, #060814 100%);
    box-shadow:
        inset 0 0 0 2px rgba(255,255,255,.06),
        inset 0 8px 30px rgba(120,150,255,.18),
        inset 0 -10px 24px rgba(0,0,0,.6),
        0 6px 0 #3a2c00;
    overflow: hidden;
    padding: 18px 22px;
}
.gp-machine__glass::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(120deg, transparent 40%, rgba(255,255,255,.05) 50%, transparent 60%);
    pointer-events: none;
}
.gp-coil-grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: repeat(5, 1fr);
    gap: 6px 4px;
    min-height: 480px;
}
.gp-coil-grid::before, .gp-coil-grid::after {
    /* LED side strips — animated flow */
    content: '';
    position: absolute; top: 8px; bottom: 8px;
    width: 6px; border-radius: 3px;
    background:
        linear-gradient(180deg, rgba(255,255,255,.2), transparent 40%, rgba(0,0,0,.2)),
        repeating-linear-gradient(180deg, var(--gp-cyan) 0 6px, var(--gp-cyan-dark) 6px 10px);
    box-shadow:
        0 0 12px var(--gp-cyan),
        0 0 24px rgba(67,232,216,.55);
    animation: gp-led-flow 1.4s linear infinite;
}
.gp-coil-grid::before { left: -14px; }
.gp-coil-grid::after  { right: -14px; }

.gp-coil {
    position: relative;
    display: flex; flex-direction: column; align-items: center;
    padding-top: 14px;
    cursor: pointer; user-select: none;
    transition: transform .15s ease-out;
}
.gp-coil[data-out-of-stock="1"] { cursor: not-allowed; opacity: .35; }
.gp-coil:hover:not([data-out-of-stock="1"]) { transform: translateY(-3px); z-index: 5; }
.gp-coil__stock {
    position: absolute; top: 0; left: 50%; transform: translateX(-50%); z-index: 4;
    padding: 2px 7px;
    background: var(--gp-ink-2);
    border: 1.5px solid var(--gp-yellow);
    color: var(--gp-yellow);
    font-family: var(--gp-font-mono); font-size: 9px; font-weight: 700;
    border-radius: 3px; white-space: nowrap;
    box-shadow: 0 1px 2px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.08);
    letter-spacing: .5px;
}
.gp-coil__stock--low {
    color: #ff5050; border-color: #ff5050;
    box-shadow: 0 0 8px rgba(255,80,80,.55), inset 0 1px 0 rgba(255,255,255,.08);
}
.gp-coil__spring {
    position: absolute;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    pointer-events: none;
}
/* MysteryPack — ported from shared-arcade.jsx */
.gp-coil__pack {
    position: relative; z-index: 3;
    display: block;
    width: 64px; height: 92px;
    border-radius: 6px;
    background: linear-gradient(180deg, var(--gp-purple) 0%, #1a1130 100%);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.35),
        inset 0 -8px 16px rgba(0,0,0,.45),
        inset 0 0 0 1px rgba(0,0,0,.4),
        0 4px 10px rgba(0,0,0,.5);
    overflow: hidden;
    margin-top: 8px;
}
/* sealed zigzag tear strip on top */
.gp-pack-tape {
    position: absolute; top: 0; left: 0; right: 0; height: 8px;
    background: repeating-linear-gradient(135deg, #1a1130 0 4px, #2a1a40 4px 8px);
    border-bottom: 1px solid rgba(0,0,0,.6);
    z-index: 2;
}
/* diagonal foil sheen */
.gp-pack-sheen {
    position: absolute; inset: 0;
    background: linear-gradient(115deg, rgba(255,255,255,.18) 0%, transparent 40%, rgba(255,255,255,.08) 70%, transparent 100%);
    pointer-events: none; mix-blend-mode: screen;
}
/* MYSTERY / PACK Bungee text — chunky yellow with red shadow + black outline */
.gp-pack-title, .gp-pack-sub {
    position: absolute; left: 0; right: 0; z-index: 3; text-align: center;
    font-family: var(--gp-font-display);
    font-size: 13px;
    letter-spacing: .8px;
    color: #ffd64a;
    line-height: 0.9;
    text-shadow:
        -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000,
        -1px 0 0 #000, 1px 0 0 #000, 0 -1px 0 #000, 0 1px 0 #000,
        1.5px 1.5px 0 #c8101b;
}
.gp-pack-title { top: 11px; }
.gp-pack-sub   { bottom: 5px; }

/* Center mini-Pokéball */
.gp-pack-pokeball {
    position: absolute; left: 50%; top: 38px; transform: translateX(-50%);
    width: 32px; height: 32px; z-index: 3;
    filter: drop-shadow(0 2px 3px rgba(0,0,0,.5));
}
.gp-coil__slot {
    position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); z-index: 4;
    padding: 2px 10px;
    background: var(--gp-ink-2);
    border: 1px solid #5a5a6a;
    color: #fff;
    font-family: var(--gp-font-mono); font-size: 10px; font-weight: 700;
    border-radius: 2px;
}
.gp-coil[data-selected="1"] .gp-coil__pack {
    box-shadow:
        0 0 0 3px var(--gp-cyan),
        0 0 16px var(--gp-cyan),
        inset 0 0 12px rgba(67,232,216,.4),
        0 4px 10px rgba(0,0,0,.5);
    animation: gp-pulse-glow 1.4s ease-in-out infinite;
}

/* Reserved overlay — shown when another buyer is holding this pack */
.gp-coil[data-reserved="1"] {
    opacity: 1 !important;
    filter: saturate(.55);
}
.gp-coil__reserved {
    position: absolute;
    inset: 0;
    z-index: 6;
    background: rgba(0,0,0,.78);
    border: 2px solid var(--gp-led-red);
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    box-shadow: inset 0 0 12px rgba(255,53,72,.4), 0 0 12px rgba(255,53,72,.4);
}
.gp-coil__reserved-label {
    font-family: var(--gp-font-heading); font-size: 9px; letter-spacing: 1.2px;
    color: var(--gp-led-red);
    text-shadow: 0 0 6px var(--gp-led-red);
}
.gp-coil__reserved-time {
    font-family: var(--gp-font-numeric); font-size: 14px; font-weight: 900;
    color: var(--gp-led-red);
    margin-top: 2px;
    text-shadow: 0 0 8px var(--gp-led-red);
    animation: gp-mech-flash 1s ease-in-out infinite;
}
.gp-coil:hover:not([data-out-of-stock="1"]) .gp-coil__spring {
    animation: gp-spring-jitter .12s ease-in-out infinite;
}

/* ===========================================================
   Cogs in the claw tray (proto-mechanical.jsx style)
   =========================================================== */
@keyframes gp-cog-spin     { from { transform: rotate(0deg); }      to { transform: rotate(360deg); } }
@keyframes gp-cog-spin-rev { from { transform: rotate(0deg); }      to { transform: rotate(-360deg); } }
.gp-cog {
    position: absolute;
    opacity: .85;
    z-index: 1;
    pointer-events: none;
    transform-origin: 50% 50%;
    animation: gp-cog-spin 14s linear infinite;
    filter: drop-shadow(0 3px 6px rgba(0,0,0,.7)) drop-shadow(0 0 6px rgba(255,203,5,.25));
}
.gp-cog--rev { animation: gp-cog-spin-rev 18s linear infinite; }

/* ===========================================================
   Claw tray
   =========================================================== */
.gp-machine__tray {
    height: 220px; flex: 0 0 auto;
    border: 4px solid var(--gp-ink-2);
    border-radius: var(--gp-radius);
    overflow: hidden;
    position: relative;
    background:
        radial-gradient(ellipse at 50% 0%, rgba(255,80,80,.10), transparent 65%),
        linear-gradient(180deg, var(--gp-ink) 0%, #1a0a0a 100%);
    box-shadow: inset 0 0 40px rgba(0,0,0,.7);
}
.gp-claw {
    position: absolute; top: 30px; left: 50%; transform: translateX(-50%);
    width: 100px; z-index: 4;
    display: flex; flex-direction: column; align-items: center;
}
.gp-claw__rail {
    position: absolute; top: 40px; left: 30px; right: 30px; height: 8px;
    background: linear-gradient(180deg, #4a4f5e 0%, #1a1c26 100%);
    border-top: 1px solid #5a5f6e; border-bottom: 1px solid #000;
    box-shadow: 0 2px 6px rgba(0,0,0,.5);
}
.gp-claw__trolley {
    width: 70px; height: 22px;
    background: linear-gradient(180deg, #5a5f6e, #2a2f3e);
    border: 1px solid #000; border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,.6), inset 0 0 0 1px rgba(255,203,5,.27);
    position: relative;
}
.gp-claw { animation: gp-claw-bob 3s ease-in-out infinite; }
.gp-claw__trolley::before { animation: gp-led-blink 1.2s ease-in-out infinite; }
.gp-claw__trolley::after {
    content: '';
    position: absolute; top: 5px; left: 14px; right: 14px; height: 10px;
    background: var(--gp-ink-2); border: 1px solid rgba(255,203,5,.55); border-radius: 2px;
}
.gp-claw__trolley::before {
    content: '';
    position: absolute; left: 50%; top: 10px; width: 6px; height: 6px;
    border-radius: 50%; background: var(--gp-led-red);
    box-shadow: 0 0 6px var(--gp-led-red);
    transform: translate(-50%, 0);
    z-index: 2;
}
.gp-claw__cable {
    width: 4px; height: 26px;
    background: linear-gradient(180deg, #2a2f3e, #1a1c26);
    border: 1px solid #000;
}
.gp-claw__head {
    width: 80px; height: 60px; position: relative;
}
.gp-claw__head svg { width: 100%; height: 100%; }
.gp-tray__conveyor {
    position: absolute; bottom: 0; left: 16px; right: 16px; height: 56px;
    background: linear-gradient(180deg, #2a2a36, #0a0a14);
    border-top: 2px solid var(--gp-yellow);
    border-radius: 4px 4px 0 0;
    background-image: repeating-linear-gradient(90deg, rgba(255,203,5,.2) 0 24px, transparent 24px 30px);
}
.gp-tray__led-left, .gp-tray__led-right {
    position: absolute; top: 0; bottom: 0; width: 6px;
    background: linear-gradient(180deg, transparent, var(--gp-led-red), transparent);
    box-shadow: 0 0 14px var(--gp-led-red);
}
.gp-tray__led-left  { left: 0;  animation: gp-led-blink 1.4s ease-in-out infinite; }
.gp-tray__led-right { right: 0; animation: gp-led-blink 1.4s ease-in-out .7s infinite; }

/* Idle decorative packs sitting on the conveyor (matches the design image) */
.gp-tray-idle-packs {
    position: absolute; bottom: 18px; left: 0; right: 0; height: 90px;
    display: flex; align-items: flex-end; justify-content: center; gap: 12px;
    z-index: 5;
    pointer-events: none;
}
.gp-tray-idle-pack {
    position: relative;
    width: 54px; height: 78px;
    border-radius: 6px;
    background: linear-gradient(180deg, var(--gp-purple) 0%, #1a1130 100%);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.35),
        inset 0 -6px 12px rgba(0,0,0,.45),
        0 6px 14px rgba(0,0,0,.6);
    transform-origin: 50% 100%;
    overflow: hidden;
}
.gp-tray-idle-pack--a { transform: rotate(-9deg) translateX(8px); }
.gp-tray-idle-pack--b { transform: rotate(11deg) translateX(-4px) translateY(-2px); }
/* Reuse pack visual sub-styles inside the idle pack */
.gp-tray-idle-pack .gp-pack-title,
.gp-tray-idle-pack .gp-pack-sub { font-size: 10px; }
.gp-tray-idle-pack .gp-pack-title { top: 7px; }
.gp-tray-idle-pack .gp-pack-sub   { bottom: 4px; }
.gp-tray-idle-pack .gp-pack-pokeball {
    top: 28px; width: 24px; height: 24px;
}

/* Speaker / volume toggle on the tray */
.gp-tray-volume {
    position: absolute; bottom: 14px; left: 16px; z-index: 6;
    width: 38px; height: 38px; border-radius: 50%;
    background: var(--gp-ink-2);
    border: 1.5px solid var(--gp-yellow);
    color: var(--gp-yellow);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,.5), inset 0 0 8px rgba(255,203,5,.18);
    pointer-events: auto;
}
.gp-tray-volume:hover { background: var(--gp-yellow); color: var(--gp-ink-2); }
.gp-tray-volume[aria-pressed="true"] {
    background: var(--gp-led-red);
    border-color: var(--gp-led-red);
    color: #fff;
}

/* ===========================================================
   Right rail: how-it-works, selected total, pay now, mascot
   =========================================================== */
.gp-howto {
    background: var(--gp-ink-3);
    border: 1px solid var(--gp-line);
    border-radius: var(--gp-radius);
    padding: 14px;
}
.gp-howto__title {
    font-family: var(--gp-font-heading); font-size: 14px; letter-spacing: 2.5px;
    color: var(--gp-yellow); margin-bottom: 10px;
}
.gp-howto__step {
    display: flex; align-items: center; gap: 10px;
    padding: 8px 0;
}
.gp-howto__num {
    width: 24px; height: 24px; border-radius: 4px;
    background: var(--gp-yellow); color: var(--gp-ink-2);
    display: flex; align-items: center; justify-content: center;
    font-family: var(--gp-font-display); font-size: 12px; font-weight: 900;
}
.gp-howto__text {
    font-family: var(--gp-font-body); font-size: 10.5px; font-weight: 700;
    letter-spacing: .5px; line-height: 1.3; flex: 1;
    text-transform: uppercase;
}
.gp-howto__ic { color: var(--gp-yellow); font-size: 12px; opacity: .6; }

.gp-selected {
    background: linear-gradient(180deg, var(--gp-ink-2) 0%, var(--gp-ink-4) 100%);
    border: 2px solid var(--gp-yellow);
    border-radius: var(--gp-radius);
    padding: 16px; text-align: center;
    box-shadow: inset 0 0 30px rgba(255,203,5,.10);
}
.gp-selected__label {
    font-family: var(--gp-font-body); font-size: 10px; letter-spacing: 2px;
    color: #fff; opacity: .7; font-weight: 700; text-transform: uppercase;
}
.gp-selected__count-row {
    display: flex; align-items: baseline; justify-content: center; gap: 8px;
    margin-top: 6px;
}
.gp-selected__count {
    font-family: var(--gp-font-numeric); font-size: 44px; font-weight: 900;
    color: var(--gp-cyan); text-shadow: 0 0 14px rgba(67,232,216,.7);
    line-height: 0.95;
}
.gp-selected__count-unit {
    font-family: var(--gp-font-heading); font-size: 18px; letter-spacing: 2px; color: var(--gp-cyan);
}
.gp-selected__divider {
    margin-top: 10px; padding-top: 10px;
    border-top: 1px dashed rgba(255,203,5,.3);
}
.gp-selected__total {
    font-family: var(--gp-font-numeric); font-size: 26px; font-weight: 900;
    color: #fff; margin-top: 4px;
}

.gp-pay {
    background: linear-gradient(180deg, #ff5060 0%, var(--gp-red) 35%, var(--gp-red-deep) 100%);
    border: 4px solid var(--gp-ink-2);
    border-radius: 12px; padding: 18px 0 16px; text-align: center;
    color: #fff; display: block; text-decoration: none;
    box-shadow:
        /* outer red neon ring */
        0 0 0 3px #ff5060,
        0 0 0 5px rgba(255,53,72,.9),
        /* big external glow */
        0 0 40px rgba(255,53,72,.85),
        0 0 80px rgba(255,53,72,.4),
        /* 3D bevel base */
        0 8px 0 var(--gp-ink-2),
        /* drop */
        0 12px 22px rgba(0,0,0,.6),
        /* inset highlights/shadows */
        inset 0 2px 0 rgba(255,255,255,.45),
        inset 0 -6px 0 rgba(0,0,0,.35);
    transition: transform .1s, filter .15s;
    cursor: pointer;
    position: relative;
    z-index: 1;
}
.gp-pay:hover, .gp-pay:focus { color: #fff; transform: translateY(-1px); }
.gp-pay:not([aria-disabled="true"]) { animation: gp-pulse-red 1.6s ease-in-out infinite; }
.gp-pay[disabled], .gp-pay[aria-disabled="true"] {
    opacity: .55; cursor: not-allowed; pointer-events: none;
    background: linear-gradient(180deg, #6a3035, #401015);
    animation: none;
}
.gp-pay__big {
    font-family: var(--gp-font-display);
    font-size: clamp(26px, 2.6vw, 34px);
    letter-spacing: 2px;
    color: #fff34a;
    text-shadow:
        -2px -2px 0 #000, 2px -2px 0 #000, -2px 2px 0 #000, 2px 2px 0 #000,
        3px 3px 0 #4a0408,
        0 0 12px rgba(255,243,74,.5);
}
.gp-pay__small {
    font-family: var(--gp-font-body); font-size: 11px; font-weight: 900;
    letter-spacing: 2px; color: #fff;
    text-shadow: 1px 1px 0 var(--gp-ink-2);
    margin-top: 4px;
}

/* Mascot panel — free-standing, no panel border (v2 design).
   The big Pikachu floats in the bottom of the right rail with a small
   Pokéball above its head, no contained yellow box. */
.gp-mascot-panel {
    background: transparent;
    border: none;
    border-radius: 0;
    position: relative;
    min-height: 280px;
    overflow: visible;
    display: flex; align-items: flex-end; justify-content: center;
    padding: 0;
    box-shadow: none;
    margin-top: 8px;
}
.gp-mascot-panel__pokeball {
    position: absolute;
    top: 14px; left: 14px;
    z-index: 2;
    animation: gp-cabinet-breathe 4s ease-in-out infinite;
}
.gp-mascot-panel__hero {
    display: flex; align-items: flex-end; justify-content: center;
    width: 100%;
}
.gp-mascot-panel__hero .gp-mascot,
.gp-mascot-panel__hero .gp-art {
    animation: gp-card-tilt 4s ease-in-out infinite;
}

/* ===========================================================
   Reveal-or-ship ribbon (decorative pre-purchase preview).
   Yellow ribbon with warning tape top + bottom, centered title,
   2 prominent dark buttons (cyan / purple) with icon + title + sub.
   =========================================================== */
.gp-reveal-ribbon {
    margin-top: 24px;
    background: linear-gradient(180deg, #ffe056 0%, var(--gp-yellow) 50%, var(--gp-yellow-dark) 100%);
    padding: 28px 28px 26px;
    position: relative;
}
.gp-reveal-ribbon__stripe {
    position: absolute; left: 0; right: 0; height: 8px;
    background: repeating-linear-gradient(135deg, #000 0 14px, var(--gp-yellow) 14px 28px);
}
.gp-reveal-ribbon__stripe--top    { top: 0; }
.gp-reveal-ribbon__stripe--bottom { bottom: 0; }
.gp-reveal-ribbon__title {
    text-align: center;
    font-family: var(--gp-font-body); font-weight: 900;
    font-size: 13px; letter-spacing: 3px;
    color: var(--gp-ink-2);
    margin-bottom: 14px;
    text-transform: uppercase;
}
.gp-reveal-ribbon__row {
    display: flex; align-items: center; justify-content: center; gap: 20px;
    flex-wrap: wrap;
}
.gp-reveal-ribbon__or {
    font-family: var(--gp-font-display); font-size: 24px; letter-spacing: 2px;
    color: var(--gp-ink-2);
    text-shadow: 2px 2px 0 #fff34a, 4px 4px 0 var(--gp-yellow-deep);
}
.gp-reveal-ribbon__btn {
    display: inline-flex; align-items: center; gap: 16px; padding: 14px 22px;
    background: var(--gp-ink-2); border: 2.5px solid var(--gp-cyan);
    border-radius: 12px;
    box-shadow:
        0 0 24px rgba(67,232,216,.5),
        inset 0 0 18px rgba(67,232,216,.08),
        0 6px 12px rgba(0,0,0,.4);
    pointer-events: none;
    min-width: 280px;
}
.gp-reveal-ribbon__btn--sealed {
    border-color: var(--gp-magic-light);
    box-shadow:
        0 0 24px rgba(192,132,252,.5),
        inset 0 0 18px rgba(192,132,252,.08),
        0 6px 12px rgba(0,0,0,.4);
}
.gp-reveal-ribbon__btn-icon {
    width: 50px; height: 60px;
    flex: 0 0 auto;
    position: relative;
}
.gp-reveal-ribbon__btn-text { text-align: left; }
.gp-reveal-ribbon__btn-title {
    font-family: var(--gp-font-display); font-size: 22px; letter-spacing: 1.5px;
    color: var(--gp-cyan);
    text-shadow: 0 0 12px rgba(67,232,216,.5);
}
.gp-reveal-ribbon__btn--sealed .gp-reveal-ribbon__btn-title {
    color: var(--gp-magic-light);
    text-shadow: 0 0 12px rgba(192,132,252,.5);
}
.gp-reveal-ribbon__btn-sub {
    font-family: var(--gp-font-body); font-size: 10px; font-weight: 800;
    letter-spacing: 1.5px; color: #fff; opacity: .75; margin-top: 4px;
}

/* ─── REVEAL NOW icon: stack of cyan cards ─── */
.gp-rrb-card {
    position: absolute;
    width: 36px; height: 50px; border-radius: 4px;
    background: linear-gradient(180deg, #5af2e2, var(--gp-cyan));
    border: 2px solid #0a4a44;
    box-shadow: 0 2px 4px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.4);
}
.gp-rrb-card--back  { left: 4px;  top: 8px; transform: rotate(-8deg); opacity: .65; }
.gp-rrb-card--front {
    left: 12px; top: 5px;
    display: flex; align-items: center; justify-content: center;
    color: var(--gp-ink-2);
    font-family: var(--gp-font-display); font-size: 22px;
    text-shadow: 0 1px 0 rgba(255,255,255,.4);
}

/* ─── SHIP SEALED icon: open purple box ─── */
.gp-rrb-box {
    position: absolute;
    border: 2px solid #2a0a55;
}
.gp-rrb-box--body {
    left: 6px; top: 22px;
    width: 40px; height: 32px; border-radius: 3px;
    background: linear-gradient(180deg, #b07cf3, var(--gp-magic-light));
    box-shadow: inset 0 -6px 8px rgba(0,0,0,.2);
}
.gp-rrb-box--lid {
    left: 4px; top: 14px;
    width: 44px; height: 14px; border-radius: 3px 3px 0 0;
    background: linear-gradient(180deg, #c69bff, #b07cf3);
    z-index: 2;
    transform: skewX(-8deg);
}
.gp-rrb-box--body::before {
    /* tape band */
    content: '';
    position: absolute; left: 50%; top: 0; bottom: 0; width: 4px;
    background: rgba(0,0,0,.3); transform: translateX(-50%);
}

/* ===========================================================
   Responsive
   =========================================================== */
@media (max-width: 1200px) {
    .gp-home-grid { grid-template-columns: 220px 1fr 220px; gap: 14px; padding: 0 16px; }
}
@media (max-width: 980px) {
    .gp-home-grid { grid-template-columns: 1fr; }
    .gp-rail-left, .gp-rail-right { flex-direction: row; flex-wrap: wrap; gap: 10px; }
    .gp-rail-left > *, .gp-rail-right > * { flex: 1 1 220px; min-width: 0; }
    .gp-coil-grid { min-height: auto; grid-template-rows: none; }
}
@media (max-width: 600px) {
    .gp-coil-grid { grid-template-columns: repeat(4, 1fr); }
    .gp-machine__title-row { font-size: 28px; }
    .gp-mascot { width: 64px; height: 64px; }
}
