/*
Theme Name: Shifting Fates
Theme URI: https://shiftingfates.com
Author: Nova Jolan
Description: A custom dark fantasy WordPress theme for Shifting Fates, a tabletop campaign network.
Version: 1.5.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: shifting-fates
Tags: custom-logo, custom-menu, featured-images, blog, entertainment, full-width-template
*/

/* =========================================================
   Shifting Fates Theme
   Palette:
   Background: #1a0a2e
   Primary purple: #7c3aed
   Cosmic blue: #38bdf8
   Gold accent: #fbbf24
   Pink/violet: #e879f9
   Body text: #e2d9f3
   Links: #c084fc
   Nav/Footer: #0f0520
   Borders: #3b1f6b
========================================================= */

:root {
  --sf-bg: #1a0a2e;
  --sf-bg-deep: #0f0520;
  --sf-purple: #7c3aed;
  --sf-blue: #38bdf8;
  --sf-gold: #fbbf24;
  --sf-pink: #e879f9;
  --sf-text: #e2d9f3;
  --sf-link: #c084fc;
  --sf-border: #3b1f6b;
  --sf-muted: #b9add1;
  --sf-card: rgba(15, 5, 32, 0.72);
  --sf-card-strong: rgba(15, 5, 32, 0.92);
  --sf-shadow: 0 20px 55px rgba(0, 0, 0, 0.42);
  --sf-radius: 18px;
  --sf-heading: "Cinzel", Georgia, serif;
  --sf-body: "IM Fell English", Georgia, serif;
  --sf-max: 1180px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--sf-text);
  background:
    radial-gradient(circle at top left, rgba(124, 58, 237, 0.22), transparent 34rem),
    radial-gradient(circle at top right, rgba(56, 189, 248, 0.14), transparent 30rem),
    linear-gradient(180deg, #1a0a2e 0%, #12051f 52%, #0f0520 100%);
  font-family: var(--sf-body);
  font-size: 20px;
  line-height: 1.65;
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(circle at center, black, transparent 82%);
}

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

a {
  color: var(--sf-link);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  transition: color 180ms ease, text-shadow 180ms ease, border-color 180ms ease, transform 180ms ease;
}

a:hover,
a:focus {
  color: var(--sf-gold);
}

h1, h2, h3, h4, h5, h6,
.site-title,
.sf-nav,
.sf-card-title,
.wp-block-heading {
  font-family: var(--sf-heading);
  letter-spacing: 0.04em;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--sf-gold);
  line-height: 1.15;
  margin: 0 0 0.65em;
}

h1 {
  font-size: clamp(2.25rem, 7vw, 5.8rem);
}

h2 {
  font-size: clamp(1.85rem, 4vw, 3.4rem);
}

h3 {
  font-size: clamp(1.35rem, 3vw, 2rem);
}

p {
  margin: 0 0 1.15em;
}

.screen-reader-text,
.skip-link {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  margin: -1px;
  padding: 0;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}

.skip-link:focus {
  clip: auto !important;
  clip-path: none;
  display: block;
  height: auto;
  left: 1rem;
  top: 1rem;
  width: auto;
  z-index: 100000;
  background: var(--sf-gold);
  color: #12051f;
  padding: 0.6rem 0.85rem;
  border-radius: 10px;
}

/* Layout */
.sf-container {
  width: min(var(--sf-max), calc(100% - 2rem));
  margin-inline: auto;
}

.sf-section {
  padding: clamp(3rem, 7vw, 6rem) 0;
}

.sf-section-header {
  max-width: 780px;
  margin-bottom: 2rem;
}

