/* ============================================================
   PROJECT: LandsOfRuin.com (site45-de) – Beauty by Mil
   CSS ARCHITECTURE: SMACSS (Layout, Module, State, Theme)
   PALETTE: Ruin/Beauty (velvet-black, rose-dust, aged-gold, ivory-cream, ruin-stone, bloom-pink)
   EFFECT: Gradient Mesh
   TYPOGRAPHY: Playfair Display + Lato
   BUTTON STYLE: Outline Morph
   ============================================================ */

:root {
    --velvet-black: #1c1917;
    --rose-dust: #e8b4b8;
    --aged-gold: #b8860b;
    --ivory-cream: #faf8f5;
    --ruin-stone: #57534e;
    --bloom-pink: #d4a5a5;
    --ruin-text: #292524;
    --ruin-muted: #78716c;
    --ruin-border: rgba(184, 134, 11, 0.25);
    --ruin-shadow: rgba(28, 25, 23, 0.08);
    --header-height: 72px;
    font-size: clamp(15px, 1.05vw, 17px);
}

*, *::before, *::after { box-sizing: border-box; max-width: 100%; }

html, body {
    margin: 0; padding: 0; width: 100% !important; overflow-x: hidden !important;
    background: var(--ivory-cream); color: var(--ruin-text); font-family: 'Lato', sans-serif;
    scroll-behavior: smooth;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }

/* Layout */
.l-wrap { width: min(1140px, 92vw); margin: 0 auto; padding: 0 1rem; }

/* Module: Header */
.l-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: var(--velvet-black);
    border-bottom: 2px solid var(--aged-gold);
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 1.5rem; height: var(--header-height); gap: 1.5rem;
}

.l-header__brand { display: flex; align-items: center; gap: 0.75rem; }

.l-header__home {
    display: flex; align-items: center; gap: 0.6rem;
    font-family: 'Playfair Display', serif; font-size: 1.35rem; font-weight: 700; color: var(--ivory-cream);
}

.m-badge {
    display: inline-flex; padding: 0.25rem 0.6rem; border-radius: 6px;
    background: var(--rose-dust); color: var(--velvet-black);
    font-size: 0.7rem; font-weight: 700; letter-spacing: 0.04em;
}

.m-burger {
    display: none; width: 44px; height: 44px; border: 2px solid var(--bloom-pink); border-radius: 8px;
    background: var(--ruin-stone); color: var(--ivory-cream); cursor: pointer; position: relative;
}

