/* ============================================
   TheBrewingMarket Wiki
   Dark Alchemist — Craft Brewery Aesthetic
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Spectral:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&family=JetBrains+Mono:ital,wght@0,400;0,500;0,600;1,400&display=swap');

:root {
  --bg:            #141417;
  --bg-card:       #1b1b20;
  --bg-elevated:   #212127;
  --bg-code:       #19191e;
  --border:        #2a2a32;
  --border-light:  #36363f;
  --accent:        #F973C4;
  --accent-soft:   #FCBDE3;
  --accent-dim:    rgba(249, 115, 196, .12);
  --accent-glow:   rgba(249, 115, 196, .20);
  --text:          #ececf0;
  --text-sec:      #9a9aa8;
  --text-muted:    #65656f;
  --green:         #5cdb7f;
  --yellow:        #e8c44a;
  --red:           #f06060;
  --blue:          #5ea8f0;
  --sidebar-w:     264px;
  --header-h:      56px;
  --r:             8px;
  --r-sm:          4px;
  --font:          'Spectral', Georgia, 'Times New Roman', serif;
  --mono:          'JetBrains Mono', 'Fira Code', ui-monospace, monospace;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  font-weight: 400;
  font-size: 15px;
  overflow-x: hidden;
}

a {
  color: var(--accent-soft);
  text-decoration: none;
  transition: color .18s;
}

a:hover {
  color: #fdd8ec;
}

img {
  max-width: 100%;
  border-radius: var(--r);
}

/* ---- Layout ---- */
.wrapper {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 100vh;
  max-width: 100vw;
  overflow-x: hidden;
}

/* ---- Sidebar ---- */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--sidebar-w);
  background: var(--bg-card);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  z-index: 100;
  overflow-y: auto;
}

/* Thin amber top accent bar */
.sidebar::before {
  content: '';
  display: block;
  height: 3px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-soft) 60%, transparent 100%);
  flex-shrink: 0;
}

.sidebar-brand {
  padding: 20px 20px 18px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
}

.sidebar-brand .logo {
  width: 34px;
  height: 34px;
  border-radius: var(--r-sm);
  flex-shrink: 0;
  object-fit: cover;
}

.sidebar-brand h1 {
  font-family: var(--font);
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.25;
  letter-spacing: .01em;
}

.sidebar-brand .version {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 400;
  color: var(--accent);
  margin-top: 2px;
  letter-spacing: .04em;
}

.sidebar-nav {
  padding: 12px 0;
  flex: 1;
}

.sidebar-nav .nav-section {
  padding: 0 10px;
  margin-bottom: 2px;
}

.sidebar-nav .nav-section-title {
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--text-muted);
  padding: 10px 10px 4px;
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  border-radius: var(--r-sm);
  font-size: 13.5px;
  font-weight: 400;
  color: var(--text-sec);
  transition: all .15s;
}

.sidebar-nav a:hover {
  color: var(--text);
  background: var(--accent-dim);
}

.sidebar-nav a.active {
  color: var(--accent-soft);
  background: var(--accent-dim);
  font-weight: 600;
}

.sidebar-nav a .nav-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  opacity: .5;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sidebar-nav a .nav-icon svg {
  width: 14px;
  height: 14px;
}

.sidebar-nav a .nav-icon svg path {
  fill: currentColor;
}

.sidebar-nav a:hover .nav-icon,
.sidebar-nav a.active .nav-icon {
  opacity: 1;
}

/* ---- Main ---- */
.main {
  margin-left: var(--sidebar-w);
  flex: 1;
  min-width: 0;
}

/* ---- Header (desktop: hidden; mobile: hamburger only) ---- */
.header {
  display: none;
}

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  color: var(--text-sec);
  padding: 5px 10px;
  font-size: 16px;
  cursor: pointer;
  margin-right: 14px;
  transition: border-color .15s, color .15s;
}

