/* Caragames Website - Styles */

/* ========================================
   Font Face Definitions (self-hosted)
   ======================================== */

/* Nunito Sans - Weight 200 (ExtraLight) */
@font-face {
    font-family: 'Nunito Sans';
    font-style: normal;
    font-weight: 200;
    font-display: swap;
    src: url('/static/fonts/nunito-sans-v12-latin-200.woff2') format('woff2'),
         url('/static/fonts/nunito-sans-v12-latin-200.woff') format('woff');
}

/* Nunito Sans - Weight 400 (Regular) */
@font-face {
    font-family: 'Nunito Sans';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('/static/fonts/nunito-sans-v12-latin-regular.woff2') format('woff2');
}

/* Nunito Sans - Weight 600 (SemiBold) */
@font-face {
    font-family: 'Nunito Sans';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('/static/fonts/nunito-sans-v12-latin-600.woff2') format('woff2'),
         url('/static/fonts/nunito-sans-v12-latin-600.woff') format('woff');
}

/* Nunito Sans - Weight 900 (Black) */
@font-face {
    font-family: 'Nunito Sans';
    font-style: normal;
    font-weight: 900;
    font-display: swap;
    src: url('/static/fonts/nunito-sans-v12-latin-900.woff2') format('woff2'),
         url('/static/fonts/nunito-sans-v12-latin-900.woff') format('woff');
}

/* Quicksand - Weight 400 (Regular) */
@font-face {
    font-family: 'Quicksand';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('/static/fonts/quicksand-v30-latin-regular.woff2') format('woff2'),
         url('/static/fonts/quicksand-v30-latin-regular.woff') format('woff');
}

/* Quicksand - Weight 600 (SemiBold) */
@font-face {
    font-family: 'Quicksand';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('/static/fonts/quicksand-v30-latin-600.woff2') format('woff2'),
         url('/static/fonts/quicksand-v30-latin-600.woff') format('woff');
}

/* Quicksand - Weight 700 (Bold) */
@font-face {
    font-family: 'Quicksand';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('/static/fonts/quicksand-v30-latin-700.woff2') format('woff2');
}

/* ========================================
   CSS Variables
   ======================================== */
:root {
    --background-rgb: 18, 18, 18;
    --text-rgb: 0, 0, 0;
    --text-light-rgb: 236, 236, 236;

    --font-quicksand: 'Quicksand', sans-serif;
    --font-nunito: 'Nunito Sans', sans-serif;

    --header-height: 40px;

    --container-max-width: 100%;
    --container-padding: 30px;

    /* Section spacing */
    --section-spacing-b: 120px;
    --section-paragraph-pl: 14vw;
    --section-header-pb: 20px;

    /* Gradient colors for various elements */
    --lin-grad-from: #A90061;
    --lin-grad-to: #0536B4;
}

@media (min-width: 1024px) {
    :root {
        --section-paragraph-pl: 243px;
    }
}

@media (min-width: 640px) {
    :root {
        --header-height: 60px;
        --container-padding: 40px;
        --container-max-width: 640px;
        --section-header-pb: 40px;
    }
}

@media (min-width: 768px) {
    :root {
        --container-max-width: 768px;
    }
}

@media (min-width: 1024px) {
    :root {
        --container-max-width: 1024px;
        --section-spacing-b: 180px;
    }
}

@media (min-width: 1280px) {
    :root {
        --container-max-width: 1280px;
    }
}

/* ========================================
   Reset & Base
   ======================================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    background: black;
}

body {
    font-family: var(--font-nunito);
    background: rgb(var(--background-rgb));
    color: rgb(var(--text-light-rgb));
    line-height: 1.6;
}

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

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

/* ========================================
   Container
   ======================================== */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* ========================================
   Header
   ======================================== */
.header {
    --active-menu-entry-size: 138px;
    --menu-entry-size: 65px;
    --menu-height: 130px;

    display: flex;
    flex-direction: column;
}

.header--full-height {
    min-height: 100vh;
}

@media (min-width: 640px) {
    .header {
        --active-menu-entry-size: 155px;
        --menu-entry-size: 155px;
        --menu-height: 155px;
    }
}

@media (min-width: 1024px) {
    .header {
        --active-menu-entry-size: 230px;
        --menu-entry-size: 230px;
        --menu-height: 230px;
    }
}

.header-bar {
    height: var(--header-height);
    background: rgb(var(--background-rgb));
    position: relative;
    z-index: 50;
}

.header-content {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    height: 100%;
    display: flex;
    align-items: center;
    color: white;
}

/* Header Image with Fade Animation */
.header-image-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: black;
}

.header-image-container {
    position: relative;
    flex: 1;
    overflow: hidden;
    opacity: 0;
}

