.home {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.home-card {
  width: 100%;
  max-width: 760px;
  background: var(--color-surface);
  border: 1px solid var(--color-surface-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft), var(--shadow-gold);
  padding: 36px 28px 30px;
  text-align: center;
  backdrop-filter: blur(6px);
}

.home-logo {
  width: 100%;
  max-width: 720px;
  margin: 0 auto 14px;
}

.home-title {
  font-size: 2.1rem;
  margin-bottom: 10px;
  letter-spacing: 0.04em;
}

.home-subtitle {
  max-width: 640px;
  margin: 0 auto 24px;
  color: var(--color-text-soft);
  font-size: 1.05rem;
  line-height: 1.45;
}

.game-modes {
  display: flex;
  gap: 16px;
  margin-top: 0;
  margin-bottom: 22px;
}

.mode-button {
  flex: 1;
}

@media (max-width: 640px) {
  .home {
    padding: 16px;
    align-items: center;
  }

  .home-card {
    padding: 30px 18px 22px;
  }

  .home-logo {
    width: 100%;
    max-width: 980px;
    margin: 0 auto 24px;
  }

  .home-subtitle {
    max-width: 100%;
    font-size: 0.95rem;
    line-height: 1.45;
    margin: 0 auto 22px;
  }

  .game-modes {
    gap: 14px;
    margin-bottom: 16px;
  }

  .mode-button {
    min-height: 90px;
    padding: 14px 12px;
    font-size: 0.95rem;
    line-height: 1.2;
  }

  .rankings-button {
    width: 100%;
    margin: 0 auto 20px;
    padding: 13px 18px;
    font-size: 0.95rem;
  }

  .home-info {
    font-size: 0.9rem;
    margin-bottom: 10px;
  }

  .legal {
    font-size: 0.72rem;
    line-height: 1.35;
  }
}

.mode-button {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 72px;
  padding: 16px 20px;
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: #111;
  background: linear-gradient(180deg, var(--color-gold-light) 0%, var(--color-gold) 100%);
  font-size: 1.1rem;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.mode-button:hover {
  transform: translateY(-2px);
  filter: brightness(1.03);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.3);
}

.mode-button-secondary {
  background: linear-gradient(180deg, #f1f1f1 0%, #cbcbcb 100%);
}

.home-info {
  margin-top: 0;
  margin-bottom: 14px;
  color: var(--color-text-soft);
  font-size: 0.95rem;
}

@media (max-width: 640px) {
  .home-card {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    padding: 28px 18px;
  }
  .home-card:hover{
  transform: translateY(-3px);
}

  .home-title {
    font-size: 1.7rem;
  }

  .home-subtitle {
    font-size: 0.95rem;
  }

  .mode-button {
    min-height: 64px;
    font-size: 1rem;
  }

  .home-logo {
    max-width: 320px;
  }
}

.legal {
  margin-top: 0;
  font-size: 0.75rem;
  color: #8a8a9a;
  line-height: 1.4;
}

.mode-button{
  cursor: pointer;
}

@keyframes fadeIn{
  from{
    opacity:0;
    transform:translateY(10px);
  }
  to{
    opacity:1;
    transform:translateY(0);
  }
}

.home-logo{
  animation: logoGlow 4s ease-in-out infinite alternate;
}

@keyframes logoGlow{
  from{
    filter: drop-shadow(0 0 0px rgba(200,164,74,0.0));
  }

  to{
    filter: drop-shadow(0 0 14px rgba(200,164,74,0.25));
  }
}

.mode-button{
  transition: all 0.2s ease;
}

.mode-button:hover{
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.35);
}

.mode-button:active{
  transform: translateY(-1px);
}

.rankings-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 22px;
  padding: 14px 22px;
  min-height: 54px;

  border-radius: 999px;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text);

  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(6px);

  transition: all 0.2s ease;
}

.rankings-button:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 215, 0, 0.35);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
}

.rankings-button:active {
  transform: translateY(-1px);
}