:root {
  --cream: #fff4bf;
  --brown: #713815;
  --mint: #a7f7bc;
  --mint-deep: #24a869;
  --glass: rgba(205, 246, 232, 0.24);
  --glass-strong: rgba(221, 248, 241, 0.36);
  --ink: #07131f;
  --outline: 0 3px 0 #3e2a44, 3px 0 0 #3e2a44, -3px 0 0 #3e2a44, 0 -3px 0 #3e2a44;
}

.app-shell .bubble-button {
  background: linear-gradient(145deg, color-mix(in srgb, var(--remote-accent) 88%, white), var(--remote-accent-end));
}

* {
  box-sizing: border-box;
}

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

body {
  background: #07112d;
  color: #fffdf2;
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  font-weight: 900;
  user-select: none;
}

body.eye-mode {
  filter: saturate(0.74) brightness(0.96);
}

.app-shell {
  --remote-accent: #a7f7bc;
  --remote-accent-end: #24a869;
  --remote-background: #07112d;
  background: var(--remote-background);
}

.app-shell.has-remote-background:not([data-screen="game"]) .game-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image: linear-gradient(rgba(7, 17, 45, 0.12), rgba(7, 17, 45, 0.28)), var(--remote-background-image);
  background-position: center;
  background-size: cover;
}

.bubble-button {
  background: linear-gradient(145deg, color-mix(in srgb, var(--remote-accent) 88%, white), var(--remote-accent-end));
}

.title-wrap.has-remote-image h1 {
  display: none;
}

.remote-logo-image {
  display: block;
  width: min(720px, 58vw);
  max-height: 150px;
  object-fit: contain;
}

.home-hero-frog.has-remote-image > :not(.remote-frog-image) {
  display: none;
}

.remote-frog-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 16px 24px rgba(0, 0, 0, 0.28));
}

.remote-menu-icon {
  width: 1.15em;
  height: 1.15em;
  object-fit: contain;
  vertical-align: middle;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.app-shell {
  position: fixed;
  inset: 0;
  overflow: hidden;
}

body.force-landscape .app-shell {
  top: 0;
  right: auto;
  bottom: auto;
  left: 0;
  width: 100vh;
  height: 100vw;
  transform: rotate(90deg) translateY(-100%);
  transform-origin: top left;
}

.game-stage,
#gameCanvas {
  position: absolute;
  inset: 0;
  width: 100vw;
  height: 100vh;
  display: block;
}

.app-shell:not([data-screen="game"]) .game-stage {
  pointer-events: none;
}

body.force-landscape .game-stage,
body.force-landscape #gameCanvas {
  width: 100%;
  height: 100%;
}

.screen {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: none;
  padding: max(22px, env(safe-area-inset-top)) max(22px, env(safe-area-inset-right)) max(22px, env(safe-area-inset-bottom)) max(22px, env(safe-area-inset-left));
}

.app-shell[data-screen="home"] #homeScreen,
.app-shell[data-screen="modes"] #modeScreen,
.app-shell[data-screen="leaderboard"] #leaderboardScreen,
.app-shell[data-screen="guide"] #guideScreen,
.app-shell[data-screen="settings"] #settingsScreen,
.app-shell[data-screen="result"] #resultScreen {
  display: flex;
}

.app-shell[data-screen="game"] .game-hud {
  display: block;
}

.app-shell[data-play-style="sling"] .charge-wrap {
  display: none;
}

.app-shell:not([data-screen="game"]) .game-hud,
.app-shell[data-screen="game"] .home-screen,
.app-shell[data-screen="game"] .modal-screen,
.app-shell[data-screen="game"] .result-screen {
  display: none;
}

.home-screen {
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
}

.home-screen > * {
  pointer-events: auto;
}

.home-screen > .play-style-switch {
  display: none;
}

.home-hero-frog {
  position: absolute;
  left: 50%;
  top: 46%;
  width: min(300px, 32vw);
  height: min(196px, 21vw);
  z-index: 2;
  transform: translate(-50%, -50%);
}

.home-hero-pad {
  position: absolute;
  left: 50%;
  bottom: 18px;
  width: 100%;
  height: 34%;
  border: 5px solid rgba(226, 255, 236, 0.94);
  border-radius: 50%;
  background: radial-gradient(circle at 28% 26%, #ceffd8, #6df0a5 36%, #1c9f68 78%);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.24), 0 0 54px rgba(111, 255, 174, 0.56), inset 0 -12px 24px rgba(1, 61, 55, 0.24);
  transform: translateX(-50%);
}

.home-hero-reflection {
  position: absolute;
  left: 50%;
  bottom: 6px;
  width: 44%;
  height: 18%;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(189, 255, 218, 0.32), rgba(87, 212, 175, 0.08) 62%, transparent 72%);
  filter: blur(1px);
  transform: translateX(-50%);
}