.header-image-container.show {
    animation: headerImageFadeIn 700ms cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes headerImageFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.header-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.header-image picture {
    display: block;
    width: 100%;
    height: 100%;
}

.header-image picture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.header-image__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.header-logo {
    max-width: 80%;
    max-height: 220px;
    height: auto;
    width: auto;
}

@media (min-width: 768px) {
    .header-logo {
        max-width: 600px;
    }
}

/* Header Text Overlay (Games, About, Contact pages) */
.header-text-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.header-text {
    color: white;
    text-transform: uppercase;
    font-weight: 900;
    line-height: 1.4em;
    letter-spacing: 0.5em;
    font-size: 25px;
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    background: rgba(0, 81, 157, 0.1);
    border-radius: 5px;
    padding: 0.03em 0.3em 0 0.3em;
}

@media (min-width: 768px) and (min-height: 586px) {
    .header-text {
        font-size: 50px;
        line-height: 0.95em;
    }
}

@media (min-width: 1280px) and (min-height: 760px) {
    .header-text {
        font-size: 70px;
    }
}

.header-subtitle-spacing {
    height: 30px;
}

@media (min-width: 768px) and (min-height: 586px) {
    .header-subtitle-spacing {
        height: 50px;
    }
}

@media (min-width: 1280px) and (min-height: 760px) {
    .header-subtitle-spacing {
        height: 70px;
    }
}

.header-subtitle {
    color: white;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5em;
    text-align: center;
    font-size: 18px;
    line-height: 1.8em;
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    background: rgba(0, 81, 157, 0.1);
    border-radius: 5px;
    padding: 0 0.5em;
}

@media (min-width: 768px) and (min-height: 586px) {
    .header-subtitle {
        font-size: 25px;
        line-height: 1em;
        padding: 0.25em 0.5em 0.2em;
    }
}

@media (min-width: 1280px) and (min-height: 760px) {
    .header-subtitle {
        font-size: 40px;
        line-height: 1em;
    }
}

.header-subtitle__inner {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.tracking-zero {
    letter-spacing: 0;
}

/* ========================================
   Menu
   ======================================== */
.menu {
    background: rgb(var(--background-rgb));
    height: var(--menu-height);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 0 15px;
}

@media (min-width: 640px) {
    .menu {
        padding: 0;
    }
}

/* Menu entry wrapper - handles the black background for active */
.menu-entry-wrapper {
    width: var(--menu-entry-size);
    height: 100%;
}

.menu-entry-wrapper--active {
    width: var(--active-menu-entry-size);
    display: flex;
    align-items: flex-end;
    background: black;
}

.menu-entry {
    width: 100%;
    height: 100%;
    display: flex;
    position: relative;
    cursor: pointer;
    text-decoration: none;
}

/* Active menu entry - slides up with animation */
.menu-entry--active {
    position: relative;
    animation: menuEntrySlide 0.3s ease-out forwards;
    /* Aspect ratio for the SVG background (278/256) */
    padding-top: calc(100% * 278 / 256);
}

@keyframes menuEntrySlide {
    from { bottom: 0; }
    to { bottom: 32px; }
}

@media (min-width: 1024px) {
    @keyframes menuEntrySlide {
        from { bottom: 0; }
        to { bottom: 60px; }
    }
}

.menu-entry-bg {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 0;
}

.menu-entry-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

/* For active entries, content height matches SVG aspect ratio */
.menu-entry--active .menu-entry-content {
    height: calc(100% / (278 / 256));
}

/* For inactive entries, fill the whole wrapper */
.menu-entry:not(.menu-entry--active) .menu-entry-content {
    height: 100%;
}

.menu-entry-icon {
    position: relative;
    z-index: 1;
    height: auto;
    color: white;
}

.menu-entry-icon--home { width: 19px; }
.menu-entry-icon--games { width: 25px; }
.menu-entry-icon--about { width: 23px; }
.menu-entry-icon--contact { width: 24px; }

@media (min-width: 640px) {
    .menu-entry-icon--home { width: 34px; }
    .menu-entry-icon--games { width: 46px; }
    .menu-entry-icon--about { width: 40px; }
    .menu-entry-icon--contact { width: 42px; }
}

/* Menu logo (inactive Home button) */
.menu-logo {
    max-width: 73%;
    height: 70px;
}

@media (min-width: 640px) {
    .menu-logo {
        max-width: 50%;
        height: 90px;
    }
}

.menu-entry-label {
    position: relative;
    z-index: 1;
    padding-top: 25px;
    padding-left: 4px;
    font-size: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.7em;
    color: white;
}

@media (min-width: 640px) {
    .menu-entry-label {
        padding-top: 38px;
        font-size: 9px;
    }
}

/* Hide label for inactive entries on mobile */
.menu-entry:not(.menu-entry--active) .menu-entry-label {
    display: none;
}

@media (min-width: 768px) {
    .menu-entry:not(.menu-entry--active) .menu-entry-label {
        display: block;
    }
}

/* ========================================
   Colorized Separator
   ======================================== */
.colorized-separator {
    height: 5px;
    background: linear-gradient(243.4deg, var(--lin-grad-to) 0%, var(--lin-grad-from) 100%);
}

@media (min-width: 640px) {
    .colorized-separator {
        height: 8px;
    }
}

.colorized-separator--small {
    height: 2px;
}

/* ========================================
   Sections
   ======================================== */
.section {
    padding-top: 80px;
    padding-bottom: var(--section-spacing-b);
}

@media (min-width: 768px) {
    .section {
        padding-top: 130px;
    }
}

.section--dark {
    background: rgb(var(--background-rgb));
    color: rgb(var(--text-light-rgb));
}

.section--light {
    background: rgb(var(--text-light-rgb));
    color: rgb(var(--text-rgb));
}

/* Section Title - Nunito Sans, weight 900, uppercase, left-aligned */
.section__title {
    font-family: var(--font-nunito);
    font-size: 22px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.5em;
    line-height: normal;
    padding-bottom: var(--section-header-pb);
}

@media (min-width: 1024px) {
    .section__title {
        font-size: 39px;
    }
}

/* Section title colors based on theme */
.section--dark .section__title {
    color: white;
    opacity: 0.2;
}

/* Preserve opacity when fade-in animation completes */
.section--dark .section__title.fade-in-scroll.in-view {
    opacity: 0.2;
}

.section--light .section__title {
    color: white;
}

/* No uppercase variant - keeps letter-spacing */
.section__title--no-uppercase {
    text-transform: none;
}

/* Section Text - Quicksand, justified, left padding on desktop */
.section__text {
    font-family: var(--font-quicksand);
    font-size: 14px;
    line-height: 1.8em;
    text-align: justify;
    margin-bottom: 1em;
}

.section__text:last-child {
    margin-bottom: 0;
}

.section__text p {
    margin-bottom: 1em;
}

.section__text p:last-child {
    margin-bottom: 0;
}

@media (min-width: 768px) {
    .section__text {
        font-size: 15px;
        padding-left: 14vw;
    }
}

@media (min-width: 1024px) {
    .section__text {
        padding-left: 243px;
    }
}

.section--dark .section__text {
    color: rgb(var(--text-light-rgb));
}

.section--light .section__text {
    color: rgb(var(--background-rgb));
}

/* ========================================
   Footer
   ======================================== */
.footer {
    background: black;
    color: white;
    padding-top: 82px;
}

/* Top Row: Logo + Nav */
.footer__top {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    flex-wrap: wrap;
}

.footer__logo {
    flex-basis: 100%;
    padding-bottom: 60px;
}

@media (min-width: 640px) {
    .footer__logo {
        flex-basis: auto;
        padding-bottom: 0;
    }
}

.footer__nav {
    display: flex;
    align-items: flex-end;
    margin-left: -8px;  /* Offset label padding, reset on sm */
}

@media (min-width: 640px) {
    .footer__nav {
        flex-grow: 1;
        justify-content: flex-end;
        margin-left: 0;
    }
}

.footer__nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
}

.footer__nav-icon {
    display: block;
    opacity: 0.5;
    color: white;
}

.footer__nav-icon svg,
.footer__nav-icon .menu-entry-icon {
    display: block;
    width: 29px;
    height: 22px;
}

.footer__nav-spacer {
    display: block;
    width: 0;
    height: 18px;
}

@media (min-width: 640px) {
    .footer__nav-spacer {
        height: 28px;
    }
}

.footer__nav-label {
    display: block;
    padding-left: 8px;
    font-size: 9px;
    font-weight: 600;
    line-height: 15px;
    text-transform: uppercase;
    letter-spacing: 0.7em;
    color: white;
    white-space: nowrap;
}

@media (min-width: 768px) {
    .footer__nav-label {
        font-size: 10px;
    }
}

.footer__nav-link:hover .footer__nav-icon {
    opacity: 0.8;
}

/* Separator */
.footer__separator {
    font-size: 9px;
    font-weight: 600;
    color: white;
    padding: 0 10px;
    text-transform: uppercase;
}

@media (min-width: 768px) {
    .footer__separator {
        font-size: 10px;
        padding: 0 14px;
    }
}

.footer__separator--desktop {
    display: none;
}

@media (min-width: 768px) {
    .footer__separator--desktop {
        display: block;
    }
}

/* Legal Links */
.footer__legal {
    display: flex;
    flex-direction: column;
    padding-top: 80px;
    padding-bottom: 26px;
    position: relative;
    left: -8px;
}

@media (min-width: 768px) {
    .footer__legal {
        flex-direction: row;
        padding-top: 109px;
    }
}

.footer__legal-link {
    display: block;
    padding-left: 8px;
    padding-bottom: 12px;
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.7em;
    color: white;
    white-space: nowrap;
    text-decoration: none;
}

@media (min-width: 768px) {
    .footer__legal-link {
        font-size: 10px;
        padding-bottom: 0;
    }
}

.footer__legal-link:hover {
    opacity: 0.8;
}

/* Divider */
.footer__divider {
    height: 1px;
    background: white;
    opacity: 0.5;
}

/* Copyright */
.footer__copyright {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    gap: 4px;
    padding-top: 11px;
    padding-bottom: 11px;
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: white;
    opacity: 0.5;
}

@media (min-width: 640px) {
    .footer__copyright {
        padding-top: 42px;
        padding-bottom: 42px;
        font-size: 10px;
    }
}

/* ========================================
   Scroll to Top
   ======================================== */
.scroll-top-wrapper {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 45px;
    z-index: 100;
    pointer-events: none;
}

.scroll-top-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    display: flex;
    justify-content: flex-end;
}

