*{margin:0;padding:0;box-sizing:border-box}html{scroll-behavior:smooth;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%}.skip-link{position:absolute;left:-9999px;top:auto;width:1px;height:1px;overflow:hidden}.skip-link:focus{left:12px;top:12px;width:auto;height:auto;padding:8px 12px;background:var(--accent);color:#042028;border-radius:6px;z-index:9999}:root{--bg: #07101a;--muted: #9aa7b2;--accent: #60a5fa;--card: #0b1720;--text: #e6eef6}body.light{--bg: #ffffff;--muted: #6b7280;--accent: #1a73e8;--card: #f8fafc;--text: #0f172a}html,body,#root{height:100%}body{font-family:Inter,ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Helvetica Neue,Arial;background:var(--bg);color:var(--text);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}@media(max-width:720px){.logo{font-size:42px}.search-form{width:calc(100vw - 32px)}.search-input{padding:14px 16px;font-size:16px}.pokedex-grid{grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:12px}.poke-image{width:72px;height:72px;flex:0 0 72px}.poke-card.has-image .poke-image{width:96px;height:96px}.modal{width:96vw;max-height:92vh;border-radius:10px}.modal-grid{grid-template-columns:1fr}.controls{gap:8px;flex-wrap:wrap}}@keyframes modal-pop{0%{opacity:0;transform:translateY(8px) scale(.98)}60%{opacity:1;transform:translateY(-6px) scale(1.02)}to{opacity:1;transform:translateY(0) scale(1)}}.modal{animation:modal-pop .26s cubic-bezier(.2,.9,.22,1) both}.modal.modal-closing{animation:fade-out .18s ease both}.btn{min-height:40px;display:inline-flex;align-items:center;justify-content:center}.btn:focus-visible,.resource-card:focus-visible,article:focus-visible{outline:3px solid rgba(96,165,250,.28);outline-offset:2px}*{-webkit-overflow-scrolling:touch}.app-root{min-height:100vh;display:flex;flex-direction:column;align-items:center}.app-footer{width:100%;padding:28px 18px 36px;color:var(--muted);font-size:13px;text-align:center;letter-spacing:.04em}.app-splash{position:fixed;inset:0;display:flex;align-items:center;justify-content:center;background:linear-gradient(180deg,#020617f5,#07101afa);z-index:9999;transition:opacity .32s ease,visibility .32s ease}.splash-inner{text-align:center;color:var(--text)}.splash-logo{font-size:64px;font-weight:800;color:var(--accent);letter-spacing:-1px}.splash-sub{margin-top:8px;color:var(--muted);font-size:14px}.splash-dots{display:inline-flex;gap:8px;margin-top:18px}.splash-dots span{width:10px;height:10px;background:#ffffff1f;border-radius:999px;display:inline-block;transform:translateY(0);animation:splash-bounce .9s infinite ease-in-out}.splash-dots span:nth-child(2){animation-delay:.14s}.splash-dots span:nth-child(3){animation-delay:.28s}@keyframes splash-bounce{0%,to{transform:translateY(0);opacity:.6}50%{transform:translateY(-8px);opacity:1}}.in-dex-header{margin-top:8vh;display:flex;flex-direction:column;align-items:center}.logo{font-size:72px;font-weight:700;letter-spacing:-1px;color:var(--accent);margin-bottom:18px}.search-form{width:min(720px,92vw);display:flex;flex-direction:column;gap:12px;align-items:center}.search-input{width:100%;padding:16px 20px;border-radius:40px;box-shadow:0 6px 18px #02061747;border:1px solid rgba(255,255,255,.04);font-size:18px}.controls{display:flex;gap:10px}.btn{padding:10px 14px;border-radius:8px;border:1px solid rgba(255,255,255,.04);background:transparent;cursor:pointer}.btn.primary{background:var(--accent);color:#042028;border-color:transparent}.btn.ghost{background:transparent;color:var(--muted)}.main-content{width:100%;max-width:1100px;margin-top:36px;padding:0 18px 80px}.status{margin:12px 0;color:var(--muted);text-align:center}.status.error{color:#b91c1c}.pokedex-empty{color:var(--muted);text-align:center;padding:48px 0}.pokedex-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:18px}.poke-card{background:var(--card);border-radius:12px;padding:12px;display:flex;gap:12px;align-items:center;box-shadow:0 8px 30px #02061799}.poke-image{width:96px;height:96px;flex:0 0 96px;display:flex;align-items:center;justify-content:center}.poke-image img{max-width:100%;max-height:100%}.resource-img{width:100%;height:100%;object-fit:contain;border-radius:12px}.generic-card{transition:transform .16s ease,box-shadow .16s ease;cursor:pointer}.generic-card:hover{transform:translateY(-6px);box-shadow:0 18px 40px #020617bf}@keyframes sink-in{0%{transform:perspective(700px) translateY(18px) scale(.98) rotateX(6deg);opacity:0;filter:blur(6px)}60%{transform:perspective(700px) translateY(-6px) scale(1.01) rotateX(0);opacity:1;filter:blur(0px)}to{transform:perspective(700px) translateY(0) scale(1) rotateX(0);opacity:1;filter:blur(0px)}}.card-enter,.poke-card.card-enter{transform-origin:center;will-change:transform,opacity,filter}.card-entered,.poke-card.card-entered{animation:sink-in .46s cubic-bezier(.2,.9,.22,1) both}.card-exit,.poke-card.card-exit{animation:fade-out .22s ease both}@keyframes fade-out{0%{opacity:1;transform:translateY(0) scale(1)}to{opacity:0;transform:translateY(10px) scale(.995);filter:blur(2px)}}.gen-card-cell{--i: 0}.gen-card-cell .poke-card{opacity:0;transform:translateY(12px) scale(.995);animation:sink-in .46s cubic-bezier(.2,.9,.22,1) both;animation-delay:calc(var(--i) * 36ms)}.pokedex-grid{counter-reset:cardIndex 0}.pokedex-cell{--i: 0}.pokedex-cell .poke-card,.pokedex-cell .generic-card{opacity:0;transform:translateY(12px) scale(.995);animation:sink-in .48s cubic-bezier(.2,.9,.22,1) both;animation-delay:calc(var(--i) * 28ms)}.generation-feed .feed-list{will-change:transform}.poke-image img,.resource-img{opacity:0;transform:scale(.96);transition:transform .36s cubic-bezier(.2,.9,.22,1),opacity .36s ease}.poke-image img.loaded,.resource-img.loaded{opacity:1;transform:scale(1)}.poke-card:hover,.generic-card:hover{transform:translateY(-8px) scale(1.008);box-shadow:0 22px 60px #020617db}.poke-title-row{display:flex;align-items:baseline;gap:8px;justify-content:space-between}.poke-id.muted{color:var(--muted);font-size:12px}.resource-type{font-size:12px;padding:6px 8px;border-radius:999px;background:#ffffff05;color:var(--muted)}.generic-desc{margin-top:8px;color:var(--muted);font-size:13px;line-height:1.35;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.generic-meta{margin-top:8px;display:flex;gap:8px;align-items:center;flex-wrap:wrap}.meta-pill{background:#ffffff0a;padding:4px 8px;border-radius:999px;font-size:12px;color:var(--text);border:1px solid rgba(255,255,255,.03)}.meta-text{color:var(--muted);font-size:12px}.generic-card--item{border-left:4px solid #f59e0b}.generic-card--move{border-left:4px solid #ef4444}.generic-card--ability{border-left:4px solid #60a5fa}.generic-card--type{border-left:4px solid #10b981}.generic-card--location{border-left:4px solid #a78bfa}.poke-body{flex:1}.poke-title{font-weight:700;font-size:16px}.poke-id{color:var(--muted);font-weight:600;font-size:12px;margin-left:8px}.poke-types{margin-top:8px;display:flex;gap:8px}.type{padding:6px 8px;border-radius:8px;background:#ffffff0a;font-size:12px;border:1px solid rgba(255,255,255,.03)}.no-image{width:64px;height:64px;border-radius:8px;background:linear-gradient(180deg,#ffffff0a,#ffffff05);display:flex;align-items:center;justify-content:center;color:var(--muted);font-weight:700}.poke-card.has-image .poke-image{width:140px;height:140px;flex:0 0 140px}.poke-card.has-image .no-image{width:96px;height:96px}.generic-desc{margin-top:8px;color:var(--muted);font-size:13px;line-height:1.3}.search-input-wrap{position:relative;width:100%}.autocomplete{position:absolute;left:0;right:0;top:calc(100% + 8px);background:var(--card);border-radius:8px;box-shadow:0 8px 24px #02061799;max-height:320px;overflow:auto;z-index:40;padding:6px 0}.autocomplete li{list-style:none;padding:8px 12px;cursor:pointer;color:var(--text)}.autocomplete li:hover{background:#ffffff05}.modal-backdrop{position:fixed;inset:0;background:linear-gradient(to bottom,#02061799,#020617cc);display:flex;align-items:center;justify-content:center;z-index:60}.modal{position:relative;background:var(--card);padding:28px;border-radius:12px;max-width:840px;width:min(96vw,840px);max-height:90vh;overflow-y:auto;color:var(--text);box-shadow:0 12px 40px #020617b3;border:1px solid rgba(148,163,184,.14)}.modal .close{position:absolute;right:16px;top:12px;background:transparent;border:0;color:var(--muted);cursor:pointer;font-size:18px;width:36px;height:36px;border-radius:50%;z-index:1}.modal .close:hover{background:#94a3b81f;color:var(--text)}.modal-grid{display:grid;grid-template-columns:220px 1fr;gap:18px;align-items:start}.stat{display:flex;justify-content:space-between;gap:16px;padding:10px 12px;border-bottom:1px solid rgba(148,163,184,.1);background:#94a3b809}.stat:first-of-type{border-radius:10px 10px 0 0}.stat:last-of-type{border-radius:0 0 10px 10px;border-bottom:0}.stat>div:last-child{color:var(--accent);font-weight:700;text-align:right}.modal-heading{display:flex;align-items:center;gap:12px;margin-bottom:4px;padding-right:32px}.modal-heading h2{margin:0;font-size:clamp(24px,4vw,32px);text-transform:capitalize}.modal-heading-icon{display:grid;place-items:center;width:42px;height:42px;border-radius:12px;color:#fff;background:linear-gradient(135deg,#ef4444,#b91c1c);box-shadow:0 8px 20px #ef44443d}.modal-eyebrow{color:var(--muted);font-size:11px;font-weight:800;letter-spacing:.12em;text-transform:uppercase}.modal-resource-tag{display:inline-flex;margin:10px 0 22px 54px;padding:5px 10px;border-radius:999px;color:var(--accent);background:#60a5fa1f;font-size:12px;font-weight:700;text-transform:capitalize}.pokemon-modal{max-width:920px}.pokemon-summary{padding:18px;border-radius:16px;background:radial-gradient(circle at 50% 10%,rgba(96,165,250,.2),transparent 62%),#60a5fa0f;border:1px solid rgba(96,165,250,.16)}.pokemon-portrait{width:100%;height:240px;display:flex;align-items:center;justify-content:center}.pokemon-portrait img{width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 18px 18px rgba(0,0,0,.3))}.pokemon-summary-copy{margin-top:10px}.pokemon-name{display:block;margin-top:4px;font-size:20px;text-transform:capitalize}.pokemon-types{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}.modal-section{margin-top:22px}.modal-section h4{margin-bottom:10px;font-size:14px;text-transform:uppercase;letter-spacing:.08em}.modal-section-heading{display:flex;align-items:baseline;justify-content:space-between;margin-bottom:10px}.modal-section-heading h3{margin:0}.modal-section-heading span{color:var(--muted);font-size:12px}.move-list{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px}.resource-tabs{display:flex;gap:8px;margin-bottom:12px;flex-wrap:wrap;justify-content:center}.tab{background:transparent;border:1px solid rgba(255,255,255,.04);padding:8px 12px;border-radius:999px;color:var(--muted);cursor:pointer}.tab.active{background:var(--card);color:var(--text);border-color:#ffffff0f}.generation-feed{width:100%;max-width:1100px;margin:36px auto 80px;padding:0 18px}.feed-controls{display:flex;gap:12px;align-items:center;justify-content:center;margin-bottom:12px}.feed-list{display:flex;flex-direction:column;gap:18px}.feed-gen{background:transparent;padding:12px;border-radius:10px}.gen-header{display:flex;align-items:center;justify-content:space-between}.gen-header h3{margin:0;color:var(--text);text-transform:capitalize}.gen-row{display:flex;gap:12px;overflow:auto;padding:12px 0}.small-card{width:120px;flex:0 0 120px;background:var(--card);border-radius:10px;padding:8px;display:flex;flex-direction:column;align-items:center;gap:8px;cursor:pointer}.gen-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:16px;padding:12px 0;align-items:start}.gen-card-cell{display:block}.generation-feed .poke-card{padding:10px}.small-image{width:72px;height:72px;border-radius:8px;display:flex;align-items:center;justify-content:center;background:#ffffff05}.small-image img{max-width:100%;max-height:100%}.small-meta{font-size:12px;color:var(--text);text-align:center}.resource-card ul,.modal .resource-card ul,.generic-card ul,.resource-card .evo-chain{list-style:none;margin:0;padding-left:0}.resource-card li,.modal .resource-card li{margin:6px 0;padding-left:0;overflow-wrap:anywhere}.resource-card li::marker{display:none}.resource-title{font-size:20px;font-weight:700;margin:0 0 6px}.resource-subtitle{font-size:13px;color:var(--muted);margin-bottom:8px}.resource-details dt{font-weight:700;font-size:13px;margin-top:8px}.resource-details dd{margin:4px 0 0;color:var(--text)}.resource-details dd ul{margin:6px 0 0;padding-left:0}
