:root {
  color-scheme: light only;
  --sf-yellow: #f5e000;
  --sf-magenta: #ff2d95;
  --sf-cyan: #00e8ff;
  --sf-ink: #111111;
  --paper: #ffffff;
  --muted: #5a5a5a;
  --line: #111111;
  --danger: #ff2d55;
  --ok: #12b886;
  --font-display: "Russo One", "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", "Arial Black", sans-serif;
  --font-body: "Barlow", "Segoe UI", sans-serif;
  --shadow: 6px 6px 0 #111;
}
* { box-sizing: border-box; }
html, body {
  margin: 0;
  min-height: 100%;
  background: #fff;
  color: var(--sf-ink);
  font-family: var(--font-body);
  color-scheme: light only;
}
a { color: #c4006a; text-decoration: none; }
a:hover { color: var(--sf-magenta); text-decoration: underline; }
.arena-frame {
  min-height: 100vh;
  background: #fff;
  display: flex;
  flex-direction: column;
}
.arena-header {
  position: relative;
  min-height: 300px;
  background: #f5e000 url("../images/header-sett.jpg") right 20% / cover no-repeat;
  color: var(--sf-ink);
}
.arena-header::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 80px;
  background: linear-gradient(180deg, transparent, #fff);
  pointer-events: none;
}
.arena-nav {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 1.3rem;
  padding: .85rem 1.4rem;
  background: rgba(255,255,255,.9);
  border-bottom: 3px solid #111;
}
.arena-brand {
  display: flex;
  align-items: center;
  gap: .65rem;
  color: #111;
  font-family: var(--font-display);
  letter-spacing: .04em;
  text-transform: uppercase;
  text-decoration: none;
  font-size: 1.05rem;
}
.arena-brand:hover { color: #111; text-decoration: none; }
.arena-brand em { color: var(--sf-magenta); font-style: normal; }
.arena-brand-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: transparent;
  border: 0;
}
.arena-links { display: flex; gap: 1.1rem; font-weight: 800; font-size: .92rem; text-transform: uppercase; }
.arena-links a { color: #111; text-decoration: none; }
.arena-links a:hover { color: var(--sf-magenta); text-decoration: none; }
.arena-user { margin-left: auto; display: flex; align-items: center; gap: .8rem; color: #333; font-weight: 600; }
.lang-switch {
  display: inline-flex;
  border: 2px solid #111;
  border-radius: 999px;
  overflow: hidden;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .04em;
}
.lang-switch a {
  padding: .18rem .55rem;
  color: #111;
  text-decoration: none;
  background: #fff;
}
.lang-switch a:hover { color: #111; text-decoration: none; background: var(--sf-yellow); }
.lang-switch a.is-on { background: #111; color: #fff; }
.lang-switch a.is-on:hover { background: #111; color: #fff; }
.arena-cta, .arena-btn, button.arena-btn {
  display: inline-flex; align-items: center; justify-content: center;
  border: 3px solid #111;
  cursor: pointer;
  background: var(--sf-yellow);
  color: #111 !important;
  font-family: var(--font-display);
  text-transform: uppercase;
  padding: .42rem 1.1rem;
  border-radius: 999px;
  text-decoration: none !important;
  box-shadow: 3px 3px 0 #111;
}
.arena-cta:hover, .arena-btn:hover {
  background: var(--sf-magenta);
  color: #fff !important;
}
.arena-btn-gold { background: var(--sf-yellow); }
.arena-btn-ghost {
  background: #fff;
  box-shadow: 3px 3px 0 #111;
}
.arena-btn-ghost:hover { background: var(--sf-cyan); color: #111 !important; }
.arena-btn-danger { background: #ff4d6d; color: #fff !important; }
.arena-text-btn { background: none; border: 0; color: #333; cursor: pointer; font-weight: 700; }
.arena-text-btn:hover { color: var(--sf-magenta); }
.arena-main { max-width: 1400px; margin: 0 auto; padding: 2rem 2rem 4rem; width: 100%; flex: 1; background: #fff; }
.arena-legal {
  position: relative;
  color: #fff;
  min-height: 460px;
  padding: 2.4rem 1.5rem 2.8rem;
  font-size: .78rem;
  line-height: 1.55;
  background: #111;
  margin-top: auto;
  border-top: 3px solid #111;
  overflow: hidden;
}
.arena-legal-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 10% 0%;
  pointer-events: none;
}
.arena-legal::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(17,17,17,.55) 0%, rgba(17,17,17,.78) 55%, rgba(17,17,17,.9) 100%);
}
.arena-legal-inner {
  position: relative;
  z-index: 1;
  max-width: 52rem;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.arena-legal p { margin: 0 auto .7rem; max-width: 44rem; }
.arena-legal a { color: var(--sf-cyan); }
.arena-legal-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .4rem 1rem;
  margin-bottom: 1rem;
  font-weight: 800;
  text-transform: uppercase;
}
.arena-legal-cookies {
  display: inline-block;
  margin: .2rem auto 1rem;
  padding: .45rem .9rem;
  border: 2px solid var(--sf-cyan);
  border-radius: 999px;
  color: #fff;
  font-weight: 700;
}
.arena-notice {
  max-width: 1400px;
  width: 100%;
  margin: -.6rem auto 0;
  position: relative;
  z-index: 2;
  background: #fff;
  border: 3px solid #111;
  padding: .85rem 1.2rem;
  font-size: .9rem;
  color: #333;
  box-shadow: 5px 5px 0 var(--sf-yellow);
}
.arena-toast {
  padding: .75rem 1rem; margin-bottom: 1rem;
  border: 3px solid #111;
  background: #fff;
  box-shadow: 4px 4px 0 #111;
}
.arena-toast.is-ok { background: #e6fff4; }
.arena-toast.is-bad { background: #ffe3ec; }
.arena-toast.is-dismiss {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
}
.arena-toast-close {
  flex: 0 0 auto;
  margin-left: auto;
  border: 0;
  background: transparent;
  color: #111;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 .2rem;
}
.hero-grid { display: grid; gap: 1.1rem; }
@media (min-width: 760px) {
  .hero-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1200px) {
  .hero-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1500px) {
  .hero-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.page-lead { max-width: none; color: var(--muted); font-size: 1.12rem; line-height: 1.55; }
h1 {
  font-family: var(--font-display);
  text-transform: uppercase;
  color: #111;
  margin-bottom: 1rem;
}
.home-intro { margin: 0 0 2.2rem; }
.home-intro h1 { font-size: clamp(2.2rem, 5vw, 3.35rem); margin: 0 0 .7rem; }
.home-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.25rem; }
.home-register { margin: 0 0 2.2rem; }
.home-register p:not(.arena-kicker) { max-width: 46rem; color: var(--muted); }
.home-register .home-actions { margin-top: 1rem; }
.home-steps {
  display: grid;
  gap: 1.1rem;
  margin: 0 0 2.4rem;
}
@media (min-width: 860px) {
  .home-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.home-step { min-height: 11.5rem; }
.home-step p:last-child { margin-bottom: 0; color: var(--muted); }
.home-upcoming { margin-bottom: 2rem; }
.home-upcoming .empty-panel { grid-column: 1 / -1; padding: 1.8rem 1.5rem; }
.empty-panel h2 { margin-bottom: .5rem; }
.empty-panel p { max-width: 36rem; }
.tourney-card, .arena-panel {
  background: #fff;
  border: 3px solid #111;
  border-radius: 18px;
  padding: 1.15rem 1.2rem;
  box-shadow: 6px 6px 0 var(--sf-yellow);
  color: inherit;
  text-decoration: none;
}
a.tourney-card:hover {
  box-shadow: 6px 6px 0 var(--sf-magenta);
  text-decoration: none;
  color: inherit;
}
.tourney-card h2 a { color: inherit; text-decoration: none; }
.tourney-card h2 a:hover { color: var(--sf-magenta); }
.tourney-card h2, .arena-panel h2, .arena-kicker {
  font-family: var(--font-display);
  text-transform: uppercase;
}
.arena-kicker {
  color: var(--sf-magenta);
  letter-spacing: .12em;
  font-size: .72rem;
  margin: 0 0 .4rem;
}
.chip {
  display: inline-flex; align-items: center;
  padding: .12rem .55rem; border-radius: 999px;
  font-size: .75rem; font-weight: 800;
  border: 2px solid #111; color: #111; background: var(--sf-yellow);
}
.chip-live { background: var(--sf-cyan); }
.sponsor-strip {
  display: flex; flex-wrap: wrap; gap: .75rem 1.2rem;
  align-items: center; justify-content: center;
  padding: .7rem 1rem; margin-bottom: 1.2rem;
  border: 3px solid #111; border-radius: 18px;
  background: #fff;
  box-shadow: 5px 5px 0 var(--sf-cyan);
}
.sponsor-strip .is-title { font-family: var(--font-display); color: #111; }
.sponsor-logo {
  height: 28px;
  max-width: 120px;
  object-fit: contain;
  display: block;
}
.lineup { display: grid; gap: .35rem; }
.lineup-row { display: flex; gap: .5rem; align-items: center; font-size: .9rem; color: var(--muted); }
.lineup-row img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; border: 2px solid #111; }
.bracket-wrap {
  overflow-x: auto;
  padding: .4rem .2rem 1.2rem;
  margin: 0 -0.4rem 1.4rem;
}
.bracket {
  display: flex;
  gap: 2.2rem;
  min-width: min-content;
  align-items: stretch;
  padding: .3rem .6rem 1rem;
}
.bracket-round {
  min-width: 240px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  gap: 1.1rem;
  position: relative;
}
.bracket-round h3 {
  font-size: .78rem;
  color: var(--sf-magenta);
  letter-spacing: .1em;
  text-transform: uppercase;
  font-family: var(--font-display);
  margin: 0 0 .2rem;
  text-align: center;
}
.br-slot { position: relative; }
.br-slot::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -2.2rem;
  width: 2.2rem;
  height: 2px;
  background: #111;
}
.bracket-round:last-child .br-slot::after { display: none; }
.match-card {
  display: block;
  padding: .15rem;
  border: 3px solid #111;
  border-radius: 14px;
  background: #fff;
  color: inherit;
  text-decoration: none;
  box-shadow: 4px 4px 0 var(--sf-yellow);
  min-width: 230px;
}
.match-card:hover { box-shadow: 4px 4px 0 var(--sf-magenta); text-decoration: none; color: inherit; }
.match-card.is-now { background: #fffbe6; box-shadow: 4px 4px 0 var(--sf-cyan); }
.match-card.is-wo { opacity: .72; }
.match-card.is-done { background: #f7fff9; }
.br-team {
  display: flex;
  align-items: center;
  gap: .55rem;
  padding: .45rem .55rem;
  border-radius: 10px;
  font-family: var(--font-display);
  font-size: .92rem;
}
.br-team + .br-team { border-top: 2px solid #111; }
.br-team.is-win { background: #111; color: #fff; }
.br-team.is-win .br-score { color: var(--sf-yellow); }
.br-logo, .team-logo {
  width: 28px; height: 28px;
  border-radius: 6px;
  object-fit: cover;
  border: 2px solid #111;
  background: #fff;
  flex-shrink: 0;
}
.br-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.br-score { font-size: .85rem; color: var(--muted); min-width: 1.1rem; text-align: right; }
.how-grid {
  display: grid;
  gap: 1.1rem;
  margin-bottom: 1.5rem;
  align-items: start;
}
@media (min-width: 860px) {
  .how-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1280px) {
  .how-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.how-grid .arena-panel h2 { margin-top: 0; }
.how-grid .arena-panel p:last-child,
.how-grid .arena-panel ul:last-child { margin-bottom: 0; }
.cover-hero {
  width: 100%;
  max-height: 280px;
  object-fit: cover;
  border: 3px solid #111;
  border-radius: 18px;
  box-shadow: 6px 6px 0 var(--sf-yellow);
  margin-bottom: 1.2rem;
}
.tourney-masthead {
  position: relative;
  min-height: clamp(280px, 38vw, 440px);
  border: 3px solid #111;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 8px 8px 0 #111;
  margin: 0 0 1.8rem;
  background: #111 url("../images/header-sett.jpg") center / cover no-repeat;
}
.tourney-masthead-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.tourney-masthead::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(17,17,17,.15) 0%, rgba(17,17,17,.45) 45%, rgba(17,17,17,.88) 100%);
  pointer-events: none;
}
.tourney-masthead-copy {
  position: relative;
  z-index: 1;
  min-height: clamp(280px, 38vw, 440px);
  padding: 2.2rem 1.8rem 1.6rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #fff;
}
.tourney-masthead-copy .arena-kicker { color: var(--sf-cyan); }
.tourney-masthead-copy h1 {
  color: #fff;
  text-shadow: 3px 3px 0 #111;
  margin-bottom: .5rem;
  font-size: clamp(1.8rem, 4vw, 3rem);
}
.tourney-masthead-copy p { color: rgba(255,255,255,.9); }
.tourney-masthead-copy .chip { box-shadow: 2px 2px 0 #111; }
.share-box {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
  align-items: center;
  margin-top: 2rem;
}
.share-box input {
  flex: 1;
  min-width: 16rem;
}
.legal-doc { max-width: none; }
.legal-doc h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); }
.tourney-card { overflow: hidden; padding: 0; }
.tourney-card-body { padding: 1.15rem 1.2rem; }
.tourney-cover {
  display: block;
  width: 100%;
  height: 132px;
  object-fit: cover;
  border-bottom: 3px solid #111;
  background: #111;
}
.legal-meta { color: var(--muted); font-size: .9rem; margin-bottom: 1.4rem; }
.team-logo-lg { width: 72px; height: 72px; border-radius: 12px; object-fit: cover; border: 3px solid #111; }
.form-control, .form-select {
  background: #fff; border: 2px solid #111; color: #111; border-radius: 10px;
}
.form-control:focus, .form-select:focus {
  border-color: var(--sf-magenta);
  box-shadow: 3px 3px 0 var(--sf-yellow);
}
.form-label { color: #111; font-size: .82rem; font-weight: 800; text-transform: uppercase; }
.vs-stage {
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 1rem; align-items: center;
}
.vs-team {
  text-align: center; padding: 1.2rem;
  border: 3px solid #111; border-radius: 18px; background: #fff;
  box-shadow: 5px 5px 0 var(--sf-cyan);
}
.vs-mid { font-family: var(--font-display); color: var(--sf-magenta); font-size: 1.35rem; }
.audit-log { list-style: none; padding: 0; margin: 0; }
.audit-log li { padding: .45rem 0; border-bottom: 2px solid #eee; font-size: .85rem; color: var(--muted); }
.legal-doc h2 { font-family: var(--font-display); font-size: 1.15rem; margin-top: 1.6rem; text-transform: uppercase; }
.legal-doc p, .legal-doc li { color: #333; }
.help-note { font-size: .82rem; color: var(--muted); margin: .2rem 0 .85rem; }
.bb-rules { color: #222; line-height: 1.55; }
.bb-rules h2, .bb-rules h3 {
  font-family: var(--font-display); text-transform: uppercase; margin: 1.1rem 0 .45rem;
}
.bb-rules h2 { font-size: 1.05rem; }
.bb-rules h3 { font-size: .95rem; }
.bb-rules ul, .bb-rules ol { margin: .4rem 0 .8rem; padding-left: 1.25rem; }
.bb-rules li { margin: .2rem 0; }
.bb-rules a { color: inherit; text-decoration: underline; text-underline-offset: .15em; font-weight: 600; }
.bb-rules hr { border: 0; border-top: 2px solid #111; margin: 1rem 0; opacity: .35; }
.bb-rules blockquote {
  margin: .7rem 0; padding: .55rem .85rem; border-left: 4px solid #111; background: #f6f6f6;
}
.bb-rules .bb-center { text-align: center; }
.bb-rules .bb-code {
  display: block; margin: .6rem 0; padding: .7rem .85rem; background: #111; color: #f5e000;
  font-size: .85rem; overflow-x: auto; white-space: pre-wrap;
}
.bb-rules .bb-spoiler { margin: .6rem 0; }
.bb-rules .bb-spoiler summary { cursor: pointer; font-weight: 700; }
.bb-rules img { max-width: 100%; height: auto; border: 3px solid #111; }
.bb-editor { margin-bottom: .85rem; }
.bb-bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px;
  padding: 6px; background: #f3f3f3;
  border: 3px solid #111; border-bottom: 0; border-radius: 12px 12px 0 0;
}
.bb-bar button, .bb-color {
  min-width: 2.1rem; height: 2.1rem; padding: 0 .45rem;
  border: 2px solid #111; border-radius: 8px; background: #fff;
  font: 800 13px/1 var(--font-display, inherit); cursor: pointer;
}
.bb-bar button:hover { background: #f5e000; }
.bb-sep { width: 1px; height: 1.4rem; background: #111; opacity: .25; margin: 0 2px; }
.bb-color { display: inline-flex; align-items: center; justify-content: center; padding: 0; }
.bb-color input { width: 1.4rem; height: 1.4rem; border: 0; padding: 0; background: none; cursor: pointer; }
.bb-area {
  border-radius: 0 0 12px 12px !important;
  min-height: 16rem;
  font-family: Consolas, "Courier New", monospace;
  font-size: .92rem;
}
.check-accept { display: flex; gap: .6rem; align-items: flex-start; margin: 1rem 0; font-size: .9rem; }
@media (max-width: 720px) {
  .arena-links { display: none; }
  .vs-stage { grid-template-columns: 1fr; }
  .arena-header { min-height: 220px; }
  .arena-legal { min-height: 380px; }
  .arena-legal-art { object-position: 18% 0%; }
}
