/*
 * PROJECT: weatherstoneestatesnh.com
 * DOMAIN: weatherstoneestatesnh.com
 * GAME: Checkers Master
 *
 * DESIGN:
 * - CSS: BEM
 * - Palette: Технологичный (Neon #00ffaa, dark #0d1117)
 * - Effect: Neon Glow
 * - Fonts: JetBrains Mono (headings) + Inter (body)
 * - Buttons: Neon Border
 *
 * Created: 2025
 */

@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;600;700;800&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --neon-green: #00ffaa;
    --neon-green-dim: #00cc88;
    --neon-blue: #00d4ff;
    --neon-purple: #b400ff;
    --dark-bg: #0d1117;
    --dark-surface: #161b22;
    --dark-card: #1c2128;
    --dark-border: #30363d;
    --text-primary: #e6edf3;
    --text-secondary: #8b949e;
    --text-muted: #484f58;
    --font-mono: 'JetBrains Mono', monospace;
    --font-body: 'Inter', sans-serif;
    --glow-sm: 0 0 8px var(--neon-green), 0 0 16px rgba(0,255,170,0.3);
    --glow-md: 0 0 12px var(--neon-green), 0 0 24px rgba(0,255,170,0.4), 0 0 40px rgba(0,255,170,0.2);
    --glow-lg: 0 0 20px var(--neon-green), 0 0 40px rgba(0,255,170,0.5), 0 0 60px rgba(0,255,170,0.3);
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --transition: all 0.3s ease;
    --header-height: 70px;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

html, body {
    overflow-x: hidden !important;
}

body {
    font-family: var(--font-body);
    background-color: var(--dark-bg);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ========== TYPOGRAPHY ========== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-mono);
    font-weight: 700;
    line-height: 1.2;
}

a {
    color: var(--neon-green);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--neon-green-dim);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

/* ========== UTILITIES ========== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 80px 0;
}

.section--alt {
    background-color: var(--dark-surface);
}

.section__header {
    text-align: center;
    margin-bottom: 56px;
}

.section__label {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--neon-green);
    margin-bottom: 12px;
}

.section__title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    color: var(--text-primary);
    margin-bottom: 16px;
}

.section__title span {
    color: var(--neon-green);
    text-shadow: var(--glow-sm);
}

.section__desc {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.stars {
    color: #ffc107;
}

/* ========== BUTTONS ========== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    padding: 12px 28px;
    border-radius: var(--radius-md);
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    white-space: nowrap;
}

.btn--primary {
    background: transparent;
    color: var(--neon-green);
    border-color: var(--neon-green);
    box-shadow: 0 0 10px rgba(0,255,170,0.3), inset 0 0 10px rgba(0,255,170,0.05);
}

.btn--primary:hover {
    background: var(--neon-green);
    color: var(--dark-bg);
    box-shadow: var(--glow-md);
}

.btn--secondary {
    background: var(--dark-card);
    color: var(--text-primary);
    border-color: var(--dark-border);
}

.btn--secondary:hover {
    border-color: var(--neon-green);
    color: var(--neon-green);
}

.btn--lg {
    font-size: 1.05rem;
    padding: 16px 40px;
}

.btn-play {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: var(--font-mono);
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 18px 48px;
    border-radius: var(--radius-md);
    background: transparent;
    color: var(--neon-green);
    border: 2px solid var(--neon-green);
    box-shadow: var(--glow-sm), inset 0 0 20px rgba(0,255,170,0.05);
    transition: var(--transition);
    text-decoration: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn-play::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--neon-green);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
    z-index: 0;
}

.btn-play:hover::before {
    transform: scaleX(1);
}

.btn-play span,
.btn-play {
    position: relative;
    z-index: 1;
}

.btn-play:hover {
    color: var(--dark-bg);
    box-shadow: var(--glow-lg);
}

/* ========== COOKIE CONSENT ========== */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 200;
    background: var(--dark-surface);
    border-top: 1px solid var(--dark-border);
    padding: 20px 0;
    box-shadow: 0 -4px 24px rgba(0,0,0,0.5);
}

