.switch {
  --switch-track-off: rgba(16, 32, 24, 0.18);
  --switch-track-on: var(--accent);
  --switch-knob-off: #ffffff;
  --switch-knob-on: #ffffff;
  font-size: 17px;
  position: relative;
  display: inline-block;
  width: 3.7em;
  height: 1.8em;
  flex-shrink: 0;
}

.switch input {
  display: none;
  opacity: 0;
  width: 0;
  height: 0;
}

.switch .slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--switch-track-off);
  transition: .2s;
  border-radius: 30px;
}

.switch .slider:before {
  position: absolute;
  content: "";
  height: 1.4em;
  width: 1.4em;
  border-radius: 20px;
  left: 0.2em;
  bottom: 0.2em;
  background-color: var(--switch-knob-off);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
  transition: .4s;
}

.switch input:checked+.slider {
  background-color: var(--switch-track-on);
}

.switch input:checked+.slider:before {
  background-color: var(--switch-knob-on);
  transform: translateX(1.9em);
}

.switch input:focus-visible+.slider {
  box-shadow: 0 0 0 3px rgba(31, 109, 77, 0.25);
}

body.dark-mode .switch {
  --switch-track-off: rgba(255, 255, 255, 0.12);
}

.settings-tab-empty {
  min-height: calc(100vh - 220px);
  display: grid;
  gap: 20px;
  align-content: start;
}

.settings-social-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.45);
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.settings-social-row:hover,
.settings-social-row:focus-visible {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.75);
  box-shadow: 0 8px 20px rgba(16, 32, 24, 0.08);
  border-color: rgba(31, 109, 77, 0.3);
}

.settings-social-row.discord {
  border-left: 3px solid #5865f2;
}

.settings-social-row.youtube {
  border-left: 3px solid #ff0000;
}

.settings-social-row .settings-social-icon {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-size: 1rem;
  flex-shrink: 0;
}

.settings-social-row.discord .settings-social-icon {
  background: rgba(88, 101, 242, 0.12);
  color: #5865f2;
}

.settings-social-row.youtube .settings-social-icon {
  background: rgba(255, 0, 0, 0.1);
  color: #ff0000;
}

.settings-social-row.bmc {
  border-left: 3px solid #FFDD00;
}
.settings-social-row.bmc .settings-social-icon {
  background: rgba(255, 221, 0, 0.12);
  color: #FFDD00;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.settings-social-row.bmc .settings-social-icon .bmc-logo {
  width: 1rem;
  height: auto;
}
body.dark-mode .settings-social-row.bmc .settings-social-icon {
  background: rgba(255, 221, 0, 0.18);
}
body.dark-mode .settings-social-row.bmc .settings-social-icon .bmc-logo path:last-child {
  fill: #ffffff;
}

.settings-social-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.25;
}

.settings-social-text small {
  font-weight: 500;
  color: var(--muted);
  font-size: 0.85rem;
}

body.dark-mode .settings-social-row {
  background: rgba(14, 24, 19, 0.45);
  border-color: rgba(43, 70, 58, 0.9);
}

body.dark-mode .settings-social-row:hover,
body.dark-mode .settings-social-row:focus-visible {
  background: rgba(28, 45, 37, 0.6);
  border-color: rgba(65, 166, 121, 0.35);
}

body.dark-mode .settings-social-row.discord .settings-social-icon {
  background: rgba(88, 101, 242, 0.18);
}

body.dark-mode .settings-social-row.youtube .settings-social-icon {
  background: rgba(255, 0, 0, 0.14);
}

.settings-section-feedback {
  position: relative;
}

.settings-section-feedback .settings-actions {
  position: absolute;
  top: 28px;
  right: 28px;
  margin: 0;
}

.settings-section-feedback .settings-submit {
  padding: 8px 18px;
  font-size: 0.85rem;
  min-height: 0;
}

@media (max-width: 520px) {
  .settings-section-feedback .settings-actions {
    position: static;
    margin-top: 12px;
  }

  .settings-section-feedback .settings-submit {
    padding: 12px 22px;
    font-size: 0.92rem;
  }
}

.navbar {
  position: sticky;
  top: 18px;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 0;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.45) inset,
    0 8px 32px rgba(16, 32, 24, 0.08),
    0 24px 64px rgba(16, 32, 24, 0.06),
    0 0 0 1px rgba(255, 255, 255, 0.35) inset;
  border: none;
  overflow: visible;
}

.navbar::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 999px;
  padding: 1.2px;
  background: linear-gradient(135deg,
      rgba(255, 255, 255, 0.95) 0%,
      rgba(31, 109, 77, 0.28) 25%,
      rgba(215, 114, 67, 0.22) 50%,
      rgba(31, 109, 77, 0.28) 75%,
      rgba(255, 255, 255, 0.95) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.65;
  z-index: -1;
  align-items: center;
  justify-content: center;
}

.navbar::after {
  content: "";
  position: absolute;
  top: 0;
  left: 20px;
  right: 20px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.65), transparent);
  border-radius: 1px;
  pointer-events: none;
  z-index: 1;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
  padding: 0 10px 0 6px;
  white-space: nowrap;
  transition: transform 0.35s cubic-bezier(0.23, 1, 0.32, 1);
}

.brand-link:hover {
  transform: translateY(-1px) scale(1.02);
}

.brand-mark {
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 999px;
  object-fit: cover;
  flex: 0 0 auto;
  transition: box-shadow 0.35s ease, transform 0.35s cubic-bezier(0.23, 1, 0.32, 1);
}

.brand-link:hover .brand-mark {
  transform: scale(1.1) rotate(-4deg);
}

.brand-text {
  display: flex;
  align-items: flex-start;
  gap: 2px;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: var(--ink);
  background-clip: text;
}

.brand-text sup {
  font-size: 0.45em;
  line-height: 1;
  top: 0.3em;
  position: relative;
  background: #000000;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0.85;
}

.social-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.nav-links {
  position: sticky;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
  padding: 4px;
  border-radius: var(--pill-radius);
  background: rgba(16, 32, 24, 0.04);
  border: 1px solid rgba(16, 32, 24, 0.06);
  overflow: hidden;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.55) inset,
    0 4px 14px rgba(16, 32, 24, 0.04);
}

.nav-highlight {
  position: absolute;
  top: 4px;
  left: 4px;
  height: calc(100% - 16px);
  border-radius: var(--pill-radius);
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-3) 50%, var(--accent) 100%);
  background-size: 200% 200%;
  box-shadow:
    0 10px 28px rgba(31, 109, 77, 0.32),
    0 0 0 1px rgba(255, 255, 255, 0.25) inset,
    0 0 22px rgba(31, 109, 77, 0.22);
  transform: translateX(0);
  transition:
    top 0.5s cubic-bezier(0.23, 1, 0.32, 1),
    left 0.5s cubic-bezier(0.23, 1, 0.32, 1),
    width 0.5s cubic-bezier(0.23, 1, 0.32, 1),
    height 0.5s cubic-bezier(0.23, 1, 0.32, 1),
    opacity 0.3s ease;
  will-change: top, left, width, height;
  z-index: 0;
  animation: gradientShift 6s ease infinite;
}

@keyframes gradientShift {

  0%,
  100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

.nav-chip {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.2rem;
  padding: 0 1.15rem;
  border-radius: var(--pill-radius);
  color: var(--muted);
  text-decoration: none;
  font-size: 0.96rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  border: none;
  background: transparent;
  cursor: pointer;
  font-family: "Fredoka", sans-serif;
  transition:
    color 0.3s cubic-bezier(0.23, 1, 0.32, 1),
    background-color 0.3s ease,
    transform 0.3s cubic-bezier(0.23, 1, 0.32, 1),
    box-shadow 0.3s ease,
    text-shadow 0.3s ease;
}

.nav-chip:hover,
.nav-chip:focus-visible {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.55);
  transform: translateY(-1.5px);
  box-shadow: 0 10px 22px rgba(16, 32, 24, 0.09);
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.7);
}

.nav-chip.active {
  color: var(--ink);
  background: transparent;
  box-shadow: none;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.nav-chip:active {
  transform: translateY(0) scale(0.97);
  transition-duration: 0.1s;
}

.right-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  margin-left: auto;
}

