/* =========================================================================
   宾客手机 · 打磨层：表情栏、玩法演示、悬念、道具和各游戏的手感
   ========================================================================= */

/* ---------- 互动表情栏 ---------- */
#cheer {
  flex: none;
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 8px var(--gutter) 12px;
  animation: stage-in 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
#cheer button {
  flex: 1;
  max-width: 62px;
  height: 54px;
  padding: 0;
  border-radius: 22px;
  font-size: 32px;
  line-height: 1;
  background: var(--paper);
  box-shadow: var(--shadow-sm);
  touch-action: manipulation;
}
#cheer button.hit {
  animation: cheer-hit 0.35s cubic-bezier(0.2, 1.6, 0.4, 1);
}
@keyframes cheer-hit {
  30% {
    transform: translateY(-10px) scale(1.25) rotate(-8deg);
  }
}
/* 有表情栏时正文少留一点底边 */
.has-cheer .stage-box {
  padding-bottom: 4px;
}

/* ---------- 规则页 ---------- */
.intro {
  gap: 14px;
}
.intro-head .demo,
.center > .demo {
  flex: none;
  font-size: min(11.5px, 1.6 * var(--vh));
  margin-bottom: 6px;
  animation: demo-in 0.6s cubic-bezier(0.2, 1.3, 0.4, 1) both;
}
@keyframes demo-in {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.88);
  }
}
.rules li {
  padding: 9px 0;
  font-size: 14.5px;
}
@media (max-height: 640px) {
  .intro {
    gap: 8px;
  }
  .rules li {
    padding: 5px 0;
    font-size: 13px;
  }
}

/* ---------- 悬念 ---------- */
.suspense .mark {
  animation: susp 0.7s ease-in-out infinite;
}
@keyframes susp {
  50% {
    transform: scale(1.14) rotate(4deg);
  }
}
.suspense .title::after {
  content: '';
}

/* ---------- 称号 / 连对 ---------- */
.p-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 2px 0 8px;
  padding: 7px 20px 7px 10px;
  border-radius: 99px;
  font-size: 17px;
  font-weight: 700;
  color: var(--on-accent);
  background: var(--grad);
  box-shadow: 0 5px 12px rgba(160, 40, 60, 0.25), var(--clay);
  animation: p-title 0.6s 0.35s cubic-bezier(0.2, 1.8, 0.4, 1) both;
}
.p-title i {
  font-style: normal;
  font-size: 26px;
  line-height: 1;
}
@keyframes p-title {
  from {
    opacity: 0;
    transform: scale(2) rotate(-8deg);
  }
}
.streak {
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 12px;
  border-radius: 99px;
  font-size: 14px;
  font-weight: 700;
  color: var(--on-accent);
  background: linear-gradient(180deg, #f59a4a, #ee7f2d);
  animation: pulse 0.8s infinite;
}
.result-card {
  animation: fun-card-in 0.55s cubic-bezier(0.2, 1.4, 0.4, 1) both;
}
@keyframes fun-card-in {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.86);
  }
}

/* ---------- 答题 / 默契 ---------- */
.q-foot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.q-foot .tip {
  margin: 0;
}
.now-pts {
  color: var(--accent);
}
.cut-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 46px;
  padding: 0 20px 0 14px;
  border: 0;
  border-radius: 99px;
  font-size: 15px;
  font-weight: 700;
  color: var(--accent-deep);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
}
.cut-btn i {
  font-style: normal;
  font-size: 28px;
  line-height: 1;
}
.cut-btn.on {
  color: var(--on-accent);
  background: var(--grad);
  box-shadow: 0 6px 12px rgba(160, 40, 60, 0.28), var(--clay);
  animation: pulse 0.8s infinite;
}
.stage-question .opt {
  animation: opt-in 0.45s cubic-bezier(0.2, 1.4, 0.4, 1) backwards;
}
@keyframes opt-in {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.92);
  }
}
.opt.off {
  opacity: 0.28;
  filter: grayscale(1);
  text-decoration: line-through;
  pointer-events: none;
}
.opt.picked {
  animation: opt-pick 0.35s cubic-bezier(0.2, 1.6, 0.4, 1) !important;
}
@keyframes opt-pick {
  40% {
    transform: scale(1.05);
  }
}

