@font-face {
  font-display: swap;
  font-family: Mabi;
  src: url(/fonts/mabi.ttf);
}
@font-face {
  font-display: swap;
  font-family: Sunsin;
  src: url(/fonts/sunsin.ttf);
}
@font-face {
  font-display: swap;
  font-family: Mincho;
  src: url(/fonts/mincho.ttf);
}
@font-face {
  font-display: swap;
  font-family: Alegreya;
  src: url(/fonts/alegreya.ttf);
}
@font-face {
  font-display: swap;
  font-family: Devanagari;
  src: url(/fonts/devanagari.ttf);
}
:root {
  --paper: #f9f6ee;
  --brown: #8d6e63;
  --basic: Mabi, sans-serif;
  --body: Sunsin, sans-serif;
}
:lang(ja) {
  --basic: Mincho, serif;
  --body: var(--basic);
}
:lang(es) {
  --basic: Alegreya, serif;
  --body: var(--basic);
}
:lang(hi) {
  --basic: Devanagari, sans-serif;
  --body: var(--basic);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: #201d20;
  font: 16px var(--basic);
  overflow-wrap: anywhere;
}
button,
input {
  font: inherit;
  color: inherit;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
}
button:disabled {
  cursor: default;
  opacity: 0.65;
}
header {
  height: 70px;
  background: var(--brown);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
}
header a,
nav a {
  text-decoration: none;
}
.brand {
  font-weight: 700;
  font-size: 22px;
  text-align: center;
  line-height: 1.15;
}
.brand small {
  display: block;
  color: #fff;
  font-size: 13px;
  margin-top: 4px;
}
.desktop,
nav {
  display: flex;
  align-items: center;
  gap: 26px;
  color: white;
  font-size: 22px;
  line-height: 1.25;
}
nav a[aria-current] {
  color: #ff4035;
}
nav button,
.hamburger,
#languages button,
.field button {
  background: transparent;
  border: 0;
}
.flag {
  font: 24px sans-serif;
  vertical-align: middle;
  margin-left: 5px;
}
.hamburger {
  display: none;
}
svg {
  width: 26px;
  height: 26px;
  display: block;
}
.hero {
  height: 90svh;
  min-height: 230px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
.search,
.result {
  width: 60%;
  margin-inline: auto;
}
.search {
  text-align: center;
  padding: 8px;
}
.field {
  background: white;
  border: 1px solid #9e9e9e;
  border-radius: 30px;
  display: flex;
  align-items: center;
  padding: 0 20px;
  gap: 20px;
  min-height: 100px;
  color: #9e9e9e;
}
.field:focus-within {
  outline: 4px solid #bcaaa4;
  border-radius: 40px;
}
.field > svg {
  flex: none;
  width: 30px;
  height: 30px;
}
/* Balance the ink above and below the baseline in the dictionary's bundled typefaces. */
.field:lang(ko) { --search-inset: 0.12em 0; }
.field:lang(en) { --search-inset: 0.28em 0; }
.field:lang(en) input:placeholder-shown { --search-inset: 0.34em 0; }
.field:lang(es) { --search-inset: 0 0.04em; }
.field:lang(hi) { --search-inset: 0.42em 0; }
.field input[name="word"] {
  flex: 1;
  min-width: 0;
  height: 64px;
  margin: 0;
  padding: 0;
  padding-block: var(--search-inset, 0);
  border: 0;
  outline: 0;
  background: transparent;
  font: 32px/1.25 var(--basic);
  color: #424242;
}
.field input[name="word"]:placeholder-shown {
  font-size: 24px;
}
.field input::placeholder {
  font-size: inherit;
  color: #757575;
  opacity: 1;
  letter-spacing: normal;
}
:lang(ko) .field input,
:lang(ja) .field input {
  letter-spacing: 9px;
}
.field button {
  color: #777;
  padding: 6px;
}
.field button svg {
  width: 22px;
  height: 22px;
}
.counter {
  display: block;
  text-align: right;
  font: 12px var(--basic);
  padding: 4px 32px 9px;
}
.pill {
  background: #a1887f;
  border: 1px solid #79747e;
  border-radius: 28px;
  color: white;
  font-weight: bold;
  font-size: 18px;
  padding: 4px 23px;
  min-height: 32px;
}
.stores {
  text-align: center;
  padding: 92px 18px 0;
}
.stores h2 {
  font: 45px var(--body);
}
.stores img {
  width: min(150px, 34vw);
  height: 80px;
  object-fit: contain;
  margin: 0 15px;
}
.stores p {
  font-size: 14px;
}
.result {
  min-height: calc(100svh - 70px);
  padding: 20px 0 50px;
}
.result .search {
  width: 100%;
}
article h1,
article h2,
.info h1,
.info h2 {
  font-size: 24px;
  font-weight: normal;
  line-height: 1.25;
  border-left: 10px solid #795548;
  padding-left: 10px;
  margin: 4px 0 20px;
}
.panel {
  border: 2px solid #e0e0e0;
  background: #ffffff8a;
}
.meaning {
  font: 22px/1.42 var(--body);
  padding: 15px;
  white-space: pre-line;
}
.skeleton-panel {
  display: grid;
  gap: 12px;
  padding: 20px 15px;
}
.skeleton-panel::before,
.skeleton-panel::after {
  content: "";
  width: 86%;
  height: 14px;
  border-radius: 5px;
  background: #e3ddd4;
}
.skeleton-panel::after { width: 58%; }
.terms .skeleton-panel {
  gap: 22px;
  padding: 22px;
}
.terms .skeleton-panel::before { width: 44%; }
.skeleton-rating::before,
.skeleton-rating .votes::before,
.skeleton-rating .votes::after {
  content: "";
  border-radius: 6px;
  background: #e8e2da;
}
.skeleton-rating::before { width: min(10rem, 56%); height: .75rem; }
.skeleton-rating .votes::before,
.skeleton-rating .votes::after {
  width: 5rem;
  height: 2rem;
  border-radius: 2rem;
}
@media (prefers-reduced-motion: no-preference) {
  .lookup-skeleton { animation: skeleton-appear 160ms ease-out; }
  .skeleton-panel::before,
  .skeleton-panel::after { animation: skeleton-breathe 1.8s ease-in-out infinite alternate; }
}
@keyframes skeleton-appear {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes skeleton-breathe {
  from { opacity: .65; }
  to { opacity: 1; }
}
.votes {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}
.meaning-vote {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  margin-top: 30px;
}
.votes .pill {
  font-size: 15px;
}
.good {
  background: #64b5f6;
}
.bad {
  background: #e57373;
}
.columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px;
  margin: 96px 10px 0;
}
article h1,
.terms h2 {
  font-family: var(--basic);
}
.terms ul,
.antonyms-wait,
footer {
  font-family: var(--body);
}
.terms h2.syn {
  border-color: #388e3c;
}
.terms h2.ant {
  border-color: #ffa726;
}
.terms ul {
  list-style: none;
  padding: 8px;
  margin: 0 0 20px;
}
.terms li {
  padding: 12px 14px;
  min-height: 66px;
}
.terms strong {
  font-size: 22px;
  font-weight: normal;
}
.terms p {
  font-size: 16px;
  line-height: 1.45;
  color: #747474;
  margin: 6px 0;
  white-space: pre-line;
}
.info {
  padding: 20px;
  min-height: 70svh;
}
.info h1,
.info h2 {
  font-size: 20px;
  border-color: #2196f3;
  font-weight: bold;
}
.info h2 {
  margin-top: 96px;
}
.info p {
  font: 22px/1.4 var(--body);
  white-space: pre-line;
}
footer {
  min-height: 38svh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  padding: 30px;
  background: #ffffff61;
  border-top: 10px solid #eee;
  white-space: pre-line;
}
footer > div:last-child {
  text-align: right;
}
.notice {
  padding: 12px;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
dialog {
  border: 0;
  border-radius: 20px;
  max-width: min(540px, 92vw);
  max-height: 85svh;
  background: var(--paper);
  color: inherit;
}
dialog::backdrop {
  background: #0007;
}
#languages a, #languages button {
  display: block;
  color: inherit;
  text-decoration: none;
  width: 100%;
  padding: 10px 24px;
  text-align: left;
  font-size: 18px;
}
#tips p {
  font: 16px/1.6 var(--body);
}
#drawer {
  background: #6b5651;
  color: white;
  margin: 10px 10px 10px auto;
  width: 65vw;
  height: calc(100svh - 20px);
  max-height: none;
  opacity: 0;
  transform: translateX(calc(100% + 10px));
  transition: transform 180ms ease-in, opacity 180ms, display 180ms allow-discrete, overlay 180ms allow-discrete;
}
#drawer[open] {
  opacity: 1;
  transform: translateX(0);
  transition-duration: 240ms;
  transition-timing-function: cubic-bezier(.2, 0, 0, 1);
}
#drawer::backdrop {
  background-color: transparent;
  transition: background-color 200ms, display 200ms allow-discrete, overlay 200ms allow-discrete;
}
#drawer[open]::backdrop {
  background-color: rgb(0 0 0 / 45%);
}
@starting-style {
  #drawer[open] { opacity: 0; transform: translateX(calc(100% + 10px)); }
  #drawer[open]::backdrop { background-color: transparent; }
}
@media (prefers-reduced-motion: reduce) {
  #drawer, #drawer[open], #drawer::backdrop { transition: none; }
}
#drawer nav {
  padding-top: 75px;
  display: grid;
  text-align: center;
}
#drawer a {
  padding: 15px;
}
#drawer a[aria-current] {
  background: #dbf5b9;
  color: #6b5651;
  border-radius: 10px;
}
@media (max-width: 999px) {
  header {
    position: relative;
    justify-content: center;
  }
  .desktop {
    display: none;
  }
  .hamburger {
    display: block;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
  }
  .result,
  .search {
    width: 85%;
  }
  .meaning-vote {
    flex-direction: column;
    text-align: center;
  }
  .brand {
    font-size: 24px;
    max-width: calc(100% - 96px);
    padding-top: 4px;
  }
}
@media (max-width: 559px) {
  .columns {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
    margin-inline: 0;
  }
  .field {
    gap: 10px;
    padding: 0 12px;
  }
  .votes .pill {
    font-size: 16px;
  }
}
@media (max-width: 999px) {
  .terms h2 { font-size: 26px; }
  .terms strong { font-size: 28px; line-height: 1.25; }
  .terms p { font-size: 18px; line-height: 1.45; }
}
@media (max-width: 650px) {
  footer {
    flex-direction: column;
    text-align: center;
  }
  footer > div:last-child {
    align-self: stretch;
    text-align: right;
  }
}

html:not(.interactive) .votes button {
  pointer-events: none;
}

.generation::backdrop {
  background: #0007;
}
dialog.generation {
  background: white;
  border: 0;
  border-radius: 25px;
  width: 50vw;
  min-width: min(280px, 90vw);
  max-height: 85svh;
  text-align: center;
  overflow: auto;
  padding: clamp(22px, 5vw, 80px) 20px;
}
.animation {
  display: block;
  width: min(160px, 35vw);
  height: auto;
  margin: auto;
}
.antonyms-wait {
  padding: 10px;
  text-align: center;
}
.antonyms-animation {
  display: block;
  width: min(100%, 480px);
  height: auto;
  margin: 0 auto;
}
.lottie-host {
  position: relative;
}
.lottie-host > img {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
}
.lottie-surface {
  position: absolute;
  inset: 0;
  visibility: hidden;
}
.lottie-ready .lottie-surface { visibility: visible; }
.lottie-ready > img { visibility: hidden; }
.lottie-surface > svg {
  width: 100%;
  height: 100%;
}
.antonyms-wait p {
  margin: 5px 0 10px;
  white-space: pre-line;
  font-size: clamp(20px, 4vw, 24px);
  font-weight: bold;
}
