/* ===========================================================================
   Pack Point TCG — Folha de estilo principal
   Paleta extraída do flyer · flat · sem gradientes
   =========================================================================== */

:root {
  --ink:        #1b112c;   /* indigo profundo (títulos/texto) */
  --ink-2:      #574d6b;   /* texto secundário */
  --ink-3:      #8b8398;   /* legendas */
  --paper:      #f7f3ee;   /* fundo creme */
  --surface:    #fffdf9;   /* cartões */
  --accent:     #de4a3c;   /* vermelho do logo */
  --accent-dk:  #bb3829;   /* hover */
  --line:       #e6ddd0;   /* hairline sobre creme */
  --line-soft:  #efe8dc;
  --gold:       #d6a72e;
  --radius:     14px;
  --shadow:     0 1px 0 rgba(27,17,44,.04), 0 12px 30px -18px rgba(27,17,44,.25);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}

.container { width: min(1120px, 92vw); margin-inline: auto; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dk); }

h1, h2, h3 { line-height: 1.02; margin: 0; }

.display {
  font-family: 'Inter', 'Inter', sans-serif;
  font-weight: 400;
  letter-spacing: .01em;
  
}

.eyebrow {
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .18em;
  
  color: var(--accent);
  margin: 0 0 .6rem;
  letter-spacing: 0;
}

