:root {
  --navy: #141a2b;
  --navy2: #1d2438;
  --navy3: #232a3f;
  --line: #3b4566;
  --cream: #f5f0e6;
  --cream2: #fbf8f1;
  --gold: #b8923a;
  --gold2: #d6b25e;
  --red: #c8243a;
  --ink: #2a2a2a;
  --mute: #8a8579;
  --font: 'Noto Sans TC', -apple-system, 'PingFang TC', 'Microsoft JhengHei', sans-serif;
  --safe-b: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; }
body { font-family: var(--font); color: var(--ink); background: var(--navy); min-height: 100dvh; }
button { font: inherit; cursor: pointer; border: 0; }
[hidden] { display: none !important; }

.btn { display: block; width: 100%; text-align: center; border-radius: 999px; padding: 14px 16px; font-weight: 700; font-size: 16px; text-decoration: none; }
.btn.red { background: var(--red); color: #fff; box-shadow: 0 4px 14px rgba(200, 36, 58, .35); }
.btn.red:disabled { opacity: .5; }
.btn.ghost { background: #fff; border: 1.5px solid #ddd6c6; color: var(--ink); }
.btn.grey { background: #e6e1d6; color: #555; }
.btn.outline { background: transparent; border: 1.5px solid var(--line); color: #ccd; }
.tag { font-size: 11px; letter-spacing: .18em; color: var(--gold); font-weight: 700; text-transform: uppercase; }

/* Night plane window (same look as the photo booth home screen) */
.window { position: relative; width: 200px; height: 270px; margin: 0 auto; border-radius: 100px; padding: 16px;
  background: linear-gradient(160deg, #343a48, #1b1f29);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .6), inset 0 2px 3px rgba(255, 255, 255, .08); }
.window .sky { position: relative; width: 100%; height: 100%; border-radius: 84px; overflow: hidden;
  background: linear-gradient(#0b1230, #1e2a5a 55%, #33407a); box-shadow: inset 0 0 18px rgba(0, 0, 0, .7); }
.window canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.window .glow { position: absolute; left: 62%; top: 30%; width: 80px; height: 80px; margin: -40px; border-radius: 50%;
  background: radial-gradient(rgba(255, 235, 180, .45), transparent 65%); animation: twinkle 4s ease-in-out infinite; }
.window .ray-v, .window .ray-h { position: absolute; left: 62%; top: 30%; }
.window .ray-v { width: 2px; height: 66px; margin: -33px -1px; background: linear-gradient(transparent, #fff, transparent); }
.window .ray-h { width: 56px; height: 2px; margin: -1px -28px; background: linear-gradient(90deg, transparent, #fff, transparent); }
.window .core { position: absolute; left: 62%; top: 30%; width: 8px; height: 8px; margin: -4px; border-radius: 50%; background: #fff; box-shadow: 0 0 10px 4px #ffe9b0; }
.window .cloud { position: absolute; left: -20%; right: -20%; bottom: -30px; height: 90px; border-radius: 50%;
  background: radial-gradient(rgba(170, 180, 220, .75), rgba(120, 130, 180, .2) 70%, transparent); filter: blur(6px); }
.window .shade { position: absolute; left: 0; right: 0; top: 0; height: 46px; background: linear-gradient(#3a404d, #2a2f3a); border-bottom: 2px solid #4a5060; }
.window .shade::after { content: ''; position: absolute; left: 50%; bottom: 8px; width: 26px; height: 4px; margin-left: -13px; border-radius: 2px; background: #5a6070; }
@keyframes twinkle { 50% { opacity: .65; transform: scale(.9); } }

.toast { position: fixed; left: 50%; bottom: calc(24px + var(--safe-b)); transform: translateX(-50%); background: rgba(20, 26, 43, .92); color: #fff;
  padding: 10px 18px; border-radius: 999px; font-size: 14px; z-index: 99; max-width: 90vw; text-align: center; }
.spinner { width: 34px; height: 34px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .2); border-top-color: var(--gold2); animation: spin 1s linear infinite; margin: 0 auto; }
@keyframes spin { to { transform: rotate(360deg); } }
