:root {
  --ink: #171717;
  --muted: #6f747c;
  --soft: #f4f6f8;
  --line: #e8edf1;
  --paper: #f7f9fb;
  --surface: #ffffff;
  --brand: #ff6a2a;
  --brand-dark: #dd4c14;
  --gold: #f7b731;
  --green: #16a56d;
  --blue: #3478f6;
  --cyan: #10a7b5;
  --red: #dc3b35;
  --purple: #7656d9;
  --shadow: 0 24px 70px rgba(17, 24, 39, 0.16);
  --radius: 8px;
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(120deg, rgba(255, 106, 42, 0.14), rgba(16, 167, 181, 0.14)),
    #eef3f7;
}

button,
input,
textarea {
  font: inherit;
}

button {
  border: 0;
}

.prototype-shell {
  display: grid;
  grid-template-columns: minmax(280px, 390px) minmax(360px, 430px);
  align-items: center;
  justify-content: center;
  gap: 46px;
  min-height: 100vh;
  padding: 34px;
}

.prototype-notes {
  max-width: 390px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 900;
}

.prototype-notes h1 {
  margin: 0 0 16px;
  font-size: 40px;
  line-height: 1.12;
  letter-spacing: 0;
}

.prototype-notes p {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
}

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

.note-grid span {
  min-height: 62px;
  padding: 12px;
  border: 1px solid rgba(255, 106, 42, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
  color: #3d4651;
  font-size: 13px;
  line-height: 1.45;
}

.phone-frame {
  width: min(100%, 408px);
  height: 844px;
  padding: 10px;
  border-radius: 36px;
  background: #111316;
  box-shadow: var(--shadow);
}

.phone-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 30px;
  padding: 0 18px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 12px;
  font-weight: 700;
}

.status-icons {
  letter-spacing: 0;
}

.app-screen {
  position: relative;
  overflow: hidden;
  height: calc(100% - 30px);
  border-radius: 28px;
  background: var(--paper);
}

.page {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 100%;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 54px;
  padding: 12px 14px 10px;
  background: rgba(247, 249, 251, 0.94);
  backdrop-filter: blur(16px);
}

.topbar h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.content {
  flex: 1;
  overflow-y: auto;
  min-height: 0;
  padding: 6px 14px 92px;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.content.with-fixed-action {
  padding-bottom: 100px;
}

.content::-webkit-scrollbar {
  width: 0;
}

.bottom-nav {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 8;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  min-height: 70px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
}

.nav-button {
  display: grid;
  place-items: center;
  gap: 2px;
  padding: 8px 0 7px;
  background: transparent;
  color: #8a929d;
  cursor: pointer;
  font-size: 9px;
  font-weight: 800;
}

.nav-button .nav-icon {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border-radius: 8px;
  font-size: 16px;
  line-height: 1;
}

.nav-button.active {
  color: var(--brand-dark);
}

.nav-button.active .nav-icon {
  background: #fff0e8;
}

.icon-button,
.primary-button,
.secondary-button,
.ghost-button,
.link-button,
.pill-button,
.tab-button,
.nav-button,
.benefit-card,
.task-card,
.menu-item {
  cursor: pointer;
}

.icon-button {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #ffffff;
  color: var(--ink);
  box-shadow: 0 8px 18px rgba(16, 24, 40, 0.08);
  font-size: 18px;
  font-weight: 900;
}

.primary-button,
.secondary-button,
.ghost-button {
  min-height: 36px;
  padding: 0 14px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.primary-button {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 10px 20px rgba(255, 106, 42, 0.24);
}

.primary-button:disabled {
  background: #d7dde4;
  color: #8b949e;
  box-shadow: none;
  cursor: not-allowed;
}

.secondary-button {
  background: #fff1e9;
  color: var(--brand-dark);
}

.ghost-button {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
}

.link-button {
  padding: 0;
  background: transparent;
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 900;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 18px;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 106, 42, 0.97), rgba(247, 183, 49, 0.9)),
    var(--brand);
  color: #fff;
}

