:root {
  color-scheme: light;
  --ink: #172033;
  --muted: #617064;
  --paper: #f7f6ed;
  --panel: #ffffff;
  --line: #d9ded2;
  --leaf: #2f8f5b;
  --leaf-dark: #173f2b;
  --sun: #f3b33d;
  --coral: #e95f4d;
  --sky: #78b7c6;
  --shadow: 0 18px 42px rgba(23, 32, 51, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 0%, rgba(120, 183, 198, 0.18), transparent 20rem),
    radial-gradient(circle at 94% 6%, rgba(243, 179, 61, 0.18), transparent 22rem),
    linear-gradient(180deg, #15261d 0, #243226 760px, var(--paper) 761px);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

img {
  max-width: 100%;
  height: auto;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 10px 12px;
  color: #ffffff;
  background: #0f2319;
  border-radius: 8px;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.catalog-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 70px;
  padding: 0 clamp(14px, 3.4vw, 44px);
  color: #f7f6ed;
  background: rgba(21, 38, 29, 0.92);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px);
}

.catalog-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-weight: 900;
}

.catalog-brand img {
  flex: 0 0 auto;
}

.catalog-language {
  position: relative;
  margin-left: auto;
}

.catalog-language details {
  position: relative;
}

.catalog-language summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 13px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: rgba(247, 246, 237, 0.84);
  cursor: pointer;
  font-weight: 850;
  list-style: none;
}

.catalog-language summary::-webkit-details-marker {
  display: none;
}

.catalog-language summary:hover,
.catalog-language summary:focus-visible,
.catalog-language details[open] summary {
  color: #15261d;
  background: #b8ff9c;
  border-color: #b8ff9c;
  outline: none;
}

.catalog-language__options {
  position: absolute;
  z-index: 20;
  top: calc(100% + 8px);
  right: 0;
  display: grid;
  min-width: 220px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: #18251e;
  box-shadow: 0 18px 44px rgba(4, 13, 9, 0.28);
}

.catalog-language__options a {
  padding: 9px 10px;
  border-radius: 6px;
  color: rgba(247, 246, 237, 0.86);
  font-size: 0.92rem;
  font-weight: 800;
}

.catalog-language__options a:hover,
.catalog-language__options a:focus-visible,
.catalog-language__options a[aria-current="true"] {
  color: #15261d;
  background: #b8ff9c;
  outline: none;
}

.catalog-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-left: auto;
}

.catalog-nav a,
.primary-link,
.text-link,
.tool-button,
.filter-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border-radius: 8px;
  font-weight: 850;
}

.catalog-nav a {
  padding: 0 13px;
  color: rgba(247, 246, 237, 0.84);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.catalog-nav a[aria-current="page"],
.catalog-nav a:hover {
  color: #15261d;
  background: #b8ff9c;
  border-color: #b8ff9c;
}

.catalog-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  width: min(1240px, calc(100% - 28px));
  margin: 0 auto;
  padding: clamp(18px, 4vw, 34px) 0 0;
}

.catalog-main {
  min-width: 0;
  padding-bottom: clamp(50px, 8vw, 96px);
}

.home-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(420px, 1.14fr);
  gap: clamp(18px, 4vw, 42px);
  align-items: center;
  min-height: min(760px, calc(100dvh - 98px));
  color: #f7f6ed;
}

.home-hero__copy {
  position: relative;
  z-index: 1;
}

.home-hero__copy h1,
.archive-hero h1,
.game-detail-head h1,
.section-heading h2 {
  margin: 0;
  letter-spacing: 0;
}

.home-hero__copy h1 {
  max-width: 650px;
  font-size: clamp(2.8rem, 7vw, 6rem);
  line-height: 0.9;
}

.home-hero__copy p:not(.eyebrow),
.archive-hero p,
.game-detail-head p {
  color: rgba(247, 246, 237, 0.78);
  font-size: clamp(1rem, 1.6vw, 1.18rem);
  line-height: 1.62;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--sun);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-actions,
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.primary-link {
  padding: 0 18px;
  color: #15261d;
  background: #b8ff9c;
  border: 1px solid #b8ff9c;
  cursor: pointer;
}

