
@font-face {
  font-family: 'Oswald';
  src: url('../fonts/Oswald-VariableFont_wght.ttf') format('truetype-variations');
  font-weight: 200 700;
  font-display: swap;
}
@font-face {
  font-family: 'Surt';
  src: url('../fonts/Surt-MediumExtended.otf') format('opentype');
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: 'Surt';
  src: url('../fonts/Surt-UltraBoldExtended.otf') format('opentype');
  font-weight: 800;
  font-display: swap;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:        #060022;
  --navy-2:      #1a1638;
  --ink:         #060022;
  --ink-mute:    #5a5a72;
  --ink-faint:   #8b8c9c;
  --paper:       #fafafa;
  --paper-2:     #f5f5f8;
  --line:        #e5e5ec;
  --line-2:      #d6d6e0;
  --orange:      #ff4800;
  --orange-2:    #ff6a2c;
  --blue:        #0012ff;
  --blue-2:      #2a3aff;
  --white:       #ffffff;

  --grad:        linear-gradient(120deg, #ff4800 0%, #ff6a2c 30%, #0012ff 100%);
  --grad-soft:   linear-gradient(120deg, rgba(255,72,0,.12) 0%, rgba(255,106,44,.08) 30%, rgba(0,18,255,.10) 100%);

  --shear:       -7deg;

  --f-hl:        'Oswald', 'Noto Sans JP', system-ui, sans-serif;
  --f-sub:       'Surt', 'Oswald', 'Noto Sans JP', system-ui, sans-serif;
  --f-body:      'Noto Sans JP', 'Helvetica Neue', system-ui, sans-serif;
  --f-mono:      'JetBrains Mono', ui-monospace, monospace;
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  font-family: var(--f-body);
  background: var(--white);
  color: var(--ink);
  line-height: 1.6;
  font-weight: 400;
  overflow-x: hidden;
  letter-spacing: 0.01em;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; }
ul, ol { list-style: none; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 640px) { .wrap { padding: 0 16px; } }

.site-head {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 12px 0;
  background: rgba(255,255,255,.92);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-head .row {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--f-hl); font-weight: 600; letter-spacing: .04em;
  color: var(--ink);
}
.brand .logo-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  background: transparent;
  padding: 0;
}
.brand .logo-badge img { width: 100%; height: 100%; object-fit: contain; display: block; }
.small {
  font-family: var(--f-hl);
  font-size: 11px; font-weight: 500; letter-spacing: .18em;
  color: var(--ink-mute); text-transform: uppercase;
}
.brand .vnl {
  font-size: 21px; line-height: 1; color: var(--ink);
}
.nav { display: flex; gap: 22px; align-items: center; min-height: 44px; }
.nav a {
  font-family: var(--f-hl); font-weight: 500;
  text-transform: uppercase; letter-spacing: .12em; font-size: 14px;
  color: var(--ink); opacity: .8; transition: color .15s, opacity .15s;
  position: relative;
  padding: 4px 0;
  display: inline-flex; align-items: center;
}
.nav a:hover { opacity: 1; color: var(--orange); }
.nav a.is-current {
  color: var(--orange);
  opacity: 1;
  position: relative;
}
.nav a.is-current::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 2px;
  background: var(--grad);
  border-radius: 2px;
}
@media (max-width: 760px) { .nav { display: none; } }

.flag {
  display: inline-block;
  width: 32px; height: 22px;
  background-size: cover; background-position: center;
  transform: skewX(var(--shear));
  flex: 0 0 auto;
  box-shadow: 0 1px 4px rgba(6,0,34,.18);
}
.flag-lg { width: 56px; height: 38px; }
.flag-xl { width: 80px; height: 56px; }
.flag.f-jp { background-image: url(../flags/jp.svg); }
.flag.f-us { background-image: url(../flags/us.svg); }
.flag.f-br { background-image: url(../flags/br.svg); }
.flag.f-pl { background-image: url(../flags/pl.svg); }
.flag.f-tr { background-image: url(../flags/tr.svg); }
.flag.f-th { background-image: url(../flags/th.svg); }
.flag.f-it { background-image: url(../flags/it.svg); }
.flag.f-ar { background-image: url(../flags/ar.svg); }
.flag.f-ca { background-image: url(../flags/ca.svg); }
.flag.f-be { background-image: url(../flags/be.svg); }
.flag.f-cu { background-image: url(../flags/cu.svg); }
.flag.f-cn { background-image: url(../flags/cn.svg); }
.flag.f-de { background-image: url(../flags/de.svg); }
.flag.f-fr { background-image: url(../flags/fr.svg); }

