:root {
  --blue: #2196F3;
  --green: #4CAF50;
  --orange: #FF5722;
  --yellow: #FFC107;
  --dark: #0f172a;
  --muted: #64748b;
  --bg: #f8fafc;
  --card: #ffffff;
  --radius: 16px;
  --shadow: 0 10px 40px rgba(15, 23, 42, 0.08);
  --font: 'Nunito', system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--dark);
  line-height: 1.6;
  min-height: 100vh;
}
body.rtl { direction: rtl; }
body.rtl .header-inner { flex-direction: row-reverse; }
body.rtl .main-nav { flex-direction: row-reverse; }
body.rtl .logo { margin-inline-start: 0; margin-inline-end: auto; }

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { width: min(1200px, 92%); margin: 0 auto; }

.site-header {
  background: #fff;
  box-shadow: 0 2px 20px rgba(0,0,0,.06);
  position: sticky;
  top: 0;
  z-index: 100;
  overflow: visible;
  width: 100%;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: none;
  margin: 0;
  gap: 1rem;
  padding: .85rem clamp(1rem, 3vw, 2.5rem);
  overflow: visible;
}
.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.logo img {
  height: 88px;
  width: auto;
  max-width: min(360px, 52vw);
  object-fit: contain;
}
.main-nav {
  flex: 1 1 auto;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  overflow: visible;
  margin-inline-start: auto;
}
.main-nav--desktop { flex: 0 0 auto; max-width: none; }
.main-nav a { font-weight: 600; color: var(--dark); text-decoration: none; }
.main-nav a:hover { color: var(--blue); }
.main-nav a.nav-active { color: var(--blue); }

.main-nav--desktop .nav-text-link {
  padding: 0.35rem 0.15rem;
  white-space: nowrap;
}
.main-nav--desktop .nav-icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
  border: 1px solid #e2e8f0;
  flex-shrink: 0;
  text-decoration: none !important;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}
.main-nav--desktop .nav-icon-link:hover {
  transform: translateY(-1px);
  border-color: #bfdbfe;
  background: #eff6ff;
  box-shadow: 0 6px 16px rgba(33, 150, 243, 0.12);
}
.main-nav--desktop .nav-text-link.nav-active {
  color: var(--blue);
}
.nav-icon {
  width: 20px;
  height: 20px;
  display: block;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}