.theme-toggle {
  width: 2.8rem;
  height: 2.8rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(16, 32, 24, 0.08);
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  text-decoration: none;
  box-shadow:
    0 4px 14px rgba(16, 32, 24, 0.07),
    0 1px 0 rgba(255, 255, 255, 0.55) inset;
  transition:
    transform 0.35s cubic-bezier(0.23, 1, 0.32, 1),
    background-color 0.3s ease,
    box-shadow 0.3s ease,
    filter 0.3s ease;
  cursor: pointer;
  flex: 0 0 auto;
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
  transform: translateY(-2px) rotate(-12deg);
  background: #fff;
  box-shadow:
    0 10px 26px rgba(16, 32, 24, 0.14),
    0 0 0 3px rgba(31, 109, 77, 0.1),
    0 1px 0 rgba(255, 255, 255, 0.55) inset;
  filter: brightness(1.06);
}

.inbox-toggle {
  width: 2.8rem;
  height: 2.8rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(16, 32, 24, 0.08);
  background: #ffffff;
  color: var(--ink);
  text-decoration: none;
  box-shadow:
    0 4px 14px rgba(16, 32, 24, 0.07),
    0 1px 0 rgba(255, 255, 255, 0.55) inset;
  transition:
    transform 0.35s cubic-bezier(0.23, 1, 0.32, 1),
    background-color 0.3s ease,
    box-shadow 0.3s ease,
    filter 0.3s ease;
  cursor: pointer;
  flex: 0 0 auto;
  position: relative;
  z-index: 2;
}

.inbox-toggle:hover,
.inbox-toggle:focus-visible {
  transform: translateY(-2px);
  background: #ffffff;
  box-shadow:
    0 10px 26px rgba(16, 32, 24, 0.14),
    0 0 0 3px rgba(31, 109, 77, 0.1),
    0 1px 0 rgba(255, 255, 255, 0.55) inset;
  filter: brightness(1.06);
}

.inbox-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  background: linear-gradient(135deg, #e74c3c, #c0392b);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(211, 58, 50, 0.4);
}

@keyframes badgePulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.1);
  }
}

.inbox-badge.hidden {
  display: none;
}

.morph-button {
  --expanded-width: 9.8rem;
  width: 2.8rem;
  height: 2.8rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 0 0.7rem;
  overflow: hidden;
  border-radius: 999px;
  border: 1px solid rgba(16, 32, 24, 0.08);
  background: rgba(255, 255, 255, 0.74);
  color: var(--ink);
  text-decoration: none;
  box-shadow:
    0 4px 14px rgba(16, 32, 24, 0.06),
    0 1px 0 rgba(255, 255, 255, 0.5) inset;
  transition:
    width 0.4s cubic-bezier(0.23, 1, 0.32, 1),
    background-color 0.3s ease,
    transform 0.3s cubic-bezier(0.23, 1, 0.32, 1),
    box-shadow 0.3s ease,
    color 0.3s ease,
    padding 0.4s cubic-bezier(0.23, 1, 0.32, 1),
    border-color 0.3s ease;
  white-space: nowrap;
  will-change: width, transform, padding;
  transform: translateZ(0);
  backface-visibility: hidden;
  contain: layout paint;
}

.morph-button:hover,
.morph-button:focus-visible {
  width: var(--expanded-width);
  padding: 0 0.9rem 0 0.7rem; 
  justify-content: flex-start;
  transform: translateY(-1px);
  background: #fff;
  box-shadow: 0 12px 22px rgba(16, 32, 24, 0.12);
}

.morph-button .button-label {
  display: block;
  opacity: 0;
  max-width: 0;
  overflow: hidden;
  white-space: nowrap;
  margin-left: 0;
  transform: translateX(-6px);
  transition:
    opacity 0.25s ease 0.04s,
    max-width 0.4s cubic-bezier(0.23, 1, 0.32, 1),
    transform 0.3s cubic-bezier(0.23, 1, 0.32, 1),
    margin-left 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  font-weight: 700;
  font-size: 0.95rem;
}

.morph-button:hover .button-label,
.morph-button:focus-visible .button-label {
  opacity: 1;
  max-width: 9rem;
  margin-left: 0.5rem;
  transform: translateX(0);
}

