@import url('https://fonts.googleapis.com/css2?family=Cinzel+Decorative:wght@400;700&family=Cinzel:wght@400;600;700&family=Cormorant+Garamond:ital,wght@0,400;0,600;1,400;1,600&family=Crimson+Pro:ital,wght@0,400;0,600;1,400&family=Josefin+Sans:wght@300;400;600&display=swap');

/* ═══════════════════════════════════════════════════════
   ROOT TOKENS
═══════════════════════════════════════════════════════ */
:root {
  --cursor:       url(/assets/img/cursor.png), auto;
  --cursor-hover: url(/assets/img/link.png), pointer;
  --logo:         url(/assets/img/themes/default/logo.png);

  --ink:         #1a1d21;
  --ink-mid:     #262b30;
  --ink-light:   #2f353b;
  --fog:         #c5c8ca;
  --fog-dim:     #70757a;
  --frost:       #e3e6e8;
  --void:        #16191d;

  --gold:        #c9a84c;
  --gold-dim:    #7a6030;
  --gold-pale:   rgba(201,168,76,0.12);
  --gold-glow:   rgba(201,168,76,0.25);

  --rule:        1px solid rgba(201,168,76,0.3);

  --f-display:   'Cinzel Decorative', serif;
  --f-head:      'Cinzel', serif;
  --f-body:      'Crimson Pro', Georgia, serif;
  --f-italic:    'Cormorant Garamond', Georgia, serif;
  --f-label:     'Josefin Sans', sans-serif;

  --header-img:    url(/assets/img/themes/default/banner_bg.gif);
  --biblio-img:    url(/assets/img/homepage/biblio.gif);
  --site-bg-img:   url('/assets/img/homepage/background1.jpg');
  --biblio-pos:    3px 22px;
  --quilliam-vis:  block;
}

/* ═══════════════════════════════════════════════════════
   RESET & BASE
═══════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-y: scroll; }
body {
  margin: 0; padding: 0;
  font-family: var(--f-body);
  font-size: 14px; background: #000;
  color: var(--fog); cursor: var(--cursor);
  line-height: 1.5;
}
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -1;
  background-image: var(--site-bg-img);
  background-size: cover; background-position: center; background-attachment: fixed;
  filter: blur(8px); opacity: 0.9;
}
p, li { line-height: 1.7; }
a {
  color: rgba(201,168,76,0.8);
  cursor: var(--cursor-hover); text-decoration: none;
  transition: color 0.25s ease;
}
a:hover { color: var(--gold); }

/* ═══════════════════════════════════════════════════════
   SCROLLBAR
═══════════════════════════════════════════════════════ */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--ink-light); }
::-webkit-scrollbar-thumb { background: var(--gold-dim); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold); }
* { scrollbar-width: thin; scrollbar-color: var(--gold-dim) var(--ink-light); }

/* ═══════════════════════════════════════════════════════
   FADE
═══════════════════════════════════════════════════════ */
.fade-block { opacity: 0; transform: translateY(-18px); transition: opacity 0.65s ease-out, transform 0.65s ease-out; }
.fade-block.visible { opacity: 1; transform: translateY(0); }

/* ═══════════════════════════════════════════════════════
   CLOUDS & LOGO
═══════════════════════════════════════════════════════ */
.clouds {
  opacity: 0.4; pointer-events: none; position: absolute;
  overflow: hidden; top: 0; left: 0; right: 0; height: 100%; z-index: 0;
}
.clouds-1, .clouds-2, .clouds-3 {
  background-repeat: repeat-x; position: absolute; top: 0; right: 0; left: 0; height: 500px;
}
.clouds-1 { background-image: url("https://s.cdpn.io/15514/clouds_2.png"); animation: cloud1 20s infinite linear; }
.clouds-2 { background-image: url("https://s.cdpn.io/15514/clouds_1.png"); animation: cloud2 15s infinite linear; z-index: 2; }
.clouds-3 { background-image: url("https://s.cdpn.io/15514/clouds_3.png"); animation: cloud3 17s infinite linear; z-index: 4; }
@keyframes cloud1 { to { background-position: -1000px 0; } }
@keyframes cloud2 { to { background-position: -1000px 0; } }
@keyframes cloud3 { to { background-position: -1579px 0; } }
.logo {
  position: absolute; top: 60px; left: 50%; transform: translateX(-50%);
  width: 300px; z-index: 3; text-align: center;
  animation: breathe 40s ease-in-out infinite;
}
.logo img { max-width: 100%; height: auto; }
@keyframes breathe { 0%,100% { opacity:1; } 50% { opacity:0; } }

