  :root {
    --green-dark:   #0d2b1a;
    --green-deep:   #133824;
    --green-mid:    #1e5c38;
    --green-bright: #3a9e52;
    --green-lime:   #6dd45e;
    --green-neon:   #aaff44;
    --yellow-pale:  #d4e87a;
    --yellow-gold:  #f0c040;
    --teal:         #5ecfb0;
    --teal-light:   #a8f0de;
    --white:        #f0ffe8;
    --gray:         #8bab8e;
    --pixel-border: 3px solid var(--green-lime);
    --font-pixel:   'Oxanium', monospace;
    --font-mono:    'VT323', monospace;
    --font-body:    'Oxanium', sans-serif;
  }

  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

  html { scroll-behavior: smooth; }

  body {
    background: var(--green-dark);
    color: var(--white);
    font-family: var(--font-body);
    overflow-x: hidden;
    cursor: default;
  }

  /* ── SCANLINE OVERLAY ── */
  body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(0,0,0,.08) 2px,
      rgba(0,0,0,.08) 4px
    );
    pointer-events: none;
    z-index: 9999;
  }

  /* ── SCROLLBAR ── */
  ::-webkit-scrollbar { width: 8px; }
  ::-webkit-scrollbar-track { background: var(--green-dark); }
  ::-webkit-scrollbar-thumb { background: var(--green-mid); border-radius: 0; }

  /* ══════════════════════════════
     HEADER
  ══════════════════════════════ */
  #header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: rgba(13,43,26,.96);
    border-bottom: 2px solid var(--green-lime);
    backdrop-filter: blur(8px);
    padding: 0 1.5rem;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
  }

  .header-left {
    display: flex;
    align-items: center;
    gap: 1.4rem;
    flex-shrink: 0;
  }

  .logo-wrap img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    image-rendering: pixelated;
  }
  .logo-name {
    font-family: var(--font-pixel);
    font-size: .55rem;
    color: var(--green-neon);
    text-shadow: 0 0 8px var(--green-neon);
    line-height: 1.4;
    display: none;
  }
  @media(min-width:768px){ .logo-name { display: block; } }

  /* desktop nav */
  .nav-links {
    display: none;
    list-style: none;
    gap: .1rem;
  }
  @media(min-width:900px){ .nav-links { display: flex; } }

  .nav-links a {
    font-family: var(--font-pixel);
    font-size: 1rem;
    color: var(--green-lime);
    text-decoration: none;
    padding: .45rem .65rem;
    letter-spacing: .04em;
    border: 2px solid transparent;
    transition: all .15s;
    display: block;
    white-space: nowrap;
  }
  .nav-links a:hover {
    color: var(--green-neon);
    border-color: var(--green-neon);
    background: rgba(170,255,68,.08);
    text-shadow: 0 0 8px var(--green-neon);
  }

  .header-right {
    display: flex;
    align-items: center;
    gap: .5rem;
  }

  .social-icon {
    width: 30px; height: 30px;
    display: flex; align-items: center; justify-content: center;
    color: var(--gray);
    text-decoration: none;
    transition: all .2s;
    border-radius: 2px;
  }
  .social-icon:hover {
    color: var(--green-neon);
    border-color: var(--green-neon);
    background: rgba(170,255,68,.1);
    box-shadow: 0 0 8px rgba(170,255,68,.3);
  }
  .social-icon svg { width:16px; height:16px; fill:currentColor; }

  /* hamburger */
  .hamburger {
    display: flex; flex-direction: column; gap: 5px;
    background: none; border: none; cursor: pointer; padding: 4px;
  }
  @media(min-width:900px){ .hamburger { display: none; } }
  .hamburger span {
    display: block; width: 22px; height: 2px;
    background: var(--green-lime);
    transition: all .2s;
  }

  /* mobile nav drawer */
  .mobile-nav {
    display: none;
    position: fixed;
    top: 64px; left: 0; right: 0;
    background: rgba(13,43,26,.98);
    border-bottom: 2px solid var(--green-lime);
    z-index: 999;
    padding: 1rem;
    flex-direction: column;
    gap: .3rem;
  }
  .mobile-nav.open { display: flex; }
  .mobile-nav a {
    font-family: var(--font-pixel);
    font-size: .5rem;
    color: var(--green-lime);
    text-decoration: none;
    padding: .7rem 1rem;
    border: 1px solid var(--green-mid);
    letter-spacing: .04em;
  }
  .mobile-nav a:hover {
    color: var(--green-neon);
    border-color: var(--green-neon);
    background: rgba(170,255,68,.08);
  }

  /* ══════════════════════════════
     SECTIONS COMMON
  ══════════════════════════════ */
  section {
    padding: 6rem 1.5rem 4rem;
    max-width: 1200px;
    margin: 0 auto;
  }

  .section-label {
    font-family: var(--font-pixel);
    font-size: .75rem;
    color: var(--green-bright);
    letter-spacing: .15em;
    margin-bottom: .8rem;
    background-color: #000;
    padding: 20px 10px;;
    width: 50%;
  }
  .section-title {
    font-family: var(--font-pixel);
    font-size: clamp(.8rem, 2.5vw, 1.2rem);
    color: var(--green-neon);
    text-shadow: 0 0 16px rgba(170,255,68,.4);
    margin-bottom: 2rem;
    line-height: 1.6;
  }
  .section-text {
    font-family: var(--font-body);
    font-size: 1.05rem;
    color: var(--white);
    line-height: 1.9;
    max-width: 780px;
    opacity: .9;
  }

  /* pixel divider */
  .pixel-divider {
    height: 4px;
    background: repeating-linear-gradient(
      90deg,
      var(--green-lime) 0 8px,
      transparent 8px 12px
    );
    margin: 0;
    width: 100%;
  }

  /* ══════════════════════════════
     HERO
  ══════════════════════════════ */
  #home {
    min-height: 60vh;
    display: flex;
    align-items: center;
    padding-top: 64px;
    position: relative;
    overflow: hidden;
    max-width: 100%;
  }

  .hero-bg {
    position: absolute;
    inset: 0;
    background-image: url('./images/cover_bluesky.png');
    background-size: cover;
    background-position: center 30%;
    filter: brightness(.35) saturate(.9);
    z-index: 0;
  }
  .hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
      to bottom,
      rgba(13,43,26,.2) 0%,
      rgba(13,43,26,.6) 60%,
      rgba(13,43,26,1) 100%
    );
  }

  .hero-content {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
    width: 100%;
  }

  .hero-badge {
    font-family: var(--font-pixel);
    font-size: .4rem;
    color: var(--green-dark);
    background: var(--green-neon);
    padding: .4rem .7rem;
    letter-spacing: .1em;
    animation: blink-badge 2s step-end infinite;
  }
  @keyframes blink-badge {
    0%,100%{ opacity:1; } 50%{ opacity:.6; }
  }

  .hero-tagline {
    font-family: var(--font-pixel);
    font-size: clamp(1rem, 4vw, 2rem);
    color: var(--white);
    line-height: 1.8;
    text-shadow: 0 0 30px rgba(170,255,68,.3);
    max-width: 700px;
  }
  .hero-tagline span {
    color: var(--green-neon);
    text-shadow: 0 0 20px var(--green-neon);
  }

  .hero-sub {
    font-family: var(--font-mono);
    font-size: 1.4rem;
    color: var(--teal-light);
    letter-spacing: .05em;
  }

  .hero-sub .cursor {
    display: inline-block;
    width: 10px; height: 1.2em;
    background: var(--teal);
    vertical-align: middle;
    margin-left: 4px;
    animation: blink 1s step-end infinite;
  }
  @keyframes blink { 0%,100%{opacity:1;} 50%{opacity:0;} }

  .hero-cta {
    display: flex; gap: 1rem; flex-wrap: wrap; margin-top: .5rem;
  }
  .btn {
    font-family: var(--font-pixel);
    font-size: .45rem;
    padding: .8rem 1.4rem;
    text-decoration: none;
    letter-spacing: .06em;
    border: 2px solid;
    transition: all .15s;
    cursor: pointer;
    display: inline-block;
  }
  .btn-primary {
    background: var(--green-neon);
    color: var(--green-dark);
    border-color: var(--green-neon);
    box-shadow: 4px 4px 0 var(--green-mid);
  }
  .btn-primary:hover {
    background: transparent;
    color: var(--green-neon);
    box-shadow: 6px 6px 0 var(--green-mid);
    transform: translate(-2px,-2px);
  }
  .btn-outline {
    background: transparent;
    color: var(--teal);
    border-color: var(--teal);
    box-shadow: 4px 4px 0 var(--green-mid);
  }
  .btn-outline:hover {
    background: var(--teal);
    color: var(--green-dark);
    box-shadow: 6px 6px 0 var(--green-deep);
    transform: translate(-2px,-2px);
  }

  .hero-croco {
    position: absolute;
    right: -20px; bottom: 0;
    height: min(55vh, 420px);
    image-rendering: pixelated;
    filter: drop-shadow(0 0 24px rgba(110,212,94,.35));
    opacity: .85;
    z-index: 1;
  }
  @media(max-width:768px){ .hero-croco { display:none; } }

  /* ══════════════════════════════
     ABOUT
  ══════════════════════════════ */

  .section-content {
    display: flex;
  }

  .section-content-text {
    margin-top: -10px;
    padding: 0px 25px;
  }

  #about {
    position: relative;
  }

  .about-avatar {
    display: flex;
    justify-content: center;
  }
  .avatar-frame {
    position: relative;
    width: 220px;
    height: 220px;
    border: 3px solid var(--green-lime);
    box-shadow: 8px 8px 0 var(--green-mid), 0 0 40px rgba(170,255,68,.15);
  }
  .avatar-frame img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    image-rendering: pixelated;
  }

  .about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .8rem;
    margin-top: 1.5rem;
  }
  .stat-box {
    border: 1px solid var(--green-mid);
    padding: .8rem;
    background: rgba(30,92,56,.18);
  }
  .stat-box .stat-val {
    font-family: var(--font-pixel);
    font-size: .8rem;
    color: var(--green-neon);
  }
  .stat-box .stat-lbl {
    font-family: var(--font-mono);
    font-size: .9rem;
    color: var(--gray);
    margin-top: .3rem;
  }

  /* ══════════════════════════════
     CARDS GRID (shared: games, projects, tools)
  ══════════════════════════════ */
  .cards-intro {
    font-family: var(--font-body);
    font-size: 1.05rem;
    color: var(--white);
    line-height: 1.9;
    max-width: 780px;
    opacity: .9;
    margin-bottom: 2.5rem;
  }

  .cards-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  @media(min-width:600px){
    .cards-grid { grid-template-columns: repeat(2, 1fr); }
  }
  @media(min-width:960px){
    .cards-grid { grid-template-columns: repeat(3, 1fr); }
  }

  .card {
    background: var(--green-deep);
    border: 2px solid var(--green-mid);
    display: flex;
    flex-direction: column;
    transition: transform .15s, border-color .15s, box-shadow .15s;
    position: relative;
    overflow: hidden;
  }
  .card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, var(--green-lime), var(--teal), var(--green-lime));
    opacity: 0;
    transition: opacity .2s;
  }
  .card:hover {
    transform: translate(-3px,-3px);
    border-color: var(--green-lime);
    box-shadow: 6px 6px 0 var(--green-mid);
  }
  .card:hover::before { opacity: 1; }

  .card-img {
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--green-mid);
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .card-img img {
    width: 100%;
  }
  .card:hover .card-img img { filter: brightness(1.1) saturate(1.2); }

  .card-img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--green-deep) 0%, var(--green-mid) 100%);
    position: relative;
    overflow: hidden;
  }
  .card-img-placeholder::after {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
      45deg,
      transparent, transparent 10px,
      rgba(0,0,0,.15) 10px, rgba(0,0,0,.15) 20px
    );
  }
  .card-img-placeholder span {
    font-family: var(--font-pixel);
    font-size: .5rem;
    color: var(--green-bright);
    z-index: 1;
    text-align: center;
    padding: .5rem;
    line-height: 1.8;
  }

  .card-body {
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    flex: 1;
  }
  .card-tag {
    font-family: var(--font-pixel);
    font-size: .3rem;
    color: var(--teal);
    letter-spacing: .12em;
    margin-bottom: .5rem;
  }
  .card-title {
    font-family: var(--font-pixel);
    font-size: 1rem;
    color: var(--green-neon);
    margin-bottom: .7rem;
    line-height: 1.6;
  }
  .card-desc {
    font-family: var(--font-body);
    font-size: .88rem;
    color: var(--white);
    opacity: .8;
    line-height: 1.75;
    flex: 1;
    margin-bottom: 1rem;
  }
  .card-specs {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: .35rem;
    border-top: 1px solid var(--green-mid);
    padding-top: .9rem;
    margin-top: auto;
  }
  .card-specs li {
    font-family: var(--font-mono);
    font-size: .95rem;
    color: var(--teal-light);
    display: flex;
    gap: .5rem;
    align-items: baseline;
  }
  .card-specs li::before {
    content: '▸';
    color: var(--green-lime);
    flex-shrink: 0;
  }

  .card-actions {
    padding: 0 1.2rem 1.2rem;
  }
  .card-btn {
    font-family: var(--font-pixel);
    font-size: .35rem;
    padding: .55rem .9rem;
    background: transparent;
    color: var(--green-lime);
    border: 1px solid var(--green-lime);
    text-decoration: none;
    letter-spacing: .06em;
    transition: all .15s;
    display: inline-block;
  }
  .card-btn:hover {
    background: var(--green-lime);
    color: var(--green-dark);
  }

  /* ══════════════════════════════
     FOOTER
  ══════════════════════════════ */
  footer {
    background: var(--green-deep);
    border-top: 2px solid var(--green-mid);
    padding: 1.8rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
  }
  @media(min-width:600px){
    footer { flex-direction: row; justify-content: space-between; }
  }

  .footer-copy {
    font-family: var(--font-mono);
    font-size: 1rem;
    color: var(--gray);
    line-height: 1.6;
  }
  .footer-copy span { color: var(--green-neon); }

  .footer-socials {
    display: flex; gap: .5rem;
  }

  /* ══════════════════════════════
     TOOLS SECTION BADGE GRID
  ══════════════════════════════ */
  .tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px,1fr));
    gap: 1rem;
    margin-top: 2rem;
  }

  /* ══════════════════════════════
     MISC UTILS
  ══════════════════════════════ */
  .highlight { color: var(--green-neon); }
  .accent { color: var(--teal); }

  .glow-line {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--green-neon), transparent);
    margin: 3rem 0;
    opacity: .4;
  }

  /* entry animation */
  .fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .6s ease, transform .6s ease;
  }
  .fade-in.visible {
    opacity: 1;
    transform: translateY(0);
  }