:root {
  font-family: Inter, "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
  color: #152b4c;
  background: #f3f6fc;
  font-synthesis: none;
  --blue: #0964ed;
  --line: #dce5f4;
  --muted: #7b8ba4;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}
body {
  margin: 0;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  cursor: pointer;
}
a,
button {
  touch-action: manipulation;
}
a:focus-visible,
button:focus-visible {
  outline: 3px solid #ffbc45;
  outline-offset: 4px;
}
button:hover {
  filter: brightness(1.15);
}
.skip {
  position: fixed;
  top: -60px;
  left: 16px;
  background: white;
  padding: 12px;
  z-index: 99;
}
.skip:focus {
  top: 10px;
}
.header {
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: 1512px;
  margin: auto;
  height: 90px;
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 0 40px;
}
.brand {
  color: var(--blue);
  font-size: 38px;
  font-weight: 850;
  letter-spacing: -1.8px;
}
.brand span {
  font-size: 10px;
  margin-left: 4px;
  vertical-align: middle;
  color: #71cdb2;
}
.header nav {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}
.header nav a {
  padding: 13px 17px;
  font-size: 14px;
  font-weight: 650;
  border-radius: 12px;
}
.header nav a:hover,
.header nav .active {
  background: #eaf1ff;
  color: var(--blue);
}
.header-note {
  margin-left: auto;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}
.language {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  font-size: 12px;
  white-space: nowrap;
}
.container {
  max-width: 1380px;
  margin: auto;
  padding: 0 36px;
}
.breadcrumb {
  display: flex;
  gap: 11px;
  font-size: 12px;
  color: var(--muted);
  padding: 22px 0;
}
.breadcrumb a {
  color: var(--blue);
}
.layout {
  display: grid;
  grid-template-columns: minmax(220px, 300px) minmax(340px, 480px) minmax(
      220px,
      300px
    );
  justify-content: space-between;
  gap: 36px;
  align-items: start;
}
.rail-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 2px 0 14px;
  font-size: 13px;
  font-weight: 700;
}
.rail-heading a {
  font-size: 11px;
  color: var(--blue);
}
.rail-heading small,
.muted {
  color: var(--muted);
  font-size: 10px;
  font-weight: 400;
}
.guide-card {
  display: block;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 15px;
  overflow: hidden;
  transition: transform 0.2s;
}
.guide-card:hover {
  transform: translateY(-3px);
}
.guide-art {
  height: 164px;
  background: #101a31;
  position: relative;
  overflow: hidden;
}
.blob {
  position: absolute;
  display: grid;
  place-items: center;
  font-size: 33px;
  color: #13230b;
  font-weight: 900;
  box-shadow: inset -4px -5px #0001;
  border: 3px solid #0005;
}
.yellow {
  width: 63px;
  height: 65px;
  border-radius: 46% 50% 42% 50%;
  background: #ffe24f;
  top: 13px;
  left: 39%;
}
.purple {
  width: 96px;
  height: 86px;
  border-radius: 48% 52% 35% 40%;
  background: #9a50f6;
  bottom: -16px;
  right: 15px;
  transform: rotate(10deg);
}
.green {
  width: 88px;
  height: 73px;
  background: #8bf335;
  border-radius: 45% 50% 32% 33%;
  bottom: -8px;
  left: 16px;
  transform: rotate(-9deg);
}
.trajectory {
  position: absolute;
  color: white;
  font-size: 48px;
  top: 67px;
  left: 44%;
  transform: rotate(24deg);
}
.card-caption {
  padding: 16px;
}
.card-caption strong {
  font-size: 14px;
}
.card-caption > span {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 7px;
}
.card-caption b {
  float: right;
  color: var(--blue);
}
.compact-guide {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 12px;
  margin-top: 14px;
}
.compact-guide strong {
  font-size: 13px;
}
.compact-guide small {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 5px;
}
.compact-guide > span:last-child {
  margin-left: auto;
  color: var(--blue);
}
.guide-icon {
  color: #8758de;
  background: #f0eaff;
  border-radius: 12px;
  padding: 10px;
  font-size: 24px;
}
.ad-slot {
  margin-top: 26px;
  color: #96a2b6;
  text-align: center;
}
.ad-label {
  display: block;
  font-size: 10px;
  letter-spacing: 3px;
  margin-bottom: 8px;
}
.ad-mount {
  width: 100%;
  aspect-ratio: 300/250;
  border: 1px dashed #ccd7e9;
  border-radius: 10px;
  background: #edf1f8;
  overflow: hidden;
}
.ad-mount img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.ad-placeholder {
  display: flex;
  height: 100%;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
  font-size: 10px;
  letter-spacing: 2px;
}
.ad-placeholder small {
  font-size: 11px;
  letter-spacing: 1px;
  color: #aab5c7;
}
.side-note {
  margin: 28px 8px;
  border-left: 2px solid #c7d7f4;
  padding-left: 15px;
}
.side-note > span {
  font-size: 11px;
  color: var(--blue);
  font-weight: 650;
}
.side-note p {
  font-size: 12px;
  line-height: 1.9;
  color: var(--muted);
  margin: 8px 0;
}
.game-shell {
  border-radius: 20px;
  background: #08162e;
  overflow: hidden;
  box-shadow: 0 14px 48px #233f6d26;
  scroll-margin-top: 20px;
}
.game-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  min-height: 70px;
  color: #fff;
  gap: 10px;
}
.game-toolbar > div:first-child {
  display: flex;
  align-items: center;
  gap: 10px;
}
h1 {
  font-size: 19px;
  margin: 0;
  letter-spacing: -0.5px;
}
.game-tag {
  font-size: 9px;
  padding: 4px 7px;
  border-radius: 5px;
  background: #ffffff12;
  color: #a7bad8;
}
.game-actions {
  display: flex;
  gap: 7px;
}
.game-actions button {
  border: 1px solid #334c70;
  background: #132b4b;
  color: #fff;
  padding: 9px 10px;
  border-radius: 9px;
  font-size: 12px;
  white-space: nowrap;
}
.game-viewport {
  width: 100%;
  height: min(76svh, 820px);
  min-height: 540px;
  background: #111;
}
.game-viewport iframe {
  display: block;
  border: 0;
  width: 100%;
  height: 100%;
}
.game-footer {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 16px;
  color: #9aacc7;
  font-size: 10px;
}
.game-footer i {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #64caa3;
  border-radius: 50%;
  margin-right: 7px;
}
.game-footer kbd {
  font: 10px inherit;
  border: 1px solid #33435d;
  border-radius: 4px;
  padding: 1px 4px;
  margin-right: 3px;
}
.under-game {
  display: flex;
  justify-content: space-between;
  padding: 17px 2px;
  font-size: 11px;
  color: var(--muted);
}
.under-game a {
  color: var(--blue);
}
#notice:empty {
  display: none;
}
#notice {
  font-size: 12px;
  line-height: 1.6;
}
.sidebar-games {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.related-card {
  display: block;
  background: white;
  border: 1px solid var(--line);
  border-radius: 13px;
  overflow: hidden;
  min-width: 0;
}
a.related-card:hover {
  box-shadow: 0 8px 20px #244d8b14;
  transform: translateY(-2px);
}
.game-art {
  height: 140px;
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  isolation: isolate;
}
.game-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}
.small-card .game-art {
  height: 100px;
}
.numbers {
  background: #f7e1b3;
}
.fruit {
  background: #d9f1d9;
}
.bounce {
  background: #dddfff;
}
.blocks {
  background: #dbeeff;
}
.art-symbol {
  font-size: 38px;
  font-weight: 900;
  background: #ffd16b;
  color: #ac6926;
  display: grid;
  place-items: center;
  width: 90px;
  height: 90px;
  border-radius: 22px;
  transform: rotate(-9deg);
  box-shadow: 0 7px 0 #d49c3b44;
  z-index: 1;
}
.small-card .art-symbol {
  width: 62px;
  height: 62px;
  font-size: 25px;
  border-radius: 14px;
}
.fruit .art-symbol {
  background: #ff8959;
  color: #ffd56c;
  border-radius: 48%;
  font-size: 65px;
  box-shadow:
    inset -10px -8px #e56c4944,
    0 7px 0 #70b86b33;
}
.bounce .art-symbol {
  background: #9575ec;
  color: #e8d4ff;
  border-radius: 50%;
  font-size: 54px;
  box-shadow:
    inset -7px -8px #624baf44,
    0 8px 0 #6957c333;
}
.blocks .art-symbol {
  background: #57b5dc;
  color: #e9fbff;
  font-size: 58px;
  transform: rotate(9deg);
}
.game-art i {
  position: absolute;
  border: 2px solid #fff6;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  left: 9%;
  top: 12%;
  transform: rotate(18deg);
}
.game-art i:nth-last-child(2) {
  left: auto;
  right: 5%;
  top: 55%;
  width: 44px;
  height: 44px;
}
.game-art i:last-child {
  left: 9%;
  top: auto;
  bottom: 6%;
  width: 14px;
  height: 14px;
  background: #ffffff66;
  border: 0;
}
.game-caption {
  padding: 14px;
}
.game-caption strong {
  display: block;
  font-size: 14px;
}
.game-caption > span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-top: 6px;
}
.small-card .game-caption {
  padding: 10px;
}
.small-card strong {
  font-size: 11px;
}
.small-card .game-caption > span {
  font-size: 9px;
}
.collection-link {
  display: block;
  margin-top: 24px;
  padding: 17px;
  background: #e7effe;
  border-radius: 12px;
}
.collection-link span {
  display: block;
  font-size: 11px;
  color: #6981a9;
  margin-bottom: 7px;
}
.collection-link b {
  font-size: 13px;
  color: var(--blue);
}
.banner-section {
  margin: 24px auto 42px;
  max-width: 728px;
}
.banner-section .ad-slot {
  margin: 0;
}
.banner-ad .ad-mount {
  aspect-ratio: 728/90;
  border-radius: 8px;
}
.banner-ad .ad-placeholder {
  gap: 5px;
}
.content-section {
  padding: 34px 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: 20px;
}
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 23px;
}
.eyebrow {
  font-size: 9px;
  letter-spacing: 2px;
  font-weight: 700;
  color: var(--blue);
}
h2 {
  font-size: 24px;
  letter-spacing: -0.6px;
  margin: 9px 0 0;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.coming-note {
  font-size: 11px;
  color: var(--muted);
  margin: 16px 0 0;
}
.pill {
  font-size: 11px;
  color: #6580a7;
  border: 1px solid var(--line);
  padding: 7px 11px;
  border-radius: 20px;
}
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.steps article {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px;
}
.step-number {
  font-size: 12px;
  color: var(--blue);
  font-weight: 750;
  display: grid;
  place-items: center;
  width: 33px;
  height: 33px;
  border-radius: 10px;
  background: #edf3ff;
}
.steps h3 {
  font-size: 16px;
  margin: 18px 0 9px;
}
.steps p {
  font-size: 13px;
  color: #74849b;
  line-height: 1.9;
  margin: 0;
}
.tips-section {
  display: flex;
  align-items: center;
  gap: 24px;
  background: #e8effc;
  border: 1px solid #dae5f8;
  padding: 26px;
  border-radius: 15px;
  margin: 10px 0 40px;
}
.tip-symbol {
  font-size: 40px;
  color: var(--blue);
}
.tips-section h2 {
  font-size: 18px;
  margin: 0;
}
.tips-section p {
  font-size: 12px;
  color: #6a7f9e;
  line-height: 1.9;
  margin: 8px 0 0;
  max-width: 730px;
}
.tips-section a {
  white-space: nowrap;
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
  margin-left: auto;
}
.about-section {
  max-width: 650px;
  text-align: center;
  margin: 50px auto 60px;
}
.about-section h2 {
  font-size: 23px;
}
.about-section p {
  font-size: 13px;
  line-height: 2;
  color: var(--muted);
}
.site-footer {
  border-top: 1px solid var(--line);
  padding: 35px max(36px, calc((100vw - 1308px) / 2));
  background: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
}
.site-footer .brand {
  font-size: 28px;
}
.site-footer p,
.site-footer small {
  font-size: 11px;
  color: var(--muted);
}
.site-footer nav {
  display: flex;
  gap: 30px;
  font-size: 12px;
  color: #5e7494;
}
.focus-mode .rail {
  visibility: hidden;
}
.focus-mode .game-shell {
  box-shadow: 0 0 0 100vmax #f3f6fc;
  position: relative;
  z-index: 20;
}
.game-shell:fullscreen {
  border-radius: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #111;
}
.game-shell:fullscreen .game-toolbar,
.game-shell:fullscreen .game-footer {
  width: min(100%, 500px);
}
.game-shell:fullscreen .game-viewport {
  flex: 1;
  min-height: 0;
  width: min(100%, 500px);
  height: auto;
}
.game-shell:fullscreen .game-footer {
  flex-shrink: 0;
}
@media (min-width: 1500px) {
  .layout {
    gap: 60px;
  }
}
@media (max-width: 1150px) {
  .header-inner {
    gap: 20px;
    padding: 0 26px;
  }
  .header-note {
    display: none;
  }
  .language {
    margin-left: auto;
  }
  .container {
    padding: 0 24px;
  }
  .layout {
    gap: 22px;
    grid-template-columns: 210px minmax(320px, 460px) 210px;
  }
  .game-tag {
    display: none;
  }
  .brand {
    font-size: 32px;
  }
  .header nav a {
    padding: 12px;
    font-size: 12px;
  }
}
@media (max-width: 950px) {
  .layout {
    grid-template-columns: minmax(300px, 480px) minmax(210px, 260px);
    justify-content: center;
  }
  .left-rail {
    display: none;
  }
  .header nav {
    gap: 0;
  }
  .language {
    display: none;
  }
  .header-inner {
    justify-content: space-between;
  }
  .game-viewport {
    min-height: 530px;
  }
  .related-grid {
    gap: 12px;
  }
  .site-footer {
    padding: 30px 24px;
  }
  .site-footer nav {
    gap: 15px;
  }
}
@media (max-width: 680px) {
  .header-inner {
    height: 70px;
    padding: 0 16px;
    gap: 12px;
  }
  .brand {
    font-size: 28px;
  }
  .header nav a {
    padding: 10px;
    font-size: 11px;
  }
  .header nav a:last-child {
    display: none;
  }
  .container {
    padding: 0 14px;
  }
  .breadcrumb {
    padding: 16px 0;
    font-size: 11px;
  }
  .layout {
    display: flex;
    flex-direction: column;
    gap: 24px;
  }
  .center-column {
    width: min(100%, 460px);
    align-self: center;
    order: 0;
  }
  .right-rail {
    order: 1;
    width: 100%;
  }
  .sidebar-games {
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
  }
  .small-card .game-art {
    height: 84px;
  }
  .small-card .game-caption {
    padding: 9px 7px;
  }
  .small-card strong {
    font-size: 10px;
  }
  .right-rail .ad-slot {
    max-width: 300px;
    margin: 24px auto 0;
  }
  .collection-link {
    display: none;
  }
  .game-toolbar {
    padding: 12px;
  }
  .game-viewport {
    height: calc(100svh - 190px);
    min-height: 470px;
    max-height: 760px;
  }
  .game-footer {
    padding: 10px 12px;
  }
  .game-shell {
    border-radius: 16px;
  }
  .under-game {
    padding-bottom: 0;
  }
  .banner-section {
    margin-top: 28px;
    margin-bottom: 26px;
  }
  .banner-ad .ad-mount {
    aspect-ratio: 320/75;
  }
  .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .section-heading {
    align-items: center;
  }
  .section-heading > .muted {
    display: none;
  }
  h2 {
    font-size: 21px;
  }
  .steps {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .steps article {
    padding: 20px;
  }
  .steps h3 {
    margin-top: 12px;
  }
  .tips-section {
    gap: 14px;
    padding: 20px;
    flex-wrap: wrap;
  }
  .tips-section > div {
    flex: 1;
    min-width: 200px;
  }
  .tips-section a {
    margin-left: 54px;
  }
  .site-footer {
    flex-wrap: wrap;
    padding: 28px 20px;
  }
  .site-footer small {
    width: 100%;
  }
  .site-footer nav {
    font-size: 11px;
  }
  .focus-mode .right-rail {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
  }
}

/* Preserve the portrait board proportion at every breakpoint. */
.game-viewport {
  aspect-ratio: 100 / 177.78;
  height: auto;
  min-height: 0;
  max-height: none;
}
.game-shell:fullscreen .game-viewport {
  aspect-ratio: auto;
}
