/*@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');*/

@font-face {
    font-family: 'Futura PT Medium';
    src: 
        url('/assets/fonts/FuturaPT-Medium.woff2') format('woff2'),
        url('/assets/fonts/FuturaPT-Medium.woff') format('woff'),
        url('/assets/fonts/FuturaPT-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: bold;
    font-display: auto;
}

@font-face {
    font-family: 'Proxima Nova';
    src: url('/assets/fonts/ProximaNova-Regular.woff2') format('woff2'),
         url('/assets/fonts/ProximaNova-Regular.woff') format('woff'),
         url('/assets/fonts/ProximaNova-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: auto;
}

@font-face {
    font-family: 'Proxima Nova';
    src: url('/assets/fonts/ProximaNova-Semibold.woff2') format('woff2'),
         url('/assets/fonts/ProximaNova-Semibold.woff') format('woff'),
         url('/assets/fonts/ProximaNova-Semibold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: auto;
}

@font-face {
    font-family: 'Proxima Nova';
    src: url('/assets/fonts/ProximaNova-Bold.woff2') format('woff2'),
         url('/assets/fonts/ProximaNova-Bold.woff') format('woff'),
         url('/assets/fonts/ProximaNova-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: auto;
}

@font-face {
    font-family: 'Proxima Nova';
    src: url('/assets/fonts/ProximaNova-Extrabld.woff2') format('woff2'),
         url('/assets/fonts/ProximaNova-Extrabld.woff') format('woff'),
         url('/assets/fonts/ProximaNova-Extrabld.ttf') format('truetype');
    font-weight: 800;
    font-style: normal;
    font-display: auto;
}

@font-face {
    font-family: 'Proxima Nova';
    src: url('/assets/fonts/ProximaNova-Black.woff2') format('woff2'),
         url('/assets/fonts/ProximaNova-Black.woff') format('woff'),
         url('/assets/fonts/ProximaNova-Black.ttf') format('truetype');
    font-weight: 900;
    font-style: normal;
    font-display: auto;
}

/* Branding Colors */
:root {
    --fws-red: #ff4040;
    --fws-red-galaxy: #D31C3E;
    --fws-green: #43e085;
    --fws-green-light: #44C441;
    --fws-blue: #404dff;
    --fws-blue-dark: #2b6ad9;
    --fws-new-gray: #1a1a1a;
    --fws-new-gray-dark: #141414;

    --fws-white: #fff;
    --fws-black: #000;

    /* UI */
    --fws-accent: #ffdd18;
    --fws-border: #333;
    --fws-bg-hover: #2a2a2a;
    --fws-disabled: #555;
    --fws-toggle-off: #ccc;
    --fws-bubble: #3c48f0;
}

/*

--fws-new-gray and 
--fws-new-gray-dark
are de-facto background colors for most sections, replacing the old --fws-gray and --fws-gray-dark which are now only used for accents like borders and text in specific places (e.g. cart summary)
*/

body {
    font-family: 'Proxima Nova', sans-serif;
    font-weight: 400;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Futura PT Medium', sans-serif;
}

/* Font helpers */
.fws-font-title {
    font-family: 'Futura PT Medium', sans-serif;
    font-weight: 500;
}

.fws-font-desc {
    font-family: 'Proxima Nova', sans-serif;
    font-weight: 400;
}

.diagonal-cut {
    clip-path: polygon(0 0, 100% 0, 100% 70%, 0 100%);
}

.logo-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-bg {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    height: 5rem;
    width: auto;
    object-fit: contain;
}

/* Hero section */
.fws-hero {
    background-image: url('../images/hero.png');
    background-size: cover;
    background-position: center;
}

/* Navbar */
.fws-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    font-family: 'Proxima Nova', sans-serif;
    font-weight: 600!important;
}

.fws-nav::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 20px;
    backdrop-filter: invert(1) grayscale(1);
    /* Grayscale prevent invert from inverting images that are not white/black, like the logo */
    pointer-events: none;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,0.7), rgba(0,0,0,0));
    -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,0.7), rgba(0,0,0,0));
    z-index: -1;
}