.scroll-top-btn {
    display: block;
    position: relative;
    right: -110px;
    bottom: 20px;
    width: 60px;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: auto;
}

.scroll-top-btn.visible {
    opacity: 1;
}

.scroll-top-btn img {
    display: block;
    max-width: 100%;
}

/* ========================================
   Forms
   ======================================== */
.contact-form-wrapper {
    position: relative;
}

.contact-form {
    display: grid;
    grid-template-columns: 1fr;
    max-width: 100%;
}

@media (min-width: 768px) {
    .contact-form {
        grid-template-columns: 1fr 600px 1fr;
    }
}

.contact-form__fields {
    padding-bottom: 100px;
}

@media (min-width: 768px) {
    .contact-form__fields {
        grid-column: 2;
    }
}

.form-line {
    margin-bottom: 48px;
}

.form-field {
    position: relative;
}

.form-field__input,
.form-field__textarea {
    width: 100%;
    margin: 0;
    padding: 0;
    font-size: 15px;
    font-family: var(--font-quicksand);
    line-height: 1.3em;
    background: transparent;
    border: none;
    color: rgb(var(--text-rgb));
    min-height: 30px;
    transition: background 0.2s ease;
}

@media (min-width: 768px) {
    .form-field__input,
    .form-field__textarea {
        font-size: 16px;
    }
}

/* Placeholder uses browser default color (no explicit color in original) */

.form-field:hover .form-field__input,
.form-field:hover .form-field__textarea,
.form-field__input:focus,
.form-field__textarea:focus {
    background: rgba(0, 0, 0, 0.05);
    outline: none;
}

.form-field__textarea {
    height: 200px;
    resize: vertical;
}

.form-field__separator {
    height: 2px;
    background: linear-gradient(243.4deg, var(--lin-grad-to) 0%, var(--lin-grad-from) 100%);
}

.form-field__label {
    display: block;
    padding-top: 9px;
    color: #B7B7B7;
    text-transform: uppercase;
    font-size: 12px;
    line-height: 1.33em;
    letter-spacing: 0.7em;
    font-weight: 600;
    transition: color 0.2s ease;
}

.form-field__input:focus ~ .form-field__separator + .form-field__label,
.form-field__textarea:focus ~ .form-field__separator + .form-field__label {
    color: rgb(var(--text-rgb));
}

.form-field--error .form-field__label {
    color: var(--lin-grad-from);
}

.form-field--error .form-field__input,
.form-field--error .form-field__textarea {
    background: rgba(0, 0, 0, 0.05);
}

/* Checkbox group */
.form-checkbox-group {
    display: flex;
    align-items: flex-start;
}

@media (min-width: 768px) {
    .form-checkbox-group {
        grid-column: span 2;  /* Spans columns 1-2, aligning under empty + fields */
    }
}

.form-checkbox {
    flex-shrink: 0;
    position: relative;
    width: 35px;
    height: 35px;
    padding: 2px;
    border-radius: 5px;
    background: linear-gradient(243.4deg, var(--lin-grad-to) 0%, var(--lin-grad-from) 100%);
}

.form-checkbox__input {
    appearance: none;
    cursor: pointer;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    border-radius: 3px;
    background-color: rgb(var(--text-light-rgb));
    background-position: center;
    background-repeat: no-repeat;
}

