/* Exact Supercell Store Styles matching Image 2 */
@import "https://fonts.googleapis.com/css2?family=Lilita+One&display=swap";

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: #ffffff;
  color: #000000;
  font-family: 'Lilita One', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

.game-selection {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background-color: #ffffff;
}

/* Header */
.selection-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.5rem;
  background-color: #ffffff;
  border-bottom: 1px solid #f1f5f9;
}

@media (min-width: 640px) {
  .selection-header {
    padding: 1rem 2.5rem;
  }
}

.header-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.selection-brand {
  height: 34px;
  width: auto;
  object-fit: contain;
  display: block;
}

@media (min-width: 640px) {
  .selection-brand {
    height: 38px;
  }
}

.selection-store {
  background-color: #ffcc00;
  color: #000000;
  font-family: 'Lilita One', sans-serif;
  font-size: 0.85rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  padding: 0.3rem 0.9rem;
  border-radius: 9999px;
  display: inline-block;
  line-height: 1.1;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.header-login {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background-color: #000000;
  color: #ffffff;
  padding: 0.45rem 1rem;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 800;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease;
}

.header-login:hover {
  background-color: #1f2937;
  transform: translateY(-1px);
}

.header-login-id {
  background-color: #2563eb;
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 900;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  line-height: 1;
}

/* Main Content Area */
.selection-main-content {
  flex: 1;
  background-color: #ffffff;
  padding: 2rem 1rem 3rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

@media (min-width: 640px) {
  .selection-main-content {
    padding: 3rem 1.5rem 4rem 1.5rem;
  }
}

/* Games Section */
.selection-games {
  width: 100%;
  max-width: 540px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.game-card {
  display: block;
  width: 100%;
  border-radius: 1.5rem;
  overflow: hidden;
  text-decoration: none;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.09);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  background-color: #ffffff;
}

.game-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 42px rgba(0, 0, 0, 0.14);
}

.game-card img {
  width: 100%;
  height: auto;
  display: block;
}

/* Download Section matching Image 2 */
.game-download-section {
  width: 100%;
  max-width: 440px;
  margin: 3rem auto 1rem auto;
  text-align: center;
}

.download-banner-container {
  position: relative;
  width: 100%;
  display: inline-block;
}

.download-banner-container img {
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

.overlay-appstore {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 48%;
  height: 28%;
  cursor: pointer;
}

.overlay-googleplay {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 48%;
  height: 28%;
  cursor: pointer;
}

/* Footer Section - Pure Black matching Image 2 */
.selection-footer {
  background-color: #000000;
  color: #94a3b8;
  padding: 3rem 1.5rem 4rem 1.5rem;
  border-top: 1px solid #18181b;
}

.selection-footer-inner {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.footer-locale {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-language {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: transparent;
  padding: 0.45rem 1rem;
  border-radius: 9999px;
  border: 1px solid #3f3f46;
  color: #ffffff;
  font-size: 0.85rem;
}

.footer-language svg {
  width: 16px;
  height: 16px;
  stroke: #ffffff;
  stroke-width: 2;
  fill: none;
}

.footer-language select {
  background: transparent;
  color: #ffffff;
  border: none;
  outline: none;
  font-family: inherit;
  font-size: 0.85rem;
  cursor: pointer;
  padding-right: 0.25rem;
}

.footer-language select option {
  background-color: #18181b;
  color: #ffffff;
}

.footer-country {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 700;
}

.footer-country svg {
  width: 16px;
  height: 16px;
  stroke: #71717a;
  stroke-width: 2;
  fill: none;
}

.footer-divider {
  border: none;
  border-top: 1px solid #27272a;
  margin: 0.25rem 0;
}

.footer-block h2 {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #71717a;
  margin-bottom: 0.85rem;
}

.footer-socials {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.footer-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  transition: opacity 0.2s;
}

.footer-socials a:hover {
  opacity: 0.75;
}

.footer-socials a svg {
  width: 24px;
  height: 24px;
  fill: #ffffff;
}

.footer-downloads {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
}

.footer-badge-appstore {
  height: 38px;
  width: auto;
  display: block;
}

.footer-badge-googleplay {
  height: 38px;
  width: auto;
  display: block;
}

.footer-policies {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  font-size: 0.85rem;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-weight: 500;
}

@media (min-width: 640px) {
  .footer-policies {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1.5rem;
  }
}

.footer-policies a {
  color: #ffffff;
  text-decoration: underline;
  transition: color 0.2s;
}

.footer-policies a:hover {
  color: #d4d4d8;
}

.footer-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding-top: 1rem;
}

.footer-bottom address {
  font-style: normal;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 0.72rem;
  line-height: 1.6;
  color: #71717a;
}

.footer-brand {
  height: 38px;
  width: auto;
  filter: invert(1) brightness(2);
  opacity: 0.9;
  display: block;
}
