:root {
  color-scheme: dark;
  --panel-bg: #090b0f;
  --panel-surface: #141820;
  --panel-line: rgba(255, 255, 255, 0.12);
  --text: #f6f8fb;
  --muted: #9bacba;
  --gold: #c7ff22;
  --green: #13b981;
  --red: #e73f4f;
  --blue: #4d8df7;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Poppins", Arial, sans-serif;
}

button,
input {
  font: inherit;
}

.overlay-body {
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background: transparent;
}

.overlay-shell {
  position: relative;
  width: 100vw;
  height: 100vh;
}

.scorebug {
  position: absolute;
  top: calc(var(--overlay-y, 5) * 1vh);
  left: calc(var(--overlay-x, 50) * 1vw);
  display: grid;
  grid-template-columns: 112px 184px 58px 20px 58px 184px;
  min-height: 54px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 14px;
  background: rgba(4, 8, 14, 0.88);
  transform: translateX(-50%) scale(var(--overlay-scale, 1));
  transform-origin: top center;
  filter: drop-shadow(0 16px 18px rgba(0, 0, 0, 0.62));
}

.team,
.clock-box,
.score-cell,
.score-separator {
  border: 0;
}

.team {
  position: relative;
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  padding: 8px 13px;
  color: var(--text);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.13), transparent 28%),
    linear-gradient(90deg, var(--team-color), #061832 58%);
}

.team-stack {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.team-stack-away {
  justify-items: end;
}

.team::after {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 32px;
  background: rgba(255, 255, 255, 0.11);
  content: "";
  transform: skewX(-18deg);
}

.team-home {
  justify-content: flex-start;
  border-left: 0;
}

.team-home::after {
  right: -18px;
}

.team-away {
  justify-content: flex-end;
  border-right: 0;
  background:
    linear-gradient(270deg, rgba(255, 255, 255, 0.13), transparent 28%),
    linear-gradient(270deg, var(--team-color), #061832 58%);
}

.team-away::after {
  left: -18px;
}

.team-code {
  min-width: 0;
  overflow: hidden;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.scorebug-cards {
  display: flex;
  gap: 5px;
  min-height: 18px;
}

.team-stack-away .scorebug-cards {
  justify-content: flex-end;
}

.scorebug-card {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 18px;
  width: 14px;
  padding: 0;
  border-radius: 3px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.42);
  font-size: 8px;
  font-weight: 800;
  line-height: 1;
}

.scorebug-card span {
  width: 10px;
  height: 15px;
  border-radius: 2px;
  background: #ffd735;
}

.scorebug-card.white span {
  background: #f6f7f1;
}

.scorebug-card.yellow span {
  background: #ffd735;
}

.scorebug-card.red span {
  background: #e72d3f;
}

.logo-slot {
  display: grid;
  flex: 0 0 auto;
  width: 31px;
  height: 31px;
  overflow: hidden;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
}

.logo-slot img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.clock-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #07111f;
  background: linear-gradient(180deg, #ffffff, #e8edf3);
}

.phase-label {
  width: 100%;
  overflow: hidden;
  color: rgba(7, 17, 31, 0.62);
  font-size: 8px;
  font-weight: 800;
  text-align: center;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.main-clock {
  font-size: 25px;
  font-weight: 800;
  line-height: 1;
}

.score-cell {
  display: grid;
  place-items: center;
  color: #f8fbff;
  background: #07111f;
  font-size: 31px;
  font-weight: 800;
  line-height: 1;
}

.score-separator {
  position: relative;
  display: grid;
  place-items: center;
  background: #07111f;
}

.score-separator::before {
  width: 8px;
  height: 34px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffffff, var(--layout-color, var(--gold)));
  content: "";
  transform: skewX(-14deg);
}

.cards-rail {
  position: absolute;
  top: calc(var(--overlay-y, 16) * 1vh);
  left: calc(var(--overlay-x, 3) * 1vw);
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 250px;
  transform: scale(var(--overlay-scale, 1));
  transform-origin: top left;
}

.cards-home {
  align-items: flex-end;
}

.cards-away {
  left: calc(var(--overlay-x, 82) * 1vw);
  align-items: flex-start;
}

.card-chip {
  display: grid;
  grid-template-columns: 22px 1fr auto;
  align-items: center;
  gap: 10px;
  min-width: 176px;
  max-width: 250px;
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 4px;
  color: var(--text);
  background: #07111f;
  box-shadow: 0 12px 22px rgba(0, 0, 0, 0.3);
  animation: chipIn 260ms ease-out both;
}

.card-chip strong {
  overflow: hidden;
  font-size: 13px;
  font-weight: 700;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.card-chip span:last-child {
  color: var(--layout-color, var(--gold));
  font-size: 17px;
  font-weight: 800;
}

.card-mark,
.mini-card,
.event-card-mark {
  display: inline-block;
  width: 18px;
  height: 25px;
  border-radius: 3px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.18);
}

.card-mark.white,
.mini-card.white,
.event-card-mark.white {
  background: #f6f7f1;
}

.card-mark.yellow,
.mini-card.yellow,
.event-card-mark.yellow {
  background: #ffd735;
}

.card-mark.red,
.mini-card.red,
.event-card-mark.red {
  background: #e72d3f;
}

.event-flash {
  position: absolute;
  top: calc(var(--overlay-y, 22) * 1vh);
  left: 0;
  isolation: isolate;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  gap: 20px;
  width: min(720px, calc(100vw - 80px));
  min-height: 86px;
  padding: 18px 30px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 12px;
  color: var(--text);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.11), transparent 22%),
    linear-gradient(90deg, rgba(6, 12, 20, 0.98), rgba(22, 35, 50, 0.98));
  box-shadow: 0 30px 50px rgba(0, 0, 0, 0.42);
  font-size: 34px;
  font-weight: 800;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  text-transform: uppercase;
  transform: translateX(-110%);
  --event-color: #ffd735;
  --event-rgb: 255, 215, 53;
}

