:root {
  --night: #071421;
  --ivory: #eee5d1;
  --ivory-soft: #cfc7b7;
  --ivory-dim: rgba(238, 229, 209, .38);
  --seal: #9d5142;
  --target-y: 51.8%;
}

* { box-sizing: border-box; }

html, body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--night);
  overscroll-behavior: none;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

body {
  color: var(--ivory);
  font-family: "Songti SC", "Noto Serif CJK SC", "STSong", serif;
}

button { font: inherit; }

.game {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 520px;
  overflow: hidden;
  isolation: isolate;
  cursor: pointer;
  background: linear-gradient(180deg, #081724 0%, #071421 54%, #06111b 100%);
}

.game::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -6;
  opacity: .62;
  pointer-events: none;
  background-image:
    linear-gradient(90deg, transparent 7.5%, rgba(238,229,209,.04) 7.7%, transparent 7.9%),
    linear-gradient(90deg, transparent 92.1%, rgba(238,229,209,.04) 92.3%, transparent 92.5%),
    repeating-linear-gradient(0deg, transparent 0 3px, rgba(255,255,255,.012) 3px 4px);
}

.playfield {
  position: absolute;
  inset: 0;
  opacity: 1;
  transition: opacity .38s ease, transform .38s ease;
}

.playfield > * {
  transition: opacity .38s ease;
}

.game.intro-active .playfield {
  pointer-events: none;
}

.game.intro-active .playfield > :not(.topbar) {
  opacity: 0;
  pointer-events: none;
}

.game.intro-active .topbar {
  z-index: 26;
}

.game.intro-active .metric-left,
.game.intro-active .metric-right {
  opacity: 0;
}

.grain {
  position: absolute;
  inset: -30%;
  z-index: 20;
  opacity: .032;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
  animation: grain 1.1s steps(2) infinite;
}

@keyframes grain {
  0% { transform: translate3d(-2%, -1%, 0); }
  33% { transform: translate3d(2%, 1%, 0); }
  66% { transform: translate3d(-1%, 2%, 0); }
  100% { transform: translate3d(1%, -2%, 0); }
}

.topbar {
  position: absolute;
  z-index: 10;
  top: max(24px, env(safe-area-inset-top));
  left: 7.5%;
  right: 7.5%;
  display: grid;
  grid-template-columns: 1fr minmax(110px, 1.35fr) 1fr;
  align-items: start;
  pointer-events: none;
}

.metric {
  display: grid;
  grid-template-rows: 10px 28px;
  align-items: start;
  row-gap: 4px;
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "PingFang SC", sans-serif;
  font-variant-numeric: tabular-nums;
}

.metric-left { justify-items: start; text-align: left; }
.metric-right { justify-items: end; text-align: right; }
.piece-metric {
  position: relative;
  justify-items: center;
  text-align: center;
  pointer-events: auto;
}

.metric-label {
  display: block;
  color: var(--ivory-soft);
  font-size: 8px;
  letter-spacing: .32em;
  line-height: 10px;
  text-indent: .32em;
  opacity: .6;
}

.metric-value {
  display: block;
  min-width: 3ch;
  font-size: clamp(18px, 5.2vw, 27px);
  font-weight: 300;
  letter-spacing: .06em;
  line-height: 28px;
}

.piece-value {
  display: block;
  max-width: 100%;
  overflow: hidden;
  color: var(--ivory);
  font-family: "STKaiti", "KaiTi", "Songti SC", serif;
  font-size: clamp(13px, 3.8vw, 18px);
  font-weight: 400;
  letter-spacing: .16em;
  line-height: 28px;
  text-indent: .16em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.piece-switch {
  display: flex;
  height: 28px;
  min-width: 0;
  align-items: center;
  gap: 7px;
  padding: 0 3px 0 10px;
  border: 0;
  color: inherit;
  background: transparent;
  cursor: pointer;
}

.piece-switch i {
  width: 5px;
  height: 5px;
  border-right: 1px solid rgba(238,229,209,.55);
  border-bottom: 1px solid rgba(238,229,209,.55);
  transform: translateY(-2px) rotate(45deg);
  transition: transform .2s ease;
}

.piece-switch[aria-expanded="true"] i { transform: translateY(1px) rotate(225deg); }

.piece-menu {
  position: absolute;
  z-index: 35;
  top: 48px;
  left: 50%;
  width: 128px;
  translate: -50% 0;
  padding: 5px;
  border: 1px solid rgba(238,229,209,.16);
  background: rgba(6,17,27,.94);
  box-shadow: 0 12px 34px rgba(0,0,0,.3);
  backdrop-filter: blur(12px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
}

.piece-menu.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-5px);
}