.morph-button .button-icon {
  width: 2.1rem;
  height: 2.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  font-size: 1.05rem;
  opacity: 1;
  line-height: 1;
  position: relative;
  transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.morph-button:hover .button-icon {
  transform: scale(1.1);
}

.element-search-wrapper {
  --search-width-collapsed: 2.8rem;
  --search-width-expanded: 13.8rem;
  width: var(--search-width-collapsed);
  min-height: 2.8rem;
  justify-content: flex-start;
  padding: 0 0.7rem;
  cursor: text;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0;
  overflow: hidden;
  border-radius: 999px;
  border: 1px solid rgba(16, 32, 24, 0.08);
  background: rgba(255, 255, 255, 0.74);
  color: var(--ink);
  text-decoration: none;
  box-shadow:
    0 4px 14px rgba(16, 32, 24, 0.06),
    0 1px 0 rgba(255, 255, 255, 0.5) inset;
  transition:
    width 0.45s cubic-bezier(0.23, 1, 0.32, 1),
    background-color 0.3s ease,
    transform 0.3s cubic-bezier(0.23, 1, 0.32, 1),
    box-shadow 0.3s ease,
    color 0.3s ease,
    padding 0.45s cubic-bezier(0.23, 1, 0.32, 1),
    border-color 0.3s ease,
    gap 0.3s ease;
  white-space: nowrap;
  will-change: width, transform, padding;
  transform: translateZ(0);
  backface-visibility: hidden;
  contain: layout paint;
}

.element-search-wrapper:hover,
.element-search-wrapper:focus-within {
  width: var(--search-width-expanded);
  padding: 0 0.9rem 0 0.7rem;
  justify-content: flex-start;
  gap: 0.35rem;
  background: #fff;
  box-shadow:
    0 14px 32px rgba(16, 32, 24, 0.14),
    0 0 0 3px rgba(31, 109, 77, 0.08),
    0 1px 0 rgba(255, 255, 255, 0.55) inset;
}

.element-search-icon {
  width: 1.15rem;
  height: 1.15rem;
  flex: 0 0 auto;
  margin: 0;
  color: var(--muted);
  display: block;
}

.element-search-input {
  width: 0;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 0.92rem;
  opacity: 0;
  padding: 0;
  margin: 0;
  transition: width 0.3s ease, opacity 0.25s ease;
  caret-color: var(--accent);
  flex: 1 1 auto;
}

.element-search-wrapper:hover .element-search-input,
.element-search-wrapper:focus-within .element-search-input {
  width: 100%;
  opacity: 1;
}

.element-search-input::placeholder {
  color: rgba(96, 115, 100, 0.7);
  font-weight: 500;
}

.community.discord {
  --expanded-width: 10.2rem;
  background: rgba(88, 101, 242, 0.1);
}

.community.discord:hover,
.community.discord:focus-visible {
  border-color: rgba(88, 101, 242, 0.35);
  box-shadow:
    0 14px 32px rgba(88, 101, 242, 0.16),
    0 0 0 3px rgba(88, 101, 242, 0.08),
    0 1px 0 rgba(255, 255, 255, 0.5) inset;
  background: rgba(88, 101, 242, 0.14);
}

.community.youtube {
  background: rgba(255, 0, 0, 0.07);
  --expanded-width: 10.7rem;
}

.community.youtube:hover,
.community.youtube:focus-visible {
  border-color: rgba(255, 0, 0, 0.3);
  box-shadow:
    0 14px 32px rgba(255, 0, 0, 0.13),
    0 0 0 3px rgba(255, 0, 0, 0.06),
    0 1px 0 rgba(255, 255, 255, 0.5) inset;
  background: rgba(255, 0, 0, 0.1);
}

.community.discord .button-icon i {
  font-size: 1.18rem;
  color: #5865f2;
}

.community.youtube .button-icon i {
  font-size: 1.18rem;
  color: #ff0000;
}

.community.bmc {
  background: rgba(255, 221, 0, 0.1);
  --expanded-width: 11.8rem;
}
.community.bmc:hover,
.community.bmc:focus-visible {
  border-color: rgba(255, 221, 0, 0.35);
  box-shadow:
    0 14px 32px rgba(255, 221, 0, 0.16),
    0 0 0 3px rgba(255, 221, 0, 0.08),
    0 1px 0 rgba(255, 255, 255, 0.5) inset;
  background: rgba(255, 221, 0, 0.14);
}
.community.bmc .button-icon .bmc-logo {
  width: 1rem;
  height: auto;
  display: block;
}

body.dark-mode .community.bmc:hover,
body.dark-mode .community.bmc:focus-visible {
  box-shadow:
    0 14px 32px rgba(255, 221, 0, 0.22),
    0 0 0 3px rgba(255, 221, 0, 0.1),
    0 1px 0 rgba(255, 255, 255, 0.04) inset;
}

.profile-button {
  --expanded-width: 8.8rem;
  min-width: 2.8rem;
  background: rgba(31, 109, 77, 0.08);
}

.profile-button:hover,
.profile-button:focus-visible {
  box-shadow:
    0 14px 32px rgba(31, 109, 77, 0.18),
    0 0 0 3px rgba(31, 109, 77, 0.08),
    0 1px 0 rgba(255, 255, 255, 0.5) inset;
  background: rgba(31, 109, 77, 0.12);
  padding: 0.35rem;
}

.profile-button .avatar {
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 999px;
  object-fit: cover;
  flex: 0 0 auto;
  border: 2px solid rgba(31, 109, 77, 0.2);
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.profile-button:hover .avatar {
  border-color: rgba(31, 109, 77, 0.4);
  box-shadow: 0 0 14px rgba(31, 109, 77, 0.22);
  transform: scale(1.08);
}

.auth-button {
  --expanded-width: 8.5rem;
}

.auth-button .button-icon {
  color: var(--accent);
}

.auth-button.signup {
  --expanded-width: 9rem;
  background: linear-gradient(135deg, rgba(31, 109, 77, 0.1), rgba(216, 114, 67, 0.1));
  border-color: rgba(31, 109, 77, 0.12);
}

.auth-button.signup:hover,
.auth-button.signup:focus-visible {
  background: linear-gradient(135deg, rgba(31, 109, 77, 0.15), rgba(216, 114, 67, 0.15));
  box-shadow:
    0 14px 32px rgba(31, 109, 77, 0.12),
    0 0 0 3px rgba(31, 109, 77, 0.06),
    0 1px 0 rgba(255, 255, 255, 0.5) inset;
}

.auth-button.signup .button-icon {
  color: var(--accent-2);
}

.search-morph {
  --expanded-width: 13.8rem;
}

.search-button {
  --expanded-width: 7.9rem;
  background: rgba(255, 255, 255, 0.72);
}

.search-button .button-icon,
.auth-button .button-icon,
.search-morph .element-search-icon {
  color: var(--muted);
}

.inbox-panel {
  position: fixed;
  top: 66px;
  right: 14px;
  width: min(300px, calc(100vw - 28px));
  height: min(46vh, 360px);
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  box-shadow:
    0 8px 32px rgba(16, 32, 24, 0.12),
    0 0 0 1px rgba(255, 255, 255, 0.5) inset;
  z-index: 70;
  display: none;
  flex-direction: column;
  overflow: hidden;
}

.inbox-panel.open {
  display: flex;
  animation: inboxEnter 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

@keyframes inboxEnter {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.inbox-head {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  font-weight: 700;
  font-size: 0.95rem;
}

.inbox-list {
  padding: 10px;
  display: grid;
  gap: 8px;
  overflow: auto;
}

.inbox-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.65);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.inbox-item:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(16, 32, 24, 0.06);
}

.inbox-item.feedback {
  position: relative;
}

.inbox-user {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.inbox-user img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--line);
}

.inbox-actions {
  display: flex;
  gap: 6px;
}

.inbox-actions button {
  border: 0;
  border-radius: 8px;
  padding: 6px 10px;
  font: inherit;
  color: #fff;
  cursor: pointer;
  font-size: 0.84rem;
  font-weight: 700;
  transition: transform 0.15s ease, filter 0.15s ease;
}

.inbox-actions button:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

.accept-btn {
  background: linear-gradient(135deg, var(--accent), var(--accent-3));
}

.decline-btn {
  background: linear-gradient(135deg, #c0392b, #a93226);
}

.inbox-empty {
  color: var(--muted);
  font-size: 0.92rem;
  text-align: center;
  padding: 16px 0;
}

.inbox-feedback-text {
  color: var(--muted);
  line-height: 1.4;
  white-space: pre-wrap;
  font-size: 0.9rem;
}

.feedback-delete {
  position: absolute;
  top: 8px;
  right: 8px;
  border: 0;
  background: transparent;
  color: #d33a32;
  font-size: 1rem;
  cursor: pointer;
  opacity: 0;
  padding: 4px;
  border-radius: 6px;
  transition: opacity 0.18s ease, transform 0.18s ease, background 0.18s ease;
}

.inbox-item.feedback:hover .feedback-delete,
.inbox-item.feedback:focus-within .feedback-delete {
  opacity: 1;
}

.feedback-delete:hover,
.feedback-delete:focus-visible {
  transform: scale(1.1);
  background: rgba(211, 58, 50, 0.08);
}



body.dark-mode .navbar {
  background: rgba(18, 28, 23, 0.6);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.06) inset,
    0 8px 32px rgba(0, 0, 0, 0.4),
    0 24px 64px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.06) inset;
}

body.dark-mode .navbar::before {
  background: linear-gradient(135deg,
      rgba(255, 255, 255, 0.18) 0%,
      rgba(65, 166, 121, 0.25) 25%,
      rgba(217, 139, 98, 0.2) 50%,
      rgba(65, 166, 121, 0.25) 75%,
      rgba(255, 255, 255, 0.18) 100%);
  opacity: 0.45;
}

body.dark-mode .navbar::after {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
}

body.dark-mode .nav-links {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.06);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.04) inset,
    0 4px 14px rgba(0, 0, 0, 0.25);
}

body.dark-mode .nav-chip {
  color: var(--muted);
}

body.dark-mode .nav-chip:hover,
body.dark-mode .nav-chip:focus-visible {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.2);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

