@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600&family=Lora:ital,wght@0,400;0,600;1,400&display=swap');

:root {
  --bg: #0D1017;
  --surface: #171D28;
  --surface-2: #232C39;
  --midnight: #203A5E;
  --burgundy: #7A2038;
  --wine: #9C3149;
  --gold: #C7A35A;
  --bronze: #9C7440;
  --ivory: #D8D1C4;
  --silver: #C9D3DD;
  --text: #F5F3EF;
  --text-sec: #D9D6CF;
  --muted: #97A0AC;
  --grad-accent: linear-gradient(135deg, #7A2038, #C7A35A);
  --grad-sec: linear-gradient(135deg, #203A5E, #9C3149);
  --font-head: 'Cinzel', serif;
  --font-body: 'Lora', serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { background-color: var(--bg); color: var(--text); font-family: var(--font-body); line-height: 1.6; overflow-x: hidden; }
h1, h2, h3, h4, h5, h6, .cinzel { font-family: var(--font-head); font-weight: 600; }
a { color: var(--gold); text-decoration: none; transition: all 0.25s ease; }
a:hover { color: var(--ivory); }
ul { list-style: none; }

.btn {
  display: inline-block; padding: 10px 24px; background: var(--grad-accent); color: var(--text);
  border: 1px solid var(--gold); border-radius: 4px; font-family: var(--font-head);
  text-transform: uppercase; font-size: 0.9rem; letter-spacing: 1px; cursor: pointer; transition: all 0.25s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 4px 15px rgba(199, 163, 90, 0.3); color: var(--ivory); }
.btn-sec { background: transparent; border-color: var(--silver); }
.btn-sec:hover { background: rgba(201, 211, 221, 0.1); box-shadow: none; }

.ribbon {
  background: var(--wine); color: var(--text); text-align: center; padding: 6px 15px;
  font-size: 0.85rem; display: flex; justify-content: center; align-items: center; gap: 15px;
}
.ribbon a { color: var(--gold); font-weight: bold; }

.header-wrap { position: sticky; top: 15px; z-index: 100; padding: 0 20px; margin-bottom: 20px; }
.main-header {
  background: rgba(23, 29, 40, 0.85); backdrop-filter: blur(10px); border: 1px solid var(--gold);
  border-radius: 12px; max-width: 1200px; margin: 0 auto; padding: 10px 25px;
  display: flex; justify-content: space-between; align-items: center;
}
.logo { display: block; height: 45px; width: auto; object-fit: contain; }
.nav-links { display: flex; gap: 20px; }
.nav-links a { color: var(--text-sec); font-size: 0.95rem; }
.nav-links a:hover { color: var(--gold); }

.hero { max-width: 1200px; margin: 0 auto 40px; display: grid; grid-template-columns: 55% 45%; gap: 30px; padding: 0 20px; align-items: center; }
.hero-content h1 { font-size: 3.2rem; color: var(--ivory); line-height: 1.1; margin-bottom: 20px; }
.hero-content p { font-size: 1.1rem; color: var(--text-sec); margin-bottom: 30px; }
.hero-btns { display: flex; gap: 15px; }
.hero-img-wrap { position: relative; overflow: hidden; border-radius: 12px; border: 1px solid var(--bronze); }
.hero-img { width: 100%; display: block; transition: transform 0.25s ease; }
.hero-img-wrap:hover .hero-img { transform: scale(1.02); }
.floating-card {
  position: absolute; background: rgba(13, 16, 23, 0.8); backdrop-filter: blur(5px);
  border: 1px solid var(--gold); padding: 8px 16px; color: var(--ivory);
  font-family: var(--font-head); font-size: 0.9rem; border-radius: 6px;
}
.card-top { top: 20px; right: 20px; }
.card-bot { bottom: 20px; left: 20px; }

.legacy { max-width: 1000px; margin: 0 auto 40px; display: flex; justify-content: space-between; align-items: center; position: relative; padding: 0 20px; }
.legacy::before { content: ''; position: absolute; top: 50%; left: 50px; right: 50px; height: 1px; background: var(--gold); z-index: 0; opacity: 0.3; }
.legacy-item { background: var(--surface); border: 1px solid var(--bronze); padding: 10px 20px; border-radius: 20px; z-index: 1; font-family: var(--font-head); color: var(--ivory); font-size: 0.95rem; }

.game-section { max-width: 1020px; margin: 0 auto 50px; padding: 0 20px; }
.game-frame {
  background: var(--surface-2); border: 4px solid var(--burgundy); border-radius: 30px;
  position: relative; padding: 10px; box-shadow: 0 0 30px rgba(122, 32, 56, 0.2);
}
.game-frame::before, .game-frame::after { content: ''; position: absolute; width: 40px; height: 40px; border: 2px solid var(--gold); z-index: 10; }
.game-frame::before { top: 10px; left: 10px; border-right: none; border-bottom: none; border-radius: 20px 0 0 0; }
.game-frame::after { bottom: 10px; right: 10px; border-left: none; border-top: none; border-radius: 0 0 20px 0; }
.iframe-container { width: 100%; height: 600px; border-radius: 20px; overflow: hidden; background: #000; }
.iframe-container iframe { width: 100%; height: 100%; border: none; }
.game-controls { display: flex; justify-content: center; gap: 20px; margin-top: 15px; }

.gallery { max-width: 1200px; margin: 0 auto 50px; padding: 0 20px; }
.gallery-row { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: center; margin-bottom: 30px; }
.gallery-row:last-child { margin-bottom: 0; }
.gallery-img { width: 100%; border-radius: 12px; border: 1px solid var(--bronze); display: block; }
.gallery-text h3 { color: var(--ivory); font-size: 1.8rem; margin-bottom: 10px; font-family: var(--font-head); }
.gallery-text p { color: var(--text-sec); margin-bottom: 15px; }

.archives { max-width: 1200px; margin: 0 auto 50px; padding: 0 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.archives-img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; border: 1px solid var(--bronze); }
.archives-content h2 { color: var(--gold); font-size: 2rem; margin-bottom: 20px; border-bottom: 1px solid var(--wine); padding-bottom: 10px; font-family: var(--font-head); }
.archives-content ul { margin-top: 20px; display: flex; flex-direction: column; gap: 15px; }
.archives-content li { display: flex; gap: 10px; color: var(--ivory); }
.archives-content li::before { content: '♦'; color: var(--gold); }

.contact-section { max-width: 1200px; margin: 0 auto 50px; padding: 0 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.contact-left h2 { font-size: 2rem; color: var(--ivory); margin-bottom: 10px; font-family: var(--font-head); }
.contact-left p { color: var(--text-sec); margin-bottom: 20px; }
.contact-email { font-size: 1.2rem; color: var(--gold); font-family: var(--font-head); display: block; margin-bottom: 30px; }
.mini-faq { background: var(--surface); padding: 20px; border-radius: 12px; border: 1px solid var(--midnight); }
.mini-faq h4 { color: var(--ivory); margin-bottom: 5px; font-family: var(--font-head); }
.mini-faq p { font-size: 0.9rem; color: var(--muted); margin-bottom: 15px; }
.contact-form { background: var(--surface); padding: 30px; border-radius: 12px; border: 1px solid var(--bronze); }
.form-group { margin-bottom: 15px; }
.form-group label { display: block; font-size: 0.9rem; color: var(--text-sec); margin-bottom: 5px; }
.form-group input, .form-group textarea {
  width: 100%; padding: 10px; background: var(--bg); border: 1px solid var(--midnight);
  color: var(--text); border-radius: 4px; font-family: var(--font-body);
}
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--gold); }

footer { border-top: 1px solid var(--gold); background: var(--surface); padding: 50px 20px 20px; margin-top: 40px; }
.footer-cols { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; margin-bottom: 40px; }
.footer-col h4 { color: var(--ivory); margin-bottom: 15px; font-size: 1.1rem; font-family: var(--font-head); }
.footer-col ul { display: flex; flex-direction: column; gap: 8px; }
.footer-col a { color: var(--text-sec); font-size: 0.9rem; }
.footer-col a:hover { color: var(--gold); }
.footer-bottom { max-width: 1200px; margin: 0 auto; text-align: center; padding-top: 20px; border-top: 1px solid var(--midnight); }
.footer-bottom .logo { height: 35px; margin: 0 auto 10px; }
.footer-bottom p { color: var(--muted); font-size: 0.8rem; max-width: 800px; margin: 0 auto 5px; }

.cookie-popup {
  position: fixed; bottom: 20px; left: 20px; width: 320px; background: rgba(23, 29, 40, 0.95);
  backdrop-filter: blur(10px); border: 1px solid var(--gold); border-radius: 22px;
  padding: 20px; z-index: 1000; display: none; box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.cookie-popup h4 { color: var(--ivory); margin-bottom: 10px; font-family: var(--font-head); }
.cookie-popup p { font-size: 0.85rem; color: var(--text-sec); margin-bottom: 15px; }
.cookie-btns { display: flex; gap: 10px; }

.page-container { max-width: 800px; margin: 40px auto; padding: 40px; background: var(--surface); border: 1px solid var(--bronze); border-radius: 12px; }
.page-container h1 { color: var(--ivory); margin-bottom: 20px; text-align: center; border-bottom: 1px solid var(--wine); padding-bottom: 15px; font-family: var(--font-head); }
.page-container h2 { color: var(--gold); margin: 20px 0 10px; font-family: var(--font-head); }
.page-container p { margin-bottom: 15px; color: var(--text-sec); }
.return-home { display: flex; justify-content: center; margin-top: 30px; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .archives, .contact-section, .gallery-row { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .legacy { flex-direction: column; gap: 10px; }
  .legacy::before { display: none; }
  .nav-links { display: none; }
}
@media (max-width: 500px) {
  .footer-cols { grid-template-columns: 1fr; }
  .header-wrap { padding: 0 10px; }
  .main-header { padding: 10px 15px; }
  .hero-content h1 { font-size: 2.2rem; }
  .iframe-container { height: 400px; }
}