.form-checkbox__input:checked {
    background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABcAAAASCAYAAACw50UTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAADjSURBVHgBrdTLEYIwFAXQJCyYYUWogBIoQTrQDujMUrQDtQLTgVmyAt/LRCZq/uHOwPDJOxdYUJGd0rZt3zTNra5rPs/zFa9VZIcgzBi7wGFPKT1AgYCCByWFMWHz+rIsUxHugjHruopsPATDNjKSER8MkQCfpJSCGQNT13VPHCyB4VuPAN/xhH5gGDjrBUIvECWwwn9g4ipIhRUOn+KFs5aBrSAHxjC8gQssQwoE+JgDqyfHHQCDBmxv4IoX3vCMgiD8hScURMF/eERBNGzFPQVJsBO3FCTDwWAB5xx/CQPJyBtZ7K1ltm+eeAAAAABJRU5ErkJggg==');
}

.form-checkbox-label {
    padding-left: 20px;
    font-size: 15px;
    font-family: var(--font-quicksand);
    line-height: 1.25em;
    color: rgb(var(--text-rgb));
}

@media (min-width: 768px) {
    .form-checkbox-label {
        font-size: 16px;
    }
}

.form-checkbox-label a {
    font-weight: 600;
    text-decoration: underline;
}

.form-checkbox-label a:hover {
    text-decoration: none;
}

.form-checkbox-label--error {
    color: var(--lin-grad-from);
}

/* Error message */
.form-error {
    position: relative;
    min-height: 1.222em;
    margin-top: -1.444em;
    margin-bottom: 0.222em;
    color: var(--lin-grad-from);
    font-family: var(--font-nunito);
    font-size: 16px;
    line-height: 1.222em;
}

@media (min-width: 768px) {
    .form-error {
        font-size: 18px;
    }
}

/* ========================================
   Buttons
   ======================================== */
