/* Crythory.xyz - Crystal Teal Theme */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=Work+Sans:wght@300;400;500;600&display=swap');

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

:root {
    --crys-dark: #051414;
    --crys-deep: #0a2424;
    --crys-teal: #14b8a6;
    --crys-aqua: #2dd4bf;
    --crys-light: #ccfbf1;
    --crys-white: #f0fdfa;
    --crys-gray: #5eada3;
}

html { scroll-behavior: smooth; }
body { font-family: 'Work Sans', sans-serif; background: var(--crys-dark); color: var(--crys-white); line-height: 1.75; }

.crys-header {
    position: fixed; width: 100%; top: 0; z-index: 1000;
    background: rgba(5, 20, 20, 0.95); backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(20, 184, 166, 0.15); padding: 1rem 0;
}
.header-wrap { max-width: 1480px; margin: 0 auto; padding: 0 2rem; display: flex; justify-content: space-between; align-items: center; }
.crys-logo { font-family: 'Playfair Display', serif; font-size: 2rem; font-weight: 700; color: var(--crys-teal); text-decoration: none; letter-spacing: 1px; }

.nav-btn { display: none; background: none; border: none; cursor: pointer; padding: 5px; }
.nav-btn span { display: block; width: 28px; height: 2px; background: var(--crys-teal); margin: 6px 0; transition: 0.3s; }
.nav-btn.on span:first-child { transform: rotate(45deg) translate(6px, 6px); }
.nav-btn.on span:nth-child(2) { opacity: 0; }
.nav-btn.on span:last-child { transform: rotate(-45deg) translate(6px, -6px); }

.crys-nav { display: flex; list-style: none; gap: 0.5rem; }
.crys-nav a { font-weight: 500; color: var(--crys-gray); text-decoration: none; padding: 0.6rem 1.3rem; border-radius: 6px; transition: all 0.3s; font-size: 0.95rem; }
.crys-nav a:hover { color: var(--crys-white); background: rgba(20, 184, 166, 0.15); }

.crystal-hero {
    min-height: 100vh; padding: 9rem 2rem 5rem;
    display: flex; align-items: center; justify-content: center; text-align: center;
    background: radial-gradient(ellipse at 50% 30%, rgba(20, 184, 166, 0.1) 0%, transparent 50%), var(--crys-dark);
}
.hero-inner { max-width: 900px; }
.hero-inner h1 { font-family: 'Playfair Display', serif; font-size: clamp(2.5rem, 6vw, 4.5rem); line-height: 1.15; margin-bottom: 1.5rem; color: var(--crys-white); }
.hero-inner h1 em { font-style: normal; color: var(--crys-teal); }
.hero-text { font-size: 1.2rem; color: var(--crys-gray); margin-bottom: 2.5rem; line-height: 1.9; }

.badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }
.badge { display: inline-flex; align-items: center; gap: 0.5rem; background: rgba(20, 184, 166, 0.12); border: 1px solid rgba(20, 184, 166, 0.3); padding: 0.7rem 1.4rem; border-radius: 6px; font-weight: 600; color: var(--crys-aqua); font-size: 0.9rem; }

