:root{
  --bg:#000000;                   /* deep black holographic */
  --salad: #9efc78;               /* salad green */
  --lime: #ffd86b;                /* warm yellow */
  --violet: #b45cff;              /* violet accent */
  --pink: #ff78c4;                /* pink accent */
  --glass: rgba(255,255,255,0.03);
  --muted: rgba(255,255,255,0.06);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  --radius:14px;
  --neon-glow: 0 6px 30px rgba(158,252,120,0.08), 0 0 40px rgba(255,120,196,0.04);
  --base-font-size: 18px; /* increased base scale for overall content */
}

/* Custom scrollbar — theme-matched, compact and accessible */
:root {
  --scrollbar-track: #000000; /* pure black track */
  --scrollbar-thumb-1: rgba(158,252,120,1); /* neon green core */
  --scrollbar-thumb-2: rgba(255,120,196,0.95); /* neon pink rim */
  --scrollbar-thumb-border: rgba(0,0,0,0.36);
}

/* WebKit (Chrome, Safari, Edge) */
::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}
::-webkit-scrollbar-track {
  background: var(--scrollbar-track);
  border-radius: 999px;
  margin: 6px 0;
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--scrollbar-thumb-1), var(--scrollbar-thumb-2));
  border-radius: 999px;
  border: 3px solid rgba(0,0,0,0.36);
  box-shadow: 0 6px 20px rgba(0,0,0,0.45) inset;
}
::-webkit-scrollbar-thumb:hover {
  filter: brightness(1.06) saturate(1.06);
}

/* Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--scrollbar-thumb-1) var(--scrollbar-track);
}

/* Scoped scrollbar for the main content area (subtle thinner track) */
#main::-webkit-scrollbar { width: 10px; }
#main::-webkit-scrollbar-track { background: transparent; }
#main::-webkit-scrollbar-thumb { border:2px solid rgba(0,0,0,0.28); }

/* Mobile / small screens: slightly thinner scrollbars */
@media (max-width:520px) {
  ::-webkit-scrollbar { width: 8px; height:8px; }
  #main::-webkit-scrollbar { width: 6px; }
}

*{box-sizing:border-box; -webkit-tap-highlight-color: transparent;}
html,body{height:100%; margin:0; background:var(--bg); color:#eafbe6; -webkit-font-smoothing:antialiased; font-size:var(--base-font-size);}

/* Background layers container */
#bg-layer{position:fixed; inset:0; z-index:0; overflow:hidden; pointer-events:none;}
.bg-layer{position:absolute; inset:0; background-position:center bottom; background-size:cover; will-change:transform; opacity:0.85;}
.layer-city{background-image:linear-gradient(180deg, rgba(8,6,12,0.0), rgba(0,0,0,0.55)), url(''); /* leave blank so user can swap art */ filter:contrast(1.05) saturate(1.15) hue-rotate(-10deg); transform:translateZ(0) scale(1.05); mix-blend-mode:screen;}
.layer-forest{background-image:linear-gradient(180deg, rgba(0,0,0,0.0), rgba(0,0,0,0.35)), url(''); filter:brightness(0.98) saturate(1.06); transform:translateZ(0) scale(1.02);}
.layer-fireflies{background-image:radial-gradient(ellipse at 10% 20%, rgba(255,250,200,0.03), transparent 8%), radial-gradient(ellipse at 80% 70%, rgba(150,255,120,0.02), transparent 6%); opacity:1;}

/* canvas layers sit above backgrounds */
.bg-canvas{position:absolute; inset:0; width:100%; height:100%;}

/* ensure app sits above background */
#app{position:relative; z-index:2; height:100%;}

/* Topbar */
#topbar{
  position:relative;
  height:64px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:12px 14px;
  gap:12px;
  backdrop-filter: blur(6px) saturate(1.1);
  background: linear-gradient(90deg, rgba(0,0,0,0.16), rgba(0,0,0,0.32));
  border-bottom: 1px solid rgba(255,255,255,0.02);
}
#logo{display:flex; gap:8px; align-items:center; position:relative; font-family: 'Orbitron', Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial; }
/* brand emblem (neon 3) placed left of the BLOOM wordmark */
#brandLogo{
  width:128px;
  height:128px;
  object-fit:contain;
  margin-right:14px;
  /* intensified neon treatment: stronger multi-channel glow and crisp drop shadow */
  filter: drop-shadow(0 18px 44px rgba(34,255,120,0.28)) saturate(1.08) contrast(1.02);
  border-radius:14px;
  transform:translateZ(0) scale(1.02);
  /* outer neon halo — green core with pink rim for vivid multi-hue neon */
  box-shadow:
    0 18px 60px rgba(34,255,120,0.28),
    0 6px 32px rgba(158,252,120,0.18) inset,
    0 0 42px rgba(158,252,120,0.55),
    0 0 88px rgba(255,120,196,0.18);
  transition: transform .22s ease, box-shadow .28s ease, filter .22s ease;
}
/* emphasize the logo relative to the text: scale a touch on hover for feedback */
#brandLogo:hover{ transform: translateZ(0) scale(1.06); box-shadow: 0 22px 84px rgba(34,255,120,0.36), 0 0 110px rgba(255,120,196,0.22); }
/* eyes in the two O letters */
.pixel.pixel-eyes{position:relative; font-weight:900; display:inline-flex; align-items:center; justify-content:center;}
.pixel.pixel-eyes .eye{
  position:absolute;
  width:6px;
  height:6px;
  background:#07120a;
  border-radius:50%;
  top:10px;
  box-shadow:0 1px 0 rgba(255,255,255,0.03) inset;
  transform-origin:center;
  transition:transform .18s ease, top .18s ease;
}
.pixel.pixel-eyes .eye-left{ left: 38%; }
.pixel.pixel-eyes .eye-right{ right: 38%; }

/* subtle idle blink animation */
@keyframes blink {
  0%, 92%, 100% { height:6px; top:10px; transform:scaleY(1); }
  94% { height:2px; top:12px; transform:scaleY(0.4); }
}
.pixel.pixel-eyes .eye{ animation: blink 3.6s infinite ease-in-out; }

/* follow pointer slightly on hover to look playful */
#logo:hover .pixel.pixel-eyes .eye-left{ transform: translateX(-2px) translateY(-1px) scale(1.02); }
#logo:hover .pixel.pixel-eyes .eye-right{ transform: translateX(2px) translateY(-1px) scale(1.02); }

/* show a cat near the logo on hover (emoji fallback, accessible and light) */
#logo::after{
  /* intentionally left empty so nothing appears on hover */
  content: "";
  position:absolute;
  right:-8px;
  top:42px;
  transform:translateY(6px);
  opacity:0;
  pointer-events:none;
  transition:opacity .22s ease, transform .22s ease;
  font-size:22px;
  line-height:1;
}

/* accessible text: ensure screen-reader still reads BLOOM normally */
#logo .pixel{position:relative;}
/* Remove square tiles — render logo letters as inline text with Orbitron weight */
.pixel{
  display:inline-block;
  width:auto;
  height:auto;
  padding:0 6px;
  background:transparent;
  border-radius:0;
  box-shadow:none;
  font-weight:900;
  color:var(--salad);
  font-size:36px;
  line-height:1;
  vertical-align:middle;
  transform:translateZ(0);
}

/* Actions */
/* place action buttons in the top-right corner */
#actions{
  display:flex;
  gap:10px;
  align-items:center;
  position:absolute;
  right:14px;
  top:50%;
  transform:translateY(-50%);
  z-index:10;
}

/* BLOOM balance pill in header (top-right) */
.bloom-balance{
  display:inline-flex;
  gap:10px;
  align-items:center;
  padding:8px 10px;
  border-radius:12px;
  background: linear-gradient(90deg, rgba(6,30,18,0.55), rgba(12,48,18,0.36));
  border: 1px solid rgba(158,252,120,0.08);
  box-shadow: 0 8px 26px rgba(0,0,0,0.5), 0 2px 8px rgba(158,252,120,0.02) inset;
  cursor:default;
  user-select:none;
  min-width:96px;
}

/* small token icon */
.bloom-balance .bloom-icon{
  width:34px;
  height:34px;
  object-fit:contain;
  border-radius:8px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.6);
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.00));
}

/* text stack */
.bloom-balance .bloom-text{display:flex;flex-direction:column;line-height:1;align-items:flex-start;}
.bloom-balance .bloom-label{font-size:11px;color:rgba(255,255,255,0.78);font-weight:800;letter-spacing:0.5px;}
.bloom-balance .bloom-value{font-size:15px;color:var(--salad);font-weight:900;letter-spacing:0.6px;}

/* compact on very small screens */
@media (max-width:520px){
  .bloom-balance{ padding:8px; gap:8px; min-width:80px; }
  .bloom-balance .bloom-icon{ width:28px; height:28px; }
  .bloom-balance .bloom-value{ font-size:13px; }
  .bloom-balance .bloom-label{ font-size:10px; }
}

/* Brand/home button (top-left) — sized slightly larger than Connect Wallet for prominence */
#brandSimple, #brandSimple:link, #brandSimple:visited {
  padding:12px 16px;
  border-radius:12px;
  background:transparent;
  text-decoration:none;
  color:var(--salad);
  font-weight:900;
  letter-spacing:0.6px;
  border:1px solid rgba(255,255,255,0.02);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size:28px; /* increased overall BLOOM size */
}

/* Explicit styling for the top-left BLOOM brand anchor to make the wordmark larger and more prominent.
   This affects #brandBtn used in the header and includes a mobile override for smaller screens. */
#brandBtn {
  font-size:40px;
  padding:12px 20px;
  border-radius:12px;
  background: linear-gradient(90deg, rgba(158,252,120,0.04), rgba(255,120,196,0.02));
  color: var(--salad);
  font-weight:900;
  letter-spacing:0.8px;
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  transition:transform .18s ease, box-shadow .22s ease;
  box-shadow: 0 10px 30px rgba(0,0,0,0.45);
}

/* Slightly larger hover lift for the brand anchor for tactile feedback */
#brandBtn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 18px 48px rgba(22,30,18,0.5);
}

/* Mobile scaling: keep the brand large but readable on small screens */
@media (max-width:520px){
  #brandBtn { font-size:26px; padding:10px 12px; }
}

/* slightly larger and lifted first letter for emphasis on "B" */
#brandSimple::first-letter{
  font-size:1.18em;
  transform: translateY(-2px);
  display:inline-block;
  margin-right:2px;
}

/* keep hover behaviour minimal and predictable */
#brandSimple:hover{ transform:none; box-shadow:none; cursor:pointer; }

/* removed original oversized image rules; keep a compact responsive emblem placeholder if needed */
#brandSimple.emblem{
  width:auto;
  height:auto;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:8px 10px;
  border-radius:10px;
  background:linear-gradient(90deg, rgba(158,252,120,0.04), rgba(255,120,196,0.02));
  border:1px solid rgba(255,255,255,0.02);
  color:var(--salad);
  font-weight:900;
}
.btn{padding:10px 14px; border-radius:12px; border:1px solid var(--muted); background:transparent; color:inherit; font-weight:800; font-size:14px; cursor:pointer; transition:transform .18s cubic-bezier(.2,.9,.2,1), box-shadow .28s ease, filter .2s ease; transform-style:preserve-3d;}
.btn:active{transform:translateY(3px) scale(.995); box-shadow:0 6px 16px rgba(0,0,0,0.6) inset;}
.btn.neon{
  background: linear-gradient(90deg, rgba(158,252,120,0.06), rgba(255,120,196,0.04));
  box-shadow: 0 10px 40px rgba(158,252,120,0.06), 0 0 40px rgba(180,92,255,0.03);
  border:1px solid rgba(158,252,120,0.18); color:var(--salad);
  position:relative; overflow:visible;
}
.btn.ghost{background:transparent; border:1px solid rgba(255,255,255,0.03); color:var(--pink);}

