/* MeTube Sender website. Same dark palette as the extension (ui/base.css). */

:root {
  color-scheme: dark;
  --bg: #0f1115;
  --surface: #161920;
  --surface-2: #1d212a;
  --surface-3: #252a35;
  --border: #2a2f3a;
  --border-strong: #3a4150;
  --text: #e6e8ee;
  --muted: #8b93a4;
  --accent: #4f8cff;
  --accent-hover: #6a9dff;
  --ok: #3fb950;
  --error: #ff6b61;
  --warn: #e3a52f;
  --red-1: #ff5b4f;
  --red-2: #d9252e;
  --radius: 10px;
  --radius-lg: 16px;
  --focus: 0 0 0 3px rgba(79, 140, 255, 0.45);
  --font: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: ui-monospace, 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace;
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1120px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
}

body {
  margin: 0;
  background:
    radial-gradient(900px 500px at 12% -10%, rgba(217, 37, 46, 0.22), transparent 60%),
    radial-gradient(800px 500px at 90% -5%, rgba(79, 140, 255, 0.18), transparent 60%),
    var(--bg);
  color: var(--text);
  font: 16px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

code,
kbd,
pre {
  font-family: var(--mono);
  font-size: 0.9em;
}

code {
  padding: 1px 5px;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: var(--surface-2);
  overflow-wrap: anywhere;
}

pre code {
  padding: 0;
  border: 0;
  background: none;
}

kbd {
  display: inline-block;
  min-width: 1.7em;
  padding: 1px 6px;
  border: 1px solid var(--border-strong);
  border-bottom-width: 2px;
  border-radius: 6px;
  background: var(--surface-3);
  font-size: 0.82em;
  line-height: 1.5;
  text-align: center;
}

b {
  font-weight: 600;
}

.muted {
  color: var(--muted);
}

:focus-visible {
  outline: none;
  box-shadow: var(--focus);
  border-radius: 6px;
}

.skip {
  position: absolute;
  top: -60px;
  left: 16px;
  z-index: 100;
  padding: 8px 12px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
}

.skip:focus {
  top: 12px;
}

/* ---------- Header ---------- */

.top {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px var(--gutter);
  border-bottom: 1px solid rgba(42, 47, 58, 0.7);
  background: rgba(15, 17, 21, 0.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.brand:hover {
  text-decoration: none;
}

.nav {
  display: flex;
  flex: 1;
  gap: 2px;
  justify-content: center;
  overflow-x: auto;
  scrollbar-width: none;
}

.nav::-webkit-scrollbar {
  display: none;
}

.nav a {
  padding: 6px 10px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 14px;
  white-space: nowrap;
}

.nav a:hover,
.nav a.active {
  background: var(--surface-2);
  color: var(--text);
  text-decoration: none;
}

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

.gh {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  color: var(--muted);
}

.gh:hover {
  background: var(--surface-2);
  color: var(--text);
}

.lang {
  position: relative;
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  height: 32px;
  padding: 3px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font: 600 12px/1 var(--font);
  cursor: pointer;
}

.lang span {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 34px;
  transition: color 0.2s;
}

.lang i {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 34px;
  height: 24px;
  border-radius: 999px;
  background: var(--accent);
  transition: transform 0.25s var(--ease);
}

html[lang='fr'] .lang i {
  transform: translateX(34px);
}

html[lang='en'] .lang [data-lang='en'],
html[lang='fr'] .lang [data-lang='fr'] {
  color: #fff;
}

/* ---------- Layout ---------- */

main {
  display: block;
}

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(56px, 8vw, 96px) var(--gutter) 0;
}

.section-head {
  max-width: 720px;
  margin-bottom: 32px;
}

.kicker {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h2 {
  margin: 0;
  font-size: clamp(26px, 3.6vw, 38px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

h3 {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.section-lead {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 17px;
}

.section-lead b,
.section-lead code {
  color: var(--text);
}

p {
  margin: 0 0 10px;
}

p:last-child {
  margin-bottom: 0;
}

.grid {
  display: grid;
  gap: 16px;
}

.grid.features {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid.two {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  margin-top: 16px;
}

.grid.four {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.card {
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 40%), var(--surface);
}

.card p {
  color: var(--muted);
  font-size: 15px;
}

.card p b,
.card p code,
.card li b,
.card li code {
  color: var(--text);
}

.card.small {
  padding: 18px 20px;
}

.card.wide {
  margin-top: 16px;
}

.card-art {
  display: grid;
  place-items: center;
  height: 118px;
  margin: -6px -6px 18px;
  border-radius: 12px;
  background:
    radial-gradient(300px 120px at 50% 120%, rgba(79, 140, 255, 0.16), transparent 70%),
    var(--surface-2);
  overflow: hidden;
}

.note {
  max-width: 720px;
  margin: 22px 0 0;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  background: var(--surface);
  color: var(--muted);
  font-size: 14.5px;
}

.bullets {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 15px;
}

.bullets li + li {
  margin-top: 8px;
}

details.more {
  max-width: 820px;
  margin-top: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

details.more summary,
.faq summary {
  padding: 12px 16px;
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}

summary::-webkit-details-marker {
  display: none;
}

details.more summary::before,
.faq summary::before {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  margin: 0 12px 2px 0;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(-45deg);
  transition: transform 0.2s;
}

details[open] > summary::before {
  transform: rotate(45deg);
}

details.more > :not(summary) {
  margin: 0 16px 16px;
  color: var(--muted);
  font-size: 15px;
}

details.more > .bullets {
  padding-left: 34px;
}

/* Reveal on scroll */

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 0.6s var(--ease),
    transform 0.6s var(--ease);
}

.reveal.in {
  opacity: 1;
  transform: none;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 18px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--surface-2);
  color: var(--text);
  font: 600 15px/1 var(--font);
  cursor: pointer;
  white-space: nowrap;
  transition:
    background-color 0.15s,
    border-color 0.15s,
    transform 0.15s;
}

.btn:hover {
  border-color: #4a5264;
  background: var(--surface-3);
  text-decoration: none;
}

.btn.primary {
  border-color: transparent;
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 30px rgba(79, 140, 255, 0.28);
}

.btn.primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.btn.small {
  height: 32px;
  padding: 0 12px;
  font-size: 13px;
  box-shadow: none;
}

/* ---------- Hero ---------- */

.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(40px, 7vw, 88px) var(--gutter) 0;
}

.hero-text {
  max-width: 760px;
}

.eyebrow {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 20px;
}

.eyebrow span {
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

h1 {
  margin: 0 0 18px;
  font-size: clamp(36px, 6vw, 68px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.04;
  background: linear-gradient(135deg, #fff 0%, #dfe5f2 55%, #9fb7ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  max-width: 640px;
  margin: 0 0 26px;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 20px);
}

.lead a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--border-strong);
  text-underline-offset: 3px;
}

.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-note {
  margin: 14px 0 0;
  font-size: 13.5px;
}

/* ---------- Teaser ---------- */

.teaser {
  position: relative;
  margin-top: clamp(36px, 5vw, 64px);
  padding-bottom: 44px;
}

.browser {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  background: #0b0d11;
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.03) inset;
  font-size: 12px;
  user-select: none;
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 42px;
  padding: 0 12px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.dots {
  display: flex;
  gap: 6px;
}

.dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #3a4150;
}

.omnibox {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 10px;
  border-radius: 13px;
  background: var(--bg);
  color: var(--muted);
  overflow: hidden;
  white-space: nowrap;
}

.lock {
  font-size: 10px;
}

.ext-icons {
  display: flex;
  align-items: center;
  gap: 6px;
}

.ext-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  color: var(--muted);
  transition: background-color 0.2s;
}

.ext-icon.hot {
  background: var(--surface-3);
}

.badge {
  position: absolute;
  right: -3px;
  bottom: -3px;
  min-width: 14px;
  height: 14px;
  padding: 0 3px;
  border-radius: 7px;
  background: var(--accent);
  color: #fff;
  font: 700 9px/14px var(--font);
  text-align: center;
  opacity: 0;
  transform: scale(0.4);
  transition:
    transform 0.3s cubic-bezier(0.3, 1.6, 0.5, 1),
    opacity 0.2s;
}

.badge.on {
  opacity: 1;
  transform: none;
}

.browser-body {
  position: relative;
  height: clamp(300px, 46vw, 500px);
  overflow: hidden;
}

/* Fake YouTube page */

.yt {
  display: grid;
  grid-template-columns: 1fr 240px;
  gap: 22px;
  height: 100%;
  padding: 20px 24px;
}

.yt-player {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  background:
    radial-gradient(60% 80% at 30% 30%, rgba(255, 91, 79, 0.18), transparent 60%),
    linear-gradient(160deg, #1a1f2b, #0d1016);
}

.yt-play {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 56px;
  height: 40px;
  border-radius: 10px;
  background: #ff0033;
  transform: translate(-50%, -50%);
}

.yt-play::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 55%;
  border-style: solid;
  border-width: 8px 0 8px 14px;
  border-color: transparent transparent transparent #fff;
  transform: translate(-50%, -50%);
}

.yt-title {
  margin-top: 12px;
  font-size: 14px;
  font-weight: 600;
}

.yt-lines,
.yt-item span {
  display: grid;
  gap: 6px;
  margin-top: 8px;
}

.yt-lines b,
.yt-item b {
  display: block;
  height: 8px;
  border-radius: 4px;
  background: var(--surface-3);
}

.yt-side {
  display: grid;
  align-content: start;
  gap: 12px;
}

.yt-item {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 10px;
  padding: 4px;
  border-radius: 8px;
  transition: background-color 0.2s;
}

.yt-item.hot {
  background: var(--surface-2);
}

.yt-item i {
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  background: linear-gradient(150deg, #2a3040, #171b23);
}

.yt-item span {
  margin-top: 2px;
}

/* Context menus */

.ctx {
  position: absolute;
  z-index: 5;
  min-width: 190px;
  padding: 5px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  background: rgba(29, 33, 42, 0.98);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transform: scale(0.96);
  transform-origin: top left;
  transition:
    opacity 0.15s,
    transform 0.15s;
  pointer-events: none;
}

.ctx.show {
  opacity: 1;
  transform: none;
}

.ctx-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 22px 5px 10px;
  border-radius: 5px;
  white-space: nowrap;
}

.ctx-item.has-sub::after,
.chev {
  position: absolute;
  right: 8px;
  color: var(--muted);
}

.ctx-item.has-sub::after {
  content: '›';
}

.ctx-item.has-sub .chev {
  display: none;
}

.ctx-item.hover {
  background: var(--accent);
  color: #fff;
}

.ctx-item.hover::after {
  color: #fff;
}

.ctx-sep {
  height: 1px;
  margin: 4px 6px;
  background: var(--border-strong);
}

/* Toast */

.t-toast {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  background: rgba(29, 33, 42, 0.98);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.5);
  font-size: 12.5px;
  opacity: 0;
  transform: translateY(-8px);
  transition:
    opacity 0.25s,
    transform 0.25s var(--ease);
}

.t-toast.show {
  opacity: 1;
  transform: none;
}

/* Popup */

.t-popup {
  position: absolute;
  top: 8px;
  right: 10px;
  z-index: 7;
  width: 300px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  background: var(--bg);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.6);
  opacity: 0;
  transform: translateY(-6px) scale(0.98);
  transform-origin: top right;
  transition:
    opacity 0.2s,
    transform 0.2s var(--ease);
  pointer-events: none;
}

.t-popup.show {
  opacity: 1;
  transform: none;
}

.t-popup-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
  font-weight: 600;
}

