:root {
  --ink: #191b18;
  --muted: #6e756d;
  --line: #e3e5df;
  --paper: #f4f1e8;
  --panel: #ffffff;
  --green: #286b58;
  --green-dark: #17352e;
  --amber: #c88a2d;
  --gold: #d9a441;
  --gold-deep: #7b4d12;
  --red: #b94d40;
  --blue: #3169a8;
  --shadow: 0 18px 48px rgba(25, 27, 24, 0.14);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 12%, rgba(217, 164, 65, 0.28), transparent 30%),
    radial-gradient(circle at 82% 18%, rgba(40, 107, 88, 0.18), transparent 26%),
    linear-gradient(135deg, #fbf6e9 0%, #e6eee8 100%);
  color: var(--ink);
  font-family:
    Inter, "PingFang TC", "Microsoft JhengHei", "Noto Sans CJK TC", Arial,
    sans-serif;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(360px, 430px) minmax(280px, 420px);
  justify-content: center;
  align-items: center;
  gap: 42px;
  padding: 28px;
}

.phone-frame {
  position: relative;
  width: min(100%, 430px);
  height: min(900px, calc(100vh - 56px));
  min-height: 720px;
  overflow: hidden;
  border: 10px solid #151713;
  border-radius: 34px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.42), transparent 26%),
    var(--paper);
  box-shadow: var(--shadow);
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 4;
  display: grid;
  grid-template-columns: 44px 1fr 58px;
  align-items: center;
  gap: 10px;
  padding: 14px 14px 10px;
  background: rgba(249, 246, 237, 0.94);
  backdrop-filter: blur(12px);
}

.icon-btn,
.login-btn,
.store-pill,
.text-btn,
.close-btn {
  border: 0;
  background: transparent;
}

.icon-btn {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--green-dark);
  color: #fff;
  font-size: 22px;
}

.store-pill {
  min-width: 0;
  height: 44px;
  padding: 0 12px;
  border-radius: 999px;
  background: #fff;
  text-align: left;
  box-shadow: 0 6px 20px rgba(23, 53, 46, 0.08);
}

.store-pill span,
.store-pill strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.store-pill span {
  color: var(--muted);
  font-size: 11px;
}

.store-pill strong {
  font-size: 14px;
}

.login-btn {
  min-height: 38px;
  border-radius: 999px;
  color: var(--green);
  background: #e8f2ee;
  font-weight: 700;
}

.broadcast {
  display: grid;
  grid-template-columns: 68px 1fr;
  align-items: center;
  gap: 8px;
  margin: 0 14px 12px;
  padding: 9px 12px;
  border-radius: 999px;
  background: #172b26;
  color: #fff;
  overflow: hidden;
}

.broadcast span {
  color: #f3c46d;
  font-size: 12px;
  font-weight: 700;
}

.broadcast p {
  margin: 0;
  min-width: 0;
  animation: marquee 12s linear infinite;
  white-space: nowrap;
  font-size: 13px;
}

@keyframes marquee {
  0% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(-110%);
  }
}

.view {
  display: none;
  height: calc(100% - 150px);
  overflow-y: auto;
  padding: 0 14px 96px;
}

.view.active {
  display: block;
}

.banner {
  min-height: 172px;
  display: flex;
  align-items: flex-end;
  padding: 18px;
  border-radius: 22px;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.76)),
    url("./assets/poker-banner.jpg")
      center/cover;
}

.banner span,
.section-head p,
.page-title p,
.product-meta,
.message-card p,
.reward-card p,
.profile-card p,
.wallet-grid span {
  color: var(--muted);
}

.banner span {
  color: #f6cc78;
  font-size: 13px;
  font-weight: 800;
}

.banner h1 {
  margin: 6px 0 6px;
  font-size: 25px;
  line-height: 1.16;
}

.banner p {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 13px;
}

.multi-banner {
  display: block;
  min-height: 172px;
  padding: 0;
  border-radius: 0;
  background: transparent;
}

.banner-track {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 6px;
}