.page-hero.points-summary {
  padding: 14px 16px;
  background:
    linear-gradient(135deg, #ff6a2a 0%, #ff8a34 46%, #f7b731 100%);
  box-shadow: 0 12px 24px rgba(255, 106, 42, 0.18);
}

.page-hero::after {
  content: "";
  position: absolute;
  right: -34px;
  bottom: -36px;
  width: 140px;
  height: 140px;
  border: 20px solid rgba(255, 255, 255, 0.16);
  border-radius: 32px;
  transform: rotate(18deg);
}

.page-hero.points-summary::after {
  right: -44px;
  bottom: -58px;
  width: 110px;
  height: 110px;
  border-width: 16px;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.summary-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}

.summary-item + .summary-item {
  padding-left: 12px;
  border-left: 1px solid rgba(255, 255, 255, 0.24);
}

.hero-row,
.split-row,
.list-row,
.title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.list-row.start {
  align-items: flex-start;
}

.label {
  color: rgba(255, 255, 255, 0.86);
  font-size: 12px;
  font-weight: 700;
}

.points {
  margin: 5px 0 0;
  font-size: 35px;
  font-weight: 1000;
  line-height: 1;
  text-shadow: 0 4px 12px rgba(137, 49, 11, 0.18);
}

.points.small {
  font-size: 26px;
}

.hero-copy {
  margin: 12px 0 0;
  max-width: 250px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 12px;
  line-height: 1.55;
}

.mini-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 16px;
}

.metric {
  min-height: 58px;
  padding: 9px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.17);
}

.metric span {
  display: block;
  color: rgba(255, 255, 255, 0.78);
  font-size: 11px;
}

.metric b {
  display: block;
  margin-top: 4px;
  color: #fff;
  font-size: 15px;
}

.section {
  margin-top: 13px;
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 9px;
}

.section-title h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 900;
}

.card,
.checkin-card,
.task-card,
.benefit-card,
.profile-card,
.record-card,
.rules-card,
.empty-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 8px 18px rgba(17, 24, 39, 0.04);
}

.checkin-card {
  padding: 11px 12px;
  background:
    linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}

.checkin-card h3 {
  margin: 0 0 3px;
  font-size: 15px;
  line-height: 1.2;
}

.checkin-card p {
  margin: 0;
  font-size: 12px;
  line-height: 1.35;
}

.checkin-calendar {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
  margin-top: 8px;
}

.day-dot {
  display: grid;
  place-items: center;
  min-height: 34px;
  padding: 4px 2px;
  border-radius: var(--radius);
  background: #f1f4f7;
  color: #8b949e;
  font-size: 11px;
  font-weight: 900;
  box-shadow: inset 0 0 0 1px rgba(232, 237, 241, 0.8);
}

.day-dot b,
.day-dot em {
  display: block;
  line-height: 1.15;
}

.day-dot em {
  margin-top: 2px;
  font-style: normal;
  font-size: 10px;
}

.day-dot.done {
  background: rgba(22, 165, 109, 0.1);
  color: var(--green);
}

.day-dot.today {
  background: linear-gradient(180deg, #fff4ed 0%, #ffe8da 100%);
  color: var(--brand-dark);
  box-shadow: inset 0 0 0 1px rgba(255, 106, 42, 0.28);
}

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

.quick-entry {
  min-height: 74px;
  padding: 10px 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  text-align: center;
}

.quick-entry b {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin: 0 auto 6px;
  border-radius: var(--radius);
  color: #fff;
  font-size: 17px;
}

.quick-entry span {
  color: #3d4651;
  font-size: 11px;
  font-weight: 900;
}

.bg-orange {
  background: var(--brand);
}

.bg-green {
  background: var(--green);
}

.bg-blue {
  background: var(--blue);
}

.bg-cyan {
  background: var(--cyan);
}

.bg-purple {
  background: var(--purple);
}

.task-stack,
.benefit-list,
.benefit-grid,
.record-list {
  display: grid;
  gap: 10px;
}

.task-card {
  padding: 13px;
}

.home-task-card {
  padding: 10px 12px;
  background:
    linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
}

.inline-title {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin-bottom: 3px;
}

.inline-title h4 {
  margin: 0;
  line-height: 19px;
}

.task-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-width: 34px;
  height: 19px;
  padding: 0 7px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 1000;
  line-height: 1;
}

