    :root {
      --bg-color-start: #121212;
      --bg-color-mid: #1e1e1e;
      --bg-color-end: #000420;
      --text-color: #f0f0f0;
      --button-color: rgba(0, 31, 63, 0.8);
      --button-hover-color: rgba(17, 80, 151, 0.9);
      --font-professional: 'Montserrat', sans-serif;
      --highlight-glow: rgba(0, 162, 255, 0.582);
    }

    html, body, h1, h2, h3, h4, h5, h6, p, a, button, input, textarea {
      -webkit-font-smoothing: antialiased;
      -moz-osx-font-smoothing: grayscale;
      text-rendering: optimizeLegibility;
    }

    * { margin: 0; padding: 0; box-sizing: border-box; }

    body {
      font-family: var(--font-professional);
      color: var(--text-color);
      overflow-x: hidden;
      min-height: 100vh;
      background: linear-gradient(135deg, var(--bg-color-start), var(--bg-color-mid), var(--bg-color-end));
      background-size: 300% 300%;
      animation: gradientShift 20s ease infinite;
    }

    @keyframes gradientShift {
      0% { background-position: 0% 50%; }
      50% { background-position: 100% 50%; }
      100% { background-position: 0% 50%; }
    }

    #bgCanvas { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -1; }

    .container { width: 90%; max-width: 1200px; margin: auto; text-align: center; padding: 100px 0; position: relative; }

    /* Dark shimmer text effect */
    .shimmer-text {
      font-size: 2.5rem;
      font-weight: 800;
      color: rgba(0,0,0,0.95);
      text-shadow: 1px 1px 2px rgba(0,0,10,0.95);
      background: linear-gradient(
        120deg,
        rgba(0,0,0,0) 0%,
        rgba(50,50,50,0.4) 40%,
        rgba(0,0,0,0) 80%
      );
      background-repeat: no-repeat;
      background-size: 200% 100%;
      -webkit-background-clip: text;
      background-clip: text;
      animation: darkShimmer 3s infinite;
    }

    @keyframes darkShimmer {
      0% { background-position: -200% 0; }
      100% { background-position: 200% 0; }
    }

    .title-wrapper {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 0.5rem;
      margin-bottom: 15px;
      transform: translateY(40px); /* moved lower */
    }

    h2 { font-size: 2rem; font-weight: 500; margin-bottom: 20px; }
    p { font-size: 1rem; font-weight: 400; margin-bottom: 30px; }

    .btn {
      padding: 10px 25px;
      background: var(--button-color);
      color: #fff;
      border: none;
      border-radius: 30px;
      cursor: pointer;
      transition: transform .3s, background .3s, box-shadow .3s;
      font-weight: 500;
      backdrop-filter: blur(5px);
    }
    .btn:hover { background: var(--button-hover-color); transform: scale(1.09); box-shadow: 0 0 15px rgba(0,31,63,0.7); }

    @media (max-width: 600px) {
      h1 { font-size: 2rem; }
      p, h2 { font-size: 0.9rem; }
    }

    .fade-in { opacity: 0; transform: translateY(20px); animation: fadeInUp 1s forwards; }
    .fade-in.delay-1 { animation-delay: .5s; }
    .fade-in.delay-2 { animation-delay: 1s; }
    @keyframes fadeInUp { to { opacity: 0.9; transform: translateY(0); } }

    /* Readability glass card */
    .glass-card {
      margin: 0 auto;
      max-width: 900px;
      padding: 22px 26px;
      border-radius: 16px;
      background: rgba(0, 0, 0, 0.35);
      box-shadow: 0 18px 28px rgba(0, 0, 0, 0.35);
      border: 1px solid rgba(255, 255, 255, 0.08);
      backdrop-filter: blur(45px);
      -webkit-backdrop-filter: blur(45px);
    }
    .glass-card h2 {
      font-weight: 800;
      font-size: 1.5rem;
      margin-bottom: 12px;
      text-shadow: none;
    }
    .glass-card p {
      line-height: 1.6;
      font-size: 1.05rem;
      text-align: left;
      margin-bottom: 18px;
      text-shadow: none;
    }
    .glass-card a { text-decoration: underline; }

/* ================= blog additions (appended after the original page CSS) ================= */

