* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  color: #1a1208;
  font-family: "Crimson Text", "Times New Roman", serif;
  cursor: default;
  background: #1a0c08;
}

body {
  background:
    linear-gradient(180deg, rgba(20, 8, 4, 0.35) 0%, rgba(12, 6, 4, 0.72) 38%, rgba(10, 6, 4, 0.92) 100%),
    url("../img/redridge-panorama.png") center top / cover no-repeat fixed;
}

.hidden { display: none !important; }

.zone-sky { display: none; }

.hero {
  position: relative;
  min-height: 280px;
  background:
    linear-gradient(180deg, rgba(8,4,2,0.15), rgba(12,6,4,0.75)),
    url("../img/lakeshire-town.png") center 40% / cover no-repeat;
  border-bottom: 4px solid #c9a227;
  box-shadow: 0 8px 24px rgba(0,0,0,0.55);
}

.hero-inner {
  padding: 28px 24px 40px;
  text-align: center;
  color: #f4e6c1;
  text-shadow: 0 2px 8px #000;
}

.zone-chip {
  display: inline-block;
  border: 1px solid #c9a227;
  padding: 3px 12px;
  font-family: Cinzel, serif;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: rgba(20,10,4,0.55);
}

.hero-title {
  font-family: Cinzel, "Times New Roman", serif;
  font-size: clamp(36px, 6vw, 64px);
  color: #f3d27a;
  text-shadow: 0 0 18px rgba(180,40,20,0.55), 2px 3px 0 #3a1408;
  margin: 12px 0 6px;
}

.hero-sub {
  font-family: Cinzel, serif;
  font-size: 16px;
  color: #e8d9b0;
  margin: 0 0 8px;
}

.hero-flavor {
  font-style: italic;
  max-width: 640px;
  margin: 0 auto;
  color: #d8c39a;
}

.ticker {
  background: #3a140c;
  color: #f3d27a;
  font-family: Cinzel, serif;
  font-size: 12px;
  letter-spacing: 0.06em;
  padding: 6px 0;
  border-bottom: 2px solid #c9a227;
}

.page {
  width: min(1100px, 98vw);
  margin: 18px auto 64px;
}

.win {
  background:
    linear-gradient(180deg, rgba(58, 36, 18, 0.97), rgba(42, 24, 12, 0.97));
  border: 3px solid #c9a227;
  box-shadow:
    0 0 0 2px #5a320c,
    0 10px 28px rgba(0,0,0,0.55),
    inset 0 0 40px rgba(0,0,0,0.25);
  margin-bottom: 22px;
}

