/* ---------- Theme ---------- */
:root{
  --bg:#0b0b10;
  --fg:#f4f4fb;
  --muted:#a3a3b2;
  --card:#13131a;
  --acc:#7c2ae8;
  --accent:#7c2ae8;
  --accent-2:#21d4fd;
  --ring: rgba(124,42,232,.5);
  --shadow: 0 10px 35px rgba(44,28,53,.45);
}

*{ box-sizing: border-box; }
html, body {
  height: 100%;
  background-color: #0b0b10; /* fallback solid color under gradients */
}

body {
  margin: 0;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: radial-gradient(1200px 600px at 10% 0%, #141421, transparent 60%), radial-gradient(900px 500px at 90% 20%, #141421, transparent 55%), linear-gradient(120deg, #0b0b10 0%, #0f0f18 55%, #0b0b10 100%);
  font: 16px/1.6 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, "Helvetica Neue", Arial;
  color: var(--fg);
  background-color: #0b0b10; /* solid fallback only */
}
body::before{
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(1200px 600px at 10% 0%, #141421 0, transparent 60%),
    radial-gradient(900px 500px at 90% 20%, #141421 0, transparent 55%),
    linear-gradient(120deg, #0b0b10 0%, #0f0f18 55%, #0b0b10 100%);
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: scroll;

  /* merge into same compositing layer as .aurora */
  z-index: 0;
  transform: none;
  will-change: auto;
  mix-blend-mode: normal;
  isolation: isolate;
  backface-visibility: visible;
  overflow-x: hidden;
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

/* Because IOS has to be special */
body {
  overscroll-behavior: none;
  -webkit-overflow-scrolling: touch;
  background-color: #0b0b10;
}

a { color: var(--acc); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- Animated Aurora Layer ---------- */
.aurora{
  position:fixed; inset:-10vmax;
  background:
    radial-gradient(40vmax 35vmax at 15% 20%, rgba(124,42,232,.18), transparent 60%),
    radial-gradient(35vmax 30vmax at 85% 10%, rgba(33,212,253,.15), transparent 60%),
    radial-gradient(45vmax 40vmax at 70% 70%, rgba(255, 99, 235,.10), transparent 60%),
    radial-gradient(60vmax 50vmax at 20% 80%, rgba(98, 0, 255,.12), transparent 60%);
  filter: blur(40px) saturate(120%);
  animation: floaty 24s ease-in-out infinite alternate;
  pointer-events:none;
  z-index:0;
}
@keyframes floaty{
  0%{ transform: translate3d(-2%, -1%, 0) scale(1); }
  100%{ transform: translate3d(2%, 1%, 0) scale(1.02); }
}

/* Cherry-blossom header art (beneath all content, above the aurora/gradients) */
.header-boughs{
  position: fixed;
  left: 0; right: 0; top: 0;

  /* Increase height to push the artwork farther down */
  height: clamp(560px, 72vh, 880px);

  background-image: url('/assets/img/background-header.png');
  background-repeat: no-repeat;
  background-position: top center;

  /* Keep petals sharp without over-stretching on wide monitors */
  background-size: min(2200px, 100vw) auto;

  pointer-events: none;
  z-index: 0;

  /* Fade later so the bottom edge lands below the navbar/hero */
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 84%, rgba(0,0,0,0) 100%);
          mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 84%, rgba(0,0,0,0) 100%);
}

/* Phones: still extend, but not overwhelming */
@media (max-width: 768px){
  .header-boughs{
    height: clamp(380px, 48vh, 640px);
    background-size: min(1600px, 120vw) auto;
    -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 80%, rgba(0,0,0,0) 100%);
            mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 80%, rgba(0,0,0,0) 100%);
  }
}

/* Keep header positioning rules */
.landing-page-banner header {
  position: static;
  top: auto;
}


/* ---------- Containers ---------- */
.container{
  max-width: 1105px;
  margin: 0 auto;
  padding: 0 clamp(5px, 4vw, 1px);
}

/* ---------- Header Banner ---------- */
header{
  top:0; z-index:5;
  background: transparent;
  border: 0; box-shadow: none;
  padding-top: 10px;
}

.banner{
    margin: 14px auto 0;
}

.banner-media{
  position: relative;
  overflow: hidden;
  border-radius: 22px 22px 0 0;
  box-shadow: 0 18px 50px rgba(0,0,0,.45);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 90%, rgba(0,0,0,0) 100%);
          mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 90%, rgba(0,0,0,0) 100%);
  margin-bottom: auto;
}