/* ═══════════════════════════════════════════════════════
   THE CORNER-CUTOUT BOX  (adapted from the forum CSS)
   Creates mitered / clipped corners using mask compositing
═══════════════════════════════════════════════════════ */
.lore-box {
  position: relative;
  background: var(--ink-light);
  border: var(--rule);
}
/* Punch out all four corners */
.lore-box::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background: var(--ink-mid);
  mask:
    radial-gradient(28px at 28px 28px,
      #0000 calc(98% - 6px), #000 calc(100% - 6px) 98%, #0000) -28px -28px,
    linear-gradient(90deg, #000 14px, #0000 0)
      -6px 50% / 100% calc(100% - 56px + 6px) repeat-x,
    linear-gradient(#000 14px, #0000 0)
      50% -6px / calc(100% - 56px + 6px) 100% repeat-y;
}
.lore-box > * { position: relative; z-index: 2; }

/* Gold accent variant */
.lore-box--gold {
  border-color: var(--gold-dim);
  background: linear-gradient(145deg, var(--ink-light) 0%, rgba(201,168,76,0.04) 100%);
}

/* Smaller corner radius variant */
.lore-box--sm::after {
  mask:
    radial-gradient(16px at 16px 16px,
      #0000 calc(98% - 4px), #000 calc(100% - 4px) 98%, #0000) -16px -16px,
    linear-gradient(90deg, #000 8px, #0000 0)
      -4px 50% / 100% calc(100% - 32px + 4px) repeat-x,
    linear-gradient(#000 8px, #0000 0)
      50% -4px / calc(100% - 32px + 4px) 100% repeat-y;
}

/* ═══════════════════════════════════════════════════════
   OUTER / SHELL
═══════════════════════════════════════════════════════ */
.outer { width: 1650px; margin: auto; position: relative; }
@media (max-width: 1700px) { .outer { width: 100%; padding: 0 16px; } }

.all-content {
  margin-top: 340px;
  background: var(--ink-mid);
  border: 1px solid rgba(201,168,76,0.2);
  border-top: 3px solid var(--gold-dim);
  padding: 28px 28px 48px;
  min-height: calc(100vh - 280px);
  position: relative;
}
/* gold shimmer across top of page */
.all-content::before {
  content: "";
  position: absolute; top: 6px; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--gold-dim) 25%, var(--gold) 50%, var(--gold-dim) 75%, transparent 100%);
  opacity: 0.5;
}

/* ═══════════════════════════════════════════════════════
   3-COLUMN GRID  — intentionally uneven
═══════════════════════════════════════════════════════ */
.main {
  display: grid;
  grid-template-columns: 220px 1fr 280px;
  gap: 22px;
  align-items: start;
}

/* ═══════════════════════════════════════════════════════
   LEFT SIDEBAR
═══════════════════════════════════════════════════════ */
.sidebar-left {
  display: flex; flex-direction: column; gap: 14px;
  margin-top: -10px;   /* slight up-shift breaks the rigid grid */
}

.log-title {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px;
  border-bottom: 2px solid var(--gold-dim);
  position: relative;
}
.log-title::before {
    content: "✦ EDELPOST ✦";
    font-family: var(--f-label);
    font-size: 0.8rem;
    letter-spacing: 4px;
    color: var(--gold);
    position: absolute;
    top: 14px;
    left: 51%;
    transform: translateX(-50%);
    /* background: var(--ink-mid); */
    padding: 0 8px;
    white-space: nowrap;
}
.log-title h2 { display: none; }
.edelpost { position: absolute; top: -60px; left: 155px; scale: 60%; z-index: 3; }
.rss-link { opacity: 0.5; transition: opacity 0.2s; }
.rss-link:hover { opacity: 1; }
.rss-link img { width: 20px; height: auto; }

.updates {
  overflow-y: scroll !important; height: 290px; padding: 4px 8px;
  background: rgba(0,0,0,0.2); border-left: 2px solid var(--gold-dim);
  scrollbar-width: none;
}
.updates::-webkit-scrollbar { display: none; }
.feed-title { display: none; }
.feed-item-title {
  font-family: var(--f-body); font-size: 0.82rem;
  margin: 6px 0 2px; padding-bottom: 6px;
  border-bottom: 1px dashed rgba(201,168,76,0.2);
}
.feed-item-title::before {
  content: ""; background-image: url(/assets/img/homepage/moogle.png);
  display: inline-block; height: 22px; width: 14px;
  background-size: cover; margin-right: 4px; vertical-align: middle;
}
.feed-item-title a { color: var(--fog); pointer-events: none; }

/* Sprite area */
.talksprite { position: relative; }
.talkin {
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
  background: var(--ink-light);
  position: absolute; display: block; top: 380px; height: 80px;
  rotate: 160deg; color: transparent; z-index: 0;
}
.biblio {
  display: block; position: relative; left: 10px; height: 230px; z-index: 3;
  background-image: var(--biblio-img); background-size: 200px;
  background-position: var(--biblio-pos); background-repeat: no-repeat;
  pointer-events: none; margin-top: -50px;
}
.quilliam {
  display: var(--quilliam-vis);
  position: relative; left: 145px; bottom: 185px;
  width: 28px; height: 28px; z-index: 4; cursor: var(--cursor-hover);
  transition: transform 0.15s ease;
}
.quilliam:hover { transform: scale(1.2); }
.quilliam:active { transform: scale(0.9); }

#statuscafe {
  padding: 10px 12px; 
  background: var(--ink-light);
  border: 1px solid rgba(201,168,76,0.2); 
  color: var(--fog);
  font-family: var(--f-body); 
  font-size: 0.85rem; 
  position: relative;
  top: -40px;
}
#statuscafe::before {
  content: "status"; font-family: var(--f-label); font-size: 0.55rem;
  letter-spacing: 3px; text-transform: uppercase; color: var(--gold);
  display: block; margin-bottom: 6px;
  border-bottom: 1px solid rgba(201,168,76,0.2); padding-bottom: 4px;
}
.status { margin-top: -30px; }

/* ═══════════════════════════════════════════════════════
   MAIN CONTENT
═══════════════════════════════════════════════════════ */
.content { display: flex; flex-direction: column; gap: 0; }

/* ── ABOUT BOX ── */
.about {
  padding: 22px 28px 18px;
  margin-bottom: 16px; position: relative;
}
/* off-centre left accent bar */
.about::before {
  content: ""; position: absolute;
  left: -2px; top: 15%; bottom: 15%;
  width: 3px;
  background: linear-gradient(to bottom, transparent, var(--gold), transparent);
}
.about-masthead {
  font-family: var(--f-label);
  font-size: 0.55rem;
  letter-spacing: 5px; 
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.7;
  margin-bottom: 6px;
  text-align: center;
}

.about h1 {
    font-family: var(--f-display);
    font-size: 1.2rem;
    letter-spacing: 2px;
    background: none;
    color: var(--frost);
    padding: 0;
    margin: 0 0 4px;
    line-height: 1.2;
    text-align: center;
}

.about-rule {
  display: flex; align-items: center; gap: 10px; margin: 10px 0 14px;
}
.about-rule span {
  font-family: var(--f-label); font-size: 0.55rem;
  letter-spacing: 3px; color: var(--gold); white-space: nowrap;
}
.about-rule::before, .about-rule::after {
  content: ""; flex: 1; height: 1px;
  background: linear-gradient(90deg, var(--gold-dim), transparent);
}
.about-rule::after { background: linear-gradient(270deg, var(--gold-dim), transparent); }
.about p {
  font-family: var(--f-body); font-size: 0.95rem; line-height: 1.75;
  color: var(--fog); margin: 0 0 8px;
}
.about p strong { color: var(--gold); }
.about p em { font-family: var(--f-italic); }

/* hawk tuah mascot */
#hawktuah {
  float: right; margin: -10px 0 10px 18px; width: 165px;
  filter: drop-shadow(0 0 8px rgba(0,0,0,0.9));
  cursor: var(--cursor-hover); transition: transform 0.3s ease, filter 0.3s ease;
}
#hawktuah:hover {
  transform: scale(1.08) rotate(3deg);
  filter: drop-shadow(0 0 14px rgba(201,168,76,0.35));
}
@keyframes bounce {
  0%   { transform: scale(1.08) rotate(3deg); }
  25%  { transform: scale(1.18) rotate(6deg); }
  50%  { transform: scale(0.96) rotate(-2deg); }
  75%  { transform: scale(1.04) rotate(2deg); }
  100% { transform: scale(1.08) rotate(3deg); }
}