.menu-toggle:hover {
  border-color: var(--accent);
  color: var(--text);
}

/* ---- Content ---- */
.content {
  max-width: 820px;
  margin: 0 auto;
  padding: 48px 40px 88px;
  animation: fadeUp .4s ease both;
  overflow-wrap: break-word;
  word-break: break-word;
  min-width: 0;
}

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

.content h1 {
  font-family: var(--font);
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -.01em;
  line-height: 1.2;
  color: var(--text);
}

.content h2 {
  font-family: var(--font);
  font-size: 1.35rem;
  font-weight: 600;
  margin-top: 56px;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
  letter-spacing: -.005em;
  color: var(--text);
}

.content h3 {
  font-family: var(--font);
  font-size: 1.05rem;
  font-weight: 600;
  margin-top: 32px;
  margin-bottom: 10px;
  color: var(--text);
}

.content p {
  margin-bottom: 14px;
  color: var(--text-sec);
  font-size: 15px;
}

.content p strong {
  color: var(--text);
  font-weight: 600;
}

.content .subtitle {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 40px;
  font-style: italic;
}

.content ul,
.content ol {
  padding-left: 22px;
  margin-bottom: 14px;
  color: var(--text-sec);
}

.content li {
  margin-bottom: 6px;
}

.content li code {
  color: var(--accent-soft);
}

/* Inline code */
code {
  font-family: var(--mono);
  font-size: .85em;
  background: var(--bg-elevated);
  padding: 2px 6px;
  border-radius: 3px;
  color: var(--accent-soft);
  border: 1px solid var(--border);
}

/* ---- Cards ---- */
.card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 4px;
}

.card-grid .card:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 20px;
  transition: border-color .2s, transform .2s, box-shadow .2s;
  color: var(--text);
}

.card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,.4), 0 0 0 1px var(--accent-dim);
}

.card .card-icon {
  margin-bottom: 12px;
  width: 18px;
  height: 18px;
  opacity: .8;
}

.card .card-icon svg {
  width: 18px;
  height: 18px;
}

.card .card-icon svg path {
  fill: var(--accent-soft);
}

.card h3 {
  font-size: .9rem;
  font-weight: 700;
  margin: 0 0 6px;
  color: var(--text);
  letter-spacing: .01em;
}

.card p {
  font-size: .85rem;
  color: var(--text-sec);
  margin: 0;
  line-height: 1.55;
}

/* ---- Tables ---- */
.table-wrapper {
  overflow-x: auto;
  margin: 14px 0 24px;
  border-radius: var(--r);
  border: 1px solid var(--border);
}

table {
  width: 100%;
  min-width: 420px;
  border-collapse: collapse;
  font-size: 13.5px;
}

thead th {
  text-align: left;
  padding: 10px 16px;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
  font-family: var(--mono);
  font-weight: 600;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: .08em;
  white-space: nowrap;
}

tbody td {
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text-sec);
  word-break: normal;
  overflow-wrap: normal;
}

tbody tr:last-child td {
  border-bottom: none;
}

tbody tr:hover {
  background: var(--accent-dim);
}

td code,
th code {
  background: var(--bg-code);
  padding: 2px 6px;
  border-radius: 3px;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--accent-soft);
  border: 1px solid var(--border);
  white-space: nowrap;
}

/* ---- Code Blocks ---- */
.code-block {
  position: relative;
  margin: 14px 0 24px;
  border-radius: var(--r);
  overflow: hidden;
  border: 1px solid var(--border);
}

.code-block .code-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-elevated);
  padding: 7px 14px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  letter-spacing: .04em;
}

.code-block .copy-btn {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 2px 10px;
  border-radius: var(--r-sm);
  font-family: var(--mono);
  font-size: 10px;
  cursor: pointer;
  transition: all .15s;
  letter-spacing: .04em;
}

.code-block .copy-btn:hover {
  color: var(--accent-soft);
  border-color: var(--accent);
}

