/* Block Bloom public site · "jungle temple at night": jade and torch gold on deep green, matching the xhwgame.com studio page.
   Layout and behaviour follow the Word Odyssey site (same studio, same templates). Plain CSS, no scripts. The display font
   is the studio's self-hosted Fredoka (the game's own UI font) when the site runs under xhwgame.com; elsewhere it falls
   back to the system rounded/serif stack. Page text and structure are unchanged. */
@font-face { font-family: "Fredoka"; src: url("/assets/fonts/Fredoka.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }
:root {
  color-scheme: dark;
  --sea: #3ddc9a; /* jade: links and highlights */
  --sea-deep: #0a2018;
  --gold: #ffb33d;
  --gold-soft: rgba(255, 179, 61, 0.16);
  --cream: #07130e;
  --paper: rgba(255, 255, 255, 0.05);
  --ink: #eef3f8;
  --muted: #a9b6c4;
  --line: rgba(255, 255, 255, 0.13);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --display: "Fredoka", "Arial Rounded MT Bold", var(--sans);
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background:
    radial-gradient(80% 50% at 12% 0%, rgba(25, 195, 125, 0.22), transparent 60%),
    radial-gradient(60% 40% at 95% 30%, rgba(255, 179, 61, 0.10), transparent 60%),
    linear-gradient(180deg, #07130e 0%, #0a2018 55%, #07130e 100%);
  background-color: #07130e;
  color: var(--ink);
  font: 17px/1.65 var(--sans);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--sea); text-underline-offset: 3px; }
a:hover { color: #a6f2d0; }
a:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; background: #fff; color: #000; padding: 6px 10px; z-index: 10; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(7, 19, 14, 0.72);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 12px;
  padding-bottom: 12px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.brand:hover { color: #fff; }
.brand img { width: 40px; height: 40px; border-radius: 10px; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.15); }
.nav { display: flex; flex-wrap: wrap; gap: 6px 8px; font-size: 0.92rem; }
.nav a {
  color: var(--ink);
  text-decoration: none;
  padding: 7px 13px;
  border-radius: 99px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
}
.nav a:hover, .nav a[aria-current="page"] { color: #fff; border-color: rgba(61, 220, 154, 0.6); background: rgba(61, 220, 154, 0.12); }

.wrap { max-width: 1080px; margin: 0 auto; padding-left: 20px; padding-right: 20px; }
.wrap.narrow { max-width: 780px; }

/* Home */
.hero {
  position: relative;
  background: #000;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.hero img {
  width: 100%;
  aspect-ratio: 2 / 1;
  min-height: 460px;
  object-fit: cover;
  object-position: 80% 50%;
  transform: scale(1.03);
}
.hero-text {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 140px 0 44px;
  background: linear-gradient(to top, rgba(4, 18, 12, 0.94) 0%, rgba(4, 18, 12, 0.55) 55%, rgba(4, 18, 12, 0) 100%);
}
.hero h1 {
  margin: 0;
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(2.6rem, 7vw, 5.2rem);
  line-height: 0.95;
  letter-spacing: -0.01em;
  background: linear-gradient(180deg, #fff 30%, #fff1cf);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  /* not text-shadow: WebKit paints it over background-clip:text and greys the title (M 10-13) */
  filter: drop-shadow(0 6px 30px rgba(0, 0, 0, 0.35));
}
.hero p { margin: 14px 0 0; max-width: 34em; font-size: clamp(1.05rem, 2.2vw, 1.3rem); color: rgba(255, 255, 255, 0.9); }

.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 22px; }
.cta {
  display: inline-block;
  background: #fff;
  color: #08210f;
  border-radius: 99px;
  padding: 12px 22px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  transition: transform 0.25s, box-shadow 0.25s;
}
.cta:hover { color: #08210f; transform: translateY(-2px); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45); }
.cta-note {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 9px 16px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.cta-note::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 12px var(--gold); }

.intro { padding: 56px 0 8px; }
.intro p { font-size: clamp(1.1rem, 2vw, 1.3rem); line-height: 1.6; max-width: 38em; color: rgba(238, 243, 248, 0.92); }

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
  padding: 24px 0 48px;
}
.feature {
  padding: 22px 22px 20px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  transition: transform 0.3s, border-color 0.3s, background 0.3s;
}
.feature:hover { transform: translateY(-3px); border-color: rgba(61, 220, 154, 0.45); background: rgba(61, 220, 154, 0.07); }
.feature h2 {
  margin: 0 0 6px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.25rem;
  color: #fff;
}
.feature h2::before {
  content: "";
  display: block;
  width: 36px;
  height: 3px;
  border-radius: 3px;
  margin-bottom: 12px;
  background: linear-gradient(90deg, var(--sea), var(--gold));
}
.feature p { margin: 0; color: var(--muted); }

.shots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  padding: 16px 0 72px;
  perspective: 1200px;
}
.shots img {
  border-radius: 26px;
  border: 6px solid #0b0d10;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.12);
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.shots img:nth-child(1) { transform: rotateY(12deg) rotateZ(-2deg); }
.shots img:nth-child(2) { transform: translateY(-18px); }
.shots img:nth-child(3) { transform: rotateY(-12deg) rotateZ(2deg); }
.shots:hover img { transform: none; }

/* Documents */
.doc { padding: 44px 0 64px; }
.doc h1 {
  margin: 0 0 6px;
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.1;
  color: #fff;
}
.doc .meta { margin: 0 0 28px; color: var(--muted); font-size: 0.95rem; }
.doc h2 {
  margin: 38px 0 10px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.35rem;
  color: #fff;
}
.doc h3 { margin: 22px 0 4px; font-size: 1.05rem; color: var(--gold); }
.doc p, .doc li { color: rgba(238, 243, 248, 0.9); }
.doc strong { color: #fff; }
.doc ul { padding-left: 1.3em; }
.doc li { margin: 4px 0; }
.summary {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  border-radius: 14px;
  padding: 16px 20px;
  margin: 0 0 8px;
}
.summary ul { margin: 6px 0 0; }
.partners {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0;
  font-size: 0.95rem;
  background: rgba(255, 255, 255, 0.03);
}
.partners th, .partners td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px;
  border: 1px solid var(--line);
  color: rgba(238, 243, 248, 0.9);
}
.partners th { background: var(--gold-soft); color: #fff; font-weight: 700; }
.table-scroll { overflow-x: auto; }

.faq h2 { font-size: 1.15rem; }
.contact-box {
  background: linear-gradient(135deg, rgba(61, 220, 154, 0.14), rgba(255, 179, 61, 0.10));
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px 20px;
}
.contact-box .email { font-size: 1.2rem; font-weight: 700; overflow-wrap: anywhere; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.25);
  color: var(--muted);
  font-size: 0.88rem;
}
.site-footer .wrap { padding-top: 22px; padding-bottom: 32px; }
.site-footer p { margin: 4px 0; }
.site-footer a { color: var(--ink); }

@media (max-width: 640px) {
  body { font-size: 16px; }
  .site-header .wrap { flex-direction: column; align-items: flex-start; gap: 8px; }
  .hero img { aspect-ratio: 4 / 3; min-height: 0; object-position: 100% 50%; }
  .hero-text { position: static; padding: 22px 0 26px; background: linear-gradient(180deg, rgba(4, 18, 12, 0.96), #07130e); }
  .shots { grid-template-columns: 1fr 1fr; gap: 14px; }
  .shots img, .shots img:nth-child(n) { transform: none; border-radius: 20px; border-width: 4px; }
  .shots img:nth-child(3) { display: none; }
  .partners { font-size: 0.9rem; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
