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

:root {
  --teal-950: #0B3836;
  --teal-900: #0E3F3D;
  --teal-800: #155552;
  --teal-700: #1D6B66;
  --teal-600: #2A7F78;
  --mint: #8FE0D4;
  --mint-2: #5BC6BB;
  --cream: #FFF7E8;
  --cream-2: #F7E9D2;
  --cream-3: #EEDFC6;
  --ink: #2B3B38;
  --ink-soft: #6B7C76;
  --orange: #FF8A3D;
  --orange-deep: #E86A20;
  --orange-dark: #C85A17;
  --orange-light: #FFB067;
  --blue: #45C7F0;
  --blue-deep: #1F9CC9;
  --blue-dark: #167A9E;
  --yellow: #FFC53D;
  --green: #77B96A;
}

html, body {
  height: 100%;
  margin: 0;
}

body {
  position: fixed;
  inset: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 82% -2%, rgba(255, 211, 122, 0.58) 0%, rgba(255, 211, 122, 0) 38%),
    radial-gradient(circle at 5% 102%, rgba(24, 103, 98, 0.45) 0%, rgba(24, 103, 98, 0) 48%),
    linear-gradient(164deg, #9BE6DA 0%, #6CCEC3 38%, #46B1A9 72%, #359B95 100%);
  color: var(--cream);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  user-select: none;
  overscroll-behavior: none;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.16) 1.2px, transparent 1.4px);
  background-size: 24px 24px;
  opacity: 0.42;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, 0.45) 48%, transparent 82%);
  mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, 0.45) 48%, transparent 82%);
}

button {
  font-family: inherit;
  -webkit-tap-highlight-color: transparent;
}

#app {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.bg-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.orb-a {
  width: 290px;
  height: 290px;
  right: -110px;
  top: -120px;
  background: radial-gradient(circle, rgba(255, 221, 150, 0.75) 0%, rgba(255, 221, 150, 0) 70%);
  filter: blur(6px);
}

.orb-b {
  width: 260px;
  height: 260px;
  left: -130px;
  bottom: -110px;
  background: radial-gradient(circle, rgba(13, 87, 83, 0.55) 0%, rgba(13, 87, 83, 0) 70%);
  filter: blur(16px);
}

#game {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  z-index: 2;
  touch-action: none;
  outline: none;
}

#safeProbe {
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  visibility: hidden;
  pointer-events: none;
  padding:
    env(safe-area-inset-top)
    env(safe-area-inset-right)
    env(safe-area-inset-bottom)
    env(safe-area-inset-left);
}

/* ---------- in-game HUD ---------- */

.hud {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  max-width: 588px;
  margin: 0 auto;
  padding: calc(env(safe-area-inset-top) + 10px) 14px 0;
  pointer-events: none;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

body.playing .hud {
  opacity: 1;
  transform: translateY(0);
}

.score-card {
  position: relative;
  min-width: 106px;
  padding: 7px 12px 7px;
  border-radius: 17px;
  border: 2px solid rgba(255, 255, 255, 0.7);
  background: linear-gradient(180deg, rgba(255, 251, 242, 0.98), rgba(247, 233, 210, 0.98));
  color: var(--ink);
  text-align: center;
  box-shadow: 0 7px 18px rgba(7, 56, 53, 0.28), inset 0 -2px 0 rgba(140, 112, 76, 0.12);
  overflow: hidden;
}

.score-card::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 4px;
  background: var(--blue);
}

.score-card.orange::before {
  background: var(--orange);
}

.team-name {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--ink-soft);
  line-height: 1;
}

.team-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 3px rgba(69, 199, 240, 0.18);
}

.score-card.orange .team-dot {
  background: var(--orange);
  box-shadow: 0 0 0 3px rgba(255, 138, 61, 0.18);
}

.score {
  margin-top: 3px;
  font-size: 31px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: -1px;
  color: var(--blue-deep);
  font-variant-numeric: tabular-nums;
  text-shadow: 0 2px 0 rgba(255, 255, 255, 0.75);
}