.m-burger span {
    position: absolute; left: 10px; right: 10px; height: 2px; background: var(--ivory-cream);
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.m-burger span:nth-child(1) { top: 14px; }
.m-burger span:nth-child(2) { top: 21px; }
.m-burger span:nth-child(3) { top: 28px; }

.m-burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.m-burger.is-open span:nth-child(2) { opacity: 0; }
.m-burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.l-nav { display: flex; align-items: center; }
.l-nav__list {
    display: flex; align-items: center; gap: 1.2rem; list-style: none; margin: 0; padding: 0;
}

.l-nav__link { padding: 0.25rem 0; font-weight: 600; color: var(--bloom-pink); transition: color 0.2s ease; }
.l-nav__link:hover { color: var(--aged-gold); }

main { padding-top: var(--header-height); }

/* Hero – Gradient Mesh */
.m-hero {
    position: relative; overflow: hidden;
    padding: clamp(100px, 18vw, 150px) 0 clamp(60px, 12vw, 90px);
    background:
        radial-gradient(ellipse 80% 60% at 20% 30%, rgba(232, 180, 184, 0.25) 0%, transparent 50%),
        radial-gradient(ellipse 60% 80% at 80% 70%, rgba(184, 134, 11, 0.2) 0%, transparent 50%),
        linear-gradient(180deg, var(--velvet-black) 0%, #2d2a28 100%);
    background-attachment: scroll;
}

.m-hero__content { position: relative; z-index: 2; max-width: 640px; }

.m-hero__title {
    font-family: 'Playfair Display', serif; font-size: clamp(1.85rem, 4.2vw, 2.6rem); font-weight: 700;
    margin-bottom: 1rem; color: var(--ivory-cream); line-height: 1.28;
}

.m-hero__subtitle {
    color: var(--rose-dust); font-size: 1.05rem; line-height: 1.75; margin-bottom: 1.5rem;
}

.m-hero__cta { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 1.2rem; }
.m-hero__tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.m-hero .m-tag {
    background: rgba(255, 255, 255, 0.95);
    color: var(--velvet-black);
    border: 1px solid rgba(255, 255, 255, 0.5);
    font-weight: 700;
}

.m-title {
    font-family: 'Playfair Display', serif; font-size: clamp(1.6rem, 3.2vw, 2rem); font-weight: 700;
    margin-bottom: 1rem; color: var(--velvet-black);
}

.m-lead { margin: 0 0 2rem; color: var(--ruin-muted); line-height: 1.7; }

.m-tag {
    display: inline-flex; align-items: center; padding: 0.35rem 0.8rem; border-radius: 6px;
    background: rgba(184, 134, 11, 0.12); color: var(--velvet-black); font-size: 0.85rem; font-weight: 600;
}

/* Buttons – Outline Morph */
.m-btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 0.65rem 1.4rem; border-radius: 8px;
    font-family: 'Lato', sans-serif; font-weight: 700; font-size: 1rem;
    cursor: pointer; transition: color 0.3s ease;
    position: relative; z-index: 1;
}

.m-btn--primary {
    background: transparent;
    border: 2px solid var(--aged-gold);
    color: var(--aged-gold);
}

.m-btn--primary::before {
    content: ''; position: absolute; inset: 0; background: var(--aged-gold); z-index: -1;
    transform: scaleX(0); transform-origin: left; transition: transform 0.3s ease; border-radius: 6px;
}

.m-btn--primary:hover { color: var(--ivory-cream); }
.m-btn--primary:hover::before { transform: scaleX(1); }

.m-btn--secondary {
    background: transparent;
    border: 2px solid var(--rose-dust);
    color: var(--rose-dust);
}

.m-btn--secondary::before {
    content: ''; position: absolute; inset: 0; background: var(--rose-dust); z-index: -1;
    transform: scaleX(0); transform-origin: right; transition: transform 0.3s ease; border-radius: 6px;
}

.m-btn--secondary:hover { color: var(--velvet-black); }
.m-btn--secondary:hover::before { transform: scaleX(1); }

/* Benefits */
.m-benefits { padding: 3rem 0; }
.m-benefits__grid {
    display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(1.2rem, 3vw, 2rem);
    margin: 0 auto; max-width: 1100px;
}

.m-benefit-card {
    flex: 1 1 280px; max-width: 340px;
    padding: 1.5rem; border-radius: 12px;
    background: #fff;
    border: 2px solid var(--ruin-border);
    box-shadow: 0 8px 24px var(--ruin-shadow);
}

.m-benefit-card__title {
    font-family: 'Playfair Display', serif; font-size: 1.2rem; font-weight: 700;
    margin-bottom: 0.6rem; color: var(--velvet-black);
}

.m-benefit-card p { margin: 0; color: var(--ruin-muted); line-height: 1.6; font-size: 0.95rem; }

/* Games grid */
.m-games { padding: 3rem 0; }
.m-games__grid {
    display: flex; flex-wrap: nowrap; justify-content: center; align-items: stretch;
    gap: clamp(1.5rem, 3vw, 2.5rem); max-width: 1200px; margin: 0 auto;
}

.m-game-card {
    flex: 0 0 auto;
    width: clamp(280px, 25vw, 350px); max-width: 350px; min-width: 280px;
    border-radius: 12px; overflow: hidden;
    background: #fff;
    border: 2px solid var(--ruin-border);
    box-shadow: 0 8px 24px var(--ruin-shadow);
}

.m-game-card__thumb-wrap {
    display: flex; align-items: center; justify-content: center;
    padding: 1rem; text-align: center; background: rgba(232, 180, 184, 0.08);
    width: 100%; min-height: 280px;
}

.m-game-card__thumb {
    width: 256px; height: 256px; min-width: 256px; min-height: 256px; max-width: 256px; max-height: 256px;
    object-fit: cover; object-position: center; margin: 0 auto; border-radius: 8px; display: block;
    aspect-ratio: 1;
}

.m-game-card__body { padding: 1.25rem; }
.m-game-card__title {
    font-family: 'Playfair Display', serif; font-size: 1.25rem; font-weight: 700;
    margin-bottom: 0.5rem; color: var(--velvet-black);
}

.m-game-card__text { margin: 0 0 0.75rem; color: var(--ruin-muted); font-size: 0.95rem; line-height: 1.5; }
.m-game-card__meta { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1rem; }
.m-game-card .m-btn { width: 100%; }

@media (max-width: 768px) {
    .m-games__grid { overflow-x: auto; padding-bottom: 0.5rem; justify-content: flex-start; -webkit-overflow-scrolling: touch; }
    .m-game-card { min-width: 280px; flex: 0 0 280px; }
}

/* FAQ */
.m-faq { padding: 3rem 0; }
.m-faq__item {
    margin-bottom: 0.75rem; border: 2px solid var(--ruin-border); border-radius: 12px;
    background: #fff; overflow: hidden;
}

.m-faq__item summary {
    padding: 1rem 1.25rem; font-weight: 700; color: var(--velvet-black); cursor: pointer;
    list-style: none;
}

.m-faq__item summary::-webkit-details-marker { display: none; }
.m-faq__item[open] summary { border-bottom: 2px solid var(--ruin-border); }
.m-faq__item p { margin: 0; padding: 1rem 1.25rem; color: var(--ruin-muted); line-height: 1.6; }

/* Disclaimer */
.m-disclaimer {
    padding: 2.5rem 0;
    background: var(--velvet-black);
    color: var(--rose-dust);
    border-top: 3px solid var(--aged-gold);
}

.m-disclaimer__title {
    font-family: 'Playfair Display', serif; font-size: 1.35rem; font-weight: 700;
    margin-bottom: 1rem; color: var(--ivory-cream);
}

.m-disclaimer p { margin: 0 0 0.75rem; color: var(--rose-dust); line-height: 1.6; font-size: 0.95rem; }
.m-disclaimer a { color: var(--aged-gold); text-decoration: underline; }
.m-disclaimer__badges { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.25rem; }
.m-disclaimer .m-tag {
    background: rgba(255, 255, 255, 0.95);
    color: var(--velvet-black);
    border: 1px solid rgba(255, 255, 255, 0.5);
    font-weight: 700;
}

/* Footer */
.l-footer {
    padding: 2.5rem 0; background: var(--velvet-black); color: var(--rose-dust);
}

.l-footer__grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem; margin-bottom: 2rem;
}