.cookie-consent__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.cookie-consent__text {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.6;
    flex: 1;
    min-width: 280px;
}

.cookie-consent__text a {
    color: var(--neon-green);
    text-decoration: underline;
}

.cookie-consent__actions {
    flex-shrink: 0;
}

/* ========== HEADER ========== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(13, 17, 23, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--dark-border);
    transition: var(--transition);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
}

.logo {
    font-family: var(--font-mono);
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--neon-green);
    text-decoration: none;
    text-shadow: var(--glow-sm);
    letter-spacing: 0.05em;
}

.logo:hover {
    color: var(--neon-green);
    text-shadow: var(--glow-md);
}

.nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav__link {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    border: 1px solid transparent;
}

.nav__link:hover,
.nav__link--active {
    color: var(--neon-green);
    border-color: rgba(0,255,170,0.3);
    background: rgba(0,255,170,0.05);
}

.nav__cta {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--neon-green);
    text-decoration: none;
    padding: 8px 18px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--neon-green);
    transition: var(--transition);
    margin-left: 8px;
    box-shadow: 0 0 8px rgba(0,255,170,0.2);
}

.nav__cta:hover {
    background: var(--neon-green);
    color: var(--dark-bg);
    box-shadow: var(--glow-sm);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    background: none;
    border: none;
}

.hamburger__line {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition);
}

.hamburger.is-active .hamburger__line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger.is-active .hamburger__line:nth-child(2) {
    opacity: 0;
}

.hamburger.is-active .hamburger__line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ========== HERO ========== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: var(--header-height);
    position: relative;
    overflow: hidden;
}

.hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero__grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0,255,170,0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,255,170,0.05) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}

.hero__glow {
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0,255,170,0.08) 0%, transparent 70%);
    pointer-events: none;
}

.hero__inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
    padding: 80px 0;
}

.hero__content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--neon-green);
    background: rgba(0,255,170,0.08);
    border: 1px solid rgba(0,255,170,0.3);
    padding: 6px 14px;
    border-radius: 100px;
    width: fit-content;
}

.hero__badge::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--neon-green);
    border-radius: 50%;
    box-shadow: var(--glow-sm);
    animation: pulse 2s infinite;
}

.hero__title {
    font-size: clamp(2.4rem, 5vw, 3.6rem);
    line-height: 1.1;
    color: var(--text-primary);
}

.hero__title span {
    color: var(--neon-green);
    text-shadow: var(--glow-md);
}

.hero__desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 480px;
}

.hero__actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.hero__stats {
    display: flex;
    gap: 32px;
    padding-top: 8px;
    border-top: 1px solid var(--dark-border);
    margin-top: 8px;
}

.hero__stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.hero__stat-value {
    font-family: var(--font-mono);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--neon-green);
    text-shadow: var(--glow-sm);
}

.hero__stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.hero__visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero__board-preview {
    position: relative;
    width: 320px;
    height: 320px;
}

.board-frame {
    width: 100%;
    height: 100%;
    border: 2px solid var(--neon-green);
    border-radius: var(--radius-lg);
    box-shadow: var(--glow-md);
    background: var(--dark-card);
    overflow: hidden;
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    grid-template-rows: repeat(8, 1fr);
}

.board-frame__cell {
    aspect-ratio: 1;
}

.board-frame__cell--dark {
    background: rgba(0, 255, 170, 0.06);
}

.board-frame__cell--light {
    background: rgba(255, 255, 255, 0.02);
}

.board-frame__piece {
    position: absolute;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.board-frame__piece--green {
    background: radial-gradient(circle at 35% 35%, #00ffaa, #00886e);
    box-shadow: 0 0 10px rgba(0,255,170,0.6);
}

.board-frame__piece--dark {
    background: radial-gradient(circle at 35% 35%, #8b949e, #30363d);
}

.hero__game-icon {
    position: absolute;
    bottom: -16px;
    right: -16px;
    width: 80px;
    height: 80px;
    border-radius: var(--radius-md);
    border: 2px solid var(--neon-green);
    box-shadow: var(--glow-sm);
    overflow: hidden;
    background: var(--dark-card);
}

.hero__game-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ========== FEATURES ========== */
.features__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    position: relative;
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    transition: var(--transition);
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--neon-green), transparent);
    opacity: 0;
    transition: var(--transition);
}