.gear {
  width: 12px;
  height: 12px;
  margin-left: auto;
  border: 2px dotted var(--muted);
  border-radius: 50%;
}

.t-popup-current {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 10px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
}

.t-popup-current > div {
  flex: 1;
  min-width: 0;
}

.t-popup-current small {
  display: block;
  color: var(--muted);
  font-size: 9.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.t-ellipsis {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.t-btn {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 10px;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  background: var(--surface-2);
  font-weight: 600;
  white-space: nowrap;
}

.t-btn.primary {
  border-color: transparent;
  background: var(--accent);
  color: #fff;
}

.t-btn.danger {
  border-color: transparent;
  background: var(--error);
  color: #fff;
}

.t-btn.ghost {
  border-color: transparent;
  background: none;
  color: var(--muted);
}

.t-btn.hot {
  filter: brightness(1.15);
}

.t-popup-head {
  display: flex;
  gap: 10px;
  padding: 0 12px 6px;
  color: var(--muted);
}

.t-popup-head em {
  color: var(--accent);
  font-style: normal;
}

.t-popup-head em:first-of-type {
  margin-left: auto;
}

.t-popup-list {
  margin: 0 10px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  list-style: none;
}

.t-popup-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
}

.t-popup-list li + li {
  border-top: 1px solid var(--border);
}

.t-popup-list span {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chk {
  width: 13px;
  height: 13px;
  border: 1px solid var(--border-strong);
  border-radius: 3px;
  background: var(--bg);
  flex: none;
}

.chk.small {
  width: 11px;
  height: 11px;
}

.chk.on {
  border-color: var(--accent);
  background: var(--accent) center / 9px no-repeat
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.5l2.5 2.5 4.5-5' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.t-popup-list .ok {
  width: 12px;
  color: var(--ok);
  opacity: 0;
  transition: opacity 0.2s;
}

.t-popup-list li.sent .ok {
  opacity: 1;
}

.t-popup-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 10px;
  padding: 8px 10px;
  border-top: 1px solid var(--border);
  background: var(--surface);
  border-radius: 0 0 10px 10px;
}

.t-popup-foot label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
}