body.dark-mode .nav-chip.active {
  color: #fff;
  background: #9c9c9c25;
  box-shadow: none;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

body.dark-mode .nav-highlight {
  box-shadow:
    0 10px 28px rgba(65, 166, 121, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.12) inset,
    0 0 24px rgba(65, 166, 121, 0.28);
}


body.dark-mode .brand-text {
  background: #e8f4ec;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

body.dark-mode .brand-text sup {
  background: #ffffff;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

body.dark-mode .theme-toggle,
body.dark-mode .inbox-toggle,
body.dark-mode .morph-button,
body.dark-mode .element-search-wrapper {
  background: #16231d;
  border-color: rgba(43, 70, 58, 0.9);
  box-shadow:
    0 4px 14px rgba(0, 0, 0, 0.3),
    0 1px 0 rgba(255, 255, 255, 0.04) inset;
  color: var(--ink);
}

body.dark-mode .theme-toggle:hover,
body.dark-mode .theme-toggle:focus-visible,
body.dark-mode .inbox-toggle:hover,
body.dark-mode .inbox-toggle:focus-visible,
body.dark-mode .morph-button:hover,
body.dark-mode .morph-button:focus-visible,
body.dark-mode .element-search-wrapper:hover,
body.dark-mode .element-search-wrapper:focus-within {
  background: #1c2c24;
  box-shadow:
    0 14px 32px rgba(0, 0, 0, 0.4),
    0 0 0 3px rgba(65, 166, 121, 0.12),
    0 1px 0 rgba(255, 255, 255, 0.04) inset;
}

body.dark-mode .element-search-input,
body.dark-mode .element-search-input::placeholder {
  color: var(--muted);
}

body.dark-mode .search-button .button-icon,
body.dark-mode .auth-button .button-icon,
body.dark-mode .search-morph .element-search-icon {
  color: var(--muted);
}

body.dark-mode .community.discord {
  background: rgba(88, 101, 242, 0.14);
}

body.dark-mode .community.discord:hover,
body.dark-mode .community.discord:focus-visible {
  box-shadow:
    0 14px 32px rgba(88, 101, 242, 0.22),
    0 0 0 3px rgba(88, 101, 242, 0.1),
    0 1px 0 rgba(255, 255, 255, 0.04) inset;
}

body.dark-mode .community.youtube {
  background: rgba(255, 0, 0, 0.12);
}

body.dark-mode .community.youtube:hover,
body.dark-mode .community.youtube:focus-visible {
  box-shadow:
    0 14px 32px rgba(255, 0, 0, 0.18),
    0 0 0 3px rgba(255, 0, 0, 0.08),
    0 1px 0 rgba(255, 255, 255, 0.04) inset;
}

body.dark-mode .profile-button {
  background: rgba(65, 166, 121, 0.1);
}

body.dark-mode .profile-button:hover,
body.dark-mode .profile-button:focus-visible {
  box-shadow:
    0 14px 32px rgba(65, 166, 121, 0.22),
    0 0 0 3px rgba(65, 166, 121, 0.1),
    0 1px 0 rgba(255, 255, 255, 0.04) inset;
}

body.dark-mode .profile-button .avatar {
  border-color: rgba(65, 166, 121, 0.25);
}

body.dark-mode .profile-button:hover .avatar {
  border-color: rgba(65, 166, 121, 0.45);
  box-shadow: 0 0 14px rgba(65, 166, 121, 0.28);
}

body.dark-mode .auth-button.signup {
  background: linear-gradient(135deg, rgba(65, 166, 121, 0.12), rgba(217, 139, 98, 0.12));
}

body.dark-mode .auth-button.signup:hover,
body.dark-mode .auth-button.signup:focus-visible {
  background: linear-gradient(135deg, rgba(65, 166, 121, 0.18), rgba(217, 139, 98, 0.18));
  box-shadow:
    0 14px 32px rgba(65, 166, 121, 0.18),
    0 0 0 3px rgba(65, 166, 121, 0.08),
    0 1px 0 rgba(255, 255, 255, 0.04) inset;
}

body.dark-mode .inbox-panel {
  background: rgba(28, 40, 33, 0.94);
  border-color: rgba(43, 70, 58, 0.9);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.06) inset;
}

body.dark-mode .inbox-item {
  background: rgba(22, 35, 29, 0.72);
  border-color: rgba(43, 70, 58, 0.85);
}

body.dark-mode .inbox-item:hover {
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

@media (max-width: 1100px) {
  .navbar {
    flex-wrap: wrap;
    gap: 12px;
  }

  .nav-links {
    order: 3;
    width: 100%;
    justify-content: center;
    margin: 0;
  }

  .right-group {
    margin-left: 0;
  }
}

@media (max-width: 760px) {
  .shell {
    padding: 12px;
  }

  .navbar {
    top: 12px;
    padding: 10px;
  }

  .brand-text {
    font-size: 1.08rem;
  }

  .social-group {
    gap: 8px;
  }

  .nav-links {
    gap: 6px;
    padding: 6px;
    overflow-x: auto;
    justify-content: flex-start;
  }

  .nav-chip {
    flex: 0 0 auto;
    font-size: 0.92rem;
  }
}

.kanji-group-cell {
  transition: transform 0.25s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.25s ease;
}

.kanji-group-cell.active {
  transform: scale(1.04);
  z-index: 2;
  box-shadow:
    0 0 0 3px #ffffff,
    0 0 0 6px rgba(31, 109, 77, 0.55),
    0 14px 32px rgba(0, 0, 0, 0.18);
}

.kanji-group-cell.score-mode.active {
  transform: none;
  box-shadow:
    0 0 0 3px #ffffff,
    0 0 0 6px rgba(0, 0, 0, 0.45),
    0 14px 32px rgba(0, 0, 0, 0.25);
}

body.dark-mode .kanji-group-cell.active {
  box-shadow:
    0 0 0 3px #1c2c24,
    0 0 0 6px rgba(65, 166, 121, 0.85),
    0 14px 32px rgba(0, 0, 0, 0.45);
}

body.dark-mode .kanji-group-cell.score-mode.active {
  transform: none;
  box-shadow:
    0 0 0 3px #1c2c24,
    0 0 0 6px rgba(255, 255, 255, 0.55),
    0 14px 32px rgba(0, 0, 0, 0.55);
}

.kanji-level-head {
  cursor: pointer;
  user-select: none;
  position: relative;
}


.kanji-level-card.collapsed .kanji-level-head::after {
  transform: rotate(-180deg);
}

.kanji-level-body {
  display: grid;
  grid-template-rows: 1fr;
  transition: grid-template-rows 0.45s cubic-bezier(0.23, 1, 0.32, 1);
}

.kanji-level-card.collapsed .kanji-level-body {
  grid-template-rows: 0fr;
}

.kanji-level-body>.kanji-group-grid {
  min-height: 0;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.3s ease, transform 0.3s ease, padding 0.3s ease;
}

.kanji-level-card.collapsed .kanji-group-grid {
  opacity: 0;
  transform: translateY(-6px);
  padding-top: 0;
  padding-bottom: 0;
}

.setting-control[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 140px;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), #5ecf9a);
  outline: none;
  cursor: pointer;
  transition: box-shadow 0.3s ease;
}

.setting-control[type="range"]::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 999px;
  background: transparent;
}

.setting-control[type="range"]::-moz-range-track {
  height: 6px;
  border-radius: 999px;
  background: transparent;
}

.setting-control[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--card);
  border: 2.5px solid var(--accent);
  box-shadow: 0 2px 10px rgba(30, 111, 79, 0.35);
  margin-top: -6px;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: grab;
}

.setting-control[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--card);
  border: 2.5px solid var(--accent);
  box-shadow: 0 2px 10px rgba(30, 111, 79, 0.35);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: grab;
}

.setting-control[type="range"]:hover::-webkit-slider-thumb {
  transform: scale(1.2);
  box-shadow: 0 4px 16px rgba(30, 111, 79, 0.45);
}

.setting-control[type="range"]:active::-webkit-slider-thumb {
  cursor: grabbing;
  transform: scale(1.1);
  border-color: #2a8a62;
}

.setting-control[type="range"]:hover::-moz-range-thumb {
  transform: scale(1.2);
  box-shadow: 0 4px 16px rgba(30, 111, 79, 0.45);
}

.setting-control[type="range"]:active::-moz-range-thumb {
  cursor: grabbing;
  transform: scale(1.1);
  border-color: #2a8a62;
}

.setting-control[type="range"]:focus-visible {
  box-shadow: 0 0 0 4px var(--accent-glow);
}

body.dark-mode .setting-control[type="range"] {
  background: linear-gradient(90deg, #2a8a62, #5ecf9a);
}

body.dark-mode .setting-control[type="range"]::-webkit-slider-thumb {
  background: #1c2c24;
  border-color: #5ecf9a;
  box-shadow: 0 2px 10px rgba(94, 207, 154, 0.4);
}

body.dark-mode .setting-control[type="range"]::-moz-range-thumb {
  background: #1c2c24;
  border-color: #5ecf9a;
  box-shadow: 0 2px 10px rgba(94, 207, 154, 0.4);
}

body.dark-mode .setting-control[type="range"]:hover::-webkit-slider-thumb {
  box-shadow: 0 4px 16px rgba(94, 207, 154, 0.55);
}

body.dark-mode .setting-control[type="range"]:hover::-moz-range-thumb {
  box-shadow: 0 4px 16px rgba(94, 207, 154, 0.55);
}

.slider-wrap {
  position: relative;
  width: 140px;
  height: 36px;
  display: flex;
  align-items: center;
}

.slider-input {
  width: 100%;
  margin: 0;
}

.slider-tooltip {
  position: absolute;
  top: -34px;
  left: 0;
  transform: translateX(-50%) scale(0.9);
  background: linear-gradient(135deg, var(--accent), #2a8a62);
  color: #fff;
  padding: 5px 10px;
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  pointer-events: auto;
  cursor: text;
  box-shadow: 0 6px 16px rgba(30, 111, 79, 0.35);
  min-width: 40px;
  text-align: center;
  user-select: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s ease, visibility 0.15s ease, transform 0.1s linear, left 0.05s linear;
  z-index: 3;
}

.slider-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: var(--accent);
}

.slider-wrap:hover .slider-tooltip,
.slider-input:active~.slider-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) scale(1);
}

.slider-edit {
  position: absolute;
  top: -34px;
  left: 0;
  transform: translateX(-50%);
  width: 64px;
  padding: 5px 6px;
  border: 1.5px solid var(--accent);
  border-radius: 10px;
  background: var(--card);
  color: var(--ink);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  text-align: center;
  outline: none;
  box-shadow: 0 0 0 4px var(--accent-glow);
  display: none;
  z-index: 5;
  -moz-appearance: textfield;
}

.slider-edit::-webkit-outer-spin-button,
.slider-edit::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

body.dark-mode .slider-tooltip {
  background: linear-gradient(135deg, #5ecf9a, #2a8a62);
  color: #101c17;
  box-shadow: 0 6px 16px rgba(94, 207, 154, 0.35);
}

body.dark-mode .slider-tooltip::after {
  border-top-color: #5ecf9a;
}

body.dark-mode .slider-edit {
  background: #1c2c24;
  color: #e8f4ec;
  border-color: #5ecf9a;
  box-shadow: 0 0 0 4px rgba(94, 207, 154, 0.15);
}

.settings-social-row.about {
  border-left: 3px solid var(--accent);
}

.settings-social-row.about .settings-social-icon {
  background: rgba(30, 111, 79, 0.12);
  color: var(--accent);
}

body.dark-mode .settings-social-row.about .settings-social-icon {
  background: rgba(65, 166, 121, 0.18);
}

#aboutModal {
  position: fixed;
  inset: 0;
  background: rgba(17, 32, 24, 0.45);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

#aboutModal.open {
  display: flex;
}

