*,
::before,
::after {
  box-sizing: border-box;
}

a {
  text-decoration: none;
  color: #000;
}

button {
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
}

body {
  font-family: sans-serif;
  background-color: #87C1EC;
  margin: 0;
}

footer {
  padding: 14px;
  font-size: 14px;
  text-align: center;
  background: #B7D9F3;
  border-radius: 16px 16px 0 0;
  font-weight: bold;
  margin-top: 40px;
}

#main-root {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.main-content {
  flex-grow: 1;
  width: 100%;
}

/* ── Home header ── */
.home-header {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 24px 16px;
  width: 80%;
  min-width: 300px;
  max-width: 1000px;
  margin: 0 auto;
  background: #fff;
  border-radius: 0 0 20px 20px;
  margin-bottom: 32px;
}

.home-logo img {
  width: 200px;
}

/* ── Game grid ── */
.gbox {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 16px;
}

.gbit {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 280px;
  border-radius: 20px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .15);
  overflow: hidden;
  background: #fff;
  transition: transform .15s ease, box-shadow .15s ease;
}

.gbit:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .2);
}

.gbit-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.gbit-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gname {
  font-size: 15px;
  font-weight: bold;
  padding: 12px 8px;
  text-align: center;
}

/* ── Game player ── */
.playbox {
  display: flex;
  flex-direction: column;
  height: 100vh;
}

.playbox-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px;
  background: #fff;
}

.playbox-logo img {
  width: 110px;
}

.playbox-name {
  font-weight: bold;
  font-size: 18px;
}

.playbox-body {
  flex-grow: 1;
  position: relative;
}

.playbox-view {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.fullsbtn svg {
  fill: #444;
}

/* ── More games section ── */
.more-games {
  padding: 24px 16px 0;
}

.more-games h3 {
  text-align: center;
  margin-bottom: 16px;
}

/* ── Card (privacy / terms) ── */
.card {
  max-width: 720px;
  margin: 40px auto;
  background: #fff;
  border-radius: 16px;
  padding: 32px;
}

.mini-logo img {
  width: 80px;
  margin-bottom: 16px;
}

.nav {
  display: flex;
  gap: 12px;
  align-items: center;
}