.text-link {
  padding: 0 15px;
  color: #f7f6ed;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.catalog-section .text-link,
.archive-hero .text-link,
.seo-copy .text-link {
  color: var(--leaf-dark);
  background: #ffffff;
  border-color: var(--line);
}

.home-featured,
.game-stage-section {
  min-width: 0;
}

.home-featured {
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.24);
}

.home-featured__media {
  position: relative;
  display: block;
  aspect-ratio: 450 / 347;
  overflow: hidden;
  background: #0d1611;
}

.home-featured__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-featured__media span {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 6px 10px;
  color: #163326;
  background: rgba(255, 255, 255, 0.88);
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 900;
}

.home-featured__body {
  display: grid;
  gap: 12px;
  padding: clamp(18px, 3vw, 28px);
}

.home-featured__body h2 {
  margin: 0;
  font-size: clamp(1.55rem, 3vw, 2.4rem);
  line-height: 1;
}

.home-featured__body p:not(.eyebrow) {
  margin: 0;
  color: rgba(247, 246, 237, 0.78);
  line-height: 1.62;
}

.flash-container {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  width: 100%;
  min-height: 430px;
  aspect-ratio: 16 / 9;
  background: #0d1611;
  border: 1px solid rgba(184, 255, 156, 0.24);
  border-radius: 14px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.28);
}

.flash-container[data-state="playing"] {
  min-height: 0;
}

.game-frame {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #0d1611;
}

.game-poster {
  display: grid;
  place-items: center;
  gap: 18px;
  width: 100%;
  height: 100%;
  padding: 24px;
  background:
    radial-gradient(circle at 18% 18%, rgba(243, 179, 61, 0.34), transparent 12rem),
    radial-gradient(circle at 84% 78%, rgba(120, 183, 198, 0.24), transparent 14rem),
    linear-gradient(135deg, #294536, #17251c);
}

.game-poster img {
  width: min(240px, 58%);
  border-radius: 18px;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.22);
}

.poster-play {
  min-width: 190px;
  min-height: 54px;
  color: #ffffff;
  background: var(--coral);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 900;
  text-transform: uppercase;
}

.game-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  padding: 10px;
  color: rgba(247, 246, 237, 0.8);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
}

.game-status {
  min-width: 0;
  margin: 0;
  color: inherit;
  font-size: 0.92rem;
}

.toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.tool-button {
  padding: 0 13px;
  color: #15261d;
  background: #ffffff;
  border: 1px solid var(--line);
  cursor: pointer;
}

.tool-button.quiet {
  color: rgba(247, 246, 237, 0.8);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
}

.tool-button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.category-rail,
.catalog-section,
.seo-copy,
.detail-meta {
  margin-top: clamp(28px, 5vw, 58px);
  color: var(--ink);
}

.section-heading {
  margin-bottom: 16px;
}