.code-block pre {
  margin: 0;
  padding: 18px;
  overflow-x: auto;
  background: var(--bg-code);
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.75;
  color: var(--text-sec);
}

/* YAML syntax highlighting */
.sk { color: #7AC87A; }           /* key      — muted green   */
.ss { color: #88BBD8; }           /* string   — steel blue    */
.sn { color: #f9a66c; }           /* number   — orange        */
.sb { color: #E06868; }           /* bool     — warm red      */
.sc { color: var(--text-muted); font-style: italic; } /* comment */
.sd { color: var(--text-muted); } /* dash     */

/* ---- Badges ---- */
.badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 20px;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .03em;
  line-height: 1.6;
}

.badge-required {
  background: rgba(224, 104, 104, .12);
  color: var(--red);
  border: 1px solid rgba(224, 104, 104, .25);
}

.badge-optional {
  background: rgba(110, 168, 208, .12);
  color: var(--blue);
  border: 1px solid rgba(110, 168, 208, .25);
}

.badge-default {
  background: rgba(109, 191, 126, .12);
  color: var(--green);
  border: 1px solid rgba(109, 191, 126, .25);
}

.badge-op {
  background: rgba(217, 165, 80, .12);
  color: var(--yellow);
  border: 1px solid rgba(217, 165, 80, .25);
}

.badge-true {
  background: rgba(109, 191, 126, .12);
  color: var(--green);
  border: 1px solid rgba(109, 191, 126, .25);
}

/* ---- Info Boxes ---- */
.info-box {
  padding: 14px 18px;
  border-radius: var(--r);
  margin: 16px 0 24px;
  font-size: 14px;
  border-left: 3px solid;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.info-box.tip    { border-left-color: var(--accent); }
.info-box.warning { border-left-color: var(--yellow); }
.info-box.danger  { border-left-color: var(--red); }
.info-box.note    { border-left-color: var(--blue); }

.info-box strong {
  color: var(--text);
  font-weight: 600;
}

/* ---- Steps ---- */
.steps {
  counter-reset: step;
  margin: 24px 0;
}

.step {
  position: relative;
  padding: 0 0 24px 52px;
  border-left: 1px solid var(--border);
  margin-left: 16px;
}

.step:last-child {
  border-left-color: transparent;
  padding-bottom: 0;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: -17px;
  top: 0;
  width: 32px;
  height: 32px;
  background: var(--bg-elevated);
  border: 1px solid var(--accent);
  color: var(--accent-soft);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
}

.step h3 {
  margin-top: 3px;
  margin-bottom: 6px;
  font-size: .95rem;
  font-weight: 600;
}

.step p {
  margin-bottom: 6px;
  font-size: 14px;
}

/* ---- Formula ---- */
.formula {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 22px 28px;
  text-align: center;
  margin: 24px 0;
  font-family: var(--mono);
  font-size: 15px;
  color: var(--accent-soft);
  letter-spacing: .04em;
  position: relative;
}

.formula::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--r);
  background: var(--accent-dim);
  pointer-events: none;
}

/* ---- GUI Grid ---- */
.gui-grid {
  display: grid;
  grid-template-columns: repeat(9, 40px);
  justify-content: center;
  gap: 4px;
  margin: 20px 0;
  padding: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r);
}

.gui-cell {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-sm);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  border: 1px solid var(--border);
}

.gui-cell.slot-I {
  background: rgba(200, 130, 58, .15);
  color: var(--accent-soft);
  border-color: var(--accent);
}

.gui-cell.slot-B {
  background: rgba(109, 191, 126, .15);
  color: var(--green);
  border-color: var(--green);
}

.gui-cell.slot-S {
  background: rgba(110, 168, 208, .15);
  color: var(--blue);
  border-color: var(--blue);
}

.gui-cell.slot-T {
  background: rgba(217, 165, 80, .15);
  color: var(--yellow);
  border-color: var(--yellow);
}