.btn {
    display: inline-block;
    padding: 12px 32px;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn--primary {
    background: linear-gradient(135deg, #566CFD, #25FFFF);
    color: white;
}

.btn--submit {
    display: block;
    width: 100%;
    height: 60px;
    padding: 0 25px;
    font-family: var(--font-nunito);
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.7em;
    text-align: center;
    line-height: 60px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    color: white;
    background: linear-gradient(242.71deg, #0536B4 0%, #A90061 100%);
    transition: opacity 0.2s ease;
}

@media (min-width: 768px) {
    .btn--submit {
        font-size: 16px;
    }
}

.btn--submit:hover {
    opacity: 0.9;
}

/* Form Overlay & Modals */
.form-overlay {
    position: absolute;
    left: -40px;
    top: -120px;
    bottom: -40px;
    right: -40px;
    padding: 30px;
    background: rgba(var(--text-light-rgb), 0.70);
    backdrop-filter: blur(4px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
}

.form-overlay--success {
    background: rgb(var(--text-light-rgb));
}

.loading-indicator {
    position: relative;
    top: -40px;
}

.loading-spinner-path {
    transform-origin: center;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.server-modal {
    position: relative;
    top: -15%;
}

.server-modal__content {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    padding: 83px 60px 44px 30px;
    max-width: 880px;
    background: linear-gradient(0deg, rgba(169, 0, 97, 0.40) 0%, rgba(169, 0, 97, 0.40) 100%), #000;
}

@media (min-width: 768px) {
    .server-modal__content {
        padding-right: 150px;
    }
}

@media (min-width: 1024px) {
    .server-modal__content {
        padding-right: 158px;
    }
}

.server-modal__content--success {
    align-items: flex-start;
    padding: 116px 60px 116px 30px;
    max-width: 920px;
    background: rgb(var(--background-rgb));
}

.server-modal__text {
    font-family: var(--font-nunito);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.7em;
    text-transform: uppercase;
    color: white;
    line-height: 1.4;
}

@media (min-width: 768px) {
    .server-modal__text {
        font-size: 14px;
    }
}

@media (min-width: 1024px) {
    .server-modal__text {
        font-size: 16px;
    }
}

.server-modal__break-lg {
    display: none;
}

@media (min-width: 1024px) {
    .server-modal__break-lg {
        display: inline;
    }
}

.server-modal__spacer {
    height: 128px;
}

.server-modal__decoration {
    position: absolute;
}

.server-modal__decoration--bottom {
    left: 30px;
    bottom: 0;
}

.server-modal__decoration--bottom svg {
    width: 230px;
    height: auto;
}

.server-modal__decoration--right {
    top: 0;
    right: 0;
    height: 100%;
    padding: 12px;
}

.server-modal__decoration--right svg {
    height: 100%;
    width: auto;
}

.server-modal__close {
    position: absolute;
    bottom: -52px;
    left: 50%;
    transform: translateX(-50%);
    cursor: pointer;
}

.server-modal__close svg {
    width: 32px;
    height: 32px;
}

/* ========================================
   Team Grid
   ======================================== */
.team-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

@media (min-width: 640px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.team-member {
    text-align: center;
}

.team-member h3 {
    font-family: var(--font-quicksand);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.team-role {
    color: rgba(var(--text-light-rgb), 0.7);
    font-size: 0.9rem;
}

/* ========================================
   Legal Content
   ======================================== */
.legal-content {
    max-width: 800px;
}

.legal-content h1 {
    margin-bottom: 2rem;
}

.legal-content p {
    margin-bottom: 1rem;
}

/* Legal Section & Articles */
.legal-section {
    padding-top: 0;
    overflow: hidden;
}

.legal-article {
    margin-bottom: 80px;
}

.legal-article:last-child {
    margin-bottom: 0;
}

.legal-article__title {
    font-family: var(--font-nunito);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.5em;
    text-transform: uppercase;
    line-height: 1.33em;
    color: rgb(var(--text-rgb));
    margin-left: 50%;
    margin-bottom: 0;
    padding-top: 0;
    padding-bottom: 35px;
}

.legal-article__title::before {
    content: "";
    display: block;
    height: 5px;
    margin-bottom: 15px;
    width: 50vw;
    background: linear-gradient(243.4deg, var(--lin-grad-to) 0%, var(--lin-grad-from) 100%);
}

@media (min-width: 640px) {
    .legal-article__title::before {
        height: 8px;
        margin-bottom: 20px;
    }
}

.legal-article__subtitle {
    font-family: var(--font-quicksand);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.8em;
    margin-top: 2.8em;
    margin-bottom: 1em;
    color: rgb(var(--text-rgb));
}

.legal-article__title + .legal-article__subtitle {
    margin-top: 0;
}

@media (min-width: 768px) {
    .legal-article__subtitle {
        padding-left: 14vw;
    }
}

@media (min-width: 1024px) {
    .legal-article__subtitle {
        padding-left: 243px;
    }
}

.legal-article__topic {
    margin-top: 2.8em;
}

.legal-article__content > .legal-article__topic:first-child {
    margin-top: 0;
}

.legal-article__content {
    font-family: var(--font-quicksand);
    font-size: 15px;
    line-height: 1.8em;
    text-align: justify;
    color: rgb(var(--background-rgb));
}

@media (min-width: 768px) {
    .legal-article__content {
        padding-left: 14vw;
    }
}

@media (min-width: 1024px) {
    .legal-article__content {
        padding-left: 243px;
    }
}

.legal-article__content p {
    margin-bottom: 1em;
}

.legal-article__content p:last-child {
    margin-bottom: 0;
}

.legal-article__content ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.legal-article__content ul li {
    margin-bottom: 0.5rem;
}

.legal-article__content a {
    color: rgb(var(--text-rgb));
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.legal-article__content a:hover {
    opacity: 0.7;
}

.legal-article__update {
    font-family: var(--font-quicksand);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.8em;
    margin-top: 1em;
    color: rgb(var(--background-rgb));
}

@media (min-width: 768px) {
    .legal-article__update {
        padding-left: 14vw;
    }
}

@media (min-width: 1024px) {
    .legal-article__update {
        padding-left: 243px;
    }
}

/* ========================================
   Utilities
   ======================================== */
.text-center {
    text-align: center;
}

/* ========================================
   Scroll Fade-In Animation
   ======================================== */
.fade-in-scroll {
    position: relative;
    bottom: -30px;
    opacity: 0;
    transition-property: opacity, bottom;
    transition-duration: 0.5s;
    transition-timing-function: ease;
}

.fade-in-scroll.in-view {
    bottom: 0;
    opacity: 1;
}

/* Disable animation for users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
    .fade-in-scroll {
        bottom: 0;
        opacity: 1;
        transition: none;
    }
}

/* For elements with blend modes: only animate position, not opacity */
.fade-in-scroll--no-opacity {
    opacity: 1;
    transition-property: bottom;
}

.fade-in-scroll--no-opacity.in-view {
    opacity: 1;
}

/* ========================================
   Decorative Text SVGs
   ======================================== */
.decoration-text {
    position: absolute;
    height: 100%;
    top: 40px;
    display: none;
    pointer-events: none;
}

@media (min-width: 1024px) {
    .decoration-text {
        display: block;
    }
}

.decoration-text--left {
    left: var(--container-padding);
}

.decoration-text--right {
    right: var(--container-padding);
    top: 0;
}

/* Section inner wrapper for decoration positioning */
.section__inner--with-decoration {
    position: relative;
    max-width: var(--container-max-width);
    margin: 0 auto;
}

/* Decoration text SVGs are in the background - no padding needed, text overlaps them */

/* ========================================
   News List & Items - Overlapping Layout
   ======================================== */
.news-list {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    margin-bottom: calc(-1 * var(--section-spacing-b));
}

@media (min-width: 1024px) {
    .news-list {
        margin-bottom: 0;
    }
}

/* News Item - Complex overlapping layout */
.news-item {
    --news-image-pl: 355px;
    --news-content-inset: 231px;
    --news-content-width: calc(var(--news-image-pl) + var(--news-content-inset));

    position: relative;
    width: 100%;
}

@media (min-width: 1024px) {
    .news-item {
        margin-top: var(--section-header-pb);
    }
}

/* Image wrapper - pushed to the right on desktop */
.news-item__image-wrapper {
    overflow: hidden;
}

@media (min-width: 1024px) {
    .news-item__image-wrapper {
        height: 380px;
        margin-left: var(--news-image-pl);
    }

    .news-item--flip .news-item__image-wrapper {
        margin-left: 0;
        margin-right: var(--news-image-pl);
    }
}

/* Image container */
.news-item__image {
    position: relative;
    padding-top: 46.54%;
    min-height: 155px;
    background: var(--news-image-bg, transparent);
}

@media (min-width: 1024px) {
    .news-item__image {
        padding-top: 0;
        height: 100%;
    }
}

.news-item__image picture {
    display: block;
    height: 100%;
}

.news-item__image > picture > img,
.news-item__image > img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: right top;
}

@media (min-width: 1024px) {
    .news-item__image > picture > img,
    .news-item__image > img {
        position: relative;
    }
}

/* Summoner of Unity - specific object-position */
.news-item__image.news-item__image--summoner > picture > img,
.news-item__image.news-item__image--summoner > img {
    object-position: center center;
}

@media (min-width: 768px) {
    .news-item__image.news-item__image--summoner > picture > img,
    .news-item__image.news-item__image--summoner > img {
        object-position: 65% 50%;
    }
}

/* Tides of Fate - centered object-position */
.news-item__image.news-item__image--tides > picture > img,
.news-item__image.news-item__image--tides > img {
    object-position: center center;
}

/* Centered image (e.g., logo on colored background) */
.news-item__image--centered {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 0 !important;
    min-height: 320px;
}

@media (min-width: 1024px) {
    .news-item__image--centered {
        min-height: 0;
        /* Logo is centered in the area NOT covered by the content overlay */
        padding-left: var(--news-content-inset);
    }
}

.news-item__image--centered img {
    position: relative;
    width: auto;
    max-width: 70%;
    height: auto;
    object-fit: contain;
}

/* Content box - overlaps image on desktop */
.news-item__content {
    padding-top: 40px;
    padding-bottom: var(--section-spacing-b, 120px);
}

@media (min-width: 1024px) {
    .news-item__content {
        position: absolute;
        left: 0;
        top: 60px;
        width: var(--news-content-width);
        height: 260px;
        padding-top: 30px;
        padding-right: 30px;
        padding-bottom: 0;
    }

    .news-item--flip .news-item__content {
        left: auto;
        right: 0;
        padding-right: 0;
        padding-left: 30px;
    }
}

/* Grey background - only behind the part that overlaps the image */
.news-item__content-bg {
    display: none;
}

@media (min-width: 1024px) {
    .news-item__content-bg {
        display: block;
        position: absolute;
        top: 0;
        left: var(--news-image-pl);
        right: 0;
        height: 100%;
        background: rgb(var(--text-light-rgb));
    }

    .news-item--flip .news-item__content-bg {
        left: 0;
        right: var(--news-image-pl);
    }

    /* Dark section: grey bg is dark */
    .section--dark .news-item__content-bg {
        background: rgb(var(--background-rgb));
    }
}

/* Content text wrapper - relative to appear above bg */
.news-item__content-inner {
    position: relative;
}

/* News Item Title - uppercase, weight 900, tracking 0.5em */
.news-item__title {
    font-family: var(--font-nunito);
    font-size: 15px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.5em;
    line-height: normal;
    margin-bottom: 20px;
}

@media (min-width: 1024px) {
    .news-item__title {
        line-height: 27px;
    }
}

/* News Item Date - same tracking as title, grey color */
.news-item__date {
    display: block;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.5em;
    color: #a6a6a6;
    line-height: normal;
    margin-bottom: 8px;
}

@media (min-width: 1024px) {
    .news-item__date {
        line-height: 16px;
    }
}

/* News Item Text - Quicksand, justified */
.news-item__text {
    font-family: var(--font-quicksand);
    font-size: 14px;
    line-height: 26px;
    text-align: justify;
    margin-bottom: 0.75rem;
}

@media (min-width: 768px) {
    .news-item__text {
        font-size: 15px;
    }
}

@media (min-width: 1024px) {
    .news-item__text {
        line-height: 30px;
    }
}

.news-item__text:last-child {
    margin-bottom: 0;
}

.news-item__text strong {
    font-weight: 600;
}

/* News item colors based on section theme */
.section--light .news-item__title {
    color: #000;
}

.section--dark .news-item__title {
    color: rgb(var(--text-light-rgb));
}

.section--light .news-item__text {
    color: #000;
}

.section--dark .news-item__text {
    color: rgb(var(--text-light-rgb));
}

/* Sponsor badge on project images */
.news-item__sponsor {
    position: absolute;
    bottom: 8px;
    right: 8px;
    display: flex;
    align-items: end;
}

@media (min-width: 768px) {
    .news-item__sponsor {
        bottom: 12px;
        right: 20px;
    }
}

.news-item__sponsor-text {
    font-size: 14px;
    font-weight: 600;
    line-height: 18px;
    opacity: 0.4;
    font-family: var(--font-quicksand);
    color: rgb(var(--text-light-rgb));
    white-space: nowrap;
}

@media (min-width: 768px) {
    .news-item__sponsor-text {
        font-size: 18px;
        line-height: 30px;
    }
}

.news-item__sponsor-spacer {
    width: 8px;
}

@media (min-width: 768px) {
    .news-item__sponsor-spacer {
        width: 16px;
    }
}

.news-item__sponsor img {
    height: 18px !important;
}

@media (min-width: 768px) {
    .news-item__sponsor img {
        height: 33px !important;
    }
}

/* ========================================
   Team Section (About Page)
   ======================================== */
.section--no-bottom-padding {
    padding-bottom: 0;
}

.team-section {
    position: relative;
}

.team-section__overlay {
    display: none;
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 10;
    pointer-events: none;
}

@media (min-width: 768px) {
    .team-section__overlay {
        display: block;
    }
}

.team-section__overlay-inner {
    position: relative;
    height: 100%;
    max-width: 1920px;
    margin: 0 auto;
}

.founder-text {
    position: absolute;
    right: 48px;
    top: 20px;
    bottom: 20px;
    height: calc(100% - 40px);
    width: auto;
}

.team-section__gap {
    display: none;
    height: 10px;
}

@media (min-width: 768px) {
    .team-section__gap {
        display: block;
    }
}

/* ========================================
   Team Member (About Page)
   ======================================== */
.team-member {
    overflow: hidden;
    background: #071017;
    min-height: 390px;
    height: 450px;
    display: flex;
    align-items: stretch;
}

@media (min-width: 768px) {
    .team-member {
        height: auto;
    }
}

/* Image container - NOT absolute, in document flow */
.team-member__image {
    position: relative;
    z-index: 0;
    flex: 1;
    max-width: 1920px;
    margin: 0 auto;
}

.team-member__image picture {
    display: block;
    height: 100%;
}

.team-member__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Kristina: focus on face (67% from left on mobile, center on desktop) */
.team-member:not(.team-member--flip) .team-member__image img {
    object-position: 67% 50%;
}

@media (min-width: 768px) {
    .team-member:not(.team-member--flip) .team-member__image img {
        object-position: center;
    }
}

/* Marcel: focus on face (33% from left on mobile, center on desktop) */
.team-member--flip .team-member__image img {
    object-position: 33% 50%;
}

@media (min-width: 768px) {
    .team-member--flip .team-member__image img {
        object-position: center;
    }
}

/* Overlay sits on top of the image */
.team-member__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.team-member__overlay-inner {
    position: relative;
    height: 100%;
}

@media (min-width: 768px) {
    .team-member__overlay-inner {
        max-width: var(--container-max-width);
        margin: 0 auto;
    }
}

/* Info container - absolute positioned within overlay */
.team-member__info {
    position: absolute;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    top: 0;
    bottom: 0;
    left: 0;
    padding-left: 30px;
    color: rgb(var(--text-light-rgb));
    align-items: flex-start;
}

@media (min-width: 768px) {
    .team-member__info {
        padding-left: 77px;
        align-items: flex-end;
    }
}

.team-member--flip .team-member__info {
    left: auto;
    right: 0;
    padding-left: 0;
    padding-right: 30px;
    align-items: flex-end;
    text-align: right;
}

@media (min-width: 1024px) {
    .team-member--flip .team-member__info {
        padding-right: 77px;
    }
}

/* Inner flex container for vertical spacing */
.team-member__info-inner {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: space-between;
    height: 100%;
}

.team-member__spacer {
    height: 20px;
}

@media (min-width: 768px) {
    .team-member__spacer {
        flex: 1;
        height: auto;
    }
}

.team-member__spacer--bottom {
    flex: 1;
}

/* Final spacer: only flex on desktop */
.team-member__spacer--final {
    height: 0;
}

@media (min-width: 768px) {
    .team-member__spacer--final {
        flex: 1;
        height: auto;
    }
}

@media (min-width: 768px) {
    .team-member--flip .team-member__spacer--top {
        order: 101;
    }
}

.team-member__name {
    display: flex;
    flex-direction: column;
    align-items: flex-end;  /* Aligns the whole block to the right */
}

.team-member__name-inner {
    display: block;
    position: relative;
    font-size: 20px;
    font-weight: 900;
    letter-spacing: 15px;
    line-height: 1.5em;
    text-transform: uppercase;
    text-align: left;  /* Override inherited center alignment - makes lastname appear left of firstname due to firstname padding-left */
}

@media (min-width: 768px) {
    .team-member__name-inner {
        line-height: 1.2em;
    }
}

@media (min-width: 1280px) {
    .team-member__name-inner {
        font-size: 30px;
    }
}

@media (min-width: 768px) {
    .team-member--flip .team-member__name {
        order: 100;
    }
}

.team-member--flip .team-member__name {
    align-items: flex-start;  /* Push name block to left side (opposite of normal) */
}

.team-member--flip .team-member__name-inner {
    text-align: right;
}

.team-member__firstname {
    padding-left: 32px;
}

.team-member--flip .team-member__firstname {
    padding-left: 0;
    padding-right: 83px;
}

.team-member__lastname {
    font-weight: 200;
    opacity: 0.3;
}

.team-member__last-letter {
    letter-spacing: 0;
}

@media (min-width: 1280px) {
    .team-member__firstname {
        padding-left: 38px;
    }
    .team-member--flip .team-member__firstname {
        padding-left: 0;
        padding-right: 105px;
    }
}

.team-member__quote {
    font-family: var(--font-quicksand);
    font-size: 14px;
    line-height: 26px;
    letter-spacing: 0.6px;
    text-align: justify;
    padding-bottom: 0.6em;
}

@media (min-width: 768px) {
    .team-member__quote {
        line-height: 30px;
    }
}

@media (min-width: 1280px) {
    .team-member__quote {
        font-size: 20px;
    }
}

.team-member__separator {
    position: relative;
    height: 2px;
    width: 100%;
}

.team-member__separator-line {
    position: absolute;
    left: -10000px;
    right: 0;
    top: 0;
    height: 2px;
    background: rgb(var(--text-light-rgb));
}

.team-member--flip .team-member__separator-line {
    left: 0;
    right: -10000px;
}

@media (min-width: 768px) {
    .team-member__separator-line,
    .team-member--flip .team-member__separator-line {
        right: 0;
    }
}

/* Content block (quote + separator + position) */
.team-member__content {
    display: flex;
    flex-direction: column;
}

.team-member__content > .team-member__quote {
    order: 1;
}

.team-member__content > .team-member__separator {
    order: 2;
}

.team-member__content > .team-member__position--desktop {
    order: 3;
}

.team-member--flip .team-member__content > .team-member__quote {
    order: 1;
}

@media (min-width: 768px) {
    .team-member--flip .team-member__content > .team-member__quote {
        order: 3;
        padding-top: 0.6em;
    }

    .team-member--flip .team-member__content > .team-member__position--desktop {
        order: 1;
        padding-bottom: 7px;
    }
}

.team-member--flip .team-member__content {
    align-items: flex-end;
}

@media (min-width: 768px) {
    .team-member__content {
        align-items: flex-end;
    }
}

/* Position styling */
.team-member__position {
    font-size: 4vw;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 10px;
    opacity: 0.2;
    padding-top: 11px;
}

@media (min-width: 768px) {
    .team-member__position {
        font-size: 20px;
        letter-spacing: 15px;
    }
}

@media (min-width: 1280px) {
    .team-member__position {
        font-size: 30px;
    }
}

.team-member__position--desktop {
    display: none;
}

@media (min-width: 768px) {
    .team-member__position--desktop {
        display: block;
    }
}

.team-member__position--mobile {
    display: block;
    padding-left: 26px;
}

.team-member--flip .team-member__position--mobile {
    padding-left: 0;
}

@media (min-width: 768px) {
    .team-member__position--mobile {
        display: none;
    }
}

.team-member__mobile-gap {
    height: 5px;
}

/* ========================================
   Game Showcase Section (Games Page)
   ======================================== */
.game-showcase {
    display: flex;
    flex-direction: column;
    margin-top: 60px;
}

@media (min-width: 768px) {
    .game-showcase {
        margin-top: -60px;
    }
}

/* Top Row: Number + Logo | Screenshot */
.game-showcase__top {
    display: flex;
    flex-direction: column;
}

@media (min-width: 768px) {
    .game-showcase__top {
        flex-direction: row;
    }
}

.game-showcase__left {
    position: relative;
    flex: 1;
    display: flex;
    align-items: flex-end;
}

.game-showcase__number {
    font-size: 200px;
    font-weight: 900;
    line-height: 70%;
    text-transform: uppercase;
    color: white;
}

@media (min-width: 768px) {
    .game-showcase__number {
        font-size: 300px;
        line-height: 210px;
    }
}

.game-showcase__logo {
    position: absolute;
    left: 25px;
    top: -70px;
    width: 250px;
}

@media (min-width: 768px) {
    .game-showcase__logo {
        left: auto;
        right: 95px;
        top: 0;
        width: 55%;
    }
}

.game-showcase__logo img {
    display: block;
    max-width: 100%;
    height: auto;
}

.game-showcase__right {
    flex: 1;
    margin-top: 40px;
}

@media (min-width: 768px) {
    .game-showcase__right {
        margin-top: 0;
    }
}

.game-showcase__right img {
    display: block;
    max-width: 100%;
    height: auto;
    border: 2px solid black;
}

/* Middle Row: Spacer + Title bar */
.game-showcase__middle {
    display: flex;
    flex-direction: row;
    margin-top: 50px;
}

.game-showcase__spacer {
    display: none;
    width: 74px;
}

@media (min-width: 768px) {
    .game-showcase__spacer {
        display: block;
        flex: 1;
    }
}

.game-showcase__titlebar {
    flex: 1;
}

.game-showcase__line {
    height: 5px;
    background: linear-gradient(243.4deg, var(--lin-grad-to) 0%, var(--lin-grad-from) 100%);
}

@media (min-width: 640px) {
    .game-showcase__line {
        height: 8px;
    }
}

.game-showcase__subtitle {
    margin-top: 20px;
    font-size: 11px;
    line-height: 16px;
    letter-spacing: 0.5em;
    text-transform: uppercase;
    text-align: right;
    color: rgb(18, 18, 18);
}

@media (min-width: 768px) {
    .game-showcase__subtitle {
        margin-top: 30px;
        font-size: 12px;
        text-align: left;
    }
}

.game-showcase__subtitle-name {
    font-weight: 900;
}

.game-showcase__subtitle-sep,
.game-showcase__subtitle-desc {
    font-weight: 600;
}

/* Bottom Row: Description + Store */
.game-showcase__bottom {
    display: flex;
    flex-direction: column;
    margin-top: 30px;
    font-family: var(--font-quicksand);
}

@media (min-width: 768px) {
    .game-showcase__bottom {
        flex-direction: row;
    }
}

.game-showcase__description {
    flex: 1;
    font-size: 14px;
    line-height: 1.8em;
    text-align: justify;
}

@media (min-width: 768px) {
    .game-showcase__description {
        font-size: 15px;
        padding-left: var(--section-paragraph-pl);
    }
}

.game-showcase__store {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

@media (min-width: 768px) {
    .game-showcase__store {
        margin-top: 0;
        padding-left: 30px;
        justify-content: flex-start;
        width: 200px;
        flex-shrink: 0;
    }
}

.game-showcase__store-link {
    display: block;
}

.game-showcase__store {
    background: rgb(236, 236, 236); /* Match light section background */
}

.game-showcase__store-link img {
    width: 170px;
    height: auto;
    mix-blend-mode: multiply;
}

/* ========================================
   Values Section (About Page)
   ======================================== */
.values-grid {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    align-items: center;
    padding-top: calc(75px - var(--section-header-pb));
}

@media (min-width: 768px) {
    .values-grid {
        flex-direction: row;
        align-items: flex-start;
        padding-top: 75px;
    }
}

/* 10px spacer between cards */
.values-grid__spacer {
    width: 10px;
    height: 0;
}

.value-card {
    flex: 1 1 0;
    max-width: 310px;
    display: flex;
    flex-direction: column;
    padding-bottom: 104px;
}

@media (min-width: 768px) {
    .value-card {
        flex-basis: 50%;
    }
}

@media (min-width: 1024px) {
    .value-card {
        flex-basis: 0;
    }
}

.value-card__box {
    position: relative;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #1b1b1b;
    background-size: cover;
    background-repeat: no-repeat;
    /* Text styles on box (like original) so em units are correct */
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5em;
    line-height: 2.2em;
    text-align: center;
    color: white;
}

/* Multiline titles need padding-top equal to line-height */
.value-card__box--multiline {
    padding-top: 2.2em;  /* Now correctly = 12px * 2.2 = 26.4px */
}

/* Icon positioned absolutely inside the box */
.value-card__icon {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Specific icon sizes matching original */
.value-card__icon--respect { width: 86px; }
.value-card__icon--learning { width: 82px; }
.value-card__icon--communication { width: 77px; }
.value-card__icon--innovation { width: 48px; }

.value-icon {
    width: 100%;
    height: auto;
}

/* Title inherits text styles from box */
.value-card__title {
    /* No additional styles needed - inherits from .value-card__box */
}

.value-card__text {
    font-family: var(--font-quicksand);
    font-size: 15px;
    line-height: 1.7;
    padding: 20px 10px 0;
    color: white;
}

@media (min-width: 768px) {
    .value-card__text {
        padding-top: 35px;
    }
}

/* ========================================
   Quote Section (About Page)
   ======================================== */
.quote-section-wrapper {
    padding-bottom: 0;  /* Override section default bottom padding */
}

.quote-section {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding-top: 76px;
    padding-bottom: 40px;
}

@media (min-width: 768px) {
    .quote-section {
        flex-direction: row;
        align-items: flex-end;
        padding-top: 60px;
        padding-bottom: 100px;
    }
}

/* Icon wrapper with text inside */
.quote-section__icon-wrapper {
    position: relative;
    order: 1;  /* Appears last on mobile */
    width: 40%;
    max-width: 180px;
    min-width: 126px;
}

@media (min-width: 768px) {
    .quote-section__icon-wrapper {
        order: 0;  /* Appears first on desktop */
        max-width: none;
        width: 180px;
    }
}

@media (min-width: 1024px) {
    .quote-section__icon-wrapper {
        width: 264px;
    }
}

.quote-section__icon-wrapper svg {
    width: 100%;
    height: auto;
}

/* Logo container */
.quote-section__logo {
    flex: 1;
    display: flex;
    align-self: center;
    justify-content: center;
    padding-bottom: 40px;
}

@media (min-width: 768px) {
    .quote-section__logo {
        align-self: auto;
        justify-content: flex-end;
        padding-bottom: 0;
        padding-right: 70px;
    }
}

.quote-section__logo img {
    max-width: 80%;
    height: auto;
}

@media (min-width: 768px) {
    .quote-section__logo img {
        max-width: 60%;
    }
}

@media (min-width: 1024px) {
    .quote-section__logo img {
        max-width: 80%;
    }
}

/* Quote text - positioned inside icon wrapper */
.quote-section__text {
    position: absolute;
    left: 55%;
    top: 30%;
    white-space: nowrap;
    font-weight: 600;
    font-size: 10px;
    letter-spacing: 0.7em;
    line-height: 2.2;
    text-transform: uppercase;
    text-align: right;
    color: rgb(var(--text-rgb));
}

@media (min-width: 768px) {
    .quote-section__text {
        left: auto;
        top: auto;
        right: -23%;
        bottom: -3%;
        font-size: 16px;
    }
}
