@font-face {
  font-family: Fraunces;
  font-style: normal;
  font-weight: 600;
  src: url("../fonts/fraunces-v31-latin-600.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 400;
  src: url("../fonts/inter-v13-latin-regular.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 500;
  src: url("../fonts/inter-v13-latin-500.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "Inter Tight";
  font-style: normal;
  font-weight: 600;
  src: url("../fonts/inter-tight-v7-latin-600.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "Inter Tight";
  font-style: normal;
  font-weight: 700;
  src: url("../fonts/inter-tight-v7-latin-700.woff2") format("woff2");
  font-display: swap;
}

:root {
  --color-neutral-50: #09090b;
  --color-neutral-100: #18181b;
  --color-neutral-200: #27272a;
  --color-neutral-300: #3f3f46;
  --color-neutral-400: #52525b;
  --color-neutral-500: #71717a;
  --color-neutral-600: #a1a1aa;
  --color-neutral-700: #d4d4d8;
  --color-neutral-800: #e4e4e7;
  --color-neutral-900: #f4f4f5;
  --color-neutral-950: #fafafa;

  --color-foreground: var(--color-neutral-950);
  --color-foreground-subtle: var(--color-neutral-600);
  --color-foreground-subtler: var(--color-neutral-500);

  /* 品牌色（与主站一致） */
  --brand: #0bc8a2;
  --brand-deep: #0a9e82;

  /* 弹窗遮罩 / 顶栏背景 */
  --modal-overlay: rgba(9, 9, 11, 0.75);
  --topbar-bg: rgba(9, 9, 11, 0.6);
  --topbar-border: rgba(63, 63, 70, 0.5);
  /* 吸顶导航栏高度（640px 以下为 54px，见底部媒体查询） */
  --topbar-h: 58px;

  --font-body: "Inter", -apple-system, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-heading: "Inter Tight", "Inter", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-display: "Fraunces", "PingFang SC", "Microsoft YaHei", Georgia, serif;

  --font-base-size: 1rem;
  --font-pos-ratio: 1.2;
  --font-neg-ratio: 1.125;
  --font-xlg: calc(var(--font-lg) * var(--font-pos-ratio));
  --font-2xlg: calc(var(--font-xlg) * var(--font-pos-ratio));
  --font-lg: calc(var(--font-md) * var(--font-pos-ratio));
  --font-md: calc(var(--font-base) * var(--font-pos-ratio));
  --font-base: var(--font-base-size);
  --font-sm: calc(var(--font-base) / var(--font-neg-ratio));
  --font-xsm: calc(var(--font-sm) / var(--font-neg-ratio));
  --font-2xsm: calc(var(--font-xsm) / var(--font-neg-ratio));
}

/* ---------- 浅色模式：翻转中性色阶，全局生效 ---------- */
html[data-theme="light"] {
  --color-neutral-50: #fafafa;
  --color-neutral-100: #f4f4f5;
  --color-neutral-200: #e4e4e7;
  --color-neutral-300: #d4d4d8;
  --color-neutral-400: #a1a1aa;
  --color-neutral-500: #71717a;
  --color-neutral-600: #52525b;
  --color-neutral-700: #3f3f46;
  --color-neutral-800: #27272a;
  --color-neutral-900: #18181b;
  --color-neutral-950: #09090b;
  --modal-overlay: rgba(9, 9, 11, 0.35);
  --topbar-bg: rgba(250, 250, 250, 0.6);
  --topbar-border: rgba(63, 63, 70, 0.15);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: var(--font-base);
  color: var(--color-foreground);
  background-color: var(--color-neutral-50);
  -webkit-font-smoothing: antialiased;
}

::selection {
  color: var(--color-foreground);
  background-color: var(--color-neutral-300);
}

button {
  font-family: var(--font-body);
  color: inherit;
}

.container {
  width: 94%;
  max-width: 1200px;
  margin: 0 auto;
}

/* ---------- Hero ---------- */
.hero {
  padding: 90px 0 44px;
  text-align: center;
}
.hero .logo {
  display: block;
  width: 45px;
  margin: 0 auto 12px;
}
.hero .title {
  display: flex;
  column-gap: 15px;
  align-items: center;
}
.hero .title div {
  flex-grow: 1;
  height: 1px;
}
.hero .title div.left {
  background: linear-gradient(90deg, transparent, var(--color-neutral-300));
}
.hero .title div.right {
  background: linear-gradient(90deg, var(--color-neutral-300), transparent);
}
.hero .title h1 {
  font-family: var(--font-display);
  font-size: var(--font-2xlg);
  font-weight: 600;
}
.hero .desc {
  margin-top: 5px;
  line-height: 1.6;
  color: var(--color-foreground-subtle);
}
.hero .sounds {
  position: relative;
  display: flex;
  column-gap: 8px;
  align-items: center;
  justify-content: center;
  width: max-content;
  height: 28px;
  padding-right: 12px;
  margin: 20px auto 0;
  font-size: var(--font-xsm);
  color: var(--color-foreground-subtle);
  background-color: var(--color-neutral-100);
  border: 1px solid var(--color-neutral-200);
  border-radius: 100px;
}
.hero .sounds .icon {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 0 8px 0 12px;
  color: var(--color-foreground);
  border-right: 1px solid var(--color-neutral-200);
}
.hero .sounds:before {
  position: absolute;
  top: -1px;
  left: 50%;
  width: 70%;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, var(--color-neutral-400), transparent);
  transform: translate(-50%);
}

/* ---------- App ---------- */
.app {
  padding-bottom: 40px;
}
.app #anchor {
  position: absolute;
  top: calc(-1 * var(--topbar-h) - 12px);
}
.buttons {
  position: sticky;
  /* 避让吸顶导航栏：停在顶栏下方 20px 处，防止上半截被顶栏盖住 */
  top: calc(var(--topbar-h) + 20px);
  z-index: 10;
  display: flex;
  column-gap: 10px;
  align-items: center;
  justify-content: center;
  width: max-content;
  margin: 0 auto 20px;
}

.play-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 150px;
  height: 45px;
  padding: 0 20px;
  font-family: var(--font-heading);
  font-size: var(--font-base);
  font-weight: 600;
  line-height: 0;
  column-gap: 10px;
  color: var(--color-neutral-200);
  cursor: pointer;
  background-color: var(--color-neutral-950);
  border: 1px solid var(--color-neutral-50);
  border-radius: 100px;
  outline: none;
  transition: 0.2s;
}
.play-button:hover {
  background-color: var(--color-neutral-800);
}
.play-button:disabled,
.play-button.disabled {
  cursor: not-allowed;
  opacity: 0.6;
}
.play-button .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  font-size: var(--font-lg);
}
.play-button .icon svg {
  width: 100%;
  height: 100%;
}

