/* Sinub SMP — built from Figma file "Sinubsmpweb" (Page 1). */

/* The design uses a "Minecraft" display font. If it is installed locally it is used;
   otherwise Pixelify Sans (Google Fonts) stands in. To ship the real font, add a
   url(...) source here pointing at your licensed Minecraft.woff2. */
@font-face {
  font-family: "Minecraft";
  src: local("Minecraft"), local("Minecraft Regular");
  font-display: swap;
}

:root {
  --navy-900: #0d1b3e;
  --teal: #4eadaf;
  --teal-dark: #377a98;
  --cyan: #00e5ff;
  --amber: #fbbf24;
  --red: #f87171;
  --mint: #5eead4;
  --ink: rgba(216, 234, 255, 0.8);
  --ink-strong: rgba(216, 234, 255, 0.9);
  --muted: #8fb7d9;
  --rule: rgba(0, 210, 255, 0.3);
  --rule-soft: rgba(0, 210, 255, 0.2);

  --font-pixel: "Minecraft", "Pixelify Sans", monospace;
  --font-roboto: "Roboto", system-ui, sans-serif;
  --font-jakarta: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-mono: "Liberation Mono", Menlo, Consolas, monospace;

  --glow-title: 0 0 25px rgba(0, 180, 255, 0.4), 0 0 10px rgba(0, 229, 255, 0.7);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: #fff;
  font-family: var(--font-jakarta);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p, h1, h2, h3, h4 { margin: 0; font-weight: inherit; }

.wrap {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
}
/* Decorative glows are wider than small screens; keep them from causing sideways scroll. */
main.wrap { overflow-x: clip; }

/* ---------- Page backgrounds ---------- */

.page-home {
  background:
    radial-gradient(600px 654px at 50% 654px, rgba(78, 173, 175, 0.078), rgba(78, 173, 175, 0)),
    linear-gradient(180deg, #0d1b3e 0%, #1a3a6b 40%, #2444a0 70%, #377a98 100%);
  min-height: 100vh;
}

.page-rules {
  background:
    radial-gradient(5925px 5434px at 50% 103px,
      rgba(14, 42, 88, 1) 0%,
      rgba(26, 58, 107, 0.8) 64.4%,
      rgba(39, 87, 124, 0.85) 73.3%,
      rgba(52, 116, 141, 0.9) 82.2%,
      rgba(78, 173, 175, 1) 100%),
    #fff;
  min-height: 100vh;
}

/* ---------- Navigation ---------- */

.nav {
  position: relative;
  z-index: 10;
  border-bottom: 1px solid var(--teal);
  background: linear-gradient(180deg, rgba(13, 27, 62, 0.8), rgba(13, 27, 62, 0.6));
}
.page-rules .nav { background: rgba(13, 27, 62, 0.6); }

.nav__inner {
  height: 87px; /* + 1px border = 88px, as in Figma */
  padding-inline: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav__logo {
  position: relative;
  width: 120px;
  height: 36px;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
}
.nav__logo img {
  position: absolute;
  top: 0;
  left: -0.04%;
  width: 172.51%;
  height: 138.58%;
  max-width: none;
}

.nav__links {
  display: flex;
  gap: 40px;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__links a {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 9px;
  font-family: var(--font-roboto);
  font-style: italic;
  font-size: 16px;
  color: #bee6e6;
  transition: color 0.15s;
}
.nav__links a::after {
  content: "";
  height: 1px;
  width: 100%;
  background: transparent;
  transition: background 0.15s;
}
.nav__links a:hover { color: #e8f8f8; }
.nav__links a[aria-current="page"] {
  color: var(--teal);
  font-weight: 600;
}
.nav__links a[aria-current="page"]::after { background: var(--teal); }

.btn-signup {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 149px;
  height: 44px;
  border-radius: 10px;
  background: linear-gradient(to left, #0f4c5c, #25b0db);
  filter: drop-shadow(0 4px 2px rgba(0, 0, 0, 0.25));
  font-family: var(--font-pixel);
  font-size: 20px;
  color: var(--navy-900);
  text-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
  transition: filter 0.15s;
}
.btn-signup:hover { filter: drop-shadow(0 4px 2px rgba(0, 0, 0, 0.25)) brightness(1.12); }

/* ---------- Buttons ---------- */

.btn-cta {
  display: grid;
  place-items: center;
  width: 200px;
  height: 52px;
  border: 1.5px solid var(--teal);
  border-radius: 2px;
  background: linear-gradient(165.4deg, var(--teal) 25%, var(--teal-dark) 75%);
  box-shadow: 0 4px 20px rgba(78, 173, 175, 0.6);
  font-family: var(--font-pixel);
  font-size: 16px;
  color: #000;
  transition: box-shadow 0.15s, transform 0.15s;
}
.btn-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 28px rgba(78, 173, 175, 0.8);
}
.btn-cta--lg {
  height: 56px;
  box-shadow: 0 4px 28px 4px rgba(78, 173, 175, 0.7);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  padding: 80px 24px 96px;
  text-align: center;
}
.hero__glow {
  position: absolute;
  top: 20px;
  left: 50%;
  width: 700px;
  height: 280px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(78, 173, 175, 0.15), rgba(78, 173, 175, 0));
  pointer-events: none;
}
.page-rules .hero__glow {
  background: radial-gradient(closest-side, rgba(78, 173, 175, 0.2), rgba(78, 173, 175, 0));
}
/* Figma: drop shadow 0 -6 82.2 -25 rgba(78,173,175,.7). A CSS box-shadow leaves a hard
   "hole" under a transparent PNG, so the glow is a blurred layer behind the image. */
.hero h1 {
  position: relative;
  width: 739px;
  max-width: 100%;
}
.hero h1::before {
  content: "";
  position: absolute;
  inset: 25px;
  transform: translateY(-6px);
  background: rgba(78, 173, 175, 0.7);
  filter: blur(41px);
  pointer-events: none;
}
.hero__title {
  position: relative;
  width: 100%;
  height: auto;
  aspect-ratio: 739 / 176;
  object-fit: cover;
}
.hero__intro {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 680px;
  max-width: 100%;
}
.hero__tagline {
  font-family: var(--font-pixel);
  font-size: 22px;
  color: #e8f8f8;
  text-shadow: 0 0 12px rgba(78, 173, 175, 0.5);
}
.hero__sub {
  font-family: var(--font-roboto);
  font-style: italic;
  font-size: 16px;
  line-height: 1.5;
  color: rgba(232, 248, 248, 0.76);
}
.page-rules .hero .btn-cta { color: var(--navy-900); }

/* ---------- Home: About ---------- */

.about {
  display: flex;
  align-items: center;
  gap: 64px;
  padding: 72px 80px;
}
.about__story {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.about__heading {
  font-family: var(--font-pixel);
  font-size: 34px;
  color: var(--teal);
  text-shadow: 0 0 16px rgba(78, 173, 175, 0.4);
}
.about__body {
  font-family: var(--font-roboto);
  font-style: italic;
  font-size: 16px;
  line-height: 1.65;
  color: #a8d8d8;
}
.about__body p + p { margin-top: 1.65em; }

.about__media {
  position: relative;
  flex-shrink: 0;
  width: 440px;
  height: 240px;
  overflow: hidden;
  border: 1px solid var(--teal);
  border-radius: 4px;
  background: linear-gradient(180deg, rgba(26, 58, 107, 0.8), rgba(34, 71, 164, 0.7));
  box-shadow: 0 8px 24px rgba(78, 173, 175, 0.3);
}
/* Crop matches the Figma frame: the 1600×900 shot is scaled to ~590×332 and offset. */
.about__media img {
  position: absolute;
  left: -18.4%;
  top: -18.9%;
  width: 134.1%;
  height: auto;
  max-width: none;
}
.about__media::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 20px rgba(78, 173, 175, 0.15);
  pointer-events: none;
}

/* ---------- Home: Join ---------- */

.join {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  padding: 64px 80px 80px;
  text-align: center;
}
.join__glow {
  position: absolute;
  top: 0;
  left: 50%;
  width: 600px;
  height: 280px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(78, 173, 175, 0.18), rgba(78, 173, 175, 0));
  pointer-events: none;
}
.join__heading {
  position: relative;
  font-family: var(--font-pixel);
  font-size: 36px;
  color: #fff;
  text-shadow: 0 0 20px rgba(78, 173, 175, 0.5);
}

/* ---------- Rules page shell ---------- */

.rules-main {
  position: relative;
  padding-top: 53px;
}
/* Large soft glow behind the hero and first section (Figma "Logo hero" 1280×1196). */
.rules-main::before {
  content: "";
  position: absolute;
  top: 53px;
  left: 50%;
  width: 1280px;
  height: 1196px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(55, 122, 152, 0.4), rgba(13, 27, 62, 0));
  pointer-events: none;
}
.rules-main .hero { padding-bottom: 0; }

.section {
  position: relative;
  padding-inline: 48px;
}

.eyebrow {
  font-family: var(--font-jakarta);
  font-style: italic;
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cyan);
}

.section-head {
  padding-bottom: 17px;
  border-bottom: 1px solid var(--rule);
}

.title-pixel {
  font-family: var(--font-pixel);
  color: #fff;
  text-shadow: var(--glow-title);
}
.title-pixel--xl {
  font-size: 30px;
  line-height: 36px;
  text-transform: uppercase;
  text-align: center;
}

.section-intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}
.section-intro p {
  padding-top: 4px;
  font-style: italic;
  font-size: 14px;
  line-height: 20px;
  color: var(--muted);
}