/* Overlay player */

.t-overlay {
  position: absolute;
  inset: 0;
  z-index: 8;
  container-type: size;
  display: grid;
  place-items: center;
  background: rgba(6, 7, 10, 0.92);
  opacity: 0;
  transition: opacity 0.35s;
  pointer-events: none;
}

.t-overlay.show {
  opacity: 1;
}

.t-dialog {
  display: flex;
  flex-direction: column;
  gap: 8px;
  /* 16:9 stage that fits both dimensions, with room for the header and footer. */
  width: min(80%, calc((100cqh - 96px) * 16 / 9));
  transform: translateY(10px);
  transition: transform 0.4s var(--ease);
}

.t-overlay.show .t-dialog {
  transform: none;
}

.t-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
}

.t-head .t-ellipsis {
  flex: 1;
}

.t-head i {
  width: 14px;
  height: 14px;
  border: 2px solid var(--muted);
  border-radius: 3px;
}

.t-head i.x {
  position: relative;
  border: 0;
}

.t-head i.x::before,
.t-head i.x::after {
  content: '';
  position: absolute;
  top: 6px;
  left: -1px;
  width: 16px;
  height: 2px;
  background: var(--muted);
  transform: rotate(45deg);
}

.t-head i.x::after {
  transform: rotate(-45deg);
}

