/* Hakkımızda sayfasındaki ağ savunma oyunu yalnızca bu dosyadan biçimlendirilir. */
.kh-game-section {
    position: relative;
    display: block;
    clear: both;
    float: left;
    width: 100%;
    max-width: 100%;
    padding: 78px 0;
    overflow: hidden;
    border-top: 4px solid #52d2c8;
    color: #fff;
    background: #151827;
    isolation: isolate;
}

.kh-game-section::before {
    position: absolute;
    z-index: -1;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px);
    background-size: 44px 44px;
    content: "";
    opacity: .75;
    pointer-events: none;
}

.kh-game-section::after {
    position: absolute;
    z-index: -1;
    top: 0;
    right: 0;
    width: 34%;
    height: 5px;
    background: #7b2b94;
    content: "";
}

.kh-game-section .container {
    width: 100%;
    max-width: 1400px;
}

.kh-game-layout {
    display: grid;
    width: 100%;
    min-width: 0;
    grid-template-columns: minmax(290px, .66fr) minmax(620px, 1.34fr);
    align-items: center;
    gap: clamp(34px, 5vw, 72px);
}

.kh-game-copy {
    min-width: 0;
    max-width: 550px;
}

.kh-game-kicker {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 16px;
    color: #63ded4;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.kh-game-kicker i {
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border: 1px solid rgba(99, 222, 212, .34);
    border-radius: 6px;
    background: rgba(99, 222, 212, .08);
}

.kh-game-copy h2 {
    max-width: 520px;
    margin: 0 0 18px;
    color: #fff;
    font-size: clamp(34px, 3.1vw, 48px);
    line-height: 1.08;
    letter-spacing: 0;
}

.kh-game-copy > p {
    margin: 0;
    color: #c7ccda;
    font-size: 16px;
    line-height: 1.72;
}

.kh-game-rules {
    display: grid;
    gap: 10px;
    margin: 26px 0 0;
    padding: 0;
    list-style: none;
}

.kh-game-rules li {
    display: grid;
    min-height: 48px;
    grid-template-columns: 34px minmax(0, 1fr);
    align-items: center;
    gap: 11px;
    padding: 7px 11px 7px 7px;
    border: 1px solid #373c50;
    border-radius: 7px;
    color: #d7dbea;
    background: rgba(30, 34, 51, .8);
    font-size: 13px;
    line-height: 1.4;
}

.kh-game-rules i {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 5px;
    color: #63ded4;
    background: #292d42;
    font-size: 12px;
}

.kh-game-rules strong {
    color: #fff;
}

.kh-game-console {
    position: relative;
    width: 100%;
    min-width: 0;
    overflow: hidden;
    border: 1px solid #41475d;
    border-radius: 8px;
    background: #0d111e;
    box-shadow: 0 34px 80px rgba(0, 0, 0, .38);
}

.kh-game-console::before {
    position: absolute;
    z-index: 6;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #70278a 0 42%, #52d2c8 42% 76%, #d4a649 76% 100%);
    content: "";
    pointer-events: none;
}

.kh-game-console__header {
    display: flex;
    min-height: 78px;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 15px 18px 13px;
    border-bottom: 1px solid #33394c;
    background: #1c2031;
}

.kh-game-console__identity {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 11px;
}

.kh-game-console__identity > div {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 2px;
}

