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

@font-face {
  font-family: Outfit;
  src: url("../fonts/outfit-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Outfit;
  src: url("../fonts/outfit-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Outfit;
  src: url("../fonts/outfit-800-normal.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --page-bg: #1a2040;
  --accent: #f47a82;
  --peach: #f4a07a;
  --btn-face: #fff;
  --btn-sprite: url("../img/ui/btn-white-circle.png");
  --tip-bg: #fff8fb;
  --tip-ink: #f47a82;
  --card-scrim: radial-gradient(ellipse at 18% 72%, rgb(255 255 255 / 0.86), rgb(255 255 255 / 0) 72%);
  --card-ink: #161616;
  --card-foot-bg: #2b2d31;
  --card-foot-ink: #d4d6da;
  --music-face: #fff8fb;
  --music-track: #f4c4c8;
  --dialog-ink: #4a3d44;
  --dialog-body: #5c4f56;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --page-bg: #121018;
  --btn-face: #322c38;
  --btn-sprite: none;
  --tip-bg: #322c38;
  --tip-ink: #f4b4ba;
  --card-scrim: radial-gradient(ellipse at 18% 72%, rgb(28 22 32 / 0.82), rgb(28 22 32 / 0) 72%);
  --card-ink: #f3ecef;
  --card-foot-bg: #1a161c;
  --card-foot-ink: #c9c0c6;
  --music-face: #322c38;
  --music-track: #5c444c;
  --dialog-ink: #efe6ea;
  --dialog-body: #d4c8ce;
}

html,
body {
        width: 100%;
  min-height: 100dvh;
  overflow-x: hidden;
  background: var(--page-bg);
  color: #f4f6fb;
  font-family: Outfit, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

.chuni-main-bg,
.main-bg-base,
.main-bg-inner {
        position: fixed;
  inset: 0;
    width: 100%;
    height: 100%;
}

.chuni-main-bg {
  z-index: 0;
  pointer-events: none;
    user-select: none;
  overflow: hidden;
  isolation: isolate;
}

.chuni-main-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 10;
  background:
    linear-gradient(180deg, rgb(10 8 18 / 0.42), rgb(12 8 20 / 0.22) 46%, rgb(8 6 16 / 0.55)),
    rgb(14 10 22 / 0.22);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

html[data-theme="dark"] .chuni-main-bg::after {
  opacity: 1;
}

.main-bg-base {
  z-index: 0;
  transition: filter 0.35s ease;
}

html[data-theme="dark"] .main-bg-base {
  filter: brightness(0.52) saturate(0.74) contrast(1.06);
}

.main-bg-inner {
    z-index: 1;
  overflow: hidden;
  background: url("../img/bg.jpg.webp") no-repeat center / cover;
}

.float-01,
.float-02,
.float-03 {
    position: absolute;
  inset: 0;
    width: 100%;
    height: 100%;
}

.float-01 {
  z-index: 2;
  background: url("../img/mate_flot-3.png.webp") no-repeat center / cover;
}

.float-02 {
  z-index: 4;
  background: url("../img/mate_flot-5.png.webp") no-repeat center / cover;
  animation: float-scale 8s ease-in-out infinite;
}

.float-03 {
  z-index: 5;
  background: url("../img/mate_flot-4.png.webp") no-repeat center / cover;
  animation: float-scale 5s ease-in-out infinite;
}

.fukisashi {
    position: absolute;
    top: 45%;
    left: 65%;
  z-index: 3;
    width: 40%;
    height: 50%;
  transform: translate(-50%, -50%);
  background: url("../img/mate_flot-2.png.webp") no-repeat center / contain;
}

.comment {
    position: absolute;
    top: 0;
    left: 20%;
  z-index: 1;
    width: 500px;
    height: 100%;
  background: url("../img/mate_flot-1.png.webp") repeat 0 0 / 500px 1088px;
  animation: comment-scroll-up 15s linear infinite;
}

.text-image {
    position: absolute;
  z-index: 3;
    width: 100%;
  height: 10px;
  background: url("../img/mate_flot-6.png.webp") repeat-x 0 0 / auto 10px;
}

.text-image.text-top {
    top: 2px;
    right: 0;
  animation: comment-scroll-side 60s linear infinite;
}

.text-image.text-bottom {
    bottom: 2px;
    left: 0;
  animation: comment-scroll-side 60s linear reverse infinite;
}

@keyframes float-scale {
  0%,
    100% {
    transform: scale(1);
  }

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

@keyframes comment-scroll-up {
  0% {
    background-position: 0 0;
  }

  100% {
    background-position: 0 -1088px;
  }
}

@keyframes comment-scroll-side {
  0% {
    background-position: 0 0;
  }

  100% {
    background-position: -2555px 0;
    }
}

@media screen and (max-width: 601px) {
  .main-bg-inner {
    background-image: url("../img/bg_sp.jpg.webp");
  }

  .float-01 {
    background: url("../img/mate_flot-3_sp.png.webp") no-repeat top / cover;
  }

  .float-02 {
    background: url("../img/mate_flot-5_sp.png.webp") no-repeat center / cover;
  }

  .float-03 {
    background: url("../img/mate_flot-4_sp.png.webp") no-repeat center / cover;
  }

  .fukisashi {
    width: 270px;
    height: 200px;
  }

  .comment {
    left: 10%;
    width: 200px;
    background-size: 200px 435px;
  }

  .text-image {
    height: 8px;
    background-size: auto 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .float-02,
  .float-03,
  .comment,
  .text-image {
    animation: none;
  }

  .link-card,
  .link-card .card-art,
  .main-bg-base,
  .chuni-main-bg::after {
    transition: none;
  }
}

.gate {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
    justify-content: center;
  min-height: 100dvh;
  width: min(1100px, calc(100% - 1.5rem));
  margin: 0 auto;
  padding: 1.25rem 0 2rem;
}

.gate-mark {
  display: block;
  width: min(420px, calc(100vw - 250px));
  height: auto;
  margin: 0 auto 0.2rem;
  pointer-events: none;
}

@media screen and (min-width: 768px) {
  .gate-mark {
    width: min(620px, calc(100vw - 260px));
  }
}

.gate-grid {
    display: flex;
  flex-wrap: nowrap;
    justify-content: center;
  align-items: stretch;
  gap: 1.45rem;
    width: 100%;
  padding-top: 2.7rem;
}

.link-card {
    position: relative;
  display: block;
  flex: 0 1 228px;
  width: 228px;
  max-width: 228px;
  overflow: visible;
  text-decoration: none;
  color: inherit;
  isolation: isolate;
  container-type: inline-size;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.link-card:hover,
.link-card:focus-visible {
  transform: translateY(-6px);
}

.link-card:active {
  transform: scale(0.98);
}

.link-card:focus-visible {
  outline: 2px solid #3aa7c7;
  outline-offset: 4px;
}

.card-shell {
  position: relative;
    display: block;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  border-radius: 18px;
  box-shadow: 0 16px 32px rgb(8 12 32 / 0.38);
}

.card-shell::after {
        content: "";
        position: absolute;
        left: 0;
  bottom: 7.5%;
  z-index: 1;
  width: 62%;
  height: 42%;
  background: var(--card-scrim);
  pointer-events: none;
}

.card-art {
    position: absolute;
  inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.link-card:hover .card-art,
.link-card:focus-visible .card-art {
  transform: scale(1.04);
}

.card-en {
    position: absolute;
  right: 0.06em;
  bottom: 100%;
  z-index: 5;
  font-size: 18cqi;
  font-weight: 800;
  font-style: italic;
  letter-spacing: -0.03em;
  line-height: 0.86;
  padding-bottom: 0;
    color: #fff;
  text-shadow:
    1px 2px 0 rgb(168 174 186 / 0.88),
    0 10px 22px rgb(20 24 40 / 0.18);
  transform: translateY(18%);
    pointer-events: none;
}

.card-spine {
    position: absolute;
  top: 46%;
  right: 6%;
        z-index: 2;
  font-size: 28cqi;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: rgb(255 255 255 / 0.22);
  -webkit-text-stroke: 1px rgb(255 255 255 / 0.42);
  white-space: nowrap;
  transform: translate(50%, -50%) rotate(90deg);
        pointer-events: none;
}

.card-meta {
        position: absolute;
  left: 8%;
  bottom: calc(8% + 8px);
  z-index: 3;
  color: var(--card-ink);
  border-left: 2px solid var(--card-ink);
  padding-left: 8px;
}

.card-level {
        display: flex;
        align-items: center;
  gap: 6px;
  margin-bottom: 0.35rem;
}

.card-level-copy {
    display: flex;
  flex-direction: column;
  font-size: 6.2cqi;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.02em;
}

.card-level-num {
  font-size: 18cqi;
  font-weight: 800;
  line-height: 0.82;
  letter-spacing: -0.08em;
}

.card-zh {
    display: block;
  font-size: 15cqi;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1.1;
  font-family: "Songti SC", "STSong", "SimSun", "Noto Serif SC", serif;
}

.card-foot {
        position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 4;
    display: flex;
    align-items: center;
  justify-content: flex-end;
  height: 7.5%;
  padding: 0 0.7rem;
  background: var(--card-foot-bg);
  color: var(--card-foot-ink);
  font-size: 5.6cqi;
    font-weight: 600;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.link-card.is-liking {
  transform: none;
  pointer-events: none;
}

.link-card.is-liking .card-art,
.link-card.is-liking .card-spine,
.link-card.is-liking .card-meta,
.link-card.is-liking .card-foot,
.link-card.is-liking .card-en {
  filter: blur(7px);
  transition: filter 0.32s ease;
}

.link-card.is-like-out .card-art,
.link-card.is-like-out .card-spine,
.link-card.is-like-out .card-meta,
.link-card.is-like-out .card-foot,
.link-card.is-like-out .card-en {
  filter: none;
}

.card-like {
  position: absolute;
  inset: 0;
  z-index: 6;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
}

.link-card.is-liking .card-like {
  opacity: 1;
}

.card-like-dim {
  position: absolute;
  inset: 0;
  background: rgb(8 10 22 / 0.58);
  opacity: 0;
}

.link-card.is-liking .card-like-dim {
  animation: like-dim 0.32s ease forwards;
}

.card-shuffle {
  position: absolute;
  right: 3%;
  bottom: 9.5%;
  z-index: 1;
  width: 44%;
  height: auto;
  opacity: 0;
  mix-blend-mode: screen;
  pointer-events: none;
}

.link-card.is-liking .card-shuffle {
  animation: shuffle-in 0.38s ease 0.06s forwards;
}

.card-like-hand {
  position: absolute;
  left: 14%;
  top: 22%;
  width: 72%;
  transform-origin: 4% 67%;
  filter: drop-shadow(0 8px 16px rgb(0 0 0 / 0.35));
}

.like-red .card-like-thumb,
.like-red .card-like-spark img {
  filter: brightness(0) saturate(100%) invert(27%) sepia(95%) saturate(2800%) hue-rotate(338deg) brightness(1.02);
}

.like-red .card-like-hand {
  filter: drop-shadow(0 8px 16px rgb(180 20 40 / 0.4));
}

.link-card.is-liking .card-like-hand {
  animation: thumb-tilt 0.92s forwards;
}

.card-like-thumb {
  display: block;
  width: 100%;
  height: auto;
  opacity: 0;
}

.link-card.is-liking .card-like-thumb {
  animation: thumb-fade 0.28s ease forwards;
}

.card-like-spark {
  position: absolute;
  left: 75%;
  top: 8%;
  width: 34%;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.2);
}

.card-like-spark img {
  display: block;
  width: 100%;
  height: auto;
}

.link-card.is-liking .card-like-spark {
  animation: shine-pop 0.62s ease-out 0.67s forwards;
}

.link-card.is-like-out .card-like {
  animation: like-out 0.28s ease forwards;
}

@keyframes like-dim {
  to {
    opacity: 1;
  }
}

@keyframes shuffle-in {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.92);
  }

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

@keyframes thumb-fade {
  to {
    opacity: 1;
  }
}

@keyframes thumb-tilt {
  0% {
    transform: rotate(16deg);
    animation-timing-function: cubic-bezier(0.2, 1.5, 0.32, 1);
  }

  40% {
    transform: rotate(-24deg);
    animation-timing-function: cubic-bezier(0.55, 0.05, 0.7, 0.15);
  }

  72% {
    transform: rotate(8deg);
    animation-timing-function: cubic-bezier(0.22, 0.9, 0.28, 1);
  }

  100% {
    transform: rotate(0deg);
  }
}

@keyframes shine-pop {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.2);
  }

  18% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(0.7);
  }

  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.85);
  }
}

@keyframes like-out {
  to {
    opacity: 0;
  }
}

@media screen and (max-width: 767px) {
  .gate {
    justify-content: center;
    padding: 4.25rem 0 1.5rem;
  }

  .gate-mark {
    width: min(380px, calc(100vw - 250px));
    margin-bottom: 0;
  }

  .gate-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    flex-direction: unset;
    flex-wrap: unset;
    align-items: stretch;
    justify-content: center;
    gap: 2.35rem 0.75rem;
    padding-top: 2rem;
    width: min(360px, 100%);
  }

  .link-card {
    flex: none;
    width: 100%;
    max-width: none;
  }

  .card-foot {
    font-size: 5.2cqi;
    letter-spacing: 0.01em;
    padding: 0 0.4rem;
  }
}

.back-home,
.copy-trigger,
.music-trigger,
.theme-trigger {
  position: fixed;
  top: 16px;
  z-index: 20;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background-color: var(--btn-face);
  background-image: var(--btn-sprite);
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
  box-shadow: 3px 4px 0 var(--peach);
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
    background-color 0.25s ease;
}

.back-home {
  left: 16px;
}

.theme-trigger {
  left: 72px;
  font-family: inherit;
}

.copy-trigger {
  right: 72px;
  font-family: inherit;
}

.music-trigger {
  position: relative;
  top: auto;
  font-family: inherit;
}

.back-home:hover,
.back-home:focus-visible,
.copy-trigger:hover,
.copy-trigger:focus-visible,
.music-trigger:hover,
.music-trigger:focus-visible,
.theme-trigger:hover,
.theme-trigger:focus-visible {
  transform: translateY(-2px);
}

.back-home:active,
.copy-trigger:active,
.music-trigger:active,
.theme-trigger:active {
  transform: scale(0.96);
}

.back-home:focus-visible,
.copy-trigger:focus-visible,
.music-trigger:focus-visible,
.theme-trigger:focus-visible {
  outline: 2px solid #3aa7c7;
  outline-offset: 3px;
}

.back-home-icon {
  display: block;
  width: 9px;
  height: 9px;
  margin-left: 3px;
  border-left: 3px solid var(--accent);
  border-bottom: 3px solid var(--accent);
  transform: rotate(45deg);
}

.copy-mark,
.music-mark {
  color: var(--accent);
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1;
}

.music-mark {
  font-size: 0.92rem;
  transform: translateY(-1px);
}

.circle-tip {
  position: absolute;
  top: calc(100% + 12px);
  padding: 0.4rem 0.75rem;
  background: var(--tip-bg);
  color: var(--tip-ink);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.2;
  white-space: nowrap;
  border-radius: 999px;
  box-shadow: 3px 4px 0 var(--peach);
  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
  transition:
    opacity 0.2s ease,
    transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.circle-tip::after {
  content: "";
  position: absolute;
  top: -5px;
  border: 6px solid transparent;
  border-bottom-color: var(--tip-bg);
}

.back-home .circle-tip {
  left: 0;
}

.back-home .circle-tip::after {
  left: 16px;
}

.theme-trigger .circle-tip {
  left: 0;
}

.theme-trigger .circle-tip::after {
  left: 16px;
}

.copy-trigger .circle-tip {
  right: 0;
}

.copy-trigger .circle-tip::after {
  right: 16px;
}

.music-trigger .circle-tip {
  right: 0;
}

.music-trigger .circle-tip::after {
  right: 16px;
}

.back-home:hover .circle-tip,
.back-home:focus-visible .circle-tip,
.theme-trigger:hover .circle-tip,
.theme-trigger:focus-visible .circle-tip,
.copy-trigger:hover .circle-tip,
.copy-trigger:focus-visible .circle-tip,
.music-dock:not(.is-open) .music-trigger:hover .circle-tip,
.music-dock:not(.is-open) .music-trigger:focus-visible .circle-tip {
  opacity: 1;
  transform: translateY(0);
}

.theme-icon {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: inset -3.5px -1.5px 0 1px var(--btn-face);
}

html[data-theme="dark"] .theme-icon {
  box-shadow:
    0 -7px 0 -4.5px var(--accent),
    0 7px 0 -4.5px var(--accent),
    7px 0 0 -4.5px var(--accent),
    -7px 0 0 -4.5px var(--accent),
    5px 5px 0 -4.5px var(--accent),
    -5px 5px 0 -4.5px var(--accent),
    5px -5px 0 -4.5px var(--accent),
    -5px -5px 0 -4.5px var(--accent);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.music-dock {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 21;
}

.music-sheet {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.music-sheet[hidden] {
  display: none;
}

.music-vol,
.music-title,
.music-play {
  background: var(--music-face);
  box-shadow: 3px 4px 0 var(--peach);
}

.music-vol {
  display: flex;
  align-items: center;
  width: 132px;
  height: 36px;
  padding: 0 0.85rem;
  border-radius: 999px;
}

.music-vol-input {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  margin: 0;
  background: var(--music-track);
  border-radius: 999px;
  outline: none;
}

.music-vol-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border: 0;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 1px 2px 0 var(--peach);
  cursor: pointer;
}

.music-vol-input::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border: 0;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 1px 2px 0 var(--peach);
  cursor: pointer;
}

.music-play {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.music-play:hover,
.music-play:focus-visible {
  transform: translateY(-2px);
}

.music-play:active {
  transform: scale(0.96);
}

.music-play:focus-visible {
  outline: 2px solid #3aa7c7;
  outline-offset: 3px;
}

.music-face {
  position: relative;
  display: block;
  width: 12px;
  height: 12px;
}

.music-face::before,
.music-face::after {
  content: "";
  position: absolute;
  top: 0;
}

.music-face::before {
  left: 2px;
  border-style: solid;
  border-width: 6px 0 6px 10px;
  border-color: transparent transparent transparent var(--accent);
}

.music-face::after {
  display: none;
}

.music-dock.is-playing .music-face::before,
.music-dock.is-playing .music-face::after {
  display: block;
  left: 2px;
  width: 3px;
  height: 12px;
  border: 0;
  background: var(--accent);
}

.music-dock.is-playing .music-face::after {
  left: 7px;
}

.music-title {
  display: flex;
  align-items: center;
  height: 36px;
  padding: 0 0.9rem;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
  border-radius: 999px;
}

@media screen and (max-width: 767px) {
  .music-vol {
    width: 96px;
  }

  .copy-trigger {
    right: 68px;
  }

  .theme-trigger {
    left: 68px;
  }
}

.mate-overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
    display: grid;
  place-items: center;
  padding: 2.4rem 1.25rem 1.25rem;
  background: rgb(12 16 36 / 0.58);
}

.mate-overlay[hidden] {
  display: none;
}

.mate-dialog {
  position: relative;
  overflow: visible;
  width: min(540px, 100%);
  min-height: 360px;
  padding: 2.4rem 2.1rem 1.5rem;
  border: 30px solid transparent;
  border-image-source: url("../img/ui/dialog.png");
  border-image-slice: 44 fill;
  border-image-width: 30px;
  border-image-repeat: stretch;
  color: var(--dialog-ink);
}

.mate-dialog-en {
  position: absolute;
  right: 0.08em;
  bottom: calc(100% + 30px);
  z-index: 2;
  font-size: 1.7rem;
  font-weight: 800;
  font-style: italic;
  letter-spacing: -0.03em;
  line-height: 0.86;
  color: #fff;
  text-shadow:
    1px 2px 0 rgb(244 122 130 / 0.92),
    0 8px 16px rgb(20 24 40 / 0.18);
  transform: translateY(18%);
  pointer-events: none;
}

.mate-dialog-title {
  margin: 0 0 1rem;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--accent);
}

.mate-dialog-body {
  display: grid;
  gap: 0.85rem;
  min-height: 9.5rem;
  margin-bottom: 1.35rem;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.75;
  color: var(--dialog-body);
}

.mate-dialog-body a {
  color: var(--accent);
}

.mate-pill,
.mate-dialog-ok {
    display: block;
  width: fit-content;
  min-width: 132px;
  height: 40px;
  margin: 0 auto;
  padding: 0 1.6rem;
  border: 0;
  border-left: 20px solid transparent;
  border-right: 20px solid transparent;
  border-image: url("../img/ui/btn-pill.png") 0 20 fill;
  background: transparent;
    color: #fff;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.16em;
    cursor: pointer;
}

.mate-dialog-ok:hover,
.mate-dialog-ok:focus-visible {
  transform: translateY(-1px);
}

.mate-dialog-ok:active {
  transform: scale(0.98);
}

html[data-theme="dark"] .mate-dialog {
  border: 8px solid var(--accent);
  border-image: none;
  background: #2a2430;
  border-radius: 28px;
  box-shadow: 6px 7px 0 var(--peach);
  padding: 2.2rem 1.8rem 1.4rem;
}

html[data-theme="dark"] .mate-dialog-en {
  bottom: calc(100% + 8px);
}

body.dialog-open {
    overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
  .copy-trigger,
  .back-home,
  .theme-trigger,
  .music-trigger,
  .music-play,
  .mate-dialog-ok,
  .circle-tip {
    transition: none;
  }

  .link-card.is-liking .card-like-dim,
  .link-card.is-liking .card-shuffle,
  .link-card.is-liking .card-like-hand,
  .link-card.is-liking .card-like-thumb,
  .link-card.is-liking .card-like-spark,
  .link-card.is-like-out .card-like {
    animation: none;
  }
}