/* neon outline pulse */
.btn::after{
  content:"";
  pointer-events:none;
  position:absolute; inset:-2px; border-radius:14px; z-index:-1;
  box-shadow:0 0 0px rgba(158,252,120,0.0);
  transition:box-shadow .32s ease, transform .32s ease;
}
.btn:hover::after{ box-shadow: 0 0 24px rgba(158,252,120,0.10), 0 0 48px rgba(180,92,255,0.06); transform:scale(1.02);}

/* particle pulse on hover (JS will trigger a class) */
.btn.pulse{ filter:brightness(1.06) saturate(1.05); transform:translateY(-2px) scale(1.02); }

/* Main area - single screen panels */
#main{height: calc(100% - 64px - 56px); display:block; position:relative; overflow:visible; -webkit-overflow-scrolling:touch; padding:18px;}
.panel{position:absolute; inset:0; display:flex; align-items:center; justify-content:center; visibility:hidden; opacity:0; transition:opacity .36s cubic-bezier(.2,.9,.2,1), transform .36s ease; padding:18px; transform: translateY(6px); backface-visibility:hidden;}
.panel.active{visibility:visible; opacity:1; transform: translateY(0);}

/* dissolve overlay for transitions */
.dissolve-overlay{
  pointer-events:none;
  position:fixed; inset:0; z-index:4; background:linear-gradient(180deg, rgba(20,10,30,0.0), rgba(0,0,0,0.3));
  mix-blend-mode:screen; opacity:0; transition:opacity .42s ease;
}
.dissolve-overlay.show{opacity:1;}

/* Panel inner card */
.panel-inner{max-width:760px; width:100%; background:linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01)); border-radius:var(--radius); padding:18px; border:1px solid rgba(255,255,255,0.02); box-shadow: 0 10px 40px rgba(0,0,0,0.8); transform:translateZ(0);}

/* Increase base text scale for specific content-heavy panels for improved readability */
#games .panel-inner,
#roadmap .panel-inner{
  font-size:26px;           /* larger body text for Games and Roadmap */
  line-height:1.5;
  padding:20px;
}

/* Partners panel uses a reduced text size for a more compact layout */
#partners .panel-inner{
  font-size:16px;
  line-height:1.45;
  padding:18px;
}
#community .panel-inner{
  font-size:18px; /* reduced text size for Community panel */
  line-height:1.45;
  padding:20px;
}

/* Tweak games-specific text elements so inline px rules become more readable */
#games .game-card strong{ font-size:20px; }
#games .game-card p{ font-size:16px; color:rgba(255,255,255,0.9); }

/* Tokenomics panel receives an extra boost for improved readability */
#tokenomics .panel-inner{
  font-size:24px;           /* increased specifically for tokenomics */
  line-height:1.55;
  padding:22px;
}

/* Leaderboard gets extra increase for improved readability */
#leaderboard .panel-inner{
  font-size:24px;           /* larger body text specifically for leaderboard */
  line-height:1.6;
  padding:22px;
}

/* tweak smaller elements inside those panels to scale proportionally */
#games .panel-inner p,
#tokenomics .panel-inner p,
#leaderboard .panel-inner p,
#roadmap .panel-inner p,
#community .panel-inner p,
#partners .panel-inner p{
  font-size:1.02em;
  line-height:1.55;
}

/* enlarge interactive button text within these panels for better tap targets */
#games .panel-inner .btn,
#tokenomics .panel-inner .btn,
#leaderboard .panel-inner .btn,
#roadmap .panel-inner .btn,
#community .panel-inner .btn,
#partners .panel-inner .btn{
  font-size:16px;
  padding:12px 16px;
}

/* Home hero */
.home-hero{display:flex; flex-direction:column; gap:14px; align-items:flex-start; position:relative; padding:20px;}
.hero-title{
  font-size:56px;
  margin:0;
  color:var(--salad);
  letter-spacing:1px;
  font-weight:900;
  text-shadow:0 14px 40px rgba(158,252,120,0.06), 0 2px 8px rgba(0,0,0,0.6);
  transform-style:preserve-3d;
  will-change:transform, text-shadow;
}
/* dynamic word inside the hero should use a non-green accent and transition smoothly */
#hero-dynamic{
  color: var(--pink);
  transition: color .28s ease, opacity .18s ease, transform .18s ease;
}
/* subtle glowing backdrop behind hero to add depth */
.home-hero::before{
  content:"";
  position:absolute;
  left: -20px;
  top: -40px;
  width:360px;
  height:220px;
  background: radial-gradient(closest-side, rgba(158,252,120,0.06), rgba(180,92,255,0.03) 45%, transparent 60%);
  filter: blur(28px);
  transform: translateZ(-40px) scale(1.02);
  pointer-events:none;
  z-index:0;
  border-radius:20px;
}
/* hero content sits above glow */
.home-hero > *{position:relative; z-index:1;}

.hero-sub{margin:0; color:rgba(255,255,255,0.85); font-size:15px; max-width:640px; line-height:1.45;}
.hero-actions{display:flex; gap:10px; margin-top:8px;}

/* make action buttons chunkier on hero */
.home-hero .btn{padding:12px 16px; font-size:15px; border-radius:14px;}

/* floating vignette under the hero to simulate volume */
.home-hero .vignette-floating{
  position:absolute;
  left:50%;
  bottom:-40px;
  transform:translateX(-50%);
  width:420px;
  height:120px;
  background: radial-gradient(ellipse at center, rgba(0,0,0,0.55), rgba(0,0,0,0.9));
  filter: blur(28px);
  opacity:0.7;
  z-index:0;
  pointer-events:none;
  border-radius:50%;
}

/* subtle 3D tilt on the panel-inner for the hero when hovered */
.panel-inner.tiltable{transition:transform .18s ease, box-shadow .28s ease; transform-origin:center center;}
.panel-inner.tiltable:hover{box-shadow: 0 28px 80px rgba(0,0,0,0.7), inset 0 2px 8px rgba(255,255,255,0.01);}

/* small responsive adjustments for larger hero text on wide screens */
@media (min-width:1100px){
  .hero-title{font-size:72px;}
}

/* Headings */
h2{margin:2px 0 8px 0; color:var(--violet); text-shadow:0 6px 30px rgba(180,92,255,0.04); font-size:20px;}

/* Larger section titles for content-heavy panels */
#games h2,
#tokenomics h2,
#leaderboard h2,
#roadmap h2,
#community h2,
#partners h2{
  font-size:24px;
  letter-spacing:0.6px;
  margin-bottom:10px;
}

/* Lists */
.token-list, .roadmap-list{margin:6px 0; padding-left:18px; opacity:0.98; color:rgba(255,255,255,0.95);}

/* Roadmap timeline styling - centered stem with four branches */
.roadmap-panel{padding:12px 16px; font-size:22px;} /* increased base font-size for roadmap */
.centered-roadmap{position:relative; display:flex; flex-direction:column; align-items:center; gap:18px; margin-top:8px;}

/* Larger roadmap specifics for improved readability */
.quarters-grid{font-size:22px;}
.quarter-title{font-size:16px;} /* larger short/title */
.quarter-tag{width:48px;height:48px;font-size:15px;} /* larger quarter tag */
.quarter-list{font-size:15px; line-height:1.48;} /* bigger, more readable list items */

/* new quarters grid: four rectangular cards aligned across the stem */
.quarters-grid{
  position:relative;
  width:100%;
  max-width:980px;
  display:grid;
  grid-template-columns:repeat(4, 1fr);
  gap:20px;
  align-items:start;
  z-index:3;
  /* center the grid so the timeline is symmetrical and cards align about the stem */
  justify-content: center;
  justify-items: center;
  padding:20px 12px 26px 12px;
}

/* quarter card */
.quarter{
  background:linear-gradient(180deg, rgba(255,255,255,0.012), rgba(255,255,255,0.006));
  border:1px solid rgba(255,255,255,0.02);
  border-radius:12px;
  padding:16px;
  box-shadow: 0 18px 48px rgba(0,0,0,0.65);
  transition:transform .18s cubic-bezier(.2,.9,.2,1), box-shadow .22s ease;
  min-height:160px;
  display:flex;
  flex-direction:column;
  gap:12px;
}

/* header with tag and title */
.quarter-header{display:flex;gap:12px;align-items:center;}
.quarter-tag{
  width:56px;height:56px;border-radius:10px;display:flex;align-items:center;justify-content:center;font-weight:900;color:#07120a;background:linear-gradient(90deg, rgba(255,255,255,0.02), rgba(255,255,255,0.00));border:1px solid rgba(255,255,255,0.02);box-shadow:0 12px 30px rgba(0,0,0,0.5);font-size:16px;
}
.quarter-title{font-size:15px;font-weight:900;color:var(--violet);margin:0;}

/* content list */
.quarter-list{margin:0;padding-left:18px;color:rgba(255,255,255,0.88);font-size:13px;line-height:1.36;}
.quarter-list li{margin:6px 0;}

/* illustration block replaced with bespoke circular emblems + decorative leaves
   to create a unique roadmap identity */
.quarter-illustration{margin-top:8px; display:flex; align-items:center; justify-content:center; width:100%; overflow:visible;}

 /* Quarter-specific border accents */
.quarter.q1{ border: 1px solid rgba(158,252,120,0.18); box-shadow: 0 10px 30px rgba(158,252,120,0.04); }
.quarter.q2{ border: 1px solid rgba(255,120,196,0.16); box-shadow: 0 10px 30px rgba(255,120,196,0.04); }
.quarter.q3{ border: 1px solid rgba(120,220,255,0.14); box-shadow: 0 10px 30px rgba(120,220,255,0.03); }
.quarter.q4{ border: 1px solid rgba(255,216,107,0.16); box-shadow: 0 10px 30px rgba(255,216,107,0.03); }

/* Slightly stronger accent when hovered/open to emphasize the quarter */
.quarter.q1:hover, .quarter.q1.open{ box-shadow: 0 22px 60px rgba(158,252,120,0.12); border-color: rgba(158,252,120,0.24); }
.quarter.q2:hover, .quarter.q2.open{ box-shadow: 0 22px 60px rgba(255,120,196,0.12); border-color: rgba(255,120,196,0.24); }
.quarter.q3:hover, .quarter.q3.open{ box-shadow: 0 22px 60px rgba(120,220,255,0.10); border-color: rgba(120,220,255,0.22); }
.quarter.q4:hover, .quarter.q4.open{ box-shadow: 0 22px 60px rgba(255,216,107,0.12); border-color: rgba(255,216,107,0.26); }