/* Dropdown styles */
.dropdown {
    position: relative;
}

.dropdown-content {
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 0.5rem;
    background: var(--fws-new-gray);
    border: 1px solid var(--fws-border);
    border-radius: 0.5rem;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 200;
}

.dropdown:hover .dropdown-content,
.dropdown.active .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    padding: 0.75rem 1rem;
    color: var(--fws-white);
    text-decoration: none;
    display: block;
    transition: background 0.2s;
    cursor: pointer;
}

.dropdown-item:hover {
    background: var(--fws-bg-hover);
}

/* Modal styles */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--fws-new-gray);
    border: 1px solid var(--fws-border);
    border-radius: 0.75rem;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal.active .modal-content {
    transform: scale(1);
}

/* Cart badge */
.cart-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--fws-red);
    color: var(--fws-white);
    font-size: 0.75rem;
    padding: 0.125rem 0.375rem;
    border-radius: 9999px;
    font-weight: 600;
}

/* FWS Button - Angled sides */
.fws-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 2rem;
    color: var(--fws-new-gray);
    font-family: 'Proxima Nova', sans-serif;
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.025em;
    text-decoration: none;
    position: relative;
    clip-path: polygon(15px 0, 100% 0, calc(100% - 15px) 100%, 0 100%);
    background: var(--fws-white);
    border: 1px solid var(--fws-white);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    cursor: pointer;
}

.fws-button:hover {
    background: var(--fws-white);
    border-color: var(--fws-white);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.fws-button:active {
    background: var(--fws-white);
    border-color: var(--fws-white);
    box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.2);
}

.fws-button:disabled {
    background: var(--fws-disabled);
    border-color: var(--fws-disabled);
    cursor: not-allowed;
    opacity: 0.6;
    box-shadow: none;
}

/*
Colored variants 
*/

/* Success variant */

.fws-button-success {
    background: var(--fws-green);
    border-color: var(--fws-green);
    color: var(--fws-white);
}

.fws-button-success:hover {
    background: var(--fws-green);
    border-color: var(--fws-green-light);
    box-shadow: 0 0 20px rgba(67, 224, 133, 0.3);
}

.fws-button-success:active {
    background: var(--fws-green);
    border-color: var(--fws-green-light);
    box-shadow: inset 0 0 10px rgba(67, 224, 133, 0.4);
}

.fws-button-success:disabled {
    background: var(--fws-green);
    border-color: var(--fws-green-light);
    cursor: not-allowed;
    opacity: 0.6;
    box-shadow: none;
}

/* Danger variant */

.fws-button-danger {
    background: var(--fws-red-galaxy);
    border-color: var(--fws-red-galaxy);
    color: var(--fws-white);
}

.fws-button-danger:hover {
    background: var(--fws-red-galaxy);
    border-color: var(--fws-red);
    box-shadow: 0 0 20px rgba(211, 28, 62, 0.3);
}

.fws-button-danger:active {
    background: var(--fws-red-galaxy);
    border-color: var(--fws-red);
    box-shadow: inset 0 0 10px rgba(211, 28, 62, 0.4);
}

.fws-button-danger:disabled {
    background: var(--fws-red-galaxy);
    border-color: var(--fws-red);
    cursor: not-allowed;
    opacity: 0.6;
    box-shadow: none;
}

/* Info variant */

.fws-button-info {
    background: var(--fws-blue-dark);
    border-color: var(--fws-blue-dark);
    color: var(--fws-white);
}

.fws-button-info:hover {
    background: var(--fws-blue-dark);
    border-color: var(--fws-blue);
    box-shadow: 0 0 20px rgba(43, 106, 217, 0.3);
}

.fws-button-info:active {
    background: var(--fws-blue-dark);
    border-color: var(--fws-blue-dark);
    box-shadow: inset 0 0 10px rgba(43, 106, 217, 0.4);
}

