/* Zaman Travian — ana sayfa (Legends tarzı) */
.ztv-portal-home {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    color: #fff;
    -webkit-user-select: none;
    user-select: none;
}
.ztv-portal-home img,
.ztv-portal-home .ztv-ph-slide__art {
    -webkit-user-drag: none;
    user-drag: none;
    -webkit-touch-callout: none;
    pointer-events: auto;
}
.ztv-portal-home a,
.ztv-portal-home button,
.ztv-portal-home input,
.ztv-portal-home select {
    -webkit-user-select: auto;
    user-select: auto;
}

body .background-layer {
    filter: brightness(0.58) saturate(1.12) contrast(1.05);
}

/* Üst bar */
.ztv-ph-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 24px;
    background: linear-gradient(180deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.2) 100%);
    position: relative;
    z-index: 30;
}
.ztv-ph-header__left,
.ztv-ph-header__right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}
.ztv-ph-header__right {
    justify-content: flex-end;
}
.ztv-ph-header__center {
    flex: 0 0 auto;
    text-align: center;
}

.ztv-ph-menu {
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(255,255,255,0.08);
    border-radius: 6px;
    cursor: pointer;
    position: relative;
}
.ztv-ph-menu span {
    display: block;
    width: 18px;
    height: 2px;
    background: #ddd;
    margin: 4px auto;
}

.ztv-ph-lang {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border: 1px solid rgba(255,255,255,0.35);
    border-radius: 6px;
    background: rgba(0,0,0,0.4);
    color: #fff;
    font-size: 13px;
    text-decoration: none;
}
.ztv-ph-lang img {
    width: 22px;
    height: 14px;
    object-fit: cover;
    border-radius: 2px;
}
.ztv-ph-lang-wrap {
    position: relative;
}
.ztv-ph-lang-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 6px;
    min-width: 140px;
    background: rgba(20,20,20,0.95);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 6px;
    padding: 6px 0;
    z-index: 40;
}
.ztv-ph-lang-menu.is-open {
    display: block;
}
.ztv-ph-lang-menu a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    color: #eee;
    text-decoration: none;
    font-size: 13px;
}
.ztv-ph-lang-menu a:hover {
    background: rgba(207,174,99,0.15);
    color: #cfae63;
}
.ztv-ph-panel-sub {
    margin: 14px 0 8px;
    padding-top: 10px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #cfae63;
}
.ztv-ph-header__right.is-open {
    display: flex;
    flex-wrap: wrap;
}

