:root {
  color: #26355d;
  font-family: "Arial Rounded MT Bold", "Microsoft YaHei", system-ui, sans-serif;
  background: #edf5ff;
}

* {
  box-sizing: border-box;
}

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

body {
  background:
    radial-gradient(circle at 12% 12%, rgba(255, 255, 255, 0.95) 0 5%, transparent 5.5%),
    radial-gradient(circle at 88% 85%, rgba(255, 255, 255, 0.72) 0 7%, transparent 7.5%),
    linear-gradient(155deg, #dff8ff 0%, #eef3ff 52%, #fff3de 100%);
}

.game-hub {
  width: min(920px, 100%);
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  padding: max(40px, env(safe-area-inset-top)) max(20px, env(safe-area-inset-right)) max(40px, env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left));
}

.hub-header {
  text-align: center;
}

.hub-mark {
  display: inline-grid;
  width: 64px;
  height: 64px;
  place-items: center;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 30px rgba(63, 91, 171, 0.15);
  font-size: 34px;
}

.eyebrow {
  margin: 18px 0 6px;
  color: #6274a7;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.hub-header h1 {
  margin: 0;
  color: #425dcc;
  font-size: clamp(38px, 7vw, 64px);
  text-shadow: 0 4px 0 #fff;
}

.hub-intro {
  max-width: 600px;
  margin: 12px auto 0;
  color: #7180a4;
  font-size: clamp(16px, 2.5vw, 20px);
  line-height: 1.7;
}

.game-list {
  margin-top: 38px;
}

.game-list > h2 {
  margin: 0 0 16px;
  font-size: 22px;
}

.game-card {
  display: grid;
  min-height: 210px;
  padding: 26px;
  align-items: center;
  grid-template-columns: 180px 1fr;
  gap: 28px;
  border: 3px solid rgba(255, 255, 255, 0.9);
  border-radius: 30px;
  color: inherit;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 18px 44px rgba(52, 75, 143, 0.16);
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

a.game-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 50px rgba(52, 75, 143, 0.22);
}

a.game-card:focus-visible {
  outline: 4px solid rgba(255, 181, 55, 0.85);
  outline-offset: 4px;
}

.game-card + .game-card {
  margin-top: 18px;
}

.game-card-copy h3 {
  margin: 8px 0;
  color: #344a9f;
  font-size: 30px;
}

.game-card-copy p {
  margin: 0 0 18px;
  color: #7180a4;
  font-size: 17px;
  line-height: 1.65;
}

.game-card-copy strong {
  color: #4f6be0;
  font-size: 18px;
}

.status-badge {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  color: #fff;
  background: #5b7cfa;
  font-size: 13px;
  font-weight: 800;
}

.bottle-icon {
  position: relative;
  width: 92px;
  height: 142px;
  margin: 14px auto 0;
  border: 8px solid #5871ad;
  border-radius: 24px 24px 34px 34px;
  background: linear-gradient(to top, #48a9ff 0 48%, rgba(255, 255, 255, 0.72) 49%);
  box-shadow: inset 12px 0 rgba(255, 255, 255, 0.3), 0 12px 20px rgba(49, 69, 127, 0.18);
}

.bottle-icon::before {
  position: absolute;
  top: -31px;
  left: 19px;
  box-sizing: border-box;
  width: 38px;
  height: 28px;
  border: 8px solid #5871ad;
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  content: "";
}

.bottle-icon span {
  position: absolute;
  right: 18px;
  bottom: 25px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.7);
}

.coming-soon {
  min-height: 170px;
  opacity: 0.7;
  box-shadow: none;
}

.coming-soon .status-badge {
  background: #97a2bf;
}

.number-icon {
  display: grid;
  width: 126px;
  height: 106px;
  margin: auto;
  place-items: center;
  border-radius: 28px;
  color: #fff;
  background: linear-gradient(145deg, #ffbd4b, #ff7f5c);
  box-shadow: 0 12px 24px rgba(203, 99, 56, 0.2);
  font-size: 34px;
  font-weight: 900;
}

.sudoku-icon {
  display: grid;
  width: 132px;
  height: 132px;
  margin: auto;
  overflow: hidden;
  grid-template-columns: repeat(2, 1fr);
  border: 6px solid #7668e8;
  border-radius: 24px;
  background: #7668e8;
  gap: 3px;
  box-shadow: 0 12px 24px rgba(77, 63, 175, 0.2);
}

.sudoku-icon span {
  display: grid;
  place-items: center;
  background: #fff;
  font-size: 34px;
}

@media (max-width: 620px) {
  .game-hub {
    padding-top: 28px;
  }

  .game-list {
    margin-top: 28px;
  }

  .game-card {
    min-height: 0;
    padding: 22px 18px;
    grid-template-columns: 96px 1fr;
    gap: 16px;
    border-radius: 24px;
  }

  .bottle-icon {
    width: 58px;
    height: 94px;
    border-width: 6px;
    border-radius: 16px 16px 23px 23px;
  }

  .bottle-icon::before {
    top: -23px;
    left: 11px;
    width: 24px;
    height: 20px;
    border-width: 6px;
  }

  .bottle-icon span {
    right: 10px;
    bottom: 16px;
    width: 12px;
    height: 12px;
  }

  .number-icon {
    width: 82px;
    height: 72px;
    border-radius: 20px;
    font-size: 25px;
  }

  .sudoku-icon {
    width: 82px;
    height: 82px;
    border-width: 4px;
    border-radius: 18px;
    gap: 2px;
  }

  .sudoku-icon span {
    font-size: 22px;
  }

  .game-card-copy h3 {
    font-size: 23px;
  }

  .game-card-copy p {
    font-size: 15px;
  }
}

@media (max-width: 380px) {
  .game-card {
    grid-template-columns: 76px 1fr;
    gap: 12px;
  }

  .game-card-copy h3 {
    font-size: 21px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