.banner-slide {
  min-width: 86%;
  min-height: 172px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  scroll-snap-align: start;
  padding: 18px;
  border-radius: 22px;
  color: #fff;
  background-position: center;
  background-size: cover;
  box-shadow: 0 16px 34px rgba(30, 24, 16, 0.16);
}

.banner-slide span {
  width: fit-content;
}

.banner-slide h1 {
  margin: 8px 0 6px;
  font-size: 25px;
  line-height: 1.08;
}

.banner-slide p {
  max-width: 88%;
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 13px;
}

.quick-actions,
.wallet-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0;
}

.quick-actions button,
.wallet-grid button,
.account-list button,
.category-tabs button,
.cart-mode button,
.message-tabs button,
.order-tabs button,
.package-grid button,
.payment-list button {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.quick-actions button {
  min-height: 72px;
  padding: 10px;
  text-align: left;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(250, 246, 235, 0.94));
  box-shadow: 0 10px 24px rgba(25, 27, 24, 0.06);
}

.quick-actions b,
.quick-actions span {
  display: block;
}

.quick-actions span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
}

.category-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 0 12px;
}

.category-tabs button {
  flex: 0 0 auto;
  min-height: 36px;
  padding: 0 13px;
  color: var(--muted);
}

.category-tabs button.active {
  color: #fff;
  border-color: var(--green);
  background: var(--green);
}

.section-head,
.page-title {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin: 16px 0 12px;
}

.page-title {
  display: block;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 4px;
  font-size: 26px;
}

h2 {
  margin-bottom: 2px;
  font-size: 18px;
}

.section-head p,
.page-title p {
  margin-bottom: 0;
  font-size: 13px;
}

.text-btn {
  color: var(--green);
  font-size: 13px;
  font-weight: 700;
}

.product-list,
.message-list,
.cart-list,
.reward-list,
.account-list,
.coupon-list,
.order-history,
.stored-wine-list,
.campaign-gallery,
.payment-list {
  display: grid;
  gap: 10px;
}

.product-card,
.message-card,
.cart-card,
.coupon-card,
.reward-card,
.profile-card,
.points-card,
.order-card,
.stored-card,
.checkout-summary,
.form-panel,
.vip-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(25, 27, 24, 0.08);
}

.product-card {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 12px;
  padding: 10px;
}

.product-card img {
  width: 92px;
  height: 92px;
  border-radius: 12px;
  object-fit: cover;
}

.product-card h3,
.message-card h3,
.reward-card h3 {
  margin: 0 0 5px;
  font-size: 16px;
}

.product-meta {
  margin-bottom: 9px;
  font-size: 12px;
}

.product-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.price {
  color: var(--red);
  font-weight: 800;
}

.add-btn,
.primary-btn {
  border: 0;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  font-weight: 800;
}

.add-btn {
  min-width: 38px;
  height: 34px;
}

.message-card,
.cart-card,
.reward-card,
.points-card {
  padding: 14px;
}

.message-card p,
.reward-card p {
  margin-bottom: 0;
  font-size: 13px;
}

.message-card span {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
}

.cart-mode {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 12px;
}

.cart-mode button {
  min-height: 40px;
  color: var(--muted);
}

.cart-mode button.active {
  color: #fff;
  background: var(--green-dark);
}

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

.coupon-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 122px;
  gap: 12px;
  align-items: stretch;
  padding: 14px;
  background:
    linear-gradient(135deg, rgba(255, 218, 122, 0.28), rgba(255, 255, 255, 0.96)),
    #fff;
}

.coupon-card h3 {
  margin: 6px 0;
}

.coupon-card p,
.coupon-card small,
.coupon-card span {
  color: var(--muted);
}

.coupon-code {
  display: grid;
  gap: 7px;
  align-content: center;
  border-left: 1px dashed rgba(107, 74, 26, 0.28);
  padding-left: 12px;
}

.coupon-code b {
  color: #7c3f07;
  font-size: 13px;
  word-break: break-all;
}

.coupon-code button,
.coupon-select button {
  min-height: 34px;
  border: 1px solid rgba(255, 116, 23, 0.28);
  border-radius: 8px;
  color: #c94f08;
  background: #fff8ee;
  font-weight: 900;
}

