:root {
  --bg: #07101d;
  --bg-2: #0c1830;
  --card: rgba(13, 23, 43, 0.72);
  --card-strong: rgba(12, 24, 48, 0.86);
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --text: #f5f7fb;
  --muted: #b8c4d7;
  --accent: #7f9dff;
  --accent-2: #4ce3c2;
  --radius: 24px;
  --radius-sm: 18px;
  --shadow: 0 20px 70px rgba(0, 0, 0, 0.38);
  --focus-ring: 0 0 0 3px rgba(127, 157, 255, 0.28);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--text);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  line-height: 1.5;
  background:
    radial-gradient(circle at top left, rgba(127, 157, 255, 0.14), transparent 28%),
    radial-gradient(circle at top right, rgba(76, 227, 194, 0.12), transparent 24%),
    linear-gradient(180deg, var(--bg), var(--bg-2));
}

body.menu-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

audio[hidden] {
  display: none;
}

.skip-link {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 200;
  padding: 12px 16px;
  border-radius: 14px;
  background: #f5f7fb;
  color: #07101d;
  transform: translateY(-160%);
  transition: transform 0.2s ease;
}

.skip-link:focus-visible {
  transform: translateY(0);
}

.bg-glow {
  position: fixed;
  z-index: 0;
  border-radius: 999px;
  opacity: 0.3;
  filter: blur(120px);
  pointer-events: none;
}

.glow-1 {
  top: 80px;
  left: -80px;
  width: 260px;
  height: 260px;
  background: #5e80ff;
}

.glow-2 {
  top: 220px;
  right: -100px;
  width: 320px;
  height: 320px;
  background: #29d9b3;
}

.section-width {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.glass {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

.site-header {
  position: sticky;
  top: 14px;
  z-index: 50;
  width: min(1180px, calc(100% - 32px));
  margin: 18px auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(7, 16, 29, 0.72);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 22px rgba(127, 157, 255, 0.6);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.nav a {
  position: relative;
  padding: 6px 0;
  color: var(--muted);
  transition: color 0.2s ease;
}

.nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--text);
}

.nav a:hover::after,
.nav a:focus-visible::after {
  transform: scaleX(1);
}

.menu-toggle {
  display: none;
  justify-content: center;
  align-items: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font-size: 1.1rem;
  cursor: pointer;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.85fr);
  gap: 28px;
  align-items: center;
  padding: 72px 0 38px;
}

.hero-copy {
  display: grid;
  gap: 16px;
}

.eyebrow {
  margin: 0;
  color: var(--accent-2);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.7rem, 6vw, 5rem);
  line-height: 0.98;
}

.hero-text,
.section-head p,
.song-content p,
.dog-body p,
.game-card p,
.panel-copy,
.footer p,
.song-player-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.hero-text {
  max-width: 58ch;
  font-size: 1.04rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 700;
  text-align: center;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    background-color 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease;
  cursor: pointer;
}

.btn:hover:not(:disabled) {
  transform: translateY(-2px);
}

