@font-face {
  font-family: "Bebas Neue";
  src: url("../fonts/BebasNeue-Regular.otf") format("opentype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #1c1c1c;
  --ink-2: #2a2a2a;
  --turf: #5cb14a;
  --turf-2: #3e9238;
  --turf-check: repeating-conic-gradient(#5cb14a 0deg 90deg, #3e9238 90deg 180deg);
  --seat-check: repeating-conic-gradient(#245c32 0deg 90deg, #173d22 90deg 180deg);
  --grass-ring: #6ee07a;
  --lime: #ee7702;
  --lime-dim: rgba(238, 119, 2, 0.16);
  --cream: #ffffff;
  --mute: #9a9a9a;
  --coral: #ee7702;
  --line: rgba(255, 255, 255, 0.12);
  --display: "Bebas Neue", Impact, sans-serif;
  --sans: "Manrope", system-ui, sans-serif;
  --top: 44px;
  --dock: 150px;
  --r: 18px;
}

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

html,
body {
  margin: 0;
  min-height: 100%;
  background: #121212;
  color: var(--cream);
  font-family: var(--sans);
  overflow-x: hidden;
}

body {
  min-height: 100dvh;
}

html.is-embed,
html.is-embed body {
  height: 100%;
  min-height: 100%;
  overflow: hidden;
  background: #121212;
}

html.is-embed #app {
  width: 100%;
  max-width: 100%;
  height: 100%;
  min-height: 100dvh;
  min-height: 100%;
  border-radius: 0;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
  border: 0;
  background: none;
}

#app {
  position: relative;
  width: min(500px, 100%);
  max-width: 100%;
  min-width: 0;
  height: 100dvh;
  margin: 0 auto;
  overflow: hidden;
  display: grid;
  grid-template-rows: var(--top) 1fr;
  background:
    radial-gradient(120% 60% at 50% -10%, rgba(238, 119, 2, 0.18), transparent 52%),
    radial-gradient(90% 50% at 50% 110%, rgba(238, 119, 2, 0.08), transparent 55%),
    linear-gradient(180deg, #2a2a2a, #1c1c1c 42%, #161616);
}

.top {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0 0.6rem;
  border-bottom: 1px solid var(--line);
  background: rgba(28, 28, 28, 0.92);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 20;
  min-width: 0;
}

.brand-mark {
  width: 32px;
  height: 32px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
  filter: drop-shadow(0 0 8px rgba(238, 119, 2, 0.4));
  animation: brand-pulse 3.4s ease-in-out infinite;
}

.brand-word {
  height: 20px;
  width: auto;
  max-width: min(128px, 40%);
  object-fit: contain;
  object-position: left center;
  display: block;
  flex-shrink: 1;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  min-width: 0;
  flex: 1;
  overflow: hidden;
}

.page-head {
  font-family: var(--display);
  font-weight: 400;
  font-size: 2.15rem;
  letter-spacing: 0.05em;
  line-height: 1;
  margin: 0 0 0.85rem;
  color: var(--cream);
}

.login-card {
  width: min(100%, 420px);
  margin: 1.2rem auto 0;
  text-align: center;
  padding: 0.4rem 0.2rem 1.2rem;
}

#scr-login .kicker {
  font-size: 1.05rem;
  letter-spacing: 0.2em;
  margin-bottom: 0.65rem;
}

.login-card .page-head {
  margin-bottom: 0.45rem;
}

.login-lab {
  display: block;
  text-align: left;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mute);
  margin: 1.1rem 0 0.35rem;
}

.login-input {
  width: 100%;
  min-height: 50px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font: inherit;
  font-weight: 700;
  padding: 0.7rem 0.9rem;
}

.login-input:focus {
  outline: 2px solid var(--lime);
  outline-offset: 1px;
}

.login-err {
  color: #ff8a7a;
  font-size: 0.82rem;
  font-weight: 700;
  margin: 0.45rem 0 0;
}

#scr-login .btn {
  margin-top: 0.85rem;
}

.top-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
}

.userchip {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.28rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--mute);
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.icon-btn {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  border: 1px solid var(--line);
  font-size: 1.05rem;
  line-height: 1;
}

.icon-btn:hover {
  border-color: var(--lime);
  color: var(--lime);
}

.stage {
  position: relative;
  min-height: 0;
  min-width: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  height: 100%;
}

.screen {
  display: none;
  padding: 1rem 0.9rem 1.4rem;
  animation: in 0.28s ease;
  max-width: 100%;
  overflow-x: hidden;
}

.screen.is-on {
  display: block;
}

.screen:has(.dock) {
  padding-bottom: calc(var(--dock) + 0.5rem);
}

#scr-build.screen.is-on {
  display: flex;
  flex-direction: column;
  height: 100%;
  max-height: 100%;
  overflow: hidden;
  padding: 0.4rem 0.55rem calc(var(--dock) + 0.25rem);
}

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

.kicker {
  margin: 0 0 0.5rem;
  color: var(--lime);
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  animation: kicker-glow 2.8s ease-in-out infinite;
}

h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 2.55rem;
  line-height: 1.06;
  letter-spacing: 0.04em;
  margin: 0 0 0.55rem;
}

.lede {
  margin: 0;
  color: var(--mute);
  line-height: 1.45;
  font-size: 0.86rem;
}

.hint {
  color: var(--mute);
  font-size: 0.86rem;
  margin: 0 0 0.9rem;
}

.home {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  min-height: 100%;
  min-width: 0;
  width: 100%;
}

.hero {
  text-align: center;
  padding-top: 0.35rem;
}

.hero h1 {
  font-size: clamp(2.35rem, 9.2vw, 2.7rem);
}

.hero-logo {
  position: relative;
  width: 96px;
  height: 96px;
  margin: 0 auto 0.7rem;
  animation: logo-float 4.6s ease-in-out infinite;
}

.hero-aura {
  position: absolute;
  inset: -18px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(238, 119, 2, 0.5), transparent 68%);
  animation: logo-aura 2.6s ease-in-out infinite;
  pointer-events: none;
}

.hero-logo img {
  position: relative;
  z-index: 1;
  width: 96px;
  height: 96px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 10px 22px rgba(238, 119, 2, 0.55));
  animation: logo-spin 7.5s ease-in-out infinite;
}

.ticker {
  display: flex;
  gap: 0.4rem;
  overflow: hidden;
  width: 100%;
  min-width: 0;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.ticker-track {
  display: flex;
  gap: 0.4rem;
  width: max-content;
  flex-shrink: 0;
  animation: marq 28s linear infinite;
}

@keyframes marq {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.crest {
  width: 40px;
  height: 40px;
  min-width: 40px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: #fff;
  border-radius: 50%;
  padding: 4px;
  box-sizing: border-box;
}

.crest img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.crest.mini {
  width: 28px;
  height: 28px;
  min-width: 28px;
  padding: 3px;
}

.crest:not(:has(img))::after {
  content: attr(data-fb);
  font-family: var(--display);
  font-size: 0.58rem;
  font-weight: 800;
  color: #1c1c1c;
}

.home-actions {
  display: grid;
  gap: 0.55rem;
  min-width: 0;
  width: 100%;
}

.home-actions .tile + .tile {
  margin-top: 0.55rem;
}

.tile {
  text-align: left;
  padding: 1.2rem 1.15rem 1.28rem;
  border-radius: var(--r);
  display: grid;
  gap: 0.38rem;
  border: 1px solid var(--line);
  max-width: 100%;
  min-width: 0;
  position: relative;
  overflow: hidden;
  transition: transform 0.16s ease, box-shadow 0.22s ease;
}

.tile:active {
  transform: scale(0.98);
}

.tile-k {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.tile-t {
  font-family: var(--display);
  font-size: 1.72rem;
  letter-spacing: 0.04em;
  line-height: 1.05;
}

.tile-s {
  color: var(--mute);
  font-size: 0.85rem;
}

.tile-daily {
  background: linear-gradient(160deg, #ff8a1a, #ee7702 45%, #d96b00);
  border-color: #ee7702;
  box-shadow: 0 10px 28px rgba(238, 119, 2, 0.32);
  animation: btn-glow 2.8s ease-in-out infinite;
}

.tile-daily .tile-k,
.tile-daily .tile-t {
  color: #fff;
}

.tile-daily .tile-s {
  color: rgba(255, 255, 255, 0.82);
}

.tile-play {
  background: #2a2a2a;
  border-color: rgba(255, 255, 255, 0.16);
}

.tile-play .tile-k {
  color: var(--lime);
}

.tile-play .tile-t {
  color: #fff;
}

.mini {
  width: 100%;
  padding: 0.8rem 0.75rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--cream);
  background: rgba(255, 255, 255, 0.03);
  text-align: center;
}

.mini:hover {
  border-color: var(--lime);
}

.chiprow {
  display: flex;
  gap: 0.4rem;
  overflow-x: auto;
  padding-bottom: 0.7rem;
  scrollbar-width: none;
}

.chiprow::-webkit-scrollbar {
  display: none;
}

.chip {
  flex: 0 0 auto;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--mute);
}

.chip.on {
  background: var(--lime);
  color: #fff;
  border-color: var(--lime);
}

.club-search-lab {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--mute);
  margin: 0.15rem 0 0.35rem;
}

.club-search {
  width: 100%;
  min-height: 48px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font: inherit;
  font-weight: 700;
  padding: 0.7rem 0.9rem;
  margin-bottom: 0.7rem;
}

.club-search:focus {
  outline: 2px solid var(--lime);
  outline-offset: 1px;
}

.club-empty {
  margin: 0.6rem 0 0;
  color: var(--mute);
  font-size: 0.88rem;
  font-weight: 700;
}

.club-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
  align-items: start;
}

.club {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  align-items: center;
  gap: 0.45rem 0.55rem;
  padding: 0.7rem 0.75rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  text-align: left;
  width: 100%;
  min-width: 0;
  overflow: hidden;
}

.club .go {
  margin-left: auto;
  color: var(--mute);
  font-size: 1.1rem;
}

.club.on,
.club:hover {
  border-color: var(--lime);
}

.club-meta {
  display: grid;
  gap: 0.12rem;
  min-width: 0;
}

.club .nm {
  font-weight: 800;
  font-size: 0.88rem;
}

.club-td {
  grid-column: 1 / -1;
  pointer-events: none;
  margin-top: 0.1rem;
}

.face {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  object-fit: cover;
  object-position: center top;
  background: #2a2a2a;
  flex-shrink: 0;
}

.face-md {
  width: 48px;
  height: 48px;
}

.face-sm {
  width: 40px;
  height: 40px;
}

.face-xs {
  width: 24px;
  height: 24px;
}

.face-slot {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  position: absolute;
  inset: 0;
}

.club .cty {
  display: block;
  color: var(--mute);
  font-size: 0.7rem;
  font-weight: 600;
}

#scr-form.screen.is-on {
  display: flex;
  flex-direction: column;
  height: 100%;
  max-height: 100%;
  overflow: hidden;
  padding: 0.65rem 0.9rem calc(5.4rem + env(safe-area-inset-bottom));
}

#scr-form .page-head {
  margin-bottom: 0.15rem;
}

#scr-form .hint {
  margin-bottom: 0.55rem;
  flex-shrink: 0;
}

#scr-form .form-grid {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
  grid-template-rows: repeat(4, minmax(0, 1fr));
  align-content: stretch;
}

#scr-form .form-card {
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100%;
  padding: 0.55rem 0.65rem 0.6rem;
}

#scr-form .form-card .fn {
  margin-bottom: 0.3rem;
}

#scr-form .mini-pitch {
  flex: 1;
  height: auto;
  min-height: 0;
}

.form-card {
  padding: 0.7rem;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.form-card.on {
  border-color: var(--lime);
  background: var(--lime-dim);
}

.form-card .fn {
  font-family: var(--display);
  font-size: 1.15rem;
  margin-bottom: 0.4rem;
}

.mini-pitch {
  position: relative;
  height: 110px;
  border-radius: 10px;
  background:
    repeating-conic-gradient(var(--turf) 0deg 90deg, var(--turf-2) 90deg 180deg) 0 0 / 25% 16.66%;
  overflow: hidden;
}

.mini-pitch::after {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 4px;
}

.mini-pitch .dot {
  position: absolute;
  width: 7px;
  height: 7px;
  background: #fff;
  border-radius: 50%;
  transform: translate(-50%, 50%);
  z-index: 1;
}

.dock {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.7rem 0.9rem calc(0.7rem + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, transparent, rgba(28, 28, 28, 0.96) 28%);
  display: grid;
  gap: 0.4rem;
  z-index: 15;
}

.btn {
  width: 100%;
  min-height: 50px;
  border-radius: 14px;
  font-weight: 800;
  letter-spacing: 0.02em;
  position: relative;
  overflow: hidden;
  transition: transform 0.16s ease, box-shadow 0.22s ease, filter 0.22s ease;
}

.btn:active:not(:disabled) {
  transform: scale(0.97);
}

.btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.btn-lime,
.btn-coral {
  background: linear-gradient(180deg, #ffa24a, var(--lime) 52%, #d46800);
  color: #fff;
  box-shadow: 0 8px 22px rgba(238, 119, 2, 0.38);
  animation: btn-glow 2.4s ease-in-out infinite;
}

.btn-lime::after,
.btn-coral::after,
.tile-daily::after,
.ht-go::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, 0.38) 50%, transparent 70%);
  transform: translateX(-130%);
  animation: shine 2.8s ease-in-out infinite;
  pointer-events: none;
}

.btn-lime:disabled,
.btn-coral:disabled {
  animation: none;
  box-shadow: none;
}

.btn-lime:disabled::after,
.btn-coral:disabled::after {
  display: none;
}

.btn-ghost {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.btn.sm {
  min-height: 42px;
  width: auto;
  padding: 0 1rem;
}

.prog {
  text-align: center;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--mute);
}

.build-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.7rem;
}

.build-club {
  font-family: var(--display);
  font-size: 1.2rem;
}

.build-form {
  color: var(--mute);
  font-size: 0.8rem;
  font-weight: 700;
}

.ovr-pill {
  background: linear-gradient(180deg, #ffa24a, var(--lime));
  color: #fff;
  font-family: var(--display);
  padding: 0.25rem 0.6rem;
  font-size: 1rem;
  clip-path: polygon(8% 0, 100% 0, 92% 100%, 0 100%);
  box-shadow: 0 0 16px rgba(238, 119, 2, 0.4);
}

.pitch-wrap {
  padding: 0;
}

#scr-build .pitch-wrap {
  flex: 1 1 0;
  min-height: 0;
  width: 100%;
  container-type: size;
  display: block;
}

#scr-build .page-head {
  font-size: 1.25rem;
  margin-bottom: 0.2rem;
}

#scr-build .build-meta {
  margin-bottom: 0.25rem;
}

.pitch {
  position: relative;
  width: 100%;
  height: auto;
  aspect-ratio: 68 / 105;
  margin: 0 auto;
  border-radius: 16px;
  background:
    url("../img/pitch-marks.svg?v=cup102") center / 100% 100% no-repeat,
    radial-gradient(ellipse 90% 70% at 50% 50%, transparent 42%, rgba(8, 40, 16, 0.38) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 16%, transparent 84%, rgba(0, 0, 0, 0.22)),
    var(--turf-check) 0 0 / 12.5% 10%;
  box-shadow:
    inset 0 0 0 3px #1a6b2c,
    inset 0 0 28px rgba(0, 0, 0, 0.22),
    0 10px 28px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

#scr-build .pitch {
  width: 100%;
  height: 100%;
  max-height: none;
  aspect-ratio: auto;
}

.place .pitch {
  width: 100%;
  max-height: min(52dvh, 420px);
  aspect-ratio: 68 / 105;
}

.slot {
  position: absolute;
  width: 46px;
  transform: translate(-50%, 35%);
  display: grid;
  justify-items: center;
  gap: 0.1rem;
  z-index: 2;
  padding: 0;
  background: none;
}

.slot .disc {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px dashed rgba(255, 255, 255, 0.92);
  display: grid;
  place-items: center;
  font-size: 0.52rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #fff;
  background: rgba(0, 20, 8, 0.18);
  position: relative;
  overflow: hidden;
  padding: 0;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.55);
}

.slot .disc .face,
.slot .disc .face-slot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 18%;
}

.slot.filled .disc {
  border-style: solid;
  border-width: 2px;
  border-color: var(--grass-ring);
  background: #1c1c1c;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.3),
    0 2px 8px rgba(0, 0, 0, 0.4);
}

.slot.fit .disc {
  border-color: var(--lime);
  border-style: solid;
  box-shadow: 0 0 0 3px var(--lime-dim);
}

.slot.bad .disc {
  border-color: var(--coral);
  border-style: dashed;
}

#scr-build .lines,
#scr-build .bench,
#scr-build .edit-note {
  flex-shrink: 0;
}

.slot .lab {
  font-size: 0.5rem;
  font-weight: 800;
  line-height: 1.1;
  color: #fff;
  background: #111;
  padding: 0.08rem 0.28rem;
  border-radius: 4px;
  white-space: nowrap;
  max-width: 52px;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
}

.slot .pwr {
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--lime);
}

.lines {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.3rem;
  margin: 0.35rem 0 0.15rem;
}

.lines div {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.28rem 0.2rem;
  text-align: center;
}

.lines b {
  display: block;
  font-family: var(--display);
  font-size: 1.1rem;
}

.lines span {
  font-size: 0.62rem;
  color: var(--mute);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.bench {
  display: flex;
  gap: 0.45rem;
  overflow-x: auto;
  padding: 0.3rem 0 0.2rem;
}

.bench[hidden] {
  display: none !important;
}

.bench-card {
  flex: 0 0 168px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.5rem 0.6rem;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  position: relative;
}

.bench-card b {
  display: block;
  font-size: 0.82rem;
}

.bench-card span {
  color: var(--mute);
  font-size: 0.72rem;
}

.bench-card.empty {
  color: var(--mute);
  border-style: dashed;
  justify-content: center;
  flex-direction: column;
  gap: 0.15rem;
  font-size: 0.78rem;
  font-weight: 700;
}

.bench-card.empty small {
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--lime);
}