.feature-card:hover {
    border-color: rgba(0,255,170,0.4);
    box-shadow: 0 8px 32px rgba(0,0,0,0.3), 0 0 20px rgba(0,255,170,0.1);
    transform: translateY(-4px);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card__icon {
    font-size: 2.2rem;
    margin-bottom: 20px;
    display: block;
}

.feature-card__title {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.feature-card__desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ========== HOW TO PLAY SECTION (homepage preview) ========== */
.how-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.how-step {
    position: relative;
    text-align: center;
    padding: 32px 20px;
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    border-radius: var(--radius-lg);
    transition: var(--transition);
}

.how-step:hover {
    border-color: rgba(0,255,170,0.3);
    box-shadow: 0 0 20px rgba(0,255,170,0.08);
}

.how-step__num {
    font-family: var(--font-mono);
    font-size: 2.5rem;
    font-weight: 800;
    color: rgba(0,255,170,0.15);
    line-height: 1;
    margin-bottom: 16px;
}

.how-step__icon {
    font-size: 1.8rem;
    margin-bottom: 14px;
    display: block;
}

.how-step__title {
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.how-step__desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ========== GAME SECTION ========== */
.game-section {
    background: var(--dark-bg);
}

.game-section__inner {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 64px;
    align-items: center;
}

.game-section__content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.game-section__title {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
}

.game-section__title span {
    color: var(--neon-green);
    text-shadow: var(--glow-sm);
}

.game-section__desc {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.game-section__features {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.game-section__feature {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.game-section__feature::before {
    content: '▶';
    font-size: 0.6rem;
    color: var(--neon-green);
    flex-shrink: 0;
}

.game-section__preview {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    aspect-ratio: 4/3;
    display: flex;
    align-items: center;
    justify-content: center;
}

.game-section__preview-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,255,170,0.03) 0%, transparent 60%);
    pointer-events: none;
}

.game-section__preview-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.game-section__preview-icon img {
    width: 100px;
    height: 100px;
    border-radius: var(--radius-md);
    box-shadow: var(--glow-sm);
}

.game-section__preview-text {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ========== BLOG CARDS ========== */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.article-card {
    position: relative;
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
}

.article-card:hover {
    border-color: rgba(0,255,170,0.4);
    box-shadow: 0 8px 32px rgba(0,0,0,0.3), 0 0 20px rgba(0,255,170,0.08);
    transform: translateY(-4px);
}

.article-card__image {
    width: 100%;
    height: 180px;
    background: linear-gradient(135deg, var(--dark-surface) 0%, var(--dark-bg) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    overflow: hidden;
    position: relative;
}

.article-card__image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(transparent, var(--dark-card));
}

.article-card__body {
    padding: 24px;
}

.article-card__tag {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--neon-green);
    background: rgba(0,255,170,0.08);
    border: 1px solid rgba(0,255,170,0.2);
    padding: 3px 10px;
    border-radius: 100px;
    margin-bottom: 12px;
}

.article-card__title {
    font-size: 1.05rem;
    color: var(--text-primary);
    margin-bottom: 10px;
    line-height: 1.4;
    transition: var(--transition);
}

.article-card:hover .article-card__title {
    color: var(--neon-green);
}

.article-card__excerpt {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
}

.article-card__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

.article-card__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
}

/* ========== FAQ ========== */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
}

.faq-item.is-open {
    border-color: rgba(0,255,170,0.3);
}

.faq-item__question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    cursor: pointer;
    font-family: var(--font-mono);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    transition: var(--transition);
    user-select: none;
}

