/* Rule of Rose shrine — Victorian / gothic browns, parchment, sepia */

:root {
  --ink: #1a0f0c;
  --ink-soft: #2c1812;
  --sepia-deep: #3d2618;
  --sepia: #5c3d2a;
  --sepia-light: #7a5540;
  --wood: #4a3020;
  --parchment: #e4d4bc;
  --parchment-mid: #d2c2a8;
  --parchment-shadow: #b8a690;
  --cream: #f0e6d4;
  --rose-dried: #6b2832;
  --rose-mute: #8b3a44;
  --gold-dim: #9a7b4a;
  --mist: rgba(40, 28, 20, 0.45);
}

* {
  box-sizing: border-box;
}

body {
  position: relative;
  margin: 0;
  height: 100vh;
  overflow: hidden;
  color: var(--ink);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.35rem;
  line-height: 1.45;
  background:
    radial-gradient(ellipse 100% 80% at 50% 0%, rgba(60, 36, 24, 0.35), transparent 55%),
    radial-gradient(ellipse 70% 50% at 100% 100%, rgba(30, 18, 12, 0.6), transparent 50%),
    radial-gradient(ellipse 60% 45% at 0% 90%, rgba(45, 28, 18, 0.45), transparent 48%),
    linear-gradient(175deg, #140d0a 0%, #1f1510 40%, #120b08 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(20, 10, 8, 0.5), rgba(20, 10, 8, 0.5)),
    url("assets/ROR_BG.png?v=20260429c") 0 0 / auto repeat;
  transform: scale(1.02);
}

/* Subtle paper / dust grain */
.ror-grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

.ror-page {
  position: relative;
  z-index: 2;
  width: min(960px, 96vw);
  margin: 18px auto 0;
  padding: 0 8px;
}

.ror-corner {
  position: fixed;
  margin: 0;
  font-family: "Cinzel", serif;
  font-size: 1.1rem;
  color: var(--gold-dim);
  opacity: 0.35;
  pointer-events: none;
  z-index: 1;
}

.ror-corner-tl {
  top: 14px;
  left: 18px;
}

.ror-corner-tr {
  top: 14px;
  right: 18px;
}

.ror-corner-bl {
  bottom: 14px;
  left: 18px;
}

.ror-corner-br {
  bottom: 14px;
  right: 18px;
}

.ror-frame {
  position: relative;
  min-height: 620px;
  padding-left: 200px;
}

.ror-vine {
  position: absolute;
  right: 60px;
  bottom: 20px;
  width: min(220px, 26vw);
  height: auto;
  z-index: 3;
  pointer-events: none;
  transform: translate(40%, 34%);
  filter:
    saturate(0.45)
    brightness(0.72)
    contrast(0.92)
    drop-shadow(0 4px 12px rgba(30, 14, 10, 0.55));
}

.ror-cover-wrap {
  position: absolute;
  left: -20px;
  bottom: 0;
  width: 240px;
  margin: 0;
  z-index: 4;
  pointer-events: auto;
  transform-origin: bottom center;
  transition: transform 180ms ease-out;
  filter:
    drop-shadow(0 0 1px rgba(0, 0, 0, 0.5))
    drop-shadow(4px 8px 24px rgba(0, 0, 0, 0.65))
    drop-shadow(0 0 20px rgba(60, 28, 18, 0.4));
}

.ror-cover-wrap:hover {
  transform: scale(1.045);
}

.ror-cover {
  display: block;
  width: 100%;
  height: auto;
  border: 3px solid var(--sepia-deep);
  border-radius: 2px;
  box-shadow:
    inset 0 0 0 1px var(--parchment-shadow),
    inset 0 0 40px var(--mist);
  filter: sepia(0.22) contrast(1.04) saturate(0.92) brightness(0.96);
}

.ror-panel {
  position: relative;
  z-index: 2;
  width: min(720px, 100%);
  min-height: 600px;
  border: 4px double var(--sepia);
  border-radius: 3px;
  background:
    linear-gradient(90deg, rgba(90, 60, 40, 0.06) 0%, transparent 12%, transparent 88%, rgba(90, 60, 40, 0.06) 100%),
    linear-gradient(180deg, var(--cream) 0%, var(--parchment) 18%, var(--parchment-mid) 55%, #c9b89e 100%);
  box-shadow:
    inset 0 0 80px rgba(40, 22, 14, 0.12),
    inset 0 0 0 1px rgba(255, 250, 240, 0.35),
    0 0 0 1px var(--ink),
    0 12px 40px rgba(0, 0, 0, 0.55);
}

.ror-header {
  position: relative;
  padding: 26px 28px 16px;
  border-bottom: 2px solid var(--sepia-light);
  background: linear-gradient(180deg, rgba(255, 252, 245, 0.5) 0%, transparent 100%);
}

.ror-back {
  position: absolute;
  top: 22px;
  right: 26px;
  padding: 6px 12px;
  border: 2px solid var(--sepia);
  background: linear-gradient(180deg, #f5ebe0 0%, var(--parchment-mid) 100%);
  color: var(--ink-soft);
  text-decoration: none;
  font-family: "Special Elite", monospace;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  box-shadow:
    inset 1px 1px 0 rgba(255, 255, 255, 0.5),
    2px 2px 0 var(--wood);
}

.ror-back:hover {
  background: linear-gradient(180deg, #fff8ee 0%, var(--parchment) 100%);
  color: var(--rose-dried);
}

.ror-title {
  margin: 0;
  font-family: "Cinzel", serif;
  font-weight: 700;
  font-size: clamp(2rem, 4.5vw, 2.75rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  text-shadow:
    1px 1px 0 var(--parchment-shadow),
    0 2px 12px rgba(40, 20, 14, 0.15);
}

.ror-kana {
  margin: 6px 0 0;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.15rem;
  letter-spacing: 0.35em;
  color: var(--sepia);
}

.ror-tagline {
  margin: 10px 0 0;
  font-family: "Special Elite", monospace;
  font-size: 0.95rem;
  color: var(--sepia-light);
  letter-spacing: 0.08em;
}

.ror-scroll {
  margin: 0 22px 22px;
  padding: 20px 22px 24px;
  max-height: 480px;
  overflow-y: auto;
  border: 2px solid var(--sepia-light);
  border-radius: 2px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.25) 0%, transparent 24%),
    linear-gradient(180deg, #efe4d4 0%, #e0d2bc 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
  scrollbar-gutter: stable;
}

.ror-scroll p {
  margin: 0 0 14px;
}

.ror-scroll strong {
  font-weight: 600;
  color: var(--ink);
}

.ror-inline-art {
  float: right;
  width: min(240px, 42%);
  margin: 0 0 12px 16px;
  border: 2px solid var(--sepia);
  padding: 4px;
  background: var(--ink-soft);
  box-shadow: 2px 3px 0 var(--wood);
}

.ror-inline-art img {
  display: block;
  width: 100%;
  height: auto;
  filter: sepia(0.18) contrast(1.02) brightness(0.98);
}

.ror-inline-art iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  border: none;
}

.ror-divider {
  text-align: center;
  font-family: "Special Elite", monospace;
  font-size: 0.9rem;
  color: var(--sepia-light);
  margin: 18px 0;
  letter-spacing: 0.15em;
}

.ror-list {
  margin: 0 0 14px;
  padding-left: 1.35rem;
}

.ror-list li {
  margin-bottom: 8px;
}

.ror-ornate-border {
  position: relative;
  margin: 18px 0 6px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--rose-dried);
  font-family: "Cinzel", serif;
  font-size: 1.05rem;
  letter-spacing: 0.08em;
}

.ror-ornate-border::before,
.ror-ornate-border::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 42%;
  height: 2px;
  transform: translateY(-50%);
  background:
    repeating-linear-gradient(
      90deg,
      rgba(122, 85, 64, 0.2) 0 8px,
      rgba(107, 40, 50, 0.6) 8px 16px
    );
  border-top: 1px solid rgba(255, 248, 238, 0.35);
  border-bottom: 1px solid rgba(61, 38, 24, 0.45);
}

.ror-ornate-border::before {
  left: 0;
}

.ror-ornate-border::after {
  right: 0;
}

.ror-ornate-border span {
  padding: 0 10px;
  background: rgba(228, 212, 188, 0.82);
  border-left: 1px solid rgba(122, 85, 64, 0.4);
  border-right: 1px solid rgba(122, 85, 64, 0.4);
}

.ror-gif-showcase {
  margin-top: 8px;
  padding: 10px;
  border: 2px solid var(--sepia-light);
  border-radius: 4px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.24), transparent 24%),
    linear-gradient(180deg, #eadbc5 0%, #decbb0 100%);
  display: grid;
  gap: 8px;
}