/* ---------- 为爱充能 ---------- */
.charge-play {
  position: relative;
}
.cg-energy {
  position: relative;
  padding-top: 26px;
}
.cg-walk {
  --p: 0;
  position: absolute;
  left: 4px;
  right: 4px;
  top: -4px;
  height: 30px;
}
.cg-walk i {
  position: absolute;
  top: 0;
  width: 50%;
  font-style: normal;
  font-size: 25px;
  line-height: 1.1;
  transition: transform 0.3s ease-out;
}
/* 宽度正好是一半，平移自身宽度的百分比就能走到中间 */
.cg-walk .m {
  left: 0;
  will-change: transform;
  transform: translateX(calc(var(--p) * (100% - 27px)));
}
.cg-walk .f {
  right: 0;
  will-change: transform;
  text-align: right;
  transform: translateX(calc(var(--p) * (27px - 100%)));
}
.charge-play.boost .charge-heart {
  background: #ffe1dc;
  box-shadow: 0 0 0 10px rgba(255, 248, 236, 0.75), 0 0 0 22px rgba(255, 248, 236, 0.4), var(--shadow-lg);
}
.charge-play.boost .charge-heart svg {
  animation-duration: 0.4s;
}
.charge-play.boost .cg-eye {
  color: var(--on-accent);
  padding: 3px 14px;
  border-radius: 99px;
  background: var(--grad);
}
.charge-play.boost::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -30px;
  bottom: -18px;
  left: -30px;
  z-index: -1;
  background: radial-gradient(60% 45% at 50% 56%, rgba(245, 132, 122, 0.7), rgba(245, 132, 122, 0));
  animation: boost-bg 0.4s infinite alternate;
  pointer-events: none;
}
@keyframes boost-bg {
  from {
    opacity: 0.4;
  }
}
/* 金色爱心在这一层里飞，飞出去的部分裁掉：不然会撑大可滚动范围，一路逼着页面重排 */
.gold-sky {
  position: absolute;
  z-index: 6;
  top: 0;
  bottom: 0;
  left: calc(-1 * var(--gutter));
  right: calc(-1 * var(--gutter));
  overflow: hidden;
  contain: layout paint;
  pointer-events: none;
}
.gold-heart {
  position: absolute;
  pointer-events: auto;
  width: 74px;
  height: 74px;
  padding: 10px;
  border: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 232, 170, 0.9), rgba(255, 232, 170, 0) 70%);
  touch-action: none;
}
.gold-heart svg {
  width: 100%;
  height: 100%;
  animation: heartbeat 0.5s infinite;
}
.gold-heart.l {
  left: -80px;
  animation: gold-l 2.5s linear forwards;
}
.gold-heart.r {
  right: -80px;
  animation: gold-r 2.5s linear forwards;
}
@keyframes gold-l {
  50% {
    transform: translate(calc(50 * var(--vw)), -46px);
  }
  to {
    transform: translate(calc(100 * var(--vw) + 80px), 20px);
  }
}
@keyframes gold-r {
  50% {
    transform: translate(calc(-50 * var(--vw)), -46px);
  }
  to {
    transform: translate(calc(-100 * var(--vw) - 80px), 20px);
  }
}

/* ---------- 数喜钱 ---------- */
.money-stack.live .note.z0 {
  animation: note-up 0.14s ease-out;
}
@keyframes note-up {
  from {
    transform: translate(4px, 7px) rotate(-1.2deg) scale(0.97);
  }
}
.money-left,
.money-right {
  --x: -1;
  animation: money-side 0.45s ease-out forwards;
}
.money-right {
  --x: 1;
}
@keyframes money-side {
  to {
    transform: translate(calc(var(--x) * 110 * var(--vw)), -30px) rotate(calc(var(--x) * 40deg));
    opacity: 0;
  }
}
.money-area.oops {
  animation: shake 0.28s 2;
}

