:root {
  --match-ink: #22172a;
  --match-paper: #fffdf5;
  --match-line: rgba(34, 23, 42, 0.18);
  --match-gold: #ffd64d;
  --match-pink: #ff6faf;
  --match-cyan: #31c7ff;
  --match-green: #67d982;
  --match-orange: #ff8b3d;
  --match-purple: #7c5cff;
  --match-shadow: 0 16px 38px rgba(34, 23, 42, 0.2);
}

* {
  box-sizing: border-box;
}

body.dm-match-page {
  margin: 0;
  color: var(--match-ink);
  background:
    repeating-linear-gradient(135deg, rgba(255, 214, 77, 0.22) 0 18px, rgba(49, 199, 255, 0.16) 18px 36px, rgba(255, 111, 175, 0.16) 36px 54px),
    linear-gradient(145deg, #fff9d9, #e8fbff 48%, #fff1f7);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
}

.match-site-header,
.match-page-main,
.match-site-footer {
  width: min(1180px, 94vw);
  margin: 0 auto;
}

.match-site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 0 10px;
}

.match-brand,
.match-nav a,
.match-button,
.match-chip-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 2px solid var(--match-ink);
  border-radius: 8px;
  text-decoration: none;
  font-weight: 950;
  line-height: 1.1;
}

.match-brand {
  padding: 10px 14px;
  color: #fff;
  background: var(--match-ink);
  box-shadow: 0 4px 0 rgba(34, 23, 42, 0.22);
}

.match-nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.match-nav a,
.match-chip-button {
  padding: 9px 12px;
  background: rgba(255, 255, 255, 0.78);
}

.match-page-main {
  padding: 8px 0 26px;
}

.match-game {
  position: relative;
  overflow: hidden;
  border: 4px solid var(--match-ink);
  border-radius: 10px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.38) 1px, transparent 1px) 0 0 / 30px 30px,
    linear-gradient(0deg, rgba(255, 255, 255, 0.34) 1px, transparent 1px) 0 0 / 30px 30px,
    linear-gradient(145deg, #fff7c7, #dffaff 48%, #ffe5ef);
  box-shadow: 0 10px 0 rgba(34, 23, 42, 0.18), var(--match-shadow);
}

.match-topbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: clamp(14px, 3vw, 22px);
  border-bottom: 3px solid rgba(34, 23, 42, 0.12);
}

.match-kicker {
  margin: 0 0 6px;
  color: #075f68;
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.match-topbar h1 {
  margin: 0;
  font-size: clamp(2rem, 6vw, 4rem);
  line-height: 0.96;
  letter-spacing: 0;
}

.match-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(78px, 1fr));
  gap: 8px;
  min-width: min(520px, 100%);
}

.match-stat {
  padding: 9px 10px;
  border: 2px solid rgba(34, 23, 42, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
}

.match-stat span {
  display: block;
  color: #5a4b61;
  font-size: 0.72rem;
  font-weight: 850;
}

.match-stat strong {
  display: block;
  margin-top: 2px;
  font-size: 1.36rem;
  line-height: 1;
}

.match-layout {
  display: grid;
  grid-template-columns: minmax(310px, 1fr) minmax(280px, 360px);
  gap: clamp(12px, 2vw, 20px);
  padding: clamp(12px, 2.5vw, 22px);
}

.match-stage,
.match-panel,
.match-intro,
.match-result {
  border: 3px solid rgba(34, 23, 42, 0.88);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 7px 0 rgba(34, 23, 42, 0.14);
}

.match-stage {
  position: relative;
  min-width: 0;
  padding: clamp(10px, 2vw, 18px);
}

.match-board-wrap {
  position: relative;
  width: min(100%, 720px);
  margin: 0 auto;
}

.match-board {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: clamp(4px, 0.85vw, 8px);
  width: 100%;
  aspect-ratio: 1;
  padding: clamp(7px, 1.2vw, 12px);
  border: 4px solid var(--match-ink);
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(34, 23, 42, 0.07) 25%, transparent 25%) 0 0 / 28px 28px,
    linear-gradient(225deg, rgba(49, 199, 255, 0.24), rgba(255, 214, 77, 0.28));
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.52), 0 16px 26px rgba(34, 23, 42, 0.18);
  touch-action: none;
}