@media (max-width: 1080px){
  .banner-media{
    margin: 10px 12px 0 12px;
  }
}

.banner-media img{
  display:block; width:100%; height:auto; transform: translateZ(0);
  filter: saturate(105%) contrast(102%) drop-shadow(0 10px 24px rgba(0,0,0,.35));
}

.banner-media::after{
  content:"";
  position:absolute; left:0; right:0; bottom:-1px; height:42%;
  pointer-events:none;
}

.banner-media::before{
  content:"";
  position:absolute; inset:0;
  background: radial-gradient(60% 45% at 50% 0%, rgba(255,255,255,.10), transparent 60%);
  mix-blend-mode: screen;
  pointer-events:none;
}

/* ---------- Card ---------- */
.card{
  background: color-mix(in oklab, var(--card) 92%, black 8%);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 20px;
  border-top-right-radius: 0px;
  border-top-left-radius: 0px;
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
  isolation: isolate;
}

.inside-card{
  background: color-mix(in oklab, var(--card) 92%, black 8%);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 20px;
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
  isolation: isolate;
}

/* Ambient glow inside card */
.glow{
  position:absolute; inset:-2px;
  background:
    radial-gradient(120% 80%  at 50%   0%,  rgba(124,42,232,.35), transparent 60%),
    radial-gradient(120% 90%  at 50% 100%,  rgba(33,212,253,.25), transparent 62%),
    radial-gradient(160% 120% at   0%  50%, rgba(124,42,232,.22), transparent 60%),
    radial-gradient(160% 120% at 100%  50%, rgba(33,212,253,.18), transparent 60%);
  filter: blur(26px) saturate(130%);
  opacity:.40; z-index:-1;
  animation: breathe 50s ease-in-out infinite;
  pointer-events:none;
}
@keyframes breathe {
  0%   { transform: scale(1);    opacity:.30; filter: blur(26px) saturate(130%) hue-rotate(0deg); }
  50%  { transform: scale(1.10); opacity:.65; filter: blur(30px) saturate(150%) hue-rotate(20deg); }
  100% { transform: scale(1);    opacity:.30; filter: blur(26px) saturate(130%) hue-rotate(0deg); }
}

/* ---------- Hero layout ---------- */
.hero{ padding: clamp(22px, 4vw, 44px); }

/* Two-column body below the centered header */
.hero-grid{
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(16px, 40vw, 36px);
  align-items: center;
}
.hero-copy h1{
  margin: 0 0 .50em;
  font-size: clamp(28px, 6vw, 44px);
  letter-spacing:.2px;
  line-height:1.15;
  text-shadow: 0 8px 30px rgba(0,0,0,.45);
  text-align: center;
}
.lead{
  margin: 0 0 1.2em;
  color: var(--muted);
  font-size: clamp(15px, 4.5vw, 18px);
  text-align: center;
}

/* Small status pill */
.status{
  display:inline-flex; align-items:center; gap:10px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  padding: 8px 12px; border-radius: 999px; margin-bottom: .8em;
}
.status .dot{
  width:12px; height:12px; border-radius:50%;
  background: radial-gradient(circle at 30% 30%, white 0 15%, var(--accent) 16% 60%, rgba(124,42,232,.65) 61% 100%);
  box-shadow: 0 0 20px rgba(124,42,232,.65);
  animation: pulse 1.8s ease-in-out infinite;
  flex: 0 0 auto;
}
.status span{ color: var(--fg); font-weight: 600; letter-spacing:.2px }
@keyframes pulse{
  0%,100%{ transform: scale(1); box-shadow: 0 0 16px rgba(124,42,232,.55); }
  50%{ transform: scale(1.12); box-shadow: 0 0 28px rgba(124,42,232,.9); }
}

/* ---------- Right-side login card ---------- */
.hero-cta{ width: 100%; }
.login-card{
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  padding: clamp(16px, 3.5vw, 22px);
  box-shadow: var(--shadow);
  text-align: center;
}
.login-title{
  margin: 0 0 .35em;
  font-size: 25px;
  letter-spacing:.3px;
}
.login-note{
  margin: 0 0 1em; color: var(--muted);
}

