/* Player services. The portal logo and game screenshots are from the original site. */
body.player-service {
  margin: 0; padding: 0; min-height: 100vh; color: #302923; background: #f1efe9;
  font: 15px/1.65 "Microsoft YaHei UI","Microsoft YaHei","PingFang SC",sans-serif;
}
.player-service *, .player-service *::before, .player-service *::after { box-sizing: border-box; }
.player-service ::selection { color: #291f19; background: #f0d0b5; }
.player-service input, .player-service button, .player-service select { font-family: inherit; }
.player-service input { caret-color: #a73f1d; }
.player-service a { text-underline-offset: 3px; }
.player-service :focus-visible { outline: 3px solid #945422; outline-offset: 3px; }
.portal-bar { color: #fffdf7; background: #272320; border-bottom: 3px solid #b74219; }
.portal-inner {
  width: calc(100% - 48px); max-width: 1100px; margin: auto; min-height: 70px;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
}
.portal-logo { display: inline-flex; align-items: center; }
.official-logo { display: block; width: 121px; height: auto; }
.portal-bar nav { display:flex; align-items: stretch; align-self: stretch; font-size: 14px; }
.portal-bar nav a, .portal-bar nav span { display: flex; align-items: center; padding: 0 18px; }
.portal-bar nav a { color: #e3d6c9; text-decoration: none; }
.portal-bar nav span { background: #3b332d; color: #fffdf7; font-weight: 700; }
.portal-bar nav a:focus-visible { outline-color: #f6cf9d; outline-offset: -4px; }
html.auth-pending .portal-bar { display: none; }
.player-service .wrap, .player-service .shell, .download-page {
  width: calc(100% - 48px); max-width: 1100px; margin: 0 auto; padding: 23px 0 44px;
}
.service-title, .treasure .top {
  display: flex; justify-content: space-between; align-items: center; gap: 14px; margin: 0 0 15px;
  padding: 0 0 12px; border: 0; border-bottom: 2px solid #716051;
  border-radius: 0; background: none; box-shadow: none;
}
.player-service h1 { margin: 0; color: #302923; font-size: 30px; text-align: left; line-height: 1.3; font-weight: 750; letter-spacing: 0; }
.player-service h2, .player-service h3 { color: #352d27; font-weight: 700; }
.jump-links { display: flex; flex-wrap: wrap; align-items: center; gap: 0 17px; }
.jump-links a { display:inline-flex; align-items:center; min-height: 38px; color: #694735; text-decoration: none; font-size: 14px; }
.player-service .panel, .supply .auth-gate-card, .supply .dialog, .treasure .result-card {
  background: #fffdf7; border: 1px solid #d6cfc4; border-radius: 4px; box-shadow: none;
}
.supply .panel { padding: 19px 22px; margin: 0 0 14px; scroll-margin-top: 12px; }
.supply .panel h2, .treasure .warehouse h3, .treasure .side h3, .download-info h2, .install h2 {
  margin: 0 0 14px; padding: 0 0 9px; color: #362e28; border-bottom: 1px solid #ded7cd; font-size: 20px; line-height: 1.4;
}
.player-service .btn, .launcher .download {
  min-height: 42px; padding: 8px 16px; border: 1px solid #9f3a19; border-radius: 4px;
  background: #b74219; color: #fff; font-weight: 700; line-height: 1.4;
  box-shadow: none; cursor: pointer; text-decoration: none; text-shadow: none;
  transition: background-color 120ms ease, border-color 120ms ease;
}
.player-service .btn.secondary, .treasure .btn.alt {
  border-color: #c9bfb1; background: #faf7f0; color: #4d4239;
}
.player-service .btn:disabled { opacity: .54; cursor: not-allowed; }
.player-service .btn:hover { transform: none; filter: none; }
@media (hover:hover) and (pointer:fine) {
  .player-service .btn:hover:not(:disabled), .launcher .download:hover { background: #9d3614; border-color: #913313; }
  .player-service .btn.secondary:hover:not(:disabled), .treasure .btn.alt:hover:not(:disabled) { background: #eee7db; border-color: #b5a58d; }
  .jump-links a:hover { color: #9f3b19; text-decoration: underline; }
  .portal-bar nav a:hover { background: #332d28; color: #fff; }
}
.player-service .btn:active:not(:disabled), .launcher .download:active { box-shadow: inset 0 1px 2px rgba(40,22,8,.3); }
.supply .muted, .supply .empty, .supply .quantity-hint, .supply .lane-head p,
.supply .character-meta, .supply .gift-progress, .supply .lottery-prize small,
.supply .lottery-history-row time, .supply .lottery-history-row small, .treasure .empty { color: #686059; }
.supply .muted, .supply .quantity-hint, .supply .lane-head p, .supply .stat small { font-size: 13px; }
.supply .summary { display: grid; grid-template-columns: 1fr 1fr 1.45fr; gap: 0; padding: 0; }
.supply .stat { min-width: 0; padding: 13px 20px; border: none; border-radius: 0; background: transparent; }
.supply .stat + .stat { border-left: 1px solid #dcd5c9; }
.supply .stat span, .supply label, .supply .address-label { font-weight: 700; color: #53483f; }
.supply .stat strong { font-size: 25px; color: #9d3a19; line-height: 1.4; }
.supply .stat:last-child strong { color: #483b30; }
.supply .stat strong, .supply .price, .supply .quote strong, .treasure .draw small, .treasure .balance b { font-variant-numeric: tabular-nums; }
.supply .deposit { display: grid; grid-template-columns: minmax(210px,.46fr) minmax(0,1fr); gap: 24px; align-items: start; }
.supply .payment-destination { min-width: 0; padding: 15px; background: #f2efe8; }
.supply .qr { text-align: center; }
.supply .qr img { display: inline-block; width: 144px; height: 144px; padding: 5px; background: #fff; border: 1px solid #cfc7ba; border-radius: 2px; vertical-align: top; }
.supply .wallet-copy { margin-top: 11px; min-width: 0; }
.supply .wallet-copy .address { margin: 3px 0 9px; padding: 0; color: #40362f; border: 0; background: none; font: 14px/1.55 Consolas,monospace; }
.supply .wallet-copy .btn { min-height: 38px; padding: 5px 12px; }
.supply .network-note { margin: 14px 0 0; padding-top: 9px; border-top: 1px solid #d9d0c2; color: #764a30; font-size: 13px; font-weight: 700; }
.supply .payment-form { min-width: 0; }
.supply .field, .supply .select, .treasure .character {
  min-height: 42px; padding: 8px 10px; border: 1px solid #bdb3a6;
  border-radius: 3px; background: #fff; color: #392f27; font-size: 15px;
}
.supply .field:focus, .supply .select:focus, .treasure .character:focus { outline: 2px solid #bd8959; outline-offset: 1px; border-color: #88603b; }
.supply .field::placeholder { color: #776d63; }
.supply .payment-form label, .supply .panel > label { display: block; }
.supply .panel > label { margin: 10px 0 4px; }
.supply .payment-form .row, .supply .panel > .row { margin: 5px 0 0; }
.supply .quote { margin: 12px 0 7px; padding: 10px 13px; border-color: #dfc7ad; border-radius: 3px; background: #faf1e4; }
.supply .quote strong { color: #8f3c1a; overflow-wrap: anywhere; }
.supply .payment-form p.muted { max-width: 68ch; margin: 8px 0 15px; }
.supply .character-card, .supply .regular-reset, .supply .shop-lane, .supply .shop-lane.special, .supply .lottery-history-box,
.supply .lottery-prize, .supply .lottery-reward, .supply .gift, .treasure .prize, .treasure .reward, .treasure .result-item {
  background: #faf8f2; color: #443a32; border-color: #dbd4c7; border-radius: 3px; box-shadow: none;
}
.supply .character-card b, .supply .regular-reset strong, .supply .quantity-picker label, .supply .lane-head h3,
.supply .lottery-prize b, .supply .lottery-history-box h3, .supply .gift h3, .treasure .prize b, .treasure .reward b { color: #493b30; }
.supply .lottery-balance, .supply .price { color: #9a3b1b; }
.supply .gift { border-left-width: 1px; background: #fffdf7; }
.supply .gift-head { flex-wrap: wrap; }
.supply .gift-head h3, .supply .character-card b, .supply .lottery-reward, .supply .tag, .supply .lottery-history-row { overflow-wrap: anywhere; }
.supply .special .gift, .supply .gift.completed { border-left-color: #c5bdac; }
.supply .gift-progress.done, .supply .trade { color: #43613e; }
.supply .gift-progress.lock, .supply .bound { color: #924a35; }
.supply .tag, .supply .lane-count, .supply .reward, .supply .gift-reward-details summary {
  border-color: #d8caba; background: #f4efe5; color: #5b4b3d; border-radius: 3px;
}
.supply .lane-head, .supply .lottery-section-head, .supply .lottery-history-row { border-color: #d8d0c2; }
.supply .center-tabs, .treasure .pool-tabs { display: flex; flex-wrap: nowrap; padding: 0; gap: 0; background: none; border: 0; border-radius: 0; }
.supply .center-tabs { margin: 20px 0 0; border-bottom: 2px solid #574b41; }
.supply .center-tab, .supply .lottery-pool, .treasure .pool-tab {
  flex: 0 0 auto; padding: 8px 14px; border: 1px solid #d5ccbe; border-radius: 0;
  background: #f8f5ed; color: #54473b; cursor: pointer; min-height: 42px; text-align: left;
}
.supply .center-tab.on, .supply .lottery-pool.on, .treasure .pool-tab.on { border-color: #574b41; background: #574b41; color: #fff; }
.supply .lottery-pool, .treasure .pool-tab { max-width: 255px; min-width: 140px; }
.supply .lottery-pools, .treasure .pool-tabs { min-width: 0; max-width: 100%; overflow-x: auto; }
.treasure .pool-tab b, .treasure .pool-tab small { white-space: normal; overflow-wrap: anywhere; }
.supply .center-view { border-top: 0; border-radius: 0 0 4px 4px; }
.supply .lottery-prize.r2, .treasure .prize.r2 { border-color: #9881ad; box-shadow: none; }
.supply .lottery-prize.r3, .treasure .prize.r3 { border-color: #b68c4e; background: #fff6df; box-shadow: none; }
.supply .lottery-item-icon, .treasure .prize-icon { border: 1px solid #b7a187; border-radius: 3px; background: #e6d9c7; color: #634b35; box-shadow: none; }
.supply .lottery-storage, .supply .lottery-history-list { scrollbar-color: #aa9989 #eee8dd; }
.supply .lottery-storage::-webkit-scrollbar-track, .supply .lottery-history-list::-webkit-scrollbar-track { background: #eee8dd; }
.supply .lottery-storage::-webkit-scrollbar-thumb, .supply .lottery-history-list::-webkit-scrollbar-thumb { background: #aa9989; border-color: #eee8dd; }
.player-service .modal { background: rgba(32,27,23,.65); overscroll-behavior: contain; }
.supply .dialog, .treasure .result-card { padding: 20px; overscroll-behavior: contain; scrollbar-gutter: stable; }
.supply .dialog h2, .treasure #result-title { margin: 0 0 14px; font-size: 21px; color: #372f29; line-height: 1.45; overflow-wrap: anywhere; }
.supply .dialog h2:focus, .treasure #result-title:focus { outline: none; }
.supply .dialog .actions { padding-top: 12px; border-top: 1px solid #ded5ca; }
.supply .message.ok, .treasure .status.ok { border-color: #acbca5; color: #3f5c3d; background: #edf2e9; }
.supply .message.err, .treasure .status.err { border-color: #d1a699; color: #923e2a; background: #fff0e9; }
.supply .message, .treasure .status { border-radius: 3px; }
.supply .auth-gate { background: #f1efe9; color: #51453a; }
.supply .auth-gate-card strong, .supply .auth-gate-card a { color: #853c23; }
.treasure .top::after, .treasure .banner::before, .treasure .banner::after { display: none; }
.treasure .top { overflow: visible; }
.treasure .top-actions { gap: 8px; }
.treasure .balance { padding: 3px 8px; border: 0; border-radius: 0; color: #574a3f; background: none; }
.treasure .balance b { color: #953b1e; font-size: 20px; }
.treasure .stage { grid-template-columns: minmax(0,2.6fr) minmax(215px,1fr); gap: 14px; margin: 0; align-items: start; }
.treasure .summon-head { padding: 12px 15px; background: #f5f1e8; border-color: #d9d0c2; }
.treasure .pool-tabs { gap: 4px; }
.treasure .pool-tab small { color: #6a5c4e; }
.treasure .pool-tab.on small { color: #e9ded3; }
.treasure .character { max-width: 100%; flex: 0 0 auto; }
.treasure .banner { min-height: 0; padding: 13px 16px 10px; background: none; color: #392e25; }
.treasure .banner h2 { color: #403328; margin: 0 0 2px; font-size: 22px; line-height: 1.45; }
.treasure .banner p { color: #6c5b4c; font-size: 14px; line-height: 1.6; }
.treasure .banner h2, .treasure .banner p, .treasure .result-item, .treasure .warehouse-head, .treasure .status, .treasure .tips { overflow-wrap:anywhere; }
.treasure .prize-grid { padding: 0 15px 14px; gap: 7px; }
.treasure .prize, .treasure .result-item { min-width: 0; min-height: 0; }
.treasure .prize small, .treasure .reward span { color: #6e5f50; }
.treasure .draw-bar { justify-content: flex-start; padding: 0 15px 15px; }
.treasure .draw { min-width: 160px; min-height: 46px; height: auto; }
.treasure .draw small { margin-top: 3px; opacity: 1; }
.treasure .side, .treasure .warehouse { padding: 16px; }
.treasure .side h3, .treasure .warehouse h3 { font-size: 18px; }
.treasure .tips { padding: 0; color: #574b40; background: none; border: 0; font-size: 14px; line-height: 1.8; }
.treasure .status { background: #f5f0e5; color: #67513b; border-color: #d5c5b0; }
.treasure .warehouse h3 { padding: 0; border: 0; margin: 0; }
.treasure .footer { color: #6c645b; }
.treasure .reward-actions .btn { min-height: 36px; }
body.treasure.embedded { padding: 6px; }
.treasure.embedded .top { display: none; }
.treasure.embedded .lottery-bar { display: block; border: 0; background: transparent; }
.treasure.embedded .lottery-bar .portal-inner { width: 100%; min-height: 44px; justify-content: flex-end; }
.treasure.embedded .lottery-bar .official-logo, .treasure.embedded .lottery-toolbar button { display: none; }
.treasure.embedded .lottery-toolbar a { background: #faf7f0; color: #4d4239; border-color: #c9bfb1; }
.treasure .lottery-toolbar .lottery-home { min-height: 44px; padding-inline: 13px; }
.treasure .lottery-access { margin: 15px 0; padding: clamp(16px,4vw,28px); }
.treasure .lottery-access .btn { min-height: 44px; }
.treasure.embedded .shell { width: 100%; max-width: none; padding: 0; }
.lottery-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; }
.treasure #warehouseJump { display: inline-flex; align-items: center; }
.treasure .lottery-toolbar .btn.alt { min-height: 40px; background: #39332e; border-color: #6b5d52; color: #f2e8de; }
@media (hover:hover) and (pointer:fine) {
  .treasure .lottery-toolbar .btn.alt:hover { background: #4a413a; }
}
@media (max-width:720px) {
  .treasure .lottery-toolbar .btn.alt { min-height: 44px; }
}
.download-page { max-width: 980px; }
.launcher .portal-inner { max-width: 980px; }
.download-page > h1 { padding-bottom: 12px; border-bottom: 2px solid #716051; }
.download-layout { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,.95fr); gap: 28px; padding: 26px; border: 1px solid #d6cfc4; border-top: 0; background: #fffdf7; }
.download-info h2 { font-size: 19px; }
.file-info { margin: 15px 0 22px; }
.file-info div { display: flex; gap: 18px; margin: 7px 0; }
.file-info dt { min-width: 62px; color: #72665a; }
.file-info dd { margin: 0; color: #332c26; }
.launcher .download { display: inline-flex; align-items: center; gap: 9px; min-height: 45px; padding: 10px 21px; font-size: 16px; }
.download-sign { position: relative; width: 15px; height: 16px; border-bottom: 2px solid currentColor; }
.download-sign::before, .download-sign::after { position: absolute; content: ""; }
.download-sign::before { left: 7px; top: 0; height: 10px; border-left: 2px solid currentColor; }
.download-sign::after { left: 4px; top: 5px; width: 8px; height: 8px; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.game-shot { margin: 0; align-self: center; }
.game-shot img { display: block; width: 100%; max-width: 500px; height: auto; border: 1px solid #766b60; }
.install { background: #fffdf7; padding: 18px 26px; border: 1px solid #d6cfc4; margin-top: 13px; }
.install h2 { font-size: 18px; }
.install ol { margin: 0; padding-left: 22px; }
.install li { padding: 2px 0 2px 2px; line-height: 1.8; }
.install p { margin: 12px 0 0; color: #675d52; font-size: 13px; }

@media (max-width:980px) {
  .treasure .stage { grid-template-columns: minmax(0,1fr); }
  .treasure .side { display: block; }
  .treasure .status { margin-top: 9px; }
  .supply .lottery-reward { grid-template-columns: 44px minmax(92px,1fr) auto auto auto; }
}
@media (max-width:720px) {
  .portal-inner, .player-service .wrap, .player-service .shell, .download-page { width: calc(100% - 24px); }
  .player-service .wrap, .player-service .shell, .download-page { padding: 16px 0 29px; }
  .portal-inner { min-height: 55px; }
  .official-logo { width: 100px; }
  .portal-bar nav a, .portal-bar nav span { padding-inline: 11px; }
  .player-service h1 { font-size: 25px; }
  .service-title { display: block; margin-bottom: 11px; padding: 0 0 7px; }
  .jump-links { gap: 0 15px; }
  .jump-links a { min-height: 42px; }
  .supply .panel { padding: 15px; }
  .supply .summary { padding: 0; grid-template-columns: repeat(2,minmax(0,1fr)); }
  .supply .stat { padding: 10px 12px; }
  .supply .stat:last-child { grid-column: 1/-1; border: 0; border-top: 1px solid #ddd5c8; }
  .supply .stat:last-child strong { display: inline; margin-left: 7px; font-size: 17px; }
  .supply .stat small { display:block; }
  .supply .deposit { grid-template-columns: minmax(0,1fr); gap: 16px; }
  .supply .payment-destination { display: grid; grid-template-columns: 102px minmax(0,1fr); align-items: center; gap: 9px 12px; padding: 11px; }
  .supply .qr img { width: 102px; height: 102px; padding: 3px; }
  .supply .wallet-copy { margin: 0; }
  .supply .wallet-copy .btn { width: auto; }
  .supply .network-note { grid-column: 1/-1; margin: 0; padding-top: 7px; }
  .supply .payment-form .row { display: grid; grid-template-columns: minmax(0,1fr) auto; }
  .supply .payment-form .row .btn { width: auto; padding-inline: 10px; }
  .supply .lottery-prizes { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .supply .lottery-reward { grid-template-columns: 44px minmax(0,1fr); }
  .supply .lottery-reward > :nth-child(n+3) { grid-column: 2; }
  .supply .lottery-history-row { grid-template-columns: 44px minmax(0,1fr); }
  .supply .lottery-history-row time { grid-column: 2; }
  .supply .lottery-bulk-actions { flex-direction: row; }
  .supply .center-tabs { flex-direction: row; }
  .supply .dialog, .treasure .result-card { width: calc(100% - 4px); max-height: 86vh; max-height: 86dvh; }
  .supply .field, .supply .select, .treasure .character { font-size: 16px; }
  .supply .btn, .treasure .btn, .treasure .reward-actions .btn, .supply .wallet-copy .btn { min-height: 44px; }
  .treasure .top { flex-wrap: wrap; flex-direction: row; align-items: center; gap: 8px; }
  .treasure .top-actions { width: auto; flex-wrap: wrap; justify-content: flex-start; }
  .treasure .balance { padding-left: 0; }
  .treasure .summon-head { padding: 10px; }
  .treasure .banner { padding: 11px 12px 8px; }
  .treasure .prize-grid { padding: 0 12px 11px; }
  .treasure .draw-bar { flex-direction: row; padding: 0 12px 12px; }
  .treasure .draw { flex: 1; min-width: 0; }
  .treasure .side, .treasure .warehouse { padding: 13px; }
  .download-layout { display: block; padding: 17px; }
  .download-info { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 5px 10px; }
  .download-info h2 { grid-column: 1/-1; width: 100%; margin-bottom: 1px; }
  .file-info { margin: 6px 0 8px; font-size: 14px; }
  .file-info div { gap: 7px; margin: 4px 0; }
  .file-info dt { min-width: 56px; }
  .launcher .download { padding: 8px 12px; font-size: 14px; }
  .game-shot { margin-top: 9px; }
  .game-shot img { max-width: 340px; margin: 0 auto; }
  .install { padding: 15px 17px; }
}
@media (max-width:360px) {
  .treasure .lottery-bar .portal-inner { flex-wrap: wrap; gap: 3px 8px; padding-block: 5px; }
  .treasure .lottery-bar .official-logo { width: 76px; }
  .treasure .lottery-toolbar { gap: 4px; }
  .treasure .lottery-toolbar .btn { padding-inline: 8px; }
  .portal-bar nav a, .portal-bar nav span { padding-inline: 8px; }
  .jump-links { gap: 0 11px; }
  .jump-links a { font-size: 13px; }
  .supply .payment-destination { grid-template-columns: 87px minmax(0,1fr); }
  .supply .qr img { width: 87px; height: 87px; }
  .download-info { display: block; }
}
@media (prefers-reduced-motion:reduce) {
  .player-service *, .player-service *::before, .player-service *::after { transition: none !important; animation: none !important; }
}
@media all and (-ms-high-contrast:none), (-ms-high-contrast:active) {
  .supply .deposit .qr { width: auto !important; }
  .supply .payment-destination { width: 235px; }
  .supply .deposit > div:last-child { width: calc(100% - 263px) !important; margin-left: 28px; }
  .download-layout { display: flex; align-items: center; }
  .download-info { width: 54%; padding-right: 24px; }
  .game-shot { width: 46%; }
}
@media all and (-ms-high-contrast:none) and (max-width:720px), (-ms-high-contrast:active) and (max-width:720px) {
  .supply .payment-destination, .supply .deposit > div:last-child { width: 100% !important; margin: 0 0 12px; }
  .download-layout { display: block; }
  .download-info, .game-shot { width: 100%; }
}