/* ── HOME NAV ── */
.homenav {
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 4px 6px; padding: 14px 16px 12px;
  margin-bottom: 20px;
  background: var(--void);
  border-top: 2px solid var(--gold-dim);
  border-bottom: 1px solid rgba(201,168,76,0.15);
  position: relative;
}
.homenav::before {
  content: "ARCHIVES  ◆  COMPENDIUM  ◆  CHRONICLES  ◆  FIELD NOTES";
  position: absolute;
  top: 4px; 
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--f-label);
  font-size: 0.5rem; 
  letter-spacing: 4px;
  color: var(--gold);
  padding: 0 10px; 
  white-space: nowrap;
}
.homenav a {
  position: relative; display: flex; flex-direction: column;
  align-items: center; transition: all 0.3s ease; color: inherit;
}
.homenav a:hover { transform: translateY(-6px); color: inherit; }
.homenav a:hover .homenav-button { filter: drop-shadow(0 4px 10px rgba(201,168,76,0.4)); }
.homenav a:hover .homenav-label { opacity: 1; transform: translateY(0); }
.homenav-button {
  width: 60px; height: 60px;
  background-position: center; background-size: contain; background-repeat: no-repeat;
  transition: filter 0.3s ease;
}
.homenav-label {
  font-family: var(--f-label); font-size: 0.55rem; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--gold);
  opacity: 0; transform: translateY(4px); transition: all 0.3s ease;
  margin-top: 3px; white-space: nowrap;
  background: rgba(22,25,29,0.9); padding: 2px 5px;
}
.homenav span { background: none; padding: 0; }
.chunk {
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
  width: 7px; height: 7px; align-self: center; flex-shrink: 0;
}
.bg-primary  { 
  background: var(--gold-dim); 
  height: 17px;
  width: 17px;
}
.bg-secondary {
  background: rgba(201,168,76,0.3);
  height: 17px;
  width: 17px;
}

