/* Shareholder Hall — dense, moderate motion.
   html.still and .is-away pause everything. */

.hero.is-away *,
.hero.is-away *::before,
.hero.is-away *::after,
.scene.is-away *,
.scene.is-away *::before,
.scene.is-away *::after { animation-play-state: paused !important; }

.coin-3d-stage { animation: coin-precess 8.5s ease-in-out infinite; }
.coin-3d-hero { animation: coin-idle 5.5s ease-in-out infinite; }
.coin-3d-sheen { animation: sheen-sweep 5.8s ease-in-out infinite; }
@keyframes coin-precess {
  0%, 100% { transform: rotateY(-7deg) rotateX(3deg); }
  50% { transform: rotateY(7deg) rotateX(-3deg); }
}
@keyframes coin-idle {
  0%, 100% { transform: rotate(-4deg) translateY(0); }
  50% { transform: rotate(-1deg) translateY(-8px); }
}
@keyframes sheen-sweep {
  0%, 28% { background-position: 120% 0; }
  58%, 100% { background-position: -40% 0; }
}

.gold-wipe {
  position: absolute; inset: 0; z-index: 8;
  pointer-events: none; overflow: hidden;
}
.gold-wipe::before {
  content: "";
  position: absolute; inset: -5%;
  background: linear-gradient(105deg, transparent 0%, rgba(232,197,107,0) 35%, rgba(246,230,179,0.45) 50%, rgba(31,107,66,0.2) 58%, transparent 80%);
  transform: translateX(-140%);
  opacity: 0;
}
.hero.is-enter .gold-wipe::before,
.scene.is-enter .gold-wipe::before { animation: gold-wipe 1.15s ease-out both; }
@keyframes gold-wipe {
  0% { transform: translateX(-140%); opacity: 1; }
  70% { opacity: 0.85; }
  100% { transform: translateX(140%); opacity: 0; }
}
.scene.is-in .scene-copy { animation: copy-in 0.85s ease both; }
@keyframes copy-in {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

.eyebrow { animation: eyebrow-glow 5s ease-in-out infinite; }
h1 .n1 { animation: title-alive 6.5s ease-in-out infinite; }
h1 .n2 { animation: title-alive 6.5s ease-in-out 0.15s infinite; }
@keyframes title-alive {
  0%, 100% { filter: brightness(1); text-shadow: 0 2px 0 #3a2414, 0 12px 28px rgba(0,0,0,0.55); }
  50% { filter: brightness(1.1); text-shadow: 0 2px 0 #3a2414, 0 0 16px rgba(232,197,107,0.3), 0 12px 28px rgba(0,0,0,0.55); }
}
@keyframes eyebrow-glow {
  0%, 100% { color: var(--gold); }
  50% { color: var(--gold-pale); }
}

.prop-buy { animation: wax-pulse 3.8s ease-in-out infinite; }
.prop-buy::after {
  content: "";
  position: absolute; inset: 12%;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 28%, rgba(255,220,200,0.45), transparent 55%);
  animation: wax-gleam 3.8s ease-in-out infinite;
  pointer-events: none;
}
@keyframes wax-pulse {
  0%, 100% { transform: rotate(-7deg) scale(1); filter: brightness(1); }
  50% { transform: rotate(-5deg) scale(1.04); filter: brightness(1.08); }
}
@keyframes wax-gleam {
  0%, 100% { opacity: 0.25; transform: translate(-4%, -4%); }
  50% { opacity: 0.7; transform: translate(6%, 4%); }
}
.prop-buy:hover, .prop-buy:focus-visible {
  animation: none;
  transform: rotate(-4deg) scale(1.07);
  filter: brightness(1.12);
}
.prop-ca { animation: paper-flutter 5.2s ease-in-out infinite; }
@keyframes paper-flutter {
  0%, 100% { transform: rotate(1.5deg) translateY(0); }
  40% { transform: rotate(0.4deg) translateY(-3px); }
  70% { transform: rotate(2.2deg) translateY(1px); }
}
.prop-ca:hover, .prop-ca:focus-within { animation: none; transform: rotate(0deg) translateY(-2px); }
.prop-chart { animation: spy-bob 3.6s ease-in-out infinite; }
.prop-chart .spy-lens { animation: lens-pulse 2.8s ease-in-out infinite; }
@keyframes spy-bob {
  0%, 100% { transform: rotate(-3deg) translateY(0); }
  50% { transform: rotate(-1deg) translateY(-4px); }
}
@keyframes lens-pulse {
  0%, 100% { box-shadow: inset 0 0 0 3px #8a6a28, 0 0 8px rgba(160,220,255,0.4); }
  50% { box-shadow: inset 0 0 0 3px #8a6a28, 0 0 16px 4px rgba(180,230,255,0.7); }
}
.prop-chart:hover, .prop-chart:focus-visible {
  animation: none;
  transform: rotate(0deg) translateY(-2px) scale(1.04);
}
.prop-x { animation: x-tile 4.1s ease-in-out infinite; }
@keyframes x-tile {
  0%, 100% { transform: rotate(8deg) scale(1); }
  50% { transform: rotate(5deg) scale(1.05); filter: brightness(1.1); }
}
.prop-x:hover, .prop-x:focus-visible { animation: none; transform: rotate(4deg) scale(1.08); }
.prop-tg { animation: capsule-bob 3.5s ease-in-out infinite; }
.prop-tg .cap-top { animation: cap-flash 3.5s ease-in-out infinite; }
@keyframes capsule-bob {
  0%, 100% { transform: rotate(4deg) translateY(0); }
  50% { transform: rotate(2deg) translateY(-5px); }
}
@keyframes cap-flash {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.25); }
}
.prop-tg:hover, .prop-tg:focus-visible { animation: none; transform: rotate(0deg) translateY(-3px); }

.unofficial-chip { animation: chip-pulse 3.4s ease-in-out infinite; }
@keyframes chip-pulse {
  0%, 100% { box-shadow: 0 2px 0 var(--wax-deep); filter: brightness(1); }
  50% { box-shadow: 0 2px 0 var(--wax-deep), 0 0 12px rgba(196,43,58,0.45); filter: brightness(1.08); }
}
.dock { animation: dock-sheen 6s linear infinite; }
@keyframes dock-sheen {
  0%, 100% { box-shadow: 0 -8px 24px rgba(0,0,0,0.45), inset 0 1px 0 rgba(201,162,70,0.15); }
  50% { box-shadow: 0 -8px 24px rgba(0,0,0,0.45), inset 0 1px 0 rgba(232,197,107,0.45); }
}
.dock-buy { animation: dock-buy-idle 4.2s ease-in-out infinite; }
@keyframes dock-buy-idle {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.12); }
}

