:root {
  color-scheme: light;
  --paper: #f3f1ea;
  --paper-deep: #e5e7df;
  --ink: #15241f;
  --muted: #66716c;
  --green: #00694b;
  --green-deep: #063d30;
  --white: #ffffff;
  --line: rgba(26, 53, 44, 0.14);
  --shadow: 0 24px 70px rgba(25, 47, 39, 0.13);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang HK", "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--paper);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 0%, rgba(255, 255, 255, 0.92), transparent 28%),
    radial-gradient(circle at 92% 8%, rgba(0, 105, 75, 0.1), transparent 24%),
    linear-gradient(150deg, #f6f4ee 0%, #e8ece7 100%);
}

a {
  color: inherit;
}

a:focus-visible {
  outline: 3px solid #e5b945;
  outline-offset: 5px;
}

.site-shell {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 32px 0 28px;
}

.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: block;
  width: 118px;
  height: 74px;
  overflow: hidden;
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: 118px;
  height: 118px;
  margin-top: -23px;
  object-fit: contain;
}

.preview-label,
.eyebrow,
.card-content p,
.site-footer {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.preview-label {
  padding: 9px 13px;
  border: 1px solid rgba(0, 105, 75, 0.2);
  border-radius: 999px;
  color: var(--green-deep);
  background: rgba(255, 255, 255, 0.58);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  align-items: end;
  gap: 48px;
  padding: 70px 0 42px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--green);
}

