@font-face {
  font-family: Bricolage;
  src: url("fonts/bricolage.woff2") format("woff2");
  font-weight: 800;
  font-display: swap;
}
:root {
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "PingFang SC",
    "Microsoft YaHei",
    sans-serif;
  font-synthesis: weight;
  color-scheme: light;
}
* {
  box-sizing: border-box;
}
body,
h1,
h2,
h3,
p,
figure,
ol {
  margin: 0px;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select {
  font: inherit;
}
a,
button,
select {
  touch-action: manipulation;
}
button {
  background: none;
  border: 0px;
  color: inherit;
  cursor: pointer;
}
img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
body {
  --bg: #f7f7ee;
  --surface: #fffef7;
  --ink: #1a2a24;
  --muted: #52635a;
  --line: #c4cec1;
  --soft: #e8ede3;
  --primary: #c6ed74;
  --on-primary: #192821;
  --action-border: #a3bc72;
  --brand: #245b45;
  --mark-stitch: white;
  --r: 17px;
  --display: Bricolage, "PingFang SC", "Microsoft YaHei", sans-serif;
  min-height: 100vh;
  color: var(--ink);
  background: var(--bg);
}
::selection {
  background: rgb(182, 204, 144);
  color: rgb(21, 38, 31);
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
}
.icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentcolor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
}
#skip {
  position: fixed;
  left: 12px;
  top: -80px;
  z-index: 8;
  padding: 10px 15px;
  background: var(--ink);
  color: var(--bg);
}
#skip:focus {
  top: 10px;
}
main:focus {
  outline: none;
}
.wrap,
.head-inner {
  width: min(1392px, 92vw);
  margin: 0px auto;
}
#header {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.head-inner {
  display: flex;
  min-height: 76px;
  align-items: center;
  gap: 33px;
}
.brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  flex: 0 0 auto;
  line-height: 1;
}
.brand-lockup {
  display: block;
  width: auto;
  height: 42px;
  object-fit: contain;
}
.head-inner nav {
  display: flex;
  align-items: center;
  gap: 5px;
}
.nav-link {
  display: flex;
  align-items: center;
  gap: 6px;
  border-radius: 30px;
  padding: 9px 12px;
  font-weight: 620;
  font-size: 14px;
  color: var(--muted);
  min-height: 38px;
}
.nav-link .icon {
  width: 16px;
  height: 16px;
}
.nav-link[aria-current="page"] {
  background: var(--soft);
  color: var(--ink);
}
.nav-link:hover {
  color: var(--ink);
  background: var(--soft);
}
.language {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  border: 1px solid var(--line);
  padding: 7px 12px;
  border-radius: 20px;
  position: relative;
  overflow: hidden;
  font-size: 12px;
  font-weight: 650;
  min-height: 35px;
}
.language .icon {
  width: 16px;
  height: 16px;
}
.language .icon:last-of-type {
  width: 11px;
  height: 11px;
}
.language select {
  position: absolute;
  inset: 0px;
  width: 100%;
  max-width: 100%;
  min-width: 0px;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}
