/* ==========================================================================
   Vinity Network
   Built on the supplied stylesheet: #0f0f1a ground, #1a1a2e chrome,
   #1f1f2f panels, #00f7ff accent, 10-20px radii, cyan glow shadows,
   Segoe UI, and scale-on-hover.
   ========================================================================== */

:root {
    /* Panels rise on this curve: quick away from the surface, soft landing */
    --lift: 0.38s cubic-bezier(0.22, 1, 0.36, 1);
    --bg: #0f0f1a;
    --chrome: #1a1a2e;
    --panel: #1f1f2f;
    --panel-alt: #262638;
    --field: #2a2a3b;

    --cyan: #00f7ff;
    --cyan-dark: #00cbd1;
    --gold: #f0b429;

    --text: #ffffff;
    --muted: #9aa3b8;

    --glow: 0 0 20px rgba(0, 255, 255, 0.2);
    --glow-strong: 0 0 28px rgba(0, 255, 255, 0.35);
    --drop: 0 2px 12px rgba(0, 247, 255, 0.16);

    --font: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    --mono: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;

    --gut: clamp(18px, 4vw, 40px);
    --shell: 1200px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    margin: 0;
    overflow-x: hidden;
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

/* Scroll reveal. Deliberately does NOT hold `transform` once it has played -
   the animation releases the property so the hover lift can use it. */
@keyframes riseIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    opacity: 0;
}

.reveal.visible {
    opacity: 1;
    animation: riseIn 0.6s ease-out;
}

/* --------------------------------------------------------------------------
   Shell and shared type
   -------------------------------------------------------------------------- */

.shell {
    width: 100%;
    max-width: var(--shell);
    margin: 0 auto;
    padding: 0 var(--gut);
}

.eyebrow {
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--cyan);
    margin: 0 0 14px;
}

.eyebrow-c {
    text-align: center;
}

.h-sec {
    font-size: clamp(28px, 4vw, 40px);
    color: var(--cyan);
    margin: 0 0 16px;
    line-height: 1.2;
}

.lede {
    max-width: 62ch;
    color: var(--muted);
    margin: 0 0 36px;
    font-size: 17px;
}

/* --------------------------------------------------------------------------
   Header and footer chrome
   -------------------------------------------------------------------------- */

.nav {
    position: sticky;
    top: 0;
    z-index: 60;
    background: var(--chrome);
    box-shadow: var(--drop);
}

.nav-in {
    max-width: var(--shell);
    margin: 0 auto;
    padding: 0 var(--gut);
    height: 76px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-right: auto;
}

.brand img {
    width: 42px;
    height: 42px;
    object-fit: contain;
}

.brand b {
    display: block;
    font-size: 22px;
    color: var(--cyan);
    line-height: 1.1;
}

.brand span {
    display: block;
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--muted);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-links a {
    margin: 0 15px;
    color: var(--cyan);
    font-weight: bold;
    display: inline-block;
    transform: translateY(0);
    transition: color 0.3s ease, transform var(--lift);
}

.nav-links a:hover,
.nav-links a[aria-current='page'] {
    color: var(--text);
    transform: translateY(-4px);
}

.foot {
    background: var(--chrome);
    padding: 26px 20px;
    text-align: center;
    box-shadow: 0 -2px 12px rgba(0, 247, 255, 0.16);
    margin-top: 50px;
}

.foot-in {
    max-width: var(--shell);
    margin: 0 auto;
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.foot p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.foot-links {
    display: flex;
    gap: 22px;
    font-size: 14px;
}

.foot-links a {
    color: var(--cyan);
    font-weight: bold;
    display: inline-block;
    transform: translateY(0);
    transition: color 0.3s ease, transform var(--lift);
}

.foot-links a:hover {
    color: var(--text);
    transform: translateY(-4px);
}

/* --------------------------------------------------------------------------
   Buttons — every button on the site shares the one look from the source
   sheet: cyan fill, dark label, bold, 10px radius, 1.05 lift on hover.
   -------------------------------------------------------------------------- */

.btn,
.ip-copy,
.pkg-add,
.basket-btn,
.cat,
.nav-toggle,
.line-remove,
.drawer-close,
.sound-toggle,
.region {
    padding: 10px;
    border: none;
    border-radius: 10px;
    background-color: var(--cyan);
    color: var(--bg);
    font-family: var(--font);
    font-weight: bold;
    cursor: pointer;
    transform: translateY(0);
    /* colour eases; the movement runs on the softer curve so it settles
       rather than snapping at either end */
    transition: background 0.3s ease, transform var(--lift);
}

.btn:hover,
.ip-copy:hover,
.pkg-add:hover,
.basket-btn:hover,
.cat:hover,
.nav-toggle:hover,
.line-remove:hover,
.drawer-close:hover,
.sound-toggle:hover,
.region:hover {
    background-color: var(--cyan-dark);
    transform: translateY(-4px);
}

/* Settles back down when pressed */
.btn:active,
.ip-copy:active,
.pkg-add:active,
.basket-btn:active,
.cat:active,
.nav-toggle:active,
.line-remove:active,
.drawer-close:active,
.sound-toggle:active,
.region:active {
    transform: translateY(0);
    box-shadow: none;
    transition-duration: 0.09s;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 30px;
    font-size: 16px;
}

/* The store button keeps the crown gold; it still behaves identically. */
.btn-crown {
    background-color: var(--gold);
}

.btn-crown:hover {
    background-color: #d99f14;
}

.btn[disabled] {
    opacity: 0.45;
    cursor: not-allowed;
}

.btn[disabled]:hover {
    background-color: var(--cyan);
    transform: none;
}

.btn-crown[disabled]:hover {
    background-color: var(--gold);
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
    width: 100%;
}

.hero-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    max-width: var(--shell);
    margin: 0 auto;
}

