:root {
  color-scheme: dark;
  --ink: #fff4dc;
  --muted: rgba(255, 244, 220, .68);
  --paper: #f8e0aa;
  --red: #cf2f2f;
  --deep-red: #65171f;
  --gold: #f7b94b;
  --blue: #273e63;
  --night: #120d12;
  --line: rgba(255, 224, 155, .36);
  --shadow: 0 20px 55px rgba(0, 0, 0, .45);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(circle at 18% 8%, rgba(193, 54, 42, .28), transparent 34%),
    radial-gradient(circle at 82% 18%, rgba(36, 96, 144, .28), transparent 32%),
    #09090d;
  font-family: "Songti SC", "Noto Serif SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}

body {
  display: grid;
  place-items: center;
  padding: 18px;
}

button {
  border: 0;
  color: inherit;
  font: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.phone-frame {
  position: relative;
  width: min(100vw, 430px);
  height: min(100dvh, 932px);
  min-height: 720px;
  overflow: hidden;
  border: 1px solid rgba(255, 221, 148, .24);
  border-radius: 28px;
  background: var(--night);
  box-shadow: 0 28px 90px rgba(0, 0, 0, .55);
  isolation: isolate;
}

.phone-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08), inset 0 0 40px rgba(255, 180, 75, .1);
}

.screen {
  position: absolute;
  inset: 0;
  display: none;
  overflow: hidden;
  color: var(--ink);
}

.screen.is-active {
  display: block;
  animation: screenIn .36s ease both;
}

.lantern-bg,
.stage-bg,
.map-bg,
.social-bg,
.shop-bg,
.paper-bg {
  position: absolute;
  inset: 0;
  z-index: -3;
  background-size: cover;
  background-position: center;
}

.lantern-bg {
  background-image:
    linear-gradient(180deg, rgba(15, 12, 20, .14), rgba(8, 6, 10, .82)),
    url("./assets/lantern-wall.jpg");
}

.stage-bg {
  background:
    radial-gradient(circle at 50% 34%, rgba(248, 193, 87, .16), transparent 40%),
    linear-gradient(180deg, rgba(35, 17, 14, .3), rgba(20, 7, 8, .76)),
    url("./assets/game-tangdeng.jpg") center / cover;
  filter: saturate(1.02) contrast(1.02);
}

.map-bg {
  background:
    radial-gradient(circle at 50% 36%, rgba(248, 193, 87, .16), transparent 40%),
    linear-gradient(180deg, rgba(38, 18, 12, .42), rgba(22, 8, 8, .7)),
    url("./assets/game-tangdeng.jpg") center / cover;
}

.social-bg {
  background:
    linear-gradient(180deg, rgba(18, 17, 25, .95), rgba(10, 10, 15, .98)),
    url("./assets/social-ref.jpg") center / cover;
}

.shop-bg {
  background: #111;
}

.paper-bg {
  background:
    radial-gradient(circle at 15% 10%, rgba(255, 231, 173, .55), transparent 34%),
    linear-gradient(145deg, #351015, #111021 48%, #422017);
}

.paper-bg.warm {
  background:
    radial-gradient(circle at 20% 0%, rgba(254, 211, 111, .55), transparent 35%),
    linear-gradient(160deg, #2a1115, #14111b 52%, #4d1d16);
}

.topbar,
.shop-head,
.feed-head {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 64px;
  padding: 18px 18px 0;
}

.topbar {
  justify-content: flex-end;
}

.icon-btn,
.back-btn,
.home-fab {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(16, 15, 19, .58);
  border: 1px solid rgba(255, 241, 203, .22);
  color: var(--ink);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .28);
}

.icon-btn img,
.home-fab img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.menu-btn {
  margin-right: auto;
}

.status-pill {
  min-width: 66px;
  height: 32px;
  padding: 0 14px 0 31px;
  border-radius: 99px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  color: #fcebd0;
  font-weight: 800;
  background: linear-gradient(90deg, rgba(25, 19, 23, .8), rgba(39, 31, 35, .5));
  border: 1px solid rgba(255, 218, 139, .2);
  position: relative;
}

.status-pill::before {
  content: "";
  position: absolute;
  left: 8px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 25%, #fff4b7, #ee8d36 55%, #b62e2a 56%);
  box-shadow: 0 0 10px rgba(247, 185, 75, .45);
}

.status-small {
  min-width: 42px;
}

.home-title {
  position: absolute;
  left: 24px;
  right: 22px;
  top: 92px;
  text-shadow: 0 6px 22px rgba(0, 0, 0, .8);
}

.home-title span,
.screen-head span,
.map-title span,
.game-logo span,
.shop-hero span,
.goods-card small {
  color: var(--gold);
  font-size: 13px;
  letter-spacing: 0;
  font-weight: 800;
}

.home-title h1,
.game-logo h2,
.screen-head h2,
.shop-hero h2 {
  margin: 4px 0 6px;
  font-size: clamp(42px, 12vw, 58px);
  line-height: .92;
  font-weight: 900;
  color: #fff8df;
  text-shadow: 0 3px 0 #7e1f20, 0 16px 35px rgba(0, 0, 0, .45);
}

.home-title p {
  margin: 0;
  color: rgba(255, 242, 214, .84);
  font-size: 15px;
}

.entry-grid {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 28px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.entry-card {
  position: relative;
  isolation: isolate;
  min-height: 96px;
  overflow: hidden;
  border-radius: 16px;
  display: grid;
  grid-template-columns: 72px 1fr;
  grid-template-rows: auto auto;
  align-content: center;
  column-gap: 14px;
  padding: 18px;
  text-align: left;
  color: #fff7e4;
  border: 1px solid rgba(255, 224, 155, .28);
  box-shadow: var(--shadow);
  background: rgba(74, 24, 26, .72);
}

.entry-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(110deg, rgba(129, 31, 31, .92), rgba(24, 20, 31, .58));
}

.entry-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-size: cover;
  background-position: center;
  opacity: .48;
  transition: transform .35s ease;
}

.entry-card > * {
  position: relative;
  z-index: 1;
}

.entry-game::after {
  background-image: url("./assets/game-street.jpg");
}

.entry-social::after {
  background-image: url("./assets/hall-display.jpg");
}

.entry-shop::after {
  background-image: url("./assets/poster-green.png");
}

.entry-card:active::after {
  transform: scale(1.04);
}

