@font-face {
  font-family: "FESPA Pixel";
  src: url("assets/fespa-pixel-regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400 599;
  font-display: swap;
}

@font-face {
  font-family: "FESPA Pixel";
  src: url("assets/fespa-pixel-bold.ttf") format("truetype");
  font-style: normal;
  font-weight: 600 900;
  font-display: swap;
}

@font-face {
  font-family: "Pixelify Sans";
  src: url("assets/pixelify-sans.ttf") format("truetype");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --navy: #0b223a;
  --ink: #10243e;
  --muted: #3c5066;
  --blue: #006b9f;
  --aqua: #06b5d5;
  --gold: #ffb21a;
  --forest-art: url("assets/hutan-maskot-fespa.webp");
  --font-pixel: "FESPA Pixel", "Pixelify Sans", "Segoe UI", system-ui, sans-serif;
  font-family: var(--font-pixel);
  font-synthesis: none;
  letter-spacing: .015em;
  color: var(--ink);
  scroll-behavior: smooth;
  scroll-padding-top: 6.5rem;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: #f9fbff; font-size: 1.0625rem; line-height: 1.45; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea, optgroup, option { font: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 3px solid #047caf; outline-offset: 5px; }
.wrap { width: min(94%, 112rem); margin-inline: auto; }
.skip { position: fixed; top: .65rem; left: .65rem; z-index: 5; padding: .75rem; background: white; transform: translateY(-150%); }
.skip:focus { transform: translateY(0); }

.site-header { position: sticky; top: 0; z-index: 3; background: var(--navy); color: white; border-top: 3px solid #244653; }
.header-inner { min-height: clamp(5rem, 6.2vw, 7.3rem); display: flex; align-items: center; justify-content: space-between; gap: clamp(1rem, 3vw, 4rem); }
.brand { display: inline-flex; align-items: center; gap: .7rem; flex-shrink: 0; }
.brand img { width: clamp(2.8rem, 4vw, 4.4rem); height: auto; }
.brand strong { display: block; font-size: clamp(1.35rem, 1.8vw, 2rem); line-height: 1.05; font-weight: 700; }
.brand sup { color: #ffcb69; font-size: .55em; vertical-align: super; letter-spacing: .025em; }
.brand small { display: block; margin-top: .25rem; color: #3dd6ed; font-size: clamp(.8rem, 1vw, 1.15rem); font-weight: 700; letter-spacing: .045em; }
.nav { display: flex; align-items: center; justify-content: flex-end; flex: 1; gap: clamp(.85rem, 1.75vw, 2.45rem); }
.nav > a { position: relative; white-space: nowrap; font-size: clamp(1rem, 1.22vw, 1.5rem); font-weight: 700; color: #dde7f1; }
.nav > a:hover, .nav > a[aria-current] { color: #3dd6ed; }
.nav > a[aria-current]::after { position: absolute; inset: auto 0 -.48rem; height: 3px; border-radius: 1rem; background: #3dd6ed; content: ""; }
.account-actions, .hero-actions { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.account-actions { margin-left: auto; }
.button { display: inline-flex; align-items: center; justify-content: center; text-align: center; padding: .75em 1.25em; min-height: 44px; border: 2px solid transparent; border-radius: 100vw; font-weight: 800; line-height: 1.15; }
.button:hover { filter: brightness(1.08); }
.button:disabled { opacity: .6; cursor: wait; }
.button-login { border-color: #8495a8; background: transparent; color: white; }
.button-gold { background: linear-gradient(110deg, #ffba20, #ff981a); color: #151f31; box-shadow: 0 .45rem 1.4rem #ffae142c; }
.button-primary { background: linear-gradient(110deg, #006f9f, #007f9f); color: white; box-shadow: 0 .55rem 1.4rem #00a1be42; }
.button-outline { border-color: var(--ink); background: #fff; color: var(--ink); }
.menu-toggle { background: none; border: 1px solid #8094a9; border-radius: .6rem; padding: .55rem .75rem; min-height: 44px; color: white; }

.hero, .competition-section { position: relative; }
.hero, .competition-section, .site-intro { isolation: isolate; }
.forest-effects {
  position: absolute;
  z-index: -1;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.forest-particle {
  position: absolute;
  top: var(--particle-y);
  left: var(--particle-x);
  width: var(--particle-size);
  aspect-ratio: 1;
  opacity: .58;
}
.forest-firefly {
  border-radius: 50%;
  background: #fffad7;
  color: #ffd75f;
  box-shadow: 0 0 .36rem .1rem currentColor, 0 0 .95rem currentColor;
}
.forest-firefly:nth-child(3n) { background: #ccfff5; color: #46efc4; }
.forest-firefly:nth-child(5n) { background: #e2ffba; color: #9efb70; }
.forest-star {
  color: #e3feff;
  filter: drop-shadow(0 0 .26rem currentColor);
}
.forest-star:nth-child(even) { color: #ffe5a0; }
.forest-star::before {
  position: absolute;
  inset: 0;
  background: currentColor;
  clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%);
  content: "";
}

.hero {
  background: #74c8f8 url("assets/hero-growtopia-bg.webp") center bottom / cover no-repeat;
}
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 54fr) minmax(0, 46fr);
  gap: clamp(1.15rem, 2.5vw, 3.2rem);
  padding-block: clamp(2.6rem, 4.8vw, 5.5rem) clamp(2.6rem, 4.5vw, 5.2rem);
}
.hero-panel {
  position: relative;
  overflow: hidden;
  border: 3px solid #75c6de;
  border-radius: clamp(1.1rem, 2vw, 1.75rem);
  padding: clamp(1.6rem, 2.9vw, 3.15rem);
  background:
    radial-gradient(circle at 92% 10%, #e5fbff 0%, transparent 40%),
    linear-gradient(180deg, #fffffffa 0%, #f5fdfff7 100%);
  color: var(--ink);
  box-shadow:
    0 .45rem 0 #5caac4,
    0 1.2rem 2.8rem #113b5c42,
    inset 0 0 0 3px #dff6fc;
}
.hero-panel::before,
.hero-panel::after {
  position: absolute;
  width: 2.2rem;
  height: 2.2rem;
  pointer-events: none;
  content: "";
}
.hero-panel::before {
  top: .65rem;
  left: .65rem;
  background:
    linear-gradient(#8ee4f8, #8ee4f8) 0 0 / 10px 10px no-repeat,
    linear-gradient(#bdeefb, #bdeefb) 14px 4px / 8px 8px no-repeat,
    linear-gradient(#bdeefb, #bdeefb) 4px 16px / 8px 8px no-repeat;
}
.hero-panel::after {
  top: .65rem;
  right: .65rem;
  background:
    linear-gradient(#8ee4f8, #8ee4f8) right 0 top 0 / 10px 10px no-repeat,
    linear-gradient(#bdeefb, #bdeefb) right 14px top 4px / 8px 8px no-repeat,
    linear-gradient(#bdeefb, #bdeefb) right 4px top 16px / 8px 8px no-repeat;
}
.hero-panel > * { position: relative; z-index: 1; }
.hero h1 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  column-gap: .22em;
  row-gap: .16em;
  width: 100%;
  margin: 0;
  font-size: clamp(2.85rem, 6.2vw, 6.9rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: .01em;
}
.hero-wordmark {
  display: inline-block;
  padding-inline-end: .06em;
  color: #ff9c2a;
  filter:
    drop-shadow(2px 0 0 #1d2542)
    drop-shadow(-2px 0 0 #1d2542)
    drop-shadow(0 2px 0 #1d2542)
    drop-shadow(0 -2px 0 #1d2542)
    drop-shadow(.045em .065em 0 #1d2542);
}
@supports (background-clip: text) {
  .hero-wordmark {
    background: linear-gradient(180deg, #ffe84d 10%, #ffa62b 52%, #ff5c6c 96%);
    background-clip: text;
    color: transparent;
  }
}
.hero-edition {
  position: relative;
  display: inline-flex;
  align-items: flex-start;
  gap: .14em;
  margin-inline: auto;
  color: #54daf5;
  font-size: .92em;
  letter-spacing: .02em;
  white-space: nowrap;
  filter:
    drop-shadow(2px 0 0 #1d2542)
    drop-shadow(-2px 0 0 #1d2542)
    drop-shadow(0 2px 0 #1d2542)
    drop-shadow(0 -2px 0 #1d2542)
    drop-shadow(.045em .065em 0 #1d2542);
}
.hero-edition::after {
  position: absolute;
  top: -.24em;
  right: -.22em;
  width: .34em;
  height: .34em;
  pointer-events: none;
  background:
    linear-gradient(#ffd43b, #ffd43b) 45% 0 / 22% 45% no-repeat,
    linear-gradient(#ff6e8a, #ff6e8a) 100% 45% / 45% 22% no-repeat,
    linear-gradient(#54e2ff, #54e2ff) 82% 8% / 26% 26% no-repeat;
  content: "";
}
.hero-edition-num {
  display: inline-block;
  color: #54daf5;
}
@supports (background-clip: text) {
  .hero-edition-num {
    background: linear-gradient(180deg, #b0fbff 8%, #54daf5 58%, #22b3e3 100%);
    background-clip: text;
    color: transparent;
  }
}
.hero-edition sup {
  display: inline-block;
  margin-top: .02em;
  padding: .28em .42em;
  border: 2px solid #2b1d3d;
  border-radius: .26em;
  background: linear-gradient(155deg, #ff7075, #e63f66);
  color: #ffffff;
  box-shadow: 0 .22rem 0 #4d1745;
  font-size: .34em;
  line-height: 1;
  letter-spacing: .04em;
  transform: rotate(-7deg);
  filter: none;
}
.hero-tagline-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .65rem .9rem;
  margin-top: clamp(1rem, 1.6vw, 1.45rem);
}
.tagline {
  position: relative;
  overflow: hidden;
  display: inline-block;
  margin: 0;
  padding: .38em .95em;
  border: 2px solid #7cd5ec;
  border-radius: .5rem;
  background: #c2f2fc;
  color: #0e3854;
  box-shadow: 0 3px 0 #7ecae0;
  font-weight: 700;
  font-size: clamp(1rem, 1.42vw, 1.55rem);
  line-height: 1.25;
  letter-spacing: .045em;
  text-transform: uppercase;
}
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  padding: .34em .72em;
  border: 2px solid #2b2440;
  border-radius: .48rem;
  font-size: clamp(.82rem, 1vw, .98rem);
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
}
.hero-badge-gold {
  background: #fff1b3;
  color: #6b3b00;
  box-shadow: 0 3px 0 #e0a630;
}
.hero-badge-mint {
  background: #d8fbe6;
  color: #0f4f36;
  box-shadow: 0 3px 0 #66c295;
}
.intro {
  margin: clamp(1rem, 1.7vw, 1.85rem) 0 0;
  color: #24384e;
  font-size: clamp(1rem, 1.3vw, 1.45rem);
  line-height: 1.65;
  max-width: 44ch;
}
.hero-actions { gap: clamp(.65rem, 1.2vw, 1.2rem); margin-top: clamp(1.3rem, 2vw, 2.2rem); }
.hero-actions .button { font-size: clamp(.98rem, 1.18vw, 1.32rem); padding: .82em 1.35em; border-radius: .7rem; gap: .55rem; }
.hero-btn-arcade {
  border: 2px solid #2c253d;
  background: linear-gradient(180deg, #ffe055 0%, #ffb024 62%, #f79216 100%);
  color: #191d30;
  box-shadow: 0 .28rem 0 #b85d00;
}
.hero-btn-arcade:hover { filter: brightness(1.05); }
.hero-btn-arcade:active { transform: translateY(2px); box-shadow: 0 .12rem 0 #b85d00; }
.hero-btn-neon {
  border: 2px solid #164863;
  background: #ffffff;
  color: #0e3854;
  box-shadow: 0 .28rem 0 #9ac4d6;
}
.hero-btn-neon:hover { background: #eefaff; }
.hero-btn-neon:active { transform: translateY(2px); box-shadow: 0 .12rem 0 #9ac4d6; }
.hero-qr-icon {
  width: 1.15em;
  height: 1.15em;
  flex-shrink: 0;
  background: currentColor;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='square'%3E%3Cpath d='M3 8V3h5M16 3h5v5M21 16v5h-5M8 21H3v-5M8 8h2v2H8zM14 8h2v2h-2zM8 14h2v2H8zM14 14h2v2h-2z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.countdown {
  margin-top: clamp(1.35rem, 2.2vw, 2.3rem);
  padding: clamp(.95rem, 1.45vw, 1.5rem);
  border: 2px solid #8bd8ee;
  background: #eefbff;
  border-radius: .85rem;
  box-shadow: 0 3px 0 #a9dfef;
}
.countdown h2 { font-size: clamp(.9rem, 1.04vw, 1.15rem); margin: 0; color: #0e3854; text-transform: uppercase; letter-spacing: .04em; }
.countdown h2 span { margin-right: .35em; }
.countdown p { color: #36526b; margin: .5em 0 0; font-size: clamp(.94rem, 1.1vw, 1.15rem); }
.countdown-digits { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; margin-top: .85rem; }
.countdown-digits span {
  display: grid;
  justify-items: center;
  padding: .55rem .2rem;
  border: 2px solid #96def2;
  border-radius: .55rem;
  background: #ffffff;
  color: #3a566e;
  font-size: .875rem;
}
.countdown-digits strong {
  font-size: clamp(1.25rem, 1.9vw, 1.9rem);
  font-variant-numeric: tabular-nums;
  color: #006b9f;
}
.hero-art { position: relative; }
.hero-mascot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: 36rem;
  margin: auto;
  object-fit: contain;
  filter: drop-shadow(0 .65rem .85rem #07293f66);
}
.mascot-bubble {
  --bubble-border: #182a42;
  position: absolute;
  z-index: 1;
  max-width: 48%;
  margin: 0;
  padding: .56em .9em;
  border: 3px solid var(--bubble-border);
  border-radius: .65rem;
  background: var(--bubble-fill);
  color: var(--ink);
  box-shadow: 0 .32rem 0 #182a42, 0 .6rem 1.2rem #0e2e4a44;
  font-size: clamp(.88rem, 1.3vw, 1.2rem);
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  transform: rotate(var(--bubble-tilt));
}
.mascot-bubble::after {
  position: absolute;
  width: .72rem;
  aspect-ratio: 1;
  border-right: 3px solid var(--bubble-border);
  border-bottom: 3px solid var(--bubble-border);
  background: var(--bubble-fill);
  content: "";
}
.mascot-bubble-greeting {
  --bubble-fill: #ffffff;
  --bubble-tilt: -2deg;
  inset-block-start: 5%;
  inset-inline-start: 4%;
}
.mascot-bubble-greeting::after {
  inset: auto 24% -.48rem auto;
  transform: rotate(45deg);
}
.mascot-bubble-challenge {
  --bubble-fill: #fff6d6;
  --bubble-tilt: 2deg;
  inset-inline-end: 2%;
  inset-block-end: 4%;
}
.mascot-bubble-challenge::after {
  inset: -.43rem auto auto 20%;
  transform: rotate(225deg);
}

@media (prefers-reduced-motion: no-preference) {
  .forest-particle {
    animation-duration: var(--particle-duration);
    animation-delay: var(--particle-delay);
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
  }
  .forest-firefly { animation-name: firefly-flight; }
  .forest-star { animation-name: star-twinkle; }
  .hero-mascot { animation: mascot-hover 6.4s ease-in-out infinite; }
  .mascot-bubble { animation: bubble-hover 5.2s ease-in-out infinite; }
  .mascot-bubble-challenge { animation-delay: -2.6s; }
  .hero-wordmark { animation: wordmark-float 3.6s ease-in-out infinite; }
  .hero-edition-num { animation: edition-float 3s ease-in-out infinite; }
  .hero-edition sup { animation: th-wiggle 2.4s ease-in-out infinite; }
  .hero-edition::after { animation: sparkle-pop 1.8s ease-in-out infinite; }
  .hero-badge-gold { animation: badge-bob 3.2s ease-in-out infinite; }
  .hero-badge-mint { animation: badge-bob 3.2s -1.6s ease-in-out infinite; }
  [data-forest-offscreen] :is(.forest-particle, .hero-mascot, .mascot-bubble, .hero-wordmark, .hero-edition-num, .hero-edition sup, .hero-edition::after, .hero-badge) { animation-play-state: paused; }
}

@keyframes wordmark-float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-5px) rotate(-.6deg); }
}
@keyframes edition-float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-7px) scale(1.04); }
}
@keyframes th-wiggle {
  0%, 100% { transform: rotate(-7deg) translateY(0); }
  50% { transform: rotate(-2deg) translateY(-4px); }
}
@keyframes sparkle-pop {
  0%, 100% { transform: scale(.85) rotate(0deg); opacity: .7; }
  50% { transform: scale(1.18) rotate(10deg); opacity: 1; }
}
@keyframes badge-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

@keyframes firefly-flight {
  0%, 100% { transform: translate(0, 0); opacity: .32; }
  30% { transform: translate(var(--particle-drift), -1.65rem); opacity: .95; }
  62% { transform: translate(calc(var(--particle-drift) * -.55), -3rem); opacity: .52; }
  82% { transform: translate(calc(var(--particle-drift) * -.8), -1.1rem); opacity: .84; }
}
@keyframes star-twinkle {
  0%, 100% { transform: scale(.68); opacity: .3; }
  55% { transform: scale(1.16); opacity: .96; }
}
@keyframes mascot-hover {
  0%, 100% { transform: translateY(.15rem) rotate(-.5deg); }
  50% { transform: translateY(-.75rem) rotate(.65deg); }
}
@keyframes bubble-hover {
  0%, 100% { transform: translateY(.2rem) rotate(var(--bubble-tilt)); }
  50% { transform: translateY(-.5rem) rotate(0); }
}

.section { padding-block: clamp(3rem, 7vw, 6.75rem); }
.section .wrap { width: min(90%, 76rem); }
.section h2 { margin: 0 0 .45em; font-size: clamp(2rem, 3.65vw, 3.5rem); letter-spacing: -.025em; line-height: 1.13; }
.section p { margin: 0 0 1.1em; max-width: 58ch; font-size: 1.12rem; line-height: 1.65; color: var(--muted); }
.section p:last-child { margin-bottom: 0; }
.section-dark { background: var(--navy); color: white; }
.section-dark p { color: #dce8f6; }
.about, .feature-box { display: flex; align-items: center; gap: clamp(1.35rem, 5vw, 5rem); }
.feature-box { justify-content: space-between; }
.feature-box .button { flex-shrink: 0; }
.about-mark { display: grid; flex-shrink: 0; place-items: center; width: clamp(7rem, 18vw, 13rem); aspect-ratio: 1; border-radius: 32%; background: #dff4fb; }
.about-mark img { width: 68%; height: auto; }
.text-link { color: var(--blue); font-weight: 750; text-decoration: underline; text-underline-offset: .25em; }
.competition-section {
  background-color: #182d51;
  background-image: linear-gradient(155deg, #07334bc4, #3b317aaa 52%, #101d3b 92%), var(--forest-art);
  background-position: center, 64% top;
  background-size: 100% 100%, auto max(46rem, 100vh);
  background-repeat: no-repeat;
}
.competition-section .wrap { width: min(94%, 112rem); }
.competition-intro {
  width: min(100%, 73rem);
  margin-inline: auto;
  padding: clamp(1.6rem, 4.3vw, 4.3rem) clamp(1rem, 4vw, 4rem);
  border: 1px solid #fff;
  border-radius: clamp(1.4rem, 3.2vw, 3rem);
  background: linear-gradient(145deg, #f7feff, #f3f3fa);
  box-shadow: 0 1.1rem 3.7rem #0b1a404d;
  text-align: center;
}
.competition-intro h2 {
  font-weight: 700;
  font-size: clamp(2rem, 4.2vw, 4rem);
}
.competition-intro p { margin: .8rem auto 0; font-size: clamp(1rem, 1.6vw, 1.45rem); }
.competition-categories {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .55rem;
  margin-top: clamp(1.25rem, 3vw, 2.15rem);
}
.competition-categories a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: .65rem clamp(.75rem, 1.6vw, 1.35rem);
  border: 1px solid #d6e3f0;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 .25rem .65rem #17365314;
  font-weight: 800;
  line-height: 1.2;
}
.competition-categories a:hover { border-color: #0677ad; }
.competition-categories a[aria-current] {
  border-color: #0c487e;
  background: linear-gradient(120deg, #0a2645, #0753a8);
  color: #fff;
}
.competition-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.8rem);
  margin-top: clamp(1.6rem, 4vw, 3.6rem);
}
.competition-folder {
  align-self: start;
  border: 1px solid #c4dced;
  border-radius: 1.25rem;
  background: #fff;
  box-shadow: 0 .35rem 1.1rem #135c8110;
}
.competition-folder[open] { border-color: #67bfd9; }
.competition-folder summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(.75rem, 2vw, 1.2rem);
  padding: clamp(1rem, 2.7vw, 1.5rem);
  border-radius: inherit;
  list-style: none;
  cursor: pointer;
}
.competition-folder summary::-webkit-details-marker { display: none; }
.competition-folder summary:hover { background: #f0faff; }
.competition-folder[open] summary { border-radius: 1.15rem 1.15rem 0 0; background: #eaf8fd; }
.competition-folder summary::after {
  width: .6rem;
  height: .6rem;
  margin-right: .2rem;
  border-right: 2px solid var(--blue);
  border-bottom: 2px solid var(--blue);
  transform: translateY(-.13rem) rotate(45deg);
  content: "";
}
.competition-folder[open] summary::after { transform: translateY(.13rem) rotate(225deg); }
.folder-icon {
  position: relative;
  width: clamp(2rem, 6vw, 2.65rem);
  height: 1.6rem;
  margin-top: .3rem;
  border: 1px solid #bd7b11;
  border-radius: .24rem .38rem .38rem .38rem;
  background: linear-gradient(155deg, #ffe29f, #ffb835);
}
.folder-icon::before {
  position: absolute;
  bottom: 100%;
  left: -.0625rem;
  width: 48%;
  height: .38rem;
  border: 1px solid #bd7b11;
  border-bottom: 0;
  border-radius: .25rem .35rem 0 0;
  background: #fbc455;
  content: "";
}
.folder-label strong, .folder-label small { display: block; }
.folder-label strong { font-size: clamp(1.05rem, 2vw, 1.35rem); line-height: 1.3; }
.folder-label small { margin-top: .2rem; color: var(--muted); font-size: .9rem; }
.competition-folder ol { margin: 0; padding: .65rem 1.35rem .9rem 2.9rem; }
.competition-folder li { padding: .56rem 0 .56rem .25rem; line-height: 1.4; }
.competition-folder li + li { border-top: 1px solid #e4edf5; }
.competition-folder li::marker { color: var(--blue); font-weight: 750; }

.folder-card {
  --folder-surface: #f9fbff;
  --folder-edge: #dfeaf5;
  display: flex;
  flex-direction: column;
  border-radius: .9rem;
}
.folder-card:hover, .folder-card:focus-visible { --folder-edge: #4cd4f3; }
.folder-card-tab {
  position: relative;
  z-index: 1;
  align-self: flex-start;
  margin-bottom: -1px;
  padding: .46rem 1.4rem .36rem 1rem;
  border: 1px solid var(--folder-edge);
  border-bottom: 0;
  border-radius: .9rem 1.9rem 0 0;
  background: var(--folder-surface);
  color: #315775;
  font-size: .875rem;
  font-weight: 800;
}
.folder-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  overflow: hidden;
  padding: clamp(.7rem, 1.1vw, 1.15rem);
  border: 1px solid var(--folder-edge);
  border-radius: 0 1.4rem 1.4rem 1.4rem;
  background: var(--folder-surface);
  box-shadow: 0 .8rem 1.7rem #0a17314a;
}
.folder-card:focus-visible { outline-color: #82e9ff; }
.folder-cover {
  display: block;
  width: 100%;
  aspect-ratio: 2 / 1;
  background: #152d50 url("assets/folder-lomba.webp") no-repeat;
  background-size: 200% 200%;
}
.folder-cover[data-cover="smp-mts"] { background-position: right top; }
.folder-cover[data-cover="sma-ma-smk"] { background-position: left bottom; }
.folder-cover[data-cover="lintas-jenjang"] { background-position: right bottom; }
.folder-card .folder-cover { border-radius: .7rem 1rem 1rem 1rem; }
.folder-card-copy { display: flex; flex: 1; flex-direction: column; gap: .6rem; padding: 1rem .45rem .45rem; text-align: center; }
.folder-card-title { color: #0a4775; font-size: clamp(1.15rem, 1.85vw, 1.6rem); line-height: 1.2; }
.folder-card-description { color: var(--muted); line-height: 1.55; }
.folder-card-cta {
  display: inline-flex;
  align-self: center;
  align-items: center;
  justify-content: space-between;
  gap: .65rem;
  min-height: 44px;
  margin-top: auto;
  padding: .3rem .34rem .3rem .95rem;
  border: 1px solid #1d5687;
  border-radius: 999px;
  background: linear-gradient(115deg, #0a2b49, #075990);
  color: #fff;
  box-shadow: 0 .32rem .75rem #0e42653d;
  font-size: .95rem;
  font-weight: 800;
  line-height: 1.15;
}
.folder-card-arrow {
  display: grid;
  flex: 0 0 2.1rem;
  place-items: center;
  width: 2.1rem;
  height: 2.1rem;
  border: 1px solid #ffdc79;
  border-radius: 50%;
  background: linear-gradient(145deg, #ffdf68, #ffae19);
  color: #102b46;
  font-size: 1.3rem;
  font-weight: 900;
  box-shadow: 0 0 .7rem #ffbf3a4d;
}
:is(.folder-card, .event-card):is(:hover, :focus-visible) .folder-card-cta { border-color: #208ab4; background: #075a8a; }
@media (prefers-reduced-motion: no-preference) {
  .folder-card-arrow { transition: transform .18s ease-out; }
  :is(.folder-card, .event-card):is(:hover, :focus-visible) .folder-card-arrow { transform: translateX(.12rem) rotate(-12deg); }
}
.competition-browser { width: min(100%, 76rem); margin: clamp(1.4rem, 3.5vw, 2.6rem) auto 0; }
.competition-back {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: .5rem .9rem;
  border: 1px solid #b6d4e7;
  border-radius: .7rem;
  background: #fff;
  color: var(--blue);
  font-weight: 750;
}
.competition-back:hover { background: #f4fcff; }
.competition-banner {
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
  margin: 1rem 0 1.25rem;
  border-radius: 1.45rem;
  background: linear-gradient(120deg, #102944, #173e64);
  color: #fff;
  box-shadow: 0 .65rem 1.45rem #0a16394a;
}
.competition-banner .folder-cover { width: 43%; flex-shrink: 0; }
.competition-banner-content { padding: clamp(1.3rem, 3vw, 2.5rem); }
.competition-banner h3 { margin: 0 0 .42em; font-size: clamp(1.75rem, 4vw, 3.35rem); line-height: 1.15; letter-spacing: -.02em; }
.competition-banner h3:focus-visible { outline-color: #79e0fb; }
.competition-banner p { color: #d8eaf7; }
.event-kind {
  display: inline-block;
  margin-bottom: .65rem;
  padding: .3rem .65rem;
  border-radius: 999px;
  background: #ffdea0;
  color: #5d3409;
  font-size: .875rem;
  font-weight: 800;
}
.event-category {
  --event-accent: #4ee0e1;
  --event-tab: #b8f2f0;
  --event-ink: #064e58;
  --event-preview-start: #e4fbff;
  --event-preview-end: #aebcea;
  margin-top: clamp(1.5rem, 3vw, 2.65rem);
}
.event-category[data-kind="nonacademic"] {
  --event-accent: #ffd475;
  --event-tab: #ffe3a6;
  --event-ink: #633614;
  --event-preview-start: #ffeabb;
  --event-preview-end: #edc4e8;
}
.event-category-label {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin: 0 0 .95rem;
  color: #fff;
}
.event-category-title {
  margin: 0;
  padding: .46rem .9rem;
  border-radius: 999px;
  background: var(--event-tab);
  color: var(--event-ink);
  font-size: clamp(1rem, 2vw, 1.28rem);
  line-height: 1.2;
}
.event-category-count { color: #f4f8ff; font-size: .9rem; font-weight: 750; }
.event-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: clamp(.75rem, 1.8vw, 1.25rem);
}
.event-card {
  --event-edge: #d4e5f4;
  display: flex;
  flex-direction: column;
  border-radius: .9rem 1.2rem 1.2rem 1.2rem;
}
.event-card::before {
  width: 43%;
  min-width: 3.5rem;
  height: .95rem;
  border: 1px solid var(--event-edge);
  border-bottom: 0;
  border-radius: .75rem 1.6rem 0 0;
  background: var(--event-tab);
  content: "";
}
.event-card:is(:hover, :focus-visible) { --event-edge: var(--event-accent); outline-color: var(--event-accent); }
.event-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: .8rem;
  padding: .75rem;
  border: 1px solid var(--event-edge);
  border-radius: 0 1.2rem 1.2rem 1.2rem;
  background: #f8fbff;
  box-shadow: 0 .6rem 1.2rem #07192e4d;
}
.event-card-preview {
  display: grid;
  place-items: center;
  min-height: 6.5rem;
  overflow: hidden;
  border: 1px solid #fff9;
  border-radius: .65rem .85rem .85rem .85rem;
  background:
    radial-gradient(circle, #fff9 1px, transparent 1.5px) center / .75rem .75rem,
    linear-gradient(145deg, var(--event-preview-start), var(--event-preview-end));
}
.event-card-poster {
  width: 100%;
  height: 9rem;
  object-fit: cover;
}
.event-card-icon {
  display: grid;
  place-items: center;
  width: 4.7rem;
  aspect-ratio: 1;
  border: 1px solid #fff;
  border-radius: 1.25rem;
  background: #ffffffe6;
  box-shadow: 0 .4rem .8rem #20295824;
  font: 2.65rem/1 "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif;
  transform: rotate(-7deg);
}
.event-card-title {
  padding-inline: .35rem;
  color: var(--ink);
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  font-weight: 850;
  line-height: 1.3;
  text-align: center;
}
.event-card .folder-card-cta { margin-bottom: .2rem; }
.event-prizes {
  margin-bottom: 1rem;
  padding: clamp(1rem, 3vw, 2rem);
  border: 1px solid #547a99;
  border-radius: 1.35rem;
  background: radial-gradient(ellipse at top left, #224f76, transparent 65%), #0d233d;
  color: #fff;
  box-shadow: 0 .75rem 1.6rem #0a16395e;
}
.event-prizes h4 { margin: 0 0 1rem; font-size: clamp(1.35rem, 3vw, 2.05rem); }
.event-prizes p { color: #dce9f6; }
.event-prizes-list {
  display: grid;
  grid-template-columns: repeat(var(--prize-columns, 3), minmax(0, 1fr));
  gap: .85rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.event-prize {
  --prize-color: #32577f;
  --prize-edge: #b8cee3;
  --medal-light: #f4faff;
  --medal-dark: #98b5d4;
  display: grid;
  align-content: start;
  gap: .75rem;
  padding: clamp(.9rem, 2vw, 1.5rem);
  border: 1px solid var(--prize-edge);
  border-top: 4px solid var(--prize-edge);
  border-radius: 1rem;
  background: linear-gradient(145deg, var(--medal-light), #fff 72%);
}
.event-prize[data-placement="I"] {
  --prize-color: #754309;
  --prize-edge: #f0ba47;
  --medal-light: #fff2b9;
  --medal-dark: #efb12d;
  box-shadow: 0 0 1.1rem #ffcc5b4d;
}
.event-prize[data-placement="III"] {
  --prize-color: #753f25;
  --prize-edge: #d49a74;
  --medal-light: #ffeadf;
  --medal-dark: #d99770;
}
.event-prize[data-placement="special"] {
  --prize-color: #14595e;
  --prize-edge: #83cbd2;
  --medal-light: #e4faff;
  --medal-dark: #79cdd5;
  grid-column: 1 / -1;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
}
.event-prize-medal {
  display: grid;
  place-items: center;
  width: clamp(2.65rem, 4.5vw, 3.6rem);
  aspect-ratio: 1;
  border: 2px solid var(--prize-edge);
  border-radius: 50%;
  background: linear-gradient(145deg, var(--medal-light), var(--medal-dark));
  color: var(--prize-color);
  box-shadow: inset 0 0 0 .19rem #ffffff80, 0 .2rem .5rem #132e542b;
  font: 700 clamp(1.1rem, 2vw, 1.35rem)/1 var(--font-pixel);
}
.event-prize-copy { display: grid; gap: .3rem; }
.event-prize-rank { color: var(--prize-color); font-size: .95rem; font-weight: 850; }
.event-prize-amount { color: #123d60; font-size: clamp(1.08rem, 2vw, 1.45rem); line-height: 1.3; font-weight: 850; }
.event-prize-rewards { color: var(--muted); font-size: .95rem; }
@media (max-width: 680px) {
  .event-prizes-list { grid-template-columns: minmax(0, 1fr); }
  .event-prize { grid-template-columns: auto minmax(0, 1fr); align-items: center; }
}
.event-showcase {
  display: grid;
  grid-template-columns: minmax(0, 18rem) minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
  margin-bottom: 1rem;
  padding: clamp(1rem, 2.5vw, 1.5rem);
  border-radius: 1.25rem;
  background: #f7fbff;
  color: var(--ink);
  box-shadow: 0 .6rem 1.4rem #0a163936;
}
.event-showcase-single { grid-template-columns: minmax(0, 1fr); }
.event-poster { margin: 0; }
.event-poster-link { display: block; border-radius: .9rem; overflow: hidden; border: 1px solid #c6dce9; background: #e6f2f9; }
.event-poster img { width: 100%; max-height: 28rem; object-fit: contain; }
.event-description h4 { margin: 0 0 .55rem; font-size: clamp(1.2rem, 2.4vw, 1.65rem); color: #0e3555; }
.event-description p { margin: 0; color: var(--muted); white-space: pre-wrap; max-width: none; }
.event-upcoming {
  display: grid;
  gap: .95rem;
  padding: 1.15rem 1.35rem;
  border-radius: 1rem;
  background: #f7fbff;
  color: #123d60;
}
.event-upcoming-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .65rem 1rem;
}
.event-upcoming-actions { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.event-upcoming-badge {
  padding: .35rem .75rem;
  border-radius: 999px;
  background: #ffdea0;
  color: #5d3409;
  font-weight: 800;
}
.event-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
  gap: .75rem 1rem;
  margin: 0;
  padding-top: .85rem;
  border-top: 1px solid #d5e5f1;
}
.event-meta-grid > div { display: grid; gap: .18rem; align-content: start; }
.event-meta-full { grid-column: 1 / -1; }
.event-meta-grid dt { font-size: .88rem; font-weight: 800; color: var(--muted); }
.event-meta-grid dd { margin: 0; color: var(--ink); white-space: pre-wrap; overflow-wrap: anywhere; }
@media (max-width: 720px) {
  .event-showcase { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 1100px) {
  .competition-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
  .competition-grid { grid-template-columns: minmax(0, 1fr); }
  .competition-banner { flex-direction: column; align-items: stretch; }
  .competition-banner .folder-cover { width: 100%; }
}

@media (prefers-reduced-motion: no-preference) {
  .scroll-revealed {
    animation: scroll-rise .56s cubic-bezier(.2, .75, .25, 1) var(--scroll-delay, 0ms) backwards;
  }
  .scroll-revealed:focus-within {
    opacity: 1 !important;
    transform: none !important;
  }
  [data-scroll-reveal="logo"] {
    --scroll-start: translateY(.8rem) scale(.9) rotate(-6deg);
  }
}

@media (min-width: 720px) {
  .competition-folder:nth-child(even), .folder-card:nth-child(even) { --scroll-delay: 65ms; }
}

@keyframes scroll-rise {
  from { opacity: 0; transform: var(--scroll-start, translateY(1.15rem)); }
  to { opacity: 1; transform: none; }
}

.site-footer { background: #07182b; color: #dce8f6; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 5rem; }
.footer-inner > a:last-child { text-decoration: underline; text-underline-offset: .25em; }

dialog { position: fixed; width: min(92%, 32rem); max-height: 88dvh; overflow: auto; border: 1px solid #ade2f3; border-radius: 1.5rem; background: #fff; color: var(--ink); padding: 1.65rem; box-shadow: 0 1rem 3rem #07182b55; }
dialog::backdrop { background: #07182bb3; }
dialog h2 { margin: 0 3rem .5rem 0; }
dialog p { line-height: 1.55; color: var(--muted); }
.dialog-close { position: absolute; top: .75rem; right: .75rem; }
.dialog-close button { display: grid; place-items: center; background: #eef7fb; border: 0; border-radius: 50%; width: 44px; height: 44px; font-size: 1.6rem; color: var(--ink); }
html:has(.participant-dialog[open]) { overflow: hidden; }
.participant-dialog {
  width: min(calc(100% - 1.5rem), 40rem);
  max-height: calc(100dvh - 1.5rem);
  border-color: #acc9da;
  padding: 0;
  overscroll-behavior: contain;
}
.participant-dialog::backdrop {
  background: #07182bc9;
  backdrop-filter: blur(5px);
}
.participant-header {
  position: relative;
  display: flex;
  align-items: center;
  gap: .85rem;
  padding: 1.2rem 4.6rem 1.2rem clamp(1rem, 4vw, 2rem);
  border-bottom: 3px solid #43cfe4;
  background: linear-gradient(115deg, var(--navy), #12415b);
  color: white;
}
.participant-header img { flex-shrink: 0; width: 3rem; height: 3rem; object-fit: contain; }
.participant-header .participant-brand {
  margin: 0 0 .1rem;
  color: #a9eef8;
  font-size: .875rem;
  font-weight: 800;
  letter-spacing: .09em;
}
.participant-header h2 { margin: 0; font-size: clamp(1.25rem, 4vw, 1.7rem); line-height: 1.15; }
.participant-header h2:focus-visible { outline-color: #94e8ff; }
.participant-header .dialog-close { top: 50%; right: clamp(1rem, 3vw, 1.5rem); transform: translateY(-50%); }
.participant-header .dialog-close button { border-radius: .7rem; background: #ffffff1a; color: white; }
.participant-header .dialog-close button:hover { background: #ffffff33; }
.participant-body { padding: clamp(1rem, 4vw, 2rem); }
.participant-body > p { margin: 0 0 1rem; overflow-wrap: anywhere; }
.account-modes { display: flex; gap: 1.1rem; margin-bottom: 1.2rem; border-bottom: 1px solid #d4e2eb; }
.account-modes button {
  min-height: 44px;
  padding: .5rem .25rem;
  border: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  color: var(--muted);
  font-weight: 800;
}
.account-modes button[aria-pressed="true"] { border-bottom-color: var(--blue); color: var(--blue); }
.account-form { display: grid; gap: .45rem; }
.account-form > .account-field:not(:first-child) { margin-top: .45rem; }
.account-form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.account-form-grid > div { display: grid; align-content: start; gap: .45rem; }
.account-full { grid-column: 1 / -1; }
.account-field { display: block; font-size: 1rem; font-weight: 700; }
.account-form input {
  display: block;
  width: 100%;
  min-height: 46px;
  padding: .6rem .75rem;
  border: 1px solid #97b0c2;
  border-radius: .65rem;
  background: #f9fcff;
  color: var(--ink);
  font-size: 1.0625rem;
  letter-spacing: .018em;
}
.account-form input::placeholder { color: #52677b; }
.password-field { position: relative; }
.password-field input { padding-inline-end: 6.5rem; }
.password-field button {
  position: absolute;
  inset: 2px 3px 2px auto;
  min-width: 5.85rem;
  border: 0;
  border-radius: .5rem;
  background: #f9fcff;
  color: var(--blue);
  font-size: .875rem;
  font-weight: 750;
}
.password-field button:hover { background: #e7f3fc; }
.account-hint { color: var(--muted); font-size: .9rem; line-height: 1.45; }
.account-submit { width: 100%; min-height: 48px; margin-top: .65rem; border-radius: .7rem; }
.account-link {
  justify-self: start;
  min-height: 44px;
  padding: .35rem 0;
  border: 0;
  background: transparent;
  color: var(--blue);
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: .2em;
}
.account-forgot { justify-self: end; }
.account-alternatives { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .45rem 1rem; margin-top: .45rem; }
.participant-body .form-feedback { margin: .95rem 0 0; padding: .65rem .8rem; border-radius: .55rem; background: #eaf5fb; }
.participant-body .form-feedback[data-tone="error"] { background: #fff0ec; color: #932e25; }
.participant-body .form-feedback[data-tone="success"] { background: #e8f6ee; color: #175638; }
.account-profile { display: grid; gap: .7rem; margin: 0; overflow-wrap: anywhere; }
.account-profile > div { padding: .75rem; border-radius: .55rem; background: #edf6fb; }
.account-profile dt { font-size: .9rem; font-weight: 700; color: var(--muted); }
.account-profile dd { margin: .2rem 0 0; }
.account-receipt {
  overflow: hidden;
  border: 1px solid #c2d8e3;
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 .65rem 1.8rem #0e526418;
}
.account-receipt-header {
  display: flex;
  align-items: center;
  gap: .8rem;
  padding: clamp(.95rem, 3.7vw, 1.4rem);
  background: linear-gradient(100deg, #0b2f45 35%, #10516cdd 100%), var(--forest-art) 60% 52% / cover;
  color: white;
}
.account-receipt-header h3 { margin: 0; font-size: clamp(1.12rem, 3.8vw, 1.4rem); line-height: 1.2; }
.account-receipt-check {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 2.6rem;
  aspect-ratio: 1;
  border-radius: .75rem;
  background: #cef6e9;
  color: #12644e;
}
.account-receipt-check::before {
  width: .86rem;
  height: .48rem;
  border: solid currentColor;
  border-width: 0 0 3px 3px;
  transform: translateY(-.08rem) rotate(-45deg);
  content: "";
}
.account-receipt-body { padding: clamp(.95rem, 3.7vw, 1.4rem); }
.account-receipt-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .65rem;
  margin: 0;
}
.account-receipt-details > div { padding: .65rem .75rem; border-radius: .6rem; background: #edf6fa; }
.account-receipt-details dt { margin-bottom: .2rem; color: var(--muted); font-size: .9rem; font-weight: 700; }
.account-receipt-details dd { margin: 0; color: var(--ink); font-weight: 650; overflow-wrap: anywhere; }
.account-receipt-note { margin: .9rem 0; color: var(--muted); font-size: .9rem; line-height: 1.45; }
.account-receipt-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem; }
.account-receipt-actions .button { gap: .55rem; border-radius: .6rem; font-size: 1rem; box-shadow: none; }
.account-download-icon {
  position: relative;
  flex: 0 0 auto;
  width: 1rem;
  height: 1rem;
  border-bottom: 2px solid currentColor;
  border-radius: .12rem;
}
.account-download-icon::before {
  position: absolute;
  top: 0;
  left: calc(50% - 1px);
  width: 2px;
  height: .58rem;
  background: currentColor;
  content: "";
}
.account-download-icon::after {
  position: absolute;
  top: .26rem;
  left: calc(50% - .24rem);
  width: .48rem;
  height: .48rem;
  border: solid currentColor;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  content: "";
}
.participant-body > .button { margin-top: 1rem; }
.ticket-list { display: grid; gap: .65rem; padding: 0; list-style: none; }
.ticket-list li { padding: .85rem; border-radius: .7rem; background: #eef7fb; }

@media (max-width: 520px) {
  .account-form-grid { grid-template-columns: minmax(0, 1fr); gap: .8rem; }
  .account-receipt-details { grid-template-columns: minmax(0, 1fr); }
  .account-receipt-actions .button { flex: 1 1 100%; }
}

html:has(.site-intro[open]) { overflow: hidden; }
.site-intro {
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: clamp(1.2rem, 5vw, 3rem);
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background:
    radial-gradient(ellipse at 50% 32%, #17677870, transparent 50%),
    linear-gradient(145deg, #071d31ee, #091c38c9 48%, #1b1637f2),
    #0b213b var(--forest-art) center / cover no-repeat;
  color: #f6fcff;
  box-shadow: none;
}
.site-intro[open] { display: flex; }
.site-intro::backdrop { background: transparent; }
.portal-vortex {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}
.portal-ring {
  position: absolute;
  border-radius: 50%;
  opacity: 0;
  transform: scale(.25);
}
.portal-ring-outer {
  width: min(86vmin, 42rem);
  aspect-ratio: 1;
  border: 3px dashed #5ef2ff;
  box-shadow: 0 0 2.5rem #34e0f770, inset 0 0 2.5rem #4be8ff40;
}
.portal-ring-mid {
  width: min(62vmin, 30rem);
  aspect-ratio: 1;
  border: 4px solid #ffd269;
  box-shadow: 0 0 2.4rem #ffbf3a80, inset 0 0 2rem #6cf5ff52;
}
.portal-ring-inner {
  width: min(36vmin, 18rem);
  aspect-ratio: 1;
  background: radial-gradient(circle, #c8ffffe6 0%, #3fe5f799 38%, #ffb92e44 68%, transparent 100%);
  filter: blur(6px);
}
.portal-flash {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 46%, #f0fffff2 0%, #6cf0ffcc 28%, #ffb82e66 56%, transparent 78%);
  opacity: 0;
  transform: scale(.2);
}
.site-intro-content {
  position: relative;
  z-index: 1;
  width: min(100%, 34rem);
  margin: auto;
  text-align: center;
  animation: intro-arrival .65s cubic-bezier(.19, 1, .36, 1) both;
}
.site-intro-emblem {
  position: relative;
  display: grid;
  place-items: center;
  width: clamp(7.75rem, 28vmin, 13rem);
  aspect-ratio: 1;
  margin: 0 auto clamp(1.4rem, 4vmin, 2.4rem);
  border: 1px solid #82e7f47d;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 30%, #23687c, #0d2b45 74%);
  box-shadow: 0 0 0 .55rem #58d8ef19, 0 0 3rem #4fdaef4d, inset 0 0 1.6rem #64dbed33;
}
.site-intro-emblem img {
  width: 83%;
  height: auto;
  /* Imbangi ruang transparan yang tidak simetris pada PNG maskot. */
  transform: translate(-3.7%, 2%);
}
.site-intro-emblem::after {
  position: absolute;
  inset: -.5rem;
  border: 2px solid #85ecfb;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  content: "";
}
.site-intro h2 {
  margin: 0;
  font: 700 clamp(2.35rem, 9vw, 4.55rem)/1.08 var(--font-pixel);
  letter-spacing: -.02em;
  text-shadow: .055em .075em 0 #091b37;
}
.site-intro sup { color: #ffc968; font-size: .44em; letter-spacing: .02em; }
.site-intro p {
  margin: .65rem 0 1.8rem;
  color: #a9eefa;
  font-weight: 750;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.site-intro-button { padding: .95rem 1.65rem; }
.site-intro-button:focus-visible { outline-color: #e9fcff; }
.site-intro[data-leaving] .site-intro-content { animation: intro-departure .88s cubic-bezier(.22, 1, .36, 1) both; }
.site-intro[data-leaving] .site-intro-emblem { animation: intro-emblem-charge .72s cubic-bezier(.22, 1, .36, 1) both; }
.site-intro[data-leaving] .site-intro-emblem::after { animation: intro-ripple .78s ease-out both; }
.site-intro[data-leaving] .portal-ring-outer { animation: portal-ring-cw .9s cubic-bezier(.18, .85, .3, 1) both; }
.site-intro[data-leaving] .portal-ring-mid { animation: portal-ring-ccw .86s .05s cubic-bezier(.18, .85, .3, 1) both; }
.site-intro[data-leaving] .portal-ring-inner { animation: portal-core-bloom .82s .04s ease-out both; }
.site-intro[data-leaving] .portal-flash { animation: portal-flash-burst .88s .14s ease-out both; }
.site-revealing .hero-panel { animation: hero-arrival .82s .24s cubic-bezier(.22, 1, .36, 1) backwards; }
.site-revealing .hero-art { animation: hero-art-arrival .9s .28s cubic-bezier(.22, 1, .36, 1) backwards; }

@keyframes intro-arrival {
  from { opacity: 0; transform: translateY(1.1rem) scale(.94); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes intro-departure {
  22% { transform: scale(.92); opacity: 1; }
  60% { transform: scale(1.06); opacity: .9; }
  100% { opacity: 0; transform: scale(1.36); }
}
@keyframes intro-emblem-charge {
  0% { box-shadow: 0 0 0 .55rem #58d8ef19, 0 0 3rem #4fdaef4d; transform: scale(1) rotate(0deg); }
  45% { box-shadow: 0 0 0 1.2rem #5ef2ff55, 0 0 4.5rem #ffca4dcc; transform: scale(1.14) rotate(12deg); }
  100% { box-shadow: 0 0 0 3rem #6cf0ff00, 0 0 6rem #6cf0ff00; transform: scale(1.45) rotate(-8deg); }
}
@keyframes intro-ripple {
  from { opacity: .95; transform: scale(.9); }
  to { opacity: 0; transform: scale(2.8); }
}
@keyframes portal-ring-cw {
  0% { opacity: 0; transform: scale(.25) rotate(0deg); }
  25% { opacity: .92; }
  100% { opacity: 0; transform: scale(2.25) rotate(160deg); }
}
@keyframes portal-ring-ccw {
  0% { opacity: 0; transform: scale(.2) rotate(0deg); }
  30% { opacity: .95; }
  100% { opacity: 0; transform: scale(2.5) rotate(-185deg); }
}
@keyframes portal-core-bloom {
  0% { opacity: 0; transform: scale(.3); }
  38% { opacity: .95; transform: scale(1.35); }
  100% { opacity: 0; transform: scale(3.2); }
}
@keyframes portal-flash-burst {
  0% { opacity: 0; transform: scale(.25); }
  42% { opacity: .78; transform: scale(1.15); }
  100% { opacity: 0; transform: scale(2.1); }
}
@keyframes hero-arrival {
  from { opacity: 0; transform: translateY(1.35rem) scale(.95); }
  to { opacity: 1; transform: none; }
}
@keyframes hero-art-arrival {
  from { opacity: 0; transform: scale(.92); }
  to { opacity: 1; transform: none; }
}

.sfx-toggle {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: .48rem;
  min-height: 44px;
  padding: .48rem .9rem;
  border: 1px solid #48b8d488;
  border-radius: 999px;
  background: #0b223ae8;
  color: #e6f9ff;
  box-shadow: 0 .45rem 1.4rem #06182b66;
  backdrop-filter: blur(8px);
  font-size: .88rem;
  font-weight: 700;
}
.sfx-toggle:hover { border-color: #7eeeff; background: #103252f2; }
.sfx-toggle[data-muted="true"] { border-color: #6b8196; color: #b7c8d8; }
.sfx-toggle-icon {
  width: 1.05rem;
  height: 1.05rem;
  background: currentColor;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M11 5 6 9H2v6h4l5 4V5Z'/%3E%3Cpath d='M15.5 8.5a5 5 0 0 1 0 7M19 5a10 10 0 0 1 0 14'/%3E%3C/svg%3E") center / contain no-repeat;
}
.sfx-toggle[data-muted="true"] .sfx-toggle-icon {
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M11 5 6 9H2v6h4l5 4V5ZM22 9l-6 6M16 9l6 6'/%3E%3C/svg%3E") center / contain no-repeat;
}
@media print {
  .sfx-toggle { display: none !important; }
}

@media (max-width: 1180px) {
  .header-inner { position: relative; }
  .nav { gap: .8rem; }
  .account-actions { gap: .4rem; }
  .site-header .button { padding-inline: .75em; }
}
@media (max-width: 1100px) {
  .hero-inner { grid-template-columns: minmax(0, 59fr) minmax(0, 41fr); }
}
@media (max-width: 1080px) {
  .nav { flex-wrap: wrap; justify-content: space-between; padding-block: .65rem; }
  .nav[data-collapsible] { display: none; position: absolute; inset: 100% 0 auto; background: var(--navy); padding: 1.1rem; border: 1px solid #365268; border-radius: 0 0 1rem 1rem; box-shadow: 0 .6rem 1.3rem #07182b55; }
  .nav[data-collapsible][data-open] { display: grid; gap: 1rem; }
  .account-actions { margin: .4rem 0 0; }
}
@media (max-width: 890px) {
  .hero {
    --hero-forest-height: clamp(24rem, 65vw, 38rem);
    background-image: linear-gradient(0deg, #dff6ff 8%, transparent 52%), url("assets/hero-growtopia-bg.webp");
    background-size: 100% 100%, cover;
    background-position: center, center top;
  }
  .hero-inner { grid-template-columns: minmax(0, 1fr); padding-top: clamp(1.25rem, 4vw, 2.75rem); width: min(92%, 41rem); }
  .hero h1 { font-size: clamp(2.65rem, 10vw, 5.75rem); }
  .hero-art { grid-row: 1; height: clamp(15.5rem, 50vw, 26rem); }
  .hero > .forest-effects { max-height: var(--hero-forest-height); }
  .hero-mascot { height: 92%; }
}
@media (max-width: 540px) {
  .hero-panel { padding: 1.35rem; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .about, .feature-box { align-items: flex-start; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  .site-intro-content, .site-revealing .hero-panel, .site-revealing .hero-art, .portal-ring, .portal-flash { animation: none; }
}

@media (forced-colors: active) {
  .hero-wordmark { background: none; color: CanvasText; filter: none; }
  .forest-effects { display: none; }
}