.hero-mark {
    position: relative;
    width: clamp(140px, 20vw, 210px);
    aspect-ratio: 1 / 1;
    margin-bottom: 24px;
    filter: drop-shadow(0 0 26px rgba(0, 247, 255, 0.35));
}

/* The still frame shows until the animation frames have loaded (and stays
   for anyone with reduced motion on); the canvas then fades in over it. */
.hero-mark-still,
.hero-mark-anim {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
}

.hero-mark-anim {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hero-mark.is-playing .hero-mark-anim {
    opacity: 1;
}

.hero-mark.is-playing .hero-mark-still {
    visibility: hidden;
}

.hero h1 {
    font-size: clamp(34px, 5.6vw, 56px);
    line-height: 1.1;
    margin: 0 0 18px;
    color: var(--text);
}

.hero h1 .lit {
    color: var(--cyan);
}

.hero p.pitch {
    font-size: 18px;
    color: var(--muted);
    max-width: 54ch;
    margin: 0 auto 30px;
}

/* IP block — sized and shaped like the .login-box */
.ip {
    display: flex;
    align-items: stretch;
    width: 100%;
    max-width: 460px;
    margin: 0 auto 26px;
    background: var(--panel);
    border-radius: 20px;
    box-shadow: var(--glow);
    overflow: hidden;
}

.ip-label {
    display: flex;
    align-items: center;
    padding: 0 18px;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--muted);
    background: var(--field);
}

.ip-value {
    flex: 1;
    padding: 16px 18px;
    font-family: var(--mono);
    font-size: 19px;
    font-weight: bold;
    color: var(--text);
}

.ip-copy.done {
    background-color: var(--gold);
}

.hero-cta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

/* --------------------------------------------------------------------------
   Sections and cards
   -------------------------------------------------------------------------- */

/* Every section is a .container: a centred column with 50px 20px of room,
   fading in on load. */
.band,
.hero,
.store-head,
.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 50px 20px;
    animation: fadeIn 1s ease-in-out;
}

/* the wrapper inside each container spans it rather than shrinking to text */
.band > .shell,
.hero > .shell,
.store-head > .shell,
.container > .shell {
    width: 100%;
}

.band {
    max-width: var(--shell);
    margin: 0 auto;
}

.band-line {
    border-top: 1px solid #23233a;
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(268px, 1fr));
    gap: 22px;
}

.card {
    position: relative;
    background: var(--panel);
    border-radius: 20px;
    box-shadow: var(--glow);
    padding: 28px 26px 30px;
    transform: translateY(0);
    transition: transform var(--lift);
}

.card:hover,
.card:focus-within {
    transform: translateY(-4px);
}

.card h3 {
    font-size: 21px;
    color: var(--cyan);
    margin: 0 0 10px;
}

.card p {
    margin: 0;
    color: var(--muted);
    font-size: 15.5px;
}

.card-tag {
    display: inline-block;
    margin-bottom: 14px;
    padding: 5px 14px;
    border-radius: 10px;
    background: var(--panel-alt);
    color: var(--cyan);
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.card-num {
    position: absolute;
    top: 24px;
    right: 26px;
    font-family: var(--mono);
    font-size: 13px;
    color: #4a4a63;
}

/* Facts strip */
.strip {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 36px;
    margin-top: 34px;
    padding: 20px;
    border-radius: 10px;
    background: var(--panel);
    box-shadow: var(--drop);
    font-size: 14px;
    color: var(--muted);
}

.strip b {
    color: var(--cyan);
}

/* Closing call to action */
.cta {
    text-align: center;
    background: var(--panel);
    border-radius: 20px;
    box-shadow: var(--glow);
    padding: 46px 30px;
}

.cta .lede {
    margin: 0 auto 30px;
}

.cta-row {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   Store
   -------------------------------------------------------------------------- */

.store-head {
    max-width: var(--shell);
    margin: 0 auto;
    text-align: center;
}

.store-head .lede {
    margin-left: auto;
    margin-right: auto;
}

.store-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 24px;
    align-items: start;
    padding-bottom: 20px;
}

/* Username gate — the .login-box treatment */
.gate {
    display: flex;
    gap: 16px;
    align-items: flex-end;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
    padding: 24px 30px;
    background: var(--panel);
    border-radius: 20px;
    box-shadow: var(--glow);
    text-align: left;
}

.gate label {
    display: block;
    width: 100%;
    margin: 0 0 8px;
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--cyan);
}