/* ---------- Rules: Survival core grid ---------- */

.core { padding-top: 15px; }

.core__label {
  display: flex;
  align-items: center;
  gap: 8px;
}
.core__label::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
}

.core__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: 240px 262.75px;
  gap: 32px;
  padding-block: 16px;
  margin-top: 32px;
}

.rule-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-self: start;
  padding: 8px 8px 24px;
  border-radius: 12px;
}
.rule-card--c1 { grid-column: 1; }
.rule-card--c3 { grid-column: 3; }

.icon-tile {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
}
.icon-tile--red { background: rgba(69, 10, 10, 0.4); }
.icon-tile--cyan { background: rgba(8, 51, 68, 0.4); }
.icon-tile--teal { background: rgba(4, 47, 46, 0.4); }
.icon-tile--blue { background: rgba(23, 37, 84, 0.4); }
.icon-tile--glow { background: rgba(0, 229, 255, 0.1); }

.rule-card h3 {
  padding-top: 8px;
  font-style: italic;
  font-size: 14px;
  line-height: 20px;
  color: #fff;
}
.rule-card p {
  font-style: italic;
  font-size: 14px;
  line-height: 22.75px;
  color: var(--ink);
}
.hl-white { color: #fff; font-weight: 600; }
.hl-red { color: var(--red); font-weight: 600; }
.hl-mint { color: var(--mint); font-weight: 600; }

.cap {
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cap__title {
  padding-bottom: 8px;
  font-style: italic;
  font-weight: 700;
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--red);
}
.cap ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 7.5px;
}
.cap li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-style: italic;
  font-size: 12px;
  line-height: 16px;
  color: var(--ink-strong);
}
.cap li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
  flex-shrink: 0;
}