.about-modal-panel {
  position: relative;
  width: 100%;
  max-width: 920px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow), 0 24px 64px rgba(17, 32, 24, 0.18);
  padding: 40px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  animation: aboutModalIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  max-height: 90vh;
  overflow-y: auto;
}

@keyframes aboutModalIn {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.96);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.about-modal-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 24px;
  padding: 1.5px;
  background: linear-gradient(135deg, var(--glass-border), transparent 40%, transparent 60%, var(--glass-border));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.8;
}

.about-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.3s ease;
  z-index: 10;
}

.about-modal-close:hover {
  background: #b24539;
  color: #fff;
  border-color: #b24539;
  transform: scale(1.05)
}

.about-modal-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 40px;
  align-items: start;
}

.about-modal-left h3 {
  margin: 0 0 20px;
  font-size: 1.4rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
}

.about-modal-left h3 i {
  color: var(--accent);
}

.about-modal-left p {
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.7;
  font-size: 0.95rem;
}

.about-modal-left p:last-child {
  margin-bottom: 0;
}

.creator-card {
  position: relative;
  background: linear-gradient(135deg, rgba(30, 111, 79, 0.08), rgba(30, 111, 79, 0.02));
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  overflow: hidden;
}

.creator-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  padding: 1.5px;
  background: linear-gradient(135deg, rgba(30, 111, 79, 0.35), transparent 50%, rgba(30, 111, 79, 0.18));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.creator-card-top {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 4px;
}

.creator-img-wrap {
  width: 80px;
  height: 80px;
  border-radius: 999px;
  overflow: hidden;
  background: var(--card);
  border: 2px solid var(--line);
  box-shadow: 0 4px 14px rgba(17, 32, 24, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.creator-img-wrap:hover {
  transform: translateY(-3px) scale(1.06);
  box-shadow: 0 10px 28px rgba(30, 111, 79, 0.22);
}

.creator-img-wrap img {
  width: 100%;
  height: 100%;
  margin-top: 2.5px;
  object-fit: cover;
}

.creator-name {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.3px;
  margin-top: 2px;
}

.creator-role {
  display: inline-block;
  padding: 8px 20px;
  border-radius: 999px;
  background: transparent;
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 700;
  box-shadow: none;
  min-height: 1.2em;
  white-space: nowrap;
}

.creator-divider {
  width: 40px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), #5ecf9a);
  opacity: 0.4;
  margin: 2px 0;
}

.creator-info-list {
  width: 100%;
  display: grid;
  gap: 10px;
  margin-top: 4px;
}

.creator-info-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 600;
  text-align: left;
  transition: all 0.25s ease;
}

.creator-info-row:hover {
  transform: translateX(4px);
  border-color: rgba(30, 111, 79, 0.4);
  box-shadow: 0 4px 14px rgba(30, 111, 79, 0.1);
}

.creator-info-row i {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(30, 111, 79, 0.1);
  color: var(--accent);
  font-size: 0.85rem;
  flex-shrink: 0;
}

body.dark-mode .creator-role {
  color: #5ecf9a;
}

body.dark-mode .creator-card {
  background: linear-gradient(135deg, rgba(65, 166, 121, 0.1), rgba(22, 35, 29, 0.55));
}

body.dark-mode .creator-card::before {
  background: linear-gradient(135deg, rgba(65, 166, 121, 0.4), transparent 50%, rgba(65, 166, 121, 0.22));
}

body.dark-mode .creator-img-wrap {
  background: #1c2c24;
  border-color: rgba(43, 70, 58, 0.9);
}

body.dark-mode .creator-info-row {
  background: rgba(22, 35, 29, 0.75);
  border-color: rgba(43, 70, 58, 0.85);
}

body.dark-mode .creator-info-row i {
  background: rgba(65, 166, 121, 0.15);
  color: #5ecf9a;
}

body.dark-mode .about-modal-panel {
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
}

@media (max-width: 760px) {
  .about-modal-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .about-modal-panel {
    padding: 28px 22px;
  }

  .creator-card {
    padding: 28px 22px;
  }
}

.typing-cursor {
  display: inline-block;
  width: 2px;
  margin-left: 2px;
  color: var(--accent);
  animation: blink 1s step-end infinite;
  font-weight: 400;
}

body.dark-mode .typing-cursor {
  color: #5ecf9a;
}

@keyframes blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

.settings-tab-empty .settings-section-feedback .settings-actions {
  position: static;
  margin-top: 12px;
}


.settings-tab-empty .settings-section-feedback .settings-submit {
  padding: 12px 22px;
  font-size: 0.92rem;
}

.settings-tab-empty {
  min-height: calc(100vh - 220px);
  display: flex;
  flex-direction: column;
  gap: 20px;
}