.piece-menu button {
  display: block;
  width: 100%;
  padding: 10px 8px;
  border: 0;
  color: rgba(238,229,209,.58);
  background: transparent;
  font-family: "STKaiti", "KaiTi", "Songti SC", serif;
  font-size: 13px;
  letter-spacing: .16em;
  text-indent: .16em;
  cursor: pointer;
}

.piece-menu button + button { border-top: 1px solid rgba(238,229,209,.08); }
.piece-menu button[aria-selected="true"] { color: var(--ivory); background: rgba(238,229,209,.055); }

.round-progress {
  position: absolute;
  z-index: 10;
  top: calc(max(24px, env(safe-area-inset-top)) + 49px);
  left: 7.5%;
  right: 7.5%;
  height: 1px;
  overflow: hidden;
  background: rgba(238,229,209,.07);
  pointer-events: none;
}

.round-progress i {
  display: block;
  width: 0;
  height: 100%;
  background: rgba(238,229,209,.58);
  transition: width .24s ease;
}

.lane {
  position: absolute;
  inset: 0;
  z-index: 5;
  overflow: hidden;
  pointer-events: none;
}

.guide {
  position: absolute;
  left: 50%;
  top: 8%;
  width: 1px;
  height: 39%;
  background: linear-gradient(180deg, transparent, rgba(238,229,209,.06) 28%, rgba(238,229,209,.15));
}

.target-ring {
  position: absolute;
  z-index: 2;
  top: var(--target-y);
  left: 50%;
  width: 24.5%;
  aspect-ratio: 1;
  translate: -50% -50%;
  border: 1px solid rgba(238,229,209,.24);
  border-radius: 50%;
  pointer-events: none;
  transition: border-color .18s, box-shadow .18s, scale .18s;
}

.target-ring::before, .target-ring::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 12px;
  height: 1px;
  background: rgba(238,229,209,.52);
}

.target-ring::before { left: -6px; }
.target-ring::after { right: -6px; }

.game.hit .target-ring {
  scale: 1.08;
  border-color: rgba(238,229,209,.76);
  box-shadow: 0 0 28px rgba(238,229,209,.2), inset 0 0 24px rgba(238,229,209,.08);
}

.game.hit-soft .target-ring {
  scale: 1.03;
  border-color: rgba(238,229,209,.4);
}

.game.hit-perfect .target-ring {
  scale: 1.16;
  border-color: rgba(238,229,209,.95);
  box-shadow: 0 0 36px rgba(238,229,209,.34), inset 0 0 28px rgba(238,229,209,.14);
}

.beat {
  position: absolute;
  left: 50%;
  top: 0;
  width: 11px;
  height: 11px;
  margin: -5.5px 0 0 -5.5px;
  border: 1px solid var(--ivory);
  border-radius: 50%;
  opacity: .92;
  will-change: transform, opacity;
  box-shadow: 0 0 12px rgba(238,229,209,.16);
}

.beat.strong {
  width: 15px;
  height: 15px;
  margin: -7.5px 0 0 -7.5px;
  background: var(--ivory);
  box-shadow: 0 0 18px rgba(238,229,209,.3);
}

.beat.prep {
  border-style: dashed;
  opacity: .7;
}

.beat::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 100%;
  width: 1px;
  height: 34px;
  background: linear-gradient(0deg, rgba(238,229,209,.32), transparent);
}

