:root{--bg:#f5f5f7;--surface:#fff;--surface-2:#f0f0f3;--border:#e2e2e7;--text:#1d1d1f;--muted:#6e6e76;--accent:#e3350d;--accent-ink:#fff;--accent-soft:#fde9e4;--fav:#e0245e;--wish:#e8a400;--ok:#1f9d55;--warn:#c2410c;--radius:14px;--shadow:0 1px 2px #0000000d, 0 4px 16px #0000000f;--shadow-lift:0 4px 10px #00000014, 0 16px 32px #0000001f;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light dark;-webkit-font-smoothing:antialiased;font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,sans-serif;font-size:15px;line-height:1.5}@media (prefers-color-scheme:dark){:root{--lightningcss-light: ;--lightningcss-dark:initial;--bg:#0f0f12;--surface:#18181c;--surface-2:#222228;--border:#2c2c33;--text:#f2f2f5;--muted:#9a9aa5;--accent:#ff5a36;--accent-soft:#3a1d16;--shadow:0 1px 2px #0006, 0 4px 16px #0000004d;--shadow-lift:0 8px 30px #0000008c}}*{box-sizing:border-box}body{background:var(--bg);color:var(--text);margin:0}a{color:inherit;text-decoration:none}a:hover{color:var(--accent)}h1,h2,h3,h4{letter-spacing:-.01em;margin:0 0 .4em;line-height:1.2}h1{font-size:clamp(1.6rem,3vw,2.2rem);font-weight:800}h2{font-size:1.3rem}h3{font-size:1.02rem}code{background:var(--surface-2);border-radius:6px;padding:1px 6px;font-size:.85em}.muted{color:var(--muted)}.small{font-size:.82rem}.capitalize{text-transform:capitalize}.app{flex-direction:column;min-height:100vh;display:flex}.topbar{z-index:20;background:color-mix(in srgb, var(--surface) 88%, transparent);-webkit-backdrop-filter:saturate(180%)blur(14px);backdrop-filter:saturate(180%)blur(14px);border-bottom:1px solid var(--border);position:sticky;top:0}.topbar-inner{align-items:center;gap:12px;max-width:1320px;margin:0 auto;padding:10px 20px;display:flex}.brand{white-space:nowrap;align-items:center;gap:8px;font-size:1.15rem;font-weight:800;display:flex}.brand-ball{border:2.5px solid var(--text);background:linear-gradient(var(--accent) 0 45%, var(--text) 45% 55%, #fff 55%);border-radius:50%;width:22px;height:22px;position:relative}.brand-ball:after{content:"";border:2px solid var(--text);background:#fff;border-radius:50%;position:absolute;inset:5px}.search{flex:1;max-width:420px;margin-left:auto}.search input,.input,.field input,.field select,.field textarea,.lang,.deck-add select{width:100%;font:inherit;color:var(--text);background:var(--surface-2);border:1px solid #0000;border-radius:10px;outline:none;padding:8px 12px;transition:border-color .15s,background .15s}.input{width:auto;min-width:180px}.search input:focus,.input:focus,.field input:focus,.field select:focus,.field textarea:focus{border-color:var(--accent);background:var(--surface)}.lang{width:auto}.menu-btn{color:var(--text);cursor:pointer;background:0 0;border:0;font-size:1.3rem;display:none}.nav{justify-content:space-between;gap:8px;max-width:1320px;margin:0 auto;padding:0 20px 8px;display:flex;overflow-x:auto}.nav-group{gap:2px;display:flex}.nav a{color:var(--muted);white-space:nowrap;border-radius:999px;align-items:center;gap:6px;padding:6px 12px;font-weight:500;display:flex}.nav a:hover{color:var(--text);background:var(--surface-2)}.nav a.active{color:var(--text);background:var(--surface-2);font-weight:600}.nav-count{background:var(--accent);color:var(--accent-ink);border-radius:999px;padding:0 6px;font-size:.72rem;font-weight:700}.main{flex:1;width:100%;max-width:1320px;margin:0 auto;padding:24px 20px 64px}.footer{border-top:1px solid var(--border);text-align:center;color:var(--muted);padding:20px;font-size:.8rem}.footer a{text-decoration:underline}.page-header{flex-wrap:wrap;justify-content:space-between;align-items:flex-end;gap:16px;margin-bottom:20px;display:flex}.page-header p{margin:0}.page-header-actions{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.header-logo{object-fit:contain;max-width:200px;max-height:64px}.crumbs{color:var(--muted);margin-bottom:12px;font-size:.85rem}.crumbs a{text-underline-offset:2px;text-decoration:underline}.section-head{justify-content:space-between;align-items:baseline;gap:12px;margin:32px 0 14px;display:flex}.section-head h2{margin:0}.section-head a{color:var(--accent);font-weight:600}.btn{font:inherit;border:1px solid var(--border);background:var(--surface);color:var(--text);cursor:pointer;white-space:nowrap;border-radius:10px;align-items:center;gap:6px;padding:8px 14px;font-size:.9rem;font-weight:600;transition:background .15s,border-color .15s,transform .1s;display:inline-flex}.btn:hover:not(:disabled){border-color:var(--text);color:var(--text)}.btn:active:not(:disabled){transform:scale(.97)}.btn:disabled{opacity:.5;cursor:not-allowed}.btn-primary{background:var(--accent);border-color:var(--accent);color:var(--accent-ink)}.btn-primary:hover:not(:disabled){color:var(--accent-ink);border-color:var(--accent);filter:brightness(1.08)}.btn-danger{color:var(--warn)}.btn-small{padding:4px 10px;font-size:.8rem}.btn-fav{background:var(--fav);border-color:var(--fav);color:#fff}.btn-wish{background:var(--wish);border-color:var(--wish);color:#1d1d1f}.check{cursor:pointer;align-items:center;gap:6px;font-size:.9rem;display:flex}.field{color:var(--muted);flex-direction:column;gap:4px;font-size:.78rem;font-weight:500;display:flex}.field textarea{resize:vertical}.toolbar{flex-wrap:wrap;align-items:center;gap:10px;margin:16px 0;display:flex}.segmented{background:var(--surface-2);border-radius:10px;padding:3px;display:inline-flex}.segmented button{font:inherit;color:var(--muted);cursor:pointer;background:0 0;border:0;border-radius:8px;padding:6px 12px;font-size:.85rem;font-weight:500}.segmented button.active{background:var(--surface);color:var(--text);box-shadow:var(--shadow);font-weight:600}.inline-form{gap:8px;display:flex}.search-big .input{width:100%;padding:12px 16px;font-size:1.05rem}.filters{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:12px;margin:14px 0 20px;padding:16px;display:grid}.load-more{justify-content:center;margin-top:24px;display:flex}.pill{border-radius:999px;padding:1px 8px;font-size:.75rem;font-weight:600;display:inline-block}.pill.ok{background:color-mix(in srgb, var(--ok) 15%, transparent);color:var(--ok)}.pill.no{background:var(--surface-2);color:var(--muted);text-decoration:line-through}.chip{background:var(--surface-2);color:var(--muted);border-radius:6px;padding:1px 6px;font-size:.7rem}.chip-price,.ok-text{color:var(--ok);font-weight:600}.warn-text{color:var(--warn);font-weight:600}.status{color:var(--muted);text-align:center;flex-direction:column;align-items:center;gap:12px;padding:48px 16px;display:flex}.status-empty{background:var(--surface);border:1px dashed var(--border);border-radius:var(--radius)}.status-empty a{color:var(--accent);font-weight:600}.status-error{color:var(--warn)}.spinner{border:3px solid var(--border);border-top-color:var(--accent);border-radius:50%;width:28px;height:28px;animation:.8s linear infinite spin}@keyframes spin{to{transform:rotate(360deg)}}.progress{background:var(--surface-2);border-radius:999px;width:100%;height:6px;overflow:hidden}.progress-fill{background:var(--accent);border-radius:inherit;height:100%;transition:width .3s}.progress-fill.over{background:var(--warn)}.hero{background:radial-gradient(circle at 100% 0%, var(--accent-soft), transparent 55%), var(--surface);border:1px solid var(--border);border-radius:22px;grid-template-columns:1fr 1fr;align-items:center;gap:32px;padding:32px;display:grid}.hero h1{font-size:clamp(1.8rem,4vw,2.8rem)}.hero-actions{flex-wrap:wrap;align-items:center;gap:8px;margin-top:16px;display:flex}.stats{grid-template-columns:repeat(auto-fit,minmax(96px,1fr));gap:10px;margin:0;display:grid}.stats>*{background:var(--surface-2);border-radius:12px;padding:12px 14px}.stats dt{color:var(--muted);font-size:.78rem}.stats dd{margin:2px 0 0;font-size:1.5rem;font-weight:800}.stats-row{margin-bottom:8px}.stats-row>*{background:var(--surface);border:1px solid var(--border)}.set-grid{grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:14px;display:grid}.set-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);flex-direction:column;gap:6px;padding:14px;transition:transform .15s,box-shadow .15s;display:flex}.set-card:hover{box-shadow:var(--shadow-lift);color:inherit;transform:translateY(-2px)}.set-card strong{align-items:center;gap:6px;line-height:1.25;display:flex}.set-card .muted{font-size:.8rem}.set-logo{justify-content:center;align-items:center;height:80px;margin-bottom:4px;display:flex}.set-logo img{object-fit:contain;max-width:100%;max-height:100%}.set-logo-text{color:var(--muted);text-align:center;font-weight:800}.set-symbol{object-fit:contain;vertical-align:middle;width:20px;height:20px;margin-right:4px}.serie-group+.serie-group{margin-top:8px}.serie-group h2 a:hover{color:var(--accent)}.set-hero{background:var(--surface);border:1px solid var(--border);border-radius:20px;grid-template-columns:280px 1fr;gap:28px;padding:24px;display:grid}.set-hero-logo{justify-content:center;align-items:center;display:flex}.set-hero-logo img{object-fit:contain;max-width:100%;max-height:160px}.set-hero h1{align-items:center;gap:6px;display:flex}.set-progress{flex-direction:column;gap:6px;max-width:420px;margin-top:16px;display:flex}.set-progress .progress{height:10px}.facts{grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:12px 20px;margin:12px 0 0;display:grid}.facts dt{color:var(--muted);text-transform:uppercase;letter-spacing:.04em;font-size:.75rem}.facts dd{margin:2px 0 0;font-weight:600}.facts dd a{color:var(--accent)}.set-progress-list{flex-direction:column;gap:8px;display:flex}.set-progress-row{background:var(--surface);border:1px solid var(--border);border-radius:12px;grid-template-columns:minmax(160px,1fr) 2fr auto;align-items:center;gap:16px;padding:12px 16px;display:grid}.card-grid{grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:18px;display:grid}.tile{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);flex-direction:column;padding:8px;transition:transform .15s,box-shadow .15s;display:flex;position:relative}.tile:hover{box-shadow:var(--shadow-lift);transform:translateY(-3px)}.tile-owned{border-color:color-mix(in srgb, var(--ok) 55%, var(--border))}.tile-link{display:block}.card-img{aspect-ratio:245/342;object-fit:cover;background:var(--surface-2);border-radius:9px;width:100%;display:block}.card-img-missing{text-align:center;color:var(--muted);border:2px dashed var(--border);flex-direction:column;justify-content:center;align-items:center;gap:4px;padding:12px;font-weight:700;display:flex}.card-img-missing small{font-size:.75rem;font-weight:400}.tile-body{justify-content:space-between;align-items:baseline;gap:6px;padding:8px 2px 4px;display:flex}.tile-name{text-overflow:ellipsis;white-space:nowrap;font-size:.88rem;font-weight:600;overflow:hidden}.tile-id{color:var(--muted);flex-shrink:0;font-size:.75rem}.tile-actions{align-items:center;gap:4px;display:flex}.tile-extra{flex-wrap:wrap;gap:4px;margin-top:6px;display:flex}.icon-btn{border:1px solid var(--border);background:var(--surface);width:30px;height:30px;color:var(--muted);cursor:pointer;border-radius:8px;place-items:center;font-size:1rem;line-height:1;transition:background .15s,color .15s,transform .1s;display:grid}.icon-btn:hover{color:var(--text);border-color:var(--text)}.icon-btn:active{transform:scale(.9)}.icon-btn.on.fav{color:#fff;background:var(--fav);border-color:var(--fav)}.icon-btn.on.wish{color:#1d1d1f;background:var(--wish);border-color:var(--wish)}.icon-btn.add{font-weight:700}.owned-badge{color:var(--ok);margin-left:auto;font-size:.78rem;font-weight:700}.card-detail{grid-template-columns:minmax(260px,360px) 1fr 300px;align-items:start;gap:28px;display:grid}.card-detail-img{position:sticky;top:120px}.zoom-btn{cursor:zoom-in;background:0 0;border:0;width:100%;padding:0;display:block}.zoom-btn .card-img{box-shadow:var(--shadow-lift);border-radius:16px}.prev-next{justify-content:space-between;gap:8px;margin-top:12px;font-size:.82rem;display:flex}.prev-next a{color:var(--muted)}.prev-next a:hover{color:var(--accent)}.title-row{flex-wrap:wrap;align-items:center;gap:10px;display:flex}.title-row h1{margin:0}.hp{font-size:1.4rem;font-weight:800}.hp small{color:var(--muted);margin-right:2px;font-size:.7rem}.type-badge{color:#fff;text-shadow:0 1px 1px #00000040;border-radius:999px;padding:3px 10px;font-size:.75rem;font-weight:700}.energy-dot{vertical-align:middle;border:1.5px solid #fff9;border-radius:50%;width:18px;height:18px;display:inline-block;box-shadow:inset 0 -2px #0003}.flavor{color:var(--muted);font-style:italic}.block{background:var(--surface);border:1px solid var(--border);border-radius:12px;margin-top:12px;padding:14px 16px}.block p{margin:0}.tag{text-transform:uppercase;color:var(--accent);border:1px solid var(--accent);vertical-align:middle;border-radius:6px;padding:1px 6px;font-size:.7rem;font-weight:700}.attack-head{align-items:center;gap:10px;margin-bottom:4px;display:flex}.attack-head h3{flex:1;margin:0}.cost{gap:3px;display:inline-flex}.damage{font-size:1.3rem;font-weight:800}.wrr{background:var(--surface-2);border-radius:12px;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:12px;padding:14px 16px;display:grid}.wrr dt{color:var(--muted);font-size:.75rem}.wrr dd{flex-wrap:wrap;gap:6px;margin:4px 0 0;font-weight:600;display:flex}.pricing{grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:16px;display:grid}.pricing h4 a{color:var(--accent)}.pricing h5{text-transform:capitalize;margin:8px 0 2px}.price-table{border-collapse:collapse;width:100%;font-size:.85rem}.price-table th{text-align:left;color:var(--muted);padding:3px 0;font-weight:400}.price-table td{text-align:right;font-variant-numeric:tabular-nums;font-weight:600}.price-table tr+tr{border-top:1px solid var(--border)}.panel{background:var(--surface);border:1px solid var(--border);border-radius:16px;flex-direction:column;gap:12px;padding:16px;display:flex;position:sticky;top:120px}.panel h3{align-items:center;gap:8px;margin:8px 0 0;display:flex}.panel-actions{grid-template-columns:1fr 1fr;gap:8px;display:grid}.panel-actions .btn{justify-content:center}.panel p{margin:0}.count-pill{background:var(--ok);color:#fff;border-radius:999px;padding:0 8px;font-size:.78rem}.variant-list{flex-direction:column;gap:6px;display:flex}.variant-row{justify-content:space-between;align-items:center;font-size:.9rem;display:flex}.stepper{border:1px solid var(--border);border-radius:10px;align-items:center;display:inline-flex;overflow:hidden}.stepper button{font:inherit;background:var(--surface-2);width:32px;height:30px;color:var(--text);cursor:pointer;border:0;font-weight:700}.stepper button:hover:not(:disabled){background:var(--accent);color:var(--accent-ink)}.stepper button:disabled{opacity:.35;cursor:not-allowed}.stepper output{text-align:center;font-variant-numeric:tabular-nums;min-width:32px;font-weight:700}.deck-add{align-items:center;gap:8px;display:flex}.lightbox{z-index:100;cursor:zoom-out;background:#000000d9;place-items:center;padding:24px;animation:.15s fade;display:grid;position:fixed;inset:0}.lightbox .card-img{border-radius:20px;width:auto;max-width:100%;height:min(90vh,900px)}@keyframes fade{0%{opacity:0}}.dex-grid{grid-template-columns:repeat(auto-fill,minmax(120px,1fr));gap:10px;display:grid}.dex-item{background:var(--surface);border:1px solid var(--border);border-radius:12px;flex-direction:column;align-items:center;padding:10px 6px;transition:transform .15s,box-shadow .15s;display:flex}.dex-item:hover{box-shadow:var(--shadow-lift);transform:translateY(-2px)}.dex-item img{width:80px;height:80px;image-rendering:pixelated}.dex-num{color:var(--muted);font-variant-numeric:tabular-nums;font-size:.75rem}.dex-name{text-transform:capitalize;text-align:center;font-size:.85rem;font-weight:600}.pokemon-hero{background:radial-gradient(circle at 15% 50%, var(--accent-soft), transparent 50%), var(--surface);border:1px solid var(--border);border-radius:20px;align-items:center;gap:28px;margin-bottom:24px;padding:24px;display:flex}.pokemon-hero img{object-fit:contain;width:200px;height:200px}.pokemon-hero h1{margin:4px 0}.pokemon-hero p{margin:0}.deck-grid{grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:14px;display:grid}.deck-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);gap:14px;padding:12px;transition:box-shadow .15s;display:flex}.deck-card:hover{box-shadow:var(--shadow-lift);color:inherit}.deck-card p{margin:2px 0 8px}.deck-cover{aspect-ratio:245/342;background:var(--surface-2);width:72px;color:var(--muted);border-radius:8px;flex-shrink:0;place-items:center;font-size:.75rem;display:grid}.deck-meter{margin-bottom:20px}.deck-meter .progress{height:10px}.problems{color:var(--warn);margin:8px 0 0;padding-left:18px;font-size:.88rem}.deck-meter .ok-text{margin:8px 0 0}.deck-layout{grid-template-columns:1fr 360px;align-items:start;gap:24px;display:grid}.deck-group+.deck-group{margin-top:16px}.deck-list,.deck-search-results{flex-direction:column;gap:6px;margin:0;padding:0;list-style:none;display:flex}.deck-list li,.deck-search-results li{background:var(--surface);border:1px solid var(--border);border-radius:10px;grid-template-columns:40px 1fr auto auto;align-items:center;gap:12px;padding:6px 10px;display:grid}.deck-search-results li{grid-template-columns:40px 1fr auto}.deck-list .card-img,.deck-search-results .card-img{border-radius:4px}.deck-list .card-img-missing span,.deck-search-results .card-img-missing span,.deck-list .card-img-missing small,.deck-search-results .card-img-missing small{display:none}.deck-search{flex-direction:column;gap:10px;max-height:calc(100vh - 140px);display:flex;position:sticky;top:120px;overflow-y:auto}.deck-search .input{width:100%}.input-title{font-size:1.6rem;font-weight:800}.scanner-layout{grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);align-items:start;gap:24px;display:grid}.cam-frame{background:#000;border-radius:18px;width:100%;margin:0 auto;position:relative;overflow:hidden}.cam-frame video{object-fit:contain;width:100%;height:100%;display:block}.cam-guide{border:3px solid #ffffffe6;border-radius:14px;transition:border-color .2s;position:absolute;box-shadow:0 0 0 100vmax #00000073}.cam-guide.scanning{border-color:var(--accent);animation:1s ease-in-out infinite pulse}@keyframes pulse{50%{border-color:#fff}}.cam-zone{color:#ffffffbf;border:1.5px dashed #ffffff8c;border-radius:6px;padding:0 6px;font-size:.7rem;position:absolute;left:3%;right:3%}.cam-zone-name{height:14%;top:1.5%}.cam-zone-number{align-items:flex-end;height:12%;display:flex;bottom:.5%}.cam-toast{background:var(--ok);color:#fff;white-space:nowrap;text-overflow:ellipsis;border-radius:999px;max-width:92%;padding:8px 14px;font-weight:600;animation:.2s fade;position:absolute;bottom:16px;left:50%;overflow:hidden;transform:translate(-50%)}.cam-placeholder{text-align:center;background:var(--surface);border:1px dashed var(--border);border-radius:18px;flex-direction:column;justify-content:center;align-items:center;gap:16px;min-height:360px;padding:24px;display:flex}.cam-placeholder-card{aspect-ratio:63/88;border:3px dashed var(--border);border-radius:10px;width:120px}.scan-step{margin:0}.tips{color:var(--muted);margin-top:8px;font-size:.88rem}.tips summary{cursor:pointer;font-weight:600}.tips ul{padding-left:18px}.scanner-result{flex-direction:column;gap:16px;display:flex}.scanner-result h3{margin:0}.scan-read{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);grid-template-columns:120px 1fr;gap:16px;padding:14px;display:grid}.scan-capture{border-radius:8px;width:100%}.scan-fields{flex-direction:column;align-items:flex-start;gap:10px;display:flex}.scan-fields .field{width:100%}.scan-fields pre{white-space:pre-wrap;margin:6px 0;font-size:.75rem}.scanner-result .card-grid{grid-template-columns:repeat(auto-fill,minmax(140px,1fr))}.scan-history .deck-list li{grid-template-columns:40px 1fr auto}@media (width<=1100px){.card-detail{grid-template-columns:minmax(220px,320px) 1fr}.panel{grid-column:1/-1;position:static}}@media (width<=860px){.hero,.set-hero,.deck-layout,.scanner-layout,.card-detail{grid-template-columns:1fr}.card-detail-info{order:2}.card-detail-img,.deck-search{max-height:none;position:static}.card-detail-img{width:100%;max-width:360px;margin:0 auto}.set-progress-row{grid-template-columns:1fr auto}.set-progress-row .progress{grid-area:2/1/auto/-1}}@media (width<=680px){.topbar-inner{flex-wrap:wrap;padding:10px 16px}.search{flex-basis:100%;order:3;max-width:none}.lang{margin-left:auto}.menu-btn{display:block}.nav{flex-direction:column;padding:0 16px 12px;display:none}.nav-open{display:flex}.nav-group{flex-direction:column}.main{padding:16px 16px 48px}.hero{padding:20px}.card-grid{grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:12px}.input{flex:1;min-width:0}.wrr{grid-template-columns:1fr}.pokemon-hero{text-align:center;flex-direction:column}.pokemon-hero .hero-actions{justify-content:center}.inline-form{width:100%}}.scan-live{background:var(--surface-2);color:var(--text);font-variant-numeric:tabular-nums;border-radius:10px;margin:0;padding:8px 12px}.scan-fields-row{grid-template-columns:1fr 1fr;gap:10px;width:100%;display:grid}