/* ---------- Rules: Combat ---------- */

.combat { padding-top: 183px; }

.combat .eyebrow {
  font-size: 11px;
  line-height: 16.5px;
}
.combat__title {
  font-size: 20px;
  line-height: 28px;
}

.combat__cols {
  display: flex;
  gap: 40px;
  margin-top: 32px;
}
.combat__left {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.combat-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding-bottom: 17px;
  border-bottom: 1px solid var(--rule-soft);
}
.combat-item:last-child { border-bottom: 0; padding-bottom: 0; }
.combat-item img { flex-shrink: 0; }
.combat-item h4 {
  font-style: italic;
  font-size: 12px;
  line-height: 16px;
  color: #fff;
}
.combat-item p,
.wg p {
  margin-top: 4px;
  font-style: italic;
  font-size: 12px;
  line-height: 19.5px;
  color: var(--muted);
}

.combat__right {
  flex: 1 1 0;
  min-width: 0;
  padding-left: 41px;
  border-left: 1px solid var(--rule);
}
.wg {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 3.5px;
}
.wg__tag {
  display: flex;
  align-items: center;
  gap: 8px;
  font-style: italic;
  font-size: 10px;
  line-height: 15px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--cyan);
}
.wg h3 {
  padding-top: 8px;
  font-style: italic;
  font-size: 14px;
  line-height: 20px;
  color: #fff;
}
.wg p { margin-top: 0; }
.wg__list {
  list-style: none;
  margin: 0;
  padding: 16px 0 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.wg__list li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-block: 6px;
  font-style: italic;
  font-size: 12px;
  line-height: 16px;
}
.wg__list .is-amber { color: #fcd34d; }
.wg__list .is-red { color: var(--red); }

/* ---------- Rules: Kenali Duniamu ---------- */

.world { padding-top: 138px; }

.world__cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  margin-top: 40px;
}

