@font-face { font-family: Outfit; src: url('/fonts/outfit-800.woff2') format('woff2'); font-weight: 800; font-display: swap; }
@font-face { font-family: Geist; src: url('/fonts/geist.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }

:root {
  color-scheme: dark;
  --cloud: #e6edee;
  --white: #fffef8;
  --pine: #344d40;
  --forest: #24382f;
  --mist: #9db2b8;
  --lime: #d9ee9b;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  font-family: Geist, Arial, sans-serif;
  font-synthesis: none;
  font-weight: 550;
  letter-spacing: 0;
  color: var(--white);
  background: var(--pine);
}

* { box-sizing: border-box; }
html, body { margin: 0; width: 100%; height: 100%; overflow: hidden; overscroll-behavior: none; }
body { height: 100dvh; }
button, a, video { -webkit-tap-highlight-color: transparent; }
button, a { touch-action: manipulation; }
button { font: inherit; color: inherit; cursor: pointer; }
button:disabled { cursor: default; opacity: .45; }
a { color: inherit; text-decoration: none; }
button, a { letter-spacing: 0; }
button { border: 0; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 5px; }
.icon { display: inline-flex; align-items: center; justify-content: center; width: 21px; height: 21px; flex: 0 0 21px; }
.icon svg { width: 100%; height: 100%; stroke-width: 2; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 20; padding: 12px 18px; background: var(--forest); transform: translateY(-160%); }
.skip-link:focus { transform: none; }
.experience { position: relative; isolation: isolate; width: 100%; height: 100%; display: grid; grid-template-columns: 55% 45%; overflow: hidden; }
.world { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.left-column { min-width: 0; min-height: 0; overflow: hidden; }

.shrine {
  isolation: isolate;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr) auto;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: transparent;
  container-type: inline-size;
  height: 100%;
}
.landscape { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.valley { position: absolute; inset: -2%; width: 104%; max-width: none; height: 104%; object-fit: cover; object-position: 48% 50%; }
.scene-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgb(29 47 44 / .13), transparent 45%, rgb(21 38 29 / .5)); }
.foreground { position: absolute; bottom: -2%; left: -4%; width: 108%; height: 64%; max-width: none; object-fit: cover; object-position: center bottom; }
.money-depth { position: absolute; inset: 17% 3% 20%; }
.money { height: 100%; width: 100%; object-fit: contain; opacity: .83; animation: money-drift 12s ease-in-out infinite alternate; }
.depth-layer { transition: transform 500ms var(--ease-out); will-change: transform; }
.shrine-heading { z-index: 2; position: relative; padding: 42px 24px 0; text-align: center; pointer-events: none; }
h1 { margin: 0; font: 800 88px/1.05 Outfit, Arial, sans-serif; letter-spacing: 0; text-shadow: 0 3px 20px rgb(29 48 42 / .2); }
.altar { position: relative; min-height: 0; z-index: 1; margin: 0 9%; }
.character-depth { position: absolute; inset: 0; }
.character { display: block; background: none; padding: 0; width: 100%; height: 100%; border-radius: 6px; }
.fug { height: 100%; width: 100%; object-fit: contain; filter: drop-shadow(0 18px 16px rgb(18 32 24 / .23)); animation: fug-float 8s ease-in-out infinite; user-select: none; }
.character:active .fug { filter: drop-shadow(0 8px 8px rgb(18 32 24 / .25)); }
.utterance { position: absolute; top: 7%; left: 50%; z-index: 3; margin: 0; padding: 9px 15px; border: 1px solid rgb(255 254 248 / .55); border-radius: 6px; background: var(--forest); color: var(--white); white-space: nowrap; max-width: 95%; font-size: 16px; font-weight: 650; pointer-events: none; opacity: 0; transform: translate(-50%, 6px); transition: opacity 160ms ease, transform 160ms var(--ease-out); }
.utterance.is-visible { opacity: 1; transform: translate(-50%, 0); }
.shrine-footer { position: relative; z-index: 3; min-width: 0; text-align: center; padding: 0 24px 28px; }
.mantra { margin: 0 0 12px; font: 800 32px/1.2 Outfit, Arial, sans-serif; text-shadow: 0 3px 9px rgb(11 25 20 / .5); }
.shrine-actions { display: flex; justify-content: center; align-items: center; gap: 10px; }
.socials { display: flex; align-items: center; gap: 10px; }
.social-icon { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 6px; width: 52px; min-height: 60px; color: var(--white); font-size: 11px; font-weight: 750; line-height: 1; text-shadow: 0 1px 5px rgb(11 25 20 / .8); }
.social-icon img { object-fit: contain; filter: brightness(0) invert(1) drop-shadow(0 1px 3px rgb(11 25 20 / .5)); }
.social-icon img[src$="dexscreener.png"] { filter: drop-shadow(0 1px 3px rgb(11 25 20 / .5)); }
.contract { position: relative; display: flex; justify-content: center; align-items: center; gap: 8px; width: max-content; max-width: 100%; min-width: 0; min-height: 44px; margin: 12px auto 0; padding: 4px 0; background: transparent; border-radius: 4px; font-size: 13px; line-height: 1.4; font-weight: 750; color: var(--lime); text-shadow: 0 1px 5px rgb(11 25 20 / .6); }
.contract-address { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.contract .icon { width: 16px; height: 16px; flex-basis: 16px; }
.copy-feedback { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.icon-button { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; flex: 0 0 46px; padding: 0; background: transparent; border: 1px solid transparent; border-radius: 5px; }
.motion-button { border-color: rgb(241 238 227 / .3); background: rgb(33 52 41 / .25); }
.pressable { transition: transform 160ms var(--ease-out), box-shadow 160ms var(--ease-out), background-color 160ms ease, border-color 160ms ease; }
.pressable:not(:disabled):active { transform: translateY(2px) scale(.98); box-shadow: 0 0 0 transparent; }
[data-tooltip]::after { content: attr(data-tooltip); position: absolute; z-index: 12; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%); background: var(--forest); color: var(--white); padding: 7px 10px; border: 1px solid rgb(241 238 227 / .25); border-radius: 4px; font: 600 13px/1.3 Geist, sans-serif; white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity 125ms ease; }
[data-tooltip]:focus-visible::after { opacity: 1; }

.gallery { position: relative; min-width: 0; min-height: 0; display: grid; grid-template-rows: auto minmax(0, 1fr); background: transparent; }
.gallery-scroll { min-height: 0; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: rgb(255 255 255 / .6) transparent; scroll-behavior: auto; }
.gallery-scroll:focus-visible { outline-offset: -4px; }
.gallery:focus { outline-offset: -4px; }
.gallery-heading { position: relative; z-index: 2; padding: 32px 28px 22px; }
.gallery-heading h2 { font: 800 24px/1.25 Outfit, Arial, sans-serif; margin: 0; text-shadow: 0 2px 8px rgb(16 29 23 / .7); }
.gallery-body { padding: 0; }
.gallery-status { margin: 44px 0; color: var(--cloud); font-size: 17px; line-height: 1.6; font-weight: 600; }
.retry-button { border: 1px solid var(--mist); border-radius: 4px; background: none; padding: 10px 16px; min-height: 44px; }
.photo-wall { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 18px; align-items: start; padding: 0 28px; }
.offering { margin: 0; min-width: 0; position: relative; }
.photo-open { position: relative; display: block; width: 100%; padding: 0; background: transparent; border-radius: 20px; color: var(--white); text-align: left; }
.photo-surface { position: relative; display: block; overflow: hidden; aspect-ratio: 4 / 5; border-radius: 20px; background: #c3ceca; }
.photo-surface img, .photo-surface video { display: block; width: 100%; height: 100%; object-fit: cover; }
.photo-surface .media-failure { position: absolute; inset: 0; display: grid; place-items: center; padding: 20px; text-align: center; background: var(--cloud); font-size: 15px; }
.photo-label { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 35px; padding: 9px 0 0; font-size: 14px; font-weight: 700; line-height: 1.4; overflow-wrap: anywhere; text-shadow: 0 1px 6px rgb(9 26 18 / .9); }
.photo-label .icon { width: 16px; height: 16px; flex-basis: 16px; }

.viewer { max-width: none; max-height: none; width: 100%; height: 100%; height: 100dvh; padding: 0; margin: 0; border: 0; background: transparent; color: var(--white); overflow: hidden; }
.viewer::backdrop { background: rgb(16 29 23 / .96); }
.viewer-sheet { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; width: 100%; height: 100%; padding: max(16px, env(safe-area-inset-top)) max(24px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(24px, env(safe-area-inset-left)); }
.viewer-heading { display: flex; gap: 16px; align-items: center; justify-content: space-between; min-height: 60px; padding-bottom: 12px; }
.viewer-heading h2 { font-size: 20px; line-height: 1.4; margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.viewer-tools { display: flex; gap: 8px; flex-shrink: 0; }
.viewer-tools [data-tooltip]::after { top: calc(100% + 6px); bottom: auto; left: auto; right: 0; transform: none; }
.viewer-stage { display: grid; grid-template-columns: 46px minmax(0, 1fr) 46px; align-items: center; gap: 16px; min-height: 0; }
.viewer-media { min-height: 0; min-width: 0; width: 100%; height: 100%; display: grid; place-items: center; }
.viewer-media img, .viewer-media video { display: block; width: 100%; height: 100%; min-height: 0; max-height: 100%; object-fit: contain; }
.viewer-media img { border-radius: 16px; }
.viewer-media .media-failure { position: absolute; padding: 20px; text-align: center; background: var(--forest); border-radius: 4px; }
.viewer-arrow { background: rgb(230 237 238 / .08); border-color: rgb(230 237 238 / .2); }
.viewer-arrow[data-tooltip]::after { bottom: calc(100% + 8px); left: 0; transform: none; }
#viewer-next[data-tooltip]::after { left: auto; right: 0; }
.viewer-footer { min-height: 48px; padding-top: 12px; text-align: center; }
.viewer-footer p { margin: 0 auto; max-width: 65ch; line-height: 1.5; font-size: 15px; overflow-wrap: anywhere; }

@keyframes fug-float { 0%, 100% { transform: translateY(5px) rotate(-.5deg); } 50% { transform: translateY(-6px) rotate(.5deg); } }
@keyframes money-drift { from { transform: translateY(5px) rotate(-1deg); } to { transform: translateY(-7px) rotate(1deg); } }
html[data-motion="paused"] .fug, html[data-motion="paused"] .money { animation-play-state: paused; }

@media (hover: hover) and (pointer: fine) {
  .icon-button:not(:disabled):hover { background: rgb(230 237 238 / .15); border-color: rgb(230 237 238 / .4); }
  .photo-open:hover { transform: translateY(-2px); }
  .photo-open:active { transform: translateY(1px); }
  [data-tooltip]:hover::after { opacity: 1; }
}

@container (max-width: 580px) {
  h1 { font-size: 60px; }
  .mantra { font-size: 27px; }
}
@container (max-width: 440px) {
  h1 { font-size: 44px; }
  .mantra { font-size: 23px; }
}
@media (min-width: 761px) and (max-height: 700px) {
  .shrine-heading { padding-top: 24px; }
  h1 { font-size: 60px; }
  .shrine-footer { padding-bottom: 16px; }
  .mantra { font-size: 26px; margin-bottom: 12px; }
  .contract { margin-top: 10px; }
}
@media (max-width: 1100px) and (min-width: 761px) {
  .gallery-heading { padding: 22px 18px 17px; gap: 12px; }
  .gallery-heading h2 { font-size: 22px; }
  .photo-wall { gap: 20px 12px; padding: 0 18px; }
}
@media (max-width: 760px) {
  .experience { grid-template-columns: minmax(0, 1fr); grid-template-rows: 42% minmax(0, 1fr); }
  .shrine { grid-template-rows: auto minmax(0, 1fr) auto; }
  .shrine-heading { padding: max(12px, env(safe-area-inset-top)) 16px 0; }
  h1 { font-size: 48px; line-height: 1.05; }
  .altar { margin: -2px 18% -4px; }
  .foreground { height: 85%; object-fit: fill; }
  .valley { object-position: 46% 64%; }
  .money-depth { inset: 16% 9% 14%; }
  .shrine-footer { padding: 0 16px 10px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 5px 10px; text-align: left; align-items: center; }
  .mantra { margin: 0; font-size: 16px; line-height: 1.4; }
  .mantra br { display: none; }
  .shrine-actions { gap: 5px; grid-column: 2; grid-row: 1; }
  .socials { gap: 2px; }
  .social-icon { width: 37px; min-height: 48px; gap: 5px; font-size: 10px; }
  .social-icon img { width: 18px; height: 18px; }
  .contract { grid-column: 1 / -1; grid-row: 2; justify-self: start; justify-content: flex-start; width: 100%; margin: 0; font-size: 11px; }
  .motion-button { width: 44px; height: 44px; flex-basis: 44px; }
  .utterance { top: 0; font-size: 13px; padding: 6px 10px; }
  .gallery { scroll-padding-top: 12px; }
  .gallery-heading { padding: 14px 16px 18px; }
  .gallery-heading h2 { font-size: 20px; }
  .photo-wall { gap: 22px 14px; padding: 0 16px; }
  .photo-surface, .photo-open { border-radius: 16px; }
  .photo-label { font-size: 12px; min-height: 33px; }
  .viewer-sheet { padding-right: 12px; padding-left: 12px; }
  .viewer-heading h2 { font-size: 17px; }
  .viewer-stage { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) 46px; gap: 12px; }
  .viewer-media { grid-column: 1 / -1; grid-row: 1; }
  .viewer-arrow { grid-row: 2; }
  #viewer-previous { justify-self: end; }
  #viewer-next { justify-self: start; }
  .viewer-footer { min-height: 44px; }
}
@media (max-width: 360px) {
  h1 { font-size: 34px; }
  .mantra { font-size: 14px; }
  .social-icon { width: 29px; }
  .gallery-heading { gap: 5px; }
  .gallery-heading h2 { font-size: 17px; }
}
@media (max-width: 760px) and (max-height: 650px) {
  .shrine-heading { padding-top: 8px; }
  h1 { font-size: 32px; }
  .shrine-footer { padding-bottom: 7px; }
  .mantra { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0ms !important; scroll-behavior: auto !important; }
  .depth-layer { transform: none !important; will-change: auto; }
  .pressable:not(:disabled):active { transform: none; background-color: rgb(157 178 184 / .25); }
}