/* ---------- Category ---------- */
.category {
  margin-top: 28px;
}
.category:not(:last-of-type) {
  margin-bottom: 14px;
}
.category .icon-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 10px;
}
.category .icon-container .tail {
  width: 1px;
  height: 50px;
  background: linear-gradient(transparent, var(--color-neutral-300));
}
.category .icon-container .icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  font-size: var(--font-md);
  color: var(--color-foreground-subtle);
  background-color: var(--color-neutral-100);
  border: 1px solid var(--color-neutral-300);
  border-radius: 50%;
}
.category .title {
  font-family: var(--font-display);
  font-size: var(--font-lg);
  font-weight: 600;
  text-align: center;
}

.sounds-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.show-more-button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 45px;
  margin-top: 20px;
  font-family: var(--font-heading);
  font-size: var(--font-sm);
  font-weight: 600;
  color: var(--color-foreground-subtle);
  cursor: pointer;
  background-color: var(--color-neutral-100);
  border: 1px solid var(--color-neutral-200);
  border-radius: 4px;
  outline: none;
  transition: 0.2s;
}
.show-more-button:hover {
  color: var(--color-foreground);
  background-color: var(--color-neutral-200);
}

/* ---------- Sound ---------- */
.sound {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 18px 14px;
  text-align: center;
  background: linear-gradient(var(--color-neutral-100), transparent);
  border: 1px solid var(--color-neutral-200);
  border-radius: 8px;
  cursor: pointer;
  transition: 0.2s;
  user-select: none;
}
.sound.hidden {
  display: none;
}
.sound:not(.selected):before {
  position: absolute;
  top: -1px;
  left: 0;
  width: 100%;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, var(--color-neutral-400), transparent);
}
.sound .icon {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  font-size: var(--font-base);
  color: var(--color-foreground-subtler);
  transition: 0.2s;
}
.sound .icon:after {
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  content: "";
  background-color: var(--color-neutral-50);
  border-radius: 50%;
}
.sound .icon:before {
  position: absolute;
  top: -1px;
  left: -1px;
  z-index: -2;
  width: calc(100% + 2px);
  height: calc(100% + 2px);
  content: "";
  background: linear-gradient(var(--color-neutral-300), var(--color-neutral-100));
  border-radius: 50%;
}
.sound:hover .icon {
  color: var(--color-foreground-subtle);
}
.sound.selected {
  border-color: transparent;
  box-shadow: 0 0 0 2px var(--color-neutral-800);
}
.sound.selected .icon {
  color: var(--color-foreground);
}
.sound h3 {
  margin-top: 6px;
  font-family: var(--font-heading);
  font-size: var(--font-sm);
  font-weight: 600;
  line-height: 1.6;
  cursor: default;
}
.sound .spinner {
  line-height: 0;
  animation: spinner 1s linear infinite;
}
@keyframes spinner {
  0% {
    transform: rotate(0);
  }
  to {
    transform: rotate(360deg);
  }
}