.coupon-select {
  display: grid;
  gap: 8px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.coupon-select button {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  padding: 0 10px;
}

.coupon-select button.active {
  color: #fff;
  border-color: var(--orange);
  background: var(--orange);
}

.campaign-detail article {
  display: grid;
  gap: 12px;
}

.campaign-detail article > img {
  width: 100%;
  height: 180px;
  border-radius: 18px;
  object-fit: cover;
}

.campaign-detail span,
.campaign-detail p {
  color: var(--muted);
}

.campaign-detail h2,
.campaign-detail h3 {
  margin: 0;
}

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

.campaign-section-list section,
.campaign-prizes {
  padding: 13px;
  border: 1px solid rgba(218, 159, 65, 0.26);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 249, 237, 0.96));
}

.campaign-section-list b {
  display: block;
  margin-bottom: 6px;
  color: #3a2208;
  font-size: 15px;
}

.campaign-section-list p {
  margin: 0;
  line-height: 1.58;
}

.campaign-prizes {
  display: grid;
  gap: 8px;
}

.campaign-prizes h3 {
  color: #3a2208;
}

.campaign-prizes div {
  display: grid;
  grid-template-columns: 58px 92px 1fr;
  align-items: center;
  gap: 8px;
  padding: 10px;
  border-radius: 12px;
  background: #fff6e4;
}

.campaign-prizes strong {
  color: var(--orange);
}

.campaign-prizes b {
  color: #20170f;
}

.campaign-prizes span {
  color: var(--muted);
  font-size: 13px;
}

.campaign-gallery {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.campaign-gallery img {
  width: 100%;
  height: 104px;
  border-radius: 14px;
  object-fit: cover;
}

.qty-control {
  display: flex;
  align-items: center;
  gap: 8px;
}

.qty-control button {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: #edf2ef;
}

.checkout-bar {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 72px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow);
}

.checkout-bar span,
.checkout-bar strong {
  display: block;
}

.primary-btn {
  min-height: 44px;
  padding: 0 20px;
}

.profile-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  margin-top: 8px;
  position: relative;
  overflow: hidden;
  color: #fff7df;
  border-color: rgba(255, 223, 137, 0.62);
  background:
    linear-gradient(135deg, rgba(255, 231, 155, 0.24), transparent 36%),
    linear-gradient(135deg, #2a1a09 0%, #8f5b17 48%, #d7a64a 100%);
}

.profile-card::after {
  content: "GOLD";
  position: absolute;
  right: -10px;
  bottom: -18px;
  color: rgba(255, 255, 255, 0.14);
  font-size: 64px;
  font-weight: 900;
  letter-spacing: 4px;
}

.avatar {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 2px solid rgba(255, 245, 205, 0.72);
  background: linear-gradient(135deg, #fff1a8, #c68622);
  color: #2f1b05;
  font-size: 24px;
  font-weight: 900;
}

.profile-card h1 {
  font-size: 21px;
  color: #fff;
}

.profile-card p {
  margin-bottom: 0;
  color: rgba(255, 248, 221, 0.82);
  font-size: 13px;
}

.wallet-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.wallet-grid button {
  min-height: 86px;
  padding: 14px;
  text-align: left;
}

.wallet-grid strong,
.wallet-grid span {
  display: block;
}

.wallet-grid strong {
  margin-top: 8px;
  font-size: 22px;
}

.account-list button {
  min-height: 48px;
  padding: 0 14px;
  text-align: left;
  font-weight: 700;
  background: linear-gradient(180deg, #fff, #fbf8ef);
  box-shadow: 0 8px 20px rgba(25, 27, 24, 0.05);
}

.points-card {
  margin-bottom: 12px;
  color: #fff;
  background: linear-gradient(135deg, var(--green-dark), var(--green));
}

.points-card span,
.points-card strong {
  display: block;
}

.points-card span {
  color: rgba(255, 255, 255, 0.72);
}

.points-card strong {
  margin-top: 8px;
  font-size: 34px;
}

.point-wallets {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}

.point-wallets .points-card {
  margin-bottom: 0;
}

.point-wallets .points-card small {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.72);
}

.gold-poker-card {
  background: linear-gradient(135deg, #72500b, #d5a62b);
}

.point-pool-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 12px;
  padding: 5px;
  border-radius: 14px;
  background: #ecefe9;
}

.point-pool-tabs button {
  min-height: 40px;
  border: 0;
  border-radius: 11px;
  color: var(--muted);
  background: transparent;
  font-weight: 800;
}

.point-pool-tabs button.active {
  color: #fff;
  background: var(--green);
  box-shadow: 0 6px 16px rgba(32, 86, 62, 0.18);
}

.reward-card {
  display: grid;
  grid-template-columns: 78px 1fr;
  align-items: center;
  gap: 12px;
  padding: 10px;
}

.reward-card img {
  width: 78px;
  height: 78px;
  border-radius: 12px;
  object-fit: cover;
}

.reward-card button {
  grid-column: 2;
  min-height: 36px;
  border: 0;
  border-radius: 999px;
  padding: 0 14px;
  color: #fff;
  background: var(--amber);
  font-weight: 800;
}

.reward-card button:disabled {
  cursor: not-allowed;
  color: #8b928e;
  background: #dfe3e0;
  box-shadow: none;
}

@media (max-width: 520px) {
  .point-wallets {
    grid-template-columns: 1fr;
  }
}

.message-tabs,
.order-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 12px;
}