.sf-kicker {
  color: var(--sf-blue);
  font-family: var(--sf-heading);
  font-size: 0.88rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.sf-lede {
  color: var(--sf-muted);
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(15, 5, 32, 0.86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(59, 31, 107, 0.82);
}

.site-header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.site-branding {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
}

.custom-logo-link {
  display: inline-flex;
  align-items: center;
}

.custom-logo {
  max-height: 58px;
  width: auto;
}

.site-title {
  margin: 0;
  font-size: clamp(1.2rem, 3vw, 1.75rem);
  line-height: 1;
}

.site-title a {
  color: var(--sf-gold);
  text-decoration: none;
}

.site-description {
  margin: 0.25rem 0 0;
  color: var(--sf-muted);
  font-size: 0.92rem;
}

.sf-nav-toggle {
  display: none;
  background: transparent;
  color: var(--sf-text);
  border: 1px solid var(--sf-border);
  border-radius: 999px;
  padding: 0.55rem 0.85rem;
  font-family: var(--sf-heading);
  letter-spacing: 0.08em;
  cursor: pointer;
}

.primary-navigation ul {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.45rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.primary-navigation a {
  display: inline-flex;
  padding: 0.7rem 0.85rem;
  border-radius: 999px;
  color: var(--sf-text);
  font-family: var(--sf-heading);
  font-size: 0.86rem;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.primary-navigation a:hover,
.primary-navigation a:focus,
.primary-navigation .current-menu-item > a {
  color: var(--sf-gold);
  background: rgba(124, 58, 237, 0.16);
  box-shadow: inset 0 0 0 1px rgba(251, 191, 36, 0.22);
}

/* Hero */
.sf-hero {
  position: relative;
  overflow: hidden;
  min-height: clamp(560px, 78vh, 820px);
  display: grid;
  place-items: center;
  padding: clamp(4rem, 9vw, 8rem) 0;
  border-bottom: 1px solid rgba(59, 31, 107, 0.8);
}

.sf-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 28%, rgba(232, 121, 249, 0.18), transparent 24rem),
    radial-gradient(circle at 50% 56%, rgba(56, 189, 248, 0.12), transparent 30rem),
    linear-gradient(180deg, rgba(15, 5, 32, 0.15), rgba(15, 5, 32, 0.82));
}

.sf-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.38;
  background:
    linear-gradient(115deg, transparent 0 42%, rgba(251,191,36,0.10) 42.2%, transparent 43% 100%),
    linear-gradient(65deg, transparent 0 52%, rgba(56,189,248,0.08) 52.2%, transparent 53% 100%);
}

.sf-hero-inner {
  position: relative;
  z-index: 2;
  width: min(920px, calc(100% - 2rem));
  margin-inline: auto;
  text-align: center;
}

.sf-hero-logo {
  margin-inline: auto;
  margin-bottom: 1.3rem;
}

.sf-hero-logo .custom-logo {
  max-height: clamp(130px, 26vw, 260px);
  filter: drop-shadow(0 24px 42px rgba(0,0,0,0.52));
}

.sf-hero-title {
  margin-bottom: 0.35em;
  text-shadow: 0 0 28px rgba(251, 191, 36, 0.22);
}

.sf-hero-tagline {
  max-width: 780px;
  margin-inline: auto;
  color: var(--sf-text);
  font-size: clamp(1.25rem, 2.7vw, 1.75rem);
}

.sf-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
}

.sf-button,
.wp-block-button__link,
input[type="submit"],
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.82rem 1.2rem;
  border-radius: 999px;
  border: 1px solid rgba(251, 191, 36, 0.4);
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.9), rgba(56, 189, 248, 0.45));
  color: #fff;
  font-family: var(--sf-heading);
  font-size: 0.88rem;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
  box-shadow: 0 16px 38px rgba(0,0,0,0.32), inset 0 0 18px rgba(255,255,255,0.08);
}

.sf-button:hover,
.sf-button:focus,
.wp-block-button__link:hover,
.wp-block-button__link:focus {
  color: #12051f;
  background: linear-gradient(135deg, var(--sf-gold), var(--sf-pink));
  transform: translateY(-2px);
}

.sf-button.secondary {
  background: rgba(15, 5, 32, 0.7);
  color: var(--sf-text);
}

/* Cards */
.sf-grid {
  display: grid;
  gap: 1.2rem;
}

