@font-face {
  font-family: "Noto Sans Myanmar";
  src: url("noto-myanmar-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Noto Sans Myanmar";
  src: url("noto-myanmar-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

* { box-sizing: border-box; }

html, body {
  height: 100%;
  margin: 0;
  overflow: hidden;
}

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  font-family: "Noto Sans Myanmar", "Myanmar Text", "Pyidaungsu", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #fff4de;
  background:
    radial-gradient(ellipse at 50% -10%, rgba(208, 24, 43, 0.38), transparent 46%),
    radial-gradient(ellipse at 100% 100%, rgba(226, 182, 87, 0.14), transparent 42%),
    #070607;
}

button, input { font-family: inherit; }

button {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  -webkit-user-select: none;
  user-select: none;
}

img { max-width: 100%; border: 0; display: block; }

.app {
  height: 100%;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #070607;
}

.topbar, #stage, .rail { min-width: 0; }

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px 12px;
  background: #0c090a;
  box-shadow: 0 1px 0 #e2b657, 0 4px 0 #070607, 0 5px 0 rgba(208, 24, 43, 0.9);
  z-index: 3;
}

.brand { display: flex; align-items: center; min-width: 0; }

.diamond {
  width: 9px;
  height: 9px;
  margin-right: 10px;
  background: #d0182b;
  transform: rotate(45deg);
  flex: none;
  box-shadow: 0 0 0 2px rgba(226, 182, 87, 0.7);
}

.brand-mark, .brand-sub, .latin {
  font-family: Palatino, "Palatino Linotype", Georgia, serif;
}

.brand-mark {
  font-size: 1.25rem;
  letter-spacing: 0.16em;
  line-height: 1;
  color: #f3d48a;
  text-transform: uppercase;
}

.brand-sub {
  margin-top: 2px;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  line-height: 1;
  color: #e22336;
  text-transform: uppercase;
}

.purse-chip {
  flex: 0 1 auto;
  max-width: 46%;
  text-align: right;
  line-height: 1.15;
  padding: 6px 10px;
  border: 1px solid rgba(226, 182, 87, 0.7);
  border-radius: 14px;
  background: #140c0e;
}

.purse-chip b {
  display: block;
  font-size: 1rem;
  color: #fff6e8;
}

.purse-chip span {
  display: block;
  font-size: 0.68rem;
  color: #e2b657;
}

#stage {
  flex: 1;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.pad { padding: 14px 12px 20px; }

.pad > * + * { margin-top: 12px; }

.rail {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  overflow: hidden;
  padding: 8px 8px 4px;
  background: #0c090a;
  border-top: 1px solid rgba(226, 182, 87, 0.45);
  box-shadow: inset 0 3px 0 #070607, inset 0 4px 0 rgba(208, 24, 43, 0.85);
}

.rail button {
  position: relative;
  flex: 1 1 31%;
  margin: 0 0 6px;
  min-height: 40px;
  max-width: 33%;
  padding: 7px 4px;
  border: 1px solid rgba(226, 182, 87, 0.42);
  border-radius: 8px 8px 16px 16px;
  background: #140c0e;
  color: #f3d48a;
  white-space: nowrap;
  text-align: center;
  font-size: 0.86rem;
}

.rail button.is-active {
  background: #e2b657;
  color: #1a0c0e;
  border-color: #f0d48a;
}

.rail button.is-active:after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 4px;
  height: 3px;
  border-radius: 2px;
  background: #8e1020;
}

h1, h2, p { margin: 0; }

h1 {
  font-size: 1.55rem;
  font-size: clamp(1.45rem, 5vw, 2rem);
  line-height: 1.25;
  font-weight: 700;
}

h2 { font-size: 1.05rem; line-height: 1.35; }

.kicker {
  color: #e2b657;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  text-transform: uppercase;
  font-family: Palatino, Georgia, serif;
}