.ztv-ph-logo {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #fff;
}
.ztv-ph-logo__brand {
    font-size: 28px;
    font-weight: 900;
    letter-spacing: 3px;
    line-height: 1;
    text-shadow: 0 2px 8px rgba(0,0,0,0.8);
    background: linear-gradient(180deg, #f5e6c8 0%, #cfae63 45%, #8a7340 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.ztv-ph-logo__sub {
    font-size: 11px;
    letter-spacing: 6px;
    color: #cfae63;
    margin-top: 4px;
    text-transform: uppercase;
}

.ztv-ph-link {
    color: #ddd;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    padding: 8px 12px;
    border-radius: 4px;
    transition: 0.2s;
}
.ztv-ph-link:hover {
    color: #cfae63;
    background: rgba(255,255,255,0.06);
}
.ztv-ph-link--gold {
    color: #cfae63;
    border: 1px solid rgba(207,174,99,0.5);
}

/* Kabile slider */
.ztv-ph-hero {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    min-height: 52vh;
    padding: 20px clamp(12px, 4vw, 70px) 72px;
    box-sizing: border-box;
}
.ztv-ph-slider {
    position: relative;
    width: 100%;
    max-width: 1100px;
    min-height: 380px;
}
.ztv-ph-slide {
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    animation: ztvPhFade 0.45s ease;
}
.ztv-ph-slide.is-active {
    display: flex;
}
@keyframes ztvPhFade {
    from { opacity: 0; transform: translateX(12px); }
    to { opacity: 1; transform: translateX(0); }
}
.ztv-ph-slide__text {
    flex: 1;
    max-width: 520px;
    text-shadow: 0 2px 12px rgba(0,0,0,0.9);
}
.ztv-ph-slide__text h2 {
    margin: 0 0 8px;
    font-size: 42px;
    font-weight: 900;
    letter-spacing: 2px;
    color: #fff;
    text-shadow: 0 2px 16px rgba(0,0,0,0.9);
}
.ztv-ph-slide__text .sub {
    font-size: 18px;
    color: #cfae63;
    margin-bottom: 14px;
    font-weight: 700;
}
.ztv-ph-slide__text p {
    margin: 0;
    font-size: 15px;
    line-height: 1.55;
    color: #e0e0e0;
}
.ztv-ph-slide__blurb {
    margin-bottom: 10px;
}
.ztv-ph-slide__motto {
    margin: 0;
    font-size: 14px;
    line-height: 1.45;
    font-style: italic;
    color: #cfae63;
    font-weight: 600;
}
.ztv-ph-slide__art {
    flex: 0 0 min(52vw, 620px);
    width: min(52vw, 620px);
    min-height: 280px;
    height: min(58vh, 480px);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: clamp(8px, 2vw, 28px);
    position: relative;
    background: none;
}
.ztv-ph-slide__art .ztv-ph-unit {
    flex: 1 1 0;
    max-width: min(46%, 280px);
    width: auto !important;
    height: auto !important;
    max-height: min(52vh, 420px);
    object-fit: contain;
    object-position: bottom center;
    background: transparent none !important;
    background-image: none !important;
    border: none;
    border-radius: 0;
    filter: drop-shadow(0 12px 28px rgba(0,0,0,0.75));
}
.ztv-ph-slide__art .ztv-ph-unit--left {
    transform: translateX(4%);
}
.ztv-ph-slide__art .ztv-ph-unit--right {
    transform: translateX(-4%);
}
.ztv-ph-slide__art--triple {
    width: min(58vw, 720px);
    flex: 0 0 min(58vw, 720px);
    gap: clamp(4px, 1.2vw, 16px);
}
.ztv-ph-slide__art--triple .ztv-ph-unit-wrap {
    max-width: min(31%, 200px);
}
.ztv-ph-slide__art--triple .ztv-ph-unit {
    max-width: 100%;
    max-height: min(46vh, 360px);
}
.ztv-ph-slide__art--triple .ztv-ph-unit--left {
    transform: translateX(2%);
}
.ztv-ph-slide__art--triple .ztv-ph-unit--center {
    transform: none;
}
.ztv-ph-slide__art--triple .ztv-ph-unit--right {
    transform: translateX(-2%);
}
.ztv-ph-slide__art--triple .ztv-ph-unit-cap {
    font-size: 10px;
}
.ztv-ph-unit-wrap {
    flex: 1 1 0;
    max-width: min(46%, 280px);
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.ztv-ph-unit-wrap .ztv-ph-unit {
    max-width: 100%;
}
.ztv-ph-unit-cap {
    margin: 6px 0 0;
    font-size: 11px;
    font-weight: 700;
    text-align: center;
    color: #ddd;
    text-shadow: 0 1px 6px rgba(0,0,0,0.9);
    line-height: 1.3;
}
.ztv-ph-unit-cap__role {
    color: #cfae63;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ztv-ph-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.5);
    background: rgba(0,0,0,0.45);
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    z-index: 20;
    transition: 0.2s;
}
.ztv-ph-arrow:hover {
    background: rgba(207,174,99,0.35);
    border-color: #cfae63;
}
.ztv-ph-arrow--prev { left: 12px; }
.ztv-ph-arrow--next { right: 12px; }

.ztv-ph-dots {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 16px;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}
.ztv-ph-dots button {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 1px solid #cfae63;
    background: transparent;
    cursor: pointer;
    padding: 0;
}
.ztv-ph-dots button.is-active {
    background: #cfae63;
}

/* Alt panel: Haberler | Giriş (orta) | Yaklaşan */
.ztv-ph-dock {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 380px) minmax(0, 1fr);
    gap: clamp(10px, 2vw, 16px);
    align-items: end;
    padding: 0 clamp(12px, 3vw, 20px) max(16px, env(safe-area-inset-bottom, 16px));
    position: relative;
    z-index: 30;
    max-width: 1400px;
    margin: clamp(-56px, -6vh, -32px) auto 0;
    width: 100%;
    box-sizing: border-box;
}
.ztv-ph-cta {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: clamp(8px, 1.5vw, 12px);
    width: 100%;
    max-width: 380px;
    justify-self: center;
    padding: 0 8px;
    box-sizing: border-box;
}
.ztv-ph-news {
    grid-column: 1;
    grid-row: 1;
}
.ztv-ph-upcoming {
    grid-column: 3;
    grid-row: 1;
}
.ztv-ph-panel {
    background: rgba(18, 16, 14, 0.94);
    border: 1px solid rgba(207,174,99,0.55);
    border-radius: 8px;
    padding: 14px 16px;
    min-height: 120px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}
.ztv-ph-panel h3 {
    margin: 0 0 10px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #cfae63;
    font-weight: 700;
}
.ztv-ph-news__item strong {
    display: block;
    font-size: 14px;
    margin-bottom: 4px;
}
.ztv-ph-news__item p {
    margin: 0 0 6px;
    font-size: 12px;
    color: #bbb;
    line-height: 1.4;
}
.ztv-ph-news__time {
    font-size: 11px;
    color: #888;
}
.ztv-ph-news__more {
    display: inline-block;
    margin-top: 8px;
    font-size: 12px;
    color: #7cb342;
    font-weight: bold;
    text-decoration: none;
}
.ztv-ph-news__more:hover {
    text-decoration: underline;
}

.ztv-ph-login {
    display: block;
    width: min(100%, 340px);
    margin: 0;
    padding: clamp(14px, 3.8vw, 18px) clamp(28px, 10vw, 56px);
    font-size: clamp(17px, 4.8vw, 22px);
    font-weight: 900;
    letter-spacing: clamp(1px, 0.4vw, 2px);
    text-transform: uppercase;
    color: #fff;
    text-decoration: none;
    border: none;
    cursor: pointer;
    border-radius: 6px;
    background: linear-gradient(180deg, #8bc34a 0%, #558b2f 50%, #33691e 100%);
    box-shadow: 0 6px 0 #2d5016, 0 12px 28px rgba(0,0,0,0.45);
    transition: transform 0.1s;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    min-height: 48px;
    box-sizing: border-box;
}
.ztv-ph-login:hover {
    filter: brightness(1.08);
}
.ztv-ph-login:active {
    transform: translateY(4px);
    box-shadow: 0 2px 0 #2d5016;
}
.ztv-ph-subactions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
}
.ztv-ph-subbtn {
    padding: clamp(10px, 2.5vw, 12px) clamp(14px, 4vw, 16px);
    font-size: clamp(10px, 2.8vw, 11px);
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    box-sizing: border-box;
    font-weight: bold;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 20px;
    border: 1px solid #cfae63;
    color: #cfae63;
    background: rgba(0,0,0,0.35);
}
.ztv-ph-subbtn:hover {
    background: rgba(207,174,99,0.2);
}

.ztv-ph-upcoming-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.ztv-ph-upcoming-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    font-size: 12px;
}
.ztv-ph-upcoming-list li:last-child {
    border-bottom: none;
}
.ztv-ph-upcoming-list .speed {
    background: #333;
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: bold;
    color: #cfae63;
    min-width: 36px;
    text-align: center;
}
.ztv-ph-upcoming-list .meta {
    flex: 1;
    min-width: 0;
}
.ztv-ph-upcoming-list .meta strong {
    display: block;
    font-size: 13px;
}
.ztv-ph-upcoming-list .meta .perks {
    display: block;
    margin-top: 2px;
    color: #d7c48a;
    font-size: 11px;
    line-height: 1.35;
}
.ztv-ph-upcoming-empty {
    font-size: 12px;
    color: #999;
}