.home-task-card p {
  font-size: 11px;
  line-height: 1.35;
}

.task-tag.community {
  background: rgba(52, 120, 246, 0.12);
  color: var(--blue);
}

.task-tag.lottery {
  background: rgba(255, 106, 42, 0.13);
  color: var(--brand-dark);
}

.task-tag.newbie,
.task-tag.daily {
  background: rgba(22, 165, 109, 0.12);
  color: var(--green);
}

.task-tag.share {
  background: rgba(118, 86, 217, 0.12);
  color: var(--purple);
}

.earn-hero,
.app-download-hero {
  margin-bottom: 12px;
}

.earn-hero {
  background:
    linear-gradient(135deg, rgba(52, 120, 246, 0.96), rgba(16, 167, 181, 0.9)),
    var(--blue);
}

.app-download-hero {
  background:
    linear-gradient(135deg, rgba(22, 165, 109, 0.96), rgba(247, 183, 49, 0.9)),
    var(--green);
}

.earn-hero .badge,
.app-download-hero .badge {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.earn-hero h3,
.app-download-hero h3 {
  margin: 10px 0 6px;
  font-size: 22px;
  line-height: 1.25;
}

.earn-hero p,
.app-download-hero p {
  margin: 0;
  max-width: 250px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 12px;
  line-height: 1.55;
}

.section-note {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.4;
}

.home-task-action {
  justify-content: flex-end;
  margin-top: 7px;
}

.task-action-row {
  justify-content: flex-end;
  margin-top: 10px;
}

.download-method {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.task-card h4,
.benefit-card h4,
.record-card h4,
.profile-card h3,
.rules-card h4 {
  margin: 0 0 5px;
  font-size: 15px;
  font-weight: 900;
}

.task-card p,
.benefit-card p,
.record-card p,
.profile-card p,
.rules-card p,
.empty-card p,
.field-help {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.reward {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: #fff0e8;
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 1000;
  white-space: nowrap;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: #fff0e8;
  color: var(--brand-dark);
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.badge.green {
  background: rgba(22, 165, 109, 0.12);
  color: var(--green);
}

.badge.blue {
  background: rgba(52, 120, 246, 0.12);
  color: var(--blue);
}

.badge.gray {
  background: #edf1f5;
  color: #69717d;
}

.segmented {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
  margin: 4px 0 12px;
  padding: 4px;
  border-radius: var(--radius);
  background: #edf1f5;
}

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

.tab-button {
  min-height: 34px;
  border-radius: var(--radius);
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.tab-button.active {
  background: #fff;
  color: var(--brand-dark);
  box-shadow: 0 8px 18px rgba(17, 24, 39, 0.08);
}

.benefit-card {
  overflow: hidden;
  padding: 0;
}

.benefit-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
}

.benefit-card.compact {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 208px;
  padding: 12px;
  border-color: #e6edf3;
  background:
    linear-gradient(180deg, #ffffff 0%, #fffdfb 100%);
  box-shadow: 0 8px 18px rgba(17, 24, 39, 0.045);
}

.benefit-card.compact::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--gold), #10a7b5);
}

.benefit-card.compact h4 {
  margin: 3px 0 4px;
  color: #20242a;
  font-size: 14px;
  line-height: 1.28;
}

.benefit-card.compact p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.compact-benefit-meta {
  display: grid;
  gap: 0;
  margin: auto 0 10px;
  overflow: hidden;
  border: 1px solid #edf1f5;
  border-radius: var(--radius);
  background: #fbfcfe;
}

.compact-benefit-meta span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  min-height: 26px;
  padding: 0 8px;
  border-bottom: 1px solid #edf1f5;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.2;
}

.compact-benefit-meta span:last-child {
  border-bottom: 0;
}

.compact-benefit-meta b {
  color: var(--ink);
  font-size: 11px;
  font-weight: 900;
  text-align: right;
}

.benefit-card.compact .primary-button {
  width: 100%;
  min-height: 34px;
  margin-top: auto;
  padding: 0 8px;
  font-size: 12px;
  box-shadow: 0 8px 16px rgba(255, 106, 42, 0.2);
}

.benefit-cover {
  position: relative;
  min-height: 92px;
  padding: 13px;
  color: #fff;
}

.benefit-cover.rent {
  background: linear-gradient(135deg, #ff6a2a, #f7b731);
}

.benefit-cover.service {
  background: linear-gradient(135deg, #3478f6, #10a7b5);
}

.benefit-cover.delta {
  background: linear-gradient(135deg, #16a56d, #7656d9);
}

.benefit-cover h4 {
  position: relative;
  z-index: 1;
  max-width: 230px;
  color: #fff;
}

.benefit-cover p {
  position: relative;
  z-index: 1;
  color: rgba(255, 255, 255, 0.82);
}

.benefit-cover::after {
  content: "券";
  position: absolute;
  right: 12px;
  bottom: 4px;
  color: rgba(255, 255, 255, 0.18);
  font-size: 72px;
  font-weight: 1000;
  line-height: 1;
}

.benefit-body {
  padding: 12px;
}

.benefit-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 10px 0 12px;
}

.benefit-meta span {
  display: grid;
  gap: 2px;
  min-height: 44px;
  padding: 7px;
  border-radius: var(--radius);
  background: var(--soft);
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}

.benefit-meta b {
  color: var(--ink);
  font-size: 12px;
}

.bind-panel,
.bind-tip {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 8px 18px rgba(17, 24, 39, 0.04);
}

.bind-panel.success {
  text-align: center;
}

.bind-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin: 2px auto 10px;
  border-radius: 18px;
  background: rgba(22, 165, 109, 0.12);
  color: var(--green);
  font-size: 28px;
  font-weight: 1000;
}

.bind-panel h3 {
  margin: 8px 0 8px;
  font-size: 20px;
  line-height: 1.35;
}

.bind-panel h4 {
  margin: 0 0 10px;
  font-size: 16px;
}

.bind-panel p,
.bind-tip p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.bind-assets {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 14px;
}

.bind-assets span {
  min-height: 54px;
  padding: 8px;
  border-radius: var(--radius);
  background: #f7fafc;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.bind-assets b {
  display: block;
  margin-top: 5px;
  color: var(--ink);
  font-size: 14px;
}

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

.bind-method {
  display: grid;
  gap: 5px;
  min-height: 72px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  text-align: left;
  box-shadow: 0 8px 18px rgba(17, 24, 39, 0.04);
}

.bind-method strong {
  font-size: 15px;
}

.bind-method span {
  color: var(--muted);
  font-size: 12px;
}

.bind-account {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 46px;
  margin-top: 10px;
  padding: 0 12px;
  border-radius: var(--radius);
  background: #f7fafc;
}

.bind-account span {
  color: var(--muted);
  font-size: 12px;
}

.bind-account strong {
  color: var(--ink);
  font-size: 14px;
}

.bind-full-button {
  width: 100%;
  min-height: 42px;
  margin-top: 14px;
}

.bind-code {
  display: grid;
  place-items: center;
  min-height: 78px;
  margin: 14px 0 8px;
  border-radius: var(--radius);
  background: #fff0e8;
  color: var(--brand-dark);
  font-size: 34px;
  font-weight: 1000;
  letter-spacing: 4px;
}

.bind-expire {
  text-align: center;
}

.lottery-card-mini {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 8px 18px rgba(17, 24, 39, 0.04);
}

.lottery-arcade {
  position: relative;
  overflow: hidden;
  padding: 10px;
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 18% 10%, rgba(247, 183, 49, 0.4), transparent 24%),
    radial-gradient(circle at 82% 0%, rgba(255, 106, 42, 0.46), transparent 26%),
    linear-gradient(180deg, #34204b 0%, #17151f 58%, #111316 100%);
  color: #fff;
  box-shadow: 0 18px 36px rgba(17, 24, 39, 0.26);
}

.lottery-arcade::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  pointer-events: none;
}

.arcade-marquee {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 7px;
  margin-bottom: 9px;
}

.arcade-light {
  height: 9px;
  border-radius: 999px;
  background: #ffd76b;
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.08),
    0 0 13px rgba(247, 183, 49, 0.92);
}

.arcade-light:nth-child(2n) {
  background: #ff7045;
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.08),
    0 0 13px rgba(255, 106, 42, 0.9);
}