.entry-mark {
  grid-row: 1 / span 2;
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  color: #7a1719;
  font-weight: 900;
  font-size: 24px;
  background: radial-gradient(circle at 50% 25%, #fff2c1, #f7b94b 70%);
  box-shadow: 0 0 0 6px rgba(255, 216, 142, .14);
}

.entry-card strong {
  font-size: 27px;
  line-height: 1;
}

.entry-card small {
  margin-top: 6px;
  color: rgba(255, 244, 220, .76);
  font-size: 13px;
}

.home-fab,
.back-btn {
  position: absolute;
  z-index: 6;
  left: 18px;
  bottom: 22px;
}

.back-btn {
  top: 22px;
  bottom: auto;
  font-size: 34px;
  line-height: 1;
}

.back-btn.inline {
  position: static;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
}

.game-logo {
  position: absolute;
  left: 28px;
  right: 28px;
  top: 84px;
}

.game-logo h2 {
  font-size: clamp(64px, 19vw, 84px);
}

.start-btn,
.next-btn {
  position: absolute;
  left: 50%;
  bottom: 88px;
  transform: translateX(-50%);
  min-width: 190px;
  height: 58px;
  border-radius: 999px;
  color: #681614;
  font-weight: 900;
  font-size: 22px;
  background:
    linear-gradient(180deg, #fff4bf, #f2ad3d 62%, #cd6627);
  border: 2px solid rgba(255, 255, 255, .42);
  box-shadow: 0 16px 36px rgba(0, 0, 0, .45), 0 0 28px rgba(244, 183, 75, .32);
}

.start-btn {
  animation: pulseStart 1.8s ease-in-out infinite;
}

.screen-head {
  position: relative;
  z-index: 2;
  padding: 82px 24px 0;
}

.screen-head h2 {
  font-size: 30px;
  line-height: 1.1;
}

.role-track {
  position: absolute;
  left: 0;
  right: 0;
  top: 210px;
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 8px 26px 18px;
  scroll-snap-type: x mandatory;
}

.role-track::-webkit-scrollbar,
.masonry-feed::-webkit-scrollbar,
.goods-grid::-webkit-scrollbar {
  display: none;
}

.role-card {
  flex: 0 0 188px;
  height: 314px;
  scroll-snap-align: center;
  border-radius: 26px;
  padding: 14px 12px;
  display: grid;
  align-content: center;
  gap: 16px;
  color: #fff1d2;
  background:
    linear-gradient(180deg, rgba(255, 229, 165, .14), rgba(118, 37, 34, .2)),
    rgba(11, 11, 16, .74);
  border: 1px solid rgba(255, 228, 156, .22);
  box-shadow: var(--shadow);
}

.role-card.is-selected {
  border-color: rgba(255, 209, 93, .82);
  box-shadow: 0 0 0 4px rgba(246, 184, 75, .12), var(--shadow);
}

.role-image-wrap {
  display: grid;
  place-items: end center;
  width: 100%;
  height: 232px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 22px;
  background: radial-gradient(circle at 50% 42%, rgba(255, 231, 164, .2), transparent 58%);
}

.role-image {
  width: 192px;
  max-width: none;
  height: 244px;
  object-fit: contain;
  filter: drop-shadow(0 16px 18px rgba(0, 0, 0, .42));
}

.role-card small {
  font-size: 16px;
  color: rgba(255, 241, 211, .82);
}

.next-btn {
  bottom: 44px;
}

.map-back {
  top: auto;
  bottom: 22px;
}

.map-cards {
  position: absolute;
  left: 18px;
  top: 28px;
  z-index: 6;
  display: flex;
  gap: 8px;
}

.map-cards button {
  width: 72px;
  height: 96px;
  border-radius: 12px;
  padding: 10px 8px;
  color: #7a1d16;
  font-weight: 900;
  background:
    linear-gradient(180deg, #fff3c9, #f1bc5b);
  border: 1px solid rgba(122, 29, 22, .28);
  box-shadow: 0 12px 24px rgba(0, 0, 0, .3);
}

.map-title {
  position: absolute;
  right: 18px;
  top: 130px;
  z-index: 4;
  width: 150px;
  padding: 13px 14px;
  border-radius: 14px;
  background: rgba(16, 14, 19, .62);
  border: 1px solid rgba(255, 224, 155, .26);
}

.map-title strong {
  display: block;
  margin-top: 3px;
  font-size: 20px;
  line-height: 1.1;
}

.lantern-route {
  position: absolute;
  inset: 178px 20px 128px;
}

.route-line {
  position: absolute;
  inset: 52px 82px 18px 74px;
  border-left: 3px solid rgba(255, 216, 132, .5);
  border-radius: 50%;
  transform: rotate(-9deg);
  filter: drop-shadow(0 0 8px rgba(247, 185, 75, .34));
}

.node {
  position: absolute;
  width: 86px;
  height: 124px;
  padding: 0;
  color: #fff6dd;
  font-weight: 900;
  background: transparent;
  border: 0;
  filter: drop-shadow(0 18px 18px rgba(0, 0, 0, .36)) drop-shadow(0 0 18px rgba(255, 205, 103, .24));
  transition: transform .22s ease, filter .22s ease;
}

.node::before {
  content: "";
  position: absolute;
  inset: -10px -15px -18px;
  background: url("./assets/map-lantern-node.png") center / contain no-repeat;
}

.node:active {
  transform: translateY(2px) scale(.98);
  filter: drop-shadow(0 10px 14px rgba(0, 0, 0, .38)) drop-shadow(0 0 24px rgba(255, 205, 103, .34));
}

.node span {
  position: absolute;
  left: 15px;
  right: 15px;
  top: 72px;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  place-items: center;
  min-height: 27px;
  padding: 0 4px;
  border-radius: 999px;
  color: #fff8e8;
  font-size: 14px;
  line-height: 1.05;
  text-shadow: 0 2px 4px rgba(86, 10, 9, .56);
}

.node-one {
  left: 38px;
  top: 4px;
}

.node-two {
  right: 36px;
  top: 112px;
}

.node-three {
  left: 30px;
  top: 256px;
}

.node-four {
  right: 42px;
  bottom: -8px;
}

.punish-card {
  position: absolute;
  right: 20px;
  bottom: 42px;
  z-index: 5;
  width: 138px;
  height: 102px;
  border-radius: 18px;
  padding: 16px;
  color: #fff3da;
  text-align: left;
  background:
    linear-gradient(135deg, rgba(202, 48, 45, .96), rgba(90, 28, 39, .9));
  border: 1px solid rgba(255, 218, 139, .34);
  box-shadow: var(--shadow);
}

.punish-card span {
  color: var(--gold);
  font-weight: 900;
}

.punish-card strong {
  display: block;
  margin-top: 7px;
  font-size: 18px;
}

.dice-btn {
  position: absolute;
  right: 28px;
  bottom: 158px;
  z-index: 5;
  width: 66px;
  height: 66px;
  border-radius: 22px;
  color: #702017;
  font-size: 26px;
  background: #fff0c8;
  box-shadow: 0 14px 30px rgba(0, 0, 0, .35);
}

.dice-btn img {
  width: 58px;
  height: 46px;
  object-fit: contain;
}

.mini-game-list {
  position: absolute;
  left: 20px;
  right: 20px;
  top: 238px;
  display: grid;
  gap: 14px;
}

.mini-game {
  position: relative;
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-height: 126px;
  overflow: hidden;
  padding: 12px 14px 12px 12px;
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(255, 231, 171, .1), transparent 38%),
    rgba(12, 11, 16, .82);
  border: 1px solid rgba(255, 224, 155, .3);
  box-shadow: 0 18px 44px rgba(0, 0, 0, .36);
}

.mini-game::before {
  content: counter(mini);
  counter-increment: mini;
  position: absolute;
  right: 14px;
  top: 11px;
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  color: #6b1b18;
  font-size: 13px;
  font-weight: 900;
  background: linear-gradient(180deg, #fff1be, #f0b95f);
  box-shadow: 0 8px 18px rgba(0, 0, 0, .28);
}

.mini-game-list {
  counter-reset: mini;
}

.mini-thumb {
  display: block;
  width: 118px;
  height: 98px;
  overflow: hidden;
  border-radius: 14px;
  background: rgba(255, 238, 193, .08);
  border: 1px solid rgba(255, 234, 176, .24);
}

.mini-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.mini-game:first-child .mini-thumb img {
  transform: scale(1.16);
  object-position: center 58%;
}

.mini-copy {
  min-width: 0;
  padding-right: 22px;
}

.mini-copy small {
  display: inline-flex;
  align-items: center;
  min-height: 23px;
  padding: 0 9px;
  border-radius: 999px;
  color: #7a1f18;
  font-size: 12px;
  font-weight: 900;
  background: rgba(247, 185, 75, .92);
}

.mini-copy strong {
  display: block;
  margin-top: 9px;
  font-size: 25px;
  line-height: 1.1;
  color: #fff2cf;
}

.mini-copy p {
  margin: 7px 0 0;
  color: rgba(255, 244, 220, .64);
  font-size: 13px;
  line-height: 1.45;
}

.feed-head {
  height: 74px;
  padding-top: 22px;
  background: rgba(18, 17, 25, .76);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.feed-head nav {
  flex: 1;
  display: flex;
  justify-content: center;
  gap: 24px;
}

.feed-head nav button,
.shop-tabs button,
.bottom-nav button {
  background: transparent;
  color: rgba(255, 244, 220, .58);
  font-weight: 800;
}

.feed-head nav .is-on,
.shop-tabs .is-on,
.bottom-nav .is-on {
  color: #fff3db;
}

.masonry-feed {
  position: absolute;
  inset: 82px 10px 82px;
  overflow-y: auto;
  columns: 2;
  column-gap: 10px;
  padding-bottom: 92px;
}

.post-card {
  break-inside: avoid;
  display: inline-block;
  width: 100%;
  margin: 0 0 10px;
  overflow: hidden;
  border-radius: 12px;
  background: #1d1b25;
  border: 1px solid rgba(255, 255, 255, .08);
}

.post-card img {
  width: 100%;
  min-height: 128px;
  object-fit: cover;
  display: block;
}

.post-card.large img {
  min-height: 210px;
}

.post-card h3 {
  margin: 9px 10px 5px;
  font-size: 15px;
  line-height: 1.26;
}

.post-card p {
  margin: 0 10px 10px;
  color: rgba(255, 244, 220, .67);
  font-size: 12px;
  line-height: 1.45;
}

.post-card span {
  display: block;
  margin: 0 10px 12px;
  color: rgba(255, 244, 220, .52);
  font-size: 13px;
}

.post-plus {
  position: absolute;
  left: 50%;
  bottom: 51px;
  z-index: 8;
  width: 54px;
  height: 42px;
  transform: translateX(-50%);
  border-radius: 16px;
  color: #fff;
  font-size: 28px;
  font-weight: 900;
  background: linear-gradient(180deg, #ff4f4e, #d51e3a);
  box-shadow: 0 14px 28px rgba(255, 31, 63, .25);
}

.bottom-nav {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 7;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  height: 58px;
  background: rgba(14, 14, 18, .92);
  border-top: 1px solid rgba(255, 255, 255, .08);
}

.bottom-nav button {
  font-size: 12px;
}

.shop-head {
  justify-content: space-between;
  height: 70px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.shop-head strong {
  color: #fff;
  font-size: 18px;
}

.shop-hero {
  margin: 14px 16px 0;
  min-height: 148px;
  display: grid;
  grid-template-columns: 118px 1fr;
  gap: 14px;
  align-items: center;
  padding: 14px;
  overflow: hidden;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(125, 24, 30, .94), rgba(26, 22, 28, .98));
  border: 1px solid rgba(255, 228, 156, .18);
}

.shop-hero img {
  width: 118px;
  height: 118px;
  object-fit: cover;
  object-position: center;
  border-radius: 12px;
}

.shop-hero h2 {
  font-size: 29px;
}

.shop-hero p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.shop-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 18px 16px 12px;
}

.shop-tabs button {
  height: 82px;
  border-radius: 50%;
  font-size: 12px;
  background: #1c1b20;
  border: 1px solid rgba(255, 255, 255, .1);
}

.goods-grid {
  position: absolute;
  inset: 330px 14px 62px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  overflow-y: auto;
  padding-bottom: 12px;
}

.goods-card {
  min-width: 0;
  padding: 10px;
  border-radius: 14px;
  background: #19171c;
  border: 1px solid rgba(255, 255, 255, .09);
}

.goods-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: center;
  border-radius: 10px;
}

.goods-card small,
.goods-card strong,
.goods-card p,
.goods-card span {
  display: block;
  margin-top: 7px;
}

.goods-card strong {
  color: #fff;
  font-size: 15px;
  line-height: 1.2;
}

.goods-card p {
  min-height: 34px;
  margin-bottom: 0;
  color: rgba(255, 244, 220, .62);
  font-size: 12px;
  line-height: 1.4;
}

.goods-card span {
  color: #fff2d3;
  font-weight: 900;
  font-size: 18px;
}

.goods-card button {
  width: 100%;
  height: 30px;
  margin-top: 9px;
  border-radius: 8px;
  color: #1b1110;
  font-weight: 900;
  background: #f2c36d;
}

.toast {
  position: absolute;
  left: 50%;
  bottom: 86px;
  z-index: 40;
  max-width: 78%;
  padding: 10px 14px;
  border-radius: 999px;
  color: #fff5dc;
  background: rgba(15, 13, 17, .86);
  border: 1px solid rgba(255, 224, 155, .25);
  transform: translate(-50%, 12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
  font-size: 13px;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

@keyframes screenIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(.985);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes pulseStart {
  0%,
  100% {
    box-shadow: 0 16px 36px rgba(0, 0, 0, .45), 0 0 28px rgba(244, 183, 75, .32);
    filter: brightness(1);
  }

  50% {
    box-shadow: 0 16px 36px rgba(0, 0, 0, .45), 0 0 44px rgba(244, 183, 75, .6);
    filter: brightness(1.08);
  }
}

@keyframes nodePulse {
  0%,
  100% {
    opacity: .18;
    transform: translateX(-50%) scale(.88);
  }

  50% {
    opacity: .72;
    transform: translateX(-50%) scale(1.22);
  }
}

@media (max-width: 520px) {
  body {
    padding: 0;
    display: block;
    background: #120d12;
  }

  .phone-frame {
    width: 100vw;
    height: 100dvh;
    min-height: 100dvh;
    border: 0;
    border-radius: 0;
  }
}

@media (max-height: 760px) {
  .home-title {
    top: 78px;
  }

  .home-title h1 {
    font-size: 44px;
  }

  .entry-card {
    min-height: 82px;
    padding: 14px;
  }

  .role-track {
    top: 178px;
  }

  .role-card {
    height: 270px;
  }

  .role-image-wrap {
    height: 194px;
  }

  .role-image {
    width: 164px;
    height: 210px;
  }

  .lantern-route {
    inset: 134px 24px 106px;
  }

  .goods-grid {
    top: 310px;
  }
}

/* Home entry polish: replace rough bitmap badges with crafted H5 seal marks. */
.entry-card {
  grid-template-columns: 82px 1fr;
}

.entry-card::before {
  background:
    linear-gradient(90deg, rgba(153, 36, 33, .92), rgba(94, 28, 29, .66) 50%, rgba(19, 14, 19, .76)),
    radial-gradient(circle at 18% 50%, rgba(247, 212, 135, .2), transparent 28%),
    linear-gradient(135deg, rgba(111, 177, 152, .12), transparent 42%);
}

.entry-mark {
  position: relative;
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  overflow: visible;
  color: #7e211a;
  background:
    radial-gradient(circle at 50% 35%, #fff4c6 0 28%, #f8cf75 56%, #e18b35 100%);
  border: 1px solid rgba(255, 236, 170, .82);
  box-shadow:
    0 18px 24px rgba(58, 12, 8, .38),
    0 0 26px rgba(247, 212, 135, .26),
    inset 0 2px 0 rgba(255, 255, 238, .55),
    inset 0 -10px 24px rgba(157, 54, 21, .18);
}

.entry-mark::before {
  content: attr(data-seal);
  position: relative;
  z-index: 2;
  font-family: "Songti SC", "STSong", "Noto Serif CJK SC", serif;
  font-size: 34px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
  color: #7a1f19;
  text-shadow: 0 1px 0 rgba(255, 244, 205, .75), 0 8px 18px rgba(117, 25, 14, .22);
}

.entry-mark::after {
  content: "";
  position: absolute;
  inset: 8px;
  z-index: 1;
  border: 1px solid rgba(126, 33, 26, .24);
  box-shadow: inset 0 0 0 1px rgba(255, 244, 199, .26);
}

.entry-game .entry-mark {
  border-radius: 50%;
  clip-path: polygon(50% 0, 61% 17%, 80% 10%, 82% 32%, 100% 50%, 82% 68%, 80% 90%, 61% 83%, 50% 100%, 39% 83%, 20% 90%, 18% 68%, 0 50%, 18% 32%, 20% 10%, 39% 17%);
}

.entry-game .entry-mark::after {
  border-radius: 18px;
  clip-path: inherit;
}

.entry-social .entry-mark {
  border-radius: 23px;
  clip-path: polygon(16% 0, 84% 0, 100% 16%, 100% 84%, 84% 100%, 16% 100%, 0 84%, 0 16%);
}

.entry-social .entry-mark::after {
  border-radius: 22px 22px 14px 14px;
}

.entry-shop .entry-mark {
  border-radius: 24px;
  clip-path: polygon(22% 0, 78% 0, 100% 22%, 100% 78%, 78% 100%, 22% 100%, 0 78%, 0 22%);
}

.entry-shop .entry-mark::after {
  border-radius: 20px;
  clip-path: inherit;
}

.entry-card:active .entry-mark {
  transform: translateY(1px) scale(.98);
}

@media (max-height: 760px) {
  .entry-card {
    grid-template-columns: 74px 1fr;
    min-height: 88px;
  }

  .entry-mark {
    width: 66px;
    height: 66px;
  }

  .entry-mark::before {
    font-size: 28px;
  }
}

/* Final entry direction: no rough icons, just a refined lantern guide line. */
.entry-card {
  grid-template-columns: 16px 1fr;
  min-height: 96px;
  column-gap: 20px;
  padding: 17px 24px 17px 26px;
}

.entry-mark,
.entry-game .entry-mark,
.entry-social .entry-mark,
.entry-shop .entry-mark {
  width: 8px;
  height: 66px;
  border-radius: 999px;
  clip-path: none;
  background:
    linear-gradient(180deg, rgba(255, 248, 199, .96), rgba(247, 201, 97, .84) 48%, rgba(169, 51, 30, .68));
  border: 0;
  box-shadow:
    0 0 18px rgba(247, 212, 135, .44),
    0 12px 20px rgba(58, 12, 8, .34);
}

.entry-mark::before,
.entry-mark::after,
.entry-game .entry-mark::after,
.entry-social .entry-mark::after,
.entry-shop .entry-mark::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle at 42% 34%, #fff3b9, #f1b74f 72%, #a72822);
  border: 1px solid rgba(255, 235, 164, .62);
  box-shadow: 0 0 14px rgba(247, 212, 135, .35);
}

.entry-mark::before {
  top: -5px;
  z-index: 2;
}

.entry-mark::after {
  bottom: -5px;
  z-index: 2;
  inset: auto auto -5px 50%;
}

.entry-copy {
  position: relative;
}

.entry-copy::before {
  display: block;
  margin-bottom: 6px;
  color: rgba(247, 212, 135, .82);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
}

.entry-game .entry-copy::before {
  content: "活动入口 01";
}

.entry-social .entry-copy::before {
  content: "互动入口 02";
}

.entry-shop .entry-copy::before {
  content: "周边入口 03";
}

@media (max-height: 760px) {
  .event-status {
    top: 248px;
    padding: 14px 18px;
  }

  .entry-grid {
    bottom: 16px;
    gap: 10px;
  }

  .entry-card {
    grid-template-columns: 14px 1fr;
    min-height: 76px;
    padding: 10px 20px 10px 24px;
  }

  .entry-mark,
  .entry-game .entry-mark,
  .entry-social .entry-mark,
  .entry-shop .entry-mark {
    width: 7px;
    height: 48px;
  }

  .entry-copy::before {
    margin-bottom: 3px;
    font-size: 10px;
  }

  .entry-card strong {
    font-size: 28px;
  }

  .entry-card small {
    font-size: 13px;
  }
}

/* Premium case layer: keeps client assets, upgrades the presentation system. */
:root {
  --gold-soft: #ffe8a8;
  --ember: #f08f38;
  --wine: #7c1f23;
  --glass: rgba(32, 17, 18, .56);
}

.phone-frame {
  box-shadow: 0 34px 140px rgba(0, 0, 0, .68);
}

.screen::before,
.screen::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.screen::before {
  z-index: -2;
  background:
    radial-gradient(circle at 20% 12%, rgba(255, 223, 135, .17), transparent 25%),
    radial-gradient(circle at 82% 18%, rgba(198, 44, 38, .2), transparent 27%),
    linear-gradient(180deg, rgba(12, 6, 8, .08), rgba(12, 6, 8, .72));
}

.screen::after {
  z-index: 2;
  opacity: .13;
  background-image:
    linear-gradient(45deg, rgba(255, 233, 174, .22) 1px, transparent 1px),
    linear-gradient(-45deg, rgba(255, 233, 174, .1) 1px, transparent 1px);
  background-size: 36px 36px;
  mix-blend-mode: soft-light;
}

.topbar,
.home-title,
.event-status,
.play-loop,
.entry-grid,
.home-fab,
.back-btn,
.game-logo,
.event-panel,
.reward-preview,
.start-btn,
.screen-head,
.role-track,
.next-btn,
.map-cards,
.map-title,
.map-progress,
.lantern-route,
.punish-card,
.dice-btn,
.mini-game-list,
.feed-head,
.masonry-feed,
.post-plus,
.bottom-nav,
.shop-head,
.shop-hero,
.shop-tabs,
.goods-grid,
.toast {
  z-index: 5;
}

.back-btn,
.home-fab {
  z-index: 12;
}

.lantern-bg {
  background-image:
    radial-gradient(circle at 58% 34%, rgba(255, 226, 137, .16), transparent 28%),
    linear-gradient(180deg, rgba(16, 8, 8, .04), rgba(9, 5, 7, .56) 62%, rgba(9, 5, 7, .92)),
    url("./assets/generated-lantern-street.jpg");
  background-position: center;
}

.stage-bg {
  background:
    radial-gradient(circle at 52% 30%, rgba(255, 233, 154, .18), transparent 31%),
    linear-gradient(180deg, rgba(18, 8, 9, .06), rgba(18, 7, 8, .7) 70%, rgba(18, 7, 8, .92)),
    url("./assets/generated-lantern-street.jpg") center / cover;
  filter: saturate(1.08) contrast(1.03);
}

.paper-bg {
  background:
    radial-gradient(circle at 50% 43%, rgba(255, 229, 151, .12), transparent 36%),
    linear-gradient(180deg, rgba(26, 10, 9, .08), rgba(16, 7, 8, .75)),
    url("./assets/generated-role-room.jpg") center / cover;
}

.paper-bg.warm {
  background:
    radial-gradient(circle at 20% 0%, rgba(254, 211, 111, .46), transparent 35%),
    linear-gradient(160deg, #2a1115, #14111b 52%, #4d1d16);
}

.map-bg {
  background-image:
    radial-gradient(circle at 48% 20%, rgba(255, 226, 137, .12), transparent 32%),
    linear-gradient(180deg, rgba(12, 8, 10, .08), rgba(12, 8, 10, .18) 45%, rgba(10, 6, 8, .72)),
    url("./assets/client-map.png");
  background-size: 100% 100%, 100% 100%, auto 100%;
  background-position: center, center, 54% center;
  background-repeat: no-repeat;
  filter: saturate(1.05) contrast(1.04);
}

.icon-btn,
.back-btn,
.home-fab {
  background: linear-gradient(180deg, rgba(24, 17, 18, .78), rgba(8, 7, 9, .64));
  border: 1px solid rgba(255, 230, 168, .32);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .36), inset 0 1px 0 rgba(255, 245, 211, .16);
  backdrop-filter: blur(10px);
}

.status-pill {
  background: linear-gradient(90deg, rgba(30, 17, 18, .86), rgba(54, 30, 28, .6));
  border-color: rgba(255, 218, 139, .36);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .24), inset 0 1px 0 rgba(255, 245, 211, .14);
}

.home-title {
  top: 96px;
}

.home-title span,
.screen-head span,
.map-title span,
.game-logo span,
.event-panel span,
.shop-hero span,
.goods-card small {
  color: var(--gold-soft);
  text-shadow: 0 2px 10px rgba(88, 16, 12, .48);
}

.home-title h1,
.game-logo h2,
.screen-head h2,
.shop-hero h2 {
  color: #fff8df;
  text-shadow:
    0 3px 0 #8f2424,
    0 12px 34px rgba(0, 0, 0, .56),
    0 0 22px rgba(255, 215, 125, .2);
}

.home-title h1 {
  font-size: clamp(48px, 13.6vw, 66px);
  line-height: .9;
}

.home-title p {
  font-size: 16px;
  text-shadow: 0 5px 16px rgba(0, 0, 0, .7);
}

.event-status {
  position: absolute;
  left: 42px;
  right: 42px;
  top: 296px;
  min-height: 86px;
  padding: 13px 18px;
  border-radius: 20px;
  background:
    radial-gradient(circle at 15% 24%, rgba(255, 229, 151, .18), transparent 38%),
    linear-gradient(135deg, rgba(92, 24, 25, .62), rgba(14, 10, 13, .54));
  border: 1px solid rgba(255, 226, 157, .3);
  box-shadow: 0 18px 48px rgba(0, 0, 0, .34), inset 0 1px 0 rgba(255, 245, 211, .13);
  backdrop-filter: blur(8px);
}

.event-status span,
.reward-preview span {
  color: var(--gold-soft);
  font-size: 13px;
  font-weight: 900;
}

.event-status strong,
.reward-preview strong {
  display: block;
  margin-top: 4px;
  color: #fff8df;
  font-size: 24px;
  line-height: 1.05;
}

.event-status small {
  display: block;
  margin-top: 7px;
  color: rgba(255, 244, 220, .72);
  font-size: 12px;
}

.quest-meter {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
  margin-top: 12px;
}

.quest-meter i {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 235, 177, .2);
  box-shadow: inset 0 0 0 1px rgba(255, 230, 168, .1);
}

.quest-meter .is-on {
  background: linear-gradient(90deg, #fff1ad, #f4b747, #d84b2b);
  box-shadow: 0 0 16px rgba(247, 185, 75, .55);
}

.entry-grid {
  bottom: 24px;
  gap: 13px;
}

.entry-card {
  min-height: 98px;
  grid-template-columns: 86px 1fr;
  grid-template-rows: auto;
  gap: 16px;
  align-items: center;
  padding: 12px 16px;
  border-radius: 22px;
  border-color: rgba(255, 224, 155, .38);
  box-shadow: 0 22px 54px rgba(0, 0, 0, .46), inset 0 1px 0 rgba(255, 244, 210, .16);
}

.entry-card::before {
  background:
    linear-gradient(90deg, rgba(131, 27, 28, .94), rgba(95, 25, 25, .68) 48%, rgba(18, 13, 18, .58)),
    radial-gradient(circle at 18% 50%, rgba(255, 221, 143, .2), transparent 28%);
}

.entry-card::after {
  opacity: .28;
}

.entry-mark {
  grid-row: auto;
  width: 82px;
  height: 82px;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.entry-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 10px 16px rgba(72, 13, 8, .36)) drop-shadow(0 0 18px rgba(255, 219, 122, .26));
}

.entry-copy {
  display: grid;
  gap: 8px;
  align-content: center;
}

.entry-card strong {
  font-size: 31px;
}

.entry-card small {
  margin: 0;
  font-size: 14px;
}

.game-logo {
  top: 88px;
}

.game-logo h2 {
  font-size: clamp(70px, 20vw, 94px);
}

.event-panel {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 164px;
  padding: 18px 20px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(91, 27, 27, .66), rgba(17, 12, 16, .52));
  border: 1px solid rgba(255, 226, 157, .3);
  box-shadow: 0 20px 56px rgba(0, 0, 0, .38), inset 0 1px 0 rgba(255, 245, 211, .15);
  backdrop-filter: blur(10px);
}

.event-panel strong {
  display: block;
  margin-top: 4px;
  color: #fff8df;
  font-size: 31px;
  line-height: 1.05;
}

.event-panel small {
  display: block;
  margin-top: 9px;
  color: rgba(255, 244, 220, .74);
  font-size: 13px;
}

.reward-preview {
  position: absolute;
  right: 28px;
  top: 392px;
  width: 166px;
  padding: 13px 14px;
  border-radius: 18px;
  text-align: left;
  background: linear-gradient(135deg, rgba(26, 18, 20, .68), rgba(107, 29, 27, .52));
  border: 1px solid rgba(255, 226, 157, .26);
  box-shadow: 0 16px 38px rgba(0, 0, 0, .34), inset 0 1px 0 rgba(255, 245, 211, .12);
  backdrop-filter: blur(8px);
}

.reward-preview strong {
  font-size: 18px;
}

.play-loop {
  position: absolute;
  left: 30px;
  right: 30px;
  bottom: 330px;
  display: grid;
  grid-template-columns: 1fr 18px 1fr 18px 1fr;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 999px;
  background: rgba(15, 10, 13, .5);
  border: 1px solid rgba(255, 226, 157, .22);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .32), inset 0 1px 0 rgba(255, 245, 211, .12);
  backdrop-filter: blur(8px);
}

.play-loop span {
  color: rgba(255, 247, 222, .88);
  font-size: 13px;
  font-weight: 900;
  text-align: center;
  white-space: nowrap;
}

.play-loop i {
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 232, 162, .2), rgba(255, 216, 113, .82));
  box-shadow: 0 0 12px rgba(255, 216, 113, .4);
}