/* circular emblem that holds the quarter image; slightly elevated and centered */
.icon-bubble{
  position:relative;
  width:200px;
  height:200px;
  border-radius:50%;
  overflow:hidden;
  display:inline-block;
  flex:0 0 200px;
  margin:0 auto;
  background:linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.00));
  border:1px solid rgba(255,255,255,0.04);
  box-shadow: 0 22px 80px rgba(0,0,0,0.65), inset 0 4px 14px rgba(255,255,255,0.025);
  transform:translateZ(0);
  transition:transform .28s cubic-bezier(.2,.9,.2,1), box-shadow .28s ease;
  -webkit-transform: translateZ(0);
}

/* make icons slightly larger and pop on hover of the quarter */
.quarter:hover .icon-bubble{ transform:translateY(-6px) scale(1.04); box-shadow: 0 28px 80px rgba(0,0,0,0.7); }

/* image inside bubble is centered and scaled to emphasize main elements */
.icon-bubble img{
  display:none;
}

/* Q1 rocket: ensure rocket artwork is centered and scaled to read well as the emblem,
   and apply a neon-green treatment with inner glow and subtle drop shadow for a vivid emblem */
.quarter.q1 .icon-bubble{
  /* subtle green-tinted base and inner glow to emphasize neon look */
  background: linear-gradient(180deg, rgba(6,30,12,0.55), rgba(12,48,18,0.45));
  box-shadow: 0 22px 60px rgba(6,30,12,0.75), inset 0 6px 28px rgba(158,252,120,0.06);
  border: 1px solid rgba(158,252,120,0.08);
}
.quarter.q1 .icon-bubble img{
  display:none;
}
/* add an extra soft radial glow element specifically for the rocket bubble */
.quarter.q1 .icon-bubble::after{
  content: "";
  position: absolute;
  left: 50%;
  top: 52%;
  width: 140%;
  height: 140%;
  transform: translate(-50%, -50%) scale(.92);
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle at 40% 34%, rgba(158,252,120,0.26), rgba(34,255,120,0.08) 22%, rgba(0,0,0,0) 50%);
  filter: blur(18px);
  opacity: 0.95;
  mix-blend-mode: screen;
}

/* subtle neon rim to frame the rocket and enhance contrast */
.quarter.q1 .icon-bubble::before{
  content:"";
  position:absolute;
  left:50%;
  top:50%;
  width:82%;
  height:82%;
  transform:translate(-50%,-50%);
  border-radius:50%;
  pointer-events:none;
  box-shadow: 0 0 28px rgba(34,255,120,0.28), inset 0 0 12px rgba(158,252,120,0.12);
  border: 1px solid rgba(158,252,120,0.12);
  mix-blend-mode: screen;
  opacity:0.95;
}

/* Q3 token: center and scale token artwork so it sits exactly and proportionally inside the circular emblem */
.quarter.q3 .icon-bubble img{
  display:none;
}

/* Q4 moonlit scene: crop and position so the moon remains visible and the composition is proportional inside the circular emblem */
.quarter.q4 .icon-bubble img{
  display:none;
}

/* subtle colored glow within each bubble to tie to quarter color */
.icon-bubble .glow{
  position:absolute;
  left:50%;
  top:50%;
  width:120%;
  height:120%;
  transform:translate(-50%,-50%) scale(.9);
  border-radius:50%;
  pointer-events:none;
  mix-blend-mode:screen;
  opacity:0.32;
  transition:opacity .28s ease, transform .32s ease;
  filter:blur(18px);
}

/* quarter-specific glow hues */
.quarter.q1 .icon-bubble .glow{ background: radial-gradient(circle at 30% 30%, rgba(158,252,120,0.22), rgba(255,120,196,0.06) 40%, transparent 60%); }
.quarter.q2 .icon-bubble .glow{ background: radial-gradient(circle at 30% 30%, rgba(255,120,196,0.18), rgba(255,200,230,0.04) 40%, transparent 60%); }
.quarter.q3 .icon-bubble .glow{ background: radial-gradient(circle at 30% 30%, rgba(120,220,255,0.18), rgba(68,216,210,0.04) 40%, transparent 60%); }
.quarter.q4 .icon-bubble .glow{ background: radial-gradient(circle at 30% 30%, rgba(255,216,107,0.18), rgba(255,176,107,0.04) 40%, transparent 60%); }

/* decorative "leaf" shapes that sit partially outside the bubble for an organic look */
.leaf{
  position:absolute;
  width:34px;
  height:16px;
  border-radius:18px 18px 18px 18px / 12px 12px 12px 12px;
  background:linear-gradient(90deg, rgba(255,255,255,0.02), rgba(0,0,0,0.12));
  transform-origin:center left;
  box-shadow: 0 6px 18px rgba(0,0,0,0.45);
  opacity:0.96;
}

/* different leaf variants positioned around the bubble */
.leaf-a{ right:-10px; top:14px; transform: rotate(18deg) scaleX(1.08); background: linear-gradient(90deg, rgba(158,252,120,0.14), rgba(255,120,196,0.02)); }
.leaf-b{ left:-12px; bottom:18px; transform: rotate(-18deg) scaleX(1.02); background: linear-gradient(90deg, rgba(255,120,196,0.08), rgba(255,200,230,0.02)); }
.leaf-c{ right:-8px; bottom:10px; transform: rotate(12deg) scaleX(.96); background: linear-gradient(90deg, rgba(120,220,255,0.08), rgba(68,216,210,0.02)); }
.leaf-d{ left:-8px; top:12px; transform: rotate(-10deg) scaleX(.96); background: linear-gradient(90deg, rgba(255,216,107,0.10), rgba(255,176,107,0.02)); }

/* ensure leaves are hidden on very small screens to keep layout tidy */
@media (max-width:520px){
  .icon-bubble{width:140px;height:140px; flex:0 0 140px;}
  .icon-bubble img{width:140%;height:140%; transform:translate(-16%,-16%);}
  .leaf{display:none;}
  .quarter .quarter-list{padding-left:16px;}
}

/* maintain previous small-screen image height adjustment (now applied inside bubble) */
@media (max-width:520px){
  .quarter-illustration img{height:auto;}
}

/* subtle color accents per quarter */
.quarter.q1 .quarter-tag{background:linear-gradient(90deg, rgba(158,252,120,0.14), rgba(255,120,196,0.04)); color:var(--salad);}
.quarter.q2 .quarter-tag{background:linear-gradient(90deg, rgba(255,120,196,0.08), rgba(255,200,230,0.03)); color:var(--pink);}
.quarter.q3 .quarter-tag{background:linear-gradient(90deg, rgba(120,220,255,0.06), rgba(68,216,210,0.03)); color:#0fe6d3;}
.quarter.q4 .quarter-tag{background:linear-gradient(90deg, rgba(255,216,107,0.10), rgba(255,176,107,0.03)); color:var(--lime);}

/* hover lift (basic) - replaced by interactive open state handled via :hover and .open */
/* Provide a smooth, elegant reveal when hovering a single quarter.
   Use .hovering (added by JS) and :hover so both pointer and keyboard/focus can trigger it.
   The effect: subtle lift, soft scale, icon-bubble pops up with stronger glow and the list expands smoothly. */
.quarter:hover,
.quarter.hovering{
  transform: translateY(-10px) scale(1.01);
  box-shadow: 0 28px 68px rgba(0,0,0,0.68);
  z-index: 6; /* bring hovered card above siblings */
}

/* icon bubble gently lifts and scales without disturbing layout */
.quarter:hover .icon-bubble,
.quarter.hovering .icon-bubble{
  transform: translateY(-12px) scale(1.06);
  box-shadow: 0 32px 90px rgba(0,0,0,0.7);
}

/* emphasize glow on the hovered card */
.quarter:hover .icon-bubble .glow,
.quarter.hovering .icon-bubble .glow{
  opacity: 0.62;
  transform: translate(-50%,-50%) scale(1.06);
}

/* reveal the list smoothly: expand max-height, fade in items and lift them slightly */
.quarter:not(.open) .quarter-list{
  max-height: 84px;
  opacity: 0.95;
  transform: translateY(0);
  transition: max-height .42s cubic-bezier(.2,.9,.2,1), opacity .32s ease, transform .32s ease;
}

/* on hover/hovering expand the list (independent from .open) */
.quarter:hover .quarter-list,
.quarter.hovering .quarter-list{
  max-height: 420px;
  opacity: 1;
  transform: translateY(-6px);
}

/* animate individual list items into view with a nicer stagger feel */
.quarter:hover .quarter-list li,
.quarter.hovering .quarter-list li{
  transform: translateY(0);
  opacity: 1;
  transition: transform .36s cubic-bezier(.2,.9,.2,1), opacity .32s ease;
}

/* ensure transitions are smooth and performant */
.quarter,
.quarter .icon-bubble,
.quarter .icon-bubble .glow,
.quarter .quarter-list li{
  will-change: transform, opacity, box-shadow;
}

/* Interactive "open" state for roadmap quarters:
   - expands the card slightly, raises and scales the icon-bubble,
   - reveals the list by animating max-height and opacity,
   - adds subtle content lift and glow for emphasis.
*/
.quarter{
  transition:transform .32s cubic-bezier(.2,.9,.2,1), box-shadow .32s ease, background .28s ease;
  will-change:transform, box-shadow;
  overflow:visible;
  position:relative;
}

/* collapsed list: smooth reveal using max-height */
.quarter-list{
  max-height: 240px; /* default roomy value for open state fallback */
  transition: max-height .42s cubic-bezier(.2,.9,.2,1), opacity .28s ease, transform .28s ease;
  overflow: hidden;
  opacity: 1;
}

/* implement closed compact state: slightly hide list on small screens and when not hovered/open */
.quarter:not(.open) .quarter-list{
  max-height: 84px;
  opacity: 0.95;
  transform: translateY(0);
}

/* open/hover state */
/* Remove slide/scale behavior for .open and :hover states — keep subtle glow only */
.quarter.open,
.quarter:hover{
  transform: none;
  box-shadow: 0 18px 46px rgba(0,0,0,0.58);
  z-index:3;
}

/* Keep icon-bubble subtle pop but avoid translation/scale that shifts layout */
.quarter.open .icon-bubble,
.quarter:hover .icon-bubble{
  transform: none;
  box-shadow: 0 22px 60px rgba(0,0,0,0.62);
}

/* Slight glow emphasis without scaling */
.quarter.open .icon-bubble .glow,
.quarter:hover .icon-bubble .glow{
  opacity: 0.48;
  transform: translate(-50%,-50%) scale(1.00);
}

/* animate the list items gently into view */
.quarter.open .quarter-list li{
  transform: translateY(0);
  opacity:1;
}

.quarter .quarter-list li{
  transform: translateY(6px);
  opacity: 0.85;
  transition: transform .32s cubic-bezier(.2,.9,.2,1), opacity .28s ease;
}

/* ensure smaller screens still behave nicely */
@media (max-width:520px){
  .quarter:not(.open) .quarter-list{ max-height: 110px; }
  .quarter.open .quarter-list{ max-height: 420px; }
}

/* keep the stem visible behind cards (thin center line) */
.centered-roadmap .stem{
  position:absolute;
  top:0;
  bottom:0;
  left:50%;
  width:12px;
  transform:translateX(-50%);
  border-radius:999px;
  background:
    linear-gradient(180deg, rgba(30,60,18,0.98) 0%, rgba(50,120,42,0.99) 30%, rgba(120,220,90,0.9) 100%);
  box-shadow:0 12px 40px rgba(14,40,12,0.6), inset 0 1px 0 rgba(255,255,255,0.02);
  z-index:1;
  pointer-events:none;
}

/* stem ridge */
.centered-roadmap .stem::after{
  content:"";
  position:absolute;
  left:50%;
  top:6px;
  bottom:6px;
  width:6px;
  transform:translateX(-50%);
  border-radius:8px;
  background:linear-gradient(180deg, rgba(0,0,0,0.18), rgba(0,0,0,0.06));
  box-shadow:0 8px 18px rgba(0,0,0,0.45);
  opacity:0.85;
}

/* responsive: stack into two rows on narrow widths */
@media (max-width:920px){
  .quarters-grid{grid-template-columns:repeat(2, 1fr); gap:14px; padding:18px;}
  .centered-roadmap .stem{left:10px; transform:none; width:8px;}
  .centered-roadmap .stem::after{left:50%; transform:translateX(-50%);}
  .quarters-grid .quarter{min-height:110px;}
}

/* mobile: single column stacked vertically with stem on left */
@media (max-width:520px){
  .quarters-grid{grid-template-columns:1fr; gap:12px; padding:12px;}
  .centered-roadmap .stem{left:6px; width:6px;}
  .quarters-grid .quarter{padding:12px; margin-left:28px;}
  .quarter-header{gap:8px;}
  .quarter-tag{width:36px;height:36px;font-size:13px;}
  .quarter-title{font-size:12px;}
  .quarter-list{font-size:13px;padding-left:14px;}
}

/* central horizontal stem (runs right → left) */
.centered-roadmap .stem{
  position:absolute;
  top:50%;
  left:0;
  right:0;
  height:10px;
  transform:translateY(-50%);
  /* layered organic stem: core gradient + subtle veins texture */
  background:
    linear-gradient(90deg, rgba(30,60,18,0.95) 0%, rgba(50,120,42,0.98) 30%, rgba(120,220,90,0.9) 100%);
  border-radius:12px;
  box-shadow:
    0 14px 40px rgba(14,40,12,0.6),
    inset 0 1px 0 rgba(255,255,255,0.02),
    inset 0 -8px 24px rgba(0,0,0,0.4);
  opacity:1;
  z-index:1;
  /* add subtle organic vein overlay using repeating-linear-gradient */
  background-image:
    linear-gradient(90deg, rgba(30,60,18,0.98) 0%, rgba(50,120,42,0.99) 30%, rgba(120,220,90,0.9) 100%),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.02) 0px, rgba(255,255,255,0.02) 1px, transparent 1px, transparent 6px);
}