.l-footer__heading {
    font-family: 'Playfair Display', serif; font-size: 1.1rem; font-weight: 700;
    margin-bottom: 0.75rem; color: var(--aged-gold);
}

.l-footer__link { display: block; padding: 0.25rem 0; color: var(--rose-dust); transition: color 0.2s; }
.l-footer__link:hover { color: var(--aged-gold); }
.l-footer__section p { margin: 0.25rem 0; font-size: 0.95rem; }
.l-footer__logos-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1.5rem; margin-bottom: 1.5rem; }
.l-footer__logos { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1rem; }
.l-footer__logo {
    height: 35px !important; width: auto !important; max-width: 120px !important;
    background: rgba(255,255,255,0.95); padding: 6px 10px; border-radius: 8px;
    object-fit: contain; object-position: center; border: 1px solid rgba(255,255,255,0.3);
}
.l-footer__logo:hover { opacity: 1; }
.l-footer__age { width: 40px; height: 40px; object-fit: contain; }
.l-footer__legal { text-align: center; font-size: 0.9rem; color: var(--rose-dust); margin: 0; }

/* Age gate & Cookie */
.m-age {
    position: fixed; inset: 0; z-index: 10000; display: flex; align-items: center; justify-content: center;
    background: rgba(28, 25, 23, 0.95); opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0.3s ease;
}

.m-age.state-visible { opacity: 1; visibility: visible; }

.m-age__window {
    width: min(420px, 92vw); padding: 2rem; border-radius: 12px;
    background: var(--ivory-cream);
    border: 3px solid var(--aged-gold); box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

.m-age__header { margin-bottom: 1.25rem; }
.m-age__title { font-family: 'Playfair Display', serif; font-size: 1.5rem; margin: 0; color: var(--velvet-black); }
.m-age__content p { margin: 0 0 0.75rem; color: var(--ruin-text); line-height: 1.5; }
.m-age__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.25rem; }

.m-cookie {
    position: fixed; bottom: 20px; right: 20px; z-index: 9999; max-width: 350px;
    padding: 1.25rem; border-radius: 12px; border: 2px solid var(--aged-gold);
    background: var(--velvet-black); color: var(--ivory-cream);
    opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0.3s ease;
}
.m-cookie.state-visible { opacity: 1; visibility: visible; }
.m-cookie p { margin: 0 0 0.75rem; font-size: 0.9rem; }
.m-cookie a { color: var(--aged-gold); text-decoration: underline; }
.m-cookie__actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }

/* State: mobile nav */
@media (max-width: 960px) {
    :root { --header-height: 60px; }
    .m-burger { display: flex; align-items: center; justify-content: center; }
    .l-nav {
        position: fixed; top: calc(var(--header-height) - 1px); left: 0; right: 0; bottom: auto;
        background: var(--velvet-black); padding: 1rem; max-height: calc(100vh - var(--header-height));
        overflow-y: auto; flex-direction: column; align-items: stretch;
        transform: translateY(-100%); opacity: 0; visibility: hidden; transition: transform 0.25s ease, opacity 0.25s ease, visibility 0.25s ease;
    }
    .l-nav.state-open {
        transform: translateY(0); opacity: 1; visibility: visible;
    }
    .l-nav__list { flex-direction: column; align-items: stretch; gap: 0.5rem; }
    .l-nav__link { padding: 0.75rem; display: block; }
}
@media (min-width: 961px) {
    .l-nav { display: flex !important; }
}

/* Inner pages */
.m-page .m-hero { padding: clamp(80px, 12vw, 120px) 0 clamp(40px, 8vw, 60px); }
.m-breadcrumb { font-size: 0.9rem; margin-bottom: 0.5rem; color: var(--rose-dust); }
.m-breadcrumb a { color: var(--aged-gold); }
.m-content { padding: 2rem 0 3rem; max-width: 720px; }
.m-content h2 { font-family: 'Playfair Display', serif; font-size: 1.35rem; margin: 1.5rem 0 0.75rem; color: var(--velvet-black); }
.m-content p { margin: 0 0 1rem; line-height: 1.7; color: var(--ruin-text); }
.m-content ul { margin: 0 0 1rem; padding-left: 1.5rem; }
.m-content li { margin-bottom: 0.35rem; }

.m-tabs { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.5rem; }
.m-tabs__tab { padding: 0.6rem 1.2rem; border: 2px solid var(--ruin-border); background: #fff; border-radius: 8px; font-weight: 700; cursor: pointer; color: var(--ruin-muted); }
.m-tabs__tab.state-active { border-color: var(--aged-gold); color: var(--velvet-black); background: rgba(184, 134, 11, 0.08); }
.m-panel { display: none; padding: 1.5rem 0; }
.m-panel.state-visible { display: block; }
.form-status { margin-top: 1rem; font-weight: 600; color: var(--aged-gold); display: none; }
.form-status.state-visible { display: block; }
.m-content .m-form-group { margin-bottom: 1rem; }
.m-content .m-form-group label { display: block; margin-bottom: 0.35rem; font-weight: 600; color: var(--velvet-black); }
.m-content .m-form-group input, .m-content .m-form-group textarea { width: 100%; max-width: 400px; padding: 0.6rem 0.8rem; border: 2px solid var(--ruin-border); border-radius: 8px; font-size: 1rem; }
.m-content textarea { min-height: 120px; resize: vertical; }

/* Konto (Account): heading, subtitle and forms centered */
.m-page--account .m-hero .l-wrap { text-align: center; }
.m-account { text-align: center; }
.m-account .m-title, .m-account .m-lead { display: block; }
.m-account .m-tabs { justify-content: center; }
.m-account .m-panel form { margin-left: auto; margin-right: auto; max-width: 400px; text-align: left; }
.m-account .m-panel.state-visible > p { text-align: center; }

/* Blog / Guides / Reviews – card grid */
.m-card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; margin-top: 1.5rem; }
.m-card { border-radius: 12px; overflow: hidden; background: #fff; border: 2px solid var(--ruin-border); box-shadow: 0 8px 24px var(--ruin-shadow); }
.m-card__body { padding: 1.25rem; }
.m-card__title { font-family: 'Playfair Display', serif; font-size: 1.15rem; margin: 0 0 0.5rem; }
.m-card__title a { color: var(--velvet-black); }
.m-card__title a:hover { color: var(--aged-gold); }
.m-card__meta { font-size: 0.85rem; color: var(--ruin-muted); margin-bottom: 0.5rem; }
.m-card p { margin: 0 0 1rem; font-size: 0.95rem; line-height: 1.5; color: var(--ruin-text); }

/* Article/guide content – centered text (TZ) */
.m-content.m-article { text-align: center; max-width: 720px; margin-left: auto; margin-right: auto; }
.m-content.m-article p { text-align: center; }
.m-content.m-article h2, .m-content.m-article h3 { text-align: center; }