.island {
  display: flex;
  flex-direction: column;
  padding-bottom: 25px;
  border-bottom: 1px solid var(--rule);
}
.island__media {
  position: relative;
  height: 240px;
  margin-bottom: 20px;
  overflow: hidden;
  border-radius: 16px;
  background: #020b18;
}
.island__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.island__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 8px 24px;
}
.island__name {
  text-align: center;
  font-style: italic;
  font-size: 16px;
  line-height: 24px;
  color: #fff;
}
.island__tag {
  text-align: center;
  font-style: italic;
  font-size: 12px;
  line-height: 16px;
}
.island__desc {
  padding-top: 4px;
  font-style: italic;
  font-size: 12px;
  line-height: 19.5px;
  color: var(--ink-strong);
}
.island__traits {
  list-style: none;
  margin: 0 8px;
  padding: 13px 0 0;
  border-top: 1px solid var(--rule-soft);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.island__traits li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-style: italic;
  font-size: 12px;
  line-height: 16px;
  color: var(--ink-strong);
}
.island__traits img { flex-shrink: 0; margin-top: 1px; }
.island__traits b { font-weight: 600; }

.c-cyan { color: var(--cyan); }
.c-red { color: var(--red); }
.c-amber { color: var(--amber); }

/* ---------- Rules: Timeline ---------- */

.timeline-section { padding-top: 208px; }

.timeline {
  position: relative;
  width: 896px;
  max-width: 100%;
  margin: 48px auto 0;
}
.timeline__steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.timeline__line {
  position: absolute;
  left: 32px;
  top: 32px;
  bottom: 48px;
  width: 2px;
  height: auto;
  object-fit: cover;
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.7);
  pointer-events: none;
}

