/* Public game catalog visual rules, based on the supplied HTML prototype. */
@scope (.eato-site) {
/* Layout and visual styles adapted from reference/prototype.html.txt. */
:scope {
  --bg: #0c1013;
  --sidebar: #10151a;
  --surface: #151b20;
  --surface2: #1a2228;
  --surface3: #222c32;
  --border: #29343a;
  --subtle: #202a30;
  --text: #f0f3f0;
  --muted: #98a5a6;
  --muted2: #66767b;
  --lime: #cbf76a;
  --lime2: #aeeb51;
  --gold: #e7be81;
  --cyan: #85d5d3;
  --red: #f29a8b;
  --ff: 'DM Sans','Noto Sans TC',system-ui,sans-serif;
  --sidebar-width: 248px;
}

* {
  box-sizing: border-box;
}

:scope {
  scroll-behavior: smooth;
}

:scope {
  margin: 0;
  color-scheme: dark;
  background: var(--bg);
  font-family: var(--ff);
  color: var(--text);
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--lime);
}

svg {
  display: block;
  width: 20px;
  height: 20px;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
}

::selection {
  background: var(--lime);
  color: #162016;
}

.app-shell {
  min-height: 100vh;
  display: flex;
}

.sidebar {
  width: var(--sidebar-width);
  flex-shrink: 0;
  border-right: 1px solid var(--border);
  background: var(--sidebar);
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 27px 15px 17px;
  display: flex;
  flex-direction: column;
  z-index: 30;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 9px;
  color: var(--text);
}

.brand:hover {
  color: var(--text);
}

.brand-mark {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
}

.brand-mark svg {
  width: 100%;
  height: 100%;
}

.brand-type {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  overflow-wrap: anywhere;
}

.brand-type strong {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -1px;
  line-height: 1.2;
}

.brand-q {
  color: var(--lime);
}

.brand-type small {
  font-size: 8px;
  letter-spacing: 1.7px;
  font-weight: 800;
  color: #83928c;
}

.side-group-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2px;
  color: #64747a;
  padding: 0 16px;
  margin-top: 51px;
  margin-bottom: 13px;
}

.side-group-second {
  margin-top: 34px;
}

.side-nav {
  display: grid;
  gap: 5px;
}

.nav-link {
  min-height: 44px;
  padding: 0 12px;
  border-radius: 10px;
  display: flex;
  gap: 12px;
  align-items: center;
  color: #aab6b9;
  font-weight: 600;
  transition: .15s;
}

.nav-link:hover {
  background: #202a2e;
  color: #fff;
}

.nav-link.active {
  background: #26342c;
  color: var(--lime);
}

.nav-link svg {
  width: 18px;
  height: 18px;
}

.nav-link .ni {
  opacity: .9;
}

.nav-count {
  margin-left: auto;
  padding: 3px 6px;
  border-radius: 5px;
  background: #303b3e;
  font-size: 10px;
  color: #bfccc9;
  min-width: 24px;
  text-align: center;
}

.nav-link.active .nav-count {
  background: #3a5033;
  color: var(--lime);
}

.side-bottom {
  margin-top: auto;
}

.main-shell {
  flex: 1;
  min-width: 0;
}

.topbar {
  height: 74px;
  padding: 0 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #202a2e;
  gap: 22px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  font-weight: 700;
  color: #dce5e2;
}

.breadcrumb-muted {
  color: #77888e;
}

.breadcrumb-divider {
  color: #4b5d62;
}

.topbar-right {
  display: flex;
  gap: 15px;
  align-items: center;
}

.global-search {
  height: 38px;
  width: 288px;
  display: flex;
  align-items: center;
  gap: 9px;
  background: #1a2228;
  border: 1px solid #303b40;
  border-radius: 8px;
  padding: 0 10px;
  color: #77878d;
  transition: .15s;
}

.global-search:focus-within {
  border-color: #8aa15c;
}

.global-search svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.global-search input {
  min-width: 0;
  width: 100%;
  background: none;
  outline: none;
  border: none;
  color: #f0f3f0;
  font-size: 12px;
}

.global-search input::placeholder {
  color: #697b80;
}

.global-search kbd {
  background: #29343a;
  border: 1px solid #344248;
  border-radius: 4px;
  color: #9aacab;
  min-width: 22px;
  text-align: center;
  font-size: 11px;
  padding: 2px;
}