.home-hero-body {
  position: absolute;
  left: 50%;
  bottom: 62px;
  width: 112px;
  height: 100px;
  border: 5px solid #073326;
  border-radius: 50% 50% 44% 44%;
  background: radial-gradient(circle at 32% 18%, #d9ff91, #70e66e 42%, #23aa58 82%);
  box-shadow: inset -12px -14px 18px rgba(0, 72, 48, 0.2), 0 18px 24px rgba(0, 0, 0, 0.18);
  transform: translateX(-50%);
  animation: homeFrogIdle 1.8s ease-in-out infinite;
}

.home-hero-belly {
  position: absolute;
  left: 50%;
  bottom: 18px;
  width: 58px;
  height: 44px;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 25%, #fff8d6, #d9efad);
  transform: translateX(-50%);
}

.home-hero-eye {
  position: absolute;
  top: -27px;
  width: 38px;
  height: 38px;
  border: 5px solid #073326;
  border-radius: 50%;
  background: #eaffd9;
}

.home-hero-eye.eye-left {
  left: 17px;
}

.home-hero-eye.eye-right {
  right: 17px;
}

.home-hero-eye::after {
  content: "";
  position: absolute;
  left: 12px;
  top: 10px;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: #0d1423;
  box-shadow: 7px -5px 0 -3px #fff;
}

.home-hero-blush {
  position: absolute;
  top: 47px;
  width: 28px;
  height: 15px;
  border-radius: 50%;
  background: rgba(255, 158, 176, 0.42);
}

.home-hero-blush.blush-left {
  left: 16px;
}

.home-hero-blush.blush-right {
  right: 16px;
}

.home-hero-mouth {
  position: absolute;
  left: 50%;
  top: 57px;
  width: 48px;
  height: 24px;
  border-bottom: 5px solid #164337;
  border-radius: 0 0 50% 50%;
  transform: translateX(-50%);
}

@keyframes homeFrogIdle {
  0%, 100% { transform: translateX(-50%) translateY(0) scale(1, 1); }
  48% { transform: translateX(-50%) translateY(-10px) scale(1.03, 0.97); }
}

.title-wrap {
  width: min(880px, 96vw);
  margin-top: clamp(58px, 9vh, 128px);
  text-align: center;
}

.title-wrap h1 {
  margin: 0;
  color: var(--cream);
  font-size: clamp(54px, 10vw, 122px);
  line-height: 0.98;
  letter-spacing: 0;
  text-shadow: 0 5px 0 #6e3b27, 0 0 18px rgba(255, 217, 132, 0.7), 0 0 32px rgba(255, 218, 129, 0.42);
  -webkit-text-stroke: 3px #60304a;
  filter: drop-shadow(0 0 10px rgba(255, 246, 183, 0.95)) drop-shadow(0 0 28px rgba(255, 196, 91, 0.88));
}

.title-wrap p,
.hint-text,
.charge-wrap span {
  color: #fffbe8;
  font-size: clamp(24px, 3.4vw, 38px);
  font-weight: 900;
  text-shadow: var(--outline);
}

.today-chip,
.score-chip {
  position: absolute;
  top: max(22px, env(safe-area-inset-top));
  right: max(22px, env(safe-area-inset-right));
  z-index: 4;
  width: clamp(176px, 23vw, 270px);
  padding: clamp(14px, 2vw, 24px) clamp(16px, 2vw, 28px);
  border: 5px solid rgba(255, 255, 255, 0.82);
  border-radius: 42px;
  background:
    radial-gradient(circle at 30% 12%, rgba(255, 255, 255, 0.46), transparent 32%),
    linear-gradient(145deg, rgba(176, 189, 232, 0.72), rgba(77, 98, 164, 0.54));
  box-shadow:
    0 14px 34px rgba(0, 0, 0, 0.3),
    inset 0 4px 0 rgba(255, 255, 255, 0.52),
    inset 0 -8px 18px rgba(38, 55, 112, 0.28);
  backdrop-filter: blur(10px);
  text-align: center;
}

.score-chip {
  display: none;
}

.app-shell[data-screen="game"] .score-chip {
  display: block;
}

.function-menu-button {
  position: absolute;
  top: max(22px, env(safe-area-inset-top));
  left: max(22px, env(safe-area-inset-left));
  z-index: 80;
  pointer-events: auto;
  min-width: 92px;
  min-height: 52px;
  padding: 0 22px;
  border: 3px solid rgba(255, 248, 214, 0.88);
  border-radius: 999px;
  background: linear-gradient(#fff8c8, #f0b86d);
  color: #713815;
  font-size: 20px;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3), inset 0 2px 0 rgba(255, 255, 255, 0.7);
  pointer-events: auto;
}

.function-menu-mask {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 70;
  pointer-events: auto;
  border: 0;
  background: rgba(3, 12, 24, 0.34);
}

.function-menu-panel {
  display: none;
  position: absolute;
  top: max(92px, calc(env(safe-area-inset-top) + 74px));
  left: 50%;
  z-index: 90;
  pointer-events: auto;
  width: min(500px, calc(100% - 44px));
  padding: 20px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  border: 4px solid rgba(244, 255, 250, 0.84);
  border-radius: 18px;
  background: linear-gradient(160deg, rgba(18, 44, 65, 0.96), rgba(31, 118, 99, 0.92));
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.34), inset 0 2px 0 rgba(255, 255, 255, 0.38);
  transform: translateX(-50%);
  pointer-events: auto;
}

.app-shell.menu-open .function-menu-mask {
  display: flex;
}

.app-shell.menu-open .function-menu-panel {
  display: grid;
}

.function-menu-panel h2 {
  grid-column: 1 / -1;
  width: 100%;
  margin: 0 0 6px;
  color: var(--cream);
  font-size: 22px;
  line-height: 1.2;
  text-align: center;
}

.function-menu-item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  margin-top: 0;
  padding: 0 12px;
  border: 2px solid rgba(255, 248, 214, 0.72);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  color: #fffdf2;
  font-size: 19px;
  font-weight: 900;
  line-height: 1.15;
  text-align: center;
  pointer-events: auto;
}

.function-menu-panel button {
  pointer-events: auto;
}

.function-menu-item.muted {
  grid-column: 1 / -1;
  color: var(--cream);
}

.today-chip span,
.score-chip span {
  display: block;
  color: #fffbe8;
  font-size: clamp(18px, 2.2vw, 26px);
  font-weight: 900;
  text-shadow: var(--outline);
}

.today-chip strong,
.score-chip strong {
  display: block;
  color: var(--cream);
  font-size: clamp(52px, 7vw, 86px);
  line-height: 0.95;
  font-weight: 900;
  text-shadow: var(--outline);
}

.bubble-nav {
  width: min(980px, 96vw);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(22px, 4vw, 62px);
  align-items: end;
  margin-bottom: clamp(26px, 5vh, 54px);
}

.bubble-button {
  position: relative;
  min-height: clamp(76px, 9vw, 112px);
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 5px solid rgba(239, 255, 241, 0.88);
  border-radius: 28px;
  color: #fffdf2;
  background: linear-gradient(145deg, rgba(176, 255, 159, 0.94), rgba(31, 184, 116, 0.94));
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.32), inset 0 12px 24px rgba(255, 255, 255, 0.32);
  font-size: clamp(24px, 3.2vw, 38px);
  font-weight: 900;
  line-height: 1.05;
  text-align: center;
}

.button-icon {
  min-width: 28px;
  color: #fff8c8;
  font-size: 0.92em;
  line-height: 1;
}

.small-nav {
  display: flex;
  gap: 18px;
  margin-bottom: 6px;
}

.play-style-switch {
  position: absolute;
  left: 50%;
  bottom: clamp(214px, 27vh, 318px);
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(2, minmax(148px, 1fr));
  gap: 10px;
  width: min(520px, 84vw);
  padding: 8px;
  border: 4px solid rgba(230, 255, 249, 0.72);
  border-radius: 999px;
  background: rgba(4, 20, 44, 0.48);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28), inset 0 2px 0 rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(10px);
  transform: translateX(-50%);
}