a { color: #00aaff; }
a:focus-visible { outline: 2px solid #00aaff; outline-offset: 3px; border-radius: 4px; }

/* top navigation */
.site-nav {
  position: relative; z-index: 2;
  display: flex; justify-content: center; align-items: center; flex-wrap: wrap;
  gap: 8px 26px; padding: 22px 16px 0;
  font-size: 0.95rem; letter-spacing: .02em;
}
.site-nav a {
  color: var(--text-color); text-decoration: none; opacity: .75;
  padding: 6px 2px; border-bottom: 1px solid transparent;
  transition: opacity .25s, border-color .25s;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { opacity: 1; border-bottom-color: var(--highlight-glow); }
.site-nav .brand { font-weight: 700; opacity: 1; letter-spacing: .04em; }

/* section heading on the home page */
.container.tight { padding: 10px 0 40px; }
.section-title { font-size: 1.5rem; font-weight: 800; margin-bottom: 6px; text-align: left; max-width: 900px; margin-left: auto; margin-right: auto; }
.section-sub { text-align: left; max-width: 900px; margin: 0 auto 22px; opacity: .8; font-size: 1rem; line-height: 1.55; }

/* post cards (home + /posts/) */
.post-card {
  display: block; text-align: left; text-decoration: none; color: var(--text-color);
  margin: 0 auto 16px; max-width: 900px; padding: 20px 26px;
  border-radius: 16px; background: rgba(0,0,0,.35);
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 18px 28px rgba(0,0,0,.35);
  backdrop-filter: blur(45px); -webkit-backdrop-filter: blur(45px);
  transition: transform .3s, border-color .3s, box-shadow .3s;
}
.post-card:hover { transform: translateY(-3px); border-color: rgba(0,170,255,.55); box-shadow: 0 0 22px rgba(0,162,255,.25), 0 18px 28px rgba(0,0,0,.35); }
.post-card h3 { font-size: 1.25rem; line-height: 1.3; font-weight: 700; margin: 8px 0 8px; }
.post-card p { font-size: .98rem; line-height: 1.55; margin: 0 0 10px; opacity: .85; text-align: left; }
.post-card .more { color: #00aaff; font-weight: 500; font-size: .95rem; }
.post-meta { font-size: .82rem; opacity: .75; display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; }
.tag {
  display: inline-block; padding: 2px 10px; border-radius: 20px; font-size: .75rem; font-weight: 600;
  letter-spacing: .04em; text-transform: uppercase;
  background: rgba(0,162,255,.16); border: 1px solid rgba(0,162,255,.4); color: #7fd0ff;
}

/* generic page wrapper for posts / method / posts index */
.wrap { width: 90%; max-width: 780px; margin: 0 auto; padding: 36px 0 90px; position: relative; text-align: left; }
.wrap.wide { max-width: 900px; }

/* article card */
.glass-card.article { max-width: 780px; text-align: left; padding: 30px 36px; }
.glass-card.article .meta { font-size: .85rem; opacity: .8; margin: 0 0 14px; display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; line-height: 1.4; }
.glass-card.article h1 { font-size: 2.05rem; line-height: 1.2; font-weight: 800; margin: 0 0 20px; letter-spacing: -.01em; }
.glass-card.article h2 { font-size: 1.35rem; font-weight: 700; margin: 34px 0 12px; text-align: left; }
.glass-card.article p { font-size: 1.05rem; line-height: 1.72; margin-bottom: 18px; }
.glass-card.article ul, .glass-card.article ol { margin: 0 0 20px 1.3em; line-height: 1.7; font-size: 1.03rem; text-align: left; }
.glass-card.article li { margin-bottom: 8px; }
.glass-card.article li p { margin-bottom: 8px; }
.glass-card.article strong { font-weight: 700; }
.glass-card.article blockquote { margin: 0 0 20px; padding: 6px 0 6px 18px; border-left: 3px solid rgba(0,162,255,.55); opacity: .92; font-style: italic; }
.glass-card.article blockquote p { margin-bottom: 8px; }
.glass-card.article .tldr { margin: 0 0 8px; padding: 14px 20px 2px; border-left: 3px solid #00aaff; background: rgba(0,170,255,.08); border-radius: 0 10px 10px 0; }
.glass-card.article .tldr p { font-size: 1.05rem; }
.glass-card.article .fine { margin-top: 10px; padding: 14px 20px 4px; border: 1px solid rgba(255,255,255,.1); border-radius: 10px; background: rgba(255,255,255,.03); }
.glass-card.article .fine h2 { margin-top: 6px; }
.glass-card.article .small { font-size: .88rem; opacity: .75; line-height: 1.6; }
.glass-card.article .sources { font-size: .92rem; word-break: break-word; }
.glass-card.article hr { border: 0; border-top: 1px solid rgba(255,255,255,.12); margin: 30px 0 20px; }

/* tables */
.table-scroll { overflow-x: auto; margin: 0 0 22px; -webkit-overflow-scrolling: touch; }
.glass-card.article table { border-collapse: collapse; width: 100%; font-size: .95rem; }
.glass-card.article th, .glass-card.article td { text-align: left; padding: 8px 12px; border-bottom: 1px solid rgba(255,255,255,.12); vertical-align: top; }
.glass-card.article th { font-weight: 700; opacity: .9; border-bottom-color: rgba(0,162,255,.5); }

/* phones */
@media (max-width: 600px) {
  .glass-card.article { padding: 22px 18px; }
  .glass-card.article h1 { font-size: 1.55rem; }
  .glass-card.article p, .glass-card.article ul, .glass-card.article ol { font-size: 1rem; }
  .glass-card.article h2 { font-size: 1.2rem; }
  .post-card { padding: 18px; }
  .post-card h3 { font-size: 1.12rem; }
  .post-card p { font-size: .95rem; }
  .section-title { font-size: 1.25rem; }
  .container.tight { padding-bottom: 20px; }
}

/* respect reduced-motion for the CSS text animations (WebGL background unchanged) */
@media (prefers-reduced-motion: reduce) {
  .shimmer-text { animation: none; }
  .fade-in { animation: none; opacity: .92; transform: none; }
  .post-card, .post-card:hover { transition: none; transform: none; }
}

/* ================= giant cute mushroom (home page) ================= */
.mushroom-wrap { position: relative; z-index: 1; display: flex; justify-content: center; margin: -20px auto -40px; pointer-events: none; }
.mushroom { width: clamp(290px, 50vw, 580px); height: auto; overflow: visible; pointer-events: none; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; }
.mushroom .hit { pointer-events: auto; cursor: pointer; }

/* every animated part scales/rotates around its own box */
.mushroom .hop, .mushroom .breath, .mushroom .squish, .mushroom .cap, .mushroom .sprout, .mushroom .spot,
.mushroom .cheek, .mushroom .eye, .mushroom .twinkle, .mushroom .shadow, .mushroom .mini, .mushroom .mini-sway,
.mushroom .arm, .mushroom .wing, .mushroom .heart, .mushroom .bubble { transform-box: fill-box; }

.mushroom .hop    { transform-origin: 50% 100%; }
.mushroom .breath { transform-origin: 50% 100%; animation: mBreath 3.4s ease-in-out infinite; }
.mushroom .squish { transform-origin: 50% 100%; }
.mushroom .cap    { transform-origin: 50% 100%; animation: mSway 4s ease-in-out infinite; }
.mushroom .sprout { transform-origin: 50% 100%; animation: mSprout 2.6s ease-in-out infinite; }
.mushroom .spot   { transform-origin: 50% 50%; animation: mSpot 2.8s ease-in-out infinite; }
.mushroom .spot:nth-of-type(2n) { animation-delay: .7s; }
.mushroom .spot:nth-of-type(3n) { animation-delay: 1.5s; }
.mushroom .cheek  { transform-origin: 50% 50%; animation: mCheek 2.6s ease-in-out infinite; }
.mushroom .eye    { transform-origin: 50% 50%; animation: mBlink 5.2s infinite; }
.mushroom .eye + .eye { animation-delay: 0s; }
.mushroom .shadow { transform-origin: 50% 50%; }
.mushroom .twinkle { transform-origin: 50% 50%; animation: mTwinkle 2.6s ease-in-out infinite; }
.mushroom .twinkle.t2 { animation-delay: .9s; }
.mushroom .twinkle.t3 { animation-delay: 1.7s; }

/* arms */
.mushroom .arm-l { transform-origin: 100% 0%; animation: mArmL 3s ease-in-out infinite; }
.mushroom .arm-r { transform-origin: 0% 0%;   animation: mArmR 3s ease-in-out infinite; animation-delay: -1.4s; }
.mushroom.do-wave .arm-r { animation: mWave 1.9s ease-in-out; }

/* faces */
.mushroom .eyes-h, .mushroom .mouth-o { display: none; }
.mushroom:is(.happy, .hover) .eyes-h, .mushroom:is(.happy, .hover) .mouth-o { display: inline; }
.mushroom:is(.happy, .hover) .eyes-n, .mushroom:is(.happy, .hover) .mouth-n { display: none; }
.mushroom:is(.happy, .hover) .cheek { animation: none; transform: scale(1.35); }

/* hop + shadow */
.mushroom.do-hop .hop { animation: mHop 1s cubic-bezier(.3, 0, .4, 1); }
.mushroom.do-hop .shadow { animation: mShadowHop 1s cubic-bezier(.3, 0, .4, 1); }

/* poke */
.mushroom.boing .squish { animation: mBoing .85s cubic-bezier(.3, 1.4, .5, 1); }
.mushroom.boing .cap { animation: mCapPop .85s cubic-bezier(.3, 1.5, .5, 1); }
.mushroom.party .squish { animation: mWiggle .22s linear infinite; }
.mushroom.party .cap { animation: mSway .3s ease-in-out infinite; }

/* speech bubble */
.mushroom .bubble { opacity: 0; transform: scale(.55); transform-origin: 8% 100%; transition: opacity .25s, transform .4s cubic-bezier(.3, 1.7, .5, 1); pointer-events: none; }
.mushroom .bubble.show { opacity: 1; transform: scale(1); }

/* hearts spawned by script */
.mushroom .heart { transform-origin: 50% 50%; animation: mHeart 1.8s ease-out forwards; }

/* spores */
.mushroom .spore { opacity: 0; animation: mSpore var(--t, 5.5s) ease-in-out infinite; animation-delay: var(--d, 0s); }

/* baby mushrooms */
.mushroom .mini { transform-origin: 50% 100%; animation: mMiniPop .9s cubic-bezier(.3, 1.6, .5, 1) both; animation-delay: var(--d, .7s); }
.mushroom .mini-sway { transform-origin: 50% 100%; animation: mMiniSway var(--s, 3s) ease-in-out infinite; }

/* butterfly */
.mushroom .bfly { animation: mButterfly 17s ease-in-out infinite; }
.mushroom .wing { animation: mFlap .34s ease-in-out infinite alternate; }
.mushroom .wl { transform-origin: 100% 50%; }
.mushroom .wr { transform-origin: 0% 50%; }

@keyframes mBreath { 0%,100% { transform: scale(1, 1); } 50% { transform: scale(1.015, 1.03); } }
@keyframes mSway { 0%,100% { transform: rotate(-1.8deg); } 50% { transform: rotate(1.8deg); } }
@keyframes mSprout { 0%,100% { transform: rotate(-7deg); } 50% { transform: rotate(9deg); } }
@keyframes mSpot { 0%,100% { transform: scale(1); } 50% { transform: scale(1.14); } }
@keyframes mCheek { 0%,100% { transform: scale(1); opacity: .8; } 50% { transform: scale(1.18); opacity: 1; } }
@keyframes mBlink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.08); } }
@keyframes mTwinkle { 0%,100% { opacity: .2; transform: scale(.6) rotate(0); } 50% { opacity: 1; transform: scale(1.2) rotate(20deg); } }
@keyframes mArmL { 0%,100% { transform: rotate(-4deg); } 50% { transform: rotate(7deg); } }
@keyframes mArmR { 0%,100% { transform: rotate(4deg); } 50% { transform: rotate(-7deg); } }
@keyframes mWave { 0% { transform: rotate(0); } 12% { transform: rotate(-115deg); } 25% { transform: rotate(-140deg); } 38% { transform: rotate(-108deg); } 50% { transform: rotate(-140deg); } 62% { transform: rotate(-108deg); } 75% { transform: rotate(-140deg); } 88% { transform: rotate(-115deg); } 100% { transform: rotate(0); } }
@keyframes mHop {
  0% { transform: translateY(0) scale(1, 1); }
  14% { transform: translateY(0) scale(1.1, .86); }
  38% { transform: translateY(-85px) scale(.93, 1.12); }
  58% { transform: translateY(-85px) scale(.96, 1.07); }
  80% { transform: translateY(0) scale(1.12, .84); }
  90% { transform: translateY(0) scale(.97, 1.05); }
  100% { transform: translateY(0) scale(1, 1); }
}
@keyframes mShadowHop { 0%,100% { transform: scale(1); opacity: 1; } 38%,58% { transform: scale(.55); opacity: .5; } 80% { transform: scale(1.15); } }
@keyframes mBoing { 0% { transform: scale(1, 1); } 18% { transform: scale(1.28, .72); } 40% { transform: scale(.82, 1.24); } 62% { transform: scale(1.1, .92); } 82% { transform: scale(.97, 1.04); } 100% { transform: scale(1, 1); } }
@keyframes mCapPop { 0% { transform: translateY(0) rotate(0); } 25% { transform: translateY(8px) rotate(-3deg); } 45% { transform: translateY(-22px) rotate(5deg); } 70% { transform: translateY(2px) rotate(-3deg); } 100% { transform: translateY(0) rotate(0); } }
@keyframes mWiggle { 0%,100% { transform: rotate(-4deg) scale(1.03); } 50% { transform: rotate(4deg) scale(.97, 1.04); } }
@keyframes mHeart { 0% { opacity: 0; transform: translate(0, 0) scale(.3) rotate(0); } 15% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--dx, 0px), -110px) scale(1.25) rotate(var(--rot, 0deg)); } }
@keyframes mSpore { 0% { opacity: 0; transform: translate(0, 0); } 20% { opacity: .95; } 100% { opacity: 0; transform: translate(var(--dx, 0px), -115px); } }
@keyframes mMiniPop { 0% { transform: scale(0); } 100% { transform: scale(1); } }
@keyframes mMiniSway { 0%,100% { transform: rotate(-6deg); } 50% { transform: rotate(6deg); } }
@keyframes mFlap { 0% { transform: scaleX(1); } 100% { transform: scaleX(.22); } }
@keyframes mButterfly {
  0% { transform: translate(-30px, 175px); } 14% { transform: translate(35px, 75px); } 28% { transform: translate(115px, -8px); }
  42% { transform: translate(255px, 5px); } 56% { transform: translate(335px, 105px); } 70% { transform: translate(300px, 225px); }
  86% { transform: translate(70px, 262px); } 100% { transform: translate(-30px, 175px); }
}