/* ---------- 反应王 ---------- */
.reflex-pad.fake {
  background: #fbdc9a;
}
.rx-fake {
  font-size: 190px;
  line-height: 1;
}
.rx-an,
.rx-fooled {
  font-size: 130px;
  line-height: 1.1;
  animation: p-title 0.5s cubic-bezier(0.2, 1.8, 0.4, 1) both;
}
.rx-fake .art,
.rx-an .art,
.rx-fooled .art,
.reflex-pad .watch .art {
  display: block;
  width: 1em;
  height: 1em;
  margin: 0 auto;
}

/* ---------- 接喜糖 ---------- */
.candy-pow {
  position: absolute;
  left: 14px;
  top: 74px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 6px;
  pointer-events: none;
}
.candy-pow span {
  display: none;
  position: relative;
  overflow: hidden;
  padding: 5px 16px;
  border-radius: 99px;
  font-size: 14px;
  font-weight: 700;
  color: var(--on-accent);
  background: rgba(181, 44, 72, 0.35);
  isolation: isolate;
}
.candy-pow .mag {
  background: rgba(91, 134, 201, 0.4);
}
.candy-pow i {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: -1;
  background: #d9405a;
  transform-origin: left;
}
.candy-pow .mag i {
  background: #5b86c9;
}
@keyframes pow-bar {
  to {
    transform: scaleX(0);
  }
}
.has-x2 .candy-pow .x2,
.has-mag .candy-pow .mag {
  display: block;
}
.has-x2.candy-area {
  box-shadow: inset 0 0 0 3px rgba(224, 85, 43, 0.5), var(--shadow);
}
.candy-rush {
  position: absolute;
  left: 50%;
  top: 22%;
  z-index: 2;
  padding: 8px 24px;
  border-radius: 99px;
  font-size: 22px;
  font-weight: 800;
  white-space: nowrap;
  color: var(--on-accent);
  background: var(--grad);
  transform: translateX(-50%) scale(0);
  opacity: 0;
  pointer-events: none;
  box-shadow: 0 6px 12px rgba(160, 40, 60, 0.28), var(--clay);
}
.candy-area.rush .candy-rush {
  animation: rush-pop 2s cubic-bezier(0.2, 1.5, 0.4, 1) forwards;
}
@keyframes rush-pop {
  18%,
  70% {
    opacity: 1;
    transform: translateX(-50%) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateX(-50%) scale(1.2);
  }
}
.candy-area.rush {
  background: linear-gradient(180deg, #ffd9c7, #ffeccb);
}

/* ---------- 估一估 ---------- */
.gs-wrap {
  gap: 10px;
}
.gs-show {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
  padding: 6px 0;
  border-radius: 28px;
  background: var(--paper-soft);
  box-shadow: inset 0 3px 6px rgba(122, 62, 38, 0.12);
}
.gs-show b {
  font-size: 44px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--accent);
}
.gs-show.empty b {
  color: var(--faint);
}
.gs-show small {
  font-size: 18px;
  color: var(--muted);
}
.gs-show.sent {
  animation: opt-pick 0.4s cubic-bezier(0.2, 1.6, 0.4, 1);
}
.gs-keys {
  flex: 1;
  min-height: 176px;
  max-height: 300px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(4, 1fr);
  gap: 8px;
}
.gs-keys button {
  padding: 0;
  border-radius: 24px;
  font-size: 26px;
  font-weight: 700;
  color: var(--ink);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
  touch-action: manipulation;
}
.gs-keys button.hit {
  animation: key-hit 0.22s ease-out;
}
@keyframes key-hit {
  30% {
    transform: scale(0.92);
    background: #ffe0d4;
  }
}
.gs-wrap .tip {
  margin: 0;
}