.ztv-ph-champ-row {
    font-size: 12px;
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.ztv-ph-champ-row:last-child {
    border: none;
    margin: 0;
    padding: 0;
}
.ztv-ph-champ-row strong {
    color: #ffd700;
}

.ztv-ph-copyright {
    text-align: center;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.45);
    padding: 6px 16px 12px;
    letter-spacing: 0.3px;
}
.ztv-ph-stats {
    text-align: center;
    font-size: 11px;
    color: #999;
    padding: 8px 0 12px;
}
.ztv-ph-stats span {
    margin: 0 12px;
    color: #cfae63;
    font-weight: bold;
}

.ztv-portal-home--rtl {
    direction: rtl;
}
.ztv-portal-home--rtl .ztv-ph-slide.is-active {
    flex-direction: row-reverse;
}
.ztv-portal-home--rtl .ztv-ph-lang-menu {
    left: auto;
    right: 0;
}
.ztv-portal-home--rtl .ztv-ph-unit--left {
    transform: translateX(-4%);
}
.ztv-portal-home--rtl .ztv-ph-unit--right {
    transform: translateX(4%);
}
.ztv-portal-home--rtl .ztv-ph-slide__text {
    text-align: right;
}
@media (max-width: 900px) {
    .ztv-portal-home--rtl .ztv-ph-slide {
        text-align: center;
    }
    .ztv-portal-home--rtl .ztv-ph-slide__text {
        text-align: center;
    }
}

