:root {
  --red: #d90011;
  --blue: #0048c9;
  --green: #078a19;
  --nav-blue: #00a0ea;
  --nav-green: #17c001;
  --nav-gold: #d9a400;
  --nav-purple: #692cc5;
  --nav-teal: #1db475;
  --nav-pink: #c42cb5;
  --ink: #222;
  --muted: #666;
  --line: #d7d7d7;
  --panel: #fff;
  --page: #f3f3f3;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  color: var(--ink);
  background: #f7f7f7;
  letter-spacing: 0;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.phone-shell {
  width: min(100%, 1150px);
  min-height: 100vh;
  margin: 0 auto;
  background: #fff;
}

.app {
  min-height: 100vh;
  padding: 14px 0 32px;
  overflow-x: hidden;
}

.view {
  display: none;
}

.view.active {
  display: block;
}

.top-ad {
  height: 112px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 0;
  background: #fff;
}

.mascot {
  width: 162px;
  min-height: 82px;
  display: grid;
  align-content: center;
  justify-items: center;
  color: #1a3d96;
  position: relative;
}

.mascot::before {
  content: "";
  width: 138px;
  height: 58px;
  display: block;
  position: absolute;
  left: 3px;
  top: 10px;
  background:
    radial-gradient(circle at 12px 12px, #078a19 0 6px, transparent 7px),
    radial-gradient(circle at 42px 5px, #d90011 0 6px, transparent 7px),
    radial-gradient(circle at 68px 12px, #0048c9 0 5px, transparent 6px),
    radial-gradient(circle at 92px 4px, #078a19 0 5px, transparent 6px);
}

.mascot b {
  color: #1a3d96;
  font-size: 44px;
  line-height: 1;
}

.mascot span {
  margin-top: 3px;
  color: #1a3d96;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 3px;
}

.top-ad strong,
.top-ad b,
.top-ad span {
  display: block;
  text-align: right;
}

.top-ad strong {
  display: none;
}

.top-ad b {
  color: #1a3d96;
  font-size: 22px;
  line-height: 1.25;
}

.top-ad span {
  display: inline-block;
  margin-top: 8px;
  padding: 6px 15px;
  color: #fff;
  border-radius: 999px;
  background: #1a3d96;
  font-size: 14px;
  font-weight: 700;
}

.site-menu {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  border-bottom: 4px solid #eee222;
}

.site-menu button {
  height: 42px;
  color: #fff;
  border: 0;
  font-size: 15px;
  font-weight: 700;
}

.site-menu button:nth-child(1) {
  background: var(--red);
}

.site-menu button:nth-child(2) {
  background: var(--nav-blue);
}

.site-menu button:nth-child(3) {
  background: var(--nav-green);
}

.site-menu button:nth-child(4) {
  background: var(--nav-gold);
}

.site-menu button:nth-child(5) {
  background: var(--nav-purple);
}

.site-menu button:nth-child(6) {
  background: var(--nav-pink);
}

.site-menu button:hover {
  filter: brightness(0.94);
}

.hero-banner {
  min-height: 330px;
  display: grid;
  grid-template-columns: 1fr 150px 150px;
  align-items: center;
  gap: 18px;
  margin-top: 12px;
  padding: 34px 54px;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 82% 32%, rgba(255, 230, 65, 0.78) 0 44px, transparent 45px),
    radial-gradient(circle at 86% 55%, rgba(255, 255, 255, 0.95) 0 56px, transparent 57px),
    radial-gradient(circle at 75% 64%, rgba(255, 190, 33, 0.85) 0 18px, transparent 19px),
    repeating-radial-gradient(circle at 42% 50%, rgba(255, 255, 255, 0.11) 0 2px, transparent 3px 26px),
    linear-gradient(135deg, #4216a8 0%, #8027d4 44%, #c016b0 100%);
}

.hero-banner b,
.hero-banner strong,
.hero-banner span {
  display: block;
}

.hero-banner b {
  font-size: 62px;
  line-height: 1.1;
  text-shadow: 0 3px 0 rgba(0, 0, 0, 0.16);
}

.hero-banner strong {
  margin-top: 18px;
  color: #ffe533;
  font-size: 38px;
  letter-spacing: 2px;
}

.hero-banner span {
  margin-top: 20px;
  color: #fff;
  font-size: 24px;
  font-weight: 700;
}

.hero-banner i {
  width: 122px;
  height: 122px;
  display: grid;
  place-items: center;
  color: #111;
  border-radius: 50%;
  background: #fff;
  border: 18px solid #e41f25;
  font-size: 58px;
  font-style: normal;
  font-weight: 900;
  box-shadow: 0 18px 24px rgba(0, 0, 0, 0.22);
}

.hero-banner i + i {
  align-self: end;
  margin-bottom: 20px;
  border-color: #eac31d;
}

.lottery-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  padding: 20px 0 14px;
  background: #fff;
}

.lottery-tabs button {
  min-width: 132px;
  height: 46px;
  padding: 0 18px;
  color: #111;
  border: 0;
  border-radius: 4px;
  background: #dedada;
  font-weight: 800;
}

.lottery-tabs button b,
.lottery-tabs button span {
  display: block;
  white-space: nowrap;
}

.lottery-tabs button b {
  font-size: 16px;
}

.lottery-tabs button span {
  margin-top: 2px;
  color: #555;
  font-size: 12px;
  font-weight: 500;
}

.lottery-tabs button.active {
  color: #fff;
  background: #1a3d96;
}

.lottery-tabs button.active span {
  color: #fff;
}

.draw-card {
  display: grid;
  grid-template-columns: 1fr 330px;
  gap: 24px;
  padding: 0;
  background: #fff;
  border: 1px solid #1a3d96;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.12);
}

.draw-card::before {
  content: "";
  grid-column: 1 / -1;
  height: 52px;
  background: #f7f7f7;
  border-bottom: 1px solid #1a3d96;
}

.draw-head {
  grid-column: 1 / -1;
  grid-row: 1;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  z-index: 1;
}

.draw-head b {
  color: #1a3d96;
  font-size: 20px;
}

.draw-head span {
  margin-left: 14px;
  color: #111;
  font-size: 14px;
}

.link-btn {
  color: #1a3d96;
  border: 0;
  background: transparent;
  font-weight: 700;
}

.balls-row {
  min-height: 138px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 18px 20px 24px;
}

.draw-foot {
  display: grid;
  align-content: center;
  gap: 18px;
  padding: 18px 28px 28px 0;
  color: #1a3d96;
  font-size: 16px;
}

.draw-foot span {
  display: block;
  text-align: right;
}

.draw-foot b {
  display: inline-grid;
  place-items: center;
  min-width: 156px;
  min-height: 52px;
  margin-left: 8px;
  padding: 0 8px;
  color: #111;
  border: 1px solid #ddd;
  border-radius: 5px;
  background: #fff;
  font-size: 24px;
  font-weight: 500;
}

.lottery-ball,
.small-ball {
  display: inline-grid;
  justify-items: center;
  gap: 4px;
  color: #111;
}

.lottery-ball b,
.small-ball b,
.paper-num {
  display: grid;
  place-items: center;
  color: #fff;
  border-radius: 0;
  font-weight: 900;
}

.lottery-ball b {
  width: 64px;
  height: 64px;
  font-size: 36px;
}

.lottery-ball span,
.small-ball em {
  color: #111;
  font-size: 22px;
  font-style: normal;
  line-height: 1.1;
}

.small-ball b {
  width: 42px;
  height: 42px;
  font-size: 24px;
}

.small-ball em {
  font-size: 14px;
}

.red b,
.red.paper-num,
.number-grid button.red,
.trend-row i.red,
.hot-num.red {
  background: var(--red);
}

.blue b,
.blue.paper-num,
.number-grid button.blue,
.trend-row i.blue,
.hot-num.blue {
  background: var(--blue);
}

.green b,
.green.paper-num,
.number-grid button.green,
.trend-row i.green,
.hot-num.green {
  background: var(--green);
}

.plus,
.history-plus,
.feature-plus {
  align-self: center;
  color: #d90011;
  font-size: 32px;
  font-weight: 900;
}

.home-board {
  margin-top: 18px;
  background: #fff;
}

.home-board-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 46px;
  padding: 0 18px;
  color: #1a3d96;
  border: 1px solid #d7d7d7;
  border-bottom: 0;
  background: #f0f0f0;
}

.home-board-head b {
  font-size: 18px;
}

.home-board-head button,
.table-row button,
.material-card button,
.pick-panel button {
  height: 32px;
  padding: 0 18px;
  color: #fff;
  border: 0;
  border-radius: 4px;
  background: #d90011;
  font-weight: 800;
}

.draw-table {
  overflow-x: auto;
  border: 1px solid var(--line);
  background: #fff;
}

.empty-state {
  min-height: 90px;
  display: grid;
  place-items: center;
  padding: 18px;
  color: #777;
  border: 1px solid #d7d7d7;
  background: #fff;
  font-weight: 700;
}

.empty-state.inline {
  width: 100%;
  min-height: 80px;
  border: 0;
}

.pending-text {
  display: block;
  padding: 8px 10px;
  color: #777;
  border: 1px dashed #bbb;
  background: rgba(255, 255, 255, 0.72);
  font-style: normal;
  font-size: 12px;
  font-weight: 700;
}

.table-head,
.table-row {
  display: grid;
  grid-template-columns: 150px 210px minmax(390px, 1fr) 130px;
  align-items: center;
  gap: 12px;
  min-width: 900px;
  padding: 12px 18px;
}

.table-head {
  color: #333;
  background: #f0f0f0;
  border-bottom: 1px solid #d7d7d7;
  font-weight: 800;
  text-align: center;
}

.table-row {
  min-height: 86px;
  border-bottom: 1px solid #ddd;
  text-align: center;
}

.table-row:last-child {
  border-bottom: 0;
}

.table-row > span:first-child {
  font-weight: 800;
}

.table-row > span:first-child b,
.table-row > span:first-child,
.table-row .issue {
  color: #d90011;
}

.mini-ball-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 18px 0;
  padding: 16px;
  background: #f9f9f9;
  border: 1px solid #ddd;
}

.quick-item,
.mine-item {
  display: grid;
  justify-items: center;
  gap: 6px;
  min-height: 88px;
  color: #111;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: #fff;
  font-weight: 700;
}

.quick-item:hover {
  border-color: #1a3d96;
}

.quick-item i,
.mine-item i {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  margin-top: 10px;
  color: #fff;
  border-radius: 4px;
  font-style: normal;
  font-size: 20px;
  font-weight: 900;
}

.c0 i,
.m0 i {
  background: var(--red);
}

.c1 i,
.m1 i {
  background: var(--nav-blue);
}

.c2 i,
.m2 i {
  background: var(--nav-green);
}

.c3 i,
.m3 i {
  background: var(--nav-gold);
}

.c4 i,
.m4 i {
  background: var(--nav-purple);
}

.c5 i,
.m5 i {
  background: var(--nav-pink);
}

.c6 i,
.m6 i {
  background: #1a3d96;
}

.c7 i,
.m7 i {
  background: var(--nav-teal);
}

.album-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 18px 0 0;
}

.gallery-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 18px;
  padding: 12px 16px;
  color: #1a3d96;
  border: 1px solid #d7d7d7;
  border-bottom: 0;
  background: #f0f0f0;
}

