:root {
  color-scheme: light;
  --page: #edf3f6;
  --white: #ffffff;
  --ink: #111315;
  --muted: #778087;
  --green: #4e9428;
  --green-dark: #3d7d1d;
  --line: #dce4e8;
  --max: 1380px;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  background: var(--page);
  color: var(--ink);
  font: 15px/1.35 Arial, Helvetica, sans-serif;
  letter-spacing: 0;
}
button, input, textarea, select { font: inherit; }
button { border: 0; color: inherit; }
a { color: inherit; text-decoration: none; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, .97);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  width: min(var(--max), calc(100% - 44px));
  height: 55px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto minmax(260px, 390px) 28px;
  gap: 28px;
  align-items: center;
}
.brand { display: inline-flex; width: 126px; }
.brand-pixel {
  display: block;
  color: #63717b;
  font: 900 27px/.76 Impact, "Arial Black", sans-serif;
  letter-spacing: 1px;
  text-shadow: 1px 1px 0 #d2d9dd, -1px -1px 0 #27313a;
  transform: scaleX(1.25);
  transform-origin: left center;
}
.main-nav { display: flex; gap: 38px; align-items: center; }
.nav-link {
  background: transparent;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}
.nav-link:hover, .nav-link.is-active { color: var(--green-dark); }
.nav-link--drop span { padding-left: 6px; font-size: 18px; }
.nav-dropdown { position: relative; display: inline-flex; align-items: center; }
.nav-dropdown__menu {
  position: absolute;
  top: calc(100% + 15px);
  left: 50%;
  z-index: 20;
  min-width: 190px;
  display: none;
  transform: translateX(-50%);
  padding: 8px;
  border: 1px solid #dbe4e8;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(44,60,69,.18);
}
.nav-dropdown__menu::before { content: ""; position: absolute; right: 0; bottom: 100%; left: 0; height: 16px; }
.nav-dropdown:hover .nav-dropdown__menu,
.nav-dropdown:focus-within .nav-dropdown__menu { display: grid; gap: 2px; }
.nav-dropdown__menu a {
  display: block;
  padding: 9px 11px;
  border-radius: 4px;
  color: #30383d;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}
.nav-dropdown__menu a:hover,
.nav-dropdown__menu a.is-active { background: #edf3f6; color: var(--green-dark); }
.search-box {
  height: 44px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px 0 26px;
  border-radius: 11px;
  background: #eef3f7;
}
.search-box input {
  min-width: 0;
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font-size: 16px;
}
.search-box input::placeholder { color: #98a0a6; }
.search-icon {
  width: 18px;
  height: 18px;
  border: 3px solid #aeb6bb;
  border-radius: 50%;
  position: relative;
  flex: 0 0 auto;
}
.search-icon::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 3px;
  right: -7px;
  bottom: -4px;
  background: #aeb6bb;
  transform: rotate(45deg);
  border-radius: 3px;
}
.clear-search {
  display: none;
  width: 28px;
  height: 28px;
  font-size: 22px;
  color: #8d969c;
  background: transparent;
  cursor: pointer;
}
.clear-search.is-visible { display: block; }

.portal {
  width: min(var(--max), calc(100% - 44px));
  margin: 0 auto;
  padding: 27px 0 52px;
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}
.game-card {
  overflow: hidden;
  min-width: 0;
  border-radius: 5px;
  background: var(--white);
  box-shadow: 0 3px 11px rgba(44, 60, 69, .14);
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease;
}
.game-card:hover { transform: translateY(-2px); box-shadow: 0 7px 17px rgba(44, 60, 69, .2); }
.game-card:focus-visible { outline: 3px solid #8ccf69; outline-offset: 2px; }
.game-card__image-wrap { position: relative; aspect-ratio: 1.68 / 1; overflow: hidden; background: #d8e0e4; }
.game-card__image-wrap img { width: 100%; height: 100%; display: block; object-fit: cover; }
.game-card__badge {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #f52f34;
  color: #fff;
  font-size: 15px;
  font-weight: 900;
}
.game-card__badge--new { background: #54aa43; }
.game-card__name {
  height: 40px;
  display: block;
  padding: 0 8px;
  background: var(--green);
  color: #fff;
  text-align: center;
  font-size: 15px;
  font-weight: 800;
  line-height: 40px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.game-card__actions { display: none; }
.empty-state { grid-column: 1 / -1; padding: 60px 0; color: var(--muted); text-align: center; }

.new-section { margin-top: 29px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; margin-bottom: 16px; }
.section-heading h2 { display: inline; margin: 0 10px 0 0; font-size: 24px; line-height: 1; }
.view-more { padding: 0; background: transparent; font-size: 14px; cursor: pointer; }
.view-more:hover { color: var(--green-dark); text-decoration: underline; }
.rail-controls { display: flex; gap: 8px; }
.arrow-button {
  width: 47px;
  height: 45px;
  border: 1px solid #d8e0e3;
  border-radius: 10px;
  background: #f7fafb;
  color: #a6afb4;
  font-size: 31px;
  line-height: 1;
  cursor: pointer;
}
.arrow-button--dark { color: #111; }
.arrow-button:hover { border-color: var(--green); color: var(--green-dark); }
.game-rail { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 80px) / 6); gap: 16px; overflow-x: auto; padding: 2px 2px 12px; scroll-behavior: smooth; }
.game-rail .game-card { min-width: 0; }
.info-section { margin-top: 48px; padding-top: 18px; }
.info-kicker { margin: 0 0 9px; color: var(--green-dark); font-size: 12px; font-weight: 800; letter-spacing: 1.1px; }
.content-community-layout { display: grid; grid-template-columns: minmax(0, 2fr) minmax(330px, 1fr); gap: 18px; align-items: start; }
.long-description { position: relative; height: 760px; display: flex; flex-direction: column; padding: 24px 26px 14px; overflow: hidden; border-radius: 6px; background: #fff; box-shadow: 0 3px 12px rgba(44,60,69,.12); }
.long-description__inner { min-height: 0; flex: 1; overflow: hidden; }
.long-description.is-expanded { height: auto; overflow: visible; }
.long-description.is-expanded .long-description__inner { overflow: visible; }
.long-description__inner::after { content: ""; position: absolute; right: 0; bottom: 54px; left: 0; height: 110px; pointer-events: none; background: linear-gradient(180deg, rgba(255,255,255,0), #fff); }
.long-description.is-expanded .long-description__inner::after { display: none; }
.long-description h1 { margin: 0 0 10px; color: var(--green-dark); font-size: 30px; line-height: 1.08; }
.long-description h2 { margin: 0 0 12px; color: var(--green-dark); font-size: 23px; line-height: 1.18; }
.long-description h3 { margin: 25px 0 8px; font-size: 18px; line-height: 1.2; }
.long-description p, .long-description .description-lead { max-width: 950px; margin: 0 0 14px; color: #252a2d; font-size: 16px; line-height: 1.65; }
.long-description ul { max-width: 950px; margin: 0 0 18px; padding-left: 22px; color: #252a2d; }
.long-description li { margin-bottom: 7px; padding-left: 3px; }
.tag-list { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; max-width: 950px; margin: 12px 0 8px; }
.tag-list a { min-height: 44px; display: flex; align-items: center; padding: 10px; border: 1px solid rgba(238, 238, 238, .44); border-radius: 3px; background: #fff; color: #000; box-shadow: 0 2px 9px rgba(0, 0, 0, .16); font-size: 14px; font-weight: 600; }
.tag-list a:hover { background: var(--green); color: #fff; }
.show-more { position: relative; z-index: 1; min-width: 138px; display: block; margin: 8px auto 0; padding: 11px 18px; border-radius: 24px; background: var(--green); color: #fff; font-weight: 700; box-shadow: 0 3px 8px rgba(46,96,27,.22); cursor: pointer; }
.show-more:hover { background: var(--green-dark); }
.long-description.is-expanded .show-more span { display: inline-block; transform: rotate(180deg); }
.comment-panel { height: 760px; display: flex; flex-direction: column; overflow: hidden; border-radius: 6px; background: #fff; box-shadow: 0 3px 12px rgba(44,60,69,.12); }
.comment-panel__header { min-height: 52px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 16px; border-bottom: 1px solid #e2e8eb; }
.comment-panel__header h2 { margin: 0; font-size: 16px; }
.comment-sort select { border: 0; outline: 0; background: transparent; color: #667179; font-size: 13px; cursor: pointer; }
.comment-form { flex: 0 0 auto; padding: 14px 14px 10px; border-top: 1px solid #e2e8eb; background: #fff; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form textarea { width: 100%; border: 1px solid #d8e1e5; outline: 0; border-radius: 5px; background: #fff; color: var(--ink); }
.comment-form input[type="text"], .comment-form input[type="email"] { height: 42px; margin-top: 9px; padding: 0 11px; background: #f2f2f2; }
.comment-form textarea { min-height: 64px; padding: 12px 11px; background: #f2f2f2; resize: vertical; }
.comment-form input:focus, .comment-form textarea:focus { border-color: #83b96c; box-shadow: 0 0 0 2px rgba(78,148,40,.1); }
.comment-consent { display: flex; align-items: flex-start; gap: 8px; margin-top: 10px; color: #737e84; font-size: 11px; line-height: 1.4; }
.comment-consent input { flex: 0 0 auto; margin: 2px 0 0; accent-color: var(--green); }
.comment-consent a { color: var(--green-dark); text-decoration: underline; }
.comment-form__bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 8px; color: #899399; font-size: 12px; }
.comment-form__bottom button { min-height: 34px; padding: 0 13px; border-radius: 5px; background: var(--green); color: #fff; font-weight: 700; cursor: pointer; }
.comment-form__bottom button:hover { background: var(--green-dark); }
.comment-form__bottom button:disabled { cursor: wait; opacity: .65; }
.comment-status { min-height: 0; margin: 5px 0 0; color: #7b858b; font-size: 12px; }
.comment-status.is-error { color: #b33a34; }
.comment-list { min-height: 0; flex: 1; overflow-y: auto; padding: 10px 12px; scrollbar-color: var(--green) transparent; scrollbar-width: thin; }
.comment-item { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 11px; margin-bottom: 10px; padding: 14px; border-radius: 6px; background: #f0f0f0; }
.comment-item:last-child { margin-bottom: 0; }
.comment-avatar { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: var(--green); color: #fff; font-weight: 800; text-transform: uppercase; }
.comment-meta { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.comment-meta strong { font-size: 14px; }
.comment-meta time { color: #7d858a; font-size: 11px; white-space: nowrap; }
.comment-item p { margin: 6px 0 0; color: #202426; font-size: 13px; line-height: 1.45; overflow-wrap: anywhere; }
.comment-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; color: #272b2d; font-size: 12px; }
.comment-votes { display: flex; align-items: center; gap: 12px; white-space: nowrap; }
.load-more-comments { flex: 0 0 auto; min-height: 44px; margin: 0 12px 10px; border-radius: 3px; background: var(--green); color: #fff; font-weight: 700; cursor: pointer; }
.load-more-comments:hover { background: var(--green-dark); }
.load-more-comments[hidden] { display: none; }
.comment-empty { padding: 30px 0; color: #8a949a; text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.site-footer { min-height: 94px; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 10px; width: 100%; margin: 40px 0 0; padding: 22px; background: var(--green); color: #fff; font-size: 16px; text-align: center; }
.footer-links { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 42px; font-weight: 700; }
.footer-links a:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer-note { display: none; }
.back-to-top { position: fixed; right: 22px; bottom: 22px; z-index: 12; width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid #d4dfe3; border-radius: 50%; background: rgba(255,255,255,.94); color: #637078; box-shadow: 0 4px 14px rgba(44,60,69,.16); font-size: 23px; line-height: 1; }
.back-to-top:hover { border-color: #9ec98c; color: var(--green-dark); }
.legal-header .header-inner { grid-template-columns: 1fr auto; }
.legal-nav { display: flex; align-items: center; gap: 24px; font-size: 14px; font-weight: 700; }
.legal-nav a:hover { color: var(--green-dark); }
.legal-page { width: min(900px, calc(100% - 44px)); margin: 0 auto; padding: 58px 0 90px; }
.legal-page h1 { margin: 0 0 16px; font-size: 40px; line-height: 1.08; }
.legal-page h2 { margin: 38px 0 10px; color: #2f671f; font-size: 23px; line-height: 1.2; }
.legal-page section:first-of-type h2 { margin-top: 32px; }
.legal-page p { color: #5e6b72; font-size: 16px; line-height: 1.75; }
.legal-page .legal-lead { max-width: 760px; margin: 0; font-size: 19px; line-height: 1.65; }
.legal-page .legal-updated { margin: 0 0 12px; color: #7f8b91; font-size: 13px; }
.legal-page ul { margin: 12px 0; padding-left: 24px; color: #5e6b72; line-height: 1.75; }
.legal-page li { margin-bottom: 7px; }
.legal-page a:not(.back-to-top) { color: var(--green-dark); text-decoration: underline; text-underline-offset: 2px; }
.contact-page-form { margin-top: 34px; padding: 24px; border: 1px solid #d9e3e6; border-radius: 6px; background: rgba(255,255,255,.72); }
.contact-page-form label { display: block; margin-bottom: 16px; }
.contact-page-form label > span { display: block; margin-bottom: 6px; color: #46545b; font-size: 14px; font-weight: 700; }
.contact-page-form input, .contact-page-form select, .contact-page-form textarea { width: 100%; border: 1px solid #d4dfe3; border-radius: 5px; outline: 0; background: #fff; color: var(--ink); }
.contact-page-form input, .contact-page-form select { height: 42px; padding: 0 11px; }
.contact-page-form textarea { min-height: 170px; padding: 11px; resize: vertical; }
.contact-page-form input:focus, .contact-page-form select:focus, .contact-page-form textarea:focus { border-color: #83b96c; box-shadow: 0 0 0 2px rgba(78,148,40,.1); }
.contact-page-form__bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.contact-page-form__bottom p { min-height: 20px; margin: 0; font-size: 13px; }
.contact-page-form__bottom p.is-error { color: #b33a34; }
.contact-page-form__bottom button { min-height: 42px; padding: 0 18px; border-radius: 5px; background: var(--green); color: #fff; font-weight: 700; cursor: pointer; }
.contact-page-form__bottom button:hover { background: var(--green-dark); }
.contact-page-form__bottom button:disabled { cursor: wait; opacity: .65; }

.game-header-inner { grid-template-columns: 1fr auto minmax(260px, 324px); }
.game-header-nav { display: flex; align-items: center; gap: 28px; font-size: 14px; font-weight: 700; }
.game-header-nav a:hover { color: var(--green-dark); }
.game-search { min-width: 0; }
.game-search .search-box { width: 100%; }
.game-page { width: min(var(--max), calc(100% - 44px)); margin: 0 auto; padding: 26px 0 60px; }
.game-detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 356px; gap: 24px; align-items: start; }
.game-primary-column { min-width: 0; }
.game-sidebar { min-width: 0; }
.game-sidebar-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.game-player { position: relative; overflow: hidden; border-radius: 6px; background: #fff; box-shadow: 0 4px 16px rgba(44,60,69,.16); }
.game-frame-wrap { position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; background: #101315; }
.game-frame-wrap iframe { width: 100%; height: 100%; display: block; border: 0; background: #101315; }
.game-frame-wrap:fullscreen { width: 100vw; height: 100vh; max-height: none; aspect-ratio: auto; }
.game-toolbar { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 5px 12px; }
.game-toolbar__identity { min-width: 0; display: flex; align-items: center; gap: 12px; }
.game-toolbar__identity img { width: 40px; height: 40px; flex: 0 0 auto; border-radius: 4px; object-fit: cover; }
.game-toolbar__identity h1 { min-width: 0; margin: 0; overflow: hidden; font-size: 18px; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
.game-toolbar__actions { display: flex; align-items: flex-start; gap: 8px; }
.game-tool-control {
  min-width: 40px;
  display: grid;
  grid-template-rows: 40px 14px;
  place-items: center;
  flex: 0 0 auto;
}
.game-tool-control > span {
  min-width: 28px;
  color: #5d686e;
  font-size: 10px;
  font-weight: 700;
  line-height: 14px;
  text-align: center;
}
.game-tool-button { width: 40px; height: 40px; display: grid; place-items: center; flex: 0 0 auto; padding: 0; border-radius: 50%; background: var(--green); color: #fff; box-shadow: 0 2px 8px rgba(44,60,69,.15); cursor: pointer; }
.game-tool-button svg { width: 20px; height: 20px; display: block; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.game-tool-button.is-active svg { stroke-width: 2.35; }
#favoriteGame.is-active svg { fill: currentColor; }
.game-tool-button:hover, .game-tool-button.is-active { background: var(--green-dark); transform: translateY(-1px); }
.game-tool-button:focus-visible { outline: 3px solid rgba(78,148,40,.25); outline-offset: 3px; }
.game-tool-button:disabled { cursor: wait; opacity: .55; transform: none; }
.game-tool-status { position: absolute; right: 12px; bottom: 70px; z-index: 2; margin: 0; padding: 7px 10px; border-radius: 4px; background: rgba(17,19,21,.86); color: #fff; font-size: 12px; }
.game-tool-status:empty { display: none; }
.game-about { max-width: 920px; padding: 38px 0 24px; }
.game-about h2 { margin: 0 0 10px; color: var(--green-dark); font-size: 26px; }
.game-about p { margin: 0; color: #4f5a60; font-size: 16px; line-height: 1.7; }
.related-games { padding-top: 16px; }
.related-game-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.game-info-section { margin-top: 34px; }
.game-long-description,
.game-comment-panel { height: 680px; }
.game-long-description h2 { margin-bottom: 16px; text-transform: none; }
.game-comment-panel .comment-list { background: #fff; }

.report-dialog {
  width: min(520px, calc(100% - 28px));
  max-width: none;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 18px 55px rgba(20,28,32,.28);
}
.report-dialog::backdrop { background: rgba(16,22,25,.62); }
.report-form { padding: 0 20px 20px; }
.report-form__header {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 -20px 18px;
  padding: 0 12px 0 20px;
  border-bottom: 1px solid #e1e7ea;
}
.report-form__header h2 { margin: 0; color: var(--green-dark); font-size: 20px; }
.report-form__header button {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: transparent;
  color: #6f7a80;
  font-size: 27px;
  line-height: 1;
  cursor: pointer;
}
.report-form__header button:hover { background: #edf2f4; color: #111; }
.report-form label { display: block; margin-bottom: 15px; }
.report-form label > span { display: block; margin-bottom: 6px; color: #465158; font-size: 13px; font-weight: 700; }
.report-form input,
.report-form textarea {
  width: 100%;
  border: 1px solid #d4dee2;
  border-radius: 5px;
  outline: 0;
  background: #f7f9fa;
  color: var(--ink);
}
.report-form input { height: 42px; padding: 0 11px; }
.report-form textarea { min-height: 130px; padding: 11px; resize: vertical; }
.report-form input:focus,
.report-form textarea:focus { border-color: #83b96c; box-shadow: 0 0 0 2px rgba(78,148,40,.1); }
.report-form__bottom { min-height: 42px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.report-form__bottom p { min-height: 18px; margin: 0; color: #657178; font-size: 13px; }
.report-form__bottom button { min-height: 40px; padding: 0 17px; border-radius: 5px; background: var(--green); color: #fff; font-weight: 700; cursor: pointer; }
.report-form__bottom button:hover { background: var(--green-dark); }
.report-form__bottom button:disabled { cursor: wait; opacity: .6; }

@media (min-width: 1201px) {
  .game-grid.is-reference-layout .game-card:nth-child(1) { grid-area: 1 / 1; }
  .game-grid.is-reference-layout .game-card:nth-child(2) { grid-area: 1 / 2; }
  .game-grid.is-reference-layout .game-card:nth-child(3) { grid-area: 1 / 3; }
  .game-grid.is-reference-layout .game-card:nth-child(4) { grid-area: 1 / 6; }
  .game-grid.is-reference-layout .game-card:nth-child(5) { grid-area: 2 / 1; }
  .game-grid.is-reference-layout .game-card:nth-child(6) { grid-area: 2 / 2; }
  .game-grid.is-reference-layout .game-card:nth-child(7) { grid-area: 2 / 3; }
  .game-grid.is-reference-layout .game-card:nth-child(8) { grid-area: 2 / 6; }
  .game-grid.is-reference-layout .game-card:nth-child(9) { grid-area: 3 / 1; }
  .game-grid.is-reference-layout .game-card:nth-child(10) { grid-area: 3 / 2; }
  .game-grid.is-reference-layout .game-card:nth-child(11) { grid-area: 3 / 3; }
  .game-grid.is-reference-layout .game-card:nth-child(12) { grid-area: 3 / 4; }
  .game-grid.is-reference-layout .game-card:nth-child(13) { grid-area: 3 / 5; }
  .game-grid.is-reference-layout .game-card:nth-child(14) { grid-area: 3 / 6; }
  .game-grid.is-reference-layout .game-card:nth-child(15) { grid-area: 4 / 1; }
  .game-grid.is-reference-layout .game-card:nth-child(16) { grid-area: 4 / 2; }
  .game-grid.is-reference-layout .game-card:nth-child(17) { grid-area: 4 / 3; }
  .game-grid.is-reference-layout .game-card:nth-child(18) { grid-area: 4 / 4; }
  .game-grid.is-reference-layout .game-card:nth-child(19) { grid-area: 4 / 5; }
  .game-grid.is-reference-layout .game-card:nth-child(20) { grid-area: 4 / 6; }
}

@media (max-width: 1200px) {
  .header-inner { grid-template-columns: 1fr auto minmax(210px, 300px) 28px; gap: 18px; }
  .game-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .game-rail { grid-auto-columns: calc((100% - 60px) / 4); }
  .game-header-inner { grid-template-columns: 1fr auto minmax(210px, 280px); }
  .game-detail-layout { grid-template-columns: 1fr; }
  .game-sidebar { display: none; }
  .related-game-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .content-community-layout { grid-template-columns: 1fr; gap: 12px; }
  .comment-panel { margin-top: 8px; }
  .game-long-description,
  .game-comment-panel { height: 700px; }
}
@media (max-width: 760px) {
  .header-inner { width: min(100% - 24px, var(--max)); height: auto; min-height: 68px; grid-template-columns: 1fr 28px; gap: 12px; padding: 10px 0; }
  .main-nav { grid-column: 1 / -1; grid-row: 3; justify-content: space-between; gap: 10px; }
  .nav-link { font-size: 12px; }
  .nav-dropdown__menu { left: auto; right: 0; transform: none; }
  .search-box { grid-column: 1; grid-row: 2; height: 44px; }
  .brand { grid-column: 1 / -1; grid-row: 1; }
  .clear-search { grid-column: 2; grid-row: 2; }
  .portal { width: min(100% - 24px, var(--max)); }
  .portal { padding-top: 18px; }
  .game-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .game-card__name { height: 43px; font-size: 14px; line-height: 43px; }
  .game-rail { grid-auto-columns: calc((100% - 14px) / 2); gap: 14px; }
  .section-heading h2 { font-size: 21px; }
  .info-section { margin-top: 36px; padding-top: 30px; }
  .long-description { height: 700px; padding: 18px 16px 12px; }
  .long-description__inner { max-height: none; }
  .comment-panel { height: 720px; }
  .long-description h1 { font-size: 25px; }
  .long-description h2 { font-size: 21px; }
  .long-description p, .long-description .description-lead { font-size: 15px; }
  .site-footer { align-items: center; }
  .footer-links { gap: 10px 16px; }
  .game-header-inner { min-height: 58px; grid-template-columns: auto 1fr; padding: 7px 0; }
  .game-header-inner .brand { grid-column: 1; grid-row: 1; }
  .game-header-nav { grid-column: 2; grid-row: 1; justify-content: flex-end; gap: 13px; font-size: 11px; }
  .game-header-nav .nav-dropdown__menu { right: 0; left: auto; transform: none; }
  .game-search { grid-column: 1 / -1; grid-row: 2; }
  .game-search .search-box { grid-column: auto; grid-row: auto; }
  .game-page { width: min(100% - 24px, var(--max)); padding: 18px 0 40px; }
  .game-frame-wrap { aspect-ratio: 4 / 3; }
  .game-toolbar { align-items: flex-start; flex-direction: column; padding: 11px; }
  .game-toolbar__identity h1 { font-size: 18px; }
  .game-toolbar__actions { width: 100%; justify-content: flex-end; gap: 7px; }
  .game-tool-status { bottom: 112px; }
  .game-about { padding-top: 28px; }
  .related-game-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .game-info-section { margin-top: 28px; }
  .back-to-top { right: 14px; bottom: 14px; }
  .legal-header .header-inner { min-height: 55px; grid-template-columns: 1fr auto; padding: 7px 0; }
  .legal-nav { gap: 13px; font-size: 12px; }
  .legal-page { width: min(100% - 24px, 900px); padding: 38px 0 62px; }
  .legal-page h1 { font-size: 31px; }
  .legal-page h2 { font-size: 20px; }
  .legal-page .legal-lead { font-size: 17px; }
  .contact-page-form { padding: 17px; }
  .contact-page-form__bottom { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 420px) {
  .brand-pixel { font-size: 20px; }
  .nav-link--drop { max-width: 180px; overflow: hidden; text-overflow: ellipsis; }
  .game-toolbar__actions { justify-content: center; flex-wrap: wrap; }
  .game-toolbar__actions > .game-tool-button,
  .game-toolbar__actions > .game-tool-control { margin-bottom: 2px; }
  .game-long-description { height: 660px; }
  .game-comment-panel { height: 700px; }
  .report-form { padding: 0 15px 15px; }
  .report-form__header { margin-right: -15px; margin-left: -15px; padding-left: 15px; }
  .report-form__bottom { align-items: flex-start; flex-direction: column; }
  .report-form__bottom button { width: 100%; }
}