.fws-button-info:disabled {
    background: var(--fws-blue-dark);
    border-color: var(--fws-blue);
    cursor: not-allowed;
    opacity: 0.6;
    box-shadow: none;
}

/* Darker variant */
.fws-button-dark {
    background: var(--fws-new-gray-dark);
    border-color: var(--fws-new-gray-dark);
    color: var(--fws-white);
}

.fws-button-dark:hover {
    background: var(--fws-new-gray-dark);
    border-color: var(--fws-new-gray);
    box-shadow: 0 0 20px rgba(26, 26, 26, 0.3);
}

.fws-button-dark:active {
    background: var(--fws-new-gray-dark);
    border-color: var(--fws-new-gray);
    box-shadow: inset 0 0 10px rgba(26, 26, 26, 0.4);
}

.fws-button-dark:disabled {
    background: var(--fws-new-gray-dark);
    border-color: var(--fws-new-gray);
    cursor: not-allowed;
    opacity: 0.6;
    box-shadow: none;
}

/* White variant */
.fws-button-white {
    background: var(--fws-white);
    border-color: var(--fws-white);
    color: var(--fws-new-gray);
}

.fws-button-white:hover {
    background: var(--fws-white);
    border-color: var(--fws-white);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.fws-button-white:active {
    background: var(--fws-white);
    border-color: var(--fws-white);
    box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.4);
}

.fws-button-white:disabled {
    background: var(--fws-white);
    border-color: var(--fws-white);
    color: var(--fws-new-gray);
    cursor: not-allowed;
    opacity: 0.6;
    box-shadow: none;
}



/* Game showcase: allow coverflow side-cards to bleed beyond the container edge */
.game-showcase-swiper {
    overflow: visible;
}

/* Game showcase: center card emphasis */
.game-showcase-swiper .swiper-slide {
    transform: scale(0.84);
    opacity: 0.65;
    transition: transform 0.35s ease, opacity 0.35s ease;
}

.game-showcase-swiper .swiper-slide-active {
    transform: scale(1);
    opacity: 1;
}

.game-showcase-swiper .swiper-pagination-bullet {
    width: 0.82rem;
    height: 0.82rem;
    border-radius: 9999px;
    background: var(--fws-white);
    opacity: 0.45;
}

.game-showcase-swiper .swiper-pagination-bullet-active {
    opacity: 1;
}

/* Footer */
footer {
    font-family: 'Proxima Nova', sans-serif;
    font-weight: 600;
}

/* Social buttons (footer) */
.fws-social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 7rem;
    height: 6.2rem;
    background: var(--fws-white);
    color: var(--fws-black);
    text-decoration: none;
    border-radius: 0;
    transition: background 0.15s, color 0.15s, transform 0.2s ease;
}

.fws-social-btn svg {
    /* counter-skeyewing for the grid's skewX(-20deg) */
    transform: skewX(10deg);
    width: 5rem;
    height: 5rem;
    flex-shrink: 0;
}

.fws-social-btn:hover {
    transform: scale(1.12);
    z-index: 1;
}

.fws-social-grid a:nth-child(1) { transform-origin: bottom right; }
.fws-social-grid a:nth-child(2) { transform-origin: bottom left; }
.fws-social-grid a:nth-child(3) { transform-origin: top right; }
.fws-social-grid a:nth-child(4) { transform-origin: top left; }

.fws-social-grid {
    transform: skewX(-20deg);
}

@media (min-width: 640px) {
    .fws-social-grid {
        transform: translateX(-2.4rem) skewX(-20deg);
    }
}

/* Settings modal */
.fws-settings-modal {
    display: none;
}

.fws-settings-modal.is-open {
    display: block;
}

.fws-settings-panel {
    position: fixed;
    bottom: 4.25rem;
    left: 1.25rem;
    z-index: 300;
    width: 220px;
    background: var(--fws-white);
    color: var(--fws-black);
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
    font-family: monospace;
    font-size: 0.85rem;
}