/* Roblox button */
.btn{
  appearance:none; border:none; cursor:pointer;
  text-decoration:none; color:var(--fg); font-weight:600;
  background: linear-gradient(135deg, rgba(124,42,232,.8), rgba(33,212,253,.65));
  border: 1px solid rgba(255,255,255,.12);
  padding: 12px 16px; border-radius:14px;
  box-shadow: var(--shadow);
  transition: transform .15s ease, filter .15s ease, box-shadow .15s ease;
  display:inline-flex; align-items:center; gap:.6ch;
  min-height: 44px;
  margin: 8px 0 0;
}
.btn--refresh{
  background: linear-gradient(135deg, rgba(16,185,129,.85), rgba(34,197,94,.70)) !important;
  border-color: rgba(16,185,129,.35) !important;
  box-shadow: 0 10px 30px rgba(16,185,129,.22), 0 6px 16px rgba(34,197,94,.25) !important;
}
.btn--refresh:hover{
  box-shadow: 0 10px 30px rgba(16,185,129,.22), 0 6px 16px rgba(34,197,94,.25) !important;
}
.btn:hover{
  transform: translateY(-1px);
  filter: saturate(115%);
  box-shadow: 0 10px 30px rgba(33,212,253,.22), 0 6px 16px rgba(124,42,232,.25);
}
.btn:focus-visible{
  outline: 3px solid var(--ring);
  outline-offset: 2px;
}
.btn:active{ transform: translateY(0) scale(.99); }

.btn-group {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 12px;
}

.rbx-logo{
  width: 20px;
  height: 20px;
  display: inline-block;
  flex: 0 0 auto;
  margin-right: .5ch;
  vertical-align: middle;
  filter: drop-shadow(0 0 6px rgba(255,255,255,.05));
}

/* Small print */
.legal{
  margin: 30px 0 0; font-size: 12.5px; color: var(--muted);
}
.legal a{ color: var(--fg); text-decoration: underline; text-underline-offset: 2px; }

/* Footer */
.site-footer{
  position: relative;
  text-align:center; color:var(--muted);
  margin: 20px 0 24px; font-size: 14px;
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

/* No-JS message */
.noscript{
  max-width: 1100px; margin: 0 auto 24px; padding: 10px 14px;
  color:#0b0b10; background:#ffd166; border-radius: 8px;
}

/* ---------- Responsive ---------- */
@media (max-width: 1120px){
  .banner{ padding: 0; }
}
    
@media (max-width: 980px){
  .hero-grid{ grid-template-columns: 1fr; }
  .hero-copy { order: -1; }
  .hero-cta { order: 0; }
}

@media (max-width: 520px){
  .login-card{ padding: 14px; }
  .btn{ width: 100%; justify-content:center; padding: 14px 16px; }
  .legal { font-size: 10px; }
}

@media (prefers-reduced-motion: reduce){
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

.rip-wrap{ 
  position: relative;
  height: 200px;
  margin-top: -72px;
  pointer-events: none;
  z-index: 5;
  background: transparent;
  contain: paint;
  transform: translateZ(0);
} 


.rip-svg {
  display: block;
  width: 100%;
  height: 100%;
  background: transparent; 
}

.rip-wrap::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: transparent; /* explicitly transparent above the wave */
  z-index: -1;
}


.game-section {
  background: #100F15;
  padding: 4rem 0;
  position: relative;
  z-index: 1;
  isolation: isolate;
}

/* --- Section Titles --- */
.section-title {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 3rem;
  background: linear-gradient(135deg, #ffffff 0%, #a78bfa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.section-desc {
  text-align: center;
  color: #a3a3b2;
  margin-top: -2rem;
  margin-bottom: 3rem;
}

/* --- Game Cards --- */
.content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}
.game-card {
  background: rgba(20, 20, 30, 0.6);
  border: 1px solid rgba(138, 43, 226, 0.22);
  border-radius: 12px;
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  box-shadow: 0 6px 22px rgba(0,0,0,.35);
}
.game-card:hover {
  transform: translateY(-4px);
  border-color: rgba(138,43,226,.35);
  box-shadow: 0 12px 32px rgba(138,43,226,.20), 0 8px 22px rgba(0,0,0,.35);
}
.game-image {
  position: relative;
  height: 200px;
  background:#0f0f18;
}
.game-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display:block;
}
.game-badge {
  position: absolute;
  top: .75rem;
  right: .75rem;
  background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
  padding: .25rem .75rem;
  border-radius: 12px;
  font-size: .75rem;
  font-weight: 600;
  color: #fff;
  box-shadow: 0 6px 18px rgba(99,102,241,.35);
}
.game-info { padding: 1.5rem; }
.game-info h3 {
  color:#fff; font-size:1.25rem; margin-bottom:.5rem;
}
.game-info p {
  color:#b0b0b0; font-size:.9rem; margin-bottom:1rem;
}
.game-stats {
  display:flex; gap:1rem; color:#a0a0a0; font-size:.875rem;
}

