/* ===========================
   ABZ Middle School Learning
   Global Stylesheet (Modern/Youthful)
   =========================== */

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

:root{
  --bg: #0b0f1c;
  --bg-2: #0f1630;
  --glass: rgba(255,255,255,0.08);
  --panel: rgba(255,255,255,0.06);
  --stroke: rgba(255,255,255,0.10);

  --txt: #eef1ff;
  --muted: #b8bee6;

  --brand: #7b7cff;
  --brand-2: #00e4ff;
  --accent: #ff74dc;
  --lime: #7df59a;
  --warn: #ffd166;

  --shadow: 0 18px 40px rgba(0,0,0,.35);
  --radius: 16px;
}

html, body { height: 100%; }
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial;
  color: var(--txt);
  background:
    radial-gradient(1200px 700px at 20% -10%, #1b2255 0%, transparent 60%),
    radial-gradient(900px 600px at 120% 10%, #102a48 0%, transparent 55%),
    var(--bg);
  line-height: 1.6;
}

img{ max-width:100%; height:auto; display:block; }
a{ color: var(--brand-2); text-decoration: none; }
a:hover{ text-decoration: underline; }
.container { width: min(1200px, 92%); margin-inline: auto; }
.section-pad{ padding: 3.2rem 0; }
.muted{ color: var(--muted); }
.small{ font-size:.9rem; }
.hide{ display:none !important; }
.hidden{ display:none !important; }

/* HEADER */
.site-header{
  position: sticky; top:0; z-index:50;
  backdrop-filter: blur(8px);
  background: linear-gradient(180deg, rgba(10,12,24,.92), rgba(10,12,24,.65));
  border-bottom: 1px solid var(--stroke);
}
.header-inner{ display:flex; align-items:center; justify-content:space-between; padding:.8rem 0; }
.brand{ display:flex; align-items:center; gap:.6rem; color: var(--txt); }
.brand-badge{
  display:grid; place-items:center;
  width:42px; height:42px; border-radius:12px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color:#081021; font-weight:900; letter-spacing:.4px;
}
.brand-text{ font-weight:800; letter-spacing:.2px; }

.nav ul{ display:flex; gap:1rem; list-style:none; margin:0; padding:0; align-items:center; }
.nav a{ color: var(--txt); padding:.5rem .75rem; border-radius:.7rem; }
.nav a.active{ background: var(--panel); }
.btn-small{ padding:.45rem .8rem; font-size:.95rem; }

.nav-toggle{ display:none; background:transparent; border:0; cursor:pointer; }
.nav-toggle-bar{ display:block; width:26px; height:2px; background: var(--txt); margin:.3rem 0; }

@media (max-width: 860px){
  .nav-toggle{ display:block; }
  .nav{ position:absolute; top:60px; right:4%; left:4%; background:var(--bg-2); border:1px solid var(--stroke); border-radius:14px; display:none; }
  .nav.open{ display:block; }
  .nav ul{ flex-direction: column; padding: .6rem; }
}

/* HERO */
.hero{ padding: 4.6rem 0 2.6rem; position:relative; }
.hero-grid{
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap:2.2rem;
  align-items:center;
}
.eyebrow{ color: var(--muted); text-transform: uppercase; letter-spacing:.14em; font-size:1.2rem; }
.hero h1{ font-size: clamp(2.2rem, 3.2vw, 3.1rem); margin:.2rem 0 .5rem; }
.text-gradient{ background: linear-gradient(90deg, var(--brand-2), var(--accent)); -webkit-background-clip:text; background-clip:text; color:transparent; 
font-size: 3rem !important;}
.text-flare{ background: linear-gradient(90deg, #fff, var(--brand-2)); -webkit-background-clip:text; background-clip:text; color:transparent; }
.lead{ color: var(--muted); font-size:1.05rem; }
.hero-hint{ display:block; margin-top:.4rem; }

/* ===== Neon Hero Revamp ===== */
.hero--neon {
  position:relative;
  padding: 5.2rem 0 3.6rem;
  overflow: visible; /* allow dropdown to extend + scroll */
}
.hero--neon .hero-bg {
  position:absolute;
  inset:0;
  pointer-events:none;
  z-index:0;
}
.hero--neon .aurora{
  position:absolute; filter: blur(70px); opacity:.42; transform: translateZ(0);
}
.hero--neon .a1{
  width:70vmax; height:70vmax; top:-20vmax; left:-10vmax;
  background: conic-gradient(from 120deg, var(--brand) 0%, rgba(0,0,0,0) 35%, var(--accent) 55%, rgba(0,0,0,0) 75%, var(--brand-2) 100%);
}
.hero--neon .a2{
  width:60vmax; height:60vmax; bottom:-25vmax; right:-10vmax;
  background: radial-gradient(closest-side, rgba(0,228,255,.35), rgba(0,0,0,0));
}
.hero--neon .grain{
  position:absolute; inset:-10%;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/><feComponentTransfer><feFuncA type='table' tableValues='0 .04'/></feComponentTransfer></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity:.12; mix-blend-mode: soft-light;
}
.hero-grid--split{
  grid-template-columns: 1.1fr .9fr;
  gap:2.2rem;
  align-items:center;
  position:relative;
  z-index:1; /* above glow layer */
}
.hero-copy{
  max-width: 520px;
}
@media (max-width:980px){
  .hero-grid--split{
    grid-template-columns:1fr;
    text-align:left;
  }
  .hero-copy{
    max-width:none;
  }
}

.pill-highlight{
  position:relative;
  padding:.1rem .45rem;
  border-radius:10px;
  background:linear-gradient(90deg, rgba(18, 15, 15, 0.8), rgba(43, 43, 43, 0.35));
  color:#ffffff;
}
.hero-title{ position:relative; }
.hero-title .sparkle{ font-size:1.05em; margin-left:.2rem; opacity:.85; }

.lead-strong{ font-size:1.05rem; color:var(--txt); opacity:.9; }

/* Hero visual (right image) */
.hero-visual{
  position:relative;
  height:min(440px, 40vmax);
  display:grid;
  place-items:center;
}
.hero-art{
  width:100%;
  max-width:520px;
  height:auto;
  display:block;
  border-radius:18px;
  filter: drop-shadow(0 30px 60px rgba(0,0,0,.45));
  transform: perspective(1200px) rotateY(-6deg) translateZ(0);
  transition: transform .35s ease, filter .35s ease;
}
.hero-visual:hover .hero-art{
  transform: perspective(1200px) rotateY(-2deg) translateY(-2px);
  filter: drop-shadow(0 40px 70px rgba(0,0,0,.5));
}

/* Scroll cue */
.scroll-cue{
  position:absolute; left:50%; transform:translateX(-50%);
  bottom:12px; background:transparent; border:0; color:#cfe7ff; font-size:1.4rem; opacity:.8; cursor:pointer;
  animation: nudge 1.8s ease-in-out infinite;
  z-index:1;
}
@keyframes nudge{ 0%,100%{ transform:translate(-50%,0);} 50%{ transform:translate(-50%,6px);} }

/* HERO DROPDOWN (search) */
.styled-dropdown { position: relative; max-width: 640px; margin-top: 1rem; }
.styled-dropdown .input-container{ display:flex; gap:.6rem; align-items:center; }
.styled-dropdown .chosen-value{
  flex:1; padding:.9rem 1rem; border-radius: 12px; border: 1px solid var(--stroke);
  background: rgba(255,255,255,.05); color: var(--txt);
}
.hero-search-btn{
  padding:.85rem 1rem;
  border-radius:12px;
  border:0;
  background:linear-gradient(90deg, var(--brand), var(--brand-2));
  color:#081021;
  font-weight:900;
  cursor:pointer;
}
.styled-dropdown .value-list{
  position:absolute;
  top: calc(100% + 8px);
  left:0;
  right:0;
  max-height: 320px;
  overflow-y: auto;
  border: 1px solid var(--stroke);
  border-radius: 12px;
  background: #0d1117;
  box-shadow: 0 12px 28px rgba(0,0,0,.35);
  padding: 6px;
  display: none;
  z-index: 40; /* above hero content */
}
.styled-dropdown .value-list.open{ display:block; }
.styled-dropdown .value-list li{
  padding: 10px 12px; border-radius: 10px; cursor: pointer; line-height: 1.2; color:#c9d1d9;
}
.styled-dropdown .value-list li:hover,
.styled-dropdown .value-list li.active { background: #1f2632; color:#fff; }
.styled-dropdown .value-list li.hidden{ display:none; }
#filter-status{ margin-top:.5rem; }

/* Trust strip */
.trust-strip{
  display:flex;
  gap:1rem;
  margin-top:1rem;
  padding:0;
  list-style:none;
  color:var(--muted);
  flex-wrap:wrap;
}
.trust-strip li{
  background:rgba(255,255,255,.06);
  border:1px solid var(--stroke);
  padding:.35rem .6rem;
  border-radius:999px;
}

/* OFFERS */
.offers-head { text-align:center; margin-bottom: 1.2rem; }
.section-title{ font-size:1.8rem; margin:0 0 .3rem 0; }
.offer-grid{
  display:grid; grid-template-columns: repeat(4, 1fr); gap:1rem;
}
.offer-card{
  position:relative; background: var(--panel); border:1px solid var(--stroke); border-radius: 16px;
  padding:1.1rem 1.15rem; transition: transform .14s ease, box-shadow .2s ease, border-color .2s ease; overflow:hidden;
}
.offer-card:hover{ transform: translateY(-2px); box-shadow: var(--shadow); border-color: rgba(255,255,255,.18); }
.offer-card--accent{
  background: linear-gradient(180deg, rgba(255,116,220,.14), rgba(255,255,255,.05));
  border-color: rgba(255,116,220,.35);
}
.icon-bubble{
  width:44px;height:44px;border-radius:14px; display:grid;place-items:center;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color:#06101e;font-size:1.2rem;font-weight:900;margin-bottom:.6rem;
}
.offer-card h3{ margin:.1rem 0 .2rem; font-size:1.1rem; }
.offer-card p{ margin:.2rem 0 .5rem; color:var(--muted); }
.offer-card .tagline{ font-size:.85rem; opacity:.9; color:#cfe7ff; }


/* ============================
   HOME BLOG SECTION
   ============================ */

.home-blog-section {
  padding: 80px 0;
  background: #0c1220;
  color: #fff;
  width: 100%;
}

.home-blog-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.home-blog-header {
  text-align: center;
  margin-bottom: 40px;
}

.home-eyebrow {
  color: #82aaff;
  font-size: 0.95rem;
  letter-spacing: 0.06rem;
  font-weight: 600;
  text-transform: uppercase;
}

.home-blog-title {
  font-size: 2.4rem;
  font-weight: 700;
  margin: 10px 0 12px;
  color: #ffffff;
}

.home-blog-subtitle {
  font-size: 1.05rem;
  opacity: 0.8;
  max-width: 700px;
  margin: 0 auto;
}


/* ============================
   BLOG GRID LAYOUT
   ============================ */

.home-blog-grid {
  margin-top: 50px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

@media (max-width: 1024px) {
  .home-blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 680px) {
  .home-blog-grid {
    grid-template-columns: 1fr;
  }
}


/* ============================
   BLOG CARD
   ============================ */

.blog-card {
  background: #111a2c;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(0,0,0,0.3);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 26px rgba(0,0,0,0.45);
}

.blog-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
  height: 100%;
}

.blog-card-thumb img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  display: block;
}


/* ============================
   BLOG CARD BODY
   ============================ */

.blog-card-body {
  padding: 22px 24px 26px;
}

.blog-card-tag {
  color: #77a0ff;
  font-size: 0.85rem;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.05rem;
  margin-bottom: 6px;
}

.blog-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 10px;
  color: #fff;
}

.blog-card-excerpt {
  font-size: 0.97rem;
  opacity: 0.85;
  margin-bottom: 18px;
}

.blog-card-meta {
  font-size: 0.82rem;
  opacity: 0.55;
  font-weight: 500;
}


/* ============================
   BUTTON
   ============================ */

.home-blog-footer {
  text-align: center;
  margin-top: 50px;
}

.home-blog-button {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 50px;
  background: linear-gradient(135deg, #4e8cff, #6aa8ff);
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(78,140,255,0.35);
  transition: box-shadow 0.22s ease, transform 0.22s ease;
}

.home-blog-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 22px rgba(80,140,255,0.55);
}

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

/* CARDS: Resources */
.cards-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
@media (max-width: 1100px){ .cards-grid{ grid-template-columns: repeat(2, 1fr);} }
@media (max-width: 740px){ .cards-grid{ grid-template-columns: 1fr;} }

.app_card{
  background: var(--panel);
  border: 1px solid var(--stroke);
  border-radius: 18px;
  overflow: hidden;
  transition: transform .12s ease, box-shadow .2s ease, border-color .2s ease;
}
.app_card:hover{ transform: translateY(-3px); box-shadow: var(--shadow); border-color: rgba(255,255,255,.18); }
.card_link{ display:flex; flex-direction:column; color:inherit; text-decoration:none; height:100%; }

.card_media{
  position:relative;
  height: 260px;
  overflow:hidden;
}
.card_media img{
  width:100%; height:100%; object-fit: cover;
  transform: scale(1.02);
}
.badge{ position:absolute; top:12px; left:12px; padding:.25rem .55rem; border-radius:999px; font-size:.78rem; }
.badge-live{ background: linear-gradient(90deg, var(--accent), var(--brand-2)); color:#081021; }

.card_body{ padding: 1rem 1.1rem 1.2rem; display:flex; flex-direction:column; gap:.55rem; }
.card_title{ margin:0; font-size:1.2rem; font-weight:800; }
.card_text{ margin:0; color: var(--muted); }

.meta-chips{ display:flex; flex-wrap:wrap; gap:.4rem; margin-top:.2rem; }
.chip{
  display:inline-block; padding:.25rem .55rem; border-radius:999px;
  border:1px solid var(--stroke); font-size:.78rem; color: var(--muted);
}
.chip-green{ color:#bffad1; border-color:#2a6f4f; }
.chip-blue{ color:#cfe7ff; border-color:#2a4d6f; }
.chip-purple{ color:#e0d4ff; border-color:#51407a; }
.chip-yellow{ color:#ffe9b6; border-color:#6b571d; }

@media (max-width:740px){
  .card_media{ height: 180px; }
}

/* FOOTER */
.site-footer{ margin-top: 3rem; border-top:1px solid var(--stroke); background: linear-gradient(180deg, rgba(12,16,32,.9), rgba(8,12,24,.96)); }
.footer-grid{ display:grid; grid-template-columns: 1.2fr 1fr 1fr; gap:1.2rem; padding: 1.8rem 0; }
.foot-links{ list-style:none; padding:0; margin:0; }
.foot-links li{ margin:.3rem 0; }
.foot-tag, .foot-contact{ color: var(--muted); }
.badge-inline{ display:flex; align-items:center; gap:.6rem; }
.foot-bottom{ border-top:1px solid var(--stroke); padding:.6rem 0; color: var(--muted); font-size:.9rem; }

@media (max-width: 860px){ .footer-grid{ grid-template-columns: 1fr; } }

/* ACCESSIBILITY */
.btn:focus,
input:focus {
  outline: 2px solid var(--brand-2);
  outline-offset: 2px;
}

/* Filtering helpers */
.app_item.hide { display:none !important; }
#filter-status .pill{
  display:inline-block; padding:2px 8px; border-radius:999px; background:#1f2632; margin:0 4px; color:#dbeafe; border:1px solid #2b3442;
}
#filter-status .clear-filter{
  margin-left:8px; border:0; background:#263246; color:#e5edff; padding:4px 8px; border-radius:8px; cursor:pointer;
}

/* ===== ABZ game header bar ===== */
.abz-game-header{
  position: sticky;
  top: 0;
  z-index: 40;
  background: radial-gradient(circle at 0% 0%, #22223f 0, #050714 55%);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.abz-header-inner{
  max-width: 1120px;
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Brand */
.abz-brand{
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: #f9fafb;
}

.abz-brand-mark{
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 20% 0%, #ff74dc 0, transparent 55%),
    radial-gradient(circle at 80% 100%, #00e4ff 0, transparent 55%),
    #111827;
  box-shadow: 0 10px 28px rgba(0,0,0,0.6);
}

.abz-brand-letter{
  font-weight: 800;
  font-size: 1.35rem;
  color: #ffffff;
}

.abz-brand-text-wrap{
  display: flex;
  flex-direction: column;
}

.abz-brand-title{
  font-weight: 800;
  font-size: 1.4rem;
}

.abz-brand-tagline{
  font-size: 0.78rem;
  opacity: 0.75;
}

/* Right side actions */
.abz-header-actions{
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Buttons */
.abz-btn,
.abz-user-btn{
  border-radius: 999px;
  padding: 0.55rem 1.1rem;
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  white-space: nowrap;
}

.abz-btn{
  background: linear-gradient(90deg, #7b7cff, #00e4ff);
  color: #050814;
  box-shadow: 0 10px 24px rgba(0,0,0,0.45);
}

.abz-btn-outline{
  background: transparent;
  color: #e5e7eb;
  border: 1px solid rgba(255,255,255,0.32);
}

.abz-btn-outline:hover{
  background: rgba(255,255,255,0.06);
}

.abz-user-btn{
  background: #ffe922;
  color: #111827;
  border: 0;
  box-shadow: 0 10px 22px rgba(0,0,0,0.45);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.abz-user-caret{
  font-size: 0.75rem;
}

/* Small screens */
@media (max-width: 720px){
  .abz-header-inner{
    flex-direction: column;
    align-items: flex-start;
    gap: 0.65rem;
  }

  .abz-header-actions{
    align-self: stretch;
    justify-content: space-between;
    width: 100%;
  }
}

/* ===== Resource directions band ===== */
.resource_directions{
  background: #050712;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.rd_inner{
  max-width: 960px;
  margin: 0 auto;
  padding: 1.4rem 1.5rem 1.8rem;
  color: #e5e7eb;
}

.rd_label{
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  opacity: 0.65;
  margin: 0 0 0.25rem;
}

.rd_title{
  margin: 0 0 0.4rem;
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.rd_text{
  margin: 0;
  max-width: 720px;
  color: #d1d5db;
  line-height: 1.6;
  font-size: 0.98rem;
}

/* ===== Game description hero band ===== */
.game_description_official{
  background: radial-gradient(circle at 0% 0%, #3b1a85 0, #050712 55%);
  border-bottom: 1px solid rgba(255,255,255,0.18);
  color: #f9fafb;
}

.gd_wrap{
  max-width: 960px;
  margin: 0 auto;
  padding: 2.4rem 1.5rem 2.6rem;
  text-align: center;
}

.gd_head{
  max-width: 760px;
  margin: 0 auto 1.4rem;
}

.gd_title{
  margin: 0 0 0.6rem;
  font-size: 1.9rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.gd_lead{
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.7;
  color: #d1d5db;
}

/* Little “feature chips” under the text */
.gd_highlights{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.gd_chip{
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  font-size: 0.85rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.16);
  color: #e5edff;
}

/* Responsive tweaks */
/* ===============
   ≤ 1200px
   =============== */
@media (max-width: 1200px) {
  .container {
    width: min(1120px, 94%);
  }

  .hero {
    padding: 4rem 0 2.4rem;
  }

  .hero-visual {
    height: min(420px, 38vmax);
  }

  .card_media {
    height: 240px;
  }
}

/* ================
   ≤ 1100px
   Cards / Offers
   ================ */
@media (max-width: 1100px) {
  .offer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .card_media {
    height: 220px;
  }
}

/* =================
   ≤ 980px
   Hero + layout
   ================= */
@media (max-width: 980px) {
  .hero--neon {
    padding: 4rem 0 2.4rem;
  }

  .hero-grid--split {
    grid-template-columns: 1fr;
    gap: 1.8rem;
    text-align: left;
  }

  .hero-copy {
    max-width: none;
  }

  .hero-visual {
    order: -1;
    height: auto;
    max-width: 460px;
    margin: 0 auto 0.8rem;
  }

  .hero-art {
    transform: none;
  }

  .scroll-cue {
    bottom: 4px;
  }

  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .offer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .section-pad {
    padding: 2.6rem 0;
  }
}

/* =================
   ≤ 860px
   Main nav + footer
   ================= */
@media (max-width: 860px) {
  /* Top nav */
  .nav-toggle {
    display: block;
  }

  .nav {
    position: absolute;
    top: 60px;
    right: 4%;
    left: 4%;
    background: var(--bg-2);
    border: 1px solid var(--stroke);
    border-radius: 14px;
    display: none;
  }

  .nav.open {
    display: block;
  }

  .nav ul {
    flex-direction: column;
    padding: 0.6rem;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .cards-grid {
    grid-template-columns: 1fr 1fr;
  }

  .offer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* =================
   ≤ 720px
   Game header + grids
   ================= */
@media (max-width: 720px) {
  /* ABZ game header bar */
  .abz-header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.65rem;
  }

  .abz-header-actions {
    align-self: stretch;
    justify-content: space-between;
    width: 100%;
  }

  /* Read & Race iframe wrapper if used */
  .iframe-center iframe {
    width: 100% !important;
    max-width: 100%;
    height: 640px;
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }

  .offer-grid {
    grid-template-columns: 1fr;
  }

  .card_media {
    height: 210px;
  }

  .hero {
    padding-top: 3.4rem;
  }

  .hero-title {
    font-size: clamp(2rem, 5vw, 2.4rem);
  }
}

/* =================
   ≤ 640px
   Game description + spacing
   ================= */
@media (max-width: 640px) {
  .hero {
    padding: 3.2rem 0 2.2rem;
  }

  .hero-copy {
    text-align: left;
  }

  .trust-strip {
    gap: 0.6rem;
  }

  .trust-strip li {
    width: 100%;
  }

  .section-title {
    font-size: 1.6rem;
  }

  .gd_wrap {
    padding-inline: 1.1rem;
  }

  .gd_title {
    font-size: 1.55rem;
  }

  .gd_head {
    margin-bottom: 1rem;
  }

  /* If your description panels use cards/columns */
  .gd_panel {
    text-align: left;
  }

  .gd_cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.9rem;
  }

  .gd_steps {
    padding-left: 0;
  }

  .gd_split {
    display: block;
  }

  .gd_chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
  }

  /* Resource directions band (top of game page) */
  .resource_directions .rd_inner,
  .resource_directions .rd_center {
    padding: 1.2rem 1.1rem 1.6rem;
  }

  .rd_title {
    font-size: 1.6rem;
  }

  .rd_text {
    font-size: 0.95rem;
  }

  .card_media {
    height: 190px;
  }
}

/* =================
   ≤ 480px
   Tiny phones
   ================= */
@media (max-width: 480px) {
  body {
    font-size: 0.95rem;
  }

  .hero {
    padding: 2.8rem 0 1.8rem;
  }

  .hero-title {
    font-size: 1.9rem;
  }

  .lead,
  .lead-strong {
    font-size: 0.98rem;
  }

  .hero-search-btn {
    padding-inline: 0.8rem;
    font-size: 0.85rem;
  }

  .styled-dropdown .input-container {
    flex-direction: column;
    align-items: stretch;
  }

  .styled-dropdown .chosen-value {
    width: 100%;
  }

  .hero-visual {
    max-width: 400px;
  }

  .offer-card {
    padding: 1rem 1rem;
  }

  .rd_title {
    font-size: 1.4rem;
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }

  .card_media {
    height: 170px;
  }

  .iframe-center iframe {
    height: 520px;
  }

  .gd_title {
    font-size: 1.45rem;
  }

  .gd_lead {
    font-size: 0.94rem;
  }
}
