@import url("./design-system.css");

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  height: 100vh !important;
  color: var(--text);
  background: var(--bg1);
  font-family: var(--font-body-text-family);
  font-size: var(--font-body-text-size);
  line-height: var(--font-body-text-line-height);
  letter-spacing: var(--font-body-text-letter-spacing);
  font-style: var(--font-body-text-style);
  font-weight: var(--font-body-text-wght);
  font-optical-sizing: auto;
  font-stretch: calc(var(--font-body-text-wdth) * 1%);
  font-variation-settings:
    "wght" var(--font-body-text-wght),
    "wdth" var(--font-body-text-wdth),
    "slnt" var(--font-body-text-slnt, 0),
    "opsz" var(--font-body-text-opsz);
  position: relative;
  overflow-x: hidden;
}

html,
body {
  height: 100%;
  background-color: var(--horse-bg-solid, var(--bg1));
}

.page {
  position: relative;
  z-index: 1;
}


a {
  color: inherit;
  text-decoration: none;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 0 var(--space-24);
  min-height: clamp(96px, calc(100 * var(--vw-unit)), 40px);
  position: relative;
  z-index: 500;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: var(--space-20);
}

.brand svg {
  height: clamp(30px, 4vw, 46px);
  width: auto;
  display: block;
  overflow: visible;
}

.nav {
  display: flex;
  gap: var(--space-16);
  margin-left: auto;
  margin-top: var(--space-24);
}

.nav-link {
  color: var(--colors-primary-red);
  font-size: var(--font-body-text-size);
  text-transform: none;
  letter-spacing: 0.04em;
  border-bottom: 1px solid transparent;
  padding-bottom: 4px;
}

.nav-link:hover,
.nav-link:focus {
  border-bottom-color: var(--colors-primary-red);
  color: var(--colors-primary-red);
}

.main {
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-24);
}

.page--horse {
  background: var(--horse-bg-solid, var(--horse-bg, var(--bg1)));
  background-repeat: no-repeat;
  background-position: center top;
  background-size: 100% 100%;
  color: var(--horse-text, var(--text));
  position: relative;
  isolation: isolate;
}

.page--horse .horse-main {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s ease;
}

.page--horse.is-horse-ready .horse-main {
  opacity: 1;
  visibility: visible;
}

.horse-bg {
  position: fixed;
  inset: -1px;
  background: var(--horse-bg, var(--bg1));
  background-repeat: no-repeat;
  background-position: center top;
  background-size: 100% 100%;
  z-index: 0;
  transform: translateZ(0);
}

.horse-split-right {
  position: fixed;
  top: 0;
  bottom: 0;
  right: 0;
  width: 50vw;
  background: var(--horse-text, var(--text));
  z-index: 0;
  transform: translateZ(0);
  display: none;
}

.horse-safe-top,
.horse-safe-bottom {
  position: fixed;
  left: 0;
  right: 0;
  z-index: 0;
  pointer-events: none;
}

.horse-safe-top {
  top: 0;
  height: env(safe-area-inset-top, 0px);
  background: var(--horse-bg-top, var(--horse-bg-solid, var(--bg1)));
}

.horse-safe-bottom {
  bottom: 0;
  height: env(safe-area-inset-bottom, 0px);
  background: var(--horse-bg-bottom, var(--horse-bg-solid, var(--bg1)));
}

.page--horse
  > :not(.horse-bg):not(.horse-safe-top):not(.horse-safe-bottom):not(.horse-split-right) {
  position: relative;
  z-index: 1;
}

.page--horse .nav-link {
  color: currentColor;
  border-bottom-color: transparent;
}

.page--horse .nav-link:hover,
.page--horse .nav-link:focus {
  border-bottom-color: currentColor;
}

.page--horse .brand {
  color: var(--horse-text, var(--text));
}

.page--horse .brand svg path {
  fill: currentColor;
}

.page--horse .main {
  padding-top: 0;
}

.horse-main {
  justify-content: flex-start;
  align-items: center;
  text-align: center;
  padding: var(--space-24);
  margin-top: calc(-1 * var(--space-24));
}

.horse-card {
  width: min(520px, 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-18);
}

.horse-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.horse-panel {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-18);
}

.horse-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.horse-circle {
  width: var(--horse-circle-size);
  height: var(--horse-circle-size);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.horse-viewport {
  position: relative;
  overflow: visible;
  background: transparent;
  z-index: 0;
}

.horse-viewport-inner {
  position: absolute;
  inset: 0;
}

#canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: auto;
  touch-action: none;
}