.muted { color: #e7d3b0; font-size: 0.92rem; }

.note { color: #f3d48a; font-size: 0.88rem; }

.card {
  position: relative;
  padding: 12px;
  border: 1px solid rgba(226, 182, 87, 0.42);
  border-radius: 16px;
  background: #140c0e;
  box-shadow: inset 3px 0 0 #d0182b;
  min-width: 0;
  overflow-wrap: anywhere;
}

.hero-frame, .banner {
  position: relative;
  overflow: hidden;
  height: 168px;
  border-radius: 18px;
  border: 1px solid rgba(226, 182, 87, 0.5);
  background: #1a1012;
}

.hero-frame { height: 200px; }

.hero-frame img, .banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-frame:before, .hero-frame:after, .banner:before, .banner:after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  z-index: 1;
  border: 2px solid #e2b657;
}

.hero-frame:before, .banner:before { top: 8px; left: 8px; border-right: 0; border-bottom: 0; }
.hero-frame:after, .banner:after { right: 8px; bottom: 8px; border-left: 0; border-top: 0; }

.hero-copy {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 1;
  text-shadow: 0 2px 12px #000;
}

.stats { display: flex; }

.stat {
  flex: 1;
  min-width: 0;
  margin-right: 8px;
  padding: 10px 8px;
  border-radius: 14px;
  border: 1px solid rgba(226, 182, 87, 0.4);
  background:
    radial-gradient(circle at 8px 0, transparent 6px, #1a1012 6.5px) left top / 16px 10px repeat-x,
    #120c0e;
}

.stat:last-child { margin-right: 0; }

.stat b {
  display: block;
  font-size: 0.98rem;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.stat span {
  display: block;
  margin-top: 2px;
  color: #e2b657;
  font-size: 0.72rem;
}

.step { display: flex; align-items: flex-start; }

.step i {
  flex: none;
  width: 32px;
  height: 32px;
  margin-right: 10px;
  border-radius: 50%;
  background: #e2b657;
  color: #1a0c0e;
  font-family: Palatino, Georgia, serif;
  font-style: normal;
  font-weight: 700;
  text-align: center;
  line-height: 32px;
}

.cta, .ghost {
  display: inline-block;
  max-width: 100%;
  min-height: 46px;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 1rem;
  line-height: 1.3;
  text-align: center;
  white-space: normal;
}

.actions > * { min-width: 0; }

.cta {
  border: 1px solid #f0d48a;
  color: #fff6e8;
  background: #c41224;
  background: linear-gradient(#e22336, #a30f22);
}

.ghost {
  border: 1px solid rgba(226, 182, 87, 0.75);
  color: #f3d48a;
  background: transparent;
}

.cta.block, .ghost.block { width: 100%; }
.after { margin-top: 10px; }

.cta:disabled, .ghost:disabled { opacity: 0.45; }

.guest { display: flex; align-items: center; }

.avatar {
  width: 64px;
  height: 64px;
  margin-right: 10px;
  flex: none;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #e2b657;
  background: #1a1012;
}

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

.guest-copy b { display: block; }

.meta { display: flex; flex-wrap: wrap; align-items: center; }

.meta > * { margin: 0 8px 6px 0; }

.pill {
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid rgba(226, 182, 87, 0.45);
  color: #f3d48a;
  font-size: 0.82rem;
}

.lamps { display: flex; align-items: center; }

.lamp {
  display: inline-block;
  width: 12px;
  height: 16px;
  margin-right: 4px;
  border-radius: 6px 6px 3px 3px;
  border: 1px solid #e2b657;
  background: #2a211c;
}

.lamp.is-on {
  background: #e2b657;
  background: radial-gradient(circle at 50% 28%, #fff4c8, #e2b657 42%, #d0182b 80%);
  box-shadow: 0 0 8px rgba(226, 182, 87, 0.75);
}

.wick {
  height: 8px;
  overflow: hidden;
  border-radius: 99px;
  border: 1px solid rgba(226, 182, 87, 0.4);
  background: #2a1a16;
}

.wick span {
  display: block;
  height: 100%;
  width: 100%;
  background: #e2b657;
  background: linear-gradient(90deg, #d0182b, #e2b657);
  -webkit-transform-origin: left center;
  transform-origin: left center;
}

.wick.is-low span { background: #e22336; }

.bill-row {
  display: flex;
  align-items: flex-start;
  padding: 5px 0;
}

.bill-row span { flex: 1; min-width: 0; padding-right: 8px; }

.bill-row b { flex: none; font-variant-numeric: tabular-nums; }

.bill-row.is-strong {
  margin-top: 4px;
  padding-top: 8px;
  border-top: 1px solid rgba(226, 182, 87, 0.35);
}

.bill-row.is-extra b { color: #f3d48a; }
.bill-row.is-minus b { color: #ff8d98; }

.seal {
  padding: 8px 10px;
  border: 1px dashed #e2b657;
  border-radius: 12px;
  color: #f3d48a;
}

.coins { display: flex; flex-wrap: wrap; }

.coin, .token, .mini-coin {
  border: 0;
  border-radius: 50%;
  font-weight: 700;
  text-align: center;
}

.coin {
  width: 64px;
  height: 64px;
  margin: 0 8px 10px 0;
  flex: none;
  font-size: 1.05rem;
}

.token {
  width: 46px;
  height: 46px;
  margin: 0 6px 6px 0;
  font-size: 0.85rem;
}

.picked { display: flex; flex-wrap: wrap; }

.mini-coin {
  display: inline-block;
  width: 42px;
  height: 42px;
  margin: 0 6px 6px 0;
  line-height: 42px;
  font-size: 0.85rem;
}

.tone-cream { background: #f3e6c8; color: #1a0c0e; }
.tone-gold { background: #e2b657; color: #1a0c0e; box-shadow: inset 0 0 0 3px rgba(255, 244, 210, 0.45); }
.tone-crimson { background: #c41224; color: #fff6e8; box-shadow: inset 0 0 0 3px rgba(243, 212, 138, 0.45); }
.tone-emerald { background: #146b45; color: #f3fff6; box-shadow: inset 0 0 0 3px rgba(226, 182, 87, 0.4); }

.coin[data-value="50"], .coin[data-value="100"] {
  box-shadow: inset 0 0 0 3px rgba(255, 244, 210, 0.55), 0 0 0 2px #e2b657;
}

.actions {
  position: sticky;
  bottom: 0;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  padding-top: 8px;
  background: #070607;
}

.actions .cta, .actions .ghost { margin: 0 8px 8px 0; }
.actions .block { width: 100%; margin-right: 0; }

.banner-ok {
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(31, 138, 91, 0.8);
  background: #10261c;
}

.banner-bad {
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(226, 35, 54, 0.85);
  background: #2a1014;
}

.lock {
  display: inline-block;
  margin-top: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #2a1014;
  color: #f3d48a;
  font-size: 0.78rem;
}

.good b, .upgrade b { display: block; }

.upgrade .cta, .upgrade .ghost { width: 100%; margin-top: 8px; }

.pips { display: inline-block; margin-top: 6px; }

.pips i {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 4px;
  background: #3a2a22;
  transform: rotate(45deg);
}

.pips i.is-on { background: #e2b657; }

.rank-list, .plain-list { margin: 0; padding-left: 18px; }

.rank-list li, .plain-list li { margin-bottom: 6px; }

.good, .upgrade { margin-bottom: 10px; min-width: 0; }

.night {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.night > div:first-child { min-width: 0; }
.night > div:last-child { flex: none; margin-left: 8px; text-align: right; }

@media (min-width: 400px) {
  .hero-frame { height: 240px; }
  .banner { height: 188px; }
}

@media (min-width: 480px) {
  .goods-wrap, .upgrade-wrap { display: flex; flex-wrap: wrap; }
  .good, .upgrade { width: 47%; margin-right: 2%; }
}

@media (max-height: 560px) {
  .topbar { padding: 6px 10px 8px; }
  .hero-frame, .banner { height: 112px; }
  .avatar { width: 52px; height: 52px; }
  .coin { height: 52px; }
}

@media (min-width: 640px) {
  body { background-color: #050304; }
  .app {
    border-left: 1px solid rgba(226, 182, 87, 0.28);
    border-right: 1px solid rgba(226, 182, 87, 0.28);
  }
}

@media (prefers-reduced-motion: reduce) {
  .wick span { transition: none; }
}