.section-heading--split {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.section-heading h2,
.archive-hero h1,
.game-detail-head h1 {
  font-size: clamp(2rem, 4.8vw, 3.8rem);
  line-height: 0.98;
}

.section-heading p,
.catalog-count {
  margin: 8px 0 0;
  color: var(--muted);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

.category-card {
  display: grid;
  gap: 7px;
  min-height: 154px;
  padding: 16px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(23, 32, 51, 0.07);
}

.category-card img {
  width: 62px;
  height: 62px;
}

.category-card span {
  font-weight: 900;
}

.category-card strong {
  color: var(--muted);
  font-size: 0.86rem;
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(188px, 1fr));
  gap: 14px;
}

.game-grid--featured {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.game-card {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 306px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(217, 222, 210, 0.92);
  border-radius: 8px;
  box-shadow: 0 14px 30px rgba(23, 32, 51, 0.08);
  cursor: pointer;
}

.game-card--compact {
  min-height: 282px;
}

.game-card__media {
  position: relative;
  display: block;
  aspect-ratio: 240 / 190;
  overflow: hidden;
  background: #d9ded2;
}

.game-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lazy-image {
  opacity: 0.72;
  transition: opacity 0.24s ease-in-out;
}

.lazy-image.is-loaded {
  opacity: 1;
}

.game-card__source {
  position: absolute;
  top: 9px;
  left: 9px;
  max-width: calc(100% - 18px);
  padding: 5px 8px;
  overflow: hidden;
  color: #163326;
  background: rgba(255, 255, 255, 0.84);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.game-card__body {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 13px 13px 10px;
}

.game-card h3,
.game-card__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 900;
  line-height: 1.18;
}

.game-card h3 a:hover,
.game-card__title a:hover {
  color: var(--leaf-dark);
}

.game-card__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.game-card__categories {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.game-card__chip,
.game-card__category {
  padding: 4px 7px;
  color: var(--leaf-dark);
  background: rgba(47, 143, 91, 0.1);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 850;
}

.game-card__play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  margin: 0 13px 13px;
  color: #ffffff;
  background: var(--coral);
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 900;
}

.game-card__play-link {
  text-align: center;
}

.game-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(23, 32, 51, 0.13);
}

.catalog-controls {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
}

.catalog-search {
  display: grid;
  gap: 6px;
  max-width: 420px;
}

.catalog-search span {
  color: var(--leaf-dark);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.catalog-search input {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: none;
}

.catalog-search input:focus {
  border-color: var(--leaf);
  box-shadow: 0 0 0 3px rgba(47, 143, 91, 0.16);
}

.filter-row {
  display: flex;
  gap: 8px;
  max-width: 100%;
  padding-bottom: 4px;
  overflow-x: auto;
}

.filter-chip {
  flex: 0 0 auto;
  padding: 0 12px;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid var(--line);
  cursor: pointer;
  white-space: nowrap;
}

.filter-chip[aria-pressed="true"] {
  color: #ffffff;
  background: var(--leaf-dark);
  border-color: var(--leaf-dark);
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 18px;
  color: rgba(247, 246, 237, 0.76);
  font-size: 0.92rem;
}

.breadcrumbs a:hover {
  color: #b8ff9c;
}

.archive-hero,
.game-detail-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: clamp(18px, 4vw, 30px);
  color: #f7f6ed;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  box-shadow: 0 22px 52px rgba(0, 0, 0, 0.18);
}

.archive-hero img,
.game-detail-head > img {
  width: clamp(76px, 13vw, 150px);
  border-radius: 18px;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.18);
}

.game-stage-section {
  margin-top: clamp(20px, 4vw, 34px);
}

.detail-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.detail-meta article,
.seo-copy {
  padding: clamp(18px, 3vw, 26px);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(23, 32, 51, 0.07);
}

.detail-meta span {
  color: var(--coral);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.detail-meta strong {
  display: block;
  margin: 6px 0 8px;
  font-size: 1.05rem;
}

.detail-meta p,
.seo-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.detail-meta a {
  display: inline-flex;
  margin: 0 6px 6px 0;
  color: var(--leaf-dark);
  font-weight: 850;
}

.game-guide-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.guide-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 1.25rem;
  color: var(--muted);
  line-height: 1.7;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.tag-list a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 11px;
  color: var(--leaf-dark);
  background: rgba(47, 143, 91, 0.1);
  border: 1px solid rgba(47, 143, 91, 0.18);
  border-radius: 999px;
  font-weight: 850;
}

.faq-list {
  display: grid;
  gap: 10px;
  margin: 0;
}

.faq-list dt {
  color: var(--ink);
  font-weight: 900;
}

.faq-list dd {
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.7;
}

.seo-copy h2,
.seo-copy h3 {
  margin: 0 0 10px;
}

.seo-copy h3 {
  margin-top: 22px;
}