.language:focus-within {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}
.browser-page {
  padding: 36px 0px 45px;
}
.intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
}
.intro h1,
.detail-info h1 {
  font-family: var(--display);
  font-size: clamp(44px, 4.55vw, 77px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.067em;
  text-wrap: balance;
}
.intro p {
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.52;
  color: var(--muted);
}
.search-field {
  width: clamp(230px, 24vw, 360px);
  height: 46px;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 30px;
  color: var(--muted);
}
.search-field input {
  width: 100%;
  min-width: 0px;
  background: transparent;
  outline: 0px;
  border: 0px;
  color: var(--ink);
  font-size: 14px;
}
.search-field input:focus-visible {
  outline: none;
}
.search-field input::placeholder {
  color: var(--muted);
  opacity: 1;
}
.search-field:focus-within {
  border-color: var(--brand);
  outline: 2px solid var(--brand);
  outline-offset: 1px;
}
.search-field .icon {
  width: 18px;
  height: 18px;
}
.filter-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 22px 0px 17px;
}
.filter-line > #filters {
  min-width: 0px;
}
.genres {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow: auto;
  scrollbar-width: thin;
}
.genre {
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 7px 15px;
  min-height: 35px;
  font-size: 13px;
  font-weight: 640;
  color: var(--ink);
}
.genre[aria-current="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
}
.genre:hover {
  border-color: var(--brand);
}
#result-count,
.section-title small {
  white-space: nowrap;
  color: var(--muted);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0px, 1fr));
  gap: 17px;
}
.game-card {
  min-width: 0px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  display: flex;
  flex-direction: column;
}
.photo {
  background: var(--tile, var(--soft));
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.photo > a {
  display: block;
  width: 100%;
  height: 100%;
}
.photo img {
  transition: transform 0.22s;
}
.photo a:hover img {
  transform: scale(1.035);
}
.game-card > .photo {
  aspect-ratio: 1.22 / 1;
  border-bottom: 1px solid var(--line);
}
.card-body {
  padding: 14px 15px 15px;
  flex: 1 1 0%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.labels,
.kind {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.labels {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  min-width: 0px;
  font-size: 11px;
  font-weight: 650;
  line-height: 1.5;
  color: var(--muted);
}
.labels > span:first-child {
  letter-spacing: 0.025em;
}
.kind {
  font-size: 11px;
  font-weight: 560;
  color: var(--muted);
  line-height: 1.4;
}
.kind .icon {
  width: 14px;
  height: 14px;
}
.game-card h2 {
  font:
    800 clamp(23px, 2.1vw, 34px) / 1.16 Bricolage,
    "PingFang SC",
    sans-serif;
  letter-spacing: -0.06em;
  overflow-wrap: break-word;
}
.game-card h2 {
  margin: 6px 0px;
}
.title-link:hover {
  text-decoration: underline 1px;
  text-underline-offset: 4px;
}
.card-body p,
.detail-info p,
.player-help p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}
.card-actions,
.detail-buttons {
  display: flex;
  align-items: center;
  gap: 9px;
}
.card-actions {
  justify-content: space-between;
  margin-top: auto;
  padding-top: 14px;
}
.launch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 39px;
  padding: 8px 16px;
  border: 1px solid var(--action-border);
  background: var(--primary);
  color: var(--on-primary);
  border-radius: 25px;
  font-weight: 730;
  font-size: 14px;
  line-height: 1.1;
  white-space: nowrap;
}
.launch .icon {
  width: 15px;
  height: 15px;
}
.launch:hover {
  filter: brightness(0.93);
}
.more,
.back,
.player-help > a,
.empty > a {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 12px;
  font-weight: 640;
  color: var(--muted);
}
.more:hover,
.back:hover,
.player-help > a:hover {
  text-decoration: underline;
}
.more .icon {
  width: 13px;
  height: 13px;
}
.save {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  width: 34px;
  height: 34px;
  background: var(--surface);
  color: var(--ink);
  padding: 0px;
}
.save .icon {
  width: 16px;
  height: 16px;
}
.save[aria-pressed="true"] .icon {
  fill: currentcolor;
}
.photo > .save {
  position: absolute;
  top: 9px;
  right: 9px;
  background: rgba(253, 251, 240, 0.93);
  border-color: rgba(255, 255, 255, 0.9);
  color: rgb(53, 66, 56);
  box-shadow: rgba(25, 43, 52, 0.125) 0px 1px 4px;
}
.save-wide {
  width: auto;
  height: auto;
  min-height: 38px;
  gap: 7px;
  border-radius: 28px;
  padding: 8px 14px;
  font-size: 13px;
}
.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}
.section-title h2,
.related > h2,
.player-help h2,
.detail-below h2 {
  font-size: 22px;
  line-height: 1.28;
  letter-spacing: -0.04em;
}
.section-title h2 {
  display: flex;
  align-items: center;
  gap: 8px;
}
.empty {
  padding: 38px 24px;
  border: 1px dashed var(--line);
  border-radius: var(--r);
  background: var(--surface);
}
.empty h2 {
  font-size: 24px;
  letter-spacing: -0.04em;
}
.empty p {
  margin: 8px 0px;
  color: var(--muted);
  font-size: 14px;
}
.empty > a {
  color: var(--brand);
  gap: 6px;
}
.detail-page,
.player-page {
  padding-top: 16px;
  padding-bottom: 40px;
}
.back {
  gap: 6px;
  min-height: 38px;
}
.back .icon {
  width: 17px;
  height: 17px;
}
.detail-top {
  display: grid;
  grid-template-columns: minmax(0px, 1fr) minmax(0px, 1fr);
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--r);
  overflow: hidden;
}
.detail-cover {
  position: relative;
  min-height: 253px;
}
.detail-cover img {
  position: absolute;
  inset: 0px;
}
.detail-info {
  padding: clamp(18px, 3vw, 45px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}
.detail-info h1 {
  font-size: clamp(36px, 3.7vw, 59px);
  margin: 8px 0px;
}
.detail-info .labels {
  justify-content: flex-start;
  gap: 12px;
}
.detail-buttons {
  margin-top: 15px;
}
.detail-below {
  display: grid;
  grid-template-columns: minmax(0px, 0.88fr) minmax(0px, 1.12fr);
  gap: 25px;
  margin-top: 23px;
}
.detail-below > section {
  border-top: 1px solid var(--line);
  padding-top: 11px;
}
.detail-below ol {
  padding: 7px 0px 0px 21px;
  color: var(--muted);
  line-height: 1.6;
  font-size: 14px;
}
.shots {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 8px;
}
.shots button {
  display: flex;
  align-items: center;
  text-align: left;
  gap: 9px;
  padding: 5px 8px 5px 5px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 12px;
}
.shots img {
  width: 37px;
  height: 56px;
  object-fit: contain;
  background: var(--soft);
}
.shots .icon {
  margin-left: auto;
  width: 16px;
  height: 16px;
}
.related {
  margin-top: 24px;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0px, 1fr));
  gap: 9px;
  margin-top: 9px;
}
.related-grid a {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 6px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.related-grid img {
  width: 64px;
  height: 45px;
  border-radius: 3px;
}
.related-grid span {
  min-width: 0px;
}
.related-grid b {
  font-size: 15px;
  display: block;
  line-height: 1.3;
}
.related-grid small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-top: 2px;
}
.related-grid .icon {
  margin-left: auto;
  width: 16px;
  margin-right: 4px;
}
.player-heading {
  display: flex;
  align-items: center;
  gap: 17px;
  margin-bottom: 11px;
}
.player-heading h1 {
  font: 800 28px/1.1 var(--display);
  letter-spacing: -0.045em;
}
.player-heading .save {
  margin-left: auto;
}
.play-layout {
  display: grid;
  grid-template-columns: minmax(0px, 2.65fr) minmax(230px, 1fr);
  gap: 19px;
  align-items: start;
}
.stage {
  height: clamp(430px, 76dvh, 850px);
  background: rgb(21, 28, 30);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  display: flex;
  align-items: stretch;
  justify-content: center;
}
.stage iframe {
  height: 100%;
  width: min(100%, 48dvh);
  border: 0px;
  background: rgb(20, 24, 27);
}
.player-help {
  border-top: 2px solid var(--ink);
  padding-top: 10px;
}
.player-help h2,
.play-layout .related h2 {
  font-size: 19px;
}
.player-help p {
  margin: 6px 0px;
}
.player-help > a {
  color: var(--brand);
  gap: 3px;
}
.player-help > a .icon {
  width: 14px;
}
.play-layout .related-grid {
  grid-template-columns: 1fr;
}
#gallery {
  width: min(470px, 94vw);
  max-height: 92dvh;
  padding: 16px 18px;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 12px;
}
#gallery::backdrop {
  background: rgba(16, 21, 26, 0.83);
}
.gallery-title,
.gallery-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.gallery-title h2 {
  font-size: 22px;
}
.gallery-title button,
.gallery-nav button {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 6px 11px;
}
.gallery-title button {
  width: 36px;
  padding: 0px;
}
#gallery figure {
  margin: 10px 0px;
  background: var(--soft);
  border-radius: 6px;
  padding: 6px;
  text-align: center;
}
#gallery img {
  object-fit: contain;
  height: min(55dvh, 450px);
}
#gallery figcaption {
  font-size: 12px;
  margin-top: 5px;
}
.gallery-nav button {
  font-size: 12px;
}
@media (max-width: 1050px) {
  .wrap,
  .head-inner {
    width: 94vw;
  }
  .head-inner {
    gap: 22px;
    min-height: 64px;
  }
  .browser-page {
    padding-top: 25px;
  }
  .cards {
    gap: 11px;
  }
  .card-body {
    padding: 11px;
  }
  .card-actions {
    gap: 5px;
  }
  .launch {
    padding-inline: 12px;
  }
}
@media (min-width: 761px) and (max-width: 900px) {
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .game-card > .photo {
    aspect-ratio: 1.7;
  }
}
@media (max-width: 760px) {
  .wrap,
  .head-inner {
    width: calc(100% - 30px);
  }
  .head-inner {
    gap: 10px;
    min-height: 59px;
  }
  .brand-lockup {
    height: 34px;
  }
  .head-inner nav {
    margin-left: auto;
    gap: 0px;
  }
  .nav-link {
    width: 38px;
    height: 39px;
    padding: 0px;
    justify-content: center;
  }
  .nav-link span {
    display: none;
  }
  .language {
    margin-left: 0px;
    min-height: 34px;
    padding-inline: 9px;
  }
  .intro {
    align-items: flex-start;
    gap: 12px;
  }
  .intro h1 {
    font-size: 40px;
  }
  .intro p {
    font-size: 13px;
    margin-top: 6px;
  }
  .search-field {
    height: 40px;
    width: 206px;
  }
  .filter-line {
    margin: 16px 0px 11px;
  }
  .cards {
    grid-template-columns: repeat(2, minmax(0px, 1fr));
  }
  .game-card > .photo {
    aspect-ratio: 1.7 / 1;
  }
  .play-layout {
    grid-template-columns: minmax(0px, 1.9fr) minmax(175px, 1fr);
    gap: 10px;
  }
  .related-grid {
    gap: 5px;
  }
  .related-grid img {
    width: 44px;
    height: 39px;
  }
  .related-grid b {
    font-size: 13px;
  }
  .detail-info {
    padding: 17px;
  }
}
@media (max-width: 540px) {
  .wrap,
  .head-inner {
    width: calc(100% - 24px);
  }
  .head-inner {
    gap: 4px;
    min-height: 54px;
  }
  .brand-lockup {
    height: 29px;
  }
  .nav-link {
    width: 32px;
    min-height: 38px;
  }
  .nav-link .icon {
    width: 16px;
    height: 16px;
  }
  .language {
    font-size: 11px;
    padding: 5px 7px;
    gap: 4px;
  }
  .language > .icon:first-child {
    display: none;
  }
  .browser-page {
    padding: 18px 0px 25px;
  }
  .intro {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .intro h1 {
    font-size: 34px;
    letter-spacing: -0.065em;
  }
  .intro p {
    font-size: 12px;
    line-height: 1.45;
    margin-top: 4px;
  }
  .search-field {
    width: 100%;
    height: 36px;
    padding-inline: 11px;
    gap: 7px;
  }
  .search-field input {
    font-size: 14px;
  }
  .filter-line {
    margin: 11px 0px 9px;
    gap: 6px;
  }
  .genres {
    gap: 4px;
    scrollbar-width: none;
  }
  .genres::-webkit-scrollbar {
    display: none;
  }
  .genre {
    min-height: 32px;
    padding: 6px 10px;
    font-size: 12px;
  }
  #result-count {
    font-size: 10px;
  }
  .cards {
    gap: 9px;
  }
  .game-card {
    border-radius: 10px;
  }
  .game-card > .photo {
    aspect-ratio: 1.49 / 1;
  }
  .photo > .save {
    width: 29px;
    height: 29px;
    top: 5px;
    right: 5px;
  }
  .photo > .save .icon {
    width: 14px;
    height: 14px;
  }
  .card-body {
    padding: 8px;
  }
  .labels {
    gap: 2px 5px;
    font-size: 9px;
  }
  .kind {
    font-size: 9px;
    gap: 3px;
  }
  .kind .icon {
    width: 11px;
    height: 11px;
  }
  .game-card h2 {
    font-size: 20px;
    margin: 4px 0px;
  }
  .card-body p {
    font-size: 11px;
    line-height: 1.4;
  }
  .card-actions {
    padding-top: 7px;
  }
  .launch {
    min-height: 33px;
    gap: 4px;
    font-size: 12px;
    padding: 6px 10px;
  }
  .launch .icon {
    width: 12px;
    height: 12px;
  }
  .more {
    font-size: 10px;
  }
  .more .icon {
    width: 10px;
  }
  .detail-top {
    grid-template-columns: 1fr;
  }
  .detail-cover {
    min-height: 146px;
  }
  .detail-info {
    padding: 13px;
  }
  .detail-info h1 {
    font-size: 33px;
    margin: 4px 0px;
  }
  .detail-info p {
    font-size: 13px;
  }
  .detail-buttons {
    margin-top: 9px;
  }
  .detail-below {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 13px;
  }
  .detail-below > section {
    padding-top: 6px;
  }
  .detail-below h2,
  .related > h2 {
    font-size: 18px;
  }
  .detail-below ol {
    font-size: 12px;
  }
  .related {
    margin-top: 15px;
  }
  .related-grid {
    grid-template-columns: 1fr;
  }
  .related-grid img {
    width: 50px;
    height: 37px;
  }
  .shots img {
    width: 28px;
    height: 44px;
  }
  .shots button {
    font-size: 11px;
    gap: 5px;
  }
  .back {
    font-size: 12px;
    min-height: 32px;
  }
  .player-heading {
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 7px;
  }
  .player-heading h1 {
    font-size: 20px;
  }
  .player-heading .save {
    font-size: 11px;
    min-height: 29px;
    padding: 5px 7px;
  }
  .play-layout {
    grid-template-columns: 1fr;
  }
  .detail-page,
  .player-page {
    padding: 5px 0px 20px;
  }
  .stage {
    height: clamp(340px, 73dvh, 760px);
    border-radius: 7px;
  }
  .stage iframe {
    width: 100%;
  }
}
@media (max-width: 360px) {
  .brand-lockup {
    height: 26px;
  }
  .nav-link {
    width: 28px;
  }
  .wrap,
  .head-inner {
    width: calc(100% - 18px);
  }
  .genre {
    padding: 5px 8px;
  }
  .card-body {
    padding: 6px;
  }
  .game-card h2 {
    font-size: 17px;
  }
  .card-actions .more {
    font-size: 9px;
  }
  .card-actions .launch {
    padding-inline: 7px;
  }
  .card-actions .more .icon {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  ::before,
  ::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: auto ease 0s 1 normal none running none !important;
  }
}