/* ── SECTION ORNAMENT ── */
.section-ornament {
  display: flex; align-items: center; gap: 12px; margin-bottom: 14px;
}
.section-ornament h2 {
  font-family: var(--f-head); font-size: 0.75rem; letter-spacing: 3px;
  text-transform: uppercase; color: var(--gold);
  margin: 0; padding: 0; border: none; white-space: nowrap; flex-shrink: 0;
}
.section-ornament-line { flex: 1; height: 1px; background: linear-gradient(90deg, var(--gold-dim), transparent); }
.section-ornament a {
  font-family: var(--f-label); font-size: 0.6rem; letter-spacing: 2px;
  text-transform: uppercase; color: var(--fog-dim); white-space: nowrap;
}
.section-ornament a:hover { color: var(--gold); }

/* ── FUN FACT FRIDAY ── */
.fff-section { margin-bottom: 24px; }

.fff-pullquote {
  margin-bottom: 14px;
  padding: 16px 20px 14px 32px;
  background: linear-gradient(105deg, var(--ink-light) 0%, rgba(201,168,76,0.05) 100%);
  border-left: 3px solid var(--gold);
  position: relative;
  text-align: center;
}
.fff-pullquote::before {
  content: "✦ today's lore ✦";
  font-family: var(--f-label); font-size: 0.55rem; letter-spacing: 4px;
  text-transform: uppercase; color: var(--gold); opacity: 0.6;
  display: block; margin-bottom: 8px;
}
#fff-random-text {
  font-family: var(--f-italic); font-size: 1.05rem; font-style: italic;
  line-height: 1.65; color: var(--frost); margin: 0 0 6px; position: relative;
}
#fff-random-text::before {
  content: "\201C"; font-family: var(--f-display); font-size: 4rem;
  color: var(--gold-dim); position: absolute; left: -30px; top: -18px; line-height: 1;
}
#fff-random-source {
  display: block; font-family: var(--f-label); font-size: 0.6rem;
  letter-spacing: 2px; color: var(--fog-dim); text-align: right;
}