.match-board.is-chaos {
  animation: chaosPulse 0.55s ease-in-out infinite alternate;
}

.match-tile {
  --char-color: #ffd64d;
  --look-x: var(--board-look-x, 0px);
  --look-y: var(--board-look-y, 0px);
  position: relative;
  min-width: 0;
  min-height: 0;
  border: 3px solid rgba(34, 23, 42, 0.92);
  border-radius: 12px;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.34)),
    var(--char-color);
  box-shadow: 0 5px 0 rgba(34, 23, 42, 0.18);
  cursor: grab;
  padding: 0;
  transform: translateZ(0);
}

.match-tile:focus-visible {
  outline: 4px solid #fff;
  outline-offset: 2px;
}

.match-tile img {
  width: 160%;
  height: 160%;
  max-width: none;
  object-fit: cover;
  object-position: 50% 14%;
  transform: translate(calc(-18% + var(--look-x)), calc(-20% + var(--look-y))) scale(1.06);
  transition: transform 120ms ease;
  filter: drop-shadow(0 7px 5px rgba(34, 23, 42, 0.22));
  pointer-events: none;
}

.match-tile[data-character="hamster"] img,
.match-tile[data-character="biscuit"] img {
  object-position: 50% 20%;
}

.match-tile::before,
.match-tile::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.match-tile::before {
  inset: 7%;
  border: 2px solid rgba(255, 255, 255, 0.62);
  border-radius: 9px;
}

.match-tile::after {
  inset: 0;
  background: linear-gradient(110deg, transparent 0 38%, rgba(255, 255, 255, 0.46) 45%, transparent 54% 100%);
  transform: translateX(-120%);
  opacity: 0;
}

.match-tile.is-new {
  animation: tileDrop 250ms cubic-bezier(0.22, 1.4, 0.34, 1);
}

.match-tile.is-selected {
  transform: translateY(-5px) scale(1.04);
  box-shadow: 0 9px 0 rgba(34, 23, 42, 0.2), 0 0 0 4px #fff, 0 0 0 8px var(--char-color);
  z-index: 2;
}

.match-tile.is-hint::after,
.match-tile:hover::after {
  animation: tileGleam 1.2s ease;
}

.match-tile.is-matched {
  animation: tilePop 360ms ease forwards;
}

.match-tile.is-bad-swap {
  animation: badSwap 260ms ease;
}

