/* Passe de Batalha (client/pass.js, docs/passe.md): a trilha de 30 dias em faixa rolável, grátis em cima e Premium
   embaixo, o resgate do dia e o painel do Premium. As cores do tier vêm de .t-* (style.css, --tier). */
.window[data-kind="pass"] { width: min(1120px, calc(100vw - 24px)); min-width: 0; }
html.mobile #win .window[data-kind="pass"] { width: 100vw; }
.pass { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.pass-ic { display: inline-flex; vertical-align: middle; }
.pass-top { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.pass-prog { flex: 1 1 260px; min-width: 0; }
.pass-prog-txt { display: flex; gap: 8px; align-items: center; margin-bottom: 6px; }
.pass-prog-txt b { display: block; font: 700 16px/1.1 var(--pixel); color: var(--gold); }
.pass-prog-txt small { color: var(--ink2); }
.pass-bar { height: 10px; background: #0a0614; border-radius: 3px; box-shadow: inset 0 0 0 1px #3a2c66; overflow: hidden; }
.pass-bar i { display: block; height: 100%; background: linear-gradient(#ffe8a0 0 30%, var(--gold) 30% 75%, #c07a10 75%); }
.pass-claim { flex: 0 1 auto; min-height: 44px; padding: 0 16px; }

/* Trilha: cada dia é um cartão com o nó no trilho (linha contínua de um cartão ao outro, dourada até o último resgatado),
   o cabeçalho (baú com aura nos dias 7/14/21/28/30) e as duas linhas de prêmios, Grátis e Premium (dourada). */
.pass-track { position: relative; min-width: 0; max-width: 100%; display: flex; gap: 8px; overflow-x: auto; padding: 4px 4px 12px;
  scroll-snap-type: x proximity; overscroll-behavior-x: contain; align-items: stretch; }
.pass-day { --tier: var(--common); position: relative; flex: 0 0 152px; scroll-snap-align: center; display: flex; flex-direction: column; gap: 6px;
  padding: 0 6px 6px; border-radius: 6px; background: var(--p-mid);
  box-shadow: inset 0 0 0 2px var(--line), inset 0 0 0 3px color-mix(in srgb, var(--tier) 45%, transparent); }
.pass-day.chest { flex-basis: 196px; background: linear-gradient(color-mix(in srgb, var(--tier) 24%, var(--p-mid)), var(--p-mid) 55%);
  box-shadow: inset 0 0 0 2px var(--line), inset 0 0 0 4px color-mix(in srgb, var(--tier) 80%, transparent), 0 0 12px color-mix(in srgb, var(--tier) 35%, transparent); }
.pass-day.final { flex-basis: 236px; box-shadow: inset 0 0 0 2px var(--line), inset 0 0 0 4px var(--tier), 0 0 18px color-mix(in srgb, var(--tier) 55%, transparent); }
.pass-day.today { box-shadow: inset 0 0 0 2px var(--line), inset 0 0 0 4px var(--gold), 0 0 14px #ffd23a66; }
.pass-day.future > :not(.pass-node) { opacity: .62; }
.pass-day.past .pass-tiles { opacity: .6; }

/* trilho: a linha passa por baixo dos cartões e emenda no espaço entre eles */
.pass-node { position: relative; height: 26px; margin: 0 -6px; display: flex; align-items: center; justify-content: center; }
.pass-node::before { content: ''; position: absolute; left: -4px; right: -4px; top: 11px; height: 4px; background: #0a0614; box-shadow: inset 0 0 0 1px #3a2c66; }
.pass-node.done::before { background: linear-gradient(#ffe8a0 0 25%, var(--gold) 25% 75%, #c07a10 75%); box-shadow: none; }
.pass-day:first-child .pass-node::before { left: 50%; } .pass-day:last-child .pass-node::before { right: 50%; }
.pass-dot { position: relative; z-index: 1; min-width: 22px; height: 22px; padding: 0 4px; display: grid; place-items: center; border-radius: 11px;
  font: 700 11px/1 var(--pixel); background: var(--p-light); color: var(--ink2); box-shadow: 0 0 0 2px var(--line), inset 0 0 0 1px #3a2c66; }
.pass-node.done .pass-dot { background: var(--gold); color: #1a1200; box-shadow: 0 0 0 2px var(--line); }
.pass-day.today .pass-dot { background: var(--gold2); color: #1a0800; box-shadow: 0 0 0 2px var(--line), 0 0 10px var(--gold); }

.pass-day-head { display: flex; align-items: center; gap: 6px; min-height: 22px; }
.pass-day-name { display: flex; flex-direction: column; min-width: 0; }
.pass-day-head b { font: 700 13px/1.1 var(--pixel); color: var(--tier); }
.pass-day-head small { font: 700 10px/1.1 var(--pixel); color: var(--ink2); text-transform: uppercase; letter-spacing: .04em; }
.pass-today { margin-left: auto; font: 700 10px/1 var(--pixel); padding: 3px 5px; border-radius: 3px; background: var(--gold); color: #1a1200; }
.pass-chest { position: relative; display: block; width: 48px; height: 48px; flex: none; margin: -4px 0; }
.pass-chest canvas.pass-chest-art { position: relative; z-index: 1; width: 48px; height: 48px; image-rendering: pixelated; }
.pass-day.final .pass-chest { transform: scale(1.15); }

/* as duas linhas de prêmios */
.pass-row { flex: 1 0 auto; display: flex; flex-direction: column; gap: 5px; padding: 5px; border-radius: 4px; background: var(--p-light); min-height: 76px; }
.pass-row.prem { background: linear-gradient(#3a2408, #1c1206 80%); box-shadow: inset 0 0 0 1px #8a6418; }
.pass-row-tag { display: flex; align-items: center; justify-content: space-between; min-height: 14px; }
.pass-row-tag span { font: 700 9.5px/1 var(--pixel); text-transform: uppercase; letter-spacing: .05em; color: var(--ink2); }
.pass-row.prem .pass-row-tag span { color: var(--gold); }
.pass-mark { font: 700 12px/1 var(--pixel); font-style: normal; }
.pass-row.got .pass-mark { color: var(--hp); } .pass-row.missed .pass-mark { color: var(--red); } .pass-row.locked .pass-mark { font-size: 11px; }
.pass-row.now { box-shadow: inset 0 0 0 2px var(--gold); }
.pass-row.prem.now { box-shadow: inset 0 0 0 2px var(--gold), 0 0 10px #ffd23a55; }
.pass-row.locked .pass-tiles { filter: saturate(.35) brightness(.75); }

.pass-tiles { display: flex; flex-wrap: wrap; gap: 4px; }
.pass-tile { position: relative; width: 44px; height: 44px; padding: 0; display: grid; place-items: center; cursor: help;
  border: 0; border-radius: 4px; background: #0a0614; box-shadow: inset 0 0 0 1px #3a2c66; color: inherit; }
.pass-row.prem .pass-tile { background: #150c04; box-shadow: inset 0 0 0 1px #6a4a12; }
.pass-tile:hover, .pass-tile:focus-visible { outline: 2px solid var(--gold); outline-offset: 0; }
.pass-tile > canvas, .pass-tile > .shop-mini { width: 32px !important; height: 32px !important; image-rendering: pixelated; }
.pass-helmet { display: grid; place-items: center; width: 32px; height: 32px; }
.pass-helmet svg { width: 32px; height: 32px; }
.pass-qty { position: absolute; right: 1px; bottom: 1px; padding: 1px 3px; border-radius: 3px; font: 700 10px/1.1 var(--pixel);
  background: #0a0614e6; color: #fff; text-shadow: var(--outline); white-space: nowrap; }
.pass-row.prem .pass-qty { color: var(--gold); }

/* dica do prêmio: nome, situação e para que serve */
.pass { position: relative; }
.pass-tip { position: absolute; z-index: 5; max-width: 240px; display: flex; flex-direction: column; gap: 2px; padding: 7px 9px; border-radius: 5px;
  background: #0a0614f2; box-shadow: 0 0 0 2px #3a2c66, 0 6px 16px #000a; font-size: 12px; line-height: 1.35; pointer-events: none; }
.pass-tip b { font: 700 12.5px/1.2 var(--pixel); color: var(--gold); }
.pass-tip em { font-style: normal; font-size: 11px; color: var(--ink2); }

.pass-prem { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; padding: 10px 12px; border-radius: 6px;
  background: linear-gradient(90deg, #3a2408, #1e1638 70%); box-shadow: inset 0 0 0 2px var(--line), inset 0 0 0 3px #8a6418; }
.pass-prem > div:first-child { flex: 1 1 240px; display: flex; flex-direction: column; gap: 2px; }
.pass-prem b { font: 700 15px/1.2 var(--pixel); color: var(--gold); }
.pass-prem small { color: var(--ink2); }
.pass-perks { flex: 1 1 260px; margin: 0; padding-left: 18px; font-size: 12px; }
.pass-buy { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.pass-buy > small { color: var(--ink2); }
.pass-prem .pass-note { flex-basis: 100%; }
.pass-note { margin: 0; font-size: 11.5px; color: var(--ink2); }
.pass-rules summary { cursor: pointer; font-family: var(--pixel); color: var(--gold); min-height: 28px; display: flex; align-items: center; }
.pass-rules ul { margin: 4px 0 0; padding-left: 18px; font-size: 12px; }

@media (max-width: 700px) {
  .pass-claim { width: 100%; }
  .pass-day { flex-basis: 148px; }
  .pass-day.chest { flex-basis: 172px; }
  .pass-day.final { flex-basis: 196px; }
  .pass-tile { width: 42px; height: 42px; }
  .pass-buy { width: 100%; }
}

/* Recompensa diária (client/main.js dailyContent): trilha, 7 dias com os quadradinhos do Passe e o Dia 7 com o baú */
.pass-tipbox { position: relative; }
.dl-track { position: relative; height: 22px; margin: 6px 14px 12px; }
.dl-track::before, .dl-track > i { content: ''; position: absolute; left: 0; top: 10px; height: 3px; border-radius: 2px; }
.dl-track::before { right: 0; background: #2a2046; } .dl-track > i { background: var(--hp, #5ad06a); }
.dl-dot { position: absolute; top: 0; width: 22px; height: 22px; margin-left: -11px; display: grid; place-items: center; border-radius: 50%;
  background: #120c22; box-shadow: inset 0 0 0 2px #3a2c66; font: 700 11px/1 var(--pixel); color: var(--ink2); }
.dl-dot.done { background: var(--hp, #5ad06a); box-shadow: inset 0 0 0 2px #1e6a2a; color: #0a2a10; }
.dl-dot.today { background: var(--gold); box-shadow: inset 0 0 0 2px #a8700c, 0 0 10px #ffd23a88; color: #1a1200; }
.dl-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)) minmax(0, 1.7fr); gap: 6px; align-items: stretch; }
.dl-day { display: flex; flex-direction: column; gap: 6px; padding: 7px; border-radius: 6px; background: linear-gradient(#221840, #170f2c); box-shadow: inset 0 0 0 2px #3a2c66; min-width: 0; }
.dl-day.done { opacity: .72; } .dl-day.done .dl-tiles { filter: saturate(.6); }
.dl-day.today { box-shadow: inset 0 0 0 2px var(--gold), 0 0 12px #ffd23a55; background: linear-gradient(#3a2a10, #1e1430); }
.dl-day.big { box-shadow: inset 0 0 0 2px var(--legendary, #ff3d8b); background: linear-gradient(#3a1030, #170f2c); align-items: center; }
.dl-day.big.today { box-shadow: inset 0 0 0 2px var(--gold), 0 0 14px #ff3d8b66; }
.dl-head { display: flex; align-items: center; justify-content: space-between; gap: 4px; width: 100%; }
.dl-head b { font: 700 12px/1 var(--pixel); color: #fff; }
.dl-mark { font-style: normal; font: 700 12px/1 var(--pixel); color: var(--hp, #5ad06a); }
.dl-now { font-style: normal; font: 700 9px/1 var(--pixel); color: #1a1200; background: var(--gold); padding: 2px 4px; border-radius: 3px; }
.dl-tiles { justify-content: center; }
.dl-day.big .pass-chest { display: grid; place-items: center; position: relative; }
@media (max-width: 700px) {
  .dl-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dl-day.big { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; justify-content: center; }
  .dl-day.big .dl-head { flex-basis: 100%; }
}

/* Premium atrasado (dia já resgatado no grátis, Premium ativo): sai no próximo resgate */
.pass-row.prem.late { box-shadow: inset 0 0 0 2px var(--gold); background-image: repeating-linear-gradient(135deg, #ffd23a14 0 6px, transparent 6px 12px); }
.pass-row.late .pass-mark { color: var(--gold); }