.start-btn,
.next-btn {
  min-width: 202px;
  height: 62px;
  background:
    radial-gradient(circle at 50% 10%, rgba(255, 255, 255, .54), transparent 28%),
    linear-gradient(180deg, #fff1bc, #f4b245 58%, #c94d28);
  box-shadow: 0 18px 42px rgba(0, 0, 0, .47), 0 0 34px rgba(244, 183, 75, .4);
}

.start-btn {
  bottom: 78px;
}

.screen-head {
  padding: 78px 24px 0;
}

.screen-head h2 {
  font-size: 31px;
}

#screen-roles .screen-head {
  padding-top: 76px;
}

.role-track {
  left: 20px;
  right: 20px;
  top: 192px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  overflow: visible;
  padding: 0;
  scroll-snap-type: none;
}

.role-card {
  position: relative;
  flex: initial;
  min-width: 0;
  height: 214px;
  scroll-snap-align: none;
  border-radius: 20px;
  padding: 10px 10px 12px;
  display: grid;
  grid-template-rows: 1fr auto;
  align-content: stretch;
  gap: 9px;
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 230, 162, .25), transparent 36%),
    linear-gradient(180deg, rgba(94, 28, 26, .44), rgba(15, 10, 13, .76));
  border-color: rgba(255, 228, 156, .3);
  box-shadow: 0 18px 42px rgba(0, 0, 0, .36), inset 0 1px 0 rgba(255, 245, 211, .13);
}