.gate-field {
    flex: 1;
    min-width: 220px;
}

.gate input {
    display: block;
    width: 100%;
    margin: 0;
    padding: 12px;
    border: none;
    border-radius: 10px;
    background: var(--field);
    color: var(--text);
    font-family: var(--font);
    font-size: 16px;
}

.gate input::placeholder {
    color: #6b7288;
}

.gate .btn {
    flex: none;
}

/* Category rail */
.cats {
    position: sticky;
    top: 96px;
    display: grid;
    gap: 10px;
    padding: 16px;
    background: var(--panel);
    border-radius: 20px;
    box-shadow: var(--glow);
}

/* Package grid */
.pkgs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(256px, 1fr));
    gap: 22px;
    align-content: start;
}

.pkg {
    display: flex;
    flex-direction: column;
    padding: 26px 24px 24px;
    background: var(--panel);
    border-radius: 20px;
    box-shadow: var(--glow);
    transform: translateY(0);
    transition: transform var(--lift);
}

.pkg:hover,
.pkg:focus-within {
    transform: translateY(-4px);
}

.pkg-img {
    height: 110px;
    object-fit: contain;
    margin: 0 auto 16px;
    border-radius: 10px;
}

.pkg h3 {
    font-size: 20px;
    color: var(--cyan);
    margin: 0 0 8px;
}

.pkg-desc {
    flex: 1;
    margin: 0 0 18px;
    color: var(--muted);
    font-size: 15px;
}

.pkg-desc ul {
    padding-left: 18px;
    margin: 0;
}

.pkg-buy {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid #33334a;
}

.pkg-price {
    font-size: 21px;
    font-weight: bold;
    color: var(--text);
}

.pkg-price s {
    display: block;
    font-size: 13px;
    font-weight: normal;
    color: var(--muted);
}

/* Basket */
.basket-count {
    display: inline-block;
    min-width: 22px;
    margin-left: 8px;
    padding: 1px 7px;
    border-radius: 10px;
    background: var(--cyan);
    color: var(--bg);
    font-size: 12px;
}

.drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 90;
    width: min(400px, 92vw);
    display: flex;
    flex-direction: column;
    background: var(--chrome);
    box-shadow: -4px 0 26px rgba(0, 247, 255, 0.18);
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.drawer.open {
    transform: translateX(0);
}

.drawer-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid #2a2a3b;
}

.drawer-top h2 {
    margin: 0;
    font-size: 20px;
    color: var(--cyan);
}

.drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 12px 24px;
}

.line-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid #2a2a3b;
}

.line-item h4 {
    margin: 0;
    font-size: 16px;
    color: var(--text);
}

.line-item p {
    margin: 2px 0 0;
    font-size: 14px;
    color: var(--cyan);
}

.drawer-foot {
    padding: 20px 24px 24px;
    border-top: 1px solid #2a2a3b;
}

.total {
    display: flex;
    justify-content: space-between;
    margin-bottom: 16px;
    color: var(--muted);
}

.total b {
    font-size: 21px;
    color: var(--cyan);
}

.drawer-foot .btn {
    width: 100%;
    padding: 15px;
    font-size: 17px;
}

.scrim {
    position: fixed;
    inset: 0;
    z-index: 80;
    background: rgba(15, 15, 26, 0.72);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.scrim.open {
    opacity: 1;
    pointer-events: auto;
}

/* States */
.note {
    grid-column: 1 / -1;
    padding: 26px 0;
    text-align: center;
    font-size: 15px;
    color: var(--muted);
}

.note.bad {
    color: #ff8b8e;
}

.skeleton {
    height: 268px;
    border-radius: 20px;
    background: linear-gradient(100deg, #1f1f2f 30%, #2a2a3b 50%, #1f1f2f 70%);
    background-size: 220% 100%;
    animation: sweep 1.3s linear infinite;
}

@keyframes sweep {
    to {
        background-position: -220% 0;
    }
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 940px) {
    .store-layout {
        grid-template-columns: 1fr;
    }

    .cats {
        position: static;
        grid-auto-flow: column;
        grid-auto-columns: max-content;
        overflow-x: auto;
    }

    .cat {
        white-space: nowrap;
    }
}

@media (max-width: 720px) {
    .nav-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 76px;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding: 8px var(--gut) 18px;
        background: var(--chrome);
        box-shadow: var(--drop);
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links a {
        width: 100%;
        margin: 0;
        padding: 12px 0;
    }

    .nav-links a:hover {
        transform: none;
    }

    .ip {
        flex-wrap: wrap;
    }

    .ip-label {
        display: none;
    }

    .ip-copy {
        width: 100%;
        padding: 14px 26px;
    }

    /* shorter travel on a small screen */
    .card:hover,
    .pkg:hover {
        transform: translateY(-4px);
    }
}

/* Reduced motion switches off the entrance animations and smooth scrolling.
   The hover lift is a few pixels and stays - it is not the kind of large,
   self-starting motion this setting is meant to suppress, and killing it here
   made the whole site look inert on machines with Windows animations off. */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
    }

    .reveal {
        opacity: 1;
    }

    .reveal.visible {
        animation: none;
    }
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
    outline: 2px solid var(--cyan);
    outline-offset: 3px;
}