.sf-grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.sf-card,
.post-card,
.sf-panel {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(124,58,237,0.12), rgba(15,5,32,0.72)),
    var(--sf-card);
  border: 1px solid var(--sf-border);
  border-radius: var(--sf-radius);
  box-shadow: var(--sf-shadow);
}

.sf-card::before,
.post-card::before,
.sf-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(135deg, rgba(251,191,36,0.16), transparent 34%),
    radial-gradient(circle at top right, rgba(56,189,248,0.12), transparent 16rem);
  opacity: 0.85;
}

.sf-card {
  min-height: 230px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.4rem;
  text-decoration: none;
  color: var(--sf-text);
  transform: translateY(0);
}

.sf-card > * {
  position: relative;
  z-index: 1;
}

.sf-card:hover,
.sf-card:focus {
  transform: translateY(-4px);
  border-color: rgba(251, 191, 36, 0.6);
  color: var(--sf-text);
}

.sf-card-title {
  color: var(--sf-gold);
  font-size: 1.24rem;
  margin: 0 0 0.45rem;
}

.sf-card p {
  color: var(--sf-muted);
  margin: 0;
}

.sf-now-playing-title {
  font-size: clamp(2rem, 5vw, 4.2rem);
}

.sf-now-playing {
  background:
    radial-gradient(circle at 15% 18%, rgba(251,191,36,0.10), transparent 16rem),
    radial-gradient(circle at 85% 40%, rgba(232,121,249,0.10), transparent 18rem);
}

/* Latest post */
.post-card {
  padding: clamp(1.35rem, 4vw, 2.2rem);
}

.post-card > * {
  position: relative;
  z-index: 1;
}

.post-card .entry-meta {
  color: var(--sf-blue);
  font-family: var(--sf-heading);
  font-size: 0.86rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.post-card h3 a {
  color: var(--sf-gold);
  text-decoration: none;
}

/* Character Spotlight */
.sf-spotlight {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 1.25rem;
  align-items: stretch;
}

.sf-spotlight .sf-panel {
  padding: clamp(1.35rem, 4vw, 2.2rem);
}

.sf-placeholder-frame {
  min-height: 340px;
  display: grid;
  place-items: center;
  text-align: center;
  border: 1px dashed rgba(251,191,36,0.36);
  border-radius: var(--sf-radius);
  background:
    radial-gradient(circle at center, rgba(56,189,248,0.13), transparent 12rem),
    rgba(15,5,32,0.44);
}

.sf-rune {
  font-family: var(--sf-heading);
  font-size: clamp(4rem, 12vw, 9rem);
  color: rgba(251,191,36,0.46);
}

/* Content templates */
.site-main {
  width: min(900px, calc(100% - 2rem));
  margin-inline: auto;
  padding: clamp(3rem, 7vw, 5.5rem) 0;
}

.site-main.wide {
  width: min(var(--sf-max), calc(100% - 2rem));
}

.entry-header {
  margin-bottom: 2rem;
}

.entry-title {
  margin-bottom: 0.25em;
}

.entry-meta,
.entry-footer {
  color: var(--sf-muted);
  font-size: 0.95rem;
}

.entry-content {
  background: rgba(15, 5, 32, 0.36);
  border: 1px solid rgba(59, 31, 107, 0.7);
  border-radius: var(--sf-radius);
  padding: clamp(1.25rem, 4vw, 2.5rem);
}

.entry-content > *:first-child {
  margin-top: 0;
}

.entry-content > *:last-child {
  margin-bottom: 0;
}

.wp-block-quote {
  border-left: 3px solid var(--sf-gold);
  padding-left: 1rem;
  color: var(--sf-muted);
}

hr,
.wp-block-separator {
  border: 0;
  border-top: 1px solid var(--sf-border);
  margin: 2rem 0;
}

input,
textarea,
select {
  width: 100%;
  max-width: 100%;
  border: 1px solid var(--sf-border);
  border-radius: 12px;
  background: rgba(15, 5, 32, 0.7);
  color: var(--sf-text);
  padding: 0.8rem 0.9rem;
  font: inherit;
}

label {
  color: var(--sf-gold);
}

/* Footer */
.site-footer {
  background: var(--sf-bg-deep);
  border-top: 1px solid var(--sf-border);
  padding: 4rem 0 0;
  color: var(--sf-muted);
}

.site-footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--sf-border);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-logo img {
  height: 56px;
  width: auto;
  opacity: 0.85;
  filter: drop-shadow(0 0 16px rgba(124, 58, 237, 0.35));
  margin-bottom: 0.5rem;
}

