/* Knight Reborn player site. Fixed 1000px stage, client art for frames and buttons,
   one light direction (top-left) for every bevel. No scripts, no web fonts. */
:root {
  color-scheme: dark;
  --ink: #2b1d0e; --ink-soft: #3a2610; --oxblood: #6b1a12;
  --gold: #e0ce8f; --gold-lit: #fff4c2; --gold-dim: #a8905a; --text: #d7ccb3; --text-dim: #bcb298;
  --line-lit: #c9a55c; --line-mid: #8f7440; --line-dark: #5a3d12; --pit: #0d0906;
}
* { box-sizing: border-box; }
html { background: #0b0806; }
body {
  margin: 0; min-width: 1024px; color: var(--text); font: 12px/1.55 Tahoma, Verdana, Arial, sans-serif;
  background: radial-gradient(ellipse 900px 700px at 50% 0, transparent, #050302cc 100%), #0b0806 url("art/stone.jpg") center top / 640px;
  background-attachment: fixed, scroll;
}
a { color: var(--gold); }
a:hover { color: var(--gold-lit); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid #e6cf8a; outline-offset: 2px; }
h1, h2, h3, p, ul, ol, dl, table { margin: 0; }
img { display: block; }
.stage { width: 1000px; margin: 0 auto; padding: 14px 0 26px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 8px; top: 8px; z-index: 5; padding: 6px 10px; background: #000; }

/* Shared metal edge: lit top and left, shaded bottom and right, dark groove, inner line. */
.masthead, .mainnav, .box, .screen, .tile, .plaque {
  border: 2px solid; border-color: var(--line-lit) #6a4a17 var(--line-dark) #b08a45; outline: 1px solid var(--pit);
  box-shadow: inset 0 0 0 1px #1c130a, inset 0 0 0 2px #7d6230, inset 3px 3px 5px 2px #00000070, 0 5px 14px #000c;
}

/* Masthead */
.masthead { position: relative; display: grid; grid-template-columns: 316px 1fr; height: 204px; background: #070504; overflow: hidden; }
.masthead .crest { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 0 0 6px 6px;
  background: linear-gradient(100deg, #1a1410 0, #0a0706 70%, #070504), url("art/stone.jpg") 0 0 / 320px; background-blend-mode: multiply; }
.masthead .crest img { width: 282px; height: auto; mix-blend-mode: screen; }
.masthead .crest p { margin-top: 2px; color: #eee0ac; font: bold 10px Tahoma, sans-serif; letter-spacing: 3px; text-shadow: 1px 1px #000; }
.masthead .art { background: linear-gradient(90deg, #070504 0, #070504 19%, #07050400 48%), linear-gradient(#0000 70%, #0005), #070504 url("art/masthead.jpg") right top / auto 100% no-repeat; }
.masthead .who { position: absolute; right: 12px; bottom: 9px; padding: 3px 9px; font-size: 11px; color: #f2e6bf; background: #0b0806c9; border: 1px solid #6f5a30; text-shadow: 1px 1px #000; }
.masthead .who b { color: var(--gold-lit); }
/* Language plaques: two small steel tabs in the top corner of the banner */
.masthead .langs { position: absolute; right: 12px; top: 10px; display: flex; gap: 3px; padding: 3px; background: #0b0806d9;
  border: 2px solid; border-color: #dcdfd8 #5f645f #3f443f #b4b9b2; outline: 1px solid #0b0907; box-shadow: 0 3px 8px #000b; }
.masthead .langs a { display: block; min-width: 34px; padding: 0 7px; text-align: center; color: var(--gold); text-decoration: none;
  font: bold 12px/22px Georgia, "Times New Roman", serif; letter-spacing: 1px; text-shadow: 1px 1px #000;
  border: 2px solid; border-color: #eceee8 #6f746e #474c47 #c4c8c1; background: linear-gradient(#3b3530, #14110f 52%, #221d19);
  box-shadow: inset 1px 1px 0 #ffffff26, inset -1px -1px 0 #000a; }
.masthead .langs a:hover { color: var(--gold-lit); border-color: #ffffff #878c86 #5c615c #dfe2dc; }
.masthead .langs a[aria-current] { color: #fff1c9; background: linear-gradient(#6a231b, #3a0f0b 55%, #521813); }

/* Main menu: a heavy steel rail, each entry in its own riveted steel frame */
.mainnav { display: flex; gap: 4px; margin: 7px 0 11px; padding: 4px; background: #0a0807 url("art/stone.jpg") 0 0 / 320px;
  border: 5px solid; border-image: linear-gradient(168deg, #f2f4ee 0, #b4b9b2 14%, #666b66 31%, #dcdfd8 47%, #8a8f89 63%, #4f544f 78%, #c5c9c2 91%, #595e59) 1;
  box-shadow: inset 0 0 0 1px #0b0907, inset 0 0 0 2px #9da29b40, inset 3px 3px 6px 2px #000a, 0 0 0 1px #0b0907, 0 5px 14px #000c; }
.mainnav a { flex: 1 1 auto; display: block; padding: 0 9px; text-align: center; white-space: nowrap; color: var(--gold); text-decoration: none; text-shadow: 1px 1px #000;
  font: bold 11px/30px Georgia, "Times New Roman", serif; letter-spacing: .6px; text-transform: uppercase;
  border: 3px solid; border-color: #eceee8 #6f746e #474c47 #c4c8c1; outline: 1px solid #0b0907;
  background: radial-gradient(circle at 4px 4px, #f3f5ef 0 1px, #7c817b 1.6px, #1a1c1a 2.4px, #0000 3px),
    radial-gradient(circle at calc(100% - 4px) 4px, #e2e5de 0 1px, #6d726c 1.6px, #1a1c1a 2.4px, #0000 3px),
    radial-gradient(circle at 4px calc(100% - 4px), #d5d8d1 0 1px, #656a64 1.6px, #1a1c1a 2.4px, #0000 3px),
    radial-gradient(circle at calc(100% - 4px) calc(100% - 4px), #c2c6bf 0 1px, #595e59 1.6px, #1a1c1a 2.4px, #0000 3px),
    linear-gradient(#3b3530, #14110f 52%, #221d19);
  box-shadow: inset 0 0 0 1px #0f0d0b, inset 1px 1px 0 1px #ffffff26, inset -1px -1px 0 1px #000a; }
.mainnav a:hover { color: var(--gold-lit); border-color: #ffffff #878c86 #5c615c #dfe2dc; }
.mainnav a[aria-current] { color: #fff1c9; background-color: #4a1612;
  background-image: radial-gradient(circle at 4px 4px, #f3f5ef 0 1px, #7c817b 1.6px, #1a1c1a 2.4px, #0000 3px),
    radial-gradient(circle at calc(100% - 4px) 4px, #e2e5de 0 1px, #6d726c 1.6px, #1a1c1a 2.4px, #0000 3px),
    radial-gradient(circle at 4px calc(100% - 4px), #d5d8d1 0 1px, #656a64 1.6px, #1a1c1a 2.4px, #0000 3px),
    radial-gradient(circle at calc(100% - 4px) calc(100% - 4px), #c2c6bf 0 1px, #595e59 1.6px, #1a1c1a 2.4px, #0000 3px),
    linear-gradient(#7a251d, #3a0f0c 60%, #4a1612); }

/* Columns */
.columns { display: grid; grid-template-columns: 232px 756px; gap: 12px; align-items: start; }
.side { display: grid; gap: 10px; }
.main { display: grid; gap: 12px; min-width: 0; }

/* Small framed box */
.box { background: #14100c url("art/stone.jpg") 0 0 / 320px; padding: 3px; }
.box h2 { padding: 5px 9px 6px; color: #f1dfa8; font: bold 11px Georgia, serif; letter-spacing: 1px; text-transform: uppercase; text-shadow: 1px 1px #000;
  background: linear-gradient(#6c2019, #3b100d 55%, #4c1713); border-bottom: 1px solid #000; box-shadow: inset 0 1px #e09a7a55; }
.box .in { padding: 9px 10px 10px; font-size: 11px; background: #0c0907b8; }
.box .in p + p { margin-top: 6px; }
.box ul { list-style: none; padding: 0; }
.rows li { border-bottom: 1px solid #2c2318; }
.rows li:last-child { border-bottom: 0; }
.rows a { display: flex; justify-content: space-between; align-items: center; gap: 6px; padding: 4px 3px; text-decoration: none; }
.rows a:hover, .rows a[aria-current] { background: #3a2a1466; color: var(--gold-lit); }
.rows a[aria-current] { box-shadow: inset 2px 0 #c9992f; }
.rows .n { color: var(--text-dim); font-size: 10px; }
.rows .label { display: flex; align-items: center; gap: 7px; }
.crests { display: flex; justify-content: space-around; align-items: center; margin: 2px 0 8px; }
.crests img { height: 62px; width: auto; filter: drop-shadow(1px 2px 2px #000); }

/* Game window: the client's gold frame, nine-sliced */
.window { border: 24px solid transparent; border-image: url("art/frame_gold.png") 46 86 46 86 fill / 46px 86px stretch; padding: 14px 20px 26px; filter: drop-shadow(0 5px 9px #000b); }
.window > h1, .window > h2 { margin: -2px 0 14px; padding-bottom: 9px; text-align: center; color: #eadba3; font: 21px Georgia, "Times New Roman", serif; font-variant: small-caps; text-shadow: 1px 2px #000;
  border-bottom: 1px solid #6f6039; box-shadow: 0 1px #0009; }
.window > h2 { font-size: 17px; }
/* The welcome title is long (more so in Turkish); a line of space keeps it clear of the frame's corner scrolls. */
.window.welcome > h1 { margin-top: 20px; }
.window p + p { margin-top: 8px; }
.lead { font-size: 13px; color: #e6dcc3; }

/* Parchment: tiled body, ruled edge, ink vines multiplied into the corners */
.scroll { position: relative; padding: 30px 38px 50px; color: var(--ink); border: 3px solid #17100a; outline: 1px solid #000;
  box-shadow: inset 0 0 0 3px #c79a3f, inset 0 0 0 4px #5c3d12, inset 0 0 38px 6px #6b4a1e66, 0 5px 14px #000c;
  background: url("art/vine-tl.png") 6px 6px no-repeat, url("art/vine-tr.png") right 6px top 6px no-repeat,
    url("art/vine-bl.png") left 6px bottom 6px no-repeat, url("art/vine-br.png") right 6px bottom 6px no-repeat,
    #d3b27c url("art/parchment-tile.jpg");
  background-blend-mode: multiply, multiply, multiply, multiply, normal; }
.scroll h1 { text-align: center; color: var(--oxblood); font: 24px Georgia, "Times New Roman", serif; font-variant: small-caps; text-shadow: 0 1px #f1dcae; }
.scroll .sub { margin: 2px 0 14px; text-align: center; color: var(--ink-soft); font: italic 13px Georgia, serif; text-shadow: 0 1px #f3e1b566; }
.scroll h2 { margin: 18px 0 6px; padding-bottom: 3px; color: var(--oxblood); font: bold 15px Georgia, serif; border-bottom: 1px solid #7a5a2a88; box-shadow: 0 1px #f3e1b566; }
.scroll h3 { margin: 12px 0 3px; font: bold 12px Tahoma, sans-serif; color: #3a2610; }
.scroll p { margin: 6px 0; }
.scroll a { color: #5a220a; font-weight: bold; }
.scroll a:hover { color: #9a3413; }
.scroll ul, .scroll ol { padding-left: 20px; margin: 6px 0; }
.scroll li { margin: 3px 0; }
.scroll table { width: 100%; border-collapse: collapse; margin: 8px 0; font-size: 11px; }
.scroll th, .scroll td { padding: 5px 7px; text-align: left; vertical-align: top; border: 1px solid #7a5a2a99; }
.scroll th { background: #6b1a1222; color: #3a160c; font-family: Georgia, serif; }
.scroll code { font: bold 11px "Courier New", monospace; color: #3a160c; }
.rule { height: 9px; margin: 12px 60px; border: 0; background: linear-gradient(90deg, #0000, #7a5a2a 20%, #3a2610 50%, #7a5a2a 80%, #0000) center / 100% 1px no-repeat,
  radial-gradient(circle, #6b1a12 0 3px, #0000 4px) center / 9px 9px no-repeat; }

/* Buttons: the client's gold plate */
.btn { display: inline-block; min-width: 150px; height: 34px; padding: 0 16px; border: 0; border-radius: 0; cursor: pointer; text-align: center; text-decoration: none; white-space: nowrap;
  background: #b7a46c url("art/button-gold.png") center / 100% 100% no-repeat; color: #2d2816; font: bold 12px/34px Georgia, serif; text-shadow: 0 1px #eee4bb; filter: drop-shadow(0 2px 3px #000); }
.btn:hover { background-image: url("art/button-selected.png"); color: #102a28; }
.btn:active { transform: translateY(1px); }
.btn.small { min-width: 0; height: 26px; padding: 0 12px; font-size: 11px; line-height: 26px; }
.btn.wide { display: block; width: 100%; }
.scroll .btn { color: #2d2816; }
.scroll .actions { margin: 18px 0 12px; }
.linkbtn { border: 0; padding: 0; background: none; color: var(--gold); font: inherit; text-decoration: underline; cursor: pointer; }
.linkbtn:hover { color: var(--gold-lit); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 12px; }
.actions.centre { justify-content: center; }

/* Forms */
.field { display: grid; grid-template-columns: 124px minmax(0, 1fr); gap: 8px; align-items: start; margin: 0 0 12px; }
.field > label, .stack > label { display: block; padding-top: 7px; font-weight: bold; font-size: 11px; color: #d5c28b; text-shadow: 1px 1px #000; }
.stack > label { padding: 0 0 4px; }
.stack { margin-bottom: 12px; }
.spaced { margin-top: 14px; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
input[type=text], input[type=password], input[type=search], select, textarea {
  display: block; width: 100%; min-width: 0; height: 29px; padding: 5px 8px; border-radius: 0; color: #f0e6c8; font: 12px Tahoma, sans-serif;
  background: #060606; border: 1px solid #867750; border-top-color: #554b35; border-left-color: #554b35; box-shadow: inset 2px 2px 3px #000, 0 1px #c8b37b22; }
textarea { height: 190px; resize: vertical; line-height: 1.5; }
select { padding: 4px 6px; }
input::placeholder, textarea::placeholder { color: #8f866a; }
.help { margin: 4px 0 0; font-size: 11px; line-height: 1.5; color: var(--text-dim); }
.note { margin: 14px 0; padding: 8px 0; font-size: 11px; line-height: 1.6; color: #c9bea2; border-top: 1px dotted #665a3c; border-bottom: 1px dotted #665a3c; }
.note strong { color: #d6b67b; }
.code { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 12px; align-items: center; }
.code img { width: 220px; height: 62px; border: 1px solid #8e7a4d; }
.code input { height: 37px; text-align: center; font-size: 17px; letter-spacing: 3px; text-transform: uppercase; }
.codehead { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 7px; }
.codehead label { font-weight: bold; font-size: 11px; color: #d5c28b; }
.codehead a { font-size: 10px; text-decoration: none; }
.submit { margin: 18px 0 12px; text-align: center; }
.submit .btn { min-width: 192px; height: 37px; line-height: 37px; }
.fine { padding-top: 9px; border-top: 1px solid #55472d; text-align: center; font-size: 11px; line-height: 1.6; color: #c6b997; }
.msg { margin-bottom: 14px; padding: 9px 11px; font-size: 12px; line-height: 1.6; border: 1px solid #6d6243; background: #080705cc; }
.msg.error { color: #f1b49a; border-color: #8b5841; }
.msg.ok { color: #d7e6ad; border-color: #7e8957; }
.msg.info { color: #e9dcb2; }
.scroll .msg { background: #1a1209e8; }
.scroll .field > label, .scroll .stack > label, .scroll .codehead label { color: #3a2610; text-shadow: none; }
.scroll .help, .scroll .fine { color: var(--ink-soft); border-color: #7a5a2a88; }

/* Sign-in and registration screen: the login painting with the window on its left */
.screen { position: relative; min-height: 752px; padding: 22px 24px 26px; background: linear-gradient(#0b080600 690px, #0b0806 750px), #0b0806 url("art/elmorad-login.webp") center top / 100% auto no-repeat; }
.screen.karus { overflow: hidden; background: linear-gradient(90deg, #0b0806 0, #0b0806d9 50%, #0b080640 100%), linear-gradient(#0b080600 470px, #0b0806 700px), #0b0806 url("art/adonis.jpg") right top / 1000px auto no-repeat; }
.screen .figure { position: absolute; right: -6px; top: 128px; width: 520px; height: auto; filter: drop-shadow(4px 6px 8px #000d); -webkit-mask-image: linear-gradient(#000 74%, #0000 97%); mask-image: linear-gradient(#000 74%, #0000 97%); }
.screen .window, .screen .under { position: relative; }
.screen .window { width: 476px; }
.screen.short .window { width: 420px; margin-top: 60px; }
.screen .under { width: 476px; margin-top: 10px; padding: 7px 10px; text-align: center; font-size: 11px; background: #0b0806d0; border: 1px solid #6f5a30; }
.screen.short .under { width: 420px; }

/* Front page: the latest changes are set larger and heavier */
.latest h1 { font-size: 31px; font-weight: bold; }
.latest .sub { font-size: 14px; margin-bottom: 16px; }
.latest .entries li { grid-template-columns: 24px 1fr; padding: 9px 4px 10px 2px; color: #22150a; font: 600 14px/1.5 Tahoma, Verdana, sans-serif; }
.latest .entries b { color: #4a120c; font: bold 17px/1.3 Georgia, "Times New Roman", serif; }
.latest .entries .gem { width: 15px; height: 15px; margin-top: 4px; }
.latest .entries .kind { display: block; margin: 3px 0 0; font: bold 11px Tahoma, sans-serif; color: var(--ink-soft); }

/* What's New: the short list, and its before/after pictures (no script: radio buttons) */
.news { list-style: none; padding: 0 !important; margin: 0 !important; }
.news > li { display: grid; grid-template-columns: 26px minmax(0, 1fr); padding: 10px 2px 11px; margin: 0; border-bottom: 1px dotted #7a5a2a77; }
.news > li:last-child { border-bottom: 0; }
.news p { margin: 0; color: #22150a; font: 600 14px/1.5 Tahoma, Verdana, sans-serif; }
.news .t { margin: 0 0 3px; color: #4a120c; font: bold 18px/1.3 Georgia, "Times New Roman", serif; }
.news .gem { width: 15px; height: 15px; margin-top: 6px; }
.news .more { white-space: nowrap; font: bold 12px Tahoma, sans-serif; }
.cmp { margin: 10px 0 4px; }
.cmp .frame { --pos: 50%; position: relative; overflow: hidden; border: 2px solid; border-color: var(--line-lit) #6a4a17 var(--line-dark) #b08a45; outline: 1px solid var(--pit); background: #0b0806; box-shadow: 0 4px 10px #0009; }
.cmp.live .frame { cursor: ew-resize; touch-action: pan-y; user-select: none; }
.cmp .frame img, .cmp .frame video { display: block; width: 100%; height: auto; pointer-events: none; }
.cmp .frame .before { position: absolute; inset: 0; height: 100%; object-fit: cover; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.cmp .tag { position: absolute; top: 8px; padding: 0 8px; color: #f3ead0; text-shadow: 1px 1px #000; font: bold 10px/19px Georgia, serif; letter-spacing: .6px; text-transform: uppercase; pointer-events: none;
  border: 1px solid; border-color: #eceee8 #6f746e #14110f #c4c8c1; background: linear-gradient(#3b3530e6, #14110fe6); }
.cmp .tag.l { left: 8px; } .cmp .tag.r { right: 8px; border-color: #e9c877 #6a4a17 #2a1708 #b08a45; background: linear-gradient(#7a251de6, #3a0f0ce6); }
.cmp .bar { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 4px; margin-left: -2px; pointer-events: none;
  background: linear-gradient(90deg, #5a3d12, #f4dc8e 45%, #c9992f 60%, #4a300c); box-shadow: 0 0 0 1px #0b0806, 0 0 8px #000c; }
.cmp .bar i { position: absolute; top: 50%; left: 50%; width: 38px; height: 38px; margin: -19px 0 0 -19px; border-radius: 50%;
  background: radial-gradient(circle at 34% 28%, #fff9 0 8%, #fff0 30%), radial-gradient(circle at 50% 60%, #a83226, #3a0f0c 78%);
  box-shadow: 0 0 0 1px #20160b, 0 0 0 3px #c9a55c, 1px 1px 0 4px #5a3d12, 0 3px 8px 4px #000a, inset -2px -3px 4px #0008; }
.cmp .bar i::before, .cmp .bar i::after { content: ""; position: absolute; top: 50%; margin-top: -6px; border: 6px solid transparent; }
.cmp .bar i::before { left: 2px; border-right-color: #f6e7bd; } .cmp .bar i::after { right: 2px; border-left-color: #f6e7bd; }
.cmp.drag .bar i, .cmp .frame.drag .bar i { background: radial-gradient(circle at 34% 28%, #fffb 0 8%, #fff0 30%), radial-gradient(circle at 50% 60%, #c8442f, #4a1612 78%); }
.cmp input[type=range] { position: absolute; left: 0; bottom: 0; width: 100%; height: 1px; margin: 0; opacity: 0; pointer-events: none; }
.cmp .frame:has(input:focus-visible) { outline: 2px solid #e6cf8a; outline-offset: 2px; }
.cmp figcaption { margin-top: 5px; font: italic 13px/1.45 Georgia, serif; color: var(--ink-soft); text-shadow: 0 1px #f3e1b566; }

/* Home tiles */
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tile { position: relative; min-height: 150px; padding: 12px 14px 12px 150px; background: #14100c url("art/stone.jpg") 0 0 / 320px; overflow: hidden; }
.tile img { position: absolute; left: -8px; bottom: -34px; width: 168px; height: auto; filter: drop-shadow(2px 2px 3px #000); }
.tile h2 { color: #eadba3; font: 16px Georgia, serif; font-variant: small-caps; text-shadow: 1px 1px #000; }
.tile p { margin: 5px 0 9px; font-size: 11px; }
.tile.map { padding-left: 14px; background: linear-gradient(90deg, #14100cf2 45%, #14100c66), url("art/adonis.jpg") right center / 420px; }

/* Change list */
.gem { flex: none; display: inline-block; width: 11px; height: 11px; border-radius: 50%; vertical-align: -1px;
  background: radial-gradient(circle at 34% 28%, #fffc 0 10%, #fff0 34%), radial-gradient(circle at 50% 58%, var(--g, #c9992f), #0009 115%), var(--g, #c9992f);
  box-shadow: 0 0 0 1px #20160b, 0 0 0 2px #b8974f, 1px 1px 0 2px #5a3d12, inset -1px -2px 2px #0007; }
.c-graphics { --g: #3f8f86; } .c-combat { --g: #a83226; } .c-quests { --g: #c9992f; } .c-monsters { --g: #5d7a2e; }
.c-items { --g: #7a4a8f; } .c-zones { --g: #a0662b; } .c-interface { --g: #4f6f9a; } .c-browser { --g: #4a8aa0; }
.c-launcher { --g: #8b8b80; } .c-knights { --g: #a23a5a; } .c-performance { --g: #c2701e; } .c-fixes { --g: #7d7a3a; } .c-account { --g: #6d7f8e; }
.jump { margin: 0 0 4px; text-align: center; font-size: 11px; color: var(--ink-soft); }
.jump a { display: inline-block; min-width: 20px; margin: 1px; padding: 0 3px; text-align: center; text-decoration: none; border: 1px solid #7a5a2a88; background: #f3e1b544; }
.jump a:hover { background: #6b1a12; color: #f6e7bd; }
.day { margin-top: 16px; }
.day h2 { display: flex; justify-content: space-between; align-items: baseline; margin: 0 0 4px; }
.day h2 small { font: 11px Tahoma, sans-serif; color: var(--ink-soft); }
.entries { list-style: none; padding: 0 !important; margin: 0 !important; }
.entries li { display: grid; grid-template-columns: 17px 1fr; gap: 0 4px; padding: 5px 4px 5px 2px; margin: 0; border-bottom: 1px dotted #7a5a2a77; }
.entries li:last-child { border-bottom: 0; }
.entries .gem { margin-top: 4px; }
.entries b { color: #2a1708; }
.entries .kind { margin-left: 6px; font: 10px Tahoma, sans-serif; color: var(--ink-soft); white-space: nowrap; }
.entries .kind a { color: var(--ink-soft); font-weight: normal; }
.seal { display: inline-block; margin-left: 5px; padding: 0 5px; font: bold 9px/14px Tahoma, sans-serif; letter-spacing: .4px; text-transform: uppercase; color: #f6dcc4; background: linear-gradient(#8a2a20, #5a1610); border: 1px solid #3a0c08; vertical-align: 1px; }
.pager { display: flex; justify-content: space-between; margin-top: 18px; font: bold 12px Georgia, serif; }
.empty { padding: 26px 0; text-align: center; font: italic 13px Georgia, serif; color: var(--ink-soft); }
.search { display: grid; grid-template-columns: 1fr auto; gap: 5px; }
.search input { height: 26px; }

/* Browser Knights page */
.heroes { position: relative; height: 230px; margin: 4px 0 6px; overflow: hidden; border: 1px solid #5c3d12; box-shadow: inset 0 0 30px #000;
  background: linear-gradient(#0000 55%, #14100ccc), url("art/adonis.jpg") center 42% / cover; }
.heroes img { position: absolute; bottom: -60px; height: 290px; width: auto; filter: drop-shadow(3px 3px 4px #000c); }
.heroes .k { left: 26px; } .heroes .e { right: 26px; }
.heroes .plaque { position: absolute; left: 50%; bottom: 16px; width: 260px; margin-left: -130px; padding: 8px 10px 10px; text-align: center; background: #0b0806e6; }
.heroes .plaque b { display: block; color: #eadba3; font: 19px Georgia, serif; font-variant: small-caps; }
.heroes .plaque span { font-size: 10px; letter-spacing: 2px; color: #c4ab72; }
.steps { counter-reset: step; list-style: none; padding: 0 !important; }
.steps li { position: relative; padding: 2px 0 6px 32px; }
.steps li::before { counter-increment: step; content: counter(step); position: absolute; left: 0; top: 1px; width: 21px; height: 21px; border-radius: 50%; text-align: center; color: #f6e7bd; font: bold 11px/21px Georgia, serif;
  background: radial-gradient(circle at 35% 30%, #b3493c, #5a1610 70%); box-shadow: 0 0 0 1px #20160b, 0 0 0 2px #b8974f, 1px 1px 0 2px #5a3d12; }

/* Operator panel */
.panelbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.tabs { display: flex; gap: 4px; }
.tabs a { padding: 4px 11px; text-decoration: none; font: bold 11px Georgia, serif; color: var(--gold); border: 1px solid #6f5a30; border-bottom: 0; background: linear-gradient(#2a2118, #14100c); }
.tabs a[aria-current] { color: #fff1c9; background: linear-gradient(#7a251d, #3a0f0c); }
.grid { width: 100%; border-collapse: collapse; font-size: 11px; }
.grid th, .grid td { padding: 5px 7px; text-align: left; vertical-align: top; border: 1px solid #3a2e1c; }
.grid th { color: #d5c28b; background: #20170f; font-family: Georgia, serif; }
.grid tr:nth-child(even) td { background: #ffffff06; }
.grid td.nowrap { white-space: nowrap; }
.status { display: inline-block; padding: 0 6px; font: bold 9px/15px Tahoma, sans-serif; text-transform: uppercase; border: 1px solid #000; }
.status.new { background: #7a251d; color: #ffe2cf; } .status.open { background: #7a5a16; color: #fff0c2; } .status.resolved { background: #3d5a26; color: #e4f2c8; }
.facts { display: grid; grid-template-columns: 110px 1fr; gap: 4px 10px; margin-bottom: 12px; font-size: 11px; }
.facts dt { color: #d5c28b; font-weight: bold; }
.facts dd { margin: 0; }
.reporttext { padding: 10px 12px; white-space: pre-wrap; overflow-wrap: anywhere; font: 12px/1.6 Tahoma, sans-serif; color: #efe6cc; background: #060606; border: 1px solid #554b35; box-shadow: inset 2px 2px 3px #000; }
.inline { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 12px; }
.inline select { width: auto; }
.check { display: flex; gap: 6px; align-items: center; font-size: 11px; }

/* Play page: one parchment section per way to play */
p.centre { margin-top: 10px; text-align: center; font-size: 11px; }
.play > h1 + p { margin: 12px 0 0; text-align: center; }
.play .way { margin-top: 22px; }
.play .way h2 { font-size: 17px; }
.play .way th { width: 120px; }
.play .hash { font-size: 10px; word-break: break-all; }
.play .actions p { margin: 0; font-style: italic; }

/* Footer */
.foot { margin-top: 14px; }
.foot .band { height: 70px; background: #000 url("art/ornament.jpg") center / 1000px 70px no-repeat; border-top: 1px solid #6a4a17; border-bottom: 1px solid #6a4a17; outline: 1px solid var(--pit); }
.foot .links { display: flex; justify-content: space-between; gap: 14px; padding: 9px 4px 0; font-size: 11px; color: #c8ba9a; text-shadow: 1px 1px #000; }
.foot .links a { text-decoration: none; }
.foot p.keep { padding: 5px 4px 0; font-size: 11px; color: #b0a586; }

@media (max-width: 1023px) {
  body { min-width: 0; }
  .stage { width: auto; padding: 8px; }
  .masthead { grid-template-columns: 1fr; height: auto; }
  .masthead .art { height: 120px; }
  .mainnav { flex-wrap: wrap; }
  .mainnav a { flex: 1 0 30%; }
  .columns, .tiles { grid-template-columns: minmax(0, 1fr); }
  .main { order: -1; }
  .screen { padding: 12px; }
  .screen .window, .screen.short .window, .screen .under, .screen.short .under { width: auto; max-width: 476px; margin-left: auto; margin-right: auto; }
  .scroll { padding: 24px 18px; }
  .field, .code { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .field > label { padding-top: 0; }
  .window { padding: 10px 6px; }
  .heroes img { height: 200px; bottom: -40px; }
  .grid { display: block; overflow-x: auto; }
}