/* ---------- 猜拳 ---------- */
.ghost .hand {
  filter: saturate(0.75);
  background: #efe3f7;
}
.mark.emoji.pump,
.suspense .mark.emoji {
  animation: pump 0.52s cubic-bezier(0.6, 0, 0.9, 0.4) infinite;
}
@keyframes pump {
  50% {
    transform: translateY(-26px) rotate(-12deg);
  }
}
.clash {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin: 4px 0 12px;
}
.clash > span {
  display: block;
  text-align: center;
}
.clash i {
  display: block;
  font-style: normal;
  font-size: 84px;
  line-height: 1.1;
}
.clash small {
  font-size: 13px;
  color: var(--muted);
}
.clash b {
  font-size: 18px;
  color: var(--muted);
}
.clash > span:first-child {
  animation: clash-l 0.5s cubic-bezier(0.2, 1.6, 0.4, 1) both;
}
.clash > span:last-child {
  animation: clash-r 0.5s cubic-bezier(0.2, 1.6, 0.4, 1) both;
}
.clash.win > span:last-child i,
.clash.lose > span:first-child i {
  animation: clash-out 0.6s 0.5s ease-in both;
}
@keyframes clash-l {
  from {
    transform: translateX(-120px);
  }
}
@keyframes clash-r {
  from {
    transform: translateX(120px);
  }
}
@keyframes clash-out {
  to {
    transform: rotate(24deg) translateY(10px) scale(0.8);
    filter: grayscale(1);
    opacity: 0.45;
  }
}

/* ---------- 抽奖 ---------- */
.ticket {
  display: flex;
  width: 268px;
  height: 118px;
  border-radius: 30px;
  overflow: hidden;
  text-align: left;
  background: var(--paper);
  box-shadow: var(--shadow-lg);
}
.tk-l {
  width: 100px;
  display: grid;
  place-items: center;
  background: var(--grad);
  border-right: 4px dotted var(--paper);
  box-shadow: var(--clay);
}
.tk-l i {
  font-style: normal;
  font-size: 58px;
}
.tk-r {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 18px;
}
.tk-r small {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--accent);
}
.tk-r b {
  font-size: 23px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.tk-r em {
  font-style: normal;
  font-size: 13px;
  color: var(--muted);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.ticket.off {
  filter: grayscale(1);
  opacity: 0.6;
}
.roll-ticket {
  margin-bottom: 16px;
  perspective: 600px;
}
.roll-ticket .ticket {
  animation: tk-roll 0.5s linear infinite;
}
.roll-ticket.slow .ticket {
  animation-duration: 1.6s;
}
@keyframes tk-roll {
  0%,
  100% {
    transform: rotate(-3deg) translateY(0);
  }
  25% {
    transform: rotate(2deg) translateY(-8px);
  }
  50% {
    transform: rotate(3deg) translateY(0);
  }
  75% {
    transform: rotate(-2deg) translateY(-8px);
  }
}

/* ---------- 6 个新游戏的手感 ---------- */
/* 整块一起弹，不要一格一格动：36 格就是 36 个图层，低端机扛不住 */
.sp-grid.next {
  animation: sp-next 0.2s ease-out;
}
@keyframes sp-next {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
}
.dw-area.great {
  box-shadow: 0 0 0 5px var(--accent), var(--shadow);
}
.st-foot {
  position: absolute;
  z-index: 0;
  margin: -18px 0 0 -18px;
  font-style: normal;
  font-size: 32px;
  pointer-events: none;
  animation: st-foot 0.42s ease-out forwards;
}
@keyframes st-foot {
  from {
    opacity: 0.8;
    transform: rotate(var(--r)) scale(1.2);
  }
  to {
    opacity: 0;
    transform: rotate(var(--r)) translateY(34px) scale(0.8);
  }
}
.tm-pad.run.blind .tm-lbl {
  animation: tease 0.35s cubic-bezier(0.2, 1.6, 0.4, 1);
}
@keyframes tease {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.9);
  }
}
.fl-go {
  position: absolute;
  left: 50%;
  top: 46%;
  z-index: 3;
  margin: -64px 0 0 -64px;
  font-style: normal;
  font-size: 150px;
  line-height: 1;
  pointer-events: none;
  animation: fl-go 0.55s cubic-bezier(0.5, 0, 0.9, 0.5) forwards;
}
@keyframes fl-go {
  to {
    transform: translate(var(--x), calc(-80 * var(--vh))) rotate(var(--r)) scale(0.5);
  }
}
.fl-pad.on .fl-flower {
  animation: fl-come 0.35s cubic-bezier(0.2, 1.5, 0.4, 1) both;
}
@keyframes fl-come {
  from {
    transform: translateY(calc(-60 * var(--vh))) rotate(-180deg) scale(0.5);
  }
}

