@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&display=swap');

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

:root {
  --color-primary: #664FFF;
  --color-primary-light: #8B7AFF;
  --color-primary-dark: #4A35E0;
  --color-accent: #C8FF00;
  --color-accent-dark: #A8D600;
  --color-bg: #FFFFFF;
  --color-card: #FFFFFF;
  --color-text: #1A1A2E;
  --color-text-secondary: #6B6B80;
  --color-border: #E8E5F0;
  --font-body: 'DM Sans', sans-serif;
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 32px;
}

html, body {
  height: 100%;
  overflow: hidden;
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

/* === Main container === */
.gate-container {
  width: 100%;
  max-width: 420px;
  text-align: center;
  animation: fade-in 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* === Logo === */
.gate-logo {
  width: 120px;
  height: auto;
  margin-bottom: 40px;
}

/* === Question === */
.gate-question {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--color-text);
  margin-bottom: 40px;
}

/* === Buttons === */
.gate-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 56px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  border: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  width: 100%;
}

.btn-primary svg {
  flex-shrink: 0;
  margin-right: 8px;
}

.btn-primary {
  background: var(--color-primary);
  color: #FFFFFF;
  box-shadow: 0 4px 16px rgba(102, 79, 255, 0.25);
}

.btn-primary:hover {
  background: var(--color-primary-dark);
  box-shadow: 0 6px 24px rgba(102, 79, 255, 0.35);
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(102, 79, 255, 0.25);
}

.btn-outline {
  background: transparent;
  color: var(--color-text-secondary);
  border: 1.5px solid var(--color-border);
}

.btn-outline:hover {
  border-color: var(--color-primary-light);
  color: var(--color-primary);
}

.btn-outline:active {
  background: #F7F5FF;
}

/* === Unavailable state === */
.gate-unavailable {
  animation: fade-in 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.gate-message {
  font-size: 16px;
  font-weight: 400;
  color: var(--color-text-secondary);
  line-height: 1.5;
  margin-bottom: 24px;
}

.gate-goback {
  font-size: 15px;
  font-weight: 500;
  color: var(--color-primary);
  text-decoration: none;
  transition: opacity 0.2s;
}

.gate-goback:hover {
  opacity: 0.7;
}

/* === Responsive === */
@media (max-width: 540px) {
  .gate-logo {
    width: 100px;
    margin-bottom: 32px;
  }

  .gate-question {
    font-size: 24px;
    margin-bottom: 32px;
  }

  .btn {
    height: 52px;
    font-size: 15px;
  }
}

@media (max-width: 360px) {
  body {
    padding: 16px;
  }

  .gate-logo {
    width: 90px;
  }

  .gate-question {
    font-size: 22px;
  }
}
