/* 허브·메뉴 공용. 팔레트와 서체는 놀이 화면(pongpong/css/app.css)과 맞춘다. */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background: radial-gradient(120% 100% at 50% 0%, #241d45 0%, #141127 70%);
  background-attachment: fixed;
  color: #f5efdf;
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Pretendard", sans-serif;
  -webkit-text-size-adjust: 100%;
}

.sheet {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding: 32px 20px calc(32px + env(safe-area-inset-bottom));
  text-align: center;
}

.sheet-title {
  font-size: clamp(28px, 7vw, 44px);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.sheet-subtitle {
  color: #9d92c9;
  font-size: clamp(14px, 3.5vw, 17px);
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
  width: 100%;
  max-width: 560px;
}

/* 카드는 아이가 손바닥으로 눌러도 맞을 만큼 크게 잡는다. */
.card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 170px;
  padding: 20px 16px;
  border-radius: 24px;
  background: rgba(157, 146, 201, 0.12);
  border: 1px solid rgba(157, 146, 201, 0.22);
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.card:active { background: rgba(157, 146, 201, 0.2); }
.card:focus-visible { outline: 3px solid #ffd97a; outline-offset: 4px; }

.card-emoji { font-size: clamp(44px, 12vw, 60px); line-height: 1; }
.card-title { font-size: clamp(17px, 4.5vw, 20px); font-weight: 700; }
.card-description { color: #9d92c9; font-size: 13px; line-height: 1.5; }

.back-link {
  color: #7c72a8;
  font-size: 13px;
  text-decoration: none;
  border-bottom: 1px solid rgba(124, 114, 168, 0.4);
  padding-bottom: 2px;
}
.back-link:focus-visible { outline: 3px solid #ffd97a; outline-offset: 4px; }