.message-tabs button,
.order-tabs button {
  flex: 0 0 auto;
  min-height: 36px;
  padding: 0 13px;
  color: var(--muted);
}

.message-tabs button.active,
.order-tabs button.active {
  color: #fff;
  border-color: var(--green);
  background: var(--green);
}

.tone-訂單 {
  background: #eef5ff;
}

.tone-活動 {
  background: #fff6e7;
}

.tone-充值 {
  background: #edf7f1;
}

.tone-積分 {
  background: #f5efff;
}

.profile-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0;
}

.profile-summary article {
  min-height: 98px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(250, 247, 239, 0.96));
  box-shadow: 0 10px 24px rgba(25, 27, 24, 0.06);
}

.profile-summary article:nth-child(2) {
  color: #fff7df;
  border-color: rgba(255, 218, 120, 0.75);
  background:
    linear-gradient(135deg, rgba(255, 239, 182, 0.28), transparent 38%),
    linear-gradient(135deg, #3a2208 0%, #9b6418 52%, #e2b954 100%);
}

.profile-summary article:nth-child(2) span,
.profile-summary article:nth-child(2) small {
  color: rgba(255, 248, 222, 0.82);
}

.profile-summary article:nth-child(2) strong {
  color: #fff;
  font-size: 18px;
}

.profile-summary span,
.profile-summary small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.profile-summary strong {
  display: block;
  margin-top: 8px;
  font-size: 18px;
}

.with-back {
  display: grid;
  grid-template-columns: 40px 1fr;
  align-items: center;
}

.back-btn {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: var(--green);
  font-size: 26px;
  line-height: 1;
}

.form-panel,
.checkout-summary {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.form-panel label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.form-panel input,
.dialog-body input,
.stored-card input {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 12px;
  color: var(--ink);
  background: #fff;
}

.avatar-uploader {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--green);
  font-weight: 800;
}

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

.package-grid button {
  min-height: 68px;
  text-align: left;
  padding: 10px 12px;
}

.package-grid strong,
.package-grid span,
.payment-list strong,
.payment-list span {
  display: block;
}

.package-grid span,
.payment-list span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.vip-carousel {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 14px;
}

.vip-card {
  flex: 0 0 86%;
  min-height: 260px;
  padding: 18px;
  scroll-snap-align: start;
}

.vip-card.current {
  color: #fff8dd;
  border-color: rgba(255, 221, 123, 0.76);
  background:
    linear-gradient(135deg, rgba(255, 239, 184, 0.32), transparent 40%),
    linear-gradient(135deg, #2b1906 0%, #895615 52%, #e1b555 100%);
}

.vip-card span {
  color: var(--amber);
  font-weight: 900;
}

.vip-card h2 {
  margin-top: 10px;
  font-size: 30px;
}

.vip-card strong {
  display: block;
  margin: 10px 0;
  font-size: 34px;
}

.vip-card p,
.vip-card li {
  line-height: 1.55;
}

.stored-card {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 12px;
  padding: 12px;
}

.stored-card img {
  width: 92px;
  height: 120px;
  border-radius: 14px;
  object-fit: cover;
}

.stored-card h3 {
  margin: 0 0 6px;
}

.stored-card p,
.stored-card label {
  color: var(--muted);
  font-size: 13px;
}

.payment-list button {
  min-height: 62px;
  padding: 10px 14px;
  text-align: left;
}

.payment-list button.active {
  border-color: var(--green);
  background: #edf5f1;
}

.full-btn {
  width: 100%;
}

.payment-success {
  min-height: 70%;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 14px;
  text-align: center;
}

.success-mark {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-size: 42px;
}

.order-card {
  padding: 14px;
}

.order-top,
.order-state {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.order-card span {
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
}

.order-card b,
.order-card em {
  display: block;
  margin-top: 8px;
  font-style: normal;
}

.order-card p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.order-state b {
  color: var(--green);
  font-size: 17px;
}

.status-配送中 .order-state b,
.status-製作中 .order-state b {
  color: var(--amber);
}

.status-處理中 .order-state b {
  color: var(--blue);
}

.order-live,
.voucher-box {
  margin-top: 12px;
  padding: 10px;
  border-radius: 12px;
  background: #f6f8f5;
}

.order-live span,
.voucher-box span,
.voucher-box small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.order-live strong,
.voucher-box strong {
  display: block;
  margin-top: 5px;
}

.voucher-box strong {
  color: var(--green);
  font-size: 24px;
  letter-spacing: 2px;
}

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

.order-progress i {
  padding: 7px 6px;
  border-radius: 999px;
  background: #edf5f1;
  color: var(--green);
  font-size: 12px;
  font-style: normal;
  text-align: center;
}

.order-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.order-actions button {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 12px;
  background: #fff;
  color: var(--green);
  font-weight: 800;
}

.order-actions button:disabled,
.dialog-actions button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.delivery-map {
  position: relative;
  margin-top: 12px;
  min-height: 148px;
  overflow: hidden;
  border-radius: 16px;
  background: #ddd;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4);
}

.delivery-map.large {
  margin: 14px 0;
  min-height: 190px;
}

.delivery-map img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  display: block;
  object-fit: cover;
  filter: saturate(1.08) contrast(1.03);
}

.delivery-map::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 32%, rgba(0, 0, 0, 0.58)),
    radial-gradient(circle at 62% 42%, rgba(255, 199, 71, 0.9) 0 7px, rgba(255, 255, 255, 0.95) 8px 11px, transparent 12px);
}

