@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@500;700;800;900&display=swap');

:root {
  --ink: #073550;
  --muted: #497388;
  --deep: #075f87;
  --sea: #12a6c9;
  --foam: #e7fbff;
  --coral: #ff7b68;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 9% 8%, rgba(255, 255, 255, .72) 0 2px, transparent 3px),
    radial-gradient(circle at 82% 20%, rgba(255, 255, 255, .62) 0 3px, transparent 4px),
    linear-gradient(180deg, #bceffc 0%, #eafcff 42%, #f9f7ed 100%);
  font-family: Nunito, "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.5;
}

.page {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.5rem 0 3rem;
}

.hero {
  position: relative;
  overflow: hidden;
  margin-bottom: 2.2rem;
  padding: clamp(2.5rem, 7vw, 5rem) 1.5rem 2.7rem;
  border-radius: 0 0 44px 44px;
  color: #fff;
  text-align: center;
  background: linear-gradient(135deg, #087ca4 0%, #12b7cd 57%, #6edfd7 100%);
  box-shadow: 0 18px 38px rgba(7, 105, 141, .23);
}

.hero::before,
.hero::after {
  position: absolute;
  content: "";
  width: 16rem;
  height: 16rem;
  border: 2px solid rgba(255, 255, 255, .2);
  border-radius: 50%;
  pointer-events: none;
}

.hero::before {
  top: -10rem;
  left: -4rem;
}

.hero::after {
  right: -5rem;
  bottom: -12rem;
}

.hero-brand {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  margin-bottom: .55rem;
}

.fish-mark {
  display: grid;
  width: 2.3rem;
  height: 2.3rem;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .46);
  border-radius: 50% 50% 46% 46%;
  background: rgba(255, 255, 255, .18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3);
  font-size: 1.15rem;
  transform: rotate(-7deg);
}

.brand {
  margin: 0;
  color: rgba(255, 255, 255, .92);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .2em;
}

.hero h1 {
  position: relative;
  margin: 0;
  font-size: clamp(2.6rem, 7vw, 4.7rem);
  font-weight: 900;
  letter-spacing: .08em;
  line-height: 1.08;
  text-shadow: 0 4px 0 rgba(0, 88, 120, .18);
}

.subtitle {
  position: relative;
  max-width: 31rem;
  margin: 1.1rem auto 0;
  color: rgba(255, 255, 255, .94);
  font-size: 1.02rem;
  font-weight: 700;
}

.games {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
}

.card {
  position: relative;
  display: flex;
  gap: 1rem;
  align-items: center;
  padding: 1.15rem;
  overflow: hidden;
  border: 2px solid rgba(18, 166, 201, .16);
  border-radius: 26px;
  background: rgba(255, 255, 255, .88);
  box-shadow: 0 12px 28px rgba(9, 103, 136, .11);
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.card::after {
  position: absolute;
  right: -24px;
  bottom: -40px;
  width: 104px;
  height: 104px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent, #5ce1e6) 24%, transparent);
  content: "";
}

.card:hover {
  border-color: rgba(18, 166, 201, .55);
  box-shadow: 0 18px 34px rgba(9, 103, 136, .18);
  transform: translateY(-5px) rotate(-.3deg);
}

.card:focus-visible {
  outline: 4px solid #ffbf55;
  outline-offset: 3px;
}

.icon-wrap {
  position: relative;
  z-index: 1;
  width: 88px;
  height: 88px;
  flex: 0 0 88px;
  padding: 4px;
  overflow: hidden;
  border: 3px solid #fff;
  border-radius: 24px 24px 24px 8px;
  background: linear-gradient(145deg, var(--accent, #60a5fa), #087ca4);
  box-shadow: 0 7px 14px rgba(7, 75, 104, .2);
}

.icon-wrap::before {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 1.7rem;
  font-weight: 900;
  content: attr(data-fallback);
}

.icon-wrap img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  border-radius: 17px 17px 17px 4px;
  display: block;
  object-fit: cover;
}

.icon-wrap img.is-hidden {
  display: none;
}

.card-body {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.tag {
  display: inline-block;
  margin-bottom: .35rem;
  color: var(--deep);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.card-body h2 {
  margin: 0;
  font-size: 1.13rem;
  font-weight: 900;
  line-height: 1.2;
}

.card-body p {
  margin: .45rem 0 .85rem;
  color: var(--muted);
  font-size: .91rem;
}

.play-btn {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: .42rem .85rem;
  border-radius: 10px;
  color: #fff;
  background: var(--coral);
  box-shadow: 0 4px 0 #d75e51;
  font-size: .82rem;
  font-weight: 900;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease;
}

.play-btn:hover {
  box-shadow: 0 2px 0 #d75e51;
  transform: translateY(2px);
}

.play-btn:focus-visible {
  outline: 3px solid #ffbf55;
  outline-offset: 3px;
}

.footer {
  margin-top: 3rem;
  padding: 1.8rem 1rem 0;
  border-top: 2px dashed rgba(7, 95, 135, .28);
  color: var(--muted);
  font-size: .92rem;
  text-align: center;
}

.footer p {
  margin: .25rem 0;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: .7rem;
}

.footer a {
  color: var(--deep);
  font-weight: 800;
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

@media (max-width: 680px) {
  .page {
    width: min(100% - 1rem, 1120px);
    padding-top: .5rem;
  }

  .hero {
    border-radius: 0 0 32px 32px;
  }

  .games {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 960px) {
  .card {
    min-height: 220px;
  }
}