#cheer .art {
  display: block;
  width: 1em;
  height: 1em;
  margin: 0 auto;
}

.clash .art {
  display: block;
  width: 1em;
  height: 1em;
  margin: 0 auto 4px;
}
.hand .art {
  width: 1em;
  height: 1em;
}

/* 木头人最后一段 */
.st-wrap.final .st-syl {
  display: none;
}
/* 心有灵犀 */
.mi-hearts {
  display: flex;
  justify-content: center;
  gap: 7px;
}
.mi-hearts svg {
  width: 24px;
  height: 22px;
}
.mi-hearts path {
  fill: rgba(74, 42, 34, 0.14);
}
.mi-hearts .on path {
  fill: var(--accent);
}
.mi-mate {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin-top: 8px;
  padding: 10px 14px;
  border-radius: 22px;
  text-align: left;
  background: var(--paper-soft);
}
.mi-mate > i {
  flex: none;
  width: 46px;
  height: 46px;
}
.mi-mate > i > .face {
  display: block;
  width: 46px;
  height: 46px;
}
.mi-mate span {
  display: block;
  min-width: 0;
  font-size: 14px;
  color: var(--muted);
}
.mi-mate b {
  display: block;
  font-size: 19px;
  color: var(--ink);
  overflow-wrap: anywhere;
}

/* 火眼金睛：过关时关数牌子跳一下 */
.count-pill.hit {
  animation: sp-hit 0.3s ease-out;
}
@keyframes sp-hit {
  40% {
    transform: scale(1.16);
  }
}

/* ---------- 见好就收 ---------- */
.bl-wrap {
  gap: 10px;
}
.bl-sky {
  position: relative;
  flex: 1;
  min-height: 170px;
  display: grid;
  place-items: center;
}
.bl-ball {
  width: min(250px, 66 * var(--vw), 34 * var(--vh));
  transform: scale(0.36);
  transition: transform 0.55s cubic-bezier(0.2, 1.7, 0.4, 1);
}
.bl-ball.shake svg {
  animation: bl-shake 0.13s linear infinite;
}
@keyframes bl-shake {
  0%,
  100% {
    transform: translateX(0) rotate(0);
  }
  25% {
    transform: translateX(-2.5%) rotate(-1.5deg);
  }
  75% {
    transform: translateX(2.5%) rotate(1.5deg);
  }
}
.bl-bang {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 150px;
  height: 150px;
  margin: -75px 0 0 -75px;
  opacity: 0;
  pointer-events: none;
}
.bl-bang .art {
  display: block;
  width: 100%;
  height: 100%;
}
.bl-wrap.popped .bl-ball {
  opacity: 0;
  transition: none;
}
.bl-wrap.popped .bl-bang {
  opacity: 1;
  animation: bl-bang 0.4s cubic-bezier(0.2, 1.8, 0.4, 1);
}
@keyframes bl-bang {
  from {
    transform: scale(0.2);
  }
}
.bl-pot {
  flex: none;
  text-align: center;
}
.bl-pot b {
  display: block;
  font-size: 62px;
  font-weight: 700;
  line-height: 1.1;
}
.bl-wrap.safe .bl-pot b {
  color: var(--ok);
}
.bl-wrap.popped:not(.safe) .bl-pot b {
  color: var(--bad);
}
.bl-take {
  flex: none;
  height: 92px;
  border-radius: 34px;
  font-size: 36px;
  touch-action: none;
}
.bl-take:disabled {
  opacity: 0.45;
}
.bl-wrap.safe .bl-take {
  color: var(--ok);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
  opacity: 1;
}

