@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("inter.woff2") format("woff2");
}
@font-face {
  font-family: Fraunces;
  font-style: italic;
  font-weight: 600;
  font-display: swap;
  src: url("fraunces.woff2") format("woff2");
}
:root {
  --navy: #0F172A;
  --mint: #2DD4BF;
  --gold: #FBBF24;
  --white: #FFFFFF;
  --ink: #0F172A;
  --muted: #475569;
  --wash: #F8FAFC;
  --line: rgba(15, 23, 42, 0.1);
}
* { box-sizing: border-box; }
html { text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  color: #F8FAFC;
  font-family: Inter, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.45;
  background: var(--navy);
  color-scheme: dark;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: var(--navy) url("glow.jpg") center/cover no-repeat;
}
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { opacity: 0.45; cursor: default; }
img { max-width: 100%; }
a, a:hover, a:visited { text-decoration: none; color: inherit; }
a[x-apple-data-detectors] { color: inherit !important; text-decoration: none !important; }
::selection { background: var(--mint); color: var(--navy); }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 2px; }
::spelling-error, ::grammar-error { text-decoration: none; background: transparent; }
[hidden] { display: none !important; }
button, a, input { -webkit-tap-highlight-color: transparent; }
#splash {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 24px;
  text-align: center;
  background: var(--navy) url("glow.jpg") center/cover no-repeat;
}
#splash img { width: 104px; height: 104px; object-fit: contain; animation: rise 0.6s ease both; }
#splash p {
  margin: 0;
  font-family: Fraunces, Georgia, serif;
  font-style: italic;
  font-weight: 600;
  font-size: clamp(2rem, 8vw, 3.2rem);
  line-height: 1;
}
#splashtrack {
  width: min(180px, 50vw);
  height: 4px;
  margin-top: 8px;
  border-radius: 20px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.2);
}
#splashbar {
  display: block;
  height: 100%;
  width: 0;
  background: var(--mint);
  animation: load 1.5s linear forwards;
}
@keyframes load { to { width: 100%; } }
@keyframes rise {
  from { transform: translateY(10px); opacity: 0; }
  to { transform: none; opacity: 1; }
}
@keyframes drift {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
#intro {
  position: fixed;
  inset: 0;
  z-index: 30;
  overflow: auto;
  background: var(--navy) url("glow.jpg") center/cover no-repeat;
}
.intro-wrap {
  width: min(560px, 100%);
  margin: 0 auto;
  padding: calc(12px + env(safe-area-inset-top)) 16px calc(20px + env(safe-area-inset-bottom));
}
.intro-brand { display: flex; align-items: center; gap: 12px; }
.intro-brand img { width: 52px; height: 52px; object-fit: contain; }
.skip {
  margin-left: auto;
  min-height: 40px;
  padding: 8px 14px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: transparent;
  color: #fff;
  font-weight: 700;
}
.steps { display: flex; gap: 8px; margin: 8px 0; }
.steps span {
  flex: 1;
  height: 6px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.2);
}
.steps span.is-on { background: var(--mint); }
.steps span.is-now { background: var(--gold); }
.widebar {
  position: relative;
  height: 14px;
  margin: 4px 0 10px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.16);
}
.widebar b {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 20px;
  background: var(--mint);
}
.widebar img {
  position: absolute;
  top: 50%;
  width: 32px;
  height: 32px;
  object-fit: contain;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.scene {
  display: grid;
  gap: 12px;
  margin-top: 8px;
  padding: 16px;
  border-radius: 20px;
  background: var(--white);
  color: var(--ink);
  color-scheme: light;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}
.scene h2, .pane-head h2, .brandbar h1, .daycard h2 {
  margin: 0;
  font-family: Fraunces, Georgia, serif;
  font-style: italic;
  font-weight: 600;
  line-height: 1.1;
}
.scene h2 { color: var(--ink); font-size: clamp(1.45rem, 6vw, 1.8rem); }
.scene p { margin: 0; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choices button, .soft, .gold, .mint, .filters button, .choice {
  border-radius: 20px;
  min-height: 48px;
}
.choices button {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px 8px 8px;
  border: 1px solid var(--line);
  background: var(--wash);
  color: var(--ink);
  font-weight: 700;
  animation: drift 4.8s ease-in-out infinite;
}
.choices button:nth-child(2n) { animation-delay: 0.35s; }
.choices button:nth-child(3n) { animation-delay: 0.7s; }
.choices button img, .gold img { width: 28px; height: 28px; object-fit: contain; }
.choices button.is-on {
  background: var(--mint);
  border-color: var(--gold);
  box-shadow: inset 0 0 0 2px var(--gold);
}
.gold, .mint, .soft, .choice, .filters button, .pills button {
  border: 0;
  font-weight: 700;
}
.gold, .mint { width: 100%; color: var(--navy); }
.gold {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--gold);
  box-shadow: 0 2px 8px 2px rgba(0, 0, 0, 0.25);
}
.mint { background: var(--mint); }
.soft {
  width: 100%;
  background: var(--wash);
  color: var(--ink);
  border: 1px solid var(--line);
}
.shell {
  width: min(880px, 100%);
  margin: 0 auto;
  padding-top: env(safe-area-inset-top);
  padding-bottom: calc(20px + env(safe-area-inset-bottom));
}
.brandbar {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  overflow: hidden;
  min-height: 88px;
  margin: 12px 16px 8px;
  padding: 14px;
  border-radius: 20px;
  background: var(--navy) url("blur.jpg") center/cover no-repeat;
}
.brandbar::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.5));
}
.brandbar img, .brandbar div { position: relative; z-index: 1; }
.brandbar img { width: 58px; height: 58px; object-fit: contain; }
.brandbar h1 { color: var(--white); font-size: clamp(1.6rem, 5vw, 2.1rem); }
.kicker {
  margin: 0 0 2px;
  color: var(--gold);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.pills {
  display: flex;
  gap: 8px;
  position: sticky;
  top: env(safe-area-inset-top);
  z-index: 5;
  overflow-x: auto;
  padding: 8px 16px;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(12px);
  scrollbar-width: none;
}
.pills::-webkit-scrollbar, .filters::-webkit-scrollbar { display: none; }
.pills button {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 20px;
  background: var(--white);
  color: var(--navy);
}
.pills button img { width: 20px; height: 20px; object-fit: contain; }
.pills button.is-on, .filters button.is-on, .soft.is-on { background: var(--mint); color: var(--navy); }
.daycard { margin: 4px 16px 12px; }
.daycard h2 { font-size: 1.45rem; }
.pips { display: flex; gap: 6px; margin-top: 12px; }
.pip {
  width: 28px;
  height: 28px;
  border-radius: 20px;
  background: #E8EEF5;
}
.pip.is-on { background: var(--gold); }
.pip.is-hoje { box-shadow: inset 0 0 0 2px var(--mint); }
main { padding: 0 16px 8px; }
.pane-head { margin: 8px 0 12px; }
.pane-head h2 { color: var(--white); font-size: 2rem; }
.pane-head p, .fine { color: rgba(255, 255, 255, 0.78); }
.fine { margin: 12px 16px; font-size: 0.92rem; }
.filters { display: flex; gap: 8px; overflow-x: auto; margin-bottom: 12px; scrollbar-width: none; }
.filters button {
  flex: 0 0 auto;
  padding: 8px 14px;
  background: var(--white);
  color: var(--navy);
}
.cards { display: grid; gap: 12px; }
.card {
  padding: 16px;
  border-radius: 20px;
  background: var(--white);
  color: var(--ink);
  color-scheme: light;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
}
.card h3 { margin: 8px 0; font-size: 1.15rem; line-height: 1.25; }
.cards .card > img { width: 42px; height: 42px; object-fit: contain; }
.card p { margin: 0; }
.tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 800;
}
.tag.futebol { background: var(--gold); color: var(--navy); }
.tag.tenis { background: var(--mint); color: var(--navy); }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.actions .gold, .actions .soft, .actions .mint {
  width: auto;
  flex: 1 1 30%;
  min-height: 44px;
  padding: 8px 10px;
  box-shadow: none;
}
.card.is-read { box-shadow: inset 0 0 0 2px var(--mint), 0 12px 28px rgba(0, 0, 0, 0.2); }
.stack { display: grid; gap: 10px; }
.note { margin: 0; color: var(--muted); }
.row { padding: 10px 12px; border-radius: 20px; background: var(--wash); }
.row strong { display: flex; justify-content: space-between; gap: 8px; font-size: 0.98rem; }
.row.is-dim { color: #94A3B8; }
.track { height: 8px; border-radius: 20px; overflow: hidden; background: #E2E8F0; }
.track b { display: block; height: 100%; width: 0; background: var(--mint); }
.lives { display: flex; gap: 6px; align-items: center; }
.lives img { width: 28px; height: 28px; object-fit: contain; }
.lives img.is-lost { opacity: 0.28; filter: grayscale(1); }
input[type="text"] {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--wash);
  color: var(--ink);
  font-size: 16px;
}
input:-webkit-autofill {
  -webkit-text-fill-color: var(--ink);
  box-shadow: 0 0 0 1000px var(--wash) inset;
}
.choice {
  width: 100%;
  padding: 12px 14px;
  text-align: left;
  background: var(--wash);
  color: var(--ink);
  border: 1px solid var(--line);
}
.choice.is-good { background: #D1FAF4; border-color: var(--mint); }
.choice.is-bad { background: #FDE8E8; border-color: #E11D48; }
.final {
  margin: 0;
  font-family: Fraunces, Georgia, serif;
  font-style: italic;
  font-weight: 600;
  font-size: 3.4rem;
  line-height: 0.9;
  color: var(--ink);
}
.scoreline { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-weight: 800; }
.scoreline strong { font-size: 1.6rem; }
canvas {
  width: 100%;
  height: 240px;
  display: block;
  border-radius: 20px;
  background: var(--navy);
  touch-action: none;
  user-select: none;
}
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.split div { padding: 10px 12px; border-radius: 20px; background: var(--wash); }
.split small { display: block; color: var(--muted); }
.split strong { font-size: 1.35rem; }
.pop { animation: rise 0.25s ease; }
@media (min-width: 840px) {
  .cards.duo { grid-template-columns: 1fr 1fr; }
  canvas { height: 300px; }
}
@media (max-width: 359px) {
  .pills button { padding-inline: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  #splashbar { width: 100%; }
}