.settings-tab-empty .settings-feedback-form {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.settings-tab-empty .settings-feedback-form textarea {
  min-height: 140px;
  max-height: 40vh;
  resize: vertical;
  width: 100%;
}

.inbox-achievement-top {
  display: flex;
  align-items: center;
  gap: 10px;
}

.inbox-achievement-icon {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-size: 0.95rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

.inbox-achievement-icon.streak-badge {
  border-radius: 999px;
  box-shadow: 0 2px 10px rgba(245, 158, 11, 0.45);
}

.inbox-achievement-meta {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.inbox-achievement-title {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--ink);
  line-height: 1.25;
}

.inbox-achievement-desc {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

.achievement-number {
  font-weight: 800;
  font-size: 0.85rem;
  line-height: 1;
}

.achievement-number.is-large {
  font-size: 0.68rem;
}

.inbox-achievement-icon.owner-style {
  border: 2px solid var(--card);
  box-shadow: 0 3px 10px rgba(0, 162, 0, 0.35);
}

.inbox-achievement-icon.owner-style img {
  margin-bottom: 2px;
}

.inbox-achievement-icon .inbox-badge-svg {
  width: 34px;
  height: 34px;
  object-fit: contain;
  pointer-events: none;
  margin-bottom: 2px;
}

.notif-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.notif-bubble {
  position: absolute;
  top: calc(100% + 12px);
  right: -6px;
  background: linear-gradient(135deg, #1e6f4f, #2a8a62);
  color: #fff;
  padding: 8px 14px;
  border-radius: 14px;
  font-size: 0.85rem;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 10px 26px rgba(16, 32, 24, 0.28);
  z-index: 80;
  pointer-events: none;
  animation: notifBubbleIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.notif-bubble::before {
  content: '';
  position: absolute;
  bottom: 100%;
  right: 16px;
  border: 7px solid transparent;
  border-bottom-color: #1e6f4f;
}

@keyframes notifBubbleIn {
  0% {
    opacity: 0;
    transform: translateY(6px) scale(0.9);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.inbox-secret-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 2;
  padding: 2px 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, #a855f7, #7c3aed);
  color: #fff;
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  box-shadow: 0 2px 8px rgba(124, 58, 237, 0.35);
  pointer-events: none;
}

.inbox-item {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.65);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.profile-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.profile-wrap:hover .profile-button,
.profile-wrap.menu-open .profile-button {
  width: var(--expanded-width);
  padding: 0.35rem;
  justify-content: flex-start;
  transform: translateY(-2px);
  background: rgba(31, 109, 77, 0.12);
  box-shadow:
    0 14px 32px rgba(31, 109, 77, 0.18),
    0 0 0 3px rgba(31, 109, 77, 0.08),
    0 1px 0 rgba(255, 255, 255, 0.5) inset;
}

.profile-wrap:hover .profile-button .button-label,
.profile-wrap.menu-open .profile-button .button-label {
  opacity: 1;
  max-width: 9rem;
  margin-left: 0.5rem;
  transform: translateX(0);
}

.account-switch-btn {
  position: absolute;
  top: 50%;
  right: 0.45rem;
  transform: translateY(-50%);
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: #132219;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.2s ease;
  z-index: 3;
}

.profile-wrap:hover .account-switch-btn,
.profile-wrap.menu-open .account-switch-btn {
  opacity: 1;
  pointer-events: auto;
}

@media (hover: none) {
  .account-switch-btn {
    opacity: 1;
    pointer-events: auto;
  }
}

.account-switch-menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  min-width: 230px;
  padding: 8px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.45) inset,
    0 8px 32px rgba(16, 32, 24, 0.12),
    0 24px 64px rgba(16, 32, 24, 0.08),
    0 0 0 1px rgba(255, 255, 255, 0.35) inset;
  display: none;
  z-index: 80;
}

.account-switch-menu::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 18px;
  padding: 1.2px;
  background: linear-gradient(135deg,
      rgba(255, 255, 255, 0.95) 0%,
      rgba(31, 109, 77, 0.28) 25%,
      rgba(215, 114, 67, 0.22) 50%,
      rgba(31, 109, 77, 0.28) 75%,
      rgba(255, 255, 255, 0.95) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.65;
}

.account-switch-menu.open {
  display: block;
  animation: accountMenuPop 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes accountMenuPop {
  from {
    opacity: 0;
    transform: translateY(-6px) scale(0.96);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.account-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 12px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.account-item img {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid rgba(16, 32, 24, 0.12);
}

.account-item.muted {
  color: var(--muted);
  font-weight: 500;
  cursor: default;
}

.account-item.muted:hover {
  background: transparent;
  transform: none;
}

.account-menu-divider {
  height: 1px;
  margin: 6px 8px;
  background: linear-gradient(90deg, transparent, rgba(16, 32, 24, 0.12), transparent);
}

.account-item .add-icon {
  width: 26px;
  height: 26px;
  border-radius: 9px;
  background: rgba(31, 109, 77, 0.1);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  flex: 0 0 auto;
}

body.dark-mode .profile-wrap:hover .profile-button,
body.dark-mode .profile-wrap.menu-open .profile-button {
  background: rgba(65, 166, 121, 0.1);
  box-shadow:
    0 14px 32px rgba(65, 166, 121, 0.22),
    0 0 0 3px rgba(65, 166, 121, 0.1),
    0 1px 0 rgba(255, 255, 255, 0.04) inset;
}

body.dark-mode .account-switch-btn {
  background: transparent;
  color: #ffffff;
}

body.dark-mode .account-switch-menu {
  background: rgba(18, 28, 23, 0.85);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.06) inset,
    0 8px 32px rgba(0, 0, 0, 0.4),
    0 24px 64px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.06) inset;
}

body.dark-mode .account-switch-menu::before {
  background: linear-gradient(135deg,
      rgba(255, 255, 255, 0.18) 0%,
      rgba(65, 166, 121, 0.25) 25%,
      rgba(217, 139, 98, 0.2) 50%,
      rgba(65, 166, 121, 0.25) 75%,
      rgba(255, 255, 255, 0.18) 100%);
  opacity: 0.45;
}

body.dark-mode .account-item:hover {
  background: rgba(255, 255, 255, 0.07);
}

body.dark-mode .account-item img {
  border-color: rgba(43, 70, 58, 0.9);
}

body.dark-mode .account-menu-divider {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
}

body.dark-mode .account-item .add-icon {
  background: rgba(65, 166, 121, 0.14);
  color: #5ecf9a;
}


.dashboard-layout {
  display: grid;
  gap: 28px;
  max-width: 900px;
  margin: 0 auto;
  padding: 20px 0 40px;
}

.dash-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.dash-greeting h1 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  background: linear-gradient(135deg, var(--ink), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

body.dark-mode .dash-greeting h1 {
  background: linear-gradient(135deg, #e8f4ec, #5ecf9a);
  -webkit-background-clip: text;
  background-clip: text;
}

.dash-subtitle {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 1.1rem;
  font-weight: 500;
}


.dash-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.dash-stat-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid var(--line);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 16px rgba(16, 32, 24, 0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.dash-stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(16, 32, 24, 0.08);
}

body.dark-mode .dash-stat-card {
  background: rgba(22, 35, 29, 0.6);
  border-color: rgba(43, 70, 58, 0.6);
}

.dash-stat-card i {
  font-size: 1.6rem;
  color: var(--accent);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(30, 111, 79, 0.1);
  border-radius: 14px;
  flex-shrink: 0;
}

.dash-stat-info {
  display: flex;
  flex-direction: column;
}

.dash-stat-value {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.2;
}

.dash-stat-label {
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 600;
}


.dash-section-title {
  margin: 0 0 12px;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink);
}

.dash-kotowaza {
  position: relative;
  text-align: center;
  padding: 36px 24px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(30, 111, 79), rgba(215, 114, 67));
  border: 1px solid var(--line);
  overflow: hidden;
}

.kotowaza-badge {
  position: absolute;
  top: 16px;
  right: 20px;
  font-family: "Hina Mincho", serif;
  font-size: 1.2rem;
  color: var(--accent);
  opacity: 0.6;
  letter-spacing: 0.1em;
}

.kotowaza-jp {
  margin: 0 0 8px;
  font-family: "Hina Mincho", serif;
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  font-weight: 400;
  color: var(--ink);
  letter-spacing: 0.05em;
}

.kotowaza-en {
  margin: 0;
  font-size: 1.05rem;
  color: var(--muted);
  font-weight: 500;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

body.dark-mode .dash-kotowaza {
  background: linear-gradient(135deg, rgba(65, 166, 121, 0.08), rgba(217, 139, 98, 0.05));
}

.dash-kotowaza {
  position: relative;
  text-align: center;
  padding: 36px 24px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(30, 111, 79, 0.06), rgba(215, 114, 67, 0.04));
  border: 1px solid var(--line);
  overflow: hidden;
}

.kotowaza-badge {
  position: absolute;
  top: 16px;
  right: 20px;
  font-family: "Hina Mincho", serif;
  font-size: 1.2rem;
  color: var(--accent);
  opacity: 0.6;
  letter-spacing: 0.1em;
}

.kotowaza-jp {
  margin: 0 0 16px;
  line-height: 1.4;
}

.kotowaza-jp ruby {
  font-family: "Hina Mincho", serif;
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  font-weight: 400;
  color: var(--ink);
  letter-spacing: 0.05em;
}

.kotowaza-jp rt {
  font-family: "Fredoka", sans-serif;
  font-size: 0.35em;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.02em;
  font-style: italic;
}

.kotowaza-en {
  margin: 0;
  font-size: 1.05rem;
  color: var(--muted);
  font-weight: 500;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

=body.dark-mode .dash-kotowaza {
  background: linear-gradient(135deg, rgba(65, 166, 121, 0.08), rgba(217, 139, 98, 0.05));
}

body.dark-mode .kotowaza-jp rt {
  color: #5ecf9a;
}

.kotowaza-jp {
  margin: 0 0 16px;
  line-height: 1.6;

}

.kotowaza-jp ruby {
  font-family: "Hina Mincho", serif;
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  font-weight: 400;
  color: var(--ink);
  letter-spacing: 0.05em;
}

.kotowaza-jp rt {
  font-family: "Fredoka", sans-serif;
  font-size: 0.35em;
  font-weight: 500;
  color: var(--muted);
  font-style: normal;
  letter-spacing: 0;
}

body.dark-mode .kotowaza-jp rt {
  color: var(--muted);
}

.landing-ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden
}

.landing-ambient .orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .35;
  animation: orbFloat 18s ease-in-out infinite
}

.landing-ambient .orb-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(31, 109, 77, .35), transparent 70%);
  top: -10%;
  left: -10%;
  animation-delay: 0s
}

.landing-ambient .orb-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(215, 114, 67, .30), transparent 70%);
  top: 35%;
  right: -12%;
  animation-delay: -6s
}

.landing-ambient .orb-3 {
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(31, 109, 77, .22), transparent 70%);
  bottom: -8%;
  left: 35%;
  animation-delay: -12s
}

@keyframes orbFloat {

  0%,
  100% {
    transform: translate(0, 0) scale(1)
  }

  33% {
    transform: translate(40px, -60px) scale(1.08)
  }

  66% {
    transform: translate(-30px, 30px) scale(.95)
  }
}

.landing {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px 100px;
  overflow-x: hidden
}

.landing-hero {
  min-height: calc(100vh - 95px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  perspective: 1200px;
}

.landing-hero-content {
  position: relative;
  z-index: 2;
  max-width: 840px;
  padding: 0 16px
}

.landing-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 28px;
  font-weight: 700;
  letter-spacing: .28em;
  text-transform: uppercase;
  font-size: .72rem;
  color: var(--accent);
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp .8s cubic-bezier(.16, 1, .3, 1) forwards
}

