/* Colours and images after the 2007 webzengames.com Huxley page (Css/basic.css: HuxleybasicBg,
   HuxleysubBg, the Huxley box and title graphics). */
:root {
  --bg: #1b1007;
  --box: #120a04;
  --edge: #3a2511;
  --text: #c9bba5;
  --muted: #8f7f68;
  --orange: #e2802b;
  --orange-hi: #ffa24a;
  --head: #f0dcb8;
  color-scheme: dark;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg) url(img/HuxleysubBg.gif) repeat-x top;
  color: var(--text);
  font: 13px/1.6 Verdana, Tahoma, sans-serif;
}
a { color: var(--orange); }
img { max-width: 100%; height: auto; }
.page { max-width: 1000px; margin: 0 auto; padding: 0 16px 32px; }

/* Top bar */
.top { display: flex; align-items: center; gap: 24px; padding: 14px 0; border-bottom: 1px solid var(--edge); }
/* Same mark as the launcher banner: the spinning lunarite crystal (rendered from the game's
   S_LUNA_FULL mesh) and the server name. */
.logo { display: flex; align-items: center; gap: 8px; text-decoration: none; }
.logo img { display: block; width: 44px; height: 56px; }
.logo span { color: var(--orange); font: bold 13px/1 Verdana, sans-serif; letter-spacing: 3px; }
.menu { display: flex; gap: 2px; margin-left: auto; flex-wrap: wrap; }
.menu a {
  color: #d8c7a8; text-decoration: none; font: bold 10px/1 Verdana, sans-serif; letter-spacing: .1em; text-transform: uppercase;
  padding: 9px 14px; background: linear-gradient(#3b3b3b, #1e1e1e); border: 1px solid #4a4a4a;
}
.menu a:hover { color: #fff; background: linear-gradient(#5a3a18, #2e1c0b); }
.lang-switch { color: #d8c7a8; font: bold 11px/1 Verdana, "Malgun Gothic", sans-serif; text-decoration: none;
  padding: 9px 10px; border: 1px solid #4a4a4a; }
.lang-switch:hover { color: #fff; border-color: var(--orange); }
.download-top {
  background: linear-gradient(#ff7a1a, #c4400a); color: #fff; text-decoration: none; font: bold 11px/1 Verdana, sans-serif;
  letter-spacing: .1em; text-transform: uppercase; padding: 10px 16px; border: 1px solid #ffab5e;
}
.download-top:hover { background: linear-gradient(#ff9a3d, #d4500f); }

.banner { margin: 16px 0; border: 1px solid var(--edge); background: #000; text-align: center; }
.banner img { display: block; margin: 0 auto; }

/* Two columns like the original: content and a side column */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 24px; align-items: start; }
.box { background: var(--box); border: 1px solid var(--edge); padding: 16px 20px 20px; margin-bottom: 18px; }
.box h2 { margin: 0 0 14px; line-height: 0; }
/* Korean pages: the section title as text on the title image's own striped bar. */
.box h2.title-text { width: 275px; max-width: 100%; height: 20px; padding-left: 7px; box-sizing: border-box;
  background: url(img/title-bar.png) repeat-x; line-height: 20px; color: #e8b25a;
  font: bold 13px/20px "Malgun Gothic", "Apple SD Gothic Neo", sans-serif; letter-spacing: .12em;
  text-shadow: 0 1px 0 #000; }
body.ko { word-break: keep-all; }
.box p { margin: 0 0 12px; }
.box h3 { color: var(--head); font: bold 12px/1.4 Verdana, sans-serif; text-transform: uppercase; letter-spacing: .06em; margin: 16px 0 6px; }
.box h3 span { color: var(--orange); margin-right: 6px; }
.intro-art { display: block; border: 1px solid var(--edge); margin-bottom: 14px; }
.specs { display: grid; grid-template-columns: max-content 1fr; gap: 4px 18px; margin: 0; }
.specs dt { color: var(--head); font-weight: bold; }
.specs dd { margin: 0; }
.specs .live { color: #7fd36b; font-weight: bold; }

.shots { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px 10px; }
.shots a { display: flex; flex-direction: column; align-items: center; gap: 6px; text-decoration: none; }
.shots a > img:first-child { border: 1px solid var(--edge); }
.shots a:hover > img:first-child { border-color: var(--orange); }

.side .panel { background: #0f0803; border: 1px solid var(--edge); padding: 16px; margin-bottom: 18px; }
.side h2 { color: var(--orange); font: bold 12px/1 Verdana, sans-serif; text-transform: uppercase; letter-spacing: .12em; margin: 0 0 12px; }
.side ol { margin: 0; padding-left: 18px; }
.side ol li + li { margin-top: 6px; }
.download { text-align: center; background: linear-gradient(#2a1608, #0f0803); }
.download p { margin: 0 0 14px; }
.btn {
  display: block; padding: 14px 10px; background: linear-gradient(#ff7a1a, #b8380a); color: #fff; text-decoration: none;
  font: bold 14px/1 Verdana, sans-serif; letter-spacing: .08em; text-transform: uppercase; border: 1px solid #ffab5e;
  box-shadow: 0 0 18px rgba(255,120,30,.25);
}
.btn:hover { background: linear-gradient(#ff9a3d, #c94a0e); }
.small { font-size: 11px; color: var(--muted); margin-top: 10px !important; margin-bottom: 0 !important; }
.links a { display: block; padding: 4px 0; }

.foot { border-top: 1px solid var(--edge); margin-top: 8px; padding-top: 16px; color: var(--muted); font-size: 11px; text-align: center; }
.foot p { max-width: 640px; margin: 0 auto; }

.viewer { padding: 0; border: 1px solid var(--edge); background: #000; max-width: min(92vw, 820px); }
.viewer::backdrop { background: rgba(0,0,0,.8); }
.viewer img { display: block; }
.viewer form { position: absolute; right: 6px; top: 4px; }
.viewer button { background: rgba(0,0,0,.6); color: #fff; border: 1px solid #555; font-size: 20px; line-height: 1; padding: 2px 9px; cursor: pointer; }

[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--orange-hi); outline-offset: 2px; }

@media (max-width: 800px) {
  .layout { grid-template-columns: 1fr; }
  .side { order: -1; }
  .menu { display: none; }
  .shots { grid-template-columns: repeat(2, 1fr); }
}
