/* Midgard debug client: dark, high contrast, readable on a desktop and on a phone. */
:root {
	--bg: #101317;
	--panel: rgba(22, 27, 34, 0.94);
	--panel-solid: #161b22;
	--line: #3a4554;
	--head: #232b35;
	--text: #e9eef4;
	--muted: #9aa7b6;
	--accent: #3d8ef0;
	--accent-2: #2a6dc4;
	--danger: #e5534b;
	--ok: #46c35b;
	--warn: #e6b422;
	--btn: #2d3743;
	--btn-hover: #3a4757;
	/* the game font (client/fonts/game.css: Tahoma like the official client, a looped Thai font on phones) */
	--game-font: Tahoma, "Midgard Thai", "Leelawadee UI", "Noto Sans Thai", Verdana, Arial, sans-serif;
	--font: var(--game-font);
	--mono: ui-monospace, "DejaVu Sans Mono", Menlo, Consolas, monospace;
	--bottom-h: 0px;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text); font: 14px/1.45 var(--font); overflow: hidden; }
/* no pinch / double-tap zoom of the page on a phone (scrolling lists still scroll; the game screen takes its own
   two-finger zoom: nozoom.js, renderer.js) */
html { touch-action: pan-x pan-y; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { -webkit-tap-highlight-color: transparent; }
button, input, select, textarea { font: inherit; color: inherit; }
button {
	background: var(--btn); border: 1px solid var(--line); border-radius: 6px; padding: 5px 10px; cursor: pointer; min-height: 30px;
	touch-action: manipulation; white-space: nowrap;
}
button:hover:not(:disabled) { background: var(--btn-hover); }
button:disabled { opacity: 0.45; cursor: default; }
button.primary { background: var(--accent); border-color: var(--accent-2); color: #fff; font-weight: 600; }
button.primary:hover:not(:disabled) { background: var(--accent-2); }
button.danger { background: #6e2622; border-color: #9b3a33; }
button.ghost { background: transparent; }
button.small { min-height: 24px; padding: 1px 7px; font-size: 13px; }
input, select, textarea { background: #0e1216; border: 1px solid var(--line); border-radius: 6px; padding: 6px 8px; min-height: 32px; }
input:focus, select:focus, textarea:focus, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
input[type=checkbox] { min-height: 0; width: 18px; height: 18px; vertical-align: middle; }
code { font-family: var(--mono); background: #0b0e12; padding: 1px 4px; border-radius: 4px; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.error { color: #ff8a80; min-height: 1.2em; margin: 6px 0 0; white-space: pre-line; }
.hidden { display: none !important; }
.card { background: var(--panel-solid); border: 1px solid var(--line); border-radius: 10px; padding: 18px 20px; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; }

/* ---- screens ---- */
.screen { display: none; position: fixed; inset: 0; }
.screen.active { display: block; }
#screen-login.active, #screen-chars.active { display: flex; align-items: flex-start; justify-content: center; overflow: auto; padding: 24px 12px; }
.login-card { width: 100%; max-width: 420px; margin-top: 6vh; }
.login-card h1 { margin: 0 0 4px; font-size: 26px; }
.login-card h1 small { font-size: 14px; color: var(--muted); font-weight: 400; }
.login-card form { display: grid; gap: 10px; margin-top: 14px; }
.login-card label { display: grid; gap: 4px; font-weight: 600; }
.login-card label.check { display: flex; gap: 8px; align-items: center; font-weight: 400; }
.login-card input:not([type=checkbox]) { width: 100%; min-height: 40px; font-size: 16px; }
.login-card button.primary { min-height: 42px; font-size: 16px; }
/* sign-up (register.js): the button under the login form, its own window in place of the login one */
.login-card .reg-open { justify-self: start; min-height: 0; padding: 4px 0; border: 0; background: none; color: var(--accent, #6aa0ff); text-decoration: underline; cursor: pointer; }
.reg-card { width: 100%; max-width: 420px; margin-top: 6vh; }
.reg-card h1 { margin: 0 0 4px; font-size: 22px; }
.reg-card form { display: grid; gap: 10px; margin-top: 12px; }
.reg-card label { display: grid; gap: 4px; font-weight: 600; }
.reg-card input { width: 100%; min-height: 40px; font-size: 16px; }
.reg-card .reg-rule { margin: 0; font-size: 12px; color: var(--muted); }
.reg-card #reg-error { margin: 0; }
.reg-card #reg-error:empty { display: none; }
.reg-card .reg-bar { display: flex; gap: 8px; justify-content: flex-end; }
.reg-card .reg-bar button { min-height: 42px; font-size: 16px; min-width: 96px; }
.hint { background: #1d2a1f; border: 1px solid #2f4a33; border-radius: 6px; padding: 8px 10px; margin: 12px 0 0; font-size: 13px; }

.chars-wrap { width: 100%; max-width: 980px; }
.chars-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.chars-head h2 { margin: 0; }
.chars-head button { margin-left: auto; }
.chars-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.char-card { background: var(--panel-solid); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; display: grid; gap: 6px; align-content: start; min-width: 0; }
.char-card h3 { margin: 0; font-size: 18px; }
.char-card .row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.char-card.empty { border-style: dashed; color: var(--muted); }
.char-card .stats { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.char-card .del-info { color: var(--warn); font-size: 13px; }
.char-card .del-row { display: grid; grid-template-columns: 1fr auto auto; gap: 6px; }
.char-card .del-row input { grid-column: 1 / -1; width: 100%; }
.char-card form { display: grid; gap: 8px; }
.char-card form label { display: grid; grid-template-columns: 70px minmax(0, 1fr); align-items: center; gap: 8px; }
.char-card form input, .char-card form select { width: 100%; min-width: 0; }
/* ---- the delete box of the character select (chardel.js, Noh 2026-10-27: deleted at once with the password; bringing
   one back is the GMs'): one card over a dimmed page, the character drawn on the left, the password, the buttons at the
   bottom; a phone: the card as wide as the screen, its inside scrolls ---- */
.cd-back { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; padding: 16px;
	background: rgba(6, 10, 22, 0.58); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }
.cd-card { width: min(390px, 100%); max-height: calc(100dvh - 32px); display: flex; flex-direction: column; overflow: hidden;
	background: var(--panel-solid); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55); }
.cd-head { display: flex; align-items: center; gap: 8px; padding: 8px 8px 8px 14px; border-bottom: 1px solid var(--line); background: var(--head); font-size: 15px; }
.cd-head b { flex: 1; min-width: 0; }
.cd-ico { flex: none; width: 14px; height: 14px; border-radius: 50%; background: radial-gradient(circle at 38% 32%, #ffd2cc, #d2483c 62%, #8e231b); }
button.cd-x { flex: none; width: 30px; height: 30px; min-height: 30px; padding: 0; border-radius: 50%; background: transparent; border-color: transparent; font-size: 20px; line-height: 1; }
.cd-body { padding: 12px 14px; overflow: auto; display: grid; gap: 10px; align-content: start; }
.cd-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 10px 14px; border-top: 1px solid var(--line); }
button.cd-btn { min-height: 38px; padding: 0 18px; border-radius: 8px; }
.cd-who { display: flex; align-items: center; gap: 12px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px;
	background: radial-gradient(ellipse 34px 9px at 56px 88%, rgba(0, 0, 0, 0.35), transparent 100%), rgba(255, 255, 255, 0.03); }
.cd-pic { flex: none; width: 66px; height: 72px; image-rendering: pixelated; }
.cd-pic.big { width: 88px; height: 96px; }
.cd-job { flex: none; display: flex; align-items: center; justify-content: center; width: 88px; height: 72px; padding: 4px; text-align: center; font-size: 12px; font-weight: 600;
	border-radius: 8px; background: rgba(61, 142, 240, 0.14); color: var(--text); }
.cd-wt { display: grid; gap: 2px; min-width: 0; }
.cd-name { font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cd-muted { color: var(--muted); font-size: 12px; }
.cd-warn { margin: 0; padding: 8px 10px; border-radius: 8px; border: 1px solid rgba(229, 83, 75, 0.5); background: rgba(229, 83, 75, 0.13); color: #ffb3ab; font-weight: 600; }
.cd-list { margin: 0; padding-left: 18px; display: grid; gap: 4px; font-size: 13px; }
.cd-form { display: grid; gap: 6px; }
.cd-lbl { font-size: 13px; font-weight: 600; }
input.cd-in { width: 100%; min-height: 40px; font-size: 16px; } /* (16 px: a phone does not zoom into it) */
.cd-err { min-height: 18px; font-size: 13px; font-weight: 600; color: var(--danger); }
.cd-card.busy { cursor: progress; }
@media (max-width: 600px) {
	.cd-back { padding: 10px; align-items: flex-start; padding-top: max(10px, 6dvh); }
	.cd-card { width: 100%; max-height: calc(100dvh - 20px); }
	.cd-body { padding: 10px 12px; }
	.cd-foot { padding: 8px 12px; }
	.cd-foot button.cd-btn { flex: 1; }
}

/* ---- game ---- */
#map-canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; display: block; cursor: crosshair; }
.hud { position: absolute; padding: 8px 10px; z-index: 5; }
#hud-char { left: 8px; top: 8px; width: 270px; }
/* status points: the "up" button beside the basic info window (ui.js renderHud), every theme (theme-ro.css: the RO
   window's place and the client's lv_up picture); a base level up makes it bounce (ui.js levelUp) */
#hud-char .ro-lvup { position: absolute; left: calc(100% + 6px); top: 0; width: 40px; height: 40px; min-height: 40px; padding: 0; border: 0; border-radius: 6px;
	background: linear-gradient(#3f6ad6, #1c3a99); box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4); cursor: pointer; }
#hud-char .ro-lvup::after { content: 'up'; color: #fff; font: 700 14px/40px sans-serif; }
html.ro-skin #hud-char .ro-lvup { border-radius: 0; background: var(--ro-lv-up-off) center / 100% 100% no-repeat; box-shadow: none; }
html.ro-skin #hud-char .ro-lvup::after { content: none; }
#hud-char .ro-lvup.hidden { display: none; }
#hud-char .ro-lvup.fresh, .theme-ro #hud-char .ro-lvup.fresh, html.mhud .mh-lvup.fresh { animation: lvup-bounce 0.6s ease-out 3; }
@keyframes lvup-bounce { 0%, 100% { transform: translateY(0); } 40% { transform: translateY(-8px) scale(1.08); } }
.hud-name { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar { position: relative; height: 16px; background: #0a0d10; border: 1px solid #000; border-radius: 4px; margin-top: 4px; overflow: hidden; }
.bar i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; }
.bar span { position: relative; display: block; text-align: center; font-size: 11.5px; line-height: 14px; font-weight: 600; text-shadow: 0 0 2px #000, 0 0 2px #000; }
.bar.hp i { background: linear-gradient(#5be36c, #2f9e40); }
.bar.sp i { background: linear-gradient(#6aa8ff, #2f5fc4); }
.bar.exp i { background: linear-gradient(#ffd75a, #b38b14); }
.bar.jexp i { background: linear-gradient(#ff9f6a, #b85a24); }
/* the account's rank under Job (Midgard, js/rankbar.js; Noh 2026-10-26): its band's colour (--rk), a gold rim, a light running
   over it now and then, the rainbow at the last rank; a click = the rank table; a rank up glows once */
.bar.rexp { --rk: #f2c94c; height: 15px; border-color: #7a5a12; box-shadow: 0 0 0 1px rgba(242, 201, 76, 0.35); cursor: pointer; }
.bar.rexp i { overflow: hidden; background: linear-gradient(color-mix(in srgb, var(--rk) 45%, #fff), var(--rk) 50%, color-mix(in srgb, var(--rk) 70%, #000)); }
.bar.rexp.rk-max i { background: linear-gradient(90deg, #ff7ad9, #ffe066, #5fd1c7, #6fb6ff, #b98cff); }
.bar.rexp i::after { content: ''; position: absolute; top: 0; bottom: 0; left: 0; width: 35%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.75), transparent);
	transform: translateX(-120%); animation: rk-shine 5s ease-in-out infinite; }
.bar.rexp span { color: #fff6d6; line-height: 13px; }
.bar.rexp.rk-up { animation: rk-glow 1.6s ease-out; }
@keyframes rk-shine { 0%, 70% { transform: translateX(-120%); } 100% { transform: translateX(320%); } }
@keyframes rk-glow { 0%, 35% { box-shadow: inset 0 0 0 1px #b8902e, 0 0 6px 2px var(--rk), 0 0 14px 5px rgba(255, 228, 140, 0.9); } 100% { box-shadow: inset 0 0 0 1px #b8902e, 0 0 0 0 rgba(255, 228, 140, 0); } }
@keyframes rk-pop { 0% { transform: scale(1); } 45% { transform: scale(1.55) rotate(18deg); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .bar.rexp i::after, .bi2-r .bi2-bar u::after, .mh-x.rank i::after { animation: none; display: none; } }
.hud-small { font-size: 12px; color: var(--muted); margin-top: 4px; }
.efst-list { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.efst-list:empty { display: none; }
.efst { background: #2b2140; border: 1px solid #5c4a8a; border-radius: 4px; padding: 0 5px; font-size: 11.5px; line-height: 18px; }
#hud-map { right: 8px; top: 8px; width: 180px; }
.hud-mapname { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#minimap { width: 100%; height: 156px; display: block; margin-top: 4px; background: #000; border-radius: 4px; cursor: pointer; }
.zoom { display: flex; gap: 4px; margin-top: 5px; }
.zoom button { flex: 1; min-height: 30px; padding: 2px; font-size: 16px; }
.banner { position: absolute; left: 50%; top: 10px; transform: translateX(-50%); z-index: 20; background: #173b63; border: 1px solid #3d8ef0;
	padding: 6px 10px; border-radius: 8px; font-weight: 600; display: flex; gap: 10px; align-items: center; max-width: calc(100% - 20px); }
.announce { position: absolute; left: 50%; top: 56px; transform: translateX(-50%); z-index: 9; pointer-events: none; text-align: center;
	display: flex; flex-direction: column; align-items: center; gap: 4px; width: max-content; max-width: min(780px, 90%); }
/* a broadcast (ui.js announce): a dark bar, a gold edge, the words in the broadcast's colour (--ann) */
.ann { display: flex; align-items: center; gap: 8px; max-width: 100%; padding: 6px 22px 6px 14px; border-radius: 20px; color: var(--ann, #ffff63);
	background: linear-gradient(90deg, rgba(8, 12, 30, 0.35), rgba(8, 12, 30, 0.88) 14%, rgba(8, 12, 30, 0.88) 86%, rgba(8, 12, 30, 0.35));
	border: 1px solid rgba(255, 212, 90, 0.75); box-shadow: 0 0 12px rgba(255, 196, 60, 0.35), inset 0 0 10px rgba(255, 210, 90, 0.12);
	font-weight: 700; font-size: 15px; line-height: 20px; text-shadow: 0 1px 2px #000, 0 0 8px rgba(0, 0, 0, 0.6);
	animation: ann-in 0.35s ease-out; transition: opacity 0.6s, transform 0.6s; }
.ann.out { opacity: 0; transform: translateY(-8px); }
.ann-ic { flex: none; font-size: 16px; filter: drop-shadow(0 0 4px rgba(255, 200, 60, 0.8)); }
.ann-t { min-width: 0; overflow-wrap: anywhere; }
@keyframes ann-in { from { opacity: 0; transform: translateY(-14px) scale(0.96); } to { opacity: 1; transform: none; } }
/* under the minimap: players online, ping, fps (ui.js netTick) */
/* (one strip exactly the minimap's width: the numbers on the left, the version tag over its right end - Noh: it stood
   apart, not in line with the minimap; the status icons start under it, ui.js netTick) */
.net-bar { position: absolute; left: 0; right: 0; top: 100%; margin-top: 3px; z-index: 1; display: flex; align-items: center; gap: 5px; padding: 1px 7px; border-radius: 8px;
	background: rgba(0, 0, 0, 0.45); color: rgba(255, 255, 255, 0.9); font: 600 10px/14px var(--game-font); text-shadow: 0 1px 1px rgba(0, 0, 0, 0.6); white-space: nowrap; overflow: hidden; pointer-events: none; }
.net-bar i { font-style: normal; opacity: 0.55; }
#hud-map.has-net #ver-tag.in-map:not(.stale) { z-index: 2; background: none; padding: 1px 7px 1px 4px; }
.net-bar.two { margin-top: 22px; justify-content: space-between; } /* (not on the version's row: its own, under it) */
#hud-map.has-net:has(.net-bar.two) #ver-tag.in-map:not(.stale) { background: rgba(0, 0, 0, 0.35); padding: 1px 7px; }
.net-bar .good { color: #7dff8a; }
.net-bar .warn { color: #ffd65a; }
.net-bar .bad { color: #ff7a6a; }
/* the phone (2026-10-21): the strip inside the minimap's card, under the map; the round buttons move down by its height */
html.mhud .net-bar { position: static; margin: 3px 0 0; padding: 1px 4px; justify-content: center; gap: 4px; border-radius: 8px; font-size: 9px; line-height: 13px; background: rgba(0, 0, 0, 0.35); }
html.mhud .net-bar i { display: none; }
html.mhud .net-bar.two { margin-top: 3px; justify-content: center; }
html.mhud #hud-map.has-net #ver-tag.in-map:not(.stale) { bottom: 25px; padding: 0 4px; background: rgba(0, 0, 0, 0.45); } /* (over the map's corner, as before the strip) */
html.mhud:not(.mh-land):has(#hud-map.has-net) .mh-side { top: calc(max(8px, env(safe-area-inset-top)) + 26px + 110px * var(--mkm) + 18px); }

#bottom { position: absolute; left: 0; right: 0; bottom: 0; z-index: 8; pointer-events: none; }
#bottom > * { pointer-events: auto; }
#chat { position: absolute; left: 8px; bottom: 96px; width: 470px; display: flex; flex-direction: column; }
.chat-tabs { display: flex; gap: 2px; padding: 4px 4px 0; flex-wrap: wrap; }
.chat-tabs button { min-height: 24px; padding: 0 8px; font-size: 12.5px; border-radius: 5px 5px 0 0; }
.chat-tabs button.on { background: var(--accent); color: #fff; border-color: var(--accent-2); }
.chat-log { height: 150px; overflow-y: auto; padding: 4px 8px; font-size: 13.5px; overflow-wrap: anywhere; }
#chat.expanded .chat-log { height: min(420px, 50vh); }
.chat-log div { padding: 1px 0; }
.chat-form { display: flex; gap: 4px; padding: 4px; border-top: 1px solid var(--line); }
.chat-to { width: 100px; flex: none; }
.chat-input { flex: 1; min-width: 0; }
.ch-public { color: #f2f4f7; } .ch-whisper { color: #ffd94d; } .ch-party { color: #9bf09b; } .ch-guild { color: #8fd1ff; }
.ch-system { color: #c9c9ff; } .ch-broadcast { color: #ffff63; } .ch-error { color: #ff8a80; } .ch-npc { color: #b8f0c8; }
.ch-skillfail, .ch-broken { color: #ff8a80; } /* (errors of their own kind in the chat tabs: chatwin.js) */
.ch-exp { color: #ffe9a8; } .ch-item { color: #a8ffe0; } .ch-gm { color: #ffb36b; } .ch-battle { color: #dfe3ee; }
.chat-rotabs { display: none; }

.hotbar { position: absolute; left: 50%; transform: translateX(-50%); bottom: 50px; display: flex; gap: 4px; }
.hotbar .hk { width: 66px; height: 40px; padding: 2px 3px; display: flex; flex-direction: column; align-items: stretch; justify-content: center;
	font-size: 11px; line-height: 1.15; overflow: hidden; position: relative; }
.hotbar .hk b { font-size: 10.5px; color: var(--muted); text-align: left; }
.hotbar .hk span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hotbar .hk.assign { outline: 2px dashed var(--warn); }
.hotbar .hk[hidden] { display: none !important; }
.hotbar .hk-nums, .hotbar .hk-btn { display: none; } /* (the RO theme's row numbers and row buttons) */
/* more rows (Shift+F12): nine a row, one under the other, the grip down the right */
.hotbar:not([data-rows="1"]) { display: grid; grid-template-columns: repeat(9, 66px) 14px; }
.hotbar:not([data-rows="1"]) .hk-grip { grid-column: 10; grid-row: 1 / span 4; }
.hotbar[data-rows="2"] .hk-grip { grid-row: 1 / span 2; } .hotbar[data-rows="3"] .hk-grip { grid-row: 1 / span 3; }
.menubar { position: absolute; left: 0; right: 0; bottom: 0; height: 46px; display: flex; gap: 4px; padding: 6px 8px; background: rgba(12, 15, 19, 0.96);
	border-top: 1px solid var(--line); overflow-x: auto; scrollbar-width: thin; }
.menubar button { flex: none; min-height: 34px; }
.menubar button.on { background: var(--accent); border-color: var(--accent-2); color: #fff; }
.menubar button kbd { font: 11px var(--mono); color: var(--muted); margin-left: 4px; }
.menubar button.on kbd { color: #dce9ff; }

/* ---- windows ---- */
#windows { position: absolute; inset: 0; pointer-events: none; z-index: 10; }
.win { position: absolute; pointer-events: auto; background: var(--panel-solid); border: 1px solid var(--line); border-radius: 8px;
	box-shadow: 0 8px 26px rgba(0, 0, 0, 0.55); display: flex; flex-direction: column; max-height: var(--maxh, calc(100% - 120px)); min-width: 260px; }
.win-head { display: flex; align-items: center; gap: 8px; padding: 6px 8px 6px 12px; background: var(--head); border-bottom: 1px solid var(--line);
	border-radius: 8px 8px 0 0; cursor: move; user-select: none; touch-action: none; }
.win-head h3 { margin: 0; font-size: 15px; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.win-head .x { min-height: 28px; width: 32px; padding: 0; font-size: 16px; }
.win-body { padding: 10px 12px; overflow: auto; }
.win-foot { padding: 8px 12px; border-top: 1px solid var(--line); display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.tabs { display: flex; gap: 4px; margin-bottom: 8px; flex-wrap: wrap; }
.tabs button.on { background: var(--accent); border-color: var(--accent-2); color: #fff; }
table.grid { width: 100%; border-collapse: collapse; }
table.grid td, table.grid th { padding: 4px 6px; border-bottom: 1px solid #262e38; text-align: left; vertical-align: middle; }
table.grid th { color: var(--muted); font-weight: 600; font-size: 12.5px; }
table.grid td.num, table.grid th.num { text-align: right; font-variant-numeric: tabular-nums; }
.stat-grid { display: grid; grid-template-columns: auto 1fr auto auto; gap: 4px 10px; align-items: center; }
.stat-grid .v { font-variant-numeric: tabular-nums; font-weight: 600; }
.stat-grid .cost { color: var(--muted); font-size: 12px; }
.kv { display: grid; grid-template-columns: auto 1fr auto 1fr; gap: 3px 10px; margin-top: 10px; font-size: 13.5px; }
.kv b { font-variant-numeric: tabular-nums; }
.item-row { display: flex; align-items: center; gap: 8px; padding: 5px 4px; border-bottom: 1px solid #262e38; cursor: pointer; }
.item-row:hover, .item-row.sel { background: #1f2833; }
/* item icon: the client's icon (img) when the renderer has the game data, else a coloured letter box */
.ic { width: 26px; height: 26px; border-radius: 5px; flex: none; display: inline-grid; place-items: center; font-size: 11px; font-weight: 700; color: #111;
	background: var(--ic, #ccc); vertical-align: middle; overflow: hidden; }
.ic i { font-style: normal; }
.ic img { width: 24px; height: 24px; display: block; image-rendering: pixelated; }
.ic img[src^="data:"] { image-rendering: auto; } /* (a Monster Orb's picture: drawn at 2x, smooth - orbicons.js) */
.ic.img { background: none; }
/* the picture that follows the mouse while an item / a skill is dragged (ui.js dragPicture): the icon alone on a canvas
   off the screen, a stacking context of its own - the browser paints what lies behind the dragged element in its
   stacking context, a cell's white ground came along */
.drag-pic { position: fixed; left: -200px; top: 0; z-index: 2147483647; pointer-events: none; background: transparent; }
.ic.img i { display: none; }
.ic.sm { margin-right: 6px; }
.sic { width: 24px; height: 24px; display: block; }
.sic img { width: 24px; height: 24px; display: block; image-rendering: pixelated; }
.skill-row.has-ic { grid-template-columns: 24px 1fr auto auto; }
.slots .row { gap: 6px; flex-wrap: nowrap; }
.hotbar .hk .ic, .hotbar .hk .sic { position: absolute; right: 2px; top: 2px; width: 18px; height: 18px; font-size: 9px; border-radius: 3px; }
.hotbar .hk .ic img, .hotbar .hk .sic img { width: 18px; height: 18px; }
.hotbar .hk em { display: none; }
.ro-only { display: none !important; }
/* Basic Info like the newer official client (basicinfo.js): the RO theme on a computer only (client/css/theme-ro.css) */
.bi2 { display: none; }
.login-bar { display: contents; }
.load-bar { display: none; }
.item-row .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item-row .ct { font-variant-numeric: tabular-nums; color: var(--muted); }
.item-row .eq { color: var(--ok); font-size: 12px; }
.desc { white-space: pre-wrap; background: #0e1216; border: 1px solid var(--line); border-radius: 6px; padding: 8px; font-size: 13px; margin-top: 8px; overflow-wrap: anywhere; }
.desc .dtext { white-space: normal; margin-top: 4px; max-height: 260px; overflow-y: auto; } /* (an in-game description of 20 lines: scrolled, the buttons stay on the screen) */
.actions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.slots { display: grid; grid-template-columns: 110px 1fr auto; gap: 4px 8px; align-items: center; }
.slots .lab { color: var(--muted); font-size: 13px; }
.skill-row { display: grid; grid-template-columns: 1fr auto auto; gap: 6px; align-items: center; padding: 5px 2px; border-bottom: 1px solid #262e38; }
.skill-row .meta { color: var(--muted); font-size: 12px; }
.skill-row .btns { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.lvsel { display: inline-flex; align-items: center; gap: 2px; }
/* ---- the skill window (Noji World's layout): a tab per job of the line, rows with Lv / passive-active / a short line,
   + / ใช้ / 📌 on the right, Skill Point in the footer ---- */
.sk-tabs { display: flex; gap: 4px; margin: 0 0 6px; }
.sk-tabs button { flex: 1 1 0; min-width: 0; padding: 5px 6px; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; position: relative; }
.sk-tabs button.on { background: var(--accent); border-color: var(--accent-2); color: #fff; font-weight: 600; }
.sk-dot { position: absolute; top: 3px; right: 4px; width: 6px; height: 6px; border-radius: 50%; background: #f5b62b; }
.skill-row.nj { grid-template-columns: 32px minmax(0, 1fr) auto; gap: 8px; padding: 7px 4px; }
.skill-row.nj > .sic, .skill-row.nj > .sic img { width: 32px; height: 32px; }
.skill-row.nj .sk-top { display: flex; flex-wrap: wrap; align-items: center; gap: 3px 8px; }
.skill-row.nj .sk-name { font-size: 14px; }
.skill-row.nj .sk-lv { color: #e3b341; font-weight: 700; font-size: 12px; font-variant-numeric: tabular-nums; }
.skill-row.nj .sk-kind { font-size: 11px; padding: 0 7px; border-radius: 9px; line-height: 17px; }
.skill-row.nj .sk-kind.pas { background: rgba(140, 155, 185, 0.22); color: #c3cee0; }
.skill-row.nj .sk-kind.act { background: rgba(70, 170, 110, 0.22); color: #85dca8; }
.skill-row.nj .lvsel span { min-width: 40px; font-size: 12px; }
.skill-row.nj .meta { margin-top: 3px; font-size: 12px; line-height: 1.35; }
.skill-row.nj.unlearned .sk-name, .skill-row.nj.unlearned > .sic { opacity: 0.6; }
.skill-row.nj .btns { flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 3px; }
.skill-row.nj .btns button { min-width: 40px; }
.skill-row.nj .lvup { height: 24px; min-height: 24px; padding: 0; font-weight: 700; font-size: 15px; line-height: 1; }
.skill-row.nj .lvup:disabled { opacity: 0.3; cursor: default; }
.skill-row.nj .sk-pin { font-size: 13px; }
.win-skills .win-foot { justify-content: space-between; font-weight: 600; }
.win-skills .sk-hint { font-size: 11px; margin: 8px 2px 2px; }
.skill-row.nj .sk-need { color: #e0a060; }
.skill-row.nj.locked > .sic { filter: grayscale(1); }
.lvsel span { min-width: 34px; text-align: center; font-variant-numeric: tabular-nums; }
.npc-text { min-height: 90px; white-space: pre-wrap; font-size: 15px; line-height: 1.55; overflow-wrap: anywhere; }
.npc-cutin { margin-top: 8px; padding: 6px 8px; border: 1px dashed #5c6b7d; border-radius: 6px; color: #c8d6e5; font-size: 13px; }
.npc-menu { display: grid; gap: 6px; margin-top: 10px; }
.npc-menu button { text-align: left; white-space: normal; min-height: 36px; }
.party-member { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; padding: 6px 2px; border-bottom: 1px solid #262e38; }
.party-member .bar { grid-column: 1 / -1; height: 12px; margin-top: 2px; }
.party-member .bar span { font-size: 10px; line-height: 10px; } /* (the 12 px bar: its "HP / max HP" inside it, not cut - the 14 px line of .bar) */
.trade-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.trade-cols h4 { margin: 0 0 6px; }
.trade-box { min-height: 90px; border: 1px solid var(--line); border-radius: 6px; padding: 6px; font-size: 13px; }
.trade-box.locked { border-color: var(--ok); box-shadow: inset 0 0 0 1px var(--ok); }
.debug-log { font: 12px/1.35 var(--mono); white-space: pre-wrap; overflow-wrap: anywhere; }
.debug-log .in { color: #b5e0ff; } .debug-log .out { color: #ffd59a; } .debug-log .sys { color: #9aa7b6; }
.debug-log div { border-bottom: 1px solid #1d242c; padding: 2px 0; cursor: pointer; }
.debug-tools { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.debug-tools input { flex: 1; min-width: 120px; }
.row { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.total { font-weight: 700; }
.bad { color: #ff8a80; } .good { color: #8be39a; }
.qty { width: 72px; }

/* ---- overlays / popups ---- */
.overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.55); display: flex; align-items: center; justify-content: center; z-index: 50; }
#loading { z-index: 60; }
#loading .card { display: flex; gap: 12px; align-items: center; font-size: 16px; flex-wrap: wrap; justify-content: center; }
#loading-retry { font-size: 13px; padding: 5px 16px; cursor: pointer; }
#loading-retry.hidden { display: none; }
.spinner { width: 22px; height: 22px; border: 3px solid #3a4554; border-top-color: var(--accent); border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.death-card { display: grid; gap: 10px; width: 300px; text-align: center; }
.death-card h2 { margin: 0 0 4px; color: #ff8a80; }
.death-card button { min-height: 42px; font-size: 16px; }
#popups { position: fixed; inset: 0; pointer-events: none; z-index: 40; }
.popup { position: absolute; pointer-events: auto; background: var(--panel-solid); border: 1px solid var(--accent); border-radius: 8px; padding: 12px 14px;
	box-shadow: 0 8px 26px rgba(0, 0, 0, 0.6); max-width: calc(100% - 16px); }
.popup.center { left: 50%; top: 30%; transform: translate(-50%, -50%); width: 320px; }
.popup h4 { margin: 0 0 8px; }
.popup .actions { justify-content: flex-end; }
/* the bag full: a reward mailed (client-debug/js/mailfull.js, Noh 2026-11-10) - what went, its icons and names, เปิดจดหมาย */
.popup.mailfull .mfull-what { margin: 0 0 6px; }
.popup.mailfull .mfull-list { list-style: none; margin: 0 0 6px; padding: 0; display: flex; flex-direction: column; gap: 4px; max-height: 210px; overflow-y: auto; }
.popup.mailfull .mfull-list li { display: flex; align-items: center; gap: 8px; }
.popup.mailfull .mfull-list .ic.sm { margin-right: 0; }
.popup.mailfull .mfull-n { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.popup.mailfull .mfull-z { flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; font-style: normal; font-weight: 900; font-size: 11px; color: #6b4300; background: radial-gradient(circle at 40% 35%, #fff2b8, #f2b632); }
.popup.mailfull .mfull-tip { margin: 0 0 8px; }
.popup.mailfull .actions { display: flex; gap: 6px; }
.popup.menu { padding: 6px; display: grid; gap: 4px; min-width: 170px; }
.popup.menu button { text-align: left; }
.popup.menu .title { padding: 2px 6px 4px; font-weight: 700; border-bottom: 1px solid var(--line); }
.pinpad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 8px; }
.pinpad button { min-height: 44px; font-size: 18px; }
.pin-dots { font: 26px var(--mono); letter-spacing: 8px; text-align: center; min-height: 36px; }
#toasts { position: fixed; right: 12px; top: 12px; z-index: 70; display: grid; gap: 6px; pointer-events: none; max-width: calc(100% - 24px); }
body.ingame #toasts { right: auto; left: 50%; top: 70px; transform: translateX(-50%); }
.toast { background: #1e3a24; border: 1px solid var(--ok); padding: 6px 14px; border-radius: 8px; font-weight: 600; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5); }
.toast.err { background: #3d1c1a; border-color: var(--danger); }

/* ---- phone ---- */
@media (max-width: 700px) {
	html, body { font-size: 15px; }
	#hud-char { left: 4px; top: 4px; width: calc(100% - 128px); max-width: 260px; padding: 5px 7px; }
	.hud-name { font-size: 14px; }
	.bar { height: 14px; margin-top: 3px; }
	.bar span { font-size: 10.5px; line-height: 12px; }
	.bar.jexp, .bar.exp { height: 10px; }
	.bar.jexp span, .bar.exp span { font-size: 9px; line-height: 8px; }
	.hud-small { font-size: 11px; }
	#hud-map { right: 4px; top: 4px; width: 116px; padding: 4px 5px; }
	.hud-mapname { font-size: 11.5px; }
	#minimap { height: 96px; }
	.zoom button { min-height: 32px; }
	#chat { left: 0; right: 0; width: auto; bottom: 120px; border-radius: 0; border-left: 0; border-right: 0; background: rgba(16, 20, 25, 0.86); }
	.chat-tabs { display: none; }
	#chat.expanded .chat-tabs { display: flex; }
	.chat-log { height: 64px; font-size: 13px; padding: 2px 6px; }
	#chat.expanded .chat-log { height: 38vh; }
	.chat-to { width: 74px; }
	.chat-form input { min-height: 34px; font-size: 16px; padding: 4px 6px; }
	.chat-form button { min-height: 34px; }
	.hotbar { left: 0; right: 0; transform: none; bottom: 78px; justify-content: space-between; padding: 0 3px; gap: 2px; }
	.hotbar .hk { width: auto; flex: 1; min-width: 0; height: 40px; font-size: 10px; padding: 1px 2px; }
	.hotbar .hk b { font-size: 9.5px; }
	/* every menu button visible: two rows of six */
	.menubar { height: 78px; display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: 32px; padding: 5px 4px; gap: 4px; overflow: hidden; }
	.menubar button { min-height: 0; padding: 0 2px; font-size: 13px; overflow: hidden; text-overflow: ellipsis; }
	.menubar button kbd { display: none; }
	.win { left: 0 !important; right: 0 !important; top: auto !important; bottom: 78px !important; width: auto !important; max-height: 62vh;
		border-radius: 10px 10px 0 0; min-width: 0; }
	.win.tall { max-height: calc(100% - 150px); }
	.win-head { cursor: default; }
	.kv { grid-template-columns: auto 1fr; }
	.trade-cols { grid-template-columns: 1fr; }
	.popup.center { width: calc(100% - 24px); }
	.announce { top: 128px; }
	.ann { font-size: 13px; padding: 4px 14px 4px 10px; }
	.banner { top: 130px; font-size: 13px; }
	#toasts { top: 132px; }
}
/* cart / vending / guild / mail windows */
.menubar button.notify { border-color: var(--warn); box-shadow: inset 0 0 0 1px var(--warn); }
.menubar button.notify::after { content: '●'; color: var(--warn); margin-left: 4px; }
.win textarea { width: 100%; resize: vertical; margin: 6px 0; }
.win input.price { width: 110px; }
.mail-row { cursor: pointer; }
.mail-row.unread .nm { font-weight: 600; }
.mail-row .mail-att { flex: none; margin: 0 6px; font-size: 12px; }
.char-card canvas.char-prev { display: block; margin: 0 auto 4px; width: 120px; height: 150px; image-rendering: pixelated; background: radial-gradient(ellipse at 50% 85%, rgba(255,255,255,0.08), transparent 60%); }
.char-card canvas.char-prev.hidden { display: none; }
.esc-menu { display: grid; gap: 6px; }
.esc-menu button { width: 100%; }
.esc-menu .esc-offline { border-color: #2e7d32; }
/* the login screen's note (not an error): AUTO plays offline */
.error.info { color: #a5d6a7; }
.emo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); gap: 3px; }
.emo-grid .emo { height: 44px; min-height: 44px; padding: 0; display: grid; place-items: center; }
.emo-grid .emo img { width: 40px; height: 40px; image-rendering: pixelated; }
.emo-grid .emo span { font-size: 11px; }

/* ---- AUTO (server-side player AI): chip by the F-bar, the AI window ---- */
.login-status { margin: 6px 0 0; font-size: 12px; color: var(--muted); }
.login-status:empty { display: none; }
.ai-chip { position: absolute; right: 8px; bottom: 50px; display: flex; gap: 2px; pointer-events: auto; }
.ai-chip button { min-height: 32px; padding: 0 10px; font-weight: 700; letter-spacing: 0.5px; }
.ai-chip [data-c=win] { width: 30px; padding: 0; }
.ai-chip [data-c=win]::before { content: '⚙'; font-weight: normal; }
.ai-chip.on [data-c=toggle] { background: #1e8a3c; border-color: #2fbf57; color: #fff; }
.ai-chip.on [data-c=toggle]::before { content: '● '; color: #b8ffcb; }
.menubar button.on#mb-ai { color: #2fbf57; }
.ai-tabs { display: flex; flex-wrap: wrap; gap: 2px; margin-bottom: 6px; }
.ai-tabs button { min-height: 28px; padding: 0 8px; }
.ai-nodrop { margin: 0 0 6px; padding: 5px 8px; border-radius: 4px; background: rgba(230, 120, 40, 0.14); border: 1px solid rgba(230, 120, 40, 0.45); color: #b45309; line-height: 1.35; } /* the free AUTO: its kills drop nothing */
.ai-free { margin: 0 0 6px; padding: 5px 8px; border-radius: 4px; background: rgba(40, 110, 200, 0.10); border: 1px solid rgba(40, 110, 200, 0.40); color: #1d4f91; line-height: 1.35; } /* AUTO ฟรีรายวัน: the day's time left */
.ai-free b { font-variant-numeric: tabular-nums; }
.ai-row { display: flex; align-items: center; gap: 6px; margin: 4px 0; flex-wrap: wrap; }
.ai-row.ai-sub { margin-left: 22px; }
.ai-num { width: 56px; text-align: center; }
.ai-h { margin: 10px 0 4px; font-weight: 700; }
.ai-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 3px; max-height: 232px; overflow-y: auto; margin: 4px 0; }
.ai-cell { display: grid; justify-items: center; align-content: start; gap: 1px; height: 74px; min-height: 74px; padding: 2px; opacity: 0.55; }
.ai-cell.on { opacity: 1; outline: 2px solid var(--accent); outline-offset: -2px; }
.ai-cell img { width: 40px; height: 40px; object-fit: contain; image-rendering: pixelated; }
.ai-cell > i { width: 40px; height: 40px; display: grid; place-items: center; font-style: normal; font-size: 11px; border-radius: 50%; background: rgba(127, 127, 127, 0.25); }
/* the name: up to two lines (long names such as "Sticky Mucus" are not cut), the full name in the cell's tooltip */
.ai-cell .nm { font-size: 10px; line-height: 12px; max-width: 100%; text-align: center; overflow: hidden; white-space: normal; overflow-wrap: anywhere;
	display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; }
.ai-grid.items .ai-cell .ic { width: 24px; height: 24px; margin: 6px 0 4px; }
/* skill rows: name on the left (cut with ... when too long), level / SP on the right, on one line for every skill */
.ai-skill { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 6px; min-height: 30px; padding: 3px 0; border-bottom: 1px solid rgba(127, 127, 127, 0.2); }
.ai-skill label { display: flex; align-items: center; gap: 5px; min-width: 0; }
.ai-skill label b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ai-skill .sic { width: 24px; height: 24px; flex: none; }
.ai-skill input[type=checkbox] { flex: none; }
.ai-ctl { display: flex; align-items: center; gap: 4px; white-space: nowrap; }
.ai-skill:not(.on) { opacity: 0.75; }
/* the skill delay: its own line under the level / SP */
.ai-skill .ai-delay { grid-column: 1 / -1; justify-self: end; margin-top: 2px; }
/* the AUTO skill order (Noh: "เลือกได้ว่าจะใช้สกิลไหนก่อนหลัง") and each monster's skills */
.ai-skill[data-ord], .ai-msk-list .ai-skill.on { grid-template-columns: auto minmax(0, 1fr) auto; }
.ai-skill[data-ord] .ai-delay { grid-column: 2 / -1; }
.ai-ordc { display: inline-flex; align-items: center; gap: 2px; }
.ai-no { min-width: 18px; height: 18px; border-radius: 9px; background: var(--accent); color: #fff; font: 700 11px/18px var(--font, sans-serif); text-align: center; user-select: none; }
.ai-no[draggable=true] { cursor: grab; }
.ai-no[draggable=true]:active { cursor: grabbing; }
.ai-mvs { display: inline-flex; flex-direction: column; gap: 1px; }
.ai-mv { width: 16px; min-width: 16px; height: 11px; min-height: 11px; padding: 0; font-size: 7px; line-height: 9px; }
.ai-skill.drop-on { outline: 2px dashed var(--accent); outline-offset: -2px; }
.ai-cell { position: relative; }
.ai-cell.sk { outline: 2px solid #c88a00; outline-offset: -2px; opacity: 1; }
.ai-gear { position: absolute; top: 1px; right: 2px; width: 18px; height: 18px; border-radius: 9px; font-size: 12px; line-height: 18px; text-align: center; background: rgba(127, 127, 127, 0.18); cursor: pointer; }
.ai-gear:hover { background: rgba(200, 138, 0, 0.35); }
.ai-msk { position: absolute; top: 1px; left: 2px; display: inline-flex; align-items: center; gap: 1px; font-size: 9px; font-weight: 700; }
.ai-msk .sic, .ai-cell .ai-msk img, .ai-cell .ai-msk .sic img { width: 16px; height: 16px; }
.ai-msk b { font-size: 9px; padding: 0 2px; border-radius: 6px; background: #c88a00; color: #fff; }
.ai-msk.el { padding: 0 4px; border-radius: 8px; background: #3a8ad8; color: #fff; line-height: 15px; }
.ai-msk-panel { margin: 6px 0; padding: 6px 8px; border: 2px solid #c88a00; border-radius: 6px; background: rgba(200, 138, 0, 0.06); }
.ai-msk-list { max-height: 220px; overflow-y: auto; }
/* "มอนที่จะตี ใน <map>" + the "ตีทุกตัว" button of the map */
.ai-mobs-h { display: flex; align-items: center; gap: 6px; }
.ai-mobs-h > span { flex: 1; min-width: 0; }
.ai-mobs-h .ai-all { flex: none; min-height: 24px; padding: 0 8px; font-weight: 400; }
.ai-pairs { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 4px 8px; margin: 6px 0; }
.ai-pairs select { justify-self: start; max-width: 100%; }
.ai-h.ai-top { margin-top: 2px; }
.win-ai .nowrap { white-space: nowrap; }
.ai-kv { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; margin-bottom: 6px; }
.win-ai .win-foot .ai-status { font-size: 12px; }
/* the monsters AUTO killed (ui.js aiKillStrip): their pictures and counts, a row of their own at the top of the bar */
.win-ai .win-foot .ai-kills { flex: 1 0 100%; order: -1; display: flex; flex-wrap: wrap; gap: 2px 6px; align-items: center; }
.win-ai .win-foot .ai-kills:empty { display: none; }
.ai-kills .ai-k { display: inline-flex; align-items: center; gap: 1px; font-size: 11px; line-height: 1; }
.ai-kills .ai-k img { width: 26px; height: 26px; object-fit: contain; image-rendering: pixelated; }
.ai-kills .ai-k > i { width: 22px; height: 22px; display: grid; place-items: center; font-style: normal; font-size: 9px; border-radius: 50%; background: rgba(127, 127, 127, 0.25); }
.ai-kills .ai-k b { font-weight: 700; min-width: 1ch; }
.ai-kills .ai-k.more { color: var(--muted); font-weight: 600; padding: 0 2px; }
/* the summary's monsters killed (a row each, like the items under them) */
.win-ai .ai-mrow img { width: 24px; height: 24px; object-fit: contain; image-rendering: pixelated; flex: none; }
.win-ai .ai-mrow > i { width: 24px; height: 24px; flex: none; display: grid; place-items: center; font-style: normal; font-size: 9px; border-radius: 50%; background: rgba(127, 127, 127, 0.25); }
.win-ai .ai-sub-h { margin-top: 8px; font-size: 12px; }
/* the loot tab's kinds of drops (ui.js AI_LOOT_CATS) */
.win-ai .ai-cats { display: flex; flex-wrap: wrap; gap: 3px; margin: 6px 0 4px; }
.win-ai .ai-cats button small { opacity: 0.75; font-size: 10px; }
.win-ai .ai-cats button:disabled { opacity: 0.4; }
/* the pickup tab with "เก็บของที่ดรอป" not ticked (ui.js): what does not count now is dimmed - it can still be set -
   and a line under the box says what AUTO picks up: the cards alone ("เก็บการ์ดทุกใบ" ticked) or nothing */
.win-ai .ai-dim { opacity: 0.45; }
.win-ai .ai-note { margin: 0 0 4px 22px; font-size: 11px; line-height: 1.35; font-weight: 600; color: #2e9e5b; }
.win-ai .ai-note.warn { color: #e0621a; }
/* AUTO running with offline allowed: the status on its own row, "leave (AUTO plays on)" + stop under it */
.win-ai .win-foot:has([data-a=offline]) .ai-status { flex: 1 0 100%; }
@media (max-width: 700px) { .ai-chip { display: none; } }
.ai-grid.all .ai-cell { opacity: 1; }
/* Collection window: summary + bonus list, group tabs, one row per slot (item, needs, bonus, state) */
.col-sum { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.col-sum > span { flex: 1; min-width: 0; }
.col-sum button { min-height: 26px; padding: 0 10px; }
.col-bonus { list-style: none; margin: 0 0 8px; padding: 6px 8px; display: grid; gap: 3px; max-height: 160px; overflow-y: auto; border-radius: 6px; background: rgba(127, 127, 127, 0.12); }
.col-bonus li { display: flex; align-items: center; gap: 6px; font-size: 12px; }
.col-bonus li .ic { width: 20px; height: 20px; flex: none; }
.col-bonus li.col-set b { color: #e0a800; }
.col-tabs { display: flex; flex-wrap: wrap; gap: 2px; margin-bottom: 6px; }
.col-tabs button { min-height: 28px; padding: 0 8px; }
.col-tabs small { opacity: 0.7; }
.col-list { display: grid; gap: 3px; max-height: 360px; overflow-y: auto; }
.col-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 8px; min-height: 48px; padding: 4px 8px; text-align: left; white-space: normal; }
.col-row .ic { width: 32px; height: 32px; }
.col-mid { display: grid; gap: 1px; min-width: 0; }
.col-mid b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.col-mid i { font-style: normal; font-size: 11px; color: #e0a040; }
.col-mid i.col-guar { color: #2f7d4f; } /* a Monster Orb's guarantee: kills since its last Orb / the kills it takes (orb.js) */
/* the Orb tab: a monster of this map (first in the list - orbs.here) */
.col-row.here { box-shadow: inset 3px 0 0 #2f9d62; }
/* (its name and the badge on one line: a grid item of .col-mid alone was stretched into a green bar - Noh 2026-11-08 14:24) */
.col-nmrow { display: flex; align-items: center; gap: 6px; min-width: 0; }
.col-nmrow > b { min-width: 0; }
.col-here { flex: none; padding: 0 6px; border-radius: 8px; font-size: 10px; line-height: 15px; font-weight: 700; color: #fff; background: #2f9d62; white-space: nowrap; }
/* a guarantee's count, live (orblive.js): the number counts up, its bar fills, a glow; gold at 90 %; "ได้ Orb แล้ว!" */
.orb-live { position: relative; display: inline-flex; flex-direction: column; gap: 2px; min-width: 150px; padding: 1px 4px; margin-left: -4px; border-radius: 6px; transition: background 0.4s; }
.orb-live .ol-t { white-space: nowrap; }
.orb-live .ol-n { font-variant-numeric: tabular-nums; font-weight: 800; }
.orb-live .ol-bar { display: block; height: 4px; border-radius: 3px; background: rgba(47, 125, 79, 0.16); overflow: hidden; }
.orb-live .ol-fill { display: block; height: 100%; width: 0; border-radius: 3px; background: linear-gradient(90deg, #3fb877, #2f8f5c); transition: width 0.45s cubic-bezier(.2, .8, .2, 1); }
.orb-live.near .ol-fill { background: linear-gradient(90deg, #ffd34d, #f0a020); animation: olNear 1.4s ease-in-out infinite; }
.orb-live.near .ol-n { color: #c47a00; }
.orb-live.bump { background: rgba(63, 184, 119, 0.18); }
.orb-live.bump .ol-n { animation: olPop 0.45s ease-out; }
.orb-live .ol-got { position: absolute; right: -2px; top: -14px; padding: 1px 7px; border-radius: 9px; font: 800 10px/15px var(--ro-font, sans-serif); font-style: normal; color: #fff;
	background: linear-gradient(#b05cff, #7a2fd6); box-shadow: 0 2px 8px rgba(122, 47, 214, 0.45); white-space: nowrap; animation: olGot 1.8s ease-out forwards; pointer-events: none; }
.orb-live.got .ol-fill { background: linear-gradient(90deg, #c79bff, #8a4be0); }
@keyframes olPop { 0% { transform: scale(1); } 35% { transform: scale(1.18); } 100% { transform: scale(1); } }
@keyframes olNear { 0%, 100% { filter: brightness(1); } 50% { filter: brightness(1.35); } }
@keyframes olGot { 0% { opacity: 0; transform: translateY(6px) scale(0.8); } 12% { opacity: 1; transform: translateY(0) scale(1.08); } 25% { transform: scale(1); } 80% { opacity: 1; } 100% { opacity: 0; transform: translateY(-6px); } }
.orb-live .ol-n { display: inline-block; }
.mf-guar .orb-live { min-width: 0; width: 100%; }
.col-mid em { font-style: normal; font-size: 11px; opacity: 0.85; }
.col-st { font-size: 11px; white-space: nowrap; padding: 2px 6px; border-radius: 10px; background: rgba(127, 127, 127, 0.2); }
.col-row.in .col-st { background: #1e8a3c; color: #fff; }
.col-row.can .col-st { background: #2f6fd6; color: #fff; }
.col-row.no { opacity: 0.6; }
.col-row.sel { outline: 2px solid var(--accent); outline-offset: -2px; opacity: 1; }
.col-setrow { display: grid; gap: 1px; padding: 5px 8px; border-radius: 6px; border: 1px dashed rgba(224, 168, 0, 0.6); font-size: 12px; }
.col-setrow.done { border-style: solid; background: rgba(224, 168, 0, 0.15); }
.col-foot { font-size: 12px; }
.popup.col-confirm { width: min(340px, calc(100vw - 24px)); }
.popup.col-confirm p { margin: 4px 0; line-height: 1.45; }
.popup.col-confirm .col-cf-warn { color: var(--warn); }
.popup.col-confirm .col-cf-fee { white-space: nowrap; }
.popup.col-confirm .col-cf-bad { color: var(--danger); font-weight: 600; }
.popup.col-confirm .col-cf-h { margin-top: 8px; color: var(--danger); font-weight: 600; }
.popup.col-confirm .col-cf-lose { margin: 2px 0 6px; padding-left: 18px; color: var(--danger); }
.popup.col-confirm .col-cf-nomore { display: flex; align-items: center; gap: 6px; margin: 8px 0 2px; font-size: 13px; cursor: pointer; }
.popup.col-confirm .actions { display: flex; gap: 6px; margin-top: 10px; }
.col-sum .col-w { color: #1d9a5a; }
.col-bonus li .col-x { width: 20px; text-align: center; color: #e0a800; flex: none; }
.col-bonus li small { opacity: 0.75; }
.col-tabs .col-soon { opacity: 0.5; cursor: default; }
.col-tabs .col-soon small { font-size: 10px; }
.col-tools { display: flex; gap: 6px; align-items: center; margin-bottom: 5px; }
.col-tools .col-search { flex: 1; min-width: 0; min-height: 28px; padding: 0 8px; }
.col-tools .col-all { min-height: 28px; padding: 0 10px; white-space: nowrap; }
.col-filt { display: flex; flex-wrap: wrap; gap: 3px; margin-bottom: 5px; }
.col-filt button { min-height: 24px; padding: 0 8px; font-size: 12px; border-radius: 12px; }
.col-filt button.on { background: var(--accent, #2f6fd6); color: #fff; }
.col-sets button.done { border-color: rgba(224, 168, 0, 0.85); } .col-sets button.done:not(.on) { background: rgba(224, 168, 0, 0.15); }
.col-filt small { opacity: 0.75; }
.col-pager { display: flex; justify-content: center; align-items: center; gap: 10px; padding: 6px 0 2px; font-size: 12px; }
.col-pager button { min-height: 26px; min-width: 36px; padding: 0 8px; }
/* the bonus summary (Noh 2026-10-25: short - the totals now, the sets apart, the card ladder) */
.col-bsum { display: grid; gap: 4px; margin: 0 0 6px; padding: 6px 8px; border-radius: 6px; background: rgba(127, 127, 127, 0.12); font-size: 12px; line-height: 1.45; }
.col-bp { display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 6px; align-items: baseline; }
.col-bp > b { font-size: 11px; opacity: 0.75; white-space: nowrap; }
.col-bp > span { min-width: 0; overflow-wrap: anywhere; }
.col-bp.now > span { font-weight: 600; }
.col-bp.set em { display: block; font-style: normal; }
.col-bp.set em.done { color: #c58f00; }
.col-bp.set em.part { opacity: 0.6; }
.col-bp.lad > span { color: #1d9a5a; }
.col-bp.lad small { color: inherit; opacity: 0.85; font-size: 11px; }
/* the card ladder: the next reward, its bar, the steps / the board buttons */
.col-lad { display: grid; gap: 4px; margin: 0 0 6px; padding: 5px 8px; border-radius: 6px; border: 1px solid rgba(224, 168, 0, 0.55); background: rgba(224, 168, 0, 0.08); font-size: 12px; }
.col-lad.done { background: rgba(224, 168, 0, 0.2); }
.col-lad.col-orb { border-color: rgba(140, 110, 220, 0.6); background: rgba(140, 110, 220, 0.1); } /* (the Monster Orbs' steps) */
.col-lad.col-orb.done { background: rgba(140, 110, 220, 0.22); }
.col-lad-t { display: flex; flex-wrap: wrap; gap: 2px 8px; align-items: baseline; }
.col-lad-n { white-space: nowrap; font-weight: 600; }
.col-lad-x { min-width: 0; flex: 1 1 180px; }
.col-lad-x b { color: #c58f00; }
.col-lad-r { display: flex; gap: 4px; align-items: center; }
.col-bar { flex: 1; height: 6px; border-radius: 3px; background: rgba(127, 127, 127, 0.25); overflow: hidden; }
.col-bar i { display: block; height: 100%; background: linear-gradient(90deg, #e0a800, #ffd25a); border-radius: 3px; }
.col-orb .col-bar i { background: linear-gradient(90deg, #7a5fd6, #b9a6ff); }
.col-lad-r button { min-height: 24px; padding: 0 8px; font-size: 12px; white-space: nowrap; }
.col-lad-r button.on { background: var(--accent, #2f6fd6); color: #fff; }
.col-lad-note { margin: 0 0 4px; }
.col-step { display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 5px 8px; border-radius: 6px; border: 1px solid rgba(127, 127, 127, 0.25); font-size: 12px; opacity: 0.7; }
.col-step.got { opacity: 1; border-color: rgba(30, 138, 60, 0.6); background: rgba(30, 138, 60, 0.1); }
.col-step.next { opacity: 1; border-color: rgba(224, 168, 0, 0.85); background: rgba(224, 168, 0, 0.12); }
.col-step.lost { opacity: 0.9; border-style: dashed; }
.col-step-n { text-align: center; font-size: 15px; line-height: 1.1; }
.col-step-n small { display: block; font-size: 10px; font-weight: 400; opacity: 0.8; }
.col-step-t { display: grid; gap: 1px; min-width: 0; }
.col-step-t small { font-size: 11px; color: #c58f00; }
.col-step em { font-style: normal; font-size: 11px; white-space: nowrap; padding: 2px 6px; border-radius: 10px; background: rgba(127, 127, 127, 0.2); }
.col-step.got em { background: #1e8a3c; color: #fff; }
.col-step.next em { background: #e0a800; color: #222; }
.col-board { display: grid; gap: 4px; font-size: 12px; }
.col-bh { font-weight: 700; margin-top: 4px; }
.col-board ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.col-board li { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 6px; align-items: center; padding: 3px 6px; border-radius: 4px; background: rgba(127, 127, 127, 0.1); }
.col-board li > b { text-align: center; }
.col-board li > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.col-board li > em { font-style: normal; white-space: nowrap; opacity: 0.85; }
.col-board li.top3 { background: rgba(224, 168, 0, 0.14); }
.col-board li.muted { display: block; background: none; }
.col-board li.me { outline: 1px solid var(--accent, #2f6fd6); }
.col-mine { margin: 2px 0; opacity: 0.85; }
/* the cards not collected yet: greyed (one in the bag), a silhouette (none) */
.col-row.can .ic { filter: grayscale(1); }
.col-row.no .ic { filter: brightness(0); opacity: 0.4; }
.col-row.no .col-mid b { opacity: 0.75; }
.ai-chip .col-btn { margin-right: 4px; }
/* potions of the AI window: order number (①), heal amount and count, set aside (🚫), not in the bag */
.ai-pot-h { gap: 6px; }
.ai-pot-h select { max-width: 100%; }
.ai-grid.ai-pots .ai-cell { position: relative; height: auto; min-height: 74px; }
.ai-cell .ai-ord { position: absolute; top: 2px; left: 2px; min-width: 16px; height: 16px; padding: 0 3px; border-radius: 8px; background: var(--accent); color: #fff; font: 700 10px/16px var(--font, sans-serif); text-align: center; }
.ai-cell .ai-pv { font-size: 10px; line-height: 12px; opacity: 0.85; white-space: nowrap; }
.ai-cell .ai-pv em { font-style: normal; color: #2fbf57; font-weight: 700; }
.ai-cell.skip { opacity: 0.35; }
.ai-cell.skip::after { content: '🚫'; position: absolute; top: 1px; right: 2px; font-size: 12px; }
.ai-cell.none .ic { filter: grayscale(1); }
/* the pickup tab's drop chances (Noh 2026-10-27 "ตรงนี้ให้แสดงโอกาสดรอบด้วยได้ไหม", ui.js aiDropTile): the player's own chance
   under the name, at the bottom of every tile of a row; the monster search's rarity colours by the server's rate - common /
   uncommon green, rare blue, very rare purple, legendary orange (mobfind.js rarity); darker shades on the light boxes */
.ai-grid.ai-loot .ai-cell { height: auto; min-height: 74px; grid-template-rows: auto 1fr auto; align-content: stretch; }
.ai-grid.ai-loot .ai-cell .ic { margin: 4px 0 2px; }
/* (an item not picked: its picture and name dimmed, its chance kept readable - what one picks by) */
.ai-grid.ai-loot .ai-cell { opacity: 1; }
.ai-grid.ai-loot .ai-cell:not(.on) > .ic, .ai-grid.ai-loot .ai-cell:not(.on) > .nm { opacity: 0.55; }
.ai-cell .ai-dp { min-height: 12px; font-size: 10px; line-height: 12px; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ai-dp { --rc1: #3fb866; --rc3: #3d8be0; --rc4: #a974e6; --rc5: #ff8a1f; }
.ai-dp.r1, .ai-dp.r2 { color: var(--rc1); } .ai-dp.r3 { color: var(--rc3); } .ai-dp.r4 { color: var(--rc4); } .ai-dp.r5 { color: var(--rc5); }
.efst-tip .ai-dp, .ii-drops .ai-dp, .theme-ro .ai-dp, .theme-pastel .ai-dp { --rc1: #1d8a3e; --rc3: #2463c8; --rc4: #8a3ccf; --rc5: #d26300; }
/* its lines (a monster a line) in the box of the mouse and in the item info window */
.ai-drops { display: block; margin-top: 3px; padding-top: 3px; border-top: 1px solid #dfe3ee; white-space: normal; }
.ai-drops .aid-h { display: block; font-size: 11px; line-height: 15px; color: #5a6380; }
.ai-drops .aid-l { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; font-size: 12px; line-height: 16px; }
.ai-drops .aid-m { min-width: 0; }
.ai-drops .aid-v { white-space: nowrap; color: #5a6380; }
.ii-drops { margin: 4px 0 0; padding: 4px 8px; border: 1px solid #cfd8ea; border-radius: 4px; background: #f6f8fc; color: #1d2340; }
.ii-drops .ai-drops { margin: 0; padding: 0; border: 0; }
/* "Jellopy - ได้รับ 1" (ui.pickupNotice): top centre of the game screen */
#pickup-notice { position: absolute; left: 50%; top: 64px; transform: translateX(-50%); z-index: 7; display: flex; flex-direction: column; align-items: center; gap: 3px; pointer-events: none; }
#pickup-notice .pn { display: flex; align-items: center; gap: 6px; padding: 3px 12px 3px 6px; min-width: 150px; border-radius: 6px; background: rgba(20, 24, 32, 0.88); border: 1px solid rgba(255, 255, 255, 0.18); color: #fff; font-size: 13px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4); animation: pn-in 0.18s ease-out; transition: opacity 0.5s; }
#pickup-notice .pn.out { opacity: 0; }

/* ---- "ได้รับการ์ด!" (cardgot.js, Noh 2026-11-20): a card taken from the ground big in the middle of the screen - it
   spins in and floats on a turning burst of light, sparks round it, a shine across it; its name under it; a line that
   runs out with its minute. Clicks go through to the game: only the ✕ takes them. Its own colours in every theme ---- */
#card-got { position: absolute; left: 50%; top: 46%; z-index: 8; --cg-w: clamp(132px, 24vh, 210px); width: var(--cg-w); transform: translate(-50%, -50%);
	display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; user-select: none; -webkit-user-select: none; animation: cg-root-in 0.3s ease-out both; }
#card-got.out { animation: cg-root-out 0.45s ease-in both; }
#card-got .cg-rays, #card-got .cg-glow, #card-got .cg-sparks { position: absolute; left: 50%; top: calc(var(--cg-w) * 0.667); aspect-ratio: 1; border-radius: 50%; pointer-events: none; }
#card-got .cg-rays { width: calc(var(--cg-w) * 3.3); margin: calc(var(--cg-w) * -1.65) 0 0 calc(var(--cg-w) * -1.65); mix-blend-mode: screen;
	background: repeating-conic-gradient(from 0deg, rgba(255, 216, 110, 0.6) 0deg 6deg, rgba(255, 216, 110, 0) 6deg 18deg);
	-webkit-mask: radial-gradient(closest-side, #000 20%, rgba(0, 0, 0, 0.5) 46%, transparent 74%); mask: radial-gradient(closest-side, #000 20%, rgba(0, 0, 0, 0.5) 46%, transparent 74%);
	animation: cg-spin 28s linear infinite, cg-fade 0.6s 0.25s both; }
#card-got .cg-glow { width: calc(var(--cg-w) * 2.3); margin: calc(var(--cg-w) * -1.15) 0 0 calc(var(--cg-w) * -1.15);
	background: radial-gradient(closest-side, rgba(255, 240, 186, 0.8), rgba(255, 190, 70, 0.34) 46%, rgba(255, 170, 40, 0) 72%); animation: cg-pulse 2.6s ease-in-out infinite; }
#card-got .cg-sparks { width: calc(var(--cg-w) * 3.3); margin: calc(var(--cg-w) * -1.65) 0 0 calc(var(--cg-w) * -1.65); border-radius: 0; }
#card-got .cg-sparks i { position: absolute; left: 50%; top: 50%; width: calc(var(--cg-w) * 0.1 * var(--s)); aspect-ratio: 1; margin: calc(var(--cg-w) * -0.05 * var(--s)) 0 0 calc(var(--cg-w) * -0.05 * var(--s));
	background: #fff8dc; clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%); filter: drop-shadow(0 0 3px rgba(255, 214, 110, 0.95));
	transform: rotate(var(--a)) translateY(calc(var(--cg-w) * -1.5 * var(--r))); opacity: 0; scale: 0.2; animation: cg-twinkle 2.6s ease-in-out var(--d) infinite; }
#card-got .cg-card { position: relative; width: var(--cg-w); aspect-ratio: 3 / 4; perspective: 720px; }
#card-got .cg-face { position: absolute; inset: 0; border-radius: 7% / 5.2%; overflow: hidden; background: #1b1436;
	box-shadow: 0 0 0 2px #f6d27a, 0 0 0 3px #7a4a12, 0 10px 26px rgba(0, 0, 0, 0.55), 0 0 34px rgba(255, 205, 96, 0.6);
	animation: cg-in 0.85s cubic-bezier(0.2, 1.25, 0.35, 1) both, cg-float 3.8s ease-in-out 0.85s infinite; }
#card-got .cg-img { display: block; width: 100%; height: 100%; object-fit: cover; }
#card-got .cg-fall { position: absolute; inset: 0; display: grid; place-items: center; background: radial-gradient(circle at 50% 40%, #5b48a6, #2a1f5c 55%, #150f2e); box-shadow: inset 0 0 0 4px rgba(246, 210, 122, 0.45), inset 0 0 0 5px rgba(20, 14, 40, 0.9); }
#card-got .cg-fall .ic { width: 46% !important; height: auto !important; aspect-ratio: 1; image-rendering: pixelated; background-size: contain; }
#card-got .cg-fall .ic img { width: 100%; height: 100%; image-rendering: pixelated; }
#card-got .cg-shine { position: absolute; inset: -20% -70%; background: linear-gradient(105deg, rgba(255, 255, 255, 0) 43%, rgba(255, 255, 255, 0.8) 50%, rgba(255, 255, 255, 0) 57%); mix-blend-mode: screen; transform: translateX(-75%); animation: cg-shine 3.6s ease-in-out 1.1s infinite; }
#card-got .cg-x { position: absolute; right: -15px; top: -15px; width: 30px; height: 30px; box-sizing: border-box; border-radius: 50%; border: 1px solid #f6d27a; background: rgba(27, 20, 54, 0.94); color: #ffe9b0;
	font: 700 14px/1 system-ui, sans-serif; display: grid; place-items: center; cursor: pointer; pointer-events: auto; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.55); animation: cg-fade 0.3s 0.9s both; }
#card-got .cg-x:hover { background: #3a2c78; color: #fff; }
#card-got .cg-x:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
#card-got .cg-cap { display: flex; flex-direction: column; align-items: center; gap: 3px; text-align: center; white-space: nowrap; animation: cg-cap-in 0.5s 0.55s both; }
#card-got .cg-title { font-size: clamp(15px, 2.6vh, 21px); font-weight: 800; color: #ffe08a; text-shadow: 1px 0 0 #3b1d00, -1px 0 0 #3b1d00, 0 1px 0 #3b1d00, 0 -1px 0 #3b1d00, 0 0 14px rgba(255, 190, 60, 0.95); }
#card-got .cg-name { max-width: 86vw; overflow: hidden; text-overflow: ellipsis; padding: 2px 12px 3px; border-radius: 999px; background: rgba(21, 15, 46, 0.86); border: 1px solid rgba(246, 210, 122, 0.6); color: #fff; font-size: clamp(12px, 1.9vh, 15px); font-weight: 600; }
#card-got .cg-more { font-size: 11px; font-weight: 700; color: #ffe9b0; text-shadow: 0 1px 2px #000, 0 0 3px #000; }
#card-got .cg-more.hidden { display: none; }
#card-got .cg-time { display: block; width: calc(var(--cg-w) * 0.8); height: 3px; border-radius: 2px; background: rgba(21, 15, 46, 0.65); overflow: hidden; animation: cg-fade 0.3s 0.9s both; }
#card-got .cg-time > i { display: block; height: 100%; background: linear-gradient(90deg, #ffd66b, #fff2c4); transform-origin: left center; animation: cg-time var(--cg-ms, 60000ms) linear both; }
@keyframes cg-root-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes cg-root-out { to { opacity: 0; transform: translate(-50%, -50%) scale(0.86); } }
@keyframes cg-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes cg-spin { to { rotate: 360deg; } }
@keyframes cg-pulse { 0%, 100% { scale: 0.92; opacity: 0.75; } 50% { scale: 1.06; opacity: 1; } }
@keyframes cg-twinkle { 0%, 100% { scale: 0.2; opacity: 0; } 50% { scale: 1; opacity: 1; } }
@keyframes cg-in { 0% { transform: translateY(26%) rotateY(540deg) scale(0.15); opacity: 0; filter: brightness(3); } 55% { opacity: 1; } 100% { transform: none; opacity: 1; filter: none; } }
@keyframes cg-float { 0%, 100% { transform: translateY(0) rotateY(-9deg) rotateZ(-1deg); } 50% { transform: translateY(-3.5%) rotateY(9deg) rotateZ(1deg); } }
@keyframes cg-shine { 0% { transform: translateX(-75%); } 45%, 100% { transform: translateX(75%); } }
@keyframes cg-cap-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes cg-time { from { transform: scaleX(1); } to { transform: scaleX(0); } }
@media (prefers-reduced-motion: reduce) {
	#card-got .cg-rays { animation: cg-fade 0.6s both; }
	#card-got .cg-glow, #card-got .cg-shine { animation: none; }
	#card-got .cg-face { animation: cg-fade 0.3s both; }
	#card-got .cg-sparks i { animation: none; opacity: 0.85; scale: 0.8; }
}
#pickup-notice .pn .ic { width: 24px; height: 24px; flex: none; }
@keyframes pn-in { from { transform: translateY(-6px); opacity: 0; } to { transform: none; opacity: 1; } }
.hotbar .hk-grip { flex: none; width: 14px; cursor: move; display: flex; align-items: flex-end; justify-content: center; position: relative; }
.hotbar .hk-grip em { font-size: 9px; font-style: normal; color: var(--muted); }
@media (max-width: 700px) { .hotbar .hk-grip { display: none !important; } }
.hotbar.moved { z-index: 9; }


/* back into the game after a server restart (app.js startResume): over everything, also on the phone */
.resume-box { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 16px;
	background: rgba(8, 12, 28, 0.55); font-family: var(--font, sans-serif); }
.resume-box .rb-card { width: min(360px, 100%); padding: 20px 18px 16px; border-radius: 16px; text-align: center; color: #1d2540;
	background: linear-gradient(#ffffff, #eef2fb); box-shadow: 0 8px 30px rgba(0, 0, 0, 0.45); display: flex; flex-direction: column; align-items: center; gap: 8px; }
.resume-box b { font: 600 15px/1.45 var(--font, sans-serif); }
.resume-box small { font: 13px/1.4 var(--font, sans-serif); color: #5b6585; }
.resume-box .rb-spin { width: 34px; height: 34px; border-radius: 50%; border: 4px solid #d5dcef; border-top-color: #3b5fc2; animation: rb-spin 0.9s linear infinite; }
.resume-box .rb-spin.off { animation: none; border-top-color: #d5dcef; }
.resume-box button { margin-top: 4px; height: 32px; min-height: 32px; padding: 0 16px; border-radius: 10px; border: 1px solid #c4cce2;
	background: #fff; color: #2c3a66; font: 13px var(--font, sans-serif); cursor: pointer; }
@keyframes rb-spin { to { transform: rotate(360deg); } }

/* NPC dialogs: links and item icons of the servers' own scripts (<URL>, ^i[id]: ui.js colorize) */
.npc-text a.mes-url { color: #2a5bd7; text-decoration: underline; }
.npc-text .ic.mes { display: inline-flex; width: 24px; height: 24px; vertical-align: middle; margin: 0 2px; }
/* systems.js: the select list the server opens (cards / identify / warp / eggs / crafting), pet / homunculus /
   mercenary info, chat room, friends, quests */
.pk-list { display: grid; gap: 2px; max-height: 340px; overflow-y: auto; }
.pk-row { display: flex; align-items: center; gap: 8px; min-height: 38px; padding: 3px 8px; text-align: left; white-space: normal; font-weight: 400; }
.pk-row .ic, .pk-row .sic { width: 28px; height: 28px; flex: none; }
.pk-row.sel { outline: 2px solid var(--accent); outline-offset: -2px; }
.pk-t { flex: 1; min-width: 0; }
.pk-n { font-size: 11px; opacity: 0.8; }
.pk-extra { margin-top: 8px; }
.sys-head { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 4px; }
.sys-head button.small { min-height: 22px; padding: 0 8px; font-size: 11px; }
.sys-kv { display: grid; grid-template-columns: auto 1fr auto 1fr; gap: 3px 10px; margin: 8px 0; font-size: 12.5px; }
.sys-kv > span { opacity: 0.75; }
.sys-skill { display: flex; align-items: center; gap: 6px; padding: 3px 0; }
.sys-skill .sic { width: 24px; height: 24px; flex: none; }
.sys-skill button { min-height: 24px; padding: 0 8px; }
.sys-form { display: grid; gap: 6px; }
.sys-form label { display: grid; gap: 2px; }
.sys-form label.row { display: flex; }
.cr-cols { display: grid; grid-template-columns: minmax(0, 1fr) 120px; gap: 6px; }
.cr-log { height: 200px; overflow-y: auto; padding: 4px 6px; border-radius: 6px; background: rgba(127, 127, 127, 0.12); font-size: 12.5px; word-break: break-word; }
.cr-mems { max-height: 200px; overflow-y: auto; font-size: 12px; }
.cr-mem { display: flex; align-items: center; gap: 3px; padding: 2px 0; }
.cr-mem button { min-height: 20px; padding: 0 4px; font-size: 10.5px; }
.fr-row { display: flex; align-items: center; gap: 6px; padding: 4px 2px; border-bottom: 1px solid rgba(127, 127, 127, 0.2); }
.fr-row > i { width: 8px; height: 8px; border-radius: 50%; background: #777; flex: none; }
.fr-row.on > i { background: #2fbf57; }
.fr-row:not(.on) .grow { opacity: 0.6; }
.fr-row button { min-height: 22px; padding: 0 6px; font-size: 11px; }
.qs-list { display: grid; gap: 4px; }
.qs-row { padding: 5px 6px; border-radius: 6px; background: rgba(127, 127, 127, 0.12); }
.qs-h { display: flex; align-items: center; gap: 6px; }
.qs-h button { min-height: 22px; padding: 0 8px; font-size: 11px; }
.qs-obj { font-size: 12px; padding-left: 10px; }
@media (max-width: 700px) { .cr-cols { grid-template-columns: 1fr; } .cr-mems { max-height: 90px; } .sys-kv { grid-template-columns: auto 1fr; } }
/* guild window: emblem + name, positions table */
.g-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.g-emblem { width: 24px; height: 24px; flex: none; background: rgba(127, 127, 127, 0.15); }
.g-emblem img { width: 24px; height: 24px; image-rendering: pixelated; display: block; }
.g-emb-up { margin-left: auto; cursor: pointer; text-decoration: underline; }
.g-emb-up input { display: none; }
.g-pos input:not([type]) { width: 100%; min-width: 0; }
.g-pos .qty { width: 54px; }
.party-member .pm-btns { grid-column: 1 / -1; display: flex; gap: 4px; justify-content: flex-end; }
.party-member .pm-btns button { min-height: 22px; padding: 0 8px; font-size: 11px; }
/* the menu bar (pastel / dark themes, computer): scrolls sideways when the buttons do not fit, the shortcut hints
   are left out on smaller screens */
@media (min-width: 701px) {
	.menubar { overflow-x: auto; overflow-y: hidden; scrollbar-width: thin; }
	.menubar button { flex: none; }
}
@media (min-width: 701px) and (max-width: 1800px) { .menubar button kbd { display: none; } }

/* the server stops soon (ZC_SERVER_RESTART, ui.serverRestart): a banner at the top of the game screen */
.restart-banner { position: absolute; left: 50%; top: 8px; transform: translateX(-50%); z-index: 40; pointer-events: none; display: flex; flex-direction: column; align-items: center; gap: 2px;
	padding: 6px 16px; border-radius: 12px; background: rgba(120, 20, 20, 0.86); border: 1px solid rgba(255, 210, 120, 0.8); color: #fff; text-align: center;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4); font-family: var(--font, sans-serif); max-width: calc(100% - 24px); }
.restart-banner b { font-size: 15px; font-weight: 600; }
.restart-banner em { font-style: normal; color: #ffd36b; font-size: 18px; }
.restart-banner small { font-size: 12px; opacity: 0.9; }
.restart-banner.soon { animation: restart-blink 0.8s ease-in-out infinite; }
@keyframes restart-blink { 50% { background: rgba(170, 30, 30, 0.95); } }
html.mhud .restart-banner { top: calc(max(8px, env(safe-area-inset-top)) + 84px); }
html.mhud.mh-land .restart-banner { top: 8px; max-width: 46%; }

/* Cash Shop / Item Collection picture buttons beside the minimap (ui.js buildMapButtons) */
.map-btns { position: absolute; right: calc(100% + 6px); top: 0; display: flex; flex-direction: column; gap: 6px; pointer-events: auto; }
#map-btns .map-btn { width: 40px !important; min-width: 40px; height: 40px !important; min-height: 40px !important; padding: 0 !important; border: 0 !important; background: none !important;
	border-radius: 8px !important; box-shadow: none !important; cursor: pointer; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.45)); flex: none; }
.map-btn img { width: 40px; height: 40px; display: block; }
.map-btn:hover { filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.45)) brightness(1.12); }
.map-btn:active { transform: translateY(1px); }
html.mhud .map-btns { display: none; }
/* the Cash Shop window */
.cash-pts { margin-bottom: 6px; display: flex; align-items: center; gap: 8px; }
.cash-pts .grow { flex: 1; }
.cash-pts .cash-topup { padding: 3px 10px; min-height: 26px; border-radius: 13px; border: 1px solid #d08a10 !important; font-weight: 700; font-size: 12px; color: #4a2a00 !important;
	background: linear-gradient(#ffe08a, #f0ae2a) !important; box-shadow: 0 1px 4px rgba(200, 120, 0, 0.45); cursor: pointer; }
.cash-pts b { color: #c88a00; }
.cash-tabs { flex-wrap: wrap; }
.cash-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 4px; max-height: 38vh; overflow-y: auto; margin: 6px 0; }
.cash-item { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 6px; align-items: center; text-align: left; min-height: 44px; padding: 4px 6px;
	border: 1px solid var(--line, #c9d5ee); border-radius: 6px; cursor: pointer; user-select: none; }
.cash-item:hover { filter: brightness(1.08); }
.cash-item:active { transform: translateY(1px); }
.cash-item .ic { grid-row: span 2; }
.cash-item .nm { font-size: 12px; line-height: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cash-item .pr, .cash-row .pr { font-size: 12px; color: #c88a00; font-weight: 600; }
.cash-h { font-weight: 600; margin-top: 4px; }
.cash-cart { display: grid; gap: 3px; max-height: 22vh; overflow-y: auto; }
.cash-row { display: flex; align-items: center; gap: 6px; }
.cash-row .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cash-row button { min-height: 24px; width: 26px; padding: 0; }
.cash-row .q { min-width: 22px; text-align: center; }
.cash-kafra { margin-top: 6px; gap: 6px; align-items: center; }

/* ---- navigation: the walk to a map of the world map (navi.js / worldmap.js) ---- */
.navi-banner { position: absolute; left: 50%; top: 8px; transform: translateX(-50%); z-index: 19; display: flex; align-items: center; gap: 8px;
	padding: 4px 6px 4px 12px; border-radius: 18px; background: rgba(16, 34, 66, 0.88); border: 1px solid rgba(120, 190, 255, 0.6); color: #eaf3ff;
	font: 13px/18px var(--game-font); box-shadow: 0 3px 10px rgba(0, 0, 0, 0.35); pointer-events: auto; max-width: calc(100vw - 24px); }
.navi-banner.hidden { display: none; }
.navi-banner .tx { cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.navi-banner small { color: #a9c4ec; margin-left: 4px; }
.navi-banner button { min-height: 0 !important; height: 26px; padding: 0 12px !important; border-radius: 13px !important; border: 1px solid #ffb3b3 !important;
	background: linear-gradient(#ff7a7a, #d63b3b) !important; color: #fff !important; font: 600 12px var(--game-font) !important; }
/* the follow's strip (follow.js): the same place, green - a walk of the world map never shows with it */
.follow-banner { background: rgba(14, 52, 36, 0.9); border-color: rgba(110, 230, 160, 0.65); }
.follow-banner small { color: #a8e8c2; }
.follow-banner .tx { cursor: default; }
.win-worldmap .wm-top { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.win-worldmap .wm-search { flex: 1; min-width: 0; }
.win-worldmap .wm-here { white-space: nowrap; font-size: 12px; }
.win-worldmap .wm-res, .win-worldmap .wm-subl { display: flex; flex-wrap: wrap; gap: 4px; margin: 4px 0 6px; }
.win-worldmap .wm-res button, .win-worldmap .wm-subl button { padding: 1px 8px; min-height: 22px; font-size: 12px; }
.win-worldmap .wm-res button.on, .win-worldmap .wm-subl button.on { outline: 2px solid #4fd8ff; }
.win-worldmap .wm-subl { max-height: 120px; overflow-y: auto; }
.win-worldmap .wm-main { display: flex; gap: 10px; align-items: flex-start; }
.win-worldmap .wm-map-slot { flex: 1; min-width: 0; }
.win-worldmap .wm-scroll { height: min(470px, calc(var(--maxh, 600px) - 120px)); min-height: 240px; overflow: auto; border-radius: 6px; background: #0f1a2e; touch-action: pan-x pan-y; cursor: grab; }
.win-worldmap .wm-cv { display: block; }
.win-worldmap .wm-side { width: 220px; flex: none; display: flex; flex-direction: column; gap: 6px; }
.win-worldmap .wm-title b { font-size: 15px; }
.win-worldmap .wm-prev { display: block; width: 210px; height: 210px; border-radius: 6px; cursor: crosshair; image-rendering: pixelated; }
.win-worldmap .wm-acts { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.win-worldmap .wm-acts button { padding: 4px 10px; }
/* the warp of the Warp NPC's maps (wmwarp.js): violet like a warp; grey with why when it can not be used now */
.win-worldmap .wm-acts button.wm-warp:not(:disabled) { border-color: #7a4fc9 !important; color: #fff !important; font-weight: bold; background: linear-gradient(#a57ef0, #7146c4) !important; }
.win-worldmap .wm-acts button.wm-warp:not(:disabled):hover { background: linear-gradient(#b893f5, #7f52d6) !important; }
.win-worldmap .wm-acts button.wm-warp:disabled { opacity: 0.55; filter: grayscale(1); cursor: not-allowed; }
.win-worldmap .wm-acts > button.wm-warp, .win-worldmap .wm-warp-off { order: -1; flex: 1 1 100%; }
.win-worldmap .wm-warp-off { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.win-worldmap .wm-warp-off button.wm-warp { width: 100%; }
.win-worldmap .wm-warp-off small { font-size: 11px; line-height: 1.3; }
.win-worldmap .wm-navi { margin: 2px 0 6px; padding: 4px 8px; border-radius: 6px; background: rgba(255, 214, 80, 0.16); font-size: 12px; }
.win-worldmap .wm-navi button { margin-left: 6px; padding: 0 8px; min-height: 20px; font-size: 12px; }
.win-worldmap .wm-help { margin: 6px 0 0; }
.win-worldmap .wm-key { display: inline-block; width: 10px; height: 10px; border-radius: 2px; vertical-align: -1px; }
.win-worldmap .wm-key.town { border: 2px solid #f3c74e; background: #d6c496; }
.win-worldmap .wm-key.here { border: 2px solid #ff4f4f; }
.win-worldmap .wm-key.way { border: 2px solid #ffd650; }
.win-worldmap button.link { border: 0 !important; background: none !important; color: #3d7fd8 !important; padding: 0 4px !important; min-height: 0 !important; text-decoration: underline; }

/* the storage window: a tap on a row moves all of it; quick buttons */
.win-storage .sto-row { cursor: pointer; }
.win-storage .sto-row:hover { background: rgba(79, 143, 240, 0.12); }
.win-storage .sto-row .ct { white-space: nowrap; }
.win-storage .sto-row button { flex-shrink: 0; white-space: nowrap; }
.win-storage .sto-quick { display: flex; flex-wrap: wrap; gap: 4px; margin: 2px 0 6px; }
.win-storage .sto-quick button { padding: 2px 10px; min-height: 26px; font-size: 12px; }
.win-storage .win-foot .sto-q { padding: 0 8px; min-height: 20px; font-size: 11px; }
/* the AUTO window's farm map row */
.win-ai .ai-farm { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.win-ai .ai-farm .ai-map { width: 130px; }
.win-ai .ai-farm button { padding: 1px 8px; min-height: 24px; font-size: 12px; }

/* ---- the version tag (app.js verPlace): a corner of the login screen, under the minimap in game; orange = new version ---- */
#ver-tag { position: fixed; right: 8px; bottom: 6px; z-index: 50; width: auto; height: auto; min-height: 0; margin: 0; padding: 1px 7px; border: 0; border-radius: 8px;
	background: rgba(0, 0, 0, 0.35); color: rgba(255, 255, 255, 0.85); font: 600 10px/14px var(--game-font); letter-spacing: 0.2px;
	box-shadow: none; text-shadow: 0 1px 1px rgba(0, 0, 0, 0.6); cursor: pointer; white-space: nowrap; }
#ver-tag.in-map { position: absolute; right: 0; top: 100%; bottom: auto; margin-top: 3px; z-index: 1; }
html.mhud #ver-tag.in-map { top: auto; bottom: 6px; right: 8px; margin: 0; padding: 0 4px; font-size: 9px; line-height: 12px; background: rgba(0, 0, 0, 0.45); border-radius: 6px; }
#ver-tag.stale { position: fixed; left: 50%; right: auto; top: max(8px, env(safe-area-inset-top)); bottom: auto; transform: translateX(-50%); z-index: 900;
	max-width: calc(100vw - 24px); padding: 6px 14px; border-radius: 14px; white-space: normal; text-align: center;
	background: #e67e22; color: #fff; font-size: 13px; line-height: 18px; box-shadow: 0 3px 10px rgba(0, 0, 0, 0.35); }
#ver-tag.stale:hover { background: #f08c2e; }


/* ---- top-up (topup.js): the gold TOP UP button glows, the window, the "done" card ---- */
/* the TOP UP button (PC beside the minimap, phone in the right column): a gold glow that breathes, sparkles, a little hop now and
   then. Only opacity / transform move (cheap for the GPU); low graphics (html.gfx-low) or "reduce motion" = the glow, still */
.tu-btn { position: relative; z-index: 0; overflow: visible !important; animation: tu-hop 6.5s ease-in-out infinite; }
.tu-btn::before { content: ''; position: absolute; inset: 3px; z-index: -1; border-radius: 8px; pointer-events: none;
	box-shadow: 0 0 12px 7px rgba(255, 196, 40, 0.95), 0 0 24px 11px rgba(255, 140, 20, 0.5); opacity: 0.3; animation: tu-breathe 2.4s ease-in-out infinite; }
.tu-btn .tu-spark { position: absolute; z-index: 1; font-style: normal; font-size: 12px; line-height: 1; color: #fff7c2; pointer-events: none;
	text-shadow: 0 0 4px #ffcc33, 0 0 9px #ff9d00; opacity: 0; animation: tu-twinkle 2.7s ease-in-out infinite; }
.tu-btn .tu-spark.a { left: -6px; top: -7px; }
.tu-btn .tu-spark.b { right: -7px; top: 28%; font-size: 10px; animation-delay: 0.9s; }
.tu-btn .tu-spark.c { left: 22%; bottom: -8px; font-size: 11px; animation-delay: 1.8s; }
@keyframes tu-breathe { 0%, 100% { opacity: 0.3; } 50% { opacity: 1; } }
@keyframes tu-twinkle { 0%, 100% { opacity: 0; transform: scale(0.4) rotate(0deg); } 20% { opacity: 1; transform: scale(1.15) rotate(45deg); } 42% { opacity: 0; transform: scale(0.5) rotate(90deg); } }
@keyframes tu-hop { 0%, 88%, 100% { transform: translateY(0) scale(1); } 91% { transform: translateY(-5px) scale(1.06); } 94% { transform: translateY(0) scale(0.97); } 97% { transform: translateY(-2px) scale(1.02); } }
html.gfx-low .tu-btn, html.gfx-low .tu-btn::before { animation: none; }
html.gfx-low .tu-btn::before { opacity: 0.75; }
html.gfx-low .tu-btn .tu-spark { display: none; }
@media (prefers-reduced-motion: reduce) {
	.tu-btn, .tu-btn::before { animation: none; }
	.tu-btn::before { opacity: 0.75; }
	.tu-btn .tu-spark { display: none; }
}
#map-btns { align-items: flex-end; }
#map-btns .map-btn.map-topup { width: 50px !important; min-width: 50px; height: 50px !important; min-height: 50px !important; border-radius: 10px !important; }
#map-btns .map-btn.map-topup:hover { filter: brightness(1.1); }
.win-topup .win-body { font-size: 13px; }
.win-topup .tu-bal { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: center; padding: 7px 12px; border-radius: 10px; color: #fff;
	background: linear-gradient(90deg, #2c3d7a, #4b2f78); border: 1px solid rgba(255, 214, 102, 0.55); }
.win-topup .tu-bal b { color: #8fe6ff; font-size: 15px; }
.win-topup .tu-bal b.pt { color: #ffd966; }
.win-topup .tu-bal .tot { margin-left: auto; font-size: 11.5px; opacity: 0.85; }
.win-topup .tu-off { margin: 14px 4px; padding: 10px 12px; border-radius: 8px; background: rgba(230, 126, 34, 0.14); color: #b35a00; }
.win-topup .tu-h2 { margin: 12px 0 6px; font-weight: 700; }
.win-topup .tu-packs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.win-topup .tu-pack { position: relative; display: flex; flex-direction: column; align-items: center; gap: 1px; height: auto; min-height: 0; margin: 0; padding: 12px 4px 9px;
	border-radius: 12px; border: 1px solid #c9d4ef !important; background: linear-gradient(#ffffff, #eef3ff) !important; color: #23305a !important; cursor: pointer;
	font: inherit; box-shadow: 0 1px 3px rgba(20, 40, 90, 0.15); transition: transform 0.08s, box-shadow 0.15s; }
.win-topup .tu-pack:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(40, 80, 200, 0.25); border-color: #6f8fe8 !important; }
.win-topup .tu-pack:disabled { opacity: 0.55; cursor: default; }
.win-topup .tu-pack .tu-pay { font-size: 21px; font-weight: 800; line-height: 1.15; color: #2a50c8; }
.win-topup .tu-pack .tu-pay small { font-size: 13px; }
.win-topup .tu-pack .tu-val { min-height: 15px; font-size: 11px; color: #8a5a00; }
.win-topup .tu-pack .tu-cash { font-size: 15px; font-weight: 700; color: #1d8a5a; }
.win-topup .tu-pack .tu-cash small { font-size: 11px; font-weight: 600; }
.win-topup .tu-pack .tu-pts { font-size: 11.5px; color: #a0620a; }
.win-topup .tu-pack .tu-tag { position: absolute; top: -8px; right: -3px; padding: 1px 7px; border-radius: 9px; font-style: normal; font-size: 10.5px; font-weight: 800; color: #fff;
	background: #6a5be0; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3); }
.win-topup .tu-pack.tg-good .tu-tag { background: #c246c9; }
.win-topup .tu-pack.tg-great .tu-tag { background: #e8487e; }
.win-topup .tu-pack.tg-best .tu-tag { background: linear-gradient(#ffcf4a, #f08a00); color: #3a2000; }
.win-topup .tu-pack.tg-best { border-color: #f0a91e !important; background: linear-gradient(#fffaf0, #ffefc8) !important; }
.win-topup .tu-qr { display: flex; flex-direction: column; align-items: center; gap: 6px; margin-top: 10px; text-align: center; }
.win-topup .tu-qh { font-size: 15px; }
.win-topup .tu-qh b { color: #2a50c8; font-size: 19px; }
.win-topup .tu-img { width: min(260px, 70vw); height: auto; image-rendering: pixelated; background: #fff; padding: 8px; border-radius: 10px; border: 1px solid #c9d4ef; }
.win-topup .tu-get b { color: #1d8a5a; }
.win-topup .tu-get b.pt { color: #a0620a; }
.win-topup .tu-wait { display: flex; align-items: center; justify-content: center; gap: 8px; color: #2a50c8; font-weight: 600; }
.win-topup .tu-spin { width: 14px; height: 14px; border-radius: 50%; border: 2px solid rgba(42, 80, 200, 0.25); border-top-color: #2a50c8; animation: tu-spin 0.9s linear infinite; }
@keyframes tu-spin { to { transform: rotate(360deg); } }
.win-topup .tu-meta { font-size: 12px; color: #55607a; }
.win-topup .tu-acts { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 2px; }
.win-topup .tu-save { display: inline-flex; align-items: center; padding: 4px 12px; border-radius: 6px; border: 1px solid #c9d4ef; text-decoration: none; color: #2a50c8; font-size: 12.5px; }
.win-topup .tu-note { margin: 10px 0 0; padding: 7px 10px; border-radius: 8px; background: rgba(42, 80, 200, 0.08); font-size: 12.5px; }
.win-topup .tu-note.bad { background: rgba(230, 70, 70, 0.1); color: #b02020; }
.win-topup .tu-hist { margin-top: 12px; }
.win-topup .tu-hist summary { cursor: pointer; color: #55607a; font-size: 12.5px; }
.win-topup .tu-list { display: grid; gap: 2px; margin-top: 6px; font-size: 12px; }
.win-topup .tu-row { display: grid; grid-template-columns: 76px 70px 70px 1fr auto; gap: 6px; padding: 3px 6px; border-radius: 5px; background: rgba(127, 127, 127, 0.08); }
.win-topup .tu-row .ref { font-family: Consolas, monospace; font-size: 11px; opacity: 0.8; }
/* the exact amount of the QR (the price + satang - paid as it is: apipayplus finds a payment by its amount), big */
.win-topup .tu-amt { font-size: 15px; margin: 2px 0; }
.win-topup .tu-amt b { font-size: 32px; color: #2a50c8; letter-spacing: 0.5px; font-variant-numeric: tabular-nums; }
.win-topup .tu-exact { font-size: 12px; color: #9a3a00; background: #fff3dc; border-radius: 5px; padding: 4px 8px; margin: 2px auto 6px; max-width: 360px; }
.win-topup .tu-test { font-style: normal; font-size: 11px; color: #fff; background: #7b4fd0; border-radius: 4px; padding: 1px 6px; }
.win-topup .tu-ptest { border-style: dashed; }
.win-topup .tu-row .st { font-weight: 600; }
.win-topup .tu-row.st-paid .st, .win-topup .tu-row.st-manual .st { color: #1d8a5a; }
.win-topup .tu-row.st-review .st { color: #b02020; }
.win-topup .tu-row.st-pending .st { color: #2a50c8; }
#topup-pop { position: fixed; left: 50%; top: 22%; z-index: 70; width: min(320px, calc(100vw - 24px)); transform: translateX(-50%); padding: 14px 16px 10px; text-align: center;
	border-radius: 16px; color: #fff; font: 14px/1.4 var(--game-font); cursor: pointer;
	background: radial-gradient(circle at 50% 0, rgba(255, 214, 102, 0.35), transparent 60%), linear-gradient(160deg, rgba(36, 48, 98, 0.96), rgba(22, 30, 64, 0.96));
	border: 1px solid rgba(255, 214, 102, 0.85); box-shadow: 0 8px 28px rgba(0, 0, 0, 0.5), 0 0 26px rgba(255, 200, 60, 0.35); }
#topup-pop.hidden { display: none; }
@keyframes lv-in { from { opacity: 0; transform: translateX(-50%) translateY(-14px) scale(0.92); } to { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); } }
#topup-pop.tu-in { animation: lv-in 0.5s cubic-bezier(0.2, 1.4, 0.4, 1); }
#topup-pop .tu-h { font-size: 20px; font-weight: 800; color: #ffe066; text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6); }
#topup-pop .tu-pay { font-size: 13px; opacity: 0.8; }
#topup-pop .tu-got { display: flex; justify-content: center; gap: 14px; margin: 8px 0 4px; font-size: 13px; }
#topup-pop .tu-got b { display: block; font-size: 22px; color: #8ff0a4; line-height: 1.15; }
#topup-pop .tu-got span + span b { color: #ffd966; }
#topup-pop .tu-tot { font-size: 12px; opacity: 0.85; }
#topup-pop .tu-x { margin-top: 6px; font-size: 11px; opacity: 0.55; }

/* ---- the box beside a status icon under the mouse (PC, ui.js efstTip): name, the skill that gives it, time left ---- */
.efst-tip { position: fixed; z-index: 1000; max-width: 230px; padding: 5px 9px 6px; pointer-events: none; border-radius: 4px;
	background: rgba(255, 255, 255, 0.97); border: 1px solid #8d9cc2; box-shadow: 0 3px 10px rgba(0, 0, 0, 0.35); color: #1d2340; font-size: 12px; line-height: 17px; }
.efst-tip.hidden { display: none; }
.efst-tip .et-name { font-weight: 700; color: #1d3a8a; }
.efst-tip .et-from { color: #5a6380; font-size: 11px; }
.efst-tip .et-time b { font-variant-numeric: tabular-nums; }
.efst-tip .et-time b.soon { color: #d8321f; }
/* the name of the item under the mouse (ui.js itemTip): one line beside the mouse */
.efst-tip.item-tip { padding: 3px 8px 4px; white-space: nowrap; max-width: none; }
.efst-tip.item-tip .it-n { color: #5a6380; font-weight: 400; }
.efst-list .efst b.soon { color: #ff6b5a; }

/* ---- the RO arrow over the whole page (renderer.js cursors(): the client's cursor sprite) instead of the system one;
   text fields keep the caret; the game view sets its own (talk / attack / warp / pick up) ---- */
html.ro-cursor, html.ro-cursor body, html.ro-cursor *:not([data-own-cursor]) { cursor: var(--ro-cursor) !important; }
html.ro-cursor input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=button]):not([type=submit]):not([type=color]), html.ro-cursor textarea,
html.ro-cursor [contenteditable=true] { cursor: text !important; }

/* ---- /mobile (client/mobile.html, ?phone=1): the mouse is a finger - a round touch spot instead of the arrow ---- */
html.phone-emu, html.phone-emu *:not([data-phone-x]) {
	cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28'%3E%3Ccircle cx='14' cy='14' r='11' fill='rgba(120,130,150,0.38)' stroke='rgba(255,255,255,0.95)' stroke-width='2'/%3E%3C/svg%3E") 14 14, pointer !important; }

/* ---- the character in the equipment windows (ui.js eqPreview): the picture and two arrows that turn it ---- */
.eq-prev-row { display: flex; justify-content: center; margin: 0 0 6px; }
.eq-char-box { display: inline-flex; flex-direction: column; align-items: center; }
.eq-char-box .eq-opt { font-size: 11px; padding: 1px 8px; margin-top: 2px; }
.eq-prev-row .eq-char { width: 56px; height: 120px; image-rendering: pixelated; }
.eq-rot { display: flex; gap: 18px; }
.eq-rot button { width: 18px; height: 16px; min-height: 16px; padding: 0; font-size: 9px; line-height: 14px; border-radius: 3px; opacity: 0.75; }
.eq-rot button:hover { opacity: 1; }

/* ---- Member (member.js): the MEMBER button (its level in a gold coin), the box of the levels, "เกิดตรงนี้" ---- */
#map-btns .map-btn.map-member { position: relative; }
#map-btns .map-btn .mb-lv { position: absolute; right: -6px; top: -5px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; box-sizing: border-box;
	font: 800 11px/18px system-ui, sans-serif; color: #3a2400; text-align: center; background: linear-gradient(#ffe27a, #f2a50c); border: 1px solid #8a5a00;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.45); pointer-events: none; }
.win-member .win-body { font-size: 13px; }
.win-member .mb-head { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 12px; color: #fff;
	background: linear-gradient(100deg, #26346e, #55308a 60%, #7a3a7e); border: 1px solid rgba(255, 214, 102, 0.6); }
.win-member .mb-badge { position: relative; flex: none; width: 58px; height: 58px; display: grid; place-items: center; }
.win-member .mb-badge span { position: absolute; inset: 0; font-size: 58px; line-height: 58px; text-align: center; color: #ffd24a;
	text-shadow: 0 0 10px rgba(255, 200, 60, 0.7), 0 2px 0 #8a5a00; }
.win-member .mb-badge b { position: relative; top: 3px; font: 900 18px/1 system-ui, sans-serif; color: #5a3200; }
.win-member .mb-badge.off span { color: #9aa3bd; text-shadow: none; }
.win-member .mb-badge.off b { color: #3c4560; }
.win-member .mb-sum { flex: 1; min-width: 0; }
.win-member .mb-title { font-size: 17px; font-weight: 800; color: #ffe08a; }
.win-member .mb-pts b { color: #ffd966; font-size: 14px; }
.win-member .mb-bar { position: relative; height: 16px; margin: 5px 0 2px; border-radius: 8px; background: rgba(0, 0, 0, 0.35); overflow: hidden; }
.win-member .mb-bar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 8px; background: linear-gradient(90deg, #f7b500, #ffe27a); }
.win-member .mb-bar span { position: relative; display: block; text-align: center; font-size: 11px; line-height: 16px; font-weight: 700; color: #fff; text-shadow: 0 1px 1px #000; }
.win-member .mb-next { color: #e6e0ff !important; }
.win-member .mb-now { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 2px; }
.win-member .mb-now span { padding: 3px 9px; border-radius: 12px; background: rgba(60, 110, 230, 0.12); border: 1px solid rgba(60, 110, 230, 0.3); }
.win-member .mb-now b { color: #1d8a5a; }
.win-member .mb-free { margin: 8px 0 0; padding: 6px 10px; border-radius: 8px; background: rgba(40, 170, 100, 0.13); border: 1px solid rgba(40, 170, 100, 0.4); color: #146b3c; font-weight: 700; }
.win-member .mb-hint { margin: 8px 2px; padding: 8px 10px; border-radius: 8px; background: rgba(240, 170, 30, 0.14); color: #8a5200; }
.win-member .mb-h2 { margin: 10px 0 5px; font-weight: 700; }
.win-member .mb-ele { display: flex; flex-wrap: wrap; gap: 5px; } /* Lv.6: the weapon's element */
.win-member .mb-ele button { flex: 1 1 74px; padding: 4px 6px 5px; height: auto !important; min-height: 28px; line-height: 1.35; border-radius: 6px; border: 1px solid var(--c, #9aa3ad); background: #fff; color: var(--c, #555); font-weight: 700; }
.win-member .mb-ele button.on, .ro .win-member .mb-ele button.on { background: var(--c, #6b7280) !important; background-image: none !important; color: #fff !important; text-shadow: none; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.55); }
.win-member .mb-list { display: flex; flex-direction: column; gap: 4px; }
.win-member .mb-row { position: relative; display: flex; gap: 8px; align-items: flex-start; padding: 6px 30px 6px 8px; border-radius: 9px;
	border: 1px solid rgba(120, 130, 170, 0.35); background: rgba(255, 255, 255, 0.55); color: #2a3150; }
.win-member .mb-row .mb-l { flex: none; width: 52px; display: flex; flex-direction: column; align-items: center; }
.win-member .mb-row .mb-l b { font-size: 14px; color: #2a50c8; }
.win-member .mb-row .mb-l small { font-size: 10.5px; color: #a0620a; }
.win-member .mb-row ul { margin: 0; padding: 0 0 0 14px; font-size: 12px; line-height: 1.45; }
.win-member .mb-row i { position: absolute; right: 8px; top: 6px; font-style: normal; font-size: 13px; }
.win-member .mb-row .mb-ok { color: #1d9a5a; font-weight: 900; }
.win-member .mb-row.got { background: rgba(80, 200, 130, 0.1); border-color: rgba(40, 160, 90, 0.35); }
.win-member .mb-row.cur { background: linear-gradient(90deg, rgba(255, 214, 102, 0.35), rgba(255, 236, 170, 0.2)); border: 2px solid #f0a91e; }
.win-member .mb-row.cur .mb-l b { color: #b36b00; }
.win-member .mb-row.lock { opacity: 0.62; }
#death .mb-revive { background: linear-gradient(#ffe27a, #f2a50c) !important; color: #3a2400 !important; border: 1px solid #8a5a00 !important; font-weight: 800; }
#death .mb-revive small { font-weight: 600; font-size: 0.78em; }
html.ro-pics .theme-ro #death .mb-revive { width: 221px; min-width: 221px; height: 22px; min-height: 22px; padding: 0; font-size: 12px; border-radius: 3px; }
/* AUTO window (safety tab): the Fly Wing it will use */
.ai-wing { margin: 2px 0 6px; padding: 3px 8px; border-radius: 6px; background: rgba(60, 110, 230, 0.1); }
.ai-wing.ok { background: rgba(40, 170, 100, 0.13); color: #146b3c; }
.ai-wing.none { background: rgba(230, 126, 34, 0.14); color: #a04f00; }

/* ---- the game screen: no text picked or image called out by a long press (Noh: a phone copied the text of the Skill
   Tree), except where text is typed and the chat log on a computer ---- */
body.ingame #screen-game, body.ingame #popups { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
body.ingame #screen-game input, body.ingame #screen-game textarea, body.ingame #popups input, body.ingame #popups textarea, body.ingame [contenteditable="true"] {
	-webkit-user-select: text; user-select: text; -webkit-touch-callout: default; }
html:not(.mhud) body.ingame #chat-log { -webkit-user-select: text; user-select: text; }

/* ---- the skill details window (client-debug/js/skillinfo.js: right click / long press on a skill) ---- */
.popup.iteminfo.skillinfo { width: 340px; }
.popup.skillinfo .si-name { display: flex; align-items: center; gap: 6px; min-width: 0; }
.popup.skillinfo .si-name .sic { flex: none; }
.popup.skillinfo .si-lv { font-size: 12px; margin: 2px 0 6px; }
.popup.skillinfo .si-info { display: grid; gap: 3px; font-size: 12px; margin-bottom: 6px; }
/* what the skill does (db-midgard/skill_desc.yml): the first line plain, the numbers under it */
.popup.skillinfo .si-desc { margin: 0 0 7px; padding: 5px 7px; border-left: 3px solid #8fa6d8; background: #f3f6fc; border-radius: 0 4px 4px 0; font-size: 12px; line-height: 1.45; color: #1d2436; }
.popup.skillinfo .si-desc p { margin: 0; overflow-wrap: anywhere; }
.popup.skillinfo .si-desc p + p { margin-top: 2px; color: #3c465e; }
.popup.skillinfo .si-row { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 6px; }
.popup.skillinfo .si-row .k { color: #5a6788; }
.popup.skillinfo .si-row .v { overflow-wrap: anywhere; }
.popup.skillinfo .si-need { display: inline-block; margin: 0 6px 2px 0; white-space: nowrap; }
.popup.skillinfo .si-need.ok { color: #1f8a3c; }
.popup.skillinfo .si-need.no { color: #c0392b; }
.popup.skillinfo .si-tbl { max-height: 230px; overflow: auto; border: 1px solid #c8ccd6; }
.popup.skillinfo table { width: 100%; border-collapse: collapse; font-size: 11px; }
.popup.skillinfo th { position: sticky; top: 0; background: #e6ebf5; font-weight: 600; padding: 2px 4px; white-space: nowrap; }
.popup.skillinfo td { padding: 1px 4px; text-align: center; border-top: 1px solid #e3e6ee; white-space: nowrap; }
.popup.skillinfo tr.got td { color: #5a6788; }
.popup.skillinfo tr.cur td { background: #fff4c2; font-weight: 700; }
html.mhud .popup.iteminfo.skillinfo { width: min(340px, calc(100% - 16px)); }

/* ---- whisper windows "With <name>" (whisper.js): translucent like the official client's, moved by the title bar,
   resized from the corner; a phone: across the top of the screen ---- */
.wis-win { position: absolute; pointer-events: auto; display: flex; flex-direction: column; min-width: 200px; min-height: 110px;
	resize: both; overflow: hidden; background: rgba(18, 22, 34, 0.66); border: 1px solid rgba(255, 255, 255, 0.28); border-radius: 4px;
	box-shadow: 0 3px 12px rgba(0, 0, 0, 0.35); color: #fff; font: 12px/17px var(--game-font); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }
.wis-win.new { border-color: rgba(255, 232, 102, 0.8); }
.wis-head { display: flex; align-items: center; gap: 6px; padding: 2px 4px 2px 8px; cursor: move; user-select: none; touch-action: none;
	background: rgba(255, 255, 255, 0.12); border-bottom: 1px solid rgba(255, 255, 255, 0.18); }
.wis-head .wis-t { flex: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: #dfe6ff; }
.wis-head .wis-t b { color: #fff; }
.wis-head .wis-x { flex: none; padding: 0 5px; min-height: 0; border: 0; background: none; color: #dfe6ff; font-size: 12px; line-height: 18px; cursor: pointer; }
.wis-head .wis-x:hover { color: #fff; background: rgba(255, 255, 255, 0.18); }
.wis-log { flex: 1; overflow-y: auto; padding: 4px 8px; text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.7); word-break: break-word; }
.wis-log .wl.them { color: #ffe866; }
.wis-log .wl.me { color: #ffffff; }
.wis-log .wl.err { color: #ff9a8a; }
.wis-log .wt { color: rgba(255, 255, 255, 0.45); font-size: 10px; }
.wis-send { flex: none; margin: 0; padding: 3px; border-top: 1px solid rgba(255, 255, 255, 0.18); }
.wis-send input { width: 100%; box-sizing: border-box; height: 22px; padding: 1px 6px; border: 1px solid rgba(255, 255, 255, 0.3); border-radius: 3px;
	background: rgba(0, 0, 0, 0.35); color: #fff; font: inherit; }
.wis-send input:focus { outline: none; border-color: rgba(255, 232, 102, 0.8); }
/* pictures in whispers (whisper.js): 📷 beside the line, the one waiting above it, the ones in the log small */
.wis-send { display: flex; gap: 3px; align-items: center; }
.wis-send input[type=text] { flex: 1; min-width: 0; }
.wis-send .wis-pic { flex: none; height: 22px; padding: 0 5px; border: 1px solid rgba(255, 255, 255, 0.3); border-radius: 3px; background: rgba(0, 0, 0, 0.35); color: #fff; cursor: pointer; font-size: 12px; line-height: 1; }
.wis-pend { flex: none; display: flex; align-items: center; gap: 6px; padding: 3px 6px; border-top: 1px solid rgba(255, 255, 255, 0.18); color: #ffe866; font-size: 11px; }
.wis-pend img { max-height: 48px; max-width: 80px; border-radius: 3px; }
.wis-pend .wis-pend-x { margin-left: auto; background: none; border: 0; color: #fff; cursor: pointer; }
.wis-log img.wis-img { display: inline-block; max-width: min(220px, 90%); max-height: 160px; margin: 2px 0; border-radius: 4px; cursor: zoom-in; vertical-align: top; background: rgba(0, 0, 0, 0.3); }
.popup.wispic { max-width: min(640px, calc(100vw - 16px)); }
.popup.wispic img.wis-big { display: block; max-width: 100%; max-height: 70vh; margin: 0 auto; }
html.mhud .wis-send .wis-pic { height: 32px; font-size: 16px; padding: 0 8px; }
html.mhud .wis-win { position: fixed; left: 0 !important; right: 0; top: 0 !important; width: auto !important; height: 34vh !important; max-height: 260px;
	resize: none; border-radius: 0 0 6px 6px; border-width: 0 0 1px; z-index: 35 !important; }
html.mhud .wis-head { cursor: default; }
html.mhud .wis-head .wis-x { font-size: 16px; line-height: 26px; padding: 0 10px; }
html.mhud .wis-send input { height: 32px; font-size: 16px; }

/* ---- the NPC shop's "ซื้อ / ขาย / ยกเลิก" box (ui.js WINDOWS.shopdeal): lower middle like the PC client ---- */
.win-shopdeal .deal-msg { margin: 6px 4px 12px; font-size: 13px; text-align: center; }
.win-shopdeal .deal-btns { display: flex; justify-content: center; gap: 8px; padding-bottom: 4px; }
.win-shopdeal .deal-btns button { min-width: 72px; min-height: 28px; font-size: 13px; }
/* the world map's zoom buttons (worldmap.js): over the map's top right corner */
.win-worldmap .wm-map-slot { position: relative; }
.win-worldmap .wm-zoom { position: absolute; right: 8px; top: 8px; z-index: 2; display: flex; flex-direction: column; gap: 4px; }
.win-worldmap .wm-zoom button { width: 28px; min-width: 28px; height: 28px; min-height: 28px; padding: 0; font-size: 16px; line-height: 1; border-radius: 6px;
	background: rgba(255, 255, 255, 0.92); color: #1d2a4a; border: 1px solid #9fb0d0; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35); cursor: pointer; }
.win-worldmap .wm-zoom button:disabled { opacity: 0.4; cursor: default; }
html.mhud .win-worldmap .wm-zoom button { width: 36px; min-width: 36px; height: 36px; min-height: 36px; font-size: 18px; }

/* ---- the item window (ui.js itemInfoWin): the ItemID link to the wiki, a card's picture to click ---- */
.popup.iteminfo .ii-pic { position: relative; flex: none; display: flex; }
.popup.iteminfo .ii-pic.ii-card { cursor: zoom-in; }
/* a card: the official client's view button (btn_view, 42x20) over the top-left corner of the picture; drawn (a small
   magnifier) when the data folder has no picture of it */
.popup.iteminfo .ii-pic .ii-view { position: absolute; left: -4px; top: -5px; width: 42px; height: 20px; min-height: 20px; min-width: 0; padding: 0; margin: 0;
	border: 1px solid #8f9cbf; border-radius: 3px; background: linear-gradient(#ffffff, #dde4f3); box-shadow: none; cursor: pointer; z-index: 1; }
.popup.iteminfo .ii-pic .ii-view:hover { background: linear-gradient(#ffffff, #c9d6f2); }
.popup.iteminfo .ii-pic .ii-view::before { content: ''; position: absolute; left: 14px; top: 3px; width: 8px; height: 8px; border: 2px solid #3a5aa8; border-radius: 50%; background: rgba(255, 255, 255, 0.6); }
.popup.iteminfo .ii-pic .ii-view::after { content: ''; position: absolute; left: 24px; top: 12px; width: 6px; height: 2px; background: #3a5aa8; transform: rotate(45deg); transform-origin: 0 50%; border-radius: 1px; }
html.ro-view-pic .popup.iteminfo .ii-pic .ii-view { border: 0; border-radius: 0; background: var(--ro-b-view) 0 0 / 42px 20px no-repeat; }
html.ro-view-pic .popup.iteminfo .ii-pic .ii-view:hover { background: var(--ro-b-view-h, var(--ro-b-view)) 0 0 / 42px 20px no-repeat; }
html.ro-view-pic .popup.iteminfo .ii-pic .ii-view:active { background: var(--ro-b-view-p, var(--ro-b-view-h)) 0 0 / 42px 20px no-repeat; }
html.ro-view-pic .popup.iteminfo .ii-pic .ii-view::before, html.ro-view-pic .popup.iteminfo .ii-pic .ii-view::after { content: none; }
.popup.iteminfo .ii-id { margin-top: 6px; }
.popup.iteminfo .ii-id a { color: #1f5bd6; text-decoration: underline; cursor: pointer; }
.popup.cardart { width: auto; max-width: calc(100% - 16px); }
.popup.cardart h4 { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.popup.cardart h4 .ca-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.popup.cardart h4 .x { flex: none; width: 22px; min-height: 22px; padding: 0; }
.popup.cardart h4 .x::before { content: '✕'; }
.popup.cardart .ca-img { display: block; width: 300px; max-width: 100%; height: auto; image-rendering: auto; }
html.mhud .popup.cardart { left: 50% !important; top: 50% !important; transform: translate(-50%, -50%); }
html.mhud .popup.cardart .ca-img { width: min(320px, calc(100vw - 40px)); }

/* ---- the equipment window's tabs (ทั่วไป / คอสตูม / ฉายา, Noh 2026-10-19) and the title list ---- */
.eq-tabs { display: flex; gap: 2px; padding: 4px 6px 0; border-bottom: 1px solid var(--line, #3a4256); }
.eq-tabs button { flex: 0 0 auto; min-width: 0; padding: 3px 12px; border: 1px solid var(--line, #3a4256); border-bottom: none; border-radius: 6px 6px 0 0; background: transparent; color: inherit; opacity: 0.7; font: inherit; font-size: 12px; cursor: pointer; }
.eq-tabs button.on { opacity: 1; background: var(--panel2, rgba(255, 255, 255, 0.08)); font-weight: 600; }
.eslot.blank { visibility: hidden; pointer-events: none; }
.ti-list { display: flex; flex-direction: column; gap: 3px; padding: 6px; max-height: 260px; overflow-y: auto; }
.ti-row { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border: 1px solid var(--line, #3a4256); border-radius: 6px; cursor: pointer; }
.ti-row:hover { background: rgba(127, 160, 255, 0.12); }
.ti-row.on { border-color: #6b8cff; background: rgba(107, 140, 255, 0.14); }
.ti-ck { width: 14px; color: #3fa34d; font-weight: 700; }
.ti-nm { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ti-nm small { opacity: 0.75; font-size: 11px; }
.ti-st { font-size: 11px; opacity: 0.8; }
.ti-help, .ti-none, .ti-wait { padding: 4px 8px 8px; margin: 0; }

/* ---- the shortcut list (Alt+M, รายการคีย์ลัด) ---- */
.mc-list { display: flex; flex-direction: column; gap: 3px; padding: 6px 8px 2px; }
.mc-row { display: flex; align-items: center; gap: 6px; }
.mc-key { flex: 0 0 42px; font-size: 12px; font-weight: 600; opacity: 0.85; }
.mc-in { flex: 1; min-width: 0; padding: 3px 6px; font: inherit; font-size: 13px; }
.mc-send { flex: 0 0 auto; min-width: 28px; padding: 2px 6px; }
.mc-help { padding: 2px 8px 6px; margin: 0; }
.win-macro .mc-saved { color: #1c7c3a; font-weight: bold; opacity: 0; transition: opacity 0.25s; padding-left: 6px; }
.win-macro .mc-saved.on { opacity: 1; }
.win-macro .win-foot { display: flex; align-items: center; }
.win-macro .actions { display: flex; gap: 6px; justify-content: flex-end; }
/* การตั้งค่า Hotkey (ui.js keys): the official window's table - name | key | name | key */
.win-keys .ks-tabs { display: flex; gap: 2px; margin-bottom: 4px; }
.win-keys .ks-list { max-height: min(420px, 56vh); overflow-y: auto; border: 1px solid var(--line, #c9cfdc); background: var(--panel2, #fff); }
.win-keys .ks-table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 12px; }
.win-keys .ks-table td { border: 1px solid var(--line, #d5dae6); padding: 1px 4px; height: 22px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.win-keys .ks-table td.ks-name { width: 31%; }
.win-keys .ks-table td.ks-cell { width: 19%; padding: 1px 2px; }
.win-keys .ks-key { width: 100%; min-height: 19px; height: 19px; padding: 0 3px; font-size: 11px; line-height: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.win-keys .ks-key.none { color: var(--muted, #8a90a0); }
.win-keys .ks-key.changed { color: #b0420e; font-weight: bold; }
.win-keys .ks-key.wait { outline: 2px solid #e0a000; outline-offset: -2px; background: #fff7d6; color: #6a4a00; animation: ks-blink 0.9s infinite; }
@keyframes ks-blink { 50% { background: #ffe9a3; } }
.win-keys .ks-battle { margin-top: 6px; gap: 6px; align-items: center; }
.win-keys .ks-help { margin: 3px 0 0; }
.win-keys .win-foot { display: flex; align-items: center; gap: 4px; }
.win-keys .ks-saved { color: #1c7c3a; font-weight: bold; opacity: 0; transition: opacity 0.25s; padding-left: 6px; }
.win-keys .ks-saved.on { opacity: 1; }

/* ---- the shop windows like the official Cash Shop (shopx.js: Cash Shop, แต้มสะสม Shop) ---- */
.sx-banner { position: relative; display: flex; align-items: center; gap: 12px; height: 74px; margin: 0 0 8px; padding: 0 16px 0 10px; overflow: hidden; border-radius: 8px; cursor: pointer;
	background: radial-gradient(120% 140% at 85% 0%, #ffe48a 0, rgba(255, 228, 138, 0) 45%), linear-gradient(100deg, #5a2bb5 0%, #8b3fd6 38%, #e0559a 72%, #ff9d4a 100%); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25); }
.sx-banner:hover { filter: brightness(1.06); }
.sx-banner:focus-visible { outline: 2px solid #ffd54a; outline-offset: 2px; }
.sx-b-art { position: relative; flex: 0 0 64px; height: 64px; }
.sx-b-coin { position: absolute; left: 6px; top: 6px; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font: 800 28px/1 Tahoma, sans-serif; color: #7a4a00;
	background: radial-gradient(circle at 35% 30%, #fff6c4 0, #ffd34d 40%, #e6a100 75%, #b97800 100%); box-shadow: 0 2px 6px rgba(60, 0, 80, 0.45), inset 0 -3px 0 rgba(150, 90, 0, 0.35); animation: sx-coin 3.2s ease-in-out infinite; }
@keyframes sx-coin { 0%, 100% { transform: translateY(0) rotate(-6deg); } 50% { transform: translateY(-3px) rotate(6deg); } }
.sx-b-art i { position: absolute; width: 10px; height: 10px; background: #fff; clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); animation: sx-tw 1.8s ease-in-out infinite; }
.sx-b-art i.s1 { right: -2px; top: 2px; }
.sx-b-art i.s2 { left: -2px; bottom: 6px; width: 7px; height: 7px; animation-delay: 0.6s; }
.sx-b-art i.s3 { right: 6px; bottom: -2px; width: 8px; height: 8px; animation-delay: 1.2s; }
@keyframes sx-tw { 0%, 100% { opacity: 0.25; transform: scale(0.6); } 50% { opacity: 1; transform: scale(1.1); } }
@media (prefers-reduced-motion: reduce) { .sx-b-coin, .sx-b-art i { animation: none; } }
.sx-b-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; text-shadow: 0 1px 2px rgba(40, 0, 60, 0.6); }
.sx-b-txt b { font-size: 24px; line-height: 1.1; letter-spacing: 0.02em; }
.sx-b-txt span { font-size: 12px; opacity: 0.95; }
.sx-b-go { flex: 0 0 auto; padding: 6px 14px; border-radius: 16px; background: #ffd54a; color: #5a2a00; font-weight: 700; font-size: 13px; box-shadow: 0 2px 0 #b98400; }
.sx-main { display: flex; gap: 10px; align-items: stretch; }
.sx-left { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.sx-right { flex: 0 0 200px; display: flex; flex-direction: column; gap: 6px; padding: 8px; border: 1px solid var(--line, #3a4256); border-radius: 6px; }
.sx-tabs { display: flex; flex-wrap: wrap; gap: 3px; }
.sx-tabs button { padding: 3px 9px; min-height: 26px; border-radius: 13px; font-size: 12px; }
.sx-tabs button.on { background: #6b4bd8; color: #fff; border-color: #6b4bd8; }
.sx-ti { margin-right: 3px; }
.sx-search input { width: 100%; box-sizing: border-box; padding: 4px 8px; font: inherit; font-size: 12px; }
.sx-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.sx-item { display: flex; flex-direction: column; align-items: center; gap: 3px; min-height: 92px; padding: 8px 4px 6px; border: 1px solid var(--line, #3a4256); border-radius: 6px; cursor: pointer; text-align: center; position: relative; }
.sx-item:hover { border-color: #8a6cf0; background: rgba(138, 108, 240, 0.08); }
.sx-item:active { transform: translateY(1px); }
.sx-item.in { border-color: #3fa34d; box-shadow: inset 0 0 0 1px #3fa34d; }
.sx-item.blank { visibility: hidden; pointer-events: none; }
.sx-pic { position: relative; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 6px; background: rgba(127, 127, 160, 0.1); }
.sx-in { position: absolute; right: -6px; top: -6px; min-width: 16px; height: 16px; padding: 0 3px; border-radius: 8px; background: #3fa34d; color: #fff; font-size: 10px; line-height: 16px; font-weight: 700; }
.sx-item .nm { width: 100%; font-size: 12px; line-height: 15px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: anywhere; min-height: 30px; }
.sx-item .pr { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; font-weight: 700; color: #c88a00; }
.sx-coin { display: inline-block; width: 11px; height: 11px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff3b0, #f2b600 60%, #b07a00); }
.sx-coin.pshop { border-radius: 2px; background: linear-gradient(135deg, #c8a2ff, #7a3fe0); transform: rotate(45deg) scale(0.85); }
.sx-pager { display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 12px; }
.sx-pager button { min-width: 30px; min-height: 24px; padding: 0 6px; }
.sx-none { text-align: center; margin: 16px 0; }
.sx-bal { display: flex; justify-content: space-between; align-items: baseline; margin: 0; font-size: 12px; }
.sx-bal b { font-size: 16px; color: #c88a00; }
.sx-topup { width: 100%; }
.sx-cart-h { font-weight: 700; font-size: 12px; border-bottom: 1px solid var(--line, #3a4256); padding-bottom: 3px; }
.sx-cart { display: flex; flex-direction: column; gap: 4px; flex: 1; min-height: 120px; max-height: 260px; overflow-y: auto; }
.sx-row { display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "ic nm del" "q q pr"; align-items: center; column-gap: 5px; row-gap: 2px; font-size: 11px; padding-bottom: 4px; border-bottom: 1px dashed rgba(127, 127, 160, 0.3); }
.sx-row .ic { grid-area: ic; }
.sx-row .nm { grid-area: nm; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sx-row .sx-q { grid-area: q; display: inline-flex; align-items: center; gap: 3px; }
.sx-row .sx-q button { width: 20px; min-height: 20px; padding: 0; line-height: 18px; }
.sx-row .q { min-width: 20px; text-align: center; }
/* the number of a line: tap it and type (shopx.js sxQty, up to 999), and +10 (Noh 2026-10-22) */
.sx-row input.sx-qn { width: 34px; min-width: 0; height: 20px; padding: 0 2px; box-sizing: border-box; text-align: center; font-family: inherit; font-size: 11px; font-weight: 700; line-height: 18px;
	border: 1px solid var(--line, #3a4256); border-radius: 3px; background: rgba(127, 127, 160, 0.08); color: inherit; }
.sx-row input.sx-qn:focus { border-color: #5876c4; background: rgba(88, 118, 196, 0.12); }
.sx-row .sx-q button.sx-p10 { width: auto; min-width: 26px; padding: 0 3px; font-size: 10px; font-weight: 700; }
.sx-row .pr { grid-area: pr; text-align: right; font-weight: 700; color: #c88a00; }
.sx-row .sx-del { grid-area: del; width: 20px; min-height: 20px; padding: 0; }
.sx-cart-empty { margin: 8px 0; text-align: center; }
.sx-kafra { display: flex; align-items: center; gap: 4px; font-size: 11px; }
.sx-kafra input { width: 64px; }
/* Cash ฟรี (the Kafra points): the second balance, the purse's choice, the bound note (shopx.js) */
.sx-bal.sx-free b { color: #2f8a4c; }
.sx-wallet { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 8px; font-size: 12px; margin: 4px 0 0; align-items: center; }
.sx-wallet > span { grid-column: 1 / -1; color: #666; }
.sx-wallet label { display: inline-flex; align-items: center; gap: 4px; cursor: pointer; white-space: nowrap; margin: 0; padding: 0; }
.sx-wallet input { margin: 0; }
.sx-note { font-size: 11px; color: #8a5a00; background: #fff6dc; border-radius: 4px; padding: 3px 6px; margin: 2px 0 0; }
.rf-bnd { margin-top: 4px; }
.sx-sum { display: flex; justify-content: space-between; align-items: baseline; font-size: 12px; border-top: 1px solid var(--line, #3a4256); padding-top: 4px; }
.sx-sum b { font-size: 15px; }
.sx-sum b.bad, .sx-short { color: #d23b3b; }
.sx-short { font-size: 11px; }
.sx-buy { width: 100%; min-height: 32px; font-size: 14px; font-weight: 700; }
/* phones: the cart under the grid */
html.mhud .sx-main { flex-direction: column; }
html.mhud .sx-right { flex: 0 0 auto; }
html.mhud .sx-banner { height: 56px; }
html.mhud .sx-b-art { flex-basis: 48px; height: 48px; }
html.mhud .sx-b-coin { width: 40px; height: 40px; font-size: 22px; }
html.mhud .sx-b-txt b { font-size: 18px; }
html.mhud .sx-b-txt span, html.mhud .sx-tip { display: none; }
html.mhud .sx-cart { min-height: 0; max-height: 30vh; }

/* ---- the option crafter (optcraft.js, the NPC ช่างออปชั่น) ---- */
.oc-main { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 10px; }
.oc-left { display: flex; flex-direction: column; min-width: 0; }
.oc-h { font-weight: 700; font-size: 12px; margin-bottom: 4px; }
.oc-list { display: flex; flex-direction: column; gap: 3px; max-height: 360px; overflow-y: auto; }
.oc-item { display: flex; align-items: center; gap: 6px; padding: 4px 6px; border: 1px solid var(--line, #3a4256); border-radius: 6px; cursor: pointer; font-size: 12px; }
.oc-item:hover { border-color: #8a6cf0; }
.oc-item.on { border-color: #6b4bd8; background: rgba(107, 75, 216, 0.12); }
.oc-item .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.oc-worn { font-size: 10px; padding: 0 5px; border-radius: 8px; background: #3fa34d; color: #fff; }
.oc-has { color: #c88a00; }
.oc-right { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.oc-head { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.oc-lines { display: flex; flex-direction: column; gap: 4px; }
.oc-line { display: flex; align-items: center; gap: 8px; min-height: 30px; padding: 2px 6px; border: 1px solid var(--line, #3a4256); border-radius: 6px; }
.oc-no { flex: 0 0 18px; height: 18px; border-radius: 9px; background: rgba(127, 127, 160, 0.2); font-size: 11px; line-height: 18px; text-align: center; }
.oc-txt { flex: 1; font-weight: 700; font-size: 13px; }
.oc-line.none .oc-txt { font-weight: normal; opacity: 0.55; }
.oc-line.t1 .oc-txt { color: #4a8ad8; } .oc-line.t2 .oc-txt { color: #3fa34d; } .oc-line.t3 .oc-txt { color: #c88a00; }
.oc-line.neg .oc-txt { color: #d23b3b; } /* a minus value (-5 .. -1, Noh 2026-10-22) */
.oc-line.t4 .oc-txt { color: #d0592a; } .oc-line.t5 .oc-txt { color: #c43ad8; text-shadow: 0 0 6px rgba(196, 58, 216, 0.45); }
.oc-line.locked { border-color: #c88a00; background: rgba(200, 138, 0, 0.08); }
.oc-line.spin .oc-txt { animation: oc-spin 0.42s steps(6) 1; }
@keyframes oc-spin { 0% { opacity: 0.2; transform: translateY(-4px); } 50% { opacity: 0.6; transform: translateY(3px); } 100% { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .oc-line.spin .oc-txt { animation: none; } }
.oc-lock { min-width: 30px; min-height: 26px; padding: 0 4px; font-size: 14px; }
.oc-lock.on { border-color: #c88a00; }
.oc-cost { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; font-size: 12px; }
.oc-cost b { font-size: 15px; color: #c88a00; }
.oc-cost b.bad { color: #d23b3b; }
/* how to pay (the option crafter, the grade window; Noh 2026-10-21): Zeny or the Hotweek's scroll */
.oc-pay { display: flex; gap: 4px; margin: 2px 0 4px; }
.oc-pay .oc-pb { flex: 1; min-width: 0; display: flex; align-items: center; justify-content: center; gap: 4px; min-height: 28px; padding: 2px 6px; font-size: 12px;
	border: 2px solid var(--line, #c3cad8); border-radius: 6px; background: var(--panel2, transparent); color: inherit; white-space: nowrap; }
.oc-pay .oc-pb.on { border-color: #c88a00; background: rgba(200, 138, 0, 0.14); font-weight: bold; }
.oc-pay .oc-pb .ic { width: 20px; height: 20px; }
.oc-pay .oc-pb .ic img { width: 20px; height: 20px; }
.oc-pay .oc-tk { font-size: 11px; color: var(--muted, #8a90a0); font-weight: normal; }
.oc-acts { display: flex; gap: 6px; }
.oc-roll { flex: 1; min-height: 34px; font-size: 15px; font-weight: 700; }
.oc-roll kbd { font-size: 10px; opacity: 0.75; margin-left: 4px; }
.oc-auto, .oc-stop { min-height: 34px; }
.oc-autobox { font-size: 12px; border: 1px solid var(--line, #3a4256); border-radius: 6px; padding: 4px 8px; }
.oc-autobox summary { cursor: pointer; font-weight: 700; }
.oc-pool { display: flex; flex-wrap: wrap; gap: 4px; margin: 6px 0; }
.oc-want { display: inline-flex; align-items: center; gap: 3px; padding: 2px 8px; border: 1px solid var(--line, #3a4256); border-radius: 12px; cursor: pointer; }
.oc-want.on { border-color: #6b4bd8; background: rgba(107, 75, 216, 0.14); }
.oc-want input { margin: 0; }
.oc-rule { display: flex; flex-wrap: wrap; gap: 10px; margin: 4px 0; }
.oc-rule input[type=number] { width: 60px; }
.oc-skip { font-size: 12px; display: inline-flex; gap: 4px; align-items: center; }
.oc-note { margin: 2px 0; }
/* an AUTO hit / a new +5: the line glows gold with a shine running over it (Noh 2026-10-20) */
.oc-line.hit { position: relative; overflow: hidden; border-color: #e0a800; animation: oc-glow 1.1s ease-in-out infinite alternate; }
.oc-line.hit::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(100deg, transparent 30%, rgba(255, 228, 130, 0.8) 50%, transparent 70%); transform: translateX(-110%); animation: oc-shine 1.4s ease-out 0.1s 2; }
.oc-line.hit .oc-txt::before { content: "✦ "; color: #e0a800; }
@keyframes oc-glow { from { box-shadow: 0 0 0 1px rgba(224, 168, 0, 0.45), 0 0 5px rgba(255, 196, 0, 0.35); } to { box-shadow: 0 0 0 1px rgba(224, 168, 0, 0.95), 0 0 16px rgba(255, 196, 0, 0.8); } }
@keyframes oc-shine { to { transform: translateX(110%); } }
@media (prefers-reduced-motion: reduce) { .oc-line.hit, .oc-line.hit::after { animation: none; } .oc-line.hit { box-shadow: 0 0 0 1px #e0a800, 0 0 10px rgba(255, 196, 0, 0.6); } }
.oc-hit { display: flex; flex-direction: column; gap: 4px; padding: 8px 10px; border: 1px solid #e0a800; border-radius: 8px; background: rgba(255, 200, 40, 0.12); }
.oc-hit-t { font-weight: 700; font-size: 14px; color: #c88a00; }
.oc-hit-d { font-size: 12px; }
.oc-hit-b { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.oc-hit-b button { min-height: 32px; }
.ii-opts { display: flex; flex-direction: column; gap: 1px; margin: 4px 0 0; padding: 4px 8px; border: 1px solid #d9c6f0; border-radius: 4px; background: linear-gradient(#fbf7ff, #f3eafd); color: #8a1fc4; font-weight: 600; font-size: 12px; line-height: 16px; }
.ii-opts .ii-opt::before { content: '◆ '; font-size: 9px; color: #b07ae0; }
/* a bound item (2026-10-25): the box under the name, gold like the official client's bound colour */
.ii-bound { display: flex; flex-direction: column; gap: 1px; margin: 0 0 4px; padding: 3px 8px; border: 1px solid #e2b21c; border-radius: 4px; background: rgba(242, 194, 74, 0.16); color: #9a6a00; font-size: 12px; line-height: 16px; }
.ii-bound small { color: inherit; opacity: 0.9; font-size: 11px; line-height: 14px; }
.item-tip .it-bound { font-size: 11px; }
/* ---- the Refine UI (refineui.js: @refineui, the Warp NPC's อัพเกรดไอเท็ม) ---- */
.rf-main { display: flex; flex-direction: column; gap: 8px; }
.rf-top { display: flex; gap: 10px; align-items: center; }
.rf-slot { position: relative; flex: 0 0 72px; height: 72px; display: grid; place-items: center; border: 2px dashed var(--line, #3a4256); border-radius: 8px; cursor: pointer; background: rgba(127, 127, 160, 0.08); }
.rf-slot.has { border-style: solid; border-color: #8a6cf0; }
.win-refineui.drop-on .rf-slot, .rf-slot:hover { border-color: #c88a00; background: rgba(200, 138, 0, 0.1); }
.rf-plus { font-size: 26px; opacity: 0.45; }
.rf-slot.ok { animation: rf-ok 1.2s ease-out 1; } .rf-slot.fail, .rf-slot.broke { animation: rf-fail 1.2s ease-out 1; }
@keyframes rf-ok { 0% { box-shadow: 0 0 0 0 rgba(255, 214, 64, 0.95); } 30% { box-shadow: 0 0 18px 6px rgba(255, 214, 64, 0.85); } 100% { box-shadow: 0 0 0 0 rgba(255, 214, 64, 0); } }
@keyframes rf-fail { 0%, 100% { transform: none; } 15% { transform: translateX(-4px); } 30% { transform: translateX(4px); } 45% { transform: translateX(-3px); } 60% { transform: translateX(2px); } }
@media (prefers-reduced-motion: reduce) { .rf-slot.ok, .rf-slot.fail, .rf-slot.broke { animation: none; } }
.rf-fx { position: absolute; left: 50%; bottom: -10px; transform: translateX(-50%); white-space: nowrap; font-size: 11px; font-weight: 700; padding: 0 6px; border-radius: 8px; background: #3fa34d; color: #fff; }
.rf-slot.fail .rf-fx, .rf-slot.broke .rf-fx { background: #d23b3b; }
.rf-side { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.rf-name { display: flex; align-items: center; gap: 6px; font-size: 13px; min-width: 0; }
.rf-name b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rf-out { min-width: 24px; min-height: 22px; padding: 0 4px; font-size: 11px; }
.rf-worn { font-size: 10px; padding: 0 5px; border-radius: 8px; background: #3fa34d; color: #fff; white-space: nowrap; }
.rf-lv { font-size: 12px; }
.rf-mats { display: flex; flex-wrap: wrap; gap: 6px; }
.rf-mat { position: relative; width: 44px; height: 44px; min-height: 0; padding: 0; display: grid; place-items: center; border: 2px solid var(--line, #3a4256); border-radius: 6px; }
.rf-mat.on { border-color: #c88a00; background: rgba(200, 138, 0, 0.14); }
.rf-mat.none { opacity: 0.5; }
.rf-cnt { position: absolute; right: 2px; bottom: 0; font-size: 10px; font-weight: 700; text-shadow: 0 0 2px #000, 0 0 2px #000; color: #fff; }
.rf-info { display: flex; flex-direction: column; gap: 2px; font-size: 12px; padding: 6px 8px; border: 1px solid var(--line, #3a4256); border-radius: 6px; }
.rf-mn { font-weight: 700; }
.rf-row { display: flex; justify-content: space-between; gap: 8px; }
.rf-row b { font-size: 14px; }
.rf-ch.safe { color: #3fa34d; } .rf-ch.low { color: #d23b3b; } .rf-row b.bad { color: #d23b3b; }
.rf-warn { color: #d0592a; font-size: 11px; }
.rf-bless { display: flex; align-items: center; gap: 6px; font-size: 12px; cursor: pointer; }
.rf-bless.short { opacity: 0.6; }
/* "ตีรวดถึง +N (ปลอดภัย)": refines while the chance is 100% (refineui.js rfRunSafe) */
.rf-safe { display: flex; flex-direction: column; align-items: center; gap: 1px; width: 100%; margin-top: 6px; padding: 5px 8px; border: 1px solid #3f8a4f; border-radius: 5px;
	background: linear-gradient(#f2fbf3, #d8f0dc); color: #1f5c2b; font-weight: bold; font-size: 12px; cursor: pointer; }
.rf-safe:hover:not(:disabled) { background: linear-gradient(#e6f8e9, #c4e8ca); }
.rf-safe:disabled { opacity: 0.55; cursor: default; }
.rf-safe .rf-safe-cost { font-weight: normal; font-size: 10px; color: #3d6b46; }
.rf-none, .rf-wait { margin: 0; font-size: 12px; }
.rf-none { color: #d0592a; }
.rf-pick { border: 1px solid var(--line, #3a4256); border-radius: 6px; padding: 4px; max-height: 220px; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; }
.rf-ph { font-weight: 700; font-size: 12px; padding: 0 2px 2px; }
.rf-pi { display: flex; align-items: center; gap: 6px; padding: 3px 5px; border-radius: 5px; cursor: pointer; font-size: 12px; }
.rf-pi:hover { background: rgba(200, 138, 0, 0.12); }
.rf-pi .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rf-go { min-width: 84px; min-height: 30px; font-weight: 700; }
.rf-why { max-width: 150px; }
html.mhud .ai-mvs { flex-direction: row; gap: 3px; }
html.mhud .ai-mv, html.mhud .theme-ro .ai-mv { width: 26px; min-width: 26px; height: 24px; min-height: 24px; font-size: 11px; line-height: 22px; }
html.mhud .oc-main { grid-template-columns: 1fr; }
html.mhud .oc-list { max-height: 26vh; }

/* ---- the Quest Shop / Craft Item window (qshop.js; Noh's quest / craft NPCs) ---- */
.win-qshop .win-body { padding: 8px 10px; }
.qs-main { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.qs-tabs { display: flex; flex-wrap: wrap; gap: 5px; }
.qs-tab { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border: 1px solid #c9d2e6; border-radius: 14px; background: #fff; color: #33405e; font-size: 12px; cursor: pointer; min-height: 26px; }
.qs-tab small { font-size: 10px; color: #8a93a6; }
.qs-tab.on { background: #4e6fc6; border-color: #3f5db0; color: #fff; }
.qs-tab.on small { color: #dfe7ff; }
.qs-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.qs-q { flex: 1 1 220px; min-width: 0; height: 26px; padding: 0 8px; border: 1px solid #c9d2e6; border-radius: 4px; font-size: 12px; }
.qs-f { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: #33405e; white-space: nowrap; cursor: pointer; }
.qs-cols { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 8px; min-height: 0; }
.qs-list { display: flex; flex-direction: column; border: 1px solid #d5dae4; border-radius: 6px; background: #fff; height: 380px; overflow-y: auto; min-width: 0; }
.qs-row { flex: none; display: flex; align-items: center; gap: 7px; min-height: 34px; padding: 4px 8px; border-bottom: 1px solid #eef1f7; cursor: pointer; font-size: 12px; color: #1f2d52; }
.qs-row:hover { background: #f4f7fd; }
.qs-row.on { background: #e7eefc; box-shadow: inset 3px 0 0 #4e6fc6; }
.qs-row .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qs-row .nm small { color: #8a93a6; }
.qs-row .ic { flex: none; }
.qs-rate { font-size: 10px; color: #b86b10; flex: none; }
.qs-chip { flex: none; font-size: 10px; padding: 1px 7px; border-radius: 9px; color: #8a93a6; white-space: nowrap; }
.qs-chip.ok { background: #e3f5e6; color: #2e9d4f; }
.qs-chip.near { background: #fff1d6; color: #b86b10; }
.qs-empty { padding: 10px; }
.qs-detail { border: 1px solid #d5dae4; border-radius: 6px; background: #fff; padding: 10px; display: flex; flex-direction: column; gap: 7px; min-width: 0; min-height: 380px; }
.qs-detail > * { flex: none; }
.qs-detail > .qs-act { margin-top: auto; }
.qs-head { display: flex; align-items: center; gap: 10px; }
.qs-head .ic.big { flex: none; }
.qs-ttl { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.qs-ttl b { font-size: 15px; color: #1f2d52; }
.qs-ttl span { font-size: 11px; color: #8a93a6; }
.qs-info { flex: none; font-size: 11px; padding: 2px 10px; border: 1px solid #9fb0d8; border-radius: 12px; background: #fff; color: #3f5db0; cursor: pointer; min-height: 22px; }
.qs-lbl { font-size: 12px; font-weight: bold; color: #45526e; }
.qs-needs { display: flex; flex-direction: column; gap: 4px; }
.qs-need { display: flex; align-items: center; gap: 8px; padding: 5px 8px; border: 1px solid #eef1f7; border-radius: 4px; font-size: 12px; }
.qs-need .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #1f2d52; }
.qs-need b { font-weight: bold; }
.qs-need.ok b, .qs-need.ok i { color: #2e9d4f; }
.qs-need.bad b, .qs-need.bad i { color: #c43b3b; }
.qs-need i { font-style: normal; width: 12px; text-align: center; }
.qs-ico { width: 24px; text-align: center; font-size: 16px; flex: none; }
.qs-lack { font-size: 12px; color: #c43b3b; }
.qs-get { font-size: 11px; color: #6b7690; background: #f6f8fc; border-radius: 4px; padding: 5px 8px; }
.qs-ratebar { display: flex; align-items: center; gap: 8px; }
.qs-ratebar .bar { flex: 1; height: 10px; border-radius: 5px; background: #f7dfdf; overflow: hidden; }
.qs-ratebar .bar i { display: block; height: 100%; background: linear-gradient(90deg, #f0a040, #e6782a); }
.qs-ratebar .bar i.low { background: linear-gradient(90deg, #e86a5a, #c43b3b); }
.qs-ratebar .bar i.full { background: linear-gradient(90deg, #5bc06d, #2e9d4f); }
.qs-ratebar b { font-size: 14px; color: #e6782a; min-width: 42px; text-align: right; }
.qs-ratebar b.full { color: #2e9d4f; }
.qs-warn { font-size: 11px; color: #6b7690; background: #f6f8fc; border-radius: 4px; padding: 5px 8px; }
.qs-last { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12px; padding: 7px 10px; border-radius: 6px; }
.qs-last.ok { background: #fff8e1; border: 1px solid #f0d27a; color: #6b5310; }
.qs-last.bad { background: #fdeceb; border: 1px solid #f0b2ad; color: #8c2a24; }
.qs-last small { margin-left: auto; font-size: 10px; color: #8a8160; }
.qs-act { display: flex; align-items: center; gap: 6px; margin-top: auto; flex-wrap: wrap; }
.qs-try { padding: 0 10px; height: 30px; border: 1px solid #9fb0d8; border-radius: 4px; background: #fff; color: #3f5db0; cursor: pointer; font-size: 12px; }
.qs-try.on { background: #e7eefc; }
.qs-qty { display: inline-flex; align-items: center; border: 1px solid #c9d2e6; border-radius: 4px; overflow: hidden; height: 30px; }
.qs-qty button { width: 26px; height: 30px; min-height: 30px; border: 0; background: #f4f7fd; cursor: pointer; padding: 0; }
.qs-qty input { width: 48px; height: 28px; border: 0; text-align: center; font-size: 13px; -moz-appearance: textfield; }
.qs-qty input::-webkit-outer-spin-button, .qs-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qs-max { height: 30px; padding: 0 8px; border: 1px solid #c9d2e6; border-radius: 4px; background: #fff; font-size: 11px; color: #45526e; cursor: pointer; }
.qs-go { flex: 1 1 140px; height: 32px; border: 1px solid #3f5db0; border-radius: 5px; background: linear-gradient(#6c8be0, #4e6fc6); color: #fff; font-weight: bold; font-size: 14px; cursor: pointer; }
.qs-go.craft { border-color: #c86a12; background: linear-gradient(#f6ad4a, #e6872a); }
.qs-go:disabled { opacity: 0.45; cursor: default; }
.qs-money b { color: #b8860b; }
.qs-stock { flex: none; font-size: 10px; color: #6b7690; }
.qs-stock.out { color: #c43b3b; font-weight: bold; }
.qs-go.pts { border-color: #2f7d44; background: linear-gradient(#5bc06d, #2e9d4f); }
.qs-note { font-size: 11px; color: #4b556b; background: #eef4ff; border-radius: 4px; padding: 5px 8px; }
.qs-logwrap { max-height: 440px; overflow: auto; border: 1px solid #d5dae4; border-radius: 6px; background: #fff; }
.qs-log { width: 100%; border-collapse: collapse; font-size: 12px; }
.qs-log th { position: sticky; top: 0; background: #f4f7fd; color: #45526e; text-align: left; padding: 5px 8px; border-bottom: 1px solid #d5dae4; }
.qs-log td { padding: 4px 8px; border-bottom: 1px solid #eef1f7; white-space: nowrap; }
.qs-log td .ic { vertical-align: middle; }
.win-qshop .win-foot { gap: 10px; align-items: center; }
@media (max-width: 700px) {
	.qs-cols { grid-template-columns: minmax(0, 1fr); }
	.qs-list { height: 34vh; }
	.qs-detail { min-height: 0; }
}

/* ---- the Change Jobs window (jobui.js; the job master's jobui) ---- */
.win-jobui .win-body { padding: 10px; }
.ju-main { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.ju-me { display: flex; align-items: center; gap: 10px; padding: 6px 10px; border: 1px solid #d5dae4; border-radius: 6px; background: linear-gradient(90deg, #f3f6fd, #fff); font-size: 12px; }
.ju-me b { font-size: 14px; color: #1f2d52; }
.ju-me span { color: #8a93a6; }
.ju-av { width: 40px; height: 40px; border-radius: 50%; background: #e6ecfa; flex: none; }
.ju-why { font-size: 12px; color: #a33; background: #fdecec; border: 1px solid #f2c2c2; border-radius: 5px; padding: 6px 10px; }
.ju-cols { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 10px; }
.ju-lbl { font-weight: bold; color: #45526e; margin: 2px 0 6px; font-size: 12px; }
.ju-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; }
.ju-card { position: relative; border: 1px solid #d5dae4; border-radius: 8px; padding: 6px 4px 7px; text-align: center; background: #fff; cursor: pointer; }
.ju-card:hover { border-color: #9fb0d8; }
.ju-card .ju-pic { position: relative; height: 96px; border-radius: 6px; display: grid; place-items: center; margin-bottom: 5px; background: linear-gradient(#eef3ff, #d5e0f8); overflow: hidden; }
.ju-card canvas { width: 96px; height: 96px; image-rendering: pixelated; }
.ju-card b { display: block; font-size: 12px; color: #1f2d52; }
.ju-card small { display: block; color: #8a93a6; font-size: 10px; margin-top: 1px; }
.ju-pop { position: absolute; top: 4px; right: 4px; font-size: 10px; background: rgba(255, 255, 255, 0.9); border-radius: 8px; padding: 0 5px; color: #45526e; }
.ju-card.on { border-color: #4e6fc6; box-shadow: 0 0 0 2px rgba(78, 111, 198, 0.35); }
.ju-card.on::before { content: "✓"; position: absolute; top: -7px; left: -7px; width: 18px; height: 18px; border-radius: 50%; background: #4e6fc6; color: #fff; font-size: 11px; display: grid; place-items: center; z-index: 1; }
.ju-card.lock { opacity: 0.55; }
.ju-card.lock .ju-pop { background: #fde8e8; color: #c43b3b; }
.ju-pops { margin-top: 10px; border-top: 1px solid #e3e7f0; padding-top: 7px; display: flex; gap: 14px; align-items: center; color: #8a93a6; font-size: 11px; flex-wrap: wrap; }
.ju-pops b { color: #45526e; }
.ju-det { border: 1px solid #d5dae4; border-radius: 8px; padding: 10px; display: flex; flex-direction: column; gap: 8px; background: #fff; min-width: 0; }
.ju-stage { position: relative; height: 200px; border-radius: 8px; background: radial-gradient(circle at 50% 70%, #fff 0, #dfe8ff 60%, #b9c9f3 100%); display: grid; place-items: center; }
.ju-big { width: 200px; height: 190px; image-rendering: pixelated; }
.ju-arr { position: absolute; top: 50%; margin-top: -13px; width: 26px; height: 26px; min-height: 26px; border-radius: 50%; background: rgba(255, 255, 255, 0.85); border: 1px solid #b9c3d8; font-size: 11px; color: #45526e; cursor: pointer; padding: 0; }
.ju-arr.l { left: 8px; } .ju-arr.r { right: 8px; }
.ju-cap { position: absolute; bottom: 6px; left: 0; right: 0; text-align: center; font-size: 10px; color: #6b7690; }
.ju-det h3 { margin: 0; font-size: 16px; color: #1f2d52; }
.ju-det h3 small { font-size: 11px; color: #8a93a6; font-weight: normal; margin-left: 4px; }
.ju-tags { display: flex; gap: 4px; flex-wrap: wrap; }
.ju-tags span { font-size: 10px; padding: 1px 7px; border-radius: 9px; background: #eef2fb; color: #45526e; }
.ju-about { color: #4b556b; line-height: 1.55; font-size: 12px; }
.ju-rqs { display: flex; flex-direction: column; gap: 3px; }
.ju-rq { display: flex; justify-content: space-between; padding: 3px 7px; border: 1px solid #eef1f7; border-radius: 4px; font-size: 12px; }
.ju-rq.ok b { color: #2e9d4f; } .ju-rq.bad b { color: #c43b3b; }
.ju-go { height: 34px; border-radius: 5px; border: 1px solid #3f5db0; background: linear-gradient(#6c8be0, #4e6fc6); color: #fff; font-weight: bold; font-size: 14px; cursor: pointer; }
.ju-go:disabled { opacity: 0.45; cursor: default; }
.ju-confirm { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 12px; padding: 6px 8px; border: 1px solid #f0d27a; background: #fff8e1; border-radius: 6px; }
.ju-confirm span { flex: 1 1 100%; }
.ju-yes, .ju-no { flex: 1; height: 30px; border-radius: 5px; cursor: pointer; font-weight: bold; }
.ju-yes { border: 1px solid #2f7d44; background: linear-gradient(#5bc06d, #2e9d4f); color: #fff; }
.ju-no { border: 1px solid #c9d2e6; background: #fff; color: #45526e; }
.ju-none { padding: 14px; text-align: center; font-size: 14px; color: #45526e; background: #f6f8fc; border-radius: 6px; }
.ju-all { display: flex; flex-direction: column; gap: 6px; font-size: 12px; }
.ju-grp { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; }
.ju-grp b { width: 70px; color: #45526e; }
.ju-grp em { font-style: normal; color: #c43b3b; }
@media (max-width: 700px) { .ju-cols { grid-template-columns: minmax(0, 1fr); } }

/* ---- official systems (official.js): the bank, item merging; item links in the chat (itemlink.js) ---- */
.win-bank .bk-sum { display: grid; gap: 4px; padding: 6px 8px; border: 1px solid var(--line, #c9cfdc); border-radius: 6px; background: rgba(127, 140, 170, 0.08); }
.win-bank .bk-row { display: flex; align-items: center; gap: 8px; }
.win-bank .bk-ic { width: 22px; text-align: center; }
.win-bank .bk-money, .win-bank .bk-zeny { font-variant-numeric: tabular-nums; }
.win-bank .bk-amt { display: flex; align-items: center; gap: 6px; margin-top: 8px; }
.win-bank .bk-amt input { min-width: 0; text-align: right; font-variant-numeric: tabular-nums; }
.win-bank .bk-quick { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.win-bank .bk-quick button { padding: 2px 8px; font-size: 12px; }
.bk-last { margin: 8px 0 0; font-weight: bold; }
.bk-last.good { color: #2a9d55; } .bk-last.bad { color: #c62828; }
.win-merge .mg-row { display: flex; align-items: center; gap: 8px; padding: 5px 0; border-bottom: 1px solid var(--line, #dfe3ea); }
.win-merge .mg-row .grow { min-width: 0; }
.ilink { color: #2f7de1; cursor: pointer; text-decoration: underline; text-decoration-style: dotted; text-underline-offset: 2px; }
.ilink:hover { color: #59a2ff; }
.chat-log .ilink { color: #8fd1ff; }
.popup.iteminfo .ii-acts { display: flex; justify-content: flex-end; margin-top: 4px; }
.popup.iteminfo .ii-acts .link { border: 0; background: none; padding: 2px 0; min-height: 0; cursor: pointer; color: #2f7de1; font-size: 11px; }

/* ---- set B (#284): the store search window (searchstore.js), the equipment switch (equipswitch.js) ---- */
.win-searchstore .ss-type { display: flex; gap: 4px; margin: 4px 0 6px; }
.win-searchstore .ss-type button { flex: 1; }
.win-searchstore .ss-type button.on { background: var(--accent, #3d6fd6); color: #fff; }
.win-searchstore .ss-lbl { display: block; margin-top: 6px; font-weight: bold; font-size: 12px; }
.win-searchstore .ss-chips { display: flex; flex-wrap: wrap; gap: 4px; margin: 3px 0; }
.win-searchstore .ss-chip { display: inline-flex; align-items: center; gap: 4px; padding: 1px 2px 1px 4px; border: 1px solid var(--line, #c9cfdc); border-radius: 10px; font-size: 12px; max-width: 100%; }
.win-searchstore .ss-chip .x { width: 18px; min-width: 18px; height: 18px; min-height: 18px; padding: 0; border: none; background: none; cursor: pointer; }
.win-searchstore .ss-chip .x::before { content: '✕'; font-size: 11px; }
.win-searchstore .ss-find { position: relative; display: flex; }
.win-searchstore .ss-find input { min-width: 0; }
.win-searchstore .ss-sug { position: absolute; left: 0; right: 0; top: 100%; z-index: 5; max-height: 200px; overflow: auto; background: var(--panel-solid, #fff); border: 1px solid var(--accent, #3d6fd6); border-radius: 4px; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25); }
.win-searchstore .ss-pick { display: flex; align-items: center; gap: 6px; width: 100%; padding: 3px 6px; border: none; border-radius: 0; background: none; text-align: left; cursor: pointer; }
.win-searchstore .ss-pick:hover, .win-searchstore .ss-pick:focus { background: rgba(61, 111, 214, 0.15); }
.win-searchstore .ss-pr { display: flex; align-items: center; gap: 4px; margin-top: 6px; font-size: 12px; }
.win-searchstore .ss-pr input { flex: 1; min-width: 0; text-align: right; font-variant-numeric: tabular-nums; }
.win-searchstore .ss-list { margin-top: 6px; max-height: 260px; overflow: auto; border-top: 1px solid var(--line, #dfe3ea); }
.win-searchstore .ss-row { display: flex; align-items: center; gap: 6px; padding: 4px 2px; border-bottom: 1px solid var(--line, #dfe3ea); cursor: pointer; }
.win-searchstore .ss-row:hover { background: rgba(61, 111, 214, 0.08); }
.win-searchstore .ss-row.sel { background: rgba(61, 111, 214, 0.18); }
.win-searchstore .ss-what { display: flex; flex-direction: column; min-width: 0; }
.win-searchstore .ss-what b, .win-searchstore .ss-what small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.win-searchstore .ss-price { display: flex; flex-direction: column; align-items: flex-end; font-variant-numeric: tabular-nums; white-space: nowrap; }
.win-searchstore .ss-gold { margin: 0 0 2px; color: #a8770a; font-weight: bold; }
html.mhud .win-searchstore .ss-pick { min-height: 40px; }
html.mhud .win-searchstore .ss-row { min-height: 44px; }
.ic.esw { position: relative; }
/* the item grade (gradeui.js; Noh 2026-10-21): "[A]" before the name in its colour, the letter at the icon's corner */
:root { --ig-1: #5fd47a; --ig-2: #5aa9ff; --ig-3: #d38cf5; --ig-4: #ffb02e; } /* (the dark debug theme) */
body.theme-ro, body.theme-pastel { --ig-1: #2b8a3e; --ig-2: #1971c2; --ig-3: #8e3ab0; --ig-4: #e07800; } /* (white windows) */
.ig { font-weight: bold; color: var(--ig-c, inherit); }
.ig-1 { --ig-c: var(--ig-1); } .ig-2 { --ig-c: var(--ig-2); } .ig-3 { --ig-c: var(--ig-3); } .ig-4 { --ig-c: var(--ig-4); }
.ig.ig-4 { text-shadow: 0 0 4px rgba(255, 196, 0, 0.55); }
.ic:has(> .ig-b) { position: relative; }
.ic .ig-b { position: absolute; left: 0; bottom: 0; z-index: 1; min-width: 9px; padding: 0 2px; border-radius: 0 3px 0 0; background: var(--ig-c, #555); color: #fff;
	font: bold 8px/10px Tahoma, Verdana, sans-serif; text-align: center; pointer-events: none; text-shadow: none; }
.ic.big .ig-b { font-size: 11px; line-height: 13px; min-width: 13px; }
/* the grade window: the refine window's look (refineui.js) + the grades in a row and what it needs, green / red */
.win-gradeui .gd-steps { display: flex; align-items: flex-end; justify-content: center; gap: 4px; }
.win-gradeui .gd-st { min-width: 26px; height: 22px; display: grid; place-items: center; border: 2px solid var(--line, #c3cad8); border-radius: 5px; font: bold 13px/18px Tahoma, Verdana, sans-serif;
	color: var(--ig-c, #8a90a0); background: var(--panel2, #fff); opacity: 0.55; }
.win-gradeui .gd-st.done { opacity: 0.85; }
.win-gradeui .gd-st.on { opacity: 1; border-color: var(--ig-c, #6a7390); box-shadow: 0 0 0 2px color-mix(in srgb, var(--ig-c, #6a7390) 30%, transparent); }
.win-gradeui .gd-st.nx { opacity: 1; border-style: dashed; border-color: var(--ig-c, #6a7390); animation: gd-nx 1.4s ease-in-out infinite; }
@keyframes gd-nx { 50% { box-shadow: 0 0 8px 1px color-mix(in srgb, var(--ig-c, #6a7390) 55%, transparent); } }
@media (prefers-reduced-motion: reduce) { .win-gradeui .gd-st.nx { animation: none; } }
.win-gradeui .gd-ar { font-style: normal; color: var(--muted, #8a90a0); margin-bottom: 13px; }
.win-gradeui .gd-sw { display: flex; flex-direction: column; align-items: center; gap: 1px; }
.win-gradeui .gd-sw small { font-size: 10px; line-height: 12px; color: var(--muted, #8a90a0); }
.win-gradeui .gd-reqs { display: flex; flex-direction: column; gap: 3px; }
.win-gradeui .gd-req { display: flex; align-items: baseline; gap: 6px; padding: 3px 7px; border-radius: 5px; font-size: 12px; border: 1px solid; }
.win-gradeui .gd-req.ok { color: #1e7a34; background: rgba(47, 158, 68, 0.1); border-color: rgba(47, 158, 68, 0.45); }
.win-gradeui .gd-req.no { color: #c0262d; background: rgba(224, 49, 49, 0.08); border-color: rgba(224, 49, 49, 0.45); }
.win-gradeui .gd-req .muted { color: inherit; opacity: 0.7; }
.win-gradeui .gd-up { color: #1e7a34; }
.win-gradeui .gd-safe { margin-top: 2px; font-size: 11px; color: #1e7a34; }
/* "อัปเกรดผ่านระบบ Enchant Upgrade · คลิกที่นี่" of the item window (npcguide.js, Noh 2026-10-22) */
.ii-guide { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; margin: 4px 0; padding: 4px 8px; border-radius: 6px; font-size: 12px;
	border: 1px solid rgba(200, 138, 0, 0.45); background: rgba(200, 138, 0, 0.08); }
.ii-guide span { font-weight: 700; color: #a86e00; }
.ii-guide .ii-go { font-weight: 700; text-decoration: underline; }
.win-gradeui .gd-lines { display: flex; flex-direction: column; gap: 3px; margin-top: 4px; }
.win-gradeui .gd-lh { font-weight: 700; font-size: 12px; }
.win-gradeui .gd-ln { display: flex; align-items: baseline; gap: 6px; padding: 3px 7px; border-radius: 5px; font-size: 12px; border: 1px solid var(--line, #c3cad8); opacity: 0.72; }
.win-gradeui .gd-ln.got { opacity: 1; border-color: rgba(47, 158, 68, 0.45); background: rgba(47, 158, 68, 0.08); }
.win-gradeui .gd-ln.nx { opacity: 1; border-style: dashed; border-color: #c88a00; }
.win-gradeui .gd-lg { min-width: 16px; text-align: center; color: var(--ig-c, #6a7390); }
.win-gradeui .gd-lt { flex: 1; min-width: 0; }
.win-gradeui .gd-now { display: block; color: #1e7a34; }
.win-gradeui .gd-ok { font-style: normal; color: #1e7a34; }
.win-gradeui .gd-new { font-style: normal; font-size: 10px; font-weight: 700; color: #fff; background: #c88a00; border-radius: 4px; padding: 0 4px; }
.win-gradeui .gd-note { font-size: 10.5px; color: var(--muted, #8a90a0); }
.win-gradeui.drop-on .rf-slot { border-color: #c88a00; background: rgba(200, 138, 0, 0.1); }
.win-gradeui .gd-lv .ig { font-size: 14px; }
.ic.esw .esw-b { position: absolute; left: -2px; top: -3px; z-index: 1; padding: 0 2px; border-radius: 6px; background: #3d6fd6; color: #fff; font: bold 9px/12px sans-serif; pointer-events: none; }
.eqsw-run { white-space: nowrap; }
.eqsw-hint { margin: 6px 0 0; }

/* ---- set C (#284): achievements (achieve.js), the attendance check (attend.js), pet evolution (systems.js) ---- */
.win-achieve .ach-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 6px 8px; border: 1px solid var(--line, #c9cfdc); border-radius: 6px; background: rgba(127, 140, 170, 0.08); }
.win-achieve .ach-rank, .win-achieve .ach-total { display: flex; flex-direction: column; align-items: center; line-height: 1.2; }
.win-achieve .ach-rank b { font-size: 18px; color: #c58a00; }
.win-achieve .ach-total b { font-size: 16px; }
.win-achieve .ach-gauge { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.win-achieve .ach-bar { height: 8px; border-radius: 4px; background: rgba(127, 140, 170, 0.25); overflow: hidden; }
.win-achieve .ach-bar u { display: block; height: 100%; background: linear-gradient(90deg, #f3c34d, #e69a1a); text-decoration: none; }
.win-achieve .ach-tabs { display: flex; flex-wrap: wrap; gap: 3px; margin: 8px 0 4px; }
.win-achieve .ach-tabs button { position: relative; padding: 2px 8px; font-size: 12px; }
.win-achieve .ach-tabs button.on { background: var(--accent, #3d6fd6); color: #fff; }
.win-achieve .ach-tabs small { opacity: 0.7; }
.win-achieve .ach-list { max-height: min(56vh, 460px); overflow: auto; border-top: 1px solid var(--line, #dfe3ea); }
.win-achieve .ach-row { display: flex; align-items: flex-start; gap: 8px; padding: 6px 2px; border-bottom: 1px solid var(--line, #dfe3ea); }
.win-achieve .ach-row.done { opacity: 0.75; }
.win-achieve .ach-row.claim { opacity: 1; background: rgba(243, 195, 77, 0.16); }
.win-achieve .ach-st { flex: none; width: 20px; text-align: center; }
.win-achieve .ach-main { flex: 1; min-width: 0; }
.win-achieve .ach-name { display: block; overflow-wrap: anywhere; }
.win-achieve .ach-deps { display: flex; flex-wrap: wrap; gap: 2px 8px; margin-top: 2px; font-size: 11px; color: #7a8399; }
.win-achieve .ach-deps .ok { color: #2a9d55; }
.win-achieve .ach-rw { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-top: 2px; }
.win-achieve .ach-pts { flex: none; min-width: 32px; text-align: right; font-weight: bold; color: #c58a00; }
.bi2-ic, [data-w=achieve] { position: relative; }
.ach-n { position: absolute; right: -2px; top: -3px; min-width: 14px; padding: 0 3px; border-radius: 7px; background: #e5484d; color: #fff; font: bold 10px/14px sans-serif; text-align: center; pointer-events: none; }
/* the attendance check as a calendar table (2026-11-20, Noh: a picture of a daily-reward table "ทำให้ ตาราง สวยๆแบบนี้ได้ไหม";
   before: 2026-10-26's cards, five a row, that had to scroll): a night-blue panel with gold in every theme (the panel
   sets its own colours - Spin's hall), seven days a row, a cell a day (the big days gold with their Cash, the days taken
   dim under a check, today's glowing, the day taken today dashed), the last prize across the rest of its row; under it
   what today gives / the time to the next day with the claim button; the pop-up of what came */
.win.win-attend .win-body { padding: 0; }
.win-attend .at-wrap { --at-ink: #e9edff; --at-muted: #9aa8e0; --at-line: #2c3a7c; --at-gold: #ffd166; --at-gold-2: #f6a821; --at-gold-bg: rgba(255, 209, 102, 0.14);
	--at-ok: #5fdc93; --at-bar: rgba(255, 255, 255, 0.10); --at-pop: rgba(4, 6, 20, 0.7); --at-pop-card: #141c4d;
	position: relative; display: flex; flex-direction: column; gap: 8px; min-width: 0; padding: 12px 12px 9px; color: var(--at-ink);
	background: radial-gradient(120% 70% at 50% 0%, #1b2a6b 0%, #0f1640 48%, #080b22 100%); }
.win-attend .at-wrap .at-off { margin: 0; padding: 36px 10px; text-align: center; color: var(--at-muted); }
.at-head { display: flex; flex-direction: column; gap: 5px; }
.at-title { display: flex; align-items: center; gap: 10px; }
.at-cal { flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 8px;
	background: #fff; color: #1a2150; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.45); overflow: hidden; line-height: 1; }
.at-cal small { align-self: stretch; padding: 2px 0; background: #e5484d; color: #fff; font-size: 10px; font-weight: bold; text-align: center; }
.at-cal b { padding-top: 2px; font-size: 17px; }
.at-tt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.at-tt b { font-size: 15px; line-height: 1.3; color: #fff; }
.at-tt small { color: var(--at-muted); font-size: 11.5px; line-height: 1.35; }
.at-count { flex: none; display: flex; align-items: baseline; gap: 4px; white-space: nowrap; }
.at-count b { font-size: 26px; line-height: 1; color: var(--at-gold); text-shadow: 0 0 14px rgba(255, 209, 102, 0.45); font-variant-numeric: tabular-nums; }
.at-count small { color: var(--at-muted); font-size: 12px; }
.at-bar { position: relative; height: 8px; margin: 6px 10px 13px; border-radius: 4px; background: var(--at-bar); }
.at-bar > i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 4px; background: linear-gradient(90deg, #7b8cff, var(--at-gold)); transition: width 0.5s ease; }
.at-mile { position: absolute; top: 50%; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; pointer-events: auto; }
.at-mile i { display: grid; place-items: center; width: 17px; height: 17px; border-radius: 50%; background: #10184a; border: 2px solid var(--at-gold-2); color: var(--at-gold); font-size: 9px; font-style: normal; line-height: 1; }
.at-mile.on i { background: var(--at-gold); border-color: #fff3c4; color: #5a3a00; box-shadow: 0 0 8px rgba(255, 209, 102, 0.85); }
.at-mile small { position: absolute; top: 17px; font-size: 10px; font-weight: bold; color: var(--at-muted); }
.at-goal { align-self: center; padding: 1px 12px; border: 1px solid rgba(255, 209, 102, 0.28); border-radius: 12px; background: var(--at-gold-bg); font-size: 12px; line-height: 1.5; }
.at-goal b { color: #fff; }
.at-goal .at-gc { color: var(--at-gold); font-weight: bold; }
.at-goal.done { color: var(--at-ok); font-weight: bold; }
.at-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: 6px; }
.at-card { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 0; padding: 4px 2px 5px;
	border: 1px solid var(--at-line); border-radius: 9px; background: linear-gradient(180deg, rgba(124, 144, 255, 0.15), rgba(124, 144, 255, 0.04)); }
.at-d { align-self: stretch; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0 2px; font-size: 11px; font-weight: bold; line-height: 14px; color: var(--at-muted); white-space: nowrap; }
.at-its { display: flex; justify-content: center; align-items: center; gap: 4px; margin: auto 0; }
.at-it { position: relative; display: inline-flex; cursor: pointer; }
.win-attend .at-it .ic { width: 30px; height: 30px; margin: 0; border-radius: 6px; background: linear-gradient(#ffffff, #dfe5ff); box-shadow: inset 0 0 0 1px rgba(12, 18, 48, 0.25), 0 1px 2px rgba(0, 0, 0, 0.4); }
.win-attend .at-it .ic img { width: 24px; height: 24px; }
.at-it .at-a { position: absolute; right: -4px; bottom: -4px; padding: 0 3px; border-radius: 6px; background: #0c1230; color: #fff; font: bold 10px/13px var(--font); box-shadow: 0 0 0 1px rgba(124, 144, 255, 0.55); pointer-events: none; }
.at-cash { display: flex; align-items: center; justify-content: center; gap: 3px; margin-top: 2px; color: var(--at-gold); line-height: 1; white-space: nowrap; }
.at-cash b { font-size: 13px; }
.at-cash small { font-size: 10px; font-weight: bold; }
.at-card:not(.wide) .at-cash small { display: none; }
.at-coin { display: inline-grid; place-items: center; flex: none; width: 13px; height: 13px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff3b0, #f2c24a 45%, #b9800c);
	color: #7a4f00; font: bold 8px/1 var(--font); font-style: normal; box-shadow: 0 0 0 1px rgba(122, 79, 0, 0.45); }
.at-card.big { border-color: rgba(255, 209, 102, 0.9); background: linear-gradient(170deg, rgba(255, 209, 102, 0.30), rgba(246, 168, 33, 0.08) 62%, rgba(124, 144, 255, 0.06));
	box-shadow: inset 0 0 0 1px rgba(255, 209, 102, 0.22), 0 0 12px rgba(246, 168, 33, 0.25); }
.at-card.big .at-d { color: var(--at-gold); }
.at-star { color: var(--at-gold); font-style: normal; font-size: 11px; text-shadow: 0 0 5px rgba(255, 209, 102, 0.8); }
/* the last prize across the rest of its row: its day, its items and its Cash side by side */
.at-card.wide { flex-direction: row; justify-content: center; gap: 6px 22px; padding: 4px 14px; }
.at-card.wide .at-d { align-self: center; flex: none; width: auto; max-width: 150px; font-size: 13px; line-height: 17px; }
.at-grand { flex-basis: 100%; font-style: normal; font-size: 11px; font-weight: normal; color: var(--at-ink); opacity: 0.85; text-align: center; }
.at-card.wide .at-its { margin: 0; gap: 8px; }
.at-card.wide .at-cash { margin-top: 0; }
.at-card.wide .at-cash b { font-size: 20px; text-shadow: 0 0 12px rgba(255, 209, 102, 0.5); }
.at-card.wide .at-cash small { font-size: 12px; }
.at-card.wide .at-coin { width: 18px; height: 18px; font-size: 10px; }
.at-tag { position: absolute; top: -10px; left: 50%; transform: translateX(-50%); padding: 0 8px; border-radius: 8px; background: linear-gradient(#ffe9a3, var(--at-gold) 50%, var(--at-gold-2)); color: #4a2c00;
	font-size: 10px; font-weight: bold; line-height: 14px; white-space: nowrap; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.5); z-index: 1; }
.at-card.now { border: 2px solid var(--at-gold); padding: 6px 1px 4px; background: linear-gradient(180deg, rgba(255, 209, 102, 0.24), rgba(124, 144, 255, 0.12)); animation: at-pulse 1.6s ease-in-out infinite; }
.at-card.now .at-d { color: #fff; }
.at-card.now.wide { padding: 5px 13px 3px; }
@keyframes at-pulse { 0%, 100% { box-shadow: 0 0 0 1px rgba(255, 209, 102, 0.3), 0 0 8px rgba(255, 209, 102, 0.35); } 50% { box-shadow: 0 0 0 3px rgba(255, 209, 102, 0.22), 0 0 18px rgba(255, 209, 102, 0.75); } }
.at-card.got { border-color: rgba(44, 58, 124, 0.6); background: rgba(8, 11, 34, 0.5); box-shadow: none; }
.at-card.big.got { border-color: rgba(255, 209, 102, 0.38); }
.at-card.got > :not(.at-stamp):not(.at-d) { opacity: 0.3; filter: grayscale(0.75); }
.at-card.got .at-d { color: var(--at-ok); opacity: 0.85; }
.at-card.got .at-star { color: inherit; text-shadow: none; }
.at-card.today { border: 2px dashed var(--at-ok); padding: 3px 1px 4px; }
.at-card.today.wide { padding: 3px 13px; }
.at-stamp { position: absolute; left: 50%; top: calc(50% + 8px); display: grid; place-items: center; width: 26px; height: 26px; margin: -13px 0 0 -13px; border: 2px solid #d8ffe9; border-radius: 50%;
	background: linear-gradient(#3fd486, #16935a); color: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.55); pointer-events: none; }
.at-stamp i { font-style: normal; font-size: 14px; line-height: 1; }
.at-card.wide .at-stamp { top: 50%; }
.at-card.just .at-stamp { animation: at-stamp 0.55s cubic-bezier(0.2, 0.8, 0.3, 1.2) both; }
@keyframes at-stamp { 0% { transform: scale(2.6); opacity: 0; } 60% { transform: scale(0.88); opacity: 1; } 100% { transform: scale(1); opacity: 1; } }
/* under the table: what today gives / the time to the next day, the claim button beside */
.at-foot { display: flex; align-items: center; gap: 10px; padding: 7px 8px 7px 12px; border: 1px solid var(--at-line); border-radius: 12px; background: rgba(8, 11, 34, 0.62); }
.at-status { flex: 1; min-width: 0; margin: 0; font-size: 12.5px; line-height: 1.45; color: var(--at-ink); }
.at-status b { color: var(--at-gold); }
.at-status .at-ok { color: var(--at-ok); font-weight: bold; }
.at-status .at-cd { font-variant-numeric: tabular-nums; }
/* (the claim button: gold in every theme - over the client's 3-part button images too) */
.win-attend .at-foot button.at-go { flex: none; height: auto; min-height: 38px; padding: 0 20px; border: 0; border-radius: 19px; font-size: 14px; line-height: 1.2; font-weight: bold; color: #4a2c00; cursor: pointer;
	background: linear-gradient(#ffe9a3, #ffd166 45%, #f6a821); box-shadow: 0 3px 0 #9a6200, 0 6px 14px rgba(246, 168, 33, 0.3); text-shadow: none; }
.win-attend .at-foot button.at-go:hover:not(:disabled) { background: linear-gradient(#fff3c4, #ffdc85 45%, #f8b540); filter: none; }
.win-attend .at-foot button.at-go:active:not(:disabled) { background: linear-gradient(#ffd166, #f6a821); transform: translateY(2px); box-shadow: 0 1px 0 #9a6200; }
.win-attend .at-foot button.at-go:disabled { opacity: 1; color: var(--at-muted); background: rgba(124, 144, 255, 0.12); box-shadow: inset 0 0 0 1px var(--at-line); cursor: default; }
.at-note { margin: 0; text-align: center; font-size: 11px; line-height: 1.4; color: var(--at-muted); opacity: 0.9; }
.at-lock { white-space: nowrap; }
/* the pop-up of a claim: over the panel, a tap closes it */
.at-pop { position: absolute; inset: 0; z-index: 5; display: grid; place-items: center; border-radius: inherit; background: var(--at-pop); cursor: pointer; }
.at-pop.fresh { animation: at-fade 0.25s ease both; }
.at-pop-card { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 220px; max-width: calc(100% - 32px); padding: 16px 22px 14px;
	border: 2px solid var(--at-gold); border-radius: 14px; background: var(--at-pop-card); color: var(--at-ink); box-shadow: 0 0 26px rgba(255, 209, 102, 0.55); overflow: hidden; }
.at-pop.fresh .at-pop-card { animation: at-popin 0.5s cubic-bezier(0.2, 0.8, 0.3, 1.25) both; }
.at-rays { position: absolute; left: 50%; top: 50%; width: 360px; height: 360px; margin: -180px 0 0 -180px; pointer-events: none; opacity: 0.16;
	background: repeating-conic-gradient(var(--at-gold) 0 10deg, transparent 10deg 30deg); animation: at-spin 9s linear infinite; }
.at-pop-card > :not(.at-rays) { position: relative; }
.at-pop-t { font-size: 17px; font-weight: bold; color: var(--at-gold); }
.at-pop-its { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.at-pop-it { display: flex; flex-direction: column; align-items: center; gap: 5px; max-width: 110px; }
.at-pop-it small { font-size: 11px; line-height: 1.2; text-align: center; color: var(--at-ink); }
.win-attend .at-it.lg .ic { width: 54px; height: 54px; border-radius: 9px; }
.win-attend .at-it.lg .ic img { width: 48px; height: 48px; }
.at-it.lg .at-a { font-size: 12px; line-height: 15px; }
.at-pop-cash { display: flex; align-items: center; gap: 5px; font-size: 20px; font-weight: bold; color: var(--at-gold); }
.at-pop-cash .at-coin { width: 20px; height: 20px; font-size: 11px; }
.at-pop-s { font-size: 12px; color: var(--at-muted); }
@keyframes at-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes at-popin { 0% { transform: scale(0.55); opacity: 0; } 70% { transform: scale(1.05); opacity: 1; } 100% { transform: scale(1); } }
@keyframes at-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .at-card.now, .at-card.just .at-stamp, .at-pop.fresh, .at-pop.fresh .at-pop-card, .at-rays { animation: none; } }
/* a low screen (a small notebook, ~650 px of page): the table closer together - the claim button stays on the screen */
@media (max-height: 760px) {
	html:not(.mhud) .win-attend .at-wrap { gap: 6px; padding: 9px 12px 7px; }
	html:not(.mhud) .at-head { gap: 3px; }
	html:not(.mhud) .at-cal { width: 34px; height: 34px; }
	html:not(.mhud) .at-cal b { font-size: 15px; }
	html:not(.mhud) .at-bar { margin: 4px 10px 12px; }
	html:not(.mhud) .at-grid { gap: 5px; }
	html:not(.mhud) .at-card { gap: 2px; padding: 3px 2px 4px; }
	html:not(.mhud) .at-card.now { padding: 5px 1px 3px; }
	html:not(.mhud) .at-card.today { padding: 2px 1px 3px; }
	html:not(.mhud) .win-attend .at-card:not(.wide) .at-it .ic { width: 26px; height: 26px; }
	html:not(.mhud) .at-cash { margin-top: 1px; }
	html:not(.mhud) .at-foot { padding: 5px 8px 5px 12px; }
	html:not(.mhud) .win-attend .at-foot button.at-go { min-height: 34px; }
}
/* a phone: still seven a row - smaller cells, the button under what today gives */
html.mhud .win-attend .at-wrap { gap: 7px; padding: 10px 6px 8px; }
html.mhud .at-grid { gap: 4px 3px; }
html.mhud .at-card { gap: 2px; padding: 3px 1px 4px; border-radius: 7px; }
html.mhud .at-card.now { padding: 5px 0 3px; }
html.mhud .at-card.today { padding: 2px 0 3px; }
html.mhud .at-d { font-size: 10px; line-height: 13px; }
html.mhud .at-card:not(.wide) .at-d { flex-wrap: nowrap; }
html.mhud .at-its { gap: 2px; }
/* (a day's two icons in a seventh of the screen: as big as its cell lets, 21 px at most) */
html.mhud .win-attend .at-it .ic { --at-s: clamp(15px, calc((100vw - 30px) / 14 - 3px), 21px); width: var(--at-s); height: var(--at-s); border-radius: 4px; }
html.mhud .win-attend .at-it .ic img { width: calc(var(--at-s) - 2px); height: calc(var(--at-s) - 2px); }
html.mhud .at-it .at-a { right: -2px; bottom: -4px; padding: 0 2px; font-size: 9px; line-height: 11px; }
html.mhud .at-cash b { font-size: 11px; }
html.mhud .at-coin { width: 11px; height: 11px; font-size: 7px; }
html.mhud .at-star { font-size: 9px; }
html.mhud .at-stamp { width: 22px; height: 22px; margin: -11px 0 0 -11px; }
html.mhud .at-stamp i { font-size: 12px; }
html.mhud .at-tag { top: -9px; padding: 0 6px; font-size: 9px; line-height: 13px; }
html.mhud .at-card.wide { gap: 4px 10px; padding: 3px 6px; }
html.mhud .at-card.now.wide, html.mhud .at-card.today.wide { padding: 4px 5px 2px; }
html.mhud .at-card.wide .at-d { max-width: 104px; font-size: 12px; line-height: 15px; }
html.mhud .at-grand { font-size: 10px; }
html.mhud .at-card.wide .at-its { gap: 5px; }
html.mhud .at-card.wide .at-cash b { font-size: 16px; }
html.mhud .at-card.wide .at-cash small { font-size: 10.5px; }
html.mhud .at-card.wide .at-coin { width: 15px; height: 15px; font-size: 9px; }
html.mhud .win-attend .at-it.lg .ic { --at-s: 54px; border-radius: 9px; }
html.mhud .win-attend .at-it.lg .ic img { width: 48px; height: 48px; }
html.mhud .at-card.wide .at-it .ic { --at-s: 21px; }
html.mhud .at-tt b { font-size: 14px; }
html.mhud .at-foot { flex-direction: column; align-items: stretch; gap: 7px; padding: 8px; text-align: center; }
html.mhud .win-attend .at-foot button.at-go { min-height: 42px; font-size: 15px; }
/* a narrow phone (360 px): the big days' star gives its place to the day; a short one (the browser's bars leave
   ~650 px): what today gives beside the button, so the whole table and the button are on the screen */
@media (max-width: 384px) { html.mhud:not(.mh-land) .at-card:not(.wide) .at-star { display: none; } }
@media (max-height: 720px) {
	html.mhud:not(.mh-land) .at-foot { flex-direction: row; align-items: center; gap: 8px; padding: 6px 6px 6px 10px; text-align: left; }
	html.mhud:not(.mh-land) .at-status { font-size: 12px; line-height: 1.4; }
	html.mhud:not(.mh-land) .win-attend .at-foot button.at-go { min-height: 40px; padding: 0 14px; font-size: 14px; }
}
/* a phone held sideways: the window over the screen's height - the head, what today gives and the button on the left,
   the table on the right (the button without scrolling) */
html.mhud.mh-land .win-attend .at-wrap { display: grid; grid-template-columns: 232px minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto; gap: 7px 10px; min-height: 100%; box-sizing: border-box; padding: 9px 8px 8px; }
html.mhud.mh-land .at-head { grid-column: 1; grid-row: 1; }
html.mhud.mh-land .at-foot { grid-column: 1; grid-row: 2; align-self: center; }
html.mhud.mh-land .at-note { grid-column: 1; grid-row: 3; }
html.mhud.mh-land .at-grid { grid-column: 2; grid-row: 1 / span 3; align-self: center; }
html.mhud.mh-land .at-title { flex-wrap: wrap; gap: 4px 8px; }
html.mhud.mh-land .at-tt { display: contents; }
html.mhud.mh-land .at-tt b { flex: 1; min-width: 0; }
html.mhud.mh-land .at-tt small { order: 3; flex-basis: 100%; }
html.mhud.mh-land .at-count b { font-size: 22px; }
.map-btn.map-attend { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; font-size: 18px; line-height: 1; }
.map-btn.map-attend b { font-size: 9px; line-height: 11px; }
.pe-list { display: grid; gap: 4px; }
.pe-row { display: flex; align-items: center; gap: 6px; padding: 4px 0; border-bottom: 1px solid var(--line, #dfe3ea); }
.pe-row .grow { min-width: 0; }
.pe-items { display: flex; flex-wrap: wrap; gap: 2px 8px; font-size: 11px; }
.pe-need { display: inline-flex; align-items: center; gap: 3px; }
.pe-need.ok { color: #2a9d55; } .pe-need.no { color: #c62828; }

/* ---- set D (#284): the roulette (roulette.js), party booking (booking.js) ---- */
.win-booking .bk-tabs { display: flex; gap: 4px; margin-bottom: 6px; }
.win-booking .bk-tabs button { flex: 1; }
.win-booking .bk-tabs button.on { background: var(--accent, #3d6fd6); color: #fff; }
.win-booking .pb-find, .win-booking .pb-form { display: grid; gap: 6px; }
.win-booking .pb-find label, .win-booking .pb-form label { display: flex; align-items: center; gap: 6px; }
.win-booking select, .win-booking input[type=number] { min-width: 0; flex: 1; }
.win-booking .pb-jobs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 8px; }
.win-booking .pb-jobs > span { grid-column: 1 / -1; font-weight: bold; }
.win-booking .pb-list { margin-top: 6px; max-height: 300px; overflow: auto; border-top: 1px solid var(--line, #dfe3ea); }
.win-booking .pb-row { display: flex; align-items: center; gap: 6px; padding: 6px 2px; border-bottom: 1px solid var(--line, #dfe3ea); }
.win-booking .pb-main { min-width: 0; }
.win-booking .pb-want { display: flex; flex-wrap: wrap; gap: 3px; margin-top: 2px; }
.win-booking .pb-want span { padding: 0 5px; border: 1px solid var(--line, #c9cfdc); border-radius: 8px; }
.win-stylist .st-wrap { display: flex; gap: 12px; align-items: stretch; }
/* the stage: the character big under a soft spotlight, on a lit ring (drag to turn) */
.win-stylist .st-stage { position: relative; flex: none; width: 168px; min-height: 250px; border-radius: 10px; overflow: hidden; cursor: grab; touch-action: none;
	background: radial-gradient(120% 70% at 50% 18%, #ffffff 0%, #eef3ff 45%, #d7e2fb 100%); border: 1px solid #b9c8ea; box-shadow: inset 0 -18px 30px rgba(80, 110, 190, 0.18); }
.win-stylist .st-stage:active { cursor: grabbing; }
.win-stylist .st-light { position: absolute; left: 50%; top: -30px; width: 150px; height: 230px; transform: translateX(-50%); pointer-events: none;
	background: radial-gradient(50% 60% at 50% 0%, rgba(255, 246, 214, 0.9), rgba(255, 246, 214, 0) 70%); animation: st-glow 3.2s ease-in-out infinite; }
.win-stylist .st-ring { position: absolute; left: 50%; top: 166px; width: 118px; height: 26px; transform: translateX(-50%); border-radius: 50%; pointer-events: none;
	background: radial-gradient(closest-side, rgba(120, 150, 230, 0.45), rgba(120, 150, 230, 0.12) 70%, transparent); box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.7), 0 0 14px rgba(110, 140, 230, 0.5); }
@keyframes st-glow { 0%, 100% { opacity: 0.75; } 50% { opacity: 1; } }
.win-stylist .st-big { position: relative; display: block; margin: 14px auto 0; image-rendering: pixelated; }
.win-stylist .st-rot { position: absolute; left: 8px; right: 8px; top: 160px; display: flex; justify-content: space-between; }
.win-stylist .st-rot button { width: 22px; height: 22px; min-height: 22px; padding: 0; border-radius: 50%; font-size: 10px; line-height: 20px; opacity: 0.8; }
.win-stylist .st-rot button:hover { opacity: 1; }
.win-stylist .st-ba { position: absolute; left: 6px; right: 6px; bottom: 6px; display: flex; flex-direction: column; gap: 3px; font-size: 10.5px; line-height: 1.3; }
.win-stylist .st-ba span { background: rgba(255, 255, 255, 0.82); border: 1px solid #cdd8f0; border-radius: 5px; padding: 2px 5px; color: #3b4a6b; }
.win-stylist .st-ba span.after { border-color: #93d4ac; background: rgba(236, 251, 241, 0.92); color: #1c6b3c; }
.win-stylist .st-ba em { display: block; font-style: normal; font-weight: bold; font-size: 9.5px; letter-spacing: 0.02em; opacity: 0.8; }
.win-stylist .st-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.win-stylist .st-tabs { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 4px; }
.win-stylist .st-tabs button { position: relative; display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; font-size: 12px; border-radius: 14px; }
.win-stylist .st-tabs button.on { background: linear-gradient(#5b87e6, #3d6fd6); border-color: #2f5bbd; color: #fff; }
.win-stylist .st-dot { width: 6px; height: 6px; border-radius: 50%; background: #2fbf6a; box-shadow: 0 0 4px #2fbf6a; }
.win-stylist .st-sub { margin: 0 0 6px; }
.win-stylist .st-opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(66px, 1fr)); grid-auto-rows: max-content; align-content: start; gap: 6px; max-height: 300px; overflow: auto; padding: 2px; }
/* (grid-auto-rows max-content: the rows keep the cards' height and the list scrolls - Noh 2026-10-25, 99 hair styles: the
   cards, min-height 0, were squeezed to fit the 300 px) */
.win-stylist .st-card { position: relative; display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 5px 2px 4px; min-width: 0; min-height: 0; border-radius: 8px;
	background: linear-gradient(#ffffff, #f1f5fd); border: 1px solid #ccd7ee; transition: transform 0.12s, box-shadow 0.12s; }
.win-stylist .st-card:hover { transform: translateY(-2px); box-shadow: 0 4px 10px rgba(60, 90, 170, 0.18); border-color: #8fa9e2; }
.win-stylist .st-card.cur { background: linear-gradient(#fffaf0, #fff1d6); border-color: #e6c27a; }
.win-stylist .st-card.on { border-color: #2a9d55; box-shadow: 0 0 0 2px #2a9d55, 0 0 12px rgba(42, 157, 85, 0.45); background: linear-gradient(#f4fff8, #dff6e8); }
.win-stylist .st-th { display: block; image-rendering: pixelated; opacity: 0; transition: opacity 0.2s; }
.win-stylist .st-th.ok { opacity: 1; }
.win-stylist .st-ic { display: flex; height: 48px; align-items: center; justify-content: center; }
.win-stylist .st-lb { font-size: 11px; font-weight: bold; color: #2c3d63; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.win-stylist .st-pr { font-size: 9.5px; color: #8a5a00; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.win-stylist .st-pr.free { color: #1c7c3a; }
.win-stylist .st-badge { position: absolute; top: 2px; left: 2px; font-style: normal; font-size: 8.5px; font-weight: bold; color: #8a5a00; background: #ffe3a3; border-radius: 6px; padding: 0 4px; }
.win-stylist .st-tick { position: absolute; top: 2px; right: 3px; font-style: normal; font-size: 11px; color: #fff; background: #2a9d55; width: 16px; height: 16px; line-height: 16px; border-radius: 50%; text-align: center; }
.win-stylist .st-sum { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }
.win-stylist .st-sum span { font-size: 11px; background: #ecfbf1; border: 1px solid #a8dfbd; color: #1c6b3c; border-radius: 10px; padding: 1px 8px; }
.win-stylist .st-total .bad { color: #c0392b; }
/* (Midgard, Noh 2026-10-25: the data's hair colours / skins - hundreds a list - as colour swatches, 100 a page, a number
   to go to) */
.win-stylist .st-opts.sw { grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); gap: 4px; }
.win-stylist .st-card.sw { padding: 4px 2px 2px; gap: 2px; border-radius: 7px; }
.win-stylist .st-sw { display: block; width: 32px; height: 24px; border-radius: 6px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.18), 0 1px 2px rgba(40, 60, 110, 0.15); }
.win-stylist .st-card.sw .st-lb { font-size: 10px; font-variant-numeric: tabular-nums; }
.win-stylist .st-card.sw .st-badge { top: -4px; left: -2px; font-size: 8px; padding: 0 3px; }
.win-stylist .st-card.sw .st-tick { top: -4px; right: -3px; width: 14px; height: 14px; line-height: 14px; font-size: 9px; }
.win-stylist .st-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0 0 6px; font-size: 12px; }
.win-stylist .st-pg { display: inline-flex; align-items: center; gap: 6px; }
.win-stylist .st-pg b { font-variant-numeric: tabular-nums; min-width: 64px; text-align: center; }
.win-stylist .st-pg button { min-width: 28px; padding: 1px 6px; }
.win-stylist .st-find { display: inline-flex; align-items: center; gap: 4px; }
.win-stylist .st-find input { width: 64px; padding: 2px 6px; font-variant-numeric: tabular-nums; }
.win-stylist .st-find button { padding: 1px 10px; }
@media (max-width: 560px) { .win-stylist .st-opts.sw { grid-template-columns: repeat(auto-fill, minmax(40px, 1fr)); max-height: 240px; } .win-stylist .st-sw { width: 28px; height: 22px; } }
/* (the phone's HUD draws the UI at half its size: swatches a finger can hit, the page bar's buttons too) */
html.mhud .win-stylist .st-opts.sw { grid-template-columns: repeat(auto-fill, minmax(60px, 1fr)); gap: 6px; max-height: 320px; }
html.mhud .win-stylist .st-sw { width: 46px; height: 34px; border-radius: 8px; }
html.mhud .win-stylist .st-card.sw .st-lb { font-size: 13px; }
html.mhud .win-stylist .st-pg button, html.mhud .win-stylist .st-find button { min-width: 44px; min-height: 36px; }
html.mhud .win-stylist .st-find input { width: 84px; min-height: 36px; font-size: 15px; }
@media (max-width: 560px) { .win-stylist .st-wrap { flex-direction: column; } .win-stylist .st-stage { width: 100%; } }

/* ---- set E (#284): barter shops (barter.js) ---- */
.win-barter .bt-row { display: flex; align-items: center; gap: 8px; padding: 6px 2px; border-bottom: 1px solid var(--line, #dfe3ea); }
.win-barter .bt-row.off { opacity: 0.6; }
.win-barter .bt-main { min-width: 0; }
.win-barter .bt-cost { display: flex; flex-wrap: wrap; gap: 2px 10px; margin-top: 2px; font-size: 11px; }
.win-barter .bt-need { display: inline-flex; align-items: center; gap: 3px; }
.win-barter .bt-need.ok { color: #2a9d55; } .win-barter .bt-need.no { color: #c62828; }
.win-barter .bt-q { width: 64px; flex: none; text-align: right; }
.win-macrocheck .mc-img { display: flex; justify-content: center; margin: 6px 0; padding: 4px; border: 1px solid var(--line, #c9cfdc); background: #fff; }
.win-macrocheck .mc-img img { image-rendering: pixelated; max-width: 100%; height: auto; }
.win-macrocheck .mc-row { display: flex; align-items: center; gap: 8px; }
.win-macrocheck .mc-ans { min-width: 0; font-size: 18px; letter-spacing: 3px; text-align: center; }
.win-macrocheck .mc-time { flex: none; min-width: 44px; text-align: right; font-weight: bold; color: #c62828; font-variant-numeric: tabular-nums; }

/* ---- the Hotweek window (hotweek.js, Noh 2026-10-20): a banner by board, the player's numbers, the reel of the
   prizes slowing down onto what came out (10 spins: cards turning), the buttons, how it works ---- */
.win-hotweek .win-body { padding: 8px 10px; }
.hw { display: flex; flex-direction: column; gap: 8px; font-size: 12px; color: #1e2433; }
.hw-banner { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; color: #fff;
	background: linear-gradient(120deg, #f7971e, #ffd200); box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.12); text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35); }
.hw.b-2 .hw-banner { background: linear-gradient(120deg, #7f53ac, #647dee); }
.hw.b-3 .hw-banner { background: linear-gradient(120deg, #11998e, #38ef7d); }
.hw-ic { font-size: 28px; line-height: 1; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.25)); }
.hw-bt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.hw-bt b { font-size: 15px; }
.hw-bt small { font-size: 11px; opacity: 0.95; }
.hw-tabs { display: flex; gap: 4px; flex-wrap: wrap; }
.hw-tabs button { height: 24px; min-height: 24px; padding: 0 12px; border-radius: 12px; border: 1px solid #c3cde0; background: linear-gradient(#fff, #edf1f8); color: #3a4560; font-size: 12px; cursor: pointer; }
.hw-tabs button.on { background: linear-gradient(#6f9bed, #3d6dcd); border-color: #3a62b5; color: #fff; font-weight: bold; }
.hw-page { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.hw-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.hw-stat { display: flex; flex-direction: column; gap: 1px; padding: 6px 8px; border: 1px solid #dbe2ee; border-radius: 8px; background: #f7f9fd; min-width: 0; }
.hw-stat span { font-size: 10px; color: #6a7590; }
.hw-stat b { font-size: 15px; color: #1d2a4a; }
.hw-stat small { font-size: 10px; color: #8a94ab; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hw-bar { position: relative; display: block; height: 5px; margin-top: 3px; border-radius: 3px; background: #e2e8f3; overflow: hidden; }
.hw-bar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 3px; background: linear-gradient(90deg, #ff9a3c, #ff4e50); }
/* the reel: 56 px slots under a frame in the middle */
.hw-reel { position: relative; height: 72px; border-radius: 10px; overflow: hidden; border: 2px solid #2b3550;
	background: linear-gradient(#1f2740, #2d3a5e 50%, #1f2740); box-shadow: inset 0 0 18px rgba(0, 0, 0, 0.55); }
.hw-reel::before, .hw-reel::after { content: ''; position: absolute; top: 0; bottom: 0; width: 70px; z-index: 2; pointer-events: none; }
.hw-reel::before { left: 0; background: linear-gradient(90deg, #1f2740, transparent); }
.hw-reel::after { right: 0; background: linear-gradient(270deg, #1f2740, transparent); }
.hw-frame { position: absolute; left: 50%; top: 4px; bottom: 4px; width: 56px; margin-left: -28px; z-index: 3; border: 2px solid #ffd54a; border-radius: 8px;
	box-shadow: 0 0 10px rgba(255, 213, 74, 0.7), inset 0 0 8px rgba(255, 213, 74, 0.4); pointer-events: none; }
.hw-frame::before, .hw-frame::after { content: ''; position: absolute; left: 50%; margin-left: -6px; border: 6px solid transparent; }
.hw-frame::before { top: -4px; border-top-color: #ffd54a; }
.hw-frame::after { bottom: -4px; border-bottom-color: #ffd54a; }
.hw-strip { position: absolute; left: 0; top: 8px; display: flex; will-change: transform; }
.hw-slot { flex: none; display: flex; align-items: center; justify-content: center; width: 52px; height: 52px; margin: 0 2px; border-radius: 8px;
	background: radial-gradient(circle at 50% 40%, #47598a, #2b3658); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08); }
.hw-slot.k-rare { background: radial-gradient(circle at 50% 40%, #a35bd6, #4e2a77); }
.hw-slot.k-jp { background: radial-gradient(circle at 50% 40%, #ffcf4a, #b36b00); }
.hw-slot .ic { transform: scale(1.25); }
.hw-slot.hit { box-shadow: 0 0 0 2px #fff, 0 0 14px 4px rgba(255, 255, 255, 0.6); }
.hw-reel.won .hw-slot.hit { animation: hw-glow 1s ease-in-out infinite alternate; }
.hw-reel.won.jp { border-color: #ffb300; }
@keyframes hw-glow { from { box-shadow: 0 0 0 2px #ffe27a, 0 0 10px 3px rgba(255, 210, 60, 0.6); } to { box-shadow: 0 0 0 3px #fff, 0 0 22px 8px rgba(255, 210, 60, 0.95); } }
.hw-coin { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; font: bold 9px/1 Tahoma, sans-serif; color: #6b4300;
	background: radial-gradient(circle at 35% 30%, #fff3b0, #f2b600 60%, #b07800); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.4); }
/* 10 spins: cards turning one by one */
.hw-cards { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; padding: 8px; border-radius: 10px; background: linear-gradient(#1f2740, #2d3a5e); }
.hw-card { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; height: 58px; border-radius: 8px;
	background: linear-gradient(#5a6b99, #36426a); color: #fff; font-size: 10px; transform: rotateY(90deg); transition: transform 0.18s ease-out; }
.hw-card.on { transform: none; background: radial-gradient(circle at 50% 35%, #4b5d90, #2b3658); }
.hw-card.on.rare { background: radial-gradient(circle at 50% 35%, #b56be8, #4e2a77); animation: hw-glow 1s ease-in-out infinite alternate; }
.hw-card.on.jp { background: radial-gradient(circle at 50% 35%, #ffd560, #b36b00); animation: hw-glow 0.8s ease-in-out infinite alternate; }
.hw-card .ic { transform: scale(1.2); }
.hw-card small { font-size: 10px; color: #ffe89a; }
.hw-back { font: bold 20px/1 Tahoma, sans-serif; color: rgba(255, 255, 255, 0.4); }
.hw-last { margin: 0; padding: 6px 10px; border-radius: 8px; background: #eef3fb; color: #2b3a5c; text-align: center; font-weight: bold; }
.hw-last.muted { font-weight: normal; color: #7a86a0; }
.hw-last.bad { background: #fdecea; color: #b3261e; }
.hw-last.rare { background: linear-gradient(90deg, #f3e3ff, #fff5d6); color: #6a2aa0; }
.hw-last.jp { background: linear-gradient(90deg, #fff3c4, #ffe08a); color: #8a4b00; }
.hw-btns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.hw-go { display: flex; flex-direction: column; align-items: center; gap: 1px; min-height: 40px; height: auto; padding: 4px 6px; border-radius: 8px; font-weight: bold; font-size: 12px; }
.hw-go small { font-weight: normal; font-size: 10px; opacity: 0.85; }
.hw-opts { display: flex; align-items: center; gap: 6px; }
.hw-opts .bad { color: #c62828; }
.hw-help { padding: 8px 10px; border-radius: 8px; border: 1px dashed #c9d3e6; background: #fbfcfe; color: #46506a; font-size: 11px; line-height: 16px; }
.hw-help p { margin: 3px 0 0; }
.hw-h { display: flex; align-items: baseline; gap: 6px; margin: 4px 0 0; font-size: 13px; color: #2b3a5c; }
.hw-h small { font-weight: normal; font-size: 10px; color: #7a86a0; }
.hw-h.rare { color: #7b2fb5; }
.hw-h.jp { color: #b36b00; }
.hw-prizes { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 5px; }
.hw-prize { display: flex; align-items: center; gap: 6px; padding: 5px 7px; border: 1px solid #dbe2ee; border-radius: 7px; background: #fff; min-width: 0; }
.hw-prize span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hw-prize.k-rare { border-color: #d6b6f0; background: linear-gradient(#fff, #f8f0ff); }
.hw-prize.k-jp { border-color: #ffcf66; background: linear-gradient(#fff, #fff6dc); font-weight: bold; }
.hw-rewards { display: flex; flex-direction: column; gap: 4px; }
.hw-rw { display: flex; gap: 8px; align-items: flex-start; padding: 5px 7px; border-radius: 7px; background: #f6f8fc; }
.hw-rw b { flex: none; width: 70px; color: #3d6dcd; }
.hw-rw span { min-width: 0; }
.hw-table { max-height: 220px; overflow-y: auto; border: 1px solid #dbe2ee; border-radius: 7px; }
.hw-table table { width: 100%; border-collapse: collapse; font-size: 12px; }
.hw-table th, .hw-table td { padding: 4px 8px; text-align: left; border-bottom: 1px solid #eef1f6; }
.hw-table th { position: sticky; top: 0; background: #eef3fb; color: #46506a; font-weight: bold; }
.hw-table tr.t1 td { color: #b38600; font-weight: bold; }
.hw-table tr.t2 td, .hw-table tr.t3 td { font-weight: bold; }
.hw-table tr.me td { background: #fff6d6; }
/* the rank tab's podium (Noh 2026-10-28: "ตรงอันดับ Hotweek ทำให้แสดงตัวละครเหมือน Ranking"): ranks 1 - 3 drawn like the Hall
   of Fame's on a dark stage lit in the board's colour (Zeny orange, Cash violet, แต้มสะสม green), 1st in the middle with
   a crown and the tallest stand; ranks 4 and on in the table under it */
.hw-pod { --hw-a: #ffb21e; --hw-b: #5a2e00; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.18fr) minmax(0, 1fr); align-items: end; gap: 6px;
	padding: 8px 8px 0; border-radius: 12px; overflow: hidden; color: #fff6e6; border: 1px solid color-mix(in srgb, var(--hw-a) 60%, #000);
	background: radial-gradient(90% 90% at 50% 0%, color-mix(in srgb, var(--hw-a) 55%, var(--hw-b)), var(--hw-b) 58%, #160b00); }
.hw.b-2 .hw-pod { --hw-a: #8f7bff; --hw-b: #24164a; }
.hw.b-3 .hw-pod { --hw-a: #3fe08a; --hw-b: #0b3a2c; }
.hw-pp { position: relative; display: flex; flex-direction: column; align-items: stretch; min-width: 0; text-align: center; }
.hw-pp.p1 .pod-pic { filter: drop-shadow(0 0 10px color-mix(in srgb, var(--hw-a) 75%, transparent)) drop-shadow(0 2px 3px rgba(0, 0, 0, 0.45)); }
.hw-crown { position: absolute; top: -2px; left: 50%; transform: translateX(-50%); font-size: 18px; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.6)); z-index: 2; }
.hw-pp.me .hw-pn { text-decoration: underline; text-decoration-color: currentColor; }
.hw-pp.empty { opacity: 0.6; }
.hw-table td.hw-jb { color: #5b6680; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 130px; }
html.mhud .hw-pod { padding: 6px 4px 0; gap: 4px; }
.hw-claim { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 18px 10px; text-align: center; }
.hw-claim p { margin: 0; }
@media (max-width: 560px) { .hw-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .hw-btns { grid-template-columns: 1fr; } .hw-cards { grid-template-columns: repeat(5, minmax(0, 1fr)); } }

/* ---- Road to Asgard (tower.js, Noh 2026-10-20 / 21; first หอคอยนำโชค): a pyramid of floors, the player's floor glowing, the jackpot gold ---- */
.map-btn.map-tower { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; font-size: 18px; line-height: 1; border-radius: 9px !important;
	background: linear-gradient(160deg, #6a4bd8, #3a2a8e 60%, #24185e) !important; color: #ffe9a8; box-shadow: inset 0 0 0 1px rgba(255, 233, 168, 0.6), 0 2px 4px rgba(0, 0, 0, 0.35); position: relative; overflow: hidden; }
.map-btn.map-tower b { font-size: 9px; line-height: 11px; color: #ffe9a8; text-shadow: 0 1px 0 #1a1040; }
.win-tower .tw-wrap { position: relative; display: flex; flex-direction: column; gap: 8px; }
.win-tower .tw-wrap.shake { animation: tw-shake 0.5s ease-in-out; }
@keyframes tw-shake { 0%, 100% { transform: translateX(0); } 15% { transform: translateX(-6px); } 30% { transform: translateX(5px); } 45% { transform: translateX(-4px); } 60% { transform: translateX(3px); } 80% { transform: translateX(-1px); } }
.win-tower .tw-top { display: flex; flex-wrap: wrap; align-items: stretch; gap: 6px; }
.win-tower .tw-top > span { display: flex; align-items: center; gap: 6px; padding: 4px 8px; border-radius: 8px; background: #f3f5fb; border: 1px solid #d6dcec; min-width: 0; }
.win-tower .tw-top small { display: block; font-size: 10px; color: #6b7590; line-height: 1.2; }
.win-tower .tw-top b { font-size: 13px; color: #24305a; }
.win-tower .tw-ticket { background: linear-gradient(#fff8e6, #ffeec2) !important; border-color: #e8c97a !important; }
.win-tower .tw-floor b { color: #5a3cc4; }
.win-tower .tw-held { flex: 1; }
.win-tower .tw-held.none b { color: #8a93a8; font-weight: normal; }
.win-tower .tw-held:not(.none) { background: linear-gradient(#f2fff6, #ddf6e6) !important; border-color: #9fd9b4 !important; }
/* the tower */
.win-tower .tw-tower { position: relative; isolation: isolate; display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 12px 6px 10px; border-radius: 12px;
	background: radial-gradient(120% 90% at 50% 0%, #3d2f8f 0%, #22195a 55%, #120d33 100%); box-shadow: inset 0 0 0 1px rgba(255, 233, 168, 0.25), inset 0 -20px 40px rgba(0, 0, 0, 0.35); overflow: hidden; }
.win-tower .tw-tower::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: radial-gradient(1px 1px at 12% 20%, #fff8, transparent), radial-gradient(1px 1px at 80% 12%, #fff9, transparent), radial-gradient(1.5px 1.5px at 66% 40%, #ffe9a8aa, transparent), radial-gradient(1px 1px at 30% 70%, #fff7, transparent), radial-gradient(1px 1px at 90% 80%, #fff8, transparent); animation: tw-twinkle 4s ease-in-out infinite alternate; }
@keyframes tw-twinkle { from { opacity: 0.4; } to { opacity: 1; } }
.win-tower .tw-row { position: relative; align-self: stretch; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 3px 10px; border-radius: 10px; transition: background 0.3s, box-shadow 0.3s; }
.win-tower .tw-row.cur { background: linear-gradient(90deg, rgba(255, 214, 102, 0), rgba(255, 214, 102, 0.22), rgba(255, 214, 102, 0)); box-shadow: 0 0 0 1px rgba(255, 214, 102, 0.55), 0 0 18px rgba(255, 214, 102, 0.35); }
.win-tower .tw-row.passed .tw-slot { filter: saturate(0.6) brightness(0.8); }
.win-tower .tw-tag { position: absolute; left: 24px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; line-height: 1.15; font-size: 10px; color: #c9c2ef; white-space: nowrap; pointer-events: none; }
.win-tower .tw-tag b { font-size: 10px; }
.win-tower .tw-tag em { font-style: normal; font-size: 9.5px; opacity: 0.85; letter-spacing: 0.02em; }
.win-tower .tw-tag em.tw-big { color: #ffd666; font-weight: bold; opacity: 1; }
.win-tower .tw-row.cur .tw-tag { color: #ffd666; }
.win-tower .tw-tag.jp { color: #ffd666; }
.win-tower .tw-here { position: absolute; left: 8px; font-style: normal; color: #ffd666; font-size: 12px; text-shadow: 0 0 6px #ffd666; animation: tw-bob 1s ease-in-out infinite; }
@keyframes tw-bob { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(4px); } }
.win-tower .tw-slots { display: flex; gap: 6px; }
.win-tower .tw-slot { position: relative; width: 44px; height: 44px; display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 8px;
	background: linear-gradient(#ffffff, #e6eaf6); border: 1px solid #aab4d8; box-shadow: 0 2px 0 rgba(0, 0, 0, 0.25); transition: transform 0.08s, box-shadow 0.08s; }
.win-tower .tw-slot .tw-n { position: absolute; right: 2px; bottom: 0; font: bold 10px/12px sans-serif; color: #fff; text-shadow: 0 0 2px #000, 0 0 2px #000; }
.win-tower .tw-slot.fall { background: linear-gradient(#5a1f2a, #2e0d14); border-color: #b2424f; color: #ffb3b3; }
.win-tower .tw-slot.fall small { font-size: 9px; line-height: 10px; font-weight: bold; }
.win-tower .tw-boom { font-size: 17px; line-height: 20px; }
.win-tower .tw-slot.jp { width: 60px; height: 60px; border-radius: 12px; background: radial-gradient(circle at 50% 35%, #fff6cc, #ffcf4a 55%, #c98a00); border: 2px solid #fff2b3; box-shadow: 0 0 0 2px #c98a00, 0 0 22px rgba(255, 207, 74, 0.85); animation: tw-glow 1.8s ease-in-out infinite; }
@keyframes tw-glow { 0%, 100% { box-shadow: 0 0 0 2px #c98a00, 0 0 14px rgba(255, 207, 74, 0.6); } 50% { box-shadow: 0 0 0 2px #c98a00, 0 0 30px rgba(255, 207, 74, 1); } }
.win-tower .tw-row.top::after { content: ""; position: absolute; left: 50%; top: 50%; width: 130px; height: 130px; transform: translate(-50%, -50%); pointer-events: none; z-index: -1;
	background: conic-gradient(from 0deg, transparent 0 10deg, rgba(255, 220, 120, 0.35) 10deg 20deg, transparent 20deg 40deg, rgba(255, 220, 120, 0.35) 40deg 50deg, transparent 50deg 70deg, rgba(255, 220, 120, 0.35) 70deg 80deg, transparent 80deg 100deg, rgba(255, 220, 120, 0.35) 100deg 110deg, transparent 110deg 130deg, rgba(255, 220, 120, 0.35) 130deg 140deg, transparent 140deg 160deg, rgba(255, 220, 120, 0.35) 160deg 170deg, transparent 170deg 190deg, rgba(255, 220, 120, 0.35) 190deg 200deg, transparent 200deg 220deg, rgba(255, 220, 120, 0.35) 220deg 230deg, transparent 230deg 250deg, rgba(255, 220, 120, 0.35) 250deg 260deg, transparent 260deg 280deg, rgba(255, 220, 120, 0.35) 280deg 290deg, transparent 290deg 310deg, rgba(255, 220, 120, 0.35) 310deg 320deg, transparent 320deg 340deg, rgba(255, 220, 120, 0.35) 340deg 350deg, transparent 350deg);
	border-radius: 50%; animation: tw-spin 12s linear infinite; mask: radial-gradient(circle, #000 30%, transparent 70%); -webkit-mask: radial-gradient(circle, #000 30%, transparent 70%); }
@keyframes tw-spin { to { transform: translate(-50%, -50%) rotate(360deg); } }
.win-tower .tw-slot.run { transform: translateY(-3px) scale(1.08); border-color: #fff2b3; box-shadow: 0 0 0 3px #ffd666, 0 0 18px #ffd666; background: linear-gradient(#fffdf2, #ffe9a0); }
.win-tower .tw-slot.fall.run { background: linear-gradient(#a33242, #5a1f2a); }
.win-tower .tw-slot.hit { animation: tw-hit 0.9s ease-out; box-shadow: 0 0 0 3px #4fe08c, 0 0 22px #4fe08c; }
@keyframes tw-hit { 0% { transform: scale(1); } 25% { transform: scale(1.3); } 60% { transform: scale(0.95); } 100% { transform: scale(1); } }
.win-tower .tw-slot.crack { animation: tw-crack 0.8s ease-out forwards; }
.win-tower .tw-slot.crack::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(115deg, transparent 44%, #ffd0d0 45%, transparent 47%), linear-gradient(60deg, transparent 52%, #ffd0d0 53%, transparent 55%), linear-gradient(160deg, transparent 30%, #ffd0d0 31%, transparent 33%); }
@keyframes tw-crack { 0% { transform: scale(1); } 20% { transform: scale(1.25) rotate(-6deg); box-shadow: 0 0 24px #ff4d5e; } 40% { transform: scale(1.1) rotate(5deg); } 100% { transform: scale(1) rotate(0); box-shadow: 0 0 10px #ff4d5e; } }
.win-tower .tw-slot.held { box-shadow: 0 0 0 2px #4fe08c; }
.win-tower .tw-slot.held::before { content: "ถือ"; position: absolute; top: -7px; left: 50%; transform: translateX(-50%); font-size: 8.5px; font-weight: bold; color: #0f5a2c; background: #bff2d3; border-radius: 6px; padding: 0 4px; z-index: 1; }
.win-tower .tw-row.landed { animation: tw-land 0.6s ease-out; }
@keyframes tw-land { 0% { transform: translateY(-14px); } 60% { transform: translateY(3px); } 100% { transform: translateY(0); } }
/* the arrow up to the next floor, with sparkles */
.win-tower .tw-arrow { position: absolute; left: 50%; bottom: -26px; font-style: normal; font-size: 20px; color: #ffd666; text-shadow: 0 0 10px #ffd666; animation: tw-rise 1s ease-out forwards; pointer-events: none; }
@keyframes tw-rise { 0% { transform: translate(-50%, 20px); opacity: 0; } 30% { opacity: 1; } 100% { transform: translate(-50%, -14px); opacity: 0; } }
.win-tower .tw-spark { position: absolute; width: 6px; height: 6px; border-radius: 50%; background: #fff3b0; box-shadow: 0 0 8px #ffd666; pointer-events: none; animation: tw-sparkle 1.1s ease-out forwards; }
.win-tower .tw-spark.s1 { left: 30%; top: 40%; } .win-tower .tw-spark.s2 { left: 62%; top: 20%; animation-delay: 0.15s; } .win-tower .tw-spark.s3 { left: 46%; top: 70%; animation-delay: 0.3s; }
@keyframes tw-sparkle { 0% { transform: scale(0); opacity: 0; } 40% { transform: scale(1.6); opacity: 1; } 100% { transform: scale(0) translateY(-18px); opacity: 0; } }
.win-tower .tw-last { margin: 0; text-align: center; font-size: 12.5px; padding: 5px 8px; border-radius: 8px; background: #f3f5fb; }
.win-tower .tw-last.good { background: #eafbf1; color: #17663a; }
.win-tower .tw-last.bad { background: #fdeef0; color: #a3202f; }
.win-tower .tw-last.jp { background: linear-gradient(90deg, #fff3c4, #ffe08a, #fff3c4); color: #7a4b00; font-weight: bold; }
.win-tower .tw-recent { font-size: 11px; color: #4a5570; }
.win-tower .tw-recent ul { list-style: none; margin: 3px 0 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.win-tower .tw-recent li { display: flex; align-items: center; gap: 4px; }
.win-tower .tw-skip { gap: 4px; }
/* the jackpot: rays and confetti over the window */
.win-tower .tw-jp { position: absolute; inset: -6px; z-index: 5; display: flex; align-items: center; justify-content: center; border-radius: 12px; overflow: hidden; cursor: pointer;
	background: radial-gradient(circle, rgba(60, 40, 130, 0.55), rgba(10, 6, 30, 0.85)); animation: tw-jpin 0.35s ease-out; }
@keyframes tw-jpin { from { opacity: 0; } to { opacity: 1; } }
.win-tower .tw-rays { position: absolute; left: 50%; top: 50%; width: 640px; height: 640px; transform: translate(-50%, -50%); border-radius: 50%;
	background: repeating-conic-gradient(from 0deg, rgba(255, 214, 102, 0.42) 0 8deg, transparent 8deg 22deg); animation: tw-spin 7s linear infinite; mask: radial-gradient(circle, #000 18%, transparent 65%); -webkit-mask: radial-gradient(circle, #000 18%, transparent 65%); }
.win-tower .tw-conf { position: absolute; inset: 0; pointer-events: none; }
.win-tower .tw-conf i { position: absolute; top: -12px; width: 7px; height: 11px; border-radius: 2px; animation-name: tw-fall; animation-timing-function: linear; animation-iteration-count: infinite; }
@keyframes tw-fall { from { top: -12px; } to { top: 105%; transform: rotate(540deg) translateX(18px); } }
.win-tower .tw-jpbox { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 16px 26px; border-radius: 16px; text-align: center;
	background: linear-gradient(#fffaf0, #ffe7a8); border: 2px solid #fff2b3; box-shadow: 0 0 0 3px #c98a00, 0 0 40px rgba(255, 207, 74, 0.9); animation: tw-pop 0.6s cubic-bezier(0.2, 1.6, 0.4, 1); }
@keyframes tw-pop { 0% { transform: scale(0.3); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
.win-tower .tw-jps { font-size: 12px; font-weight: bold; color: #8a5a00; letter-spacing: 0.08em; }
.win-tower .tw-jpt { font-size: 24px; font-weight: 900; color: #b36b00; letter-spacing: 0.02em; text-shadow: 0 2px 0 #fff, 0 0 12px rgba(255, 180, 0, 0.6); }
.win-tower .tw-jpi { transform: scale(1.8); margin: 10px 0 8px; }
.win-tower .tw-jpn { font-size: 14px; font-weight: bold; color: #4a2c00; }
.win-tower .tw-jpbox small { color: #8a6a2a; font-size: 10px; }
html.mhud .win-tower .tw-slot { width: 38px; height: 38px; }
html.mhud .win-tower .tw-slot.jp { width: 50px; height: 50px; }
html.mhud .win-tower .tw-slots { gap: 4px; }
html.mhud .win-tower .tw-tag em:not(.tw-big) { display: none; }
html.mhud .win-tower .tw-tag { left: 4px; }
html.mhud .win-tower .tw-here { display: none; } /* (the row's glow says it) */
html.mhud .win-tower .tw-row { padding: 2px 4px; }
html.mhud .win-tower .tw-top > span { flex: 1 1 30%; padding: 3px 6px; }
html.mhud .win-tower .tw-top > .tw-held { flex-basis: 100%; }
html.mhud .win-tower .tw-recent li { flex-wrap: wrap; }
@media (prefers-reduced-motion: reduce) { .win-tower * { animation: none !important; } }

/* ---- the boss board (bossboard.js, Noh 2026-10-24): every MVP / mini-boss on a night panel - alive glowing green, dead grey
   with its countdown in amber; MVP crimson and gold, mini-boss violet ---- */
.win-bossboard .win-body { padding: 8px; }
.win-bossboard .bb-wrap { display: flex; flex-direction: column; gap: 8px; padding: 10px; border-radius: 12px; color: #efe8ff;
	background: radial-gradient(120% 80% at 50% 0%, #3a1f4a 0%, #1d1230 55%, #0f0a1c 100%); box-shadow: inset 0 0 0 1px rgba(255, 207, 90, 0.22), inset 0 -24px 40px rgba(0, 0, 0, 0.35); }
.win-bossboard .bb-bar-top { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; }
.win-bossboard .bb-bar-top .grow { flex: 1; }
.win-bossboard .bb-sep { width: 1px; height: 18px; background: rgba(255, 255, 255, 0.18); margin: 0 2px; }
.win-bossboard .bb-chip { display: inline-flex; align-items: center; gap: 5px; min-height: 26px; padding: 2px 10px; border-radius: 13px; cursor: pointer; font-size: 12px;
	border: 1px solid rgba(255, 255, 255, 0.18) !important; background: rgba(255, 255, 255, 0.06) !important; color: #d9cff0 !important; box-shadow: none !important; }
.win-bossboard .bb-chip b { color: #fff; }
.win-bossboard .bb-chip:hover { background: rgba(255, 255, 255, 0.12) !important; }
.win-bossboard .bb-chip.on { border-color: #ffcf5a !important; background: linear-gradient(#ffdc7a, #e9a92c) !important; color: #3a2400 !important; }
.win-bossboard .bb-chip.on b { color: #3a2400; }
.win-bossboard .bb-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; }
.win-bossboard .bb-dot.on { background: #43e08a; box-shadow: 0 0 6px #43e08a; }
.win-bossboard .bb-dot.off { background: #ff5a5f; box-shadow: 0 0 6px #ff5a5f; }
.win-bossboard .bb-here { margin: 0; padding: 5px 9px; border-radius: 8px; font-size: 12px; color: #ffe2a8; background: rgba(255, 170, 40, 0.14); border: 1px solid rgba(255, 190, 80, 0.4); }
.win-bossboard .bb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 8px; }
.win-bossboard .bb-none { grid-column: 1 / -1; text-align: center; padding: 18px 0; color: #b8aed0 !important; }
.win-bossboard .bb-card { position: relative; display: flex; align-items: center; gap: 10px; min-width: 0; padding: 9px 10px 9px 9px; border-radius: 11px; overflow: hidden;
	background: linear-gradient(135deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.03)); border: 1px solid rgba(255, 255, 255, 0.12); transition: transform 0.15s, box-shadow 0.2s; }
.win-bossboard .bb-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--bb-accent); }
.win-bossboard .bb-card.mvp { --bb-accent: linear-gradient(#ffcf5a, #e0484f); }
.win-bossboard .bb-card.mini { --bb-accent: linear-gradient(#b89bff, #5a6cff); }
.win-bossboard .bb-card:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35); }
.win-bossboard .bb-card.alive { border-color: rgba(67, 224, 138, 0.45); box-shadow: inset 0 0 22px rgba(67, 224, 138, 0.08); }
.win-bossboard .bb-ic { position: relative; flex: none; width: 54px; height: 54px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
	background: radial-gradient(circle at 50% 40%, rgba(255, 255, 255, 0.16), rgba(0, 0, 0, 0.35)); box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.12); }
.win-bossboard .bb-ic img { max-width: 46px; max-height: 46px; object-fit: contain; }
.win-bossboard .bb-ic i { font-style: normal; font-weight: bold; font-size: 12px; color: #fff; }
.win-bossboard .alive .bb-ic { box-shadow: 0 0 0 2px #43e08a, 0 0 14px rgba(67, 224, 138, 0.55); animation: bb-glow 2.4s ease-in-out infinite; }
.win-bossboard .dead .bb-ic { box-shadow: 0 0 0 2px rgba(255, 90, 95, 0.7); }
.win-bossboard .dead .bb-ic img { filter: grayscale(1) brightness(0.7); opacity: 0.75; }
@keyframes bb-glow { 0%, 100% { box-shadow: 0 0 0 2px #43e08a, 0 0 8px rgba(67, 224, 138, 0.35); } 50% { box-shadow: 0 0 0 2px #43e08a, 0 0 18px rgba(67, 224, 138, 0.75); } }
.win-bossboard .bb-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.win-bossboard .bb-name { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 6px; min-width: 0; }
.win-bossboard .bb-name b { font-size: 14px; color: #fff; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.win-bossboard .bb-name small { color: #b8aed0; font-size: 11px; }
.win-bossboard .bb-kind { flex: none; padding: 0 6px; border-radius: 6px; font-size: 9.5px; font-weight: bold; line-height: 15px; letter-spacing: 0.04em; }
.win-bossboard .mvp .bb-kind { background: linear-gradient(#ffdc7a, #e9a92c); color: #4a2a00; }
.win-bossboard .mini .bb-kind { background: linear-gradient(#cdb9ff, #8a6cff); color: #1e1050; }
.win-bossboard .bb-map { font-size: 11.5px; color: #d6cdea; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.win-bossboard .bb-map small { color: #9b91b4; }
.win-bossboard .bb-users { margin-left: 4px; color: #ffe2a8; }
.win-bossboard .bb-state { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 1px; }
.win-bossboard .bb-pill { display: inline-flex; align-items: center; gap: 5px; padding: 0 8px; border-radius: 9px; font-size: 11px; font-weight: bold; line-height: 18px; }
.win-bossboard .bb-pill i { width: 7px; height: 7px; border-radius: 50%; }
.win-bossboard .bb-pill.on { color: #0e3a22; background: linear-gradient(#7ff0b0, #3fcf7f); }
.win-bossboard .bb-pill.on i { background: #0e3a22; animation: bb-blink 1.2s ease-in-out infinite; }
.win-bossboard .bb-pill.off { color: #fff; background: linear-gradient(#ff7a7e, #d63d43); }
.win-bossboard .bb-pill.off i { background: #fff; }
@keyframes bb-blink { 50% { opacity: 0.25; } }
.win-bossboard .bb-last { font-size: 10.5px; color: #b8aed0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.win-bossboard .bb-last b { color: #e9e2ff; font-weight: normal; }
.win-bossboard .bb-wait { display: flex; align-items: baseline; gap: 5px; flex-wrap: wrap; font-size: 11px; color: #c9bfe0; }
.win-bossboard .bb-cd { font-size: 17px; font-weight: 800; color: #ffcf5a; font-variant-numeric: tabular-nums; letter-spacing: 0.02em; text-shadow: 0 0 10px rgba(255, 190, 60, 0.45); }
.win-bossboard .alive .bb-cd { font-size: 13px; }
.win-bossboard .bb-clock { color: #9b91b4; font-size: 10.5px; }
.win-bossboard .bb-bar { display: block; height: 4px; margin-top: 3px; border-radius: 2px; background: rgba(255, 255, 255, 0.1); overflow: hidden; }
.win-bossboard .bb-bar > i { display: block; height: 100%; border-radius: 2px; background: linear-gradient(90deg, #e0484f, #ffcf5a); transition: width 0.9s linear; }
.win-bossboard .bb-warp { flex: none; align-self: center; min-width: 58px; min-height: 34px; padding: 4px 10px; border-radius: 9px; font-weight: bold; cursor: pointer;
	border: 1px solid #ffcf5a !important; background: linear-gradient(#ffdc7a, #e9a92c) !important; color: #3a2400 !important; box-shadow: 0 2px 0 #9a6410, 0 0 10px rgba(255, 190, 60, 0.3) !important; }
.win-bossboard .bb-warp:hover:not([disabled]) { filter: brightness(1.08); }
.win-bossboard .bb-warp[disabled] { cursor: default; opacity: 0.45; filter: grayscale(0.6); box-shadow: none !important; }
html.mhud .win-bossboard .bb-grid { grid-template-columns: minmax(0, 1fr); }
html.mhud .win-bossboard .bb-wrap { padding: 8px; }
html.mhud .win-bossboard .bb-chip { min-height: 32px; }
html.mhud .win-bossboard .bb-warp { min-height: 40px; min-width: 64px; }
@media (max-width: 520px) { .win-bossboard .bb-grid { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) { .win-bossboard * { animation: none !important; transition: none !important; } }

/* ---- the world boss (worldboss.js, Noh 2026-11-03): its window (the times, the next / the one out), the fight's bar over
   the game screen (my rank and share), the ranking after its death - the boss board's night panel, crimson and gold ---- */
.win-worldboss .win-body, .win-wbresult .win-body { padding: 8px; }
.wb-wrap { display: flex; flex-direction: column; gap: 8px; padding: 10px; border-radius: 12px; color: #efe8ff;
	background: radial-gradient(120% 80% at 50% 0%, #4a1f2a 0%, #24122a 55%, #110a1c 100%); box-shadow: inset 0 0 0 1px rgba(255, 207, 90, 0.25); }
.wb-wrap .muted, .wb-wrap small { color: #b8aed0; }
.wb-times { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; font-size: 12.5px; }
.wb-time { padding: 1px 9px; border-radius: 10px; font-weight: bold; color: #3a2400; background: linear-gradient(#ffdc7a, #e9a92c); }
.wb-card { display: flex; gap: 10px; align-items: center; padding: 10px; border-radius: 11px; background: linear-gradient(135deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.03)); border: 1px solid rgba(255, 255, 255, 0.14); }
.wb-card.on { border-color: rgba(255, 90, 95, 0.6); box-shadow: inset 0 0 24px rgba(255, 90, 95, 0.12); }
.wb-ic { flex: none; width: 64px; height: 64px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
	background: radial-gradient(circle at 50% 40%, rgba(255, 255, 255, 0.16), rgba(0, 0, 0, 0.35)); box-shadow: 0 0 0 2px #ffcf5a, 0 0 14px rgba(255, 190, 60, 0.4); }
.wb-ic img { max-width: 56px; max-height: 56px; object-fit: contain; }
.wb-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.wb-name { font-size: 16px; color: #fff; }
.wb-map { font-size: 12px; color: #d6cdea; }
.wb-row { font-size: 12px; color: #d6cdea; }
.wb-pill { align-self: flex-start; display: inline-flex; align-items: center; gap: 5px; padding: 0 8px; border-radius: 9px; font-size: 11px; font-weight: bold; line-height: 18px; color: #3a2400; background: linear-gradient(#ffdc7a, #e9a92c); }
.wb-pill.on { color: #fff; background: linear-gradient(#ff7a7e, #d63d43); }
.wb-pill.on i { width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: bb-blink 1.2s ease-in-out infinite; }
.wb-cd { color: #ffcf5a; font-variant-numeric: tabular-nums; }
.wb-cd.big { font-size: 20px; font-weight: 800; text-shadow: 0 0 10px rgba(255, 190, 60, 0.45); }
.wb-hp, .wb-l-bar { display: block; height: 7px; border-radius: 4px; background: rgba(255, 255, 255, 0.12); overflow: hidden; }
.wb-hp > i, .wb-l-bar > i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, #e0484f, #ff8a5a); transition: width 0.6s; }
.wb-mine { font-size: 12.5px; padding: 4px 8px; border-radius: 8px; background: rgba(255, 207, 90, 0.14); border: 1px solid rgba(255, 207, 90, 0.4); }
.wb-mine b { color: #ffcf5a; }
.wb-last { font-size: 11.5px; color: #b8aed0; }
.wb-rules { margin: 0; padding-left: 18px; font-size: 11.5px; color: #c9bfe0; }
.wb-res-h { display: flex; align-items: center; gap: 10px; }
.wb-you { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 10px; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.14); }
.wb-you.got { border-color: #ffcf5a; box-shadow: inset 0 0 18px rgba(255, 207, 90, 0.15); }
.wb-you-r { flex: none; display: flex; flex-direction: column; align-items: center; min-width: 52px; }
.wb-you-r b { font-size: 26px; color: #ffcf5a; line-height: 1; }
.wb-you-m { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; font-size: 12.5px; }
.wb-tier { color: #ffe2a8; font-weight: bold; }
.wb-its { display: flex; flex-wrap: wrap; gap: 6px; }
.wb-it { display: inline-flex; align-items: center; gap: 2px; }
.wb-tbl { max-height: 46vh; overflow: auto; border-radius: 8px; }
.wb-tbl table { width: 100%; border-collapse: collapse; font-size: 12px; }
.wb-tbl th { position: sticky; top: 0; background: #2a1830; color: #ffcf5a; text-align: left; padding: 4px 6px; }
.wb-tbl td { padding: 3px 6px; border-top: 1px solid rgba(255, 255, 255, 0.08); }
.wb-tbl td.wb-dm, .wb-tbl td.wb-pc, .wb-tbl th:nth-child(3), .wb-tbl th:nth-child(4) { text-align: right; font-variant-numeric: tabular-nums; }
.wb-tbl td.wb-nm { max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wb-tbl td.wb-tr { font-size: 11px; color: #ffe2a8; }
.wb-tbl tr.top1 .wb-rk { color: #ffcf5a; font-weight: bold; }
.wb-tbl tr.top2 .wb-rk, .wb-tbl tr.top3 .wb-rk { color: #e9e2ff; font-weight: bold; }
.wb-tbl tr.me td { background: rgba(255, 207, 90, 0.16); }
.wb-live { position: fixed; left: 6px; top: 66px; z-index: 15; width: min(280px, calc(100% - 24px)); padding: 6px 10px; border-radius: 10px; cursor: pointer;
	color: #efe8ff; background: rgba(28, 14, 34, 0.88); border: 1px solid rgba(255, 207, 90, 0.55); box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5); font-size: 12px; }
.wb-l-top { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 3px; }
.wb-l-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #fff; }
.wb-l-hp { flex: none; color: #ff9a9e; font-variant-numeric: tabular-nums; }
.wb-l-me { margin-top: 3px; color: #d6cdea; }
.wb-l-me b { color: #fff; }
.wb-l-me .wb-l-pct { color: #ffcf5a; }
html.mhud .wb-live { left: 50%; top: 150px; transform: translateX(-50%); font-size: 11.5px; }
html.mhud .wb-tbl { max-height: 40vh; }
@media (max-width: 520px) { .wb-tbl td.wb-tr, .wb-tbl th:nth-child(5) { display: none; } .wb-ic { width: 52px; height: 52px; } }
@media (prefers-reduced-motion: reduce) { .wb-wrap *, .wb-live * { animation: none !important; transition: none !important; } }

/* ---- the progress window (progressui.js, Noh 2026-10-24): the account's rank (a medal in its band's colour), its titles
   (cards by group, bronze / silver / gold), its 99 jobs (cards + the steps); the side button "แรงค์" with its number ---- */
#map-btns .map-btn.map-rank { position: relative; }
#map-btns .map-btn .rk-lv { position: absolute; right: 2px; top: -5px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; box-sizing: border-box; pointer-events: none;
	font: 800 11px/16px system-ui, sans-serif; color: #2a1600; text-align: center; background: var(--rk, #ffd24a); border: 1px solid rgba(0, 0, 0, 0.45); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.45); }
.win-progress .win-body { padding: 8px; }
.win-progress .pg-wrap { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.win-progress .pg-tabs { display: flex; gap: 4px; flex-wrap: wrap; }
.win-progress .pg-tabs button { flex: 1 1 0; min-width: 0; min-height: 32px; border-radius: 9px !important; font-weight: 700; }
.win-progress .pg-tabs button small { opacity: 0.75; font-weight: 600; }
.win-progress .pg-tabs button.on { background: linear-gradient(#ffdc7a, #e9a92c) !important; color: #3a2400 !important; border-color: #b77a12 !important; }
/* rank */
.win-progress .pg-hero { display: flex; gap: 14px; align-items: center; padding: 12px 14px; border-radius: 14px; color: #f3eeff;
	background: radial-gradient(130% 120% at 0% 0%, color-mix(in srgb, var(--tc) 45%, #2a1d48), #1b1230 70%); border: 1px solid color-mix(in srgb, var(--tc) 60%, transparent); }
.win-progress .pg-medal { flex: none; width: 86px; height: 86px; border-radius: 50%; display: grid; place-items: center; position: relative;
	background: radial-gradient(circle at 35% 30%, #ffffff, var(--tc) 45%, color-mix(in srgb, var(--tc) 55%, #000) 100%); box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.25), 0 0 22px color-mix(in srgb, var(--tc) 70%, transparent); }
.win-progress .pg-medal::after { content: ""; position: absolute; inset: 8px; border-radius: 50%; border: 2px dashed rgba(0, 0, 0, 0.25); }
.win-progress .pg-medal span { font: 900 34px/1 system-ui, sans-serif; color: #2a1600; text-shadow: 0 1px 0 rgba(255, 255, 255, 0.6); }
.win-progress .pg-hinfo { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.win-progress .pg-ht { display: flex; align-items: baseline; gap: 8px; }
.win-progress .pg-ht b { font-size: 20px; }
.win-progress .pg-tier-tag { padding: 0 8px; border-radius: 8px; font-weight: 800; color: #2a1600; background: var(--tc); }
.win-progress .pg-ht small, .win-progress .pg-hsub { color: #cfc5e8; font-size: 12px; }
.win-progress .pg-bar, .win-progress .pg-tbar { position: relative; height: 16px; border-radius: 8px; background: rgba(0, 0, 0, 0.35); overflow: hidden; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15); }
.win-progress .pg-bar > i, .win-progress .pg-tbar > i { position: absolute; inset: 0 auto 0 0; border-radius: 8px; background: linear-gradient(90deg, #ffcf5a, var(--tc, #ff8a4c)); }
.win-progress .pg-bar span, .win-progress .pg-tbar span { position: relative; display: block; text-align: center; font: 700 11px/16px system-ui, sans-serif; color: #fff; text-shadow: 0 1px 2px #000; }
.win-progress .pg-hbonus { display: flex; flex-direction: column; padding: 5px 8px; border-radius: 8px; background: rgba(255, 255, 255, 0.08); }
.win-progress .pg-hbonus small { color: #cfc5e8; font-size: 10.5px; } .win-progress .pg-hbonus b { font-size: 12.5px; color: #ffe9a8; }
.win-progress .pg-note { margin: 0; }
.win-progress .pg-rlist { display: flex; flex-direction: column; gap: 6px; max-height: 46vh; overflow-y: auto; padding-right: 2px; }
.win-progress .pg-tier { flex: none; border-radius: 10px; border: 1px solid color-mix(in srgb, var(--tc) 55%, #8890a8); background: color-mix(in srgb, var(--tc) 10%, transparent); overflow: hidden; }
.win-progress .pg-tier-h { display: flex; align-items: baseline; gap: 8px; padding: 4px 10px; background: color-mix(in srgb, var(--tc) 35%, transparent); }
.win-progress .pg-tier-h small { opacity: 0.75; }
.win-progress .pg-rr { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 3px 10px; font-size: 12px; border-top: 1px solid rgba(128, 128, 128, 0.15); opacity: 0.6; }
.win-progress .pg-rr.got { opacity: 1; }
.win-progress .pg-rr.cur { background: rgba(255, 214, 102, 0.25); box-shadow: inset 3px 0 0 #f2a50c; }
.win-progress .pg-rn { font-weight: 800; text-align: center; border-radius: 6px; background: rgba(0, 0, 0, 0.08); }
.win-progress .pg-rr.got .pg-rn { background: var(--tc); color: #2a1600; }
.win-progress .pg-rt { opacity: 0.7; white-space: nowrap; }
/* titles */
.win-progress .pg-tsum { display: flex; flex-direction: column; gap: 2px; padding: 6px 10px; border-radius: 10px; background: linear-gradient(90deg, rgba(255, 214, 102, 0.25), transparent); }
.win-progress .pg-tsum small { opacity: 0.8; }
.win-progress .pg-chips { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.win-progress .pg-chip { min-height: 26px; padding: 1px 9px; border-radius: 13px !important; font-size: 12px; }
.win-progress .pg-chip.on { background: linear-gradient(#ffdc7a, #e9a92c) !important; color: #3a2400 !important; border-color: #b77a12 !important; }
.win-progress .pg-sep { width: 1px; height: 18px; background: rgba(128, 128, 128, 0.4); margin: 0 2px; }
.win-progress .pg-grp { display: flex; flex-direction: column; gap: 5px; }
.win-progress .pg-gh { display: flex; align-items: baseline; gap: 8px; padding: 2px 2px 0; border-bottom: 1px solid rgba(128, 128, 128, 0.25); }
.win-progress .pg-gh small { opacity: 0.7; }
.win-progress .pg-tgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 6px; }
.win-progress .pg-title { --tcol: #c98a5a; display: flex; flex-direction: column; gap: 3px; min-width: 0; padding: 7px 9px; border-radius: 10px; border: 1px solid rgba(128, 128, 128, 0.3);
	background: rgba(128, 128, 128, 0.06); filter: grayscale(0.85); opacity: 0.75; }
.win-progress .pg-title.silver { --tcol: #9fb0c4; } .win-progress .pg-title.gold { --tcol: #f2b81c; }
.win-progress .pg-title.have { filter: none; opacity: 1; border-color: var(--tcol); background: linear-gradient(135deg, color-mix(in srgb, var(--tcol) 22%, transparent), transparent); box-shadow: inset 3px 0 0 var(--tcol); }
.win-progress .pg-title.gold.have { box-shadow: inset 3px 0 0 var(--tcol), 0 0 10px rgba(242, 184, 28, 0.35); }
.win-progress .pg-tn { display: flex; align-items: center; gap: 6px; min-width: 0; }
.win-progress .pg-tn b { flex: 1; min-width: 0; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.win-progress .pg-tt { flex: none; padding: 0 6px; border-radius: 6px; font-size: 10px; font-weight: 800; color: #fff; background: var(--tcol); }
.win-progress .pg-wear { flex: none; min-height: 22px !important; height: 22px; padding: 0 8px !important; font-size: 11px !important; border-radius: 11px !important; }
.win-progress .pg-wear.on { background: linear-gradient(#7ff0b0, #3fcf7f) !important; color: #0e3a22 !important; border-color: #2d9a5c !important; }
.win-progress .pg-td { font-size: 11.5px; opacity: 0.85; }
.win-progress .pg-tb { font-size: 11.5px; font-weight: 700; color: #b8540a; }
.win-progress .pg-got { font-size: 11px; color: #1e9a46; font-weight: 700; }
.win-progress .pg-lock { font-size: 11px; opacity: 0.8; }
.win-progress .pg-tbar { height: 14px; } .win-progress .pg-tbar span { line-height: 14px; font-size: 10px; }
/* 99 jobs */
.win-progress .pg-jhead { display: flex; gap: 14px; align-items: center; padding: 10px 12px; border-radius: 14px; color: #f3eeff; background: linear-gradient(110deg, #2a1d48, #4a2a6b 60%, #6b3a5e); }
.win-progress .pg-jhead > div:last-child { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.win-progress .pg-jhead small { color: #d8cdee; font-size: 11.5px; } .win-progress .pg-jnext b { color: #ffe066; }
.win-progress .pg-jring { flex: none; width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center;
	background: conic-gradient(#ffcf5a calc(var(--p) * 1%), rgba(255, 255, 255, 0.15) 0); }
.win-progress .pg-jring span { width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; background: #2a1d48; font-size: 13px; }
.win-progress .pg-jring b { font-size: 22px; color: #ffe066; }
.win-progress .pg-jgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; }
.win-progress .pg-job { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 6px; border-radius: 12px; text-align: center; min-width: 0;
	border: 1px solid rgba(128, 128, 128, 0.3); background: rgba(128, 128, 128, 0.06); filter: grayscale(1); opacity: 0.7; }
.win-progress .pg-job.done { filter: none; opacity: 1; border-color: #f2b81c; background: linear-gradient(160deg, rgba(255, 214, 102, 0.35), rgba(255, 214, 102, 0.05)); box-shadow: 0 0 10px rgba(242, 184, 28, 0.3); }
.win-progress .pg-job.mine:not(.done) { filter: grayscale(0.3); opacity: 0.95; border-style: dashed; border-color: #5aa9ff; }
.win-progress .pg-jic { font-size: 28px; line-height: 1; }
.win-progress .pg-jn { display: flex; flex-direction: column; } .win-progress .pg-jn small { opacity: 0.7; font-size: 10.5px; }
.win-progress .pg-jd { font-size: 11px; font-weight: 700; color: #1e7a3c; display: flex; flex-direction: column; } .win-progress .pg-jd small { font-weight: 400; opacity: 0.75; }
.win-progress .pg-jw { font-size: 11px; opacity: 0.8; }
.win-progress .pg-steps { display: flex; flex-direction: column; gap: 3px; }
.win-progress .pg-step { display: grid; grid-template-columns: 30px minmax(0, 1fr) 18px; gap: 8px; align-items: center; padding: 4px 8px; border-radius: 8px; font-size: 12.5px; opacity: 0.6; }
.win-progress .pg-step.got { opacity: 1; background: rgba(46, 204, 113, 0.12); }
.win-progress .pg-step.next { opacity: 1; background: rgba(255, 214, 102, 0.22); box-shadow: inset 3px 0 0 #f2a50c; }
.win-progress .pg-sn { font-weight: 800; text-align: center; border-radius: 6px; background: rgba(0, 0, 0, 0.1); }
.win-progress .pg-step.got .pg-sn { background: #3fcf7f; color: #0e3a22; }
.win-progress .pg-step i { font-style: normal; color: #1e9a46; font-weight: 800; }
html.mhud .win-progress .pg-tgrid { grid-template-columns: minmax(0, 1fr); }
html.mhud .win-progress .pg-jgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
html.mhud .win-progress .pg-hero { flex-direction: column; text-align: center; }
html.mhud .win-progress .pg-ht { justify-content: center; }
@media (max-width: 560px) { .win-progress .pg-tgrid { grid-template-columns: minmax(0, 1fr); } .win-progress .pg-jgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ti-all { margin-top: 6px; width: 100%; }
/* ---- the walking trails' window (trail.js, Noh 2026-10-24): the 50 trails as cards, a picture of each on a dark card ---- */
.win-trail .win-body { padding: 8px; }
:is(.win-trail, .win-aura) .tr-wrap { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
:is(.win-trail, .win-aura) .tr-head { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; padding: 8px 12px; border-radius: 12px; color: #f1ecff; background: linear-gradient(110deg, #241a3d, #3b2a5e 60%, #4d2f55); }
:is(.win-trail, .win-aura) .tr-cur { display: flex; flex-direction: column; min-width: 0; } :is(.win-trail, .win-aura) .tr-cur small { color: #cfc5e8; font-size: 11px; } :is(.win-trail, .win-aura) .tr-cur b { font-size: 15px; color: #ffe9a8; }
:is(.win-trail, .win-aura) .tr-ok { padding: 2px 9px; border-radius: 10px; background: rgba(63, 207, 127, 0.25); color: #9dffc6; font-weight: 700; font-size: 12px; }
:is(.win-trail, .win-aura) .tr-lock { padding: 2px 9px; border-radius: 10px; background: rgba(255, 120, 120, 0.2); color: #ffc2c2; font-weight: 700; font-size: 12px; }
:is(.win-trail, .win-aura) .tr-sw { margin-left: auto; display: flex; gap: 6px; align-items: center; font-size: 12px; cursor: pointer; }
:is(.win-trail, .win-aura) .tr-note { margin: 0; }
:is(.win-trail, .win-aura) .tr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(calc(140px * var(--trs, 1)), 1fr)); gap: calc(6px * var(--trf, 1)); }
:is(.win-trail, .win-aura) .tr-card { display: flex; flex-direction: column; gap: 4px; padding: 6px; border-radius: 10px; border: 1px solid rgba(128, 128, 128, 0.3); background: rgba(128, 128, 128, 0.06); min-width: 0; }
:is(.win-trail, .win-aura) .tr-card.on { border-color: #f2b81c; background: linear-gradient(160deg, rgba(255, 214, 102, 0.3), rgba(255, 214, 102, 0.05)); box-shadow: 0 0 10px rgba(242, 184, 28, 0.3); }
:is(.win-trail, .win-aura) .tr-pic { width: 100%; height: auto; border-radius: 8px; display: block; }
:is(.win-trail, .win-aura) .tr-card.lock .tr-pic { filter: saturate(0.6) brightness(0.85); }
:is(.win-trail, .win-aura) .tr-card.own { border-color: rgba(224, 168, 0, 0.8); } /* (given to the account: the Collection's card ladder) */
:is(.win-trail, .win-aura) .tr-own { align-self: flex-start; padding: 0 6px; border-radius: 8px; font-size: 10.5px; font-weight: 700; color: #6a4a00; background: #ffe08a; }
:is(.win-trail, .win-aura) .tr-name { display: flex; align-items: center; gap: 6px; min-width: 0; }
:is(.win-trail, .win-aura) .tr-name b { font-size: calc(12.5px * var(--trf, 1)); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
:is(.win-aura, .win-trail) .au-nm { display: flex; flex-direction: column; min-width: 0; line-height: 1.15; }
:is(.win-aura, .win-trail) .au-nm b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
:is(.win-aura, .win-trail) .au-nm.au-long b { font-size: calc(11px * var(--trf, 1)); letter-spacing: -0.2px; }
:is(.win-aura, .win-trail) .au-nm small { font-size: calc(10.5px * var(--trf, 1)); opacity: 0.72; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
:is(.win-trail, .win-aura) .tr-no { flex: none; min-width: 22px; text-align: center; font-size: 10.5px; font-weight: 800; border-radius: 6px; background: rgba(0, 0, 0, 0.1); }
:is(.win-trail, .win-aura) .tr-btn { min-height: 28px; border-radius: 8px !important; font-weight: 700; }
:is(.win-trail, .win-aura) .tr-btn.on { background: linear-gradient(#7ff0b0, #3fcf7f) !important; color: #0e3a22 !important; border-color: #2d9a5c !important; }
html.mhud :is(.win-trail, .win-aura) .tr-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 560px) { :is(.win-trail, .win-aura) .tr-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } :is(.win-trail, .win-aura) .tr-sw { margin-left: 0; } }
/* (the cards' size picked in the footer, aura.js sizeCards: a computer's through --trs / --trf, a phone's 3 / 1 a row) */
html :is(.win-trail, .win-aura).tr-c3 .tr-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
html :is(.win-trail, .win-aura).tr-c1 .tr-grid { grid-template-columns: minmax(0, 1fr); }
:is(.win-trail, .win-aura) .tr-size { display: inline-flex; align-items: center; gap: 3px; flex-wrap: wrap; }
:is(.win-trail, .win-aura) .tr-size > .muted { margin-right: 2px; }
:is(.win-trail, .win-aura) .tr-size button { min-height: 24px; padding: 0 8px; font-size: 12px; }
:is(.win-trail, .win-aura) .tr-size button.on { background: linear-gradient(#6aa8ff, #3a78e0) !important; border-color: #2a5fb8 !important; color: #fff !important; }
:is(.win-trail, .win-aura) .tr-pic { position: relative; overflow: hidden; aspect-ratio: 168 / 150; background: #3b4d22 url(../img/aura/grass.webp) center / 96px; }
:is(.win-aura) .au-pic { aspect-ratio: 152 / 200; }
/* (the cards live - render3d/stylecards.js, Noh 2026-11-02: the player's own character with each style playing, drawn over
   the still picture once it has its first frame; without WebGL the still pictures stay) */
:is(.win-trail, .win-aura) .tr-pic > * { position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: cover; }
:is(.win-trail, .win-aura) .tr-pic > .tr-live { opacity: 0; }
:is(.win-trail, .win-aura) .tr-card.live .tr-pic > .tr-live { opacity: 1; }
/* (live: the still pictures never shown - a card scrolled to shows its grass for the moment before its first frame) */
:is(.win-trail, .win-aura):not(.tr-still) .tr-pic > :not(.tr-live) { visibility: hidden; }
:is(.win-trail, .win-aura).tr-still .tr-pic > .tr-live { display: none; }
/* (the auras' Member levels, aura.js - Noh 2026-11-04: each card's level "M3" / "M4" a badge on its picture, a locked
   one's padlock; every card still plays - only its button says "ต้อง Member N") */
:is(.win-aura, .win-trail) .tr-pic > :is(.au-tier, .au-lockb) { inset: auto; width: auto; height: auto; visibility: visible !important; pointer-events: none; z-index: 2; }
:is(.win-aura, .win-trail) .tr-pic > .au-tier { top: 4px; left: 4px; padding: 1px 6px; border-radius: 7px; font: 800 calc(10.5px * var(--trf, 1))/1.35 system-ui, sans-serif; letter-spacing: 0.3px;
	color: #1d2a12; background: rgba(214, 240, 200, 0.92); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.45); }
:is(.win-aura, .win-trail) .tr-pic > .au-tier.au-m4 { color: #3a2400; background: linear-gradient(#ffe48a, #f2b81c); }
:is(.win-aura, .win-trail) .tr-pic > .au-tier.au-m5 { color: #fff; background: linear-gradient(#c58cff, #7a3fe0); }
/* (Member 6 - 10, Noh 2026-11-04: a colour of its own for each tier, the higher the richer) */
:is(.win-aura, .win-trail) .tr-pic > .au-tier.au-m6 { color: #fff; background: linear-gradient(#e08cff, #9a2fd0); }
:is(.win-aura, .win-trail) .tr-pic > .au-tier.au-m7 { color: #fff; background: linear-gradient(#8c9cff, #3a3fd0); }
:is(.win-aura, .win-trail) .tr-pic > .au-tier.au-m8 { color: #fff; background: linear-gradient(#ff7a8a, #c0102a); }
:is(.win-aura, .win-trail) .tr-pic > .au-tier.au-m9 { color: #3a2400; background: linear-gradient(#fff2b0, #f0b020 60%, #c88a00); box-shadow: 0 0 6px rgba(255, 200, 60, 0.7); }
:is(.win-aura, .win-trail) .tr-pic > .au-tier.au-m10 { color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6); background: linear-gradient(110deg, #ff6aa8, #ffb340, #ffe85a, #5ae0a0, #5ab0ff, #b070ff); box-shadow: 0 0 8px rgba(255, 255, 255, 0.6); }
:is(.win-aura, .win-trail) .tr-pic > .au-lockb { top: 4px; right: 4px; padding: 2px 4px; border-radius: 8px; font-size: calc(12px * var(--trf, 1)); line-height: 1; background: rgba(0, 0, 0, 0.55); }
:is(.win-aura, .win-trail) .tr-card.lock .tr-btn.au-need { opacity: 1; font-size: 12px; color: #ffd6d6; background: rgba(120, 40, 40, 0.55) !important; border-color: rgba(255, 140, 140, 0.45) !important; cursor: not-allowed; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
:is(.win-aura, .win-trail) .tr-head .au-more { font-weight: 600; }
:is(.win-aura, .win-trail) .tr-card.lock .tr-pic { filter: none; } /* (a locked one previewed in its own colours: the padlock and the button say it) */

/* ---- the Hall of Fame (halloffame.js, Noh 2026-10-26): five tabs, ranks 1 - 3 on a podium with their characters (the
   same dark stage in both themes, like the rank window's), ranks 4 - 20 in a table, the viewer's own place ---- */
/* (the body a column: the table takes the height left and scrolls in it, the own place under it always in sight) */
/* the podiums' figures and stands (podium.js; the Hall of Fame and the Hotweek rank tab - Noh 2026-10-28): the picture
   (drawn at 2x, whole: nothing cut) as wide as its column allows up to --fw, its soles' line on the top of the stand -
   the canvas goes on a fraction --fb of its width under that line, over the stand (a glow or a garment under the
   feet); the medal, the name (2 lines when long, never "..."), the job and the number on the stand's face */
.pod-fig { position: relative; z-index: 1; width: min(100%, var(--fw)); margin: 0 auto; }
.pod-fig .pod-pic { display: block; width: 100%; height: auto; margin-bottom: calc(-100% * var(--fb)); filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.45)); }
.pod-fig.empty { height: var(--fh); max-height: 46vw; display: grid; place-items: center; margin-bottom: 6px; border-radius: 12px; border: 2px dashed rgba(255, 255, 255, 0.25); box-sizing: border-box; }
.pod-q { color: rgba(255, 255, 255, 0.35); font: 800 28px/1 system-ui, sans-serif; }
:is(.hf-stand, .hw-stand) { --ink: #3b2500; display: flex; flex-direction: column; align-items: stretch; border-radius: 8px 8px 0 0; color: var(--ink);
	box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.55), inset 0 -8px 12px rgba(0, 0, 0, 0.16); }
:is(.p1) > :is(.hf-stand, .hw-stand) { background: linear-gradient(#ffe891, #f3c450 22%, #e3a82e); }
:is(.p2) > :is(.hf-stand, .hw-stand) { --ink: #1d2735; background: linear-gradient(#f6f8fb, #d7dee8 22%, #bcc6d4); }
:is(.p3) > :is(.hf-stand, .hw-stand) { --ink: #3a1806; background: linear-gradient(#f7cfae, #e3a676 22%, #cd8a57); }
:is(.hf-medal, .hw-medal) { display: grid; place-items: center; height: 28px; font: 900 20px/1 system-ui, sans-serif; color: var(--ink); text-shadow: 0 1px 0 rgba(255, 255, 255, 0.6); }
.p1 > * > :is(.hf-medal, .hw-medal) { height: 40px; font-size: 24px; }
.p3 > * > :is(.hf-medal, .hw-medal) { height: 18px; font-size: 16px; }
:is(.hf-lab, .hw-lab) { min-height: 72px; display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 0 4px 7px; min-width: 0; }
:is(.hf-pn, .hw-pn) { max-width: 100%; font-size: 13px; line-height: 1.2; color: var(--ink); white-space: normal; overflow-wrap: anywhere; }
.p1 > * > * > :is(.hf-pn, .hw-pn) { font-size: 14.5px; }
:is(.hf-pn, .hw-pn) small { font-weight: 400; opacity: 0.8; }
:is(.hf-pj, .hw-pj) { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; color: var(--ink); opacity: 0.78; }
:is(.hf-pv, .hw-pv) { font-weight: 800; font-size: 12.5px; color: var(--ink); white-space: nowrap; }
:is(.hf-pv, .hw-pv) small { font-weight: 600; opacity: 0.8; color: inherit; }
html.mhud :is(.hf-lab, .hw-lab) { min-height: 66px; padding: 0 2px 6px; }
html.mhud :is(.hf-pn, .hw-pn) { font-size: 12px; } html.mhud .p1 > * > * > :is(.hf-pn, .hw-pn) { font-size: 13px; }
html.mhud :is(.hf-pv, .hw-pv) { font-size: 11.5px; } html.mhud :is(.hf-pj, .hw-pj) { font-size: 10.5px; }
html.mhud .p1 > * > :is(.hf-medal, .hw-medal) { height: 32px; } html.mhud .p2 > * > :is(.hf-medal, .hw-medal) { height: 23px; } html.mhud .p3 > * > :is(.hf-medal, .hw-medal) { height: 16px; }

.win-fame .win-body { padding: 8px; display: flex; flex-direction: column; min-height: 0; }
.win-fame .hf-wrap { display: flex; flex-direction: column; gap: 8px; min-width: 0; flex: 1 1 auto; min-height: 0; }
.win-fame .hf-wrap > * { flex: none; }
.win-fame .hf-tabs { display: flex; gap: 4px; flex-wrap: wrap; }
.win-fame .hf-tabs button { flex: 1 1 0; min-width: 0; min-height: 32px; padding: 2px 6px; border-radius: 9px !important; font-weight: 700; overflow: hidden; text-overflow: ellipsis; }
.win-fame .hf-tabs button.on { background: linear-gradient(#ffdc7a, #e9a92c) !important; color: #3a2400 !important; border-color: #b77a12 !important; }
.win-fame .hf-ic { margin-right: 3px; }
.win-fame .hf-note, .win-fame .hf-off { margin: 0; }
.win-fame .hf-note { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.win-fame .hf-pod { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.18fr) minmax(0, 1fr); align-items: end; gap: 6px; padding: 10px 8px 0; border-radius: 14px; overflow: hidden; color: #f3eeff;
	background: radial-gradient(90% 85% at 50% 0%, #5a4690, #241a3d 62%, #17112a); border: 1px solid #6b5aa6; box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.08); }
.win-fame .hf-p { display: flex; flex-direction: column; align-items: stretch; min-width: 0; text-align: center; }
.win-fame .hf-p.p1 .pod-pic { filter: drop-shadow(0 0 10px rgba(255, 214, 102, 0.5)) drop-shadow(0 2px 3px rgba(0, 0, 0, 0.45)); }
.win-fame .hf-p.me .hf-pn { text-decoration: underline; text-decoration-color: currentColor; }
.win-fame .hf-p.empty { opacity: 0.6; }
.win-fame .hf-wrap > .hf-tbl { flex: 0 1 auto; min-height: 110px; display: flex; flex-direction: column; border: 1px solid rgba(128, 128, 128, 0.35); border-radius: 10px; overflow: hidden; }
.win-fame .hf-th, .win-fame .hf-tr { display: grid; grid-template-columns: 34px minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1.1fr); gap: 6px; align-items: center; padding: 3px 10px; }
.win-fame .hf-th { font-weight: 700; font-size: 11.5px; background: rgba(128, 128, 128, 0.16); }
.win-fame .hf-th span:last-child { text-align: right; }
.win-fame .hf-th { flex: none; }
.win-fame .hf-list { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.win-fame .hf-tr { min-height: 24px; font-size: 12.5px; border-top: 1px solid rgba(128, 128, 128, 0.15); }
.win-fame .hf-tr:nth-child(even) { background: rgba(128, 128, 128, 0.06); }
.win-fame .hf-tr.me { background: rgba(255, 214, 102, 0.28); box-shadow: inset 3px 0 0 #f2a50c; }
.win-fame .hf-n { text-align: center; font-weight: 800; border-radius: 6px; background: rgba(128, 128, 128, 0.14); }
.win-fame .hf-nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; }
.win-fame .hf-nm small { font-weight: 400; opacity: 0.75; }
.win-fame .hf-jb { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; opacity: 0.8; }
.win-fame .hf-v { text-align: right; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.win-fame .hf-v small { font-weight: 400; opacity: 0.75; }
.win-fame .hf-empty { margin: 0; padding: 8px 10px; }
.win-fame .hf-rk { display: inline-block; min-width: 24px; padding: 0 5px; border-radius: 8px; text-align: center; font-weight: 800; color: #2a1600; background: var(--tc); }
.win-fame .hf-tier { margin-left: 4px; font-weight: 600; opacity: 0.85; }
.win-fame .hf-me { margin: 0; padding: 6px 10px; border-radius: 10px; font-size: 12.5px; background: linear-gradient(90deg, rgba(90, 169, 255, 0.2), transparent); }
.win-fame .hf-me.in { background: linear-gradient(90deg, rgba(255, 214, 102, 0.32), transparent); }
.win-fame .hf-me.gm { background: linear-gradient(90deg, rgba(160, 120, 255, 0.2), transparent); }
.win-fame .hf-me small { opacity: 0.75; }
.win-fame .hf-web { display: inline-flex; align-items: center; min-height: 28px; padding: 2px 11px; border-radius: 9px; font-size: 12px; font-weight: 700; line-height: 1.2;
	text-decoration: none; white-space: nowrap; color: inherit; border: 1px solid rgba(128, 128, 128, 0.45); background: rgba(128, 128, 128, 0.12); }
.win-fame .hf-web:hover { background: rgba(255, 214, 102, 0.3); border-color: #c98a0e; }
html.mhud .win-fame .hf-web { min-height: 36px; }
/* a phone / a narrow screen: the 3 pictures smaller in a row, the table scrolls */
html.mhud .win-fame .hf-pod { padding: 6px 4px 0; gap: 4px; }
html.mhud .win-fame .hf-list { max-height: 30vh; max-height: 30dvh; -webkit-overflow-scrolling: touch; }
html.mhud .win-fame .hf-tr { min-height: 34px; font-size: 13px; }
html.mhud .win-fame .hf-th, html.mhud .win-fame .hf-tr { grid-template-columns: 26px minmax(0, 1.4fr) minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 4px; padding: 3px 6px; }
html.mhud .win-fame .hf-tabs button { min-height: 44px; font-size: 12px; line-height: 1.2; padding: 2px 2px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
html.mhud .win-fame .hf-ic { margin: 0; font-size: 15px; }
html.mhud .win-fame .hf-me { font-size: 13px; }
@media (max-width: 560px) {
	.win-fame .hf-pod { padding: 6px 4px 0; gap: 4px; }
	.win-fame .hf-list { max-height: 30vh; max-height: 30dvh; }
	.win-fame .hf-th, .win-fame .hf-tr { grid-template-columns: 26px minmax(0, 1.4fr) minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 4px; padding: 3px 6px; }
	.win-fame .hf-tabs button { font-size: 12px; padding: 2px 3px; }
}

/* ---- another player's status / the online players (online.js, 2026-10-21) ---- */
.win-viewstatus .vs-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.win-viewstatus .vs-sub { margin: 2px 0 6px; }
.win-viewstatus .vs-hp { margin-top: 6px; }
.win-viewstatus .vs-grid { grid-template-columns: auto 1fr auto 1fr; }
.win-online .ol-top { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.win-online .ol-top span { flex: none; }
.win-online .ol-q { flex: 1; min-width: 0; }
.win-online .ol-wrap { position: relative; }
/* (Noh 2026-11-12 07:56: with many online the maps and the players looked the same - every row a button of the skin.
   A map: a solid band - its name, the file name when it says more, the count; its players: a plain list under it with a
   guide line, every other row shaded, the job and the level in columns) */
.win-online .ol-fold { display: flex; justify-content: flex-end; gap: 4px; margin: -2px 0 6px; }
.win-online .ol-list { display: flex; flex-direction: column; gap: 6px; }
.win-online .ol-map { display: flex; flex-direction: column; }
.win-online .ol-list button.ol-mh, html.ro-skin .theme-ro .win-online .ol-list button.ol-mh {
	position: sticky; top: -10px; z-index: 1; display: flex; align-items: center; gap: 6px; width: 100%; height: auto; min-height: 26px;
	padding: 3px 8px; border: 0; border-radius: 5px; background: var(--accent-2); color: #fff; font-weight: 700; line-height: 1.3; text-align: left; box-shadow: none;
}
.win-online .ol-list button.ol-mh:hover:not(:disabled), html.ro-skin .theme-ro .win-online .ol-list button.ol-mh:hover:not(:disabled),
.win-online .ol-list button.ol-mh:active:not(:disabled), html.ro-skin .theme-ro .win-online .ol-list button.ol-mh:active:not(:disabled) { background: var(--accent); }
.win-online .ol-map.own > .ol-mh, html.ro-skin .theme-ro .win-online .ol-map.own > button.ol-mh { background: #2e7d4f; }
.win-online .ol-chev { font-style: normal; width: 10px; flex: none; }
.win-online .ol-mn { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.win-online .ol-here { font-style: normal; font-weight: 400; font-size: 10.5px; margin-left: 4px; padding: 0 5px; border-radius: 8px; background: rgba(255, 255, 255, 0.22); }
.win-online .ol-mh small { flex: none; font-weight: 400; opacity: 0.75; }
.win-online .ol-cnt { flex: none; min-width: 26px; padding: 0 7px; border-radius: 9px; background: #fff; color: var(--accent-2); text-align: center; font-variant-numeric: tabular-nums; }
.win-online .ol-map.own .ol-cnt { color: #2e7d4f; }
.win-online .ol-ps { display: flex; flex-direction: column; margin: 3px 0 0 9px; padding-left: 6px; border-left: 2px solid var(--accent); }
.win-online .ol-list button.ol-p, html.ro-skin .theme-ro .win-online .ol-list button.ol-p {
	display: grid; grid-template-columns: minmax(0, 1fr) 104px 42px; gap: 6px; align-items: center; width: 100%; height: auto; min-height: 22px;
	padding: 1px 6px; border: 0; border-radius: 3px; background: transparent; color: var(--text); font-weight: 400; line-height: 1.3; text-align: left; box-shadow: none;
}
.win-online .ol-list button.ol-p:nth-child(even), html.ro-skin .theme-ro .win-online .ol-list button.ol-p:nth-child(even) { background: rgba(120, 135, 170, 0.1); }
.win-online .ol-list button.ol-p:hover:not(:disabled), html.ro-skin .theme-ro .win-online .ol-list button.ol-p:hover:not(:disabled),
.win-online .ol-list button.ol-p:active:not(:disabled), html.ro-skin .theme-ro .win-online .ol-list button.ol-p:active:not(:disabled) { background: var(--ro-hover, rgba(61, 142, 240, 0.16)); }
.win-online .ol-list button.ol-p.on, html.ro-skin .theme-ro .win-online .ol-list button.ol-p.on { background: var(--ro-sel, rgba(61, 142, 240, 0.28)); outline: 0; }
.win-online .ol-n { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.win-online .ol-j, .win-online .ol-l { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.win-online .ol-l { text-align: right; font-variant-numeric: tabular-nums; }
@media (max-width: 520px) { .win-online .ol-list button.ol-p, html.ro-skin .theme-ro .win-online .ol-list button.ol-p { grid-template-columns: minmax(0, 1fr) 84px 38px; } }
.win-online .ol-tag { font-style: normal; font-size: 9.5px; padding: 0 4px; border-radius: 4px; background: #8892a8; color: #fff; vertical-align: 1px; }
.win-online .ol-tag.gm { background: #d6452f; } .win-online .ol-tag.auto { background: #1e9a46; }
.win-online > .ol-card { position: absolute; right: calc(100% + 8px); z-index: 3; display: flex; gap: 8px; width: 240px; padding: 8px; border-radius: 10px; background: var(--panel, #fff); color: #26324f;
	border: 1px solid rgba(60, 90, 160, 0.35); box-shadow: 0 6px 18px rgba(10, 20, 50, 0.3); }
.win-online > .ol-card.right { right: auto; left: calc(100% + 8px); }
.theme-ro .win-online > .ol-card { background: #fbfcff; }
.win-online .ol-pic { flex: none; width: 96px; height: 120px; border-radius: 8px; background: radial-gradient(circle at 50% 70%, #ffffff, #dfe7f7); image-rendering: auto; }
.win-online .ol-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; font-size: 12px; }
.win-online .ol-info b { font-size: 13px; overflow-wrap: anywhere; }
.win-online .ol-acts { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.win-online .ol-acts button { min-height: 24px; padding: 0 8px; font-size: 11px; }
@media (max-width: 700px) { .win-online > .ol-card, .win-online > .ol-card.right { left: 8px; right: 8px; top: auto !important; bottom: 8px; width: auto; } }
.win-online .ol-wrap { position: relative; }

/* ---- the PvP screen like the official client (pvpui.js, Noh 2026-10-25): the own rank at the bottom right, rank 1's
   time at the top with TIME ATTACK!! - canvases of the client's sizes, nothing to click ---- */
.pvp-rank { position: absolute; right: 0; bottom: 0; width: 240px; height: 96px; z-index: 6; pointer-events: none; image-rendering: pixelated; }
.pvp-timer { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 360px; height: 250px; z-index: 6; pointer-events: none; text-align: center; }
.pvp-timer canvas { display: block; margin: 0 auto; image-rendering: pixelated; }
.pvp-timer .pvp-ta { margin-top: -12px; }
html.mhud .pvp-rank { right: auto; bottom: auto; left: 50%; top: calc(max(4px, env(safe-area-inset-top)) - 18px); transform: translateX(-50%) scale(0.62); transform-origin: top center; }
html.mhud .pvp-timer { top: 34px; transform: translateX(-50%) scale(0.55); transform-origin: top center; }

/* ---- the buttons beside the minimap and AUTO (Noh 2026-10-21, his pick "แบบ 1 · สีสด": sidebtn.js) ---- */
.sb-lb { display: block; margin-top: 1px; font: 400 10.5px/1.1 "Midgard NPC", var(--game-font, sans-serif); color: #fff; white-space: nowrap; pointer-events: none;
	text-shadow: -1px 0 #121a2e, 1px 0 #121a2e, 0 -1px #121a2e, 0 1px #121a2e, 1px 1px #121a2e, -1px 1px #121a2e, 1px -1px #121a2e, -1px -1px #121a2e; }
#map-btns { gap: 4px; }
#map-btns .map-btn.sb-tile { display: flex !important; flex-direction: column; align-items: center; width: 62px !important; min-width: 62px; height: auto !important; min-height: 0 !important; filter: none; overflow: visible !important; }
#map-btns .map-btn.sb-tile:hover .sb-ic { filter: brightness(1.1); }
#map-btns .map-btn.sb-tile.hidden { display: none !important; }
/* (a system off: its button gone from the top bar too - the tile's display above won over each system's own rule, so a system
   switched off kept its button: Noh 2026-11-08 14:12 พี่เลี้ยง / ภารกิจกิลด์ / อารีน่า off) */
html:not(.nw-sys) #map-btns .nw-entry, html:not(.ms-sys) #map-btns .ms-entry, html:not(.sp-sys) #map-btns .sp-entry, html:not(.ar-sys) #map-btns .ar-entry,
html:not(.gq-sys) #map-btns .gq-entry, html:not(.mt-sys) #map-btns .mt-entry, html:not(.pr-sys) #map-btns .pr-entry, html:not(.nb-sys) #map-btns .nb-entry,
html:not(.rn-sys) #map-btns .rn-entry { display: none !important; }
#map-btns .map-btn.map-topup.sb-tile { width: 62px !important; height: auto !important; border-radius: 0 !important; }
#map-btns .map-btn .mb-lv { right: 2px !important; top: -5px !important; }
/* (Noh 2026-10-26 "ไอคอนขวามือ พวก Cash shop ... เอาไปไว้บนแทน เรียงเป็นแนวนอน"): the buttons in a row along the top,
   left of the minimap, in the same order (เติมเงิน first); a narrower window: the last ones go on a second row under the
   first rather than over the hotkey bar (the RO theme's at the top left) */
#map-btns { flex-direction: row; flex-wrap: wrap; justify-content: flex-end; align-items: flex-start; gap: 4px 2px;
	width: max-content; max-width: max(340px, calc(100vw - 196px - 800px)); }
/* the AUTO pill (green and glowing while on) and the round gear */
.ai-chip { align-items: center; gap: 5px; }
.ai-chip button.ai-pill, .theme-ro .ai-chip button.ai-pill { display: flex; align-items: center; gap: 5px; height: 34px; min-height: 34px; padding: 0 12px 0 6px; border-radius: 17px !important;
	font: 600 14px/1 "Midgard NPC", var(--game-font, sans-serif); color: #2a3350; background: linear-gradient(#ffffff, #d9e1f2) !important; border: 0 !important;
	box-shadow: 0 2px 0 rgba(0, 0, 0, 0.35), inset 0 0 0 1.5px #8fa3cf !important; letter-spacing: 0.3px; }
.ai-chip button.ai-pill svg { width: 24px; height: 24px; flex: none; }
.ai-chip .ai-led { width: 8px; height: 8px; border-radius: 50%; background: #9aa6bd; }
.ai-chip.on button.ai-pill, .theme-ro .ai-chip.on button.ai-pill { color: #fff; background: linear-gradient(#5fe08a, #1e9a46) !important; box-shadow: 0 2px 0 rgba(0, 0, 0, 0.35), inset 0 0 0 1.5px #c9ffd8, 0 0 14px 3px rgba(80, 255, 140, 0.7) !important; animation: ai-glow 1.8s ease-in-out infinite; }
.ai-chip.on button.ai-pill::before { content: none !important; }
.ai-chip.on .ai-led { background: #e2ffea; box-shadow: 0 0 6px #fff; }
@keyframes ai-glow { 50% { box-shadow: 0 2px 0 rgba(0, 0, 0, 0.35), inset 0 0 0 1.5px #c9ffd8, 0 0 5px 1px rgba(80, 255, 140, 0.4); } }
.ai-chip button.ai-gear, .theme-ro .ai-chip button.ai-gear { position: static; display: grid; place-items: center; width: 34px; min-width: 34px; height: 34px; min-height: 34px; padding: 0; border-radius: 50% !important;
	background: linear-gradient(#ffffff, #d9e1f2) !important; border: 0 !important; box-shadow: 0 2px 0 rgba(0, 0, 0, 0.35), inset 0 0 0 1.5px #8fa3cf !important; }
.ai-chip button.ai-gear::before { content: none !important; }
.ai-chip button.ai-gear svg { width: 22px; height: 22px; }
.theme-ro .ai-chip { bottom: 6px; }
html.gfx-low .ai-chip.on button.ai-pill { animation: none; }
/* the float switch beside AUTO (Member Lv.7, src/map/float.js): sky blue and glowing while on, faded while a PvP / WoE map holds it */
.ai-chip button.ai-float.on, .theme-ro .ai-chip button.ai-float.on { color: #fff; background: linear-gradient(#9fe3ff, #2f8fd8) !important; box-shadow: 0 2px 0 rgba(0, 0, 0, 0.35), inset 0 0 0 1.5px #e6f8ff, 0 0 12px 2px rgba(120, 210, 255, 0.75) !important; }
.ai-chip button.ai-float.on.paused { opacity: 0.55; box-shadow: 0 2px 0 rgba(0, 0, 0, 0.35), inset 0 0 0 1.5px #e6f8ff !important; }
/* the ping / fps line and the buffs' time: clearer (2026-10-21) */
.net-bar { font-size: 11px; line-height: 15px; background: rgba(0, 0, 0, 0.6); text-shadow: 0 0 2px #000, 0 1px 1px #000; }
.theme-ro .efst-list.ro-efst .efst b { font: 600 10px/11px var(--ro-font); text-shadow: -1px 0 #000, 1px 0 #000, 0 -1px #000, 0 1px #000; }
/* a phone without the phone screen (the debug client): small tiles without their names, so the column stays narrow
   beside the minimap and the map stays free for taps and pinches */
@media (max-width: 700px) {
	#map-btns .map-btn.sb-tile, #map-btns .map-btn.map-topup.sb-tile { width: 42px !important; min-width: 42px; }
	#map-btns .sb-lb { display: none; }
}
/* the phone screen's parts only with the phone screen (client/css/mobile.css: the debug client does not load it) */
html:not(.mhud) #mhud { display: none; }
/* the people online: a green figure and its number (Noh 2026-10-22: the purple 👥 was not seen as people) */
.net-bar .nb-on { display: inline-flex; align-items: center; gap: 3px; }
.net-bar .nb-ppl { width: 12px; height: 12px; flex: none; fill: #3fe06a; filter: drop-shadow(0 0 1px #000) drop-shadow(0 1px 0 #000); }
.net-bar .nb-on b { font-weight: 700; color: #c9ffd6; }
/* the online window: an offline shop's tag; the card hidden for real ([hidden] lost to its display: flex - an empty
   white strip stayed beside the window) */
.win-online .ol-tag.shop { background: #c07a12; }
.win-online > .ol-card[hidden] { display: none !important; }
/* the Collection: "ฝากทุกชิ้นที่ฝากได้" in a tab without the search (every tab: Noh 2026-10-22) - the width of the list */
.col-tools .col-all-w { flex: 1; }
/* the item search (itemfind.js, Noh 2026-10-22): its side tile, the list, a monster's maps with their warp button */
.sb-find { background: linear-gradient(#9ff0ff, #1aa6c9); }
.win-itemfind .if-top { display: flex; gap: 6px; margin-bottom: 4px; }
.win-itemfind .if-q { flex: 1; min-width: 0; min-height: 30px; padding: 0 8px; font-size: 14px; }
.win-itemfind .if-town { font-size: 12px; margin-bottom: 6px; padding: 3px 8px; border-radius: 6px; }
.win-itemfind .if-town.ok { background: rgba(47, 191, 87, 0.15); color: #1e8a3c; }
.win-itemfind .if-town.no { background: rgba(200, 138, 0, 0.12); color: #9a6a00; }
.win-itemfind .if-list { display: flex; flex-direction: column; gap: 4px; max-height: 60vh; overflow-y: auto; }
.win-itemfind .if-item { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 36px; padding: 3px 6px; text-align: left; }
.win-itemfind .if-n { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.win-itemfind .if-c { flex: none; font-size: 11px; color: #c88a00; }
.win-itemfind .if-sel { display: flex; align-items: center; gap: 8px; font-size: 15px; margin: 2px 0 6px; }
.win-itemfind .if-h { font-weight: 700; font-size: 12px; margin: 6px 0 2px; border-bottom: 1px solid var(--line, #c3c8d4); }
.win-itemfind .if-mob { border: 1px solid var(--line, #d5dae4); border-radius: 6px; padding: 4px 6px; }
.win-itemfind .if-mh { display: flex; align-items: center; gap: 6px; }
.win-itemfind .if-mi img, .win-itemfind .if-mi i { width: 28px; height: 28px; object-fit: contain; display: inline-block; font-size: 10px; font-style: normal; }
.win-itemfind .if-r { margin-left: auto; font-weight: 700; color: #c88a00; }
.win-itemfind .if-mvp { font-style: normal; font-size: 10px; padding: 0 4px; border-radius: 4px; background: #d6452f; color: #fff; }
.win-itemfind .if-map { display: flex; align-items: center; gap: 6px; padding: 2px 0 2px 34px; font-size: 12px; }
.win-itemfind .if-map > span { flex: 1; min-width: 0; }
.win-itemfind .if-warp { flex: none; min-height: 26px; padding: 0 12px; font-weight: 700; }
.win-itemfind .if-warp:not(:disabled) { background: linear-gradient(#5fe08a, #1e9a46); color: #fff; border-color: #1e8a3c; }
html.mhud .win-itemfind .if-warp { min-height: 32px; }
/* ---- the monster search (mobfind.js, Noh 2026-10-27 "ค้นหาแล้ว แสดงรูปมอน แสดงรูปของที่ตก พร้อมบอก โอกาสตก ตามจริง ... ขอแบบ
   อลังการเจ๋งๆเลย"): the item search's two tabs, the monster cards, a monster's page - the stage (the same dark lit stage in
   every theme, like the Hall of Fame's), its stats beside it, the drop bonus strip, the drops with their two chances ---- */
.win-itemfind .if-tabs { display: flex; gap: 4px; margin-bottom: 6px; }
.win-itemfind .if-tabs button { flex: 1 1 0; min-width: 0; height: auto !important; min-height: 32px !important; padding: 2px 8px !important; border-radius: 9px !important; font-weight: 700; font-size: 13px !important; line-height: 1.2 !important; }
.win-itemfind .if-tabs button.on { background: linear-gradient(#8fdcff, #2f8fe0) !important; color: #fff !important; border-color: #1f6fb8 !important; text-shadow: 0 1px 0 rgba(0, 0, 0, 0.25); }
.win-itemfind .if-tic { margin-right: 4px; }
.win-itemfind .if-mh.go { cursor: pointer; border-radius: 5px; margin: -2px -3px; padding: 2px 3px; }
.win-itemfind .if-mh.go:hover, .win-itemfind .if-mh.go:focus-visible { background: rgba(90, 169, 255, 0.14); outline: none; }
.win-itemfind .if-go { margin-left: 6px; font-weight: 800; font-size: 16px; line-height: 1; color: #2f8fe0; }
/* the list */
.mf-filters { display: flex; gap: 4px; flex-wrap: wrap; margin: 0 0 6px; }
.mf-fl { display: inline-flex; align-items: center; min-height: 26px; padding: 0 11px; border-radius: 13px; font-size: 12px; font-weight: 700; cursor: pointer; user-select: none;
	border: 1px solid rgba(128, 128, 128, 0.45); background: rgba(128, 128, 128, 0.1); }
.mf-fl:hover { background: rgba(90, 169, 255, 0.16); }
.mf-fl.on { background: linear-gradient(#5aa9ff, #2f74d0); color: #fff; border-color: #1f5fb8; }
.mf-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; max-height: 58vh; overflow-y: auto; padding: 2px; overscroll-behavior: contain; }
.mf-card { display: grid; grid-template-columns: 46px minmax(0, 1fr); grid-template-rows: auto auto auto; column-gap: 7px; row-gap: 1px; align-items: center; padding: 6px 7px;
	border-radius: 11px; min-height: 66px; cursor: pointer; position: relative; overflow: hidden; user-select: none;
	border: 1px solid rgba(128, 128, 128, 0.35); background: linear-gradient(160deg, rgba(128, 128, 128, 0.12), rgba(128, 128, 128, 0.03)); transition: transform 0.12s, box-shadow 0.12s; }
.mf-card:hover, .mf-card:focus-visible { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25); outline: none; }
.mf-ci { grid-row: 1 / span 3; position: relative; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 10px; background: radial-gradient(circle at 50% 75%, rgba(255, 255, 255, 0.35), rgba(120, 120, 140, 0.15) 70%); }
.mf-ci img { max-width: 42px; max-height: 42px; image-rendering: pixelated; }
.mf-ci i { font-style: normal; font-size: 11px; opacity: 0.7; }
.mf-cn { display: flex; align-items: center; gap: 4px; min-width: 0; }
.mf-cn b { font-size: 13px; line-height: 1.2; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: anywhere; }
.mf-cl { font-size: 11.5px; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.mf-cr { font-size: 11px; opacity: 0.75; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mf-card.k-mvp { border-color: #d9a520; background: linear-gradient(140deg, rgba(255, 214, 102, 0.32), rgba(255, 170, 0, 0.06)); box-shadow: 0 0 0 1px rgba(255, 200, 60, 0.45), 0 0 14px rgba(255, 190, 40, 0.3); }
.mf-card.k-mini { border-color: #9b6bff; background: linear-gradient(140deg, rgba(170, 120, 255, 0.28), rgba(120, 60, 220, 0.05)); box-shadow: 0 0 0 1px rgba(160, 110, 255, 0.35), 0 0 12px rgba(150, 100, 255, 0.25); }
.mf-card.k-mvp::after { content: ''; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, 0.35) 50%, transparent 65%); transform: translateX(-100%); animation: mf-shine 3.2s ease-in-out infinite; pointer-events: none; }
@keyframes mf-shine { 60%, 100% { transform: translateX(100%); } }
.mf-kb { position: absolute; left: 50%; bottom: -5px; transform: translateX(-50%); font-style: normal; font-size: 9px; line-height: 13px; padding: 0 5px; border-radius: 6px; font-weight: 900; white-space: nowrap; letter-spacing: 0.3px; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35); }
.mf-kb.k-mvp { background: linear-gradient(#ffe68a, #e0a21f); color: #3a2400; }
.mf-kb.k-mini { background: linear-gradient(#cfb2ff, #7c4ee0); color: #fff; }
.mf-ele { display: inline-block; padding: 0 6px; border-radius: 8px; font-size: 10.5px; line-height: 16px; font-weight: 700; color: #fff; background: var(--ec, #999); text-shadow: 0 1px 0 rgba(0, 0, 0, 0.4); white-space: nowrap; }
.mf-more { margin: 6px 2px 0; }
/* a monster's page */
.mf-top { margin-bottom: 6px; }
.mf-page { display: flex; flex-direction: column; gap: 8px; }
.mf-hero { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 10px; padding: 8px; border-radius: 16px; color: #f1ecff;
	background: linear-gradient(160deg, #241c40, #120e22 70%); border: 1px solid #4b3f7a; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06); }
.mf-page.k-mvp .mf-hero { border-color: #b9891d; box-shadow: 0 0 0 1px rgba(255, 200, 80, 0.25), 0 0 26px rgba(255, 180, 40, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.08); background: linear-gradient(160deg, #3a2a12, #160f08 72%); }
.mf-page.k-mini .mf-hero { border-color: #7a52d6; box-shadow: 0 0 20px rgba(140, 90, 255, 0.2); background: linear-gradient(160deg, #2c1d4d, #130c24 72%); }
.mf-stage { position: relative; height: 230px; border-radius: 12px; overflow: hidden; isolation: isolate; --ec: #9aa3b5; --glow: rgba(150, 180, 255, 0.55);
	background: radial-gradient(110% 75% at 50% 0%, #3b3170, #17112b 62%, #0a0714); border: 1px solid rgba(255, 255, 255, 0.12); box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.65); }
@supports (background: color-mix(in srgb, red 50%, blue)) {
	.mf-stage { background: radial-gradient(110% 75% at 50% 0%, color-mix(in srgb, var(--ec) 42%, #2a2152), #17112b 62%, #0a0714); --glow: color-mix(in srgb, var(--ec) 70%, white); }
}
.mf-stage.k-mvp { --glow: rgba(255, 205, 80, 0.85); background: radial-gradient(110% 75% at 50% 0%, #7a5a18, #2a1c08 60%, #0d0803); border-color: rgba(255, 210, 110, 0.4); }
.mf-stage.k-mini { --glow: rgba(185, 140, 255, 0.85); background: radial-gradient(110% 75% at 50% 0%, #5b3a9a, #1f1236 60%, #0b0716); border-color: rgba(190, 150, 255, 0.35); }
.mf-stage > i { position: absolute; pointer-events: none; font-style: normal; }
/* (the spotlight from above, swaying a little) */
.mf-beam { left: 50%; top: -30px; width: 240px; height: 270px; margin-left: -120px; z-index: 0; opacity: 0.55; transform-origin: 50% 0; filter: blur(6px);
	background: conic-gradient(from 160deg at 50% 0%, transparent 0deg, var(--glow) 20deg, transparent 40deg); animation: mf-sway 6s ease-in-out infinite; }
@keyframes mf-sway { 0%, 100% { transform: rotate(-5deg); } 50% { transform: rotate(5deg); } }
/* (the lit floor under it) */
.mf-floor { left: 8%; right: 8%; bottom: 8px; height: 46px; z-index: 0; border-radius: 50%;
	background: radial-gradient(closest-side, var(--glow), transparent 75%); opacity: 0.55; box-shadow: 0 0 30px rgba(0, 0, 0, 0.3); }
/* (an MVP: a gold ring turning behind it; a mini-boss: purple) */
.mf-aura { display: none; left: 50%; bottom: 12px; width: 190px; height: 190px; margin-left: -95px; z-index: 1; border-radius: 50%;
	background: conic-gradient(from 0deg, transparent, var(--glow), transparent 30%, var(--glow) 50%, transparent 65%, var(--glow) 85%, transparent);
	-webkit-mask: radial-gradient(closest-side, transparent 72%, #000 74%, #000 86%, transparent 88%); mask: radial-gradient(closest-side, transparent 72%, #000 74%, #000 86%, transparent 88%);
	filter: blur(1.5px) drop-shadow(0 0 8px var(--glow)); animation: mf-spin 7s linear infinite; transform: scaleY(0.42); transform-origin: 50% 100%; }
.mf-stage.k-mvp .mf-aura, .mf-stage.k-mini .mf-aura { display: block; }
@keyframes mf-spin { to { transform: scaleY(0.42) rotate(360deg); } }
/* (sparks rising) */
.mf-spark { bottom: 14px; width: 4px; height: 4px; border-radius: 50%; z-index: 3; background: var(--glow); box-shadow: 0 0 6px var(--glow); opacity: 0; animation: mf-rise 3.6s ease-in infinite; }
.mf-spark:nth-of-type(4) { left: 18%; animation-delay: 0.2s; } .mf-spark:nth-of-type(5) { left: 30%; animation-delay: 1.6s; } .mf-spark:nth-of-type(6) { left: 44%; animation-delay: 0.9s; }
.mf-spark:nth-of-type(7) { left: 58%; animation-delay: 2.4s; } .mf-spark:nth-of-type(8) { left: 70%; animation-delay: 0.5s; } .mf-spark:nth-of-type(9) { left: 82%; animation-delay: 1.9s; }
.mf-spark:nth-of-type(10) { left: 24%; animation-delay: 2.9s; } .mf-spark:nth-of-type(11) { left: 52%; animation-delay: 3.2s; } .mf-spark:nth-of-type(12) { left: 66%; animation-delay: 1.2s; }
.mf-spark:nth-of-type(13) { left: 38%; animation-delay: 2.1s; }
@keyframes mf-rise { 0% { opacity: 0; transform: translateY(0) scale(1); } 15% { opacity: 1; } 100% { opacity: 0; transform: translateY(-170px) scale(0.4); } }
.mf-cv { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; cursor: pointer; }
.mf-fb { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; padding-top: 40px; pointer-events: none; }
.mf-fb img { width: 120px; height: 120px; object-fit: contain; image-rendering: pixelated; filter: drop-shadow(0 6px 6px rgba(0, 0, 0, 0.5)); }
.mf-fb i { font: 800 26px/1 system-ui, sans-serif; color: rgba(255, 255, 255, 0.4); font-style: normal; }
.mf-stage.drawn .mf-fb { display: none; }
.mf-stage.k-mvp .mf-cv { filter: drop-shadow(0 0 10px rgba(255, 200, 60, 0.55)); }
.mf-stage.k-mini .mf-cv { filter: drop-shadow(0 0 10px rgba(170, 120, 255, 0.5)); }
.mf-stage.dead .mf-cv, .mf-stage.dead .mf-fb { filter: grayscale(1) brightness(0.75); }
.mf-stage.dead .mf-beam, .mf-stage.dead .mf-aura, .mf-stage.dead .mf-spark { animation-play-state: paused; opacity: 0.15; }
.mf-badge { position: absolute; top: 8px; left: 8px; z-index: 4; padding: 2px 9px; border-radius: 10px; font-weight: 900; font-size: 12px; letter-spacing: 0.5px; }
.mf-badge.k-mvp { background: linear-gradient(#fff0a8, #e5a21c 55%, #b5770c); color: #3a2400; box-shadow: 0 0 12px rgba(255, 196, 60, 0.7); }
.mf-badge.k-mini { background: linear-gradient(#e0ccff, #8a5be6 55%, #5e35b8); color: #fff; box-shadow: 0 0 12px rgba(160, 110, 255, 0.6); }
.mf-rip { position: absolute; left: 0; right: 0; top: 42%; z-index: 4; text-align: center; font: 900 22px/1.2 system-ui, sans-serif; color: #ff8a80; text-shadow: 0 2px 6px #000; letter-spacing: 1px; }
.mf-info { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.mf-name { margin: 2px 0 0; font-size: 20px; font-weight: 800; line-height: 1.2; color: #fff; overflow-wrap: anywhere; }
.mf-name small { font-size: 12px; font-weight: 600; color: #b9b0d8; }
.mf-page.k-mvp .mf-name { color: #ffe08a; text-shadow: 0 0 14px rgba(255, 190, 40, 0.45); }
.mf-page.k-mini .mf-name { color: #e2d2ff; text-shadow: 0 0 12px rgba(160, 110, 255, 0.45); }
.mf-tags { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.mf-lv { padding: 0 7px; border-radius: 8px; font-weight: 800; font-size: 12px; line-height: 18px; background: linear-gradient(#fff, #cfd6e6); color: #1d2333; }
.mf-tag { padding: 0 7px; border-radius: 8px; font-size: 11.5px; line-height: 18px; background: rgba(255, 255, 255, 0.12); color: #e6e1f7; }
.mf-tag.agg { background: rgba(255, 90, 70, 0.28); color: #ffd1c9; }
.mf-info .mf-ele { line-height: 18px; font-size: 11.5px; }
.mf-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
.mf-st { display: flex; flex-direction: column; padding: 3px 7px; border-radius: 8px; background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.07); min-width: 0; }
.mf-st i { font-style: normal; font-size: 10.5px; color: #a9a1c9; font-weight: 700; }
.mf-st b { font-size: 13px; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.mf-st:first-child { grid-column: 1 / -1; background: linear-gradient(90deg, rgba(220, 50, 60, 0.45), rgba(220, 50, 60, 0.12)); border-color: rgba(255, 110, 110, 0.3); }
.mf-st:first-child b { font-size: 15px; }
.mf-attr { display: flex; flex-wrap: wrap; gap: 3px 10px; font-size: 11.5px; color: #d6d0ee; }
.mf-attr i { font-style: normal; color: #9c94bf; margin-right: 3px; font-weight: 700; }
.mf-exp { display: flex; flex-wrap: wrap; gap: 4px; }
.mf-exp span { padding: 2px 8px; border-radius: 8px; font-size: 12px; background: rgba(90, 169, 255, 0.16); border: 1px solid rgba(120, 180, 255, 0.25); }
.mf-exp span.mvp { background: rgba(255, 200, 60, 0.18); border-color: rgba(255, 210, 110, 0.35); }
.mf-exp i { font-style: normal; color: #a9c7f0; margin-right: 4px; font-size: 11px; }
.mf-exp b { color: #fff; font-variant-numeric: tabular-nums; }
.mf-x { color: #8fe3a2; font-weight: 700; margin-left: 2px; }
.mf-boss { display: flex; flex-direction: column; gap: 2px; padding: 5px 8px; border-radius: 10px; font-size: 12.5px; background: rgba(60, 200, 110, 0.14); border: 1px solid rgba(90, 220, 140, 0.3); }
.mf-boss.dead { background: rgba(230, 70, 70, 0.16); border-color: rgba(255, 120, 120, 0.35); }
.mf-bm { font-weight: 700; color: #fff; }
.mf-live { color: #6dfa9b; } .mf-live::first-letter { animation: mf-blink 1.4s ease-in-out infinite; }
.mf-dead { color: #ff8a80; }
.mf-cd { color: #ffe08a; font-variant-numeric: tabular-nums; font-size: 14px; }
@keyframes mf-blink { 50% { opacity: 0.35; } }
.mf-boss small.muted { color: #b9b0d8; }
/* the drop bonus strip */
.mf-bonus { padding: 7px 10px; border-radius: 12px; border: 1px solid rgba(128, 128, 128, 0.35); background: rgba(128, 128, 128, 0.08); }
.mf-bonus.on { border-color: rgba(60, 190, 110, 0.55); background: linear-gradient(100deg, rgba(60, 200, 110, 0.22), rgba(60, 200, 110, 0.04)); }
.mf-bonus.off { border-color: rgba(214, 160, 40, 0.6); background: linear-gradient(100deg, rgba(255, 200, 60, 0.22), rgba(150, 100, 255, 0.08)); }
.mf-bonus.warn { border-color: rgba(220, 70, 60, 0.6); background: rgba(230, 70, 60, 0.15); color: #c62828; font-size: 12.5px; }
.mf-bt { display: flex; align-items: center; gap: 8px; }
.mf-bt b { flex: 1; min-width: 0; font-size: 13px; }
.mf-btot { font-weight: 900; font-size: 18px; color: #1f9a4c; white-space: nowrap; }
.mf-bonus.off .mf-btot { font-size: 13px; color: #a36b00; }
.mf-bonus.none .mf-btot { color: inherit; opacity: 0.6; }
.mf-bparts { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 5px; }
.mf-bp { font-style: normal; font-size: 12px; font-weight: 700; padding: 1px 8px; border-radius: 10px; background: rgba(255, 255, 255, 0.55); border: 1px solid rgba(0, 0, 0, 0.08); color: #1b3a26; white-space: nowrap; }
.mf-bp::before { content: ''; display: inline-block; width: 7px; height: 7px; margin-right: 5px; border-radius: 50%; background: var(--bs, #3cb371); vertical-align: 0; }
.mf-bp.neg { color: #9b1c1c; }
.mf-bparts.struck .mf-bp { text-decoration: line-through; opacity: 0.6; }
.mf-bnote { margin: 4px 0 0; font-size: 11.5px; opacity: 0.85; }
.mf-bp.bs-member { --bs: #f2a50c; } .mf-bp.bs-itemboost { --bs: #ff6fae; } .mf-bp.bs-race, .mf-bp.bs-class { --bs: #3aa0e0; } .mf-bp.bs-farm, .mf-bp.bs-farm2, .mf-bp.bs-receive2 { --bs: #2bb39a; }
/* the drops */
.mf-h { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-top: 2px; padding-bottom: 3px; border-bottom: 1px solid var(--line, #c3c8d4); }
.mf-h span { font-weight: 800; font-size: 13.5px; }
.mf-h small { font-size: 11px; opacity: 0.75; }
.mf-h.mvp span { color: #c88a00; }
.mf-drops { display: grid; grid-template-columns: repeat(auto-fill, minmax(146px, 1fr)); gap: 6px; }
.mf-drop { position: relative; display: grid; grid-template-columns: 38px minmax(0, 1fr); grid-template-areas: 'ic name' 'ic sv' 'mn mn' 'bar bar'; column-gap: 6px; row-gap: 1px; align-items: center;
	padding: 6px 7px 7px; border-radius: 11px; cursor: pointer; user-select: none; border: 1.5px solid var(--rc, #9aa3b5);
	background: linear-gradient(165deg, color-mix(in srgb, var(--rc, #9aa3b5) 16%, transparent), transparent 70%), var(--panel-solid, #fff); transition: transform 0.12s, box-shadow 0.12s; }
.mf-drop:hover, .mf-drop:focus-visible { transform: translateY(-2px); box-shadow: 0 6px 14px rgba(0, 0, 0, 0.22), 0 0 0 1px var(--rc); outline: none; }
.mf-drop.r1 { --rc: #9aa3b5; } .mf-drop.r2 { --rc: #3fb866; } .mf-drop.r3 { --rc: #3d8be0; } .mf-drop.r4 { --rc: #9b5bd6; } .mf-drop.r5 { --rc: #ff8a1f; }
.mf-drop.r4, .mf-drop.r5 { box-shadow: 0 0 10px color-mix(in srgb, var(--rc) 40%, transparent); }
.mf-drop.is-card { --rc: #e3a418; border-width: 2px; background: linear-gradient(165deg, rgba(255, 215, 90, 0.35), rgba(255, 180, 20, 0.05) 70%), var(--panel-solid, #fff);
	box-shadow: 0 0 0 1px rgba(255, 210, 90, 0.55), 0 0 16px rgba(255, 190, 40, 0.45); overflow: hidden; }
.mf-drop.is-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 38%, rgba(255, 255, 255, 0.55) 50%, transparent 62%); transform: translateX(-100%); animation: mf-shine 2.6s ease-in-out infinite; pointer-events: none; }
.mf-drop.mvp { --rc: #d9a520; }
.mf-dic { grid-area: ic; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 9px; background: radial-gradient(circle, rgba(255, 255, 255, 0.7), color-mix(in srgb, var(--rc) 22%, transparent)); }
.mf-dic .ic { width: 32px; height: 32px; pointer-events: none; }
.mf-dic .ic img { width: 30px; height: 30px; }
.mf-dn { grid-area: name; font-weight: 700; font-size: 12.5px; line-height: 1.25; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: anywhere; }
.mf-dr, .mf-dm { display: flex; align-items: baseline; gap: 4px; font-size: 11.5px; white-space: nowrap; }
.mf-dr { grid-area: sv; }
.mf-dm { grid-area: mn; margin-top: 2px; }
.mf-dr i, .mf-dm i { font-style: normal; opacity: 0.7; font-size: 10.5px; }
.mf-dr b { font-variant-numeric: tabular-nums; }
.mf-dm b { font-variant-numeric: tabular-nums; font-size: 13px; }
.mf-dm.up b { color: #1f9a4c; }
.mf-dm em { font-style: normal; font-size: 10.5px; font-weight: 800; color: #fff; background: #2fb35e; padding: 0 5px; border-radius: 7px; margin-left: auto; }
.mf-dm.mvp b { color: #c88a00; }
.mf-foot { grid-area: bar; display: flex; align-items: center; gap: 6px; margin-top: 3px; min-width: 0; }
.mf-bar { flex: 1 1 auto; min-width: 20px; position: relative; height: 4px; border-radius: 3px; background: rgba(128, 128, 128, 0.22); overflow: hidden; }
.mf-bar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 3px; }
.mf-bar i.s { background: color-mix(in srgb, var(--rc) 75%, #888); z-index: 1; }
.mf-bar i.m { background: linear-gradient(90deg, #7be3a0, #1f9a4c); z-index: 0; }
.mf-rr { flex: none; font-size: 9px; line-height: 14px; font-weight: 800; padding: 0 4px; border-radius: 5px; color: #fff; background: var(--rc); opacity: 0.92; white-space: nowrap; }
.mf-drop.is-card .mf-rr::before { content: '🃏 '; }
.mf-guar { display: block; font-size: 10px; line-height: 13px; font-weight: 700; color: #b06d00; white-space: nowrap; } /* the Orb's guarantee (orb.js) */
.mf-maps { display: flex; flex-direction: column; gap: 2px; }
.mf-maps .if-map { padding-left: 4px; }
.mf-wait { padding: 30px 0; text-align: center; }
/* the box beside the mouse on a drop */
/* (light like the client's item boxes: the descriptions' own colours - ^000088 ... - are made for a white page) */
.mf-tip { position: fixed; z-index: 3000; max-width: 300px; padding: 8px 10px; border-radius: 10px; pointer-events: none; font-size: 12px; line-height: 1.4;
	background: #fffdf7; color: #1b1b24; border: 1px solid #c9b98a; box-shadow: 0 8px 22px rgba(0, 0, 0, 0.45); }
.mf-tip.hidden { display: none; }
.mf-tip .mt-h { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.mf-tip .mt-k { color: #6b6680; font-size: 11px; margin: 2px 0 4px; }
.mf-tip .mt-d { max-height: 6.2em; overflow: hidden; color: #2a2a35; font-size: 11.5px; -webkit-mask: linear-gradient(#000 70%, transparent); mask: linear-gradient(#000 70%, transparent); }
.mf-tip .mt-r { margin-top: 5px; padding-top: 4px; border-top: 1px solid rgba(0, 0, 0, 0.1); }
.mf-tip .mt-r b.up { color: #1f9a4c; }
.mf-tip .mt-f { margin-top: 3px; font-size: 10.5px; color: #8a8496; }
/* a phone (and a narrow window): the stage over the stats, two drops a row */
html.mhud .mf-hero { grid-template-columns: minmax(0, 1fr); }
html.mhud .mf-stage { height: 200px; }
html.mhud .mf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); max-height: 46vh; max-height: 46dvh; }
html.mhud .mf-drops { grid-template-columns: repeat(2, minmax(0, 1fr)); }
/* (the window at 75 % at least like the Collection's, and across the whole screen standing: its sizes below are a finger's
   on the screen - divided by that scale) */
html.mhud .win.win-itemfind { transform: scale(max(var(--uik, 1), 0.75)); max-height: calc((100% - 88px - var(--mh-wb, 8px)) / max(var(--uik, 1), 0.75)) !important; }
html.mhud:not(.mh-land) .win.win-itemfind { left: 0 !important; right: auto !important; width: calc(100vw / max(var(--uik, 1), 0.75)) !important; transform-origin: 0 100%; }
html.mhud .mf-card { min-height: calc(66px / max(var(--uik, 1), 0.75)); }
html.mhud .mf-fl { min-height: calc(36px / max(var(--uik, 1), 0.75)); padding: 0 14px; font-size: 14px; }
html.mhud .win-itemfind .if-tabs button { min-height: calc(42px / max(var(--uik, 1), 0.75)) !important; font-size: 15px !important; }
html.mhud .win-itemfind .mf-back { height: auto; min-height: calc(36px / max(var(--uik, 1), 0.75)); padding: 0 16px; font-size: 14px; }
html.mhud .win-itemfind .if-warp { height: auto; min-height: calc(32px / max(var(--uik, 1), 0.75)); }
html.mhud .mf-drop { min-height: calc(92px / max(var(--uik, 1), 0.75)); }
html.mhud .win-itemfind .if-q { min-height: calc(36px / max(var(--uik, 1), 0.75)); font-size: 15px; }
@media (max-width: 700px) {
	.mf-hero { grid-template-columns: minmax(0, 1fr); }
	.mf-stage { height: 200px; }
	.mf-grid, .mf-drops { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) { .mf-beam, .mf-aura, .mf-spark, .mf-card.k-mvp::after, .mf-drop.is-card::after, .mf-live::first-letter { animation: none; } .mf-spark { display: none; } }

/* ---- the NPC shop and the players' shops (shopwin.js, Noh 2026-10-25 "ให้เหมือนเลย"): what can be bought / sold beside
   what will be - an item's picture in its slot (how many under it), its name wrapping, its price; a phone: one over the
   other, a tap puts in / takes out ---- */
.shp { display: flex; align-items: flex-end; gap: 8px; }
.shp-pane { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: var(--panel-solid); }
.shp-title { padding: 4px 8px; font-size: 13px; font-weight: 600; background: var(--head); border-bottom: 1px solid var(--line); user-select: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shp-list { overflow-y: auto; overscroll-behavior: contain; }
.shp-src .shp-list { height: 264px; }
.shp-bag .shp-list { height: 99px; }
.win-vend .shp-src .shp-list, .win-vend .shp-bag .shp-list { height: 132px; }
.shp-row { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; align-items: center; column-gap: 6px; height: 33px; padding: 0 8px 0 6px; cursor: default;
	user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; }
.shp-row:not(.empty):hover { background: rgba(79, 143, 240, 0.12); }
.shp-row.on { background: rgba(79, 143, 240, 0.25); }
.shp-row.warn .shp-nm { color: var(--warn, #c88a00); }
.shp-slot { position: relative; box-sizing: border-box; width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid #8aa1d0; border-radius: 5px; }
.shp-slot .ic { width: 24px; height: 24px; margin: 0; }
.shp-slot b { position: absolute; left: -3px; right: -3px; bottom: -2px; text-align: center; font-size: 10px; line-height: 11px; font-weight: 600; color: #fff;
	text-shadow: 0 0 2px #000, 0 0 2px #000; pointer-events: none; white-space: nowrap; }
.shp-nm { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; word-break: break-all; font-size: 12px; line-height: 14px; }
.shp-pr { white-space: nowrap; text-align: right; font-size: 12px; font-variant-numeric: tabular-nums; }
.shp-pr.green { color: #43c46b; }
/* the price before Discount / Overcharge crossed out beside the one paid, the % in the list's title, the Zeny saved under
   the total (Midgard, js/shopwin.js; Noh 2026-10-26 "ร้านค้าไม่แสดง ราคาจากสกิล DC") */
.shp-pr.disc, .shp-pr.over { color: #43c46b; font-weight: 600; }
.shp-was { margin-right: 2px; font-size: 10.5px; font-weight: normal; color: var(--muted); text-decoration: line-through; }
.shp-off { margin-left: 6px; padding: 0 5px; border-radius: 7px; font: 600 10.5px/14px var(--game-font, sans-serif); font-style: normal; color: #fff; background: #2f9e55; vertical-align: 1px; cursor: help; }
.shp-save { margin-left: 6px; font-size: 11px; font-style: normal; color: #43c46b; white-space: nowrap; cursor: help; }
.shp-foot { display: flex; align-items: center; gap: 4px; min-height: 28px; padding: 2px 6px; border-top: 1px solid var(--line); }
.shp-foot:empty { min-height: 16px; }
.shp-foot .grow { flex: 1; }
.shp-total { font-size: 12px; white-space: nowrap; }
.shp-total.bad { color: var(--danger); }
.shp-warn { color: var(--danger); font-style: normal; font-size: 11px; white-space: nowrap; }
.shp-hint { margin: 0; padding: 8px; font-size: 12px; color: var(--muted); }
body.dragging .shp-pane.drop-on { outline: 2px dashed #5876c4; outline-offset: -2px; }
/* the seller's set-up: the shop's name, a slot each (dragged in from the cart), its price */
.win-vendsetup .vs-name { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }
.win-vendsetup .vs-name input { flex: 1; min-width: 0; }
.win-vendsetup .vs-help { width: 22px; min-width: 22px; height: 22px; min-height: 22px; padding: 0; border-radius: 50%; font-weight: 700; line-height: 20px; }
.win-vendsetup .vs-slots { display: flex; flex-direction: column; gap: 10px; max-height: min(52vh, 420px); overflow-y: auto; padding: 2px; }
.win-vendsetup .vs-row { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto 104px; align-items: center; column-gap: 6px; }
.win-vendsetup .vs-row.empty .shp-slot { cursor: pointer; }
.win-vendsetup .vs-row .shp-slot[draggable] { cursor: grab; }
.win-vendsetup .vs-nm { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; word-break: break-all; font-size: 12px; line-height: 14px; }
.win-vendsetup .vs-pl { font-size: 12px; white-space: nowrap; }
.win-vendsetup .vs-price { width: 100%; min-width: 0; box-sizing: border-box; font-variant-numeric: tabular-nums; }
.win-vendsetup .vs-note { margin: 8px 0 0; color: #e0483c; font-size: 12px; }
.win-vendsetup .vs-chk { display: flex; align-items: center; gap: 4px; font-size: 12px; white-space: nowrap; }
.popup.vs-pick .vs-picklist { min-width: 260px; max-height: 50vh; overflow-y: auto; }
.popup.vs-pick .shp-row { grid-template-columns: 32px minmax(0, 1fr); cursor: pointer; }
@media (max-width: 700px) {
	.shp { flex-direction: column; align-items: stretch; }
	.shp-pane { flex: none; } /* (a basis of 0 in a column of auto height: the lists would fold to nothing) */
	.shp-src .shp-list, .win-vend .shp-src .shp-list { height: auto; max-height: 36vh; max-height: 36dvh; }
	.shp-bag .shp-list, .win-vend .shp-bag .shp-list { height: auto; min-height: 44px; max-height: 24vh; max-height: 24dvh; }
}
html.mhud .shp { flex-direction: column; align-items: stretch; gap: 6px; }
html.mhud .shp-pane { flex: none; }
html.mhud .shp-src .shp-list, html.mhud .win-vend .shp-src .shp-list { height: auto; max-height: 36vh; max-height: 36dvh; }
html.mhud .shp-bag .shp-list, html.mhud .win-vend .shp-bag .shp-list { height: auto; min-height: 44px; max-height: 24vh; max-height: 24dvh; }
html.mhud .shp-row { height: 42px; font-size: 14px; }
html.mhud .shp-row.empty { display: none; }
html.mhud .shp-nm { font-size: 14px; line-height: 17px; }
html.mhud .shp-pr, html.mhud .shp-total { font-size: 14px; }
html.mhud .win-vendsetup .vs-row { grid-template-columns: 40px minmax(0, 1fr) auto 110px; }
html.mhud .win-vendsetup .vs-row .shp-slot { width: 40px; height: 40px; }
/* the chat room dialog like the official "สร้างห้องสนทนา" (systems.js chatnew, Noh 2026-10-25): Title on its own line,
   Limit / Type, Public / Sign side by side; the room window takes a size from its corner */
.win-chatnew .crn { display: grid; grid-template-columns: auto minmax(0, 1fr) auto 84px; align-items: center; gap: 5px 4px; }
.win-chatnew .crn-l { font-size: 12px; white-space: nowrap; text-align: right; }
.win-chatnew .crn-title { grid-column: 2 / 5; }
.win-chatnew .crn select, .win-chatnew .crn input { min-width: 0; width: 100%; box-sizing: border-box; }
.win-chatnew .crn-pub { display: flex; gap: 5px; font-size: 11px; white-space: nowrap; overflow: hidden; }
.win-chatnew .crn-pub label { display: inline-flex; align-items: center; gap: 2px; }
.win-chatnew .crn-pub input { width: auto; }
@media (min-width: 701px) {
	html:not(.mhud) .win-chatroom { resize: both; overflow: hidden; min-width: 280px; min-height: 170px; max-height: calc(100vh - 20px); }
	html:not(.mhud) .win-chatroom .win-body { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
	html:not(.mhud) .win-chatroom .cr-cols { flex: 1 1 200px; min-height: 0; }
	html:not(.mhud) .win-chatroom .cr-log, html:not(.mhud) .win-chatroom .cr-mems { height: auto; max-height: none; min-height: 0; }
}
/* the chat tab's window of what it shows (chatwin.js, Noh 2026-10-25 like the official one): a row a kind of message with
   its ON / OFF badge (a click turns it), "เปิดทั้งหมด" under the list */
.win-chatcfg .win-body { padding: 0; }
.win-chatcfg .cc-list { height: 168px; overflow-y: auto; padding: 2px 0; }
.win-chatcfg .cc-row { display: flex; align-items: center; gap: 8px; height: 20px; padding: 0 6px 0 20px; cursor: pointer; white-space: nowrap; overflow: hidden; user-select: none; font-size: 12px; }
.win-chatcfg .cc-row:hover { background: rgba(79, 143, 240, 0.12); }
.win-chatcfg .cc-lb { overflow: hidden; text-overflow: ellipsis; }
.win-chatcfg .cc-sw { flex: none; width: 22px; height: 15px; border-radius: 8px; display: grid; place-items: center; font: bold 8px/1 Verdana, Tahoma, sans-serif; letter-spacing: -0.2px;
	border: 1px solid #8a9ccc; color: #4a5f95; background: radial-gradient(circle at 45% 35%, #ffffff, #dfe5f2); }
.win-chatcfg .cc-row.on .cc-sw { border-color: #7fae6d; color: #2f7a24; background: radial-gradient(circle at 45% 35%, #ffffff, #d3ecc8); }
.win-chatcfg .cc-all { display: flex; align-items: center; gap: 4px; font-size: 12px; cursor: pointer; }
/* the guild window (guildwin.js, Noh 2026-10-26 like the official one): its six tabs across, a body of one height, the
   tables of members / positions / the expelled with their lines, the skills' list, the notice */
.win-guild .g-tabs { display: flex; flex-wrap: nowrap; gap: 1px; margin: 0 0 6px; overflow-x: auto; scrollbar-width: none; }
.win-guild .g-tabs::-webkit-scrollbar { display: none; }
.win-guild .g-tabs button { flex: 1 1 0; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 2px 6px; }
.win-guild .g-body { height: 250px; overflow: hidden; display: flex; flex-direction: column; font-size: 12px; }
.win-guild .g-info { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; line-height: 17px; }
.win-guild .g-on { display: inline-block; padding: 0 3px; border: 1px solid #7fae6d; border-radius: 6px; font: bold 8px/11px Verdana, Tahoma, sans-serif; color: #2f7a24; background: #d3ecc8; vertical-align: 1px; }
.win-guild .g-embl { display: flex; align-items: center; gap: 8px; margin: 4px 0 16px; }
.win-guild .g-emb-up { margin-left: auto; padding: 1px 12px; border: 1px solid var(--line); border-radius: 4px; cursor: pointer; text-decoration: none; }
.win-guild .g-relh { margin-top: 4px; }
.win-guild .g-relbox { height: 46px; overflow-y: auto; padding: 2px 4px; background: rgba(127, 127, 127, 0.25); }
.win-guild .g-rel { display: flex; align-items: center; gap: 4px; }
.win-guild .g-relx { margin-left: auto; width: 14px; height: 14px; min-height: 14px; padding: 0; font-size: 9px; line-height: 12px; }
.win-guild .g-relx::before { content: '✕'; }
.win-guild .g-tbl { flex: 1; min-height: 0; overflow: auto; }
.win-guild .g-grid { width: 100%; border-collapse: collapse; table-layout: fixed; }
.win-guild .g-grid th, .win-guild .g-grid td { height: 20px; padding: 1px 4px; border: 1px solid var(--line); text-align: left; font-weight: normal; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.win-guild .g-grid .num { text-align: right; }
.win-guild .g-mems th:nth-child(1) { width: 30%; } .win-guild .g-mems th:nth-child(2) { width: 19%; } .win-guild .g-mems th:nth-child(3) { width: 17%; }
.win-guild .g-mems th:nth-child(4) { width: 10%; } .win-guild .g-mems th:nth-child(5) { width: 11%; } .win-guild .g-mems th:nth-child(6) { width: 13%; }
.win-guild .g-mems tr.g-mem { height: 30px; cursor: default; }
.win-guild .g-mems tr.g-mem:not(.on) td { color: var(--muted); }
.win-guild .g-mems tr.on { background: rgba(110, 200, 110, 0.18); }
.win-guild .g-mems tr.sel td { box-shadow: inset 0 1px 0 #5b7fd6, inset 0 -1px 0 #5b7fd6; }
.win-guild .g-mems tr.g-empty td { height: 30px; }
.win-guild .g-hd { display: inline-block; width: 24px; height: 24px; margin-right: 3px; vertical-align: middle; image-rendering: pixelated; }
.win-guild .g-date { display: block; font-size: 10px; line-height: 11px; color: var(--muted); }
.win-guild .g-mems select { width: 100%; min-width: 0; height: 18px; min-height: 18px; padding: 0; font-size: 11px; }
.win-guild .g-pos th:nth-child(1) { width: 11%; } .win-guild .g-pos th:nth-child(2) { width: 31%; } .win-guild .g-pos th:nth-child(3), .win-guild .g-pos th:nth-child(4), .win-guild .g-pos th:nth-child(5) { width: 14%; }
.win-guild .g-pos th:nth-child(6) { width: 16%; }
.win-guild .g-pos td.ck { text-align: center; }
.win-guild .g-pos input[data-pn] { width: 100%; min-width: 0; height: 18px; min-height: 18px; padding: 0 3px; font-size: 12px; box-sizing: border-box; }
.win-guild .g-pos .qty { width: 34px; height: 18px; min-height: 18px; padding: 0 2px; }
.win-guild .g-pos tr.sel td { background: rgba(91, 127, 214, 0.3); }
.win-guild .g-ban th:nth-child(1) { width: 30%; }
.win-guild .g-ban tr.g-empty td { height: 20px; }
.win-guild .g-sks { flex: 1; overflow-y: auto; }
.win-guild .g-sk { display: flex; align-items: center; gap: 10px; height: 34px; padding: 0 8px 0 40px; cursor: pointer; user-select: none; }
.win-guild .g-sk.off .g-skn { opacity: 0.5; }
.win-guild .g-sk.sel { background: rgba(79, 143, 240, 0.25); }
.win-guild .g-skl { margin-left: auto; font-size: 11px; color: var(--muted); }
.win-guild .g-skup { width: 20px; height: 20px; min-height: 20px; padding: 0; }
.win-guild .g-skup::before { content: '+'; font-weight: 700; }
.win-guild .g-skp { font-size: 12px; white-space: nowrap; }
.win-guild .g-notice { display: flex; flex-direction: column; gap: 4px; height: 100%; padding-top: 10px; }
.win-guild .g-nh { display: flex; align-items: center; gap: 8px; }
.win-guild .g-nh input { flex: 1; min-width: 0; }
.win-guild .g-notice textarea { flex: 1; min-height: 0; margin: 0; resize: none; }
.win-guild .g-cnt { text-align: right; }
.win-guild .g-login { display: flex; align-items: center; gap: 4px; font-size: 12px; }
@media (max-width: 700px) {
	.win-guild .g-tabs button { flex: none; }
	.win-guild .g-body { height: auto; max-height: 56vh; max-height: 56dvh; overflow: auto; }
	.win-guild .g-info { grid-template-columns: 1fr; }
	.win-guild .g-grid { min-width: 440px; }
}
html.mhud .win-guild .g-tabs button { flex: none; min-height: 34px; }
html.mhud .win-guild .g-body { height: auto; max-height: 56vh; max-height: 56dvh; overflow: auto; }
html.mhud .win-guild .g-info { grid-template-columns: 1fr; }
html.mhud .win-guild .g-grid { min-width: 440px; }

/* ---- the status window's "ที่มาของโบนัส" (bonus_src.js): a line a bonus - its total, then where it comes from ---- */
.bsrc { margin-top: 8px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 6px; max-height: min(320px, 46vh); overflow-y: auto; font-size: 13px; }
.bsrc-g { display: grid; grid-template-columns: max-content max-content minmax(0, 1fr); column-gap: 8px; row-gap: 4px; align-items: baseline; }
.bsrc-k { font-weight: bold; white-space: nowrap; }
.bsrc-t { color: #8be39a; text-align: right; white-space: nowrap; }
.bsrc-t.neg, .bsrc-s i.neg { color: #ff8a80; }
.bsrc-s { display: flex; flex-wrap: wrap; gap: 2px 10px; color: var(--muted); font-size: 12px; min-width: 0; }
.bsrc-s i { font-style: normal; white-space: nowrap; }
.bsrc-s i::before { content: ''; display: inline-block; width: 6px; height: 6px; margin-right: 4px; border-radius: 50%; background: var(--bs, #8a94a8); vertical-align: 1px; }
.bsrc-h { margin: 6px 0 4px; padding-top: 5px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; font-weight: bold; }
.bsrc-none { margin: 2px 0; }
.bs-equip { --bs: #8a94a8; } .bs-grade { --bs: #c9873a; } .bs-card { --bs: #46a865; } .bs-option { --bs: #e0a400; } .bs-collection { --bs: #22a5bb; }
.bs-title { --bs: #9466d6; } .bs-charm { --bs: #d4669f; } .bs-pet { --bs: #a98159; } .bs-buff { --bs: #4f78d8; } .bs-job { --bs: #7c7c7c; }
/* the chat box's "send to" button (ui.js chatTargetInit) and its menu; the message box in that chat's colour */
.chat-target { flex: none; padding: 0 6px; font-size: 11px; white-space: nowrap; }
.chat-target[data-to=party] { color: #840084; } .chat-target[data-to=guild] { color: #008484; }
.chat-input.to-party { color: #840084 !important; } .chat-input.to-guild { color: #008484 !important; }
.chat-target-menu { position: fixed; z-index: 100000; display: flex; flex-direction: column; min-width: 120px; padding: 2px; background: #fff; border: 1px solid #8a93a6; border-radius: 3px; box-shadow: 1px 2px 6px rgba(0, 0, 0, 0.35); }
.chat-target-menu button { all: unset; padding: 3px 10px; font: 12px/18px var(--ro-font, Tahoma, sans-serif); color: #000; cursor: pointer; }
.chat-target-menu button:hover, .chat-target-menu button.on { background: #cfdcff; }
/* Alt+F10: the chat window hidden / shown (the client's) */
#chat.chat-off { display: none !important; }
#hotbar.hk-off { display: none !important; }
#hud-map.mm-half { opacity: 0.5; } #hud-map.mm-half:hover { opacity: 0.85; }
/* the client's windows: faded while dragged, the minimize button (_), the size grip of the list windows */
.win.win-dragging { opacity: 0.6; }
.win-head .mini { min-height: 28px; width: 32px; padding: 0; font-size: 14px; line-height: 1; }
.win.win-mini > .win-body, .win.win-mini > .win-foot, .win.win-mini > .win-grip { display: none !important; }
.win.win-mini { height: auto !important; }
.win.win-sized > .win-body { flex: 1 1 auto; min-height: 0; }
/* (the Collection made taller / shorter from its corner: its list fills it - Noh 2026-11-08 14:24 "ขยายจอ แล้วมันไม่ขยายตาม") */
.win.win-collection.win-sized > .win-body { display: flex; flex-direction: column; }
.win.win-collection.win-sized .col-list, .theme-ro .win.win-collection.win-sized .col-list { flex: 1 1 auto; min-height: 60px; max-height: none; display: flex; flex-direction: column; }
.win.win-collection.win-sized .col-list > * { flex: none; } /* (the rows their own height: a grid of a set height squeezed them over each other) */
.win-grip { position: absolute; right: 1px; bottom: 1px; width: 12px; height: 12px; cursor: nwse-resize; z-index: 2;
	background: linear-gradient(135deg, transparent 50%, rgba(120, 130, 150, 0.75) 50%, rgba(120, 130, 150, 0.75) 60%, transparent 60%, transparent 72%, rgba(120, 130, 150, 0.75) 72%, rgba(120, 130, 150, 0.75) 82%, transparent 82%); }
html.mhud .win-grip, html.mhud .win-head .mini { display: none; }
.opt-sub { margin: 10px 0 2px; padding-top: 6px; border-top: 1px solid var(--line, #ccc); font-weight: bold; }
/* the return after a restart / an update (Noh 2026-10-31: the game stays on the screen, never the login screen): a small
   strip at the top while waiting (app.js resumeBox / verBox), a cover over the login / character screens of the page
   loaded again until the character is back in the game (resumeCover) */
.resume-box.resume-strip { inset: max(8px, env(safe-area-inset-top)) 0 auto 0; padding: 0 8px; background: none; pointer-events: none; }
.resume-box.resume-strip .rb-card { width: auto; max-width: min(460px, 100%); flex-direction: row; gap: 8px; padding: 6px 8px 6px 12px; border-radius: 4px;
	border: 1px solid #6f7fa8; background: linear-gradient(#ffffff, #e6ecf8); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4); pointer-events: auto; }
.resume-box.resume-strip b { font: 13px/1.3 var(--ro-font, Tahoma, sans-serif); }
.resume-box.resume-strip .rb-spin { width: 16px; height: 16px; border-width: 3px; flex: none; }
.resume-box.resume-strip button { margin: 0; height: 22px; min-height: 22px; padding: 0 7px; border-radius: 3px; font-size: 12px; }
.resume-cover { position: fixed; inset: 0; z-index: 95; background: #0b1020; display: flex; align-items: flex-start; justify-content: center; padding-top: max(8px, env(safe-area-inset-top)); }
.resume-cover .rc-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.resume-cover .rc-pic { display: none; }
/* a phone held upright (Noh 2026-11-10 15:41 "มันใหญ่ไป แสดงโลโก้ไม่เต็ม ตอนแนวตั้ง": the landscape picture cut to its middle, the
   logo's sides gone): the picture across the screen a little above the middle (as the map's loading screen, theme-ro.css
   #loading), its top and bottom fading into the same picture blurred behind; a very wide screen: whole, as tall as the
   screen, its sides fading */
@media (max-aspect-ratio: 4/5) {
	.resume-cover { overflow: hidden; }
	/* (the blur: the picture's lower part - the square, not the logo blurred: 2.6 screens tall, its bottom at the screen's) */
	.resume-cover .rc-bg { inset: auto 0 0 0; height: 260%; object-position: 50% 100%; filter: blur(14px) brightness(0.72); transform: scale(1.1); transform-origin: 50% 100%; }
	.resume-cover .rc-pic { display: block; position: absolute; left: 50%; top: 42%; width: 118vw; max-width: none; height: auto; transform: translate(-50%, -50%);
		-webkit-mask-image: linear-gradient(transparent, #000 9%, #000 91%, transparent); mask-image: linear-gradient(transparent, #000 9%, #000 91%, transparent); }
}
@media (min-aspect-ratio: 2/1) {
	.resume-cover .rc-bg { filter: blur(16px) brightness(0.72); transform: scale(1.08); }
	.resume-cover .rc-pic { display: block; position: absolute; top: 0; left: 50%; height: 100%; width: auto; max-width: none; transform: translateX(-50%);
		-webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
}
.resume-cover .resume-strip-in { position: relative; display: flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 4px; border: 1px solid #6f7fa8;
	background: linear-gradient(#ffffff, #e6ecf8); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4); }
.resume-cover b { font: 13px/1.3 var(--ro-font, Tahoma, sans-serif); color: #1d2540; }
.resume-cover .rb-spin { width: 16px; height: 16px; border-radius: 50%; border: 3px solid #d5dcef; border-top-color: #3b5fc2; animation: rb-spin 0.9s linear infinite; }
html.mg-resuming #screen-login, html.mg-resuming #screen-chars { visibility: hidden !important; }
html.mg-resuming body { background: #0b1020; }
/* ---- the game's one icon set (roicons.js, Noh 2026-10-31): line icons on one 24x24 grid, one stroke, round ends; the line
   is the text colour, the soft fill (.f) --gi-fill. The round buttons beside the minimap (PC) and on the phone's right edge:
   the RO title bar's blue with the icon in white and gold; the top-up in gold ---- */
.gi { display: block; width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; overflow: visible; pointer-events: none; }
.gi .f { fill: var(--gi-fill, rgba(96, 150, 240, 0.32)); }
.sb-ic { position: relative; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; box-sizing: border-box; color: #fff; --gi-fill: rgba(255, 214, 110, 0.6);
	border: 1px solid #2e4d9c; background: linear-gradient(#a9c1f0, #6f93dc 45%, #456ab9); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 2px 4px rgba(0, 0, 0, 0.4); }
.sb-ic .gi { width: 22px; height: 22px; filter: drop-shadow(0 1px 0 rgba(0, 0, 0, 0.35)); }
.sb-ic.sb-topup { border-color: #9a6a08; color: #5a3300; --gi-fill: rgba(255, 255, 255, 0.65); background: linear-gradient(#fff6d6, #ffd36b 50%, #f0b520); box-shadow: inset 0 1px 0 #fffbe8, 0 2px 4px rgba(0, 0, 0, 0.4); }
.sb-ic.sb-topup .gi { filter: none; }
.sb-tile:hover .sb-ic { filter: brightness(1.1); }
.sb-tile:active .sb-ic { transform: translateY(1px); }
.sb-lb { font-family: var(--ro-font, Tahoma, sans-serif); }
#map-btns .map-btn.map-topup .sb-ic { width: 44px; height: 44px; } #map-btns .map-btn.map-topup .sb-ic .gi { width: 26px; height: 26px; }
#map-btns .map-btn.map-topup.tu-btn::before { inset: 0 auto auto 50%; width: 44px; height: 44px; margin-left: -22px; border-radius: 50%; }
@media (max-width: 700px) {
	#map-btns .sb-ic, #map-btns .map-btn.map-topup .sb-ic { width: 38px; height: 38px; } #map-btns .sb-ic .gi, #map-btns .map-btn.map-topup .sb-ic .gi { width: 22px; height: 22px; }
	#map-btns .map-btn.map-topup.tu-btn::before { width: 38px; height: 38px; margin-left: -19px; }
}
/* the owner's painted pictures (roicons.js PIC, Noh 2026-10-31): the same places as the line icons, a bit larger, never
   stretched; an entry without a picture keeps its line icon */
img.gi.gi-pic { object-fit: contain; stroke: none; image-rendering: auto; -webkit-user-drag: none; user-select: none; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.45)); }
.sb-ic img.gi-pic { width: 32px; height: 32px; }
/* (a painted picture over a system's coloured circle - news.css, missions.css, season.css ...: the picture alone) */
.sb-ic.sb-pic:not(.sb-topup) { background: none !important; border-color: transparent !important; box-shadow: none !important; }
#map-btns .map-btn.map-topup .sb-ic img.gi-pic { width: 36px; height: 36px; }
.sb-ic.sb-topup img.gi-pic { filter: drop-shadow(0 1px 1px rgba(90, 50, 0, 0.45)); }
.menubar img.gi-pic.mb-ic { width: 18px; height: 18px; vertical-align: -4px; }
/* a small icon of the set in front of a button's / a row's words (the options window: เพลง, ออกจากเกม; the Esc menu) */
.gi.btn-gi { display: inline-block; width: 18px; height: 18px; vertical-align: -4px; margin-right: 5px; }
@media (max-width: 700px) { #map-btns .sb-ic img.gi-pic, #map-btns .map-btn.map-topup .sb-ic img.gi-pic { width: 30px; height: 30px; } }
/* ตลาดกลาง, the marketplace (market.js): balances, tabs, filters, rows of listings, the sell form */
.mk-bal { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.mk-b { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border: 1px solid var(--line, #3a4256); border-radius: 12px; font-size: 12px; }
.mk-b b { color: #c88a00; }
.mk-coin { display: inline-block; flex: 0 0 auto; width: 11px; height: 11px; border-radius: 50%; vertical-align: -1px; margin-right: 2px; background: radial-gradient(circle at 35% 35%, #fff3b0, #e0a400 70%); }
.mk-coin.c1 { border-radius: 2px; transform: rotate(45deg) scale(0.85); background: linear-gradient(135deg, #8fd8ff, #2a7fe0); }
.mk-coin.c2 { border-radius: 2px; transform: rotate(45deg) scale(0.85); background: linear-gradient(135deg, #c8a2ff, #7a3fe0); }
.mk-tabs { display: flex; gap: 4px; margin-bottom: 6px; border-bottom: 1px solid var(--line, #3a4256); }
.mk-tabs button { flex: 1 1 0; min-height: 32px; border-radius: 6px 6px 0 0; border-bottom: 0; font-weight: 600; }
.mk-tabs button.on { background: #6b4bd8; color: #fff; border-color: #6b4bd8; }
.mk-filters { display: flex; flex-wrap: wrap; gap: 4px; }
.mk-filters .mk-q { flex: 1 1 180px; min-width: 0; }
.mk-filters select { flex: 0 1 auto; max-width: 48%; }
.mk-cats, .mk-curs { display: flex; flex-wrap: wrap; gap: 3px; margin: 6px 0 2px; }
.mk-pill { padding: 2px 10px; min-height: 26px; border-radius: 13px; font-size: 12px; }
.mk-pill.on { background: #6b4bd8; color: #fff; border-color: #6b4bd8; }
.mk-count { margin: 2px 0; }
.mk-list { display: grid; gap: 3px; max-height: 46vh; overflow-y: auto; }
.mk-row { display: flex; align-items: center; gap: 8px; padding: 4px 6px; border: 1px solid var(--line, #3a4256); border-radius: 6px; min-height: 40px; }
.mk-row.conf { border-color: #d08a10; }
.mk-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.mk-nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.mk-sub { font-size: 11px; opacity: 0.75; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mk-x { font-weight: 600; font-size: 12px; }
.mk-price { flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-end; font-size: 11px; line-height: 1.2; min-width: 86px; }
.mk-price b { font-size: 13px; color: #c88a00; }
.mk-unit { opacity: 0.7; }
.mk-buy { min-width: 56px; }
.mk-buy.short { opacity: 0.6; }
.mk-conf { display: inline-flex; gap: 3px; }
.mk-tag { font-size: 11px; padding: 2px 6px; border-radius: 10px; border: 1px solid var(--line, #3a4256); white-space: nowrap; }
.mk-pager { display: flex; justify-content: center; align-items: center; gap: 10px; margin-top: 6px; }
.mk-none { padding: 12px 0; text-align: center; }
.mk-sell { display: flex; gap: 10px; align-items: flex-start; }
.mk-picks { flex: 1 1 55%; min-width: 0; display: grid; gap: 3px; max-height: 50vh; overflow-y: auto; }
.mk-pick { display: flex; align-items: center; gap: 6px; padding: 3px 6px; border: 1px solid var(--line, #3a4256); border-radius: 6px; cursor: pointer; }
.mk-pick.on { border-color: #6b4bd8; box-shadow: inset 0 0 0 1px #6b4bd8; }
.mk-pick .mk-nm { flex: 1 1 auto; min-width: 0; }
.mk-side { flex: 1 1 45%; min-width: 0; }
.mk-form { display: grid; gap: 8px; padding: 8px; border: 1px solid var(--line, #3a4256); border-radius: 6px; }
.mk-fitem { display: flex; align-items: center; gap: 6px; }
.mk-fl { display: grid; gap: 3px; font-size: 12px; }
.mk-fl input { width: 100%; box-sizing: border-box; }
.mk-calc { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; font-size: 12px; }
.mk-calc b { text-align: right; }
.mk-got { color: #3aa35a; }
.mk-go { min-height: 36px; }
.mk-h4 { margin: 8px 0 4px; font-size: 13px; }
.mk-hist { max-height: 26vh; }
.mk-ok { color: #3aa35a; }
.mk-back { opacity: 0.8; }
.mk-lim { margin-top: 6px; }
@media (max-width: 700px) {
	.mk-sell { flex-direction: column; }
	.mk-picks, .mk-side { flex: 1 1 auto; width: 100%; }
	.mk-picks { max-height: 30vh; }
	.mk-row { flex-wrap: wrap; }
	.mk-main { flex-basis: calc(100% - 52px); }
	.mk-price { margin-left: auto; }
	.mk-buy, .mk-conf button, .mk-row > button { min-height: 36px; }
	.mk-filters select { max-width: none; flex: 1 1 40%; }
}
/* /floatpose (floatpose.js): a GM's floating pose of its class */
.fpose .tabs { margin: 6px 0; }
.fpose-row { display: flex; align-items: center; gap: 6px; margin: 6px 0; }
.fpose-row > span { width: 40px; }
.fpose-row > b { flex: 1; text-align: center; }
.fpose-row > button { min-width: 36px; }
/* /floatpose's sheet (0.8.344): every frame of every action, the 8 ways of the choice */
.fpose-chip { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 4px; vertical-align: -1px; }
.fpose-chip.w, .fpose-cell.w { --fp: #2f86ff; }
.fpose-chip.s, .fpose-cell.s { --fp: #ff8a1e; }
.fpose-chip { background: var(--fp); }
.fpose-slots button { font-size: 12px; }
.fpose-h { margin: 6px 0 2px; font-weight: bold; }
.fpose-dirs { display: flex; flex-wrap: wrap; gap: 4px; }
.fpose-dir { display: flex; flex-direction: column; align-items: center; cursor: pointer; border: 2px solid transparent; border-radius: 4px; background: rgba(128, 128, 128, 0.12); }
.fpose-dir.on { border-color: #2f86ff; }
.fpose-dir span { font-size: 11px; line-height: 12px; }
.fpose-line { display: flex; align-items: flex-start; gap: 6px; padding: 4px 0; border-top: 1px solid rgba(128, 128, 128, 0.25); }
.fpose-lab { width: 72px; flex: none; font-size: 12px; padding-top: 4px; }
.fpose-cells { display: flex; flex-wrap: wrap; gap: 3px; flex: 1; }
.fpose-cell { position: relative; cursor: pointer; border: 2px solid transparent; border-radius: 4px; background: rgba(128, 128, 128, 0.12); line-height: 0; }
.fpose-cell:hover { border-color: rgba(47, 134, 255, 0.45); }
.fpose-cell.w, .fpose-cell.s { border-color: var(--fp); }
.fpose-cell.w.s { border-color: #2f86ff; box-shadow: 0 0 0 2px #ff8a1e; }
.fpose-cell span { position: absolute; left: 3px; top: 3px; font-size: 10px; line-height: 10px; opacity: 0.7; }
.fpose canvas { image-rendering: pixelated; display: block; }
/* the aura window's side panel (client-debug/js/aura.js sidePanel, Noh 2026-11-05): the parts of the own aura (everyone
   sees it) and the Member levels' cards shown - beside the cards, staying in view while they scroll; on top on a phone */
:is(.win-aura, .win-trail) .au-layout { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 10px; align-items: start; }
:is(.win-aura, .win-trail) .au-side { position: sticky; top: 0; z-index: 3; display: flex; flex-direction: column; gap: 8px; }
:is(.win-aura, .win-trail) .au-side section { padding: 8px 10px; border: 1px solid rgba(120, 140, 180, 0.35); border-radius: 10px; background: rgba(255, 255, 255, 0.82); }
:is(.win-aura, .win-trail) .au-side h4 { margin: 0 0 2px; font-size: 13px; }
:is(.win-aura, .win-trail) .au-side h4 small { font-weight: 500; opacity: 0.7; }
:is(.win-aura, .win-trail) .au-side p { margin: 0 0 4px; }
:is(.win-aura, .win-trail) .au-row { display: flex; align-items: center; gap: 6px; padding: 3px 0; font-size: 12.5px; cursor: pointer; }
:is(.win-aura, .win-trail) .au-row input { width: 15px; height: 15px; margin: 0; accent-color: #3a8de0; cursor: pointer; flex: none; }
:is(.win-aura, .win-trail) .au-row > span:not(.au-tg) { flex: 1; min-width: 0; }
:is(.win-aura, .win-trail) .au-tg { display: inline-block; padding: 0 6px; border-radius: 6px; font: 800 10px/1.5 system-ui, sans-serif; color: #fff; background: #7a86a8; flex: none; }
:is(.win-aura, .win-trail) .au-tg.au-m3 { color: #1d2a12; background: #d6f0c8; } :is(.win-aura, .win-trail) .au-tg.au-m4 { color: #3a2400; background: #f2c33c; }
:is(.win-aura, .win-trail) .au-tg.au-m5 { background: #9a5cf0; } :is(.win-aura, .win-trail) .au-tg.au-m6 { background: #b44ae0; } :is(.win-aura, .win-trail) .au-tg.au-m7 { background: #5560e8; }
:is(.win-aura, .win-trail) .au-tg.au-m8 { background: #e0304a; } :is(.win-aura, .win-trail) .au-tg.au-m9 { color: #3a2400; background: #f0b020; }
:is(.win-aura, .win-trail) .au-tg.au-m10 { background: linear-gradient(110deg, #ff6aa8, #ffb340, #5ae0a0, #5ab0ff, #b070ff); text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5); }
:is(.win-aura, .win-trail) .au-tierrow .muted { margin-left: auto; }
:is(.win-aura, .win-trail) .au-all { margin-top: 4px; width: 100%; }
@media (max-width: 700px) { :is(.win-aura, .win-trail) .au-layout { grid-template-columns: minmax(0, 1fr); } :is(.win-aura, .win-trail) .au-side { position: static; flex-direction: row; flex-wrap: wrap; } :is(.win-aura, .win-trail) .au-side section { flex: 1 1 160px; } }
html.mhud :is(.win-aura, .win-trail) .au-layout { grid-template-columns: minmax(0, 1fr); }
html.mhud :is(.win-aura, .win-trail) .au-side { position: static; flex-direction: row; flex-wrap: wrap; }
html.mhud :is(.win-aura, .win-trail) .au-side section { flex: 1 1 160px; }
:is(.win-aura, .win-trail) .au-side .au-tiers { display: grid; grid-template-columns: 1fr 1fr; column-gap: 6px; }
:is(.win-aura, .win-trail) .au-side .au-tierrow { gap: 4px; }
:is(.win-aura, .win-trail) .au-side .au-tierrow .muted { font-size: 10.5px; }
/* (a phone's item window opened from the equipment window: take it off from here - ui.js equip act) */
.popup.iteminfo .ii-eqoff { display: flex; align-items: center; gap: 8px; margin: 8px 0 2px; }
.popup.iteminfo .ii-eqoff button { padding: 6px 14px; }

/* ---- แชร์รับรางวัล, the Facebook share (fbshare.js, Noh 2026-11-05): the button beside the Cash Shop in Facebook's blue with
   its "f" and a red dot (a campaign not shared yet / a reward waiting - its number), the window's cards ---- */
.gi .fb-f { fill: currentColor; stroke: none; }
.sb-ic.sb-fbshare { border-color: #0b4fb3; color: #fff; background: linear-gradient(#5c9dff, #1877f2 52%, #0f62d6); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), 0 2px 4px rgba(0, 0, 0, 0.4); }
.sb-ic.sb-fbshare svg.gi { width: 24px; height: 24px; filter: drop-shadow(0 1px 0 rgba(0, 0, 0, 0.3)); }
#map-btns .map-btn.map-share { position: relative; }
#map-btns .map-btn .sh-dot, .sh-dot { position: absolute; right: 9px; top: -2px; width: 12px; height: 12px; border-radius: 50%; box-sizing: border-box; background: #ff3b4e; border: 2px solid #fff;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.5); pointer-events: none; font: 800 10px/14px system-ui, sans-serif; color: #fff; text-align: center; }
#map-btns .map-btn .sh-dot.num { width: auto; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; right: 4px; top: -5px; }
#map-btns .map-btn .sh-dot.hidden { display: none; }
@media (max-width: 700px) { #map-btns .map-btn .sh-dot { right: 0; } }

.win-fbshare .win-body { padding: 8px; }
.win-fbshare .fs-wrap { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.win-fbshare .fs-head { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 12px; color: #fff; background: linear-gradient(110deg, #0f4fb8, #1877f2 60%, #4a9bff); }
.win-fbshare .fs-head > div { display: flex; flex-direction: column; min-width: 0; }
.win-fbshare .fs-head b { font-size: 16px; line-height: 1.2; }
.win-fbshare .fs-head small { font-size: 12px; opacity: 0.92; line-height: 1.3; }
.win-fbshare .fs-logo { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #fff; color: #1877f2; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3); }
.win-fbshare .fs-logo .gi { width: 28px; height: 28px; }
.win-fbshare .fs-how { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.win-fbshare .fs-how li { display: flex; gap: 6px; align-items: flex-start; padding: 6px 8px; border-radius: 9px; background: rgba(24, 119, 242, 0.08); border: 1px solid rgba(24, 119, 242, 0.25); font-size: 12px; line-height: 1.35; }
.win-fbshare .fs-how li b { flex: none; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: #1877f2; color: #fff; font-size: 12px; }
.win-fbshare .fs-how em { font-style: normal; font-weight: 700; }
.win-fbshare .fs-note { margin: 0; padding: 6px 10px; border-radius: 8px; font-size: 12px; line-height: 1.4; color: #8a5a00; background: rgba(255, 196, 60, 0.18); border: 1px solid rgba(214, 150, 20, 0.45); }
.win-fbshare .fs-said { margin: 0; padding: 7px 10px; border-radius: 8px; font-size: 13px; font-weight: 700; }
.win-fbshare .fs-said.ok { color: #0d6b35; background: rgba(63, 207, 127, 0.18); border: 1px solid rgba(45, 154, 92, 0.5); }
.win-fbshare .fs-said.bad { color: #b3261e; background: rgba(255, 90, 90, 0.14); border: 1px solid rgba(214, 60, 60, 0.45); }
.win-fbshare .fs-list { display: flex; flex-direction: column; gap: 8px; }
.win-fbshare .fs-card { display: grid; grid-template-columns: 168px minmax(0, 1fr); gap: 10px; padding: 8px; border-radius: 12px; border: 1px solid rgba(128, 128, 128, 0.32); background: rgba(128, 128, 128, 0.05); min-width: 0; }
.win-fbshare .fs-card.st-ok { border-color: #e0a800; background: linear-gradient(160deg, rgba(255, 214, 102, 0.26), rgba(255, 214, 102, 0.04)); box-shadow: 0 0 10px rgba(242, 184, 28, 0.25); }
.win-fbshare .fs-card.st-got { opacity: 0.8; }
.win-fbshare .fs-pic { position: relative; width: 168px; aspect-ratio: 1.91 / 1; border-radius: 9px; overflow: hidden; background: linear-gradient(135deg, #1877f2, #0b3d91); align-self: start; }
.win-fbshare .fs-pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.win-fbshare .fs-noimg { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255, 255, 255, 0.85); }
.win-fbshare .fs-noimg .gi { width: 40px; height: 40px; }
.win-fbshare .fs-st { position: absolute; left: 5px; bottom: 5px; max-width: calc(100% - 10px); padding: 1px 7px; border-radius: 8px; font: 700 11px/1.5 system-ui, sans-serif; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4); }
.win-fbshare .fs-st.st-none { color: #fff; background: #5b6478; }
.win-fbshare .fs-st.st-wait { color: #3a2400; background: #ffd36b; }
.win-fbshare .fs-st.st-ok { color: #3a2400; background: linear-gradient(#fff2b0, #f0b020); }
.win-fbshare .fs-st.st-got { color: #fff; background: #2d9a5c; }
.win-fbshare .fs-st.st-no { color: #fff; background: #d63c3c; }
.win-fbshare .fs-body { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.win-fbshare .fs-title { font-size: 14px; line-height: 1.3; overflow-wrap: anywhere; }
.win-fbshare .fs-rws { display: flex; flex-wrap: wrap; gap: 4px; }
.win-fbshare .fs-rw { display: inline-flex; align-items: center; gap: 4px; max-width: 100%; padding: 1px 7px 1px 3px; border-radius: 9px; font-size: 12px; line-height: 22px; border: 1px solid rgba(128, 128, 128, 0.32); background: rgba(128, 128, 128, 0.07); }
.win-fbshare .fs-rw b { font-weight: 800; }
.win-fbshare .fs-rw small { opacity: 0.75; font-size: 11px; }
.win-fbshare .fs-rw .fs-gi { width: 18px; height: 18px; }
.win-fbshare .fs-rw .ic { margin: 0; }
.win-fbshare .fs-pts { border-color: rgba(45, 154, 92, 0.55); }
.win-fbshare .fs-pts b { color: #1d9a5b; }
.win-fbshare .fs-cash { border-color: rgba(214, 150, 20, 0.6); }
.win-fbshare .fs-cash b { color: #c27c00; }
.win-fbshare .fs-it { cursor: pointer; }
.win-fbshare .fs-in { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 150px; }
.win-fbshare .fs-steps-row { display: flex; flex-direction: column; gap: 5px; margin-top: 2px; }
.win-fbshare .fs-share { display: inline-flex; align-items: center; justify-content: center; gap: 4px; align-self: flex-start; min-height: 30px; padding: 0 14px; border-radius: 8px !important; font-weight: 700;
	color: #fff !important; background: linear-gradient(#3b8cff, #1877f2) !important; border: 1px solid #0b4fb3 !important; }
.win-fbshare .fs-share .fs-gi { width: 16px; height: 16px; }
.win-fbshare a.fs-share { box-sizing: border-box; text-decoration: none; cursor: pointer; font-size: 13px; line-height: 1; } /* (a link to Facebook's share page: a new tab) */
.win-fbshare a.fs-share:hover { filter: brightness(1.08); }
.win-fbshare .fs-sub { display: flex; gap: 5px; min-width: 0; }
.win-fbshare .fs-sub input { flex: 1; min-width: 0; min-height: 30px; box-sizing: border-box; }
.win-fbshare .fs-send { flex: none; min-height: 30px; font-weight: 700; white-space: nowrap; }
.win-fbshare .fs-claim { align-self: flex-start; min-height: 34px; padding: 0 18px; border-radius: 9px !important; font-weight: 800; font-size: 14px;
	color: #3a2400 !important; background: linear-gradient(#fff2b0, #f0b020 60%, #d99a00) !important; border: 1px solid #a87400 !important; box-shadow: 0 0 10px rgba(242, 184, 28, 0.45); }
.win-fbshare .fs-small { margin: 0; font-size: 12px; opacity: 0.8; }
.win-fbshare .fs-post { overflow-wrap: anywhere; word-break: break-all; opacity: 0.65; }
.win-fbshare .fs-why { margin: 0; font-size: 12.5px; font-weight: 700; color: #d63c3c; }
.win-fbshare .fs-done { color: #1d9a5b; opacity: 1; font-weight: 700; }
.win-fbshare .fs-empty { margin: 8px 0; text-align: center; opacity: 0.75; }
/* (the RO theme: its white window, its 12 px; the inputs a little taller here to paste into) */
.theme-ro .win-fbshare .win-body { background: #fff; }
.theme-ro .win-fbshare .fs-sub input:not([type=checkbox]) { height: 26px; }
.theme-ro .win-fbshare .fs-share, .theme-ro .win-fbshare .fs-send { min-height: 26px; height: 26px; }
/* a phone: the picture over the text, the steps one under the other, bigger boxes to tap */
@media (max-width: 560px) {
	.win-fbshare .fs-card { grid-template-columns: minmax(0, 1fr); }
	.win-fbshare .fs-pic { width: 100%; }
	.win-fbshare .fs-pic.noimg { aspect-ratio: 4 / 1; }
	.win-fbshare .fs-how { grid-template-columns: minmax(0, 1fr); }
}
/* (the phone screen's own: client/css/mobile.css) */
/* ---- ชวนเพื่อน, inviting friends (refer.js / register.js, Noh 2026-11-05 "ระบบชวนเพื่อน"): the button beside the minimap
   (the friends' picture with a gift, the rewards waiting in red), the window - the tabs, the code and the link, the
   milestones' table, the friends with their steps (a gold รับ on each reward waiting), one's own rewards as cards, the
   pop-up of what came; the invite on the login / sign-up windows. Colours from the variables below (the dark look;
   theme-ro / pastel set theirs) ---- */
#map-btns .map-btn.map-refer { position: relative; }
.map-refer .rf-gift, .mh-grid [data-w="!refer"] .rf-gift { position: absolute; z-index: 1; left: 34px; top: 22px; font-size: 15px; font-style: normal; line-height: 1; pointer-events: none;
	filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.55)); animation: rf-bob 2.4s ease-in-out infinite; }
#map-btns .map-btn .rf-n { position: absolute; right: 2px; top: -5px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; box-sizing: border-box; pointer-events: none;
	font: 800 11px/16px system-ui, sans-serif; color: #fff; text-align: center; background: #e5484d; border: 1px solid rgba(0, 0, 0, 0.45); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.45); }
@keyframes rf-bob { 0%, 100% { transform: translateY(0) rotate(-6deg); } 50% { transform: translateY(-3px) rotate(6deg); } }
html.gfx-low .map-refer .rf-gift { animation: none; }
@media (prefers-reduced-motion: reduce) { .map-refer .rf-gift, button.rf-st.ready, .rf-mc.ready .rf-take, .rf-rays { animation: none !important; } }
.win-refer { --rf-card: rgba(255, 255, 255, 0.05); --rf-card-2: rgba(255, 255, 255, 0.025); --rf-ink: var(--text); --rf-muted: var(--muted); --rf-line: var(--line);
	--rf-gold: #f2c24a; --rf-gold-ink: #ffd36a; --rf-gold-bg: rgba(242, 194, 74, 0.16); --rf-ok: #3fbf6b; --rf-hot: #ff8a5c; --rf-red: #e5484d;
	--rf-hero: linear-gradient(120deg, rgba(255, 128, 92, 0.20), rgba(242, 194, 74, 0.16) 50%, rgba(92, 160, 255, 0.14)); --rf-pop: rgba(10, 12, 16, 0.55); --rf-pop-card: #1d242e;
	--rf-input: rgba(0, 0, 0, 0.25); }
.win-refer .win-body { padding: 8px 10px 10px; }
.rf-wrap { position: relative; display: flex; flex-direction: column; gap: 8px; min-height: 140px; color: var(--rf-ink); }
.rf-wait { padding: 20px 0; text-align: center; }
.rf-tab { display: flex; flex-direction: column; gap: 9px; min-width: 0; }
.rf-tabs { display: flex; gap: 4px; }
.win-refer .rf-tabs button { position: relative; flex: 1 1 0; min-width: 0; min-height: 32px; padding: 2px 8px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.win-refer .rf-tabs button small { font-weight: 400; opacity: 0.8; }
.win-refer .rf-tabs button.on { background: linear-gradient(#ffdc7a, #e9a92c) !important; color: #3a2400 !important; border-color: #b77a12 !important; }
.rf-tn { display: inline-block; min-width: 17px; height: 17px; margin-left: 4px; padding: 0 5px; box-sizing: border-box; border-radius: 9px; background: var(--rf-red); color: #fff;
	font: 800 10.5px/17px system-ui, sans-serif; font-style: normal; vertical-align: 1px; }
/* the invite tab */
.rf-hero { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border: 1px solid var(--rf-line); border-radius: 10px; background: var(--rf-hero); }
.rf-ht { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.rf-ht b { font-size: 16px; line-height: 1.3; color: var(--rf-gold-ink); }
.rf-ht small { font-size: 12px; line-height: 1.45; color: var(--rf-muted); }
.rf-codebox { flex: none; display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 6px 12px 7px; border: 2px dashed var(--rf-gold); border-radius: 10px; background: var(--rf-gold-bg); }
.rf-codebox small { font-size: 10.5px; color: var(--rf-muted); white-space: nowrap; }
.rf-code { font: 800 22px/1.1 ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; letter-spacing: 3px; color: var(--rf-gold-ink); user-select: all; }
.rf-linkrow { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.win-refer .rf-input { flex: 1 1 210px; min-width: 0; height: 32px; box-sizing: border-box; padding: 0 9px; border-radius: 7px; border: 1px solid var(--rf-line); background: var(--rf-input); color: var(--rf-ink);
	font: 13px ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; }
.win-refer .rf-linkrow button { min-height: 32px; white-space: nowrap; }
.win-refer .rf-linkrow .rf-share { font-weight: 700; color: #4a3000 !important; border: 1px solid #c98a0e !important; background: linear-gradient(#ffe48a, #f2b631) !important; }
.rf-more { display: inline-flex; gap: 4px; }
.win-refer .rf-more .rf-fb { color: #fff !important; border-color: #0e5fd0 !important; background: #1877f2 !important; }
.win-refer .rf-more .rf-line { color: #fff !important; border-color: #04a546 !important; background: #06c755 !important; }
.rf-stat { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12px; color: var(--rf-muted); }
.rf-stat b { color: var(--rf-ink); }
.rf-stat .rf-hot { color: var(--rf-hot); font-weight: 700; }
.rf-stat .rf-hot b { color: var(--rf-hot); }
.rf-tblw { min-width: 0; overflow-x: auto; border: 1px solid var(--rf-line); border-radius: 9px; background: var(--rf-card-2); }
.rf-ms { width: 100%; border-collapse: collapse; font-size: 12px; }
.rf-ms th { padding: 5px 8px; text-align: left; font-size: 11px; font-weight: 700; color: var(--rf-muted); border-bottom: 1px solid var(--rf-line); white-space: nowrap; }
.rf-ms td { padding: 7px 8px; border-bottom: 1px solid var(--rf-line); vertical-align: middle; }
.rf-ms tr:last-child td { border-bottom: 0; }
.rf-mn { display: grid; grid-template-columns: auto 1fr; column-gap: 7px; align-items: center; min-width: 138px; }
.rf-no { grid-row: span 2; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: linear-gradient(#ffe48a, #e9a92c); color: #3a2400; font: 800 12px/1 system-ui, sans-serif; }
.rf-mn b { font-size: 13px; line-height: 1.25; }
.rf-mn small { font-size: 10.5px; line-height: 1.3; color: var(--rf-muted); }
.rf-rw { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.rf-pt { display: inline-flex; align-items: center; gap: 3px; padding: 2px 7px 2px 2px; border-radius: 12px; background: var(--rf-gold-bg); white-space: nowrap; line-height: 1; }
.rf-pt b { font-size: 13px; color: var(--rf-gold-ink); }
.rf-pt small { font-size: 10px; color: var(--rf-muted); }
.rf-coin { display: inline-grid; place-items: center; flex: none; width: 17px; height: 17px; border-radius: 50%; font: bold 9.5px/1 system-ui, sans-serif; font-style: normal;
	background: radial-gradient(circle at 35% 30%, #fff3b0, #f2c24a 45%, #b9800c); color: #7a4f00; box-shadow: 0 0 0 1px rgba(122, 79, 0, 0.35); }
.rf-coin.p { background: radial-gradient(circle at 35% 30%, #ffe0f2, #ff7ab8 45%, #b8306f); color: #fff; box-shadow: 0 0 0 1px rgba(120, 20, 70, 0.35); }
.rf-it { position: relative; display: inline-flex; cursor: pointer; }
.rf-it .ic { width: 30px; height: 30px; margin: 0; border-radius: 6px; background: rgba(255, 255, 255, 0.85); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12); }
.rf-it .ic img { width: 28px; height: 28px; image-rendering: auto; }
.rf-it .rf-a { position: absolute; right: -5px; bottom: -4px; padding: 0 3px; border-radius: 6px; background: #2b3445; color: #fff; font: bold 10px/13px system-ui, sans-serif; pointer-events: none; }
.rf-it.lg .ic { width: 44px; height: 44px; }
.rf-it.lg .ic img { width: 42px; height: 42px; }
.rf-it.lg .rf-a { font-size: 12px; line-height: 15px; }
.rf-rules { margin: 0; padding: 7px 10px 7px 26px; border-radius: 9px; background: var(--rf-card-2); border: 1px solid var(--rf-line); font-size: 11.5px; line-height: 1.55; color: var(--rf-muted); }
.rf-rules b { color: var(--rf-ink); }
/* the friends' tab */
.rf-frs { display: flex; flex-direction: column; gap: 6px; }
.rf-fr { display: flex; flex-direction: column; gap: 6px; padding: 8px 10px; border: 1px solid var(--rf-line); border-radius: 9px; background: var(--rf-card); }
.rf-fr.has { border-color: var(--rf-gold); box-shadow: 0 0 0 1px var(--rf-gold-bg), 0 0 10px rgba(242, 194, 74, 0.18); }
.rf-fr.flag { background: var(--rf-card-2); }
.rf-fwho { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }
.rf-fn { font-size: 14px; }
.rf-fwho small { font-size: 11.5px; color: var(--rf-muted); }
.rf-fwho .rf-fat { margin-left: auto; }
.rf-flag { margin: 0; font-size: 11.5px; line-height: 1.4; color: var(--rf-hot); }
.rf-steps { display: flex; flex-wrap: wrap; gap: 5px; }
.rf-st { display: inline-flex; align-items: center; gap: 4px; padding: 1px 9px; border-radius: 13px; border: 1px dashed var(--rf-line); color: var(--rf-muted); font-size: 11.5px; line-height: 20px; white-space: nowrap; }
.rf-st.got { border: 1px solid var(--rf-ok); color: var(--rf-ok); background: rgba(63, 191, 107, 0.10); }
.rf-st.done { border-style: solid; color: var(--rf-ink); }
.win-refer button.rf-st.ready { min-height: 26px; height: auto; padding: 1px 4px 1px 9px; border: 1px solid #c98a0e !important; border-radius: 13px !important; background: linear-gradient(#ffe48a, #f2b631) !important;
	color: #4a3000 !important; font-weight: 700; cursor: pointer; box-shadow: 0 1px 0 #b97c09; animation: rf-pulse 1.6s ease-in-out infinite; }
.win-refer button.rf-st.ready b { padding: 0 7px; border-radius: 10px; background: #fff8de; color: #a05a00; line-height: 18px; }
.win-refer button.rf-st.ready:disabled { animation: none; opacity: 0.6; }
@keyframes rf-pulse { 0%, 100% { box-shadow: 0 1px 0 #b97c09, 0 0 0 0 rgba(242, 182, 49, 0.55); } 50% { box-shadow: 0 1px 0 #b97c09, 0 0 0 4px rgba(242, 182, 49, 0); } }
.rf-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 26px 12px; text-align: center; }
.rf-empty b { font-size: 14px; }
.rf-empty small { font-size: 12px; color: var(--rf-muted); }
/* one's own rewards (invited) */
.rf-by { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--rf-line); border-radius: 10px; background: var(--rf-hero); }
.rf-byic { flex: none; font-size: 30px; line-height: 1; }
.rf-by b { display: block; font-size: 15px; line-height: 1.3; color: var(--rf-gold-ink); }
.rf-by small { display: block; font-size: 12px; line-height: 1.45; color: var(--rf-muted); }
.rf-mcs { display: flex; flex-direction: column; gap: 6px; }
.rf-mc { display: grid; grid-template-columns: minmax(120px, 1fr) auto minmax(96px, auto); align-items: center; gap: 6px 10px; padding: 8px 10px; border: 1px solid var(--rf-line); border-radius: 9px; background: var(--rf-card); }
.rf-mct b { display: block; font-size: 14px; line-height: 1.3; }
.rf-mct small { display: block; font-size: 11px; line-height: 1.35; color: var(--rf-muted); }
.rf-mcb { text-align: right; }
.rf-mc.ready { border: 2px solid var(--rf-gold); padding: 7px 9px; background: linear-gradient(160deg, var(--rf-gold-bg), var(--rf-card) 70%); }
.rf-mc.got { background: var(--rf-card-2); }
.rf-mc.got .rf-mcr { opacity: 0.45; filter: grayscale(0.7); }
.rf-stamp { color: var(--rf-ok); font-weight: 700; font-size: 12.5px; white-space: nowrap; }
.win-refer .rf-take, .win-refer .win-foot .rf-all { font-weight: 700; color: #4a3000 !important; border: 1px solid #c98a0e !important; background: linear-gradient(#ffe48a, #f2b631) !important; box-shadow: 0 2px 0 #b97c09; white-space: nowrap; }
.win-refer .rf-take { min-height: 32px; border-radius: 16px !important; padding: 0 14px; animation: rf-pulse 1.6s ease-in-out infinite; }
.win-refer .win-foot .rf-all { min-height: 32px; border-radius: 16px !important; padding: 0 16px; }
/* the pop-up of a claim: over the window, a tap closes it */
.rf-pop { position: absolute; inset: -8px -10px; z-index: 5; display: grid; place-items: center; background: var(--rf-pop); cursor: pointer; animation: at-fade 0.25s ease both; }
.rf-pop-card { position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px; min-width: 230px; max-width: calc(100% - 32px); padding: 16px 22px 14px; overflow: hidden;
	border: 2px solid var(--rf-gold); border-radius: 14px; background: var(--rf-pop-card); color: var(--rf-ink); box-shadow: 0 0 24px rgba(242, 194, 74, 0.55); animation: at-popin 0.5s cubic-bezier(0.2, 0.8, 0.3, 1.25) both; }
.rf-rays { position: absolute; left: 50%; top: 50%; width: 380px; height: 380px; margin: -190px 0 0 -190px; pointer-events: none; opacity: 0.2;
	background: repeating-conic-gradient(var(--rf-gold) 0 10deg, transparent 10deg 30deg); animation: at-spin 9s linear infinite; }
.rf-pop-card > :not(.rf-rays) { position: relative; }
.rf-pop-t { font-size: 17px; font-weight: 800; color: var(--rf-gold-ink); text-align: center; }
.rf-pop-its { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.rf-pop-its .rf-rw { justify-content: center; gap: 10px; }
.rf-pop-s { font-size: 12px; color: var(--rf-muted); }
/* a phone / a narrow window */
html.mhud .win-refer .rf-tabs button { min-height: 40px; font-size: 12.5px; padding: 2px 4px; }
html.mhud .rf-hero { flex-direction: column; align-items: stretch; text-align: center; }
html.mhud .rf-codebox { align-self: center; }
html.mhud .rf-linkrow .rf-input { flex-basis: 100%; }
html.mhud .rf-linkrow button { flex: 1 1 0; min-height: 40px; }
html.mhud .rf-ms thead { display: none; }
html.mhud .rf-ms, html.mhud .rf-ms tbody, html.mhud .rf-ms tr, html.mhud .rf-ms td { display: block; }
html.mhud .rf-ms tr { padding: 7px 8px; border-bottom: 1px solid var(--rf-line); }
html.mhud .rf-ms tr:last-child { border-bottom: 0; }
html.mhud .rf-ms td { padding: 3px 0 0; border: 0; }
html.mhud .rf-ms td[data-l]::before { content: attr(data-l); display: inline-block; min-width: 56px; margin-right: 6px; font-size: 11px; color: var(--rf-muted); }
html.mhud .rf-mc { grid-template-columns: 1fr auto; }
html.mhud .rf-mcr { grid-column: 1 / -1; grid-row: 2; }
html.mhud .rf-mcb { grid-column: 2; grid-row: 1; }
html.mhud .win-refer .rf-take { min-height: 38px; }
/* the invite on the login screen (register.js) */
#screen-login .login-ref, html.ro-skin #screen-login .login-ref { display: block; box-sizing: border-box; width: auto; height: auto !important; min-height: 0 !important; margin: 8px 10px 10px;
	padding: 8px 12px !important; border: 1px solid #c98a0e !important; border-radius: 9px !important; background: linear-gradient(#fff2b8, #f6c443) !important; color: #4a3000 !important;
	font: 600 13.5px/1.4 var(--font, sans-serif) !important; white-space: normal !important; text-align: center; cursor: pointer; box-shadow: 0 2px 0 #b97c09, 0 3px 10px rgba(0, 0, 0, 0.2) !important;
	text-shadow: none !important; }
.login-ref b { color: #a04b00; }
.reg-ref { margin: 4px 0 2px; padding: 7px 10px; border: 1px dashed #c98a0e; border-radius: 8px; background: rgba(255, 214, 90, 0.16); font-size: 13px; line-height: 1.4; }
.reg-ref b { letter-spacing: 1px; }
html.mhud .win-refer .rf-tabs button { white-space: normal; line-height: 1.2; text-overflow: clip; }
/* ---- แชร์โปรไฟล์, a character's public page (profile.js, src/map/profile.js /p/<name>; Noh 2026-11-05): the window - the
   page's card, the switch "แสดงโปรไฟล์บนเว็บ", the link and its buttons (Facebook's blue, LINE's green); the status window's
   button, another player's "ดูโปรไฟล์"; the phone menu's tile only once the server said it has the page (<html class="pf-sys">).
   Colours from the variables below (the dark look; theme-ro / pastel set theirs) ---- */
html:not(.pf-sys) .mh-grid :is([data-w="!profile"], [data-w="!rankweb"]) { display: none !important; }
.win-profile { --pf-card: rgba(255, 255, 255, 0.05); --pf-ink: var(--text); --pf-muted: var(--muted); --pf-line: var(--line); --pf-gold: #f2c24a; --pf-gold-ink: #ffd36a;
	--pf-hero: linear-gradient(120deg, rgba(255, 128, 92, 0.20), rgba(242, 194, 74, 0.16) 50%, rgba(92, 160, 255, 0.14)); --pf-input: rgba(0, 0, 0, 0.25); --pf-warn: #ff8a5c; }
.win-profile .win-body { padding: 8px 10px 10px; }
.pfw { display: flex; flex-direction: column; gap: 9px; color: var(--pf-ink); }
.pfw-wait { padding: 20px 0; text-align: center; }
.pfw-hero { display: flex; align-items: center; gap: 11px; padding: 10px 12px; border: 1px solid var(--pf-line); border-radius: 10px; background: var(--pf-hero); }
.pfw-ic { flex: none; font-size: 30px; line-height: 1; }
.pfw-ht { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.pfw-ht b { font-size: 15px; line-height: 1.3; color: var(--pf-gold-ink); overflow-wrap: anywhere; }
.pfw-ht small { font-size: 12px; line-height: 1.45; color: var(--pf-muted); }
.pfw-tg { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border: 1px solid var(--pf-line); border-radius: 9px; background: var(--pf-card); cursor: pointer; font-size: 13px; font-weight: 700; }
.pfw-tg input { width: 18px; height: 18px; margin: 0; accent-color: #e9a92c; cursor: pointer; }
.pfw-tg span { flex: 1; }
.pfw-tg em { font-style: normal; font-weight: 400; font-size: 12px; color: var(--pf-muted); }
.pfw-tg.off { cursor: default; opacity: 0.75; }
.pfw-note { margin: -3px 0 0; font-size: 12px; line-height: 1.45; color: var(--pf-warn); }
/* the picture when shared (render3d/profilecard.js, Noh 2026-11-06): its preview, 1200 x 630 shown small */
.pfw-card { display: flex; flex-direction: column; gap: 5px; }
.pfw-card-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; font-size: 13px; }
.pfw-card-h small { font-size: 12px; color: var(--pf-muted); }
.pfw-card-img { position: relative; width: 100%; aspect-ratio: 1200 / 630; border-radius: 9px; overflow: hidden; border: 1px solid var(--pf-line); background: var(--pf-card) url('../../img/gieno-bg.jpg') 50% 50% / cover no-repeat; }
.pfw-card-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pfw-card-img.busy::after { content: ''; position: absolute; left: 50%; top: 50%; width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, 0.35); border-top-color: #ffd36a; animation: pfw-spin 0.9s linear infinite; }
.pfw-card-none { position: absolute; inset: 0; background: rgba(20, 10, 30, 0.35); }
@keyframes pfw-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .pfw-card-img.busy::after { animation: none; } }
.pfw-linkrow { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.win-profile .pfw-input { flex: 1 1 220px; min-width: 0; height: 32px; box-sizing: border-box; padding: 0 9px; border-radius: 7px; border: 1px solid var(--pf-line); background: var(--pf-input); color: var(--pf-ink);
	font: 13px ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; }
.pfw-share { display: flex; flex-wrap: wrap; gap: 6px; }
.win-profile .pfw-linkrow button, .win-profile .pfw-share button { min-height: 32px; white-space: nowrap; }
.win-profile .pfw-share .pfw-native { font-weight: 700; color: #4a3000 !important; border: 1px solid #c98a0e !important; background: linear-gradient(#ffe48a, #f2b631) !important; }
.win-profile .pfw-share .pfw-fb { color: #fff !important; border-color: #0e5fd0 !important; background: #1877f2 !important; }
.win-profile .pfw-share .pfw-line { color: #fff !important; border-color: #04a546 !important; background: #06c755 !important; }
.win-profile .pfw-share button:disabled { opacity: 0.45; filter: grayscale(0.6); }
.win-profile .pfw-share .pfw-open { margin-left: auto; }
.win-viewstatus .vs-prof { margin-left: auto; padding: 1px 9px; border-radius: 11px; border: 1px solid #c98a0e; background: linear-gradient(#ffe48a, #f2b631); color: #4a3000; font-size: 11.5px; font-weight: 700;
	line-height: 18px; text-decoration: none; white-space: nowrap; }
.win-viewstatus .vs-prof:hover { filter: brightness(1.06); }
html.mhud .win-profile .pfw-input { flex-basis: 100%; height: 38px; font-size: 14px; }
html.mhud .win-profile .pfw-linkrow button, html.mhud .win-profile .pfw-share button { flex: 1 1 40%; min-height: 40px; }
html.mhud .win-profile .pfw-share .pfw-open { margin-left: 0; flex-basis: 100%; }

/* แจ้งปัญหา (Noh 2026-11-16 20:17): the side tile's round icon - a soft red, a speech bubble with "!" (roicons.js report) */
.sb-ic.sb-report { border-color: #8f2a22; color: #fff; background: linear-gradient(#ffc9c0, #e8604e 52%, #a8301f); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), 0 2px 4px rgba(0, 0, 0, 0.4); --gi-fill: rgba(255, 235, 230, 0.6); }

/* @element: the element window (Noh 2026-11-17 12:35 "เมนูขึ้นมาให้เลือกธาตุแบบสวยๆ" - member.js ELE_MENU) */
.win-element .win-body { font-size: 13px; padding: 10px 12px 12px; }
.win-element .el-badge { --c: #888; display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%;
	background: radial-gradient(circle at 35% 30%, #fff 0%, color-mix(in srgb, var(--c) 55%, #fff) 22%, var(--c) 58%, color-mix(in srgb, var(--c) 60%, #000) 100%);
	box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.7), 0 2px 8px color-mix(in srgb, var(--c) 60%, transparent), inset 0 -3px 6px rgba(0, 0, 0, 0.25); }
.win-element .el-badge svg { width: 62%; height: 62%; fill: none; stroke: var(--ink, #fff); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.45)); }
.win-element .el-badge.big { width: 56px; height: 56px; }
.win-element .el-badge.off { background: linear-gradient(#9aa3ad, #5c646e); }
.win-element .el-now { --c: #6b7280; display: flex; align-items: center; gap: 12px; padding: 10px 12px; margin-bottom: 10px; border-radius: 12px; color: #fff;
	background: linear-gradient(120deg, color-mix(in srgb, var(--c) 85%, #000) 0%, color-mix(in srgb, var(--c) 55%, #10131a) 100%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25); }
.win-element .el-now-t { font-size: 17px; font-weight: 800; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5); }
.win-element .el-now-s { font-size: 12px; opacity: 0.9; }
.win-element .el-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 7px; }
.win-element .el-card { --c: #888; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 3px 7px; height: auto !important; min-height: 0; border-radius: 10px;
	border: 1px solid color-mix(in srgb, var(--c) 45%, transparent) !important; background: linear-gradient(#fff, color-mix(in srgb, var(--c) 10%, #fff)) !important; color: #2b2f36 !important; cursor: pointer; transition: transform 0.12s, box-shadow 0.12s; }
.win-element .el-card b { font-size: 13px; line-height: 1.2; color: color-mix(in srgb, var(--c) 70%, #000); }
.win-element .el-card small { font-size: 10px; line-height: 1.25; color: #6b7280; text-align: center; min-height: 2.5em; overflow-wrap: anywhere; white-space: normal; }
.win-element .el-card:hover { transform: translateY(-2px); box-shadow: 0 4px 12px color-mix(in srgb, var(--c) 40%, transparent); }
.win-element .el-card.on { background: linear-gradient(color-mix(in srgb, var(--c) 30%, #fff), color-mix(in srgb, var(--c) 12%, #fff)) !important; box-shadow: 0 0 0 2px var(--c), 0 0 14px color-mix(in srgb, var(--c) 55%, transparent); }
.win-element .el-card.on .el-badge { animation: el-pulse 1.6s ease-in-out infinite; }
@keyframes el-pulse { 50% { box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.9), 0 0 16px var(--c), inset 0 -3px 6px rgba(0, 0, 0, 0.25); } }
@media (prefers-reduced-motion: reduce) { .win-element .el-card.on .el-badge { animation: none; } .win-element .el-card { transition: none; } }
.win-element .el-off { display: block; width: 100%; margin-top: 9px; height: auto !important; padding: 7px; border-radius: 8px; font-weight: 700; }
.win-element .el-off.on { box-shadow: inset 0 0 0 2px #6b7280; }
@media (max-width: 520px) { .win-element .el-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 5px; } .win-element .el-badge { width: 34px; height: 34px; } .win-element .el-card small { display: none; } }

/* ---- Spin, the prize board (spin.js, Noh 2026-11-18 "ทำสวยๆเลยนะ มีรางวัลใหญ่ด้วย"): a night-blue hall, the jackpot's gold
   bar with a slow shine over a grid of prizes, a gold light running over them; its button: a gold wheel ---- */
.sb-ic.sb-spin { border-color: #8a5a00; color: #4a2c00; background: linear-gradient(#ffe9a3, #f6b93b 52%, #d98f14); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 2px 4px rgba(0, 0, 0, 0.4); }
.sb-ic.sb-spin svg.gi { width: 24px; height: 24px; }
.sb-ic.sb-spin svg.gi .f { fill: rgba(255, 255, 255, 0.45); }
.win-spin .win-body { padding: 0; }
.win-spin .sp-wrap { --sp-gold: #ffd166; --sp-gold-2: #f6a821; --sp-ink: #0c1230; --sp-line: #2c3a7c; --sp-text: #e9edff; --sp-dim: #9aa8e0;
	display: flex; flex-direction: column; gap: 10px; padding: 14px 14px 12px; color: var(--sp-text);
	background: radial-gradient(120% 80% at 50% 0%, #1b2a6b 0%, #0f1640 46%, #080b22 100%); min-width: 0; }
.win-spin .sp-off { text-align: center; padding: 40px 10px; color: var(--sp-dim); }
.win-spin .sp-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.win-spin .sp-pts { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.win-spin .sp-pts small { color: var(--sp-dim); font-size: 12px; }
.win-spin .sp-pts b { font-size: 26px; line-height: 1; color: var(--sp-gold); text-shadow: 0 0 14px rgba(255, 209, 102, 0.45); font-variant-numeric: tabular-nums; }
.win-spin .sp-pts span { font-size: 12px; color: var(--sp-text); background: rgba(255, 255, 255, 0.09); border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 999px; padding: 2px 10px; }
.win-spin .sp-mute { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--sp-line); background: rgba(8, 11, 34, 0.7); color: var(--sp-text); font-size: 15px; cursor: pointer; flex: none; }
.win-spin .sp-pity { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; align-items: center; font-size: 12px; color: var(--sp-dim); }
.win-spin .sp-pity b { color: var(--sp-gold); }
.win-spin .sp-pity small { font-variant-numeric: tabular-nums; }
.win-spin .sp-bar { grid-column: 1 / -1; grid-row: 2; height: 6px; border-radius: 999px; background: rgba(255, 255, 255, 0.1); overflow: hidden; }
.win-spin .sp-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #7b8cff, var(--sp-gold)); }
.win-spin .sp-cell { position: relative; display: flex; align-items: center; gap: 8px; min-width: 0; padding: 8px 10px; border-radius: 12px; border: 1.5px solid var(--sp-line);
	background: linear-gradient(160deg, rgba(40, 54, 128, 0.55), rgba(14, 20, 58, 0.75)); transition: border-color 0.08s, box-shadow 0.08s, background 0.08s, transform 0.12s; overflow: hidden; }
.win-spin .sp-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; }
.win-spin .sp-nm { font-size: 12px; font-weight: 600; line-height: 1.2; color: #d5dcff; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; min-width: 0; }
.win-spin .sp-ic { flex: none; width: 28px; height: 28px; display: grid; place-items: center; cursor: default; }
.win-spin .sp-ic[data-a] { cursor: pointer; }
.win-spin .sp-ic.big { width: 40px; height: 40px; }
.win-spin .sp-ic img { max-width: 100%; max-height: 100%; image-rendering: pixelated; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.6)); }
.win-spin .sp-coin { border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff3c4, var(--sp-gold) 45%, #b9770a); color: #5a3600; box-shadow: inset 0 -2px 3px rgba(0, 0, 0, 0.25), 0 1px 3px rgba(0, 0, 0, 0.5); }
.win-spin .sp-coin.paid { background: radial-gradient(circle at 35% 30%, #e6fbff, #5fd4f4 45%, #1479b8); color: #053a5c; }
.win-spin .sp-coin { font: 800 15px/1 Arial, sans-serif; text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5); }
.win-spin .sp-coin.big { font-size: 22px; }
.win-spin .sp-cell.sp-jackpot { justify-content: center; gap: 12px; padding: 12px 14px; border-radius: 16px; border-color: #c98a12;
	background: linear-gradient(100deg, #4a2a05 0%, #8a5a0c 28%, #d9a02a 50%, #8a5a0c 72%, #4a2a05 100%); box-shadow: 0 0 22px rgba(246, 168, 33, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.25); }
.win-spin .sp-jackpot .sp-nm { font-size: 17px; font-weight: 800; letter-spacing: 0.3px; color: #fff6d8; text-shadow: 0 1px 0 rgba(0, 0, 0, 0.5), 0 0 12px rgba(255, 220, 130, 0.6); -webkit-line-clamp: 1; }
.win-spin .sp-tag { position: absolute; top: 0; left: 14px; font-style: normal; font-size: 10px; font-weight: 700; color: #3a2200; background: var(--sp-gold); padding: 1px 8px; border-radius: 0 0 7px 7px; }
.win-spin .sp-shine { position: absolute; inset: 0; background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.45) 50%, transparent 60%); transform: translateX(-120%); animation: sp-shine 3.6s ease-in-out infinite; pointer-events: none; }
@keyframes sp-shine { 0%, 55% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }
.win-spin .sp-cell.lit { border-color: #fff3c4; background: linear-gradient(160deg, rgba(255, 221, 130, 0.78), rgba(246, 168, 33, 0.5)); box-shadow: 0 0 16px rgba(255, 209, 102, 0.75), inset 0 0 10px rgba(255, 209, 102, 0.35); }
.win-spin .sp-cell.lit .sp-nm { color: #2b1800; }
.win-spin .sp-cell.sp-jackpot.lit { border-color: #fff3c4; box-shadow: 0 0 30px rgba(255, 220, 130, 0.95), inset 0 0 18px rgba(255, 255, 255, 0.4); filter: brightness(1.25); }
.win-spin .sp-cell.landed { border-color: #ff9ac4; background: linear-gradient(160deg, rgba(255, 154, 196, 0.42), rgba(154, 91, 216, 0.25)); box-shadow: 0 0 24px rgba(255, 154, 196, 0.85), inset 0 0 14px rgba(255, 154, 196, 0.4); animation: sp-land 0.55s ease 3; z-index: 1; }
.win-spin .sp-cell.sp-jackpot.landed { border-color: #fff; background: linear-gradient(100deg, #b9770a, #ffd166 30%, #fff6d8 50%, #ffd166 70%, #b9770a); box-shadow: 0 0 40px rgba(255, 220, 130, 1); }
.win-spin .sp-cell.sp-jackpot.landed .sp-nm { color: #3a2200; text-shadow: none; }
@keyframes sp-land { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }
.win-spin .sp-said { margin: 0; padding: 8px 12px; border-radius: 10px; font-size: 13px; text-align: center; }
.win-spin .sp-said.ok { background: rgba(255, 209, 102, 0.14); border: 1px solid rgba(255, 209, 102, 0.6); color: #ffe7a6; }
.win-spin .sp-said.bad { background: rgba(255, 90, 90, 0.12); border: 1px solid #ff6b6b; color: #ffc2c2; }
.win-spin .sp-go { display: grid; grid-template-columns: 2fr 1fr; gap: 8px; }
.win-spin .sp-btn { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; min-height: 52px; border-radius: 14px; border: 0; cursor: pointer; color: #2b1800; transition: transform 0.12s, filter 0.12s; }
.win-spin .sp-btn b { font-size: 19px; letter-spacing: 1px; line-height: 1.1; }
.win-spin .sp-btn small { font-size: 11px; opacity: 0.85; }
.win-spin .sp-btn.main { background: linear-gradient(#ffe9a3, var(--sp-gold) 45%, var(--sp-gold-2)); box-shadow: 0 4px 0 #9a6200, 0 8px 18px rgba(246, 168, 33, 0.35); }
.win-spin .sp-btn.ten { background: linear-gradient(#c9d2ff, #8c9cff 50%, #5f6fe0); color: #0c1230; box-shadow: 0 4px 0 #36409a; }
.win-spin .sp-btn.all { flex-direction: row; min-height: 36px; padding: 0 16px; font-weight: 700; background: linear-gradient(#ffc0d9, #ff86b6 55%, #e0569a); color: #3a0a22; box-shadow: 0 3px 0 #9a2c63; }
.win-spin .sp-btn:hover:not(:disabled) { filter: brightness(1.07); }
.win-spin .sp-btn:active:not(:disabled) { transform: translateY(3px); box-shadow: none; }
.win-spin .sp-btn:disabled { filter: grayscale(0.85) brightness(0.7); cursor: not-allowed; }
.win-spin .sp-batch { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--sp-dim); }
.win-spin .sp-batch input { flex: 1; min-width: 0; height: 36px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--sp-line); background: rgba(8, 11, 34, 0.75); color: var(--sp-text); text-align: center; font-size: 14px; }
.win-spin .sp-batch > button:not(.sp-btn) { height: 36px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--sp-line); background: rgba(255, 255, 255, 0.07); color: var(--sp-text); cursor: pointer; }
.win-spin .sp-batch > button:disabled { opacity: 0.45; cursor: not-allowed; }
.win-spin .sp-sum { border: 1px solid rgba(255, 209, 102, 0.55); border-radius: 14px; padding: 10px 12px; background: linear-gradient(180deg, rgba(34, 44, 110, 0.9), rgba(12, 16, 48, 0.95)); box-shadow: 0 0 26px rgba(123, 140, 255, 0.25); animation: sp-pop 0.3s ease; }
@keyframes sp-pop { from { transform: scale(0.94); opacity: 0; } to { transform: none; opacity: 1; } }
.win-spin .sp-sum-h { display: flex; align-items: baseline; gap: 8px; margin-bottom: 6px; }
.win-spin .sp-sum-h b { color: var(--sp-gold); font-size: 15px; }
.win-spin .sp-sum-h small { color: var(--sp-dim); flex: 1; }
.win-spin .sp-x { border: 0; background: none; color: var(--sp-dim); cursor: pointer; font-size: 14px; padding: 2px 6px; }
.win-spin .sp-sum-jp { margin: 0 0 8px; padding: 8px; border-radius: 10px; text-align: center; font-weight: 800; color: #3a2200; background: linear-gradient(90deg, var(--sp-gold), #ff9f45, #ff86b6); }
.win-spin .sp-rows { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px; max-height: 190px; overflow-y: auto; }
.win-spin .sp-row { display: flex; align-items: center; gap: 8px; padding: 5px 8px; border-radius: 9px; background: rgba(255, 255, 255, 0.05); border: 1px solid #262c62; font-size: 12.5px; min-width: 0; }
.win-spin .sp-row.jp { border-color: var(--sp-gold); background: rgba(255, 209, 102, 0.14); }
.win-spin .sp-row .sp-rn { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.win-spin .sp-row b { color: var(--sp-gold); font-variant-numeric: tabular-nums; }
.win-spin .sp-sum-m { margin: 8px 0 0; text-align: center; font-size: 13px; color: #8fe8ff; }
.win-spin .sp-sum-n, .win-spin .sp-note { margin: 4px 0 0; text-align: center; font-size: 11.5px; color: var(--sp-dim); }
.win-spin .sp-hist summary { cursor: pointer; padding: 7px 12px; border: 1px solid var(--sp-line); border-radius: 10px; background: rgba(123, 140, 255, 0.1); color: var(--sp-dim); font-size: 12.5px; font-weight: 600; user-select: none; }
.win-spin .sp-hist-s { max-height: 170px; overflow-y: auto; margin-top: 6px; }
.win-spin .sp-hist table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.win-spin .sp-hist td { padding: 5px 6px; border-bottom: 1px solid #222a5c; color: var(--sp-text); }
.win-spin .sp-hist td:first-child { display: flex; align-items: center; gap: 8px; }
.win-spin .sp-hist td:last-child { white-space: nowrap; text-align: right; color: var(--sp-dim); font-size: 11.5px; }
.win-spin .sp-hist tr.jp td { color: var(--sp-gold); font-weight: 700; }
.win-spin .sp-wrap button:focus-visible, .win-spin .sp-wrap input:focus-visible, .win-spin .sp-hist summary:focus-visible { outline: 2px solid var(--sp-gold); outline-offset: 2px; }
@media (max-width: 560px) {
	.win-spin .sp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.win-spin .sp-rows { grid-template-columns: 1fr; }
	.win-spin .sp-jackpot .sp-nm { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) { .win-spin .sp-shine, .win-spin .sp-cell.landed, .win-spin .sp-sum { animation: none; } }
.win-topup .tu-pack .tu-pts.tu-spinpts { color: #7a4fd0; font-weight: 600; } /* (not .tu-spin: the loading circle above - its spinning took the line, Noh 2026-11-21 21:34) */
