:root {
  --y: #FFDE00; --y2: #E8B400; --bg: #090909; --s1: #121212; --s2: #1a1a1a; --s3: #242424;
  --line: #2c2c2c; --tx: #F3F0E6; --mt: #9b978b; --mt2: #6d6a62; --live: #39d98a;
  --cond: 'Barlow Condensed', 'Arial Narrow', sans-serif; --sans: 'Barlow', system-ui, sans-serif;
  --r: 12px; --pad: 16px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--tx); font: 15px/1.45 var(--sans); min-height: 100vh; overflow-x: hidden; }
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
input { font: inherit; color: inherit; }
.wrap { max-width: 980px; margin: 0 auto; padding: 0 var(--pad); }
.h { font-family: var(--cond); font-weight: 800; text-transform: uppercase; letter-spacing: .01em; line-height: 1; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- hero */
.stripe { height: 8px; background: repeating-linear-gradient(-45deg, var(--y) 0 12px, #0a0a0a 12px 24px); }
.hero { position: relative; overflow: hidden; border-bottom: 1px solid #1d1d1d;
  background: radial-gradient(120% 90% at 85% 0%, rgba(255, 222, 0, .16), transparent 55%), linear-gradient(180deg, #0f0f0f, #090909); }
.hero::after { content: ''; position: absolute; inset: auto -10% -60% 40%; height: 120%; border: 2px solid rgba(255, 222, 0, .35); border-radius: 50% 50% 0 0;
  box-shadow: 0 0 24px rgba(255, 222, 0, .25), inset 0 0 24px rgba(255, 222, 0, .15); pointer-events: none; }
.hero-in { position: relative; z-index: 1; display: grid; grid-template-columns: auto 1fr auto; align-items: end; gap: 14px; padding: 18px var(--pad) 18px; max-width: 980px; margin: 0 auto; }
.big27 { font: italic 800 84px/.78 var(--cond); letter-spacing: -.03em; background: linear-gradient(180deg, #fff3a8 0%, var(--y) 35%, #b88a00 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 18px rgba(255, 222, 0, .35)); }
.hero .kicker { font: 800 15px/1 var(--cond); letter-spacing: .14em; color: #fff; }
.hero .sub { font: 600 12px/1 var(--cond); letter-spacing: .2em; color: var(--y); margin-top: 6px; }
.ptw { font: italic 800 26px/1 var(--cond); color: var(--y); margin-top: 10px; text-shadow: 0 0 16px rgba(255, 222, 0, .35); white-space: nowrap; }
.ptw i { color: #fff; font-weight: 600; }
.hero .venue { font: 500 12px/1.2 var(--sans); color: var(--mt); margin-top: 8px; }

.lang { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: rgba(0, 0, 0, .5); align-self: start; }
.lang button { font: 700 12px/1 var(--cond); letter-spacing: .08em; padding: 7px 9px; color: var(--mt); }
.lang button.on { background: var(--y); color: #000; }

/* ---------- top bar (dealer) */
.topbar { position: sticky; top: 0; z-index: 30; background: rgba(9, 9, 9, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid #1f1f1f; }
.topbar .wrap { display: flex; align-items: center; gap: 12px; padding-top: 10px; padding-bottom: 10px; }
.back { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; flex: none; }
.back:active { background: var(--s2); }
.tb-title { flex: 1; min-width: 0; }
.tb-title .h { font-size: 24px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tb-title small { display: block; color: var(--mt); font-size: 12px; margin-top: 2px; }
.tb-title small b { color: var(--y); font-weight: 600; }

/* ---------- sections */
.sec { padding: 22px 0 6px; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.sec-head .h { font-size: 22px; }
.sec-head .h::before { content: ''; display: inline-block; width: 10px; height: 10px; background: var(--y); transform: skewX(-18deg); margin-right: 8px; vertical-align: 2px; }
.lead { color: var(--mt); margin: -4px 0 14px; font-size: 14px; }

/* ---------- map card */
.mapcard { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: #0b0b0b; position: relative; }
.mapbox { height: min(64vw, 440px); min-height: 230px; }
.mapbox.compact { height: min(72vw, 400px); }
.map-ctrl { position: absolute; right: 8px; bottom: 54px; display: flex; flex-direction: column; gap: 5px; z-index: 5; }
.map-ctrl button { width: 34px; height: 34px; border-radius: 9px; background: rgba(18, 18, 18, .88); border: 1px solid #333; display: grid; place-items: center; }
.map-ctrl button svg { width: 16px; height: 16px; }
.mapbar { display: flex; width: 100%; align-items: center; gap: 9px; padding: 11px 14px; border-top: 1px solid #222; background: #101010; font-size: 13px; text-align: left; }
.mapbar .pip { width: 10px; height: 10px; border-radius: 50%; background: var(--y); box-shadow: 0 0 0 4px rgba(255, 222, 0, .22); flex: none; }
.mapbar span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--mt); }
.mapbar span b { color: var(--tx); font-weight: 600; }
.mapbar u { color: var(--y); text-decoration: none; font: 700 12px/1 var(--cond); letter-spacing: .1em; text-transform: uppercase; flex: none; }
.mapcard.is-full .mapbox { height: calc(100% - 46px); }
.map-ctrl button:active { background: var(--y); color: #000; }
.here-chip { position: absolute; left: 10px; top: 10px; z-index: 5; display: flex; align-items: center; gap: 8px; padding: 7px 11px 7px 9px; background: rgba(12, 12, 12, .9); border: 1px solid #333; border-radius: 999px; font-size: 12px; max-width: calc(100% - 70px); }
.here-chip .pip { width: 10px; height: 10px; border-radius: 50%; background: var(--y); box-shadow: 0 0 0 3px rgba(255, 222, 0, .25); flex: none; }
.here-chip span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.here-chip u { color: var(--y); text-decoration: none; font-weight: 600; flex: none; }
.map-hint { position: absolute; left: 10px; top: 10px; z-index: 5; font-size: 11px; color: var(--mt); background: rgba(10, 10, 10, .8); padding: 4px 8px; border-radius: 6px; pointer-events: none; transition: opacity .4s; }
.mapcard.is-full { position: fixed; inset: 0; z-index: 100; border-radius: 0; border: 0; }
.mapcard.is-full .mapbox { min-height: 0; }
.mapcard.is-full .map-ctrl { bottom: calc(54px + env(safe-area-inset-bottom)); }
.mapcard.is-full .mapbar { padding-bottom: max(11px, env(safe-area-inset-bottom)); }
body.lock { overflow: hidden; }

/* focus card */
.focus { margin-top: 10px; border: 1px solid var(--line); border-radius: var(--r); background: linear-gradient(135deg, #171500, #121212 60%); padding: 14px; display: grid; grid-template-columns: 1fr auto; gap: 10px 12px; align-items: center; }
.focus .k { font: 700 11px/1 var(--cond); letter-spacing: .14em; text-transform: uppercase; color: var(--y); display: flex; gap: 8px; align-items: center; }
.focus h3 { margin: 6px 0 4px; font: 700 20px/1.1 var(--cond); }
.focus .where { color: var(--mt); font-size: 13px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.focus .where b { color: var(--tx); font-weight: 600; }
.focus .x { align-self: start; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: var(--mt); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 16px; border-radius: 10px; font: 800 16px/1 var(--cond); letter-spacing: .06em; text-transform: uppercase; }
.btn-y { background: var(--y); color: #000; box-shadow: 0 6px 20px rgba(255, 222, 0, .22); }
.btn-y:active { transform: translateY(1px); }
.btn-o { border: 1px solid var(--y); color: var(--y); }
.focus .actions { grid-column: 1 / -1; display: flex; gap: 8px; }
.focus .actions .btn { flex: 1; }
.offmap { grid-column: 1 / -1; font-size: 13px; color: var(--mt); background: var(--s2); border-radius: 8px; padding: 10px 12px; }
.n { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 5px; border-radius: 11px; background: #000; border: 2px solid var(--y); color: var(--y); font: 800 12px/1 var(--cond); flex: none; }
.n.ghost { border-color: #444; color: var(--mt); }

/* legend */
.legend { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin-top: 10px; }
@media (min-width: 640px) { .legend { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.lg { display: flex; align-items: center; gap: 8px; text-align: left; padding: 8px 10px; border-radius: 10px; background: var(--s1); border: 1px solid #1f1f1f; min-height: 46px; }
.lg div { min-width: 0; }
.lg b { display: block; font: 700 14px/1.1 var(--cond); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lg small { display: block; color: var(--mt2); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lg.on { border-color: var(--y); background: #1a1700; }
.lg.on .n { background: var(--y); color: #000; }
.legend-off { margin-top: 10px; font-size: 12px; color: var(--mt); }
.legend-off b { color: var(--tx); font-weight: 600; }

/* dealers */
.searchbar { position: sticky; top: 0; z-index: 20; background: linear-gradient(var(--bg) 80%, rgba(9, 9, 9, 0)); padding: 10px 0 12px; }
.search { display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 14px; border-radius: 12px; background: var(--s1); border: 1px solid var(--line); }
.search:focus-within { border-color: var(--y); }
.search input { flex: 1; background: none; border: 0; outline: 0; font-size: 16px; min-width: 0; }
.chips { display: flex; gap: 6px; overflow-x: auto; padding-top: 10px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line); font: 700 13px/1 var(--cond); letter-spacing: .06em; text-transform: uppercase; color: var(--mt); }
.chip.on { background: var(--y); border-color: var(--y); color: #000; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
@media (max-width: 339px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; } }
@media (min-width: 860px) { .grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.dcard { position: relative; text-align: left; min-height: 62px; padding: 10px 10px 9px; border-radius: 10px; background: var(--s1); border: 1px solid #222; display: flex; flex-direction: column; justify-content: space-between; gap: 6px; overflow: hidden; transition: border-color .15s, background .15s; }
.dcard::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--y); opacity: .85; }
.dcard b { font: 800 15px/1.02 var(--cond); text-transform: uppercase; letter-spacing: .01em; overflow-wrap: anywhere; }
.dcard small { font-size: 10.5px; color: var(--mt2); letter-spacing: .04em; text-transform: uppercase; }
.dcard:active, .dcard:hover { border-color: var(--y); background: #191600; }
.dcard.general { grid-column: 1 / -1; min-height: 52px; flex-direction: row; align-items: center; background: linear-gradient(90deg, #1b1800, var(--s1)); border-color: #3a3300; }
.dcard.general b { color: var(--y); }
.letter { grid-column: 1 / -1; font: 800 13px/1 var(--cond); color: var(--y); letter-spacing: .12em; padding: 8px 2px 0; opacity: .8; }
.empty { color: var(--mt); padding: 22px 0; text-align: center; grid-column: 1 / -1; }

/* agenda */
.days { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 2px 0 12px; }
.days::-webkit-scrollbar { display: none; }
.day { flex: none; min-width: 64px; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--line); text-align: center; }
.day b { display: block; font: 800 20px/1 var(--cond); }
.day small { display: block; font: 600 11px/1 var(--cond); letter-spacing: .1em; text-transform: uppercase; color: var(--mt); margin-top: 4px; }
.day.on { background: var(--y); border-color: var(--y); color: #000; }
.day.on small { color: #000; }
.day .dotm { display: block; width: 5px; height: 5px; border-radius: 50%; background: var(--y); margin: 5px auto 0; }
.day.on .dotm { background: #000; }
.toggle { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--mt); margin: 0 0 12px; }
.sw { position: relative; width: 40px; height: 24px; border-radius: 12px; background: var(--s3); flex: none; transition: background .2s; }
.sw::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #888; transition: transform .2s, background .2s; }
.toggle.on .sw { background: #3d3500; }
.toggle.on .sw::after { transform: translateX(16px); background: var(--y); }

.list { display: flex; flex-direction: column; gap: 8px; }
.sess { display: grid; grid-template-columns: 58px 1fr 40px; gap: 12px; align-items: start; text-align: left; padding: 12px 10px 12px 12px; border-radius: 12px; background: var(--s1); border: 1px solid #1f1f1f; position: relative; }
.sess .t b { display: block; font: 800 20px/1 var(--cond); }
.sess .t span { display: block; font: 600 13px/1 var(--cond); color: var(--mt); margin-top: 4px; }
.sess h4 { margin: 0; font: 700 17px/1.15 var(--cond); }
.sess .tag { font: 700 10.5px/1 var(--cond); letter-spacing: .14em; text-transform: uppercase; color: var(--mt); margin-bottom: 5px; display: flex; gap: 8px; flex-wrap: wrap; }
.sess .tag .mine { color: var(--y); }
.sess .tag .live { color: var(--live); }
.sess .tag .live::before { content: '●'; margin-right: 4px; animation: blink 1.2s infinite; }
@keyframes blink { 50% { opacity: .2; } }
.sess .where { display: flex; gap: 7px; align-items: flex-start; margin-top: 7px; font-size: 13px; color: var(--mt); line-height: 1.3; }
.sess .where .n { margin-top: -2px; }
.sess .where em { font-style: normal; color: var(--tx); }
.sess .spk, .sess .note { font-size: 12px; color: var(--mt2); margin-top: 6px; }
.sess .note { color: #c9b45a; }
.sess .go { width: 40px; height: 40px; border-radius: 10px; border: 1px solid #333; display: grid; place-items: center; color: var(--y); align-self: center; }
.sess.mine { border-color: #3d3500; background: linear-gradient(90deg, #171400, var(--s1) 70%); }
.sess.mine::before { content: ''; position: absolute; left: -1px; top: 10px; bottom: 10px; width: 3px; border-radius: 2px; background: var(--y); }
.sess.past { opacity: .45; }
.sess.sel { border-color: var(--y); box-shadow: 0 0 0 1px var(--y) inset; }
.sess.live { border-color: rgba(57, 217, 138, .5); }

.alert { border: 1px solid #3d3500; background: #161300; color: #e8d68a; border-radius: 10px; padding: 10px 12px; font-size: 13px; margin: 0 0 12px; display: flex; gap: 10px; }
.foot { color: var(--mt2); font-size: 12px; padding: 28px 0 110px; border-top: 1px solid #1a1a1a; margin-top: 28px; }
.foot p { margin: 0 0 8px; }

.cta { position: fixed; left: 50%; bottom: max(16px, env(safe-area-inset-bottom)); transform: translate(-50%, 140%); z-index: 40; transition: transform .35s cubic-bezier(.2, .8, .2, 1); }
.cta.show { transform: translate(-50%, 0); }
.cta .btn { height: 50px; padding: 0 22px; border-radius: 999px; box-shadow: 0 10px 30px rgba(0, 0, 0, .6), 0 0 0 4px rgba(255, 222, 0, .15); white-space: nowrap; }

.sheet-bg { position: fixed; inset: 0; background: rgba(0, 0, 0, .6); z-index: 200; display: flex; align-items: flex-end; justify-content: center; }
.sheet { width: 100%; max-width: 520px; background: var(--s1); border-radius: 18px 18px 0 0; border: 1px solid var(--line); padding: 18px var(--pad) max(18px, env(safe-area-inset-bottom)); }
.sheet .h { font-size: 20px; margin-bottom: 12px; }
.sheet button.opt { display: flex; width: 100%; align-items: center; gap: 10px; padding: 14px 12px; border-radius: 10px; border: 1px solid var(--line); margin-bottom: 8px; text-align: left; }
.sheet button.opt.on { border-color: var(--y); color: var(--y); }

.view-enter { animation: enter .35s ease both; }
@keyframes enter { from { opacity: 0; transform: translateY(8px); } }
.loading { display: grid; place-items: center; min-height: 60vh; color: var(--mt); font: 700 14px var(--cond); letter-spacing: .2em; }

/* ---------- KV hero (assets reais) */
.kvhero { position: relative; overflow: hidden; display: grid; place-items: center; min-height: 228px; padding: 26px var(--pad) 22px; isolation: isolate; }
.kvbg { position: absolute; inset: 0; z-index: -1; background-size: cover; background-position: center 38%; transform: scale(1.04); }
.kvbg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(9,9,9,.55) 0%, rgba(9,9,9,.15) 38%, rgba(9,9,9,.35) 70%, var(--bg) 100%); }
.kvin { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; animation: kvIn .7s cubic-bezier(.2,.8,.2,1) both; }
.kv-title { width: min(150px, 40vw); height: auto; display: block; filter: drop-shadow(0 2px 10px rgba(0,0,0,.6)); }
.kv-27 { height: clamp(72px, 21vw, 116px); width: auto; display: block; filter: drop-shadow(0 6px 22px rgba(0,0,0,.55)) drop-shadow(0 0 26px rgba(255,190,0,.28)); }
.kv-tag { width: min(210px, 56vw); height: auto; display: block; filter: drop-shadow(0 2px 10px rgba(0,0,0,.7)); }
.kvlang { position: absolute; top: 12px; right: var(--pad); }
.kvlang .lang { background: rgba(0,0,0,.45); border-color: rgba(255,255,255,.14); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.kvlang .lang button { padding: 6px 8px; font-size: 11px; }
@keyframes kvIn { from { opacity: 0; transform: translateY(6px); } }
@media (max-width: 560px) { .kvhero { padding-top: 54px; min-height: 0; } }
@media (min-width: 720px) { .kvhero { min-height: 280px; } }
@media (prefers-reduced-motion: reduce) { .kvin { animation: none; } }

/* mapa travado no celular: só o botão Ampliar; zoom e arraste no modo ampliado */
.mapcard:not(.is-full) #zIn, .mapcard:not(.is-full) #zOut, .mapcard:not(.is-full) #zFit { display: none; }
.mapcard:not(.is-full) .map-ctrl { top: 6px; bottom: auto; right: 6px; }
.mapcard:not(.is-full) #zFull { width: auto; height: 28px; padding: 0 11px; display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; background: rgba(10,10,10,.82); border-color: #3a3a3a; font: 700 12px/1 var(--cond); letter-spacing: .08em; text-transform: uppercase; color: var(--y); }
.mapcard.is-full #zFull { background: var(--y); color: #000; border-color: var(--y); }
.mapcard.is-full .map-ctrl { top: max(12px, env(safe-area-inset-top)); bottom: auto; }

/* header compacto (mobile-first): faixa horizontal */
.kvhero { display: flex; align-items: center; justify-content: flex-start; gap: 12px; min-height: 0; padding: 14px var(--pad); max-width: none; }
.kvin { flex-direction: row; align-items: center; gap: 12px; text-align: left; width: 100%; max-width: 948px; margin: 0 auto; }
.kvcol { display: flex; flex-direction: column; gap: 7px; align-items: flex-start; }
.kv-27 { height: 58px; }
.kv-title { width: 116px; }
.kv-tag { width: 148px; }
.kvlang { top: 50%; transform: translateY(-50%); }
.kvbg { background-position: center 42%; }
.kvbg::after { background: linear-gradient(90deg, rgba(9,9,9,.55), rgba(9,9,9,.2) 60%, rgba(9,9,9,.5)), linear-gradient(180deg, transparent 55%, var(--bg)); }
@media (max-width: 560px) { .kvhero { padding-top: 14px; min-height: 0; } }
@media (min-width: 720px) { .kvhero { min-height: 0; padding: 22px var(--pad); } .kv-27 { height: 84px; } .kv-title { width: 150px; } .kv-tag { width: 200px; } }