.mobile-menu {
  display: none;
}

.main-content {
  max-width: 1700px;
  padding: 34px 42px 60px;
  margin: 0 auto;
  min-height: calc(100vh - 137px);
}

.eyebrow {
  color: var(--lime);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
}

.eyebrow::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 15px #cbf76a6e;
}

.hero {
  min-height: 316px;
  border: 1px solid #3e4e45;
  position: relative;
  overflow: visible;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  gap: 28px;
  align-items: center;
  padding: 36px 43px;
  border-radius: 19px;
  background: radial-gradient(ellipse at 67% -12%,#466046 0,transparent 40%),radial-gradient(ellipse at 99% 90%,#203f3b,transparent 46%),linear-gradient(116deg,#26362d,#162724 55%,#1b2828);
}

.hero-copy {
  z-index: 2;
  position: relative;
}

.hero h1 {
  font-size: clamp(30px,3.3vw,47px);
  letter-spacing: -1.6px;
  line-height: 1.32;
  margin: 16px 0 14px;
  font-weight: 900;
}

.hero h1 em {
  color: var(--lime);
  font-style: normal;
  white-space: nowrap;
}

.hero-lead {
  font-size: 13px;
  line-height: 1.85;
  color: #b5c4bc;
  max-width: 475px;
  margin: 0;
}

.hero-actions {
  display: flex;
  gap: 11px;
  margin-top: 25px;
  flex-wrap: wrap;
}

.btn {
  border-radius: 9px;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 18px;
  font-weight: 800;
  font-size: 12px;
  border: 1px solid #41534d;
  background: #25352d;
  color: #e5f1e7;
}

.btn svg {
  width: 16px;
  height: 16px;
}

.btn.primary {
  background: var(--lime);
  color: #1d2a1e;
  border-color: var(--lime);
}

.btn.primary:hover {
  background: #defb9c;
  color: #101c11;
}

.btn.ghost:hover,
.btn.dark:hover {
  border-color: #81b75e;
  color: var(--lime);
}

.hero-visual {
  position: relative;
  z-index: 2;
  min-width: 0;
}

.feature-stack {
  position: relative;
  aspect-ratio: 1.56;
  max-width: 640px;
  margin-block: -32px;
  margin-inline: auto;
}

.feature-shell {
  display: block;
  position: absolute;
  width: 93%;
  aspect-ratio: 460 / 215;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid #6b866d;
  border-radius: 12px;
  box-shadow: 0 10px 28px #0008;
}

.feature-shell:first-child {
  right: 1%;
  bottom: -3%;
  z-index: 1;
  transform: rotate(3deg);
}

.feature-shell:nth-child(2) {
  left: 1%;
  top: -3%;
  transform: rotate(-4deg);
}

.feature-shell:only-child {
  inset: 15% 3.5% auto;
  transform: none;
}

.feature-shell .cover-art::after {
  background-image: linear-gradient(0deg, #0a1213e0, transparent 52%), var(--cover, none);
}

.feature-shell:nth-child(2) .cover-art::after {
  background-image: linear-gradient(180deg, #0a1213e0, transparent 52%), var(--cover, none);
}

.feature-caption {
  position: absolute;
  z-index: 1;
  inset: auto 0 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px 8px;
  padding: 9px 10px;
}

.feature-shell:nth-child(2) .feature-caption {
  inset: 0 0 auto;
}

.feature-caption strong {
  color: #fff;
  font-size: clamp(11px, 1.2vw, 16px);
  line-height: 1.3;
  overflow-wrap: anywhere;
  text-shadow: 0 1px 5px #000;
}

.small-status {
  white-space: nowrap;
  border-radius: 5px;
  padding: 3px 6px;
  color: #15301b;
  background: var(--lime);
  font-size: 10px;
  font-weight: 800;
}

.stat-strip {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  margin-top: 22px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: #131a1f;
  overflow: hidden;
}

.catalog-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 9px 14px;
  margin-top: 24px;
  color: var(--muted);
  font-size: 12px;
}

.catalog-pagination .btn:disabled {
  opacity: .45;
  cursor: default;
}

.discussion-note {
  color: var(--muted);
  font-size: 13px;
}

.comment-replies {
  display: grid;
  gap: 14px;
  list-style: none;
  margin: 12px 0 0 15px;
  padding: 0 0 0 clamp(10px, 3vw, 23px);
  border-inline-start: 1px solid var(--border);
}

.comment-reply-form { margin-top: 12px; }

.stat-item {
  min-height: 99px;
  padding: 20px 25px;
  display: flex;
  align-items: center;
  gap: 14px;
  border-right: 1px solid var(--border);
}

.stat-item:last-child {
  border: 0;
}

.stat-icon {
  height: 43px;
  width: 43px;
  border-radius: 10px;
  background: #26362d;
  color: var(--lime);
  display: grid;
  place-items: center;
}

.stat-icon svg {
  width: 22px;
  height: 22px;
}

.stat-icon.sky {
  background: #22363a;
  color: #8ad7db;
}

.stat-icon.amber {
  background: #362d24;
  color: #f6c98c;
}

.stat-icon.gray {
  background: #29333a;
  color: #b5c5d0;
}

.stat-num {
  display: block;
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -1px;
}

.stat-label {
  color: #849298;
  font-size: 11px;
  display: block;
  margin-top: 6px;
}

.section {
  margin-top: 42px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 19px;
  gap: 16px;
}

.section-title {
  font-size: 22px;
  font-weight: 900;
  margin: 0;
  letter-spacing: -.65px;
}

.section-sub {
  color: #829299;
  margin: 7px 0 0;
  font-size: 12px;
  line-height: 1.7;
}

.text-link {
  font-size: 12px;
  font-weight: 800;
  color: var(--lime);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.text-link svg {
  width: 14px;
  height: 14px;
}

.page-banner {
  background: linear-gradient(111deg,#20302a,#172329 74%);
  border: 1px solid #33443d;
  border-radius: 15px;
  min-height: 172px;
  padding: 30px 35px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  overflow: hidden;
  position: relative;
}

.page-banner::before {
  content: '1.0';
  color: #d5ffc30d;
  font-size: 210px;
  font-weight: 900;
  position: absolute;
  right: 25px;
  bottom: -120px;
  letter-spacing: -18px;
}

.page-banner>* {
  z-index: 1;
}

.page-banner h1 {
  font-size: 31px;
  margin: 9px 0 7px;
  font-weight: 900;
  letter-spacing: -1px;
}

.page-banner p {
  margin: 0;
  color: #a6bbb0;
  font-size: 12px;
  line-height: 1.75;
}

.page-banner-art {
  font-size: 81px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -7px;
  color: #c9f36b8c;
  white-space: nowrap;
}

.tabbar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0 0 20px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 16px;
}

.tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 0 14px;
  background: transparent;
  border: 1px solid transparent;
  color: #96a5a8;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 750;
}

.tab:hover {
  color: #fff;
  background: #1d282c;
}

.tab.active {
  border-color: #435642;
  background: #2a3930;
  color: var(--lime);
}

.tab em {
  font-style: normal;
  font-size: 10px;
  background: #35443c;
  color: #b9d9ae;
  border-radius: 4px;
  padding: 2px 6px;
}

.library {
  margin-top: 43px;
}

.library.compact-library {
  margin-top: 0;
}

.catalog-heading {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.catalog-filters {
  margin-bottom: 18px;
}

.filter-bottom {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
  margin-top: 18px;
}

.filter-count {
  color: #9aa9a9;
  font-size: 11px;
}

.filter-count b {
  color: var(--text);
  font-size: 12px;
}

.filter-view {
  display: flex;
  align-items: center;
  gap: 7px;
}

.view-btn {
  width: 30px;
  height: 30px;
  border: 1px solid transparent;
  border-radius: 6px;
  color: #788d90;
  background: transparent;
  display: grid;
  place-items: center;
}

.view-btn.active {
  background: #2d3d32;
  border-color: #4d6449;
  color: var(--lime);
}

.view-btn svg {
  width: 16px;
  height: 16px;
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 17px;
}

.game-card {
  position: relative;
  border: 1px solid #2c3a3e;
  background: #171e23;
  border-radius: 12px;
  overflow: hidden;
  min-width: 0;
  transition: transform .18s,border-color .18s,box-shadow .18s;
}

.game-card:hover {
  transform: translateY(-3px);
  border-color: #617d60;
  box-shadow: 0 16px 33px #0003;
}

.card-cover {
  display: block;
  position: relative;
  aspect-ratio: 460/215;
  overflow: hidden;
  background: linear-gradient(120deg,#334842,#1d3438);
}

.card-cover img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .25s;
}

.game-card:hover .card-cover img {
  transform: scale(1.04);
}

.card-cover::after {
  content: '';
  position: absolute;
  inset: 30% 0 0;
  background: linear-gradient(transparent,#10171a95);
  pointer-events: none;
}

.card-status {
  position: absolute;
  left: 11px;
  top: 11px;
  z-index: 2;
  border-radius: 5px;
  background: #c7f86d;
  color: #192619;
  font-size: 10px;
  font-weight: 900;
  padding: 6px 8px;
  letter-spacing: .2px;
  box-shadow: 0 5px 12px #0004;
}

.card-status.early {
  background: #91c9df;
  color: #17303b;
}

.heart-button {
  position: absolute;
  right: 10px;
  top: 10px;
  z-index: 3;
  width: 31px;
  height: 31px;
  border: 1px solid #ffffff52;
  border-radius: 8px;
  background: #12191ccb;
  backdrop-filter: blur(10px);
  display: grid;
  place-items: center;
  color: white;
  transition: .15s;
}

.heart-button svg {
  width: 17px;
  height: 17px;
}

.heart-button:hover,
.heart-button.saved {
  color: var(--lime);
  border-color: var(--lime);
}

.heart-button.saved svg {
  fill: var(--lime);
}

.card-body {
  padding: 16px 15px 14px;
}

.card-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 7px;
}

.card-title {
  font-size: 14px;
  line-height: 1.38;
  font-weight: 850;
  margin: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-title a:hover {
  color: var(--lime);
}

.card-en {
  margin: 5px 0 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #7d9193;
  font-size: 10px;
}

.game-grid.list-view {
  grid-template-columns: 1fr;
}

.list-view .game-card {
  display: flex;
  min-height: 143px;
}

.list-view .card-cover {
  width: 245px;
  flex-shrink: 0;
  aspect-ratio: auto;
}

.list-view .card-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 15px 24px;
}

.list-view .card-title {
  font-size: 16px;
}

.empty {
  border: 1px dashed #465854;
  background: #151d20;
  border-radius: 12px;
  padding: 65px 20px;
  text-align: center;
}

.empty-icon {
  color: #b2d479;
  font-size: 45px;
  line-height: 1;
  margin-bottom: 14px;
}

.empty h3 {
  font-size: 18px;
  margin: 0 0 10px;
}

.empty p {
  font-size: 12px;
  color: #819599;
  margin: 0 auto 20px;
  max-width: 430px;
  line-height: 1.9;
}

.fineprint {
  font-size: 11px;
  line-height: 1.8;
  color: #6d8286;
  margin-top: 15px;
}

.detail-crumb {
  font-size: 12px;
  color: #809598;
  margin-bottom: 23px;
  display: flex;
  align-items: center;
  gap: 9px;
}

.detail-crumb a {
  color: #c5d4d2;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  min-height: 355px;
  border: 1px solid #41514e;
  border-radius: 17px;
  display: flex;
  align-items: flex-end;
  background: #263333;
}

:scope.game-page {
  isolation: isolate;
}

:scope.game-page::before {
  content: "";
  position: fixed;
  inset: -28px;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(#0c101380, #0c1013d9), var(--cover, none) center / cover no-repeat;
  filter: blur(27px);
}

.detail-bg {
  position: absolute;
  inset: -22px;
  background-size: cover;
  background-position: center;
  filter: blur(18px) brightness(.64);
}

.detail-art {
  position: absolute;
  inset: 0;
  background: var(--cover, none) center right / 72% auto no-repeat;
  mask-image: linear-gradient(to right, transparent 28%, #0005 42%, #000c 56%, black 72%);
}

.detail-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #101819f0 0%, #101819c9 34%, #10181900 73%);
}

.detail-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  backdrop-filter: blur(18px);
  mask-image: linear-gradient(90deg, black 29%, #0008 51%, transparent 73%);
}

.detail-hero-content {
  position: relative;
  padding: 37px 42px;
  z-index: 1;
  max-width: 53%;
}

.detail-hero-content h1 {
  font-size: clamp(27px,3.3vw,44px);
  line-height: 1.27;
  font-weight: 900;
  margin: 13px 0 8px;
}

.detail-en {
  color: #c2d0c9;
  font-size: 14px;
}

.detail-hero-content p {
  color: #b0c0bb;
  line-height: 1.9;
  font-size: 13px;
  margin: 17px 0 22px;
}

.detail-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.detail-actions .btn {
  padding: 0 16px;
}

.detail-badges {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.detail-badge {
  font-weight: 800;
  font-size: 11px;
  padding: 6px 9px;
  border-radius: 6px;
  background: #ccf76a;
  color: #1c2b1b;
}

.detail-badge.early {
  background: #96ced7;
}

.detail-verified {
  font-size: 11px;
  color: #b4d2c0;
}

.detail-body {
  display: grid;
  grid-template-columns: minmax(0,1fr) 345px;
  gap: 22px;
  margin-top: 23px;
}

.detail-panel {
  border: 1px solid var(--border);
  background: #161e22;
  border-radius: 13px;
  padding: 25px 27px;
}

.detail-panel h2 {
  font-size: 17px;
  margin: 0 0 19px;
}

.detail-info-grid {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 19px 20px;
}

.detail-label {
  font-size: 11px;
  color: #7f9496;
  display: block;
  margin-bottom: 8px;
}

.detail-value {
  font-size: 14px;
  color: #e1ece7;
  font-weight: 750;
}

.timeline {
  position: relative;
  margin-left: 11px;
  border-left: 1px solid #54765c;
  padding-left: 23px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.timeline-step {
  position: relative;
}

.timeline-step::before {
  content: '';
  width: 10px;
  height: 10px;
  background: #7b9b86;
  border: 3px solid #18241c;
  box-shadow: 0 0 0 1px #5b8064;
  border-radius: 50%;
  position: absolute;
  left: -32px;
  top: 4px;
}

.timeline-step.last::before {
  background: var(--lime);
  box-shadow: 0 0 0 1px var(--lime);
}

.timeline-step strong {
  font-size: 13px;
}

.timeline-step span {
  display: block;
  color: #95a6a6;
  font-size: 11px;
  margin-top: 6px;
}

.detail-sources p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.75;
}

.detail-sources ul {
  display: grid;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.detail-sources a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 12px;
}

.detail-sources a:hover,
.steam-tags a:hover {
  border-color: #526b4c;
  color: var(--lime);
}

.detail-sources small {
  display: block;
  margin-top: 3px;
  font-size: 11px;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.detail-sources svg,
.timeline-update svg {
  width: 14px;
  height: 14px;
  flex: none;
}

.timeline-update a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  line-height: 1.5;
}

.timeline-update a:hover {
  color: var(--lime);
}

.content-note {
  font-size: 11px;
  color: #71878a;
  line-height: 1.8;
  margin-top: 23px;
}

@media(max-width:1500px) {
  .game-grid {
    grid-template-columns: repeat(3,minmax(0,1fr));
  }

  .stat-item {
    padding: 17px;
  }
}

@media(max-width:1100px) {
  :scope {
    --sidebar-width: 206px;
  }

  .sidebar {
    padding-left: 10px;
    padding-right: 10px;
  }

  .brand-type strong {
    font-size: 17px;
  }

  .brand-mark {
    width: 37px;
    height: 37px;
  }

  .main-content {
    padding: 27px 27px 55px;
  }

  .topbar {
    padding: 0 27px;
  }

  .hero {
    padding: 29px;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
    gap: 18px;
  }

  .hero h1 {
    font-size: 34px;
  }

  .game-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }

  .stat-strip {
    grid-template-columns: repeat(2,1fr);
  }

  .stat-item:nth-child(2) {
    border: 0;
  }

  .stat-item:nth-child(-n+2) {
    border-bottom: 1px solid var(--border);
  }

  .detail-body {
    grid-template-columns: 1fr 300px;
  }

}

@media(max-width:760px) {
  :scope {
    --sidebar-width: 248px;
  }

  .sidebar {
    position: fixed;
    transform: translateX(-100%);
    transition: transform .2s;
    width: 248px;
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .mobile-menu {
    display: grid;
    place-items: center;
    background: none;
    border: 0;
    color: #d6dfdc;
    padding: 0;
    width: 26px;
    height: 35px;
  }

  .mobile-menu svg {
    width: 21px;
    height: 21px;
  }

  .topbar {
    padding: 0 18px;
    height: 64px;
  }

  .breadcrumb {
    display: none;
  }

  .global-search {
    width: min(64vw,330px);
  }

  .main-content {
    padding: 19px 15px 45px;
  }

  .hero {
    display: block;
    min-height: unset;
    padding: 28px 24px;
  }

  .hero h1 {
    font-size: 33px;
  }

  .hero-visual {
    margin-top: 23px;
    margin-inline: -31px;
  }

  .feature-stack {
    margin-block: 0 -6px;
    aspect-ratio: 1.75;
  }

  .feature-shell {
    width: 87%;
  }

  .feature-shell:first-child {
    bottom: 0;
  }

  .feature-shell:nth-child(2) {
    top: 0;
  }

  .stat-strip {
    margin-top: 15px;
  }

  .stat-item {
    min-height: 78px;
    padding: 12px;
    gap: 11px;
  }

  .stat-icon {
    width: 33px;
    height: 33px;
  }

  .stat-icon svg {
    width: 18px;
    height: 18px;
  }

  .stat-num {
    font-size: 22px;
  }

  .section {
    margin-top: 30px;
  }

  .library {
    margin-top: 30px;
  }

  .game-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 10px;
  }

  .card-body {
    padding: 12px;
  }

  .card-title {
    font-size: 12px;
  }

  .card-status {
    font-size: 9px;
    padding: 5px;
  }

  .card-en {
    font-size: 9px;
  }

  .game-grid.list-view .card-cover {
    width: 40%;
  }

  .page-banner {
    padding: 24px;
    min-height: 135px;
  }

  .page-banner h1 {
    font-size: 25px;
  }

  .page-banner-art {
    display: none;
  }

  .detail-hero {
    min-height: 325px;
    display: block;
  }

  .detail-art {
    position: relative;
    inset: auto;
    aspect-ratio: 460 / 215;
    background-size: cover;
    mask-image: linear-gradient(black 72%, transparent);
  }

  .detail-overlay {
    background: linear-gradient(0deg, #101819ef 5%, #1018198c 45%, transparent 69%);
  }

  .detail-overlay::before {
    content: none;
  }

  .detail-hero-content {
    padding: 26px;
    max-width: 100%;
  }

  .detail-body {
    grid-template-columns: 1fr;
  }

  .detail-panel {
    padding: 21px;
  }

}

@media(max-width:420px) {
  .game-grid:not(.list-view) {
    grid-template-columns: 1fr;
  }

  .global-search {
    width: 64vw;
  }

  .hero h1 {
    font-size: 29px;
  }

  .hero-lead {
    font-size: 12px;
  }

  .stat-item {
    gap: 7px;
  }

  .stat-icon {
    display: none;
  }

  .list-view .card-cover {
    width: 34%;
  }
}

[hidden] {
  display: none !important;
}

.skip {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 40;
  padding: 10px 14px;
  background: var(--lime);
  color: var(--bg);
  transform: translateY(-200%);
}

.skip:focus {
  color: var(--bg);
  transform: none;
}

.global-search {
  min-width: 0;
  margin: 0;
}

.side-bottom {
  padding-top: 24px;
}

.side-note {
  position: relative;
  overflow: hidden;
  padding: 19px 14px 20px;
  border: 1px solid #34443b;
  background: linear-gradient(152deg, #23362e, #192624);
  border-radius: 13px;
}

.side-note strong,
.side-note p {
  position: relative;
}

.side-note strong {
  font-size: 13px;
}

.side-note p {
  margin: 9px 0 0;
  color: #a6b4ad;
  font-size: 12px;
  line-height: 1.8;
}

.note-spark {
  position: absolute;
  right: -6px;
  top: -16px;
  font-size: 77px;
  line-height: 1;
  color: #466744;
}

.top-watchlist {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface2);
  color: var(--lime);
}

.top-watchlist:hover,
.top-watchlist[aria-current="page"] {
  border-color: #506648;
  background: #2a3930;
}

.top-watchlist svg {
  width: 16px;
  height: 16px;
}

.language-select,
.sort-select {
  flex: 0 0 auto;
  width: auto;
  min-width: 90px;
  height: var(--dropdown-row-height);
  padding: 0 8px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface2);
  color: var(--text);
  font-size: 12px;
}

.language-select { max-width: 118px; }
.sort-select { min-width: 80px; max-width: min(230px, 58vw); }

.catalog-filters .filter-rail {
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  gap: 5px;
  margin: 0;
  border: 0;
  padding: 3px;
  min-width: 0;
  flex: 1;
  scroll-behavior: auto;
}

.catalog-filters .tab {
  flex: none;
  white-space: nowrap;
  height: 30px;
  min-height: 30px;
  padding: 0 7px;
  line-height: 1.2;
}

.filter-rail-wrap {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  margin-bottom: 5px;
}

.filter-rail::-webkit-scrollbar { display: none; }
.filter-rail[data-overflow="true"] { cursor: grab; user-select: none; }
.filter-rail[data-overflow="true"]:active { cursor: grabbing; }
.tag-rail-arrow:not([hidden]) {
  display: grid;
  place-items: center;
  flex: 0 0 30px;
  height: 30px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--lime);
  background: var(--surface2);
}
.tag-rail-arrow:hover { border-color: var(--lime); }
.tag-rail-arrow svg { width: 16px; height: 16px; }
.tag-rail-arrow[data-reverse="true"] svg { transform: rotate(180deg); }

.card-status.upcoming,
.detail-badge.upcoming {
  background: #e6c380;
  color: #332411;
}

.detail-badge.early {
  background: #91c9df;
  color: #17303b;
}

.hero:not(.has-feature) {
  grid-template-columns: 1fr;
}

.card-cover {
  isolation: isolate;
}

.cover-art {
  position: relative;
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  text-align: center;
  font-weight: 800;
  overflow-wrap: anywhere;
  color: #d7e9d1;
  background: radial-gradient(ellipse at 83% 24%, #b0e69b30, transparent 55%),
    repeating-linear-gradient(126deg, #ffffff05 0 1px, transparent 1px 12px), #263c32;
}

.cover-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--cover, none) center / cover no-repeat;
}

.card-cover .cover-art {
  position: absolute;
  inset: 0;
  transition: transform .25s;
}

.game-card:hover .cover-art {
  transform: scale(1.04);
}

.card-cover:focus-visible {
  outline-offset: -3px;
}

.card-title {
  overflow-wrap: anywhere;
}

.filter-bottom {
  margin-top: 0;
  flex-wrap: wrap;
}

.clear-search {
  padding: 0 8px;
}

.filter-view :is(.clear-search, .sort-select, .view-btn) {
  height: var(--dropdown-row-height, 36px);
  min-height: var(--dropdown-row-height, 36px);
}

.catalog-view-buttons .view-btn { width: var(--dropdown-row-height, 36px); }

#game-results { scroll-margin-top: 12px; }
.empty-results > p { margin-block: 0; }

.clear-search:disabled {
  opacity: .5;
  cursor: default;
}

.detail-bg {
  background-image: var(--cover, none);
}

.detail-body {
  grid-template-columns: minmax(0, 1fr) minmax(0, 315px);
}

.detail-value {
  margin-left: 0;
  overflow-wrap: anywhere;
}

.steam-fact {
  grid-column: 1 / -1;
}

.steam-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 7px 0 0;
  padding: 0;
  list-style: none;
}

.steam-tags li > * {
  display: block;
  padding: 4px 8px;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: #c6d3cc;
  font-size: 11px;
}

.detail-actions .saved {
  color: var(--lime);
}

.member-form .member-preference {
  display: flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
}

.member-form .member-preference input {
  width: 17px;
  height: 17px;
  accent-color: var(--lime);
}

.mobile-backdrop {
  display: none;
}

@media (max-width: 760px) {
  .sidebar {
    visibility: hidden;
    height: 100dvh;
    overflow-y: auto;
  }

  .sidebar.open {
    visibility: visible;
  }

  .topbar {
    gap: 10px;
    padding-inline: 14px;
  }

  .topbar-right {
    flex: 1;
    min-width: 0;
    gap: 8px;
  }

  .global-search {
    flex: 1;
    width: auto;
    max-width: 330px;
    min-width: 0;
  }

  .global-search kbd {
    display: none;
  }

  .top-watchlist {
    width: 32px;
  }

  .mobile-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 25;
    border: 0;
    background: #0008;
  }

  .detail-body {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 340px) {
  .global-search > svg {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  :scope {
    scroll-behavior: auto;
  }

  .sidebar,
  .game-card,
  .card-cover .cover-art {
    transition: none;
  }
}

.account-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  max-width: 132px;
  min-height: 36px;
  padding: 0 9px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface2);
  color: var(--text);
  font-size: 12px;
}

.hero {
  margin-bottom: 0;
}

.hero .hero-lead {
  font-size: 13px;
  line-height: 1.85;
  color: #b5c4bc;
}

.global-search input {
  padding: 0;
}

.eato-site .filter-bottom {
  width: 100%;
}

.account-button svg {
  width: 16px;
  height: 16px;
  flex: none;
}

.account-button span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.member-dialog {
  width: min(440px, calc(100vw - 28px));
  padding: 24px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid #40534a;
  border-radius: 14px;
}

.member-dialog::backdrop {
  background: #05080bcc;
}

.member-dialog-head,
.member-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.member-dialog-head {
  justify-content: space-between;
  margin-bottom: 16px;
}

.member-dialog-head h2 {
  margin: 0;
  font-size: 17px;
  overflow-wrap: anywhere;
}

.member-dialog-head .view-btn {
  font-size: 22px;
}

.member-form,
.member-form label {
  display: grid;
  gap: 8px;
}

.member-form {
  gap: 14px;
  margin-bottom: 14px;
}

.member-form input,
.member-form textarea {
  width: 100%;
  font: inherit;
  padding: 9px 11px;
  border: 1px solid #40504d;
  border-radius: 7px;
  color: var(--text);
  background: var(--bg);
}

.member-form > .btn {
  justify-self: start;
}

.member-notice,
.favorite-error,
.member-form [role="alert"],
.comment-panel [role="alert"] {
  color: var(--red);
}

.member-notice {
  margin: 0;
  padding: 10px 14px;
}

.favorite-error {
  display: block;
  padding: 2px 10px;
}

.comment-panel {
  grid-column: 1 / -1;
}

.comment-panel > p {
  color: #a6b4ad;
}

.comments-list {
  display: grid;
  list-style: none;
  margin: 18px 0;
  padding: 0;
}

.comments-list > li {
  padding: 16px 0;
  border-top: 1px solid var(--border);
}

.comment-entry {
  display: grid;
  grid-template-columns: 31px minmax(0, 1fr);
  gap: 11px;
  scroll-margin-top: 78px;
  overflow-wrap: anywhere;
}

.comment-entry:target .comment-content { outline: 1px solid var(--lime); outline-offset: 5px; border-radius: 3px; }

.comment-avatar {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 800;
  background: #304533;
  color: #d8f2b0;
}

.comment-avatar[data-tone="1"] { background: #293f43; color: #aee4e4; }
.comment-avatar[data-tone="2"] { background: #3d3348; color: #e1c6f0; }
.comment-avatar[data-tone="3"] { background: #4a3c27; color: #f9dfa8; }

.comment-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 9px;
  min-height: 25px;
}

.comment-meta time,
.comment-parent {
  font-size: 12px;
  color: var(--muted);
}

.comment-parent { display: inline-flex; align-items: center; gap: 4px; }
.comment-parent:hover { color: var(--lime); }
.comment-content > p {
  margin: 3px 0 2px;
  white-space: pre-wrap;
}

.comment-actions { display: flex; flex-wrap: wrap; gap: 9px; }
.comment-actions button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 26px;
  padding: 0 3px;
  color: var(--muted);
  font-size: 12px;
  background: transparent;
  border: 0;
}
.comment-actions button:hover { color: var(--lime); }
.comment-actions .comment-delete:hover { color: var(--red); }
@media (max-width: 760px) {
  .hero .hero-lead {
    font-size: 12px;
  }

  .account-button {
    width: 32px;
    justify-content: center;
    padding: 0;
  }

  .account-button span {
    display: none;
  }

  .topbar-right {
    gap: 5px;
  }
}

@media (max-width: 380px) {
  .global-search > svg {
    display: none;
  }
}

}
