:root {
  --orange: #FF8A3D;
  --orange-deep: #EA6417;
  --orange-dark: #C64A0A;
  --cream: #FFF8EC;
  --cream-deep: #FFF0DA;
  --ink: #3A2215;
  --ink-soft: #8A6A55;
  --red: #F2513C;
  --blue: #3F86F5;
  --sat: env(safe-area-inset-top, 0px);
  --sab: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow: hidden;
  background: #190F0C;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "HarmonyOS Sans SC",
    "Noto Sans SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior: none;
  user-select: none;
  -webkit-user-select: none;
}

button {
  font-family: inherit;
  border: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

button:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.75);
  outline-offset: 3px;
}

[hidden] { display: none !important; }

.stage {
  position: fixed;
  inset: 0;
  max-width: 560px;
  margin: 0 auto;
  overflow: hidden;
  background: #1B100D;
  box-shadow: 0 0 80px rgba(0, 0, 0, 0.55);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ============ 画布与游戏场面 ============ */
#game {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
  opacity: 0;
  transition: opacity 0.35s ease;
}

body:not([data-state="home"]) #game { opacity: 1; }

.game-glow {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 8%, rgba(255, 150, 70, 0.16), transparent 42%),
    radial-gradient(circle at 50% 50%, transparent 56%, rgba(0, 0, 0, 0.26) 100%);
  opacity: 0;
  transition: opacity 0.35s ease;
}

body:not([data-state="home"]) .game-glow { opacity: 1; }

/* ============ 开始页 ============ */
.home {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  background:
    radial-gradient(120% 68% at 50% 0%, #FFC66F 0%, #FFA34D 30%, #FF882F 58%, #F36718 100%);
  transition: opacity 0.38s ease, transform 0.38s ease, visibility 0s linear 0s;
}

body:not([data-state="home"]) .home {
  opacity: 0;
  visibility: hidden;
  transform: scale(1.04);
  pointer-events: none;
  transition: opacity 0.38s ease, transform 0.38s ease, visibility 0s linear 0.38s;
}

.home-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.home-bg::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -16%;
  width: 190%;
  aspect-ratio: 1;
  transform: translateX(-50%);
  background: repeating-conic-gradient(from 0deg at 50% 50%,
      rgba(255, 255, 255, 0.17) 0deg 7deg,
      rgba(255, 255, 255, 0) 7deg 19deg);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 0%, rgba(0, 0, 0, 0.55) 42%, transparent 68%);
  mask-image: radial-gradient(circle at 50% 50%, #000 0%, rgba(0, 0, 0, 0.55) 42%, transparent 68%);
  animation: sunTurn 70s linear infinite;
}

.home-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.22) 1px, transparent 1.4px);
  background-size: 19px 19px;
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.7), transparent 52%);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.7), transparent 52%);
  opacity: 0.5;
}

@keyframes sunTurn { to { transform: translateX(-50%) rotate(360deg); } }

.home-top {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: calc(var(--sat) + 14px) 18px 0;
  flex: 0 0 auto;
}

.player-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 4px 13px 4px 5px;
  border-radius: 999px;
  background: rgba(122, 42, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  max-width: 62%;
}

.avatar {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #FFF6E6, #FFD8AE);
  color: var(--orange-deep);
  overflow: hidden;
  border: 1.5px solid rgba(255, 255, 255, 0.8);
}

.avatar .mp-icon { width: 17px; height: 17px; }
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }

.pill-text {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #FFF9EF;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 1px 2px rgba(120, 40, 0, 0.3);
}

.sound-btn {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #FFF9EF;
  background: rgba(122, 42, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform 0.15s ease, background 0.15s ease;
}

.sound-btn:active { transform: scale(0.9); background: rgba(122, 42, 0, 0.34); }
.sound-btn .mp-icon { width: 21px; height: 21px; }

.home-main {
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 14px 20px 0;
  text-align: center;
}

.eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin: 0 0 8px;
  color: rgba(255, 249, 238, 0.9);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.22em;
}

.eyebrow span {
  width: 16px;
  height: 1px;
  background: rgba(255, 249, 238, 0.55);
}

.logo {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 0.94;
}

.logo-main {
  font-size: clamp(42px, 12.4vw, 58px);
  font-weight: 900;
  letter-spacing: 0.03em;
  color: #FFF9EC;
  text-shadow:
    0 3px 0 #DA5714,
    0 6px 0 #B9430A,
    0 9px 20px rgba(116, 34, 0, 0.35);
}