.arcade-screen {
  position: relative;
  z-index: 1;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04)),
    #22182f;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.06),
    inset 0 -16px 28px rgba(0, 0, 0, 0.24);
}

.arcade-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.arcade-kicker {
  color: #ffd76b;
  font-size: 10px;
  font-weight: 1000;
  letter-spacing: 0;
}

.arcade-header h3 {
  margin: 4px 0 4px;
  font-size: 21px;
  line-height: 1.2;
}

.arcade-header p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  line-height: 1.45;
}

.coin-slot {
  flex: 0 0 92px;
  padding: 8px;
  border: 1px solid rgba(247, 183, 49, 0.28);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.26);
  text-align: right;
}

.coin-slot span {
  display: block;
  color: rgba(255, 255, 255, 0.66);
  font-size: 10px;
  font-weight: 800;
}

.coin-slot b {
  display: block;
  margin-top: 3px;
  color: #ffd76b;
  font-size: 18px;
  line-height: 1;
}

.lottery-card-mini {
  padding: 12px;
}

.lottery-card-mini h3 {
  margin: 0;
  font-size: 16px;
}

.lottery-card-mini p {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.lottery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.arcade-grid {
  padding: 8px;
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 215, 107, 0.16), rgba(255, 112, 69, 0.1)),
    rgba(0, 0, 0, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 215, 107, 0.18);
}