.beat.hit-note {
  opacity: 0 !important;
  scale: 2.6;
  transition: opacity .24s, scale .24s;
}

.beat.hit-note-soft {
  opacity: 0 !important;
  scale: 1.7;
  border-color: rgba(238,229,209,.45);
  transition: opacity .28s, scale .28s;
}

.beat.hit-note-perfect {
  opacity: 0 !important;
  scale: 3.4;
  background: var(--ivory);
  box-shadow: 0 0 22px rgba(238,229,209,.55);
  transition: opacity .28s, scale .28s;
}

.beat.miss-note {
  border-color: var(--seal);
  opacity: 0 !important;
  transition: opacity .28s;
}

.clapper-wrap {
  position: absolute;
  z-index: 4;
  top: var(--target-y);
  left: 50%;
  width: 23%;
  aspect-ratio: .78;
  translate: -50% -46%;
  display: grid;
  place-items: center;
  pointer-events: none;
  filter: drop-shadow(0 10px 22px rgba(0,0,0,.36));
}

.clapper {
  position: relative;
  width: 68%;
  height: 82%;
  transform-origin: 50% 15%;
}

.board {
  position: absolute;
  top: 5%;
  left: 50%;
  width: 28%;
  height: 82%;
  border: 1.25px solid rgba(238,229,209,.92);
  border-radius: 45% 40% 32% 36% / 8% 8% 5% 5%;
  background: linear-gradient(90deg, rgba(238,229,209,.08), rgba(238,229,209,.2) 48%, rgba(238,229,209,.07));
  transform-origin: 50% 10%;
  box-shadow: inset 0 0 0 1px rgba(7,20,33,.38);
}

.board::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 13%;
  bottom: 12%;
  width: 1px;
  opacity: .25;
  background: var(--ivory);
}

.board.one { transform: translateX(-118%) rotate(-11deg); }
.board.two { transform: translateX(-50%); }
.board.three { transform: translateX(18%) rotate(11deg); }

.cord {
  position: absolute;
  z-index: 5;
  top: 12%;
  left: 50%;
  width: 86%;
  height: 9%;
  translate: -50% 0;
  border-top: 2px solid var(--seal);
  border-radius: 50%;
  opacity: .9;
}

.cord::after {
  content: "";
  position: absolute;
  top: -4px;
  left: 50%;
  width: 6px;
  height: 6px;
  translate: -50% 0;
  border-radius: 50%;
  background: var(--seal);
}

.game.hit .clapper {
  animation: clap .25s cubic-bezier(.2,.75,.3,1);
  filter: drop-shadow(0 0 18px rgba(238,229,209,.72));
}

.game.hit-soft .clapper {
  animation: clap-soft .22s ease-out;
  filter: drop-shadow(0 0 8px rgba(238,229,209,.28));
}

.game.hit-perfect .clapper {
  animation: clap-perfect .32s cubic-bezier(.18,.8,.28,1);
  filter: drop-shadow(0 0 26px rgba(238,229,209,.92));
}

.game.miss .clapper-wrap { animation: shake .28s ease-out; }

@keyframes clap {
  0% { transform: scale(1); }
  28% { transform: scale(.93) rotate(-1.5deg); }
  56% { transform: scale(1.075) rotate(1deg); }
  100% { transform: scale(1); }
}

@keyframes clap-soft {
  0% { transform: scale(1); }
  40% { transform: scale(.97); }
  100% { transform: scale(1); }
}

@keyframes clap-perfect {
  0% { transform: scale(1); }
  22% { transform: scale(.9) rotate(-2deg); }
  52% { transform: scale(1.12) rotate(1.4deg); }
  100% { transform: scale(1); }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  22% { transform: translateX(-5px) rotate(-1deg); }
  48% { transform: translateX(4px) rotate(1deg); }
  72% { transform: translateX(-2px); }
}

.judgement {
  position: absolute;
  z-index: 9;
  left: 50%;
  top: 64%;
  translate: -50% 0;
  min-width: 80px;
  text-align: center;
  color: var(--ivory);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "PingFang SC", sans-serif;
  font-size: 9px;
  letter-spacing: .34em;
  opacity: 0;
  pointer-events: none;
}

