/* =========================================================
   Associação de Xadrez da Amadora — protótipo de site
   ========================================================= */
:root {
  --ink: #120d0e;
  --ink-2: #1b1315;
  --ink-3: #271b1e;
  --ink-4: #352428;
  --line-d: rgba(241, 228, 222, .11);
  --text-d: #f1e7e1;
  --muted-d: #a8999a;

  --paper: #f7f3f1;
  --paper-2: #efe6e3;
  --card: #ffffff;
  --line: #e4d8d5;
  --text: #1d1517;
  --muted: #6f6164;

  --wine: #6e1a2a;
  --wine-2: #8f2b3e;
  --wine-soft: #f3e3e5;
  --gold: #8f2b3e;     /* acento (bordô) */
  --gold-2: #d99aa5;   /* acento claro sobre fundo escuro */
  --live: #e0483d;
  --ok: #3d7a55;
  --warn: #b27a22;
  --danger: #a8423a;

  --sq-light: #efe7e3;
  --sq-dark: #a88f92;

  --display: "Marcellus", "Times New Roman", serif;
  --label: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --r: 14px;
  --r-sm: 9px;
  --shadow: 0 1px 2px rgba(0,0,0,.05), 0 8px 30px rgba(0,0,0,.06);
  --wrap: 1200px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font: 400 16px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 400; line-height: 1.15; margin: 0 0 .5em; letter-spacing: .01em; }
h1 { font-size: clamp(2.3rem, 5vw, 4.2rem); }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.7rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }
@media (max-width: 640px) { .wrap { padding: 0 16px; } }

.eyebrow {
  font-family: var(--label); font-weight: 300; text-transform: uppercase;
  letter-spacing: .38em; font-size: .9rem; color: var(--muted); margin-bottom: 14px; display: block;
}
.dark .eyebrow, .eyebrow.on-dark { color: var(--muted-d); }
.muted { color: var(--muted); }
.dark .muted { color: var(--muted-d); }
.small { font-size: .875rem; }
.tiny { font-size: .78rem; }
.center { text-align: center; }
.hidden { display: none !important; }

