:root {
    --ga-bg: #050711;
    --ga-bg2: #080c17;
    --ga-surface: #0d1321;
    --ga-primary: #635bff;
    --ga-cyan: #00c2ff;
    --ga-text: #f5f7fa;
    --ga-muted: #929bad;
    --ga-border: rgba(255, 255, 255, 0.09);
}
.gameapi-contact {
    overflow: hidden;
    background: var(--ga-bg);
    color: var(--ga-text);
}
.gameapi-contact *,
.gameapi-contact *:before,
.gameapi-contact *:after {
    box-sizing: border-box;
}
.section-space {
    padding: 40px 10px;
}
.contact-hero {
    position: relative;
    border-bottom: 1px solid var(--ga-border);
}
.contact-hero:after {
    position: absolute;
    right: 5%;
    bottom: 0;
    width: 34%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(99, 91, 255, 0.65));
    content: "";
}
.contact-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(470px, 1.05fr);
    align-items: center;
    gap: 78px;
}
.contact-hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 35px;
}
.contact-hero__meta span {
    padding: 10px;
    border: 1px solid var(--ga-border);
    background: rgba(255, 255, 255, 0.025);
    color: #aeb6c7;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.14em;
}

.contact-network {
    position: relative;
    min-height: 400px;
    overflow: hidden;
    border: 1px solid var(--ga-border);
    background: radial-gradient(circle at 50% 50%, rgba(99, 91, 255, 0.1), transparent 16rem), #070b15;
    box-shadow: 0 35px 100px rgba(0, 0, 0, 0.4);
}
.network-grid {
    position: absolute;
    inset: 0;
    opacity: 0.5;
    background-image: linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
    background-size: 44px 44px;
    transform: perspective(650px) rotateX(55deg) scale(1.45);
    transform-origin: center bottom;
}
.network-core {
    position: absolute;
    top: 50%;
    left: 50%;
    display: flex;
    width: 135px;
    height: 135px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(99, 91, 255, 0.45);
    background: rgba(13, 19, 33, 0.94);
    box-shadow: 0 0 0 14px rgba(99, 91, 255, 0.035), 0 0 80px rgba(99, 91, 255, 0.12);
    transform: translate(-50%, -50%);
    z-index: 3;
}
.network-core span {
    color: var(--ga-cyan);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.13em;
}
.network-core strong {
    margin-top: 7px;
    font-size: 19px;
    letter-spacing: 0.08em;
}
.network-line {
    position: absolute;
    height: 1px;
    width: 0;
    transform-origin: left center;
    background: linear-gradient(90deg, rgba(99, 91, 255, 0.6), rgba(99, 91, 255, 0.04));
    pointer-events: none;
    z-index: 1;
}
.network-node {
    position: absolute;
    width: 9px;
    height: 9px;
    border: 2px solid var(--ga-primary);
    border-radius: 50%;
    background: #070b15;
    box-shadow: 0 0 0 7px rgba(99, 91, 255, 0.07), 0 0 16px rgba(99, 91, 255, 0.25);
    z-index: 2;
}
.network-node--one {
    top: 24%;
    left: 17%;
}
.network-node--two {
    bottom: 24%;
    left: 19%;
}
.network-node--three {
    top: 24%;
    right: 16%;
}
.network-node--four {
    right: 18%;
    bottom: 23%;
}
.network-label {
    position: absolute;
    padding: 7px 9px;
    border: 1px solid var(--ga-border);
    background: rgba(5, 7, 17, 0.82);
    color: #9099ab;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.12em;
    z-index: 4;
}
.network-label--one {
    top: 18%;
    left: 10%;
}
.network-label--two {
    top: 16%;
    right: 7%;
}
.network-label--three {
    bottom: 17%;
    left: 6%;
}
.network-label--four {
    right: 8%;
    bottom: 17%;
}

.contact-main {
    background: var(--ga-bg);
}