/* Green lamp glows + dust */
.lamp-glow {
  position: absolute;
  width: 120px; height: 90px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(60,154,98,0.45), rgba(232,197,107,0.12) 45%, transparent 70%);
  pointer-events: none;
  z-index: 3;
  animation: lamp-breathe 3.4s ease-in-out infinite;
}
@keyframes lamp-breathe {
  0%, 100% { opacity: 0.55; transform: scale(0.92); }
  50% { opacity: 1; transform: scale(1.12); }
}
.hero-lamps .g1 { left: 6%; top: 52%; }
.hero-lamps .g2 { left: 22%; top: 50%; animation-delay: -0.8s; }
.hero-lamps .g3 { left: 40%; top: 48%; animation-delay: -1.6s; }
.hero-lamps .g4 { left: 58%; top: 46%; animation-delay: -2.2s; width: 90px; }
.desk-lamp { left: 12%; top: 18%; width: 180px; height: 140px; z-index: 3; }
.gallery-lamps .ga1 { left: 8%; top: 28%; }
.gallery-lamps .ga2 { left: 18%; top: 26%; animation-delay: -0.7s; }
.gallery-lamps .ga3 { left: 48%; top: 22%; animation-delay: -1.4s; }
.gallery-lamps .ga4 { right: 6%; top: 16%; left: auto; width: 140px; height: 110px; animation-delay: -2s; }
.dispatch-lamp { left: 10%; top: 28%; width: 160px; height: 120px; z-index: 3; }

