@font-face {
  font-family: 'NexonMaplestory';
  src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_20-04@2.1/MaplestoryOTFLight.woff') format('woff');
  font-weight: 300;
  font-display: swap;
}
@font-face {
  font-family: 'NexonMaplestory';
  src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_20-04@2.1/MaplestoryOTFBold.woff') format('woff');
  font-weight: 700;
  font-display: swap;
}

:root {
  --screen-w: 430px;
  --bg: #111426;
  --panel: #fff9ec;
  --ink: #273454;
  --muted: #6b7190;
  --line: rgba(39, 52, 84, .16);
  --rose: #ff6f9d;
  --gold: #ffd25f;
  --teal: #53d7c2;
  --shadow: 0 22px 58px rgba(13, 18, 38, .34);
  --bgm-player-h: 48px;
}

* { box-sizing: border-box; }
html, body { margin: 0; width: 100%; height: 100%; overflow: hidden; }
html { background: #070812; }
body {
  min-height: 100vh;
  min-height: 100svh;
  color: var(--ink);
  background: #070812;
  font-family: 'NexonMaplestory', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior: none;
}
button, a, input, textarea, select { font-family: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }

/* 덕덕 시그니처 로딩 */
.signature-loading {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  padding: 22px;
  color: #fff8dc;
  text-align: center;
  background: radial-gradient(circle at 50% 12%, #343451 0, #111321 48%, #070812 100%);
  opacity: 0;
  visibility: hidden;
  transition: opacity .34s ease, visibility .34s step-end;
}
.signature-loading.is-active { opacity: 1; visibility: visible; transition: opacity .34s ease; }
.signature-loading.is-leaving { opacity: 0; pointer-events: none; }
.signature-card {
  width: min(92vw, 520px);
  padding: 28px 22px;
  border: 3px solid #ffd744;
  border-radius: 28px;
  background: rgba(5, 6, 16, .78);
  box-shadow: 0 0 0 4px #000, 0 0 34px rgba(255, 215, 68, .25);
  text-shadow: 2px 2px #000;
}
.signature-title {
  margin: 4px 0 6px;
  color: #ffd744;
  font-size: clamp(44px, 12vw, 70px);
  font-weight: 700;
  letter-spacing: -.08em;
}
.signature-dance {
  height: 98px;
  margin: 14px 0 12px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: clamp(5px, 2vw, 14px);
}
.signature-dancer {
  position: relative;
  width: 68px;
  height: 72px;
  display: grid;
  place-items: center;
  animation: signatureDance 1s ease-in-out infinite;
}
.signature-dancer:nth-child(2) { animation-delay: .15s; }
.signature-dancer:nth-child(3) { animation-delay: .30s; }
.signature-dancer:nth-child(4) { animation-delay: .45s; }
.signature-dancer i {
  position: absolute;
  right: 0;
  top: -8px;
  color: #fff4a8;
  font-size: 22px;
  font-style: normal;
  font-weight: 700;
  animation: musicFloat 1.1s ease-in-out infinite;
}
.signature-duck {
  width: 78px;
  height: 78px;
  display: block;
  image-rendering: pixelated;
  filter: drop-shadow(0 4px 0 rgba(0, 0, 0, .25));
}
.signature-duck.is-baby { width: 62px; height: 62px; }
.signature-status { margin: 0; color: #d8dbee; font-size: 14px; font-weight: 700; }
.signature-progress {
  width: min(320px, 72vw);
  height: 13px;
  margin: 16px auto 6px;
  overflow: hidden;
  border: 2px solid rgba(255, 215, 68, .82);
  border-radius: 999px;
  background: rgba(0, 0, 0, .35);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .05);
}
.signature-progress span {
  display: block;
  width: 36%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #fff4a8, #ffd744, #ff9c2a);
  animation: loadingFlow 1.15s ease-in-out infinite;
}
.signature-ready {
  margin: 14px auto 0;
  display: inline-block;
  padding: 8px 16px;
  border: 2px solid rgba(255, 215, 68, .44);
  border-radius: 999px;
  color: #fff8dc;
  background: rgba(5, 6, 16, .56);
  font-size: 14px;
  font-weight: 900;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
}
.signature-loading.is-ready .signature-ready {
  opacity: 1;
  transform: translateY(0);
  animation: readyBlink 1.1s ease-in-out infinite;
}
.signature-loading.is-ready .signature-progress span { width: 100%; animation: none; }

/* DUCKDUCK LAB 로고 컷 */
.brand-intro {
  position: fixed;
  inset: 0;
  z-index: 250;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #fff;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.brand-intro.is-active { opacity: 1; visibility: visible; }
.brand-intro.is-leaving { animation: brandFadeOut .48s ease forwards; }
.brand-intro__stage {
  position: relative;
  width: min(88vw, 680px);
  height: min(42vw, 250px);
  min-height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(15px, 4vw, 34px);
  transform: translateX(-18px);
}
.brand-intro__duck {
  position: relative;
  z-index: 2;
  width: clamp(104px, 26vw, 178px);
  height: auto;
  opacity: 0;
  transform: translate3d(-150px, 16px, 0) scale(.86);
  transform-origin: 50% 90%;
}
.brand-intro__wordmark {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: row;
  align-items: baseline;
  gap: .22em;
  color: #161616;
  font-weight: 700;
  line-height: .92;
  letter-spacing: -.065em;
  opacity: 0;
  transform: translateX(24px);
}
.brand-intro__wordmark span,
.brand-intro__wordmark strong { font-size: clamp(26px, 6.6vw, 54px); }
.brand-intro__wordmark strong { color: #f6bd00; }
.brand-intro__spark {
  position: absolute;
  z-index: 3;
  color: #ffc400;
  font-size: clamp(20px, 4vw, 34px);
  opacity: 0;
}
.brand-intro__spark--one { left: 46%; top: 18%; }
.brand-intro__spark--two { right: 10%; bottom: 12%; font-size: clamp(14px, 3vw, 25px); }
.brand-intro.is-playing .brand-intro__duck { animation: mascotThreeHops 1.45s cubic-bezier(.2, .78, .22, 1) forwards; }
.brand-intro.is-playing .brand-intro__wordmark { animation: wordmarkReveal .42s ease 1.2s forwards; }
.brand-intro.is-playing .brand-intro__spark--one { animation: sparklePop .5s ease 1.38s forwards; }
.brand-intro.is-playing .brand-intro__spark--two { animation: sparklePop .5s ease 1.52s forwards; }

/* 전체 화면 전환 */
.app-shell {
  position: relative;
  width: min(100vw, 540px);
  height: 100vh;
  height: 100svh;
  margin: 0 auto;
  overflow: hidden;
  background: #0b1020;
  box-shadow: 0 0 54px rgba(0, 0, 0, .48);
  opacity: 0;
  visibility: hidden;
  transition: opacity .38s ease;
}
.app-shell.is-ready { opacity: 1; visibility: visible; }
.app-screen {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateX(18px);
  pointer-events: none;
  transition: opacity .26s ease, transform .26s ease, visibility .26s step-end;
}
.app-screen.is-active {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
  pointer-events: auto;
  transition: opacity .26s ease, transform .26s ease;
}

/* 메인 화면 */
.home-screen { background: #0877db; }
.home-art { width: 100%; height: 100%; display: block; object-fit: cover; object-position: center center; }
.home-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, transparent 0 68%, rgba(5, 19, 30, .08) 73%, rgba(3, 13, 24, .72) 100%),
    linear-gradient(90deg, rgba(0, 0, 0, .06), transparent 14%, transparent 86%, rgba(0, 0, 0, .06));
}
.home-menu {
  position: absolute;
  left: max(18px, env(safe-area-inset-left));
  right: max(18px, env(safe-area-inset-right));
  bottom: calc(var(--bgm-player-h) + max(30px, calc(env(safe-area-inset-bottom) + 20px)));
  z-index: 3;
  display: grid;
  gap: 11px;
}
.home-menu__button {
  min-height: 58px;
  border: 3px solid rgba(255, 255, 255, .94);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  color: #fff;
  font-size: clamp(20px, 5.4vw, 27px);
  font-weight: 700;
  letter-spacing: -.035em;
  text-shadow: 0 2px 0 rgba(0, 0, 0, .35);
  box-shadow: 0 7px 0 rgba(34, 26, 20, .48), 0 12px 22px rgba(0, 0, 0, .26), inset 0 1px 0 rgba(255, 255, 255, .32);
  transition: transform .08s ease, box-shadow .08s ease, filter .12s ease;
}
.home-menu__button--start { background: linear-gradient(180deg, #ffdd3d 0%, #f4a800 100%); color: #392309; }
.home-menu__button--score { background: linear-gradient(180deg, #62c6ff 0%, #2075dc 100%); }
.home-menu__button:active {
  transform: translateY(5px);
  box-shadow: 0 2px 0 rgba(34, 26, 20, .48), 0 7px 14px rgba(0, 0, 0, .22), inset 0 1px 0 rgba(255, 255, 255, .32);
  filter: brightness(1.04);
}
.home-menu__icon { width: 28px; text-align: center; font-size: .85em; }

/* 미니즈 공통 BGM 플레이어 */
.minis-bgm-player {
  position: absolute;
  left: 9px;
  right: 9px;
  bottom: max(7px, env(safe-area-inset-bottom));
  z-index: 120;
  min-height: var(--bgm-player-h);
  padding: 6px 9px;
  border: 1px solid rgba(255, 255, 255, .34);
  border-radius: 17px;
  display: grid;
  grid-template-columns: 34px 34px 34px minmax(0, 1fr) minmax(54px, 72px);
  align-items: center;
  gap: 6px;
  color: #fff;
  background: rgba(18, 27, 49, .91);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .32), inset 0 1px 0 rgba(255, 255, 255, .12);
  backdrop-filter: blur(13px);
  -webkit-backdrop-filter: blur(13px);
}
.minis-bgm-button {
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 11px;
  display: grid;
  place-items: center;
  color: #25324a;
  background: rgba(255, 255, 255, .96);
  font-size: 15px;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 3px 0 rgba(0, 0, 0, .18);
}
.minis-bgm-button:active { transform: translateY(2px); box-shadow: 0 1px 0 rgba(0, 0, 0, .18); }
.minis-bgm-button.is-active { color: #4c2f00; background: #ffcf3d; }
.minis-bgm-button--shuffle svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.35;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}
.minis-bgm-button--next { display: flex; align-items: center; justify-content: center; gap: 0; font-size: 12px; }
.minis-bgm-button--next span { margin-left: -2px; font-size: 10px; }
.minis-bgm-meta { min-width: 0; display: grid; gap: 1px; }
.minis-bgm-meta span { color: #ffd744; font-size: 9px; font-weight: 900; letter-spacing: .08em; }
.minis-bgm-meta strong { overflow: hidden; color: #fff; font-size: 11px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.minis-bgm-volume { width: 100%; min-width: 0; accent-color: #ffd744; }

/* 서브 화면 공통 */
.launcher-screen,
.highscore-screen {
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(255, 128, 164, .30), transparent 34%),
    linear-gradient(315deg, rgba(83, 215, 194, .28), transparent 38%),
    var(--bg);
}
.screen-toolbar {
  position: relative;
  z-index: 20;
  height: calc(58px + env(safe-area-inset-top));
  padding: env(safe-area-inset-top) 12px 0;
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  color: #fff;
  background: rgba(7, 9, 24, .72);
  border-bottom: 1px solid rgba(255, 255, 255, .12);
  backdrop-filter: blur(10px);
}
.screen-toolbar h1 { margin: 0; text-align: center; font-size: 22px; letter-spacing: -.04em; }
.screen-back,
.score-refresh {
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(255, 255, 255, .14);
  font-size: 32px;
  font-weight: 700;
  line-height: 1;
}
.score-refresh { font-size: 23px; }
.screen-back:active,
.score-refresh:active { transform: translateY(2px); background: rgba(255, 255, 255, .22); }
.screen-toolbar__spacer { width: 40px; }

/* 게임 선택 */
.launcher {
  width: 100%;
  height: 100%;
  padding: calc(env(safe-area-inset-top) + 6px) 12px calc(var(--bgm-player-h) + max(18px, env(safe-area-inset-bottom)));
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: hidden;
}
.launcher-header {
  min-height: 48px;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  align-items: center;
  gap: 6px;
  color: #fff;
}
.launcher-logo-back {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .16);
  backdrop-filter: blur(8px);
}
.launcher-header__spacer { width: 40px; height: 40px; }
.brand-logo {
  margin: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  max-width: 100%;
  font-size: clamp(27px, 7vw, 42px);
  line-height: 1;
  white-space: nowrap;
  text-shadow: 0 3px 0 rgba(0, 0, 0, .38), 0 0 18px rgba(255, 217, 37, .30);
}
.brand-duck {
  width: clamp(44px, 11vw, 65px);
  height: clamp(44px, 11vw, 65px);
  flex: 0 0 auto;
  background: url('../image/logo_duckduck_mark.png') center/contain no-repeat;
}
.brand-text { display: inline-flex; align-items: baseline; gap: .24em; }
.brand-main { color: #ffd925; }
.brand-sub { color: #fff; }
.recent-game {
  flex: 0 0 152px;
  min-height: 152px;
  border: 2px solid rgba(255, 255, 255, .76);
  border-radius: 19px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 7px;
  padding: 10px;
  background: rgba(255, 249, 236, .96);
  box-shadow: 0 13px 28px rgba(0, 0, 0, .22);
}
.feature-banner__nav {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
}
.feature-banner__nav button {
  min-width: 0;
  height: 28px;
  padding: 0 4px;
  border: 0;
  border-radius: 10px;
  color: #4f6076;
  background: rgba(39, 52, 84, .08);
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}
.feature-banner__tab--recent { color: #287bd2; background: rgba(70, 151, 245, .14); }
.feature-banner__tab--new { color: #e44969; background: rgba(244, 77, 113, .14); }
.feature-banner__tab--best { color: #1d9d66; background: rgba(44, 177, 112, .14); }
.feature-banner__nav button.is-active {
  color: #fff;
}
.feature-banner__tab--recent.is-active {
  background: linear-gradient(180deg, #64b7ff, #287bd2);
  box-shadow: 0 3px 0 rgba(27, 93, 166, .48);
}
.feature-banner__tab--new.is-active {
  background: linear-gradient(180deg, #ff7b99, #e44969);
  box-shadow: 0 3px 0 rgba(174, 44, 70, .48);
}
.feature-banner__tab--best.is-active {
  background: linear-gradient(180deg, #54d68f, #1d9d66);
  box-shadow: 0 3px 0 rgba(24, 121, 76, .48);
}
.feature-banner__viewport {
  min-height: 0;
  overflow: hidden;
  border-radius: 14px;
}
.feature-banner__track {
  height: 100%;
  display: flex;
  transition: transform .32s ease;
}
.feature-banner__slide {
  flex: 0 0 100%;
  min-width: 100%;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 9px;
  align-items: stretch;
}
.recent-game__open {
  min-width: 0;
  padding: 0;
  border: 0;
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  color: var(--ink);
  background: transparent;
  text-align: left;
}
.recent-game__art,
.game-icon,
.game-modal__media {
  overflow: hidden;
  background: linear-gradient(135deg, rgba(255, 210, 95, .92), rgba(255, 111, 157, .72) 46%, rgba(83, 215, 194, .72));
}
.recent-game__art {
  position: relative;
  width: 92px;
  height: 92px;
  overflow: visible;
  border: 3px solid #fff;
  border-radius: 20px;
  box-shadow: 0 8px 16px rgba(39, 52, 84, .20);
}
.recent-game__art img,
.game-icon img,
.game-modal__media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.recent-game__art img,
.game-icon img { border-radius: inherit; }
.recent-game__copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}
.recent-game__label {
  color: #f0527e;
  font-size: 12px;
  font-weight: 900;
}
.feature-banner__slide--recent .recent-game__label { color: #287bd2; }
.feature-banner__slide--new .recent-game__label { color: #e44969; }
.feature-banner__slide--best .recent-game__label { color: #1d9d66; }
.recent-game__copy strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 27px;
  font-weight: 900;
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.recent-game__copy small {
  display: -webkit-box;
  overflow: hidden;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.recent-game__start {
  width: 92px;
  min-height: 100%;
  border: 2px solid rgba(255, 255, 255, .82);
  border-radius: 15px;
  display: grid;
  place-items: center;
  color: #5d3200;
  background: linear-gradient(180deg, #fff07a, #ffc540 55%, #ff9d2e);
  box-shadow: 0 5px 0 #c17114, 0 9px 16px rgba(0, 0, 0, .18);
  font-size: 17px;
  font-weight: 900;
  line-height: 1.15;
  text-align: center;
  text-decoration: none;
}
.recent-game__start:active { transform: translateY(3px); box-shadow: 0 2px 0 #c17114, 0 6px 12px rgba(0, 0, 0, .16); }
.overall-ranking-strip {
  flex: 0 0 auto;
  padding: 9px 10px 10px;
  border: 2px solid rgba(255, 255, 255, .55);
  border-radius: 16px;
  background: rgba(8, 12, 31, .58);
  box-shadow: 0 9px 18px rgba(0, 0, 0, .16);
  backdrop-filter: blur(8px);
}
.overall-ranking-strip--launcher {
  margin-top: -1px;
}
.overall-ranking-strip--global {
  margin-bottom: 10px;
}
.overall-ranking-strip__head {
  margin-bottom: 7px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
.overall-ranking-strip__head strong {
  color: #ffd744;
  font-size: 14px;
  font-weight: 900;
}
.overall-ranking-strip__head span {
  overflow: hidden;
  color: #d6dcec;
  font-size: 10px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.overall-ranking-strip__list {
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
  list-style: none;
}
.overall-ranking-strip__list li {
  min-width: 0;
  min-height: 74px;
  padding: 6px 5px;
  border: 1px solid rgba(255, 255, 255, .58);
  border-radius: 12px;
  display: grid;
  grid-template-rows: 34px auto auto;
  place-items: center;
  gap: 1px;
  color: #293550;
  background: rgba(255, 249, 236, .95);
  text-align: center;
  box-shadow: inset 0 -3px 0 rgba(121, 85, 28, .08);
}
.overall-ranking-strip__list li.is-mine {
  border-color: #35d7ff;
  box-shadow: 0 0 0 2px rgba(53, 215, 255, .30), inset 0 -3px 0 rgba(121, 85, 28, .08);
}
.overall-ranking-strip__list li.is-empty { opacity: .55; filter: saturate(.55); }
.overall-ranking-strip__medal {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
}
.overall-ranking-strip__medal img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .18));
}
.overall-ranking-strip__list strong {
  max-width: 100%;
  overflow: hidden;
  font-size: 10px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.overall-ranking-strip__list em {
  color: #e94e73;
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}
.overall-ranking-strip__loading {
  padding: 16px 8px;
  color: #d6dcec;
  font-size: 11px;
  font-weight: 800;
  text-align: center;
}
.game-grid {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 6px 4px 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 128px;
  align-content: start;
  gap: 13px 10px;
}
.game-tile {
  min-width: 0;
  min-height: 0;
  padding: 3px 2px 0;
  border: 0;
  border-radius: 0;
  display: grid;
  grid-template-rows: auto auto;
  align-content: start;
  justify-items: center;
  gap: 7px;
  color: #fff;
  background: transparent;
  text-align: center;
}
.game-tile:active .game-icon { transform: translateY(2px) scale(.97); }
.game-tile.is-coming-soon { opacity: .72; }
.game-icon {
  position: relative;
  aspect-ratio: 1;
  width: min(100%, 96px);
  max-height: 100%;
  overflow: visible;
  border: 2px solid rgba(255, 255, 255, .86);
  border-radius: 21px;
  box-shadow: 0 7px 14px rgba(0, 0, 0, .20);
  transition: transform .08s ease;
}
.game-badge {
  position: absolute;
  right: -5px;
  top: -6px;
  z-index: 2;
  width: 23px;
  height: 23px;
  border: 2px solid #fff;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(180deg, #ff5f7f, #e71349);
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 3px 0 rgba(126, 13, 43, .52), 0 6px 12px rgba(0, 0, 0, .22);
  pointer-events: none;
}
.game-badge--label {
  top: auto;
  right: -9px;
  bottom: -8px;
  width: auto;
  min-width: 46px;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: linear-gradient(180deg, #24c19a, #128a70);
  font-size: 11px;
  box-shadow: 0 3px 0 rgba(11, 83, 68, .58), 0 6px 12px rgba(0, 0, 0, .2);
}
.recent-game__art .game-badge {
  right: -7px;
  top: -7px;
  width: 27px;
  height: 27px;
  font-size: 14px;
}
.recent-game__art .game-badge--label {
  top: auto;
  right: -12px;
  bottom: -9px;
  width: auto;
  min-width: 54px;
  height: 24px;
  font-size: 12px;
}
.game-tile strong {
  width: 100%;
  min-height: 34px;
  display: grid;
  place-items: start center;
  color: #fff;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.15;
  text-shadow: 0 2px 0 rgba(0, 0, 0, .35);
  word-break: keep-all;
}
.game-modal {
  position: absolute;
  inset: 0;
  z-index: 180;
  display: grid;
  place-items: center;
  padding: calc(env(safe-area-inset-top) + 18px) 14px calc(var(--bgm-player-h) + max(20px, env(safe-area-inset-bottom)));
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease;
}
.game-modal[hidden] { display: none; }
.game-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}
.game-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 7, 18, .72);
  backdrop-filter: blur(7px);
}
.game-modal__panel {
  position: relative;
  width: min(100%, 500px);
  max-height: 100%;
  overflow-y: auto;
  padding: 14px;
  border: 2px solid rgba(255, 255, 255, .82);
  border-radius: 22px;
  display: grid;
  grid-template-columns: minmax(128px, .9fr) minmax(0, 1.1fr);
  gap: 13px;
  color: var(--ink);
  background: var(--panel);
  box-shadow: var(--shadow);
  transform: translateY(10px) scale(.98);
  transition: transform .18s ease;
}
.game-modal.is-open .game-modal__panel { transform: translateY(0) scale(1); }
.game-modal__close {
  position: absolute;
  right: 8px;
  top: 8px;
  z-index: 2;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 12px;
  color: #fff;
  background: rgba(10, 14, 32, .62);
  font-size: 26px;
  font-weight: 900;
  line-height: 1;
}
.game-modal__media {
  align-self: stretch;
  min-height: 210px;
  border: 3px solid #fff;
  border-radius: 18px;
  box-shadow: 0 12px 22px rgba(39, 52, 84, .20);
}
.game-modal__copy {
  min-width: 0;
  display: grid;
  align-content: center;
  gap: 9px;
}
.game-modal__eyebrow {
  color: #f0527e;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .06em;
}
.game-modal__copy h2 {
  margin: 0;
  color: var(--ink);
  font-size: 28px;
  font-weight: 900;
  line-height: 1.05;
}
.game-modal__desc,
.game-modal__how {
  margin: 0;
  line-height: 1.45;
  word-break: keep-all;
}
.game-modal__desc {
  color: var(--ink);
  font-size: 15px;
  font-weight: 900;
}
.game-modal__how {
  padding-top: 9px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}
.game-modal__actions {
  margin-top: 4px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.game-modal__button {
  min-height: 43px;
  border: 2px solid rgba(255, 255, 255, .76);
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 900;
  text-align: center;
  text-decoration: none;
}
.game-modal__button--ghost {
  color: #4d5874;
  background: #fff;
  box-shadow: inset 0 -3px 0 rgba(39, 52, 84, .10);
}
.game-modal__button--start {
  color: #fff;
  background: linear-gradient(180deg, #ff86aa, #f25283);
  box-shadow: 0 5px 0 #b8325b;
}
.game-modal__button--start[aria-disabled="true"] {
  color: #697084;
  background: #dde1ea;
  box-shadow: inset 0 -3px 0 rgba(39, 52, 84, .10);
  pointer-events: none;
}
.launcher-bottom-actions {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: calc(var(--bgm-player-h) + max(8px, env(safe-area-inset-bottom)) - 50px);
  z-index: 118;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}
.launcher-scroll-hint {
  min-width: 0;
  display: grid;
  place-items: center;
  color: rgba(255, 250, 214, .98);
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
  text-align: center;
  text-shadow: 0 3px 9px rgba(0, 0, 0, .82), 0 0 18px rgba(255, 232, 120, .52);
  pointer-events: none;
  transition: opacity .18s ease, visibility .18s step-end;
}
.launcher-scroll-hint.is-hidden {
  opacity: 0;
  visibility: hidden;
}
.launcher-scroll-hint span {
  position: relative;
  padding: 10px 22px;
  border: 2px solid rgba(255, 255, 255, .30);
  border-radius: 999px;
  background: rgba(9, 13, 34, .68);
  box-shadow: 0 8px 22px rgba(0, 0, 0, .34), inset 0 0 0 1px rgba(255, 232, 120, .16);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: scrollHintGlow 1.8s ease-in-out infinite;
}
.launcher-scroll-hint span::before,
.launcher-scroll-hint span::after {
  content: '✦';
  position: absolute;
  top: 50%;
  color: rgba(255, 239, 142, .98);
  font-size: 14px;
  line-height: 1;
  transform: translateY(-50%) scale(.8);
  animation: scrollHintSparkle 1.8s ease-in-out infinite;
}
.launcher-scroll-hint span::before { left: 6px; animation-delay: -.35s; }
.launcher-scroll-hint span::after { right: 6px; animation-delay: .18s; }
.launcher-score-shortcut {
  width: 116px;
  min-height: 43px;
  padding: 0 12px;
  border: 2px solid rgba(255, 255, 255, .84);
  border-radius: 999px;
  color: #423004;
  background: linear-gradient(180deg, #fff07b, #ffc629);
  box-shadow: 0 5px 0 rgba(167, 111, 0, .72), 0 8px 20px rgba(0, 0, 0, .28);
  font-size: 15px;
  font-weight: 900;
  line-height: 1;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .50);
  pointer-events: auto;
}
.launcher-score-shortcut:active {
  transform: translateY(3px);
  box-shadow: 0 2px 0 rgba(167, 111, 0, .72), 0 5px 14px rgba(0, 0, 0, .24);
}

/* 하이스코어 */
.highscore-screen { overflow: hidden; }
.score-tabs {
  position: relative;
  z-index: 18;
  height: 54px;
  padding: 8px 14px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  background: rgba(7, 9, 24, .82);
  border-bottom: 1px solid rgba(255, 255, 255, .12);
  backdrop-filter: blur(10px);
}
.score-tab {
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 13px;
  color: #d9def0;
  background: rgba(255, 255, 255, .08);
  font-size: 15px;
  font-weight: 900;
  transition: transform .08s ease, background .15s ease, color .15s ease;
}
.score-tab.is-active {
  color: #2b2440;
  background: linear-gradient(180deg, #fff1a8, #ffd744);
  border-color: rgba(255, 255, 255, .75);
  box-shadow: inset 0 -3px 0 rgba(173, 116, 0, .20), 0 4px 10px rgba(0, 0, 0, .18);
}
.score-tab:active { transform: translateY(2px); }
.highscore-panel {
  height: calc(100% - 112px - env(safe-area-inset-top));
  padding: 14px 14px calc(var(--bgm-player-h) + max(22px, env(safe-area-inset-bottom)));
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
.score-pane { display: none; }
.score-pane.is-active { display: block; }
.highscore-heading {
  margin-bottom: 12px;
  padding: 15px 17px;
  border: 2px solid rgba(255, 255, 255, .62);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: #fff;
  background: rgba(9, 13, 34, .58);
  box-shadow: 0 12px 24px rgba(0, 0, 0, .18);
  backdrop-filter: blur(8px);
}
.highscore-heading strong { color: #ffd744; font-size: 23px; }
.highscore-heading span { color: #d8dbee; font-size: 13px; line-height: 1.45; }

/* 개인 스코어 */
.personal-score-list { margin: 0; padding: 0; display: grid; gap: 9px; list-style: none; }
.personal-score-item {
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, .78);
  border-radius: 18px;
  background: rgba(255, 249, 236, .97);
  box-shadow: 0 8px 18px rgba(0, 0, 0, .18);
}
.personal-score-summary {
  width: 100%;
  min-height: 68px;
  padding: 10px 11px;
  border: 0;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto 18px;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  background: transparent;
  text-align: left;
}
.personal-score-summary:active { background: rgba(255, 215, 68, .16); }
.highscore-number {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, #ff729e, #ffad4c);
  font-size: 15px;
  font-weight: 900;
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .14);
}
.highscore-copy { min-width: 0; }
.highscore-title { display: block; overflow: hidden; color: var(--ink); font-size: 16px; font-weight: 900; text-overflow: ellipsis; white-space: nowrap; }
.highscore-label { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; }
.highscore-value { min-width: 70px; color: #f0527e; font-size: 18px; font-weight: 900; text-align: right; white-space: nowrap; }
.highscore-value.is-empty { color: #9297aa; font-size: 12px; }
.personal-score-chevron { color: #8b8fa1; font-size: 22px; font-weight: 900; transform: rotate(0deg); transition: transform .18s ease; }
.personal-score-item.is-open .personal-score-chevron { transform: rotate(180deg); }
.personal-score-detail {
  padding: 0 13px 14px;
  border-top: 1px solid rgba(39, 52, 84, .12);
  background: linear-gradient(180deg, rgba(255, 255, 255, .42), rgba(255, 244, 221, .78));
}
.personal-score-detail[hidden] { display: none; }
.personal-detail-grid { margin: 12px 0 10px; display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.personal-detail-grid div {
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid rgba(39, 52, 84, .12);
  border-radius: 12px;
  background: rgba(255, 255, 255, .72);
}
.personal-detail-grid dt { margin: 0 0 3px; color: #777d96; font-size: 10px; font-weight: 800; }
.personal-detail-grid dd { margin: 0; overflow: hidden; color: #303752; font-size: 13px; font-weight: 900; text-overflow: ellipsis; white-space: nowrap; }
.personal-detail-empty { margin: 12px 0 9px; color: #858a9d; font-size: 12px; line-height: 1.45; }
.personal-history-title { margin: 12px 0 7px; color: #4a5068; font-size: 12px; font-weight: 900; }
.personal-history-list { margin: 0; padding: 0; display: grid; gap: 5px; list-style: none; }
.personal-history-list li {
  min-height: 36px;
  padding: 7px 9px;
  border-radius: 10px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, .68);
}
.personal-history-list strong { color: #ed507c; font-size: 12px; white-space: nowrap; }
.personal-history-list span { overflow: hidden; color: #555c74; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.personal-history-list time { color: #9297aa; font-size: 9px; white-space: nowrap; }
.personal-cloud-detail {
  margin-top: 10px;
  padding: 10px 11px;
  border: 1px solid rgba(57, 139, 211, .20);
  border-radius: 12px;
  display: grid;
  gap: 6px;
  color: #67718d;
  background: rgba(225, 243, 255, .70);
  font-size: 11px;
}
.personal-cloud-detail strong { color: #2a75b9; font-size: 12px; }
.personal-cloud-detail ol { margin: 0; padding: 0; display: grid; gap: 4px; list-style: none; }
.personal-cloud-detail li { display: flex; justify-content: space-between; gap: 8px; }
.personal-cloud-detail li span { color: #284462; font-weight: 900; }
.personal-cloud-detail li small { color: #7b8da0; }
.personal-cloud-detail.is-loading { opacity: .72; }

/* 글로벌 스코어 */
.global-score-controls {
  margin-bottom: 9px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 9px;
  align-items: end;
}
.global-game-select { min-width: 0; display: grid; gap: 5px; color: #dfe5f5; font-size: 11px; font-weight: 900; }
.global-game-select select {
  width: 100%;
  height: 44px;
  padding: 0 34px 0 12px;
  border: 2px solid rgba(255, 255, 255, .64);
  border-radius: 14px;
  color: #273454;
  background: #fff9ec;
  font-size: 14px;
  font-weight: 900;
  outline: none;
}
.global-sync-button {
  min-height: 44px;
  padding: 0 12px;
  border: 2px solid rgba(255, 255, 255, .75);
  border-radius: 14px;
  color: #382706;
  background: linear-gradient(180deg, #ffe977, #ffc92f);
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 5px 0 rgba(160, 105, 0, .48);
  white-space: nowrap;
}
.global-sync-button:active { transform: translateY(3px); box-shadow: 0 2px 0 rgba(160, 105, 0, .48); }
.global-sync-button:disabled { opacity: .55; transform: none; box-shadow: none; }
.cloud-status {
  margin-bottom: 12px;
  padding: 9px 11px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 12px;
  color: #d6dcec;
  background: rgba(7, 10, 25, .48);
  font-size: 11px;
  line-height: 1.45;
}
.cloud-status[data-tone="ok"] { color: #bff9d1; border-color: rgba(87, 219, 132, .38); }
.cloud-status[data-tone="error"] { color: #ffd0d7; border-color: rgba(255, 105, 132, .42); }
.cloud-status[data-tone="empty"] { color: #ffeeb7; border-color: rgba(255, 215, 68, .34); }
.global-top-section,
.global-rank-section {
  padding: 13px;
  border: 2px solid rgba(255, 255, 255, .55);
  border-radius: 19px;
  background: rgba(8, 12, 31, .58);
  box-shadow: 0 10px 22px rgba(0, 0, 0, .18);
  backdrop-filter: blur(8px);
}
.global-rank-section { margin-top: 12px; }
.global-section-heading { margin-bottom: 10px; display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.global-section-heading strong { color: #ffd744; font-size: 16px; letter-spacing: .02em; }
.global-section-heading span { overflow: hidden; color: #d6dcec; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.global-top5 { margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; list-style: none; }
.global-top-card {
  position: relative;
  min-height: 86px;
  padding: 10px 10px;
  border: 2px solid rgba(255, 255, 255, .72);
  border-radius: 15px;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  align-items: center;
  justify-items: start;
  column-gap: 8px;
  align-content: center;
  color: #28334f;
  background: linear-gradient(180deg, #fffdf5, #fff1d4);
  text-align: left;
  box-shadow: inset 0 -4px 0 rgba(121, 85, 28, .10), 0 6px 14px rgba(0, 0, 0, .16);
}
.global-top-card--1 {
  grid-column: 1 / -1;
  min-height: 112px;
  grid-template-columns: 82px minmax(0, 1fr);
  column-gap: 12px;
  background: linear-gradient(180deg, #fff8b9, #ffd54e);
}
.global-top-card--2 { background: linear-gradient(180deg, #f8fbff, #d8e2ef); }
.global-top-card--3 { background: linear-gradient(180deg, #ffe3bd, #d99a58); }
.global-top-card.is-empty { opacity: .62; filter: saturate(.55); }
.global-top-card .global-rank-badge { display: none; }
.global-rank-badge {
  position: absolute;
  left: 8px;
  top: 8px;
  width: 25px;
  height: 25px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  color: #fff;
  background: #303752;
  font-size: 11px;
  font-weight: 900;
}
.global-top-card--1 .global-rank-badge { background: #dc7c00; }
.global-medal {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  line-height: 1;
}
.global-medal img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .20));
}
.global-top-card--1 .global-medal {
  width: 82px;
  height: 82px;
}
.global-player-info {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  display: grid;
  justify-items: start;
  gap: 3px;
}
.global-top-card.is-mine .global-player-info { padding-right: 36px; }
.global-player-name { max-width: 100%; overflow: hidden; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.global-top-card--1 .global-player-name { font-size: 20px; }
.global-player-score { color: #e94e73; font-size: 16px; font-weight: 900; }
.global-top-card--1 .global-player-score { color: #9a5300; font-size: 24px; }
.global-loading { grid-column: 1 / -1; padding: 28px 10px; color: #d6dcec; text-align: center; list-style: none; }
.global-rank-list { margin: 0; padding: 0; display: grid; gap: 6px; list-style: none; }
.global-rank-row {
  min-height: 44px;
  padding: 7px 9px;
  border-radius: 11px;
  display: grid;
  grid-template-columns: 31px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  color: #313a55;
  background: rgba(255, 249, 236, .96);
}
.global-rank-row time { grid-column: 2 / 4; margin-top: -4px; color: #9197aa; font-size: 9px; }
.global-rank-number {
  width: 29px;
  height: 29px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, #6a7ba6, #3f4d72);
  font-size: 11px;
  font-weight: 900;
}
.global-rank-row strong { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.global-rank-row > span:nth-of-type(2) { color: #ed507c; font-size: 13px; font-weight: 900; white-space: nowrap; }
.global-rank-empty { padding: 22px 8px; color: #c8cedf; font-size: 12px; text-align: center; }

@media (max-width: 380px) {
  .minis-bgm-player { left: 6px; right: 6px; grid-template-columns: 32px 32px 32px minmax(0, 1fr) 52px; gap: 4px; padding-left: 6px; padding-right: 6px; }
  .minis-bgm-button { width: 32px; height: 32px; }
  .minis-bgm-meta strong { font-size: 10px; }
  .overall-ranking-strip { padding-left: 8px; padding-right: 8px; }
  .overall-ranking-strip__list { gap: 4px; }
  .overall-ranking-strip__list li { min-height: 68px; padding-left: 3px; padding-right: 3px; grid-template-rows: 31px auto auto; }
  .overall-ranking-strip__medal { width: 32px; height: 32px; }
  .overall-ranking-strip__list strong,
  .overall-ranking-strip__list em { font-size: 9px; }
  .launcher-bottom-actions { left: 10px; right: 10px; gap: 6px; }
  .launcher-scroll-hint { font-size: 16px; }
  .launcher-scroll-hint span { padding: 9px 15px; }
  .launcher-score-shortcut { width: 104px; min-height: 40px; font-size: 13px; }
  .personal-score-summary { grid-template-columns: 40px minmax(0, 1fr) auto 15px; gap: 7px; padding-left: 8px; padding-right: 8px; }
  .highscore-number { width: 38px; height: 38px; }
  .highscore-title { font-size: 14px; }
  .highscore-value { font-size: 16px; }
  .global-score-controls { grid-template-columns: 1fr; }
  .global-sync-button { width: 100%; }
  .global-top-card { grid-template-columns: 46px minmax(0, 1fr); column-gap: 6px; padding-left: 8px; padding-right: 8px; }
  .global-top-card--1 { grid-template-columns: 72px minmax(0, 1fr); }
  .global-medal { width: 46px; height: 46px; }
  .global-top-card--1 .global-medal { width: 72px; height: 72px; }
  .global-player-score { font-size: 14px; }
}

canvas { font-family: 'NexonMaplestory', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }

@keyframes signatureDance { 0%, 100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-18px) rotate(6deg); } }
@keyframes musicFloat { 0%, 100% { transform: translateY(0) rotate(-8deg); opacity: .65; } 50% { transform: translateY(-8px) rotate(9deg); opacity: 1; } }
@keyframes loadingFlow { from { transform: translateX(-100%); } to { transform: translateX(285%); } }
@keyframes readyBlink { 0%, 100% { filter: brightness(1); transform: translateY(0); } 50% { filter: brightness(1.18); transform: translateY(-2px); } }
@keyframes mascotThreeHops {
  0% { opacity: 0; transform: translate3d(-150px, 16px, 0) scale(.86) rotate(-4deg); }
  8% { opacity: 1; }
  17% { transform: translate3d(-95px, -24px, 0) scale(.9) rotate(3deg); }
  28% { transform: translate3d(-70px, 6px, 0) scale(.92) rotate(-2deg); }
  43% { transform: translate3d(-38px, -30px, 0) scale(.95) rotate(4deg); }
  54% { transform: translate3d(-18px, 3px, 0) scale(.97) rotate(-2deg); }
  69% { transform: translate3d(8px, -25px, 0) scale(1) rotate(3deg); }
  82% { transform: translate3d(22px, 0, 0) scale(1) rotate(-1deg); }
  91% { transform: translate3d(22px, -7px, 0) scale(1.015) rotate(1deg); }
  100% { opacity: 1; transform: translate3d(22px, 0, 0) scale(1) rotate(0); }
}
@keyframes wordmarkReveal { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: translateX(0); } }
@keyframes sparklePop { 0% { opacity: 0; transform: scale(.25) rotate(-20deg); } 55% { opacity: 1; transform: scale(1.24) rotate(10deg); } 100% { opacity: .85; transform: scale(1) rotate(0); } }
@keyframes brandFadeOut { from { opacity: 1; } to { opacity: 0; visibility: hidden; } }
@keyframes scrollHintGlow {
  0%, 100% { opacity: .78; transform: translateY(0); filter: brightness(1); }
  50% { opacity: 1; transform: translateY(-3px); filter: brightness(1.24); }
}
@keyframes scrollHintSparkle {
  0%, 100% { opacity: .42; transform: translateY(-50%) scale(.72) rotate(-12deg); }
  45% { opacity: 1; transform: translateY(-50%) scale(1.18) rotate(10deg); }
  70% { opacity: .70; transform: translateY(-50%) scale(.92) rotate(0); }
}

@media (max-height: 720px) {
  .launcher { gap: 6px; padding-top: calc(env(safe-area-inset-top) + 4px); }
  .launcher-header { min-height: 44px; }
  .brand-logo { font-size: clamp(24px, 6.5vw, 34px); }
  .brand-duck { width: 43px; height: 43px; }
  .recent-game { flex-basis: 140px; min-height: 140px; padding: 8px; gap: 6px; }
  .feature-banner__nav button { height: 25px; font-size: 10px; }
  .recent-game__open { grid-template-columns: 80px minmax(0, 1fr); gap: 10px; }
  .recent-game__art { width: 80px; height: 80px; border-radius: 19px; }
  .recent-game__copy strong { font-size: 22px; }
  .recent-game__copy small { font-size: 12px; -webkit-line-clamp: 1; }
  .recent-game__start { width: 82px; font-size: 14px; }
  .game-grid { grid-auto-rows: 120px; gap: 11px 9px; padding-top: 7px; }
  .game-icon { width: min(100%, 88px); border-radius: 20px; }
  .game-tile strong { min-height: 32px; font-size: 14px; }
  .home-menu__button { min-height: 52px; }
}

@media (min-width: 541px) {
  body { background: radial-gradient(circle at 50% 18%, #20365f 0, #0a0d18 52%, #05060b 100%); }
  .app-shell { border-left: 1px solid rgba(255, 255, 255, .08); border-right: 1px solid rgba(255, 255, 255, .08); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* 자동 랭킹 등록 / 랭킹 이름 설정 */
.ranking-profile {
  margin-bottom: 10px;
  padding: 12px;
  border: 2px solid rgba(255,255,255,.58);
  border-radius: 17px;
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  gap: 10px;
  align-items: center;
  background: rgba(8,12,31,.58);
  box-shadow: 0 8px 18px rgba(0,0,0,.16);
  backdrop-filter: blur(8px);
}
.ranking-profile__copy { min-width: 0; display: grid; gap: 4px; }
.ranking-profile__copy strong { color: #ffd744; font-size: 14px; }
.ranking-profile__copy span { color: #d6dcec; font-size: 10px; line-height: 1.45; }
.ranking-profile__editor { display: flex; align-items: center; gap: 6px; }
.ranking-profile__editor input {
  width: 116px;
  height: 39px;
  padding: 0 10px;
  border: 2px solid rgba(255,255,255,.72);
  border-radius: 12px;
  color: #273454;
  background: #fff9ec;
  font-family: inherit;
  font-size: 14px;
  font-weight: 900;
  text-align: center;
  outline: none;
}
.ranking-profile__editor input:focus { border-color: #ffd744; box-shadow: 0 0 0 3px rgba(255,215,68,.2); }
.ranking-profile__editor button {
  height: 39px;
  padding: 0 12px;
  border: 2px solid rgba(255,255,255,.72);
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(180deg,#4d9cff,#2166cf);
  font-family: inherit;
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 4px 0 rgba(12,55,127,.55);
}
.ranking-profile__editor button:active { transform: translateY(2px); box-shadow: 0 2px 0 rgba(12,55,127,.55); }
.ranking-profile__editor button:disabled { opacity: .55; transform: none; box-shadow: none; }

.global-top-card.is-mine,
.global-rank-row.is-mine {
  border-color: #35d7ff;
  box-shadow: 0 0 0 3px rgba(53,215,255,.34), inset 0 0 0 2px rgba(255,255,255,.72), 0 8px 18px rgba(0,0,0,.2);
}
.global-top-card.is-mine::after,
.global-rank-row.is-mine::after {
  content: 'MY';
  position: absolute;
  right: 7px;
  top: 7px;
  min-width: 28px;
  height: 18px;
  padding: 0 6px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #063d59;
  background: #9af1ff;
  font-size: 9px;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 2px 0 rgba(0,80,108,.2);
}
.global-rank-row.is-mine { position: relative; padding-right: 47px; background: linear-gradient(180deg,rgba(214,250,255,.98),rgba(176,236,255,.96)); }
.global-rank-row.is-mine::after { top: 50%; transform: translateY(-50%); }

@media (max-width: 560px) {
  .ranking-profile { grid-template-columns: 1fr; align-items: stretch; }
  .ranking-profile__editor { width: 100%; }
  .ranking-profile__editor input { width: auto; min-width: 0; flex: 1 1 auto; }
  .ranking-profile__editor button { flex: 0 0 auto; }
}