.role-card.is-selected {
  border-color: rgba(255, 211, 103, .9);
  box-shadow: 0 0 0 4px rgba(246, 184, 75, .13), 0 0 30px rgba(247, 185, 75, .28), 0 18px 42px rgba(0, 0, 0, .4);
}

.role-card.is-selected::after {
  content: "已选";
  position: absolute;
  right: 10px;
  top: 10px;
  padding: 4px 8px;
  border-radius: 999px;
  color: #7b1e18;
  font-size: 12px;
  font-weight: 900;
  background: linear-gradient(180deg, #fff2bd, #f4b648);
  box-shadow: 0 8px 16px rgba(0, 0, 0, .24);
}

.role-image-wrap {
  height: 158px;
  border-radius: 15px;
  background:
    radial-gradient(ellipse at 50% 76%, rgba(255, 219, 122, .36), transparent 43%),
    radial-gradient(circle at 50% 40%, rgba(255, 231, 164, .2), transparent 58%);
}

.role-image {
  width: 148px;
  height: 164px;
}

.role-card small {
  display: inline-grid;
  place-items: center;
  min-height: 28px;
  border-radius: 999px;
  color: #7c2018;
  background: rgba(255, 232, 170, .92);
  font-size: 14px;
  font-weight: 900;
  box-shadow: inset 0 0 0 1px rgba(139, 47, 24, .18);
}

.role-card.is-selected small {
  color: #fff7df;
  background: linear-gradient(180deg, #bd3a31, #8f221e);
}

#screen-roles .next-btn {
  bottom: 34px;
}

.role-summary {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 114px;
  display: grid;
  gap: 5px;
  padding: 13px 16px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(99, 28, 27, .56), rgba(15, 10, 13, .7));
  border: 1px solid rgba(255, 226, 157, .24);
  box-shadow: 0 16px 34px rgba(0, 0, 0, .3), inset 0 1px 0 rgba(255, 245, 211, .1);
  backdrop-filter: blur(8px);
}