.score-burst,
.partner-flash {
  position: absolute;
  top: calc(var(--overlay-y, 50) * 1vh);
  left: calc(var(--overlay-x, 50) * 1vw);
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(var(--overlay-scale, 1));
  transform-origin: center;
}

.score-burst {
  --burst-color: #c7ff22;
  --burst-rgb: 199, 255, 34;
}

.score-burst.show {
  animation: fullScreenHold 4.2s ease both;
}

.score-burst-bg {
  position: fixed;
  inset: -8%;
  background:
    linear-gradient(110deg, transparent 0 23%, rgba(255, 255, 255, 0.16) 31%, transparent 43%),
    radial-gradient(circle at center, rgba(255, 255, 255, 0.16), transparent 28%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.88), rgba(var(--burst-rgb), 0.42), rgba(0, 0, 0, 0.88));
  transform: translateX(-100%) skewX(-10deg);
}

.score-burst.show .score-burst-bg {
  animation: burstSweep 4.2s cubic-bezier(0.16, 0.8, 0.2, 1) both;
}

.score-burst-inner {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 10px;
  width: min(900px, calc(100vw - 120px));
  padding: 52px 58px;
  border-top: 3px solid var(--burst-color);
  border-bottom: 3px solid var(--burst-color);
  color: #ffffff;
  text-align: center;
  text-transform: uppercase;
  transform: translateY(24px) scale(0.94);
}

.score-burst.show .score-burst-inner {
  animation: burstTextIn 4.2s ease both;
}

.score-burst-kind {
  color: var(--burst-color);
  font-size: clamp(28px, 4.5vw, 70px);
  font-weight: 800;
  line-height: 0.9;
}

.score-burst-inner strong {
  font-size: clamp(42px, 8vw, 118px);
  font-weight: 800;
  line-height: 0.9;
  text-shadow: 0 12px 36px rgba(0, 0, 0, 0.55);
}

.score-burst-points {
  color: var(--burst-color);
  font-size: clamp(28px, 5vw, 76px);
  font-weight: 800;
}

.score-burst-total {
  padding: 7px 24px;
  border-radius: 999px;
  color: #07111f;
  background: #ffffff;
  font-size: clamp(18px, 2.6vw, 36px);
  font-weight: 800;
}

.partner-flash.show {
  animation: partnerFull 5s ease both;
}

.partner-panel {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  grid-template-areas:
    "logo kicker"
    "logo name"
    "logo tagline";
  align-items: center;
  column-gap: 24px;
  width: min(760px, calc(100vw - 96px));
  min-height: 170px;
  padding: 28px 36px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-left: 8px solid var(--partner-color, #c7ff22);
  border-radius: 18px;
  color: #ffffff;
  background:
    linear-gradient(100deg, rgba(255, 255, 255, 0.12), transparent 34%),
    rgba(5, 10, 18, 0.95);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.48);
  transform: translateY(26px);
}

