/* ============================================================
   Bubble Around — Flat/Playful Style
   Prefix: ba-
   ============================================================ */

:root {
  --primary:       #ff6b35;
  --primary-dark:  #e85520;
  --accent:        #00c48c;
  --accent-dark:   #009e70;
  --yellow:        #ffd166;
  --purple:        #9b5de5;
  --blue:          #4361ee;
  --bg:            #fffbf0;
  --bg-alt:        #ffffff;
  --bg-section:    #fff8ee;
  --text:          #1a1a2e;
  --text-muted:    #6b6b80;
  --border:        #e8e0d0;
  --border-dark:   #1a1a2e;
  --font:          'Nunito', 'Segoe UI', Arial, sans-serif;
  --radius:        16px;
  --radius-sm:     10px;
  --radius-pill:   999px;
  --header-h:      68px;
  --outline:       2.5px solid #1a1a2e;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  background-image:
    radial-gradient(circle 180px at 5% 15%, rgba(255,107,53,0.08) 0%, transparent 70%),
    radial-gradient(circle 220px at 95% 80%, rgba(0,196,140,0.07) 0%, transparent 70%),
    radial-gradient(circle 140px at 50% 50%, rgba(255,209,102,0.05) 0%, transparent 70%);
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); text-decoration: underline; }

img { max-width: 100%; display: block; }

/* ============================================================
   Header — white, bottom color stripe
   ============================================================ */
.ba-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  z-index: 1000;
  border-bottom: 3px solid var(--primary);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.ba-header__brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--text);
  letter-spacing: -0.5px;
  text-decoration: none;
}

.ba-header__brand:hover { text-decoration: none; color: var(--text); }

.ba-header__brand span { color: var(--primary); }

.ba-header__nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.ba-header__nav a {
  color: var(--text-muted);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: 700;
  border: 2px solid transparent;
  transition: all 0.15s;
  text-decoration: none;
}

.ba-header__nav a:hover {
  color: var(--primary);
  border-color: var(--primary);
  background: rgba(255,107,53,0.06);
  text-decoration: none;
}

.ba-header__nav a.active {
  color: #fff;
  background: var(--primary);
  border-color: var(--primary);
}

/* ============================================================
   Page wrapper
   ============================================================ */
.ba-page {
  padding-top: var(--header-h);
  min-height: 100vh;
}

/* ============================================================
   Hero — vertical centered layout
   ============================================================ */
.ba-hero {
  background: linear-gradient(160deg, #fff8ee 0%, #fff 60%, #f0fff8 100%);
  border-bottom: 3px solid var(--border);
  padding: 52px 24px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Big decorative dots */
.ba-hero::before {
  content: '';
  position: absolute;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: rgba(255,107,53,0.07);
  top: -100px; left: -80px;
  pointer-events: none;
}

.ba-hero::after {
  content: '';
  position: absolute;
  width: 240px; height: 240px;
  border-radius: 50%;
  background: rgba(0,196,140,0.07);
  bottom: -80px; right: -60px;
  pointer-events: none;
}

.ba-hero__deco { display: none; }

.ba-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

/* Badge */
.ba-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--yellow);
  color: var(--text);
  padding: 5px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-bottom: 18px;
  border: var(--outline);
  box-shadow: 2px 2px 0 var(--border-dark);
}

/* Title */
.ba-hero__title {
  font-size: 3rem;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 16px;
  letter-spacing: -1px;
  color: var(--text);
}

.ba-hero__title span { color: var(--primary); }

/* Desc */
.ba-hero__desc {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 22px;
}

/* Tags */
.ba-hero__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
  justify-content: center;
}

.ba-tag {
  background: #fff;
  border: 2px solid var(--border-dark);
  color: var(--text);
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 800;
  box-shadow: 2px 2px 0 var(--border-dark);
}

/* Rating */
.ba-hero__rating {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  justify-content: center;
}