.horse-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-12);
}

.fortune-carousel {
  width: 100%;
}

.fortune-track {
  display: flex;
  flex-direction: column;
  gap: var(--space-12);
}

.fortune-slide {
  width: 100%;
  display: flex;
  justify-content: center;
}

.fortune-dots {
  display: none;
  gap: var(--space-10);
  justify-content: center;
  align-items: center;
}

.fortune-dot {
  width: var(--dot-size);
  height: var(--dot-size);
  border-radius: 999px;
  border: 1px solid currentColor;
  background: transparent;
  opacity: 0.4;
  padding: 0;
  cursor: pointer;
  color: inherit;
}

.fortune-dot.is-active {
  background: currentColor;
  opacity: 1;
}

.page--horse .fortune-dots {
  color: var(--horse-text, var(--text));
}

.page--horse .fortune-dot {
  color: var(--horse-text, var(--text));
  border-color: var(--horse-text, var(--text));
}

.page--horse .fortune-dot.is-active {
  background: var(--horse-text, var(--text));
}

.fortune-detail {
  display: flex;
  flex-direction: column;
  gap: var(--space-12);
}

.horse-meta.inline {
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: var(--space-10);
  flex-wrap: nowrap;
}

.horse-content .heading-2,
.horse-content .body-text,
.horse-meta .heading-3,
.horse-meta .highlight {
  color: inherit;
}

.intro {
  display: flex;
  flex-direction: column;
  gap: var(--space-12);
}

.intro-hero {
  min-height: calc(100vh - 180px);
  justify-content: space-between;
  align-items: center;
  text-align: center;
  position: relative;
}

.intro p {
  color: var(--muted);
  margin: 0;
}

.hero-tree-wrap {
  width: min(393px, 100%);
  max-width: 100%;
  overflow: hidden;
  position: relative;
  --tree-scale: 0.9; /* adjust tree scale */
  transform: scale(var(--tree-scale));
  transform-origin: top center;
  margin-top: clamp(120px, 18vh, 180px);
  clip-path: inset(100% 0 0 0);
  -webkit-clip-path: inset(100% 0 0 0);
  animation: tree-reveal 1s ease-out forwards;
  will-change: clip-path;
}

.hero-tree {
  width: 100%;
  height: auto;
  display: block;
}

.hero-tree path {
  vector-effect: non-scaling-stroke;
}