/* thin darker ridge to suggest curvature and thickness */
.centered-roadmap .stem::after{
  content: "";
  position: absolute;
  top: -6px;
  bottom: -6px;
  left: 50%;
  width: 6px;
  transform: translateX(-50%);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(0,0,0,0.18), rgba(0,0,0,0.06));
  box-shadow: 0 8px 18px rgba(0,0,0,0.45);
  pointer-events: none;
  opacity: 0.85;
  z-index:2;
}

/* branch groups (top pair and bottom pair) */
.centered-roadmap .branch{width:100%; display:flex; justify-content:center; gap:18px; align-items:flex-start;}

/* individual branch items align left/right of stem */
.branch-left, .branch-right{display:flex;gap:12px;align-items:flex-start;max-width:420px;flex:1;}
.branch-left{justify-content:flex-end; text-align:right;}
.branch-right{justify-content:flex-start; text-align:left;}

/* adjust marker and content so marker sits near stem and content extends outward */
.roadmap-marker{
  width:56px;height:56px;border-radius:12px;display:flex;align-items:center;justify-content:center;
  font-weight:900;color:#07120a;box-shadow:0 10px 30px rgba(0,0,0,0.6);
  background:linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.00));
  border:1px solid rgba(255,255,255,0.02);
  flex:0 0 56px;font-size:15px;
  margin:6px;
}
.roadmap-marker.q1{background:linear-gradient(90deg, rgba(158,252,120,0.14), rgba(255,120,196,0.04)); color:var(--salad);}
.roadmap-marker.q2{background:linear-gradient(90deg, rgba(255,120,196,0.08), rgba(255,200,230,0.03)); color:var(--pink);}
.roadmap-marker.q3{background:linear-gradient(90deg, rgba(120,220,255,0.06), rgba(68,216,210,0.03)); color:#0fe6d3;}
.roadmap-marker.q4{background:linear-gradient(90deg, rgba(255,216,107,0.10), rgba(255,176,107,0.03)); color:var(--lime);}

.roadmap-content{display:flex;flex-direction:column;gap:6px;padding:10px;border-radius:12px;background:linear-gradient(180deg, rgba(255,255,255,0.01), rgba(255,255,255,0.00));border:1px solid rgba(255,255,255,0.02);max-width:320px;}
.roadmap-title{font-weight:900;color:var(--violet);font-size:15px;}
.roadmap-desc{color:rgba(255,255,255,0.82);font-size:13px;line-height:1.36;}

/* on larger screens show the stem fully and space branches horizontally */
@media (min-width:720px){
  .centered-roadmap{padding:28px 20px;}
  /* keep stem spanning full width on wide screens as well */
  .centered-roadmap .stem{left:0; right:0;}
  .branch{max-width:900px;}
  .branch-left .roadmap-content{margin-right:12px;}
  .branch-right .roadmap-content{margin-left:12px;}
}

/* compact adjustments for small screens */
@media (max-width:520px){
  .branch-left, .branch-right{max-width:180px;}
  .roadmap-marker{width:48px;height:48px;font-size:13px;margin:4px;}
  .roadmap-content{max-width:220px;padding:8px;}
}

/* compact layout for small screens */
@media (max-width:520px){
  .roadmap-marker{width:48px;height:48px;font-size:13px;}
  .roadmap-content{padding:8px;}
  .roadmap-title{font-size:14px;}
  .roadmap-desc{font-size:12px;}
}

/* Tokenomics card layout */
.tokenomics-card{padding:16px;}
.tokenomics-grid{display:flex; gap:16px; align-items:center; flex-wrap:wrap;}
.chart-wrap{
  position:relative;
  width:360px;
  height:360px;
  display:flex;
  align-items:center;
  justify-content:center;
  margin:auto;
  border-radius:50%;
  overflow:visible;
  transition:box-shadow .28s ease, transform .28s cubic-bezier(.2,.9,.2,1);
  will-change:box-shadow, transform;
  -webkit-transform: translateZ(0);
}
/* subtle glow when a segment is highlighted */
.chart-wrap.glow{
  box-shadow: 0 18px 60px rgba(158,252,120,0.06), inset 0 0 30px rgba(255,120,196,0.02);
  transform: translateY(-4px) scale(1.01);
}
#tokenChart{width:100%; height:100%; border-radius:14px; background:linear-gradient(180deg, rgba(255,255,255,0.01), rgba(255,255,255,0.00)); box-shadow: inset 0 1px 0 rgba(255,255,255,0.02);}

/* donut center badge */
.chart-center{position:absolute; width:120px; height:120px; border-radius:50%; display:flex; flex-direction:column; align-items:center; justify-content:center; background:linear-gradient(180deg, rgba(0,0,0,0.45), rgba(0,0,0,0.55)); border:1px solid rgba(255,255,255,0.02);}
.center-value{font-weight:900; color:var(--salad); font-size:18px;}
.center-label{font-size:11px; color:rgba(255,255,255,0.7); margin-top:4px;}

/* token breakdown */
.token-breakdown{flex:1; min-width:200px;}
.token-list{list-style:none; padding:0; margin:0 0 8px 0;}
.token-list li{display:flex; align-items:center; gap:10px; padding:8px 6px; border-radius:10px; transition:background .18s ease; font-size:14px;}

/* slightly larger token list items specifically on the tokenomics panel for clarity */
#tokenomics .token-list li{ font-size:16px; padding:10px 8px; }
.token-list li:hover{background:rgba(158,252,120,0.03);}

.swatch{width:14px; height:14px; border-radius:4px; display:inline-block; box-shadow:0 4px 10px rgba(0,0,0,0.45);}
.sw-farming{background: linear-gradient(90deg, var(--salad), #c9ffac);}
.sw-team{background: linear-gradient(90deg, #ff78c4, #ffb0dc);}
.sw-liquidity{background: linear-gradient(90deg, #78fff0, #43d8d2);}
.sw-community{background: linear-gradient(90deg, #ffd86b, #ffb86b);}
.sw-greendao{background: linear-gradient(90deg, #b45cff, #8a63ff);}
.sw-reserves{background: linear-gradient(90deg, #ff6b6b, #ff4d4d);} /* Reserves / Future burns - red */

.token-notes{font-size:12px; color:rgba(255,255,255,0.6); margin-top:8px;}

/* Responsive adjustments */
@media (max-width:720px){
  .tokenomics-grid{flex-direction:column; align-items:center;}
  .chart-wrap{width:300px; height:300px;}
  .chart-center{width:100px;height:100px;}
}

/* Disable page scroll when certain full-screen panels are active */
.no-scroll, .no-scroll html, .no-scroll body {
  height: 100%;
  overflow: hidden !important;
}
.no-scroll #main {
  overflow: hidden !important;
  touch-action: none;
}

/* Tabs - refreshed: elevated pill dock with icons and better touch targets */
#tabs{
  position:fixed;
  left:12px;
  right:12px;
  /* place tabs at the very bottom with a small safe offset for touch targets */
  bottom: 18px;
  height:64px;
  display:flex;
  gap:10px;
  padding:8px;
  align-items:center;
  justify-content:space-between;
  border-radius:20px;
  background: linear-gradient(180deg, rgba(6,6,6,0.64), rgba(6,6,6,0.78));
  box-shadow: 0 18px 40px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.02);
  border: 1px solid rgba(158,252,120,0.04);
  z-index:10; /* raise above footer */
  backdrop-filter: blur(6px) saturate(1.05);
  transition: transform .28s ease, top .28s ease, bottom .28s ease, opacity .28s ease;
}

/* When user scrolls down, move tabs to the top of the viewport */
#tabs.tabs-top{
  top: 12px;
  bottom: auto;
  left: 12px;
  right: 12px;
  transform: translateY(0);
  box-shadow: 0 20px 50px rgba(0,0,0,0.7), inset 0 1px 0 rgba(255,255,255,0.02);
}

/* ensure mobile rules respect tabs-top state */
@media (max-width:520px){
  #tabs.tabs-top{
    top: 10px;
    bottom: auto;
    left:8px;
    right:8px;
    height:64px;
  }
}

/* individual tab as a pill button with icon */
.tab{
  flex:1;
  min-width:56px;
  height:48px;
  display:inline-flex;
  gap:8px;
  align-items:center;
  justify-content:center;
  padding:8px 10px;
  border-radius:14px;
  background:transparent;
  color:rgba(255,255,255,0.78);
  border:1px solid transparent;
  font-weight:800;
  font-size:13px;
  transition: transform .18s ease, box-shadow .22s ease, background .22s ease, color .22s ease;
  cursor:pointer;
  position:relative;
}

/* small icon before label for visual weight (uses a neutral pseudo glyph so no extra markup needed) */
.tab::before{
  content: "•";
  display:inline-block;
  font-size:14px;
  transform:translateY(-1px);
  margin-right:6px;
  opacity:0.9;
  color:rgba(255,255,255,0.18);
  transition: color .22s ease, text-shadow .22s ease;
}

/* when a tab is active the dot lights up pink */
.tab.active::before{
  color: var(--pink);
  text-shadow: 0 6px 18px rgba(255,120,196,0.14);
}

/* hover and press affordances */
.tab:hover{ transform:translateY(-4px); color:var(--salad); box-shadow: 0 10px 30px rgba(0,0,0,0.55); }
.tab:active{ transform:translateY(0); box-shadow:none; }

/* active tab stronger styling */
.tab.active{
  background: linear-gradient(90deg, rgba(158,252,120,0.06), rgba(255,120,196,0.03));
  border:1px solid rgba(158,252,120,0.12);
  color:var(--salad);
  box-shadow: 0 10px 36px rgba(22,30,18,0.6), 0 2px 10px rgba(158,252,120,0.03);
  transform:translateY(-6px) scale(1.02);
}

/* make tabs more compact on very small screens while preserving touch targets */
@media (max-width:420px){
  #tabs{left:8px; right:8px; bottom:10px; height:64px;}
  .tab{font-size:12px; padding:8px 6px; min-width:48px;}
}

/* Partners / pills */
.partner{display:inline-flex; min-width:72px; height:40px; margin:6px; align-items:center; justify-content:center; background:linear-gradient(90deg, rgba(0,0,0,0.30), rgba(0,0,0,0.4)); border-radius:10px; border:1px solid rgba(255,255,255,0.02); color:var(--salad); font-weight:800;}
.links{display:flex; gap:10px; flex-wrap:wrap;}
.pill{padding:10px 14px; background:rgba(255,255,255,0.02); border-radius:999px; color:var(--pink); border:1px solid rgba(255,120,196,0.06); text-decoration:none; font-weight:800;}

/* Partner form card styling (replaces partners grid) */
.partner-form{display:flex; align-items:center; justify-content:center; width:100%;}
.partner-form-inner{max-width:520px; width:100%; background:linear-gradient(180deg, rgba(255,255,255,0.018), rgba(255,255,255,0.008)); border-radius:14px; padding:18px; display:flex; flex-direction:column; gap:10px; align-items:flex-start; border:1px solid rgba(158,252,120,0.04); box-shadow:0 14px 46px rgba(0,0,0,0.65);}
.partner-form-badge{background:linear-gradient(90deg, rgba(158,252,120,0.08), rgba(255,120,196,0.04)); color:var(--salad); padding:8px 12px; border-radius:10px; font-weight:900; letter-spacing:0.4px;}
.partner-form-desc{margin:0; color:rgba(255,255,255,0.85); font-size:15px;}
.partner-form-btn{display:inline-flex; align-items:center; justify-content:center; padding:10px 14px; border-radius:12px; background:linear-gradient(90deg, rgba(158,252,120,0.14), rgba(255,120,196,0.08)); color:var(--salad); font-weight:900; font-size:16px; text-decoration:none; border:1px solid rgba(158,252,120,0.12); transition:transform .18s ease, box-shadow .2s ease;}
.partner-form-btn:hover{transform:translateY(-3px); box-shadow:0 12px 30px rgba(158,252,120,0.06);}

/* Partners grid and tiles */
.partners-grid{display:grid; grid-template-columns:repeat(2, minmax(120px,1fr)); gap:10px 12px; margin-top:10px;}
.partner-tile{display:flex;gap:10px;align-items:center;padding:10px;border-radius:12px;background:linear-gradient(180deg, rgba(255,255,255,0.01), rgba(255,255,255,0.00));border:1px solid rgba(255,255,255,0.02);min-height:58px;}
.partner-tile.dim{opacity:0.84; filter:grayscale(6%);}
.partner-logo{width:220px;height:140px;border-radius:12px;display:flex;align-items:center;justify-content:center;font-weight:900;color:#07120a;background:linear-gradient(90deg, rgba(158,252,120,0.12), rgba(255,120,196,0.04));box-shadow:0 10px 30px rgba(0,0,0,0.6);overflow:visible;}
.partner-logo img{width:100%;height:100%;object-fit:contain;display:block;border-radius:10px;background:#000;}
.partner-body{display:flex;flex-direction:column;}
.partner-name{font-weight:900;color:var(--salad);font-size:18px;}
.partner-tag{font-size:15px;color:rgba(255,255,255,0.78);line-height:1.36;}

/* GreenDAO proposal cards — richer multi-hue treatment for varied visual hierarchy */
.gdao-proposal{
  /* layered multi-hue gradient for each card to avoid a single dark tint */
  background: linear-gradient(180deg,
    rgba(8,12,10,0.88) 0%,
    rgba(16,28,22,0.92) 24%,
    rgba(26,48,56,0.88) 60%,
    rgba(12,20,14,0.95) 100%);
  color: rgba(255,255,255,0.95);
  border: 1px solid rgba(255,255,255,0.03);
  box-shadow: 0 20px 56px rgba(6,12,8,0.66);
  transition: box-shadow .24s ease, transform .18s ease;
}
.gdao-proposal:hover{
  transform: translateY(-6px);
  box-shadow: 0 32px 88px rgba(6,12,8,0.72);
}
.gdao-proposal .gdao-stem-wrap { gap: 12px; }

/* stem uses a subtle tonal gradient with a colored core so each proposal can feel distinct */
.gdao-proposal .stem {
  width:100%;
  height:8px;
  border-radius:8px;
  background: linear-gradient(90deg, rgba(20,40,28,0.85), rgba(40,110,86,0.92));
  box-shadow: inset 0 1px 6px rgba(255,255,255,0.02);
}

/* progress bar uses a lively multi-stop gradient for motion and color variety */
.gdao-proposal .progress-bar {
  height:100%;
  width:0%;
  background: linear-gradient(90deg,
    rgba(158,252,120,0.96) 0%,
    rgba(120,220,255,0.82) 38%,
    rgba(255,176,107,0.82) 68%,
    rgba(255,120,196,0.86) 100%);
  box-shadow: 0 8px 28px rgba(34,255,120,0.06);
  transition: width .8s cubic-bezier(.2,.9,.2,1);
}
.gdao-proposal .progress-text,
.gdao-proposal .timer-text { color: rgba(255,255,255,0.82); font-weight:700; }

/* Vote button variants inside proposals — alternate hues for positive/neutral actions */
.gdao-proposal .gdao-vote.btn.neon{
  background: linear-gradient(90deg, rgba(120,220,255,0.12), rgba(158,252,120,0.10));
  color: var(--salad);
  border: 1px solid rgba(120,220,255,0.10);
}
.gdao-proposal .gdao-vote.btn.ghost{
  background: linear-gradient(180deg, rgba(255,255,255,0.018), rgba(255,255,255,0.008));
  color: rgba(255,255,255,0.9);
  border: 1px solid rgba(255,255,255,0.03);
}

/* ensure text blocks inside cards are high-contrast and legible; add subtle accent for amounts */
.gdao-proposal .gdao-proposal-title,
.gdao-proposal .gdao-proposal-desc { color: rgba(255,255,255,0.94); }
.gdao-proposal .gdao-proposal-amount { color: var(--salad); font-weight:900; }

/* small responsive tweak to preserve clarity on phones */
@media (max-width:520px){
  .gdao-proposal{ padding:10px; }
  .gdao-proposal .progress-bar{ box-shadow:none; transition:none; }
}

/* Greendao side cards given a nuanced multi-hue surface so the sidebar reads layered instead of flat */
.greendao-panel .panel-card,
.greendao-panel .panel-card .card-header {
  background: linear-gradient(180deg,
    rgba(6,10,8,0.96) 0%,
    rgba(12,18,16,0.92) 28%,
    rgba(24,36,30,0.88) 68%,
    rgba(8,12,10,0.96) 100%);
  border: 1px solid rgba(255,255,255,0.03);
  box-shadow: 0 20px 56px rgba(4,8,6,0.78);
  color: rgba(255,255,255,0.94);
}
/* card header accent bar to hint different proposal types with small color chips */
.greendao-panel .panel-card .card-header {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}
.greendao-panel .panel-card .card-header::after{
  content: "";
  width:72px;
  height:8px;
  border-radius:6px;
  background: linear-gradient(90deg, rgba(158,252,120,0.9), rgba(120,220,255,0.86));
  box-shadow: 0 6px 18px rgba(34,255,120,0.04);
  opacity:0.92;
}

/* Ensure proposals inside the GreenDAO panel use an intensified dark style */
.greendao-panel .proposals-grid .gdao-proposal {
  background: linear-gradient(180deg, rgba(6,10,8,0.92), rgba(8,12,10,0.96));
  border: 1px solid rgba(255,255,255,0.03);
  box-shadow: 0 20px 60px rgba(0,0,0,0.85);
}

/* CTA tweaks: larger touch target and subtle icon feel */
.partner-cta{display:inline-flex;gap:8px;align-items:center;justify-content:center;padding:12px 14px;font-size:15px;border-radius:12px;}

/* responsive */
@media (max-width:760px){
  .partners-grid{grid-template-columns:repeat(1, minmax(120px,1fr));}
  aside{width:100% !important;}
}
@media (max-width:520px){
  .partner-form-inner{padding:12px;}
  .partner-form-badge{font-size:13px; padding:6px 10px;}
  .partner-form-desc{font-size:13px;}
  .partner-logo{width:44px;height:44px;}
}

/* Footer */
/* Footer — deep matte black background, crisp white typography, preserved icon colors */
#footer{
  background: #000000; /* deep matte black */
  color: #ffffff; /* strict white typography */
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  padding: 20px 16px;
  box-sizing: border-box;
  border-top: 1px solid rgba(255,255,255,0.03);
  position: relative;
  z-index: 6;
  margin-top: 120px; /* extra spacing so footer sits lower on the page */
}

/* inner layout: three-column compact layout that matches balanced spacing */
.footer-inner{
  width:100%;
  max-width:100%;
  margin:0;
  padding:0 16px;
  box-sizing:border-box;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  flex-wrap:wrap;
}

/* left nav */
.footer-nav{
  display:flex;
  gap:12px;
  align-items:center;
  flex:1 1 auto;
  min-width:160px;
}
.footer-link{
  color:#ffffff;
  text-decoration:none;
  font-weight:700;
  font-size:13px;
  letter-spacing:0.6px;
  opacity:0.98;
  padding:8px 6px;
  border-radius:8px;
}
.footer-link:hover{ text-decoration:underline; color:#ffffff; }

/* center block */
.footer-center{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:6px;
  flex:0 1 auto;
  min-width:180px;
}

/* center the middle footer block visually across the footer on wider screens */
@media (min-width:721px){
  .footer-center{
    position:static;
    left:auto;
    top:auto;
    transform:none;
    z-index:5;
    flex:0 1 auto;
    text-align:center;
    max-width:520px;
    width:auto;
  }
}
.footer-brand{
  font-weight:600;
  color:#ffffff;
  font-size:20px; /* slightly larger footer brand */
  letter-spacing:1px;
}

/* emphasize leading "B" in footer brand as well */
.footer-brand::first-letter{
  font-size:1.12em;
  transform: translateY(-1px);
  display:inline-block;
}
.footer-disclaimer{
  font-size:12px;
  color:#ffffff;
  opacity:0.92;
  font-weight:600;
}

/* ensure the eco/vote line matches the disclaimer size/weight for consistent footer typography */
.footer-eco{
  font-size:12px;
  color:#ffffff;
  opacity:0.92;
  font-weight:600;
  text-align:center;
  max-width:420px;
}

/* right social icons */
.footer-ends{
  display:flex;
  align-items:center;
  gap:12px;
  flex:1 1 auto;
  justify-content:flex-end;
  min-width:160px;
  /* nudge social icons further to the left for visual adjustment */
  transform: translateX(-24px);
}
.footer-social{display:flex; gap:10px; align-items:center;}
.footer-social-link{
  display:inline-flex;
  width:44px;
  height:44px;
  align-items:center;
  justify-content:center;
  border-radius:10px;
  text-decoration:none;
  background:transparent;
  border:1px solid rgba(255,255,255,0.02);
  padding:6px;
}
.footer-social-link img{
  display:block;
  width:28px;
  height:28px;
  max-width:100%;
  max-height:100%;
  object-fit:contain;
  margin:0;
}

/* Ensure all footer text is strictly white, even when other rules might apply */
#footer, #footer *{ color: #FFFFFF !important; }

/* Responsive adjustments: stack vertically on narrow screens */
@media (max-width:720px){
  .footer-inner{ flex-direction:column; align-items:center; padding:12px 6px; gap:12px; }
  .footer-nav{ order:2; justify-content:center; }
  .footer-ends{ order:3; justify-content:center; }
  .footer-center{ order:1; }
  .footer-social-link{ width:44px; height:44px; }
}

/* FlyingBloom game styles */
.game-canvas-wrap{
  aspect-ratio: 16/9;
  width:100%;
  max-height:720px;
  background:linear-gradient(180deg, rgba(1,8,6,0.6), rgba(3,8,12,0.8));
  position:relative;
  /* reserve space at the bottom for the controls hint so the visible game area ends where the hint sits */
  padding-bottom:48px; /* room for "Tap / Click / Space to flap" */
  /* responsive border and radius proportional to viewport / container */
  border: max(1px, 0.35vmin) solid rgba(255,255,255,0.02);
  border-radius: clamp(8px, 1.6vmin, 18px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.6);
  overflow: hidden;
}

/* Games menu layout that occupies ~90% of the viewport and is centered */
.games-menu{
  height:90vh;                 /* occupy ~90% of viewport height */
  width:90vw;                  /* occupy ~90% of viewport width */
  max-width:1200px;            /* keep a sensible max width on very large screens */
  display:block;
  /* place the whole menu exactly at the center of the viewport */
  position:fixed;
  left:50%;
  top:50%;
  transform:translate(-50%,-50%);
  padding:12px;
  box-sizing:border-box;
  z-index: 6;
  pointer-events: auto;
}
.games-menu-inner{
  width:100%;
  max-width:calc(100% - 48px);
  position:relative;           /* allow absolute placement of cards around center */
  display:block;
  height:100%;
  min-height: 360px;
}

/* Each game card is now absolutely positioned so the pair sits symmetrically around the exact screen center.
   Their midpoint aligns with the viewport center regardless of other content. */
.game-card{
  position:absolute;
  top:50%;
  transform:translate(-50%,-50%);
  width:44%;                   /* keep reasonable card width */
  max-width:520px;
  display:flex;
  flex-direction:column;
  gap:12px;
  background:linear-gradient(180deg, rgba(255,255,255,0.014), rgba(255,255,255,0.006));
  border-radius:14px;
  padding:12px;
  border:1px solid rgba(255,255,255,0.02);
  box-shadow: 0 18px 46px rgba(0,0,0,0.6);
  align-items:center;
  justify-content:center;
  height:auto;
}
.game-card.dimmed{opacity:0.7; filter:grayscale(0.08);}

/* position the two specific cards symmetrically about center:
   - flyingbloom offset left of center
   - typingbloom offset right of center
   These offsets keep their centers aligned so the pair's midpoint is the screen center. */
.game-card[data-game="flyingbloom"]{ left: 28%; }
.game-card[data-game="typingbloom"]{ left: 72%; }

.game-art{
  width:100%;
  height:220px;
  border-radius:10px;
  overflow:hidden;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(0,0,0,0.14);
  border:1px solid rgba(255,255,255,0.02);
}
.game-art img{ width:100%; height:100%; object-fit:cover; display:block; transform:scale(1.02); }
.game-meta{ display:flex; flex-direction:column; align-items:center; gap:8px; width:100%; }
.game-title{ font-weight:900; color:var(--salad); font-size:20px; }
.game-desc{ font-size:13px; color:rgba(255,255,255,0.78); text-align:center; max-width:92%; }

/* hide the full game area until a Play selection is made */
.game-area-hidden{ display:none; }

/* Game area two-column layout: canvas + quickshop sidebar */
.game-area{
  display:flex;
  gap:12px;
  align-items:stretch;
  width:100%;
  box-sizing:border-box;
}

/* Quickshop sidebar styling */
#quickshop{
  width:320px;
  min-width:260px;
  max-width:34%;
  display:flex;
  flex-direction:column;
  gap:10px;
  align-items:stretch;
  z-index:10;
}
#quickshop .btn{font-size:14px; padding:10px 12px;}
#quickshopClose{font-size:13px; padding:6px 8px;}

@media (max-width:760px){
  /* collapse quickshop under the canvas on small screens */
  #quickshop{ width:100%; max-width:100%; order:2; }
  .game-area{ flex-direction:column; gap:12px; }
  .game-canvas-wrap{ order:1; }
}

/* when the game is active hide the menu and show the game area (only when explicitly requested) */
.showing-game #gamesMenu{ display:none !important; }
.showing-game #flyingbloom{ display:flex !important; }

/* smaller screens: stack cards */
@media (max-width:760px){
  .games-menu{height:auto; margin:12px 0;}
  .games-menu-inner{flex-direction:column; gap:12px;}
  .game-art{height:160px;}
  .game-card{padding:10px; /* keep natural flow on mobile */ height:auto; justify-content:flex-start;}
  .game-title{font-size:18px;}
}

/* When the Games panel is active, expand the game area to occupy the full available viewport
   (keeps topbar and bottom tabs visible by respecting their heights). This makes obstacles/background
   render across the whole page area reserved for the app. */
#games .game-canvas-wrap{
  position:fixed;
  left:12px;
  right:12px;
  top:64px; /* below topbar */
  bottom:86px; /* above tabs (64px) + some spacing */
  z-index:6;
  width: auto;
  height: auto;
  border-radius: clamp(8px, 1.6vmin, 18px);
  padding-bottom:48px;
  overflow:hidden;
  border: max(1px, 0.35vmin) solid rgba(255,255,255,0.02);
  background: linear-gradient(180deg, rgba(1,8,6,0.64), rgba(3,8,12,0.92));
}

/* Mobile-specific override: avoid fixing the canvas full-viewport (which can be cut off on small screens),
   instead use an inline responsive card that fits the available viewport while keeping topbar/tabs visible.
   Also set a sensible max-height and ensure the inner canvas has an explicit mobile height for stable rendering. */
@media (max-width:520px){
  #games .game-canvas-wrap{
    position:static;
    left:auto;
    right:auto;
    top:auto;
    bottom:auto;
    margin:8px 0;
    width:100%;
    max-width: calc(100% - 16px);
    height:auto;
    max-height: calc(100vh - 200px); /* leaves room for topbar, tabs and UI */
    z-index:6;
    border-radius:12px;
    padding-bottom:56px; /* keep room for the controls hint */
    overflow:hidden;
    border: 1px solid rgba(255,255,255,0.03);
    background: linear-gradient(180deg, rgba(1,8,6,0.72), rgba(3,8,12,0.94));
  }

  /* give the internal canvas a stable visual height on small screens so drawing scales nicely */
  #gameCanvas{
    height: 360px !important;
    width: 100% !important;
    display:block;
    border-radius: inherit;
    object-fit: cover;
  }
}

/* ensure the internal canvas follows the container shape exactly */
#gameCanvas{
  display:block;
  width:100%;
  /* subtract reserved hint area so the canvas bottom aligns with the hint baseline */
  height: calc(100% - 48px);
  border-radius: inherit;
  background: transparent;
  object-fit: cover;
}

/* HUD pills remain visually inset from the responsive border */
.hud-pill{
  background: linear-gradient(90deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.02);
  font-weight: 900;
  color: rgba(255,255,255,0.95);
  font-size: 18px;
  min-width: 110px;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* make the numeric value inside HUD more prominent */
.hud-pill strong{
  display: block;
  font-size: 22px;
  line-height: 1;
  color: var(--salad);
}

/* center the HUD containers above the canvas (override inline left:12px) */
#gameHUD {
  left: 50% !important;
  transform: translateX(-50%) !important;
  top: 12px !important;
  justify-content: center;
  gap: 14px;
  pointer-events: none; /* keep HUD non-interactive so clicks pass through */
}

/* Hide typing-specific HUD (removed per UX request) */
#typingHUD {
  display: none !important;
}

/* keep individual pills interactive if needed (exceptions) */
#gameHUD .hud-pill, #typingHUD .hud-pill{
  pointer-events: auto;
}

/* slightly reduce size on very small screens to avoid overflow */
@media (max-width:420px){
  .hud-pill{ font-size:16px; padding:8px 10px; min-width:80px; }
  .hud-pill strong{ font-size:18px; }
}
#gameOverlay.visible{opacity:1;pointer-events:auto;}
.skin-thumb{width:64px;height:46px;border-radius:8px;overflow:hidden;display:flex;align-items:center;justify-content:center;border:1px solid rgba(255,255,255,0.03);cursor:pointer;background:linear-gradient(180deg, rgba(255,255,255,0.01), rgba(255,255,255,0.00));}
.skin-thumb.active{box-shadow:0 12px 30px rgba(0,0,0,0.6);border:1px solid rgba(158,252,120,0.12);}

/* Selected thumbnail highlight (sidebar selection) */
.skin-thumb.selected{
  outline: 3px solid rgba(158,252,120,0.18);
  box-shadow: 0 18px 46px rgba(22,30,18,0.36), 0 6px 22px rgba(158,252,120,0.06);
  transform: translateY(-4px) scale(1.01);
  border: 1px solid rgba(158,252,120,0.18);
}
.panel-card .panel-skin-row{display:flex;gap:8px;flex-wrap:wrap;}
@media (max-width:760px){
  aside{width:100%;}
  .game-canvas-wrap{aspect-ratio: 16/9; max-height:480px; border-radius: clamp(6px, 2.2vmin, 14px); }
  .skin-thumb{width:56px;height:40px;}
}

/* 3D on-screen keyboard keys for TypingBloom */
.typing-key{
  position:relative;
  perspective:800px;
  background:transparent;
  border:none;
  padding:0;
}

/* Typing input visual upgrade: stronger underline and modern display font for a sleek look */
#typingInput{
  font-family: "Orbitron", Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  font-weight:700;
  font-size:18px;
  letter-spacing:0.6px;
  color:inherit;
  background:transparent;
  border:0;
  border-bottom:2px solid rgba(158,252,120,0.98); /* visible neon-green underline */
  padding:10px 12px;
  outline:none;
  border-radius:8px 8px 0 0;
  box-shadow: 0 6px 18px rgba(34,255,120,0.04) inset;
  transition: box-shadow .18s ease, border-color .18s ease, transform .12s ease;
}

/* focus state: intensify underline glow */
#typingInput:focus{
  border-bottom-color: var(--salad);
  box-shadow: 0 10px 36px rgba(158,252,120,0.08), 0 0 28px rgba(158,252,120,0.06);
  transform: translateY(-1px);
}

/* smaller mobile input tweak for stability */
@media (max-width:520px){
  #typingInput{ font-size:16px; padding:8px 10px; border-bottom-width:2px; }
}
/* animated, multicolour gradient + 3D key face */
@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.typing-key .key-outer{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:40px;
  height:40px;
  padding:8px 10px;
  border-radius:14px; /* increased rounding for pill-like keys */
  /* stronger animated sheen so the whole keyboard glows and shimmers */
  background: linear-gradient(180deg, rgba(4,18,12,0.24), rgba(6,22,18,0.32));
  box-shadow:
    0 10px 30px rgba(20,36,24,0.6),
    inset 0 1px 0 rgba(255,255,255,0.02),
    0 4px 18px rgba(158,252,120,0.06);
  transform-origin: center;
  transition: transform .12s cubic-bezier(.2,.9,.2,1), box-shadow .12s ease, filter .12s ease;
  font-weight:900;
  color:rgba(255,255,255,0.96);
  letter-spacing:0.6px;
  z-index:2;
  transform: translateZ(6px);
  position:relative;
  overflow:hidden;
}
/* animated sheen layer (pseudo-element like effect inside the key) - always visible for full keyboard shimmer */
.typing-key .key-outer::before{
  content: "";
  position: absolute;
  inset: -28% -54%;
  /* richer, more vivid multi-hue gradient for a colorful keyboard */
  background: linear-gradient(90deg,
    rgba(34,255,120,0.36) 0%,
    rgba(120,220,255,0.32) 14%,
    rgba(255,246,180,0.30) 30%,
    rgba(255,120,196,0.36) 46%,
    rgba(255,176,107,0.28) 64%,
    rgba(178,102,255,0.30) 82%,
    rgba(34,255,120,0.36) 100%);
  background-size: 320% 100%;
  transform: translateZ(-1px);
  filter: blur(8px) saturate(1.4) contrast(1.02);
  /* stronger default sheen so keys look colorful even when idle */
  opacity: 0.68;
  transition: opacity .16s ease, transform .18s ease, filter .18s ease;
  animation: gradientShift 2.6s linear infinite;
  pointer-events:none;
  z-index:0;
}
/* when key is actively pressed, intensify sheen */
.typing-key.active .key-outer::before,
.typing-key .key-outer:active::before{
  opacity: 0.86;
  transform: translateY(0) scale(1.03);
  filter: blur(6px) saturate(1.25) contrast(1.02);
}
/* "match" state: even stronger pulsing glow for keys relevant to current input */
.typing-key.match .key-outer::before{
  opacity: 0.96;
  filter: blur(6px) saturate(1.32) contrast(1.06);
  animation-duration: 2.2s;
  box-shadow: 0 14px 42px rgba(158,252,120,0.08);
}
/* subtle inset highlight on the visible face so letters remain legible */
.typing-key .key-outer .key-label-dim{
  position:absolute;
  inset:0;
  border-radius:inherit;
  pointer-events:none;
  mix-blend-mode:overlay;
  opacity:0.04;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(0,0,0,0.02));
  z-index:1;
}