.play-style-panel {
  width: min(720px, 92vw);
  padding: 10px;
  border: 4px solid rgba(230, 255, 249, 0.72);
  border-radius: 24px;
  background: rgba(4, 20, 44, 0.48);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28), inset 0 2px 0 rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(10px);
}

.play-style-title {
  display: block;
  margin-bottom: 8px;
  color: var(--cream);
  font-size: clamp(18px, 2.2vw, 28px);
  text-align: center;
  text-shadow: var(--outline);
}

.play-style-switch.in-panel {
  position: static;
  left: auto;
  bottom: auto;
  width: 100%;
  transform: none;
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.play-style-button {
  min-height: 62px;
  border: 0;
  border-radius: 999px;
  color: #fffdf2;
  background: transparent;
  font-size: clamp(20px, 2.7vw, 30px);
  font-weight: 900;
  text-shadow: var(--outline);
}

.play-style-button[aria-pressed="true"] {
  color: #713815;
  background: linear-gradient(#fff8c8, #f0b86d);
  text-shadow: 0 2px 0 rgba(255, 255, 255, 0.42);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.72), 0 6px 14px rgba(0, 0, 0, 0.24);
}

.pill-button,
.back-button,
.wide-button {
  min-height: 74px;
  padding: 0 42px;
  border: 4px solid rgba(255, 248, 214, 0.78);
  border-radius: 999px;
  background: linear-gradient(#fff8c8, #f0b86d);
  color: var(--brown);
  font-size: clamp(25px, 3.4vw, 42px);
  font-weight: 900;
  text-shadow: 0 2px 0 rgba(255, 255, 255, 0.35), 0 0 0 #2d1d12;
  box-shadow: 0 9px 22px rgba(0, 0, 0, 0.28), inset 0 2px 0 rgba(255, 255, 255, 0.7);
}

.modal-screen,
.result-screen {
  z-index: 5;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(20px, 3vh, 34px);
}

.gold-title,
.glass-title {
  margin: 0;
  padding: 18px 54px;
  border: 5px solid rgba(255, 248, 214, 0.82);
  border-radius: 999px;
  background: linear-gradient(#fff8c8, #f0b86d);
  color: var(--brown);
  font-size: clamp(42px, 7vw, 78px);
  font-weight: 900;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28), inset 0 2px 0 rgba(255, 255, 255, 0.72);
}

.glass-title {
  color: var(--cream);
  background: linear-gradient(135deg, rgba(173, 195, 241, 0.46), rgba(202, 248, 235, 0.22));
  text-shadow: var(--outline);
}

.mode-grid {
  width: min(1080px, 96vw);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 4vw, 44px);
}

.modes-screen {
  justify-content: flex-start;
  gap: clamp(16px, 2.6vh, 28px);
  padding-top: clamp(20px, 3vh, 38px);
}

.modes-screen .gold-title {
  padding: 12px 42px;
  font-size: clamp(30px, 4vw, 52px);
}

.modes-screen .play-style-panel {
  width: min(720px, 92vw);
  margin-top: clamp(12px, 2vh, 26px);
}

.modes-screen .mode-grid {
  width: min(980px, 94vw);
  gap: clamp(14px, 2vw, 24px);
  margin-top: clamp(8px, 1.6vh, 18px);
}

.modes-screen .mode-card {
  min-height: clamp(170px, 28vh, 270px);
  padding: 20px 12px;
}

.modes-screen .mode-card span,
.modes-screen .mode-card strong {
  font-size: clamp(20px, 2.6vw, 34px);
}

.modes-screen .mode-card strong {
  margin-top: 16px;
}

.modes-screen .mode-card em {
  margin-top: 18px;
  font-size: clamp(34px, 5vw, 56px);
}

.modes-screen .wide-button {
  min-height: 58px;
  font-size: clamp(22px, 2.8vw, 32px);
}

.modes-screen .back-button {
  min-height: 50px;
  font-size: clamp(18px, 2.2vw, 26px);
}

.mode-card {
  min-height: clamp(280px, 45vh, 520px);
  padding: 28px 18px;
  border: 5px solid rgba(243, 255, 245, 0.86);
  border-radius: 32px;
  background:
    radial-gradient(ellipse at 40% 8%, rgba(207, 255, 190, 0.55), transparent 30%),
    linear-gradient(180deg, rgba(207, 255, 239, 0.58), rgba(85, 227, 192, 0.34));
  color: #fffdf2;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28), inset 0 2px 0 rgba(255, 255, 255, 0.46);
  backdrop-filter: blur(11px);
}

.mode-card[aria-pressed="true"] {
  outline: 7px solid rgba(255, 246, 160, 0.78);
  background:
    radial-gradient(ellipse at 40% 8%, rgba(241, 255, 183, 0.72), transparent 32%),
    linear-gradient(180deg, rgba(196, 255, 177, 0.72), rgba(68, 224, 147, 0.48));
}

.mode-card span,
.mode-card strong {
  display: block;
  font-size: clamp(28px, 4.2vw, 52px);
  line-height: 1.28;
  font-weight: 900;
  text-shadow: var(--outline);
}

.mode-card strong {
  margin-top: 28px;
}

.mode-card em {
  display: block;
  margin-top: 44px;
  font-size: clamp(52px, 8vw, 96px);
  font-style: normal;
  filter: drop-shadow(0 8px 8px rgba(0, 0, 0, 0.28));
}

.wide-button {
  width: min(620px, 86vw);
}

.back-button {
  min-height: 64px;
  font-size: clamp(22px, 3vw, 34px);
}

.leaderboard-screen {
  justify-content: flex-start;
  gap: 14px;
  padding-top: clamp(18px, 3vh, 32px);
  padding-bottom: 40px;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(123, 255, 195, 0.58) rgba(5, 22, 52, 0.22);
}

.leaderboard-header {
  width: min(1180px, 96vw);
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 22px;
}

.leaderboard-heading {
  display: flex;
  align-items: center;
  gap: 18px;
}

.leaderboard-eyebrow {
  color: #8effce;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.32em;
  writing-mode: vertical-rl;
}

.leaderboard-heading .gold-title {
  padding: 10px 30px;
  border-width: 3px;
  font-size: clamp(28px, 3.4vw, 46px);
}

.rank-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.result-card,
.guide-panel,
.settings-panel {
  border: 5px solid rgba(244, 255, 250, 0.78);
  border-radius: 34px;
  background: linear-gradient(135deg, rgba(183, 194, 232, 0.5), rgba(165, 237, 224, 0.28));
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.26), inset 0 2px 0 rgba(255, 255, 255, 0.42);
  backdrop-filter: blur(12px);
}