.judgement.show { animation: verdict .72s ease-out; }
.judgement.bad { color: #b16a5b; }
.judgement.soft {
  color: rgba(238,229,209,.48);
  letter-spacing: .28em;
}
.judgement.perfect {
  color: var(--ivory);
  font-size: 11px;
  letter-spacing: .28em;
  animation: verdict-perfect .86s ease-out;
}

@keyframes verdict {
  0% { opacity: 0; transform: translateY(5px); }
  18%, 65% { opacity: .86; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(-4px); }
}

@keyframes verdict-perfect {
  0% { opacity: 0; transform: translateY(7px) scale(.92); }
  16%, 62% { opacity: 1; transform: translateY(0) scale(1); }
  100% { opacity: 0; transform: translateY(-6px) scale(1.04); }
}

.stage-flash {
  position: absolute;
  z-index: 8;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(238,229,209,.08);
  font-size: min(41vw, 190px);
  font-weight: 300;
  opacity: 0;
  pointer-events: none;
}

.stage-flash.show { animation: stage-in 1.15s ease-out; }

@keyframes stage-in {
  0% { opacity: 0; scale: .9; }
  20%, 55% { opacity: 1; scale: 1; }
  100% { opacity: 0; scale: 1.08; }
}

.layer-toast {
  position: absolute;
  z-index: 11;
  left: 50%;
  top: 67%;
  translate: -50% 0;
  color: var(--ivory);
  font-size: 10px;
  letter-spacing: .42em;
  text-indent: .42em;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
}

.layer-toast.show { animation: layer-in 1.25s ease-out; }

@keyframes layer-in {
  0% { opacity: 0; transform: translateY(6px); }
  18%, 62% { opacity: .82; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(-5px); }
}

.ensemble {
  position: absolute;
  z-index: 9;
  left: 50%;
  bottom: calc(max(112px, 16.5%) + env(safe-area-inset-bottom));
  translate: -50% 0;
  display: flex;
  gap: 19px;
  align-items: center;
  pointer-events: none;
}

.instrument {
  position: relative;
  display: grid;
  gap: 7px;
  justify-items: center;
  color: var(--ivory);
  opacity: .18;
  transition: opacity .38s ease, transform .38s ease;
}

.instrument:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 2px;
  left: calc(100% + 6px);
  width: 12px;
  height: 1px;
  background: rgba(238,229,209,.17);
}

.instrument i {
  width: 5px;
  height: 5px;
  border: 1px solid currentColor;
  border-radius: 50%;
}

.instrument b {
  font-size: 8px;
  font-weight: 400;
  line-height: 1;
}

.instrument.on { opacity: .9; }

.instrument.on i {
  background: var(--ivory);
  box-shadow: 0 0 9px rgba(238,229,209,.46);
}

.instrument.just-on { animation: instrument-in .65s ease-out; }

@keyframes instrument-in {
  0% { transform: translateY(5px) scale(.75); opacity: .2; }
  45% { transform: translateY(-2px) scale(1.2); opacity: 1; }
  100% { transform: translateY(0) scale(1); opacity: .9; }
}

.progress {
  position: absolute;
  z-index: 9;
  left: 50%;
  bottom: calc(max(76px, 10.4%) + env(safe-area-inset-bottom));
  translate: -50% 0;
  display: flex;
  gap: 8px;
  pointer-events: none;
}

.pip {
  width: 3px;
  height: 3px;
  border: 1px solid rgba(238,229,209,.42);
  border-radius: 50%;
  transition: background .18s, box-shadow .18s, scale .18s;
}

.pip.on {
  background: var(--ivory);
  box-shadow: 0 0 7px rgba(238,229,209,.5);
  scale: 1.25;
}

.restart {
  position: absolute;
  z-index: 30;
  left: 50%;
  bottom: calc(max(22px, 3.2%) + env(safe-area-inset-bottom));
  translate: -50% 0;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(238,229,209,.28);
  border-radius: 50%;
  color: rgba(238,229,209,.75);
  background: rgba(7,20,33,.35);
  cursor: pointer;
  backdrop-filter: blur(4px);
  transition: border-color .2s, color .2s, transform .2s;
}

