:root { --ink: #0b1f1a; --soft: #4c6159; --fill: #f2f6f4; --go: #10b981; --deep: #047857; --pale: #e3f6ee; --out: #a4500b; }
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; overflow: hidden; background: #050a08; font-family: Manrope, system-ui, sans-serif; color: var(--ink); -webkit-tap-highlight-color: transparent; -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; touch-action: manipulation; }
button:focus-visible { outline: 3px solid var(--go); outline-offset: 2px; }
[hidden] { display: none !important; }
#gl { position: fixed; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; }
.ico { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* page bar */
#top { position: fixed; inset: 0 0 auto; height: 60px; padding: 0 22px; display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #fff; z-index: 30; pointer-events: none; }
#top button { pointer-events: auto; }
.logo { display: flex; align-items: center; gap: 10px; min-width: 0; }
.logo i, .brand i { display: inline-block; background: currentColor; -webkit-mask: url(movo-globe.svg) center/contain no-repeat; mask: url(movo-globe.svg) center/contain no-repeat; flex: none; }
.logo i { width: 28px; height: 28px; color: var(--go); }
.logo b { display: block; font-size: 17px; font-weight: 800; line-height: 1.15; }
.logo small { display: block; font-size: 12px; color: #b4cec4; white-space: nowrap; }
.tools { display: flex; gap: 8px; align-items: center; flex: none; }
#lang, #sound { height: 42px; border-radius: 12px; background: #14241e; display: flex; align-items: center; justify-content: center; }
#lang { gap: 9px; padding: 0 14px; font-size: 14px; }
#lang img, #langs img, .langs img { width: 27px; height: 20px; border-radius: 4px; flex: none; box-shadow: 0 0 0 1px rgba(11, 31, 26, .12); }
#sound { width: 42px; }
#sound svg { width: 21px; fill: none; stroke: #fff; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
#sound[aria-pressed=true] .x, #sound[aria-pressed=false] .w { display: none; }
#mode { background: var(--go); color: #03231a; font-weight: 800; font-size: 14px; height: 42px; padding: 0 18px; border-radius: 12px; white-space: nowrap; }
.flat #mode { display: none; }
#langs { position: fixed; top: 62px; right: 22px; width: min(560px, calc(100vw - 20px)); max-height: calc(100vh - 80px); overflow: auto; background: #fff; border-radius: 22px; padding: 12px; z-index: 31; display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; box-shadow: 0 24px 70px rgba(0, 0, 0, .5); }
#langs button { display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 12px; border-radius: 11px; font-size: 14.5px; text-align: left; }
#langs button:hover { background: var(--fill); }
#langs [aria-pressed], .langs [aria-pressed] { background: var(--pale); }

/* kiosk app: one fixed size, laid onto the 3D screen */
#stage { position: fixed; left: 0; top: 0; width: 430px; height: 764.4px; transform-origin: 0 0; background: #fff; overflow: hidden; opacity: 0; pointer-events: none; transition: opacity .25s; z-index: 5; user-select: none; display: flex; flex-direction: column; }
#stage.live { opacity: 1; pointer-events: auto; }
#stage.in main, #stage.in h1 { animation: in .4s cubic-bezier(.2, .7, .2, 1); }
#stage.in .hero h1 { animation: none; }
@keyframes in { from { opacity: 0; transform: translateY(10px); } }
#stage header { padding: 22px 28px 0; flex: none; }
.bar { display: flex; align-items: center; gap: 14px; height: 36px; }
.brand { display: flex; align-items: center; gap: 7px; font-weight: 800; font-size: 17px; margin-right: auto; }
.brand i { width: 24px; height: 24px; color: var(--go); }
#stage time { font-size: 15px; font-weight: 600; color: var(--soft); font-variant-numeric: tabular-nums; }
.x { width: 44px; height: 44px; border-radius: 50%; background: var(--fill); display: grid; place-items: center; margin-right: -6px; }
.x .ico { width: 20px; height: 20px; stroke-width: 2; }
.steps { height: 4px; border-radius: 4px; background: #e6edea; margin-top: 14px; overflow: hidden; }
.steps i { display: block; height: 100%; background: var(--go); border-radius: 4px; }
#stage header h1 { font-size: 30px; line-height: 1.15; font-weight: 700; letter-spacing: -.025em; margin-top: 22px; text-wrap: balance; overflow-wrap: break-word; }
#stage header p { font-size: 15px; line-height: 1.4; margin-top: 6px; font-weight: 500; color: var(--soft); }
#stage main { flex: 1; min-height: 0; padding: 18px 28px 10px; display: flex; flex-direction: column; gap: 12px; overflow: auto; scrollbar-width: none; }
#stage main.center { justify-content: center; }
#stage footer { flex: none; padding: 8px 28px 28px; display: flex; gap: 10px; }
#stage footer:empty { padding: 0 0 18px; }
.btn { min-height: 60px; padding: 6px 14px; border-radius: 18px; font-weight: 700; font-size: 17px; flex: 1 1 0; line-height: 1.15; min-width: 0; }
.btn.primary { background: var(--deep); color: #fff; flex: 1.7 1 0; }
.btn.ghost { background: var(--fill); }
.btn:active { transform: scale(.985); }
.btn[disabled] { opacity: .35; cursor: default; }
.note { font-size: 14.5px; line-height: 1.45; color: var(--soft); font-weight: 500; text-align: center; }

.hero { flex: 1; min-height: 0; position: relative; display: flex; flex-direction: column; padding: 28px; color: #fff; background: #07140f; }
.hero > * { position: relative; }
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero .brand { margin: 0; flex: none; } .hero .brand i { color: #fff; }
.hero h1 { font-size: 33px; line-height: 40px; font-weight: 700; margin-top: 24px; letter-spacing: -.02em; }
.hero em { font-style: normal; color: #7df0c3; }

.hero .btn { margin-top: auto; flex: none; min-height: 66px; font-size: 19px; font-weight: 800; background: var(--go); color: #03231a; border-radius: 20px; }

.tile { display: flex; align-items: center; gap: 18px; text-align: left; background: var(--fill); border-radius: 22px; padding: 16px 20px; min-height: 92px; flex: none; transition: background .15s; }
.tile:hover { background: var(--pale); }
.tile > .ico:first-child { width: 34px; height: 34px; color: var(--deep); }
.tile b { flex: 1; min-width: 0; font-size: 20px; font-weight: 700; line-height: 1.2; letter-spacing: -.01em; overflow-wrap: break-word; }
.chev { width: 20px; height: 20px; color: #89a298; stroke-width: 2; }
.chk { min-height: 80px; } .chk b { font-size: 18px; }
.tick { width: 26px; height: 26px; border-radius: 50%; padding: 5px; stroke-width: 3.2; color: #fff; background: var(--deep); }
.chk:not(.on) .tick { background: #d5e0db; color: transparent; }
.chk.on { background: var(--pale); }
.langs { display: grid; grid-template-columns: 1fr 1fr; grid-auto-flow: column; grid-template-rows: repeat(11, 1fr); gap: 6px 8px; flex: 1; min-height: 0; }
.langs button { display: flex; align-items: center; gap: 12px; background: var(--fill); border-radius: 13px; padding: 0 14px; text-align: left; min-height: 0; }
.langs button:hover { background: var(--pale); }
.langs b { font-size: 16.5px; font-weight: 700; }

.scan { background: var(--fill); border-radius: 28px; padding: 64px 20px; text-align: center; position: relative; overflow: hidden; }
.scan .ico { width: 96px; height: 96px; color: var(--deep); stroke-width: 1.2; display: block; margin: 0 auto 18px; }
.scan b { font-size: 21px; font-weight: 700; }
.scan.read::after { content: ''; position: absolute; left: 22%; right: 22%; height: 3px; border-radius: 4px; background: var(--go); animation: scan 1.1s ease-in-out infinite alternate; top: 20%; }
@keyframes scan { to { top: 60%; } }
.scan.ok { background: var(--pale); }

.sex { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; background: var(--fill); border-radius: 20px; padding: 6px; }
.sex button { border-radius: 15px; min-height: 60px; font-size: 18px; font-weight: 700; }
.sex .on { background: var(--deep); color: #fff; }
.age { display: flex; align-items: center; padding: 4px 6px; min-height: 66px; }
.age small { font-size: 18px; font-weight: 600; color: var(--soft); margin-right: auto; max-width: 230px; line-height: 1.25; }
.age.bad small { color: var(--out); font-size: 15px; }
.age b { font-size: 48px; font-weight: 700; letter-spacing: -.03em; }
.keys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.keys button { background: var(--fill); border-radius: 18px; height: 64px; font-size: 25px; font-weight: 600; }
.keys button:active { background: var(--pale); }

.warn .ico { width: 56px; height: 56px; color: #c0620d; stroke-width: 1.4; margin-bottom: 16px; }
.warn p { font-size: 20px; font-weight: 600; line-height: 1.38; letter-spacing: -.01em; }
.warn ul { margin-top: 20px; list-style: none; font-size: 17px; line-height: 1.35; font-weight: 600; display: grid; gap: 8px; }
.warn li { background: #fdf3e7; color: #5b2c05; border-radius: 16px; padding: 14px 18px; overflow-wrap: break-word; }

#stage main.howto { gap: 18px; padding-bottom: 6px; }
.photo { flex: 1 1 0; min-height: 200px; width: 100%; object-fit: cover; border-radius: 26px; background: #0b1c16; }
.how { flex: none; }
.how p { font-size: 20px; font-weight: 600; line-height: 1.32; letter-spacing: -.01em; }
.how ul { list-style: none; margin-top: 12px; display: grid; gap: 8px; }
.how li { display: flex; gap: 10px; align-items: center; font-size: 15.5px; font-weight: 500; color: var(--soft); line-height: 1.3; }
.how .tick { width: 20px; height: 20px; padding: 4px; }

.boxes { display: grid; gap: 10px; }
.boxes.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.box { background: var(--fill); border-radius: 20px; padding: 16px 18px; min-width: 0; }
.box small { display: block; font-size: 14.5px; font-weight: 600; color: var(--soft); line-height: 1.2; overflow-wrap: break-word; }
.box b { display: block; font-size: 31px; font-weight: 700; line-height: 1.15; margin-top: 6px; white-space: nowrap; letter-spacing: -.03em; }
.box i { font-style: normal; font-size: 15px; color: var(--soft); font-weight: 600; letter-spacing: 0; }
.box.out { background: #fdf3e7; } .box.out b { color: var(--out); }
.boxes.sm .box { padding: 12px 16px; display: flex; flex-direction: column; justify-content: space-between; } .boxes.sm .box small { font-size: 13.5px; } .boxes.sm .box b { font-size: 24px; margin-top: 3px; } .boxes.sm i { font-size: 14px; }
.gauge { width: 100%; max-height: 300px; margin: 0 auto 14px; flex: none; }
.gauge .gv { font-size: 38px; font-weight: 700; letter-spacing: -.03em; text-anchor: middle; fill: var(--ink); }
.gauge .gs { font-size: 10.5px; font-weight: 600; text-anchor: middle; fill: var(--soft); }
.gauge .tk { font-size: 9px; font-weight: 600; text-anchor: middle; fill: var(--soft); }
.big { text-align: center; margin-bottom: 8px; } .big b { display: block; font-size: 88px; font-weight: 700; letter-spacing: -.05em; line-height: 1; } .big b i { font-style: normal; font-weight: 300; color: #9db3aa; margin: 0 4px; } .big small { font-size: 17px; font-weight: 600; color: var(--soft); }
.rbar > div { display: flex; justify-content: space-between; align-items: baseline; } .rbar small { font-size: 16px; font-weight: 600; color: var(--soft); } .rbar > div b { font-size: 20px; font-weight: 700; }
.rbar p { position: relative; height: 10px; border-radius: 10px; background: #f3e3d1; margin-top: 8px; } .rbar p i { position: absolute; top: 0; bottom: 0; background: var(--go); border-radius: 10px; } .rbar p u { position: absolute; top: -5px; width: 20px; height: 20px; margin-left: -10px; border-radius: 50%; background: #fff; border: 5px solid var(--ink); }
.rbar em { position: relative; display: block; height: 24px; font-style: normal; font-size: 13px; font-weight: 600; color: var(--soft); } .rbar em span { position: absolute; top: 7px; transform: translateX(-50%); }
.segs { position: relative; height: 290px; flex: none; }
.segs img { position: absolute; left: 50%; top: 0; height: 100%; transform: translateX(-50%); }
.seg { position: absolute; max-width: 136px; line-height: 1.2; } .seg small { display: block; font-size: 13.5px; font-weight: 600; color: var(--soft); } .seg b { font-size: 20px; font-weight: 700; letter-spacing: -.02em; }
.seg.tr { right: 0; top: 6px; text-align: right; } .seg.la { left: 0; top: 92px; } .seg.ra { right: 0; top: 92px; text-align: right; } .seg.ll { left: 0; top: 200px; } .seg.rl { right: 0; top: 200px; text-align: right; }
.legend { font-size: 14px; color: var(--soft); text-align: center; font-weight: 600; margin-top: -6px; }

#stage main.rep { gap: 10px; padding-top: 14px; padding-bottom: 8px; }
.sum { background: var(--pale); color: #045c43; border-radius: 14px; padding: 11px 16px; font-size: 15px; font-weight: 700; }
.sum.out { background: #fdf3e7; color: #7c3a05; }
#stage table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
#stage tr + tr { border-top: 1px solid #e6edea; }
#stage th { text-align: left; font-size: 16px; font-weight: 500; padding: 8px 8px 8px 0; line-height: 1.2; }
#stage td { text-align: right; font-size: 13px; color: var(--soft); white-space: nowrap; font-weight: 500; }
#stage td b { font-size: 17px; color: var(--ink); font-weight: 700; }
#stage table.dense th, #stage table.dense td { padding-top: 0; padding-bottom: 0; line-height: 23.4px; font-size: 14px; }
#stage table.dense td { font-size: 12.5px; } #stage table.dense td b { font-size: 15px; }
#stage tr.out td b { color: var(--out); }
.qrrow { display: flex; gap: 18px; align-items: center; margin-top: auto; }
#qr { width: 116px; height: 116px; flex: none; }
.qrrow > div { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.qrrow p { font-size: 14px; font-weight: 600; line-height: 1.35; }
.qrrow .btn { flex: none; min-height: 56px; }

#stage main.tk { text-align: center; gap: 10px; }
.num { font-size: 112px; font-weight: 700; letter-spacing: -.055em; line-height: 1; }
.place { font-size: 30px; font-weight: 700; color: var(--deep); letter-spacing: -.02em; }
.state { font-size: 19px; font-weight: 600; background: var(--fill); border-radius: 20px; padding: 22px 18px; margin-top: 26px; }
.state.go { background: var(--go); color: #03231a; font-size: 24px; font-weight: 800; }

/* readings shown while the camera is on a device */
#hud { position: fixed; right: max(28px, 5vw); top: calc(50% + 30px); transform: translateY(-50%); width: 326px; background: #fff; border-radius: 28px; padding: 26px; z-index: 12; box-shadow: 0 30px 80px rgba(0, 0, 0, .45); }
#hud h2 { font-size: 23px; font-weight: 700; line-height: 1.2; letter-spacing: -.02em; }
#hud .hs { font-size: 15px; line-height: 1.45; color: var(--soft); margin: 6px 0 14px; font-weight: 500; }
#hud .hn { font-size: 13px; color: var(--soft); margin: 12px 0; line-height: 1.4; }
#hud .btn { width: 100%; min-height: 48px; font-size: 15px; border-radius: 15px; }
.ro { display: flex; align-items: baseline; gap: 8px; border-top: 1px solid #e6edea; padding: 9px 0; font-variant-numeric: tabular-nums; }
.ro small { font-size: 14.5px; font-weight: 600; color: var(--soft); margin-right: auto; }
.ro b { font-size: 27px; font-weight: 700; letter-spacing: -.03em; white-space: nowrap; }
.ro.first b { font-size: 42px; line-height: 1.1; }
.ro i { font-style: normal; font-size: 14px; font-weight: 600; color: var(--soft); min-width: 42px; }
.wave { width: 100%; display: block; }
.wave path { fill: none; stroke: var(--go); stroke-width: 2.2; stroke-linejoin: round; }
.prog { height: 6px; border-radius: 8px; background: #e6edea; overflow: hidden; margin-top: 8px; }
.prog i { display: block; height: 100%; background: var(--go); border-radius: 8px; }
#flat { background: var(--fill); border-radius: 24px; padding: 18px 22px; }

/* printed ticket */
#slip { position: fixed; left: max(24px, 4vw); top: 78px; bottom: 24px; width: 322px; z-index: 14; display: flex; flex-direction: column; gap: 12px; background: #fff; border-radius: 28px; padding: 18px; box-shadow: 0 30px 80px rgba(0, 0, 0, .45); animation: slip .5s cubic-bezier(.2, .7, .2, 1); }
@keyframes slip { from { opacity: 0; transform: translateY(40px); } }
.sh { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.sh b { font-size: 17px; font-weight: 700; }
.sh .btn { flex: none; min-height: 42px; font-size: 14px; border-radius: 13px; }
.paper { flex: 1; min-height: 0; overflow-y: auto; background: #e9efec; border-radius: 16px; padding: 12px; overscroll-behavior: contain; scrollbar-width: thin; }
.paper canvas { width: 100%; display: block; box-shadow: 0 3px 12px rgba(20, 40, 50, .18); }
#slip > .btn { flex: none; min-height: 50px; font-size: 15px; border-radius: 15px; }

#cap { position: fixed; right: max(24px, 4vw); bottom: 26px; max-width: 330px; background: #fff; color: var(--ink); font-size: 15px; line-height: 1.45; font-weight: 600; padding: 13px 18px; border-radius: 16px; z-index: 13; opacity: 0; transition: opacity .25s; pointer-events: none; }
#cap.on { opacity: 1; }
#hint { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); font-size: 14px; font-weight: 600; color: #c9ddd4; opacity: 0; pointer-events: none; text-align: center; width: min(92vw, 640px); z-index: 4; }
.explore #hint { opacity: 1; }
.flat #hint { opacity: 1; bottom: 4px; font-size: 12px; }

#hots { position: fixed; inset: 0; z-index: 6; pointer-events: none; overflow: hidden; display: none; }
.explore #hots { display: block; }
.hot { position: absolute; left: 0; top: 0; }
.hot.open, .hot:hover { z-index: 2; }
.hot button { position: absolute; left: -20px; top: -20px; width: 40px; height: 40px; pointer-events: auto; border-radius: 50%; }
.hot button::before { content: ''; position: absolute; inset: 11px; border-radius: 50%; background: var(--go); border: 3px solid #fff; box-shadow: 0 2px 10px rgba(0, 0, 0, .5); transition: inset .15s; }
.hot.open button::before, .hot button:hover::before { inset: 8px; }
.hot > div { display: none; position: absolute; left: 22px; top: -18px; background: #fff; border-radius: 16px; padding: 13px 17px; box-shadow: 0 16px 44px rgba(0, 0, 0, .4); width: max-content; max-width: 250px; pointer-events: none; }
.hot.open > div, .hot:hover > div { display: block; }
.hot.flip > div { left: auto; right: 22px; }
.hot b { font-size: 15.5px; font-weight: 700; display: block; line-height: 1.25; }
.hot small { display: block; font-size: 14px; line-height: 1.4; color: var(--soft); margin-top: 3px; font-weight: 500; }

#load { position: fixed; inset: 0; background: #050a08; color: #d3e8df; z-index: 40; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; font-weight: 600; transition: opacity .7s; }
#load.off { opacity: 0; pointer-events: none; }
#load i { width: 64px; height: 64px; background: var(--go); -webkit-mask: url(movo-globe.svg) center/contain no-repeat; mask: url(movo-globe.svg) center/contain no-repeat; animation: pulse 1.2s ease-in-out infinite alternate; }
@keyframes pulse { from { opacity: .35; } }

@media (max-width: 900px) {
  #hud { right: 12px; left: 12px; width: auto; top: auto; bottom: 12px; transform: none; padding: 18px 20px; border-radius: 24px; }
  #hud .hs { margin: 3px 0 8px; font-size: 14px; } #hud .hn { margin: 8px 0; } #hud h2 { font-size: 19px; }
  .ro { padding: 4px 0; } .ro.first b { font-size: 30px; } .ro b { font-size: 21px; }
  #slip { left: 10px; right: 10px; width: auto; top: 66px; bottom: 10px; }
  .paper canvas { max-width: 340px; margin: 0 auto; }
  #cap { left: 12px; right: 12px; bottom: 10px; max-width: none; text-align: center; font-size: 14px; padding: 10px 14px; }
  #hud:not([hidden]) ~ #cap { bottom: auto; top: 66px; }
}
@media (max-width: 560px) {
  #top { padding: 0 10px; height: 56px; gap: 8px; } .logo small, #lang b { display: none; } .logo i { width: 26px; height: 26px; } .logo b { font-size: 16px; }
  .tools { gap: 6px; } #mode { padding: 0 13px; font-size: 13px; } #langs { right: 10px; top: 58px; grid-template-columns: 1fr 1fr; }
  .hot > div { max-width: 200px; }
}
@media (prefers-reduced-motion: reduce) { #load i, #stage main, #stage h1 { animation: none !important; } }
#top::before { content: ''; position: absolute; inset: 0 0 -26px; z-index: -1; background: linear-gradient(rgba(3, 12, 9, .9), rgba(3, 12, 9, .72) 55%, transparent); }
@media (min-width: 901px) { #top::before { background: linear-gradient(90deg, rgba(3, 12, 9, .8), transparent 26%); inset: 0; -webkit-mask: linear-gradient(#000 60%, transparent); mask: linear-gradient(#000 60%, transparent); } }
