/* ==========================================
   Login / landing page (index.php)
   ========================================== */
.landing-page {
    background: #2a1c0e;
    color: #3e2b1a;
    min-height: 100vh;
}

.landing-page a { text-decoration: none; }

/* Hero: village picture with the intro text and the login form */
.lp-hero {
    background-size: cover;
    /* the village picture has a title banner at the top: keep it out of view */
    background-position: center 65%;
    padding: 48px 20px 64px;
}

.lp-hero-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    gap: 40px;
    align-items: center;
    justify-content: space-between;
}

.lp-intro {
    flex: 1 1 auto;
    min-width: 0;
    color: #f5e6c8;
}

.lp-logo {
    width: 220px;
    max-width: 60%;
    height: auto;
    display: block;
    margin-bottom: 12px;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.6));
}

.lp-intro h1 {
    font-size: 34px;
    line-height: 1.2;
    color: #ffd27a;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.7);
    margin: 0 0 12px;
}

.lp-lead {
    font-size: 16px;
    line-height: 1.5;
    max-width: 560px;
    margin: 0 0 16px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
}

.lp-bullets {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 16px;
    font-size: 14px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
}

.lp-hero-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    max-width: 560px;
}

.lp-hero-stats div {
    background: rgba(20, 12, 4, 0.6);
    border: 1px solid rgba(255, 210, 122, 0.4);
    border-radius: 8px;
    padding: 10px 6px;
    text-align: center;
}

.lp-hero-stats strong {
    display: block;
    font-size: 22px;
    color: #ffd27a;
}

.lp-hero-stats span {
    font-size: 11px;
    color: #e8d5ae;
}

.landing-page .lp-login {
    flex: 0 0 360px;
    width: 360px;
    max-width: 100%;
    padding: 28px;
}

.lp-login .login-header { margin-bottom: 18px; }

.lp-login .login-header h2 {
    color: #5c3d1a;
    font-size: 24px;
    margin: 0 0 4px;
}

.lp-ref-banner {
    margin-top: 14px;
    background: #fff3cd;
    border: 2px solid #d4a843;
    border-radius: 6px;
    padding: 8px 10px;
    color: #5c3d1a;
    font-size: 13px;
    text-align: center;
    line-height: 1.4;
}

