/* =========================================================
   Casa do Quebra-cabeça — estilos
   ========================================================= */
:root {
  --paper: #FFF8EC;
  --paper-2: #FBEFD9;
  --card: #FFFFFF;
  --ink: #1B1B3A;
  --muted: #5A5A78;
  --red: #E8262D;
  --red-ink: #D61F26;   /* vermelho com contraste AA para texto branco */
  --yellow: #FFD21F;
  --green: #2BA84A;
  --green-ink: #1B7A35; /* verde com contraste AA para texto branco */
  --blue: #2D3A9A;
  --line: 2px solid var(--ink);
  --shadow: 6px 6px 0 var(--ink);
  --shadow-sm: 4px 4px 0 var(--ink);
  --radius: 22px;
  --font-head: 'Fredoka', 'Trebuchet MS', system-ui, sans-serif;
  --font-body: 'Nunito Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --header-h: 72px;
  --piece: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-10 -10 170 170'%3E%3Cpath d='M 22 22 L 56 22 C 62 22, 65 18, 61 12 C 56 4, 62 -7, 72 -7 C 82 -7, 88 4, 83 12 C 79 18, 82 22, 88 22 L 122 22 L 122 56 C 122 62, 118 65, 112 61 C 104 56, 93 62, 93 72 C 93 82, 104 88, 112 83 C 118 79, 122 82, 122 88 L 122 122 L 88 122 C 82 122, 79 126, 83 132 C 88 140, 82 151, 72 151 C 62 151, 56 140, 61 132 C 65 126, 62 122, 56 122 L 22 122 L 22 88 C 22 82, 26 79, 32 83 C 40 88, 51 82, 51 72 C 51 62, 40 56, 32 61 C 26 65, 22 62, 22 56 L 22 22 Z'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: hidden; overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  background-image: radial-gradient(rgba(27, 27, 58, .07) 1px, transparent 1.2px);
  background-size: 22px 22px;
  overflow-x: hidden;
  overflow-x: clip;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.01em; text-wrap: balance; }
p { margin: 0 0 1em; text-wrap: pretty; }
button { font: inherit; color: inherit; }