.ba-hero__stars { color: var(--yellow); font-size: 1.2rem; letter-spacing: 2px; -webkit-text-stroke: 1px #c8a000; }
.ba-hero__score { font-size: 0.88rem; color: var(--text-muted); font-weight: 700; }

/* ---- Game frame (centered) ---- */
.ba-hero__game {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 32px;
  order: 10;
}

/* Game info (above frame) */
.ba-hero__info {
  width: 100%;
  order: 1;
  padding-bottom: 0;
  padding-top: 0;
}

.ba-game-frame {
  width: 400px;
  border-radius: var(--radius) var(--radius) 0 0;
  overflow: hidden;
  background: #f5f5f5;
  border: var(--outline);
  box-shadow: 4px 4px 0 var(--border-dark);
  position: relative;
}

.ba-game-frame::before {
  content: '';
  display: block;
  height: 10px;
  background: repeating-linear-gradient(
    90deg,
    var(--primary) 0px,
    var(--primary) 20px,
    var(--yellow) 20px,
    var(--yellow) 40px,
    var(--accent) 40px,
    var(--accent) 60px,
    var(--purple) 60px,
    var(--purple) 80px
  );
}

.ba-game-frame iframe {
  width: 400px;
  height: 640px;
  border: none;
  display: block;
}

.ba-game-frame__bar {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  padding: 10px 16px;
  border-top: var(--outline);
  border-radius: 0 0 var(--radius) var(--radius);
  border: var(--outline);
  border-top: none;
}

.ba-game-frame__label {
  font-size: 0.85rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

/* Stats — below frame */
.ba-hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  order: 11;
  margin-bottom: 28px;
}

.ba-stat {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: var(--outline);
  border-radius: var(--radius-sm);
  padding: 12px 18px;
  box-shadow: 3px 3px 0 var(--border-dark);
}

.ba-stat__icon { font-size: 1.3rem; }
.ba-stat__body { line-height: 1.3; }
.ba-stat__value { font-size: 0.95rem; font-weight: 900; color: var(--text); }
.ba-stat__label { font-size: 0.72rem; color: var(--text-muted); font-weight: 700; }

/* CTA */
.ba-hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  order: 12;
}

/* ============================================================
   Main content area — single column, no sidebar
   ============================================================ */
.ba-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 48px 24px;
}

.ba-content__main { width: 100%; }

/* Hide sidebar if any HTML still references it */
.ba-content__side { display: none !important; }

/* ============================================================
   Section title
   ============================================================ */
.ba-section-title {
  font-size: 1.35rem;
  font-weight: 900;
  margin-bottom: 22px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
}

.ba-section-title::before {
  content: '';
  width: 6px;
  height: 1.2em;
  background: var(--primary);
  border-radius: 3px;
  display: inline-block;
  flex-shrink: 0;
}

/* ============================================================
   Content card — white, left accent border
   ============================================================ */
.ba-card {
  background: var(--bg-alt);
  border: 2px solid var(--border);
  border-left: 5px solid var(--primary);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 20px;
  box-shadow: 3px 3px 0 rgba(0,0,0,0.06);
  transition: transform 0.15s, box-shadow 0.15s;
}

.ba-card:hover {
  transform: translateY(-2px);
  box-shadow: 4px 6px 0 rgba(0,0,0,0.08);
}

.ba-card:nth-child(2n) { border-left-color: var(--accent); }
.ba-card:nth-child(3n) { border-left-color: var(--purple); }
.ba-card:nth-child(4n) { border-left-color: var(--blue); }

.ba-card__header {
  padding: 14px 20px;
  border-bottom: 2px solid var(--border);
  font-size: 0.95rem;
  font-weight: 900;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-section);
}

.ba-card__body { padding: 18px 20px; }

/* ============================================================
   Steps
   ============================================================ */
.ba-steps { list-style: none; counter-reset: steps; }