.gallery-title b {
  font-size: 20px;
}

.gallery-title span {
  color: #666;
  font-size: 13px;
}

.album-tabs button {
  height: 42px;
  color: #111;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: #f7f7f7;
  font-weight: 800;
}

.album-tabs button.active {
  color: #fff;
  background: #1a3d96;
}

.gallery-grid,
.gallery-feature {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.paper-card {
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(18, 32, 54, 0.12);
  border-radius: 8px;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.10);
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.paper-card:hover,
.paper-card:focus {
  transform: translateY(-3px);
  border-color: rgba(0, 190, 118, 0.38);
  box-shadow: 0 20px 42px rgba(15, 23, 42, 0.16);
  outline: 0;
}

.paper-img {
  position: relative;
  min-height: 230px;
  display: grid;
  align-content: start;
  justify-items: center;
  gap: 9px;
  padding: 14px 10px 12px;
  text-align: center;
  border: 6px solid rgba(255, 255, 255, 0.78);
}

.paper-img.real-poster {
  min-height: 0;
  aspect-ratio: 16 / 11;
  overflow: hidden;
  display: block;
  padding: 0;
  border: 0;
  color: #174896;
  background: #f5f9ff;
}

.paper-img.real-poster img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
  transform: scale(1.01);
}

.paper-img.real-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.02) 46%, rgba(245, 250, 255, 0.34)),
    radial-gradient(circle at 80% 20%, rgba(24, 115, 230, 0.10), transparent 34%);
}