.lottery-prize {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 72px;
  padding: 8px 5px;
  border-radius: var(--radius);
  text-align: center;
}

.lottery-prize {
  border: 1px solid rgba(255, 215, 107, 0.2);
  background:
    linear-gradient(180deg, #fffaf1 0%, #ffe9cc 100%);
  color: #3a2117;
  box-shadow:
    inset 0 -6px 10px rgba(255, 106, 42, 0.1),
    0 8px 16px rgba(0, 0, 0, 0.16);
}

.lottery-prize small {
  position: absolute;
  top: 6px;
  left: 7px;
  display: grid;
  place-items: center;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: rgba(255, 106, 42, 0.14);
  color: var(--brand-dark);
  font-size: 9px;
  font-weight: 1000;
}

.lottery-prize strong {
  max-width: 74px;
  font-size: 13px;
  font-weight: 1000;
  line-height: 1.2;
}

.lottery-prize.active {
  border-color: rgba(255, 255, 255, 0.88);
  background:
    linear-gradient(180deg, #fff 0%, #fff0b8 48%, #ffba42 100%);
  color: #8a2c08;
  box-shadow:
    0 0 0 3px rgba(255, 215, 107, 0.24),
    0 0 22px rgba(247, 183, 49, 0.86),
    0 12px 22px rgba(0, 0, 0, 0.22);
  transform: translateY(-1px);
}

.lottery-draw-button {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 58px;
  margin-top: 12px;
  border-radius: 999px;
  border: 3px solid rgba(255, 255, 255, 0.22);
  background:
    linear-gradient(180deg, #ff8a34 0%, #ff5b26 58%, #d93f12 100%);
  color: #fff;
  box-shadow:
    inset 0 3px 0 rgba(255, 255, 255, 0.32),
    inset 0 -5px 0 rgba(129, 31, 5, 0.22),
    0 16px 28px rgba(255, 106, 42, 0.32);
}

.lottery-draw-button:disabled {
  background: #d7dde4;
  color: #8b949e;
  box-shadow: none;
}

.lottery-draw-button span {
  font-size: 18px;
  font-weight: 1000;
}

.lottery-draw-button small {
  margin-top: 4px;
  font-size: 11px;
  font-weight: 900;
}

.arcade-panel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.arcade-panel span {
  min-height: 42px;
  padding: 8px 6px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.09);
  color: rgba(255, 255, 255, 0.68);
  font-size: 10px;
  font-weight: 800;
}

.arcade-panel b {
  display: block;
  margin-top: 3px;
  color: #fff;
  font-size: 11px;
  line-height: 1.2;
}

.avatar {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #fff0e8;
  color: var(--brand-dark);
  font-size: 15px;
  font-weight: 1000;
}

.avatar.large {
  width: 52px;
  height: 52px;
  font-size: 20px;
}

.text-input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  outline: none;
}

.text-input {
  height: 42px;
  padding: 0 12px;
}

.rules-card {
  padding: 14px;
}

.rule-list {
  display: grid;
  gap: 10px;
  margin: 12px 0 0;
}

.rule-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

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

.rule-row strong {
  max-width: 190px;
  color: var(--ink);
  text-align: right;
}

.profile-card {
  padding: 15px;
}

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

.asset-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 14px;
}

