/* ==========================================================================
   플레이한판 — 공용 스타일
   모든 페이지(로비, 게임)가 공유하는 디자인 토큰과 셸 컴포넌트
   ========================================================================== */

:root {
  color-scheme: dark;

  /* 바탕: 밤의 게임 테이블 */
  --bg: #171935;
  --bg-deep: #0f1028;
  --s1: #1f2248;
  --s2: #292d59;
  --s3: #353a6d;
  --line: rgba(178, 184, 255, .13);
  --line-2: rgba(178, 184, 255, .24);

  /* 글자 */
  --t1: #f5f3ff;
  --t2: #bdbbe2;
  --t3: #8c8abb;

  /* 브랜드: 게임 토큰 옐로 */
  --brand: #ffd23f;
  --brand-hi: #ffe27a;
  --brand-lo: #d9a90f;
  --on-brand: #2a2000;

  --good: #4fe0a1;
  --bad: #ff5d73;
  --info: #6cc6ff;

  /* 게임별 색 (게임 페이지에서 덮어씀) */
  --game: var(--brand);

  --r-xl: 22px;
  --r-lg: 16px;
  --r-md: 12px;
  --r-sm: 8px;

  --f-ui: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui,
    "Apple SD Gothic Neo", "Malgun Gothic", "맑은 고딕", sans-serif;
  --f-display: "Bagel Fat One", "Pretendard Variable", Pretendard, "Malgun Gothic", sans-serif;

  --bar-h: 60px;
  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --shadow-pop: 0 30px 80px -24px rgba(0, 0, 0, .75), 0 0 0 1px var(--line-2);
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--bg);
  scrollbar-gutter: stable;
}
/* 모달이 떠 있는 동안 뒤 페이지 스크롤 잠금 */
html.hp-modal-open { overflow: hidden; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--t1);
  font-family: var(--f-ui);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-tap-highlight-color: transparent;
}

/* 모눈 점 — 격자 게임들의 공통 모티프 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: radial-gradient(rgba(190, 196, 255, .075) 1px, transparent 1.3px);
  background-size: 22px 22px;
}

a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
img, svg { display: block; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
::selection { background: var(--brand); color: var(--on-brand); }

[hidden] { display: none !important; }

.hp-sr {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   로고
   -------------------------------------------------------------------------- */
.hp-logo {
  font-family: var(--f-display);
  font-weight: 400;
  color: var(--brand);
  letter-spacing: -.01em;
  line-height: 1;
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   상단 바 (게임 페이지)
   -------------------------------------------------------------------------- */
.hp-bar {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--bar-h);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 max(10px, env(safe-area-inset-right)) 0 max(10px, env(safe-area-inset-left));
  background: rgba(23, 25, 53, .88);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.hp-bar__home {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  height: 42px;
  padding: 0 12px 0 4px;
  border-radius: 12px;
  text-decoration: none;
  color: var(--t2);
  flex: none;
}
.hp-bar__home:hover { background: var(--s1); color: var(--t1); }
.hp-bar__home svg { width: 22px; height: 22px; }
.hp-bar__home .hp-logo { font-size: 23px; padding-top: 2px; }

.hp-bar__title {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
a.hp-bar__title { align-self: stretch; padding-right: 10px; color: inherit; text-decoration: none; }
a.hp-bar__title:hover { color: var(--brand-hi); }
a.hp-bar__title:focus-visible { outline-offset: -3px; border-radius: 8px; }   /* 바 높이를 다 쓰는 링크라 테두리를 안쪽으로 그린다 */
.hp-bar__title::before {
  content: "";
  width: 1px;
  height: 20px;
  background: var(--line-2);
  margin-right: 4px;
  flex: none;
}

.hp-bar__actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 2px;
  flex: none;
}

/* --------------------------------------------------------------------------
   버튼
   -------------------------------------------------------------------------- */
.hp-icon-btn {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--t2);
  cursor: pointer;
  touch-action: manipulation;
  transition: background .15s, color .15s;
}
.hp-icon-btn:hover { background: var(--s1); color: var(--t1); }
.hp-icon-btn:active { background: var(--s2); }
.hp-icon-btn svg { width: 22px; height: 22px; }
.hp-icon-btn[aria-pressed="true"] { color: var(--t3); }

.hp-btn {
  --h: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: var(--h);
  padding: 0 16px;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: var(--s1);
  color: var(--t1);
  font-size: 15px;
  font-weight: 650;
  line-height: 1;
  letter-spacing: -.01em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  touch-action: manipulation;
  transition: background .15s, border-color .15s, transform .08s, box-shadow .08s;
}
.hp-btn:hover { background: var(--s2); }
.hp-btn:active { transform: translateY(1px) scale(.985); }
.hp-btn svg { width: 18px; height: 18px; flex: none; }
.hp-btn:disabled, .hp-btn[aria-disabled="true"] { opacity: .38; cursor: not-allowed; transform: none; }

/* 주요 버튼: 오락실 버튼처럼 아래로 눌리는 턱 */
.hp-btn--primary {
  background: var(--brand);
  border-color: transparent;
  color: var(--on-brand);
  font-weight: 750;
  box-shadow: 0 3px 0 var(--brand-lo);
}
.hp-btn--primary:hover { background: var(--brand-hi); }
.hp-btn--primary:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--brand-lo); }