.nav-icon-home {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%232196F3'%3E%3Cpath d='M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8h5z'/%3E%3C/svg%3E");
}
.nav-icon-dashboard {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%234CAF50'%3E%3Cpath d='M3 13h8V3H3v10zm0 8h8v-6H3v6zm10 0h8V11h-8v10zm0-18v6h8V3h-8z'/%3E%3C/svg%3E");
}
.nav-icon-admin {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%237c3aed'%3E%3Cpath d='M12 1 3 5v6c0 5.55 3.84 10.74 9 12 5.16-1.26 9-6.45 9-12V5l-9-4zm-1 14-3-3 1.41-1.41L11 12.17l4.59-4.58L17 9l-6 6z'/%3E%3C/svg%3E");
}
.nav-icon-logout {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ef4444'%3E%3Cpath d='M17 7l-1.41 1.41L18.17 11H8v2h10.17l-2.58 2.58L17 17l5-5-5-5zM4 5h8V3H4a2 2 0 00-2 2v14a2 2 0 002 2h8v-2H4V5z'/%3E%3C/svg%3E");
}
.nav-icon-login {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%232196F3'%3E%3Cpath d='M11 7 9.59 8.41 12.17 11H2v2h10.17l-2.58 2.59L11 17l5-5-5-5zm9 12h-8v2h8a2 2 0 002-2V5a2 2 0 00-2-2h-8v2h8v14z'/%3E%3C/svg%3E");
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .65rem 1.25rem;
  border-radius: 999px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  text-decoration: none !important;
  transition: transform .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-primary { background: linear-gradient(135deg, var(--blue), #1976D2); color: #fff; }
.btn-green { background: linear-gradient(135deg, var(--green), #388E3C); color: #fff; }
.btn-orange { background: linear-gradient(135deg, var(--orange), #E64A19); color: #fff; }

.hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #0d47a1 100%);
  color: #fff;
  padding: 4rem 0 5rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 80%, rgba(76,175,80,.2), transparent 50%),
              radial-gradient(circle at 80% 20%, rgba(33,150,243,.25), transparent 50%);
}
.hero .container { position: relative; z-index: 1; }
.hero h1 {
  font-size: clamp(1.75rem, 5vw, 3rem);
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.2;
}
.hero p { font-size: 1.15rem; opacity: .9; max-width: 640px; margin-bottom: 2rem; }
.search-box {
  display: flex;
  max-width: 640px;
  background: #fff;
  border-radius: 999px;
  padding: .35rem;
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
}
.search-box input {
  flex: 1;
  border: none;
  padding: 1rem 1.25rem;
  font-size: 1rem;
  border-radius: 999px;
  outline: none;
  font-family: inherit;
}
.search-box button { border-radius: 999px; padding: 1rem 1.5rem; }

.section { padding: 3.5rem 0; }
.section-title {
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.section-title::before {
  content: '';
  width: 6px;
  height: 28px;
  background: linear-gradient(var(--blue), var(--green));
  border-radius: 4px;
}

.age-pills, .category-grid { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 2rem; }
.age-pill {
  background: #fff;
  border: 2px solid #e2e8f0;
  padding: .75rem 1.25rem;
  border-radius: var(--radius);
  font-weight: 700;
  color: var(--dark);
  transition: all .2s;
}
.age-pill:hover { border-color: var(--blue); background: #e3f2fd; text-decoration: none; }
.age-pill small { display: block; font-weight: 500; color: var(--muted); font-size: .8rem; }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.25rem; }
.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform .2s;
  border: 1px solid #e2e8f0;
}
.card:hover { transform: translateY(-4px); }
.card-body { padding: 1.25rem; }
.card h3 { font-size: 1.1rem; margin-bottom: .5rem; }
.card .score {
  display: inline-block;
  background: #e8f5e9;
  color: var(--green);
  font-weight: 700;
  padding: .2rem .6rem;
  border-radius: 8px;
  font-size: .85rem;
}
.badge-cert {
  background: linear-gradient(135deg, #FFD700, #FFA000);
  color: #333;
  font-size: .7rem;
  padding: .2rem .5rem;
  border-radius: 6px;
  font-weight: 800;
  text-transform: uppercase;
}

.cta-block {
  background: linear-gradient(135deg, var(--green), var(--blue));
  color: #fff;
  border-radius: var(--radius);
  padding: 2.5rem;
  text-align: center;
  margin: 2rem 0;
}
.mission-block {
  background: #fff;
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  border-left: 6px solid var(--orange);
}

.site-footer {
  background: var(--dark);
  color: #94a3b8;
  padding: 2.5rem 0;
  margin-top: 3rem;
}
.site-footer a { color: #e2e8f0; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer--rich { margin-top: 0; padding-top: 2rem; }
.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #334155;
  margin-bottom: 1.5rem;
}
.footer-grid h4 {
  color: #fff;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}
.footer-grid a {
  display: block;
  font-size: 0.85rem;
  padding: 0.25rem 0;
  color: #cbd5e1;
}
.footer-bottom { text-align: center; }
body.home-page .site-footer { margin-top: 0; }
.nav-submit-plus { white-space: nowrap; font-size: 0.88rem !important; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  flex-shrink: 0;
  margin-inline-start: auto;
}
.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  margin: 0 auto;
  border-radius: 2px;
  background: var(--dark);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
body.mobile-nav-open .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
body.mobile-nav-open .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}
body.mobile-nav-open .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(15, 23, 42, 0.45);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}
.mobile-nav-overlay.is-visible {
  opacity: 1;
  pointer-events: auto;
}
.mobile-nav-overlay[hidden] {
  display: block !important;
  visibility: hidden;
}
.mobile-nav-overlay.is-visible[hidden] {
  visibility: visible;
}

.mobile-nav {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 210;
  width: min(320px, 88vw);
  height: 100dvh;
  max-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #fff;
  box-shadow: -8px 0 40px rgba(15, 23, 42, 0.18);
  transform: translateX(100%);
  transition: transform 0.28s ease;
  overflow: hidden;
}
body.rtl .mobile-nav {
  right: auto;
  left: 0;
  box-shadow: 8px 0 40px rgba(15, 23, 42, 0.18);
  transform: translateX(-100%);
}
.mobile-nav.is-open {
  transform: translateX(0);
}
.mobile-nav[hidden] {
  display: flex !important;
  visibility: hidden;
}
.mobile-nav.is-open[hidden] {
  visibility: visible;
}

.mobile-nav-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1rem 0.75rem;
  border-bottom: 1px solid #e2e8f0;
  flex-shrink: 0;
}
.mobile-nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none !important;
}
.mobile-nav-logo img {
  height: 56px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
}
.mobile-nav-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 10px;
  background: #f1f5f9;
  color: var(--dark);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}
.mobile-nav-close:hover {
  background: #e2e8f0;
}

.mobile-nav-links {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 0.75rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.mobile-nav-link {
  display: block;
  padding: 0.75rem 0.85rem;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1rem;
  color: var(--dark);
  text-decoration: none !important;
}
.mobile-nav-link:hover {
  background: #f8fafc;
  color: var(--blue);
}
.mobile-nav-link.nav-active {
  background: #eff6ff;
  color: var(--blue);
}
.mobile-nav-submit {
  margin-top: 0.65rem;
  width: 100%;
  justify-content: center;
}

.mobile-nav-lang {
  flex-shrink: 0;
  padding: 0.85rem 1rem 1.25rem;
  border-top: 1px solid #e2e8f0;
  background: #f8fafc;
}
.mobile-nav-lang .lang-switch {
  display: block;
  width: 100%;
}
.mobile-nav-lang-label {
  margin: 0 0 0.65rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.mobile-nav-lang-menu {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.35rem;
  max-height: 220px;
  overflow-y: auto;
}
.mobile-nav-lang-option {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.65rem;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 700;
  color: #334155;
  text-decoration: none !important;
  background: #fff;
  border: 1px solid #e2e8f0;
}
.mobile-nav-lang-option .fi {
  width: 1.15rem;
  line-height: 0.8rem;
  border-radius: 2px;
  overflow: hidden;
  flex-shrink: 0;
}
.mobile-nav-lang-option.is-active {
  border-color: #93c5fd;
  background: #eff6ff;
  color: #1d4ed8;
}
.mobile-nav-lang-code {
  margin-inline-start: auto;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  color: var(--muted);
}

body.mobile-nav-open {
  overflow: hidden;
}

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
.lang-switch {
  position: relative;
  flex-shrink: 0;
  display: inline-block;
}
.lang-switch-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  border: 1px solid #dbeafe;
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  color: #334155;
  cursor: pointer;
  line-height: 1;
  user-select: none;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.lang-switch.is-open .lang-switch-toggle,
.lang-switch-toggle:hover {
  border-color: #93c5fd;
  background: #eff6ff;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.12);
}
.lang-switch-toggle .fi {
  width: 1.25rem;
  line-height: 0.85rem;
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.08);
}
.lang-switch-code {
  letter-spacing: 0.04em;
}
.lang-switch-chevron {
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid #64748b;
  margin-left: 0.1rem;
  transition: transform 0.15s ease;
}
.lang-switch.is-open .lang-switch-chevron {
  transform: rotate(180deg);
}
.lang-switch-panel {
  position: absolute;
  top: calc(100% + 0.45rem);
  right: 0;
  z-index: 300;
  min-width: 11rem;
  padding: 0.45rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.14), 0 0 0 1px rgba(255, 255, 255, 0.8) inset;
  animation: langDropIn 0.18s ease;
}
.lang-switch-panel[hidden] {
  display: none !important;
}
@keyframes langDropIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
body.rtl .lang-switch-panel {
  right: auto;
  left: 0;
}
.lang-switch-menu {
  margin: 0;
  padding: 0;
  list-style: none;
  max-height: 17rem;
  overflow-y: auto;
}
.lang-switch-menu li {
  margin: 0;
  padding: 0;
  list-style: none;
}
.lang-switch-option {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.5rem 0.6rem;
  border-radius: 9px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #334155;
  text-decoration: none !important;
  transition: background 0.12s ease, color 0.12s ease;
}
.lang-switch-option .fi {
  width: 1.2rem;
  line-height: 0.8rem;
  border-radius: 2px;
  overflow: hidden;
}
.lang-switch-option:hover {
  background: #f1f5f9;
  color: #0f172a;
}
.lang-switch-label {
  letter-spacing: 0.04em;
}
.lang-switch select {
  padding: .4rem .6rem;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  font-family: inherit;
}

.alert {
  padding: 1rem 1.25rem;
  border-radius: 12px;
  margin-bottom: 1rem;
  font-weight: 600;
}
.alert-success { background: #dcfce7; color: #166534; }
.alert-error { background: #fee2e2; color: #991b1b; }

.form-card {
  max-width: 480px;
  margin: 2rem auto;
  background: #fff;
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-weight: 700; margin-bottom: .35rem; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%;
  padding: .75rem 1rem;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  font-family: inherit;
  font-size: 1rem;
}
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--blue); }
.form-help { display: block; margin-top: 0.35rem; font-size: 0.82rem; line-height: 1.45; color: var(--muted); font-weight: 600; }

.submit-screenshot-preview-wrap {
  margin: 0.65rem 0 0.75rem;
}

.submit-screenshot-preview {
  width: 280px;
  max-width: 100%;
  aspect-ratio: 280 / 175;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #dbe3ee;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.1);
  background: linear-gradient(135deg, #e0f2fe, #dbeafe);
}

.submit-screenshot-preview img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.submit-screenshot-clear {
  margin-top: 0.55rem;
  border: none;
  background: transparent;
  color: var(--blue);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
}

.submit-screenshot-clear:hover {
  text-decoration: underline;
}

.submit-screenshot-status {
  margin: 0.35rem 0 0.65rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--muted);
}

.submit-screenshot-status.is-loading {
  color: var(--blue);
}

.submit-screenshot-status.is-error {
  color: #dc2626;
}

.submit-screenshot-upload {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 0.35rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: #334155;
  cursor: pointer;
}

.submit-screenshot-upload input[type="file"] {
  max-width: 100%;
}

.submit-age-groups {
  display: grid;
  gap: 0.45rem;
}

.submit-age-option {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 600;
  color: #334155;
}

.admin-layout { display: grid; grid-template-columns: 220px 1fr; min-height: 100vh; }
.admin-sidebar { background: var(--dark); color: #fff; padding: 1.5rem; }
.admin-sidebar a { color: #cbd5e1; display: block; padding: .5rem 0; }
.admin-sidebar a:hover { color: #fff; }
.admin-content { padding: 2rem; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 1rem; }
.stat-box { background: #fff; padding: 1.25rem; border-radius: 12px; box-shadow: var(--shadow); }
.stat-box strong { font-size: 2rem; color: var(--blue); display: block; }

table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 12px; overflow: hidden; }
th, td { padding: .75rem 1rem; text-align: left; border-bottom: 1px solid #e2e8f0; }
th { background: #f1f5f9; font-weight: 700; }

@media (max-width: 991px) {
  .main-nav--desktop {
    display: none;
  }
  .nav-toggle {
    display: inline-flex;
  }
}

@media (max-width: 1100px) {
  .main-nav--desktop {
    gap: 0.5rem;
  }
}

@media (max-width: 768px) {
  .admin-layout { grid-template-columns: 1fr; }
  .hero { padding: 2.5rem 0 3rem; }
  .search-box { flex-direction: column; border-radius: var(--radius); }
  .search-box input, .search-box button { border-radius: 12px; width: 100%; }
  .logo img {
    height: 68px;
    max-width: min(280px, 70vw);
  }
}

.scroll-top {
  position: fixed;
  z-index: 850;
  right: max(1rem, env(safe-area-inset-right, 0px));
  bottom: max(1.25rem, env(safe-area-inset-bottom, 0px));
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(10px) scale(0.94);
  transition: opacity 0.28s ease, visibility 0.28s ease, transform 0.28s ease;
}

body.rtl .scroll-top {
  right: auto;
  left: max(1rem, env(safe-area-inset-left, 0px));
}

.scroll-top.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.scroll-top:focus-visible {
  outline: 3px solid rgba(33, 150, 243, 0.45);
  outline-offset: 4px;
  border-radius: 999px;
}

.scroll-top__visual {
  position: relative;
  display: block;
  width: clamp(56px, 12vw, 72px);
  line-height: 0;
  transition: transform 0.2s ease;
}

.scroll-top__base,
.scroll-top__gray {
  display: block;
  width: 100%;
  height: auto;
  user-select: none;
  -webkit-user-drag: none;
}

.scroll-top__gray-fill {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}

.scroll-top__gray {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  filter: grayscale(1) saturate(0) brightness(0.92);
}

.scroll-top:hover .scroll-top__visual,
.scroll-top:focus-visible .scroll-top__visual {
  transform: scale(1.06);
}

@media (prefers-reduced-motion: reduce) {
  .scroll-top {
    transition: none;
  }

  .scroll-top:hover .scroll-top__visual,
  .scroll-top:focus-visible .scroll-top__visual {
    transform: none;
    transition: none;
  }
}