/* ---------- 戒指在哪 ---------- */
.cp-say {
  flex: none;
  text-align: center;
}
.cp-wrap .timer-pill {
  visibility: hidden;
}
.cp-wrap.open .timer-pill {
  visibility: visible;
}
.cp-table {
  flex: none;
  margin: auto 0;
  padding: 14px 8px;
  border-radius: 34px;
}
.cp-table .cups {
  width: 100%;
}
.cp-wrap .cup {
  touch-action: none;
}
.cp-wrap.open .cup.on span {
  transform: translateY(-8%);
}
.cp-wrap.open .cup.on .c-body,
.cp-show .cup.on .c-body {
  stroke: var(--gold);
  stroke-width: 7;
}
/* 押的那个，底下有一道杠 */
.cup::after {
  content: '';
  position: absolute;
  left: 22%;
  right: 22%;
  bottom: -9%;
  height: 7%;
  border-radius: 99px;
  background: var(--accent);
  opacity: 0;
}
.cp-wrap.open .cup.on::after,
.cp-show .cup.on::after {
  opacity: 1;
}
.cp-sum {
  flex: none;
  margin: 0;
  text-align: center;
  font-size: 22px;
}
.cp-sum > b {
  font-size: 34px;
  color: var(--accent);
}
.cp-sum small {
  display: block;
  font-size: 15px;
  color: var(--muted);
}
.cp-show .wait-pill {
  flex: none;
  align-self: center;
}

/* ---------- 满上！ ---------- */
.pr-pad {
  position: relative;
  flex: 1;
  min-height: 270px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px 12px;
  border-radius: 36px;
  color: var(--ink);
  background: var(--paper);
  box-shadow: var(--shadow);
  touch-action: none;
}
.pr-pad canvas {
  width: min(330px, 80 * var(--vw), 43 * var(--vh));
  height: min(330px, 80 * var(--vw), 43 * var(--vh));
  pointer-events: none;
}
.pr-lbl {
  min-height: 1.3em;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--accent);
}
.pr-sub {
  min-height: 1.5em;
  font-size: 16px;
  color: var(--ink-2);
}
.pr-sub b {
  color: var(--accent);
}
.pr-pad.run {
  background: var(--paper-hi);
  box-shadow: inset 0 0 0 5px var(--accent), var(--shadow);
}
.pr-pad.done .pr-lbl {
  color: var(--ink);
}
.pr-pad.done.good .pr-lbl {
  color: var(--ok);
}
.pr-pad.done.spill .pr-lbl {
  color: var(--bad);
}

/* ---------- 独一无二 ---------- */
.un-show {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 6px 18px;
  border-radius: 28px;
}
.un-show b {
  min-width: 1.4em;
  text-align: center;
  font-size: 50px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--accent);
}
.un-show span {
  font-size: 16px;
  color: var(--ink-2);
}
.un-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-auto-rows: 1fr;
  gap: 8px;
  max-height: 440px;
}
.un-grid.s30 {
  grid-template-columns: repeat(6, 1fr);
  gap: 7px;
}
.un-grid.five {
  flex: 0.5;
}
.un-two {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 480px;
}
.un-num {
  min-width: 0;
  min-height: 44px;
  padding: 0;
  border: 0;
  border-radius: 20px;
  font-size: 23px;
  font-weight: 700;
  color: var(--ink);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
  touch-action: manipulation;
}
.un-num:active {
  transform: scale(0.94);
}
.un-num.on {
  color: var(--on-accent);
  background: var(--grad);
  box-shadow: var(--clay);
}
.un-king {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 4px;
}
.un-king i {
  font-style: normal;
  line-height: 0;
}
.un-king .face {
  width: 30px;
  height: 30px;
}
.un-king b {
  margin-right: 4px;
}
