/* Cinematic black-and-gold summons; visual layers never intercept controls. */
.tc-effects {
  position: absolute;
  inset: -5% 0;
  z-index: 12;
  pointer-events: none;
  overflow: hidden;
  border-radius: 32px;
  isolation: isolate;
  contain: layout style;
}
.tc-special-burst {
  --fx-color: #efbd58;
  position: absolute;
  left: calc(50% + var(--fx-offset, 0%));
  top: 50%;
  width: min(64vw, 660px);
  height: 96%;
  max-height: 460px;
  transform: translate(-50%, -50%);
  animation: tcArrival 2.8s both;
}
.tc-special-burst[data-special='phoenix'] {
  --fx-color: #ff9f43;
}
.tc-special-burst[data-special='dog'] {
  --fx-color: #a4d393;
}
.tc-special-burst[data-special='mahjong'] {
  --fx-color: #abd989;
}
.tc-special-burst[data-special='bomb'] {
  --fx-color: #ffbc4c;
}
.tc-fx-paired {
  width: min(43vw, 460px);
  height: 84%;
}
.tc-fx-actor {
  position: absolute;
  inset: 0;
  z-index: 3;
  filter: drop-shadow(0 14px 10px #0009)
    drop-shadow(0 0 12px color-mix(in srgb, var(--fx-color) 35%, transparent));
  transform-origin: 50% 60%;
  will-change: transform;
}
.tc-fx-art {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
}
.tc-fx-halo {
  position: absolute;
  inset: 4% -8%;
  border-radius: 50%;
  background: radial-gradient(
    ellipse,
    color-mix(in srgb, var(--fx-color) 27%, transparent),
    #07120c44 48%,
    transparent 70%
  );
  animation: tcAura 2.8s both;
}
.tc-fx-orbit {
  position: absolute;
  inset: 24% 5%;
  transform: perspective(450px) rotateX(62deg);
  z-index: 1;
}
.tc-fx-orbit i {
  position: absolute;
  inset: 0;
  border: 1px solid #edce7b80;
  border-radius: 50%;
  box-shadow:
    0 0 16px #efbc573d,
    inset 0 0 12px #edce7b30;
  animation: tcOrbit 2.8s both;
}
.tc-fx-orbit i + i {
  inset: 12%;
  border-style: dashed;
  border-color: #f6dfa540;
  animation-delay: 0.12s;
}
.tc-fx-trail {
  position: absolute;
  z-index: 2;
  inset: 18% -6%;
  border-radius: 50%;
  background: conic-gradient(
    from 30deg,
    transparent 0 55%,
    #fff0b8aa 62%,
    #e7a64244 69%,
    transparent 75%
  );
  mask: radial-gradient(ellipse, transparent 55%, #000 58% 60%, transparent 64%);
  animation: tcTrail 2.8s both;
}
.tc-fx-flare {
  position: absolute;
  z-index: 4;
  left: 40%;
  top: 47%;
  width: 20%;
  height: 5%;
  border-radius: 50%;
  background: radial-gradient(ellipse, #fff4cb, transparent 65%);
  mix-blend-mode: screen;
  opacity: 0;
  animation: tcFlare 2.8s both;
}
.tc-fx-sparks {
  position: absolute;
  inset: 0;
  z-index: 4;
}
.tc-fx-sparks i {
  position: absolute;
  left: 50%;
  top: 60%;
  height: 3px;
  width: 3px;
  background: #ffe9ab;
  border-radius: 50%;
  box-shadow: 0 0 6px var(--fx-color);
  animation: tcSpark 2.15s ease-out both;
  animation-delay: calc(0.12s + var(--spark) * 0.019s);
}
.tc-fx-sparks i:nth-child(3n) {
  width: 2px;
  height: 9px;
  background: linear-gradient(#fff7d6, transparent);
}
.tc-special-burst[data-special='dragon'] .tc-fx-actor {
  animation: tcDragonSwoop 2.8s cubic-bezier(0.18, 0.65, 0.3, 1) both;
}
.tc-special-burst[data-special='phoenix'] .tc-fx-actor {
  animation: tcPhoenixFlight 2.8s ease-in-out both;
}
.tc-special-burst[data-special='phoenix'] .tc-fx-trail {
  transform: rotate(-30deg);
  animation-name: tcPhoenixPlume;
}
.tc-special-burst[data-special='dog'] .tc-fx-actor {
  animation: tcGuardianLeap 2.8s cubic-bezier(0.2, 0.6, 0.25, 1) both;
}
.tc-special-burst[data-special='dog'] .tc-fx-orbit {
  top: 62%;
  bottom: 2%;
}
.tc-special-burst[data-special='mahjong'] .tc-fx-actor {
  animation: tcScrollReveal 2.8s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.tc-special-burst[data-special='mahjong'] .tc-fx-flare {
  top: 27%;
}
.tc-special-burst[data-special='bomb'] .tc-fx-actor {
  animation: tcBombImpact 2.8s both;
}
.tc-special-burst[data-special='bomb'] .tc-fx-orbit {
  inset: 0;
  transform: none;
}
.tc-special-burst[data-special='bomb'] .tc-fx-orbit i {
  animation: tcShockwave 2.8s both;
  border-width: 3px;
}
.tc-special-burst[data-special='bomb'] .tc-fx-flare {
  animation-name: tcBombFlash;
  width: 68%;
  height: 68%;
  left: 16%;
  top: 16%;
  background: radial-gradient(circle, #fff7da, #ffd26a55 20%, transparent 66%);
}
.tc-special-burst[data-special='bomb'] .tc-fx-sparks i {
  animation-name: tcBombSpark;
  animation-duration: 2.6s;
  animation-delay: calc(var(--spark) * 0.005s);
}
.cr-button[data-card-action='declare'] {
  color: #ffe5a2;
  border-color: #d5af505e;
  background: linear-gradient(135deg, #71612233, #2a332533);
  box-shadow: inset 0 1px #ffeab21c;
}
.tc-fx-reduced {
  animation: none;
  opacity: 0.7;
}
.tc-fx-reduced .tc-fx-halo {
  animation: none;
  background: none;
  border: 2px solid var(--fx-color);
}
@keyframes tcArrival {
  0% {
    opacity: 0;
    transform: translate(-50%, -42%) scale(0.72);
  }
  12%,
  80% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -56%) scale(1.04);
  }
}
@keyframes tcAura {
  0% {
    opacity: 0;
    transform: scale(0.3);
  }
  22%,
  68% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(1.3);
  }
}
@keyframes tcOrbit {
  0% {
    opacity: 0;
    transform: scale(0.2) rotate(-60deg);
  }
  25%,
  72% {
    opacity: 0.9;
  }
  100% {
    opacity: 0;
    transform: scale(1.18) rotate(80deg);
  }
}
@keyframes tcTrail {
  0% {
    opacity: 0;
    transform: scale(0.5) rotate(-100deg);
  }
  30%,
  65% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: scale(1.25) rotate(100deg);
  }
}
@keyframes tcFlare {
  0%,
  22%,
  65%,
  100% {
    opacity: 0;
    transform: scaleX(0.2);
  }
  30%,
  40% {
    opacity: 0.8;
    transform: scaleX(1.7);
  }
}
@keyframes tcSpark {
  0% {
    opacity: 0;
    transform: rotate(calc(var(--spark) * 15deg)) translateX(25px);
  }
  20% {
    opacity: 0.95;
  }
  100% {
    opacity: 0;
    transform: rotate(calc(var(--spark) * 15deg)) translateX(var(--reach)) translateY(var(--rise));
  }
}
@keyframes tcDragonSwoop {
  0% {
    transform: translate(12%, 10%) scale(0.78) rotate(-8deg);
  }
  28% {
    transform: translate(0, -2%) scale(1.02) rotate(2deg);
  }
  58% {
    transform: translate(-3%, 0) scale(1.03) rotate(-2deg);
  }
  100% {
    transform: translate(-10%, -5%) scale(0.95) rotate(-5deg);
  }
}
@keyframes tcPhoenixFlight {
  0% {
    transform: translateY(18%) scale(0.68) rotate(-5deg);
  }
  28% {
    transform: translateY(0) scale(1.02);
  }
  48% {
    transform: translateY(2%) scaleX(0.94) rotate(2deg);
  }
  68% {
    transform: translateY(-3%) scaleX(1.02) rotate(-2deg);
  }
  100% {
    transform: translateY(-19%) scale(0.92);
  }
}
@keyframes tcPhoenixPlume {
  0% {
    opacity: 0;
    transform: rotate(-140deg) scale(0.45);
  }
  40%,
  65% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: rotate(70deg) scale(1.15);
  }
}
@keyframes tcGuardianLeap {
  0% {
    transform: translate(-25%, 16%) scale(0.74) rotate(-10deg);
  }
  30% {
    transform: translate(-3%, -4%) scale(1.02) rotate(-2deg);
  }
  56% {
    transform: translate(3%, 0) scale(1) rotate(2deg);
  }
  100% {
    transform: translate(25%, -15%) scale(0.82) rotate(-6deg);
  }
}
@keyframes tcScrollReveal {
  0% {
    transform: perspective(700px) rotateY(-40deg) rotateZ(-8deg) scale(0.4);
  }
  30% {
    transform: perspective(700px) rotateY(7deg) rotateZ(2deg) scale(1.02);
  }
  65% {
    transform: perspective(700px) rotateY(-6deg) rotateZ(-2deg) scale(1);
  }
  100% {
    transform: perspective(700px) rotateY(15deg) translateY(-6%) scale(0.96);
  }
}
@keyframes tcBombImpact {
  0% {
    transform: translateY(-18%) scale(0.65) rotate(-15deg);
  }
  28% {
    transform: scale(0.98) rotate(8deg);
  }
  38% {
    transform: scale(1.08) rotate(-4deg);
  }
  43% {
    transform: translateX(-2%) scale(1.1) rotate(2deg);
  }
  48% {
    transform: translateX(2%) scale(1.06) rotate(-2deg);
  }
  65% {
    transform: scale(1);
  }
  100% {
    transform: scale(0.85) translateY(6%) rotate(6deg);
  }
}
@keyframes tcShockwave {
  0%,
  30% {
    opacity: 0;
    transform: scale(0.15);
  }
  38% {
    opacity: 0.95;
  }
  80%,
  100% {
    opacity: 0;
    transform: scale(1.4);
  }
}
@keyframes tcBombFlash {
  0%,
  28%,
  55%,
  100% {
    opacity: 0;
    transform: scale(0.3);
  }
  35% {
    opacity: 0.85;
    transform: scale(1.1);
  }
}
@keyframes tcBombSpark {
  0%,
  30% {
    opacity: 0;
    transform: rotate(calc(var(--spark) * 15deg)) translateX(10px);
  }
  40% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: rotate(calc(var(--spark) * 15deg)) translateX(calc(var(--reach) * 1.8));
  }
}
@media (orientation: landscape) and (max-height: 600px) {
  .tc-effects {
    inset: -3% 0;
  }
  .tc-special-burst {
    width: min(63vw, 440px);
    height: 96%;
    max-height: 270px;
  }
  .tc-fx-paired {
    width: 35vw;
  }
  .tc-fx-sparks i {
    --reach: 80px !important;
    --rise: -55px !important;
  }
  .cr-button[data-card-action='declare'] {
    padding-inline: 10px;
    font-size: 11px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .tc-effects * {
    animation: none !important;
  }
  .tc-fx-actor,
  .tc-fx-sparks,
  .tc-fx-orbit,
  .tc-fx-trail,
  .tc-fx-flare {
    display: none;
  }
}
.motion-off .tc-effects * {
  animation: none !important;
}
.motion-off .tc-fx-actor,
.motion-off .tc-fx-sparks,
.motion-off .tc-fx-orbit,
.motion-off .tc-fx-trail,
.motion-off .tc-fx-flare {
  display: none;
}
.cr-result-money {
  font-size: 18px !important;
  font-weight: 750;
  color: #e5f5a1 !important;
  background: linear-gradient(120deg, #b8dd4a20, #e4bc6020);
  border: 1px solid #c3df6a55;
  border-radius: 14px;
  padding: 18px;
}
.cr-winning .cr-overlay-panel {
  width: min(760px, 100%);
  border-color: #d9c67a77;
  background:
    radial-gradient(ellipse at 20% 0%, #56602a66, transparent 60%),
    linear-gradient(135deg, #1c3026, #111d19);
}
.cr-winning .cr-result-head {
  text-align: center;
}
.cr-winning .cr-result-symbol {
  font-size: 27px;
  margin-bottom: 7px;
  color: #f2d57a;
}
.cr-winning .cr-result-head h3 {
  color: #ffe9a7;
  margin: 8px 0 25px;
}
.cr-win-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
}
.cr-result-payout {
  text-align: center;
  min-width: 0;
}
.cr-result-payout .result-payout {
  margin-bottom: 0;
}
.cr-win-details {
  position: relative;
  z-index: 4;
  min-width: 0;
}
.cr-win-details .cr-result-scores {
  margin: 0 0 15px;
  gap: 10px;
}
.cr-win-details .cr-result-scores > div {
  padding: 12px;
}
.cr-win-details .cr-result-scores strong {
  font-size: 31px;
}
.cr-result-history summary {
  font-size: 11px;
  color: #d7e3bd;
  cursor: pointer;
  padding: 8px 0;
}
.cr-result-history .cr-round-history {
  margin: 10px 0;
  max-height: 140px;
}
.cr-result-history caption {
  display: none;
}
.cr-win-details .cr-result-buttons {
  display: grid;
  gap: 8px;
  margin-top: 15px;
}
.cr-win-details .cr-button {
  margin: 0;
  justify-content: center;
  width: 100%;
}
@media (max-width: 600px) and (orientation: portrait) {
  .cr-win-layout {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .cr-winning .cr-result-head h3 {
    margin-bottom: 20px;
  }
  .cr-result-payout {
    order: -1;
  }
}
@media (orientation: landscape) and (max-height: 600px) {
  .cr-winning .cr-overlay {
    padding: 12px 18px;
  }
  .cr-winning .cr-overlay-panel {
    padding: 16px 24px;
  }
  .cr-winning .cr-result-symbol {
    display: none;
  }
  .cr-winning .cr-result-head h3 {
    font-size: 23px;
    margin: 5px 0 12px;
  }
  .cr-winning .cr-win-layout {
    gap: 28px;
  }
  .cr-result-payout .coin-scene {
    height: 180px;
  }
  .cr-result-payout .coin-platform {
    top: 158px;
  }
  .cr-result-payout .wallet-deposited-label {
    font-size: 9px;
  }
  .cr-win-details .cr-result-scores strong {
    font-size: 26px;
  }
  .cr-win-details .cr-result-buttons {
    margin-top: 8px;
  }
  .cr-win-details .cr-button {
    min-height: 36px;
  }
}
.hero {
  min-height: 570px;
  padding-bottom: 98px;
}
.hero-copy {
  padding-bottom: 110px;
}
.hero-bottom {
  bottom: 110px;
}
.hero-game-strip {
  position: absolute;
  left: 26px;
  right: 26px;
  bottom: 18px;
  z-index: 8;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}
.hero-game-strip button {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: start;
  color: #e1e8cd;
  text-align: left;
  padding: 5px;
  border: 1px solid #afbe6f30;
  background: #0b120bc9;
  backdrop-filter: blur(8px);
  border-radius: 9px;
  min-width: 0;
  transition:
    border-color 0.2s,
    background 0.2s;
}
.hero-game-strip button:hover,
.hero-game-strip button:focus-visible {
  border-color: #c3fa4c;
  background: #243415;
}
.hero-game-strip img {
  width: 36px;
  height: 45px;
  object-fit: cover;
  flex: 0 0 36px;
  border-radius: 5px;
}
.hero-game-strip span {
  font-size: 10px;
  font-weight: 750;
  line-height: 1.2;
}
.hero .hero-tag {
  bottom: 165px;
}
.hero-bottom-motto {
  display: none;
}
.hero-collection-art {
  display: none;
}
.hero[data-promotion='collection'] .hero-image {
  opacity: 0 !important;
  animation: none;
}
.hero[data-promotion='collection'] .hero-collection-art {
  position: absolute;
  display: flex;
  gap: 15px;
  inset: 25px -35px 130px 48%;
  transform: rotate(9deg);
  z-index: 1;
  align-items: center;
  mask-image: linear-gradient(0deg, transparent, #000 25%);
}
.hero-collection-art img {
  object-fit: cover;
  width: 36%;
  height: 86%;
  border: 1px solid #d1be6155;
  border-radius: 18px;
  box-shadow: -12px 12px 40px #0009;
}
.hero-collection-art img:nth-child(2) {
  height: 100%;
  transform: translateY(-20px);
}
.hero[data-promotion='collection'] .hero-shade {
  z-index: 2;
  background: linear-gradient(90deg, #0b120cf5 18%, #0b120cce 38%, transparent 72%);
}
.hero .hero-copy {
  z-index: 3;
  position: relative;
}
.hero:not([data-promotion='chess']):not([data-promotion='collection']) .hero-image {
  inset: 0 0 65px 30%;
  background-size: cover;
  background-position: 50% 38%;
  filter: saturate(0.8);
}
.hero-dot {
  width: 18px;
}
@media (max-width: 1100px) {
  .hero-game-strip button {
    flex-direction: column;
    text-align: center;
    gap: 5px;
  }
  .hero-game-strip img {
    width: 100%;
    height: 42px;
    flex-basis: auto;
  }
  .hero-game-strip span {
    font-size: 9px;
  }
  .hero-collection-art {
    opacity: 0.8;
  }
  .hero h1 {
    font-size: 48px;
  }
}
@media (max-width: 600px) {
  .hero {
    min-height: 650px;
    padding-bottom: 0;
  }
  .hero-copy {
    min-height: 650px;
    padding-top: 235px !important;
    padding-bottom: 210px !important;
  }
  .hero h1 {
    font-size: 36px;
    min-height: 80px;
  }
  .hero .hero-tag {
    top: 13px;
    bottom: auto;
    z-index: 4;
  }
  .hero-game-strip {
    left: 15px;
    right: 15px;
    bottom: 65px;
    gap: 4px;
  }
  .hero-game-strip button {
    padding: 4px 2px;
    border-radius: 6px;
  }
  .hero-game-strip img {
    height: 43px;
  }
  .hero-game-strip span {
    font-size: 8px;
    min-height: 19px;
    display: flex;
    align-items: center;
  }
  .hero-bottom {
    bottom: 15px;
    left: 15px;
    right: 15px;
  }
  .hero-dot {
    width: 13px !important;
  }
  .hero-dots {
    gap: 2px;
  }
  .hero-pagination {
    gap: 5px;
  }
  .hero-controls {
    gap: 3px;
  }
  .hero-controls button {
    width: 30px;
    height: 32px;
  }
  .hero[data-promotion='collection'] .hero-collection-art {
    inset: -50px -20px auto 20px;
    height: 330px;
    mask-image: linear-gradient(0deg, transparent, #000 40%);
    opacity: 1;
  }
  .hero[data-promotion='collection'] .hero-shade {
    background: linear-gradient(0deg, #0b120c 40%, #0b120c30 70%, transparent);
  }
  .hero:not([data-promotion='chess']):not([data-promotion='collection']) .hero-image {
    inset: -35px -15px auto 10%;
    height: 380px;
    background-position: center 25%;
  }
  .hero-description {
    font-size: 12px !important;
    line-height: 1.6 !important;
  }
  .hero-primary {
    font-size: 11px;
  }
  .hero-buttons {
    margin-top: 20px !important;
  }
}
.card-lobby [hidden] {
  display: none !important;
}
.card-collection-heading {
  flex-wrap: wrap;
}
.card-category-back {
  color: #c3fa4c;
  font-size: 12px;
  flex-basis: 100%;
  text-align: left;
  padding: 0 0 8px;
}
.card-category-entry {
  position: relative;
  display: flex;
  align-items: center;
  isolation: isolate;
  width: 100%;
  min-height: 310px;
  overflow: hidden;
  border: 1px solid #a0b46b42;
  border-radius: 22px;
  background: #101a12;
  text-align: left;
  color: #f2f6e9;
  box-shadow: inset 0 0 70px #cadc3f0b;
  cursor: pointer;
}
.card-category-art {
  position: absolute;
  inset: 0 0 0 40%;
  display: flex;
  gap: 12px;
  transform: rotate(8deg) scale(1.2);
  opacity: 0.85;
  z-index: -2;
}
.card-category-art img {
  width: 33%;
  object-fit: cover;
}
.card-category-entry:after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, #0a120bf5 10%, #0a120bbd 45%, transparent);
}
.card-category-copy {
  display: grid;
  gap: 18px;
  padding: 42px;
  max-width: 680px;
}
.card-category-copy small {
  color: #cee989;
  font-size: 10px;
  letter-spacing: 2px;
}
.card-category-copy strong {
  font-size: clamp(29px, 3.4vw, 46px);
  line-height: 1.05;
  letter-spacing: -1.6px;
}
.card-category-copy > span {
  color: #b4c2a9;
  font-size: 13px;
  max-width: 350px;
  line-height: 1.8;
}
.card-category-copy b {
  color: #c3fa4c;
  font-size: 13px;
}
.strategy-card {
  border-color: #b7b67b30;
  background: #0d150e;
  border-radius: 17px;
  box-shadow: 0 18px 36px #0004;
}
.strategy-card:hover {
  border-color: #c3fa4c88;
  box-shadow: 0 18px 50px #7e9a0f15;
}
.strategy-art {
  height: auto !important;
  aspect-ratio: 4/5;
  background: #0a100b;
}
.strategy-art:after {
  background:
    linear-gradient(0deg, #0d150e 1%, #0d150ec9 13%, transparent 40%),
    linear-gradient(180deg, #07100755, transparent 25%);
  mask-image: none;
  z-index: 2;
}
.strategy-cover {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 1.5s cubic-bezier(0.2, 0.8, 0.2, 1);
  filter: saturate(0.82);
}
.strategy-card:hover .strategy-cover,
.strategy-card:focus-within .strategy-cover {
  transform: scale(1.055);
}
.strategy-art-name {
  position: absolute;
  z-index: 3;
  bottom: 25px;
  left: 24px;
  color: #f4f6ee;
  font-size: clamp(32px, 3.2vw, 47px);
  font-weight: 850;
  letter-spacing: -1.4px;
  text-shadow: 0 3px 20px #000;
  line-height: 1.1;
}
.strategy-mode {
  z-index: 4;
  top: 17px;
  left: 18px;
  background: #10170cba;
  backdrop-filter: blur(8px);
  padding: 8px 10px;
  border: 1px solid #becf6b38;
  border-radius: 6px;
  color: #e0e9c9;
}
.strategy-mode i {
  background: #c3fa4c;
}
.strategy-favorite {
  z-index: 4;
  border-color: #d4dc8a44;
  background: #101809a6;
}
.strategy-favorite[aria-pressed='true'] {
  color: #c3fa4c;
}
.strategy-copy {
  padding: 0 24px 22px !important;
}
.strategy-copy h4 {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.strategy-copy .eyebrow {
  color: #cedaa4;
  font-size: 8px;
}
.strategy-copy > p {
  font-size: 12px;
  margin: 10px 0 18px;
  min-height: 30px;
  color: #b3bfa7;
}
.strategy-bottom {
  padding-top: 16px;
}
.strategy-bottom > button {
  background: #c3fa4c;
  color: #18200b;
  box-shadow: 0 4px 22px #b8e44020;
}
.strategy-bottom > button:hover {
  box-shadow: 0 4px 28px #b8e44060;
}
.strategy-embers,
.strategy-glint {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}
.strategy-embers {
  background:
    radial-gradient(circle at 15% 70%, #ffdc7c 0 1px, transparent 2px),
    radial-gradient(circle at 80% 45%, #e5f57a 0 1px, transparent 3px),
    radial-gradient(circle at 60% 80%, #fff3ab 0 1px, transparent 2px);
  animation: coverEmbers 7s ease-in-out infinite;
  animation-delay: calc(var(--card-index) * -1s);
}
.strategy-glint {
  background: linear-gradient(110deg, transparent 35%, #fff5b518 49%, transparent 60%);
  transform: translateX(-110%);
  animation: coverGlint 9s ease-in-out infinite;
  animation-delay: calc(var(--card-index) * -1.4s);
}
@keyframes coverEmbers {
  0%,
  100% {
    opacity: 0.15;
    transform: translateY(12px);
  }
  50% {
    opacity: 0.85;
    transform: translateY(-25px);
  }
}
@keyframes coverGlint {
  0%,
  65% {
    transform: translateX(-110%);
  }
  90%,
  100% {
    transform: translateX(110%);
  }
}
.cr-arena {
  display: contents;
}
/* Tichu: table-first layout, four seats, compact scores, no information rail. */
.card-room[data-game='tichu'] {
  --card-accent: #c3fa4c;
  background: #070e0a;
  overflow: auto;
}
.card-room[data-game='tichu'] .cr-shell {
  height: 100dvh;
  min-height: 560px;
  max-width: 1500px;
  padding: 12px 24px 16px;
  display: flex;
  flex-direction: column;
}
.card-room[data-game='tichu'] .cr-header {
  padding: 0 0 10px;
  min-height: 62px;
  border-bottom-color: #b1a25d35;
  gap: 12px;
  flex-shrink: 0;
}
.card-room[data-game='tichu'] .cr-brand > span {
  width: 36px;
  height: 42px;
  background: #c6d9610a;
  border-radius: 8px;
  font-size: 24px;
}
.card-room[data-game='tichu'] .cr-brand .eyebrow,
.card-room[data-game='tichu'] .cr-demo-label {
  display: none;
}
.card-room[data-game='tichu'] .cr-brand h2 {
  font-size: 22px;
}
.tc-scoreboard {
  display: flex;
  justify-content: center;
  gap: clamp(22px, 6vw, 110px);
  align-items: center;
  text-align: center;
  flex: 1;
}
.tc-scoreboard > div {
  min-width: 76px;
  display: grid;
  gap: 3px;
}
.tc-scoreboard span {
  color: #b9c3a7;
  font-size: 10px;
}
.tc-scoreboard strong {
  font-size: 24px;
  line-height: 1;
  color: #f0f4df;
  font-variant-numeric: tabular-nums;
}
.tc-scoreboard .tc-round span {
  color: #d5b66f;
  letter-spacing: 3px;
  font-size: 8px;
}
.tc-scoreboard .tc-round strong {
  font-size: 12px;
  font-weight: 500;
}
.card-room[data-game='tichu'] .cr-layout {
  display: block;
  flex: 1;
  min-height: 0;
}
.card-room[data-game='tichu'] .cr-main {
  display: grid;
  height: 100%;
  grid-template-rows: minmax(180px, 1fr) 28px auto auto;
  align-content: end;
}
.card-room[data-game='tichu'] .cr-arena {
  display: block;
  position: relative;
  min-height: 0;
}
.card-room[data-game='tichu'] .cr-seats {
  display: contents;
}
.card-room[data-game='tichu'] .cr-table {
  position: absolute;
  inset: 100px 145px 14px;
  min-height: 0;
  border-radius: 50%;
  border: 3px solid #82714066;
  padding: 20px 50px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: radial-gradient(ellipse at 50% 45%, #215039, #10291b 65%, #0a1d13);
  box-shadow:
    0 0 0 7px #0b130c,
    0 0 0 8px #68572c66,
    inset 0 0 70px #0008,
    0 0 80px #a6b6370b;
  overflow: visible;
}
.card-room[data-game='tichu'] .cr-table:before {
  border-color: #c4b66b30;
  inset: 8px;
  border-radius: 50%;
  pointer-events: none;
}
.card-room[data-game='tichu'] .cr-table-caption {
  margin: 0;
  position: relative;
  z-index: 2;
}
.card-room[data-game='tichu'] .cr-table-caption h3 {
  font-size: 16px;
  margin: 6px 0;
}
.card-room[data-game='tichu'] .cr-table-caption .eyebrow {
  font-size: 9px;
  color: #d0dba9;
  letter-spacing: 1px;
}
.card-room[data-game='tichu'] .cr-seat {
  position: absolute;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 7px;
  justify-content: center;
  align-items: center;
  width: 116px;
  max-width: none;
  padding: 10px 8px;
  border-color: transparent;
  background: transparent;
  text-align: center;
  border-radius: 14px;
}
.card-room[data-game='tichu'] .tc-seat-1 {
  left: 0;
  top: 42%;
  transform: translateY(-30%);
}
.card-room[data-game='tichu'] .tc-seat-3 {
  right: 0;
  top: 42%;
  transform: translateY(-30%);
}
.card-room[data-game='tichu'] .tc-seat-2 {
  left: 50%;
  top: 5px;
  transform: translateX(-50%);
  width: 245px;
  display: grid;
  grid-template-columns: 42px 1fr 58px;
  gap: 10px;
  text-align: left;
}
.card-room[data-game='tichu'] .cr-avatar {
  width: 44px;
  height: 44px;
  border: 1px solid #ad925580;
  color: #e1c47d;
  background: linear-gradient(145deg, #35331e, #0b1b10);
  border-radius: 12px;
  font-size: 22px;
  box-shadow: 0 3px 14px #0008;
}
.card-room[data-game='tichu'] .cr-seat.active .cr-avatar {
  border-color: #c3fa4c;
  box-shadow:
    0 0 0 3px #c3fa4c18,
    0 0 24px #c3fa4c45;
}
.card-room[data-game='tichu'] .cr-seat.active {
  background: #c3fa4c09;
  border-color: #c3fa4c35;
}
.card-room[data-game='tichu'] .cr-seat strong {
  font-size: 11px;
}
.card-room[data-game='tichu'] .cr-seat small {
  font-size: 10px;
  color: #aebe99;
}
.tc-card-backs {
  position: relative;
  width: 56px;
  height: 35px;
  display: block;
}
.tc-card-backs i {
  position: absolute;
  left: calc(var(--back, 0) * 9px);
  top: 2px;
  width: 25px;
  height: 32px;
  border: 1px solid #b49d5f;
  border-radius: 4px;
  background: repeating-linear-gradient(45deg, #4b1720 0 3px, #732330 3px 4px);
  box-shadow: -2px 0 4px #0007;
}
.tc-card-backs i:nth-child(2) {
  --back: 1;
}
.tc-card-backs i:nth-child(3) {
  --back: 2;
}
.tc-card-backs i:nth-child(4) {
  --back: 3;
}
.tc-card-backs b {
  position: absolute;
  bottom: -4px;
  right: -3px;
  background: #d6ef8a;
  color: #10230e;
  border-radius: 8px;
  padding: 2px 5px;
  font-size: 11px;
}
.tc-declaration {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1px;
  color: #e7bf66;
  grid-column: 1/-1;
}
.tc-table-seal {
  font:
    70px Georgia,
    serif;
  color: #d9cc8530;
  text-shadow: 0 0 45px #d0e95722;
  line-height: 1;
}
.tc-wish {
  position: absolute;
  bottom: 12px;
  right: 24px;
  font-size: 10px;
  color: #d6e3b5;
}
.card-room[data-game='tichu'] .cr-statusline {
  padding: 0;
  min-height: 0;
  justify-content: center;
  font-size: 11px;
  color: #c3cdae;
}
.card-room[data-game='tichu'] #cr-round {
  display: none;
}
.card-room[data-game='tichu'] .tc-my-turn {
  color: #d7f58c;
}
.card-room[data-game='tichu'] .cr-actions {
  min-height: 46px;
  padding: 4px 0;
  gap: 8px;
}
.card-room[data-game='tichu'] .cr-actions .cr-button {
  min-height: 38px;
  padding: 8px 13px;
  font-size: 11px !important;
}
.card-room[data-game='tichu'] .cr-hand-section {
  padding: 0;
}
.card-room[data-game='tichu'] .cr-hand-heading {
  min-height: 20px;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  padding: 0 15px;
}
.card-room[data-game='tichu'] .cr-hand-heading #cr-hand-label {
  font-size: 10px;
  color: #d4dfba;
}
.card-room[data-game='tichu'] .cr-hand-heading #cr-hand-count {
  font-size: 9px;
}
.card-room[data-game='tichu'] [data-card-action='sort'] {
  display: none;
}
.card-room[data-game='tichu'] .cr-hand {
  --tc-width: 88px;
  --tc-step: 42px;
  flex-wrap: nowrap;
  gap: 0;
  min-height: 0;
  height: 148px;
  align-items: flex-end;
  justify-content: center;
  padding: 17px 12px 5px;
  overflow: visible;
}
.card-room[data-game='tichu'] .cr-hand .playing-card {
  --card-width: var(--tc-width);
  flex: 0 0 var(--tc-width);
  width: var(--tc-width);
  height: calc(var(--tc-width) * 1.48);
  max-height: none;
  max-width: none;
  min-height: 0;
  min-width: 0;
  margin: 0;
}
.card-room[data-game='tichu'] .cr-hand .playing-card:not(:first-child) {
  margin-left: calc(var(--tc-step) - var(--tc-width));
}
.card-room[data-game='tichu'] .cr-hand .playing-card:focus-visible {
  z-index: 2;
  outline: 3px solid #c3fa4c;
}
.card-room[data-game='tichu'] .cr-hand .playing-card.selected {
  transform: translateY(-13px);
  box-shadow:
    -2px 4px 12px #0008,
    0 0 20px #c3fa4c55;
}
.tichu-card {
  background: #fffaf0;
  border: 1px solid #dbcdb1;
  box-shadow: -3px 3px 7px #0005;
  border-radius: 7px;
  overflow: hidden;
  color: #202a24;
}
.tichu-card.tc-c {
  color: #151c1e;
}
.tichu-card.tc-d {
  color: #1973ae;
}
.tichu-card.tc-h {
  color: #d62831;
}
.tichu-card.tc-s {
  color: #188343;
}
.tc-center {
  position: absolute;
  inset: 22% 18%;
  display: grid;
  place-items: center;
}
.tc-center svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}
.tc-corner {
  position: absolute;
  top: 5px;
  left: 5px;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 23px;
  z-index: 1;
  line-height: 1;
}
.tc-corner b {
  font:
    italic 800 23px/0.9 Georgia,
    serif;
}
.tc-corner svg {
  height: 19px;
  width: 19px;
  fill: currentColor;
}
.tc-corner.tc-inverse {
  top: auto;
  left: auto;
  right: 5px;
  bottom: 5px;
  transform: rotate(180deg);
}
.tc-ornament {
  position: absolute;
  right: 12px;
  top: 38%;
  font:
    italic 700 29px Georgia,
    serif;
  opacity: 0.16;
}
.tc-illustration {
  width: 100%;
  height: 100%;
  object-fit: fill;
  display: block;
}
.tc-special .tc-corner {
  border-radius: 3px;
  background: #fff5dce8;
  color: #172712;
  width: 23px;
  padding: 3px 1px;
}
.tc-special .tc-corner b {
  font-size: 12px;
}
.tc-special .tc-inverse {
  display: none;
}
.card-room[data-game='tichu'] .cr-trick-cards {
  display: flex;
  flex-wrap: nowrap;
  gap: 0;
  min-height: 0;
  margin: 7px 0;
  max-width: 100%;
  justify-content: center;
}
.card-room[data-game='tichu'] .cr-trick-cards .playing-card {
  --card-width: 64px;
  width: 64px;
  height: 95px;
  flex: 0 0 64px;
}
.card-room[data-game='tichu'] .cr-trick-cards .playing-card:not(:first-child) {
  margin-left: -34px;
}
.card-room[data-game='tichu'] .cr-trick-cards .tc-corner b {
  font-size: 18px;
}
.card-room[data-game='tichu'] .cr-trick-cards .tc-corner {
  width: 18px;
  left: 4px;
}
.card-room[data-game='tichu'] .cr-trick-cards .tc-corner svg {
  width: 15px;
  height: 15px;
}
.card-room[data-game='tichu'] .cr-trick-cards .tc-special .tc-corner b {
  font-size: 11px;
}
.card-room[data-game='tichu'] .cr-exchange-slots {
  gap: 28px;
  margin: 6px 0;
}
.card-room[data-game='tichu'] .cr-exchange-slots .playing-card,
.card-room[data-game='tichu'] .cr-empty-card {
  --card-width: 54px;
  width: 54px;
  height: 78px;
}
.card-room[data-game='tichu'] .cr-exchange-slots small {
  font-size: 9px;
}
.card-room[data-game='tichu'] .cr-error {
  position: fixed;
  z-index: 9;
  bottom: 4px;
  left: 20%;
  right: 20%;
  margin: 0;
  padding: 10px;
  background: #3b1616;
  border: 1px solid #bf7878;
  border-radius: 8px;
  font-size: 11px;
}
.tc-rotate {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  padding: 30px;
  background: radial-gradient(ellipse at 50% 35%, #c2ed491b, transparent 60%), #08110af5;
  backdrop-filter: blur(18px);
}
.tc-rotate h2 {
  font-size: clamp(26px, 7vw, 39px);
  line-height: 1.2;
  letter-spacing: -1px;
  margin: 20px 0 12px;
}
.tc-rotate h2 em {
  color: #c3fa4c;
  font-style: normal;
}
.tc-rotate p {
  color: #a8b89a;
  font-size: 14px;
  margin: 0 0 35px;
}
.tc-rotate .eyebrow {
  font-size: 9px;
  color: #c5d798;
  letter-spacing: 2px;
}
.tc-rotate-orbit {
  height: 160px;
  width: 160px;
  position: relative;
  display: grid;
  place-items: center;
  margin-bottom: 35px;
  border: 1px solid #b3d56833;
  border-radius: 50%;
  box-shadow:
    0 0 65px #bada4020,
    inset 0 0 30px #bada400a;
}
.tc-phone {
  display: block;
  position: relative;
  width: 55px;
  height: 95px;
  border: 3px solid #d2f58a;
  border-radius: 12px;
  box-shadow: 0 0 25px #ccff5633;
  animation: rotatePhone 3.5s ease-in-out infinite;
}
.tc-phone:before {
  content: '';
  position: absolute;
  left: 15px;
  right: 15px;
  top: 6px;
  height: 3px;
  background: #d2f58a;
  border-radius: 3px;
}
.tc-phone i {
  position: absolute;
  inset: 16px 5px 8px;
  border-radius: 4px;
  background: linear-gradient(140deg, #c3fa4c55, #c3fa4c08);
}
.tc-rotate-arrow {
  position: absolute;
  right: 0;
  top: 3px;
  font-size: 40px;
  color: #dcc06f;
}
@keyframes rotatePhone {
  0%,
  15% {
    transform: rotate(0);
  }
  45%,
  80% {
    transform: rotate(90deg);
  }
  100% {
    transform: rotate(0);
  }
}
@media (max-width: 600px) {
  .card-category-entry {
    min-height: 340px;
  }
  .card-category-copy {
    padding: 28px 23px;
    gap: 15px;
  }
  .card-category-copy strong {
    max-width: 270px;
  }
  .card-category-art {
    inset: 0 -20% 0 15%;
    opacity: 0.45;
  }
  .strategy-art-name {
    font-size: 40px;
  }
  .card-lobby-grid {
    gap: 25px;
  }
}
@media (orientation: landscape) and (max-height: 600px) {
  .card-room[data-game='tichu'] .cr-shell {
    min-height: 320px;
    padding: 3px max(10px, env(safe-area-inset-right)) 5px max(10px, env(safe-area-inset-left));
    height: 100dvh;
  }
  .card-room[data-game='tichu'] .cr-header {
    min-height: 38px;
    padding: 0 0 3px;
    gap: 8px;
  }
  .card-room[data-game='tichu'] .cr-brand {
    gap: 5px;
  }
  .card-room[data-game='tichu'] .cr-brand h2 {
    font-size: 16px;
  }
  .card-room[data-game='tichu'] .cr-brand > span {
    width: 26px;
    height: 29px;
    font-size: 19px;
  }
  .card-room[data-game='tichu'] .cr-header .cr-button {
    min-height: 32px;
    padding: 6px 10px;
    font-size: 10px !important;
  }
  .tc-scoreboard {
    gap: 25px;
  }
  .tc-scoreboard strong {
    font-size: 19px;
  }
  .tc-scoreboard span {
    font-size: 9px;
  }
  .tc-scoreboard .tc-round strong {
    font-size: 10px;
  }
  .card-room[data-game='tichu'] .cr-main {
    grid-template-rows: minmax(115px, 1fr) 20px auto auto;
  }
  .card-room[data-game='tichu'] .cr-table {
    inset: 43px 105px 5px;
    padding: 5px 35px;
    border-width: 2px;
  }
  .card-room[data-game='tichu'] .tc-seat-2 {
    top: 1px;
    padding: 3px;
    width: 190px;
    grid-template-columns: 26px 1fr 45px;
    gap: 6px;
  }
  .card-room[data-game='tichu'] .cr-seat {
    width: 85px;
    padding: 4px;
    gap: 4px;
  }
  .card-room[data-game='tichu'] .cr-avatar {
    width: 28px;
    height: 28px;
    border-radius: 7px;
    font-size: 17px;
  }
  .card-room[data-game='tichu'] .cr-seat strong {
    font-size: 9px;
  }
  .card-room[data-game='tichu'] .cr-seat small {
    font-size: 8px;
    margin-top: 2px;
  }
  .tc-card-backs {
    width: 42px;
    height: 22px;
  }
  .tc-card-backs i {
    width: 18px;
    height: 23px;
    left: calc(var(--back, 0) * 7px);
  }
  .tc-card-backs b {
    font-size: 9px;
    bottom: -3px;
  }
  .tc-declaration {
    font-size: 7px;
  }
  .card-room[data-game='tichu'] .cr-table-caption h3 {
    font-size: 12px;
    margin: 2px 0;
  }
  .card-room[data-game='tichu'] .cr-table-caption .eyebrow {
    font-size: 7px;
  }
  .tc-table-seal {
    font-size: 44px;
  }
  .card-room[data-game='tichu'] .cr-trick-cards {
    margin: 3px 0;
  }
  .card-room[data-game='tichu'] .cr-trick-cards .playing-card {
    --card-width: 43px;
    flex-basis: 43px;
    width: 43px;
    height: 62px;
  }
  .card-room[data-game='tichu'] .cr-trick-cards .playing-card:not(:first-child) {
    margin-left: -23px;
  }
  .card-room[data-game='tichu'] .cr-trick-cards .tc-corner {
    top: 3px;
    left: 2px;
    width: 15px;
  }
  .card-room[data-game='tichu'] .cr-trick-cards .tc-corner b {
    font-size: 14px;
  }
  .card-room[data-game='tichu'] .cr-trick-cards .tc-corner svg {
    width: 12px;
    height: 12px;
  }
  .card-room[data-game='tichu'] .cr-trick-cards .tc-special .tc-corner b {
    font-size: 8px;
  }
  .card-room[data-game='tichu'] .cr-trick-cards .tc-inverse {
    display: none;
  }
  .tc-wish {
    bottom: 5px;
    right: 17px;
    font-size: 8px;
  }
  .card-room[data-game='tichu'] .cr-statusline {
    font-size: 10px;
  }
  .card-room[data-game='tichu'] .cr-actions {
    min-height: 36px;
    padding: 1px 0;
    gap: 6px;
  }
  .card-room[data-game='tichu'] .cr-actions .cr-button {
    min-height: 32px;
    padding: 6px 10px;
    font-size: 10px !important;
  }
  .card-room[data-game='tichu'] .cr-hand {
    --tc-width: 59px;
    --tc-step: clamp(28px, 4.5vw, 43px);
    height: 100px;
    padding: 9px 8px 3px;
  }
  .card-room[data-game='tichu'] .cr-hand-heading {
    min-height: 15px;
    height: 15px;
  }
  .card-room[data-game='tichu'] .cr-hand-heading .cr-text-button {
    font-size: 8px !important;
    min-height: 15px;
    padding: 0;
  }
  .card-room[data-game='tichu'] .tc-corner {
    width: 20px;
    top: 4px;
    left: 3px;
  }
  .card-room[data-game='tichu'] .tc-corner b {
    font-size: 19px;
  }
  .card-room[data-game='tichu'] .tc-corner svg {
    width: 16px;
    height: 16px;
  }
  .card-room[data-game='tichu'] .tc-special .tc-corner b {
    font-size: 10px;
  }
  .card-room[data-game='tichu'] .cr-select-label {
    font-size: 9px;
    width: auto;
  }
  .card-room[data-game='tichu'] .cr-exchange-slots {
    gap: 25px;
    margin: 3px 0;
  }
  .card-room[data-game='tichu'] .cr-exchange-slots .playing-card,
  .card-room[data-game='tichu'] .cr-empty-card {
    --card-width: 35px;
    width: 35px;
    height: 48px;
  }
  .card-room[data-game='tichu'] .cr-exchange-slots small {
    font-size: 7px;
  }
  .card-room[data-game='tichu'] .cr-exchange-slots .tc-corner b {
    font-size: 12px;
  }
  .card-room[data-game='tichu'] .cr-exchange-slots .tc-corner svg {
    width: 10px;
    height: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .strategy-glint,
  .strategy-embers,
  .tc-phone {
    animation: none !important;
  }
  .strategy-cover {
    transition: none;
  }
  .tc-phone {
    transform: rotate(90deg);
  }
}
@media (orientation: landscape) and (max-height: 360px) {
  .card-room[data-game='tichu'] .cr-hand {
    --tc-width: 52px;
    --tc-step: 28px;
    height: 86px;
    padding-top: 7px;
  }
  .card-room[data-game='tichu'] .cr-main {
    grid-template-rows: minmax(110px, 1fr) 18px auto auto;
  }
  .card-room[data-game='tichu'] .cr-hand-heading {
    height: 13px;
    min-height: 13px;
  }
  .card-room[data-game='tichu'] .cr-actions {
    min-height: 33px;
  }
  .card-room[data-game='tichu'] .cr-table {
    inset: 37px 88px 3px;
    padding: 3px 17px;
  }
  .tc-scoreboard {
    gap: 12px;
  }
  .tc-scoreboard > div {
    min-width: 60px;
  }
}
.motion-off :is(.strategy-glint, .strategy-embers, .tc-phone),
.page-hidden :is(.strategy-glint, .strategy-embers, .tc-phone) {
  animation-play-state: paused;
}

/* Overlapping cards keep one unambiguous rank/suit strip per card. */
.card-room[data-game='tichu'] :is(.cr-hand, .cr-trick-cards, .cr-exchange-slots) .tc-inverse {
  display: none;
}
.card-room[data-game='tichu'] .tc-center {
  inset: 25% 10% 18% 38%;
}
.card-room[data-game='tichu'] .tc-corner:not(.tc-inverse) {
  background: #fffaf0;
  border-radius: 3px;
  padding: 2px 0 4px;
  top: 5px;
  left: 5px;
}
.card-room[data-game='tichu'] .tc-special .tc-corner {
  background: #fff5dcee;
}
.card-room[data-game='tichu'] .cr-hand .playing-card:focus-visible {
  z-index: auto;
  outline-offset: 1px;
}
.card-room[data-game='tichu'] .cr-hand .playing-card:hover {
  z-index: auto;
}
.card-room[data-game='tichu'] .cr-hand-heading {
  margin: 0;
  min-height: 16px;
}
.card-room[data-game='tichu'] .cr-hand-heading > div:last-child {
  display: none;
}
.card-room[data-game='tichu'] .cr-main {
  grid-template-rows: minmax(180px, 1fr) minmax(32px, auto) auto auto;
}
.card-room[data-game='tichu'] .cr-statusline {
  gap: 12px;
  padding: 3px 12px;
  line-height: 1.35;
  text-align: center;
}
.card-room[data-game='tichu'] #cr-live {
  min-width: 0;
  display: grid;
  gap: 3px;
}
.card-room[data-game='tichu'] .tc-last-action {
  color: #dfe8d4;
  font-weight: 600;
}
.card-room[data-game='tichu'] .tc-next-action {
  color: #bdd290;
  font-size: 10px;
}
.card-room[data-game='tichu'] .tc-my-turn .tc-next-action {
  color: #d4fb7b;
}
.card-room[data-game='tichu'] .tc-wish {
  position: static;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border: 1px solid #dcc36b88;
  background: #302b15;
  border-radius: 8px;
  color: #fff1bc;
  font-size: 12px;
  box-shadow: 0 0 16px #e8cb3b12;
}
.card-room[data-game='tichu'] .tc-wish b {
  font-size: 14px;
  color: #fff5d8;
}
.card-room[data-game='tichu'] .cr-actions {
  gap: 12px;
  min-height: 50px;
  padding: 4px 0 8px;
}
.card-room[data-game='tichu'] .cr-actions .cr-button {
  min-height: 42px;
  padding: 10px 22px;
  font-size: 12px !important;
}
.card-room[data-game='tichu'] .cr-trick-cards {
  --trick-width: 88px;
  --trick-step: 38px;
  --trick-height: 128px;
  width: 100%;
  container-type: inline-size;
  flex-shrink: 0;
  margin: 10px 0;
}
.card-room[data-game='tichu'] .cr-trick-cards .playing-card {
  width: var(--trick-width);
  height: var(--trick-height);
  flex: 0 0 var(--trick-width);
  min-width: 0;
  min-height: 0;
  max-width: none;
  max-height: none;
}
.card-room[data-game='tichu'] .cr-trick-cards .playing-card:not(:first-child) {
  margin-left: calc(
    min(var(--trick-step), (100cqw - var(--trick-width)) / max(1, var(--played-count) - 1)) -
      var(--trick-width)
  );
}
.card-room[data-game='tichu'] .cr-trick-cards .tc-corner {
  width: 25px;
  left: 5px;
  top: 5px;
}
.card-room[data-game='tichu'] .cr-trick-cards .tc-corner b {
  font-size: 25px;
}
.card-room[data-game='tichu'] .cr-trick-cards .tc-corner svg {
  width: 20px;
  height: 20px;
}
.card-room[data-game='tichu'] .cr-trick-cards .tc-special .tc-corner b {
  font-size: 13px;
}
.card-room[data-game='tichu'] .tc-card-backs {
  --back-width: 23px;
  --back-step: 3px;
  width: calc(var(--back-width) + max(0, var(--back-count) - 1) * var(--back-step));
  height: 34px;
  min-width: 23px;
}
.card-room[data-game='tichu'] .tc-card-backs i {
  width: var(--back-width);
  height: 31px;
  left: calc(var(--back) * var(--back-step));
  box-shadow: -1px 0 2px #0008;
}
.card-room[data-game='tichu'] .tc-seat-2 {
  grid-template-columns: 42px 1fr 65px;
  width: 260px;
}
.card-room[data-game='tichu'] .cr-exchange-slots {
  gap: 18px;
  align-items: center;
  margin: 6px 0;
}
.card-room[data-game='tichu'] .tc-exchange-slot {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 128px;
  min-height: 168px;
  padding: 8px;
  border: 1px dashed #a8bd6e88;
  border-radius: 12px;
  background: #122b20;
  color: #d8e8bd;
  touch-action: none;
  cursor: pointer;
}
.card-room[data-game='tichu'] .cr-exchange-slots :is(.playing-card, .cr-empty-card) {
  --card-width: 90px;
  flex: 0 0 auto;
  width: 90px;
  height: 132px;
  min-height: 0;
  max-height: none;
  max-width: none;
  margin: 0;
}
.card-room[data-game='tichu'] .cr-exchange-slots .tc-corner {
  width: 25px;
}
.card-room[data-game='tichu'] .cr-exchange-slots .tc-corner b {
  font-size: 25px;
}
.card-room[data-game='tichu'] .cr-exchange-slots .tc-corner svg {
  width: 20px;
  height: 20px;
}
.card-room[data-game='tichu'] .cr-exchange-slots .tc-special .tc-corner b {
  font-size: 14px;
}
.card-room[data-game='tichu'] .tc-exchange-slot.filled {
  border-style: solid;
  background: #213b22;
}
.card-room[data-game='tichu'] .tc-exchange-slot:focus-visible,
.card-room[data-game='tichu'] .tc-exchange-slot.is-drop-target {
  outline: 2px solid #c3fa4c;
  outline-offset: 3px;
  background: #3d5425;
  box-shadow: 0 0 25px #c3fa4c40;
}
.card-room[data-game='tichu'] .tc-exchange-slot small {
  font-size: 11px;
  line-height: 1.1;
  white-space: nowrap;
}
.card-room[data-game='tichu'] .tc-exchange-slot:disabled {
  cursor: default;
  opacity: 0.75;
}
.card-room[data-game='tichu'][data-phase='exchange'] #cr-hand .playing-card {
  touch-action: none;
  cursor: grab;
}
.card-room[data-game='tichu'] .tc-drag-source {
  opacity: 0.35;
}
.card-room[data-game='tichu'] .tc-drag-ghost {
  position: fixed !important;
  z-index: 100;
  pointer-events: none;
  margin: 0 !important;
  transform: translate(-50%, -70%) rotate(-5deg) !important;
  box-shadow: 0 14px 30px #0009 !important;
  transition: none !important;
  outline: 2px solid #c3fa4c;
  opacity: 0.95;
}
.card-room[data-game='tichu'].tc-dragging {
  cursor: grabbing;
}
.tc-hand-play:empty,
.card-room[data-game='tichu'] .tc-hand-play:empty {
  display: none;
}
@media (orientation: landscape) and (max-height: 600px) {
  .card-room[data-game='tichu'] .cr-shell {
    padding: 4px max(12px, env(safe-area-inset-right)) 4px max(12px, env(safe-area-inset-left));
    min-height: 320px;
  }
  .card-room[data-game='tichu'] .cr-header {
    min-height: 34px;
    padding: 0 0 3px;
  }
  .card-room[data-game='tichu'] .cr-main {
    grid-template-rows: minmax(120px, 1fr) minmax(25px, auto) auto auto;
  }
  .card-room[data-game='tichu'] .cr-table {
    inset: 34px 88px 6px;
    padding: 5px 23px;
    border-radius: 38%;
  }
  .card-room[data-game='tichu'] .cr-seat.tc-seat-2 {
    grid-template-columns: 25px 1fr 59px;
    top: 0;
    width: 220px;
    padding: 1px;
    gap: 6px;
  }
  .card-room[data-game='tichu'] .cr-seat {
    width: 75px;
    gap: 4px;
    padding: 2px;
  }
  .card-room[data-game='tichu'] .tc-seat-1,
  .card-room[data-game='tichu'] .tc-seat-3 {
    top: 47%;
  }
  .card-room[data-game='tichu'] .cr-seat .cr-avatar {
    width: 25px;
    height: 25px;
    flex-basis: 25px;
  }
  .card-room[data-game='tichu'] .tc-card-backs {
    --back-width: 18px;
    --back-step: 2.8px;
    height: 24px;
  }
  .card-room[data-game='tichu'] .tc-card-backs i {
    height: 23px;
  }
  .card-room[data-game='tichu'] .cr-trick-cards {
    --trick-width: 61px;
    --trick-height: 89px;
    --trick-step: 29px;
    margin: 3px 0;
  }
  .card-room[data-game='tichu'] .cr-trick-cards .tc-corner {
    width: 20px;
    left: 3px;
    top: 3px;
    padding: 1px 0 3px;
  }
  .card-room[data-game='tichu'] .cr-trick-cards .tc-corner b {
    font-size: 21px;
  }
  .card-room[data-game='tichu'] .cr-trick-cards .tc-corner svg {
    width: 17px;
    height: 17px;
  }
  .card-room[data-game='tichu'] .cr-trick-cards .tc-special .tc-corner b {
    font-size: 10px;
  }
  .card-room[data-game='tichu'] .cr-table-caption {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 8px;
  }
  .card-room[data-game='tichu'] .cr-table-caption h3 {
    font-size: 12px;
    line-height: 1.2;
    margin: 0;
  }
  .card-room[data-game='tichu'] .cr-table-caption .eyebrow {
    font-size: 8px;
  }
  .card-room[data-game='tichu'] .cr-statusline {
    font-size: 10px;
    gap: 8px;
    padding: 2px 0;
  }
  .card-room[data-game='tichu'] #cr-live {
    gap: 1px;
    line-height: 1.2;
  }
  .card-room[data-game='tichu'] .tc-next-action {
    font-size: 9px;
  }
  .card-room[data-game='tichu'] .tc-wish {
    font-size: 10px;
    padding: 3px 7px;
    gap: 4px;
  }
  .card-room[data-game='tichu'] .tc-wish b {
    font-size: 11px;
  }
  .card-room[data-game='tichu'] .cr-actions {
    min-height: 40px;
    gap: 10px;
    padding: 2px 0 4px;
    flex-wrap: nowrap;
  }
  .card-room[data-game='tichu'] .cr-actions .cr-button {
    min-height: 36px;
    padding: 7px 18px;
    font-size: 11px !important;
  }
  .card-room[data-game='tichu'] .cr-hand {
    --tc-width: 59px;
    --tc-step: clamp(28px, 4.6vw, 40px);
    height: 97px;
    padding: 7px 6px 2px;
  }
  .card-room[data-game='tichu'] .cr-hand-heading {
    display: none;
  }
  .card-room[data-game='tichu'] .cr-hand .tc-corner:not(.tc-inverse) {
    left: 3px;
    top: 4px;
    width: 21px;
  }
  .card-room[data-game='tichu'] .cr-exchange-slots {
    gap: 15px;
    margin: 5px 0 0;
  }
  .card-room[data-game='tichu'] .tc-exchange-slot {
    width: 92px;
    min-height: 103px;
    padding: 4px;
    gap: 4px;
    border-radius: 8px;
  }
  .card-room[data-game='tichu'] .tc-exchange-slot small {
    font-size: 9px;
  }
  .card-room[data-game='tichu'] .cr-exchange-slots :is(.playing-card, .cr-empty-card) {
    --card-width: 54px;
    width: 54px;
    height: 79px;
    min-width: 0;
    min-height: 0;
  }
  .card-room[data-game='tichu'] .cr-exchange-slots .tc-corner {
    left: 3px;
    top: 3px;
    width: 20px;
    padding: 1px;
  }
  .card-room[data-game='tichu'] .cr-exchange-slots .tc-corner b {
    font-size: 20px;
  }
  .card-room[data-game='tichu'] .cr-exchange-slots .tc-corner svg {
    width: 16px;
    height: 16px;
  }
  .card-room[data-game='tichu'] .cr-exchange-slots .tc-special .tc-corner b {
    font-size: 9px;
  }
  .card-room[data-game='tichu'][data-phase='exchange'] .cr-table {
    padding: 2px 16px;
  }
  .card-room[data-game='tichu'][data-phase='exchange'] .cr-hand {
    height: 88px;
    --tc-width: 54px;
  }
  /* A quiet control rail leaves the right thumb directly beside the hand. */
  .card-room[data-game='tichu'] .cr-shell {
    background: radial-gradient(ellipse at 45% 36%, #294c2124, transparent 62%);
  }
  .card-room[data-game='tichu'] .cr-header {
    border-bottom-color: #b7c48422;
  }
  .card-room[data-game='tichu'] .cr-header .cr-button {
    border-color: transparent;
    background: #17251c80;
    border-radius: 9px;
  }
  .card-room[data-game='tichu'] .cr-statusline {
    padding: 3px 8px;
    border-radius: 9px;
    background: linear-gradient(90deg, transparent, #a4c26809, transparent);
  }
  .card-room[data-game='tichu'] .cr-actions {
    min-height: 36px;
    gap: 8px;
    padding: 2px 0;
  }
  .card-room[data-game='tichu'] .cr-actions .cr-button {
    min-height: 32px;
    padding: 5px 18px;
    border-radius: 9px;
    border-color: #c2d5aa30;
    background: #15261bb3;
  }
  .card-room[data-game='tichu'] .cr-actions .cr-primary {
    background: linear-gradient(135deg, #d2fb78, #9fcc3b);
    color: #16210b;
  }
  .card-room[data-game='tichu'] .cr-hand-section:has(.tc-hand-play:not(:empty)) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 100px;
    gap: 12px;
    align-items: end;
    padding: 0 5px;
  }
  .card-room[data-game='tichu'] .tc-hand-play {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 97px;
  }
  .card-room[data-game='tichu'] .tc-hand-play .cr-button {
    width: 100%;
    min-height: 68px;
    padding: 11px 10px;
    border: 1px solid #d8ff8b88;
    border-radius: 15px;
    background: linear-gradient(145deg, #d3fb7b, #a7d747);
    color: #17250c;
    font-size: 12px !important;
    line-height: 1.3;
    font-weight: 850;
    box-shadow: 0 5px 20px #a9d44720;
  }
  .card-room[data-game='tichu'] .tc-hand-play .cr-button:disabled {
    opacity: 0.45;
    box-shadow: none;
  }
  .card-room[data-game='tichu'] .cr-hand {
    container-type: inline-size;
  }
  .card-room[data-game='tichu'] .cr-hand .playing-card:not(:first-child) {
    margin-left: calc(
      min(var(--tc-step), (100cqw - var(--tc-width) - 16px) / max(1, var(--hand-count) - 1)) -
        var(--tc-width)
    );
  }
  .card-room[data-game='tichu'] .tc-exchange-slot {
    background: linear-gradient(145deg, #24422a, #142c21);
    border-color: #b8d68055;
    box-shadow: inset 0 1px #e5f1cb0d;
  }
  .card-room[data-game='tichu'] .tc-exchange-slot.filled {
    background: linear-gradient(145deg, #334b2a, #1a3021);
    border-color: #d9d39477;
  }
  .card-room[data-game='tichu'] .cr-seat.active {
    background: transparent;
    border-color: transparent;
  }
}
@media (orientation: landscape) and (max-height: 360px) {
  .card-room[data-game='tichu'] .cr-hand {
    --tc-width: 51px;
    --tc-step: 28px;
    height: 83px;
  }
  .card-room[data-game='tichu'] .cr-hand-heading {
    display: none;
  }
  .card-room[data-game='tichu'] .cr-main {
    grid-template-rows: minmax(115px, 1fr) minmax(23px, auto) auto auto;
  }
  .card-room[data-game='tichu'] .cr-trick-cards {
    --trick-width: 49px;
    --trick-height: 70px;
    --trick-step: 25px;
  }
  .card-room[data-game='tichu'] .cr-trick-cards .tc-corner b {
    font-size: 19px;
  }
  .card-room[data-game='tichu'] .cr-trick-cards .tc-corner {
    width: 19px;
    left: 2px;
  }
  .card-room[data-game='tichu'] .cr-table {
    inset: 30px 77px 3px;
    padding: 3px 13px;
  }
  .card-room[data-game='tichu'] .cr-statusline {
    font-size: 9px;
  }
  .card-room[data-game='tichu'] .cr-header .cr-button {
    padding: 5px 8px;
  }
  .card-room[data-game='tichu'] .cr-select-label {
    font-size: 8px;
  }
  .card-room[data-game='tichu'] .cr-exchange-slots :is(.playing-card, .cr-empty-card) {
    --card-width: 43px;
    width: 43px;
    height: 63px;
  }
  .card-room[data-game='tichu'] .tc-exchange-slot {
    min-height: 84px;
    width: 85px;
    padding: 3px;
    gap: 3px;
  }
  .card-room[data-game='tichu'] .cr-exchange-slots .tc-corner b {
    font-size: 17px;
  }
  .card-room[data-game='tichu'] .cr-exchange-slots .tc-corner {
    left: 2px;
    top: 2px;
    width: 17px;
  }
  .card-room[data-game='tichu'][data-phase='exchange'] .cr-hand {
    height: 77px;
    --tc-width: 47px;
  }
  .card-room[data-game='tichu'] .tc-hand-play {
    height: 83px;
  }
  .card-room[data-game='tichu'] .tc-hand-play .cr-button {
    min-height: 60px;
    font-size: 11px !important;
  }
}

/* Stake selection floats above the same table used in play. */
.cr-stake-lobby[hidden],
.stake-formats[hidden] {
  display: none !important;
}
.card-room.choosing-stake .cr-shell {
  height: 100dvh;
  min-height: 320px;
  display: flex;
  flex-direction: column;
}
.card-room.choosing-stake .cr-layout {
  display: block;
  flex: 1;
  min-height: 0;
}
.card-room.choosing-stake .cr-main {
  display: block;
  height: 100%;
}
.card-room.choosing-stake .cr-statusline,
.card-room.choosing-stake .tc-scoreboard,
.card-room.choosing-stake .cr-hand-section,
.card-room.choosing-stake .cr-actions,
.card-room.choosing-stake .cr-rail {
  display: none !important;
}
.card-room.choosing-stake .cr-arena {
  display: block;
  position: relative;
  height: 100%;
  opacity: 0.62;
}
.card-room.choosing-stake .cr-table {
  position: absolute;
  inset: 70px 100px 80px;
  min-height: 0;
  display: grid;
  place-items: center;
  box-shadow:
    inset 0 0 65px #0008,
    0 0 70px #b4db4b0a;
}
.card-room.choosing-stake .cr-table .tc-table-seal {
  opacity: 0.12;
  font-size: 130px;
}
.card-room.choosing-stake .cr-seat {
  border-color: #c4d68b25;
}
.cr-stake-hand {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  padding-left: 22px;
  opacity: 0.65;
}
.cr-stake-hand .cr-card-back {
  display: grid;
  place-items: center;
  width: 60px;
  height: 88px;
  margin-left: -22px;
  border-radius: 7px;
  transform: translateY(calc((var(--preview-card) - 6) * 0.3px));
  box-shadow: 0 4px 10px #0008;
}
.cr-stake-hand .cr-card-back b {
  font-size: 22px;
}
.cr-stake-hand .cr-card-back b span {
  font-size: 17px;
}
.cr-stake-lobby {
  position: absolute;
  inset: 75px 0 10px;
  z-index: 10;
  display: grid;
  place-items: center;
  pointer-events: none;
}
.cr-stake-stage {
  position: relative;
  width: min(520px, calc(100vw - 70px), calc((100dvh - 115px) * 1.18));
  aspect-ratio: 1.18;
  pointer-events: auto;
}
.cr-stake-stage .board-stake-selector {
  background: radial-gradient(ellipse, #07100670, transparent 70%);
}
.cr-stake-stage .chip-fan {
  filter: drop-shadow(0 15px 24px #000b);
  transform: translateY(-7cqw);
}
.stake-formats {
  position: absolute;
  bottom: 7cqw;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
}
.stake-formats label {
  position: relative;
  flex: 1;
  min-width: 0;
  cursor: pointer;
}
.stake-formats input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.stake-formats label > span {
  min-height: 44px;
  display: grid;
  justify-items: center;
  gap: 5px;
  padding: 11px 6px;
  border: 1px solid #bedb773d;
  border-radius: 13px;
  background: #101c15ed;
  box-shadow: 0 6px 16px #0005;
  color: #d6e0ca;
  transition:
    background 0.18s,
    border-color 0.18s,
    box-shadow 0.18s;
}
.stake-formats b {
  font-size: clamp(10px, 2.6cqw, 14px);
  font-weight: 750;
}
.stake-formats small {
  font-size: clamp(9px, 2.15cqw, 11px);
  color: #aebda3;
  white-space: nowrap;
}
.stake-formats input:checked + span {
  color: #e9ffb9;
  border-color: #c3fa4c;
  background: linear-gradient(135deg, #334526f5, #182614f5);
  box-shadow:
    0 0 20px #b7ed3c1a,
    inset 0 1px #e8ffbf22;
}
.stake-formats input:focus-visible + span {
  outline: 2px solid #efffc7;
  outline-offset: 3px;
}
.stake-formats input:disabled + span {
  opacity: 0.65;
}
.cr-stake-stage #stake-feedback {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 11px;
  line-height: 1.3;
  margin: 0;
}
#profile-active-matches {
  display: grid;
  gap: 12px;
}
@media (orientation: landscape) and (max-height: 600px) {
  .cr-stake-lobby {
    inset: 40px 0 0;
  }
  .cr-stake-stage {
    width: min(440px, calc(100vw - 190px), calc((100dvh - 65px) * 1.18));
  }
  .card-room.choosing-stake .cr-table {
    inset: 38px 85px 46px;
    padding: 0;
  }
  .cr-stake-hand .cr-card-back {
    width: 37px;
    height: 53px;
    margin-left: -15px;
  }
  .cr-stake-hand {
    padding-left: 15px;
  }
  .cr-stake-hand .cr-card-back b {
    font-size: 15px;
  }
  .cr-stake-hand .cr-card-back b span {
    font-size: 10px;
  }
  .stake-formats {
    gap: 6px;
    bottom: 5cqw;
  }
  .stake-formats label > span {
    padding: 8px 3px;
    gap: 3px;
    border-radius: 9px;
  }
  .cr-stake-stage #stake-feedback {
    font-size: 10px;
    bottom: -1cqw;
  }
}
@media (orientation: portrait) {
  .card-room.choosing-stake .cr-table {
    inset: 90px 0 90px;
  }
  .cr-stake-lobby {
    inset: 90px 0 10px;
  }
  .cr-stake-stage {
    width: min(520px, calc(100vw - 28px));
  }
}

/* Engraved ivory faces keep the exposed rank strip clean in overlapping hands. */
.tichu-card.tc-royal {
  background: radial-gradient(ellipse at 58% 48%, #fffdf4 18%, #f5ebd5 75%, #e6d2aa);
  border-color: #c4ae78;
  box-shadow:
    -3px 3px 9px #0006,
    inset 0 0 0 2px #fff9e0;
}
.tc-engraving {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: #b28a3a;
  stroke-width: 0.6;
  opacity: 0.65;
  pointer-events: none;
}
.tc-engraving .tc-filigree {
  stroke: currentColor;
  stroke-width: 0.85;
  opacity: 0.5;
}
.tc-royal .tc-center {
  inset: 33% 28% 32%;
  filter: drop-shadow(1px 1px 0 #fff) drop-shadow(0 2px 1px #82602524);
}
.tc-royal .tc-corner {
  z-index: 3;
  background: linear-gradient(90deg, #fffaf0 70%, #fffaf0df);
  border-radius: 3px;
  padding: 1px 0 2px;
  box-shadow: 2px 0 4px #fffaf08c;
}
.tc-royal .tc-inverse {
  background: linear-gradient(90deg, #f5ebd5 70%, #f5ebd5df);
  box-shadow: 2px 0 4px #f5ebd58c;
}
.tc-crown {
  position: absolute;
  top: 20%;
  left: 36%;
  right: 25%;
  text-align: center;
  font:
    17px/1 Georgia,
    serif;
  color: #b08739;
  text-shadow: 0 1px #fff9e3;
  opacity: 0.85;
}
.tc-ace .tc-center {
  inset: 31% 25% 29%;
}
.tc-ace .tc-engraving {
  stroke-width: 0.8;
  opacity: 0.85;
}
.tc-royal:after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 28%, #fff8 44%, transparent 60%);
  opacity: 0;
  pointer-events: none;
  transform: translateX(-100%);
}
@media (prefers-reduced-motion: no-preference) {
  .tc-royal.selected:after {
    animation: tc-face-sheen 0.7s ease-out;
  }
}
@keyframes tc-face-sheen {
  0% {
    opacity: 0;
    transform: translateX(-100%);
  }
  35% {
    opacity: 0.7;
  }
  100% {
    opacity: 0;
    transform: translateX(100%);
  }
}