.contact-main__grid {
    display: grid;
    grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.28fr);
    gap: 95px;
    align-items: start;
}
.contact-info h2, .form-heading h2 {
	max-width: 540px;
}
.contact-channels {
    margin-top: 35px;
    border-top: 1px solid var(--ga-border);
}
.contact-channel {
    display: block;
    padding: 15px 0;
    border-bottom: 1px solid var(--ga-border);
    color: var(--ga-text);
    text-decoration: none;
    transition:
        padding 0.3s ease,
        background 0.3s ease;
}
.contact-channel:hover {
    padding-inline: 10px;
    background: rgba(70, 174, 235, 0.018);
}
.contact-channel > span {
    display: block;
    margin-bottom: 5px;
    color: var(--ga-cyan);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.14em;
}

.contact-channel strong {
    display: block;
    font-size: 14px;
}

.contact-channel small {
    display: flex;
    justify-content: space-between;
    margin-top: 5px;
    color: #727b8d;
    font-size: 10px;
}
.response-note {
	display: flex;
	gap: 10px;
	margin-top: 10px;
	padding: 10px;
	border: 1px solid var(--ga-border);
	background: rgba(255, 255, 255, 0.02);
}
.response-note > span {
	width: 7px;
	height: 7px;
	flex: 0 0 7px;
	margin-top: 5px;
	border-radius: 50%;
	background: #00dbff;
	box-shadow: 0 0 0 4px rgba(126, 231, 135, 0.08);
}
.response-note strong {
    font-size: 11px;
}
.response-note p {
    margin: 5px 0 0;
    color: var(--ga-muted);
    font-size: 12px;
}
.social-channel {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.035);
    transition:
        transform 0.25s ease,
        border-color 0.25s ease,
        background 0.25s ease,
        box-shadow 0.25s ease;
}
.social-channel:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.07);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}
.social-channel img {
    width: 21px;
    height: 21px;
    object-fit: contain;
    display: block;
}
.contact-form-wrap {
    padding: 30px;
    border: 1px solid var(--ga-border);
    background: linear-gradient(145deg, rgba(99, 91, 255, 0.055), transparent 32%), var(--ga-surface);
}
.form-heading {
    padding-bottom: 25px;
    border-bottom: 1px solid var(--ga-border);
}
.form-heading > p {
    max-width: 590px;
}
.contact-form {
    padding-top: 25px;
}
.field--full {
    grid-column: 1 / -1;
}
.field[hidden] {
    display: none;
}
.field label {
    display: block;
    margin-bottom: 5px;
    color: #cfcfcf;
    font-size: 12px;
    font-weight: 800;
}
.field label span {
    color: var(--ga-cyan);
}
.field input,
.field select,
.field textarea {
    width: 100%;
    border: 1px solid var(--ga-border);
    outline: 0;
    background: #090e19;
    color: var(--ga-text);
    font: inherit;
    font-size: 14px;
    transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.field input,
.field select {
    height: 40px;
    padding: 0 12px;
}
.field textarea {
    min-height: 155px;
    resize: vertical;
    padding: 12px;
    line-height: 1.35;
}
.field input::placeholder,
.field textarea::placeholder {
    color: #5d6678;
}
.field select {
    appearance: none;
    cursor: pointer;
    background-image: linear-gradient(45deg, transparent 50%, #727b8c 50%),
        linear-gradient(135deg, #727b8c 50%, transparent 50%);
    background-position: calc(100% - 15px) 20px, calc(100% - 10px) 20px;
    background-repeat: no-repeat;
    background-size: 5px 5px;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
    border-color: rgba(91, 168, 255, 0.65);
    background: #0b1120;
    box-shadow: 0 0 0 3px rgba(91, 189, 255, 0.07);
}
.field.is-invalid input,
.field.is-invalid select,
.field.is-invalid textarea {
    border-color: rgba(239, 68, 68, 0.65);
}
.field-error {
    display: block;
    min-height: 15px;
    margin-top: 5px;
    color: #ef7777;
    font-size: 12px;
}
.form-footer {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	margin-top: 5px;
	padding-top: 15px;
	border-top: 1px solid var(--ga-border);
}
.submit-contact-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 40px;
    padding: 0 20px;
    border: 1px solid var(--ga-cyan);
    border-radius: 10px;
    background: transparent;
    color: var(--ga-cyan);
    cursor: pointer;
    font: inherit;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
    overflow: hidden;
    isolation: isolate;
    transition: color 0.35s ease, border-color 0.35s ease, transform 0.25s ease;
}
.submit-contact-button::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: var(--ga-cyan);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.35s ease;
}
.submit-contact-button:hover {
    color: #050711;
    border-color: var(--ga-cyan);
    transform: translateY(-2px);
}
.submit-contact-button:hover::before {
    transform: scaleX(1);
}
.button-loader {
    display: none;
    width: 13px;
    height: 13px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: gaSpin 0.7s linear infinite;
}
.contact-form.is-loading .button-loader {
    display: block;
}
.contact-form.is-loading .button-text,
.contact-form.is-loading .button {
    pointer-events: none;
    opacity: 0.75;
}
@keyframes gaSpin {
    to {
        transform: rotate(360deg);
    }
}
.form-message {
	display: none;
	margin-top: 15px;
	padding: 10px 15px;
	border: 1px solid var(--ga-border);
	font-size: 12px;
	line-height: 1.3;
}
.form-message.is-visible {
    display: block;
}
.form-message.is-success {
    border-color: rgba(126, 231, 135, 0.22);
    background: rgba(126, 231, 135, 0.045);
    color: #a8e7ae;
}
.form-message.is-error {
    border-color: rgba(239, 68, 68, 0.22);
    background: rgba(239, 68, 68, 0.045);
    color: #f09a9a;
}

.contact-services {
    background: var(--ga-bg2);
    border-block: 1px solid var(--ga-border);
}
.contact-section-heading {
    margin-bottom: 48px;
}
.contact-section-heading h2 {
	max-width: 550px;
}
.contact-services__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    border-top: 1px solid var(--ga-border);
    border-left: 1px solid var(--ga-border);
}
.service-tile {
	display: grid;
	grid-template-columns: 45px minmax(0, 1fr) 25px;
	align-items: center;
	gap: 0px;
	min-height: 100px;
	padding: 15px;
	border-right: 1px solid var(--ga-border);
	border-bottom: 1px solid var(--ga-border);
	color: var(--ga-text);
	text-decoration: none;
	transition: background 0.3s ease, padding 0.3s ease;
}
.service-tile:hover {
    padding-inline: 28px;
    background: rgba(63, 182, 230, 0.025);
    transition: background 0.3s ease, padding 0.3s ease;
}
.service-tile > span {
    color: var(--ga-cyan);
    font-family: monospace;
    font-size: 12px;
}
.service-tile strong {
    display: block;
    font-size: 15px;
}
.service-tile small {
	display: block;
	margin-top: 5px;
	color: #858688;
	font-size: 10px;
	font-weight: 800;
	letter-spacing: 0.1em;
}