.fws-settings-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.4rem 0.6rem;
    background: var(--fws-black);
    color: var(--fws-white);
    font-weight: bold;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-size: 0.7rem;
}

.fws-settings-header button {
    background: none;
    border: none;
    color: var(--fws-white);
    cursor: pointer;
    font-size: 1.1rem;
    line-height: 1;
    padding: 0;
}

.fws-settings-header button:hover {
    color: var(--fws-accent);
}

.fws-settings-body {
    padding: 0.65rem 0.75rem;
}

.fws-settings-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    gap: 1rem;
}

.fws-settings-label {
    font-family: monospace;
    user-select: none;
}

/* Toggle switch (square) */
.fws-toggle {
    appearance: none;
    -webkit-appearance: none;
    width: 2.2rem;
    height: 1.15rem;
    background: var(--fws-toggle-off);
    border-radius: 0;
    position: relative;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.2s;
}

.fws-toggle::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: calc(1.15rem - 4px);
    height: calc(1.15rem - 4px);
    background: var(--fws-white);
    transition: left 0.15s;
}

.fws-toggle:checked {
    background: var(--fws-black);
}

.fws-toggle:checked::after {
    left: calc(2.2rem - 1.15rem + 2px);
}

/* Bottom-left cog button */
.fws-cog-btn {
    position: fixed;
    bottom: 1.25rem;
    left: 1.25rem;
    z-index: 200;
    width: 2.5rem;
    height: 2.5rem;
    background: var(--fws-white);
    color: var(--fws-black);
    border: none;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
    transition: box-shadow 0.2s ease;
}

.fws-cog-btn:hover {
    box-shadow: 0 4px 14px rgba(0,0,0,0.35);
}

.fws-cog-btn svg {
    width: 1.25rem;
    height: 1.25rem;
}

/* Star rating: fill driven by --rating CSS variable (0%–100%) */
.star-rating {
    position: relative;
    display: inline-block;
    white-space: nowrap;
    line-height: 1;
    align-self: flex-start;
}

.star-rating::after {
    content: '★★★★★';
    color: rgba(255,255,255,.3);
}

.star-rating::before {
    content: '★★★★★';
    position: absolute;
    top: 0;
    left: 0;
    width: var(--rating, 0%);
    overflow: hidden;
    color: var(--fws-white);
}

/* 8-bit mascot widget wrapper
   ─────────────────────────────
   --widget-bottom / --widget-right : move the whole widget (Blanche + bubble)
   --bubble-offset-x / --bubble-offset-y : nudge ONLY the bubble (+ = right/down)
   ───────────────────────────── */
.pixel-bubble-widget {
    /* ↓ move the whole widget */
    --widget-bottom: 5px;
    --widget-right:  1.5rem;
    /* ↓ nudge only the bubble */
    --bubble-offset-x: -3.5rem;
    --bubble-offset-y: -1.25rem;

    position: fixed;
    bottom: var(--widget-bottom);
    right:  var(--widget-right);
    z-index: 200;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    /* hidden until JS fills the tip text */
    opacity: 0;
    transform: translateY(12px);
    pointer-events: none;
}

.pixel-bubble-char {
    width: 90px;
    height: auto;
    image-rendering: pixelated;
    display: block;
    margin-right: 0.25rem;
    filter:
        drop-shadow(0 0 2px var(--fws-white))
        drop-shadow(0 0 4px var(--fws-white));
}