.fff-carousel-wrapper { position: relative; overflow: hidden; }
.fff-carousel-track {
  display: flex; gap: 12px;
  transition: transform 0.5s cubic-bezier(0.25,0.46,0.45,0.94);
}

/* News cards */
.news-card-link { display: block; flex-shrink: 0; }
.news-card {
  position: relative; overflow: hidden;
  width: 100%;
  background: var(--ink);
  cursor: var(--cursor-hover);
  border: 1px solid var(--gold-dim);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.news-card::before {
  content: ""; position: absolute; inset: 6px;
  border: 1px solid rgba(201,168,76,0.18); z-index: 3; pointer-events: none;
}
.news-card:hover {
  transform: translateY(-8px) rotate(-0.4deg);
  box-shadow: 6px 14px 40px rgba(0,0,0,0.85), 0 0 20px var(--gold-glow);
}
.news-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; filter: saturate(0.8); }
.news-card:hover img { transform: scale(1.06); filter: saturate(1); }
.news-content {
  position: absolute; bottom: 0; width: 100%; padding: 1rem; z-index: 2;
  background: linear-gradient(to top, rgba(0,0,0,0.95) 40%, rgba(0,0,0,0.5) 75%, transparent 100%);
}
.news-author {
  font-family: var(--f-label); font-size: 0.6rem;
  letter-spacing: 2px; text-transform: uppercase; color: var(--gold); margin-bottom: 4px;
}
.news-title {
  font-family: var(--f-head); font-size: 0.9rem; font-weight: 600;
  line-height: 1.3; color: var(--frost); margin-bottom: 8px;
  text-transform: uppercase; letter-spacing: 1px;
}
.news-meta { display: flex; justify-content: space-between; align-items: center; }
.news-tag {
  font-family: var(--f-label); font-size: 0.58rem; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--gold);
  border: 1px solid var(--gold-dim); padding: 2px 6px;
}
.news-date {
  font-family: var(--f-label); font-size: 0.58rem; letter-spacing: 1px; color: rgba(255,255,255,0.4);
}

.carousel-controls { display: flex; align-items: center; justify-content: flex-end; gap: 6px; margin-top: 10px; }
.carousel-btn {
  background: none; border: 1px solid var(--gold-dim); color: var(--gold-dim);
  width: 26px; height: 26px; cursor: var(--cursor-hover);
  display: flex; align-items: center; justify-content: center; font-size: 0.75rem;
  transition: all 0.2s ease;
}
.carousel-btn:hover { border-color: var(--gold); color: var(--gold); background: var(--gold-pale); }
.carousel-dots { display: flex; align-items: center; gap: 4px; flex: 1; }
.carousel-dot { width: 4px; height: 4px; border-radius: 50%; background: rgba(201,168,76,0.25); cursor: var(--cursor-hover); transition: all 0.3s ease; }
.carousel-dot.active { background: var(--gold); width: 16px; border-radius: 2px; }

/* ── LOWER GRID ── */
.lower-grid {
  display: grid; grid-template-columns: 1fr 240px;
  gap: 18px; margin-top: 20px; align-items: start;
}

/* ── RECAP ── */
.recap-box { padding: 20px 24px; position: relative; }
.recap-box::before {
  content: attr(data-session);
  font-family: var(--f-display); font-size: 6.5rem;
  color: rgba(201,168,76,0.04);
  position: absolute; right: 10px; top: -10px;
  line-height: 1; pointer-events: none; z-index: 0; user-select: none;
}
.recap-header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.recap-header h3 {
  font-family: var(--f-head); font-size: 0.7rem; letter-spacing: 3px;
  text-transform: uppercase; color: var(--gold); margin: 0; font-weight: 400;
}
.session-badge {
  font-family: var(--f-label); font-size: 0.6rem; letter-spacing: 2px;
  color: var(--fog-dim); border: 1px solid var(--gold-dim); padding: 2px 7px;
}
.recap-lede {
  font-family: var(--f-body); font-size: 0.93rem; line-height: 1.75;
  color: var(--fog); position: relative; z-index: 1; margin-bottom: 12px;
}
.recap-lede::first-letter {
  font-family: var(--f-display); font-size: 3.2em;
  float: left; line-height: 0.82; margin-right: 8px; margin-top: 6px; color: var(--gold);
}
.recap-bullets { list-style: none; margin: 0; padding: 0; border-top: 1px dashed rgba(201,168,76,0.2); padding-top: 10px; position: relative; z-index: 1; }
.recap-bullets li { font-family: var(--f-body); font-size: 0.85rem; color: var(--fog); padding: 3px 0 3px 20px; position: relative; }
.recap-bullets li::before { content: "◆"; position: absolute; left: 0; font-size: 0.5rem; color: var(--gold); top: 7px; }
.recap-footer { display: flex; justify-content: flex-end; padding-top: 10px; margin-top: 8px; border-top: 1px dashed rgba(201,168,76,0.2); position: relative; z-index: 1; }
.recap-footer a { font-family: var(--f-label); font-size: 0.6rem; letter-spacing: 2px; text-transform: uppercase; color: var(--fog-dim); }
.recap-footer a:hover { color: var(--gold); }