.hero-tree-flowers {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-tree-horses {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.tree-flower {
  position: absolute;
  left: var(--flower-x, 50%);
  top: var(--flower-y, 50%);
  width: var(--flower-size, 12px);
  height: var(--flower-size, 12px);
  transform: translate(-50%, -50%);
  opacity: 0;
  animation: flower-fade 0.6s ease forwards;
  animation-delay: var(--flower-delay, 0s);
}

.tree-flower svg {
  width: 100%;
  height: 100%;
  display: block;
}

.tree-horse {
  position: absolute;
  width: 48px;
  height: 42px;
  opacity: 0;
  color: var(--colors-primary-red);
  transform: translate(-50%, -50%) scale(0.94);
  animation: horse-fade 0.6s ease forwards var(--horse-fade-delay, 0s);
  pointer-events: auto;
}

.tree-horse--secret {
  color: var(--colors-primary-blue);
}

.tree-horse-inner {
  display: block;
  width: 100%;
  height: 100%;
  transform-origin: 50% 10%;
  transform: rotate(var(--horse-gravity-rotation, 0deg));
  animation: none;
  will-change: transform;
}

.tree-horse.is-dangling .tree-horse-inner {
  animation: horse-dangle var(--horse-sway-duration, 1.1s) ease-in-out;
}

.tree-horse svg {
  width: 100%;
  height: 100%;
  display: block;
  transition: filter 0.2s ease;
}

.tree-horse:hover svg {
  filter: drop-shadow(0 0 6px var(--colors-primary-yellow))
    drop-shadow(0 0 14px var(--colors-primary-yellow));
}

@keyframes horse-fade {
  from {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.94);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

@keyframes horse-dangle {
  0% {
    transform: rotate(var(--horse-gravity-rotation, 0deg));
  }
  12% {
    transform: rotate(
      calc(
        var(--horse-gravity-rotation, 0deg) + var(--horse-sway-angle, -8deg)
      )
    );
  }
  24% {
    transform: rotate(
      calc(
        var(--horse-gravity-rotation, 0deg) +
          (var(--horse-sway-angle, -8deg) * -1)
      )
    );
  }
  36% {
    transform: rotate(
      calc(
        var(--horse-gravity-rotation, 0deg) + var(--horse-sway-angle, -8deg)
      )
    );
  }
  48% {
    transform: rotate(
      calc(
        var(--horse-gravity-rotation, 0deg) +
          (var(--horse-sway-angle, -8deg) * -1)
      )
    );
  }
  60% {
    transform: rotate(
      calc(
        var(--horse-gravity-rotation, 0deg) + var(--horse-sway-angle, -8deg)
      )
    );
  }
  72% {
    transform: rotate(
      calc(
        var(--horse-gravity-rotation, 0deg) +
          (var(--horse-sway-angle, -8deg) * -1)
      )
    );
  }
  100% {
    transform: rotate(var(--horse-gravity-rotation, 0deg));
  }
}

.tree-flower--spin svg {
  transform-origin: 50% 50%;
  animation: flower-spin var(--spin-duration, 12s) ease-in-out infinite;
  animation-delay: var(--spin-delay, 0s);
}

.tree-flower.is-falling {
  animation: flower-fall var(--flower-fall-duration, 0.9s) ease-in forwards;
  animation-delay: 0s;
  opacity: 1;
}

.tree-flower.is-falling svg {
  animation: none !important;
}

@keyframes flower-spin {
  0%,
  60% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes flower-fade {
  from {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.92);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

@keyframes flower-fall {
  from {
    transform: translate(-50%, -50%) scale(1);
  }
  to {
    transform: translate(-50%, -50%) translateY(var(--flower-fall-distance, 0px)) scale(1);
  }
}

@keyframes tree-reveal {
  from {
    clip-path: inset(100% 0 0 0);
    -webkit-clip-path: inset(100% 0 0 0);
  }
  to {
    clip-path: inset(0 0 0 0);
    -webkit-clip-path: inset(0 0 0 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-tree-wrap {
    animation: none !important;
    clip-path: inset(0 0 0 0);
    -webkit-clip-path: inset(0 0 0 0);
  }

  .tree-flower--spin svg {
    animation: none !important;
  }

  .shake-icon {
    animation: none !important;
  }

  .tree-horse {
    animation: none !important;
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }

  .tree-horse-inner {
    animation: none !important;
  }
}

.hero-cta {
  width: 100%;
  margin-top: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-12);
  padding-bottom: var(--space-24);
}

.intro-hero .fortune-button {
  color: var(--colors-primary-red);
}

.page--index .btn.fortune-button {
  color: var(--colors-primary-red);
  border-color: var(--colors-primary-red);
}

.page--index .btn.fortune-button:hover:not(:disabled),
.page--index .btn.fortune-button:focus-visible:not(:disabled) {
  background: var(--colors-primary-red);
  color: var(--colors-white);
}

.page--index {
  height: 100vh;
  overflow: hidden;
}

.page--index .topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
}

.page--index .main {
  height: 100vh;
  padding: 0 var(--space-24);
  display: flex;
}

.page--index .intro-hero {
  flex: 1;
  height: 100%;
  justify-content: center;
}

.page--index .hero-tree-wrap {
  margin-top: 0;
}

.page--index .hero-cta {
  position: absolute;
  left: 50%;
  bottom: calc(env(safe-area-inset-bottom, 0px) + var(--space-24));
  transform: translateX(-50%);
  padding-bottom: 0;
  margin-top: 0;
  width: min(100%, 420px);
}

.shake-icon {
  position: fixed;
  right: var(--space-16);
  bottom: calc(env(safe-area-inset-bottom, 0px) + var(--space-16));
  width: 130px;
  height: 130px;
  z-index: 50;
  animation: shake-sway 2.6s ease-in-out infinite;
  transform-origin: 50% 50%;
  pointer-events: none;
}

.shake-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

@keyframes shake-sway {
  0% {
    transform: rotate(-30deg);
  }
  50% {
    transform: rotate(30deg);
  }
  100% {
    transform: rotate(-30deg);
  }
}

.controls {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-12);
}

.intro-hero .controls {
  width: 100%;
  justify-content: center;
}

.status {
  margin: 0;
  color: var(--muted);
  font-size: var(--font-body-text-size);
  text-align: center;
}

.notice {
  padding: var(--space-10) var(--space-16);
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.03);
  color: var(--text);
  font-size: var(--font-body-text-size);
}

.modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 50;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(4px);
}

.modal-card {
  position: relative;
  z-index: 1;
  width: min(420px, 90vw);
  background: var(--colors-primary-yellow);
  border-radius: var(--space-24);
  padding: var(--space-24);
  border: none;
  box-shadow: 0 4px 12px 0 rgba(64, 64, 26, 0.1);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  flex-direction: column;
  gap: var(--space-12);
  color: var(--colors-primary-dark-green);
}

.modal-card .modal-title {
  margin: 0;
}

.modal-card p {
  margin: 0;
  color: rgba(64, 64, 26, 0.85);
}

.modal-actions {
  display: flex;
  gap: var(--space-10);
  flex-wrap: wrap;
}

.btn.motion-enable {
  background: var(--colors-primary-red);
  color: var(--colors-white);
  border-color: transparent;
  box-shadow: none;
}

.btn.motion-cancel {
  background: transparent;
  color: var(--colors-primary-red);
  border-color: transparent;
  box-shadow: none;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-20);
  display: flex;
  flex-direction: column;
  gap: var(--space-18);
  box-shadow: var(--shadow);
  transform: translateY(6px) scale(0.99);
  opacity: 0.9;
  transition: transform 0.6s ease, opacity 0.6s ease;
  position: relative;
}

.card.is-revealed {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.card-top {
  position: relative;
}

.canvas-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--space-18);
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.03);
}

canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.loading,
.fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-20);
  background: rgba(11, 12, 16, 0.65);
  font-size: 0.95rem;
  color: var(--muted);
}

.hidden {
  display: none;
}

.stamp {
  position: absolute;
  right: var(--space-18);
  bottom: calc(-1 * var(--space-18));
  width: var(--size-72);
  height: var(--size-72);
  border-radius: 999px;
  border: 2px dashed rgba(255, 255, 255, 0.6);
  color: var(--accent);
  display: grid;
  place-items: center;
  font-family: "Fraunces", serif;
  font-size: 1rem;
  text-transform: uppercase;
  transform: rotate(-12deg);
  background: rgba(0, 0, 0, 0.2);
}

.card-content h2 {
  margin: 0;
  font-size: 1.7rem;
}

.card-content p {
  margin: 0 0 6px;
  color: var(--muted);
}

.token-row {
  display: flex;
  align-items: center;
  gap: var(--space-12);
  flex-wrap: wrap;
  margin-top: var(--space-10);
}

.token-label {
  font-size: 0.85rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
}

.token-chip {
  background: rgba(255, 255, 255, 0.08);
  color: var(--accent);
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-weight: 600;
  letter-spacing: 1px;
}

.card-actions {
  display: flex;
  gap: var(--space-12);
  flex-wrap: wrap;
}

.btn {
  border: 1px solid transparent;
  border-radius: 999px;
  padding: var(--space-8) var(--space-12);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn.primary {
  background: var(--accent);
  color: #1b1b1b;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
}

.btn.ghost {
  background: transparent;
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.3);
}

.btn.cta-button {
  background: transparent;
  color: var(--colors-primary-red);
  border-color: var(--colors-primary-red);
  border-radius: 999px;
  padding: var(--space-8) var(--space-12);
}

.btn.cta-button:hover:not(:disabled),
.btn.cta-button:focus-visible:not(:disabled) {
  background: var(--colors-primary-red);
  color: var(--colors-white);
}

.btn.fortune-button {
  background: transparent;
  color: inherit;
  border: 2px solid currentColor;
  border-radius: 999px;
  padding: var(--space-8) var(--space-12);
}

.btn.share-button {
  width: var(--space-36);
  height: var(--space-36);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
}

.btn.share-button svg {
  width: 18px;
  height: auto;
  display: block;
}

.btn.fortune-button:hover:not(:disabled),
.btn.fortune-button:focus-visible:not(:disabled) {
  background: currentColor;
  color: var(--colors-white);
}

.btn:hover:not(:disabled) {
  transform: translateY(-1px);
}

.info-card {
  background: rgba(12, 14, 19, 0.7);
  border-radius: var(--radius);
  padding: var(--space-24);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.info-list {
  margin: 8px 0 16px;
  padding-left: var(--space-18);
  color: var(--muted);
}

@media (min-width: 768px) {
  .main {
    padding: 0;
  }

  .card {
    padding: var(--space-24);
  }

  .canvas-wrap {
    aspect-ratio: 16 / 9;
  }

  .card-content h2 {
    font-size: 2.1rem;
  }
}

@media (max-width: 767px) {
  .nav .nav-link--lang {
    order: 2;
  }

  .nav .nav-link--info {
    order: 1;
  }


  .page--horse .btn.fortune-button {
    background: var(--colors-white);
    color: var(--horse-text, var(--text));
    border-color: var(--colors-white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    text-wrap: nowrap;
  }

  .page--horse .btn.fortune-button:hover:not(:disabled),
  .page--horse .btn.fortune-button:focus-visible:not(:disabled) {
    background: var(--colors-white);
    color: var(--horse-text, var(--text));
  }

  .page--horse .fortune-actions {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-16);
    padding-top: var(--space-8);
  }

  .page--horse .fortune-actions .btn {
    flex: 0 0 auto;
  }


  .fortune-carousel {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
  }

  .fortune-carousel::-webkit-scrollbar {
    display: none;
  }

  .fortune-track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 100%;
    gap: 0;
  }

  .fortune-slide {
    scroll-snap-align: center;
    padding: 0 var(--space-24);
  }

  .fortune-dots {
    display: flex;
  }
}

