/* online.css — the online game's lobby (js/online/lobby.js) and its HUD bits (js/online/world.js), in the K look
   (css/kui.css: cream body, sky title bar, ink outlines). Sizes in --u like the rest of the HUD. */
.ol-lobby { z-index: 60; display: grid; place-items: center; background: rgba(10, 8, 24, 0.72); }
.ol-lobby[hidden] { display: none; }
.ol-win { width: min(calc(1080 * var(--u)), 94vw); max-height: 92vh; display: flex; flex-direction: column; }
.ol-body { padding: calc(18 * var(--u)) calc(22 * var(--u)) calc(14 * var(--u)); display: flex; flex-direction: column; gap: calc(14 * var(--u)); overflow: auto; }
.ol-status.bad { background: linear-gradient(#081b2b, #081b2b); }
.ol-status.bad .i { background: linear-gradient(#17364b, #e0525e); }
.ol-acct { padding: calc(10 * var(--u)) calc(14 * var(--u)); }
.ol-acct[hidden] { display: none; }
.ol-acct-row { display: flex; align-items: center; justify-content: space-between; gap: calc(10 * var(--u)); flex-wrap: wrap; }
.ol-acct-name b { font-weight: 600; }
.ol-acct-btns { display: flex; gap: calc(8 * var(--u)); flex-wrap: wrap; }
.ol-acct-btns [hidden] { display: none; }
.ol-form { margin-top: calc(10 * var(--u)); display: grid; gap: calc(8 * var(--u)); }
.ol-form[hidden], .ol-form [hidden] { display: none; }
.ol-form-title { font-weight: 600; }
.ol-form input {
  font: 400 calc(18 * var(--u)) / 1.3 'Mitr', sans-serif; padding: calc(8 * var(--u)) calc(12 * var(--u)); color: var(--ink);
  border: calc(3 * var(--u)) solid #37637b; border-radius: calc(12 * var(--u)); background: #10283b;
}
.ol-form-btns { display: flex; gap: calc(8 * var(--u)); flex-wrap: wrap; }
.ol-err { color: #dc8d96; min-height: 1.2em; }
.ol-slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: calc(14 * var(--u)); }
.ol-slot { display: flex; flex-direction: column; align-items: center; gap: calc(4 * var(--u)); padding: calc(12 * var(--u)); min-height: calc(330 * var(--u)); justify-content: flex-end; }
.ol-slot.active { border-color: #3c7d98; box-shadow: 0 0 0 calc(3 * var(--u)) #416e87; }
.ol-slot.empty { justify-content: center; }
.ol-slot-hero { width: calc(180 * var(--u)); height: calc(200 * var(--u)); }
.ol-slot-name { font-weight: 700; font-size: calc(22 * var(--u)); }
.ol-slot-sub, .ol-slot-map { font-size: calc(16 * var(--u)); opacity: 0.85; }
.ol-slot-n { font-weight: 600; opacity: 0.7; }
.ol-slot-empty { font-size: calc(26 * var(--u)); opacity: 0.45; margin: calc(20 * var(--u)) 0; }
.ol-slot .kw-btn { margin-top: calc(8 * var(--u)); }
.ol-foot { display: flex; justify-content: space-between; font-size: calc(15 * var(--u)); opacity: 0.75; }
.ol-foot a { color: #8ee7f7; }
@media (max-width: 760px) { .ol-slots { grid-template-columns: 1fr; } .ol-slot { min-height: 0; } }

/* the connection badge over the minimap (world.js) */
.ol-badge {
  position: fixed; right: calc(14 * var(--u)); bottom: calc(10 * var(--u)); z-index: 4; pointer-events: none; /* (under the windows) */
  font: 500 calc(15 * var(--u)) / 1 'Mitr', sans-serif; color: #e8f7ff; padding: calc(5 * var(--u)) calc(10 * var(--u));
  border-radius: calc(10 * var(--u)); background: rgba(20, 22, 40, 0.72); border: calc(2 * var(--u)) solid rgba(255, 255, 255, 0.15);
}
/* (a phone held upright: the EXP bars run the screen's whole width along its foot and the badge lay over the Job bar and its number;
   above the bars, in the gap between the stick and the attack button, cut with … when a long map name does not fit, 11-11) */
html.mob-port .ol-badge { right: auto; left: calc(env(safe-area-inset-left) + 116 * var(--m)); bottom: calc(env(safe-area-inset-bottom) + 22 * var(--m)); max-width: calc(164 * var(--m));
  box-sizing: border-box; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: max(9px, calc(15 * var(--u))); }
.ol-badge i { display: inline-block; width: 0.6em; height: 0.6em; border-radius: 50%; background: #23516b; margin-right: 0.4em; }
.ol-badge.bad i { background: #ee5a5a; }
.ol-badge.wait i { background: #e8b34a; } /* (a map move waiting for the hero's save: world.js) */
/* (upright, the waiting line wraps to two lines in the same width: cut with …, its save words were the part lost) */
html.mob-port .ol-badge.wait { white-space: normal; line-height: 1.35; }

/* "ระหว่างที่คุณไม่อยู่": the offline farm's result as a reward screen (js/online/away.js; the owner's look B, 2026-10-27).
   --k is the screen's unit: 1px on a PC, smaller to fit a phone (portrait: its width; landscape: two columns, its height).
   No text may wrap where it should not or lose its marks ("ระวังเรื่อง text ตก"): one-line texts are nowrap (a long
   name ends in "…"), the numbers shrink with their digits (.m / .s), the Thai lines keep line-height for the vowels
   and tone marks above and below, and small text never goes under 11px. The box scrolls rather than clip. */
.ol-away {
  --k: min(1px, calc((100vw - 24px) / 470), calc((100vh - 24px) / 760)); --oa-ink: #081b2b;
  position: fixed; inset: 0; z-index: 55; display: flex; overflow: auto; -webkit-tap-highlight-color: transparent;
  background: radial-gradient(circle at 50% 28%, rgba(70, 52, 120, .78), rgba(8, 6, 16, .93) 62%);
  font-family: 'Mitr', sans-serif; color: #e8f7ff; text-align: center;
}
.ol-away .oa-box { position: relative; margin: auto; width: calc(460 * var(--k)); padding: calc(10 * var(--k)) 0 calc(16 * var(--k)); animation: oa-in .3s ease-out; }
.ol-away .oa-side, .ol-away .oa-main { display: flex; flex-direction: column; align-items: center; min-width: 0; }
.ol-away .oa-stage { position: relative; width: 100%; height: calc(205 * var(--k)); }
.ol-away .oa-rays { position: absolute; left: 50%; top: 50%; width: calc(470 * var(--k)); height: calc(470 * var(--k)); border-radius: 50%; pointer-events: none;
  transform: translate(-50%, -50%); background: repeating-conic-gradient(from 0deg, rgba(255, 226, 120, .55) 0 10deg, rgba(255, 226, 120, 0) 10deg 24deg);
  -webkit-mask: radial-gradient(circle, #000 25%, transparent 68%); mask: radial-gradient(circle, #000 25%, transparent 68%); animation: oa-spin 14s linear infinite; }
.ol-away .oa-chest { position: absolute; left: 50%; top: 50%; width: calc(215 * var(--k)); transform: translate(-50%, -46%);
  filter: drop-shadow(0 0 calc(30 * var(--k)) rgba(255, 210, 90, .8)); animation: oa-drop .5s cubic-bezier(.3, 1.6, .5, 1) backwards .1s; }
.ol-away.oa-none .oa-chest { filter: drop-shadow(0 calc(6 * var(--k)) 0 rgba(0, 0, 0, .35)); width: calc(190 * var(--k)); }
.ol-away .oa-spark { position: absolute; width: calc(26 * var(--k)); animation: oa-twinkle 1.6s ease-in-out infinite; pointer-events: none; }
.ol-away .oa-spark.oa-s1 { left: 10%; top: 20%; width: calc(28 * var(--k)); }
.ol-away .oa-spark.oa-s2 { left: 84%; top: 14%; width: calc(34 * var(--k)); animation-delay: .4s; }
.ol-away .oa-spark.oa-s3 { left: 92%; top: 70%; width: calc(22 * var(--k)); animation-delay: .8s; }
.ol-away .oa-spark.oa-s4 { left: 4%; top: 72%; width: calc(20 * var(--k)); animation-delay: 1.2s; }
.ol-away .oa-spark.oa-s5 { left: 60%; top: 2%; width: calc(18 * var(--k)); animation-delay: .6s; }
.ol-away .oa-spirit { position: absolute; left: 0; top: calc(70 * var(--k)); width: max(118px, calc(150 * var(--k))); z-index: 1; text-align: left; }
.ol-away .oa-spirit img { display: block; width: calc(96 * var(--k)); margin: calc(8 * var(--k)) 0 0 calc(-6 * var(--k)); }
.ol-away .oa-say { order: -1; margin: 0; font: 500 max(11px, calc(13 * var(--k))) / 1.4 'Mitr', sans-serif; color: var(--oa-ink); background: #10283b;
  border: calc(3 * var(--k)) solid var(--oa-ink); border-radius: calc(14 * var(--k)); padding: calc(6 * var(--k)) calc(10 * var(--k)); }
.ol-away .oa-spirit { display: flex; flex-direction: column; }
.ol-away .oa-ribbon { position: relative; width: calc(430 * var(--k)); height: calc(84 * var(--k)); margin-top: calc(-24 * var(--k));
  background: url(../assets/ui/mm_banner.png) center / 100% 100% no-repeat; display: flex; align-items: center; justify-content: center; }
.ol-away .oa-ribbon h3 { margin: calc(-12 * var(--k)) 0 0; white-space: nowrap; font: 600 calc(26 * var(--k)) / 1.45 'Mitr', sans-serif; color: #e8f7ff;
  -webkit-text-stroke: calc(5 * var(--k)) #051321; paint-order: stroke fill; }
.ol-away .oa-where { display: flex; flex-wrap: wrap; justify-content: center; gap: calc(6 * var(--k)); max-width: 100%; margin: calc(6 * var(--k)) 0 calc(14 * var(--k)); }
.ol-away .oa-chip { max-width: 100%; box-sizing: border-box; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font: 500 max(12px, calc(15 * var(--k))) / 1.6 'Mitr', sans-serif;
  color: #e8f7ff; padding: 0 calc(12 * var(--k)); border-radius: 999px; background: rgba(0, 0, 0, .38); border: 1px solid rgba(255, 255, 255, .18); }
.ol-away .oa-nums { display: flex; justify-content: center; gap: calc(14 * var(--k)); width: 100%; }
.ol-away .oa-num { flex: 1 1 0; min-width: 0; }
.ol-away .oa-num b { display: block; white-space: nowrap; font: 800 calc(34 * var(--k)) / 1.2 'Baloo 2', sans-serif; -webkit-text-stroke: calc(6 * var(--k)) var(--oa-ink); paint-order: stroke fill; }
.ol-away .oa-num.oa-m b { font-size: calc(28 * var(--k)); }
.ol-away .oa-num.oa-s b { font-size: calc(22 * var(--k)); }
.ol-away .oa-num small { display: block; white-space: nowrap; font: 500 max(11px, calc(14 * var(--k))) / 1.5 'Mitr', sans-serif; color: #c8e1ee; }
.ol-away .oa-num.oa-k b { color: #ffb36b; }
.ol-away .oa-num.oa-x b { color: #e8f7ff; }
.ol-away .oa-num.oa-j b { color: #c8e1ee; }
.ol-away.oa-none .oa-num b { color: #a7c5d9; }
.ol-away .oa-lv { display: flex; align-items: center; justify-content: center; gap: calc(10 * var(--k)); width: 100%; margin-top: calc(12 * var(--k)); }
.ol-away .oa-bar { position: relative; flex: 0 1 calc(270 * var(--k)); min-width: 0; height: calc(24 * var(--k)); min-height: 18px; box-sizing: border-box; border-radius: 999px; overflow: hidden;
  background: #081b2b; border: calc(3 * var(--k)) solid var(--oa-ink); box-shadow: 0 0 0 calc(2 * var(--k)) #416e87; display: flex; align-items: center; justify-content: center; }
.ol-away .oa-bar i { position: absolute; inset: 0 auto 0 0; width: 100%; background: linear-gradient(90deg, #17364b, #f2b632); transform-origin: left;
  animation: oa-fill .8s ease-out backwards var(--d, .9s); }
.ol-away .oa-lv.oa-job .oa-bar { box-shadow: 0 0 0 calc(2 * var(--k)) #416e87; }
.ol-away .oa-lv.oa-job .oa-bar i { background: linear-gradient(90deg, #17364b, #185776); }
.ol-away .oa-bar span { position: relative; white-space: nowrap; font: 700 max(11px, calc(15 * var(--k))) / 1 'Baloo 2', sans-serif; color: var(--oa-ink); padding-top: calc(2 * var(--k)); }
.ol-away .oa-up { flex: none; white-space: nowrap; font: 800 calc(21 * var(--k)) / 1.3 'Baloo 2', sans-serif; letter-spacing: .04em; color: #c8e1ee;
  -webkit-text-stroke: calc(5 * var(--k)) #6b3b00; paint-order: stroke fill; animation: oa-pop .4s backwards calc(var(--d, .9s) + .7s); }
.ol-away .oa-lv.oa-job .oa-up { color: #c8e1ee; -webkit-text-stroke-color: #1d4f7a; }
.ol-away .oa-loot { display: flex; flex-wrap: wrap; justify-content: center; gap: calc(12 * var(--k)) calc(14 * var(--k)); max-width: calc(440 * var(--k)); margin: calc(18 * var(--k)) 0 calc(4 * var(--k)); }
.ol-away .oa-slot { position: relative; width: calc(58 * var(--k)); height: calc(58 * var(--k)); min-width: 40px; min-height: 40px; padding: 0; cursor: pointer;
  border-radius: calc(12 * var(--k)); border: calc(3 * var(--k)) solid var(--oa-ink); background: radial-gradient(circle at 50% 40%, #10283b, #17364b);
  display: grid; place-items: center; box-shadow: 0 0 calc(16 * var(--k)) rgba(255, 220, 120, .55), 0 calc(3 * var(--k)) 0 rgba(0, 0, 0, .3);
  animation: oa-pop .35s backwards calc(1.2s + var(--i, 0) * .12s); }
.ol-away .oa-slot img { width: 82%; pointer-events: none; }
.ol-away .oa-slot b { position: absolute; right: calc(-6 * var(--k)); bottom: calc(-8 * var(--k)); white-space: nowrap; font: 700 max(11px, calc(15 * var(--k))) / 1.1 'Baloo 2', sans-serif;
  color: #e8f7ff; background: var(--oa-ink); border-radius: calc(9 * var(--k)); padding: calc(3 * var(--k)) calc(6 * var(--k)) calc(1 * var(--k)); }
.ol-away .oa-slot.oa-more { cursor: default; font: 800 max(13px, calc(20 * var(--k))) / 1 'Baloo 2', sans-serif; color: var(--oa-ink); }
.ol-away .oa-name { max-width: 100%; margin: calc(10 * var(--k)) 0 calc(14 * var(--k)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  font: 500 max(11px, calc(14 * var(--k))) / 1.6 'Mitr', sans-serif; color: #e8f7ff; }
.ol-away .oa-claim:focus-visible { outline: calc(3 * var(--k)) solid rgba(255, 246, 220, .85); outline-offset: calc(3 * var(--k)); }
.ol-away .oa-claim { height: auto; min-width: calc(200 * var(--k)); padding: calc(8 * var(--k)) calc(30 * var(--k)); margin-top: calc(4 * var(--k));
  font: 700 max(15px, calc(21 * var(--k))) / 1.4 'Mitr', sans-serif; border-width: calc(3 * var(--k)); border-radius: calc(14 * var(--k)); -webkit-text-stroke: 0; }
.ol-away .oa-note { max-width: calc(420 * var(--k)); margin: calc(10 * var(--k)) 0 0; font: 500 max(11px, calc(13 * var(--k))) / 1.5 'Mitr', sans-serif; color: #c8e1ee; }
.ol-away .oa-ph { white-space: nowrap; } /* (a phrase of the spirit's line or a note stays whole) */
.ol-away .oa-say, .ol-away .oa-note { text-wrap: balance; }
.ol-away .oa-quota { margin: calc(8 * var(--k)) 0 0; font: 400 max(11px, calc(12.5 * var(--k))) / 1.5 'Mitr', sans-serif; color: #c8e1ee; }
.ol-away .oa-skip { margin: calc(6 * var(--k)) 0 0; font: 400 max(11px, calc(12 * var(--k))) / 1.5 'Mitr', sans-serif; color: #a7c5d9; }
.ol-away.oa-done .oa-skip { visibility: hidden; }
.ol-away.oa-done .oa-chest, .ol-away.oa-done .oa-bar i, .ol-away.oa-done .oa-up, .ol-away.oa-done .oa-slot { animation: none; }
.ol-away.oa-still *, .ol-away.oa-still { animation: none !important; }
@media (prefers-reduced-motion: reduce) { .ol-away *, .ol-away { animation: none !important; } }
@keyframes oa-in { from { opacity: 0; transform: scale(.94); } }
@keyframes oa-spin { to { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes oa-twinkle { 0%, 100% { opacity: .35; transform: scale(.7); } 50% { opacity: 1; transform: scale(1); } }
@keyframes oa-drop { from { opacity: 0; transform: translate(-50%, -90%) scale(.6); } }
@keyframes oa-fill { from { transform: scaleX(0); } }
@keyframes oa-pop { 0% { opacity: 0; transform: scale(0); } 70% { transform: scale(1.15); } 100% { opacity: 1; transform: scale(1); } }
/* a phone on its side (short and wide): the chest on the left, the result on the right */
@media (max-height: 540px) and (min-aspect-ratio: 5/4) {
  .ol-away { --k: min(1px, calc((100vw - 24px) / 900), calc((100vh - 16px) / 430)); }
  .ol-away .oa-box { width: calc(880 * var(--k)); display: grid; grid-template-columns: 1fr 1fr; align-items: center; column-gap: calc(20 * var(--k)); padding: calc(8 * var(--k)) 0; }
  .ol-away .oa-stage { height: calc(190 * var(--k)); }
  .ol-away .oa-rays { width: calc(400 * var(--k)); height: calc(400 * var(--k)); }
  .ol-away .oa-chest { width: calc(200 * var(--k)); }
  .ol-away .oa-ribbon { width: calc(400 * var(--k)); height: calc(78 * var(--k)); margin-top: calc(-24 * var(--k)); }
  .ol-away .oa-ribbon h3 { font-size: calc(24 * var(--k)); }
}

/* (put back 2026-10-22 with js/online/hud.js: the owner, "ตัวแสดงผล fps หายไปไหนอ่ะ"; the channel picker stays gone, js/online/chwin.js has the CH chip) */
/* Status strip: FPS, signal, channel, server-wide and per-map counts (online/hud.js).
   Touch uses Unity's safe-area top-left row ABOVE the hero; PC keeps the minimap corner. */
html.nc-online #hud .netlist { display: none; }
.ol-hud, #hud > .ol-meta {
  --ol-cream: #10283b; --ol-muted: #17364b; --ol-gold: #23516b; --ol-good: #23516b; --ol-fair: #ffd166; --ol-poor: #ff6b66;
  color: var(--ol-cream); pointer-events: auto;
  font: 400 clamp(11px, calc(16 * var(--u)), 18px) / 1.5 'Mitr', sans-serif;
  text-shadow: 0 1px 2px #061421, 1px 0 2px #061421, -1px 0 2px #061421;
}
.ol-hud { position: absolute; z-index: 7; right: calc(14 * var(--u)); top: calc(360 * var(--u)); width: max(calc(262 * var(--u)), 190px); max-width: calc(100vw - 24px); }
/* (PC: the machine's line is #hud's own child on the top edge, placed by online/hud.js place()) */
#hud > .ol-meta { position: absolute; z-index: 7; top: 6px; right: 300px; }
.ol-hud[hidden], .ol-meta[hidden] { display: none; }
.ol-server, .ol-meta { display: flex; align-items: center; justify-content: flex-end; gap: .5em; white-space: nowrap; }
.ol-server { min-height: 1.7em; }
.ol-total { color: var(--ol-gold); font-weight: 600; font-variant-numeric: tabular-nums; }
.ol-dot { width: .45em; height: .45em; border-radius: 50%; background: var(--ol-good); box-shadow: 0 1px 3px #37637b; flex-shrink: 0; }
.ol-hud.disconnected .ol-dot { background: var(--ol-poor); }
.ol-hud.disconnected .ol-state { color: var(--ol-poor); }
.ol-meta { color: var(--ol-muted); font-size: .9em; gap: .8em; }
.ol-channel, .ol-ping, .ol-fps { font-family: 'Baloo 2', 'Mitr', sans-serif; font-weight: 700; font-variant-numeric: tabular-nums; }
.ol-fps { color: var(--ol-cream); }
.ol-channel {
  display: inline-flex; align-items: center; justify-content: center; gap: .25em; min-height: 24px; padding: 1px 6px;
  border: 1px solid #fff3cf66; border-radius: 6px; background: #2a2435b8; color: var(--ol-cream);
  font-size: inherit; line-height: 1; text-shadow: inherit; cursor: pointer; pointer-events: auto;
}
.ol-channel::after { content: '⌄'; font: 600 .9em / 1 sans-serif; }
.ol-channel:hover:not(:disabled), .ol-channel[aria-expanded="true"] { background: #16445c; border-color: var(--ol-gold); }
.ol-channel:focus-visible { outline: 2px solid var(--ol-gold); outline-offset: 2px; }
.ol-channel:disabled { cursor: default; opacity: .6; }
.ol-channel[hidden] { display: none; }
.ol-latency { display: inline-flex; align-items: center; gap: .3em; color: var(--ol-muted); }
.ol-latency[data-quality="good"] { color: var(--ol-good); }
.ol-latency[data-quality="fair"] { color: var(--ol-fair); }
.ol-latency[data-quality="poor"] { color: var(--ol-poor); }
.ol-signal { display: inline-flex; align-items: flex-end; gap: 2px; height: .8em; filter: drop-shadow(0 1px 1px var(--ink)); }
.ol-signal i { width: 2px; height: 35%; border-radius: 1px; background: currentColor; opacity: .3; }
.ol-signal i:nth-child(2) { height: 65%; }
.ol-signal i:nth-child(3) { height: 100%; }
[data-quality="good"] .ol-signal i, [data-quality="fair"] .ol-signal i:nth-child(-n+2), [data-quality="poor"] .ol-signal i:first-child { opacity: 1; }
/* Unity StatusBar: x12/y3, height15; the portrait starts below it at y21. Reserve the web row's
   measured height as well, so phone and tablet text can stay readable without overlapping the hero. */
html.nc-online.mob #hud { --ol-card-top: max(calc(21 * var(--m)), calc(var(--ol-status-height, 0px) + 6 * var(--m))); }
html.mob .ol-hud {
  display: flex; flex-direction: column; align-items: stretch; gap: 2px;
  left: calc(env(safe-area-inset-left) + 12 * var(--m)); right: auto; top: calc(env(safe-area-inset-top) + 3 * var(--m));
  width: max-content; max-width: calc(100vw - env(safe-area-inset-left) - env(safe-area-inset-right) - 24 * var(--m));
  min-height: calc(15 * var(--m)); font-size: clamp(10px, calc(11 * var(--m)), 16px);
}
html.mob .ol-hud[hidden] { display: none; }
html.mob .ol-meta { display: flex; justify-content: space-between; font-size: inherit; }
html.mob .ol-server { justify-content: flex-start; gap: .35em; }
html.mob .ol-dot { display: none; }
html.mob .ol-channel { min-width: 44px; min-height: 44px; padding: 0 6px; }
html.nc-online.mob #hud .cframe { top: calc(env(safe-area-inset-top) + var(--ol-card-top)); }
html.nc-online.mob #hud .buffs { top: calc(env(safe-area-inset-top) + var(--ol-card-top) + 10 * var(--u)); }
html.nc-online.mob #hud .partybox { top: calc(env(safe-area-inset-top) + var(--ol-card-top) + 205 * var(--u)); }
html.nc-online.mob-port #hud .tframe { top: calc(env(safe-area-inset-top) + var(--ol-card-top) + 188 * var(--u)); }
html.nc-online.mob-port.mb-party #hud .tframe { top: calc(env(safe-area-inset-top) + var(--ol-card-top) + 204 * var(--m)); }
/* layout B (css/mobile.css, 2026-10-27): upright the target frame sits under the lessons' tracker (its foot: --ls-bottom,
   js/lessons.js); on a phone 360 px across or more the online box goes under the minimap (its two counts one under the
   other, so it fits that column at its own size: scaled down its words fell under 9 px), the hero's frame up to the top
   edge and the menu under the box (where each ends: js/online/hud.js place()); in a party the target frame goes under
   the menu on the right. A narrower phone (an iPhone SE) keeps the box over the hero's frame: both columns do not fit */
html.nc-online.mob-port #hud .tframe { top: max(calc(env(safe-area-inset-top) + var(--ol-card-top) + 188 * var(--u)), calc(var(--ls-bottom, 0px) + 6 * var(--m))); }
@media (min-width: 360px) {
  html.nc-online.mob-port #hud { --ol-card-top: calc(8 * var(--m)); }
  html.nc-online.mob-port .ol-hud { left: auto; right: calc(env(safe-area-inset-right) + 8 * var(--m)); top: var(--ol-top, calc(env(safe-area-inset-top) + 128 * var(--m))); }
  html.nc-online.mob-port .ol-population { flex-direction: column; flex-wrap: nowrap; align-items: flex-end; gap: 0; }
  html.nc-online.mob-port .ol-pop-panel { left: auto; right: 0; }
  html.nc-online.mob-port .mb-menu { top: max(calc(env(safe-area-inset-top) + 196 * var(--m)), calc(var(--ol-foot, 0px) + 7 * var(--m))); }
  html.nc-online.mob-port.mb-party #hud .tframe { top: calc(max(calc(env(safe-area-inset-top) + 196 * var(--m)), calc(var(--ol-foot, 0px) + 7 * var(--m))) + 58 * var(--m)); }
}

/* Both counts share one server sample. The map detail is opened on demand. */
.ol-population { position: relative; display: grid; gap: 2px; width: 100%; min-height: 44px; padding: 5px 10px; border: 1px solid #87c7ef70; border-radius: 9px; background: #192437bf; color: inherit; font: inherit; text-shadow: inherit; cursor: pointer; }
.ol-population:hover, .ol-population[aria-expanded="true"] { background: #081b2b; border-color: #416e87; }
.ol-population:focus-visible { outline: 2px solid #416e87; outline-offset: 2px; }
.ol-current-map { display: flex; align-items: center; justify-content: flex-end; gap: .5em; color: #e8f7ff; white-space: nowrap; }
.ol-map-total { color: #c8e1ee; font-weight: 600; font-variant-numeric: tabular-nums; }
.ol-caret { display: inline-block; width: .42em; height: .42em; margin-top: -.2em; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg); opacity: .8; }
.ol-pop-panel { position: absolute; top: calc(100% + 6px); right: 0; width: min(330px, calc(100vw - 24px)); box-sizing: border-box; padding: 0 10px 10px; border: 2px solid #183c54; border-radius: 12px; background: #10283b; color: #e8f7ff; text-shadow: none; box-shadow: 0 5px 20px #0005; font: 400 13px / 1.5 'Mitr', sans-serif; }
.ol-pop-panel[hidden] { display: none; }
.ol-pop-panel header { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 -10px 6px; padding: 0 6px 0 12px; border-radius: 10px 10px 0 0; background: linear-gradient(#185776, #185776); color: #e8f7ff; }
.ol-pop-close { width: 44px; height: 44px; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; }
.ol-pop-close:focus-visible { outline: 2px solid currentColor; outline-offset: -4px; }
.ol-map-list { overflow-y: auto; overscroll-behavior: contain; max-height: min(42vh, 300px); }
.ol-map-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 7px 8px; border-radius: 6px; }
.ol-map-row.here { background: #10283b; }
.ol-map-row strong { flex: none; font-variant-numeric: tabular-nums; }
.ol-pop-panel > small { display: block; margin-top: 8px; color: #a7c5d9; font-size: 10px; }
html.mob .ol-population { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2px 10px; min-height: 36px; padding: 4px 8px; }
html.mob .ol-clock { display: none; }
html.mob .ol-pop-panel { left: 0; right: auto; width: min(330px, calc(100vw - 32px)); background: #081b2b; border-color: #3c7d98; color: #e8f7ff; }
html.mob .ol-pop-panel header { background: linear-gradient(#16445c, #16445c); color: #e8f7ff; }
html.mob .ol-map-row.here { background: #16445c; }
html.mob .ol-pop-panel > small { color: #c8e1ee; }

/* PC: Unity's desktop strip (unity GameHud.MobileTopRight.cs DesktopStatusStrip, the owner 2026-10-01 "เอา ปิง เวลา fps
   มาใส่"; Unity's look, the owner 2026-10-18): outlined words straight on the map, no plate, in two places (the owner's
   pick of four placements, 2026-10-18): the machine's line on the screen's top edge left of the clock dial (the frame
   rate against the one picked, the signal and ping, green / amber / red at 90% / 60% and 120 / 250 ms, the device's
   time), and one row under the map's name: everyone online and this map's players, a click away from each map's count. */
html:not(.mob) .ol-hud { display: grid; justify-items: end; gap: 0; width: max-content; }
html:not(.mob) .ol-hud[hidden] { display: none; }
html:not(.mob) .ol-meta { gap: .7em; color: var(--ol-cream); font-size: 1em; }
html:not(.mob) .ol-clock { color: var(--ol-cream); font-family: 'Baloo 2', 'Mitr', sans-serif; font-weight: 700; font-variant-numeric: tabular-nums; }
html:not(.mob) .ol-fps[data-quality="good"] { color: var(--ol-good); }
html:not(.mob) .ol-fps[data-quality="fair"] { color: var(--ol-fair); }
html:not(.mob) .ol-fps[data-quality="poor"] { color: var(--ol-poor); }
html:not(.mob) .ol-fps[data-quality="unknown"], html:not(.mob) .ol-latency[data-quality="unknown"] { color: var(--ol-muted); }
html:not(.mob) .ol-signal { height: .85em; gap: 2px; }
html:not(.mob) .ol-signal i { width: 3px; }
html:not(.mob) .ol-population {
  display: inline-flex; align-items: center; justify-content: flex-end; gap: .55em; width: auto; min-height: 30px;
  margin-right: -8px; padding: 0 8px; border: 0; border-radius: 999px; background: none; font-size: .95em;
}
html:not(.mob) .ol-population:hover, html:not(.mob) .ol-population[aria-expanded="true"] { background: #0e0c1e8c; }
html:not(.mob) .ol-population:focus-visible { outline: 2px solid var(--ol-gold); outline-offset: 0; }
html:not(.mob) .ol-server { min-height: 0; gap: .4em; }
html:not(.mob) .ol-state { color: var(--ol-cream); }
html:not(.mob) .ol-total, html:not(.mob) .ol-map-total { font-family: 'Baloo 2', 'Mitr', sans-serif; font-weight: 700; }
html:not(.mob) .ol-current-map { gap: .4em; color: var(--ol-cream); }
html:not(.mob) .ol-current-map::before { content: ''; width: 1px; height: .95em; margin-right: .15em; background: #fff3cf73; box-shadow: 0 0 2px #37637b; }
html:not(.mob) .ol-caret { margin: -.25em 0 0 .1em; filter: drop-shadow(0 1px 1px var(--ink)); }
/* (a person, as Unity's PersonGlyph: green while connected, red when the line drops) */
html:not(.mob) .ol-dot { position: relative; width: .62em; height: .78em; border-radius: 0; background: none; box-shadow: none; color: var(--ol-good); filter: drop-shadow(0 1px 1px var(--ink)); }
html:not(.mob) .ol-dot::before { content: ''; position: absolute; left: 50%; top: 0; width: .36em; height: .36em; margin-left: -.18em; border-radius: 50%; background: currentColor; }
html:not(.mob) .ol-dot::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: .36em; border-radius: .3em .3em .08em .08em; background: currentColor; }
html:not(.mob) .ol-hud.disconnected .ol-dot { background: none; color: var(--ol-poor); }
/* (no line: the state alone, amber, as Unity's; the counts come back with the server's next sample) */
html:not(.mob) .ol-hud.disconnected .ol-state { color: var(--ol-fair); }
html:not(.mob) .ol-hud.disconnected .ol-total, html:not(.mob) .ol-hud.disconnected .ol-current-map { display: none; }
