:root {
  --bg-color: #f4f5f4;
  --text-primary: #1c1917;
  --text-secondary: #57534e;
  --border-color: #e7e5e4;
  --white: #ffffff;

  --emerald-50: #ecfdf5;
  --emerald-500: #10b981;
  --emerald-800: #065f46;
  
  --rose-50: #fff1f2;
  --rose-400: #fb7185;
  --rose-800: #9f1239;

  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.08), 0 2px 4px -2px rgb(0 0 0 / 0.04);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.08), 0 4px 6px -4px rgb(0 0 0 / 0.04);
}

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

body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-primary);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

header {
  background-color: var(--white);
  border-bottom: 1px solid var(--border-color);
  height: 72px;
  display: flex;
  align-items: center;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-inner {
  max-width: 1024px;
  margin: 0 auto;
  width: 100%;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.lang-toggle {
  display: flex;
  background-color: var(--bg-color);
  padding: 4px;
  border-radius: 9999px;
  gap: 4px;
}

.lang-toggle button {
  background: transparent;
  border: none;
  padding: 8px 16px;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 0.875rem;
  font-family: inherit;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.lang-toggle button:hover {
  color: var(--text-primary);
}

.lang-toggle button.active {
  background-color: var(--white);
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
}

.container {
  max-width: 1024px;
  margin: 0 auto;
  padding: 48px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.progress-bar {
  width: 100%;
  max-width: 896px;
  display: flex;
  justify-content: space-between;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 28px;
  letter-spacing: 0.01em;
  font-size: 1.1rem;
}

.images-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  width: 100%;
  max-width: 896px;
  margin-bottom: 48px;
}

@media (min-width: 768px) {
  .images-container {
    gap: 32px;
  }
}

.image-box {
  flex: 1 1 280px;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.image-frame {
  aspect-ratio: 1 / 1;
  background-color: var(--white);
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
  transition: transform 0.3s ease;
}

.image-frame:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

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

.image-box p {
  text-align: center;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.options-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  width: 100%;
  max-width: 896px;
  margin-bottom: 32px;
}

@media (min-width: 640px) {
  .options-container {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
}

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

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.fade-in {
  animation: fadeInUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.scale-in {
  animation: scaleIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.btn-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-radius: 20px;
  border: 2px solid var(--border-color);
  background-color: var(--white);
  color: var(--text-primary);
  font-size: 1.15rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
  box-shadow: var(--shadow-sm);
}

.btn-option:hover:not(:disabled) {
  background-color: #fafaf9;
  border-color: #d6d3d1;
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.btn-option:active:not(:disabled) {
  transform: translateY(1px);
  box-shadow: none;
}

.btn-option:disabled {
  cursor: default;
}

.btn-option.correct {
  background-color: var(--emerald-50);
  border-color: var(--emerald-500);
  color: var(--emerald-800);
  transform: scale(1.02);
  box-shadow: 0 8px 16px rgba(16, 185, 129, 0.2);
  z-index: 2;
}

.btn-option.wrong {
  background-color: var(--rose-50);
  border-color: var(--rose-400);
  color: var(--rose-800);
  animation: shake 0.4s ease-in-out;
}

.btn-option.disabled {
  opacity: 0.5;
  border-color: #f5f5f4;
  transform: scale(0.98);
  box-shadow: none;
}

.next-container {
  height: 72px;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.btn-primary {
  padding: 16px 48px;
  background-color: var(--text-primary);
  color: var(--white);
  border: none;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 1.1rem;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-primary:hover {
  background-color: #44403c;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-primary:active {
  transform: translateY(1px);
  box-shadow: var(--shadow-sm);
}

.game-over {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: var(--white);
  padding: 56px 40px;
  border-radius: 32px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
  width: 100%;
  max-width: 576px;
  gap: 24px;
  text-align: center;
}

.game-over h2 {
  font-size: 2.25rem;
  color: var(--text-primary);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.game-over p {
  font-size: 1.25rem;
  color: var(--text-secondary);
  font-weight: 600;
}

.icon {
  display: inline-block;
  background-color: currentColor;
  mask-size: contain;
  mask-position: center;
  mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  -webkit-mask-position: center;
  -webkit-mask-repeat: no-repeat;
}

.icon {
  width: 24px;
  height: 24px;
}

.icon-check {
  -webkit-mask-image: url('assets/icons/check.svg');
  mask-image: url('assets/icons/check.svg');
}

.icon-cross {
  -webkit-mask-image: url('assets/icons/cross.svg');
  mask-image: url('assets/icons/cross.svg');
}

.icon-refresh {
  -webkit-mask-image: url('assets/icons/refresh.svg');
  mask-image: url('assets/icons/refresh.svg');
}

.logo-img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: 8px;
}