.asset-strip span {
  min-height: 56px;
  padding: 8px;
  border-radius: var(--radius);
  background: var(--soft);
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.asset-strip b {
  display: block;
  margin-top: 4px;
  color: var(--ink);
  font-size: 14px;
}

.menu-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.menu-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  font-size: 14px;
  font-weight: 900;
}

.record-card {
  padding: 13px;
}

.status-good {
  color: var(--green);
  font-weight: 1000;
}

.status-warn {
  color: var(--brand-dark);
  font-weight: 1000;
}

.status-muted {
  color: var(--muted);
  font-weight: 1000;
}

.fixed-action {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 74px;
  padding: 12px 14px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(16px);
}

.fixed-action small {
  display: block;
  color: var(--muted);
  font-size: 11px;
}

.fixed-action strong {
  display: block;
  margin-top: 2px;
  font-size: 16px;
}

.empty-card {
  padding: 22px 16px;
  text-align: center;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: end center;
  padding: 14px;
  background: rgba(17, 24, 39, 0.48);
}

.modal-card {
  position: relative;
  width: 100%;
  padding: 24px 18px 18px;
  border-radius: 12px;
  background: #fff;
  text-align: center;
  box-shadow: 0 22px 52px rgba(17, 24, 39, 0.26);
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #f2f4f7;
  box-shadow: none;
}

.modal-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin: 0 auto 10px;
  border-radius: 18px;
  background: #fff0e8;
  color: var(--brand-dark);
  font-size: 28px;
  font-weight: 1000;
}

.modal-card h2 {
  margin: 0 0 8px;
  font-size: 19px;
  font-weight: 1000;
}

.modal-card p {
  margin: 0 auto 16px;
  max-width: 294px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.modal-extra {
  margin: 0 0 14px;
  padding: 10px;
  border-radius: var(--radius);
  background: var(--soft);
  color: #3d4651;
  text-align: left;
  font-size: 12px;
  line-height: 1.6;
}

.modal-actions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.modal-actions.single {
  grid-template-columns: 1fr;
}

@media (max-width: 840px) {
  .prototype-shell {
    display: block;
    min-height: auto;
    padding: 0;
  }

  .prototype-notes {
    display: none;
  }

  .phone-frame {
    width: 100%;
    height: 100vh;
    padding: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .phone-status {
    display: none;
  }

  .app-screen {
    height: 100vh;
    border-radius: 0;
  }
}