.btn-primary {
  color: #07101d;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

.btn-secondary,
.btn-ghost {
  color: var(--text);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.btn-small {
  min-height: 38px;
  padding: 0 14px;
  font-size: 0.92rem;
}

.btn.is-active,
.player-button.is-active {
  border-color: transparent;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #07101d;
}

.btn.is-disabled,
.btn:disabled {
  opacity: 0.56;
  cursor: not-allowed;
  transform: none;
}

.feature-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.feature-card {
  min-width: 150px;
  padding: 16px 18px;
}

.feature-label,
.song-player-label {
  display: block;
  margin-bottom: 6px;
  color: var(--accent-2);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-panel {
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 26px;
  background: linear-gradient(180deg, rgba(13, 23, 43, 0.85), rgba(13, 23, 43, 0.7));
}

.panel-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(127, 157, 255, 0.16);
  color: #d4defe;
  font-size: 0.88rem;
  font-weight: 700;
}

.hero-panel h2,
.panel-title {
  margin: 0;
}

.hero-panel h2 {
  font-size: 1.8rem;
}

.panel-title {
  font-size: 1.3rem;
  font-weight: 800;
}

.fake-player {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 8px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
}

.player-button {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #07101d;
  font-weight: 800;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease;
}

.player-button:hover:not(:disabled) {
  transform: translateY(-2px);
}

.player-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.player-info span {
  color: var(--muted);
}

.section {
  padding: 46px 0 28px;
}

.section-head {
  max-width: 760px;
  margin-bottom: 24px;
}

.section-head h2 {
  margin: 0 0 12px;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
}

.song-player-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
  padding: 20px 22px;
}

.song-player-copy {
  display: grid;
  gap: 6px;
}

.song-player-copy strong {
  font-size: 1.1rem;
}

.site-audio-player {
  width: min(100%, 360px);
  min-width: 0;
  color-scheme: dark;
}

.songs-grid,
.dogs-grid,
.games-grid {
  display: grid;
  gap: 22px;
}

.songs-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.dogs-grid {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.games-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.tournament-layout {
  display: grid;
  grid-template-columns: minmax(320px, 400px) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.tournament-form,
.tournament-output {
  padding: 24px;
}

.tournament-form {
  display: grid;
  gap: 18px;
  position: sticky;
  top: 108px;
  align-content: start;
  background: linear-gradient(180deg, rgba(13, 23, 43, 0.88), rgba(13, 23, 43, 0.74));
}

.tournament-planner-head {
  display: grid;
  gap: 8px;
}

.tournament-planner-head h3 {
  margin: 4px 0 0;
  font-size: 1.45rem;
}

.tournament-planner-head p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.points-config-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.03);
}

.compact-panel-head {
  margin-bottom: 14px;
}

.points-config-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.tournament-input-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.form-field {
  display: grid;
  gap: 8px;
}

.form-field-full {
  grid-column: 1 / -1;
}

.form-field span {
  font-size: 0.92rem;
  font-weight: 700;
}

.field-hint {
  color: var(--muted);
  line-height: 1.5;
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: rgba(184, 196, 215, 0.72);
}

.form-field input[type="time"] {
  color-scheme: dark;
}

.form-field textarea {
  min-height: 180px;
  resize: vertical;
  line-height: 1.55;
}

.tournament-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.form-note {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.tournament-output {
  display: grid;
  gap: 18px;
  background: linear-gradient(180deg, rgba(13, 23, 43, 0.82), rgba(13, 23, 43, 0.68));
}

.tournament-output-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.tournament-output-head h3 {
  margin: 4px 0 0;
  font-size: clamp(1.35rem, 2vw, 1.8rem);
}

.tournament-output-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tournament-status {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.tournament-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.tournament-summary-card {
  position: relative;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  overflow: hidden;
}

.tournament-summary-card::after {
  content: "";
  position: absolute;
  inset: auto -24px -40px auto;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(127, 157, 255, 0.12), transparent 70%);
}

.tournament-summary-card span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.88rem;
}

.tournament-summary-card strong {
  font-size: 1.3rem;
}

.tournament-standings-panel,
.tournament-round-panel {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.03);
}

.prominent-panel {
  border-color: rgba(127, 157, 255, 0.16);
  background:
    linear-gradient(180deg, rgba(127, 157, 255, 0.08), transparent),
    rgba(255, 255, 255, 0.03);
}

.tournament-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.tournament-panel-head h4 {
  margin: 4px 0 0;
  font-size: 1.08rem;
}

.tournament-panel-head p {
  max-width: 26ch;
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  text-align: right;
}

.tournament-standings-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.02);
}

.tournament-standings-table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
}

.tournament-standings-table th,
.tournament-standings-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.tournament-standings-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--card-strong);
  font-size: 0.9rem;
}

.tournament-standings-table tbody tr:last-child td {
  border-bottom: 0;
}

.tournament-standings-table tbody tr:nth-child(even) td {
  background: rgba(255, 255, 255, 0.02);
}

.standings-rank {
  color: var(--muted);
  font-weight: 700;
}

.standings-team {
  font-weight: 700;
}

.standings-points {
  font-weight: 800;
  color: #e5ecff;
}

.tournament-rounds {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
}

.tournament-round-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
}

.tournament-round-card h4 {
  margin: 0 0 10px;
  font-size: 1rem;
}

.tournament-round-meta,
.tournament-round-note {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.tournament-round-meta {
  display: grid;
  gap: 4px;
}

.tournament-round-note {
  margin-top: 10px;
}

.empty-round-card {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--muted);
}