.ba-steps li {
  counter-increment: steps;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 0;
  border-bottom: 2px dashed var(--border);
  font-size: 0.93rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.ba-steps li:last-child { border-bottom: none; }

.ba-steps li::before {
  content: counter(steps);
  min-width: 30px;
  height: 30px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  border: 2.5px solid var(--border-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  font-weight: 900;
  flex-shrink: 0;
  box-shadow: 2px 2px 0 var(--border-dark);
}

/* ============================================================
   Feature grid — 3 col desktop, 2 col tablet
   ============================================================ */
.ba-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 4px;
}

.ba-feature-item {
  background: #fff;
  border: 2px solid var(--border-dark);
  border-radius: var(--radius);
  padding: 22px 18px;
  text-align: center;
  box-shadow: 3px 3px 0 var(--border-dark);
  transition: transform 0.15s, box-shadow 0.15s;
}

.ba-feature-item:hover {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 var(--border-dark);
}

.ba-feature-item__icon { font-size: 2rem; margin-bottom: 10px; }
.ba-feature-item__title { font-size: 0.9rem; font-weight: 900; margin-bottom: 5px; color: var(--text); }
.ba-feature-item__desc { font-size: 0.8rem; color: var(--text-muted); line-height: 1.5; }

/* ============================================================
   FAQ — light accordion with numbered questions
   ============================================================ */
.ba-faq { list-style: none; counter-reset: faq; }

.ba-faq li {
  counter-increment: faq;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  overflow: hidden;
  background: #fff;
  box-shadow: 2px 2px 0 rgba(0,0,0,0.04);
}

.ba-faq__q {
  padding: 14px 18px;
  font-weight: 800;
  font-size: 0.92rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  background: #fff;
  color: var(--text);
  user-select: none;
}

.ba-faq__q::before {
  content: 'Q' counter(faq);
  min-width: 32px;
  height: 26px;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ba-faq__q::after {
  content: '+';
  font-size: 1.4rem;
  color: var(--text-muted);
  display: inline-block;
  flex-shrink: 0;
  line-height: 1;
}

.ba-faq li.open .ba-faq__q::after { content: '−'; color: var(--primary); }
.ba-faq li.open { border-color: var(--primary); }

.ba-faq__a {
  display: none;
  padding: 0 18px 16px 18px;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.8;
  background: #fff;
  border-top: 2px dashed var(--border);
}

.ba-faq li.open .ba-faq__a { display: block; }

/* ============================================================
   Buttons — flat + outline style
   ============================================================ */
.ba-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 12px 26px;
  border-radius: var(--radius-pill);
  font-weight: 900;
  font-size: 0.95rem;
  cursor: pointer;
  border: 2.5px solid var(--border-dark);
  text-decoration: none;
  box-shadow: 3px 3px 0 var(--border-dark);
  transition: transform 0.12s, box-shadow 0.12s;
}

.ba-btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 var(--border-dark);
  text-decoration: none;
}

.ba-btn:active {
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0 var(--border-dark);
}

.ba-btn--primary {
  background: var(--primary);
  color: #fff;
}

.ba-btn--accent {
  background: var(--accent);
  color: #fff;
}

.ba-btn--ghost {
  background: #fff;
  color: var(--text);
}

/* ============================================================
   Share buttons
   ============================================================ */
.ba-share { display: flex; flex-wrap: wrap; gap: 10px; }

.ba-share__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 800;
  cursor: pointer;
  border: 2px solid var(--border-dark);
  text-decoration: none;
  box-shadow: 2px 2px 0 var(--border-dark);
  transition: transform 0.12s, box-shadow 0.12s;
}

.ba-share__btn:hover {
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0 var(--border-dark);
  text-decoration: none;
}