.bench-card .bench-x {
  position: absolute;
  top: 0.28rem;
  right: 0.28rem;
  width: 1.35rem;
  height: 1.35rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
}

.bench-card .bench-x:hover {
  background: rgba(220, 60, 60, 0.85);
  color: #fff;
}

.bench-lab {
  flex-basis: auto;
  border: 0;
  padding: 0.5rem 0;
  background: transparent;
}

.edit-note {
  display: flex;
  align-items: center;
  gap: 0.28rem;
  margin: 0 0 0.28rem;
  padding: 0.22rem 0.5rem;
  border-radius: 999px;
  background: #ffc107;
  color: #1c1c1c;
  font-size: 0.58rem;
  font-weight: 800;
  line-height: 1.2;
  flex: 0 0 auto;
  min-height: 0;
  max-height: 2rem;
  overflow: hidden;
}

.edit-note > span:last-child {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.edit-ico {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  display: grid;
  place-items: center;
}

.edit-ico svg {
  width: 12px;
  height: 12px;
}

.edit-note[hidden] {
  display: none !important;
}

.slot.picked .disc {
  border-color: var(--lime);
  border-style: solid;
  box-shadow: 0 0 0 4px var(--lime-dim);
}

.bench-card.picked {
  border-color: var(--lime);
  box-shadow: 0 0 0 3px var(--lime-dim);
}

#scr-cup.screen.is-on {
  display: flex;
  flex-direction: column;
  height: 100%;
  max-height: 100%;
  overflow: hidden;
  padding: 0.55rem 0.65rem 0;
  position: relative;
  background: #121414;
}

#scr-cup .cup-atmo {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 120% 55% at 50% -8%, rgba(15, 75, 44, 0.35) 0%, transparent 58%),
    radial-gradient(circle at 88% 12%, rgba(233, 195, 73, 0.08) 0%, transparent 42%),
    #121414;
}

#scr-cup .cup-atmo::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='4'%3E%3Crect width='4' height='4' fill='%23121414'/%3E%3Crect width='1' height='1' fill='%23333535' opacity='0.12'/%3E%3C/svg%3E");
}

#scr-cup .cup-head,
#scr-cup .cup-hero,
#scr-cup .cup-bracket-scroll,
#scr-cup .cup-out,
#scr-cup .cup-champ,
#scr-cup .dock {
  position: relative;
  z-index: 1;
}

#scr-cup .cup-head {
  flex-shrink: 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.65rem;
  margin-bottom: 0.55rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid rgba(64, 73, 66, 0.45);
}

#scr-cup .cup-kicker {
  margin: 0 0 0.12rem;
  font-family: var(--display);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  color: #e9c349;
  text-transform: uppercase;
}

#scr-cup .cup-title {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.35rem, 5.5vw, 1.75rem);
  letter-spacing: 0.04em;
  line-height: 1.05;
  color: #e2e2e2;
  text-transform: uppercase;
}

#scr-cup .cup-sub {
  margin: 0.18rem 0 0;
  font-size: 0.78rem;
  font-weight: 600;
  color: #c0c9bf;
}

#scr-cup .cup-head-badge {
  flex-shrink: 0;
  align-self: center;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  font-family: var(--display);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  color: #ffb4ab;
  background: rgba(147, 0, 10, 0.55);
  box-shadow: 0 0 12px rgba(255, 100, 90, 0.35);
  animation: cup-live-pulse 1.4s ease-in-out infinite;
}

#scr-cup .cup-head-badge[hidden] {
  display: none !important;
}

#scr-cup .cup-hero {
  flex-shrink: 0;
  margin-bottom: 0.55rem;
}

#scr-cup .cup-bracket-scroll {
  flex: 1;
  min-height: 0;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 -0.15rem;
  padding: 0 0.15rem 0.35rem;
  cursor: grab;
}

#scr-cup .cup-bracket-scroll.is-dragging {
  cursor: grabbing;
  user-select: none;
}

#scr-cup .cup-out,
#scr-cup .cup-champ {
  flex: 1;
  min-height: 0;
}

#scr-cup .dock {
  position: relative;
  flex-shrink: 0;
  left: auto;
  right: auto;
  bottom: auto;
  padding: 0.55rem 0 calc(0.7rem + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, transparent, rgba(18, 20, 20, 0.96) 28%);
}

#scr-cup.is-champ .page-head,
#scr-cup.is-champ .cup-head,
#scr-cup.is-champ .cup-hero,
#scr-cup.is-champ .cup-bracket-scroll,
#scr-cup.is-out .cup-head,
#scr-cup.is-out .cup-hero,
#scr-cup.is-out .cup-bracket-scroll {
  display: none !important;
}

.cup-result {
  display: grid;
  justify-items: center;
  gap: 0.12rem;
  margin-bottom: 0.45rem;
  text-align: center;
}

.cup-result b {
  font-family: var(--display);
  font-size: 1.7rem;
  letter-spacing: 0.08em;
  line-height: 1;
}

.cup-result span {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--mute);
}

.cup-result.out b {
  color: #ff6b5a;
}

.cup-result.win b {
  color: var(--lime);
}

.glass {
  background: rgba(40, 42, 43, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(64, 73, 66, 0.45);
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.08);
}

.cup-hero {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  padding: 0.75rem 0.85rem;
  border-radius: 10px;
}

.cup-hero-crest .crest {
  width: 52px;
  height: 52px;
  min-width: 52px;
  padding: 5px;
}

.cup-hero-lab {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #8a938a;
  margin-bottom: 0.15rem;
}

.cup-hero-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.ovr-xl {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 2.15rem;
  font-weight: 700;
  color: #99d4aa;
  line-height: 1;
}

.cup-id {
  font-weight: 800;
  font-size: 0.95rem;
  color: #e2e2e2;
}

.cup-hero-meta {
  margin-top: 0.12rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: #8a938a;
}

.cup-bracket {
  display: grid;
  grid-template-columns: 186px 28px 186px 28px 186px 28px 186px 28px 210px;
  grid-template-rows: 1.7rem repeat(16, minmax(5.35rem, 1fr));
  column-gap: 0;
  row-gap: 0;
  min-width: 1120px;
  align-items: stretch;
  padding: 0.15rem 0.5rem 0.7rem 0.15rem;
}

.cup-col-head {
  align-self: end;
  padding: 0.2rem 0.15rem 0.35rem;
  text-align: center;
  font-family: var(--display);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #8a938a;
  position: sticky;
  top: 0;
  z-index: 3;
  background: linear-gradient(180deg, rgba(18, 20, 20, 0.96) 70%, transparent);
}

.cup-col-head.is-current {
  color: #99d4aa;
}

.cup-slot {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 0;
  padding: 0.22rem 0;
  position: relative;
  z-index: 1;
}

.cup-slot.is-future {
  opacity: 0.72;
}

.cup-slot.is-past {
  opacity: 0.88;
}

.cup-slot.is-final {
  align-items: center;
}

.cup-slot.is-final .cup-trophy {
  position: absolute;
  top: 12%;
}

.cup-slot.is-final .cup-final-lab {
  position: absolute;
  top: calc(12% + 3.55rem);
}

.cup-slot.is-final .cup-match,
.cup-slot.is-final .cup-tbd {
  width: 100%;
}

.cup-wire-cell {
  position: relative;
  z-index: 0;
  pointer-events: none;
}

.cup-wire-cell svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.cup-wire-cell path {
  fill: none;
  stroke: #5a635c;
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}

.cup-wire-cell.is-live path {
  stroke: #99d4aa;
  filter: drop-shadow(0 0 4px rgba(153, 212, 170, 0.75));
}

.cup-match {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  padding: 0.38rem;
  border-radius: 8px;
  min-height: 4.85rem;
  justify-content: center;
}

.cup-match.is-live {
  border-color: rgba(153, 212, 170, 0.55);
  box-shadow: 0 0 18px rgba(153, 212, 170, 0.16), inset 0 1px 2px rgba(255, 255, 255, 0.08);
}

.cup-match.is-dim {
  opacity: 0.82;
}

.cup-live-badge {
  position: absolute;
  top: -0.45rem;
  right: -0.15rem;
  z-index: 2;
  padding: 0.18rem 0.42rem;
  border-radius: 999px;
  font-family: var(--display);
  font-size: 0.55rem;
  letter-spacing: 0.1em;
  color: #ffb4ab;
  background: rgba(147, 0, 10, 0.72);
  box-shadow: 0 0 10px rgba(255, 100, 90, 0.35);
}

.cup-team {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 0.35rem;
  padding: 0.32rem 0.38rem;
  border-radius: 4px;
  border-left: 2px solid transparent;
}

.cup-team.is-me {
  background: rgba(15, 75, 44, 0.32);
  border-left-color: #99d4aa;
}

.cup-team.is-me .cup-team-id {
  color: #99d4aa;
}

.cup-team .crest {
  width: 22px;
  height: 22px;
  min-width: 22px;
  padding: 2px;
}

.cup-team-id {
  font-size: 0.76rem;
  font-weight: 800;
  color: #e2e2e2;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cup-team-tag {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #8a938a;
}

.cup-team-pow {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.72rem;
  font-weight: 600;
  color: #c0c9bf;
}

.cup-team.is-me .cup-team-pow {
  color: #99d4aa;
}

.cup-tbd {
  min-height: 4.85rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.28rem;
  padding: 0.38rem;
  border-radius: 8px;
  border: 1px dashed rgba(64, 73, 66, 0.55);
  background: rgba(30, 32, 32, 0.45);
}

.cup-tbd-row {
  padding: 0.32rem 0.38rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: #8a938a;
  display: flex;
  justify-content: space-between;
}

.cup-tbd-row span:last-child {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  color: #666;
}

.cup-trophy {
  width: 3.4rem;
  height: 3.4rem;
  flex-shrink: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.55rem;
  background: rgba(40, 42, 43, 0.85);
  border: 2px solid rgba(233, 195, 73, 0.45);
  box-shadow: 0 0 24px rgba(233, 195, 73, 0.22), inset 0 1px 2px rgba(255, 255, 255, 0.1);
}

.cup-final-lab {
  margin: 0;
  font-family: var(--display);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #e9c349;
  font-style: italic;
  text-align: center;
}

@keyframes cup-live-pulse {
  0%,
  100% {
    opacity: 0.85;
  }
  50% {
    opacity: 1;
  }
}

.muted {
  color: var(--mute);
  font-size: 0.75rem;
  font-weight: 700;
}

.cup-out {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.2rem 0.8rem;
  gap: 0.55rem;
}

.cup-out[hidden] {
  display: none !important;
}

.cup-out-title {
  margin: 0;
  font-family: var(--display);
  font-size: 1.85rem;
  letter-spacing: 0.1em;
  color: #ff6b5a;
  line-height: 1;
}

.cup-out-msg {
  margin: 0;
  max-width: 22rem;
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.45;
  color: var(--cream);
}

.cup-champ {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 0.4rem 0.4rem 0.2rem;
}

.cup-champ[hidden] {
  display: none !important;
}

.champ-burst {
  position: absolute;
  inset: -18% -28%;
  background:
    radial-gradient(circle at 50% 28%, rgba(238, 119, 2, 0.42), transparent 48%),
    radial-gradient(circle at 18% 78%, rgba(255, 210, 80, 0.16), transparent 42%),
    radial-gradient(circle at 84% 68%, rgba(238, 119, 2, 0.18), transparent 40%);
  animation: champ-glow 2.8s ease-in-out infinite;
  pointer-events: none;
}

.champ-sparkles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.champ-sparkles i {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ffd36a;
  box-shadow: 0 0 10px rgba(255, 211, 106, 0.85);
  animation: champ-spark 2.4s ease-in-out infinite;
}

.champ-sparkles i:nth-child(1) { left: 12%; top: 16%; animation-delay: 0s; }
.champ-sparkles i:nth-child(2) { left: 82%; top: 22%; animation-delay: 0.3s; }
.champ-sparkles i:nth-child(3) { left: 22%; top: 62%; animation-delay: 0.55s; }
.champ-sparkles i:nth-child(4) { left: 88%; top: 58%; animation-delay: 0.8s; }
.champ-sparkles i:nth-child(5) { left: 8%; top: 38%; animation-delay: 1.1s; width: 5px; height: 5px; }
.champ-sparkles i:nth-child(6) { left: 74%; top: 78%; animation-delay: 1.35s; }
.champ-sparkles i:nth-child(7) { left: 46%; top: 10%; animation-delay: 0.2s; width: 4px; height: 4px; }
.champ-sparkles i:nth-child(8) { left: 58%; top: 84%; animation-delay: 1.6s; }

.champ-trophy {
  position: relative;
  z-index: 1;
  font-size: 4.1rem;
  line-height: 1;
  filter: drop-shadow(0 10px 26px rgba(238, 119, 2, 0.55));
  animation: champ-bob 2.2s ease-in-out infinite;
}

.champ-kicker {
  position: relative;
  z-index: 1;
  margin-top: 0.4rem;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  color: #ffb56a;
}

.champ-title {
  position: relative;
  z-index: 1;
  margin: 0.15rem 0 0;
  font-family: var(--display);
  font-size: 3.35rem;
  letter-spacing: 0.08em;
  line-height: 0.9;
  color: #fff;
  text-shadow: 0 0 28px rgba(238, 119, 2, 0.55);
}

.champ-lead {
  position: relative;
  z-index: 1;
  margin: 0.55rem 0 0;
  font-size: 1.08rem;
  font-weight: 800;
  color: #fff;
}

.champ-prize {
  position: relative;
  z-index: 1;
  margin: 0.4rem 0 0;
  font-family: var(--display);
  font-size: 3.5rem;
  line-height: 1;
  color: var(--lime);
  text-shadow: 0 0 26px rgba(238, 119, 2, 0.55);
  animation: champ-prize 1.8s ease-in-out infinite;
}

.champ-congrats {
  position: relative;
  z-index: 1;
  margin: 0.35rem 0 0.85rem;
  font-size: 1.02rem;
  font-weight: 800;
  color: #ffd089;
}

.champ-club {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 800;
  font-size: 0.95rem;
}

@keyframes champ-glow {
  0%, 100% { opacity: 0.72; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
}

@keyframes champ-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes champ-prize {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.045); }
}

@keyframes champ-spark {
  0%, 100% { opacity: 0.15; transform: scale(0.55); }
  50% { opacity: 1; transform: scale(1.25); }
}

@media (prefers-reduced-motion: reduce) {
  .champ-burst,
  .champ-trophy,
  .champ-prize,
  .champ-sparkles i {
    animation: none;
  }
}

.vs-mini {
  font-family: var(--display);
  color: var(--lime);
  font-size: 0.9rem;
}

#app:has(#scr-match.is-on) {
  grid-template-rows: 1fr;
}

#app:has(#scr-match.is-on) .top {
  display: none;
}

.mhud {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.28rem;
  margin: 0 0 0.28rem;
  flex-shrink: 0;
}

.mhud-left,
.mhud-right {
  display: flex;
  align-items: center;
  gap: 0.28rem;
  min-width: 0;
}

.mhud-left {
  justify-content: flex-start;
}

.mhud-right {
  justify-content: flex-end;
}

.mhud-mid {
  justify-self: center;
}

.mhud-side {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--display);
  font-size: 1.45rem;
  letter-spacing: 0.04em;
  min-width: 0;
  overflow: hidden;
}

.mhud-side.r {
  justify-content: flex-end;
}

.mhud-crest .crest {
  width: 36px;
  height: 36px;
  min-width: 36px;
  padding: 3px;
}

.mhud-pill {
  background: #161616;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 0.32rem 1.05rem 0.38rem;
  min-width: 124px;
  text-align: center;
}

.mhud-score {
  font-family: var(--display);
  font-size: 2.15rem;
  line-height: 1;
}

.mhud-clock {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.28rem;
  color: var(--lime);
  font-size: 0.9rem;
  font-weight: 800;
}

.mhud-half {
  margin-top: 0.08rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--mute);
}

.mhud-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #e23d3d;
  box-shadow: 0 0 8px #e23d3d;
  animation: live-dot 1s ease-in-out infinite;
}

.mhud-set {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  font-size: 1rem;
}

.m-poss-strip {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  margin: 0 0 0.28rem;
  padding: 0 0.05rem;
}

.m-poss-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  flex-wrap: wrap;
  min-height: 2rem;
  padding: 0.28rem 0.75rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #161616;
}

.m-poss-pill.is-me {
  border-color: rgba(238, 119, 2, 0.65);
  background: linear-gradient(180deg, #22180e 0%, #161616 100%);
  box-shadow: 0 0 16px rgba(238, 119, 2, 0.18);
}

.m-poss-pill.is-opp {
  border-color: rgba(140, 140, 140, 0.45);
  background: linear-gradient(180deg, #1a1a1a 0%, #121212 100%);
}

.m-poss-tag {
  font-family: var(--display);
  font-size: 0.95rem;
  letter-spacing: 0.14em;
  color: var(--lime);
}

.m-poss-pill.is-opp .m-poss-tag {
  color: #b8b8b8;
}

.m-poss-who {
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #fff;
}

.m-poss-bar-wrap {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.35rem;
}

.m-poss-bar-l,
.m-poss-bar-r {
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--mute);
}

.m-poss-bar {
  height: 5px;
  border-radius: 99px;
  background: #2a2a2a;
  overflow: hidden;
}

.m-poss-bar i {
  display: block;
  height: 100%;
  width: 50%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ee7702, #ffb04a);
  transition: width 0.35s ease;
}

#app.is-run-locked #btnBack,
#app.is-run-locked #btnMatchBack {
  visibility: hidden;
  pointer-events: none;
}

#scr-match.screen.is-on {
  display: flex;
  flex-direction: column;
  height: 100%;
  max-height: 100%;
  overflow: hidden;
  padding: 0.22rem 0.22rem 0.16rem;
}

.match-stage {
  position: relative;
  flex: 1 1 0;
  min-height: 0;
  display: flex;
  overflow: visible;
}

#scr-match.is-highlight .analiz {
  display: none !important;
}

#scr-match.is-highlight .m-banner {
  display: none !important;
}