.restart:active { transform: scale(.93); }
.restart:hover { border-color: rgba(238,229,209,.68); color: var(--ivory); }
.restart svg { width: 17px; height: 17px; }

.intro {
  position: absolute;
  z-index: 25;
  inset: 0;
  display: grid;
  place-items: center;
  background:
    linear-gradient(90deg, transparent 7.5%, rgba(238,229,209,.035) 7.7%, transparent 7.9%),
    linear-gradient(90deg, transparent 92.1%, rgba(238,229,209,.035) 92.3%, transparent 92.5%),
    linear-gradient(180deg, #081724, #071421 58%, #06111b);
  cursor: pointer;
  transition: opacity .55s ease, visibility .55s;
}

.intro.hidden { opacity: 0; visibility: hidden; }
.intro:focus { outline: none; }

.pause-panel {
  position: absolute;
  z-index: 36;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(6,17,27,.58);
  cursor: pointer;
  transition: opacity .28s ease, visibility .28s;
}

.pause-panel.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.pause-panel p {
  margin: 0;
  display: grid;
  width: 78px;
  height: 78px;
  place-items: center;
  border: 1px solid rgba(238,229,209,.34);
  border-radius: 50%;
  color: var(--ivory-soft);
  font-size: 10px;
  letter-spacing: .28em;
  text-indent: .28em;
  animation: breathe 2s ease-in-out infinite;
}

.pause-panel:focus { outline: none; }

.intro-inner {
  position: relative;
  top: -4%;
  display: grid;
  justify-items: center;
  gap: 11px;
  text-align: center;
}

.intro-mark {
  position: relative;
  width: 58px;
  height: 112px;
  margin-bottom: 38px;
}

.intro-mark > i {
  position: absolute;
  top: 3px;
  left: 50%;
  width: 15px;
  height: 82px;
  border: 1px solid rgba(238,229,209,.9);
  border-radius: 8px 8px 5px 5px;
  background: linear-gradient(90deg, transparent, rgba(238,229,209,.09), transparent);
  transform-origin: 50% 10%;
}

.intro-mark > i:nth-child(1) { transform: translateX(-112%) rotate(-9deg); }
.intro-mark > i:nth-child(2) { transform: translateX(-50%); }
.intro-mark > i:nth-child(3) { transform: translateX(12%) rotate(9deg); }

.intro-mark > span {
  position: absolute;
  top: 12px;
  left: 50%;
  width: 54px;
  translate: -50% 0;
  border-top: 2px solid var(--seal);
  border-radius: 50%;
}

.intro-seal {
  position: absolute;
  left: 50%;
  bottom: -36px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  width: 29px;
  height: 29px;
  translate: -50% 0;
  padding: 3px;
  border: 1px solid var(--seal);
  color: #c77a68;
  font-style: normal;
  transform: rotate(-2deg);
  box-shadow: inset 0 0 0 1px rgba(157,81,66,.2);
}

.intro-seal b {
  display: grid;
  place-items: center;
  font-family: "STKaiti", "KaiTi", serif;
  font-size: 8px;
  font-weight: 400;
  line-height: 1;
}

.intro h1 {
  margin: 0;
  font-family: "STKaiti", "KaiTi", "Songti SC", serif;
  font-size: clamp(28px, 8vw, 41px);
  font-weight: 400;
  letter-spacing: .18em;
  text-indent: .18em;
}

.intro .roman {
  margin: 0;
  color: var(--ivory-soft);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 8px;
  letter-spacing: .46em;
  text-indent: .46em;
  opacity: .5;
}

.intro .start-cue {
  display: grid;
  width: 78px;
  height: 78px;
  margin: 38px 0 0;
  place-items: center;
  border: 1px solid rgba(238,229,209,.34);
  border-radius: 50%;
  color: var(--ivory-soft);
  font-size: 10px;
  letter-spacing: .28em;
  text-indent: .28em;
  opacity: .82;
  box-shadow: 0 0 0 0 rgba(238,229,209,.08);
  animation: breathe 2s ease-in-out infinite;
}

@keyframes breathe {
  50% {
    opacity: .48;
    box-shadow: 0 0 0 8px rgba(238,229,209,0);
    transform: scale(.97);
  }
}

.edge-inscription {
  position: absolute;
  z-index: 7;
  right: 4.4%;
  top: 34%;
  color: rgba(238,229,209,.3);
  font-size: 8px;
  letter-spacing: .24em;
  writing-mode: vertical-rl;
  pointer-events: none;
}

.edge-inscription::before {
  content: "";
  display: block;
  width: 1px;
  height: 28px;
  margin: 0 auto 9px;
  background: rgba(238,229,209,.24);
}

.result-panel {
  position: absolute;
  z-index: 40;
  inset: 0;
  display: grid;
  place-items: center;
  padding: max(24px, env(safe-area-inset-top)) 9% max(24px, env(safe-area-inset-bottom));
  background:
    linear-gradient(90deg, transparent 7.5%, rgba(238,229,209,.035) 7.7%, transparent 7.9%),
    linear-gradient(90deg, transparent 92.1%, rgba(238,229,209,.035) 92.3%, transparent 92.5%),
    rgba(6,17,27,.985);
  cursor: default;
  transition: opacity .45s ease, visibility .45s;
}

.result-panel.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.result-card {
  width: 100%;
  max-width: 360px;
  text-align: center;
}

.result-kicker {
  margin: 0 0 14px;
  color: rgba(238,229,209,.52);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "PingFang SC", sans-serif;
  font-size: 9px;
  letter-spacing: .36em;
  text-indent: .36em;
}

.result-card h2 {
  margin: 0;
  font-family: "STKaiti", "KaiTi", "Songti SC", serif;
  font-size: clamp(34px, 9.5vw, 48px);
  font-weight: 400;
  letter-spacing: .22em;
  text-indent: .22em;
}

.result-score {
  margin: 8px 0 24px;
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: clamp(16px, 4.5vw, 22px);
  font-variant-numeric: tabular-nums;
  font-weight: 300;
  letter-spacing: .2em;
  text-indent: .2em;
  opacity: .7;
}

.result-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 0 0 29px;
  border-block: 1px solid rgba(238,229,209,.12);
}