.container { width: min(1160px, 100% - 40px); margin-inline: auto; }
@media (max-width: 560px) { .container, .container-narrow { width: calc(100% - 32px); } body { font-size: 1rem; } }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
.site-footer :focus-visible, .closing-shop :focus-visible { outline-color: var(--yellow); }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .85em 1.4em; border-radius: 999px; border: var(--line);
  font-family: var(--font-head); font-weight: 600; font-size: 1.02rem; text-decoration: none;
  cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  box-shadow: var(--shadow-sm); background: var(--card); line-height: 1.2; text-align: center; min-height: 48px;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.btn-primary { background: var(--red-ink); color: #fff; }
.btn-ghost { background: var(--card); }
.btn-light { background: var(--yellow); }
.btn-small { padding: .5em 1em; font-size: .95rem; min-height: 44px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.eyebrow { font-family: var(--font-head); font-weight: 600; text-transform: uppercase; letter-spacing: .14em; font-size: .82rem; color: var(--red-ink); margin-bottom: .8em; }

.tag {
  display: inline-block; font-family: var(--font-head); font-weight: 600; font-size: .78rem;
  text-transform: uppercase; letter-spacing: .08em; padding: .3em .8em; border-radius: 999px;
  border: 2px solid var(--ink); margin: 0 6px 8px 0;
}
.tag-blue { background: var(--blue); color: #fff; }
.tag-red { background: var(--red-ink); color: #fff; }
.tag-green { background: var(--green-ink); color: #fff; }
.tag-yellow { background: var(--yellow); }

/* ---------- Cabeçalho ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; height: var(--header-h); z-index: 50;
  transition: background .25s ease, box-shadow .25s ease;
}
/* O fundo desfocado fica num pseudo-elemento: backdrop-filter no próprio cabeçalho
   prenderia o menu mobile (position: fixed) dentro dos 72 px dele. */
.site-header::before { content: ""; position: absolute; inset: 0; z-index: -1; transition: background .25s ease; }
.site-header.is-scrolled, body.nav-open .site-header { box-shadow: 0 2px 0 rgba(27, 27, 58, .08); }
.site-header.is-scrolled::before, body.nav-open .site-header::before {
  background: rgba(255, 248, 236, .92);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
}
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 44px; height: auto; transition: transform .5s ease; }
.brand:hover img { transform: rotate(-20deg) scale(1.05); }
.brand-text { font-family: var(--font-head); font-size: 1.05rem; line-height: 1.05; font-weight: 500; }
.brand-text strong { display: block; font-weight: 700; font-size: 1.15rem; }

.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a {
  text-decoration: none; font-family: var(--font-head); font-weight: 500; font-size: .98rem;
  padding: .45em .8em; border-radius: 999px; transition: background .2s;
}
.site-nav a:hover, .site-nav a.is-active { background: rgba(27, 27, 58, .08); }
.site-nav a[aria-current="page"]:not(.nav-cta) { background: rgba(27, 27, 58, .08); }
.site-nav .nav-cta[aria-current="page"] { background: var(--blue); }
.site-nav .nav-cta { background: var(--ink); color: #fff; margin-left: 6px; }
.site-nav .nav-cta:hover, .site-nav .nav-cta.is-active { background: var(--blue); }

.nav-toggle { display: none; width: 48px; height: 48px; border: var(--line); border-radius: 14px; background: var(--card); cursor: pointer; position: relative; box-shadow: 3px 3px 0 var(--ink); }
.nav-toggle span { position: absolute; left: 11px; right: 11px; height: 2.5px; background: var(--ink); border-radius: 2px; transition: transform .3s, opacity .2s; }
.nav-toggle span:nth-child(1) { top: 14px; }
.nav-toggle span:nth-child(2) { top: 20.5px; }
.nav-toggle span:nth-child(3) { top: 27px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

@media (max-width: 1020px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0;
    flex-direction: column; align-items: stretch; gap: 6px; padding: 24px 20px;
    background: var(--paper); transform: translateY(-12px); opacity: 0; visibility: hidden;
    transition: opacity .25s ease, transform .25s ease, visibility .25s;
    overflow-y: auto;
  }
  body.nav-open { overflow: hidden; }
  body.nav-open .site-nav { transform: none; opacity: 1; visibility: visible; }
  .site-nav a { font-size: 1.3rem; padding: .55em 1em; border-radius: 16px; min-height: 52px; display: flex; align-items: center; }
  .site-nav .nav-cta { justify-content: center; }
  .site-nav .nav-cta { margin: 10px 0 0; text-align: center; }
}

/* ---------- HERO ---------- */
.hero {
  position: relative; min-height: min(100svh, 760px); display: flex; align-items: center;
  padding: calc(var(--header-h) + 24px) 0 40px; overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; position: relative; z-index: 2; }
.hero h1 { font-size: clamp(2.5rem, 5.6vw, 4.6rem); font-weight: 700; margin-bottom: .35em; }
.hl { position: relative; white-space: nowrap; z-index: 0; }
.hl::after {
  content: ""; position: absolute; left: -4px; right: -4px; bottom: .06em; height: .36em;
  background: var(--yellow); z-index: -1; border-radius: 6px; transform: scaleX(0); transform-origin: left;
  animation: underline .8s cubic-bezier(.6, 0, .2, 1) 1.6s forwards;
}
@keyframes underline { to { transform: scaleX(1); } }
.lead { font-size: 1.18rem; color: var(--muted); max-width: 36em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }

.hero-copy > * { opacity: 0; transform: translateY(18px); animation: rise .7s cubic-bezier(.2, .8, .2, 1) forwards; }
.hero-copy > :nth-child(1) { animation-delay: 1.15s; }
.hero-copy > :nth-child(2) { animation-delay: 1.25s; }
.hero-copy > :nth-child(3) { animation-delay: 1.4s; }
.hero-copy > :nth-child(4) { animation-delay: 1.55s; }
@keyframes rise { to { opacity: 1; transform: none; } }

.hero-art { position: relative; display: flex; flex-direction: column; align-items: center; }
.hero-logo { width: min(520px, 100%); height: auto; overflow: visible; cursor: pointer; filter: drop-shadow(0 18px 30px rgba(27, 27, 58, .18)); }
.hero-logo:focus-visible { outline-offset: -10px; border-radius: 50%; }
.hero-hint { font-family: var(--font-head); font-size: .9rem; color: var(--muted); margin-top: 6px; opacity: 0; animation: rise .6s ease 3s forwards; }

.hero-piece { transform-box: fill-box; transform-origin: center; transition: transform .3s ease; }
.hero-piece:hover { transform: scale(1.05); }
.hero-piece-inner {
  transform-box: fill-box; transform-origin: center;
  transform: translate(var(--fx), var(--fy)) rotate(var(--fr)) scale(.9);
  opacity: 0;
  transition: transform 1.05s cubic-bezier(.22, 1.3, .36, 1) var(--delay), opacity .35s ease var(--delay);
}
.hero-logo.is-built .hero-piece-inner { transform: none; opacity: 1; }
.hero-logo.is-scatter .hero-piece-inner { transition-duration: .6s, .4s; transition-delay: 0s, .2s; transition-timing-function: cubic-bezier(.6, 0, .8, .4), ease; }
.hp-stroke { fill: none; stroke: var(--ink); stroke-width: 5; stroke-linejoin: round; }
.hp-shine { pointer-events: none; }

.hero-ring { opacity: 0; transition: opacity .6s ease 1.25s; }
.hero-logo.is-built .hero-ring { opacity: 1; }
.hero-logo.is-scatter .hero-ring { opacity: 0; transition-delay: 0s; }
.ring-line { fill: #fff; stroke: var(--ink); stroke-width: 7; stroke-dasharray: 1182; stroke-dashoffset: 1182; transition: stroke-dashoffset 1.1s ease 1.2s; }
.hero-logo.is-built .ring-line { stroke-dashoffset: 0; }
.ring-text { font-family: 'Fredoka', sans-serif; font-weight: 700; font-size: 33px; letter-spacing: 1.5px; fill: var(--ink); }
.ring-brasil { font-size: 30px; letter-spacing: 3px; }

.floaters { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.floater {
  position: absolute; opacity: .16; height: auto;
  transform: translate(calc(var(--px, 0px) * var(--depth)), calc(var(--py, 0px) * var(--depth))) rotate(var(--rot));
  transition: transform .4s ease-out;
}
.floater path { animation: drift var(--dur) ease-in-out var(--delay) infinite alternate; transform-box: fill-box; transform-origin: center; }
@keyframes drift {
  0% { transform: translate(0, 0) rotate(0); }
  100% { transform: translate(18px, -30px) rotate(40deg); }
}

.scroll-cue { position: absolute; left: 50%; bottom: 22px; translate: -50% 0; width: 28px; height: 44px; border: var(--line); border-radius: 20px; z-index: 2; opacity: .7; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--ink); animation: cue 1.8s ease infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

@media (max-width: 860px) {
  .hero { min-height: auto; padding: calc(var(--header-h) + 8px) 0 40px; }
  .hero-grid { grid-template-columns: 1fr; gap: 4px; }
  .hero-art { order: -1; }
  .hero-logo { width: min(250px, 64vw); }
  .hero-hint { display: none; }
  .hero h1 { font-size: clamp(2.1rem, 8.6vw, 3rem); }
  .lead { font-size: 1.05rem; }
  .hero-actions { margin-top: 20px; }
  .hero-copy { text-align: center; }
  .lead { margin-inline: auto; }
  .hero .hero-actions { justify-content: center; }
  .scroll-cue { display: none; }
}

/* ---------- Seções ---------- */
.section { padding: clamp(52px, 7vw, 96px) 0; position: relative; }
.section-head { max-width: 680px; margin-bottom: 28px; }
.section-head p { color: var(--muted); font-size: 1.08rem; margin: 0; }
.section-title { font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 700; display: flex; align-items: center; gap: 12px; margin-bottom: .3em; }
.section-title > span, .section-title { text-wrap: balance; }
@media (max-width: 560px) { .section-head { margin-bottom: 20px; } .section-head p { font-size: 1rem; } }
.piece-icon { width: 1.05em; height: 1.05em; flex: none; transition: transform .6s cubic-bezier(.2, 1.4, .4, 1); }
.section-title:hover .piece-icon { transform: rotate(90deg); }

/* Peças que encaixam ao rolar */
.js [data-snap] {
  opacity: 0;
  transform: translate(var(--sx, 0), var(--sy, 30px)) rotate(var(--sr, 0));
  transition: opacity .6s ease, transform .9s cubic-bezier(.2, 1.25, .35, 1);
}
.js [data-snap].is-in { opacity: 1; transform: none; }
.stats [data-snap]:nth-child(2), .event-list [data-snap]:nth-child(2), .gallery [data-snap]:nth-child(2) { transition-delay: .1s; }
.stats [data-snap]:nth-child(3), .gallery [data-snap]:nth-child(3) { transition-delay: .2s; }
.stats [data-snap]:nth-child(4), .gallery [data-snap]:nth-child(4) { transition-delay: .3s; }

/* ---------- Sobre ---------- */
.about { background: var(--card); border-block: var(--line); }
.about-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 60px; align-items: center; }
.about-text p { font-size: 1.1rem; }
.motto {
  margin: 28px 0 0; padding: 22px 26px; background: var(--paper); border: var(--line); border-radius: var(--radius);
  font-family: var(--font-head); font-size: 1.28rem; font-weight: 500; line-height: 1.4; box-shadow: var(--shadow-sm);
  position: relative;
}
.motto span { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .14em; color: var(--red-ink); font-weight: 600; margin-bottom: 6px; }
.stats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.stat {
  border: var(--line); border-radius: var(--radius); padding: 24px 22px; box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 4px; min-height: 150px; justify-content: flex-end; position: relative; overflow: hidden;
}
.stat::before {
  content: ""; position: absolute; right: -16px; top: -16px; width: 76px; height: 76px;
  background: rgba(255, 255, 255, .28); -webkit-mask: var(--piece) center / contain no-repeat; mask: var(--piece) center / contain no-repeat;
  transition: transform .6s cubic-bezier(.2, 1.4, .4, 1);
}
.stat:hover::before { transform: rotate(90deg) scale(1.1); }
.stat strong { font-family: var(--font-head); font-size: 2.7rem; line-height: 1; }
.stat span { font-weight: 600; line-height: 1.3; }
.stat-red { background: var(--red-ink); color: #fff; }
.stat-yellow { background: var(--yellow); }
.stat-green { background: var(--green-ink); color: #fff; }
.stat-blue { background: var(--blue); color: #fff; }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; gap: 40px; } }
@media (max-width: 420px) { .stat { min-height: 128px; padding: 18px 16px; } .stat strong { font-size: 2.2rem; } .stat span { font-size: .92rem; } }

/* ---------- Eventos ---------- */
/* Card: miniatura ao lado do título e o resto em largura total; 2 colunas no computador */
.event-list { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); align-items: start; }
.event-card {
  display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 0 18px; padding: 22px 24px 24px;
  background: var(--card); border: var(--line); border-radius: calc(var(--radius) + 4px); box-shadow: var(--shadow);
}
.event-body { display: contents; }
.event-media { grid-row: 1 / span 2; grid-column: 1; align-self: start; display: block; border: var(--line); border-radius: 18px; padding: 6px; background: #fff; overflow: hidden; }
.event-media img { width: 100%; aspect-ratio: 1; object-fit: contain; transition: transform .5s ease; }
.event-card:hover .event-media img { transform: scale(1.05) rotate(-3deg); }
.event-tags { grid-column: 2; align-self: end; display: flex; flex-wrap: wrap; gap: 6px; }
.event-tags .tag, .event-tags .status-pill { margin: 0; }
.event-body h3 { grid-column: 2; align-self: start; font-size: clamp(1.3rem, 2.2vw, 1.65rem); margin: 8px 0 0; }
.event-body h3 a { text-decoration: none; }
.event-body h3 a:hover { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 4px; text-decoration-color: var(--yellow); }
.event-meta, .event-note, .event-card .countdown, .event-body .btn-row { grid-column: 1 / -1; }
.event-meta { list-style: none; padding: 14px 0 0; margin: 16px 0 14px; display: grid; gap: 6px; border-top: 2px dashed rgba(27, 27, 58, .15); }
.event-meta li { display: grid; grid-template-columns: 92px 1fr; gap: 10px; line-height: 1.45; }
.event-meta b { font-family: var(--font-head); font-weight: 600; color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; padding-top: 3px; }
.event-note { color: var(--muted); font-size: .96rem; margin-bottom: 14px; }
.event-card .countdown { margin-bottom: 16px; }
.event-card .countdown > div { flex: 1; min-width: 0; }
.event-body .btn-row .btn { flex: 1 1 auto; }

.countdown { display: flex; gap: 8px; margin: 0 0 18px; flex-wrap: wrap; }
.countdown > div { background: var(--ink); color: #fff; border-radius: 12px; padding: 8px 10px 6px; min-width: 64px; text-align: center; }
.countdown span { display: block; font-family: var(--font-head); font-size: 1.5rem; font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; }
.countdown small { font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; opacity: .8; }
.countdown-done { font-family: var(--font-head); font-weight: 600; background: var(--yellow); border: var(--line); padding: 8px 14px; border-radius: 12px; display: inline-block; }

.status-pill {
  display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-head); font-weight: 600; font-size: .78rem;
  text-transform: uppercase; letter-spacing: .08em; padding: .3em .9em; border-radius: 999px; border: 2px solid var(--ink); background: var(--paper);
  margin-bottom: 8px; vertical-align: top;
}
.status-pill i { width: 9px; height: 9px; border-radius: 50%; background: var(--muted); }
.status-pill[data-state="open"] { background: #E5F6E9; }
.status-pill[data-state="open"] i { background: var(--green); animation: pulse 1.6s ease infinite; }
.status-pill[data-state="closed"] i { background: var(--red); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(43, 168, 74, .6); } 100% { box-shadow: 0 0 0 10px rgba(43, 168, 74, 0); } }

@media (max-width: 560px) {
  .event-list { gap: 20px; }
  .event-card { grid-template-columns: 80px minmax(0, 1fr); gap: 0 14px; padding: 16px 16px 18px; border-radius: var(--radius); }
  .event-media { border-radius: 14px; padding: 4px; }
  .event-tags .tag, .event-tags .status-pill { font-size: .68rem; }
  .event-body h3 { font-size: 1.25rem; margin-top: 6px; }
  .event-meta li { grid-template-columns: 80px 1fr; font-size: .96rem; }
}

/* ---------- Jogo ---------- */
.play { background: var(--ink); color: #fff; overflow: hidden; }
.play .section-head p { color: rgba(255, 255, 255, .75); }
.play::before {
  content: ""; position: absolute; inset: 0; opacity: .06;
  background: var(--piece) 0 0 / 120px 120px; filter: invert(1);
}
.game {
  position: relative; background: var(--paper); color: var(--ink); border: 3px solid #fff; border-radius: 28px;
  box-shadow: 8px 8px 0 var(--yellow); overflow: hidden; z-index: 1;
}
.game-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 18px; border-bottom: var(--line); background: var(--card); }
.game-levels { display: flex; gap: 6px; flex-wrap: wrap; }
.game-levels button {
  border: 2px solid var(--ink); background: var(--paper); border-radius: 999px; padding: .4em .95em;
  font-family: var(--font-head); font-weight: 500; cursor: pointer; transition: background .2s;
}
.game-levels button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.game-stats { display: flex; gap: 20px; }
.game-stats span { display: flex; flex-direction: column; line-height: 1.1; }
.game-stats small { font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.game-stats b { font-family: var(--font-head); font-size: 1.35rem; font-variant-numeric: tabular-nums; }
.game-actions { display: flex; gap: 8px; }
.game-actions .btn { touch-action: none; -webkit-user-select: none; user-select: none; }
.game-board { width: 100%; height: auto; display: block; touch-action: none; user-select: none; -webkit-user-select: none; }
.board-ghost { opacity: 0; pointer-events: none; transition: opacity .2s; }
.game.show-hint .board-ghost { opacity: .45; }
.board-frame { fill: #EFE2C8; stroke: var(--ink); stroke-width: 2; stroke-dasharray: 6 6; }
.gpiece { cursor: grab; filter: drop-shadow(0 3px 4px rgba(27, 27, 58, .3)); }
.gpiece:focus-visible { outline: none; }
.gpiece:focus-visible .gpiece-outline { stroke: var(--blue); stroke-width: 4; }
.gpiece.is-dragging { cursor: grabbing; filter: drop-shadow(0 12px 14px rgba(27, 27, 58, .35)); }
.gpiece.is-locked { cursor: default; filter: none; }
.gpiece-outline { fill: none; stroke: rgba(255, 255, 255, .85); stroke-width: 1.6; pointer-events: none; transition: stroke .4s; }
.gpiece.is-locked .gpiece-outline { stroke: rgba(27, 27, 58, .12); }
.game-done {
  position: absolute; inset: 0; display: grid; place-items: center; padding: 20px;
  background: rgba(255, 248, 236, .72); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
  opacity: 0; visibility: hidden; transition: opacity .4s, visibility .4s; z-index: 3;
}
.game.is-done .game-done { opacity: 1; visibility: visible; }
.game-done-card { background: var(--card); border: var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px; text-align: center; max-width: 420px; transform: scale(.9); transition: transform .5s cubic-bezier(.2, 1.4, .4, 1); }
.game.is-done .game-done-card { transform: none; }
.game-done-card h3 { font-size: 1.8rem; }
.game-done-card .btn-row { justify-content: center; }
.game-tip { color: rgba(255, 255, 255, .6); font-size: .92rem; margin-top: 18px; position: relative; }
@media (max-width: 640px) {
  .game-toolbar { padding: 12px; }
  .game-stats { order: -1; width: 100%; justify-content: space-between; }
  .game-levels { width: 100%; }
  .game-levels button { flex: 1; padding: .45em .4em; font-size: .9rem; }
  .game-actions { width: 100%; }
  .game-actions .btn { flex: 1; }
}

.confetti { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 4; }
.confetti i { position: absolute; top: -20px; width: 9px; height: 14px; border-radius: 2px; animation: fall 2s cubic-bezier(.3, .5, .6, 1) forwards; }
@keyframes fall { to { transform: translate(var(--dx), 110vh) rotate(var(--r)); } }

/* ---------- Histórico ---------- */
.live-events { margin-bottom: 40px; }
.timeline { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.year-block { background: var(--card); border: var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px 24px; }
.year { font-size: 2.4rem; margin-bottom: 10px; color: var(--blue); }
.year-block:nth-child(2) .year { color: var(--red-ink); }
.past-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.past {
  display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 6px 12px; border-radius: 12px;
  border: 2px solid transparent; font-weight: 700;
}
.past::before {
  content: ""; width: 22px; height: 22px; flex: none; background: currentColor;
  -webkit-mask: var(--piece) center / contain no-repeat; mask: var(--piece) center / contain no-repeat;
  transition: transform .5s cubic-bezier(.2, 1.4, .4, 1);
}
.past span { color: var(--ink); }
/* só os itens com página parecem clicáveis */
.past.has-link { background: var(--paper); border-color: var(--ink); padding: 0; }
.past.has-link::before { margin-left: 12px; }
.past.has-link:hover { box-shadow: 3px 3px 0 var(--ink); transform: translate(-1px, -1px); }
.past.has-link:hover::before { transform: rotate(90deg); }
.past-link { display: flex; justify-content: space-between; align-items: center; gap: 4px 10px; flex: 1; min-height: 44px; padding: 6px 12px 6px 0; flex-wrap: wrap; text-decoration: none; }
.past-link small { font-weight: 800; color: var(--blue); font-size: .85rem; white-space: nowrap; }
.past-link small::after { content: " →"; }
.c-red { color: var(--red); } .c-yellow { color: #E8B400; } .c-green { color: var(--green); } .c-blue { color: var(--blue); }
@media (max-width: 760px) { .timeline { grid-template-columns: 1fr; gap: 18px; } .year-block { padding: 18px; } .year { font-size: 2rem; } }

/* ---------- Ranking ---------- */
.ranking { background: var(--paper-2); border-block: var(--line); }
.rg { margin-bottom: 18px; }
.rg-table { min-width: 0; }
.rg-table .c-pos { width: 64px; }
.rg-table .c-num { text-align: right; width: 1%; white-space: nowrap; }
.rg-table td.c-num b { font-family: var(--font-head); font-size: 1.1rem; }
.rg-sub { display: none; font-size: .82rem; color: var(--muted); font-weight: 600; margin-top: 2px; }
@media (max-width: 600px) {
  .rg-table .c-hide-sm { display: none; }
  .rg-sub { display: block; }
  .rg-table th, .rg-table td { padding: 10px 10px; }
  .rg-table .c-pos { width: 48px; }
}
.rules-box { background: var(--card); max-width: 760px; }
.rules-box summary { font-size: 1.05rem; }
.rules { list-style: none; counter-reset: r; margin: 0; padding: 0 0 6px !important; display: grid; gap: 10px; }
.rules li { counter-increment: r; position: relative; padding: 4px 0 4px 44px; margin: 0; line-height: 1.5; }
.rules li::before {
  content: counter(r); position: absolute; left: 0; top: 2px; width: 30px; height: 30px;
  display: grid; place-items: center; border-radius: 50%; background: var(--yellow); border: 2px solid var(--ink);
  font-family: var(--font-head); font-weight: 700; font-size: .9rem;
}
.rules li:nth-child(2)::before { background: var(--green-ink); color: #fff; }
.rules li:nth-child(3)::before { background: var(--blue); color: #fff; }
.rules li:nth-child(4)::before { background: var(--red-ink); color: #fff; }

/* ---------- Desafios ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.gallery-item {
  background: var(--card); border: var(--line); border-radius: 18px; box-shadow: var(--shadow-sm);
  padding: 8px 8px 0; cursor: zoom-in; text-align: left; overflow: hidden; transition: transform .2s, box-shadow .2s;
}
.gallery-item:hover { transform: translate(-2px, -2px) rotate(-.4deg); box-shadow: 6px 6px 0 var(--ink); }
.gallery-item img { border-radius: 10px; width: 100%; aspect-ratio: 16 / 11; object-fit: contain; background: #fff; }
.gallery-item span { display: block; font-family: var(--font-head); font-weight: 600; padding: 8px 4px 10px; font-size: .95rem; line-height: 1.25; }
@media (max-width: 900px) { .gallery { grid-template-columns: repeat(2, 1fr); gap: 14px; } }
@media (max-width: 420px) { .gallery-item span { font-size: .86rem; } }

.lightbox { position: fixed; inset: 0; z-index: 90; background: rgba(27, 27, 58, .86); display: grid; place-items: center; padding: 20px; opacity: 0; transition: opacity .25s; }
.lightbox[hidden] { display: none; }
.lightbox.is-open { opacity: 1; }
.lightbox figure { margin: 0; position: relative; max-width: 1000px; width: 100%; }
.lightbox img { width: 100%; max-height: 80vh; object-fit: contain; background: #fff; border-radius: 16px; border: 3px solid #fff; }
.lightbox figcaption { color: #fff; font-family: var(--font-head); text-align: center; margin-top: 12px; }
.lightbox-close { position: absolute; top: -18px; right: -10px; width: 44px; height: 44px; border-radius: 50%; border: var(--line); background: var(--yellow); font-size: 1.6rem; line-height: 1; cursor: pointer; }

/* ---------- Fale com a gente + Loja (fim da home) ---------- */
.closing-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px; align-items: stretch; }
.closing-card { border: var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px 30px; }
.closing-card h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.closing-card p { margin-bottom: 18px; }
.closing-contact { background: var(--card); }
.closing-contact p { color: var(--muted); }
.closing-shop { background: var(--blue); color: #fff; position: relative; overflow: hidden; }
.closing-shop::before { content: ""; position: absolute; inset: 0; opacity: .08; background: var(--piece) 0 0 / 80px 80px; filter: invert(1); pointer-events: none; }
.closing-shop .eyebrow { color: var(--yellow); margin-bottom: .5em; }
.closing-shop p:last-child { margin: 0; opacity: .9; }
@media (max-width: 760px) { .closing-grid { grid-template-columns: 1fr; gap: 18px; } .closing-card { padding: 22px 20px; } }

/* ---------- Contato (página) ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 36px; align-items: start; }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.contact-list a {
  display: flex; align-items: center; gap: 14px; text-decoration: none; padding: 12px 14px; border-radius: 16px;
  border: var(--line); background: var(--card); box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s; font-weight: 700; min-width: 0;
}
.contact-list a > span:last-child { min-width: 0; overflow-wrap: anywhere; line-height: 1.3; }
.contact-list a:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.contact-list small { display: block; font-weight: 700; color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; }
.ci { width: 42px; height: 42px; flex: none; display: grid; place-items: center; border-radius: 12px; border: var(--line); font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; }
.ci-red { background: var(--red-ink); color: #fff; } .ci-yellow { background: var(--yellow); } .ci-green { background: var(--green-ink); color: #fff; } .ci-blue { background: var(--blue); color: #fff; }
.contact-form { background: var(--card); border: var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px 26px; display: grid; gap: 12px; }
.contact-form h2 { font-size: 1.5rem; margin: 0; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.contact-form label { display: grid; gap: 4px; font-weight: 700; font-size: .92rem; }
.contact-form input, .contact-form select, .contact-form textarea {
  font: inherit; font-weight: 400; padding: 10px 12px; min-height: 46px; border-radius: 12px; border: 2px solid var(--ink); background: var(--paper); width: 100%;
}
.contact-form textarea { min-height: 110px; resize: vertical; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: none; box-shadow: 0 0 0 3px var(--yellow); border-color: var(--blue); }
.contact-form .btn { justify-self: start; }
.form-note { font-size: .85rem; color: var(--muted); margin: 0; }
@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; gap: 22px; }
  .contact-list { gap: 8px; }
  .contact-list a { padding: 8px 12px; font-size: .96rem; }
  .contact-form { padding: 20px 18px; }
  .contact-form .btn { justify-self: stretch; }
}
@media (max-width: 520px) { .form-row { grid-template-columns: 1fr; } }

/* ---------- Rodapé ---------- */
.site-footer { background: var(--ink); color: rgba(255, 255, 255, .86); padding: 48px 0 28px; }
.site-footer a { color: #fff; }
.footer-inner { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr); gap: 32px 48px; align-items: start; }
.footer-brand { display: flex; align-items: flex-start; gap: 16px; }
.footer-brand img { background: #fff; border-radius: 50%; padding: 3px; flex: none; }
.footer-brand p { margin: 0 0 8px; font-size: .95rem; line-height: 1.55; }
.footer-brand a { font-weight: 700; color: var(--yellow); }
.footer-title { font-family: var(--font-head); font-weight: 700; font-size: 1.2rem !important; color: #fff; }
.footer-nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.footer-nav h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: var(--yellow); margin: 0 0 6px; font-family: var(--font-head); }
.footer-nav a { display: flex; align-items: center; min-height: 36px; text-decoration: none; font-weight: 600; font-size: .95rem; }
.footer-nav a:hover { color: var(--yellow); text-decoration: underline; }
.copy { grid-column: 1 / -1; margin: 0; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .15); font-size: .85rem; opacity: .75; }
@media (max-width: 860px) { .footer-inner { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .footer-nav { grid-template-columns: 1fr 1fr; } .footer-nav > div:last-child { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 0 18px; } .footer-nav > div:last-child h2 { width: 100%; } .footer-nav a { min-height: 44px; } }

/* =========================================================
   Páginas internas (eventos, sobre, contato)
   ========================================================= */
.container-narrow { width: min(900px, 100% - 40px); }
.page-hero { padding: calc(var(--header-h) + 36px) 0 40px; position: relative; overflow: hidden; }
.page-hero h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); }
.page-hero .lead { margin-bottom: 0; }
.page-hero-simple { padding-bottom: 8px; }
.page-hero-simple .container { position: relative; z-index: 2; }
.breadcrumb { font-size: .9rem; margin-bottom: 12px; color: var(--muted); }
.breadcrumb a { color: var(--muted); display: inline-block; padding: 6px 0; }
.section-tight { padding-top: 28px; }

/* Cabeçalho do evento. Completo (em breve) ou compacto (ao vivo e finalizado):
   o atributo data-ev-status do <body> vem no HTML e o live.js atualiza pela API. */
.ev-hero-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 40px; align-items: center; position: relative; z-index: 2; }
.ev-hero-img { order: 2; width: min(320px, 100%); justify-self: center; border: var(--line); border-radius: 50%; box-shadow: var(--shadow); background: #fff; overflow: hidden; aspect-ratio: 1; animation: spinIn 1.1s cubic-bezier(.2, 1.3, .4, 1) both; }
.ev-hero-img img { width: 100%; height: 100%; object-fit: cover; }
@keyframes spinIn { from { opacity: 0; transform: rotate(-30deg) scale(.6); } }
.ev-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.ev-tags .tag, .ev-tags .status-pill { margin: 0; }
.ev-hero .lead { margin-bottom: 20px; }
.ev-hero .countdown { margin-bottom: 20px; }
.ev-hero .hero-actions { margin-top: 0; }
.ev-resumo { display: none; margin: 0; color: var(--muted); font-weight: 600; font-size: .98rem; line-height: 1.5; }
.ev-resumo span + span::before { content: "·"; margin: 0 .5em; color: rgba(27, 27, 58, .35); }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 30px; position: relative; z-index: 2; }
.fact { background: var(--card); border: var(--line); border-radius: 16px; padding: 12px 16px; box-shadow: var(--shadow-sm); }
.fact small { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 700; }
.fact b { font-family: var(--font-head); font-size: 1.08rem; font-weight: 600; line-height: 1.25; display: block; margin-top: 2px; }
[data-se] { display: none !important; }
body[data-ev-status="breve"] [data-se="breve"], body[data-ev-status="ao_vivo"] [data-se="ao_vivo"], body[data-ev-status="finalizado"] [data-se="finalizado"] { display: inline-flex !important; }

/* Compacto: uma linha de data, local e categorias; ranking e fotos logo abaixo */
body:is([data-ev-status="finalizado"], [data-ev-status="ao_vivo"]) .ev-hero { padding-bottom: 18px; }
body:is([data-ev-status="finalizado"], [data-ev-status="ao_vivo"]) .ev-hero-grid { grid-template-columns: 96px minmax(0, 1fr); gap: 22px; }
body:is([data-ev-status="finalizado"], [data-ev-status="ao_vivo"]) .ev-hero-img { order: 0; width: 96px; box-shadow: var(--shadow-sm); align-self: start; margin-top: 30px; animation: none; }
body:is([data-ev-status="finalizado"], [data-ev-status="ao_vivo"]) .ev-hero h1 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); margin-bottom: .25em; }
body:is([data-ev-status="finalizado"], [data-ev-status="ao_vivo"]) .ev-resumo { display: block; }
body:is([data-ev-status="finalizado"], [data-ev-status="ao_vivo"]) :is(.ev-hero .lead, .ev-hero .countdown, .ev-hero .hero-actions, .ev-facts) { display: none; }

@media (max-width: 900px) {
  .ev-hero-grid { grid-template-columns: 88px minmax(0, 1fr); gap: 16px; align-items: start; }
  .ev-hero-img { order: 0; width: 88px; box-shadow: var(--shadow-sm); margin-top: 34px; }
  .ev-hero .lead, .ev-hero .countdown, .ev-hero .hero-actions { grid-column: 1 / -1; }
  .ev-hero-text { display: contents; }
  .ev-hero-text > .breadcrumb, .ev-hero-text > .ev-tags, .ev-hero-text > h1, .ev-hero-text > .ev-resumo { grid-column: 2; }
  .ev-hero-text > .breadcrumb { grid-row: 1; margin: 0; }
  .ev-hero-img { grid-row: 1 / span 4; grid-column: 1; }
  .ev-hero .lead { margin: 8px 0 16px; font-size: 1.05rem; }
  .facts { grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 20px; }
  .fact { padding: 10px 12px; }
  .fact b { font-size: 1rem; }
  body:is([data-ev-status="finalizado"], [data-ev-status="ao_vivo"]) .ev-hero-grid { grid-template-columns: 64px minmax(0, 1fr); gap: 0 14px; }
  body:is([data-ev-status="finalizado"], [data-ev-status="ao_vivo"]) .ev-hero-img { width: 64px; margin-top: 36px; }
  .ev-resumo { font-size: .92rem; }
}
@media (max-width: 560px) {
  .page-hero { padding: calc(var(--header-h) + 18px) 0 28px; }
  .ev-hero-grid { grid-template-columns: 72px minmax(0, 1fr); }
  .ev-hero-img { width: 72px; }
  .ev-hero .hero-actions .btn { flex: 1 1 auto; }
}

/* Navegação "nesta página" (fixa abaixo do cabeçalho, rola na horizontal no celular) */
.subnav { position: sticky; top: var(--header-h); z-index: 40; background: rgba(255, 248, 236, .94); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-block: 2px solid rgba(27, 27, 58, .12); }
.subnav-track { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 8px 0; -webkit-overflow-scrolling: touch; }
.subnav-track::-webkit-scrollbar { display: none; }
.subnav a { flex: none; display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 999px; text-decoration: none; font-family: var(--font-head); font-weight: 600; font-size: .95rem; border: 2px solid transparent; white-space: nowrap; }
.subnav a:hover { background: rgba(27, 27, 58, .07); }
.subnav a.is-active { background: var(--ink); color: #fff; }
.subnav-track { justify-content: safe center; }
html:has(.subnav) { scroll-padding-top: calc(var(--header-h) + 72px); }

.ev-sec { padding: 26px 0 0; }
.ev-sec + .ev-sec { padding-top: 0; }
.ev-content { padding-bottom: clamp(50px, 7vw, 90px); }
.ev-sec .block, .ev-content .block { margin-bottom: 26px; }

.block { background: var(--card); border: var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 30px 32px; margin-bottom: 30px; }
.block h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); display: flex; align-items: center; gap: 12px; }
.block h3 { font-size: 1.25rem; margin-top: 1.2em; }
.block ul { padding-left: 1.2em; }
.block li { margin-bottom: .4em; }
@media (max-width: 640px) { .block { padding: 22px 20px; } }

.steps { list-style: none; padding: 0 !important; margin: 0; position: relative; }
.steps::before { content: ""; position: absolute; left: 19px; top: 8px; bottom: 8px; width: 3px; background: repeating-linear-gradient(var(--ink) 0 6px, transparent 6px 12px); }
.steps li { position: relative; padding: 0 0 22px 58px; margin: 0; }
.steps li::before {
  content: ""; position: absolute; left: 0; top: 0; width: 40px; height: 40px; background: var(--c, var(--blue));
  -webkit-mask: var(--piece) center / contain no-repeat; mask: var(--piece) center / contain no-repeat;
}
.steps li:nth-child(4n+1) { --c: var(--red); } .steps li:nth-child(4n+2) { --c: #E8B400; } .steps li:nth-child(4n+3) { --c: var(--green); } .steps li:nth-child(4n+4) { --c: var(--blue); }
.steps b { font-family: var(--font-head); font-size: 1.12rem; display: block; }
.steps span { color: var(--muted); }
.steps .is-final b { color: var(--red-ink); }

.table-wrap { overflow-x: auto; border: var(--line); border-radius: 16px; }
table { width: 100%; border-collapse: collapse; min-width: 420px; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid rgba(27, 27, 58, .15); }
th { background: var(--ink); color: #fff; font-family: var(--font-head); font-weight: 600; }
tr:last-child td { border-bottom: 0; }
tbody tr:nth-child(even) { background: var(--paper); }

.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 16px; }
.mini { border: var(--line); border-radius: 18px; padding: 18px; }
.mini h3 { margin-top: 0; }
.mini p { margin: 0; }
.mini-red { background: #FDE6E6; } .mini-yellow { background: #FFF5CC; } .mini-green { background: #E3F4E7; } .mini-blue { background: #E6E8F7; }
@media (max-width: 760px) { .cards-3 { grid-template-columns: 1fr; } }

details { border: var(--line); border-radius: 16px; margin-bottom: 12px; background: var(--paper); overflow: hidden; }
summary { cursor: pointer; padding: 16px 52px 16px 18px; font-family: var(--font-head); font-weight: 600; font-size: 1.1rem; list-style: none; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 16px; top: 50%; translate: 0 -50%; width: 28px; height: 28px; border-radius: 50%; background: var(--yellow); border: 2px solid var(--ink); display: grid; place-items: center; font-size: 1.2rem; line-height: 1; transition: transform .3s; }
details[open] summary::after { transform: rotate(45deg); }
details > div { padding: 0 18px 12px; }

.cta-band { background: var(--red-ink); color: #fff; border: var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 30px 32px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { margin: 0 0 4px; }
.cta-band p { margin: 0; }
.cta-band .btn { background: var(--yellow); color: var(--ink); }

.notice { background: #FFF5CC; border: 2px dashed var(--ink); border-radius: 14px; padding: 14px 16px; font-size: .98rem; }

/* ---------- Movimento reduzido ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  html { scroll-behavior: auto; }
}

/* ---------- Pontuação ao vivo ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.live-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-bottom: 16px; }
.live-badge { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-head); font-weight: 600; font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; padding: .35em 1em; border: 2px solid var(--ink); border-radius: 999px; background: var(--paper); }
.live-badge:empty { display: none; }
.live-badge[data-estado="live"] { background: var(--red-ink); color: #fff; }
.live-badge[data-estado="live"]::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: #fff; animation: livePulse 1.4s ease infinite; }
.live-badge[data-estado="done"] { background: var(--green-ink); color: #fff; }
@keyframes livePulse { 0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, .8); } 100% { box-shadow: 0 0 0 9px rgba(255, 255, 255, 0); } }
.live-stamp { font-size: .92rem; color: var(--muted); }
.live-stamp.is-error { color: var(--red); font-weight: 700; }
.live-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.live-tabs[hidden] { display: none; }
.live-tabs button { font-family: var(--font-head); font-weight: 600; font-size: 1rem; padding: .5em 1.1em; border: var(--line); border-radius: 999px; background: var(--card); cursor: pointer; box-shadow: 3px 3px 0 var(--ink); }
.live-tabs button[aria-selected="true"] { background: var(--yellow); transform: translate(1px, 1px); box-shadow: 2px 2px 0 var(--ink); }
.live-tabs button:focus-visible, .live-search input:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.live-tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; }
.live-search { flex: 1 1 220px; }
.live-search input { font: inherit; width: 100%; padding: 10px 14px; border: 2px solid var(--ink); border-radius: 12px; background: var(--paper); }
.live-table { min-width: 0; font-variant-numeric: tabular-nums; }
.live-table .c-pos { width: 64px; }
.live-table .c-mesa { width: 74px; color: var(--muted); }
.live-table .c-res { text-align: right; font-family: var(--font-head); font-weight: 600; font-size: 1.1rem; white-space: nowrap; }
.live-table .c-res small { display: block; font: 400 .8rem var(--font-body); color: var(--muted); }
.live-table th.c-res { text-align: right; }
.pos-chip { display: inline-grid; place-items: center; min-width: 34px; height: 34px; padding: 0 6px; border-radius: 50%; border: 2px solid var(--ink); background: var(--card); font-family: var(--font-head); font-weight: 700; }
.live-table .pos-1 .pos-chip { background: var(--yellow); }
.live-table .pos-2 .pos-chip { background: #D9DCE8; }
.live-table .pos-3 .pos-chip { background: #F0B27A; }
.live-table tbody tr.pos-1 td { font-weight: 700; }
.live-empty { text-align: center; color: var(--muted); padding: 28px 16px !important; }
.live-note { margin: 12px 0 0; font-size: .9rem; color: var(--muted); }
.row-changed { animation: rowFlash 3.2s ease-out; }
@keyframes rowFlash { 0%, 30% { background: #FFE98A; } 100% { background: transparent; } }
.live-tag { animation: livePulse2 1.6s ease infinite; }
@keyframes livePulse2 { 0% { box-shadow: 0 0 0 0 rgba(232, 38, 45, .55); } 100% { box-shadow: 0 0 0 10px rgba(232, 38, 45, 0); } }
.live-section .block { margin-bottom: 0; }
.live-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.live-banner { background: var(--red-ink); color: #fff; border-bottom: var(--line); }
.live-banner[hidden] { display: none; }
.live-banner .container { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; justify-content: center; padding: 10px 0; font-family: var(--font-head); font-weight: 600; }
.live-banner a { background: #fff; color: var(--ink); padding: .3em 1em; border-radius: 999px; text-decoration: none; border: 2px solid var(--ink); }
.live-page-head { padding: calc(var(--header-h) + 40px) 0 20px; }
.live-page-head h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
.live-picker { font: inherit; padding: 10px 14px; border: 2px solid var(--ink); border-radius: 12px; background: var(--card); max-width: 100%; }
.live-picker[hidden], [data-vazio][hidden] { display: none; }
@media (max-width: 560px) { .live-table th, .live-table td { padding: 10px 10px; } .live-table .c-mesa { display: none; } .live-table th.c-mesa { display: none; } }
@media (prefers-reduced-motion: reduce) { .row-changed, .live-tag, .live-badge::before { animation: none; } .row-changed { background: #FFE98A; } }

/* ---------- Painel do admin ---------- */
.adm-wrap { padding: calc(var(--header-h) + 30px) 0 70px; }
.adm-card { background: var(--card); border: var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px 26px; margin-bottom: 24px; }
.adm-card h2 { font-size: 1.5rem; }
.adm-login { max-width: 420px; margin: 0 auto; }
.adm-show { display: flex; align-items: center; gap: 8px; font-weight: 700; margin-bottom: 14px; cursor: pointer; }
.adm-show input { width: 20px; height: 20px; accent-color: var(--ink); }
.adm-field { display: grid; gap: 6px; font-weight: 700; margin-bottom: 14px; }
.adm-field input, .adm-field select, .adm-field textarea, .adm-bar select, .adm-bar input, .adm-mesa input, .adm-table input, .adm-table select {
  font: inherit; font-weight: 400; padding: 10px 12px; border-radius: 12px; border: 2px solid var(--ink); background: var(--paper); width: 100%; }
.adm-field input:focus, .adm-field select:focus, .adm-field textarea:focus, .adm-mesa input:focus, .adm-bar select:focus, .adm-table input:focus { outline: none; box-shadow: 0 0 0 3px var(--yellow); }
.adm-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; }
.adm-bar > * { flex: 0 1 auto; }
.adm-bar select { width: auto; min-width: 200px; }
.adm-grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.adm-msg { min-height: 1.4em; font-weight: 700; margin: 8px 0 0; }
.adm-msg.is-error { color: var(--red); }
.adm-msg.is-ok { color: var(--green); }
.adm-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.adm-chips button { font-family: var(--font-head); font-weight: 600; padding: .45em 1em; border: var(--line); border-radius: 999px; background: var(--card); cursor: pointer; }
.adm-chips button[aria-pressed="true"] { background: var(--yellow); }
.adm-mesas { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; margin-top: 14px; }
.adm-mesa { border: var(--line); border-radius: 16px; padding: 10px 12px 12px; background: var(--paper); position: relative; transition: background .3s; }
.adm-mesa.is-saved { background: #E5F6E9; }
.adm-mesa.is-error { background: #FFE1E1; }
.adm-mesa.is-dnf { background: #EEE; }
.adm-mesa header { display: flex; align-items: baseline; gap: 8px; margin-bottom: 6px; }
.adm-mesa .n { font-family: var(--font-head); font-weight: 700; font-size: 1.5rem; line-height: 1; }
.adm-mesa .nm { font-size: .92rem; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.adm-mesa input { font-family: var(--font-head); font-size: 1.25rem; font-weight: 600; text-align: center; }
.adm-mesa .pos { position: absolute; top: 8px; right: 10px; font-size: .8rem; font-weight: 800; color: var(--muted); }
.adm-mesa .opts { display: flex; justify-content: space-between; margin-top: 6px; font-size: .8rem; }
.adm-mesa .opts button { background: none; border: 0; padding: 2px 0; text-decoration: underline; cursor: pointer; color: var(--muted); }
.adm-table { margin-top: 10px; }
.adm-table td { padding: 8px 10px; }
.adm-table input, .adm-table select { padding: 6px 8px; }
.adm-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.btn-danger { background: #fff; color: var(--red); }
details.adm-details > summary { cursor: pointer; font-family: var(--font-head); font-weight: 600; font-size: 1.15rem; }
[hidden] { display: none !important; }
.site-nav .nav-live::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--red); margin-right: 6px; vertical-align: 1px; }
.live-sub { font-size: 1.5rem; margin-bottom: 18px; }
.live-table th.c-mesa { color: #fff; }

/* ---------- Formulário de contato: isca anti-robô e avisos ---------- */
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note.is-ok { color: var(--green); font-weight: 700; }
.form-note.is-error { color: var(--red); font-weight: 700; }
.adm-msgs { display: grid; gap: 10px; margin-top: 12px; }
.adm-msgitem { border: var(--line); border-radius: 14px; padding: 12px 14px; background: var(--paper); }
.adm-msgitem.is-new { background: #FFF3BF; }
.adm-msgitem header { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; justify-content: space-between; }
.adm-msgitem pre { white-space: pre-wrap; word-break: break-word; font: inherit; margin: 8px 0; }
.adm-msgitem small { color: var(--muted); }
.adm-userbar { display: flex; gap: 10px; align-items: center; }
.adm-tag { margin-left: -4px; font-family: var(--font-head); font-weight: 600; font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; background: var(--yellow); border: 2px solid var(--ink); border-radius: 999px; padding: .15em .8em; white-space: nowrap; }
.adm-wrap { padding-top: calc(var(--header-h) + 40px); min-height: 80vh; }
@media (max-width: 560px) { .adm-tag { display: none; } .adm-user, [data-user] { display: none; } }
.adm-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.adm-tabs button { font-family: var(--font-head); font-weight: 600; font-size: 1.05rem; padding: .55em 1.3em; border: var(--line); border-radius: 999px; background: var(--card); cursor: pointer; box-shadow: 3px 3px 0 var(--ink); }
.adm-tabs button[aria-selected="true"] { background: var(--yellow); transform: translate(1px, 1px); box-shadow: 2px 2px 0 var(--ink); }
.adm-tabs button:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.adm-tabs [data-msgs-count]:not(:empty) { background: var(--red); color: #fff; border-radius: 999px; padding: 0 .5em; margin-left: 2px; }

/* Galeria de fotos */
.galeria-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.galeria-item { padding: 0; border: 3px solid var(--ink, #1B1B3A); border-radius: 12px; overflow: hidden; background: #fff; cursor: zoom-in; aspect-ratio: 1; box-shadow: 3px 3px 0 var(--ink, #1B1B3A); }
.galeria-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.foto-popup { position: fixed; inset: 0; z-index: 1000; background: rgba(27,27,58,.78); padding: 20px; display: grid; place-items: center; }
.foto-popup img { max-width: min(92vw, 900px); max-height: 86vh; width: auto; height: auto; object-fit: contain; background: #fff; border: 4px solid #fff; border-radius: 16px; box-shadow: 0 10px 40px rgba(0,0,0,.45); }
.no-scroll { overflow: hidden; }
.foto-popup button { position: absolute; background: #fff; border: 3px solid #1B1B3A; border-radius: 50%; width: 44px; height: 44px; font-size: 1.6rem; line-height: 1; cursor: pointer; }
.lb-x { top: 16px; right: 16px; } .lb-p { left: 14px; top: 50%; } .lb-n { right: 14px; top: 50%; }
.adm-fotos { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.adm-fotos figure { margin: 0; position: relative; aspect-ratio: 1; }
.adm-fotos img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; border: 2px solid var(--ink, #1B1B3A); }
.adm-fotos button { position: absolute; top: 4px; right: 4px; width: 26px; height: 26px; border-radius: 50%; border: 2px solid #1B1B3A; background: #fff; cursor: pointer; line-height: 1; }
.adm-hint { display: block; margin-top: 4px; font-weight: 400; font-size: .85rem; color: var(--muted, #5a5a7a); }
.past a { color: inherit; text-decoration: none; }
.live-table .c-qc { text-align: right; white-space: nowrap; font-weight: 800; }

/* Ranking geral: detalhes por pessoa */
.rg-nome { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; text-align: left; display: inline-flex; gap: 8px; align-items: center; }
.rg-nome:hover { text-decoration: underline; }
.rg-nome i { font-style: normal; font-size: .8rem; color: var(--muted); }
.rg-row.is-open td { background: var(--yellow, #FFD21F) !important; }
.rg-det td { background: #fff !important; padding: 14px 18px !important; }
.rg-ev + .rg-ev { margin-top: 12px; padding-top: 12px; border-top: 2px dashed rgba(27,27,58,.2); }
.rg-ev-head { display: flex; justify-content: space-between; gap: 12px; font-weight: 800; }
.rg-ev ul { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.rg-ev li { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.rg-ev small { color: var(--muted); }
.rg-pod { font-style: normal; font-weight: 800; padding: 1px 8px; border-radius: 999px; border: 2px solid #1B1B3A; }
.rg-pod-1 { background: #FFD21F; } .rg-pod-2 { background: #dfe1ee; } .rg-pod-3 { background: #f0b27a; }
.past-link { display: flex; justify-content: space-between; align-items: center; gap: 10px; width: 100%; flex-wrap: wrap; }
.past-link small { font-weight: 800; color: var(--blue, #2D3A9A); }
.past a:hover span { text-decoration: underline; }
.muted { color: var(--muted); }
.rg-nome { min-height: 40px; }
.rg-nome > span { display: block; }

/* ---------- Ranking do evento no celular ---------- */
.live-table .c-res .qc-sm { display: none; }
.ev-sec .live-badge[data-estado="done"] { display: none; }
@media (max-width: 600px) {
  .live-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: -4px; padding: 2px 4px 8px; }
  .live-tabs::-webkit-scrollbar { display: none; }
  .live-tabs button { flex: none; font-size: .92rem; padding: .45em .95em; min-height: 42px; }
  .live-table .c-qc { display: none; }
  .live-table .c-res .qc-sm { display: block; color: var(--green-ink); font-weight: 800; }
  .live-table .c-pos { width: 46px; }
  .pos-chip { min-width: 30px; height: 30px; font-size: .9rem; }
  .galeria-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .galeria-item { border-width: 2px; border-radius: 10px; box-shadow: 2px 2px 0 var(--ink); }
  .block { padding: 20px 16px; border-radius: 18px; }
  .block h2 { font-size: 1.5rem; }
  details > div { padding: 0 14px 10px; }
  summary { padding: 14px 48px 14px 14px; font-size: 1.02rem; }
}

/* ---------- Painel: revisão de uso no celular ---------- */
.adm-evento-det { margin-top: 16px; border-top: 2px dashed rgba(27, 27, 58, .15); padding-top: 10px; }
.adm-evento-det > summary, .adm-part-det > summary { min-height: 44px; display: flex; align-items: center; gap: 8px; }
.adm-evento-det summary small, .adm-part-det summary small { font-family: var(--font-body); font-weight: 600; color: var(--muted); font-size: .9rem; }
details.adm-details { border: 0; background: none; overflow: visible; margin: 0; }
details.adm-details > summary { padding: 6px 48px 6px 0; }
details.adm-details > summary::after { right: 0; }
.adm-part-det { margin-top: 14px; }
.adm-lancar-bar { position: sticky; top: var(--header-h); z-index: 5; background: var(--card); margin: 0 -10px; padding: 10px 10px 8px; border-bottom: 2px solid rgba(27, 27, 58, .12); display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
.adm-lancar-bar .adm-chips { margin: 0; flex: 1 1 400px; }
.adm-irmesa { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: .92rem; white-space: nowrap; }
.adm-irmesa input { width: 86px; font: inherit; padding: 8px 10px; border-radius: 12px; border: 2px solid var(--ink); background: var(--paper); text-align: center; }
.adm-chips button { min-height: 44px; }
.adm-tabs button { min-height: 46px; }
.adm-mesas { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
@media (max-width: 600px) {
  .adm-card { padding: 18px 14px; border-radius: 18px; }
  .adm-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .adm-tabs button { padding: .5em .4em; font-size: .95rem; }
  .adm-bar select { min-width: 0; width: 100%; }
  .adm-bar > label { flex: 1 1 100%; }
  .adm-lancar-bar { margin: 0 -4px; padding: 8px 4px; }
  .adm-lancar-bar .adm-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; flex: 1 1 100%; padding-bottom: 4px; }
  .adm-lancar-bar .adm-chips::-webkit-scrollbar { display: none; }
  .adm-lancar-bar .adm-chips button { flex: none; font-size: .9rem; }
  .adm-mesas { grid-template-columns: 1fr 1fr; gap: 8px; }
  .adm-mesa { padding: 8px 8px 10px; border-radius: 12px; }
  .adm-mesa .nm { font-size: .85rem; }
  .adm-mesa input { font-size: 1.1rem; padding: 8px 6px; }
  .adm-fotos { grid-template-columns: repeat(4, 1fr); }
  .adm-fotos button { width: 30px; height: 30px; }
}
.adm-mesa header { padding-right: 30px; }
.adm-evento-det > summary, .adm-part-det > summary { flex-wrap: wrap; row-gap: 0; }
/* faixa "ao vivo" da home: logo abaixo do cabeçalho */
main > .live-banner { margin-top: var(--header-h); position: relative; z-index: 3; }
main > .live-banner:not([hidden]) + .hero { padding-top: 20px; }

/* Sobre: Loja em breve + chamada final */
.sobre-fim { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 24px; align-items: stretch; }
.sobre-fim .cta-band { margin: 0; }
.closing-shop a { color: var(--yellow); font-weight: 700; }
@media (max-width: 860px) { .sobre-fim { grid-template-columns: 1fr; gap: 18px; } }
/* home termina no ranking: menos espaço antes do rodapé */
.ranking { margin-bottom: 0; }
.cta-band .btn.btn-ghost { background: #fff; }
/* jogo no fim da home: separa do rodapé (os dois são escuros) */
.play { border-top: var(--line); border-bottom: 4px solid var(--yellow); }
.site-nav a[data-nav="inicio"][aria-current="page"]:not(.is-active) { background: none; }

/* ---------- Texto das páginas editado no painel ---------- */
.block .btn-row { margin-top: 22px; }
.block .nota { margin-top: 12px; font-size: .95rem; color: var(--muted); }

/* ---------- Painel: lista e editor de eventos ---------- */
.adm-head { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.adm-evcards { display: grid; gap: 14px; }
.adm-evcard { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 14px 16px; border: var(--line); border-radius: 18px; background: var(--paper); cursor: pointer; transition: transform .15s, box-shadow .15s; }
.adm-evcard:hover { transform: translateY(-2px); box-shadow: 4px 4px 0 var(--ink); }
.adm-evcard img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; border: 2px solid var(--ink); background: #fff; }
.adm-evinfo h3 { font-size: 1.2rem; margin: 0 0 2px; }
.adm-evinfo p { margin: 2px 0; color: var(--muted); font-weight: 600; font-size: .95rem; }
.adm-evbtns { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.adm-badge { display: inline-block; font-family: var(--font-head); font-weight: 600; font-size: .8rem; padding: .15em .8em; border: 2px solid var(--ink); border-radius: 999px; background: #fff; }
.adm-badge.is-breve { background: #E6E8F7; } .adm-badge.is-ao_vivo { background: #FDE6E6; } .adm-badge.is-finalizado { background: #E3F4E7; } .adm-badge.is-rascunho { background: #FFF5CC; }
@media (max-width: 640px) { .adm-evcard { grid-template-columns: 56px minmax(0, 1fr); } .adm-evcard img { width: 56px; height: 56px; } .adm-evbtns { grid-column: 1 / -1; justify-content: flex-start; } }

.adm-editbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 14px; }
.adm-editbar h2 { font-size: 1.6rem; margin: 0; flex: 1 1 200px; }
.adm-subtabs { display: flex; gap: 8px; overflow-x: auto; margin-bottom: 18px; padding: 2px 2px 8px; scrollbar-width: none; }
.adm-subtabs::-webkit-scrollbar { display: none; }
.adm-subtabs button { flex: none; font-family: var(--font-head); font-weight: 600; font-size: 1rem; padding: .5em 1.1em; border: var(--line); border-radius: 999px; background: var(--card); cursor: pointer; min-height: 44px; }
.adm-subtabs button[aria-selected="true"] { background: var(--ink); color: #fff; }

.adm-choice { border: 0; padding: 0; margin: 4px 0 16px; display: grid; gap: 8px; }
.adm-choice legend { font-weight: 700; margin-bottom: 8px; padding: 0; }
.adm-choice label { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 2px solid var(--ink); border-radius: 14px; background: var(--paper); cursor: pointer; }
.adm-choice label:has(input:checked) { background: var(--yellow); }
.adm-choice input { margin-top: 4px; width: 20px; height: 20px; accent-color: var(--ink); flex: none; }
.adm-choice b { display: block; font-family: var(--font-head); font-size: 1.05rem; }
.adm-choice small { display: block; font-weight: 400; color: var(--ink); opacity: .75; }
.adm-avancado { margin: 10px 0 4px; }
.adm-perigo { border-color: var(--red); }
.adm-perigo h3 { margin: 0 0 4px; }

.adm-savebar { position: sticky; top: calc(var(--header-h) + 4px); z-index: 20; display: flex; gap: 12px; align-items: center; justify-content: flex-end; padding: 8px 12px; margin-bottom: 14px; background: rgba(255, 248, 236, .96); border: var(--line); border-radius: 999px; box-shadow: 3px 3px 0 var(--ink); }
.adm-dirty { font-weight: 800; color: var(--red); font-size: .92rem; }
.adm-switch { display: flex; gap: 10px; align-items: center; font-weight: 700; cursor: pointer; }
.adm-switch input { width: 22px; height: 22px; accent-color: var(--ink); }
.adm-sub { border: 2px dashed rgba(27, 27, 58, .25); border-radius: 14px; padding: 12px 14px; margin: 0 0 14px; }
.adm-capa { display: flex; gap: 16px; align-items: center; margin-bottom: 16px; flex-wrap: wrap; }
.adm-capa img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; border: 2px solid var(--ink); background: #fff; }
.adm-linha { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; align-items: center; }
.adm-linha input, .adm-linha select, .adm-field > .adm-grid2 input { font: inherit; font-weight: 400; padding: 9px 12px; border-radius: 12px; border: 2px solid var(--ink); background: var(--paper); }
.adm-linha input { flex: 1 1 180px; min-width: 0; }
.adm-x { width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--ink); background: #fff; cursor: pointer; font-size: 1.2rem; line-height: 1; }

.adm-sec { border: var(--line); border-radius: 18px; padding: 14px; margin-bottom: 16px; background: var(--paper); }
.adm-sec > header { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 10px; }
.adm-sec-t { flex: 1 1 240px; font-family: var(--font-head); font-weight: 600; font-size: 1.2rem; padding: 8px 12px; border-radius: 12px; border: 2px solid var(--ink); background: #fff; }
.adm-sec-ctl { display: flex; gap: 6px; }
.ed-tools { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 8px; margin-bottom: 8px; background: #fff; border: 2px solid var(--ink); border-radius: 14px; position: sticky; top: calc(var(--header-h) + 62px); z-index: 10; }
.ed-tools button { font: inherit; font-size: .88rem; font-weight: 700; padding: 6px 10px; min-height: 36px; border: 2px solid var(--ink); border-radius: 10px; background: var(--card); cursor: pointer; }
.ed-tools button:hover { background: var(--yellow); }
.ed-tools .ed-del { color: var(--red); }
.ed-sep { width: 2px; align-self: stretch; background: rgba(27, 27, 58, .2); margin: 0 4px; }
.ed-lbl { font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.ed-ctx { display: none; gap: 6px; align-items: center; flex-wrap: wrap; }
.adm-ed.block { box-shadow: none; margin: 0; min-height: 120px; background: #fff; cursor: text; }
.adm-ed:focus { outline: 3px solid var(--yellow); outline-offset: 2px; }
.adm-ed .ed-acc { border: 2px solid var(--ink); border-radius: 14px; margin: 10px 0; overflow: hidden; }
.adm-ed .ed-acc-t { font-family: var(--font-head); font-weight: 600; padding: 12px 16px; background: var(--paper); border-bottom: 2px solid var(--ink); }
.adm-ed .ed-acc-b { padding: 10px 16px; }
.adm-ed .table-wrap td, .adm-ed .table-wrap th { min-width: 80px; }
.adm-ed a { color: var(--blue); text-decoration: underline; }
.adm-add-sec { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 8px; }

/* Nível do participante (bolinha) e filtro por nível no ranking */
.nivel-dot { display: inline-block; width: .8em; height: .8em; border-radius: 50%; border: 2px solid var(--ink); margin-right: .5em; vertical-align: -.05em; flex: none; }
.nivel-iniciante { background: #F5C518; }
.nivel-intermediario { background: #2FB36B; }
.nivel-avancado { background: #E5484D; }
.live-niveis { display: flex; flex-wrap: wrap; gap: 6px; margin: -4px 0 12px; }
.live-niveis[hidden] { display: none; }
.live-niveis button { font: inherit; font-weight: 700; font-size: .9rem; padding: .35em .9em; border: 2px solid var(--ink); border-radius: 999px; background: var(--card); cursor: pointer; display: inline-flex; align-items: center; }
.live-niveis button .nivel-dot { margin-right: .45em; }
.live-niveis button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.live-niveis button:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

/* Painel: participantes (busca, filtros, páginas, janela de edição) */
.adm-mesa[hidden] { display: none; }
.adm-headrow { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.adm-headrow h2 { margin: 0; }
.adm-count { font-family: var(--font-body); font-weight: 600; color: var(--muted); font-size: .95rem; }
.adm-filtros { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; margin-bottom: 8px; }
.adm-filtros .adm-field { margin: 0; }
.adm-filtros .adm-busca { flex: 1 1 240px; }
.adm-filtros select { min-width: 170px; }
.adm-parts td { vertical-align: middle; }
.adm-parts .adm-nome { cursor: pointer; font-weight: 600; }
.adm-tag { display: inline-block; font-size: .65rem; font-weight: 800; padding: 1px 6px; border: 1.5px solid var(--muted); border-radius: 6px; color: var(--muted); vertical-align: middle; }
.adm-pager { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 12px; font-weight: 700; }
.adm-dialog { border: 3px solid var(--ink); border-radius: 18px; padding: 22px; width: min(560px, calc(100vw - 24px)); box-shadow: 6px 6px 0 var(--ink); background: var(--paper); color: var(--ink); }
.adm-dialog::backdrop { background: rgba(27, 27, 58, .55); }
.adm-dialog h3 { margin: 0 0 14px; }
.adm-dlg-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.adm-dlg-btns { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; }
.adm-dlg-btns .spacer { flex: 1; }
.adm-dialog .adm-field input, .adm-dialog .adm-field select { width: 100%; }
@media (max-width: 560px) { .adm-dlg-grid { grid-template-columns: 1fr; } .adm-filtros select { width: 100%; } .adm-filtros .adm-field { flex: 1 1 100%; } }
.adm-irmesa input[type="search"] { width: 170px; text-align: left; }
.adm-dlg-grid { align-items: end; }

/* Lançar resultados: lista (uma linha por pessoa, nome completo) */
.adm-lfiltros { margin-top: 12px; display: grid; gap: 8px; }
.adm-prog { display: flex; align-items: center; gap: 12px; font-size: .92rem; }
.adm-prog i { flex: 1; max-width: 260px; height: 10px; border: 2px solid var(--ink); border-radius: 999px; background: var(--paper); overflow: hidden; display: block; }
.adm-prog i b { display: block; height: 100%; background: #2FB36B; }
.adm-chips-s { margin: 0; }
.adm-chips-s button { min-height: 36px; font-size: .88rem; padding: .3em .9em; display: inline-flex; align-items: center; }
.adm-chips-s .nivel-dot { margin-right: .4em; }
.adm-sep { width: 2px; background: rgba(27, 27, 58, .2); margin: 4px 4px; }
.adm-mesas { display: flex !important; flex-direction: column; gap: 6px; margin-top: 12px; }
.adm-mesa { display: grid; grid-template-columns: 52px minmax(0, 1fr) 150px 120px; align-items: center; gap: 4px 12px; padding: 8px 12px; border-radius: 14px; }
.adm-mesa .pos { position: static; font-size: 1rem; text-align: center; font-family: var(--font-head); }
.adm-mesa .who { min-width: 0; display: flex; flex-direction: column; }
.adm-mesa .nm { font-size: 1.02rem; font-weight: 600; display: block; -webkit-line-clamp: unset; overflow: visible; }
.adm-mesa .who small { color: var(--muted); font-size: .8rem; }
.adm-mesa input { font-size: 1.15rem; padding: 8px 10px; }
.adm-mesa .opts { margin: 0; justify-content: center; flex-direction: column; align-items: center; gap: 2px; }
.adm-mesa .opts span { font-size: .75rem; color: var(--muted); }
@media (max-width: 640px) {
  .adm-mesas { display: flex !important; }
  .adm-mesa { grid-template-columns: 40px minmax(0, 1fr) 120px; grid-template-areas: "pos who who" "pos tempo opts"; padding: 10px; }
  .adm-mesa .pos { grid-area: pos; }
  .adm-mesa .who { grid-area: who; }
  .adm-mesa input[data-campo="tempo"] { grid-area: tempo; }
  .adm-mesa .opts { grid-area: opts; }
}

/* Participantes e resultados na mesma lista */
.adm-headbtns { display: flex; flex-wrap: wrap; gap: 8px; }
.adm-prog { margin: 6px 0 10px; }
.adm-parts .c-pos { font-family: var(--font-head); font-weight: 700; text-align: center; color: var(--muted); }
.adm-parts .adm-psub { display: block; color: var(--muted); font-weight: 400; font-size: .8rem; }
.adm-parts .c-in input { width: 100%; font-family: var(--font-head); font-size: 1.1rem; font-weight: 600; text-align: center; padding: 8px 10px; }
.adm-parts .c-in input + input { margin-top: 6px; }
.adm-parts .c-nt { text-align: center; font-size: .8rem; color: var(--muted); }
.adm-parts .c-nt span { display: block; }
.adm-link { background: none; border: 0; padding: 2px 0; text-decoration: underline; cursor: pointer; color: var(--muted); font: inherit; font-size: .8rem; }
.adm-prow.is-saved td { background: #E5F6E9; }
.adm-prow.is-error td { background: #FFE1E1; }
.adm-prow.is-dnf td { background: #EEE; }
.adm-prow td { transition: background .3s; }
@media (max-width: 640px) {
  .adm-parts thead { display: none; }
  .adm-parts, .adm-parts tbody { display: block; }
  .adm-parts tr.adm-prow { display: grid; grid-template-columns: 36px 1fr auto; grid-template-areas: "pos nome ed" "pos in nt"; gap: 4px 8px; padding: 10px 6px; border-bottom: 1px solid rgba(27, 27, 58, .15); }
  .adm-parts tr.adm-prow td { padding: 0; border: 0; }
  .adm-parts .c-pos { grid-area: pos; } .adm-parts .adm-nome { grid-area: nome; } .adm-parts .c-in { grid-area: in; } .adm-parts .c-nt { grid-area: nt; } .adm-parts td:last-child { grid-area: ed; }
}
@media (max-width: 640px) {
  .adm-parts .adm-nome { min-width: 0; }
  .adm-parts .c-in input { max-width: 100%; box-sizing: border-box; }
  .adm-parts tr.adm-prow { grid-template-columns: 36px minmax(0, 1fr) auto; }
  .adm-table { overflow-x: visible; }
}
@media (max-width: 640px) {
  .adm-parts { width: 100%; min-width: 0; table-layout: fixed; }
  .adm-parts tr.adm-prow { grid-template-columns: 36px minmax(0, 1fr) 84px; grid-template-areas: "pos nome nome" "pos in ed" "pos nt nt"; }
  .adm-parts .c-nt { text-align: left; }
  .adm-parts td:last-child .btn { width: 100%; }
  .table-wrap.adm-table { overflow-x: hidden; }
}
.adm-parts .c-in input::placeholder { font-size: .72rem; font-weight: 400; }