.paper-img.real-poster > *:not(img) {
  z-index: 1;
}

.paper-img.real-poster strong,
.paper-img.real-poster .paper-lines {
  display: none;
}

.paper-img strong {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 56px;
  color: #174896;
  font-size: 23px;
  line-height: 1.15;
  text-align: left;
  text-shadow: 0 2px 10px rgba(26, 61, 150, 0.12);
}

.paper-img small {
  display: none;
  color: #666;
  font-size: 12px;
}

.paper-card p {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 11px 12px;
  text-align: center;
  border-top: 1px solid #e5eef9;
  font-weight: 700;
}

.paper-card p b {
  color: #174896;
}

.paper-card p span {
  color: #60718a;
  font-size: 12px;
  font-weight: 400;
}

.paper-num {
  display: inline-grid;
  width: 30px;
  height: 30px;
  margin: 0 2px;
  font-size: 14px;
}

.paper-kicker {
  position: absolute;
  top: 12px;
  left: 12px;
  width: auto;
  max-width: calc(100% - 84px);
  padding: 5px 9px;
  color: #174896;
  border: 1px solid rgba(26, 61, 150, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.90);
  backdrop-filter: blur(8px);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.paper-lines {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 28px;
  display: flex;
  gap: 6px;
  min-width: 0;
}

.paper-lines span {
  min-width: 0;
  display: block;
  padding: 5px 8px;
  color: #315d9a;
  border: 1px solid rgba(26, 61, 150, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.paper-num-row {
  position: absolute;
  right: 12px;
  top: 48px;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 3px;
  max-width: 182px;
}

.paper-zodiac {
  position: absolute;
  left: 14px;
  bottom: 8px;
  max-width: calc(100% - 86px);
  padding: 5px 8px;
  color: #007a55;
  border: 1px solid rgba(0, 166, 112, 0.18);
  border-radius: 999px;
  background: rgba(239, 255, 248, 0.92);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.paper-stamp {
  position: absolute;
  right: 12px;
  top: 12px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: #fff;
  border-radius: 8px;
  border: 1px solid rgba(26, 61, 150, 0.12);
  background: linear-gradient(135deg, #1a73e8, #19b784);
  font-style: normal;
  font-weight: 900;
  transform: none;
}

.p0 {
  background: linear-gradient(135deg, #fff4dd, #ffe2e2);
}

.p1 {
  background: linear-gradient(135deg, #e8efff, #ffffff);
}

.p2 {
  background: linear-gradient(135deg, #e6ffe8, #ffffff);
}

.p3 {
  background: linear-gradient(135deg, #fff8d9, #ffffff);
}

.p4 {
  background: linear-gradient(135deg, #f0e9ff, #ffffff);
}

.p5 {
  background: linear-gradient(135deg, #e6fbff, #ffffff);
}

.p6 {
  background: linear-gradient(135deg, #fff0f7, #ffffff);
}

.p7 {
  background: linear-gradient(135deg, #ecffe9, #fff8d9);
}

.portal-sections {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 18px;
}

.portal-panel {
  min-height: 320px;
  border: 1px solid #d7d7d7;
  background: #fff;
}

.portal-panel-head {
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  color: #1a3d96;
  border-bottom: 1px solid #d7d7d7;
  background: #f0f0f0;
}

.portal-panel-head span {
  color: #777;
  font-size: 12px;
}

.portal-link {
  width: 100%;
  min-height: 52px;
  display: grid;
  gap: 4px;
  padding: 10px 14px;
  text-align: left;
  color: #222;
  border: 0;
  border-bottom: 1px solid #ececec;
  background: #fff;
}

.portal-link:hover {
  color: #d90011;
  background: #fff9f1;
}

.portal-link b {
  font-size: 15px;
}

.portal-link span {
  color: #666;
  font-size: 12px;
  line-height: 1.45;
}

.feature-page {
  padding-top: 16px;
}

.feature-head {
  display: grid;
  grid-template-columns: 82px 1fr;
  align-items: center;
  min-height: 58px;
  border: 1px solid #1a3d96;
  background: #f7f7f7;
}

.feature-back {
  height: 100%;
  color: #fff;
  border: 0;
  background: #1a3d96;
  font-weight: 800;
}

.feature-head b,
.feature-head span {
  display: block;
  padding-left: 16px;
}

.feature-head b {
  color: #1a3d96;
  font-size: 20px;
}

.feature-head span {
  margin-top: 3px;
  color: #666;
  font-size: 13px;
}

.feature-content,
.feature-wide {
  display: grid;
  gap: 16px;
  margin-top: 16px;
}

.feature-game-switch {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.feature-game-switch button {
  min-height: 52px;
  padding: 8px;
  color: #111;
  border: 1px solid #d7d7d7;
  border-radius: 4px;
  background: #fff;
  font-weight: 800;
}

.feature-game-switch button b,
.feature-game-switch button span {
  display: block;
}

.feature-game-switch button span {
  margin-top: 3px;
  color: #666;
  font-size: 12px;
  font-weight: 500;
}

.feature-game-switch button.active {
  color: #fff;
  border-color: #1a3d96;
  background: #1a3d96;
}

.feature-game-switch button.active span {
  color: #fff;
}

.feature-card,
.live-board div,
.result-strip,
.data-panel,
.zodiac-board,
.trend-panel,
.hot-board,
.number-grid,
.inspect-panel,
.detail-panel,
.contact-card,
.material-card,
.pick-panel,
.tool-cell,
.post-card,
.tool-card,
.history-block,
.mine-head,
.fans-card,
.mine-section,
.page-title,
.search-bar,
.discover-banner,
.market-tabs,
.sub-tabs,
.sort-tabs {
  background: #fff;
  border: 1px solid #d7d7d7;
  border-radius: 4px;
}

.feature-card {
  padding: 16px;
}

.feature-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.feature-card-head i,
.material-card i {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: #fff;
  border-radius: 4px;
  background: #1a3d96;
  font-style: normal;
  font-weight: 900;
}

.feature-card-head b {
  color: #1a3d96;
  font-size: 17px;
}

.feature-card p,
.material-card p {
  margin: 12px 0;
  color: #555;
  line-height: 1.8;
}

.feature-tags,
.feature-tags span,
.material-card em,
.material-card em span {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-style: normal;
}

.feature-tags span,
.material-card em span {
  padding: 4px 9px;
  color: #1a3d96;
  border: 1px solid #b9c7ef;
  border-radius: 3px;
  background: #f2f5ff;
  font-size: 12px;
}

.live-board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.live-board div {
  min-height: 82px;
  padding: 14px;
}

.live-board span {
  color: #666;
  font-size: 13px;
}

.live-board b {
  display: block;
  margin-top: 10px;
  color: #d90011;
  font-size: 20px;
}

.result-strip {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px;
}

.data-grid,
.toolbox-grid,
.material-list,
.forum-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.data-panel,
.trend-panel,
.hot-board,
.inspect-panel,
.detail-panel,
.pick-panel,
.tool-cell {
  padding: 16px;
}

.data-panel b,
.hot-board h3,
.inspect-panel h3,
.detail-panel h3,
.tool-cell b {
  margin: 0 0 12px;
  color: #1a3d96;
}

.material-detail {
  grid-column: 1 / -1;
}

.stats-summary,
.status-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.stats-summary div,
.status-grid div {
  min-height: 76px;
  padding: 14px;
  border: 1px solid #d7d7d7;
  background: #fff;
}

.stats-summary span,
.status-grid span {
  display: block;
  color: #666;
  font-size: 13px;
}

.stats-summary b,
.status-grid b {
  display: block;
  margin-top: 8px;
  color: #d90011;
  font-size: 18px;
}

.stats-current {
  justify-content: flex-start;
}

.stats-current > b {
  margin-right: 10px;
  color: #1a3d96;
  font-size: 18px;
}

.muted-text {
  color: #777;
  font-weight: 700;
}

.data-panel p {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
}

.zodiac-board {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  overflow: hidden;
}

.element-board {
  grid-template-columns: repeat(5, 1fr);
}

.zodiac-board div {
  min-height: 76px;
  padding: 12px;
  border-right: 1px solid #e6e6e6;
  border-bottom: 1px solid #e6e6e6;
}

.zodiac-board b {
  display: block;
  color: #d90011;
}

.zodiac-board span,
.tool-cell span {
  color: #666;
  font-size: 13px;
  line-height: 1.7;
}

.toolbox-grid .tool-cell {
  width: 100%;
  min-height: 88px;
  text-align: left;
  cursor: pointer;
}

.toolbox-grid .tool-cell:hover,
.toolbox-grid .tool-cell.active {
  border-color: #1a3d96;
  background: #f4f7ff;
}

.data-grid.mini {
  grid-template-columns: repeat(3, 1fr);
}

.shape-list,
.tail-board,
.contact-grid {
  display: grid;
  gap: 12px;
}

.shape-list {
  grid-template-columns: repeat(2, 1fr);
}

.shape-list button {
  min-height: 56px;
  display: grid;
  gap: 4px;
  padding: 10px;
  text-align: left;
  border: 1px solid #d7d7d7;
  background: #fff;
}

.tail-board {
  grid-template-columns: repeat(5, 1fr);
}

.tail-board div {
  min-height: 78px;
  padding: 10px;
  border: 1px solid #e0e0e0;
}

.tail-board b,
.tail-board span {
  display: block;
}

.tail-board b {
  color: #d90011;
}

.tail-board span {
  margin-top: 6px;
  color: #555;
  font-size: 12px;
  line-height: 1.7;
}

.contact-layout {
  grid-template-columns: 320px 1fr;
  align-items: start;
}

.contact-grid {
  grid-template-columns: 1fr;
}

.contact-card {
  min-height: 88px;
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 4px 12px;
  align-items: center;
  padding: 12px;
  text-align: left;
  cursor: pointer;
}

.contact-card i {
  grid-row: span 2;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  color: #fff;
  border-radius: 4px;
  background: #1a3d96;
  font-style: normal;
  font-weight: 900;
}

.contact-card b {
  color: #1a3d96;
}

.contact-card span {
  color: #666;
  font-size: 13px;
}

.contact-card:hover,
.contact-card.active {
  border-color: #1a3d96;
  background: #f4f7ff;
}

.contact-columns {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.contact-columns div,
.feedback-list p {
  margin: 0;
  padding: 14px;
  border: 1px solid #e0e0e0;
  background: #fff;
}

.contact-columns b,
.feedback-list b {
  display: block;
  color: #1a3d96;
  margin-bottom: 8px;
}

.feedback-list {
  display: grid;
  gap: 10px;
}

.feedback-list span {
  color: #555;
}

.source-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}

.source-table th,
.source-table td {
  padding: 12px;
  border: 1px solid #e0e0e0;
  text-align: left;
}

.trend-row {
  display: grid;
  grid-template-columns: 90px 1fr 52px;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.trend-row div {
  height: 14px;
  background: #eee;
}

.trend-row i {
  display: block;
  height: 100%;
}

.hot-board > div,
#randomPick {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hot-num {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  color: #fff;
}

.hot-num b,
.hot-num em {
  display: block;
  font-style: normal;
}

.hot-num em {
  font-size: 11px;
}

.number-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  padding: 14px;
}

.number-grid button {
  height: 40px;
  color: #fff;
  border: 0;
  font-weight: 900;
}

.inspect-list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}

.inspect-list span {
  padding: 10px;
  color: #666;
  border: 1px solid #e6e6e6;
}

.inspect-list b {
  display: block;
  margin-top: 4px;
  color: #111;
}

.material-list {
  grid-template-columns: repeat(2, 1fr);
}

.material-card {
  padding: 16px;
}

.material-card div {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  align-items: center;
  gap: 10px;
}

.material-card b {
  color: #1a3d96;
}

.material-card div span {
  color: #666;
  font-size: 13px;
}

.pick-panel {
  display: grid;
  gap: 14px;
}

.search-bar,
.market-tabs,
.sub-tabs,
.sort-tabs {
  padding: 10px;
}

.page-title {
  height: 46px;
  display: grid;
  place-items: center;
  color: #1a3d96;
  font-weight: 900;
}

.post-list,
.tool-grid {
  display: grid;
  gap: 12px;
  padding: 12px 0;
}

.post-card {
  padding: 14px;
}

.post-main {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 10px;
}

.post-avatar,
.avatar {
  display: grid;
  place-items: center;
  color: #fff;
  background: #1a3d96;
  font-weight: 900;
}

.post-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
}

.post-main time,
.post-actions {
  color: #777;
  font-size: 12px;
}

.post-main p {
  line-height: 1.7;
}

.post-main em,
.post-actions i {
  padding: 2px 6px;
  color: #fff;
  border-radius: 3px;
  background: #d90011;
  font-style: normal;
}

.post-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #e6e6e6;
  padding-top: 10px;
}

.mine-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
}

.avatar {
  width: 58px;
  height: 58px;
}

.fans-card,
.mine-section {
  margin-top: 12px;
  padding: 16px;
}

.mine-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.logout,
.fab {
  display: none;
}

.region-tabs,
.bottom-nav {
  display: none;
}

@media (max-width: 900px) {
  .phone-shell {
    width: 100%;
  }

  .app {
    padding: 0 0 24px;
  }

  .top-ad,
  .site-menu,
  .hero-banner,
  .lottery-tabs,
  .draw-card,
  .quick-grid,
  .home-board,
  .gallery-title,
  .album-tabs,
  .gallery-grid,
  .portal-sections,
  .feature-page,
  .view[data-view="discover"],
  .view[data-view="market"],
  .view[data-view="treasure"],
  .view[data-view="mine"] {
    margin-left: 8px;
    margin-right: 8px;
  }

  .top-ad {
    height: 86px;
  }

  .mascot {
    width: 100px;
    font-size: 30px;
  }

  .top-ad b {
    font-size: 22px;
  }

  .top-ad strong,
  .top-ad span {
    font-size: 12px;
  }

  .site-menu {
    grid-template-columns: repeat(3, 1fr);
  }

  .hero-banner {
    min-height: 180px;
    grid-template-columns: 1fr 76px;
    padding: 22px;
  }

  .hero-banner b {
    font-size: 34px;
  }

  .hero-banner strong {
    font-size: 22px;
  }

  .hero-banner span {
    font-size: 14px;
  }

  .hero-banner i {
    width: 70px;
    height: 70px;
    border-width: 10px;
    font-size: 32px;
  }

  .hero-banner i + i {
    display: none;
  }

  .lottery-tabs {
    gap: 8px;
    padding-top: 12px;
  }

  .lottery-tabs button {
    flex: 1 1 calc(50% - 8px);
    min-width: 0;
    padding: 0 8px;
  }

  .lottery-tabs button b {
    font-size: 14px;
  }

  .draw-card {
    grid-template-columns: 1fr;
  }

  .draw-card::before,
  .draw-head {
    height: 48px;
  }

  .draw-head b {
    font-size: 15px;
  }

  .draw-head span {
    display: none;
  }

  .balls-row {
    min-height: 110px;
    gap: 4px;
    padding: 14px 8px;
    overflow-x: auto;
    justify-content: flex-start;
  }

  .lottery-ball b {
    width: 42px;
    height: 42px;
    font-size: 24px;
  }

  .lottery-ball span {
    font-size: 14px;
  }

  .draw-foot {
    grid-template-columns: 1fr;
    padding: 0 12px 14px;
    gap: 8px;
  }

  .draw-foot span {
    text-align: left;
    font-size: 13px;
  }

  .draw-foot b {
    min-width: 96px;
    min-height: 32px;
    font-size: 15px;
  }

  .quick-grid,
  .album-tabs,
  .gallery-grid,
  .portal-sections,
  .feature-game-switch,
  .stats-summary,
  .status-grid,
  .live-board,
  .data-grid,
  .toolbox-grid,
  .contact-layout,
  .contact-columns,
  .tail-board,
  .material-list,
  .forum-list,
  .gallery-feature {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-layout {
    align-items: stretch;
  }

  .quick-grid {
    gap: 8px;
    padding: 10px;
  }

  .quick-item {
    min-height: 74px;
  }

  .zodiac-board {
    grid-template-columns: repeat(2, 1fr);
  }

  .inspect-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .number-grid {
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
    padding: 8px;
  }

  .number-grid button {
    height: 32px;
    font-size: 12px;
  }

  .table-head,
  .table-row {
    grid-template-columns: 88px 118px minmax(270px, 1fr) 64px;
    min-width: 620px;
    padding: 8px;
  }

  .small-ball b {
    width: 30px;
    height: 30px;
    font-size: 17px;
  }

  .small-ball em {
    font-size: 11px;
  }
}

@media (max-width: 420px) {
  .hero-banner {
    grid-template-columns: 1fr;
  }

  .hero-banner i {
    display: none;
  }

  .site-menu button {
    font-size: 13px;
  }

  .quick-grid,
  .album-tabs,
  .gallery-grid,
  .portal-sections,
  .feature-game-switch,
  .stats-summary,
  .status-grid,
  .live-board,
  .data-grid,
  .toolbox-grid,
  .contact-layout,
  .contact-columns,
  .tail-board,
  .material-list,
  .forum-list,
  .gallery-feature {
    grid-template-columns: 1fr;
  }
}

/* Sunny green site-wide theme */
:root {
  --ink: #17392e;
  --muted: #5f7f73;
  --line: #c9f0dd;
  --panel: #fff;
  --page: #eefcf5;
  --nav-green: #10c777;
  --nav-blue: #28a8ff;
  --nav-gold: #ffc83d;
  --nav-purple: #49d69a;
  --nav-pink: #ff8f54;
}

html,
body {
  color: #17392e;
  background: linear-gradient(180deg, #e9fff5 0%, #f7fff4 42%, #ffffff 100%);
}

.phone-shell,
.app {
  background: linear-gradient(180deg, #f0fff7 0%, #ffffff 360px);
}

.top-ad,
.lottery-tabs,
.gallery-title,
.album-tabs,
.portal-panel,
.feature-page,
.mine-section,
.home-board,
.history-block,
.tool-card,
.fans-card,
.page-title,
.search-bar,
.market-tabs,
.sub-tabs,
.sort-tabs,
.post-card,
.feature-card,
.live-board div,
.result-strip,
.data-panel,
.zodiac-board,
.trend-panel,
.hot-board,
.number-grid,
.inspect-panel,
.detail-panel,
.contact-card,
.material-card,
.pick-panel,
.tool-cell,
.paper-card {
  background: rgba(255, 255, 255, 0.96);
  border-color: #c8f2df;
  box-shadow: 0 10px 24px rgba(0, 180, 105, 0.08);
}

.hero-banner {
  color: #0d6f4a;
  background:
    radial-gradient(circle at 82% 28%, rgba(255, 222, 76, 0.95) 0 48px, transparent 49px),
    radial-gradient(circle at 91% 46%, rgba(255, 255, 255, 0.94) 0 58px, transparent 59px),
    radial-gradient(circle at 18% 78%, rgba(255, 204, 65, 0.45) 0 90px, transparent 91px),
    linear-gradient(135deg, #eafff2 0%, #bdf7dc 44%, #50d89b 100%);
}

.hero-banner b {
  color: #078a5d;
  text-shadow: 0 2px 0 rgba(255, 255, 255, 0.62);
}

.hero-banner strong {
  color: #e77b00;
}

.hero-banner span {
  color: #0d8158;
}

.hero-banner i {
  color: #0d8158;
  border-color: #12c877;
  background: #ffffff;
  box-shadow: 0 16px 28px rgba(0, 180, 105, 0.18);
}

.hero-banner i + i {
  border-color: #ffc83d;
}

.site-menu {
  border-bottom-color: #fff06a;
}

.site-menu button:nth-child(1),
.site-menu button:nth-child(2),
.site-menu button:nth-child(3),
.site-menu button:nth-child(4),
.site-menu button:nth-child(5),
.site-menu button:nth-child(6) {
  color: #fff;
  background: linear-gradient(135deg, #0ac36f, #25d79a);
}

.site-menu button:nth-child(4),
.site-menu button:nth-child(6) {
  background: linear-gradient(135deg, #ff9d30, #ffc83d);
}

.lottery-tabs button,
.feature-game-switch button,
.album-tabs button,
.market-tabs button,
.sub-tabs button {
  color: #14724e;
  border-color: #b7eed4;
  background: #ffffff;
}

.lottery-tabs button.active,
.feature-game-switch button.active,
.album-tabs button.active,
.market-tabs button.active,
.sub-tabs button.active {
  color: #fff;
  border-color: #10c777;
  background: linear-gradient(135deg, #08b96b, #33d79a);
  box-shadow: 0 10px 20px rgba(0, 190, 118, 0.18);
}

.lottery-tabs button.active span,
.feature-game-switch button.active span {
  color: #effff7;
}

.draw-card {
  border-color: #10c777;
  background: #ffffff;
  box-shadow: 0 14px 32px rgba(0, 190, 118, 0.10);
}

.draw-card::before {
  background: linear-gradient(90deg, #10c777, #ffc83d);
}

.draw-head b,
.gallery-title b,
.portal-panel-head b,
.feature-head b,
.feature-card-head b,
.data-panel b,
.hot-board h3,
.inspect-panel h3,
.detail-panel h3,
.tool-cell b,
.paper-card p b,
.page-title,
.block-head b {
  color: #078a5d;
}

.link-btn,
.home-board-head button,
.feature-back,
.material-card button,
.fab,
.draw-table button {
  color: #fff;
  border-color: #10c777;
  background: linear-gradient(135deg, #08b96b, #27d18d);
}

.quick-item i,
.feature-card-head i,
.material-card i,
.contact-card i {
  background: linear-gradient(135deg, #0dc877, #29d99d);
  box-shadow: 0 8px 16px rgba(0, 190, 118, 0.18);
}

.quick-item.c1 i,
.quick-item.c4 i,
.quick-item.c7 i {
  background: linear-gradient(135deg, #21a9ff, #57d7ff);
}

.quick-item.c2 i,
.quick-item.c5 i {
  background: linear-gradient(135deg, #ff9d30, #ffc83d);
}

.paper-card {
  border-color: #c8f2df;
  box-shadow: 0 14px 30px rgba(0, 180, 105, 0.10);
}

.paper-card:hover,
.paper-card:focus {
  border-color: #10c777;
  box-shadow: 0 20px 42px rgba(0, 180, 105, 0.16);
}

.paper-img.real-poster {
  color: #078a5d;
  background: #eafff2;
}

.paper-img.real-poster::after {
  display: none;
}

.paper-kicker {
  color: #078a5d;
  border-color: rgba(0, 190, 118, 0.22);
  background: rgba(255, 255, 255, 0.94);
}

.paper-zodiac {
  color: #078a5d;
  border-color: rgba(0, 190, 118, 0.18);
  background: rgba(236, 255, 246, 0.96);
}

.paper-stamp {
  color: #fff;
  border-color: rgba(0, 190, 118, 0.18);
  background: linear-gradient(135deg, #0dbd72, #ffc83d);
}

.feature-tags span,
.material-card em span {
  color: #078a5d;
  border-color: #b7eed4;
  background: #effff7;
}

.bottom-tabs,
.bottom-nav {
  background: rgba(255, 255, 255, 0.96);
  border-color: #c8f2df;
}

.bottom-tabs button.active,
.bottom-nav button.active {
  color: #08b96b;
}

/* Hard reset any remaining old blue/dark surfaces to the sunny home palette. */
.feature-head,
.gallery-title,
.home-board-head,
.block-head,
.portal-panel-head {
  color: #078a5d;
  border-color: #b8efd5;
  background: linear-gradient(90deg, #ffffff 0%, #edfff6 100%);
}

.feature-head {
  border: 1px solid #b8efd5;
}

.feature-head b,
.feature-head span,
.gallery-title span,
.portal-panel-head span {
  color: #078a5d;
}

.feature-back {
  color: #fff;
  background: linear-gradient(135deg, #0ac36f, #25d79a);
}

.feature-content,
.feature-wide,
.gallery-feature,
.material-list,
.forum-list,
.contact-layout,
.toolbox-grid,
.data-grid,
.stats-summary,
.status-grid {
  background: transparent;
}

.feature-game-switch button,
.lottery-tabs button,
.album-tabs button {
  color: #0b7c52;
  border: 1px solid #b8efd5;
  background: #ffffff;
}

.feature-game-switch button.active,
.lottery-tabs button.active,
.album-tabs button.active {
  color: #fff;
  background: linear-gradient(135deg, #0ac36f, #25d79a);
}

.feature-game-switch button.active b,
.feature-game-switch button.active span,
.lottery-tabs button.active b,
.lottery-tabs button.active span,
.album-tabs button.active {
  color: #fff;
}

.paper-card,
.feature-card,
.post-card,
.material-card,
.contact-card,
.tool-cell,
.data-panel,
.trend-panel,
.hot-board,
.inspect-panel,
.detail-panel,
.live-board div,
.result-strip,
.draw-table,
.number-grid,
.zodiac-board {
  border-color: #c8f2df;
  background: #ffffff;
  box-shadow: 0 12px 26px rgba(0, 190, 118, 0.08);
}

.paper-card p b,
.feature-card-head b,
.data-panel b,
.detail-panel h3,
.inspect-panel h3,
.hot-board h3,
.tool-cell b {
  color: #078a5d;
}

.paper-img.real-poster,
.paper-img.real-poster img {
  filter: none;
}

.paper-img.real-poster {
  background: linear-gradient(135deg, #eafff2, #ffffff);
}

.paper-kicker,
.paper-zodiac {
  color: #078a5d;
  background: rgba(255, 255, 255, 0.96);
}

.paper-stamp {
  background: linear-gradient(135deg, #0ac36f, #ffbf2e);
}

/* Final official sunny reset: no dark gallery/video cards anywhere. */
:root {
  --official-green: #08b96b;
  --official-green-dark: #078a5d;
  --official-mint: #eafff3;
  --official-sun: #ffca45;
}

html,
body {
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 220, 100, 0.24), transparent 28%),
    linear-gradient(180deg, #effff7 0%, #f7fffb 48%, #ffffff 100%) !important;
}

.phone-shell,
.app,
.feature-page {
  background: transparent !important;
}

.top-ad,
.hero-banner,
.draw-card,
.quick-grid,
.home-board,
.gallery-title,
.portal-panel,
.feature-head,
.feature-card,
.feature-wide,
.live-board div,
.result-strip,
.data-panel,
.zodiac-board,
.trend-panel,
.hot-board,
.number-grid,
.inspect-panel,
.detail-panel,
.contact-card,
.material-card,
.pick-panel,
.tool-cell,
.post-card,
.history-block,
.mine-head,
.fans-card,
.mine-section,
.page-title,
.search-bar,
.discover-banner,
.market-tabs,
.sub-tabs,
.sort-tabs {
  border-color: #bff1d9 !important;
  background: rgba(255, 255, 255, 0.98) !important;
  box-shadow: 0 12px 30px rgba(8, 185, 107, 0.09) !important;
}

.site-menu {
  gap: 8px;
  padding: 10px;
  border: 1px solid #bff1d9;
  border-radius: 8px;
  background: #ffffff;
}

.site-menu button,
.home-board-head button,
.table-row button,
.material-card button,
.pick-panel button,
.feature-back {
  color: #ffffff !important;
  background: linear-gradient(135deg, #08b96b, #31d994) !important;
  border-radius: 7px !important;
  box-shadow: 0 8px 18px rgba(8, 185, 107, 0.18);
}

.site-menu button:nth-child(n) {
  background: linear-gradient(135deg, #08b96b, #31d994) !important;
}

.feature-head,
.gallery-title,
.home-board-head,
.portal-panel-head,
.table-head {
  color: var(--official-green-dark) !important;
  border-color: #bff1d9 !important;
  background: linear-gradient(90deg, #ffffff 0%, #edfff6 100%) !important;
}

.feature-head b,
.feature-head span,
.gallery-title b,
.gallery-title span,
.home-board-head b,
.portal-panel-head b,
.portal-panel-head span,
.paper-card p b,
.feature-card-head b,
.portal-link b,
.data-panel b,
.detail-panel h3,
.inspect-panel h3,
.hot-board h3,
.tool-cell b {
  color: var(--official-green-dark) !important;
}

.lottery-tabs button,
.feature-game-switch button,
.album-tabs button {
  color: var(--official-green-dark) !important;
  border-color: #bff1d9 !important;
  background: #ffffff !important;
}

.lottery-tabs button.active,
.feature-game-switch button.active,
.album-tabs button.active {
  color: #ffffff !important;
  border-color: transparent !important;
  background: linear-gradient(135deg, #08b96b, #2ed996) !important;
}

.lottery-tabs button.active b,
.lottery-tabs button.active span,
.feature-game-switch button.active b,
.feature-game-switch button.active span,
.album-tabs button.active {
  color: #ffffff !important;
}

.paper-card {
  border-color: #bff1d9 !important;
  background: #ffffff !important;
  box-shadow: 0 14px 32px rgba(8, 185, 107, 0.10) !important;
}

.paper-card:hover,
.paper-card:focus {
  border-color: rgba(8, 185, 107, 0.52) !important;
  box-shadow: 0 18px 38px rgba(8, 185, 107, 0.18) !important;
}

.paper-img.real-poster {
  min-height: 190px;
  display: block;
  overflow: hidden;
  color: var(--official-green-dark) !important;
  border: 1px solid #bff1d9 !important;
  background:
    radial-gradient(circle at 84% 10%, rgba(255, 207, 64, 0.42), transparent 24%),
    radial-gradient(circle at 4% 96%, rgba(8, 185, 107, 0.18), transparent 34%),
    linear-gradient(135deg, #ffffff 0%, #f4fff8 52%, #e9fff4 100%) !important;
}

.paper-img.real-poster img {
  opacity: 1 !important;
}

.paper-img.real-poster::after {
  display: block !important;
  background:
    linear-gradient(90deg, rgba(8, 185, 107, 0.08) 1px, transparent 1px),
    linear-gradient(180deg, rgba(8, 185, 107, 0.08) 1px, transparent 1px) !important;
  background-size: 34px 34px !important;
}

.paper-img.real-poster strong {
  display: block !important;
  left: 18px;
  right: 18px;
  bottom: 74px;
  color: var(--official-green-dark) !important;
  font-size: clamp(18px, 2.1vw, 25px);
  text-align: left;
  text-shadow: none !important;
}

.paper-img.real-poster .paper-lines {
  display: flex !important;
  left: 18px;
  right: 18px;
  bottom: 42px;
}

.paper-lines span,
.paper-kicker,
.paper-zodiac {
  color: var(--official-green-dark) !important;
  border-color: rgba(8, 185, 107, 0.24) !important;
  background: rgba(255, 255, 255, 0.94) !important;
}

.paper-kicker {
  top: 14px;
  left: 14px;
  max-width: calc(100% - 88px);
}

.paper-num-row {
  top: 54px;
  right: 14px;
  max-width: 190px;
}

.paper-zodiac {
  bottom: 12px;
  left: 18px;
}

.paper-stamp {
  color: #ffffff !important;
  border: 2px solid #ffffff !important;
  background: linear-gradient(135deg, #08b96b, #ffca45) !important;
  box-shadow: 0 8px 18px rgba(8, 185, 107, 0.22);
}

.portal-link:hover,
.tool-cell:hover,
.contact-card:hover,
.material-card:hover {
  background: #f0fff7 !important;
}

.quick-item i,
.mine-item i {
  border-radius: 50% !important;
  background: linear-gradient(135deg, #08b96b, #30d996) !important;
}

.c2 i,
.c5 i,
.m2 i,
.m5 i {
  background: linear-gradient(135deg, #ffbd35, #35d98f) !important;
}

.c1 i,
.c4 i,
.c7 i,
.m1 i,
.m4 i,
.m7 i {
  background: linear-gradient(135deg, #14c98a, #67e0b2) !important;
}

/* Keep poster images clean: remove all overlay labels/watermarks from cards. */
.paper-img.real-poster::after {
  display: none !important;
}

.paper-img.real-poster > *:not(img) {
  display: none !important;
}

.paper-img.real-poster img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  opacity: 1 !important;
  transform: none !important;
}

/* Premium official brand header. */
.top-ad {
  min-height: 138px !important;
  height: auto !important;
  display: grid !important;
  grid-template-columns: 118px minmax(0, 1fr) 190px !important;
  align-items: center !important;
  gap: 22px !important;
  padding: 22px 28px !important;
  overflow: hidden;
  border: 1px solid #bff1d9 !important;
  border-radius: 10px !important;
  background:
    radial-gradient(circle at 88% 15%, rgba(255, 211, 67, 0.42), transparent 24%),
    radial-gradient(circle at 8% 90%, rgba(8, 185, 107, 0.18), transparent 28%),
    linear-gradient(135deg, #ffffff 0%, #effff6 42%, #d7fbe9 100%) !important;
  box-shadow: 0 18px 42px rgba(8, 185, 107, 0.12) !important;
}

.mascot {
  width: 104px !important;
  min-height: 104px !important;
  display: grid !important;
  place-items: center !important;
  align-content: center !important;
  gap: 4px !important;
  border-radius: 22px !important;
  color: #ffffff !important;
  background: linear-gradient(135deg, #08b96b 0%, #16c9a6 100%) !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.38), 0 14px 26px rgba(8, 185, 107, 0.22) !important;
}

.mascot::before {
  display: none !important;
}

.mascot b {
  color: #ffffff !important;
  font-size: 54px !important;
  line-height: 0.92 !important;
  letter-spacing: 0 !important;
}

.mascot span {
  margin: 0 !important;
  color: rgba(255, 255, 255, 0.92) !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  letter-spacing: 1.8px !important;
}

.brand-copy {
  min-width: 0;
}

.brand-copy strong,
.brand-copy b,
.brand-copy span {
  display: block !important;
  text-align: left !important;
}

.brand-copy strong {
  color: #08a866 !important;
  font-size: 18px !important;
  font-weight: 900 !important;
  letter-spacing: 0 !important;
}

.brand-copy b {
  margin-top: 6px;
  color: #064f38 !important;
  font-size: clamp(32px, 4.2vw, 54px) !important;
  line-height: 1.05 !important;
  font-weight: 900 !important;
  letter-spacing: 0 !important;
  text-shadow: 0 2px 0 rgba(255, 255, 255, 0.72);
}

.brand-copy span {
  width: fit-content;
  max-width: 100%;
  margin-top: 12px !important;
  padding: 8px 16px !important;
  color: #08754f !important;
  border: 1px solid rgba(8, 185, 107, 0.26);
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.86) !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  white-space: normal;
}

.brand-badge {
  justify-self: end;
  display: grid;
  gap: 4px;
  min-width: 170px;
  padding: 16px 18px;
  text-align: center;
  border: 1px solid rgba(8, 185, 107, 0.28);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 12px 28px rgba(8, 185, 107, 0.10);
}

.brand-badge b,
.brand-badge span {
  display: block;
}

.brand-badge b {
  color: #08754f;
  font-size: 18px;
  letter-spacing: 1px;
}

.brand-badge span {
  color: #0ea86f;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 1.8px;
}

@media (max-width: 900px) {
  .top-ad {
    grid-template-columns: 76px minmax(0, 1fr) !important;
    gap: 14px !important;
    padding: 16px !important;
  }

  .mascot {
    width: 72px !important;
    min-height: 72px !important;
    border-radius: 16px !important;
  }

  .mascot b {
    font-size: 40px !important;
  }

  .mascot span {
    font-size: 9px !important;
    letter-spacing: 1px !important;
  }

  .brand-copy strong {
    font-size: 13px !important;
  }

  .brand-copy b {
    font-size: clamp(24px, 7vw, 34px) !important;
  }

  .brand-copy span {
    margin-top: 8px !important;
    padding: 6px 10px !important;
    font-size: 12px !important;
  }

  .brand-badge {
    grid-column: 1 / -1;
    justify-self: stretch;
    min-width: 0;
    padding: 9px 12px;
    grid-template-columns: auto auto;
    justify-content: center;
    gap: 10px;
  }
}
