/* ============================================================
   PATCH NOTES v1.8 — "UTAK" (Ranked V2 Szerepkör Rendszer) spotlight oldal
   ============================================================ */

:root:has(.v18-body) {
    font-size: clamp(16px, 0.86vw + 10px, 19px);
}

.v18-body {
    margin: 0;
    min-height: 100vh;
    padding: 0 0 80px;
    position: relative;
    background:
        radial-gradient(ellipse 900px 560px at 50% -6%, rgba(255, 210, 76, 0.16), transparent 62%),
        radial-gradient(ellipse 800px 520px at 92% 30%, rgba(79, 209, 224, 0.09), transparent 60%),
        radial-gradient(ellipse 900px 560px at 6% 65%, rgba(214, 79, 116, 0.07), transparent 60%),
        linear-gradient(180deg, #0a0705 0%, #08050a 40%, var(--c-void, #030509) 100%);
    color: var(--c-text, #e8ecf3);
    font-family: "Outfit", sans-serif;
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
}

.v18-body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 55vw 38vh at 22% 12%, rgba(255, 210, 76, 0.10), transparent 60%),
        radial-gradient(ellipse 50vw 36vh at 84% 66%, rgba(79, 209, 224, 0.08), transparent 60%),
        radial-gradient(ellipse 46vw 30vh at 46% 100%, rgba(214, 79, 116, 0.06), transparent 65%);
    animation: v18BgDrift 30s ease-in-out infinite alternate;
}

@keyframes v18BgDrift {
    0% { transform: translate3d(0, 0, 0) scale(1); }
    50% { transform: translate3d(-2%, 1.5%, 0) scale(1.05); }
    100% { transform: translate3d(2%, -1.5%, 0) scale(1.03); }
}

@media (prefers-reduced-motion: reduce) {
    .v18-body::before { animation: none; }
}

.v18-body h1, .v18-body h2, .v18-body h3 {
    font-family: "Montserrat", sans-serif;
    margin: 0;
}

.v18-body p { text-wrap: pretty; }

#v18-main { position: relative; z-index: 1; }

/* ---------- Section nav ---------- */

.v18-section-nav {
    position: sticky;
    top: 0;
    z-index: var(--z-shell, 50);
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding: 14px 6vw;
    background: rgba(10, 7, 5, 0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border-glass, rgba(255, 255, 255, 0.08));
    box-shadow: 0 12px 30px -18px rgba(0, 0, 0, 0.7);
    scrollbar-width: none;
}

.v18-section-nav::-webkit-scrollbar { display: none; }

.v18-section-nav a {
    flex: 0 0 auto;
    white-space: nowrap;
    padding: 7px 14px;
    border-radius: 999px;
    color: var(--c-text-dim, #9aa4b5);
    text-decoration: none;
    font-family: "Montserrat", sans-serif;
    font-weight: 600;
    font-size: 0.76rem;
    letter-spacing: 0.4px;
    border: 1px solid transparent;
    transition: background var(--t-fast, 0.2s) ease, color var(--t-fast, 0.2s) ease, border-color var(--t-fast, 0.2s) ease;
}

.v18-section-nav a:hover { color: #fff; background: rgba(255, 255, 255, 0.06); }

.v18-section-nav a.is-active {
    color: #221602;
    background: var(--c-gold, #ffd24c);
    border-color: var(--c-gold, #ffd24c);
}

/* ---------- Hero ---------- */

.v18-hero {
    position: relative;
    min-height: min(88vh, 780px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 6vw 40px;
    overflow: hidden;
    text-align: center;
}

.v18-hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 55% at 50% 38%, rgba(255, 210, 76, 0.20), transparent 70%),
        radial-gradient(ellipse 40% 40% at 50% 40%, rgba(79, 209, 224, 0.12), transparent 72%);
    pointer-events: none;
}

.v18-hero-orbit {
    position: relative;
    width: min(260px, 46vw);
    height: min(260px, 46vw);
    margin-bottom: 28px;
}

.v18-hero-orbit-ring {
    position: absolute;
    inset: -18px;
    border-radius: 50%;
    border: 1px dashed rgba(255, 210, 76, 0.35);
    animation: v18Spin 26s linear infinite;
}

.v18-hero-orbit-ring--2 {
    inset: -42px;
    border-color: rgba(79, 209, 224, 0.22);
    animation-duration: 40s;
    animation-direction: reverse;
}

@keyframes v18Spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.v18-hero-emblem {
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
    filter: drop-shadow(0 0 40px rgba(255, 210, 76, 0.5)) drop-shadow(0 0 80px rgba(255, 210, 76, 0.3));
    animation: v18EmblemFloat 6s ease-in-out infinite;
}

@keyframes v18EmblemFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.v18-hero-spark {
    position: absolute;
    width: clamp(30px, 5vw, 44px);
    height: clamp(30px, 5vw, 44px);
    object-fit: contain;
    opacity: 0.9;
    border-radius: 12px;
    padding: 5px;
    background: rgba(9, 12, 14, 0.6);
    border: 2px solid rgba(255, 210, 76, 0.5);
    filter: drop-shadow(0 0 14px rgba(255, 210, 76, 0.4));
    animation: v18SparkFloat 8s ease-in-out infinite;
}

.v18-hero-spark--1 { top: -6%; left: 6%; animation-delay: -1s; }
.v18-hero-spark--2 { top: 34%; left: -16%; animation-delay: -3.4s; }
.v18-hero-spark--3 { top: 84%; left: 4%; animation-delay: -5.2s; }
.v18-hero-spark--4 { top: 84%; right: 4%; animation-delay: -2.1s; }
.v18-hero-spark--5 { top: 34%; right: -16%; animation-delay: -6.5s; }

@keyframes v18SparkFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-14px) rotate(6deg); }
}