.t-stage {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #000;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.t-status,
.t-video,
.t-end {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.3s;
}

.t-status.show,
.t-video.show,
.t-end.show {
  opacity: 1;
}

.t-status,
.t-end {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px;
  background: var(--surface);
  font-size: 13px;
  text-align: center;
}

.t-status small {
  color: var(--muted);
  min-height: 1em;
}

.t-spinner {
  width: 22px;
  height: 22px;
  border: 3px solid var(--muted);
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.t-progress {
  width: min(320px, 70%);
  height: 6px;
  overflow: hidden;
  border-radius: 3px;
  background: var(--surface-2);
  opacity: 0;
  transition: opacity 0.2s;
}

.t-progress.show {
  opacity: 1;
}

.t-progress b {
  display: block;
  width: 0;
  height: 100%;
  border-radius: 3px;
  background: var(--accent);
  transition: width 0.35s linear;
}

/* The playing "video": a little animated scene, no media file */

.t-scene {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: linear-gradient(180deg, #87c6ff 0%, #d9efff 60%, #bfe28a 60%, #8ec95d 100%);
}

.t-sun {
  position: absolute;
  top: 12%;
  left: 14%;
  width: 12%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #ffe27a;
  box-shadow: 0 0 40px 10px rgba(255, 226, 122, 0.6);
}

.t-hill {
  position: absolute;
  bottom: 20%;
  width: 70%;
  aspect-ratio: 3 / 1;
  border-radius: 50% 50% 0 0;
  background: #7bbd4f;
}

.t-hill.a {
  left: -15%;
}

.t-hill.b {
  right: -25%;
  bottom: 24%;
  background: #6aa946;
}

.t-bunny {
  position: absolute;
  bottom: 22%;
  left: 40%;
  width: 7%;
  aspect-ratio: 1 / 1.3;
  border-radius: 45% 45% 40% 40%;
  background: #f3f3f3;
  box-shadow:
    -1.2vw -2.2vw 0 -0.4vw #f3f3f3,
    1.2vw -2.2vw 0 -0.4vw #f3f3f3;
}

.t-video.show .t-bunny {
  animation: hop 1.6s ease-in-out infinite;
}

@keyframes hop {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(6vw, -3vw);
  }
}

.t-sub {
  position: absolute;
  right: 0;
  bottom: 40px;
  left: 0;
  text-align: center;
  color: #fff;
  font-size: 13px;
  text-shadow:
    0 0 4px #000,
    0 0 6px #000;
}

.t-controls {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.65));
  color: #fff;
  font-size: 11px;
}

