/* PokeRogue 游戏主题（SOP v3.22，02 §2.1）。首页、全部分页、专区 About/Contact 共用。
   视觉来源：pokerogue.net 原版客户端界面——暗紫灰底（#484050 一带）、红色描边面板、金橙标题字、蓝色强调；
   标题用 Pixelify Sans（OFL，本站托管）。布局骨架来自 guide-article-layout.css；不加载其他游戏样式。 */
@font-face{font-family:"Pixelify Sans";src:url("/assets/fonts/pixelify-sans-700.woff2") format("woff2");font-weight:700;font-display:swap}
:root{--night:#1d1928;--stone:#262035;--panel:#322b44;--panel-hi:#3f3756;--blood:#b3362a;--blood-lo:#6b1d2a;--blood-hi:#e0513f;--gold:#f2b94b;--gold-hi:#ffd983;--text:#ece8f5;--dim:#b9b1cf;--rim:#4c4466;--display:"Pixelify Sans","Courier New",monospace;--body:system-ui,-apple-system,"Segoe UI",sans-serif;
 /* 骨架读取的变量 */--paper:var(--night);--white:var(--panel);--ink:var(--text);--muted:var(--dim);--line:var(--rim);--pale:var(--stone);--green:var(--gold);--heading:var(--display);color-scheme:dark;
 /* 首页组件变量（hub.css） */--hub-night:#1d1928;--hub-dark:#262035;--hub-wood-hi:#3f3756;--hub-frame:#4c4466;--hub-accent:#f2b94b;--hub-accent-dim:#9c7a2c;--hub-title:#fff0cc;--hub-card:#2c2640;--hub-ink-on-dark:#ece8f5;--hub-hot:#ff6b57;--hub-edge:#443d5c;--hub-soft:#b9b1cf;--hub-hero-bg:url("/assets/pokerogue/hero-bg-1280.webp")}
html{scroll-behavior:smooth;scroll-padding-top:1.5rem}
body.pr-theme{margin:0;background:radial-gradient(900px 420px at 50% -140px,#4a2a63 0,transparent 72%),var(--night);color:var(--text);font:17px/1.72 var(--body)}
.pr-theme *{box-sizing:border-box}
.pr-theme a{color:var(--gold);text-underline-offset:4px}.pr-theme a:hover{color:var(--gold-hi)}
.pr-theme a:focus-visible,.pr-theme button:focus-visible,.pr-theme summary:focus-visible,.pr-theme select:focus-visible,.pr-theme [tabindex]:focus-visible{outline:3px solid #7cc0ff;outline-offset:4px}
.pr-theme img{max-width:100%;height:auto}
.pr-theme h1,.pr-theme h2,.pr-theme h3,.pr-theme .brand{font-family:var(--display);font-weight:600;line-height:1.2;color:#fff3d6;letter-spacing:.01em}
.pr-theme h3{font-size:1.2rem}
.pr-theme p{margin:.7rem 0 1.15rem}
.pr-theme .wrap{width:min(1200px,calc(100% - 64px));max-width:none;margin:auto;padding-inline:0}
.pr-theme .skip{position:absolute;top:-90px;left:12px;background:var(--gold);color:#1d1928;padding:10px;z-index:30}.pr-theme .skip:focus{top:10px}
.pr-theme .sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.pr-theme [hidden]{display:none!important}

/* 页眉 */
.pr-theme .top{background:#14101f;border-bottom:1px solid var(--gold);box-shadow:0 3px 0 #14101f,0 4px 0 var(--rim);position:relative;z-index:5}
.pr-theme .top>.wrap{display:flex;align-items:center;justify-content:space-between;gap:24px;min-height:84px}
.pr-theme .brand{text-decoration:none;font-size:22px;line-height:1.1;max-width:260px;letter-spacing:.04em;color:#fff3d6}
.pr-theme .brand small{display:block;font:600 10px/1.6 var(--body);letter-spacing:.2em;text-transform:uppercase;color:var(--gold);margin-top:6px}
.pr-theme .desktop-nav{display:flex;align-items:center;gap:26px}
.pr-theme .desktop-nav a,.pr-theme .mobile-links a{color:var(--text);text-decoration:none;font-size:14px;font-weight:650;padding:10px 0}
.pr-theme .desktop-nav a:hover{color:var(--gold-hi)}
.pr-theme .desktop-nav a[aria-current=page]{color:var(--gold-hi);box-shadow:inset 0 -3px 0 var(--blood-hi)}
.pr-theme .mobile-nav{display:none;position:relative}
.pr-theme .mobile-nav summary{list-style:none;cursor:pointer;color:var(--text);border:1px solid var(--gold);border-radius:4px;padding:9px 14px;font-size:14px;min-height:44px}
.pr-theme .mobile-nav summary::-webkit-details-marker{display:none}
.pr-theme .mobile-links{position:absolute;right:0;top:calc(100% + 8px);display:grid;min-width:220px;background:#1a1626;border:1px solid var(--gold);padding:6px 16px;box-shadow:0 14px 28px #000a;z-index:9}
.pr-theme .mobile-links a{padding:13px 0;border-bottom:1px solid var(--rim)}.pr-theme .mobile-links a:last-child{border:0}

/* 标签、按钮 */
.pr-theme .eyebrow,.pr-theme .task-tag,.pr-theme .section-label{font:700 11px/1.6 var(--body);letter-spacing:.16em;text-transform:uppercase}
.pr-theme .eyebrow{display:block;color:var(--gold);margin:0}
.pr-theme .button,.pr-theme .launch{display:inline-flex;align-items:center;justify-content:space-between;gap:20px;min-height:46px;padding:10px 20px;background:linear-gradient(var(--gold-hi),var(--gold));border:1px solid #fff0b8;color:#241a06;text-decoration:none;font:700 14px/1.3 var(--body);border-radius:3px;box-shadow:0 3px 0 #8a5f10}
.pr-theme .button:hover,.pr-theme .launch:hover{color:#000;filter:brightness(1.08)}
.pr-theme .button.secondary{background:transparent;color:var(--gold-hi);border-color:var(--gold);box-shadow:none}

/* 分页：标题、答案框、目录、正文 */
.pr-theme .crumbs{font-size:13px;color:var(--dim);padding:22px 0 0;overflow-wrap:anywhere}
.pr-theme .crumbs a{color:var(--dim);text-decoration:none}.pr-theme .crumbs a:hover{color:var(--gold-hi)}.pr-theme .crumbs [aria-current]{color:var(--text)}
.pr-theme .article-head{padding:30px 0 20px}
.pr-theme .crumbs+.article-head{padding-top:12px}
.pr-theme .article-head h1{font-size:clamp(2rem,4.3vw,3.2rem);margin:.15em 0 .55em;max-width:26ch}
.pr-theme .answer,.pr-theme .article-head .answer{background:linear-gradient(var(--panel-hi),var(--panel));border:1px solid var(--gold);border-left:5px solid var(--blood-hi);box-shadow:inset 0 0 0 3px var(--panel),inset 0 0 0 4px var(--rim);padding:20px 24px;font-size:1.08rem;line-height:1.65;color:#f4efe0;max-width:80ch}
.pr-theme .answer p{margin:0 0 .6rem}.pr-theme .answer p:last-child{margin-bottom:0}
.pr-theme .byline{font-size:13px;color:var(--dim);margin-top:14px}
.pr-theme .article-layout>.toc{background:var(--stone);border:1px solid var(--rim);border-top:3px solid var(--gold);border-radius:4px}
.pr-theme .toc strong{font:700 11px/1.5 var(--body);letter-spacing:.16em;text-transform:uppercase;color:var(--gold)}
.pr-theme.guide-layout .article-layout>.toc a{background:var(--panel);border-color:var(--rim);color:var(--gold-hi);border-radius:3px;text-decoration:none}
.pr-theme.guide-layout .article-layout>.toc a:hover{border-color:var(--gold);color:#fff3cc}
.pr-theme .prose h2{margin-top:2.2rem;padding-top:.3rem;font-size:clamp(1.5rem,3vw,2.1rem)}
.pr-theme .prose h2::before{content:"";display:block;width:54px;height:3px;background:var(--blood-hi);margin-bottom:12px}
.pr-theme .prose>section>.eyebrow+h2::before{display:none}
.pr-theme .prose h3{margin-top:1.5rem}
.pr-theme .prose p,.pr-theme .prose li{color:#e4def0}.pr-theme .prose li{padding:4px 0}
.pr-theme .prose>section+section{border-top:1px solid #3a3350}
.pr-theme .prose details{border:1px solid var(--rim);background:var(--stone);padding:14px 18px;margin:14px 0}
.pr-theme .prose summary{cursor:pointer;color:var(--gold-hi);font-weight:700}
.pr-theme .prose figcaption,.pr-theme figure.game-image figcaption{color:var(--dim)}
.pr-theme.guide-layout figure.game-image{background:var(--stone);border-color:var(--gold);border-radius:4px;padding:8px}
.pr-theme.guide-layout figure.game-image img{border-radius:0}
.pr-theme .notice,.pr-theme .note{background:var(--panel);border-left:4px solid var(--blood-hi);padding:14px 18px;margin:22px 0;font-size:15px}
.pr-theme .choice{padding:16px;border:1px solid var(--rim);background:var(--panel);border-radius:4px;margin:14px 0}.pr-theme .choice p{margin-bottom:0}
.pr-theme .ref{font-size:11px;vertical-align:super;margin-left:3px}.pr-theme .ref a{text-decoration:none;padding:3px 2px}
.pr-theme .sources{border-top:1px solid var(--rim);margin-top:34px;padding-top:12px;font-size:14px;overflow-wrap:anywhere;color:var(--dim)}
.pr-theme .sources h2{font-size:1.25rem}.pr-theme .sources h2::before{display:none}.pr-theme .sources li{margin-bottom:10px}
.pr-theme .back{font-size:13px}
.pr-theme .related-tasks,.pr-theme .related{margin-top:2.4rem;padding-top:1rem;border-top:1px solid var(--rim)}
.pr-theme .related-tasks h2::before{display:none}
.pr-theme .related-links{display:flex;flex-wrap:wrap;gap:10px 24px}
.pr-theme .related-links a{text-decoration:none;font-weight:650;padding:8px 0}
.pr-theme .related{display:flex;flex-wrap:wrap;gap:12px}
.pr-theme .related a{padding:10px 14px;border:1px solid var(--rim);background:var(--panel);border-radius:4px;text-decoration:none}
.pr-theme .related a:hover{border-color:var(--gold)}
.pr-theme .legal{max-width:72ch;padding:30px 0 60px}.pr-theme .legal .crumbs{padding:0}
.pr-theme .legal .article-head{padding:14px 0 6px}
.pr-theme .legal section{padding-block:6px}

/* 表格 */
.pr-theme .table-wrap{overflow-x:auto;border:1px solid var(--rim);border-radius:4px;margin:22px 0;max-width:100%;background:var(--panel);contain:inline-size layout paint;overscroll-behavior-x:contain}
.pr-theme table{border-collapse:collapse;width:100%;min-width:560px;font-size:14px;color:var(--text)}
.pr-theme th,.pr-theme td{padding:13px 15px;text-align:left;border-bottom:1px solid var(--rim);vertical-align:top}
.pr-theme th{background:var(--panel-hi);color:#ffe7a8;font:700 12px/1.4 var(--body);letter-spacing:.06em;text-transform:uppercase}
.pr-theme tr:last-child td{border-bottom:0}
@media(max-width:700px){.pr-theme .prose .table-wrap::before{content:"Scroll sideways for all columns →";display:block;padding:.6rem;font-size:.85rem;color:var(--gold-hi);background:var(--stone);position:sticky;left:0}}

/* 联机兼容检查工具 */
.pr-theme .tool{padding:24px;border:1px solid var(--gold);box-shadow:inset 0 0 0 3px var(--stone),inset 0 0 0 4px var(--rim);background:var(--stone);border-radius:4px;margin:24px 0}
.pr-theme .tool-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}
.pr-theme label{display:block;font-weight:700;font-size:14px}
.pr-theme select{display:block;max-width:100%;width:100%;margin-top:8px;padding:12px;min-height:46px;background:var(--panel);color:var(--text);border:1px solid var(--gold);border-radius:3px;font:inherit}
.pr-theme button{font:700 14px/1.4 var(--body);padding:12px 18px;min-height:44px;border:1px solid var(--gold);border-radius:3px;cursor:pointer;background:linear-gradient(var(--gold-hi),var(--gold));color:#241a06;margin:14px 8px 0 0}
.pr-theme button[type=reset]{background:transparent;color:var(--gold-hi)}
.pr-theme .result{background:var(--panel);border-left:4px solid var(--blood-hi);padding:18px;margin-top:18px;scroll-margin-top:110px}

/* 页脚（register_page.py 生成 footer.site-footer；信任页同一套） */
.pr-theme .site-footer{background:#14101f;color:var(--dim);border-top:1px solid var(--gold);padding:42px 0 0;font-size:14px;position:relative;margin-top:30px}
.pr-theme .site-footer::before{content:"";position:absolute;left:0;right:0;top:3px;height:1px;background:var(--rim)}
.pr-theme footer.site-footer .footer-grid{display:grid;grid-template-columns:1.6fr repeat(5,minmax(0,1fr));gap:28px 32px}
.pr-theme .site-footer h2{font:700 11px/1.5 var(--body);letter-spacing:.2em;text-transform:uppercase;color:var(--gold);margin:0 0 12px}
.pr-theme .site-footer h2::before{display:none}
.pr-theme .site-footer .footer-col a{display:block;color:var(--text);text-decoration:none;padding:4px 0;line-height:1.45}
.pr-theme .site-footer .footer-col a:hover{color:var(--gold-hi)}
.pr-theme .site-footer .footer-brand strong{font:600 20px/1.3 var(--display);color:#fff3d6}
.pr-theme .site-footer .footer-brand a{text-decoration:none}
.pr-theme .site-footer .footer-brand p{margin:10px 0 0;line-height:1.6;max-width:38ch}
.pr-theme .site-footer .footer-version{margin:10px 0 0;font-size:12px;border-top:1px solid var(--rim);padding-top:8px}
.pr-theme .footer-info{margin-top:34px;border-top:1px solid var(--rim);padding:16px 0 22px}
.pr-theme .footer-info .wrap{display:flex;flex-wrap:wrap;gap:8px 24px}
.pr-theme .footer-info a{color:var(--text);text-decoration:none;font-size:13px;padding:6px 0}.pr-theme .footer-info a:hover{color:var(--gold-hi)}

/* 首页底部共享的 More games 推荐卡，沿用本主题配色 */
.pr-theme .play-recommendations{max-width:none;margin-top:32px}
.pr-theme .play-rec-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.pr-theme .play-rec-card{background:var(--panel);border-color:var(--rim);border-radius:4px;box-shadow:none}
.pr-theme .play-rec-link h3{color:var(--text);font:600 22px/1.2 var(--display)}
.pr-theme .play-rec-link p,.pr-theme .play-rec-heading>p:last-child{color:var(--dim)}
.pr-theme .play-rec-action,.pr-theme .play-rec-heading>p:first-child{color:var(--gold)}
.pr-theme .play-rec-link img{border-color:var(--rim)}

@media(max-width:1100px){.pr-theme footer.site-footer .footer-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.pr-theme .site-footer .footer-brand{grid-column:1/-1}}
@media(max-width:900px){
 .pr-theme .desktop-nav{display:none}.pr-theme .mobile-nav{display:block}.pr-theme .top>.wrap{min-height:76px}
 .pr-theme footer.site-footer .footer-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .pr-theme .play-rec-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:600px){
 body.pr-theme{font-size:16px}
 .pr-theme .wrap{width:calc(100% - 32px)}
 .pr-theme .brand{font-size:19px}.pr-theme .brand small{font-size:9px;letter-spacing:.14em}
 .pr-theme .top>.wrap{min-height:56px}
 .pr-theme .crumbs{padding-top:10px}.pr-theme .crumbs>*{display:none}.pr-theme .crumbs>a:nth-last-of-type(1){display:inline}.pr-theme .crumbs>a:nth-last-of-type(1)::before{content:"‹ "}
 .pr-theme .article-head{padding:18px 0 14px}.pr-theme .crumbs+.article-head{padding-top:6px}
 .pr-theme .article-head>.eyebrow{display:none}
 .pr-theme .byline{margin-top:8px;font-size:12px;line-height:1.5}
 .pr-theme.guide-layout figure.game-image img{max-height:240px;object-fit:contain}
 .pr-theme .article-head h1{font-size:1.7rem;margin:.1em 0 .4em}
 .pr-theme .answer,.pr-theme .article-head .answer{font-size:.9rem;line-height:1.48;padding:10px 13px}
 .pr-theme.guide-layout .article-layout>.toc{flex-wrap:nowrap;overflow-x:auto;padding:8px 10px;gap:6px;align-items:center;scrollbar-width:thin}
 .pr-theme.guide-layout .toc strong{width:auto;white-space:nowrap;margin:0 4px 0 0}.pr-theme.guide-layout .toc a{white-space:nowrap}
 .pr-theme.guide-layout .article-layout{gap:10px;padding-bottom:30px}
 .pr-theme.guide-layout figure.game-image{margin:6px auto 16px;padding:5px}
 .pr-theme .prose h2{margin-top:1.4rem;font-size:1.45rem}
 .pr-theme .tool{padding:15px}.pr-theme .tool-grid{grid-template-columns:1fr}
 .pr-theme th,.pr-theme td{padding:11px;min-width:92px}.pr-theme .table-wrap{font-size:13px}
 .pr-theme .play-rec-grid{grid-template-columns:1fr}
 .pr-theme .site-footer{padding-top:28px}.pr-theme footer.site-footer .footer-grid{gap:22px 18px}.pr-theme .site-footer .footer-col a{padding:7px 0}
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*{scroll-behavior:auto!important}}

/* 品牌：Logo + 站名同排，不换行 */
.pr-theme .brand{display:flex;align-items:center;gap:10px;max-width:none;white-space:nowrap}
.pr-theme .brand img{flex:none;border-radius:4px}
@media(max-width:600px){.pr-theme .brand{gap:8px;font-size:17px}.pr-theme .brand img{width:30px;height:30px}}

/* 手机首屏：标题、答案、目录、截图压缩，首个 H2 进入第一屏（image_audit HERO） */
@media(max-width:600px){
 .pr-theme .article-head h1{font-size:1.45rem;line-height:1.18;margin:.05em 0 .35em}
 .pr-theme .answer,.pr-theme .article-head .answer{font-size:.84rem;line-height:1.42;padding:9px 12px}
 .pr-theme .byline{margin-top:6px}
 .pr-theme.guide-layout .article-layout>.toc{padding:5px 8px}
 .pr-theme.guide-layout figure.game-image img{max-height:150px}
 .pr-theme.guide-layout figure.game-image{margin:4px auto 12px}
}

/* 原作像素素材按整数倍放大，不拉伸成整屏（Dark Deal 科学家 44×74、Garbodor 动画表 419×261） */
.pr-theme .game-image img{image-rendering:pixelated}
.pr-theme.pr-guide .game-image img[width="44"]{width:176px;max-width:100%;height:auto;margin-inline:auto;display:block}
.pr-theme.pr-guide .game-image img[width="419"]{max-width:419px;width:100%;height:auto;margin-inline:auto;display:block}
.pr-theme.pr-guide .game-image:has(img[width="44"]),.pr-theme.pr-guide .game-image:has(img[width="419"]){text-align:center}