#scr-match.is-highlight .az-cols,
#scr-match.is-highlight .az-tac {
  display: none !important;
}

#scr-match.is-highlight .az-focus {
  padding: 0.35rem 0.45rem 0.42rem;
  pointer-events: none;
}

#scr-match.is-highlight .m-feed-wrap {
  max-height: 3.4rem;
}

#scr-match.is-highlight .m-card,
#scr-match.is-highlight .m-zonebar {
  display: none !important;
}

#scr-match.is-highlight .stadium {
  flex: 1 1 0;
  min-height: 0;
  display: flex;
}

#scr-match.is-analiz .stadium {
  display: none !important;
}

/* Soften off-ball tokens; keep carrier crisp. */
#scr-match.is-highlight .pl:not(.on-ball):not(.has-ball) {
  opacity: 0.55;
  filter: none;
}
#scr-match.is-highlight .pl.on-ball,
#scr-match.is-highlight .pl.has-ball {
  opacity: 1;
  filter: none;
  z-index: 7;
}
#scr-match.is-highlight .mball {
  z-index: 9;
}

#scr-match.is-analiz .analiz {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  min-height: 0;
  width: 100%;
  position: relative;
  background: transparent;
  border: 0;
  padding: 0.1rem 0.15rem 0.2rem;
  z-index: 2;
  pointer-events: auto;
}

#scr-match.is-analiz .az-cols {
  display: grid;
}

#scr-match.is-analiz .az-mini {
  display: block;
}

#scr-match.is-analiz .m-banner,
#scr-match.is-analiz .m-goal,
#scr-match.is-analiz .m-goal-head {
  display: none !important;
}

#scr-match.is-analiz .m-tac {
  display: none;
}

#scr-match.is-analiz .m-end-stack {
  display: none;
}

.analiz {
  display: none;
  flex-direction: column;
  gap: 0.45rem;
  min-height: 0;
}

.az-focus {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-shrink: 0;
  padding: 0.2rem 0.1rem 0.15rem;
}

.az-rail {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0.28rem;
  flex-shrink: 0;
  margin-left: auto;
  align-self: flex-start;
  padding-top: 0.05rem;
}

#scr-match.is-analiz .az-rail {
  display: flex;
}

.az-spd-slot {
  display: flex;
  justify-content: center;
  min-height: 1.6rem;
}

.az-spd-slot .m-spd {
  position: static !important;
  inset: auto !important;
  transform: none !important;
  width: 2.1rem;
  height: 2.1rem;
  min-height: 0;
  padding: 0;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 0.62rem;
}

.az-mini {
  position: relative;
  width: 52px;
  height: 78px;
  flex-shrink: 0;
  border-radius: 6px;
  background:
    url("../img/pitch-marks.svg?v=cup102") center / 100% 100% no-repeat,
    var(--turf-check) 0 0 / 25% 16.66%;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18);
  overflow: hidden;
}

.az-pass {
  display: none !important;
}

.az-pass line {
  stroke: #ffe14a;
  stroke-width: 2.2;
  stroke-linecap: round;
  filter: drop-shadow(0 0 4px rgba(255, 225, 74, 0.85));
  animation: pass-line 0.85s ease infinite alternate;
}

.az-ring {
  position: absolute;
  width: 14px;
  height: 14px;
  margin: -7px 0 0 -7px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 3;
  box-sizing: border-box;
}

.az-ring.carr.is-me {
  border: 2px solid #ee7702;
  box-shadow: 0 0 0 3px rgba(238, 119, 2, 0.35), 0 0 10px rgba(238, 119, 2, 0.75);
}

.az-ring.carr.is-opp {
  border: 2px solid #bdbdbd;
  box-shadow: 0 0 0 3px rgba(180, 180, 180, 0.25), 0 0 8px rgba(200, 200, 200, 0.45);
}

.az-ring.recv {
  border: 2px dashed #ffe14a;
  box-shadow: 0 0 0 2px rgba(255, 225, 74, 0.25);
  animation: recv-pulse 0.75s ease-in-out infinite;
}

.az-dot {
  position: absolute;
  width: 9px;
  height: 9px;
  margin: -4.5px 0 0 -4.5px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.45), 0 0 8px rgba(255, 255, 255, 0.75);
  z-index: 4;
  left: 50%;
  top: 50%;
}

.az-tac {
  flex-shrink: 0;
  background: none;
  border: 0;
  color: #fff;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 0;
  min-height: 0;
  width: auto;
}

.az-focus-txt {
  min-width: 0;
  font-family: var(--display);
  font-size: 2.05rem;
  letter-spacing: 0.04em;
  color: var(--lime);
  line-height: 1;
}

.az-focus-txt i {
  font-style: normal;
}

.az-focus .m-feed-wrap,
.az-focus .m-ticker {
  flex: 1;
  min-width: 0;
  margin: 0;
  padding: 0;
}

.az-focus .m-feed-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
}

.m-feed-wrap .m-live {
  flex-shrink: 0;
}

.m-feed-log {
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
  min-width: 0;
  max-height: 4.6rem;
  overflow: hidden;
}

.m-feed-row {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  align-items: baseline;
  gap: 0.35rem;
  font-size: 0.72rem;
  line-height: 1.25;
}

.m-feed-row.is-idle .m-feed-txt {
  color: var(--mute);
  font-weight: 600;
}

.m-feed-tag {
  font-family: var(--display);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  padding: 0.08rem 0.32rem;
  border-radius: 4px;
  flex-shrink: 0;
}

.m-feed-row.is-me .m-feed-tag {
  background: rgba(238, 119, 2, 0.22);
  color: #ffb04a;
}

.m-feed-row.is-opp .m-feed-tag {
  background: rgba(120, 120, 120, 0.22);
  color: #c8c8c8;
}

.m-feed-min {
  color: var(--mute);
  font-weight: 700;
  font-size: 0.66rem;
  flex-shrink: 0;
}

.m-feed-txt {
  color: #ececec;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.az-cols {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
}

.az-xi {
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
}

.az-row {
  flex: 1 1 0;
  display: grid;
  grid-template-columns: 36px 36px 26px minmax(0, 1fr) 42px;
  align-items: center;
  gap: 0.32rem;
  background: #1a1a1a;
  border: 2px solid transparent;
  border-radius: 10px;
  padding: 0.22rem 0.4rem;
  min-height: 0;
}

.az-row.r {
  grid-template-columns: 42px minmax(0, 1fr) 26px 36px 36px;
}

.az-marks {
  position: relative;
  width: 34px;
  height: 26px;
}

.az-flag {
  position: absolute;
  left: 0;
  top: 4px;
  width: 26px;
  height: 18px;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35);
  background: #2a2a2a;
}

.az-flag.empty {
  opacity: 0;
  visibility: hidden;
  width: 0;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  overflow: hidden;
}

.az-row.r .az-flag {
  left: auto;
  right: 0;
}

.az-row.r .az-club {
  right: auto;
  left: -2px;
}

.az-club {
  position: absolute;
  right: -2px;
  bottom: -3px;
  width: 18px;
  height: 18px;
  z-index: 1;
  background: #111;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  display: grid;
  place-items: center;
}

.az-club .crest {
  width: 18px;
  height: 18px;
  min-width: 18px;
  padding: 1px;
}

.az-row img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 18%;
  background: #111;
}

.az-row .az-flag {
  width: 26px;
  height: 18px;
  border-radius: 2px;
  object-fit: cover;
  object-position: center;
  background: #2a2a2a;
}

.az-club img {
  width: 16px;
  height: 16px;
  border-radius: 0;
  object-fit: contain;
  object-position: center;
  background: transparent;
}

.az-no {
  font-size: 0.78rem;
  font-weight: 900;
  color: #fff;
  text-align: center;
  background: #2c2c2c;
  border-radius: 6px;
  min-width: 26px;
  height: 22px;
  display: grid;
  place-items: center;
  letter-spacing: -0.04em;
}

.az-who {
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.az-row.r .az-who {
  text-align: right;
}

.az-stam {
  display: block;
  height: 8px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.az-stam b {
  display: block;
  height: 100%;
  width: 80%;
  background: #3dcf5a;
  border-radius: 99px;
}

.az-row.on {
  border-color: #ee7702;
  box-shadow: 0 0 0 1px #ee7702, 0 0 14px rgba(238, 119, 2, 0.5);
  background: #22180e;
}

.az-row.recv {
  border-color: #ffe14a;
  box-shadow: 0 0 0 1px rgba(255, 225, 74, 0.65), 0 0 10px rgba(255, 225, 74, 0.28);
  background: #1f1a0d;
}

.pl.running .pl-disk {
  transform: none;
}

.stadium {
  position: relative;
  flex: 1;
  min-height: 0;
  border-radius: 10px;
  overflow: hidden;
  background: #1a5c28;
  --home-kit: #ee7702;
  --home-kit-2: #f3f3f3;
  --away-kit: #1a1a1a;
  --away-kit-2: #f3f3f3;
  --fan-l: 0;
  --fan-r: 0;
  --fan-t: 0;
  --fan-b: 0;
}

.m-world {
  display: grid;
  grid-template-columns: 0 minmax(0, 1fr) 0;
  grid-template-rows: 0 minmax(0, 1fr) 0;
  gap: 0;
  width: 100%;
  height: 100%;
  background: #1a5c28;
  transform-origin: 50% 50%;
}

.fan-dots {
  --fa: var(--home-kit, #ee7702);
  --sk: #e6b58a;
  overflow: hidden;
  background-color: #173d22;
  background-image:
    radial-gradient(circle, var(--fa) 12%, transparent 16%),
    radial-gradient(circle, var(--sk) 9%, transparent 13%);
  background-size: 26px 34px, 38px 28px;
  background-position: 40% 20%, 10% 70%;
  background-repeat: repeat;
}

.fan-dots.away {
  --fa: var(--away-kit, #d8d8d8);
}

.crowd {
  opacity: 0 !important;
  pointer-events: none;
}

.crowd.c-top {
  grid-column: 1 / -1;
  grid-row: 1;
}

.crowd.c-left {
  grid-column: 1;
  grid-row: 2;
}

.crowd.c-right {
  grid-column: 3;
  grid-row: 2;
}

.crowd.c-bot {
  grid-column: 1 / -1;
  grid-row: 3;
}

.crowd.hot {
  filter: none;
}

.m-cam {
  grid-column: 2;
  grid-row: 2;
  min-height: 0;
  overflow: hidden;
  position: relative;
}

.mpitch {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 0;
  border-radius: 0;
  background:
    url("../img/pitch-marks.svg?v=cup102") center / 100% 100% no-repeat,
    repeating-linear-gradient(
      180deg,
      #4ea143 0 7.14%,
      #44933b 7.14% 14.28%
    );
  overflow: hidden;
  will-change: transform;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.pl-dir {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
  border-left: 3.5px solid transparent;
  border-right: 3.5px solid transparent;
  border-bottom: 8px solid rgba(210, 235, 255, 0.92);
  transform: translate(-50%, -50%) rotate(var(--face-deg, 0deg)) translateY(-15px);
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.45));
  opacity: 0.8;
  pointer-events: none;
  z-index: 5;
}

.pl.gk .pl-dir {
  opacity: 0.4;
  border-bottom-color: rgba(255, 210, 160, 0.85);
}

.pl.on-ball .pl-dir,
.pl.has-ball .pl-dir,
.pl.is-passer .pl-dir {
  opacity: 1;
  border-left-width: 4px;
  border-right-width: 4px;
  border-bottom-width: 10px;
  border-bottom-color: rgba(180, 225, 255, 1);
  transform: translate(-50%, -50%) rotate(var(--face-deg, 0deg)) translateY(-17px);
}

.tac-layer {
  display: none !important;
}

.tac-arrow,
.tac-zone {
  display: none !important;
}

.m-goalbox {
  position: absolute;
  left: 50%;
  width: 22%;
  height: 5.6%;
  transform: translateX(-50%);
  z-index: 5;
  pointer-events: none;
  overflow: visible;
  opacity: 0.95;
  filter: drop-shadow(0 0 6px color-mix(in srgb, var(--end-kit, #fff) 55%, transparent));
}

.m-goalbox.is-me {
  --end-kit: var(--home-kit, #ee7702);
}

.m-goalbox.is-opp {
  --end-kit: var(--away-kit, #1a1a1a);
}

.m-goalbox .m-gnet,
.m-goalbox .m-gside {
  opacity: 0.55;
}

.m-goalbox .m-gnet {
  background-color: color-mix(in srgb, var(--end-kit, #fff) 22%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--end-kit, #fff) 55%, transparent);
}

.m-goalbox.is-me .m-gbar,
.m-goalbox.is-me .m-gpost {
  background: color-mix(in srgb, var(--end-kit, #ee7702) 70%, #fff);
}

.m-goalbox.is-opp .m-gbar,
.m-goalbox.is-opp .m-gpost {
  background: color-mix(in srgb, var(--end-kit, #ccc) 65%, #111);
}

.m-goalbox.top {
  top: 0;
}

.m-goalbox.bot {
  bottom: 0;
}

.m-end-stack {
  position: absolute;
  z-index: 20;
  right: 0.32rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.22rem;
  width: 44px;
  pointer-events: none;
}

.m-end-stack.top {
  top: 0.32rem;
}

.m-end-stack.bot {
  bottom: 0.32rem;
}

.m-end-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
  width: 100%;
  padding: 0.22rem 0.18rem 0.24rem;
  border-radius: 9px;
  background: rgba(10, 12, 14, 0.88);
  color: #fff;
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--end-kit, #fff) 50%, transparent),
    0 4px 12px rgba(0, 0, 0, 0.4);
}

.m-end-badge .crest,
.m-end-badge .crest.mini {
  width: 28px !important;
  height: 28px !important;
  min-width: 28px !important;
  padding: 0 !important;
  background: transparent !important;
  border-radius: 0 !important;
  display: grid;
  place-items: center;
}

.m-end-badge .crest img {
  width: 28px !important;
  height: 28px !important;
  max-width: 28px;
  max-height: 28px;
  object-fit: contain;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5));
}

.m-end-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.02rem;
  line-height: 1.05;
  max-width: 100%;
}

.m-end-badge b {
  font-size: 0.5rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.m-end-badge span {
  opacity: 0.9;
  font-size: 0.42rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.m-end-badge.is-me {
  background: linear-gradient(180deg, rgba(20, 14, 8, 0.95), rgba(40, 24, 10, 0.92));
  box-shadow:
    0 0 0 1.5px #ee7702,
    0 4px 12px rgba(0, 0, 0, 0.45);
}

.m-end-badge.is-opp {
  background: rgba(12, 12, 14, 0.88);
}

.m-end-stack .m-spd {
  position: static !important;
  inset: auto !important;
  transform: none !important;
  pointer-events: auto;
  padding: 0.26rem 0.42rem;
  font-size: 0.58rem;
  border-radius: 8px;
  min-height: 0;
  width: auto;
  z-index: 21;
}

/* Legacy pitch tags removed ? keep hidden if any leftover. */
.m-end-tag {
  display: none !important;
}

.m-gnet {
  position: absolute;
  left: 7px;
  right: 7px;
  top: 6px;
  bottom: 6px;
  background:
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.22) 0 0.8px,
      transparent 0.8px 11px
    ),
    repeating-linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.16) 0 0.8px,
      transparent 0.8px 11px
    );
  background-color: transparent;
  box-shadow: none;
}

.m-goalbox.top .m-gnet {
  clip-path: polygon(12% 0, 88% 0, 100% 100%, 0 100%);
  border-radius: 0;
  top: 5px;
  bottom: 0;
}

.m-goalbox.bot .m-gnet {
  clip-path: polygon(0 0, 100% 0, 88% 100%, 12% 100%);
  border-radius: 0;
  top: 0;
  bottom: 5px;
}

.m-gside {
  position: absolute;
  width: 16%;
  background:
    repeating-linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.35) 0 1px,
      transparent 1px 6px
    );
  background-color: transparent;
}

.m-goalbox.top .m-gside.l {
  left: 0;
  top: 0;
  bottom: 0;
  clip-path: polygon(0 0, 100% 100%, 0 100%);
}

.m-goalbox.top .m-gside.r {
  right: 0;
  top: 0;
  bottom: 0;
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
}

.m-goalbox.bot .m-gside.l {
  left: 0;
  top: 0;
  bottom: 0;
  clip-path: polygon(0 0, 100% 0, 0 100%);
}

.m-goalbox.bot .m-gside.r {
  right: 0;
  top: 0;
  bottom: 0;
  clip-path: polygon(0 0, 100% 0, 100% 100%);
}

.m-gpost,
.m-gbar {
  position: absolute;
  background: linear-gradient(90deg, #cfcfcf, #fff 40%, #e8e8e8);
  box-shadow:
    0 0 0 1px rgba(40, 40, 40, 0.55),
    0 1px 3px rgba(0, 0, 0, 0.4);
  z-index: 2;
}

.m-gpost {
  width: 7px;
  top: 0;
  bottom: 0;
  border-radius: 2px;
}

.m-gpost.l {
  left: 0;
}

.m-gpost.r {
  right: 0;
}

.m-gbar {
  left: 0;
  right: 0;
  height: 6px;
  border-radius: 2px;
}

.m-goalbox.top .m-gbar {
  top: 0;
}

.m-goalbox.bot .m-gbar {
  bottom: 0;
}

.m-goalbox.shake .m-gnet {
  animation: net-ripple 0.55s ease;
}

.m-goalbox.shake .m-gpost.l {
  animation: post-wobble-l 0.45s ease;
}

.m-goalbox.shake .m-gpost.r {
  animation: post-wobble-r 0.45s ease;
}

.stadium.hit {
  animation: pitch-hit 0.42s ease;
}

.stadium.scored {
  animation: pitch-boom 0.7s ease;
}

.stadium.scored::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 11;
  pointer-events: none;
  background: radial-gradient(circle at 50% 45%, rgba(255, 180, 40, 0.45), transparent 55%);
  animation: goal-flash 0.7s ease forwards;
}

.mpitch .pl {
  position: absolute;
  width: 28px;
  height: 28px;
  transform: translate(-50%, -50%);
  background: none;
  border: 0;
  box-shadow: none;
  display: grid;
  justify-items: center;
  align-content: center;
  z-index: 6;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.35));
  pointer-events: none;
}

.pl-disk {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--kit-bg, var(--kit, #1e3a8a));
  border: 2px solid rgba(255, 255, 255, 0.92);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
  display: grid;
  place-items: center;
}

.pl.is-me .pl-disk {
  box-shadow:
    0 0 0 1.5px rgba(238, 119, 2, 0.85),
    0 1px 2px rgba(0, 0, 0, 0.35);
}

.pl.is-opp .pl-disk {
  box-shadow:
    0 0 0 1.5px rgba(255, 255, 255, 0.35),
    0 1px 2px rgba(0, 0, 0, 0.35);
}

.pl-disk b {
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1;
  color: var(--ink, #fff);
  letter-spacing: -0.04em;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.25);
}

.mpitch .pl.gk .pl-disk {
  background: #f07a2a;
  border-color: #fff;
}

.mpitch .pl.gk .pl-disk b {
  color: #fff;
}

.pl-body,
.pl-head,
.pl-hair,
.pl-torso,
.pl-arm,
.pl-leg {
  display: none !important;
}

.pl-name {
  position: absolute;
  top: calc(100% + 2px);
  left: 50%;
  transform: translateX(-50%);
  display: none;
  margin: 0;
  font-size: 0.58rem;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  background: transparent;
  padding: 0;
  border-radius: 0;
  white-space: nowrap;
  max-width: 78px;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow:
    0 0 3px rgba(0, 0, 0, 0.9),
    0 1px 2px rgba(0, 0, 0, 0.75);
}

.pl.on-ball .pl-name,
.pl.has-ball .pl-name {
  display: block;
  color: #fff;
}

.pl.on-ball .pl-disk,
.pl.has-ball .pl-disk {
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.55),
    0 0 10px rgba(255, 255, 255, 0.35),
    0 1px 2px rgba(0, 0, 0, 0.4);
  transform: scale(1.08);
}

.pl-act {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--display);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: #fff;
  text-shadow:
    0 0 2px #000,
    0 1px 0 #111,
    0 0 8px rgba(160, 210, 255, 0.65);
  white-space: nowrap;
  z-index: 6;
  pointer-events: none;
  opacity: 0;
}

.pl-act.show {
  animation: act-pop 0.85s ease forwards;
}

.pl:not(.on-ball):not(.gk):not(.pass-recv) .pl-act {
  visibility: hidden;
  animation: none !important;
  opacity: 0 !important;
}

.pl.pass-recv .pl-act.show {
  visibility: visible;
  opacity: 1;
}

.pl.pass-recv .pl-disk {
  box-shadow: 0 0 0 2px rgba(255, 225, 74, 0.85), 0 0 8px rgba(255, 225, 74, 0.35);
}

.pl.kick .pl-disk {
  animation: tac-kick 0.28s ease;
}

.pl.gk.gk-dive-l .pl-disk,
.pl.gk.gk-dive-r .pl-disk,
.pl.gk.gk-jump .pl-disk,
.pl.gk.gk-catch .pl-disk,
.pl.gk.gk-miss .pl-disk,
.mpitch .pl.gk:not(.running):not(.gk-dive-l):not(.gk-dive-r):not(.gk-jump) .pl-disk {
  animation: none;
}

@keyframes tac-kick {
  0% { transform: scale(1); }
  40% { transform: scale(1.18); }
  100% { transform: scale(1.08); }
}

.mball {
  position: absolute;
  width: 12px;
  height: 12px;
  transform: translate(-50%, -50%);
  z-index: 8;
  pointer-events: none;
}

.mball-core {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 28%, #fff 0 35%, #e8e8e8 55%, #cfcfcf 100%);
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(0, 0, 0, 0.2);
  transform: translateY(calc(var(--bh, 0) * -10px));
}

.mball-trail,
.mball-shadow {
  display: none !important;
}

.mball.fast .mball-core {
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.35),
    0 1px 3px rgba(0, 0, 0, 0.4);
}

.mball.bounce .mball-core {
  animation: ball-bounce 0.4s cubic-bezier(0.2, 1.4, 0.3, 1);
}

.m-goal-head {
  position: absolute;
  inset: 0;
  z-index: 13;
  pointer-events: none;
}

.m-goal-head[hidden] {
  display: none !important;
}

.m-goal-head.is-hold {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 0.45rem 0.85rem 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.9) 0%,
    rgba(0, 0, 0, 0.55) 42%,
    rgba(0, 0, 0, 0.12) 72%,
    transparent 100%
  );
}