/* --------------------------------------------------------------------------
   Per-button sizing. Look and hover come from the shared rule above; these
   only set dimensions and the few state differences.
   -------------------------------------------------------------------------- */

.nav-toggle {
    display: none;
    width: 46px;
    height: 40px;
    padding: 0;
    font-size: 17px;
}

.ip-copy {
    flex: none;
    padding: 0 26px;
    font-size: 15px;
    border-radius: 0;
}

.cat {
    display: block;
    width: 100%;
    padding: 11px 14px;
    font-size: 15px;
    text-align: left;
}

/* The selected category is the same button, lit */
.cat.on {
    box-shadow: 0 0 16px rgba(0, 247, 255, 0.55);
}

.pkg-add {
    padding: 11px 22px;
    font-size: 15px;
}

.basket-btn {
    position: relative;
    padding: 11px 20px;
    font-size: 15px;
}

.basket-count {
    display: inline-block;
    min-width: 22px;
    margin-left: 8px;
    padding: 1px 7px;
    border-radius: 10px;
    background: var(--bg);
    color: var(--cyan);
    font-size: 12px;
}

.line-remove {
    flex: none;
    width: 34px;
    height: 34px;
    margin-left: auto;
    padding: 0;
    font-size: 16px;
    line-height: 1;
}

.drawer-close {
    width: 34px;
    height: 34px;
    padding: 0;
    font-size: 20px;
    line-height: 1;
}

/* --------------------------------------------------------------------------
   Hover motion elsewhere, matching the sheet's scale language
   -------------------------------------------------------------------------- */

.brand,
.hero-mark,
.line-item {
    transform: translateY(0);
    transition: transform var(--lift), box-shadow var(--lift),
                filter var(--lift), color 0.3s ease;
}

.strip,
.cta,
.ip,
.gate,
.cats {
    transform: translateY(0);
    transition: transform var(--lift);
}

.strip:hover,
.cta:hover,
.ip:hover,
.gate:hover,
.cats:hover {
    transform: translateY(-4px);
}

.brand:hover {
    transform: translateY(-4px);
}

.hero-mark:hover {
    transform: translateY(-4px);
    filter: drop-shadow(0 8px 28px rgba(0, 247, 255, 0.5));
}

.line-item:hover {
    color: var(--text);
}

.card,
.pkg {
    will-change: transform;
}

/* Mute control */
.sound-toggle {
    width: 42px;
    height: 40px;
    padding: 0;
    font-size: 16px;
    line-height: 1;
    flex: none;
}

/* The bars themselves lift, same 4px as everything else */
.nav,
.foot {
    transform: translateY(0);
    transition: transform var(--lift);
}

.nav:hover {
    transform: translateY(-4px);
}

/* The footer presses down rather than up - it reads better at the page edge */
.foot:hover {
    transform: translateY(4px);
}

/* --------------------------------------------------------------------------
   Hover glow

   The glow sits on a pseudo-element and fades its opacity, rather than the
   element animating its own box-shadow. Transform and opacity are handled by
   the compositor, so the lift stays smooth instead of forcing a repaint on
   every frame.
   -------------------------------------------------------------------------- */

.card,
.pkg,
.cta,
.gate,
.cats,
.strip,
.btn,
.ip-copy,
.pkg-add,
.basket-btn,
.cat,
.nav-toggle,
.line-remove,
.drawer-close,
.sound-toggle,
.region,
.gem,
.rank,
.use,
.why-item {
    /* isolation:isolate is what keeps the z-index:-1 glow in front of the
       element's own background. Without it the pseudo-element is hoisted to
       the nearest ancestor stacking context and paints behind the card, so the
       hover looks like it does nothing. Any new card with a ::after glow must
       be added here too. */
    position: relative;
    isolation: isolate;
}

.card::after,
.pkg::after,
.cta::after,
.gate::after,
.cats::after,
.strip::after,
.btn::after,
.ip-copy::after,
.pkg-add::after,
.basket-btn::after,
.cat::after,
.nav-toggle::after,
.line-remove::after,
.drawer-close::after,
.sound-toggle::after,
.region::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: inherit;
    pointer-events: none;
    opacity: 0;
    transition: opacity var(--lift);
    box-shadow: 0 6px 18px -6px rgba(0, 247, 255, 0.5),
                0 0 26px rgba(0, 247, 255, 0.3);
}

.card:hover::after,
.card:focus-within::after,
.pkg:hover::after,
.pkg:focus-within::after,
.cta:hover::after,
.gate:hover::after,
.cats:hover::after,
.strip:hover::after,
.btn:hover::after,
.ip-copy:hover::after,
.pkg-add:hover::after,
.basket-btn:hover::after,
.cat:hover::after,
.nav-toggle:hover::after,
.line-remove:hover::after,
.drawer-close:hover::after,
.sound-toggle:hover::after,
.region:hover::after {
    opacity: 1;
}