.landing-eyebrow span {
  display: block;
  width: 28px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent))
}

.landing-title {
  margin: 0 0 28px;
  font-weight: 800;
  letter-spacing: -.03em;
  font-size: clamp(2.6rem, 6.5vw, 4.8rem);
  line-height: 1.08;
  color: var(--ink)
}

.landing-title .line {
  display: block;
  overflow: hidden
}

.landing-title .line-inner {
  display: block;
  transform: translateY(110%);
  animation: revealUp 1s cubic-bezier(.16, 1, .3, 1) forwards
}

.landing-title .line:nth-child(1) .line-inner {
  animation-delay: .1s
}

.landing-title .line:nth-child(2) .line-inner {
  animation-delay: .22s
}

.landing-title .grad {
  font-style: normal;
  background: linear-gradient(90deg, var(--accent), #5ecf9a, var(--accent-2), var(--accent));
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradientFlow 5s linear infinite
}

.landing-sub {
  margin: 0 auto 40px;
  max-width: 560px;
  color: var(--muted);
  font-size: 1.15rem;
  line-height: 1.7;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp .8s cubic-bezier(.16, 1, .3, 1) .45s forwards
}

.landing-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp .8s cubic-bezier(.16, 1, .3, 1) .65s forwards
}

.landing-btn-primary {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 36px;
  border-radius: 999px;
  text-decoration: none;
  background: linear-gradient(135deg, var(--accent), #2a8a62);
  color: #fff;
  font-weight: 800;
  font-size: 1.05rem;
  border: none;
  cursor: pointer;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .1) inset, 0 14px 44px rgba(31, 109, 77, .35);
  transition: transform .45s cubic-bezier(.16, 1, .3, 1), box-shadow .4s ease;
  overflow: hidden;
  isolation: isolate
}

.landing-btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .25), transparent);
  transform: translateX(-100%);
  transition: transform .7s ease;
  z-index: -1
}

.landing-btn-primary:hover::before {
  transform: translateX(100%)
}

.landing-btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .15) inset, 0 22px 56px rgba(31, 109, 77, .45)
}

.landing-btn-primary:active {
  transform: scale(.97)
}

.landing-btn-primary i {
  transition: transform .35s cubic-bezier(.34, 1.56, .64, 1)
}

.landing-btn-primary:hover i {
  transform: translateX(5px)
}

.landing-section {
  margin-bottom: 120px;
  text-align: center;
  position: relative
}

.landing-h2 {
  margin: 0 0 14px;
  font-size: clamp(1.7rem, 3.8vw, 2.6rem);
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -.025em
}

.landing-lead {
  margin: 0 auto;
  max-width: 620px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.75
}

.inline-kana {
  font-family: "Fredoka", serif;
  color: var(--accent);
  font-size: 1.15em
}

.landing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px
}

.landing-card {
  position: relative;
  text-align: left;
  padding: 36px 30px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: var(--card);
  backdrop-filter: blur(16px);
  transform-style: preserve-3d;
  transition: transform .5s cubic-bezier(.16, 1, .3, 1), box-shadow .5s ease;
  overflow: hidden;
  opacity: 0;
  transform: translateY(50px) rotateX(8deg)
}

.landing-card.visible {
  opacity: 1;
  transform: translateY(0) rotateX(0)
}

.landing-card:hover {
  box-shadow: 0 24px 64px rgba(16, 32, 24, .1)
}

body.dark-mode .landing-card:hover {
  box-shadow: 0 24px 64px rgba(0, 0, 0, .45)
}

.card-border {
  position: absolute;
  inset: 0;
  border-radius: 24px;
  padding: 1.2px;
  background: linear-gradient(135deg, rgba(31, 109, 77, .4), transparent 40%, transparent 60%, rgba(215, 114, 67, .35));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0;
  transition: opacity .4s ease
}

.landing-card:hover .card-border {
  opacity: 1
}

.card-spotlight {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity .4s ease;
  background: radial-gradient(550px circle at var(--mx, 50%) var(--my, 50%), rgba(31, 109, 77, .09), transparent 40%);
  z-index: 1
}

.landing-card:hover .card-spotlight {
  opacity: 1
}

.landing-card i {
  position: relative;
  z-index: 2;
  font-size: 1.4rem;
  color: var(--accent);
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(31, 109, 77, .1);
  margin-bottom: 22px;
  transition: transform .5s cubic-bezier(.34, 1.56, .64, 1)
}

.landing-card:hover i {
  transform: scale(1.12) rotate(-8deg)
}

body.dark-mode .landing-card i {
  background: rgba(65, 166, 121, .14);
  color: #5ecf9a
}

.landing-card h3 {
  position: relative;
  z-index: 2;
  margin: 0 0 10px;
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--ink)
}

.landing-card p {
  position: relative;
  z-index: 2;
  margin: 0;
  color: var(--muted);
  font-size: .94rem;
  line-height: 1.65
}

.landing-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 120px
}

.landing-stat {
  position: relative;
  padding: 44px 20px;
  border-radius: 24px;
  text-align: center;
  border: 1px solid var(--line);
  background: var(--card);
  backdrop-filter: blur(12px);
  overflow: hidden;
  opacity: 0;
  transform: translateY(30px);
  transition: transform .45s cubic-bezier(.16, 1, .3, 1)
}

.landing-stat.visible {
  opacity: 1;
  transform: translateY(0)
}

.landing-stat:hover {
  transform: translateY(-6px)
}

.stat-glow {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .4s ease;
  pointer-events: none;
  background: radial-gradient(circle at 50% 0%, rgba(31, 109, 77, .12), transparent 60%)
}

.landing-stat:hover .stat-glow {
  opacity: 1
}

.landing-stat b {
  display: block;
  font-size: 2.6rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent), #5ecf9a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
  margin-bottom: 6px
}

.landing-stat b.infinity {
  font-size: 3rem;
  line-height: 1
}

.landing-stat span {
  color: var(--muted);
  font-weight: 600;
  font-size: .88rem
}

.landing-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
  position: relative
}

.step-connector {
  position: absolute;
  top: 28px;
  left: 16%;
  right: 16%;
  height: 2px;
  background: var(--line);
  border-radius: 2px;
  z-index: 0;
  overflow: hidden
}

.step-connector-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: 2px;
  transition: width 1.4s cubic-bezier(.16, 1, .3, 1)
}

.step-connector.visible .step-connector-fill {
  width: 100%
}

.landing-step {
  position: relative;
  padding: 40px 28px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: var(--card);
  text-align: center;
  z-index: 1;
  opacity: 0;
  transform: translateY(30px);
  transition: transform .45s cubic-bezier(.16, 1, .3, 1), box-shadow .4s ease
}

.landing-step.visible {
  opacity: 1;
  transform: translateY(0)
}

.landing-step:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(16, 32, 24, .08)
}

body.dark-mode .landing-step:hover {
  box-shadow: 0 16px 40px rgba(0, 0, 0, .35)
}

.landing-step .num {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent), #5ecf9a);
  color: #fff;
  font-weight: 800;
  font-size: 1.2rem;
  box-shadow: 0 8px 28px rgba(31, 109, 77, .35);
  margin-bottom: 22px;
  position: relative;
  z-index: 2
}

.landing-step h3 {
  margin: 0 0 10px;
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--ink)
}

.landing-step p {
  margin: 0;
  color: var(--muted);
  font-size: .93rem;
  line-height: 1.65
}


.landing-final {
  position: relative;
  text-align: center;
  padding: 100px 40px;
  border-radius: 32px;
  border: 1px solid var(--line);
  overflow: hidden;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .8s cubic-bezier(.16, 1, .3, 1), transform .8s cubic-bezier(.16, 1, .3, 1)
}

.landing-final.visible {
  opacity: 1;
  transform: translateY(0)
}

.landing-final h2 {
  position: relative;
  z-index: 1;
  margin: 0 0 14px;
  font-size: clamp(1.5rem, 3.2vw, 2.2rem);
  font-weight: 800;
  color: var(--ink)
}

.landing-final p {
  position: relative;
  z-index: 1;
  margin: 0 0 36px;
  color: var(--muted);
  font-size: 1.05rem
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0)
  }
}

@keyframes revealUp {
  to {
    transform: translateY(0)
  }
}

@keyframes gradientFlow {
  to {
    background-position: 300% 0
  }
}

@keyframes marqueeScroll {
  to {
    transform: translateX(-50%)
  }
}

@keyframes fadeIn {
  to {
    opacity: 1
  }
}

