/* Chronic Rose — alpha tester notes.
   Old-school MMO portal: key art behind a fixed-width column, carved tabs,
   a leather frame with gold trim, parchment for reading, dark side boxes. */

@font-face {
  font-family: "Cinzel";
  src: url("fonts/cinzel.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
}
@font-face {
  font-family: "Cinzel Decorative";
  src: url("fonts/cinzel-decorative-900.woff2") format("woff2");
  font-weight: 900;
  font-display: swap;
}

:root {
  --night: #0d0a07;
  --leather: #1f150d;
  --leather-deep: #140d08;
  --gold: #d9b560;
  --gold-hi: #f4dc98;
  --gold-lo: #7a5a26;
  --wine: #6b1a0d;
  --wine-deep: #3e0f07;
  --ink: #3a2716;
  --ink-soft: #6e5236;
  --parch: #f2e5c6;
  --parch-lo: #e7d5ab;

  --carved: "Cinzel", "Trajan Pro", "Georgia", serif;
  --plain: Verdana, Tahoma, "Segoe UI", sans-serif;

  --sword: url("img/cursor.png") 1 1;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { background: var(--night); -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  background:
    url("img/backdrop.jpg") center top / 1920px auto no-repeat,
    repeating-linear-gradient(135deg, rgba(255, 230, 170, 0.014) 0 2px, transparent 2px 7px),
    var(--night);
  color: var(--ink);
  font: 13.5px/1.65 var(--plain);
  cursor: var(--sword), auto;
}

a,
button,
[role="tab"] { cursor: var(--sword), pointer; }

img { display: block; max-width: 100%; height: auto; }

::selection { background: var(--wine); color: var(--gold-hi); }

.site {
  width: min(1000px, 100% - 24px);
  margin: 0 auto;
}

/* --- banner ---------------------------------------------------------------- */

.banner {
  height: 330px;
  padding-top: 52px;
  text-align: center;
  background: radial-gradient(ellipse 46% 34% at 50% 30%, rgba(10, 5, 2, 0.55), transparent 70%);
}

.logo {
  margin: 0;
  font-family: "Cinzel Decorative", var(--carved);
  font-weight: 900;
  font-size: clamp(44px, 9vw, 80px);
  line-height: 1;
  letter-spacing: 0.01em;
  filter:
    drop-shadow(0 2px 0 #2a1605)
    drop-shadow(0 0 1px #000)
    drop-shadow(0 8px 18px rgba(0, 0, 0, 0.85));
}
.logo span {
  background: linear-gradient(#fff7d6 8%, #f2d277 42%, #a8741f 56%, #e8c262 78%, #8b5b1a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.logo .rose {
  background-image: linear-gradient(#ffe0cf 8%, #f08a6c 40%, #9c1f10 58%, #d9553a 80%, #5e0e06);
}

.ribbon {
  display: inline-block;
  margin: 18px 0 0;
  padding: 5px 46px 6px;
  border-top: 1px solid rgba(217, 181, 96, 0.7);
  border-bottom: 1px solid rgba(217, 181, 96, 0.7);
  border-image: linear-gradient(90deg, transparent, var(--gold) 20%, var(--gold) 80%, transparent) 1;
  background: linear-gradient(90deg, transparent, rgba(22, 10, 4, 0.88) 18%, rgba(22, 10, 4, 0.88) 82%, transparent);
  font-family: var(--carved);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-hi);
  text-shadow: 0 1px 0 #000;
}

/* --- tabs ------------------------------------------------------------------ */

.tabs {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  padding: 0 20px;
  position: relative;
  z-index: 2;
  margin-bottom: -1px;
}

.tab {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 20px 7px 8px;
  border: 1px solid var(--gold-lo);
  border-bottom: 0;
  border-radius: 9px 9px 0 0;
  background: linear-gradient(#34231a, #1a110b 70%);
  box-shadow:
    inset 0 1px 0 rgba(255, 225, 150, 0.18),
    inset 0 0 0 1px rgba(0, 0, 0, 0.55);
  font-family: var(--carved);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: #bfa36a;
  text-shadow: 0 1px 0 #000;
  transition: color 0.12s;
}
.tab img {
  width: 32px;
  height: 32px;
  border-radius: 3px;
  box-shadow: 0 0 0 1px #000, 0 0 0 2px var(--gold-lo);
  filter: saturate(0.75) brightness(0.9);
}
.tab:hover { color: var(--gold-hi); }
.tab:hover img { filter: none; }

.tab[aria-selected="true"] {
  padding-top: 11px;
  padding-bottom: 9px;
  border-color: var(--gold);
  background: linear-gradient(#4a3220, var(--leather) 75%);
  color: var(--gold-hi);
  box-shadow:
    inset 0 1px 0 rgba(255, 225, 150, 0.4),
    inset 0 0 0 1px rgba(0, 0, 0, 0.4),
    0 -6px 16px rgba(240, 190, 90, 0.12);
}
.tab[aria-selected="true"] img {
  filter: none;
  box-shadow: 0 0 0 1px #000, 0 0 0 2px var(--gold);
}
.tab:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 2px; }

/* --- frame ----------------------------------------------------------------- */

.frame {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 272px;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--gold);
  border-radius: 3px;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255, 210, 140, 0.07), transparent 60%),
    linear-gradient(var(--leather), var(--leather-deep));
  box-shadow:
    0 0 0 1px #000,
    0 0 0 4px #24180e,
    0 0 0 5px var(--gold-lo),
    0 0 0 6px #000,
    0 24px 60px rgba(0, 0, 0, 0.85);
}

.corner {
  position: absolute;
  width: 14px;
  height: 14px;
  transform: rotate(45deg);
  background: linear-gradient(135deg, var(--gold-hi), var(--gold) 45%, #6d4c18);
  box-shadow: 0 0 0 1px #000, 0 2px 4px rgba(0, 0, 0, 0.7);
  z-index: 3;
}
.corner.tl { top: -8px; left: -8px; }
.corner.tr { top: -8px; right: -8px; }
.corner.bl { bottom: -8px; left: -8px; }
.corner.br { bottom: -8px; right: -8px; }

/* --- parchment ------------------------------------------------------------- */

.parchment {
  min-width: 0;
  padding: 26px 30px 34px;
  border: 1px solid #b8923f;
  border-radius: 2px;
  background:
    radial-gradient(ellipse at 15% 0%, rgba(255, 255, 255, 0.38), transparent 55%),
    radial-gradient(ellipse at 100% 100%, rgba(140, 90, 30, 0.2), transparent 55%),
    linear-gradient(var(--parch), var(--parch-lo));
  box-shadow:
    inset 0 0 42px rgba(120, 76, 24, 0.38),
    inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.parchment a { color: var(--wine); }

[role="tabpanel"]:focus { outline: none; }

h2 {
  margin: 0 0 4px;
  font-family: var(--carved);
  font-weight: 700;
  font-size: 26px;
  line-height: 1.2;
  letter-spacing: 0.03em;
  color: var(--wine);
}

.rule {
  position: relative;
  height: 12px;
  margin: 8px 0 18px;
  background:
    linear-gradient(90deg, rgba(107, 26, 13, 0.55), rgba(107, 26, 13, 0.1) 70%, transparent) 0 50% / 100% 1px no-repeat;
}
.rule::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 8px;
  height: 8px;
  transform: rotate(45deg);
  background: var(--wine);
}

.lead {
  margin: 0 0 18px;
  color: var(--ink-soft);
}

h3 {
  margin: 0;
  font-family: var(--carved);
  font-weight: 700;
  font-size: 17px;
  line-height: 1.3;
  color: #5a1509;
}

p { margin: 0 0 0.8em; }

.slot {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 3px;
  box-shadow: 0 0 0 1px #000, 0 0 0 2px var(--gold-lo), 0 2px 6px rgba(0, 0, 0, 0.45);
}

kbd {
  display: inline-block;
  padding: 0 5px;
  border: 1px solid #8f7447;
  border-bottom-width: 2px;
  border-radius: 3px;
  background: linear-gradient(#fbf3de, #e9d9b0);
  font: 11.5px/1.5 var(--plain);
  color: var(--ink);
  white-space: nowrap;
}

/* --- news ------------------------------------------------------------------ */

.welcome {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin: 0 0 26px;
  padding: 14px 16px;
  border: 1px solid rgba(107, 26, 13, 0.3);
  background: rgba(255, 250, 235, 0.45);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}
.welcome p { margin: 0; }
.welcome strong {
  display: block;
  margin-bottom: 2px;
  font-family: var(--carved);
  font-size: 16px;
  color: #5a1509;
}

.post { margin: 0 0 26px; }

.post-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 6px 10px 6px 6px;
  border-top: 1px solid rgba(107, 26, 13, 0.4);
  border-bottom: 1px solid rgba(107, 26, 13, 0.15);
  background: linear-gradient(90deg, rgba(107, 26, 13, 0.13), rgba(107, 26, 13, 0) 80%);
}
.post-meta {
  display: block;
  font-size: 11.5px;
  color: var(--ink-soft);
}
.post-gist {
  margin: 10px 0 2px;
  font-style: italic;
  color: var(--ink-soft);
}

.changes {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
}
.changes li {
  position: relative;
  padding: 3px 0 3px 78px;
}

.badge {
  position: absolute;
  left: 0;
  top: 5px;
  width: 66px;
  padding: 1px 0;
  border-radius: 2px;
  text-align: center;
  font: bold 9.5px/1.5 var(--plain);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #f7ecd0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 0 rgba(0, 0, 0, 0.2);
}
.b-new { background: linear-gradient(#8c2312, var(--wine)); }
.b-fix { background: linear-gradient(#5d6e2c, #43511d); }
.b-chg { background: linear-gradient(#3e5f7c, #2b465e); }

/* --- about ----------------------------------------------------------------- */

.features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 28px;
  margin-top: 8px;
}
.feature {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.feature h3 { margin-bottom: 4px; }
.feature p { margin: 0; }

.pull {
  margin: 30px 0 0;
  padding: 14px 18px;
  border-left: 3px solid var(--wine);
  background: rgba(107, 26, 13, 0.06);
  font-family: var(--carved);
  font-size: 15px;
  line-height: 1.55;
  color: #5a1509;
}

/* --- worlds ---------------------------------------------------------------- */

.plates {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 6px 0 26px;
}
.plates figure { margin: 0; }
.plates .pic {
  padding: 4px;
  border: 1px solid var(--gold-lo);
  background: var(--leather);
  box-shadow: 0 0 0 1px #000, 0 4px 12px rgba(60, 30, 5, 0.45);
}
.plates img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}
.plates figcaption {
  margin-top: 6px;
  text-align: center;
  font-size: 11.5px;
  font-style: italic;
  color: var(--ink-soft);
}

.worlds {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid rgba(107, 26, 13, 0.35);
}
.worlds li {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  gap: 4px 14px;
  align-items: center;
  padding: 11px 0;
  border-bottom: 1px dashed rgba(107, 26, 13, 0.28);
}
.worlds h3 { font-size: 18px; }
.worlds p { margin: 0; font-size: 12.5px; color: var(--ink-soft); }

.lv {
  padding: 3px 10px;
  border: 1px solid var(--gold-lo);
  border-radius: 12px;
  background: linear-gradient(#3a2717, #1d140c);
  font: bold 11px/1.4 var(--plain);
  color: var(--gold-hi);
  white-space: nowrap;
  box-shadow: 0 0 0 1px #000;
}
.lv.soft {
  border-color: rgba(107, 26, 13, 0.35);
  background: transparent;
  box-shadow: none;
  font-weight: normal;
  color: var(--ink-soft);
}
.fresh {
  margin-left: 6px;
  padding: 0 5px;
  border-radius: 2px;
  background: var(--wine);
  font: bold 9px/1.6 var(--plain);
  letter-spacing: 0.1em;
  color: #f7ecd0;
  vertical-align: 3px;
}

/* --- testing: a quest log -------------------------------------------------- */

.quests {
  list-style: none;
  margin: 8px 0 28px;
  padding: 0;
}
.quest {
  margin-bottom: 10px;
  border: 1px solid rgba(90, 50, 20, 0.45);
  background: rgba(255, 250, 235, 0.4);
}
.quest-title {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 10px;
  border-bottom: 1px solid var(--gold-lo);
  background: linear-gradient(90deg, #3a2414, #5b3a20 60%, #3a2414);
  font-family: var(--carved);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--gold-hi);
  text-shadow: 0 1px 0 #000;
}
.quest-title::before {
  content: "!";
  display: grid;
  place-items: center;
  flex: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff3a6, #f2c22c 55%, #a86d08);
  box-shadow: 0 0 0 1px #000;
  font: bold 12px/1 var(--plain);
  color: #4a2a00;
  text-shadow: none;
}
.quest p {
  position: relative;
  margin: 0;
  padding: 8px 12px 9px 38px;
}
.quest p::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 14px;
  width: 8px;
  height: 8px;
  border: 1px solid var(--ink-soft);
  transform: rotate(45deg);
}

.report {
  display: flex;
  gap: 16px;
  padding: 16px 18px;
  border: 1px solid rgba(107, 26, 13, 0.3);
  background: rgba(107, 26, 13, 0.06);
}
.report h3 { margin-bottom: 6px; }
.report p:last-child { margin-bottom: 0; }

/* --- sidebar --------------------------------------------------------------- */

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.box {
  border: 1px solid var(--gold-lo);
  background: linear-gradient(#1b120b, #110b07);
  box-shadow: 0 0 0 1px #000, inset 0 0 0 1px rgba(255, 220, 150, 0.05);
  font-size: 12.5px;
  color: #cbb68c;
}
.box-title {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  padding: 6px 10px 6px 6px;
  border-bottom: 1px solid var(--gold);
  background: linear-gradient(#7a2213, var(--wine-deep));
  box-shadow: inset 0 1px 0 rgba(255, 200, 150, 0.25);
  font-family: var(--carved);
  font-weight: 700;
  font-size: 13.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-hi);
  text-shadow: 0 1px 0 #000;
}
.box-title img {
  width: 26px;
  height: 26px;
  border-radius: 2px;
  box-shadow: 0 0 0 1px #000, 0 0 0 2px var(--gold-lo);
}
.box-body { padding: 10px 12px 12px; }
.box-body p { margin: 0 0 0.6em; }
.box-body p:last-child { margin: 0; }
.box a,
.box b { color: var(--gold-hi); }

.stats { margin: 0; }
.stats div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 4px 0;
  border-bottom: 1px solid rgba(217, 181, 96, 0.12);
}
.stats div:last-child { border-bottom: 0; }
.stats dt { color: #9c8761; }
.stats dd { margin: 0; text-align: right; color: var(--gold-hi); }

.keys { margin: 0; }
.keys div {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 8px;
  align-items: baseline;
  padding: 4px 0;
}
.keys dd { margin: 0; }
.box kbd {
  border-color: var(--gold-lo);
  background: linear-gradient(#3a2717, #1d140c);
  box-shadow: 0 0 0 1px #000;
  color: var(--gold-hi);
}


/* --- footer ---------------------------------------------------------------- */

.foot {
  padding: 30px 12px 40px;
  text-align: center;
  font-size: 11.5px;
  line-height: 1.7;
  color: #7c6a4c;
}
.foot p { margin: 0; }
.foot .mark {
  display: block;
  margin-bottom: 6px;
  font-family: var(--carved);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #a88e5c;
}

/* --- smaller screens ------------------------------------------------------- */

@media (max-width: 880px) {
  .frame { grid-template-columns: minmax(0, 1fr); }
  .sidebar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    align-items: start;
  }
}

@media (max-width: 680px) {
  body { background-size: 1200px auto, auto, auto; }
  .site { width: calc(100% - 16px); }
  .banner { height: auto; padding: 34px 0 24px; }
  .ribbon { padding: 4px 26px 5px; font-size: 11px; letter-spacing: 0.16em; }
  .tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
    padding: 0;
    margin-bottom: 8px;
  }
  .tab,
  .tab[aria-selected="true"] {
    padding: 6px 10px 6px 6px;
    border-bottom: 1px solid var(--gold-lo);
    border-radius: 6px;
    font-size: 13px;
  }
  .tab[aria-selected="true"] { border-color: var(--gold); }
  .tab img { width: 28px; height: 28px; }
  .frame { padding: 8px; }
  .corner { display: none; }
  .parchment { padding: 20px 16px 26px; }
  h2 { font-size: 22px; }
  .welcome,
  .report { flex-direction: column; gap: 10px; }
  .changes li { padding-left: 0; }
  .badge {
    position: static;
    display: inline-block;
    width: auto;
    margin-right: 6px;
    padding: 0 6px;
    vertical-align: 1px;
  }
  .features { grid-template-columns: minmax(0, 1fr); }
  .plates { gap: 8px; }
  .plates figcaption { font-size: 10.5px; }
  .worlds li { grid-template-columns: 40px minmax(0, 1fr); }
  .worlds .lv { grid-column: 2; justify-self: start; }
}

@media (prefers-reduced-motion: reduce) {
  .tab { transition: none; }
}