/* The IP block clips its children, so it keeps a plain shadow transition */
.ip {
    transition: transform var(--lift), box-shadow var(--lift);
}

.ip:hover {
    box-shadow: 0 6px 18px -6px rgba(0, 247, 255, 0.5),
                0 0 26px rgba(0, 247, 255, 0.3);
}

/* Bars glow cyan on approach */
.nav:hover,
.foot:hover {
    box-shadow: 0 0 22px rgba(0, 247, 255, 0.28);
}

/* Only promote the elements that actually move a lot */
.card,
.pkg {
    will-change: transform;
}

/* --------------------------------------------------------------------------
   Region picker
   -------------------------------------------------------------------------- */

.regions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 16px;
}

.region {
    padding: 10px 22px;
    font-size: 15px;
}

.region small {
    display: block;
    font-size: 10px;
    font-weight: normal;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    opacity: 0.8;
}

/* The live region, held lit */
.region.on::after {
    opacity: 1;
}

/* Regions we haven't launched in yet */
.region[disabled] {
    background-color: var(--field);
    color: var(--muted);
    cursor: not-allowed;
}

.region[disabled]:hover {
    background-color: var(--field);
    transform: none;
}

.region[disabled]:hover::after {
    opacity: 0;
}

/* --------------------------------------------------------------------------
   Feature chips — the contents of each gamemode
   -------------------------------------------------------------------------- */

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 16px;
    padding: 0;
    list-style: none;
}

.chips li {
    padding: 5px 11px;
    border-radius: 10px;
    background: var(--panel-alt);
    color: var(--muted);
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 0.02em;
}

.card:hover .chips li {
    color: var(--text);
}

.chips li {
    transition: color 0.3s ease;
}

/* --------------------------------------------------------------------------
   Why Vinity — two-up feature panels
   -------------------------------------------------------------------------- */

.why {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 22px;
    width: 100%;
}

.why-item {
    position: relative;
    background: var(--panel);
    border-radius: 20px;
    box-shadow: var(--glow);
    padding: 28px 26px;
    transform: translateY(0);
    transition: transform var(--lift);
}

.why-item:hover {
    transform: translateY(-4px);
}

.why-item::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: inherit;
    pointer-events: none;
    opacity: 0;
    transition: opacity var(--lift);
    box-shadow: 0 6px 18px -6px rgba(0, 247, 255, 0.5),
                0 0 26px rgba(0, 247, 255, 0.3);
}

.why-item:hover::after {
    opacity: 1;
}

.why-item h3 {
    font-size: 20px;
    color: var(--cyan);
    margin: 0 0 10px;
}

.why-item p {
    margin: 0;
    color: var(--muted);
    font-size: 15.5px;
}

.flags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
    padding: 0;
    list-style: none;
}

.flags li {
    padding: 7px 14px;
    border-radius: 10px;
    background: var(--field);
    color: var(--cyan);
    font-size: 13px;
    font-weight: bold;
}

/* --------------------------------------------------------------------------
   Ranks
   -------------------------------------------------------------------------- */

.ranks {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 22px;
    width: 100%;
}

.rank {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--panel);
    border-radius: 20px;
    box-shadow: var(--glow);
    padding: 30px 28px;
    transform: translateY(0);
    transition: transform var(--lift);
}

.rank:hover {
    transform: translateY(-4px);
}

.rank::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: inherit;
    pointer-events: none;
    opacity: 0;
    transition: opacity var(--lift);
    box-shadow: 0 6px 18px -6px rgba(0, 247, 255, 0.5),
                0 0 26px rgba(0, 247, 255, 0.3);
}

.rank:hover::after {
    opacity: 1;
}

.rank h3 {
    font-size: 26px;
    color: var(--cyan);
    margin: 0 0 4px;
}

.rank-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin: 10px 0 18px;
}

.rank-price b {
    font-size: 40px;
    line-height: 1;
    color: var(--text);
}

.rank-price span {
    font-size: 14px;
    color: var(--muted);
}

.rank p {
    margin: 0 0 18px;
    color: var(--muted);
    font-size: 15.5px;
}

.rank ul {
    flex: 1;
    margin: 0 0 22px;
    padding: 0;
    list-style: none;
}

.rank li {
    position: relative;
    padding: 6px 0 6px 24px;
    color: var(--muted);
    font-size: 15px;
}

.rank li::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 15px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--cyan);
}

.rank .btn {
    width: 100%;
}

/* The subscription tier, marked out in the crown gold */
/* Vinity+ keeps the standard card colour; the gold title, bullets, flag and
   glow mark it out */

.rank.plus::after {
    box-shadow: 0 6px 18px -6px rgba(240, 180, 41, 0.5),
                0 0 26px rgba(240, 180, 41, 0.3);
}

.rank.plus h3 {
    color: var(--gold);
}

.rank.plus li::before {
    background: var(--gold);
}