.dust-motes { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.dust-motes span {
  position: absolute;
  width: 3px; height: 3px;
  border-radius: 50%;
  background: rgba(246,230,179,0.7);
  animation: mote 7s ease-in-out infinite;
}
.dust-motes span:nth-child(1) { left: 20%; top: 30%; animation-delay: 0s; }
.dust-motes span:nth-child(2) { left: 40%; top: 22%; animation-delay: -1.4s; width: 2px; height: 2px; }
.dust-motes span:nth-child(3) { left: 62%; top: 36%; animation-delay: -2.6s; }
.dust-motes span:nth-child(4) { left: 75%; top: 18%; animation-delay: -3.5s; }
.dust-motes span:nth-child(5) { left: 30%; top: 60%; animation-delay: -4.2s; }
.dust-motes span:nth-child(6) { left: 55%; top: 70%; animation-delay: -5s; width: 2px; height: 2px; }
@keyframes mote {
  0%, 100% { transform: translateY(0) translateX(0); opacity: 0.2; }
  50% { transform: translateY(-28px) translateX(12px); opacity: 0.9; }
}

/* Desk already has pens in the plate. */
.desk-toys .pen { display: none; }

.stamped-sheet.is-on { animation: sheet-drop 0.45s cubic-bezier(.2,1.3,.3,1) both; }
@keyframes sheet-drop {
  from { transform: translateY(-20px) rotate(-6deg); opacity: 0; }
  to { opacity: 1; transform: none; }
}

/* Flying papers */
.flying-papers .s1 { left: 42%; top: 28%; animation: paper-fly 7s ease-in-out infinite; }
.flying-papers .s2 { left: 50%; top: 22%; animation: paper-fly 8s ease-in-out -1.4s infinite; width: 80px; height: 108px; }
.flying-papers .s3 { left: 46%; top: 36%; animation: paper-fly 6.4s ease-in-out -2.8s infinite; width: 70px; height: 96px; }
.flying-papers .s4 { left: 54%; top: 30%; animation: paper-fly 7.6s ease-in-out -3.6s infinite; }
.flying-papers .s5 { left: 48%; top: 18%; animation: paper-fly 9s ease-in-out -5s infinite; width: 76px; }
@keyframes paper-fly {
  0% { transform: translate(0,0) rotate(-8deg); }
  50% { transform: translate(30px, -24px) rotate(12deg); }
  100% { transform: translate(0, 10px) rotate(-4deg); }
}

/* Stairs gears */
.gear-spins { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.gear {
  position: absolute;
  border: 4px solid rgba(201,162,70,0.55);
  border-radius: 50%;
  box-shadow: inset 0 0 0 6px rgba(138,106,40,0.35);
  animation: gear-turn 12s linear infinite;
}
.gear.gr1 { left: 48%; top: 48%; width: 54px; height: 54px; }
.gear.gr2 { left: 44%; top: 56%; width: 36px; height: 36px; animation-direction: reverse; animation-duration: 9s; }
.gear.gr3 { left: 52%; top: 42%; width: 28px; height: 28px; animation-duration: 7s; }
@keyframes gear-turn { to { transform: rotate(360deg); } }

/* Turnstile */
.turnstile .arm { animation: arm-idle 3.6s ease-in-out infinite; }
@keyframes arm-idle {
  0%, 100% { transform: rotate(-12deg); }
  50% { transform: rotate(12deg); }
}
.turnstile.is-spin .arm { animation: arm-spin 0.7s ease-out both; }
@keyframes arm-spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

.blank-badge { animation: badge-idle 4s ease-in-out infinite; }
.blank-badge:nth-child(2) { animation-delay: -1s; }
.blank-badge:nth-child(3) { animation-delay: -2s; }
@keyframes badge-idle {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

/* Gallery */
.banner-frame { animation: frame-glow 5s ease-in-out infinite; }
@keyframes frame-glow {
  0%, 100% { box-shadow: 0 0 0 3px #c9a246, 0 0 0 8px #1a1208, 0 18px 36px rgba(0,0,0,0.5); }
  50% { box-shadow: 0 0 0 3px #f6e6b3, 0 0 0 8px #1a1208, 0 0 24px rgba(232,197,107,0.28), 0 18px 36px rgba(0,0,0,0.5); }
}

/* Supply */
.sun-shaft {
  position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: linear-gradient(180deg, rgba(246,230,179,0.18), transparent 55%);
  animation: shaft-pulse 5s ease-in-out infinite;
  mix-blend-mode: screen;
}
@keyframes shaft-pulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.85; }
}
.supply-coins img { animation: tower-tick 3.6s ease-in-out infinite; }
.supply-plaque { animation: plaque-alive 4.5s ease-in-out infinite; }
@keyframes tower-tick {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-3px); }
}
@keyframes plaque-alive {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.08); }
}
.supply-col.is-rattle .supply-coins { animation: rattle 0.5s ease-in-out; }
@keyframes rattle {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}

/* Vault */
.hit.is-ping { animation: hit-flash 0.45s ease-out; }
@keyframes hit-flash {
  0% { box-shadow: inset 0 0 0 0 rgba(232,197,107,0); }
  40% { box-shadow: inset 0 0 40px 10px rgba(232,197,107,0.35); }
  100% { box-shadow: inset 0 0 0 0 rgba(232,197,107,0); }
}

/* Dispatch */
.disclaimer { animation: disclaimer-alive 6s ease-in-out infinite; }
@keyframes disclaimer-alive {
  0%, 100% { border-left-color: var(--wax); }
  50% { border-left-color: var(--wax-hot); box-shadow: -4px 0 16px rgba(196,43,58,0.2); }
}
.bell-btn { animation: bell-invite 2.8s ease-in-out infinite; }
@keyframes bell-invite {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}
.bell-btn.is-ring { animation: bell-ring 0.5s ease-out; }
@keyframes bell-ring {
  0%, 100% { transform: rotate(0); }
  25% { transform: rotate(-12deg); }
  75% { transform: rotate(12deg); }
}

html.still .eyebrow,
html.still h1 .n1,
html.still h1 .n2,
html.still .scene-copy {
  animation: none !important;
  opacity: 1 !important;
  transform: none !important;
  filter: none !important;
}
