@import url("https://fonts.googleapis.com/css2?family=Nunito+Sans:wght@400;500;600;700;800;900&family=Press+Start+2P&display=swap");

:root {
  color-scheme: light;
  --bg: #edf2fb;
  --panel: #ffffff;
  --panel-soft: #f4f7fc;
  --line: #d3dced;
  --text: #26354e;
  --muted: #71809a;
  --accent: #ffcf38;
  --accent-dark: #f0ad17;
  --mono: "Press Start 2P", "Courier New", monospace;
  --sans: "Nunito Sans", sans-serif;
  --display: "Nunito Sans", sans-serif;
}

body {
  background-color: #edf2fb;
  background-image: radial-gradient(#d7e1f1 1px, transparent 1px);
  background-size: 15px 15px;
  color: var(--text);
  font-size: 14px;
}

.topbar {
  height: 68px;
  padding: 0 max(calc((100vw - 1200px) / 2), 5.5vw);
  border: 0;
  border-bottom: 4px solid #ffcf38;
  background: #1766d3;
  box-shadow: 0 3px 0 #154d9f;
}

.top-links { gap: 27px; }
.top-actions { display: flex; align-items: center; gap: 9px; }
.mobile-nav-toggle { display: none; }
.top-link { color: #d9e8ff; font-weight: 800; }
.top-link:hover, .top-link.active { color: #fff; }
.top-link.active::after { height: 3px; background: #ffcf38; }
.top-cta {
  border: 2px solid #17468b;
  border-radius: 7px;
  background: #ffcf38;
  box-shadow: 2px 2px 0 #123a78;
  color: #234577;
  font-size: 12px;
  font-weight: 900;
}
.top-cta:hover { background: #ffe078; }
.account-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 11px;
  border: 2px solid #ffffff75;
  border-radius: 7px;
  background: #ffffff19;
  color: #fff;
  cursor: pointer;
  font-size: 11px;
  font-weight: 900;
}
.account-button:hover { background: #ffffff30; }

.hero {
  max-width: none;
  min-height: 355px;
  padding: 52px max(calc((100vw - 1200px) / 2), 5.5vw) 44px;
  border-bottom: 6px solid #ffcf38;
  background-color: #216ed7;
  background-image: radial-gradient(#ffffff16 1.5px, transparent 1.5px), linear-gradient(115deg, #1d5dbc, #3585e8);
  background-position: 8px 8px, 0 0;
  background-size: 16px 16px, auto;
  color: #fff;
}

.hero-copy { max-width: 580px; }
.eyebrow { color: #ffe177; font-size: 9px; }
.live-dot { background: #ffe177; box-shadow: 0 0 0 3px #ffffff20; }
.hero h1 {
  margin: 20px 0 13px;
  color: #fff;
  font-family: var(--sans);
  font-size: clamp(47px, 5vw, 65px);
  font-weight: 1000;
  letter-spacing: -3px;
  line-height: .99;
  text-shadow: 3px 4px 0 #174b9b;
}
.hero h1 span { color: #ffe177; }
.hero-copy > p { color: #e4efff; font-size: 15px; font-weight: 700; }
.hero-button {
  border: 2px solid #e8ad16;
  border-radius: 7px;
  background: #ffcf38;
  box-shadow: 3px 4px 0 #164b98;
  color: #344a67;
  font-size: 13px;
  font-weight: 1000;
}
.hero-button:hover { background: #ffe278; }
.hero-meta { color: #e2edff; font-size: 12px; font-weight: 800; }
.avatar-stack i { border-color: #216ed7; background: #fff; }
.hero-orbit { border-color: #ffffff45; }
.orbit-two { border-color: #ffffff25; }
.hero-console {
  border: 4px solid #ba8c15;
  border-radius: 16px 16px 29px 29px;
  background: #ffcf38;
  box-shadow: 8px 9px 0 #164b98, 0 18px 35px #0e3c8052;
  image-rendering: pixelated;
}
.console-screen { border-color: #5b86b5; border-radius: 8px; background: #193550; }
.console-screen strong { font-family: var(--sans); font-weight: 1000; letter-spacing: -1px; }
.console-controls { color: #445b83; }
.button-pair i { background: #ee6b64; box-shadow: inset -2px -3px 0 #c34646; }
.hero-spark { color: #ffe177; }
.art-label { color: #e5eeff; font-weight: 700; }

.featured-games {
  max-width: 1200px;
  margin: 22px auto 0;
  padding: 26px 30px 30px;
  border: 1px solid #d5deed;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 3px 0 #dce5f2;
}
.featured-games .section-heading { margin-bottom: 17px; }
.featured-games .section-heading h2 {
  color: #253854;
  font-family: var(--sans);
  font-size: 30px;
  font-weight: 1000;
  letter-spacing: -1.2px;
}
.featured-games .section-heading h2 span { color: #ed6a48; }
.featured-games-intro {
  margin: 0 0 3px;
  color: #73819a;
  font-size: 12px;
  font-weight: 700;
}
.featured-games-status {
  margin: 0;
  color: #71809a;
  font-size: 12px;
  font-weight: 700;
}
.featured-games .games-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; }

.homepage-recommendations {
  max-width: 1200px;
  margin: 22px auto 0;
  padding: 26px 30px 30px;
  border: 1px solid #d5deed;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 3px 0 #dce5f2;
}
.homepage-recommendations .section-heading { margin-bottom: 17px; }
.homepage-recommendations .section-heading h2 {
  color: #253854;
  font-family: var(--sans);
  font-size: 30px;
  font-weight: 1000;
  letter-spacing: -1.2px;
}
.homepage-recommendations .section-heading h2 span { color: #ed6a48; }
.homepage-recommendations-intro,
.homepage-recommendations-status {
  margin: 0 0 3px;
  color: #73819a;
  font-size: 12px;
  font-weight: 700;
}
.homepage-recommendations .games-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; }

.engagement-hub {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 1200px;
  gap: 18px;
  margin: 22px auto 0;
}
.daily-game-section { grid-column: 1 / -1; grid-row: 1; }
#collection-overview { grid-column: 2; grid-row: 1; }
.engagement-hub.has-user .daily-game-section { grid-column: 1; }
.engagement-hub > section[aria-labelledby="mission-board-title"],
.engagement-hub > .points-shop,
.engagement-hub > .weekly-game-vote { grid-column: 1 / -1; }
.engagement-hub > section[aria-labelledby="theme-challenge-title"] { grid-column: 1; }
.engagement-hub > section[aria-labelledby="community-goal-title"] { grid-column: 2; }
.daily-game-section, .mission-board, .collection-overview {
  padding: 24px 28px;
  border: 1px solid #d5deed;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 3px 0 #dce5f2;
}
.daily-game-heading, .mission-board-heading, .collection-overview-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}
.mission-board-actions { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.mission-board-actions a { display: inline-flex; align-items: center; text-decoration: none; }
.daily-game-heading h2, .mission-board-heading h2, .collection-overview-heading h2 {
  margin: 4px 0 0;
  color: #253854;
  font-family: var(--sans);
  font-size: 27px;
  font-weight: 1000;
  letter-spacing: -1px;
}
.daily-game-heading h2 span, .mission-board-heading h2 span, .collection-overview-heading h2 span { color: #ed6a48; }
.engagement-status { margin: 4px 0; color: #718097; font-size: 11px; font-weight: 700; }
.daily-game-content { max-width: 760px; }
.daily-game-card {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(0, 1.4fr);
  overflow: hidden;
  border: 1px solid #d6dfec;
  border-radius: 8px;
  background: #f8faff;
  box-shadow: 0 2px 0 #d8e1ee;
}
.daily-game-image { display: block; width: 100%; height: 100%; min-height: 190px; object-fit: cover; background: #e8f0fd; }
.daily-game-image-placeholder { display: grid; place-items: center; color: #1766d3; font-size: 54px; }
.daily-game-details { display: flex; flex-direction: column; align-items: flex-start; padding: 20px; }
.daily-game-category { padding: 4px 8px; border-radius: 999px; background: #e7f0ff; color: #3767a7; font-size: 9px; font-weight: 900; }
.daily-game-details h3 { margin: 9px 0 4px; color: #263b59; font-size: 20px; font-weight: 1000; }
.daily-game-details p { margin: 0; color: #718097; font-size: 11px; line-height: 1.55; }
.daily-game-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 16px; }
.daily-game-actions button { min-height: 34px; padding: 7px 10px; border: 1px solid #cbd8ea; border-radius: 5px; background: #fff; color: #395474; cursor: pointer; font-size: 10px; font-weight: 900; }
.daily-game-actions .play-button { border-color: #1254ae; background: #1766d3; color: #fff; }
.mission-points { margin: 0; padding: 8px 12px; border: 1px solid #f0d47a; border-radius: 999px; background: #fff8df; color: #865f0c; font-size: 12px; font-weight: 1000; white-space: nowrap; }
.mission-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.shop-items { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.shop-item { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 12px; border: 1px solid #dfe6f0; border-radius: 8px; background: #f8faff; }
.shop-item-icon { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 8px; background: #e9f1ff; color: #1766d3; font-size: 19px; }
.shop-item-details { display: grid; gap: 4px; }
.shop-item-details strong { color: #304766; font-size: 11px; }
.shop-item-details span, .shop-disclaimer { color: #718097; font-size: 9px; line-height: 1.5; }
.shop-item-price { color: #a76b0c; font-size: 10px; font-weight: 1000; white-space: nowrap; }
.shop-item-actions { display: flex; grid-column: 2 / -1; flex-wrap: wrap; gap: 6px; }
.shop-secondary-button { padding: 7px 10px; border: 1px solid #cbd8ea; border-radius: 5px; background: #fff; color: #395474; cursor: pointer; font-size: 10px; font-weight: 900; }
.shop-disclaimer { margin: 14px 0 0; }
.shop-currency-exchange { margin: 18px 0; padding: 16px; border: 1px solid #d5deed; border-radius: 8px; background: #f4f8ff; }
.shop-currency-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.shop-currency-heading h2 { margin: 0 0 5px; color: #253854; font-size: 15px; }
.shop-currency-heading > div > p { margin: 0; color: #718097; font-size: 10px; }
.shop-exchange-form { display: grid; grid-template-columns: auto minmax(160px, 1fr) auto minmax(100px, .7fr) auto auto; align-items: center; gap: 9px; margin-top: 14px; }
.shop-exchange-form label { color: #395474; font-size: 10px; font-weight: 900; }
.shop-exchange-form select, .shop-exchange-form input { min-width: 0; min-height: 38px; padding: 0 9px; border: 1px solid #cbd8ea; border-radius: 5px; color: #304766; background: #fff; font: inherit; font-size: 11px; }
.shop-exchange-preview { color: #718097; font-size: 10px; }
.shop-exchange-login { color: #175eb7; font-size: 11px; font-weight: 900; }
.shop-currency-exchange .engagement-status { margin-top: 9px; }
.shop-currency-exchange [hidden] { display: none; }
.shop-item-actions button:disabled { opacity: .55; cursor: not-allowed; }
.shop-page { width: min(1200px, calc(100% - 32px)); min-height: 65vh; margin: 22px auto 48px; }
.shop-page .seo-breadcrumb { display: flex; align-items: center; gap: 9px; margin-bottom: 16px; color: #718097; font-size: 11px; }
.shop-page .seo-breadcrumb a { color: #175eb7; font-weight: 900; }
.shop-page .points-shop h1 { margin: 4px 0 0; color: #253854; font-family: var(--sans); font-size: 32px; font-weight: 1000; letter-spacing: -1px; }
.shop-page .points-shop h1 span { color: #ed6a48; }
.shop-page .points-shop { padding: 28px; }
.shop-page .shop-item-actions a { display: inline-flex; align-items: center; text-decoration: none; }
.top-actions #shop-logout[hidden] { display: none; }
html[data-shop-theme="midnight"] .shop-page .points-shop h1 { color: #e5ecf9; }
.collection-overview[data-decoration="collection-pixel"] { border-color: #9c7ce7; box-shadow: 0 3px 0 #c9b8ef; }
.collection-overview[data-decoration="collection-pixel"] .collection-overview-heading h2::after { content: " ▦"; color: #8062c7; font-size: 16px; }
html[data-shop-theme="midnight"] body { background-color: #141a2a; background-image: radial-gradient(#252f48 1px, transparent 1px); color: #e2e8f4; }
html[data-shop-theme="midnight"] .daily-game-section,
html[data-shop-theme="midnight"] .mission-board,
html[data-shop-theme="midnight"] .collection-overview { border-color: #35415c; background: #202a40; box-shadow: 0 3px 0 #111827; }
html[data-shop-theme="midnight"] .daily-game-heading h2,
html[data-shop-theme="midnight"] .mission-board-heading h2,
html[data-shop-theme="midnight"] .collection-overview-heading h2 { color: #e5ecf9; }
html[data-shop-theme="midnight"] .shop-item,
html[data-shop-theme="midnight"] .mission-card { border-color: #35415c; background: #182237; }
html[data-shop-theme="midnight"] .shop-item-details strong,
html[data-shop-theme="midnight"] .mission-card-heading h3 { color: #dce7fa; }
.player-profile-header[data-profile-background="background-stars"] { padding: 18px; border: 1px solid #8271bd; border-radius: 10px; background: radial-gradient(circle at 15% 30%, #fff6a8 0 1px, transparent 2px), radial-gradient(circle at 80% 60%, #c3b4ff 0 1px, transparent 2px), linear-gradient(125deg, #20264d, #47366f); background-size: 40px 40px, 55px 55px, auto; }
.player-profile-header[data-profile-background="background-stars"] h1,
.player-profile-header[data-profile-background="background-stars"] .eyebrow { color: #fff; }
.player-profile-header[data-profile-frame="frame-neon"] .player-avatar-large { outline: 3px solid #75f4ff; outline-offset: 3px; box-shadow: 0 0 18px #75f4ff99; }
.player-profile-header[data-profile-frame="frame-gold"] .player-avatar-large { outline: 3px solid #ffd166; outline-offset: 3px; box-shadow: 0 0 14px #ffd16699; }
.mission-card { display: grid; gap: 9px; padding: 14px; border: 1px solid #dfe6f0; border-radius: 8px; background: #f8faff; }
.mission-card-heading, .mission-progress-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.mission-card-heading h3 { margin: 0; color: #304766; font-size: 13px; font-weight: 1000; }
.mission-reward { color: #a76b0c; font-size: 10px; font-weight: 1000; white-space: nowrap; }
.mission-description { min-height: 34px; margin: 0; color: #718097; font-size: 10px; line-height: 1.6; }
.mission-card progress { width: 100%; height: 8px; accent-color: #1766d3; }
.mission-progress-row > span { color: #52657e; font-size: 10px; font-weight: 900; }
.theme-challenge-progress { width: 100%; height: 9px; margin: 8px 0; accent-color: #e6a51d; }
.mission-claim-button.selected { border-color: #e6a51d; background: #fff4d2; color: #805a0c; }
.weekly-game-candidates { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.weekly-game-card { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; align-items: center; gap: 11px; min-width: 0; padding: 10px; border: 1px solid #dfe6f0; border-radius: 8px; background: #f8faff; }
.weekly-game-image { width: 76px; height: 52px; border-radius: 5px; object-fit: cover; background: #e8f0fd; }
.weekly-game-details { display: grid; min-width: 0; gap: 4px; }
.weekly-game-details strong { overflow: hidden; color: #304766; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.weekly-game-details span { color: #718097; font-size: 9px; }
.mission-claim-button, .collection-add-button {
  padding: 7px 11px;
  border: 1px solid #175eb7;
  border-radius: 5px;
  background: #1766d3;
  color: #fff;
  cursor: pointer;
  font-size: 10px;
  font-weight: 900;
}
.mission-claim-button:disabled { border-color: #d3dced; background: #edf2fb; color: #8591a4; cursor: not-allowed; }
.collection-overview-list { display: flex; flex-wrap: wrap; gap: 10px; }
.collection-overview-card { display: grid; min-width: 150px; gap: 3px; padding: 12px 15px; border: 1px solid #d5deed; border-radius: 7px; background: #f8faff; color: #304766; cursor: pointer; text-align: left; }
.collection-overview-card:hover { border-color: #8db4ee; background: #eef5ff; }
.collection-overview-card strong { font-size: 11px; }
.collection-overview-card span { color: #718097; font-size: 9px; }
.collections-toggle { min-height: 41px; padding: 0 11px; border: 1px solid #d2ddec; border-radius: 5px; background: #f8faff; color: #52657e; cursor: pointer; font-size: 10px; font-weight: 900; }
.collections-toggle:hover { border-color: #8db4ee; color: #1766d3; }
.collection-button { width: 27px; height: 27px; border: 1px solid #d5dfed; border-radius: 5px; background: #f7f9fd; color: #54708f; cursor: pointer; font-size: 12px; }
.collection-button:hover { border-color: #8db4ee; background: #eef5ff; color: #1766d3; }
.collection-dialog { width: min(560px, calc(100vw - 28px)); max-width: none; max-height: min(700px, calc(100vh - 32px)); padding: 0; overflow: hidden; border: 2px solid #b9c9df; border-radius: 9px; background: #fff; color: #26354e; box-shadow: 0 20px 80px #10234455; }
.collection-dialog::backdrop { background: #15243b88; backdrop-filter: blur(2px); }
.collection-dialog > .dialog-top { padding: 14px 16px; border-bottom: 1px solid #d0dbea; }
.collection-dialog h2 { margin: 3px 0 0; color: #263b59; font-size: 17px; }
.collection-dialog-content { max-height: calc(100vh - 120px); overflow: auto; padding: 14px 16px; }
.collection-create-form { display: flex; gap: 8px; }
.collection-create-form input, .collection-selection select { min-width: 0; padding: 9px 10px; border: 1px solid #d0dbea; border-radius: 5px; background: #fff; color: #26354e; font: inherit; font-size: 11px; }
.collection-create-form input { flex: 1; }
.collection-create-form button { padding: 8px 11px; border: 1px solid #175eb7; border-radius: 5px; background: #1766d3; color: #fff; cursor: pointer; font-size: 10px; font-weight: 900; }
.collection-selection { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 8px; margin-top: 14px; }
.collection-selection label { color: #52657e; font-size: 10px; font-weight: 900; }
.collection-delete-button, .collection-remove-button { padding: 7px 9px; border: 1px solid #e0c6c6; border-radius: 5px; background: #fff8f8; color: #a74b4b; cursor: pointer; font-size: 9px; font-weight: 900; }
.collection-dialog .mission-claim-button { margin-top: 12px; }
.collection-games { display: grid; gap: 7px; margin: 12px 0 0; padding: 0; list-style: none; }
.collection-game-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 11px; border: 1px solid #e0e7f1; border-radius: 6px; background: #f8faff; }
.collection-game-item a { overflow: hidden; color: #315378; font-size: 11px; font-weight: 900; text-overflow: ellipsis; white-space: nowrap; }
.collection-empty { padding: 12px; color: #718097; font-size: 11px; }
.collection-dialog button:disabled { cursor: wait; opacity: .6; }
.weekly-summary-dialog { width: min(620px, calc(100vw - 28px)); max-width: none; max-height: min(760px, calc(100vh - 32px)); padding: 0; overflow: auto; border: 2px solid #b9c9df; border-radius: 9px; background: #fff; color: #26354e; box-shadow: 0 20px 80px #10234455; }
.weekly-summary-dialog::backdrop { background: #15243b88; backdrop-filter: blur(2px); }
.weekly-summary-dialog > .dialog-top { position: sticky; top: 0; padding: 14px 18px; border-bottom: 1px solid #d0dbea; background: #fff; }
.weekly-summary-dialog h2 { margin: 3px 0 0; color: #263b59; font-size: 19px; }
.weekly-summary-content { display: grid; gap: 16px; padding: 18px; }
.weekly-summary-content section { display: grid; gap: 8px; }
.weekly-summary-content h3 { margin: 0; color: #304766; font-size: 13px; }
.weekly-summary-content p { margin: 0; color: #52657e; font-size: 11px; line-height: 1.6; }
.weekly-summary-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.weekly-summary-stat { display: grid; gap: 4px; padding: 12px 8px; border: 1px solid #dce5f1; border-radius: 7px; background: #f5f8fd; text-align: center; }
.weekly-summary-stat strong { color: #1766d3; font-size: 17px; }
.weekly-summary-stat span { color: #77869d; font-size: 9px; font-weight: 800; }
.weekly-summary-content ul { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.weekly-summary-content li { padding: 8px 10px; border: 1px solid #e0e7f1; border-radius: 6px; background: #f8faff; color: #405573; font-size: 11px; }
.weekly-summary-content li a { color: #315378; font-weight: 900; }
.weekly-summary-content .account-submit { margin: 0; }

.catalog {
  max-width: 1200px;
  margin: 22px auto 0;
  padding: 33px 30px 54px;
  border: 1px solid #d5deed;
  border-radius: 10px 10px 0 0;
  background: #fff;
  box-shadow: 0 3px 0 #dce5f2;
}

.section-heading { align-items: end; margin-bottom: 22px; }
.section-eyebrow { color: #7285a5; font-size: 8px; }
.section-heading h2 {
  color: #253854;
  font-family: var(--sans);
  font-size: 30px;
  font-weight: 1000;
  letter-spacing: -1.2px;
}
.section-heading h2 span { color: #ed6a48; }
.catalog-count { color: #73819a; font-size: 12px; font-weight: 800; }
.catalog-count > span:first-child { color: #1766d3; }
.count-star { color: #ee704c; }
.catalog-layout { grid-template-columns: 196px minmax(0, 1fr); gap: 24px; }
.sidebar { border-right: 1px solid #e0e6f0; padding-right: 17px; }
.filter-title { color: #71819b; font-family: var(--sans); font-size: 10px; font-weight: 1000; letter-spacing: .8px; }
.category-list { gap: 5px; }
.category-button {
  border: 1px solid transparent;
  border-radius: 6px;
  color: #556780;
  font-size: 12px;
  font-weight: 800;
}
.category-button:hover { border-color: #dbe5f4; background: #f3f7fd; color: #1766d3; }
.category-button.active { border-color: #c8dafa; background: #eaf2ff; color: #135bbd; }
.category-icon, .category-button.active .category-icon { color: #5385cb; }
.category-count { color: #8794a9; font-family: var(--sans); font-size: 11px; font-weight: 800; }
.random-game-button { border-color: #b8d0f4; background: #eaf2ff; color: #135bbd; font-weight: 900; }
.random-game-button:hover { border-color: #8eb3ef; background: #dceaff; color: #0c4ca8; }
.filter-divider { border-color: #e0e6f0; }
.tag-button {
  border: 1px solid #d8e1ef;
  border-radius: 5px;
  background: #f4f7fc;
  color: #5c6e87;
  font-size: 10px;
  font-weight: 800;
}
.tag-button:hover, .tag-button.active { border-color: #f1bd42; background: #fff5d7; color: #956814; }
.sidebar-note { border-color: #f0dda0; border-radius: 7px; background: #fff9e6; color: #dc9e18; }
.sidebar-note p { color: #7d7359; font-size: 11px; }
.sidebar-note strong { color: #60543a; }

.toolbar { gap: 9px; margin-bottom: 10px; }
.search-box {
  height: 41px;
  border: 1px solid #d2ddeb;
  border-radius: 6px;
  background: #f8faff;
  box-shadow: inset 0 1px 2px #2538540b;
}
.search-box:focus-within { border-color: #5590e6; box-shadow: 0 0 0 3px #1766d316; }
.search-icon { border-color: #7790b2; }
.search-icon::after { background: #7790b2; }
.search-box input { color: #2e405b; font-size: 12px; font-weight: 700; }
.search-box input::placeholder { color: #8b9ab0; }
.search-box kbd { border-color: #d7dfeb; background: white; color: #78869c; }
.sort-control select {
  height: 41px;
  border: 1px solid #d2ddeb;
  border-radius: 6px;
  background-color: #f8faff;
  color: #50617a;
  font-size: 11px;
  font-weight: 800;
}
.favorites-toggle {
  height: 41px;
  padding: 0 11px;
  border: 1px solid #ead3dc;
  border-radius: 6px;
  background: #fff4f7;
  color: #aa526a;
  cursor: pointer;
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}
.favorites-toggle:hover, .favorites-toggle[aria-pressed="true"] { border-color: #e48da4; background: #ffe3eb; color: #a33254; }
.favorites-toggle span { margin-right: 4px; }
.active-filters { margin-bottom: 10px; }
.active-filter { border-color: #efcf68; border-radius: 4px; background: #fff5d7; color: #876117; font-size: 10px; font-weight: 800; }
.active-filter span { color: #a17d2e; }

.games-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; }
.catalog-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 20px;
  padding: 12px 14px;
  border: 1px solid #d6dfec;
  border-radius: 7px;
  background: #f8faff;
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
}
.catalog-pagination label,
.pagination-controls { display: flex; align-items: center; gap: 8px; }
.catalog-pagination select,
.pagination-controls button {
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid #cbd7e8;
  border-radius: 5px;
  background: #fff;
  color: #405573;
  font: inherit;
}
.pagination-controls button { cursor: pointer; }
.pagination-controls button:hover:not(:disabled) { border-color: #7da8e4; background: #eef5ff; }
.pagination-controls button:disabled { cursor: not-allowed; opacity: .48; }
.pagination-controls span { min-width: 90px; text-align: center; }
.game-card {
  border: 1px solid #d6dfec;
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 2px 0 #d8e1ee;
}
.game-card:hover { transform: translateY(-3px); border-color: #8db4ee; box-shadow: 0 5px 0 #c7d9f2; }
.card-art { height: 142px; background: var(--art-bg, #dce9f7); }
.card-art::before, .card-art::after { display: none; }
.card-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: auto;
  transition: transform .25s ease;
}
.game-card:hover .card-image { transform: scale(1.05); }
.card-art::after { content: ""; display: block; position: absolute; inset: auto 0 0; z-index: 0; width: auto; height: 52px; border: 0; border-radius: 0; background: linear-gradient(transparent, #15243b6e); }
.card-art-symbol { display: none; }
.card-art.image-failed .card-art-symbol {
  display: grid;
  place-items: center;
  color: var(--art-accent, #1766d3);
  font-family: var(--sans);
  font-size: 50px;
  text-shadow: 2px 3px 0 #ffffffa8;
}
.card-number { z-index: 1; top: 8px; left: 8px; color: white; font-family: var(--sans); font-size: 9px; font-weight: 1000; text-shadow: 0 1px 3px #101a2d; }
.card-badge {
  position: static;
  z-index: 1;
  border: 1px solid #fff9;
  border-radius: 4px;
  background: #fff2;
  color: white;
  font-family: var(--sans);
  font-size: 8px;
  font-weight: 1000;
  text-shadow: 0 1px 3px #101a2d;
}
.card-body { padding: 10px 10px 9px; }
.card-title-row { align-items: start; }
.card-title { color: #2a3c57; font-family: var(--sans); font-size: 14px; font-weight: 1000; letter-spacing: 0; }
.game-detail-link { color: inherit; text-decoration: none; }
.game-detail-link:hover { color: #1766d3; text-decoration: underline; }
.card-category { border-radius: 4px; background: #eaf2ff; color: #4774b1; font-size: 8px; font-weight: 900; }
.card-description { height: 32px; color: #748198; font-size: 10px; font-weight: 600; }
.card-footer { border-color: #e6ebf3; padding-top: 8px; }
.card-author { color: #8390a4; font-size: 9px; font-weight: 700; }
.card-author strong { color: #556780; font-weight: 900; }
.card-engagement {
  position: absolute;
  z-index: 2;
  top: 8px;
  right: 8px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.play-button {
  border: 1px solid #1254ae;
  border-radius: 5px;
  background: #1766d3;
  box-shadow: 0 2px 0 #104b9e;
  color: #fff;
  font-size: 9px;
  font-weight: 1000;
}
.play-button:hover { background: #3281ec; }
.card-like-button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 25px;
  padding: 4px 7px;
  border: 1px solid #ffffffc9;
  border-radius: 5px;
  background: #ffffffed;
  box-shadow: 0 2px 0 #28364d35;
  color: #6d788a;
  cursor: pointer;
  font-size: 10px;
  font-weight: 1000;
}
.card-like-button:hover, .card-like-button[aria-pressed="true"] { border-color: #ffd2dc; background: #fff0f3; color: #da3e63; }
.card-like-heart { color: #e24c69; font-size: 12px; }
.card-play-count { display: none; }
.card-footer-actions { display: flex; align-items: center; gap: 6px; }
.favorite-button {
  width: 27px;
  height: 27px;
  border: 1px solid #d5dfed;
  border-radius: 5px;
  background: #f7f9fd;
  color: #7d8ba0;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
}
.favorite-button:hover, .favorite-button[aria-pressed="true"] { border-color: #efcf68; background: #fff6d8; color: #b07814; }
.loading-state, .error-state, .empty-state { color: #71809a; }
.loading-state span { color: #ee704c; }
.error-state { color: #b94a40; }
.empty-state h3 { color: #2a3c57; font-family: var(--sans); font-weight: 1000; }
.clear-filters { border: 1px solid #d1a42b; border-radius: 5px; background: #ffcf38; color: #574414; font-weight: 900; }

.footer {
  min-height: 70px;
  padding: 12px max(calc((100vw - 1200px) / 2), 5.5vw);
  border-top: 4px solid #ffcf38;
  background: #1766d3;
  color: #d9e8ff;
  font-size: 11px;
  font-weight: 800;
}
.footer-status { color: #e1edff; }
.footer-status i { background: #8bea73; box-shadow: 0 0 0 3px #ffffff25; }
.footer-info-links { display: flex; flex-wrap: wrap; gap: 7px 12px; }
.footer-info-links a, .info-footer nav a { color: #e1edff; font-size: 10px; font-weight: 800; text-decoration: none; }
.footer-info-links a:hover, .info-footer nav a:hover { color: #ffcf38; text-decoration: underline; }
.info-topbar { justify-content: space-between; }
.info-page { width: min(940px, calc(100% - 32px)); min-height: 65vh; margin: 0 auto; padding: 28px 0 52px; }
.info-page > .seo-breadcrumb { width: fit-content; margin-bottom: 15px; padding: 8px 12px; border: 1px solid #dbe4f1; border-radius: 999px; background: #ffffffd9; font-size: 11px; }
.info-article { position: relative; overflow: hidden; padding: 0 clamp(20px, 5.5vw, 58px) 40px; border: 1px solid #d5deed; border-radius: 14px; background: #fff; box-shadow: 0 5px 0 #dce5f2, 0 18px 45px #29466d0d; color: #52627a; line-height: 1.8; }
.info-article::before { position: absolute; inset: 0 0 auto; height: 7px; background: linear-gradient(90deg, #1766d3 0 72%, #ffcf38 72%); content: ""; }
.info-article > .eyebrow { margin: 34px 0 12px; color: #6380a7; font-size: 9px; letter-spacing: 1.3px; }
.info-article h1 { max-width: 760px; margin: 0 0 14px; color: #263b59; font-size: clamp(32px, 5vw, 46px); font-weight: 1000; letter-spacing: -1.6px; line-height: 1.12; }
.info-article h2 { display: flex; align-items: flex-start; gap: 11px; margin: 34px 0 9px; color: #263b59; font-size: 19px; font-weight: 1000; letter-spacing: -.3px; line-height: 1.4; }
.info-article h2::before { flex: 0 0 4px; width: 4px; min-height: 25px; margin-top: 2px; border-radius: 4px; background: #ffcf38; content: ""; }
.info-article p { margin: 11px 0; }
.info-article ul { display: grid; gap: 10px; margin: 16px 0 20px; padding: 0; list-style: none; }
.info-article li { position: relative; margin: 0; padding: 12px 15px 12px 39px; border: 1px solid #e3eaf4; border-radius: 8px; background: #f8faff; }
.info-article li::before { position: absolute; top: 12px; left: 15px; color: #1766d3; font-weight: 1000; content: "✓"; }
.info-article a { color: #175eb7; font-weight: 900; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.info-article a:hover { color: #0d438e; }
.info-lead { max-width: 690px; margin: 0 0 27px !important; color: #718097; font-size: 16px; line-height: 1.65; }
.info-content { max-width: 750px; }
.info-content > p:first-child { margin-top: 0; }
.info-content > p:first-child:has(> strong:first-child) { padding: 15px 17px; border: 1px solid #f0dfab; border-radius: 8px; background: #fff9e8; color: #70591d; font-size: 13px; line-height: 1.7; }
.info-content > p:first-child:has(> strong:first-child) strong { color: #805f0d; }
.info-content code { padding: 3px 7px; border: 1px solid #dbe5f3; border-radius: 5px; background: #edf3fc; color: #304969; font-size: .92em; }
.info-page-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 9px; margin: 20px 0; }
.info-page-links a { display: flex; align-items: center; min-height: 46px; gap: 9px; padding: 9px 13px; border: 1px solid #d5deed; border-radius: 8px; background: #fff; box-shadow: 0 2px 0 #dce5f2; color: #3d5575; font-size: 11px; font-weight: 900; text-decoration: none; transition: transform .16s ease, border-color .16s ease, background .16s ease; }
.info-page-links a::before { display: grid; flex: 0 0 24px; width: 24px; height: 24px; place-items: center; border-radius: 6px; background: #eaf2ff; color: #1766d3; content: "↗"; }
.info-page-links a:hover { transform: translateY(-2px); border-color: #8db4ee; background: #f8fbff; }
.info-home-link { display: inline-flex; align-items: center; min-height: 40px; gap: 8px; padding: 0 15px; border-radius: 6px; text-decoration: none; }
.info-home-link::before { content: "←"; }
.info-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; }
.info-footer nav { display: flex; flex-wrap: wrap; gap: 8px 13px; }
.newsletter-signup {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 390px);
  align-items: center;
  gap: 24px;
  max-width: 1200px;
  margin: 22px auto;
  padding: 24px 30px;
  border: 1px solid #d5deed;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 3px 0 #dce5f2;
}
.newsletter-signup h2 { margin: 5px 0; color: #263b59; font-size: 22px; font-weight: 1000; }
.newsletter-signup > div > p:last-child { margin: 0; color: #718097; font-size: 12px; line-height: 1.6; }
.newsletter-form { display: grid; gap: 9px; }
.newsletter-form > input {
  min-width: 0;
  height: 39px;
  padding: 0 10px;
  border: 1px solid #d0dbea;
  border-radius: 5px;
  background: #f8faff;
  color: #26354e;
  font-size: 13px;
}
.newsletter-consent { display: flex; align-items: center; gap: 7px; color: #52657e; font-size: 11px; font-weight: 700; }
.newsletter-consent input { accent-color: #1766d3; }
.newsletter-form .field-hint { margin: 0; line-height: 1.5; }
.email-action-page { display: grid; justify-items: center; gap: 24px; min-height: 75vh; padding: 42px 18px; }
.email-action-card { width: min(460px, 100%); padding: 24px; border: 1px solid #d5deed; border-radius: 10px; background: #fff; box-shadow: 0 4px 0 #dce5f2; }
.email-action-card h1 { margin: 0 0 10px; color: #263b59; font-size: 24px; }
.email-action-card > p { color: #718097; font-size: 13px; line-height: 1.6; }
.email-action-card form[hidden] { display: none; }
.email-action-home { display: inline-block; margin-top: 16px; color: #175eb7; font-size: 12px; font-weight: 900; }

.seo-guides {
  max-width: 1200px;
  margin: 0 auto;
  padding: 38px 5.5vw 48px;
  color: #52627a;
  line-height: 1.7;
}
.seo-guides h2 { margin: 8px 0 12px; color: #263b59; }
.seo-category-links { display: flex; flex-wrap: wrap; gap: 10px 20px; margin-top: 20px; }
.seo-articles-promo { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 28px; padding: 22px; border: 1px solid #dfe6f0; border-radius: 12px; background: #fff; }
.seo-articles-promo h2 { margin: 4px 0; }
.seo-articles-promo p:not(.eyebrow) { margin: 0; }
.seo-category-links a, .seo-main a:not(.brand):not(.hero-button) { color: #175eb7; font-weight: 800; }
.seo-main { max-width: 1000px; min-height: 65vh; margin: 0 auto; padding: 36px 24px 64px; color: #36455a; line-height: 1.7; }
.seo-breadcrumb { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 24px; color: #718097; font-size: 13px; }
.seo-breadcrumb a { color: #175eb7; }
.seo-game, .seo-category-header { max-width: 820px; }
.seo-game h1, .seo-category-header h1, .seo-main > h1 { margin: 10px 0 16px; color: #263b59; font-size: clamp(32px, 5vw, 48px); line-height: 1.1; }
.seo-game h2 { margin-top: 30px; color: #263b59; }
.seo-lead { color: #52627a; font-size: 19px; line-height: 1.6; }
.seo-game-image { display: block; width: min(100%, 720px); max-height: 405px; margin-bottom: 24px; object-fit: cover; border-radius: 12px; }
.seo-play-button { margin: 12px 0 20px; color: #fff !important; text-decoration: none !important; }
.seo-game-facts { display: flex; flex-wrap: wrap; gap: 12px 28px; margin: 14px 0 24px; }
.seo-game-facts div { min-width: 130px; }
.seo-game-facts dt { color: #718097; font-size: 12px; font-weight: 800; text-transform: uppercase; }
.seo-game-facts dd { margin: 2px 0 0; color: #263b59; font-weight: 800; }
.seo-tags { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; list-style: none; }
.seo-tags li { padding: 4px 10px; border-radius: 20px; background: #e8f0fb; color: #345372; font-size: 13px; }
.seo-game-list { display: grid; gap: 14px; padding: 0; list-style: none; }
.seo-list-item { display: flex; gap: 18px; padding: 16px; border: 1px solid #dfe6f0; border-radius: 12px; background: #fff; }
.game-recommendations { max-width: 820px; margin-top: 36px; }
.game-recommendations h2 { margin: 0 0 6px; color: #263b59; }
.game-recommendations > p { margin: 0 0 14px; color: #718097; }
.recommendation-game h3 { margin: 0; font-size: 17px; line-height: 1.4; }
.recommendation-game h3 a { color: #175eb7; text-decoration: none; }
.recommendation-game h3 a:hover { text-decoration: underline; }
.seo-list-item img { flex: 0 0 96px; width: 96px; height: 64px; object-fit: cover; border-radius: 7px; }
.seo-list-item h2 { margin: 0; font-size: 19px; line-height: 1.4; }
.seo-list-item p { margin: 5px 0; }
.seo-list-item span { color: #718097; font-size: 12px; font-weight: 700; }
.seo-back-link { margin-top: 30px; }
.seo-article { max-width: 780px; margin: 0 auto; }
.article-header { margin-bottom: 32px; }
.article-header h1 { margin: 10px 0 16px; color: #263b59; font-size: clamp(32px, 5vw, 48px); line-height: 1.12; }
.article-header time { color: #718097; font-size: 13px; }
.article-section { margin: 28px 0; }
.article-section h2, .article-related h2 { margin: 0 0 10px; color: #263b59; font-size: 24px; line-height: 1.25; }
.article-section p { margin: 0 0 14px; }
.article-section ul { padding-left: 24px; }
.article-section a { color: #175eb7; font-weight: 800; }
.article-catalog-cta { margin: 32px 0; }
.article-related { margin-top: 36px; padding: 22px; border: 1px solid #dfe6f0; border-radius: 12px; background: #fff; }
.article-related ul { display: grid; gap: 10px; margin-bottom: 0; padding-left: 20px; }
.article-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding: 0; list-style: none; }
.article-card { display: flex; flex-direction: column; min-height: 245px; padding: 22px; border: 1px solid #dfe6f0; border-radius: 12px; background: #fff; }
.article-card h2 { margin: 8px 0; font-size: 21px; line-height: 1.3; }
.article-card > p:not(.eyebrow) { margin: 0 0 18px; }
.article-card .article-read-more { margin-top: auto; }
.player-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; padding: 0; list-style: none; }
.player-card { display: flex; align-items: flex-start; gap: 14px; padding: 18px; border: 1px solid #dfe6f0; border-radius: 12px; background: #fff; }
.player-card h2 { margin: 0 0 5px; font-size: 19px; }
.player-card-content { min-width: 0; }
.player-card p { margin: 0 0 9px; color: #718097; font-size: 13px; }
.player-avatar { position: relative; display: grid; flex: 0 0 42px; width: 42px; height: 42px; place-items: center; overflow: hidden; isolation: isolate; border: 2px solid #fff; border-radius: 50%; background: var(--avatar-bg, #1766d3); box-shadow: 0 0 0 1px #bfd0e8; color: #fff; font-size: 18px; font-weight: 1000; }
.avatar-shape-squircle { border-radius: 13px; }
.avatar-shape-hexagon { border-radius: 7px; clip-path: polygon(25% 4%, 75% 4%, 100% 50%, 75% 96%, 25% 96%, 0 50%); }
.avatar-shape-diamond { border-radius: 8px; clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }
.avatar-orbit { position: absolute; z-index: -1; width: 68%; height: 68%; border: 2px solid var(--avatar-accent, #ffd166); border-radius: 50%; opacity: .7; transform: rotate(-32deg) scaleX(1.35); }
.avatar-emoji { filter: drop-shadow(0 1px 1px #14233a66); line-height: 1; }
.player-avatar-large { flex-basis: 64px; width: 64px; height: 64px; font-size: 27px; }
.profile-avatar-settings { margin: 4px 0 18px; padding: 14px; border: 1px solid #d0dbea; border-radius: 7px; background: #f6f9fe; }
.profile-avatar-settings h3 { margin: 0 0 4px; color: #263b59; font-size: 13px; }
.profile-avatar-settings p { margin: 7px 0; }
.avatar-options { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 12px 0; }
.avatar-option { display: grid; min-width: 0; justify-items: center; gap: 5px; padding: 8px 4px; border: 1px solid #d0dbea; border-radius: 7px; background: #fff; color: #3c506d; cursor: pointer; font: inherit; }
.avatar-option .player-avatar { flex-basis: 42px; }
.avatar-option-label { overflow: hidden; max-width: 100%; font-size: 11px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.avatar-option:hover, .avatar-option:focus-visible { border-color: #1766d3; outline: 2px solid #1766d333; }
.avatar-option.selected { border-color: #1766d3; background: #edf4ff; box-shadow: inset 0 0 0 1px #1766d3; }
.avatar-option:disabled { cursor: wait; opacity: .65; }
.player-profile-header { display: flex; align-items: center; gap: 18px; margin: 24px 0 30px; }
.player-profile-header h1 { margin: 4px 0; color: #263b59; font-size: clamp(32px, 5vw, 48px); line-height: 1.1; }
.player-profile-title { display: inline-flex; margin-top: 5px; padding: 5px 10px; border: 1px solid #d6bd65; border-radius: 999px; background: #fff6d8; color: #785914; font-size: 11px; font-weight: 1000; letter-spacing: .03em; }
.player-section-title { margin: 28px 0 14px; color: #263b59; font-size: 24px; }
.public-profile-stats { justify-content: flex-start; }
.public-profile-stats > div { min-width: 135px; }
.public-most-played .most-played-list li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
.public-most-played .most-played-list li span { color: #718097; }
.player-pagination { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 24px; }
.player-pagination a, .article-read-more { color: #175eb7; font-weight: 900; }
.player-empty { color: #718097; }
.profile-email-settings { margin: 4px 0 18px; padding: 14px; border: 1px solid #d0dbea; border-radius: 7px; background: #f6f9fe; }
.profile-email-settings h3 { margin: 0 0 8px; color: #263b59; font-size: 13px; }
.profile-email-settings p { margin: 7px 0; }
.profile-email-settings .account-field { margin: 9px 0; }
.profile-visibility { margin: 4px 0 18px; padding: 14px; border: 1px solid #d0dbea; border-radius: 7px; background: #f6f9fe; }
.profile-visibility h3 { margin: 0 0 8px; color: #263b59; font-size: 13px; }
.profile-visibility label { display: flex; align-items: center; gap: 8px; color: #3c506d; font-size: 12px; font-weight: 900; }
.profile-visibility input { accent-color: #1766d3; }
.profile-visibility p { margin: 7px 0; }
.profile-visibility a { font-size: 12px; }
.seo-footer a { color: #fff !important; }
.seo-game-frame-wrap { width: 100%; aspect-ratio: 16 / 9; margin: 22px 0 0; overflow: hidden; border: 2px solid #b9c9df; border-radius: 9px; background: #17243b; box-shadow: 0 5px 16px #10234418; }
.seo-game-frame { display: block; width: 100%; height: 100%; border: 0; }
.seo-game-frame-fallback { margin: 8px 0 20px; color: #718097; font-size: 12px; }
.seo-game-frame-fallback a { color: #175eb7; font-weight: 900; }
.ad-slot-shell { display: grid; width: min(1120px, calc(100% - 32px)); min-height: 100px; gap: 5px; margin: 22px auto; padding: 8px 0; color: #8894a6; }
.ad-slot-shell[hidden] { display: none; }
.ad-slot-label { color: #8a95a6; font-size: 9px; font-weight: 700; text-align: center; }
.ad-slot-shell .adsbygoogle { width: 100%; min-height: 90px; overflow: hidden; }
.seo-main .ad-slot-shell { width: min(820px, 100%); margin: 24px 0; }
.seo-main .seo-game + .ad-slot-shell { width: min(820px, 100%); }
@media (max-width: 600px) {
  .seo-guides { padding: 30px 18px 38px; }
  .seo-main { padding: 24px 18px 44px; }
  .seo-lead { font-size: 17px; }
  .seo-list-item { gap: 12px; padding: 12px; }
  .seo-list-item img { flex-basis: 76px; width: 76px; height: 60px; }
  .seo-articles-promo { align-items: flex-start; flex-direction: column; }
  .article-grid { grid-template-columns: 1fr; }
  .article-section h2, .article-related h2 { font-size: 21px; }
  .player-list { grid-template-columns: 1fr; }
  .avatar-options { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .player-card { padding: 14px; }
  .player-pagination { flex-wrap: wrap; }
}

.game-dialog { width: min(1200px, calc(100vw - 32px)); max-width: none; max-height: calc(100vh - 32px); overflow: auto; border: 2px solid #b9c9df; border-radius: 9px; background: #fff; color: #26354e; box-shadow: 0 20px 80px #10234455; }
.game-dialog::backdrop { background: #15243bc2; backdrop-filter: blur(3px); }
.dialog-kicker { color: #1766d3; font-size: 8px; }
.dialog-top h2 { font-family: var(--sans); font-size: 18px; font-weight: 1000; }
.dialog-close { border: 1px solid #d0dbea; background: #f1f5fb; color: #52657e; }
.game-stage { display: grid; grid-template-columns: minmax(0, 1fr) 250px; align-items: stretch; }
.game-frame-wrap { position: relative; min-width: 0; aspect-ratio: 16 / 9; background: #17243b; }
.game-frame-wrap iframe { display: block; width: 100%; height: 100%; border: 0; }
.game-fullscreen-button { position: absolute; z-index: 1; right: 10px; bottom: 10px; padding: 8px 11px; border: 1px solid #ffffff80; border-radius: 5px; background: #15243bd9; color: #fff; font-size: 11px; font-weight: 900; cursor: pointer; transition: opacity .18s ease, visibility .18s ease; }
.game-fullscreen-button:hover { background: #1766d3; }
.game-frame-wrap:fullscreen { width: 100vw; height: 100vh; height: 100dvh; aspect-ratio: auto; }
.game-frame-wrap:fullscreen iframe { width: 100%; height: 100%; }
@media (hover: none) and (pointer: coarse) {
  .game-fullscreen-button { right: auto; left: 10px; opacity: 0; visibility: hidden; pointer-events: none; }
  .game-frame-wrap.fullscreen-control-visible .game-fullscreen-button { opacity: 1; visibility: visible; pointer-events: auto; }
}
.game-leaderboard { display: flex; min-width: 0; flex-direction: column; padding: 14px; border-left: 1px solid #d0dbea; background: #f7f9fd; }
.game-report { display: flex; justify-content: flex-end; padding: 10px 14px; border-top: 1px solid #d0dbea; background: #fff; }
.game-report-open { padding: 7px 12px; border: 1px solid #d0dbea; border-radius: 5px; background: #f1f5fb; color: #52657e; font-size: 11px; font-weight: 900; cursor: pointer; }
.game-report-open:hover { border-color: #175eb7; color: #175eb7; }
.report-dialog { width: min(440px, calc(100vw - 32px)); max-width: none; padding: 18px; border: 2px solid #b9c9df; border-radius: 9px; background: #fff; color: #26354e; box-shadow: 0 20px 80px #10234455; }
.report-dialog::backdrop { background: #15243bc2; backdrop-filter: blur(3px); }
.report-dialog .dialog-top { margin-bottom: 12px; }
.report-dialog .dialog-top h2 { margin: 3px 0 0; color: #263b59; font-family: var(--sans); font-size: 18px; font-weight: 1000; }
.game-report-count, .game-report-status { margin: 8px 0; color: #718097; font-size: 11px; }
.game-report-status { min-height: 1.5em; }
.game-report-form { display: grid; gap: 8px; margin-top: 14px; }
.game-report-form label { color: #52657e; font-size: 11px; font-weight: 800; }
.game-report-form select { width: 100%; padding: 9px 10px; border: 1px solid #d0dbea; border-radius: 5px; background: #fff; color: #26354e; }
.game-report-form button { justify-self: end; padding: 8px 14px; border: 1px solid #175eb7; border-radius: 5px; background: #1766d3; color: #fff; font-size: 11px; font-weight: 900; cursor: pointer; }
.game-report-form button:disabled { opacity: .6; cursor: wait; }
.seo-game-report { display: flex; justify-content: flex-end; margin: 20px 0; }
.seo-report-dialog { margin: auto; }
.seo-game-report-auth { margin: 10px 0 0; color: #718097; font-size: 11px; }
.seo-game-report-auth a { color: #175eb7; font-weight: 900; }
.game-dialog-recommendations { padding: 12px 14px 14px; border-top: 1px solid #d0dbea; background: #f7f9fd; }
.game-dialog-recommendations > h3 { margin: 0 0 9px; color: #263b59; font-size: 15px; }
.game-similar-note { margin: 0; color: #718097; font-size: 11px; }
.game-similar-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.game-similar-grid .game-card { min-width: 0; }
.game-similar-grid .card-art { height: 100px; }
.game-similar-grid .card-description { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.game-similar-grid .card-footer-actions .play-button { padding: 6px 9px; }
.leaderboard-heading .dialog-kicker { display: block; color: #718097; }
.leaderboard-heading h3 { margin: 4px 0 12px; color: #263b59; font-size: 19px; }
.leaderboard-list { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; }
.leaderboard-entry { display: grid; grid-template-columns: 24px minmax(0, 1fr); align-items: center; gap: 2px 8px; padding: 7px 8px; border: 1px solid #dfe6f0; border-radius: 6px; background: #fff; }
.leaderboard-rank { grid-row: span 2; display: grid; width: 23px; height: 23px; place-items: center; border-radius: 50%; background: #e8eef8; color: #52657e; font-size: 11px; font-weight: 1000; }
.leaderboard-entry-top-1 .leaderboard-rank { background: #ffe8a6; color: #775300; }
.leaderboard-entry-top-2 .leaderboard-rank { background: #e0e6ef; color: #48566b; }
.leaderboard-entry-top-3 .leaderboard-rank { background: #f2dac8; color: #79513b; }
.leaderboard-player { overflow: hidden; color: #175eb7; font-size: 12px; font-weight: 900; text-overflow: ellipsis; white-space: nowrap; }
.leaderboard-time { color: #718097; font-size: 10px; font-weight: 800; }
.leaderboard-note { margin: auto 0 0; padding-top: 12px; color: #8491a5; font-size: 9px; line-height: 1.5; }
.dialog-hint { color: #748198; }
.dialog-hint a { color: #175eb7; font-weight: 900; }
@media (max-width: 850px) {
  .game-stage { grid-template-columns: minmax(0, 1fr); }
  .game-leaderboard { border-top: 1px solid #d0dbea; border-left: 0; }
  .leaderboard-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .game-similar-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .newsletter-signup { margin-left: 2vw; margin-right: 2vw; }
}
@media (max-width: 520px) {
  .leaderboard-list { grid-template-columns: minmax(0, 1fr); }
  .game-leaderboard { padding: 12px; }
  .game-similar-grid { grid-template-columns: minmax(0, 1fr); }
  .recommendation-game { gap: 12px; padding: 12px; }
  .seo-list-item img { flex-basis: 76px; width: 76px; height: 60px; }
  .info-page { width: calc(100% - 20px); padding-top: 18px; }
  .info-article { padding: 20px 16px; }
  .info-footer { align-items: flex-start; flex-direction: column; gap: 10px; }
  .info-footer nav { gap: 8px 12px; }
}
@media (max-width: 650px) {
  .newsletter-signup { grid-template-columns: minmax(0, 1fr); gap: 14px; margin: 14px 10px; padding: 20px 14px; }
}

.admin-link { color: #175eb7; font-weight: 900; text-decoration: none; }
.admin-link[hidden] { display: none; }
.admin-page { min-height: 100vh; background: #f3f6fb; }
.admin-main { width: min(1120px, calc(100% - 32px)); margin: 34px auto 60px; }
.admin-header { margin-bottom: 24px; }
.admin-header h1 { margin: 6px 0; color: #263b59; font-size: clamp(28px, 5vw, 42px); }
.admin-header h1 span { color: #1766d3; }
.admin-header > p:last-child { color: #718097; }
.admin-status { padding: 10px 12px; border: 1px solid #cfe0f8; border-radius: 6px; background: #eaf2ff; color: #175eb7; font-size: 13px; }
.admin-status.error { border-color: #f0c4c4; background: #fff0f0; color: #a52e2e; }
.admin-section { margin: 22px 0; padding: 18px; border: 1px solid #d5deeb; border-radius: 9px; background: #fff; box-shadow: 0 5px 20px #1f3a5b0a; }
.admin-section-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 14px; }
.admin-section-heading h2 { margin: 0 0 4px; color: #263b59; font-size: 20px; }
.admin-section-heading p { margin: 0; color: #718097; font-size: 12px; }
.admin-section-heading label, .admin-user-form > label { display: grid; gap: 5px; color: #52657e; font-size: 11px; font-weight: 800; }
.admin-section-heading select, .admin-section-heading input, .admin-user-form input, .admin-user-form select { min-width: 170px; padding: 8px 10px; border: 1px solid #d0dbea; border-radius: 5px; background: #fff; color: #26354e; }
.admin-record-list { display: grid; gap: 10px; }
.admin-record { min-width: 0; padding: 13px; border: 1px solid #dfe6f0; border-radius: 7px; background: #fbfcfe; }
.admin-record-header { display: grid; grid-template-columns: minmax(150px, 1fr) auto auto; align-items: center; gap: 12px; }
.admin-record-title { min-width: 0; }
.admin-record-title h3 { margin: 0 0 4px; color: #263b59; font-size: 16px; overflow-wrap: anywhere; }
.admin-record-title p { margin: 0; color: #8390a3; font-size: 10px; overflow-wrap: anywhere; }
.admin-report-stats { color: #52657e; font-size: 11px; font-weight: 800; }
.admin-button, .admin-pagination button { padding: 8px 11px; border: 1px solid #b8cce8; border-radius: 5px; background: #edf4ff; color: #175eb7; font-size: 11px; font-weight: 900; cursor: pointer; }
.admin-button.block { border-color: #e8c1bd; background: #fff1ef; color: #a43c31; }
.admin-button.restore { border-color: #b7d9c2; background: #effaf2; color: #237342; }
.admin-button:disabled, .admin-pagination button:disabled { opacity: .5; cursor: not-allowed; }
.admin-report-list { display: grid; gap: 5px; margin: 10px 0 0; padding: 10px 0 0; border-top: 1px solid #e4e9f1; list-style: none; }
.admin-report-entry { color: #52657e; font-size: 11px; }
.admin-report-entry span { color: #8390a3; }
.admin-chat-report-meta { margin: 6px 0; color: #718097; font-size: 11px; overflow-wrap: anywhere; }
.admin-chat-report-message { margin: 10px 0; padding: 10px; border-left: 3px solid #d4dfef; background: #fff; color: #304766; font-size: 13px; overflow-wrap: anywhere; white-space: pre-wrap; }
.admin-chat-report-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.admin-user-form { display: grid; grid-template-columns: minmax(120px, 1fr) minmax(150px, 1fr) minmax(150px, 1fr) minmax(150px, 1fr) auto; align-items: end; gap: 10px; }
.admin-user-identity { display: grid; gap: 4px; min-width: 0; color: #263b59; overflow-wrap: anywhere; }
.admin-user-identity span { color: #8390a3; font-size: 10px; }
.admin-user-form input:disabled { background: #edf1f7; color: #75839a; }
.admin-empty { padding: 16px; color: #718097; text-align: center; }
.admin-pagination { display: flex; justify-content: center; align-items: center; gap: 12px; margin-top: 14px; color: #52657e; font-size: 12px; }
.admin-identity { color: #52657e; font-size: 12px; font-weight: 800; }
@media (max-width: 850px) {
  .admin-record-header { grid-template-columns: minmax(0, 1fr) auto; }
  .admin-report-stats { grid-column: 1; grid-row: 2; }
  .admin-record-header .admin-button { grid-column: 2; grid-row: 1 / span 2; }
  .admin-user-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .admin-main { width: min(100% - 20px, 1120px); margin-top: 20px; }
  .admin-section { padding: 12px; }
  .admin-section-heading { align-items: stretch; flex-direction: column; }
  .admin-section-heading select, .admin-section-heading input { min-width: 0; }
  .admin-record-header { grid-template-columns: minmax(0, 1fr); }
  .admin-report-stats, .admin-record-header .admin-button { grid-column: 1; grid-row: auto; }
  .admin-record-header .admin-button { justify-self: start; }
  .admin-user-form { grid-template-columns: minmax(0, 1fr); }
  .admin-user-form input, .admin-user-form select { min-width: 0; }
  .admin-pagination { gap: 7px; font-size: 10px; }
}

.account-dialog { width: min(440px, calc(100vw - 28px)); max-height: calc(100vh - 32px); overflow-y: auto; }
.account-content { padding: 0 18px 19px; }
.account-intro, .account-welcome { margin: 0 0 14px; color: #677790; font-size: 12px; line-height: 1.55; }
.account-welcome { font-size: 14px; }
.account-welcome strong { color: #1766d3; }
.account-field { display: grid; gap: 6px; margin: 13px 0; color: #3c506d; font-size: 11px; font-weight: 900; }
.account-field input {
  height: 39px;
  padding: 0 10px;
  border: 1px solid #d0dbea;
  border-radius: 5px;
  background: #f8faff;
  color: #26354e;
  font-size: 13px;
}
.account-field input:focus { border-color: #5590e6; outline: 2px solid #1766d322; }
.field-hint { color: #8491a5; font-size: 9px; font-weight: 600; }
.account-error { margin: 10px 0; color: #b73d48; font-size: 11px; font-weight: 800; }
.account-submit {
  width: 100%;
  min-height: 39px;
  border: 1px solid #1254ae;
  border-radius: 5px;
  background: #1766d3;
  box-shadow: 0 2px 0 #104b9e;
  color: #fff;
  cursor: pointer;
  font-size: 12px;
  font-weight: 1000;
}
.account-submit:hover { background: #3281ec; }
.account-submit:disabled { cursor: wait; opacity: .7; }
.account-mode-toggle { width: 100%; margin-top: 12px; border: 0; background: none; color: #1766d3; cursor: pointer; font-size: 11px; font-weight: 900; }
.profile-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin: 14px 0 10px; }
.profile-stats > div { display: grid; gap: 4px; padding: 9px 5px; border: 1px solid #dce5f1; border-radius: 6px; background: #f5f8fd; text-align: center; }
.profile-stats strong { color: #1766d3; font-size: 16px; }
.profile-stats span { color: #77869d; font-size: 9px; font-weight: 800; }
.profile-achievements-section { margin-top: 20px; }
.profile-achievements-section h3 { margin: 0 0 10px; color: #3c506d; font-size: 13px; }
.achievement-list, .public-achievement-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.achievement-card { display: grid; grid-template-columns: 32px 1fr auto; align-items: center; gap: 8px; padding: 9px; border: 1px solid #dce5f1; border-radius: 6px; background: #f5f8fd; color: #718099; }
.achievement-card.unlocked { border-color: #b8d5fa; background: #eff6ff; color: #405573; }
.achievement-icon { font-size: 21px; text-align: center; }
.achievement-details { display: grid; gap: 3px; min-width: 0; }
.achievement-details strong, .public-achievement-list strong { color: #405573; font-size: 10px; }
.achievement-details > span, .public-achievement-list li div > span { color: #77869d; font-size: 9px; line-height: 1.4; }
.achievement-card progress { grid-column: 2 / 3; width: 100%; height: 5px; accent-color: #1766d3; }
.achievement-progress { color: #77869d; font-size: 8px; font-weight: 800; white-space: nowrap; }
.public-achievement-list { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.public-achievement-list li { display: flex; align-items: center; gap: 10px; padding: 10px; border: 1px solid #dce5f1; border-radius: 6px; background: #f5f8fd; }
.public-achievement-list li > span { font-size: 22px; }
.public-achievement-list li div { display: grid; gap: 3px; }
.public-profile-stats { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); }
.account-footnote { color: #8591a4; font-size: 9px; line-height: 1.5; }
.most-played-title { margin: 15px 0 7px; color: #405574; font-size: 11px; font-weight: 1000; }
.most-played-list { display: grid; gap: 4px; margin: 0 0 14px; padding-left: 22px; color: #5e6f88; font-size: 10px; }
.most-played-list:empty::after { content: "Zagraj w coś, a pojawi się tu Twoja historia."; margin-left: -22px; color: #8a96a8; font-style: italic; }
.most-played-list li span { color: #8793a7; }
.site-toast { position: fixed; z-index: 20; right: 18px; bottom: 74px; max-width: min(360px, calc(100vw - 36px)); padding: 12px 15px; border: 1px solid #bacbe1; border-radius: 7px; background: #fff; box-shadow: 0 5px 20px #18305225; color: #354a68; font-size: 12px; font-weight: 800; }
.chat-launcher { position: fixed; z-index: 15; right: 18px; bottom: 18px; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 1px solid #1455ad; border-radius: 24px; background: #1766d3; box-shadow: 0 5px 18px #18305235; color: #fff; cursor: pointer; font-size: 12px; font-weight: 900; }
.chat-launcher:hover { background: #0e56bb; transform: translateY(-1px); }
.chat-launcher span { font-size: 17px; }
.chat-dialog { width: min(460px, calc(100vw - 28px)); max-width: none; max-height: min(680px, calc(100vh - 32px)); padding: 0; overflow: hidden; border: 2px solid #b9c9df; border-radius: 9px; background: #fff; color: #26354e; box-shadow: 0 20px 80px #10234455; }
.chat-dialog::backdrop { background: #15243b88; backdrop-filter: blur(2px); }
.chat-dialog > .dialog-top { padding: 14px 16px; border-bottom: 1px solid #d0dbea; }
.chat-dialog h2 { margin: 3px 0 0; color: #263b59; font-size: 17px; }
.chat-panel { display: grid; grid-template-rows: minmax(140px, 1fr) auto auto; min-height: 0; padding: 12px; }
.chat-messages { display: flex; min-height: 190px; max-height: 390px; flex-direction: column; gap: 8px; overflow-y: auto; margin: 0; padding: 2px 6px 10px 0; list-style: none; }
.chat-message { padding: 8px 10px; border: 1px solid #e0e7f1; border-radius: 7px; background: #f7f9fd; }
.chat-message-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.chat-message-author { color: #1766d3; font-size: 10px; font-weight: 900; text-decoration: none; }
.chat-message-author:hover { text-decoration: underline; }
.chat-message-time { color: #8995a8; font-size: 9px; }
.chat-message-text { margin: 4px 0 0; color: #354a68; font-size: 11px; line-height: 1.5; overflow-wrap: anywhere; white-space: pre-wrap; }
.chat-message-actions, .chat-reactions { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; }
.chat-message-actions { justify-content: space-between; margin-top: 7px; }
.chat-reaction, .chat-report-button { min-height: 24px; padding: 2px 6px; border: 1px solid #d7e0ed; border-radius: 5px; background: #fff; color: #52657e; cursor: pointer; font-size: 9px; }
.chat-reaction.active { border-color: #9dbbe7; background: #eaf2ff; color: #175eb7; }
.chat-report-button { margin-left: auto; color: #8d5360; }
.chat-reaction:disabled, .chat-report-button:disabled { opacity: .6; cursor: wait; }
.chat-status { min-height: 16px; margin: 3px 0; color: #8793a7; font-size: 10px; }
.chat-form { display: grid; gap: 7px; }
.chat-form textarea { width: 100%; min-height: 56px; resize: vertical; padding: 9px; border: 1px solid #cbd7e8; border-radius: 6px; background: #f8faff; color: #2e405b; font: inherit; font-size: 11px; }
.chat-form textarea:focus { border-color: #5590e6; outline: 2px solid #1766d322; }
.chat-form-footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.chat-auth-note { color: #77869d; font-size: 9px; line-height: 1.4; }
.chat-form button { min-height: 34px; padding: 0 15px; border: 0; border-radius: 5px; background: #1766d3; color: #fff; cursor: pointer; font-size: 10px; font-weight: 900; }
.chat-form button:hover:not(:disabled) { background: #0e56bb; }
.chat-form button:disabled { cursor: wait; opacity: .6; }
.game-chat-section { padding: 12px 14px; border-top: 1px solid #d0dbea; background: #fff; }
.game-chat-heading { margin-bottom: 6px; }
.game-chat-heading h3 { margin: 3px 0 0; color: #263b59; font-size: 14px; }
.game-chat-panel { padding: 0; }
.game-chat-panel .chat-messages { min-height: 100px; max-height: 220px; }
.game-chat-panel .chat-form textarea { min-height: 44px; }
.game-chat-panel .chat-status { min-height: 13px; }
.achievement-toast { position: fixed; z-index: 21; right: 18px; bottom: 132px; display: flex; align-items: center; gap: 12px; width: min(360px, calc(100vw - 36px)); padding: 14px 16px; border: 1px solid #f0cf75; border-radius: 9px; background: #fff9e8; box-shadow: 0 8px 28px #18305235; color: #59451a; opacity: 0; transform: translateY(12px); transition: opacity .2s ease, transform .2s ease; }
.achievement-toast[hidden] { display: none; }
.achievement-toast.visible { opacity: 1; transform: translateY(0); }
.achievement-toast-icon { display: grid; width: 42px; height: 42px; flex: 0 0 42px; place-items: center; border-radius: 50%; background: #ffedb9; font-size: 23px; }
.achievement-toast-message { display: grid; gap: 4px; }
.achievement-toast-message strong { color: #a76b0c; font-size: 10px; text-transform: uppercase; letter-spacing: .06em; }
.achievement-toast-message span { color: #394b67; font-size: 14px; font-weight: 900; }

@media (max-width: 1240px) {
  .catalog { margin-left: 2vw; margin-right: 2vw; }
  .engagement-hub { margin-left: 2vw; margin-right: 2vw; }
}

@media (max-width: 1000px) {
  .games-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .featured-games .games-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .homepage-recommendations .games-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .card-art { height: 145px; }
  .engagement-hub { grid-template-columns: minmax(0, 1fr); }
  .engagement-hub > section,
  .engagement-hub > #collection-overview { grid-column: 1; grid-row: auto; }
  .engagement-hub > section[aria-labelledby="theme-challenge-title"],
  .engagement-hub > section[aria-labelledby="community-goal-title"] { grid-column: 1; }
}

@media (max-width: 680px) {
  .topbar { position: relative; height: auto; min-height: 60px; flex-wrap: nowrap; gap: 10px; padding: 8px 15px; }
  .mobile-nav-toggle { display: flex; width: 40px; height: 40px; flex: 0 0 40px; flex-direction: column; align-items: center; justify-content: center; gap: 5px; padding: 0; border: 1px solid #ffffff55; border-radius: 6px; background: #ffffff12; cursor: pointer; }
  .mobile-nav-toggle span { display: block; width: 18px; height: 2px; border-radius: 2px; background: #fff; transition: transform .18s ease, opacity .18s ease; }
  .mobile-nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(7px) rotate(45deg); }
  .mobile-nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .mobile-nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-7px) rotate(-45deg); }
  .top-links { position: absolute; z-index: 5; top: 100%; right: 0; left: 0; display: none; width: auto; height: auto; flex-direction: column; align-items: stretch; gap: 0; margin: 0; padding: 8px 15px 13px; border-bottom: 3px solid #ffcf38; background: #1766d3; box-shadow: 0 8px 14px #10234430; }
  .topbar.mobile-nav-open .top-links { display: flex; }
  .top-link { min-height: 42px; font-size: 12px; }
  .top-link.active::after { right: auto; bottom: 5px; width: 28px; }
  .top-cta { padding: 7px 8px; font-size: 9px; }
  .account-button { padding: 7px 8px; font-size: 9px; }
  .top-actions { margin-left: auto; }
  .top-actions > .top-cta { display: none; }
  .admin-identity { display: none; }
  #account-label { max-width: 90px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

  .hero { display: block; padding: 38px 22px 23px; }
  .hero h1 { font-size: clamp(43px, 12vw, 58px); }
  .hero-art { min-height: 190px; margin-top: 2px; }
  .hero-console { transform: rotate(8deg) scale(.75); }
  .featured-games { margin: 14px 10px 0; padding: 20px 14px 24px; }
  .featured-games .section-heading { align-items: flex-start; flex-direction: column; gap: 6px; }
  .featured-games .section-heading h2 { font-size: 24px; }
  .featured-games .games-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .homepage-recommendations { margin: 14px 10px 0; padding: 20px 14px 24px; }
  .homepage-recommendations .section-heading { align-items: flex-start; flex-direction: column; gap: 6px; }
  .homepage-recommendations .section-heading h2 { font-size: 24px; }
  .homepage-recommendations .games-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .catalog { margin: 14px 10px 0; padding: 25px 14px 38px; }
  .engagement-hub { gap: 12px; margin: 14px 10px 0; }
  .daily-game-section, .mission-board, .collection-overview { padding: 18px 14px; }
  .daily-game-heading, .mission-board-heading, .collection-overview-heading { align-items: flex-start; }
  .mission-board-actions { align-items: flex-end; flex-direction: column; }
  .daily-game-heading h2, .mission-board-heading h2, .collection-overview-heading h2 { font-size: 23px; }
  .daily-game-card { grid-template-columns: minmax(0, 1fr); }
  .daily-game-image { min-height: 0; max-height: 190px; aspect-ratio: 16 / 9; }
  .daily-game-details { padding: 14px; }
  .daily-game-actions { margin-top: 8px; }
  .mission-list { grid-template-columns: minmax(0, 1fr); }
  .shop-items { grid-template-columns: minmax(0, 1fr); }
  .shop-currency-heading { align-items: flex-start; flex-direction: column; }
  .shop-exchange-form { grid-template-columns: minmax(0, 1fr) minmax(90px, .5fr); }
  .shop-exchange-form label:nth-of-type(2) { grid-column: 1 / -1; }
  .shop-exchange-preview { grid-column: 1 / -1; }
  .shop-page { width: auto; margin: 14px 10px 32px; }
  .shop-page .points-shop { padding: 18px 14px; }
  .weekly-game-candidates { grid-template-columns: minmax(0, 1fr); }
  .weekly-game-card { grid-template-columns: 62px minmax(0, 1fr); }
  .weekly-game-image { width: 62px; height: 44px; }
  .weekly-game-card .mission-claim-button { grid-column: 1 / -1; }
  .collection-overview-heading { flex-direction: column; }
  .section-heading h2 { font-size: 24px; }
  .catalog-count { font-size: 9px; }
  .catalog-layout { display: block; }
  .sidebar { border-right: 0; padding: 0 0 15px; }
  .category-list { display: flex; overflow-x: auto; gap: 5px; padding: 2px 1px 5px; scrollbar-width: none; }
  .category-list::-webkit-scrollbar, .tag-list::-webkit-scrollbar { display: none; }
  .category-button { width: auto; flex: 0 0 auto; gap: 7px; border-color: #dce4ef; background: #f8faff; padding: 7px 8px; font-size: 10px; }
  .category-count { display: none; }
  .filter-divider { margin: 8px 0 13px; }
  .tag-list { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 3px; }
  .tag-button { flex: 0 0 auto; }
  .sidebar-note { display: none; }
  .toolbar { gap: 6px; }
  .sort-control select { min-width: 42px; width: 42px; padding: 0; color: transparent; background-position: center; }
  .sort-control select option { color: #50617a; background: #fff; }
  .favorites-toggle { height: 41px; padding: 0 7px; font-size: 9px; }
  .collections-toggle { height: 41px; padding: 0 7px; font-size: 8px; }
  .card-footer-actions { gap: 4px; }
  .favorite-button { width: 25px; height: 25px; }
  .games-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .catalog-pagination { align-items: stretch; flex-direction: column; }
  .catalog-pagination label,
  .pagination-controls { justify-content: center; }
  .card-art { height: clamp(95px, 29vw, 145px); }
  .card-body { padding: 9px 8px; }
  .card-title { font-size: 12px; }
  .card-category { padding: 3px 4px; font-size: 7px; }
  .card-description { height: 30px; font-size: 9px; }
  .card-author { font-size: 8px; }
  .play-button { padding: 6px; font-size: 8px; }
  .footer { padding: 13px 15px; flex-wrap: wrap; gap: 10px; }
  .footer-status { width: 100%; }
}

@media (max-width: 390px) {
  .top-actions { gap: 5px; }
  .account-button { font-size: 8px; }
  .collection-selection { grid-template-columns: minmax(0, 1fr) auto; }
  .collection-selection label { grid-column: 1 / -1; }
  .collection-selection select { grid-column: 1; }
  .collection-selection .collection-delete-button { grid-column: 2; }
  .collection-create-form { flex-wrap: wrap; }
  .collection-create-form input { flex-basis: 100%; }
  .catalog { padding-left: 10px; padding-right: 10px; }
  .section-heading h2 { font-size: 21px; }
  .catalog-count { font-size: 8px; }
  .card-art { height: 105px; }
  .card-description { font-size: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .card-image { transition: none; }
}