.partner-flash.show .partner-panel {
  animation: partnerPanelIn 5s ease both;
}

.partner-kicker {
  grid-area: kicker;
  min-width: 0;
  color: var(--partner-color, #c7ff22);
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
}

.partner-logo {
  display: grid;
  grid-area: logo;
  width: 116px;
  height: 116px;
  place-items: center;
  overflow: hidden;
  border-radius: 16px;
  background: #ffffff;
}

.partner-logo:empty::before {
  color: #07111f;
  font-size: 40px;
  font-weight: 800;
  content: "P";
}

.partner-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.partner-panel strong {
  grid-area: name;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  font-size: 58px;
  font-weight: 800;
  line-height: 0.94;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.partner-panel span:last-child {
  grid-area: tagline;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.72);
  font-size: 22px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.event-flash.show {
  animation: eventPanelTravel 4.4s cubic-bezier(0.2, 0.78, 0.18, 1) both;
}

.event-flash::before,
.event-flash::after {
  position: absolute;
  inset: 0;
  z-index: -2;
  content: "";
}

.event-flash::before {
  background:
    linear-gradient(90deg, rgba(var(--event-rgb), 0.36), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), transparent 55%);
}

.event-flash::after {
  z-index: -1;
  background: linear-gradient(90deg, transparent 0, rgba(255, 255, 255, 0.14) 46%, transparent 72%);
  opacity: 0;
}

.event-flash.show::after {
  animation: eventPanelShine 4.4s ease both;
}

.event-card-mark {
  position: relative;
  z-index: 2;
  width: 34px;
  height: 48px;
  transform: rotate(-4deg);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.3), inset 0 0 0 1px rgba(0, 0, 0, 0.18);
}

.event-trail {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  width: 190px;
  background:
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.95) 42%, var(--event-color) 58%, transparent),
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.32), transparent);
  filter: blur(0.2px);
  opacity: 0;
  transform: translateX(-210px) skewX(-16deg);
}

.event-flash.show .event-trail {
  animation: eventTrailSweep 4.4s cubic-bezier(0.18, 0.74, 0.18, 1) both;
}

.event-text-wrap {
  position: relative;
  z-index: 2;
  display: block;
  min-width: 0;
  overflow: hidden;
}

.event-text {
  display: block;
  overflow: hidden;
  letter-spacing: 0;
  line-height: 1.08;
  text-overflow: ellipsis;
  text-shadow: 0 4px 16px rgba(0, 0, 0, 0.52);
  white-space: nowrap;
  clip-path: inset(0 100% 0 0);
}

.event-flash.show .event-text {
  animation: eventTextReveal 4.4s cubic-bezier(0.18, 0.74, 0.18, 1) both;
}

.panel-body {
  min-height: 100vh;
  color: var(--text);
  background: #080a0e;
}

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

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.eyebrow {
  margin: 0 0 4px;
  color: #c7ff22;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
}

h1 {
  font-size: 34px;
  line-height: 1.05;
}

h2 {
  font-size: 20px;
}

.ghost-link,
button {
  min-height: 43px;
  border: 1px solid var(--panel-line);
  border-radius: 4px;
  color: var(--text);
  background: #1a202a;
  cursor: pointer;
  font-weight: 700;
  text-decoration: none;
  transition: transform 120ms ease, background 120ms ease, border-color 120ms ease;
}

.ghost-link {
  display: inline-flex;
  align-items: center;
  padding: 0 16px;
}

button {
  padding: 0 14px;
}

button:hover,
.ghost-link:hover {
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
}

button.primary {
  border-color: rgba(199, 255, 34, 0.58);
  color: #081016;
  background: #c7ff22;
}

button.danger {
  border-color: rgba(231, 63, 79, 0.6);
  background: rgba(231, 63, 79, 0.18);
}

.control-grid,
.card-launchers {
  display: grid;
  grid-template-columns: repeat(3, minmax(280px, 1fr));
  gap: 18px;
}

.card-launchers {
  grid-template-columns: repeat(2, minmax(280px, 1fr));
}

.panel-card,
.api-help,
.layout-panel {
  border: 1px solid var(--panel-line);
  border-radius: 6px;
  background: #10141b;
  box-shadow: none;
}

