* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { background: #f1f1f1; font-family: Arial, Helvetica, sans-serif; }

.app {
  max-width: 390px;
  min-height: 100vh;
  margin: 0 auto;
  overflow: hidden;
  background: #fdfbe9;
}

.header {
  display: flex;
  height: 56px;
  align-items: center;
  justify-content: center;
  background: #ffe455 url('./imgs/f/header-bg.png') center / cover no-repeat;
}

.header .logo {
  width: 144px;
  height: 44px;
  object-fit: contain;
}

.game-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px 8px;
  padding: 11px 10px 0;
}

.game-item {
  display: flex;
  min-width: 0;
  height: 147px;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  border-radius: 20px;
  background: #fff;
  color: #03081f;
  text-decoration: none;
  transition: transform .16s ease;
}

.game-item:active { transform: scale(.97); }

.game-item .icon {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.game-item .game-name {
  width: 100%;
  padding: 4px 7px 0;
  overflow: hidden;
  color: #03081f;
  font-size: 14px;
  font-weight: 700;
  line-height: 17px;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.about-us {
  position: relative;
  margin: 86px 10px 16px;
  padding: 67px 20px 24px;
  border-radius: 20px;
  background: #fff;
  color: #03081f;
}

.about-heading {
  position: absolute;
  top: -34px;
  left: 10px;
  display: flex;
  align-items: flex-end;
}

.about-title { display: block; width: 188px; height: auto; }
.about-accent { width: 43px; height: 32px; margin: 0 0 20px 116px; object-fit: contain; }

.about-us .title {
  margin: 0 0 8px;
  color: #03081f;
  font-size: 14px;
  font-weight: 800;
  line-height: 17px;
}

.about-us .desc {
  color: #03081f;
  font-size: 14px;
  font-weight: 500;
  line-height: 26px;
}

.footer {
  display: flex;
  height: 51px;
  align-items: center;
  justify-content: center;
  gap: 29px;
  background: #ffe455 url('./imgs/f/footer-bg.png') center / cover no-repeat;
}

.footer .link-item {
  color: #03081f;
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}

@media (max-width: 389px) {
  .game-list { gap: 8px; padding-right: 8px; padding-left: 8px; }
  .game-item { height: auto; min-height: 137px; }
  .about-accent { margin-left: calc(100vw - 274px); }
  .footer { gap: 20px; }
}