.logo-sub {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
  padding: 2px 20px 5px;
  font-size: clamp(20px, 5.8vw, 26px);
  font-weight: 800;
  letter-spacing: 0.34em;
  text-indent: 0.34em;
  color: #FFEBCB;
  border-bottom: 3px solid rgba(255, 245, 224, 0.55);
  text-shadow: 0 2px 0 rgba(156, 55, 0, 0.35);
}

.logo-sub .mp-icon {
  width: 14px;
  height: 14px;
  color: #FFE3B1;
  opacity: 0.9;
}

.tagline {
  margin: 11px 0 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: rgba(255, 249, 238, 0.82);
  text-shadow: 0 1px 2px rgba(120, 40, 0, 0.25);
}

.hero-wrap {
  position: relative;
  width: 100%;
  margin: 2px 0 4px;
  padding: 8px 0 2px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-wrap::before {
  content: "";
  position: absolute;
  width: min(82vw, 330px);
  aspect-ratio: 1 / 0.8;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 46%, rgba(255, 250, 235, 0.56), rgba(255, 220, 165, 0.2) 56%, transparent 74%);
  filter: blur(1px);
  pointer-events: none;
}

.hero-poster {
  position: relative;
  z-index: 1;
  width: min(80vw, 312px);
  padding: 5px;
  border-radius: 24px;
  background: linear-gradient(155deg, #FFFDF9 0%, #FFF3E1 58%, #FFE8CC 100%);
  border: 1px solid rgba(255, 255, 255, 0.78);
  box-shadow:
    0 18px 34px rgba(122, 42, 0, 0.23),
    0 2px 0 rgba(255, 255, 255, 0.55) inset;
  transform: rotate(-1.1deg);
  animation: posterFloat 5.4s ease-in-out infinite;
  overflow: hidden;
}

.hero-ribbon {
  position: absolute;
  z-index: 3;
  top: 13px;
  left: 13px;
  display: flex;
  align-items: center;
  gap: 4px;
  height: 25px;
  padding: 0 9px;
  border-radius: 999px;
  color: #FFF7EA;
  background: rgba(36, 16, 8, 0.62);
  border: 1px solid rgba(255, 205, 156, 0.45);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.hero-ribbon .mp-icon {
  width: 13px;
  height: 13px;
  color: #FFC98F;
}

.hero-split {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(30, 13, 7, 0.66);
  border: 1px solid rgba(255, 210, 165, 0.32);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  white-space: nowrap;
}

.hero-split span {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #FFF4E4;
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.hero-split span i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 5px currentColor;
}

.hero-split .hs-red { color: #FFAD96; }
.hero-split .hs-blue { color: #9DCCFF; }

.hero-split .hs-vs {
  color: rgba(255, 232, 209, 0.55);
  font-size: 7.5px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.hero-ball {
  position: absolute;
  left: 50%;
  top: 47%;
  width: 13px;
  height: 13px;
  margin: -6.5px 0 0 -6.5px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #FFFFFF 0 34%, #FFF4DA 68%, #FFD39B 100%);
  box-shadow:
    0 2px 4px rgba(155, 75, 20, 0.35),
    0 0 0 3px rgba(255, 255, 255, 0.22);
  z-index: 2;
  pointer-events: none;
}

.hero-ball::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.6);
  animation: ballRing 2.8s ease-out infinite;
}

@keyframes ballRing {
  0% { transform: scale(0.65); opacity: 0.8; }
  70%, 100% { transform: scale(1.45); opacity: 0; }
}

.hero-art {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 21px;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

.hero {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  max-height: 148px;
}

@keyframes posterFloat {
  0%, 100% { transform: translateY(0) rotate(-1.3deg); }
  50% { transform: translateY(-7px) rotate(-0.3deg); }
}

@keyframes heroFloat {
  0%, 100% { transform: translateY(0) rotate(-0.6deg); }
  50% { transform: translateY(-9px) rotate(0.6deg); }
}

.home-panel {
  position: relative;
  z-index: 3;
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-top: 6px;
  padding: 17px 18px calc(13px + var(--sab));
  border-radius: 30px 30px 0 0;
  background:
    radial-gradient(120% 90% at 50% 0%, #FFFDF8 0%, #FFF6E7 52%, #FFEDD5 100%);
  box-shadow:
    0 -12px 38px rgba(126, 43, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.home-panel::before {
  content: "";
  position: absolute;
  top: 7px;
  left: 50%;
  transform: translateX(-50%);
  width: 34px;
  height: 4px;
  border-radius: 999px;
  background: rgba(226, 153, 95, 0.34);
}

.matchup {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0 0 14px;
  padding: 10px 12px;
  border-radius: 20px;
  background: linear-gradient(180deg, #FFFDF8 0%, #FFF6E8 100%);
  border: 1px solid rgba(237, 194, 152, 0.66);
  box-shadow:
    0 5px 14px rgba(181, 104, 45, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.matchup-side {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.matchup-side-right { justify-content: flex-end; text-align: right; }

.m-avatar {
  position: relative;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #FFFFFF;
  border: 2px solid #FFFFFF;
  box-shadow: 0 4px 11px rgba(94, 48, 20, 0.22), inset 0 1px 2px rgba(255, 255, 255, 0.45);
}

.m-avatar-red { background: linear-gradient(150deg, #FF9B7F, #EF3F2C 62%, #C92A1B); }
.m-avatar-blue { background: linear-gradient(150deg, #86C1FF, #3478EC 62%, #1E4FC8); }
.m-avatar .mp-icon { width: 22px; height: 22px; }
.m-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }

.m-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.m-info-right { align-items: flex-end; }

.m-name {
  max-width: 88px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #3A2215;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.m-pos {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #A4836C;
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.m-pos::before {
  content: "";
  width: 5px;
  height: 5px;
  flex: 0 0 5px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.7);
}

.m-pos-red { color: #D14A2C; }
.m-pos-blue { color: #3B76D6; }
.matchup-side-right .m-pos::before { order: 2; }

.m-vs {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 5px;
}

.m-vs-line {
  width: 12px;
  height: 1px;
  background: repeating-linear-gradient(90deg, #DEB796 0 3px, transparent 3px 5px);
}

.m-vs-badge {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #FFFFFF;
  font-size: 10.5px;
  font-weight: 900;
  letter-spacing: 0.02em;
  background: radial-gradient(circle at 36% 28%, #FFC183, #FF8A3D 55%, #E85E12 100%);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow:
    0 3px 0 #C64E0C,
    0 6px 12px rgba(210, 82, 10, 0.26),
    inset 0 1px 1px rgba(255, 255, 255, 0.55);
}

/* ============ 双人就位 ============ */
.ready-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0 1px 7px;
}

.ready-title {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  color: #57321D;
  font-size: 11.5px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.ready-title .mp-icon {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  color: var(--orange-deep);
}

.ready-count {
  display: flex;
  align-items: baseline;
  gap: 1px;
  flex: 0 0 auto;
  height: 23px;
  padding: 0 9px;
  border-radius: 999px;
  color: #A06B44;
  background: #FFEBD2;
  border: 1px solid rgba(236, 185, 137, 0.78);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.04em;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.ready-count b {
  color: #E4671D;
  font-size: 12.5px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.ready-count.is-full {
  color: #237D59;
  background: #E3F7ED;
  border-color: rgba(122, 206, 169, 0.8);
}

.ready-count.is-full b { color: #1E8A5E; }

.ready-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin-bottom: 9px;
}

.ready-card {
  --side: #F2513C;
  --side-deep: #C13322;
  --side-soft: #FFE6DF;
  position: relative;
  min-width: 0;
  min-height: 128px;
  padding: 10px 10px 11px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  text-align: left;
  border-radius: 19px;
  color: #3A2215;
  background: linear-gradient(168deg, #FFFDF9 0%, #FFF5E8 58%, #FFEBD6 100%);
  border: 1.5px solid rgba(233, 188, 149, 0.82);
  box-shadow:
    0 5px 13px rgba(167, 94, 38, 0.09),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.ready-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 13px;
  right: 13px;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: var(--side);
  opacity: 0.85;
}

.ready-card-blue {
  --side: #3F86F5;
  --side-deep: #1F55B8;
  --side-soft: #E3EFFF;
}

.ready-card:active {
  transform: scale(0.975);
  box-shadow:
    0 2px 6px rgba(167, 94, 38, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.ready-card.is-ready {
  border-color: var(--side);
  background: linear-gradient(168deg, #FFFDF9 0%, var(--side-soft) 100%);
  box-shadow:
    0 0 0 1.5px var(--side),
    0 6px 15px rgba(167, 94, 38, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  animation: readyStamp 0.36s cubic-bezier(0.2, 1.6, 0.4, 1);
}

@keyframes readyStamp {
  0% { transform: scale(1); }
  38% { transform: scale(0.955); }
  72% { transform: scale(1.022); }
  100% { transform: scale(1); }
}

.r-top {
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 4px;
  margin-bottom: 3px;
}

.r-avatar {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #FFFFFF;
  border: 2px solid #FFFFFF;
  box-shadow: 0 4px 10px rgba(94, 48, 20, 0.2), inset 0 1px 2px rgba(255, 255, 255, 0.45);
}

.r-avatar-red { background: linear-gradient(150deg, #FF9B7F, #EF3F2C 62%, #C92A1B); }
.r-avatar-blue { background: linear-gradient(150deg, #86C1FF, #3478EC 62%, #1E4FC8); }
.r-avatar .mp-icon { width: 21px; height: 21px; }
.r-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }

.r-flag {
  display: inline-grid;
  place-items: center;
  min-width: 26px;
  height: 19px;
  padding: 0 6px;
  border-radius: 7px;
  color: #FFFFFF;
  background: var(--side);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.12em;
  box-shadow: 0 2px 0 var(--side-deep);
}

.r-name {
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #3A2215;
  font-size: 14.5px;
  font-weight: 900;
  letter-spacing: 0.01em;
  line-height: 1.25;
}

.r-role {
  display: block;
  color: #A4826A;
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
  line-height: 1.3;
}

.r-cta {
  width: 100%;
  height: 30px;
  margin-top: auto;
  padding: 0 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border-radius: 10px;
  color: #FFFFFF;
  background: linear-gradient(180deg, var(--side), var(--side-deep));
  box-shadow: 0 3px 0 rgba(80, 33, 10, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.28);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.r-cta .mp-icon { width: 14px; height: 14px; flex: 0 0 14px; }
.r-cta .r-ico-ready, .r-cta .r-txt-ready { display: none; }

.ready-card.is-ready .r-cta {
  color: var(--side-deep);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 0 0 1.5px var(--side), 0 2px 0 rgba(80, 33, 10, 0.06);
}

.ready-card.is-ready .r-cta .r-ico-idle,
.ready-card.is-ready .r-cta .r-txt-idle { display: none; }

.ready-card.is-ready .r-cta .r-ico-ready,
.ready-card.is-ready .r-cta .r-txt-ready { display: inline-block; }

.r-check {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 21px;
  height: 21px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #FFFFFF;
  background: #29AE79;
  border: 2px solid #FFFDF8;
  box-shadow: 0 3px 7px rgba(25, 115, 78, 0.28);
  transform: scale(0);
  opacity: 0;
  transition: transform 0.24s cubic-bezier(0.2, 1.5, 0.4, 1), opacity 0.2s ease;
}

.r-check .mp-icon { width: 12px; height: 12px; }

.ready-card.is-ready .r-check {
  transform: scale(1);
  opacity: 1;
}

.ready-card.is-ready .r-flag { opacity: 0; }

.ready-grid.is-full .ready-vs {
  animation: vsPulse 1.8s ease-in-out infinite;
}

@keyframes vsPulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); box-shadow: 0 3px 8px rgba(186, 70, 8, 0.32), inset 0 1px 1px rgba(255, 255, 255, 0.55); }
  50% { transform: translate(-50%, -50%) scale(1.12); box-shadow: 0 4px 14px rgba(255, 138, 61, 0.58), inset 0 1px 1px rgba(255, 255, 255, 0.55); }
}

.ready-vs {
  position: absolute;
  z-index: 4;
  top: 50%;
  left: 50%;
  width: 30px;
  height: 30px;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #FFFFFF;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.02em;
  background: radial-gradient(circle at 36% 28%, #FFC183, #FF8A3D 55%, #E85E12 100%);
  border: 2px solid #FFF9EF;
  box-shadow: 0 3px 8px rgba(186, 70, 8, 0.32), inset 0 1px 1px rgba(255, 255, 255, 0.55);
  pointer-events: none;
}

.ready-status {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 0 2px 9px;
  color: #9B765B;
  font-size: 9.5px;
  font-weight: 600;
  line-height: 1.4;
  transition: color 0.2s ease;
}

.ready-status .mp-icon {
  width: 13px;
  height: 13px;
  flex: 0 0 13px;
  color: #C08A5E;
}

.ready-status.is-full { color: #23825D; }
.ready-status.is-full .mp-icon { color: #2FAE79; }

/* ============ 本机记录 ============ */
.home-record {
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 4px;
  margin-top: 12px;
  padding-top: 11px;
  border-top: 1px dashed rgba(205, 157, 119, 0.42);
}

.record-item {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.record-item b {
  color: #D9661F;
  font-size: 16px;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: 0.01em;
  font-variant-numeric: tabular-nums;
}

.record-item span {
  color: #A4836C;
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.record-item.is-empty b { color: #C9A78D; }
.record-item.record-score.is-empty b { font-size: 12px; letter-spacing: 0.08em; }

.record-divider {
  width: 1px;
  height: 22px;
  margin-top: 3px;
  flex: 0 0 1px;
  background: rgba(205, 157, 119, 0.32);
}

/* ============ 按钮 ============ */
.btn {
  position: relative;
  width: 100%;
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 18px;
  border-radius: 18px;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.08em;
  overflow: hidden;
  transition: transform 0.14s ease, box-shadow 0.14s ease, filter 0.14s ease;
}

.btn-primary {
  color: #FFF9EF;
  background: linear-gradient(180deg, #FFA455 0%, #FF8A3D 42%, #F06B1C 100%);
  box-shadow:
    0 5px 0 #C64E0C,
    0 12px 22px rgba(210, 82, 10, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
  text-shadow: 0 1px 2px rgba(140, 45, 0, 0.35);
}

.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.22), transparent 46%);
  pointer-events: none;
}

.btn-primary:active {
  transform: translateY(4px);
  box-shadow:
    0 1px 0 #C64E0C,
    0 6px 12px rgba(210, 82, 10, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.btn-icon {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.22);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.btn-icon .mp-icon { width: 20px; height: 20px; }
.btn-label { position: relative; z-index: 1; }

#startPlayIcon { display: none; }
#startLockIcon { display: inline-block; }

.btn-primary:not(:disabled) #startLockIcon { display: none; }
.btn-primary:not(:disabled) #startPlayIcon { display: inline-block; }

.btn-primary:disabled {
  cursor: not-allowed;
  color: #8F7360;
  background: linear-gradient(180deg, #EADBCB 0%, #DDC7B1 100%);
  box-shadow:
    0 5px 0 #BEA58E,
    0 8px 16px rgba(143, 102, 65, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.55);
  text-shadow: none;
}

.btn-primary:disabled::after { opacity: 0.35; }
.btn-primary:disabled .btn-icon { background: rgba(255, 255, 255, 0.4); }
.btn-primary:disabled .btn-shine { display: none; }
.btn-primary:disabled:active { transform: none; box-shadow: 0 5px 0 #BEA58E, 0 8px 16px rgba(143, 102, 65, 0.16); }

.btn-shine {
  position: absolute;
  top: -40%;
  bottom: -40%;
  left: -35%;
  width: 26%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
  transform: skewX(-22deg);
  animation: shine 3.4s ease-in-out infinite;
  pointer-events: none;
}

@keyframes shine {
  0%, 62% { left: -35%; opacity: 0; }
  70% { opacity: 0.9; }
  88%, 100% { left: 118%; opacity: 0; }
}

.btn-ghost {
  color: #6B4530;
  background: #FFF7EA;
  box-shadow: inset 0 0 0 1.5px rgba(214, 155, 112, 0.5), 0 3px 0 rgba(214, 155, 112, 0.28);
}

.btn-ghost .btn-icon { background: rgba(255, 138, 61, 0.14); color: var(--orange-deep); }
.btn-ghost:active { transform: translateY(2px); box-shadow: inset 0 0 0 1.5px rgba(214, 155, 112, 0.5); }

.btn-soft {
  color: #A24D16;
  background: #FFE9CF;
  box-shadow: inset 0 0 0 1.5px rgba(255, 196, 143, 0.8);
}
.btn-soft:active { transform: translateY(2px); filter: brightness(0.97); }

.btn-text {
  min-height: 44px;
  color: #9B7A64;
  background: transparent;
  font-size: 14px;
  letter-spacing: 0.06em;
}
.btn-text:active { opacity: 0.6; }

.btn-sm { min-height: 50px; font-size: 15.5px; border-radius: 16px; }
.btn-primary.btn-sm { box-shadow: 0 4px 0 #C64E0C, 0 9px 18px rgba(210, 82, 10, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.5); }

@media (hover: hover) {
  .btn-primary:hover { filter: brightness(1.04); transform: translateY(-1px); }
  .btn-ghost:hover { background: #FFF1DC; }
  .btn-soft:hover { filter: brightness(1.02); }
  .sound-btn:hover { background: rgba(122, 42, 0, 0.32); }
}

/* ============ 规则条 ============ */
.rule-chips {
  display: flex;
  gap: 7px;
  margin-top: 12px;
}

.chip {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 34px;
  padding: 0 5px;
  border-radius: 11px;
  background: #FFF1DD;
  border: 1px solid rgba(235, 181, 130, 0.48);
  color: #8C5A34;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.chip .mp-icon {
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
  color: var(--orange-deep);
}

.hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 10px 0 0;
  color: #A4846D;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.5;
}

.hint .mp-icon { width: 14px; height: 14px; flex: 0 0 14px; color: #C08A5E; }

/* ============ HUD ============ */
.hud {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 15;
  padding: calc(var(--sat) + 7px) 16px 0;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0s linear 0.3s;
  pointer-events: none;
  visibility: hidden;
}

body[data-state="play"] .hud { opacity: 1; transform: none; visibility: visible; transition: opacity 0.3s ease, transform 0.3s ease, visibility 0s linear 0s; }
body[data-state="end"] .hud { opacity: 0.28; transform: none; visibility: visible; transition: opacity 0.3s ease, transform 0.3s ease, visibility 0s linear 0s; }

.hud-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 30px;
}

.round-label.serving {
  color: #FFDCB0;
  background: rgba(255, 138, 61, 0.3);
  border-color: rgba(255, 190, 130, 0.42);
}

.round-label {
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(14, 20, 30, 0.32);
  border: 1px solid rgba(255, 255, 255, 0.13);
  color: rgba(255, 245, 230, 0.72);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.11em;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.pause-btn {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: rgba(255, 246, 232, 0.9);
  background: rgba(14, 20, 30, 0.32);
  border: 1px solid rgba(255, 255, 255, 0.16);
  pointer-events: auto;
  transition: transform 0.14s ease, background 0.14s ease;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.pause-btn:active { transform: scale(0.9); background: rgba(14, 20, 30, 0.5); }
.pause-btn .mp-icon { width: 17px; height: 17px; }

.scoreboard {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
  margin-top: 3px;
}

.side {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.side-right {
  flex-direction: row-reverse;
  text-align: right;
}

.pbadge {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #FFF9EF;
  font-size: 14px;
  font-weight: 900;
  border: 2px solid rgba(255, 255, 255, 0.82);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.28), inset 0 1px 2px rgba(255, 255, 255, 0.5);
}

.pbadge-red { background: linear-gradient(150deg, #FF8F73, #EF3F2C 62%, #C92A1B); }
.pbadge-blue { background: linear-gradient(150deg, #83BEFF, #3478EC 62%, #1E4FC8); }

.side-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.side-name {
  max-width: 84px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #FFF8EC;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.sets { display: flex; gap: 4px; }
.side-right .sets { justify-content: flex-end; }

.sets i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.24);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
  transition: background 0.25s ease, transform 0.25s ease;
}

.sets i.on { transform: scale(1.12); }
#p1Sets i.on { background: #FF7A51; box-shadow: 0 0 6px rgba(255, 100, 60, 0.8); }
#p2Sets i.on { background: #6FB1FF; box-shadow: 0 0 6px rgba(90, 160, 255, 0.8); }

.score-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 118px;
}

.score-nums {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFF8EA;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.25), 0 4px 14px rgba(0, 0, 0, 0.3);
}

.score-nums b {
  display: inline-block;
  width: 47px;
  text-align: center;
  font-size: 41px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.score-nums em {
  font-style: normal;
  font-size: 22px;
  font-weight: 800;
  opacity: 0.45;
  margin: 0 1px;
}

.score-sub {
  margin-top: 1px;
  color: rgba(255, 246, 231, 0.48);
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.score-nums b.pop { animation: scorePop 0.32s cubic-bezier(0.2, 1.7, 0.4, 1); }

@keyframes scorePop {
  0% { transform: scale(1); color: #FFF8EA; }
  40% { transform: scale(1.34); color: #FFC178; }
  100% { transform: scale(1); color: #FFF8EA; }
}

/* ============ 触控提示 ============ */
.touch-labels {
  position: absolute;
  inset: 0;
  z-index: 14;
  pointer-events: none;
  opacity: 0;
}

.touch-labels.show { animation: hintFade 3.4s ease forwards; }

.touch-tag {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: rgba(255, 248, 236, 0.92);
  background: rgba(12, 18, 30, 0.44);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.touch-tag .mp-icon { width: 13px; height: 13px; }
.tag-top { top: 25%; left: 16px; color: #D6E8FF; border-color: rgba(120, 175, 255, 0.34); }
.tag-bottom { top: 72%; right: 16px; color: #FFE1D4; border-color: rgba(255, 140, 100, 0.34); }

@keyframes hintFade {
  0% { opacity: 0; }
  12% { opacity: 1; }
  76% { opacity: 1; }
  100% { opacity: 0; }
}

/* ============ 结算 ============ */
.result-layer,
.pause-layer {
  position: absolute;
  inset: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--sat) + 20px) 22px calc(var(--sab) + 20px);
  background:
    radial-gradient(circle at 50% 32%, rgba(255, 138, 61, 0.24), transparent 46%),
    rgba(24, 12, 8, 0.66);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  overflow: hidden;
}

.result-card {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 342px;
  padding: 26px 20px 18px;
  border-radius: 30px;
  text-align: center;
  background:
    radial-gradient(130% 80% at 50% 0%, #FFFDF7 0%, #FFF4E2 58%, #FFE9CE 100%);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow:
    0 24px 60px rgba(25, 10, 4, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  animation: cardIn 0.5s cubic-bezier(0.16, 1.2, 0.3, 1) both;
}

@keyframes cardIn {
  from { transform: translateY(26px) scale(0.94); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}

.trophy {
  width: 64px;
  height: 64px;
  margin: -54px auto 8px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #FFF9EF;
  background: linear-gradient(160deg, #FFB45F, #FF8A3D 48%, #E95F13);
  border: 4px solid #FFF8EC;
  box-shadow: 0 8px 20px rgba(208, 82, 10, 0.4), inset 0 1px 2px rgba(255, 255, 255, 0.6);
}

.trophy .mp-icon { width: 32px; height: 32px; }

.result-kicker {
  margin: 0;
  color: #C77A42;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.26em;
}

.result-title {
  margin: 5px 0 0;
  color: #3C2113;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.result-sub {
  margin: 5px 0 0;
  color: #9E7B62;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.final-score {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  margin: 12px 0 12px;
  padding: 6px 0 9px;
  color: #3A2114;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  border-bottom: 1px dashed rgba(207, 156, 118, 0.45);
}

.final-score span {
  min-width: 58px;
  font-size: 47px;
  font-weight: 900;
  text-align: center;
  letter-spacing: -0.02em;
}

.final-score em {
  font-style: normal;
  font-size: 24px;
  font-weight: 800;
  color: #CE9A78;
}

.stats-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin: 0 0 17px;
}

.stat { display: flex; flex-direction: column; gap: 2px; }
.stat b { color: #E4671D; font-size: 21px; font-weight: 900; line-height: 1.05; font-variant-numeric: tabular-nums; }
.stat span { color: #A4836C; font-size: 9.5px; font-weight: 600; letter-spacing: 0.08em; }
.stat-divider { width: 1px; height: 26px; background: rgba(205, 157, 119, 0.4); }

.result-card .btn + .btn { margin-top: 9px; }

.confetti {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.confetti i {
  position: absolute;
  top: -8%;
  display: block;
  width: 8px;
  height: 14px;
  border-radius: 2px;
  opacity: 0;
  animation: confettiFall linear forwards;
}

@keyframes confettiFall {
  0% { opacity: 0; transform: translateY(-10vh) rotate(0deg); }
  8% { opacity: 1; }
  100% { opacity: 0.85; transform: translateY(110vh) rotate(660deg); }
}

/* ============ 暂停 ============ */
.pause-layer { z-index: 35; }

.pause-card {
  width: 100%;
  max-width: 306px;
  padding: 24px 20px 15px;
  border-radius: 28px;
  text-align: center;
  background: radial-gradient(130% 80% at 50% 0%, #FFFDF7 0%, #FFF4E2 62%, #FFE8CB 100%);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 22px 50px rgba(25, 10, 4, 0.42);
  animation: cardIn 0.34s cubic-bezier(0.16, 1.2, 0.3, 1) both;
}

.pause-mark {
  width: 54px;
  height: 54px;
  margin: 0 auto 10px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #C75A18;
  background: #FFE7C9;
  border: 2px solid #FFD4A8;
}
.pause-mark .mp-icon { width: 26px; height: 26px; }

.pause-card h2 {
  margin: 0;
  color: #3A2114;
  font-size: 21px;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.pause-score {
  margin: 5px 0 18px;
  color: #9E7B62;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.pause-score b { color: #E4671D; font-size: 15px; font-variant-numeric: tabular-nums; }
.pause-card .btn + .btn { margin-top: 9px; }

/* ============ 局间横幅 ============ */
.round-banner {
  position: absolute;
  top: 38%;
  left: 50%;
  z-index: 22;
  transform: translate(-50%, -50%);
  min-width: 190px;
  padding: 16px 26px 14px;
  border-radius: 24px;
  text-align: center;
  background: rgba(28, 15, 10, 0.84);
  border: 1px solid rgba(255, 190, 130, 0.22);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: bannerIn 0.4s cubic-bezier(0.16, 1.2, 0.3, 1) both;
}

@keyframes bannerIn {
  from { opacity: 0; transform: translate(-50%, -42%) scale(0.9); }
  to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

.banner-kicker {
  display: block;
  color: #FFC98F;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.24em;
}

.banner-title {
  display: block;
  margin-top: 4px;
  color: #FFF8EC;
  font-size: 33px;
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
}

.banner-sub {
  display: block;
  margin-top: 5px;
  color: rgba(255, 240, 222, 0.5);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.1em;
}

/* ============ 提示与闪光 ============ */
.score-sub.hot {
  color: #FFC178;
  font-size: 9.5px;
  letter-spacing: 0.08em;
  animation: subPop 0.4s cubic-bezier(0.2, 1.6, 0.4, 1);
}

@keyframes subPop {
  0% { transform: scale(0.8); opacity: 0.4; }
  55% { transform: scale(1.22); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

.flash {
  position: absolute;
  inset: 0;
  z-index: 17;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(circle at 50% 50%, rgba(255, 198, 132, 0.48), transparent 64%);
}

.flash.on { animation: flashHit 0.46s ease-out; }

@keyframes flashHit {
  0% { opacity: 0; }
  18% { opacity: 1; }
  100% { opacity: 0; }
}

/* ============ 小屏适配 ============ */
@media (max-height: 730px) {
  .home-main { padding-top: 4px; }
  .eyebrow { margin-bottom: 5px; }
  .logo-main { font-size: clamp(38px, 11vw, 48px); }
  .logo-sub { margin-top: 8px; font-size: clamp(18px, 5vw, 22px); }
  .tagline { margin-top: 8px; }
  .hero-wrap { padding: 4px 0 2px; }
  .hero-poster { width: min(73vw, 278px); }
  .hero-split { bottom: 10px; height: 26px; }
  .hero-ribbon { top: 10px; left: 10px; height: 23px; }
  .home-panel { padding-top: 12px; }
  .ready-card { min-height: 120px; }
}

@media (max-width: 360px) {
  .home-top { padding-left: 14px; padding-right: 14px; }
  .home-main { padding-left: 16px; padding-right: 16px; }
  .home-panel { padding-left: 15px; padding-right: 15px; }
  .hero-poster { width: min(82vw, 292px); }
  .hero-split { gap: 6px; padding: 0 8px; }
  .hero-split span { font-size: 7.6px; }
  .hero-split .hs-vs { font-size: 7px; }
  .ready-title { font-size: 10.5px; gap: 4px; }
  .ready-title .mp-icon { width: 14px; height: 14px; flex-basis: 14px; }
  .ready-count { height: 22px; padding: 0 8px; }
  .ready-grid { gap: 7px; }
  .ready-card { padding: 9px 8px 10px; min-height: 122px; border-radius: 17px; }
  .r-avatar { width: 34px; height: 34px; flex-basis: 34px; }
  .r-avatar .mp-icon { width: 19px; height: 19px; }
  .r-name { font-size: 13px; }
  .r-role { font-size: 7.8px; }
  .r-cta { height: 28px; font-size: 9.2px; }
  .r-flag { min-width: 23px; height: 17px; font-size: 7.2px; }
  .ready-vs { width: 27px; height: 27px; font-size: 8px; }
  .score-nums b { width: 40px; font-size: 36px; }
  .score-center { min-width: 100px; }
  .scoreboard { gap: 4px; }
  .side-name { max-width: 66px; font-size: 11px; }
  .pbadge { width: 29px; height: 29px; flex-basis: 29px; font-size: 13px; }
  .chip { font-size: 10px; gap: 3px; }
  .chip .mp-icon { width: 13px; height: 13px; flex-basis: 13px; }
  .rule-chips { gap: 5px; }
  .final-score span { min-width: 50px; font-size: 42px; }
}

@media (max-height: 760px) {
  .home-record { display: none; }
}

@media (max-height: 620px) {
  .hero-wrap, .eyebrow { display: none; }
  .tagline { margin-top: 6px; }
  .home-main { padding-top: 2px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero, .hero-poster, .hero-ball::after, .home-bg::before, .btn-shine, .confetti i,
  .ready-card.is-ready, .ready-grid.is-full .ready-vs { animation: none !important; }
  * { scroll-behavior: auto !important; }
}
