@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600;700&family=Poppins:wght@400;500;600;700&display=swap');

[hidden] { display: none !important; }

:root {
  --pine: #0f2421;
  --moss: #1b3a36;
  --sage: #63b4a5;
  --sand: #f2cf8d;
  --text: #f4f2e9;
  --muted: #c6d2cf;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 90% 5%, rgba(99, 180, 165, 0.2), transparent 40%),
    radial-gradient(circle at 5% 30%, rgba(242, 207, 141, 0.16), transparent 45%),
    linear-gradient(180deg, #0c1c1a 0%, #0e2421 52%, #091513 100%);
}

.mast-z {
  position: sticky;
  top: 0;
  z-index: 63;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.82rem clamp(1rem, 4vw, 3rem);
  background: rgba(11, 28, 25, 0.95);
  border-bottom: 1px solid rgba(99, 180, 165, 0.35);
}

.mast-logo img { width: clamp(170px, 30vw, 250px); display: block; }

.mast-button {
  margin-left: auto;
  border: 1px solid rgba(242, 207, 141, 0.55);
  border-radius: 10px;
  background: transparent;
  color: #f7dda9;
  padding: 0.36rem 0.74rem;
  font-weight: 600;
}

.mast-nav {
  display: flex;
  list-style: none;
  gap: 0.6rem;
  margin: 0;
  padding: 0;
}

.mast-nav a {
  color: var(--text);
  text-decoration: none;
  padding: 0.33rem 0.61rem;
  border-radius: 9px;
  font-weight: 500;
}

.mast-nav a[aria-current='page'],
.mast-nav a:hover { background: rgba(99, 180, 165, 0.22); }

.zone-z {
  width: min(1500px, 97vw);
  margin: 1.2rem auto 2.1rem;
  display: grid;
  gap: 1rem;
}

.hero-zp {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 1rem;
}

.panel-z,
.stats-z,
.notice-z,
.frame-z,
.story-z article,
.sheet-z {
  background: linear-gradient(170deg, rgba(25, 50, 47, 0.92), rgba(14, 33, 30, 0.95));
  border: 1px solid rgba(102, 174, 160, 0.34);
  border-radius: 20px;
}

.panel-z { padding: 1.3rem; }
.panel-z h1 {
  margin: 0;
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.2rem, 5.3vw, 3.6rem);
  line-height: 0.98;
  color: #f8e5bf;
}
.panel-z p { color: #d3dfdc; line-height: 1.64; max-width: 68ch; }

.mark-z { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.mark-z span {
  border: 1px solid rgba(242, 207, 141, 0.4);
  border-radius: 999px;
  padding: 0.3rem 0.63rem;
  font-size: 0.82rem;
  color: #ffe8bf;
}

.stats-z {
  padding: 1rem;
  display: grid;
  gap: 0.6rem;
}

.stats-z div {
  border-radius: 13px;
  border: 1px solid rgba(104, 171, 160, 0.35);
  background: rgba(9, 23, 21, 0.62);
  padding: 0.74rem;
}
.stats-z strong { display: block; color: #88d4c5; font-size: 1.18rem; }

.notice-z {
  padding: 0.82rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
}

.notice-z p {
  margin: 0;
  border-radius: 12px;
  background: rgba(7, 21, 19, 0.68);
  border-left: 4px solid rgba(242, 207, 141, 0.7);
  padding: 0.67rem;
}

.frame-z { padding: 1rem; }
.frame-z h2 {
  margin: 0 0 0.7rem;
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  color: #f4ddb0;
}

.frame-z iframe {
  width: 100%;
  min-height: 550px;
  border: 0;
  border-radius: 15px;
  background: #000;
}

.story-z {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.story-z article { padding: 1rem; }
.story-z h3 {
  margin-top: 0;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.45rem;
  color: #f2d29b;
}
.story-z p { margin-bottom: 0; color: #c2d6d1; }

.sheet-z {
  width: min(1120px, 96vw);
  margin: 1rem auto;
  padding: 1.2rem;
}

.sheet-z h1 {
  margin-top: 0;
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 5vw, 3rem);
  color: #f3d8a4;
}
.sheet-z h2 {
  margin: 1rem 0 0.45rem;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem;
  color: #f0c986;
}
.sheet-z p,
.sheet-z li { line-height: 1.65; color: #c7dbd6; }

footer {
  margin-top: 1rem;
  border-top: 1px solid rgba(99, 180, 165, 0.35);
  background: rgba(8, 19, 18, 0.92);
  padding: 1rem clamp(1rem, 4vw, 2.5rem) 1.6rem;
}

footer p { margin: 0 0 0.5rem; color: #c8dbd5; }
.links-z { display: flex; flex-wrap: wrap; gap: 1rem; }
.links-z a { color: #f4d39a; }

.mask-z {
  position: fixed;
  inset: 0;
  z-index: 99;
  display: grid;
  place-items: center;
  background: rgba(4, 10, 9, 0.9);
  padding: 1rem;
}

.mask-card {
  width: min(470px, 95vw);
  border-radius: 16px;
  background: #15312d;
  border: 1px solid rgba(99, 180, 165, 0.45);
  padding: 1.1rem;
}

.mask-actions { display: flex; gap: 0.6rem; }
.mask-actions button {
  flex: 1;
  border: 0;
  border-radius: 10px;
  padding: 0.65rem;
  font-weight: 600;
}
#z-yes { background: linear-gradient(120deg, #f2cf8d, #63b4a5); color: #0f2925; }
#z-no { background: #335d56; color: #eff8f5; }

@media (max-width: 930px) {
  .hero-zp { grid-template-columns: 1fr; }
  .story-z { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .mast-z { flex-wrap: wrap; }
  .mast-nav {
    width: 100%;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    margin-top: 0.4rem;
  }
  .mast-nav.open-z { display: flex; }
  .notice-z { grid-template-columns: 1fr; }
  .story-z { grid-template-columns: 1fr; }
  .frame-z iframe { min-height: 420px; }
}