.m-goal-head.is-hold .m-goal {
  position: relative;
  left: auto;
  top: auto;
  transform: none;
  margin: 0;
  font-size: clamp(2.35rem, 11vw, 3.55rem);
  animation: goal-slam-hold-top 0.45s ease forwards;
}

.m-goal-head.is-hold .m-goal-kind {
  position: relative;
  left: auto;
  top: auto;
  transform: none;
  margin: 0.12rem 0 0;
  padding-top: 0.42rem;
  font-size: clamp(0.82rem, 3.8vw, 1.15rem);
  letter-spacing: 0.32em;
  animation: goal-kind-in 0.55s cubic-bezier(0.16, 0.9, 0.32, 1.2) both, kind-glow 1.4s ease-in-out 0.55s infinite;
}

.m-goal-head.is-hold .m-goal-kind::before {
  top: 0;
  width: min(72vw, 220px);
}

.m-goal-head.is-burst {
  display: block;
}

.m-goal-head.is-burst .m-goal {
  position: absolute;
  left: 50%;
  transform: translate(-50%, -50%);
}

.m-goal {
  position: absolute;
  left: 50%;
  top: 42%;
  transform: translate(-50%, -50%);
  z-index: 12;
  font-family: var(--display);
  font-size: 4.4rem;
  letter-spacing: 0.04em;
  color: #ff8a1a;
  text-shadow:
    3px 3px 0 #1a1a1a,
    -2px -2px 0 #1a1a1a,
    0 10px 0 #8a3200,
    0 16px 28px rgba(0, 0, 0, 0.45);
  pointer-events: none;
  animation: goal-slam 1.35s ease forwards;
  white-space: nowrap;
}

.m-goal.is-hold {
  animation: goal-slam-hold-top 0.45s ease forwards;
  opacity: 1;
}

.m-goal.is-post,
.m-goal.is-bar {
  font-size: 2.8rem;
  color: #fff;
  text-shadow:
    2px 2px 0 #111,
    -1px -1px 0 #111,
    0 0 18px rgba(255, 255, 255, 0.7);
  animation: post-slam 1.05s ease forwards;
}

.m-goal.is-bar {
  color: #ffe14a;
  text-shadow:
    2px 2px 0 #111,
    0 0 16px rgba(255, 210, 40, 0.85);
}

.m-goal[hidden] {
  display: none !important;
}

.m-goal-still {
  position: absolute;
  inset: 0;
  z-index: 11;
  pointer-events: none;
  overflow: hidden;
  background: #0a0a0a;
}

.m-goal-still img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
}

.m-goal-still[hidden] {
  display: none !important;
}

.m-goal-kind {
  position: absolute;
  left: 50%;
  top: 62%;
  z-index: 13;
  transform: translate(-50%, -50%);
  pointer-events: none;
  font-family: var(--display);
  font-size: clamp(1.7rem, 8.5vw, 2.55rem);
  letter-spacing: 0.22em;
  line-height: 1;
  white-space: nowrap;
  color: #ffe14a;
  -webkit-text-stroke: 1px rgba(20, 12, 0, 0.75);
  text-shadow:
    0 0 14px rgba(255, 196, 60, 0.85),
    0 8px 0 #7a3a00,
    0 14px 24px rgba(0, 0, 0, 0.55);
}

.m-goal-kind::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -0.42em;
  width: 2.4em;
  height: 2px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, #ffe14a, transparent);
  box-shadow: 0 0 10px rgba(255, 225, 74, 0.8);
}

.m-goal-kind[data-kind="rove"] {
  color: #ffd24a;
  letter-spacing: 0.14em;
}

.m-goal-kind[data-kind="tribela"] {
  color: #f4f7ff;
  text-shadow:
    0 0 16px rgba(140, 210, 255, 0.9),
    0 8px 0 #1a3a66,
    0 14px 24px rgba(0, 0, 0, 0.55);
}

.m-goal-kind[data-kind="vole"] {
  color: #7ad4ff;
  text-shadow:
    0 0 16px rgba(80, 190, 255, 0.95),
    0 8px 0 #0b3a5c,
    0 14px 24px rgba(0, 0, 0, 0.55);
}

.m-goal-kind[hidden] {
  display: none !important;
}

.mpitch-wm,
.pitch-wm {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 48%;
  max-width: 220px;
  pointer-events: none;
  z-index: 1;
  opacity: 0.62;
  mix-blend-mode: screen;
}

.mpitch-wm img,
.pitch-wm img {
  display: block;
  width: 100%;
  height: auto;
}

.m-float {
  position: absolute;
  z-index: 8;
}

.m-tac,
.m-spd {
  background: rgba(16, 16, 16, 0.82);
  border: 1px solid var(--line);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 0.4rem 0.65rem;
  border-radius: 10px;
  min-height: 0;
  width: auto;
}

.m-tac {
  top: 10px;
  left: 26px;
}

.m-spd {
  right: 0.55rem;
  bottom: 10px;
}

.m-banner {
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--lime);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  padding: 0.34rem 0.9rem;
  border-radius: 999px;
  pointer-events: none;
  box-shadow: 0 0 18px rgba(238, 119, 2, 0.55);
  animation: banner-pulse 1.4s ease-in-out infinite;
}

.m-banner[hidden] {
  display: none !important;
}

.m-card {
  flex-shrink: 0;
  margin-top: 0.35rem;
  background: #1a1a1a;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0.4rem 0.6rem 0.38rem;
}

.m-card-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.4rem;
}

.m-card-t {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--display);
  font-size: 1.7rem;
  letter-spacing: 0.04em;
  line-height: 1;
}

.m-card-t.r {
  justify-content: flex-end;
}

.m-card-t .crest {
  width: 44px;
  height: 44px;
  min-width: 44px;
  padding: 4px;
}

.m-card-t .crest.mini {
  width: 44px;
  height: 44px;
  min-width: 44px;
  padding: 4px;
}

.m-card-mid {
  text-align: center;
}

.m-card-score {
  font-family: var(--display);
  font-size: 1.45rem;
  line-height: 1;
}

.m-card-min {
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--mute);
}

.m-card-phase {
  margin-top: 0.14rem;
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--lime);
  line-height: 1;
}

.m-card-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem;
  margin-top: 0.5rem;
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--mute);
  text-align: center;
}

.m-card-stats b {
  display: block;
  margin-top: 0.1rem;
  color: #fff;
  font-size: 0.78rem;
}

.m-prog {
  margin-top: 0.45rem;
  height: 4px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.m-prog i {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--lime);
  border-radius: 99px;
  box-shadow: 0 0 8px rgba(238, 119, 2, 0.7);
  transition: width 0.4s linear;
}

.m-ticker {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.4rem;
  padding: 0.45rem 0.2rem 0.1rem;
  font-size: 0.78rem;
  font-weight: 700;
  min-height: 1.6rem;
}

.m-live {
  flex-shrink: 0;
  background: #d32f2f;
  color: #fff;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  padding: 0.22rem 0.4rem 0.22rem 0.55rem;
  border-radius: 4px;
  animation: live-badge 1.15s ease-in-out infinite;
  box-shadow: 0 0 12px rgba(211, 47, 47, 0.55);
}

.m-live::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 0.28rem;
  border-radius: 50%;
  background: #fff;
  vertical-align: 0.05em;
  animation: live-dot 0.9s ease-in-out infinite;
}

.m-ticker #mFeed {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.m-zonebar {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.28rem;
  padding: 0.28rem 0.2rem 0.06rem;
  font-family: var(--display);
  font-size: 1.9rem;
  letter-spacing: 0.04em;
  color: var(--lime);
  line-height: 1;
  min-height: 1.7rem;
  text-align: center;
}

.m-zonebar i {
  font-style: normal;
}

.zone {
  color: var(--lime);
}

.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.7rem;
  counter-reset: st;
}

.steps li {
  counter-increment: st;
  padding: 0.9rem 0.95rem 0.95rem 3.1rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  position: relative;
  color: var(--mute);
  line-height: 1.45;
}

.steps li b {
  color: var(--cream);
}

.steps li::before {
  content: counter(st);
  position: absolute;
  left: 0.85rem;
  top: 0.9rem;
  width: 1.6rem;
  height: 1.6rem;
  display: grid;
  place-items: center;
  background: var(--lime);
  color: #fff;
  font-family: var(--display);
  font-size: 0.95rem;
}

.how-lead {
  color: var(--mute);
  line-height: 1.5;
  margin: 0 0 0.85rem;
  font-size: 0.92rem;
}

.how-h {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lime);
  margin: 1.25rem 0 0.55rem;
}

.how-prizes {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
  margin: 0.2rem 0 0.85rem;
}

.how-prizes th,
.how-prizes td {
  text-align: left;
  padding: 0.5rem 0.4rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  line-height: 1.35;
}

.how-prizes th {
  color: var(--mute);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.how-prizes td:last-child {
  color: var(--cream);
  font-weight: 700;
}

.how-note {
  padding: 0.85rem 0.95rem;
  border-radius: 16px;
  border: 1px solid var(--line);
  color: var(--mute);
  line-height: 1.45;
  margin: 0.35rem 0 0.6rem;
  font-size: 0.88rem;
}

.how-note b {
  color: var(--cream);
}

.table {
  display: grid;
  gap: 0.35rem;
}

.trow {
  display: grid;
  grid-template-columns: 2rem 1fr auto;
  gap: 0.5rem;
  align-items: center;
  padding: 0.65rem 0.7rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
}

.trow:nth-child(odd) {
  background: rgba(238, 119, 2, 0.08);
}

.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.stat-grid div {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.8rem;
}

.stat-grid b {
  font-family: var(--display);
  font-size: 1.6rem;
  color: var(--lime);
}

.stat-grid span {
  display: block;
  color: var(--mute);
  font-size: 0.75rem;
  font-weight: 700;
}

.overlay,
.sheet {
  position: absolute;
  inset: 0;
  background: rgba(20, 20, 20, 0.78);
  z-index: 40;
  display: grid;
  place-items: end center;
  padding: 0.55rem;
}

.overlay {
  place-items: center;
}

.sheet[hidden],
.overlay[hidden] {
  display: none !important;
}

.sheet-card,
.pick,
.place,
.tac,
.board {
  width: 100%;
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 0.9rem;
  max-height: min(86%, 720px);
  overflow: auto;
}

.sheet-h {
  font-family: var(--display);
  font-size: 1.3rem;
  margin-bottom: 0.7rem;
}

.tog {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
  font-weight: 700;
}

.board {
  text-align: center;
  padding: 1.4rem 0.9rem 1.5rem;
  overflow: hidden;
}

.board-h {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--lime);
  font-weight: 800;
}

.wheel-orb {
  width: 178px;
  height: 178px;
  margin: 1.15rem auto 1rem;
  border-radius: 50%;
  background: #fff;
  box-shadow:
    0 0 0 7px var(--lime),
    0 0 0 12px rgba(238, 119, 2, 0.22),
    0 0 36px rgba(238, 119, 2, 0.45);
  display: grid;
  place-items: center;
  overflow: hidden;
  animation: orb-glow 2.2s ease-in-out infinite;
}

.wheel-orb .crest {
  width: 100%;
  height: 100%;
  min-width: 0;
  border-radius: 50%;
  padding: 20px;
  background: #fff;
}

.wheel-orb .crest img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.wheel-orb.pop .crest {
  animation: wheelFlash 0.08s ease;
}

