@font-face { font-family: Manrope; src: url(fonts/manrope.woff2) format('woff2'); font-weight: 200 800; font-display: swap; }
:root { --ink: #0b1f1a; --soft: #47615a; --line: #cfe3dc; --go: #10b981; --deep: #047857; --pale: #e9f7f2; --out: #a4500b; }
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; overflow: hidden; background: #dfe5e9; font-family: Manrope, system-ui, sans-serif; color: var(--ink); -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; touch-action: manipulation; }
button:focus-visible { outline: 3px solid #0b1f1a; outline-offset: 2px; }
[hidden] { display: none !important; }
#gl { position: fixed; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; }

/* page bar */
#top { position: fixed; inset: 0 0 auto; height: 60px; padding: 0 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px; background: #071a15; color: #fff; z-index: 30; }
.logo { display: flex; align-items: center; gap: 10px; min-width: 0; }
.logo i, .brand i, .brandbig 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; }
.logo i { width: 30px; height: 30px; flex: none; }
.logo b { display: block; font-size: 17px; font-weight: 800; line-height: 1.15; }
.logo small { display: block; font-size: 12px; color: #a9cfc2; white-space: nowrap; }
.tools { display: flex; gap: 8px; align-items: center; flex: none; }
#langs { display: flex; background: #12342a; border-radius: 10px; padding: 3px; }
#langs button { padding: 7px 12px; border-radius: 8px; font-weight: 700; font-size: 13px; }
#langs button[aria-pressed=true] { background: #fff; color: var(--ink); }
#sound { width: 40px; height: 40px; border-radius: 10px; background: #12342a; display: grid; place-items: center; }
#sound svg { width: 22px; fill: none; stroke: #fff; stroke-width: 1.800; stroke-linecap: round; stroke-linejoin: round; }
#sound[aria-pressed=true] .x, #sound[aria-pressed=false] .w { display: none; }
#mode { background: var(--go); color: #04231a; font-weight: 800; font-size: 14px; height: 40px; padding: 0 16px; border-radius: 10px; white-space: nowrap; }
.flat #mode { display: none; }
#top button:focus-visible { outline-color: #fff; }

/* 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: #f4f8f7; 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 .hero { animation: in .35s ease-out; }
@keyframes in { from { opacity: 0; transform: translateY(14px); } }
#stage header { background: linear-gradient(120deg, #0a8f68, #057a58); color: #fff; padding: 16px 24px 46px; flex: none; }
.bar { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; min-height: 30px; }
.brand { display: flex; align-items: center; gap: 7px; font-weight: 800; font-size: 17px; margin-right: auto; }
.brand i { width: 24px; height: 24px; }
.mini { font-size: 13px; font-weight: 700; padding: 6px 12px; border-radius: 8px; background: rgba(0, 0, 0, .2); }
#stage time { font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; }
#stage header h1 { font-size: 28px; line-height: 1.16; font-weight: 800; letter-spacing: -.01em; text-wrap: balance; }
#stage header p { font-size: 15.500px; line-height: 1.4; margin-top: 6px; font-weight: 500; }
#stage main { flex: 1; min-height: 0; margin-top: -26px; background: #f4f8f7; border-radius: 26px 26px 0 0; padding: 24px 24px 8px; display: flex; flex-direction: column; gap: 12px; overflow: auto; scrollbar-width: none; }
#stage main.center { justify-content: center; }
#stage footer { flex: none; padding: 8px 24px 22px; display: flex; gap: 10px; }
#stage footer:empty { padding: 0; }
.btn { min-height: 56px; padding: 0 20px; border-radius: 16px; font-weight: 800; font-size: 17px; flex: 1; line-height: 1.15; }
.btn.primary { background: var(--deep); color: #fff; flex: 2; }
.btn.ghost { background: #fff; box-shadow: inset 0 0 0 2px var(--line); }
.btn:active { transform: scale(.98); }
.btn[disabled] { opacity: .4; cursor: default; }
.ico { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.700; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.note { font-size: 13.500px; line-height: 1.45; color: var(--soft); font-weight: 500; text-align: center; padding: 4px 8px; }
.note.red { color: #a12b35; }

.hero { flex: 1; min-height: 0; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 30px 26px 24px; background: linear-gradient(170deg, #0a8f68 0, #057a58 45%, #f4f8f7 45.200%); color: #fff; }
.brandbig { display: flex; align-items: center; gap: 9px; font-size: 25px; font-weight: 800; }
.brandbig i { width: 34px; height: 34px; }
.hero h1 { font-size: 34px; line-height: 1.12; font-weight: 800; margin-top: 18px; letter-spacing: -.015em; }
.hero em { font-style: normal; color: #c9f7e4; }
.hero p { font-size: 15.500px; line-height: 1.4; margin-top: 10px; font-weight: 500; max-width: 340px; }
.hero img { flex: 1 1 0; min-height: 0; max-width: 100%; margin: 10px 0 14px; object-fit: contain; }
.hero > * { flex: none; }
.hero > img { flex: 1 1 0; }
.hero .btn { flex: none; width: 100%; min-height: 66px; font-size: 20px; background: var(--ink); margin-top: auto; animation: nudge 2.600s ease-in-out infinite; }
@keyframes nudge { 50% { box-shadow: 0 0 0 9px rgba(16, 185, 129, .25); } }
.nowrow { display: flex; gap: 10px; margin-top: 14px; color: var(--soft); font-size: 15px; font-weight: 600; align-items: baseline; }
.nowrow b { color: var(--ink); font-size: 18px; font-weight: 800; }

.tile { display: flex; align-items: center; gap: 16px; text-align: left; background: #fff; border-radius: 18px; padding: 19px 18px; box-shadow: inset 0 0 0 2px var(--line); }
.tile:hover, .langc:hover { box-shadow: inset 0 0 0 2px var(--go); }
.tile .ico { width: 52px; height: 52px; padding: 11px; border-radius: 14px; background: var(--pale); color: var(--deep); }
.tile b { display: block; font-size: 19px; font-weight: 800; line-height: 1.2; }
.tile small { display: block; font-size: 14.500px; color: var(--soft); font-weight: 500; margin-top: 3px; line-height: 1.3; }
.langc { display: flex; align-items: center; gap: 22px; background: #fff; border-radius: 20px; padding: 30px 26px; box-shadow: inset 0 0 0 2px var(--line); }
.langc svg { width: 78px; border-radius: 6px; }
.langc b { font-size: 28px; font-weight: 800; }

.pick { display: flex; gap: 8px; flex: 1; min-height: 0; align-items: center; }
.pick .pose { width: 112px; max-height: 420px; object-fit: contain; }
.pick > div { flex: 1; display: flex; flex-direction: column; gap: 10px; }
.chk { display: flex; align-items: center; gap: 12px; background: #fff; border-radius: 16px; padding: 14px; text-align: left; box-shadow: inset 0 0 0 2px var(--line); min-height: 70px; }
.chk b { flex: 1; font-size: 16px; line-height: 1.2; hyphens: auto; min-width: 0; }
.chk .tick { width: 26px; height: 26px; border-radius: 50%; padding: 4px; stroke-width: 3; color: transparent; box-shadow: inset 0 0 0 2px var(--line); }
.chk.on { box-shadow: inset 0 0 0 2px var(--go); background: var(--pale); }
.chk.on .tick { background: var(--deep); color: #fff; box-shadow: none; }

.scan { background: #fff; border-radius: 22px; padding: 46px 20px; text-align: center; box-shadow: inset 0 0 0 2px var(--line); position: relative; overflow: hidden; }
.scan .ico { width: 92px; height: 92px; color: var(--deep); stroke-width: 1.300; display: block; margin: 0 auto 16px; }
.scan b { font-size: 21px; }
.scan.read::after { content: ''; position: absolute; left: 12%; right: 12%; height: 4px; border-radius: 4px; background: var(--go); animation: scan 1.200s ease-in-out infinite alternate; top: 18%; }
@keyframes scan { to { top: 70%; } }
.scan.ok { background: var(--pale); box-shadow: inset 0 0 0 2px var(--go); }

.sex { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.sex button { background: #fff; border-radius: 18px; padding: 12px; display: flex; align-items: center; justify-content: center; gap: 14px; box-shadow: inset 0 0 0 2px var(--line); }
.sex svg { height: 62px; fill: var(--soft); }
.sex b { font-size: 17px; }
.sex .on { background: var(--deep); color: #fff; box-shadow: none; }
.sex .on svg { fill: #fff; }
.age { display: flex; align-items: baseline; gap: 10px; background: #fff; border-radius: 16px; padding: 8px 20px; box-shadow: inset 0 0 0 2px var(--go); }
.age small { font-size: 16px; font-weight: 600; color: var(--soft); margin-right: auto; }
.age b { font-size: 34px; font-weight: 800; }
.age i { font-style: normal; font-weight: 600; color: var(--soft); }
.keys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.keys button { background: #fff; border-radius: 14px; height: 56px; font-size: 23px; font-weight: 700; box-shadow: inset 0 0 0 2px var(--line); }
.keys button:active { background: var(--pale); }

.warn { background: #fff3e4; border-radius: 20px; padding: 24px 22px; color: #5b2c05; }
.warn .ico { width: 54px; height: 54px; color: #b9560a; margin-bottom: 12px; }
.warn p { font-size: 17px; font-weight: 700; line-height: 1.4; }
.warn ul { margin: 14px 0 0 20px; font-size: 16.500px; line-height: 1.4; font-weight: 600; }
.warn li { margin-top: 9px; }

.howto { display: flex; gap: 14px; flex: 1; min-height: 0; align-items: center; }
.howto .pose { width: 47%; max-height: 100%; object-fit: contain; min-height: 0; }
.howto .pose.crop { border-radius: 18px; background: #dfeae6; }
.howto > div { flex: 1; min-width: 0; }
.howto p { font-size: 18.500px; font-weight: 700; line-height: 1.36; hyphens: auto; }
.howto ol { list-style: none; margin-top: 18px; display: grid; gap: 10px; }
.howto li { background: var(--pale); border-radius: 14px; padding: 13px 14px; font-size: 15.500px; font-weight: 600; line-height: 1.35; hyphens: auto; }

.boxes { display: grid; gap: 10px; }
.boxes.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.box { background: #fff; border-radius: 16px; padding: 13px 12px; box-shadow: inset 0 0 0 2px #a9dfcd; min-width: 0; }
.box small { display: block; font-size: 12.500px; font-weight: 600; color: var(--soft); line-height: 1.2; hyphens: auto; overflow-wrap: anywhere; }
.box b { display: block; font-size: 27px; font-weight: 800; line-height: 1.2; margin-top: 4px; white-space: nowrap; letter-spacing: -.02em; }
.box i { font-style: normal; font-size: 13px; color: var(--soft); font-weight: 600; min-height: 16px; display: block; }
.box.out { box-shadow: inset 0 0 0 2px #eeb37d; background: #fff8f0; }
.box.out b { color: var(--out); }
.boxes.sm .box { padding: 8px 9px; }
.boxes.sm .box small { font-size: 11.500px; letter-spacing: -.01em; }
.boxes.sm .box b { font-size: 20px; margin-top: 1px; }
.gauge { width: 100%; max-height: 300px; margin: 14px auto 0; }
.gauge .gv { font-size: 34px; font-weight: 800; text-anchor: middle; fill: var(--ink); }
.gauge .gs { font-size: 11.500px; font-weight: 600; text-anchor: middle; fill: var(--soft); }
.gauge .tk { font-size: 9.500px; font-weight: 700; text-anchor: middle; fill: var(--soft); }
.bpc { width: 100%; margin-top: 14px; }
.bpc text { font-size: 12.500px; font-weight: 600; text-anchor: middle; fill: var(--soft); }
.bpc .z { fill: var(--deep); font-weight: 800; }
.segs { position: relative; height: 262px; flex: none; }
.segs img { position: absolute; left: 50%; top: 0; height: 100%; transform: translateX(-50%); }
.seg { position: absolute; width: 122px; white-space: nowrap; background: #fff; border-radius: 12px; padding: 7px 10px; box-shadow: inset 0 0 0 2px var(--line); }
.seg small { display: block; font-size: 12px; font-weight: 600; color: var(--soft); }
.seg b { font-size: 16px; font-weight: 800; }
.seg i { font-style: normal; font-size: 13px; font-weight: 600; color: var(--soft); margin-left: 4px; }
.seg.tr { right: 0; top: 4px; } .seg.la { left: 0; top: 94px; } .seg.ra { right: 0; top: 94px; } .seg.ll { left: 0; top: 184px; } .seg.rl { right: 0; top: 184px; }
.legend { font-size: 12.500px; color: var(--soft); text-align: center; font-weight: 600; }

#stage main.rep { gap: 8px; padding-top: 18px; }
.sum { background: var(--pale); color: #045c43; border-radius: 12px; padding: 9px 14px; font-size: 14px; font-weight: 700; }
.sum.out { background: #fff0e0; color: #7c3a05; }
#stage table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
#stage tr { border-bottom: 1px solid #dce9e4; }
#stage th { text-align: left; font-size: 14.500px; font-weight: 600; padding: 8px 0; }
#stage td { text-align: right; font-size: 13px; color: var(--soft); white-space: nowrap; font-weight: 500; }
#stage td b { font-size: 15.500px; color: var(--ink); font-weight: 800; }
#stage table.dense th, #stage table.dense td { padding: 0; font-size: 12.500px; line-height: 17.400px; }
#stage table.dense td b { font-size: 13.500px; }
#stage tr.out td b { color: var(--out); }
.qrrow { display: flex; gap: 16px; align-items: center; margin-top: auto; padding-bottom: 14px; }
#qr { width: 124px; height: 124px; border-radius: 10px; flex: none; }
.qrrow > div { flex: 1; display: flex; flex-direction: column; gap: 10px; }
.qrrow p { font-size: 14px; font-weight: 600; line-height: 1.35; }
.qrrow .btn { flex: none; }

#stage main.tk { text-align: center; gap: 14px; }
.num { font-size: 104px; font-weight: 800; letter-spacing: -.04em; line-height: 1; color: var(--deep); }
.place { font-size: 30px; font-weight: 800; }
.ahead { font-size: 18px; font-weight: 600; background: #fff; border-radius: 18px; padding: 16px; box-shadow: inset 0 0 0 2px var(--line); }
.ahead b { font-size: 30px; font-weight: 800; vertical-align: -3px; margin-right: 4px; }
.turn { background: var(--deep); color: #fff; border-radius: 20px; padding: 22px; font-size: 25px; font-weight: 800; }
.turn small { display: block; font-size: 17px; font-weight: 600; margin-top: 4px; }

/* readings shown while the camera is on a device */
#hud { position: fixed; right: max(28px, 5vw); top: calc(50% + 30px); transform: translateY(-50%); width: 320px; background: #fff; border-radius: 22px; padding: 24px; z-index: 12; box-shadow: 0 18px 50px rgba(20, 40, 50, .18); }
#hud h2 { font-size: 23px; font-weight: 800; line-height: 1.2; }
#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: 46px; font-size: 15px; }
.ro { display: flex; align-items: baseline; gap: 8px; border-top: 1px solid #dce9e4; padding: 8px 0; font-variant-numeric: tabular-nums; }
.ro small { font-size: 14.500px; font-weight: 600; color: var(--soft); margin-right: auto; }
.ro b { font-size: 27px; font-weight: 800; letter-spacing: -.02em; }
.ro.first b { font-size: 40px; 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: #e4626b; stroke-width: 2.200; stroke-linejoin: round; }
.prog { height: 8px; border-radius: 8px; background: #dce9e4; overflow: hidden; margin-top: 8px; }
.prog i { display: block; height: 100%; background: var(--go); border-radius: 8px; }
#flat { background: #fff; border-radius: 20px; padding: 18px 20px; box-shadow: inset 0 0 0 2px var(--line); }

/* printed ticket */
#slip { position: fixed; left: max(24px, 4vw); top: 84px; bottom: 24px; width: 316px; z-index: 14; display: flex; flex-direction: column; gap: 12px; background: #fff; border-radius: 22px; padding: 16px; box-shadow: 0 18px 50px rgba(20, 40, 50, .2); animation: slip .5s ease-out; }
@keyframes slip { from { opacity: 0; transform: translateY(40px); } }
.sh { display: flex; align-items: center; justify-content: space-between; }
.sh b { font-size: 17px; font-weight: 800; }
.sh .btn { flex: none; min-height: 40px; font-size: 14px; border-radius: 12px; }
.paper { flex: 1; min-height: 0; overflow-y: auto; background: #e6ebee; border-radius: 12px; padding: 12px; overscroll-behavior: contain; }
.paper canvas { width: 100%; display: block; box-shadow: 0 3px 12px rgba(20, 40, 50, .2); }
#slip > .btn { flex: none; min-height: 48px; font-size: 15px; }

#cap { position: fixed; right: max(24px, 4vw); bottom: 26px; max-width: 320px; background: #071a15; color: #fff; font-size: 15px; line-height: 1.45; font-weight: 600; padding: 12px 16px; border-radius: 14px; z-index: 13; opacity: 0; transition: opacity .25s; pointer-events: none; }
#cap.on { opacity: 1; }
#hint { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); font-size: 13.500px; font-weight: 600; color: #33474f; 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:not(.open):not(:hover) > div { display: none; }
.hot button { position: absolute; left: -18px; top: -18px; width: 36px; height: 36px; pointer-events: auto; }
.hot button::before { content: ''; position: absolute; inset: 7px; border-radius: 50%; background: var(--deep); border: 3px solid #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .35); }
.hot > div { position: absolute; left: 18px; top: -15px; background: #fff; border-radius: 10px; padding: 6px 11px; box-shadow: 0 4px 16px rgba(20, 40, 50, .18); width: max-content; max-width: 230px; pointer-events: none; }
.hot.flip > div { left: auto; right: 18px; }
.hot b { font-size: 13.500px; font-weight: 800; display: block; }
.hot small { display: none; font-size: 13px; line-height: 1.4; color: var(--soft); margin-top: 3px; font-weight: 500; }
.hot.open small { display: block; }

#load { position: fixed; inset: 0; background: #dfe5e9; z-index: 40; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; font-weight: 700; transition: opacity .5s; }
#load.off { opacity: 0; pointer-events: none; }
#load i { width: 64px; height: 64px; background: var(--deep); -webkit-mask: url(movo-globe.svg) center/contain no-repeat; mask: url(movo-globe.svg) center/contain no-repeat; animation: pulse 1.200s 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: 16px 18px; border-radius: 20px; }
  #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: 72px; 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: 9px 14px; }
  #hud:not([hidden]) ~ #cap { bottom: auto; top: 70px; }
}
@media (max-width: 560px) {
  #top { padding: 0 10px; height: 56px; gap: 8px; } .logo small { display: none; } .logo i { width: 26px; height: 26px; } .logo b { font-size: 15px; }
  .tools { gap: 6px; } #langs button { padding: 7px 9px; } #sound { width: 38px; } #mode { padding: 0 11px; font-size: 13px; }
  .hot > div { display: none; } .hot.open > div { display: block; max-width: 200px; }
}
@media (prefers-reduced-motion: reduce) { .hero .btn, #load i { animation: none; } }