.faq-item__question:hover {
    color: var(--neon-green);
}

.faq-item__icon {
    font-size: 1.2rem;
    color: var(--neon-green);
    flex-shrink: 0;
    transition: transform 0.3s ease;
    font-style: normal;
}

.faq-item.is-open .faq-item__icon {
    transform: rotate(45deg);
}

.faq-item__answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
}

.faq-item.is-open .faq-item__answer {
    max-height: 400px;
}

.faq-item__answer-inner {
    padding: 0 24px 20px;
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.7;
    border-top: 1px solid var(--dark-border);
    padding-top: 16px;
}

/* ========== PLAY CTA SECTION ========== */
.play-cta {
    background: var(--dark-surface);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.play-cta::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 400px;
    background: radial-gradient(ellipse, rgba(0,255,170,0.06) 0%, transparent 70%);
    pointer-events: none;
}

.play-cta__inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.play-cta__title {
    font-size: clamp(2rem, 4vw, 3rem);
    max-width: 600px;
}

.play-cta__title span {
    color: var(--neon-green);
    text-shadow: var(--glow-md);
}

.play-cta__desc {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 500px;
}

/* ========== PAGE HERO (inner pages) ========== */
.page-hero {
    padding: 140px 0 80px;
    background: var(--dark-surface);
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0,255,170,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,255,170,0.03) 1px, transparent 1px);
    background-size: 60px 60px;
}

.page-hero__inner {
    position: relative;
    z-index: 1;
}

.page-hero__label {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--neon-green);
    margin-bottom: 12px;
}

.page-hero__title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 16px;
}

.page-hero__desc {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 600px;
}

/* ========== ABOUT PAGE ========== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.about-text {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.about-text p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.about-text h2,
.about-text h3 {
    color: var(--text-primary);
    margin-top: 8px;
}

.about-text h3 span {
    color: var(--neon-green);
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.about-stat {
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    border-radius: var(--radius-md);
    padding: 24px 20px;
    text-align: center;
    transition: var(--transition);
}

.about-stat:hover {
    border-color: rgba(0,255,170,0.3);
    box-shadow: 0 0 16px rgba(0,255,170,0.08);
}

.about-stat__value {
    font-family: var(--font-mono);
    font-size: 2rem;
    font-weight: 800;
    color: var(--neon-green);
    text-shadow: var(--glow-sm);
    margin-bottom: 6px;
}

.about-stat__label {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.team-card {
    position: relative;
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    text-align: center;
    transition: var(--transition);
}

.team-card:hover {
    border-color: rgba(0,255,170,0.3);
    transform: translateY(-4px);
}

.team-card__avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--neon-green) 0%, #00a86b 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--dark-bg);
    margin: 0 auto 16px;
    box-shadow: var(--glow-sm);
}

.team-card__name {
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.team-card__role {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--neon-green);
}

/* ========== HOW TO PLAY PAGE ========== */
.htp-section {
    padding: 80px 0;
}

.htp-intro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
    margin-bottom: 80px;
}

.htp-text {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.htp-text p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.htp-board {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
}

.htp-board__visual {
    width: 100%;
    max-width: 360px;
    aspect-ratio: 1;
    background: var(--dark-card);
    border: 2px solid var(--dark-border);
    border-radius: var(--radius-lg);
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    grid-template-rows: repeat(8, 1fr);
    overflow: hidden;
    box-shadow: var(--glow-sm);
}

.htp-cell--dark {
    background: rgba(0,255,170,0.08);
}

.htp-cell--light {
    background: rgba(255,255,255,0.02);
}

.controls-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 64px;
}

.control-card {
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    border-radius: var(--radius-md);
    padding: 24px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
    transition: var(--transition);
}

.control-card:hover {
    border-color: rgba(0,255,170,0.3);
}

