:root{
  --bg: #fdf6ee;
  --text: #1F1B16;
  --muted: #6D6259;
  --brand: #B86B4B;
  --brand2: #B82E2C;
  --gold: #F3DF9B;
  --vh: 1vh;
}

*{ box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html,body{ width:100%; height:100%; margin:0; padding:0; overflow:hidden; background:var(--bg); color:var(--text); overscroll-behavior:none; }
body{
  font-size: 14px;
  line-height: 1.55;
  font-family:
    "SF Pro Rounded",
    "Microsoft YaHei UI",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "PingFang SC",
    "Hiragino Sans GB",
    "Source Han Sans CN",
    "Microsoft YaHei",
    sans-serif;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img{ display:block; }
button,input,textarea{ font: inherit; }

.hidden{ display:none !important; }

/* ---------- Layout ---------- */
.container{ width:100%; height:calc(var(--vh)*100); position:relative; overflow:hidden; }
.safe{ padding:16px; }

.image-wrapper{ position:relative; width:100%; height:100%; }
.logo{ width:100%; height:100%; object-fit:cover; }

/* ---------- Common UI ---------- */
.card{
  background: rgba(255,255,255,0.96);
  border-radius: 22px;
  padding: 16px;
  border: 1px solid rgba(233,225,217,0.72);
  box-shadow: 0 2px 8px rgba(184,107,75,0.10);
}

.row{ display:flex; align-items:center; justify-content:space-between; }

.m16{ margin-top:16px; }
.m12{ margin-top:12px; }
.m8{ margin-top:8px; }

.h1{ font-size:22px; font-weight:700; }
.h2{ font-size:18px; font-weight:700; }
.p{ color:var(--muted); }

.pill{
  border-radius: 999px;
  padding: 10px 11px;
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(233,225,217,0.85);
}

.btn-primary{
  height: 46px;
  border-radius: 999px;
  background: var(--brand);
  color: #FFF1E6;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size: 18px;
  font-weight: 800;
  box-shadow: 0 2px 8px rgba(184,107,75,0.18);
  user-select: none;
}
.btn-primary:active{ transform: scale(0.985); background:#8F4F37; }

.btn-ghost{
  height: 46px;
  border-radius: 999px;
  border: 1px solid rgba(233,225,217,0.72);
  background: rgba(255,255,255,0.72);
  color: var(--text);
  display:flex;
  align-items:center;
  justify-content:center;
  user-select: none;
}
.btn-ghost:active{ transform: scale(0.985); }

.pressDown{ opacity:0.8; transform: scale(0.95); transition: all 0.07s; }
.pressable{ transition: transform 150ms ease, opacity 150ms ease; }

.breathe{ position: relative; overflow:hidden; }
.breathe::after{
  content:"";
  position:absolute;
  top:-40%;
  left:-60%;
  width:60%;
  height:180%;
  background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,0.22), rgba(255,255,255,0));
  transform: rotate(12deg);
  animation: shine 5s ease-in-out infinite;
}
@keyframes shine{
  0%{ transform: translateX(-30%) rotate(12deg); opacity:0; }
  10%{ opacity:1; }
  20%{ transform: translateX(260%) rotate(12deg); opacity:0; }
  100%{ opacity:0; }
}

/* ---------- Fit-to-viewport (no scroll) ---------- */
.fit-viewport{ position:relative; transform-origin: top left; will-change: transform; }

/* ---------- Tiny Toast ---------- */
#pw_toast{ position: fixed; left:0; right:0; top: 14px; display:flex; justify-content:center; z-index: 10000; pointer-events:none; }
#pw_toast .t{
  max-width: 86%;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(31,27,22,0.86);
  color: #fff;
  font-size: 13px;
  line-height: 18px;
}