body.catalog-game-page {
  color: rgba(235, 239, 230, 0.82);
  background:
    radial-gradient(circle at 12% 4%, rgba(120, 183, 198, 0.13), transparent 18rem),
    radial-gradient(circle at 88% 8%, rgba(243, 179, 61, 0.12), transparent 18rem),
    linear-gradient(180deg, #2d241a 0, #241c15 48%, #2f2b1f 100%);
}

.catalog-game-page .catalog-layout {
  width: min(1180px, calc(100% - 32px));
  padding-top: clamp(18px, 3vw, 34px);
}

.catalog-game-page .catalog-main {
  padding-bottom: clamp(56px, 8vw, 110px);
}

.catalog-game-page .breadcrumbs {
  color: rgba(235, 239, 230, 0.68);
}

.catalog-game-page .game-detail-head,
.catalog-game-page .detail-meta article,
.catalog-game-page .seo-copy,
.catalog-game-page .game-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(184, 255, 156, 0.17);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.14);
}

.catalog-game-page .game-detail-head {
  gap: clamp(16px, 3vw, 26px);
  border-radius: 16px;
}

.catalog-game-page .game-detail-head > img {
  border: 1px solid rgba(184, 255, 156, 0.2);
  border-radius: 12px;
}

.catalog-game-page .game-detail-head h1,
.catalog-game-page .section-heading h2,
.catalog-game-page .seo-copy h2,
.catalog-game-page .seo-copy h3,
.catalog-game-page .detail-meta strong,
.catalog-game-page .game-card h3,
.catalog-game-page .game-card h3 a,
.catalog-game-page .game-card__title,
.catalog-game-page .game-card__title a {
  color: #f8ffe9;
}

.catalog-game-page .game-detail-head p,
.catalog-game-page .section-heading p,
.catalog-game-page .catalog-count,
.catalog-game-page .detail-meta p,
.catalog-game-page .seo-copy p,
.catalog-game-page .guide-list,
.catalog-game-page .faq-list dd {
  color: rgba(235, 239, 230, 0.76);
}

.catalog-game-page .eyebrow,
.catalog-game-page .detail-meta span {
  color: #baf6ff;
}

.catalog-game-page .primary-link {
  color: #18211d;
  background: #b8ff9c;
  border-color: rgba(184, 255, 156, 0.72);
  box-shadow: 0 14px 30px rgba(184, 255, 156, 0.12);
}

.catalog-game-page .text-link {
  color: rgba(248, 255, 233, 0.86);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(184, 255, 156, 0.18);
}

.catalog-game-page .primary-link:hover,
.catalog-game-page .primary-link:focus-visible,
.catalog-game-page .text-link:hover,
.catalog-game-page .text-link:focus-visible,
.catalog-game-page .tool-button:hover,
.catalog-game-page .tool-button:focus-visible,
.catalog-game-page .poster-play:hover,
.catalog-game-page .poster-play:focus-visible {
  transform: translateY(-1px);
  outline: none;
}

.catalog-game-page .game-stage-section {
  padding: clamp(16px, 3vw, 24px);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(184, 255, 156, 0.14);
  border-radius: 16px;
}

.catalog-game-page .flash-container {
  min-height: clamp(360px, 54vw, 620px);
  border-radius: 18px;
}