@keyframes wheelFlash {
  from {
    transform: scale(0.62);
    opacity: 0.4;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.board-era {
  font-family: var(--display);
  font-size: 2rem;
  letter-spacing: 0.04em;
  color: var(--cream);
  line-height: 1;
  margin: 0;
  font-weight: 400;
}

.board-range {
  margin-top: 0.35rem;
  color: var(--lime);
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.board-club {
  margin-top: 0.45rem;
  font-weight: 800;
  color: var(--cream);
}

.pick {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0.85rem 0.7rem 0.75rem;
}

.pick-h {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.55rem;
}

.pick-id {
  min-width: 0;
}

.pick-club {
  font-family: var(--display);
  font-size: 1.35rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.pick-club .crest {
  width: 36px;
  height: 36px;
  min-width: 36px;
}

.poz-count {
  flex-shrink: 0;
  font-size: 0.68rem;
  font-weight: 800;
  color: #fff;
  background: var(--lime);
  border-radius: 999px;
  padding: 0.32rem 0.55rem;
  white-space: nowrap;
}

.pick-era,
.place-pos {
  color: var(--mute);
  font-size: 0.78rem;
  font-weight: 700;
  margin-top: 0.15rem;
}

.td-card {
  pointer-events: none;
  cursor: default;
}

.need {
  display: flex;
  flex-wrap: wrap;
  gap: 0.28rem;
  margin-bottom: 0.55rem;
}

.need span {
  font-size: 0.62rem;
  font-weight: 800;
  padding: 0.22rem 0.4rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--mute);
  background: rgba(255, 255, 255, 0.04);
}

.need span.open {
  color: #fff;
  background: var(--lime);
  border-color: var(--lime);
}

.roster {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem;
  overflow-y: auto;
  min-height: 0;
  flex: 1;
  padding-bottom: 0.2rem;
}

.rowp {
  display: grid;
  grid-template-columns: 1.65rem 36px minmax(0, 1fr) auto;
  gap: 0.32rem;
  align-items: center;
  padding: 0.42rem 0.38rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  text-align: left;
  width: 100%;
  min-width: 0;
  background: rgba(255, 255, 255, 0.03);
}

.rowp.fit {
  border-color: rgba(238, 119, 2, 0.45);
}

.rowp.star {
  border-color: #e8b84a;
  box-shadow: 0 0 0 1px rgba(232, 184, 74, 0.28);
}

.rowp .id {
  display: grid;
  gap: 0.08rem;
  min-width: 0;
}

.rowp .ov {
  font-family: var(--display);
  color: var(--lime);
  font-size: 1.05rem;
  line-height: 1;
}

.rowp .nm {
  font-weight: 800;
  font-size: 0.68rem;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rowp .ps {
  display: block;
  color: var(--mute);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.rowp .face {
  width: 36px;
  height: 36px;
  border-radius: 6px;
}

.badge {
  font-size: 0.52rem;
  font-weight: 800;
  color: #fff;
  background: var(--lime);
  padding: 0.18rem 0.28rem;
  border-radius: 999px;
  white-space: nowrap;
}

.pick-foot {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
  margin-top: 0.65rem;
}

.place-h {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.place-name {
  font-family: var(--display);
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.place-tip {
  font-size: 0.8rem;
  color: var(--lime);
  font-weight: 700;
}

#ovHt {
  background:
    radial-gradient(ellipse 120% 55% at 50% -8%, rgba(15, 75, 44, 0.42) 0%, transparent 58%),
    radial-gradient(circle at 50% 100%, rgba(233, 195, 73, 0.08), transparent 45%),
    rgba(12, 15, 15, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  place-items: center;
  padding: 1rem 0.85rem;
  overflow: auto;
}

.ht {
  width: min(100%, 420px);
  margin: 0 auto;
  text-align: center;
  display: grid;
  justify-items: stretch;
  gap: 0.85rem;
  padding: 0.35rem 0 0.5rem;
  animation: ht-in 0.45s ease both;
}

@keyframes ht-in {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.ht-board,
.ht-stats-card {
  position: relative;
  background: rgba(30, 32, 32, 0.82);
  border: 1px solid rgba(64, 73, 66, 0.45);
  border-radius: 12px;
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  overflow: hidden;
}

.ht-board {
  padding: 1rem 0.85rem 1.1rem;
  display: grid;
  gap: 0.95rem;
  justify-items: center;
}

.ht-board::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, #e9c349 20%, #ffe088 50%, #e9c349 80%, transparent);
  box-shadow: 0 0 12px rgba(233, 195, 73, 0.45);
}

.ht-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(233, 195, 73, 0.35);
  background: #333535;
  color: #e9c349;
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ht-badge-ico {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
}

.ht-scoreline {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.45rem;
}

.ht-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0.4rem;
  min-width: 0;
}

.ht-crest {
  width: 64px;
  height: 64px;
  border-radius: 999px;
  border: 2px solid rgba(226, 226, 226, 0.55);
  background: #1e2020;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex: 0 0 64px;
  box-sizing: border-box;
}

.ht-side.is-away .ht-crest {
  border-color: rgba(226, 226, 226, 0.55);
  box-shadow: none;
  opacity: 1;
}

.ht-crest .crest {
  width: 44px;
  height: 44px;
  min-width: 44px;
  padding: 3px;
  margin: 0;
  background: #fff;
  border-radius: 50%;
}

.ht-crest .crest img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.ht-name {
  font-family: var(--display);
  font-size: 1.15rem;
  letter-spacing: 0.06em;
  color: #e2e2e2;
  line-height: 1.1;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: center;
}

.ht-side.is-away .ht-name {
  color: #e2e2e2;
  opacity: 1;
}

.ht-scorebox {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0 0.15rem;
  min-width: 5.5rem;
}

.ht-n {
  font-family: var(--display);
  font-size: clamp(2.8rem, 12vw, 3.6rem);
  line-height: 0.9;
  color: #fff;
  min-width: 0.85em;
  text-align: center;
}

.ht-n.is-away,
.ht-n.is-home,
.ht-n.is-lead,
.ht-n.is-trail {
  color: #fff;
  text-shadow: none;
}

.ht-dash {
  font-family: var(--display);
  font-size: 1.7rem;
  color: rgba(192, 201, 191, 0.45);
  line-height: 1;
}

.ht-stats-card {
  padding: 0.9rem 0.95rem 1rem;
  display: grid;
  gap: 0.85rem;
}

.ht-stats-card[hidden] {
  display: none !important;
}

.ht-stats-title {
  margin: 0;
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: #c0c9bf;
  text-transform: uppercase;
}

.ht-stat {
  display: grid;
  gap: 0.35rem;
}

.ht-stat-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.4rem;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.92rem;
  font-weight: 600;
}

.ht-stat-h {
  color: #99d4aa;
  text-align: left;
}

.ht-stat-a {
  color: #c0c9bf;
  text-align: right;
}

.ht-stat-label {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  color: #e2e2e2;
  text-align: center;
}

.ht-bar {
  height: 8px;
  border-radius: 999px;
  background: #333535;
  overflow: hidden;
  display: flex;
}

.ht-bar > i {
  display: block;
  height: 100%;
  background: #99d4aa;
  border-radius: 999px 0 0 999px;
  transition: width 0.45s ease;
}

.ht-bar-split {
  gap: 0.35rem;
  background: transparent;
  overflow: visible;
}

.ht-bar-h,
.ht-bar-a {
  flex: 1;
  height: 100%;
  border-radius: 999px;
  background: #333535;
  overflow: hidden;
  display: flex;
}

.ht-bar-h {
  justify-content: flex-end;
}

.ht-bar-h i,
.ht-bar-a i {
  display: block;
  height: 100%;
  width: 0;
  transition: width 0.45s ease;
}

.ht-bar-h i {
  background: #99d4aa;
  border-radius: 999px 0 0 999px;
}

.ht-bar-a i {
  background: #8a938a;
  border-radius: 0 999px 999px 0;
}

.ht-note {
  margin: 0.15rem 0 0;
  font-size: 0.8rem;
  font-weight: 700;
  color: #e9c349;
}

.ht-note[hidden] {
  display: none !important;
}

.ht-go {
  position: relative;
  overflow: hidden;
  width: 100%;
  min-height: 52px;
  margin-top: 0.15rem;
  padding: 0.7rem 1.2rem;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  font-family: var(--display);
  font-size: 1.35rem;
  letter-spacing: 0.08em;
  color: #241a00;
  background: #e9c349;
  box-shadow: 0 0 22px rgba(233, 195, 73, 0.32);
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.ht-go:hover {
  box-shadow: 0 0 30px rgba(233, 195, 73, 0.48);
}

.ht-go:active {
  transform: scale(0.97);
}

.ht-go-ico {
  width: 1.15rem;
  height: 1.15rem;
}

#ovHt.is-champ {
  background:
    radial-gradient(circle at 50% 18%, rgba(233, 195, 73, 0.28), transparent 42%),
    radial-gradient(ellipse 120% 55% at 50% -8%, rgba(15, 75, 44, 0.35) 0%, transparent 58%),
    rgba(12, 15, 15, 0.94);
}

#ovHt.is-champ .ht-board::before {
  height: 4px;
  box-shadow: 0 0 18px rgba(233, 195, 73, 0.7);
}

#ovHt.is-ft-win .ht-badge {
  border-color: rgba(153, 212, 170, 0.4);
  color: #99d4aa;
}

#ovHt.is-ft-loss .ht-badge {
  border-color: rgba(255, 180, 171, 0.35);
  color: #ffb4ab;
}

.ht-champ {
  display: grid;
  justify-items: center;
  gap: 0.25rem;
  padding: 0.85rem 0.9rem;
  border-radius: 12px;
  border: 1px solid rgba(233, 195, 73, 0.35);
  background: rgba(30, 32, 32, 0.82);
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.08);
}

.ht-champ[hidden] {
  display: none !important;
}

.ht-champ-lead {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 800;
  color: #fff;
}

.ht-champ-prize {
  font-family: var(--display);
  font-size: 3.1rem;
  line-height: 1;
  color: #e9c349;
  text-shadow: 0 0 22px rgba(233, 195, 73, 0.5);
}

.ht-champ-note {
  margin: 0.1rem 0 0;
  font-size: 0.95rem;
  font-weight: 800;
  color: #ffe088;
}

@media (max-width: 380px) {
  .ht-crest {
    width: 54px;
    height: 54px;
    flex-basis: 54px;
  }

  .ht-crest .crest {
    width: 36px;
    height: 36px;
    min-width: 36px;
  }

  .ht-n {
    font-size: 2.55rem;
  }
}

.vs {
  width: 100%;
  background: none;
  border: 0;
  padding: 0;
  display: grid;
  justify-items: center;
  gap: 2.6rem;
  text-align: center;
  color: inherit;
}

.vs-round {
  font-family: var(--display);
  font-size: 1.2rem;
  letter-spacing: 0.14em;
  color: #fff;
  border: 1.5px solid var(--lime);
  border-radius: 999px;
  padding: 0.38rem 1.2rem;
  line-height: 1;
}

.vs-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.35rem;
  width: 100%;
}

.vs-x {
  font-family: var(--display);
  font-size: 2.7rem;
  color: var(--lime);
  letter-spacing: 0.08em;
  text-shadow: 0 0 22px rgba(238, 119, 2, 0.4);
  line-height: 1;
}

.vs-side {
  display: grid;
  justify-items: center;
  gap: 0.4rem;
}

.vs-side .crest {
  width: 88px;
  height: 88px;
  min-width: 88px;
  padding: 8px;
}

.vs-side .nm {
  font-family: var(--display);
  font-size: 1.85rem;
  letter-spacing: 0.06em;
  line-height: 1;
}

.vs-side .ov {
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.vs-side .ov b {
  color: var(--lime);
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 400;
  letter-spacing: 0.04em;
}

.vs-tap {
  color: #8a8a8a;
  font-size: 0.84rem;
  font-weight: 600;
  animation: tap-hint 1.6s ease-in-out infinite;
}

.tac-xi,
.tac-bench {
  display: grid;
  gap: 0.3rem;
  margin-bottom: 0.6rem;
}

@keyframes logo-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@keyframes logo-spin {
  0%,
  100% {
    transform: rotate(-6deg) scale(1);
  }
  50% {
    transform: rotate(8deg) scale(1.06);
  }
}

@keyframes logo-aura {
  0%,
  100% {
    opacity: 0.45;
    transform: scale(0.92);
  }
  50% {
    opacity: 1;
    transform: scale(1.08);
  }
}

@keyframes brand-pulse {
  0%,
  100% {
    filter: drop-shadow(0 0 6px rgba(238, 119, 2, 0.3));
    transform: scale(1);
  }
  50% {
    filter: drop-shadow(0 0 14px rgba(238, 119, 2, 0.7));
    transform: scale(1.06);
  }
}

@keyframes shine {
  0%,
  55% {
    transform: translateX(-130%);
  }
  80%,
  100% {
    transform: translateX(130%);
  }
}

@keyframes btn-glow {
  0%,
  100% {
    box-shadow: 0 8px 22px rgba(238, 119, 2, 0.32);
  }
  50% {
    box-shadow: 0 10px 32px rgba(238, 119, 2, 0.62);
  }
}

@keyframes live-dot {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.25;
    transform: scale(0.7);
  }
}

@keyframes live-badge {
  0%,
  100% {
    box-shadow: 0 0 8px rgba(211, 47, 47, 0.4);
    filter: brightness(1);
  }
  50% {
    box-shadow: 0 0 18px rgba(211, 47, 47, 0.9);
    filter: brightness(1.15);
  }
}

@keyframes banner-pulse {
  0%,
  100% {
    box-shadow: 0 0 14px rgba(238, 119, 2, 0.4);
  }
  50% {
    box-shadow: 0 0 26px rgba(238, 119, 2, 0.85);
  }
}

@keyframes orb-glow {
  0%,
  100% {
    box-shadow:
      0 0 0 7px var(--lime),
      0 0 0 12px rgba(238, 119, 2, 0.22),
      0 0 28px rgba(238, 119, 2, 0.35);
  }
  50% {
    box-shadow:
      0 0 0 7px var(--lime),
      0 0 0 14px rgba(238, 119, 2, 0.4),
      0 0 48px rgba(238, 119, 2, 0.65);
  }
}

@keyframes tap-hint {
  0%,
  100% {
    opacity: 0.55;
  }
  50% {
    opacity: 1;
  }
}

@keyframes kicker-glow {
  0%,
  100% {
    text-shadow: 0 0 0 transparent;
  }
  50% {
    text-shadow: 0 0 12px rgba(238, 119, 2, 0.7);
  }
}

@keyframes act-pop {
  0% {
    opacity: 0;
    transform: translateX(-50%) translateY(8px) scale(0.55);
  }
  18% {
    opacity: 1;
    transform: translateX(-50%) translateY(-2px) scale(1.18);
  }
  70% {
    opacity: 1;
    transform: translateX(-50%) translateY(-8px) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateX(-50%) translateY(-16px) scale(0.95);
  }
}

@keyframes ball-bounce {
  0% {
    transform: translateY(0) scale(1, 1);
  }
  40% {
    transform: translateY(-3px) scale(0.96, 1.04);
  }
  100% {
    transform: translateY(0) scale(1, 1);
  }
}

@keyframes ball-shadow {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.35;
  }
  30% {
    transform: scale(0.7);
    opacity: 0.18;
  }
  55% {
    transform: scale(1.15);
    opacity: 0.45;
  }
}

@keyframes run-leg {
  0%,
  100% {
    transform: rotate(28deg);
  }
  50% {
    transform: rotate(-38deg);
  }
}

@keyframes run-arm {
  0%,
  100% {
    transform: rotate(32deg);
  }
  50% {
    transform: rotate(-28deg);
  }
}

@keyframes run-bob {
  0%,
  100% {
    transform: rotate(var(--run-rot, 0deg)) translateY(0);
  }
  50% {
    transform: rotate(var(--run-rot, 0deg)) translateY(2px);
  }
}

@keyframes gk-ready {
  0%,
  100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(3px);
  }
}

@keyframes gk-dive-l {
  0% {
    transform: rotate(0) translate(0, 0);
  }
  35% {
    transform: rotate(-58deg) translate(-16px, -12px);
  }
  100% {
    transform: rotate(-78deg) translate(-26px, 6px);
  }
}

@keyframes gk-dive-r {
  0% {
    transform: rotate(0) translate(0, 0);
  }
  35% {
    transform: rotate(58deg) translate(16px, -12px);
  }
  100% {
    transform: rotate(78deg) translate(26px, 6px);
  }
}

@keyframes gk-jump {
  0%,
  100% {
    transform: translateY(0) scale(1, 1);
  }
  40% {
    transform: translateY(-18px) scale(0.94, 1.08);
  }
}

@keyframes gk-arms {
  0% {
    transform: rotate(0);
  }
  40% {
    transform: rotate(-70deg);
  }
  100% {
    transform: rotate(-20deg);
  }
}

@keyframes crowd-sway {
  0%,
  100% {
    background-position: 18% 12%, 0 0, 52% 42%, 78% 70%;
  }
  50% {
    background-position: 22% 8%, 2px 2px, 48% 46%, 74% 66%;
  }
}

.crowd.c-left,
.crowd.c-right,
.mpitch .fans.f-left,
.mpitch .fans.f-right {
  animation-name: crowd-sway-y;
}

.crowd.hot.c-left,
.crowd.hot.c-right,
.mpitch .fans.hot.f-left,
.mpitch .fans.hot.f-right {
  animation: crowd-cheer-y 0.28s ease-in-out infinite;
}

@keyframes crowd-sway-y {
  0%,
  100% {
    background-position: 18% 12%, 0 0, 52% 42%, 78% 70%;
  }
  50% {
    background-position: 14% 16%, 0 3px, 56% 38%, 82% 74%;
  }
}

@keyframes crowd-cheer {
  0%,
  100% {
    filter: brightness(1);
    background-position: 18% 12%, 0 0, 52% 42%, 78% 70%;
  }
  50% {
    filter: brightness(1.2);
    background-position: 26% 4%, 3px -2px, 46% 48%, 70% 62%;
  }
}

@keyframes crowd-cheer-y {
  0%,
  100% {
    filter: brightness(1);
    background-position: 18% 12%, 0 0, 52% 42%, 78% 70%;
  }
  50% {
    filter: brightness(1.22);
    background-position: 12% 20%, 0 4px, 58% 34%, 84% 78%;
  }
}

@keyframes pass-line {
  0% {
    stroke-opacity: 0.55;
  }
  100% {
    stroke-opacity: 1;
  }
}

@keyframes recv-pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.85;
  }
  50% {
    transform: scale(1.12);
    opacity: 1;
  }
}

@keyframes kick-leg {
  0% {
    transform: rotate(0);
  }
  40% {
    transform: rotate(-40deg);
  }
  100% {
    transform: rotate(0);
  }
}

@keyframes kind-flare {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.35) translateY(22px);
    filter: blur(6px);
  }
  62% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.08) translateY(0);
    filter: blur(0);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    filter: blur(0);
  }
}

@keyframes kind-glow {
  0%,
  100% {
    filter: drop-shadow(0 0 8px rgba(255, 210, 80, 0.45));
  }
  50% {
    filter: drop-shadow(0 0 18px rgba(255, 230, 120, 0.95));
  }
}

@keyframes goal-kind-in {
  0% {
    opacity: 0;
    transform: scale(0.72) translateY(10px);
    filter: blur(4px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
    filter: blur(0);
  }
}

@keyframes goal-slam-hold-top {
  0% {
    transform: scale(0.25) rotate(-12deg);
    opacity: 0;
  }
  55% {
    transform: scale(1.12) rotate(3deg);
    opacity: 1;
  }
  100% {
    transform: scale(1) rotate(0);
    opacity: 1;
  }
}

@keyframes goal-slam-hold {
  0% {
    transform: translate(-50%, -50%) scale(0.25) rotate(-12deg);
    opacity: 0;
  }
  55% {
    transform: translate(-50%, -50%) scale(1.12) rotate(3deg);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) scale(1) rotate(0);
    opacity: 1;
  }
}