@media (prefers-reduced-motion: reduce) {
    .v18-hero-orbit-ring, .v18-hero-emblem, .v18-hero-spark { animation: none; }
}

.v18-hero-copy { position: relative; max-width: 720px; z-index: 1; }

.v18-hero-eyebrow {
    font-family: "SpectralBold", serif;
    letter-spacing: 4px;
    text-transform: uppercase;
    font-size: 0.9rem;
    color: var(--c-gold, #ffd24c);
    text-shadow: 0 0 10px rgba(255, 210, 76, 0.5);
    margin: 0 0 12px;
}

.v18-hero-title {
    font-family: "AOW", serif;
    font-style: italic;
    font-weight: 700;
    font-size: clamp(2.4rem, 6.4vw, 4.6rem);
    line-height: 1.05;
    color: #fff;
    text-shadow: 0 0 44px rgba(255, 210, 76, 0.5);
    margin: 0 0 14px;
}

.v18-hero-badge {
    display: inline-block;
    margin: 0 0 18px;
    padding: 5px 16px;
    border-radius: 999px;
    font-family: "Montserrat", sans-serif;
    font-weight: 700;
    font-size: 0.7rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--c-gold, #ffd24c);
    background: rgba(255, 210, 76, 0.1);
    border: 1px solid rgba(255, 210, 76, 0.4);
}

.v18-hero-lead {
    color: var(--c-text, #e8ecf3);
    font-size: 1.04rem;
    line-height: 1.75;
    max-width: 620px;
    margin: 0 auto;
}

/* ---------- Shared section shell ---------- */

.v18-feature {
    max-width: clamp(1080px, 86vw, 1560px);
    margin: 0 auto;
    padding: 100px 6vw 0;
    position: relative;
}

.v18-feature::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: min(1080px, 88%);
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-glass, rgba(255, 255, 255, 0.14)), transparent);
}

.v18-feature-inner {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 56px;
    align-items: center;
}

.v18-feature--reverse .v18-feature-inner { grid-template-columns: 0.9fr 1.1fr; }
.v18-feature--reverse .v18-feature-copy { order: 2; }

.v18-feature-copy { max-width: 560px; }