/* ---------- Range ---------- */
.range {
  width: 100%;
  max-width: 120px;
  margin-top: 10px;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  background: transparent;
}
.range:focus {
  outline: none;
}
.range:disabled {
  pointer-events: none;
  cursor: default;
  opacity: 0.5;
}
.range::-webkit-slider-runnable-track {
  height: 0.5rem;
  background-color: var(--color-neutral-200);
  border-radius: 0.5rem;
}
.range::-webkit-slider-thumb {
  width: 14px;
  height: 14px;
  margin-top: -3px;
  -webkit-appearance: none;
  appearance: none;
  background-color: var(--color-neutral-300);
  border: 1px solid var(--color-neutral-400);
  border-radius: 50%;
}
.range:not(:disabled):focus::-webkit-slider-thumb {
  border: 1px solid #053a5f;
  outline: 3px solid #053a5f;
  outline-offset: 0.125rem;
}
.range::-moz-range-track {
  height: 0.5rem;
  background-color: var(--color-neutral-200);
  border-radius: 0.5rem;
}
.range::-moz-range-thumb {
  width: 14px;
  height: 14px;
  margin-top: -3px;
  background-color: var(--color-neutral-300);
  border: 1px solid var(--color-neutral-400);
  border-radius: 50%;
}

/* ---------- Floating menu ---------- */
.menu-wrapper {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 20;
}
.menu-wrapper .menu-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  font-size: var(--font-md);
  color: var(--color-foreground);
  cursor: pointer;
  background-color: var(--color-neutral-100);
  border: 1px solid var(--color-neutral-300);
  border-radius: 50%;
  transition: 0.2s;
}
.menu-wrapper .menu-button:hover {
  background-color: var(--color-neutral-200);
}
.menu-wrapper .menu {
  position: absolute;
  right: 0;
  bottom: 55px;
  display: flex;
  flex-direction: column;
  row-gap: 4px;
  width: 240px;
  padding: 4px;
  background-color: var(--color-neutral-100);
  border: 1px solid var(--color-neutral-300);
  border-radius: 4px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
}
.menu-wrapper .menu[hidden] {
  display: none;
}
.menu-wrapper .menu .menu-item {
  display: flex;
  align-items: center;
  column-gap: 8px;
  width: 100%;
  padding: 12px 8px;
  font-size: var(--font-sm);
  font-weight: 500;
  text-align: left;
  color: var(--color-foreground-subtle);
  cursor: pointer;
  background-color: transparent;
  border: 1px solid var(--color-neutral-200);
  border-radius: 4px;
  outline: none;
  transition: 0.2s;
}
.menu-wrapper .menu .menu-item:hover:not(:disabled) {
  color: var(--color-foreground);
  background-color: var(--color-neutral-200);
}
.menu-wrapper .menu .menu-item:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
.menu-wrapper .menu .menu-item .icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  flex: 0 0 18px;
}
.menu-wrapper .menu .menu-item .icon svg {
  width: 100%;
  height: 100%;
}
.menu-wrapper .menu .menu-item.volume {
  cursor: default;
  column-gap: 10px;
}
.menu-wrapper .menu .menu-item.volume:hover {
  color: var(--color-foreground-subtle);
  background-color: transparent;
}
.menu-wrapper .menu .menu-item.volume .label {
  flex: 0 0 auto;
}
.menu-wrapper .menu .menu-item.volume .range {
  flex: 1 1 auto;
  max-width: none;
  margin-top: 0;
}

