:root {
  --bg1: #0e2233;
  --bg2: #1d4e63;
  --bg3: #071420;
  --accent: #ffb43f;
  --accent-2: #f08a24;
  --ink: #f7f3ea;
  --muted: rgba(247, 243, 234, .72);
  --card: rgba(255, 255, 255, .07);
  --card-line: rgba(255, 180, 63, .26);
  --ok: #2fbf7f;
  --danger: #ff9b8a;
  --paper: #fff6e5;
  --paper-ink: #1b2733;
  --line-green: #06c755;
  --radius: 18px;
  --font: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "PingFang TC", "Noto Sans JP", "Noto Sans TC", "Apple SD Gothic Neo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --num: "SF Pro Rounded", "Arial Rounded MT Bold", "Nunito", "Segoe UI", var(--font);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: var(--font);
  color: var(--ink);
  background-color: var(--bg1);
  background-image: radial-gradient(120% 70% at 50% 0%, var(--bg2) 0%, var(--bg1) 55%, var(--bg3) 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
[hidden] { display: none !important; }
h1, h2 { margin: 0; line-height: 1.25; }
h1 { font-size: 1.45rem; letter-spacing: .02em; }
h2 { font-size: 1.02rem; color: var(--accent); margin-bottom: 12px; letter-spacing: .04em; }
.muted { color: var(--muted); margin: 0; }
.small { font-size: .88rem; }
.center { text-align: center; }
.num { font-family: var(--num); font-weight: 800; letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Top bar */
.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: max(12px, env(safe-area-inset-top)) 16px 12px;
  max-width: 560px; margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: .04em; color: var(--ink); text-decoration: none; }
.chip {
  font: inherit; font-size: .85rem; color: var(--ink);
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 999px; padding: 6px 14px; cursor: pointer;
}
.chip-danger { color: #ffc2b6; border-color: rgba(255, 155, 138, .45); }
.chip-danger.armed { background: rgba(255, 120, 100, .35); color: #fff; }
.lang-sel { appearance: none; -webkit-appearance: none; padding-right: 14px; }
.lang-sel option { color: #000; }

/* Controls */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
  font: inherit; font-weight: 700; font-size: 1rem; text-decoration: none; cursor: pointer;
  border-radius: 14px; padding: 13px 20px; border: 1px solid transparent; color: var(--ink);
  background: rgba(255, 255, 255, .12);
}
.btn.primary {
  color: #3a1d00;
  background: linear-gradient(180deg, #ffd27a, var(--accent) 45%, var(--accent-2));
  box-shadow: 0 6px 18px rgba(0, 0, 0, .3), inset 0 1px 0 rgba(255, 255, 255, .6);
}
.btn.big { font-size: 1.2rem; padding: 17px 20px; border-radius: 16px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.busy { cursor: progress; }
.btn.ghost { background: transparent; border-color: rgba(255, 255, 255, .22); }
.btn.danger { color: var(--danger); border-color: rgba(255, 155, 138, .35); }
.btn.danger.armed { background: rgba(255, 155, 138, .18); }
.btn.line { background: var(--line-green); color: #fff; }
.btn:focus-visible, .chip:focus-visible, input:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.link { color: var(--accent); }
input {
  font: inherit; font-size: 1.05rem; color: var(--ink); width: 100%;
  background: rgba(0, 0, 0, .28); border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 12px; padding: 12px 14px;
}
input::placeholder { color: rgba(247, 243, 234, .35); }

/* Layout */
main { padding: 0 16px max(24px, env(safe-area-inset-bottom)); }
.view { max-width: 560px; margin: 0 auto; display: grid; gap: 14px; }
.card {
  background: var(--card); border: 1px solid var(--card-line);
  border-radius: var(--radius); padding: 18px;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.hero { text-align: center; padding: 28px 22px; display: grid; gap: 10px; justify-items: center; }
.hero-icon { filter: drop-shadow(0 8px 18px rgba(0, 0, 0, .4)); }
.demo-link { color: var(--accent); font-size: .9rem; }
.error { color: var(--danger); margin: 0; font-size: .92rem; }
.field { display: grid; gap: 6px; font-size: .9rem; color: var(--muted); }
.field small { font-size: .8rem; }
.info { white-space: pre-line; margin: 0; color: var(--muted); font-size: .92rem; line-height: 1.5; }
.banner { border-radius: 14px; padding: 12px 14px; font-weight: 700; text-align: center; white-space: pre-line; }
.banner.warn { background: rgba(255, 155, 138, .16); border: 1px solid rgba(255, 155, 138, .4); color: #ffd3ca; }
.banner.staff { white-space: normal; text-align: left; background: rgba(90, 169, 255, .16); border: 1px solid rgba(90, 169, 255, .55); color: #d6eaff; font-weight: 600; }
.banner.staff .staff-k { font-size: .8rem; color: #9fcbff; margin-bottom: 4px; }
.banner.staff .staff-text { font-size: 1.05rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.banner.pop { animation: pop .5s ease-out; }
@keyframes pop { 0% { transform: scale(.92); opacity: .4; } 70% { transform: scale(1.03); } 100% { transform: scale(1); opacity: 1; } }
.banner.msg { background: rgba(255, 180, 63, .14); border: 1px solid var(--card-line); color: var(--accent); }
.actions { display: grid; gap: 10px; }

/* My tickets */
.my-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.my-list li.empty { color: var(--muted); text-align: center; padding: 8px; }
.my-list a {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: 12px; background: rgba(0, 0, 0, .2); color: var(--ink); text-decoration: none;
}
.my-num { font-size: 1.3rem; color: var(--accent); }
.my-names { font-size: .9rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.my-st { font-size: .75rem; color: var(--muted); }

/* Take */
.take-card { display: grid; gap: 16px; }
.names { display: grid; gap: 2px; }
.shop-name { font-size: .9rem; color: var(--muted); letter-spacing: .04em; }
.take-card form { display: grid; gap: 14px; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.stat { background: rgba(0, 0, 0, .22); border-radius: 12px; padding: 10px 8px; text-align: center; min-width: 0; }
.stat-k { font-size: .72rem; color: var(--muted); letter-spacing: .03em; }
.stat-v { font-size: 1.25rem; font-weight: 800; margin-top: 4px; white-space: nowrap; }

/* Ticket (paper) */
.ticket {
  position: relative; color: var(--paper-ink); background: var(--paper);
  border-radius: 20px; overflow: hidden; margin-top: 6px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .45);
  --notch: 14px;
  -webkit-mask: radial-gradient(circle var(--notch) at 0 var(--ny, 66%), #0000 98%, #000) left / 51% 100% no-repeat,
                radial-gradient(circle var(--notch) at 100% var(--ny, 66%), #0000 98%, #000) right / 51% 100% no-repeat;
          mask: radial-gradient(circle var(--notch) at 0 var(--ny, 66%), #0000 98%, #000) left / 51% 100% no-repeat,
                radial-gradient(circle var(--notch) at 100% var(--ny, 66%), #0000 98%, #000) right / 51% 100% no-repeat;
}
.ticket-top { padding: 16px 20px 0; text-align: center; }
.ticket .shop-name { color: rgba(27, 39, 51, .6); }
.machine-name { font-weight: 800; font-size: 1.05rem; }
.ticket-mid { text-align: center; padding: 6px 20px 18px; }
.ticket-k { font-size: .8rem; letter-spacing: .1em; color: rgba(27, 39, 51, .6); }
.ticket-num { font-size: clamp(4.2rem, 24vw, 7rem); line-height: 1.05; color: var(--paper-ink); }
.ticket-nick { min-height: 1.2em; font-weight: 700; color: rgba(27, 39, 51, .7); }
.ticket-qr { display: grid; justify-items: center; gap: 6px; margin-top: 12px; }
.ticket-qr .qr-box { width: 148px; padding: 8px; border: 1px solid rgba(27, 39, 51, .15); }
.ticket-bot { border-top: 2px dashed rgba(27, 39, 51, .25); padding: 16px 16px 18px; display: grid; gap: 14px; }
.ticket-state { text-align: center; font-weight: 800; font-size: 1.05rem; line-height: 1.45; }
.stats.on-paper .stat { background: rgba(27, 39, 51, .07); }
.stats.on-paper .stat-k { color: rgba(27, 39, 51, .6); }
.ticket.near { background: #fff0c9; }
.ticket.called { background: linear-gradient(180deg, #ffd27a, var(--accent)); animation: ring 1.1s ease-in-out 3; }
.ticket.called .ticket-state { font-size: 1.25rem; }
.ticket.called .ticket-state strong { font-size: 1.6rem; }
.ticket.served, .ticket.cancelled, .ticket.expired, .ticket.deleted, .ticket.missed { filter: saturate(.3); opacity: .85; }
@keyframes ring { 0%, 100% { transform: rotate(0); } 20% { transform: rotate(-2deg) scale(1.02); } 40% { transform: rotate(2deg) scale(1.02); } 60% { transform: rotate(-1deg); } }

/* Take-a-number: just the nickname box and the big button — large, filling most of the phone screen */
.take-card { gap: 28px; padding: 32px 22px 44px; min-height: min(68vh, 620px); display: flex; flex-direction: column; }
.take-card .names { text-align: center; }
.take-card .names .shop-name { font-size: 1.05rem; }
.take-card .names h1 { font-size: 2rem; margin-top: 4px; }
.take-card form { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 22px; }
.nick-input { font-size: 1.3rem; padding: 22px 16px; text-align: center; border-radius: 16px; }
.take-card .btn.big { font-size: 1.7rem; padding: 30px 20px; border-radius: 22px; letter-spacing: .08em; }
.take-foot { text-align: center; display: grid; gap: 8px; justify-items: center; font-size: .8rem; color: var(--muted); padding-bottom: 8px; }
.take-foot .agree { font-size: .8rem; }

/* "I already have a number" */
.have { text-align: center; }
.link-btn { font: inherit; font-size: .92rem; color: var(--accent); background: none; border: 0; text-decoration: underline; cursor: pointer; padding: 6px; }
#haveBox { margin-top: 8px; display: grid; gap: 8px; }
.have-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.have-row input { text-align: center; font-size: 1.3rem; letter-spacing: .1em; }
.have-row .btn { width: auto; }

/* Legal pages + footer */
.legal { line-height: 1.75; font-size: .95rem; }
.legal h1 { margin-bottom: 4px; }
.legal h2 { font-size: 1.05rem; color: var(--accent); margin: 26px 0 8px; letter-spacing: .02em; }
.legal h3 { font-size: .95rem; margin: 16px 0 6px; }
.legal ul { padding-left: 1.2em; margin: 6px 0; }
.legal li { margin: 4px 0; }
.legal p { margin: 8px 0; }
.legal a, .agree a, .site-footer a { color: var(--accent); }
.agree { margin: 0; text-align: center; line-height: 1.6; }
.site-footer { max-width: 560px; margin: 8px auto 0; padding: 0 16px max(20px, env(safe-area-inset-bottom)); text-align: center; font-size: .8rem; color: var(--muted); }
body.screen-mode .site-footer { display: none; }

/* Ads */
.ad-slot { position: relative; border-radius: 14px; border: 1px dashed rgba(255, 255, 255, .2); padding: 10px 12px; min-height: 60px; }
.ad-tag { position: absolute; top: 6px; right: 10px; font-size: .65rem; color: var(--muted); letter-spacing: .08em; }
.house-ad { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; font-size: .9rem; padding-right: 28px; }
.house-ad img { flex: none; border-radius: 8px; }
.ha-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ha-title { font-weight: 700; }
.ha-slogan { color: var(--accent); font-size: .85em; font-weight: 600; }
.ha-sub { color: var(--muted); font-size: .85em; }
.ha-url { display: none; color: var(--accent); font-size: .85em; font-weight: 600; }
.mon-ad .ha-text { flex-direction: row; align-items: baseline; flex-wrap: wrap; column-gap: .9em; }
.mon-ad .ha-url { display: inline; }

.toast {
  position: fixed; left: 50%; bottom: max(24px, env(safe-area-inset-bottom)); transform: translateX(-50%);
  z-index: 70; background: rgba(0, 0, 0, .82); color: var(--ink); padding: 10px 18px; border-radius: 999px;
  font-size: .92rem; max-width: calc(100vw - 32px); text-align: center;
}

.pill { flex: none; font-size: .8rem; font-weight: 700; padding: 5px 11px; border-radius: 999px; background: rgba(255, 255, 255, .12); white-space: nowrap; }
.pill.live { background: var(--ok); color: #fff; }
.pill.live::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #c7ffe3; margin-right: 6px; vertical-align: 1px; animation: blink 1.4s infinite; }
.pill.off { background: rgba(255, 155, 138, .25); color: #ffd3ca; }
@keyframes blink { 50% { opacity: .25; } }

.qr-box { flex: none; background: #fff; border-radius: 14px; padding: 12px; line-height: 0; }
.qr-box svg { display: block; width: 100%; height: auto; }

.screen-tools, .start-overlay { display: none; }

/* ---------- Big screen (NumMonitor) ---------- */
body.screen-mode { overflow: hidden; background-image: radial-gradient(110% 80% at 30% 15%, #1f5870 0%, #0d2131 55%, #050d15 100%); }
body.screen-mode .topbar { display: none; }
body.screen-mode main { padding: 0; }
body.screen-mode #screenView { max-width: none; display: block; }

.pair-pane {
  height: 100vh; display: grid; place-content: center; justify-items: center; gap: 2.4vh; text-align: center; padding: 4vh 6vw;
}
.pair-pane h1 { font-size: clamp(1.8rem, 5vh, 3.6rem); }
.pair-pane p { font-size: clamp(1rem, 2.4vh, 1.6rem); max-width: 40em; }
.pair-row { display: flex; align-items: center; gap: 4vw; margin-top: 2vh; }
.pair-row .qr-box { width: clamp(160px, 30vh, 340px); }
.pair-code { font-size: clamp(3rem, 12vh, 9rem); color: var(--accent); letter-spacing: .12em; }

.mon-pane {
  height: 100vh; padding: 3vh 3vw;
  display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(280px, 1fr);
  grid-template-rows: auto minmax(0, 1fr) auto; gap: 2.4vh 2.6vw;
}
.mon-head { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 2vw; }
.mon-names { display: flex; align-items: baseline; gap: 1.2vw; min-width: 0; }
.mon-names .shop-name { font-size: clamp(1rem, 2.6vh, 2rem); }
.mon-names h1 { font-size: clamp(1.6rem, 4.6vh, 3.6rem); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mon-head .pill { font-size: clamp(.9rem, 2vh, 1.5rem); padding: .4em 1em; }

.mon-stage {
  min-height: 0; min-width: 0; overflow: hidden; border-radius: 28px; padding: 3vh 2vw;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  background: radial-gradient(90% 70% at 50% 40%, rgba(255, 190, 90, .14), rgba(0, 0, 0, .25) 70%), rgba(0, 0, 0, .22);
  border: 1px solid var(--card-line); box-shadow: inset 0 0 80px rgba(0, 0, 0, .35);
}
.mon-k { font-size: clamp(1.4rem, 4.4vh, 3.4rem); font-weight: 800; letter-spacing: .12em; color: var(--muted); }
.mon-num {
  font-size: min(30vh, 14vw); line-height: 1; color: var(--accent); white-space: nowrap;
  text-shadow: 0 0 40px rgba(255, 180, 63, .35), 0 8px 0 rgba(0, 0, 0, .25);
}
.mon-num.flash { animation: flash 1.6s ease-out; }
@keyframes flash {
  0% { transform: scale(.7); color: #fff; text-shadow: 0 0 80px #fff; }
  25% { transform: scale(1.08); }
  45% { color: #fff; }
  55% { color: var(--accent); }
  70% { color: #fff; }
  100% { transform: scale(1); color: var(--accent); }
}
.mon-nick { font-size: clamp(1.4rem, 5vh, 4rem); font-weight: 800; min-height: 1.2em; }
.mon-recent { margin-top: 3vh; display: grid; gap: 1vh; justify-items: center; }
.mon-recent-k { font-size: clamp(.9rem, 2vh, 1.5rem); color: var(--muted); letter-spacing: .1em; }
.recent-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.2vw; }
.recent-item {
  display: grid; justify-items: center; padding: .5vh 1.4vw; border-radius: 14px;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .12);
}
.recent-item .num { font-size: clamp(1.2rem, 4vh, 3rem); }
.recent-item small { font-size: clamp(.8rem, 1.8vh, 1.3rem); color: var(--muted); }

.mon-side { min-height: 0; display: flex; flex-direction: column; gap: 2vh; }
.mon-qr { display: grid; justify-items: center; gap: 1.6vh; text-align: center; padding: 2.4vh 1.4vw; }
.mon-qr .qr-box { width: min(100%, 34vh); }
.mon-qr-k { font-weight: 800; font-size: clamp(1rem, 2.6vh, 2rem); color: var(--accent); }
.mon-closed { text-align: center; font-weight: 800; font-size: clamp(1.4rem, 4vh, 3rem); color: #ffd3ca; padding: 4vh 1vw; }
.mon-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1vw; padding: 1.6vh 1vw; }
.mon-stats .stat-k { font-size: clamp(.8rem, 1.8vh, 1.3rem); }
.mon-stats .stat-v { font-size: clamp(1.4rem, 4.4vh, 3.4rem); }
.mon-side .banner.msg { font-size: clamp(1.1rem, 3vh, 2.2rem); }
.mon-side .info { font-size: clamp(.9rem, 2.2vh, 1.6rem); color: var(--ink); overflow: hidden; }
.mon-ad { grid-column: 1 / -1; min-height: 9vh; display: flex; align-items: center; }
.mon-ad .house-ad { font-size: clamp(1rem, 2.4vh, 1.8rem); }
.mon-ad .house-ad img { width: 6vh; height: 6vh; }

.screen-mode .start-overlay {
  position: fixed; inset: 0; z-index: 80; display: grid; place-content: center; justify-items: center; gap: 2vh;
  border: 0; font: inherit; font-size: clamp(1.2rem, 3.4vh, 2.4rem); font-weight: 700; color: var(--ink);
  background: rgba(5, 13, 21, .78); backdrop-filter: blur(6px); cursor: pointer;
}
.start-icon { font-size: clamp(3rem, 10vh, 7rem); }
.screen-mode .screen-tools {
  display: flex; gap: 8px; position: fixed; right: 16px; bottom: 16px; z-index: 30;
  opacity: 0; transition: opacity .3s;
}
.screen-mode.show-tools .screen-tools { opacity: 1; }
.screen-mode:not(.show-tools) { cursor: none; }

/* Portrait screens (tablet standing up, vertical TV) */
@media (max-aspect-ratio: 1/1) {
  .mon-pane { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto auto; }
  .mon-num { font-size: min(13vh, 24vw); }
  .mon-k { font-size: clamp(1rem, 2.8vh, 2.4rem); }
  .mon-nick { font-size: clamp(1.2rem, 3.4vh, 3rem); }
  .mon-recent { margin-top: 1.4vh; }
  .recent-item .num { font-size: clamp(1rem, 2.8vh, 2.4rem); }
  .mon-side { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; gap: 2vh 2vw; }
  .mon-side > .mon-qr, .mon-side > .mon-closed { grid-row: span 3; }
  .mon-qr .qr-box { width: min(100%, 24vh); }
  .mon-stats .stat-v { font-size: clamp(1.4rem, 3.4vh, 3rem); }
}

/* Language swap on the big screen (local ⇄ English every 10 s) */
#screenView.lang-fade .mon-pane, #screenView.lang-fade .pair-pane { animation: langFade .5s ease-in-out; }
@keyframes langFade { 0%, 100% { opacity: 1; } 50% { opacity: .15; } }

@media (prefers-reduced-motion: reduce) {
  .pill.live::before, .ticket.called, .mon-num.flash, #screenView.lang-fade .mon-pane, #screenView.lang-fade .pair-pane { animation: none; }
}

/* ---------- Marketing homepage ---------- */
.mk-nav { display: none; gap: 14px; align-items: center; margin-left: auto; font-size: .9rem; }
.mk-nav a { color: var(--ink); text-decoration: none; opacity: .85; }
.mk-nav a:hover { opacity: 1; }
.mk-nav .mk-nav-cta { color: var(--paper-ink); background: var(--accent); padding: 6px 14px; border-radius: 999px; font-weight: 700; opacity: 1; }
body.home-mode .mk-nav { display: flex; }
body.home-mode .topbar, body.home-mode .site-footer { max-width: 1120px; }
body.home-mode #homeView { max-width: 1120px; gap: 0; }
.mk h3 { margin: 0 0 6px; font-size: 1.05rem; }
.mk img { height: auto; max-width: 100%; }
#homeView > * { min-width: 0; }
.mk p { line-height: 1.7; }
.mk-mine { margin: 8px 0 18px; max-width: 560px; justify-self: center; width: 100%; }
.mk-hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(20px, 4vw, 56px); align-items: center; padding: clamp(18px, 5vw, 56px) 0 28px; }
.mk-eyebrow { color: var(--accent); font-weight: 700; letter-spacing: .08em; margin: 0 0 10px; font-size: .95rem; }
.mk-hero h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); line-height: 1.15; letter-spacing: .01em; }
.mk-lead { color: var(--muted); font-size: clamp(1rem, 1.6vw, 1.15rem); margin: 18px 0 22px; }
.mk-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.mk-actions .btn { width: auto; padding-inline: 26px; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }
.mk-pills { color: var(--muted); font-size: .88rem; margin: 16px 0 0; }
.mk-hero-art { position: relative; padding: 0 4% 14% 0; }
.mk-tv { display: block; width: 100%; height: auto; border-radius: 14px; border: 6px solid #0a0f14; box-shadow: 0 30px 60px rgba(0, 0, 0, .45); }
.mk-phone { position: absolute; bottom: 0; width: 26%; height: auto;  border-radius: 20px; border: 5px solid #0a0f14; box-shadow: 0 24px 50px rgba(0, 0, 0, .5); background: #000; }
.mk-phone-a { right: 0; }
.mk-phone-b { right: 28%; bottom: -4%; }
.mk-customer { text-align: center; color: var(--muted); font-size: .92rem; margin: 28px auto 8px; padding: 10px 16px; border: 1px dashed rgba(255, 255, 255, .18); border-radius: 999px; max-width: 640px; }
.mk-sec { padding: clamp(28px, 6vw, 64px) 0 0; }
.mk-h2 { font-size: clamp(1.4rem, 2.8vw, 2rem); color: var(--ink); letter-spacing: .02em; margin: 0 0 22px; text-align: center; }
.mk-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.mk-steps li { background: var(--card); border: 1px solid var(--card-line); border-radius: var(--radius); padding: 18px 18px 20px; position: relative; }
.mk-steps .shot { width: 62%; display: block; margin: 0 auto 16px; border-radius: 16px; border: 4px solid #0a0f14;  }
.mk-steps li > b { z-index: 1; position: absolute; top: 14px; left: 14px; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: var(--accent); color: var(--paper-ink); font-family: var(--num); }
.mk-steps p, .mk-feats p { color: var(--muted); margin: 0; font-size: .94rem; }
.mk-split { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(20px, 4vw, 48px); align-items: center; }
.mk-split .shot { width: 100%; border-radius: 14px; border: 6px solid #0a0f14; box-shadow: 0 24px 50px rgba(0, 0, 0, .4); }
.mk-split .mk-h2 { text-align: left; }
.mk-split p { color: var(--muted); }
.mk-feats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.mk-feats li { background: var(--card); border: 1px solid rgba(255, 255, 255, .08); border-radius: 16px; padding: 18px; }
.mk-feats span { font-size: 1.6rem; display: block; margin-bottom: 8px; }
.mk-gallery { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(155px, 1fr); gap: 16px; overflow-x: auto; padding-bottom: 10px; scroll-snap-type: x mandatory; }
.mk-gallery figure { margin: 0; scroll-snap-align: start; text-align: center; }
.mk-gallery .shot { width: 100%; border-radius: 18px; border: 4px solid #0a0f14; }
.mk-gallery figcaption { color: var(--muted); font-size: .88rem; margin-top: 8px; }
.mk-end { margin: clamp(28px, 6vw, 64px) 0 24px; text-align: center; padding: clamp(24px, 5vw, 44px); }
.mk-end p { color: var(--muted); margin: 0 auto 8px; max-width: 40em; }
.mk-end-t { margin-top: 28px; }
.mk-end .mk-actions { justify-content: center; margin-top: 18px; }
@media (max-width: 900px) {
  .mk-feats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .mk-nav a:not(.mk-nav-cta) { display: none; }
  .mk-hero, .mk-split { grid-template-columns: 1fr; }
  .mk-hero { text-align: center; }
  .mk-actions { justify-content: center; }
  .mk-hero-art { max-width: 520px; width: 100%; justify-self: center; }
  .mk-split .mk-h2 { text-align: center; }
  .mk-steps { grid-template-columns: 1fr; }
  .mk-steps .shot { width: 48%; }
}
@media (max-width: 480px) {
  .mk-feats { grid-template-columns: 1fr; }
}
.mk-scr-actions { margin-top: 18px; }

/* Localized product illustrations */
.shot {
  container-type: inline-size;
  display: block;
  box-sizing: border-box;
  background: #101d29;
  border-radius: 1rem;
  color: var(--ink);
  text-align: left;
}
.shot-ui {
  display: grid;
  align-content: center;
  gap: 6cqi;
  min-height: 145cqi;
  padding: 10cqi;
  border-radius: inherit;
  background: radial-gradient(ellipse at top, #27576a, #102334 75%);
  font-size: clamp(.56rem, 8cqi, 1.05rem);
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.shot-ui b { color: var(--muted); }
.shot-ui .num {
  color: var(--accent);
  font-size: 22cqi;
  line-height: 1.05;
}
.shot-field, .shot-action {
  display: block;
  padding: 6cqi;
  border-radius: 6cqi;
  background: rgba(255, 255, 255, .09);
}
.shot-field span { display: block; color: var(--muted); }
.shot-field span:not(:only-child) { margin-bottom: .25em; }
.shot-action {
  background: var(--accent);
  color: var(--paper-ink);
  font-weight: 750;
  text-align: center;
}
.shot-ticket, .shot-take, .shot-welcome { text-align: center; }
.shot-ticket .num { color: var(--ink); }
.shot-welcome img { width: 30cqi; height: auto; margin-inline: auto; }
.shot-wide .shot-ui {
  min-height: 54cqi;
  gap: 2cqi;
  padding: 5cqi 7cqi;
  font-size: clamp(.58rem, 3.8cqi, 1.2rem);
}
.shot-wide .num { font-size: 16cqi; }
.shot-board-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 2cqi; }
.shot-wide .shot-field { padding: 2cqi 3cqi; border-radius: 2cqi; }
