/* Fratatu Studios: the logo's night purple, a neon violet accent and a touch of orange, like the fraction bar's glow.
   Game-catalog layout (in the spirit of launcher catalogs like Quiver) with real art from each game.
   Three pages: the home (a store front, daily games first), the list of games and one page per game. */
:root {
  --bg: #070611;
  --surface: #120d20;
  --surface-2: #1c1530;
  --line: rgba(200, 170, 255, 0.12);
  --text: #f1ecff;
  --muted: #a49bb8;
  --soft: #d4cce6;
  --accent: #9b5cff;
  --accent-hover: #b07dff;
  --hot: #ff8a3d;
  --ok: #3fb950;
  --display: "Exo 2", "Inter", system-ui, sans-serif;
  --radius: 12px;
  --font: "Inter", "Segoe UI", system-ui, sans-serif;
  --pad: clamp(16px, 4vw, 48px);
  --gutter: max(var(--pad), calc((100% - 1240px) / 2 + var(--pad)));
  /* Darkens the art under text: left and bottom on wide screens. */
  --shade:
    linear-gradient(90deg, rgba(7, 6, 17, 0.94) 0%, rgba(7, 6, 17, 0.65) 42%, rgba(7, 6, 17, 0) 75%),
    linear-gradient(0deg, rgba(7, 6, 17, 1) 0%, rgba(7, 6, 17, 0) 45%);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

img {
  display: block;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--display);
  letter-spacing: -0.01em;
}

/* ---------- top bar ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px var(--gutter);
  background: rgba(7, 6, 17, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 19px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
}

.nav__brand img {
  width: 34px;
  height: auto;
}

.nav__brand small {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3em;
  color: var(--muted);
}

.nav__links {
  display: flex;
  gap: 4px;
  margin-left: auto;
}

.nav__links a {
  padding: 6px 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  border-radius: 8px;
}

.nav__links a:hover {
  color: var(--text);
}

.nav__links a[aria-current="page"] {
  color: var(--text);
  background: var(--surface);
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  font-weight: 600;
  font-size: 15px;
  color: #fff;
  background: var(--accent);
  border: 1px solid transparent;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.15s ease;
}

.btn:hover {
  background: var(--accent-hover);
}

.btn:focus-visible,
.card:focus-visible,
.tile:focus-visible .tile__cover {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.btn svg {
  width: 14px;
  height: 14px;
}

.btn--big {
  padding: 14px 28px;
  font-size: 17px;
  border-radius: 10px;
}

.btn--cta {
  padding: 16px 38px;
  font-size: 18px;
  font-weight: 800;
  font-family: var(--display);
  letter-spacing: 0.08em;
  background: linear-gradient(90deg, #8a4dff, #c06bff 55%, #ff8a3d);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12) inset, 0 0 24px rgba(155, 92, 255, 0.55), 0 0 48px rgba(255, 138, 61, 0.18);
}

.btn--cta:hover {
  background: linear-gradient(90deg, #9b62ff, #cf85ff 55%, #ff9d5c);
}

.btn--ghost {
  background: rgba(7, 6, 17, 0.55);
  border-color: rgba(240, 246, 252, 0.3);
}

.btn--ghost:hover {
  background: var(--surface-2);
}

.btn--off {
  color: var(--soft);
  background: var(--surface-2);
  cursor: default;
}

.btn--off:hover {
  background: var(--surface-2);
}

.kicker {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* A row of tall covers (home and "Outros jogos"); it slides sideways when it does not fit. */
.more {
  padding: 8px 0 0;
}

.more h2 {
  margin-bottom: 14px;
  padding: 0 var(--gutter);
  font-size: clamp(18px, 2.2vw, 22px);
}

.row {
  display: flex;
  gap: clamp(12px, 1.6vw, 20px);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  padding: 2px var(--gutter) 6px;
  scrollbar-width: none;
}

.row::-webkit-scrollbar {
  display: none;
}

.tile {
  flex: 0 0 clamp(130px, 36vw, 180px);
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  scroll-snap-align: start;
  text-decoration: none;
}

.tile__cover {
  position: relative;
  aspect-ratio: 3 / 4;
  margin-bottom: 8px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
  transition: transform 0.18s ease;
}

.tile__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tile:hover .tile__cover {
  transform: translateY(-4px);
}

.tile:focus-visible {
  outline: none;
}

