/* 07q — mobile-only app column, bottom tab bar. Prefix q- */
:root {
  --q-bg: #dfe8ff;
  --q-sheet: #f7f9ff;
  --q-card: #ffffff;
  --q-ink: #1c2744;
  --q-muted: #5b6b8c;
  --q-blue: #6687f6;
  --q-blue-2: #4f6fe8;
  --q-violet: #7b74e8;
  --q-orange: #f18a2c;
  --q-line: #cdd8f5;
  --q-col: 460px;
  --q-tabs: 54px;
  --q-head: 52px;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { background: #b7c6f0; }
body {
  font-family: "Be Vietnam Pro", "Nunito Sans", "Segoe UI", sans-serif;
  font-size: 0.98rem;
  line-height: 1.65;
  color: var(--q-ink);
  background: #b7c6f0;
  min-height: 100%;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--q-blue-2); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Single centred phone column; slightly wider than 22g, light sheet */
.q-app {
  width: 100%;
  max-width: var(--q-col);
  margin: 0 auto;
  min-height: 100vh;
  background: var(--q-sheet);
  box-shadow: 0 0 40px rgba(70, 90, 160, 0.22);
  position: relative;
  overflow-x: clip;
  padding-top: var(--q-head);
  padding-bottom: calc(var(--q-tabs) + 5.2rem); /* room for side FABs above the dock */
}

/* Fixed wordmark bar. Entrar / Cadastro float at the sides while scrolling. */
.q-head {
  position: fixed; top: 0; z-index: 40;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--q-col);
  background: #f7f9ff;
  border-bottom: 1px solid var(--q-line);
  display: flex;
  align-items: center;
  justify-content: center;
  height: var(--q-head);
  min-height: var(--q-head);
  padding: 0.3rem 0.7rem;
  box-sizing: border-box;
}
.q-brand { display: flex; align-items: center; }
.q-brand a { display: flex; align-items: center; }
.q-brand img { height: 34px; width: auto; display: block; }

.q-main { padding: 0.85rem 0.9rem 0.4rem; }

.q-intro { text-align: left; }
.q-intro h1, .q-block h1 {
  font-size: 1.32rem;
  line-height: 1.28;
  margin: 0 0 0.55rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.q-intro .lead { color: var(--q-muted); margin: 0 0 0.7rem; }
.q-mark {
  display: flex; gap: 0.7rem; align-items: flex-start;
  margin: 0;
}
.q-icon-slot {
  width: 56px; height: 56px; object-fit: contain;
  border-radius: 14px; background: #fff;
  border: 1px solid var(--q-line);
  flex: 0 0 56px;
}

.q-shot {
  margin: 0.85rem 0;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--q-line);
}
.q-shot img { width: 100%; height: auto; }
.q-shot figcaption {
  font-size: 0.8rem; color: var(--q-muted);
  padding: 0.5rem 0.7rem 0.65rem;
}

/* Always stacked — no desktop split */
.q-split {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin: 1.1rem 0;
}
.q-split h2 { font-size: 1.08rem; margin: 0 0 0.4rem; }
.q-amount { color: var(--q-orange); font-weight: 700; }
.q-split--flip .q-split__media { order: 0; }

.q-games {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.45rem;
  margin: 0.75rem 0 1.1rem;
}
.q-game {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--q-line);
  margin: 0;
}
.q-game img { width: 100%; height: auto; }
.q-game figcaption {
  text-align: center; font-size: 0.7rem;
  padding: 0.35rem 0.2rem 0.45rem; color: var(--q-muted);
}

.q-block { margin: 0.9rem 0 1.1rem; }
.q-block h2 { font-size: 1.08rem; margin: 0 0 0.45rem; }
.q-block h3 { font-size: 0.98rem; margin: 0.9rem 0 0.3rem; color: var(--q-blue-2); }
.q-block p, .q-block li { color: var(--q-ink); }
.q-block ul { padding-left: 1.1rem; }
.q-pillbar {
  display: flex; flex-wrap: wrap; gap: 0.3rem;
  margin: 0.35rem 0 0.8rem;
}
.q-pillbar span {
  background: #fff; border: 1px solid var(--q-line);
  border-radius: 999px; padding: 0.18rem 0.55rem;
  font-size: 0.72rem; color: var(--q-muted);
}
.q-crumb { font-size: 0.78rem; color: var(--q-muted); margin: 0 0 0.65rem; }
.q-crumb a { color: var(--q-violet); }