/* ---------- Modal ---------- */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 20px;
  background-color: var(--modal-overlay);
}
.modal[hidden] {
  display: none;
}
.modal .content {
  position: relative;
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 40px 20px 20px;
  background-color: var(--color-neutral-100);
  border: 1px solid var(--color-neutral-300);
  border-radius: 8px;
}
.modal .content .close {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  font-size: 16px;
  color: var(--color-foreground-subtle);
  cursor: pointer;
  background-color: transparent;
  border: none;
  outline: none;
  transition: 0.2s;
}
.modal .content .close:hover {
  color: var(--color-foreground);
}
.modal .content h2 {
  margin-bottom: 12px;
  font-family: var(--font-display);
  font-size: var(--font-lg);
  font-weight: 600;
  text-align: center;
}
.modal .content p.desc {
  margin-bottom: 16px;
  font-size: var(--font-sm);
  color: var(--color-foreground-subtle);
  text-align: center;
}
.modal .content .sounds-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  width: 100%;
  padding: 12px;
  margin-top: 12px;
  background-color: var(--color-neutral-50);
  border: 1px solid var(--color-neutral-200);
  border-radius: 4px;
}
.modal .content .sounds-list .chip {
  padding: 8px 16px;
  font-size: var(--font-sm);
  font-weight: 500;
  background-color: var(--color-neutral-100);
  border: 1px solid var(--color-neutral-200);
  border-radius: 100px;
}
.modal .content .footer {
  display: flex;
  column-gap: 8px;
  align-items: center;
  justify-content: flex-end;
  margin-top: 12px;
}
.modal .content .footer .btn {
  padding: 12px 16px;
  font-family: var(--font-heading);
  font-size: var(--font-sm);
  font-weight: 600;
  color: var(--color-foreground-subtle);
  cursor: pointer;
  background-color: var(--color-neutral-200);
  border: none;
  border-radius: 4px;
  outline: none;
  transition: 0.2s;
}
.modal .content .footer .btn:hover {
  color: var(--color-foreground);
  background-color: var(--color-neutral-300);
}
.modal .content .footer .btn.primary {
  color: var(--color-neutral-200);
  background-color: var(--color-neutral-950);
}
.modal .content .footer .btn.primary:hover {
  background-color: var(--color-neutral-800);
}

.timer-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 12px;
}
.timer-presets .chip {
  padding: 8px 14px;
  font-size: var(--font-sm);
  color: var(--color-foreground-subtle);
  cursor: pointer;
  background-color: var(--color-neutral-100);
  border: 1px solid var(--color-neutral-200);
  border-radius: 100px;
  transition: 0.2s;
}
.timer-presets .chip:hover,
.timer-presets .chip.active {
  color: var(--color-foreground);
  background-color: var(--color-neutral-300);
}
.timer-display {
  font-family: var(--font-display);
  font-size: var(--font-2xlg);
  text-align: center;
  margin-bottom: 8px;
  font-variant-numeric: tabular-nums;
}

/* ---------- Snackbar ---------- */
.snackbar-wrapper {
  position: fixed;
  bottom: 20px;
  left: 0;
  z-index: 100;
  width: 100%;
  pointer-events: none;
}
.snackbar-wrapper .snackbar {
  width: max-content;
  max-width: 90%;
  padding: 12px 16px;
  margin: 0 auto;
  font-size: var(--font-sm);
  color: var(--color-foreground);
  background-color: var(--color-neutral-200);
  border: 1px solid var(--color-neutral-300);
  border-radius: 4px;
  opacity: 0;
  transform: translateY(10px);
  transition: 0.25s;
}
.snackbar-wrapper .snackbar.show {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Scroll to top ---------- */
.scroll-wrapper {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 20;
}
.scroll-wrapper .scroll-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  font-size: var(--font-md);
  color: var(--color-foreground);
  cursor: pointer;
  background-color: var(--color-neutral-100);
  border: 1px solid var(--color-neutral-300);
  border-radius: 50%;
  transition: 0.2s;
  opacity: 0;
  pointer-events: none;
}
.scroll-wrapper .scroll-button.show {
  opacity: 1;
  pointer-events: auto;
}
.scroll-wrapper .scroll-button:hover {
  background-color: var(--color-neutral-200);
}