.score-card.orange .score {
  color: var(--orange-deep);
}

.score.pop {
  animation: scorePop 0.42s cubic-bezier(0.24, 0.9, 0.3, 1.5);
}

.score-card.flash {
  animation: cardFlash 0.48s ease-out;
}

@keyframes scorePop {
  0% { transform: scale(1); }
  36% { transform: scale(1.38); }
  100% { transform: scale(1); }
}

@keyframes cardFlash {
  0% { box-shadow: 0 0 0 0 rgba(255, 197, 61, 0.75), 0 7px 18px rgba(7, 56, 53, 0.28); }
  100% { box-shadow: 0 0 0 14px rgba(255, 197, 61, 0), 0 7px 18px rgba(7, 56, 53, 0.28); }
}

.sound-btn {
  pointer-events: auto;
  width: 44px;
  height: 44px;
  margin-top: 5px;
  display: grid;
  place-items: center;
  padding: 0;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.75);
  background: linear-gradient(180deg, #FFFBF2, #F6E8D1);
  color: var(--orange-deep);
  box-shadow: 0 6px 14px rgba(7, 56, 53, 0.28), inset 0 -2px 0 rgba(140, 112, 76, 0.14);
  cursor: pointer;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.sound-btn:active {
  transform: scale(0.92);
  box-shadow: 0 3px 8px rgba(7, 56, 53, 0.25);
}

.sound-btn .mp-icon {
  width: 22px;
  height: 22px;
}

.icon-off { display: none; }

body.muted .icon-on { display: none; }
body.muted .icon-off { display: inline-block; }

/* ---------- bottom key hint ---------- */

.hint {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  max-width: 588px;
  margin: 0 auto;
  padding: 0 14px calc(env(safe-area-inset-bottom) + 12px);
  pointer-events: none;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s ease 0.08s, transform 0.3s ease 0.08s;
}

body.playing .hint {
  opacity: 1;
  transform: translateY(0);
}

.hint-side {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px 8px;
  border-radius: 13px;
  border: 1px solid rgba(255, 247, 232, 0.18);
  background: rgba(8, 66, 63, 0.46);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.hint-side span {
  font-size: 9px;
  letter-spacing: 1px;
  color: rgba(255, 247, 232, 0.72);
}

kbd {
  display: inline-block;
  min-width: 19px;
  padding: 2px 5px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-bottom-width: 2px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--cream);
  font-family: inherit;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
}

.hint-side.blue kbd {
  color: #9BEDFF;
  border-color: rgba(155, 237, 255, 0.36);
}

.hint-side.orange kbd {
  color: #FFCEA6;
  border-color: rgba(255, 206, 166, 0.36);
}

.hint-mid {
  font-size: 9px;
  letter-spacing: 0.5px;
  color: rgba(255, 247, 232, 0.58);
  white-space: nowrap;
}

/* ---------- center flash / countdown ---------- */

.center-fx {
  position: absolute;
  left: 50%;
  top: 47%;
  z-index: 15;
  transform: translate(-50%, -50%);
  width: min(88vw, 420px);
  text-align: center;
  pointer-events: none;
  opacity: 0;
}

.center-fx.show {
  animation: centerPop 0.9s cubic-bezier(0.22, 0.9, 0.3, 1.25) both;
}

#centerBig {
  font-size: 64px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 2px;
  color: var(--cream);
  text-shadow:
    0 4px 0 rgba(11, 56, 54, 0.6),
    0 0 26px rgba(255, 197, 61, 0.6),
    0 10px 24px rgba(0, 0, 0, 0.24);
}

#centerSmall {
  margin-top: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2.5px;
  color: #FFE3B8;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}

.center-fx.mini #centerBig {
  font-size: 36px;
  letter-spacing: 1px;
}

.center-fx.mini #centerSmall {
  margin-top: 6px;
  font-size: 11px;
}