.hp-btn--ghost { background: transparent; border-color: transparent; color: var(--t2); }
.hp-btn--ghost:hover { background: var(--s1); color: var(--t1); }

.hp-btn--sm { --h: 34px; padding: 0 12px; font-size: 14px; border-radius: 10px; gap: 6px; }
.hp-btn--sm svg { width: 16px; height: 16px; }
.hp-btn--lg { --h: 52px; padding: 0 24px; font-size: 17px; border-radius: 14px; }
.hp-btn--block { width: 100%; }

.hp-btn__count {
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--bg-deep);
  color: var(--t2);
  font-size: 12px;
  font-weight: 700;
  display: inline-grid;
  place-items: center;
  font-variant-numeric: tabular-nums;
}

/* 세그먼트 (난이도 선택 등) */
.hp-seg {
  display: inline-flex;
  padding: 3px;
  gap: 2px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-deep);
}
.hp-seg > button {
  height: 32px;
  padding: 0 12px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--t2);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  touch-action: manipulation;
  transition: background .15s, color .15s;
}
.hp-seg > button:hover { color: var(--t1); }
.hp-seg > button[aria-checked="true"], .hp-seg > button.is-on {
  background: var(--s3);
  color: var(--t1);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .09) inset, 0 1px 2px rgba(0, 0, 0, .3);
}

/* 토글 스위치 */
.hp-switch {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--t2);
  cursor: pointer;
  user-select: none;
}
.hp-switch input { position: absolute; opacity: 0; pointer-events: none; }
.hp-switch__track {
  width: 38px;
  height: 22px;
  border-radius: 999px;
  background: var(--s3);
  position: relative;
  transition: background .2s;
  flex: none;
}
.hp-switch__track::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--t1);
  transition: transform .2s var(--ease-out);
}
.hp-switch input:checked + .hp-switch__track { background: var(--brand); }
.hp-switch input:checked + .hp-switch__track::after { transform: translateX(16px); background: var(--on-brand); }
.hp-switch input:focus-visible + .hp-switch__track { outline: 2px solid var(--brand); outline-offset: 2px; }

/* --------------------------------------------------------------------------
   무대 · 패널 · 스탯
   -------------------------------------------------------------------------- */