.recap-img {
    width: 163px;
    float: right;
    /* border: 1px solid var(--gold-dim); */
    margin: 0 0 8px 14px;
    filter: saturate(0.7);
}


/* ═══════════════════════════════════════════════════════
   RIGHT SIDEBAR
═══════════════════════════════════════════════════════ */
.side { display: flex; flex-direction: column; gap: 16px; margin-top: 14px; }

/* Music */
.musicbox { background: var(--void); border: 1px solid var(--gold-dim); border-top: 2px solid var(--gold); padding: 10px 14px; position: relative; }
.musicbox::before { content: "NOW PLAYING"; font-family: var(--f-label); font-size: 0.5rem; letter-spacing: 4px; color: var(--gold); opacity: 0.6; display: block; margin-bottom: 6px; }
#music-title { display: inline-block; white-space: nowrap; animation: marquee 18s linear infinite; font-family: var(--f-label); font-size: 0.75rem; letter-spacing: 1px; color: var(--frost); padding-right: 20px; }
@keyframes marquee { 0% { transform: translateX(0%); } 100% { transform: translateX(-100%); } }
.music select { width: 100%; background: var(--ink); color: var(--fog); border: 1px solid var(--gold-dim); padding: 4px 8px; font-family: var(--f-body); font-size: 0.82rem; cursor: var(--cursor-hover); transition: border-color 0.2s; }
.music select:hover { border-color: var(--gold); }
.music option { background: var(--ink-mid); }

/* Side panel */
.side-panel { background: var(--ink-light); border: 1px solid rgba(201,168,76,0.2); padding: 14px 16px; position: relative; }
.side-panel-title { font-family: var(--f-label); font-size: 0.6rem; letter-spacing: 4px; text-transform: uppercase; color: var(--gold); border-bottom: 1px dashed rgba(201,168,76,0.25); padding-bottom: 7px; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.side-panel-title::before { content: "◆"; font-size: 0.5rem; }

/* MVP */
.mvp-card {
  text-align: center;
  }
  
.mvp-card img {
  width: 100%;
  max-width: 160px; 
  display: block;
  margin: 0 auto 8px; 
  filter: saturate(0.85);
  transition: filter 0.3s;
}
  
.mvp-card:hover img {
  filter: saturate(1);
}
  
.mvp-name { 
  font-family: var(--f-head);
  font-size: 0.85rem;
  letter-spacing: 1px;
  color: var(--frost); 
  display: block;
  margin-bottom: 5px; 
}

.mvp-reason {
  font-family: var(--f-italic); 
  font-size: 0.82rem; 
  font-style: italic;
  line-height: 1.5; 
  color: var(--fog-dim);
  margin: 0;
}

/* Random character */
.random { display: flex; flex-direction: column; align-items: center; min-height: 220px; gap: 8px; text-align: center; padding: 4px 0; }
.random-roll-btn { font-family: var(--f-label); font-size: 0.6rem; letter-spacing: 3px; text-transform: uppercase; background: none; color: var(--gold); border: 1px solid var(--gold-dim); padding: 6px 16px; cursor: var(--cursor-hover); transition: all 0.3s ease; margin-top: 4px; }
.random-roll-btn:hover { background: var(--gold-dim); color: var(--frost); border-color: var(--gold); }
.randomavi { width: 150px; height: 150px; border: 1px solid var(--gold-dim); }


/* ═══════════════════════════════════════════════════════
   ORNAMENTAL DIVIDER
═══════════════════════════════════════════════════════ */
.divider { display: flex; align-items: center; gap: 12px; margin: 6px 0 18px; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--gold-dim)); }
.divider::after { background: linear-gradient(270deg, transparent, var(--gold-dim)); }
.divider-glyph { font-size: 0.7rem; color: var(--gold); letter-spacing: 3px; flex-shrink: 0; }

