@font-face {
  font-family: "DDT";
  src: url("../font/ddt-sub.woff2") format("woff2");
  font-display: swap;
}
:root {
  color-scheme: light;
  --ink: #5b3413;
  --ink-2: #8a6238;
  --ink-3: #b39468;
  --panel: #fff8e8;
  --panel-2: #fdeecb;
  --white: #fffdf6;
  --line: #efd7a8;
  --edge: #dba957;
  --edge-d: #c48a3a;
  --orange: #ff9a1c;
  --orange-d: #c26a08;
  --blue: #3b9cf5;
  --blue-d: #1d67b8;
  --green: #62c934;
  --green-d: #2f8a12;
  --gold: #e07c00;
  --red: #e8452f;
  --game: "DDT", "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
  --r: 18px;
  --r-s: 12px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  color: var(--ink);
  background: #fbf6e9;
  font: 15px/1.6 "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Noto Sans CJK SC", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
body.is-auth, body.is-app { background: #fbf6e9; }
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: var(--blue-d); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
b { font-weight: 650; }
img { max-width: 100%; }
small { font-size: 12px; color: var(--ink-3); }
:focus-visible { outline: 3px solid #fff; outline-offset: 2px; box-shadow: 0 0 0 5px var(--blue-d); }
.num, .mono, .price, .kv dd { font-variant-numeric: tabular-nums; }
.mono { font-family: ui-monospace, Consolas, "Courier New", monospace; font-size: 13px; }
.muted { color: var(--ink-2); font-size: 13.5px; }
.hint { color: var(--ink-3); font-size: 12.5px; margin-top: 10px; }
.gold { color: var(--gold); }
.cur { width: 22px; height: 22px; vertical-align: -5px; margin-right: 3px; }
.demo-bar {
  background: rgba(40, 24, 8, .78); color: #ffe7b0;
  font-size: 12px; text-align: center; padding: 4px 16px;
}
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: #fffdf8;
  border-bottom: 2px solid var(--line);
  box-shadow: 0 2px 10px rgba(120, 80, 20, .06);
}
.topbar-in { max-width: 1120px; margin: 0 auto; padding: 4px 14px; min-height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.brand { display: flex; align-items: center; gap: 8px; min-width: 0; flex: none; }
.brand:hover { text-decoration: none; }
.brand img { height: 44px; width: auto; margin: -2px 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; white-space: nowrap; }
.brand-text b { font-family: var(--game); font-weight: 400; font-size: 19px; color: #7a3d00; }
.brand-text small { font-size: 12px; color: var(--ink-2); }
.topbar-right { display: flex; align-items: center; gap: 10px; flex: none; }
.who { color: var(--ink-2); font-size: 13.5px; max-width: 8em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: grid; grid-template-columns: repeat(8, minmax(0, 1fr));
  background: var(--panel); border-top: 3px solid var(--edge);
  box-shadow: 0 -4px 14px rgba(60, 30, 0, .18);
  padding: 4px 4px calc(4px + env(safe-area-inset-bottom));
}
.nav a {
  display: flex; flex-direction: column; align-items: center; gap: 1px;
  padding: 5px 2px; border-radius: 12px;
  color: var(--ink-2); font-family: var(--game); font-size: 12px; white-space: nowrap;
}
.nav a:hover { text-decoration: none; }
.nav a.on { color: #a04a00; background: linear-gradient(#ffe58a, #ffc13d); box-shadow: inset 0 0 0 2px #d48a1a; }
.nav a { position: relative; }
.nav-badge {
  position: absolute; top: 1px; left: calc(50% + 6px);
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px;
  background: var(--red); color: #fff; font: 700 11px/18px system-ui, sans-serif; font-style: normal; text-align: center;
  box-shadow: 0 0 0 2px var(--panel);
}
.ico { width: 22px; height: 22px; }
.shell { max-width: 1120px; margin: 0 auto; padding: 14px 12px 96px; }
.main { min-width: 0; }
#view { display: grid; gap: 16px; margin-top: 16px; }
.cols { display: grid; gap: 16px; }
.col-main, .col-side { display: grid; gap: 16px; align-content: start; min-width: 0; }
@media (min-width: 820px) {
  .nav {
    position: static; flex: 1; display: flex; justify-content: center; gap: 6px;
    background: none; border: 0; box-shadow: none; padding: 0;
  }
  .nav a { flex-direction: row; gap: 6px; padding: 7px 14px; font-size: 15px; color: var(--ink); border-radius: 999px; }
  .nav a:hover { background: #fff0cf; }
  .nav a.on:hover { background: linear-gradient(#ffe58a, #ffc13d); }
  .nav-badge { position: static; margin-left: -2px; box-shadow: none; }
  .ico { width: 19px; height: 19px; }
  .shell { padding: 20px 16px 56px; }
  .cols { grid-template-columns: minmax(0, 1fr) 330px; align-items: start; }
  .cols.rc { grid-template-areas: "pk side" "tiers side"; }
  .rc-pk { grid-area: pk; }
  .rc-tiers { grid-area: tiers; }
  .rc-side { grid-area: side; align-self: stretch; }
  .card.sticky { position: sticky; top: 80px; }
}
.card {
  position: relative; min-width: 0;
  background: #fffdf8;
  border: 2px solid var(--line);
  border-radius: var(--r);
  box-shadow: 0 8px 22px rgba(120, 80, 20, .08);
  padding: 18px 16px;
}
.card h2 {
  display: inline-block; margin: -2px 0 10px;
  font-family: var(--game); font-weight: 400; font-size: 18px; line-height: 1.3; color: #fff;
  padding: 4px 18px 5px; border-radius: 999px;
  background: linear-gradient(#ffbf45, #ff8d14);
  border: 2px solid var(--orange-d);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .5);
  text-shadow: 0 1px 0 #a64f00, 0 0 3px #a64f00;
}
.card h2 .tag { text-shadow: none; margin-left: 6px; }
.card h3 { font-family: var(--game); font-weight: 400; font-size: 17px; color: #8a4a08; margin-bottom: 10px; }
.card h3.sub { margin-top: 20px; }
.card-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; align-items: flex-start; }
@media (min-width: 640px) { .card { padding: 20px 22px; } }
.rolecard { display: grid; gap: 14px; }
.rc-stage {
  position: relative; min-height: 230px; border-radius: 16px; overflow: hidden;
  border: 2px solid var(--line);
  background: #8fd3ff url("../img/bg/grass.jpg") center 88% / cover no-repeat;
  display: flex; align-items: flex-end; justify-content: center; padding: 14px 10px 44px;
}
.rc-look { height: 190px; width: auto; max-width: 92%; object-fit: contain; filter: drop-shadow(0 6px 4px rgba(30, 60, 0, .35)); }
.rc-plate {
  position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); max-width: 92%;
  padding: 2px 16px 3px; border-radius: 999px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  font-family: var(--game); font-size: 15px; color: #fff; background: rgba(70, 36, 8, .78); border: 2px solid #ffd766;
}
.rc-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-bottom: 4px; }
.rc-head h2 { margin: 0; }
.rc-head .btn { margin-left: auto; }
.rc-state { font-size: 12.5px; padding: 1px 10px; border-radius: 999px; color: var(--ink-2); background: var(--panel-2); border: 1px solid var(--line); }
.rc-state.on { color: #1f7a0a; background: #e6f9d6; border-color: #a6dd82; }
.rc-state.on::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 5px; border-radius: 50%; background: #3fb618; vertical-align: 1px; }
.rc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 6px 0 0; }
.rc-grid div { min-width: 0; padding: 8px 4px; border-bottom: 1px dashed var(--line); }
.rc-grid dt { font-size: 12.5px; color: var(--ink-2); }
.rc-grid dd { font-family: var(--game); font-size: 17px; line-height: 1.35; color: #7a3d00; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rc-grid dd .muted { font-family: inherit; font-size: 14px; }
@media (min-width: 720px) {
  .rolecard { grid-template-columns: 250px minmax(0, 1fr); gap: 22px; align-items: stretch; }
  .rc-stage { min-height: 270px; }
  .rc-look { height: 215px; }
  .rc-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 10px; }
}
.vip-tabs { margin: 14px 0 -2px; }
.vip-tabs button { font-size: 15.5px; min-height: 38px; padding: 4px 20px; }
.hb-tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 12px; }
.hb-tools input { flex: 1 1 200px; min-width: 0; height: 40px; padding: 0 14px; border-radius: 12px; border: 2px solid var(--edge); background: var(--white); font: inherit; color: var(--ink); }
.hb-cart {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 12px; padding: 10px 14px;
  border-radius: 16px; background: var(--panel-2); border: 2px solid var(--line);
  position: sticky; top: 62px; z-index: 5;
}
.hb-cart-sum, .hb-cart-bal { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.hb-cart-sum { margin-right: auto; }
.hb-cart small { color: var(--ink-2); font-size: 12.5px; }
.hb-cart b { font-family: var(--game); font-weight: 400; font-size: 20px; color: #7a3d00; }
.hb-cart small b { font-size: 14px; }
.hb-cart b.gold { color: var(--gold); font-size: 24px; }
.hb-cart b.gold small { font-size: 13px; }
.hb-body { display: grid; gap: 12px; margin-top: 14px; }
.hb-navs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.hb-navs::-webkit-scrollbar { display: none; }
.hb-nav { flex: none; display: flex; flex-direction: column; align-items: flex-start; padding: 6px 14px 7px; border-radius: 14px; border: 2px solid var(--line); background: var(--white); text-align: left; line-height: 1.3; }
.hb-nav b { font-family: var(--game); font-weight: 400; font-size: 16px; color: #7a3d00; white-space: nowrap; }
.hb-nav small { font-size: 12px; color: var(--ink-2); white-space: nowrap; }
.hb-nav.on { border-color: #ff7a00; background: #fff0c4; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .8); }
.hb-shead { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 4px 0 10px; }
.hb-shead h3 { margin: 0; font-size: 20px; }
.hb-shead .btn, .hb-shead .state { margin-left: auto; }
.hb-suits { display: grid; gap: 12px; margin-bottom: 18px; }
.hb-suit { display: grid; gap: 10px; padding: 12px; border-radius: 16px; background: var(--white); border: 2px solid var(--line); min-width: 0; }
.hb-cover { display: grid; grid-template-columns: 64px minmax(0, 1fr); column-gap: 10px; align-items: center; }
.hb-cover img { grid-row: span 2; width: 64px; height: 64px; border-radius: 14px; background: #fff3d6; border: 2px solid var(--line); }
.hb-cover b { align-self: end; font-family: var(--game); font-weight: 400; font-size: 17px; color: #7a3d00; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hb-cover small { align-self: start; font-size: 12.5px; color: var(--ink-2); }
.hb-cover .tag, .hb-nav .tag { margin-left: 4px; }
.hb-main { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.hb-items { display: flex; gap: 8px; overflow-x: auto; max-width: 100%; padding-bottom: 4px; }
.hb-items li { flex: none; }
.hb-it {
  width: 104px; display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 8px 4px 7px;
  border-radius: 12px; border: 2px dashed #7fb8ee; background: #f6fbff; line-height: 1.3;
}
.hb-it img { width: 52px; height: 52px; }
.hb-it b { max-width: 100%; font-weight: 600; font-size: 13px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hb-it small { font-size: 12px; color: #a04a00; }
.hb-ck { margin-top: 3px; font-size: 12px; padding: 0 10px; border-radius: 999px; border: 1px solid #9cc4ea; color: #1d67b8; background: #fff; }
.hb-it.on { border-style: solid; border-color: #ff7a00; background: #fff0c4; }
.hb-it.on .hb-ck { border-color: #ff7a00; color: #fff; background: #ff8d14; }
.hb-it.done { border-style: solid; border-color: #a6dd82; background: #f0fbe6; cursor: default; }
.hb-it.done .hb-ck { border-color: #a6dd82; color: #1f7a0a; background: #e6f9d6; }
@media (min-width: 820px) {
  .hb-body { grid-template-columns: 190px minmax(0, 1fr); gap: 18px; align-items: start; }
  .hb-navs { flex-direction: column; overflow: visible; position: sticky; top: 150px; }
  .hb-nav { align-items: stretch; }
  .hb-suit { grid-template-columns: 170px minmax(0, 1fr); gap: 16px; padding: 14px; }
  .hb-cover { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; row-gap: 2px; align-content: center; }
  .hb-cover img { grid-row: auto; width: 96px; height: 96px; }
  .hb-cover b { max-width: 100%; }
}
.hero {
  border-radius: 22px; overflow: hidden;
  background: #fff4dc; border: 2px solid var(--line);
}
.hero-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 16px 16px 6px; }
.hero-avatar { flex: none; width: 60px; height: 60px; padding: 4px; border-radius: 50%; background: #fffdf8; border: 2px solid var(--line); object-fit: contain; }
.hero-role { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.hero-role b { font-family: var(--game); font-weight: 400; font-size: 22px; color: #5b3413; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hero-role small { color: var(--ink-2); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hero-note { padding: 0 16px 12px; font-size: 12.5px; color: var(--ink-2); }
@media (max-width: 639px) {
  .hero-top .hero-role { flex: 1 1 calc(100% - 80px); }
}
.vip-badge {
  font-family: var(--game); font-size: 14px; color: #7a3d00; white-space: nowrap;
  padding: 2px 12px; border-radius: 999px;
  background: linear-gradient(#fff3a8, #ffc93a); border: 2px solid #c98510;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .7);
}
.hero-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hero-stats div { display: flex; flex-direction: column; min-width: 0; padding: 10px 14px; border-top: 1px dashed var(--line); }
.hero-stats div:nth-child(odd) { border-right: 1px dashed var(--line); }
.hero-stats small { color: var(--ink-2); }
.hero-stats b { font-family: var(--game); font-weight: 400; font-size: 24px; line-height: 1.25; color: #7a3d00; }
.hero-stats b.gold { color: var(--gold); }
.hero-stats .cur { width: 26px; height: 26px; vertical-align: -5px; }
.hero-prog { padding: 8px 14px 14px; border-top: 1px dashed var(--line); }
.hero-prog p { font-size: 12.5px; color: var(--ink-2); margin-top: 6px; }
.hero-prog p b { color: var(--red); font-family: var(--game); font-weight: 400; font-size: 14px; }
.bar { height: 14px; border-radius: 999px; background: #e9d2a0; box-shadow: inset 0 2px 3px rgba(110, 60, 0, .35); overflow: hidden; border: 2px solid #c79a55; }
.bar i {
  display: block; height: 100%; border-radius: 999px;
  background: repeating-linear-gradient(115deg, rgba(255, 255, 255, .28) 0 8px, rgba(255, 255, 255, 0) 8px 16px), linear-gradient(#ffe45c, #ff9d1c);
}
@media (min-width: 640px) {
  .hero-top { padding: 20px 22px 6px; }
  .hero-avatar { width: 68px; height: 68px; }
  .hero-note { padding: 0 22px 12px; }
  .hero-role b { font-size: 26px; }
  .hero-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .hero-stats div { border-right: 1px dashed var(--line); padding: 12px 20px; }
  .hero-stats div:last-child { border-right: 0; }
  .hero-prog { padding: 10px 20px 16px; }
}
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 40px; padding: 6px 20px; border-radius: 999px;
  font-family: var(--game); font-size: 16px; white-space: nowrap; color: #fff;
  border: 2px solid var(--orange-d);
  background: linear-gradient(#ffd75a, #ff9a1c);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .55), 0 3px 0 #a85a06;
  text-shadow: 0 1px 0 #a64f00, 0 0 3px #a64f00;
  transition: filter .12s, transform .24s cubic-bezier(.34, 1.56, .64, 1), box-shadow .12s;
}
.btn:hover { filter: brightness(1.06); text-decoration: none; }
.btn:active { transform: translateY(2px); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .55), 0 1px 0 #a85a06; transition-duration: .06s; }
.btn.small { min-height: 32px; padding: 2px 14px; font-size: 14px; }
.btn.block { width: 100%; margin-top: 14px; min-height: 48px; font-size: 19px; }
.btn.blue { border-color: var(--blue-d); background: linear-gradient(#7fd0ff, #2f8fe9); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .55), 0 3px 0 #18579c; text-shadow: 0 1px 0 #164f8f, 0 0 3px #164f8f; }
.btn.green, .gift-act .btn { border-color: var(--green-d); background: linear-gradient(#b5ee5a, #4fb81f); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .55), 0 3px 0 #2a7a10; text-shadow: 0 1px 0 #256b0c, 0 0 3px #256b0c; }
.btn.ghost { color: #8a4a08; text-shadow: none; border-color: var(--edge); background: linear-gradient(#fffdf6, #fbeccb); box-shadow: inset 0 2px 0 #fff, 0 3px 0 var(--edge-d); }
.btn.danger { border-color: #a3220f; background: linear-gradient(#ff8f6b, #e8452f); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .5), 0 3px 0 #8f1c0c; text-shadow: 0 1px 0 #8f1c0c; }
.btn:disabled { filter: grayscale(.9) opacity(.6); cursor: not-allowed; transform: none; }
.icon-btn { width: 34px; height: 34px; border: 2px solid var(--orange-d); background: linear-gradient(#ffd75a, #ff9a1c); border-radius: 50%; font-size: 20px; line-height: 1; color: #fff; text-shadow: 0 1px 0 #a64f00; box-shadow: inset 0 2px 0 rgba(255, 255, 255, .5); }
.tag {
  display: inline-block; font-style: normal; font-family: var(--game); font-size: 12px; line-height: 1.5;
  padding: 0 8px; border-radius: 999px; background: var(--red); color: #fff; vertical-align: middle;
}
.tag.blue { background: var(--blue); }
.state { display: inline-block; font-size: 12.5px; padding: 1px 10px; border-radius: 999px; background: #f1e2c0; color: var(--ink-2); white-space: nowrap; }
.state.ok { background: #dff5cc; color: #2f7d12; }
.state.warn { background: #ffe9b8; color: #a45a00; }
.slot {
  position: relative; flex: none; display: inline-grid; place-items: center;
  width: 54px; height: 54px; border-radius: 13px;
  background: radial-gradient(circle at 50% 35%, #fff 0, #fbeecd 55%, #f1d9a4 100%);
  border: 2px solid var(--edge);
  box-shadow: inset 0 -3px 0 rgba(190, 130, 40, .22);
}
.slot img { width: 46px; height: 46px; }
.slot i {
  position: absolute; right: 3px; bottom: 0; font-style: normal;
  font-family: var(--game); font-size: 13px; line-height: 1.2; color: #fff;
  text-shadow: 0 1px 0 #5b3413, 1px 0 0 #5b3413, -1px 0 0 #5b3413, 0 -1px 0 #5b3413;
}
.slot.big { width: 68px; height: 68px; border-radius: 16px; }
.slot.big img { width: 60px; height: 60px; }
.pkg-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
@media (min-width: 560px) { .pkg-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.pkg {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 1px;
  padding: 10px 8px 0; border-radius: 16px; overflow: hidden;
  border: 2px solid var(--edge); background: linear-gradient(#fffef9, #fff3d6);
  box-shadow: 0 3px 0 var(--edge-d);
}
.pkg:hover { filter: brightness(1.03); }
.pkg { transition: transform .18s cubic-bezier(.22, 1, .36, 1), filter .12s; }
@media (hover: hover) { .pkg:not(.skel):hover { transform: translateY(-3px); } }
.pkg:active { transform: scale(.97); transition-duration: .06s; }
.pkg.on { animation: pc-pick .42s cubic-bezier(.34, 1.56, .64, 1); }
.pkg.on::after { animation: pc-check-pop .34s cubic-bezier(.34, 1.56, .64, 1) .06s both; }
.pkg.on { border-color: #ff7a00; box-shadow: 0 0 0 3px #ffd766, 0 3px 0 #c26a08; background: linear-gradient(#fffef2, #ffe9ae); }
.pkg.on::after {
  content: "✓"; position: absolute; right: 6px; top: 6px; width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center; font-size: 14px; font-weight: 700; color: #fff;
  background: var(--green); border: 2px solid var(--green-d);
}
.pkg-art { position: relative; width: 96px; height: 62px; }
.pkg-art img { position: absolute; width: 56px; height: 56px; left: 20px; top: 4px; filter: drop-shadow(0 3px 2px rgba(120, 70, 0, .3)); }
.pkg-art.n1 img:nth-child(n+2), .pkg-art.n2 img:nth-child(3) { display: none; }
.pkg-art.n2 img:nth-child(1) { left: 6px; top: 8px; width: 50px; height: 50px; }
.pkg-art.n2 img:nth-child(2) { left: 36px; top: 4px; }
.pkg-art.n3 img:nth-child(1) { left: -2px; top: 12px; width: 46px; height: 46px; }
.pkg-art.n3 img:nth-child(2) { left: 52px; top: 12px; width: 46px; height: 46px; }
.pkg-art.n3 img:nth-child(3) { left: 18px; top: 0; width: 60px; height: 60px; }
.pkg-coin { font-family: var(--game); font-size: 16px; color: #7a3d00; }
.pkg em { font-style: normal; font-size: 12.5px; color: var(--gold); margin-bottom: 8px; }
.pkg-first {
  position: absolute; top: 10px; left: -25px; z-index: 1; width: 86px; padding: 2px 0 1px;
  transform: rotate(-45deg); text-align: center; pointer-events: none;
  font-style: normal; font-family: var(--game); font-size: 13px; letter-spacing: 1px; color: #fff;
  background: linear-gradient(#ff7254, #e2321b); box-shadow: 0 2px 3px rgba(150, 20, 0, .35);
  text-shadow: 0 1px 0 #8f1c0c;
}
.pkg-bonus {
  margin: 2px 0 1px; padding: 1px 9px; border-radius: 999px; white-space: nowrap;
  font-family: var(--game); font-size: 12.5px; color: #fff;
  background: linear-gradient(#ff6a4d, #e2321b); text-shadow: 0 1px 0 #8f1c0c;
}
.first-note { margin-top: 6px; font-size: 13px; color: var(--ink-2); line-height: 1.6; }
.first-note b { color: var(--red); }
.pkg-first-mini {
  display: inline-block; margin-right: 6px; padding: 0 6px; border-radius: 4px; vertical-align: 1px;
  font-style: normal; font-family: var(--game); font-size: 12px; color: #fff; background: var(--red);
}
.kv dd.first-dd { color: var(--red); font-weight: 700; }
.pkg b {
  align-self: stretch; margin: auto -8px 0; padding: 5px 0 6px;
  font-family: var(--game); font-weight: 400; font-size: 19px; color: #fff;
  background: linear-gradient(#ffc64a, #ff8d14); border-top: 2px solid var(--orange-d);
  text-shadow: 0 1px 0 #a64f00, 0 0 3px #a64f00;
}
.pkg .tag { position: absolute; top: 6px; left: 6px; }
.custom {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  margin-top: 12px; padding: 10px 14px; border: 2px dashed var(--edge); border-radius: var(--r-s); background: var(--white);
}
.custom.on { border-style: solid; border-color: #ff7a00; box-shadow: 0 0 0 3px #ffd766; }
.custom > span:first-child { font-family: var(--game); color: #8a4a08; }
.money-in { display: flex; align-items: center; gap: 6px; flex: 1; min-width: 150px; max-width: 240px; }
.money-in i { font-style: normal; font-family: var(--game); font-size: 18px; color: #8a4a08; }
.money-in input { width: 100%; }
.radios { display: flex; flex-wrap: wrap; gap: 10px; }
.radio { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border: 2px solid var(--edge); border-radius: 999px; background: var(--white); cursor: pointer; }
.radio:has(input:checked) { border-color: #ff7a00; background: #fff0c4; }
.radio input { accent-color: #ff7a00; width: 16px; height: 16px; margin: 0; }
.kv { display: grid; gap: 8px; margin: 4px 0 2px; }
.kv > div { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; }
.kv dt { color: var(--ink-2); font-size: 13.5px; flex: none; }
.kv dd { text-align: right; min-width: 0; overflow-wrap: anywhere; }
.kv .strong { padding-top: 10px; border-top: 2px dashed var(--line); }
.kv .strong dd { font-family: var(--game); font-size: 24px; }
.kv .strong .cur { width: 28px; height: 28px; vertical-align: -6px; }
.kv.wide > div { padding: 10px 0; border-bottom: 1px dashed var(--line); }
.kv.wide > div:last-child { border-bottom: 0; padding-bottom: 0; }
.kv.wide { gap: 0; margin-top: 4px; }
.split { margin-top: 12px; padding: 10px 12px; border-radius: var(--r-s); background: var(--panel-2); border: 1px solid var(--line); font-size: 12.5px; color: var(--ink-2); }
.split ul { margin-top: 4px; }
.split li { display: flex; justify-content: space-between; gap: 12px; font-variant-numeric: tabular-nums; }
.split li span:last-child { color: var(--gold); font-weight: 650; }
.table-wrap { overflow-x: auto; margin-top: 10px; -webkit-overflow-scrolling: touch; border: 2px solid var(--line); border-radius: var(--r-s); background: var(--white); }
.table { width: 100%; border-collapse: collapse; font-size: 13.5px; white-space: nowrap; }
.table th { text-align: left; font-family: var(--game); font-weight: 400; color: #8a4a08; font-size: 13.5px; padding: 8px 12px; background: #fbe4b0; }
.table td { padding: 10px 12px; border-top: 1px dashed var(--line); }
.table .num { text-align: right; }
.table tr.cur td { background: #fff0c4; font-weight: 650; }
.table .empty { text-align: center; color: var(--ink-3); padding: 28px 10px; }
.table .plus { color: #2f8a12; font-weight: 650; }
.table .minus { color: var(--red); font-weight: 650; }
.gifts { margin-top: 6px; display: grid; gap: 10px; }
.gift {
  display: grid; grid-template-columns: 1fr auto; grid-template-areas: "need act" "items items"; gap: 8px 12px; align-items: center;
  padding: 12px 14px; border: 2px solid var(--line); border-radius: 14px; background: var(--white);
}
.gift.locked { background: #f7efdc; }
.gift.locked .slot { filter: saturate(.55); }
.gift-need { grid-area: need; display: flex; align-items: baseline; gap: 8px; }
.gift-need b { font-family: var(--game); font-weight: 400; font-size: 22px; color: var(--red); }
.gift.locked .gift-need b { color: var(--ink-2); }
.gift-items { grid-area: items; display: flex; flex-wrap: wrap; gap: 8px; }
.gi { display: flex; flex-direction: column; align-items: center; width: 62px; }
.gi small { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-2); font-size: 11.5px; margin-top: 2px; }
.gift-act { grid-area: act; }
@media (min-width: 640px) {
  .gift { grid-template-columns: 140px 1fr auto; grid-template-areas: "need items act"; }
  .gift-need { flex-direction: column; gap: 0; align-items: flex-start; }
}
.balance { display: flex; align-items: center; gap: 8px; padding: 6px 16px; border-radius: 999px; background: linear-gradient(#fff3a8, #ffd766); border: 2px solid #c98510; }
.balance small { color: #8a4a08; }
.balance b { font-family: var(--game); font-weight: 400; font-size: 22px; color: #a04a00; }
.balance a { font-size: 13px; font-weight: 650; }
.chips-row { display: flex; gap: 8px; overflow-x: auto; margin: 14px -16px 0; padding: 2px 16px 6px; scrollbar-width: none; }
.chips-row::-webkit-scrollbar { display: none; }
.chip-btn { flex: none; min-height: 34px; padding: 2px 16px; border-radius: 999px; border: 2px solid var(--edge); background: var(--white); color: #8a4a08; font-family: var(--game); font-size: 14.5px; }
.chip-btn.on { background: linear-gradient(#7fd0ff, #2f8fe9); border-color: var(--blue-d); color: #fff; text-shadow: 0 1px 0 #164f8f; box-shadow: inset 0 2px 0 rgba(255, 255, 255, .5); }
.shop-filters { display: grid; gap: 10px; margin-top: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.shop-filters label { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.shop-filters label > span { font-size: 13px; color: var(--ink-2); }
.shop-filters label.grow { grid-column: 1 / -1; }
.shop .shop-filters select, .shop .shop-filters input {
  width: 100%; min-height: 0; height: 42px; padding: 0 12px; border-radius: 12px; border: 2px solid var(--edge);
  background: var(--white); font: inherit; font-size: 15px; color: var(--ink); min-width: 0;
}
.shop .shop-filters input.bad { border-color: var(--red); background: #fff1ee; }
@media (min-width: 820px) {
  .shop-filters { grid-template-columns: 1fr 1.3fr 2fr .9fr; }
  .shop-filters label.grow { grid-column: auto; }
}
.cart { margin-top: 12px; padding: 10px 12px; border-radius: 16px; background: var(--panel-2); border: 2px solid var(--line); }
.cart.short { border-color: #f0a35a; }
.cart-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.cart-ico { position: relative; flex: none; }
.cart-ico .cur { width: 36px; height: 36px; }
.cart-ico i { position: absolute; right: -6px; top: -4px; min-width: 18px; padding: 0 5px; border-radius: 999px; background: var(--red); color: #fff; font: 700 11px/18px system-ui, sans-serif; font-style: normal; text-align: center; }
.cart-title { display: flex; flex-direction: column; line-height: 1.3; margin-right: auto; min-width: 0; }
.cart-title b { font-family: var(--game); font-weight: 400; font-size: 17px; color: #7a3d00; }
.cart-title small, .cart-sum small { color: var(--ink-2); font-size: 12.5px; }
.cart-sum { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.25; }
.cart-sum b { font-family: var(--game); font-weight: 400; font-size: 22px; }
.cart-sum b small { font-size: 12.5px; }
.link-btn { padding: 4px 2px; border: 0; background: none; color: var(--blue-d); font: inherit; font-size: 13.5px; font-weight: 650; cursor: pointer; }
.link-btn:disabled { color: var(--ink-3); cursor: default; }
@media (max-width: 559px) {
  .cart-sum { align-items: flex-start; }
  .cart-bar > .btn { flex: 1 1 100%; }
}
.cart-warn { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: #fff1d6; border: 1px dashed #e9a25a; font-size: 13.5px; line-height: 1.6; }
.cart-warn p { flex: 1 1 260px; margin: 0; }
.cart-warn p b { color: #b54708; }
.cart-warn small { display: block; color: var(--ink-2); font-size: 12px; }
.cart-lines { list-style: none; margin: 10px 0 0; padding: 0; }
.cart-line { display: grid; grid-template-columns: 54px minmax(0, 1fr) auto; gap: 6px 10px; align-items: center; padding: 8px 0; border-top: 1px dashed var(--line); }
.cart-name { display: flex; flex-direction: column; min-width: 0; line-height: 1.35; }
.cart-name b { font-weight: 650; font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cart-name small { color: var(--ink-2); font-size: 12.5px; }
.cart-cost { font-family: var(--game); font-weight: 400; font-size: 17px; text-align: right; }
.cart-line .stepper { grid-column: 2; }
.cart-line .cart-cost { grid-column: 3; grid-row: 1; }
.cart-line .link-btn { grid-column: 3; grid-row: 2; justify-self: end; }
@media (min-width: 640px) {
  .cart-line { grid-template-columns: 54px minmax(0, 1fr) auto 90px auto; }
  .cart-line .stepper, .cart-line .cart-cost, .cart-line .link-btn { grid-column: auto; grid-row: auto; }
}
.stepper { display: inline-flex; align-items: center; border: 2px solid var(--edge); border-radius: 10px; overflow: hidden; background: var(--white); justify-self: start; }
.stepper button { width: 30px; height: 30px; border: 0; background: var(--panel-2); color: #7a3d00; font-size: 17px; cursor: pointer; }
.stepper button:disabled { color: var(--ink-3); cursor: default; }
.cart .stepper input { width: 58px; min-height: 0; height: 30px; padding: 0 4px; border: 0; border-radius: 0; box-shadow: none; text-align: center; font: inherit; font-size: 14.5px; color: var(--ink); background: var(--white); }
.cart .stepper input:focus { box-shadow: inset 0 0 0 2px #ff8a12; }
.shop-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 18px; }
.shop-head h3 { margin: 0; font-family: var(--game); font-weight: 400; font-size: 19px; color: #7a3d00; }
.shop-new { margin-top: 4px; padding-bottom: 6px; border-bottom: 2px dashed var(--line); }
.shop-empty { margin-top: 12px; padding: 26px 12px; text-align: center; color: var(--ink-2); border: 2px dashed var(--line); border-radius: 14px; }
.shop-empty p { margin: 0 0 10px; }
.pager { display: flex; justify-content: center; align-items: center; gap: 12px; margin-top: 14px; font-size: 13.5px; color: var(--ink-2); }
.pager-note { margin: 12px 0 0; text-align: center; font-size: 12.5px; }
.goods-grid { list-style: none; padding: 0; display: grid; gap: 10px; margin-top: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 560px) { .goods-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 820px) { .goods-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1060px) { .goods-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.goods {
  --qc: #d9c49a;
  display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0;
  padding: 12px 10px 10px; border: 2px solid var(--qc); border-radius: 14px; background: var(--white); text-align: center;
}
.goods.q2 { --qc: #62c934; }
.goods.q3 { --qc: #3b9cf5; }
.goods.q4 { --qc: #a35be8; }
.goods.q5 { --qc: #ff9a1c; }
.goods.q6 { --qc: #e8452f; }
.goods .slot { border-color: var(--qc); }
.goods.picked { background: #fff6dc; box-shadow: 0 0 0 3px rgba(255, 154, 28, .28); }
.goods-name { max-width: 100%; margin-top: 4px; font-family: var(--game); font-weight: 400; font-size: 15.5px; color: #7a3d00; line-height: 1.3; }
.goods-name small { font-size: 13px; color: var(--ink-2); }
.goods-name .tag { margin-left: 4px; }
.goods-price { font-family: var(--game); font-size: 16px; color: var(--gold); white-space: nowrap; }
.goods-price .cur { width: 20px; height: 20px; vertical-align: -4px; }
.goods-price small { color: var(--ink-3); font-family: inherit; font-size: 12px; }
.goods-note { min-height: 1.4em; color: var(--ink-2); font-size: 12px; line-height: 1.4; }
.goods .btn { width: 100%; margin-top: auto; padding-left: 6px; padding-right: 6px; white-space: normal; line-height: 1.25; }
.cart-need { margin-top: 12px; padding: 10px 12px; border-radius: var(--r-s); background: #fff1d6; border: 1px dashed #e9a25a; font-size: 13px; line-height: 1.55; }
.cart-need.ok { background: #e8f8dc; border-color: #8fcf6a; }
.cart-need p { margin: 0; }
.cart-need b { color: #b54708; }
.cart-need.ok p + p { color: #2f7d12; font-weight: 650; }
.pay-lines { list-style: none; margin: 8px 0; padding: 8px 12px; border-radius: var(--r-s); background: var(--panel-2); border: 1px solid var(--line); max-height: 240px; overflow-y: auto; }
.pay-lines li { display: flex; justify-content: space-between; gap: 10px; padding: 4px 0; font-size: 14px; }
.pay-lines li + li { border-top: 1px dashed var(--line); }
.pay-lines small { color: var(--ink-2); }
.pay-lines b { color: var(--gold); white-space: nowrap; }
.ex-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.ex-head b { font-family: var(--game); font-weight: 400; font-size: 18px; color: #7a3d00; }
.code-box { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-radius: 14px; background: var(--white); border: 2px dashed var(--edge); }
.code-box > b { font-family: var(--game); font-weight: 400; font-size: 30px; letter-spacing: 3px; color: var(--red); }
.code-box > div { display: flex; flex-wrap: wrap; gap: 8px; }
.stats3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.stats3 div { display: flex; flex-direction: column; padding: 8px 12px; border-radius: 12px; background: var(--panel-2); }
.stats3 small { color: var(--ink-2); }
.stats3 b { font-family: var(--game); font-weight: 400; font-size: 20px; color: #7a3d00; }
.rules { list-style: decimal; padding-left: 1.3em; display: grid; gap: 6px; font-size: 13.5px; color: var(--ink-2); }
.inline-form { display: flex; gap: 8px; }
.inline-form input { flex: 1; min-width: 0; }
.actions { display: grid; gap: 10px; }
input:not([type=radio]) {
  min-height: 42px; padding: 8px 14px; border-radius: 12px;
  border: 2px solid var(--edge); background: #fff; width: 100%; color: var(--ink);
  box-shadow: inset 0 2px 3px rgba(150, 100, 30, .14);
}
input::placeholder { color: #c3ab86; }
input:focus { outline: none; border-color: #ff8a12; box-shadow: 0 0 0 3px #ffd766; }
.field { display: block; margin-top: 12px; }
.field > span { display: block; font-size: 13.5px; color: var(--ink-2); margin-bottom: 4px; }
.field em { font-style: normal; color: var(--ink-3); font-size: 12.5px; margin-left: 4px; }
.form-msg { margin-top: 10px; padding: 8px 12px; border-radius: 12px; background: #ffe1da; color: #b3260f; font-size: 13.5px; border: 1px solid #f3a898; }
.total { margin-top: 12px; text-align: right; }
.total b { font-family: var(--game); font-weight: 400; font-size: 24px; }
.notice { margin-top: 12px; padding: 10px 12px; border-radius: 12px; background: #ffefc2; color: #94500a; font-size: 13.5px; border: 1px solid #f0cf85; }
.tabs { display: flex; gap: 6px; margin-bottom: 6px; }
.tabs a {
  flex: 1; text-align: center; padding: 8px; border-radius: 999px;
  font-family: var(--game); font-size: 17px; color: #8a4a08;
  border: 2px solid var(--edge); background: var(--white);
}
.tabs a:hover { text-decoration: none; }
.tabs a.on { color: #fff; border-color: var(--orange-d); background: linear-gradient(#ffd75a, #ff9a1c); text-shadow: 0 1px 0 #a64f00, 0 0 3px #a64f00; box-shadow: inset 0 2px 0 rgba(255, 255, 255, .55); }
.tabs.line { margin: 4px 0 0; overflow-x: auto; gap: 8px; scrollbar-width: none; padding-bottom: 2px; }
.tabs.line::-webkit-scrollbar { display: none; }
.tabs.line button { flex: none; padding: 4px 16px; min-height: 34px; border-radius: 999px; border: 2px solid var(--edge); background: var(--white); color: #8a4a08; font-family: var(--game); font-size: 14.5px; white-space: nowrap; }
.tabs.line button.on { background: linear-gradient(#7fd0ff, #2f8fe9); border-color: var(--blue-d); color: #fff; text-shadow: 0 1px 0 #164f8f; box-shadow: inset 0 2px 0 rgba(255, 255, 255, .5); }
.auth-page { min-height: calc(100vh - 28px); display: flex; align-items: center; justify-content: center; padding: 18px 16px 40px; }
.auth-box { width: 100%; max-width: 440px; display: grid; }
.auth-art { position: relative; text-align: center; padding: 4px 0 10px; }
.auth-art-bg { display: none; }
.auth-logo { width: min(250px, 62vw); height: auto; filter: drop-shadow(0 5px 6px rgba(120, 60, 0, .28)); }
.auth-form {
  padding: 20px 18px 22px; border-radius: 22px; background: var(--white);
  border: 2px solid var(--line); box-shadow: 0 10px 28px rgba(120, 80, 20, .14);
}
.auth-title { font-family: var(--game); font-weight: 400; font-size: 24px; line-height: 1.3; color: #7a3d00; text-align: center; }
.auth-sub { margin: 2px 0 14px; text-align: center; font-size: 13.5px; color: var(--ink-2); }
.auth-foot { display: flex; justify-content: space-between; gap: 12px; margin-top: 14px; font-size: 13.5px; }
@media (min-width: 820px) {
  .auth-box {
    max-width: 940px; grid-template-columns: minmax(0, 1fr) 430px; overflow: hidden; border-radius: 26px;
    background: var(--white); border: 2px solid var(--line); box-shadow: 0 14px 40px rgba(120, 80, 20, .18);
  }
  .auth-art { padding: 0; min-height: 600px; background: #8fd3ff; }
  .auth-art-bg { display: block; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; }
  .auth-logo { position: absolute; left: 50%; top: 5%; width: 62%; transform: translateX(-50%); filter: drop-shadow(0 6px 8px rgba(20, 60, 120, .35)); }
  .auth-form { padding: 38px 36px 30px; border: 0; border-radius: 0; box-shadow: none; align-self: center; }
  .auth-title { font-size: 28px; }
  .auth-sub { margin-bottom: 20px; }
}
.modal-mask { position: fixed; inset: 0; z-index: 50; background: rgba(20, 12, 4, .6); display: flex; align-items: flex-end; justify-content: center; }
.modal {
  width: 100%; max-width: 440px; max-height: 88vh; overflow-y: auto;
  background: var(--panel); border: 2px solid var(--edge); border-bottom: 0; border-radius: 22px 22px 0 0;
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .7);
  padding: 16px 18px calc(18px + env(safe-area-inset-bottom));
}
.modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.modal-head h3 { font-family: var(--game); font-weight: 400; font-size: 20px; color: #8a4a08; }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }
.modal-foot .btn { flex: 1; }
@media (min-width: 560px) {
  .modal-mask { align-items: center; padding: 16px; }
  .modal { border-radius: 22px; border-bottom: 2px solid var(--edge); padding-bottom: 18px; box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .7), 0 5px 0 var(--edge-d), 0 20px 50px rgba(0, 0, 0, .4); }
  .modal-foot .btn { flex: none; }
}
.role-list { display: grid; gap: 8px; margin-top: 12px; }
.role-opt { display: flex; align-items: center; gap: 12px; text-align: left; padding: 8px 12px; border-radius: 14px; border: 2px solid var(--line); background: var(--white); }
.role-opt.on { border-color: #ff7a00; background: #fff0c4; }
.role-opt > span:nth-child(2) { flex: 1; display: flex; flex-direction: column; line-height: 1.35; min-width: 0; }
.role-opt b { font-family: var(--game); font-weight: 400; font-size: 16.5px; color: #7a3d00; }
.avatar.sm { width: 44px; height: 44px; flex: none; }
#toastRoot { position: fixed; left: 0; right: 0; bottom: 92px; z-index: 60; display: flex; justify-content: center; pointer-events: none; padding: 0 16px; }
.toast { max-width: 100%; padding: 8px 20px; border-radius: 999px; background: rgba(60, 32, 8, .92); color: #fff; font-family: var(--game); font-size: 15.5px; border: 2px solid #ffd766; box-shadow: 0 8px 24px rgba(0, 0, 0, .3); }
.toast.good { background: rgba(38, 110, 12, .95); border-color: #c9f58a; }
.toast.bad { background: rgba(170, 34, 16, .95); border-color: #ffc2b5; }
@media (min-width: 820px) { #toastRoot { bottom: 36px; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; }
  #view.pc-fade, .auth-form.pc-fade { animation-duration: .18s !important; }
  .sk { animation: none !important; }
}
body.is-home, body.is-home::before { background: #fbf6e9; }
.home-in { max-width: 1160px; margin: 0 auto; padding: 0 18px; }
.home-top-in { display: flex; align-items: center; gap: 20px; padding-top: 12px; padding-bottom: 12px; }
.home-top { border-bottom: 2px solid var(--line); }
.home-logo { display: flex; align-items: center; gap: 10px; margin-right: auto; min-width: 0; }
.home-logo img { width: 46px; height: 46px; object-fit: contain; flex: none; }
.home-logo span { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.home-logo b { font-family: var(--game); font-weight: 400; font-size: 20px; color: #7a3d00; white-space: nowrap; }
.home-logo small { font-size: 12px; color: var(--ink-2); }
.home-nav { display: none; gap: 24px; font-family: var(--game); font-size: 17px; }
.home-nav a { color: var(--ink); }
.home-nav a:hover { color: #e8691a; }
@media (min-width: 620px) { .home-nav { display: flex; } }
.home-hero { padding: 30px 0 8px; }
.home-lead { display: grid; gap: 22px; align-items: center; }
.home-title { font-family: var(--game); font-weight: 400; font-size: clamp(30px, 8.2vw, 54px); line-height: 1.22; color: var(--ink); }
.home-title em { font-style: normal; color: #e8691a; }
.home-cta .dl-btns { justify-content: flex-start; }
.home-cta .dl { box-shadow: inset 0 3px 0 rgba(255, 255, 255, .55), 0 5px 0 #23700d; }
.home-cta .dl.ios { box-shadow: inset 0 3px 0 rgba(255, 255, 255, .55), 0 5px 0 #154f91; }
@media (max-width: 520px) {
  .home-cta .dl-btns { gap: 10px; flex-wrap: nowrap; }
  .home-cta .dl { flex: 1 1 0; min-width: 0; gap: 8px; padding: 8px 8px 10px 10px; border-radius: 16px; }
  .home-cta .dl svg { width: 30px; height: 30px; }
  .home-cta .dl b { font-size: 18px; white-space: nowrap; }
  .home-cta .dl small { font-size: 11.5px; white-space: nowrap; }
}
@media (min-width: 900px) {
  .home-hero { padding-top: 44px; }
  .home-lead { grid-template-columns: minmax(0, 1fr) auto; gap: 40px; }
}
.home-art {
  position: relative; container-type: inline-size; overflow: hidden; margin-top: 28px;
  aspect-ratio: 16 / 9; border-radius: 18px; background: #f3dfb8;
  box-shadow: 0 10px 28px rgba(120, 80, 20, .18);
}
.home-art > img { display: block; width: 100%; height: 100%; object-fit: cover; }
.home-brand { position: absolute; left: 50%; top: 15%; width: 36%; transform: translateX(-50%); pointer-events: none; }
.home-brand img { display: block; width: 100%; height: auto; filter: drop-shadow(0 .6cqw .8cqw rgba(120, 50, 0, .45)); }
@media (min-width: 900px) {
  .home-art { aspect-ratio: 2 / 1; border-radius: 24px; margin-top: 36px; }
  .home-brand { top: 16%; width: 31%; }
}
.dl-chick { width: 120px; height: auto; margin-bottom: 4px; filter: drop-shadow(0 5px 5px rgba(10, 40, 90, .3)); }
.dl-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.dl {
  display: inline-flex; align-items: center; gap: 12px; text-align: left;
  min-width: 212px; padding: 10px 26px 12px 18px; border-radius: 20px; color: #fff;
  border: 3px solid #2f8a12; background: linear-gradient(#b9f060, #47b01c);
  box-shadow: inset 0 3px 0 rgba(255, 255, 255, .55), 0 5px 0 #23700d, 0 10px 18px rgba(0, 0, 0, .3);
  transition: filter .12s, transform .06s;
}
.dl.ios { border-color: #1d67b8; background: linear-gradient(#86d6ff, #2a86e2); box-shadow: inset 0 3px 0 rgba(255, 255, 255, .55), 0 5px 0 #154f91, 0 10px 18px rgba(0, 0, 0, .3); }
.dl:hover { filter: brightness(1.07); }
.dl:active { transform: translateY(3px); }
.dl svg { width: 40px; height: 40px; flex: none; filter: drop-shadow(0 2px 0 rgba(0, 0, 0, .25)); }
.dl span { display: flex; flex-direction: column; line-height: 1.25; }
.dl b { font-family: var(--game); font-weight: 400; font-size: 22px; text-shadow: 0 2px 0 rgba(0, 60, 0, .55); }
.dl.ios b { text-shadow: 0 2px 0 rgba(0, 40, 110, .6); }
.dl small { color: rgba(255, 255, 255, .92); font-size: 12.5px; }
.pc-strip {
  display: grid; gap: 16px; margin-top: 26px; padding: 18px 16px 20px;
  grid-template-areas: "head" "sign" "perks" "cta";
  border-radius: 22px; border: 3px solid var(--edge);
  background: linear-gradient(160deg, #fffaf0 0%, #ffeccb 100%);
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .7), 0 5px 0 var(--edge-d), 0 14px 26px rgba(120, 80, 20, .16);
}
.pc-head { grid-area: head; display: flex; align-items: center; gap: 12px; min-width: 0; }
.pc-chick { width: 58px; height: 58px; flex: none; object-fit: contain; filter: drop-shadow(0 3px 3px rgba(120, 60, 0, .25)); }
.pc-title { font-family: var(--game); font-weight: 400; font-size: clamp(22px, 5.6vw, 30px); line-height: 1.2; color: #7a3d00; }
.pc-title em { font-style: normal; color: #e8691a; }
.pc-perks { grid-area: perks; display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pc-perks li {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; min-width: 0; padding: 12px 8px;
  border-radius: 16px; background: var(--white); border: 2px solid var(--line);
}
.pc-perk { display: flex; flex-direction: column; align-items: center; min-width: 0; line-height: 1.35; }
@media (min-width: 640px) {
  .pc-perks li { flex-direction: row; text-align: left; gap: 10px; padding: 10px; }
  .pc-perk { align-items: flex-start; }
}
.pc-perk b { font-family: var(--game); font-weight: 400; font-size: 17px; color: #7a3d00; }
.pc-perk small { margin-top: 2px; font-size: 12.5px; color: var(--ink-2); text-wrap: pretty; }
.pc-cta { grid-area: cta; display: flex; flex-direction: column; align-items: center; gap: 9px; }
.pc-go {
  position: relative; overflow: hidden; width: 100%; min-height: 56px; padding: 8px 32px; font-size: 23px;
  border-width: 3px; box-shadow: inset 0 3px 0 rgba(255, 255, 255, .55), 0 5px 0 #a85a06, 0 10px 18px rgba(168, 90, 6, .28);
}
.pc-go:active { transform: translateY(3px); box-shadow: inset 0 3px 0 rgba(255, 255, 255, .55), 0 2px 0 #a85a06; }
.pc-go::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .6), transparent);
  transform: skewX(-20deg); animation: pc-shine 3.2s ease-in-out infinite;
}
@keyframes pc-shine { 0%, 55% { left: -60%; } 100% { left: 130%; } }
@media (prefers-reduced-motion: reduce) { .pc-go::after { display: none; } }
.pc-alt { font-size: 13px; color: var(--ink-2); }
.pc-alt a { color: #c26a08; font-weight: 700; }
.pc-alt a:hover { color: #e8691a; }
@media (min-width: 900px) {
  .pc-strip {
    grid-template-areas: "head cta" "sign sign" "perks perks"; grid-template-columns: minmax(0, 1fr) auto;
    align-items: center; gap: 18px 28px; margin-top: 34px; padding: 22px 26px 24px;
  }
  .pc-chick { width: 68px; height: 68px; }
  .pc-perks { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
  .pc-go { width: auto; min-width: 270px; }
}
.home-sec { padding: 40px 0 46px; }
.home-sec .home-in { text-align: center; }
.home-sec.alt { background: var(--panel); border-top: 4px solid var(--edge); border-bottom: 4px solid var(--edge); box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .7); }
.home-h {
  font-family: var(--game); font-weight: 400; font-size: 28px; color: #7a3d00; margin-bottom: 20px;
}
.home-sec.alt .home-h { text-shadow: 0 3px 0 #a64f00, 3px 0 0 #a64f00, -3px 0 0 #a64f00, 0 -3px 0 #a64f00; }
.home-p { color: #fff; font-size: 16px; margin: -10px 0 20px; text-shadow: 0 1px 3px rgba(0, 30, 80, .8); }
.feats { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); text-align: left; }
@media (min-width: 760px) { .feats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.feat {
  aspect-ratio: 900 / 396; border-radius: 20px; overflow: hidden;
  background: #fff right center / cover no-repeat;
  border: 2px solid var(--line); box-shadow: 0 8px 22px rgba(120, 80, 20, .12);
  display: flex; align-items: center;
}
.feat div { width: 58%; padding: 0 0 0 7%; }
.feat b { display: block; font-family: var(--game); font-weight: 400; font-size: clamp(20px, 3.4vw, 30px); color: #e8691a; line-height: 1.25; }
.feat p { margin-top: 6px; font-size: clamp(12.5px, 1.6vw, 15px); color: var(--ink-2); line-height: 1.55; }
.entries { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 760px) { .entries { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.entries li { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 16px 10px; border-radius: 16px; background: var(--white); border: 2px solid var(--line); box-shadow: 0 3px 0 var(--edge); }
.entries img { width: 64px; height: 64px; }
.entries b { font-family: var(--game); font-weight: 400; font-size: 19px; color: #7a3d00; }
.entries small { color: var(--ink-2); font-size: 12.5px; line-height: 1.5; }
.home-sec.alt .home-enter { margin-top: 24px; }
.home-foot { border-top: 2px solid var(--line); color: var(--ink-3); font-size: 12.5px; text-align: center; padding: 18px 16px 22px; line-height: 1.8; }
.mcards { display: grid; gap: 14px; margin-top: 8px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 760px) { .mcards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.mcard {
  position: relative; display: flex; flex-direction: column; padding: 14px 14px 16px;
  border-radius: 18px; border: 2px solid var(--edge); background: linear-gradient(#fffef9, #fff1cf);
  box-shadow: 0 3px 0 var(--edge-d);
}
.mcard.on { border-color: #ff7a00; box-shadow: 0 0 0 3px #ffd766, 0 3px 0 #c26a08; }
.mcard .tag { position: absolute; top: 10px; right: 10px; }
.mcard-head { display: flex; align-items: center; gap: 10px; }
.mcard-head img { width: 60px; height: 60px; filter: drop-shadow(0 3px 2px rgba(120, 70, 0, .3)); }
.mcard-head div { display: flex; flex-direction: column; line-height: 1.25; }
.mcard-head b { font-family: var(--game); font-weight: 400; font-size: 24px; color: #a04a00; }
.mcard-head small { color: var(--ink-2); font-size: 13px; }
.mcard-now { margin-top: 10px; padding: 6px 10px; border-radius: 10px; background: #fff; border: 1px dashed var(--edge); font-size: 13.5px; color: var(--ink-2); }
.mcard-now b { font-family: var(--game); font-weight: 400; font-size: 17px; color: var(--gold); }
.mcard-label { margin-top: 10px; font-family: var(--game); font-size: 14px; color: #8a4a08; }
.mcard-daily { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; min-height: 76px; }
.mcard-state { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 10px; }
.mcard .btn.block { margin-top: 10px; }
.rc-gift .gift-box { display: flex; align-items: center; gap: 14px; margin: 12px 0; padding: 14px; border-radius: 14px; border: 2px solid var(--edge); background: linear-gradient(#fffaf0, #fff0c8); }
.rc-gift .gift-box img { width: 72px; height: 72px; flex: none; object-fit: contain; }
.rc-gift .gift-name { font-size: 18px; }
.rc-gift .gift-box .muted { margin: 4px 0 0; }
.rc-gift .gift-price { margin: 6px 0 0; font-size: 22px; font-weight: 800; color: #e4572e; }
.gift-mini { width: 22px; height: 22px; vertical-align: -5px; margin-right: 4px; object-fit: contain; }
.card-link {
  display: flex; align-items: center; gap: 12px; margin-top: 14px; padding: 8px 14px;
  border-radius: 14px; border: 2px solid var(--edge); background: linear-gradient(#fff6c9, #ffe394); color: var(--ink);
  box-shadow: 0 3px 0 var(--edge-d);
}
.card-link:hover { text-decoration: none; filter: brightness(1.04); }
.card-link img { width: 46px; height: 46px; flex: none; }
.card-link span { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.35; }
.card-link b { font-family: var(--game); font-weight: 400; font-size: 18px; color: #a04a00; }
.card-link small { color: var(--ink-2); }
.card-link i { font-style: normal; font-family: var(--game); color: #c2590a; white-space: nowrap; }
.auth-back { margin-top: 12px; text-align: center; font-size: 13.5px; }
.modal h3.sub { font-family: var(--game); font-weight: 400; font-size: 16px; color: #8a4a08; margin: 16px 0 8px; }
@media (max-width: 819px) {
  .nav { padding-left: 2px; padding-right: 2px; }
  .nav a { padding: 5px 0; font-size: 11px; }
  .nav-badge { left: calc(50% + 4px); }
}
@media (max-width: 359px) { .nav a { font-size: 10px; } }
@media (min-width: 820px) and (max-width: 1023px) {
  .nav .ico { display: none; }
  .nav a { padding: 7px 8px; }
}
@media (min-width: 820px) and (max-width: 1099px) {
  .nav { gap: 2px; }
  .nav a { padding: 7px 9px; font-size: 14px; gap: 4px; }
  .nav .ico { width: 20px; height: 20px; }
}
.limits { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 8px; margin: 6px 0 2px; font-size: 12px; line-height: 1.4; color: #8a4a08; }
.limits span { padding: 0 6px; border-radius: 6px; background: #fff0cf; }
.limits strong { padding: 0 6px; border-radius: 6px; background: #ffe0d6; color: var(--red); font-weight: 650; }
.limits .out { background: #eee3cf; color: var(--ink-3); }
.limits small { flex-basis: 100%; text-align: center; color: var(--ink-3); font-size: 11.5px; }
.pkg .limits { margin: 2px 0 4px; }
.pkg.sold { opacity: .55; cursor: not-allowed; }
.mcard-why { margin: 6px 0 0; font-size: 12.5px; color: var(--ink-3); text-align: center; }
.mcard .btn:disabled { filter: grayscale(.7); opacity: .7; }
.gift-to { margin: 12px 0 4px; padding: 12px 14px; border-radius: var(--r-s); background: var(--white); border: 2px solid var(--line); display: grid; gap: 8px; }
.gift-to.on { border-color: #9fd0ff; background: #f3f9ff; }
.gift-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.gift-label { font-family: var(--game); color: #8a4a08; font-size: 15px; }
.seg { display: inline-flex; padding: 3px; border-radius: 999px; background: #f6e6c2; border: 2px solid var(--edge); }
.seg button { min-height: 32px; padding: 2px 16px; border: 0; border-radius: 999px; background: none; color: #8a4a08; font-family: var(--game); font-size: 14.5px; cursor: pointer; }
.seg button.on { background: linear-gradient(#7fd0ff, #2f8fe9); color: #fff; text-shadow: 0 1px 0 #164f8f; }
.gift-fields { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px 12px; }
.gift-fields label { display: grid; gap: 4px; font-size: 13px; color: var(--ink-2); min-width: 0; }
.gift-fields label.grow { flex: 1 1 180px; }
.gift-fields select, .gift-fields input { min-height: 38px; }
.gift-result { margin: 0; font-size: 13.5px; color: var(--ink-2); overflow-wrap: anywhere; }
.gift-result.ok { color: #2f7d12; }
.gift-to .hint { margin: 0; }
.code-row { display: flex; gap: 8px; margin: 10px 0 4px; }
.code-row input { flex: 1; min-width: 0; font-size: 18px; letter-spacing: .2em; text-align: center; }
.code-row .btn { flex: none; white-space: nowrap; }
.rank h2 .state { margin-left: 8px; vertical-align: 3px; font-family: system-ui, sans-serif; }
.state.blue { background: #dcefff; color: var(--blue-d); }
.rk-meta { margin-top: 8px; }
.rk-meta dd { font-size: 13.5px; }
.rk-snap { margin: 6px 0 0; font-size: 12.5px; }
.rk-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.rk-stat { display: flex; flex-direction: column; gap: 2px; padding: 12px; border-radius: var(--r-s); background: var(--white); border: 2px solid var(--line); min-width: 0; }
.rk-stat small { color: var(--ink-2); font-size: 12.5px; }
.rk-stat b { font-family: var(--game); font-weight: 400; font-size: 24px; color: #a04a00; line-height: 1.2; }
.rk-stat span { color: var(--ink-3); font-size: 11.5px; line-height: 1.35; }
.rk-stat.top { background: linear-gradient(#fff6c8, #ffe28a); border-color: #e8b440; }
.rk-boxes { display: grid; gap: 10px; margin-top: 12px; }
.rk-box { padding: 12px 14px; border-radius: var(--r-s); border: 2px dashed var(--line); background: var(--panel); }
.rk-box h3 { margin: 0 0 6px; font-family: var(--game); font-weight: 400; font-size: 16px; color: #8a4a08; }
.rk-box p { margin: 0 0 8px; font-size: 13.5px; color: var(--ink-2); }
.rk-box.next { border-style: solid; border-color: #9fd0ff; background: #f3f9ff; }
.rk-box.next .btn { margin-top: 8px; }
.rk-items { display: flex; flex-wrap: wrap; gap: 6px; }
.rk-claim { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.rk-claim small { color: var(--ink-2); font-size: 12.5px; }
.rk-list { list-style: none; padding: 0; margin: 10px 0 14px; display: grid; gap: 8px; }
.rk-row { display: grid; gap: 8px; padding: 10px 12px; border-radius: var(--r-s); background: var(--white); border: 2px solid var(--line); }
.rk-pos { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.rk-pos b { font-family: var(--game); font-weight: 400; font-size: 18px; color: #8a4a08; }
.rk-pos small { color: var(--ink-2); font-size: 12.5px; }
.rk-row.podium.p1 { background: linear-gradient(90deg, #fff2b0, #fffdf6 70%); border-color: #e8b440; }
.rk-row.podium.p2 { background: linear-gradient(90deg, #eef1f6, #fffdf6 70%); border-color: #b9c3d3; }
.rk-row.podium.p3 { background: linear-gradient(90deg, #fbe2cd, #fffdf6 70%); border-color: #d9a06a; }
.rk-row.me { box-shadow: 0 0 0 3px var(--blue); }
.rk-demo { margin-top: 12px; }
.rk-demo .link-btn.on { color: var(--ink); text-decoration: underline; }
@media (min-width: 720px) {
  .rk-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .rk-boxes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rk-row { grid-template-columns: 150px minmax(0, 1fr); align-items: center; }
  .rk-pos { flex-direction: column; gap: 2px; }
}
.home-sign {
  grid-area: sign; display: grid; gap: 10px; padding: 12px 12px 14px; min-width: 0;
  border-radius: 16px; background: var(--white); border: 2px solid var(--line);
}
.hs-head { display: flex; flex-direction: column; line-height: 1.35; }
.hs-head b { font-family: var(--game); font-weight: 400; font-size: 19px; color: #7a3d00; }
.hs-head small { color: var(--ink-2); font-size: 12.5px; }
.hs-act { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; }
.hs-go { min-width: 200px; }
.hs-more { font-size: 13.5px; font-weight: 650; }
@media (min-width: 900px) {
  .home-sign { grid-template-columns: 210px minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 12px 18px; }
  .hs-act { flex-direction: column; gap: 6px; }
  .hs-go { min-width: 170px; }
}
.sign-track { padding: 0 46px; margin: 6px 0 2px; min-width: 0; }
.sign-track.compact { padding: 0 30px; }
.st-mark .state { font-size: 12px; padding: 1px 8px; }
.st-marks { list-style: none; padding: 0; margin: 0; position: relative; height: 128px; }
.sign-track.compact .st-marks { height: 82px; }
.st-mark { position: absolute; bottom: 6px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; }
.st-mark .gi { width: auto; }
.st-mark b { font-family: var(--game); font-weight: 400; font-size: 14px; color: #8a4a08; white-space: nowrap; }
.st-mark .state, .st-mark .btn { margin-top: 2px; }
.st-mark.claimed .slot { border-color: #8fd06a; box-shadow: 0 0 0 3px rgba(98, 201, 52, .25); }
.st-mark.ready .slot { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(255, 154, 28, .3); }
.st-ok { position: absolute; top: -4px; right: -6px; width: 20px; height: 20px; border-radius: 50%; background: var(--green); color: #fff; font: 800 13px/20px system-ui, sans-serif; font-style: normal; box-shadow: 0 0 0 2px var(--white); }
.sign-track.compact .gi small { display: none; }
.sign-track.compact .slot { width: 44px; height: 44px; border-radius: 11px; }
.sign-track.compact .slot img { width: 38px; height: 38px; }
.st-bar { height: 12px; border-radius: 999px; background: #f1e2c0; border: 2px solid var(--edge); overflow: hidden; }
.st-bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(#ffd766, #ff9a1c); }
.sign .card-head { align-items: flex-start; }
.sign-act { flex: none; }
.sign-rule { margin: 12px 0 0; font-size: 13px; }
.sign-week, .sign-cal { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.sign-week { margin-top: 12px; }
.sign-week li { text-align: center; font-size: 12.5px; color: var(--ink-2); padding: 2px 0; }
.sign-cal { margin-top: 4px; }
.sd { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 52px; padding: 4px 2px; min-width: 0; border-radius: 12px; background: var(--white); border: 2px solid var(--line); }
.sd b { font-family: var(--game); font-weight: 400; font-size: 16px; line-height: 1.1; color: var(--ink-2); }
.sd small { min-height: 1.2em; font-size: 11px; color: var(--ink-3); white-space: nowrap; }
.sd.blank { background: none; border: 0; }
.sd.done { background: #eef9e6; border-color: #b9e3a0; }
.sd.done small { color: #2f7d12; }
.sd.miss { opacity: .5; }
.sd.today { border-color: var(--orange); background: #fff0cf; box-shadow: 0 0 0 3px rgba(255, 154, 28, .22); }
.sd.today small { color: #c2590a; font-weight: 700; }
.sd-ok { position: absolute; top: 2px; right: 5px; font-style: normal; font-weight: 800; color: #2f7d12; }
@media (min-width: 640px) {
  .sd { min-height: 60px; }
  .sd b { font-size: 18px; }
}
.my-cards, .my-gifts { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.my-card {
  display: grid; grid-template-columns: 52px minmax(0, 1fr); grid-template-areas: "img info" "act act"; gap: 8px 12px; align-items: center;
  padding: 12px 14px; border: 2px solid #b9e3a0; border-radius: 14px; background: #f3fbec;
}
.my-card img { grid-area: img; width: 52px; height: 52px; border-radius: 12px; background: #fff3d6; border: 2px solid var(--line); }
.mc-info { grid-area: info; min-width: 0; }
.mc-info b { font-family: var(--game); font-weight: 400; font-size: 17px; color: #7a3d00; }
.mc-info p { margin: 2px 0 0; font-size: 13px; color: var(--ink); }
.mc-info small { display: block; margin-top: 2px; font-size: 12.5px; color: #2f7d12; font-weight: 650; }
.mc-act { grid-area: act; display: flex; align-items: center; gap: 10px; }
.mc-act small { font-size: 12px; line-height: 1.4; color: var(--ink-2); }
.my-empty { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0; padding: 14px; border: 2px dashed var(--line); border-radius: 14px; color: var(--ink-2); }
.my-gifts > li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 2px solid var(--line); border-radius: 14px; background: var(--white); }
.my-gifts > li > div { flex: 1; min-width: 0; }
.my-gifts > li > .btn { flex: none; }
.my-gifts b { font-family: var(--game); font-weight: 400; font-size: 16px; color: #8a4a08; }
.my-gifts p { margin: 2px 0 0; font-size: 13.5px; color: var(--ink-2); }
.my-gifts p b { font-family: var(--game); font-size: 16px; color: var(--ink); }
.my-gifts p b.hot { color: var(--red); }
.my-chips { display: flex; flex-wrap: wrap; gap: 4px 6px; margin-top: 6px; }
.my-chips span { font-size: 12px; padding: 0 8px; border-radius: 999px; white-space: nowrap; }
.my-chips .ok { background: #dff5cc; color: #2f7d12; }
.my-chips .open { background: #ffe0d6; color: var(--red); font-weight: 650; }
@media (min-width: 640px) {
  .my-card { grid-template-columns: 52px minmax(0, 1fr) auto; grid-template-areas: "img info act"; }
  .mc-act { flex-direction: column; align-items: flex-end; text-align: right; gap: 4px; }
}
.flash { border-color: var(--orange) !important; box-shadow: 0 0 0 4px rgba(255, 154, 28, .35) !important; transition: box-shadow .2s, border-color .2s; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.pc-pill { position: absolute; z-index: 0; pointer-events: none; box-sizing: border-box; will-change: transform; }
.pill-host > a, .pill-host > button { position: relative; z-index: 1; }
.tabs > .pc-pill { z-index: 2; }
.pill-host > [data-pill-landing] { z-index: 3; }
[data-pill-landing] { background: transparent !important; box-shadow: none !important; border-color: transparent !important; animation: pc-ink .24s ease-out; }
@keyframes pc-ink { from { color: #8a6238; text-shadow: none; } }
.vt-on #view { view-transition-name: pc-view; }
.vt-on .auth-form { view-transition-name: pc-auth; }
.vt-on .topbar { view-transition-name: pc-top; }
.vt-on .nav { view-transition-name: pc-nav; }
.vt-on #rcBar { view-transition-name: pc-bar; }
::view-transition { pointer-events: none; }
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
::view-transition-group(pc-view), ::view-transition-group(pc-auth), ::view-transition-group(pc-top), ::view-transition-group(pc-nav) { animation: none; }
::view-transition-old(pc-top), ::view-transition-old(pc-nav) { animation: none; opacity: 0; }
::view-transition-new(pc-top), ::view-transition-new(pc-nav) { animation: none; }
::view-transition-old(pc-view), ::view-transition-old(pc-auth) { animation: pc-out .44s cubic-bezier(.32, .72, 0, 1) both; mix-blend-mode: normal; }
::view-transition-new(pc-view), ::view-transition-new(pc-auth) { animation: pc-in .52s cubic-bezier(.19, 1, .22, 1) both; mix-blend-mode: normal; }
@keyframes pc-out {
  to {
    opacity: 0; filter: blur(4.5px) brightness(.9);
    transform: perspective(1350px) translate3d(calc(var(--vt-dir, 1) * var(--vt-k, 1) * -145px), 0, calc(var(--vt-k, 1) * -260px))
      scale(calc(1 - .17 * var(--vt-k, 1))) rotateY(calc(var(--vt-dir, 1) * var(--vt-k, 1) * 16deg)) rotateX(calc(var(--vt-k, 1) * 2.5deg));
  }
}
@keyframes pc-in {
  0% {
    opacity: 0; filter: blur(4px);
    transform: perspective(1350px) translate3d(calc(var(--vt-dir, 1) * var(--vt-k, 1) * 135px), 0, calc(var(--vt-k, 1) * -220px))
      scale(calc(1 - .145 * var(--vt-k, 1))) rotateY(calc(var(--vt-dir, 1) * var(--vt-k, 1) * -15deg));
  }
  22% { opacity: .36; }
  72% { opacity: 1; filter: blur(0); transform: perspective(1350px) translate3d(calc(var(--vt-dir, 1) * 6px), 0, 0) scale(1) rotateY(calc(var(--vt-dir, 1) * -.9deg)); }
  100% { opacity: 1; filter: blur(0); transform: perspective(1350px) translate3d(0, 0, 0) scale(1) rotateY(0deg); }
}
#view.pc-enter, .auth-form.pc-enter { animation: pc-in .52s cubic-bezier(.19, 1, .22, 1) backwards; }
#view.pc-fade, .auth-form.pc-fade { animation: pc-fade-in .18s ease-out backwards; }
.auth-art-bg.tilt { animation: pc-tilt .46s cubic-bezier(.22, 1, .36, 1); }
@keyframes pc-tilt { 40% { transform: rotate(3.5deg) scale(1.04); } }
@keyframes pc-fade-in { from { opacity: 0; } }
@keyframes pc-fade-out { to { opacity: 0; } }
@keyframes pc-pop-in { from { opacity: 0; transform: translateY(8px) scale(.95); } }
@keyframes pc-spin { to { transform: rotate(360deg); } }
@keyframes pc-pick {
  0% { transform: scale(.94); }
  55% { transform: scale(1.045); box-shadow: 0 0 0 7px rgba(255, 196, 60, .55), 0 3px 0 #c26a08; }
  100% { transform: none; }
}
@keyframes pc-check-pop { from { transform: scale(0) rotate(-40deg); } }
.spin {
  display: inline-block; flex: none; width: 16px; height: 16px; border-radius: 50%;
  border: 2.5px solid rgba(255, 255, 255, .45); border-top-color: #fff; animation: pc-spin .8s linear infinite;
}
.ps-go .spin { width: 28px; height: 28px; border-width: 3px; border-color: rgba(194, 106, 8, .22); border-top-color: var(--orange-d); }
.toast { animation: pc-toast-in .3s cubic-bezier(.22, 1, .36, 1); }
.toast.out { animation: pc-toast-out .2s ease-in forwards; }
@keyframes pc-toast-in { from { opacity: 0; transform: translateY(14px) scale(.94); } }
@keyframes pc-toast-out { to { opacity: 0; transform: translateY(8px) scale(.96); } }
.modal-mask { animation: pc-fade-in .2s ease-out; }
.modal { animation: pc-sheet-in .34s cubic-bezier(.22, 1, .36, 1); }
@keyframes pc-sheet-in { from { transform: translateY(100%); } }
@keyframes pc-sheet-out { to { transform: translateY(100%); } }
@keyframes pc-pop-out { to { opacity: 0; transform: translateY(6px) scale(.96); } }
.modal-mask.closing { pointer-events: none; animation: pc-fade-out .2s ease-in forwards; }
.modal-mask.closing .modal { animation: pc-sheet-out .2s ease-in forwards; }
@media (min-width: 560px) {
  .modal { animation: pc-pop-in .26s cubic-bezier(.22, 1, .36, 1); }
  .modal-mask.closing .modal { animation: pc-pop-out .18s ease-in forwards; }
}
.form-msg.shake { animation: pc-shake .38s cubic-bezier(.36, .07, .19, .97); }
@keyframes pc-shake { 15%, 85% { transform: translateX(-2px); } 30%, 70% { transform: translateX(4px); } 45%, 55% { transform: translateX(-5px); } }
.seg {
  display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 4px;
  border-radius: 999px; background: #fbe8c2; border: 2px solid var(--edge); box-shadow: inset 0 2px 3px rgba(150, 90, 20, .16);
}
#rcPreview .seg { display: grid; width: 100%; }
.seg button {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 38px; padding: 4px 14px;
  border: 0; border-radius: 999px; background: none; color: #8a4a08; font-family: var(--game); font-size: 15.5px; white-space: nowrap; cursor: pointer;
}
.seg button.on { color: #7a3d00; background: linear-gradient(#fffef4, #ffe28f); box-shadow: 0 0 0 2px #ff9a1c, 0 2px 0 #c26a08; }
.pm { display: inline-grid; place-items: center; flex: none; width: 19px; height: 19px; border-radius: 50%; color: #fff; font: 700 11px/1 system-ui, sans-serif; font-style: normal; }
.pm.wxpay { background: #1aad19; }
.pm.alipay { background: #1677ff; }
.pm.wxpay::after { content: "微"; }
.pm.alipay::after { content: "支"; }
.pm-tip {
  margin-top: 8px; padding: 6px 10px; border-radius: 10px; font-size: 12.5px; line-height: 1.55;
  background: #fff1d6; border: 1px dashed #f0a23c; color: #b45a00; animation: pc-pop-in .28s cubic-bezier(.22, 1, .36, 1);
}
.custom-tip { margin-top: 6px; color: #c0321b; font-size: 12.5px; }
.money-in input[aria-invalid="true"] { border-color: var(--red); box-shadow: 0 0 0 3px rgba(232, 69, 47, .18); }
.btn .num, .rc-bar .num, #rcPreview .num { font-variant-numeric: tabular-nums; }
.ps-go { display: flex; gap: 12px; align-items: center; margin-top: 8px; padding: 14px; border-radius: 14px; background: #fff3d1; border: 1px solid #f0cf85; }
.ps-go b { display: block; font-family: var(--game); font-weight: 400; font-size: 16px; color: #8a4a08; }
.ps-go a { font-size: 13.5px; }
.pk-enter > .pkg { animation: pc-card-in .34s cubic-bezier(.22, 1, .36, 1) both; animation-delay: calc(var(--i, 0) * 35ms); }
@keyframes pc-card-in { from { opacity: 0; transform: translate3d(0, 10px, 0) scale(.98); } }
.sk {
  display: block; border-radius: 8px;
  background: linear-gradient(90deg, #f5e5bf 0%, #fdf4de 45%, #f5e5bf 90%) 0 0 / 300% 100%;
  animation: pc-sk 1.3s ease-in-out infinite;
}
@keyframes pc-sk { from { background-position: 100% 0; } to { background-position: 0 0; } }
.pkg.skel { min-height: 148px; padding: 14px 12px; gap: 8px; cursor: default; box-shadow: 0 3px 0 var(--line); border-color: var(--line); }
.sk-art { width: 68px; height: 54px; border-radius: 14px; }
.sk-line { width: 80%; height: 12px; margin: 6px 0; }
.sk-line.s { width: 52%; }
.sk-text { height: 14px; width: 74%; margin: 12px 0 4px; }
.sk-btn { height: 46px; border-radius: 999px; margin-top: 18px; }
.pay-state { display: flex; gap: 14px; align-items: flex-start; margin-top: 12px; padding: 14px; border-radius: 16px; border: 2px solid #f0cf85; background: linear-gradient(#fffaf0, #fff0cc); }
.pay-state.ok { border-color: #a6dd78; background: linear-gradient(#f8fff0, #e4f7d0); }
.ps-art { position: relative; flex: none; width: 72px; height: 72px; display: grid; place-items: center; }
.pay-state.ok .ps-art { border-radius: 50%; background: radial-gradient(#ffffff 40%, #d8f3c2); }
.ps-chick { width: 60px; height: 60px; object-fit: contain; transform-origin: 50% 100%; animation: pc-hop .34s cubic-bezier(.3, 0, .5, 1) infinite alternate; }
.ps-shadow { position: absolute; left: 50%; bottom: 3px; width: 40px; height: 7px; margin-left: -20px; border-radius: 50%; background: rgba(120, 70, 0, .22); animation: pc-hop-shadow .34s cubic-bezier(.3, 0, .5, 1) infinite alternate; }
@keyframes pc-hop { 0% { transform: translateY(0) scale(1.07, .9); } 25% { transform: translateY(-3px) scale(.96, 1.05); } 100% { transform: translateY(-13px) rotate(-5deg); } }
@keyframes pc-hop-shadow { to { transform: scale(.62); opacity: .5; } }
.ps-seal { width: 60px; height: 60px; fill: none; stroke: #3a9a10; stroke-width: 4.5; stroke-linecap: round; stroke-linejoin: round; }
.ps-track { stroke-dasharray: 170; transform: rotate(-90deg); transform-origin: 32px 32px; }
.ps-check { stroke-dasharray: 40; }
.pay-state.fresh { animation: pc-glow 1.2s ease-out .35s; }
.pay-state.fresh .ps-art { animation: pc-stamp .5s cubic-bezier(.34, 1.56, .64, 1) both; }
.pay-state.fresh .ps-track { animation: pc-draw .5s cubic-bezier(.16, 1, .3, 1) .12s both; }
.pay-state.fresh .ps-check { animation: pc-draw-check .42s cubic-bezier(.16, 1, .3, 1) .45s both; }
@keyframes pc-stamp { 0% { opacity: 0; transform: scale(1.9) rotate(-14deg); } 60% { opacity: 1; transform: scale(.92) rotate(2deg); } 100% { transform: none; } }
@keyframes pc-draw { from { stroke-dashoffset: 170; } }
@keyframes pc-draw-check { from { stroke-dashoffset: 40; } }
@keyframes pc-glow { from { box-shadow: 0 0 0 0 rgba(98, 201, 52, .55); } to { box-shadow: 0 0 0 16px rgba(98, 201, 52, 0); } }
.ps-body { flex: 1; min-width: 0; }
.ps-title { display: block; font-family: var(--game); font-weight: 400; font-size: 19px; line-height: 1.35; color: #8a4a08; }
.pay-state.ok .ps-title { color: #2f7a0c; }
.ps-gain { margin: 2px 0 4px; font-family: var(--game); font-size: 26px; line-height: 1.25; color: #e2321b; }
.ps-gain .cur { width: 26px; height: 26px; margin-right: 4px; vertical-align: -5px; }
.ps-gain small { display: block; font-size: 13px; color: var(--red); }
.ps-text { font-size: 13px; line-height: 1.6; color: var(--ink-2); }
.ps-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.ps-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin: 10px 0 0; padding: 0; list-style: none; }
.ps-steps li {
  display: flex; flex-direction: column; align-items: center; gap: 3px; padding-top: 7px; text-align: center;
  border-top: 3px solid #ecd9b0; color: var(--ink-3); font-size: 11.5px; line-height: 1.35;
}
.ps-steps li.done { border-top-color: var(--green); color: #2f7a0c; }
.ps-steps li.now { border-top-color: var(--orange); color: #b45a00; }
.ps-steps svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ps-steps .st-spin, .ps-steps .st-check { display: none; }
.ps-steps li.now .st-ring { opacity: .3; }
.ps-steps li.now .st-spin { display: block; transform-origin: 8px 8px; animation: pc-spin .9s linear infinite; }
.ps-steps li.done .st-ring { fill: currentColor; }
.ps-steps li.done .st-check { display: block; stroke: #fff; stroke-width: 2.2; }
@media (max-width: 379px) { .pay-state { gap: 10px; padding: 12px; } .ps-art { width: 56px; height: 56px; } .ps-chick { width: 48px; height: 48px; } .ps-seal { width: 48px; height: 48px; } }
.rc-bar {
  position: fixed; left: 0; right: 0; bottom: var(--navh, 0px); z-index: 29;
  display: flex; align-items: center; gap: 8px; padding: 8px 12px;
  background: rgba(255, 251, 240, .97); border-top: 2px solid var(--edge); box-shadow: 0 -6px 18px rgba(80, 40, 0, .16);
  transform: translateY(calc(100% + var(--navh, 0px) + 12px)); visibility: hidden;
  transition: transform .3s cubic-bezier(.22, 1, .36, 1), visibility 0s linear .3s;
}
.rc-bar.show { transform: none; visibility: visible; transition: transform .36s cubic-bezier(.22, 1, .36, 1), visibility 0s; }
.rc-bar-sum { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.2; }
.rc-bar-sum b { font-family: var(--game); font-weight: 400; font-size: 21px; color: #e2321b; }
.rc-bar-sum small { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 11.5px; color: var(--ink-2); }
.rc-bar-sum em { font-style: normal; color: #c0321b; }
.seg.sm { gap: 2px; padding: 3px; border-width: 1.5px; }
.seg.sm button { min-height: 32px; padding: 2px 10px; font-size: 13.5px; }
.seg.sm .pm { display: none; }
.rc-bar > .btn { flex: none; min-height: 42px; padding: 4px 13px; font-size: 15px; }
.rcbar-on .shell { padding-bottom: 176px; }
.rcbar-on #toastRoot { bottom: calc(var(--navh, 64px) + 88px); }
@media (min-width: 820px) {
  .rc-bar { display: none; }
  .rcbar-on .shell { padding-bottom: 56px; }
  .rcbar-on #toastRoot { bottom: 36px; }
}
.pc-confetti { position: fixed; left: 0; top: 0; z-index: 80; pointer-events: none; }
.pc-hap { position: fixed; left: -100px; top: 0; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }
@media (min-width: 820px) { .rc-orders { grid-area: tiers; } }
.ro-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ro { margin-top: 12px; padding: 12px 14px; border-radius: 14px; border: 2px solid var(--line); background: var(--white); }
.ro.st-pending { border-color: #f5c46a; background: linear-gradient(#fffaf0, #fff3d8); }
.ro.st-paid { border-color: #c6e8a8; }
.ro.st-expired, .ro.st-other, .ro.st-cancelled { opacity: .82; }
.ro-head { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; }
.ro-money { font-family: var(--game); font-weight: 400; font-size: 20px; color: #7a3d00; }
.ro-gain { flex: 1; min-width: 0; font-size: 13.5px; color: var(--ink-2); }
.ro-gain .cur { width: 18px; height: 18px; vertical-align: -4px; }
.ro-badge { flex: none; padding: 1px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 700; color: #fff; }
.ro-badge.ok { background: var(--green); }
.ro-badge.wait { background: var(--orange); }
.ro-badge.gone { background: #b8a58a; }
.ro-badge.bad { background: var(--red); }
.ro-meta { margin-top: 4px; font-size: 12.5px; color: var(--ink-3); overflow-wrap: anywhere; }
.ro-meta code { font: 12px/1.4 ui-monospace, Consolas, monospace; color: var(--ink-2); user-select: all; }
.ro-note { margin-top: 4px; font-size: 13px; line-height: 1.6; color: var(--ink-2); }
.ro-acts, .pay-state .ps-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.ro-acts .btn .pm, .ps-acts .btn .pm { width: 17px; height: 17px; font-size: 10px; }
.ro-more { margin-top: 12px; }
.ro-empty { margin-top: 10px; }
.ps-acts .muted .spin { width: 14px; height: 14px; border-color: rgba(194, 106, 8, .22); border-top-color: var(--orange-d); vertical-align: -2px; }
.ro-acts .btn:not(.ghost) .spin, .ps-acts .btn:not(.ghost) .spin { width: 14px; height: 14px; }
.ro-acts .btn.ghost .spin, .ps-acts .btn.ghost .spin { border-color: rgba(194, 106, 8, .22); border-top-color: var(--orange-d); }