/* Mobil — iPhone / Android */
@media (max-width: 900px) {
    .ztv-ph-dock {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-top: 0;
    }
    .ztv-ph-hero {
        min-height: auto;
        padding: 8px clamp(8px, 3vw, 50px) 16px;
    }
    .ztv-ph-slider {
        min-height: 0;
    }
    .ztv-ph-cta,
    .ztv-ph-news,
    .ztv-ph-upcoming {
        grid-column: 1;
        grid-row: auto;
    }
    .ztv-ph-cta {
        order: -1;
        max-width: none;
        padding: 4px 12px 8px;
        justify-self: stretch;
    }
    .ztv-ph-login {
        width: 100%;
        max-width: 360px;
    }
    .ztv-ph-guide-btn {
        width: 100%;
        max-width: 360px;
        min-height: 44px;
        box-sizing: border-box;
    }
    .ztv-ph-slide {
        flex-direction: column;
        text-align: center;
    }
    .ztv-ph-slide__text h2 {
        font-size: 28px;
    }
    .ztv-ph-slide__art {
        flex: none;
        width: min(100%, 340px);
        min-height: 200px;
        height: auto;
        gap: 12px;
    }
    .ztv-ph-slide__art .ztv-ph-unit {
        max-width: 48%;
        max-height: 220px;
    }
    .ztv-ph-slide__art .ztv-ph-unit--left,
    .ztv-ph-slide__art .ztv-ph-unit--right {
        transform: none;
    }
    .ztv-ph-header__center {
        order: -1;
        width: 100%;
        margin-bottom: 8px;
    }
    .ztv-ph-header {
        flex-wrap: wrap;
    }
}