.ba-share__btn--twitter  { background: #1a1a1a; color: #fff; }
.ba-share__btn--facebook { background: #1877f2; color: #fff; }
.ba-share__btn--copy     { background: #fff; color: var(--text); }

/* ============================================================
   Prose pages
   ============================================================ */
.ba-prose {
  max-width: 800px;
  margin: 0 auto;
  padding: 48px 24px;
}

.ba-prose h1 {
  font-size: 2.2rem;
  font-weight: 900;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
  color: var(--text);
}

.ba-prose h2 {
  font-size: 1.1rem;
  font-weight: 900;
  margin: 32px 0 10px;
  color: var(--text);
  padding: 6px 14px;
  background: var(--bg-section);
  border-left: 5px solid var(--primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.ba-prose p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 14px;
  line-height: 1.85;
}

.ba-prose ul { padding-left: 22px; margin-bottom: 14px; }

.ba-prose ul li {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 8px;
  line-height: 1.7;
}

.ba-prose a { font-weight: 700; }
.ba-prose a:hover { color: var(--primary-dark); }

.ba-prose__meta {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 32px;
  font-weight: 600;
}

.ba-prose .ba-steps li { color: var(--text-muted); }

/* ============================================================
   Breadcrumb
   ============================================================ */
.ba-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 22px;
  font-weight: 700;
}

.ba-breadcrumb a { color: var(--primary); }

/* ============================================================
   Contact form
   ============================================================ */
.ba-contact-form {
  background: #fff;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  margin: 24px 0 32px;
  box-shadow: 3px 3px 0 rgba(0,0,0,0.05);
}

.ba-form-group { margin-bottom: 20px; }

.ba-form-label {
  display: block;
  font-size: 0.87rem;
  font-weight: 800;
  margin-bottom: 7px;
  color: var(--text);
}

.ba-form-input {
  width: 100%;
  padding: 11px 14px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  transition: border-color 0.18s;
}

.ba-form-input::placeholder { color: #b0aaa0; }

.ba-form-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255,107,53,0.15);
}

.ba-form-textarea { resize: vertical; min-height: 130px; }

/* ============================================================
   Footer — coral orange
   ============================================================ */
.ba-footer {
  background: var(--primary);
  border-top: 3px solid var(--border-dark);
  text-align: center;
  padding: 36px 16px;
}

.ba-footer__nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px 18px;
  margin-bottom: 16px;
}

.ba-footer__nav a {
  color: rgba(255,255,255,0.85);
  font-size: 0.87rem;
  font-weight: 700;
  transition: color 0.18s;
  text-decoration: none;
}

.ba-footer__nav a:hover { color: #fff; text-decoration: underline; }

.ba-footer__copy { color: rgba(255,255,255,0.65); font-size: 0.8rem; font-weight: 600; }

/* ============================================================
   Focus visible
   ============================================================ */
:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* ============================================================
   Screenshot Gallery
   ============================================================ */
.ba-gallery-section { margin-bottom: 40px; }

.ba-gallery {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}

.ba-gallery__item {
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border-radius: var(--radius-sm);
  border: 2px solid var(--border-dark);
  background: var(--bg-section);
  cursor: pointer;
  padding: 0;
  box-shadow: 3px 3px 0 var(--border-dark);
  transition: transform 0.15s, box-shadow 0.15s;
}

.ba-gallery__item:hover {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 var(--border-dark);
}

.ba-gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}

.ba-gallery__item:hover img { transform: scale(1.04); }

/* Lightbox */
.ba-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0,0,0,0.88);
  align-items: center;
  justify-content: center;
}

.ba-lightbox.open { display: flex; }

.ba-lightbox__stage {
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ba-lightbox__img {
  max-width: 100%;
  max-height: 90vh;
  border-radius: var(--radius);
  border: 3px solid #fff;
  display: block;
  object-fit: contain;
}

.ba-lightbox__close,
.ba-lightbox__prev,
.ba-lightbox__next {
  position: fixed;
  background: #fff;
  border: 2.5px solid #1a1a2e;
  color: #1a1a2e;
  cursor: pointer;
  border-radius: 50%;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 900;
  transition: background 0.15s;
  z-index: 2001;
  box-shadow: 2px 2px 0 #1a1a2e;
}

.ba-lightbox__close:hover,
.ba-lightbox__prev:hover,
.ba-lightbox__next:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

.ba-lightbox__close { top: 18px; right: 18px; font-size: 1rem; }
.ba-lightbox__prev  { left: 16px; top: 50%; transform: translateY(-50%); }
.ba-lightbox__next  { right: 16px; top: 50%; transform: translateY(-50%); }

.ba-lightbox__counter {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.82rem;
  color: rgba(255,255,255,0.7);
  font-weight: 800;
  background: rgba(0,0,0,0.5);
  padding: 4px 14px;
  border-radius: var(--radius-pill);
}

/* ============================================================
   AdSense ad slots
   ============================================================ */
.ba-ad-slot {
  width: 100%;
  overflow: hidden;
  text-align: center;
  background: transparent;
}

.ba-ad-slot--horizontal { min-height: 90px; margin: 0 0 28px; }
.ba-ad-slot--rect { min-height: 250px; margin-bottom: 20px; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 960px) {
  .ba-hero__title { font-size: 2.4rem; }
  .ba-features { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .ba-header { padding: 0 16px; }
  .ba-header__nav { display: none; }
  .ba-hero { padding: 36px 16px 32px; }
  .ba-hero__title { font-size: 1.9rem; }
  .ba-game-frame,
  .ba-game-frame iframe { width: 100%; max-width: 360px; }
  .ba-content { padding: 28px 16px; }
  .ba-prose { padding: 28px 16px; }
  .ba-gallery { grid-template-columns: repeat(3, 1fr); }
  .ba-features { grid-template-columns: 1fr 1fr; }
  .ba-lightbox__prev { left: 6px; }
  .ba-lightbox__next { right: 6px; }
}