/* subtle beveled rim for depth */
.typing-key .key-rim{
  position:absolute;
  left:0; right:0; top:0; bottom:0;
  border-radius:14px; /* match outer key rounding */
  pointer-events:none;
  box-shadow: inset 0 -6px 12px rgba(0,0,0,0.28), inset 0 1px 0 rgba(255,255,255,0.02);
  z-index:1;
  mix-blend-mode:screen;
  opacity:0.85;
}

/* larger space key */
.typing-key.space .key-outer{
  min-width:220px;
  border-radius:18px; /* larger radius for the wide space key */
  height:46px;
  padding:10px 16px;
}

/* pressed / active state */
.typing-key .key-outer:active,
.typing-key.active .key-outer{
  transform: translateY(4px) translateZ(0) scale(0.992);
  box-shadow:
    0 6px 14px rgba(0,0,0,0.6),
    inset 0 1px 0 rgba(255,255,255,0.02);
  filter:brightness(1.06) saturate(1.04);
}

/* glow accent for letter matches */
.typing-key.match .key-outer{
  box-shadow:
    0 12px 36px rgba(158,252,120,0.08),
    inset 0 1px 0 rgba(255,255,255,0.02);
  transform: translateZ(8px) scale(1.02);
}

/* smaller key variant for backspace */
.typing-key.back .key-outer{ min-width:48px; height:40px; }

