/* The store page. Needs shared/base.css. */
.wrap { max-width: 560px; margin: 0 auto; padding: max(28px, env(safe-area-inset-top)) 16px 48px; }

.head { position: relative; text-align: center; padding: 8px 0 6px; }
.logo { width: 72px; height: 72px; border-radius: 20px; box-shadow: var(--shadow); animation: wobble 4s ease-in-out infinite; }
@keyframes wobble { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(4deg) translateY(-3px); } }
.brand { margin: 12px 0 4px; font-size: clamp(38px, 12vw, 52px); font-weight: 800; letter-spacing: -0.01em; line-height: 1.05; }
.brand span:nth-child(1) { color: var(--red); }
.brand span:nth-child(2) { color: var(--blue); }
.brand span:nth-child(3) { color: var(--apricot); }
.tagline { margin: 0 0 18px; font-size: 18px; font-weight: 700; line-height: 1.45; }
.tagline .muted { font-size: 15px; font-weight: 500; }

/* big faint letters drifting behind the title */
.floaty { position: absolute; inset: -10px 0 0; overflow: hidden; pointer-events: none; z-index: -1; }
.floaty span { position: absolute; font-size: 64px; font-weight: 800; color: var(--text); opacity: 0.06; animation: drift 9s ease-in-out infinite; }
.floaty span:nth-child(1) { left: 2%; top: 6%; }
.floaty span:nth-child(2) { right: 4%; top: 0; animation-delay: -2s; }
.floaty span:nth-child(3) { left: 12%; top: 58%; font-size: 48px; animation-delay: -4s; }
.floaty span:nth-child(4) { right: 12%; top: 52%; font-size: 52px; animation-delay: -6s; }
.floaty span:nth-child(5) { left: 40%; top: -6%; font-size: 40px; animation-delay: -1s; }
.floaty span:nth-child(6) { right: 32%; top: 70%; font-size: 36px; animation-delay: -3s; }
@keyframes drift { 0%, 100% { transform: translateY(0) rotate(-6deg); } 50% { transform: translateY(-10px) rotate(6deg); } }

.stats { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0 0 18px; }
.stats > span { padding: 8px 13px; border-radius: 99px; background: var(--card); box-shadow: var(--shadow); font-size: 14px; font-weight: 600; line-height: 1.4; }

.mine { padding: 14px 14px 12px; border-radius: 22px; background: var(--card); box-shadow: var(--shadow); }
.mine-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 10px; }
.mine h2 { margin: 0; font-size: 16px; }
.mine-head a { font-size: 13px; font-weight: 700; text-decoration: none; }
.strip { display: grid; grid-template-columns: repeat(13, 1fr); gap: 4px; }
.s-l {
  display: grid; place-items: center; aspect-ratio: 1; border-radius: 8px; background: var(--card-2); color: var(--muted);
  font-size: clamp(13px, 3.6vw, 19px); font-weight: 700; text-decoration: none; transition: transform 0.1s;
}
.s-l:active { transform: scale(0.9); }
.s-l.known { background: var(--good); color: #fff; }
.s-l.review { background: var(--apricot); color: #2a1a12; }

.games { margin: 0; padding: 0; list-style: none; }
.section { padding: 26px 4px 8px; color: var(--muted); font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.section span { margin-left: 4px; letter-spacing: 0; text-transform: none; font-size: 14px; opacity: 0.8; }

.game {
  display: flex; align-items: center; gap: 14px; padding: 13px 14px; margin-bottom: 10px;
  border-radius: 22px; background: var(--card); box-shadow: var(--shadow); text-decoration: none; transition: transform 0.12s;
}
.game:active { transform: scale(0.98); }
@media (hover: hover) { .game:hover { transform: translateY(-2px) rotate(-0.4deg); } }
.app-icon { flex: none; display: grid; place-items: center; width: 58px; height: 58px; border-radius: 17px; font-size: 30px; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.15); }
.game:hover .app-icon { animation: wiggle 0.4s; }
@keyframes wiggle { 30% { transform: rotate(-8deg); } 70% { transform: rotate(8deg); } }

.game-body { flex: 1; min-width: 0; }
.game-title, .game-sub, .game-meta { display: block; }
.game-title { font-size: 17px; font-weight: 800; }
.game-hy { display: block; color: var(--muted); font-size: 14px; font-weight: 700; overflow-wrap: anywhere; }
.game-sub { margin-top: 2px; font-size: 14px; line-height: 1.35; color: var(--muted); }
.game-meta { margin-top: 5px; font-size: 12px; font-weight: 600; color: var(--muted); opacity: 0.85; }
.bar { display: block; height: 5px; margin-top: 7px; border-radius: 99px; background: var(--line); overflow: hidden; }
.bar span { display: block; height: 100%; border-radius: 99px; background: var(--good); }

.chevron { flex: none; color: var(--muted); font-size: 22px; }

.foot { margin-top: 26px; font-size: 13px; line-height: 1.6; text-align: center; }