.rank-flag {
    position: absolute;
    top: 22px;
    right: 24px;
    padding: 5px 12px;
    border-radius: 10px;
    background: var(--gold);
    color: var(--bg);
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

/* Vinity+ prerequisite note */
.rank-req {
    margin: -6px 0 16px !important;
    padding: 9px 14px;
    border-radius: 10px;
    background: rgba(240, 180, 41, 0.12);
    color: var(--gold) !important;
    font-size: 13px !important;
    font-weight: bold;
    text-align: center;
}

/* A store package the visitor can't buy yet */
.pkg.locked {
    opacity: 0.75;
}

.pkg.locked .pkg-img {
    filter: grayscale(1);
    opacity: 0.5;
}

.pkg-lock {
    margin: 0 0 14px;
    padding: 10px 14px;
    border-radius: 10px;
    background: rgba(240, 180, 41, 0.12);
    color: var(--gold);
    font-size: 13px;
    font-weight: bold;
    text-align: center;
}

.pkg-add[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Gold buttons carry a gold glow rather than the site's cyan one */
.btn-crown::after {
    box-shadow: 0 6px 18px -6px rgba(240, 180, 41, 0.55),
                0 0 26px rgba(240, 180, 41, 0.35);
}

/* --------------------------------------------------------------------------
   Gems
   -------------------------------------------------------------------------- */

.gem-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(268px, 1fr));
    gap: 22px;
    width: 100%;
}

.gem {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: var(--panel);
    border-radius: 20px;
    box-shadow: var(--glow);
    padding: 26px 24px 24px;
    transform: translateY(0);
    transition: transform var(--lift);
}

.gem:hover {
    transform: translateY(-4px);
}

.gem::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: inherit;
    pointer-events: none;
    opacity: 0;
    transition: opacity var(--lift);
    box-shadow: 0 6px 18px -6px rgba(0, 247, 255, 0.5),
                0 0 26px rgba(0, 247, 255, 0.3);
}

.gem:hover::after {
    opacity: 1;
}

.gem-art {
    width: 100%;
    max-width: 190px;
    height: 160px;
    object-fit: contain;
    margin: 0 auto 6px;
    filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.5));
    transition: transform var(--lift), filter var(--lift);
}

.gem:hover .gem-art {
    transform: scale(1.06);
    filter: drop-shadow(0 10px 22px rgba(0, 247, 255, 0.35));
}

/* The crystals drift very slightly, so the art doesn't feel like a flat icon */
.gem h3 {
    font-size: 21px;
    color: var(--cyan);
    margin: 0 0 2px;
}

.gem-amount {
    font-size: 30px;
    font-weight: bold;
    color: var(--text);
    line-height: 1.1;
    margin: 6px 0 2px;
}

.gem-amount small {
    display: block;
    font-size: 12px;
    font-weight: normal;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--muted);
    margin-top: 4px;
}

.gem-bonus {
    display: inline-block;
    margin: 12px 0 4px;
    padding: 5px 13px;
    border-radius: 10px;
    background: rgba(240, 180, 41, 0.14);
    color: var(--gold);
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 0.08em;
}

.gem-price {
    margin: 14px 0 16px;
    font-size: 26px;
    font-weight: bold;
    color: var(--text);
}

.gem-rate {
    display: block;
    font-size: 12px;
    font-weight: normal;
    color: var(--muted);
    margin-top: 4px;
}

.gem .btn {
    width: 100%;
    margin-top: auto;
}

/* The best-value tier: same card colour as the others; the gold title,
   button and glow mark it out */

.gem.best::after {
    box-shadow: 0 6px 18px -6px rgba(240, 180, 41, 0.5),
                0 0 26px rgba(240, 180, 41, 0.3);
}

.gem.best h3 {
    color: var(--gold);
}

/* What gems buy */
.uses {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 16px;
    width: 100%;
    margin-top: 8px;
}

.use {
    background: var(--panel);
    border-radius: 20px;
    box-shadow: var(--glow);
    padding: 22px 22px 24px;
}

.use h4 {
    margin: 0 0 8px;
    font-size: 17px;
    color: var(--cyan);
}

.use p {
    margin: 0;
    font-size: 14.5px;
    color: var(--muted);
}

/* The username field lives in the checkout drawer now, so it sits flat
   rather than as its own raised panel */
.drawer-foot .gate {
    display: block;
    max-width: none;
    margin: 0 0 16px;
    padding: 0;
    background: none;
    box-shadow: none;
}

.drawer-foot .gate label {
    font-size: 12px;
}

/* The "what gems buy" cards lift like everything else */
.use {
    position: relative;
    transform: translateY(0);
    transition: transform var(--lift);
}

.use:hover {
    transform: translateY(-4px);
}

.use::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: inherit;
    pointer-events: none;
    opacity: 0;
    transition: opacity var(--lift);
    box-shadow: 0 6px 18px -6px rgba(0, 247, 255, 0.5),
                0 0 26px rgba(0, 247, 255, 0.3);
}

.use:hover::after {
    opacity: 1;
}