.gender-block-h {
  text-align: center;
  font-family: var(--f-hl); font-weight: 700;
  font-size: 22px; letter-spacing: .06em;
  text-transform: uppercase;
  margin: 8px 0 18px;
}
.gender-block-h.gen-w { color: var(--orange); }
.gender-block-h.gen-m { color: var(--blue); }
.gender-block-h .ja {
  font-family: var(--f-body); font-weight: 700;
  font-size: 13px;
  color: var(--ink-mute);
  letter-spacing: .04em;
  margin-left: 10px;
  vertical-align: 3px;
}
.gender-block + .gender-block { margin-top: 56px; }

.teams {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
.team-card {
  position: relative;
  padding: 22px 20px;
  background: var(--white);
  border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 14px;
  transition: border-color .18s, transform .15s, box-shadow .18s;
  overflow: hidden;
  text-decoration: none; color: inherit;
  cursor: pointer;
}
.team-card::before {
  content: '';
  position: absolute; left: 0; right: 0; top: 0;
  height: 2px;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
.team-card:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(6,0,34,.08);
}
.team-card:hover::before { transform: scaleX(1); }
.team-card .top {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 12px;
  padding-right: 56px;
}
.team-card .rank {
  font-family: var(--f-mono); font-weight: 500;
  font-size: 13px;
  color: var(--orange);
  letter-spacing: .12em;
  white-space: nowrap;
}
.team-card .country {
  font-family: var(--f-hl); font-weight: 600;
  font-size: 24px;
  text-transform: uppercase;
  letter-spacing: .02em;
  line-height: 1;
  color: var(--ink);
}
.team-card .ja {
  font-family: var(--f-body); font-weight: 500;
  font-size: 12px;
  color: var(--ink-mute);
  letter-spacing: .04em;
  margin-top: 4px;
}
.team-card.is-host {
  border-color: var(--orange);
  background: linear-gradient(180deg, #fff7f3 0%, #ffffff 60%);
}
.team-card.is-host::before { transform: scaleX(1); }
.team-card.is-host::after {
  content: 'HOST'; position: absolute; top: 0; right: 0;
  background: var(--orange); color: var(--white);
  font-family: var(--f-hl); font-weight: 700;
  font-size: 10px; padding: 4px 10px; letter-spacing: .15em;
}

.team-card.is-current {
  border-color: transparent;
  background: var(--grad);
  pointer-events: none;
  color: var(--white);
}
.team-card.is-current::before { transform: scaleX(1); }
.team-card.is-current .country { color: var(--white); }
.team-card.is-current .ja { color: rgba(255,255,255,.85); }
.team-card.is-current .rank { color: var(--white); opacity: .95; }

.team-card.is-current.is-host {
  background: var(--grad);
  border-color: transparent;
}

.team-card.is-current::after {
  content: 'CURRENT';
  position: absolute; top: 0; right: 0;
  background: rgba(255,255,255,.95);
  color: var(--ink);
  font-family: var(--f-hl); font-weight: 700;
  font-size: 10px; padding: 4px 10px; letter-spacing: .15em;
}

.team-card.is-current.is-host::after {
  content: 'CURRENT';
  background: rgba(255,255,255,.95);
  color: var(--orange);
}

.foot {
  padding: 24px 0 36px;
  background: #2632d4;
  color: #ffffff;
  position: relative;
}
.foot::before {
  content: '';
  position: absolute; left: 0; right: 0; top: 0;
  height: 2px;
  background: var(--grad);
}
.foot-stack {
  display: flex; flex-direction: column;
  align-items: center;
  gap: 28px;
  text-align: center;
}
.foot-stack .logo-badge {

  display: inline-flex; align-items: center; justify-content: center;
  width: 162px; height: auto;
}
.foot-stack .logo-badge img { width: 100%; height: auto; display: block; }
@media (max-width: 760px) {
  .foot-stack .logo-badge { width: 40%; max-width: 200px; }
}
.foot-sponsor img {
  max-width: min(100%, 480px);
  height: auto; display: inline-block;
}
.foot-copy {
  font-family: var(--f-mono); font-weight: 500;
  font-size: 11px; letter-spacing: .08em;
  color: rgba(255,255,255,.7);
  margin-top: 8px;
}
@media (max-width: 760px) {
  .foot { padding: 44px 0 28px; }
  .foot-stack { gap: 22px; }
}