.panel-card {
  padding: 20px;
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.section-title span {
  font-size: 17px;
  font-weight: 800;
}

.section-title strong {
  color: var(--gold);
  font-size: 13px;
  text-transform: uppercase;
}

.panel-clock {
  margin: 6px 0 18px;
  color: var(--gold);
  font-size: clamp(54px, 9vw, 92px);
  font-weight: 800;
  line-height: 0.95;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.set-time-form {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 10px;
  align-items: end;
  margin-top: 16px;
}

label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

input {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--panel-line);
  border-radius: 4px;
  padding: 0 11px;
  color: var(--text);
  background: #080b10;
}

input[type="color"] {
  padding: 4px;
}

fieldset {
  display: grid;
  gap: 10px;
  min-width: 0;
  margin: 0;
  border: 1px solid var(--panel-line);
  border-radius: 4px;
  padding: 14px;
}

legend {
  padding: 0 6px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
}

.team-edit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.cards-panel {
  margin-top: 18px;
}

.score-control-grid {
  display: grid;
  gap: 12px;
}

.score-control {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--panel-line);
  border-radius: 4px;
  background: #0a0d12;
}

.score-control > span {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.score-control > div {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  gap: 8px;
}

.score-control strong {
  color: #c7ff22;
  font-size: 42px;
  line-height: 1;
  text-align: center;
}

.manual-score-form,
.sound-form,
.partner-form {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.manual-score-form {
  grid-template-columns: 1fr 1fr auto;
  align-items: end;
}

.score-actions {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.score-actions > div {
  display: grid;
  grid-template-columns: minmax(90px, 1fr) repeat(4, auto);
  gap: 8px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--panel-line);
  border-radius: 6px;
  background: #0a0d12;
}

.score-actions strong {
  overflow: hidden;
  color: #ffffff;
  font-size: 13px;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.score-actions button {
  min-height: 34px;
  padding: 0 9px;
  font-size: 12px;
}

.sound-form {
  padding-top: 12px;
  border-top: 1px solid var(--panel-line);
}

.mini-title {
  margin-bottom: 0;
}

.partners-panel {
  margin-top: 18px;
  padding: 20px;
  border: 1px solid var(--panel-line);
  border-radius: 6px;
  background: #10141b;
}

.partners-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.62fr) minmax(420px, 1fr);
  gap: 18px;
}

.partners-list-wrap {
  display: grid;
  align-content: start;
  gap: 14px;
}

.partners-list {
  display: grid;
  gap: 10px;
}

.partner-row {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--panel-line);
  border-radius: 6px;
  background: #0a0d12;
}

.partner-color-dot {
  width: 14px;
  height: 42px;
  border-radius: 999px;
  background: var(--partner-color);
}

.partner-row div {
  display: grid;
  min-width: 0;
}

.partner-row strong,
.partner-row span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.partner-row span {
  color: var(--muted);
  font-size: 13px;
}

.launcher {
  display: grid;
  gap: 15px;
}

.card-buttons button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.mini-card {
  width: 14px;
  height: 20px;
}

.active-card-list {
  display: grid;
  gap: 10px;
  min-height: 52px;
}

.panel-card-row {
  display: grid;
  grid-template-columns: 22px 1fr auto auto auto;
  align-items: center;
  gap: 9px;
  padding: 10px;
  border: 1px solid var(--panel-line);
  border-radius: 7px;
  background: rgba(0, 0, 0, 0.18);
}

.panel-card-row strong {
  min-width: 56px;
  color: var(--gold);
  font-size: 18px;
}

.panel-card-row button {
  min-height: 34px;
  padding: 0 10px;
  font-size: 12px;
}

.api-help {
  display: grid;
  gap: 9px;
  margin-top: 18px;
  padding: 20px;
}

.layout-panel {
  margin-top: 18px;
  padding: 20px;
}

.layout-grid {
  display: grid;
  grid-template-columns: minmax(440px, 1fr) minmax(320px, 0.72fr);
  gap: 18px;
}

.layout-stage {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent),
    #020305;
}

.stage-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 10% 10%;
}