@media (max-width: 600px) { .mushroom-wrap { margin: -30px auto -25px; } }

@media (prefers-reduced-motion: reduce) {
  .mushroom, .mushroom * { animation: none !important; transition: none !important; }
  .mushroom .spore { opacity: 0; }
}

/* ================= Shroom Clicker game ================= */
.game-wrap { position: relative; z-index: 2; width: 90%; max-width: 600px; margin: 0 auto; }
.game-wrap + .container { padding-top: 50px; }

.game {
  position: relative; text-align: left; padding: 16px 18px 14px; border-radius: 16px;
  background: rgba(0,0,0,.4); border: 1px solid rgba(255,255,255,.1);
  box-shadow: 0 18px 28px rgba(0,0,0,.35); backdrop-filter: blur(45px); -webkit-backdrop-filter: blur(45px);
  user-select: none; -webkit-user-select: none; touch-action: manipulation;
}
.game.frenzy { border-color: rgba(255,210,63,.8); box-shadow: 0 0 28px rgba(255,200,60,.45), 0 18px 28px rgba(0,0,0,.35); }
.game button { font-family: inherit; }

.g-banner {
  margin: -4px 0 10px; padding: 6px 12px; text-align: center; font-weight: 800; letter-spacing: .08em; font-size: .85rem; color: #2a1a22;
  background: linear-gradient(90deg, #ffd23f, #ffb347, #ffd23f); background-size: 200% 100%; animation: gShimmer 1s linear infinite; border-radius: 10px;
}
@keyframes gShimmer { to { background-position: -200% 0; } }

.g-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; }
.g-score b { display: block; font-size: 2.3rem; line-height: 1; font-weight: 800; font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, #fff3b0, #ffb347); -webkit-background-clip: text; background-clip: text; color: transparent; }
.g-score small { opacity: .7; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; }
.g-side { text-align: right; display: flex; flex-direction: column; gap: 4px; }
.g-cps { font-size: .95rem; opacity: .9; font-variant-numeric: tabular-nums; }
.g-cps b { font-weight: 700; color: #bfe6ff; }
.g-stage { font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #7fd0ff; }

.g-combo { position: relative; margin: 12px 0 12px; height: 22px; border-radius: 12px; background: rgba(255,255,255,.08); overflow: hidden; }
.g-combo-bar { position: absolute; inset: 0 auto 0 0; width: 0; background: linear-gradient(90deg, #ff6f91, #ffd36e); transition: width .08s linear; }
.g-combo span { position: relative; z-index: 1; display: block; text-align: center; font-size: .75rem; font-weight: 700; line-height: 22px; letter-spacing: .08em; text-transform: uppercase; text-shadow: 0 1px 3px rgba(0,0,0,.6); }
.g-combo.hot { animation: gPulse .4s ease-in-out infinite alternate; }
@keyframes gPulse { to { box-shadow: 0 0 14px rgba(255,150,100,.7); } }

.g-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.g-btn {
  padding: 9px 20px; border: 0; border-radius: 30px; cursor: pointer; color: #fff; font-weight: 600; font-size: .9rem;
  background: var(--button-color); transition: transform .2s, background .2s, box-shadow .2s;
}
.g-btn:hover { background: var(--button-hover-color); transform: scale(1.05); }
.g-btn.g-small { margin-left: auto; padding: 6px 14px; font-size: .75rem; opacity: .8; }
.g-btn.can { animation: gCan 1.1s ease-in-out infinite alternate; }
@keyframes gCan { to { box-shadow: 0 0 16px 3px rgba(255,210,63,.65); background: rgba(40,90,170,.95); } }
#g-asc { background: linear-gradient(90deg, #7b4bd6, #d65bb0); font-weight: 700; }

.g-shop { margin-top: 12px; padding-top: 10px; border-top: 1px solid rgba(255,255,255,.1); }
.g-tabs { display: flex; gap: 6px; margin-bottom: 10px; }
.g-tabs button { flex: 1; padding: 7px 6px; border: 0; border-radius: 10px; cursor: pointer; color: #fff; background: rgba(255,255,255,.07); font-weight: 600; font-size: .8rem; }
.g-tabs button.on { background: rgba(0,162,255,.3); }
.g-tabs i { font-style: normal; opacity: .7; }
.g-list { max-height: 330px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; padding-right: 2px; }
.g-list[hidden], .g-banner[hidden], .g-btn[hidden] { display: none; }
.g-item { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,.05); border: 1px solid transparent; }
.g-item[hidden] { display: none; }
.g-item.can { border-color: rgba(255,210,63,.55); background: rgba(255,210,63,.08); }
.g-info b { display: block; font-size: .92rem; }
.g-info span { font-size: .78rem; opacity: .7; }
.g-own { font-style: normal; display: inline-block; min-width: 1.6em; padding: 0 6px; margin-left: 4px; border-radius: 10px; background: rgba(0,162,255,.25); font-size: .75rem; text-align: center; }
.g-buy { min-width: 74px; padding: 8px 12px; border: 0; border-radius: 20px; cursor: pointer; font-weight: 700; font-size: .85rem; color: #fff; background: rgba(255,255,255,.12); font-variant-numeric: tabular-nums; }
.g-item.can .g-buy { background: linear-gradient(180deg, #ffd36e, #f0a73a); color: #2a1a22; }
.g-item.can .g-buy:hover { transform: scale(1.06); }
.g-tr { opacity: .45; } .g-tr.got { opacity: 1; border-color: rgba(120,220,160,.4); }
.g-lock { font-size: .72rem; opacity: .8; }
.g-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; font-size: .72rem; opacity: .7; }
.g-foot button { background: none; border: 0; color: #9ad4ff; cursor: pointer; text-decoration: underline; font-size: .72rem; }

.g-toasts { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 20; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; width: min(92vw, 420px); }
.g-toast { padding: 9px 16px; border-radius: 22px; font-size: .85rem; font-weight: 600; text-align: center; color: #fff; background: rgba(10,20,45,.92); border: 1px solid rgba(0,170,255,.5); box-shadow: 0 6px 20px rgba(0,0,0,.4); animation: gToast .35s cubic-bezier(.3,1.5,.5,1); }
.g-toast.out { opacity: 0; transition: opacity .5s; }
@keyframes gToast { from { transform: translateY(14px) scale(.9); opacity: 0; } }

/* floating numbers + golden spores live inside the mushroom wrapper */
.mushroom-wrap .pop { position: absolute; z-index: 5; pointer-events: none; font-weight: 800; font-size: 1.25rem; text-shadow: 0 2px 6px rgba(0,0,0,.6); animation: gPop .95s ease-out forwards; }
.mushroom-wrap .pop.big { font-size: 1.8rem; }
@keyframes gPop { 0% { transform: translate(-50%, 0) scale(.6); opacity: 0; } 15% { opacity: 1; transform: translate(-50%, -8px) scale(1.15); } 100% { transform: translate(-50%, -78px) scale(1); opacity: 0; } }
.mushroom-wrap .golden {
  position: absolute; z-index: 6; width: 64px; height: 64px; margin: -32px 0 0 -32px; border: 0; border-radius: 50%; cursor: pointer; pointer-events: auto;
  font-size: 1.9rem; color: #fff; background: radial-gradient(circle at 35% 30%, #fff8c9, #ffd23f 55%, #f09a1b);
  box-shadow: 0 0 26px 9px rgba(255,200,60,.65); animation: gGoldIn .5s cubic-bezier(.3,1.7,.5,1) both, gGoldFloat 2.2s ease-in-out .5s infinite;
  touch-action: manipulation;
}
.mushroom-wrap .golden.leave { opacity: 0; transform: scale(.4); transition: opacity .5s, transform .5s; animation: none; }
@keyframes gGoldIn { from { transform: scale(0) rotate(-90deg); } }
@keyframes gGoldFloat { 0%,100% { transform: translateY(0) rotate(-6deg); } 50% { transform: translateY(-12px) rotate(6deg); } }

/* mushroom evolution + frenzy looks */
.mushroom.rainbow .capfill { animation: mRainbow 6s linear infinite; }
.mushroom.frenzy .capfill { animation: mRainbow 1.1s linear infinite; }
@keyframes mRainbow { from { filter: hue-rotate(0deg); } to { filter: hue-rotate(360deg); } }
.mushroom.evolve .squish { animation: mEvolve 1.6s cubic-bezier(.3, 1.5, .5, 1); }
@keyframes mEvolve { 0% { transform: scale(1); } 15% { transform: scale(.8, 1.2) rotate(-6deg); } 35% { transform: scale(1.35) rotate(6deg); } 55% { transform: scale(.9, 1.12) rotate(-3deg); } 100% { transform: scale(1) rotate(0); } }
.mushroom { touch-action: manipulation; }
/* no box/outline on the mushroom when clicked or tapped; keyboard focus shows as a soft glow under it instead */
.mushroom, .mushroom:focus, .mushroom:focus-visible, .mushroom *:focus, .mushroom *:focus-visible { outline: none; }
.mushroom:focus-visible .shadow { fill: rgba(0, 170, 255, .65); }

@media (max-width: 600px) {
  .g-score b { font-size: 1.9rem; }
  .g-btn { padding: 8px 16px; }
  .g-toasts { bottom: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .game *, .mushroom-wrap .golden, .mushroom-wrap .pop, .g-toast { animation: none !important; }
}

/* ================= strategy layer + forms UI ================= */
.game [hidden] { display: none !important; }
.g-adv { margin: 8px 0 0; font-size: .8rem; line-height: 1.35; opacity: .85; min-height: 1.1em; }
.g-adv b { color: #ffe9a3; font-weight: 700; }
.g-adv .ok { color: #7dffb2; font-weight: 700; }
.g-link { background: none; border: 0; padding: 0 2px; color: #9ad4ff; cursor: pointer; text-decoration: underline; font-size: inherit; }
.g-bars { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 10px 0 12px; }
.g-bars .g-combo { margin: 0; }
.g-risk { position: relative; height: 22px; border-radius: 12px; background: rgba(255,255,255,.08); overflow: hidden; }
.g-risk-fill { position: absolute; inset: 0 auto 0 0; width: 0; transition: width .4s, background .4s; }
.g-risk span { position: relative; z-index: 1; display: block; text-align: center; font-size: .72rem; font-weight: 700; line-height: 22px; letter-spacing: .06em; text-transform: uppercase; text-shadow: 0 1px 3px rgba(0,0,0,.7); white-space: nowrap; }
.g-banner.audit { background: linear-gradient(90deg, #5cc4ff, #9b6bff, #5cc4ff); background-size: 200% 100%; color: #fff; }

.g-inc { margin: 0 0 12px; padding: 12px 14px; border-radius: 12px; background: rgba(255,80,80,.12); border: 1px solid rgba(255,110,110,.55); animation: gIncIn .35s cubic-bezier(.3,1.5,.5,1); }
.g-inc.tempt { background: rgba(255,210,63,.1); border-color: rgba(255,210,63,.55); }
@keyframes gIncIn { from { transform: scale(.94); opacity: 0; } }
.g-inc-h { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: .95rem; }
.g-inc-h span { font-size: .8rem; opacity: .8; font-variant-numeric: tabular-nums; }
.g-inc-d { margin: 4px 0 8px; font-size: .88rem; line-height: 1.4; opacity: .92; }
.g-inc-tip { margin: -2px 0 8px; padding: 6px 10px; border-radius: 8px; background: rgba(0,170,255,.14); font-size: .78rem; line-height: 1.35; }
.g-inc-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.g-inc-btns button { padding: 9px 10px; border: 0; border-radius: 12px; cursor: pointer; color: #fff; background: rgba(255,255,255,.12); font-weight: 700; font-size: .88rem; text-align: left; transition: background .2s, transform .15s; }
.g-inc-btns button:hover { background: rgba(255,255,255,.22); transform: translateY(-1px); }
.g-inc-btns small { display: block; margin-top: 2px; font-weight: 500; font-size: .72rem; line-height: 1.3; opacity: .78; }
.g-inc-link { display: block; margin-top: 8px; font-size: .72rem; color: #9ad4ff; }

.g-note { padding: 8px 10px; font-size: .78rem; line-height: 1.4; opacity: .8; }
.g-pick { display: none; margin-left: 6px; padding: 1px 7px; border-radius: 10px; font-style: normal; font-size: .62rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #2a1a22; background: linear-gradient(90deg, #7dffb2, #5cc4ff); vertical-align: middle; }
.g-item.is-pick { border-color: rgba(125,255,178,.6); }
.g-item.is-pick .g-pick { display: inline-block; }
.g-item.locked { opacity: .55; }
.g-item.locked .g-buy { background: rgba(255,255,255,.08); font-size: .72rem; }
.g-fork { flex-wrap: wrap; }
.g-fork-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: 100%; margin-top: 6px; }
.g-opt { padding: 9px 10px; border: 1px solid rgba(255,210,63,.45); border-radius: 12px; cursor: pointer; color: #fff; text-align: left; background: rgba(255,210,63,.08); transition: background .2s, transform .15s; }
.g-opt:hover { background: rgba(255,210,63,.2); transform: translateY(-1px); }
.g-opt b { display: block; font-size: .88rem; } .g-opt small { display: block; margin-top: 2px; font-size: .72rem; line-height: 1.3; opacity: .8; }
.g-form { opacity: .6; } .g-form.got { opacity: 1; } .g-form.worn { border-color: rgba(125,255,178,.6); background: rgba(125,255,178,.07); }
.g-dot { flex: none; width: 22px; height: 22px; border-radius: 50% 50% 40% 40%; box-shadow: inset 0 -3px 0 rgba(0,0,0,.25); }
.g-form .g-wear { min-width: 64px; }
.g-form .g-wear:disabled { opacity: .6; cursor: default; }
.g-tabs { flex-wrap: wrap; }
.g-tabs button { flex: 1 1 28%; }

@media (max-width: 600px) {
  .g-inc-btns, .g-fork-opts { grid-template-columns: 1fr; }
  .g-bars { gap: 6px; }
  .g-risk span, .g-combo span { font-size: .66rem; letter-spacing: .03em; }
  .g-adv { font-size: .76rem; }
}

/* fixes: inline bold inside descriptions, even form rows */
.g-info span b { display: inline; font-size: inherit; }
.g-form { justify-content: flex-start; gap: 10px; }
.g-form .g-info { flex: 1; min-width: 0; }

/* ================= mushroom forms: part visibility, palettes and animations ================= */
.mushroom [data-part] { display: none; }
.mushroom .spot { fill: var(--spot, #fff7ea); }
.mushroom .sparks { fill: var(--spark, #bfe6ff); }
.mushroom.nospots .spot, .mushroom.nosprout .sprout, .mushroom.nomouth .mouth-n { display: none; }
.mushroom.holdr .arm-r, .mushroom.holdl .arm-l { animation: none; }

/* smooth era backgrounds (registered so the page gradient can fade between forms) */
@property --bg-color-start { syntax: '<color>'; inherits: true; initial-value: #121212; }
@property --bg-color-mid { syntax: '<color>'; inherits: true; initial-value: #1e1e1e; }
@property --bg-color-end { syntax: '<color>'; inherits: true; initial-value: #000420; }
html { transition: --bg-color-start 2.5s, --bg-color-mid 2.5s, --bg-color-end 2.5s; }

.mushroom .formscale { transform: scale(var(--fs, 1)); transform-box: fill-box; transform-origin: 50% 100%; transition: transform 1.2s cubic-bezier(.3, 1.4, .5, 1); }

/* generic part motion */
.mushroom .spinsl, .mushroom .third, .mushroom .glowpulse, .mushroom .burst, .mushroom .ghostw, .mushroom .pw, .mushroom .held, .mushroom .heldl,
.mushroom .fl, .mushroom .hand, .mushroom .inf, .mushroom .hg, .mushroom .clouds, .mushroom .neural { transform-box: fill-box; }
.mushroom .spinsl { transform-origin: 50% 50%; animation: fSpin 40s linear infinite; }
.mushroom [data-part="runes"].spinsl { animation-duration: 60s; animation-direction: reverse; }
.mushroom [data-part="tesseract"].spinsl { animation-duration: 28s; }
.mushroom [data-part="orbit"].spinsl { animation-duration: 24s; }
.mushroom [data-part="rays"].spinsl { animation-duration: 70s; }
.mushroom .tw { animation: mTwinkle 2.8s ease-in-out infinite; animation-delay: var(--d, 0s); transform-box: fill-box; transform-origin: center; }
.mushroom .glowpulse { transform-origin: 50% 50%; animation: fPulse 2.2s ease-in-out infinite; }
.mushroom .third { transform-origin: 50% 50%; animation: fPulse 3s ease-in-out infinite; }
.mushroom .burst { transform-origin: 50% 50%; animation: fBurst 2.6s ease-in-out infinite; }
.mushroom .ghostw { transform-origin: 50% 50%; animation: fGhost 5s ease-in-out infinite; }
.mushroom .gw2 { animation-delay: -1.2s; } .mushroom .gw3 { animation-delay: -2.4s; } .mushroom .gw4 { animation-delay: -3.6s; }
.mushroom .pwl { transform-origin: 100% 50%; animation: fFlapL 2.4s ease-in-out infinite; }
.mushroom .pwr { transform-origin: 0% 50%; animation: fFlapR 2.4s ease-in-out infinite; }
.mushroom .held, .mushroom .heldl { transform-origin: 50% 100%; animation: fHeld 3.4s ease-in-out infinite; }
.mushroom .fl { transform-origin: 50% 100%; animation: fFlame .5s ease-in-out infinite alternate; }
.mushroom .fl.f2 { animation-delay: -.2s; } .mushroom .fl.f3 { animation-delay: -.35s; }
.mushroom .hand.h1 { transform-origin: 50% 100%; animation: fSpin 12s linear infinite; }
.mushroom .hand.h2 { transform-origin: 50% 100%; animation: fSpin 3s linear infinite; }
.mushroom .scan { animation: fScan 1.6s ease-in-out infinite alternate; }
.mushroom .blink { animation: fBlink 1.2s steps(2, jump-none) infinite; }
.mushroom .trace { stroke-dasharray: 14 10; animation: fDash 1.4s linear infinite; }
.mushroom .inf { transform-origin: 50% 50%; animation: fDashSlow 3s linear infinite; }
.mushroom .bolt { opacity: 0; animation: fBolt 2.4s steps(1) infinite; }
.mushroom .bolt.b2 { animation-delay: .8s; } .mushroom .bolt.b3 { animation-delay: 1.5s; }
.mushroom .ash { animation: fFall 6s linear infinite; animation-delay: var(--d, 0s); opacity: 0; }
.mushroom .cd { animation: fCode 2.2s linear infinite; animation-delay: var(--d, 0s); opacity: 0; }
.mushroom .neural { transform-origin: 50% 50%; animation: fPulse 3.2s ease-in-out infinite; }
.mushroom .clouds { animation: fCloud 7s ease-in-out infinite; }
.mushroom .sand { animation: fSand 3s ease-in-out infinite; transform-box: fill-box; transform-origin: 50% 100%; }

@keyframes fSpin { to { transform: rotate(360deg); } }
@keyframes fPulse { 0%,100% { opacity: .75; transform: scale(1); } 50% { opacity: 1; transform: scale(1.06); } }
@keyframes fBurst { 0%,100% { transform: scale(.92); opacity: .85; } 50% { transform: scale(1.08); opacity: 1; } }
@keyframes fGhost { 0%,100% { transform: translate(0, 0); } 50% { transform: translate(6px, -12px); } }
@keyframes fFlapL { 0%,100% { transform: rotate(0deg) scaleX(1); } 50% { transform: rotate(-9deg) scaleX(.9); } }
@keyframes fFlapR { 0%,100% { transform: rotate(0deg) scaleX(1); } 50% { transform: rotate(9deg) scaleX(.9); } }
@keyframes fHeld { 0%,100% { transform: rotate(-2deg); } 50% { transform: rotate(3deg); } }
@keyframes fFlame { 0% { transform: scaleY(.88) skewX(-4deg); } 100% { transform: scaleY(1.14) skewX(5deg); } }
@keyframes fScan { from { transform: translateY(-2px); } to { transform: translateY(12px); } }
@keyframes fBlink { 50% { opacity: .2; } }
@keyframes fDash { to { stroke-dashoffset: -48; } }
@keyframes fDashSlow { to { stroke-dashoffset: -108; } }
@keyframes fBolt { 0%, 8% { opacity: 1; } 12%, 18% { opacity: 0; } 20%, 24% { opacity: .9; } 28%, 100% { opacity: 0; } }
@keyframes fFall { 0% { transform: translateY(0); opacity: 0; } 15% { opacity: .9; } 100% { transform: translateY(150px); opacity: 0; } }
@keyframes fCode { 0% { transform: translateY(0); opacity: 0; } 20% { opacity: .9; } 100% { transform: translateY(130px); opacity: 0; } }
@keyframes fCloud { 0%,100% { transform: translateX(0); } 50% { transform: translateX(10px); } }
@keyframes fSand { 0% { transform: scaleY(1); } 80%,100% { transform: scaleY(.1); } }

/* big evolution moment */
.evo-banner { position: absolute; z-index: 8; left: 50%; top: 4%; width: min(92vw, 520px); transform: translateX(-50%); text-align: center; pointer-events: none; animation: fBanner 4.2s ease-out forwards; }
.evo-banner small { display: block; font-size: .8rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: #ffd36e; text-shadow: 0 2px 10px rgba(0,0,0,.8); }
.evo-banner b { display: block; margin: 2px 0 4px; font-size: clamp(1.7rem, 6vw, 2.8rem); font-weight: 800; line-height: 1.1; color: #fff; text-shadow: 0 0 22px rgba(255,200,90,.9), 0 3px 10px rgba(0,0,0,.8); }
.evo-banner span { display: block; font-size: .95rem; font-style: italic; opacity: .92; text-shadow: 0 2px 8px rgba(0,0,0,.9); }
@keyframes fBanner { 0% { opacity: 0; transform: translateX(-50%) scale(.6); } 12% { opacity: 1; transform: translateX(-50%) scale(1.08); } 20% { transform: translateX(-50%) scale(1); } 80% { opacity: 1; } 100% { opacity: 0; transform: translateX(-50%) translateY(-24px) scale(1); } }
.evo-flash { position: fixed; inset: 0; z-index: 30; pointer-events: none; background: radial-gradient(circle at 50% 38%, rgba(255,255,255,.95), rgba(255,235,160,.55) 38%, rgba(255,255,255,0) 70%); animation: fFlash 1.1s ease-out forwards; }
@keyframes fFlash { 0% { opacity: 0; } 12% { opacity: 1; } 100% { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  .mushroom .formscale { transition: none; }
  .evo-flash { display: none; }
}
