/* ==========================================================================
   Shop Quest — low-poly walk-around roleplay of a Japanese phone-shop visit.
   Full-screen overlay launched from the home page.
   ========================================================================== */

.sq-overlay {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal, 1000);
  display: flex;
  justify-content: center;
  background: #07101d;
  background-image:
    radial-gradient(circle at 50% 35%, #24476b66 0%, transparent 45%),
    linear-gradient(145deg, #0c1729, #050912 70%);
  overscroll-behavior: contain;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  overflow: hidden;
}

.sq-stage {
  position: relative;
  width: 100%;
  max-width: none;
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  contain: layout paint;
}

.sq-canvas {
  position: absolute;
  inset: 0;
  flex: none;
  min-width: 0;
  min-height: 0;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  display: block;
  image-rendering: auto;
  background: #101b2e;
  touch-action: none;
}

/* Keep the camera viewport landscape on desktop, with its size determined by
   the viewport rather than the canvas drawing buffer's intrinsic dimensions. */
@media (min-width: 760px) and (pointer: fine) {
  .sq-overlay { align-items: center; }
  .sq-stage {
    width: min(100%, 1920px);
    height: 100vh;
    height: 100dvh;
  }
  .sq-goal { top: 64px; max-width: 440px; }
  .sq-goal__t { font-size: 13px; }
}

/* ---- top bar ------------------------------------------------------ */
.sq-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  padding: calc(env(safe-area-inset-top) + 8px) 10px 8px;
  font-family: var(--font-pixel, "Courier New", monospace);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: #f4e9c9;
  text-transform: uppercase;
  background: linear-gradient(#000000cc, #00000000);
  pointer-events: none;
  z-index: 3;
}

.sq-bar__title {
  display: flex;
  align-items: center;
  gap: 6px;
  opacity: 0.9;
}

.sq-bar__title b {
  color: #e8b04b;
  font-weight: 700;
}

.sq-bar__ctrl {
  display: flex;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}

.sq-x,
.sq-snd,
.sq-view {
  pointer-events: auto;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 2px solid #f4e9c980;
  border-radius: 6px;
  color: #f4e9c9;
  background: #00000055;
  font-size: 15px;
  line-height: 1;
}

.sq-view {
  width: auto;
  min-width: 40px;
  padding: 0 8px;
  font-family: var(--font-pixel, "Courier New", monospace);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.sq-snd[data-mode="0"] { color: #f4e9c980; }
.sq-view[data-mode="fps"] { background: #e8b04b; color: #1b1a17; border-color: #e8b04b; }

.sq-x:active,
.sq-snd:active,
.sq-view:active {
  background: #ffffff22;
}

/* ---- title-card music selector ------------------------------- */
.sq-audio {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin: 4px 0 2px;
}

.sq-audio__label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #9fb2cf;
  margin-right: 4px;
}

.sq-audio__b {
  font-family: var(--font-pixel, "Courier New", monospace);
  font-size: 12px;
  font-weight: 700;
  min-width: 40px;
  padding: 6px 8px;
  border: 2px solid #1b1a17;
  border-radius: 3px;
  background: #22304d;
  color: #dfe6f2;
  box-shadow: 0 2px 0 #00000066;
}

.sq-audio__b[aria-pressed="true"] {
  background: #e8b04b;
  color: #1b1a17;
}

.sq-audio__b:active { transform: translateY(2px); box-shadow: 0 0 0 #00000066; }

/* ---- persistent objective panel ------------------------------- */
.sq-goal {
  position: absolute;
  top: calc(env(safe-area-inset-top) + 42px);
  left: 8px;
  right: 8px;
  z-index: 3;
  pointer-events: none;
  font-family: var(--font-pixel, "Courier New", monospace);
  background: #12161fdd;
  border: 2px solid #f4e9c94d;
  border-radius: 6px;
  padding: 6px 9px 7px;
  max-width: 380px;
  margin: 0 auto;
}

.sq-goal__row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 3px;
}

.sq-goal__k {
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #e8b04b;
}

.sq-goal__dots {
  display: flex;
  gap: 4px;
  margin-left: auto;
}

.sq-goal__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ffffff26;
  border: 1px solid #ffffff33;
}

.sq-goal__dot[data-s="done"] { background: #6f9457; border-color: #6f9457; }
.sq-goal__dot[data-s="now"] {
  background: #e8b04b;
  border-color: #e8b04b;
  box-shadow: 0 0 0 2px #e8b04b40;
}

.sq-goal__t {
  font-size: 12px;
  line-height: 1.35;
  color: #f4e9c9;
}

.sq-goal__scen {
  margin-top: 5px;
  padding-top: 5px;
  border-top: 1px solid #ffffff1f;
  font-size: 10.5px;
  line-height: 1.35;
  color: #ffd257;
}
.sq-goal__scen[hidden] { display: none; }

/* ---- challenge scenario picker + result --------------------- */
.sq-card--scen { justify-content: flex-start; gap: 10px; }
.sq-scen__list {
  width: 100%;
  max-width: 460px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  overflow-y: auto;
  max-height: 56vh;
}
.sq-scen__item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  text-align: left;
  padding: 9px 11px;
  border: 2px solid #ffffff26;
  border-radius: 8px;
  background: #ffffff0d;
  color: #f4e9c9;
  font: inherit;
}
.sq-scen__item:hover,
.sq-scen__item:focus-visible { border-color: #e8b04b; background: #e8b04b1f; }
.sq-scen__n {
  flex: 0 0 auto;
  width: 22px; height: 22px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: #e8b04b;
  color: #1b1a17;
  font-weight: 700;
  font-size: 12px;
}
.sq-scen__item b { display: block; font-size: 13px; color: #fff; }
.sq-scen__item small { display: block; font-size: 11px; color: #b9c6da; margin-top: 2px; line-height: 1.4; }

.sq-scen__result {
  width: 100%;
  max-width: 340px;
  padding: 8px 12px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 13px;
  text-align: center;
}
.sq-scen__result small { display: block; font-weight: 400; font-size: 11px; margin-top: 3px; opacity: 0.9; }
.sq-scen__result.is-win { background: #2f6d4a; color: #d8f7e2; }
.sq-scen__result.is-lose { background: #7a3b34; color: #f6ddd7; }

/* ---- now-serving number monitor ------------------------------ */
.sq-monitor {
  position: absolute;
  top: calc(env(safe-area-inset-top) + 40px);
  left: 8px;
  right: 8px;
  margin: 0 auto;
  max-width: 300px;
  z-index: 3;
  pointer-events: none;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 2px 10px;
  padding: 7px 12px 8px;
  font-family: var(--font-pixel, "Courier New", monospace);
  color: #ffd873;
  background: #0b1220f2;
  border: 2px solid #ffd87355;
  border-radius: 6px;
  box-shadow: 0 0 18px #ffb62422, inset 0 0 0 1px #0007;
}

.sq-monitor[hidden] { display: none; }

.sq-monitor__k {
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #ffd87399;
}

.sq-monitor__now {
  grid-row: 1 / 3;
  grid-column: 2;
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.04em;
  color: #ffe9a8;
  text-shadow: 0 0 10px #ffb62488;
  font-variant-numeric: tabular-nums;
}

.sq-monitor__me { font-size: 10px; color: #cfe0ff; }
.sq-monitor__me b { color: #fff; }

.sq-monitor__ahead {
  grid-column: 1;
  font-size: 11px;
  color: #ffd873;
}

.sq-monitor.is-soon {
  border-color: #7ee081;
  color: #b9f5bb;
  animation: sq-mon-flash 900ms steps(1) infinite;
}

.sq-monitor.is-soon .sq-monitor__now { color: #cafccb; text-shadow: 0 0 12px #6de77188; }

@keyframes sq-mon-flash { 50% { border-color: #7ee08144; } }

/* push the objective panel down while the monitor is on screen */
.sq-monitor:not([hidden]) ~ .sq-goal { top: calc(env(safe-area-inset-top) + 118px); }

@media (min-width: 760px) and (pointer: fine) {
  .sq-monitor { top: 44px; }
  .sq-monitor:not([hidden]) ~ .sq-goal { top: 128px; }
}

@media (prefers-reduced-motion: reduce) {
  .sq-monitor.is-soon { animation: none; }
}

/* ---- on-screen controls ---------------------------------------- */
.sq-controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 14px calc(14px + env(safe-area-inset-right)) calc(16px + env(safe-area-inset-bottom)) calc(14px + env(safe-area-inset-left));
  pointer-events: none;
  z-index: 3;
}

.sq-dpad {
  position: relative;
  width: 132px;
  height: 132px;
  pointer-events: auto;
}

.sq-dpad button {
  position: absolute;
  width: 44px;
  height: 44px;
  background: #efe6c8;
  border: 2px solid #1b1a17;
  color: #1b1a17;
  box-shadow: 0 3px 0 #00000066;
  display: grid;
  place-items: center;
  font-size: 16px;
  touch-action: none;
}

.sq-dpad button:active,
.sq-dpad button[data-held="1"] {
  background: #e8b04b;
  transform: translateY(2px);
  box-shadow: 0 1px 0 #00000066;
}

.sq-dpad [data-dir="up"]    { top: 0;    left: 44px; border-radius: 8px 8px 0 0; }
.sq-dpad [data-dir="down"]  { bottom: 0; left: 44px; border-radius: 0 0 8px 8px; }
.sq-dpad [data-dir="left"]  { left: 0;   top: 44px;  border-radius: 8px 0 0 8px; }
.sq-dpad [data-dir="right"] { right: 0;  top: 44px;  border-radius: 0 8px 8px 0; }
.sq-dpad::after {
  content: "";
  position: absolute;
  left: 44px;
  top: 44px;
  width: 44px;
  height: 44px;
  background: #efe6c8;
  border: 2px solid #1b1a17;
}

.sq-ab {
  display: flex;
  align-items: center;
  gap: 12px;
  pointer-events: auto;
}

.sq-btn {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 3px solid #1b1a17;
  background: #ac3a2b;
  color: #fff;
  font-family: var(--font-pixel, monospace);
  font-size: 18px;
  font-weight: 700;
  box-shadow: 0 4px 0 #00000066;
}

.sq-btn--b {
  width: 46px;
  height: 46px;
  background: #22304d;
  font-size: 15px;
}

.sq-btn:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 #00000066;
}

/* ---- dialogue window (drawn in the DOM over the canvas) --------- */
.sq-dialog {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: calc(14px + env(safe-area-inset-bottom));
  z-index: 4;
  background: #f7f1e2;
  border: 3px solid #1b1a17;
  border-radius: 4px;
  box-shadow: 0 0 0 3px #f7f1e2, 0 8px 0 #00000055, inset 0 0 0 2px #cfc4a3;
  padding: 12px 13px 14px;
  font-family: var(--font-pixel, "Courier New", monospace);
  color: #1b1a17;
  line-height: 1.5;
  animation: sq-pop 120ms ease-out;
  max-height: calc(100% - 132px - env(safe-area-inset-top));
  overflow-y: auto;
  overscroll-behavior: contain;
  touch-action: pan-y;
  scrollbar-width: thin;
}

@keyframes sq-pop {
  from { transform: translateY(6px) scale(0.98); opacity: 0; }
  to   { transform: none; opacity: 1; }
}

.sq-dialog__who {
  display: inline-block;
  margin-bottom: 6px;
  padding: 2px 8px;
  background: #22304d;
  color: #f7f1e2;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 3px;
}

.sq-dialog__who--staff  { background: #22304d; }
.sq-dialog__who--you    { background: #ac3a2b; }
.sq-dialog__who--system { background: #55514a; }
.sq-dialog__who--sign   { background: #8a6d2f; }
.sq-dialog__who--visitor { background: #486b69; }

.sq-dialog__illus {
  display: block;
  width: 150px;
  max-width: 58%;
  height: auto;
  float: right;
  margin: 1px 0 6px 11px;
  border: 2px solid #1b1a17;
  border-radius: 4px;
  background: #f4efe0;
}

/* A real game asset is used for the store/catalogue moment rather than a
   placeholder. Keep it compact enough that choices remain visible on phones. */
.sq-dialog__illus--scene {
  float: none;
  width: 100%;
  max-width: none;
  height: 128px;
  object-fit: cover;
  object-position: center;
  margin: 0 0 9px;
  border-radius: 6px;
}

.sq-dialog__text {
  font-size: 14px;
  min-height: 2.9em;
  white-space: pre-wrap;
}

.sq-dialog::after { content: ""; display: block; clear: both; }

.sq-dialog__text b { color: #97312a; }

.sq-dialog__more {
  text-align: right;
  font-size: 12px;
  color: #97312a;
  animation: sq-blink 900ms steps(1) infinite;
}

@keyframes sq-blink { 50% { opacity: 0; } }

.sq-choices {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sq-choices li {
  padding: 7px 10px 7px 26px;
  position: relative;
  font-size: 13.5px;
  border: 2px solid transparent;
  border-radius: 3px;
  cursor: pointer;
}

.sq-choices li[aria-selected="true"] {
  border-color: #1b1a17;
  background: #ffe9b8;
}

.sq-choices li[aria-selected="true"]::before {
  content: "\25B6";
  position: absolute;
  left: 8px;
  color: #97312a;
}

.sq-choices li small {
  display: block;
  font-size: 11px;
  color: #6b6552;
  margin-top: 2px;
}

/* ---- title / ending cards ------------------------------------- */
.sq-card {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 28px 22px calc(28px + env(safe-area-inset-bottom));
  text-align: center;
  font-family: var(--font-pixel, "Courier New", monospace);
  color: #f4e9c9;
  background:
    repeating-linear-gradient(0deg, #00000000 0 3px, #00000022 3px 4px),
    linear-gradient(180deg, #1a2740, #0d0c0b);
  overflow-y: auto;
}

.sq-card h2 {
  font-family: inherit;
  font-size: 20px;
  letter-spacing: 0.04em;
  color: #e8b04b;
  text-shadow: 0 2px 0 #000;
}

.sq-card p {
  font-size: 13px;
  line-height: 1.6;
  max-width: 34ch;
  color: #efe6c8;
}

.sq-card__tag {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #9fb2cf;
}

.sq-card__scene {
  display: block;
  width: min(100%, 360px);
  height: 132px;
  object-fit: cover;
  object-position: center;
  border: 2px solid #9bc5ef8a;
  border-radius: 9px;
  box-shadow: 0 10px 22px #0008;
}

.sq-card__rows {
  width: 100%;
  max-width: 320px;
  font-size: 12px;
  text-align: left;
  border-top: 2px solid #ffffff22;
}

.sq-card__rows div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 2px;
  border-bottom: 2px solid #ffffff14;
}

.sq-card__rows b { color: #fff; }

.sq-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  border: 3px solid #1b1a17;
  border-radius: 4px;
  background: #e8b04b;
  color: #1b1a17;
  font-family: inherit;
  font-weight: 700;
  font-size: 13px;
  box-shadow: 0 4px 0 #00000066;
}

.sq-cta--ghost {
  background: #22304d;
  color: #f4e9c9;
}

.sq-cta:active { transform: translateY(3px); box-shadow: 0 1px 0 #00000066; }

.sq-card__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.sq-card__links a {
  font-size: 12px;
  color: #9fd0ff;
  text-decoration: underline;
}

.sq-card__cta2 {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
}

/* ---- 来店予約 smartphone mock-up ----------------------------- */
.sq-card--phone {
  padding: 18px 12px calc(18px + env(safe-area-inset-bottom));
  justify-content: flex-start;
}

.sq-ph {
  width: 100%;
  max-width: 330px;
  margin: auto;
  display: flex;
  flex-direction: column;
  max-height: 100%;
  background: #f4f6fb;
  color: #14202e;
  border: 3px solid #05060a;
  border-radius: 22px;
  box-shadow: 0 0 0 3px #2a3550, 0 18px 40px #000a;
  overflow: hidden;
  font-family: -apple-system, "Segoe UI", system-ui, sans-serif;
}

.sq-ph, .sq-ph p, .sq-ph b, .sq-ph dd { color: #14202e; }
.sq-ph p { max-width: none; font-size: 12px; line-height: 1.5; }

.sq-ph__bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 14px;
  font-size: 10px;
  letter-spacing: 0.03em;
  color: #fff;
  background: #1b2942;
}

.sq-ph__head {
  padding: 14px 16px 10px;
  border-bottom: 1px solid #dde3ee;
}

.sq-ph__head b {
  display: block;
  font-size: 16px;
  font-weight: 700;
}

.sq-ph__head span {
  font-size: 11px;
  color: #5f6b7e;
}

.sq-ph__scroll {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
}

.sq-ph__row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sq-ph__chip {
  appearance: none;
  font: inherit;
  font-size: 13px;
  text-align: left;
  padding: 11px 13px;
  border: 2px solid #c6cede;
  border-radius: 10px;
  background: #fff;
  color: #14202e;
  flex: 1 1 auto;
}

.sq-ph__row .sq-ph__chip {
  flex: 0 1 auto;
  min-width: 68px;
  text-align: center;
}

.sq-ph__chip[aria-pressed="true"] {
  border-color: #1f6feb;
  background: #e7f0ff;
  box-shadow: inset 0 0 0 1px #1f6feb;
  font-weight: 700;
}

.sq-ph__chip:disabled {
  opacity: 0.4;
  text-decoration: line-through;
}

.sq-card--phone .sq-ph__note,
.sq-ph__note {
  font-size: 11px;
  line-height: 1.5;
  color: #5f6b7e;
  max-width: none;
  margin: 4px 0 0;
}

.sq-ph__nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 10px 14px calc(12px + env(safe-area-inset-bottom));
  border-top: 1px solid #dde3ee;
  background: #eef1f7;
}

.sq-ph__btn {
  appearance: none;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: 9px;
  border: 2px solid #c6cede;
  background: #fff;
  color: #14202e;
}

.sq-ph__btn--go {
  background: #1f6feb;
  border-color: #1f6feb;
  color: #fff;
}

.sq-ph__btn:disabled { opacity: 0.45; }

.sq-ph__done dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 12px;
  font-size: 13px;
  margin: 10px 0;
}

.sq-ph__done dt { color: #5f6b7e; }
.sq-ph__done dd { font-weight: 700; }

.sq-ph__qr {
  width: 96px;
  height: 96px;
  margin: 4px auto 8px;
  background:
    linear-gradient(90deg, #05060a 40%, #0000 0) 0 0 / 12px 12px,
    linear-gradient(#05060a 40%, #0000 0) 0 0 / 12px 12px,
    #fff;
  border: 6px solid #fff;
  box-shadow: 0 0 0 2px #05060a;
}

/* Store-appointment phone: built like an actual service booking app rather
   than a set of generic game choices. */
.sq-reserve { background: #f6f8fb; }
.sq-reserve__brand { display: flex; align-items: center; gap: 7px; padding: 10px 15px 7px; background: #fff; color: #153654; border-bottom: 1px solid #e1e7ef; }
.sq-reserve__brand b { font-size: 12px; letter-spacing: .08em; }
.sq-reserve__brand small { margin-left: auto; color: #6a778a; font-size: 10px; }
.sq-reserve__logo { display: grid; place-items: center; width: 21px; height: 21px; border-radius: 7px; background: linear-gradient(145deg,#1e7896,#234f80); color: #fff; font: 800 13px/1 system-ui; }
.sq-reserve__progress { height: 4px; background: #dbe4ee; }
.sq-reserve__progress i { display: block; height: 100%; background: linear-gradient(90deg,#167e87,#2d74b8); transition: width .18s ease; }
.sq-reserve__lead { padding: 0 1px; color: #526176 !important; }
.sq-reserve__choice { display: flex; align-items: center; gap: 11px; width: 100%; min-height: 64px; padding: 10px 11px; text-align: left; border: 1px solid #d4dde8; border-radius: 10px; background: #fff; color: #162a42; cursor: pointer; box-shadow: 0 1px 2px #1e35520a; }
.sq-reserve__choice + .sq-reserve__choice { margin-top: 7px; }
.sq-reserve__choice.is-selected { border: 2px solid #167e87; padding: 9px 10px; background: #effaf8; box-shadow: 0 0 0 2px #167e8718; }
.sq-reserve__choice b, .sq-reserve__choice small { display: block; }
.sq-reserve__choice b { font-size: 13px; }
.sq-reserve__choice small { margin-top: 3px; font-size: 10.5px; line-height: 1.35; color: #617086; }
.sq-reserve__choice i { margin-left: auto; font-size: 20px; font-style: normal; color: #8190a5; }
.sq-reserve__pin { flex: 0 0 13px; width: 13px; height: 13px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: #2b7a99; box-shadow: inset 0 0 0 4px #e9f8fb; }
.sq-reserve__calendar { display: flex; justify-content: space-between; align-items: baseline; padding: 8px 3px 6px; color: #1b3552; }
.sq-reserve__calendar b { font-size: 14px; }
.sq-reserve__calendar span { font-size: 10px; color: #6f7b8c; }
.sq-reserve__dates .sq-ph__chip { min-width: 54px; padding: 12px 8px; }
.sq-reserve__slots .sq-ph__chip { min-width: 78px; }

/* ---- staff counter tablet (ID scan · form check · contract · signature) ---- */
.sq-card--tablet {
  padding: 16px 12px calc(16px + env(safe-area-inset-bottom));
  justify-content: center;
}
.sq-tablet {
  position: relative;
  width: 100%;
  max-width: 560px;
  margin: auto;
  background: #10151d;
  border-radius: 20px;
  padding: 14px 14px 14px 34px;
  box-shadow: 0 0 0 2px #2b3550, 0 22px 50px #000b;
}
.sq-tablet__cam {
  position: absolute;
  left: 16px; top: 50%;
  width: 7px; height: 7px;
  margin-top: -3.5px;
  border-radius: 50%;
  background: #38445c;
  box-shadow: 0 0 0 2px #1c2434;
}
.sq-tablet__cam i { display: block; width: 2px; height: 2px; margin: 2.5px; border-radius: 50%; background: #6d95b4; }
.sq-tablet__screen {
  display: flex;
  flex-direction: column;
  max-height: min(78vh, 560px);
  background: #f5f7fb;
  border-radius: 8px;
  overflow: hidden;
  font-family: -apple-system, "Segoe UI", system-ui, sans-serif;
}
.sq-tablet__screen, .sq-tablet__screen b, .sq-tablet__screen span, .sq-tablet__screen p { color: #16202e; }
.sq-tablet__hd {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 15px;
  font-size: 11px;
  letter-spacing: 0.02em;
  color: #eef2f8;
  background: #1c2942;
}
.sq-tablet__hd b { color: #fff; }
.sq-tablet__hd em { color: #8de0a8; font-style: normal; font-size: 9px; }
.sq-tablet__brand { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }
.sq-tablet__brand i { display: grid; place-items: center; width: 16px; height: 16px; border-radius: 5px; color: #fff; background: linear-gradient(145deg,#4696a2,#264d7b); font: 800 10px/1 system-ui; }
.sq-tablet__crumb { display: flex; justify-content: space-between; padding: 6px 16px; font-size: 10px; color: #69778a; background: #e9eef5; border-bottom: 1px solid #dfe5ee; }
.sq-tablet__crumb b { font-weight: 600; color: #446a78; }
.sq-tablet__title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 9px;
  padding: 11px 16px 9px;
  border-bottom: 1px solid #e2e6ee;
}
.sq-tablet__title b { display: block; font-size: 15px; font-weight: 700; }
.sq-tablet__title span { font-size: 11px; color: #6a768a; }
.sq-tablet__case { flex: 0 0 auto; padding: 4px 6px; border-radius: 4px; background: #e8f2ef; color: #336a58; font: 700 9px/1 ui-monospace, monospace; font-style: normal; }
.sq-tablet__bd {
  padding: 13px 16px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.sq-tablet__note {
  font-size: 12px;
  line-height: 1.55;
  color: #45506180;
  color: #4a5568;
  margin: 0 0 11px;
}
.sq-tablet__ft {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 14px;
  border-top: 1px solid #e2e6ee;
  background: #eef1f7;
}
.sq-tablet__ft > div { display: flex; flex: 1 1 auto; justify-content: flex-end; gap: 9px; }
.sq-tablet__privacy { max-width: 150px; font-size: 9px; line-height: 1.3; color: #69778a; }
.sq-tablet__btn {
  flex: 1;
  padding: 11px 12px;
  border: 1px solid #c2cad8;
  border-radius: 9px;
  background: #fff;
  color: #2a3550;
  font: 700 12.5px/1 -apple-system, system-ui, sans-serif;
  cursor: pointer;
}
.sq-tablet__btn--go {
  border-color: #1f6f4a;
  background: #23794f;
  color: #fff;
}
.sq-tablet__btn:disabled { opacity: 0.42; cursor: default; }

/* Floor-standing reception terminal. The bevel, receipt slot and LED are
   intentionally visible so it reads as a kiosk within the shop. */
.sq-card--kiosk { padding: 14px 12px calc(14px + env(safe-area-inset-bottom)); justify-content: center; }
.sq-kiosk { width: min(100%, 510px); margin: auto; padding: 12px 12px 0; border: 8px solid #37414b; border-radius: 19px 19px 11px 11px; background: linear-gradient(145deg,#46515b,#202a33 48%,#121b22); box-shadow: 0 1px #7c8991 inset, 0 0 0 2px #111923, 0 28px 62px #000b; font-family: -apple-system, "Segoe UI", system-ui, sans-serif; }
.sq-kiosk__bezel { display: flex; align-items: center; gap: 7px; padding: 2px 4px 9px; color: #d4dde2; font: 700 10px/1 ui-monospace, monospace; letter-spacing: .1em; }
.sq-kiosk__bezel small { margin-left: auto; color: #9eabb3; letter-spacing: 0; }
.sq-kiosk__led { width: 6px; height: 6px; border-radius: 50%; background: #74e49c; box-shadow: 0 0 7px #74e49c; }
.sq-kiosk__screen { overflow: hidden; border: 2px solid #111a22; border-radius: 7px; background: #f3f7f9; color: #182b3d; box-shadow: 0 0 0 1px #60717c inset; }
.sq-kiosk__screen header { display: flex; align-items: center; gap: 9px; padding: 11px 14px; color: #fff; background: linear-gradient(115deg,#164d61,#1f2f55); }
.sq-kiosk__screen header b, .sq-kiosk__screen header small { display: block; }
.sq-kiosk__screen header b { font-size: 14px; }
.sq-kiosk__screen header small { margin-top: 2px; font-size: 10px; color: #d6e4e8; }
.sq-kiosk__mark { display: grid; place-items: center; flex: 0 0 auto; width: 25px; height: 25px; border-radius: 8px; border: 1px solid #9fc9ce88; background: #ffffff18; color: #dff6e3; font-weight: 800; }
.sq-kiosk__lang { margin-left: auto; font-size: 9px; color: #d8e5ea; white-space: nowrap; }
.sq-kiosk__screen main { min-height: 300px; padding: 15px; }
.sq-kiosk__screen footer { display: flex; justify-content: space-between; gap: 10px; padding: 11px 14px; border-top: 1px solid #d5dfe3; background: #e8eef1; }
.sq-kiosk__hero { margin-bottom: 12px; padding: 13px; border-left: 4px solid #1a9a8b; background: #e9f5f2; }
.sq-kiosk__hero b { font-size: 15px; }
.sq-kiosk__hero p, .sq-kiosk__notice { margin: 5px 0 0; font-size: 11px; line-height: 1.45; color: #536878; }
.sq-kiosk__tiles { display: grid; gap: 9px; }
.sq-kiosk__tiles--purpose { grid-template-columns: repeat(2,minmax(0,1fr)); }
.sq-kiosk__tile { display: flex; align-items: flex-start; gap: 8px; min-height: 62px; padding: 10px; border: 1px solid #c6d3da; border-radius: 7px; background: #fff; color: #1a2f42; text-align: left; cursor: pointer; box-shadow: 0 1px 2px #1d394011; }
.sq-kiosk__tile:hover, .sq-kiosk__tile.is-selected { border-color: #147d80; background: #ecf8f6; box-shadow: 0 0 0 2px #1689861a; }
.sq-kiosk__tile i { flex: 0 0 8px; width: 8px; height: 8px; margin-top: 4px; border-radius: 50%; background: #3a8893; box-shadow: 0 0 0 3px #dceef0; }
.sq-kiosk__tile b, .sq-kiosk__tile small { display: block; }
.sq-kiosk__tile b { font-size: 12px; line-height: 1.25; }
.sq-kiosk__tile small { margin-top: 4px; font-size: 10px; line-height: 1.35; color: #617383; }
.sq-kiosk__secondary, .sq-kiosk__primary { appearance: none; border-radius: 6px; padding: 10px 13px; border: 1px solid #aebec7; background: #fff; color: #30495a; font: 700 12px/1 -apple-system, system-ui, sans-serif; cursor: pointer; }
.sq-kiosk__primary { margin-left: auto; min-width: 154px; border-color: #147d80; background: linear-gradient(135deg,#187b83,#21628c); color: #fff; box-shadow: inset 0 1px #ffffff30; }
.sq-kiosk__primary:disabled { opacity: .45; cursor: default; }
.sq-kiosk__lower { display: flex; justify-content: space-between; align-items: center; min-height: 41px; padding: 0 7px; color: #bec9ce; font-size: 9px; }
.sq-kiosk__lower b { padding: 7px 12px; border-radius: 5px 5px 0 0; background: #121a20; color: #eff5f3; font-size: 10px; }
.sq-kiosk__qrrow { display: grid; grid-template-columns: 108px 1fr; gap: 16px; align-items: center; padding: 13px; border: 1px solid #ccd8de; border-radius: 8px; background: #fff; }
.sq-kiosk__qr { width: 92px; height: 92px; background: repeating-linear-gradient(90deg,#162b38 0 7px,transparent 7px 13px),repeating-linear-gradient(#162b38 0 6px,transparent 6px 11px),#fff; border: 7px solid #f3f8f7; box-shadow: 0 0 0 1px #50616c; }
.sq-kiosk__qrrow b { font-size: 14px; }
.sq-kiosk__qrrow dl, .sq-kiosk__ticket dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 8px 0; font-size: 11px; }
.sq-kiosk__qrrow dt, .sq-kiosk__ticket dt { color: #657788; }
.sq-kiosk__qrrow dd, .sq-kiosk__ticket dd { margin: 0; font-weight: 700; }
.sq-kiosk__ticket { display: grid; grid-template-columns: minmax(130px,.8fr) 1fr; gap: 14px; padding: 13px; border: 1px dashed #6f8991; background: #fff; }
.sq-kiosk__ticket > div { padding: 9px; text-align: center; border-right: 1px dashed #c5d1d5; }
.sq-kiosk__ticket span, .sq-kiosk__ticket small { display: block; font-size: 10px; color: #627587; }
.sq-kiosk__ticket b { display: block; margin: 2px 0; color: #194e68; font: 800 50px/.95 ui-monospace, monospace; letter-spacing: -.08em; }
@media (max-width: 420px) { .sq-kiosk__tiles--purpose { grid-template-columns: 1fr; } .sq-kiosk__ticket { grid-template-columns: 1fr; } .sq-kiosk__ticket > div { border-right: 0; border-bottom: 1px dashed #c5d1d5; } .sq-kiosk__qrrow { grid-template-columns: 82px 1fr; gap: 10px; } .sq-kiosk__qr { width: 70px; height: 70px; } }

/* detail / form rows with a marker-sweep highlight */
.sq-tab-list, .sq-tab-form { display: flex; flex-direction: column; gap: 2px; }
.sq-tab-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 8px 9px;
  border-radius: 7px;
  font-size: 12.5px;
  transition: background 140ms, box-shadow 140ms;
}
.sq-tab-row > span { flex: 0 0 34%; color: #66728a; font-size: 11.5px; }
.sq-tab-row > b { flex: 1; font-weight: 700; }
.sq-tab-row > i { font-style: normal; color: #23794f; font-weight: 800; }
.sq-tab-row.is-checking {
  background: linear-gradient(#fff2b8, #ffe98a);
  box-shadow: inset 0 0 0 1px #e6c65a;
}
.sq-tab-row.is-ok { background: #eef6f0; }
.sq-tab-list .sq-tab-row { cursor: pointer; }

/* residence-card graphic + scan sweep */
.sq-tab-card {
  position: relative;
  width: 100%;
  max-width: 260px;
  aspect-ratio: 86 / 54;
  margin: 4px auto 6px;
  border-radius: 10px;
  background: linear-gradient(135deg, #dfe9f2, #c3d4e4);
  border: 1px solid #a9bccf;
  overflow: hidden;
}
.sq-tab-card__chip {
  position: absolute; left: 12%; top: 26%;
  width: 15%; height: 22%;
  border-radius: 4px;
  background: linear-gradient(135deg, #d8b45a, #b98f3c);
}
.sq-tab-card__lines {
  position: absolute; right: 8%; top: 22%;
  width: 55%; height: 56%;
  background: repeating-linear-gradient(#8fa0b4 0 2px, transparent 2px 9px);
  opacity: 0.7;
}
.sq-tab-card > span {
  position: absolute; left: 8%; bottom: 7%;
  font-size: 9px; letter-spacing: 0.08em; color: #465a70; font-weight: 700;
}
.sq-tab-card__scan {
  position: absolute; left: 0; right: 0; top: 0;
  height: 26%;
  background: linear-gradient(#3fd0ff88, #3fd0ff00);
  animation: sq-scan 1.4s linear infinite;
}
@keyframes sq-scan { from { transform: translateY(-30%); } to { transform: translateY(330%); } }

/* key-terms confirm checklist */
.sq-tab-checks { display: flex; flex-direction: column; gap: 7px; }
.sq-tab-check {
  display: flex;
  gap: 10px;
  width: 100%;
  text-align: left;
  padding: 9px 10px;
  border: 1px solid #cfd6e2;
  border-radius: 9px;
  background: #fff;
  cursor: pointer;
}
.sq-tab-check i {
  flex: 0 0 18px;
  height: 18px;
  border: 1px solid #b6c0d0;
  border-radius: 5px;
  font-style: normal;
  font-weight: 800;
  color: #fff;
  text-align: center;
  line-height: 18px;
  font-size: 12px;
}
.sq-tab-check.is-done { border-color: #23794f; background: #eef6f0; }
.sq-tab-check.is-done i { background: #23794f; border-color: #23794f; }
.sq-tab-check span { font-size: 12px; line-height: 1.45; }
.sq-tab-check span b { display: block; font-size: 12.5px; margin-bottom: 1px; }

/* signature pad */
.sq-sign {
  position: relative;
  border: 1px dashed #9aa6b8;
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
}
.sq-sign__pad {
  display: block;
  width: 100%;
  height: 170px;
  touch-action: none;
  cursor: crosshair;
}
.sq-sign__hint {
  position: absolute; left: 50%; top: 46%;
  transform: translate(-50%, -50%);
  font-size: 13px; color: #aab3c2; letter-spacing: 0.12em;
  pointer-events: none;
  transition: opacity 200ms;
}
.sq-sign__line {
  position: absolute; left: 8%; right: 8%; bottom: 26%;
  border-bottom: 1px solid #c7cede;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .sq-tab-card__scan { animation: none; }
}

/* ---- operable demo handset -------------------------------------- */
.sq-card--demo .sq-ph { max-width: 300px; }
.sq-dph__top {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-bottom: 1px solid #dfe3ea;
  background: #eef1f6;
}
.sq-dph__top b { font-size: 13px; color: #16202e; }
.sq-dph__back {
  border: 0;
  background: none;
  color: #2f6f9e;
  font: 700 12px/1 -apple-system, system-ui, sans-serif;
  cursor: pointer;
}
.sq-dph__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px 8px;
  padding: 14px 8px;
}
.sq-dph__app {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  border: 0;
  background: none;
  font: 600 10px/1.1 -apple-system, system-ui, sans-serif;
  color: #16202e;
  cursor: pointer;
}
.sq-dph__ico {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  background: linear-gradient(150deg, #4a6fa5, #2b3f63);
}
.sq-dph__ico--settings { background: linear-gradient(150deg, #8a94a4, #5b6474); }
.sq-dph__ico--camera { background: linear-gradient(150deg, #3b4657, #1d232e); }
.sq-dph__ico--browser { background: linear-gradient(150deg, #3f8fd0, #2668a8); }
.sq-dph__ico--pay { background: linear-gradient(150deg, #d8a24e, #b47f2f); }
.sq-dph__ico--photos { background: linear-gradient(150deg, #6bbcd6, #4f9c86); }
.sq-dph__ico--maps { background: linear-gradient(150deg, #7bb36a, #4f7745); }
.sq-dph__list { padding: 6px 0; }
.sq-dph__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 13px 14px;
  border: 0;
  border-bottom: 1px solid #e6e9ef;
  background: #fff;
  font: 500 13px/1 -apple-system, system-ui, sans-serif;
  color: #16202e;
  cursor: pointer;
}
.sq-dph__row i { color: #9aa4b2; font-style: normal; }
.sq-dph__usage { padding: 14px; }
.sq-dph__meter {
  height: 12px;
  border-radius: 6px;
  background: #e4e8ef;
  overflow: hidden;
}
.sq-dph__meter span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #3f8fd0, #2f6f9e);
}
.sq-dph__big { font: 800 22px/1.1 -apple-system, system-ui, sans-serif; color: #16202e; margin: 10px 0 2px; }
.sq-dph__big small { font-size: 13px; font-weight: 500; color: #6a7688; }
.sq-dph__note { font-size: 11px; line-height: 1.5; color: #55627a; margin: 8px 0 0; }
.sq-dph__warn { font-size: 11px; line-height: 1.5; color: #a5432f; margin: 10px 0 0; }
.sq-dph__brk { list-style: none; margin: 10px 0 0; padding: 0; }
.sq-dph__brk li {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid #edeff4;
  font-size: 12px;
  color: #16202e;
}
.sq-dph__cam {
  position: relative;
  height: 150px;
  border-radius: 8px;
  background: linear-gradient(160deg, #2a3340, #10151d);
  margin: 6px 0;
}
.sq-dph__cam-ui {
  display: flex;
  gap: 14px;
  justify-content: center;
  padding-top: 12px;
  font: 700 11px/1 -apple-system, system-ui, sans-serif;
  color: #ffffff88;
}
.sq-dph__cam-ui .is-on { color: #ffd257; }
.sq-dph__shutter {
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 3px solid #fff;
  background: #ffffff44;
}
.sq-dph__addr {
  margin: 4px 0 8px;
  padding: 7px 10px;
  border-radius: 8px;
  background: #eef1f6;
  font: 500 10px/1.2 ui-monospace, Menlo, monospace;
  color: #45506a;
  word-break: break-all;
}
.sq-dph__page h4 { font-size: 13px; margin: 2px 0 8px; color: #16202e; }
.sq-dph__prow {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid #e9ecf2;
  font-size: 12px;
  color: #16202e;
}

/* ---- multi-page printed poster / plan catalogue ---------------- */
.sq-card--reader { justify-content: center; padding: 16px 12px calc(16px + env(safe-area-inset-bottom)); }
.sq-reader {
  width: 100%;
  max-width: 420px;
  margin: auto;
  display: flex;
  flex-direction: column;
  max-height: min(80vh, 620px);
  background: #fbf7ec;
  color: #1f1c17;
  border: 2px solid #1b1a17;
  border-radius: 4px;
  box-shadow: 0 18px 44px #000a, 6px 6px 0 -2px #00000030;
  overflow: hidden;
  font-family: Georgia, "Times New Roman", serif;
}
.sq-reader__hd {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 10px 16px;
  border-bottom: 1px solid #ddd3b8;
  background: #f1ead6;
}
.sq-reader__hd b { font-size: 12px; letter-spacing: 0.02em; }
.sq-reader__hd span { font-size: 11px; color: #7a725c; }
.sq-reader__pg { padding: 18px 18px 8px; overflow-y: auto; }
.sq-reader__pg h3 {
  font-size: 19px;
  line-height: 1.25;
  margin: 0 0 12px;
  color: #1f1c17;
}
.sq-reader__body { font-size: 13.5px; line-height: 1.7; }
.sq-reader__dots {
  display: flex;
  gap: 6px;
  justify-content: center;
  padding: 4px 0 10px;
}
.sq-reader__dots i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #d8cdb0;
}
.sq-reader__dots i.is-seen { background: #b6a982; }
.sq-reader__dots i.is-on { background: #22304d; }
.sq-reader__nav {
  display: flex;
  gap: 9px;
  padding: 11px 14px;
  border-top: 1px solid #ddd3b8;
  background: #f1ead6;
}
.sq-reader__btn {
  flex: 1;
  padding: 11px 12px;
  border: 1px solid #c6bb9c;
  border-radius: 7px;
  background: #fff;
  color: #2a2620;
  font: 700 12.5px/1 Georgia, serif;
  cursor: pointer;
}
.sq-reader__btn--go { border-color: #22304d; background: #22304d; color: #fbf7ec; }
.sq-reader__btn:disabled { opacity: 0.4; cursor: default; }

/* ---- credit-card application form (roleplay) ------------------- */
.sq-card--form { justify-content: center; padding: 16px 12px calc(16px + env(safe-area-inset-bottom)); }
.sq-form {
  width: 100%;
  max-width: 460px;
  margin: auto;
  display: flex;
  flex-direction: column;
  max-height: min(82vh, 640px);
  background: #f6f7fb;
  color: #16202e;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 20px 48px #000b;
  font-family: -apple-system, "Segoe UI", system-ui, sans-serif;
}
.sq-form b, .sq-form span, .sq-form label { color: #16202e; }
.sq-form__hd {
  padding: 9px 15px;
  background: #22304d;
}
.sq-form__hd b { display: block; color: #fff; font-size: 12.5px; }
.sq-form__hd span { color: #b9c6da; font-size: 10px; }
.sq-form__title { padding: 11px 16px 8px; border-bottom: 1px solid #e2e6ee; }
.sq-form__title b { display: block; font-size: 14px; }
.sq-form__title span { font-size: 11px; color: #6a768a; }
.sq-form__bd { padding: 13px 16px; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.sq-form__row {
  display: block;
  margin-bottom: 12px;
}
.sq-form__row > span {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  color: #55627a;
  margin-bottom: 4px;
}
.sq-form__row input,
.sq-form__row select,
.sq-form__row textarea {
  width: 100%;
  padding: 9px 10px;
  border: 1px solid #b8c1d0;
  border-radius: 8px;
  background: #fff;
  color: #16202e;
  font: 500 15px/1.2 -apple-system, system-ui, sans-serif;
}
.sq-form__review { display: flex; flex-direction: column; gap: 1px; margin-bottom: 12px; }
.sq-form__rrow {
  display: flex;
  gap: 10px;
  padding: 8px 4px;
  border-bottom: 1px solid #e6e9f0;
  font-size: 12.5px;
}
.sq-form__rrow span { flex: 0 0 36%; color: #66728a; }
.sq-form__rrow b { flex: 1; }
.sq-form__consent {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  padding: 10px;
  border: 1px solid #cfd6e2;
  border-radius: 8px;
  font-size: 11.5px;
  line-height: 1.5;
}
.sq-form__consent.is-miss { border-color: #b23d2e; background: #fbecea; }
.sq-form__consent input { margin-top: 2px; }
.sq-form__ft {
  display: flex;
  gap: 9px;
  padding: 11px 14px;
  border-top: 1px solid #e2e6ee;
  background: #eceff5;
}
.sq-form__ft > span { flex: 1; }
.sq-form__btn {
  flex: 1;
  padding: 11px 12px;
  border: 1px solid #c2cad8;
  border-radius: 8px;
  background: #fff;
  color: #2a3550;
  font: 700 12.5px/1 -apple-system, system-ui, sans-serif;
  cursor: pointer;
}
.sq-form__btn--go { border-color: #1f6f4a; background: #23794f; color: #fff; }

/* ---- home-page launcher — a prominent banner ----------------- */
.sq-launch {
  display: grid;
  grid-template-columns: 1fr;
  position: relative;
  overflow: hidden;
  border: 2px solid #1b1a17;
  border-radius: var(--radius-md);
  background: #141d33;
  color: #f4e9c9;
  padding: 0;
  text-align: left;
  width: 100%;
  box-shadow: 0 6px 0 -2px #0000003d, inset 0 1px 0 0 #ffffff1f;
}

.sq-launch__art {
  display: block;
  width: 100%;
  height: 156px;
  background: #141d33;
}

.sq-launch__body {
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.sq-launch__kicker {
  font-family: var(--font-pixel, "Courier New", monospace);
  font-size: var(--text-xs);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #e8b04b;
}

.sq-launch__title {
  font-family: var(--font-serif);
  font-size: var(--text-xl);
  font-weight: 600;
  line-height: 1.25;
  margin: 6px 0 8px;
  color: #fff;
}

:lang(ja) .sq-launch__title { font-family: var(--font-serif-jp); }

.sq-launch__desc {
  font-size: var(--text-sm);
  line-height: 1.6;
  color: #c3cee2;
  margin-bottom: var(--space-4);
  max-width: 46ch;
}

.sq-launch__go {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  font-family: var(--font-pixel, "Courier New", monospace);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #1b1a17;
  background: #e8b04b;
  border: 2px solid #1b1a17;
  border-radius: 4px;
  padding: 9px 16px;
  box-shadow: 0 3px 0 #00000066;
  transition: transform 90ms, box-shadow 90ms, background 120ms;
}

.sq-launch:hover .sq-launch__go,
.sq-launch:focus-visible .sq-launch__go {
  background: #f4c463;
  transform: translateY(-1px);
  box-shadow: 0 4px 0 #00000066;
}

.sq-launch:active .sq-launch__go {
  transform: translateY(2px);
  box-shadow: 0 1px 0 #00000066;
}

@media (min-width: 720px) {
  .sq-launch {
    grid-template-columns: 46% 1fr;
    align-items: stretch;
  }
  .sq-launch__art {
    height: 100%;
    min-height: 210px;
    border-right: 2px solid #1b1a17;
  }
  .sq-launch__body {
    padding: var(--space-6) var(--space-7);
    justify-content: center;
  }
  .sq-launch__title { font-size: var(--text-2xl); }
}

@media (prefers-reduced-motion: reduce) {
  .sq-dialog { animation: none; }
  .sq-dialog__more { animation: none; }
  .sq-launch__go { transition: none; }
}

/* desktop: show a keyboard hint, hide the touch pad a touch smaller */
@media (min-width: 620px) and (pointer: fine) {
  .sq-controls { opacity: 0.55; }
  .sq-controls:hover { opacity: 1; }
}

/* ---- retail-floor visual polish -----------------------------------
   These are deliberately additive selectors: the game can still run on its
   compact pixel UI, while catalogue, counter and demo moments get a little
   more of the material detail of a real shop. */

/* The generated store image reads as a lit storefront photograph rather than
   a flat card, both on the title screen and in the in-game catalogue prompt. */
.sq-card > .sq-card__scene {
  box-sizing: border-box;
  object-position: center 45%;
  outline: 1px solid #fff5;
  outline-offset: 3px;
  filter: saturate(1.06) contrast(1.035);
  box-shadow: 0 0 0 4px #0b1728, 0 14px 28px #000b, 0 0 26px #75b9e538;
}

.sq-stage > .sq-dialog {
  background-image:
    linear-gradient(135deg, #fff9ebaa, #0000 42%),
    repeating-linear-gradient(0deg, #755f2b08 0 1px, transparent 1px 5px);
  box-shadow: 0 0 0 3px #f7f1e2, 0 9px 0 #00000058, 0 20px 34px #0008, inset 0 0 0 2px #cfc4a3;
}

.sq-dialog .sq-dialog__who {
  box-shadow: 0 1px 0 #0004, inset 0 1px 0 #ffffff24;
}

.sq-dialog .sq-dialog__who--staff::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  margin: 0 5px 1px -2px;
  border-radius: 50%;
  background: #93e4a0;
  box-shadow: 0 0 0 1px #10251a, 0 0 7px #93e4a0aa;
  vertical-align: middle;
}

.sq-dialog .sq-dialog__text {
  line-height: 1.58;
  overflow-wrap: anywhere;
}

@supports (text-wrap: pretty) {
  .sq-dialog .sq-dialog__text { text-wrap: pretty; }
}

.sq-dialog .sq-dialog__illus:not(.sq-dialog__illus--scene) {
  box-shadow: 2px 3px 0 #1b1a1730, 0 7px 15px #1b1a1730;
}

.sq-dialog .sq-dialog__illus--scene {
  height: clamp(112px, 21svh, 156px);
  object-position: center 44%;
  filter: saturate(1.04) contrast(1.035);
  box-shadow: 0 0 0 3px #e3d4ae, 0 8px 18px #1b1a1750;
}

/* Choice cards resemble the small comparison cards a staff member turns
   toward the visitor: strong scanability, detail lines and clear selection. */
.sq-dialog .sq-choices {
  padding: 6px;
  border: 1px solid #bcae8b;
  border-radius: 6px;
  background:
    linear-gradient(90deg, #d6c69d6b 0 3px, transparent 3px),
    #ece2c8;
  box-shadow: inset 0 1px 0 #fff9;
}

.sq-dialog .sq-choices li {
  min-height: 40px;
  padding: 8px 10px 8px 28px;
  border: 1px solid #d0c29f;
  border-radius: 4px;
  background: linear-gradient(90deg, #fffdf7, #f6efdf);
  box-shadow: 0 1px 0 #fff8;
  line-height: 1.35;
  transition: transform 110ms ease, border-color 110ms ease, box-shadow 110ms ease, background 110ms ease;
}

.sq-dialog .sq-choices li + li { margin-top: 3px; }

.sq-dialog .sq-choices li:hover {
  border-color: #8f7040;
  background: #fff7de;
  box-shadow: 0 2px 5px #70552a28;
}

.sq-dialog .sq-choices li[aria-selected="true"] {
  border-color: #5c4830;
  background: linear-gradient(90deg, #fff0c6, #fff8e8);
  box-shadow: inset 3px 0 0 #ad6535, 0 2px 5px #70552a30;
}

.sq-dialog .sq-choices li small {
  padding-top: 3px;
  border-top: 1px dotted #bcae8b;
  line-height: 1.35;
}

/* The service-number board gets the faint LED texture of a real reception
   display without putting text over the canvas scene. */
.sq-stage > .sq-monitor {
  background-image:
    repeating-linear-gradient(90deg, #ffffff07 0 1px, transparent 1px 4px),
    linear-gradient(135deg, #1b2a43, #070c15 68%);
  box-shadow: 0 0 18px #ffb62428, 0 7px 15px #0007, inset 0 0 0 1px #0007;
}

.sq-monitor .sq-monitor__now {
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  letter-spacing: 0.07em;
}

/* Printed sheets have a light paper grain, catalogue spine and tactile
   controls. Campaign notes remain text; the in-store catalogue pages are
   composed as generated, unbranded product photographs. */
.sq-card--reader .sq-reader {
  border-left: 5px solid #34445c;
  background-image:
    radial-gradient(circle at 15% 10%, #fffdf488 0 1px, transparent 1.5px),
    linear-gradient(90deg, #e8dfc8 0, #fbf7ec 5%, #fbf7ec 100%);
  background-size: 13px 13px, auto;
  box-shadow: 0 18px 44px #000a, 7px 7px 0 -2px #00000030, -1px 0 #d5c9aa;
}

.sq-card--reader .sq-reader__hd {
  background-image: linear-gradient(90deg, #ddd2b6, #f7f1df 52%, #e6dcc2);
  box-shadow: inset 0 -1px 0 #fff8;
}

.sq-card--reader .sq-reader__pg {
  background-image: linear-gradient(90deg, #f0e6cb6b 0 2px, transparent 2px);
  background-size: 100% 100%;
  scrollbar-color: #9a8967 #eee6d3;
}

.sq-card--reader .sq-reader__pg h3 {
  padding-bottom: 8px;
  border-bottom: 2px solid #b9aa86;
  text-wrap: balance;
}

.sq-card--reader .sq-reader__body {
  text-wrap: pretty;
}

.sq-card--reader .sq-reader__pg--image {
  display: grid;
  place-items: center;
  flex: 1 1 auto;
  min-height: 0;
  padding: clamp(6px, 1.5vw, 11px);
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 8%, #fffdf8 0 1px, transparent 1.5px),
    linear-gradient(90deg, #ece1c8 0, #faf5e9 4%, #faf5e9 96%, #e9dec4 100%);
  background-size: 12px 12px, auto;
}

.sq-card--reader .sq-reader__pg--image img {
  display: block;
  max-width: 100%;
  max-height: min(58vh, 505px);
  width: auto;
  height: auto;
  object-fit: contain;
  border: 1px solid #cfc3a8;
  box-shadow: 0 10px 20px #382d1d33, 2px 2px 0 #fff8;
}

@media (max-height: 620px) {
  .sq-card--reader .sq-reader__pg--image img { max-height: 47vh; }
}

.sq-card--reader .sq-reader__dots {
  padding-top: 7px;
  background: linear-gradient(90deg, #f4eddb, #fbf7ec, #f4eddb);
}

.sq-card--reader .sq-reader__dots i {
  box-shadow: 0 1px 1px #0003;
}

.sq-card--reader .sq-reader__btn {
  min-height: 42px;
  box-shadow: inset 0 1px 0 #fff, 0 1px 1px #443b2a22;
}

.sq-card--reader .sq-reader__btn:not(:disabled):hover {
  border-color: #887753;
  background: #fffbed;
}

.sq-form .sq-form__row :is(input, select, textarea):focus-visible,
.sq-form .sq-form__btn:focus-visible,
.sq-card--reader .sq-reader__btn:focus-visible,
.sq-card--demo .sq-dph__app:focus-visible,
.sq-card--demo .sq-dph__row:focus-visible {
  outline: 3px solid #2f75c5;
  outline-offset: 2px;
}

/* A display handset has glass, an earpiece and a small amount of depth, while
   retaining the existing operable controls and intentionally generic apps. */
.sq-card--demo .sq-ph {
  position: relative;
  background: linear-gradient(145deg, #f8fafc, #e9eef6);
  box-shadow: 0 0 0 3px #2a3550, 0 20px 42px #000b, 0 0 28px #5ba0dc24;
}

.sq-card--demo .sq-ph::before {
  content: "";
  position: absolute;
  top: 5px;
  left: 50%;
  z-index: 2;
  width: 58px;
  height: 7px;
  transform: translateX(-50%);
  border: 1px solid #111923;
  border-radius: 999px;
  background: #0a1018;
  box-shadow: inset 0 1px 1px #ffffff20;
  pointer-events: none;
}
.sq-card--demo .sq-dph__island { position: absolute; z-index: 3; top: 8px; left: 50%; width: 72px; height: 15px; transform: translateX(-50%); border-radius: 10px; background: #080d13; box-shadow: inset 0 1px #ffffff14; pointer-events: none; }
.sq-dph__homecard { display: flex; flex-direction: column; gap: 3px; margin: 12px 12px 2px; padding: 11px 12px; border-radius: 12px; color: #fff; background: linear-gradient(135deg,#174d68,#41758b 58%,#8bb7ac); box-shadow: inset 0 1px #ffffff32,0 4px 10px #23384a2a; }
.sq-dph__homecard span { font: 700 9px/1 ui-monospace,monospace; letter-spacing: .1em; color: #d7f3e9; }
.sq-dph__homecard b { font-size: 12px; line-height: 1.35; color: #fff; }
.sq-dph__homecard small { font-size: 9px; line-height: 1.35; color: #e3f0f4; }

.sq-card--demo .sq-ph__bar { padding-top: 15px; }

.sq-card--demo .sq-dph__ico {
  position: relative;
  overflow: hidden;
  box-shadow: 0 3px 5px #16202e35, inset 0 1px 0 #ffffff4d;
}

.sq-card--demo .sq-dph__ico::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #ffffff36, transparent 48%);
  pointer-events: none;
}

.sq-card--demo .sq-dph__app:hover .sq-dph__ico,
.sq-card--demo .sq-dph__app:focus-visible .sq-dph__ico {
  transform: translateY(-1px);
  box-shadow: 0 5px 9px #16202e38, inset 0 1px 0 #ffffff5d;
}

.sq-card--demo .sq-dph__cam {
  overflow: hidden;
  background:
    radial-gradient(ellipse at 66% 33%, #49667b 0 6%, transparent 7%),
    linear-gradient(160deg, #4e6679 0%, #283846 48%, #10151d 100%);
  box-shadow: inset 0 0 0 1px #ffffff20;
}

.sq-card--demo .sq-dph__cam::before {
  content: "";
  position: absolute;
  inset: 18px 14px 52px;
  border: 1px solid #ffffff4a;
  box-shadow: 0 0 0 999px #0000000f;
  pointer-events: none;
}

/* Keep conversational choices and physical artefacts readable on narrow or
   short screens, while letting the larger desktop cabinet show more scene. */
@media (max-width: 390px) {
  .sq-card > .sq-card__scene { height: 108px; }
  .sq-dialog .sq-dialog__illus--scene { height: 104px; }
  .sq-dialog .sq-choices { margin-top: 6px; padding: 5px; }
  .sq-dialog .sq-choices li { min-height: 36px; padding: 7px 8px 7px 26px; font-size: 12.5px; }
  .sq-dialog .sq-choices li small { font-size: 10.5px; }
  .sq-card--reader .sq-reader__pg { padding: 14px 14px 7px; }
  .sq-card--reader .sq-reader__pg h3 { font-size: 17px; }
}

@media (max-height: 700px) {
  .sq-card > .sq-card__scene { height: 108px; }
  .sq-card--reader .sq-reader { max-height: 76vh; }
  .sq-card--demo .sq-ph { max-height: 92%; }
}

@media (min-width: 760px) and (pointer: fine) {
  .sq-card > .sq-card__scene { width: min(100%, 470px); height: 178px; }
  .sq-stage > .sq-dialog { left: 30px; right: 30px; bottom: 22px; border-radius: 7px; }
  .sq-dialog .sq-dialog__illus--scene { height: 168px; }
  .sq-card--reader .sq-reader { max-width: 510px; }
  .sq-card--reader .sq-reader__pg { padding: 22px 24px 11px; }
}

@media (prefers-reduced-motion: reduce) {
  .sq-dialog .sq-choices li,
  .sq-card--demo .sq-dph__ico { transition: none; }
}

/* A restrained, readable HUD leaves the retail floor as the main view. */
.sq-map-button { pointer-events: auto; margin-left: auto; margin-right: 12px; border: 1px solid #ffffff40; background: #142a36e8; color: #fff; padding: 10px 14px; border-radius: 8px; cursor: pointer; }
.sq-dph .sq-ph__scroll { filter: brightness(var(--demo-brightness,1)); transition: filter .1s; }
.sq-dph__lock { min-height: 280px; display: grid; place-content: center; text-align: center; gap: 18px; padding: 20px; background: linear-gradient(150deg,#cadfd3,#e7e3cc,#8eafb8); }
.sq-dph__lock > b { font-size: 54px; font-weight: 300; }
.sq-dph__row small { margin-left: auto; font-size: 11px; color: #57676b; }
.sq-dph__page > div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid #ddd; font-size: 13px; }
.sq-dph__page input[type=range] { display: block; width: 100%; margin: 28px 0; }
.sq-dph__top { gap: 8px; }
.sq-card--demo .sq-dph__camera-live { height: 300px; position: relative; }
.sq-dph__camera-live > img { width: 100%; height: 100%; object-fit: cover; }
.sq-dph__camera-live .sq-dph__cam-ui { position: absolute; top: 10px; left: 12px; right: 12px; color: #fff; }
.sq-dph__cam-ui button { background: #162a36b0; color: #fff; border: 1px solid #fff8; border-radius: 20px; padding: 7px 14px; }
.sq-dph__camera-live .sq-dph__shutter { position: absolute; bottom: 14px; left: calc(50% - 27px); cursor: pointer; width: 54px; height: 54px; background: #fff; border: 5px double #253039; border-radius: 50%; }
.sq-dph__gallery { display: grid; grid-template-columns: repeat(2,1fr); gap: 8px; padding: 12px; }
.sq-dph__gallery figure { margin: 0; }
.sq-dph__gallery img { width: 100%; border-radius: 5px; }
.sq-dph__gallery p { grid-column: 1/-1; font-size: 13px; }
.sq-action { position: absolute; z-index: 80; left: 50%; bottom: 95px; transform: translateX(-50%); width: min(580px,calc(100% - 28px)); padding: 18px 22px; color: #1b373d; background: #fbf9f0f2; border: 1px solid #adbcb5; border-radius: 12px; box-shadow: 0 14px 45px #0005; }
.sq-action > span { font-size: 11px; color: #587370; letter-spacing: .04em; }
.sq-action p { font-size: 16px; line-height: 1.6; margin: 10px 0 16px; }
.sq-action button { padding: 11px 22px; background: #2b6663; color: #fff; border: 0; border-radius: 6px; font: inherit; cursor: pointer; }
.sq-action.is-acting { background: #eaf6edf0; }
.sq-action button:disabled { opacity: .55; cursor: wait; }
@media(max-width:500px){.sq-bar__title{font-size:10px}.sq-map-button{padding:7px;margin-right:6px;font-size:11px}.sq-action{padding:14px;bottom:110px}.sq-action p{font-size:14px}}
.sq-store-map { z-index: 70; display: grid; place-items: center; background: #0a172780; padding: 14px; }
.sq-store-map__sheet { width: min(560px,100%); max-height: 85%; overflow: auto; padding: 24px; border-radius: 14px; background: #f7f6f0; color: #21373d; box-shadow: 0 24px 80px #0008; }
.sq-store-map__sheet h2 { margin: 0 0 10px; }
.sq-store-map__sheet p { font-size: 13px; line-height: 1.65; }
.sq-store-map__grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; margin: 20px 0; }
.sq-store-map button { min-height: 44px; border: 1px solid #c4d0ca; border-radius: 7px; padding: 10px; background: #fff; color: #234449; font: inherit; cursor: pointer; }
.sq-store-map button:hover { background: #dcece5; }
.sq-card--reader .sq-reader { background: #f9f5e9; box-shadow: 3px 3px 0 #e5ddc8,6px 6px 0 #eee5d0,9px 9px 0 #d4c9b1,0 25px 65px #0008; border-radius: 3px 12px 12px 3px; }
.sq-card--reader .sq-reader__pg { position: relative; padding-left: 35px; background: linear-gradient(90deg,#cabf9e 0,#eee5cd 8px,#fffcf1 23px,#fffcf1 96%,#efe4cb 100%); border-left: 7px solid #315c5c; animation: sq-page-turn .22s ease-out; }
@keyframes sq-page-turn { from { opacity: .45; transform: perspective(650px) rotateY(-8deg); transform-origin: left; } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .sq-card--reader .sq-reader__pg { animation: none; } }
.sq-bar,
.sq-goal,
.sq-monitor,
.sq-dialog,
.sq-card,
.sq-audio__b {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans JP", sans-serif;
}

.sq-bar { padding: calc(env(safe-area-inset-top) + 12px) 18px 16px; }
.sq-bar__title { letter-spacing: 0.1em; }
.sq-x, .sq-snd, .sq-view {
  border: 1px solid #ffffff52;
  border-radius: 9px;
  background: #111f2dbf;
}
.sq-stage > .sq-goal {
  border: 1px solid #d6e7f13d;
  border-radius: 10px;
  background: #102031de;
  padding: 9px 12px;
  box-shadow: 0 5px 22px #0004;
}
.sq-stage > .sq-dialog {
  width: auto;
  max-width: 780px;
  margin: 0 auto;
  border: 1px solid #d4dde6;
  border-radius: 12px;
  padding: 15px 18px;
  background: #f4f7faF5;
  box-shadow: 0 10px 40px #07132166;
  color: #1b2c3c;
}
.sq-dialog__who { border-radius: 5px; padding: 4px 10px; letter-spacing: 0.04em; }
.sq-dialog__text { font-size: 15px; line-height: 1.65; }
.sq-dialog .sq-choices li {
  border-color: #d3dce5;
  border-radius: 7px;
  background: #fff;
}
.sq-dialog .sq-choices li:hover { border-color: #7496b2; background: #f4f8fc; }
.sq-dialog .sq-choices li[aria-selected="true"] {
  background: #e8f1f8;
  border-color: #537c9a;
  box-shadow: inset 3px 0 #406d8e;
}
.sq-dialog .sq-choices li small { color: #566574; border-color: #c4d1db; }
.sq-keyhint { display: none; }

@media (min-width: 760px) and (pointer: fine) {
  .sq-bar { padding: 18px 24px; }
  .sq-stage > .sq-goal { top: 68px; left: 24px; right: auto; width: 330px; margin: 0; }
  .sq-stage > .sq-monitor { top: 68px; left: auto; right: 24px; width: 240px; margin: 0; }
  .sq-monitor:not([hidden]) ~ .sq-goal { top: 68px; }
  .sq-stage > .sq-dialog { left: 22px; right: 22px; bottom: 62px; max-height: 52%; }
  .sq-controls { padding: 16px 24px 18px; opacity: 0.68; }
  .sq-dpad { transform: scale(0.8); transform-origin: bottom left; }
  .sq-ab { transform: scale(0.88); transform-origin: bottom right; }
  .sq-keyhint {
    display: block;
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    max-width: calc(100% - 320px);
    padding: 8px 14px;
    border: 1px solid #ffffff24;
    border-radius: 8px;
    background: #0d1b2ace;
    color: #e0e9f0;
    font: 11px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    text-align: center;
  }
}

@media (orientation: landscape) and (max-height: 560px) {
  .sq-stage > .sq-goal { left: 14px; right: auto; top: 54px; width: 250px; max-width: 35%; }
  .sq-stage > .sq-monitor { left: auto; right: 14px; top: 54px; width: 220px; max-width: 32%; }
  .sq-monitor:not([hidden]) ~ .sq-goal { top: 54px; }
  .sq-stage > .sq-dialog { left: 18%; right: 18%; bottom: 12px; max-height: calc(100% - 70px); padding: 10px 13px; }
  .sq-dialog__text { font-size: 13px; line-height: 1.45; }
  .sq-dialog .sq-dialog__illus--scene { display: none; }
  .sq-dialog .sq-choices li { min-height: 34px; font-size: 12px; padding-block: 6px; }
  .sq-card { justify-content: flex-start; padding-top: 18px; }
  .sq-card > .sq-card__scene { height: 90px; }
  .sq-keyhint { display: none; }
}