.footer-site-name {
  font-family: var(--sf-heading);
  font-size: 1rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sf-gold);
  margin: 0;
}

.footer-tagline {
  font-size: 0.875rem;
  font-style: italic;
  line-height: 1.6;
  color: var(--sf-muted);
  margin: 0;
  max-width: 28ch;
}

.footer-nav-col {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-col-heading {
  font-family: var(--sf-heading);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sf-gold);
  margin: 0 0 0.25rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links li a {
  color: var(--sf-muted);
  font-size: 0.9rem;
  text-decoration: none;
  transition: color 180ms ease;
}

.footer-links li a:hover {
  color: var(--sf-gold);
}

.site-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 0;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-copy {
  font-family: var(--sf-heading);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sf-muted);
  margin: 0;
}

.footer-copy a {
  color: var(--sf-link);
  text-decoration: none;
}

.footer-copy a:hover {
  color: var(--sf-gold);
}

.footer-credit {
  font-family: var(--sf-heading);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0;
  background: linear-gradient(90deg, var(--sf-purple), var(--sf-gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.site-footer a {
  color: var(--sf-text);
}

/* WordPress alignment helpers */
.alignwide {
  max-width: var(--sf-max);
  margin-inline: auto;
}

.alignfull {
  width: 100vw;
  margin-left: calc(50% - 50vw);
}

/* Responsive */
@media (max-width: 920px) {
  body {
    font-size: 18px;
  }

  .site-header-inner {
    min-height: 68px;
  }

  .sf-nav-toggle {
    display: inline-flex;
  }

  .primary-navigation {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    background: rgba(15, 5, 32, 0.98);
    border-bottom: 1px solid var(--sf-border);
    padding: 0.75rem 1rem 1rem;
  }

  .primary-navigation.is-open {
    display: block;
  }

  .primary-navigation ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0.2rem;
  }

  .primary-navigation a {
    width: 100%;
    justify-content: center;
  }

  .sf-grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sf-spotlight {
    grid-template-columns: 1fr;
  }

  .site-footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-tagline {
    max-width: none;
  }
}

@media (max-width: 560px) {
  .site-footer-grid {
    grid-template-columns: 1fr;
  }

  .site-footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 560px) {
  .site-branding-text {
    display: none;
  }

  .sf-grid-4 {
    grid-template-columns: 1fr;
  }

  .sf-card {
    min-height: 190px;
  }

  .sf-actions {
    flex-direction: column;
  }

  .sf-button {
    width: 100%;
  }
}


/* =========================================================
   The Five — Character Spotlight slideshow
========================================================= */
.sf-five-section {
  background:
    radial-gradient(circle at 18% 12%, rgba(251,191,36,0.08), transparent 18rem),
    radial-gradient(circle at 82% 22%, rgba(155,35,53,0.13), transparent 20rem),
    linear-gradient(180deg, rgba(14,12,10,0.22), transparent);
}
.sf-five-embed { width: 100%; display: flex; flex-direction: column; align-items: center; }
.sf-five-embed .slideshow { width: 100%; max-width: 860px; position: relative; }
.sf-five-embed .slide { display: none; animation: sfFiveFadeIn 0.5s ease; }
.sf-five-embed .slide.active { display: block; }
@keyframes sfFiveFadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
.sf-five-embed .card { background: #1a1510; border: 2px solid #6b4f22; position: relative; overflow: hidden; box-shadow: 0 24px 70px rgba(0,0,0,0.45); }
.sf-five-embed .card::before { content: ''; position: absolute; inset: 6px; border: 1px solid #3d2e14; pointer-events: none; z-index: 1; }
.sf-five-embed .card-inner { display: grid; grid-template-columns: 1fr 340px; position: relative; z-index: 2; }
.sf-five-embed .info-panel { padding: 2rem 1.75rem; border-right: 1px solid #3d2e14; display: flex; flex-direction: column; gap: 0; }
.sf-five-embed .char-name { font-family: 'Cinzel Decorative', 'Cinzel', serif; font-size: 1.8rem; font-weight: 700; color: #e8c97a; letter-spacing: 0.03em; line-height: 1.1; text-transform: uppercase; }
.sf-five-embed .char-titles { font-family: 'Cinzel', serif; font-size: 0.68rem; letter-spacing: 0.25em; color: #9b2335; text-transform: uppercase; margin-top: 0.3rem; }
.sf-five-embed .char-class { font-family: 'Cinzel', serif; font-size: 0.62rem; letter-spacing: 0.18em; color: #8a7550; text-transform: uppercase; margin-top: 0.2rem; }
.sf-five-embed .divider { height: 1px; background: linear-gradient(to right, transparent, #6b4f22, transparent); margin: 0.9rem 0; }
.sf-five-embed .ornament { text-align: center; color: #6b4f22; font-size: 0.7rem; letter-spacing: 0.3em; margin: -0.35rem 0; }
.sf-five-embed .flavor-text { font-family: 'IM Fell English', serif; font-style: italic; font-size: 0.83rem; color: #c4a96a; line-height: 1.7; text-align: center; padding: 0 0.4rem; }
.sf-five-embed .section-title { font-family: 'Cinzel', serif; font-size: 0.58rem; letter-spacing: 0.28em; text-transform: uppercase; color: #8a7550; text-align: center; margin: 0.7rem 0 0.45rem; }
.sf-five-embed .ability-grid, .sf-five-embed .combat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.4rem; }
.sf-five-embed .ability, .sf-five-embed .combat-stat { text-align: center; border: 1px solid #3d2e14; background: rgba(0,0,0,0.3); }
.sf-five-embed .ability { padding: 0.35rem 0.2rem; }
.sf-five-embed .combat-stat { padding: 0.45rem 0.2rem; }
.sf-five-embed .ability-label, .sf-five-embed .combat-label { font-family: 'Cinzel', serif; text-transform: uppercase; display: block; }
.sf-five-embed .ability-label { font-size: 0.52rem; letter-spacing: 0.18em; color: #8a7550; }
.sf-five-embed .combat-label { font-size: 0.44rem; letter-spacing: 0.13em; color: #6b5535; }
.sf-five-embed .ability-score, .sf-five-embed .combat-value { font-family: 'Cinzel', serif; font-weight: 700; color: #e8c97a; display: block; line-height: 1.1; }
.sf-five-embed .ability-score { font-size: 1.5rem; margin: 0.08rem 0; }
.sf-five-embed .combat-value { font-size: 1.2rem; }
.sf-five-embed .ability-mod { font-family: 'IM Fell English', serif; font-size: 0.72rem; color: #9b7a3a; display: block; }
.sf-five-embed .combat-sub { font-family: 'IM Fell English', serif; font-size: 0.58rem; color: #6b5535; display: block; }
.sf-five-embed .features-list { list-style: none; display: flex; flex-direction: column; gap: 0.35rem; margin: 0; padding: 0; }
.sf-five-embed .features-list li { font-family: 'IM Fell English', serif; font-size: 0.78rem; color: #c4a96a; line-height: 1.5; padding-left: 1.1rem; position: relative; }
.sf-five-embed .features-list li::before { content: '✦'; position: absolute; left: 0; color: #9b2335; font-size: 0.55rem; top: 0.15rem; }
.sf-five-embed .features-list li strong { color: #e8c97a; font-style: normal; }
.sf-five-embed .loadout { display: flex; flex-direction: column; gap: 0.3rem; }
.sf-five-embed .loadout-item { display: flex; gap: 0.5rem; align-items: flex-start; font-family: 'IM Fell English', serif; font-size: 0.78rem; color: #c4a96a; }
.sf-five-embed .loadout-type { font-family: 'Cinzel', serif; font-size: 0.52rem; letter-spacing: 0.1em; color: #9b7a3a; text-transform: uppercase; min-width: 3.8rem; padding-top: 0.12rem; flex-shrink: 0; }
.sf-five-embed .portrait-panel { position: relative; background: #0e0c0a; min-height: 580px; }
.sf-five-embed .portrait-panel img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; opacity: 0.9; }
.sf-five-embed .portrait-placeholder { width: 100%; height: 100%; min-height: 580px; background: #111; display: flex; align-items: center; justify-content: center; color: #3d2e14; font-family: 'Cinzel', serif; font-size: 0.65rem; letter-spacing: 0.2em; text-transform: uppercase; }
.sf-five-embed .portrait-vignette { position: absolute; inset: 0; background: linear-gradient(to right, rgba(10,8,5,0.55) 0%, transparent 35%), linear-gradient(to top, rgba(10,8,5,0.45) 0%, transparent 25%); pointer-events: none; }
.sf-five-embed .quote-footer { grid-column: 1 / -1; border-top: 1px solid #3d2e14; background: #120f0a; padding: 0.9rem 1.75rem; display: flex; align-items: center; gap: 1.25rem; position: relative; z-index: 2; }
.sf-five-embed .crest { width: 44px; height: 44px; border: 1px solid #6b4f22; display: flex; align-items: center; justify-content: center; background: rgba(155,35,53,0.12); flex-shrink: 0; }
.sf-five-embed .crest svg { width: 24px; height: 24px; fill: #9b2335; }
.sf-five-embed .quote-text { font-family: 'Cinzel', serif; font-size: 0.68rem; letter-spacing: 0.1em; color: #c4a96a; text-transform: uppercase; line-height: 1.65; font-style: italic; margin: 0; }
.sf-five-embed .nav-controls { display: flex; align-items: center; justify-content: center; gap: 1.5rem; margin-top: 1.25rem; }
.sf-five-embed .nav-btn { background: none; border: 1px solid #6b4f22; color: #e8c97a; font-family: 'Cinzel', serif; font-size: 1rem; width: 36px; height: 36px; min-height: 36px; padding: 0; border-radius: 0; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background 0.2s; box-shadow: none; text-transform: none; letter-spacing: normal; }
.sf-five-embed .nav-btn:hover { background: rgba(107,79,34,0.3); color: #e8c97a; transform: none; }
.sf-five-embed .dots { display: flex; gap: 0.6rem; align-items: center; }
.sf-five-embed .dot { width: 8px; height: 8px; border: 1px solid #6b4f22; background: transparent; cursor: pointer; transition: background 0.2s; }
.sf-five-embed .dot.active { background: #e8c97a; border-color: #e8c97a; }
.sf-five-embed .char-counter { font-family: 'Cinzel', serif; font-size: 0.6rem; letter-spacing: 0.2em; color: #6b5535; text-transform: uppercase; min-width: 4rem; text-align: center; margin-top: 0.8rem; }
@media (max-width: 640px) {
  .sf-five-embed .card-inner { grid-template-columns: 1fr; }
  .sf-five-embed .portrait-panel { min-height: 260px; order: -1; }
  .sf-five-embed .portrait-placeholder { min-height: 260px; }
  .sf-five-embed .info-panel { border-right: none; border-top: 1px solid #3d2e14; padding: 1.25rem 1rem; }
  .sf-five-embed .char-name { font-size: 1.35rem; }
  .sf-five-embed .quote-footer { flex-direction: column; text-align: center; gap: 0.6rem; padding: 0.75rem 1rem; }
}