/* ═══════════════════════════════════════════════════════
   SEARCH
═══════════════════════════════════════════════════════ */
.search-wrapper { position: relative; z-index: 10000; }
#search-input { width: 100%; padding: 8px 12px; font-family: var(--f-body); font-size: 0.9rem; background: rgba(0,0,0,0.3); border: 1px solid var(--gold-dim); color: var(--frost); outline: none; transition: border-color 0.2s; }
#search-input::placeholder { color: rgba(197,200,202,0.3); font-style: italic; }
#search-input:focus { border-color: var(--gold); box-shadow: 0 0 0 2px var(--gold-pale); }
#search-results { position: absolute; top: 100%; left: 0; width: 100%; display: none; background: rgba(10,11,13,0.96); border: 1px solid var(--gold-dim); z-index: 10001; box-shadow: 0 12px 30px rgba(0,0,0,0.8); }
#search-results li { list-style: none; margin: 0; padding: 0; }
#search-results li a { display: block; padding: 8px 12px; color: var(--fog); font-family: var(--f-body); font-size: 0.85rem; border-bottom: 1px solid rgba(201,168,76,0.08); transition: all 0.2s ease; }
#search-results li a:hover { background: var(--gold-pale); color: var(--gold); padding-left: 18px; }

/* ═══════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════ */
.footer { background: var(--void); border-top: 1px solid rgba(201,168,76,0.2); text-align: center; padding: 20px; font-family: var(--f-label); font-size: 0.6rem; letter-spacing: 2px; text-transform: uppercase; color: var(--fog-dim); margin-top: 28px; line-height: 2; }
.footer a { color: var(--fog-dim); text-decoration: underline; text-underline-offset: 3px; }
.footer a:hover { color: var(--gold); }


/* ═══════════════════════════════════════════════════════
   RESPONSIVE — TABLET  (≤ 1024px)
   Collapse to 2 columns: drop the left sidebar below content
═══════════════════════════════════════════════════════ */
@media (max-width: 1024px) {

  /* Tighten outer padding */
  .outer { padding: 0 12px; }

  /* Hero area comes down a touch */
  .all-content {
    margin-top: 240px;
    padding: 20px 18px 36px;
  }

  /* Logo slightly smaller */
  .logo { width: 220px; top: 40px; }

  /* 2-col: left sidebar moves to bottom, right sidebar stays */
  .main {
    grid-template-columns: 1fr 260px;
    grid-template-areas:
      "content  side"
      "sidebar  side";
  }

  .sidebar-left { grid-area: sidebar; margin-top: 0; flex-direction: row; flex-wrap: wrap; gap: 14px; }
  .content      { grid-area: content; }
  .side         { grid-area: side; }

  /* Sprite / biblio decorations are quirky at this width — shrink */
  .biblio       { height: 180px; background-size: 160px; }
  .quilliam     { left: 115px; bottom: 148px; }
  .talkin       { top: 310px; }

  /* Nav bar — allow the subtitle to wrap */
  .homenav::before { font-size: 0.42rem; letter-spacing: 2.5px; }

  /* Lower grid stacks inside content column */
  .lower-grid { grid-template-columns: 1fr; }
}


