@font-face {
  font-family: Inter;
  src: url("fonts/InterVariable.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: Inter;
  src: url("fonts/InterVariable-Italic.woff2") format("woff2");
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
}
:root {
  --night: #0b1832;
  --panel: #152a4e;
  --gold: #dbbc83;
  --ink: #101f3b;
  --muted: #586a84;
  --sans: Inter, "Segoe UI", sans-serif;
  --display: Georgia, "Times New Roman", serif;
  --motion-enter: 250ms;
  --motion-exit: 150ms;
  --motion-ease: cubic-bezier(.22,1,.36,1);
}
* { box-sizing: border-box; }
body { margin: 0; background: #f5f8fc; color: var(--ink); font: 400 1rem/1.5 var(--sans); padding-bottom: calc(78px + env(safe-area-inset-bottom)); }
body[data-screen="inicio"] { background: var(--night); color: #f7f8fc; }
main, footer { width: min(1120px,94%); margin-inline: auto; }
main { min-height: 70vh; }
h1,h2,h3,p { margin: 0; }
h1,h2,h3,.wordmark,.tile-copy strong,.rank-copy strong,.resume strong,.summary-line strong { font-family: var(--display); font-weight: 400; }
button,input,select { font: inherit; }
a { color: inherit; }
button { cursor: pointer; }
button:focus-visible,a:focus-visible,select:focus-visible,input:focus-visible { outline: 3px solid #ad853e; outline-offset: 3px; }
.icon { display: inline-flex; align-items: center; }
.icon svg { width: 1.2em; height: 1.2em; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.skip { position: fixed; top: -5rem; left: 1rem; z-index: 10; background: white; color: var(--ink); padding: .6rem; }
.skip:focus { top: .5rem; }
.bottom-nav { position: fixed; bottom: 0; left: 0; right: 0; z-index: 5; display: flex; justify-content: center; padding-bottom: env(safe-area-inset-bottom); background: #101d36; border-top: 1px solid #34415a; color: #c1cadb; }
.bottom-nav a { width: min(180px, 33.33%); min-height: 70px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; position: relative; font-size: .8rem; font-weight: 600; text-decoration: none; }
.bottom-nav i { font-size: 1.12rem; height: 1.5rem; }
.bottom-nav [aria-current="page"] { color: white; }
.bottom-nav [aria-current="page"] i { color: var(--gold); }
.bottom-nav [aria-current="page"]::after { content: ""; width: 4px; height: 4px; position: absolute; bottom: 4px; border-radius: 50%; background: var(--gold); }
.welcome { isolation: isolate; overflow: hidden; position: relative; border-radius: 0 0 28px 28px; border: 1px solid #23314a; background: #19233a; }
.hero-image { display: block; width: 100%; height: auto; }
.hero-copy { padding: 22px clamp(22px,4.5vw,64px) 36px; }
.wordmark { display: inline-flex; flex-direction: column; color: white; font-size: 2rem; line-height: 1; letter-spacing: .20em; }
.wordmark small { font: 600 .59rem/1.5 var(--sans); text-transform: uppercase; letter-spacing: .29em; margin-top: 4px; color: #c1cee2; }
.eyebrow { display: block; color: #71809a; font: 650 .72rem/1.4 var(--sans); letter-spacing: .21em; text-transform: uppercase; }
.hero-copy .eyebrow { margin-top: clamp(38px,5vw,72px); color: var(--gold); }
.hero-copy h1 { font-size: clamp(2.45rem,4.4vw,3.7rem); line-height: 1.12; margin: 12px 0 6px; letter-spacing: -.035em; }
.heart { color: var(--gold); }
.welcome-note { max-width: 32ch; font-size: .9rem; color: #cad4e6; margin-top: 6px; }
.home-content { padding: 24px 0 0; }
.status,.training-summary { color: #f6f8fc; border-radius: 22px; padding: 22px; background: var(--panel); border: 1px solid #2a405f; }
.status { display: grid; grid-template-columns: 55px 1fr minmax(115px,24%); align-items: center; gap: 14px; }
.shield { display: block; width: 100%; }
.rank-copy .eyebrow { color: var(--gold); font-size: .65rem; }
.rank-copy strong { display: block; font-size: 1.55rem; margin-top: 3px; }
.rank-meter b { display: block; color: var(--gold); font-size: .89rem; text-align: right; margin-top: 5px; }
.track,.card-track { display: block; overflow: hidden; background: #3e506d; border-radius: 20px; }
.track { height: 8px; }
.track span,.card-track i { background: linear-gradient(90deg,#f3dea8,var(--gold)); display: block; height: 100%; border-radius: inherit; }
.rank-hint { grid-column: 1/-1; font-size: .87rem; color: #c4cfe1; }
.resume { width: 100%; display: flex; align-items: center; gap: 15px; text-align: left; margin: 18px 0 38px; padding: 14px 19px; border: 0; border-radius: 50px; color: var(--night); background: var(--gold); box-shadow: 0 8px 22px #dbbc8323; }
.resume:hover { background: #e6ca96; }
.resume>.icon { margin-left: auto; }
.resume strong,.resume small { display: block; }
.resume strong { font-size: 1.35rem; line-height: 1.18; }
.resume small { font-size: .83rem; margin-top: 2px; }
.play { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--night); color: var(--gold); }
.section-head,.head-controls,.summary-line,.stage-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.section-head { margin-bottom: 14px; }
.section-head h2,.catalog-title { font-size: 1.65rem; letter-spacing: -.035em; }
.textlink { font-weight: 650; color: var(--gold); text-decoration: none; font-size: .88rem; }
.round { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--panel); border: 1px solid #3e506d; color: var(--gold); }
.round:disabled { opacity: .45; cursor: default; }
.shelf,.grid { display: grid; gap: 16px; }
.shelf { grid-auto-flow: column; grid-auto-columns: calc((100% - 64px)/5); overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 8px; scrollbar-width: thin; scrollbar-color: #445675 var(--night); }
.grid { grid-template-columns: repeat(5,minmax(0,1fr)); }
.tile { position: relative; isolation: isolate; display: block; overflow: hidden; min-width: 0; width: 100%; aspect-ratio: 2/3; border-radius: 16px; border: 1px solid #4a6285; background: var(--panel); color: #fff; text-align: left; padding: 0; scroll-snap-align: start; }
.tile img { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tile::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg,rgba(5,14,31,.95),rgba(8,20,41,.43) 31%,transparent 58%); }
.tile-copy { position: absolute; left: 8%; right: 8%; bottom: 5%; }
.tile-copy small { color: #f4d99e; font: 400 1.45rem/1 var(--display); }
.tile-copy strong { display: block; margin: 5px 0 10px; line-height: 1.15; font-size: 1.11rem; }
.card-track { height: 4px; background: #ffffff45; }
.card-badge,.pill { display: inline-flex; align-items: center; font: 650 .69rem/1.3 var(--sans); padding: 4px 8px; border-radius: 20px; }
.card-badge { position: absolute; top: 6%; left: 7%; background: #fff2ceeb; color: #624819; }
.intro-tile { background: #58677e; }
.intro-tile::after { background: linear-gradient(0deg,#0a1736aa,transparent); }
body[data-screen="inicio"] .intro-tile { background: #132a4d; }
.intro-tile .card-badge { background: #dee8f5da; color: #4d617c; }
.watermark { position: absolute; top: 42%; width: 100%; text-align: center; font: 400 4.3rem/1 var(--display); opacity: .13; }
.page-head { margin: 26px 0 22px; }
.app-back {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px;
  padding: 0 1.15rem; border: 1px solid #a7b3c5; border-radius: 999px;
  background: white; color: var(--ink); font: 650 .95rem/1.2 var(--sans);
}
.app-back:hover { background: #e9eff8; }
.page-head .app-back { display: flex; margin-bottom: 1rem; }
.app-back { gap: .35rem; }
.app-back .icon svg { width: 1rem; height: 1rem; }
.hero-copy .app-back { display: flex; margin-bottom: .8rem; background: #11203ad9; border-color: #aab4c8; color: white; }
.products {
  display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: clamp(14px,2vw,26px);
  margin: 24px 0 18px; padding: 4px; scroll-snap-type: x mandatory;
}
.product-card {
  display: block; position: relative; isolation: isolate; overflow: hidden; text-decoration: none;
  aspect-ratio: 2 / 2.85; scroll-snap-align: start; border-radius: clamp(15px,2vw,23px);
  background: #102444; color: white; box-shadow: 0 5px 16px #10223b14;
}
.product-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.product-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg,#08162cf7 2%,#0c1d38ab 22%,transparent 54%); }
.product-card h2 { position: absolute; bottom: 7%; left: 8%; right: 8%; font-size: clamp(1.15rem,2.6vw,2rem); line-height: 1.1; text-wrap: balance; }
.product-card h2::after { content: ""; display: block; width: 28px; height: 3px; margin-top: .65rem; background: var(--gold); }
.product-access { display: inline-flex; align-items: center; gap: .35rem; padding: .35rem .65rem; border-radius: 999px; background: #eef2f8f5; color: #2a3a52; font: 650 .77rem/1.15 var(--sans); white-space: nowrap; }
.product-access .icon svg { width: 1em; height: 1em; stroke-width: 2; }
.product-access.available { background: #fff1cdf7; color: #5a4118; }
.product-card .product-access { position: absolute; top: 6%; right: 7%; }
.product-detail { display: grid; grid-template-columns: minmax(135px, 32%) 1fr; max-width: 870px; border: 1px solid #d9e3ef; border-radius: 22px; overflow: hidden; background: white; }
.product-detail > img { width: 100%; height: 100%; max-height: 400px; object-fit: cover; }
.product-detail > div { align-self: center; padding: clamp(1rem,4vw,3rem); }
.product-detail h2 { margin: 1rem 0 .5rem; font-size: clamp(1.6rem,3vw,2.2rem); }
.product-detail p { color: var(--muted); }
.unlock-date { margin-top: .7rem; font-size: .9rem; }
.product-cta { display: inline-flex; align-items: center; min-height: 44px; margin-top: 1.2rem; padding: 6px 1.2rem; border-radius: 999px; background: var(--gold); color: var(--ink); font-weight: 650; text-decoration: none; }
@media (max-width: 600px) {
  .products { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 44%; gap: 12px; overflow-x: auto; margin-inline: -14px; padding: 4px 14px 12px; scroll-padding-inline: 14px; scrollbar-width: thin; }
  .product-card { aspect-ratio: 2/3; }
  .product-detail { grid-template-columns: 1fr; }
  .product-detail > img { height: 180px; object-position: center 35%; }
}
.page-head h1 { margin: 9px 0; font-size: clamp(2.05rem,4vw,3rem); letter-spacing: -.035em; }
.page-head p { color: var(--muted); }
.catalog-title { margin: 20px 0 14px; }
.training-summary,.rank-detail { background: var(--night); }
.summary-line { align-items: baseline; font-size: .9rem; }
.summary-line strong { font-size: 1.5rem; }
.summary-line small { font-size: .75rem; color: #c5ccda; }
.training-summary .track { height: 10px; margin: 10px 0; }
.training-summary p { font-size: .86rem; color: #c4cede; }
.filter-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0; }
.search-box,.filter-row select { border: 1px solid #cdd6e3; border-radius: 10px; background: white; color: var(--ink); padding: 9px 12px; font-size: .9rem; }
.search-box { display: flex; gap: 8px; align-items: center; }
.search-box input { width: 14ch; min-width: 0; border: 0; background: transparent; }
.empty { grid-column: 1/-1; padding: 20px 0; }
body[data-screen="progresso"] main { max-width: 760px; }
.rank-detail { grid-template-columns: 70px 1fr; gap: 4px 18px; }
.rank-detail .shield { grid-row: span 2; }
.rank-detail .rank-meter { grid-column: 2; }
.rank-detail .rank-meter b { text-align: left; color: #c4cede; }
.timeline { list-style: none; margin: 30px 0; padding: 0; }
.milestone { display: grid; position: relative; grid-template-columns: 50px 1fr; gap: 18px; margin-bottom: 14px; align-items: start; }
.milestone:not(:last-child)::after { content: ""; position: absolute; left: 25px; top: 65px; bottom: -9px; width: 1px; background: #c5d4e7; }
.milestone article { padding: 18px; background: white; border: 1px solid #e3eaf3; border-radius: 20px; }
.stage-atual article { border-color: #dcc08f; }
.stage-head h2 { font-size: 1.32rem; }
.pill { text-transform: uppercase; color: #475972; background: #ecf1f7; }
.stage-atual .pill { background: #f5ebd9; color: #795820; }
.milestone article>strong,.milestone p { color: var(--muted); font-size: .84rem; }
.milestone p { margin-top: 10px; }
.stage-bloqueada .shield { opacity: .44; }
footer { padding: 24px 0 10px; display: flex; gap: 8px 18px; flex-wrap: wrap; justify-content: space-between; font-size: .78rem; color: var(--muted); }
body[data-screen="inicio"] footer { color: #b1bed2; }
@media (min-width: 820px) {
  .home-content { display: grid; grid-template-columns: 1.45fr 1fr; gap: 30px; align-items: center; }
  .home-content .resume { margin: 0; }
  .section { grid-column: 1/-1; }
}
@media (max-width: 800px) {
  .grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .shelf { grid-auto-columns: 26%; }
}
@media (max-width: 600px) {
  main,footer { width: calc(100% - 28px); }
  body[data-screen="inicio"] main { width: 100%; }
  .home-content { padding: 20px 18px 0; }
  .hero-copy { padding: 18px 22px 30px; }
  .hero-copy .eyebrow { margin-top: 36px; font-size: .67rem; }
  .welcome-note { max-width: 29ch; }
  .status { padding: 17px; grid-template-columns: 51px minmax(0,1fr) 24%; gap: 11px; }
  .rank-detail { grid-template-columns: 65px minmax(0,1fr); }
  .rank-copy strong { font-size: 1.4rem; }
  .rank-hint { font-size: .8rem; }
  .round { display: none; }
  .shelf { margin-inline: -16px; padding-inline: 2px; grid-auto-columns: 31.8%; gap: 12px; scrollbar-width: none; }
  .tile { border-radius: 13px; }
  .tile-copy strong { font-size: 1rem; }
  .tile-copy small { font-size: 1.22rem; }
  .shelf .tile-copy strong { font-size: .89rem; }
  .shelf .card-badge { font-size: .63rem; }
  .card-badge { padding: 3px 7px; }
  .grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
  .resume { margin: 16px 0 34px; }
  .resume strong { font-size: 1.17rem; }
  .resume small { font-size: .78rem; }
  .section-head h2 { font-size: 1.48rem; }
  .page-head { margin-top: 14px; }
  .section-head { margin-bottom: 10px; }
  .filter-row { gap: 6px; }
  .search-box { flex: 1; }
  .search-box input { width: 100%; }
  .training-summary { padding: 16px; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
