/* ============================================================
   Zubbly Studio website – design
   Colours are at the top: change them here and the whole site changes.
   ============================================================ */

:root {
  --ink: #2a2050;
  --ink-2: #5b5480;
  --bg: #fbf8ff;
  --card: #ffffff;
  --purple: #7b4dff;
  --purple-2: #a585ff;
  --pink: #ff5f9e;
  --yellow: #ffc83a;
  --green: #2fc46b;
  --line: #ece6fb;
  --radius: 22px;
  --shadow: 0 14px 34px rgba(60, 30, 140, .10), 0 3px 8px rgba(60, 30, 140, .06);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; color: var(--ink); background: var(--bg);
  font: 17px/1.65 "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--purple); }
h1, h2, h3, .brand-name { font-family: "Lilita One", "Nunito", sans-serif; font-weight: 400; letter-spacing: .3px; line-height: 1.15; }
.wrap { width: min(1120px, 100% - 40px); margin: 0 auto; }

/* top bar */
.top { position: sticky; top: 0; z-index: 10; background: rgba(251, 248, 255, .86); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-logo { width: 36px; height: 36px; border-radius: 10px; box-shadow: 0 3px 8px rgba(123, 77, 255, .3); }
.brand-name { font-size: 24px; white-space: nowrap; }
.brand-name span { color: var(--purple); }
.brand-name.small { font-size: 22px; }
.nav { display: flex; gap: 6px; }
.nav a { text-decoration: none; color: var(--ink-2); font-weight: 800; padding: 8px 14px; border-radius: 12px; }
.nav a:hover, .nav a.on { background: #efe8ff; color: var(--purple); }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 9px; padding: 13px 24px; border-radius: 16px; font-weight: 800; text-decoration: none; transition: transform .15s, box-shadow .15s; }
.btn:hover { transform: translateY(-2px); }
.btn-main { background: var(--purple); color: #fff; box-shadow: 0 5px 0 #5a2fd6, 0 12px 20px rgba(123, 77, 255, .3); }
.btn-soft { background: #efe8ff; color: var(--purple); }
.btn-play { background: var(--ink); color: #fff; box-shadow: 0 5px 0 #140f2b; margin-top: 6px; }

/* hero */
.hero { padding: 56px 0 40px; overflow: hidden; }
.hero-in { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
.pill { display: inline-block; background: #fff1c9; color: #a66b00; font-weight: 800; font-size: 14px; padding: 6px 14px; border-radius: 99px; }
.hero h1 { font-size: clamp(40px, 6vw, 66px); margin: 16px 0 14px; }
.hero h1 em { font-style: normal; color: var(--pink); }
.hero p { color: var(--ink-2); font-size: 19px; max-width: 520px; }
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }

/* games */
.games { padding: 50px 0 70px; }
.games h2, .contact h2 { font-size: 40px; margin: 0; }
.lead { color: var(--ink-2); margin: 6px 0 28px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.card { position: relative; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; }
.card-icon { width: 100%; aspect-ratio: 1.6; object-fit: cover; }
.card-body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { font-size: 28px; margin: 0; }
.card-tag { color: var(--purple); font-weight: 800; margin-bottom: 8px; }
.card-body p { color: var(--ink-2); margin: 0 0 14px; flex: 1; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.chips span { background: #f3effd; color: var(--ink-2); font-size: 13px; font-weight: 800; padding: 4px 10px; border-radius: 99px; }
.badge { position: absolute; top: 14px; left: 14px; background: var(--green); color: #fff; font-weight: 800; font-size: 13px; padding: 4px 12px; border-radius: 99px; box-shadow: 0 3px 0 #1e8e4b; }
.card-soon { border: 2px dashed #d9cdfb; box-shadow: none; background: transparent; }
.soon-art { aspect-ratio: 1.6; display: grid; place-items: center; font: 90px "Lilita One"; color: #d4c6fb; background: repeating-linear-gradient(45deg, #f6f1ff 0 14px, #fbf8ff 14px 28px); }

/* contact */
.contact { padding: 0 0 70px; }
.contact-in { background: linear-gradient(120deg, #7b4dff, #b25cff 60%, #ff5f9e); color: #fff; border-radius: 28px; padding: 36px 40px; display: flex; gap: 24px; align-items: center; justify-content: space-between; flex-wrap: wrap; box-shadow: var(--shadow); }
.contact-in p { margin: 6px 0 0; opacity: .92; }
.contact .btn-main { background: #fff; color: var(--purple); box-shadow: 0 5px 0 #d8ccff; }

/* documents */
.doc { padding: 46px 0 70px; }
.doc-in { max-width: 820px; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 44px 52px; }
.doc h1 { font-size: 46px; margin: 0; }
.doc h2 { font-size: 26px; margin: 34px 0 8px; }
.doc h3 { font-family: "Nunito", sans-serif; font-weight: 800; font-size: 18px; margin: 18px 0 4px; }
.doc p, .doc li { color: #3d3663; }
.doc ul { padding-left: 22px; }
.doc li { margin: 6px 0; }
.doc code { background: #f3effd; padding: 2px 7px; border-radius: 6px; font-size: 15px; }
.updated { color: var(--ink-2); font-weight: 800; margin-top: 4px; }
.note { background: #f3effd; border-left: 5px solid var(--purple); border-radius: 12px; padding: 16px 20px; margin: 20px 0; }

/* ---------- home: studio logo animation ---------- */
.stage { position: relative; width: min(460px, 100%); aspect-ratio: 1; margin-left: auto; }
.orbit { position: absolute; border-radius: 50%; border: 3px dashed #dccffd; animation: spin 40s linear infinite; }
.o1 { inset: 4%; }
.o2 { inset: 20%; border-color: #ffd3e6; animation-duration: 26s; animation-direction: reverse; }
@keyframes spin { to { transform: rotate(360deg); } }

.tile-wrap { position: absolute; left: 50%; top: 50%; width: 42%; aspect-ratio: 1; transform: translate(-50%, -54%); }
.logo-tile {
  width: 100%; height: 100%; border-radius: 28%;
  background: linear-gradient(160deg, #9a6bff, #6534e6);
  box-shadow: 0 12px 0 #4f23c4, 0 26px 40px rgba(90, 40, 220, .35), inset 0 6px 0 rgba(255,255,255,.25);
  display: grid; place-items: center; position: relative;
  transform-origin: 50% 100%;
  animation: tileBounce 2.6s cubic-bezier(.3,.7,.4,1) infinite;
}
.logo-tile .z { font: clamp(90px, 16vw, 150px)/1 "Lilita One", sans-serif; color: #fff; text-shadow: 0 8px 0 rgba(40, 10, 110, .35); transform: translateY(4%); }
.logo-tile .dot { position: absolute; top: 13%; right: 13%; width: 17%; aspect-ratio: 1; border-radius: 50%; background: #ffc83a; box-shadow: 0 0 0 0 rgba(255,200,58,.6); animation: ping 2.6s ease-out infinite; }
.tile-shadow { position: absolute; left: 50%; top: 77%; width: 34%; height: 5%; border-radius: 50%; background: rgba(60, 30, 140, .22); transform: translateX(-50%); filter: blur(4px); animation: shadowPulse 2.6s cubic-bezier(.3,.7,.4,1) infinite; }

@keyframes tileBounce {
  0%, 100% { transform: translateY(0) scale(1, 1) rotate(0); }
  30%      { transform: translateY(-16%) scale(.96, 1.04) rotate(-4deg); }
  50%      { transform: translateY(-18%) scale(1, 1) rotate(3deg); }
  72%      { transform: translateY(0) scale(1.08, .9) rotate(0); }
  84%      { transform: translateY(0) scale(.97, 1.03); }
}
@keyframes shadowPulse { 0%, 72%, 100% { transform: translateX(-50%) scale(1); opacity: 1; } 50% { transform: translateX(-50%) scale(.7); opacity: .5; } }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(255,200,58,.7); } 70%, 100% { box-shadow: 0 0 0 18px rgba(255,200,58,0); } }

/* floating things around the logo */
.fl { position: absolute; animation: float 4s ease-in-out infinite; filter: drop-shadow(0 8px 10px rgba(60,30,140,.18)); }
.fl svg { width: 100%; height: auto; display: block; }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(var(--r, 0deg)); } 50% { transform: translateY(-14px) rotate(calc(var(--r, 0deg) * -1)); } }
.f-car   { width: 26%; left: 2%;  top: 62%; --r: -6deg; animation-duration: 3.6s; }
.f-pad   { width: 24%; right: 0;  top: 10%; --r: 8deg;  animation-duration: 4.4s; animation-delay: -1s; }
.f-coin  { width: 12%; left: 12%; top: 14%; --r: 12deg; animation-duration: 3.2s; animation-delay: -.6s; }
.f-piece { width: 14%; right: 6%; top: 66%; --r: -10deg; animation-duration: 4.8s; animation-delay: -2s; }
.f-star  { width: 11%; left: 44%; top: 2%;  --r: 15deg; animation-duration: 3s; animation-delay: -1.4s; }

.rider { width: 11%; aspect-ratio: 1; border-radius: 50% 50% 46% 46%; box-shadow: inset 0 -6px 0 rgba(0,0,0,.12); }
.rider::before, .rider::after { content: ""; position: absolute; top: 34%; width: 20%; height: 26%; border-radius: 50%; background: #2a2050; box-shadow: inset 2px 2px 0 1px #fff; }
.rider::before { left: 24%; }
.rider::after  { right: 24%; }
.rider i { position: absolute; left: 36%; bottom: 20%; width: 28%; height: 13%; border-radius: 0 0 20px 20px; background: #2a2050; }
.r-pink  { background: #ff7fb0; left: 30%; top: 84%; --r: -8deg; animation-duration: 3.4s; animation-delay: -.3s; }
.r-blue  { background: #5aa2ff; left: 0;   top: 36%; --r: 10deg; animation-duration: 3.9s; animation-delay: -1.7s; }
.r-green { background: #4fd889; right: 28%; top: 86%; --r: 6deg; animation-duration: 3.1s; animation-delay: -2.4s; }

.spark { position: absolute; width: 14px; height: 14px; background: #ffc83a; clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); animation: twinkle 2s ease-in-out infinite; }
.s1 { left: 30%; top: 12%; }
.s2 { right: 22%; top: 34%; background: #ff5f9e; animation-delay: -.5s; }
.s3 { left: 22%; top: 50%; background: #7b4dff; animation-delay: -1s; width: 10px; height: 10px; }
.s4 { right: 14%; top: 54%; animation-delay: -1.5s; width: 10px; height: 10px; }
@keyframes twinkle { 0%, 100% { transform: scale(.3) rotate(0); opacity: .3; } 50% { transform: scale(1.2) rotate(45deg); opacity: 1; } }

/* people who turn animations off in their phone settings get a still picture */
@media (prefers-reduced-motion: reduce) {
  .stage *, .stage *::before, .stage *::after { animation: none !important; }
}

/* footer */
.foot { background: var(--ink); color: #cfc8ee; padding: 40px 0 24px; }
.foot-in { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.foot .brand-name { color: #fff; }
.foot .brand-name span { color: var(--purple-2); }
.foot p { margin: 6px 0 0; }
.foot-links { display: flex; flex-direction: column; gap: 6px; }
.foot-links a { color: #fff; text-decoration: none; font-weight: 600; }
.foot-links a:hover { text-decoration: underline; }
.copy { margin-top: 26px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.12); font-size: 14px; opacity: .7; }

@media (max-width: 820px) {
  .hero-in { grid-template-columns: 1fr; text-align: center; }
  .hero p { margin: 0 auto; }
  .hero-btns { justify-content: center; }
  .stage { margin: 10px auto 0; width: min(380px, 100%); }
  .doc-in { padding: 30px 22px; }
  .doc h1 { font-size: 36px; }
  .nav a { padding: 8px 7px; font-size: 15px; }
  .top .brand-name { font-size: 20px; }
  .brand-logo { width: 30px; height: 30px; }
  .contact-in { padding: 28px 24px; }
}

/* small phones: hide the "Games" menu link so the logo and menu don't overlap */
@media (max-width: 480px) {
  .nav { gap: 0; }
  .nav a:first-child { display: none; }
}

/* hero: second line under the main text */
.hero-sub { margin-top: 12px !important; font-size: 17px !important; }
.hero-sub strong { color: var(--purple); }

/* hero: game types we make */
.genres { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.g { display: inline-flex; align-items: center; gap: 6px; padding: 9px 16px; border-radius: 14px; font-weight: 800; font-size: 15px; background: #fff; box-shadow: 0 3px 0 var(--line), 0 6px 14px rgba(60, 30, 140, .08); }
.g-puzzle { color: #1e9e55; }
.g-board  { color: #e0447f; }
.g-casual { color: var(--purple); }
.g-family { color: #c27a00; }
@media (max-width: 820px) { .genres { justify-content: center; } }

/* ---------- page loader (home page) ---------- */
#loader {
  position: fixed; inset: 0; z-index: 100; background: var(--bg);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px;
  transition: opacity .5s ease, visibility .5s;
  animation: loaderSafety 0s 4s forwards;   /* hides by itself after 4s even if something is slow */
}
body.loaded #loader { opacity: 0; visibility: hidden; }
@keyframes loaderSafety { to { opacity: 0; visibility: hidden; } }
.loader-tile {
  width: 110px; height: 110px; border-radius: 32px; position: relative;
  background: linear-gradient(160deg, #9a6bff, #6534e6);
  box-shadow: 0 8px 0 #4f23c4, 0 18px 30px rgba(90, 40, 220, .35);
  display: grid; place-items: center; transform-origin: 50% 100%;
  animation: tileBounce 1s cubic-bezier(.3,.7,.4,1) infinite;
}
.loader-tile span { font: 76px/1 "Lilita One", sans-serif; color: #fff; transform: translateY(4%); }
.loader-tile i { position: absolute; top: 14px; right: 14px; width: 18px; height: 18px; border-radius: 50%; background: var(--yellow); }
.loader-dots { display: flex; gap: 8px; }
.loader-dots b { width: 11px; height: 11px; border-radius: 50%; background: var(--purple); animation: dot 1s ease-in-out infinite; }
.loader-dots b:nth-child(2) { background: var(--pink); animation-delay: .15s; }
.loader-dots b:nth-child(3) { background: var(--yellow); animation-delay: .3s; }
@keyframes dot { 0%, 100% { transform: translateY(0); opacity: .4; } 50% { transform: translateY(-10px); opacity: 1; } }

/* ---------- content slides in after the loader ---------- */
.hero-text > * , .stage, .games h2, .games .lead, .card { opacity: 0; }
body.loaded .hero-text > *, body.loaded .stage, body.loaded .games h2, body.loaded .games .lead, body.loaded .card {
  animation: rise .7s cubic-bezier(.2,.8,.2,1) forwards;
}
body.loaded .hero-text > *:nth-child(1) { animation-delay: .15s; }
body.loaded .hero-text > *:nth-child(2) { animation-delay: .25s; }
body.loaded .hero-text > *:nth-child(3) { animation-delay: .35s; }
body.loaded .hero-text > *:nth-child(4) { animation-delay: .45s; }
body.loaded .hero-text > *:nth-child(5) { animation-delay: .55s; }
body.loaded .stage { animation-name: popIn; animation-duration: .9s; animation-delay: .3s; }
body.loaded .games h2, body.loaded .games .lead { animation-delay: .6s; }
body.loaded .card { animation-delay: .7s; }
body.loaded .card + .card { animation-delay: .8s; }
@keyframes rise  { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes popIn { 0% { opacity: 0; transform: scale(.6) rotate(-8deg); } 70% { opacity: 1; transform: scale(1.05) rotate(2deg); } 100% { opacity: 1; transform: none; } }

/* privacy / terms: games table and per-game boxes */
.table-wrap { overflow-x: auto; margin: 12px 0 8px; }
.games-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.games-table th { text-align: left; background: #f3effd; color: var(--ink); padding: 10px 14px; font-weight: 800; }
.games-table th:first-child { border-radius: 10px 0 0 10px; }
.games-table th:last-child { border-radius: 0 10px 10px 0; }
.games-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.games-table a { text-decoration: none; }
.game-box { border: 2px solid var(--line); border-radius: 16px; padding: 16px 20px; margin: 14px 0; scroll-margin-top: 90px; }
.game-box-head { display: flex; align-items: center; gap: 12px; }
.game-box-head img { width: 44px; height: 44px; border-radius: 12px; object-fit: cover; }
.game-box-head strong { display: block; font-size: 18px; }
.game-box-head span { font-size: 13px; color: var(--ink-2); }
.game-box ul { margin: 10px 0 0; }

/* people who turn animations off in their phone settings: no loader, no slide-in */
@media (prefers-reduced-motion: reduce) {
  #loader { display: none; }
  .hero-text > *, .stage, .games h2, .games .lead, .card { opacity: 1 !important; animation: none !important; }
}

/* ---------- home: game card (whole card is a link to the game page) ---------- */
a.card.game { text-decoration: none; color: inherit; transition: transform .2s, box-shadow .2s; }
a.card.game:hover { transform: translateY(-6px); box-shadow: 0 22px 44px rgba(60, 30, 140, .16), 0 4px 10px rgba(60, 30, 140, .08); }
.game-banner { position: relative; aspect-ratio: 16 / 9; display: grid; place-items: center; overflow: hidden;
  background: linear-gradient(140deg, #8e63ff, #ff6fa8) center / cover no-repeat; }
.game-banner::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(42,32,80,.15), rgba(42,32,80,.55)); }
.game-logo { position: relative; width: 78%; max-height: 82%; object-fit: contain; filter: drop-shadow(0 10px 14px rgba(20,10,60,.45)); transition: transform .3s; }
a.card.game:hover .game-logo { transform: scale(1.06) rotate(-2deg); }
.game-head { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; }
.app-icon { width: 64px; height: 64px; border-radius: 16px; box-shadow: 0 4px 10px rgba(60,30,140,.2); margin-top: -46px; border: 3px solid #fff; background: #fff; position: relative; }
.game-head h3 { font-size: 26px; margin: 0; }
.game-head .card-tag { margin: 0; }
.card-more { align-self: flex-start; }

/* ---------- game page (game.php) ---------- */
.gp-hero { position: relative; min-height: 340px; display: flex; align-items: center;
  background: linear-gradient(140deg, #8e63ff, #ff6fa8); background-image: var(--banner, none); background-size: cover; background-position: center; }
.gp-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(42,32,80,.25), rgba(42,32,80,.65)); }
.gp-hero .wrap { position: relative; display: flex; justify-content: center; padding: 50px 0 70px; }
.gp-back { position: absolute; top: 20px; left: 0; color: #fff; font-weight: 800; text-decoration: none; background: rgba(255,255,255,.18); padding: 8px 14px; border-radius: 12px; backdrop-filter: blur(6px); }
.gp-back:hover { background: rgba(255,255,255,.3); }
.gp-logo { width: min(560px, 86%); filter: drop-shadow(0 14px 20px rgba(20,10,60,.5)); animation: popIn .8s cubic-bezier(.2,.8,.2,1); }
.gp-head { background: #fff; border-bottom: 1px solid var(--line); }
.gp-head-in { display: flex; align-items: flex-end; gap: 24px; flex-wrap: wrap; padding-bottom: 24px; }
.gp-icon { width: 120px; height: 120px; border-radius: 28px; border: 5px solid #fff; margin-top: -60px; box-shadow: 0 10px 24px rgba(60,30,140,.25); background: #fff; }
.gp-title { flex: 1; min-width: 220px; padding-top: 14px; }
.gp-title h1 { font-size: 44px; margin: 0; }
.gp-title .chips { margin: 10px 0 0; }
.gp-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.gp-main, .gp-side { min-width: 0; }
.gp-body { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 30px; padding: 36px 0 70px; align-items: start; }
.gp-sec { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px 32px; margin-bottom: 24px; }
.gp-sec h2 { font-size: 30px; margin: 0 0 12px; }
.gp-sec p { color: #3d3663; margin: 0; }
.gp-shots { display: flex; gap: 14px; overflow-x: auto; padding: 4px 2px 12px; scroll-snap-type: x mandatory; }
.gp-shot { flex: 0 0 auto; width: 180px; aspect-ratio: 9 / 16; padding: 0; border: 0; border-radius: 16px; overflow: hidden; cursor: zoom-in; scroll-snap-align: start; box-shadow: 0 4px 12px rgba(60,30,140,.2); background: #eee; }
.gp-shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s; }
.gp-shot:hover img { transform: scale(1.05); }
.gp-video iframe, .gp-video video { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 16px; background: #000; display: block; }
.gp-steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.gp-steps li { counter-increment: s; display: flex; gap: 14px; align-items: center; color: #3d3663; font-weight: 600; }
.gp-steps li::before { content: counter(s); flex: 0 0 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--purple); color: #fff; font: 20px "Lilita One", sans-serif; box-shadow: 0 3px 0 #5a2fd6; }
.gp-features { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.gp-feature { background: #f7f3ff; border-radius: 16px; padding: 16px 18px; }
.gp-emoji { font-size: 28px; display: block; }
.gp-feature strong { display: block; margin: 6px 0 2px; font-size: 17px; }
.gp-feature p { font-size: 15px; color: var(--ink-2); }
.gp-side { position: sticky; top: 90px; }
.gp-info { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; }
.gp-info h3 { font-size: 24px; margin: 0 0 12px; }
.gp-info dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; margin: 0 0 18px; font-size: 15px; }
.gp-info dt { color: var(--ink-2); font-weight: 600; }
.gp-info dd { margin: 0; font-weight: 800; text-align: right; word-break: break-all; }
.gp-info code { font-size: 12px; background: #f3effd; padding: 2px 6px; border-radius: 6px; }
.gp-side-btn { width: 100%; justify-content: center; }
.gp-links { display: flex; flex-direction: column; gap: 6px; margin-top: 16px; font-weight: 700; font-size: 15px; }
.gp-links a { text-decoration: none; }
.gp-links a:hover { text-decoration: underline; }
@media (max-width: 900px) {
  .gp-body { grid-template-columns: 1fr; }
  .gp-side { position: static; }
  .gp-head-in { justify-content: center; text-align: center; }
  .gp-title .chips { justify-content: center; }
  .gp-actions { justify-content: center; width: 100%; }
  .gp-title h1 { font-size: 36px; }
  .gp-sec { padding: 22px 20px; }
  .gp-hero { min-height: 240px; }
  .gp-hero .wrap { flex-direction: column; align-items: center; padding: 16px 0 60px; }
  .gp-back { position: static; align-self: flex-start; margin-bottom: 14px; }
}

/* ---------- screenshot / video viewer ---------- */
.viewer { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; }
.viewer[hidden] { display: none; }
.viewer-bg { position: absolute; inset: 0; background: rgba(20, 12, 50, .82); backdrop-filter: blur(4px); }
.viewer-box { position: relative; width: min(960px, 94vw); max-height: 94vh; display: flex; flex-direction: column; align-items: center; animation: popIn .35s ease; }
.viewer-top { width: 100%; display: flex; justify-content: space-between; align-items: center; color: #fff; margin-bottom: 10px; }
.viewer-top strong { font: 24px "Lilita One", sans-serif; letter-spacing: .3px; }
.viewer-close { width: 44px; height: 44px; border-radius: 50%; border: 0; background: #fff; color: var(--ink); font-size: 30px; line-height: 1; cursor: pointer; }
.viewer-stage { display: grid; place-items: center; width: 100%; }
.viewer-stage.is-shot img { max-height: 78vh; max-width: 100%; width: auto; border-radius: 22px; box-shadow: 0 20px 50px rgba(0,0,0,.45); }
.viewer-stage.is-video iframe, .viewer-stage.is-video video { width: 100%; aspect-ratio: 16 / 9; max-height: 80vh; border: 0; border-radius: 18px; background: #000; box-shadow: 0 20px 50px rgba(0,0,0,.45); }
.viewer-nav { position: absolute; top: 50%; width: 52px; height: 52px; border-radius: 50%; border: 0; background: #fff; color: var(--purple); font-size: 34px; line-height: 1; cursor: pointer; box-shadow: 0 6px 16px rgba(0,0,0,.3); }
.viewer-nav.prev { left: 0; }
.viewer-nav.next { right: 0; }
.viewer-nav[hidden], .viewer-dots[hidden] { display: none; }
.viewer-dots { display: flex; gap: 8px; margin-top: 14px; }
.viewer-dots button { width: 10px; height: 10px; border-radius: 50%; border: 0; padding: 0; background: rgba(255,255,255,.4); cursor: pointer; }
.viewer-dots button.on { background: #fff; width: 26px; border-radius: 6px; }
@media (max-width: 820px) {
  .viewer-nav { width: 42px; height: 42px; font-size: 28px; }
  .viewer-nav.prev { left: -4px; } .viewer-nav.next { right: -4px; }
}
.badge { z-index: 2; }

/* home: Instagram DM button in the contact box */
.btn-insta { background: #fff; color: #d6249f; box-shadow: 0 5px 0 #f3c6e4, 0 12px 24px rgba(80, 20, 120, .25); font-size: 17px; }
.btn-insta svg { color: #d6249f; }
.btn-insta:hover { background: linear-gradient(45deg, #feda75, #fa7e1e 25%, #d62976 50%, #962fbf 75%, #4f5bd5); color: #fff; box-shadow: 0 5px 0 #7a2a9a, 0 12px 24px rgba(80, 20, 120, .3); }
.btn-insta:hover svg { color: #fff; }