.rank-summary div {
  min-width: 110px;
  padding: 8px 13px;
  border: 2px solid rgba(228, 255, 244, 0.48);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(169, 188, 236, 0.34), rgba(74, 208, 175, 0.18));
  text-align: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.rank-summary span {
  color: rgba(255, 253, 242, 0.76);
  font-size: 12px;
  font-weight: 900;
}

.rank-summary strong {
  margin-left: 6px;
  color: var(--cream);
  font-size: 26px;
  line-height: 1;
}

.rank-summary small {
  color: rgba(255, 253, 242, 0.72);
  font-size: 12px;
  font-weight: 800;
}

.leaderboard-back {
  min-height: 48px;
  padding: 0 22px;
  font-size: 18px;
}

.current-player-honor {
  position: relative;
  isolation: isolate;
  width: min(1180px, 96vw);
  min-height: 176px;
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
  padding: 18px 30px 18px 18px;
  overflow: hidden;
  border: 2px solid rgba(174, 255, 218, 0.74);
  border-radius: 28px;
  background:
    radial-gradient(circle at 13% 50%, rgba(87, 255, 176, 0.24), transparent 23%),
    linear-gradient(105deg, rgba(13, 42, 79, 0.94), rgba(26, 57, 103, 0.84) 58%, rgba(50, 48, 109, 0.86));
  box-shadow: 0 22px 48px rgba(0, 8, 28, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.current-player-honor::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.35;
  background-image:
    linear-gradient(115deg, transparent 28%, rgba(255, 255, 255, 0.13) 29%, transparent 30%),
    radial-gradient(circle at 82% 26%, rgba(255, 226, 113, 0.8) 0 2px, transparent 3px),
    radial-gradient(circle at 74% 68%, rgba(104, 255, 203, 0.8) 0 2px, transparent 3px);
  background-size: 120px 120px, 86px 86px, 112px 112px;
}

.current-player-medal {
  min-height: 138px;
  display: grid;
  place-items: center;
}

.current-player-profile {
  min-width: 0;
  display: grid;
  gap: 7px;
}

.profile-kicker {
  color: #7effc9;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.28em;
}

.profile-name-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.profile-name-row > strong {
  overflow: hidden;
  color: #fffdf2;
  font-size: clamp(25px, 3vw, 40px);
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.honor-title,
.rank-honor-title {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 28px;
  padding: 0 12px;
  border: 1px solid rgba(255, 236, 158, 0.72);
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 204, 87, 0.22), rgba(255, 240, 167, 0.09));
  color: #ffe8a0;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.honor-title::before,
.rank-honor-title::before {
  content: "◆";
  margin-right: 7px;
  color: #8effce;
  font-size: 9px;
}

.player-number,
.rank-player-id {
  color: rgba(214, 230, 255, 0.7);
  font-family: Consolas, "SFMono-Regular", monospace;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.profile-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mode-tag,
.profile-tag,
.rank-mode {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 8px;
  background: rgba(77, 239, 180, 0.13);
  color: #a8ffdb;
  font-size: 13px;
  font-weight: 900;
}

.profile-tag {
  background: rgba(117, 153, 255, 0.12);
  color: #cbd8ff;
}

.current-player-record {
  min-width: 174px;
  padding-left: 28px;
  border-left: 1px solid rgba(199, 226, 255, 0.22);
  text-align: right;
}

.current-player-record span {
  display: block;
  color: rgba(224, 236, 255, 0.7);
  font-size: 14px;
  font-weight: 800;
}

.current-player-record strong {
  display: block;
  margin-top: 5px;
  color: #fff0ac;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1;
}

.leaderboard-columns {
  width: min(1180px, 96vw);
  display: grid;
  grid-template-columns: 54px 90px minmax(240px, 1fr) 150px 140px 105px;
  align-items: center;
  gap: 14px;
  padding: 0 24px;
  color: rgba(211, 228, 255, 0.58);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.leaderboard-columns span:nth-last-child(-n + 3) {
  text-align: right;
}

.leaderboard {
  width: min(1180px, 96vw);
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.leaderboard li {
  position: relative;
  display: grid;
  grid-template-columns: 54px 90px minmax(240px, 1fr) 150px 140px 105px;
  align-items: center;
  gap: 14px;
  min-height: 92px;
  padding: 8px 24px;
  overflow: hidden;
  border: 1px solid rgba(177, 214, 239, 0.26);
  border-radius: 18px;
  background: linear-gradient(90deg, rgba(16, 45, 77, 0.9), rgba(28, 54, 90, 0.72));
  color: #fffdf2;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.leaderboard li::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: #43e3a2;
  opacity: 0.45;
}

.leaderboard li.rank-top {
  border-color: rgba(255, 226, 126, 0.4);
  background:
    radial-gradient(circle at 12% 50%, rgba(255, 220, 105, 0.12), transparent 25%),
    linear-gradient(90deg, rgba(29, 55, 88, 0.96), rgba(38, 55, 92, 0.82));
}

.leaderboard li.rank-top::after {
  width: 4px;
  opacity: 1;
  background: linear-gradient(#fff2a4, #e6a73c);
}

.leaderboard li.is-current-player {
  border-color: rgba(91, 255, 187, 0.72);
  box-shadow: 0 0 24px rgba(55, 231, 159, 0.12), inset 0 0 0 1px rgba(91, 255, 187, 0.12);
}

.rank-badge {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(177, 223, 220, 0.36);
  background: rgba(47, 113, 112, 0.22);
  color: #b8e7de;
  font-size: 18px;
  font-weight: 900;
}

.rank-top-1 .rank-badge {
  border-color: #fff0a0;
  background: linear-gradient(145deg, #fff5b4, #dc9b31);
  color: #56320f;
  box-shadow: 0 0 18px rgba(255, 213, 77, 0.46);
}

.rank-top-2 .rank-badge {
  border-color: #eaf3ff;
  background: linear-gradient(145deg, #f4f8ff, #8498b5);
  color: #26364b;
}

.rank-top-3 .rank-badge {
  border-color: #ffd1a7;
  background: linear-gradient(145deg, #ffc283, #a85c31);
  color: #4b2516;
}

.rank-medal {
  display: grid;
  place-items: center;
  min-height: 74px;
}

.rank-player {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, auto) 1fr;
  align-items: center;
  gap: 4px 9px;
}

.rank-player-name {
  overflow: hidden;
  color: #fffdf2;
  font-size: 19px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-player-name em {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  margin-left: 7px;
  border-radius: 50%;
  background: #48e6a6;
  color: #083a35;
  font-size: 12px;
  font-style: normal;
}

.rank-player-id {
  align-self: end;
  text-align: right;
}

.rank-honor-title {
  grid-column: 1 / -1;
  min-height: 23px;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 12px;
}

.rank-mode {
  justify-self: end;
  min-width: 112px;
  color: #b6ffe0;
  background: rgba(51, 208, 153, 0.12);
}

.rank-score {
  color: #fff0ae;
  text-align: right;
}

.rank-score strong {
  display: block;
  font-size: 25px;
  line-height: 1;
}

.rank-score small,
.rank-level small {
  display: block;
  margin-bottom: 3px;
  color: rgba(220, 234, 255, 0.58);
  font-size: 11px;
  font-weight: 800;
}

.rank-level {
  color: #fff2b0;
  text-align: right;
}

.rank-level strong {
  display: block;
  font-size: 22px;
  line-height: 1;
}

.leaderboard-empty {
  grid-template-columns: 1fr !important;
  justify-items: center;
  min-height: 150px !important;
  text-align: center;
}

.leaderboard-empty strong {
  color: #fff2b0;
  font-size: 25px;
}

.leaderboard-empty span {
  color: rgba(223, 236, 255, 0.66);
  font-size: 14px;
}

.frog-medal {
  --medal-main: #39e797;
  --medal-light: #caffb4;
  --medal-dark: #08735e;
  --medal-metal: #a6c9d5;
  position: relative;
  display: block;
  width: 132px;
  height: 132px;
  filter: drop-shadow(0 10px 12px rgba(0, 0, 0, 0.36));
}

.frog-medal-rare {
  --medal-main: #4de7dc;
  --medal-light: #d6ffff;
  --medal-dark: #176ba7;
  --medal-metal: #9cefff;
}

.frog-medal-elite {
  --medal-main: #7e8eff;
  --medal-light: #e0dcff;
  --medal-dark: #4933a7;
  --medal-metal: #b7c4ff;
}

.frog-medal-epic {
  --medal-main: #d66fff;
  --medal-light: #ffd6ff;
  --medal-dark: #6c218f;
  --medal-metal: #e9a7ff;
}

.frog-medal-legend {
  --medal-main: #ffba3f;
  --medal-light: #fff4a8;
  --medal-dark: #a5441f;
  --medal-metal: #ffe18a;
}

.frog-medal-mythic {
  --medal-main: #ff5e9d;
  --medal-light: #fff0a7;
  --medal-dark: #7b1e76;
  --medal-metal: #8effe0;
}

.medal-rays,
.medal-aura,
.medal-core,
.medal-frog,
.medal-eye,
.medal-crown,
.medal-gem,
.medal-wing,
.medal-ribbon {
  position: absolute;
  display: block;
}

.medal-rays {
  inset: 2px;
  border-radius: 50%;
  opacity: 0.65;
  background: repeating-conic-gradient(from 0deg, transparent 0 12deg, var(--medal-light) 14deg 17deg, transparent 19deg 32deg);
  filter: blur(0.4px);
  animation: medal-spin 18s linear infinite;
}

.medal-aura {
  inset: 19px;
  border: 2px solid var(--medal-light);
  border-radius: 50%;
  opacity: 0.55;
  box-shadow: 0 0 16px var(--medal-main), 0 0 34px var(--medal-main), inset 0 0 18px var(--medal-main);
}

.medal-wing {
  top: 48px;
  width: 35px;
  height: 48px;
  border: 2px solid rgba(255, 255, 255, 0.7);
  background: linear-gradient(145deg, var(--medal-light), var(--medal-dark));
  clip-path: polygon(0 45%, 82% 0, 68% 35%, 100% 48%, 65% 57%, 75% 100%);
  opacity: 0.9;
}

.medal-wing-left {
  left: 5px;
  transform: rotate(-12deg);
}

.medal-wing-right {
  right: 5px;
  transform: scaleX(-1) rotate(-12deg);
}

.medal-core {
  inset: 26px;
  z-index: 2;
  border: 5px solid var(--medal-metal);
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 24%, rgba(255, 255, 255, 0.86), transparent 17%),
    linear-gradient(145deg, var(--medal-light), var(--medal-main) 48%, var(--medal-dark));
  box-shadow: 0 0 0 4px rgba(8, 25, 55, 0.82), 0 0 22px var(--medal-main), inset 0 -10px 16px rgba(0, 39, 58, 0.28);
}

.medal-frog {
  left: 50%;
  top: 54%;
  width: 52px;
  height: 47px;
  border: 3px solid #082f34;
  border-radius: 52% 52% 46% 46%;
  background: linear-gradient(145deg, #baff87, #39dc78 52%, #09935f);
  transform: translate(-50%, -50%);
  box-shadow: inset 0 4px 5px rgba(255, 255, 255, 0.44);
}

.medal-eye {
  top: -11px;
  width: 20px;
  height: 22px;
  border: 3px solid #082f34;
  border-radius: 50%;
  background: #efffdc;
}

.medal-eye-left {
  left: 6px;
}

.medal-eye-right {
  right: 6px;
}

.medal-eye i {
  position: absolute;
  top: 5px;
  left: 8px;
  width: 6px;
  height: 8px;
  border-radius: 50%;
  background: #062b32;
}

.medal-mouth {
  position: absolute;
  left: 50%;
  bottom: 8px;
  width: 22px;
  height: 9px;
  border-bottom: 3px solid #075044;
  border-radius: 50%;
  transform: translateX(-50%);
}

.medal-blush {
  position: absolute;
  bottom: 13px;
  width: 9px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 143, 159, 0.66);
}

.medal-blush-left {
  left: 5px;
}

.medal-blush-right {
  right: 5px;
}

.medal-crown {
  left: 50%;
  top: 12px;
  z-index: 4;
  width: 46px;
  height: 27px;
  border-bottom: 5px solid #7f5019;
  background: linear-gradient(#fff39d, #f5ad35);
  clip-path: polygon(0 24%, 24% 58%, 39% 0, 58% 58%, 80% 7%, 100% 68%, 94% 100%, 7% 100%);
  transform: translateX(-50%);
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.38));
}

.medal-crown i {
  position: absolute;
  top: 8px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #fffbd0;
  box-shadow: 0 0 6px #fffbd0;
}

.medal-crown i:nth-child(1) { left: 9px; }
.medal-crown i:nth-child(2) { left: 21px; top: 5px; }
.medal-crown i:nth-child(3) { right: 8px; }

.medal-gem {
  left: 50%;
  bottom: 12px;
  z-index: 4;
  width: 18px;
  height: 18px;
  border: 3px solid #fff2a0;
  background: radial-gradient(circle at 35% 30%, #fff, var(--medal-main) 42%, var(--medal-dark));
  transform: translateX(-50%) rotate(45deg);
  box-shadow: 0 0 13px var(--medal-light);
}

.medal-ribbon {
  bottom: 5px;
  z-index: 1;
  width: 22px;
  height: 37px;
  background: linear-gradient(var(--medal-main), var(--medal-dark));
  clip-path: polygon(0 0, 100% 0, 82% 100%, 50% 76%, 13% 100%);
}

.medal-ribbon-left {
  left: 39px;
  transform: rotate(10deg);
}

.medal-ribbon-right {
  right: 39px;
  transform: rotate(-10deg);
}

.frog-medal-compact {
  width: 76px;
  height: 76px;
  filter: drop-shadow(0 5px 6px rgba(0, 0, 0, 0.32));
}

.frog-medal-compact .medal-rays { inset: 0; }
.frog-medal-compact .medal-aura { inset: 10px; }
.frog-medal-compact .medal-core { inset: 14px; border-width: 3px; }
.frog-medal-compact .medal-wing { top: 26px; width: 22px; height: 31px; }
.frog-medal-compact .medal-wing-left { left: 1px; }
.frog-medal-compact .medal-wing-right { right: 1px; }
.frog-medal-compact .medal-frog { width: 31px; height: 29px; border-width: 2px; }
.frog-medal-compact .medal-eye { top: -7px; width: 12px; height: 13px; border-width: 2px; }
.frog-medal-compact .medal-eye-left { left: 3px; }
.frog-medal-compact .medal-eye-right { right: 3px; }
.frog-medal-compact .medal-eye i { top: 3px; left: 5px; width: 3px; height: 5px; }
.frog-medal-compact .medal-mouth { bottom: 4px; width: 13px; height: 5px; border-width: 2px; }
.frog-medal-compact .medal-blush { bottom: 8px; width: 5px; height: 3px; }
.frog-medal-compact .medal-crown { top: 5px; width: 28px; height: 19px; border-bottom-width: 3px; }
.frog-medal-compact .medal-crown i { display: none; }
.frog-medal-compact .medal-gem { bottom: 5px; width: 10px; height: 10px; border-width: 2px; }
.frog-medal-compact .medal-ribbon { bottom: 1px; width: 13px; height: 22px; }
.frog-medal-compact .medal-ribbon-left { left: 23px; }
.frog-medal-compact .medal-ribbon-right { right: 23px; }

@keyframes medal-spin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .medal-rays { animation: none; }
}

.guide-panel {
  width: min(980px, 94vw);
  min-height: min(68vh, 760px);
  padding: clamp(32px, 5vw, 64px);
  display: grid;
  align-content: center;
  gap: clamp(18px, 3vh, 32px);
}

.guide-panel p {
  margin: 0;
  color: #fffdf2;
  font-size: clamp(28px, 4.5vw, 58px);
  text-shadow: var(--outline);
}

.guide-note {
  text-align: center;
}

.settings-panel {
  width: min(820px, 94vw);
  padding: clamp(30px, 5vw, 60px);
  display: grid;
  gap: 24px;
}

.toggle-row {
  min-height: 78px;
  border: 0;
  background: transparent;
  color: #fffdf2;
  text-align: left;
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 900;
  text-shadow: var(--outline);
}

.toggle-row[aria-pressed="true"]::after {
  content: "  \25cf";
  color: #a9ff8f;
}

.volume-row {
  display: grid;
  gap: 12px;
  color: #fffdf2;
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 900;
  text-shadow: var(--outline);
}

.volume-row input {
  width: 100%;
  accent-color: #a7ffb4;
}

.game-hud {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
}

.game-hud > * {
  pointer-events: auto;
}

.level-toast {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 7;
  display: none;
  transform: translate(-50%, -50%) scale(0.94);
  color: #ff1717;
  font-size: clamp(72px, 13vw, 150px);
  font-weight: 900;
  line-height: 1;
  text-align: center;
  -webkit-text-stroke: clamp(2px, 0.45vw, 6px) #fff7e8;
  filter: drop-shadow(0 10px 0 rgba(88, 0, 0, 0.76)) drop-shadow(0 0 22px rgba(255, 34, 17, 0.9));
  pointer-events: none;
}

.level-toast.active {
  display: block;
  animation: level-pop 250ms ease-out both;
}

@keyframes level-pop {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.72);
  }

  35% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.08);
  }

  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1);
  }
}