@keyframes centerPop {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.62); }
  20% { opacity: 1; transform: translate(-50%, -50%) scale(1.08); }
  34% { transform: translate(-50%, -50%) scale(1); }
  72% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, -52%) scale(1.03); }
}

/* ---------- overlay screens ---------- */

.screen {
  position: fixed;
  inset: 0;
  z-index: 40;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

.screen.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* ---------- menu ---------- */

.menu {
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  background:
    radial-gradient(circle at 86% 3%, rgba(255, 212, 120, 0.55) 0%, rgba(255, 212, 120, 0) 30%),
    radial-gradient(circle at 6% 94%, rgba(15, 83, 79, 0.4) 0%, rgba(15, 83, 79, 0) 42%),
    linear-gradient(166deg, #9BE6DA 0%, #6ACEC3 38%, #45B2AA 74%, #359A94 100%);
}

.menu::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.2) 1.3px, transparent 1.45px);
  background-size: 27px 27px;
  opacity: 0.5;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, 0.25) 52%, transparent 78%);
  mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, 0.25) 52%, transparent 78%);
}

.deco {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.d1 {
  width: 150px;
  height: 150px;
  right: -62px;
  top: 120px;
  border: 2px solid rgba(255, 247, 232, 0.18);
  background: rgba(255, 255, 255, 0.06);
  animation: driftA 11s ease-in-out infinite;
}

.d2 {
  width: 54px;
  height: 54px;
  left: -16px;
  top: 34%;
  background: rgba(255, 197, 61, 0.28);
  box-shadow: 0 0 0 12px rgba(255, 197, 61, 0.08);
  animation: driftB 8s ease-in-out infinite;
}

@keyframes driftA {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(-9px, 12px, 0); }
}

@keyframes driftB {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(7px, -10px, 0); }
}

.d3 {
  width: 22px;
  height: 22px;
  right: 12%;
  bottom: 16%;
  background: rgba(255, 247, 232, 0.24);
  box-shadow: 0 0 0 9px rgba(255, 247, 232, 0.06);
}

.menu-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 430px;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  padding:
    calc(env(safe-area-inset-top) + 14px)
    20px
    calc(env(safe-area-inset-bottom) + 16px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.menu-head {
  position: relative;
  display: flex;
  justify-content: center;
  margin-bottom: 10px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 247, 232, 0.32);
  background: rgba(12, 70, 66, 0.26);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: rgba(255, 247, 232, 0.92);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 9px var(--yellow);
}

.menu-sound {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  margin-top: 0;
}

.menu-sound:active {
  transform: translateY(-50%) scale(0.92);
}

.menu-sound .mp-icon {
  width: 20px;
  height: 20px;
}

.hero-wrap {
  position: relative;
  width: 100%;
  margin-bottom: 12px;
  filter: drop-shadow(0 16px 22px rgba(10, 63, 59, 0.26));
  animation: heroIn 0.65s cubic-bezier(0.2, 0.9, 0.3, 1.12) both;
}