.tournament-table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.02);
}

.tournament-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

.tournament-table th,
.tournament-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.tournament-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--card-strong);
  font-size: 0.92rem;
}

.tournament-table tbody tr:last-child td {
  border-bottom: 0;
}

.tournament-table tbody tr:nth-child(even) td {
  background: rgba(255, 255, 255, 0.02);
}

.tournament-table tbody tr.is-complete td {
  background: rgba(76, 227, 194, 0.04);
}

.tournament-time {
  display: grid;
  gap: 4px;
}

.tournament-time strong {
  font-size: 0.98rem;
}

.tournament-time span,
.round-cell small {
  color: var(--muted);
}

.round-cell {
  display: grid;
  gap: 6px;
}

.round-chip {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(127, 157, 255, 0.16);
  color: #d4defe;
  font-size: 0.84rem;
  font-weight: 700;
}

.score-cell {
  min-width: 240px;
}

.score-inputs {
  display: flex;
  align-items: center;
  gap: 8px;
}

.score-divider {
  color: var(--muted);
  font-weight: 700;
}

.score-input {
  width: 62px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  text-align: center;
}

.score-input::-webkit-outer-spin-button,
.score-input::-webkit-inner-spin-button {
  margin: 0;
}

.score-input[type="number"] {
  appearance: textfield;
}

.result-cell {
  display: grid;
  gap: 10px;
}

.result-badge {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 700;
}

.score-result-stack {
  display: grid;
  gap: 10px;
}

.score-result-copy {
  display: grid;
  gap: 6px;
}

.score-result-copy small {
  color: var(--muted);
  line-height: 1.45;
}

.result-badge.pending {
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
}

.result-badge.draw {
  color: #e6dbff;
  background: rgba(141, 116, 255, 0.16);
  border-color: rgba(141, 116, 255, 0.24);
}

.result-badge.win {
  color: #d9fff5;
  background: rgba(76, 227, 194, 0.14);
  border-color: rgba(76, 227, 194, 0.24);
}

.tournament-table .empty-row td {
  color: var(--muted);
  text-align: center;
}

.song-card,
.dog-card,
.game-card {
  min-height: 100%;
}

.song-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.song-card.is-active {
  border-color: rgba(127, 157, 255, 0.32);
  box-shadow:
    0 20px 70px rgba(0, 0, 0, 0.38),
    0 0 0 1px rgba(127, 157, 255, 0.18);
}

.song-cover {
  display: flex;
  align-items: flex-end;
  height: 180px;
  padding: 18px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.94);
}

.song-cover span {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(10px);
}

.gradient-a {
  background: linear-gradient(135deg, #6b87ff, #42d9b6);
}

.gradient-b {
  background: linear-gradient(135deg, #ff7a7a, #ffb36b);
}

.gradient-c {
  background: linear-gradient(135deg, #8d74ff, #4db8ff);
}

.song-content,
.dog-body,
.game-card {
  display: flex;
  flex-direction: column;
}

.song-content {
  flex: 1;
  gap: 0;
  padding: 20px;
}

.song-content h3,
.dog-body h3,
.game-card h3 {
  margin: 0 0 10px;
}

.song-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  margin: 16px 0 18px;
  color: var(--muted);
  font-size: 0.9rem;
}

.song-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
  padding-top: 4px;
}

.song-actions .btn {
  flex: 1 1 150px;
}

.dog-card {
  overflow: hidden;
}

.dog-image {
  position: relative;
  height: 280px;
}

.dog-figure {
  margin: 0;
  overflow: hidden;
}

.dog-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dog-photo-label {
  position: absolute;
  right: 16px;
  bottom: 16px;
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(7, 16, 29, 0.74);
  backdrop-filter: blur(10px);
  font-size: 0.92rem;
  font-weight: 700;
}

.placeholder {
  display: flex;
  justify-content: center;
  align-items: center;
  background:
    linear-gradient(135deg, rgba(127, 157, 255, 0.22), rgba(76, 227, 194, 0.15)),
    rgba(255, 255, 255, 0.03);
  color: #dbe4f5;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.placeholder::after {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px dashed rgba(255, 255, 255, 0.18);
  border-radius: calc(var(--radius) - 6px);
}

.dog-body {
  gap: 0;
  padding: 22px;
}

.dog-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.dog-stats div {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
}

.dog-stats span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.85rem;
}