.match-chaos-banner,
.match-float-text {
  position: absolute;
  left: 50%;
  z-index: 6;
  transform: translateX(-50%);
  border: 3px solid var(--match-ink);
  border-radius: 8px;
  color: var(--match-ink);
  background: linear-gradient(145deg, #fff, var(--match-gold));
  box-shadow: 0 8px 0 rgba(34, 23, 42, 0.18);
  font-weight: 1000;
  text-align: center;
  pointer-events: none;
}

.match-chaos-banner {
  top: 18px;
  display: none;
  padding: 10px 16px;
  font-size: clamp(1rem, 3vw, 1.45rem);
}

.match-board.is-chaos + .match-chaos-banner {
  display: block;
  animation: bannerIn 420ms ease;
}

.match-float-text {
  top: 45%;
  padding: 10px 14px;
  opacity: 0;
  animation: floatScore 900ms ease forwards;
}

.match-side {
  display: grid;
  align-content: start;
  gap: 12px;
}

.match-panel {
  padding: 14px;
}

.match-panel h2,
.match-panel h3 {
  margin: 0;
  line-height: 1.05;
}

.match-panel h2 {
  font-size: 1.32rem;
}

.match-panel h3 {
  font-size: 1.05rem;
}

.match-panel p {
  margin: 8px 0 0;
  color: #5a4b61;
  font-weight: 750;
}

.match-objective-meter,
.match-chaos-meter,
.match-power-meter {
  overflow: hidden;
  height: 12px;
  margin-top: 10px;
  border: 2px solid rgba(34, 23, 42, 0.76);
  border-radius: 8px;
  background: rgba(34, 23, 42, 0.12);
}

.match-objective-meter span,
.match-chaos-meter span,
.match-power-meter span {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: 5px;
  background: linear-gradient(90deg, var(--match-cyan), var(--match-gold), var(--match-pink));
  transition: width 240ms ease;
}

.match-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.match-button {
  min-width: 0;
  padding: 11px 12px;
  color: var(--match-ink);
  background: linear-gradient(145deg, #fff78e, var(--match-gold) 54%, #ff9d29);
  box-shadow: 0 5px 0 rgba(34, 23, 42, 0.2);
  cursor: pointer;
  font: inherit;
}

.match-button.secondary {
  background: rgba(255, 255, 255, 0.86);
}

.match-button:disabled,
.match-chip-button:disabled {
  opacity: 0.48;
  cursor: not-allowed;
  transform: none;
}

.match-powers {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.match-power {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 9px;
  align-items: center;
  padding: 8px;
  border: 2px solid rgba(34, 23, 42, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.match-power img {
  width: 54px;
  height: 54px;
  border: 2px solid rgba(34, 23, 42, 0.7);
  border-radius: 8px;
  object-fit: cover;
  object-position: 50% 16%;
  background: var(--char-color, #fff);
}

.match-power strong,
.match-power small {
  display: block;
}

.match-power strong {
  font-size: 0.92rem;
  line-height: 1.08;
}

.match-power small {
  color: #65566e;
  font-weight: 800;
}

.match-power .match-chip-button {
  width: 100%;
  min-height: 34px;
  margin-top: 7px;
  padding: 6px 8px;
  font-size: 0.84rem;
}

.match-boss {
  display: none;
}

.match-boss.is-visible {
  display: block;
}

.match-boss-card {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 10px;
  align-items: center;
  margin-top: 10px;
}

.match-boss-card img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  filter: drop-shadow(0 8px 7px rgba(34, 23, 42, 0.24));
}

.match-rewards {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 7px;
  margin-top: 10px;
}

.match-reward-token {
  position: relative;
  min-width: 0;
  aspect-ratio: 1;
  border: 2px solid rgba(34, 23, 42, 0.18);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.8);
}

.match-reward-token img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0.36;
  filter: grayscale(0.45);
}

.match-reward-token.is-unlocked img {
  opacity: 1;
  filter: none;
}

.match-reward-token span {
  position: absolute;
  right: 3px;
  bottom: 3px;
  min-width: 24px;
  padding: 2px 4px;
  border-radius: 6px;
  color: #fff;
  background: var(--match-ink);
  font-size: 0.72rem;
  font-weight: 950;
  text-align: center;
}

.match-intro,
.match-result {
  position: absolute;
  inset: clamp(10px, 2vw, 20px);
  z-index: 10;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(240px, 0.9fr);
  gap: clamp(12px, 2vw, 20px);
  align-items: center;
  padding: clamp(14px, 3vw, 28px);
  background:
    linear-gradient(90deg, rgba(34, 23, 42, 0.08) 1px, transparent 1px) 0 0 / 34px 34px,
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(255, 242, 197, 0.94), rgba(224, 250, 255, 0.96));
}

.match-intro.is-hidden,
.match-result.is-hidden {
  display: none;
}

.match-intro h2,
.match-result h2 {
  margin: 0;
  font-size: clamp(2rem, 6vw, 4.4rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.match-intro p,
.match-result p {
  margin: 12px 0 0;
  color: #51445a;
  font-size: clamp(1rem, 2vw, 1.18rem);
  font-weight: 800;
}

.match-intro-actions,
.match-result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 16px;
}

.match-intro-visual {
  position: relative;
  min-height: 360px;
}

.match-preview-board {
  position: absolute;
  inset: 30px 0 auto 18px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  width: min(78%, 330px);
  padding: 12px;
  border: 4px solid var(--match-ink);
  border-radius: 10px;
  background: #fff;
  transform: rotate(-4deg);
  box-shadow: 0 12px 0 rgba(34, 23, 42, 0.12), var(--match-shadow);
}

.match-preview-board img {
  width: 100%;
  aspect-ratio: 1;
  border: 2px solid var(--match-ink);
  border-radius: 10px;
  object-fit: cover;
  object-position: 50% 14%;
  background: var(--char-color);
}

.match-intro-prize {
  position: absolute;
  right: 0;
  bottom: 4px;
  width: min(56%, 250px);
  padding: 10px;
  border: 4px solid #fff;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--match-shadow);
}

.match-intro-prize img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 14px 13px rgba(34, 23, 42, 0.2));
}

.match-floating-head {
  position: absolute;
  width: clamp(74px, 14vw, 116px);
  aspect-ratio: 1;
  border: 3px solid var(--match-ink);
  border-radius: 12px;
  overflow: hidden;
  background: var(--char-color);
  box-shadow: 0 7px 0 rgba(34, 23, 42, 0.16);
  animation: headFloat 2.8s ease-in-out infinite;
}

.match-floating-head img {
  width: 155%;
  height: 155%;
  max-width: none;
  object-fit: cover;
  object-position: 50% 15%;
  transform: translate(-17%, -18%);
}

.match-floating-head:nth-child(1) { left: 2%; top: 6%; animation-delay: 0s; }
.match-floating-head:nth-child(2) { right: 8%; top: 0; animation-delay: -0.3s; }
.match-floating-head:nth-child(3) { left: 0; bottom: 18%; animation-delay: -0.65s; }
.match-floating-head:nth-child(4) { right: 38%; bottom: 0; animation-delay: -1s; }
.match-floating-head:nth-child(5) { right: 0; bottom: 28%; animation-delay: -1.35s; }

.match-result {
  grid-template-columns: minmax(0, 1fr) 240px;
}

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

.match-stars {
  color: #ff9d29;
  font-size: clamp(2rem, 8vw, 4rem);
  line-height: 1;
  text-shadow: 0 3px 0 rgba(34, 23, 42, 0.16);
}

.match-result-prize img {
  width: 100%;
  max-height: 280px;
  object-fit: contain;
  filter: drop-shadow(0 16px 15px rgba(34, 23, 42, 0.22));
}

.match-editorial {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.match-editorial article {
  padding: 16px;
  border: 2px solid rgba(34, 23, 42, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
}

.match-editorial h2 {
  margin: 0;
  font-size: 1.32rem;
}

.match-editorial p {
  margin: 8px 0 0;
  color: #51445a;
  font-weight: 750;
}

.match-site-footer {
  padding: 18px 0 30px;
  color: #51445a;
  font-weight: 750;
}

@keyframes tileDrop {
  0% { transform: translateY(-24%) scale(0.92); opacity: 0; }
  70% { transform: translateY(5%) scale(1.05); opacity: 1; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}

@keyframes tilePop {
  0% { transform: scale(1); opacity: 1; }
  45% { transform: scale(1.18) rotate(-4deg); opacity: 1; }
  100% { transform: scale(0.2) rotate(8deg); opacity: 0; }
}

@keyframes badSwap {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

@keyframes tileGleam {
  0% { opacity: 0; transform: translateX(-120%); }
  30% { opacity: 0.85; }
  100% { opacity: 0; transform: translateX(120%); }
}

@keyframes chaosPulse {
  0% { filter: saturate(1); }
  100% { filter: saturate(1.42) contrast(1.07); }
}

@keyframes bannerIn {
  0% { opacity: 0; transform: translate(-50%, -12px) scale(0.9); }
  100% { opacity: 1; transform: translate(-50%, 0) scale(1); }
}

@keyframes floatScore {
  0% { opacity: 0; transform: translate(-50%, 18px) scale(0.92); }
  18% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, -54px) scale(1.05); }
}

@keyframes headFloat {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-12px) rotate(3deg); }
}

@media (max-width: 920px) {
  .match-topbar,
  .match-layout,
  .match-intro,
  .match-result,
  .match-editorial {
    grid-template-columns: 1fr;
  }

  .match-stats {
    min-width: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .match-result {
    align-items: stretch;
  }

  .match-result-prize {
    max-width: 260px;
  }
}

@media (max-width: 620px) {
  .match-site-header,
  .match-page-main,
  .match-site-footer {
    width: calc(100vw - 8px);
  }

  .match-site-header {
    align-items: stretch;
    flex-direction: column;
  }

  .match-brand,
  .match-nav,
  .match-nav a {
    width: 100%;
  }

  .match-nav {
    justify-content: stretch;
  }

  .match-game {
    border-width: 3px;
  }

  .match-layout {
    padding: 6px;
  }

  .match-stage,
  .match-panel {
    padding: 6px;
  }

  .match-board {
    gap: 2px;
    padding: 4px;
    border-width: 3px;
  }

  .match-tile {
    border-width: 2px;
    border-radius: 9px;
  }

  .match-tile img {
    width: 174%;
    height: 174%;
    transform: translate(calc(-21% + var(--look-x)), calc(-23% + var(--look-y))) scale(1.08);
  }

  .match-actions {
    grid-template-columns: 1fr;
  }

  .match-intro,
  .match-result {
    position: fixed;
    inset: 10px;
    overflow: auto;
    max-height: calc(100vh - 20px);
    padding: 14px;
  }

  .match-intro-visual {
    min-height: 270px;
  }

  .match-preview-board {
    width: 74%;
    left: 0;
  }

  .match-intro-prize {
    width: 52%;
  }

  .match-rewards {
    grid-template-columns: repeat(5, 1fr);
  }
}

/* Visual boost: make the real board feel like the advert. */
.match-game {
  background:
    radial-gradient(circle at 18% 10%, rgba(255, 214, 77, 0.5), transparent 30%),
    radial-gradient(circle at 82% 14%, rgba(49, 199, 255, 0.42), transparent 30%),
    radial-gradient(circle at 50% 88%, rgba(255, 111, 175, 0.45), transparent 36%),
    linear-gradient(145deg, #fff7c7, #dffaff 45%, #ffe5ef);
}

.match-board {
  gap: clamp(5px, 0.9vw, 10px);
  padding: clamp(9px, 1.4vw, 16px);
  border-width: 5px;
  background:
    radial-gradient(circle at 18% 16%, rgba(255, 255, 255, 0.68), transparent 26%),
    radial-gradient(circle at 78% 76%, rgba(255, 111, 175, 0.28), transparent 34%),
    linear-gradient(145deg, rgba(255, 214, 77, 0.5), rgba(49, 199, 255, 0.42) 52%, rgba(124, 92, 255, 0.36));
  box-shadow:
    inset 0 0 0 3px rgba(255, 255, 255, 0.62),
    inset 0 0 42px rgba(255, 255, 255, 0.28),
    0 22px 34px rgba(34, 23, 42, 0.24);
}

.match-tile {
  border-width: 4px;
  border-radius: 16px;
  box-shadow:
    0 7px 0 rgba(34, 23, 42, 0.2),
    0 14px 20px rgba(34, 23, 42, 0.16);
  transition: transform 130ms ease, filter 130ms ease, box-shadow 130ms ease;
}

.match-tile:hover,
.match-tile.is-selected {
  transform: translateY(-3px) scale(1.04);
  filter: saturate(1.12);
  box-shadow:
    0 9px 0 rgba(34, 23, 42, 0.2),
    0 18px 26px rgba(34, 23, 42, 0.22),
    0 0 0 5px rgba(255, 255, 255, 0.45);
}

.match-tile img {
  width: 188%;
  height: 188%;
  transform: translate(calc(-23% + var(--look-x)), calc(-25% + var(--look-y))) scale(1.14);
  filter: drop-shadow(0 9px 7px rgba(34, 23, 42, 0.25)) saturate(1.08);
}

.match-chaos-banner {
  border-width: 4px;
  background:
    linear-gradient(90deg, #ffd64d, #ff6faf 42%, #31c7ff);
  box-shadow: 0 12px 20px rgba(34, 23, 42, 0.22);
}

/* Premium alignment with the current Dimension Marta home. */
:root {
  --match-home-ink: #0b0710;
  --match-home-green: #9cff19;
  --match-home-purple: #8b55ff;
  --match-home-line: rgba(18, 11, 23, 0.12);
}

body.dm-match-page {
  color: var(--match-home-ink);
  background:
    radial-gradient(circle at 12% 4%, rgba(156, 255, 25, 0.18), transparent 24rem),
    radial-gradient(circle at 88% 0%, rgba(139, 85, 255, 0.13), transparent 26rem),
    linear-gradient(180deg, #ffffff 0%, #fff9ed 58%, #fff3dc 100%);
}

.match-site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 11px max(18px, calc((100vw - 1180px) / 2));
  background: rgba(8, 7, 11, 0.92);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 12px 34px rgba(8, 7, 11, 0.18);
  backdrop-filter: blur(18px);
}

.match-brand {
  gap: 9px;
  padding: 0;
  color: #ffffff;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.match-brand::before {
  content: "";
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: url("/assets/img/logo-160.png") center / contain no-repeat;
  filter:
    drop-shadow(0 0 14px rgba(255, 184, 44, 0.25))
    drop-shadow(0 10px 18px rgba(0, 0, 0, 0.28));
}

.match-nav a {
  color: rgba(255, 255, 255, 0.86);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.match-nav a:hover,
.match-nav a:focus-visible {
  color: var(--match-home-ink);
  background: var(--match-home-green);
  outline: none;
}

.match-page-main,
.match-site-footer {
  width: min(1180px, calc(100vw - 40px));
}

.match-game {
  margin-top: 18px;
  border: 1px solid var(--match-home-line);
  border-radius: 22px;
  box-shadow: 0 22px 54px rgba(10, 7, 16, 0.18);
}

.match-kicker {
  color: var(--match-home-green);
}

.match-button:not(.secondary),
.match-button.primary {
  color: var(--match-home-ink);
  background: linear-gradient(180deg, #b8ff3c 0%, var(--match-home-green) 58%, #73df00 100%);
  border: 0;
  box-shadow: 0 8px 0 rgba(156, 255, 25, 0.2), 0 16px 28px rgba(156, 255, 25, 0.18);
}

.match-button.secondary,
.match-chip-button {
  color: #ffffff;
  background: linear-gradient(145deg, rgba(139, 85, 255, 0.96), rgba(96, 52, 215, 0.96));
  border: 0;
}

.match-stage,
.match-panel,
.match-intro,
.match-result {
  border: 1px solid var(--match-home-line);
  border-radius: 18px;
  box-shadow: 0 14px 34px rgba(18, 11, 23, 0.1);
}

.match-site-footer {
  margin-top: 20px;
  padding: 24px;
  border-radius: 22px 22px 0 0;
  color: rgba(255, 255, 255, 0.78);
  background: #0b0710;
}

.match-site-footer a {
  color: var(--match-home-green);
}

@media (max-width: 620px) {
  .match-site-header {
    padding-inline: 12px;
  }

  .match-brand::before {
    width: 34px;
    height: 34px;
  }

  .match-page-main,
  .match-site-footer {
    width: min(100vw - 22px, 560px);
  }
}
