:root {
  --bg: #080b16;
  --bg-soft: #10172a;
  --ink: #f7fbff;
  --muted: #9dadc9;
  --line: rgba(255, 255, 255, 0.13);
  --glass: rgba(12, 20, 39, 0.56);
  --cyan: #70e6ff;
  --blue: #4b8dff;
  --purple: #9a7cff;
  --white: #ffffff;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.36);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 74% 8%, rgba(112, 230, 255, 0.18), transparent 28rem),
    radial-gradient(circle at 16% 20%, rgba(154, 124, 255, 0.16), transparent 26rem),
    linear-gradient(180deg, #080b16 0%, #0b1020 47%, #080b16 100%);
  font-family: "Manrope", sans-serif;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  opacity: 0.13;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 4px 4px;
  mix-blend-mode: overlay;
}

.site-header {
  position: fixed;
  top: 18px;
  left: 50%;
  z-index: 40;
  display: flex;
  width: min(1120px, calc(100% - 32px));
  transform: translateX(-50%);
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(8, 11, 22, 0.68);
  backdrop-filter: blur(22px);
  box-shadow: var(--shadow);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.brand-mark{
    width:48px;
    height:48px;

    border-radius:10%;   /* Bulat */

    overflow:hidden;

    display:flex;
    align-items:center;
    justify-content:center;

    background:rgba(255,255,255,.06);
    backdrop-filter:blur(18px);

    border:2px solid rgba(255,255,255,.18);

    box-shadow:
        0 0 18px rgba(112,230,255,.28),
        inset 0 0 12px rgba(255,255,255,.05);

    transition:.3s ease;
}

.brand-mark:hover{
    transform:scale(1.08) rotate(6deg);

    box-shadow:
        0 0 28px rgba(112,230,255,.45),
        0 0 50px rgba(154,124,255,.25);
}

.brand-mark img{
    width:82%;
    height:82%;
    object-fit:contain;
}


.logo-placeholder img{
    width:90%;
    height:90%;

    object-fit:contain;

    border-radius:20px;
}

.logo-placeholder{
    width:180px;
    height:180px;

    border-radius:28px;

    overflow:hidden;

    display:flex;
    align-items:center;
    justify-content:center;

    background:rgba(255,255,255,.05);

    backdrop-filter:blur(18px);

    border:2px solid rgba(255,255,255,.15);

    box-shadow:
        0 0 25px rgba(80,160,255,.25),
        inset 0 0 20px rgba(255,255,255,.05);

    transition:.3s;
}

.logo-placeholder:hover{
    transform:scale(1.04);

    box-shadow:
        0 0 40px rgba(80,160,255,.45);
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
}

.site-nav {
  display: flex;
  gap: 4px;
}

.site-nav a,
.community-links a,
.site-footer a {
  color: var(--muted);
  font-size: 0.92rem;
  padding: 10px 12px;
  transition: color 180ms ease, background 180ms ease;
}

.site-nav a:hover,
.community-links a:hover,
.site-footer a:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.07);
  border-radius: 10px;
}

.nav-toggle {
  display: none;
}

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  align-items: end;
  gap: 34px;
  padding: 150px max(24px, calc((100vw - 1120px) / 2)) 64px;
  overflow: hidden;
}

#particleCanvas,
.hero-landscape {
  position: absolute;
  inset: 0;
}

#particleCanvas {
  z-index: 2;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8,11,22,.10) 0%, rgba(8,11,22,.36) 48%, rgba(8,11,22,.94) 100%),
    radial-gradient(circle at 65% 34%, rgba(112,230,255,.22), transparent 28rem);
  z-index: 1;
}

.hero-content,
.hero-panel {
  position: relative;
  z-index: 3;
}

.logo-placeholder {
  width: 92px;
  height: 92px;
  border-radius: 24px;
  margin-bottom: 24px;
  font-family: "Syne", sans-serif;
  font-weight: 800;
  letter-spacing: 0;
}

.eyebrow,
.panel-label {
  margin: 0 0 12px;
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Syne", sans-serif;
  letter-spacing: 0;
}

h1 {
  max-width: 760px;
  font-size: clamp(4.5rem, 12vw, 10.5rem);
  line-height: 0.82;
}