.t-controls i {
  width: 12px;
  height: 12px;
  border: 2px solid #f2f4f8;
  border-radius: 2px;
  flex: none;
}

.t-controls i.pl {
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 6px 0 6px 10px;
  border-color: transparent transparent transparent #fff;
  border-radius: 0;
}

.t-controls i.dots3 {
  border: 0;
  background: radial-gradient(circle, #fff 1.5px, transparent 2px) 0 50% / 4px 4px repeat-x;
}

.t-range {
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.22);
}

.t-range b {
  display: block;
  width: 0;
  height: 100%;
  border-radius: 2px;
  background: var(--accent);
  transition: width 0.4s linear;
}

.t-end svg {
  color: var(--ok);
}

.t-end-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
}

.t-foot {
  color: var(--muted);
  font-size: 10.5px;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Key caps, cursor, captions */

.t-keys {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 9;
  display: flex;
  gap: 6px;
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 0.25s,
    transform 0.25s var(--ease);
}

.t-keys.show {
  opacity: 1;
  transform: none;
}

.t-keys kbd {
  min-width: 44px;
  padding: 8px 10px;
  border-color: #4a5264;
  border-bottom-width: 4px;
  border-radius: 8px;
  background: var(--surface-3);
  font-size: 13px;
  font-weight: 600;
  transition:
    transform 0.12s,
    border-bottom-width 0.12s;
}

.t-keys.press kbd {
  border-bottom-width: 1px;
  transform: translateY(3px);
}

.t-cursor {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 20;
  opacity: 0;
  transition:
    transform 0.55s var(--ease),
    opacity 0.3s;
  pointer-events: none;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.6));
}

.t-cursor.show {
  opacity: 1;
}

.t-cursor .ring {
  position: absolute;
  top: -8px;
  left: -8px;
  width: 22px;
  height: 22px;
  border: 2px solid #fff;
  border-radius: 50%;
  opacity: 0;
}

.t-cursor.click .ring {
  animation: ring 0.45s ease-out;
}

.t-cursor.right .ring {
  border-color: var(--accent);
}

@keyframes ring {
  from {
    opacity: 0.9;
    transform: scale(0.4);
  }
  to {
    opacity: 0;
    transform: scale(1.8);
  }
}

.t-captions {
  position: relative;
  height: 44px;
  margin-top: 18px;
  text-align: center;
}

.t-captions p {
  position: absolute;
  inset: 0;
  margin: 0;
  color: var(--muted);
  font-size: clamp(14px, 1.8vw, 17px);
  opacity: 0;
  transform: translateY(6px);
  transition:
    opacity 0.35s,
    transform 0.35s var(--ease);
}

.t-captions p.show {
  opacity: 1;
  transform: none;
  color: var(--text);
}

.t-steps {
  position: absolute;
  bottom: 0;
  left: 50%;
  display: flex;
  gap: 8px;
  transform: translateX(-50%);
}

.t-steps i {
  width: 22px;
  height: 4px;
  border-radius: 2px;
  background: var(--border-strong);
  transition: background-color 0.3s;
}

.t-steps i.on {
  background: var(--accent);
}

.t-replay {
  position: absolute;
  right: 0;
  bottom: -6px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
}

.t-replay:hover {
  color: var(--text);
}

/* ---------- Feature card illustrations ---------- */

.mini-menu,
.mini-popup {
  display: grid;
  gap: 3px;
  width: 78%;
  padding: 6px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  background: rgba(29, 33, 42, 0.98);
  font-size: 12px;
}

.mini-menu span,
.mini-popup span {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 8px;
  border-radius: 4px;
  white-space: nowrap;
  overflow: hidden;
}

.mini-menu span:first-child {
  background: var(--accent);
  color: #fff;
}

.mini-popup i {
  width: 12px;
  height: 12px;
  border: 1px solid var(--accent);
  border-radius: 3px;
  background: var(--accent);
  flex: none;
}

.mini-popup b {
  margin-left: auto;
  color: var(--ok);
}