.v18-eyebrow {
    font-family: "SpectralBold", serif;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-size: 0.8rem;
    color: var(--c-teal, #4fd1e0);
    margin: 0 0 10px;
}

.v18-feature-copy h2, .v18-section-head h2 {
    font-size: clamp(1.5rem, 2.6vw, 2.1rem);
    line-height: 1.25;
    color: #fff;
    margin: 10px 0 16px;
}

.v18-feature-copy p, .v18-section-head p {
    color: var(--c-text-dim, #9aa4b5);
    font-size: 0.98rem;
    line-height: 1.75;
    margin: 0 0 18px;
}

.v18-section-head {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 48px;
}

.v18-bullets {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.v18-bullets li {
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--c-text, #e8ecf3);
    padding-left: 19px;
    position: relative;
}

.v18-bullets li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.5em;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--c-gold, #ffd24c);
    box-shadow: 0 0 8px rgba(255, 210, 76, 0.6);
}

/* ---------- Role grid ---------- */

.v18-role-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 18px;
}

.v18-role-card {
    padding: 24px 20px;
    border-radius: var(--radius-l, 18px);
    text-align: center;
    background: linear-gradient(160deg, rgba(24, 18, 10, 0.9), rgba(9, 12, 14, 0.92));
    border: 1px solid rgba(255, 210, 76, 0.22);
    box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.8);
    transition: transform var(--t-mid, 0.22s) var(--ease-premium, ease), border-color var(--t-mid, 0.22s) ease;
}

.v18-role-card:hover {
    transform: translateY(-6px);
    border-color: var(--c-gold, #ffd24c);
}

.v18-role-card-icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 14px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle, rgba(255, 210, 76, 0.16), transparent 70%);
    border: 1px solid rgba(255, 210, 76, 0.4);
}

.v18-role-card-icon img {
    width: 30px;
    height: 30px;
    object-fit: contain;
    filter: drop-shadow(0 0 8px rgba(255, 210, 76, 0.5));
}

.v18-role-card h3 {
    font-size: 1rem;
    color: #fff;
    margin: 0 0 8px;
}