.control-card__icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.control-card__content h4 {
    font-size: 0.95rem;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.control-card__content p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.rules-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 64px;
}

.rule-card {
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    border-radius: var(--radius-md);
    padding: 28px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.rule-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--neon-green);
    box-shadow: var(--glow-sm);
}

.rule-card:hover {
    border-color: rgba(0,255,170,0.3);
}

.rule-card h4 {
    font-size: 1rem;
    color: var(--neon-green);
    margin-bottom: 12px;
}

.rule-card p,
.rule-card li {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.rule-card ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.rule-card ul li::before {
    content: '→ ';
    color: var(--neon-green);
    font-family: var(--font-mono);
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.tip-card {
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    border-radius: var(--radius-md);
    padding: 24px;
    transition: var(--transition);
    position: relative;
}

.tip-card:hover {
    border-color: rgba(0,255,170,0.3);
    transform: translateY(-3px);
}

.tip-card__num {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--neon-green);
    margin-bottom: 12px;
    letter-spacing: 0.1em;
}

.tip-card__title {
    font-size: 0.95rem;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.tip-card__desc {
    font-size: 0.87rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ========== BLOG PAGE ========== */
.blog-header {
    margin-bottom: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.blog-header__title {
    font-size: clamp(1.4rem, 3vw, 1.8rem);
}

.blog-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.blog-tag {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-secondary);
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    padding: 6px 14px;
    border-radius: 100px;
    cursor: pointer;
    transition: var(--transition);
}

.blog-tag:hover,
.blog-tag.is-active {
    color: var(--neon-green);
    border-color: rgba(0,255,170,0.4);
    background: rgba(0,255,170,0.05);
}

/* ========== ARTICLE PAGE ========== */
.article-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 48px;
    align-items: start;
}

.article-content {
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    border-radius: var(--radius-lg);
    padding: 48px;
}

.article-content h1 {
    font-size: clamp(1.6rem, 3.5vw, 2.2rem);
    margin-bottom: 16px;
}

.article-content h2 {
    font-size: 1.4rem;
    color: var(--neon-green);
    margin: 36px 0 16px;
}

.article-content h3 {
    font-size: 1.15rem;
    color: var(--text-primary);
    margin: 28px 0 12px;
}

.article-content p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 16px;
}

.article-content ul,
.article-content ol {
    margin-bottom: 16px;
    padding-left: 0;
}

.article-content ul {
    list-style: none;
}

.article-content ul li::before {
    content: '▶ ';
    color: var(--neon-green);
    font-size: 0.7rem;
}

.article-content ol {
    list-style: decimal;
    padding-left: 20px;
}

.article-content li {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 8px;
}

.article-content strong {
    color: var(--text-primary);
    font-weight: 600;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--dark-border);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
}

.article-meta__tag {
    color: var(--neon-green);
    background: rgba(0,255,170,0.08);
    border: 1px solid rgba(0,255,170,0.2);
    padding: 3px 10px;
    border-radius: 100px;
}

.article-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: sticky;
    top: 90px;
}

.sidebar-widget {
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    border-radius: var(--radius-lg);
    padding: 24px;
}

.sidebar-widget__title {
    font-size: 0.9rem;
    color: var(--text-primary);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--dark-border);
}

.sidebar-link {
    display: block;
    font-size: 0.88rem;
    color: var(--text-secondary);
    padding: 10px 0;
    border-bottom: 1px solid var(--dark-border);
    transition: var(--transition);
}

.sidebar-link:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.sidebar-link:hover {
    color: var(--neon-green);
    padding-left: 6px;
}

