/*
Theme Name: Exiles
Theme URI: https://exilescebu.com
Description: Exiles — bold esports / tournament theme
Version: 4.0
Author: GAYLE A
*/

@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:ital,wght@0,600;0,700;0,800;0,900;1,700;1,800;1,900&family=Inter:wght@400;500;600;700;800&display=swap');

/* ============================================================
   1. TOKENS
   ============================================================ */
:root {
  --ink:    #0a0a0b;
  --coal:   #121214;
  --steel:  #1d1d21;
  --steel2: #2a2a30;
  --paper:  #f2f2ef;
  --white:  #ffffff;
  --red:    #e10600;
  --red-d:  #9d0400;
  --red-l:  #ff3b30;
  --muted:  #6d6d75;
  --muted-d:#9a9aa3;   /* muted text on dark */
  --line:   rgba(10,10,11,.12);
  --line-d: rgba(255,255,255,.12);

  --f-display: 'Barlow Condensed', 'Arial Narrow', Impact, sans-serif;
  --f-body:    'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --notch: 14px;
  --clip-notch: polygon(0 0, calc(100% - var(--notch)) 0, 100% var(--notch), 100% 100%, var(--notch) 100%, 0 calc(100% - var(--notch)));
  --clip-card:  polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 0 100%);
  --ease: cubic-bezier(.22,.8,.46,1);
  --wrap: 1180px;
  --header-h: 68px;
}