/* ═══════════════════════════════════════════════════════
   RESPONSIVE — MOBILE  (≤ 680px)
   Full single-column stack, touch-friendly targets
═══════════════════════════════════════════════════════ */
@media (max-width: 680px) {

  /* Restore auto cursor on touch devices */
  body { cursor: auto; font-size: 15px; }
  a    { cursor: pointer; }

  /* Reduce blur cost on mobile */
  body::before { filter: blur(4px); background-attachment: scroll; }

  /* ── Outer shell ── */
  .outer { padding: 0 10px; }
  .all-content {
    margin-top: 160px;
    padding: 16px 12px 32px;
    border-top-width: 2px;
  }

  /* ── Logo ── */
  .logo { width: 160px; top: 20px; }

  /* ── Single column everything ── */
  .main {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  /* Reorder: content → right sidebar → left sidebar */
  .content      { order: 1; }
  .side         { order: 2; flex-direction: row; flex-wrap: wrap; gap: 12px; }
  .sidebar-left { order: 3; flex-direction: row; flex-wrap: wrap; gap: 12px; margin-top: 0; }

  /* Side panels share width on mobile */
  .side > * { flex: 1 1 calc(50% - 6px); min-width: 140px; }

  /* ── About box ── */
  .about { padding: 16px 14px; }
  .about h1 { font-size: 1rem; }
  .about::before { display: none; } /* hide accent bar — too tight */

  /* Mascot — smaller float */
  #hawktuah { width: 110px; margin: -4px 0 8px 12px; }

  /* ── Home nav ── */
  .homenav {
    padding: 20px 8px 10px;
    gap: 8px 4px;
  }
  /* Hide the tiny subtitle text — too cluttered */
  .homenav::before { display: none; }

  .homenav-button { width: 48px; height: 48px; }
  /* Always show labels on mobile (no hover) */
  .homenav-label {
    opacity: 1;
    transform: translateY(0);
    font-size: 0.5rem;
    letter-spacing: 1px;
  }
  /* Hide decorative diamond separators */
  .chunk { display: none; }

  /* ── Pullquote ── */
  .fff-pullquote { padding: 14px 14px 12px 22px; }
  #fff-random-text { font-size: 0.95rem; }
  #fff-random-text::before { font-size: 3rem; left: -22px; top: -12px; }

  /* ── News cards: full-width carousel items ── */
  .news-card-link { width: 100%; }
  .news-card:hover { transform: none; box-shadow: none; } /* disable lift on touch */

  /* ── Section ornament ── */
  .section-ornament { gap: 8px; }
  .section-ornament h2 { font-size: 0.7rem; letter-spacing: 2px; }

  /* ── Lower grid: fully stacked ── */
  .lower-grid { grid-template-columns: 1fr; gap: 14px; }

  /* ── Recap ── */
  .recap-box { padding: 14px 14px; }
  .recap-box::before { font-size: 4rem; right: 4px; top: 0; } /* watermark */
  .recap-img { width: 110px; margin: 0 0 6px 10px; }
  .recap-lede::first-letter { font-size: 2.6em; }


  /* ── Updates feed ── */
  .updates { height: 200px; }

  /* ── Sprite / biblio ── */
  .biblio  { height: 160px; background-size: 140px; left: 0; }
  .quilliam { left: 95px; bottom: 130px; }
  .talkin  { display: none; }

  /* ── Status cafe ── */
  #statuscafe { top: 10px; }
  .status { margin-top: -20px; }
  
#log-title { right: -44px; }
.log-title { right: -44px; }

  /* ── Music box ── */
  .musicbox { padding: 8px 12px; }

  /* ── Lore-box corner cuts: use smaller variant on mobile ── */
  .lore-box::after {
    mask:
      radial-gradient(16px at 16px 16px,
        #0000 calc(98% - 4px), #000 calc(100% - 4px) 98%, #0000) -16px -16px,
      linear-gradient(90deg, #000 8px, #0000 0)
        -4px 50% / 100% calc(100% - 32px + 4px) repeat-x,
      linear-gradient(#000 8px, #0000 0)
        50% -4px / calc(100% - 32px + 4px) 100% repeat-y;
  }

  /* ── Footer ── */
  .footer { padding: 16px 12px; letter-spacing: 1px; }

  /* ── Search results ── */
  #search-results li a { padding: 10px 12px; font-size: 0.9rem; } /* larger tap targets */
}


/* ═══════════════════════════════════════════════════════
   RESPONSIVE — SMALL MOBILE  (≤ 400px)
   Extra tweaks for very narrow screens
═══════════════════════════════════════════════════════ */
@media (max-width: 400px) {

  .all-content { margin-top: 130px; padding: 12px 8px 24px; }
  .logo { width: 130px; top: 12px; }

  .about h1 { font-size: 0.9rem; letter-spacing: 1px; }
  #hawktuah { width: 90px; }

  /* Side panels go full width */
  .side > * { flex: 1 1 100%; }

  .homenav-button { width: 40px; height: 40px; }

  /* Pullquote drop-cap "quote" mark is too wide — hide it */
  #fff-random-text::before { display: none; }
  .fff-pullquote { padding: 12px 12px 10px; }
}