@keyframes auroraShift {

  0%,
  100% {
    transform: translateX(0) scale(1)
  }

  50% {
    transform: translateX(30px) scale(1.05)
  }
}


.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .8s cubic-bezier(.16, 1, .3, 1), transform .8s cubic-bezier(.16, 1, .3, 1);
  transition-delay: var(--rd, 0s)
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0)
}

@media(max-width:900px) {
  .landing-grid {
    grid-template-columns: repeat(2, 1fr)
  }

  .landing-stats {
    grid-template-columns: repeat(2, 1fr)
  }

  .landing-steps {
    grid-template-columns: 1fr
  }

  .step-connector {
    display: none
  }
}

@media(max-width:560px) {

  .landing-grid,
  .landing-stats {
    grid-template-columns: 1fr
  }

  .landing-hero {
    min-height: calc(100vh - 100px);
    padding-top: 40px
  }

  .landing-final {
    padding: 60px 24px
  }

  .landing-btn-primary {
    padding: 16px 28px;
    font-size: 1rem
  }
}

@media(prefers-reduced-motion:reduce) {

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important
  }

  .reveal {
    opacity: 1;
    transform: none
  }

  .landing-card {
    opacity: 1;
    transform: none
  }

  .landing-stat {
    opacity: 1;
    transform: none
  }

  .landing-step {
    opacity: 1;
    transform: none
  }

  .landing-final {
    opacity: 1;
    transform: none
  }

  .landing-title .line-inner {
    transform: none;
    animation: none
  }

  .landing-eyebrow,
  .landing-sub,
  .landing-cta {
    opacity: 1;
    transform: none;
    animation: none
  }
}


.dash-friends-online {
  margin-bottom: 10px;
}

.dash-friends-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 12px;
}

.dash-friend-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 8px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid var(--line);
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 2px 8px rgba(16, 32, 24, 0.04);
}

.dash-friend-chip:hover {
  transform: translateY(-3px) scale(1.03);
  border-color: var(--accent);
  box-shadow: 0 8px 20px rgba(30, 111, 79, 0.12);
}

body.dark-mode .dash-friend-chip {
  background: rgba(22, 35, 29, 0.6);
  border-color: rgba(43, 70, 58, 0.6);
}

.dash-friend-avatar-wrap {
  position: relative;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.dash-friend-avatar-wrap img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--line);
}

.online-dot {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 10px;
  height: 10px;
  background: #22c55e;
  border: 2px solid var(--card);
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.6);
}

body.dark-mode .online-dot {
  border-color: #16231d;
}

.dash-friends-empty {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  font-style: italic;
}

.online-count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  margin-left: 8px;
  border-radius: 999px;
  background: #1e6f4f color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(34, 197, 94, 0.3);
  vertical-align: middle;
}


.settings-replay-tour {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 14px 18px;
  border-radius: 20px;
  border: 1.5px dashed rgba(31, 109, 77, 0.4);
  background: rgba(31, 109, 77, 0.06);
  color: var(--accent);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
  margin: 0 0 14px;
}

.settings-replay-tour:hover {
  background: rgba(31, 109, 77, 0.12);
  transform: translateY(-1px);
}

body.dark-mode .settings-replay-tour {
  background: rgba(65, 166, 121, 0.08);
  border-color: rgba(65, 166, 121, 0.4);
  color: #5ecf9a;
}

body.dark-mode .settings-replay-tour:hover {
  background: rgba(65, 166, 121, 0.14);
}

.tour-choice {
  display: none;
  gap: 10px;
  margin: -6px 0 14px;
}

.tour-choice.open {
  display: flex;
}

.tour-choice button {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 12px 10px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink);
  font-family: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tour-choice button i {
  font-size: 1.1rem;
  color: var(--accent);
}

.tour-choice button small {
  font-weight: 500;
  color: var(--muted);
  font-size: 0.75rem;
}

.tour-choice button:hover {
  border-color: var(--accent);
  background: #fff;
  transform: translateY(-1px);
}

body.dark-mode .tour-choice button {
  background: rgba(22, 35, 29, 0.7);
}

body.dark-mode .tour-choice button i {
  color: #5ecf9a;
}

body.dark-mode .tour-choice button:hover {
  background: rgba(28, 45, 37, 0.85);
}


.settings-replay-tour {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 14px 18px;
  border-radius: 20px;
  border: 1.5px dashed rgba(31, 109, 77, 0.4);
  background: rgba(31, 109, 77, 0.06);
  color: var(--accent);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  margin: 0 0 14px;
  transition: background-color .2s ease, transform .2s ease;
}

.settings-replay-tour:hover {
  background: rgba(31, 109, 77, 0.12);
  transform: translateY(-1px);
}

body.dark-mode .settings-replay-tour {
  background: rgba(65, 166, 121, 0.08);
  border-color: rgba(65, 166, 121, 0.4);
  color: #5ecf9a;
}

.tour-choice {
  display: none;
  gap: 10px;
  margin: -6px 0 14px;
}

.tour-choice.open {
  display: flex;
}

.tour-choice button {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 12px 10px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink);
  font-family: inherit;
  font-weight: 700;
  font-size: .95rem;
  cursor: pointer;
  transition: all .2s ease;
}

.tour-choice button i {
  font-size: 1.1rem;
  color: var(--accent);
}

.tour-choice button small {
  font-weight: 500;
  color: var(--muted);
  font-size: .75rem;
}

.tour-choice button:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}

body.dark-mode .tour-choice button {
  background: rgba(22, 35, 29, 0.7);
}

.birthday-confetti {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.birthday-confetti .confetti-piece {
  position: absolute;
  width: 10px;
  height: 20px;
  background-color: hsl(39, 100%, 56%);
  top: -24px;
  opacity: 0;
  animation: birthdayRain 3000ms infinite linear;
}

.birthday-confetti .confetti-piece:nth-child(odd) {
  background-color: hsl(0, 100%, 67%);
}

.birthday-confetti .confetti-piece:nth-child(even) {
  z-index: 1;
}

.birthday-confetti .confetti-piece:nth-child(4n) {
  width: 6px;
  height: 14px;
  background-color: #c33764;
}

.birthday-confetti .confetti-piece:nth-child(5n) {
  width: 3px;
  height: 10px;
  background-color: #b06ab3;
}

.birthday-confetti .confetti-piece:nth-child(3n) {
  width: 4px;
  height: 12px;
  background-color: #dd2476;
}

.birthday-confetti .confetti-piece:nth-child(3n-7) {
  background-color: hsl(166, 100%, 37%);
}

@keyframes birthdayRain {
  from {
    opacity: 0;
  }

  50% {
    opacity: 1;
  }

  to {
    transform: translateY(110vh);
  }
}

.dash-birthday-card {
  position: relative;
  text-align: center;
  padding: 30px 24px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.10), rgba(245, 158, 11, 0.10));
  overflow: hidden;
}

.dash-birthday-card .birthday-emoji {
  font-size: 2.2rem;
  margin-bottom: 8px;
}

.dash-birthday-card .birthday-title {
  margin: 0 0 14px;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--ink);
}

.dash-birthday-card .birthday-note {
  margin: 0;
  color: var(--muted);
  font-weight: 600;
}

.btn-congratulate {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, var(--accent), #2a8a62);
  color: #fff;
  font-family: inherit;
  font-weight: 800;
  font-size: 0.95rem;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(31, 109, 77, 0.3);
  transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease;
}

.btn-congratulate:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(31, 109, 77, 0.4);
}

.btn-congratulate:disabled {
  cursor: default;
  opacity: 0.8;
}

.btn-congratulate.done {
  background: linear-gradient(135deg, #F59E0B, #EC4899);
}

body.dark-mode .dash-birthday-card {
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.12), rgba(245, 158, 11, 0.08));
}

.community.bmc {
  background: rgba(255, 221, 0, 0.12);
  --expanded-width: 11.8rem;
}
.community.bmc:hover,
.community.bmc:focus-visible {
  border-color: rgba(255, 221, 0, 0.3);
}
.community.bmc .button-icon .bmc-logo {
  width: 1rem;
  height: auto;
  display: block;
}
body.dark-mode .community.bmc {
  background: rgba(255, 221, 0, 0.14);
}
body.dark-mode .community.bmc:hover,
body.dark-mode .community.bmc:focus-visible {
  border-color: rgba(255, 221, 0, 0.35);
  background: rgba(255, 221, 0, 0.18);
}
body.dark-mode .community.bmc .button-icon .bmc-logo path:last-child {
  fill: #ffffff;
}