.role-summary strong {
  color: #fff8df;
  font-size: 18px;
  line-height: 1.15;
}

.role-summary span {
  color: rgba(255, 244, 220, .68);
  font-size: 13px;
  line-height: 1.35;
}

.map-cards {
  left: 16px;
  top: 24px;
  gap: 9px;
}

.map-cards button {
  width: 74px;
  height: 98px;
  border-radius: 16px;
  padding: 13px 8px 10px;
  display: grid;
  place-items: center;
  line-height: 1.1;
  background:
    radial-gradient(circle at 50% 11%, rgba(255, 255, 255, .56), transparent 26%),
    linear-gradient(180deg, #fff4c9, #f1bd5f 72%, #d98b32);
  box-shadow: 0 16px 30px rgba(0, 0, 0, .34), inset 0 1px 0 rgba(255, 255, 255, .46);
}

.map-cards button::before {
  content: "";
  width: 24px;
  height: 4px;
  margin-bottom: 6px;
  border-radius: 999px;
  background: rgba(133, 31, 22, .36);
  box-shadow: 0 8px 0 rgba(133, 31, 22, .2);
}

.map-title {
  right: 16px;
  top: 118px;
  width: 158px;
  border-radius: 18px;
  background: rgba(18, 13, 15, .66);
  border-color: rgba(255, 224, 155, .34);
  box-shadow: 0 16px 38px rgba(0, 0, 0, .34), inset 0 1px 0 rgba(255, 245, 211, .12);
  backdrop-filter: blur(8px);
}

.map-title strong {
  font-size: 22px;
}

.map-progress {
  position: absolute;
  left: 20px;
  top: 130px;
  width: 132px;
  padding: 12px 13px;
  border-radius: 16px;
  background: rgba(16, 12, 14, .62);
  border: 1px solid rgba(255, 226, 157, .26);
  box-shadow: 0 16px 34px rgba(0, 0, 0, .3), inset 0 1px 0 rgba(255, 245, 211, .11);
  backdrop-filter: blur(8px);
}

.map-progress span {
  display: block;
  color: var(--gold-soft);
  font-size: 12px;
  font-weight: 900;
}

.map-progress strong {
  display: block;
  margin-top: 4px;
  color: #fff8df;
  font-size: 17px;
  line-height: 1.15;
}

.lantern-route {
  inset: 190px 20px 120px;
}

.route-line {
  inset: 54px 98px 52px 82px;
  border-left-color: rgba(255, 221, 137, .64);
  filter: drop-shadow(0 0 9px rgba(255, 219, 120, .48));
}

.node-one {
  left: 70px;
  top: 36px;
}

.node-two {
  right: 58px;
  top: 142px;
}

.node-three {
  left: 48px;
  top: 282px;
}

.node-four {
  right: 86px;
  bottom: 82px;
}

.node.is-current {
  filter: drop-shadow(0 18px 18px rgba(0, 0, 0, .36)) drop-shadow(0 0 28px rgba(255, 216, 106, .44));
}

.node.is-current::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 29px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  transform: translateX(-50%);
  background: rgba(255, 232, 151, .34);
  box-shadow: 0 0 28px rgba(255, 225, 135, .65);
  animation: nodePulse 1.8s ease-in-out infinite;
}