.v18-role-card-bonus {
    margin: 0 0 10px;
    font-family: "SpectralBold", serif;
    font-size: 0.92rem;
    color: var(--c-gold, #ffd24c);
    text-shadow: 0 0 12px rgba(255, 210, 76, 0.35);
    line-height: 1.4;
}

.v18-role-card-obj {
    margin: 0;
    font-size: 0.78rem;
    line-height: 1.5;
    color: var(--c-text-dim, #9aa4b5);
}

@media (max-width: 1100px) {
    .v18-role-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 640px) {
    .v18-role-grid { grid-template-columns: 1fr 1fr; }
}

/* ---------- Badge mockup ---------- */

.v18-badge-mockup {
    display: flex;
    justify-content: center;
}

.v18-badge-mockup-card {
    width: min(340px, 100%);
    padding: 22px 20px 26px;
    border-radius: var(--radius-l, 18px);
    background: linear-gradient(160deg, rgba(24, 18, 10, 0.92), rgba(9, 12, 14, 0.95));
    border: 1px solid rgba(255, 210, 76, 0.3);
    box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.85), 0 0 40px -18px rgba(255, 210, 76, 0.3);
}

.v18-badge-mockup-dicerow {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.v18-badge-mockup-badge {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 210, 76, 0.12);
    border: 2px solid var(--c-gold, #ffd24c);
    box-shadow: 0 0 14px -2px rgba(255, 210, 76, 0.7);
    animation: v18BadgePulse 2.2s ease-in-out infinite;
}

.v18-badge-mockup-badge img {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

@keyframes v18BadgePulse {
    0%, 100% { box-shadow: 0 0 14px -2px rgba(255, 210, 76, 0.7); }
    50% { box-shadow: 0 0 22px 2px rgba(255, 210, 76, 0.9); }
}

@media (prefers-reduced-motion: reduce) {
    .v18-badge-mockup-badge { animation: none; }
}

.v18-badge-mockup-die {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-glass, rgba(255, 255, 255, 0.1));
}

.v18-badge-mockup-die img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.v18-badge-mockup-tooltip {
    padding: 16px 16px 18px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 210, 76, 0.25);
}

.v18-badge-mockup-tooltip-title {
    margin: 0 0 6px;
    font-family: "Montserrat", sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    color: #fff;
}

.v18-badge-mockup-tooltip-bonus {
    margin: 0 0 12px;
    font-size: 0.82rem;
    color: var(--c-gold, #ffd24c);
    font-weight: 700;
}

.v18-badge-mockup-tooltip-bonus span {
    font-weight: 500;
    color: var(--c-text-dim, #9aa4b5);
}

.v18-badge-mockup-progress {
    height: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
    margin-bottom: 8px;
}

.v18-badge-mockup-progress span {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--c-teal, #4fd1e0), var(--c-gold, #ffd24c));
}

.v18-badge-mockup-tooltip-obj {
    margin: 0;
    font-size: 0.74rem;
    color: var(--c-text-dim, #9aa4b5);
}

/* ---------- Flow steps ---------- */

.v18-flow-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 18px;
}

.v18-flow-card {
    position: relative;
    padding: 26px 24px;
    border-radius: var(--radius-l, 18px);
    background: linear-gradient(160deg, rgba(15, 24, 26, 0.85), rgba(9, 12, 14, 0.9));
    border: 1px solid var(--border-glass, rgba(255, 255, 255, 0.08));
    transition: transform var(--t-mid, 0.22s) var(--ease-premium, ease);
}

.v18-flow-card:hover { transform: translateY(-4px); }

.v18-flow-step-num {
    position: absolute;
    top: 22px;
    right: 22px;
    font-family: "SpectralBold", serif;
    font-size: 1.1rem;
    color: var(--c-text-dim, #9aa4b5);
    opacity: 0.5;
}

.v18-flow-card h3 {
    font-size: 1.0rem;
    color: #fff;
    margin: 0 0 8px;
    max-width: 85%;
}

.v18-flow-card p {
    margin: 0;
    font-size: 0.86rem;
    line-height: 1.55;
    color: var(--c-text-dim, #9aa4b5);
}

/* ---------- Guard ring ---------- */

.v18-guard-ring {
    position: relative;
    width: min(220px, 55vw);
    height: min(220px, 55vw);
    margin: 0 auto;
    border-radius: 50%;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: conic-gradient(from 0deg, var(--c-gold, #ffd24c), var(--c-teal, #4fd1e0), var(--c-gold, #ffd24c));
    box-shadow: 0 0 60px -10px rgba(255, 210, 76, 0.4);
    animation: v18Spin 30s linear infinite;
}

.v18-guard-ring::before {
    content: "";
    position: absolute;
    inset: 10px;
    border-radius: 50%;
    background: #0d0a06;
}

.v18-guard-ring img {
    position: relative;
    width: 58%;
    height: 58%;
    object-fit: contain;
    filter: drop-shadow(0 0 20px rgba(255, 210, 76, 0.5));
    animation: v18Spin 30s linear infinite reverse;
}

@media (prefers-reduced-motion: reduce) {
    .v18-guard-ring, .v18-guard-ring img { animation: none; }
}

@media (max-width: 900px) {
    .v18-feature-inner,
    .v18-feature--reverse .v18-feature-inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .v18-feature--reverse .v18-feature-copy { order: 0; }
}

/* ---------- Footer CTA ---------- */

.v18-footer-cta {
    text-align: center;
    margin: 110px auto 0;
    padding: 56px 6vw !important;
    max-width: 1080px;
    border-top: 1px solid var(--border-glass, rgba(255, 255, 255, 0.08));
    background: radial-gradient(ellipse 700px 300px at 50% 0%, rgba(255, 210, 76, 0.08), transparent 70%);
}

.v18-footer-cta h2 { font-size: 1.65rem; color: #fff; margin-bottom: 12px; }

.v18-footer-cta p {
    color: var(--c-text-dim, #9aa4b5);
    margin: 0 0 26px;
    line-height: 1.6;
}

.v18-footer-cta-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

.v18-cta-btn {
    font-family: "Montserrat", sans-serif;
    font-weight: 700;
    font-size: 0.88rem;
    padding: 13px 26px;
    border-radius: 999px;
    text-decoration: none;
    color: var(--c-text, #e8ecf3);
    border: 1px solid var(--border-glass, rgba(255, 255, 255, 0.15));
    transition: all var(--t-fast, 0.2s) ease;
}

.v18-cta-btn:hover { border-color: var(--c-gold, #ffd24c); color: #fff; transform: translateY(-2px); }

.v18-cta-btn--primary {
    color: #221602;
    background: var(--c-gold, #ffd24c);
    border-color: var(--c-gold, #ffd24c);
}

/* ---------- Reveal (shared) ---------- */

.reveal { opacity: 0; transform: translateY(24px); }

.reveal.is-visible {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s var(--ease-premium, ease), transform 0.6s var(--ease-premium, ease);
}

@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
}