.hint-text {
  position: absolute;
  left: 50%;
  bottom: clamp(150px, 18vh, 226px);
  transform: translateX(-50%);
  text-align: center;
}

.charge-wrap {
  position: absolute;
  left: max(6vw, env(safe-area-inset-left));
  bottom: max(34px, env(safe-area-inset-bottom));
  width: min(180px, 24vw);
  display: grid;
  gap: 8px;
}

.charge-wrap span {
  text-align: center;
}

.charge-track {
  position: relative;
  height: clamp(18px, 2.4vw, 26px);
  border: 3px solid rgba(230, 255, 249, 0.82);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), transparent 42%),
    rgba(3, 20, 30, 0.68);
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28), 0 0 22px rgba(80, 229, 255, 0.18);
}

.charge-track::before {
  content: "";
  position: absolute;
  inset: 8px 12px auto 12px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  z-index: 2;
}

.charge-fill {
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background:
    radial-gradient(circle at 14px 50%, rgba(255, 255, 255, 0.72) 0 13px, transparent 14px),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.18) 0 22px, transparent 22px 46px),
    linear-gradient(90deg, #19cff1, #8effff);
  box-shadow: 0 0 22px rgba(66, 236, 255, 0.9), inset 0 0 12px rgba(255, 255, 255, 0.55);
  transition: width 60ms linear;
}

