/* Single RS 2012 — 2012-era RuneScape interface skin
   Layout follows the Single-RSC site: banner header, intro + CTAs + badges,
   Features with h3 groups of bordered list items, gallery, one-line footer. */

:root {
  --stone-0: #17130d;
  --stone-1: #241d15;
  --stone-2: #372d20;
  --panel-1: #55483a;
  --panel-2: #3f342a;
  --panel-3: #2b231b;

  --gold: #d8b869;
  --gold-dim: #93783f;
  --gold-dark: #5c4a25;
  --bevel-light: rgba(255, 231, 176, .22);

  --ink: #efe3c8;
  --muted: #b3a184;
  --orange: #ff981f;
  --yellow: #ffd93b;
  --green: #4fd06b;
  --cyan: #7ce4ef;

  --noise: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='140' height='140' filter='url(%23n)' opacity='0.5'/></svg>");
}

/* Base styles */
body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  color: var(--ink);
  background-color: var(--stone-0);
  background-image: var(--noise), linear-gradient(180deg, #211a12, var(--stone-0) 60%);
  background-attachment: fixed;
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 2rem;
  box-sizing: border-box;
}

code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  color: var(--yellow);
  background: rgba(0, 0, 0, .35);
  border: 1px solid var(--stone-2);
  border-radius: 3px;
  padding: .05em .35em;
}

/* Header banner */
header {
  position: relative;
  overflow: hidden;
  text-align: center;
  border-bottom: 2px solid var(--gold-dark);
  background: #241c14;
  box-shadow: 0 6px 22px rgba(0, 0, 0, .55);
}

header p {
  position: relative;
  z-index: 2;
  color: var(--muted);
  margin: 0;
  padding: .9rem 1rem 1rem;
  background-image: var(--noise), linear-gradient(180deg, #2b231a, #241c14);
  background-blend-mode: overlay, normal;
}

.banner-backdrop {
  position: relative;
  isolation: isolate;
  background: #767d88;
}

.banner-backdrop::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(90deg, #767d88, #8b9098 50%, #767d88);
}

.banner-backdrop::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 54px;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, #2b231a);
}

.banner-art {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  max-width: 1334px;
  height: auto;
  margin: 0 auto;
}

.banner-title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 46px;
  letter-spacing: .02em;
  paint-order: stroke fill;
  stroke: #1a1109;
  stroke-width: 5px;
  stroke-linejoin: round;
}

h2 {
  color: var(--gold);
  margin-bottom: 1rem;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  font-size: 2rem;
  text-shadow: 0 3px 0 rgba(0, 0, 0, .7);
}

h3 {
  color: var(--orange);
  margin-top: 2rem;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  font-size: 1.4rem;
  border-bottom: 1px solid var(--stone-2);
  padding-bottom: 0.5rem;
  text-shadow: 0 2px 0 rgba(0, 0, 0, .6);
}

/* Intro */
.intro { text-align: center; padding: 2rem 1rem; }
.intro p { color: var(--muted); max-width: 720px; margin: 0 auto; }

.cta {
  display: inline-block;
  margin: 0.5rem;
  padding: 0.7rem 1.4rem;
  color: #2a1c06;
  text-decoration: none;
  font-weight: bold;
  border: 2px solid var(--gold-dark);
  border-radius: 4px;
  background-image: var(--noise), linear-gradient(180deg, #f3d489, #c39a3f 60%, #a37d2c);
  background-blend-mode: overlay, normal;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), 0 4px 0 rgba(0, 0, 0, .45);
  text-shadow: 0 1px 0 rgba(255, 255, 255, .3);
}
.cta:hover { filter: brightness(1.1); text-decoration: none; }
.cta:active { transform: translateY(2px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), 0 1px 0 rgba(0, 0, 0, .45); }

.cta-alt {
  color: var(--ink);
  background-image: var(--noise), linear-gradient(180deg, #56483a, #322820);
  text-shadow: 0 1px 0 #000;
}
.cta-alt:hover { color: var(--yellow); }

.download-buttons {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.badges {
  margin-top: 1.5rem;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.badge {
  border: 1px solid var(--gold-dark);
  border-radius: 4px;
  padding: .4rem .8rem;
  font-size: .85rem;
  color: var(--muted);
  background: linear-gradient(180deg, rgba(255, 216, 130, .1), rgba(0, 0, 0, .4));
}
.badge b { color: var(--yellow); font-family: Georgia, serif; font-size: 1.05rem; margin-right: .35rem; }
.badge.zero b { color: var(--green); }

/* Feature / setup lists */
#features ul,
#start ul {
  list-style: none;
  padding: 0;
}

#features li,
#start li {
  margin-bottom: 0.5rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--gold-dark);
  border-left: 4px solid var(--gold);
  border-radius: 3px;
  background-image: var(--noise), linear-gradient(180deg, var(--panel-1), var(--panel-3));
  background-blend-mode: overlay, normal;
  box-shadow: inset 0 1px 0 var(--bevel-light);
}

#features li strong { color: var(--yellow); }

.copy {
  cursor: pointer;
  border: 1px solid var(--gold-dark);
  border-radius: 3px;
  padding: 2px 9px;
  margin-left: .25rem;
  font-size: .72rem;
  font-weight: 700;
  color: #2a1c06;
  background: linear-gradient(180deg, #f0d189, #b8912f);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4);
  vertical-align: middle;
}
.copy:hover { filter: brightness(1.1); }
.copy:active { transform: translateY(1px); }

a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Gallery */
.gallery .images {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.gallery figure { margin: 0; flex: 1 1 280px; max-width: 500px; }

.gallery img {
  width: 100%;
  height: auto;
  display: block;
  border: 2px solid var(--gold-dark);
  border-radius: 4px;
  transition: transform 0.3s ease;
}
.gallery img:hover { transform: scale(1.03); }

.gallery figcaption {
  margin-top: .5rem;
  font-size: .85rem;
  color: var(--muted);
  text-align: center;
}

/* Placeholder shown when a screenshot file is missing */
.shot-missing {
  display: grid;
  place-items: center;
  min-height: 190px;
  padding: 1rem;
  text-align: center;
  font-size: .85rem;
  color: var(--muted);
  border: 2px dashed var(--gold-dark);
  border-radius: 4px;
  background: rgba(0, 0, 0, .3);
}

footer {
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
  color: var(--muted);
  border-top: 2px solid var(--stone-2);
  background: rgba(0, 0, 0, .3);
}

/* Toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 40;
  transform: translate(-50%, 90px);
  opacity: 0;
  padding: 11px 18px;
  border: 2px solid var(--gold-dark);
  border-radius: 4px;
  background: linear-gradient(180deg, #f0d189, #b8912f);
  color: #2a1c06;
  font-weight: 700;
  transition: transform .25s, opacity .25s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Responsive tweaks */
@media (max-width: 768px) {
  .banner-title { font-size: 38px; }
  h2 { font-size: 1.6rem; }
  h3 { font-size: 1.2rem; }
  .container { padding: 1rem; }
  .cta { padding: 0.5rem 1rem; font-size: 1rem; }
  .gallery figure { max-width: 100%; }
}

@media (min-width: 900px) {
  .banner-art {
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
  }
}

@media (max-width: 480px) {
  .banner-title { font-size: 30px; stroke-width: 4px; }
  .cta { display: block; width: 100%; text-align: center; box-sizing: border-box; }
  .download-buttons { flex-direction: column; align-items: center; }
  .gallery .images { flex-direction: column; align-items: center; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