.lp-register {
    margin-top: 18px;
    text-align: center;
    color: #8b6914;
    font-size: 13px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.lp-btn-register {
    display: inline-block;
    background: linear-gradient(180deg, #c0392b 0%, #8e2418 100%);
    border: 2px solid #5e150c;
    color: #fff !important;
    font-weight: 700;
    font-size: 15px;
    padding: 10px 18px;
    border-radius: 6px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
}

.lp-btn-register:hover { filter: brightness(1.1); }

.lp-btn-ghost {
    display: inline-block;
    border: 2px solid #ffd27a;
    color: #ffd27a !important;
    font-weight: 700;
    font-size: 15px;
    padding: 8px 18px;
    border-radius: 6px;
}

/* Content sections */
.lp-main {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px 40px;
}

.lp-section {
    background: #fdf5e6;
    border: 3px solid #8b6914;
    border-radius: 10px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.lp-title {
    font-size: 24px;
    color: #5c3d1a;
    margin: 0 0 6px;
}

.lp-sub {
    color: #8b6914;
    font-size: 14px;
    margin: 0 0 16px;
}

/* World cards */
.lp-worlds {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
}

.lp-world {
    background: #fff8ea;
    border: 2px solid #c9a96e;
    border-radius: 8px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.lp-world.is-open { border-color: #2e7d32; }
.lp-world.is-closed { opacity: 0.85; }

.lp-world-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.lp-world-head h3 {
    margin: 0;
    font-size: 20px;
    color: #3e2b1a;
}

.lp-badge {
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 10px;
    white-space: nowrap;
}

.lp-badge-open { background: #2e7d32; color: #fff; }
.lp-badge-closed { background: #8d7b68; color: #fff; }

.lp-world-age {
    font-size: 13px;
    color: #6b4423;
}

.lp-world-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.lp-world-chips span {
    background: #f1e2c2;
    border: 1px solid #d8bf8a;
    border-radius: 12px;
    padding: 2px 8px;
    font-size: 12px;
    color: #5c3d1a;
}

.lp-world-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    margin: 0;
}

.lp-world-stats div,
.lp-settings dl div {
    background: #f6ead0;
    border-radius: 6px;
    padding: 6px 8px;
}

.lp-world-stats .lp-wide { grid-column: 1 / -1; }

.lp-world-stats dt,
.lp-settings dt {
    font-size: 11px;
    color: #8b6914;
}

.lp-world-stats dd,
.lp-settings dd {
    margin: 2px 0 0;
    font-size: 16px;
    font-weight: 700;
    color: #3e2b1a;
}

.lp-world-leaders {
    font-size: 13px;
    color: #5c3d1a;
    display: flex;
    flex-direction: column;
    gap: 3px;
    overflow-wrap: anywhere;
}

.lp-world-cta {
    margin-top: auto;
    text-align: center;
    background: linear-gradient(180deg, #5a8a2e 0%, #3d6b1e 100%);
    color: #fff !important;
    font-weight: 700;
    padding: 9px;
    border-radius: 6px;
}

.lp-world-note {
    margin-top: auto;
    font-size: 12px;
    color: #6b4423;
    text-align: center;
}

.lp-settings {
    margin-top: 20px;
}

.lp-settings h3 {
    margin: 0 0 10px;
    color: #5c3d1a;
    font-size: 18px;
}

.lp-settings dl {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 8px;
    margin: 0;
}

.lp-settings dd { font-size: 14px; }

/* How to play */
.lp-steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.lp-step {
    position: relative;
    background: #fff8ea;
    border: 2px solid #c9a96e;
    border-radius: 8px;
    padding: 18px 14px 14px;
}

.lp-step-no {
    position: absolute;
    top: -12px;
    left: 12px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #8b6914;
    color: #fff;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lp-step h3 { margin: 0 0 6px; font-size: 16px; color: #3e2b1a; }
.lp-step p { margin: 0; font-size: 13px; line-height: 1.45; color: #5c3d1a; }

/* Troops */
.lp-troops {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
}

.lp-troop {
    background: #fff8ea;
    border: 2px solid #c9a96e;
    border-radius: 8px;
    padding: 10px 6px;
    text-align: center;
}

.lp-troop img {
    width: 96px;
    height: 96px;
    max-width: 100%;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid #8b6914;
}

.lp-troop h3 { margin: 6px 0 4px; font-size: 14px; color: #3e2b1a; }

.lp-troop-stats {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 12px;
    color: #5c3d1a;
}

/* Buildings */
.lp-buildings {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 10px;
}

.lp-building {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    background: #fff8ea;
    border: 1px solid #d8bf8a;
    border-radius: 8px;
    padding: 10px;
}

.lp-building-icon { font-size: 26px; line-height: 1; }
.lp-building h3 { margin: 0 0 3px; font-size: 14px; color: #3e2b1a; }
.lp-building p { margin: 0; font-size: 12px; line-height: 1.4; color: #6b4423; }

/* Final call to action */
.lp-cta {
    display: flex;
    align-items: center;
    gap: 24px;
    background: linear-gradient(135deg, #3e2b1a 0%, #6b4423 100%);
    border: 3px solid #8b6914;
    border-radius: 10px;
    padding: 20px;
    color: #f5e6c8;
    margin-bottom: 24px;
}

.lp-cta-img {
    width: 160px;
    height: auto;
    border-radius: 8px;
    border: 2px solid #ffd27a;
    flex-shrink: 0;
}

.lp-cta h2 { color: #ffd27a; margin: 0 0 8px; font-size: 24px; }
.lp-cta p { margin: 0 0 14px; font-size: 14px; }

.lp-cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.lp-footer {
    text-align: center;
    color: #b89b6a;
    font-size: 12px;
    padding: 0 20px 30px;
}

/* Tablets */
@media (max-width: 900px) {
    .lp-hero { background-size: auto 125%; background-position: center bottom; }
    .lp-hero-inner { flex-direction: column; gap: 24px; }
    .lp-intro { text-align: center; }
    .lp-logo { margin: 0 auto 10px; }
    .lp-lead, .lp-hero-stats { margin-left: auto; margin-right: auto; }
    .lp-bullets { max-width: 560px; margin-left: auto; margin-right: auto; text-align: left; }
    .lp-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .lp-troops { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
}

/* Phones */
@media (max-width: 600px) {
    .lp-hero { padding: 20px 12px 32px; }
    .lp-logo { width: 150px; }
    .lp-intro h1 { font-size: 22px; }
    .lp-lead { font-size: 14px; }
    .lp-bullets { display: none; }
    .lp-hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .landing-page .lp-login { flex-basis: auto; width: 100%; padding: 20px 16px; }
    .lp-main { padding: 0 10px 24px; }
    .lp-section { padding: 16px 12px; }
    .lp-title { font-size: 20px; }
    .lp-worlds { grid-template-columns: 1fr; }
    .lp-settings dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .lp-settings dl div:nth-last-child(-n+2) { grid-column: 1 / -1; }
    .lp-steps { grid-template-columns: 1fr; gap: 18px; }
    .lp-troops { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .lp-buildings { grid-template-columns: 1fr; }
    .lp-cta { flex-direction: column; text-align: center; }
    .lp-cta-img { width: 120px; }
    .lp-cta-buttons { justify-content: center; }
}

.lp-btn-install {
    display: inline-block;
    border: 2px solid #d4af37;
    background: #fff8e6;
    color: #8a6200 !important;
    font-weight: 700;
    font-size: 15px;
    padding: 8px 18px;
    border-radius: 6px;
    text-decoration: none;
}

/* Kayıt kapalıyken (Admin → Kayıt Sistemi) */
.lp-reg-closed {
    margin-top: 14px;
    background: #fff3cd;
    border: 2px solid #c0392b;
    border-radius: 6px;
    padding: 10px 12px;
    color: #6b2a10;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    line-height: 1.45;
}
