/*
Theme Name: CIGAM
Description: Dark magical theme for the CIGAM board game (cigam.fun). WooCommerce ready.
Version: 1.0
Author: Antigravity
Text Domain: cigam
*/

:root {
  --bg: #07050d;
  --gold: #f3c76b;
  --gold-deep: #c8902e;
  --violet: #a98bff;
  --violet-deep: #6a3fe0;
  --text: #e9e3f5;
  --muted: #9c93b3;
}

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

html, body { min-height: 100%; }

body {
  background: radial-gradient(ellipse at 30% 40%, rgba(200, 144, 46, .14), transparent 55%),
              radial-gradient(ellipse at 70% 40%, rgba(106, 63, 224, .18), transparent 55%),
              var(--bg);
  color: var(--text);
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.15rem;
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: var(--gold); text-decoration: none; transition: color .3s, text-shadow .3s; }
a:hover { color: #fff; text-shadow: 0 0 12px var(--gold); }

#stars { position: fixed; inset: 0; z-index: 0; pointer-events: none; }

/* ---------- Coming soon ---------- */
.cs {
  position: relative; z-index: 1;
  min-height: 100vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 3rem 1.5rem 2rem; text-align: center;
}

.sigil {
  width: min(300px, 62vw);
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  animation: spin 90s linear infinite, breathe 6s ease-in-out infinite;
  margin-bottom: 1.5rem;
}

.mirror {
  display: flex; align-items: center; justify-content: center;
  gap: clamp(.8rem, 3vw, 2.5rem);
}

.word {
  font-family: 'Cinzel Decorative', 'Cinzel', serif;
  font-weight: 700;
  font-size: clamp(2.6rem, 10vw, 7rem);
  letter-spacing: .08em;
  line-height: 1;
  background-clip: text; -webkit-background-clip: text;
  color: transparent;
  background-size: 200% 100%;
  animation: shimmer 7s ease-in-out infinite;
}

.word--cigam {
  background-image: linear-gradient(100deg, var(--gold-deep), #fff3cf 45%, var(--gold) 55%, var(--gold-deep));
  filter: drop-shadow(0 0 18px rgba(243, 199, 107, .45));
}

/* the reflection: CIGAM seen in a mirror reads MAGIC */
.word--magic {
  transform: scaleX(-1);
  background-image: linear-gradient(100deg, var(--violet-deep), #efe8ff 45%, var(--violet) 55%, var(--violet-deep));
  filter: drop-shadow(0 0 18px rgba(169, 139, 255, .5));
  opacity: .92;
}

.glass {
  width: 2px;
  height: clamp(3rem, 11vw, 8rem);
  background: linear-gradient(to bottom, transparent, #fff, transparent);
  box-shadow: 0 0 14px #fff, 0 0 30px var(--violet);
  animation: flicker 4s ease-in-out infinite;
}

.tagline {
  margin-top: 1rem;
  font-style: italic;
  color: var(--muted);
  letter-spacing: .3em;
  font-size: clamp(.8rem, 2.2vw, 1rem);
  text-transform: uppercase;
}

.scene {
  margin-top: 3rem;
  width: min(560px, 90vw);
  aspect-ratio: 4 / 3;
  border-radius: 24px;
  overflow: hidden;
  position: relative;
  box-shadow: -14px 0 40px -10px rgba(243, 199, 107, .45),
              14px 0 40px -10px rgba(169, 139, 255, .5),
              0 30px 60px rgba(0, 0, 0, .6);
}
.scene img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 40%;
  display: block;
  transition: transform 1.2s ease;
}
.scene::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, transparent 55%, rgba(7, 5, 13, .85));
  pointer-events: none;
}
.scene:hover img { transform: scale(1.04); }

.soon {
  margin-top: 3rem;
  display: flex; flex-direction: column; gap: .4rem;
}
.soon__en, .soon__fi {
  font-family: 'Cinzel', serif;
  letter-spacing: .35em;
  text-transform: uppercase;
}
.soon__en { font-size: clamp(1.3rem, 4vw, 2.2rem); color: #fff; text-shadow: 0 0 20px rgba(243, 199, 107, .55); }
.soon__fi { font-size: clamp(1rem, 3vw, 1.5rem); color: var(--violet); text-shadow: 0 0 18px rgba(169, 139, 255, .55); }

.contact {
  margin-top: auto; padding-top: 4rem;
  color: var(--muted); font-size: 1.05rem;
}
.contact span { letter-spacing: .25em; text-transform: uppercase; font-size: .85rem; margin-right: .6rem; }
.contact a { margin: 0 .6rem; white-space: nowrap; }

/* ---------- Generic pages / shop ---------- */
.site-header, .site-footer { position: relative; z-index: 1; text-align: center; padding: 1.5rem; }
.site-header a.brand { font-family: 'Cinzel Decorative', serif; font-size: 2rem; color: var(--gold); }
.site-main { position: relative; z-index: 1; max-width: 1100px; margin: 0 auto; padding: 2rem 1.5rem 4rem; }
.site-main h1, .site-main h2 { font-family: 'Cinzel', serif; color: var(--gold); margin: 1rem 0; }
.site-footer { color: var(--muted); font-size: .9rem; }

.woocommerce .button, .woocommerce button.button, .woocommerce a.button {
  background: linear-gradient(135deg, var(--gold-deep), var(--violet-deep)) !important;
  color: #fff !important; border-radius: 999px !important;
}

/* ---------- Animations ---------- */
@keyframes spin { to { rotate: 360deg; } }
@keyframes breathe { 50% { filter: brightness(1.35) drop-shadow(0 0 30px rgba(169, 139, 255, .5)); } }
@keyframes shimmer { 50% { background-position: 100% 0; } }
@keyframes flicker { 0%, 100% { opacity: 1; } 45% { opacity: .55; } 50% { opacity: .9; } }

.fade { opacity: 0; animation: fadeUp 1.4s ease forwards; }
.fade--2 { animation-delay: .5s; }
.fade--3 { animation-delay: 1.1s; }
.fade--4 { animation-delay: 1.7s; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; }
  .fade { opacity: 1; }
}

@media (max-width: 520px) {
  .contact a { display: block; margin: .4rem 0; }
}