.game-section { padding: 5rem 2rem; background: linear-gradient(180deg, var(--crys-deep) 0%, var(--crys-dark) 100%); }
.section-title { font-family: 'Playfair Display', serif; font-size: 2.2rem; text-align: center; color: var(--crys-teal); margin-bottom: 2rem; }
.game-container { max-width: 1280px; margin: 0 auto; background: var(--crys-dark); border: 1px solid rgba(20, 184, 166, 0.2); border-radius: 14px; padding: 1.5rem; box-shadow: 0 0 50px rgba(20, 184, 166, 0.1); }
.game-frame { width: 100%; height: 620px; border: none; border-radius: 10px; background: #000; }

.highlights { padding: 6rem 2rem; max-width: 1400px; margin: 0 auto; }
.highlights-title { font-family: 'Playfair Display', serif; font-size: 2rem; text-align: center; color: var(--crys-teal); margin-bottom: 3rem; }
.highlights-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.highlight { background: linear-gradient(145deg, var(--crys-deep), rgba(10, 36, 36, 0.5)); border: 1px solid rgba(20, 184, 166, 0.15); border-radius: 12px; padding: 2.5rem; transition: all 0.4s; }
.highlight:hover { border-color: var(--crys-teal); transform: translateY(-6px); box-shadow: 0 20px 40px rgba(20, 184, 166, 0.15); }
.highlight-icon { font-size: 2.8rem; margin-bottom: 1.2rem; }
.highlight h3 { font-family: 'Playfair Display', serif; font-size: 1.3rem; color: var(--crys-aqua); margin-bottom: 1rem; }
.highlight p { color: var(--crys-gray); line-height: 1.8; }

.about-area { padding: 5rem 2rem; background: var(--crys-deep); }
.about-wrap { max-width: 950px; margin: 0 auto; text-align: center; }
.about-area h2 { font-family: 'Playfair Display', serif; font-size: 2.2rem; color: var(--crys-teal); margin-bottom: 2rem; }
.about-area p { color: var(--crys-gray); font-size: 1.1rem; margin-bottom: 1.5rem; line-height: 1.9; }

.crys-footer { background: var(--crys-dark); border-top: 1px solid rgba(20, 184, 166, 0.1); padding: 3rem 2rem; text-align: center; }
.foot-brand { font-family: 'Playfair Display', serif; font-size: 1.5rem; font-weight: 700; color: var(--crys-teal); margin-bottom: 1.5rem; }
.foot-support { margin-bottom: 1.5rem; }
.foot-support h4 { font-size: 0.9rem; color: var(--crys-light); margin-bottom: 0.8rem; font-weight: 400; }
.foot-support a { color: var(--crys-gray); text-decoration: none; margin: 0 0.8rem; font-size: 0.9rem; transition: color 0.3s; }
.foot-support a:hover { color: var(--crys-teal); }
.foot-notice { color: var(--crys-gray); font-size: 0.85rem; }

.age-modal { position: fixed; inset: 0; background: rgba(5, 20, 20, 0.98); display: flex; align-items: center; justify-content: center; z-index: 10000; padding: 2rem; }
.age-modal.hide { display: none; }
.modal-box { background: var(--crys-deep); border: 2px solid var(--crys-teal); border-radius: 18px; padding: 3rem; max-width: 480px; text-align: center; box-shadow: 0 0 70px rgba(20, 184, 166, 0.25); }
.modal-box h2 { font-family: 'Playfair Display', serif; font-size: 1.8rem; color: var(--crys-teal); margin-bottom: 1rem; }
.modal-box p { color: var(--crys-gray); margin-bottom: 2rem; line-height: 1.8; }
.modal-btns { display: flex; gap: 1rem; justify-content: center; }

.crys-btn { font-family: 'Work Sans', sans-serif; font-weight: 600; padding: 0.9rem 2.2rem; border: none; border-radius: 8px; cursor: pointer; transition: all 0.3s; font-size: 0.95rem; }
.crys-btn.main { background: linear-gradient(135deg, var(--crys-teal), var(--crys-aqua)); color: var(--crys-dark); }
.crys-btn.main:hover { transform: scale(1.05); box-shadow: 0 0 30px rgba(20, 184, 166, 0.5); }
.crys-btn.alt { background: transparent; color: var(--crys-gray); border: 2px solid var(--crys-gray); }
.crys-btn.alt:hover { border-color: var(--crys-teal); color: var(--crys-teal); }

.page-banner { padding: 10rem 2rem 4rem; text-align: center; background: radial-gradient(ellipse at center, rgba(20, 184, 166, 0.08) 0%, transparent 50%), var(--crys-dark); }
.page-banner h1 { font-family: 'Playfair Display', serif; font-size: clamp(2rem, 4vw, 3rem); color: var(--crys-teal); }
.page-text { max-width: 920px; margin: 0 auto; padding: 4rem 2rem; }
.page-text h2 { font-family: 'Playfair Display', serif; font-size: 1.4rem; color: var(--crys-aqua); margin: 2.5rem 0 1rem; }
.page-text p { color: var(--crys-gray); margin-bottom: 1.2rem; line-height: 1.9; }
.page-text ul { padding-left: 1.5rem; margin-bottom: 1.5rem; }
.page-text li { color: var(--crys-gray); margin-bottom: 0.7rem; line-height: 1.8; }

@media (max-width: 768px) {
    .nav-btn { display: block; }
    .crys-nav { position: fixed; top: 0; right: -100%; width: 80%; max-width: 320px; height: 100vh; background: var(--crys-deep); flex-direction: column; padding: 5rem 2rem 2rem; transition: right 0.4s; border-left: 1px solid rgba(20, 184, 166, 0.2); }
    .crys-nav.active { right: 0; }
    .crys-nav a { display: block; padding: 1rem; border-bottom: 1px solid rgba(20, 184, 166, 0.1); }
    .game-frame { height: 400px; }
    .badges { flex-direction: column; align-items: center; }
    .modal-btns { flex-direction: column; }
    .foot-support a { display: block; margin: 0.4rem 0; }
}
@media (max-width: 480px) { .crys-logo { font-size: 1.5rem; } .hero-inner h1 { font-size: 2rem; } .game-frame { height: 320px; } }
