/* F4 website. Plain CSS, no build step: site/ is published to GitHub Pages as is.
   Dark only, laid out after raycast.com: centred hero over a glow, a keyboard,
   a filterable grid, a bento of features, a big footer. */

:root {
  --bg: #0a0908;
  --bg-2: #12100e;
  --card: #161412;
  --card-2: #1d1a17;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #f4efe9;
  --muted: #9c948b;
  --dim: #6d665f;
  --yellow: #ffc43d;
  --yellow-deep: #ffab1a;
  --pink: #ff6fae;
  --radius: 20px;
  --maxw: 1160px;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
  line-height: 1.08;
  letter-spacing: -0.035em;
  margin: 0 0 0.4em;
  font-weight: 700;
}

h1 {
  font-size: clamp(2.6rem, 7vw, 4.9rem);
  font-weight: 800;
  background: linear-gradient(180deg, #fff 30%, #b9b0a6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

h2 {
  font-size: clamp(2rem, 4.6vw, 3.25rem);
}

h3 {
  font-size: 1.08rem;
  letter-spacing: -0.015em;
}

p {
  margin: 0 0 1rem;
}

a {
  color: inherit;
}

code,
kbd {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.88em;
}

kbd {
  display: inline-block;
  min-width: 1.75em;
  text-align: center;
  background: linear-gradient(180deg, #2a2622, #1b1815);
  color: var(--text);
  border: 1px solid var(--line-2);
  border-bottom-width: 2px;
  border-radius: 6px;
  padding: 0 6px;
  line-height: 1.6;
  white-space: nowrap;
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.sub {
  color: var(--muted);
  font-size: 1.12rem;
  max-width: 58ch;
}

/* GIFs load from GIPHY: if one fails, show the tile, not its alt text. */

.cell img,
.meme img,
.gif img {
  color: transparent;
}

/* Header */

.top {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(10, 9, 8, 0.72);
  backdrop-filter: saturate(1.5) blur(16px);
  -webkit-backdrop-filter: saturate(1.5) blur(16px);
  border-bottom: 1px solid var(--line);
}

.bar {
  display: flex;
  align-items: center;
  gap: 18px;
  height: 60px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.brand img {
  display: block;
}

.bar nav {
  margin: 0 auto;
  display: flex;
  gap: 28px;
  font-size: 0.92rem;
  font-weight: 500;
}

.bar nav a {
  text-decoration: none;
  color: var(--muted);
  transition: color 0.15s ease;
}

.bar nav a:hover {
  color: var(--text);
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  border-radius: 12px;
  padding: 12px 22px;
  border: 1px solid var(--line-2);
  transition: transform 0.12s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--yellow);
  color: #1a1208;
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 0 0 1px rgba(255, 196, 61, 0.4), 0 8px 30px rgba(255, 196, 61, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.btn-primary:hover {
  box-shadow: 0 0 0 1px rgba(255, 196, 61, 0.6), 0 10px 44px rgba(255, 196, 61, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
}

.btn-small {
  padding: 7px 14px;
  font-size: 0.88rem;
  border-radius: 9px;
  background: var(--text);
  color: var(--bg);
  border-color: transparent;
}

.btn-block {
  width: 100%;
  margin-top: 4px;
}

/* Hero */

.hero {
  overflow: hidden;
  position: relative;
  text-align: center;
  padding: 88px 0 100px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 55% at 50% 0%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 55% at 50% 0%, #000 0%, transparent 75%);
  pointer-events: none;
}

.hero .wrap {
  position: relative;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--muted);
  text-decoration: none;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 999px;
  padding: 5px 14px 5px 5px;
  margin-bottom: 28px;
}

.pill span {
  background: var(--yellow);
  color: #1a1208;
  font-weight: 700;
  font-size: 0.75rem;
  border-radius: 999px;
  padding: 2px 9px;
}

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

.lede {
  color: var(--muted);
  font-size: 1.2rem;
  max-width: 44ch;
  margin: 0 auto;
}

.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 34px;
}

.fineprint {
  font-size: 0.82rem;
  color: var(--dim);
  margin-top: 18px;
}

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

/* The panel demo, a copy of the real F4 panel */

.stage {
  position: relative;
  max-width: 760px;
  margin: 64px auto 0;
}

.glow {
  position: absolute;
  inset: -12% -18% -6%;
  background: radial-gradient(ellipse at 50% 55%, rgba(255, 196, 61, 0.42) 0%, rgba(255, 111, 174, 0.12) 38%, transparent 68%);
  filter: blur(30px);
  z-index: 0;
  pointer-events: none;
}

.panel {
  position: relative;
  z-index: 1;
  text-align: left;
  background: rgba(28, 25, 22, 0.82);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--line-2);
  border-radius: 18px;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.panel .search {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  font-size: 1.25rem;
}

.panel .search svg {
  color: var(--muted);
  flex: none;
}

.caret {
  width: 2px;
  height: 1.25em;
  background: var(--yellow);
  margin-left: -10px;
  animation: blink 1s steps(1) infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

.shortcut {
  margin-left: auto;
  display: flex;
  gap: 4px;
  font-size: 0.8rem;
  opacity: 0.7;
}

.panel .grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding: 14px;
}

.cell {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  border-radius: 10px;
  overflow: hidden;
  background: linear-gradient(140deg, #3a2f1c, #2a221a);
  transition: opacity 0.2s ease, transform 0.2s ease;
  text-decoration: none;
}

.cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cell span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 14px 7px 4px;
  font-size: 0.64rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  color: #fff;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cell.dim {
  opacity: 0.2;
  transform: scale(0.96);
}

.cell.on {
  outline: 2px solid var(--yellow);
  outline-offset: 2px;
  box-shadow: 0 0 30px rgba(255, 196, 61, 0.35);
  z-index: 1;
}

.panel .status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 18px;
  border-top: 1px solid var(--line);
  font-size: 0.8rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  color: var(--muted);
}

.toast {
  position: absolute;
  left: 50%;
  bottom: 56px;
  transform: translate(-50%, 16px);
  background: var(--yellow);
  color: #1a1208;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 9px 18px;
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
  z-index: 2;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* Sections */

section {
  padding: 120px 0;
}

/* The keyboard */

.kb-wrap {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  grid-template-rows: auto auto;
  gap: 24px 40px;
  align-items: center;
  margin-top: 64px;
}

.keyboard {
  grid-column: 2;
  grid-row: 1 / span 2;
  display: grid;
  gap: 7px;
  padding: 16px;
  background: linear-gradient(180deg, #1a1714, #0f0d0b);
  border: 1px solid var(--line-2);
  border-radius: 18px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  min-width: 0;
}

.krow {
  display: flex;
  gap: 7px;
}

.key {
  flex: 0 0 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(180deg, #2b2723, #201d1a);
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 500;
  min-width: 0;
}

.key.mod {
  font-size: 0.7rem;
  color: var(--dim);
}

.key.wide {
  flex: 1 0 60px;
}

.key.space {
  flex: 1 0 200px;
}

/* The function row: short keys, like on a Mac. */
.frow .key {
  height: 30px;
  font-size: 0.7rem;
}

.key.hot {
  color: #1a1208;
  font-weight: 700;
  font-size: 0.95rem;
  background: linear-gradient(180deg, #ffd366, var(--yellow-deep));
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 0 24px rgba(255, 196, 61, 0.55), 0 2px 0 #8a5a00;
  animation: press 3.2s ease-in-out infinite;
}

@keyframes press {
  0%,
  70%,
  100% {
    transform: translateY(0);
  }

  80% {
    transform: translateY(2px);
    box-shadow: 0 0 40px rgba(255, 196, 61, 0.8), 0 0 0 #8a5a00;
  }
}

.callout {
  color: var(--muted);
  font-size: 0.98rem;
  max-width: 26ch;
}

.callout b {
  display: block;
  color: var(--text);
  font-size: 1.15rem;
  margin-bottom: 2px;
}

.c1,
.c2 {
  grid-column: 1;
  justify-self: end;
  text-align: right;
}

.c3,
.c4 {
  grid-column: 3;
}

.c1,
.c3 {
  grid-row: 1;
}

.c2,
.c4 {
  grid-row: 2;
}

/* The meme grid */

.tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 40px 0 32px;
}

.tab {
  font: inherit;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  padding: 7px 16px;
  cursor: pointer;
}

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

.tab.on {
  color: #1a1208;
  background: var(--yellow);
  border-color: var(--yellow);
}

.memes {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.meme {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.meme[hidden] {
  display: none;
}

.meme:hover,
.meme:focus-visible {
  border-color: rgba(255, 196, 61, 0.6);
  transform: translateY(-2px);
}

.thumb {
  display: block;
  aspect-ratio: 4 / 3;
  background: linear-gradient(140deg, #3a2f1c, #2a221a);
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.meta {
  display: flex;
  flex-direction: column;
  padding: 12px 14px 14px;
  min-width: 0;
}

.meta b {
  font-weight: 600;
  font-size: 0.92rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.meta small {
  color: var(--dim);
  font-size: 0.8rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.more {
  color: var(--dim);
  margin-top: 28px;
  font-size: 0.95rem;
}

/* Pasted in a chat */

.paste {
  background: radial-gradient(ellipse 60% 70% at 80% 50%, rgba(255, 196, 61, 0.1), transparent 70%), var(--bg-2);
  border-block: 1px solid var(--line);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.split > * {
  min-width: 0;
}

.ticks {
  list-style: none;
  padding: 0;
  margin: 26px 0 0;
  display: grid;
  gap: 12px;
}

.ticks li {
  position: relative;
  padding-left: 30px;
}

.ticks li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  font-weight: 800;
  color: #1a1208;
  background: var(--yellow);
}

.chat {
  background: #1a1d21;
  color: #d1d2d3;
  border: 1px solid var(--line-2);
  border-radius: 16px;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6);
  overflow: hidden;
}

.chat p {
  margin: 0;
  font-size: 0.95rem;
}

.chat-head {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.92rem;
  color: #fff;
}

.chat-head .dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #ff5f57;
}

.chat-head .dot:nth-child(2) {
  background: #febc2e;
}

.chat-head .dot:nth-child(3) {
  background: #28c840;
  margin-right: 10px;
}

.msg {
  display: flex;
  gap: 12px;
  padding: 12px 16px;
}

.msg > div {
  min-width: 0;
}

.avatar {
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #1a1208;
}

.a1 {
  background: var(--pink);
}

.a2 {
  background: var(--yellow);
}

.who {
  font-weight: 700;
  color: #fff;
}

.who time {
  font-weight: 400;
  font-size: 0.78rem;
  color: #8b8d90;
  margin-left: 6px;
}

.gif {
  display: block;
  overflow: hidden;
  background: linear-gradient(140deg, #3a2f1c, #2a221a);
}

.gif img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pasted {
  margin-top: 6px;
  width: min(290px, 100%);
  aspect-ratio: 4 / 3;
  border-radius: 8px;
}

.chat .via {
  margin-top: 6px;
  font-size: 0.78rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  color: #8b8d90;
}

/* Bento */

.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 56px;
}

.tile {
  background: linear-gradient(180deg, var(--card-2), var(--card));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  overflow: hidden;
  min-width: 0;
}

.tile p {
  color: var(--muted);
  margin: 0;
  font-size: 0.95rem;
}

.tile .vis {
  height: 170px;
  margin: -22px -22px 20px;
  border-bottom: 1px solid var(--line);
  background: radial-gradient(ellipse at 50% 120%, rgba(255, 196, 61, 0.16), transparent 70%), #12100e;
}

.t-search,
.t-wide {
  grid-column: span 2;
}

.t-search .vis {
  padding: 22px 26px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.86rem;
  color: var(--muted);
}

.mini-search {
  border: 1px solid var(--line-2);
  border-radius: 10px;
  padding: 7px 12px;
  margin-bottom: 6px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
}

.mini-search span::after {
  content: "";
  display: inline-block;
  width: 2px;
  height: 1em;
  vertical-align: -2px;
  margin-left: 2px;
  background: var(--yellow);
}

.mini-row {
  padding: 4px 12px;
  border-radius: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mini-row b {
  color: var(--yellow);
  font-weight: 700;
}

.mini-row.on {
  background: rgba(255, 196, 61, 0.12);
  color: var(--text);
}

.keys {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.keys kbd {
  font-family: "Inter", sans-serif;
  font-size: 1.6rem;
  font-weight: 600;
  min-width: 64px;
  height: 64px;
  line-height: 60px;
  border-radius: 14px;
  border-bottom-width: 4px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.keys kbd:last-child {
  color: #1a1208;
  background: linear-gradient(180deg, #ffd366, var(--yellow-deep));
  border-color: rgba(255, 255, 255, 0.4) rgba(255, 255, 255, 0.4) #8a5a00;
  box-shadow: 0 0 34px rgba(255, 196, 61, 0.5);
}

.tree {
  padding: 22px 26px;
  font-size: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.tree .in {
  padding-left: 22px;
  color: var(--muted);
}

.tree small {
  color: var(--dim);
  margin-left: 6px;
}

.lock,
.big-emoji {
  display: grid;
  place-items: center;
  font-size: 3.4rem;
}

.tile .big-emoji {
  height: 120px;
}

/* Install */

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

.way {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  min-width: 0;
}

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

pre {
  background: #0d0b0a;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  overflow-x: auto;
  margin: 0;
  font-size: 0.88rem;
  color: #e9dfd3;
}

/* FAQ */

.split.faq {
  align-items: start;
  grid-template-columns: 0.8fr 1.2fr;
}

.faq-gif {
  aspect-ratio: 4 / 3;
  max-width: 340px;
  border-radius: var(--radius);
  border: 1px solid var(--line-2);
  margin-top: 20px;
}

details {
  border-bottom: 1px solid var(--line);
  padding: 18px 4px;
}

details:first-child {
  border-top: 1px solid var(--line);
}

details summary {
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

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

details summary::after {
  content: "+";
  color: var(--muted);
  font-size: 1.3rem;
  line-height: 1;
}

details[open] summary::after {
  content: "–";
}

details p {
  color: var(--muted);
  margin: 12px 0 0;
}

/* Final call to action */

.final {
  text-align: center;
  background: radial-gradient(ellipse 50% 60% at 50% 30%, rgba(255, 196, 61, 0.18), transparent 70%);
}

.final .keys {
  margin-bottom: 36px;
}

.final .sub {
  margin: 0 auto 28px;
}

/* Footer */

footer {
  border-top: 1px solid var(--line);
  padding: 64px 0 56px;
  color: var(--muted);
  font-size: 0.9rem;
}

.cols {
  display: grid;
  grid-template-columns: 1.6fr repeat(4, 1fr);
  gap: 32px;
}

.col {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.col h4 {
  color: var(--text);
  font-size: 0.9rem;
  letter-spacing: 0;
  margin: 0 0 4px;
}

.col a {
  text-decoration: none;
}

.col a:hover {
  color: var(--text);
}

.brand-col p {
  max-width: 30ch;
  margin-top: 6px;
}

.brand-col .brand {
  color: var(--text);
}

.credits {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 0.78rem;
  color: var(--dim);
}

/* The 404 page */

.outro {
  min-height: 92vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 60px 0;
}

.outro-gif {
  width: min(420px, 100%);
  margin: 0 auto 32px;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  border: 1px solid var(--line-2);
  box-shadow: 0 0 80px rgba(255, 196, 61, 0.25);
}

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

@media (max-width: 980px) {
  .kb-wrap {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }

  .keyboard {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .c1,
  .c2,
  .c3,
  .c4 {
    grid-column: auto;
    grid-row: auto;
    justify-self: start;
    text-align: left;
  }

  .memes {
    grid-template-columns: repeat(3, 1fr);
  }

  .bento {
    grid-template-columns: 1fr 1fr;
  }

  .t-wide {
    grid-column: auto;
  }

  .cols {
    grid-template-columns: repeat(2, 1fr);
  }

  .brand-col {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  section {
    padding: 80px 0;
  }

  .hero {
    padding-top: 56px;
  }

  .bar nav {
    display: none;
  }

  .btn-small {
    margin-left: auto;
  }

  .split,
  .split.faq,
  .ways {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .memes {
    grid-template-columns: repeat(2, 1fr);
  }

  .bento {
    grid-template-columns: 1fr;
  }

  .t-search,
  .t-wide {
    grid-column: auto;
  }

  .keyboard,
  .krow {
    gap: 4px;
  }

  .keyboard {
    padding: 10px;
  }

  .key {
    flex: 1 1 0;
    height: 26px;
    font-size: 0.6rem;
    border-radius: 5px;
  }

  .key.wide {
    flex: 1.5 1 0;
  }

  .key.space {
    flex: 5 1 0;
  }

  .key.mod {
    font-size: 0.5rem;
  }

  .frow .key {
    height: 20px;
    font-size: 0.5rem;
  }

  .shortcut,
  .cell span {
    display: none;
  }

  .panel .search {
    font-size: 1.05rem;
  }

  .panel .grid {
    gap: 7px;
    padding: 10px;
  }
}

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

  .btn,
  .cell,
  .toast,
  .meme {
    transition: none;
  }

  .caret,
  .key.hot {
    animation: none;
  }
}
