@import url("https://fonts.googleapis.com/css2?family=M+PLUS+Rounded+1c:wght@500;700;800;900&display=swap");

:root { color-scheme: light; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  color: #514453;
  background:
    radial-gradient(circle at 3% 15%, #f8dbe680 0 105px, transparent 106px),
    radial-gradient(circle at 99% 57%, #d9eff180 0 130px, transparent 131px),
    #fff9f1;
  font-family: "M PLUS Rounded 1c", "Hiragino Maru Gothic ProN", "Yu Gothic", sans-serif;
  line-height: 1.7;
}
a { color: inherit; -webkit-tap-highlight-color: transparent; }
a:focus-visible { outline: 3px solid #387fa3; outline-offset: 6px; }
.games-skip { position: absolute; top: -100px; left: 16px; z-index: 10; background: white; padding: 12px 20px; border-radius: 99px; }
.games-skip:focus { top: 12px; }
.games-header {
  width: min(1080px, calc(100% - 40px));
  margin: 0 auto;
  padding: max(20px, env(safe-area-inset-top)) 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.games-brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; font-weight: 900; font-size: 16px; }
.games-brand img { display: block; flex: 0 0 40px; }
.games-home { min-height: 44px; display: inline-flex; align-items: center; border-radius: 99px; padding: 8px 17px; background: #fffdfb; border: 1px solid #e8dcd9; font-size: 12px; font-weight: 700; text-align: center; }
.games-main { width: min(1080px, calc(100% - 40px)); margin: 0 auto; }
.games-intro { text-align: center; margin: 30px auto 32px; }
.games-eyebrow { font-size: 11px; letter-spacing: .16em; font-weight: 900; color: #a76183; margin: 0 0 10px; }
.games-intro h1 { font-size: clamp(29px, 6vw, 48px); line-height: 1.35; font-weight: 900; margin: 0; letter-spacing: .03em; text-wrap: balance; }
.games-lead { margin: 14px 0 0; font-size: 14px; }
.games-dots { display: flex; justify-content: center; gap: 9px; margin: 20px 0 0; }
.games-dots span { display: block; width: 8px; height: 8px; border-radius: 50%; background: #ef97b8; }
.games-dots span:nth-child(2) { background: #86ccdb; }
.games-dots span:nth-child(3) { background: #ecd47b; }
.games-dots span:nth-child(4) { background: #9acdb0; }
.games-dots span:nth-child(5) { background: #bba1da; }
.games-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: stretch; }
.game-choice {
  --accent: #f4a5c3;
  --accent-shadow: #de86a8;
  --art: #fff0f5;
  --kind: #97506f;
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 2px solid white;
  border-radius: 32px;
  background: #fffdfb;
  box-shadow: 0 9px 0 #e9ddd24d, 0 14px 35px #77566a0a;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease;
}
.game-choice--stack { --accent: #b9dfd0; --accent-shadow: #97c6b3; --art: #edf8f1; --kind: #40745c; }
.game-choice--search { --accent: #f6d78a; --accent-shadow: #d8b96f; --art: #fff8e7; --kind: #806538; }
.game-art { height: 206px; margin: 9px 9px 0; border-radius: 24px; background: var(--art); position: relative; overflow: hidden; }
.catch-orbit { position: absolute; width: 178px; height: 178px; border-radius: 50%; background: #ffe0ec; bottom: -28px; left: calc(50% - 89px); }
.catch-friend { position: absolute; width: 150px; height: 170px; object-fit: contain; object-position: center bottom; bottom: 4px; left: calc(50% - 75px); }
.catch-drop { position: absolute; border: 3px solid #fffc; border-radius: 50%; box-shadow: 0 3px 0 #b88d9e18; }
.catch-drop--pink { width: 30px; height: 30px; background: #fa8fba; top: 25px; left: 20%; }
.catch-drop--blue { width: 25px; height: 25px; background: #76cce3; top: 52px; right: 17%; }
.catch-drop--yellow { width: 22px; height: 22px; background: #f6d067; top: 15px; left: 53%; }
.catch-drop--green { width: 17px; height: 17px; background: #96d4ac; top: 105px; left: 12%; }
.catch-drop--purple { width: 19px; height: 19px; background: #b5a0d9; top: 131px; right: 12%; }
.stack-piece { position: absolute; border-radius: 50%; display: grid; place-items: center; border: 4px solid #fffdfb; box-shadow: 0 4px 0 #779b8614; }
.stack-piece img { width: 84%; height: 84%; object-fit: contain; }
.stack-piece--pink { width: 107px; height: 107px; background: #f5dbe6; bottom: 14px; left: calc(50% - 133px); transform: rotate(-12deg); }
.stack-piece--blue { width: 132px; height: 132px; background: #d3eef4; bottom: 11px; left: calc(50% - 68px); transform: rotate(5deg); z-index: 1; }
.stack-piece--green { width: 93px; height: 93px; background: #d6ecdb; bottom: 14px; left: calc(50% + 41px); transform: rotate(12deg); z-index: 2; }
.stack-piece--egg { width: 64px; height: 64px; background: #fff0bc; top: 13px; left: calc(50% - 32px); transform: rotate(-8deg); z-index: 2; }
.stack-dot { position: absolute; border-radius: 50%; }
.stack-dot--one { width: 11px; height: 11px; background: #f0d28c; top: 42px; left: 20%; }
.stack-dot--two { width: 8px; height: 8px; background: #b5c3e0; top: 34px; right: 21%; }
.search-cloud { position: absolute; display: grid; place-items: center; border-radius: 50%; background: #d7edf1; border: 3px solid #fffefa; width: 56px; height: 56px; top: 18px; }
.search-cloud--one { left: calc(50% - 112px); }
.search-cloud--two { left: calc(50% - 36px); width: 72px; height: 72px; top: 9px; background: #f8e3aa; }
.search-cloud--two img { width: 54px; height: 42px; object-fit: contain; }
.search-cloud--three { left: calc(50% + 56px); }
.search-ball { position: absolute; width: 17px; height: 17px; border: 3px solid white; border-radius: 50%; background: #ed97ac; top: 99px; left: calc(50% + 66px); box-shadow: 0 3px 0 #dab77744; }
.search-friend { position: absolute; height: 108px; width: 72px; object-fit: contain; left: calc(50% - 36px); bottom: 27px; }
.search-paddle { position: absolute; bottom: 15px; left: calc(50% - 63px); height: 14px; width: 126px; border: 2px solid white; border-radius: 99px; background: #8bc9b0; }
.game-choice-copy { padding: 23px 27px 27px; display: flex; flex-direction: column; flex: 1; }
.game-kind { align-self: flex-start; border-radius: 99px; background: var(--art); color: var(--kind); padding: 4px 13px; font-size: 11px; font-weight: 800; margin: 0 0 12px; }
.game-choice h2 { font-size: clamp(20px, 2.3vw, 25px); line-height: 1.5; margin: 0; font-weight: 900; overflow-wrap: anywhere; }
.game-description { font-size: 13px; color: #786b76; line-height: 1.95; margin: 12px 0 24px; flex: 1; }
.game-choice-action { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 54px; background: var(--accent); box-shadow: 0 4px 0 var(--accent-shadow); border-radius: 99px; padding: 9px 12px 9px 22px; font-size: 14px; font-weight: 900; }
.game-choice-arrow { display: grid; place-items: center; flex: 0 0 32px; width: 32px; height: 32px; border-radius: 50%; background: #fff9; font-size: 20px; }
.games-note { text-align: center; font-size: 12px; color: #8c7c86; margin: 26px 0 0; }
.games-footer { text-align: center; color: #9b8994; font-size: 10px; padding: 24px 20px max(30px, env(safe-area-inset-bottom)); }
@media (hover: hover) {
  .game-choice:hover { transform: translateY(-4px); box-shadow: 0 12px 0 #e9ddd24d, 0 18px 35px #77566a12; }
  .games-home:hover { background: #f9e9f0; }
}
@media (min-width: 980px) {
  .games-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .game-choice-copy { padding-left: 22px; padding-right: 22px; }
}
@media (max-width: 680px) {
  .games-header { width: calc(100% - 28px); padding-top: max(14px, env(safe-area-inset-top)); }
  .games-brand { font-size: 13px; gap: 6px; }
  .games-brand img { flex-basis: 32px; width: 32px; height: 32px; }
  .games-home { font-size: 10px; padding: 8px 12px; }
  .games-main { width: min(440px, calc(100% - 28px)); }
  .games-intro { margin: 25px auto 24px; }
  .games-lead { font-size: 12px; }
  .games-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .game-art { height: 180px; }
  .catch-friend { height: 153px; }
  .stack-piece--pink { width: 95px; height: 95px; left: calc(50% - 118px); }
  .stack-piece--blue { width: 116px; height: 116px; left: calc(50% - 59px); }
  .stack-piece--green { width: 83px; height: 83px; left: calc(50% + 35px); }
  .stack-piece--egg { width: 54px; height: 54px; top: 12px; left: calc(50% - 27px); }
  .game-choice-copy { padding: 20px 22px 25px; }
  .game-kind { margin-bottom: 8px; }
  .game-description { margin: 9px 0 20px; }
}
@media (prefers-reduced-motion: reduce) { .game-choice { transition: none; } }
