:root{
  --bg:#07111f;
  --bg-soft:#0c1627;
  --surface:#101c31;
  --surface-2:#152542;
  --surface-3:#1c3157;
  --border:rgba(149,177,223,.18);
  --border-strong:rgba(149,177,223,.28);
  --text:#ecf3ff;
  --muted:#98a8c4;
  --muted-2:#b8c7e3;
  --primary:#22c7a8;
  --primary-2:#1fb28f;
  --primary-dark:#0f6f69;
  --accent:#57b8ff;
  --warning:#e59a31;
  --danger:#df5b73;
  --success:#31c47a;
  --shadow:0 20px 50px rgba(2,10,25,.35);
  --radius-lg:24px;
  --radius-md:16px;
  --radius-sm:12px;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color:var(--text);
  background:
    radial-gradient(circle at top left, rgba(39,98,170,.23), transparent 28%),
    radial-gradient(circle at top right, rgba(27,180,153,.18), transparent 25%),
    linear-gradient(180deg, #091223 0%, #06101d 100%);
  font-size:15px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  min-height:100vh;
  color:var(--text);
  background:transparent;
  position:relative;
}
body::before,
body::after{
  content:"";
  position:fixed;
  inset:auto;
  z-index:-1;
  pointer-events:none;
  filter:blur(70px);
}
body::before{
  width:280px;height:280px;left:-80px;top:80px;
  background:rgba(87,184,255,.16);
}
body::after{
  width:320px;height:320px;right:-90px;bottom:60px;
  background:rgba(34,199,168,.11);
}
a{color:var(--accent);text-decoration:none;transition:.2s ease}
a:hover{color:#8fd3ff}
h1,h2,h3{letter-spacing:-.02em;color:#f7fbff}
h1{font-size:clamp(1.9rem,4vw,2.8rem);margin:.2em 0 .55em;line-height:1.08}
h2{margin:0 0 1rem;font-size:1.35rem;line-height:1.2}
h3{margin:.35rem 0 .6rem;font-size:1.02rem}
p,small,li{color:var(--muted);line-height:1.65}
small{display:block}
.top{
  position:sticky;top:0;z-index:30;
  background:rgba(6,14,26,.82);
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
  border-bottom:1px solid rgba(255,255,255,.06);
  display:flex;justify-content:space-between;align-items:center;
  padding:1rem max(4vw,18px);
  gap:1rem;
  box-shadow:0 12px 40px rgba(0,0,0,.18);
}
.brand{
  display:flex;align-items:center;gap:.6rem;
  font-size:1.3rem;font-weight:900;color:#fff;white-space:nowrap;
  letter-spacing:-.03em;
}
.brand b{
  color:transparent;
  background:linear-gradient(135deg, #27e4bd, #74d3ff);
  -webkit-background-clip:text;background-clip:text;
}
.top nav{display:flex;align-items:center;gap:.55rem;flex-wrap:wrap}
.top nav a,
.top nav span,
.linkbutton{
  padding:.7rem .9rem;
  border-radius:999px;
  font-size:.94rem;
  line-height:1;
}
.top nav a{
  color:#dfe9f8;
}
.top nav a:hover,
.linkbutton:hover{
  background:rgba(255,255,255,.06);
  color:#fff;
}
.top nav span{
  background:rgba(255,255,255,.05);
  color:var(--muted-2);
  border:1px solid rgba(255,255,255,.06);
}
.top nav form{margin:0}
.linkbutton{
  background:transparent;
  color:#cfe5ff;
  border:0;
  cursor:pointer;
}
.container{
  max-width:1260px;
  margin:auto;
  padding:2.1rem 18px 3rem;
  min-height:78vh;
}
.card,
.hero,
.tournament-card,
.tournament,
details{
  background:linear-gradient(180deg, rgba(22,37,66,.92), rgba(14,24,42,.95));
  border:1px solid var(--border);
  box-shadow:var(--shadow);
}
.card{
  padding:1.35rem 1.35rem;
  border-radius:var(--radius-lg);
  margin-bottom:1.2rem;
  position:relative;
  overflow:hidden;
}
.card::before,
.hero::before{
  content:"";
  position:absolute;
  inset:0 auto auto 0;
  width:100%;height:1px;
  background:linear-gradient(90deg, rgba(255,255,255,.18), transparent 55%);
}
.narrow{max-width:560px;margin:3.5rem auto}
.heading{
  display:flex;align-items:flex-start;justify-content:space-between;
  gap:1rem;margin-bottom:1rem;flex-wrap:wrap
}
.heading small{
  text-transform:uppercase;
  letter-spacing:.08em;
  color:#8cb7ff;
  font-weight:700;
}
.grid2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem 1.1rem}
.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:1rem;margin-bottom:1.1rem}
.stats .card{
  margin:0;
  padding:1.1rem 1.15rem;
  border-radius:20px;
  background:linear-gradient(180deg, rgba(24,41,73,.96), rgba(18,29,50,.98));
}
.stats strong{
  font-size:2rem;
  line-height:1;
  display:block;
  margin-bottom:.35rem;
  color:#fff;
}
.stats span{color:#a9bfe2}
form{margin:.65rem 0 0}
label{
  display:block;
  margin:.55rem 0;
  color:#d8e6fa;
  font-weight:700;
  font-size:.92rem;
  letter-spacing:.01em;
}
input,select,textarea{
  width:100%;
  padding:.88rem 1rem;
  border-radius:14px;
  border:1px solid rgba(135,162,206,.2);
  color:#f7fbff;
  background:linear-gradient(180deg, #0b1526, #0e1930);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.04);
  font:inherit;
  margin-top:.4rem;
  outline:none;
  transition:border-color .2s ease, box-shadow .2s ease, transform .15s ease;
}
input::placeholder,textarea::placeholder{color:#7082a4}
input:focus,select:focus,textarea:focus{
  border-color:rgba(87,184,255,.55);
  box-shadow:0 0 0 4px rgba(87,184,255,.12);
}
textarea{min-height:120px;resize:vertical}
button,.button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:.45rem;
  background:linear-gradient(135deg, var(--primary), var(--primary-2));
  border:1px solid rgba(255,255,255,.06);
  border-radius:14px;
  color:#fff;
  font-weight:800;
  padding:.85rem 1.15rem;
  cursor:pointer;
  font:inherit;
  margin-top:.7rem;
  box-shadow:0 14px 30px rgba(31,178,143,.18);
  transition:transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
button:hover,.button:hover{transform:translateY(-1px);filter:brightness(1.02)}
button:active,.button:active{transform:translateY(0)}
.button.light{
  background:linear-gradient(180deg, rgba(55,74,110,.95), rgba(37,51,76,.95));
  box-shadow:0 12px 24px rgba(0,0,0,.18);
}
.warning{
  background:linear-gradient(135deg, #e8a53d, #c97a14);
  box-shadow:0 14px 28px rgba(201,122,20,.18);
}
.alert{
  padding:1rem 1.1rem;
  border-radius:16px;
  background:rgba(27,112,92,.2);
  color:#dafff3;
  border:1px solid rgba(75,206,165,.28);
  margin-bottom:1rem;
}
.alert.danger{
  background:rgba(153,49,72,.18);
  border-color:rgba(223,91,115,.26);
  color:#ffe1e6;
}
.tablewrap{
  overflow:auto;
  border:1px solid rgba(148,177,223,.14);
  border-radius:18px;
  background:rgba(5,12,22,.16);
}
table{border-collapse:separate;border-spacing:0;width:100%;font-size:.94rem;min-width:720px}
th,td{
  text-align:left;
  padding:.92rem .8rem;
  border-bottom:1px solid rgba(148,177,223,.13);
  white-space:nowrap;
}
th{
  position:sticky;top:0;
  background:rgba(15,28,49,.96);
  color:#a8c2e9;
  font-size:.83rem;
  text-transform:uppercase;
  letter-spacing:.06em;
}
tr:hover td{background:rgba(255,255,255,.02)}
tbody tr:last-child td{border-bottom:none}
.pill{
  display:inline-flex;align-items:center;justify-content:center;
  border-radius:999px;
  padding:.36rem .75rem;
  background:rgba(63,83,115,.7);
  border:1px solid rgba(255,255,255,.06);
  color:#e9f2ff;
  font-size:.78rem;
  font-weight:800;
  text-transform:capitalize;
}
.pill.validated{background:rgba(26,112,80,.22);border-color:rgba(49,196,122,.24);color:#b6ffd8}
.pill.completed{background:rgba(148,96,23,.23);border-color:rgba(229,154,49,.25);color:#ffe0aa}
.pill.draft{background:rgba(84,104,141,.26)}
.tournament{
  display:flex;justify-content:space-between;align-items:center;
  padding:1rem 1.1rem;
  border:1px solid transparent;
  border-radius:18px;
  gap:1rem;
  margin-bottom:.85rem;
}
.tournament:hover{transform:translateY(-1px);border-color:rgba(87,184,255,.2)}
.tournament span:first-child{display:flex;flex-direction:column;gap:.3rem;color:#fff}
.tournament small{margin:0;color:#8fa5c5}
.cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:1rem}
.tournament-card{
  color:inherit;
  display:flex;
  flex-direction:column;
  gap:.6rem;
  padding:1.3rem 1.25rem;
  border-radius:22px;
  transition:transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.tournament-card:hover{
  transform:translateY(-3px);
  border-color:rgba(87,184,255,.22);
  box-shadow:0 26px 48px rgba(2,10,25,.45);
}
.tournament-card h3{margin:0;font-size:1.14rem}
.tournament-card p{margin:0}
.hero{
  position:relative;
  overflow:hidden;
  background:
    radial-gradient(circle at right top, rgba(96,183,255,.18), transparent 30%),
    radial-gradient(circle at left bottom, rgba(34,199,168,.18), transparent 35%),
    linear-gradient(135deg, rgba(18,42,79,.96), rgba(11,31,37,.98));
  border-radius:32px;
  padding:4rem 3rem;
  margin-bottom:2rem;
}
.hero small{
  text-transform:uppercase;
  letter-spacing:.12em;
  color:#88c8ff;
  font-weight:800;
}
.hero h1{max-width:720px;font-size:clamp(2.3rem,5vw,3.9rem);margin-bottom:.7rem}
.hero p{max-width:620px;font-size:1.03rem;color:#bfd1ee}
.success-text{color:#8cf1bf;font-size:1.02rem}
details{
  margin-top:1.3rem;
  border-radius:20px;
  padding:1rem 1.1rem;
}
summary{
  cursor:pointer;
  list-style:none;
  font-weight:800;
  color:#eaf3ff;
}
summary::-webkit-details-marker{display:none}
ul{padding-left:1.1rem}
li+li{margin-top:.35rem}
footer{
  text-align:center;
  padding:2rem;
  color:#88a0c2;
  border-top:1px solid rgba(255,255,255,.05);
  background:rgba(5,12,21,.35);
}
::-webkit-scrollbar{width:11px;height:11px}
::-webkit-scrollbar-thumb{background:rgba(123,151,198,.28);border-radius:999px}
::-webkit-scrollbar-track{background:rgba(255,255,255,.03)}
@media (max-width:960px){
  .stats{grid-template-columns:1fr}
  .hero{padding:2.6rem 2rem}
}
@media (max-width:720px){
  .grid2{grid-template-columns:1fr}
  .top{flex-direction:column;align-items:flex-start}
  .top nav{width:100%}
  .top nav a,.top nav span,.linkbutton{padding:.72rem .85rem}
  .container{padding-top:1.4rem}
  .card{padding:1.1rem}
  .hero{padding:2rem 1.35rem;border-radius:24px}
  .hero h1{font-size:clamp(2rem,8vw,2.8rem)}
  h1{font-size:clamp(1.7rem,6vw,2.2rem)}
}