.hero-art {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.hero-ball {
  animation: ballFloat 3s ease-in-out infinite;
  transform-box: fill-box;
  transform-origin: center;
}

@keyframes ballFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

@keyframes heroIn {
  from { opacity: 0; transform: translateY(14px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.title-block {
  text-align: center;
  margin-bottom: 16px;
}

h1 {
  margin: 0;
  font-size: clamp(38px, 11.5vw, 50px);
  line-height: 1;
  font-weight: 900;
  letter-spacing: 4px;
  color: var(--cream);
  text-shadow:
    0 4px 0 #2F8E87,
    0 8px 0 rgba(12, 72, 68, 0.42),
    0 16px 26px rgba(8, 60, 56, 0.34);
}

.title-block p {
  margin: 11px 0 0;
  font-size: 12px;
  letter-spacing: 1.5px;
  color: rgba(255, 247, 232, 0.84);
  text-shadow: 0 1px 4px rgba(9, 65, 61, 0.35);
}

.players-row {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 18px;
}

.pcard {
  flex: 1 1 0;
  min-width: 0;
  padding: 11px 11px 12px;
  border-radius: 19px;
  border: 2px solid rgba(255, 255, 255, 0.72);
  background: linear-gradient(180deg, #FFFCF5 0%, #F7EAD6 100%);
  color: var(--ink);
  box-shadow: 0 7px 0 rgba(13, 74, 70, 0.16), 0 13px 22px rgba(9, 60, 56, 0.2);
}

.pcard.blue { border-top: 5px solid var(--blue); }
.pcard.orange { border-top: 5px solid var(--orange); }

.pcard-top {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 8px;
}

.pdot {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.pcard.blue .pdot {
  background: var(--blue);
  box-shadow: 0 0 0 3px rgba(69, 199, 240, 0.18);
}

.pcard.orange .pdot {
  background: var(--orange);
  box-shadow: 0 0 0 3px rgba(255, 138, 61, 0.18);
}

.pname {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 1px;
  white-space: nowrap;
}

.pside {
  margin-left: auto;
  padding: 2px 5px;
  border-radius: 5px;
  background: #EDE1CC;
  color: #8E958F;
  font-size: 9px;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.pkeys {
  display: flex;
  align-items: center;
  gap: 4px;
}

.pkeys kbd {
  min-width: 26px;
  padding: 5px 7px;
  border: 0;
  border-bottom: 3px solid #16433F;
  border-radius: 8px;
  background: #245C58;
  color: var(--cream);
  font-size: 12px;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.08);
}

.pkeys .or {
  color: #A3ABA6;
  font-size: 10px;
}

.vs-badge {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 3px solid var(--cream);
  background: linear-gradient(180deg, #FFB067, #FF7A2E);
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 900;
  font-style: italic;
  letter-spacing: 0.5px;
  box-shadow: 0 5px 12px rgba(186, 74, 20, 0.35);
  transform: rotate(-6deg);
}

.btn-primary {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  height: 58px;
  padding: 0 18px;
  border: 0;
  border-radius: 20px;
  background: linear-gradient(180deg, #FFAE6B 0%, #FF8A3D 52%, #FF7A2E 100%);
  color: #FFFFFF;
  font-family: inherit;
  font-size: 19px;
  font-weight: 900;
  letter-spacing: 3px;
  text-shadow: 0 2px 0 rgba(174, 69, 14, 0.4);
  box-shadow:
    0 7px 0 var(--orange-dark),
    0 17px 26px rgba(173, 70, 16, 0.35),
    inset 0 2px 0 rgba(255, 255, 255, 0.48);
  cursor: pointer;
  transition: transform 0.08s ease, box-shadow 0.08s ease;
}

.btn-primary:active {
  transform: translateY(5px);
  box-shadow:
    0 2px 0 var(--orange-dark),
    0 8px 15px rgba(173, 70, 16, 0.3),
    inset 0 2px 0 rgba(255, 255, 255, 0.4);
}

.btn-primary::after {
  content: "";
  position: absolute;
  left: 20px;
  right: 20px;
  top: 6px;
  height: 9px;
  border-radius: 9px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.38), transparent);
  pointer-events: none;
}

.btn-primary .mp-icon {
  width: 24px;
  height: 24px;
  filter: drop-shadow(0 2px 0 rgba(120, 48, 10, 0.25));
}

.menu-rule {
  margin: 14px 0 0;
  text-align: center;
  font-size: 10px;
  letter-spacing: 1.2px;
  color: rgba(255, 247, 232, 0.74);
  text-shadow: 0 1px 4px rgba(9, 65, 61, 0.3);
}

/* ---------- game over ---------- */

.over {
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
  overflow-y: auto;
  background: rgba(7, 44, 42, 0.58);
  -webkit-backdrop-filter: blur(9px);
  backdrop-filter: blur(9px);
}

.over-card {
  position: relative;
  width: 100%;
  max-width: 330px;
  padding: 24px 22px 16px;
  border-radius: 28px;
  border: 2px solid rgba(255, 255, 255, 0.82);
  background: linear-gradient(180deg, #FFFCF5 0%, #F7EAD6 100%);
  color: var(--ink);
  text-align: center;
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.38), inset 0 -3px 0 rgba(140, 112, 76, 0.1);
  animation: cardIn 0.4s cubic-bezier(0.2, 0.9, 0.3, 1.2) both;
}

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

.trophy {
  width: 66px;
  height: 66px;
  margin: 0 auto 11px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 3px solid #FFF9EE;
  background: linear-gradient(180deg, #FFD56E, #FFA33A);
  color: #FFFFFF;
  box-shadow: 0 6px 0 #D9861F, 0 12px 22px rgba(190, 118, 18, 0.35);
}

.trophy .mp-icon {
  width: 34px;
  height: 34px;
  filter: drop-shadow(0 2px 0 rgba(150, 85, 10, 0.25));
}

.eyebrow {
  margin: 0;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2.5px;
  color: #9A9F98;
}

.win-title {
  margin: 6px 0 0;
  font-size: 28px;
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: 2px;
  color: var(--blue-deep);
}

.win-title.orange { color: var(--orange-deep); }

.final-score {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 10px;
  margin: 9px 0 0;
  font-size: 46px;
  line-height: 1;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.final-score .l { color: var(--blue-deep); }
.final-score .r { color: var(--orange-deep); }
.final-score .colon { color: #C0AC90; font-size: 30px; font-weight: 700; }

.over-sub {
  margin: 7px 0 18px;
  font-size: 11px;
  letter-spacing: 1px;
  color: #8C948E;
}

.over-card .btn-primary {
  height: 52px;
  font-size: 17px;
  letter-spacing: 2px;
}

.ghost-btn {
  margin-top: 13px;
  padding: 8px 14px;
  border: 0;
  background: transparent;
  color: #808B85;
  font-size: 12px;
  letter-spacing: 1px;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.ghost-btn:active { opacity: 0.6; }

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

.confetti i {
  position: absolute;
  top: -24px;
  display: block;
  border-radius: 2px;
  opacity: 0;
  animation-name: confettiFall;
  animation-timing-function: linear;
  animation-fill-mode: forwards;
}

@keyframes confettiFall {
  0% { opacity: 0; transform: translateY(0) rotate(0deg); }
  8% { opacity: 1; }
  100% { opacity: 0.95; transform: translateY(110vh) rotate(760deg); }
}

/* ---------- responsive ---------- */

@media (max-height: 720px) {
  .menu-inner {
    padding-top: calc(env(safe-area-inset-top) + 10px);
    padding-bottom: calc(env(safe-area-inset-bottom) + 10px);
  }

  .menu-head { margin-bottom: 7px; }

  .hero-wrap {
    width: min(78vw, 310px);
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 8px;
  }

  .title-block { margin-bottom: 11px; }

  h1 { font-size: 38px; letter-spacing: 3px; }

  .title-block p { margin-top: 7px; font-size: 11px; }

  .players-row { margin-bottom: 13px; }

  .pcard { padding: 9px 9px 10px; }
  .pcard-top { margin-bottom: 6px; }
  .pkeys kbd { padding: 4px 6px; font-size: 11px; }

  .btn-primary { height: 52px; font-size: 17px; }

  .menu-rule { margin-top: 11px; }
}

@media (max-height: 600px) {
  .menu-inner { justify-content: flex-start; }
}

@media (max-width: 360px) {
  .hint-mid { display: none; }
  .score-card { min-width: 96px; padding-left: 9px; padding-right: 9px; }
  .score { font-size: 28px; }
  .menu-inner { padding-left: 16px; padding-right: 16px; }
  #centerBig { font-size: 54px; }
  .center-fx.mini #centerBig { font-size: 31px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-ball, .hero-wrap, .over-card, .d1, .d2 { animation: none; }
  .center-fx.show { animation-duration: 1.2s; }
}
