/* Phone screens. Layout only: every color and font comes from a skin's tokens (phone/skins/*.css).
   Geometry follows the owner-path board: a 374 x 776 page under the iPhone's own sheet bar,
   a panel inset 14 px with a gold border, wordmark at the top, one button near the bottom. */

@font-face { font-family: "Cinzel"; font-weight: 700; font-display: swap; src: url(/phone/fonts/cinzel-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Cinzel"; font-weight: 900; font-display: swap; src: url(/phone/fonts/cinzel-latin-900-normal.woff2) format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 500; font-display: swap; src: url(/phone/fonts/montserrat-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 600; font-display: swap; src: url(/phone/fonts/montserrat-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 700; font-display: swap; src: url(/phone/fonts/montserrat-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 800; font-display: swap; src: url(/phone/fonts/montserrat-latin-800-normal.woff2) format("woff2"); }

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--vm-ink);
  color: var(--vm-parchment);
  font-family: var(--vm-font-body);
  -webkit-text-size-adjust: 100%;
}

.vm-page { min-height: 100vh; min-height: 100dvh; padding: 14px; display: flex; }

.vm-panel {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 2px solid var(--vm-gold);
  border-radius: 20px;
  background-color: var(--vm-field);
  background-image: var(--vm-field-pattern);
  padding: 36px 18px 26px;
}
/* inner hairline, 8 px inside the gold border */
.vm-panel::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid var(--vm-gold-dim);
  border-radius: 14px;
  pointer-events: none;
}

.vm-wordmark { font-size: 16px; font-weight: 800; letter-spacing: 0.32em; padding-left: 0.32em; color: var(--vm-gold); }
.vm-sub { margin-top: 12px; font-size: 16px; font-weight: 500; }

.vm-divider { display: block; width: 120px; height: 16px; flex: none; margin-top: 22px; }
.vm-divider path { stroke: var(--vm-gold); fill: var(--vm-gold); }
.vm-divider.quiet path { stroke: var(--vm-gold-dim); fill: var(--vm-gold-dim); }
.vm-divider.bottom { margin-top: 34px; }

.vm-body { flex: 1; width: 100%; display: flex; flex-direction: column; align-items: center; }

.vm-title {
  margin: 0;
  font-family: var(--vm-font-title);
  font-weight: var(--vm-title-weight);
  font-size: 34px;
  line-height: 44px;
  text-align: center;
  max-width: 294px;
}
.vm-title.heavy { font-weight: var(--vm-title-weight-heavy); font-size: 40px; line-height: 56px; }
.vm-title.small { font-size: 30px; line-height: 46px; }

.vm-line { margin: 22px 0 0; max-width: 294px; text-align: center; font-size: 20px; line-height: 30px; font-weight: 500; }

.vm-card {
  margin-top: 64px;
  width: 100%;
  max-width: 310px;
  padding: 18px 0;
  border: 1px solid var(--vm-gold);
  border-radius: 20px;
  text-align: center;
  font-size: 18px;
  line-height: 30px;
  font-weight: 600;
}

.vm-rows { width: 100%; max-width: 310px; display: flex; flex-direction: column; gap: 12px; margin-top: 36px; }
.vm-row {
  height: 62px;
  padding: 0 20px;
  border: 1px solid var(--vm-gold-dim);
  border-radius: 14px;
  background: var(--vm-row);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 18px;
  font-weight: 600;
  color: var(--vm-parchment);
  text-decoration: none;
}
.vm-row .value { color: var(--vm-gold); }