.hp-stage {
  position: relative;
  min-height: calc(100vh - var(--bar-h));
  min-height: calc(100dvh - var(--bar-h));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 16px max(12px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
}

.hp-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.hp-panel {
  background: var(--s1);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 16px;
}

.hp-stats { display: flex; gap: 20px; flex-wrap: wrap; }
.hp-stat { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.hp-stat__label {
  font-size: 12px;
  font-weight: 600;
  color: var(--t3);
  letter-spacing: .01em;
  white-space: nowrap;
}
.hp-stat__value {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.hp-stat--sm .hp-stat__value { font-size: 17px; }
.hp-stat--best .hp-stat__value { color: var(--brand); }

/* --------------------------------------------------------------------------
   모달
   -------------------------------------------------------------------------- */
.hp-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(9, 10, 28, .58);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  opacity: 0;
  transition: opacity .2s ease;
}
.hp-modal[hidden] { display: none; }
.hp-modal.is-open { opacity: 1; }

.hp-modal__card {
  position: relative;
  width: min(380px, 100%);
  max-height: calc(100dvh - 40px);
  overflow: auto;
  padding: 30px 22px 20px;
  border-radius: 26px;
  background: var(--s1);
  box-shadow: var(--shadow-pop);
  text-align: center;
  transform: translateY(14px) scale(.95);
  transition: transform .38s var(--ease-spring);
  outline: none;
}
.hp-modal.is-open .hp-modal__card { transform: none; }

.hp-modal__badge {
  display: inline-block;
  margin-bottom: 10px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--brand);
  color: var(--on-brand);
  font-size: 13px;
  font-weight: 800;
  animation: hp-badge 1.2s var(--ease-spring) both;
}
@keyframes hp-badge {
  0% { transform: scale(.4) rotate(-8deg); opacity: 0; }
  60% { transform: scale(1.08) rotate(2deg); opacity: 1; }
  100% { transform: none; }
}

.hp-modal__title {
  margin: 0 0 6px;
  font-family: var(--f-display);
  font-weight: 400;
  font-size: 42px;
  line-height: 1.12;
  letter-spacing: -.01em;
}
.hp-modal--win .hp-modal__title { color: var(--brand); }
.hp-modal--lose .hp-modal__title { color: var(--t1); }

.hp-modal__msg {
  margin: 0 auto 18px;
  max-width: 30ch;
  color: var(--t2);
  font-size: 15px;
  line-height: 1.6;
}

.hp-modal__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
  gap: 8px;
  margin: 0 0 20px;
}
/* 개수에 맞춰 줄 맞춤: 1 → 1칸, 2·4 → 2칸, 3·5·6 → 3칸 */
.hp-modal__stats:has(> :only-child) { grid-template-columns: 1fr; }
.hp-modal__stats:has(> :nth-child(2):last-child),
.hp-modal__stats:has(> :nth-child(4):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hp-modal__stats:has(> :nth-child(3):last-child),
.hp-modal__stats:has(> :nth-child(5)) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hp-modal__stat .hp-stat__label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hp-modal__stat {
  padding: 10px 8px 9px;
  border-radius: 14px;
  background: var(--bg-deep);
}
.hp-modal__stat .hp-stat__value { font-size: 20px; }
.hp-modal__stat.is-best .hp-stat__value { color: var(--brand); }

.hp-modal__actions { display: flex; flex-direction: column; gap: 8px; }
.hp-modal__actions .hp-btn { width: 100%; }

/* 낮은 화면(가로 휴대폰): 모달을 납작하게 */
@media (max-height: 480px) {
  .hp-modal { padding: 10px; }
  .hp-modal__card { padding: 16px 18px 14px; border-radius: 20px; }
  .hp-modal__badge { margin-bottom: 4px; padding: 3px 10px; font-size: 12px; }
  .hp-modal__title { font-size: 28px; margin-bottom: 2px; }
  .hp-modal__msg { font-size: 14px; margin-bottom: 10px; }
  .hp-modal__stats { margin-bottom: 12px; gap: 6px; }
  .hp-modal__stat { padding: 6px 6px 5px; }
  .hp-modal__stat .hp-stat__value { font-size: 17px; }
  .hp-modal__actions .hp-btn--lg { --h: 44px; font-size: 16px; }
}
@media (max-height: 480px) and (min-width: 560px) {
  .hp-modal__card { width: min(580px, 100%); }
  .hp-modal__stats:has(> :nth-child(4):last-child) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .hp-modal__actions { flex-direction: row; }
  .hp-modal__actions .hp-btn { width: auto; flex: 1 1 0; }
}
.hp-modal__body { margin: 0 0 18px; text-align: left; }

/* --------------------------------------------------------------------------
   그림으로 보는 게임 방법 (HP.guide)
   -------------------------------------------------------------------------- */
html.hp-guide-open { overflow: hidden; }
.hp-guide {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(9, 10, 28, .64);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity .2s ease;
}
.hp-guide[hidden] { display: none; }
.hp-guide.is-open { opacity: 1; }
.hp-guide__card {
  position: relative;
  width: min(540px, 100%);
  max-height: calc(100dvh - 32px);
  overflow: auto;
  padding: 14px 18px 16px;
  border-radius: 26px;
  background: var(--s1);
  box-shadow: var(--shadow-pop);
  transform: translateY(14px) scale(.96);
  transition: transform .38s var(--ease-spring);
  outline: none;
  touch-action: pan-y;
}
.hp-guide.is-open .hp-guide__card { transform: none; }
.hp-guide__head { display: flex; align-items: center; gap: 10px; min-height: 40px; margin-bottom: 10px; }
.hp-guide__eyebrow { font-size: 14px; font-weight: 750; color: var(--game-ink, var(--game)); letter-spacing: -.01em; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hp-guide__count { margin-left: auto; color: var(--t3); font-size: 13px; font-weight: 650; font-variant-numeric: tabular-nums; }
.hp-guide__close { flex: none; margin-right: -6px; }
.hp-guide-fig {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 18px;
  background: var(--bg-deep);
  overflow: hidden;
  isolation: isolate;
}
.hp-guide-fig > svg { display: block; width: 100%; height: 100%; }
.hp-guide-fig:not(.is-live) * { animation-play-state: paused !important; }
.hp-guide__body { padding-top: 14px; }
.hp-guide__title {
  margin: 0 0 6px;
  font-family: var(--f-display);
  font-weight: 400;
  font-size: 26px;
  line-height: 1.2;
  letter-spacing: -.01em;
}
.hp-guide__text { margin: 0 0 14px; min-height: calc(3em * 1.65); color: var(--t2); font-size: 15.5px; line-height: 1.65; word-break: keep-all; }
.hp-guide__dots { display: flex; justify-content: center; gap: 2px; margin: 0 0 12px; flex-wrap: nowrap; }
.hp-guide__dots button {
  flex: 0 1 22px;
  min-width: 12px;
  height: 22px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.hp-guide__dots button::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--line-2);
  transition: width .25s var(--ease-out), background .2s;
}
.hp-guide__dots button.is-on::before { width: 18px; background: var(--brand); }
.hp-guide__nav { display: flex; gap: 8px; }
.hp-guide__nav .hp-btn { flex: 1 1 0; }
.hp-guide__read {
  display: block;
  margin: 10px auto 0;
  padding: 6px 10px;
  border: 0;
  background: none;
  color: var(--t3);
  font: 600 13.5px/1.4 var(--f-ui);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.hp-guide__read:hover { color: var(--t1); }
.hp-guide__card.is-next .hp-guide__fig, .hp-guide__card.is-next .hp-guide__title, .hp-guide__card.is-next .hp-guide__text { animation: hp-guide-in-next .32s var(--ease-out); }
.hp-guide__card.is-prev .hp-guide__fig, .hp-guide__card.is-prev .hp-guide__title, .hp-guide__card.is-prev .hp-guide__text { animation: hp-guide-in-prev .32s var(--ease-out); }
@keyframes hp-guide-in-next { from { opacity: 0; transform: translateX(22px); } }
@keyframes hp-guide-in-prev { from { opacity: 0; transform: translateX(-22px); } }
@media (pointer: coarse) {
  /* 손가락으로는 점을 누르지 않고 밀어 넘기거나 이전/다음을 쓴다: 점은 위치 표시만 */
  .hp-guide__dots button { pointer-events: none; }
  .hp-guide__nav .hp-btn { --h: 46px; }
  .hp-guide__card .hp-guide__close { width: 44px; height: 44px; }
  .hp-guide__read { padding: 12px 14px; }
}
/* 높이가 조금 낮은 노트북 화면: 창을 조금 작게 */
@media (max-height: 720px) and (min-height: 621px) and (min-width: 600px) {
  .hp-guide__card { width: min(470px, 100%); padding: 10px 16px 12px; }
  .hp-guide__head { margin-bottom: 6px; }
  .hp-guide__body { padding-top: 10px; }
  .hp-guide__title { font-size: 23px; }
  .hp-guide__text { font-size: 15px; margin-bottom: 10px; }
  .hp-guide__dots { margin-bottom: 8px; }
  .hp-guide__read { margin-top: 4px; }
}
/* 낮은 가로 화면: 그림 왼쪽, 설명 오른쪽 */
@media (max-height: 620px) and (min-width: 600px) {
  .hp-guide { padding: 10px; }
  .hp-guide__card {
    width: min(860px, 100%);
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    column-gap: 18px;
    padding: 12px 16px 12px;
  }
  .hp-guide__head { grid-column: 1 / -1; margin-bottom: 6px; min-height: 34px; }
  .hp-guide__fig { align-self: start; }
  .hp-guide__body { padding-top: 0; display: flex; flex-direction: column; }
  .hp-guide__title { font-size: 22px; }
  .hp-guide__text { font-size: 14.5px; flex: 1; margin-bottom: 8px; }
  .hp-guide__read { margin-top: 4px; }
}
@media (max-width: 380px) {
  .hp-guide { padding: 10px; }
  .hp-guide__card { padding: 10px 14px 14px; border-radius: 22px; }
  .hp-guide__title { font-size: 23px; }
  .hp-guide__text { font-size: 15px; }
}
/* 아주 작은 휴대폰 (320×568 등) */
@media (max-width: 380px) and (max-height: 640px) {
  .hp-guide { padding: 6px; }
  .hp-guide__card { padding: 8px 12px 10px; max-height: calc(100dvh - 12px); }
  .hp-guide__head { margin-bottom: 6px; min-height: 36px; }
  .hp-guide__body { padding-top: 8px; }
  .hp-guide__title { font-size: 20px; margin-bottom: 4px; }
  .hp-guide__text { font-size: 14px; line-height: 1.55; min-height: calc(3em * 1.55); margin-bottom: 8px; }
  .hp-guide__dots { margin-bottom: 6px; }
  .hp-guide__read { margin-top: 2px; padding: 8px 10px; }
}

/* 본문 속 그림 목록 */
.hp-guide-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
  margin: 18px 0 14px;
}
.hp-guide-item {
  margin: 0;
  border-radius: 18px;
  background: var(--s1);
  border: 1px solid var(--line);
  overflow: hidden;
}
.hp-guide-item .hp-guide-fig { border-radius: 0; }
.hp-guide-item figcaption { position: relative; padding: 12px 14px 14px 46px; }
.hp-guide-item__n {
  position: absolute;
  left: 14px;
  top: 12px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--s3);
  color: var(--t1);
  font-size: 12.5px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.hp-guide-item b { display: block; margin: 1px 0 4px; color: var(--t1); font-size: 16px; font-weight: 750; letter-spacing: -.01em; }
.hp-about .hp-guide-item p { margin: 0; font-size: 14.5px; line-height: 1.62; }
.hp-guide-list__open { margin: 0 0 8px; }
@media (prefers-reduced-motion: reduce) {
  .hp-guide-fig *, .hp-guide__card * { animation: none !important; transition: none !important; }
}

/* 처음 온 사람에게 보이는 말풍선 */
.hp-guide-hint {
  position: fixed;
  z-index: 70;
  display: flex;
  align-items: center;
  gap: 6px;
  max-width: min(360px, calc(100vw - 16px));
  padding: 8px 6px 8px 14px;
  border-radius: 14px;
  background: var(--t1);
  color: var(--bg);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.35;
  box-shadow: 0 14px 34px -12px rgba(0, 0, 0, .6);
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity .25s, transform .3s var(--ease-out);
  pointer-events: none;
}
.hp-guide-hint.is-show { opacity: 1; transform: none; }
/* 글자 부분은 눌러도 아래 게임으로 지나간다: 버튼만 누를 수 있다 */
.hp-guide-hint.is-show button { pointer-events: auto; }
.hp-guide-hint::before {
  content: "";
  position: absolute;
  top: -6px;
  left: calc(var(--arrow, 50%) - 6px);
  width: 12px;
  height: 12px;
  background: var(--t1);
  transform: rotate(45deg);
  border-radius: 2px;
}
.hp-guide-hint span { position: relative; }
.hp-guide-hint__go {
  position: relative;
  flex: none;
  height: 32px;
  padding: 0 12px;
  border: 0;
  border-radius: 10px;
  background: var(--brand);
  color: var(--on-brand);
  font: 800 13.5px/1 var(--f-ui);
  cursor: pointer;
}
.hp-guide-hint__x {
  position: relative;
  flex: none;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: none;
  color: var(--bg);
  display: grid;
  place-items: center;
  cursor: pointer;
}
.hp-guide-hint__x svg { width: 16px; height: 16px; }
@media (pointer: coarse) {
  .hp-guide-hint__go, .hp-guide-hint__x { height: 44px; }
  .hp-guide-hint__x { width: 44px; }
}

/* --------------------------------------------------------------------------
   토스트 · 축하 효과
   -------------------------------------------------------------------------- */
.hp-toast {
  position: fixed;
  left: 50%;
  bottom: calc(28px + env(safe-area-inset-bottom));
  z-index: 120;
  width: max-content;
  max-width: calc(100vw - 32px);
  padding: 11px 18px;
  border-radius: 999px;
  background: var(--t1);
  color: var(--bg);
  font-size: 15px;
  font-weight: 700;
  text-align: center;
  box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .7);
  transform: translate(-50%, 16px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s, transform .3s var(--ease-out);
}
.hp-toast.is-show { opacity: 1; transform: translate(-50%, 0); }

.hp-confetti {
  position: fixed;
  inset: 0;
  z-index: 110;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   게임 방법 (본문 콘텐츠)
   -------------------------------------------------------------------------- */
.hp-about {
  max-width: 760px;
  margin: 0 auto;
  padding: 64px 20px 16px;
  scroll-margin-top: calc(var(--bar-h) + 8px);
}
.hp-about > h2 {
  margin: 0 0 14px;
  font-family: var(--f-display);
  font-weight: 400;
  font-size: 30px;
  line-height: 1.2;
}
.hp-about h3 {
  margin: 34px 0 10px;
  font-size: 18px;
  font-weight: 750;
  letter-spacing: -.01em;
}
.hp-about p, .hp-about li {
  color: var(--t2);
  font-size: 16px;
  line-height: 1.78;
}
.hp-about p { margin: 0 0 12px; }
.hp-about ul, .hp-about ol { margin: 0 0 12px; padding-left: 1.3em; }
.hp-about li { margin: 4px 0; }
.hp-about strong { color: var(--t1); font-weight: 700; }

.hp-keys {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 10px 18px;
  align-items: center;
  margin: 0 0 12px;
  padding: 16px 18px;
  border-radius: var(--r-lg);
  background: var(--s1);
  border: 1px solid var(--line);
}
.hp-keys dt { display: flex; gap: 4px; flex-wrap: wrap; }
.hp-keys dd { margin: 0; color: var(--t2); font-size: 15px; }

kbd {
  display: inline-block;
  min-width: 26px;
  padding: 2px 7px 1px;
  border: 1px solid var(--line-2);
  border-bottom-width: 3px;
  border-radius: 7px;
  background: var(--s2);
  color: var(--t1);
  font: 650 13px/1.5 var(--f-ui);
  text-align: center;
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   게임 타일 (로비 · 다른 게임)
   -------------------------------------------------------------------------- */
.hp-tile {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  color: var(--t1);
  text-decoration: none;
  border-radius: 20px;
  outline-offset: 5px;
}
.hp-tile__art {
  position: relative;
  aspect-ratio: 16 / 11;
  border-radius: 20px;
  overflow: hidden;
  background: var(--tile, var(--s2));
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .06) inset;
  transition: transform .35s var(--ease-spring);
}
.hp-tile__art svg { width: 100%; height: 100%; }
.hp-tile:hover .hp-tile__art, .hp-tile:focus-visible .hp-tile__art { transform: translateY(-3px) rotate(-.6deg); }
.hp-tile__body { display: flex; flex-direction: column; gap: 3px; padding: 0 2px; }
.hp-tile__name {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.3;
}
.hp-tile__desc { color: var(--t2); font-size: 14px; line-height: 1.5; }
.hp-tile__best {
  align-self: flex-start;
  margin-top: 6px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(255, 210, 63, .12);
  color: var(--brand);
  font-size: 12.5px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* 썸네일 속 움직임: 마우스를 올렸을 때만 */
/* :where 로 우선순위를 낮춰 아래의 썸네일별 transition 이 이긴다 */
:where(.hp-tile) .th-anim { transition: transform .6s var(--ease-out), opacity .4s; transform-box: fill-box; transform-origin: center; }

.hp-more {
  max-width: 1120px;
  margin: 0 auto;
  padding: 40px 20px 8px;
}
.hp-more > h2 {
  margin: 0 0 16px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -.02em;
}
.hp-more__row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(168px, 1fr);
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 6px 2px 14px;
  scrollbar-width: thin;
  scrollbar-color: var(--s3) transparent;
}
.hp-more__row .hp-tile { scroll-snap-align: start; }
.hp-more__row .hp-tile__name { font-size: 16px; }
.hp-more__row .hp-tile__desc { display: none; }

.hp-foot {
  max-width: 1120px;
  margin: 32px auto 0;
  padding: 28px 20px calc(36px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  color: var(--t3);
  font-size: 14px;
  line-height: 1.7;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px 32px;
  align-items: start;
}
.hp-foot .hp-logo { font-size: 20px; }
.hp-foot p { margin: 0; }
.hp-foot__brand { display: grid; gap: 8px; justify-items: start; }
.hp-foot__nav {
  display: grid;
  grid-template-columns: repeat(2, max-content);
  gap: 4px 28px;
}
.hp-foot__nav a {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  color: var(--t2);
  text-decoration: none;
}
.hp-foot__nav a:hover { color: var(--t1); text-decoration: underline; text-underline-offset: 3px; }
.hp-foot__copy { grid-column: 1 / -1; font-size: 13px; }
@media (max-width: 640px) {
  .hp-foot { grid-template-columns: 1fr; }
  .hp-foot__nav { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 16px; }
  .hp-foot__nav a { min-height: 42px; }
}

/* --------------------------------------------------------------------------
   글 카드 (공략과 이야기) — 로비와 글 페이지가 함께 쓴다
   -------------------------------------------------------------------------- */
.hp-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.hp-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: var(--s1);
  color: var(--t1);
  text-decoration: none;
  transition: transform .18s var(--ease-out), border-color .18s;
}
.hp-card:hover { transform: translateY(-3px); border-color: var(--line-2); }
.hp-card__art { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--s2); }
.hp-card__art svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.hp-card__body { display: grid; gap: 6px; padding: 16px 18px 18px; }
.hp-card__tag { color: var(--t3); font-size: 13px; font-weight: 650; }
.hp-card__title { margin: 0; font-size: 17.5px; font-weight: 750; line-height: 1.4; letter-spacing: -.01em; }
.hp-card__desc { margin: 0; color: var(--t2); font-size: 14.5px; line-height: 1.6; }

/* 줄 모양 카드 (그림 왼쪽 · 글 오른쪽): 글 아래의 '다른 글', 그리고 좁은 화면의 모든 글 카드 */
.hp-cards--list { grid-template-columns: minmax(0, 1fr); gap: 12px; }
.hp-cards--list .hp-card { flex-direction: row; }
.hp-cards--list .hp-card__art { flex: 0 0 176px; aspect-ratio: auto; min-height: 112px; }
.hp-cards--list .hp-card__body { flex: 1; min-width: 0; align-content: center; padding: 14px 18px; }
/* 모음 페이지: 첫 글은 한 줄을 통째로 쓴다 (그림 왼쪽 · 글 오른쪽) */
@media (min-width: 561px) {
  .hp-cards--feature > li:first-child { grid-column: 1 / -1; }
  .hp-cards--feature > li:first-child .hp-card { flex-direction: row; }
  .hp-cards--feature > li:first-child .hp-card__art { flex: 0 0 min(46%, 500px); }
  .hp-cards--feature > li:first-child .hp-card__body { flex: 1; min-width: 0; align-content: center; gap: 10px; padding: 22px 30px; }
  .hp-cards--feature > li:first-child .hp-card__tag { font-size: 14px; }
  .hp-cards--feature > li:first-child .hp-card__title { font-size: clamp(20px, 2.4vw, 26px); line-height: 1.35; text-wrap: balance; }
  .hp-cards--feature > li:first-child .hp-card__desc { max-width: 32em; font-size: 16px; line-height: 1.7; }
}
@media (max-width: 560px) {
  .hp-cards { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .hp-card { flex-direction: row; border-radius: 16px; }
  .hp-card:hover { transform: none; }
  .hp-card__art, .hp-cards--list .hp-card__art { flex: 0 0 104px; aspect-ratio: auto; min-height: 104px; }
  .hp-card__body, .hp-cards--list .hp-card__body { flex: 1; min-width: 0; align-content: center; gap: 4px; padding: 12px 14px; }
  .hp-card__tag { font-size: 12.5px; }
  .hp-card__title { font-size: 16px; line-height: 1.38; }
  .hp-card__desc { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; font-size: 13.5px; line-height: 1.55; }
}

/* 본문 글 아래 '더 읽을거리' */
.hp-related {
  max-width: 760px;
  margin: 0 auto;
  padding: 8px 20px 0;
}
.hp-related__in {
  display: grid;
  gap: 2px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--s1);
}
.hp-related strong { color: var(--t3); font-size: 13.5px; font-weight: 650; }
.hp-related a { display: block; padding: 5px 0; color: var(--brand-hi); font-weight: 650; text-underline-offset: 3px; line-height: 1.6; }

/* --------------------------------------------------------------------------
   광고 자리 — 승인 뒤 _admin/site_setup.py 가 채운다. 게임 화면에서 충분히 떨어진 글 아래에만 둔다.
   광고가 실제로 채워졌을 때만 여백과 '광고' 글자가 나타난다 (채울 광고가 없거나 막혀 있으면 자리가 접힌다)
   -------------------------------------------------------------------------- */
.hp-ad {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 20px;
}
.lobby .hp-ad { padding-left: 0; padding-right: 0; }
.hp-ad__label {
  display: none;
  margin-bottom: 6px;
  color: var(--t3);
  font-size: 12px;
  letter-spacing: .04em;
  text-align: center;
}
.hp-ad:has(ins[data-ad-status="filled"]) { margin: 36px auto 24px; }
.hp-ad:has(ins[data-ad-status="filled"]) .hp-ad__label { display: block; }
.hp-ad ins[data-ad-status="unfilled"] { display: none !important; }
.lobby .hp-ad:has(ins[data-ad-status="filled"]) { margin: 0 auto 48px; }

/* --------------------------------------------------------------------------
   반응형 · 모션 줄이기
   -------------------------------------------------------------------------- */
@media (max-width: 560px) {
  :root { --bar-h: 54px; }
  .hp-bar__home { padding-right: 8px; }
  .hp-bar__home .hp-logo { font-size: 21px; }
  .hp-bar__title { font-size: 16px; }
  .hp-icon-btn { width: 40px; height: 40px; }
  .hp-stage { padding-top: 12px; gap: 10px; }
  .hp-modal__card { padding: 26px 18px 18px; }
  .hp-modal__stat .hp-stat__value { font-size: 18px; }
  .hp-modal__title { font-size: 36px; }
  .hp-about { padding-top: 48px; }
  .hp-about > h2 { font-size: 26px; }
}

/* 좁은 화면의 상단 바: 긴 사이트 이름 대신 네모 넷 표시만 보여 줘서 게임 제목이 잘리지 않게 한다.
   (이름은 링크의 aria-label 에 그대로 있다) */
@media (max-width: 440px) {
  .hp-bar__home { gap: 4px; }
  .hp-bar__home .hp-logo {
    width: 22px;
    height: 22px;
    padding: 0;
    overflow: hidden;
    font-size: 0;
    line-height: 0;
    color: transparent;
    forced-color-adjust: none;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Crect x='6' y='6' width='24' height='24' rx='7' fill='%238b6cff'/%3E%3Crect x='34' y='6' width='24' height='24' rx='7' fill='%2317b6a0'/%3E%3Crect x='6' y='34' width='24' height='24' rx='7' fill='%23ff5a6e'/%3E%3Crect x='34' y='34' width='24' height='24' rx='7' fill='%23ffd23f'/%3E%3C/svg%3E") center / contain no-repeat;
  }
}

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

/* --------------------------------------------------------------------------
   썸네일 움직임 (마우스를 올리거나 키보드로 고를 때)
   -------------------------------------------------------------------------- */
.th-jb-drop { transition: transform .7s cubic-bezier(.55, 0, .85, .35); }
.hp-tile:hover .th-jb-drop, .hp-tile:focus-visible .th-jb-drop { transform: translateY(92px); }
.th-jb-beam { transition: opacity .3s; }
.hp-tile:hover .th-jb-beam, .hp-tile:focus-visible .th-jb-beam { opacity: 0; }

.hp-tile:hover .th-shisen-path, .hp-tile:focus-visible .th-shisen-path { animation: th-draw .9s var(--ease-out); }
@keyframes th-draw { from { stroke-dashoffset: 330; } to { stroke-dashoffset: 0; } }

.th-mine-cover { transition: opacity .25s, transform .35s var(--ease-out); }
.hp-tile:hover .th-mine-cover, .hp-tile:focus-visible .th-mine-cover { opacity: 0; transform: translateY(-6px) scale(.85); }

.th-sol-card { transition: transform .5s var(--ease-spring); }
.hp-tile:hover .th-sol-c0, .hp-tile:focus-visible .th-sol-c0 { transform: rotate(-8deg); }
.hp-tile:hover .th-sol-c1, .hp-tile:focus-visible .th-sol-c1 { transform: rotate(-3deg); }
.hp-tile:hover .th-sol-c2, .hp-tile:focus-visible .th-sol-c2 { transform: rotate(3deg); }
.hp-tile:hover .th-sol-c3, .hp-tile:focus-visible .th-sol-c3 { transform: rotate(8deg); }

.th-spider { transition: transform .7s var(--ease-spring); }
.hp-tile:hover .th-spider, .hp-tile:focus-visible .th-spider { transform: translateY(26px); }

.th-2048-big { transition: transform .45s var(--ease-spring); }
.hp-tile:hover .th-2048-big, .hp-tile:focus-visible .th-2048-big { transform: scale(1.14) rotate(-4deg); }

.th-sudoku-num { opacity: 0; transform: scale(.4); transition: opacity .2s .15s, transform .4s .15s var(--ease-spring); }
.hp-tile:hover .th-sudoku-num, .hp-tile:focus-visible .th-sudoku-num { opacity: 1; transform: none; }
.th-pencil { transition: transform .45s var(--ease-out); }
.hp-tile:hover .th-pencil, .hp-tile:focus-visible .th-pencil { transform: translate(-10px, -6px) rotate(-4deg); }

.hp-tile:hover .th-omok-last, .hp-tile:focus-visible .th-omok-last { animation: th-stone .5s var(--ease-spring); }
@keyframes th-stone { 0% { transform: scale(1.6); opacity: 0; } 100% { transform: none; opacity: 1; } }

.th-ball { transition: transform .6s var(--ease-out); }
.hp-tile:hover .th-ball, .hp-tile:focus-visible .th-ball { transform: translate(18px, -22px); }

.th-tongue { transform-origin: 50% 0; }
.hp-tile:hover .th-tongue, .hp-tile:focus-visible .th-tongue { animation: th-tongue .5s ease-in-out infinite; }
@keyframes th-tongue { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(.35); } }
.hp-tile:hover .th-apple, .hp-tile:focus-visible .th-apple { animation: th-bob .6s ease-in-out infinite alternate; }
@keyframes th-bob { to { transform: translateY(-5px); } }