/* --- Video Grid --- */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}
.video-card {
  background: rgba(20, 20, 30, 0.6);
  border: 1px solid rgba(138, 43, 226, 0.22);
  border-radius: 12px;
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  box-shadow: 0 6px 22px rgba(0,0,0,.35);
}
.video-card:hover {
  transform: translateY(-4px);
  border-color: rgba(138,43,226,.35);
  box-shadow: 0 12px 32px rgba(138,43,226,.20), 0 8px 22px rgba(0,0,0,.35);
}
.video-thumbnail {
  position:relative; height:180px; cursor:pointer; background:#0f0f18;
}
.video-thumbnail img { width:100%; height:100%; object-fit:cover; display:block; }
.play-button {
  position:absolute; top:50%; left:50%; transform:translate(-50%,-50%);
  width:60px; height:60px; border-radius:50%;
  background: rgba(139,92,246,.92); color:#fff;
  display:flex; align-items:center; justify-content:center;
  font-size:1.5rem; transition: transform .25s ease; box-shadow:0 10px 26px rgba(139,92,246,.35);
}
.video-card:hover .play-button { transform:translate(-50%,-50%) scale(1.08); }

/* --- Rewards Grid --- */
.rewards-grid {
  display:grid; grid-template-columns:repeat(auto-fit, minmax(250px,1fr)); gap:2rem;
}
.reward-card {
  background: rgba(20,20,30,.6);
  border: 1px solid rgba(138,43,226,.22);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  box-shadow: 0 6px 22px rgba(0,0,0,.35);
}
.reward-card:hover {
  transform: translateY(-4px);
  border-color: rgba(138,43,226,.35);
  box-shadow: 0 12px 32px rgba(138,43,226,.20), 0 8px 22px rgba(0,0,0,.35);
}
.reward-icon { font-size:3rem; margin-bottom:1rem; }
.reward-card h3 { color:#fff; font-size:1.15rem; margin-bottom:.4rem; }
.reward-card p  { color:#b0b0b0; font-size:.9rem; }

/* --- Responsive tweaks --- */
@media (max-width: 1024px){
  .rip-wrap{ margin-top: -84px; }            /* pull wave up a bit more */
}

/* This is the troublesome width; kill hero's bottom margin & increase overlap */
@media (max-width: 980px){
  .hero.card{ margin-bottom: 0 !important; } /* remove any gap below the login card */
  .rip-wrap{ margin-top: -96px; }            /* tuck the wave under the card */
}

/* Phones */
@media (max-width: 768px){

  .rip-wrap{
    height: 120px;
    margin-top: -56px;
  }

  /* compress section spacing */
  .game-section{
    padding: 2rem 0;
  }

  /* readable title sizing */
  .section-title{
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
  }
  .section-desc{
    font-size: 0.9rem;
    margin: -1rem 1rem 2rem;
  }

  /* single-column layout */
  .content-grid,
  .video-grid,
  .rewards-grid{
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  /* compact card visuals */
  .game-card,
  .video-card,
  .reward-card{
    border-radius: 10px;
    padding: 1.25rem;
    box-shadow: 0 4px 14px rgba(0,0,0,.4);
  }

  .game-image,
  .video-thumbnail{
    height: 150px;
  }

  .reward-icon{
    font-size: 2rem;
  }
  .game-info h3,
  .reward-card h3{
    font-size: 1rem;
  }
  .game-info p,
  .reward-card p{
    font-size: 0.85rem;
  }
}

/* extreme small phones */
@media (max-width: 420px){
  .section-title{ font-size: 1.3rem; }
  .game-section{ padding: 1.5rem 0; }
  .rip-wrap{ height: 100px; margin-top: -30px; }
}

.sakasu-menu{ margin-bottom: 0; }
.sakasu-menu + main.container > .card:first-child,
.sakasu-menu + .wrap            > .card:first-child{
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  margin-top: 0;
}