.pause-button {
  position: absolute;
  right: max(5vw, env(safe-area-inset-right));
  bottom: max(34px, env(safe-area-inset-bottom));
  width: clamp(132px, 17vw, 190px);
  min-height: clamp(132px, 17vw, 190px);
  font-size: clamp(42px, 5.4vw, 64px);
  border-width: 6px;
  background:
    radial-gradient(circle at 34% 18%, rgba(255, 255, 255, 0.9) 0 11%, transparent 12%),
    radial-gradient(circle at 72% 80%, rgba(255, 255, 255, 0.28) 0 18%, transparent 19%),
    linear-gradient(145deg, rgba(205, 255, 173, 0.9), rgba(35, 181, 119, 0.92));
  box-shadow:
    0 16px 34px rgba(0, 0, 0, 0.34),
    inset 0 13px 26px rgba(255, 255, 255, 0.34),
    0 0 24px rgba(174, 255, 192, 0.26);
}

.pause-button span {
  font-size: clamp(24px, 3.2vw, 38px);
}

.result-screen {
  pointer-events: none;
}

.result-screen > * {
  pointer-events: auto;
}

.result-card {
  width: min(680px, 88vw);
  padding: clamp(18px, 3vw, 34px);
  text-align: center;
}

.result-score-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.result-score-row h2 {
  margin: 0;
  color: var(--cream);
  font-size: clamp(24px, 3.4vw, 42px);
  text-shadow: var(--outline);
}

