/* Ceepri — "Yapım aşamasında" açılışı (yapim.php): gece mavisi zemin, parçacık kirpi, kirpi koşu oyunu */
:root {
    --ya-zemin: #050b16;
    --ya-zemin-2: #081a30;
    --ya-turkuaz: #2fc4cc;
    --ya-turkuaz-acik: #8ff0f3;
    --ya-yazi: #eaf6fb;
    --ya-soluk: rgba(234, 246, 251, 0.62);
    --ya-cizgi: rgba(143, 240, 243, 0.14);
}

* { box-sizing: border-box; }

html, body { margin: 0; min-height: 100%; }

body.ya {
    min-height: 100vh;
    min-height: 100dvh;
    background:
        radial-gradient(1200px 700px at 50% -10%, rgba(47, 196, 204, 0.16), transparent 60%),
        radial-gradient(900px 600px at 100% 100%, rgba(26, 86, 156, 0.22), transparent 60%),
        linear-gradient(180deg, var(--ya-zemin-2), var(--ya-zemin) 55%, #03070f);
    color: var(--ya-yazi);
    font-family: Inter, "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Arka plan: titreşen kod dokusu + yavaş süzülen iki ışık */
.ya-doku { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
.ya-isik {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    z-index: 0;
    opacity: 0.55;
}
.ya-isik--1 { width: 420px; height: 420px; left: -120px; top: 18%; background: rgba(47, 196, 204, 0.22); animation: ya-suzul 18s ease-in-out infinite alternate; }
.ya-isik--2 { width: 520px; height: 520px; right: -160px; bottom: -120px; background: rgba(46, 104, 200, 0.24); animation: ya-suzul 22s ease-in-out infinite alternate-reverse; }
@keyframes ya-suzul { to { transform: translate(60px, -40px) scale(1.08); } }

.ya-kap {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 920px;
    margin: 0 auto;
    padding: clamp(12px, 3vh, 36px) 16px 24px;
}

/* Parçacık kirpi */
.ya-sahne {
    position: relative;
    width: min(440px, 78vw, 46vh);
    aspect-ratio: 1;
}
.ya-kirpi { position: absolute; inset: -8%; width: 116%; height: 116%; cursor: crosshair; touch-action: manipulation; }
.ya-kirpi-yedek { position: absolute; inset: 6%; width: 88%; height: auto; opacity: 0; transition: opacity 0.6s; pointer-events: none; }
.ya-sahne.is-yedek .ya-kirpi-yedek { opacity: 1; }
.ya-sahne::after {
    content: "";
    position: absolute;
    left: 10%;
    right: 10%;
    bottom: -4%;
    height: 14%;
    border-radius: 50%;
    background: radial-gradient(closest-side, rgba(47, 196, 204, 0.28), transparent);
    filter: blur(6px);
    pointer-events: none;
}

/* Başlık: turkuaz parıltı süzülür */
.ya-baslik {
    margin: clamp(10px, 2.4vh, 22px) 0 6px;
    font-size: clamp(30px, 6vw, 58px);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.05;
    text-align: center;
}
.ya-baslik span {
    background: linear-gradient(100deg, #eaf6fb 0%, #eaf6fb 38%, var(--ya-turkuaz-acik) 48%, #ffffff 52%, #eaf6fb 62%, #eaf6fb 100%);
    background-size: 240% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: ya-parilti 5.5s ease-in-out infinite;
}
@keyframes ya-parilti { 0% { background-position: 120% 0; } 60%, 100% { background-position: -20% 0; } }

.ya-alt {
    margin: 0 0 clamp(14px, 3vh, 28px);
    color: var(--ya-soluk);
    font-size: clamp(14px, 1.8vw, 17px);
    text-align: center;
}

/* Oyun */
.ya-oyun { width: 100%; max-width: 820px; }
.ya-oyun__tuval {
    display: block;
    width: 100%;
    height: clamp(170px, 26vh, 220px);
    border-radius: 22px;
    background:
        linear-gradient(180deg, rgba(14, 42, 74, 0.55), rgba(5, 14, 28, 0.75));
    border: 1px solid var(--ya-cizgi);
    box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.04);
    outline: none;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}
.ya-oyun__tuval:focus-visible { border-color: rgba(143, 240, 243, 0.5); }
.ya-oyun__ipucu {
    margin: 10px 0 0;
    text-align: center;
    color: rgba(234, 246, 251, 0.45);
    font-size: 12.5px;
}
.ya-oyun__ipucu i { margin: 0 6px; opacity: 0.6; font-style: normal; }
.ya-dokun { display: none; }
@media (hover: none) and (pointer: coarse) {
    .ya-klavye { display: none; }
    .ya-dokun { display: inline; }
}
.ya-oyun__ipucu kbd {
    display: inline-block;
    padding: 1px 7px;
    border-radius: 6px;
    border: 1px solid rgba(143, 240, 243, 0.22);
    background: rgba(143, 240, 243, 0.06);
    color: rgba(234, 246, 251, 0.75);
    font: 600 11.5px/1.6 ui-monospace, Menlo, Consolas, monospace;
}

.ya-alt-bilgi {
    position: relative;
    z-index: 1;
    padding: 8px 16px calc(18px + env(safe-area-inset-bottom, 0px));
    text-align: center;
    color: rgba(234, 246, 251, 0.35);
    font-size: 12px;
}
.ya-alt-bilgi a { color: rgba(143, 240, 243, 0.7); text-decoration: none; }
.ya-alt-bilgi a:hover { text-decoration: underline; }

@media (prefers-reduced-motion: reduce) {
    .ya-isik, .ya-baslik span { animation: none; }
}
