:root{--blue:#348df0;--link:#286f98;--green:#16835f;--text:#414141;--muted:#6b7280;--background:#fff;--line:#e7ebf0;--pale-blue:#f3fafc;--width:1200px}
*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:20px}body{margin:0;background:var(--background);color:var(--text);font:16px/1.65 Arial,"Microsoft YaHei","PingFang SC",sans-serif}button,input{font:inherit}button,a{-webkit-tap-highlight-color:transparent}button{cursor:pointer;color:inherit}a{color:inherit;text-decoration:none}a:hover{color:var(--blue)}button:disabled{cursor:not-allowed}img{max-width:100%;vertical-align:middle}button img{pointer-events:none}button:focus-visible,a:focus-visible,input:focus-visible,[tabindex]:focus-visible{outline:3px solid #1478d0;outline-offset:4px}button{border:0}button:hover{filter:brightness(.98)}.container{width:min(var(--width),calc(100% - 40px));margin-inline:auto}.panel{background:#fff}.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}[hidden]{display:none!important}.skip-link{position:fixed;top:-80px;left:20px;background:#fff;padding:12px;z-index:100}.skip-link:focus{top:10px}
.site-header{background:#fff}.header-inner{height:112px;display:flex;align-items:center;gap:55px}.brand{display:flex;align-items:center;min-height:44px;flex-shrink:0}.brand img{display:block;width:240px;height:auto;aspect-ratio:373/80;object-fit:contain}.nav-inner{display:flex;align-items:stretch;min-height:50px;gap:8px;background:#fff;border-bottom:1px solid var(--line)}.nav-inner a{position:relative;display:flex;align-items:center;justify-content:center;min-width:120px;padding:11px 24px;color:var(--text);background:transparent;border-radius:4px 4px 0 0;font-size:16px;font-weight:500;line-height:26px;white-space:nowrap;transition:background-color .16s,color .16s}.nav-inner a[aria-current]{color:#1c70c9;font-weight:600}.nav-inner a[aria-current]:after{content:"";position:absolute;bottom:-1px;left:50%;width:32px;height:3px;transform:translateX(-50%);border-radius:3px 3px 0 0;background:var(--blue)}.nav-inner a:focus-visible{outline-offset:-3px}.nav-inner a:hover{background:#f3f8ff;color:#1c70c9}.breadcrumb{display:flex;align-items:center;gap:6px;padding:8px 16px;margin:12px 0 0;background:#fff;font-size:14px;min-height:38px;line-height:22px;color:var(--muted);flex-wrap:wrap}.breadcrumb>[aria-current]{min-width:0;max-width:100%;overflow-wrap:anywhere}.breadcrumb img{margin-right:3px}.download-button{display:inline-flex;align-items:center;justify-content:center;gap:9px;width:180px;max-width:100%;min-height:46px;padding:10px 20px;color:#fff;border-radius:4px;font-size:16px;font-weight:600;line-height:24px;white-space:nowrap;transition:filter .16s,transform .16s}.download-button:hover{filter:brightness(.94);transform:translateY(-1px)}.download-button.android{background:var(--green)}.download-button img{width:22px;height:22px;flex-shrink:0;object-fit:contain}.content-layout{display:grid;grid-template-columns:300px minmax(0,1fr);gap:24px;align-items:start}.main-column{min-width:0}.sidebar{min-width:0;display:grid;gap:20px}.side-section{overflow:hidden}.side-heading{margin:0;padding:10px 10px 9px;border-bottom:1px solid var(--line);font-size:18px;line-height:26px;color:#777;font-weight:400;display:flex;align-items:center;gap:10px}.side-heading:before{content:"";display:block;width:4px;height:18px;background:#439bd1}.side-item{display:flex;align-items:center;gap:15px;width:100%;padding:15px 10px;background:#fff;text-align:left;border-bottom:1px dashed var(--line)}.side-item:last-child{border-bottom:0}.side-item:hover,.game-card:hover,.featured-item:hover,.category-item:hover{background:#f8fcff;color:var(--blue)}.side-item-icon{width:80px;height:80px;object-fit:cover;border-radius:12px;flex-shrink:0}.side-item-content{min-width:0;flex:1}.game-name{display:block;font-size:16px;font-weight:400;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:25px}.game-tags{display:flex;gap:8px;margin:7px 0 6px;overflow:hidden;white-space:nowrap}.game-tags a{background:#f8f8f8;color:var(--muted);font-size:12px;padding:0 5px;line-height:20px}.game-meta{display:block;font-size:13px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:22px}.featured-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));padding:16px 10px 12px;gap:20px 14px}.featured-item{background:#fff;padding:0;min-width:0}.featured-item img{width:88px;height:auto;aspect-ratio:1;object-fit:cover;border-radius:16px}.featured-item span{display:block;margin-top:4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:13px;line-height:22px}.topic-list{padding:20px 16px 16px}
.topic-item{position:relative;display:block;border-left:1px solid #eee;padding:3px 0 12px 18px;width:100%;text-align:left;background:#fff}
.topic-item:before{position:absolute;content:"";width:10px;height:10px;border-radius:50%;background:#ddd;top:13px;left:-5px}
.topic-item span{display:block;margin:0 0 7px;font-size:16px}
.topic-item img{display:block;width:100%;height:auto;aspect-ratio:135/82;object-fit:cover}
.ranking-list{list-style:none;padding:0;margin:0}.ranking-list>li{position:relative;border-bottom:1px dashed var(--line)}.ranking-item{display:flex;align-items:center;gap:14px;padding:16px 12px;width:100%;background:#fff;text-align:left}.rank-number{display:flex;align-items:center;justify-content:center;background:#c6c6c6;color:#252525;width:28px;height:28px;flex-shrink:0;border-radius:50%;font-size:16px}.rank-top .rank-number{background:#ff611e}.rank-top:nth-child(2) .rank-number{background:#ff8a50}.rank-top:nth-child(3) .rank-number{background:#ffac88}.ranking-main{min-width:0;flex:1}.ranking-main>.game-name{font-size:14px}.rank-expanded{display:flex;align-items:center;gap:10px;margin-top:8px}.rank-expanded img{width:66px;height:66px;border-radius:10px;flex-shrink:0}.rank-expanded .game-tags{gap:3px}.rank-expanded .game-tags a{padding:0 4px;font-size:11px}.rank-expanded .game-meta{font-size:12px}
.article{padding:20px 20px 0;font-size:15px;line-height:26px}.section-heading{margin:0 0 16px;line-height:1;min-height:28px;display:flex;align-items:center}.section-heading span{display:inline-block;padding:0 12px;border-left:4px solid #439bd1;border-right:4px solid #439bd1;color:#247aa5;font-size:22px;font-weight:700;line-height:28px}.article>.section-heading{min-height:28px;margin-bottom:16px}.article p{margin:10px 0;overflow-wrap:break-word}.article p a{color:var(--link)}.article strong{font-weight:700}.article-subheading{overflow-wrap:anywhere;font-size:16px;font-weight:600;background:var(--pale-blue);color:#286f98;line-height:26px;margin:24px 0 12px;padding:6px 12px}.feature-list{list-style:none;counter-reset:feature;margin:0;padding:0}.feature-list li{counter-increment:feature;line-height:28px;padding:3px 0}.feature-list li:before{content:counter(feature) "、";margin-right:6px}.guide-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin:12px 0 0}.guide-step{display:flex;flex-direction:column;min-width:0;padding:16px;border:1px solid var(--line);border-radius:4px}.guide-grid .guide-step p{margin:0 0 16px;font-size:14px;line-height:24px}.guide-image{display:block;width:min(100%,280px);padding:0;background:none;margin:auto auto 0;cursor:zoom-in}.guide-image img{display:block;width:100%;height:auto}.changelog p{margin:10px 0 12px}.gallery-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:36px;margin-bottom:12px}.gallery-heading>.section-heading{margin:0;min-width:0}.gallery-controls{display:flex;gap:8px;flex-shrink:0}.gallery-controls button{display:flex;align-items:center;justify-content:center;width:36px;height:36px;padding:0;border:1px solid #d9e4ee;border-radius:4px;background:#f7faff;color:var(--link)}.gallery-controls button:disabled{opacity:.4}.gallery-controls button:not(:disabled):hover{background:#eaf3fc;border-color:#a8c9ee}.screenshot-gallery{min-width:0}.gallery-track{display:flex;gap:12px;align-items:flex-start;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x proximity;scrollbar-width:thin;scrollbar-color:#b9c9d8 transparent;padding-bottom:8px;overscroll-behavior-x:contain}.gallery-image{display:block;flex:none;max-width:100%;padding:0;min-width:0;background:none;cursor:zoom-in;scroll-snap-align:start}.gallery-image img{display:block;width:auto;height:auto;max-width:100%;max-height:280px;object-fit:contain}.gallery-image:focus-visible{outline-offset:-3px}.gallery-track:focus-visible{outline-offset:3px}.related-section{padding:24px 20px 0;margin-top:24px;scroll-margin-top:20px;border-top:1px solid var(--line)}.game-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px 18px}.game-card{display:flex;align-items:center;gap:12px;min-width:0;padding:0;text-align:left;background:#fff}.game-card>img{width:80px;height:80px;flex-shrink:0;object-fit:cover;border-radius:13px}.game-card-content{display:block;min-width:0;flex:1}.game-card .game-name{font-size:14px;line-height:26px;white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.game-card .game-meta{font-size:12px;line-height:24px}
/* A single HTML score supplies both the visible number and the five-star fill. */
.star-rating{--stars-width:calc(var(--star-size,13px)*6);position:relative;color:var(--muted);font-size:12px;line-height:18px;font-variant-numeric:tabular-nums;white-space:nowrap}
.star-rating:not(.rating){display:inline-block;vertical-align:middle}
.star-rating.is-rated:not(.rating){padding-left:calc(var(--stars-width) + 7px)}
.star-rating.is-rated::before,.star-rating.is-rated::after{content:"";position:absolute;left:0;top:50%;transform:translateY(-50%);width:var(--stars-width);height:var(--star-size,13px);background:#c6c6c6;-webkit-mask:url("../assets/rating-stars.svg") center/100% 100% no-repeat;mask:url("../assets/rating-stars.svg") center/100% 100% no-repeat;pointer-events:none}
.star-rating.is-rated::after{background:#f4bc28;clip-path:inset(0 calc(100% - var(--rating-fill)) 0 0)}
.stars{margin-top:2px}
.publisher-grid .game-card{padding:0 0 14px;border-bottom:1px solid #f8f8f8}.publisher-grid .game-card>img{width:70px;height:70px}.recommend-tabs{display:flex;border:1px solid #eee;overflow-x:auto;scrollbar-width:thin}.recommend-tabs button{flex:1;padding:12px 8px;white-space:nowrap;font-size:14px;font-weight:600;background:#fff;border-bottom:2px solid transparent}.recommend-tabs button:hover{color:var(--green)}.recommend-tabs button[aria-selected=true]{color:var(--green);border-bottom-color:var(--green)}.recommend-feature{display:flex;align-items:center;gap:20px;background:#f7f7f7;padding:16px;margin:12px 0 16px}.recommend-feature>img{width:190px;height:101px;object-fit:cover;flex-shrink:0}.recommend-feature>div{min-width:0}.recommend-feature h3{font-size:18px;font-weight:400;margin:0 0 8px}.recommend-feature p{font-size:13px;color:var(--muted);line-height:26px;margin:0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.bordered-grid .game-card{border:1px solid #eee;padding:12px}.bordered-grid .game-card>img{width:70px;height:70px}.category-grid{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:25px}.category-item{padding:0;background:#fff;min-width:0;text-align:center}.category-item img{width:80px;height:auto;aspect-ratio:1;object-fit:cover;border-radius:15px}.category-item span{overflow:hidden;font-size:13px;margin-top:9px}.site-footer{background:#3c3b38;color:#d4d8dc;margin-top:36px;padding:20px 0;font-size:13px}.site-footer nav{display:flex;justify-content:center;flex-wrap:wrap;gap:0}.site-footer a{background:none;color:inherit;line-height:18px}.site-footer a:hover{color:#fff}.back-to-top{position:fixed;right:22px;bottom:calc(var(--footer-overlap,0px) + 30px + env(safe-area-inset-bottom,0px));background:#fff;color:#498cc7;box-shadow:0 2px 12px #0002;border-radius:4px;font-size:12px;line-height:20px;width:48px;height:48px;z-index:3}dialog::backdrop{background:#152234a8;backdrop-filter:blur(3px)}/* Keep preview controls visible even in a short landscape viewport. */
.lightbox{background:#161b22;color:#fff;border:0;border-radius:8px;padding:0 16px 12px;width:min(560px,calc(100vw - 24px));height:min(880px,calc(100dvh - 24px));max-width:none;max-height:none;overflow:hidden}
.lightbox[open]{display:flex;flex-direction:column}
.lightbox-toolbar{display:flex;align-items:center;justify-content:space-between;flex-shrink:0;gap:16px;padding:12px 0 10px;font-size:14px;line-height:22px}
.lightbox-toolbar>span{min-width:0;overflow-wrap:anywhere}
.lightbox button{flex-shrink:0;background:#ffffff15;color:white;padding:7px 12px;border-radius:4px;font-size:13px}
.lightbox-media{flex:1;min-height:0;min-width:0;touch-action:pan-y pinch-zoom;cursor:grab;user-select:none}
.lightbox-media.is-dragging{cursor:grabbing}
.lightbox-media>img{display:block;width:100%;height:100%;object-fit:scale-down;-webkit-user-drag:none}
.lightbox-controls{display:flex;align-items:center;justify-content:space-between;flex-shrink:0;gap:12px;padding-top:12px;font-size:13px}
.noscript-notice{background:#fff5d5;padding:12px;text-align:center}body.dialog-open{overflow:hidden}

@media(max-width:1150px){.content-layout{grid-template-columns:280px minmax(0,1fr);gap:20px}.game-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:15px 12px}.game-card{gap:8px}.game-card>img{width:62px;height:62px}.game-card .game-name{font-size:14px}.bordered-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.game-tags{gap:4px}.side-item-icon{width:66px;height:66px}.side-item{gap:10px}.game-name{font-size:14px}.featured-grid{gap:14px 10px}.featured-item img{width:74px;height:74px}.featured-item span{font-size:11px}.category-grid{gap:12px;grid-template-columns:repeat(4,minmax(0,1fr))}.article{font-size:15px}.recommend-feature{gap:16px;padding:16px}.recommend-feature>img{width:145px;height:auto}.publisher-grid .game-card>img{width:58px;height:58px}}
@media(max-width:850px){.container{width:calc(100% - 32px)}.content-layout{grid-template-columns:minmax(0,1fr)}.sidebar{display:none}.header-inner{height:105px;gap:35px}.brand img{width:205px;height:auto}.article{font-size:16px}.game-card>img{width:74px;height:74px}.game-card .game-name{font-size:14px}.category-grid{grid-template-columns:repeat(8,minmax(0,1fr));gap:14px}.section-heading{margin-bottom:12px}.bordered-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.bordered-grid .game-card{padding:10px;gap:8px}.bordered-grid .game-card>img{width:52px;height:52px}.game-meta{font-size:12px}}
@media(max-width:600px){html{scroll-padding-top:12px}.container{width:calc(100% - 24px)}.header-inner{height:88px;gap:20px;justify-content:space-between}.brand img{width:174px;height:auto}.nav-inner{min-height:46px;gap:4px}.nav-inner a{flex:1;min-width:0;font-size:14px;line-height:24px;padding:10px 6px}.breadcrumb{font-size:12px;margin:12px 0 0;padding:8px 0;gap:4px;line-height:20px}.breadcrumb>span[aria-current]{flex-basis:100%;padding-left:22px}.breadcrumb>img{width:15px;height:16px}.download-button{width:100%}.article{padding:16px 0 0;font-size:14px;line-height:1.85}.section-heading,.article>.section-heading{min-height:26px;margin-bottom:12px}.section-heading span{padding:0 10px;border-width:3px;font-size:20px;line-height:25px}.article-subheading{font-size:14px;line-height:24px;padding:6px 10px}.feature-list li{line-height:24px;padding:3px 0}.guide-grid{grid-template-columns:minmax(0,1fr);gap:16px;margin:12px 0 0}.guide-step{padding:14px}.guide-grid .guide-step p{margin:0 0 14px}.article p{margin:8px 0 12px}.gallery-heading{min-height:26px;gap:10px;margin-bottom:12px}.gallery-controls{display:none}.gallery-track{gap:10px}.gallery-image{max-width:88%}.gallery-image img{max-height:clamp(210px,65vw,260px)}.related-section{margin-top:24px;padding:20px 0 0}.game-grid{grid-template-columns:minmax(0,1fr);gap:0}.game-card,.publisher-grid .game-card{gap:12px;min-height:88px;padding:12px 0;border-bottom:1px solid var(--line)}.game-card>img,.publisher-grid .game-card>img{width:56px;height:56px;border-radius:10px}.game-card .game-name{font-size:14px;line-height:22px;white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.game-card .game-meta{font-size:12px;line-height:22px;white-space:normal}.recommend-tabs button{font-size:13px;padding:10px 12px}.recommend-feature{gap:12px;padding:12px;margin:12px 0}.recommend-feature>img{width:105px}.recommend-feature h3{font-size:14px;margin:0 0 5px}.recommend-feature p{font-size:12px;line-height:20px}.bordered-grid{gap:0}.bordered-grid .game-card{gap:12px;padding:12px 0;border:0;border-bottom:1px solid var(--line)}.bordered-grid .game-card>img{width:56px;height:56px}.category-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:18px 12px}.category-item img{width:64px;height:auto}.category-item span{font-size:12px;line-height:20px;margin-top:5px;white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;min-height:40px}.site-footer{margin-top:22px;padding:16px 0;font-size:13px}.site-footer nav{gap:10px 0}.back-to-top{right:calc(10px + env(safe-area-inset-right,0px));bottom:calc(var(--footer-overlap,0px) + 15px + env(safe-area-inset-bottom,0px));width:44px;height:44px;font-size:11px;line-height:17px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*:before,*:after{transition:none!important;animation:none!important}}
.recommend-feature>img.is-game-icon{object-fit:contain;background:white}

@media(min-width:1151px){
 .game-grid{row-gap:20px}
 .game-card .game-name{font-size:16px}
 .game-card .game-meta{font-size:14px;line-height:26px}
 .stars{--star-size:17px;line-height:20px}
 .recommend-tabs button{font-size:16px}
 .recommend-feature p{font-size:14px}
 .category-item span{font-size:14px}
}

/* Search controls are scoped individually so they cannot resize result rows. */
.search-toggle{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:44px;min-width:76px;padding:0 10px;border:1px solid #dce7f1;border-radius:6px;background:#f7faff;color:#286f98;font-size:14px;font-weight:500;line-height:22px}
.search-toggle svg{flex-shrink:0}
.search-toggle[aria-expanded="true"]{background:#edf4fc;border-color:#a8c9ee}
.search {
  position: relative;
  display: flex;
  align-items: center;
  width: 420px;
  max-width: 100%;
  height: 44px;
  margin: 0 0 0 auto;
  border: 1px solid #a8c9ee;
  border-radius: 7px;
  background: #f9fbfe;
  transition: border-color .15s, box-shadow .15s;
}
.search:hover { border-color: #76afea; }
.search:focus-within {
  background: #fff;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px #348df018;
}
.search input {
  flex: 1;
  width: 0;
  min-width: 0;
  height: 100%;
  padding: 0 15px;
  border: 0;
  border-radius: 7px 0 0 7px;
  background: transparent;
  color: #333;
  font-size: 14px;
  outline: none;
}
.search input::placeholder { color: var(--muted); }
.search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.search-submit {
  align-self: stretch;
  flex-shrink: 0;
  width: 76px;
  margin: -1px;
  border-radius: 0 7px 7px 0;
  background: #2474c8;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
}
.search-submit:hover { background: #1c66b4; }
.search-clear {
  flex-shrink: 0;
  height: 30px;
  margin-right: 8px;
  padding: 0 7px;
  border-radius: 4px;
  background: transparent;
  color: #7a8797;
  font-size: 12px;
}
.search-clear:hover { background: #edf4fd; color: #247bce; }
.search-results {
  position: absolute;
  z-index: 20;
  top: calc(100% + 9px);
  left: -1px;
  right: -1px;
  max-height: min(440px, 60dvh, var(--search-results-available, 60dvh));
  overflow-y: auto;
  overscroll-behavior: contain;
  background: #fff;
  border: 1px solid #e2eaf3;
  border-radius: 8px;
  box-shadow: 0 8px 28px #213d621a;
  scrollbar-width: thin;
}
.search-note {
  margin: 0;
  padding: 13px 16px 10px;
  color: #6c7a8d;
  font-size: 12px;
  line-height: 20px;
}
.search-result {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 72px;
  padding: 12px 16px;
  background: #fff;
  border-top: 1px solid #f0f3f7;
  text-align: left;
}
.search-result:hover, .search-result:focus-visible {
  background: #f1f7ff;
  outline: none;
  box-shadow: inset 3px 0 var(--blue);
}
.search-result > img {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 9px;
  object-fit: cover;
}
.search-result-content { display: block; min-width: 0; }
.search-result-name {
  display: block;
  color: #344054;
  font-size: 14px;
  line-height: 22px;
  overflow-wrap: anywhere;
}
.search-result-name mark { color: #237acb; background: transparent; font-weight: 600; }
.search-result-detail {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 18px;
}
.search-empty { margin: 0; padding: 0 16px; color: var(--muted); font-size: 13px; }
.search-suggestions { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 16px 18px; }
.search-suggestion {
  padding: 5px 11px;
  border: 1px solid #e5ecf4;
  border-radius: 4px;
  background: #f7f9fc;
  color: #627387;
  font-size: 12px;
  line-height: 22px;
}
.search-suggestion:hover { background: #edf5ff; border-color: #bcd8f7; color: #237acb; }
@media (max-width: 600px) {
  .header-inner {
    height: auto;
    padding-block: 14px;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
  }
  .search { width: 100%; height: 44px; flex: none; margin-left: 0; }
  .search input { font-size: 16px; padding-left: 12px; }
  .search-submit { width: 68px; font-size: 14px; }
  .search-result { gap: 10px; padding: 12px; }
  .search-result-name { font-size: 13px; }
  .search-result-detail { font-size: 11px; }
}

/* Keep the end of a tall sidebar visible while the article continues. */
.sidebar .game-name {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  white-space: normal;
  overflow-wrap: anywhere;
}
@media (min-width: 851px) {
  .sidebar {
    position: sticky;
    top: var(--sidebar-sticky-top, 16px);
    align-self: start;
  }
}

/* App summary layout. */
.app-summary{padding:12px 16px 16px;margin-bottom:12px;border-bottom:1px solid var(--line)}
.app-summary h1{font-size:28px;line-height:1.6;margin:0 0 12px;color:#333;font-weight:700}
.topic-label{display:inline-block;vertical-align:middle;background:#ffba00;color:#594000!important;font-size:16px;line-height:25px;padding:0 6px;margin-left:5px;font-weight:400}
.summary-body{display:flex;align-items:flex-start;gap:20px}
.app-icon{border-radius:18px;width:128px;height:128px;flex-shrink:0}
.app-information{flex:1;min-width:0}
.metadata{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));margin:0;gap:8px 10px;color:#666;font-size:14px;line-height:24px;max-width:750px}
.metadata>div{display:flex;min-width:0}
.metadata dt{color:var(--muted);flex-shrink:0}
.metadata dd{margin:0;min-width:0;overflow-wrap:anywhere}
.metadata .meta-publisher{grid-column:1/-1}
.tag{background:#f6f6f6;padding:1px 6px;font-size:13px}
.telegram-link{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:46px;max-width:100%;padding:10px 18px;border:1px solid #bad9e9;border-radius:4px;background:#f2f9fc;color:#21688f;font-size:15px;font-weight:600;line-height:24px;white-space:nowrap}
.telegram-link:hover{background:#e5f3fa;border-color:#79b9da;color:#155579}
.telegram-link img{width:22px;height:22px;flex-shrink:0}
.summary-actions{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin-top:12px}
.summary-actions .telegram-link{min-height:52px;min-width:160px}
.summary-actions .download-button{width:240px;min-height:52px;font-size:18px}
.summary-actions .download-button img{width:24px;height:24px}
.rating{margin:0 50px 0 5px;flex-shrink:0;text-align:center}

@media(max-width:1150px){
 .rating{margin:0 10px}
 .summary-body{gap:16px}
}
@media(max-width:850px){
 .app-summary h1{font-size:25px}
}
@media(max-width:600px){
 .app-summary{padding:4px 0 12px;margin-bottom:12px}
 .app-summary h1{font-size:20px;line-height:1.5;margin-bottom:12px}
 .topic-label{font-size:12px;line-height:20px;padding:0 4px;margin-left:0}
 .summary-body{display:grid;grid-template-columns:76px minmax(0,1fr);gap:8px 12px;align-items:start}
 .app-icon{width:76px;height:76px;border-radius:13px}
 .app-information{display:contents}
 .metadata{grid-column:2;grid-template-columns:repeat(2,minmax(0,1fr));font-size:12px;gap:5px 7px;line-height:20px}
 .metadata>div.wide,.metadata .meta-updated{grid-column:1/-1}
 .metadata .tag{font-size:11px;padding:0 3px}
 .summary-actions{grid-column:1/-1;margin-top:4px}
 .summary-actions .download-button{width:100%}
 .summary-actions .telegram-link{width:100%;min-height:46px}
}
@media(min-width:1151px){
 .metadata{gap:6px 24px;color:#666}
 .metadata dt{min-width:42px;color:var(--muted)}
}

/* Keep score text and decoration sharp at any screen density. */
.rating { width:129px; height:131px; }
.rating-medal { position:relative; width:104px; height:98px; margin:0 auto 7px; background:url("../assets/rating-medal.svg") center / contain no-repeat; }
.rating-medal span { position:absolute; top:25px; left:0; right:0; color:#594000; font-size:32px; line-height:40px; font-weight:500; font-variant-numeric:tabular-nums; }
.rating.star-rating { --star-size:17px; }
.rating.star-rating::before,.rating.star-rating::after { left:50%;top:auto;bottom:7px;transform:translateX(-50%); }
.rating.is-unrated .rating-medal { background:none; }
.rating.is-unrated .rating-value { color:var(--muted);font-size:14px; }
@media(max-width:1250px){
 .rating.star-rating{--star-size:11px;width:76px;height:44px;margin:0;align-self:flex-start}
 .rating-medal{position:static;width:auto;height:auto;margin:0;background:none}
 .rating-medal .rating-value{position:static;color:#594000;font-size:18px;line-height:24px;font-weight:600}
 .rating.star-rating::before,.rating.star-rating::after{bottom:4px}
}
@media(max-width:600px){
 .summary-body>.rating{grid-column:1;grid-row:1;margin-top:82px}
 .summary-body>.app-icon{grid-column:1;grid-row:1}
 .summary-body .metadata{grid-row:1}
}

/* Vertical scrolling stays native; horizontal gestures change the topic. */
.recommend-viewport { overflow:hidden; touch-action:pan-y pinch-zoom; cursor:grab; }
#recommend-panel { display:flow-root; transition:transform .18s ease-out; }
#recommend-panel:focus-visible { outline-offset:-3px; }
.recommend-viewport img { -webkit-user-drag:none; }
.recommend-viewport.is-dragging, .recommend-viewport.is-dragging * { cursor:grabbing; user-select:none; }
.recommend-viewport.is-dragging #recommend-panel { transition:none; }
#recommend-panel .game-card:focus-visible { outline-offset:-3px; }
.recommend-feature p { min-height:52px; }
#recommend-panel .game-card { min-height:112px; }
#recommend-panel .game-name { min-height:0; }
@media (max-width:1150px) {
  .recommend-feature>img { height:77px; }
  #recommend-panel .game-card { min-height:104px; }
}
@media (max-width:600px) {
  .recommend-feature>img { height:64px; }
  .recommend-feature p { min-height:40px; }
  #recommend-panel .game-card { min-height:88px; }
}

/* Long labels and touch controls retain their full content at every width. */
.category-item span {
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
  white-space:normal;
  overflow-wrap:anywhere;
  text-wrap:balance;
  line-height:22px;
  min-height:44px;
  text-overflow:clip;
}
/* Reserve room for the floating control when it rises above the footer. */
#similar-games { padding-bottom:52px; }
.summary-heading { display:flex; align-items:center; gap:8px; margin-bottom:12px; }
.app-summary .summary-heading h1 { min-width:0; margin:0; text-wrap:balance; }
.app-summary .title-part { display:inline-block; max-width:100%; white-space:normal; overflow-wrap:anywhere; vertical-align:top; }
.summary-heading .topic-label {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex-shrink:0;
  min-width:52px;
  min-height:44px;
  margin:0;
  padding:0 6px;
  background:transparent;
}
.topic-label span { padding:1px 6px; background:#ffba00; }

.lightbox button { min-width:44px; min-height:44px; }
.site-footer a { display:inline-flex; align-items:center; justify-content:center; position:relative; min-height:44px; padding:10px 18px; white-space:nowrap; }
.site-footer a:focus-visible { outline-color:#fff; outline-offset:-3px; }
.site-footer a>span[aria-hidden] { position:absolute; right:0; top:50%; transform:translateY(-50%); color:#89919a; }
.guide-image-hint { display:block; margin-top:6px; color:var(--link); font-size:12px; line-height:20px; }
.guide-step { scroll-margin-top:52px; }
.guide-toggle { width:100%; min-height:46px; padding:10px 16px; margin:12px 0 0; scroll-margin-top:52px; scroll-margin-bottom:16px; background:#f3f8ff; border:1px solid #c6daef; border-radius:4px; color:#2165a7; font-size:14px; font-weight:600; }
.guide-toggle:hover { background:#eaf3fe; }
@media (max-width:600px) {
  .category-item span { line-height:20px; min-height:40px; }
  #similar-games { padding-bottom:44px; }
  .summary-heading { align-items:flex-start; }
  .summary-heading h1 { align-self:flex-start; }
  /* Center the 44px topic hit area on the first 30px title line without adding row space. */
  .summary-heading .topic-label { margin-block:-7px; }
  .guide-image { width:min(100%,160px); }
  .site-footer nav { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:0; }
  .site-footer a { min-width:0; padding:10px 4px; font-size:13px; line-height:24px; }
  .site-footer a>span[aria-hidden] { display:none; }
  .search-clear { height:100%; min-width:44px; margin-right:0; }
}

/* Local contents remain reachable while reading a long page. */
.section-nav{position:sticky;top:0;z-index:5;display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);min-height:48px;background:#fff;border-bottom:1px solid var(--line)}
.section-nav a{display:flex;align-items:center;justify-content:center;min-height:48px;padding:10px 6px;border-bottom:2px solid transparent;font-size:14px;line-height:24px;color:#616b78}
.section-nav a:hover{background:#f3f8ff;color:#1c70c9}
.section-nav a[aria-current]{color:#1c70c9;border-bottom-color:var(--blue);font-weight:600}
.section-nav a:focus-visible{outline-offset:-4px}
#introduction,#screenshots,#guide,#versions,#publisher,#recommendations,#similar-games{scroll-margin-top:52px}
.article .gallery-help,.recommend-hint{margin:8px 0 0;color:var(--muted);font-size:12px;line-height:22px}

/* Native tables from article HTML; only wide tables need their own scroll area. */
.article table{
  width:100%;
  max-width:100%;
  margin:16px 0;
  border-collapse:collapse;
  border-spacing:0;
  table-layout:fixed;
  font-size:14px;
  line-height:1.7;
  text-align:left;
}
.article caption{
  padding:0 0 10px;
  color:var(--text);
  font-weight:600;
  text-align:left;
  caption-side:top;
  overflow-wrap:anywhere;
}
.article th,.article td{
  padding:10px 12px;
  border:1px solid #dbe5ed;
  text-align:left;
  vertical-align:top;
  overflow-wrap:anywhere;
}
.article th,.article thead td{
  background:var(--pale-blue);
  color:#286f98;
  font-weight:600;
}
.article tbody tr:nth-child(even)>td{background:#f8fafc}
.article tfoot th,.article tfoot td{background:#f3f6fa;font-weight:600}
.article table a{color:var(--link);text-decoration:underline;text-underline-offset:3px}
.article table :is(ul,ol){margin:6px 0;padding-left:1.4em}
.article :is(th,td)>:first-child{margin-top:0}
.article :is(th,td)>:last-child{margin-bottom:0}
.article .table-scroll{
  width:100%;
  max-width:100%;
  min-width:0;
  margin:16px 0;
  overflow-x:auto;
  overscroll-behavior-x:contain;
  scrollbar-color:#b9c9d8 #f3f6fa;
}
.article .table-scroll>table{min-width:100%;max-width:none;margin:0;table-layout:auto}
.article .table-scroll :is(th,td){min-width:5.5em}
.article .table-scroll:focus-visible{outline-offset:2px}
@media(max-width:600px){
  .article th,.article td{padding:9px 10px}
}

.app-extra{max-width:750px;margin-top:4px}
.app-extra summary{width:fit-content;min-height:44px;padding:8px 0;color:var(--link);font-size:13px;line-height:24px;cursor:pointer}
.app-extra summary span{margin-left:8px;color:var(--muted);font-size:12px}
.app-extra summary:focus-visible{outline:3px solid #1478d0;outline-offset:2px}
.extra-metadata{margin:0;padding:0 12px;background:#f8fafc;border:1px solid var(--line);border-radius:4px;font-size:13px;line-height:22px}
.extra-metadata>div{display:grid;grid-template-columns:44px minmax(0,1fr);align-items:center;gap:8px;padding:6px 0}
.extra-metadata>div+div{border-top:1px solid var(--line)}
.extra-metadata dt{color:var(--muted)}
.extra-metadata dd{display:flex;align-items:center;gap:10px;min-width:0;margin:0}
.extra-metadata code{flex:1;min-width:0;font-size:12px;overflow-wrap:anywhere;user-select:all}
.copy-button{flex-shrink:0;min-width:48px;min-height:44px;padding:8px;background:transparent;color:var(--link);font-size:12px}
.copy-button:hover{background:#edf4fb}
.copy-status{margin:5px 0 0;color:var(--green);font-size:12px;line-height:20px}
.copy-status:empty{display:none}
.search-more{position:sticky;bottom:0;display:block;width:100%;min-height:46px;padding:10px 16px;border-top:1px solid var(--line);background:#f3f8ff;color:#1c70c9;font-size:14px;font-weight:600;text-align:center}
.search-more:focus-visible{outline-offset:-3px}
.search-result-state{display:block;font-size:12px;line-height:20px;color:var(--link)}
a img{ -webkit-user-drag:none; }
.featured-item{text-align:center}
.article .version-highlights{list-style:none;padding:0;margin:12px 0 18px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px 18px;font-size:13px;line-height:23px}
.version-highlights li{border-left:2px solid #c6dfed;padding-left:10px}
.version-highlights strong{display:block;font-size:14px;font-weight:600;color:#286f98}
@media(max-width:600px){
 .article .version-highlights{grid-template-columns:1fr;gap:7px;margin:10px 0 16px}
 .version-highlights strong{display:inline;margin-right:8px;font-size:13px}
 .section-nav,.section-nav a{min-height:46px}
 .section-nav a{font-size:13px;padding:10px 4px}
 .app-extra{grid-column:1/-1;margin-top:0}

 .extra-metadata{padding-inline:10px}
 .extra-metadata>div{grid-template-columns:minmax(0,1fr) auto;gap:0;padding:4px 0 10px}
 .extra-metadata dd{display:contents}
 .extra-metadata code{grid-column:1/-1;grid-row:2}
 .copy-button{grid-column:2;grid-row:1}
}

/* Download links retain the established button contrast on hover. */
.download-button:hover,.download-button:focus-visible{color:#fff}

/* Section spacing is owned by the next section, without a trailing paragraph gap. */
.changelog p:last-child{margin-bottom:0}
@media(max-width:600px){
 .game-grid>.game-card:last-child{border-bottom:0}
}

/* Detail card titles and tags are separate native links. */
.side-item-icon,.ranking-icon{display:block;flex-shrink:0;line-height:0}
.side-item-icon img{display:block;width:100%;height:100%;object-fit:cover;border-radius:inherit}
.side-item-content{display:block}
.game-tags a{display:block;flex-shrink:0}
.game-tags a:hover,.game-tags a:focus-visible{color:var(--link);background:#edf4fb}
.game-tags a:focus-visible{outline-offset:-2px}

/* Optional detail modules must not leave an unused grid column or first divider. */
.content-layout:not(:has(>.sidebar:not([hidden]))),
.content-layout:not(:has(>.main-column:not([hidden]))){grid-template-columns:minmax(0,1fr)}
.content-layout:not(:has(>.main-column:not([hidden])))>.sidebar{position:static;grid-template-columns:repeat(auto-fit,minmax(280px,1fr))}
.main-column>.related-section.is-first-section,
.main-column>.related-section:first-child,
.section-nav+.related-section{margin-top:0;border-top:0;padding-top:20px}
@media(max-width:600px){
 .main-column>.related-section.is-first-section,
 .main-column>.related-section:first-child,
 .section-nav+.related-section{padding-top:16px}
}
