/* lumus.pp.ua — «Как в игре» v2 (2026-10-22). Frames, fields and buttons are the client's own textures (surfaces.pck, version01);
   the quest journal uses the 2x HD texture and is drawn --k times larger than in the game. One static background: the 1.5.2
   login picture (surfaces\background.jpg). */
:root {
	--k: 1.25;                 /* quest journal scale (558x410 in the game) */
	--label: #ffd368;          /* login labels: 255,211,104 */
	--label-out: #422200;      /* their outline: 66,34,0 */
	--btn: #ffeeb5;            /* button text: 255,238,181 */
	--btn-out: #562712;        /* its outline: 86,39,18 */
	--input: #ffeec5;          /* account text: 255,238,197 */
	--text: #dfe6ec;
	--muted: #93a3b3;
	--ok: #8ff07a;
	--bad: #ff8a6a;
	--ink: #3b2412;            /* text on parchment */
	--ink-soft: #6b4a2a;
	--sys: #ffd23a;            /* system chat yellow */
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0; min-height: 100vh; background: #071320; color: var(--text);
	font: 15px/1.45 'PT Sans', Tahoma, sans-serif; overflow-x: hidden;
	padding-bottom: 76px; /* room for the bottom button bar */
}
a { color: #ffd98a; }
img { max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid #7fd8ff; outline-offset: 2px; }

/* outlined game text */
.out { text-shadow: -1px -1px 0 var(--o, #000), 1px -1px 0 var(--o, #000), -1px 1px 0 var(--o, #000), 1px 1px 0 var(--o, #000); }

/* ---------- background: the login picture, still ---------- */
.bg { position: fixed; inset: 0; z-index: -2; background: #071320; }
.bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 28%; }
.bg:after { content: ""; position: absolute; inset: 0;
	background: linear-gradient(180deg, rgba(4,10,20,.62) 0, rgba(4,10,20,.12) 20%, rgba(4,10,20,0) 45%, rgba(4,10,20,.35) 78%, rgba(4,10,20,.88) 100%),
		radial-gradient(ellipse 80% 70% at 50% 42%, transparent 50%, rgba(3,8,16,.45) 100%); }

/* ---------- header: logo + minimap ---------- */
.top { position: relative; display: flex; justify-content: space-between; align-items: flex-start; padding: 18px 28px 0; min-height: 150px; }
.logo { text-decoration: none; display: block; }
.logo b { display: block; font: 700 64px/1 'Cormorant SC', serif; letter-spacing: 4px;
	background: linear-gradient(180deg, #fffbe9 0%, #ffe08a 42%, #c07a22 52%, #ffd27a 78%, #fff0c2 100%);
	-webkit-background-clip: text; background-clip: text; color: transparent;
	filter: drop-shadow(0 2px 0 #3a1c04) drop-shadow(0 0 14px rgba(255,170,50,.5)); }
.logo small { display: block; margin: 4px 0 0 5px; font: 15px 'Forum', serif; letter-spacing: 3px; color: #e8c27a; text-shadow: 0 1px 2px #000; }

/* minimap frame (雷达框 259x141): name bar on the left, glass disc on the right */
.radar { position: relative; width: 259px; height: 141px; flex: none; text-decoration: none; color: inherit; }
.radar .map { position: absolute; left: 124px; top: 15px; width: 114px; height: 114px; border-radius: 50%; overflow: hidden;
	background: url(ui/map.jpg) 50% 40% / cover; }
.radar .map:before { content: ""; position: absolute; inset: 0; border-radius: 50%;
	background: conic-gradient(from 0deg, rgba(120,255,160,.38), transparent 26%); animation: sweep 4s linear infinite; }
.radar .map:after { content: ""; position: absolute; left: 50%; top: 50%; border: 6px solid transparent; border-bottom: 15px solid #fff3b0;
	transform: translate(-50%, -62%) rotate(25deg); filter: drop-shadow(0 0 4px #ffcc33); }
.radar .frame { position: absolute; inset: 0; background: url(ui/radar.png) no-repeat; pointer-events: none; }
.radar .name { position: absolute; left: 12px; top: 6px; width: 120px; font: 14px/1.2 'Forum', serif; color: #fff; --o: #0a1a24; }
.radar .xy { position: absolute; left: 14px; top: 25px; font-size: 11.5px; color: #cfe6f5; text-shadow: 0 1px 1px #000; }
.radar .pill { position: absolute; left: 150px; bottom: 2px; font: 700 12px/1 'PT Sans'; padding: 4px 9px; border-radius: 10px; white-space: nowrap;
	color: #122; background: linear-gradient(#b9ff9c, #4fbf3b); box-shadow: 0 0 0 1px #0a2a05, 0 0 12px rgba(120,255,90,.6); }
.radar.off .pill { color: #fff; background: linear-gradient(#ff9d8a, #b52a17); box-shadow: 0 0 0 1px #2a0805, 0 0 12px rgba(255,90,60,.6); }
.radar.off .map:before { animation: none; background: rgba(0,0,0,.35); }
.radar .host { position: absolute; right: 18px; top: 143px; font-size: 12px; color: #cdd8e2; text-shadow: 0 1px 2px #000; white-space: nowrap; }
@keyframes sweep { to { transform: rotate(360deg); } }

/* language switch under the minimap (user 2026-10-22: no flags, then «more visible, buttons in the site's style»): three buttons
   RU / EN / PT on one dark plate, drawn like the quest journal tabs (blue-grey gradient, thin frame); the current one has the
   gold frame and glow of the journal's selected quest */
.lang { position: absolute; right: 28px; top: 182px; display: flex; gap: 3px; padding: 3px; border-radius: 6px;
	background: linear-gradient(rgba(16,30,42,.88), rgba(8,16,24,.92)); box-shadow: 0 0 0 1px #3c5260, 0 0 0 2px rgba(0,0,0,.6), 0 6px 16px rgba(0,0,0,.45); }
.lang a { min-width: 46px; padding: 6px 10px 5px; border: 1px solid #4b6878; border-radius: 4px; text-align: center; text-decoration: none;
	font: 16px/1 'Forum', serif; letter-spacing: 1.5px; color: #c4d3dc; text-shadow: 0 1px 2px #000;
	background: linear-gradient(#2a4456, #142230); box-shadow: inset 0 1px 0 rgba(255,255,255,.08); transition: color .15s, border-color .15s, background .15s; }
.lang a:hover { color: #fff; border-color: #7fb0c8; background: linear-gradient(#35566b, #1a2c3b); }
.lang a.on { color: #ffd98a; border-color: #c9a24c; background: linear-gradient(#3a5a6e, #1d3140);
	text-shadow: 0 1px 2px #000, 0 0 8px rgba(255,190,70,.6); box-shadow: inset 0 1px 0 rgba(255,240,200,.15), 0 0 10px rgba(255,200,90,.35); }
.lang a:focus-visible { outline-offset: 1px; }

/* ---------- buttons ---------- */
/* login buttons (登陆按钮 105x31: blue, hover red, pressed dark) */
.lbtn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 120px; height: 34px; padding: 0 16px;
	border: 0 solid transparent; border-width: 0 13px; border-image: url(ui/lbtn.png) 0 13 fill / 0 13px stretch;
	background: none; cursor: pointer; text-decoration: none; white-space: nowrap;
	font: 700 14px/1 'PT Sans', sans-serif; color: var(--btn); --o: var(--btn-out); }
.lbtn:hover { border-image-source: url(ui/lbtn-h.png); }
.lbtn:active { border-image-source: url(ui/lbtn-d.png); }
.lbtn.big { height: 40px; min-width: 210px; font-size: 16px; }
.lbtn[disabled], .lbtn.off { filter: grayscale(1) brightness(.65); cursor: default; }
.lbtn small { font-weight: 400; opacity: .8; font-size: 12px; }
/* window buttons (按钮 69x24 teal) */
.wbtn { display: inline-flex; align-items: center; justify-content: center; height: 28px; min-width: 96px; padding: 0 12px;
	border: 0 solid transparent; border-width: 0 12px; border-image: url(ui/wbtn.png) 0 12 fill / 0 12px stretch;
	background: none; cursor: pointer; text-decoration: none; white-space: nowrap;
	font: 700 13px/1 'PT Sans', sans-serif; color: #eafcff; --o: #06262b; }
.wbtn:hover { border-image-source: url(ui/wbtn-h.png); }
.wbtn:active { border-image-source: url(ui/wbtn-d.png); }
.wbtn.off { border-image-source: url(ui/wbtn-x.png); color: #9aa; cursor: default; }

/* bottom button bar (地底框 728x51), like the login screen's row */
.bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 5; display: flex; justify-content: center; }
.bar .in { width: 728px; max-width: 100%; height: 51px; display: flex; align-items: center; justify-content: center; gap: 14px; padding: 0 20px;
	background: url(ui/bottombar.png) center / 100% 100% no-repeat; }

/* window title (标题框 244x30 / 376x30) */
.titlebar { position: absolute; left: 50%; top: 0; transform: translateX(-50%); margin: 0; width: 244px; height: 30px;
	background: url(ui/title.png) no-repeat; text-align: center; font: 15px/30px 'Forum', serif; color: #fff2cf; --o: #12222e; padding-top: 1px; }

/* ---------- system message in the middle of the screen ---------- */
.sysmsg { text-align: center; font: 24px/1.3 'Forum', serif; color: #ffe066; --o: #000; margin: -6px 16px 16px; }
.sysmsg small { display: block; font: 14px 'PT Sans'; color: #fff; }

/* ---------- home: the quest journal alone ---------- */
.stage { display: flex; justify-content: center; align-items: flex-start; padding: 4px 16px 30px; }
@media (min-width: 1400px) {
	/* wide screens: the journal sits left of centre, the city of the picture stays in view on the right */
	.stage { justify-content: flex-start; padding-left: calc(50vw - 640px + 48px); }
}

/* quest log (任务信息 558x410 at --k, 2x texture) = how to start + what the server is */
.quests { position: relative; width: calc(558px * var(--k)); height: calc(410px * var(--k)); flex: none;
	background: url(ui/questlog2x.png) no-repeat 0 0 / 100% 100%; filter: drop-shadow(0 18px 36px rgba(0,0,0,.55)); }
.quests .titlebar { top: calc(1px * var(--k)); width: calc(230px * var(--k)); height: calc(24px * var(--k)); background: none; padding: 0;
	font-size: calc(15px * var(--k)); line-height: calc(24px * var(--k)); }
.quests .tabs { position: absolute; left: calc(12px * var(--k)); top: calc(38px * var(--k)); width: calc(182px * var(--k)); display: flex; gap: 3px; }
.quests .tabs button { flex: 1; height: calc(22px * var(--k)); padding: 0; border: 1px solid #4b6878; border-bottom: 0; border-radius: 5px 5px 0 0; cursor: pointer;
	font: 700 calc(12px * var(--k)) 'PT Sans', sans-serif; color: #a9c0cc; background: linear-gradient(#22394a, #142230); }
.quests .tabs button:hover { color: #e6f3f8; }
.quests .tabs button[aria-selected="true"] { color: #fff; border-color: #7fb0c8; background: linear-gradient(#3a5a6e, #1d3140); text-shadow: 0 0 6px rgba(127,216,255,.55); }
.quests ul.list { position: absolute; left: calc(12px * var(--k)); top: calc(70px * var(--k)); width: calc(181px * var(--k)); height: calc(304px * var(--k));
	margin: 0; padding: calc(4px * var(--k)) 0; list-style: none; overflow: auto; scrollbar-width: thin; scrollbar-color: #6a8aa0 transparent; }
.quests li button { display: flex; gap: calc(6px * var(--k)); align-items: flex-start; width: 100%; padding: calc(5px * var(--k)) calc(6px * var(--k)); border: 0; background: none; cursor: pointer; text-align: left;
	font: calc(13px * var(--k)) / 1.3 'PT Sans', sans-serif; color: #e6edf2; }
.quests li button:hover { background: rgba(127,216,255,.08); }
.quests li button[aria-selected="true"] { background: linear-gradient(90deg, rgba(127,216,255,.25), rgba(127,216,255,.04)); color: #fff; box-shadow: inset 0 0 0 1px rgba(127,216,255,.35); }
.quests li i { flex: none; width: calc(14px * var(--k)); font: 700 calc(15px * var(--k)) / calc(17px * var(--k)) 'Forum', serif; color: #ffde3b; text-align: center; font-style: normal;
	text-shadow: 0 0 5px rgba(255,200,0,.8), 0 1px 0 #000; }
.quests li small { display: block; color: var(--muted); font-size: calc(11.5px * var(--k)); }
.paper { position: absolute; left: calc(212px * var(--k)); top: calc(48px * var(--k)); width: calc(322px * var(--k)); color: var(--ink); }
.paper section { position: absolute; left: 0; right: 0; overflow: hidden; }
.paper .s1 { top: 0; height: calc(140px * var(--k)); }
.paper .s2 { top: calc(152px * var(--k)); height: calc(82px * var(--k)); }
.paper .s3 { top: calc(247px * var(--k)); height: calc(74px * var(--k)); }
.paper h3 { margin: 0 0 calc(5px * var(--k)); font: calc(20px * var(--k)) / 1.15 'Forum', serif; color: #2e1204; text-shadow: 0 1px 0 rgba(255,240,200,.45); }
.paper h4 { margin: 0 0 calc(3px * var(--k)); font: 700 calc(12px * var(--k)) 'PT Sans'; color: #7a3c0a; text-transform: uppercase; letter-spacing: .5px; }
.paper p { margin: 0; font-size: calc(13.5px * var(--k)); line-height: 1.38; }
.paper code { font: calc(12.5px * var(--k)) Consolas, monospace; background: rgba(90,60,20,.12); padding: 0 3px; border-radius: 2px; }
.paper .act { margin-top: calc(6px * var(--k)); display: flex; gap: 8px; flex-wrap: wrap; }
.paper .reward { display: flex; gap: calc(10px * var(--k)); align-items: center; }
.paper .reward img { width: calc(36px * var(--k)); height: calc(36px * var(--k)); flex: none; }
.paper .reward p { font-size: calc(14px * var(--k)); }
.quests .foot { position: absolute; right: calc(22px * var(--k)); bottom: calc(7px * var(--k)); display: flex; gap: 8px; }
.quests .foot .wbtn { height: 26px; min-width: 90px; font-size: 12.5px; }
.quests .progress { position: absolute; left: calc(18px * var(--k)); bottom: calc(11px * var(--k)); font-size: calc(12px * var(--k)); color: #cfe6f5; text-shadow: 0 1px 1px #000; }

/* ---------- login window with vines (登陆框 377x256, fields erased) = registration ---------- */
.login { position: relative; width: 434px; max-width: 100%; margin: 0 auto; padding: 70px 70px 72px; isolation: isolate; }
.login:before { content: ""; position: absolute; inset: 0; z-index: -1; border: solid transparent; border-width: 184px 69px 64px;
	border-image: url(ui/loginframe.png) 160 60 56 fill / 184px 69px 64px stretch; }
.login .server { text-align: center; font: 700 13px 'PT Sans'; color: var(--label); --o: var(--label-out); margin-bottom: 4px; }
.login .server b { color: var(--input); }
.login h1 { margin: 0 0 6px; text-align: center; font: 26px/1.1 'Forum', serif; color: #fff2cf; --o: #1a2230; }
.field { margin: 0 0 4px; text-align: center; }
.field label { display: block; font: 16px/1.4 'Forum', serif; color: var(--label); --o: var(--label-out); letter-spacing: .5px; }
.field label span { font: 12px "PT Sans"; color: #c9b88e; letter-spacing: 0; margin-left: 4px; text-shadow: 0 1px 1px #000; }
.edit { position: relative; height: 38px; border: 0 solid transparent; border-width: 0 18px; border-image: url(ui/field.png) 0 18 fill / 0 18px stretch; }
.edit input { width: 100%; height: 30px; margin-top: 2px; border: 0; background: transparent; outline: 0; text-align: center;
	font: 700 15px 'PT Sans', sans-serif; color: var(--input); letter-spacing: .5px; text-shadow: 0 1px 1px #000; }
.edit input::placeholder { color: #5f7d8e; font-weight: 400; }
.edit.bad { filter: drop-shadow(0 0 5px rgba(255,90,60,.9)); }
.edit.good { filter: drop-shadow(0 0 4px rgba(120,255,120,.5)); }
.edit:focus-within { filter: drop-shadow(0 0 6px rgba(80,190,255,.85)); }
.hint { min-height: 17px; font-size: 12.5px; line-height: 17px; color: var(--muted); }
.hint.bad { color: var(--bad); }
.hint.good { color: var(--ok); }
.check { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; font: 700 13px 'PT Sans'; color: var(--label); --o: var(--label-out); user-select: none; }
.check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check i { width: 24px; height: 24px; background: url(ui/chk.png); }
.check input:checked + i { background-image: url(ui/chk-on.png); }
.check input:focus-visible + i { outline: 2px solid #7fd8ff; border-radius: 50%; }
.login .row { display: flex; justify-content: center; margin: 4px 0 2px; }
.login .go { position: absolute; left: 0; right: 0; bottom: 14px; display: flex; justify-content: center; }
.alert { margin: 4px 0 8px; padding: 6px 10px; text-align: center; font-size: 13.5px; color: #fff; background: rgba(120,20,10,.55); border: 1px solid rgba(255,120,90,.5); border-radius: 3px; }
/* registration step 1: the Telegram login widget (8.2b, ADR 0045) */
.tgstep { margin-bottom: 8px; }
.tgw { display: flex; flex-direction: column; justify-content: center; min-height: 40px; align-items: center; gap: 6px; }
.signor { font: 13px 'PT Sans'; color: #c9d6e0; --o: #0a1a24; }
.signbtn { display: inline-flex; align-items: center; justify-content: center; min-width: 219px; height: 40px; padding: 0 18px; border-radius: 6px;
	font: 500 16px 'PT Sans', sans-serif; color: #fff; text-decoration: none; background: #5865f2; box-shadow: 0 1px 3px rgba(0,0,0,.5); }
.signbtn:hover { background: #4752c4; }
.signbtn.sign-dc:before { content: ""; width: 22px; height: 17px; margin-right: 10px; flex: none;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 127.14 96.36'%3E%3Cpath fill='%23fff' d='M107.7 8.07A105.15 105.15 0 0 0 81.47 0a72.06 72.06 0 0 0-3.36 6.83 97.68 97.68 0 0 0-29.11 0A72.37 72.37 0 0 0 45.64 0a105.89 105.89 0 0 0-26.25 8.09C2.79 32.65-1.71 56.6.54 80.21a105.73 105.73 0 0 0 32.17 16.15 77.7 77.7 0 0 0 6.89-11.11 68.42 68.42 0 0 1-10.85-5.18c.91-.66 1.8-1.34 2.66-2a75.57 75.57 0 0 0 64.32 0c.87.71 1.76 1.39 2.66 2a68.68 68.68 0 0 1-10.87 5.19 77 77 0 0 0 6.89 11.1 105.25 105.25 0 0 0 32.19-16.14c2.64-27.38-4.51-51.11-18.9-72.15ZM42.45 65.69C36.18 65.69 31 60 31 53s5-12.74 11.43-12.74S54 46 53.89 53s-5.05 12.69-11.44 12.69Zm42.24 0C78.41 65.69 73.25 60 73.25 53s5-12.74 11.44-12.74S96.23 46 96.12 53s-5.04 12.69-11.43 12.69Z'/%3E%3C/svg%3E") center / contain no-repeat; }
.tgw[hidden] { display: none; }
.tgdone { margin: 4px auto 0; padding: 7px 12px; max-width: 280px; text-align: center; border-radius: 4px; font: 700 14px 'PT Sans';
	color: var(--input); background: rgba(10,30,45,.75); border: 1px solid #3f7f6a; box-shadow: 0 0 8px rgba(120,255,160,.25); text-shadow: 0 1px 1px #000; }
.regmsg { margin: 26px 0 70px; text-align: center; font: 20px/1.3 'Forum', serif; color: #fff2cf; --o: #1a2230; }
.done { text-align: center; }
.done .acc { font: 700 22px 'PT Sans'; color: var(--input); margin: 2px 0 8px; text-shadow: 0 0 10px rgba(80,190,255,.6), 0 1px 1px #000; }
.done ol { text-align: left; margin: 6px 0 10px; padding-left: 20px; font-size: 14px; }
.done ol li { margin-bottom: 4px; }
.done .row { gap: 10px; flex-wrap: wrap; }

/* ---------- small screens ---------- */
@media (max-width: 760px) {
	:root { --k: 1; }
	body { padding-bottom: 96px; font-size: 14px; }
	.top { padding: 12px 16px 0; min-height: 0; flex-direction: column; align-items: center; gap: 8px; }
	.logo { text-align: center; }
	.logo b { font-size: 48px; }
	.radar { display: none; }	/* user 2026-10-22: no minimap on phones (looks out of place); the status line under it stays */
	.lang { position: static; align-self: center; margin: 4px 0 12px; }
	.sysmsg { font-size: 20px; }
	/* the fixed-size game window becomes a flexible panel with the same colours */
	.stage { padding: 4px 10px 30px; }
	.quests { width: 100%; height: auto; background: none; filter: none; padding: 40px 12px 52px; border: 1px solid #6c8a96; border-radius: 6px; background: linear-gradient(#2d4654, #1d2f3b); }
	.quests .titlebar { background: url(ui/title.png) no-repeat; width: 244px; height: 30px; top: -1px; font-size: 15px; line-height: 30px; }
	.quests .tabs { position: static; width: auto; margin-bottom: 8px; }
	.quests ul.list { position: static; width: auto; height: auto; background: #12121e; border: 1px solid #3c5260; margin-bottom: 10px; }
	.paper { position: static; width: auto; padding: 14px; border-radius: 4px; background: #c9b896 url(ui/questlog2x.png) -420px -110px / 900px auto; box-shadow: inset 0 0 18px rgba(60,30,0,.5); }
	.paper section, .paper .s1, .paper .s2, .paper .s3 { position: static; height: auto; margin-bottom: 10px; padding-bottom: 8px; border-bottom: 1px solid rgba(60,30,0,.3); }
	.paper section:last-child { border: 0; margin: 0; }
	.bar .in { width: 100%; height: auto; flex-wrap: wrap; gap: 6px; padding: 8px; background: linear-gradient(90deg, rgba(4,10,16,.6), #04090f 20%, #04090f 80%, rgba(4,10,16,.6)); border-top: 1px solid #1d4b6a; }
	.bar .lbtn { min-width: 0; flex: 1 1 40%; height: 34px; font-size: 13px; }
	.login { padding: 64px 52px 70px; }
	.login:before { border-width: 160px 56px 56px; border-image-width: 160px 56px 56px; }
}
@media (prefers-reduced-motion: reduce) {
	.radar .map:before { animation: none; }
}