@keyframes goal-slam {
  0% {
    transform: translate(-50%, -50%) scale(0.25) rotate(-12deg);
    opacity: 0;
  }
  18% {
    transform: translate(-50%, -50%) scale(1.22) rotate(4deg);
    opacity: 1;
  }
  38% {
    transform: translate(-50%, -50%) scale(0.96) rotate(-2deg);
  }
  58% {
    transform: translate(-50%, -50%) scale(1.06) rotate(1deg);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) scale(1.08) rotate(0);
    opacity: 0;
  }
}

@keyframes post-slam {
  0% {
    transform: translate(-50%, -50%) scale(0.4) rotate(-6deg);
    opacity: 0;
  }
  22% {
    transform: translate(-50%, -50%) scale(1.16) rotate(3deg);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) scale(0.92) translateY(-10px);
    opacity: 0;
  }
}

@keyframes net-ripple {
  0%,
  100% {
    transform: skewX(0) scaleY(1);
  }
  22% {
    transform: skewX(-7deg) scaleY(1.08);
  }
  48% {
    transform: skewX(6deg) scaleY(0.94);
  }
  72% {
    transform: skewX(-3deg) scaleY(1.03);
  }
}

@keyframes post-wobble-l {
  0%,
  100% {
    transform: rotate(0);
  }
  40% {
    transform: rotate(-6deg);
  }
}

@keyframes post-wobble-r {
  0%,
  100% {
    transform: rotate(0);
  }
  40% {
    transform: rotate(6deg);
  }
}

@keyframes pitch-hit {
  0%,
  100% {
    transform: translate(0);
  }
  25% {
    transform: translate(-3px, 2px);
  }
  55% {
    transform: translate(3px, -2px);
  }
}

@keyframes pitch-boom {
  0%,
  100% {
    transform: scale(1);
  }
  18% {
    transform: scale(1.025);
  }
  40% {
    transform: scale(0.99);
  }
  62% {
    transform: scale(1.012);
  }
}

@keyframes goal-flash {
  0% {
    opacity: 0.9;
  }
  100% {
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-logo,
  .hero-logo img,
  .hero-aura,
  .brand-mark,
  .btn-lime,
  .btn-coral,
  .tile-daily,
  .ht-go,
  .wheel-orb,
  .m-live,
  .mhud-dot,
  .m-banner,
  .vs-tap,
  .kicker,
  .m-goal,
  .m-goal-kind,
  .m-goal-head,
  .m-goalbox,
  .stadium,
  .crowd,
  .pen-fig,
  .pen-flash,
  .pen-net,
  .btn-lime::after,
  .btn-coral::after,
  .tile-daily::after,
  .ht-go::after {
    animation: none !important;
  }
}

@media (min-width: 480px) {
  body {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #121212;
  }

  #app {
    height: min(100dvh, 860px);
    border-radius: 28px;
    box-shadow:
      0 0 0 1px rgba(243, 239, 228, 0.08),
      0 24px 70px rgba(0, 0, 0, 0.55);
  }
}


/* --- Penalty shootout presentation --- */
#scr-match.is-pens .match-stage {
  flex: 1 1 0;
  min-height: 0;
}

#scr-match.is-pens .stadium {
  flex: 1 1 0;
  min-height: 0;
  border-radius: 14px 14px 10px 10px;
}

#scr-match.is-pens .m-card,
#scr-match.is-pens .m-zonebar {
  display: none !important;
}

#scr-match.is-pens .m-tac {
  display: none !important;
}

#scr-match.is-pens .m-spd {
  opacity: 0.6;
}

#scr-match.is-pens .m-world {
  grid-template-columns: 3px minmax(0, 1fr) 3px;
  grid-template-rows: 3px minmax(0, 1fr) 3px;
}

#scr-match.is-pens .mpitch {
  transform-origin: 50% 50%;
}

/* Make the goal / target mouth easier to read in the penalty camera. */
#scr-match.is-pens .m-goalbox {
  width: 31% !important;
  height: 6.8% !important;
  filter: drop-shadow(0 0 5px rgba(255,255,255,0.28));
}

#scr-match.is-pens .m-end-stack {
  display: none;
}

#scr-match.is-pens .match-stage > .m-spd {
  position: absolute !important;
  right: 0.55rem !important;
  bottom: 10px !important;
  top: auto !important;
  left: auto !important;
  opacity: 0.6;
}

#scr-match.is-pens .pl {
  --pen-scale: 1.12;
}

#scr-match.is-pens .pl-disk {
  transform: scale(var(--pen-scale));
}

#scr-match.is-pens .pl.on-ball .pl-name,
#scr-match.is-pens .pl.gk .pl-name {
  display: block;
  font-size: 0.56rem;
  max-width: 76px;
}

.pen-panel {
  position: absolute;
  z-index: 20;
  left: 50%;
  bottom: 0.5rem;
  width: min(94%, 760px);
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: 1fr minmax(130px, 1.25fr) 1fr;
  align-items: center;
  gap: 0.6rem;
  padding: 0.62rem 0.78rem;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(8, 10, 9, 0.88);
  box-shadow: 0 12px 30px rgba(0,0,0,0.28);
  backdrop-filter: blur(7px);
}

.pen-panel[hidden] {
  display: none !important;
}

.pen-team {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.42rem;
  font-family: var(--display);
  letter-spacing: 0.04em;
}

.pen-team.r {
  justify-content: flex-end;
}

.pen-team > b {
  font-size: 1.05rem;
}

.pen-dots {
  display: flex;
  align-items: center;
  gap: 0.24rem;
  flex-wrap: wrap;
}

.pen-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.09);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.22);
}

.pen-dot.goal {
  background: #89f354;
  border-color: #b7ff95;
  box-shadow: 0 0 8px rgba(137,243,84,0.42);
}

.pen-dot.miss {
  background: #ef5050;
  border-color: #ff8888;
  box-shadow: 0 0 8px rgba(239, 80, 80, 0.42);
}

.pen-center {
  min-width: 0;
  text-align: center;
}

.pen-center small {
  display: block;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.15em;
  color: var(--mute);
}

.pen-center strong {
  display: block;
  margin-top: 0.1rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: var(--display);
  font-size: 1.02rem;
  letter-spacing: 0.025em;
  color: #fff;
}

/* Player-specific hair silhouettes. They keep the same look every match. */
.pl.hair-bald .pl-hair {
  display: none;
}

.pl.hair-buzz .pl-hair {
  top: 0;
  left: 2px;
  right: 2px;
  height: 4px;
  border-radius: 6px 6px 2px 2px;
}

.pl.hair-fade .pl-hair {
  top: -2px;
  left: 2px;
  right: 2px;
  height: 8px;
  clip-path: polygon(9% 30%, 28% 4%, 76% 2%, 94% 28%, 84% 100%, 16% 100%);
}

.pl.hair-curly .pl-hair {
  top: -4px;
  left: -1px;
  right: -1px;
  height: 10px;
  border-radius: 50% 50% 35% 35%;
  background:
    radial-gradient(circle at 20% 55%, var(--hair) 0 30%, transparent 32%),
    radial-gradient(circle at 42% 25%, var(--hair) 0 32%, transparent 34%),
    radial-gradient(circle at 66% 28%, var(--hair) 0 34%, transparent 36%),
    radial-gradient(circle at 82% 58%, var(--hair) 0 31%, transparent 33%),
    var(--hair);
}

.pl.hair-crop .pl-hair {
  top: -1px;
  height: 6px;
  border-radius: 4px 4px 1px 1px;
  clip-path: polygon(0 18%, 100% 0, 96% 100%, 3% 100%);
}

.pl.hair-swept .pl-hair {
  top: -3px;
  left: 0;
  right: 1px;
  height: 8px;
  border-radius: 10px 8px 2px 2px;
  transform: skewX(-10deg);
}

.pl.hair-long .pl-hair {
  top: -3px;
  left: -1px;
  right: -1px;
  height: 13px;
  border-radius: 9px 9px 5px 5px;
}

@media (max-width: 620px) {
  .pen-panel {
    width: 96%;
    bottom: 0.3rem;
    grid-template-columns: 1fr 1.15fr 1fr;
    gap: 0.35rem;
    padding: 0.5rem 0.5rem;
  }
  .pen-team > b { font-size: 0.9rem; }
  .pen-dot { width: 9px; height: 9px; }
  .pen-center strong { font-size: 0.9rem; }
}

/* --- Match tactics board --- */
#ovTac {
  background: rgba(8, 10, 9, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 0.42rem;
}

.tac.tac-pro {
  position: relative;
  width: 100%;
  height: min(92%, 790px);
  max-height: min(92%, 790px);
  padding: 0.72rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  background: linear-gradient(180deg, #252925 0%, #171a18 100%);
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 20px 55px rgba(0,0,0,.48);
}

.tac-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: .6rem;
  flex: 0 0 auto;
}

.tac-top .sheet-h {
  margin: 0;
  font-size: 1.55rem;
  line-height: 1;
}

.tac-subhead {
  margin-top: .16rem;
  color: var(--lime);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .03em;
}

.tac-change-pill {
  flex: 0 0 auto;
  padding: .36rem .5rem;
  border: 1px solid rgba(238,119,2,.5);
  border-radius: 999px;
  background: rgba(238,119,2,.12);
  color: #fff;
  font-size: .61rem;
  font-weight: 900;
  letter-spacing: .05em;
}

.tac-help {
  flex: 0 0 auto;
  padding: .42rem .55rem;
  border-radius: 10px;
  background: rgba(255,255,255,.045);
  color: #b9b9b9;
  font-size: .62rem;
  line-height: 1.35;
}

.tac-pitch-wrap {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  justify-content: center;
}