/* 2차 게임 썸네일 움직임 */
.th-poop-fall { transition: transform .8s cubic-bezier(.55, 0, .85, .35); }
.hp-tile:hover .th-poop-fall, .hp-tile:focus-visible .th-poop-fall { transform: translateY(18px); }
.th-poop-hero { transition: transform .35s var(--ease-out); }
.hp-tile:hover .th-poop-hero, .hp-tile:focus-visible .th-poop-hero { transform: translateX(-16px); }

.th-bd-a, .th-bd-b, .th-bd-c, .th-bd-d, .th-bd-e, .th-bd-me { transition: transform .7s var(--ease-out); }
.hp-tile:hover .th-bd-a, .hp-tile:focus-visible .th-bd-a { transform: translate(18px, 12px); }
.hp-tile:hover .th-bd-b, .hp-tile:focus-visible .th-bd-b { transform: translate(-16px, 10px); }
.hp-tile:hover .th-bd-c, .hp-tile:focus-visible .th-bd-c { transform: translate(-12px, -14px); }
.hp-tile:hover .th-bd-d, .hp-tile:focus-visible .th-bd-d { transform: translate(14px, -12px); }
.hp-tile:hover .th-bd-e, .hp-tile:focus-visible .th-bd-e { transform: translate(-10px, -12px); }
.hp-tile:hover .th-bd-me, .hp-tile:focus-visible .th-bd-me { transform: translate(8px, -6px); }