/* ---------- Ready + Footer ---------- */
.ready .wrapper {
  position: relative;
  padding: 0 20px 40px;
  background: linear-gradient(transparent, var(--color-neutral-100));
  border-radius: 0 0 20px 20px;
}
.ready .wrapper:after {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 70%;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, var(--color-neutral-300), transparent);
  transform: translate(-50%);
}
.ready .icon-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 15px;
}
.ready .icon-container .tail {
  width: 1px;
  height: 75px;
  background: linear-gradient(transparent, var(--color-neutral-300));
}
.ready .icon-container .icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  font-size: var(--font-md);
  background-color: var(--color-neutral-100);
  border: 1px solid var(--color-neutral-300);
  border-radius: 50%;
}
.ready .title {
  margin-bottom: 12px;
  font-family: var(--font-display);
  font-size: var(--font-lg);
  font-weight: 600;
  text-align: center;
}
.ready .desc {
  color: var(--color-foreground-subtle);
  text-align: center;
}
.ready .button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 120px;
  height: 40px;
  margin: 24px auto 0;
  font-family: var(--font-heading);
  font-size: var(--font-sm);
  line-height: 0;
  color: var(--color-neutral-200);
  text-decoration: none;
  cursor: pointer;
  background-color: var(--color-neutral-950);
  border: none;
  border-radius: 100px;
  outline: none;
  transition: 0.2s;
}
.ready .button:hover {
  background-color: var(--color-neutral-800);
}

.footer {
  display: flex;
  align-items: center;
  height: 100px;
}
.footer p {
  font-size: var(--font-sm);
  color: var(--color-foreground-subtle);
  text-align: center;
}
.footer p a {
  font-weight: 500;
  color: var(--color-foreground);
  text-decoration: none;
}
.footer p a span {
  color: #c0eb75;
}

@media (max-width: 640px) {
  .hero {
    padding: 80px 0 36px;
  }
  .sounds-grid {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
  }
}
@media (max-width: 520px) {
  .hero {
    padding: 70px 0 32px;
  }
  .sounds-grid {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
  }
}

/* ---------- 顶部栏（角标 + 主题切换 + 返回主站） ---------- */
.site-top {
  position: sticky;
  top: 0;
  z-index: 30;
  background-color: var(--topbar-bg);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--topbar-border);
}
.top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
  gap: 12px;
}
/* 左上角品牌角标：与主站导航完全一致（logo 34px + 站名 20px/800/字距1px） */
.corner-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--color-foreground);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s;
}
.corner-brand .corner-logo {
  height: 34px;
  width: auto;
  object-fit: contain;
  display: block;
}
.corner-brand:hover .corner-name {
  color: var(--brand);
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
/* 深浅色切换按钮 */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  font-size: 16px;
  color: var(--color-foreground);
  cursor: pointer;
  background-color: var(--color-neutral-100);
  border: 1px solid var(--color-neutral-300);
  border-radius: 50%;
  flex: 0 0 auto;
  transition: 0.2s;
}
.theme-toggle:hover {
  background-color: var(--color-neutral-200);
  border-color: var(--brand);
}
.theme-toggle svg {
  width: 18px;
  height: 18px;
}
/* 返回主站按钮（品牌渐变） */
.back-home {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 18px;
  font-size: var(--font-sm);
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  border-radius: 100px;
  box-shadow: 0 4px 14px rgba(11, 201, 162, 0.28);
  white-space: nowrap;
  transition: transform 0.2s, box-shadow 0.2s;
}
.back-home:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(11, 201, 162, 0.4);
}
.back-home .back-arrow {
  font-size: 14px;
  line-height: 1;
}

@media (max-width: 640px) {
  :root {
    --topbar-h: 54px;
  }
  .corner-brand {
    font-size: 17px;
    letter-spacing: 0.5px;
  }
  .back-home {
    padding: 0 14px;
  }
  .top-inner {
    min-height: 54px;
  }
}