@media (max-width: 1100px) {
    .contact-hero__grid {
        grid-template-columns: 1fr;
        gap: 45px;
    }
    .contact-network {
        min-height: 430px;
    }
    .contact-main__grid {
        gap: 55px;
    }
}

@media (max-width: 700px) {
    .contact-hero__content h1 {
        font-size: clamp(40px, 13vw, 62px);
    }
    .contact-hero__content>p {
        font-size: 14px;
    }
    .contact-services__grid {
	    grid-template-columns: 1fr;
    }
    .contact-network {
        min-height: 350px;
    }
    .contact-main__grid {
        grid-template-columns: 1fr;
        gap: 65px;
    }
    .contact-form-wrap {
        padding: 25px 20px;
    }
    .field--full {
        grid-column: auto;
    }
    .form-footer .button {
        width: 100%;
        margin-top: 22px;
    }
    .contact-section-heading {
        margin-bottom: 34px;
    }
    .contact-section-heading > p {
        margin-top: 19px;
    }
}

@media (max-width: 420px) {
    .contact-hero__meta {
        display: grid;
        grid-template-columns: 1fr;
    }
    .contact-services__grid {
	    grid-template-columns: 1fr;
    }
    .contact-network {
        min-height: 310px;
    }
    .network-core {
        width: 105px;
        height: 105px;
    }
    .network-core strong {
        font-size: 15px;
    }
    .contact-form-wrap {
        padding: 22px 16px;
    }
    .service-tile {
        grid-template-columns: 32px minmax(0, 1fr) 22px;
        gap: 10px;
        padding: 17px 15px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .button-loader {
        animation: none;
    }
}