.hp-tile:hover .th-bomb-spark, .hp-tile:focus-visible .th-bomb-spark { animation: th-spark .3s ease-in-out infinite alternate; }
@keyframes th-spark { to { transform: scale(1.35) rotate(20deg); } }
.th-bomb-boom { transition: transform .4s var(--ease-spring); }
.hp-tile:hover .th-bomb-boom, .hp-tile:focus-visible .th-bomb-boom { transform: scale(1.18); }

.th-stair-hero { transition: transform .35s var(--ease-spring); }
.hp-tile:hover .th-stair-hero, .hp-tile:focus-visible .th-stair-hero { transform: translate(27px, -19px); }

.th-chess-knight { transition: transform .5s var(--ease-spring); }
.hp-tile:hover .th-chess-knight, .hp-tile:focus-visible .th-chess-knight { transform: translate(18px, -10px) rotate(4deg); }

.th-janggi-han { transition: transform .35s var(--ease-spring); }
.hp-tile:hover .th-janggi-han, .hp-tile:focus-visible .th-janggi-han { transform: translateY(-7px) scale(1.04); }

.th-fc-cell { transition: transform .5s var(--ease-spring); }
.hp-tile:hover .th-fc-cell, .hp-tile:focus-visible .th-fc-cell { transform: translate(56px, 0); }

