body {
  background: var(--lacca);
  color: var(--pergamena);
  min-height: 100vh;
}

/* ---------- hero: mist over the arena, like the posters ---------- */
.hero {
  position: relative;
  text-align: center;
  padding: 34px 20px 150px;
  color: var(--inchiostro);
  background:
    linear-gradient(180deg, var(--nebbia) 0%, rgba(238, 232, 222, .94) 42%, rgba(238, 232, 222, .7) 64%, rgba(238, 232, 222, 0) 84%, var(--lacca) 100%),
    url('/img/bg-arena.jpg') center 70% / cover no-repeat;
}
.brand { display: flex; align-items: center; justify-content: center; gap: 18px; font-size: 15px; letter-spacing: .6em; }
.brand-seal { width: 64px; height: 64px; object-fit: contain; }
.motto { font-size: 11px; letter-spacing: .5em; margin: 10px 0 0; line-height: 1.7; opacity: .8; }
.title { position: relative; margin: 26px auto 0; display: inline-grid; place-items: center; font-weight: 400; }
.title .edition {
  grid-area: 1 / 1;
  font-family: var(--f-brush); color: var(--carminio);
  font-size: clamp(150px, 26vw, 260px); line-height: .8;
  filter: url(#dw-rough); opacity: .92;
  transform: translateY(-4%) skewX(-4deg);
}
.title .brush { grid-area: 1 / 1; font-size: clamp(64px, 12vw, 128px); color: #120d0b; position: relative; z-index: 1; text-shadow: 0 2px 0 rgba(238, 232, 222, .35); }
.sub, .vs { text-shadow: 0 0 14px rgba(238, 232, 222, .9), 0 0 3px rgba(238, 232, 222, .9); }
.sub { margin: 4px 0 0; font-size: clamp(16px, 2.6vw, 24px); letter-spacing: .45em; }
.vs { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 6px 0 0; font-family: var(--f-caps); font-size: clamp(26px, 4vw, 40px); font-weight: 600; }
.vs #subtitle { white-space: nowrap; }
.vs-line { width: 70px; height: 1px; background: currentColor; }

main { position: relative; margin-top: -90px; padding: 0 clamp(12px, 3vw, 40px) 40px; }

.section-title { font-size: clamp(36px, 5vw, 52px); color: var(--pergamena); margin: 0; }
.section-title .count { font-family: var(--f-caps); font-size: 18px; letter-spacing: .2em; color: var(--oro); vertical-align: middle; filter: none; }

/* ---------- live plate ---------- */
#live.live { max-width: 980px; margin: 0 auto 36px; padding: 20px 26px 22px; }
.live-top { display: flex; justify-content: center; gap: 14px; align-items: baseline; font-family: var(--f-caps); letter-spacing: .25em; font-size: 12px; text-transform: uppercase; color: var(--oro-chiaro); }
.live-top .on { color: #fff; background: var(--carminio); padding: 2px 10px; border: 1px solid var(--brace); }
.live-grid { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 18px; margin-top: 14px; }
.live-p { display: flex; align-items: center; gap: 14px; min-width: 0; }
.live-p.right { flex-direction: row-reverse; text-align: right; }
.live-p .nm { font-family: var(--f-brush); font-size: clamp(22px, 3.4vw, 38px); line-height: 1; transform: skewX(-6deg); filter: url(#dw-rough); overflow-wrap: anywhere; }
.live-p .bd { font-style: italic; opacity: .75; font-size: 16px; }
.live-score { font-family: var(--f-caps); font-size: clamp(38px, 6vw, 60px); font-weight: 700; color: var(--oro-chiaro); white-space: nowrap; }
.live-score span { color: var(--brace); padding: 0 8px; font-size: .6em; vertical-align: middle; }
.pips { display: flex; gap: 5px; margin-top: 6px; }
.live-p.right .pips { justify-content: flex-end; }
.pip { width: 11px; height: 11px; transform: rotate(45deg); border: 1px solid var(--oro); }
.pip.on { background: var(--brace); border-color: var(--brace); box-shadow: 0 0 8px var(--brace); }
.live-timer { text-align: center; margin-top: 12px; font-family: var(--f-caps); letter-spacing: .2em; color: var(--oro-chiaro); }
.live-timer b { color: var(--brace); font-size: 20px; }

/* ---------- podium (after the final) ---------- */
#podium.podium { max-width: 900px; margin: 0 auto 40px; text-align: center; }
.pd-wrap { display: grid; grid-template-columns: 1fr 1.2fr 1fr; align-items: end; gap: clamp(8px, 2vw, 20px); margin-top: 16px; }
.pd-col { display: flex; flex-direction: column; min-width: 0; }
.pd-card { min-height: clamp(130px, 16vw, 170px); justify-content: center; padding: 16px 10px 14px; display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; }
.pd-card svg { width: 40px; height: 40px; color: var(--carminio); }
.pd-card .nm { font-family: var(--f-brush); font-size: clamp(20px, 3.2vw, 34px); line-height: 1.05; transform: skewX(-6deg); filter: url(#dw-rough); max-width: 100%; overflow-wrap: anywhere; }
.pd-1 .pd-card .nm { font-size: clamp(24px, 4vw, 44px); }
.pd-card .gbadge { justify-content: center; }
.pd-card.bannered .nm { color: var(--pergamena); }
.pd-card.bannered svg { color: var(--oro-chiaro); }
.pd-step { display: flex; flex-direction: column; align-items: center; justify-content: center; border-top: 2px solid var(--oro); }
.pd-step .brush { font-size: clamp(40px, 7vw, 70px); line-height: .9; color: var(--oro-chiaro); }
.pd-step small { font-family: var(--f-caps); font-size: 11px; letter-spacing: .25em; text-transform: uppercase; color: var(--pergamena); margin-top: 6px; }
.pd-1 .pd-step { height: clamp(90px, 14vw, 130px); }
.pd-1 .pd-step .brush { color: var(--brace); }
.pd-2 .pd-step { height: clamp(66px, 10vw, 92px); }
.pd-3 .pd-step { height: clamp(62px, 8vw, 78px); }

/* ---------- stage (bracket) ---------- */
.stage {
  margin: 0 auto; padding: 22px clamp(10px, 2vw, 28px) 28px;
  background:
    radial-gradient(ellipse at 50% 55%, rgba(142, 27, 27, .22), transparent 60%),
    linear-gradient(180deg, rgba(34, 25, 21, .6), rgba(16, 11, 9, .8));
  border-top: 1px solid rgba(184, 149, 86, .35);
  border-bottom: 1px solid rgba(184, 149, 86, .35);
}
.stage-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.stage-note { margin: -8px 0 16px; font-style: italic; opacity: .8; font-size: 17px; }
.orient { display: flex; border: 1px solid rgba(184, 149, 86, .5); }
.orient button { background: none; border: 0; color: var(--pergamena); padding: 6px 12px; cursor: pointer; font-family: var(--f-caps); font-size: 11px; letter-spacing: .15em; }
.orient button[aria-pressed="true"] { background: var(--carminio); color: #fff; }
.hg-scroll { padding: 12px 4px 8px; }
.empty-stage { text-align: center; padding: 50px 10px; font-size: 20px; font-style: italic; opacity: .75; }

/* ---------- roster ---------- */
.roster-wrap, .rules-wrap { max-width: 1200px; margin: 50px auto 0; }
.roster { list-style: none; padding: 0; margin: 20px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.roster li { display: flex; gap: 12px; align-items: center; padding: 12px 14px; }
.roster .nm { font-weight: 700; font-size: 19px; line-height: 1.1; }
.roster .bd { font-style: italic; font-size: 15px; opacity: .8; }
.roster .st { font-family: var(--f-caps); font-size: 10px; letter-spacing: .18em; margin-top: 3px; color: var(--carminio); }
.roster li.out { opacity: .55; filter: grayscale(.6); }

/* ---------- rules ---------- */
.rules { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 14px; margin-top: 20px; }
.rule { padding: 18px 20px 20px; text-align: center; }
.rule h3 { font-family: var(--f-caps); letter-spacing: .18em; font-size: 15px; margin: 0 0 8px; }
.rule p { margin: 0; font-size: 18px; line-height: 1.4; }
.rule em { color: var(--carminio); font-style: normal; font-weight: 700; }
.rules-quote { text-align: center; font-family: var(--f-caps); letter-spacing: .22em; font-size: 12px; color: var(--oro-chiaro); margin: 28px 0 0; }

/* ---------- footer ---------- */
.foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding: 28px clamp(16px, 4vw, 48px); margin-top: 50px; border-top: 1px solid rgba(184, 149, 86, .35); background: #0f0b09; }
.twitch { display: flex; align-items: center; gap: 12px; color: var(--pergamena); text-decoration: none; }
.twitch svg { width: 44px; height: 44px; color: #9146ff; }
.twitch small { font-size: 10px; letter-spacing: .25em; }
.twitch strong { font-family: var(--f-caps); font-size: 22px; letter-spacing: .1em; }
.social { font-size: 10px; margin: 0; }
.social strong { display: block; font-size: 16px; letter-spacing: .12em; margin-top: 4px; }
.values { font-size: 10px; line-height: 1.8; text-align: right; margin: 0; color: var(--oro-chiaro); }

@media (max-width: 760px) {
  .hero { padding-bottom: 120px; }
  .brand { letter-spacing: .35em; font-size: 12px; gap: 10px; }
  .brand-seal { width: 48px; height: 48px; }
  .live-grid { grid-template-columns: 1fr; text-align: center; }
  .live-p, .live-p.right { flex-direction: column; text-align: center; }
  .live-p .pips, .live-p.right .pips { justify-content: center; }
  .values { text-align: left; }
}

/* ---------- guilds & banners ---------- */
.roster li { min-height: 78px; }
.roster li .gbadge { margin-top: 2px; }
.roster li.bannered .st { color: var(--brace); }
.roster li.bannered .bd { opacity: .9; }
.live-p.bannered { padding: 10px 14px; border: 1px solid rgba(220, 194, 138, .5); }
.live-p.right.bannered { --shade: linear-gradient(270deg, rgba(15, 10, 8, .9) 0%, rgba(15, 10, 8, .72) 45%, rgba(15, 10, 8, .38) 100%); }