.tile h3 {
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tile__sub {
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tile__badge {
  position: absolute;
  left: 10px;
  top: 10px;
  padding: 3px 9px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--soft);
  background: rgba(7, 6, 17, 0.8);
  border-radius: 6px;
}

/* ---------- list of games ---------- */

.list {
  padding: clamp(28px, 5vw, 48px) var(--gutter) 0;
}

.list__head h1 {
  font-size: clamp(30px, 4.4vw, 44px);
  font-weight: 800;
}

.list__head p {
  max-width: 620px;
  margin: 8px 0 0;
  color: var(--soft);
  font-size: 16px;
}

.list__title {
  margin: clamp(28px, 4vw, 40px) 0 14px;
  font-size: clamp(18px, 2.2vw, 22px);
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr));
  gap: clamp(14px, 2vw, 24px);
}

.card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  text-decoration: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition:
    transform 0.18s ease,
    border-color 0.18s ease;
}

.card:hover {
  transform: translateY(-3px);
  border-color: rgba(155, 92, 255, 0.6);
}

.card__art {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--surface-2);
}

.card__art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card--soon .card__art img {
  filter: saturate(0.55) brightness(0.8);
}

.card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 16px 18px 18px;
}

.card h3 {
  margin: 4px 0 8px;
  font-size: 20px;
  font-weight: 700;
}

.card p {
  flex: 1;
  margin: 0 0 14px;
  font-size: 15px;
  color: var(--soft);
}

.card__more {
  font-size: 15px;
  font-weight: 600;
  color: var(--accent-hover);
}

.card--soon .card__more {
  color: var(--muted);
}

/* ---------- one game ---------- */

.banner {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: min(62vh, 520px);
  padding: 28px var(--gutter) 36px;
  overflow: hidden;
  isolation: isolate;
}

.banner__img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.banner::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--shade);
}

.banner__text {
  max-width: 620px;
}

.back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 18px;
  font-size: 14px;
  font-weight: 600;
  color: var(--soft);
  text-decoration: none;
}

.back svg {
  width: 14px;
  height: 14px;
}

.back:hover {
  color: var(--text);
}

.banner h1 {
  margin: 6px 0 10px;
  font-size: clamp(32px, 5vw, 54px);
  font-weight: 800;
  line-height: 1.05;
}

.banner p {
  margin: 0;
  font-size: clamp(16px, 1.7vw, 18px);
  color: var(--soft);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.hint {
  margin-top: 14px !important;
  font-size: 14px !important;
  color: var(--muted) !important;
}

.detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: clamp(24px, 4vw, 56px);
  padding: 8px var(--gutter) 40px;
}

.block + .block {
  margin-top: 32px;
}

.block h2,
.side h2 {
  margin-bottom: 12px;
  font-size: clamp(19px, 2.2vw, 22px);
}

.block p {
  max-width: 720px;
  margin: 0 0 12px;
  font-size: 16px;
  color: var(--soft);
}

.steps {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px 16px 14px 60px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 16px;
  top: 14px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  font-weight: 800;
  color: #fff;
  background: var(--accent);
  border-radius: 50%;
}

.steps strong {
  font-size: 16px;
}

.steps span {
  font-size: 15px;
  color: var(--soft);
}