.titlebar {
  background: linear-gradient(90deg, #5c1a10, #8a3a14 40%, #5c1a10);
  color: #f3d27a;
  font-family: Cinzel, serif;
  font-size: 13px;
  font-weight: 700;
  padding: 7px 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid #c9a227;
}

.tb-left { display: flex; align-items: center; gap: 8px; }
.tb-av { width: 22px; height: 22px; border-radius: 2px; border: 1px solid #c9a227; }

.win-btns { display: flex; gap: 3px; }
.win-btn {
  width: 18px;
  height: 16px;
  font-size: 11px;
  line-height: 12px;
  padding: 0;
  background: #6b4220;
  color: #f3d27a;
  border: 2px solid #e8c56a;
  border-right-color: #3a2208;
  border-bottom-color: #3a2208;
  font-family: Tahoma, sans-serif;
}

.menubar {
  display: flex;
  gap: 16px;
  padding: 4px 10px;
  font-family: Cinzel, serif;
  font-size: 12px;
  color: #e8d9b0;
  border-bottom: 1px solid #8a5a20;
}
.menubar span:hover { background: #8a3a14; color: #fff8dc; }

.toolbar {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 6px 10px;
  font-family: Cinzel, serif;
  font-size: 12px;
  color: #e8d9b0;
}

.progress-lie { white-space: nowrap; }
.progress-track {
  flex: 1;
  height: 16px;
  background: #1a0c08;
  border: 2px inset #8a5a20;
}
#progress-bar {
  height: 100%;
  width: 8%;
  background: repeating-linear-gradient(90deg, #8a3a14 0 8px, #c9a227 8px 10px);
  transform-origin: left;
}

.visitor { font-family: "Courier New", monospace; color: #f3d27a; }

.stage {
  background:
    linear-gradient(rgba(243, 226, 186, 0.92), rgba(236, 214, 164, 0.94)),
    url("../img/lakeshire-town.png") center / cover;
  min-height: 520px;
  padding: 16px 18px 22px;
  font-size: 17px;
  color: #1a1208;
}

.statusbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-family: Cinzel, serif;
  font-size: 11px;
  color: #e8d9b0;
  padding: 4px 8px;
  border-top: 2px solid #8a5a20;
}
.live-chip {
  color: #e8d9b0;
  text-decoration: none;
  border: 1px solid #8a5a20;
  padding: 1px 8px;
  background: #1a0c08;
  white-space: nowrap;
}
.live-chip.live {
  color: #f3d27a;
  border-color: #c9a227;
  box-shadow: 0 0 8px rgba(180, 40, 20, 0.55);
}
.live-chip.offline { color: #9a8a70; }
.live-chip.unknown, .live-chip.checking { color: #c9b27a; }

.hunter-desk .desk-grid {
  display: grid;
  grid-template-columns: 1.1fr 1.3fr 0.8fr;
  gap: 0;
  background: #1a0c08;
  color: #e8d9b0;
  font-size: 14px;
}
.hunter-desk .desk-live,
.hunter-desk .desk-yt,
.hunter-desk .desk-socials {
  padding: 10px 12px 12px;
  border-right: 1px solid #5a320c;
}
.hunter-desk .desk-socials { border-right: 0; }
.desk-k {
  font-family: Cinzel, serif;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #c9a227;
  margin: 0 0 6px;
}
.desk-live p, .desk-yt p { margin: 0 0 6px; }
.desk-links, .desk-socials a, .desk-yt a, .desk-live a {
  color: #f3d27a;
}
.desk-socials {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-family: Cinzel, serif;
  font-size: 13px;
}
.yt-card {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  text-decoration: none;
  color: inherit;
}
.yt-card img {
  width: 120px;
  height: 68px;
  object-fit: cover;
  border: 1px solid #c9a227;
  flex-shrink: 0;
}
.yt-card strong {
  display: block;
  color: #f3d27a;
  font-size: 14px;
}
.yt-card span {
  display: block;
  font-size: 11px;
  color: #c9b27a;
  margin-top: 4px;
}
@media (max-width: 800px) {
  .hunter-desk .desk-grid { grid-template-columns: 1fr; }
  .hunter-desk .desk-live,
  .hunter-desk .desk-yt,
  .hunter-desk .desk-socials { border-right: 0; border-bottom: 1px solid #5a320c; }
}

.shot-head {
  font-family: Cinzel, serif;
  color: #f3d27a;
  padding: 8px 12px 4px;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: #2a140c;
  border-top: 1px solid #c9a227;
}

.shot-rail {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 10px 12px 14px;
  background: #1a0c08;
}
.shot-rail figure, .zone-strip figure {
  margin: 0;
  flex: 0 0 200px;
}
.shot-rail img, .zone-strip img {
  width: 100%;
  height: 112px;
  object-fit: cover;
  border: 2px solid #c9a227;
  display: block;
  background: #000;
}
.shot-rail figcaption, .zone-strip figcaption {
  font-size: 11px;
  color: #e8d9b0;
  font-family: Cinzel, serif;
  padding-top: 4px;
}
.shot-note {
  margin: 0;
  padding: 0 12px 10px;
  font-size: 12px;
  color: #c9b27a;
  background: #1a0c08;
}
.shot-note a { color: #f3d27a; }

.zone-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 22px;
}
@media (max-width: 800px) {
  .zone-strip { grid-template-columns: 1fr 1fr; }
}
.zone-strip img { height: 120px; }
.zone-strip figcaption {
  text-align: center;
  color: #f3d27a;
  text-shadow: 0 1px 2px #000;
}

.taskbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 36px;
  background: linear-gradient(#4a2810, #2a1408);
  border-top: 3px solid #c9a227;
  display: flex;
  align-items: center;
  padding: 0 6px;
  gap: 8px;
  z-index: 50;
}
.start-btn, .abtn {
  font-family: Cinzel, serif;
  font-weight: 700;
  padding: 3px 10px;
  background: #6b4220;
  color: #f3d27a;
  border: 2px solid #e8c56a;
  border-right-color: #3a2208;
  border-bottom-color: #3a2208;
  font-size: 12px;
}
.abtn.on { background: #8a3a14; }
.tray {
  margin-left: auto;
  background: #1a0c08;
  border: 2px inset #8a5a20;
  padding: 2px 8px;
  font-family: Cinzel, serif;
  font-size: 12px;
  color: #f3d27a;
}

h1, h2 {
  font-family: Cinzel, serif;
  color: #6b1c10;
  text-shadow: 1px 1px 0 #f3d27a;
  margin: 0 0 10px;
}
h1 { font-size: 34px; text-align: center; }
h2 { font-size: 22px; }

.blink { animation: blink 0.8s step-end infinite; }
@keyframes blink { 50% { visibility: hidden; } }

.comic { font-family: "Comic Sans MS", "Comic Sans", cursive; }
.tiny { font-size: 9px; color: #6b4a28; }
.splash-start {
  font-size: 18px;
  line-height: 1.45;
  color: #1a1208;
  text-align: center;
  margin: 12px 8px 8px;
}
.tiny-yes {
  font-size: 9px !important;
  padding: 1px 4px !important;
  opacity: 0.55;
}
.huge-no {
  font-size: 42px !important;
  padding: 18px 40px !important;
  background: #2e7d32 !important;
  color: #fff !important;
}
.wrong-order { display: flex; flex-direction: row-reverse; justify-content: space-between; gap: 8px; }

.btn-3d, .btn-row button, .primary, .ghost {
  font-family: Cinzel, serif;
  background: #6b4220;
  color: #f3d27a;
  border: 2px solid #e8c56a;
  border-right-color: #3a2208;
  border-bottom-color: #3a2208;
  padding: 6px 12px;
  cursor: pointer;
}
.btn-3d:active, .win-btn:active {
  border: 2px solid #3a2208;
  border-right-color: #e8c56a;
  border-bottom-color: #e8c56a;
}
.primary { background: #2e7d32; color: #fff; font-weight: bold; }
.danger { background: #8a1c10; color: #fff; }
.linkish {
  color: #6b1c10;
  text-decoration: underline;
  cursor: pointer;
}

.btn-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 14px; }

label { display: block; margin: 6px 0; }

input[type="text"], input[type="password"], textarea, select {
  font-family: "Courier New", monospace;
  font-size: 14px;
  border: 2px inset #8a5a20;
  background: #fff8e7;
  padding: 3px;
}

.err { color: #8a1c10; font-weight: bold; font-family: "Comic Sans MS", cursive; min-height: 1.2em; }
.ok { color: #2e7d32; font-weight: bold; }
.hint { font-size: 13px; color: #4a2808; }

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(12, 6, 4, 0.72);
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.dialog {
  background: #3a2412;
  color: #f4e6c1;
  width: min(560px, 96vw);
  border: 3px solid #c9a227;
}
.dialog .titlebar { margin: -0px; }
.dialog-body { padding: 12px; }

.kb {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  max-width: 540px;
  margin: 8px 0;
}
.kb button {
  width: 34px;
  height: 34px;
  font-family: Cinzel, serif;
}
.namebox {
  min-height: 28px;
  background: #1a0c08;
  color: #f3d27a;
  font-family: "Courier New", monospace;
  padding: 6px;
  border: 2px inset #8a5a20;
  letter-spacing: 2px;
}

.realm-box {
  height: 180px;
  overflow: auto;
  background: #fff8e7;
  border: 2px inset #8a5a20;
  font-family: Cinzel, serif;
  font-size: 13px;
}
.realm-box label {
  margin: 0;
  padding: 3px 6px;
}
.realm-box label:nth-child(odd) { background: #efe0c0; }
.realm-box label:hover { background: #8a3a14; color: #fff8dc; }

.dur-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin: 10px 0;
}
.dur-grid button {
  height: 64px;
  font-size: 11px;
}
.dur-grid button:nth-child(1) { background: #ff00ff; color: #e100e1; }
.dur-grid button:nth-child(2) { background: #00ffff; color: #00e0e0; }
.dur-grid button:nth-child(3) { background: #ffff00; color: #e6e600; }
.dur-grid button:nth-child(4) { background: #00ff00; color: #00e000; }
.dur-grid button:nth-child(5) { background: #ff0000; color: #e00000; }
.legend {
  font-size: 8px;
  color: #ece0b8;
  background: #ece0b8;
}

.paint {
  border: 2px inset #8a5a20;
  background: #fff;
  cursor: crosshair;
  display: block;
  max-width: 100%;
}

.quiz p { margin: 8px 0 4px; }

.captcha {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  max-width: 360px;
}
.captcha .tile {
  aspect-ratio: 1;
  font-size: 42px;
  background: #fff8e7;
  border: 3px solid #8a5a20;
  cursor: pointer;
}
.captcha .tile.on { border-color: #2e7d32; background: #d5ecc0; }

.sliders label { font-family: Cinzel, serif; font-size: 12px; }
.sliders input[type="range"] { width: 100%; }

.map {
  position: relative;
  width: 100%;
  height: 360px;
  background: #5a2a14 url("../img/redridge-zone-map.png") center / cover;
  border: 3px ridge #c9a227;
  overflow: hidden;
}
.map .zone {
  position: absolute;
  font-size: 11px;
  font-family: Cinzel, serif;
  color: #fff;
  text-shadow: 1px 1px 0 #000;
}
.drop {
  position: absolute;
  left: 24%;
  top: 44%;
  width: 90px;
  height: 70px;
  border: 2px dashed #f3d27a;
  background: rgba(90, 26, 16, 0.35);
  text-align: center;
  font-size: 11px;
  color: #f3d27a;
}
.sheep {
  position: absolute;
  left: 12px;
  top: 200px;
  font-size: 32px;
  cursor: grab;
  user-select: none;
}

.tos {
  height: 160px;
  overflow: auto;
  background: #fff8e7;
  border: 2px inset #8a5a20;
  font-size: 13px;
  padding: 8px;
}

.combo { display: flex; gap: 10px; }
.combo select { font-size: 22px; }

.stars {
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: 4px;
  font-size: 28px;
}
.stars button { background: none; border: none; cursor: pointer; font-size: 28px; }

.permit {
  background: #fff8dc;
  border: 8px double #6b1c10;
  padding: 16px;
  font-family: "Crimson Text", serif;
  transform: rotate(-1.2deg);
}
.stamp {
  display: inline-block;
  border: 4px solid #8a1c10;
  color: #8a1c10;
  font-family: Cinzel, serif;
  font-size: 28px;
  padding: 4px 12px;
  transform: rotate(-18deg);
  float: right;
}
.stamp.ok { color: #2e7d32; border-color: #2e7d32; }

.clippy {
  position: fixed;
  right: 18px;
  bottom: 48px;
  z-index: 60;
  width: 230px;
}
.clippy-bubble {
  background: #fff8dc;
  border: 2px solid #c9a227;
  border-radius: 4px;
  padding: 8px;
  font-family: "Crimson Text", serif;
  font-size: 14px;
  margin-bottom: 6px;
}
.clippy-body { font-size: 48px; text-align: right; }
.clippy-x {
  position: absolute;
  top: 0;
  right: 0;
  background: #6b4220;
  color: #f3d27a;
  border: 1px solid #c9a227;
}

.popup-ad {
  position: fixed;
  z-index: 70;
  width: 240px;
  background: #3a2412;
  color: #f4e6c1;
  border: 3px solid #c9a227;
  font-family: Cinzel, serif;
  padding: 8px;
}
.popup-ad h3 { margin: 0 0 6px; color: #f3d27a; }

.low-contrast { color: #d4c49a; font-size: 10px; }
.webdings { font-family: Webdings, Cinzel, serif; }

.email-row { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.email-row select { width: 42px; }

.news label { background: #efe0c0; padding: 2px; }

.splash-art {
  width: 100%;
  max-height: 160px;
  object-fit: cover;
  border: 2px solid #c9a227;
  margin-bottom: 10px;
}

.petition-ledger {
  margin-top: 18px;
  padding-top: 12px;
  border-top: 2px solid #8a6a2a;
}
.petition-ledger h2 {
  font-size: 16px;
  margin: 0 0 6px;
}
.ledger-item {
  background: #efe0c0;
  border: 1px solid #8a6a2a;
  padding: 8px 10px;
  margin: 8px 0;
}
.ledger-item header {
  font-size: 12px;
  margin-bottom: 6px;
}
.ledger-kind {
  font-weight: 700;
  letter-spacing: 0.04em;
}
.ledger-kind.approved { color: #1f6b24; }
.ledger-kind.denied { color: #8a1a10; }
.ledger-kind.pending { color: #7a5a10; }
.ledger-decision {
  margin: 0 0 6px;
  font-size: 13px;
  font-style: italic;
}
.ledger-msg {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 13px;
}