.ror-gif-feature-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.ror-gif-main,
.ror-gif-small {
  width: 160px;
  height: 92px;
  object-fit: cover;
  border-radius: 6px;
  border: 2px solid var(--sepia);
  box-shadow: 0 2px 8px rgba(35, 20, 12, 0.25);
}

.ror-gif-princess {
  height: 92px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
  border-radius: 6px;
  border: 2px solid var(--sepia);
  box-shadow: 0 2px 8px rgba(35, 20, 12, 0.25);
}

.ror-gif-grid-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.ror-scroll::after {
  content: "";
  display: table;
  clear: both;
}

.ror-scroll::-webkit-scrollbar {
  width: 14px;
}

.ror-scroll::-webkit-scrollbar-track {
  background: var(--parchment-mid);
  border: 1px solid var(--sepia-light);
}

.ror-scroll::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--sepia-light), var(--sepia-deep));
  border: 1px solid var(--ink-soft);
  border-radius: 1px;
}

@media (max-width: 900px) {
  .ror-frame {
    padding-left: 0;
    min-height: 0;
  }

  .ror-cover-wrap {
    display: none;
  }

  .ror-vine {
    display: none;
  }

  .ror-panel {
    min-height: 0;
    width: 100%;
  }

  .ror-scroll {
    max-height: none;
  }

  .ror-inline-art {
    float: none;
    width: 100%;
    max-width: 320px;
    margin: 0 auto 16px;
  }

  .ror-back {
    position: static;
    display: inline-block;
    margin-bottom: 12px;
  }
}