@media (min-width: 1024px) {
  :root {
    --topbar-height: clamp(72px, 8vh, 120px);
  }

  html,
  body {
    overflow: hidden;
  }

  .page--horse {
    height: 100vh;
  }

  .page--horse .main {
    width: 100%;
    max-width: none;
    padding: 0;
    gap: 0;
  }

  .horse-main {
    min-height: 100vh;
    height: 100vh;
    padding: var(--topbar-height) 0 0;
    align-items: center;
    justify-content: center;
    margin-top: 0;
  }

  .horse-bg {
    top: 0;
    bottom: 0;
    left: -1px;
    right: auto;
    width: calc(50vw + 1px);
  }

  .horse-split-right {
    display: block;
    top: 0;
    bottom: 0;
    left: calc(50vw - 1px);
    width: calc(50vw + 1px);
  }

  .horse-safe-top,
  .horse-safe-bottom {
    display: none;
  }

  .topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--topbar-height);
    min-height: 0;
    padding: 0 var(--space-32);
    align-items: center;
    z-index: 200;
  }

  .brand {
    margin-top: 0;
    color: var(--horse-text, var(--text));
  }

  .nav {
    margin-top: 0;
    color: var(--horse-bg-top, var(--horse-bg-solid, var(--bg1)));
  }

  .page--horse .nav-link {
    color: currentColor;
  }

  .horse-card {
    width: 100%;
    max-width: none;
    min-height: calc(100vh - var(--topbar-height));
    height: calc(100vh - var(--topbar-height));
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr auto auto 1fr;
    align-content: center;
    gap: 0;
    position: relative;
    margin-top: calc(-1.5 * var(--topbar-height));
  }

  .horse-visual {
    justify-content: center;
    align-items: center;
    grid-column: 1;
    grid-row: 1 / -1;
    align-self: center;
  }

  .page--horse {
    --horse-circle-size: min(70vh, 42vw);
  }

  .horse-card > .horse-meta {
    grid-column: 2;
    grid-row: 2;
    color: var(--horse-bg-top, var(--horse-bg-solid, var(--bg1)));
    align-items: center;
  }

  .horse-panel {
    position: static;
    color: var(--horse-bg-top, var(--horse-bg-solid, var(--bg1)));
    background: transparent;
    justify-content: center;
    text-align: center;
    padding: clamp(12px, 2.5vw, 48px) clamp(24px, 5vw, 144px);
    gap: var(--space-12);
    grid-column: 2;
    grid-row: 3;
    align-self: center;
  }

  .horse-panel .horse-meta {
    gap: var(--space-12);
  }

  .horse-panel .fortune-actions {
    position: absolute;
    right: var(--space-32);
    bottom: var(--space-16);
    display: inline-flex;
    align-items: center;
    gap: var(--space-12);
  }

  .page--horse .btn.fortune-button:hover:not(:disabled),
  .page--horse .btn.fortune-button:focus-visible:not(:disabled) {
    background: var(--horse-bg-top, currentColor);
    color: var(--horse-text, var(--text));
  }

  .horse-panel .fortune-dots,
  .horse-panel .fortune-dot {
    color: currentColor;
    border-color: currentColor;
  }

  .horse-panel .fortune-dot.is-active {
    background: currentColor;
  }

  .hero-tree-wrap {
    margin-top: 0;
    --tree-scale: 1;
  }

  .intro-hero .hero-cta {
    position: static;
    padding-bottom: 0;
  }

  .intro-hero .controls {
    position: absolute;
    right: var(--space-8);
    bottom: var(--space-32);
    width: auto;
  }

  .page--index .hero-cta {
    width: auto;
    left: auto;
    transform: none;
    bottom: auto;
  }

  .shake-icon {
    display: none;
  }
}
