/* Verbatim from docs/reference/mockups-v2/shared/core.css (minus the mockup nav).
   ==========================================================================
   OLYMBO — "Flat Olympus" mockup kit v2
   Flat layered landscapes (Firewatch-style) + chunky sticker UI + divine sass.
   ========================================================================== */

:root {
  /* core ink + paper */
  --ink: #1d1233;          /* outlines, hard shadows, text */
  --ink-2: #2e2150;
  --bone: #fff4dc;         /* panels, card faces */
  --bone-2: #f3e2bd;
  --bone-3: #e2cb9b;

  /* divine accents */
  --gold: #ffc740;
  --gold-d: #d9901a;
  --ember: #ff5a36;
  --ember-d: #c23a22;
  --sea: #1fb5b0;
  --sea-d: #127a80;
  --sky: #5aa9ff;
  --sky-d: #2f6fd1;
  --wine: #8a2f6f;
  --wine-d: #5a1c4a;
  --olive: #9fc03a;
  --olive-d: #5f7d1d;
  --storm: #6d5bd0;

  /* scoring language: Points (cool) × Factor (hot) */
  --points: #27b7ff;
  --points-d: #1273c9;
  --factor: #ff4d3d;
  --factor-d: #b9241c;

  --r-lg: 26px;
  --r-md: 18px;
  --r-sm: 12px;
  --bw: 4px;               /* sticker border */
  --drop: 8px;             /* hard drop shadow */

  /* fonts: lamp.css sets the Lamplight families (Parkinsans; Onest for card ranks); these are fallbacks */
  --f-logo: "Parkinsans", "Segoe UI", system-ui, sans-serif;
  --f-epic: "Parkinsans", "Segoe UI", system-ui, sans-serif;
  --f-chunk: "Parkinsans", "Segoe UI", system-ui, sans-serif;
  --f-body: "Parkinsans", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body {
  margin: 0; height: 100%;
  background: #0b0716;
  overflow: hidden;
  font-family: var(--f-body);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  user-select: none;
}
button { font: inherit; color: inherit; }

/* ---------- fixed 1920×1080 stage, scaled to fit ---------- */
.stage {
  position: fixed; left: 50%; top: 50%;
  width: 1920px; height: 1080px;
  transform-origin: center center;
  overflow: hidden;
  background: #1a1030;
}
.shaker { position: absolute; inset: 0; will-change: transform; }
.layer { position: absolute; inset: 0; }
.scene-svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
#fx { position: absolute; inset: 0; width: 1920px; height: 1080px; pointer-events: none; z-index: 950; }
.flash { position: absolute; inset: 0; pointer-events: none; z-index: 940; opacity: 0; background: #fff; }

/* ---------- buttons: chunky stickers with hard shadow ---------- */
.btn {
  --c: var(--gold); --cd: var(--gold-d); --tc: var(--ink);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  font-family: var(--f-chunk); font-size: 34px; letter-spacing: .5px; line-height: 1;
  color: var(--tc);
  background: var(--c);
  border: var(--bw) solid var(--ink);
  border-radius: var(--r-md);
  padding: 20px 36px 22px;
  box-shadow: inset 0 -7px 0 var(--cd), 0 var(--drop) 0 var(--ink);
  cursor: pointer; overflow: hidden;
  transition: transform .12s cubic-bezier(.3,1.8,.5,1), box-shadow .12s, filter .12s;
  -webkit-tap-highlight-color: transparent;
}
.btn::after { /* shine sweep */
  content: ""; position: absolute; top: -20%; bottom: -20%; width: 40px; left: -80px;
  background: rgba(255,255,255,.55); transform: skewX(-22deg);
  transition: none; pointer-events: none;
}
.btn:hover { transform: translateY(-4px) rotate(-1.2deg) scale(1.03); box-shadow: inset 0 -7px 0 var(--cd), 0 calc(var(--drop) + 4px) 0 var(--ink); }
.btn:hover::after { left: 120%; transition: left .45s ease-out; }
.btn:active { transform: translateY(var(--drop)) scale(.97, .94); box-shadow: inset 0 -3px 0 var(--cd), 0 0 0 var(--ink); transition-duration: .04s; }
.btn:focus-visible { outline: 4px solid #fff; outline-offset: 4px; }
.btn[disabled], .btn.off { filter: grayscale(.8) brightness(.8); cursor: not-allowed; transform: none; }
.btn .sub { font-family: var(--f-body); font-weight: 900; font-size: .5em; opacity: .75; letter-spacing: 1px; text-transform: uppercase; }
.btn-ember { --c: var(--ember); --cd: var(--ember-d); --tc: #fff; }
.btn-sea   { --c: var(--sea);   --cd: var(--sea-d);   --tc: #fff; }
.btn-sky   { --c: var(--sky);   --cd: var(--sky-d);   --tc: #fff; }
.btn-wine  { --c: var(--wine);  --cd: var(--wine-d);  --tc: #fff; }
.btn-bone  { --c: var(--bone);  --cd: var(--bone-3);  --tc: var(--ink); }
.btn-olive { --c: var(--olive); --cd: var(--olive-d); --tc: var(--ink); }
.btn-sm { font-size: 24px; padding: 12px 22px 14px; border-radius: var(--r-sm); --drop: 6px; }
.btn-lg { font-size: 46px; padding: 26px 48px 30px; border-radius: 22px; --drop: 10px; }
.btn .ico { width: 1.1em; height: 1.1em; display: inline-block; }
.btn-txtshadow { text-shadow: 0 3px 0 rgba(0,0,0,.25); }

/* ---------- panels / chips ---------- */
.panel {
  background: var(--bone);
  border: var(--bw) solid var(--ink);
  border-radius: var(--r-lg);
  box-shadow: 0 var(--drop) 0 var(--ink);
}
.chip {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-chunk); font-size: 30px; color: var(--ink);
  background: var(--bone); border: var(--bw) solid var(--ink); border-radius: 999px;
  padding: 6px 20px 6px 8px; box-shadow: 0 6px 0 var(--ink);
}
.chip .ico { width: 44px; height: 44px; }
.chip.dark { background: var(--ink); color: var(--bone); box-shadow: 0 6px 0 rgba(0,0,0,.45); border-color: var(--ink); }
.label {
  font-family: var(--f-epic); font-weight: 900; letter-spacing: 4px; text-transform: uppercase; font-size: 16px;
}

/* Greek key band */
.meander {
  height: 26px;
  background-color: var(--m-bg, var(--ink));
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='26' viewBox='0 0 26 26'%3E%3Cpath d='M0 21.5H21.5V4.5H6V16.5H16.5V9.5H11' fill='none' stroke='%23ffc740' stroke-width='3'/%3E%3Cpath d='M21.5 21.5H26' stroke='%23ffc740' stroke-width='3'/%3E%3C/svg%3E");
  background-size: 26px 26px;
  background-repeat: repeat-x;
}

/* ---------- speech bubbles ---------- */
.bubble {
  --who: var(--gold);
  position: absolute; z-index: 60;
  max-width: 520px;
  background: var(--bone);
  border: var(--bw) solid var(--ink);
  border-radius: 24px;
  box-shadow: 0 8px 0 var(--ink);
  padding: 24px 28px 22px;
  font-family: var(--f-body); font-weight: 800; font-size: 27px; line-height: 1.25;
  transform-origin: var(--tail-x, 20%) 110%;
  opacity: 0; transform: scale(.4) rotate(-6deg);
  pointer-events: none;
}
.bubble.show { animation: bubble-in .42s cubic-bezier(.2,1.8,.4,1) forwards; }
.bubble.hide { animation: bubble-out .2s ease-in forwards; }
.bubble .who {
  position: absolute; top: -22px; left: 22px;
  font-family: var(--f-chunk); font-size: 24px; letter-spacing: 1px; color: var(--ink);
  background: var(--who); border: var(--bw) solid var(--ink); border-radius: 12px; padding: 2px 14px 4px;
  transform: rotate(-3deg);
}
.bubble::after { /* tail */
  content: ""; position: absolute; width: 34px; height: 34px;
  background: var(--bone); border-right: var(--bw) solid var(--ink); border-bottom: var(--bw) solid var(--ink);
  left: var(--tail-x, 20%); bottom: -20px; transform: rotate(45deg) skew(12deg, 12deg);
}
.bubble.tail-up::after { top: -20px; bottom: auto; transform: rotate(225deg) skew(12deg, 12deg); }
.bubble.tail-left::after { left: -20px; top: var(--tail-y, 40%); bottom: auto; transform: rotate(135deg) skew(12deg, 12deg); }
.bubble.tail-right::after { left: auto; right: -20px; top: var(--tail-y, 40%); bottom: auto; transform: rotate(-45deg) skew(12deg, 12deg); }
.bubble .hid { visibility: hidden; }
.bubble em { font-style: normal; color: var(--ember-d); }
.bubble b { font-family: var(--f-chunk); font-weight: 400; letter-spacing: .5px; }

@keyframes bubble-in { 0% { opacity: 0; transform: scale(.4) rotate(-6deg); } 60% { opacity: 1; } 100% { opacity: 1; transform: scale(1) rotate(0); } }
@keyframes bubble-out { to { opacity: 0; transform: scale(.7) translateY(10px); } }

/* ---------- pop numbers ---------- */
.pop {
  --c: #fff;
  position: absolute; z-index: 960; pointer-events: none;
  font-family: var(--f-chunk); font-size: 64px; line-height: 1; white-space: nowrap;
  color: var(--c);
  -webkit-text-stroke: 12px var(--ink); paint-order: stroke fill;
  text-shadow: 0 8px 0 var(--ink);
  transform: translate(-50%, -50%);
  animation: pop-rise 1.1s cubic-bezier(.2,1.6,.4,1) forwards;
}
.pop.big { font-size: 120px; -webkit-text-stroke-width: 18px; text-shadow: 0 12px 0 var(--ink); }
.pop.huge { font-size: 200px; -webkit-text-stroke-width: 26px; text-shadow: 0 16px 0 var(--ink); }
.pop.points { --c: var(--points); }
.pop.factor { --c: var(--factor); }
.pop.gold { --c: var(--gold); }
.pop.slam { animation: pop-slam 1.3s cubic-bezier(.2,1.4,.4,1) forwards; }
@keyframes pop-rise {
  0% { transform: translate(-50%, -30%) scale(.2) rotate(-12deg); opacity: 0; }
  18% { transform: translate(-50%, -60%) scale(1.25) rotate(4deg); opacity: 1; }
  32% { transform: translate(-50%, -62%) scale(1) rotate(0); }
  75% { transform: translate(-50%, -110%) scale(1); opacity: 1; }
  100% { transform: translate(-50%, -150%) scale(.8); opacity: 0; }
}
@keyframes pop-slam {
  0% { transform: translate(-50%, -50%) scale(3) rotate(-8deg); opacity: 0; }
  14% { transform: translate(-50%, -50%) scale(.9) rotate(2deg); opacity: 1; }
  24% { transform: translate(-50%, -50%) scale(1.06) rotate(0); }
  80% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  100% { transform: translate(-50%, -70%) scale(.9); opacity: 0; }
}

/* ---------- utility motion ---------- */
.bump { animation: bump .32s cubic-bezier(.2,2,.4,1); }
@keyframes bump { 0% { transform: scale(1); } 35% { transform: scale(1.28) rotate(-3deg); } 100% { transform: scale(1); } }
.wobble { animation: wobble .5s ease; }
@keyframes wobble { 0%,100% { transform: rotate(0); } 20% { transform: rotate(-7deg); } 40% { transform: rotate(6deg); } 60% { transform: rotate(-4deg); } 80% { transform: rotate(2deg); } }
.nope { animation: nope .4s ease; }
@keyframes nope { 0%,100% { transform: translateX(0); } 20% { transform: translateX(-14px); } 40% { transform: translateX(12px); } 60% { transform: translateX(-8px); } 80% { transform: translateX(4px); } }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes bob-rot { 0%,100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-8px) rotate(2deg); } }
@keyframes flicker { 0%,100% { transform: scale(1, 1); opacity: 1; } 30% { transform: scale(.94, 1.08); } 55% { transform: scale(1.05, .93); opacity: .9; } 80% { transform: scale(.97, 1.04); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse-ring { 0% { transform: scale(.7); opacity: .9; } 100% { transform: scale(1.8); opacity: 0; } }
@keyframes drift-x { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes breathe { 0%,100% { transform: scale(1); } 50% { transform: scale(1.03); } }
@keyframes swing { 0%,100% { transform: rotate(-5deg); } 50% { transform: rotate(5deg); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