.punish-card {
  right: 20px;
  bottom: 38px;
  width: 150px;
  min-height: 118px;
  border-radius: 22px;
  background:
    radial-gradient(circle at 18% 20%, rgba(255, 222, 138, .22), transparent 34%),
    linear-gradient(135deg, rgba(202, 48, 45, .96), rgba(90, 24, 33, .92));
  box-shadow: 0 20px 48px rgba(0, 0, 0, .44), inset 0 1px 0 rgba(255, 245, 211, .14);
}

.punish-card small {
  display: block;
  margin-top: 8px;
  color: rgba(255, 242, 211, .68);
  font-size: 12px;
  line-height: 1.2;
}

.dice-btn {
  right: 26px;
  bottom: 154px;
  background: linear-gradient(180deg, #fff7d4, #ffe59a);
  box-shadow: 0 16px 34px rgba(0, 0, 0, .36), 0 0 26px rgba(255, 220, 134, .26);
}

.mini-game-list {
  top: 228px;
}

.mini-game {
  border-radius: 22px;
  background:
    radial-gradient(circle at 14% 25%, rgba(255, 221, 142, .14), transparent 28%),
    linear-gradient(135deg, rgba(44, 22, 20, .88), rgba(9, 8, 13, .86));
}

.social-bg {
  background:
    radial-gradient(circle at 50% 8%, rgba(255, 216, 130, .16), transparent 32%),
    linear-gradient(180deg, rgba(14, 10, 13, .82), rgba(8, 7, 10, .96)),
    url("./assets/generated-lantern-street.jpg") center / cover;
  filter: saturate(.96) contrast(1.02);
}

.masonry-feed {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 86px;
  grid-auto-flow: dense;
  align-content: start;
  gap: 10px;
  columns: initial;
  column-gap: 0;
  padding-bottom: 92px;
}

.post-card,
.goods-card {
  border-radius: 16px;
  background: rgba(24, 20, 24, .9);
  box-shadow: 0 16px 36px rgba(0, 0, 0, .3);
}

.post-card {
  position: relative;
  grid-row: span 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 0;
  padding: 0 11px 12px;
  border-color: rgba(255, 226, 157, .14);
  backdrop-filter: blur(8px);
  overflow: hidden;
}

.post-card img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
}

.post-card.large img {
  min-height: 0;
}

.post-card.large {
  grid-row: span 3;
}

.post-card::before {
  content: "";
  position: absolute;
  inset: 36% 0 0;
  z-index: 1;
  background: linear-gradient(180deg, transparent, rgba(10, 7, 9, .72) 54%, rgba(10, 7, 9, .94));
}

.post-card h3,
.post-card p,
.post-card span {
  position: relative;
  z-index: 2;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .72);
}

.post-card h3 {
  margin: 0 0 5px;
}

.post-card h3 {
  font-size: 16px;
}

.post-card p {
  margin: 0 0 6px;
  font-size: 13px;
  color: rgba(255, 244, 220, .72);
}

.post-card span {
  margin: 0;
  color: rgba(255, 229, 164, .7);
}


.shop-bg {
  background:
    radial-gradient(circle at 50% 6%, rgba(255, 216, 130, .12), transparent 34%),
    linear-gradient(180deg, #171014, #0e0d11);
}

.shop-hero {
  border-radius: 20px;
  background:
    radial-gradient(circle at 20% 15%, rgba(255, 229, 164, .16), transparent 36%),
    linear-gradient(135deg, rgba(132, 27, 32, .95), rgba(25, 20, 26, .98));
  box-shadow: 0 18px 42px rgba(0, 0, 0, .34), inset 0 1px 0 rgba(255, 245, 211, .12);
}

@media (max-height: 760px) {
  .home-title {
    top: 76px;
  }

  .home-title h1 {
    font-size: 45px;
  }

  .entry-card {
    min-height: 84px;
    padding: 12px 14px;
  }

  .entry-mark {
    width: 70px;
    height: 70px;
  }

  .event-status {
    top: 252px;
    min-height: 72px;
    padding: 12px 15px;
  }

  .event-status strong {
    font-size: 20px;
  }

  .play-loop {
    left: 22px;
    right: 22px;
    bottom: 304px;
  }

  .reward-preview {
    top: 284px;
    right: 22px;
    width: 160px;
  }

  .role-track {
    top: 170px;
    gap: 10px;
  }

  .role-card {
    height: 188px;
  }

  .role-image-wrap {
    height: 136px;
  }

  .role-image {
    width: 130px;
    height: 142px;
  }

  .role-summary {
    bottom: 92px;
    padding: 10px 14px;
  }

  #screen-roles .next-btn {
    bottom: 24px;
  }
}

/* Art academy polish pass: curated non-heritage game exhibition language. */
:root {
  --display-face: "STKaiti", "Kaiti SC", "KaiTi", "Songti SC", serif;
  --body-face: "Songti SC", "Noto Serif SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --ink-deep: #0b090b;
  --cinnabar: #9d2722;
  --cinnabar-bright: #d14932;
  --jade: #6fb198;
  --museum-gold: #f7d487;
  --silk: #fff7e5;
}

html,
body {
  background:
    radial-gradient(circle at 22% 8%, rgba(188, 58, 42, .24), transparent 34%),
    radial-gradient(circle at 78% 18%, rgba(111, 177, 152, .18), transparent 30%),
    linear-gradient(135deg, #09090d, #141016 48%, #07080d);
  font-family: var(--body-face);
}

.phone-frame {
  border-color: rgba(247, 212, 135, .34);
  background:
    radial-gradient(circle at 50% 0%, rgba(247, 212, 135, .09), transparent 34%),
    var(--ink-deep);
  box-shadow:
    0 34px 110px rgba(0, 0, 0, .68),
    0 0 0 8px rgba(255, 231, 166, .035);
}

.screen::before {
  background:
    radial-gradient(circle at 18% 9%, rgba(255, 224, 144, .13), transparent 25%),
    radial-gradient(circle at 82% 16%, rgba(111, 177, 152, .13), transparent 25%),
    linear-gradient(180deg, rgba(13, 7, 8, .08), rgba(13, 7, 8, .76));
}

.screen::after {
  opacity: .1;
  background-image:
    linear-gradient(90deg, rgba(255, 236, 183, .08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 236, 183, .06) 1px, transparent 1px),
    radial-gradient(circle at 50% 50%, rgba(255, 244, 220, .16) 1px, transparent 1px);
  background-size: 32px 32px, 32px 32px, 11px 11px;
}

.topbar,
.home-title,
.curator-strip,
.event-status,
.stage-note,
.role-note,
.feed-title,
.entry-grid,
.home-fab,
.back-btn,
.game-logo,
.event-panel,
.reward-preview,
.play-loop,
.start-btn,
.screen-head,
.role-track,
.role-summary,
.next-btn,
.map-cards,
.map-title,
.map-progress,
.lantern-route,
.punish-card,
.dice-btn,
.mini-game-list,
.feed-head,
.masonry-feed,
.post-plus,
.bottom-nav,
.shop-head,
.shop-hero,
.shop-tabs,
.goods-grid,
.toast {
  z-index: 5;
}

.home-title {
  top: 92px;
  left: 28px;
  right: 26px;
}

.home-title span,
.screen-head span,
.map-title span,
.game-logo span,
.event-panel span,
.event-status span,
.reward-preview span,
.shop-hero span,
.goods-card small,
.feed-title span {
  color: var(--museum-gold);
}

.home-title h1,
.game-logo h2,
.screen-head h2,
.shop-hero h2,
.feed-title strong {
  font-family: var(--display-face);
  color: var(--silk);
  font-weight: 900;
  letter-spacing: 0;
  text-shadow:
    0 3px 0 rgba(134, 28, 24, .9),
    0 18px 34px rgba(0, 0, 0, .5);
}

.home-title h1 {
  font-size: 58px;
  line-height: .96;
}

.home-title p {
  margin-top: 8px;
  color: rgba(255, 244, 220, .82);
}

.curator-strip {
  position: absolute;
  left: 42px;
  right: 42px;
  top: 274px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 11px;
  color: rgba(255, 245, 214, .8);
  font-size: 12px;
  font-weight: 900;
}

.curator-strip i {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(247, 212, 135, .62), transparent);
}

