/* ── HERO ── */
    .hero { text-align:center; padding:80px 20px 50px; position:relative; overflow:hidden; background:radial-gradient(ellipse at 50% 0%,rgba(107,33,212,.15),transparent 65%); }

    /* ── SEARCH BAR ── */
    .search-wrap { max-width:660px; margin:44px auto 0; position:relative; z-index:1; }
    .search-row { display:flex; gap:10px; }
    .search-input {
      flex:1; padding:16px 22px;
      background:rgba(255,255,255,.04); border:1px solid rgba(107,33,212,.4);
      color:#fff; font-family:'Space Mono',monospace; font-size:14px; letter-spacing:2px;
      outline:none; transition:border-color .3s, background .3s;
    }
    .search-input::placeholder { color:rgba(255,255,255,.2); }
    .search-input:focus { border-color:var(--purple-light); background:rgba(107,33,212,.06); }
    .btn-search {
      padding:16px 28px; background:linear-gradient(135deg,var(--purple),var(--purple-light));
      border:none; color:#fff; cursor:pointer; font-family:'Bebas Neue',sans-serif;
      font-size:18px; letter-spacing:2px; transition:transform .2s, box-shadow .2s;
    }
    .btn-search:hover { transform:translateY(-2px); box-shadow:0 8px 28px rgba(107,33,212,.5); }
    .btn-random {
      padding:16px 20px; background:rgba(255,209,102,.1); border:1px solid rgba(255,209,102,.3);
      color:var(--gold); cursor:pointer; font-family:'Bebas Neue',sans-serif;
      font-size:14px; letter-spacing:2px; transition:all .2s;
    }
    .btn-random:hover { background:rgba(255,209,102,.2); border-color:var(--gold); }
    .search-hint { font-size:9px; letter-spacing:2px; color:rgba(255,255,255,.2); margin-top:10px; text-align:center; }

    /* ── MAIN ── */
    .main { max-width:1000px; margin:0 auto; padding:60px 24px 100px; }

    /* ── POKEMON CARD ── */
    .poke-card { display:none; }
    .poke-card.visible { display:grid; grid-template-columns:1fr 1fr; gap:40px; animation:cardIn .5s ease; }
    @media(max-width:700px){ .poke-card.visible{grid-template-columns:1fr;} }

    /* Left: sprite + identity */
    .poke-left { text-align:center; }
    .poke-number { font-size:11px; letter-spacing:4px; color:rgba(155,95,227,.5); margin-bottom:8px; }
    .poke-sprite-wrap { position:relative; display:inline-block; margin-bottom:20px; }
    .poke-sprite-bg { position:absolute; inset:-20px; background:radial-gradient(circle,rgba(107,33,212,.15),transparent 70%); border-radius:50%; animation:sbg 3s ease-in-out infinite; }
    @keyframes sbg{ 0%,100%{transform:scale(1);opacity:.5} 50%{transform:scale(1.1);opacity:1} }
    .poke-sprite {
      width:220px; height:220px; object-fit:contain; position:relative; z-index:1;
      image-rendering:pixelated; filter:drop-shadow(0 0 20px rgba(107,33,212,.5));
      animation:float 4s ease-in-out infinite;
    }
    @keyframes float{ 0%,100%{transform:translateY(0)} 50%{transform:translateY(-10px)} }
    .poke-name-ja { font-family:'Zen Kaku Gothic New',sans-serif; font-size:32px; font-weight:700; color:#fff; margin-bottom:4px; }
    .poke-name-en { font-family:'Bebas Neue',sans-serif; font-size:20px; letter-spacing:4px; color:rgba(255,255,255,.4); margin-bottom:20px; text-transform:uppercase; }
    .poke-types { display:flex; gap:8px; justify-content:center; flex-wrap:wrap; margin-bottom:24px; }
    .type-badge { padding:5px 18px; font-size:10px; letter-spacing:3px; text-transform:uppercase; font-weight:700; border-radius:2px; }
    .poke-meta { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
    .meta-item { background:rgba(255,255,255,.03); border:1px solid rgba(107,33,212,.2); padding:14px 16px; }
    .meta-label { font-size:8px; letter-spacing:3px; color:rgba(255,255,255,.3); margin-bottom:6px; }
    .meta-val { font-size:16px; color:#fff; font-weight:700; }

    /* Right: stats + abilities + flavor */
    .poke-right {}
    .section-label { font-family:'Bebas Neue',sans-serif; font-size:22px; letter-spacing:3px; color:rgba(255,255,255,.5); margin-bottom:16px; padding-bottom:8px; border-bottom:1px solid rgba(107,33,212,.2); }

    .stat-list { margin-bottom:36px; }
    .stat-row { display:flex; align-items:center; gap:12px; margin-bottom:12px; }
    .stat-name { font-size:9px; letter-spacing:2px; color:rgba(255,255,255,.35); width:54px; flex-shrink:0; text-transform:uppercase; }
    .stat-val { font-size:13px; font-weight:700; width:32px; flex-shrink:0; text-align:right; }
    .stat-bar-bg { flex:1; height:5px; background:rgba(255,255,255,.08); position:relative; overflow:hidden; }
    .stat-bar-fill { height:100%; position:absolute; left:0; top:0; width:0%; transition:width 1.2s cubic-bezier(.2,.8,.4,1); }

    .abilities-list { display:flex; gap:8px; flex-wrap:wrap; margin-bottom:36px; }
    .ability-pill { padding:6px 16px; background:rgba(107,33,212,.12); border:1px solid rgba(107,33,212,.3); font-size:10px; letter-spacing:2px; color:rgba(255,255,255,.7); text-transform:capitalize; }
    .ability-pill.hidden { border-color:rgba(255,209,102,.3); color:rgba(255,209,102,.7); background:rgba(255,209,102,.05); }

    .flavor-box { background:rgba(255,255,255,.03); border:1px solid rgba(107,33,212,.2); border-left:3px solid var(--purple); padding:20px 22px; margin-bottom:36px; font-family:'Zen Kaku Gothic New',sans-serif; font-size:14px; line-height:1.8; color:rgba(255,255,255,.7); }

    /* ya comment in poke */
    .poke-ya { background:rgba(107,33,212,.08); border:1px solid rgba(107,33,212,.3); padding:22px 26px; position:relative; }
    .poke-ya::before { content:'✌️'; position:absolute; top:-14px; left:24px; font-size:22px; }
    .poke-ya-text { font-family:'Zen Kaku Gothic New',sans-serif; font-size:14px; line-height:1.8; color:rgba(255,255,255,.8); }
    .poke-ya-sig { font-size:9px; letter-spacing:3px; color:rgba(155,95,227,.4); margin-top:10px; }

    /* ── LOADING / ERROR ── */
    .status-msg { text-align:center; padding:80px 20px; font-size:13px; letter-spacing:2px; color:rgba(155,95,227,.6); }
    .status-msg.error { color:rgba(255,100,100,.6); }

    /* ── RECENT LIST ── */
    .recent-section { margin-top:64px; }
    .recent-title { font-family:'Bebas Neue',sans-serif; font-size:28px; letter-spacing:3px; color:rgba(255,255,255,.3); margin-bottom:16px; }
    .recent-list { display:flex; gap:10px; flex-wrap:wrap; }
    .recent-chip { background:rgba(255,255,255,.04); border:1px solid rgba(107,33,212,.2); padding:8px 16px; font-size:10px; letter-spacing:2px; cursor:pointer; color:rgba(255,255,255,.5); transition:all .2s; text-transform:capitalize; }
    .recent-chip:hover { border-color:var(--purple-light); color:#fff; background:rgba(107,33,212,.1); }

    /* ── FOOTER ── */
    .footer { text-align:center; padding:40px 20px; font-size:9px; letter-spacing:3px; color:rgba(255,255,255,.15); }