/* ensure layout rows keep spacing */
#typingKeyboard > div{ display:flex; justify-content:center; gap:6px; align-items:center; }

/* keep original community panel marker */
.community-grid{display:flex;gap:16px;align-items:flex-start;flex-wrap:wrap;}
.community-left{flex:1;min-width:260px;}
.community-right{width:340px;min-width:240px;display:flex;flex-direction:column;gap:12px;}

.community-hero{background:linear-gradient(180deg, rgba(158,252,120,0.04), rgba(255,120,196,0.02)); padding:16px; border-radius:14px; border:1px solid rgba(158,252,120,0.04);}
.community-badge{display:inline-block;padding:6px 10px;border-radius:10px;background:linear-gradient(90deg, rgba(158,252,120,0.08), rgba(255,120,196,0.04));color:var(--salad);font-weight:900;font-size:13px;}
.community-title{margin:10px 0 6px 0;font-size:20px;color:var(--salad);font-weight:900;}
.community-desc{margin:0 0 12px 0;color:rgba(255,255,255,0.86);font-size:14px;line-height:1.4;}

/* social buttons arranged in a compact, even grid with stacked labels */
.community-actions{display:flex;gap:12px;margin-bottom:12px;flex-wrap:wrap;align-items:stretch;}
.social-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(84px,1fr));gap:10px;width:100%;align-items:stretch;}

