/* =====================================================================
   oRAAFx — identidade da overlay RAAF_BR (Redy)
   Parede preta, dourado do logo, papel branco rasgado dos alertas, fonte aAnotherTag.
   ===================================================================== */

@font-face { font-family: 'AnotherTag'; src: url('../fonts/AnotherTag.ttf') format('truetype'); font-display: swap; }
@font-face { font-family: 'Anton'; src: url('../fonts/Anton-Regular.ttf') format('truetype'); font-display: swap; }
@font-face { font-family: 'Inter'; src: url('../fonts/Inter-Regular.otf') format('opentype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('../fonts/Inter-Bold.otf') format('opentype'); font-weight: 700; font-display: swap; }

:root {
  --wall: #0d0d0e;        /* a parede da overlay */
  --wall-deep: #070708;
  --line: #2a2a2d;        /* divisórias sobre a parede */
  --paper: #f4f4f4;       /* papel dos alertas */
  --paper-shade: #dcdcdc;
  --ink: #141414;         /* tinta preta dos alertas */
  --spray: #c8961e;       /* dourado do logo */
  --spray-hi: #e0b040;
  --hot: #e5484d;         /* ao vivo / erro */
  --chalk: #f4f4f4;       /* texto sobre a parede */
  --muted: #9b978e;
  --twitch: #9146ff;

  --tag: 'AnotherTag', 'Anton', Impact, sans-serif;
  --poster: 'Anton', Impact, 'Arial Narrow', sans-serif;
  --body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --wrap: 1180px;
  --brush: url('../img/brush.svg');
  --torn: url('../img/torn.svg');
  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column; color: var(--chalk); font: 400 1rem/1.6 var(--body);
  background-color: var(--wall);
  background-image: var(--noise), radial-gradient(120% 80% at 50% 0%, #19191b 0%, var(--wall) 55%, var(--wall-deep) 100%);
  background-attachment: fixed;
}
body.has-bg-image {
  background-image: linear-gradient(rgba(10, 10, 11, .55), rgba(10, 10, 11, .82)), var(--bg-image);
  background-size: cover, cover; background-position: center, center top;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--spray); outline-offset: 3px; }
.ph { display: inline-block; flex: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--spray); color: var(--ink); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }

.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
main { padding: 28px 0 80px; flex: 1 0 auto; }

/* ---------- tipografia ---------- */
h1, h2, h3 { margin: 0 0 .4em; line-height: 1.05; font-weight: 400; }
.tag-title { font-family: var(--tag); font-size: clamp(2.6rem, 6vw, 4.8rem); letter-spacing: .03em; word-spacing: .2em; color: var(--spray); text-shadow: 3px 3px 0 #000; }
.poster-title { font-family: var(--poster); font-size: clamp(1.6rem, 3vw, 2.2rem); letter-spacing: .015em; }
h2.section { font-family: var(--tag); font-size: clamp(2rem, 4vw, 3rem); letter-spacing: .03em; word-spacing: .2em; display: inline-block; position: relative; padding: 0 .2em; margin: 0 0 22px; z-index: 0; }
h2.section::before {
  content: ''; position: absolute; inset: 55% -8px -6px -12px; background: var(--spray); z-index: -1; opacity: .85;
  -webkit-mask: var(--brush) center / 100% 100% no-repeat; mask: var(--brush) center / 100% 100% no-repeat;
}
h2.section { color: var(--chalk); text-shadow: 2px 2px 0 var(--ink); }
p { margin: 0 0 1em; max-width: 68ch; }
.lead { font-size: 1.15rem; color: var(--chalk); }
.muted { color: var(--muted); }
.num { font-family: var(--poster); letter-spacing: .02em; }

/* ---------- cabeçalho ---------- */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(7, 7, 8, .9); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 22px; min-height: 66px; }
.brand { font-family: var(--tag); font-size: 1.9rem; text-decoration: none; color: var(--chalk); line-height: 1; display: flex; align-items: center; gap: 10px; }
.brand img { height: 44px; width: auto; }
.brand:hover { color: var(--spray); }
.brand:hover img { filter: drop-shadow(0 0 6px rgba(200, 150, 30, .6)); }
.nav { display: flex; gap: 4px; margin-left: 8px; flex-wrap: wrap; }
.nav a { font-family: var(--poster); font-size: 1.05rem; letter-spacing: .03em; text-decoration: none; padding: 6px 10px; color: var(--muted); position: relative; }
.nav a:hover { color: var(--chalk); }
.nav a[aria-current='page'] { color: var(--ink); z-index: 0; }
.nav a:hover { color: var(--spray); }
.nav a[aria-current='page']::before {
  content: ''; position: absolute; inset: 4px -2px; background: var(--spray); z-index: -1;
  -webkit-mask: var(--brush) center / 100% 100% no-repeat; mask: var(--brush) center / 100% 100% no-repeat;
}
.header-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.tinta-chip { display: inline-flex; align-items: center; gap: 7px; font-family: var(--poster); font-size: 1.1rem; text-decoration: none; padding: 4px 12px 4px 8px; border: 2px solid var(--spray); color: var(--spray); border-radius: 999px; }
.tinta-chip svg { width: 18px; height: 18px; }
.avatar { width: 38px; height: 38px; border-radius: 50%; border: 2px solid var(--spray); object-fit: cover; background: var(--wall); }
.menu-btn { display: none; background: none; border: 2px solid var(--chalk); padding: 6px 10px; font-family: var(--poster); cursor: pointer; }

@media (max-width: 920px) {
  .menu-btn { display: inline-block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 66px; background: var(--wall-deep); flex-direction: column; padding: 12px 20px 20px; border-bottom: 1px solid var(--line); margin: 0; }
  .nav.open { display: flex; }
  .nav a { font-size: 1.4rem; }
  .tinta-chip .lbl { display: none; }
}

/* ---------- botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px; cursor: pointer; text-decoration: none;
  font-family: var(--poster); font-size: 1.15rem; letter-spacing: .03em; line-height: 1;
  padding: 15px 24px; border: 0; color: var(--ink); background: var(--spray); position: relative;
  box-shadow: 4px 4px 0 var(--paper); transition: transform .08s, box-shadow .08s, background .15s;
}
.btn:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--paper); background: var(--spray-hi); }
.btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--paper); }
.on-paper .btn:not(.dark), .poster:not(.dark) .btn:not(.dark) { box-shadow: 4px 4px 0 var(--ink); }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }
.btn svg { width: 20px; height: 20px; }
.btn.twitch { background: var(--twitch); color: #fff; }
.btn.ghost { background: transparent; color: var(--chalk); box-shadow: inset 0 0 0 2px var(--chalk); }
.btn.ghost:hover { box-shadow: inset 0 0 0 2px var(--spray); color: var(--spray); transform: none; }
.on-paper .btn.ghost { color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.btn.small { font-size: .95rem; padding: 9px 14px; }
.btn.danger { background: var(--hot); color: #fff; }
.btn.dark { background: var(--ink); color: var(--chalk); box-shadow: 4px 4px 0 var(--spray); }

/* ---------- cartaz lambe-lambe ---------- */
.poster {
  position: relative; background: var(--paper); color: var(--ink); padding: 30px 40px 28px;
  background-image: linear-gradient(170deg, rgba(255,255,255,.6), rgba(0,0,0,0) 45%, rgba(0,0,0,.06));
}
/* papel branco rasgado, como os alertas da live */
.poster:not(.dark) {
  -webkit-mask: var(--torn) center / 100% 100% no-repeat; mask: var(--torn) center / 100% 100% no-repeat;
}
.poster:not(.dark)::after {
  content: ''; position: absolute; top: 16px; right: 26px; width: 30px; height: 30px; opacity: .9;
  background: url('../img/x-dourado.svg') center / contain no-repeat; pointer-events: none;
}
.poster.tilt-l { transform: rotate(-1.2deg); }
.poster.tilt-r { transform: rotate(.9deg); }
.poster .tape { display: none; position: absolute; top: -12px; left: 50%; width: 92px; height: 26px; transform: translateX(-50%) rotate(-3deg); background: rgba(255, 245, 200, .55); box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.poster .tape.r { left: auto; right: 18px; transform: rotate(5deg); }
.poster p { color: #2b2b2b; }
.poster .muted { color: #666; }
.poster.dark { background: rgba(7, 7, 8, .82); color: var(--chalk); background-image: var(--noise); border: 1px solid var(--line); border-top: 3px solid var(--spray); padding: 26px 28px; }
.poster.dark p { color: var(--chalk); }
.poster.dark .muted { color: var(--muted); }
.poster.yellow { background-color: var(--spray); }

/* ---------- home: hero ---------- */
/* topo da home: a parede com o rosto, como na overlay */
.hero-stage {
  position: relative; overflow: hidden; margin-top: -28px; min-height: min(84vh, 720px); display: flex; align-items: center;
  background: var(--wall-deep) var(--hero-img, none) 70% center / cover no-repeat; border-bottom: 1px solid var(--line);
}
.hero-stage .hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% center; }
.hero-stage::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(7,7,8,.94) 0%, rgba(7,7,8,.78) 38%, rgba(7,7,8,.1) 68%, rgba(7,7,8,0) 100%),
              linear-gradient(0deg, rgba(13,13,14,1) 0%, rgba(13,13,14,0) 22%);
}
.hero { position: relative; z-index: 1; padding: 56px 0 76px; }
.hero > div { max-width: 600px; }
.hero-logo { width: 100%; max-width: 430px; margin-bottom: 18px; }
.hero-logo video, .hero-logo img { width: 100%; height: auto; filter: drop-shadow(3px 4px 0 rgba(0,0,0,.7)); }
.home-row { display: grid; grid-template-columns: .9fr 1.1fr; gap: 44px; align-items: start; margin-top: 54px; }
.next-lives { list-style: none; margin: 8px 0 18px; padding: 0; }
.next-lives li { display: flex; gap: 16px; align-items: baseline; padding: 10px 0; border-bottom: 1px solid var(--line); }
.next-lives b { font-family: var(--poster); font-weight: 400; font-size: 1.35rem; color: var(--spray); min-width: 128px; }
.hero-logo svg { width: 100%; height: auto; overflow: visible; }
.hero-logo text { font-family: var(--tag); font-size: 200px; }
.hero-logo .tag-stroke { fill: transparent; stroke: var(--chalk); stroke-width: 3; stroke-linejoin: round; stroke-dasharray: 2400; stroke-dashoffset: 2400; animation: write 2.4s cubic-bezier(.55,.1,.35,1) .25s forwards, fillin .5s ease 2.4s forwards; }
.hero-logo .tag-shadow { fill: var(--ink); opacity: 0; animation: fadein .3s ease 2.5s forwards; }
.hero-logo .tag-drip { fill: var(--spray); opacity: 0; animation: fadein .4s ease 2.7s forwards; }
@keyframes write { to { stroke-dashoffset: 0; } }
@keyframes fillin { to { fill: var(--chalk); } }
@keyframes fadein { to { opacity: 1; } }
.hero h1 { font-family: var(--poster); font-size: clamp(2.2rem, 4.6vw, 3.6rem); line-height: 1; letter-spacing: .01em; margin-bottom: 14px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 22px; }

.live-sticker { display: inline-flex; align-items: center; gap: 10px; background: var(--ink); color: var(--chalk); padding: 8px 14px 8px 10px; font-weight: 700; font-size: .95rem; transform: rotate(-2deg); margin-bottom: 18px; text-decoration: none; max-width: 100%; }
.live-sticker .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--muted); flex: none; }
.live-sticker { border: 1px solid var(--line); }
.live-sticker.on { background: var(--hot); color: #fff; border-color: var(--hot); }
.live-sticker.on .dot { background: #fff; animation: pulse 1.4s infinite; }
.live-sticker span.t { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@keyframes pulse { 50% { transform: scale(.6); opacity: .6; } }

/* baú */
.chest-card h2 { font-family: var(--poster); font-size: 1.9rem; margin-bottom: 4px; }
.chest-art { width: 128px; height: 103px; margin: 6px 0 12px; flex: none; overflow: visible; }
.chest-card .row { display: flex; align-items: center; gap: 18px; }
.progress { height: 18px; background: rgba(0,0,0,.14); position: relative; overflow: hidden; margin: 10px 0 6px; }
.progress > i { position: absolute; inset: 0 auto 0 0; background: var(--ink); -webkit-mask: var(--brush) left / 1000px 100% no-repeat; mask: var(--brush) left / 1000px 100% no-repeat; transition: width .6s; }
.poster.dark .progress { background: rgba(255,255,255,.1); }
.poster.dark .progress > i { background: var(--spray); }
.small { font-size: .9rem; }

/* passos */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; margin-top: 14px; counter-reset: s; }
.step { position: relative; padding-top: 6px; }
.step .n { font-family: var(--tag); font-size: 4.2rem; line-height: .9; color: var(--spray); text-shadow: 3px 3px 0 var(--ink); display: block; margin-bottom: 6px; }
.step h3 { font-family: var(--poster); font-size: 1.5rem; letter-spacing: .02em; }
.step p { color: #cfcbc1; }

.band { margin-block: 70px; }
.community-line { font-family: var(--poster); font-size: clamp(1.4rem, 2.6vw, 2rem); line-height: 1.25; max-width: 32ch; letter-spacing: .01em; }
.community-line b { color: var(--spray); font-weight: 400; }

.player { aspect-ratio: 16 / 9; width: 100%; border: 4px solid var(--ink); background: #000; box-shadow: 8px 8px 0 rgba(0,0,0,.4); }
.player iframe { width: 100%; height: 100%; border: 0; display: block; }

.partner { display: grid; grid-template-columns: auto 1fr auto; gap: 22px; align-items: center; }
.partner .ad { font-size: .78rem; color: #6b6455; display: block; margin-bottom: 4px; }
.partner img { height: 54px; width: auto; }
.coupon { font-family: var(--poster); font-size: 1.3rem; border: 2px dashed var(--ink); padding: 6px 14px; letter-spacing: .06em; }

/* ---------- grades ---------- */
.grid { display: grid; gap: 30px; }
.grid.cols-3 { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.grid.cols-2 { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }
.page-head { display: flex; flex-wrap: wrap; gap: 20px; align-items: end; justify-content: space-between; margin-bottom: 26px; }
.page-head p { margin: 0; }

/* loja */
.item { display: flex; flex-direction: column; gap: 6px; min-height: 250px; }
.item .rc { font-family: var(--poster); font-size: 3.6rem; line-height: 1; color: var(--ink); }
.item .rc small { font-family: var(--poster); font-size: 1.1rem; display: block; margin-top: 2px; letter-spacing: .03em; }
.item h3 { font-family: var(--poster); font-size: 1.35rem; margin: 6px 0 0; }
.item .cost { font-family: var(--poster); font-size: 1.4rem; display: flex; align-items: center; gap: 6px; }
.item .cost svg { width: 20px; height: 20px; }
.item .foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 12px; border-top: 2px dashed rgba(0,0,0,.2); }
.item .meta { font-size: .82rem; color: #6b6455; }
.item:nth-child(3n+1) { transform: rotate(-.8deg); }
.item:nth-child(3n+2) { transform: rotate(.6deg); }

.notice { background: var(--ink); border-left: 6px solid var(--spray); padding: 14px 18px; margin-bottom: 26px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; }
.notice p { margin: 0; }
.notice.hot { border-color: var(--hot); }

/* sorteios */
.raffle .prize { font-family: var(--poster); font-size: 2.4rem; line-height: 1.05; margin: 4px 0 10px; }
.raffle .facts { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: .92rem; margin: 10px 0 14px; }
.raffle .facts b { font-family: var(--poster); font-weight: 400; font-size: 1.15rem; }
.raffle .buy { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.qty { display: inline-flex; border: 2px solid var(--ink); }
.qty button { background: none; border: 0; width: 38px; font-size: 1.3rem; cursor: pointer; color: var(--ink); }
.qty input { width: 54px; text-align: center; border: 0; background: transparent; font-family: var(--poster); font-size: 1.2rem; color: var(--ink); -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.stamp { display: inline-block; font-family: var(--poster); font-size: 1rem; letter-spacing: .05em; border: 3px solid currentColor; padding: 2px 10px; transform: rotate(-4deg); color: var(--hot); }
.stamp.ok { color: #1f8a4c; }
.stamp.wait { color: #6b6455; }
.winner { display: flex; align-items: center; gap: 12px; margin-top: 8px; }
.winner img, .winner .ph { width: 42px; height: 42px; border-radius: 50%; background: #1d1d20; }

/* ranking */
.tabs { display: inline-flex; gap: 0; border: 2px solid var(--chalk); }
.tabs button { background: none; border: 0; padding: 9px 18px; font-family: var(--poster); font-size: 1.05rem; cursor: pointer; color: var(--chalk); }
.tabs button[aria-selected='true'] { background: var(--spray); color: var(--ink); }
.podium { display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: 22px; align-items: end; margin: 30px 0 34px; }
.podium .poster { text-align: center; padding-top: 30px; }
.podium .pos { font-family: var(--tag); font-size: 4rem; line-height: .8; color: var(--ink); }
.podium .p1 { padding-bottom: 36px; }
.podium .p1 .pos { font-size: 5.4rem; }
.podium img, .podium .ph { display: block; width: 74px; height: 74px; border-radius: 50%; margin: 10px auto; border: 3px solid var(--ink); object-fit: cover; background: var(--paper-shade); }
.podium .name { font-family: var(--poster); font-size: 1.35rem; word-break: break-word; }
.rank-list { list-style: none; margin: 0; padding: 0; }
.rank-list li { display: grid; grid-template-columns: 48px 40px 1fr auto; gap: 14px; align-items: center; padding: 10px 6px; border-bottom: 1px solid rgba(255,255,255,.08); }
.rank-list li.me { background: rgba(200, 150, 30, .14); outline: 2px solid var(--spray); }
.rank-list .p { font-family: var(--poster); font-size: 1.3rem; color: var(--muted); text-align: right; }
.rank-list img, .rank-list .ph { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: #1d1d20; }
.rank-list .who b { display: block; font-weight: 700; }
.rank-list .who span { font-size: .85rem; color: var(--muted); }
.rank-list .h { font-family: var(--poster); font-size: 1.25rem; }
.levels { width: 100%; border-collapse: collapse; }
.levels th, .levels td { text-align: left; padding: 9px 8px; border-bottom: 2px dashed rgba(0,0,0,.18); }
.levels th { font-family: var(--poster); font-weight: 400; font-size: 1.05rem; }
.levels td.lv { font-family: var(--poster); font-size: 1.25rem; }
.levels tr.cur { background: rgba(200, 150, 30, .38); }
.layout-2 { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: start; }

/* agenda */
.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 12px; }
.day { min-height: 150px; padding: 14px 12px; background: rgba(0,0,0,.25); border-top: 4px solid var(--line); }
.day h3 { font-family: var(--poster); font-size: 1.3rem; margin-bottom: 10px; }
.day.today { background: var(--paper); color: var(--ink); border-top-color: transparent; transform: rotate(-1deg); padding-inline: 20px; -webkit-mask: var(--torn) center / 100% 100% no-repeat; mask: var(--torn) center / 100% 100% no-repeat; }
.day .slot { margin-bottom: 10px; }
.day .slot b { font-family: var(--poster); font-weight: 400; font-size: 1.4rem; display: block; line-height: 1.1; }
.day .slot span { font-size: .9rem; }
.day .none { color: var(--muted); font-size: .9rem; }
.day.today .none { color: #6b6455; }
.clip { text-decoration: none; display: block; }
.clip .thumb { position: relative; aspect-ratio: 16 / 9; background: #000; border: 3px solid var(--ink); overflow: hidden; }
.clip .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.clip:hover .thumb img { transform: scale(1.04); }
.clip .dur { position: absolute; right: 6px; bottom: 6px; background: var(--ink); padding: 1px 7px; font-size: .8rem; font-weight: 700; }
.clip h3 { font-family: var(--body); font-weight: 700; font-size: 1rem; line-height: 1.3; margin: 10px 0 2px; }
.clip p { font-size: .85rem; color: var(--muted); margin: 0; }

/* wiki */
.wiki { display: grid; grid-template-columns: 240px 1fr; gap: 44px; align-items: start; }
.wiki nav { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 2px; }
.wiki nav a { text-decoration: none; padding: 6px 10px; border-left: 3px solid transparent; color: var(--muted); }
.wiki nav a:hover { color: var(--chalk); border-color: var(--spray); }
.wiki article section { margin-bottom: 46px; scroll-margin-top: 90px; }
.wiki article h2 { font-family: var(--poster); font-size: 2rem; letter-spacing: .01em; }
.wiki article h3 { font-family: var(--body); font-weight: 700; font-size: 1.08rem; margin: 22px 0 6px; }
.wiki article ul { padding-left: 1.2em; max-width: 68ch; }
.wiki article li { margin-bottom: .4em; }
.kbd { font-family: var(--poster); color: var(--spray); }

/* perfil */
.profile-head { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin-bottom: 30px; }
.profile-head img, .profile-head .ph { width: 96px; height: 96px; border-radius: 50%; border: 4px solid var(--spray); object-fit: cover; background: #1d1d20; }
.profile-head h1 { font-family: var(--tag); font-size: clamp(2.2rem, 5vw, 3.6rem); margin: 0; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 2px solid var(--line); margin-bottom: 34px; }
.stats div { padding: 16px 18px; border-right: 2px solid var(--line); }
.stats div:last-child { border-right: 0; }
.stats b { font-family: var(--poster); font-weight: 400; font-size: 2rem; display: block; line-height: 1.1; }
.stats span { font-size: .88rem; color: var(--muted); }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-weight: 700; font-size: .92rem; }
.input { background: rgba(255,255,255,.65); border: 2px solid var(--ink); padding: 11px 13px; color: var(--ink); width: 100%; }
.poster.dark .input, .admin .input { background: var(--wall-deep); color: var(--chalk); border-color: #55565c; }
.inline-form { display: flex; gap: 10px; flex-wrap: wrap; }
.inline-form .input { flex: 1 1 200px; }
.history { list-style: none; padding: 0; margin: 0; }
.history li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 2px dashed rgba(0,0,0,.15); align-items: center; }
.poster.dark .history li { border-color: rgba(255,255,255,.1); }
.history small { display: block; color: #6b6455; }
.poster.dark .history small { color: var(--muted); }

/* abrir baú */
.chest-open { text-align: center; }
.chest-open .chest-art { width: 210px; height: 170px; margin: 64px auto 16px; display: block; }
.chest-open .lata-art { width: 120px; height: 156px; margin: 10px auto 16px; display: block; }
.chest-art.saiu .sobe { animation: lata-sobe .7s cubic-bezier(.2,1.5,.4,1) both; }
@keyframes lata-sobe { from { transform: translateY(80px); opacity: 0; } 30% { opacity: 1; } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { .chest-art.saiu .sobe { animation: none; } }
.chest-open.shaking .chest-art { animation: shake .55s ease-in-out 2; }
@keyframes shake { 20% { transform: rotate(-7deg); } 40% { transform: rotate(6deg); } 60% { transform: rotate(-4deg); } 80% { transform: rotate(3deg); } }
.reward-burst { font-family: var(--tag); font-size: 3rem; line-height: 1; color: var(--ink); margin: 6px 0; }

/* ---------- modal e aviso ---------- */
.modal { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 20px; background: rgba(10, 10, 12, .78); }
.modal[hidden] { display: none; }
.modal .poster { width: min(460px, 100%); max-height: 90vh; overflow: auto; }
.modal h2 { font-family: var(--poster); font-size: 1.9rem; }
.modal .actions { display: flex; gap: 12px; justify-content: flex-end; flex-wrap: wrap; margin-top: 18px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) rotate(-1deg); z-index: 90; background: var(--spray); color: var(--ink); font-weight: 700; padding: 13px 20px; box-shadow: 5px 5px 0 var(--ink); max-width: min(520px, 92vw); }
.toast.err { background: var(--hot); }

/* ---------- transição de tinta ---------- */
.ink { position: fixed; inset: 0; z-index: 200; pointer-events: none; display: grid; grid-template-rows: repeat(4, 1fr); }
.ink i { display: block; margin: -4vh -6vw; transform: scaleX(0); transform-origin: left center; -webkit-mask: var(--brush) center / 100% 100% no-repeat; mask: var(--brush) center / 100% 100% no-repeat; }
.ink i:nth-child(1) { background: var(--spray); }
.ink i:nth-child(2) { background: var(--ink); }
.ink i:nth-child(3) { background: var(--paper); }
.ink i:nth-child(4) { background: var(--spray); }
/* transição de verdade: o stinger da overlay (webm com transparência) */
.ink-video { position: fixed; inset: 0; width: 100vw; height: 100vh; object-fit: cover; z-index: 200; pointer-events: none; visibility: hidden; }
.ink-video.show { visibility: visible; }
.ink-hold { position: fixed; inset: 0; z-index: 199; background: #0d0d0e; pointer-events: none; }
.ink.cover i { transform: scaleX(1); }
.ink.in i { animation: ink-in .42s cubic-bezier(.7,0,.3,1) forwards; }
.ink.out i { transform: scaleX(1); transform-origin: right center; animation: ink-out .5s cubic-bezier(.7,0,.3,1) forwards; }
.ink i:nth-child(2) { animation-delay: .06s; } .ink i:nth-child(3) { animation-delay: .12s; } .ink i:nth-child(4) { animation-delay: .18s; }
@keyframes ink-in { to { transform: scaleX(1); } }
@keyframes ink-out { to { transform: scaleX(0); } }

/* ---------- rodapé ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--wall-deep); padding: 36px 0 30px; color: var(--muted); font-size: .92rem; }
.site-footer .wrap { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: start; }
.site-footer .brand { font-size: 2.4rem; margin-bottom: 6px; }
.site-footer .brand img { height: 64px; }
.socials { display: flex; gap: 10px; flex-wrap: wrap; margin: 10px 0; }
.socials a { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--line); color: var(--chalk); }
.socials a:hover { border-color: var(--spray); color: var(--spray); }
.socials svg { width: 20px; height: 20px; }
.footer-links { display: flex; gap: 16px; flex-wrap: wrap; justify-content: flex-end; }
.footer-links a, .footer-links button { color: var(--muted); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- admin ---------- */
.admin .tabs { flex-wrap: wrap; margin-bottom: 24px; }
.admin table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.admin th, .admin td { text-align: left; padding: 9px 8px; border-bottom: 1px solid rgba(255,255,255,.1); vertical-align: middle; }
.admin th { font-family: var(--poster); font-weight: 400; font-size: 1rem; color: var(--muted); }
.admin td .input { padding: 7px 9px; }
.admin .panel { background: rgba(0,0,0,.25); border: 2px solid #1d1d20; padding: 22px; margin-bottom: 24px; overflow-x: auto; }
.admin .panel h2 { font-family: var(--poster); font-size: 1.6rem; }
.admin .form-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px 16px; }
.admin .ok { color: #57d68d; }
.admin .bad { color: var(--hot); }
.admin code { background: var(--wall-deep); padding: 2px 6px; word-break: break-all; }
.admin pre { background: var(--wall-deep); padding: 14px; overflow-x: auto; font-size: .85rem; white-space: pre-wrap; word-break: break-all; }

.empty { padding: 30px; text-align: center; border: 2px dashed var(--line); color: var(--muted); }
.loading { color: var(--muted); padding: 20px 0; }

/* ---------- responsivo ---------- */
@media (max-width: 920px) {
  .layout-2, .wiki, .home-row { grid-template-columns: 1fr; }
  .hero-stage { min-height: 0; background-image: var(--hero-img-m, var(--hero-img, none)); background-position: 72% top; background-size: auto 100%; }
  .hero-stage::after { background: linear-gradient(180deg, rgba(7,7,8,.45) 0%, rgba(7,7,8,.88) 45%, rgba(13,13,14,1) 100%); }
  .hero { padding: 40px 0 50px; }
  .hero-logo { max-width: 300px; }
  .steps { grid-template-columns: 1fr; gap: 22px; }
  .week { grid-template-columns: repeat(2, 1fr); }
  .wiki nav { position: static; flex-direction: row; flex-wrap: wrap; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats div:nth-child(2) { border-right: 0; }
  .stats div:nth-child(-n+2) { border-bottom: 2px solid var(--line); }
  .partner { grid-template-columns: 1fr; }
  .site-footer .wrap { grid-template-columns: 1fr; }
  .footer-links { justify-content: flex-start; }
}
@media (max-width: 560px) {
  .podium { grid-template-columns: 1fr; }
  .podium .p1 { order: -1; }
  .week { grid-template-columns: 1fr; }
  .rank-list li { grid-template-columns: 36px 36px 1fr auto; gap: 10px; }
}

/* ---------- modo leve / movimento reduzido ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-delay: 0s !important; transition: none !important; }
}
.lite *, .lite *::before, .lite *::after { animation-duration: .001s !important; animation-delay: 0s !important; transition: none !important; }
.lite .ink, .lite .ink-video { display: none; }

/* ---------- sorteios ---------- */
.mode-chip { display: inline-block; font-family: var(--poster); font-size: .95rem; letter-spacing: .02em; background: var(--ink); color: var(--paper); padding: 3px 10px; margin-bottom: 10px; transform: rotate(-1.5deg); }
.mode-chip.dark { background: var(--spray); color: var(--ink); }
.raffle .how { font-size: 1.05rem; color: var(--ink); }
.raffle .how .kw { font-family: var(--poster); font-weight: 400; font-size: 1.3rem; background: var(--ink); color: var(--spray); padding: 0 8px; }
.rules { margin: 0 0 14px; padding-left: 1.1em; font-size: .9rem; color: #2b2b2b; }
.poster.dark .rules { color: var(--chalk); }
.draws { list-style: none; padding: 0; margin: 10px 0 14px; display: grid; gap: 8px; }
.draws li { display: flex; align-items: center; gap: 10px; }
.draws img, .draws .ph { width: 34px; height: 34px; border-radius: 50%; background: #d0d0d0; object-fit: cover; }
.draws .stamp { font-size: .8rem; padding: 0 8px; border-width: 2px; margin-left: auto; }
.proof { margin: 14px 0 0; }
.proof code, .wrap-code { font-size: .8rem; word-break: break-all; }
.linkish { background: none; border: 0; padding: 0; color: inherit; text-decoration: underline; cursor: pointer; font: inherit; }
.odds { list-style: none; padding: 0; margin: 10px 0 14px; display: grid; gap: 6px; }
.odds li { position: relative; display: grid; grid-template-columns: 90px 1fr auto; gap: 12px; align-items: center; padding: 8px 12px; background: rgba(255,255,255,.04); border-left: 4px solid var(--c); overflow: hidden; }
.odds li i { position: absolute; left: 0; bottom: 0; height: 3px; background: var(--c); opacity: .8; }
.odds .rar { font-size: .78rem; font-weight: 700; color: var(--c); }
.odds .pct { font-family: var(--poster); font-size: 1.1rem; }

/* painel: sorteios ao vivo */
.mode-pick { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 8px; }
.mode-pick label { cursor: pointer; }
.mode-pick input { position: absolute; opacity: 0; }
.mode-pick span { display: inline-block; font-family: var(--poster); font-size: 1.05rem; padding: 9px 16px; border: 2px solid var(--line); color: var(--muted); }
.mode-pick input:checked + span { background: var(--spray); color: var(--ink); border-color: var(--spray); }
.mode-pick input:focus-visible + span { outline: 3px solid var(--spray); outline-offset: 2px; }
.checks { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 8px 0 14px; }
.checks label { display: flex; gap: 8px; align-items: center; cursor: pointer; }
.checks input { width: 18px; height: 18px; accent-color: var(--spray); }
[hidden] { display: none !important; }
.live-raffle { display: flex; justify-content: space-between; gap: 18px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.live-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.countdown { margin-top: 6px; font-family: var(--poster); font-size: 1.2rem; color: var(--spray); }

.bot-said { display: block; margin-top: 10px; font-size: .85rem; color: var(--muted); }