.vm-form { width: 100%; max-width: 310px; margin: 0; }
.vm-button {
  width: 100%;
  height: 64px;
  border: 2px solid var(--vm-gold);
  border-radius: 32px;
  background: var(--vm-velvet);
  color: var(--vm-parchment);
  font-family: var(--vm-font-body);
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.vm-button:active { filter: brightness(1.15); }

/* vertical rhythm per screen, matched to the board */
.vm-screen-make .vm-title { margin-top: 102px; }
.vm-screen-yours .vm-title { margin-top: 104px; }
.vm-screen-show .vm-title { margin-top: 38px; }
.vm-screen-show .vm-rows { margin-top: 46px; }
.vm-screen-taken .vm-title { margin-top: 198px; }
.vm-screen-closed .vm-title { margin-top: 198px; }

/* The printed quick-start card: parchment, ink in the skin's field color, gold rule. Matches step 0 of the board. */
body.vm-print { background: #fff; color: var(--vm-field); }
.vm-printcard {
  width: 390px; min-height: 844px; margin: 24px auto; padding: 48px 32px 40px;
  background: var(--vm-parchment); border: 2px solid var(--vm-gold-dim); border-radius: 28px;
  display: flex; flex-direction: column;
}
.vm-printart { width: 100%; height: auto; }
.vm-printart .ink { fill: none; stroke: var(--vm-field); stroke-width: 3; stroke-linejoin: round; }
.vm-printart .ground { stroke: var(--vm-gold-dim); stroke-width: 3; }
.vm-printart .box { fill: var(--vm-ink); }
.vm-printart .lens { fill: var(--vm-gold); }
.vm-printart .beam { fill: none; stroke: var(--vm-velvet); stroke-width: 3; stroke-dasharray: 7 7; stroke-linecap: round; }
.vm-printart .beam.solid { stroke-dasharray: none; stroke-linejoin: round; }
.vm-printtitle { margin: 40px 0 0; font-family: var(--vm-font-title); font-weight: var(--vm-title-weight-heavy); font-size: 34px; line-height: 46px; }
.vm-printscan { margin-top: 56px; display: flex; align-items: center; gap: 18px; }
.vm-printscan p { margin: 0; font-size: 20px; line-height: 28px; font-weight: 600; }
.vm-qr {
  flex: none; width: 92px; height: 92px; display: flex; align-items: center; justify-content: center;
  background: #fff; border: 3px solid var(--vm-gold); border-radius: 10px;
  color: var(--vm-gold-dim); font-weight: 800; letter-spacing: 0.1em; font-size: 14px;
}
.vm-printid { margin-top: auto; padding-top: 32px; font-size: 14px; font-weight: 600; letter-spacing: 0.2em; color: var(--vm-gold-dim); }
.vm-qr.real { padding: 6px; }
.vm-qr.real svg { width: 100%; height: 100%; display: block; }
.vm-screen-back .vm-title { margin-top: 102px; }
.vm-seen { position: absolute; left: 0; top: 0; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

/* Home Wi-Fi (P2c): two fields, the button, a quiet hint, and the full-screen code. */
.vm-screen-wifi .vm-title { margin-top: 40px; }
.vm-screen-wifi .vm-line { margin-top: 14px; }
.vm-wifiform { margin-top: 34px; display: flex; flex-direction: column; gap: 14px; }
.vm-field {
  width: 100%; height: 56px; padding: 0 18px;
  border: 1px solid var(--vm-gold-dim); border-radius: 14px; background: var(--vm-row);
  color: var(--vm-parchment); font-family: var(--vm-font-body); font-size: 18px; font-weight: 600;
  -webkit-appearance: none; appearance: none; outline: none;
}
.vm-field::placeholder { color: var(--vm-gold-dim); opacity: 1; }
.vm-field:focus { border-color: var(--vm-gold); }
.vm-wifiform .vm-button { margin-top: 10px; }
.vm-hint {
  margin-top: 26px; max-width: 300px; padding: 6px; border: 0; background: none;
  color: var(--vm-gold); font-family: var(--vm-font-body); font-size: 15px; font-weight: 600; line-height: 22px;
  text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}
.vm-how { margin: 6px 0 0; max-width: 300px; text-align: center; font-size: 15px; line-height: 22px; font-weight: 600; }
.vm-qrfull {
  position: fixed; inset: 0; z-index: 10; background: #fff;
  display: flex; align-items: center; justify-content: center;
}
.vm-qrfull[hidden] { display: none; }
.vm-qrfull svg { width: 100vmin; height: 100vmin; display: block; }
