@font-face { font-family: "Baloo 2"; font-weight: 600; font-display: swap; src: url("assets/fonts/baloo2-600.woff2") format("woff2"); }
@font-face { font-family: "Baloo 2"; font-weight: 800; font-display: swap; src: url("assets/fonts/baloo2-800.woff2") format("woff2"); }

:root {
  --plum: #3f1c46;
  --ink: #3a2230;
  --cream: #fff8ec;
  --paper: #f6ead6;
  --tomato: #d9573b;
  --green: #6bb048;
  --magenta: #e05aa8;
  --yellow: #f2c94c;
  --muted: #6e5868;
  --radius: 16px;
  --max: 1080px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "Baloo 2", system-ui, sans-serif;
  font-weight: 600;
  font-size: 18px;
  line-height: 1.55;
  /* grão leve, no espírito da arte dos jogos */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 .23 0 0 0 0 .13 0 0 0 0 .19 0 0 0 .06 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}
img { max-width: 100%; display: block; }
a { color: var(--plum); }
h1, h2, h3 { font-weight: 800; line-height: 1.1; color: var(--plum); margin: 0 0 .5em; }
h2 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  /* bordas desencontradas magenta/amarelo, como nos personagens */
  text-shadow: -2px 0 0 rgba(224, 90, 168, .55), 2px 0 0 rgba(242, 201, 76, .7);
}

.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; background: var(--plum); color: var(--cream); padding: 8px 12px; border-radius: 8px; z-index: 10; }

.topbar {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; gap: 24px;
  padding: 12px max(16px, calc((100% - var(--max)) / 2));
  background: rgba(255, 248, 236, .92);
  backdrop-filter: blur(6px);
  border-bottom: 2px solid rgba(63, 28, 70, .12);
}
.topbar-logo img { height: 34px; width: auto; }
.topbar-nav { display: flex; gap: 20px; margin-left: auto; }
.topbar-nav a { text-decoration: none; font-size: 1.05rem; }
.topbar-nav a:hover { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 4px; }
.lang {
  font: inherit; font-weight: 800; color: var(--plum); background: var(--cream);
  border: 3px solid var(--plum); border-radius: 999px; padding: 2px 14px; cursor: pointer;
  box-shadow: 0 3px 0 var(--plum);
}
.lang:active { transform: translateY(3px); box-shadow: none; }

.section, .hero { padding: 72px max(16px, calc((100% - var(--max)) / 2)); }
.section-paper { background: var(--paper); }

.hero { text-align: center; padding-top: 80px; padding-bottom: 40px; }
.hero-title img { margin: 0 auto; }

.hero-title img { width: min(440px, 100%); height: auto; filter: drop-shadow(-3px 0 0 rgba(224,90,168,.45)) drop-shadow(3px 0 0 rgba(242,201,76,.6)); }
.hero-tagline { font-size: clamp(1.6rem, 3.2vw, 2.2rem); font-weight: 800; color: var(--plum); margin: 8px 0; line-height: 1.2; }
.hero-sub { color: var(--muted); max-width: 34ch; margin: 0 auto 24px; }

.btn {
  font-family: inherit; line-height: inherit; cursor: pointer;
  display: inline-block; text-decoration: none; font-weight: 800; font-size: 1.15rem;
  color: var(--plum); background: var(--yellow);
  border: 3px solid var(--plum); border-radius: 14px; padding: 10px 26px;
  box-shadow: 0 5px 0 var(--plum); transition: transform .08s, box-shadow .08s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 7px 0 var(--plum); }
.btn:active { transform: translateY(5px); box-shadow: 0 0 0 var(--plum); }

.games { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 28px; }
.game {
  background: var(--cream); border: 3px solid var(--plum); border-radius: var(--radius);
  overflow: hidden; box-shadow: 0 6px 0 var(--plum); display: flex; flex-direction: column;
}
.game img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-bottom: 3px solid var(--plum); }
.game-body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.game h3 { font-size: 1.6rem; margin: 0; }
.game p { margin: 0; color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; list-style: none; }
.tags li { font-size: .9rem; background: var(--paper); border: 2px solid rgba(63,28,70,.25); border-radius: 999px; padding: 0 12px; }
.tags .status { background: var(--green); color: var(--cream); border-color: transparent; }
.game .btn { align-self: flex-start; margin-top: auto; }

.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.cols p { margin: 0; font-size: 1.15rem; }

.features { list-style: none; padding: 0; margin: 0 0 32px; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.features li { background: var(--cream); border: 3px solid var(--plum); border-radius: var(--radius); padding: 18px 20px; display: flex; flex-direction: column; gap: 4px; }
.features strong { color: var(--plum); font-size: 1.25rem; font-weight: 800; }
.features span { color: var(--muted); }
.cta-line { font-size: 1.2rem; margin: 0; }

.mail { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 800; }
.links { list-style: none; padding: 0; display: flex; gap: 20px; flex-wrap: wrap; }

.game-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: auto; }
.game-actions .btn { margin-top: 0; }
.game-link { font-size: .95rem; }

.player {
  width: min(1120px, 96vw); max-height: 96vh; padding: 0; border: 3px solid var(--plum);
  border-radius: var(--radius); background: var(--plum); color: var(--cream); overflow: hidden;
}
.player::backdrop { background: rgba(30, 12, 34, .75); }
.player-bar { display: flex; align-items: center; gap: 10px; padding: 8px 12px; }
.player-title { margin-right: auto; font-size: 1.1rem; }
.player-btn {
  font: inherit; font-weight: 800; color: var(--plum); background: var(--cream);
  border: 0; border-radius: 10px; padding: 4px 14px; cursor: pointer;
}
.player-frame { aspect-ratio: 16 / 9; width: 100%; max-height: calc(96vh - 56px); margin: 0 auto; background: #000; }
.player-frame iframe { width: 100%; height: 100%; border: 0; display: block; }

.footer { text-align: center; padding: 28px 16px; color: var(--muted); }

@media (max-width: 760px) {
  .topbar-nav { display: none; }
  .lang { margin-left: auto; }
  .hero { padding-top: 64px; padding-bottom: 56px; }
  .cols { grid-template-columns: 1fr; }
  .section, .hero { padding-block: 52px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