.tac-pitch {
  position: relative;
  width: min(100%, 410px);
  height: 100%;
  min-height: 390px;
  overflow: hidden;
  border: 2px solid rgba(255,255,255,.62);
  border-radius: 15px;
  background:
    linear-gradient(rgba(255,255,255,.62),rgba(255,255,255,.62)) 50% 50%/100% 2px no-repeat,
    radial-gradient(circle at 50% 50%, transparent 0 11%, rgba(255,255,255,.6) 11.2% 11.8%, transparent 12%),
    linear-gradient(90deg, rgba(255,255,255,.04) 50%, transparent 50%) 0 0/22% 100%,
    linear-gradient(180deg, #3f9d45, #2f8239);
  box-shadow: inset 0 0 35px rgba(0,0,0,.18);
}

.tac-pitch::before,
.tac-pitch::after {
  content: "";
  position: absolute;
  left: 23%;
  width: 54%;
  height: 17%;
  border: 2px solid rgba(255,255,255,.58);
  pointer-events: none;
}

.tac-pitch::before { top: -2px; border-top: 0; }
.tac-pitch::after { bottom: -2px; border-bottom: 0; }

.tac-player {
  position: absolute;
  z-index: 2;
  width: 70px;
  min-height: 78px;
  transform: translate(-50%, -50%);
  display: grid;
  justify-items: center;
  align-content: start;
  padding: 0;
  filter: drop-shadow(0 3px 4px rgba(0,0,0,.42));
  transition: transform .14s ease, filter .14s ease;
}

.tac-player:active {
  transform: translate(-50%, -50%) scale(.94);
}

.tac-face-ring {
  position: relative;
  display: block;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 3px solid var(--kit-a, #fff);
  background: #1f211f;
  box-shadow: 0 0 0 2px rgba(0,0,0,.42), 0 4px 10px rgba(0,0,0,.35);
}

.tac-face {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.tac-shirt {
  position: absolute;
  left: 50%;
  bottom: -8px;
  width: 29px;
  height: 16px;
  transform: translateX(-50%);
  border-radius: 8px 8px 4px 4px;
  background: linear-gradient(90deg,var(--kit-b,#fff) 0 18%,var(--kit-a,#fff) 18% 82%,var(--kit-b,#fff) 82%);
  border: 1px solid rgba(0,0,0,.38);
  display: grid;
  place-items: center;
}

.tac-shirt b {
  color: #fff;
  font-size: 0.58rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.04em;
  text-shadow: 0 0 2px #000, 0 1px 1px #000;
}

.tac-role {
  position: absolute;
  top: -3px;
  right: 6px;
  min-width: 23px;
  padding: .12rem .22rem;
  border-radius: 999px;
  background: rgba(15,15,15,.9);
  border: 1px solid rgba(255,255,255,.18);
  color: var(--lime);
  font-size: .48rem;
  font-weight: 900;
  line-height: 1.15;
}

.tac-name {
  max-width: 70px;
  margin-top: 8px;
  padding: .15rem .3rem;
  border-radius: 6px;
  background: rgba(12,14,12,.84);
  color: #fff;
  font-size: .55rem;
  font-weight: 900;
  line-height: 1.05;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tac-ovr {
  margin-top: 2px;
  color: #fff;
  font-family: var(--display);
  font-size: .68rem;
  line-height: 1;
  text-shadow: 0 1px 2px #000;
}

.tac-ovr small { color: #ffd35d; }

.tac-player.picked .tac-face-ring {
  border-color: var(--lime);
  box-shadow: 0 0 0 4px rgba(238,119,2,.28), 0 0 20px rgba(238,119,2,.75);
}

.tac-player.picked .tac-name {
  background: var(--lime);
  color: #111;
}

.tac-footer {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  align-items: center;
  gap: .45rem;
}

.tac-selection {
  min-width: 0;
  padding: .42rem .5rem;
  color: #c8c8c8;
  background: rgba(255,255,255,.045);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px;
  font-size: .58rem;
  font-weight: 700;
  line-height: 1.25;
}

.tac-continue {
  width: auto;
  min-width: 96px;
  padding-inline: .7rem;
  white-space: nowrap;
}

.tac-bench-toggle {
  position: absolute;
  right: .72rem;
  bottom: 4.65rem;
  z-index: 7;
  display: flex;
  align-items: center;
  gap: .46rem;
  min-width: 142px;
  padding: .52rem .62rem;
  border-radius: 14px;
  background: #f0f0f0;
  color: #161616;
  box-shadow: 0 8px 24px rgba(0,0,0,.42);
  text-align: left;
}

.tac-bench-toggle b {
  display: block;
  font-size: .66rem;
  line-height: 1.1;
}

.tac-bench-toggle small {
  display: block;
  margin-top: 2px;
  color: #606060;
  font-size: .51rem;
  font-weight: 700;
}

.tac-bench-icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  border-radius: 9px;
  background: var(--lime);
  color: #111;
  font-weight: 1000;
}

.tac-bench-drawer {
  position: absolute;
  z-index: 12;
  right: .58rem;
  bottom: .58rem;
  width: min(86%, 335px);
  max-height: 58%;
  overflow: hidden;
  border-radius: 16px;
  background: #222622;
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: 0 16px 45px rgba(0,0,0,.62);
}

.tac-bench-drawer[hidden] { display: none !important; }

.tac-bench-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: .5rem;
  padding: .65rem .7rem .52rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
}

.tac-bench-head b {
  display: block;
  font-family: var(--display);
  font-size: 1.05rem;
  letter-spacing: .04em;
}

.tac-bench-head small {
  display: block;
  margin-top: 2px;
  color: #999;
  font-size: .55rem;
}

#btnTacBenchClose {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: rgba(255,255,255,.08);
  font-size: 1.15rem;
  line-height: 1;
}

.tac-bench {
  display: grid;
  gap: .35rem;
  margin: 0;
  padding: .5rem;
  max-height: 230px;
  overflow: auto;
}

.tac-bench-player {
  display: grid;
  grid-template-columns: 42px minmax(0,1fr) 36px;
  align-items: center;
  gap: .5rem;
  width: 100%;
  padding: .42rem;
  border-radius: 11px;
  border: 1px solid rgba(255,255,255,.09);
  background: rgba(255,255,255,.045);
  text-align: left;
}

.tac-bench-player.picked {
  border-color: var(--lime);
  background: rgba(238,119,2,.14);
}

.tac-bench-player:disabled {
  opacity: .42;
  cursor: not-allowed;
}

.tac-bench-face .face {
  width: 42px;
  height: 42px;
  border-radius: 9px;
}

.tac-bench-info {
  min-width: 0;
}

.tac-bench-info b,
.tac-bench-info small {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tac-bench-info b {
  font-size: .66rem;
}

.tac-bench-info small {
  margin-top: 2px;
  color: #969696;
  font-size: .52rem;
}

.tac-bench-ovr {
  font-family: var(--display);
  color: var(--lime);
  font-size: 1.05rem;
  text-align: center;
}

.tac-empty {
  padding: 1rem;
  color: #999;
  text-align: center;
  font-size: .65rem;
}

@media (max-height: 700px) {
  .tac.tac-pro { height: 95%; max-height: 95%; }
  .tac-help { display: none; }
  .tac-pitch { min-height: 330px; }
  .tac-player { transform: translate(-50%,-50%) scale(.9); }
  .tac-player:active { transform: translate(-50%,-50%) scale(.84); }
  .tac-bench-toggle { bottom: 4.1rem; }
}

@media (max-width: 380px) {
  .tac-pitch { min-height: 360px; }
  .tac-player { width: 62px; }
  .tac-face-ring { width: 41px; height: 41px; }
  .tac-name { max-width: 62px; font-size: .51rem; }
  .tac-role { right: 3px; }
  .tac-bench-toggle { min-width: 128px; padding: .46rem .5rem; }
}

/* Penalty taker ordering */
#ovPenOrder {
  place-items: center;
  padding: 0.4rem;
  overflow: hidden;
}
.pen-order-card {
  width: min(100%, 420px);
  max-height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #101217;
  border: 1px solid #2c313b;
  border-radius: 16px;
  padding: 10px 10px 8px;
  box-shadow: 0 16px 40px #000a;
}
.pen-order-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: flex-start;
  margin-bottom: 8px;
  flex: 0 0 auto;
}
.pen-order-sub { font-size: 11px; color: #aeb5c0; margin-top: 2px; }
.pen-order-legend { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.pwr { font-size: 9px; font-weight: 900; padding: 3px 6px; border-radius: 999px; }
.pwr.good { background: #1e6d38; color: #bfffd0; }
.pwr.mid { background: #7a4e11; color: #ffe1a5; }
.pwr.low { background: #702727; color: #ffc0c0; }
.pen-order-list {
  display: grid;
  gap: 4px;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.pen-order-row {
  display: grid;
  grid-template-columns: 22px 28px 1fr auto 48px;
  gap: 6px;
  align-items: center;
  padding: 4px 6px;
  border-radius: 10px;
  background: #171a20;
  border: 1px solid #292e37;
}
.pen-order-row.top5 { border-color: #5f7d26; background: #182018; }
.pen-order-num { font-weight: 900; text-align: center; color: #d8ff70; font-size: 12px; }
.pen-order-face img, .pen-order-face { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.pen-order-name b { display: block; font-size: 12px; line-height: 1.15; }
.pen-order-name small { color: #8f98a5; font-size: 10px; }
.pen-order-power {
  font-weight: 900;
  font-size: 10px;
  padding: 4px 5px;
  border-radius: 7px;
  min-width: 44px;
  text-align: center;
}
.pen-order-power.good { background: #173d24; color: #71f49a; }
.pen-order-power.mid { background: #4b3614; color: #ffc85f; }
.pen-order-power.low { background: #431d1d; color: #ff7d7d; }
.pen-order-move { display: flex; gap: 3px; }
.pen-order-move button {
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 7px;
  background: #252a33;
  color: #fff;
  font-weight: 900;
  font-size: 11px;
}
.pen-order-note { font-size: 10px; color: #89919c; margin: 8px 0 8px; flex: 0 0 auto; }
#ovPenOrder .btn-lime { flex: 0 0 auto; width: 100%; padding: 0.72rem 0.6rem; }
@media (max-width: 520px) {
  .pen-order-card { padding: 8px; }
  .pen-order-row { grid-template-columns: 20px 26px 1fr auto 46px; }
  .pen-order-head { display: block; }
  .pen-order-legend { justify-content: flex-start; margin-top: 4px; }
}


/* --- Penalty shoot scene --- */
#scr-pen.screen.is-on {
  display: flex !important;
  flex-direction: column;
  height: 100%;
  max-height: 100%;
  overflow: hidden;
  padding: 0 0 calc(118px + env(safe-area-inset-bottom));
}

.pen-hud {
  position: relative;
  z-index: 4;
  flex: 0 0 auto;
  padding: 0.5rem 0.7rem 0.4rem;
  background: linear-gradient(180deg, rgba(10, 12, 14, 0.94), rgba(10, 12, 14, 0.42) 78%, transparent);
}

.pen-board {
  display: grid;
  gap: 0.38rem;
  padding: 0.5rem 0.55rem;
  background: rgba(0, 0, 0, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
}

.pen-board-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
}

.pen-board-row.is-kick {
  background: rgba(238, 119, 2, 0.1);
  border-radius: 12px;
  margin: 0 -0.2rem;
  padding: 0.18rem 0.2rem;
}

.pen-board-crest {
  display: grid;
  place-items: center;
}

.pen-board-crest .crest {
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14);
}

.pen-board-row.is-kick .crest {
  box-shadow: 0 0 0 2px #ee7702, 0 0 10px rgba(238, 119, 2, 0.4);
}

.pen-board-dots {
  display: flex;
  gap: 7px;
  row-gap: 6px;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  min-width: 0;
}

.pen-board-dots .pen-dot {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  background: #141414;
  border: 1.5px solid rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.7);
}

.pen-board-dots .pen-dot.sd:not(.goal):not(.miss) {
  animation: pen-dot-in 0.28s ease;
}

@keyframes pen-dot-in {
  from { transform: scale(0.35); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.pen-board-dots .pen-dot.goal {
  background: #5dff4a;
  border-color: #c8ff9e;
  box-shadow: 0 0 10px rgba(93, 255, 74, 0.78), inset 0 0 6px rgba(255, 255, 255, 0.45);
}

.pen-board-dots .pen-dot.miss {
  background: #ff3b3b;
  border-color: #ff9a9a;
  box-shadow: 0 0 10px rgba(255, 59, 59, 0.72), inset 0 0 6px rgba(255, 255, 255, 0.28);
}

.pen-board-num {
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1;
  min-width: 1.1rem;
  text-align: right;
}

.pen-board-turn {
  margin-top: 0.38rem;
  text-align: center;
}

.pen-kicker-lab {
  font-family: var(--display);
  font-size: 1.12rem;
  letter-spacing: 0.08em;
  line-height: 1.1;
}

.pen-vs {
  display: block;
  color: #ffb56a;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0 0 0.12rem;
}

#scr-pen .pen-dock {
  padding: 0.45rem 0.75rem calc(0.5rem + env(safe-area-inset-bottom));
  gap: 0.45rem;
  background: linear-gradient(180deg, transparent 0%, rgba(12, 14, 16, 0.5) 16%, rgba(14, 14, 16, 0.97) 46%);
}

.pen-dock-head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.7rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
}

.pen-role {
  flex-shrink: 0;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  padding: 0.38rem 0.52rem;
  border-radius: 8px;
  background: rgba(238, 119, 2, 0.22);
  color: #ffb56a;
  border: 1px solid rgba(238, 119, 2, 0.42);
}

.pen-role.is-dive {
  background: rgba(80, 160, 255, 0.18);
  color: #9ecbff;
  border-color: rgba(80, 160, 255, 0.38);
}

#scr-pen .pen-dock .prog {
  text-align: left;
  flex: 1;
  font-size: 0.84rem;
  font-weight: 700;
  color: #ececec;
  line-height: 1.25;
}

.pen-view {
  position: relative;
  flex: 1 1 auto;
  min-height: 340px;
  overflow: hidden;
  background:
    linear-gradient(180deg, #15261e 0 18.2%, #4aa43c 18.2% 100%);
}

.pen-sky {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 32%;
  background: linear-gradient(180deg, #152033, #2a4a66 72%, #3d5c48);
  z-index: 0;
}

.pen-stands {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 28%;
  z-index: 1;
  background:
    repeating-linear-gradient(90deg, #1a2e24 0 18px, #15261e 18px 36px),
    linear-gradient(180deg, #0f1c16, #1a3226);
  box-shadow: inset 0 -16px 24px rgba(0, 0, 0, 0.35);
}

.pen-led {
  position: absolute;
  left: 0;
  right: 0;
  top: 11%;
  height: 7.2%;
  z-index: 2;
  overflow: hidden;
  background: #2c2c2c;
  border: 0;
  border-radius: 0;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 2px 0 #1a1a1a,
    0 8px 16px rgba(0, 0, 0, 0.35);
}

.pen-led-track {
  display: flex;
  align-items: center;
  gap: 2.4rem;
  height: 100%;
  width: max-content;
  padding: 0 1.2rem;
  animation: pen-led-marquee 16s linear infinite;
}

.pen-led-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex: 0 0 auto;
}

.pen-led-item img {
  height: 16px;
  width: auto;
  max-width: 92px;
  object-fit: contain;
}

.pen-led-item b {
  font-family: var(--display);
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  color: #ee7702;
  white-space: nowrap;
}

.pen-world {
  position: absolute;
  inset: 0;
  z-index: 4;
}

.pen-view.is-run .pen-world,
.pen-view.is-fly .pen-world {
  transform: scale(1.06);
  transform-origin: 50% 18%;
}

.pen-pitch {
  position: absolute;
  left: 0;
  right: 0;
  top: 18.2%;
  bottom: 0;
  background:
    repeating-linear-gradient(
      90deg,
      #4aa43c 0 12.5%,
      #3e9238 12.5% 25%
    );
}

.pen-goal {
  position: absolute;
  left: 50%;
  top: 18%;
  width: min(86%, 370px);
  height: 24%;
  transform: translateX(-50%);
  z-index: 4;
}

.pen-net {
  position: absolute;
  inset: 10% 5% 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.pen-net-back {
  position: absolute;
  inset: 0;
  background-color: rgba(12, 22, 16, 0.5);
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.42) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.42) 1px, transparent 1px);
  background-size: 7px 7px;
  transform-origin: 50% 0;
}

.pen-view.is-goal .pen-net-back {
  animation: pen-net-wave 0.85s ease;
}

.pen-post,
.pen-bar {
  position: absolute;
  background: #f4f4f4;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.35);
  z-index: 5;
}

.pen-post {
  top: 8%;
  bottom: 0;
  width: 7px;
}

.pen-post.l { left: 4%; }
.pen-post.r { right: 4%; }

.pen-bar {
  left: 4%;
  right: 4%;
  top: 8%;
  height: 7px;
}

.pen-goalline {
  position: absolute;
  left: 4%;
  right: 4%;
  bottom: 0;
  height: 3px;
  background: #f3f3f3;
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.45);
  z-index: 5;
}

.pen-aims {
  position: absolute;
  inset: 10% 8% 4%;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 3px;
  z-index: 8;
}

.pen-aim {
  border-radius: 6px;
  background: transparent;
  border: 0;
  box-shadow: none;
  cursor: pointer;
}

.pen-aim:hover,
.pen-aim:focus-visible {
  background: rgba(255, 255, 255, 0.08);
}

.pen-aim.on {
  background: rgba(216, 255, 112, 0.22);
  box-shadow: inset 0 0 0 2px #d8ff70;
}

.pen-view.is-dive .pen-aim.on {
  background: rgba(122, 215, 255, 0.22);
  box-shadow: inset 0 0 0 2px #7ad7ff;
}

.pen-aim:disabled {
  pointer-events: none;
}

.pen-fig {
  position: absolute;
  pointer-events: none;
}

.pen-fig.gk {
  left: 50%;
  bottom: 0;
  top: auto;
  width: 22%;
  height: 62%;
  transform: translateX(-50%);
  z-index: 6;
}

.pen-fig.kicker {
  left: 50%;
  bottom: 1%;
  width: 72px;
  height: 118px;
  margin-left: -36px;
  z-index: 8;
}

.pen-shadow {
  position: absolute;
  left: 50%;
  bottom: 4%;
  width: 62%;
  height: 12px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.4);
  filter: blur(2px);
  transform: translateX(-50%);
  z-index: 0;
}

.pen-fig-body {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 10%;
  transform-origin: 50% 92%;
}

.pen-fig.gk .pen-fig-body {
  transform-origin: 50% 48%;
}

.pen-head {
  position: absolute;
  left: 50%;
  top: 0;
  width: 34%;
  height: 22%;
  margin-left: -17%;
  border-radius: 50% 50% 46% 46%;
  background: radial-gradient(circle at 35% 28%, #f6d0b0, #c8885c);
  z-index: 5;
  box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.08);
}

.pen-hair {
  position: absolute;
  left: 3%;
  right: 3%;
  top: -6%;
  height: 52%;
  border-radius: 12px 12px 4px 4px;
  background: var(--hair, #1a120c);
}

.pen-ear {
  position: absolute;
  top: 38%;
  width: 18%;
  height: 22%;
  border-radius: 50%;
  background: #d7a078;
  z-index: -1;
}
.pen-ear.l { left: -12%; }
.pen-ear.r { right: -12%; }

.pen-face {
  position: absolute;
  inset: 42% 18% 18%;
}
.pen-face i {
  position: absolute;
  top: 8%;
  width: 18%;
  height: 18%;
  border-radius: 50%;
  background: #2a1a12;
}
.pen-face i:first-child { left: 12%; }
.pen-face i:nth-child(2) { right: 12%; }
.pen-face b {
  position: absolute;
  left: 50%;
  bottom: 10%;
  width: 28%;
  height: 10%;
  margin-left: -14%;
  border-radius: 0 0 8px 8px;
  background: rgba(90, 40, 30, 0.35);
}

.pen-shirt {
  position: absolute;
  left: 50%;
  top: 20%;
  width: 58%;
  height: 32%;
  margin-left: -29%;
  border-radius: 10px 10px 14px 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.22), transparent 28%),
    var(--kit-bg, var(--kit, #ee7702));
  z-index: 3;
  display: grid;
  place-items: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.pen-shirt::before {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  top: 0;
  height: 18%;
  border-radius: 8px 8px 0 0;
  background: rgba(255, 255, 255, 0.12);
}

.pen-shirt b {
  font-family: var(--display);
  font-size: 1.15rem;
  color: var(--ink, #fff);
  margin-top: 10px;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.pen-shorts {
  position: absolute;
  left: 50%;
  top: 49%;
  width: 48%;
  height: 13%;
  margin-left: -24%;
  background: var(--kit-shorts, var(--shorts, #1c1c1c));
  border-radius: 0 0 8px 8px;
  z-index: 2;
}

.pen-arm {
  position: absolute;
  top: 24%;
  width: 15%;
  height: 30%;
  background: var(--kit-sleeve, var(--kit, #ee7702));
  border-radius: 10px;
  z-index: 2;
  transform-origin: 50% 8%;
}
.pen-arm.l { left: 6%; transform: rotate(14deg); }
.pen-arm.r { right: 6%; transform: rotate(-14deg); }

.pen-glove {
  position: absolute;
  left: 50%;
  bottom: -18%;
  width: 130%;
  height: 38%;
  margin-left: -65%;
  border-radius: 40%;
  background: linear-gradient(180deg, #fff, #e8e0d4);
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.2);
}

.pen-leg {
  position: absolute;
  top: 60%;
  width: 16%;
  height: 38%;
  background: linear-gradient(180deg, #e2b48a, #c8885c);
  border-radius: 0 0 6px 6px;
  z-index: 1;
  transform-origin: 50% 0;
}
.pen-leg.l { left: 28%; }
.pen-leg.r { right: 28%; }

.pen-sock {
  position: absolute;
  left: 0;
  right: 0;
  top: 42%;
  height: 32%;
  background: linear-gradient(
    180deg,
    #f3f3f3 0 40%,
    var(--kit-sleeve, #d71920) 40% 55%,
    #f3f3f3 55%
  );
}

.pen-boot {
  position: absolute;
  left: -12%;
  right: -18%;
  bottom: 0;
  height: 22%;
  border-radius: 3px 10px 6px 4px;
  background: #111;
}

.pen-fig.gk .pen-shirt {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.28), transparent 32%),
    var(--kit-bg, #c8f000);
}
.pen-fig.gk .pen-shorts { background: var(--kit-shorts, #111); }
.pen-fig.gk .pen-arm { background: var(--kit-sleeve, #c8f000); }
.pen-fig.gk .pen-sock {
  background: linear-gradient(180deg, #f4f4f4 0 70%, var(--kit-sleeve, #c8f000) 70% 82%, #f4f4f4 82%);
}
.pen-fig.hair-bald .pen-hair { opacity: 0; }
.pen-fig.hair-long .pen-hair { height: 78%; }

.pen-fig.from-back .pen-face,
.pen-fig.from-back .pen-ear,
.pen-fig.from-back .pen-glove { display: none; }
.pen-fig.from-back .pen-hair {
  height: 82%;
  border-radius: 14px 14px 10px 10px;
}

.pen-fig-name {
  position: absolute;
  left: 50%;
  bottom: -2px;
  transform: translateX(-50%);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-align: center;
  text-shadow: 0 1px 4px #000;
  white-space: nowrap;
  z-index: 7;
}

.pen-fig.gk .pen-fig-name {
  bottom: -16px;
  color: #fff;
}

.pen-ball {
  position: absolute;
  left: 50%;
  bottom: 27%;
  width: 22px;
  height: 22px;
  margin-left: -11px;
  z-index: 7;
  pointer-events: none;
}

.pen-ball.in-net {
  z-index: 2;
}

.pen-ball.caught {
  z-index: 10;
}

.pen-view.is-fly .pen-ball {
  z-index: 8;
}

.pen-fig.gk.is-save {
  z-index: 9;
}

.pen-fig.gk.is-miss {
  z-index: 5;
}

.pen-ball i {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 28%, #fff 0 18%, transparent 19%),
    radial-gradient(circle at 50% 50%, #f4f4f4 0 42%, #1c1c1c 43% 58%, #eee 59%);
  box-shadow: 0 8px 10px rgba(0, 0, 0, 0.4);
}

.pen-fig.kicker.is-run .pen-leg.l {
  animation: pen-run-l 0.28s linear infinite;
}

.pen-fig.kicker.is-run .pen-leg.r {
  animation: pen-run-r 0.28s linear infinite;
}

.pen-fig.kicker.is-kick .pen-leg.r {
  animation: pen-kick 0.32s ease forwards;
}

.pen-fig.gk.is-leap .pen-arm.l,
.pen-fig.gk.is-leap .pen-arm.r {
  top: 0;
  height: 34%;
}
.pen-fig.gk.is-leap[data-dir="l"] .pen-arm.l { left: 20%; transform: rotate(12deg); }
.pen-fig.gk.is-leap[data-dir="l"] .pen-arm.r { right: 20%; transform: rotate(-12deg); }
.pen-fig.gk.is-leap[data-dir="r"] .pen-arm.l { left: 20%; transform: rotate(12deg); }
.pen-fig.gk.is-leap[data-dir="r"] .pen-arm.r { right: 20%; transform: rotate(-12deg); }
.pen-fig.gk.is-leap[data-dir="c"] .pen-arm.l { transform: rotate(-28deg); }
.pen-fig.gk.is-leap[data-dir="c"] .pen-arm.r { transform: rotate(28deg); }
.pen-fig.gk.is-leap[data-dir="l"] .pen-leg.l { transform: rotate(16deg); }
.pen-fig.gk.is-leap[data-dir="l"] .pen-leg.r { transform: rotate(-10deg); }
.pen-fig.gk.is-leap[data-dir="r"] .pen-leg.l { transform: rotate(-10deg); }
.pen-fig.gk.is-leap[data-dir="r"] .pen-leg.r { transform: rotate(16deg); }

.pen-flash {
  position: absolute;
  left: 50%;
  top: 38%;
  transform: translate(-50%, -50%);
  font-family: var(--display);
  font-size: 3.2rem;
  letter-spacing: 0.08em;
  z-index: 12;
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.55);
  pointer-events: none;
}

.pen-flash.is-goal {
  color: #ee7702;
  animation: pen-flash-pop 0.45s ease;
}
.pen-flash.is-save { color: #fff; }

.pen-view.is-goal .pen-net {
  animation: pen-net-hit 0.45s ease;
}

@keyframes pen-run-l {
  0%, 100% { transform: rotate(16deg); }
  50% { transform: rotate(-22deg); }
}

@keyframes pen-run-r {
  0%, 100% { transform: rotate(-16deg); }
  50% { transform: rotate(22deg); }
}

@keyframes pen-kick {
  0% { transform: rotate(8deg); }
  40% { transform: rotate(-48deg); }
  100% { transform: rotate(12deg); }
}

@keyframes pen-model-run {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-6px) rotate(2deg); }
}

@keyframes pen-model-kick {
  0% { transform: rotate(0); }
  35% { transform: rotate(-8deg) translateX(6px); }
  100% { transform: rotate(4deg); }
}

@keyframes pen-dive-l {
  0% { transform: rotate(0) translate(0, 0); }
  40% { transform: rotate(-50deg) translate(-28px, -22px); }
  100% { transform: rotate(-78deg) translate(-46px, 8px); }
}

@keyframes pen-dive-r {
  0% { transform: rotate(0) translate(0, 0); }
  40% { transform: rotate(50deg) translate(28px, -22px); }
  100% { transform: rotate(78deg) translate(46px, 8px); }
}

@keyframes pen-dive-c {
  0% { transform: translateY(0) scaleY(1); }
  40% { transform: translateY(-28px) scaleY(1.08); }
  100% { transform: translateY(-6px) scaleY(0.96); }
}

@keyframes pen-flash-pop {
  0% { transform: translate(-50%, -50%) scale(0.55); opacity: 0; }
  40% { transform: translate(-50%, -50%) scale(1.12); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}

@keyframes pen-net-hit {
  0% { transform: none; }
  40% { transform: translateY(6px) scaleY(1.06); }
  100% { transform: none; }
}

@keyframes pen-net-wave {
  0% { transform: scaleY(1) translateY(0); }
  18% { transform: scaleY(1.16) translateY(10px); }
  38% { transform: scaleY(0.94) translateY(-4px); }
  58% { transform: scaleY(1.1) translateY(7px); }
  78% { transform: scaleY(0.98) translateY(2px); }
  100% { transform: scaleY(1) translateY(0); }
}

@keyframes pen-led-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes pen-net-ripple {
  0%, 100% { opacity: 0.55; }
  30% { opacity: 0.95; }
  55% { opacity: 0.7; }
}

#app.is-admin {
  width: min(920px, 100%);
}

.cash-card {
  width: min(100%, 420px);
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.1rem 0.95rem 1rem;
  text-align: center;
}

.cash-kicker {
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  font-weight: 800;
  color: var(--lime);
}

.cash-round {
  font-family: var(--display);
  font-size: 2.1rem;
  margin: 0.15rem 0 0.35rem;
}

.cash-prize {
  font-family: var(--display);
  font-size: 2.6rem;
  color: var(--lime);
  line-height: 1;
}

.cash-odds,
.cash-note {
  color: var(--mute);
  font-size: 0.86rem;
  line-height: 1.45;
  margin: 0.45rem 0 0.7rem;
  white-space: pre-line;
}

.cash-card .btn {
  width: 100%;
  margin-top: 0.4rem;
}

#scr-admin.screen.is-on {
  height: 100%;
  overflow: auto;
  padding-bottom: 1.2rem;
}

.adm-top {
  margin-bottom: 0.55rem;
}

.adm-sub {
  margin: 0.15rem 0 0;
  color: var(--mute);
  font-size: 0.82rem;
  line-height: 1.4;
}

.adm-tabs {
  display: flex;
  gap: 0.35rem;
  overflow-x: auto;
  margin: 0 0 0.8rem;
  padding-bottom: 0.2rem;
}

.adm-tabs button {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.4rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.04);
}

.adm-tabs button.on {
  background: var(--lime);
  color: #fff;
  border-color: var(--lime);
}

.adm-pane {
  display: none;
}

.adm-pane.is-on {
  display: block;
}

.adm-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
  margin-bottom: 0.8rem;
}

.adm-stat {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.7rem;
  background: rgba(255, 255, 255, 0.03);
}

.adm-stat b {
  display: block;
  font-family: var(--display);
  font-size: 1.35rem;
  color: var(--lime);
}

.adm-stat span {
  color: var(--mute);
  font-size: 0.72rem;
  font-weight: 700;
}

.adm-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.85rem 0.9rem;
  background: rgba(255, 255, 255, 0.03);
  margin-bottom: 0.7rem;
}

.adm-card-h {
  font-weight: 800;
  font-size: 0.92rem;
  margin-bottom: 0.35rem;
}

.adm-info {
  background: linear-gradient(180deg, rgba(238, 119, 2, 0.12), rgba(255, 255, 255, 0.02));
  border-color: rgba(238, 119, 2, 0.35);
}

.adm-info p,
.adm-hint {
  color: var(--mute);
  font-size: 0.8rem;
  line-height: 1.45;
  margin: 0.25rem 0;
}

.adm-help {
  margin: 0.35rem 0 0;
  padding-left: 1.1rem;
  color: var(--mute);
  font-size: 0.8rem;
  line-height: 1.5;
}

.adm-help b {
  color: #fff;
}

.adm-help code {
  font-size: 0.75rem;
  color: var(--lime);
}

.adm-field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.adm-form {
  display: grid;
  gap: 0.55rem;
}

.adm-field {
  display: grid;
  gap: 0.25rem;
}

.adm-field label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--mute);
  letter-spacing: 0.04em;
}

.adm-input,
.adm-form input,
.adm-form select,
.adm-area {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.28);
  color: #fff;
  padding: 0.55rem 0.65rem;
  font: inherit;
}

.adm-area {
  resize: vertical;
  min-height: 2.8rem;
  line-height: 1.4;
}

.adm-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
  margin: 0.45rem 0;
}

.adm-actions.sticky {
  position: sticky;
  bottom: 0.4rem;
  padding: 0.55rem 0;
  background: linear-gradient(180deg, transparent, rgba(10, 12, 14, 0.92) 30%);
}

.adm-actions .btn,
.adm-actions .adm-input {
  flex: 1 1 160px;
}

.mini.danger,
.btn.danger {
  color: #ff8d8d;
  border-color: rgba(255, 100, 100, 0.45);
}

.adm-empty {
  color: var(--mute);
  font-size: 0.84rem;
  padding: 0.7rem 0.2rem;
}

.adm-stack {
  display: grid;
  gap: 0.45rem;
}

.adm-row-card {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  justify-content: space-between;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.7rem 0.8rem;
  background: rgba(255, 255, 255, 0.03);
}

.adm-pill {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.08);
  vertical-align: middle;
}

.adm-log-list {
  display: grid;
  gap: 0.35rem;
}

.adm-log {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.45rem;
  align-items: start;
  padding: 0.5rem 0.55rem;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.adm-log-body {
  display: grid;
  gap: 0.1rem;
  min-width: 0;
}

.adm-log-body b {
  font-size: 0.8rem;
}

.adm-log-body span {
  color: var(--mute);
  font-size: 0.75rem;
  line-height: 1.35;
}

.adm-log time {
  color: var(--mute);
  font-size: 0.68rem;
  white-space: nowrap;
}

.adm-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.4rem;
  padding: 0.18rem 0.4rem;
  border-radius: 8px;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  background: rgba(255, 255, 255, 0.08);
}

.adm-badge.ok {
  background: rgba(60, 180, 90, 0.2);
  color: #8dffb0;
}

.adm-badge.bad {
  background: rgba(220, 70, 70, 0.2);
  color: #ff9b9b;
}

.adm-badge.neutral {
  background: rgba(255, 255, 255, 0.08);
  color: #ddd;
}

.adm-user-list {
  display: grid;
  gap: 0.3rem;
  margin-top: 0.45rem;
}

.adm-user-head,
.adm-user-row {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) 0.7fr 0.7fr 0.55fr auto;
  gap: 0.35rem;
  align-items: center;
  text-align: left;
}

.adm-user-head {
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--mute);
  padding: 0 0.4rem 0.25rem;
}

.adm-user-row {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  color: inherit;
  padding: 0.55rem 0.6rem;
  cursor: pointer;
}

.adm-user-row:hover {
  border-color: rgba(238, 119, 2, 0.55);
}

.adm-user-main {
  display: grid;
  gap: 0.08rem;
  min-width: 0;
}

.adm-user-main b {
  font-size: 0.88rem;
}

.adm-user-main small {
  color: var(--mute);
  font-size: 0.7rem;
}

.adm-chev {
  color: var(--mute);
  font-size: 1.1rem;
}

.adm-kv {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.28rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.82rem;
}

.adm-kv span {
  color: var(--mute);
}

.adm-err {
  margin: 0.4rem 0 0;
  color: #ff8a8a;
  font-size: 0.78rem;
  font-weight: 700;
}

.adm-ledger-list {
  display: grid;
  gap: 0.35rem;
}

.adm-ledger-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.45rem;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.18);
  padding: 0.48rem 0.55rem;
  font-size: 0.8rem;
}

.adm-ledger-row b {
  display: block;
}

.adm-ledger-row small {
  display: block;
  color: var(--mute);
  font-size: 0.68rem;
  margin-top: 0.12rem;
}

.adm-ledger-row time {
  color: var(--mute);
  font-size: 0.68rem;
  white-space: nowrap;
}

.adm-ledger-row.is-credit {
  border-color: rgba(196, 255, 60, 0.22);
}

.adm-ledger-row.is-debit {
  border-color: rgba(255, 110, 110, 0.28);
}

.adm-match-list {
  display: grid;
  gap: 0.35rem;
}

.adm-match-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.45rem;
  align-items: center;
  width: 100%;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.2);
  color: inherit;
  padding: 0.5rem 0.55rem;
  cursor: pointer;
}

.adm-match-row small {
  display: block;
  color: var(--mute);
  font-size: 0.72rem;
  margin-top: 0.1rem;
}

.adm-match-row time {
  font-size: 0.68rem;
  color: var(--mute);
}

.adm-match-detail {
  margin-top: 0.55rem;
  border-color: rgba(238, 119, 2, 0.4);
}

.adm-bar {
  display: grid;
  grid-template-columns: 7.5rem 1fr auto;
  gap: 0.4rem;
  align-items: center;
  margin: 0.28rem 0;
  font-size: 0.78rem;
}

.adm-bar i {
  display: block;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.adm-bar i b {
  display: block;
  height: 100%;
  background: var(--lime);
}

.adm-row {
  display: grid;
  gap: 0.15rem;
  padding: 0.55rem 0.1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.82rem;
}

.adm-row b {
  font-size: 0.84rem;
}

.adm-row span {
  color: var(--mute);
}

.adm-warn {
  border: 1px solid rgba(238, 119, 2, 0.45);
  background: rgba(238, 119, 2, 0.12);
  border-radius: 12px;
  padding: 0.65rem 0.75rem;
  margin-bottom: 0.6rem;
  font-size: 0.82rem;
}

.adm-stage-table {
  margin-top: 0.35rem;
}

.trow.adm-stage {
  display: grid;
  grid-template-columns: 1.2fr repeat(5, 0.7fr);
  gap: 0.25rem;
  font-size: 0.75rem;
  padding: 0.4rem 0.2rem;
}

.trow.adm-stage .adm-stage-name {
  font-weight: 700;
}

.trow.adm-stage.is-head {
  color: var(--mute);
  font-weight: 800;
  font-size: 0.68rem;
}

.adm-quota-form {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr auto;
  gap: 0.45rem;
  align-items: end;
}

.adm-quota-form .btn {
  height: 2.5rem;
}

.adm-bal {
  font-weight: 800;
  color: var(--lime);
}

@media (max-width: 720px) {
  .adm-field-grid,
  .adm-quota-form,
  .adm-user-head,
  .adm-user-row {
    grid-template-columns: 1fr;
  }
  .adm-user-head {
    display: none;
  }
  .adm-log {
    grid-template-columns: auto 1fr;
  }
  .adm-log time {
    grid-column: 2;
  }
}

.adm-bar i {
  height: 8px;
  border-radius: 99px;
  background: rgba(238, 119, 2, 0.22);
  overflow: hidden;
}

.adm-bar i b {
  display: block;
  height: 100%;
  background: var(--lime);
}

.adm-row {
  display: grid;
  gap: 0.2rem;
  padding: 0.55rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 0.4rem;
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.8rem;
}

.adm-row b {
  font-size: 0.78rem;
}

.adm-row span {
  color: var(--mute);
}

.adm-form {
  display: grid;
  gap: 0.55rem;
}

.adm-field {
  display: grid;
  gap: 0.25rem;
}

.adm-field label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--mute);
}

.adm-input,
.adm-form input,
.adm-form select {
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.25);
  color: #fff;
  border-radius: 10px;
  padding: 0.55rem 0.65rem;
  font: inherit;
}

.adm-actions {
  display: grid;
  gap: 0.4rem;
  margin: 0.7rem 0;
}

.adm-warn {
  border: 1px solid rgba(238, 119, 2, 0.45);
  background: rgba(238, 119, 2, 0.12);
  color: #ffd7b0;
  border-radius: 12px;
  padding: 0.55rem 0.7rem;
  font-size: 0.78rem;
  margin-bottom: 0.6rem;
}

.trow.adm {
  grid-template-columns: 1fr auto auto;
  cursor: pointer;
}

.trow.adm small {
  color: var(--mute);
  font-size: 0.7rem;
}

.adm-stage-table {
  margin-bottom: 1rem;
}

.trow.adm-stage {
  grid-template-columns: 1.4fr repeat(5, 0.7fr);
  gap: 0.25rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-align: right;
}

.trow.adm-stage .adm-stage-name {
  text-align: left;
  color: var(--text);
}

.trow.adm-stage.is-head {
  background: rgba(238, 119, 2, 0.16);
  color: var(--mute);
  font-size: 0.64rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.adm-quota-form {
  display: grid;
  grid-template-columns: minmax(8rem, 1fr) 9.5rem auto;
  gap: 0.45rem;
  align-items: end;
  margin-bottom: 0.35rem;
}

.adm-quota-form .btn {
  height: 2.55rem;
}

.adm-quota-n-field .adm-input,
#admQuotaN {
  min-width: 9.5rem;
  font-size: 1.05rem;
  font-weight: 800;
}

.adm-user-table {
  margin-bottom: 1rem;
  overflow-x: auto;
}

.trow.adm-user {
  grid-template-columns: minmax(8rem, 1.4fr) 5.8rem 4.2rem 3.6rem minmax(12rem, 1.4fr);
  gap: 0.4rem;
  font-size: 0.78rem;
  text-align: left;
  min-width: 38rem;
}

.trow.adm-user.is-head {
  background: rgba(238, 119, 2, 0.16);
  color: var(--mute);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.adm-bal {
  font-weight: 800;
  color: var(--lime, #c6ff4a);
  white-space: nowrap;
}

.adm-quota-cell {
  display: flex;
  gap: 0.4rem;
  align-items: center;
  min-width: 12rem;
}

.adm-quota-cell .adm-input,
.adm-quota-n {
  min-width: 6.5rem;
  width: 7.5rem;
  flex: 1 1 7.5rem;
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  padding: 0.5rem 0.6rem;
}

@media (max-width: 640px) {
  .adm-quota-form {
    grid-template-columns: 1fr;
  }
  .trow.adm-user {
    grid-template-columns: 1fr;
    min-width: 0;
  }
  .adm-quota-cell,
  .adm-quota-cell .adm-input,
  .adm-quota-n {
    width: 100%;
    min-width: 0;
    flex: 1 1 auto;
  }
}

/* Admin panel login (username + password) ? full-screen gate */
html.is-admin-gate,
html.is-admin-gate body {
  background: #0b0c10;
}

#app.is-admin-gate {
  width: 100%;
  max-width: none;
  grid-template-rows: 1fr;
  background: #0b0c10;
}

#app.is-admin-gate .top,
#app.is-admin-gate .stage,
#app.is-admin-gate .sheet {
  display: none !important;
}

#ovAdminPin:not([hidden]) {
  position: absolute;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 1.1rem;
  background: #0b0c10;
  backdrop-filter: none;
}

.adm-login-card {
  width: min(92vw, 360px);
  padding: 1.35rem 1.25rem 1.25rem;
  border-radius: 18px;
  background: #2a2a2c;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
  display: grid;
  gap: 0.85rem;
}

.adm-login-head {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  margin-bottom: 0.15rem;
}

.adm-login-dot {
  width: 1.05rem;
  height: 1.05rem;
  margin-top: 0.28rem;
  border-radius: 50%;
  background: #e8a882;
  flex: 0 0 auto;
}

.adm-login-title {
  margin: 0;
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: #fff;
  line-height: 1.15;
}

.adm-login-sub {
  margin: 0.28rem 0 0;
  font-size: 0.82rem;
  color: #9a9a9e;
  line-height: 1.35;
}

.adm-login-field {
  display: grid;
  gap: 0.35rem;
}

.adm-login-field span {
  font-size: 0.78rem;
  font-weight: 600;
  color: #9a9a9e;
}

.adm-login-field input {
  width: 100%;
  border: 0;
  border-radius: 10px;
  background: #141416;
  color: #fff;
  padding: 0.78rem 0.85rem;
  font: inherit;
  font-size: 0.95rem;
  outline: none;
}

.adm-login-field input::placeholder {
  color: #5c5c62;
}

.adm-login-field input:focus {
  box-shadow: 0 0 0 1.5px rgba(232, 168, 130, 0.55);
}

.adm-login-err {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: #ff5a5a;
  line-height: 1.35;
}

.adm-login-err[hidden],
.adm-login-tries[hidden] {
  display: none !important;
}

.adm-login-tries {
  margin: -0.35rem 0 0;
  font-size: 0.78rem;
  color: #9a9a9e;
}

.adm-login-btn {
  width: 100%;
  margin-top: 0.15rem;
  border: 0;
  border-radius: 10px;
  background: #e8a882;
  color: #1a120e;
  font: inherit;
  font-weight: 800;
  font-size: 0.98rem;
  padding: 0.85rem 1rem;
  cursor: pointer;
}

.adm-login-btn:disabled {
  opacity: 0.55;
  cursor: default;
}

.adm-login-btn:hover:not(:disabled) {
  filter: brightness(1.05);
}