.th-bp-drag { transition: transform .6s var(--ease-out); }
.hp-tile:hover .th-bp-drag, .hp-tile:focus-visible .th-bp-drag { transform: translate(-58px, 34px); }

.th-og-sel { transition: transform .35s var(--ease-out), opacity .3s; }
.hp-tile:hover .th-og-sel, .hp-tile:focus-visible .th-og-sel { transform: scale(.6); opacity: 0; }

.th-pm-drop { transition: transform .7s cubic-bezier(.5, 0, .75, .3); }
.hp-tile:hover .th-pm-drop, .hp-tile:focus-visible .th-pm-drop { transform: translateY(82px); }

.th-art-shell { transition: transform .75s cubic-bezier(.45, 0, .8, .55); }
.hp-tile:hover .th-art-shell, .hp-tile:focus-visible .th-art-shell { transform: translate(42px, 34px); }

.th-tr-tractor { transition: transform .6s var(--ease-out); }
.hp-tile:hover .th-tr-tractor, .hp-tile:focus-visible .th-tr-tractor { transform: translateX(-26px); }

.th-dk-hop { transition: transform .45s var(--ease-spring); }
.hp-tile:hover .th-dk-hop, .hp-tile:focus-visible .th-dk-hop { transform: translate(-6px, -16px) rotate(-6deg); }