.hero h1 {
  max-width: 720px;
  margin: 0;
  font-family: "Songti TC", "Noto Serif TC", "PMingLiU", serif;
  font-size: clamp(42px, 6vw, 76px);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.hero-copy {
  margin: 0;
  padding-left: 24px;
  border-left: 2px solid var(--green);
  color: var(--muted);
  font-size: 15px;
  line-height: 1.85;
}

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

.game-card {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 590px;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 22px;
  color: var(--white);
  box-shadow: var(--shadow);
  text-decoration: none;
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.game-card::after {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: inherit;
  content: "";
  pointer-events: none;
}

.game-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 32px 84px rgba(25, 47, 39, 0.2);
}

.candlestick-card {
  background:
    radial-gradient(circle at 90% 10%, rgba(53, 217, 159, 0.2), transparent 30%),
    linear-gradient(155deg, #073e31 0%, #061f1a 100%);
}

.cashflow-card {
  color: #321f14;
  background:
    radial-gradient(circle at 88% 5%, rgba(255, 242, 173, 0.74), transparent 29%),
    linear-gradient(150deg, #ebb967 0%, #d97855 100%);
}

.banner-card {
  background:
    radial-gradient(circle at 8% 8%, rgba(62, 199, 183, 0.22), transparent 28%),
    linear-gradient(150deg, #14384b 0%, #0a202e 100%);
}

.web-pet-card {
  background:
    radial-gradient(circle at 90% 8%, rgba(244, 190, 81, 0.18), transparent 28%),
    linear-gradient(150deg, #502628 0%, #251619 100%);
}

.card-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 22px 0;
}

.game-number {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  opacity: 0.74;
}

.access-badge {
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.access-badge.protected {
  border: 1px solid rgba(255, 255, 255, 0.26);
  color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.07);
}

.cashflow-card .access-badge.protected {
  border-color: rgba(71, 45, 24, 0.16);
  color: #472d18;
  background: rgba(255, 248, 220, 0.62);
}

.card-visual {
  position: relative;
  height: 245px;
  margin: 20px 20px 0;
  overflow: hidden;
  border-radius: 15px;
}

.candlestick-visual {
  border: 1px solid rgba(167, 232, 208, 0.2);
  background: rgba(2, 28, 22, 0.58);
}

.market-grid {
  position: absolute;
  inset: 0;
  opacity: 0.24;
  background-image:
    linear-gradient(rgba(168, 221, 201, 0.25) 1px, transparent 1px),
    linear-gradient(90deg, rgba(168, 221, 201, 0.25) 1px, transparent 1px);
  background-size: 36px 36px;
}

.candle {
  position: absolute;
  bottom: 42px;
  width: 18px;
  border-radius: 2px;
  background: #37b78a;
  box-shadow: 0 0 20px rgba(55, 183, 138, 0.2);
}

.candle::before {
  position: absolute;
  top: -24px;
  bottom: -26px;
  left: 50%;
  width: 2px;
  transform: translateX(-50%);
  background: inherit;
  content: "";
}

.candle-one {
  left: 13%;
  height: 58px;
}

.candle-two {
  left: 30%;
  bottom: 72px;
  height: 82px;
}

.candle-three {
  left: 47%;
  bottom: 55px;
  height: 44px;
  background: #db6e68;
}

.candle-four {
  left: 64%;
  bottom: 84px;
  height: 66px;
}

.candle-five {
  left: 81%;
  bottom: 106px;
  height: 72px;
}

.market-value {
  position: absolute;
  right: 16px;
  bottom: 14px;
  color: #a7e8d0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 18px;
  font-weight: 800;
}

.city-visual {
  background: linear-gradient(180deg, rgba(255, 240, 188, 0.64), rgba(239, 177, 114, 0.38));
}

.sun {
  position: absolute;
  top: 24px;
  right: 32px;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #ffe89a;
  box-shadow: 0 0 36px rgba(255, 230, 139, 0.84);
}

.building {
  position: absolute;
  bottom: 41px;
  border-radius: 5px 5px 0 0;
  background: #774f37;
  box-shadow: inset 0 10px rgba(255, 255, 255, 0.08);
}

.building::after {
  position: absolute;
  inset: 18px 9px 10px;
  content: "";
  opacity: 0.54;
  background-image: radial-gradient(circle, #ffd981 2px, transparent 3px);
  background-size: 16px 20px;
}

.building-one {
  left: 10%;
  width: 19%;
  height: 100px;
}

.building-two {
  left: 31%;
  width: 22%;
  height: 154px;
  background: #5f493c;
}

.building-three {
  left: 55%;
  width: 15%;
  height: 120px;
  background: #87583e;
}

.building-four {
  right: 8%;
  width: 19%;
  height: 178px;
  background: #513f39;
}

.city-road {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 42px;
  background: #4e4038;
}

.city-road::after {
  position: absolute;
  top: 20px;
  right: 8%;
  left: 8%;
  height: 2px;
  content: "";
  background: repeating-linear-gradient(90deg, #f7d98b 0 18px, transparent 18px 34px);
}

.coin {
  position: absolute;
  z-index: 2;
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 2px solid #9a611f;
  border-radius: 50%;
  color: #744214;
  background: #f9d46f;
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(83, 45, 19, 0.22);
}

.coin-one {
  top: 52px;
  left: 16%;
}

.coin-two {
  top: 94px;
  right: 27%;
}

.banner-visual {
  display: grid;
  place-items: center;
  background: rgba(5, 27, 39, 0.54);
}

.web-pet-visual {
  background: linear-gradient(150deg, rgba(255, 247, 228, 0.98), rgba(221, 227, 221, 0.9));
}

.preview-page {
  position: absolute;
  inset: 17px 28px 20px;
  overflow: hidden;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 16px 36px rgba(31, 19, 20, 0.24);
}

.preview-page i {
  position: absolute;
  display: block;
}

.preview-masthead {
  top: 0;
  right: 0;
  left: 0;
  height: 48px;
  border-bottom: 1px solid #d7ddd9;
  background: linear-gradient(90deg, #f8faf8 0 34%, #edf2ee 34%);
}

.preview-masthead::before {
  position: absolute;
  top: 13px;
  left: 18px;
  color: #087354;
  content: "信報";
  font: 800 19px/1 "Songti TC", "PMingLiU", serif;
}

.preview-nav {
  top: 48px;
  right: 0;
  left: 0;
  height: 16px;
  background: #0c875f;
}

.preview-story {
  left: 18px;
  width: 57%;
  height: 46px;
  border-bottom: 1px solid #e1e4e2;
  background: linear-gradient(90deg, #d5ddda 34%, transparent 34%);
}

.preview-story::after {
  position: absolute;
  top: 7px;
  right: 0;
  width: 58%;
  height: 5px;
  border-radius: 999px;
  background: #aeb8b4;
  box-shadow: 0 12px #d7dcda, 0 24px #e2e5e3;
  content: "";
}

.preview-story-one {
  top: 82px;
}

.preview-story-two {
  top: 140px;
}

.preview-bubble {
  position: absolute;
  z-index: 2;
  right: 42px;
  bottom: 92px;
  padding: 8px 12px;
  border: 2px solid #8d1d20;
  border-radius: 12px;
  color: #551014;
  background: #fff8d9;
  font-size: 10px;
  font-weight: 800;
  box-shadow: 0 5px 14px rgba(64, 20, 23, 0.2);
}

.preview-bubble::after {
  position: absolute;
  right: 22px;
  bottom: -6px;
  width: 9px;
  height: 9px;
  border-right: 2px solid #8d1d20;
  border-bottom: 2px solid #8d1d20;
  background: #fff8d9;
  content: "";
  transform: rotate(45deg);
}

.preview-pet {
  position: absolute;
  z-index: 2;
  right: 70px;
  bottom: 13px;
  width: 80px;
  height: 87px;
  background-image: url("web-pet/assets/crimson-zaku-web.webp");
  background-repeat: no-repeat;
  background-size: 640px 348px;
  image-rendering: pixelated;
}

.browser-frame {
  position: relative;
  width: 86%;
  height: 78%;
  overflow: hidden;
  border: 1px solid rgba(189, 229, 224, 0.32);
  border-radius: 8px;
  background: #edf1ef;
  box-shadow: 0 20px 38px rgba(2, 14, 21, 0.25);
}

.browser-bar {
  display: block;
  height: 20px;
  background: #d9dfdc;
}

.browser-bar::before {
  display: block;
  width: 5px;
  height: 5px;
  margin: 7px 0 0 9px;
  border-radius: 50%;
  background: #91a09a;
  box-shadow: 10px 0 #91a09a, 20px 0 #91a09a;
  content: "";
}

.content-line {
  position: absolute;
  left: 9%;
  display: block;
  height: 6px;
  border-radius: 999px;
  background: #afbbb6;
}

.line-long {
  top: 42px;
  width: 48%;
}

.line-short {
  top: 57px;
  width: 34%;
}

.banner-unit {
  position: absolute;
  top: 37px;
  right: 7%;
  display: grid;
  width: 30%;
  height: 92px;
  place-items: center;
  border-radius: 3px;
  background: linear-gradient(145deg, #087454, #113c4d);
}

.banner-unit::before {
  color: rgba(255, 255, 255, 0.86);
  content: "▲ 64%";
  font-size: 11px;
  font-style: normal;
  font-weight: 850;
}

.banner-unit i {
  position: absolute;
  right: 10%;
  bottom: 15px;
  left: 10%;
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.26);
}

.banner-unit i:last-child {
  bottom: 7px;
  right: 42%;
}

.content-block {
  position: absolute;
  bottom: 22px;
  left: 9%;
  width: 49%;
  height: 65px;
  border-radius: 4px;
  background:
    linear-gradient(135deg, rgba(0, 105, 75, 0.14), transparent),
    #d8dfdc;
}

.pulse-dot {
  position: absolute;
  right: 22px;
  bottom: 19px;
  width: 12px;
  height: 12px;
  border: 3px solid #8be1cd;
  border-radius: 50%;
  box-shadow: 0 0 0 8px rgba(139, 225, 205, 0.1);
}

.card-content {
  padding: 30px 24px 0;
}

.card-content p {
  margin: 0 0 10px;
  color: #9dddc4;
}

.cashflow-card .card-content p {
  color: #70411f;
}

.banner-card .card-content p {
  color: #80d3c7;
}

.web-pet-card .card-content p {
  color: #f2b4a8;
}

.card-content h2 {
  margin: 0;
  font-family: "Songti TC", "Noto Serif TC", "PMingLiU", serif;
  font-size: clamp(28px, 3vw, 35px);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.card-description {
  display: block;
  min-height: 54px;
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 13px;
  line-height: 1.7;
}

.cashflow-card .card-description {
  color: rgba(55, 32, 18, 0.72);
}

.card-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: auto 24px 24px;
  padding-top: 19px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 13px;
  font-weight: 800;
}

.cashflow-card .card-action {
  border-color: rgba(77, 44, 23, 0.18);
}

.card-action span {
  font-size: 20px;
  transition: transform 180ms ease;
}

.game-card:hover .card-action span {
  transform: translate(3px, -3px);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  margin-top: 42px;
  padding-top: 23px;
  border-top: 1px solid var(--line);
  color: #77817c;
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .hero-copy {
    max-width: 580px;
  }

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

  .game-card {
    display: grid;
    min-height: 0;
    grid-template-columns: minmax(280px, 0.9fr) minmax(300px, 1.1fr);
    grid-template-rows: auto 1fr auto;
  }

  .card-topline {
    grid-column: 1 / -1;
  }

  .card-visual {
    height: 260px;
    grid-row: 2 / 4;
    margin-bottom: 20px;
  }

  .card-content {
    padding-top: 42px;
  }

  .card-action {
    width: auto;
  }
}

@media (max-width: 760px) {
  .site-shell {
    width: min(100% - 28px, 580px);
    padding-top: 18px;
  }

  .masthead {
    align-items: flex-start;
    padding-bottom: 20px;
  }

  .brand {
    width: 108px;
    height: 68px;
  }

  .brand-logo {
    width: 108px;
    height: 108px;
    margin-top: -21px;
  }

  .preview-label {
    padding: 7px 9px;
    font-size: 8px;
  }

  .hero {
    padding: 48px 2px 30px;
  }

  .hero h1 {
    font-size: clamp(38px, 13vw, 56px);
  }

  .hero-copy {
    padding-left: 17px;
    font-size: 14px;
  }

  .game-card {
    display: flex;
    min-height: 570px;
  }

  .card-visual {
    width: auto;
    height: 230px;
    margin-bottom: 0;
  }

  .card-content {
    padding-top: 28px;
  }

  .card-content h2 {
    font-size: 31px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