.hero-subtitle {
  max-width: 620px;
  margin: 24px 0 32px;
  color: #dce8ff;
  font-size: clamp(1.08rem, 2.4vw, 1.45rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 0 18px;
  font-weight: 800;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
  cursor: pointer;
}

.button:hover,
.icon-button:hover,
.gallery-btn:hover {
  transform: translateY(-2px);
}

.primary {
  color: #06101e;
  border-color: transparent;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
}

.secondary {
  color: var(--white);
  background: rgba(255,255,255,.1);
}

.ghost {
  color: var(--muted);
  background: rgba(255,255,255,.035);
}

.glass,
.hero-panel {
  border: 1px solid var(--line);
  background: var(--glass);
  backdrop-filter: blur(24px);
  box-shadow: var(--shadow);
}

.hero-panel {
  align-self: end;
  border-radius: 22px;
  padding: 24px;
}

.hero-panel strong {
  display: block;
  margin-bottom: 10px;
  font-size: 1.45rem;
}

.hero-panel p,
.feature-card p,
.shop-card p,
.staff-card p,
.timeline p,
.community-panel p,
.motd {
  color: var(--muted);
  line-height: 1.7;
}

.moon {
  position: absolute;
  top: 18%;
  right: 15%;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffffff, #c8f6ff 48%, rgba(112,230,255,.16) 70%);
  filter: blur(.2px);
  opacity: .82;
}

.ridge {
  position: absolute;
  left: -5%;
  right: -5%;
  bottom: 0;
  clip-path: polygon(0 48%, 10% 36%, 18% 44%, 27% 24%, 38% 38%, 48% 20%, 61% 34%, 72% 18%, 84% 40%, 100% 24%, 100% 100%, 0 100%);
}

.ridge-back { height: 55%; background: linear-gradient(180deg, #1e2d59, #0e1730); opacity: .75; }
.ridge-mid { height: 42%; background: linear-gradient(180deg, #1a5c70, #102647); bottom: -2%; }
.ridge-front { height: 27%; background: linear-gradient(180deg, #2c6f6a, #101b2b); bottom: -3%; }
.water { position: absolute; left: 0; right: 0; bottom: 0; height: 13%; background: linear-gradient(90deg, rgba(112,230,255,.38), rgba(75,141,255,.12), rgba(154,124,255,.30)); opacity: .65; }

.block {
  position: absolute;
  width: 58px;
  height: 58px;
  background: linear-gradient(135deg, rgba(112,230,255,.5), rgba(154,124,255,.35));
  border: 1px solid rgba(255,255,255,.24);
  transform: rotate(10deg);
  animation: floatBlock 7s ease-in-out infinite;
}

.block-a { top: 24%; left: 14%; }
.block-b { top: 36%; right: 31%; animation-delay: -2s; }
.block-c { top: 54%; left: 54%; animation-delay: -4s; }
.block-d { top: 19%; right: 6%; width: 34px; height: 34px; animation-delay: -1s; }

@keyframes floatBlock {
  0%, 100% { transform: translateY(0) rotate(10deg); }
  50% { transform: translateY(-22px) rotate(18deg); }
}

.section {
  padding: 96px max(24px, calc((100vw - 1120px) / 2));
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-heading h2,
.community-panel h2 {
  font-size: clamp(2.2rem, 5vw, 4.8rem);
  line-height: .95;
}

.status-grid {
  display: grid;
  grid-template-columns: 1.7fr repeat(3, 1fr);
  gap: 14px;
}

.server-card,
.metric,
.player-list,
.feature-card,
.shop-card,
.staff-card,
.community-panel,
.timeline article {
  border-radius: 22px;
  padding: 22px;
}

.server-card {
  display: grid;
  grid-template-columns: 76px 1fr 42px;
  gap: 18px;
  align-items: center;
}

.server-icon {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: #06101e;
  font-family: "Syne", sans-serif;
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--cyan), var(--blue), var(--purple));
}

.status-pill {
  display: inline-flex;
  margin: 0 0 8px;
  padding: 6px 10px;
  border-radius: 999px;
  color: #8fffd1;
  background: rgba(83, 255, 187, .12);
  font-size: .78rem;
  font-weight: 800;
}

.status-pill.offline {
  color: #ffb2c4;
  background: rgba(255, 91, 128, .14);
}

.icon-button,
.gallery-btn {
  border: 1px solid var(--line);
  color: var(--white);
  background: rgba(255,255,255,.08);
  cursor: pointer;
}

.icon-button {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  font-size: 1.15rem;
}

.metric strong {
  display: block;
  margin: 10px 0 4px;
  font-size: 2rem;
}

.metric span,
.metric small,
.player-list span {
  color: var(--muted);
}

.player-list {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 14px;
}

.feature-grid,
.shop-grid,
.staff-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.feature-card,
.shop-card,
.staff-card,
.timeline article {
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(255,255,255,.08), rgba(255,255,255,.025));
}

.feature-card {
  min-height: 230px;
}

.feature-card.tall {
  grid-row: span 2;
}

.feature-card.wide {
  grid-column: span 2;
}

.feature-card span,
.shop-card span,
.staff-card span,
.timeline span {
  color: var(--cyan);
  font-weight: 800;
}

.feature-card h3,
.shop-card h3,
.staff-card h3,
.timeline h3 {
  margin-top: 18px;
  font-size: 1.35rem;
}

.gallery {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255,255,255,.05);
}

.gallery-track{
    position:relative;
}

.shot{
    position:absolute;
    inset:0;

    margin:0;

    opacity:0;

    transition:.45s;

    overflow:hidden;

    border-radius:28px;
}

.shot.active{
    opacity:1;
    position:relative;
}

.shot img{
    width:100%;
    height:520px;

    display:block;

    object-fit:cover;
}

.shot figcaption{
    position:absolute;

    left:24px;
    right:24px;
    bottom:24px;

    max-width:420px;

    padding:18px;

    border-radius:18px;

    background:rgba(8,11,22,.65);

    backdrop-filter:blur(15px);

    border:1px solid rgba(255,255,255,.15);

    color:white;
}

.gallery-btn {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 48px;
  height: 48px;
  border-radius: 15px;
  font-size: 2rem;
}

.prev { left: 18px; }
.next { right: 18px; }

.timeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.community-panel {
  display: grid;
  grid-template-columns: 1fr .8fr;
  gap: 30px;
  align-items: center;
}

.community-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.community-links a {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,.055);
}

.shop-card {
  min-height: 280px;
  display: flex;
  flex-direction: column;
}

.shop-card .button {
  margin-top: auto;
}

.avatar{
    width:74px;
    height:74px;

    margin-bottom:18px;

    border-radius:20px;

    overflow:hidden;

    display:flex;
    align-items:center;
    justify-content:center;

    background:rgba(255,255,255,.05);

    border:2px solid rgba(112,230,255,.35);

    box-shadow:0 0 18px rgba(112,230,255,.25);

    transition:.3s;
}

.avatar:hover{
    transform:scale(1.06);
    box-shadow:0 0 28px rgba(112,230,255,.45);
}

.avatar img{
    width:100%;
    height:100%;

    object-fit:cover;

    display:block;
}

.site-footer {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 38px max(24px, calc((100vw - 1120px) / 2));
  border-top: 1px solid var(--line);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.site-footer p {
  color: var(--muted);
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 60;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(8, 11, 22, .82);
  backdrop-filter: blur(18px);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 920px) {
  .nav-toggle {
    display: grid;
    gap: 5px;
    width: 42px;
    height: 42px;
    place-content: center;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255,255,255,.06);
  }

  .nav-toggle span {
    width: 18px;
    height: 2px;
    background: var(--white);
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(8, 11, 22, .92);
  }

  .site-nav.open {
    display: flex;
  }

  .hero,
  .status-grid,
  .community-panel,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .feature-grid,
  .shop-grid,
  .staff-grid,
  .timeline {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature-card.tall,
  .feature-card.wide {
    grid-row: auto;
    grid-column: auto;
  }
}

@media (max-width: 620px) {
  .hero {
    padding-top: 120px;
  }

  h1 {
    font-size: clamp(4rem, 18vw, 6rem);
  }

  .hero-actions,
  .player-list {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .feature-grid,
  .shop-grid,
  .staff-grid,
  .timeline,
  .community-links {
    grid-template-columns: 1fr;
  }

  .server-card {
    grid-template-columns: 64px 1fr;
  }

  .icon-button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .shot-art {
    min-height: 360px;
  }

  .site-footer {
    justify-items: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}

.server-icon{
    width:72px;
    height:72px;

    border-radius:18px;

    overflow:hidden;
}

.server-icon img{
    width:100%;
    height:100%;

    object-fit:cover;
}

#edit_foto_gallery

#musicBtn{

position:fixed;

right:20px;

bottom:20px;

width:55px;

height:55px;

border:none;

border-radius:50%;

cursor:pointer;

font-size:22px;

color:white;

background:rgba(10,20,35,.8);

backdrop-filter:blur(15px);

border:1px solid rgba(255,255,255,.15);

transition:.3s;

z-index:9999;

}

#musicBtn:hover{

transform:scale(1.08);

box-shadow:0 0 20px rgba(112,230,255,.35);

}