.step {
  --c: var(--cyan);
  --c-text: var(--cyan);
  --c-glow: rgba(0, 229, 255, 0.4);
  position: relative;
  display: flex;
  gap: 24px;
  align-items: flex-start;
}
.step--amber { --c: #fbbf24; --c-text: #fbbf24; --c-glow: rgba(245, 158, 11, 0.4); }
.step--red { --c: #ef4444; --c-text: #f87171; --c-glow: rgba(239, 68, 68, 0.4); }
.step--teal { --c: #2dd4bf; --c-text: #5eead4; --c-glow: rgba(45, 212, 191, 0.4); }

.step__num {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border: 1px solid var(--c);
  border-radius: 16px;
  background: rgba(4, 16, 38, 0.85);
  box-shadow: 0 0 20px var(--c-glow);
  font-style: italic;
  font-size: 20px;
  line-height: 28px;
  color: var(--c-text);
}
.step:first-child .step__num { background: rgba(4, 16, 38, 0.74); }
.step:last-child .step__num span { transform: rotate(-1.93deg); }

.step__body {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 11px 0 17px;
  border-bottom: 1px solid var(--rule-soft);
}
.step:last-child .step__body { border-bottom: 0; padding-bottom: 16px; }

.step__label {
  font-style: italic;
  font-size: 10px;
  line-height: 15px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--c-text);
}
.step__title {
  font-style: italic;
  font-size: 16px;
  line-height: 24px;
  color: #fff;
}
.step:last-child .step__title { font-weight: 500; }
.step__desc {
  padding-top: 2px;
  font-style: italic;
  font-size: 14px;
  line-height: 20px;
  color: var(--ink);
}
.code-chip {
  display: inline-block;
  padding: 0 9px;
  margin-inline: 2px;
  border: 1px solid rgba(0, 229, 255, 0.4);
  border-radius: 4px;
  font-family: var(--font-mono);
  font-style: normal;
  font-size: 12px;
  line-height: 16px;
  color: var(--cyan);
  vertical-align: 1px;
}

/* ---------- Rules: FAQ ---------- */

.faq-section { padding: 130px 48px 160px; }

.faq {
  width: 768px;
  max-width: 100%;
  margin: 40px auto 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.faq details {
  padding: 20px 0 21px;
  border-bottom: 1px solid var(--rule);
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary span {
  display: flex;
  align-items: center;
  gap: 12px;
  font-style: italic;
  font-size: 14px;
  line-height: 20px;
  color: #fff;
}
.faq summary img { flex-shrink: 0; }
.faq__chevron { transition: transform 0.2s; }
.faq details[open] .faq__chevron { transform: rotate(180deg); }
.faq summary:hover span { color: #e8f8f8; }
.faq details p {
  padding: 12px 0 0 30px;
  font-style: italic;
  font-size: 14px;
  line-height: 22px;
  color: var(--ink);
}

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
  .nav__inner { padding-inline: 24px; }
  .about { flex-direction: column; align-items: stretch; padding: 56px 24px; gap: 40px; }
  .about__media { width: 100%; max-width: 440px; height: auto; aspect-ratio: 440 / 240; align-self: center; }
  .join { padding-inline: 24px; }
  .section { padding-inline: 24px; }
  .core__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: none; }
  .rule-card--c1, .rule-card--c3 { grid-column: auto; }
  .world__cards { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; }
  .combat__cols { flex-direction: column; }
  .combat__right { padding: 24px 0 0; border-left: 0; border-top: 1px solid var(--rule); }
  .combat, .world, .timeline-section { padding-top: 96px; }
  .faq-section { padding: 96px 24px 120px; }
}

@media (max-width: 640px) {
  .nav__inner { height: auto; padding-block: 16px; flex-wrap: wrap; }
  .nav__inner > nav { order: 3; width: 100%; }
  .nav__links { justify-content: center; gap: 28px; }
  .btn-signup { width: 120px; height: 38px; font-size: 17px; }
  .hero { padding-top: 48px; }
  .hero__tagline { font-size: 18px; }
  .core__grid { grid-template-columns: 1fr; }
  .title-pixel--xl { font-size: 22px; line-height: 30px; white-space: normal; }
  .join__heading { font-size: 28px; }
  .step { gap: 16px; }
  .step__num { width: 52px; height: 52px; font-size: 17px; }
  .timeline__line { left: 26px; }
}