.layout-handle {
  position: absolute;
  min-height: 30px;
  padding: 0 10px;
  border-color: var(--handle-color, rgba(199, 255, 34, 0.64));
  color: #07111f;
  background: var(--handle-color, #c7ff22);
  font-size: 12px;
  transform: translate(-50%, -50%) scale(var(--handle-scale, 1));
  touch-action: none;
  user-select: none;
}

.layout-handle:hover {
  border-color: var(--handle-color, rgba(199, 255, 34, 0.64));
  background: var(--handle-color, #c7ff22);
  transform: translate(-50%, -50%) scale(var(--handle-scale, 1));
}

.layout-handle.dragging {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
  transform: translate(-50%, -50%) scale(var(--handle-scale, 1));
}

.cards-home-handle,
.cards-away-handle {
  color: #f6f8fb;
}

.event-handle {
  color: #ffffff;
}

.score-burst-handle {
  color: #07111f;
}

.partner-handle {
  color: #07111f;
}

.layout-controls {
  display: grid;
  gap: 12px;
}

.layout-control {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--panel-line);
  border-radius: 4px;
  background: #0a0d12;
}

.layout-control > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
}

.layout-control span {
  color: #c7ff22;
  font-weight: 800;
}

input[type="range"] {
  min-height: auto;
  padding: 0;
  accent-color: #c7ff22;
}

.api-help code {
  display: block;
  overflow-x: auto;
  border: 1px solid var(--panel-line);
  border-radius: 7px;
  padding: 10px 12px;
  color: #c7f8df;
  background: rgba(0, 0, 0, 0.24);
}

@keyframes chipIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fullScreenHold {
  0%,
  100% {
    opacity: 0;
  }
  12%,
  78% {
    opacity: 1;
  }
}

@keyframes burstSweep {
  0% {
    transform: translateX(-100%) skewX(-10deg);
  }
  18%,
  76% {
    transform: translateX(0) skewX(-10deg);
  }
  100% {
    transform: translateX(100%) skewX(-10deg);
  }
}

@keyframes burstTextIn {
  0% {
    opacity: 0;
    transform: translateY(24px) scale(0.94);
  }
  18%,
  76% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateY(-18px) scale(1.02);
  }
}

@keyframes partnerFull {
  0%,
  100% {
    opacity: 0;
  }
  12%,
  82% {
    opacity: 1;
  }
}

@keyframes partnerPanelIn {
  0% {
    opacity: 0;
    transform: translateX(-70px);
  }
  14%,
  82% {
    opacity: 1;
    transform: translateX(0);
  }
  100% {
    opacity: 0;
    transform: translateX(70px);
  }
}

@keyframes eventPanelTravel {
  0% {
    opacity: 0;
    transform: translateX(-110%) scale(var(--overlay-scale, 1));
  }
  14% {
    opacity: 1;
    transform: translateX(calc(var(--overlay-x, 50) * 1vw - 50%)) scale(var(--overlay-scale, 1));
  }
  74% {
    opacity: 1;
    transform: translateX(calc(var(--overlay-x, 50) * 1vw - 50%)) scale(var(--overlay-scale, 1));
  }
  100% {
    opacity: 0;
    transform: translateX(calc(100vw + 44px)) scale(var(--overlay-scale, 1));
  }
}

@keyframes eventTrailSweep {
  0%,
  15% {
    opacity: 0;
    transform: translateX(-210px) skewX(-16deg);
  }
  20% {
    opacity: 1;
  }
  54% {
    opacity: 1;
    transform: translateX(720px) skewX(-16deg);
  }
  60%,
  100% {
    opacity: 0;
    transform: translateX(790px) skewX(-16deg);
  }
}

@keyframes eventTextReveal {
  0%,
  17% {
    clip-path: inset(0 100% 0 0);
  }
  54%,
  100% {
    clip-path: inset(0 0 0 0);
  }
}

@keyframes eventPanelShine {
  0%,
  20% {
    opacity: 0;
    transform: translateX(-65%);
  }
  42% {
    opacity: 1;
  }
  58%,
  100% {
    opacity: 0;
    transform: translateX(65%);
  }
}

@media (max-width: 760px) {
  .panel-header,
  .control-grid,
  .card-launchers,
  .team-edit-grid,
  .layout-grid,
  .partners-grid,
  .manual-score-form,
  .score-actions > div,
  .set-time-form {
    grid-template-columns: 1fr;
  }

  .panel-header {
    display: grid;
  }

  h1 {
    font-size: 32px;
  }
}
