/* Player detail follows the site's paper, lime brush and square membership cells. */
#detail{--detail-toolbar-height:72px;width:100%;max-width:none;height:100dvh;max-height:100dvh;margin:0;padding:0;border:0;border-radius:0;box-shadow:none;background:var(--paper) url('assets/paper.svg');color:var(--ink);overflow-x:hidden;overflow-y:auto;scrollbar-gutter:stable;scroll-padding-top:calc(var(--detail-toolbar-height) + env(safe-area-inset-top,0px))}
#detail .detail-toolbar{position:sticky;top:0;background:#fff url('assets/paper.svg');border-bottom:1px solid var(--line);padding:12px max(24px,calc((100% - 1100px)/2));min-height:var(--detail-toolbar-height);display:flex;align-items:center;justify-content:space-between;gap:18px;z-index:10}
#detail .detail-toolbar .close{position:static;display:flex;align-items:center;gap:8px;min-height:44px;width:auto;height:auto;padding:6px 0;background:none;border:0;box-shadow:none;font-size:17px;font-weight:400;color:#44523b}
#detail .detail-toolbar .close span{font-size:13px}
.pd-brand{display:flex;align-items:center;gap:8px;font-size:18px;white-space:nowrap}.pd-brand img{width:43px;height:43px;object-fit:contain}
#detail-body{max-width:1100px;margin:auto;padding:0 24px 40px}.pd-hero{position:relative;display:grid;grid-template-columns:140px minmax(0,1fr);align-items:center;gap:34px;padding:30px 0 36px;border-bottom:1px solid var(--line)}.pd-cover{background:#e5e7df}.pd-cover img{display:block;width:140px;height:210px;object-fit:contain;border:1px solid #111;box-shadow:2px 2px 0 #111}.pd-game-head{min-width:0;padding-right:75px}.pd-game-head #detail-title{font-size:42px;line-height:1.35;font-weight:900;letter-spacing:-1px;margin:0 0 4px;overflow-wrap:anywhere}.pd-game-head #detail-title>span{position:relative;isolation:isolate;box-decoration-break:clone;-webkit-box-decoration-break:clone}.pd-game-head #detail-title>span:before{content:'';position:absolute;inset:1px -8px -2px -6px;background:url('assets/brush.svg') center/100% 100% no-repeat;z-index:-1;transform:rotate(-1deg)}.pd-english{font-size:14px;color:#333;font-weight:400;line-height:1.4;letter-spacing:.2px;margin:0;overflow-wrap:anywhere}.pd-tags{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin-top:18px}.pd-language-badge{background:#d4ffa0;color:#284c19;font-size:11px;font-weight:700;padding:3px 6px;line-height:1.6}.pd-language-badge.no,.pd-language-badge.unknown{background:#e9eadf;color:#68644e}.pd-genre{font-size:11px;color:#566151}.pd-save{position:absolute;right:0;bottom:34px;display:flex;align-items:center;justify-content:center;gap:7px;min-height:44px;background:#111;color:#fff;padding:10px 12px;border:1px solid #111;transform:rotate(-2deg);font-size:12px;font-weight:700}.pd-save svg{height:20px;width:20px;fill:none;stroke:currentColor;stroke-width:1.7}.pd-save.on{background:var(--lime);color:#111}.pd-save.on svg{fill:currentColor}.pd-content{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(0,.75fr);gap:54px;padding-top:28px}.pd-play{min-width:0}.pd-platform-tabs{display:flex;gap:28px;margin-bottom:22px;border-bottom:1px solid var(--line)}.pd-platform{position:relative;isolation:isolate;display:flex;align-items:center;gap:8px;min-height:54px;background:none;padding:8px 3px 12px;color:#69725f;font-weight:700;font-size:15px}.pd-platform svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.6}.pd-platform[aria-selected=true]{color:var(--ink)}.pd-platform[aria-selected=true]:after{content:'';position:absolute;inset:9px -9px 8px -8px;background:url('assets/brush.svg') center/100% 100% no-repeat;z-index:-1;transform:rotate(-2deg)}.pd-rights-label{font-size:12px;color:var(--muted);margin:0 0 11px}.pd-about{min-width:0}.pd-about h3{font-size:25px;font-weight:900;line-height:1.4;margin:0 0 20px}.pd-description{margin-top:20px}.pd-description p{font-size:14px;line-height:1.9;color:#566151;margin:0 0 14px;white-space:pre-line;overflow-wrap:anywhere}.pd-notice,.pd-empty{font-size:14px;line-height:1.8;color:#73674f}.pd-notice{padding:16px 0;border-bottom:1px solid var(--line)}
.de-card{border:1px solid #111;box-shadow:3px 3px 0 #111;background:#fff;padding:18px 19px;min-width:0}.de-memberships{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0 18px;padding:0;list-style:none}.de-memberships>*{display:inline-flex;align-items:center;gap:6px;background:#fff;border:1px solid #b1bea5;padding:8px 11px;font-size:15px;font-weight:800;line-height:1.5;max-width:100%;overflow-wrap:anywhere}.de-memberships small{font-size:10px;color:#81765c;font-weight:400}.de-card p,.de-label{font-size:11px;color:#748169;line-height:1.7}.de-language{border-top:1px solid #e0e4d8;margin-top:7px;padding:0}.de-language summary{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:72px;padding:11px 0;list-style:none;font-size:14px;color:#344c26}.de-language summary::-webkit-details-marker{display:none}.de-language summary small{display:block;font-size:12px;font-weight:400;line-height:1.7;color:#65715a;margin-top:4px}.de-language summary:after{content:'明细 ⌄';font-size:11px;font-weight:400;white-space:nowrap;color:#748169}.de-language[open] summary:after{content:'收起 ⌃'}.de-language .no,.de-language .unknown{color:#77705b}.de-language-content{padding:6px 0 8px}.de-table{width:100%;border-collapse:collapse;table-layout:fixed;font-size:12px;color:#566151;margin:12px 0}.de-table th,.de-table td{padding:10px 4px;border-bottom:1px solid #e2e5da;text-align:center}.de-table th:first-child,.de-table td:first-child{text-align:left;width:31%}.de-table th{font-weight:600;color:#566151}.de-table .yes{color:#237534;font-weight:700}.de-source{display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px;font-size:10px;color:#748169;line-height:1.7}.de-source a{text-decoration:underline;text-underline-offset:3px}
@media(max-width:850px){.pd-content{gap:30px;grid-template-columns:minmax(0,1.2fr) minmax(0,.85fr)}.pd-hero{gap:25px}.pd-game-head #detail-title{font-size:36px}}
@media(max-width:680px){#detail{--detail-toolbar-height:66px}#detail .detail-toolbar{padding:8px 20px;min-height:var(--detail-toolbar-height)}.pd-brand{font-size:16px;gap:5px}.pd-brand img{width:34px;height:34px}#detail-body{padding:0 20px 28px}.pd-hero{grid-template-columns:82px minmax(0,1fr);gap:19px;padding:23px 0 27px}.pd-cover img{width:82px;height:123px}.pd-game-head{padding-right:0}.pd-game-head #detail-title{font-size:31px;margin-bottom:3px;line-height:1.3}.pd-english{font-size:12px}.pd-tags{margin-top:11px;gap:8px;padding-right:32px}.pd-genre{font-size:10px}.pd-language-badge{font-size:11px;padding:2px 6px}.pd-save{right:2px;bottom:25px;width:35px;min-height:35px;height:35px;padding:7px}.pd-save:after{content:'';position:absolute;inset:-6px}.pd-save span{display:none}.pd-save svg{width:20px;height:20px}.pd-content{display:block;padding-top:14px}.pd-platform-tabs{margin-bottom:18px}.pd-platform{font-size:14px;min-height:52px}.pd-about{border-top:1px solid var(--line);margin-top:25px;padding-top:23px}.pd-about h3{font-size:23px;margin-bottom:20px}.de-card{padding:17px 15px}.de-memberships>*{font-size:15px}.pd-description p{font-size:14px;line-height:1.9}}
@media(max-width:360px){#detail-body{padding-left:16px;padding-right:16px}#detail .detail-toolbar{padding-left:16px;padding-right:16px}.pd-hero{grid-template-columns:70px minmax(0,1fr);gap:14px}.pd-cover img{width:70px;height:105px}.pd-game-head #detail-title{font-size:28px}.pd-save{width:33px;height:33px;min-height:33px;bottom:24px}.pd-genre{display:none}.de-card{padding:15px 13px}.de-memberships>*{font-size:13px;padding:7px 9px}.pd-description p{font-size:13px}}
/* Multiple product editions retain separate language tables. */
.de-language summary:after{content:none!important}.de-language-heading{min-width:0}.de-language-expand{flex-shrink:0;font-size:11px;color:#748169;font-weight:400}.de-language[open] .de-language-expand>span{display:inline-block;transform:rotate(180deg)}.de-language-foot{display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px;font-size:10px;color:#748169;margin:10px 0 6px}.de-language-foot .de-source{display:inline;color:inherit}.de-product+.de-product{border-top:1px solid var(--line);margin-top:20px;padding-top:18px}.de-version{font-size:15px;font-weight:800;line-height:1.6;margin:0 0 12px}.de-version small{display:block;font-size:11px;font-weight:400;color:var(--muted)}.de-table .de-yes{color:#237534;font-weight:700}.de-table .de-no,.de-table .de-unknown{color:#8a907f}.de-memberships .pending{border-style:dashed}.de-empty{font-size:13px;color:var(--muted);line-height:1.8}.de-empty small{font-size:12px}.de-table caption{font-size:11px;text-align:left;margin:4px 0;color:var(--muted)}

/* The return link must not inherit the legacy round close-button shape. */
#detail{outline:none}
#detail .detail-toolbar .close{border-radius:0}
#detail .detail-toolbar .close:focus{outline:none}
#detail .detail-toolbar .close:focus-visible{outline:2px solid #566151;outline-offset:3px;border-radius:0}
/* Keep room for four lines while Chinese copy arrives; avoid a loading-text flash. */
.pd-description{min-height:112px}
.pd-description[aria-busy=true]{position:relative}
.pd-description-skeleton{padding:6px 0;opacity:1;transition:opacity .2s ease}
.pd-description-skeleton i{display:block;height:11px;margin:8px 0 15px;border-radius:5px;background:#e5e7df}
.pd-description-skeleton i:nth-child(2){width:93%}
.pd-description-skeleton i:nth-child(3){width:97%}
.pd-description-skeleton i:nth-child(4){width:66%}
.show-skeleton .pd-description-skeleton{opacity:1;animation:pd-description-pulse 1.7s ease-in-out infinite}
.pd-description.is-ready>p{animation:pd-description-in .2s ease-out}

@keyframes pd-description-pulse{50%{opacity:.45}}
@keyframes pd-description-in{from{opacity:0}to{opacity:1}}
@media(prefers-reduced-motion:reduce){.pd-description-skeleton,.pd-description.is-ready>p{animation:none;transition:none}}
#detail .pd-hero>.pd-save.favorite.sticker-favorite{position:absolute;right:2px;top:auto;bottom:20px;width:44px;height:44px;min-width:44px;min-height:44px;display:grid;place-items:center;margin:0;padding:0;border:0;border-radius:9px;background:transparent;box-shadow:none;color:#fff;line-height:1;transform:none;overflow:visible;z-index:2;--sticker-icon-size:25px}
#detail .pd-hero>.pd-save.favorite.sticker-favorite:hover .sticker-mark{translate:0 -1px}
#detail .pd-hero>.pd-save.favorite.sticker-favorite:active .sticker-mark{translate:0 1px}
#detail .pd-hero>.pd-save.favorite.sticker-favorite:focus-visible{outline:3px solid #8fff00;outline-offset:2px}
#detail .pd-hero>.pd-save.favorite.sticker-favorite.on{background:transparent;color:#fff}

/* The Chinese badge opens an accessible language matrix sheet. */
.pd-tags{gap:7px}
.pd-language-badge{display:inline-flex;align-items:center;gap:5px;min-height:26px;padding:3px 7px;border:1.5px solid #111;border-radius:3px;background:#d4ffa0;color:#111;font:inherit;font-size:11px;font-weight:700;line-height:1.3;text-align:left;cursor:pointer;transition:transform 120ms ease,background-color 120ms ease}
.pd-language-badge.no,.pd-language-badge.unknown{background:#e9eadf;color:#4b4b42}
.pd-language-badge:active{transform:scale(.92)}
.pd-language-badge:focus-visible{outline:2px solid #111;outline-offset:2px}
.pd-language-badge:disabled{cursor:default;opacity:.8}
.pd-language-chevron{font-size:11px;line-height:1;transition:transform 180ms ease}
.pd-language-badge[aria-expanded=true] .pd-language-chevron{transform:rotate(180deg)}
.pd-language-panel{position:fixed;inset:0;z-index:1000;display:block;pointer-events:none;background:transparent}
.pd-language-panel[hidden]{display:none!important}
.pd-language-sheet{position:absolute;z-index:1;display:flex;flex-direction:column;width:min(360px,calc(100vw - 24px));max-height:min(72dvh,560px);overflow:visible;pointer-events:auto;border:2px solid #111;border-radius:5px;background:#fff;box-shadow:4px 4px 0 #111;opacity:0;transform:scale(.9) translateY(-8px);transform-origin:var(--language-origin-x,50%) top;transition:opacity .15s ease-out,transform .15s ease-out}
.pd-language-sheet:before,.pd-language-sheet:after{position:absolute;left:var(--language-arrow-left,50%);width:0;height:0;content:'';transform:translateX(-50%)}
.pd-language-sheet:before{top:-10px;border-right:9px solid transparent;border-bottom:9px solid #111;border-left:9px solid transparent}
.pd-language-sheet:after{top:-7px;border-right:7px solid transparent;border-bottom:7px solid #fff;border-left:7px solid transparent}
.pd-language-panel.is-above .pd-language-sheet{transform:scale(.9) translateY(8px);transform-origin:var(--language-origin-x,50%) bottom}
.pd-language-panel.is-above .pd-language-sheet:before{top:auto;bottom:-10px;border:0;border-top:9px solid #111;border-right:9px solid transparent;border-left:9px solid transparent}
.pd-language-panel.is-above .pd-language-sheet:after{top:auto;bottom:-7px;border:0;border-top:7px solid #fff;border-right:7px solid transparent;border-left:7px solid transparent}
.pd-language-panel.is-open .pd-language-sheet{opacity:1;transform:translateY(0) scale(1);transition:opacity .24s ease-out,transform .32s cubic-bezier(.34,1.56,.64,1)}
.pd-language-sheet-body{min-height:0;overflow:auto;padding:6px 10px;overscroll-behavior:contain}
.pd-language-sheet-body .de-language-group{margin:0}
.pd-language-sheet-body .de-table{margin:0;font-size:13px;color:#111}
.pd-language-sheet-body .de-table th,.pd-language-sheet-body .de-table td{padding:7px 4px}
.pd-language-sheet-body .de-table thead th{border-top:0;font-size:11px;color:#858b80}
.pd-language-sheet-body .de-table tbody th{font-size:12px;color:#20231f}
.pd-language-sheet-body .de-table td .de-yes{font-size:12px}
.pd-language-sheet-body .de-table.has-platform th:first-child,.pd-language-sheet-body .de-table.has-platform td:first-child{width:20%;text-align:left}
.pd-language-sheet-body .de-table.has-platform th:nth-child(2),.pd-language-sheet-body .de-table.has-platform td:nth-child(2){width:27%;text-align:left}
.pd-language-empty{margin:0;color:#60655c;font-size:12px;line-height:1.7}
#game-detail .pd-save.on{background:#111;color:#fff}#game-detail .pd-save.on svg{color:var(--lime)}#game-detail .pd-save.on .pd-save-label{color:var(--lime)}#game-detail .pd-save:active{transform:scale(.99)}#game-detail .pd-save .pd-save-label{display:inline;font-size:13px;font-weight:800}
.pd-description{font-size:14px;line-height:1.9}
.pd-description.is-collapsed{max-height:calc(1lh * 7);overflow:hidden;position:relative;mask-image:linear-gradient(to bottom,#000 calc(100% - 1.5em),transparent)}
.pd-description-toggle{display:inline-flex;align-items:center;justify-content:center;min-height:34px;margin-top:2px;padding:5px 12px;border:1.5px solid #111;border-radius:3px;background:#fff;color:#111;font:inherit;font-size:13px;font-weight:700;cursor:pointer}
.pd-description-toggle[hidden]{display:none}
.pd-description-toggle:active{transform:scale(.96)}
.pd-description-toggle:focus-visible{outline:2px solid #111;outline-offset:2px}
@media(prefers-reduced-motion:reduce){.pd-language-sheet,.pd-language-chevron,.pd-language-badge{transition:none}}