.kh-game-console__identity strong {
    overflow: hidden;
    color: #fff;
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.kh-game-console__identity small {
    color: #989fb3;
    font-size: 10px;
}

.kh-game-console__status {
    position: relative;
    display: block;
    flex: 0 0 12px;
    width: 12px;
    height: 12px;
    border: 2px solid #1c2031;
    border-radius: 50%;
    background: #52d2c8;
    box-shadow: 0 0 0 4px rgba(82, 210, 200, .13);
    animation: kh-game-status 1.8s ease-in-out infinite;
}

.kh-game-stats {
    display: grid;
    grid-template-columns: repeat(5, minmax(48px, 1fr));
    gap: 4px;
}

.kh-game-stats > div {
    display: flex;
    min-width: 48px;
    flex-direction: column;
    align-items: flex-end;
    padding-left: 9px;
    border-left: 1px solid #3a4055;
}

.kh-game-stats span {
    color: #9299ac;
    font-size: 8px;
    font-weight: 800;
    text-transform: uppercase;
}

.kh-game-stats strong {
    color: #fff;
    font-size: 15px;
    line-height: 1.25;
}

.kh-game-telemetry {
    display: grid;
    min-height: 36px;
    grid-template-columns: auto minmax(90px, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 7px 15px;
    border-bottom: 1px solid #2b3042;
    color: #9ea5b8;
    background: #151a2a;
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
}

.kh-game-telemetry > div {
    height: 5px;
    overflow: hidden;
    border-radius: 3px;
    background: #30364b;
}

.kh-game-telemetry i {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    background: #52d2c8;
    transform-origin: left center;
    transition: width .22s ease, background-color .22s ease;
}

.kh-game-board {
    position: relative;
    width: 100%;
    max-width: 100%;
    min-height: 0;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #090d18;
    touch-action: none;
    user-select: none;
}

.kh-game-board:focus-visible {
    outline: 3px solid #63ded4;
    outline-offset: -3px;
}

.kh-game-board canvas {
    display: block;
    width: 100%;
    height: 100%;
}

.kh-game-board__overlay {
    position: absolute;
    z-index: 4;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 18px;
    background: rgba(7, 10, 19, .9);
    opacity: 1;
    visibility: visible;
    transition: opacity .2s ease, visibility .2s ease;
}

.kh-game-board__overlay.is-hidden {
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
}

.kh-game-board__message {
    display: flex;
    width: min(100%, 445px);
    align-items: center;
    flex-direction: column;
    text-align: center;
}

.kh-game-board__icon {
    position: relative;
    display: grid;
    width: 62px;
    height: 62px;
    margin-bottom: 14px;
    place-items: center;
    border: 1px solid rgba(99, 222, 212, .5);
    border-radius: 50%;
    color: #63ded4;
    background: #192238;
    font-size: 24px;
    box-shadow: 0 0 0 8px rgba(99, 222, 212, .07);
}

.kh-game-board__icon::after {
    position: absolute;
    inset: -9px;
    border: 1px solid rgba(99, 222, 212, .16);
    border-radius: 50%;
    content: "";
}

.kh-game-board__overlay.is-game-over .kh-game-board__icon {
    border-color: rgba(235, 91, 103, .58);
    color: #ff8290;
    background: #371a27;
    box-shadow: 0 0 0 8px rgba(235, 91, 103, .08);
}

.kh-game-board__overlay.is-paused .kh-game-board__icon {
    border-color: rgba(218, 175, 79, .55);
    color: #e7bd63;
    background: #30291c;
    box-shadow: 0 0 0 8px rgba(218, 175, 79, .08);
}

.kh-game-board__message > strong {
    color: #fff;
    font-size: 25px;
    line-height: 1.2;
}

.kh-game-board__message p {
    max-width: 410px;
    margin: 8px 0 18px;
    color: #bbc1d2;
    font-size: 13px;
    line-height: 1.55;
}

.kh-game-launch {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 11px 22px;
    border: 1px solid #8d3ba5;
    border-radius: 6px;
    color: #fff;
    background: #72268c;
    box-shadow: 0 12px 28px rgba(0, 0, 0, .25);
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    transition: background-color .18s ease, transform .18s ease;
}

.kh-game-launch:hover {
    color: #fff;
    background: #5d1d75;
    transform: translateY(-2px);
}

.kh-game-launch:focus-visible,
.kh-game-controls button:focus-visible {
    outline: 3px solid #63ded4;
    outline-offset: 3px;
}

.kh-game-impact {
    position: absolute;
    z-index: 3;
    inset: 0;
    pointer-events: none;
    background: rgba(225, 51, 69, .44);
    opacity: 0;
}

.kh-game-impact.is-active {
    animation: kh-game-impact .52s ease-out;
}

.kh-game-console.is-hit {
    animation: kh-game-shake .32s ease-out;
}

.kh-game-controls {
    display: grid;
    min-height: 76px;
    grid-template-columns: minmax(310px, auto) minmax(180px, 1fr);
    align-items: center;
    gap: 15px;
    padding: 11px 14px;
    border-top: 1px solid #33394c;
    background: #1c2031;
}

.kh-game-controls__buttons {
    display: grid;
    grid-template-columns: repeat(3, minmax(88px, 1fr));
    gap: 7px;
}

.kh-game-controls button {
    display: inline-flex;
    min-width: 0;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 8px 10px;
    border: 1px solid #464c63;
    border-radius: 6px;
    color: #fff;
    background: #292e43;
    font: inherit;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    touch-action: manipulation;
    transition: border-color .16s ease, background-color .16s ease, transform .16s ease;
}

.kh-game-controls button small {
    color: #979eb2;
    font-size: 8px;
    font-weight: 700;
}

.kh-game-controls button:hover:not(:disabled),
.kh-game-controls button.is-active {
    border-color: #63ded4;
    background: #30384c;
}

.kh-game-controls button.is-active {
    color: #6de3da;
    box-shadow: inset 0 -2px 0 #52d2c8;
}

.kh-game-controls button:active:not(:disabled) {
    transform: translateY(1px);
}

.kh-game-controls button:disabled {
    cursor: default;
    opacity: .46;
}

.kh-game-controls__status {
    display: grid;
    min-width: 0;
    grid-template-columns: minmax(0, 1fr) 42px;
    align-items: center;
    gap: 10px;
}

.kh-game-controls__status > p {
    min-width: 0;
    margin: 0;
    color: #aeb5c7;
    font-size: 11px;
    line-height: 1.45;
    text-align: right;
}

.kh-game-controls .kh-game-pause {
    width: 42px;
    min-height: 42px;
    padding: 0;
}

@keyframes kh-game-status {
    0%, 100% { opacity: .65; }
    50% { opacity: 1; box-shadow: 0 0 0 6px rgba(82, 210, 200, .12); }
}

@keyframes kh-game-impact {
    0% { opacity: 0; }
    22% { opacity: 1; }
    100% { opacity: 0; }
}

@keyframes kh-game-shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-4px); }
    55% { transform: translateX(4px); }
    78% { transform: translateX(-2px); }
}