/* ========== CONTACT PAGE ========== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 64px;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-info__title {
    font-size: 1.6rem;
    margin-bottom: 8px;
}

.contact-info__desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.contact-detail {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 20px;
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.contact-detail:hover {
    border-color: rgba(0,255,170,0.3);
}

.contact-detail__icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.contact-detail__text h4 {
    font-size: 0.9rem;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.contact-detail__text p {
    font-size: 0.88rem;
    color: var(--text-secondary);
}

.contact-form {
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    border-radius: var(--radius-lg);
    padding: 40px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    background: var(--dark-surface);
    border: 1px solid var(--dark-border);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-primary);
    transition: var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--neon-green);
    box-shadow: 0 0 8px rgba(0,255,170,0.2);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* ========== LEGAL PAGES ========== */
.legal-content {
    max-width: 800px;
    margin: 0 auto;
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    border-radius: var(--radius-lg);
    padding: 48px;
}

.legal-content h2 {
    font-size: 1.3rem;
    color: var(--neon-green);
    margin: 36px 0 14px;
}

.legal-content h3 {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin: 24px 0 10px;
}

.legal-content p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 14px;
}

.legal-content ul {
    list-style: none;
    margin-bottom: 14px;
}

.legal-content ul li {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
    padding-left: 16px;
    position: relative;
    margin-bottom: 6px;
}

.legal-content ul li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--neon-green);
    font-family: var(--font-mono);
    font-size: 0.8rem;
}

.legal-content .last-updated {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--dark-border);
}

/* ========== FOOTER ========== */
.footer {
    background: var(--dark-surface);
    border-top: 1px solid var(--dark-border);
    padding: 64px 0 32px;
}

.footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer__brand {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer__logo {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--neon-green);
    text-decoration: none;
    text-shadow: var(--glow-sm);
}

.footer__desc {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 280px;
}

.footer__col-title {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.footer__links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer__link {
    font-size: 0.88rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
}

.footer__link:hover {
    color: var(--neon-green);
    padding-left: 4px;
}

.footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 24px;
    border-top: 1px solid var(--dark-border);
    font-size: 0.82rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

.footer__bottom-links {
    display: flex;
    gap: 24px;
}

.footer__bottom-link {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
}

.footer__bottom-link:hover {
    color: var(--neon-green);
}

/* ========== ANIMATIONS ========== */
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(0.85); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes glowPulse {
    0%, 100% { box-shadow: var(--glow-sm); }
    50% { box-shadow: var(--glow-md); }
}

.animate-in {
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
    .features__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .how-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero__inner {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 48px;
    }

    .hero__desc {
        max-width: 100%;
    }

    .hero__actions {
        justify-content: center;
    }

    .hero__stats {
        justify-content: center;
    }

    .game-section__inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer__grid {
        grid-template-columns: 1fr 1fr;
    }

    .article-layout {
        grid-template-columns: 1fr;
    }

    .article-sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 60px 0;
    }

    .nav {
        display: none;
        position: fixed;
        top: calc(var(--header-height) - 1px);
        left: 0;
        right: 0;
        background: var(--dark-surface);
        border-bottom: 1px solid var(--dark-border);
        flex-direction: column;
        padding: 20px 24px;
        gap: 4px;
    }

    .nav.is-open {
        display: flex;
    }

    .nav__link {
        font-size: 0.95rem;
        padding: 12px 16px;
        width: 100%;
    }

    .nav__cta {
        width: 100%;
        text-align: center;
        margin-left: 0;
        margin-top: 8px;
    }

    .hamburger {
        display: flex;
    }

    .features__grid {
        grid-template-columns: 1fr;
    }

    .how-grid {
        grid-template-columns: 1fr;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .htp-intro {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .controls-grid,
    .rules-grid {
        grid-template-columns: 1fr;
    }

    .tips-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer__grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer__bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .article-content {
        padding: 28px 24px;
    }

    .legal-content {
        padding: 28px 24px;
    }

    .hero__board-preview {
        width: 240px;
        height: 240px;
    }

    .hero__visual {
        display: none;
    }
}

@media (max-width: 480px) {
    .team-grid {
        grid-template-columns: 1fr;
    }

    .about-stats {
        grid-template-columns: 1fr;
    }
}