/* ============================================================
   2. RESET + BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 16px; line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; }
::selection { background: var(--red); color: #fff; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--f-display);
  font-weight: 800; font-style: italic;
  text-transform: uppercase;
  letter-spacing: .01em; line-height: .98;
}
strong, b { font-weight: 700; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 1.5rem; }

/* ============================================================
   3. BUTTONS + SMALL PARTS
   ============================================================ */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  font-family: var(--f-display); font-weight: 800; font-style: italic;
  font-size: 18px; letter-spacing: .08em; text-transform: uppercase; line-height: 1;
  padding: 16px 34px; border: 0;
  clip-path: var(--clip-notch);
  transition: background .2s, color .2s, transform .2s var(--ease);
  white-space: nowrap;
}
.btn::after { content: '→'; font-style: normal; transition: transform .2s var(--ease); }
.btn:hover { transform: translateY(-2px); }
.btn:hover::after { transform: translateX(4px); }
.btn--noarrow::after { display: none; }
.btn--primary { background: var(--red); color: #fff; }
.btn--primary:hover { background: var(--ink); }
.btn--ghost   { background: rgba(10,10,11,.08); color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.btn--dark    { background: var(--ink); color: #fff; }
.btn--dark:hover { background: var(--red); }
.btn--light   { background: #fff; color: var(--ink); }
.btn--light:hover { background: var(--red); color: #fff; }
.on-dark .btn--ghost { background: rgba(255,255,255,.1); color: #fff; }
.on-dark .btn--ghost:hover { background: #fff; color: var(--ink); }
.on-dark .btn--primary:hover { background: #fff; color: var(--ink); }
.btn--sm { font-size: 15px; padding: 11px 22px; --notch: 10px; }
.js-btn-ripple { overflow: hidden; }
.btn-ripple-circle { position: absolute; border-radius: 50%; background: rgba(255,255,255,.3); width: 60px; height: 60px; margin: -30px 0 0 -30px; pointer-events: none; animation: ripple-out .55s ease-out forwards; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .7rem;
  font-family: var(--f-body); font-weight: 700; font-size: 12px;
  letter-spacing: .26em; text-transform: uppercase; color: var(--red);
}
.eyebrow::before { content: ''; width: 34px; height: 3px; background: var(--red); transform: skewX(-30deg); }

.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 2rem; }
.section-head h2 { font-size: clamp(40px, 6vw, 72px); }
.section-head h2 em { color: var(--red); font-style: inherit; }
.link-arrow { font-family: var(--f-display); font-weight: 800; font-style: italic; font-size: 18px; letter-spacing: .08em; text-transform: uppercase; border-bottom: 3px solid var(--red); padding-bottom: 2px; }
.link-arrow:hover { color: var(--red); }

.pill {
  display: inline-flex; align-items: center; gap: .5rem;
  font-weight: 800; font-size: 11px; letter-spacing: .2em; text-transform: uppercase;
  padding: 6px 14px 6px 10px; background: var(--red); color: #fff;
  clip-path: polygon(0 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
}
.pill__dot { width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: blink 1.1s step-end infinite; }

/* ============================================================
   4. TICKER + HEADER
   ============================================================ */
.ticker { background: var(--red); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.ticker__inner { max-width: var(--wrap); margin: 0 auto; padding: 8px 1.5rem; display: flex; align-items: center; justify-content: center; gap: 1.1rem; flex-wrap: wrap; text-align: center; }
.ticker__label { background: #fff; color: var(--red); padding: 2px 10px 2px 8px; font-weight: 800; clip-path: polygon(0 0, 100% 0, calc(100% - 6px) 100%, 0 100%); }
.ticker a { text-decoration: underline; text-underline-offset: 3px; }

.site-header { position: sticky; top: 0; z-index: 1200; background: var(--ink); color: #fff; border-bottom: 3px solid var(--red); }
.site-header__inner { max-width: var(--wrap); margin: 0 auto; padding: 0 1.5rem; height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.site-header__logo { display: flex; align-items: center; flex-shrink: 0; transition: transform .25s var(--ease); }
.site-header__logo:hover { transform: scale(1.06) rotate(-2deg); }
.site-header__logo img { height: 48px; width: auto; }
.site-nav { flex: 1; display: flex; justify-content: center; }
.nav-links { display: flex; align-items: center; gap: .25rem; }
.nav-links a {
  position: relative; display: block; padding: 8px 18px; isolation: isolate;
  font-family: var(--f-display); font-weight: 800; font-style: italic; font-size: 19px;
  letter-spacing: .08em; text-transform: uppercase; color: #cfcfd6; transition: color .2s;
}
.nav-links a::before { content: ''; position: absolute; inset: 0; background: var(--red); transform: skewX(-14deg) scaleX(0); transform-origin: left; transition: transform .25s var(--ease); z-index: -1; }
.nav-links a:hover, .nav-links a.current { color: #fff; }
.nav-links a:hover::before, .nav-links a.current::before { transform: skewX(-14deg) scaleX(1); }
.nav-cta-desktop { flex-shrink: 0; }
.nav-toggle { display: none; width: 44px; height: 44px; background: var(--steel); border: 0; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.nav-toggle__bar { display: block; width: 22px; height: 3px; background: #fff; transition: transform .28s var(--ease), opacity .2s; }
.nav-toggle.is-open .nav-toggle__bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.is-open .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle.is-open .nav-toggle__bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.nav-mobile-panel { position: absolute; top: 100%; left: 0; right: 0; background: var(--ink); border-bottom: 3px solid var(--red); max-height: 0; overflow: hidden; opacity: 0; pointer-events: none; transition: max-height .32s var(--ease), opacity .25s; }
.nav-mobile-panel.is-open { max-height: 460px; opacity: 1; pointer-events: auto; }
.nav-mobile-panel ul { display: flex; flex-direction: column; padding: .5rem 0 1.25rem; }
.nav-mobile-panel a { display: block; padding: .85rem 1.5rem; font-family: var(--f-display); font-weight: 800; font-style: italic; font-size: 26px; text-transform: uppercase; letter-spacing: .06em; color: #fff; border-bottom: 1px solid var(--line-d); }
.nav-mobile-panel a.current { color: var(--red-l); border-left: 5px solid var(--red); }
.nav-mobile-panel a.nav-mobile__cta { margin: 1rem 1.5rem 0; text-align: center; background: var(--red); border: 0; }
body.nav-is-open { overflow: hidden; }

/* ============================================================
   5. HOME HERO
   ============================================================ */
.hero { position: relative; background: var(--ink); color: #fff; overflow: hidden; isolation: isolate; }
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: -3;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 56px 56px;
}
.hero__slash { position: absolute; z-index: -2; top: -10%; bottom: -10%; right: 11%; width: 30%; background: linear-gradient(180deg, var(--red) 0%, var(--red-d) 100%); transform: skewX(-18deg); opacity: .95; }
.hero__slash--2 { right: 8%; width: 3.5%; background: #fff; opacity: .9; }
.hero__slash--3 { right: 3%; width: 1.4%; background: var(--red); }
.hero__ghost { position: absolute; z-index: -1; left: -2%; bottom: -6%; font-family: var(--f-display); font-weight: 900; font-style: italic; font-size: clamp(160px, 32vw, 460px); line-height: .8; color: transparent; -webkit-text-stroke: 2px rgba(255,255,255,.07); text-transform: uppercase; white-space: nowrap; pointer-events: none; user-select: none; }
.hero__inner { display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 2rem; min-height: 600px; padding-top: 4.5rem; padding-bottom: 7rem; }
.hero__title { font-size: clamp(64px, 10vw, 132px); line-height: .86; margin: 1.25rem 0 2.25rem; animation: hero-in .8s var(--ease) .15s both; }
.hero__title span { display: block; }
.hero__title .is-red { color: var(--red); }
.hero__title .is-outline { color: transparent; -webkit-text-stroke: 2px #fff; }
.hero__eyebrow { animation: hero-in .6s var(--ease) both; }
.hero__lede { max-width: 480px; color: #c9c9d0; font-size: 17px; margin-bottom: 2rem; animation: hero-in .7s var(--ease) .35s both; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; animation: hero-in .7s var(--ease) .5s both; }
.hero__logo { position: relative; justify-self: center; animation: hero-in .9s var(--ease) .3s both; }
.hero__logo img { width: min(420px, 78vw); filter: drop-shadow(0 20px 40px rgba(0,0,0,.6)); animation: float 6s ease-in-out infinite; }

.stats { position: relative; z-index: 2; margin-top: -3.2rem; }
.stats__grid { display: grid; grid-template-columns: repeat(3, 1fr); background: #fff; color: var(--ink); clip-path: polygon(0 0, 100% 0, calc(100% - 28px) 100%, 28px 100%); box-shadow: 0 20px 50px rgba(0,0,0,.2); }
.stat { padding: 1.4rem 1rem 1.6rem; text-align: center; position: relative; }
.stat + .stat::before { content: ''; position: absolute; left: 0; top: 22%; bottom: 22%; width: 3px; background: var(--red); transform: skewX(-18deg); }
.stat__num { display: block; font-family: var(--f-display); font-weight: 900; font-style: italic; font-size: clamp(40px, 6vw, 68px); line-height: 1; }
.stat__label { display: block; font-size: 11px; font-weight: 800; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); margin-top: .3rem; }

/* ============================================================
   6. SECTIONS (home)
   ============================================================ */
.section { padding: 5rem 0; position: relative; }
.section--dark { background: var(--ink); color: #fff; }

/* featured event */
.battle { display: grid; grid-template-columns: .85fr 1.15fr; align-items: stretch; background: var(--ink); color: #fff; clip-path: var(--clip-card); box-shadow: 0 30px 70px rgba(0,0,0,.25); }
.battle:not(:has(.battle__poster)) { grid-template-columns: 1fr; }
.battle__poster { position: relative; background: var(--steel); overflow: hidden; aspect-ratio: 1 / 1; align-self: start; }
.battle__poster img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.battle:hover .battle__poster img { transform: scale(1.04); }
.battle__poster::after { content: ''; position: absolute; top: 0; right: -1px; bottom: 0; width: 60px; background: var(--ink); clip-path: polygon(100% 0, 100% 100%, 0 100%); }
.battle__body { padding: 2.75rem 2.75rem 2.75rem 2rem; display: flex; flex-direction: column; justify-content: center; gap: 1.1rem; }
.battle__top { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.battle__date { display: inline-flex; align-items: stretch; background: #fff; color: var(--ink); font-family: var(--f-display); font-weight: 900; font-style: italic; line-height: 1; clip-path: polygon(0 0, 100% 0, calc(100% - 10px) 100%, 0 100%); }
.battle__date b { background: var(--red); color: #fff; padding: 8px 12px; font-size: 18px; letter-spacing: .1em; display: flex; align-items: center; }
.battle__date span { padding: 6px 20px 6px 12px; font-size: 38px; }
.battle__name { font-size: clamp(40px, 5.2vw, 70px); }
.battle__meta { display: flex; flex-direction: column; gap: .3rem; color: #c9c9d0; font-size: 15px; }
.battle__meta strong { color: #fff; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; font-size: 13px; margin-right: .5rem; }
.battle__closes { color: var(--red-l); font-weight: 600; }
.battle__walkin { background: var(--steel); border-left: 4px solid var(--red); padding: .7rem 1rem; font-size: 14px; color: #ddd; }
.battle__count { display: flex; align-items: baseline; gap: .6rem; border-top: 1px solid var(--line-d); padding-top: 1rem; }
.battle__count-num { font-family: var(--f-display); font-weight: 900; font-style: italic; font-size: 64px; line-height: .9; color: var(--red-l); }
.battle__count-unit { font-weight: 700; font-size: 12px; letter-spacing: .24em; text-transform: uppercase; color: var(--muted-d); }
.battle__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: .4rem; }

.empty-battle { text-align: center; padding: 3.5rem 1.5rem; background: var(--ink); color: #fff; clip-path: var(--clip-card); }
.empty-battle h3 { font-size: clamp(36px, 5vw, 60px); margin: .6rem 0 .4rem; }
.empty-battle p { color: var(--muted-d); }

/* more open events */
.open-list { display: grid; gap: 1rem; margin-top: 1.5rem; }
.open-card { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1.5rem; background: #fff; border-left: 6px solid var(--red); padding: 1rem 1.5rem 1rem 1rem; box-shadow: 0 8px 24px rgba(0,0,0,.06); transition: transform .25s var(--ease), box-shadow .25s; }
.open-card:hover { transform: translateX(6px); box-shadow: 0 14px 34px rgba(0,0,0,.12); }
.open-card__img { width: 96px; height: 96px; overflow: hidden; background: var(--steel); }
.open-card__img img { width: 100%; height: 100%; object-fit: cover; }
.open-card:not(:has(.open-card__img)) { grid-template-columns: 1fr auto; padding-left: 1.5rem; }
.open-card__tag { font-size: 11px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: var(--red); }
.open-card__name { font-size: clamp(26px, 3.4vw, 38px); }
.open-card__meta { color: var(--muted); font-size: 14px; }
.open-card__actions { display: flex; gap: .6rem; flex-wrap: wrap; justify-content: flex-end; }

/* results */
.results { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.result-card { position: relative; display: flex; flex-direction: column; background: var(--steel); color: #fff; cursor: pointer; clip-path: var(--clip-card); transition: transform .25s var(--ease), background .25s; }
.result-card:hover { transform: translateY(-6px); background: var(--steel2); }
.result-card__img { aspect-ratio: 16/9; background: var(--coal); overflow: hidden; position: relative; }
.result-card__img img { width: 100%; height: 100%; object-fit: cover; opacity: .85; filter: grayscale(.4); transition: filter .3s, opacity .3s, transform .5s var(--ease); }
.result-card:hover .result-card__img img { filter: none; opacity: 1; transform: scale(1.05); }
.result-card__body { padding: 1.25rem 1.4rem 1.5rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.result-card__status { display: inline-flex; align-items: center; gap: .5rem; font-size: 11px; font-weight: 800; letter-spacing: .22em; text-transform: uppercase; color: var(--muted-d); }
.result-card__status i { width: 8px; height: 8px; background: var(--red); transform: skewX(-18deg); }
.result-card__name { font-size: clamp(28px, 2.8vw, 36px); }
.result-card__meta { color: var(--muted-d); font-size: 13px; display: flex; gap: .5rem; flex-wrap: wrap; }
.result-card__winners { margin-top: auto; padding-top: .9rem; border-top: 1px solid var(--line-d); display: grid; grid-template-columns: 1fr 1fr; gap: .6rem .8rem; }
.winner { display: flex; align-items: center; gap: .5rem; min-width: 0; }
.winner__icon { font-size: 18px; flex-shrink: 0; }
.winner__rank { display: block; font-size: 9px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--muted-d); }
.winner__name { display: block; font-weight: 700; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.winner--champ .winner__name { color: var(--red-l); }
.result-card__more { margin-top: .8rem; font-family: var(--f-display); font-weight: 800; font-style: italic; letter-spacing: .08em; text-transform: uppercase; font-size: 15px; color: var(--red-l); }

/* lightbox */
.tr-lightbox { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center; padding: 1rem; }
.tr-lightbox[hidden] { display: none; }
.tr-lightbox__backdrop { position: absolute; inset: 0; background: rgba(10,10,11,.8); backdrop-filter: blur(6px); }
.tr-lightbox__panel { position: relative; background: var(--ink); color: #fff; max-width: 580px; width: 100%; max-height: 86vh; overflow-y: auto; border-top: 5px solid var(--red); clip-path: var(--clip-card); }
.tr-lightbox__close { position: absolute; top: .6rem; right: 1rem; background: none; border: 0; color: #fff; font-size: 2rem; line-height: 1; z-index: 1; }
.tr-lightbox__close:hover { color: var(--red-l); }
.tr-lightbox__header { padding: 2rem 2rem 1.2rem; border-bottom: 1px solid var(--line-d); }
.tr-lightbox__tag { font-size: 11px; font-weight: 800; letter-spacing: .24em; text-transform: uppercase; color: var(--red-l); margin-bottom: .5rem; }
.tr-lightbox__title { font-size: clamp(34px, 6vw, 52px); }
.tr-lightbox__meta { color: var(--muted-d); font-size: 14px; margin-top: .4rem; }
.tr-lightbox__body { padding: 1.5rem 2rem 2rem; }
.tr-lightbox__desc { color: #cfcfd6; font-size: 15px; line-height: 1.8; white-space: pre-line; }
.tr-lightbox__winners { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line-d); }
.tr-lightbox__winners-label { font-size: 11px; font-weight: 800; letter-spacing: .24em; text-transform: uppercase; color: var(--red-l); margin-bottom: .6rem; }
.tr-lightbox__winner-row { display: flex; align-items: center; gap: .9rem; padding: .6rem 0; }
.tr-lightbox__winner-row + .tr-lightbox__winner-row { border-top: 1px solid var(--line-d); }
.tr-lightbox__winner-place { font-size: 24px; min-width: 2rem; text-align: center; }
.tr-lightbox__winner-label { font-size: 10px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: var(--muted-d); }
.tr-lightbox__winner-name { font-weight: 700; font-size: 17px; }
@keyframes lb-in  { from { opacity: 0; transform: translateY(18px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes lb-out { from { opacity: 1; } to { opacity: 0; transform: translateY(12px) scale(.97); } }
.tr-lightbox--in  .tr-lightbox__panel { animation: lb-in .28s var(--ease) both; }
.tr-lightbox--out .tr-lightbox__panel { animation: lb-out .24s ease both; }

/* ============================================================
   7. INNER PAGES
   ============================================================ */
.page-hero { position: relative; background: var(--ink); color: #fff; overflow: hidden; isolation: isolate; padding: 3.5rem 0 4rem; }
.page-hero::before { content: ''; position: absolute; z-index: -1; top: -20%; bottom: -20%; right: 6%; width: 26%; background: var(--red); transform: skewX(-18deg); }
.page-hero::after { content: ''; position: absolute; z-index: -1; top: -20%; bottom: -20%; right: 1%; width: 2.2%; background: #fff; transform: skewX(-18deg); }
.page-hero__back { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: var(--muted-d); margin-bottom: 1rem; }
.page-hero__back:hover { color: #fff; }
.page-hero h1 { font-size: clamp(52px, 9vw, 110px); line-height: .88; margin-top: .8rem; }
.page-hero__sub { color: #c9c9d0; margin-top: 1rem; max-width: 560px; }
.page-main { padding: 3.5rem 0 5rem; }
.wrap--narrow { max-width: 860px; }

/* generic content (rules page etc.) */
.prose > * + * { margin-top: 1.2rem; }
.prose h2 { font-size: clamp(34px, 5vw, 54px); margin-top: 2.8rem; padding-left: 1rem; border-left: 8px solid var(--red); }
.prose h3 { font-size: clamp(26px, 3.4vw, 36px); margin-top: 2rem; color: var(--red); }
.prose h4 { font-size: 22px; margin-top: 1.5rem; }
.prose p, .prose li { color: #2b2b30; }
.prose a { color: var(--red); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.prose ul { list-style: none; display: grid; gap: .5rem; }
.prose ul li { position: relative; padding-left: 1.6rem; }
.prose ul li::before { content: ''; position: absolute; left: 0; top: .6em; width: 10px; height: 10px; background: var(--red); transform: skewX(-18deg); }
.prose ol { padding-left: 1.4rem; display: grid; gap: .5rem; }
.prose ol li::marker { font-weight: 800; color: var(--red); }
.prose img { clip-path: var(--clip-card); }
.prose blockquote { background: var(--ink); color: #fff; padding: 1.5rem 1.75rem; border-left: 8px solid var(--red); }
.prose blockquote p { color: #fff; }
.prose table { width: 100%; border-collapse: collapse; background: #fff; font-size: 15px; }
.prose th { background: var(--ink); color: #fff; font-family: var(--f-display); font-style: italic; text-transform: uppercase; letter-spacing: .08em; font-size: 17px; text-align: left; padding: .7rem 1rem; }
.prose td { padding: .7rem 1rem; border-bottom: 1px solid var(--line); }
.prose hr, .prose .wp-block-separator { border: 0; height: 4px; background: linear-gradient(90deg, var(--red) 0 80px, var(--line) 80px); }
.prose .wp-block-columns { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.prose .wp-block-column { flex: 1 1 260px; }
.prose .wp-block-button__link { display: inline-block; background: var(--red); color: #fff; font-family: var(--f-display); font-weight: 800; font-style: italic; text-transform: uppercase; letter-spacing: .08em; font-size: 18px; padding: 14px 30px; text-decoration: none; clip-path: var(--clip-notch); }
.prose .wp-block-button__link:hover { background: var(--ink); }
.post-meta { color: var(--muted); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 1.5rem; }
.featured-image { margin-bottom: 2rem; }
.post-navigation { display: flex; justify-content: space-between; gap: 1rem; margin-top: 3rem; padding-top: 1.5rem; border-top: 4px solid var(--ink); font-family: var(--f-display); font-weight: 800; font-style: italic; text-transform: uppercase; font-size: 20px; }
.post-navigation a:hover { color: var(--red); }

/* register */
.event-banner { display: grid; gap: 1rem; background: #fff; border-left: 8px solid var(--red); padding: 1.4rem 1.6rem; margin-bottom: 2rem; box-shadow: 0 10px 30px rgba(0,0,0,.06); }
.event-banner__name { font-size: clamp(30px, 4vw, 44px); }
.event-banner__meta { display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; font-size: 14px; font-weight: 600; color: #2b2b30; }
.event-banner__meta-item { display: inline-flex; align-items: center; gap: .4rem; }
.event-banner__meta-item svg { color: var(--red); flex-shrink: 0; }
.event-banner__meta-item--closes { color: var(--red); }
/* the registration plugin ships dark-UI styles, so its form sits on a black panel */
.plugin-block { background: var(--ink); color: #f0f0f0; border-top: 6px solid var(--red); padding: 2rem; box-shadow: 0 20px 50px rgba(0,0,0,.2); }
.plugin-block .tr-header { display: none; }
.plugin-block .tr-wrap { padding: 0; max-width: 100%; font-family: var(--f-body); }
.plugin-block .tr-submit { background: var(--red) !important; color: #fff !important; border-radius: 0 !important; font-family: var(--f-display) !important; font-style: italic; font-weight: 800 !important; font-size: 18px !important; letter-spacing: .08em !important; text-transform: uppercase !important; }
.plugin-block .tr-submit:hover { background: #fff !important; color: var(--ink) !important; }
.plugin-block .tr-btn-outline { border-color: var(--red) !important; color: var(--red-l) !important; border-radius: 0 !important; }
.plugin-block .tr-entry-opt.active { border-color: var(--red) !important; }
.plugin-block .tr-table tr:hover td { background: rgba(225,6,0,.08) !important; }

/* staff password */
.pw-card { max-width: 480px; margin: 5rem auto; background: var(--ink); color: #fff; border-top: 6px solid var(--red); padding: 2.5rem; }
.pw-card h2 { font-size: 40px; margin-bottom: .5rem; }
.pw-card p { color: var(--muted-d); margin-bottom: 1.5rem; font-size: 14px; }
.pw-card label { font-size: 11px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: var(--muted-d); display: block; }
.pw-card input[type=password] { width: 100%; padding: .8rem 1rem; margin: .5rem 0 1rem; background: var(--steel); border: 1px solid var(--steel2); color: #fff; font-family: var(--f-body); }
.pw-card input[type=submit] { padding: .8rem 2rem; background: var(--red); color: #fff; border: 0; font-family: var(--f-display); font-style: italic; font-weight: 800; font-size: 18px; letter-spacing: .08em; text-transform: uppercase; clip-path: var(--clip-notch); }

/* archive */
.archive-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.past-page__card { display: flex; flex-direction: column; background: var(--ink); color: #fff; clip-path: var(--clip-card); transition: transform .25s var(--ease); }
.past-page__card:hover { transform: translateY(-5px); }
.past-page__card-img { aspect-ratio: 1/1; overflow: hidden; background: var(--steel); }
.past-page__card-img img { width: 100%; height: 100%; object-fit: cover; opacity: .85; filter: grayscale(.4); transition: filter .3s, opacity .3s, transform .5s var(--ease); }
.past-page__card:hover .past-page__card-img img { filter: none; opacity: 1; transform: scale(1.04); }
.past-page__card-body { padding: 1.2rem 1.4rem 1.5rem; flex: 1; }
.past-page__card-tag { font-size: 11px; font-weight: 800; letter-spacing: .22em; text-transform: uppercase; color: var(--red-l); margin-bottom: .4rem; }
.past-page__card-name { font-family: var(--f-display); font-weight: 800; font-style: italic; text-transform: uppercase; font-size: 32px; line-height: 1; }
.past-page__card-meta { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-d); margin-top: .5rem; }
.past-page__card-desc { font-size: 14px; line-height: 1.7; color: #cfcfd6; margin-top: .8rem; }
.past-page__winners { margin-top: 1rem; padding-top: .9rem; border-top: 1px solid var(--line-d); }
.past-page__winners-label { font-size: 11px; font-weight: 800; letter-spacing: .24em; text-transform: uppercase; color: var(--red-l); margin-bottom: .4rem; }
.past-page__winner-row { display: flex; align-items: center; gap: .75rem; padding: .45rem 0; }
.past-page__winner-row + .past-page__winner-row { border-top: 1px solid var(--line-d); }
.past-page__winner-place { font-size: 20px; min-width: 1.75rem; text-align: center; }
.past-page__winner-label { font-size: 9px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: var(--muted-d); }
.past-page__winner-name { font-weight: 700; font-size: 15px; }
.past-page__challonge-link { display: inline-flex; align-items: center; gap: .4rem; margin-top: 1rem; font-family: var(--f-display); font-weight: 800; font-style: italic; text-transform: uppercase; letter-spacing: .08em; font-size: 16px; color: var(--red-l); }
.past-page__challonge-link:hover { color: #fff; }
.past-page__empty { text-align: center; padding: 3rem 0; color: var(--muted); }
.past-page__pagination { margin-top: 2.5rem; display: flex; align-items: center; justify-content: center; gap: .75rem; flex-wrap: wrap; }
.past-page__page-numbers { display: flex; gap: .35rem; align-items: center; }
.past-page__page-btn, .past-page__page-num { font-family: var(--f-display); font-weight: 800; font-style: italic; font-size: 18px; letter-spacing: .06em; text-transform: uppercase; background: #fff; border: 2px solid var(--ink); color: var(--ink); padding: .35rem 1.1rem; transition: background .2s, color .2s; }
.past-page__page-num { width: 44px; height: 44px; padding: 0; display: flex; align-items: center; justify-content: center; }
.past-page__page-btn:hover, .past-page__page-num:hover { background: var(--ink); color: #fff; }
.past-page__page-num.is-active { background: var(--red); border-color: var(--red); color: #fff; }
.past-page__page-ellipsis { color: var(--muted); }

/* 404 */
.e404 { background: var(--ink); color: #fff; min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 4rem 1.5rem; position: relative; overflow: hidden; isolation: isolate; }
.e404::before { content: ''; position: absolute; z-index: -1; top: -10%; bottom: -10%; left: 50%; width: 34%; margin-left: -17%; background: var(--red); transform: skewX(-18deg); opacity: .9; }
.e404__code { font-family: var(--f-display); font-weight: 900; font-style: italic; font-size: clamp(140px, 30vw, 360px); line-height: .8; }
.e404__label { margin: 1.5rem 0 .5rem; font-family: var(--f-display); font-weight: 800; font-style: italic; text-transform: uppercase; font-size: clamp(28px, 5vw, 48px); }
.e404__sub { color: #e8e8ee; margin-bottom: 2rem; }

/* ============================================================
   8. FOOTER
   ============================================================ */
.site-footer { background: var(--ink); color: #fff; border-top: 6px solid var(--red); position: relative; overflow: hidden; }
.site-footer__ghost { position: absolute; right: -2%; bottom: -12%; font-family: var(--f-display); font-weight: 900; font-style: italic; font-size: clamp(120px, 24vw, 340px); line-height: .8; color: transparent; -webkit-text-stroke: 2px rgba(255,255,255,.06); text-transform: uppercase; pointer-events: none; }
.site-footer__grid { position: relative; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; padding: 3.5rem 1.5rem 2.5rem; max-width: var(--wrap); margin: 0 auto; }
.site-footer__brand img { height: 84px; width: auto; margin-bottom: 1rem; }
.site-footer__brand p { color: var(--muted-d); max-width: 340px; font-size: 14px; }
.site-footer h4 { font-size: 22px; color: var(--red-l); margin-bottom: 1rem; }
.footer-nav { display: grid; gap: .5rem; }
.footer-nav a { font-family: var(--f-display); font-weight: 700; font-style: italic; font-size: 20px; text-transform: uppercase; letter-spacing: .06em; color: #ddd; transition: color .2s, transform .2s; display: inline-block; justify-self: start; }
.footer-nav a:hover { color: #fff; transform: translateX(6px); }
.footer-bottom { position: relative; border-top: 1px solid var(--line-d); padding: 1.1rem 1.5rem; max-width: var(--wrap); margin: 0 auto; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-d); }
.footer-bottom a:hover { color: #fff; }

/* ============================================================
   9. MOTION
   ============================================================ */
@keyframes hero-in { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes ripple-out { from { transform: scale(0); opacity: .5; } to { transform: scale(3.5); opacity: 0; } }
@keyframes slide-up-in { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
[data-anim] { opacity: 0; }
[data-anim].is-visible { animation: slide-up-in .7s var(--ease) both; }
.js-stagger-in > * { opacity: 0; animation: slide-up-in .6s var(--ease) forwards; }
.js-stagger-in > *:nth-child(1) { animation-delay: .05s; }
.js-stagger-in > *:nth-child(2) { animation-delay: .15s; }
.js-stagger-in > *:nth-child(3) { animation-delay: .25s; }
.js-stagger-in > *:nth-child(4) { animation-delay: .35s; }
.js-stagger-in > *:nth-child(n+5) { animation-delay: .45s; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  [data-anim], .js-stagger-in > * { opacity: 1; }
}

/* ============================================================
   10. RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
  .site-nav, .nav-cta-desktop { display: none; }
  .nav-toggle { display: flex; }
  .hero__inner { grid-template-columns: 1fr; min-height: 0; padding-top: 3rem; padding-bottom: 6rem; }
  .hero__logo { order: -1; justify-self: start; }
  .hero__logo img { width: 190px; }
  .hero__slash { right: -10%; width: 55%; opacity: .55; }
  .hero__slash--2, .hero__slash--3 { display: none; }
  .battle { grid-template-columns: 1fr; }
  .battle__poster { aspect-ratio: auto; max-height: 460px; }
  .battle__poster::after { display: none; }
  .battle__body { padding: 2rem 1.5rem; }
  .results, .archive-grid { grid-template-columns: 1fr 1fr; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .site-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  :root { --header-h: 60px; }
  .section { padding: 3.5rem 0; }
  .hero__actions .btn, .battle__actions .btn { flex: 1 1 100%; }
  .stats__grid { clip-path: none; }
  .stat { padding: 1rem .25rem 1.2rem; }
  .open-card { grid-template-columns: 1fr; gap: .8rem; }
  .open-card__img { width: 100%; height: 160px; }
  .open-card__actions { justify-content: flex-start; }
  .results, .archive-grid { grid-template-columns: 1fr; }
  .tr-lightbox__header { padding: 1.5rem 1.25rem 1rem; }
  .tr-lightbox__body { padding: 1.25rem 1.25rem 1.5rem; }
  .site-footer__grid { grid-template-columns: 1fr; }
  .page-hero::before { width: 40%; right: -8%; opacity: .7; }
  .page-hero::after { display: none; }
  .plugin-block { padding: 1.25rem; }
}
@media (max-width: 640px) { .stat__label { letter-spacing: .1em; font-size: 10px; } .stat + .stat::before { width: 2px; } }