.map-status {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 1;
  padding: 10px 12px;
  border-radius: 14px;
  color: #fff;
  background: rgba(14, 25, 22, 0.72);
  backdrop-filter: blur(8px);
}

.map-status strong,
.map-status span {
  display: block;
}

.map-status span {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 12px;
}

.mini-list {
  display: grid;
  gap: 8px;
}

.mini-list button {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  text-align: left;
  padding: 0 12px;
}

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

.bottom-nav button {
  border: 0;
  border-radius: 12px;
  color: var(--muted);
  background: transparent;
  font-size: 12px;
}

.bottom-nav span {
  display: block;
  margin-bottom: 2px;
  font-size: 17px;
}

.bottom-nav button.active {
  color: var(--green);
  background: #edf5f1;
  font-weight: 800;
}

.prototype-notes {
  max-width: 420px;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.56);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.prototype-notes h2 {
  font-size: 30px;
}

.prototype-notes p {
  color: var(--muted);
  line-height: 1.7;
}

.flow-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.flow-list span {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--green-dark);
  background: #fff;
  font-size: 13px;
  font-weight: 800;
}

dialog {
  width: min(390px, calc(100vw - 34px));
  border: 0;
  border-radius: 20px;
  padding: 0;
  color: var(--ink);
  background: #fff;
  box-shadow: var(--shadow);
}

dialog::backdrop {
  background: rgba(0, 0, 0, 0.45);
}

.close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.88);
  font-size: 22px;
}