/* --------------------------------------------------------------------------
   Store on the gems page (live Tebex prices + basket)
   -------------------------------------------------------------------------- */

/* status banner under the hero (payment received, store unreachable, ...) */
.hero .note {
    max-width: 620px;
    margin: 22px auto 0;
    padding: 14px 20px;
    border-radius: 12px;
    background: var(--panel);
    color: var(--text);
    box-shadow: var(--glow);
}

.hero .note.bad {
    color: #ff8a8a;
}

/* message inside the basket drawer */
.drawer-foot .note {
    padding: 10px 12px;
    margin: 0 0 12px;
    border-radius: 10px;
    background: var(--panel-alt);
    color: var(--text);
    font-size: 13.5px;
    text-align: left;
}

.drawer-foot .note.bad {
    color: #ff8a8a;
}

.drawer-fine {
    margin: 10px 0 0;
    font-size: 12px;
    color: var(--muted);
    text-align: center;
}

.line-sub {
    display: block;
    margin-top: 2px;
    font-size: 12px;
    color: var(--muted);
}

/* price placeholder while Tebex answers */
[data-pkg].is-loading [data-price],
[data-pkg].is-loading [data-rate] {
    opacity: 0.35;
}

/* a card that's already in the basket */
.gem.in-basket,
.rank.in-basket {
    outline: 2px solid var(--cyan);
    outline-offset: -2px;
}

/* Vinity+ in the basket without Vinity: make the requirement stand out */
.rank-req.on {
    outline: 1px solid var(--gold);
}

.basket-btn.has-items .basket-count {
    color: var(--gold);
}

/* Phones: the menu button has to win over the base .nav-toggle rule above,
   and the basket stays on one line. */
@media (max-width: 720px) {
    .nav-toggle {
        display: block;
    }

    .basket-btn {
        padding: 9px 12px;
        font-size: 14px;
        white-space: nowrap;
    }

    .basket-count {
        margin-left: 6px;
    }

    .nav-in {
        gap: 10px;
    }
}

/* --------------------------------------------------------------------------
   Cart: quantities, gifts, toast and the gift dialog
   -------------------------------------------------------------------------- */

.line-item {
    align-items: flex-start;
}

.line-main {
    flex: 1;
    min-width: 0;
}