/* make each social button a centered stacked card for consistent layout */
.community-btn{
  display:flex;
  align-items:center;
  justify-content:center;
  padding:10px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,0.02);
  background:rgba(0,0,0,0.22);
  color:inherit;
  font-weight:800;
  cursor:pointer;
  transition:transform .12s ease, box-shadow .16s ease, background .16s ease;
  text-decoration:none;
  min-height:72px;
}

/* wrapper inside button stacks icon above label */
.community-btn .social-wrap{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;}

/* consistent icon sizing and appearance */
.community-btn .social-icon{
  width:36px;
  height:36px;
  object-fit:cover;
  border-radius:8px;
  display:block;
  box-shadow:0 6px 18px rgba(0,0,0,0.6);
  background:rgba(0,0,0,0.08);
}

/* label below icon */
.community-btn .c-label{font-size:12px;color:rgba(255,255,255,0.88);display:block;line-height:1;}

/* slightly larger icon specifically for Discord to match Telegram visual weight */
.community-btn.discord .social-icon{width:44px;height:44px;}

/* hover/press feedback */
.community-btn:hover{transform:translateY(-6px); box-shadow:0 18px 46px rgba(0,0,0,0.6);}
.community-btn:active{transform:translateY(-2px);}

/* small screens: keep buttons tappable and evenly spaced */
@media (max-width:520px){
  .social-grid{grid-template-columns:repeat(5, minmax(56px,1fr)); gap:8px;}
  .community-btn{min-height:64px;padding:8px;border-radius:10px;}
  .community-btn .social-icon{width:30px;height:30px;border-radius:6px;}
  .community-btn .c-label{font-size:11px;}
}