.mini-player {
  position: relative;
  width: 70%;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  background: linear-gradient(160deg, #1a1f2b, #0d1016);
  overflow: hidden;
}

.mini-player b {
  position: absolute;
  top: 40%;
  left: 47%;
  border-style: solid;
  border-width: 9px 0 9px 15px;
  border-color: transparent transparent transparent #fff;
}

.mini-player .bar {
  position: absolute;
  right: 10px;
  bottom: 10px;
  left: 10px;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.2);
}

.mini-player .bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 55%;
  height: 100%;
  border-radius: 2px;
  background: var(--accent);
}

.mini-url {
  display: grid;
  gap: 8px;
  font: 12px var(--mono);
  text-align: center;
}

.mini-url s {
  color: var(--muted);
}

.mini-url em {
  padding: 4px 10px;
  border: 1px solid rgba(63, 185, 80, 0.4);
  border-radius: 6px;
  background: rgba(63, 185, 80, 0.1);
  color: var(--ok);
  font-style: normal;
}

.mini-badge {
  position: relative;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: var(--surface-3);
}

.mini-badge b {
  position: absolute;
  right: -6px;
  bottom: -6px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  line-height: 20px;
  text-align: center;
  animation: badge-swap 4s infinite;
}

.mini-badge b.err {
  background: var(--error);
  animation-delay: 2s;
  opacity: 0;
}

@keyframes badge-swap {
  0%,
  45% {
    opacity: 1;
  }
  50%,
  95% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

.mini-lang {
  display: flex;
  gap: 10px;
}

.mini-lang span {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: var(--surface-3);
  font-weight: 700;
  animation: lang-pulse 3s infinite;
}

.mini-lang span:last-child {
  animation-delay: 1.5s;
}

@keyframes lang-pulse {
  0%,
  100% {
    border-color: var(--border-strong);
    color: var(--muted);
  }
  50% {
    border-color: var(--accent);
    color: var(--text);
  }
}

/* ---------- Install ---------- */

.tabs {
  display: inline-flex;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
}

.tab {
  padding: 7px 18px;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--muted);
  font: 600 14px var(--font);
  cursor: pointer;
}

.tab[aria-selected='true'] {
  background: var(--surface-3);
  color: var(--text);
}

.install-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
  margin-top: 24px;
}

.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  position: relative;
  padding: 0 0 22px 48px;
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  top: -2px;
  left: 0;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  background: var(--surface);
  font-weight: 700;
  font-size: 14px;
}

.steps li:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 32px;
  bottom: 2px;
  left: 16px;
  border-left: 1px dashed var(--border-strong);
}

.steps li[data-browser] {
  display: none;
}

.install[data-browser='chrome'] .steps li[data-browser='chrome'],
.install[data-browser='arc'] .steps li[data-browser='arc'] {
  display: block;
}

/* Fake chrome://extensions page */

.ext-page {
  padding: 14px;
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  background: #0b0d11;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  font-size: 13px;
}

.ext-page-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.ext-page-url {
  padding: 4px 10px;
  border-radius: 12px;
  background: var(--surface);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
}

.ext-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
}

.ext-toggle i {
  position: relative;
  width: 34px;
  height: 18px;
  border-radius: 9px;
  background: var(--accent);
}

.ext-toggle i::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 18px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
}

.ext-page-actions {
  display: flex;
  gap: 8px;
  padding: 12px 0;
}

.ext-btn {
  padding: 5px 12px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  color: var(--muted);
}

.ext-btn.hot {
  position: relative;
  border-color: var(--accent);
  color: var(--text);
  box-shadow: 0 0 0 4px rgba(79, 140, 255, 0.18);
  animation: pulse 2.2s infinite;
}

@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 0 0 4px rgba(79, 140, 255, 0.18);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(79, 140, 255, 0.06);
  }
}

.ext-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
}

.ext-card b {
  display: block;
}

.ext-card small {
  color: var(--muted);
  font-weight: 400;
}

.ext-card p {
  margin: 4px 0 8px;
  color: var(--muted);
  font-size: 12px;
}

.ext-card-links {
  display: flex;
  gap: 14px;
  color: var(--accent);
  font-size: 12px;
}

.ext-card-error {
  color: var(--muted);
}

.ext-switch {
  align-self: start;
  position: relative;
  width: 34px;
  height: 18px;
  border-radius: 9px;
  background: var(--accent);
}

.ext-switch::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 18px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
}

/* ---------- Configure ---------- */

.configure {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}

.settings-mock {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  background: var(--bg);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  font-size: 13px;
}

.sm-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.sm-head span {
  color: var(--muted);
}

