@font-face {
  font-family: 'QuadratBold';
  src: url('/fonts/QuadratGroteskNewW03-Bold.woff2') format('woff2'),
       url('/fonts/QuadratGroteskNewW03-Bold.woff') format('woff');
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}

:root {
  --font-sans: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  --font-display: "Space Grotesk", "Inter", sans-serif;
  --font-body: "Inter", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;
  --font-custom: "QuadratBold", "Inter", sans-serif;

  --red: #dc2626;
  --red-dark: #991b1b;
  --red-light: #ef4444;
  --bg: #0a0a0a;
  --border: #333;
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

*, *::before, *::after { box-sizing: border-box; }

html { line-height: 1.5; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 4.5rem; }

body, h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3, h4 { font-size: inherit; font-weight: inherit; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
svg { display: block; flex-shrink: 0; }
button, input { font: inherit; color: inherit; margin: 0; }
button { background: none; border: 0; padding: 0; }
table { border-collapse: collapse; }
[hidden] { display: none !important; }

body {
  background-color: var(--bg);
  color: #fff;
  font-family: var(--font-body);
  -webkit-tap-highlight-color: transparent;
}

a, button { cursor: pointer; touch-action: manipulation; }

::selection { background: var(--red); color: #fff; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #333; border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--red); }

.accent { color: var(--red); }
.clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.icon--red { color: var(--red-dark); }
.icon--gold { color: #eab308; }

.site {
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--bg);
  color: #fff;
  font-family: var(--font-sans);
  display: flex;
  flex-direction: column;
}
.site__main { flex-grow: 1; }

.container {
  --gutter: 1rem;
  max-width: 80rem; margin: 0 auto;
  padding: 0 max(var(--gutter), env(safe-area-inset-right)) 0 max(var(--gutter), env(safe-area-inset-left));
}
.container--medium { max-width: 64rem; }
.container--narrow { max-width: 56rem; }
.container--article { max-width: 52rem; }
@media (min-width: 640px)  { .container { --gutter: 1.5rem; } }
@media (min-width: 1024px) { .container { --gutter: 2rem; } }

.page { background: var(--bg); min-height: 100vh; min-height: 100dvh; padding: 2rem 0 3rem; }
.page--tall { padding-top: 2.5rem; }
@media (min-width: 768px) {
  .page { padding-top: 5rem; }
  .page--tall { padding-top: 6rem; }
}

.page-title {
  font-family: var(--font-custom);
  font-size: clamp(1.75rem, 8vw, 2.25rem);
  line-height: 1.1;
  color: #fff;
  margin-bottom: 1rem;
  overflow-wrap: anywhere;
}
@media (min-width: 768px) { .page-title { font-size: 3rem; line-height: 1; } }

.breadcrumbs { display: flex; min-width: 0; font-size: 0.875rem; color: #9ca3af; margin-bottom: 1rem; }
.breadcrumbs > * { flex-shrink: 0; }
.breadcrumbs a:hover { color: var(--red); transition: color .15s; }
.breadcrumbs__sep { margin: 0 0.5rem; }
.breadcrumbs__current { flex-shrink: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #fff; }

.back-link {
  display: inline-flex; align-items: center; gap: 0.5rem;
  color: #6b7280; margin-bottom: 2rem; font-family: var(--font-display); font-size: 0.875rem;
  transition: color .15s;
}
.back-link:hover { color: #fff; }
.back-link svg { transition: transform .15s; }
.back-link:hover svg { transform: translateX(-0.25rem); }

.navbar {
  background: rgba(17, 17, 17, 0.95);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 50;
}
.navbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; height: 4rem; }
.navbar__logo { min-width: 0; display: flex; align-items: center; gap: 0.5rem; }
.navbar__logo-img { flex-shrink: 0; height: 2rem; width: auto; object-fit: contain; filter: drop-shadow(0 0 5px rgba(220, 38, 38, 0.5)); }
.navbar__brand {
  color: #fff; font-family: var(--font-display); font-weight: 800; font-size: 1rem; letter-spacing: -0.05em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.navbar__right { flex-shrink: 0; display: flex; align-items: center; gap: 1rem; }
.navbar__tools { display: flex; align-items: center; gap: 0.5rem; }
@media (min-width: 480px) {
  .navbar__logo { gap: 0.75rem; }
  .navbar__logo-img { height: 2.5rem; }
  .navbar__brand { font-size: 1.25rem; }
}

.navbar__links { display: none; align-items: center; gap: 1rem; }
@media (min-width: 768px)  { .navbar__links { display: flex; } }
@media (min-width: 1024px) {
  .navbar__right, .navbar__links { gap: 1.5rem; }
  .navbar__tools { gap: 1rem; }
}
.navbar__link {
  font-family: var(--font-body); font-size: 0.875rem; text-transform: uppercase; letter-spacing: 0.025em;
  color: #d1d5db; white-space: nowrap; transition: color .2s;
}
.navbar__link:hover { color: #fff; }
.navbar__link.is-active { color: var(--red); }

.lang { position: relative; }
.lang__toggle {
  display: flex; align-items: center; gap: 0.25rem; min-height: 2.75rem; padding: 0 0.25rem;
  color: #d1d5db; font-size: 0.875rem; font-weight: 500; transition: color .15s;
}
.lang__toggle:hover { color: #fff; }
.lang__code { text-transform: uppercase; }
.lang__menu {
  position: absolute; right: 0; margin-top: 0.25rem; min-width: 7rem; padding: 0.25rem 0;
  background: #2a2a2a; border: 1px solid #444; border-radius: 0.25rem;
  box-shadow: 0 20px 25px -5px rgba(0,0,0,.3), 0 8px 10px -6px rgba(0,0,0,.3);
}
.lang__item { display: block; width: 100%; padding: 0.75rem 1rem; font-size: 0.875rem; color: #d1d5db; }
@media (min-width: 768px) { .lang__item { padding: 0.5rem 1rem; } }
.lang__item:hover { background: #333; }
.lang__item.is-active { color: var(--red); }
.lang__item.is-active:hover { background: transparent; }

.navbar__burger {
  display: flex; align-items: center; justify-content: center;
  width: 2.75rem; height: 2.75rem; margin-right: -0.5rem; border-radius: 0.375rem; color: #9ca3af;
}
.navbar__burger:hover { color: #fff; background: #333; }
.navbar__burger:focus { outline: none; }
@media (min-width: 768px) { .navbar__burger { display: none; } }

.mobile-menu {
  background: #111; border-bottom: 1px solid var(--border);
  max-height: calc(100vh - 4rem); max-height: calc(100dvh - 4rem); overflow-y: auto; overscroll-behavior: contain;
}
.mobile-menu__inner {
  padding: 0.5rem max(0.5rem, env(safe-area-inset-right)) 0.75rem max(0.5rem, env(safe-area-inset-left));
}
.mobile-menu__inner > * + * { margin-top: 0.25rem; }
@media (min-width: 640px) {
  .mobile-menu__inner { padding-left: max(0.75rem, env(safe-area-inset-left)); padding-right: max(0.75rem, env(safe-area-inset-right)); }
}
@media (min-width: 768px) { .mobile-menu { display: none !important; } }
.mobile-menu__link {
  display: block; padding: 0.75rem; border-radius: 0.375rem;
  font-family: var(--font-display); font-weight: 700; font-size: 1rem; text-transform: uppercase; color: #d1d5db;
}
.mobile-menu__link:hover { color: #fff; background: #333; }
.mobile-menu__link.is-active { color: #fff; background: rgba(220, 38, 38, 0.2); border-left: 4px solid var(--red); }

.footer { background: var(--bg); border-top: 1px solid #222; padding: 2rem 0 max(1.5rem, env(safe-area-inset-bottom)); }
.footer__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem 1.5rem; margin-bottom: 2rem; }
.footer__grid > :first-child { grid-column: 1 / -1; }
.footer__grid > :last-child { display: none; }
@media (min-width: 768px)  {
  .footer { padding-top: 4rem; padding-bottom: max(2rem, env(safe-area-inset-bottom)); }
  .footer__grid { gap: 3rem; margin-bottom: 3rem; }
  .footer__grid > :first-child { grid-column: auto; }
  .footer__grid > :last-child { display: block; }
}
@media (min-width: 1024px) { .footer__grid { grid-template-columns: repeat(4, 1fr); } }

.footer__brand { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem; }
.footer__logo { height: 2.5rem; width: auto; object-fit: contain; }
.footer__socials { display: flex; gap: 1rem; }
.social {
  width: 2.5rem; height: 2.5rem; border-radius: 0.25rem; background: #1a1a1a;
  display: flex; align-items: center; justify-content: center; color: #9ca3af; transition: all .3s;
}
.social:hover { color: #fff; background: var(--red); }

.footer__heading {
  display: inline-block; margin-bottom: 0.75rem; padding-bottom: 0.5rem; border-bottom: 1px solid var(--border);
  color: #fff; font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
}
.footer__list > * + * { margin-top: 0.25rem; }
.footer__list--news > * + * { margin-top: 1rem; }
.footer__link { display: inline-block; padding: 0.25rem 0; color: #9ca3af; font-size: 0.875rem; transition: color .15s; }
.footer__link:hover { color: var(--red); }
.footer__news { display: block; }
.footer__news-date { display: block; margin-bottom: 0.25rem; color: var(--red); font-size: 0.75rem; font-family: var(--font-mono); }
.footer__news-title { color: #9ca3af; font-size: 0.875rem; transition: color .15s; }
.footer__news:hover .footer__news-title { color: #fff; }

.footer__bottom {
  display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 1rem;
  border-top: 1px solid #222; padding-top: 1.5rem;
}
@media (min-width: 768px) { .footer__bottom { flex-direction: row; padding-top: 2rem; } }
.footer__copy { color: #4b5563; font-size: 0.875rem; text-align: center; }
.footer__badge {
  width: 2rem; height: 2rem; border-radius: 0.25rem; background: #1a1a1a; border: 1px solid rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center; font-size: 0.625rem; font-weight: 700; color: #6b7280;
  opacity: .5; transition: opacity .15s;
}
.footer__badge:hover { opacity: 1; }

.back-to-top {
  position: fixed; z-index: 50; padding: 0.75rem;
  bottom: max(1rem, env(safe-area-inset-bottom)); right: max(1rem, env(safe-area-inset-right));
  background: var(--red); color: #fff; border-radius: 9999px;
  box-shadow: 0 10px 15px -3px rgba(0,0,0,.3), 0 4px 6px -4px rgba(0,0,0,.3);
  opacity: 0; transform: scale(.5); pointer-events: none; transition: all .2s;
}
@media (min-width: 768px) { .back-to-top { bottom: 2rem; right: 2rem; } }
.back-to-top.is-visible { opacity: 1; transform: scale(1); pointer-events: auto; }
.back-to-top:hover { background: var(--red-light); }
.back-to-top svg { transition: transform .15s; }
.back-to-top:hover svg { transform: translateY(-0.25rem); }

.hero {
  position: relative; background: var(--bg); overflow: hidden;
  min-height: calc(100vh - 4rem); min-height: calc(100svh - 4rem); padding: 2.5rem 0;
  display: flex; align-items: center; border-bottom: 1px solid rgba(220, 38, 38, 0.3);
}
@media (min-width: 768px) { .hero { padding: 4rem 0 5rem; } }
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__bg-img { width: 100%; height: 100%; object-fit: cover; opacity: .5; }
.hero__bg-fade, .hero__bg-texture, .hero__bg-grid { position: absolute; inset: 0; }
.hero__bg-fade { background: linear-gradient(to top, #0a0a0a, rgba(10,10,10,.8), transparent); }
.hero__bg-texture { background-image: url('https://www.transparenttextures.com/patterns/carbon-fibre.png'); opacity: .4; }
.hero__bg-grid {
  background-image:
    linear-gradient(rgba(220,38,38,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(220,38,38,.03) 1px, transparent 1px);
  background-size: 40px 40px;
}
.hero__content { position: relative; z-index: 10; width: 100%; display: flex; flex-direction: column; justify-content: center; }
@media (min-width: 1024px) { .hero__inner { width: 66.666667%; } }

.hero__title {
  position: relative; margin-bottom: 1.5rem;
  font-family: var(--font-custom); font-weight: 900; text-transform: uppercase;
  font-size: clamp(2.5rem, 13vw, 4.5rem); line-height: .9; letter-spacing: -0.05em;
  filter: drop-shadow(0 0 20px rgba(220, 38, 38, 0.6));
}
@media (min-width: 768px) { .hero__title { margin-bottom: 2rem; font-size: 6rem; line-height: .85; } }
.hero__title-name { color: #fff; filter: drop-shadow(0 10px 10px rgba(0,0,0,.8)); }
.hero__title-accent {
  color: transparent; -webkit-background-clip: text; background-clip: text;
  background-image: linear-gradient(to right, #d13535, #f87171, #d13535);
  filter: drop-shadow(0 0 25px rgba(220,38,38,.5)) brightness(1.25);
}
.hero__title-ghost {
  display: none; position: absolute; top: -1rem; left: -1rem;
  color: rgba(255,255,255,.05); user-select: none; pointer-events: none; filter: blur(4px);
}
@media (min-width: 768px) { .hero__title-ghost { display: block; } }

.hero__subtitle {
  margin-top: 1.5rem; max-width: 42rem; padding: 0.75rem 1rem 0.75rem 1rem;
  font-size: 1rem; line-height: 1.625; color: #d1d5db;
  border-left: 4px solid var(--red); background: rgba(0,0,0,.4);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  box-shadow: 0 0 15px rgba(220,38,38,.2);
}
@media (min-width: 640px) { .hero__subtitle { margin-top: 2rem; padding-left: 1.5rem; font-size: 1.25rem; } }

.hero__actions { margin-top: 2rem; display: flex; gap: 0.75rem; }
@media (min-width: 640px) { .hero__actions { margin-top: 3rem; gap: 1rem; } }

.btn-clip {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  padding: 1.125rem 1.25rem; font-family: var(--font-custom); font-size: 1.25rem; line-height: 1.75rem; text-align: center; color: #fff;
  background: var(--red-dark); box-shadow: 0 0 20px rgba(153,27,27,.4);
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  transition: all .2s;
}
.btn-clip--wide { flex: 1; }
@media (min-width: 640px) {
  .btn-clip { padding: 1.5rem 2rem; font-size: 1.5rem; line-height: 2rem; }
  .btn-clip--wide { flex: none; padding-left: 3rem; padding-right: 3rem; }
}
.btn-clip:hover { background: var(--red); box-shadow: 0 0 40px rgba(220,38,38,.6); transform: translateY(-0.25rem); }
.btn-clip__shine {
  display: none; position: absolute; inset: 0; background: rgba(255,255,255,.2);
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}
.btn-clip:hover .btn-clip__shine { display: block; background: rgba(255,255,255,.3); }

.hero__stats { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 0.75rem; }
@media (min-width: 640px) { .hero__stats { margin-top: 2.5rem; gap: 1rem; } }
.hero-stat {
  display: flex; align-items: center; gap: 0.625rem; padding: 0.625rem 1rem;
  background: rgba(0,0,0,.55); border: 1px solid rgba(255,255,255,.1); border-radius: 0.75rem;
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.hero-stat__dot { width: 0.5rem; height: 0.5rem; border-radius: 9999px; background: #22c55e; box-shadow: 0 0 0 4px rgba(34,197,94,.2); }
.hero-stat__icon { display: flex; color: var(--red-light); }
.hero-stat__value { font-family: var(--font-mono); font-weight: 700; font-size: 1.125rem; line-height: 1.5rem; color: #fff; }
.hero-stat__label { font-family: var(--font-display); font-size: 0.8125rem; color: #9ca3af; }
@media (min-width: 640px) { .hero-stat { padding: 0.625rem 1.125rem; } .hero-stat__value { font-size: 1.25rem; line-height: 1.75rem; } }

.hero__scroll { display: none; position: absolute; bottom: 1.5rem; left: 0; right: 0; justify-content: center; }
@media (hover: hover) and (pointer: fine) and (min-width: 768px) and (min-height: 760px) { .hero__scroll { display: flex; } }
.hero__scroll-inner { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; color: #9ca3af; transition: color .15s; }
.hero__scroll-inner:hover { color: var(--red); }

.news-section { background: #121212; padding: 3rem 0; border-top: 1px solid #222; }
.news-section__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; margin-bottom: 1.5rem; }
.news-section__title {
  font-size: 1.5rem; line-height: 2rem; font-weight: 700; color: #fff; text-transform: uppercase;
  letter-spacing: 0.025em; border-left: 4px solid var(--red); padding-left: 1rem;
}
@media (min-width: 768px) {
  .news-section { padding: 4rem 0; }
  .news-section__head { margin-bottom: 2.5rem; }
  .news-section__title { font-size: 1.875rem; line-height: 2.25rem; }
}
.link-more { display: inline-flex; align-items: center; color: var(--red); font-weight: 500; white-space: nowrap; transition: color .15s; }
.link-more:hover { color: var(--red-light); }
.link-more svg { margin-left: 0.5rem; }
.link-more--desktop { display: none; }
.link-more--mobile { display: inline-flex; }
@media (min-width: 640px) {
  .link-more--desktop { display: flex; }
  .news-section__more-mobile { display: none; }
}
.news-section__more-mobile { margin-top: 2rem; text-align: center; }

.news-grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
@media (min-width: 600px)  { .news-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; } }
@media (min-width: 1024px) { .news-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 768px)  { .news-grid--page { gap: 2rem; } }
@media (min-width: 1024px) { .news-grid--page { grid-template-columns: repeat(3, 1fr); } }

.news-card {
  display: flex; flex-direction: column; background: #1e1e1e; border: 1px solid var(--border);
  border-radius: 0.5rem; overflow: hidden; transition: all .3s;
}
.news-card:hover { border-color: var(--red); box-shadow: 0 0 15px rgba(220,38,38,.15); }
.news-card__link { display: flex; flex-direction: column; height: 100%; }
.news-card__media { position: relative; height: 12rem; overflow: hidden; }
.news-card__img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.news-card:hover .news-card__img { transform: scale(1.1); }
.news-card__tag {
  position: absolute; top: 0.75rem; left: 0.75rem; display: flex; align-items: center; gap: 0.25rem;
  padding: 0.25rem 0.5rem; background: rgba(26,26,26,.9); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  border: 1px solid rgba(220,38,38,.3); border-radius: 0.25rem;
  font-size: 0.75rem; font-weight: 700; color: var(--red); text-transform: uppercase;
}
.news-card__body { flex: 1; display: flex; flex-direction: column; padding: 1.25rem; }
.news-card__date { display: flex; align-items: center; margin-bottom: 0.75rem; color: #6b7280; font-size: 0.75rem; font-family: var(--font-mono); }
.news-card__date svg { margin-right: 0.375rem; }
.news-card__title { margin-bottom: 0.75rem; font-size: 1.125rem; line-height: 1.375; font-weight: 700; color: #fff; transition: color .15s; }
.news-card:hover .news-card__title { color: var(--red); }
.news-card__foot { margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--border); }
.news-card__more { display: flex; align-items: center; font-size: 0.875rem; color: #9ca3af; transition: color .15s; }
.news-card:hover .news-card__more { color: #fff; }

.article-title {
  margin-bottom: 1rem; font-family: var(--font-display); font-weight: 700; color: #fff;
  font-size: clamp(1.625rem, 7vw, 2.25rem); line-height: 1.15; overflow-wrap: anywhere;
}
@media (min-width: 768px) { .article-title { font-size: 2.5rem; line-height: 1.1; } }
.more-news { margin-top: 3rem; }
@media (min-width: 768px) { .more-news { margin-top: 4rem; } }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; font-size: 0.875rem; color: #9ca3af; }
.article-meta__date { color: var(--red); font-family: var(--font-mono); }
.article-meta__category { background: #333; padding: 0.25rem 0.5rem; border-radius: 0.25rem; font-size: 0.75rem; text-transform: uppercase; }
.article { margin-top: 1.5rem; background: #111; border: 1px solid var(--border); border-radius: 0.75rem; overflow: hidden; }
.article__media { width: 100%; aspect-ratio: 16 / 9; }
.article__img { width: 100%; height: 100%; object-fit: cover; }
.article__body { padding: 1.25rem; color: #d1d5db; font-size: 1.0625rem; line-height: 1.7; overflow-wrap: break-word; }
.article__body > * + * { margin-top: 1rem; }
.article__lead { font-size: 1.125rem; line-height: 1.75rem; color: #fff; font-weight: 500; }
@media (min-width: 768px) {
  .article { margin-top: 2rem; }
  .article__body { padding: 2rem; }
  .article__lead { font-size: 1.25rem; }
}

.doc__card { background: #1a1a1a; border: 1px solid rgba(255,255,255,.05); border-radius: 1rem; padding: 1.25rem; box-shadow: var(--shadow-2xl); }
@media (min-width: 640px) { .doc__card { border-radius: 1.5rem; padding: 2rem; } }
@media (min-width: 768px) { .doc__card { padding: 3rem; } }
.doc__head { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1.5rem; }
.doc__head > :last-child { min-width: 0; }
.doc__icon { flex-shrink: 0; padding: 0.625rem; border-radius: 1rem; background: rgba(153,27,27,.1); color: var(--red-dark); }
.doc__title { font-family: var(--font-custom); font-size: 1.5rem; line-height: 1.2; letter-spacing: -0.025em; color: #fff; overflow-wrap: anywhere; }
@media (min-width: 640px) {
  .doc__head { gap: 1rem; margin-bottom: 2rem; }
  .doc__icon { padding: 0.75rem; }
  .doc__title { font-size: 1.875rem; line-height: 2.25rem; }
}
@media (min-width: 768px) { .doc__title { font-size: 2.25rem; line-height: 2.5rem; } }
.doc__updated { margin-top: 0.25rem; font-size: 0.875rem; color: #6b7280; }

.doc-content { color: #d1d5db; line-height: 1.625; font-family: var(--font-sans); overflow-wrap: break-word; }
.doc-content > * + * { margin-top: 1.5rem; }
.doc-content h3 { font-size: 1.25rem; font-weight: 700; color: #fff; }
.doc-content ol { list-style: decimal; padding-left: 1.5rem; }
.doc-content ol > li + li { margin-top: 0.5rem; }
.doc-content strong { color: #fff; }

.doc-content--rules { counter-reset: section; }
.doc-content--rules > * + * { margin-top: 1rem; }
.doc-content--rules blockquote {
  margin: 0; padding: 1rem 1.25rem; border-left: 4px solid var(--red); border-radius: 0 0.75rem 0.75rem 0;
  background: rgba(220,38,38,.08); color: #e5e7eb;
}
.doc-content--rules h3 {
  counter-increment: section; counter-reset: point;
  display: flex; align-items: center; gap: 0.75rem; margin-top: 2.5rem; padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255,255,255,.08); font-family: var(--font-display); font-size: 1.125rem; line-height: 1.5rem;
}
.doc-content--rules h3::before {
  content: counter(section); flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  width: 2rem; height: 2rem; border-radius: 0.5rem; background: var(--red-dark); color: #fff;
  font-family: var(--font-mono); font-size: 0.875rem; font-weight: 700;
}
.doc-content--rules ol { list-style: none; padding-left: 0; }
.doc-content--rules ol > li {
  counter-increment: point; position: relative; padding: 0.625rem 0.75rem 0.625rem 3.25rem; border-radius: 0.5rem;
}
.doc-content--rules ol > li + li { margin-top: 0.125rem; }
.doc-content--rules ol > li:nth-child(odd) { background: rgba(255,255,255,.025); }
.doc-content--rules ol > li::before {
  content: counter(section) "." counter(point); position: absolute; left: 0.75rem; top: 0.625rem;
  color: var(--red-light); font-family: var(--font-mono); font-size: 0.875rem; font-weight: 500;
}
.doc-content--rules table {
  display: block; overflow-x: auto; width: 100%; border: 1px solid rgba(255,255,255,.08); border-radius: 0.75rem;
  font-size: 0.875rem; line-height: 1.25rem;
}
.doc-content--rules th, .doc-content--rules td { padding: 0.75rem 1rem; text-align: left; vertical-align: top; min-width: 9rem; }
.doc-content--rules th:first-child, .doc-content--rules td:first-child { min-width: 13rem; }
.doc-content--rules td:first-child { color: #fff; }
.doc-content--rules thead tr { background: rgba(0,0,0,.3); }
.doc-content--rules th {
  font-family: var(--font-display); font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em;
  color: #9ca3af; white-space: nowrap;
}
.doc-content--rules tbody tr { border-top: 1px solid rgba(255,255,255,.06); }
.doc-content--rules tbody td:last-child { color: var(--red-light); }
@media (min-width: 768px) {
  .doc-content--rules table { display: table; }
  .doc-content--rules th, .doc-content--rules td { min-width: 0; }
  .doc-content--rules th:first-child, .doc-content--rules td:first-child { min-width: 0; width: 34%; }
}

.notfound { min-height: 70vh; background: var(--bg); padding: 4rem 1rem; display: flex; align-items: center; justify-content: center; }
.notfound__box { width: 100%; max-width: 30rem; text-align: center; }
.notfound__code {
  font-family: var(--font-custom); font-size: clamp(5rem, 28vw, 9rem); line-height: 1; letter-spacing: 0.02em;
  background: linear-gradient(180deg, #ef4444, rgba(153,27,27,.15)); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.notfound__title { margin-top: 0.5rem; font-family: var(--font-display); font-weight: 700; font-size: clamp(1.5rem, 6vw, 2rem); line-height: 1.2; color: #fff; }
.notfound__text { margin-top: 0.75rem; color: #9ca3af; }
.search.notfound__search { width: 100%; margin: 1.5rem auto 0; }
.notfound__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; margin-top: 1.75rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; padding: 0.75rem 1.5rem; border-radius: 0.75rem;
  background: #1a1a1a; border: 1px solid rgba(255,255,255,.1); color: #d1d5db;
  font-family: var(--font-display); font-weight: 600; font-size: 0.875rem; transition: all .15s;
}
.btn:hover { border-color: rgba(220,38,38,.6); color: #fff; }
.btn--primary { background: var(--red-dark); border-color: transparent; color: #fff; }
.btn--primary:hover { background: var(--red); }

.ratings__header { display: flex; flex-direction: column; gap: 1.25rem; margin-bottom: 1.5rem; }
.ratings__title { font-family: var(--font-custom); font-size: clamp(1.75rem, 8vw, 2.25rem); line-height: 1.1; letter-spacing: -0.025em; color: #fff; margin-bottom: 0.75rem; }
@media (min-width: 768px) {
  .ratings__header { flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 2rem; margin-bottom: 3rem; }
  .ratings__title { font-size: 3rem; line-height: 1; margin-bottom: 1rem; }
}
.ratings__desc { max-width: 42rem; color: #9ca3af; }

.reset {
  flex-shrink: 0; position: relative; overflow: hidden; padding: 1rem 1.25rem;
  background: linear-gradient(135deg, rgba(220,38,38,.14), rgba(26,26,26,.9) 55%), #1a1a1a;
  border: 1px solid rgba(220,38,38,.25); border-radius: 1rem; box-shadow: var(--shadow-xl);
}
.reset::before { content: ""; position: absolute; top: 0; left: 1.25rem; right: 1.25rem; height: 1px; background: linear-gradient(90deg, transparent, rgba(239,68,68,.8), transparent); }
.reset__label {
  display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.75rem;
  font-family: var(--font-display); font-size: 0.75rem; font-weight: 600; line-height: 1rem; color: #9ca3af; text-transform: uppercase; letter-spacing: 0.08em;
}
.reset__label svg { color: var(--red-light); }
.reset__time { display: flex; gap: 0.5rem; }
.reset__cell {
  flex: 1; display: flex; flex-direction: column; align-items: center; min-width: 3.5rem; padding: 0.5rem 0.25rem;
  background: rgba(0,0,0,.45); border: 1px solid rgba(255,255,255,.06); border-radius: 0.625rem;
}
.reset__value { font-family: var(--font-mono); font-weight: 700; font-size: 1.5rem; line-height: 1.75rem; color: #fff; font-variant-numeric: tabular-nums; }
.reset__cell:last-child .reset__value { color: var(--red-light); }
.reset__unit { font-family: var(--font-display); font-size: 0.625rem; line-height: 1rem; color: #6b7280; text-transform: uppercase; letter-spacing: 0.08em; }

.boards {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(14rem, 80%); gap: 0.75rem;
  margin: 0 calc(var(--gutter) * -1) 1.5rem; padding: 0.25rem var(--gutter) 0.5rem;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
}
.boards::-webkit-scrollbar { display: none; }
@media (min-width: 768px) {
  .boards { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 0 0 2rem; padding: 0; overflow: visible; }
}
.board--experience { --accent: #f59e0b; --accent-rgb: 245, 158, 11; }
.board--crystals   { --accent: #38bdf8; --accent-rgb: 56, 189, 248; }
.board--golds      { --accent: #facc15; --accent-rgb: 250, 204, 21; }
.board {
  position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 0.875rem; padding: 1.125rem 1.25rem;
  scroll-snap-align: start; background: #141414; border: 1px solid rgba(255,255,255,.06); border-radius: 1rem;
  color: #9ca3af; transition: border-color .2s, background .2s, transform .2s, box-shadow .2s;
}
.board::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .3s ease;
}
.board:hover { border-color: rgba(var(--accent-rgb), .35); transform: translateY(-2px); }
.board.is-active {
  color: #fff; border-color: rgba(var(--accent-rgb), .55);
  background: radial-gradient(120% 140% at 100% 0%, rgba(var(--accent-rgb), .16), transparent 60%), #171717;
  box-shadow: 0 0 0 1px rgba(var(--accent-rgb), .15), 0 18px 40px -18px rgba(var(--accent-rgb), .45);
}
.board.is-active::after { transform: scaleX(1); }
.board__glyph {
  position: absolute; right: -1.25rem; bottom: -1.75rem; color: var(--accent); opacity: .05;
  transform: rotate(-12deg); transition: opacity .25s, transform .4s; pointer-events: none;
}
.board:hover .board__glyph { opacity: .09; transform: rotate(-6deg) scale(1.05); }
.board.is-active .board__glyph { opacity: .14; }
.board__head { position: relative; display: flex; align-items: center; gap: 0.625rem; }
.board__icon {
  display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 0.625rem;
  color: var(--accent); background: rgba(var(--accent-rgb), .1); border: 1px solid rgba(var(--accent-rgb), .2);
}
.board__label { font-family: var(--font-display); font-weight: 600; font-size: 0.8125rem; text-transform: uppercase; letter-spacing: 0.08em; }
.board__value {
  position: relative; font-family: var(--font-mono); font-weight: 700; font-size: 1.75rem; line-height: 1;
  color: #d1d5db; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.board.is-active .board__value { color: #fff; text-shadow: 0 0 24px rgba(var(--accent-rgb), .45); }
.board__leader { position: relative; display: flex; align-items: center; gap: 0.375rem; min-width: 0; font-size: 0.8125rem; }
.board__leader svg { flex-shrink: 0; color: var(--accent); }
.board__leader-title { color: #6b7280; }
.board__leader-nick { color: #e5e7eb; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.table-card__bar {
  display: flex; flex-direction: column; gap: 0.75rem; padding: 0.875rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,.05);
}
@media (min-width: 640px) { .table-card__bar { flex-direction: row; align-items: center; justify-content: space-between; } }
.table-card__title {
  display: flex; align-items: center; gap: 0.5rem; color: #fff;
  font-family: var(--font-display); font-weight: 600; font-size: 0.9375rem;
}
.table-card__title svg { color: var(--red-light); }

.search { position: relative; width: 100%; }
@media (min-width: 640px) { .table-card__bar .search { width: 18rem; } }
@media (min-width: 768px) { .search { width: 18rem; } }
.search__btn { position: absolute; left: 0.75rem; top: 50%; transform: translateY(-50%); color: #6b7280; transition: color .15s; }
.search__btn:hover { color: var(--red); }
.search__input {
  display: block; width: 100%; min-height: 2.75rem; padding: 0.625rem 1rem 0.625rem 2.5rem; color: #fff;
  background: #1a1a1a; border: 1px solid rgba(255,255,255,.05); border-radius: 0.75rem; transition: border-color .15s;
}
.search__input::placeholder { color: #6b7280; }
.search__input:focus { outline: none; border-color: var(--red-dark); }
.table-card__bar .search__input { background: rgba(0,0,0,.3); }

.table-card { background: #1a1a1a; border: 1px solid rgba(255,255,255,.05); border-radius: 1rem; overflow: hidden; box-shadow: var(--shadow-2xl); }
.table-card__scroll { overflow-x: auto; }
.rating-table { width: 100%; text-align: left; }
.rating-table th:nth-child(2), .rating-table td:nth-child(2) { width: 100%; max-width: 0; }
.rating-table thead tr { background: rgba(0,0,0,.2); border-bottom: 1px solid rgba(255,255,255,.05); }
.rating-table th {
  padding: 0.75rem; font-family: var(--font-display); font-size: 0.75rem; font-weight: 600; line-height: 1rem;
  text-transform: uppercase; letter-spacing: 0.05em; color: #6b7280;
}
.rating-table .col-rank { width: 3.25rem; text-align: center; }
.rating-table .col-score { text-align: right; }
.rating-table td:last-child { white-space: nowrap; }
.rating-table tbody tr + tr { border-top: 1px solid rgba(255,255,255,.05); }
.rating-table tbody tr:hover { background: rgba(255,255,255,.02); }
.rating-table td { padding: 0.875rem 0.75rem; }
@media (min-width: 640px) {
  .rating-table th { padding: 1rem 1.5rem; }
  .rating-table td { padding: 1.25rem 1.5rem; }
  .rating-table .col-rank { width: 5rem; }
}
.rank-cell { display: flex; align-items: center; justify-content: center; }
.rank-cell__num { color: #6b7280; font-family: var(--font-mono); font-size: 0.875rem; }
.rank-cell .gold { color: #eab308; }
.rank-cell .silver { color: #9ca3af; }
.rank-cell .bronze { color: #d97706; }
.player { display: flex; align-items: center; gap: 0.75rem; }
@media (min-width: 640px) { .player { gap: 1rem; } }
.player > :last-child { min-width: 0; }
.player__img-box { flex-shrink: 0; width: 2rem; height: 2rem; display: flex; align-items: center; justify-content: center; }
.player__img { max-width: 100%; max-height: 100%; object-fit: contain; }
.player__nick { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #fff; font-family: var(--font-display); font-weight: 500; transition: color .15s; }
.player__nick:hover { color: var(--red); }
.player__rank { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.625rem; line-height: 1rem; color: #6b7280; text-transform: uppercase; letter-spacing: -0.025em; }
.score { display: flex; flex-direction: column; align-items: flex-end; }
.score__value { color: #fff; font-family: var(--font-mono); font-weight: 500; }
.score__label { font-size: 0.625rem; line-height: 1rem; color: #6b7280; text-transform: uppercase; letter-spacing: 0.1em; }
.rating-cell-right { text-align: right; }
.sentinel { height: 2.5rem; width: 100%; }
.empty { padding: 3rem 1rem; text-align: center; color: #6b7280; font-family: var(--font-display); overflow-wrap: anywhere; }
@media (min-width: 768px) { .empty { padding: 5rem 1rem; } }

.profile-head {
  position: relative; overflow: hidden; margin-bottom: 1.25rem; padding: 1.5rem 1.25rem;
  background: #1a1a1a; border: 1px solid rgba(255,255,255,.05); border-radius: 1rem; box-shadow: var(--shadow-2xl);
}
@media (min-width: 768px) { .profile-head { margin-bottom: 2rem; padding: 2rem; border-radius: 1.5rem; } }
.profile-head__glow {
  position: absolute; top: 0; right: 0; width: 16rem; height: 16rem; margin: -8rem -8rem 0 0;
  background: rgba(153,27,27,.1); filter: blur(100px); border-radius: 9999px;
}
.profile-head__inner { position: relative; display: flex; flex-direction: column; align-items: stretch; gap: 1.5rem; }
@media (min-width: 768px) { .profile-head__inner { flex-direction: row; align-items: center; gap: 2rem; } }

.profile-info { flex: 1; min-width: 0; width: 100%; text-align: center; }
@media (min-width: 768px) { .profile-info { text-align: left; } }
.profile-info__top { display: flex; flex-direction: column; align-items: center; gap: 0.75rem; margin-bottom: 1.25rem; }
.profile-rank { flex-shrink: 0; height: 3rem; width: auto; }
.profile-rank--premium { height: 3.5rem; }
@media (min-width: 768px) { .profile-info__top { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 1rem; } }
.profile-name { font-family: var(--font-display); font-weight: 700; color: #fff; font-size: clamp(1.75rem, 8vw, 2.25rem); line-height: 1.1; letter-spacing: -0.025em; overflow-wrap: anywhere; }
@media (min-width: 768px) { .profile-name { font-size: 3rem; line-height: 1; } }
.badges { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.5rem; }
@media (min-width: 768px) { .badges { justify-content: flex-start; } }
.badge {
  padding: 0.25rem 0.75rem; border-radius: 0.5rem; font-size: 0.625rem; line-height: 1rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
  background: rgba(153,27,27,.2); border: 1px solid rgba(153,27,27,.3); color: var(--red-dark);
}
.badge--premium { background: rgba(234,179,8,.1); border-color: rgba(234,179,8,.2); color: #eab308; }

.xp { max-width: 28rem; margin: 0 auto 1.5rem; }
@media (min-width: 768px) { .xp { margin-left: 0; } }
.xp__labels { display: flex; justify-content: space-between; margin-bottom: 0.5rem; font-size: 0.625rem; line-height: 1rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }
.xp__label { color: #6b7280; }
.xp__value { color: #fff; }
.xp__track { height: 0.625rem; background: rgba(0,0,0,.4); border: 1px solid rgba(255,255,255,.05); border-radius: 9999px; overflow: hidden; }
.xp__fill { height: 100%; background: linear-gradient(to right, #991b1b, #dc2626); box-shadow: 0 0 10px rgba(220,38,38,.3); }

.profile-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem 1.5rem; }
@media (min-width: 768px) { .profile-meta { justify-content: flex-start; } }
.profile-meta__item { display: flex; align-items: center; gap: 0.5rem; color: #9ca3af; font-size: 0.75rem; line-height: 1rem; }

.clan-card {
  flex-shrink: 0; position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: 13rem; max-width: 100%; padding: 1.25rem 1.75rem; text-align: center;
  background: linear-gradient(160deg, rgba(220,38,38,.16), rgba(0,0,0,.35) 60%); border: 1px solid rgba(220,38,38,.25); border-radius: 1rem;
}
.clan-card::before { content: ""; position: absolute; top: 0; left: 1.5rem; right: 1.5rem; height: 1px; background: linear-gradient(90deg, transparent, rgba(239,68,68,.8), transparent); }
.clan-card__label {
  display: flex; align-items: center; gap: 0.375rem; margin-bottom: 0.5rem;
  font-family: var(--font-display); font-size: 0.625rem; font-weight: 700; line-height: 1rem; color: var(--red-light); text-transform: uppercase; letter-spacing: 0.15em;
}
.clan-card__tag { font-family: var(--font-custom); font-size: 2.25rem; line-height: 1.1; color: #fff; letter-spacing: 0.02em; text-shadow: 0 0 24px rgba(220,38,38,.45); overflow-wrap: anywhere; }
.clan-card__name { margin-top: 0.375rem; max-width: 16rem; font-family: var(--font-display); font-size: 0.875rem; line-height: 1.25rem; color: #9ca3af; overflow-wrap: anywhere; }
@media (min-width: 768px) { .clan-card { padding: 1.5rem 2.25rem; } .clan-card__tag { font-size: 2.75rem; } }

.tank-wrap { position: relative; z-index: 0; margin-bottom: 1.25rem; }
.tank-preview {
  position: relative; width: 100%; height: clamp(240px, 75vw, 400px); max-height: 55vh; overflow: hidden; background: #0f172a;
  border: 1px solid rgba(255,255,255,.05); border-radius: 1rem; box-shadow: var(--shadow-2xl); cursor: grab;
}
.tank-preview:active { cursor: grabbing; }
@media (min-width: 768px) {
  .tank-wrap { margin-bottom: 2rem; }
  .tank-preview { height: 500px; max-height: 70vh; border-radius: 1.5rem; }
}

.battle { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.75rem; margin-bottom: 1.25rem; }
@media (min-width: 768px)  { .battle { gap: 1rem; margin-bottom: 2rem; } }
@media (min-width: 1024px) { .battle { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); } }

.duel {
  display: flex; flex-direction: column; justify-content: center; gap: 1rem; min-width: 0; padding: 1.25rem;
  background: linear-gradient(135deg, rgba(220,38,38,.1), transparent 55%), #1a1a1a; border: 1px solid rgba(255,255,255,.05); border-radius: 1rem; box-shadow: var(--shadow-xl);
}
.duel__top { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: end; gap: 0.75rem; }
.duel__side { display: flex; flex-direction: column; gap: 0.25rem; min-width: 0; }
.duel__side--right { align-items: flex-end; text-align: right; }
.duel__label { font-family: var(--font-display); font-size: 0.6875rem; font-weight: 600; line-height: 1rem; color: #6b7280; text-transform: uppercase; letter-spacing: 0.08em; }
.duel__value { font-family: var(--font-mono); font-weight: 700; font-size: 1.125rem; line-height: 1.5rem; color: #d1d5db; overflow-wrap: anywhere; }
.duel__value--kills { color: var(--red-light); }
.duel__kd { display: flex; flex-direction: column; align-items: center; gap: 0.125rem; padding: 0 0.5rem; }
.duel__kd-value { font-family: var(--font-custom); font-size: 2.25rem; line-height: 1; color: #fff; text-shadow: 0 0 24px rgba(220,38,38,.4); }
.duel__bar { height: 0.375rem; background: #3f3f46; border-radius: 9999px; overflow: hidden; }
.duel__fill { height: 100%; background: linear-gradient(90deg, var(--red-dark), var(--red-light)); border-right: 2px solid #1a1a1a; }

.totals { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.75rem; min-width: 0; }
@media (min-width: 640px) { .totals { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 768px) { .totals { gap: 1rem; } }
.total {
  display: flex; align-items: center; gap: 0.875rem; min-width: 0; padding: 1rem;
  background: #1a1a1a; border: 1px solid rgba(255,255,255,.05); border-radius: 1rem; box-shadow: var(--shadow-xl);
}
@media (min-width: 640px) { .total { flex-direction: column; align-items: flex-start; justify-content: space-between; } }
.total__icon { flex-shrink: 0; display: flex; padding: 0.625rem; border-radius: 0.75rem; background: rgba(255,255,255,.05); }
.total__text { min-width: 0; }
.total__value { font-family: var(--font-mono); font-weight: 700; font-size: 1.25rem; line-height: 1.75rem; color: #fff; overflow-wrap: anywhere; }
.total__label { margin-top: 0.125rem; font-family: var(--font-display); font-size: 0.6875rem; font-weight: 600; line-height: 1rem; color: #6b7280; text-transform: uppercase; letter-spacing: 0.05em; }
.color-red { color: var(--red-light); }
.color-blue { color: #60a5fa; }
.color-yellow { color: #facc15; }
.color-purple { color: #c084fc; }
.color-emerald { color: #34d399; }

.panel { padding: 1.25rem; background: #1a1a1a; border: 1px solid rgba(255,255,255,.05); border-radius: 1rem; box-shadow: var(--shadow-xl); }
@media (min-width: 768px) { .panel { padding: 2rem; border-radius: 1.5rem; } }
.panel__title { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 1.5rem; font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; line-height: 1.75rem; color: #fff; }
.panel__title--spaced { margin-bottom: 2rem; }

.equip__count { font-family: var(--font-display); font-size: 0.75rem; line-height: 1rem; color: #6b7280; }
.equip__nav { display: flex; gap: 0.5rem; margin-left: auto; }
.equip__nav[hidden] { display: none; }
.equip__btn {
  display: flex; align-items: center; justify-content: center; width: 2rem; height: 2rem; border-radius: 9999px;
  background: rgba(0,0,0,.4); border: 1px solid rgba(255,255,255,.08); color: #9ca3af; cursor: pointer; transition: all .15s;
}
.equip__btn:hover { border-color: rgba(220,38,38,.6); color: #fff; }
.garage-card {
  flex-shrink: 0; padding: 0.75rem;
  background: rgba(0,0,0,.4); border: 1px solid rgba(255,255,255,.05); border-radius: 0.75rem; transition: border-color .15s;
}
.equip__scroll--cards { --per-row: 2; --gap: 0.75rem; gap: var(--gap); }
.equip__scroll--cards .garage-card { width: calc((100% - (var(--per-row) - 1) * var(--gap)) / var(--per-row)); }
@media (min-width: 640px) { .equip__scroll--cards { --per-row: 3; } }
@media (min-width: 768px) { .equip__scroll--cards { --gap: 1rem; } }
.garage-card:hover { border-color: rgba(153,27,27,.5); }
.garage-card--installed { background: rgba(220,38,38,.1); border-color: rgba(220,38,38,.55); }
.garage-card--installed:hover { border-color: rgba(220,38,38,.8); }
.garage-card__head { display: flex; align-items: baseline; gap: 0.5rem; font-family: var(--font-display); }
.garage-card__name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.8125rem; font-weight: 700; line-height: 1.25rem; color: #fff; }
.garage-card__mod { color: #ef4444; }
.mod-level { flex-shrink: 0; align-self: center; display: flex; gap: 0.1875rem; }
.mod-level i { width: 0.625rem; height: 0.1875rem; border-radius: 9999px; background: rgba(255,255,255,.12); }
.mod-level i.is-on { background: var(--red-light); box-shadow: 0 0 6px rgba(239,68,68,.6); }
.garage-card__image { position: relative; display: flex; align-items: center; justify-content: center; height: 6.5rem; margin-top: 0.5rem; }
.garage-card__numbers { display: flex; justify-content: flex-end; gap: 0.75rem; margin-top: 0.5rem; font-family: var(--font-mono); font-size: 0.75rem; line-height: 1rem; color: #9ca3af; }
.garage-card__numbers span { display: flex; align-items: center; gap: 0.25rem; }
.garage-card__numbers svg { color: var(--red-light); }
.garage-card__image img { max-width: 100%; max-height: 100%; object-fit: contain; pointer-events: none; }
.garage-card__image .garage-card__badge { position: absolute; top: 47%; left: 50%; width: 1.75rem; height: 1.75rem; transform: translate(-50%, -50%); }
@media (min-width: 768px) {
  .garage-card { padding: 1rem; }
  .garage-card__name { font-size: 0.875rem; }
  .garage-card__image { height: 8rem; }
}

.equip { margin-bottom: 2rem; }
.equip:last-child { margin-bottom: 0; }
.equip__head { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 1rem; }
.equip__title { font-family: var(--font-display); font-weight: 700; font-size: 0.875rem; line-height: 1.25rem; color: #fff; text-transform: uppercase; letter-spacing: 0.05em; }
.equip__scroll { display: flex; gap: 0.75rem; overflow-x: auto; overscroll-behavior-x: contain; cursor: grab; user-select: none; scrollbar-width: none; }
.equip__scroll::-webkit-scrollbar { display: none; }
.equip__scroll:active { cursor: grabbing; }
@media (min-width: 768px) { .equip__scroll { gap: 1rem; } }

.modes-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem; margin-bottom: 1.25rem; }
@media (min-width: 768px)  { .modes-grid { gap: 1.5rem; margin-bottom: 2rem; } }
@media (min-width: 1024px) { .modes-grid { grid-template-columns: repeat(4, 1fr); } }
.mode-card { display: flex; align-items: center; gap: 0.75rem; min-width: 0; padding: 1rem; background: #1a1a1a; border: 1px solid rgba(255,255,255,.05); border-radius: 1rem; box-shadow: var(--shadow-xl); }
.mode-card__icon { flex-shrink: 0; color: var(--red-light); }
.mode-card__body { flex: 1; min-width: 0; }
.mode-card__top { display: flex; align-items: baseline; justify-content: space-between; gap: 0.5rem; font-family: var(--font-display); font-weight: 700; }
.mode-card__name { color: #fff; }
.mode-card__percent { font-size: 0.75rem; line-height: 1rem; color: var(--red-light); }
.mode-card__numbers { display: flex; flex-wrap: wrap; gap: 0.25rem 0.75rem; margin: 0.25rem 0 0.5rem; font-family: var(--font-mono); font-size: 0.75rem; line-height: 1rem; color: #9ca3af; }
.mode-card__numbers span { display: flex; align-items: center; gap: 0.25rem; }
.bar { height: 0.25rem; background: rgba(0,0,0,.4); border-radius: 9999px; overflow: hidden; }
.bar__fill { height: 100%; background: var(--red); border-radius: inherit; }

@keyframes fade-up { from { opacity: 0; transform: translateY(var(--rise, 20px)); } to { opacity: 1; transform: translateY(0); } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop-in { from { opacity: 0; transform: scale(.95); } to { opacity: 1; transform: scale(1); } }
@keyframes bob { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes grow-x { from { width: 0; } to { width: var(--w); } }

.anim-fade-up { animation: fade-up .6s ease-out both; animation-delay: var(--d, 0s); }
.anim-fade-in { animation: fade-in .6s ease-out both; animation-delay: var(--d, 0s); }
.anim-pop { animation: pop-in .4s ease-out both; }
.anim-row { --rise: 10px; animation: fade-up .2s ease-out both; }
.anim-bob { animation: bob 1s ease-in-out 1s infinite alternate both; }
.anim-grow { width: var(--w); animation: grow-x 1s ease-out both; }

@media (hover: none) {
  .btn-clip:hover { transform: none; }
  .news-card:hover .news-card__img { transform: none; }
  .back-link:hover svg, .back-to-top:hover svg { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
}
