:root {
    --bg-main: #0A0A0A;
    --bg-card: #1A1A1A;
    --accent-red: #8B1A1A;
    --accent-gold: #C9A84C;
    --text-main: #E8E0D8;
    --text-secondary: #8A8278;
    
    --font-serif: 'Cormorant Garamond', serif;
    --font-sans: 'Inter', sans-serif;
    
    --transition: all 0.3s ease;
}

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

body {
    background-color: var(--bg-main);
    background-image: url('atmosphere.png');
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    color: var(--text-main);
    font-family: var(--font-sans);
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    font-weight: 400;
}

/* Hero Section */
.hero {
    height: 100vh;
    background: transparent; /* BG is now on body */
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.hero-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    position: relative;
    z-index: 2;
}

.hero-text {
    position: relative;
    width: 550px;
    aspect-ratio: 832 / 1248; /* Exact match for frame.png ratio */
    padding: 14rem 4rem 8rem; /* Large top padding for the dripping sun and corners */
    background: rgba(10, 5, 15, 0.5);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: none;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Isolated Ornate Frame from Reference */
.hero-text::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url('hero-frame-trans.png') center/100% 100% no-repeat;
    pointer-events: none;
    z-index: 1;
    opacity: 1;
}

.hero-ornament {
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 300px;
    background: url('hero-decor-trans.png') center/contain no-repeat;
    pointer-events: none;
    z-index: 3;
    opacity: 1;
}

/* Remove the diamond ornament styles as we are using the real image now */
.hero-ornament i {
    display: none;
}

.title-main {
    font-size: 5rem; /* Reduced to fit the frame width */
    color: var(--accent-gold);
    line-height: 1;
    margin-bottom: 0.5rem;
    letter-spacing: 2px;
}

.subtitle {
    font-family: var(--font-sans);
    text-transform: uppercase;
    letter-spacing: 8px;
    font-size: 1rem;
    color: var(--text-main);
    margin-bottom: 2rem;
}

.hero-intro {
    font-size: 1.2rem;
    font-weight: 300;
    color: var(--text-main);
}

.hero-intro p {
    margin-bottom: 1rem;
}

/* Content */
.content-wrapper {
    /* Semi-transparent dark overlay so fixed BG is visible */
    background-color: rgba(10, 10, 10, 0.85);
    padding-bottom: 4rem;
    position: relative;
    z-index: 2;
    margin-top: -30px; /* Overlap with hero for the edge */
    backdrop-filter: blur(5px); /* Optional: blur the background slightly behind content */
    -webkit-backdrop-filter: blur(5px);
}