.th-mo-pop { transition: transform .35s var(--ease-spring); }
.hp-tile:hover .th-mo-pop, .hp-tile:focus-visible .th-mo-pop { transform: translateY(-12px); }

.th-rx-cap { transition: transform .35s var(--ease-spring); }
.hp-tile:hover .th-rx-cap, .hp-tile:focus-visible .th-rx-cap { transform: translateY(9px); transition-duration: .14s; transition-timing-function: var(--ease-out); }

/* 새로 나온 게임 표시 (한국 앱의 'N' 배지) */
.hp-tile__new {
  display: inline-grid;
  place-items: center;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: #ff4d5e;
  color: #fff;
  font-size: 10.5px;
  font-weight: 800;
  line-height: 1;
  flex: none;
  transform: translateY(-2px);
}

/* 6차: 새 게임·스네이크 썸네일 움직임 */
.th-sn-me { transition: transform .6s var(--ease-out); }
.hp-tile:hover .th-sn-me, .hp-tile:focus-visible .th-sn-me { transform: translate(-12px, 0); }
.th-rc-car { transition: transform .5s var(--ease-out); transform-box: fill-box; transform-origin: 50% 100%; }
.hp-tile:hover .th-rc-car, .hp-tile:focus-visible .th-rc-car { transform: translate(-16px, -5px) rotate(-7deg); }
.th-pb-ball { transition: transform .55s var(--ease-out); }
.hp-tile:hover .th-pb-ball, .hp-tile:focus-visible .th-pb-ball { transform: translate(-14px, -56px); }
.th-sv-orbit { transition: transform 1.1s var(--ease-out); }
.hp-tile:hover .th-sv-orbit, .hp-tile:focus-visible .th-sv-orbit { transform: rotate(360deg); }
.th-ba-hero { transition: transform .5s var(--ease-spring); }
.hp-tile:hover .th-ba-hero, .hp-tile:focus-visible .th-ba-hero { transform: translate(18px, -24px) rotate(14deg); }
