html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  background: #10142b;
  font-family: 'Segoe UI', Arial, sans-serif;
  width: 100vw;
  overflow-x: hidden;
  max-width: 360px;
  min-width: 360px;
  min-height: 640px;
  max-height: 720px;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}
body {
  margin: 0 auto;
  position: relative;
  box-sizing: border-box;
  overflow-y: auto;
  background: linear-gradient(135deg, #0f2027, #2c5364 80%);
}
header {
  display: flex;
  align-items: center;
  padding: 12px 16px 0 16px;
  background: transparent;
  position: relative;
}
.logo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid #fff;
  margin-right: 12px;
  background: #fff;
  object-fit: cover;
}
.team-title {
  font-size: 1.4rem;
  font-weight: bold;
  color: #fff;
  letter-spacing: 1px;
  text-shadow: 0 2px 8px #0005;
}
.page {
  display: none;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  width: 100vw;
  max-width: 360px;
  box-sizing: border-box;
  padding-bottom: 40px;
  position: absolute;
  top: 0; left: 0;
  background: transparent;
  z-index: 1;
}
.page.active {
  display: flex;
  z-index: 2;
  animation: fadeIn 0.7s;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
/* Welcome Page */
#welcome {
  justify-content: center;
  align-items: center;
  background: transparent;
  position: relative;
  overflow: hidden;
}
#welcome #bubbles {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
}
.welcome-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 40px 16px 0 16px;
}
.animated-text {
  color: #fff;
  font-size: 1.2rem;
  font-weight: bold;
  margin: 12px 0;
  animation: textPop 1.2s;
}
@keyframes textPop {
  0% { opacity: 0; transform: scale(0.8);}
  100% { opacity: 1; transform: scale(1);}
}
.animated-switch {
  margin-top: 32px;
  padding: 16px 48px;
  font-size: 1.1rem;
  font-weight: bold;
  border-radius: 32px;
  background: linear-gradient(90deg, #f7971e, #ffd200, #21d4fd, #b721ff);
  color: #222;
  border: none;
  cursor: pointer;
  box-shadow: 0 6px 32px #0004;
  transition: transform 0.2s;
  animation: switchBounce 1.5s infinite alternate;
}
@keyframes switchBounce {
  0% { transform: scale(1);}
  100% { transform: scale(1.05);}
}
/* Info Cards instead of slider */
.info-row {
  width: 92%;
  display: flex;
  gap: 10px;
  margin: 22px auto 12px auto;
  justify-content: center;
  flex-wrap: wrap;
}
.info-card {
  flex: 1 1 100px;
  min-width: 100px;
  background: #fff1;
  border-radius: 14px;
  color: #fff;
  padding: 12px 8px;
  box-shadow: 0 2px 12px #0002;
  text-align: center;
  margin: 0 2px;
}
.info-card h3 { margin: 0 0 8px 0; font-size: 1rem; color: #ffd200; }
.info-card p { margin: 0; font-size: 0.92rem; }
.featured-img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  margin: 0 auto 6px auto;
  border: 2px solid #ffd200;
  object-fit: cover;
}
.featured-name {
  font-weight: bold;
  color: #fff;
  font-size: 1rem;
}
.featured-role {
  color: #ffd200;
  font-size: 0.92rem;
}
/* About */
.about {
  width: 90%;
  margin: 18px auto;
  background: #fff1;
  border-radius: 14px;
  color: #fff;
  padding: 14px 16px;
  box-shadow: 0 2px 12px #0002;
  text-align: center;
}
.about h2 {
  margin: 0 0 8px 0;
  font-size: 1.15rem;
  color: #ffd200;
  letter-spacing: 1px;
}
.about p {
  font-size: 0.98rem;
  margin: 0;
}
/* Switches */
.switches {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin: 20px 0 12px 0;
}
.switch {
  padding: 10px 22px;
  border-radius: 24px;
  border: none;
  font-size: 1rem;
  font-weight: 600;
  background: linear-gradient(90deg, #ffd200 0%, #21d4fd 100%);
  color: #222;
  cursor: pointer;
  box-shadow: 0 2px 10px #0002;
  transition: background 0.2s, transform 0.2s;
}
.switch:hover, .switch:focus {
  background: linear-gradient(90deg, #21d4fd 0%, #ffd200 100%);
  transform: scale(1.05);
}
/* Team Goal */
.goal {
  margin: 16px 0;
  padding: 12px 18px;
  background: #fff1;
  border-radius: 14px;
  color: #fff;
  width: 90%;
  text-align: center;
  box-shadow: 0 2px 12px #0002;
}
.goal h2 {
  color: #21d4fd;
  margin-bottom: 6px;
  font-size: 1.1rem;
}
/* Social Media */
.social-media {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin: 18px 0 0 0;
}
.social {
  background: linear-gradient(90deg, #b721ff 0%, #21d4fd 100%);
  color: #fff;
  border: none;
  border-radius: 22px;
  padding: 8px 18px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 10px #0002;
  transition: background 0.2s, transform 0.2s;
}
.social:hover {
  background: linear-gradient(90deg, #21d4fd 0%, #b721ff 100%);
  transform: scale(1.05);
}
/* Contact */
.contact {
  margin: 18px 0 0 0;
  text-align: center;
}
.contact-btn {
  background: #ffd200;
  color: #222;
  border: none;
  border-radius: 22px;
  padding: 8px 28px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 4px;
  box-shadow: 0 2px 10px #0002;
  transition: background 0.2s, transform 0.2s;
}
.contact-btn:hover {
  background: #21d4fd;
  color: #fff;
  transform: scale(1.05);
}
.email {
  color: #fff;
  font-size: 0.95rem;
  margin-top: 4px;
  opacity: 0.8;
}
.phone {
  display: block;
  margin-top: 6px;
  color: #ffd200;
  font-size: 1.08rem;
  text-decoration: none;
  font-weight: bold;
  letter-spacing: 1px;
  transition: color 0.2s;
}
.phone:hover {
  color: #21d4fd;
}
/* Players Grid, Sponsors, Management, etc. */
.players, .sponsors-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  width: 90%;
  margin: 24px 0 0 0;
}
.player, .sponsor-card {
  background: #fff2;
  border-radius: 14px;
  padding: 10px 0 8px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 2px 8px #0002;
  transition: transform 0.2s;
}
.player:hover, .sponsor-card:hover {
  transform: scale(1.04);
  background: #ffd20033;
}
.player img, .sponsor-card img, .owner-photo, .manager-card img {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #ffd200;
  margin-bottom: 8px;
}
.player-info span:first-child, .sponsor-card span, .manager-card span {
  font-weight: bold;
  color: #fff;
  font-size: 1rem;
}
.player-info span:last-child, .sponsor-card small {
  font-size: 0.9rem;
  color: #ffd200;
}
.owner-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 28px 0 0 0;
  color: #fff;
  text-align: center;
}
.owner-photo {
  width: 90px;
  height: 90px;
  border: 3px solid #ffd200;
  margin-bottom: 14px;
  box-shadow: 0 2px 16px #0004;
}
.management-list {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin: 30px 0 0 0;
}
.manager-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #fff2;
  border-radius: 14px;
  padding: 10px 12px 8px 12px;
  box-shadow: 0 2px 8px #0002;
}
.victory {
  color: #21d4fd;
  font-size: 1.1rem;
  margin: 18px 0 0 0;
  text-align: center;
  font-weight: bold;
  letter-spacing: 1px;
}
/* Back Button */
.back-btn {
  margin: 24px auto 0 auto;
  display: block;
  background: #ffd200;
  color: #222;
  border: none;
  border-radius: 22px;
  padding: 10px 32px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 10px #0002;
  transition: background 0.2s, transform 0.2s;
}
.back-btn:hover {
  background: #21d4fd;
  color: #fff;
  transform: scale(1.05);
}
/* Responsive (for 9:16 only) */
@media (max-width: 400px) {
  html, body {
    max-width: 100vw;
    min-width: 100vw;
  }
  .page {
    max-width: 100vw;
    min-width: 100vw;
  }
}
