/* Samsung Internet guard — premium NeoLoto */

html.neo-samsung-guard-active,
html.neo-samsung-guard-active body {
  overflow: hidden !important;
  height: 100%;
  touch-action: none;
}

.neo-samsung-guard {
  position: fixed;
  inset: 0;
  z-index: 2147483646;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  padding-top: calc(1.25rem + env(safe-area-inset-top, 0px));
  padding-bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px));
  pointer-events: auto;
  animation: neo-samsung-guard-fade-in 0.45s ease-out both;
}

.neo-samsung-guard.is-closing {
  animation: neo-samsung-guard-fade-out 0.35s ease-in both;
}

.neo-samsung-guard__backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 120% 80% at 50% 0%, rgba(46, 168, 255, 0.18), transparent 55%),
    radial-gradient(ellipse 90% 60% at 50% 100%, rgba(221, 185, 106, 0.12), transparent 50%),
    rgba(2, 8, 24, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.neo-samsung-guard__panel {
  position: relative;
  width: min(100%, 420px);
  padding: 1.65rem 1.35rem 1.45rem;
  border-radius: 1.35rem;
  border: 1px solid rgba(221, 185, 106, 0.38);
  background:
    linear-gradient(165deg, rgba(12, 24, 52, 0.98) 0%, rgba(6, 12, 28, 0.99) 100%);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(142, 190, 232, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  color: rgba(236, 242, 252, 0.95);
  text-align: center;
  animation: neo-samsung-guard-panel-in 0.55s cubic-bezier(0.16, 1, 0.3, 1) 0.05s both;
}

.neo-samsung-guard__brand {
  margin: 0 0 1rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #ddb96a;
  text-shadow: 0 0 18px rgba(221, 185, 106, 0.25);
}

.neo-samsung-guard__message {
  margin: 0 0 1.35rem;
  font-size: 0.98rem;
  line-height: 1.62;
  color: rgba(236, 242, 252, 0.92);
  white-space: pre-line;
}

.neo-samsung-guard__notice {
  margin: 0 0 1.1rem;
  font-size: 0.92rem;
  line-height: 1.55;
  color: rgba(236, 242, 252, 0.78);
}

.neo-samsung-guard__actions {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.neo-samsung-guard__btn {
  appearance: none;
  width: 100%;
  min-height: 48px;
  padding: 0.8rem 1rem;
  border: 1px solid rgba(142, 190, 232, 0.22);
  border-radius: 0.95rem;
  background: rgba(8, 18, 42, 0.72);
  color: #ffffff;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.25;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}

.neo-samsung-guard__btn:hover,
.neo-samsung-guard__btn:focus-visible {
  outline: none;
  border-color: rgba(221, 185, 106, 0.55);
  box-shadow: 0 0 0 3px rgba(221, 185, 106, 0.12);
}

.neo-samsung-guard__btn:active {
  transform: scale(0.985);
}

.neo-samsung-guard__btn--primary {
  border-color: rgba(221, 185, 106, 0.5);
  background: linear-gradient(135deg, rgba(221, 185, 106, 0.22), rgba(142, 190, 232, 0.14));
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}

.neo-samsung-guard__btn--install {
  font-size: 0.9rem;
}

.neo-samsung-guard__icon {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  border-radius: 6px;
  object-fit: contain;
}

.neo-samsung-guard__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex: 0 0 10px;
}

.neo-samsung-guard__dot--chrome { background: #34a853; }
.neo-samsung-guard__dot--edge { background: #0078d4; }
.neo-samsung-guard__dot--firefox { background: #ff7139; }

@keyframes neo-samsung-guard-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes neo-samsung-guard-fade-out {
  from { opacity: 1; }
  to { opacity: 0; }
}

@keyframes neo-samsung-guard-panel-in {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .neo-samsung-guard,
  .neo-samsung-guard__panel,
  .neo-samsung-guard.is-closing {
    animation: none !important;
  }
}
