.public-site {
  min-height: 100vh;
  overflow-x: hidden;
  color: #333;
  background: #f7f7f7;
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
}

.catalog-shell,
.public-site .shell {
  width: min(1200px, calc(100% - 32px));
  margin-inline: auto;
}

.catalog-header {
  position: sticky;
  z-index: 80;
  top: 0;
  height: 70px;
  background: rgba(255, 255, 255, .97);
  border-bottom: 1px solid #ededed;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .035);
  backdrop-filter: blur(12px);
}

.catalog-header-inner {
  display: flex;
  width: min(1200px, calc(100% - 32px));
  height: 100%;
  margin-inline: auto;
  align-items: center;
}

.gm-brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
}

.gm-brand img { width: 54px; height: 54px; border-radius: 50%; }
.gm-brand span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.support-page { min-height: 70vh; padding: 18px 0 36px; background: #f4f7fb; }
.support-hero { padding: 22px 20px 18px; color: #fff; background: linear-gradient(180deg, #ff9a32 0%, #ff7a18 100%); border-radius: 18px; box-shadow: 0 10px 24px rgba(255,122,24,.22); }
.support-hero > span { display: inline-flex; min-height: 26px; align-items: center; padding: 0 12px; border: 1px solid rgba(255,255,255,.7); border-radius: 999px; font-size: 12px; }
.support-hero h1 { margin: 14px 0 8px; font-size: 28px; font-weight: 800; line-height: 1.25; }
.support-hero > p { margin: 0; max-width: 640px; font-size: 15px; line-height: 1.7; }
.support-hours { display: flex; align-items: center; gap: 12px; margin-top: 16px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.45); }
.support-hours i { width: 34px; height: 34px; flex: 0 0 auto; background: #fff; border: 7px solid rgba(255,255,255,.45); border-radius: 50%; }
.support-hours strong, .support-hours span { display: block; }
.support-hours strong { font-size: 16px; }
.support-hours span { margin-top: 2px; font-size: 14px; }
.support-block { margin-top: 22px; }
.support-block-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.support-block-head h2 { display: flex; align-items: center; gap: 8px; margin: 0; color: #243044; font-size: 18px; }
.support-block-head h2::before { width: 4px; height: 16px; content: ""; background: #ff7a18; border-radius: 4px; }
.support-block-head > span { color: #9aa3b2; font-size: 13px; }
.support-contact, .support-group { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; align-items: center; gap: 12px; margin-top: 12px; padding: 14px; background: #fff; border: 1px solid #edf0f5; border-radius: 16px; }
.support-contact.qq { background: #fff8f3; border-color: #ffe1c7; }
.support-contact.wechat { background: #f3fbf6; border-color: #d7f3e1; }
.support-mark, .support-people { display: grid; width: 48px; height: 48px; place-items: center; }
.support-mark svg, .support-people svg { width: 46px; height: 46px; }
.support-contact strong, .support-group strong { display: block; color: #243044; font-size: 16px; }
.support-contact div > span, .support-group div > span { display: block; margin-top: 3px; color: #7d8796; font-size: 14px; }
.support-contact button, .support-group a { min-width: 72px; min-height: 36px; padding: 0 14px; color: #fff; border: 0; background: #ff8a1e; border-radius: 999px; font-size: 14px; font-weight: 700; text-align: center; cursor: pointer; }
.support-group a { display: inline-flex; align-items: center; justify-content: center; color: #3b82f6; background: #eef5ff; text-decoration: none; }

.catalog-nav {
  display: flex;
  height: 100%;
  margin-left: 50px;
  align-items: stretch;
  gap: 28px;
}

.catalog-nav a {
  position: relative;
  display: flex;
  align-items: center;
  color: #333;
  font-size: 15px;
  white-space: nowrap;
}

.catalog-nav a::after {
  position: absolute;
  right: 50%;
  bottom: 0;
  left: 50%;
  height: 2px;
  content: "";
  background: #ff5b34;
  transition: left .18s ease, right .18s ease;
}

.catalog-nav a:hover, .catalog-nav a.active { color: #f0522c; }
.catalog-nav a:hover::after, .catalog-nav a.active::after { right: 0; left: 0; }

.catalog-header-actions {
  display: flex;
  margin-left: auto;
  align-items: center;
  gap: 20px;
}

.catalog-menu-toggle {
  display: grid;
  width: 34px;
  height: 34px;
  padding: 0;
  place-items: center;
  color: #353535;
  border: 0;
  background: transparent;
}

.catalog-menu-toggle svg { width: 21px; height: 21px; }
.header-theme-toggle { display: grid; width: 36px; height: 36px; padding: 0; place-items: center; color: #666; border: 1px solid #e6e6e6; background: #f5f5f5; border-radius: 50%; transition: color .18s ease, border-color .18s ease, background .18s ease; }
.header-theme-toggle:hover { color: #f0522c; border-color: #ffc2b3; background: #fff5f2; }
.header-theme-toggle svg { width: 19px; height: 19px; }
.account-link { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; }
.account-link svg { display: none; width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.account-link:hover, .account-link.active { color: #f0522c; }
.catalog-menu-toggle { display: none; }

.catalog-home { min-height: 75vh; padding: 45px 0 82px; }

.catalog-search {
  display: flex;
  height: 61px;
  margin-top: 24px;
  align-items: center;
  background: #fff;
  border-radius: 4px;
}

.catalog-search input {
  min-width: 0;
  height: 100%;
  flex: 1;
  padding: 0 25px;
  outline: 0;
  color: #444;
  border: 0;
  background: transparent;
  font-size: 17px;
}

.catalog-search input::placeholder { color: #888; }
.catalog-search button { display: grid; width: 74px; height: 100%; padding: 0; place-items: center; color: #111; border: 0; background: transparent; }
.catalog-search button svg { width: 25px; height: 25px; stroke-width: 1.5; }

.home-nav-pills { display: none; }
.home-categories { margin-top: 20px; padding: 22px 24px 24px; background: #fff; border: 1px solid #ededed; border-radius: 8px; box-shadow: 0 4px 16px rgba(0,0,0,.025); }
.home-categories-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; padding-bottom: 17px; border-bottom: 1px solid #efefef; }
.home-categories-heading span { display: block; margin-bottom: 4px; color: #f0522c; font-size: 9px; font-weight: 800; letter-spacing: .14em; }
.home-categories-heading h2 { margin: 0; color: #303030; font-size: 19px; font-weight: 600; }
.home-categories-heading small { color: #999; font-size: 11px; }
.home-category-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(105px, 1fr)); gap: 10px; padding-top: 17px; }
.home-category-list a { display: flex; min-height: 40px; align-items: center; justify-content: center; padding: 8px 12px; color: #555; background: #f7f7f7; border: 1px solid #e8e8e8; border-radius: 6px; font-size: 13px; text-align: center; transition: color .18s, background .18s, border-color .18s, transform .18s; }
.home-category-list a:hover { color: #f0522c; border-color: #ffc7ba; background: #fff8f6; transform: translateY(-1px); }
.home-category-list a.active { color: #fff; border-color: #ff5b34; background: #ff5b34; box-shadow: 0 6px 14px rgba(255,91,52,.17); }

.back-to-top { position: fixed; z-index: 90; right: 92px; bottom: 30px; min-width: 52px; height: 36px; padding: 0 12px; color: #fff; border: 0; background: rgba(48,48,48,.88); border-radius: 999px; font-size: 12px; font-weight: 700; box-shadow: 0 8px 18px rgba(0,0,0,.16); }
.back-to-top[hidden] { display: none; }
.back-to-top:hover { background: #ff5b34; }

.result-toolbar { display: flex; margin: -10px 0 20px; align-items: center; justify-content: space-between; color: #8a8a8a; font-size: 12px; }

.game-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.game-card { overflow: hidden; background: #fff; border-radius: 5px; box-shadow: 0 4px 14px rgba(0,0,0,.025); transition: transform .2s ease, box-shadow .2s ease; }
.game-card:hover { z-index: 2; box-shadow: 0 12px 28px rgba(0,0,0,.1); transform: translateY(-5px); }
.game-cover { position: relative; display: block; overflow: hidden; aspect-ratio: 1.6 / 1; background: #e6e6e6; }
.game-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.game-card:hover .game-cover img { transform: scale(1.035); }
.rare-corner { position: absolute; top: 9px; right: 9px; padding: 3px 7px; color: #fff; background: rgba(255,91,52,.92); border-radius: 3px; font-size: 10px; }
.game-card-body { min-height: 96px; padding: 15px 15px 17px; }
.game-meta { display: flex; align-items: center; gap: 7px; color: #5b5b5b; font-size: 11px; }
.game-meta span:first-child::before { margin-right: 5px; color: #ff5b5b; content: "•"; }
.game-meta i { width: 4px; height: 4px; background: #efb64a; border-radius: 50%; }
.game-card h2 { margin: 8px 0 0; font-size: 16px; font-weight: 600; line-height: 1.35; }
.game-card h2 a { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.game-card h2 a:hover { color: #f0522c; }

.catalog-empty { padding: 65px 20px; text-align: center; background: #fff; border-radius: 5px; }
.catalog-empty > span { color: #ff5b34; font-size: 42px; }
.catalog-empty h2 { margin: 4px 0; font-size: 20px; }
.catalog-empty p { margin: 0 0 18px; color: #888; }
.catalog-empty a { color: #f0522c; }

.floating-notice {
  position: fixed;
  z-index: 90;
  right: 22px;
  bottom: 24px;
  touch-action: none;
  user-select: none;
}
.floating-notice-toggle {
  display: grid;
  width: 54px;
  height: 54px;
  padding: 0;
  place-items: center;
  color: #fff;
  cursor: grab;
  border: 0;
  background: #ff5b34;
  border-radius: 50%;
  box-shadow: 0 10px 28px rgba(255,91,52,.32);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .04em;
  transition: background .18s ease, box-shadow .18s ease, transform .18s ease;
}
.floating-notice:not(.dragging) .floating-notice-toggle:hover { background: #ea4723; box-shadow: 0 12px 30px rgba(255,91,52,.4); transform: translateY(-2px); }
.floating-notice.dragging .floating-notice-toggle { cursor: grabbing; box-shadow: 0 15px 36px rgba(255,91,52,.44); transform: scale(1.06); }
.floating-notice-toggle:focus-visible { outline: 3px solid rgba(255,91,52,.24); outline-offset: 3px; }
.floating-notice.open .floating-notice-toggle { background: #ea4723; }
.floating-notice-panel {
  position: absolute;
  width: min(420px, calc(100vw - 28px));
  right: var(--search-panel-right, 0);
  left: var(--search-panel-left, auto);
  bottom: calc(100% + 12px);
  padding: 18px 18px 16px;
  background: #fff;
  border: 1px solid #e7e7e7;
  border-radius: 14px;
  box-shadow: 0 16px 42px rgba(0,0,0,.16);
}
.floating-notice-panel[hidden] { display: none; }
.floating-notice.panel-down .floating-notice-panel { top: calc(100% + 12px); bottom: auto; }
.floating-notice-panel strong { display: block; margin-bottom: 6px; color: #ff5b34; font-size: 13px; }
.floating-notice-body { max-height: min(460px, 62vh); overflow: auto; color: #333; font-size: 15px; line-height: 1.75; overflow-wrap: anywhere; }
.floating-notice-body :is(p, ul, ol, blockquote) { margin: 0 0 6px; }
.floating-notice-body :is(p, div, li, span, font, a) { overflow-wrap: anywhere; }
.floating-notice-body a { color: inherit; -webkit-text-fill-color: currentColor; text-decoration-line: underline; text-decoration-color: currentColor; text-underline-offset: 2px; }
.floating-notice-body a[href^="tel:"],
.floating-notice-body a[x-apple-data-detectors] { color: inherit !important; -webkit-text-fill-color: currentColor !important; text-decoration-color: currentColor !important; }
.floating-notice-body img { max-width: 100%; height: auto; }
@media (min-width: 761px) {
  .floating-notice-panel {
    width: min(640px, calc(100vw - 64px));
    padding: 22px 24px 20px;
  }
  .floating-notice-panel strong { margin-bottom: 10px; font-size: 15px; }
  .floating-notice-body { max-height: min(620px, 72vh); font-size: 16px; }
}

.catalog-footer { padding: 34px 0; color: #aaa; background: #252525; }
.catalog-footer-inner { display: grid; grid-template-columns: .65fr 1.7fr .55fr; align-items: center; gap: 35px; }
.footer-identity { display: flex; align-items: center; gap: 10px; color: #fff; }
.footer-identity img { width: 38px; height: 38px; }
.catalog-footer p { margin: 0; font-size: 11px; line-height: 1.8; }
.catalog-footer-inner > div:last-of-type { display: flex; justify-content: flex-end; gap: 16px; font-size: 11px; }
.catalog-footer a:hover { color: #fff; }
.friend-links { display: flex; grid-column: 1 / -1; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin: 0; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.12); font-size: 11px; }
.friend-links > span { color: #fff; font-weight: 700; }
.mobile-bottom-nav { display: none; }

/* Player registration, login and recently played games. */
.player-auth-page { display: grid; min-height: 70vh; padding: 58px 16px 80px; place-items: start center; background: #f7f7f7; }
.player-auth-card { width: min(460px, 100%); overflow: hidden; padding: 38px 42px 30px; background: #fff; border: 1px solid #e9e9e9; border-radius: 12px; box-shadow: 0 16px 45px rgba(0,0,0,.07); }
.player-auth-brand { text-align: center; }
.player-auth-brand > span { display: grid; width: 54px; height: 54px; margin: 0 auto 16px; place-items: center; color: #fff; background: #ff5b34; border-radius: 18px 18px 18px 6px; box-shadow: 0 10px 22px rgba(255,91,52,.22); }
.player-auth-brand svg { width: 27px; height: 27px; }
.player-auth-brand small, .player-history-heading span, .player-profile-copy > small { color: #f0522c; font-size: 9px; font-weight: 800; letter-spacing: .16em; }
.player-auth-brand h1 { margin: 6px 0 7px; color: #2d2d2d; font-size: 27px; font-weight: 600; }
.player-auth-brand p { margin: 0; color: #888; font-size: 13px; }
.player-auth-form { display: grid; gap: 16px; margin-top: 29px; }
.player-auth-form > label:not(.player-remember) { display: grid; gap: 7px; color: #444; font-size: 13px; font-weight: 600; }
.player-auth-form input:not([type="checkbox"]) { width: 100%; height: 48px; padding: 0 14px; outline: none; color: #333; background: #fafafa; border: 1px solid #dedede; border-radius: 7px; font-size: 14px; transition: border-color .18s, box-shadow .18s, background .18s; }
.player-auth-form input:not([type="checkbox"]):focus { background: #fff; border-color: #ff8062; box-shadow: 0 0 0 3px rgba(255,91,52,.1); }
.player-auth-form label > small { min-height: 0; color: #d43d22; font-size: 11px; font-weight: 500; }
.player-auth-form label > small:empty { display: none; }
.player-remember { display: flex; align-items: center; gap: 8px; color: #777; font-size: 12px; }
.player-remember input { width: 16px; height: 16px; accent-color: #ff5b34; }
.player-auth-form > button { min-height: 49px; padding: 0 20px; color: #fff; border: 0; background: #ff5b34; border-radius: 7px; font-size: 15px; font-weight: 700; box-shadow: 0 10px 22px rgba(255,91,52,.18); }
.player-auth-form > button:hover { background: #ea4723; }
.player-form-errors { padding: 10px 12px; color: #b8321c; background: #fff3f0; border: 1px solid #ffd0c5; border-radius: 7px; font-size: 12px; }
.player-form-errors.validation-summary-valid { display: none; }
.player-form-errors ul { margin: 0; padding-left: 18px; }
.player-auth-switch { margin-top: 24px; padding-top: 21px; color: #888; border-top: 1px solid #ededed; font-size: 13px; text-align: center; }
.player-auth-switch a { color: #f0522c; font-weight: 700; }

.player-profile-page { min-height: 70vh; padding: 18px 0 72px; background: #f6f7f8; }
.player-profile-page .catalog-shell { display: grid; gap: 10px; }
.player-feedback-success { margin: 0; padding: 11px 14px; color: #176b3a; background: #fff; border: 1px solid #d7eadf; border-left: 3px solid #1f8a4c; border-radius: 8px; font-size: 13px; }
.player-profile-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: #fff; border: 1px solid #e7e8ea; border-radius: 10px; }
.player-avatar { display: grid; width: 42px; height: 42px; flex: 0 0 auto; place-items: center; color: #fff; background: #1f2430; border-radius: 50%; font-size: 16px; font-weight: 700; }
.player-profile-copy { min-width: 0; flex: 1; }
.player-profile-copy h1 { overflow: hidden; margin: 0; color: #1c1f26; font-size: 17px; font-weight: 700; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
.player-profile-copy p { margin: 2px 0 0; color: #8b9098; font-size: 12px; }
.player-profile-head form { margin: 0; }
.player-profile-head button { min-height: 32px; padding: 0 12px; color: #5c636d; border: 1px solid #e3e5e8; background: #fff; border-radius: 6px; font-size: 12px; }
.player-profile-head button:hover { color: #1f2430; border-color: #cfd3d8; }
.player-feedback, .player-history { padding: 14px 16px 16px; background: #fff; border: 1px solid #e7e8ea; border-radius: 10px; }
.player-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid #f0f1f3; }
.player-section-heading h2 { margin: 0; color: #1c1f26; font-size: 16px; font-weight: 700; }
.player-section-heading p { margin: 3px 0 0; color: #8b9098; font-size: 12px; }
.player-section-heading > small { color: #8b9098; font-size: 12px; }
.player-feedback-form { display: grid; gap: 12px; margin-top: 12px; }
.player-feedback-form label { display: grid; gap: 6px; color: #3c424b; font-size: 13px; font-weight: 600; }
.player-feedback-form textarea { width: 100%; min-height: 108px; padding: 12px; color: #1c1f26; border: 1px solid #e3e5e8; border-radius: 8px; background: #fafbfc; font: inherit; font-size: 14px; font-weight: 400; line-height: 1.6; resize: vertical; }
.player-feedback-form textarea:focus { outline: 0; border-color: #1f2430; background: #fff; box-shadow: 0 0 0 3px rgba(31,36,48,.08); }
.player-feedback-upload input { width: 100%; color: #666; font-size: 12px; font-weight: 400; }
.player-feedback-form button { justify-self: start; min-width: 112px; min-height: 38px; padding: 0 18px; color: #fff; border: 0; background: #1f2430; border-radius: 6px; font-size: 13px; font-weight: 700; }
.player-feedback-form button:hover { background: #11141a; }
.player-feedback-form .field-validation-error, .player-feedback-form .validation-summary { color: #d23b24; font-size: 12px; font-weight: 500; }
.player-feedback-form .validation-summary-valid { display: none; }
.player-history-list { display: grid; margin-top: 4px; }
.player-history-row { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 12px; align-items: center; min-width: 0; padding: 12px 0; border-bottom: 1px solid #f3f4f6; }
.player-history-row:last-child { border-bottom: 0; padding-bottom: 0; }
.player-history-row img { width: 84px; height: 56px; object-fit: cover; border-radius: 6px; background: #eee; }
.player-history-row span { display: grid; min-width: 0; gap: 3px; }
.player-history-row small, .player-history-row em { overflow: hidden; color: #8b9098; font-size: 12px; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }
.player-history-row strong { overflow: hidden; color: #1c1f26; font-size: 14px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.player-history-row:hover strong { color: #ff5b34; }
.player-history-empty { padding: 36px 12px 24px; color: #888; text-align: center; }
.player-history-empty > span { color: #ff5b34; font-size: 40px; }
.player-history-empty h3 { margin: 3px 0; color: #333; font-size: 19px; }
.player-history-empty p { margin: 0 0 17px; font-size: 13px; }
.player-history-empty a { display: inline-flex; min-height: 38px; align-items: center; padding: 0 17px; color: #fff; background: #ff5b34; border-radius: 5px; font-size: 12px; font-weight: 700; }

/* The public detail page stays focused on screenshots, introduction and the two downloads. */
.simple-detail-page { min-height: 66vh; padding: 54px 0 80px; background: #f7f7f7; }
.simple-game-detail { width: 100%; max-width: none; margin: 0 auto; padding: 22px 54px 40px; background: #fff; border: 1px solid #e9e9e9; border-radius: 10px; box-shadow: 0 8px 28px rgba(0,0,0,.045); }
.simple-game-header { padding-bottom: 14px; border-bottom: 1px solid #ededed; }
.detail-back { display: inline-flex; align-items: center; gap: 4px; min-height: 28px; margin: 0 0 8px; padding: 0; color: #888; border: 0; background: transparent; font-size: 13px; }
.detail-back::before { content: "‹"; color: #ff5b34; font-size: 18px; line-height: 1; }
.detail-back:hover { color: #ff5b34; }
.simple-game-header h1 { margin: 0; color: #292929; font-family: "Microsoft YaHei", "PingFang SC", sans-serif; font-size: clamp(28px, 3.4vw, 36px); font-weight: 600; line-height: 1.25; }
.simple-game-screenshots { padding: 20px 0 0; }
.simple-screenshot-track { display: flex; overflow-x: auto; align-items: flex-start; gap: 14px; padding: 0 0 13px; scroll-behavior: smooth; scroll-snap-type: x mandatory; scrollbar-color: #d7d7d7 transparent; scrollbar-width: thin; }
.simple-screenshot-track figure { overflow: hidden; min-width: 0; flex: 0 0 min(580px, 78%); height: auto; margin: 0; background: #eee; border: 1px solid #ececec; border-radius: 8px; scroll-snap-align: start; }
.simple-screenshot-track figure:only-child { flex-basis: 100%; }
.simple-screenshot-track img { display: block; width: 100%; max-height: min(360px, 42vh); height: auto; object-fit: contain; cursor: zoom-in; }
@media (max-width: 760px) {
  .simple-screenshot-track img { max-height: none; }
}
.simple-screenshot-track img:fullscreen { width: 100vw; max-height: none; height: 100vh; background: #111; cursor: zoom-out; object-fit: contain; }
.simple-screenshot-empty { display: grid; min-height: 170px; place-items: center; padding: 24px; color: #999; background: #f7f7f7; border: 1px dashed #ddd; border-radius: 8px; font-size: 14px; text-align: center; }
.simple-game-intro { padding: 16px 0 8px; }
.simple-game-intro h2 { margin: 0 0 8px; color: #333; font-size: 22px; font-weight: 600; }
.simple-intro-text { margin-top: 0; color: #222; font-size: 16px; font-weight: 500; line-height: 1.45; white-space: pre-line; overflow-wrap: break-word; -webkit-font-smoothing: auto; }
.simple-intro-text a { overflow-wrap: anywhere; word-break: break-all; text-decoration-line: underline; text-decoration-color: currentColor; text-decoration-thickness: 1px; text-decoration-skip-ink: none; text-underline-offset: 1px; -webkit-text-decoration-skip: none; }
.simple-intro-text a:has([style*="color"]) { color: inherit; }
.simple-intro-text a :is(span, font, strong, em, b, i, u) { text-decoration-line: underline; text-decoration-color: currentColor; text-decoration-thickness: 1px; text-decoration-skip-ink: none; text-underline-offset: 1px; -webkit-text-decoration-skip: none; }
.simple-intro-text :where(p, ul, ol, blockquote, pre, h1, h2, h3, h4, h5, h6) { margin: 0 0 4px; }
.simple-intro-text p:empty, .simple-intro-text p:has(> br:only-child) { display: none; }
.simple-intro-text :where(h1, h2, h3, h4, h5, h6) { font-weight: 700; line-height: 1.3; }
.simple-intro-text h1 { font-size: 30px; }
.simple-intro-text h2 { font-size: 24px; }
.simple-intro-text h3 { font-size: 20px; }
.simple-intro-text h4 { font-size: 17px; }
.simple-intro-text a:not(:has([style*="color"])) { color: #2f6fe4; }
.simple-intro-text li { margin-left: 1.3em; }
.simple-intro-text img { display: block; max-width: 100%; height: auto; margin: 12px 0; border-radius: 8px; }
.simple-intro-text table { width: 100%; margin: 0 0 14px; border-collapse: collapse; }
.simple-intro-text td, .simple-intro-text th { padding: 8px 10px; border: 1px solid #e1e1e1; }
.simple-intro-text pre { overflow: auto; padding: 12px 14px; background: #f7f7f7; border-radius: 7px; }
.simple-detail-page:has(.simple-download-actions) { padding-bottom: 28px; }
.simple-detail-page:has(.simple-download-actions) .simple-game-detail { padding-bottom: 0; }
.simple-download-actions { position: static; z-index: 90; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 8px -54px 0; padding: 10px 54px 12px; background: rgba(255,255,255,.98); border: 1px solid #e9e9e9; border-top: 1px solid #ededed; border-radius: 0 0 10px 10px; box-shadow: 0 -8px 18px rgba(0,0,0,.05); }
.simple-player-admin { display: flex; min-height: 34px; grid-column: 1 / -1; align-items: center; justify-content: center; padding: 4px 12px; color: #fff; background: #ff5b34; border: 0; border-radius: 6px; font-size: 14px; font-weight: 700; text-align: center; box-shadow: 0 6px 12px rgba(255,91,52,.16); transition: background .2s, box-shadow .2s, transform .2s; }
.simple-player-admin:not(.disabled):hover { color: #fff; background: #f04a22; box-shadow: 0 10px 18px rgba(255,91,52,.24); transform: translateY(-1px); }
.simple-player-admin.disabled { cursor: not-allowed; color: #999; background: #fafafa; border: 1px solid #ddd; box-shadow: none; font-weight: 600; }
.player-admin-frame { position: fixed; z-index: 140; inset: 0; display: flex; flex-direction: column; background: #fff; }
.player-admin-frame[hidden] { display: none; }
.player-admin-frame-bar { display: flex; min-height: 48px; flex: 0 0 auto; align-items: center; gap: 12px; padding: 6px 12px; color: #fff; background: #ff5b34; }
.player-admin-frame-bar button { min-height: 32px; padding: 0 12px; color: #ff5b34; background: #fff; border: 0; border-radius: 6px; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.player-admin-frame-bar strong { min-width: 0; overflow: hidden; font-size: 15px; text-overflow: ellipsis; white-space: nowrap; }
.player-admin-frame iframe { flex: 1 1 auto; width: 100%; border: 0; background: #fff; }
body.player-admin-open { overflow: hidden; }
.simple-platform-download { display: flex; min-width: 0; min-height: 36px; align-items: center; justify-content: center; padding: 4px 12px; color: #fff; border-radius: 6px; box-shadow: 0 6px 12px rgba(0,0,0,.08); text-align: center; transition: transform .2s, box-shadow .2s, filter .2s; }
.simple-platform-download.android { background: #36a86b; box-shadow: 0 10px 22px rgba(54,168,107,.2); }
.simple-platform-download.ios { background: #252d31; box-shadow: 0 10px 22px rgba(37,45,49,.18); }
.simple-download-actions.single-platform .simple-platform-download { grid-column: 1 / -1; }
.simple-platform-download > span { display: block; min-width: 0; }
.simple-platform-download strong, .simple-platform-download small { display: block; }
.simple-platform-download strong { font-size: 13px; line-height: 1.15; }
.simple-platform-download small { overflow: hidden; margin-top: 0; color: rgba(255,255,255,.72); font-size: 10px; font-weight: 400; text-overflow: ellipsis; white-space: nowrap; }
.simple-platform-download:hover { color: #fff; filter: brightness(.95); box-shadow: 0 13px 27px rgba(0,0,0,.2); transform: translateY(-2px); }
.simple-platform-download.disabled { cursor: not-allowed; color: #888; background: #ededed; box-shadow: none; filter: none; }
.simple-platform-download.disabled small { color: #aaa; }
.simple-custom-link { display: flex; min-height: 34px; grid-column: 1 / -1; align-items: center; justify-content: center; padding: 4px 12px; color: #fff; background: #2f6fdb; border: 0; border-radius: 6px; font-size: 14px; font-weight: 700; text-align: center; box-shadow: 0 6px 12px rgba(47,111,219,.16); transition: background .2s, box-shadow .2s, transform .2s; }
.simple-custom-link:hover { color: #fff; background: #245fc2; box-shadow: 0 10px 18px rgba(47,111,219,.24); transform: translateY(-1px); }

/* Old detail tabs can keep their HTML after a deployment. Keep their download icon hidden
   so stale markup can never expand into a full-page graphic. */
html[data-theme="dark"] .public-site { color: #e6e6e6; background: #151515; }
html[data-theme="dark"] .catalog-header { background: rgba(29,29,29,.97); border-color: #292929; }
html[data-theme="dark"] .catalog-nav a, html[data-theme="dark"] .account-link { color: #ddd; }
html[data-theme="dark"] .header-theme-toggle { color: #ccc; border-color: #444; background: #303030; }
html[data-theme="dark"] .header-theme-toggle:hover { color: #ff8062; border-color: #75483d; background: #3a2c29; }
html[data-theme="dark"] .catalog-search, html[data-theme="dark"] .game-card, html[data-theme="dark"] .catalog-empty { background: #232323; }
html[data-theme="dark"] .game-card h2, html[data-theme="dark"] .catalog-search input { color: #eee; }
html[data-theme="dark"] .game-meta { color: #aaa; }
html[data-theme="dark"] .floating-notice-panel { background: #292929; border-color: #3e3e3e; }
html[data-theme="dark"] .floating-notice-body { color: #eee; }
html[data-theme="dark"] .floating-notice-body a { color: inherit; -webkit-text-fill-color: currentColor; }
html[data-theme="dark"] .simple-detail-page { background: #181818; }
html[data-theme="dark"] .simple-game-detail { background: #232323; border-color: #303030; box-shadow: none; }
html[data-theme="dark"] .simple-game-header { border-color: #383838; }
html[data-theme="dark"] .simple-game-header h1, html[data-theme="dark"] .simple-game-intro h2 { color: #f1f1f1; }
html[data-theme="dark"] .simple-intro-text { color: #d0d0d0; }
html[data-theme="dark"] .simple-screenshot-track figure { border-color: #383838; background: #181818; }
html[data-theme="dark"] .simple-screenshot-empty { color: #aaa; background: #181818; border-color: #444; }
html[data-theme="dark"] .simple-download-actions { background: rgba(35,35,35,.98); border-color: #383838; box-shadow: 0 -10px 24px rgba(0,0,0,.28); }
html[data-theme="dark"] .simple-player-admin { color: #fff; background: #ff5b34; }
html[data-theme="dark"] .simple-player-admin:hover { background: #f04a22; }
html[data-theme="dark"] .simple-player-admin.disabled { color: #999; background: #292929; border-color: #444; }
html[data-theme="dark"] .simple-platform-download.disabled { color: #888; background: #333; }
html[data-theme="dark"] .home-categories { background: #222; border-color: #383838; }
html[data-theme="dark"] .home-nav-pills a { color: #ddd; background: #292929; border-color: #3b3b3b; }
html[data-theme="dark"] .home-nav-pills a.active { color: #fff; background: #ff5b34; border-color: #ff5b34; }
html[data-theme="dark"] .home-categories-heading { border-color: #383838; }
html[data-theme="dark"] .home-categories-heading h2 { color: #f1f1f1; }
html[data-theme="dark"] .home-category-list a { color: #ccc; background: #292929; border-color: #3b3b3b; }
html[data-theme="dark"] .home-category-list a:hover { color: #ff8062; background: #302522; border-color: #75483d; }
html[data-theme="dark"] .home-category-list a.active { color: #fff; background: #ff5b34; border-color: #ff5b34; }
html[data-theme="dark"] .player-auth-page, html[data-theme="dark"] .player-profile-page { background: #181818; }
html[data-theme="dark"] .player-auth-card, html[data-theme="dark"] .player-profile-head, html[data-theme="dark"] .player-history, html[data-theme="dark"] .player-feedback { background: #232323; border-color: #343434; box-shadow: none; }
html[data-theme="dark"] .player-section-heading { border-color: #343434; }
html[data-theme="dark"] .player-section-heading h2, html[data-theme="dark"] .player-profile-copy h1 { color: #f1f1f1; }
html[data-theme="dark"] .player-section-heading p, html[data-theme="dark"] .player-profile-copy p, html[data-theme="dark"] .player-section-heading > small { color: #9a9a9a; }
html[data-theme="dark"] .player-feedback-form label { color: #ddd; }
html[data-theme="dark"] .player-feedback-form textarea { color: #eee; background: #1c1c1c; border-color: #424242; }
html[data-theme="dark"] .player-feedback-form textarea:focus { border-color: #888; background: #1c1c1c; box-shadow: 0 0 0 3px rgba(255,255,255,.06); }
html[data-theme="dark"] .player-feedback-form button { background: #f1f1f1; color: #1c1c1c; }
html[data-theme="dark"] .player-feedback-form button:hover { background: #fff; }
html[data-theme="dark"] .player-history-row { background: transparent; border-color: #343434; }
html[data-theme="dark"] .player-history-row strong { color: #eee; }
html[data-theme="dark"] .player-feedback-success { color: #b7ebc8; background: #1d3326; border-color: #2d5a3d; border-left-color: #3dcea0; }
html[data-theme="dark"] .player-auth-brand h1, html[data-theme="dark"] .player-history-heading h2, html[data-theme="dark"] .player-history-empty h3 { color: #f1f1f1; }
html[data-theme="dark"] .player-auth-form > label:not(.player-remember) { color: #ddd; }
html[data-theme="dark"] .player-auth-form input:not([type="checkbox"]) { color: #eee; background: #1c1c1c; border-color: #424242; }
html[data-theme="dark"] .player-auth-form input:not([type="checkbox"]):focus { background: #1c1c1c; border-color: #ff8062; }
html[data-theme="dark"] .player-auth-switch { border-color: #3a3a3a; }
html[data-theme="dark"] .player-profile-head button { color: #bbb; background: #292929; border-color: #444; }
html[data-theme="dark"] .mobile-bottom-nav { background: rgba(35,35,35,.97); border-color: #393939; }
html[data-theme="dark"] .mobile-bottom-nav a { color: #aaa; }
html[data-theme="dark"] .mobile-bottom-nav a.active { color: #ff8062; }
html[data-theme="dark"] .support-page { background: #171717; }
html[data-theme="dark"] .support-block-head h2,
html[data-theme="dark"] .support-contact strong,
html[data-theme="dark"] .support-group strong { color: #f1f1f1; }
html[data-theme="dark"] .support-contact,
html[data-theme="dark"] .support-group { background: #232323; border-color: #383838; }
html[data-theme="dark"] .support-contact.qq { background: #2a211c; border-color: #4a3428; }
html[data-theme="dark"] .support-contact.wechat { background: #1c2a22; border-color: #2d4a38; }

@media (max-width: 1050px) {
  .catalog-header-inner { width: min(100% - 26px, 1200px); }
  .game-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .public-site { padding-bottom: calc(66px + env(safe-area-inset-bottom)); }
  .catalog-header { height: 64px; }
  .gm-brand img { width: 48px; height: 48px; }
  .catalog-nav { position: absolute; display: none; height: auto; top: 64px; right: 14px; left: 14px; margin: 0; padding: 10px; align-items: stretch; flex-direction: column; gap: 0; background: #fff; border: 1px solid #e9e9e9; border-radius: 6px; box-shadow: 0 12px 30px rgba(0,0,0,.12); }
  .catalog-nav.open { display: flex; }
  .catalog-nav a { min-height: 43px; padding: 0 12px; }
  .catalog-nav a::after { display: none; }
  .catalog-header-actions { gap: 8px; }
  .header-theme-toggle { width: 34px; height: 34px; border: 0; background: transparent; }
  .header-theme-toggle svg { width: 20px; height: 20px; }
  .account-link { display: grid; width: 34px; height: 34px; place-items: center; }
  .account-link span { display: none; }
  .account-link svg { display: block; }
  .catalog-menu-toggle { display: grid; }
  .catalog-home { padding-top: 14px; }
  .catalog-home:not(.category-page) .home-categories { display: none; }
  .home-nav-pills { display: flex; gap: 8px; margin: 0 0 12px; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .home-nav-pills::-webkit-scrollbar { display: none; }
  .home-nav-pills a { flex: 0 0 auto; display: flex; min-height: 34px; align-items: center; padding: 6px 14px; color: #555; background: #fff; border: 1px solid #e8e8e8; border-radius: 999px; font-size: 13px; white-space: nowrap; }
  .home-nav-pills a.active { color: #fff; background: #ff5b34; border-color: #ff5b34; }
  .category-page { padding-bottom: 28px; }
  .category-page .catalog-search { margin-bottom: 12px; }
  .category-page .home-categories { position: sticky; z-index: 70; top: 64px; }
  .category-page .result-toolbar { margin: 14px 0 0; }
  .category-page .game-grid { margin-top: 16px; }
  .back-to-top { right: 14px; bottom: 82px; }
  .game-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 10px; }
  .game-cover { aspect-ratio: 1.38 / 1; }
  .game-card-body { min-height: 85px; padding: 11px 11px 13px; }
  .game-meta { gap: 5px; font-size: 10px; }
  .game-card h2 { margin-top: 7px; font-size: 14px; line-height: 1.5; }
  .floating-notice { right: 14px; bottom: 82px; }
  .floating-notice-toggle { width: 50px; height: 50px; font-size: 12px; }
  .catalog-footer { padding-bottom: calc(34px + 78px); }
  .catalog-footer-inner { grid-template-columns: 1fr; gap: 17px; }
  .catalog-footer-inner > div:last-of-type { justify-content: flex-start; }
  .mobile-bottom-nav { position: fixed; z-index: 95; display: grid; min-height: 66px; right: 0; bottom: 0; left: 0; grid-template-columns: repeat(4, 1fr); padding: 5px 8px env(safe-area-inset-bottom); background: rgba(255,255,255,.97); border-top: 1px solid #e6e6e6; box-shadow: 0 -8px 25px rgba(0,0,0,.08); backdrop-filter: blur(16px); }
  .mobile-bottom-nav a { display: flex; min-width: 0; align-items: center; justify-content: center; flex-direction: column; gap: 3px; color: #888; font-size: 10px; font-weight: 700; }
  .mobile-bottom-nav a.active { color: #ff5b34; }
  .mobile-bottom-nav svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
  html[data-theme="dark"] .catalog-nav { background: #252525; border-color: #333; }
}

@media (max-width: 520px) {
  .catalog-shell, .public-site .shell { width: min(100% - 24px, 1200px); }
  .catalog-search { height: 51px; margin-top: 14px; }
  .catalog-search input { padding-inline: 18px; font-size: 15px; }
  .catalog-search button { width: 58px; }
  .home-categories { margin-top: 12px; padding: 13px 12px 14px; }
  .home-categories-heading { align-items: center; padding-bottom: 10px; }
  .home-categories-heading span { display: none; }
  .home-categories-heading h2 { font-size: 16px; }
  .home-categories-heading small { font-size: 10px; }
  .home-category-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; padding-top: 10px; }
  .home-category-list a { min-height: 36px; padding: 5px 6px; border-radius: 5px; font-size: 11px; }
  .game-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 10px; }
  .simple-detail-page { min-height: 70vh; padding: 14px 0 48px; }
  .simple-game-detail { padding: 12px 16px 20px; border-radius: 8px; }
  .simple-game-header { padding-bottom: 8px; }
  .simple-game-header h1 { font-size: 22px; line-height: 1.25; }
  .simple-game-screenshots { padding-top: 14px; }
  .simple-screenshot-track { gap: 10px; margin-right: -22px; padding-right: 22px; }
  .simple-screenshot-track figure { flex-basis: 86%; border-radius: 6px; }
  .simple-screenshot-track figure:only-child { flex-basis: calc(100% - 22px); }
  .simple-game-intro { padding: 14px 0 24px; }
  .simple-game-intro h2 { margin-bottom: 6px; font-size: 19px; }
  .simple-intro-text { margin-top: 0; font-size: 14px; line-height: 1.5; }
  .simple-detail-page:has(.simple-download-actions) { padding-bottom: 112px; }
  .simple-download-actions { position: fixed; z-index: 96; right: 0; bottom: calc(66px + env(safe-area-inset-bottom)); left: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin: 0; padding: 6px 12px; background: rgba(255,255,255,.98); border-top: 1px solid #ededed; box-shadow: 0 -6px 18px rgba(0,0,0,.06); }
  .simple-player-admin { min-height: 32px; order: 3; font-size: 13px; }
  .simple-custom-link { min-height: 32px; order: 4; font-size: 13px; }
  .simple-platform-download.android { order: 1; }
  .simple-platform-download.ios { order: 2; }
  .simple-platform-download { min-height: 34px; padding: 3px 8px; }
  .simple-platform-download strong { font-size: 13px; }
  .player-auth-page { min-height: 72vh; padding: 24px 12px 45px; }
  .player-auth-card { padding: 30px 22px 24px; border-radius: 9px; }
  .player-auth-brand h1 { font-size: 24px; }
  .player-profile-page { padding: 12px 0 24px; }
  .player-profile-head, .player-feedback, .player-history { padding: 14px; }
  .player-history-row { grid-template-columns: 72px minmax(0, 1fr); gap: 10px; }
  .player-history-row img { width: 72px; height: 48px; }
}

@media (prefers-reduced-motion: reduce) {
  .game-card, .game-cover img, .catalog-nav a::after { transition: none !important; }
}