.settings-mock label {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.settings-mock label > span {
  color: var(--muted);
  font-size: 12px;
}

.sm-input {
  display: flex;
  align-items: center;
  height: 32px;
  padding: 0 10px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  background: var(--surface);
  font-style: normal;
  overflow: hidden;
  white-space: nowrap;
}

.sm-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 10px;
}

.sm-seg {
  display: inline-grid;
  grid-auto-flow: column;
  height: 32px;
  padding: 3px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  background: var(--surface);
  font-style: normal;
}

.sm-seg b {
  display: grid;
  place-items: center;
  padding: 0 12px;
  border-radius: 5px;
  color: var(--muted);
  font-weight: 500;
}

.sm-seg b.on {
  background: var(--surface-3);
  color: var(--text);
}

.sm-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding-top: 6px;
}

.sm-result {
  flex-basis: 100%;
  min-height: 1.4em;
  color: var(--muted);
  font-size: 12.5px;
}

.sm-result.ok {
  color: var(--ok);
}

.settings {
  margin: 0;
  display: grid;
  gap: 2px;
}

.settings > div {
  display: grid;
  gap: 4px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.settings dt {
  font-weight: 600;
}

.settings dd {
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
}

.settings dd code {
  color: var(--text);
}

/* ---------- Menu demo ---------- */

.menu-demo {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr);
  gap: 32px;
  align-items: start;
}

.segmented {
  display: inline-flex;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
}

.segmented label {
  position: relative;
}

.segmented input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.segmented span {
  display: block;
  padding: 7px 16px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.segmented input:checked + span {
  background: var(--surface-3);
  color: var(--text);
}

.segmented input:focus-visible + span {
  box-shadow: var(--focus);
}

.menu-help {
  min-height: 3em;
  margin: 12px 0 18px;
  color: var(--muted);
}

.menu-notes {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 14.5px;
}

.menu-notes li + li {
  margin-top: 10px;
}

.menu-notes b,
.menu-notes code {
  color: var(--text);
}

.menu-stage {
  position: sticky;
  top: 90px;
  min-height: 420px;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background:
    radial-gradient(400px 200px at 80% 0%, rgba(79, 140, 255, 0.12), transparent 70%),
    repeating-linear-gradient(0deg, transparent 0 23px, rgba(255, 255, 255, 0.025) 23px 24px),
    var(--surface);
  font-size: 13px;
}

.menu-root {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 4px;
  width: max-content;
  max-width: 100%;
}

.m {
  position: relative;
  min-width: 210px;
  padding: 5px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  background: rgba(29, 33, 42, 0.98);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.5);
  animation: menu-in 0.2s var(--ease);
}

/* Opacity only: a transform would skew the measurements fitSubmenus() makes. */
@keyframes menu-in {
  from {
    opacity: 0;
  }
}

.m-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 24px 5px 10px;
  border-radius: 5px;
  white-space: nowrap;
}

.m-item.oneclick {
  font-weight: 600;
}

.m-item .hint {
  margin-left: auto;
  color: var(--muted);
  font-size: 11px;
}

.m-item.root {
  background: var(--accent);
  color: #fff;
}

.menu-root > .m:first-child {
  min-width: 0;
}

.m-item.has-sub::after {
  content: '›';
  position: absolute;
  right: 9px;
  color: var(--muted);
}

.m-item.open {
  background: var(--surface-3);
}

.m-item.open::after {
  color: var(--text);
}

.m-header {
  padding: 6px 10px 2px;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.m-sep {
  height: 1px;
  margin: 4px 6px;
  background: var(--border-strong);
}

.m .m {
  position: absolute;
  top: -6px;
  left: calc(100% + 4px);
  display: none;
  z-index: 2;
}

.m-item.open > .m {
  display: block;
}

/* No room on the right: the submenu opens on the left, like Chrome does. */
.m-item.open > .m.flip {
  left: auto;
  right: calc(100% + 4px);
}

.m-item.has-sub {
  cursor: pointer;
}

/* ---------- Player ---------- */

.states {
  margin-bottom: 16px;
}

.card.state {
  padding-top: 18px;
}

.dot {
  display: block;
  width: 10px;
  height: 10px;
  margin-bottom: 12px;
  border-radius: 50%;
  background: var(--muted);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.05);
}

.dot.ok {
  background: var(--ok);
}

.dot.accent {
  background: var(--accent);
}

.dot.warn {
  background: var(--warn);
}