/* ---------- Demo ribbon + aviso ---------- */
.demo-bar {
  background: var(--wine); color: #f6e9ea; font-size: .8rem; text-align: center;
  padding: 6px 12px; letter-spacing: .02em;
}
.demo-bar b { font-weight: 600; }
.aviso-bar { background: var(--ink-3); color: var(--text-d); font-size: .88rem; text-align: center; padding: 9px 16px; }
.aviso-bar a { color: var(--gold-2); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(12, 12, 13, .92); backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line-d); color: var(--text-d);
}
.nav { display: flex; align-items: center; gap: 24px; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex-shrink: 0; }
.brand img { height: 40px; width: auto; }
.brand .bt { font-family: var(--display); font-size: 1.02rem; line-height: 1.1; letter-spacing: .06em; text-transform: uppercase; }
.brand .bt small { display: block; font-family: var(--label); font-weight: 300; letter-spacing: .32em; font-size: .68rem; color: var(--muted-d); margin-top: 3px; }
.nav-links { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav-links a {
  text-decoration: none; font-size: .87rem; padding: 8px 11px; border-radius: 8px; color: #cfcdc7;
  display: inline-flex; align-items: center; gap: 7px; white-space: nowrap;
}
.nav-links a:hover { color: #fff; background: rgba(255,255,255,.06); }
.nav-links a.active { color: #fff; }
.nav-links a.active::after { content: ""; }
.nav-links .btn { margin-left: 10px; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line-d); border-radius: 8px; color: #fff; padding: 8px 12px; cursor: pointer; }
@media (max-width: 1060px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; left: 0; right: 0; top: 72px; flex-direction: column; align-items: stretch;
    background: var(--ink); border-bottom: 1px solid var(--line-d); padding: 10px 16px 18px; display: none; gap: 2px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px; font-size: 1rem; }
  .nav-links .btn { margin: 8px 0 0; justify-content: center; }
}

.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--live); display: inline-block; position: relative; flex-shrink: 0; }
.live-dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--live); opacity: 0; animation: pulse 1.8s ease-out infinite; }
@keyframes pulse { 0% { transform: scale(.5); opacity: .9; } 100% { transform: scale(1.6); opacity: 0; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: 999px; border: 1px solid transparent; cursor: pointer;
  font-size: .92rem; font-weight: 500; text-decoration: none; transition: .15s ease; white-space: nowrap;
}
.btn-light { background: var(--text-d); color: var(--ink); }
.btn-light:hover { background: #fff; }
.btn-dark { background: var(--wine); color: #fff; }
.btn-dark:hover { background: var(--wine-2); }
.btn-gold { background: var(--wine); color: #fff; }
.btn-gold:hover { background: var(--gold-2); }
.btn-ghost { background: transparent; border-color: currentColor; }
.btn-ghost:hover { background: rgba(127,127,127,.12); }
.btn-ghost-d { background: transparent; color: var(--text-d); border-color: rgba(255,255,255,.28); }
.btn-ghost-d:hover { border-color: #fff; }
.btn-sm { padding: 7px 14px; font-size: .84rem; }
.btn-xs { padding: 4px 10px; font-size: .78rem; }
.btn-danger { background: transparent; color: var(--danger); border-color: rgba(168,66,58,.4); }
.btn-danger:hover { background: rgba(168,66,58,.08); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

/* ---------- Sections ---------- */
section { padding: 96px 0; }
@media (max-width: 640px) { section { padding: 64px 0; } }
.dark { background: var(--ink); color: var(--text-d); }
.dark-2 { background: var(--ink-2); color: var(--text-d); }
.paper-2 { background: var(--paper-2); }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 40px; flex-wrap: wrap; }
.sec-head h2 { margin: 0; }
.sec-head p { max-width: 520px; margin: 10px 0 0; }

.grid { display: grid; gap: 24px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .g3, .g4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 26px; }
.dark .card, .card.d { background: var(--ink-2); border-color: var(--line-d); color: var(--text-d); }
.card h3 { margin-bottom: .35em; }
a.card { text-decoration: none; display: block; transition: transform .2s, box-shadow .2s; }
a.card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }

.badge { display: inline-flex; align-items: center; gap: 6px; font-size: .74rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; letter-spacing: .04em; text-transform: uppercase; background: var(--paper-2); color: var(--muted); }
.badge.live { background: rgba(224,72,61,.14); color: var(--live); }
.badge.casa { background: #e7efe9; color: var(--ok); }
.badge.fora { background: #f3ead9; color: var(--warn); }
.badge.torneio { background: #ebe7f3; color: #5b4a8a; }
.badge.formacao { background: #e5edf3; color: #345e7d; }
.badge.evento { background: var(--paper-2); color: var(--muted); }
.badge.gold { background: var(--wine-soft); color: var(--wine); }
.dark .badge { background: rgba(255,255,255,.08); color: #d6d3cc; }
.dark .badge.live { background: rgba(224,72,61,.18); color: #ff7b70; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 84px 0 96px; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(900px 500px at 78% 30%, rgba(143,43,62,.22), transparent 60%),
    radial-gradient(700px 400px at 10% 110%, rgba(255,255,255,.05), transparent 60%);
  pointer-events: none;
}
.hero-mark { position: absolute; right: -60px; bottom: -80px; width: 520px; opacity: .04; pointer-events: none; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; position: relative; }
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; gap: 40px; } }
.hero h1 { text-transform: uppercase; letter-spacing: .05em; font-size: clamp(2.2rem, 4.6vw, 3.9rem); margin-bottom: .35em; }
.hero h1 span { display: block; color: var(--muted-d); }
.hero .lead { font-size: 1.12rem; color: #c9c6bf; max-width: 560px; margin-bottom: 30px; }
.desde { display: flex; align-items: center; gap: 18px; font-family: var(--label); font-weight: 300; letter-spacing: .5em; color: #d9d6cf; font-size: 1rem; margin-bottom: 26px; }
.desde img { height: 46px; }

.live-card { background: var(--ink-2); border: 1px solid var(--line-d); border-radius: 18px; padding: 18px; box-shadow: 0 30px 80px rgba(0,0,0,.45); }
.live-card .lc-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; font-size: .84rem; color: var(--muted-d); }
.player-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 2px; font-size: .92rem; }
.player-row .pn { display: flex; align-items: center; gap: 9px; min-width: 0; }
.player-row .pn b { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player-row .elo { color: var(--muted-d); font-size: .8rem; }
.swatch { width: 12px; height: 12px; border-radius: 3px; border: 1px solid rgba(0,0,0,.35); flex-shrink: 0; }
.swatch.w { background: #f3f0ea; } .swatch.b { background: #222; border-color: #555; }
.clock { font-variant-numeric: tabular-nums; font-family: var(--body); font-weight: 600; padding: 4px 10px; border-radius: 7px; background: rgba(255,255,255,.06); color: #aaa; font-size: .9rem; }
.clock.run { background: var(--text-d); color: var(--ink); }
.light-ui .clock { background: var(--paper-2); color: var(--muted); }
.light-ui .clock.run { background: var(--ink); color: #fff; }
.light-ui .player-row .elo { color: var(--muted); }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line-d); margin-top: 72px; padding-top: 36px; gap: 20px; position: relative; }
.stat b { display: block; font-family: var(--display); font-size: 2.4rem; font-weight: 400; color: #fff; line-height: 1; }
.stat span { font-family: var(--label); text-transform: uppercase; letter-spacing: .3em; font-size: .8rem; color: var(--muted-d); }
@media (max-width: 640px) { .stats { grid-template-columns: repeat(2, 1fr); margin-top: 48px; } }

/* ---------- Event list ---------- */
.ev { display: grid; grid-template-columns: 76px 1fr auto; gap: 20px; align-items: center; padding: 18px 20px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); }
.ev + .ev { margin-top: 12px; }
.ev-date { text-align: center; border-right: 1px solid var(--line); padding-right: 16px; }
.ev-date b { display: block; font-family: var(--display); font-size: 2rem; font-weight: 400; line-height: 1; }
.ev-date span { font-family: var(--label); text-transform: uppercase; letter-spacing: .2em; font-size: .78rem; color: var(--muted); }
.ev h4 { font-family: var(--body); font-weight: 600; font-size: 1.02rem; margin: 6px 0 4px; }
.ev .meta { display: flex; flex-wrap: wrap; gap: 4px 16px; color: var(--muted); font-size: .86rem; }
.ev .meta span { display: inline-flex; align-items: center; gap: 6px; }
.ev-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 720px) { .ev { grid-template-columns: 64px 1fr; } .ev-actions { grid-column: 1 / -1; justify-content: flex-start; } }

.icon { width: 15px; height: 15px; flex-shrink: 0; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Features ---------- */
.feat { padding: 30px; }
.feat .num { font-family: var(--label); letter-spacing: .3em; color: var(--gold); font-size: .85rem; }
.feat h3 { margin-top: 18px; }

/* ---------- News ---------- */
.news-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; text-decoration: none; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.news-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.news-card .body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.news-card h3 { font-size: 1.25rem; margin: 0; }
.news-card p { color: var(--muted); font-size: .94rem; margin: 0; }
.cover { aspect-ratio: 16 / 9; background: var(--ink); position: relative; overflow: hidden; }
.cover img { width: 100%; height: 100%; object-fit: cover; }
.cover.gen {
  background:
    repeating-conic-gradient(rgba(255,255,255,.035) 0 25%, transparent 0 50%) 0 0 / 44px 44px,
    radial-gradient(circle at 70% 30%, #2a2a2e, var(--ink));
  display: flex; align-items: center; justify-content: center;
}
.cover.gen img { width: auto; height: 46%; object-fit: contain; opacity: .9; }
.cover.shirt { background: #fff; }
.cover.shirt img { object-fit: contain; transform: scale(1.35); }
.article { max-width: 760px; margin: 0 auto; }
.article .cover { border-radius: var(--r); margin: 28px 0 34px; }
.article .content p { font-size: 1.06rem; }

/* ---------- Shirts ---------- */
.shirts { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.shirt-frame { background: #f4f2ee; border-radius: 18px; overflow: hidden; position: relative; aspect-ratio: 1; }
.shirt-frame img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.18); }
.shirt-frame .tag { position: absolute; left: 14px; top: 14px; }
.shirt-name {
  position: absolute; left: 50%; top: 27.2%; transform: translate(-50%, -50%);
  font-family: var(--display); color: #f3f1ec; letter-spacing: .06em; font-size: clamp(.8rem, 2.6vw, 1.5rem);
  white-space: nowrap; text-transform: uppercase; pointer-events: none;
}
.shirt-mask { position: absolute; left: 34%; top: 23%; width: 33%; height: 8.6%; background: #0b0b0b; border-radius: 4px; }
@media (max-width: 640px) { .shirts { grid-template-columns: 1fr; } }

/* ---------- Forms ---------- */
label.f { display: block; font-size: .84rem; font-weight: 500; margin-bottom: 14px; }
label.f > span { display: block; margin-bottom: 6px; color: var(--muted); }
.dark label.f > span { color: var(--muted-d); }
input[type=text], input[type=email], input[type=tel], input[type=date], input[type=time], input[type=number], input[type=password], input[type=search], select, textarea {
  width: 100%; padding: 11px 14px; border-radius: var(--r-sm); border: 1px solid var(--line); background: #fff; outline: none; font-size: .95rem;
}
input:focus, select:focus, textarea:focus { border-color: var(--wine-2); box-shadow: 0 0 0 3px rgba(143,43,62,.15); }
textarea { resize: vertical; min-height: 110px; line-height: 1.5; }
.dark input, .dark select, .dark textarea { background: var(--ink-3); border-color: var(--line-d); color: var(--text-d); }
.frow { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.frow3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 16px; }
@media (max-width: 640px) { .frow, .frow3 { grid-template-columns: 1fr; } }
.check { display: flex; align-items: center; gap: 10px; font-size: .9rem; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--ink); }

.newsletter { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.nl-form { display: flex; gap: 10px; }
.nl-form input { flex: 1; border-radius: 999px; padding: 13px 20px; }
@media (max-width: 860px) { .newsletter { grid-template-columns: 1fr; gap: 24px; } .nl-form { flex-direction: column; } }

/* ---------- Footer ---------- */
footer { background: var(--ink); color: var(--muted-d); padding: 64px 0 32px; font-size: .9rem; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
footer h4 { font-family: var(--label); text-transform: uppercase; letter-spacing: .3em; font-size: .8rem; color: #fff; font-weight: 400; margin-bottom: 16px; }
footer a { text-decoration: none; color: var(--muted-d); display: block; padding: 3px 0; }
footer a:hover { color: #fff; }
.foot-logo { width: 220px; margin-bottom: 18px; }
.foot-bottom { border-top: 1px solid var(--line-d); margin-top: 48px; padding-top: 24px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .8rem; }
.foot-bottom { align-items: center; }

/* Apoios (faixa clara no topo do rodapé) */
footer:has(.apoios) { padding-top: 0; }
.apoios { background: #fff; padding: 32px 0 36px; margin-bottom: 64px; }
footer .apoios h4 { color: var(--muted); text-align: center; margin-bottom: 20px; }
.apoios-logos { display: flex; justify-content: space-around; align-items: center; gap: 24px 40px; flex-wrap: wrap; }
footer .apoios a { display: block; padding: 0; transition: opacity .2s, transform .2s; }
footer .apoios a:hover { opacity: .75; transform: translateY(-2px); }
.apoios img { display: block; width: auto; }
.apoios .ap-ipdj { height: 130px; }
.apoios .ap-cma { height: 150px; margin: -10px 0; }
.apoios .ap-jf { height: 120px; }
@media (max-width: 640px) {
  .apoios .ap-ipdj { height: 96px; }
  .apoios .ap-cma, .apoios .ap-jf { height: 96px; }
}

/* Crédito JonguiLDA */
footer a.dev-by { display: inline-flex; align-items: baseline; gap: 10px; padding: 0; }
.jongui { display: inline-flex; align-items: baseline; gap: 5px; line-height: 1; }
.jongui b { font-family: "Space Grotesk", var(--body); font-weight: 700; font-size: 1.15rem; letter-spacing: -.03em; color: #fff; }
.jongui i { font-family: "IBM Plex Mono", ui-monospace, monospace; font-style: normal; font-weight: 500; font-size: .62rem; letter-spacing: .3em; color: #5cc872; }
footer a.dev-by:hover .jongui b { color: #5cc872; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: 1fr; } }

/* ---------- Page header ---------- */
.page-head { padding: 72px 0 56px; position: relative; overflow: hidden; }
.page-head h1 { font-size: clamp(2rem, 4vw, 3.2rem); text-transform: uppercase; letter-spacing: .05em; margin-bottom: .3em; }
.page-head p { max-width: 640px; color: #c9c6bf; font-size: 1.05rem; margin: 0; }
.page-head .hero-mark { width: 360px; right: -40px; bottom: -120px; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th, td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { font-family: var(--label); font-weight: 500; text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; color: var(--muted); background: #fbfaf7; }
tr:last-child td { border-bottom: 0; }
td input, td select { padding: 7px 10px; font-size: .88rem; }

/* ---------- Chess board ---------- */
.board {
  display: grid; grid-template-columns: repeat(8, 1fr); grid-template-rows: repeat(8, 1fr);
  aspect-ratio: 1; width: 100%; border-radius: 6px; overflow: hidden; user-select: none;
  box-shadow: 0 0 0 1px rgba(0,0,0,.25);
}
.sq { position: relative; }
.sq.l { background: var(--sq-light); }
.sq.d { background: var(--sq-dark); }
.sq.last.l { background: #e9c6cb; } .sq.last.d { background: #b77e88; }
.sq.sel { box-shadow: inset 0 0 0 3px rgba(12,12,13,.65); }
.sq.check { background: radial-gradient(circle, rgba(224,72,61,.9) 0%, rgba(224,72,61,.35) 45%, transparent 75%) !important; }
.sq.target::after { content: ""; position: absolute; left: 50%; top: 50%; width: 28%; height: 28%; transform: translate(-50%, -50%); border-radius: 50%; background: rgba(12,12,13,.28); }
.sq.target.cap::after { width: 86%; height: 86%; background: transparent; border: 5px solid rgba(12,12,13,.28); }
.board.interactive .sq { cursor: pointer; }
.cg-wrap piece { position: absolute; inset: 0; background-size: cover; display: block; z-index: 1; }
.sq .co { position: absolute; font-size: 10px; font-weight: 600; z-index: 2; line-height: 1; opacity: .8; }
.sq .co.f { right: 3px; bottom: 2px; } .sq .co.r { left: 3px; top: 3px; }
.sq.l .co { color: var(--sq-dark); } .sq.d .co { color: var(--sq-light); }
.mini .sq .co { display: none; }

/* ---------- Viewer ---------- */
.viewer { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; }
@media (max-width: 920px) { .viewer { grid-template-columns: 1fr; } }
.v-board-wrap { max-width: 640px; width: 100%; }
.v-side { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); display: flex; flex-direction: column; max-height: 680px; }
.dark .v-side { background: var(--ink-2); border-color: var(--line-d); }
.v-side .v-head { padding: 18px 20px; border-bottom: 1px solid var(--line); }
.dark .v-side .v-head { border-color: var(--line-d); }
.moves { overflow-y: auto; padding: 10px 12px; flex: 1; min-height: 180px; display: grid; grid-template-columns: 38px 1fr 1fr; align-content: start; font-size: .92rem; }
.moves .mn { color: var(--muted); padding: 5px 4px; font-variant-numeric: tabular-nums; }
.dark .moves .mn { color: var(--muted-d); }
.moves .mv { padding: 5px 8px; border-radius: 6px; cursor: pointer; font-weight: 500; }
.moves .mv:hover { background: rgba(127,127,127,.12); }
.moves .mv.cur { background: var(--ink); color: #fff; }
.dark .moves .mv.cur { background: var(--text-d); color: var(--ink); }
.moves .res { grid-column: 1 / -1; text-align: center; padding: 10px; font-weight: 600; color: var(--muted); }
.v-ctrl { display: flex; gap: 6px; padding: 12px; border-top: 1px solid var(--line); justify-content: center; flex-wrap: wrap; }
.dark .v-ctrl { border-color: var(--line-d); }
.ib { width: 42px; height: 38px; border-radius: 9px; border: 1px solid var(--line); background: #fff; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.ib:hover { background: var(--paper-2); }
.dark .ib { background: var(--ink-3); border-color: var(--line-d); color: var(--text-d); }
.dark .ib:hover { background: var(--ink-4); }
.ib svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ib.on { background: var(--ink); color: #fff; }

/* ---------- Live page ---------- */
.match-bar { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 22px 26px; border: 1px solid var(--line-d); border-radius: var(--r); background: var(--ink-2); margin-bottom: 26px; }
.match-bar .teams { display: flex; align-items: center; gap: 22px; font-family: var(--display); font-size: 1.35rem; flex-wrap: wrap; }
.match-bar .score { font-family: var(--display); font-size: 2rem; padding: 0 10px; color: #fff; }
.boards-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 28px; }
@media (max-width: 860px) { .boards-strip { grid-template-columns: repeat(2, 1fr); } }
.bmini { background: var(--ink-2); border: 1px solid var(--line-d); border-radius: 12px; padding: 10px; cursor: pointer; text-align: left; color: var(--text-d); transition: border-color .15s; }
.bmini:hover { border-color: rgba(255,255,255,.3); }
.bmini.on { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold); }
.bmini .bm-t { display: flex; justify-content: space-between; font-size: .76rem; color: var(--muted-d); margin-bottom: 7px; gap: 6px; }
.bmini .bm-p { font-size: .78rem; margin-top: 7px; line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.how { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.how .step { border: 1px solid var(--line-d); border-radius: var(--r); padding: 22px; background: var(--ink-2); position: relative; }
.how .step b { font-family: var(--label); letter-spacing: .3em; color: var(--gold); font-weight: 400; font-size: .85rem; }
.how .step h4 { font-family: var(--body); font-weight: 600; font-size: 1rem; margin: 10px 0 6px; }
.how .step p { font-size: .88rem; color: var(--muted-d); margin: 0; }
@media (max-width: 860px) { .how { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .how { grid-template-columns: 1fr; } }

/* ---------- Games list ---------- */
.game-card { display: grid; grid-template-columns: 110px 1fr; gap: 18px; align-items: center; padding: 16px; text-decoration: none; }
.game-card .mini { width: 110px; }
.game-card h4 { font-family: var(--body); font-weight: 600; font-size: 1rem; margin: 6px 0 2px; }
.res-pill { font-weight: 700; font-variant-numeric: tabular-nums; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.chip { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff; cursor: pointer; font-size: .86rem; }
.chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- Timetable ---------- */
.tt { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.tt-day h4 { font-family: var(--label); text-transform: uppercase; letter-spacing: .25em; font-size: .8rem; font-weight: 500; color: var(--muted); margin: 0 0 10px; }
.tt-slot { background: var(--card); border: 1px solid var(--line); border-left: 3px solid var(--ink); border-radius: 10px; padding: 12px; margin-bottom: 10px; font-size: .86rem; }
.tt-slot b { display: block; font-weight: 600; }
.tt-slot .t { font-variant-numeric: tabular-nums; color: var(--muted); font-size: .8rem; }
.tt-slot.niv-ini { border-left-color: #6d9c7e; } .tt-slot.niv-int { border-left-color: var(--wine-2); } .tt-slot.niv-ava { border-left-color: var(--ink); } .tt-slot.niv-liv { border-left-color: #8a8fa0; }
@media (max-width: 960px) { .tt { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .tt { grid-template-columns: 1fr; } }

/* ---------- Dashboard ---------- */
.dash { display: grid; grid-template-columns: 260px minmax(0, 1fr); min-height: calc(100vh - 72px); }
.side { background: var(--ink); color: var(--text-d); padding: 24px 14px; position: sticky; top: 72px; height: calc(100vh - 72px); overflow-y: auto; }
.side .who { display: flex; align-items: center; gap: 12px; padding: 8px 10px 22px; border-bottom: 1px solid var(--line-d); margin-bottom: 14px; }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--wine-2); color: #fbeff1; display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: .9rem; flex-shrink: 0; }
.side .who b { display: block; font-weight: 500; font-size: .95rem; }
.side .who span { font-size: .78rem; color: var(--muted-d); }
.side a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 9px; text-decoration: none; color: #bdbab3; font-size: .9rem; }
.side a:hover { background: rgba(255,255,255,.05); color: #fff; }
.side a.on { background: rgba(255,255,255,.09); color: #fff; }
.side a .cnt { margin-left: auto; background: var(--wine-2); color: #fff; font-size: .72rem; font-weight: 700; border-radius: 999px; padding: 1px 8px; }
.side .grp { font-family: var(--label); text-transform: uppercase; letter-spacing: .3em; font-size: .7rem; color: #6d6a64; padding: 16px 12px 6px; }
.dmain { padding: 34px 40px 60px; min-width: 0; }
.dmain h1 { font-size: 2rem; text-transform: none; letter-spacing: .01em; }
.dhead { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 26px; }
.dhead p { margin: 0; color: var(--muted); }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 26px; }
.kpi { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; }
.kpi span { font-size: .8rem; color: var(--muted); }
.kpi b { display: block; font-family: var(--display); font-weight: 400; font-size: 1.9rem; line-height: 1.2; margin-top: 4px; }
.kpi small { font-size: .78rem; color: var(--muted); }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 22px 24px; margin-bottom: 22px; }
.panel > h3 { font-family: var(--body); font-weight: 600; font-size: 1.02rem; margin-bottom: 14px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.list-row { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.list-row:last-child { border-bottom: 0; }
.list-row .grow { flex: 1; min-width: 180px; }
.list-row b { font-weight: 600; }
.empty { padding: 28px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--r); }
.help { background: #fbf2f3; border: 1px solid #ecd2d6; border-radius: var(--r-sm); padding: 12px 16px; font-size: .88rem; color: var(--wine); margin-bottom: 18px; }
.mob-dash-nav { display: none; }
@media (max-width: 900px) {
  .dash { grid-template-columns: minmax(0, 1fr); }
  .side { display: none; }
  .mob-dash-nav { display: block; padding: 12px 16px; background: var(--ink); position: sticky; top: 72px; z-index: 20; }
  .mob-dash-nav select { background: var(--ink-3); color: #fff; border-color: var(--line-d); }
  .dmain { padding: 24px 16px 48px; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
}

.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.slot { border: 1px solid var(--line); border-radius: 10px; padding: 12px; background: #fff; cursor: pointer; text-align: left; transition: .15s; }
.slot:hover { border-color: var(--ink); }
.slot b { display: block; font-size: .95rem; }
.slot span { font-size: .8rem; color: var(--muted); }
.slot.taken { background: var(--paper-2); cursor: not-allowed; opacity: .6; }
.slot.mine { background: var(--ink); color: #fff; border-color: var(--ink); }
.slot.mine span { color: #bbb; }

.role-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.role-card { cursor: pointer; text-align: left; border: 1px solid var(--line-d); background: var(--ink-2); color: var(--text-d); border-radius: 16px; padding: 26px; transition: .15s; }
.role-card:hover { border-color: var(--gold); transform: translateY(-2px); }
.role-card h3 { margin: 16px 0 6px; }
.role-card p { color: var(--muted-d); font-size: .9rem; margin: 0; }
@media (max-width: 760px) { .role-cards { grid-template-columns: 1fr; } }

.email-preview { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: #fff; }
.email-preview .eh { background: var(--ink); color: #fff; padding: 22px; text-align: center; }
.email-preview .eh img { height: 54px; margin: 0 auto 8px; }
.email-preview .eb { padding: 24px 28px; font-size: .95rem; }
.email-preview .ef { padding: 14px; text-align: center; font-size: .75rem; color: var(--muted); border-top: 1px solid var(--line); }

/* ---------- Toast & modal ---------- */
.toast { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%) translateY(20px); background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 12px; font-size: .9rem; opacity: 0; transition: .25s; z-index: 200; box-shadow: 0 10px 30px rgba(0,0,0,.3); max-width: calc(100% - 32px); }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.modal-bg { position: fixed; inset: 0; background: rgba(10,10,10,.55); z-index: 150; display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal { background: var(--paper); border-radius: 18px; max-width: 560px; width: 100%; padding: 28px; max-height: 90vh; overflow-y: auto; }

.pill-tabs { display: inline-flex; background: var(--paper-2); border-radius: 999px; padding: 4px; gap: 2px; flex-wrap: wrap; }
.pill-tabs button { border: 0; background: transparent; padding: 7px 16px; border-radius: 999px; cursor: pointer; font-size: .86rem; }
.pill-tabs button.on { background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.1); font-weight: 500; }

.err { color: var(--danger); font-size: .86rem; }
.okc { color: var(--ok); }
.divider { height: 1px; background: var(--line); margin: 22px 0; }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
@media (max-width: 1100px) { .two-col { grid-template-columns: 1fr; } }
.palmares li { padding: 12px 0; border-bottom: 1px solid var(--line-d); display: flex; justify-content: space-between; gap: 16px; }
.palmares { list-style: none; padding: 0; margin: 0; }
.palmares .pos { font-family: var(--display); color: var(--gold-2); white-space: nowrap; }

/* ajustes */
.nav-links a.btn-light { color: var(--ink); }
.nav-links a.btn-light:hover { color: var(--ink); background: #fff; }
.hero .live-card { max-width: 440px; margin-left: auto; }
@media (max-width: 960px) { .hero .live-card { margin: 0 auto; } }
.badge { white-space: nowrap; }
.moves { position: relative; }
.v-board-wrap { max-width: min(620px, calc(100vh - 160px)); margin: 0 auto; }
@media (max-width: 920px) { .v-board-wrap { max-width: 640px; } }
.bmini.row { display: grid; grid-template-columns: 76px 1fr; gap: 12px; align-items: center; padding: 10px 12px; }
.bmini.row .bm-p { margin-top: 2px; line-height: 1.6; }
.bmini.row .bm-t { margin-bottom: 2px; }
@media (max-width: 1100px) { .boards-strip:has(.row) { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .bmini.row { grid-template-columns: 56px 1fr; } }
a.card.game-card, .card.game-card { display: grid; }
.v-side { max-height: min(680px, calc(100vh - 130px)); position: sticky; top: 96px; }
@media (max-width: 920px) { .v-side { position: static; max-height: 460px; } }
.kpi b { font-family: var(--body); font-weight: 600; font-size: 1.6rem; letter-spacing: -.01em; }
.match-bar .score { font-family: var(--body); font-weight: 600; font-variant-numeric: tabular-nums; }
@media (max-width: 640px) {
  .match-bar { padding: 18px; }
  .match-bar .teams { font-size: 1.05rem; gap: 10px; flex-wrap: nowrap; }
  .match-bar .score { font-size: 1.3rem; padding: 0 4px; white-space: nowrap; }
}
.two-col.shop { grid-template-columns: 1.1fr .9fr; }
@media (max-width: 1100px) { .two-col.shop { grid-template-columns: 1fr; } }
.shirt-frame { container-type: inline-size; }
.shirt-name { font-size: 6.2cqw; }
.shirt-mask { left: 32%; width: 36%; top: 20.4%; height: 5%; background: #0e0e0e; border-radius: 3px; }
.shirt-name { top: 22.9%; font-size: 4.5cqw; letter-spacing: .08em; }
.shirt-mask { background: #252327; filter: blur(2px); border-radius: 6px; }

/* ---------- Tema bordô ---------- */
h1, h2 { color: var(--wine); }
.dark h1, .dark h2, .dark-2 h1, .dark-2 h2, .page-head h1, .hero h1, .match-bar h2 { color: var(--text-d); }
.hero h1 span { color: var(--gold-2); }
.eyebrow { color: var(--wine-2); }
.dark .eyebrow, .dark-2 .eyebrow, .eyebrow.on-dark, .page-head .eyebrow { color: var(--gold-2); }
.stat b { color: var(--text-d); }
.nav-links a.active { color: var(--gold-2); }
.chip.on, .moves .mv.cur, .ib.on, .slot.mine { background: var(--wine); border-color: var(--wine); color: #fff; }
.dark .moves .mv.cur { background: var(--gold-2); color: var(--ink); }
.light-ui .clock.run { background: var(--wine); }
.clock.run { background: var(--text-d); }
.tt-slot.hl { background: var(--wine-soft); }
.logo-tint { display: block; background: var(--wine); -webkit-mask-position: center; mask-position: center; -webkit-mask-size: contain; mask-size: contain; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; }
.logo-tint.ivory { background: var(--text-d); }
.logo-tint.rose { background: var(--gold-2); }

/* ---------- Análise ---------- */
.bwrap { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 8px; align-items: stretch; }
.bwrap.no-eval { grid-template-columns: minmax(0, 1fr); }
.evalbar { position: relative; border-radius: 4px; overflow: hidden; background: #2b2125; box-shadow: 0 0 0 1px rgba(0,0,0,.25); }
.eb-w { position: absolute; left: 0; right: 0; bottom: 0; height: 50%; background: #f4ece8; transition: height .45s ease; }
.evalbar.flip .eb-w { bottom: auto; top: 0; }
.eb-t { position: absolute; left: 0; right: 0; bottom: 4px; text-align: center; font-size: 9px; font-weight: 700; color: #2b2125; z-index: 1; letter-spacing: -.02em; }
.evalbar.flip .eb-t { bottom: auto; top: 4px; }
.eb-t.top { bottom: auto; top: 4px; color: #f4ece8; }
.evalbar.flip .eb-t.top { top: auto; bottom: 4px; }
.an-box { padding: 14px 16px; border-bottom: 1px solid var(--line); }
.dark .an-box { border-color: var(--line-d); }
.an-prog { height: 6px; border-radius: 3px; background: var(--paper-2); margin-top: 8px; overflow: hidden; }
.an-prog div { height: 100%; width: 0; background: var(--wine-2); transition: width .2s; }
.an-row { display: flex; align-items: center; gap: 6px; font-size: .82rem; margin-top: 8px; }
.an-name { flex: 1; min-width: 0; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.an-acc { font-weight: 700; min-width: 36px; text-align: right; }
.q { font-weight: 700; font-size: .78em; margin-left: 3px; }
.an-row .q { margin: 0; padding: 1px 6px; border-radius: 6px; background: var(--paper-2); font-size: .74rem; }
.dark .an-row .q { background: rgba(255,255,255,.07); }
.q-good { color: #2f7d4f; fill: #2f7d4f; }
.q-inacc { color: #b8860b; fill: #b8860b; }
.q-mistake { color: #d2691e; fill: #d2691e; }
.q-blunder { color: #c62f2f; fill: #c62f2f; }
.moves .mv.cur .q { color: inherit; }
.an-note { font-size: .84rem; padding: 0 16px; }
.an-note.on { padding: 10px 16px; border-top: 1px solid var(--line); background: var(--paper); }
.dark .an-note.on { background: var(--ink-3); border-color: var(--line-d); }
.an-note.q-blunder, .an-note.q-mistake, .an-note.q-inacc, .an-note.q-good { color: inherit; }
.an-note b { font-weight: 600; }
.an-note.q-blunder b:first-child { color: #c62f2f; } .an-note.q-mistake b:first-child { color: #d2691e; }
.an-note.q-inacc b:first-child { color: #b8860b; } .an-note.q-good b:first-child { color: #2f7d4f; }
.evgraph { width: 100%; height: 64px; display: block; border-radius: 6px; cursor: pointer; margin-bottom: 4px; }
.eg-bg { fill: #2b2125; } .eg-w { fill: #f4ece8; } .eg-mid { stroke: rgba(143,43,62,.5); stroke-width: 1; } .eg-cur { stroke: var(--wine-2); stroke-width: 2; }

/* ---------- Menu Clube, sino, notificações ---------- */
.brand .logo-tint { width: auto; }
.nav-dd { position: relative; }
.nav-dd .dd { display: none; position: absolute; top: 100%; left: 0; min-width: 210px; background: var(--ink-2); border: 1px solid var(--line-d); border-radius: 12px; padding: 6px; box-shadow: 0 16px 40px rgba(0,0,0,.35); }
.nav-dd:hover .dd, .nav-dd:focus-within .dd { display: flex; flex-direction: column; }
.nav-dd .dd a { padding: 9px 12px; }
.nav-bell { position: relative; background: none; border: 1px solid var(--line-d); color: var(--text-d); width: 38px; height: 34px; border-radius: 999px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; margin-left: 6px; }
.nav-bell .icon { width: 18px; height: 18px; }
.bell-cnt { position: absolute; top: -5px; right: -5px; background: var(--live); color: #fff; font-size: .68rem; font-weight: 700; border-radius: 999px; min-width: 18px; height: 18px; display: flex; align-items: center; justify-content: center; padding: 0 4px; }
.notif-panel { position: fixed; z-index: 120; width: min(360px, calc(100vw - 24px)); background: #fff; color: var(--text); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 20px 50px rgba(0,0,0,.25); overflow: hidden; }
.np-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.np-item { display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; padding: 12px 14px; text-decoration: none; border-bottom: 1px solid var(--line); font-size: .88rem; align-items: center; }
.np-item .tiny { grid-column: 2; }
.np-item.unread { background: var(--wine-soft); }
.np-item:hover { background: var(--paper-2); }
@media (max-width: 1060px) {
  .nav-dd .dd { display: flex; flex-direction: column; position: static; background: none; border: 0; box-shadow: none; padding: 0 0 0 14px; }
  .nav-bell { margin: 6px 0 0; width: 100%; border-radius: 10px; height: 40px; }
}

/* ---------- Novas páginas ---------- */
.desde .logo-tint { height: 46px; width: auto; }
.hero-logo { max-width: 460px; margin-left: auto; display: flex; flex-direction: column; gap: 28px; }
.hero-logo .logo-tint { width: 100%; }
.hero-next { display: flex; flex-direction: column; gap: 4px; padding: 18px 20px; border: 1px solid var(--line-d); border-radius: 14px; text-decoration: none; background: var(--ink-2); }
.hero-next b { font-weight: 500; }
.foot-logo { display: block; }
.photo-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.photo-grid.big { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 860px) { .photo-grid, .photo-grid.big { grid-template-columns: repeat(2, 1fr); } }
.ph { margin: 0; position: relative; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; background: #fff; border: 1px solid var(--line); cursor: zoom-in; }
.ph img { width: 100%; height: 100%; object-fit: cover; }
.ph figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 12px 8px; font-size: .78rem; color: #fff; background: linear-gradient(transparent, rgba(18,13,14,.75)); }
.ph.empty { cursor: default; display: flex; align-items: center; justify-content: center; color: var(--wine-2);
  background: repeating-conic-gradient(rgba(110,26,42,.05) 0 25%, transparent 0 50%) 0 0 / 36px 36px, var(--wine-soft); }
.ph.empty .icon { width: 30px; height: 30px; opacity: .55; }
.ph.empty figcaption { color: var(--wine); background: none; }
.album-card { display: block; text-decoration: none; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.album-card .ph { border: 0; border-radius: 0; }
.album-card .body { padding: 16px 18px; }
.album-card h3 { font-size: 1.15rem; margin: 0 0 4px; }
.lightbox figure { margin: 0; max-width: 92vw; max-height: 88vh; text-align: center; }
.lightbox img { max-width: 92vw; max-height: 82vh; border-radius: 10px; margin: 0 auto; }
.lightbox figcaption { color: #fff; margin-top: 10px; font-size: .9rem; }
.coach-photo { aspect-ratio: 4 / 5; border-radius: 16px; overflow: hidden; background: var(--wine); }
.coach-photo img { width: 100%; height: 100%; object-fit: cover; }
.coach-photo.empty { display: flex; align-items: center; justify-content: center; background: radial-gradient(circle at 30% 20%, var(--wine-2), var(--wine) 70%); }
.coach-photo.empty span { font-family: var(--display); color: var(--gold-2); font-size: 3.4rem; letter-spacing: .05em; }
.coach-photo.sm { width: 92px; flex-shrink: 0; border-radius: 12px; }
.coach-photo.sm.empty span { font-size: 1.6rem; }
.coach-card { display: flex !important; gap: 18px; align-items: flex-start; }
.coach-row { display: grid; grid-template-columns: 340px 1fr; gap: 56px; align-items: start; }
.coach-row .content p { font-size: 1.02rem; }
@media (max-width: 860px) { .coach-row { grid-template-columns: 1fr; gap: 28px; } .coach-row .coach-photo { max-width: 320px; } }
.act-card .act-ic { width: 48px; height: 48px; border-radius: 12px; background: var(--wine-soft); color: var(--wine); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.act-card .act-ic .icon { width: 24px; height: 24px; }
.lock-ic { width: 54px; height: 54px; border-radius: 50%; background: var(--wine-soft); color: var(--wine); display: flex; align-items: center; justify-content: center; margin: 0 auto 14px; }
.lock-ic .icon { width: 24px; height: 24px; }
.nl-photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; margin: 14px 0; }
.nl-photos img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 14px; }
.thumbs .th { position: relative; width: 72px; height: 72px; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); }
.thumbs .th img { width: 100%; height: 100%; object-fit: cover; }
.thumbs .th button { position: absolute; top: 2px; right: 2px; width: 20px; height: 20px; border-radius: 50%; border: 0; background: rgba(0,0,0,.65); color: #fff; font-size: 11px; cursor: pointer; line-height: 1; }

/* ---------- Logo a preto e branco ---------- */
.logo-img { display: block; height: auto; }
.logo-img.on-light { filter: brightness(0); }
.desde .logo-img { height: 46px; width: auto; }
.hero-logo .logo-img { width: 100%; }
.card .logo-img.on-light { width: 100%; }

/* ---------- Detalhes a bordô ---------- */
::selection { background: var(--wine); color: #fff; }
.site-header { border-bottom: 2px solid var(--wine); }
.page-head { border-bottom: 3px solid var(--wine); }
.page-head::after { content: ""; position: absolute; left: 0; bottom: 0; width: 120px; height: 3px; background: var(--gold-2); }
.page-head { position: relative; }
footer { border-top: 4px solid var(--wine); }
footer h4 { color: var(--gold-2); }
footer a:hover { color: var(--gold-2); }
.stat b { position: relative; padding-top: 14px; }
.stat b::before { content: ""; position: absolute; top: 0; left: 0; width: 28px; height: 3px; background: var(--wine-2); border-radius: 2px; }
.live-card { border-top: 3px solid var(--wine-2); }
.ev { border-left: 3px solid var(--wine); }
.ev-date b { color: var(--wine); }
.ev-date span { color: var(--wine-2); }
.feat .num { color: var(--wine-2); }
a.card:hover, .news-card:hover, .album-card:hover { border-color: var(--wine-2); }
.news-card .badge, .album-card .badge { background: var(--wine-soft); color: var(--wine); }
.news-card h3, .album-card h3, .card h3 { color: var(--wine); }
.dark .card h3, .card.d h3, .dark-2 .card h3 { color: var(--text-d); }
.small a, p a, .muted a, a.small { color: var(--wine-2); }
.dark p a, .dark .small a { color: var(--gold-2); }
.btn-ghost { color: var(--wine); }
.dark .btn-ghost, .dark-2 .btn-ghost { color: var(--text-d); }
.btn-light:hover { background: var(--gold-2); color: var(--ink); }
.chip:hover { border-color: var(--wine-2); }
.check input { accent-color: var(--wine); }
.how .step b, .palmares .pos { color: var(--gold-2); }
.palmares li { border-bottom-color: rgba(217, 154, 165, .18); }
.tt-slot { border-left-color: var(--wine); }
.tt-day h4 { color: var(--wine-2); }
th { color: var(--wine); }
.side { border-right: 3px solid var(--wine); }
.side a.on { background: rgba(143, 43, 62, .35); }
.side .grp { color: var(--gold-2); opacity: .7; }
.dhead h1 { color: var(--wine); }
.kpi { border-top: 3px solid var(--wine-2); }
.kpi b { color: var(--wine); }
.panel > h3 { color: var(--wine); }
.panel > h3 a { color: var(--wine-2); font-weight: 500; font-size: .85rem; }
.newsletter h2 { color: var(--wine); }
.nl-form input:focus { border-color: var(--wine-2); }
.match-bar { border-top: 3px solid var(--wine-2); }
.bmini.on { border-color: var(--wine-2); box-shadow: 0 0 0 1px var(--wine-2); }
.v-side { border-top: 3px solid var(--wine-2); }
.email-preview .eh { background: var(--wine); }
.role-card:hover { border-color: var(--wine-2); }
.coach-row h2 { color: var(--wine); }

/* ---------- Conteúdos (texto corrido, secções, história) ---------- */
.content h3 { font-family: var(--body); font-weight: 600; font-size: 1.12rem; color: var(--wine); margin: 28px 0 10px; }
.content ul { padding-left: 1.2em; margin: 0 0 1em; }
.content li { margin: 6px 0; }
.content li::marker { color: var(--wine-2); }
.content a:not(.btn) { color: var(--wine-2); }
.two-col.history { grid-template-columns: 1.35fr .65fr; gap: 56px; }
.history-side { display: grid; gap: 20px; position: sticky; top: 96px; }
.dir-list { list-style: none; padding: 0; margin: 0; }
.dir-list li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.dir-list li:last-child { border-bottom: 0; }
.welcome .two-col { gap: 56px; }
.welcome h2 { margin: 0; }
.act-nav { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.act-nav .act-card { text-decoration: none; color: inherit; }
.act-sec .two-col { grid-template-columns: .8fr 1.2fr; gap: 56px; }
.act-head { position: sticky; top: 96px; }
.act-head .act-ic { width: 56px; height: 56px; border-radius: 14px; background: var(--wine-soft); color: var(--wine); display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.act-head .act-ic .icon { width: 28px; height: 28px; }
.act-sec .content p { font-size: 1.03rem; }
@media (max-width: 1100px) {
  .two-col.history, .act-sec .two-col, .welcome .two-col { grid-template-columns: 1fr; gap: 24px; }
  .history-side, .act-head { position: static; }
}

/* ---------- Entrar / contas ---------- */
.login-box { max-width: 440px; margin: 0 auto; display: flex; flex-direction: column; gap: 18px; }
.login-box .card.d { padding: 28px; border-top: 3px solid var(--wine-2); }
.login-box .err { min-height: 1.2em; margin: 0 0 12px; color: #ff9b9b; }
.cred { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cred > div { background: var(--wine-soft); border-radius: 10px; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.cred b { font-family: ui-monospace, Consolas, monospace; font-size: 1.15rem; color: var(--wine); letter-spacing: .04em; }
td code { font-size: .86rem; background: var(--paper-2); padding: 2px 6px; border-radius: 5px; }
.coach-edit { display: grid; grid-template-columns: 180px 1fr; gap: 24px; align-items: start; }
@media (max-width: 640px) { .coach-edit { grid-template-columns: 1fr; } .coach-edit .coach-photo { max-width: 180px; } .cred { grid-template-columns: 1fr; } }

/* Transmissão DGT: formulário "Registar tabuleiro" (o campo Mesa ficava estreito demais no painel) */
.reg-board .frow3 { grid-template-columns: minmax(0, 1.3fr) 84px minmax(0, 1.3fr); }
.reg-board .frow3 input { width: 100%; min-width: 0; }
@media (max-width: 640px) { .reg-board .frow3 { grid-template-columns: 1fr; } }