.result-stats span {
  display: grid;
  gap: 7px;
  padding: 14px 8px;
}

.result-stats span + span { border-left: 1px solid rgba(238,229,209,.12); }

.result-stats small,
.nanyin-note small {
  color: rgba(238,229,209,.42);
  font-size: 8px;
  font-weight: 400;
  letter-spacing: .28em;
  text-indent: .28em;
}

.result-stats b {
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 17px;
  font-variant-numeric: tabular-nums;
  font-weight: 300;
  letter-spacing: .05em;
}

.nanyin-note {
  min-height: 112px;
  margin: 0;
  padding: 0 3%;
  text-align: left;
}

.nanyin-note small {
  display: block;
  margin-bottom: 12px;
  color: #b86c5d;
  text-align: center;
}

.nanyin-note p {
  margin: 0;
  color: rgba(238,229,209,.72);
  font-size: 11px;
  letter-spacing: .08em;
  line-height: 1.95;
  text-align: justify;
}

.result-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 28px;
}

.result-actions button {
  height: 42px;
  border: 1px solid rgba(238,229,209,.34);
  color: var(--ivory);
  background: transparent;
  font-size: 10px;
  letter-spacing: .25em;
  text-indent: .25em;
  cursor: pointer;
}

.result-actions button:first-child {
  color: var(--night);
  border-color: var(--ivory);
  background: var(--ivory);
}

.result-actions button:active { transform: translateY(1px); }

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

@media (max-height: 600px) {
  .intro-inner { top: -2%; }
  .intro-mark { scale: .8; margin-bottom: 6px; }
  .intro .start-cue { margin-top: 16px; }
}
