
  /* ── Reset ── */
  *, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

  :root {
    --font-pixel: 'Press Start 2P', monospace;
    --font-vt: 'VT323', monospace;

    /* Black / Pink / Purple palette */
    --gb-darkest:  #141414;
    --gb-dark:     #222222;
    --gb-light:    #ff6b9d;
    --gb-lightest: #ffb3d0;

    /* Extended palette */
    --pink: #ff4d8d;
    --pink-light: #ff8ab5;
    --blue: #9b7aff;
    --purple: #8b5cf6;
    --yellow: #c084fc;
    --mint: #a78bfa;

    --bg: #121212;
    --screen-bg: #181818;
    --text: #ffb3d0;
    --border-color: #2a2a2a;

    --pixel-border: 4px;
    --max-w: 720px;
  }

  html { font-size: 16px; scroll-behavior: smooth; }

  body {
    font-family: var(--font-vt);
    background: #121212;
    color: var(--text);
    line-height: 1.6;
    image-rendering: pixelated;
    overflow-x: hidden;
  }

  a { color: inherit; text-decoration: none; }

  /* ── Scanline overlay ── */
  body::after {
    content: '';
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(255, 77, 141, 0.015) 2px,
      rgba(255, 77, 141, 0.015) 4px
    );
    pointer-events: none;
    z-index: 9999;
  }

  /* ── Background Video ── */
  .bg-video-wrap {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: -1;
    overflow: hidden;
  }
  .bg-video-wrap video {
    width: 100%; height: 100%;
    object-fit: cover;
    opacity: 0.05;
    filter: grayscale(1) contrast(1.5);
  }

  /* ── Pixel border mixin via box-shadow ── */
  .pixel-box {
    background: var(--screen-bg);
    border: var(--pixel-border) solid var(--gb-dark);
    box-shadow:
      inset -4px -4px 0px var(--gb-dark),
      inset 4px 4px 0px var(--gb-lightest),
      8px 8px 0px rgba(0,0,0,0.3);
    image-rendering: pixelated;
  }

  /* ── Animations ── */
  @keyframes blink-cursor {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
  }

  @keyframes float-bounce {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-6px); }
  }

  @keyframes gb-shimmer {
    0%   { background-position: 200% center; }
    100% { background-position: -200% center; }
  }

  @keyframes aurora-text {
    0%   { background-position: 0% 50%; }
    25%  { background-position: 50% 100%; }
    50%  { background-position: 100% 50%; }
    75%  { background-position: 50% 0%; }
    100% { background-position: 0% 50%; }
  }

  /* ── Aurora Text - applies to ALL text ── */
  .hero h1,
  .hero .subtitle,
  .stat-number,
  .stat-label,
  .stat-center-label,
  .cost-value,
  .cost-label,
  .stat-wallet,
  .stats-bottom-cell a,
  .birth p,
  .ca-pill,
  .day-number,
  .day-label,
  .day-date,
  .explainer p,
  .explainer em,
  .flow-message,
  .flow-cost,
  .ritual-title,
  .ritual-num,
  .ritual-text,
  .ritual-toggle,
  .ritual-body,
  .token-dist-title,
  .token-dist-title span,
  .token-bar-segment,
  .token-legend-item,
  .closing p,
  .cta-btn {
    background: linear-gradient(
      135deg,
      #ff4d8d 0%, #ff6b9d 15%, #c084fc 30%,
      #8b5cf6 45%, #ff8ab5 60%, #a78bfa 75%,
      #ffb3d0 90%, #ff4d8d 100%
    );
    background-size: 400% 400%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: aurora-text 8s ease-in-out infinite;
  }

  /* CTA keeps its box background - override to layer text aurora on button */
  .cta-btn {
    background:
      linear-gradient(135deg, #ff4d8d, #c084fc, #8b5cf6, #ff8ab5, #ff4d8d);
    background-size: 400% 400%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: aurora-text 8s ease-in-out infinite;
    border: 2px solid;
    border-image: linear-gradient(135deg, #ff4d8d, #8b5cf6, #c084fc, #ff4d8d) 1;
  }

  /* Explainer em - keep pill shape but aurora text */
  .explainer em {
    background: var(--gb-dark);
    -webkit-background-clip: unset;
    background-clip: unset;
    -webkit-text-fill-color: unset;
    animation: none;
    /* Use a span inside instead */
    color: transparent;
    background: linear-gradient(135deg, #00ffcc, #00e5ff, #7b61ff, #c084fc, #f472b6, #4ade80, #00ffcc);
    background-size: 400% 400%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: aurora-text 8s ease-in-out infinite;
  }

  /* Flow messages - keep border/bg but aurora the text */
  .flow-message {
    background: rgba(255, 77, 141, 0.08) !important;
    -webkit-background-clip: unset !important;
    background-clip: unset !important;
    -webkit-text-fill-color: unset;
    border: 1px solid rgba(255, 77, 141, 0.25);
    border-radius: 8px;
    color: #ffb3d0;
    text-shadow: 0 0 8px rgba(255, 77, 141, 0.3);
  }

  /* Flow cost box */
  .flow-cost {
    background: rgba(139, 92, 246, 0.1) !important;
    -webkit-background-clip: unset !important;
    background-clip: unset !important;
    -webkit-text-fill-color: unset;
    color: #c084fc;
    text-shadow: 0 0 10px rgba(192, 132, 252, 0.4);
    border: 1px solid rgba(139, 92, 246, 0.3);
  }

  /* Token bar segments need solid bg colors, not text aurora */
  .token-bar-segment {
    -webkit-text-fill-color: var(--gb-darkest) !important;
    -webkit-background-clip: unset !important;
    background-clip: unset !important;
    animation: none !important;
  }
  .token-bar-segment:nth-child(1) { background: #ff4d8d !important; }
  .token-bar-segment:nth-child(2) { background: #8b5cf6 !important; }
  .token-bar-segment:nth-child(3) { background: #c084fc !important; }
  .token-bar-segment:nth-child(4) { background: #ff8ab5 !important; }
  .token-bar-segment:nth-child(5) { background: #2a2a2a !important; color: #c084fc !important; -webkit-text-fill-color: #c084fc !important; }

  /* Token dots match */
  .token-legend-item:nth-child(1) .token-dot { background: #ff4d8d !important; }
  .token-legend-item:nth-child(2) .token-dot { background: #8b5cf6 !important; }
  .token-legend-item:nth-child(3) .token-dot { background: #c084fc !important; }
  .token-legend-item:nth-child(4) .token-dot { background: #ff8ab5 !important; }
  .token-legend-item:nth-child(5) .token-dot { background: #2a2a2a !important; border: 1px solid #c084fc !important; }

  /* Stat wallet - keep as a pill but aurora text */
  .stat-wallet {
    background: var(--gb-dark) !important;
    -webkit-background-clip: unset !important;
    background-clip: unset !important;
    -webkit-text-fill-color: unset;
    color: #ff8ab5;
    text-shadow: 0 0 8px rgba(255, 138, 181, 0.3);
    border: 1px solid rgba(255, 77, 141, 0.3);
  }

  /* Token dist title span - keep border pill */
  .token-dist-title span {
    background: rgba(139, 92, 246, 0.1) !important;
    -webkit-background-clip: unset !important;
    background-clip: unset !important;
    -webkit-text-fill-color: unset;
    color: #c084fc;
    text-shadow: 0 0 8px rgba(192, 132, 252, 0.3);
    border: 1px solid rgba(139, 92, 246, 0.3);
  }

  @keyframes message-flow {
    0%   { transform: translateX(60vw); opacity: 0; }
    10%  { opacity: 1; }
    85%  { opacity: 1; }
    100% { transform: translateX(-20px); opacity: 0; }
  }

  @keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    15% { transform: scale(1.15); }
    30% { transform: scale(1); }
    45% { transform: scale(1.1); }
  }

  @keyframes pixel-fade-in {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  /* ── Page wrapper ── */
  .page {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 1rem;
  }

  /* ── Tamagotchi Shell ── */
  /* ── Arcade Cabinet ── */
  .arcade-wrapper {
    position: relative;
    margin: 0 auto;
    max-width: 500px;
    width: 90%;
  }
  .arcade-wrapper img.arcade-img {
    width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(0 0 40px rgba(255, 77, 141, 0.12));
  }

  /* Screen overlay — positioned over the arcade screen area */
  .arcade-screen-overlay {
    position: absolute;
    top: 2%;
    left: 8.5%;
    width: 83%;
    height: 53%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3% 4%;
    z-index: 2;
  }

  /* CRT scanline effect on the overlay */
  .arcade-screen-overlay::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(0,0,0,0.06) 2px,
      rgba(0,0,0,0.06) 4px
    );
    pointer-events: none;
    z-index: 3;
  }

  /* Subtle screen glow */
  .arcade-screen-overlay::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(ellipse at 50% 40%, rgba(139, 92, 246, 0.06), transparent 70%);
    pointer-events: none;
  }

  /* Compact overrides for stats inside arcade screen */
  .arcade-screen-overlay .stats-top {
    gap: 0;
    margin-bottom: 0.25rem;
  }
  .arcade-screen-overlay .stat-number {
    font-size: clamp(0.9rem, 3vw, 1.4rem);
    color: #ffb3d0;
  }
  .arcade-screen-overlay .stat-label {
    font-size: 0.35rem;
    color: #ff6b9d;
  }
  .arcade-screen-overlay .live-clock {
    font-size: 0.4rem;
    min-width: 80px;
    padding: 0.15rem 0.3rem;
    border-color: rgba(255, 77, 141, 0.2);
  }
  .arcade-screen-overlay .stat-center-label {
    font-size: 0.4rem;
    color: #ff6b9d;
    margin-bottom: 0.25rem;
  }
  .arcade-screen-overlay .cost-value {
    font-size: 0.7rem;
    color: #ffb3d0;
  }
  .arcade-screen-overlay .cost-label {
    font-size: 0.3rem;
    color: #ff6b9d;
  }
  .arcade-screen-overlay .stat-cost-row {
    gap: 0.75rem;
  }
  .arcade-screen-overlay .stat-wallet {
    font-size: 0.35rem;
    padding: 0.2rem 0.4rem;
    margin-top: 0.3rem;
  }
  .arcade-screen-overlay .stat-cell {
    border-right-color: rgba(255, 77, 141, 0.15);
  }
  .arcade-screen-overlay .mew-stats-bars {
    gap: 0.2rem;
    padding: 0.3rem 0;
  }
  .arcade-screen-overlay .mew-stat-label {
    font-size: 0.3rem;
    min-width: 40px;
  }
  .arcade-screen-overlay .mew-stat-icon {
    font-size: 0.7rem;
  }
  .arcade-screen-overlay .mew-stat-val {
    font-size: 0.35rem;
    min-width: 20px;
  }
  .arcade-screen-overlay .mew-stat-track {
    height: 6px;
  }
  .arcade-screen-overlay .stats-bottom {
    margin-top: 0.3rem;
    padding: 0 0.25rem;
  }
  .arcade-screen-overlay .stats-bottom-cell a {
    font-size: 0.35rem;
  }

  /* ── Nav ── */
  .nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0.75rem 1.5rem;
    background: rgba(18, 18, 18, 0.95);
    border-bottom: 1px solid #2a2a2a;
    box-shadow: 0 4px 20px rgba(255, 77, 141, 0.08);
  }

  .nav-logo {
    font-family: var(--font-pixel);
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    background: linear-gradient(135deg, #ff4d8d, #c084fc, #8b5cf6, #ffb3d0, #ff4d8d);
    background-size: 400% 400%;
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: aurora-text 8s ease-in-out infinite;
  }
  .nav-logo::after {
    content: '♥';
    margin-left: 0.5rem;
    -webkit-text-fill-color: #f472b6;
    animation: heartbeat 1.5s ease-in-out infinite;
    display: inline-block;
    filter: drop-shadow(0 0 4px rgba(244, 114, 182, 0.6));
  }

  .nav-hamburger {
    display: flex; flex-direction: column; gap: 4px; cursor: pointer;
    position: relative;
  }
  .nav-hamburger span {
    width: 24px; height: 3px;
    background: #ff4d8d;
    display: block;
    image-rendering: pixelated;
  }

  /* Dropdown menu */
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: rgba(20, 20, 20, 0.98);
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    padding: 0.5rem 0;
    min-width: 160px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.5), 0 0 20px rgba(255, 77, 141, 0.1);
    z-index: 200;
    margin-top: 8px;
  }
  .nav-menu.open { display: block; }
  .nav-menu a {
    display: block;
    padding: 0.6rem 1.2rem;
    font-family: var(--font-pixel);
    font-size: 0.5rem;
    color: var(--text);
    letter-spacing: 1px;
    transition: background 0.15s;
  }
  .nav-menu a:hover {
    background: rgba(255, 77, 141, 0.12);
    color: #ff4d8d;
  }
  .nav-menu a.active {
    color: #ff4d8d;
  }
  .nav-menu a.active::before {
    content: '► ';
  }

  /* Wallet Connect Button */
  .wallet-btn {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: #1a1a1a;
    border: 1.5px solid #2a2a2a;
    border-radius: 20px;
    padding: 0.35rem 0.85rem;
    cursor: pointer;
    transition: all 0.15s;
    font-family: var(--font-pixel);
    font-size: 0.4rem;
    color: #888;
    letter-spacing: 1px;
    white-space: nowrap;
  }
  .wallet-btn:hover {
    border-color: #ff4d8d;
    color: #fff;
    box-shadow: 0 0 15px rgba(255, 77, 141, 0.2);
  }
  .wallet-btn.connected {
    border-color: #34d399;
    color: #34d399;
    box-shadow: 0 0 12px rgba(52, 211, 153, 0.15);
  }
  .wallet-btn.connected:hover {
    border-color: #f87171;
    color: #f87171;
    box-shadow: 0 0 12px rgba(248, 113, 113, 0.2);
  }
  .wallet-btn-icon { font-size: 0.85rem; }

  /* ── Hero ── */
  .hero {
    text-align: center;
    padding: 7rem 1rem 2rem;
  }

  .hero h1 {
    font-family: var(--font-pixel);
    font-size: clamp(1.2rem, 4vw, 1.8rem);
    color: var(--gb-lightest);
    line-height: 2;
    margin-bottom: 1rem;
  }

  .hero .shimmer {
    background: linear-gradient(135deg, #ff4d8d, #ffb3d0, #c084fc, #8b5cf6, #ff8ab5, #ff4d8d);
    background-size: 400% 400%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: aurora-text 6s ease-in-out infinite;
  }

  .hero .subtitle, .subtitle {
    font-family: var(--font-vt);
    font-size: clamp(1.2rem, 3vw, 1.6rem);
    color: var(--gb-light);
    letter-spacing: 1px;
  }

  /* Kawaii face decoration */
  .hero::after {
    content: '( ◕‿◕✿ )';
    display: block;
    font-size: 1.5rem;
    margin-top: 1.5rem;
    animation: float-bounce 3s ease-in-out infinite;
    color: #ff8ab5;
    text-shadow: 0 0 8px rgba(255, 138, 181, 0.4);
  }

  /* ── Stats Grid - inside Tamagotchi ── */
  /* Music Toggle */
  .music-toggle {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 1000;
    background: #1a1a1a;
    border: 2px solid #2a2a2a;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    font-size: 1.3rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.15);
  }
  .music-toggle:hover {
    border-color: #ff4d8d;
    box-shadow: 0 0 25px rgba(255, 77, 141, 0.3);
    transform: scale(1.1);
  }
  .music-toggle.playing {
    border-color: #ff4d8d;
    animation: pulse-glow 2s ease-in-out infinite;
  }
  @keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 15px rgba(255, 77, 141, 0.2); }
    50% { box-shadow: 0 0 30px rgba(255, 77, 141, 0.5); }
  }

  /* Giant Alive Clock */
  .alive-clock-section {
    text-align: center;
    padding: 2rem 0 1rem;
  }
  .alive-clock-label {
    font-family: var(--font-pixel);
    font-size: 0.55rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #ff8ab5;
    margin-bottom: 0.75rem;
  }
  .alive-clock-display {
    font-family: var(--font-pixel);
    font-size: clamp(2.5rem, 8vw, 5rem);
    letter-spacing: 4px;
    padding: 1rem 2rem;
    border: 2px solid #2a2a2a;
    border-radius: 16px;
    background: #141414;
    display: inline-block;
    box-shadow:
      0 0 30px rgba(255, 77, 141, 0.15),
      0 0 60px rgba(139, 92, 246, 0.1),
      inset 0 0 20px rgba(0,0,0,0.5);
    /* Aurora text */
    background: linear-gradient(135deg, #ff4d8d, #c084fc, #8b5cf6, #ff8ab5, #ff4d8d);
    background-size: 400% 400%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: auroraShift 8s ease-in-out infinite;
    position: relative;
  }
  .alive-clock-display::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    border: 2px solid #2a2a2a;
    background: #141414;
    z-index: -1;
    box-shadow:
      0 0 30px rgba(255, 77, 141, 0.15),
      0 0 60px rgba(139, 92, 246, 0.1),
      inset 0 0 20px rgba(0,0,0,0.5);
  }
  .alive-clock-sub {
    font-family: var(--font-body);
    font-size: 1.2rem;
    color: #666;
    margin-top: 0.5rem;
    letter-spacing: 2px;
  }

  .stats-grid {
    padding: 2rem 0;
  }

  .stats-box {
    /* Will be inside monitor-screen via JS-free layout */
  }

  .stats-top {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    border: 2px solid #2a2a2a;
    background: #181818;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.05);
  }

  .stat-cell {
    padding: 1rem 1.5rem;
    text-align: center;
    border-right: 1px solid #2a2a2a;
    white-space: nowrap;
  }
  .stat-cell:last-child { border-right: none; }

  .stat-number {
    font-family: var(--font-pixel);
    font-size: clamp(1.4rem, 4vw, 2rem);
    color: var(--gb-darkest);
    line-height: 1.2;
  }

  .live-clock {
    font-family: var(--font-pixel);
    font-size: 0.6rem;
    letter-spacing: 2px;
    margin-top: 0.4rem;
    padding: 0.3rem 0.5rem;
    border: 1px solid #2a2a2a;
    border-radius: 4px;
    background: rgba(255, 77, 141, 0.06);
    display: inline-block;
    min-width: 120px;
    text-align: center;
    /* Aurora text */
    background: linear-gradient(135deg, #ff4d8d, #c084fc, #8b5cf6, #ff8ab5, #ff4d8d);
    background-size: 400% 400%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: aurora-text 8s ease-in-out infinite;
    text-shadow: none;
  }

  .stat-label {
    font-family: var(--font-pixel);
    font-size: 0.5rem;
    color: var(--gb-dark);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.25rem;
  }

  .stat-center-label {
    font-family: var(--font-pixel);
    font-size: 0.55rem;
    color: var(--gb-dark);
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
  }

  .stat-cost-row {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
  }

  .cost-value {
    font-family: var(--font-pixel);
    font-size: 1rem;
    color: var(--gb-darkest);
  }

  .cost-label {
    font-family: var(--font-pixel);
    font-size: 0.45rem;
    color: var(--gb-dark);
    text-transform: uppercase;
  }

  .stat-wallet {
    font-family: var(--font-pixel);
    font-size: 0.55rem;
    color: var(--gb-darkest);
    background: rgba(255, 77, 141, 0.1);
    border-radius: 4px;
    padding: 0.4rem 0.75rem;
    margin-top: 0.75rem;
    display: inline-block;
    border: 1px solid rgba(255, 77, 141, 0.3);
    box-shadow: 0 0 10px rgba(255, 77, 141, 0.1);
  }

  .stats-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding: 0 1rem;
    gap: 1.5rem;
  }

  .stats-bottom-cell {
    text-align: center;
    flex: 1;
  }

  .stats-bottom-cell a {
    font-family: var(--font-pixel);
    font-size: 0.5rem;
    color: var(--gb-light);
    text-decoration: underline;
    text-decoration-style: dotted;
    text-underline-offset: 3px;
    white-space: nowrap;
  }

  .cta-btn {
    font-family: var(--font-pixel);
    font-size: 0.65rem;
    color: #ff4d8d;
    background: rgba(255, 77, 141, 0.08);
    border: 2px solid #ff4d8d;
    border-radius: 10px;
    padding: 1rem 2rem;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 2px;
    box-shadow: 0 0 25px rgba(255, 77, 141, 0.2);
    transition: all 0.1s;
    position: relative;
    white-space: nowrap;
  }
  .cta-btn:hover {
    background: rgba(255, 77, 141, 0.2);
    box-shadow: 0 0 30px rgba(255, 77, 141, 0.25);
  }
  .cta-btn:active {
    transform: translateY(2px);
    box-shadow:
      inset 0 2px 0 rgba(0,0,0,0.1),
      0 2px 0 var(--gb-darkest);
  }
  .cta-btn::before {
    content: '★ ';
  }
  .cta-btn::after {
    content: ' ★';
  }

  /* ── Mew Stats Bars ── */
  .mew-stats-bars {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem 2rem;
    margin-top: 1.25rem;
    padding: 0 0.5rem;
  }
  .mew-stat-bar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }
  .mew-stat-icon {
    font-size: 1rem;
    width: 1.2rem;
    text-align: center;
  }
  .mew-stat-label {
    font-family: var(--font-pixel);
    font-size: 0.4rem;
    color: #888;
    width: 3.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
  }
  .mew-stat-track {
    flex: 1;
    height: 12px;
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
  }
  .mew-stat-fill {
    height: 100%;
    border-radius: 5px;
    transition: width 0.5s ease;
    position: relative;
  }
  .mew-stat-fill::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 50%;
    background: linear-gradient(180deg, rgba(255,255,255,0.2), transparent);
    border-radius: 5px 5px 0 0;
  }
  .health-fill { background: linear-gradient(90deg, #ff4d8d, #ff6b9d); }
  .happy-fill { background: linear-gradient(90deg, #ffb347, #ffcc33); }
  .active-fill { background: linear-gradient(90deg, #8b5cf6, #c084fc); }
  .social-fill { background: linear-gradient(90deg, #34d399, #6ee7b7); }
  .mew-stat-val {
    font-family: var(--font-pixel);
    font-size: 0.45rem;
    color: var(--gb-light);
    width: 1.5rem;
    text-align: right;
  }

  /* ── Trollbox ── */
  .trollbox-toggle {
    position: fixed;
    bottom: 1.5rem;
    left: 1.5rem;
    z-index: 999;
    background: #1a1a1a;
    border: 2px solid #2a2a2a;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    font-size: 1.3rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
    box-shadow: 0 0 15px rgba(255, 77, 141, 0.15);
  }
  .trollbox-toggle:hover {
    border-color: #ff4d8d;
    box-shadow: 0 0 25px rgba(255, 77, 141, 0.3);
    transform: scale(1.1);
  }
  .trollbox-toggle .unread-badge {
    position: absolute;
    top: -4px; right: -4px;
    background: #ff4d8d;
    color: #fff;
    font-size: 0.5rem;
    font-family: var(--font-pixel);
    width: 18px; height: 18px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
  }
  .trollbox-toggle .unread-badge.show { display: flex; }

  .trollbox {
    position: fixed;
    bottom: 5rem;
    left: 1.5rem;
    width: 340px;
    max-height: 450px;
    background: rgba(18, 18, 18, 0.97);
    border: 2px solid #2a2a2a;
    border-radius: 16px;
    z-index: 998;
    display: none;
    flex-direction: column;
    box-shadow: 0 8px 32px rgba(0,0,0,0.6), 0 0 20px rgba(255, 77, 141, 0.08);
    overflow: hidden;
  }
  .trollbox.open { display: flex; }

  .trollbox-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 0.8rem;
    background: rgba(255, 77, 141, 0.08);
    border-bottom: 1px solid #2a2a2a;
  }
  .trollbox-title {
    font-family: var(--font-pixel);
    font-size: 0.45rem;
    color: #ff4d8d;
    letter-spacing: 1px;
    text-transform: uppercase;
  }
  .trollbox-online {
    font-family: var(--font-pixel);
    font-size: 0.35rem;
    color: #34d399;
  }

  .trollbox-messages {
    flex: 1;
    overflow-y: auto;
    padding: 0.5rem;
    max-height: 320px;
    scroll-behavior: smooth;
  }
  .trollbox-messages::-webkit-scrollbar { width: 4px; }
  .trollbox-messages::-webkit-scrollbar-track { background: transparent; }
  .trollbox-messages::-webkit-scrollbar-thumb { background: #2a2a2a; border-radius: 2px; }

  .troll-msg {
    margin-bottom: 0.4rem;
    padding: 0.3rem 0.5rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    word-wrap: break-word;
    animation: msg-fade-in 0.2s ease;
  }
  @keyframes msg-fade-in {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
  }
  .troll-msg-name {
    font-family: var(--font-pixel);
    font-size: 0.3rem;
    color: #c084fc;
    margin-right: 0.3rem;
  }
  .troll-msg-time {
    font-family: var(--font-pixel);
    font-size: 0.25rem;
    color: #444;
  }
  .troll-msg-text {
    font-family: var(--font-vt);
    font-size: 0.95rem;
    color: #ccc;
    margin-top: 0.15rem;
    line-height: 1.3;
  }

  .trollbox-input-row {
    display: flex;
    padding: 0.5rem;
    gap: 0.4rem;
    border-top: 1px solid #2a2a2a;
    background: rgba(0,0,0,0.3);
  }
  .trollbox-input {
    flex: 1;
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    padding: 0.4rem 0.6rem;
    font-family: var(--font-vt);
    font-size: 1rem;
    color: #eee;
    outline: none;
  }
  .trollbox-input::placeholder { color: #444; }
  .trollbox-input:focus { border-color: #ff4d8d; }
  .trollbox-send {
    background: #ff4d8d;
    border: none;
    border-radius: 8px;
    padding: 0.4rem 0.7rem;
    font-family: var(--font-pixel);
    font-size: 0.35rem;
    color: #fff;
    cursor: pointer;
    transition: background 0.15s;
    white-space: nowrap;
  }
  .trollbox-send:hover { background: #ff6ba3; }
  .trollbox-send:active { transform: scale(0.95); }

  /* Mobile trollbox */
  @media (max-width: 500px) {
    .trollbox {
      left: 0.5rem;
      right: 0.5rem;
      bottom: 4.5rem;
      width: auto;
    }
  }

  /* ── Action Buttons (On-Chain) ── */
  .tama-actions {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    padding: 0;
  }
  /* ── Mew Status Panel & Event Feed ── */
  .mew-status-panel {
    margin-top: 1.5rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 12px;
    text-align: center;
  }
  .mew-status-line {
    font-family: var(--font-pixel);
    font-size: 0.4rem;
    color: #c084fc;
    margin-bottom: 0.5rem;
  }
  .mew-interaction-count {
    font-family: var(--font-vt);
    font-size: 0.75rem;
    color: rgba(255,255,255,0.4);
    margin-bottom: 0.75rem;
  }
  .event-feed {
    text-align: left;
    max-height: 150px;
    overflow-y: auto;
  }
  .event-item {
    font-family: var(--font-vt);
    font-size: 0.7rem;
    color: rgba(255,255,255,0.6);
    padding: 0.25rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
  }
  .event-item:last-child { border-bottom: none; }
  .event-time {
    float: right;
    color: rgba(255,255,255,0.25);
    font-size: 0.6rem;
  }

  .tama-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    background: #1a1a1a;
    border: 2px solid #2a2a2a;
    border-radius: 16px;
    padding: 0.75rem 1.25rem;
    cursor: pointer;
    transition: all 0.15s;
    min-width: 70px;
  }
  .tama-action-btn:hover {
    border-color: #ff4d8d;
    box-shadow: 0 0 20px rgba(255, 77, 141, 0.2);
    transform: translateY(-2px);
  }
  .tama-action-btn:active {
    transform: translateY(1px);
    box-shadow: inset 0 2px 0 rgba(0,0,0,0.2);
  }
  .action-feed:hover { border-color: #ff4d8d; box-shadow: 0 0 20px rgba(255, 77, 141, 0.3); }
  .action-hug:hover { border-color: #ffb347; box-shadow: 0 0 20px rgba(255, 179, 71, 0.3); }
  .action-play:hover { border-color: #8b5cf6; box-shadow: 0 0 20px rgba(139, 92, 246, 0.3); }
  .action-talk:hover { border-color: #34d399; box-shadow: 0 0 20px rgba(52, 211, 153, 0.3); }
  .action-icon {
    font-size: 1.5rem;
  }
  .action-label {
    font-family: var(--font-pixel);
    font-size: 0.4rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
  }
  .tama-action-btn:hover .action-label { color: #fff; }
  .tama-action-btn.on-cooldown {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
  }

  /* ── Birth Statement ── */
  .birth {
    text-align: center;
    padding: 2.5rem 1rem;
  }

  .birth p {
    font-family: var(--font-vt);
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    color: var(--gb-lightest);
    line-height: 1.8;
  }

  .ca-pill {
    display: inline-block;
    font-family: var(--font-vt);
    font-size: 0.85rem;
    color: #000;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 20px;
    padding: 0.4rem 1rem;
    margin-top: 1rem;
    cursor: pointer;
    word-break: break-all;
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.08);
  }
  .ca-pill:hover { background: rgba(139, 92, 246, 0.15); }

  /* ── Giant CA Banner ── */
  .ca-banner {
    display: block;
    text-align: center;
    padding: 1.25rem 1rem;
    margin: 1.5rem auto;
    max-width: 640px;
    background: linear-gradient(135deg, #ff4d8d, #c084fc, #8b5cf6);
    background-size: 300% 300%;
    animation: aurora-text 6s ease-in-out infinite;
    border-radius: 16px;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
    box-shadow: 0 0 30px rgba(255, 77, 141, 0.3), 0 0 60px rgba(139, 92, 246, 0.15);
    position: relative;
    overflow: hidden;
  }
  .ca-banner:hover {
    transform: scale(1.02);
    box-shadow: 0 0 40px rgba(255, 77, 141, 0.5), 0 0 80px rgba(139, 92, 246, 0.25);
  }
  .ca-banner:active { transform: scale(0.98); }
  .ca-banner-label {
    font-family: var(--font-pixel);
    font-size: 0.45rem;
    color: rgba(255,255,255,0.7);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
  }
  .ca-banner-address {
    font-family: var(--font-vt);
    font-size: clamp(1rem, 3vw, 1.5rem);
    color: #fff;
    letter-spacing: 1px;
    word-break: break-all;
    line-height: 1.4;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
  }
  .ca-banner-hint {
    font-family: var(--font-pixel);
    font-size: 0.3rem;
    color: rgba(255,255,255,0.5);
    margin-top: 0.5rem;
    letter-spacing: 1px;
  }

  /* ── Day Counters ── */
  .day-counter {
    padding: 2.5rem 0;
    position: relative;
  }

  .day-counter-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    position: relative;
    max-width: 600px;
    margin: 0 auto;
  }

  /* Center divider - pixel dotted line */
  .day-counter-inner::before {
    content: '';
    position: absolute;
    left: 50%; top: 0; bottom: 0;
    width: 3px;
    background: repeating-linear-gradient(
      180deg,
      rgba(255, 77, 141, 0.3) 0px,
      rgba(255, 77, 141, 0.3) 6px,
      transparent 6px,
      transparent 12px
    );
    transform: translateX(-50%);
  }

  /* Pixel heart at center */
  .day-counter-inner::after {
    content: '♥';
    position: absolute;
    left: 50%; top: 50%;
    transform: translate(-50%, -50%);
    font-size: 1rem;
    color: var(--pink);
    background: #161616;
    padding: 0.25rem 0.4rem;
    border-radius: 4px;
    border: 1px solid #2a2a2a;
    z-index: 1;
    animation: heartbeat 2s ease-in-out infinite;
  }

  .day-side {
    text-align: center;
    padding: 1rem;
  }

  .day-number {
    font-family: var(--font-pixel);
    font-size: clamp(1.8rem, 8vw, 3.5rem);
    color: var(--gb-lightest);
    line-height: 1.2;
    text-shadow: 3px 3px 0 rgba(0,0,0,0.3);
  }

  .day-label {
    font-family: var(--font-pixel);
    font-size: 0.45rem;
    color: var(--gb-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.5rem;
  }

  .day-date {
    font-family: var(--font-vt);
    font-size: 1rem;
    color: var(--gb-dark);
    margin-top: 0.25rem;
    /* Bright on dark bg */
    color: var(--gb-light);
    opacity: 0.7;
  }

  /* ── Explainer ── */
  .explainer {
    text-align: center;
    padding: 2rem 1rem;
  }

  .explainer p {
    font-family: var(--font-vt);
    font-size: clamp(1.3rem, 3vw, 1.8rem);
    color: var(--gb-lightest);
    line-height: 2;
  }

  .explainer em {
    font-style: normal;
    background: var(--gb-light);
    color: var(--gb-darkest);
    padding: 0.1rem 0.5rem;
    border-radius: 4px;
    font-family: var(--font-pixel);
    font-size: 0.8em;
    box-shadow: 2px 2px 0 rgba(0,0,0,0.2);
  }

  /* ── Message Flow ── */
  .message-flow-section {
    position: relative;
    height: 200px;
    overflow: hidden;
    margin: 1rem 0;
    border-top: 1px dashed rgba(255, 77, 141, 0.15);
    border-bottom: 1px dashed rgba(255, 77, 141, 0.15);
    background: rgba(139, 92, 246, 0.03);
  }

  .flow-message {
    position: absolute;
    font-family: var(--font-pixel);
    font-size: 0.5rem;
    color: var(--gb-lightest);
    background: var(--gb-dark);
    border: 2px solid var(--gb-light);
    border-radius: 8px 8px 8px 0;
    padding: 0.5rem 0.75rem;
    white-space: nowrap;
    animation: message-flow 12s linear infinite;
    box-shadow: 2px 2px 0 rgba(0,0,0,0.3);
  }
  .flow-message:nth-child(2) { animation-delay: -2s; }
  .flow-message:nth-child(3) { animation-delay: -4s; }
  .flow-message:nth-child(4) { animation-delay: -6s; }
  .flow-message:nth-child(5) { animation-delay: -8s; }
  .flow-message:nth-child(6) { animation-delay: -10s; }

  .flow-cost {
    position: absolute;
    right: 8%;
    top: 50%;
    transform: translateY(-50%);
    font-family: var(--font-pixel);
    font-size: 0.6rem;
    color: var(--pink);
    background: var(--gb-darkest);
    border: 2px solid var(--pink);
    border-radius: 6px;
    padding: 0.5rem 0.75rem;
    z-index: 2;
    box-shadow: 0 0 12px rgba(255, 107, 157, 0.3);
    animation: float-bounce 3s ease-in-out infinite;
  }

  /* ── Daily Ritual ── */
  .ritual {
    padding: 2.5rem 1rem;
    text-align: center;
  }

  .ritual-title {
    font-family: var(--font-pixel);
    font-size: 0.7rem;
    color: var(--gb-lightest);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 1.5rem;
  }
  .ritual-title::before { content: '📋 '; }

  .ritual-list {
    list-style: none;
    max-width: 500px;
    margin: 0 auto;
    text-align: left;
  }

  .ritual-item {
    border: 1px solid #1a1a1a;
    background: rgba(255, 77, 141, 0.03);
    border-radius: 8px;
    margin-bottom: 0.5rem;
    overflow: hidden;
    transition: all 0.2s;
  }
  .ritual-item:hover {
    border-color: rgba(255, 77, 141, 0.2);
    background: rgba(255, 77, 141, 0.06);
  }

  .ritual-item-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    cursor: pointer;
    user-select: none;
  }

  .ritual-num {
    font-family: var(--font-pixel);
    font-size: 0.5rem;
    color: var(--pink);
    min-width: 2rem;
  }

  .ritual-text {
    font-family: var(--font-vt);
    font-size: 1.15rem;
    color: var(--gb-lightest);
    flex: 1;
  }

  .ritual-toggle {
    font-family: var(--font-pixel);
    font-size: 0.7rem;
    color: var(--gb-light);
    transition: transform 0.2s;
  }

  .ritual-item.open .ritual-toggle { transform: rotate(45deg); }

  .ritual-body {
    font-family: var(--font-vt);
    font-size: 1rem;
    color: var(--gb-light);
    padding: 0 1rem 0.75rem 3.5rem;
    display: none;
    line-height: 1.5;
  }

  .ritual-item.open .ritual-body { display: block; }

  /* ── Token Distribution ── */
  .token-dist {
    text-align: center;
    padding: 2.5rem 1rem;
  }

  .token-dist-title {
    font-family: var(--font-pixel);
    font-size: 0.55rem;
    color: var(--gb-lightest);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
    line-height: 2.5;
  }

  .token-dist-title span {
    color: var(--pink);
    background: var(--gb-darkest);
    padding: 0.2rem 0.5rem;
    border: 2px solid var(--pink);
    border-radius: 4px;
  }

  .token-bar {
    display: flex;
    height: 32px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #2a2a2a;
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.08);
    max-width: 1100px;
    margin: 0 auto 1.5rem;
  }

  .token-bar-segment {
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-pixel);
    font-size: 0.4rem;
    color: var(--gb-darkest);
    border-right: 2px solid var(--gb-darkest);
  }
  .token-bar-segment:last-child { border-right: none; }

  .token-bar-segment:nth-child(1) { flex: 5; background: var(--gb-lightest); }
  .token-bar-segment:nth-child(2) { flex: 2; background: var(--gb-light); }
  .token-bar-segment:nth-child(3) { flex: 1; background: var(--purple); }
  .token-bar-segment:nth-child(4) { flex: 1; background: var(--pink); }
  .token-bar-segment:nth-child(5) { flex: 1; background: var(--blue); }

  .token-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
  }

  .token-legend-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-family: var(--font-pixel);
    font-size: 0.4rem;
    color: var(--gb-light);
  }

  .token-dot {
    width: 10px; height: 10px;
    display: inline-block;
    border: 2px solid var(--gb-dark);
    image-rendering: pixelated;
  }

  /* Override token dot colors */
  .token-legend-item:nth-child(1) .token-dot { background: var(--gb-lightest); }
  .token-legend-item:nth-child(2) .token-dot { background: var(--gb-light); }
  .token-legend-item:nth-child(3) .token-dot { background: var(--purple); }
  .token-legend-item:nth-child(4) .token-dot { background: var(--pink); }
  .token-legend-item:nth-child(5) .token-dot { background: var(--blue); }

  /* ── Closing ── */
  .closing {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 4rem 1.5rem;
    text-align: center;
  }

  .closing p {
    font-family: var(--font-vt);
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    color: var(--gb-light);
    font-style: italic;
    max-width: 560px;
    margin: 0 auto;
    line-height: 2;
  }

  .closing::after {
    content: '✧ﾟ・: *✧ﾟ・:*:・ﾟ✧*:・ﾟ✧';
    display: block;
    margin-top: 2rem;
    color: #2a2a2a;
    font-size: 0.9rem;
    letter-spacing: 2px;
  }

  .footer-space { height: 4rem; }

  /* ── Mew sprites scattered ── */
  .mew-float {
    position: fixed;
    pointer-events: none;
    z-index: 0;
    image-rendering: pixelated;
  }
  .mew-float img {
    image-rendering: pixelated;
  }
  .mew-float:nth-child(1) { top: 12%; left: 4%; animation: float-bounce 4s ease-in-out infinite; }
  .mew-float:nth-child(2) { top: 40%; right: 5%; animation: float-bounce 3.5s ease-in-out infinite; animation-delay: -1.2s; transform: scaleX(-1); }
  .mew-float:nth-child(3) { top: 68%; left: 6%; animation: float-bounce 4.5s ease-in-out infinite; animation-delay: -2.5s; }
  .mew-float:nth-child(4) { top: 88%; right: 7%; animation: float-bounce 3s ease-in-out infinite; animation-delay: -0.5s; transform: scaleX(-1); }
  .mew-float:nth-child(1) img, .mew-float:nth-child(3) img { width: 40px; opacity: 0.35; }
  .mew-float:nth-child(2) img, .mew-float:nth-child(4) img { width: 32px; opacity: 0.25; }

  /* Inline mew decorations */
  .mew-inline {
    display: inline-block;
    image-rendering: pixelated;
    vertical-align: middle;
  }
  .mew-inline img {
    image-rendering: pixelated;
    width: 28px;
    height: auto;
  }

  /* Mew next to day counter hearts */
  .mew-divider {
    display: block;
    margin: 0 auto;
    text-align: center;
    image-rendering: pixelated;
  }
  .mew-divider img {
    width: 36px;
    image-rendering: pixelated;
    animation: float-bounce 3s ease-in-out infinite;
    filter: drop-shadow(0 0 6px rgba(244, 114, 182, 0.4));
  }

  /* ── Responsive ── */
  @media (max-width: 640px) {
    .stats-top { grid-template-columns: 1fr; }
    .stat-cell { border-right: none; border-bottom: 3px solid var(--gb-dark); }
    .stat-cell:last-child { border-bottom: none; }
    .stats-bottom { grid-template-columns: 1fr; gap: 0.25rem; }
    .day-number { font-size: clamp(1.5rem, 10vw, 2.5rem); }
    .arcade-wrapper { width: 95%; max-width: 100%; }
    .stat-cost-row { flex-direction: column; gap: 0.5rem; }
    .token-legend { gap: 0.5rem; }
    .flow-cost { right: 3%; font-size: 0.45rem; }
  }

  /* ── Profile Modal ── */
  .profile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.75);
    backdrop-filter: blur(8px);
    z-index: 9999;
    justify-content: center;
    align-items: center;
  }
  .profile-overlay.active { display: flex; }
  .profile-modal {
    background: linear-gradient(135deg, #1a1025 0%, #0d0a14 100%);
    border: 1px solid rgba(139,92,246,0.3);
    border-radius: 20px;
    padding: 2rem;
    width: 90%;
    max-width: 380px;
    text-align: center;
    box-shadow: 0 0 60px rgba(139,92,246,0.2);
    animation: modal-pop 0.3s ease-out;
  }
  @keyframes modal-pop {
    from { transform: scale(0.85); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
  }
  .profile-modal h2 {
    font-family: var(--font-pixel);
    font-size: 0.5rem;
    color: #c084fc;
    margin-bottom: 1.5rem;
    letter-spacing: 2px;
  }
  .avatar-upload {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto 1.25rem;
    cursor: pointer;
  }
  .avatar-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 3px solid rgba(139,92,246,0.5);
    background: rgba(139,92,246,0.1);
    object-fit: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: border-color 0.2s;
  }
  .avatar-upload:hover .avatar-circle { border-color: #c084fc; }
  .avatar-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
  }
  .avatar-placeholder {
    font-size: 2rem;
    color: rgba(139,92,246,0.4);
  }
  .avatar-hint {
    font-family: var(--font-vt);
    font-size: 0.65rem;
    color: rgba(255,255,255,0.3);
    margin-top: 0.25rem;
  }
  .avatar-upload input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
  }
  .profile-input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(139,92,246,0.3);
    border-radius: 10px;
    color: #fff;
    font-family: var(--font-vt);
    font-size: 1rem;
    text-align: center;
    outline: none;
    margin-bottom: 1.25rem;
    transition: border-color 0.2s;
    box-sizing: border-box;
  }
  .profile-input:focus { border-color: #c084fc; }
  .profile-input::placeholder { color: rgba(255,255,255,0.25); }
  .profile-save-btn {
    width: 100%;
    padding: 0.75rem;
    background: linear-gradient(135deg, #8b5cf6, #c084fc);
    border: none;
    border-radius: 10px;
    color: #fff;
    font-family: var(--font-pixel);
    font-size: 0.35rem;
    letter-spacing: 2px;
    cursor: pointer;
    transition: transform 0.1s, box-shadow 0.2s;
  }
  .profile-save-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 0 20px rgba(139,92,246,0.3);
  }
  .profile-save-btn:active { transform: scale(0.98); }
  .profile-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: rgba(255,255,255,0.3);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.25rem;
  }
  .profile-close:hover { color: #fff; }
  .profile-wallet-addr {
    font-family: var(--font-vt);
    font-size: 0.7rem;
    color: rgba(255,255,255,0.2);
    margin-bottom: 1.25rem;
    word-break: break-all;
  }

/* Social link hover (was inline onmouseover/onmouseout) */
.social-link { display:flex; align-items:center; gap:0.4rem; font-family:var(--font-pixel); font-size:0.4rem; color:#888; letter-spacing:1px; text-decoration:none; padding:0.5rem 1rem; border:1.5px solid #2a2a2a; border-radius:20px; transition:all 0.15s; }
.social-link:hover { border-color:#ff4d8d; color:#ff4d8d; box-shadow:0 0 12px rgba(255,77,141,0.2); }
.social-link.pumpfun:hover { border-color:#34d399; color:#34d399; box-shadow:0 0 12px rgba(52,211,153,0.2); }
/* ===== Tamagotchi UI ===== */
.mew-gauges { display:flex; flex-direction:column; gap:.55rem; margin:1rem auto; max-width:480px; padding:1rem 1.25rem; background:rgba(0,0,0,.45); border:1px solid rgba(255,255,255,.08); border-radius:14px; backdrop-filter:blur(6px); }
.mew-gauges .gauge { display:flex; flex-direction:column; gap:.2rem; }
.mew-gauges .gauge-label { display:flex; justify-content:space-between; font-size:.85rem; color:rgba(255,255,255,.85); letter-spacing:.02em; }
.mew-gauges .gauge-track { position:relative; height:10px; background:rgba(255,255,255,.08); border-radius:6px; overflow:hidden; }
.mew-gauges .gauge-fill { height:100%; width:0%; background:linear-gradient(90deg,#22d3ee,#10b981); transition:width .4s ease, filter .2s ease, background .3s ease; }
.mew-gauges .gauge-meta { font-size:.75rem; color:rgba(255,255,255,.55); display:flex; flex-wrap:wrap; gap:.4rem; align-items:center; margin-top:.4rem; }
.mew-gauges .mew-mood { padding:.1rem .5rem; border-radius:999px; background:rgba(255,255,255,.08); text-transform:uppercase; letter-spacing:.05em; font-size:.7rem; }
.mew-gauges .mew-mood.mood-sick   { background:rgba(244,63,94,.25); color:#fda4af; }
.mew-gauges .mew-mood.mood-hungry { background:rgba(245,158,11,.25); color:#fcd34d; }
.mew-gauges .mew-mood.mood-tired,
.mew-gauges .mew-mood.mood-sleeping { background:rgba(99,102,241,.25); color:#c4b5fd; }
.mew-gauges .mew-mood.mood-sad     { background:rgba(96,165,250,.25); color:#bfdbfe; }
.mew-gauges .mew-mood.mood-happy   { background:rgba(34,197,94,.25); color:#bbf7d0; }
.mew-gauges .mew-sleep-banner { width:100%; padding:.4rem .6rem; background:rgba(99,102,241,.18); border-radius:8px; text-align:center; color:#c4b5fd; }

img.mew-sleeping { filter:saturate(.5) brightness(.8); }

.panel { max-width:480px; margin:1.25rem auto; padding:1rem 1.25rem; background:rgba(0,0,0,.45); border:1px solid rgba(255,255,255,.08); border-radius:14px; backdrop-filter:blur(6px); color:rgba(255,255,255,.85); }
.panel h3 { margin:0 0 .6rem; font-size:1rem; letter-spacing:.05em; text-transform:lowercase; }
.panel h4 { margin:.8rem 0 .4rem; font-size:.8rem; color:rgba(255,255,255,.55); letter-spacing:.05em; text-transform:lowercase; }
.panel .muted { color:rgba(255,255,255,.4); font-size:.85rem; }

.lb-cols { display:grid; grid-template-columns:1fr 1fr; gap:1rem; }
.lb-cols ol { list-style:decimal inside; padding:0; margin:0; font-size:.85rem; line-height:1.6; }

.events-panel .event { display:grid; grid-template-columns:1fr auto; gap:.4rem 1rem; padding:.6rem 0; border-bottom:1px solid rgba(255,255,255,.06); align-items:center; }
.events-panel .event:last-child { border-bottom:none; }
.events-panel .event-msg { font-size:.9rem; }
.events-panel .event-reward { grid-column:1; font-size:.7rem; }
.btn-claim, .btn-buy, .btn-use { background:linear-gradient(90deg,#22d3ee,#10b981); border:none; border-radius:8px; padding:.35rem .8rem; color:#0b0f17; font-weight:600; cursor:pointer; font-size:.8rem; }
.btn-claim:disabled, .btn-buy:disabled, .btn-use:disabled { opacity:.5; cursor:not-allowed; }

.shop-panel .shop-item, .shop-panel .inv-item { display:grid; grid-template-columns:1fr auto; gap:.2rem .8rem; padding:.6rem 0; border-bottom:1px solid rgba(255,255,255,.06); align-items:center; }
.shop-panel .shop-item:last-child, .shop-panel .inv-item:last-child { border-bottom:none; }
.shop-panel .shop-name { font-weight:600; font-size:.9rem; }
.shop-panel .shop-desc { grid-column:1; font-size:.75rem; }
.shop-panel .shop-price { grid-column:1; font-size:.75rem; color:#fcd34d; }
.shop-panel .btn-buy, .shop-panel .btn-use { grid-column:2; grid-row:1 / span 3; }

@media (max-width:520px) {
  .lb-cols { grid-template-columns:1fr; }
}