.dot.err {
  background: var(--error);
}

.keys {
  display: grid;
  gap: 8px;
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
}

.keys li {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 15px;
}

.keys kbd {
  font-size: 12px;
}

.keys span {
  margin-left: 6px;
}

/* ---------- Code ---------- */

pre.code {
  position: relative;
  margin: 12px 0;
  padding: 14px 44px 14px 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
  font-size: 12.5px;
  line-height: 1.55;
  overflow-x: auto;
  white-space: pre;
}

pre.code.tree {
  white-space: pre-wrap;
}

pre.code.tree span {
  color: var(--muted);
}

.copy {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface) center / 14px no-repeat
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238b93a4' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='9' y='9' width='12' height='12' rx='2'/%3E%3Cpath d='M5 15V5a2 2 0 0 1 2-2h10'/%3E%3C/svg%3E");
  cursor: pointer;
}

.copy:hover {
  border-color: var(--border-strong);
}

.copy.done {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233fb950' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7'/%3E%3C/svg%3E");
}

/* ---------- FAQ ---------- */

.faq {
  display: grid;
  gap: 8px;
  max-width: 820px;
}

.faq details {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.faq summary i {
  font-style: italic;
  color: var(--text);
}

.faq summary span {
  color: var(--muted);
  font-weight: 500;
}

.faq p {
  margin: 0 16px 14px 35px;
  color: var(--muted);
  font-size: 15px;
}

.faq p b,
.faq p code {
  color: var(--text);
}

/* ---------- Permissions ---------- */

.perms {
  display: grid;
  gap: 8px;
  max-width: 900px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.perms li {
  display: grid;
  grid-template-columns: minmax(200px, 300px) 1fr;
  gap: 16px;
  align-items: start;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  font-size: 15px;
}

.perms li > span:last-child {
  color: var(--muted);
}

.perms code {
  justify-self: start;
  max-width: 100%;
}

.perm-host {
  font-weight: 600;
}

/* ---------- Footer ---------- */

.foot {
  margin-top: clamp(64px, 9vw, 110px);
  padding: 32px var(--gutter) 40px;
  border-top: 1px solid var(--border);
  background: rgba(22, 25, 32, 0.5);
}

.foot-inner {
  display: grid;
  gap: 14px;
  max-width: var(--max);
  margin: 0 auto;
}

.foot-brand {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.foot-brand .muted {
  font-weight: 400;
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  font-size: 14px;
}

.foot-note {
  font-size: 13.5px;
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .install-grid,
  .configure,
  .menu-demo {
    grid-template-columns: 1fr;
  }

  .menu-stage {
    position: static;
    min-height: 0;
  }

  .nav {
    display: none;
  }
}

@media (max-width: 720px) {
  .yt {
    grid-template-columns: 1fr 120px;
    gap: 14px;
    padding: 12px 14px;
  }

  .yt-item {
    grid-template-columns: 48px 1fr;
    gap: 6px;
  }

  .yt-item span,
  .yt-lines {
    gap: 4px;
  }

  .yt-item b,
  .yt-lines b {
    height: 6px;
  }

  .yt-title {
    font-size: 12px;
  }

  .browser {
    font-size: 11px;
  }

  .t-popup {
    width: min(260px, 90%);
  }

  .t-dialog {
    width: min(92%, calc((100cqh - 70px) * 16 / 9));
  }

  .t-foot {
    display: none;
  }

  .t-keys {
    right: 10px;
    bottom: 10px;
  }

  .t-keys kbd {
    min-width: 34px;
    padding: 5px 7px;
    font-size: 11px;
  }

  .t-captions {
    height: 60px;
  }

  .perms li {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  /* Submenus stack inline on narrow screens */
  .m .m {
    position: static;
    margin: 4px 0 4px 12px;
    box-shadow: none;
    animation: none;
  }

  .m-item.has-sub {
    flex-wrap: wrap;
  }

  .m-item.has-sub > .m {
    flex-basis: 100%;
  }

  .m,
  .menu-root {
    min-width: 0;
    width: 100%;
  }

  .m-item,
  .ctx-item {
    white-space: normal;
  }

  .ctx {
    max-width: calc(100% - 16px);
  }

  .menu-stage {
    padding: 16px;
  }

  .menu-root {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .t-bunny,
  .mini-badge b,
  .mini-lang span,
  .ext-btn.hot {
    animation: none !important;
  }
}
