﻿:root {
  color-scheme: dark;
  --bg: #080a0f;
  --panel: #121722;
  --panel-2: #181f2d;
  --text: #f5f7fb;
  --muted: #aeb8c8;
  --line: rgba(255, 255, 255, 0.12);
  --accent: #d71920;
  --radius: 8px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}

.site-shell {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 48px;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.site-kicker {
  color: var(--muted);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 8px;
}

h1 {
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1;
  margin: 0;
  letter-spacing: 0;
}

.site-copy {
  max-width: 680px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
  margin: 18px 0 0;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.team-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 190px;
  padding: 24px 18px 22px;
  border: 1px solid var(--line);
  border-top: 4px solid var(--team-color, var(--accent));
  border-radius: var(--radius);
  background: var(--panel);
  color: inherit;
  text-decoration: none;
  text-align: center;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.team-card:hover {
  background: var(--panel-2);
  border-color: rgba(255, 255, 255, 0.24);
  transform: translateY(-2px);
}

.team-logo-frame {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 104px;
}

.team-logo {
  display: block;
  width: min(112px, 52%);
  height: 96px;
  object-fit: contain;
  filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.34));
}

.team-name {
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.2;
}

.notice {
  margin-top: 24px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  line-height: 1.5;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.06);
}

.button:hover {
  background: rgba(255, 255, 255, 0.12);
}

@media (max-width: 720px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }
}

.asset-list {
  display: grid;
  gap: 8px;
  margin-top: 24px;
}

.asset-row {
  display: grid;
  grid-template-columns: minmax(120px, 180px) 1fr minmax(130px, auto);
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
}

.asset-label {
  font-weight: 700;
}

.asset-path {
  color: var(--muted);
  overflow-wrap: anywhere;
  font-size: 0.9rem;
}

.asset-link {
  color: #bcd8ff;
  text-decoration: none;
}

.asset-link:hover {
  text-decoration: underline;
}

.asset-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
}

.asset-open {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.8rem;
}

.asset-open:hover {
  background: rgba(255, 255, 255, 0.12);
}

.asset-state {
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 0.8rem;
  border: 1px solid var(--line);
}

.asset-state--ready {
  color: #8ff0b4;
}

.asset-state--missing {
  color: #ffb3b3;
}

.team-logo-preview {
  width: min(160px, 50vw);
  height: auto;
  margin-top: 20px;
}

.asset-preview-list {
  display: grid;
  gap: 18px;
  margin-top: 24px;
}

.asset-preview {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  overflow: hidden;
}

.asset-preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}

.asset-preview-header h3 {
  margin: 0;
  font-size: 1rem;
}

.asset-preview-frame {
  display: block;
  width: 100%;
  height: min(72vh, 720px);
  min-height: 460px;
  border: 0;
  background: #fff;
}

.asset-preview-image {
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 720px) {
  .asset-row {
    grid-template-columns: 1fr;
  }

  .asset-actions {
    justify-content: flex-start;
  }

  .asset-preview-frame {
    min-height: 360px;
  }
}
