:root{
  --content-max: 760px;
  --glass: rgba(0,0,0,0.72);
}

*{box-sizing:border-box}

html,body{height:100%}

body{
  margin:0;
  font-family:'Raleway',system-ui,-apple-system,'Segoe UI',Arial,sans-serif;
  color:#fff;
  background:#000;
  text-rendering:optimizeLegibility;
}

.bgimg{
  /* Better handling on mobile browsers with dynamic toolbars */
  min-height:100vh;
  min-height:100svh;
  display:flex;
  flex-direction:column;
  align-items:center;
  /* Let .main handle vertical centering so the footer can remain at the bottom. */
  justify-content:flex-start;
  text-align:center;
  padding:clamp(16px,3.2vw,40px);
  background-position:center;
  background-repeat:no-repeat;
  background-size:cover;
  background-attachment:scroll;
  background-color:#000;
  background-image:url('../images/background-1920.jpg');
  background-image:image-set(
    url('../images/background-960.webp') type('image/webp') 1x,
    url('../images/background-1920.webp') type('image/webp') 2x
  );
}

/* Large screens (e.g., 1440p / QHD and above): use the higher-resolution background. */
@media (min-width: 2000px){
  .bgimg{
    background-image:url('../images/background-2560.jpg');
    background-image:image-set(
      url('../images/background-2560.webp') type('image/webp') 1x,
      url('../images/background-2560.webp') type('image/webp') 2x
    );
  }
}

@supports (height: 100dvh){
  .bgimg{min-height:100dvh}
}

.main{
  width:min(92vw,var(--content-max));
  display:flex;
  flex-direction:column;
  align-items:center;
  /* Occupy the available height so the logo / CTA / platforms can be centered vertically. */
  flex:1 0 auto;
  justify-content:center;
  gap:clamp(10px,2.2vh,20px);
}

.logo{
  width:clamp(200px,50vw,520px);
  height:auto;
}

.platforms{
  width:clamp(220px,55vw,560px);
  height:auto;
}

/* Semi-transparent background behind platforms (ported from the original site). */
.image{
  width:100%;
  display:flex;
  justify-content:center;
  background-color:rgba(0,0,0,0.2);
  padding:clamp(6px,1.2vh,10px) clamp(8px,1.8vw,16px);
}

hr{
  width:min(60%,420px);
  border:0;
  border-top:1px solid rgba(255,255,255,0.35);
  margin:0;
}

.warning-message{
  width:min(100%,620px);
  padding:clamp(16px,2.8vw,24px);
  border:1px solid rgba(255,255,255,0.18);
  border-radius:16px;
  background:rgba(0,0,0,0.78);
  box-shadow:0 18px 34px rgba(0,0,0,0.42);
  backdrop-filter:blur(6px);
  -webkit-backdrop-filter:blur(6px);
}

.warning-message h2{
  margin:0 0 8px;
  font-size:clamp(1.05rem,2.4vw,1.35rem);
  letter-spacing:0.02em;
  text-transform:uppercase;
}

.warning-message p{
  margin:6px 0;
  font-size:clamp(0.92rem,1.7vw,1.05rem);
  line-height:1.45;
}

.discord-button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  margin-top:12px;
  padding:12px 20px;
  border-radius:10px;
  color:#fff;
  background:#5865F2;
  border:1px solid rgba(255,255,255,0.16);
  text-decoration:none;
  font-size:clamp(0.86rem,1.55vw,0.98rem);
  font-weight:700;
  letter-spacing:0.02em;
  box-shadow:0 10px 22px rgba(0,0,0,0.34);
  transition:transform 160ms ease, filter 160ms ease;
}

.discord-button:hover{filter:brightness(1.08);transform:translateY(-1px)}
.discord-button:active{transform:translateY(0)}
.discord-button:focus-visible{outline:2px solid rgba(255,255,255,0.9);outline-offset:3px}

.cta{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:12px;
}

.button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
  color:#fff;
  background:var(--glass);
  border:1px solid rgba(255,255,255,0.10);
  border-radius:10px;
  padding:14px 22px;
  min-width:min(280px,90vw);
  font-size:clamp(0.85rem,1.6vw,1rem);
  letter-spacing:0.02em;
  cursor:pointer;
  box-shadow:0 10px 20px rgba(0,0,0,0.35);
  backdrop-filter:blur(4px);
  -webkit-backdrop-filter:blur(4px);
  transition:transform 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.button:hover{background:rgba(0,0,0,0.84);border-color:rgba(255,255,255,0.18);transform:translateY(-1px)}
.button:active{transform:translateY(0)}
.button:focus-visible{outline:2px solid rgba(255,255,255,0.85);outline-offset:3px}

.button-disabled,
.button-disabled:hover,
.button-disabled:active{
  color:rgba(255,255,255,0.52);
  background:rgba(0,0,0,0.42);
  border-color:rgba(255,255,255,0.08);
  box-shadow:none;
  cursor:not-allowed;
  transform:none;
  filter:none;
  pointer-events:none;
}


.footer{
  margin-top:0;
  padding-top:18px;
  padding-bottom:max(0px,env(safe-area-inset-bottom));
  font-size:clamp(0.75rem,1.2vw,0.9rem);
  opacity:0.92;
}

/* Landscape phones (short height): keep the same proportions, just compress vertical rhythm. */
@media (max-height: 430px) and (orientation: landscape){
  .bgimg{padding:clamp(10px,2.2vw,18px)}
  .main{gap:10px}
  .logo{width:clamp(160px,28vw,340px)}
  .platforms{width:clamp(180px,30vw,360px)}
  .image{padding:4px 10px}
  .warning-message{padding:10px 14px}
  .warning-message h2{font-size:0.95rem;margin-bottom:4px}
  .warning-message p{font-size:0.8rem;margin:3px 0}
  .discord-button{margin-top:6px;padding:8px 14px;font-size:0.78rem}
  .button{padding:10px 18px;min-width:min(240px,44vw);font-size:0.82rem}
  .footer{padding-top:10px}
}

/* Very small phones */
@media (max-width: 360px){
  .warning-message{padding:14px 12px}
  .button{min-width:min(260px,92vw)}
}

@media (prefers-reduced-motion: reduce){
  .button,
  .discord-button{transition:none}
}

.fade-in{
  animation:fadeIn 420ms ease-out both;
}

@keyframes fadeIn{
  from{opacity:0;transform:translateY(6px)}
  to{opacity:1;transform:translateY(0)}
}
