/* =====================================================================================
   EndlessRPG "Dragon" template (2026-11-28) - built from the graphics pack EndlessRPG-grafik.zip
   images/dragon/: enkel_ram_nitar (riveted frame: boxes + menu), platta_rubrik (title plaque),
   platta_drakhuvud (plaque with dragon head), frost_ram_stor + frost_ram_drakhuvud (the page frame),
   drak_ram_bred + drak_ram_drakhuvud (Boosted), knapp_download_vingar, avdelare_safir, drake_vanster/hoger, logo, bg.
   The frames stretch with border-image (slices from the pack's LASMIG.txt).
   Page content keeps theme-frost.css (loaded first); its colours are re-tinted below.
   ===================================================================================== */

@font-face { font-family: 'Cinzel'; src: url('../fonts/cinzel.woff2') format('woff2'); font-weight: 400 900; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('../fonts/inter.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }

:root {
	--g1: #ead9a6;
	--g2: #c9a85f;
	--g3: #8a6d3b;
	--cream: #f1e8cf;
	--plq-text: #efe3bf;
	--txt: #dde3ee;
	--mut: #8f9ab0;
	--label: #a69c84;
	--green: #8fd6ad;
	--red: #e0565b;
	--blue: #8fb6ff;
	--line: rgba(201, 168, 95, .3);
	--line-soft: rgba(201, 168, 95, .16);
	--hover: linear-gradient(90deg, transparent, rgba(201, 168, 95, .12), transparent);
	--title: 'Cinzel', Georgia, 'Times New Roman', serif;
	--body: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
	--serif-i: italic 13px Georgia, 'Times New Roman', serif;

	/* theme-frost.css (page content) in this palette: navy rows, gold lines and headings */
	--frost-bg: #0a1430;
	--frost-bg-2: #0c1736;
	--frost-row-a: #0e1a3a;
	--frost-row-b: #0a1430;
	--frost-head-1: #1c2a4c;
	--frost-head-2: #0d1730;
	--frost-line: rgba(201, 168, 95, .18);
	--frost-line-strong: rgba(201, 168, 95, .5);
	--frost-text: #dde3ee;
	--frost-text-strong: #ffffff;
	--frost-muted: #8f9ab0;
	--frost-link: #8fb6ff;
	--frost-link-hover: #c9dbff;
	--frost-gold: #ead9a6;
	--frost-input: #050a18;
	--frost-hover: rgba(201, 168, 95, .08);
	--frost-ice: #f1e8cf;
	--frost-glow: rgba(234, 217, 166, .3);
	--ember: #e0bb62;
	--ember-deep: #8a6526;
	--ember-glow: rgba(224, 187, 98, .35);
}

/* ---------------------------------------------------------------- page */
html { scroll-behavior: smooth; overflow-x: clip; }
body.ed {
	margin: 0;
	overflow-x: clip;
	min-height: 100vh;
	background: #05070c !important;
	color: var(--txt);
	font: 13.5px/1.5 var(--body);
	-webkit-font-smoothing: antialiased;
}
.ed-bg {
	position: fixed;
	inset: 0;
	z-index: -1;
	background: url('../images/dragon/bg.webp') center top / cover no-repeat;
	filter: saturate(.5) brightness(.42);
}
body.ed a { color: var(--blue); text-decoration: none; }
body.ed a:hover { color: #c9dbff; }
.ed-page { max-width: 1400px; margin: 0 auto; padding: 0 20px 40px; box-sizing: border-box; }

/* ---------------------------------------------------------------- hero: logo, the two dragons, top bar */
.ed-hero { position: relative; padding-top: 196px; margin-bottom: 14px; }
.ed-logo { position: absolute; left: 50%; top: 0; width: 340px; margin-left: -170px; z-index: 3; }
.ed-logo img {
	display: block; width: 100%; height: auto;
	filter: drop-shadow(0 10px 18px #000);
	transition: filter .3s, transform .3s;
}
.ed-logo:hover img { filter: drop-shadow(0 10px 18px #000) drop-shadow(0 0 22px rgba(90, 150, 255, .45)); transform: scale(1.02); }
.ed-dr { position: absolute; top: 12px; width: 206px; height: auto; z-index: 4; pointer-events: none; filter: drop-shadow(0 8px 12px rgba(0, 0, 0, .8)); }
.ed-dr.l { left: -34px; }
.ed-dr.r { right: -34px; }

.ed-topbar {
	position: relative;
	z-index: 2;
	display: flex;
	align-items: center;
	gap: 12px;
	height: 64px;
	padding: 0 140px;
	box-sizing: border-box;
	border-style: solid;
	border-color: transparent;
	border-width: 14px 25px;
	border-image: url('../images/dragon/enkel_ram_nitar.png') 25 fill stretch;
}
.ed-sp { flex: 1; }
.ed-pl { display: flex; align-items: center; gap: 8px; font: 700 13px var(--title); color: #d8cfb4 !important; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.ed-pl svg { width: 16px; height: 16px; fill: #c2a66c; }
.ed-pl b { color: var(--green); }
.ed-pl.off b { color: var(--red); }
.ed-quick { display: flex; align-items: center; gap: 14px; padding-left: 14px; border-left: 1px solid var(--line); }
.ed-quick a { display: inline-flex; align-items: center; gap: 6px; font: 600 13px var(--body); color: #e8e2d2 !important; white-space: nowrap; }
.ed-quick a:hover { color: #fff !important; text-shadow: 0 0 10px rgba(234, 217, 166, .5); }
.ed-live { color: #ff6b74; font-weight: 700; }
.ed-login { display: flex; align-items: center; gap: 10px; margin: 0; }
body.ed .ed-topbar input {
	height: 30px; width: 128px; box-sizing: border-box; padding: 0 10px;
	background: #050a18; border: 1px solid #6e5a34; border-radius: 0; color: #fff; font: 13px var(--body);
}
.ed-forgot { font-size: 11px; color: var(--mut) !important; }
.ed-forgot:hover { color: var(--g1) !important; }
.ed-signin-m { display: none !important; }
.ed-menu-toggle { display: none !important; }

/* ---------------------------------------------------------------- buttons + inputs */
.ed-btn {
	height: 30px;
	padding: 0 16px;
	display: inline-grid;
	place-items: center;
	box-sizing: border-box;
	font: 700 12px var(--title);
	letter-spacing: .08em;
	text-transform: uppercase;
	white-space: nowrap;
	color: var(--g1) !important;
	border: 1px solid var(--g3);
	border-radius: 0;
	background: linear-gradient(180deg, #1c2a4c, #0d1730);
	cursor: pointer;
	transition: filter .15s, box-shadow .15s;
}
.ed-btn:hover { filter: brightness(1.25); box-shadow: 0 0 12px rgba(201, 168, 95, .3); }
.ed-btn.solid { color: #201606 !important; background: linear-gradient(180deg, #f1dfa8, #c9a85f 55%, #8a6d3b); border-color: #f1dfa8; }
.ed-btn.solid:hover { filter: brightness(1.08); }
.ed-full { display: grid; width: 100%; height: 32px; margin-top: 10px; }
body.ed input[type=text], body.ed input[type=password], body.ed input[type=email], body.ed input[type=number], body.ed input[type=search], body.ed select, body.ed textarea {
	background: #050a18;
	border: 1px solid #3a4a6e;
	border-radius: 0;
	color: var(--txt);
	font: 14px var(--body);
}
body.ed input:focus, body.ed select:focus, body.ed textarea:focus { outline: none; border-color: var(--g2); box-shadow: 0 0 0 2px rgba(201, 168, 95, .2); }

/* ---------------------------------------------------------------- columns */
.ed-grid { display: grid; grid-template-columns: 270px minmax(0, 1fr) 285px; gap: 24px; align-items: start; }
.ed-col { min-width: 0; display: flex; flex-direction: column; gap: 30px; }
.ed-left { gap: 22px; }

/* ---------------------------------------------------------------- the riveted box + title plaque */
.ed-box {
	position: relative;
	margin-top: 20px;
	border-style: solid;
	border-color: transparent;
	border-width: 25px;
	border-image: url('../images/dragon/enkel_ram_nitar.png') 25 fill stretch;
	filter: drop-shadow(0 10px 16px rgba(0, 0, 0, .55));
}
.ed-box > .ed-bd { position: relative; margin: -6px -8px -8px; padding: 18px 4px 4px; }
.ed-plq {
	position: absolute;
	left: 50%;
	top: -44px;
	width: max-content;
	min-width: 250px;
	height: 38px;
	margin: 0;
	transform: translateX(-50%);
	box-sizing: border-box;
	z-index: 3;
	border-style: solid;
	border-color: transparent;
	border-width: 0 56px;
	border-image: url('../images/dragon/platta_rubrik.png') 0 56 fill stretch;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 0;
	font: 800 12.5px/1 var(--title);
	letter-spacing: .1em;
	color: var(--plq-text);
	text-shadow: 0 1px 0 #000;
	text-transform: uppercase;
	white-space: nowrap;
}
.ed-has-dplq { margin-top: 44px; }
.ed-dplq {
	position: absolute;
	left: 50%;
	top: -56px;
	width: 308px;
	height: 61px;
	margin-left: -154px;
	z-index: 3;
	background: url('../images/dragon/platta_drakhuvud.png') center / 308px 61px no-repeat;
	pointer-events: none;
}
.ed-has-dplq > .ed-bd { padding-top: 30px; }
.ed-wt { margin: 0 0 6px; text-align: center; font: 800 13px var(--title); letter-spacing: .12em; color: var(--plq-text); text-transform: uppercase; }
.ed-has-dplq .ed-wt { color: var(--g2); font-size: 11.5px; margin-bottom: 8px; }

/* ---------------------------------------------------------------- download (winged gold button) */
.ed-dl {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	height: 52px;
	margin: 6px -7px 0;
	padding-top: 16px;
	box-sizing: border-box;
	background: url('../images/dragon/knapp_download_vingar.png') center / 284px 52px no-repeat;
	font: 900 14px var(--title);
	letter-spacing: .06em;
	text-transform: uppercase;
	color: #2a1c06 !important;
	text-shadow: 0 1px 0 rgba(255, 240, 200, .6);
	transition: filter .2s, transform .2s;
	filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .6));
}
.ed-dl svg { width: 16px; height: 16px; }
.ed-dl:hover { filter: brightness(1.12) drop-shadow(0 0 14px rgba(234, 217, 166, .45)); transform: translateY(-1px); }

/* ---------------------------------------------------------------- menu: plaque button, the framed list rolls open */
.ed-nav { display: flex; flex-direction: column; gap: 16px; margin-top: 10px; }
.ed-cat { position: relative; }
.ed-cat > .ed-plq { position: relative; left: auto; top: auto; transform: none; margin: 0 auto; display: flex; cursor: pointer; background-color: transparent; transition: filter .2s; }
.ed-cat > .ed-plq:hover { filter: brightness(1.18); color: #fff; }
.ed-cat > .ed-plq:focus-visible { outline: 1px dashed var(--g1); outline-offset: 2px; }
.ed-caret { font-size: 9px; color: var(--g1); transition: transform .3s; }
.ed-cat.open .ed-caret { transform: rotate(180deg); }
.ed-sub {
	max-height: 0;
	overflow: hidden;
	margin-top: 0;
	transition: max-height .4s cubic-bezier(.4, 0, .2, 1), margin-top .4s cubic-bezier(.4, 0, .2, 1);
}
.ed-cat.open .ed-sub { margin-top: -19px; }
.ed-sub > .ed-box { margin-top: 0; filter: none; }
.ed-sub .ed-lk { transition: opacity .3s .05s, transform .4s cubic-bezier(.4, 0, .2, 1); }
.ed-cat:not(.open) .ed-sub .ed-lk { opacity: 0; transform: translateY(-8px); }
.ed-lk a {
	display: flex;
	align-items: center;
	gap: 12px;
	height: 36px;
	padding: 0 6px;
	font: 700 12.5px var(--title);
	color: #e8dfc6 !important;
	border-bottom: 1px solid rgba(201, 168, 95, .18);
	white-space: nowrap;
	transition: background .15s, color .15s;
}
.ed-lk a:last-child { border-bottom: 0; }
.ed-lk a:hover { color: #fff !important; background: var(--hover); }
.ed-lk a.on { color: #fff !important; background: linear-gradient(90deg, rgba(110, 160, 255, .16), transparent); }
.ed-lk a.on .ed-lt { text-shadow: 0 0 10px rgba(143, 182, 255, .7); }
.ed-lt { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.ed-ico {
	width: 28px; height: 28px; flex: none; border-radius: 50%;
	display: grid; place-items: center;
	background: radial-gradient(circle at 50% 35%, #24345c, #0a1226);
	box-shadow: inset 0 0 0 2px #b79a5c, 0 1px 2px #000;
	transition: box-shadow .2s;
}
.ed-ico img { width: 22px; height: 22px; -webkit-mask: radial-gradient(circle, #000 58%, transparent 64%); mask: radial-gradient(circle, #000 58%, transparent 64%); }
.ed-lk a:hover .ed-ico, .ed-lk a.on .ed-ico { box-shadow: inset 0 0 0 2px #f1dfa8, 0 0 10px rgba(110, 160, 255, .6); }

/* ---------------------------------------------------------------- shared rows */
.ed-row { display: flex; align-items: center; gap: 8px; height: 30px; border-bottom: 1px solid rgba(201, 168, 95, .15); font-size: 12.5px; color: var(--txt) !important; }
a.ed-row:hover { background: var(--hover); }
.ed-row b { flex: 1; min-width: 0; color: #efe9da; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ed-row em, .ed-row i { font: italic 12px Georgia, serif; color: var(--green); white-space: nowrap; }
.ed-row i { color: #8f8a7c; }
.ed-row em.gold { color: var(--g1); font-style: normal; font-family: var(--title); font-weight: 700; }
.ed-out { position: relative; width: 26px; height: 26px; flex: none; }
.ed-out img { position: absolute; right: -8px; bottom: -6px; width: 40px; height: 40px; image-rendering: pixelated; }

/* ---------------------------------------------------------------- front page: Server box */
.ed-stats { display: grid; grid-template-columns: repeat(4, 1fr); padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.ed-stats div { text-align: center; min-width: 0; }
.ed-stats div + div { border-left: 1px solid rgba(201, 168, 95, .2); }
.ed-stats small { display: block; font: var(--serif-i); color: var(--label); }
.ed-stats b { font: 700 21px var(--title); color: var(--cream); font-variant-numeric: tabular-nums; }
.ed-stats b.g { color: var(--green); }
.ed-stats b.r { color: var(--red); font-size: 17px; }
.ed-tri { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 12px; }
.ed-tri h5 { display: flex; justify-content: space-between; margin: 0 0 4px; font: var(--serif-i); color: var(--label); }
.ed-tri h5 a { font-style: normal; font-size: 12px; color: var(--g2) !important; }
.ed-tri h5 a::after { content: ' \00bb'; }
.ed-tri h5 a:hover { color: var(--g1) !important; }

/* ---------------------------------------------------------------- front page: Boosted (wide frame) + Socials */
.ed-duo { display: grid; grid-template-columns: 1.25fr .75fr; gap: 22px; align-items: center; }
.ed-duo > .ed-box { margin-top: 20px; }
.ed-wide {
	position: relative;
	border-style: solid;
	border-color: transparent;
	border-width: 110px 135px 90px;
	border-image: url('../images/dragon/drak_ram_bred.webp') 110 135 90 fill stretch;
	filter: drop-shadow(0 10px 16px rgba(0, 0, 0, .55));
}
.ed-wbd { position: relative; z-index: 1; margin: -62px -78px -34px; }
.ed-whead { position: absolute; left: 50%; top: -110px; width: 170px; height: auto; margin-left: -85px; z-index: 3; pointer-events: none; }
.ed-boost { display: flex; justify-content: space-around; flex-wrap: wrap; text-align: center; }
.ed-boost > div { min-width: 0; }
.ed-slot { width: 56px; height: 56px; margin: 0 auto 2px; border-radius: 50%; background: radial-gradient(circle, rgba(110, 170, 255, .3), transparent 70%); display: grid; place-items: center; }
.ed-slot img { width: 56px; height: 56px; object-fit: contain; image-rendering: pixelated; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .7)); }
.ed-boost b { display: block; font: 700 13px var(--title); color: var(--cream); }
.ed-boost span { display: block; font-size: 11.5px; line-height: 1.3; color: var(--mut); }
.ed-wide .ed-wt { margin-bottom: 2px; }
.ed-wide .ed-boost { gap: 6px 16px; }
.ed-soc { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding-top: 4px; }
.ed-soc a {
	display: flex; align-items: center; gap: 9px; height: 38px; padding: 0 10px;
	font: 600 13px var(--body); color: #e8e2d2 !important;
	border: 1px solid var(--line); background: rgba(0, 0, 0, .2);
	transition: border-color .2s, background .2s;
}
.ed-soc a:hover { border-color: var(--c); background: rgba(0, 0, 0, .35); color: #fff !important; }
.ed-soc a i { width: 18px; text-align: center; color: var(--c); font-size: 16px; }
.ed-soc .eg-ib-ico { width: 18px; height: 18px; }

/* ---------------------------------------------------------------- the page: frost frame with the dragon head */
.ed-frost {
	position: relative;
	margin-top: 10px;
	border-style: solid;
	border-color: transparent;
	border-width: 145px 130px 125px 125px;
	border-image: url('../images/dragon/frost_ram_stor.webp') 145 130 125 125 fill stretch;
	filter: drop-shadow(0 12px 20px rgba(0, 0, 0, .6));
}
.ed-fbd { position: relative; z-index: 1; margin: -62px -72px -62px -70px; min-height: 120px; }
.ed-fhead { position: absolute; left: 50%; top: -145px; width: 160px; height: auto; margin-left: -80px; z-index: 3; pointer-events: none; }
.ed-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-bottom: 8px; margin-bottom: 14px; border-bottom: 1px solid rgba(201, 168, 95, .4); }
.ed-head h1 { margin: 0; font: 700 19px var(--title); letter-spacing: .03em; color: var(--cream); }
.ed-head h1 i { color: var(--g2); font-size: 15px; margin-right: 4px; }
.ed-divi { clear: both; height: 34px; margin-top: 16px; background: url('../images/dragon/avdelare_safir.png') center / 302px 34px no-repeat; }
.ed-pagebox .Content .BoxContent.eg-content {
	background: none !important;
	padding: 0 !important;
	min-height: 0 !important;
	height: auto !important;
	font-family: var(--body) !important;
	font-size: 14px;
	color: var(--txt);
}
.eg-content h1, .eg-content h2, .eg-content h3 { color: var(--cream); }
.eg-content .Text, .eg-content .CaptionInnerContainer .Text { font-family: var(--title) !important; letter-spacing: .06em; }
.ed-pagebox .Content .BorderTitleText { border-bottom-color: rgba(224, 187, 98, .7) !important; }
.ed-pagebox .Content [bgcolor="#505050" i] { border-bottom: 1px solid rgba(224, 187, 98, .55); }
.ed-footer { text-align: center; color: #69768f; font-size: 11.5px; line-height: 1.6; margin-top: -6px; }
.ed-footer a { color: var(--g1) !important; }

/* ---------------------------------------------------------------- news ticker */
.eg-ticker > .ed-bd { padding: 14px 2px 0; }
.eg-tick { border-bottom: 1px solid var(--line-soft); cursor: pointer; }
.eg-tick:last-child { border-bottom: 0; }
.eg-tick-row { display: grid; grid-template-columns: 18px 92px minmax(0, 1fr) 12px; gap: 10px; align-items: center; padding: 8px 4px; }
.eg-tick:hover .eg-tick-row { background: var(--hover); }
.eg-tick-ico { text-align: center; font-size: 12px; }
.eg-tick-ico.gold { color: #e8b84a; }
.eg-tick-ico.blue { color: #5d9bff; }
.eg-tick-ico.green { color: var(--green); }
.eg-tick-ico.red { color: var(--red); }
.eg-tick-date { font: var(--serif-i); color: var(--label); }
.eg-tick-short { color: var(--txt); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.eg-tick-short b { color: var(--g1); font-weight: 600; }
.eg-tick-arrow { color: var(--mut); font-size: 10px; transition: transform .2s; }
.eg-tick.open .eg-tick-arrow { transform: rotate(90deg); }
.eg-tick-full { display: none; padding: 0 8px 12px 124px; color: var(--txt); font-size: 13px; }
.eg-tick.open .eg-tick-full { display: block; }
.eg-tick.open .eg-tick-short { white-space: normal; }

/* ---------------------------------------------------------------- right column boxes */
.eg-center { text-align: center; }
.eg-pill { display: inline-flex; align-items: center; gap: 5px; padding: 2px 10px; font: 700 10px/1.6 var(--body); letter-spacing: .12em; text-transform: uppercase; }
.eg-pill.on { background: #1f7a45; color: #dcffea; box-shadow: 0 0 10px rgba(51, 194, 122, .45); }
.eg-pill.on::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #9dffc8; }
.eg-pill.off { background: rgba(121, 168, 255, .14); color: #a8c8ff; }
.ed-wb-name { margin: 8px 0 0; font: 700 18px/1.25 var(--title); color: var(--cream); }
.ed-wb-lines { margin: 2px 0 0; font-size: 12px; color: var(--mut); }
.ed-wb-item { display: block; width: 32px; height: 32px; margin: 8px auto 0; image-rendering: pixelated; filter: drop-shadow(0 0 8px rgba(232, 190, 98, .55)); }
.ed-ends { margin: 8px 0 0; font: var(--serif-i); color: var(--label); }
.ed-ends b { display: block; font: 700 25px var(--title); color: var(--cream); font-variant-numeric: tabular-nums; }
.eg-when { color: var(--mut); font-size: 11px; margin-top: 2px; }
.eg-rot { list-style: none; margin: 12px 0 0; padding: 10px 0 0; border-top: 1px solid var(--line-soft); }
.eg-rot li { position: relative; padding: 2px 0 2px 14px; font-size: 12.5px; color: var(--mut); }
.eg-rot li::before { content: ''; position: absolute; left: 0; top: 9px; width: 6px; height: 6px; transform: rotate(45deg); background: #3a4560; }
.eg-rot li.cur { color: #fff; font-weight: 600; }
.eg-rot li.cur::before { background: var(--g2); box-shadow: 0 0 6px var(--g2); }

.ed-tp .ed-row { height: 36px; }
.ed-tp .n { width: 12px; color: var(--mut); font-weight: 700; }
.ed-tp .n.first { color: var(--g1); }
.ed-tp .lv { font: 700 12px var(--title); color: var(--g1); white-space: nowrap; }
.eg-hs-on { display: inline-block; width: 7px; height: 7px; margin-left: 5px; border-radius: 50%; background: #33c27a; box-shadow: 0 0 6px #33c27a; vertical-align: middle; }

.ed-offer { display: flex; justify-content: space-between; align-items: baseline; padding: 8px 2px; border-bottom: 1px solid rgba(201, 168, 95, .2); font-size: 13px; color: #dcd6c5; }
.ed-offer em { font-style: normal; font-size: 10.5px; font-weight: 700; color: var(--green); }
.ed-offer b { font: 700 15px var(--title); color: var(--g1); }
.ed-offer b::after { content: ' coins'; font: 400 11px var(--body); color: var(--mut); }
.ed-pp { font: italic 12px Georgia, serif; color: var(--mut); text-align: center; margin: 8px 0 0; }

.eg-box-boosted .ed-boost { padding-top: 4px; }
.eg-box-text { color: var(--mut); font-size: 13px; text-align: center; margin: 0 0 10px; }
.eg-clock { text-align: center; font: 700 24px var(--title); color: var(--cream); letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.eg-search { display: flex; flex-direction: column; gap: 8px; margin: 0; }
.eg-search input { height: 32px; padding: 0 10px; box-sizing: border-box; width: 100%; }
.eg-search .eg-btn { height: 32px; font: 700 12px var(--title); letter-spacing: .08em; text-transform: uppercase; color: var(--g1) !important; border: 1px solid var(--g3); background: linear-gradient(180deg, #1c2a4c, #0d1730); cursor: pointer; }
.eg-search .eg-btn:hover { filter: brightness(1.25); }
.eg-rashid { display: flex; align-items: center; gap: 10px; }
.eg-rashid img { width: 64px; height: 64px; image-rendering: pixelated; }
.eg-rashid b { display: block; font: 700 15px var(--title); color: var(--cream); }
.eg-rashid span { color: var(--mut); font-size: 12px; }
.eg-btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; box-sizing: border-box; }

/* ---------------------------------------------------------------- back to top */
.ed-top {
	position: fixed; right: 18px; bottom: 18px; z-index: 50;
	width: 42px; height: 42px; display: flex; align-items: center; justify-content: center;
	background: linear-gradient(180deg, #1c2a4c, #0d1730); border: 1px solid var(--g2);
	color: var(--g1) !important;
	box-shadow: 0 4px 14px rgba(0, 0, 0, .7);
	opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s;
}
.ed-top.show { opacity: 1; visibility: visible; }

/* ---------------------------------------------------------------- the coloured Download / Discord / Twitch icons turn like a coin */
.eg-ib-ico {
	width: 16px;
	height: 16px;
	object-fit: contain;
	transform-origin: 50% 50%;
	animation: egCoinTurn 4s ease-in-out infinite;
	filter: drop-shadow(0 0 4px rgba(0, 0, 0, .6));
}
.eg-ib-ico[src*="icon-download"] { animation-delay: -1s; }
.eg-ib-ico[src*="icon-twitch"] { animation-delay: -2s; }
@keyframes egCoinTurn {
	0%, 55% { transform: scaleX(1); }
	67% { transform: scaleX(0) scaleY(1.08); }
	78% { transform: scaleX(-1) scaleY(1.1); }
	89% { transform: scaleX(0) scaleY(1.08); }
	100% { transform: scaleX(1); }
}

/* ---------------------------------------------------------------- page change: a soft cross-fade (no script)
   Chrome, Edge and Safari fade between pages (cross-document View Transitions); Firefox fades the new page in. */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: egFadeOut .2s ease-out both; }
::view-transition-new(root) { animation: egFadeIn .32s ease-out both; }
@keyframes egFadeOut { to { opacity: 0; } }
@keyframes egFadeIn { from { opacity: 0; } }
@supports not (view-transition-name: none) {
	.ed-fbd, .eg-ticker > .ed-bd { animation: egFadeIn .35s ease-out both; }
}

/* ---------------------------------------------------------------- narrower screens */
@media (max-width: 1439px) {
	.ed-login { display: none; }
	.ed-signin-m { display: inline-grid !important; }
}
@media (max-width: 1240px) {
	.ed-grid { grid-template-columns: 250px minmax(0, 1fr); }
	.ed-right { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); column-gap: 24px; row-gap: 10px; align-items: start; }
	.ed-plq { min-width: 230px; }
	.ed-dr { width: 170px; top: 30px; }
	.ed-topbar { padding: 0 120px; }
	.ed-pl { font-size: 12px; }
}
@media (max-width: 1340px) {
	.ed-duo { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 1080px) {
	.ed-quick a { font-size: 0; gap: 0; }           /* icons only */
	.ed-quick a .ed-live { font-size: 11px; margin-left: 4px; }
	.ed-quick .eg-ib-ico { width: 20px; height: 20px; }
}
@media (max-width: 860px) {
	.ed-page { padding: 0 12px 30px; }
	.ed-hero { padding-top: 168px; }
	.ed-logo { width: 280px; margin-left: -140px; }
	.ed-dr { display: none; }
	.ed-topbar { height: auto; min-height: 58px; flex-wrap: wrap; justify-content: center; gap: 8px 12px; padding: 4px 6px; border-width: 14px 20px; }
	.ed-sp { display: none; }
	.ed-quick { border-left: 0; padding-left: 0; }
	.ed-hide-s { display: none !important; }
	.ed-menu-toggle { display: inline-grid !important; }
	.ed-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
	.ed-left { display: none; }
	.ed-left.show { display: flex; }
	.ed-right { grid-template-columns: minmax(0, 1fr); }
	.ed-tri { grid-template-columns: minmax(0, 1fr); gap: 10px; }
	.ed-stats b { font-size: 17px; }
	/* the big frost frame needs room - phones get the riveted frame */
	.ed-frost { border-width: 25px; border-image: url('../images/dragon/enkel_ram_nitar.png') 25 fill stretch; margin-top: 20px; }
	.ed-fbd { margin: -8px -10px -10px; }
	.ed-fhead { display: none; }
	.ed-wide { border-width: 25px; border-image: url('../images/dragon/enkel_ram_nitar.png') 25 fill stretch; margin-top: 20px; }
	.ed-wbd { margin: -6px -8px -8px; }
	.ed-whead { display: none; }
	.eg-tick-row { grid-template-columns: 16px minmax(0, 1fr) 12px; }
	.eg-tick-date { display: none; }
	.eg-tick-full { padding-left: 30px; }
}
@media (max-width: 420px) {
	.ed-stats { grid-template-columns: 1fr 1fr; row-gap: 8px; }
	.ed-stats div:nth-child(3) { border-left: 0; }
	.ed-plq { min-width: 220px; }
}

/* page content on phones: the content rules of css/mobile.css (tables, forms, the character page) */
@media (max-width: 860px) {
	.Content .Box { margin: 4px 0 16px !important; }
	.ed-pagebox .Content .BoxContent { min-height: 0 !important; height: auto !important; overflow-x: auto; padding-left: 4px !important; padding-right: 4px !important; }
	.Content .Corner-tl, .Content .Corner-tr, .Content .Corner-bl, .Content .Corner-br { display: none !important; }
	.Content table { max-width: 100%; }
	.Content input[type="text"], .Content input[type="password"], .Content input[type="email"], .Content select, .Content textarea { max-width: 100% !important; font-size: 16px; }
	.Content td[width], .Content table[width] { width: auto !important; }
	#defaultCountdownParent { width: auto !important; max-width: 300px; }
	.Content div[style*="margin-left:376px"] { position: static !important; margin: 0 auto 8px !important; }
	.Content .Title { max-width: calc(100% - 16px) !important; height: auto !important; }
	.Content .BorderTitleText { height: auto !important; min-height: 24px; }
	.Content tr:has(> td .erpg-inv) > td { display: block !important; width: auto !important; }
	.Content form .TableContent > tbody > tr > td, .Content form .TableContent > tr > td { display: block !important; width: auto !important; padding-left: 4px !important; }
	.Content form .TableContent .LabelV { padding-bottom: 0 !important; border: 0 !important; }
	.Content form .TableContent input[type="text"], .Content form .TableContent input[type="password"], .Content form .TableContent input[type="email"], .Content form .TableContent select { width: 100% !important; box-sizing: border-box; }
	.Content .InnerTableContainer, .Content .TableContentContainer, .Content .TableContainer { max-width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	@view-transition { navigation: none; }
	.eg-ib-ico { animation: none; }
	.ed-sub, .ed-sub .ed-lk, .ed-caret, .ed-btn, .ed-top, .ed-dl, .ed-logo img { transition: none; }
	.ed-fbd, .eg-ticker > .ed-bd { animation: none; }
}

/* theme-frost hard-codes red "ember" edges under table headers and on the countdown box: gold here */
body.ed .Content [bgcolor="#505050" i],
body.ed .Content tr[bgcolor="#505050" i] > td,
body.ed .Content th,
body.ed .TableContainer .CaptionContainer .CaptionInnerContainer,
body.ed .Content .table thead th,
body.ed .LabelH td {
	box-shadow: inset 0 1px 0 rgba(234, 217, 166, .25), inset 0 -2px 0 rgba(201, 168, 95, .75) !important;
}
body.ed #defaultCountdownParent { box-shadow: 0 0 18px rgba(70, 140, 255, .45), inset 0 -10px 18px -8px rgba(201, 168, 95, .35) !important; }
.ed-row .ed-n { width: 12px; flex: none; color: var(--mut); font-weight: 700; }

/* ---------------------------------------------------------------- header: Boosted today right of the logo (riveted box, dragon-head plaque) */
.ed-box.ed-hero-boost {
	position: absolute;
	top: 54px;
	left: 74%;
	width: 300px;
	margin: 0;
	transform: translateX(-50%);
	z-index: 3;
}
.ed-hero-boost > .ed-bd { padding: 16px 0 0; }
.ed-hero-boost .ed-boost { flex-wrap: nowrap; gap: 4px; justify-content: space-between; }
.ed-hero-boost .ed-boost a { flex: 1 1 50%; padding: 2px 0 4px; }
.ed-hero-boost .ed-slot { width: 48px; height: 48px; margin-bottom: 0; }
.ed-hero-boost .ed-slot img { width: 48px; height: 48px; }
.ed-hero-boost .ed-boost b { font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--g2); }
.ed-hero-boost .ed-boost b::before { content: 'Boosted '; }
.ed-hero-boost .ed-boost span { font: 700 13px var(--title); color: var(--cream); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ed-boost a { display: block; min-width: 0; color: inherit !important; border-radius: 4px; transition: background .2s; }
.ed-boost a:hover { background: radial-gradient(circle at 50% 35%, rgba(110, 170, 255, .18), transparent 70%); }
.ed-boost a:hover b { color: #fff; text-shadow: 0 0 8px rgba(143, 182, 255, .7); }
.ed-boost-side { display: none; }
@media (max-width: 1340px) { .ed-box.ed-hero-boost { width: 270px; } .ed-hero-boost .ed-dplq { transform: scale(.9); } }
@media (max-width: 1240px) { .ed-box.ed-hero-boost { width: 246px; left: 75.5%; } .ed-hero-boost .ed-boost span { font-size: 12px; } }
@media (max-width: 1200px) { .ed-hero-boost { display: none; } .ed-boost-side { display: block; } }

/* ---------------------------------------------------------------- the dragons hold the ends of the top bar at every width
   (on narrower screens the page has no side margin, so the bar moves in a little instead of the dragons sticking out) */
.ed-dr { animation: edFrostBreath 5s ease-in-out infinite alternate; }
.ed-dr.r { animation-delay: -2.5s; }
@keyframes edFrostBreath {
	from { filter: drop-shadow(0 8px 12px rgba(0, 0, 0, .8)) drop-shadow(0 0 0 rgba(120, 180, 255, 0)); }
	to { filter: drop-shadow(0 8px 12px rgba(0, 0, 0, .8)) drop-shadow(0 0 16px rgba(120, 180, 255, .4)); }
}
/* the dragons stand on the corners of the top bar: their gold perch lies on the bar's gold top edge and fades into it
   (images *_v2: the perch end fades out), the spiked end sticks out past the corner. Same at every width. */
.ed-topbar { margin: 0 40px; }
.ed-dr { top: -3px; width: 280px; }   /* *_v3: the perch ends in the sapphire ornament, its gold line runs on along the bar */
.ed-dr.l { left: -16px; }
.ed-dr.r { right: -16px; }
@media (max-width: 1240px) {
	.ed-topbar { margin: 0 32px; padding: 0 100px; }
	.ed-dr { top: 33px; width: 231px; }
	.ed-dr.l { left: -13px; }
	.ed-dr.r { right: -13px; }
}
@media (max-width: 860px) { .ed-topbar { margin: 0; padding: 4px 6px; } }
@media (prefers-reduced-motion: reduce) { .ed-dr { animation: none; } }

/* ---------------------------------------------------------------- the top bar's ends: one bent gold rod per side
   images/dragon/hornram_l|r (2x, shown 273x80): the post runs down from under the dragon's perch, bends (mitred) into the
   lower rod - same thickness and profile as the perch - with the spiked end out past the corner and the sapphire + gold
   line running on along the bar's lower edge. Positioned in the bar's border-box coordinates (border 14px / 25px). */
.ed-bar-frame {
	position: absolute;
	top: -16px;
	width: 273px;
	height: 80px;
	z-index: 2;
	pointer-events: none;
	background: url('../images/dragon/hornram_l.webp') 0 0 / 273px 80px no-repeat;
	filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .65));
}
.ed-bar-frame.l { left: -61px; }
.ed-bar-frame.r { right: -61px; background-image: url('../images/dragon/hornram_r.webp'); }
@media (max-width: 860px) { .ed-bar-frame { display: none; } }

/* ---------------------------------------------------------------- header spacing: dragon | logo | Boosted | dragon with
   three equal gaps (measured from the dragons' visible edge: 181.5px into the 280px image, left/right -16px).
   gap = (hero width - both dragon edges - logo 340 - Boosted width) / 3 */
.ed-logo { left: calc(165.5px + (100% - 971px) / 3); margin-left: 0; }
.ed-box.ed-hero-boost { left: calc(505.5px + 2 * (100% - 971px) / 3); transform: none; }
@media (max-width: 1340px) {   /* Boosted 270px */
	.ed-logo { left: calc(165.5px + (100% - 941px) / 3); }
	.ed-box.ed-hero-boost { left: calc(505.5px + 2 * (100% - 941px) / 3); }
}
@media (max-width: 1240px) {   /* dragons 231px (edge 136.7px), Boosted 246px */
	.ed-logo { left: calc(136.7px + (100% - 859.4px) / 3); }
	.ed-box.ed-hero-boost { left: calc(476.7px + 2 * (100% - 859.4px) / 3); }
}
@media (max-width: 1200px) {   /* no Boosted in the header: the logo is centred again */
	.ed-logo { left: 50%; margin-left: -170px; }
}
@media (max-width: 860px) { .ed-logo { margin-left: -140px; } }

/* front page trailer */
.ed-trailer .ed-video { display: block; width: 100%; aspect-ratio: 16 / 9; height: auto; background: #000; border: 1px solid rgba(201, 168, 95, .35); border-radius: 4px; }

/* ---------------------------------------------------------------- front page: official launch countdown (2026-12-02, lib/dragon.php ed_launch_box) */
.ed-launch > .ed-bd { padding-bottom: 14px; overflow: hidden; }
.ed-launch > .ed-bd::before {   /* soft frost glow behind the clock */
	content: ''; position: absolute; left: 50%; top: 38%; width: 80%; height: 70%; transform: translate(-50%, -50%); pointer-events: none;
	background: radial-gradient(ellipse at center, rgba(70, 140, 255, .22), rgba(70, 140, 255, .06) 45%, transparent 70%);
	animation: edLcGlow 4s ease-in-out infinite;
}
.ed-lc { position: relative; text-align: center; }
.ed-lc p { margin: 0; }
.ed-lc-kick { font: var(--serif-i); color: var(--label); }
.ed-lc-date { margin: 2px 0 14px !important; font: 700 19px/1.3 var(--title); letter-spacing: .04em; color: var(--cream); text-shadow: 0 0 12px rgba(143, 182, 255, .35); }
.ed-lc-date abbr { text-decoration: none; color: var(--g2); font-size: 14px; }
.ed-lc-clock { display: flex; justify-content: center; align-items: center; gap: 10px; }
.ed-lc-clock[hidden] { display: none; }
.ed-lc-u {
	position: relative; width: 92px; padding: 10px 0 8px;
	background: linear-gradient(180deg, #1c2a4c, #0a1430 60%, #0d1730);
	border: 1px solid var(--g3); border-radius: 3px;
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .6), inset 0 1px 0 rgba(234, 217, 166, .25), 0 0 14px rgba(70, 140, 255, .18), 0 6px 12px rgba(0, 0, 0, .45);
}
.ed-lc-u::before { content: ''; position: absolute; inset: 3px; border: 1px solid var(--line-soft); border-radius: 2px; pointer-events: none; }
.ed-lc-u::after {   /* gold rivet on the top edge */
	content: ''; position: absolute; left: 50%; top: -5px; width: 8px; height: 8px; margin-left: -4px; transform: rotate(45deg);
	background: linear-gradient(135deg, #f1dfa8, #8a6d3b); border: 1px solid #201606;
}
.ed-lc-u b {
	display: block; font: 800 40px/1 var(--title); font-variant-numeric: tabular-nums; letter-spacing: .02em;
	background: linear-gradient(180deg, #fff6d8 10%, #ead9a6 45%, #c9a85f 70%, #8a6d3b); -webkit-background-clip: text; background-clip: text; color: transparent;
	filter: drop-shadow(0 2px 0 rgba(0, 0, 0, .7)) drop-shadow(0 0 8px rgba(201, 168, 95, .25));
}
.ed-lc-u b.tick { animation: edLcTick .45s ease-out; }
.ed-lc-u small { display: block; margin-top: 6px; font: 700 10px/1 var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--g2); }
.ed-lc-sep { flex: none; width: 7px; height: 7px; transform: rotate(45deg); background: var(--g2); box-shadow: 0 0 8px rgba(201, 168, 95, .6); opacity: .85; }
.ed-lc-live { padding: 10px 0 4px; font: 800 30px/1.2 var(--title); letter-spacing: .06em; color: var(--g1); text-shadow: 0 0 18px rgba(201, 168, 95, .55), 0 2px 0 #000; animation: edLcGlow 2.4s ease-in-out infinite; }
.ed-lc-live[hidden], .ed-lc-local[hidden] { display: none; }
.ed-lc-local { margin-top: 10px !important; font: 12px var(--body); color: var(--mut); }
.ed-lc-go { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.ed-launch.is-live .ed-lc-go .solid { box-shadow: 0 0 16px rgba(201, 168, 95, .5); }
@keyframes edLcTick { 0% { transform: translateY(-4px); opacity: .35; } 100% { transform: none; opacity: 1; } }
@keyframes edLcGlow { 0%, 100% { opacity: .75; } 50% { opacity: 1; } }
@media (max-width: 560px) {
	.ed-lc-clock { gap: 5px; }
	.ed-lc-u { width: 64px; padding: 8px 0 6px; }
	.ed-lc-u b { font-size: 28px; }
	.ed-lc-u small { font-size: 8.5px; letter-spacing: .1em; }
	.ed-lc-sep { width: 5px; height: 5px; }
	.ed-lc-date { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
	.ed-launch > .ed-bd::before, .ed-lc-live, .ed-lc-u b.tick { animation: none; }
}