@media (max-width: 1199.98px) {
    .kh-game-layout {
        grid-template-columns: minmax(250px, .56fr) minmax(540px, 1.44fr);
        gap: 30px;
    }

    .kh-game-copy h2 { font-size: 38px; }
}

@media (max-width: 991.98px) {
    .kh-game-section { padding: 62px 0; }
    .kh-game-layout { grid-template-columns: minmax(0, 1fr); gap: 34px; }
    .kh-game-copy { max-width: 760px; }
    .kh-game-console { width: min(100%, 820px); margin: 0 auto; }
}

@media (max-width: 767.98px) {
    .kh-game-section { padding: 50px 0; }
    .kh-game-copy h2 { font-size: 32px; }
    .kh-game-console__header { display: grid; gap: 12px; }
    .kh-game-console__identity { justify-content: center; }
    .kh-game-console__identity > div { align-items: center; }
    .kh-game-stats { width: 100%; }
    .kh-game-stats > div { align-items: center; padding: 0 4px; border-left: 0; border-right: 1px solid #3a4055; }
    .kh-game-stats > div:last-child { border-right: 0; }
    .kh-game-board { aspect-ratio: 4 / 3; }
    .kh-game-controls { grid-template-columns: minmax(0, 1fr); gap: 9px; }
    .kh-game-controls__status > p { text-align: left; }
}

@media (max-width: 575.98px) {
    /* Eski tema bloklarının sabit genişlikleri mobilde oyun akışını kesemez. */
    body.kh-page--hakkimizda {
        max-width: 100%;
        overflow-x: hidden;
    }

    body.kh-page--hakkimizda main,
    body.kh-page--hakkimizda main > section,
    body.kh-page--hakkimizda .footer-con {
        width: 100% !important;
        max-width: 100% !important;
    }

    body.kh-page--hakkimizda .why-choose-us-con {
        height: auto !important;
        min-height: 0 !important;
        overflow: hidden;
    }

    body.kh-page--hakkimizda .why-choose-us-con .container,
    body.kh-page--hakkimizda .footer-con .container,
    body.kh-page--hakkimizda .footer-con .wrapper1545 {
        width: 100% !important;
        max-width: 100% !important;
    }

    body.kh-page--hakkimizda .why-choose-us-con .row {
        display: grid !important;
        width: 100%;
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
        margin: 0;
    }

    body.kh-page--hakkimizda .why-choose-us-con .col-lg-4,
    body.kh-page--hakkimizda .why-choose-us-con .col-md-4 {
        position: static !important;
        width: 100% !important;
        max-width: 100% !important;
        min-height: 0 !important;
        flex: 0 0 auto !important;
        padding: 0 !important;
    }

    body.kh-page--hakkimizda .why-choose-us-con .white-box {
        width: 100% !important;
        min-height: 0 !important;
        margin: 0 !important;
        padding: 20px 14px !important;
    }

    body.kh-page--hakkimizda .footer-con { overflow: hidden; }

    .kh-game-section .container { padding-right: 12px; padding-left: 12px; }
    .kh-game-layout { gap: 25px; }
    .kh-game-copy h2 { font-size: 29px; }
    .kh-game-copy > p { font-size: 14px; line-height: 1.62; }
    .kh-game-rules { margin-top: 20px; }
    .kh-game-rules li { font-size: 12px; }
    .kh-game-console__header { min-height: 112px; padding: 12px 10px 9px; }
    .kh-game-console__identity small { display: none; }
    .kh-game-console__identity strong { font-size: 11px; }
    .kh-game-stats { gap: 0; }
    .kh-game-stats > div { min-width: 0; }
    .kh-game-stats span { font-size: 7px; }
    .kh-game-stats strong { font-size: 12px; }
    .kh-game-telemetry { gap: 8px; padding-inline: 10px; }
    .kh-game-board { min-height: 258px; aspect-ratio: 4 / 3; }
    .kh-game-board__overlay { padding: 13px; }
    .kh-game-board__icon { width: 48px; height: 48px; margin-bottom: 9px; font-size: 19px; }
    .kh-game-board__message > strong { font-size: 20px; }
    .kh-game-board__message p { margin: 6px 0 13px; font-size: 11px; line-height: 1.4; }
    .kh-game-launch { min-height: 43px; padding: 8px 17px; font-size: 12px; }
    .kh-game-controls { padding: 9px; }
    .kh-game-controls__buttons { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .kh-game-controls button { min-height: 48px; flex-direction: column; gap: 2px; padding: 6px 3px; font-size: 11px; }
    .kh-game-controls button small { display: none; }
    .kh-game-controls__status { grid-template-columns: minmax(0, 1fr) 44px; }
    .kh-game-controls__status > p { font-size: 10px; }
}

@media (prefers-reduced-motion: reduce) {
    .kh-game-console__status,
    .kh-game-impact.is-active,
    .kh-game-console.is-hit {
        animation: none;
    }

    .kh-game-launch,
    .kh-game-board__overlay,
    .kh-game-telemetry i,
    .kh-game-controls button {
        transition: none;
    }
}
