.more-games {
  margin-top: 30px;
}
.more-games h2 {
  font-size: 16px;
  font-weight: 600;
}
.lunar-card {
  view-transition-name: lunar-portal;
  display: flex;
  align-items: center;
  gap: 20px;
  position: relative;
  overflow: hidden;
  width: min(100%, 460px);
  padding: 23px 26px;
  text-align: left;
  background:
    radial-gradient(ellipse at 10% 100%, #28565380, transparent 65%), #20263d;
  border: 1px solid #8fd7c238;
  border-radius: 22px;
}
.lunar-card:after {
  content: "✧";
  position: absolute;
  right: 60px;
  top: 10px;
  font-size: 48px;
  color: #91d9c71a;
}
.lunar-card:hover {
  border-color: #9bdac58c;
}
.lunar-card svg {
  width: 65px;
  height: 65px;
  filter: drop-shadow(0 0 12px #e7d6a333);
}
.lunar-card strong {
  font:
    400 23px Georgia,
    serif;
  display: block;
  color: #f0e0bb;
}
.lunar-card small {
  display: block;
  margin-top: 5px;
  color: #b7cbd1;
  font-size: 12px;
}
.lunar-card .card-arrow {
  margin-left: auto;
  color: #c9dccb;
  font-size: 24px;
}
.lunar-card .eyebrow {
  font-size: 9px;
  color: #91cdbd;
  margin-bottom: 5px;
}
.lunar-page {
  max-width: 1020px;
  margin: auto;
  --lunar-mint: #a8e2ce;
  --lunar-pearl: #f5e6c7;
}
.lunar-shell {
  position: relative;
  isolation: isolate;
  border-radius: 32px;
  overflow: hidden;
  border: 1px solid #a5dcc02b;
  background: radial-gradient(
    ellipse at 50% 12%,
    #363356 0%,
    #1c2941 42%,
    #102b35 100%
  );
  min-height: 650px;
  padding: 28px 36px 32px;
}
.lunar-portal {
  view-transition-name: lunar-portal;
  min-height: 650px;
}
.lunar-dialog .lunar-mini-grid svg {
  width: 48px;
  height: 48px;
}
.lunar-top .quiet,
.lunar-top .back {
  min-height: 44px;
}
.lunar-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.lunar-top .back {
  margin: 0;
  font-size: 13px;
}
.lunar-top .pill {
  color: #c5e7d7;
  border-color: #c2edcf30;
}
.lunar-top .pill:before {
  background: #a0dcc5;
}
.lunar-top .quiet {
  font-size: 13px;
}
.lunar-intro {
  text-align: center;
  position: relative;
  z-index: 2;
  margin: 22px 0 15px;
}
.lunar-intro h1 {
  font:
    400 clamp(34px, 4vw, 49px) / 1.1 Georgia,
    serif;
  letter-spacing: -1px;
  margin: 10px 0;
  color: var(--lunar-pearl);
}
.lunar-intro .eyebrow {
  color: #a4d9c5;
  font-size: 10px;
}
.lunar-intro p {
  font-size: 13px;
  color: #b4c5cb;
  margin: 12px 0;
}
.lunar-balance {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #bde7d51f;
  padding: 7px 13px;
  border-radius: 30px;
  background: #071d2b5c;
  font-size: 11px;
  color: #b8cdd1;
  margin-bottom: 9px;
}
.lunar-balance strong {
  color: #d9efdf;
  font-size: 14px;
}
.lunar-scenery {
  position: relative;
  max-width: 620px;
  margin: 0 auto;
  padding: 24px 45px 30px;
}
.lunar-canopy {
  position: absolute;
  inset: 8px 15px 10px;
  border-radius: 150px 150px 45px 45px;
  border: 1px solid #afd9ca15;
  background: radial-gradient(ellipse at 50% 50%, #a0d8b115, transparent 70%);
  z-index: -1;
}
.lunar-canopy:before {
  content: "";
  position: absolute;
  inset: 14px 15px 20px;
  border-radius: 140px 140px 40px 40px;
  border: 1px solid #dbe1bc12;
}
.lunar-moon {
  position: absolute;
  width: 68px;
  height: 68px;
  left: calc(50% - 34px);
  top: -28px;
  filter: drop-shadow(0 0 20px #e5d89f44);
  opacity: 0.65;
}
.lunar-plinth {
  position: absolute;
  bottom: 4px;
  left: 12px;
  right: 12px;
  height: 45px;
  background: linear-gradient(#29464c, #1a323e);
  border-radius: 50%;
  border: 1px solid #c5e7c526;
  box-shadow:
    0 10px 0 #102632,
    0 20px 35px #07171b80;
  z-index: -1;
}
.lunar-board {
  --tile: 100px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  border: 1px solid #d9d1ae6b;
  border-bottom: 5px solid #b1a379;
  padding: 12px;
  border-radius: 28px;
  background: linear-gradient(135deg, #cedec011, #0b1e31c9);
  box-shadow:
    0 15px 35px #08172580,
    inset 0 1px 0 #f8f2cb22;
  position: relative;
  overflow: hidden;
}
.lunar-reel {
  height: calc(var(--tile) * 3);
  min-width: 0;
  border-radius: 17px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(90deg, #0a1e2a, #25384b88 50%, #0a1e2a);
  box-shadow: inset 0 0 0 1px #c2efd222;
  isolation: isolate;
}
.lunar-reel:before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow:
    inset 0 20px 25px -10px #07182aa1,
    inset 0 -20px 25px -10px #07182aa1;
  z-index: 3;
}
.lunar-reel:after {
  content: "";
  position: absolute;
  inset: -80% 0 0;
  background: linear-gradient(transparent, #b8f2d333, transparent);
  pointer-events: none;
  opacity: 0;
  z-index: 4;
}
.lunar-reel.landed:after {
  animation: lunar-wave 0.65s ease-out;
}
.lunar-track {
  will-change: auto;
}
.is-spinning .lunar-track {
  will-change: transform;
}
.lunar-symbol {
  height: var(--tile);
  display: grid;
  place-items: center;
  position: relative;
  border-bottom: 1px solid #e2fff309;
}
.lunar-symbol svg {
  width: 70px;
  height: 70px;
  filter: drop-shadow(0 5px 5px #0003);
  transition:
    filter 0.3s,
    transform 0.3s;
}
.lunar-symbol.win {
  background: radial-gradient(ellipse, #c6efd522, transparent 75%);
}
.lunar-symbol.win:after {
  content: "";
  height: 1px;
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  background: #d3f1b9;
  box-shadow: 0 0 8px 1px #c7f3a8;
  z-index: -1;
}
.lunar-symbol.win svg {
  filter: drop-shadow(0 0 9px #e6e9b87a);
  transform: scale(1.06);
}
.lunar-frame-detail {
  position: absolute;
  left: calc(50% - 10px);
  bottom: 0;
  color: #d9d7ac;
  font-size: 18px;
  line-height: 20px;
  z-index: 4;
}
.lunar-flora {
  position: absolute;
  bottom: 15px;
  width: 45px;
  height: 145px;
  pointer-events: none;
  z-index: 2;
}
.lunar-flora.left {
  left: 0;
  transform: rotate(-17deg);
}
.lunar-flora.right {
  right: 0;
  transform: rotate(17deg) scaleX(-1);
}
.lunar-flora:before {
  content: "";
  height: 125px;
  width: 2px;
  background: #6cae9b;
  position: absolute;
  bottom: 0;
  left: 24px;
  transform: rotate(-10deg);
}
.lunar-flora i {
  position: absolute;
  width: 35px;
  height: 65px;
  border-radius: 90% 0 90% 0;
  background: linear-gradient(45deg, #2e6766, #7ca78a);
  border: 1px solid #9ce5ba22;
  box-shadow: inset 5px 0 15px #081e3322;
  left: 0;
  bottom: 35px;
  transform: rotate(-30deg);
}
.lunar-flora i:nth-child(2) {
  left: 18px;
  bottom: 0;
  transform: rotate(30deg);
  width: 30px;
  height: 55px;
}
.lunar-flora i:nth-child(3) {
  bottom: 90px;
  left: 5px;
  width: 28px;
  height: 45px;
  background: linear-gradient(45deg, #40707a, #a49fc7);
}
.lunar-flora i:nth-child(4) {
  bottom: 125px;
  left: 10px;
  width: 22px;
  height: 22px;
  transform: rotate(45deg);
  background: radial-gradient(circle at 30% 20%, #e5e5c7, #a4a1c2);
  border-radius: 60% 20% 60% 20%;
  box-shadow: 0 0 12px #d9edc329;
}
.lunar-fireflies {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
.lunar-fireflies i {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 3px;
  height: 3px;
  background: #d9efb6;
  border-radius: 100%;
  box-shadow: 0 0 8px 3px #c4e7a43b;
  animation: lunar-drift 7s ease-in-out infinite alternate;
  animation-delay: var(--delay);
  transition: translate 0.7s;
}
.is-spinning .lunar-fireflies i {
  translate: 12px -13px;
}
.lunar-controls {
  position: relative;
  z-index: 2;
  max-width: 440px;
  margin: 12px auto 0;
  text-align: center;
}
.lunar-summary {
  min-height: 68px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 4px;
  margin-bottom: 13px;
}
.lunar-summary strong {
  font:
    400 23px Georgia,
    serif;
  color: #e8e7c3;
}
.lunar-summary p {
  margin: 0;
  font-size: 12px;
  color: #b6ced0;
  max-width: 420px;
}
.lunar-playrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: #0b1f2e88;
  padding: 13px 15px 15px 23px;
  border: 1px solid #d9e7c329;
  border-radius: 21px;
}
.lunar-stake {
  text-align: left;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #b0c5c7;
}
.lunar-stake strong {
  display: block;
  text-transform: none;
  letter-spacing: 0;
  color: #e8dfc0;
  font-size: 17px;
  white-space: nowrap;
  margin-top: 2px;
}
.lunar-playrow .primary {
  min-width: 170px;
  background: #d9ddb4;
  box-shadow:
    0 5px 0 #8e9a7c,
    0 8px 25px #0002;
  padding: 13px 25px;
  color: #1e3741;
  border-radius: 13px;
  min-height: 50px;
}
.lunar-playrow .primary:hover {
  background: #e4e8c4;
}
.lunar-playrow .primary:disabled {
  cursor: default;
}
.lunar-footnote {
  font-size: 10px;
  color: #a6bfc1;
  margin: 15px 0 0;
}
.lunar-secondary {
  display: flex;
  justify-content: center;
  gap: 18px;
  min-height: 36px;
  margin: 12px auto 0;
  flex-wrap: wrap;
}
.lunar-secondary .quiet {
  font-size: 12px;
  color: #bdd9d1;
  padding: 8px 12px;
}
.lunar-history {
  margin: 22px 0 0;
  padding: 24px;
  border: 1px solid #b5d7c328;
  background: #132c3a;
  border-radius: 22px;
}
.lunar-history h2 {
  font:
    400 24px Georgia,
    serif;
  margin-top: 0;
}
.lunar-mini-grid {
  display: grid;
  grid-template-columns: repeat(3, 25px);
  gap: 2px;
}
.lunar-mini-grid svg {
  width: 24px;
  height: 24px;
}
.lunar-history .list-row {
  align-items: center;
  gap: 12px;
}
.lunar-history .list-row > div:nth-child(2) {
  flex: 1;
}
.lunar-history button {
  font-size: 12px;
}
.lunar-connection {
  font-size: 12px;
  text-align: center;
  padding: 12px;
  border: 1px solid #d8c39c55;
  background: #68543a33;
  border-radius: 13px;
  color: #f0dabc;
  margin-bottom: 15px;
}
.lunar-error {
  padding: 18px;
  color: #f2d4b6;
  background: #60463b44;
  border: 1px solid #c8a47a55;
  border-radius: 16px;
  margin: 15px 0;
}
.lunar-error p {
  margin: 0 0 12px;
  font-size: 13px;
}
.lunar-dialog {
  max-width: 650px;
}
.lunar-dialog h2 {
  color: #e9e8c5;
}
.lunar-dialog td svg {
  width: 28px;
  height: 28px;
  vertical-align: middle;
  margin-right: 8px;
}
.lunar-admin {
  margin-top: 25px;
}
.lunar-admin .admin-grid {
  grid-template-columns: 1.1fr 1fr;
}
.lunar-symbol-editor {
  display: grid;
  gap: 8px;
}
.lunar-symbol-edit-row {
  display: grid;
  grid-template-columns: 1fr 75px 80px;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid #fff1;
  padding: 10px 0;
}
.lunar-symbol-edit-row label {
  font-size: 11px;
}
.lunar-symbol-edit-row input[type="number"] {
  padding: 9px;
  width: 100%;
}
.lunar-symbol-edit-row .check {
  font-size: 12px;
  gap: 6px;
}
.lunar-symbol-edit-row svg {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}
.lunar-preview-board {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 20px 0;
}
.lunar-preview-board svg {
  width: 65px;
  height: 65px;
}
.lunar-admin .list-row {
  align-items: flex-start;
}
.lunar-admin .list-row .quiet {
  font-size: 11px;
}
.lunar-admin .audit {
  max-height: 260px;
}
.lunar-ambience-paused *,
.lunar-low-power .lunar-fireflies i {
  animation-play-state: paused !important;
}
.lunar-low-power .lunar-fireflies i:nth-child(n + 5) {
  display: none;
}
.lunar-navigation-note {
  color: #a9cbbf;
  font-size: 11px;
  text-align: center;
  margin: 14px 0;
}
.lunar-route-error {
  max-width: 600px;
  margin: auto;
}
@keyframes lunar-drift {
  to {
    transform: translate(8px, -12px);
    opacity: 0.4;
  }
}
@keyframes lunar-wave {
  0% {
    opacity: 0;
    transform: translateY(-30%);
  }
  30% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateY(130%);
  }
}
::view-transition-old(lunar-portal),
::view-transition-new(lunar-portal) {
  animation-duration: 0.4s;
  animation-timing-function: cubic-bezier(0.2, 0.65, 0.2, 1);
}
@media (max-width: 650px) {
  .lunar-shell {
    padding: 19px 14px 23px;
    border-radius: 23px;
    min-height: 0;
  }
  .lunar-top .back {
    font-size: 11px;
  }
  .lunar-top .pill {
    font-size: 8px;
    padding: 5px 8px;
  }
  .lunar-top .quiet {
    font-size: 11px;
    padding: 7px;
  }
  .lunar-intro {
    margin: 21px 0 12px;
  }
  .lunar-intro h1 {
    font-size: 36px;
  }
  .lunar-intro p {
    font-size: 11px;
    line-height: 1.6;
    margin: 9px 0;
  }
  .lunar-intro .eyebrow {
    font-size: 8px;
  }
  .lunar-balance {
    font-size: 10px;
    margin: 0;
  }
  .lunar-balance strong {
    font-size: 13px;
  }
  .lunar-scenery {
    padding: 24px 15px 23px;
    margin: 18px -3px 0;
    max-width: 390px;
  }
  .lunar-board {
    --tile: 81px;
    gap: 5px;
    padding: 8px;
    border-radius: 22px;
  }
  .lunar-reel {
    border-radius: 13px;
  }
  .lunar-symbol svg {
    width: 58px;
    height: 58px;
  }
  .lunar-moon {
    width: 49px;
    height: 49px;
    left: calc(50% - 24px);
    top: -14px;
  }
  .lunar-canopy {
    inset: 0 0 10px;
  }
  .lunar-flora {
    width: 25px;
    height: 100px;
    bottom: 12px;
  }
  .lunar-flora.left {
    left: -4px;
  }
  .lunar-flora.right {
    right: -4px;
  }
  .lunar-flora i {
    width: 23px;
    height: 48px;
    bottom: 20px;
  }
  .lunar-flora i:nth-child(2) {
    left: 8px;
    bottom: 0;
    width: 20px;
    height: 40px;
  }
  .lunar-flora i:nth-child(3) {
    bottom: 60px;
    width: 19px;
    height: 30px;
  }
  .lunar-flora i:nth-child(4) {
    bottom: 87px;
    left: 9px;
    width: 16px;
    height: 16px;
  }
  .lunar-flora:before {
    height: 90px;
    left: 15px;
  }
  .lunar-controls {
    margin-top: 2px;
  }
  .lunar-summary {
    min-height: 62px;
    margin-bottom: 12px;
  }
  .lunar-summary strong {
    font-size: 20px;
  }
  .lunar-summary p {
    font-size: 10px;
  }
  .lunar-playrow {
    gap: 12px;
    padding: 12px 12px 14px 16px;
    border-radius: 17px;
  }
  .lunar-playrow .primary {
    min-width: 145px;
    min-height: 48px;
    padding: 12px 24px;
  }
  .lunar-stake {
    font-size: 8px;
  }
  .lunar-stake strong {
    font-size: 15px;
  }
  .lunar-footnote {
    font-size: 9px;
    line-height: 1.7;
  }
  .lunar-secondary {
    gap: 5px;
    margin-top: 6px;
  }
  .lunar-secondary .quiet {
    font-size: 11px;
  }
  .more-games {
    margin-top: 25px;
  }
  .lunar-card {
    padding: 17px 20px;
    gap: 16px;
    border-radius: 18px;
  }
  .lunar-card strong {
    font-size: 22px;
  }
  .lunar-card svg {
    width: 53px;
    height: 53px;
  }
  .lunar-card .eyebrow {
    font-size: 8px;
  }
  .lunar-history {
    padding: 18px;
  }
  .lunar-history .list-row {
    flex-wrap: wrap;
  }
  .lunar-mini-grid {
    grid-template-columns: repeat(3, 20px);
  }
  .lunar-mini-grid svg {
    width: 19px;
    height: 19px;
  }
  .lunar-history .list-row strong {
    font-size: 12px;
  }
  .lunar-history .list-row small {
    font-size: 10px;
  }
  .lunar-history button {
    font-size: 11px;
    padding: 9px;
  }
  .lunar-admin .admin-grid {
    grid-template-columns: 1fr;
  }
  .lunar-symbol-edit-row {
    grid-template-columns: 1fr 60px 67px;
    gap: 7px;
  }
  .lunar-symbol-edit-row .check {
    font-size: 10px;
  }
  .lunar-symbol-edit-row svg {
    width: 20px;
    height: 20px;
  }
}
@media (max-width: 355px) {
  .lunar-shell {
    padding-left: 10px;
    padding-right: 10px;
  }
  .lunar-playrow .primary {
    min-width: 125px;
  }
  .lunar-symbol svg {
    width: 50px;
    height: 50px;
  }
  .lunar-board {
    --tile: 72px;
  }
  .lunar-top {
    gap: 4px;
  }
  .lunar-top .pill {
    letter-spacing: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .lunar-fireflies i {
    animation: none;
  }
  ::view-transition-group(*),
  ::view-transition-new(*),
  ::view-transition-old(*) {
    animation: none !important;
  }
}
body.reduce-motion .lunar-fireflies i {
  animation: none;
}