/* Logo + one 18+ line only; no footer link list. Left-aligned, unlike 22g's centered dark footer. */
.q-foot {
  text-align: left;
  margin: 0.6rem 0.9rem 0;
  padding: 0.8rem 0 0.35rem;
  border-top: 1px solid var(--q-line);
}
.q-foot__brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none !important;
}
.q-foot__brand img { height: 34px; width: auto; display: block; }
.q-foot p {
  color: var(--q-muted);
  margin: 0.4rem 0 0;
  font-size: 0.72rem;
  line-height: 1.4;
}
.q-note { text-align: left; font-size: 0.78rem; color: var(--q-muted); margin: 0.5rem 0 0; }

/* Compact bottom dock: 4 items, icon + short label, one uncrowded row */
.q-tabs {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--q-col);
  height: var(--q-tabs);
  background: #fff;
  border-top: 1px solid var(--q-line);
  display: flex;
  z-index: 50;
  box-shadow: 0 -6px 18px rgba(70, 90, 160, 0.08);
}
.q-tabs a, .q-tabs button {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.12rem;
  color: var(--q-muted);
  font-size: 0.7rem;
  font-weight: 650;
  font-family: inherit;
  background: none;
  border: 0;
  cursor: pointer;
  text-decoration: none !important;
  min-height: var(--q-tabs);
  padding: 0.2rem 0.2rem 0.25rem;
  min-width: 0;
  line-height: 1.1;
}
.q-tabs svg {
  width: 20px; height: 20px;
  stroke: currentColor; fill: none;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
  flex: 0 0 20px;
}
.q-tabs a[aria-current="page"],
.q-tabs button[aria-current="page"],
.q-tabs button.is-on {
  color: var(--q-blue-2);
}

/* Reserved strip above the dock — content scrolls under this chrome, not under the buttons */
.q-fab-slot {
  position: fixed;
  left: 50%;
  bottom: var(--q-tabs);
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--q-col);
  height: 76px;
  background: linear-gradient(180deg, rgba(247, 249, 255, 0) 0%, var(--q-sheet) 10%, var(--q-sheet) 100%);
  z-index: 44;
  pointer-events: none;
}
/* Floating Entrar (left) and Cadastro (right), pinned to the app column */
.q-fab {
  position: fixed;
  bottom: calc(var(--q-tabs) + 7px);
  z-index: 45;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.8rem;
  font-family: inherit;
  text-decoration: none !important;
  box-shadow: 0 4px 16px rgba(40, 50, 90, 0.2);
  max-width: 7.2rem;
}
.q-fab--in {
  left: max(10px, calc(50% - (var(--q-col) / 2) + 10px));
  background: #fff;
  color: var(--q-blue-2);
  border: 1px solid var(--q-line);
}
.q-fab--up {
  right: max(10px, calc(50% - (var(--q-col) / 2) + 10px));
  background: var(--q-blue);
  color: #fff;
  border: 1px solid var(--q-blue);
}
.q-fab--in:hover { background: #e4ebff; color: var(--q-blue-2); }
.q-fab--up:hover { background: var(--q-blue-2); color: #fff; }
.q-more {
  display: none;
  position: fixed;
  left: 50%;
  bottom: var(--q-tabs);
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--q-col);
  background: #fff;
  border-top: 1px solid var(--q-line);
  border-radius: 16px 16px 0 0;
  padding: 0.75rem 0.8rem 0.9rem;
  z-index: 55;
  box-shadow: 0 -10px 28px rgba(40, 50, 90, 0.14);
}
.q-more.is-open {
  display: flex;
  flex-wrap: wrap;
  gap: 0.32rem 0.35rem;
}
.q-more a {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.6rem;
  min-height: 0;
  border: 1px solid var(--q-line);
  border-radius: 10px;
  color: var(--q-ink);
  background: var(--q-sheet);
  text-decoration: none !important;
  font-weight: 600;
  font-size: 0.72rem;
  line-height: 1.3;
}
.q-more a[aria-current="page"] {
  color: var(--q-blue-2);
  background: #e4ebff;
  border-color: #c5d2f8;
}
