/* Chapter 4 · Synaptica Financial City. Glass panels, violet light, gold accents (from the reference pictures). */
#city { position: fixed; inset: 0; z-index: 84; display: none; background: #0b0620; color: #f1ecff; font-family: "Avenir Next Condensed", "DIN Condensed", "Arial Narrow", "Helvetica Neue", "PingFang TC", "Microsoft JhengHei", sans-serif; user-select: none; touch-action: none; overflow: hidden; }
#city.on { display: block; }
#ct-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
#city .glass { background: linear-gradient(160deg, rgba(46,30,110,.72), rgba(18,12,52,.78)); border: 1px solid rgba(190,160,255,.42); box-shadow: 0 0 22px rgba(140,90,255,.28), inset 0 0 26px rgba(160,120,255,.10); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-radius: 12px; }
#city small { display: block; font-size: 9px; letter-spacing: .22em; color: #bfb0ff; text-transform: uppercase; }
#city b { font-weight: 700; }
#city button { font-family: inherit; }
.ct-hud { position: absolute; inset: 0; pointer-events: none; }
#city.panel-open .ct-hud > :not(.ct-keep) { opacity: 0; pointer-events: none; }

/* top left: who and what */
.ct-me { position: absolute; left: max(14px, env(safe-area-inset-left)); top: max(12px, env(safe-area-inset-top)); display: flex; gap: 12px; align-items: center; }
.ct-ava { position: relative; width: 66px; height: 66px; border-radius: 50%; padding: 3px; background: conic-gradient(#ffd98a, #c49bff, #7fd8ff, #ffd98a); box-shadow: 0 0 22px rgba(190,140,255,.6); }
.ct-ava img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; border: 2px solid #1a1040; }
.ct-ava i { position: absolute; right: -4px; bottom: -2px; font-style: normal; font-size: 10px; font-weight: 700; padding: 2px 6px; border-radius: 9px; background: linear-gradient(150deg, #ffe7a8, #e8b04a); color: #2a1640; box-shadow: 0 0 10px rgba(255,200,100,.7); }
.ct-id b { display: flex; align-items: center; gap: 8px; font-size: 18px; letter-spacing: .3em; color: #fff; text-shadow: 0 0 14px rgba(180,140,255,.95); }
.ct-id b .flame { width: 16px; height: 22px; background: radial-gradient(circle at 50% 65%, #fff, #ff8ad8 35%, #7a4dff 75%); clip-path: path("M8 0 C16 10 16 16 8 22 C0 16 0 10 8 0 Z"); filter: drop-shadow(0 0 6px #b48aff); }
.ct-bar { margin-top: 5px; width: 170px; height: 6px; border-radius: 4px; background: rgba(20,12,50,.8); border: 1px solid rgba(200,170,255,.35); overflow: hidden; }
.ct-bar u { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #ff8ad8, #ffd98a); box-shadow: 0 0 8px #ff9ad8; transition: width .4s; }
.ct-bar.day u { background: linear-gradient(90deg, #7fd8ff, #b48aff); box-shadow: 0 0 8px #7fd8ff; }
.ct-id em { display: block; margin-top: 3px; font-style: normal; font-size: 10px; letter-spacing: .12em; color: #d9ccff; }

.ct-quest { position: absolute; left: max(14px, env(safe-area-inset-left)); top: calc(max(12px, env(safe-area-inset-top)) + 84px); width: 288px; padding: 10px 12px 8px; }
.ct-quest h4 { margin: 0 0 6px; display: flex; align-items: center; gap: 8px; font-size: 12px; letter-spacing: .26em; color: #ffe2a0; text-shadow: 0 0 10px rgba(255,200,110,.6); }
.ct-quest h4 .dia { font-size: 11px; }
.ct-q { display: grid; grid-template-columns: 22px 1fr auto; align-items: center; gap: 2px 8px; padding: 6px 0; border-top: 1px solid rgba(190,160,255,.16); }
.ct-q .ic { grid-row: span 2; width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; font-size: 10px; color: #ffe2a0; border: 1px solid rgba(255,220,150,.6); }
.ct-q b { font-size: 13px; letter-spacing: .04em; color: #fff; }
.ct-q span { font-size: 11px; color: #cdbfff; font-family: "Helvetica Neue", "PingFang TC", sans-serif; }
.ct-q em { grid-row: span 2; font-style: normal; font-size: 12px; color: #ffe2a0; }
.ct-q.done b, .ct-q.done span { color: #9fffd8; } .ct-q.done .ic { background: #7dffc8; color: #102018; border-color: #7dffc8; }
.ct-q.target .ic { box-shadow: 0 0 10px #ffd98a; background: rgba(255,210,130,.18); }
.ct-q.locked { opacity: .45; }

/* top centre: compass */
.ct-compass { position: absolute; left: 50%; top: max(12px, env(safe-area-inset-top)); width: min(420px, 44vw); height: 40px; transform: translateX(-50%); overflow: hidden; border-radius: 20px; padding: 0; }
.ct-compass .tape { position: absolute; top: 0; left: 0; height: 100%; white-space: nowrap; }
.ct-compass .tape span { position: absolute; top: 10px; width: 30px; margin-left: -15px; text-align: center; font-size: 13px; color: #e6dcff; letter-spacing: .06em; }
.ct-compass .tape span.c { color: #fff; font-weight: 700; text-shadow: 0 0 8px #b48aff; }
.ct-compass .tape span.t { top: 16px; font-size: 8px; color: rgba(220,200,255,.5); }
.ct-compass .tgt { position: absolute; top: 4px; width: 60px; margin-left: -30px; text-align: center; color: #ffd98a; font-size: 13px; text-shadow: 0 0 10px #ffb04a; }
.ct-compass .tgt i { display: block; font-style: normal; font-size: 9px; letter-spacing: .1em; margin-top: -1px; }
.ct-compass::after { content: ""; position: absolute; left: 50%; top: 0; width: 1px; height: 7px; background: #fff; }

/* top right: money */
.ct-money { position: absolute; right: max(14px, env(safe-area-inset-right)); top: max(12px, env(safe-area-inset-top)); display: flex; gap: 8px; align-items: center; pointer-events: auto; }
.ct-pill { display: flex; align-items: center; gap: 7px; padding: 7px 13px; border-radius: 20px; font-size: 15px; font-weight: 700; letter-spacing: .04em; color: #fff; }
.ct-pill .coin { width: 18px; height: 18px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff4c8, #ffcc55 55%, #b07a1a); box-shadow: 0 0 8px rgba(255,200,90,.8); }
.ct-pill .gem { width: 15px; height: 15px; background: linear-gradient(135deg, #e8d4ff, #9a6bff); clip-path: polygon(50% 0, 100% 40%, 50% 100%, 0 40%); filter: drop-shadow(0 0 6px #b48aff); }
.ct-pill small { display: inline !important; margin-right: 2px; }
.ct-icon { cursor: pointer; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; font-size: 15px; color: #fff; padding: 0; }

/* right: radial map */
.ct-map { position: absolute; right: max(14px, env(safe-area-inset-right)); top: calc(max(12px, env(safe-area-inset-top)) + 56px); width: 178px; height: 178px; border-radius: 50%; padding: 4px; }
.ct-map canvas { width: 100%; height: 100%; border-radius: 50%; display: block; }
.ct-map .zone { position: absolute; left: 50%; bottom: -22px; transform: translateX(-50%); font-size: 10px; letter-spacing: .2em; color: #fff; white-space: nowrap; text-shadow: 0 0 8px #b48aff; }

/* ticker tape */
.ct-tape { position: absolute; left: 50%; transform: translateX(-50%); top: calc(max(12px, env(safe-area-inset-top)) + 48px); width: min(560px, 50vw); height: 24px; overflow: hidden; border-radius: 12px; font-size: 11px; letter-spacing: .08em; }
.ct-tape div { position: absolute; top: 5px; white-space: nowrap; }
.ct-tape span { margin-right: 22px; color: #e6dcff; } .ct-tape b.up { color: #7dffc8; } .ct-tape b.dn { color: #ff6a9a; }
.ct-news { position: absolute; left: 50%; transform: translateX(-50%); top: calc(max(12px, env(safe-area-inset-top)) + 80px); width: min(560px, 76vw); padding: 9px 14px; text-align: center; opacity: 0; transition: opacity .5s, transform .5s; }
.ct-news.on { opacity: 1; }
.ct-news b { display: block; font-size: 14px; color: #fff; letter-spacing: .03em; }
.ct-news span { display: block; margin-top: 3px; font-size: 11.5px; color: #d6cbff; font-family: "Helvetica Neue", "PingFang TC", sans-serif; line-height: 1.4; }
.ct-news.panic { border-color: rgba(255,110,150,.8); box-shadow: 0 0 30px rgba(255,80,130,.45); }
.ct-news.panic b { color: #ffb0c8; }

/* bottom left: hotbar and clock */
.ct-bot { position: absolute; left: max(14px, env(safe-area-inset-left)); bottom: max(14px, env(safe-area-inset-bottom)); display: flex; gap: 8px; align-items: flex-end; pointer-events: auto; }
.ct-slot { cursor: pointer; position: relative; width: 58px; height: 58px; display: grid; place-items: center; border-radius: 12px; font-size: 22px; color: #fff; padding: 0; }
.ct-slot i { position: absolute; left: 5px; top: 3px; font-style: normal; font-size: 9px; color: #ffe2a0; letter-spacing: .05em; }
.ct-slot em { position: absolute; bottom: 3px; left: 0; right: 0; font-style: normal; font-size: 8px; letter-spacing: .12em; color: #cdbfff; }
.ct-slot:hover { border-color: #ffd98a; }
.ct-clock { padding: 8px 12px; min-width: 128px; }
.ct-clock b { display: block; font-size: 16px; letter-spacing: .1em; }
.ct-speed { display: flex; gap: 4px; margin-top: 5px; }
.ct-speed button { cursor: pointer; flex: 1; padding: 4px 0; font-size: 10px; font-weight: 700; color: #e6dcff; background: rgba(20,12,50,.7); border: 1px solid rgba(190,160,255,.35); border-radius: 6px; }
.ct-speed button.on { color: #2a1640; background: linear-gradient(150deg, #ffe7a8, #e8b04a); border-color: #ffe7a8; }

/* bottom right: the watch */
.ct-watch { position: absolute; right: max(14px, env(safe-area-inset-right)); bottom: max(14px, env(safe-area-inset-bottom)); width: 236px; display: flex; gap: 10px; padding: 9px; align-items: center; pointer-events: auto; cursor: pointer; }
.ct-watch img { width: 74px; height: 74px; border-radius: 10px; object-fit: cover; }
.ct-watch b { display: block; font-size: 13px; letter-spacing: .06em; }
.ct-watch .k { display: inline-block; margin-top: 5px; padding: 3px 7px; font-size: 10px; font-weight: 700; letter-spacing: .14em; color: #2a1640; background: linear-gradient(150deg, #ffe7a8, #e8b04a); border-radius: 5px; }
.ct-watch .nw { display: block; margin-top: 4px; font-size: 11px; color: #d6cbff; }

/* the prompt over a door */
.ct-prompt { position: absolute; transform: translate(-50%, -100%); padding: 8px 14px; text-align: center; white-space: nowrap; display: none; pointer-events: auto; cursor: pointer; }
.ct-prompt.on { display: block; }
.ct-prompt b { display: block; font-size: 15px; letter-spacing: .14em; color: #fff; }
.ct-prompt span { display: block; font-size: 10px; letter-spacing: .14em; color: #ffe2a0; margin-top: 3px; }
.ct-dist { position: absolute; transform: translate(-50%, -50%); font-size: 10px; letter-spacing: .1em; color: #ffd98a; text-shadow: 0 0 8px #000, 0 0 10px #ffb04a; display: none; white-space: nowrap; }
.ct-dist.on { display: block; }

.ct-keys { position: absolute; left: 50%; transform: translateX(-50%); bottom: max(14px, env(safe-area-inset-bottom)); padding: 6px 12px; display: flex; gap: 12px; font-size: 10px; letter-spacing: .12em; color: #cdbfff; white-space: nowrap; }
.ct-keys b { display: inline-block; padding: 2px 6px; margin-right: 4px; color: #fff; border: 1px solid rgba(255,220,150,.5); border-radius: 4px; }
#city.touch .ct-keys { display: none; }

/* touch */
.ct-touch { position: absolute; inset: 0; pointer-events: none; display: none; }
#city.touch .ct-touch { display: block; }
.ct-stick { position: absolute; left: 0; bottom: 0; width: 50%; height: 50%; pointer-events: auto; }
.ct-stick .base { position: absolute; display: none; width: 112px; height: 112px; margin: -56px 0 0 -56px; border-radius: 50%; border: 1px solid rgba(220,190,255,.45); background: rgba(40,24,90,.32); }
.ct-stick .knob { position: absolute; left: 50%; top: 50%; width: 48px; height: 48px; margin: -24px 0 0 -24px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, rgba(255,240,210,.75), rgba(200,150,255,.4)); }
.ct-tbtn { position: absolute; pointer-events: auto; border-radius: 50%; display: grid; place-items: center; font-weight: 700; letter-spacing: .12em; color: #fff; text-align: center; }
.ct-tbtn.act { right: max(22px, env(safe-area-inset-right)); bottom: calc(max(14px, env(safe-area-inset-bottom)) + 200px); width: 86px; height: 86px; font-size: 12px; background: radial-gradient(circle at 40% 35%, rgba(255,230,170,.4), rgba(160,110,255,.25) 60%, rgba(18,12,52,.6)); border: 1px solid rgba(255,220,150,.7); }
.ct-tbtn.walk { right: max(34px, calc(env(safe-area-inset-right) + 12px)); bottom: calc(max(14px, env(safe-area-inset-bottom)) + 124px); width: 62px; height: 62px; font-size: 9px; background: rgba(18,12,52,.55); border: 1px solid rgba(200,170,255,.45); }
.ct-tbtn.walk.on { background: rgba(255,210,130,.3); border-color: #ffe2a0; }
#city.touch .ct-bot { left: max(10px, env(safe-area-inset-left)); }
#city.touch .ct-slot { width: 50px; height: 50px; font-size: 19px; }
#city.touch .ct-slot.kb { display: none; }

/* modal panels (bank, central bank, cards) */
.ct-modal { position: absolute; inset: 0; display: none; place-items: center; background: rgba(8,4,24,.45); pointer-events: auto; z-index: 3; }
.ct-modal.on { display: grid; }
.ct-card { position: relative; width: min(760px, calc(100vw - 24px)); max-height: calc(100vh - 40px); overflow-y: auto; padding: 18px 20px; }
.ct-card h3 { margin: 2px 0 8px; font-size: 24px; letter-spacing: .1em; color: #fff; text-shadow: 0 0 16px rgba(190,140,255,.8); }
.ct-card h3 span { font-size: 15px; color: #ffe2a0; margin-left: 8px; letter-spacing: .06em; }
.ct-card p { margin: 6px 0; font-size: 13.5px; line-height: 1.55; color: #e2d9ff; font-family: "Helvetica Neue", "PingFang TC", sans-serif; }
.ct-card .x { position: absolute; right: 12px; top: 10px; cursor: pointer; width: 34px; height: 34px; border-radius: 50%; color: #fff; padding: 0; }
.ct-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 10px; }
.ct-box { padding: 10px 12px; border-radius: 10px; background: rgba(12,8,36,.55); border: 1px solid rgba(190,160,255,.25); }
.ct-box h5 { margin: 0 0 6px; font-size: 10px; letter-spacing: .22em; color: #bfb0ff; font-weight: 700; }
.ct-row { display: flex; justify-content: space-between; gap: 10px; padding: 3px 0; font-size: 13px; color: #e6dcff; }
.ct-row b { color: #fff; font-variant-numeric: tabular-nums; }
.ct-row.tot { border-top: 1px solid rgba(190,160,255,.3); margin-top: 4px; padding-top: 6px; }
.ct-row.tot b { color: #ffe2a0; }
.ct-ok { color: #7dffc8 !important; } .ct-bad { color: #ff7aa2 !important; }
.ct-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.ct-btn { cursor: pointer; padding: 10px 14px; font-size: 12px; font-weight: 700; letter-spacing: .14em; color: #2a1640; background: linear-gradient(150deg, #fff0c8, #e8b04a); border: 1px solid #fff0c8; border-radius: 8px; box-shadow: 0 0 16px rgba(255,200,100,.35); }
.ct-btn.ghost { color: #f1ecff; background: rgba(20,12,50,.75); border-color: rgba(190,160,255,.45); box-shadow: none; }
.ct-btn.buy { background: linear-gradient(150deg, #b8ffe2, #2fd39a); border-color: #b8ffe2; color: #062a1c; box-shadow: 0 0 16px rgba(60,230,160,.4); }
.ct-btn.sell { background: linear-gradient(150deg, #ffc2d6, #ff4f86); border-color: #ffc2d6; color: #2a0614; box-shadow: 0 0 16px rgba(255,80,140,.4); }
.ct-btn:disabled { opacity: .4; cursor: default; }
.ct-amt { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.ct-amt button { cursor: pointer; padding: 6px 10px; font-size: 11px; font-weight: 700; color: #e6dcff; background: rgba(20,12,50,.7); border: 1px solid rgba(190,160,255,.35); border-radius: 6px; }
.ct-amt button.on { color: #2a1640; background: #ffe2a0; border-color: #ffe2a0; }
.ct-quiz { margin-top: 12px; }
.ct-quiz .opts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.ct-quiz .opts button { cursor: pointer; padding: 8px 12px; font-size: 12px; color: #f1ecff; background: rgba(20,12,50,.7); border: 1px solid rgba(190,160,255,.4); border-radius: 8px; }
.ct-quiz .opts button.right { background: rgba(60,230,160,.25); border-color: #7dffc8; }
.ct-quiz .opts button.wrong { background: rgba(255,80,140,.2); border-color: #ff7aa2; }
.ct-msg { min-height: 18px; margin-top: 6px; font-size: 12px; color: #ffe2a0; font-family: "Helvetica Neue", "PingFang TC", sans-serif; }
.ct-spark { width: 100%; height: 120px; display: block; }
.ct-tag { display: inline-block; padding: 2px 7px; margin-left: 6px; font-size: 9px; letter-spacing: .18em; border-radius: 4px; border: 1px solid currentColor; color: #9bb8ff; vertical-align: middle; }

/* ---------------------------------------------------------------- the exchange terminal */
.ct-term { position: absolute; inset: 0; display: none; z-index: 4; pointer-events: auto; background: #0b0620 center/cover no-repeat; }
.ct-term.on { display: block; }
.ct-term::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,6,32,.55), rgba(10,6,32,.78)); }
.tm-wrap { position: absolute; inset: max(10px, env(safe-area-inset-top)) max(10px, env(safe-area-inset-right)) max(10px, env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-left)); display: grid; grid-template-columns: 250px 1fr 290px; grid-template-rows: auto 1fr auto; gap: 10px; }
.tm-top { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; padding: 8px 12px; }
.tm-top .brand { display: flex; align-items: center; gap: 8px; font-size: 15px; letter-spacing: .3em; font-weight: 700; color: #fff; text-shadow: 0 0 12px #b48aff; }
.tm-top .brand .flame { width: 14px; height: 20px; background: radial-gradient(circle at 50% 65%, #fff, #ff8ad8 35%, #7a4dff 75%); clip-path: path("M7 0 C14 9 14 14 7 20 C0 14 0 9 7 0 Z"); }
.tm-tabs { display: flex; gap: 4px; margin-left: 10px; }
.tm-tabs button { cursor: pointer; padding: 7px 12px; font-size: 11px; font-weight: 700; letter-spacing: .16em; color: #d6cbff; background: transparent; border: 1px solid transparent; border-radius: 7px; }
.tm-tabs button.on { color: #fff; border-color: rgba(220,190,255,.6); background: rgba(150,110,255,.25); box-shadow: 0 0 12px rgba(160,120,255,.4); }
.tm-top .acct { margin-left: auto; display: flex; gap: 14px; font-size: 11px; color: #cdbfff; letter-spacing: .08em; align-items: center; }
.tm-top .acct b { display: block; font-size: 14px; color: #fff; letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.tm-top .x { cursor: pointer; width: 34px; height: 34px; border-radius: 50%; color: #fff; padding: 0; }
.tm-side, .tm-main, .tm-right { min-height: 0; overflow: hidden; display: flex; flex-direction: column; }
.tm-side { padding: 10px; overflow-y: auto; }
.tm-side h5, .tm-right h5 { margin: 2px 0 6px; font-size: 10px; letter-spacing: .22em; color: #bfb0ff; }
.tm-wl { display: grid; grid-template-columns: 1fr auto; gap: 0 8px; padding: 7px 8px; border-radius: 8px; cursor: pointer; border: 1px solid transparent; }
.tm-wl:hover { background: rgba(150,110,255,.12); }
.tm-wl.on { background: rgba(150,110,255,.22); border-color: rgba(220,190,255,.45); }
.tm-wl b { font-size: 14px; letter-spacing: .06em; }
.tm-wl span { font-size: 10px; color: #bfb0ff; font-family: "Helvetica Neue", sans-serif; }
.tm-wl .p { text-align: right; font-size: 13px; font-variant-numeric: tabular-nums; }
.tm-wl canvas { grid-column: 1 / -1; width: 100%; height: 22px; margin-top: 3px; }
.tm-main { padding: 10px 12px; }
.tm-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; }
.tm-head .sym { font-size: 22px; letter-spacing: .08em; color: #fff; font-weight: 700; }
.tm-head .nm { font-size: 12px; color: #cdbfff; }
.tm-head .px { font-size: 26px; font-weight: 700; font-variant-numeric: tabular-nums; color: #fff; }
.tm-head .ch { font-size: 14px; font-weight: 700; }
.tm-tools { display: flex; flex-wrap: wrap; gap: 5px; margin: 8px 0 6px; }
.tm-tools button { cursor: pointer; padding: 5px 10px; font-size: 10px; font-weight: 700; letter-spacing: .14em; color: #d6cbff; background: rgba(20,12,50,.7); border: 1px solid rgba(190,160,255,.32); border-radius: 6px; }
.tm-tools button.on { color: #2a1640; background: #ffe2a0; border-color: #ffe2a0; }
.tm-tools .sp { flex: 1; }
.tm-chart { position: relative; flex: 1; min-height: 180px; }
.tm-chart canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.tm-ind { display: none; height: 128px; gap: 8px; margin-top: 8px; }
.tm-ind.on { display: grid; grid-template-columns: 1fr 1fr; }
.tm-ind div { position: relative; border-radius: 8px; background: rgba(10,6,30,.5); border: 1px solid rgba(190,160,255,.2); }
.tm-ind canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.tm-why { margin-top: 8px; font-size: 11.5px; color: #d6cbff; line-height: 1.45; font-family: "Helvetica Neue", "PingFang TC", sans-serif; min-height: 32px; }
.tm-why b { color: #ffe2a0; }
.tm-right { padding: 10px; overflow-y: auto; }
.tm-book { font-variant-numeric: tabular-nums; font-size: 12px; }
.tm-book .r { position: relative; display: flex; justify-content: space-between; padding: 2px 6px; }
.tm-book .r i { position: absolute; top: 1px; bottom: 1px; right: 0; border-radius: 3px; }
.tm-book .a { color: #ff8ab0; } .tm-book .a i { background: rgba(255,80,140,.16); }
.tm-book .b { color: #8affd0; } .tm-book .b i { background: rgba(60,230,160,.14); }
.tm-book .r span { position: relative; }
.tm-book .mid { text-align: center; padding: 5px 0; font-size: 14px; font-weight: 700; color: #fff; border-top: 1px solid rgba(190,160,255,.2); border-bottom: 1px solid rgba(190,160,255,.2); margin: 3px 0; }
.tm-book .mid small { display: inline !important; margin-left: 6px; letter-spacing: .1em; }
.tm-ticket { margin-top: 10px; padding-top: 8px; border-top: 1px solid rgba(190,160,255,.22); }
.tm-ticket .ct-amt button { flex: 1; }
.tm-ticket .two { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 8px; }
.tm-ticket .two .ct-btn { padding: 12px 0; font-size: 13px; }
.tm-pre { margin-top: 6px; font-size: 11px; color: #cdbfff; line-height: 1.5; font-variant-numeric: tabular-nums; }
.tm-pos { margin-top: 10px; padding-top: 8px; border-top: 1px solid rgba(190,160,255,.22); font-size: 12px; }
.tm-bot { grid-column: 1 / -1; display: flex; align-items: center; gap: 16px; padding: 7px 12px; font-size: 11px; letter-spacing: .06em; white-space: nowrap; overflow: hidden; }
.tm-bot .ix b { margin-left: 5px; }
.tm-bot .tip { margin-left: auto; color: #ffe2a0; white-space: normal; text-align: right; font-family: "Helvetica Neue", "PingFang TC", sans-serif; letter-spacing: 0; }
.tm-news { padding: 8px 0; border-top: 1px solid rgba(190,160,255,.16); }
.tm-news b { display: block; font-size: 12.5px; color: #fff; }
.tm-news span { display: block; margin-top: 2px; font-size: 11px; color: #cdbfff; font-family: "Helvetica Neue", "PingFang TC", sans-serif; line-height: 1.4; }
.tm-news i { font-style: normal; font-size: 9px; letter-spacing: .14em; color: #ffe2a0; }
.up { color: #7dffc8 !important; } .dn { color: #ff6a9a !important; }

@media (max-width: 1000px) {
  .tm-wrap { grid-template-columns: 1fr 260px; overflow-y: auto; }
  .tm-side { grid-column: 1 / -1; grid-row: 4; max-height: none; }
}
@media (max-width: 720px) {
  .ct-quest { width: min(250px, 62vw); top: calc(max(10px, env(safe-area-inset-top)) + 76px); padding: 8px 10px 6px; }
  .ct-q b { font-size: 12px; } .ct-q span { display: none; } .ct-q { padding: 4px 0; }
  .ct-ava { width: 52px; height: 52px; } .ct-id b { font-size: 14px; letter-spacing: .2em; } .ct-bar { width: 120px; }
  .ct-compass { display: none; }
  .ct-tape { top: auto; bottom: calc(max(12px, env(safe-area-inset-bottom)) + 70px); width: 92vw; }
  .ct-map { width: 112px; height: 112px; top: calc(max(10px, env(safe-area-inset-top)) + 52px); }
  .ct-money .ct-pill { padding: 5px 9px; font-size: 12px; } .ct-money .ct-pill.gems { display: none; }
  .ct-watch { width: auto; padding: 6px; } .ct-watch img { width: 46px; height: 46px; } .ct-watch > div { display: none; }
  .ct-clock { min-width: 104px; padding: 6px 8px; } .ct-clock b { font-size: 13px; }
  .ct-news { top: auto; bottom: calc(max(12px, env(safe-area-inset-bottom)) + 102px); width: 92vw; }
  .ct-cols { grid-template-columns: 1fr; }
  .tm-wrap { display: flex; flex-direction: column; gap: 8px; overflow-y: auto; }
  .tm-wrap > * { flex: none; }
  .tm-top { order: 0; } .tm-main { order: 1; } .tm-right { order: 2; overflow: visible; } .tm-side { order: 3; overflow: visible; } .tm-bot { order: 4; }
  .tm-top { flex-wrap: wrap; } .tm-top .acct { width: 100%; margin-left: 0; justify-content: space-between; }
  .tm-tabs { margin-left: 0; } .tm-tabs button { padding: 6px 8px; letter-spacing: .08em; }
  .tm-main { height: 470px; }
  .tm-bot .tip { display: none; }
  .ct-card h3 { font-size: 19px; }
}
@media (max-height: 560px) {
  .ct-quest { display: none; }
  .ct-map { width: 104px; height: 104px; }
  .ct-tape { display: none; }
}
/* HQ careers */
.ct-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 4px; }
.ct-tabs button { cursor: pointer; padding: 8px 11px; font-size: 11px; font-weight: 700; letter-spacing: .1em; color: #e6dcff; background: rgba(20,12,50,.7); border: 1px solid rgba(190,160,255,.35); border-radius: 8px; }
.ct-tabs button.on { color: #2a1640; background: #ffe2a0; border-color: #ffe2a0; }
.ct-meter { display: inline-block; vertical-align: middle; width: 70px; height: 6px; margin-right: 6px; border-radius: 3px; background: rgba(190,160,255,.18); overflow: hidden; }
.ct-meter u { display: block; height: 100%; }
.ct-step { cursor: pointer; min-width: 28px; height: 26px; padding: 0 7px; margin: 0 3px; font-size: 13px; font-weight: 700; color: #fff; background: rgba(20,12,50,.8); border: 1px solid rgba(190,160,255,.5); border-radius: 6px; }
.ct-row.dim { opacity: .55; }
.ct-job { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; align-items: center; padding: 7px 0; border-bottom: 1px solid rgba(190,160,255,.15); font-size: 13px; color: #e6dcff; }
.ct-job b { color: #fff; } .ct-job span { grid-column: 1; font-size: 11.5px; opacity: .8; }
.ct-job .ct-btn, .ct-job em { grid-column: 2; grid-row: 1 / span 2; } .ct-job em { font-size: 11px; color: #ffb0c8; font-style: normal; max-width: 150px; text-align: right; }
.ct-trial { position: relative; height: 34px; margin: 14px 0 8px; border-radius: 8px; background: rgba(12,8,36,.8); border: 1px solid rgba(190,160,255,.4); overflow: hidden; }
.ct-trial i { position: absolute; top: 0; bottom: 0; background: rgba(125,255,200,.35); box-shadow: 0 0 14px rgba(125,255,200,.6) inset; }
.ct-trial b { position: absolute; top: -2px; bottom: -2px; width: 4px; margin-left: -2px; background: #ffe2a0; box-shadow: 0 0 10px #ffe2a0; }
