:root {
  color-scheme: light;
  --ink: #143f46;
  --paper: #fffdf6;
  --rose: #ff6b8a;
  --sun: #ffd15c;
  --mint: #58d6a8;
  --sky: #4fb7ff;
  --grape: #8f7aff;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
}

html {
  background:
    radial-gradient(circle at 14% 16%, rgba(255, 255, 255, 0.92) 0 10%, transparent 11%),
    radial-gradient(circle at 88% 10%, rgba(255, 255, 255, 0.72) 0 8%, transparent 9%),
    linear-gradient(135deg, #fff1ad 0%, #ffd0db 33%, #b9edff 68%, #cff8c8 100%);
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  color: var(--ink);
  background:
    radial-gradient(circle at 14% 16%, rgba(255, 255, 255, 0.92) 0 10%, transparent 11%),
    radial-gradient(circle at 88% 10%, rgba(255, 255, 255, 0.72) 0 8%, transparent 9%),
    linear-gradient(135deg, #fff1ad 0%, #ffd0db 33%, #b9edff 68%, #cff8c8 100%);
  font-family:
    ui-rounded, "Hiragino Maru Gothic ProN", "Hiragino Sans", system-ui,
    sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 14% 16%, rgba(255, 255, 255, 0.92) 0 10%, transparent 11%),
    radial-gradient(circle at 88% 10%, rgba(255, 255, 255, 0.72) 0 8%, transparent 9%),
    linear-gradient(135deg, #fff1ad 0%, #ffd0db 33%, #b9edff 68%, #cff8c8 100%);
}

.shell {
  width: min(920px, 100%);
  min-height: 100dvh;
  margin: 0 auto;
  padding: max(26px, env(safe-area-inset-top)) 18px max(22px, env(safe-area-inset-bottom));
  display: grid;
  align-content: center;
  gap: 24px;
}

.intro {
  display: grid;
  gap: 8px;
}

.kicker {
  margin: 0;
  color: rgba(20, 63, 70, 0.64);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0;
}

h1 {
  margin: 0;
  color: rgba(20, 63, 70, 0.88);
  max-width: 100%;
  font-size: clamp(2.25rem, 9vw, 5.4rem);
  line-height: 0.98;
  letter-spacing: 0;
  text-shadow: 0 4px 0 rgba(255, 255, 255, 0.72);
  overflow-wrap: anywhere;
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
  gap: 14px;
}

.game-tile {
  position: relative;
  min-height: 216px;
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 14px;
  padding: 18px;
  border: 4px solid rgba(255, 255, 255, 0.86);
  border-radius: 8px;
  color: inherit;
  text-decoration: none;
  background: rgba(255, 253, 246, 0.66);
  box-shadow: 0 18px 42px rgba(30, 74, 76, 0.16);
  -webkit-tap-highlight-color: transparent;
  overflow: hidden;
}

.game-tile:active {
  transform: scale(0.98);
}

.tile-art {
  position: relative;
  min-height: 118px;
  display: block;
}

.bubble,
.star {
  position: absolute;
  display: block;
  filter: drop-shadow(0 8px 0 rgba(255, 255, 255, 0.64));
}

.bubble {
  border: 4px solid rgba(255, 255, 255, 0.8);
  border-radius: 999px;
}

.bubble-rose {
  width: 92px;
  height: 92px;
  left: 4%;
  top: 20px;
  background: var(--rose);
}

.bubble-sun {
  width: 72px;
  height: 72px;
  left: 32%;
  top: 0;
  background: var(--sun);
}

.bubble-mint {
  width: 82px;
  height: 82px;
  right: 22%;
  top: 44px;
  background: var(--mint);
}

.bubble-sky {
  width: 66px;
  height: 66px;
  right: 2%;
  top: 8px;
  background: var(--sky);
}

.star {
  width: 78px;
  height: 78px;
  left: 50%;
  top: 54px;
  background: var(--grape);
  clip-path: polygon(50% 0, 61% 34%, 98% 35%, 68% 56%, 79% 91%, 50% 70%, 21% 91%, 32% 56%, 2% 35%, 39% 34%);
}

.tile-copy {
  display: grid;
  gap: 6px;
  padding-right: 54px;
}

.game-title {
  font-size: clamp(1.5rem, 6vw, 2.2rem);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: 0;
}

.game-note {
  color: rgba(20, 63, 70, 0.68);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: 0;
}

.play-mark {
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: var(--ink);
  font-size: 1.15rem;
  line-height: 1;
}

@media (max-width: 520px) {
  .shell {
    align-content: start;
    min-height: 100vh;
    padding-top: max(32px, env(safe-area-inset-top));
  }

  h1 {
    font-size: 3rem;
    line-height: 1.02;
  }

  .game-tile {
    min-height: 230px;
  }
}