.dialog-body {
  padding: 18px;
}

.dialog-body img {
  width: 100%;
  height: 190px;
  border-radius: 16px;
  object-fit: cover;
}

.dialog-body h2 {
  margin-top: 14px;
  font-size: 24px;
}

dialog:has(.splash-poster) {
  position: fixed;
  top: 50%;
  left: 50%;
  width: min(360px, calc(100vw - 44px));
  max-height: min(92vh, 820px);
  margin: 0;
  overflow: visible;
  transform: translate(-50%, -50%);
  border-radius: 26px;
  color: #fff;
  background: #070503;
  box-shadow: 0 34px 96px rgba(0, 0, 0, 0.56);
}

dialog:has(.splash-poster) .close-btn {
  display: none;
}

.splash-close-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 220, 138, 0.82);
  border-radius: 50%;
  padding: 0;
  color: #ffe3a2;
  background:
    linear-gradient(180deg, rgba(40, 28, 14, 0.96), rgba(12, 9, 6, 0.96));
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.36),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  font-size: 24px;
  line-height: 1;
  backdrop-filter: blur(8px);
}

.splash-poster {
  position: relative;
  min-height: min(82vh, 760px);
  overflow: hidden;
  border: 1px solid rgba(255, 217, 130, 0.26);
  border-radius: 24px;
  cursor: pointer;
  background: #090604;
}

.splash-poster img {
  width: 100%;
  height: min(82vh, 760px);
  display: block;
  object-fit: cover;
}

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

.splash-poster::before {
  background:
    radial-gradient(circle at 50% 18%, rgba(251, 201, 82, 0.12), transparent 26%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.08) 0%, rgba(0, 0, 0, 0.02) 52%, rgba(0, 0, 0, 0.08) 100%);
}

.splash-poster::after {
  display: none;
}

.splash-copy {
  position: absolute;
  top: 54px;
  left: 18px;
  right: 18px;
  z-index: 2;
  padding: 10px 14px 12px;
  border: 0;
  border-radius: 14px;
  text-align: center;
  background:
    radial-gradient(ellipse at center, rgba(47, 27, 8, 0.84), rgba(10, 7, 4, 0.72) 64%, rgba(10, 7, 4, 0));
  box-shadow: none;
  backdrop-filter: blur(2px);
}

.splash-copy span {
  display: inline-block;
  padding: 0 0 4px;
  color: #f3d48b;
  background: transparent;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0;
}

.splash-copy h2 {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 0 8px;
  line-height: 1;
  letter-spacing: 0;
}

.splash-copy h2 em {
  margin-bottom: 2px;
  color: #fff1c2;
  font-size: 21px;
  font-style: normal;
  font-weight: 900;
  text-shadow: 0 4px 16px rgba(0, 0, 0, 0.74);
}

.splash-copy h2 strong {
  color: #f4c95f;
  font-size: 39px;
  font-weight: 950;
  -webkit-text-stroke: 1px rgba(72, 30, 0, 0.9);
  text-shadow:
    0 2px 0 #5b2600,
    0 8px 22px rgba(230, 154, 35, 0.34),
    0 18px 36px rgba(0, 0, 0, 0.72);
}

.splash-copy p {
  margin: 0 auto;
  width: fit-content;
  padding: 5px 10px;
  color: #221405;
  border-radius: 3px;
  background: linear-gradient(90deg, #f6df9e, #dba23d);
  box-shadow: 0 7px 20px rgba(0, 0, 0, 0.28);
  font-size: 11.5px;
  line-height: 1.25;
  font-weight: 800;
}

.dialog-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.dialog-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}

@media (max-width: 860px) {
  .app-shell {
    display: block;
    padding: 0;
  }

  .phone-frame {
    width: 100%;
    height: 100vh;
    min-height: 100vh;
    border: 0;
    border-radius: 0;
  }

  .prototype-notes {
    display: none;
  }
}

@media (max-width: 390px) {
  .quick-actions {
    grid-template-columns: 1fr;
  }

  .product-card {
    grid-template-columns: 82px 1fr;
  }

  .product-card img {
    width: 82px;
    height: 82px;
  }
}