.catalog-game-page .game-poster {
  background:
    radial-gradient(circle at 18% 18%, rgba(184, 255, 156, 0.16), transparent 10rem),
    radial-gradient(circle at 78% 78%, rgba(120, 183, 198, 0.2), transparent 13rem),
    linear-gradient(135deg, #4f9690, #477b78);
}

.catalog-game-page .game-poster img {
  border: 1px solid rgba(184, 255, 156, 0.2);
  border-radius: 14px;
}

.catalog-game-page .poster-play {
  color: #172033;
  background: #ffffff;
  box-shadow: 0 18px 28px rgba(24, 31, 54, 0.16);
}

.catalog-game-page .game-toolbar {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(184, 255, 156, 0.14);
}

.catalog-game-page .tool-button {
  color: #172033;
  background: #ffffff;
  border-color: rgba(255, 255, 255, 0.72);
}

.catalog-game-page .tool-button.quiet {
  color: rgba(248, 255, 233, 0.78);
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(184, 255, 156, 0.14);
}

.catalog-game-page .detail-meta article,
.catalog-game-page .seo-copy {
  border-radius: 12px;
}

.catalog-game-page .detail-meta a,
.catalog-game-page .tag-list a {
  color: #b8ff9c;
}

.catalog-game-page .detail-meta a:hover,
.catalog-game-page .tag-list a:hover,
.catalog-game-page .game-card h3 a:hover,
.catalog-game-page .game-card__title a:hover {
  color: #baf6ff;
}

.catalog-game-page .tag-list a,
.catalog-game-page .game-card__chip,
.catalog-game-page .game-card__category {
  background: rgba(184, 255, 156, 0.08);
  border: 1px solid rgba(184, 255, 156, 0.16);
}

.catalog-game-page .game-card {
  color: rgba(235, 239, 230, 0.82);
}

.catalog-game-page .game-card__media {
  background:
    radial-gradient(circle at 78% 22%, rgba(243, 179, 61, 0.22), transparent 4.8rem),
    linear-gradient(135deg, #4f9690, #477b78);
}

.catalog-game-page .game-card__body {
  color: rgba(235, 239, 230, 0.82);
}

.catalog-game-page .game-card__chip,
.catalog-game-page .game-card__category {
  color: #baf6ff;
}

.catalog-game-page .game-card__play {
  color: #18211d;
  background: #b8ff9c;
}

.catalog-game-page .game-card:hover {
  border-color: rgba(184, 255, 156, 0.34);
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.18);
}

.catalog-game-page .faq-list dt {
  color: #f8ffe9;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  min-height: 70px;
  color: rgba(235, 239, 230, 0.68);
  background: #241c15;
  border-top: 1px solid rgba(184, 255, 156, 0.16);
}

.site-footer a {
  color: #b8ff9c;
  font-weight: 750;
}

.site-footer .directory-badge[href*="neeed.directory"] img {
  width: 139px;
  height: 32px;
}

.site-footer .directory-badge[href*="newtool.site"] img {
  width: 210px;
  height: 54px;
}

.site-footer a:hover {
  color: #b8ff9c;
}

[hidden] {
  display: none !important;
}

@media (max-width: 1080px) {
  .catalog-layout {
    grid-template-columns: 1fr;
  }

  .home-hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 16px;
  }

  .detail-meta {
    grid-template-columns: 1fr;
  }

  .game-guide-grid {
    grid-template-columns: 1fr;
  }

  .catalog-game-page .flash-container {
    min-height: clamp(300px, 58vw, 520px);
  }
}

@media (max-width: 720px) {
  .catalog-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    padding-block: 12px;
  }

  .catalog-nav {
    width: 100%;
    margin-left: 0;
    overflow-x: auto;
    flex-wrap: nowrap;
  }

  .catalog-language {
    width: 100%;
    margin-left: 0;
  }

  .catalog-language summary {
    width: 100%;
  }

  .catalog-language__options {
    right: auto;
    left: 0;
    width: min(100%, 260px);
  }

  .catalog-layout {
    width: min(100% - 20px, 1440px);
  }

  .catalog-game-page .catalog-layout {
    width: min(100% - 20px, 1180px);
  }

  .home-hero__copy h1 {
    font-size: clamp(2.3rem, 14vw, 3.4rem);
  }

  .flash-container {
    min-height: 320px;
    aspect-ratio: auto;
  }

  .catalog-game-page .flash-container {
    min-height: 240px;
    aspect-ratio: 16 / 10;
  }

  .game-toolbar,
  .section-heading--split,
  .archive-hero,
  .game-detail-head {
    align-items: stretch;
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .toolbar-actions {
    justify-content: stretch;
  }

  .tool-button {
    flex: 1 1 120px;
  }

  .game-grid,
  .game-grid--featured {
    grid-template-columns: repeat(auto-fill, minmax(152px, 1fr));
  }

  .game-card {
    min-height: 270px;
  }

  .catalog-game-page .game-stage-section,
  .catalog-game-page .game-detail-head,
  .catalog-game-page .detail-meta article,
  .catalog-game-page .seo-copy {
    border-radius: 12px;
  }
}