/* --- Header ------------------------------------------------------------- */
.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  position: sticky; top: 0; z-index: 50;
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.brand { display: flex; align-items: center; gap: .6rem; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand__mark { width: 30px; height: 35px; color: var(--ink); }
.brand__name {
  font-family: 'Inter', sans-serif; font-size: 1.32rem; line-height: 1;
   letter-spacing: .02em;
}
.brand__tcg {
  display: inline-block; margin-left: .35rem; font-size: .62rem;
  color: var(--accent); vertical-align: middle; letter-spacing: .14em;
}
.site-nav { display: flex; align-items: center; gap: 1.6rem; }
.site-nav a {
  color: var(--ink); font-weight: 600; font-size: .92rem;
  letter-spacing: .01em;
}
.site-nav a:hover { color: var(--accent); }
.site-nav__admin {
  border: 1.5px solid var(--ink); border-radius: 999px;
  padding: .35rem .9rem; font-size: .82rem !important;
}
.site-nav__admin:hover { background: var(--ink); color: var(--paper); }

@media (max-width: 640px) {
  .site-nav { gap: 1rem; }
  .site-nav a:not(.site-nav__admin) { display: none; }
}

/* --- Flash -------------------------------------------------------------- */
.flash {
  margin: 1rem 0; padding: .85rem 1.1rem; border-radius: 10px;
  border: 1px solid var(--line); background: var(--surface);
  font-weight: 600; font-size: .92rem;
}
.flash--success { border-color: #bfe3c7; background: #eef8f0; color: #1d6b39; }
.flash--error   { border-color: #f0c6c0; background: #fdeeec; color: #a32f22; }
.flash--info    { border-color: var(--line); }

/* --- Hero --------------------------------------------------------------- */
.hero { padding: 4.5rem 0 2.5rem; position: relative; overflow: hidden; }
.hero__inner { position: relative; z-index: 2; }
.hero h1 {
  font-family: 'Inter';
  font-size: 4rem;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 300;
  margin: .2rem 0 1rem;
}
.hero h1 span { color: var(--accent); }
.hero p.lead {
  font-size: 1.12rem; color: var(--ink-2); max-width: 48ch; margin: 0 0 1.8rem;
}
.hero__compass {
  position: absolute; right: -120px; top: -60px; width: 460px; height: 460px;
  color: var(--ink); opacity: .05; z-index: 1; pointer-events: none;
}
@media (max-width: 820px) { .hero__compass { display: none; } }

/* --- Buttons ------------------------------------------------------------ */
.btn-pp {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: 'Inter', sans-serif; font-weight: 700; font-size: .95rem;
  padding: .8rem 1.5rem; border-radius: 999px; border: 1.5px solid var(--ink);
  background: var(--ink); color: var(--paper); cursor: pointer;
  transition: transform .12s ease, background .15s ease;
}
.btn-pp:hover { background: var(--accent); border-color: var(--accent); color: #fff; transform: translateY(-1px); }
.btn-pp--ghost { background: transparent; color: var(--ink); }
.btn-pp--ghost:hover { background: var(--ink); color: var(--paper); }
.btn-pp--accent { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-pp--accent:hover { background: var(--accent-dk); border-color: var(--accent-dk); }
.btn-pp:disabled { opacity: .5; cursor: not-allowed; transform: none; }

/* --- Section scaffolding ------------------------------------------------ */
.section { padding: 3rem 0; }
.section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.6rem; }
.section__head h2 { font-family: 'Inter', sans-serif; font-size: clamp(1.8rem, 4vw, 2.6rem);  }
.rule { height: 1px; background: var(--line); border: 0; margin: 0; }
.no-opp {
  background: transparent; border: none; color: var(--accent); cursor: pointer;
   border-radius: 999px; font-size: .95rem; padding:0;
}
/* --- Calendar + registration layout ------------------------------------ */
.book {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 0;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); overflow: hidden; box-shadow: var(--shadow);
}
.book__cal { padding: 1.6rem; border-right: 1px solid var(--line); }
.book__side { padding: 1.6rem; background: var(--surface); }
@media (max-width: 860px) {
  .book { grid-template-columns: 1fr; }
  .book__cal { border-right: 0; border-bottom: 1px solid var(--line); }
}

/* Calendar grid */
.cal__nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.cal__title { font-family: 'Inter', sans-serif; font-size: 1.25rem;  letter-spacing: .03em; }
.cal__btn {
  width: 36px; height: 36px; border-radius: 9px; border: 1px solid var(--line);
  background: var(--paper); color: var(--ink); font-size: 1.1rem; cursor: pointer;
  display: grid; place-items: center;
}
.cal__btn:hover { border-color: var(--ink); }
.cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal__dow {
  text-align: center; font-size: .7rem; font-weight: 700; color: var(--ink-3);
   letter-spacing: .08em; padding-bottom: .4rem;
}
.cal__day {
  position: relative; aspect-ratio: 1 / 1; border: 1px solid transparent;
  border-radius: 10px; display: grid; place-items: center;
  font-weight: 600; font-size: .92rem; color: var(--ink); cursor: default;
}
.cal__day.is-muted { color: var(--ink-3); opacity: .45; }
.cal__day.is-today { border-color: var(--line); }
.cal__day.has-event { cursor: pointer; background: var(--paper); border-color: var(--line); }
.cal__day.has-event:hover { border-color: var(--accent); }
.cal__day.has-event::after {
  content: ""; position: absolute; bottom: 7px; left: 50%; transform: translateX(-50%);
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
}
.cal__day.is-selected { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.cal__day.is-selected::after { background: var(--paper); }
.cal__legend { display: flex; align-items: center; gap: .5rem; margin-top: 1rem; font-size: .78rem; color: var(--ink-3); }
.cal__legend .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }

/* Side: selected-day events + form */
.pick__empty { color: var(--ink-3); font-size: .95rem; padding: 2rem 0; text-align: center; }
.pick__title { font-family: 'Inter', sans-serif;  font-size: 1.1rem; letter-spacing: .03em; margin-bottom: .8rem; }
.evt {
  border: 1px solid var(--line); border-radius: 11px; padding: .9rem 1rem;
  margin-bottom: .7rem; cursor: pointer; transition: border-color .12s ease, background .12s ease;
}
.evt:hover { border-color: var(--ink); }
.evt.is-active { border-color: var(--accent); background: #fdf1ef; }
.evt__top { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.evt__name { font-weight: 700; }
.evt__game { display: inline-flex; align-items: center; gap: .4rem; font-size: .78rem; color: var(--ink-2); font-weight: 600; }
.evt__game .gdot { width: 9px; height: 9px; border-radius: 50%; }
.evt__logo { border-radius: 400px; height: 20px; width: auto; max-width: 70px; object-fit: contain; }
.evt__meta { font-size: .82rem; color: var(--ink-3); margin-top: .35rem; display: flex; gap: 1rem; flex-wrap: wrap; }
.evt__full { color: var(--accent); font-weight: 700; }

/* Form fields */
.field { margin-bottom: .9rem; }
.field label { display: block; font-size: .8rem; font-weight: 700; letter-spacing: .02em; margin-bottom: .35rem; color: var(--ink-2); }
.field input {
  width: 100%; padding: .72rem .9rem; border-radius: 10px; border: 1px solid var(--line);
  background: var(--paper); font-family: inherit; font-size: .95rem; color: var(--ink);
}
.field input:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: .78rem; color: var(--ink-3); margin-top: .6rem; }
.form-msg { margin-top: .8rem; font-weight: 600; font-size: .9rem; }
.form-msg.ok { color: #1d6b39; }
.form-msg.err { color: var(--accent-dk); }

/* --- Tournament cards --------------------------------------------------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.1rem; }
.tcard {
  display: flex; flex-direction: column; border: 1px solid var(--line);
  border-radius: var(--radius); background: var(--surface); overflow: hidden;
  transition: transform .12s ease, box-shadow .15s ease;
}
.tcard:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.tcard__bar { height: 6px; background: var(--accent); }
.tcard__body { padding: 1.3rem; display: flex; flex-direction: column; gap: .55rem; flex: 1; }
.tcard__game { display: inline-flex; align-items: center; gap: .5rem; font-size: .76rem; font-weight: 700; letter-spacing: .04em;  color: var(--ink-2); }
.tcard__game .gdot { width: 9px; height: 9px; border-radius: 50%; }
.tcard__logo { border-radius: 300px; height: 30px; width: auto; max-width: 110px; object-fit: contain; }
.tcard__game-name { line-height: 1; }
.tcard__name { font-family: 'Inter', sans-serif; font-size: 1.5rem;  line-height: 1; color: var(--ink); letter-spacing: .01em; }
.tcard__meta { font-size: .88rem; color: var(--ink-2); display: flex; flex-direction: column; gap: .25rem; }
.tcard__meta b { color: var(--ink); }
.tcard__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; padding-top: .6rem; }
.spots { font-size: .82rem; font-weight: 700; color: var(--ink-2); }
.spots .num { color: var(--accent); }

.badge-st { font-size: .72rem; font-weight: 700; letter-spacing: .04em;  padding: .2rem .6rem; border-radius: 999px; border: 1px solid var(--line); }
.badge-st.open { color: #1d6b39; border-color: #bfe3c7; background: #eef8f0; }
.badge-st.closed { color: var(--ink-2); }
.badge-st.live { color: #fff; background: var(--accent); border-color: var(--accent); }
.badge-st.finished { color: var(--ink-3); }

/* --- Tournament detail page -------------------------------------------- */
.tdetail { padding: 3rem 0; }
.tdetail__head { display: flex; flex-direction: column; gap: .6rem; margin-bottom: 2rem; }
.tdetail h1 { font-family: 'Inter', sans-serif; font-size: clamp(2.4rem, 6vw, 4.2rem);  line-height: .98; }
.tgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.tgrid__cell { padding: 1.1rem 1.2rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.tgrid__cell h4 { font-size: .72rem; letter-spacing: .12em;  color: var(--ink-3); margin: 0 0 .35rem; font-weight: 700; }
.tgrid__cell .v { font-weight: 700; font-size: 1.05rem; }
.tgrid__cell .v.big { font-family: 'Inter', sans-serif; font-size: 1.5rem;  }
.prizes-list { white-space: pre-line; font-weight: 600; }

/* --- TV / Bracket page -------------------------------------------------- */
body.tv { background: var(--ink); color: var(--paper); }
.tv-wrap { min-height: 100vh; display: flex; flex-direction: column; }
.tv-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.6rem 2.4rem; border-bottom: 1px solid rgba(255,255,255,.1);
}
.tv-head .brand__mark { color: var(--paper); width: 34px; height: 40px; }
.tv-head__title { display: flex; align-items: center; gap: 1rem; }
.tv-head h1 { font-family: 'Inter', sans-serif; font-size: clamp(1.6rem, 3.4vw, 2.8rem);  letter-spacing: .01em; }
.tv-head__game { display: inline-flex; align-items: center; gap: .5rem; font-weight: 700; letter-spacing: .06em;  font-size: .82rem; color: #cfc8d8; }
.tv-head__game .gdot { width: 12px; height: 12px; border-radius: 50%; }
.tv-head__logo { height: 34px; width: auto; max-width: 130px; object-fit: contain; }
.tv-clock { font-family: 'Inter', sans-serif; font-size: 1.6rem; letter-spacing: .06em; color: var(--accent); }

.bracket { flex: 1; display: flex; gap: 3.5rem; padding: 2.4rem; overflow-x: auto; align-items: stretch; }
.round { display: flex; flex-direction: column; justify-content: space-around; min-width: 250px; }
.round__label { font-family: 'Inter', sans-serif;  font-size: 1rem; letter-spacing: .1em; color: #b7afc6; margin-bottom: 1.2rem; text-align: center; }
.match {
  border: 1px solid rgba(255,255,255,.14); border-radius: 12px;
  background: rgba(255,255,255,.03); margin: .8rem 0; overflow: hidden;
}
.slot {
  display: flex; align-items: center; justify-content: space-between;
  padding: .7rem 1rem; font-weight: 600; font-size: 1.02rem;
}
.slot + .slot { border-top: 1px solid rgba(255,255,255,.1); }
.slot__seed { display: inline-block; min-width: 1.4rem; color: #8d85a0; font-size: .8rem; font-weight: 700; }
.slot__name { flex: 1; }
.slot__score { font-family: 'Inter', sans-serif; font-size: 1.05rem; color: #cfc8d8; min-width: 1.4rem; text-align: right; }
.slot.is-winner { background: rgba(222,74,60,.16); }
.slot.is-winner .slot__name { color: #fff; }
.slot.is-winner .slot__score { color: var(--accent); }
.slot.is-loser { color: #7f7791; }
.slot.is-tbd { color: #6d6580; font-style: italic; }

.champion {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: 250px; text-align: center; gap: .6rem;
}
.champion__crown { color: var(--gold); font-size: 2.4rem; line-height: 1; }
.champion__label { font-size: .8rem; letter-spacing: .16em;  color: #b7afc6; font-weight: 700; }
.champion__name { font-family: 'Inter', sans-serif; font-size: clamp(1.8rem, 3vw, 2.8rem);  color: #fff; }
.champion__name.tbd { color: #6d6580; }

.tv-foot { padding: 1rem 2.4rem; border-top: 1px solid rgba(255,255,255,.1); display: flex; justify-content: space-between; font-size: .82rem; color: #8d85a0; }

/* --- Footer ------------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--line); padding: 2.4rem 0; margin-top: 3rem; }
.site-footer .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.site-footer__brand { display: flex; align-items: center; gap: .6rem; font-weight: 700; }
.site-footer__brand .brand__mark { width: 24px; height: 28px; color: var(--ink); }
.site-footer__note { color: var(--ink-3); font-size: .86rem; margin: 0; }

/* --- Utilities ---------------------------------------------------------- */
.muted { color: var(--ink-3); }
.mt-2 { margin-top: .8rem; } .mt-3 { margin-top: 1.2rem; } .mt-4 { margin-top: 1.8rem; }
.center { text-align: center; }

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}

/* --- Game logos & filtro ------------------------------------------------ */
.game-badge { display: inline-flex; align-items: center; gap: .4rem; }
.game-badge__img { height: 22px; width: auto; max-width: 80px; object-fit: contain; }
.game-logo { height: 40px; width: auto; max-width: 160px; object-fit: contain; }
.tdetail__logo { border-radius: 400px; height: 44px; width: auto; max-width: 160px; object-fit: contain; vertical-align: middle; margin-right: .2rem; }

.game-filter { display: flex; flex-wrap: wrap; gap: .55rem; margin-bottom: 1.6rem; }
.gf-pill {
  display: inline-flex; align-items: center; gap: .45rem;
  font-family: 'Inter', sans-serif; font-weight: 700; font-size: .82rem;
  letter-spacing: .02em; padding: .5rem .95rem; border-radius: 999px;
  border: 1.5px solid var(--line); background: var(--surface); color: var(--ink-2);
  cursor: pointer; transition: border-color .12s ease, color .12s ease, background .12s ease;
}
.gf-pill:hover { border-color: var(--ink); color: var(--ink); }
.gf-pill.is-active { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.gf-pill .gdot { width: 9px; height: 9px; border-radius: 50%; }

.gf-pill__img { height: 18px; width: auto; max-width: 50px; object-fit: contain; }

/* --- Hero background slider -------------------------------------------- */
.hero--slider {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.hero--slider .hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: .5;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  transform: scale(1);
  transition: opacity .7s ease, background-image .7s ease;
  filter: saturate(1.15) grayscale(1) contrast(1.08);
  pointer-events: none;
}

.hero--slider::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(circle at 50% 35%, rgba(255,255,255,.12), transparent 46%), linear-gradient(180deg, rgba(247,243,238,.45), rgba(247,243,238,.9));
  pointer-events: none;
}

.hero--slider .hero__inner {
  position: relative;
  z-index: 2;
}