.dog-stats strong {
  font-size: 1.18rem;
}

.dogs-media-shell {
  margin-top: 22px;
  padding: 24px;
}

.dogs-media-header {
  max-width: 760px;
  margin-bottom: 20px;
}

.dogs-media-header h3 {
  margin: 0 0 10px;
  font-size: clamp(1.4rem, 2.5vw, 2rem);
}

.dogs-media-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.4fr);
  gap: 18px;
  align-items: start;
}

.dog-video-card {
  display: grid;
  gap: 14px;
  align-content: start;
}

.dog-video {
  width: 100%;
  aspect-ratio: 4 / 5;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #02060d;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.dogs-media-copy {
  display: grid;
  gap: 6px;
}

.dogs-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  content-visibility: auto;
}

.dogs-gallery-item {
  position: relative;
  margin: 0;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
}

.dogs-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.dogs-gallery-item:hover img {
  transform: scale(1.04);
}

.game-card {
  gap: 0;
  padding: 22px;
}

.game-icon {
  margin-bottom: 12px;
  font-size: 2rem;
}

.game-card .btn {
  margin-top: auto;
}

.footer {
  padding: 28px 0 46px;
  text-align: center;
}

:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.btn:focus-visible,
.menu-toggle:focus-visible,
.player-button:focus-visible,
.site-audio-player:focus-visible,
.brand:focus-visible,
.nav a:focus-visible {
  box-shadow: var(--focus-ring);
}

@media (max-width: 1100px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 56px;
  }

  .hero-panel {
    max-width: 560px;
  }

  .tournament-layout {
    grid-template-columns: 1fr;
  }

  .tournament-form {
    position: static;
  }
}

@media (max-width: 780px) {
  .song-player-shell {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-audio-player {
    width: 100%;
  }

  .song-meta {
    flex-direction: column;
    align-items: flex-start;
  }

  .dog-stats {
    grid-template-columns: 1fr;
  }

  .dogs-media-grid {
    grid-template-columns: 1fr;
  }

  .dog-video {
    aspect-ratio: 16 / 9;
  }

  .dogs-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tournament-output-head {
    flex-direction: column;
  }

  .tournament-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tournament-panel-head {
    flex-direction: column;
  }

  .tournament-panel-head p {
    max-width: none;
    text-align: left;
  }
}

@media (max-width: 700px) {
  .section-width,
  .site-header {
    width: min(1180px, calc(100% - 20px));
  }

  .site-header {
    padding: 12px 14px;
  }

  .nav {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    gap: 4px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(7, 16, 29, 0.96);
    box-shadow: var(--shadow);
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    padding: 10px 12px;
    border-radius: 12px;
  }

  .nav a::after {
    display: none;
  }

  .nav a:hover,
  .nav a:focus-visible {
    background: rgba(255, 255, 255, 0.04);
  }

  .menu-toggle {
    display: inline-flex;
  }

  .hero {
    gap: 20px;
    padding: 44px 0 28px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .feature-row {
    flex-direction: column;
  }

  .feature-card {
    min-width: 0;
  }

  .song-actions .btn {
    flex-basis: 100%;
  }

  .dogs-media-shell {
    padding: 18px;
  }

  .dogs-gallery {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .tournament-form,
  .tournament-output {
    padding: 18px;
  }

  .points-config-grid,
  .tournament-input-grid {
    grid-template-columns: 1fr;
  }

  .tournament-summary {
    grid-template-columns: 1fr 1fr;
  }

  .tournament-table {
    min-width: 680px;
  }
}

@media print {
  body {
    background: #fff;
    color: #000;
  }

  .site-header,
  .bg-glow,
  .hero,
  #songs,
  #dogs,
  #games,
  .footer,
  .tournament-form,
  .tournament-output-actions {
    display: none !important;
  }

  #tournament,
  .tournament-output,
  .tournament-table-wrap {
    width: 100%;
    background: #fff;
    border: 0;
    box-shadow: none;
  }

  .tournament-summary-card,
  .tournament-round-card,
  .tournament-table th,
  .tournament-table td {
    color: #000;
    background: #fff;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