.gui-cell.slot-C {
  background: rgba(224, 104, 104, .15);
  color: var(--red);
  border-color: var(--red);
}

.gui-cell.slot-deco {
  background: var(--bg-elevated);
  color: var(--text-muted);
}

/* ---- Hero ---- */
.hero {
  padding: 12px 0 48px;
}

.hero h1 {
  font-family: var(--font);
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -.02em;
  margin-bottom: 4px;
  line-height: 1.1;
  background: linear-gradient(135deg, var(--accent), var(--accent-soft));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Amber rule under hero title */
.hero h1 + p.tagline {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  margin-top: 20px;
}

.hero .tagline {
  font-size: 15.5px;
  color: var(--text-sec);
  max-width: 540px;
  margin-bottom: 28px;
  line-height: 1.75;
  font-style: italic;
}

.hero .btn-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 22px;
  border-radius: var(--r);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  transition: all .2s;
  border: 1px solid transparent;
  letter-spacing: .01em;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-soft));
  color: #fff;
  border-color: transparent;
}

.btn-primary:hover {
  opacity: .9;
  color: #fff;
}

.btn-outline {
  border-color: var(--border-light);
  color: var(--text-sec);
  background: var(--bg-card);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--text);
  background: var(--accent-dim);
}

/* ---- Image placeholder ---- */
.img-placeholder {
  border: 1px solid var(--border-light);
  border-radius: var(--r);
  padding: 32px 24px;
  margin: 24px 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
  background: var(--bg-card);
}

.img-placeholder img {
  border-radius: var(--r-sm);
}

/* ---- Footer ---- */
.footer {
  padding: 22px 0;
  margin-top: 60px;
  border-top: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: .03em;
}

/* ---- Page Nav ---- */
.page-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.page-nav a {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: var(--r);
  font-size: 13px;
  transition: border-color .18s, background .18s;
  min-height: 62px;
  background: var(--bg-card);
}

.page-nav a:hover {
  border-color: var(--accent);
  background: var(--accent-dim);
}