.line-side {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.line-who {
    display: inline-block;
    margin-bottom: 4px;
    padding: 2px 8px;
    border-radius: 6px;
    background: var(--panel-alt);
    color: var(--muted);
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.line-who.gift {
    background: rgba(240, 180, 41, 0.14);
    color: var(--gold);
}

.line-who.gift b {
    text-transform: none;
    letter-spacing: 0;
}

.line-each {
    color: var(--muted);
    font-size: 12px;
}

.qty {
    display: inline-flex;
    align-items: center;
    border-radius: 10px;
    background: var(--panel-alt);
}

.qty-btn {
    width: 30px;
    height: 30px;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: var(--cyan);
    font-family: var(--font);
    font-size: 18px;
    font-weight: bold;
    line-height: 1;
    cursor: pointer;
}

.qty-btn:hover {
    background: rgba(0, 247, 255, 0.12);
}

.qty-n {
    min-width: 22px;
    text-align: center;
    font-weight: bold;
    color: var(--text);
}

/* secondary "Gift to a friend" button under each card's main button */
.gift-link {
    margin-top: 10px;
    padding: 6px 10px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: var(--muted);
    font-family: var(--font);
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s ease, background 0.2s ease;
}

.gift-link::before {
    content: "🎁 ";
}

.gift-link:hover {
    color: var(--gold);
    background: rgba(240, 180, 41, 0.1);
}

.rank .gift-link {
    display: block;
    width: 100%;
}

/* "Added to cart" toast instead of opening the cart */
.cart-toast {
    position: fixed;
    left: 50%;
    bottom: 24px;
    z-index: 120;
    display: flex;
    align-items: center;
    gap: 14px;
    max-width: min(560px, calc(100vw - 32px));
    padding: 12px 12px 12px 18px;
    border-radius: 14px;
    background: var(--chrome);
    color: var(--text);
    box-shadow: var(--drop), 0 0 0 1px rgba(0, 247, 255, 0.25);
    font-size: 14.5px;
    transform: translate(-50%, 140%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s cubic-bezier(.2, .9, .3, 1.2), opacity 0.25s ease;
}

.cart-toast.show {
    transform: translate(-50%, 0);
    opacity: 1;
    pointer-events: auto;
}

.cart-toast.bad {
    box-shadow: var(--drop), 0 0 0 1px rgba(255, 138, 138, 0.45);
}

.cart-toast-text {
    flex: 1;
}

.cart-toast-view {
    flex-shrink: 0;
    padding: 9px 14px;
    border: none;
    border-radius: 10px;
    background: var(--cyan);
    color: var(--bg);
    font-family: var(--font);
    font-weight: bold;
    cursor: pointer;
}

.cart-toast-view:hover {
    background: var(--cyan-dark);
}

/* gift dialog */
.gift-modal {
    position: fixed;
    inset: 0;
    z-index: 130;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(6, 6, 14, 0.72);
}

.gift-modal[hidden] {
    display: none;
}

body.gift-open {
    overflow: hidden;
}

.gift-box {
    position: relative;
    width: 100%;
    max-width: 420px;
    padding: 28px 26px 26px;
    border-radius: 20px;
    background: var(--panel);
    box-shadow: var(--drop), 0 0 0 1px rgba(240, 180, 41, 0.3);
}

.gift-box h3 {
    margin: 4px 0 8px;
    font-size: 22px;
    color: var(--gold);
}

.gift-box .eyebrow {
    margin: 0;
}

.gift-help {
    margin: 0 0 18px;
    font-size: 14px;
    color: var(--muted);
}

.gift-box label {
    display: block;
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--cyan);
}

.gift-box input {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 14px;
    border: none;
    border-radius: 10px;
    background: var(--panel-alt);
    color: var(--text);
    font-family: var(--font);
    font-size: 16px;
}

.gift-box input:focus {
    outline: 2px solid var(--gold);
}

.gift-error {
    margin: 10px 0 0;
    font-size: 13.5px;
    color: #ff8a8a;
}

.gift-go {
    width: 100%;
    margin-top: 16px;
}

.gift-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 34px;
    height: 34px;
    padding: 0;
}

@media (max-width: 720px) {
    .cart-toast {
        bottom: 16px;
        font-size: 13.5px;
    }
}

/* --------------------------------------------------------------------------
   Cart username field: one soft field instead of a glowing card
   -------------------------------------------------------------------------- */

.drawer .gate,
.drawer .gate:hover {
    display: block;
    max-width: none;
    margin: 0 0 16px;
    padding: 0;
    background: none;
    border-radius: 0;
    box-shadow: none;
    transform: none;
}

.drawer .gate::after,
.drawer .gate:hover::after {
    display: none;
}

.drawer .gate-field {
    min-width: 0;
}

.drawer .gate label {
    margin-bottom: 8px;
    font-size: 11.5px;
    letter-spacing: 0.12em;
    color: var(--muted);
}

.drawer .gate input {
    height: 48px;
    padding: 0 16px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    background: var(--panel-alt);
    font-size: 16px;
    transition: border-color 0.2s ease, box-shadow 0.25s ease, background 0.2s ease;
}

.drawer .gate input:hover {
    border-color: rgba(0, 247, 255, 0.25);
}

.drawer .gate input:focus {
    outline: none;
    border-color: rgba(0, 247, 255, 0.55);
    background: var(--panel);
    box-shadow: 0 0 0 4px rgba(0, 247, 255, 0.1);
}

.drawer .gate input[aria-invalid="true"] {
    border-color: rgba(255, 138, 138, 0.6);
    box-shadow: 0 0 0 4px rgba(255, 138, 138, 0.1);
}

/* the gift dialog's field gets the same treatment */
.gift-box input {
    height: 48px;
    padding: 0 16px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    transition: border-color 0.2s ease, box-shadow 0.25s ease, background 0.2s ease;
}

.gift-box input:hover {
    border-color: rgba(240, 180, 41, 0.3);
}

.gift-box input:focus {
    outline: none;
    border-color: rgba(240, 180, 41, 0.6);
    background: var(--panel);
    box-shadow: 0 0 0 4px rgba(240, 180, 41, 0.12);
}

/* hidden gift buttons stay hidden even where cards set display: block */
.gift-link[hidden] {
    display: none !important;
}

/* X buttons: a drawn icon, centred exactly (the "×" character sits low) */
.drawer-close,
.line-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.x-icon {
    display: block;
    width: 12px;
    height: 12px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
}

.drawer-close .x-icon {
    width: 13px;
    height: 13px;
}

/* Vinity+ in the cart: auto-renew or a single month */
.plan {
    display: inline-flex;
    margin: 8px 0 2px;
    padding: 3px;
    border-radius: 10px;
    background: var(--panel-alt);
}

.plan-opt {
    padding: 6px 12px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: var(--muted);
    font-family: var(--font);
    font-size: 12.5px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.plan-opt:hover {
    color: var(--text);
}

.plan-opt.on {
    background: var(--gold);
    color: var(--bg);
}

/* Server IP copy button: stays flush with the IP bar; only the label lifts */
.ip-copy,
.ip-copy:hover,
.ip-copy:active {
    transform: none;
}

.ip-copy::after,
.ip-copy:hover::after {
    display: none;
}

.ip-copy-text {
    display: inline-block;
    transform: translateY(0);
    transition: transform var(--lift);
}

/* the label lifts and stays up while hovered, like the rest of the site */
.ip-copy:hover .ip-copy-text {
    transform: translateY(-4px);
}

.ip-copy:active .ip-copy-text {
    transform: translateY(0);
    transition-duration: 0.09s;
}

/* "Opening soon": buy buttons read as a label rather than a broken button */
.store-closed [data-add][disabled] {
    opacity: 0.7;
    cursor: default;
}