.result-score-row strong {
  display: inline-block;
  color: var(--cream);
  font-size: clamp(28px, 4vw, 50px);
  line-height: 1;
  text-shadow: var(--outline);
}

.result-card p {
  margin: 4px 0 0;
  color: #fffdf2;
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 900;
  line-height: 1.05;
  text-shadow: var(--outline);
}

.result-nav {
  margin: 0;
  align-items: center;
}

.result-nav .bubble-button {
  min-height: clamp(54px, 7vw, 78px);
  padding: 0 18px;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

@media (max-width: 760px) {
  .screen {
    padding: max(14px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(14px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
  }

  .title-wrap {
    margin-top: 120px;
  }

  .title-wrap h1 {
    font-size: clamp(54px, 15vw, 88px);
  }

  .today-chip,
  .score-chip {
    width: 150px;
    padding: 12px 14px;
    border-radius: 24px;
  }

  .today-chip strong,
  .score-chip strong {
    font-size: 46px;
  }

  .function-menu-button {
    min-width: 78px;
    min-height: 46px;
    padding: 0 16px;
    font-size: 18px;
  }

  .function-menu-panel {
    top: max(78px, calc(env(safe-area-inset-top) + 64px));
    width: min(420px, calc(100% - 24px));
    padding: 14px;
    gap: 8px;
    border-radius: 14px;
  }

  .function-menu-panel h2 {
    margin-bottom: 10px;
    font-size: 20px;
  }

  .function-menu-item {
    min-height: 42px;
    padding: 0 8px;
    font-size: 17px;
  }

  .bubble-nav {
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
  }

  .bubble-button {
    min-height: 104px;
    font-size: 24px;
    border-width: 4px;
  }

  .small-nav {
    margin-bottom: 12px;
  }

  .pill-button,
  .back-button,
  .wide-button {
    min-height: 62px;
    padding: 0 28px;
    font-size: 28px;
  }

  .mode-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }

  .play-style-panel {
    width: min(520px, calc(100% - 20px));
    padding: 8px;
  }

  .play-style-switch.in-panel {
    gap: 8px;
  }

  .play-style-button {
    min-height: 46px;
    font-size: 18px;
  }

  .mode-card {
    min-height: 330px;
    padding: 22px 10px;
    border-radius: 28px;
  }

  .mode-card span,
  .mode-card strong {
    font-size: clamp(24px, 6vw, 36px);
  }

  .leaderboard-screen {
    gap: 10px;
    padding-top: 12px;
  }

  .leaderboard-header {
    width: 100%;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 9px;
    padding-left: 90px;
  }

  .leaderboard-heading {
    gap: 8px;
  }

  .leaderboard-eyebrow {
    display: none;
  }

  .leaderboard-heading .gold-title {
    width: fit-content;
    padding: 8px 18px;
    font-size: 24px;
  }

  .leaderboard-back {
    min-height: 42px;
    padding: 0 14px;
    font-size: 15px;
  }

  .rank-summary {
    grid-column: 1 / -1;
    grid-row: 2;
    gap: 7px;
  }

  .rank-summary div {
    min-width: 0;
    padding: 6px 10px;
  }

  .rank-summary strong {
    font-size: 21px;
  }

  .current-player-honor {
    width: 100%;
    min-height: 154px;
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 10px;
    padding: 10px 14px 10px 8px;
    border-radius: 22px;
  }

  .current-player-medal {
    min-height: 104px;
  }

  .current-player-medal .frog-medal {
    transform: scale(0.78);
  }

  .profile-name-row {
    gap: 7px;
  }

  .profile-name-row > strong {
    font-size: 23px;
  }

  .honor-title {
    min-height: 24px;
    padding: 0 9px;
    font-size: 12px;
  }

  .current-player-record {
    grid-column: 1 / -1;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 4px 0;
    border-top: 1px solid rgba(199, 226, 255, 0.18);
    border-left: 0;
    text-align: left;
  }

  .current-player-record strong {
    margin: 0;
    font-size: 26px;
  }

  .leaderboard-columns {
    display: none;
  }

  .leaderboard {
    width: 100%;
    gap: 8px;
  }

  .leaderboard li {
    grid-template-columns: 38px 62px minmax(0, 1fr) auto;
    gap: 7px;
    min-height: 100px;
    padding: 7px 10px;
  }

  .rank-badge {
    width: 34px;
    height: 34px;
    font-size: 15px;
  }

  .rank-medal {
    min-height: 62px;
  }

  .frog-medal-compact {
    transform: scale(0.78);
  }

  .rank-player {
    grid-column: 3;
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .rank-player-name {
    font-size: 16px;
  }

  .rank-player-id {
    grid-row: 2;
    text-align: left;
    font-size: 10px;
  }

  .rank-honor-title {
    grid-row: 3;
    font-size: 11px;
  }

  .rank-mode {
    grid-column: 4;
    grid-row: 1;
    min-width: 78px;
    min-height: 24px;
    padding: 0 7px;
    font-size: 11px;
  }

  .rank-level {
    grid-column: 4;
    grid-row: 2;
  }

  .rank-level strong {
    font-size: 17px;
  }

  .rank-score {
    grid-column: 4;
    grid-row: 3;
  }

  .rank-score strong {
    display: inline;
    margin-right: 4px;
    font-size: 16px;
  }

  .rank-score small,
  .rank-level small {
    display: none;
  }

  .charge-wrap {
    width: min(150px, 24vw);
  }
}

@media (max-height: 620px) and (orientation: landscape) {
  .leaderboard-screen {
    gap: 8px;
    padding: 8px 14px 24px;
  }

  .leaderboard-header,
  .current-player-honor,
  .leaderboard-columns,
  .leaderboard {
    width: min(1120px, calc(100vw - 28px));
  }

  .leaderboard-header {
    padding-left: 112px;
  }

  .leaderboard-heading .gold-title {
    padding: 6px 22px;
    font-size: 24px;
  }

  .leaderboard-eyebrow {
    display: none;
  }

  .leaderboard-back {
    min-height: 40px;
    font-size: 15px;
  }

  .rank-summary div {
    padding: 5px 10px;
  }

  .rank-summary strong {
    font-size: 20px;
  }

  .current-player-honor {
    min-height: 112px;
    grid-template-columns: 112px minmax(0, 1fr) auto;
    gap: 16px;
    padding: 6px 22px 6px 8px;
    border-radius: 20px;
  }

  .current-player-medal {
    min-height: 98px;
  }

  .current-player-medal .frog-medal {
    transform: scale(0.72);
  }

  .current-player-profile {
    gap: 3px;
  }

  .profile-kicker {
    font-size: 10px;
  }

  .profile-name-row > strong {
    font-size: 22px;
  }

  .honor-title {
    min-height: 22px;
    font-size: 11px;
  }

  .mode-tag,
  .profile-tag {
    min-height: 22px;
    font-size: 11px;
  }

  .current-player-record strong {
    font-size: 29px;
  }

  .leaderboard-columns {
    grid-template-columns: 45px 70px minmax(210px, 1fr) 120px 116px 88px;
    padding: 0 18px;
  }

  .leaderboard li {
    grid-template-columns: 45px 70px minmax(210px, 1fr) 120px 116px 88px;
    min-height: 74px;
    padding: 4px 18px;
  }

  .frog-medal-compact {
    transform: scale(0.82);
  }

  .rank-player-name {
    font-size: 16px;
  }

  .rank-level strong,
  .rank-score strong {
    font-size: 18px;
  }
}

@media (max-width: 760px) and (orientation: landscape) {
  .title-wrap {
    width: min(340px, calc(100% - 220px));
    margin-top: 24px;
    padding: 8px 16px;
    border: 1px solid rgba(255, 248, 214, 0.18);
    border-radius: 18px;
    background: rgba(4, 18, 44, 0.2);
  }

  .title-wrap h1 {
    font-size: 34px;
  }

  .title-wrap p {
    margin: 5px 0 0;
    font-size: 16px;
  }

  .today-chip,
  .score-chip {
    width: 118px;
    padding: 8px 10px;
    border-width: 3px;
    border-radius: 18px;
  }

  .today-chip span,
  .score-chip span {
    font-size: 12px;
  }

  .today-chip strong,
  .score-chip strong {
    font-size: 28px;
  }

  .bubble-nav {
    position: absolute;
    left: 42px;
    right: 42px;
    bottom: 20px;
    width: auto;
    gap: 10px;
  }

  .bubble-button {
    min-height: 48px;
    font-size: 18px;
  }

  .small-nav {
    display: none;
  }

  .modes-screen {
    display: block !important;
    padding: 10px;
  }

  .modes-screen .gold-title {
    position: absolute;
    top: 10px;
    left: 132px;
    right: 132px;
    padding: 7px 16px;
    font-size: 18px;
    text-align: center;
  }

  .modes-screen .play-style-panel {
    position: absolute;
    top: 50px;
    left: 12px;
    right: 12px;
    width: auto;
    padding: 7px;
    border-radius: 14px;
  }

  .modes-screen .play-style-title {
    display: none;
  }

  .modes-screen .play-style-button {
    min-height: 32px;
    font-size: 15px;
  }

  .modes-screen .mode-grid {
    position: absolute;
    top: 98px;
    left: 12px;
    right: 12px;
    width: auto;
    grid-template-columns: repeat(3, 1fr);
    gap: 9px;
  }

  .modes-screen .mode-card {
    min-height: 84px;
    padding: 8px 6px;
    border-width: 3px;
    border-radius: 16px;
  }

  .modes-screen .mode-card span,
  .modes-screen .mode-card strong {
    font-size: 14px;
    line-height: 1.15;
  }

  .modes-screen .mode-card strong {
    margin-top: 4px;
  }

  .modes-screen .mode-card em {
    display: none;
  }

  .modes-screen .wide-button {
    position: absolute;
    right: 18px;
    bottom: 10px;
    width: 180px;
    min-height: 36px;
    font-size: 16px;
  }

  .modes-screen .back-button {
    position: absolute;
    left: 18px;
    bottom: 10px;
    width: 132px;
    min-height: 36px;
    font-size: 15px;
  }
}

body.force-landscape .title-wrap,
body.force-landscape .bubble-nav,
body.force-landscape .mode-grid,
body.force-landscape .rank-summary,
body.force-landscape .leaderboard,
body.force-landscape .leaderboard-header,
body.force-landscape .leaderboard-columns,
body.force-landscape .current-player-honor,
body.force-landscape .guide-panel,
body.force-landscape .settings-panel {
  width: min(980px, calc(100% - 28px));
}

body.force-landscape .title-wrap {
  margin-top: clamp(34px, 8%, 72px);
}

body.force-landscape .charge-wrap {
  width: min(160px, 24%);
}

body.force-landscape .modal-screen,
body.force-landscape .result-screen {
  gap: clamp(14px, 3%, 28px);
}

.app-shell,
.app-shell * {
  text-shadow: none !important;
}

.title-wrap h1 {
  filter: drop-shadow(0 0 10px rgba(255, 246, 183, 0.95)) drop-shadow(0 0 28px rgba(255, 196, 91, 0.88));
}