.event-status {
  top: 322px;
  border-radius: 24px;
  background:
    radial-gradient(circle at 14% 18%, rgba(111, 177, 152, .18), transparent 36%),
    radial-gradient(circle at 84% 14%, rgba(247, 212, 135, .16), transparent 34%),
    linear-gradient(135deg, rgba(91, 22, 21, .68), rgba(12, 9, 12, .66));
  border-color: rgba(247, 212, 135, .42);
}

.quest-meter i {
  height: 5px;
  background: rgba(255, 238, 183, .18);
}

.quest-meter .is-on {
  background: linear-gradient(90deg, var(--jade), var(--museum-gold), var(--cinnabar-bright));
}

.entry-grid {
  bottom: 26px;
}

.entry-card {
  overflow: hidden;
  border-color: rgba(247, 212, 135, .4);
  background: rgba(20, 12, 14, .66);
}

.entry-card::before {
  background:
    linear-gradient(90deg, rgba(151, 34, 31, .9), rgba(91, 27, 28, .68) 48%, rgba(22, 16, 20, .72)),
    radial-gradient(circle at 20% 50%, rgba(111, 177, 152, .18), transparent 30%);
}

.entry-card:active {
  transform: translateY(2px) scale(.992);
}

.entry-mark img {
  filter:
    drop-shadow(0 12px 16px rgba(64, 11, 8, .38))
    drop-shadow(0 0 18px rgba(247, 212, 135, .34));
}

.entry-card strong {
  font-family: var(--display-face);
  font-size: 32px;
}

.entry-card small {
  color: rgba(255, 244, 220, .74);
}

.game-logo {
  top: 82px;
}

.game-logo h2 {
  font-size: 84px;
  line-height: .92;
}

.stage-note {
  position: absolute;
  left: 28px;
  top: 320px;
  width: 174px;
  padding: 13px 14px;
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(10, 9, 12, .62), rgba(66, 23, 23, .5));
  border: 1px solid rgba(247, 212, 135, .26);
  box-shadow: 0 16px 36px rgba(0, 0, 0, .28), inset 0 1px 0 rgba(255, 246, 218, .12);
  backdrop-filter: blur(8px);
}

.stage-note span {
  color: var(--jade);
  font-size: 12px;
  font-weight: 900;
}

.stage-note strong {
  display: block;
  margin-top: 6px;
  color: rgba(255, 247, 224, .86);
  font-size: 13px;
  line-height: 1.45;
}

.play-loop {
  bottom: 318px;
}

.event-panel {
  bottom: 156px;
}

.reward-preview {
  top: 356px;
}

.start-btn,
.next-btn,
.goods-card button {
  background:
    radial-gradient(circle at 50% 10%, rgba(255, 255, 255, .55), transparent 27%),
    linear-gradient(180deg, #fff4bd, #f3c05c 58%, #d85b34);
}

.screen-head h2 {
  font-size: 30px;
}

.role-note {
  position: absolute;
  left: 24px;
  right: 24px;
  top: 154px;
  min-height: 32px;
  padding: 7px 12px;
  border-radius: 999px;
  color: rgba(255, 244, 220, .66);
  font-size: 12px;
  line-height: 1.35;
  background: rgba(12, 10, 13, .36);
  border: 1px solid rgba(247, 212, 135, .16);
  backdrop-filter: blur(8px);
}

.role-track {
  top: 204px;
}

.role-card {
  height: 206px;
  border-radius: 18px;
  background:
    radial-gradient(ellipse at 50% 20%, rgba(247, 212, 135, .2), transparent 38%),
    linear-gradient(180deg, rgba(93, 35, 31, .42), rgba(13, 10, 13, .8));
}

.role-card::before {
  content: "";
  position: absolute;
  inset: 10px;
  pointer-events: none;
  border-radius: 13px;
  border: 1px solid rgba(255, 238, 183, .12);
}

.role-card.is-selected {
  border-color: rgba(247, 212, 135, .92);
  box-shadow:
    0 0 0 4px rgba(111, 177, 152, .12),
    0 0 30px rgba(247, 212, 135, .28),
    0 18px 42px rgba(0, 0, 0, .4);
}

.role-card.is-selected small {
  background: linear-gradient(180deg, var(--jade), #397b68);
}

.role-image-wrap {
  height: 151px;
}

.role-image {
  width: 143px;
  height: 158px;
}

.map-cards button {
  width: 70px;
  height: 92px;
  color: #7d1c17;
  background:
    radial-gradient(circle at 50% 10%, rgba(255, 255, 255, .58), transparent 27%),
    linear-gradient(180deg, #fff8d6, #f0c667 72%, #cd7f2b);
}

.map-title,
.map-progress {
  background: linear-gradient(145deg, rgba(17, 12, 14, .74), rgba(45, 20, 19, .56));
  border-color: rgba(247, 212, 135, .34);
}

.map-title strong {
  font-family: var(--display-face);
}

.route-line {
  border-left-width: 2px;
  border-left-color: rgba(247, 212, 135, .72);
  filter: drop-shadow(0 0 10px rgba(247, 212, 135, .5));
}

.node {
  filter:
    drop-shadow(0 18px 18px rgba(0, 0, 0, .36))
    drop-shadow(0 0 16px rgba(247, 212, 135, .2));
}

.punish-card {
  background:
    radial-gradient(circle at 18% 20%, rgba(247, 212, 135, .22), transparent 34%),
    linear-gradient(135deg, rgba(178, 39, 36, .95), rgba(72, 20, 32, .94));
}

.mini-game {
  min-height: 122px;
  border-radius: 18px;
}

.mini-copy strong {
  font-family: var(--display-face);
}

.feed-head {
  height: 68px;
  background: rgba(12, 10, 13, .78);
}

.feed-title {
  position: absolute;
  left: 22px;
  right: 22px;
  top: 82px;
  display: grid;
  gap: 3px;
}

.feed-title span {
  font-size: 13px;
  font-weight: 900;
}

.feed-title strong {
  font-size: 31px;
  line-height: 1.05;
}

.masonry-feed {
  inset: 150px 10px 82px;
}

.post-card {
  border-radius: 14px;
  border-color: rgba(247, 212, 135, .18);
  background: rgba(18, 14, 17, .92);
}

.post-card::before {
  background: linear-gradient(180deg, transparent, rgba(9, 7, 9, .72) 52%, rgba(9, 7, 9, .96));
}

.post-card h3 {
  font-family: var(--display-face);
  font-size: 17px;
}

.post-card span {
  color: rgba(247, 212, 135, .78);
}

.post-plus {
  background: linear-gradient(180deg, #ff6f61, #c9242f);
}

.bottom-nav {
  height: 62px;
  background: rgba(10, 9, 12, .94);
  border-top-color: rgba(247, 212, 135, .15);
}

.shop-head {
  background: rgba(15, 11, 13, .38);
  backdrop-filter: blur(10px);
}

.shop-head strong {
  font-family: var(--display-face);
  color: var(--silk);
  font-size: 22px;
}

.shop-hero {
  border-radius: 18px;
  background:
    radial-gradient(circle at 18% 20%, rgba(111, 177, 152, .18), transparent 34%),
    linear-gradient(135deg, rgba(126, 30, 31, .93), rgba(20, 16, 21, .98));
  border-color: rgba(247, 212, 135, .28);
}

.shop-tabs {
  gap: 8px;
  padding: 16px 16px 10px;
}

.shop-tabs button {
  height: 44px;
  border-radius: 999px;
  background: rgba(26, 24, 29, .78);
  border-color: rgba(247, 212, 135, .16);
}

.shop-tabs .is-on {
  color: #3b1510;
  background: linear-gradient(180deg, #fff3be, #eeb853);
}

.goods-grid {
  inset: 296px 14px 62px;
}

.goods-card {
  border-radius: 16px;
  border-color: rgba(247, 212, 135, .16);
  background:
    radial-gradient(circle at 50% 0%, rgba(247, 212, 135, .08), transparent 38%),
    rgba(16, 14, 18, .94);
}

.goods-card strong {
  font-family: var(--display-face);
  font-size: 19px;
}

.back-btn:not(.inline),
.home-fab {
  z-index: 30;
}

.back-btn.inline {
  position: relative;
  z-index: 30;
}

@media (max-height: 760px) {
  .home-title {
    top: 72px;
  }

  .home-title h1 {
    font-size: 46px;
  }

  .curator-strip {
    top: 222px;
  }

  .event-status {
    top: 258px;
  }

  .entry-grid {
    bottom: 22px;
  }

  .stage-note {
    display: none;
  }

  .play-loop {
    bottom: 292px;
  }

  .reward-preview {
    top: 276px;
  }

  .role-note {
    top: 136px;
    left: 20px;
    right: 20px;
  }

  .role-track {
    top: 180px;
  }

  .role-card {
    height: 182px;
  }

  .role-image-wrap {
    height: 130px;
  }

  .role-image {
    width: 126px;
    height: 138px;
  }

  .feed-title {
    top: 76px;
  }

  .masonry-feed {
    top: 138px;
  }

  .goods-grid {
    top: 286px;
  }
}

/* Material 3 card assets: replace placeholder blocks with real card art. */
.map-cards {
  left: 16px;
  top: 18px;
  gap: 8px;
  align-items: flex-start;
}

.map-cards .map-card-token {
  position: relative;
  width: 72px;
  height: 98px;
  padding: 0;
  overflow: hidden;
  color: #fff6dc;
  background: #2a0b0b;
  border: 1px solid rgba(255, 221, 140, .5);
  border-radius: 15px;
  box-shadow:
    0 14px 28px rgba(0, 0, 0, .42),
    0 0 18px rgba(255, 200, 97, .16),
    inset 0 1px 0 rgba(255, 244, 204, .18);
}

.map-cards .map-card-token::before {
  content: none;
}

.map-cards .map-card-token::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 235, 164, .08), transparent 34%),
    linear-gradient(180deg, transparent 44%, rgba(31, 7, 8, .74));
  pointer-events: none;
}

.map-card-token img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(1.08) contrast(1.02);
}

.map-card-token span {
  position: absolute;
  left: 7px;
  right: 7px;
  bottom: 7px;
  z-index: 2;
  display: block;
  padding: 4px 3px 3px;
  border-radius: 999px;
  color: #ffe8a2;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  text-align: center;
  background: rgba(42, 10, 9, .82);
  border: 1px solid rgba(255, 219, 128, .38);
  text-shadow: 0 1px 0 rgba(71, 13, 12, .9);
}

.map-card-token:nth-child(1) {
  transform: rotate(-2deg);
}

.map-card-token:nth-child(2) {
  transform: translateY(4px) rotate(1deg);
}

.map-card-token:nth-child(3) {
  transform: translateY(1px) rotate(2deg);
}

.map-title {
  top: 124px;
}

.map-progress {
  top: 136px;
}

.lantern-route {
  inset: 202px 20px 120px;
}

.punish-card {
  right: 18px;
  bottom: 34px;
  width: 176px;
  min-height: 128px;
  height: auto;
  padding: 16px 15px 15px 82px;
  overflow: hidden;
  display: grid;
  align-content: center;
  background:
    radial-gradient(circle at 16% 22%, rgba(255, 220, 128, .2), transparent 33%),
    linear-gradient(140deg, rgba(187, 40, 37, .96), rgba(68, 17, 26, .95));
  border-color: rgba(255, 225, 150, .48);
}

.punish-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 232, 156, .12), transparent 42%),
    radial-gradient(circle at 78% 26%, rgba(255, 213, 102, .2), transparent 30%);
  pointer-events: none;
}