/* Yeni oyuncu rehberi — tetikleyici */
.ztv-ph-guide-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    width: min(100%, 340px);
    padding: 10px 20px;
    border: 1px solid rgba(207, 174, 99, 0.65);
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(207, 174, 99, 0.22) 0%, rgba(0, 0, 0, 0.55) 100%);
    color: #f5e6c8;
    cursor: pointer;
    transition: filter 0.15s, border-color 0.15s;
    max-width: 100%;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    min-height: 44px;
    box-sizing: border-box;
}
.ztv-ph-guide-btn:hover {
    filter: brightness(1.12);
    border-color: #cfae63;
}
.ztv-ph-guide-btn__main {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.ztv-ph-guide-btn__sub {
    font-size: 11px;
    opacity: 0.85;
}

body.ztv-guide-open {
    overflow: hidden;
}

/* Rehber overlay */
.ztv-beginner-guide {
    position: fixed;
    inset: 0;
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.ztv-beginner-guide[hidden] {
    display: none !important;
}
.ztv-beginner-guide__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.82);
    backdrop-filter: blur(6px);
}
.ztv-beginner-guide__panel {
    position: relative;
    z-index: 2;
    width: min(520px, 100%);
    padding: 28px 26px 22px;
    border-radius: 12px;
    border: 2px solid #cfae63;
    background: linear-gradient(160deg, #1a1a1a 0%, #2a2520 55%, #1a1a1a 100%);
    box-shadow: 0 0 40px rgba(207, 174, 99, 0.25);
    color: #eee;
    text-align: center;
}
.ztv-beginner-guide__panel--rtl {
    text-align: right;
}
.ztv-beginner-guide__x {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    color: #cfae63;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}
.ztv-beginner-guide__panel--rtl .ztv-beginner-guide__x {
    right: auto;
    left: 12px;
}
.ztv-beginner-guide__kicker {
    margin: 0 0 6px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #cfae63;
}
.ztv-beginner-guide__title {
    margin: 0 0 12px;
    font-size: 22px;
    color: #fff;
    line-height: 1.25;
}
.ztv-beginner-guide__icon {
    font-size: 48px;
    line-height: 1;
    margin-bottom: 10px;
}
.ztv-beginner-guide__text {
    margin: 0 0 18px;
    font-size: 15px;
    line-height: 1.55;
    color: #ccc;
    min-height: 4.5em;
}
.ztv-beginner-guide__progress {
    margin-bottom: 10px;
}
.ztv-beginner-guide__bar {
    height: 4px;
    border-radius: 2px;
    background: linear-gradient(90deg, #8bc34a, #cfae63);
    width: 20%;
    transition: width 0.25s ease;
    margin-bottom: 6px;
}
.ztv-beginner-guide__step-label {
    font-size: 12px;
    color: #999;
}
.ztv-beginner-guide__dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 16px;
}
.ztv-beginner-guide__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 1px solid #666;
    background: transparent;
    padding: 0;
    cursor: pointer;
}
.ztv-beginner-guide__dot.is-active {
    background: #cfae63;
    border-color: #cfae63;
}
.ztv-beginner-guide__actions {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 8px;
    align-items: center;
}
.ztv-beginner-guide__prev,
.ztv-beginner-guide__next,
.ztv-beginner-guide__skip {
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
    font-size: 13px;
}
.ztv-beginner-guide__prev {
    justify-self: start;
    padding: 10px 16px;
    border: 1px solid #555;
    background: rgba(255, 255, 255, 0.06);
    color: #ddd;
}
.ztv-beginner-guide__skip {
    justify-self: center;
    padding: 8px 12px;
    border: none;
    background: transparent;
    color: #888;
    text-decoration: underline;
}
.ztv-beginner-guide__next {
    justify-self: end;
    padding: 10px 20px;
    border: none;
    background: linear-gradient(180deg, #8bc34a 0%, #558b2f 100%);
    color: #fff;
    box-shadow: 0 4px 0 #2d5016;
}
.ztv-beginner-guide__next.is-finish {
    background: linear-gradient(180deg, #cfae63 0%, #9a7b3c 100%);
    box-shadow: 0 4px 0 #6b5528;
}