/* platform accents */
.community-btn.discord{background:linear-gradient(90deg, rgba(16,24,32,0.6), rgba(6,10,12,0.45)); border:1px solid rgba(120,150,255,0.06); color:#bcd6ff;}
.community-btn.telegram{background:linear-gradient(90deg, rgba(6,60,60,0.32), rgba(6,28,24,0.22)); color:#c8fff0;}
.community-btn.x{background:linear-gradient(90deg, rgba(30,30,30,0.48), rgba(10,10,10,0.36)); color:#dbe9ff; border:1px solid rgba(180,92,255,0.04);}
.community-btn.tiktok{background:linear-gradient(90deg, rgba(10,8,12,0.48), rgba(30,10,20,0.28)); color:#fff6e6; border:1px solid rgba(255,120,196,0.04);}
.community-btn.instagram{background:linear-gradient(90deg, rgba(60,10,30,0.38), rgba(30,6,10,0.26)); color:#ffdfe6; border:1px solid rgba(158,252,120,0.02);}
.community-btn.forum{background:linear-gradient(90deg, rgba(40,10,30,0.32), rgba(20,6,10,0.28)); color:var(--pink);}

/* stats */
.community-stats{display:flex;gap:14px;margin-top:6px;}
.stat{background:rgba(255,255,255,0.02);padding:8px 12px;border-radius:10px;border:1px solid rgba(255,255,255,0.02);display:flex;flex-direction:column;align-items:flex-start;}
.stat-value{font-weight:900;color:var(--salad);font-size:16px;}
.stat-label{font-size:12px;color:rgba(255,255,255,0.7);}

/* right column cards */
.panel-card{background:linear-gradient(180deg, rgba(255,255,255,0.018), rgba(255,255,255,0.006));padding:12px;border-radius:12px;border:1px solid rgba(255,255,255,0.02);}
.card-header{font-weight:900;color:var(--violet);margin-bottom:8px;}
.feed-list{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:8px;}
.feed-list li{font-size:13px;color:rgba(255,255,255,0.86);display:flex;gap:8px;align-items:center;}
.dot{width:10px;height:10px;border-radius:50%;display:inline-block;margin-right:6px;flex:0 0 10px;}
.dot-salad{background:var(--salad);}
.dot-pink{background:var(--pink);}
.dot-lime{background:var(--lime);}

.muted{color:rgba(255,255,255,0.72);font-size:13px;margin-bottom:8px;}
.link-muted{font-size:13px;color:rgba(255,255,255,0.72);text-decoration:none;display:inline-block;margin-top:8px;}
.link-muted:hover{color:var(--salad);}

/* smaller screens */
@media (max-width:760px){
  .community-right{width:100%;}
  .community-grid{flex-direction:column;}
  .panel-card{padding:10px;}
}

/* Responsive */
@media (max-width:520px){
  /* layout padding */
  .panel-inner{padding:12px;}
  #topbar{padding:8px;}

  /* logo sizing */
  .pixel{width:20px;height:20px;font-size:12px;}

  /* hero adjustments */
  .hero-title{font-size:28px;}

  /* improve button readability and tappability on mobile */
  /* enforce consistent flex centering so text is perfectly centered vertically and horizontally */
  .btn,
  .partner-form-btn,
  .partner-cta,
  .tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding:12px 14px;
    font-size:15px;
    line-height:1.15;
    border-radius:12px;
    min-height:48px;
    box-shadow: 0 8px 22px rgba(0,0,0,0.45);
  }

  .btn.neon{
    background: linear-gradient(90deg, rgba(158,252,120,0.10), rgba(255,120,196,0.06));
    border:1px solid rgba(158,252,120,0.12);
  }
  .btn.ghost{
    background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
    border:1px solid rgba(255,255,255,0.04);
    color: rgba(255,255,255,0.92);
  }

  /* tabs: larger, clearer labels and touch targets */
  #tabs{left:8px; right:8px; bottom:10px; height:64px;}
  /* make each tab size to its content and center the short label */
  .tab{
    font-size:13px;
    padding:8px 12px;
    min-width:auto;
    width:auto;
    height:48px;
    border-radius:12px;
    justify-content:center;
  }
  .tab::before{margin-right:8px; font-size:15px;}

  /* show only the short label centered via ::after; keep original label for screen-readers */
  #tabs .tab .tab-label{ position:absolute; left:50%; top:50%; transform:translate(-50%,-50%); visibility:visible; height:auto; width:auto; display:block; overflow:visible; opacity:0; pointer-events:none; } /* hidden visually but present for accessibility */
  #tabs .tab::after{
    content: attr(data-short);
    visibility: visible;
    display: inline-block;
    font-weight:900;
    font-size:14px;
    color: inherit;
    letter-spacing:0.4px;
    text-align:center;
  }
  /* remove the visible dot indicator on mobile by neutralizing ::before */
  #tabs .tab::before{ content: ""; width:0; height:0; margin-right:0; font-size:0; opacity:0; }

  /* community social buttons: larger icon and label for legibility */
  .community-btn{min-height:64px; padding:10px; border-radius:12px;}
  .community-btn .social-icon{width:34px; height:34px; border-radius:8px;}
  .community-btn .c-label{font-size:12px;}

  /* partner form button (already covered above but keep sizing rule for clarity) */
  .partner-form-btn, .partner-cta{min-height:46px;}

  /* quarters / roadmap: ensure lists remain readable */
  .quarter .quarter-list{font-size:14px; line-height:1.4; padding-left:14px;}
  .quarter .quarter-tag{width:36px;height:36px;font-size:13px;}

  /* ensure small-screen icon bubble scales well */
  .icon-bubble{width:112px;height:112px; flex:0 0 112px;}
  .icon-bubble img{width:150%;height:150%; transform:translate(-20%,-20%);}

  /* partners grid single column */
  .partners-grid{grid-template-columns:repeat(1, minmax(120px,1fr));}

  /* footer spacing */
  #footer{height:56px; padding:10px 12px;}
}

/* Ensure all bottom tabs are visible on narrow screens by allowing horizontal scroll
   and preventing tabs from shrinking so items like Roadmap and Community remain accessible */
@media (max-width:520px){
  #tabs{
    overflow-x:auto;
    overflow-y:hidden;
    -webkit-overflow-scrolling:touch;
    gap:8px;
    padding:8px;
    scroll-snap-type:x mandatory;
  }
  #tabs::-webkit-scrollbar{ height:6px; }
  #tabs::-webkit-scrollbar-thumb{ background: rgba(255,255,255,0.06); border-radius:6px; }

  /* make each tab a fixed-size item that does not shrink so all tabs lay out horizontally and can be scrolled into view */
  .tab{
    flex:0 0 auto;
    min-width:72px;
    scroll-snap-align:center;
  }

  /* Partners: on small screens show a centered 4-letter short label from data-short and keep full name for accessibility */
  @media (max-width:520px){
    .partner-body .partner-name{
      position:relative;
      /* visually hide original full name but keep it accessible to screen-readers */
      color: transparent;
      -webkit-text-fill-color: transparent;
      text-shadow: none;
      white-space:nowrap;
      overflow:visible;
      height:auto;
    }
    .partner-body .partner-name::after{
      content: attr(data-short);
      position: absolute;
      left:50%;
      top:50%;
      transform: translate(-50%,-50%);
      color: inherit;
      font-weight:900;
      font-size:14px;
      letter-spacing:0.4px;
      display:inline-block;
      text-align:center;
      color:var(--salad);
      background: transparent;
      padding:0;
      min-width:40px;
    }
    /* ensure partner tile content is centered vertically for the short label */
    .partner-tile{ align-items:center; }
    .partner-body{ align-items:center; display:flex; flex-direction:column; gap:6px; text-align:center; }
    .partner-tag{ font-size:12px; opacity:0.95; }

    /* Roadmap: on small screens show a compact 4-letter short label for quarter titles using data-short */
    .quarter .quarter-title{
      position:relative;
      /* visually hide full title but keep for screen-readers */
      color: transparent;
      -webkit-text-fill-color: transparent;
      text-shadow: none;
      white-space:nowrap;
      overflow:visible;
      height:auto;
    }
    .quarter .quarter-title::after{
      content: attr(data-short);
      position: absolute;
      left:50%;
      top:50%;
      transform: translate(-50%,-50%);
      font-weight:900;
      font-size:13px;
      letter-spacing:0.4px;
      display:inline-block;
      text-align:center;
      color:var(--violet);
      background: transparent;
      padding:0 2px;
      min-width:40px;
    }
  }
}
/* ============================================================
   MOBILE RESPONSIVE — full redesign for phones (≤ 768px)
   ============================================================ */

/* ── Topbar ── */
@media (max-width: 768px) {
  #topbar {
    height: auto;
    min-height: 56px;
    padding: 8px 10px;
    gap: 8px;
    flex-wrap: nowrap;
  }
  #logo { gap: 4px; }
  #brandLogo { width: 36px; height: 36px; margin-right: 4px; }

  #actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
  }
  .bloom-balance {
    gap: 5px;
    padding: 4px 8px;
  }
  .bloom-icon { width: 18px; height: 18px; }
  .bloom-label { font-size: 10px; }
  .bloom-value { font-size: 13px; }

  /* Auth button */
  .wallet-connect-btn {
    padding: 7px 10px;
    font-size: 12px;
    border-radius: 10px;
  }
  #authBtnText { max-width: 80px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}

/* ── Main content area ── */
@media (max-width: 768px) {
  #main {
    padding: 10px 8px;
    height: calc(100% - 56px - 52px);
  }
  .panel-inner {
    padding: 14px 12px;
    border-radius: 12px;
  }
}

/* ── Hero section ── */
@media (max-width: 768px) {
  .hero-title {
    font-size: 28px !important;
    line-height: 1.25;
    margin-bottom: 10px;
  }
  .hero-sub {
    font-size: 13px;
    line-height: 1.5;
  }
  .hero-actions {
    flex-direction: column;
    gap: 8px;
    margin-top: 14px;
  }
  .hero-actions .btn {
    width: 100%;
    text-align: center;
    justify-content: center;
    padding: 12px 16px;
    font-size: 14px;
  }
}

/* ── Tabs ── */
@media (max-width: 768px) {
  #tabs {
    height: 52px;
    padding: 4px 6px;
    gap: 2px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  #tabs::-webkit-scrollbar { display: none; }
  .tab {
    padding: 6px 10px;
    font-size: 11px;
    border-radius: 8px;
    flex-shrink: 0;
    min-width: unset;
    white-space: nowrap;
  }
  .tab .tab-label { font-size: 11px; }
}

/* ── Tokenomics ── */
@media (max-width: 768px) {
  .tokenomics-grid {
    flex-direction: column;
    align-items: center;
    gap: 14px;
  }
  .chart-wrap {
    width: 220px;
    height: 220px;
  }
  #tokenChart { width: 220px; height: 220px; }
  .token-breakdown { width: 100%; }
  .token-list li { font-size: 13px; padding: 7px 6px; }
}

/* ── Games ── */
@media (max-width: 768px) {
  .games-menu-inner {
    flex-direction: column;
    gap: 12px;
  }
  .game-card {
    width: 100%;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    padding: 12px;
  }
  .game-art {
    width: 80px;
    height: 70px;
    flex-shrink: 0;
    border-radius: 10px;
    overflow: hidden;
  }
  .game-art img { width: 100%; height: 100%; object-fit: cover; }
  .game-title { font-size: 16px; }
  .game-desc { font-size: 12px; }
  .game-select-play { padding: 8px 16px; font-size: 13px; }
}

/* ── Leaderboard ── */
@media (max-width: 768px) {
  #leaderboard table { font-size: 13px; }
  #leaderboard th, #leaderboard td { padding: 7px 5px; }
}

/* ── GreenDAO ── */
@media (max-width: 768px) {
  .dao-proposals { gap: 10px; }
  .proposal-card { padding: 12px; }
  .proposal-title { font-size: 14px; }
  .vote-actions { flex-direction: column; gap: 6px; }
  .vote-actions .btn { width: 100%; }
}

/* ── Community ── */
@media (max-width: 768px) {
  .social-links { flex-wrap: wrap; gap: 10px; }
  .social-link { padding: 10px 14px; font-size: 13px; }
}

/* ── Partners ── */
@media (max-width: 768px) {
  #partners .panel-inner > div {
    flex-direction: column !important;
  }
  .partners-grid {
    grid-template-columns: 1fr !important;
    gap: 12px;
  }
  .partner-tile { padding: 12px; }
  #partners aside {
    width: 100% !important;
    min-width: unset !important;
  }
}

/* ── Footer ── */
@media (max-width: 768px) {
  .footer-inner {
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 12px 10px;
    text-align: center;
  }
  .footer-nav { flex-wrap: wrap; justify-content: center; gap: 8px; }
  .footer-social { justify-content: center; gap: 12px; }
  .footer-social-link img { width: 24px; height: 24px; }
  .footer-disclaimer { font-size: 11px; }
  .footer-eco { font-size: 11px; display: none; }
}

/* ── Auth modal ── */
@media (max-width: 768px) {
  #authPanel {
    max-width: 100% !important;
    border-radius: 16px !important;
    margin: 0 8px;
  }
  #authPanel input {
    font-size: 16px !important; /* prevents iOS zoom */
  }
}

/* ── Panels headings ── */
@media (max-width: 768px) {
  .panel-inner h2 { font-size: 22px; margin-bottom: 10px; }
  .panel-inner h3 { font-size: 16px; }
  .panel-inner p  { font-size: 13px; }
}

/* ── Buttons global ── */
@media (max-width: 480px) {
  .btn { font-size: 13px; padding: 9px 14px; }
  .btn.neon { padding: 10px 16px; }
}

/* ── Touch improvements ── */
@media (max-width: 768px) {
  .tab, .btn, .crypto-btn, .network-btn {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }
  /* Prevent text selection on tap */
  #tabs, .hero-actions, .game-meta {
    -webkit-user-select: none;
    user-select: none;
  }
}
/* ============================================================
   END MOBILE RESPONSIVE
   ============================================================ */

/* ===== DAO PHOTO STREAMS ===== */
.dao-stream-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.dao-stream-label {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--salad);
  text-align: center;
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(158,252,120,0.08);
  border: 1px solid rgba(158,252,120,0.15);
  white-space: nowrap;
}
.dao-stream {
  width: 130px;
  height: 520px;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(0,0,0,0.3);
  position: relative;
}
.dao-stream::before,
.dao-stream::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  height: 60px;
  z-index: 2;
  pointer-events: none;
}
.dao-stream::before {
  top: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.8), transparent);
}
.dao-stream::after {
  bottom: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
}
.dao-stream-inner {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 6px;
  animation: streamScroll 28s linear infinite;
}
#streamRightInner {
  animation-duration: 34s;
  animation-direction: normal;
}
.dao-stream-img {
  width: 118px;
  height: 90px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
  display: block;
}
@keyframes streamScroll {
  0%   { transform: translateY(0); }
  100% { transform: translateY(-50%); }
}
.dao-stream:hover .dao-stream-inner { animation-play-state: paused; }

@media (max-width: 900px) {
  .dao-stream-wrap { display: none; }
}
/* ===== END DAO PHOTO STREAMS ===== */