.side {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.side__box {
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.facts {
  display: grid;
  gap: 10px;
  margin: 0;
}

.facts dt {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.facts dd {
  margin: 0;
  font-size: 15px;
}

.missing {
  padding: 80px var(--gutter);
}

.missing p {
  color: var(--soft);
}

/* On phones the Jogar button stays at hand at the bottom while reading. */
.playbar {
  display: none;
}

/* ---------- footer ---------- */

.footer {
  margin-top: 48px;
  padding: 22px var(--gutter) 36px;
  color: var(--muted);
  font-size: 13px;
  border-top: 1px solid var(--line);
}

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

@media (max-width: 640px) {
  :root {
    --shade: linear-gradient(0deg, rgba(7, 6, 17, 1) 0%, rgba(7, 6, 17, 0.75) 45%, rgba(7, 6, 17, 0.1) 80%);
  }
  .btn--cta {
    align-self: stretch;
  }
  .banner {
    min-height: 70vh;
  }
  .actions .btn {
    flex: 1 1 100%;
  }
  .playbar {
    position: sticky;
    bottom: 0;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px var(--pad) calc(10px + env(safe-area-inset-bottom));
    font-weight: 600;
    background: rgba(7, 6, 17, 0.94);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--line);
  }
}

/* Phones held sideways: shorter art, so the text and buttons stay in view. */
@media (orientation: landscape) and (max-height: 500px) {
  .banner {
    min-height: 0;
    padding-top: 24px;
    padding-bottom: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tile__cover,
  .card,
  .btn {
    transition: none;
  }
}

/* ---------- account button (conta.js) ---------- */

.conta {
  position: relative;
  flex: none;
}

.conta__entrar,
.conta__nome {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  font: 600 14px var(--font);
  color: var(--text);
  text-decoration: none;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
}

.conta__nome span:last-child {
  max-width: 9em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.conta__avatar {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  font-size: 12px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--hot));
  border-radius: 50%;
}

.conta__menu {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 20;
  display: grid;
  min-width: 160px;
  padding: 6px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}

.conta__menu[hidden] {
  display: none;
}

.conta__info {
  padding: 6px 10px;
  font-size: 12px;
  color: var(--muted);
}

.conta__menu button {
  padding: 8px 10px;
  font: 600 14px var(--font);
  color: var(--text);
  text-align: left;
  background: none;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
}

.conta__menu button:hover {
  background: var(--surface-2);
}

@media (max-width: 520px) {
  .nav {
    gap: 8px;
  }
  .nav__brand small,
  .nav__brand span {
    display: none;
  }
  .nav__links a {
    padding: 6px 8px;
  }
  .conta__nome span:last-child {
    display: none;
  }
}

/* ---------- login page (entrar.html) ---------- */

.auth {
  display: grid;
  place-items: start center;
  min-height: 70vh;
  padding: 40px var(--pad);
}

.auth__box {
  width: min(100%, 420px);
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.auth__box h1 {
  font-size: 26px;
}

.auth__lead {
  margin: 6px 0 20px;
  color: var(--muted);
  font-size: 14px;
}

.auth__tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 20px;
  padding: 4px;
  background: var(--bg);
  border-radius: 10px;
}

.auth__tabs button {
  flex: 1;
  padding: 8px;
  font: 600 14px var(--font);
  color: var(--muted);
  background: none;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
}

.auth__tabs button[aria-selected="true"] {
  color: var(--text);
  background: var(--surface-2);
}

.auth form {
  display: grid;
  gap: 14px;
}

.auth form[hidden] {
  display: none;
}

.auth label {
  display: grid;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--soft);
}

.auth input {
  padding: 12px 14px;
  font: 16px var(--font);
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.auth input:focus {
  outline: 2px solid var(--accent);
  border-color: transparent;
}

.auth .btn {
  margin-top: 4px;
  font-size: 16px;
  border: 0;
  cursor: pointer;
}

.auth .btn[disabled] {
  opacity: 0.6;
  cursor: wait;
}

.auth__msg {
  min-height: 1.4em;
  margin: 0;
  font-size: 14px;
  color: #ff8a8a;
}

.auth__msg--ok {
  color: var(--ok);
}

.auth__link {
  justify-self: start;
  padding: 0;
  font: 500 13px var(--font);
  color: var(--muted);
  text-decoration: underline;
  background: none;
  border: 0;
  cursor: pointer;
}

.auth__note {
  margin: 18px 0 0;
  font-size: 13px;
  color: var(--muted);
}

/* ---------- daily games hub (diarios.html) ---------- */

.daily {
  padding: 36px var(--gutter) 0;
}

.daily__head h1 {
  font-size: clamp(30px, 5vw, 44px);
}

.daily__head p {
  max-width: 640px;
  color: var(--soft);
}

.daily__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.daily-card {
  display: grid;
  gap: 10px;
  padding: 22px;
  text-decoration: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.daily-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.daily-card__icon {
  font-size: 40px;
  line-height: 1;
}

.daily-card h2,
.daily-card h3 {
  font-size: 22px;
}

.daily-card__nivel {
  justify-self: start;
  margin-bottom: -4px;
  padding: 2px 9px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0b0a12;
  border-radius: 999px;
}

.daily-card__nivel--facil {
  background: #3fb950;
}

.daily-card__nivel--medio {
  background: #e8b931;
}

.daily-card__nivel--dificil {
  color: #fff;
  background: #e5484d;
}

.daily-card p {
  margin: 0;
  color: var(--soft);
  font-size: 15px;
}

.daily-card__state {
  justify-self: start;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fff;
  background: var(--accent);
  border-radius: 999px;
}

.daily-card__state--done {
  background: var(--ok);
}

.daily__text {
  max-width: 760px;
  margin-top: 40px;
  color: var(--soft);
}

.daily__text h2 {
  margin-top: 28px;
  font-size: 22px;
  color: var(--text);
}

/* ---------- ad spaces (anuncios.js): hidden until ads are turned on ---------- */

.anuncio {
  display: none;
}

.com-anuncios .anuncio--faixa {
  display: block;
  width: min(100% - 2 * var(--pad), 970px);
  min-height: 100px;
  margin: 32px auto 0;
}

.anuncio__rotulo {
  display: block;
  margin-bottom: 4px;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
  color: var(--muted);
}

.anuncio__teste {
  display: grid;
  place-items: center;
  min-height: 90px;
  font: 700 13px var(--font);
  color: var(--muted);
  background: repeating-linear-gradient(45deg, #1c1530 0 10px, #241b3d 10px 20px);
  border: 1px dashed var(--line);
  border-radius: 8px;
}

.footer a {
  margin-left: 8px;
  color: var(--muted);
}

.legal {
  max-width: 760px;
  margin-top: 0;
}

.legal h1 {
  font-size: clamp(28px, 4vw, 38px);
  color: var(--text);
}

.legal ul {
  padding-left: 22px;
}

.legal li {
  margin: 6px 0;
}

.legal a {
  color: var(--accent-hover);
}

/* ---------- daily games hub in categories: a row of cards per theme ---------- */

.cats {
  position: sticky;
  top: 58px;
  z-index: 5;
  display: flex;
  gap: 8px;
  margin: 18px calc(-1 * var(--gutter)) 0;
  padding: 10px var(--gutter);
  overflow-x: auto;
  scrollbar-width: none;
  background: rgba(7, 6, 17, 0.92);
  backdrop-filter: blur(8px);
}

.cats::-webkit-scrollbar {
  display: none;
}

.cats a {
  flex: none;
  padding: 7px 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--soft);
  text-decoration: none;
  white-space: nowrap;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.cats a:hover {
  color: var(--text);
  border-color: var(--accent);
}

.cat {
  margin-top: 30px;
  scroll-margin-top: 120px;
}

.cat__head h2 {
  font-size: clamp(20px, 3vw, 26px);
}

.cat__head p {
  margin: 2px 0 0;
  font-size: 14px;
  color: var(--muted);
}

/* Phones: swipe sideways inside each block. Wide screens: a grid. */
.cat__row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(78%, 280px);
  gap: 14px;
  margin: 12px calc(-1 * var(--gutter)) 0;
  padding: 4px var(--gutter) 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding: 0 var(--gutter);
  scrollbar-width: thin;
}

.cat__row .daily-card {
  scroll-snap-align: start;
}

@media (min-width: 900px) {
  .cat__row {
    grid-auto-flow: row;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    grid-auto-columns: auto;
    margin: 12px 0 0;
    padding: 0;
    overflow: visible;
  }
}

/* Compact cards inside the theme rows. */
.cat__row .daily-card {
  gap: 6px;
  padding: 16px;
}

.cat__row .daily-card__icon {
  font-size: 30px;
}

.cat__row .daily-card h2 {
  font-size: 19px;
}

.cat__row .daily-card p {
  display: -webkit-box;
  overflow: hidden;
  font-size: 14px;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

/* Phones: every theme in view at once (wrapping), not a strip to swipe; it no longer sticks to the top. */
@media (max-width: 899px) {
  .cats {
    position: static;
    flex-wrap: wrap;
    margin: 18px 0 0;
    padding: 0;
    overflow: visible;
    background: none;
    backdrop-filter: none;
  }
  .cats a {
    padding: 6px 11px;
    font-size: 13px;
  }
  .cat {
    scroll-margin-top: 70px;
  }
}

/* Phones: the games of each theme stacked one under the other, as compact rows (icon at the side). */
@media (max-width: 899px) {
  .cat__row {
    grid-auto-flow: row;
    grid-auto-columns: auto;
    grid-template-columns: 1fr;
    gap: 10px;
    margin: 12px 0 0;
    padding: 0;
    overflow: visible;
    scroll-snap-type: none;
  }
  .cat__row .daily-card {
    grid-template-columns: 40px 1fr;
    column-gap: 12px;
    row-gap: 4px;
    align-items: start;
    padding: 14px;
  }
  .cat__row .daily-card > * {
    grid-column: 2;
  }
  .cat__row .daily-card__icon {
    grid-column: 1;
    grid-row: 1 / span 4;
    font-size: 32px;
  }
  .cat__row .daily-card p {
    -webkit-line-clamp: 2;
  }
}

/* ---------- home: the store front (home-vitrine.js writes it, home.js brings it to life) ---------- */

/* The home keeps to a column (everything inside measures its sides with --gutter), and rows end at its edge.
   With ads on, a rail sits on each side of a wide screen and the column narrows to make room. */
.loja {
  --loja: 1180px;
  --gutter: max(var(--pad), calc((100% - var(--loja)) / 2));
  padding-bottom: 24px;
}

.loja .row {
  margin-inline: var(--gutter);
  padding-inline: 0;
  scroll-padding-inline: 0;
}

@media (min-width: 1080px) {
  .com-anuncios .loja {
    --loja: min(1180px, 100vw - 2 * (160px + 48px));
  }
  .com-anuncios .loja .anuncio--lateral {
    position: fixed;
    top: 76px;
    display: block;
    width: 160px;
    height: 600px;
  }
  .loja .anuncio--esquerda {
    right: calc(50% + var(--loja) / 2 + 24px);
  }
  .loja .anuncio--direita {
    left: calc(50% + var(--loja) / 2 + 24px);
  }
}

@media (min-width: 1760px) {
  .com-anuncios .loja {
    --loja: min(1180px, 100vw - 2 * (300px + 48px));
  }
  .com-anuncios .loja .anuncio--lateral {
    width: 300px;
  }
}

/* Highlights: one large cover at a time; on wide screens the list beside it, like a store's carousel. */
.vitrine {
  display: grid;
  gap: 12px 16px;
  padding: 20px var(--gutter) 0;
}

.vitrine__palco {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  scrollbar-width: none;
}

.vitrine__palco::-webkit-scrollbar {
  display: none;
}

.vitrine__slide {
  position: relative;
  flex: 0 0 100%;
  scroll-snap-align: start;
  overflow: hidden;
  color: var(--text);
  text-decoration: none;
}

.vitrine__slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.vitrine__slide:hover img {
  transform: scale(1.03);
}

.vitrine__info {
  position: absolute;
  inset: auto 0 0 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: clamp(14px, 3vw, 32px);
  background: linear-gradient(0deg, rgba(7, 6, 17, 0.92) 0%, rgba(7, 6, 17, 0.55) 60%, rgba(7, 6, 17, 0) 100%);
}

.vitrine__kicker {
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  background: var(--hot);
  border-radius: 6px;
}

.vitrine__nome {
  font-family: var(--display);
  font-size: clamp(24px, 4.2vw, 46px);
  font-weight: 800;
  line-height: 1.05;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
}

.vitrine__texto {
  max-width: 560px;
  margin-bottom: 10px;
  font-size: clamp(14px, 1.6vw, 17px);
  color: var(--soft);
}

.vitrine__info .btn--cta {
  align-self: flex-start;
}

.vitrine__lado {
  display: none;
}

/* Phones: a taller frame (the art keeps its left side, where the emoji is) and no long text. */
@media (max-width: 640px) {
  .vitrine__palco {
    aspect-ratio: 4 / 3;
  }
  .vitrine__slide img {
    object-position: 12% center;
  }
  .vitrine__texto {
    display: none;
  }
  .vitrine__info .btn--cta {
    align-self: flex-start;
    margin-top: 6px;
  }
}

.vitrine__mini {
  display: grid;
  grid-template-columns: 120px 1fr;
  align-items: center;
  gap: 12px;
  padding: 8px;
  font: inherit;
  font-weight: 700;
  text-align: left;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.vitrine__mini img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 8px;
}

.vitrine__mini small {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}

.vitrine__mini[aria-pressed="true"] {
  background: var(--surface-2);
  border-color: var(--accent);
}

.vitrine__pontos {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.vitrine__pontos button {
  width: 8px;
  height: 8px;
  padding: 0;
  background: var(--line);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

.vitrine__pontos button[aria-pressed="true"] {
  width: 24px;
  background: var(--accent);
}

@media (min-width: 900px) {
  .vitrine {
    grid-template-columns: minmax(0, 1fr) 300px;
  }
  .vitrine__lado {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 10px;
  }
  .vitrine__mini {
    flex: 1;
  }
  .vitrine__pontos {
    grid-column: 1;
  }
}

/* Today's progress, from what this browser played (home.js). */
.progresso {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 20px;
  margin: 20px var(--gutter) 4px;
  padding: 14px 18px;
  background: linear-gradient(90deg, rgba(155, 92, 255, 0.16), rgba(255, 138, 61, 0.1));
  border: 1px solid var(--line);
  border-radius: 14px;
}

.progresso__texto {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1 1 280px;
}

.progresso__texto b {
  font-family: var(--display);
  font-size: 18px;
}

.progresso__texto span {
  font-size: 14px;
  color: var(--soft);
}

.progresso__texto a {
  color: var(--accent-hover);
}

.progresso__botao {
  flex: none;
}

@media (max-width: 640px) {
  .progresso__botao {
    flex: 1 1 100%;
    text-align: center;
  }
}

.progresso__barra {
  flex: 1 1 200px;
  height: 10px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
}

.progresso__barra i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--hot));
  border-radius: inherit;
}

/* A row of daily games: 16:9 covers that slide sideways. */
.fileira {
  position: relative;
  padding-top: 26px;
}

/* Arrows to move a row with the mouse (home.js); phones swipe instead. */
.fileira__seta {
  position: absolute;
  top: calc(50% + 4px);
  z-index: 2;
  display: none;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  color: var(--text);
  background: rgba(18, 13, 32, 0.92);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5);
  cursor: pointer;
}

.fileira__seta svg {
  width: 22px;
  height: 22px;
}

.fileira__seta:hover {
  border-color: var(--accent);
}

.fileira__seta--esq {
  left: calc(var(--gutter) - 22px);
}

.fileira__seta--dir {
  right: calc(var(--gutter) - 22px);
}

@media (hover: hover) and (pointer: fine) {
  .fileira__seta {
    display: grid;
  }
  .fileira__seta[hidden] {
    display: none;
  }
}

.fileira__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  padding: 0 var(--gutter);
}

.fileira__head h2 {
  font-size: clamp(19px, 2.3vw, 24px);
}

.fileira__head p {
  margin: 2px 0 0;
  font-size: 14px;
  color: var(--muted);
}

.fileira__mais {
  flex: none;
  font-size: 14px;
  font-weight: 700;
  color: var(--accent-hover);
  text-decoration: none;
}

.fileira__mais:hover {
  text-decoration: underline;
}

.jc {
  flex: 0 0 clamp(220px, 64vw, 270px);
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  color: var(--text);
  text-decoration: none;
  scroll-snap-align: start;
}

.jc__arte {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  margin-bottom: 8px;
  overflow: hidden;
  background: var(--surface);
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.jc__arte img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.jc:hover .jc__arte,
.jc:focus-visible .jc__arte {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.5), 0 0 0 2px var(--accent);
}

.jc:focus-visible {
  outline: none;
}

.jc__nome {
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.jc__sub {
  font-size: 13px;
  color: var(--muted);
}

.selo {
  position: absolute;
  left: 10px;
  top: 10px;
  padding: 3px 9px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 6px;
}

.selo--novo {
  color: #fff;
  background: var(--hot);
}

.selo--facil {
  color: #06210f;
  background: #2fbf71;
}

.selo--medio {
  color: #2a1d00;
  background: #e8b931;
}

.selo--dificil {
  color: #fff;
  background: #e5484d;
}

/* Played today in this browser: the cover dims and says so. */
.jc__feito {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  background: rgba(7, 6, 17, 0.62);
}

.jc--feito .jc__feito {
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.7);
}

/* Tabs like a store's "top sellers / new / ...": short lists with a number on the right. */
.abas {
  margin: 30px var(--gutter) 0;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.abas__botoes {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.abas__botoes button {
  padding: 7px 14px;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
  background: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
}

.abas__botoes button[aria-selected="true"] {
  color: var(--text);
  background: var(--surface-2);
  border-color: var(--accent);
}

.aba__linha {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 8px;
  color: var(--text);
  text-decoration: none;
  border-radius: 10px;
}

.aba__linha:hover {
  background: var(--surface-2);
}

.aba__linha img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 8px;
}

.aba__nome {
  display: flex;
  flex-direction: column;
  font-weight: 700;
  min-width: 0;
}

.aba__nome small {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}

.aba__num {
  font-size: 13px;
  font-weight: 700;
  color: var(--soft);
  text-align: right;
}

@media (max-width: 520px) {
  .aba__linha {
    grid-template-columns: 88px minmax(0, 1fr) auto;
    gap: 10px;
  }
}

.home__avisos {
  margin: 0 var(--gutter);
}

.home__avisos:empty {
  display: none;
}