/* Torn Edge using mask on a pseudo-element */
.content-wrapper::before {
    content: '';
    position: absolute;
    top: -80px; /* Pull up to create the edge */
    left: 0;
    width: 100%;
    height: 80px;
    background-color: rgba(10, 10, 10, 0.85); /* Match the overlay */
    mask-image: url('mask.png');
    -webkit-mask-image: url('mask.png');
    mask-size: 100% 100%; /* Responsive stretch */
    -webkit-mask-size: 100% 100%;
    mask-position: bottom;
    -webkit-mask-position: bottom;
    mask-repeat: no-repeat;
    -webkit-mask-repeat: no-repeat;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.section {
    padding: 4rem 0 2rem;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-title {
    font-size: 3.5rem;
    color: var(--accent-gold);
    text-align: center;
    margin-bottom: 3rem;
}

h2 {
    font-size: 2.5rem;
    color: var(--accent-gold);
    margin: 3rem 0 1.5rem;
    text-align: center;
}

h3 {
    font-size: 1.8rem;
    color: var(--text-main);
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(201, 168, 76, 0.3); /* Gold border */
    padding-bottom: 0.5rem;
}

p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: var(--text-main);
}

ul {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

li {
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
    color: var(--text-main);
}

strong {
    color: var(--accent-gold);
    font-weight: 600;
}

hr {
    border: 0;
    height: 1px;
    background: rgba(201, 168, 76, 0.2);
    margin: 3rem 0;
}

/* Glassmorphism 2.0 Shared Panel */
.glass-panel-2 {
    background: rgba(15, 10, 20, 0.45);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-top: 1px solid rgba(201, 168, 76, 0.35);
    border-left: 1px solid rgba(201, 168, 76, 0.25);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 0 30px rgba(201, 168, 76, 0.03);
    color: var(--text-main);
}

.about-panel {
    padding: 2.5rem;
    margin-bottom: 3rem;
}

/* Rules Widget (Pill style) */
.rules-container {
    padding: 2rem;
    position: relative;
    margin-bottom: 3rem;
}

/* Removed old borders from rules-container since it will use glass-panel-2 */

.rules-container::before {
    display: none;
}

.rules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.rule-item {
    text-align: left;
}

.rule-item p {
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* Team Widget (Vertical Pill Badge with Curved Text) */
.team-grid {
    display: flex;
    justify-content: center;
    gap: 4rem;
    flex-wrap: wrap;
    margin-top: 2rem;
    padding-bottom: 2rem;
}

.team-member-wrapper {
    position: relative;
    width: 180px;
    display: flex;
    justify-content: center;
}

.team-member {
    text-align: center;
    width: 180px;
    padding: 0 0 2.5rem 0;
    border-radius: 100px;
    border: 1px solid rgba(201, 168, 76, 0.5); /* Outer decorative frame */
    outline: 1px solid rgba(201, 168, 76, 0.2); /* Inner decorative frame */
    outline-offset: -6px;
    background: rgba(15, 10, 20, 0.45);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.4), inset 0 0 20px rgba(201, 168, 76, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: var(--transition);
    overflow: hidden;
}

.team-member:hover {
    transform: translateY(-5px);
    border-color: rgba(201, 168, 76, 0.8);
    outline-color: rgba(201, 168, 76, 0.4);
    box-shadow: 0 15px 25px rgba(0,0,0,0.5), inset 0 0 30px rgba(201, 168, 76, 0.1);
}

.avatar {
    width: 100%;
    height: 160px;
    border-radius: 0;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-bottom: 1px solid rgba(201, 168, 76, 0.5);
    font-size: 1.8rem;
    color: var(--accent-gold);
    font-family: var(--font-serif);
    text-shadow: 0 0 10px rgba(201, 168, 76, 0.4);
    overflow: hidden;
}

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

.team-member h3 {
    font-size: 1.2rem;
    margin-bottom: 0;
    margin-top: 1.5rem;
    padding: 0 1rem;
    border: none;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.team-member h3::after {
    content: '';
    display: block;
    width: 30px;
    height: 1px;
    background: var(--accent-gold);
    margin: 1rem auto 0;
    opacity: 0.4;
}

.curved-role {
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 220px;
    height: 110px;
    pointer-events: none;
    overflow: visible;
}

.curved-role text {
    font-family: var(--font-sans);
    font-size: 11px;
    fill: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Layered Event Cards */
.schedule-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem 2rem;
}

.layered-card {
    position: relative;
    padding: 1.5rem;
    z-index: 2;
    transition: var(--transition);
    overflow: hidden;
}

.layered-card::before {
    display: none;
}

.layered-card:hover {
    transform: translateY(-4px);
    border-color: rgba(201, 168, 76, 0.4);
}

.layered-card:hover::before {
    transform: rotate(-4deg) scale(1.04);
    border-color: rgba(201, 168, 76, 0.3);
}

.event-icon-prominent {
    display: block;
    font-size: 2.5rem;
    color: var(--accent-gold);
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 10px rgba(201, 168, 76, 0.6));
    opacity: 0.9;
}

.event-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(8, 5, 12, 0.8); /* Darker background for visibility on images */
    color: var(--accent-gold);
    padding: 4px 12px;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    border: 1px solid var(--accent-gold);
    border-radius: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    z-index: 5;
    backdrop-filter: blur(4px);
}

.layered-card h3 {
    border: none;
    margin-bottom: 0.5rem;
    font-size: 1.4rem;
    position: relative;
    z-index: 1;
}

.layered-card p {
    font-size: 0.95rem;
    position: relative;
    z-index: 1;
}

.event-meta {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-family: var(--font-sans);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    z-index: 1;
}

.event-image-container {
    width: calc(100% + 3rem);
    height: 150px;
    margin: -1.5rem -1.5rem 1rem -1.5rem;
    overflow: hidden;
    border-bottom: 1px solid rgba(201, 168, 76, 0.3);
}

.event-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
    transition: var(--transition);
}

.layered-card:hover .event-card-img {
    opacity: 1;
    transform: scale(1.05);
}

/* Compact Book Button */
.btn-book-compact {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: transparent;
    border: 1px solid rgba(201, 168, 76, 0.4);
    color: var(--accent-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: var(--transition);
    z-index: 2;
    text-decoration: none;
}

.btn-book-compact:hover {
    background: var(--accent-red);
    border-color: var(--accent-red);
    color: var(--text-main);
    box-shadow: 0 0 10px rgba(139, 26, 26, 0.5);
}

/* Buttons */
.btn-glass {
    display: inline-block;
    padding: 1rem 2.5rem;
    margin-top: 1rem;
    background: transparent;
    color: var(--accent-gold);
    text-decoration: none;
    font-family: var(--font-sans);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    border: 1px solid var(--accent-gold);
    border-radius: 2px;
    transition: var(--transition);
    font-weight: 600;
}

.btn-glass:hover {
    background: var(--accent-red);
    color: var(--text-main);
    border-color: var(--accent-red);
}

/* Footer */
.footer {
    width: 100%;
    background-color: #08050c; /* Deep contrasting dark color */
    border-top: 1px solid rgba(201, 168, 76, 0.4);
    padding: 1rem 0;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.8);
    position: relative;
    z-index: 10;
}

.footer-compact {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    font-family: var(--font-sans);
    color: var(--text-secondary);
    padding: 0;
}

.footer-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
}

.footer-item i {
    color: var(--accent-gold);
    font-size: 1rem;
}

.telegram-link {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.telegram-link:hover {
    color: var(--accent-red);
}

.disclaimer-text {
    font-size: 0.75rem;
    opacity: 0.7;
}

.copyright-text {
    font-size: 0.75rem;
    opacity: 0.5;
}

/* Responsive */
@media (max-width: 768px) {
    .title-main { font-size: 4rem; }
    .section { padding: 3rem 0; }
    .footer-compact { gap: 0.8rem; flex-direction: column; text-align: center; }
    .glass-card { padding: 1.5rem; }
}
