:root {
  --paper: #f6f7f1;
  --ink: #213d36;
  --muted: #78877d;
  --green: #285d4c;
  --mint: #e2eee2;
  --line: #dfe7dd;
  --gold: #e8bb58;
  --radius: 26px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: 'Microsoft YaHei', 'PingFang SC', sans-serif;
}
button,
input {
  font: inherit;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
  text-decoration: none;
}
button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid #d4a544;
  outline-offset: 4px;
}
[hidden] {
  display: none !important;
}
.site-header {
  height: 100px;
  max-width: 1280px;
  padding: 0 48px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  gap: 13px;
  align-items: center;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 2px;
}
.brand small {
  display: block;
  font-size: 9px;
  letter-spacing: 3px;
  margin-top: 6px;
  color: var(--muted);
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 45px;
  height: 45px;
  background: var(--green);
  border-radius: 15px 15px 15px 4px;
  color: #f9f5de;
  font-family: Georgia, serif;
  font-size: 30px;
  font-weight: 400;
}
.account-bar {
  display: flex;
  gap: 24px;
  align-items: center;
  font-size: 14px;
}
.text-button {
  background: none;
  border: 0;
  color: var(--muted);
  padding: 10px;
}
.lobby {
  max-width: 1280px;
  margin: auto;
  padding: 28px 48px;
}
.greeting {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 30px;
}
.eyebrow {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2.3px;
  color: var(--muted);
  margin: 0 0 12px;
}
h1 {
  font-size: 36px;
  letter-spacing: -1px;
  margin: 0 0 12px;
  font-weight: 600;
}
.greeting p:last-child {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}
.wallet {
  display: flex;
  gap: 22px;
  align-items: center;
  padding: 19px 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  font-size: 12px;
  color: var(--muted);
}
.wallet b {
  color: var(--ink);
  font-size: 19px;
  margin-left: 7px;
  font-weight: 500;
}
.feature {
  position: relative;
  display: block;
  height: 350px;
  overflow: hidden;
  border-radius: var(--radius);
  background: #6aa89c;
}
.feature > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 59%;
}
.feature:after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #244d46bb, transparent 65%);
}
.feature-copy {
  position: absolute;
  left: 44px;
  top: 36px;
  z-index: 1;
  color: #fff8e9;
}
.pill {
  display: inline-block;
  padding: 8px 14px;
  border: 1px solid #fff7d95c;
  border-radius: 30px;
  font-size: 11px;
  letter-spacing: 1px;
}
.feature h2 {
  font-size: 48px;
  font-weight: 500;
  margin: 22px 0 12px;
  letter-spacing: 3px;
}
.feature p {
  font-size: 14px;
  line-height: 1.8;
  color: #f5f3df;
  margin-bottom: 24px;
}
.primary {
  border: 0;
  display: inline-flex;
  gap: 34px;
  align-items: center;
  background: #f6e3ac;
  color: #30463a;
  border-radius: 30px;
  padding: 14px 24px;
  font-size: 14px;
  font-weight: 600;
}
.primary:hover {
  background: #fbdc87;
}
.primary span {
  font-size: 20px;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 34px 0 21px;
}
.section-heading h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 500;
}
.section-heading h2 span {
  font-size: 11px;
  color: var(--muted);
  margin-left: 12px;
}
.section-heading p {
  font-size: 12px;
  color: var(--muted);
}
.game-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.game-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 21px;
  overflow: hidden;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 35px #244b3512;
}
.card-art {
  height: 162px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.card-art.plane {
  background: radial-gradient(ellipse, #536591, #233650);
}
.card-art.farm {
  background: radial-gradient(ellipse, #eef2c8, #accbad);
}
.card-art > img {
  height: 145px;
  width: 145px;
  object-fit: contain;
}
.card-art.snake img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  object-position: center 64%;
}
.new-badge {
  position: absolute;
  right: 15px;
  top: 15px;
  font-size: 9px;
  letter-spacing: 1px;
  background: #f6e3ac;
  padding: 6px 9px;
  border-radius: 20px;
}
.card-copy {
  padding: 22px 24px;
}
.card-copy .eyebrow {
  font-size: 9px;
  letter-spacing: 1px;
}
.card-copy h3 {
  margin: 0;
  font-size: 22px;
  font-weight: 500;
  display: flex;
  justify-content: space-between;
}
.card-copy h3 span {
  font-size: 20px;
  color: var(--muted);
}
.card-copy p {
  font-size: 12px;
  color: var(--muted);
  margin: 12px 0 23px;
}
.tags {
  display: flex;
  gap: 8px;
}
.tags span {
  font-size: 10px;
  background: #f3f5ef;
  border-radius: 20px;
  padding: 5px 10px;
}
.footnote {
  text-align: center;
  font-size: 11px;
  letter-spacing: 2px;
  color: #93a092;
  margin: 32px 0 15px;
}
.site-message {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--green);
  color: white;
  padding: 12px 24px;
  border-radius: 24px;
  z-index: 10000;
}
.site-message:empty {
  display: none;
}
.login-scene {
  margin: 18px 48px;
  height: calc(100vh - 144px);
  position: relative;
  border-radius: 28px;
  overflow: hidden;
}
.login-scene > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.login-scene > div {
  position: absolute;
  left: 5%;
  top: 12%;
  color: white;
  text-shadow: 0 2px 10px #284c4870;
}
.login-scene h1 {
  font-size: 60px;
  line-height: 1.4;
  font-weight: 500;
}
.login-scene .eyebrow {
  color: #e4f3e5;
}
.login-scene p {
  font-size: 14px;
}
.lobby-page .game-login-overlay {
  background: transparent;
  justify-content: flex-end;
  padding-right: 11%;
  backdrop-filter: none;
}
.lobby-page .game-login-card {
  background: #fffcf3f2;
  color: var(--ink);
  border: 1px solid #fff8da;
  border-radius: 28px;
  box-shadow: 0 20px 80px #28464040;
  width: 350px;
}
.lobby-page .game-login-head h2 {
  color: var(--ink);
  font-size: 24px;
}
.lobby-page .game-login-icon {
  display: none;
}
.lobby-page .game-login-head p {
  color: var(--muted);
}
.lobby-page .game-login-field,
.lobby-page .game-login-check {
  color: var(--ink);
}
.lobby-page .game-login-field input {
  background: #f4f5ed;
  color: var(--ink);
  border-color: #d9dfd1;
  border-radius: 12px;
}
.lobby-page .game-login-submit {
  background: var(--green);
  color: #fff;
  border-radius: 22px;
}
.lobby-page .game-login-check input {
  accent-color: var(--green);
}
.lobby-page .game-login-message {
  color: #a25d39;
}
.lobby-page .game-login-combo-toggle {
  color: var(--ink);
  background: transparent;
}
.lobby-page .game-login-account-menu {
  background: #fffaf0;
  border-color: var(--line);
}
.lobby-page .game-login-account-item {
  color: var(--ink);
}
@media (max-width: 760px) {
  .site-header {
    height: 78px;
    padding: 0 22px;
  }
  .lobby {
    padding: 20px;
  }
  .greeting {
    align-items: flex-start;
    gap: 18px;
    flex-direction: column;
  }
  h1 {
    font-size: 29px;
  }
  .wallet {
    gap: 18px;
    padding: 12px 18px;
    width: 100%;
    justify-content: space-between;
  }
  .feature {
    height: 380px;
  }
  .feature > img {
    object-position: 66% center;
  }
  .feature-copy {
    left: 24px;
    top: 28px;
  }
  .feature h2 {
    font-size: 38px;
  }
  .feature:after {
    background: linear-gradient(90deg, #244d46aa, transparent);
  }
  .game-grid {
    grid-template-columns: 1fr;
  }
  .game-card {
    display: grid;
    grid-template-columns: 34% 1fr;
  }
  .card-art {
    height: 100%;
    min-height: 160px;
  }
  .card-art > img {
    width: 90%;
    height: auto;
  }
  .card-copy {
    padding: 18px;
  }
  .card-copy h3 {
    font-size: 20px;
  }
  .section-heading p {
    display: none;
  }
  .login-scene {
    margin: 5px 16px;
    height: calc(100vh - 100px);
  }
  .login-scene > div {
    display: none;
  }
  .lobby-page .game-login-overlay {
    padding: 20px;
    justify-content: center;
  }
  .account-bar {
    gap: 6px;
    font-size: 12px;
  }
  .brand {
    font-size: 16px;
  }
  .card-copy p {
    margin: 10px 0 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