/* 8-bit cartoon text bubble */
.pixel-bubble {
    position: relative;
    bottom: auto;
    right: auto;
    z-index: auto;
    /* hidden state: offset + nudged down 8px */
    transform: translate(var(--bubble-offset-x), calc(var(--bubble-offset-y) + 8px));
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    background: var(--fws-bubble);
    color: var(--fws-white);
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    padding: 0.75rem 1rem 1rem;
    min-width: 160px;
    max-width: 220px;
    image-rendering: pixelated;
    border-radius: 6px;
    /* inset highlight/shadow */
    box-shadow:
        inset 4px  4px 0 0 rgba(255,255,255,0.25),
        inset -4px -4px 0 0 rgba(0,0,0,0.35);
    cursor: default;
    user-select: none;
    text-transform: uppercase;
    /* Pixel-art white border that follows the shape incl. tail */
    filter:
        drop-shadow( 1.5px  0px   0 var(--fws-white))
        drop-shadow(-1.5px  0px   0 var(--fws-white))
        drop-shadow( 0px    1.5px 0 var(--fws-white))
        drop-shadow( 0px   -1.5px 0 var(--fws-white));
}

.pixel-bubble.is-visible {
    transform: translate(var(--bubble-offset-x), var(--bubble-offset-y));
    opacity: 1;
    pointer-events: auto;
}

/* Tail: small square rotated 45° peeking below bottom-right */
.pixel-bubble::after {
    content: '';
    position: absolute;
    bottom: -12px;
    right: 20px;
    width: 0;
    height: 0;
    background: none;
    transform: none;
    border-radius: 0;
    /* Right triangle: vertical right edge, hypotenuse going bottom-left */
    border-top: 12px solid var(--fws-bubble);
    border-left: 14px solid transparent;
}

.pixel-bubble::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 6px;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 3px,
        rgba(0,0,0,0.08) 3px,
        rgba(0,0,0,0.08) 4px
    );
    pointer-events: none;
}

/* =============================================
   Swiper navigation buttons (global)
   ============================================= */
.swiper-button-next,
.swiper-button-prev {
    color: var(--fws-black)!important;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: var(--fws-white)!important;
}
.swiper-button-next::after,
.swiper-button-prev::after {
    font-size: .85rem;
    font-weight: 900;
}
.swiper-button-next svg { transform: scale(0.75); }
.swiper-button-prev svg { transform: scale(-0.75) !important; }

/* NAVBAR LIGHT TOGGLE */

/* ── Theme slider dropdown ─────────────────────────────── */
.nav-theme-dropdown {
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    background: #fff;
    border-radius: 12px;
    padding: 14px 18px 12px;
    min-width: 220px;
    box-shadow: 0 8px 24px rgba(0,0,0,.25);
    z-index: 150;
}
.nav-theme-dropdown::before {
    content: '';
    position: absolute;
    top: -7px;
    right: 13px;
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-bottom: 7px solid #fff;
}
.nav-theme-slider-row {
    display: flex;
    align-items: center;
    gap: 10px;
}
.nav-theme-slider-row svg { flex-shrink: 0; color: #111; }
#nav-theme-slider {
    -webkit-appearance: none; appearance: none;
    flex: 1; height: 3px;
    background: #111; border-radius: 2px;
    outline: none; cursor: pointer;
}
#nav-theme-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px; height: 16px;
    border-radius: 50%; background: #111;
    cursor: pointer; transition: transform .15s;
}
#nav-theme-slider::-webkit-slider-thumb:hover { transform: scale(1.2); }
#nav-theme-slider::-moz-range-thumb {
    width: 16px; height: 16px;
    border-radius: 50%; background: #111;
    cursor: pointer; border: none;
}
.nav-theme-labels {
    display: flex;
    margin-top: 9px;
    font-size: 10px;
    color: #666;
    font-family: 'Proxima Nova', sans-serif;
    font-weight: 600;
    letter-spacing: .02em;
}
.nav-theme-labels span { flex: 1; }
.nav-theme-labels span:nth-child(2) { text-align: center; }
.nav-theme-labels span:nth-child(3) { text-align: right; }
/* Lighter mode — give the dropdown panel visible contrast against the white bg */
html.fws-lighter .nav-theme-dropdown              { background: #e0e0e0 !important; }
html.fws-lighter .nav-theme-dropdown::before      { border-bottom-color: #e0e0e0 !important; }
html.fws-lighter .nav-theme-slider-row svg        { color: #333 !important; }
#nav-theme-slider::-webkit-slider-track           { background: #111; }