.punish-card-art {
  position: absolute;
  left: 14px;
  top: 50%;
  z-index: 1;
  width: 58px;
  height: 88px;
  overflow: hidden;
  border-radius: 11px;
  transform: translateY(-50%) rotate(-7deg);
  border: 1px solid rgba(255, 226, 148, .45);
  box-shadow: 0 14px 22px rgba(18, 5, 7, .44), 0 0 18px rgba(255, 198, 91, .2);
}

.punish-card-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.punish-card .punish-kicker,
.punish-card strong,
.punish-card small {
  position: relative;
  z-index: 2;
}

.punish-card .punish-kicker {
  color: #ffe18f;
  font-size: 15px;
  line-height: 1;
}

.punish-card strong {
  margin-top: 8px;
  font-size: 22px;
  line-height: 1.08;
}

.punish-card small {
  margin-top: 7px;
  max-width: 80px;
}

.dice-btn {
  bottom: 184px;
}

@media (max-height: 760px) {
  .map-cards {
    top: 14px;
  }

  .map-cards .map-card-token {
    width: 64px;
    height: 86px;
    border-radius: 13px;
  }

  .map-card-token span {
    left: 6px;
    right: 6px;
    bottom: 6px;
    font-size: 11px;
  }

  .map-title {
    top: 106px;
    transform: scale(.92);
    transform-origin: top right;
  }

  .map-progress {
    top: 112px;
    transform: scale(.92);
    transform-origin: top left;
  }

  .lantern-route {
    inset: 166px 22px 104px;
  }

  .node-one {
    left: 72px;
    top: 24px;
  }

  .node-two {
    right: 58px;
    top: 178px;
  }

  .node-three {
    left: 46px;
    top: 326px;
  }

  .node-four {
    right: 138px;
    bottom: 10px;
  }

  .punish-card {
    bottom: 26px;
    width: 164px;
    min-height: 112px;
    padding: 13px 13px 13px 72px;
  }

  .punish-card-art {
    left: 12px;
    width: 50px;
    height: 76px;
  }

  .punish-card strong {
    font-size: 20px;
  }

  .dice-btn {
    bottom: 174px;
  }
}

/* Deployment final homepage entry treatment. Keep this after all theme layers. */
.event-status {
  top: 286px;
}

.curator-strip {
  top: 254px;
}

.entry-card {
  grid-template-columns: 16px 1fr;
  min-height: 96px;
  column-gap: 20px;
  padding: 17px 24px 17px 26px;
}

.entry-mark,
.entry-game .entry-mark,
.entry-social .entry-mark,
.entry-shop .entry-mark {
  position: relative;
  width: 8px;
  height: 66px;
  border-radius: 999px;
  clip-path: none;
  background:
    linear-gradient(180deg, rgba(255, 248, 199, .96), rgba(247, 201, 97, .84) 48%, rgba(169, 51, 30, .68));
  border: 0;
  box-shadow:
    0 0 18px rgba(247, 212, 135, .44),
    0 12px 20px rgba(58, 12, 8, .34);
}

.entry-mark::before,
.entry-mark::after,
.entry-game .entry-mark::after,
.entry-social .entry-mark::after,
.entry-shop .entry-mark::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle at 42% 34%, #fff3b9, #f1b74f 72%, #a72822);
  border: 1px solid rgba(255, 235, 164, .62);
  box-shadow: 0 0 14px rgba(247, 212, 135, .35);
}

.entry-mark::before {
  top: -5px;
  z-index: 2;
}

.entry-mark::after {
  inset: auto auto -5px 50%;
  z-index: 2;
}

.entry-copy::before {
  display: block;
  margin-bottom: 6px;
  color: rgba(247, 212, 135, .82);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
}

.entry-game .entry-copy::before {
  content: "活动入口 01";
}

.entry-social .entry-copy::before {
  content: "互动入口 02";
}

.entry-shop .entry-copy::before {
  content: "周边入口 03";
}

@media (max-height: 760px) {
  .curator-strip {
    top: 204px;
  }

  .event-status {
    top: 230px;
    padding: 12px 18px;
  }

  .entry-grid {
    bottom: 12px;
    gap: 8px;
  }

  .entry-card {
    grid-template-columns: 14px 1fr;
    min-height: 70px;
    padding: 9px 20px 9px 24px;
  }

  .entry-mark,
  .entry-game .entry-mark,
  .entry-social .entry-mark,
  .entry-shop .entry-mark {
    width: 7px;
    height: 44px;
  }

  .entry-mark::before,
  .entry-mark::after {
    width: 15px;
    height: 15px;
  }

  .entry-copy::before {
    margin-bottom: 2px;
    font-size: 10px;
  }

  .entry-card strong {
    font-size: 27px;
  }

  .entry-card small {
    font-size: 12px;
  }
}