.page-nav a .label {
  font-family: var(--mono);
  font-size: 9.5px;
  color: var(--text-muted);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.page-nav a .title {
  color: var(--text);
  font-weight: 600;
  font-size: 14px;
}

.page-nav .next {
  text-align: right;
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar        { width: 6px; height: 6px; }
::-webkit-scrollbar-track  { background: transparent; }
::-webkit-scrollbar-thumb  { background: var(--border-light); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ---- Background Bubbles ---- */
.bg-bubbles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.bg-bubbles span {
  position: absolute;
  display: block;
  bottom: -60px;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-weight: 700;
  color: rgba(249, 115, 196, 0.12);
  user-select: none;
  animation: bubble-rise linear infinite;
  animation-fill-mode: backwards;
}

.bg-bubbles span svg {
  width: 1em;
  height: 1em;
  display: block;
}

@keyframes bubble-rise {
  0%   { transform: translateY(0) rotate(0deg); opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { transform: translateY(-110vh) rotate(360deg); opacity: 0; }
}

.bg-bubbles span:nth-child(1)  { left: 5%;   font-size: 36px; animation-delay: 0s;  animation-duration: 10s; }
.bg-bubbles span:nth-child(2)  { left: 15%;  font-size: 56px; animation-delay: 1s;  animation-duration: 13s; }
.bg-bubbles span:nth-child(3)  { left: 25%;  font-size: 28px; animation-delay: 3s;  animation-duration: 11s; }
.bg-bubbles span:nth-child(4)  { left: 35%;  font-size: 48px; animation-delay: 0s;  animation-duration: 9s;  }
.bg-bubbles span:nth-child(5)  { left: 45%;  font-size: 32px; animation-delay: 2s;  animation-duration: 12s; }
.bg-bubbles span:nth-child(6)  { left: 55%;  font-size: 52px; animation-delay: 4s;  animation-duration: 14s; }
.bg-bubbles span:nth-child(7)  { left: 65%;  font-size: 40px; animation-delay: 6s;  animation-duration: 10s; }
.bg-bubbles span:nth-child(8)  { left: 75%;  font-size: 30px; animation-delay: 3s;  animation-duration: 11s; }
.bg-bubbles span:nth-child(9)  { left: 85%;  font-size: 44px; animation-delay: 5s;  animation-duration: 15s; }
.bg-bubbles span:nth-child(10) { left: 92%;  font-size: 34px; animation-delay: 1s;  animation-duration: 9s;  }
.bg-bubbles span:nth-child(11) { left: 20%;  font-size: 24px; animation-delay: 0s;  animation-duration: 12s; }
.bg-bubbles span:nth-child(12) { left: 48%;  font-size: 38px; animation-delay: 2s;  animation-duration: 10s; }
.bg-bubbles span:nth-child(13) { left: 60%;  font-size: 30px; animation-delay: 7s;  animation-duration: 13s; }
.bg-bubbles span:nth-child(14) { left: 8%;   font-size: 50px; animation-delay: 4s;  animation-duration: 11s; }
.bg-bubbles span:nth-child(15) { left: 78%;  font-size: 26px; animation-delay: 1s;  animation-duration: 8s;  }

/* ---- Sidebar Footer ---- */
.sidebar-footer {
  padding: 14px 20px;
  border-top: 1px solid var(--border);
  margin-top: auto;
  flex-shrink: 0;
}

.github-link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color .15s;
}

.github-link:hover {
  color: var(--accent-soft);
}

.github-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.github-icon svg {
  width: 14px;
  height: 14px;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform .25s ease;
    width: 280px;
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .55);
    z-index: 90;
  }

  .sidebar-overlay.show {
    display: block;
  }

  .main {
    margin-left: 0;
  }

  .header {
    display: flex;
    height: 48px;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    align-items: center;
    padding: 0 16px;
    position: sticky;
    top: 0;
    z-index: 50;
  }

  .header .breadcrumb { display: none; }

  .menu-toggle {
    display: block;
  }

  .content {
    padding: 28px 18px 64px;
  }

  .content h1 {
    font-size: 1.9rem;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

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

  .gui-grid {
    overflow-x: auto;
  }

  .gui-cell {
    width: 34px;
    height: 34px;
    font-size: 10px;
  }

  .page-nav {
    flex-direction: column;
  }

  /* Bubbles: 6 visible (flask + $ alternating), ~2× slower, spread full width */
  .bg-bubbles span:nth-child(n+7) { display: none; }
  .bg-bubbles span:nth-child(1)  { animation-duration: 20s; left: 5%;  }
  .bg-bubbles span:nth-child(2)  { animation-duration: 22s; left: 22%; }
  .bg-bubbles span:nth-child(3)  { animation-duration: 24s; left: 40%; }
  .bg-bubbles span:nth-child(4)  { animation-duration: 21s; left: 58%; }
  .bg-bubbles span:nth-child(5)  { animation-duration: 23s; left: 75%; }
  .bg-bubbles span:nth-child(6)  { animation-duration: 20s; left: 90%; }
}

/* ---- Very small screens (≤480px) ---- */
@media (max-width: 480px) {
  .content {
    padding: 20px 12px 48px;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .content h1 {
    font-size: 1.6rem;
  }

  .step {
    padding-left: 44px;
  }

  .btn {
    padding: 9px 16px;
    font-size: 13px;
  }

  /* Only 3 bubbles on very small screens, spread full width */
  .bg-bubbles span:nth-child(n+4) { display: none; }
  .bg-bubbles span:nth-child(1)   { left: 10%; }
  .bg-bubbles span:nth-child(2)   { left: 50%; }
  .bg-bubbles span:nth-child(3)   { left: 82%; }
}