/**
 * Rohan2 Global Landing Gateway Portal — Unified Rohan2Mobile & Rohan2MobileWiki Architecture
 * Subpage Hero (rohan-hero-epic), Animated R Crest, Textured bg.jpg, Dragon-Scale bg_product.jpg Card,
 * Menu-Bar Header, & Dual Integrated Fret-Key Portal Chambers (.rohan-form-framed).
 */

:root {
  --rohan-bg: #090604;
  --rohan-bg-surface: #140e0a;
  --rohan-border: #3b2a1d;
  --rohan-border-gold: #c59b56;

  --rohan-gold: #f7dba9;
  --rohan-gold-light: #fbe3a1;
  --rohan-gold-primary: #e5b66b;
  --rohan-text: #dbd2b2;
  --rohan-text-muted: #8b8070;

  /* Official Rohan2 Asian Fret-Key Corner Ornaments */
  --rohan-frame-color: #9a846b;
  --rohan-frame-edge: rgba(10, 8, 6, 0.92);
  --rohan-frame-key-tl: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='34' viewBox='-0.5 -0.5 18 17.01'%3E%3Cg transform='translate(0 0)'%3E%3Cpath d='M0,0v16.01h1.01v-3.99h4v-4.01h2.98v-2.99h4.04V1.01h4.97V0H0ZM4,11.01H1.01v-3h2.99v3ZM7.99,4.01v-2.01H3v4.01h3.02v-1.01h-2.01v-1.99h2.96v3.98H1.01V1.01h10.01v3h-3.03Z' fill='%239a846b' stroke='%230a0806' stroke-opacity='.9' stroke-width='1' stroke-linejoin='miter' paint-order='stroke'/%3E%3Crect x='16' y='0' width='1.5' height='1.01' fill='%239a846b'/%3E%3Crect x='0' y='15' width='1.01' height='1.51' fill='%239a846b'/%3E%3C/g%3E%3C/svg%3E");
  --rohan-frame-key-tr: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='34' viewBox='-0.5 -0.5 18 17.01'%3E%3Cg transform='translate(17 0) scale(-1 1)'%3E%3Cpath d='M0,0v16.01h1.01v-3.99h4v-4.01h2.98v-2.99h4.04V1.01h4.97V0H0ZM4,11.01H1.01v-3h2.99v3ZM7.99,4.01v-2.01H3v4.01h3.02v-1.01h-2.01v-1.99h2.96v3.98H1.01V1.01h10.01v3h-3.03Z' fill='%239a846b' stroke='%230a0806' stroke-opacity='.9' stroke-width='1' stroke-linejoin='miter' paint-order='stroke'/%3E%3Crect x='16' y='0' width='1.5' height='1.01' fill='%239a846b'/%3E%3Crect x='0' y='15' width='1.01' height='1.51' fill='%239a846b'/%3E%3C/g%3E%3C/svg%3E");
  --rohan-frame-key-bl: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='34' viewBox='-0.5 -0.5 18 17.01'%3E%3Cg transform='translate(0 16.01) scale(1 -1)'%3E%3Cpath d='M0,0v16.01h1.01v-3.99h4v-4.01h2.98v-2.99h4.04V1.01h4.97V0H0ZM4,11.01H1.01v-3h2.99v3ZM7.99,4.01v-2.01H3v4.01h3.02v-1.01h-2.01v-1.99h2.96v3.98H1.01V1.01h10.01v3h-3.03Z' fill='%239a846b' stroke='%230a0806' stroke-opacity='.9' stroke-width='1' stroke-linejoin='miter' paint-order='stroke'/%3E%3Crect x='16' y='0' width='1.5' height='1.01' fill='%239a846b'/%3E%3Crect x='0' y='15' width='1.01' height='1.51' fill='%239a846b'/%3E%3C/g%3E%3C/svg%3E");
  --rohan-frame-key-br: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='34' viewBox='-0.5 -0.5 18 17.01'%3E%3Cg transform='translate(17 16.01) scale(-1 -1)'%3E%3Cpath d='M0,0v16.01h1.01v-3.99h4v-4.01h2.98v-2.99h4.04V1.01h4.97V0H0ZM4,11.01H1.01v-3h2.99v3ZM7.99,4.01v-2.01H3v4.01h3.02v-1.01h-2.01v-1.99h2.96v3.98H1.01V1.01h10.01v3h-3.03Z' fill='%239a846b' stroke='%230a0806' stroke-opacity='.9' stroke-width='1' stroke-linejoin='miter' paint-order='stroke'/%3E%3Crect x='16' y='0' width='1.5' height='1.01' fill='%239a846b'/%3E%3Crect x='0' y='15' width='1.01' height='1.51' fill='%239a846b'/%3E%3C/g%3E%3C/svg%3E");

  --font-display: 'Cinzel', serif;
  --font-serif: 'Domine', serif;
  --font-ui: 'Montserrat', sans-serif;
}

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

html {
  color-scheme: dark;
}

body.has-textured-bg {
  min-height: 100vh;
  overflow-x: hidden;
  font-family: var(--font-ui);
  color: var(--rohan-text);
  background-color: #140e0a;
  background-image:
    radial-gradient(ellipse at 50% 0%, rgba(95, 62, 32, 0.25) 0%, transparent 60%),
    radial-gradient(ellipse at 50% 50%, rgba(50, 32, 18, 0.15) 0%, transparent 60%),
    url('../images/wiki/bg.webp');
  background-position: center top;
  background-repeat: repeat;
  background-size: auto;
  background-attachment: fixed;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* ==========================================================================
   1. PANORAMIC SUBPAGE HERO (rohan-hero-epic + Animated R Gem Divider)
   ========================================================================== */
.rohan-subpage-hero {
  position: relative;
  width: 100%;
  height: 205px;
  background-color: #080503;
  background-image: url('../images/wiki/rohan-hero-epic.webp');
  background-position: center 20%;
  background-repeat: no-repeat;
  background-size: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 42px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.85);
  overflow: visible;
  z-index: 15;
}

.rohan-subpage-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 5, 3, 0.52) 0%, rgba(8, 5, 3, 0.12) 45%, rgba(8, 5, 3, 0.78) 100%),
    radial-gradient(ellipse at center, transparent 40%, rgba(8, 5, 3, 0.6) 100%);
  pointer-events: none;
}

/* Language Dropdown inside Header Row (Zero Character Overlap) */
.lang-dropdown-wrapper {
  position: relative;
  z-index: 50;
  margin-left: auto;
  flex-shrink: 0;
}

[dir="rtl"] .lang-dropdown-wrapper {
  margin-left: 0;
  margin-right: auto;
}

.lang-dropdown-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  background: linear-gradient(180deg, rgba(28, 20, 14, 0.94) 0%, rgba(16, 11, 8, 0.96) 100%);
  border: 1px solid #4a3622;
  border-radius: 5px;
  color: var(--rohan-gold-light);
  font-family: var(--font-ui);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(247, 219, 169, 0.14);
  transition: all 0.25s ease;
}

.lang-dropdown-btn:hover,
.lang-dropdown-btn[aria-expanded="true"] {
  border-color: var(--rohan-gold-primary);
  color: #ffffff;
  box-shadow: 0 0 16px rgba(229, 182, 107, 0.35), inset 0 1px 0 rgba(247, 219, 169, 0.25);
}

.lang-flag {
  width: 20px;
  height: 14px;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

.lang-chevron {
  width: 12px;
  height: 12px;
  stroke: var(--rohan-gold-primary);
  transition: transform 0.25s ease;
}

.lang-dropdown-btn[aria-expanded="true"] .lang-chevron {
  transform: rotate(180deg);
}

.lang-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 310px;
  max-width: calc(100vw - 24px);
  background: #140d08;
  border: 1px solid #8a613c;
  border-radius: 6px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.96), inset 0 1px 0 rgba(247, 219, 169, 0.12);
  padding: 8px;
  display: none;
  z-index: 200;
}

[dir="rtl"] .lang-dropdown-menu {
  right: auto;
  left: 0;
}

.lang-dropdown-menu.active {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  text-decoration: none;
  color: var(--rohan-text);
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 500;
  border-radius: 4px;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.lang-option:hover {
  background: rgba(94, 62, 42, 0.45);
  border-color: rgba(185, 142, 82, 0.3);
  color: #ffe5a3;
}

.lang-option.current {
  background: rgba(229, 182, 107, 0.18);
  border-color: rgba(229, 182, 107, 0.45);
  color: var(--rohan-gold-light);
  font-weight: 700;
}

/* Exact Bottom Border Gold Divider + Animated Center R Medallion */
.rohan-subpage-hero-divider {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  pointer-events: none;
}

.rohan-subpage-divider-line {
  flex: 1;
  height: 2px;
  box-shadow: 0 0 12px rgba(229, 182, 107, 0.6);
}

.rohan-subpage-divider-line.left {
  background: linear-gradient(90deg, transparent 0%, rgba(229, 182, 107, 0.05) 15%, rgba(229, 182, 107, 0.35) 50%, #e5b66b 85%, #ffd88a 100%);
}

.rohan-subpage-divider-line.right {
  background: linear-gradient(90deg, #ffd88a 0%, #e5b66b 15%, rgba(229, 182, 107, 0.35) 50%, rgba(229, 182, 107, 0.05) 85%, transparent 100%);
}

.rohan-subpage-divider-gem {
  width: 118px;
  height: 103px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 -20px;
  flex-shrink: 0;
  position: relative;
  pointer-events: auto;
}

.rohan-subpage-divider-gem .rohan-rmain-canvas {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 136px;
  height: 136px;
  pointer-events: none;
  z-index: 1;
  transition: opacity 0.4s ease;
}

.rohan-subpage-divider-gem img {
  width: 118px;
  height: 103px;
  object-fit: contain;
  display: block;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 0 14px rgba(229, 182, 107, 0.85)) drop-shadow(0 4px 12px rgba(0, 0, 0, 0.95));
}

.rohan-subpage-divider-gem img.is-animated {
  opacity: 0;
  transform: scale(0.88);
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.4s ease;
}

.rohan-subpage-divider-gem img.is-animated.is-visible {
  opacity: 1;
  transform: scale(1);
  filter: drop-shadow(0 0 16px rgba(229, 182, 107, 0.95)) drop-shadow(0 4px 12px rgba(0, 0, 0, 0.95));
}

/* ==========================================================================
   2. MAIN TEXTURED SECTION (.rohan-subpage-wrap) & .rohan-art-header
   ========================================================================== */
.rohan-subpage-wrap {
  flex: 1;
  padding: 0 20px 32px;
  position: relative;
  z-index: 10;
}

.rohan-subpage-container {
  max-width: 1080px;
  margin: 0 auto;
  width: 100%;
}

.rohan-art-header {
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  text-align: left;
  position: relative;
  z-index: 30;
}

[dir="rtl"] .rohan-art-header {
  text-align: right;
}

.rohan-art-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  width: 100%;
}

.rohan-art-title-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.rohan-art-korean {
  font-family: 'Song Myung', serif;
  font-size: 32px;
  line-height: 1;
  color: #a49b85;
  text-shadow: 0 0 8px rgba(137, 132, 109, 0.45);
  flex-shrink: 0;
}

.rohan-art-title {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 700;
  color: #e2dacd;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0;
  line-height: 1.15;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.75);
}

.rohan-art-divider-line {
  display: flex;
  align-items: center;
  margin: -4px 0 0 0;
}

.rohan-art-divider-img {
  height: 32px;
  width: auto;
  max-width: 240px;
  object-fit: contain;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.6));
  opacity: 0.94;
}

.rohan-art-desc {
  font-family: var(--font-serif);
  font-size: 14.5px;
  line-height: 1.5;
  color: #c9bea9;
  margin: 0;
}

/* ==========================================================================
   3. DIAGONAL INTERLOCKING PORTAL CHAMBERS (1:1 rohan-btn-download/register logic)
   ========================================================================== */
.realm-selection-row {
  display: flex;
  justify-content: center;
  align-items: stretch;
  width: 100%;
  margin-top: 26px;
  filter: drop-shadow(0 18px 36px rgba(0, 0, 0, 0.9));
}

.realm-portal-card {
  position: relative;
  display: flex;
  width: calc(50% + 17px);
  padding: 2px;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), filter 0.3s ease;
}

/* Left Card: Beveled Outer Left Corners + '/' Diagonal Right Cut (Exact tr.html .cta--play Edge) */
.pc-portal-card {
  background: linear-gradient(160deg, #d8c99c 0%, #a49369 50%, #6f6446 100%);
  clip-path: polygon(18px 0%, 100% 0%, calc(100% - 44px) 100%, 18px 100%, 0% calc(100% - 18px), 0% 18px);
  z-index: 2;
}

/* Right Card: '/' Diagonal Left Cut + Beveled Outer Right Corners (Exact tr.html .cta--ruby Edge) */
.mobile-portal-card {
  margin-left: -34px;
  background: linear-gradient(160deg, #c2504a 0%, #8f2a27 55%, #5a1513 100%);
  clip-path: polygon(44px 0%, calc(100% - 18px) 0%, 100% 18px, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0% 100%);
  z-index: 1;
}

.realm-portal-card:hover {
  transform: translateY(-4px);
  z-index: 5;
}

.pc-portal-card:hover {
  filter: brightness(1.08) drop-shadow(0 0 22px rgba(216, 201, 156, 0.42));
}

.mobile-portal-card:hover {
  filter: brightness(1.08) drop-shadow(0 0 22px rgba(194, 80, 74, 0.48));
}

.realm-chamber-inner {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  background: #140e0a;
  overflow: hidden;
}

.pc-portal-card .realm-chamber-inner {
  background: #16140e;
  clip-path: polygon(17px 0%, 100% 0%, calc(100% - 44px) 100%, 17px 100%, 0% calc(100% - 17px), 0% 17px);
}

.mobile-portal-card .realm-chamber-inner {
  background: #180808;
  clip-path: polygon(44px 0%, calc(100% - 17px) 0%, 100% 17px, 100% calc(100% - 17px), calc(100% - 17px) 100%, 0% 100%);
}

/* Chamber Top Header (Exact tr.html .cta--play & .cta--ruby Fill Gradients) */
.rohan-wiki-panel-head {
  position: relative;
  z-index: 3;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  box-shadow: inset 0 1px 0 rgba(255, 244, 214, 0.28), inset 0 -10px 18px rgba(0, 0, 0, 0.18);
}

.pc-portal-card .rohan-wiki-panel-head {
  background: linear-gradient(100deg, #5a5239 0%, #74684a 35%, #8a7b52 70%, #9c8b60 100%);
  border-bottom: 1px solid rgba(216, 201, 156, 0.48);
  padding-right: 36px;
}

.mobile-portal-card .rohan-wiki-panel-head {
  background: linear-gradient(160deg, #7a1f1f 0%, #4a0d0d 100%);
  border-bottom: 1px solid rgba(194, 80, 74, 0.45);
  padding-left: 42px;
}

.AngmarTitle {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 800;
  color: #fbf3e2;
  text-shadow: 0 2px 3px rgba(0, 0, 0, 0.75);
  margin: 0;
  letter-spacing: 0.06em;
}

.mobile-portal-card .AngmarTitle {
  color: #fbf3e2;
}

/* Chamber Visual Stage (Kian Castle Temple Backdrop Blended Inside) */
.realm-chamber-stage {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 18px 14px;
  overflow: hidden;
  background-color: #100c08;
}

.pc-portal-card .realm-chamber-stage {
  padding-right: 34px;
  background-color: #13110c;
}

.mobile-portal-card .realm-chamber-stage {
  padding-left: 34px;
  background-color: #140707;
}

.realm-chamber-bg {
  position: absolute;
  inset: 0;
  background-position: center bottom;
  background-size: cover;
  background-repeat: no-repeat;
  pointer-events: none;
  z-index: 0;
  transition: transform 0.45s ease, filter 0.35s ease;
}

.pc-portal-card .realm-chamber-bg {
  background-image:
    radial-gradient(ellipse at 50% 42%, rgba(116, 104, 74, 0.28) 0%, rgba(20, 18, 12, 0.8) 62%, rgba(14, 12, 8, 0.96) 100%),
    linear-gradient(180deg, rgba(20, 18, 12, 0.5) 0%, rgba(20, 18, 12, 0.32) 50%, rgba(14, 12, 8, 0.92) 100%),
    url('../images/wiki/kian_castle.webp');
}

.mobile-portal-card .realm-chamber-bg {
  background-image:
    radial-gradient(ellipse at 50% 42%, rgba(122, 31, 31, 0.32) 0%, rgba(22, 7, 7, 0.8) 62%, rgba(14, 5, 5, 0.96) 100%),
    linear-gradient(180deg, rgba(22, 7, 7, 0.5) 0%, rgba(22, 7, 7, 0.32) 50%, rgba(14, 5, 5, 0.92) 100%),
    url('../images/wiki/kian_castle.webp');
}

.realm-portal-card:hover .realm-chamber-bg {
  transform: scale(1.03);
  filter: brightness(1.18);
}

.realm-banner-box {
  position: relative;
  display: inline-block;
  width: 348px;
  height: 295px;
  z-index: 2;
}

/* Official rohan2.global Rotating Energy Nebulas (::before Gold, ::after Emerald/Crimson) */
.realm-banner-box::before {
  content: '';
  position: absolute;
  top: 48%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 320px;
  height: 320px;
  border-radius: 50%;
  filter: blur(20px);
  -webkit-mask-image: radial-gradient(circle, #000 28%, transparent 68%);
  mask-image: radial-gradient(circle, #000 28%, transparent 68%);
  z-index: 1;
  opacity: 0.78;
  animation: mysticSpin 8s linear infinite;
  pointer-events: none;
}

.realm-banner-box::after {
  content: '';
  position: absolute;
  top: 48%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 305px;
  height: 305px;
  border-radius: 50%;
  filter: blur(22px);
  -webkit-mask-image: radial-gradient(circle, #000 30%, transparent 70%);
  mask-image: radial-gradient(circle, #000 30%, transparent 70%);
  z-index: 0;
  opacity: 0.75;
  animation: mysticSpin 12s linear infinite reverse;
  pointer-events: none;
}

.pc-portal-card .realm-banner-box::before {
  background: conic-gradient(
    from 0deg,
    transparent 0%,
    transparent 40%,
    rgba(255, 215, 0, 0.12) 60%,
    rgba(255, 215, 0, 0.82) 90%,
    transparent 100%
  );
}

.pc-portal-card .realm-banner-box::after {
  background: conic-gradient(
    from 180deg,
    transparent 0%,
    transparent 30%,
    rgba(171, 76, 232, 0.12) 50%,
    rgba(46, 204, 113, 0.9) 80%,
    transparent 100%
  );
}

.mobile-portal-card .realm-banner-box::before {
  background: conic-gradient(
    from 0deg,
    transparent 0%,
    transparent 40%,
    rgba(255, 215, 0, 0.15) 60%,
    rgba(255, 215, 0, 0.85) 90%,
    transparent 100%
  );
}

.mobile-portal-card .realm-banner-box::after {
  background: conic-gradient(
    from 180deg,
    transparent 0%,
    transparent 30%,
    rgba(255, 40, 40, 0.15) 50%,
    rgba(220, 38, 38, 0.92) 80%,
    transparent 100%
  );
}

.realm-frame-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  position: relative;
  z-index: 3;
  filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.85));
  transition: filter 0.35s ease, transform 0.35s ease;
}

.pc-portal-card .realm-frame-img {
  filter: drop-shadow(0 0 12px rgba(46, 204, 113, 0.42)) drop-shadow(0 10px 22px rgba(0, 0, 0, 0.85));
}

.mobile-portal-card .realm-frame-img {
  filter: drop-shadow(0 0 12px rgba(220, 38, 38, 0.45)) drop-shadow(0 10px 22px rgba(0, 0, 0, 0.85));
}

.realm-portal-card:hover .realm-frame-img {
  transform: scale(1.03);
}

.pc-portal-card:hover .realm-frame-img {
  filter: drop-shadow(0 0 24px rgba(46, 204, 113, 0.9));
}

.mobile-portal-card:hover .realm-frame-img {
  filter: drop-shadow(0 0 24px rgba(235, 45, 45, 0.95));
}

/* Phone Screen Live Video */
.mobile-screen-wrapper {
  position: absolute;
  left: 26.96%;
  top: 30.60%;
  width: 45.59%;
  height: 26.01%;
  border-radius: 6px;
  overflow: hidden;
  z-index: 2;
  background: #000;
  pointer-events: none;
  transform: translate3d(0, 0, 0);
  contain: paint;
}

.mobile-screen-video {
  position: absolute;
  left: -7.5%;
  top: -7.5%;
  width: 115%;
  height: 115%;
  object-fit: cover;
  display: block;
}

.mobile-screen-glass {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0.05) 35%, transparent 60%, rgba(255, 255, 255, 0.08) 100%);
  pointer-events: none;
  z-index: 2;
}

/* Button Shimmer Sweep */
.realm-button-shimmer {
  position: absolute;
  top: 71.4%;
  height: 23.4%;
  left: 2.9%;
  width: 94.4%;
  overflow: hidden;
  pointer-events: none;
  z-index: 5;
  clip-path: polygon(14px 0%, calc(100% - 14px) 0%, 100% 14px, 100% calc(100% - 14px), calc(100% - 14px) 100%, 14px 100%, 0% calc(100% - 14px), 0% 14px);
  border-radius: 4px;
}

.realm-button-shimmer::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -130px;
  width: 75px;
  height: 200%;
  transform: skewX(-24deg);
  pointer-events: none;
  z-index: 6;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 245, 200, 0.35) 20%, rgba(255, 255, 255, 0.98) 50%, rgba(255, 245, 200, 0.35) 80%, rgba(255, 255, 255, 0) 100%);
  box-shadow: 0 0 25px 8px rgba(255, 235, 170, 0.85);
  animation: rohanButtonShimmer 4.5s infinite cubic-bezier(0.4, 0, 0.2, 1);
}

.realm-portal-card:hover .realm-button-shimmer::after {
  animation-duration: 2.2s;
  box-shadow: 0 0 32px 10px rgba(255, 245, 190, 0.95);
}

/* Chamber Bottom Footer (Exact tr.html .cta--play & .cta--ruby Bottom Strip Harmony) */
.realm-chamber-footer {
  position: relative;
  z-index: 3;
  padding: 13px 18px 15px;
  text-align: center;
  box-shadow: inset 0 1px 0 rgba(255, 244, 214, 0.14), inset 0 -10px 18px rgba(0, 0, 0, 0.28);
}

.pc-portal-card .realm-chamber-footer {
  background: linear-gradient(100deg, rgba(58, 52, 36, 0.96) 0%, rgba(74, 66, 46, 0.94) 50%, rgba(58, 52, 36, 0.96) 100%);
  border-top: 1px solid rgba(216, 201, 156, 0.36);
  padding-right: 42px;
}

.mobile-portal-card .realm-chamber-footer {
  background: linear-gradient(160deg, rgba(96, 22, 22, 0.96) 0%, rgba(56, 10, 10, 0.98) 100%);
  border-top: 1px solid rgba(194, 80, 74, 0.38);
  padding-left: 28px;
}

.AngmarDesc {
  font-family: var(--font-serif);
  font-size: 0.94rem;
  font-weight: 600;
  color: #fbf3e2;
  text-shadow: 0 2px 3px rgba(0, 0, 0, 0.75);
  margin: 0;
  line-height: 1.4;
}

/* Keyframes */
@keyframes mysticSpin {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes rohanButtonShimmer {
  0% { left: -130px; opacity: 0; }
  2% { opacity: 0.95; }
  28% { opacity: 0.95; }
  30% { left: calc(100% + 60px); opacity: 0; }
  31% { left: -130px; opacity: 0; }
  100% { left: -130px; opacity: 0; }
}

/* Responsive */
@media (max-width: 960px) {
  .realm-selection-row {
    flex-direction: column;
    align-items: center;
    gap: 24px;
    max-width: 440px;
    margin: 0 auto;
  }

  .realm-portal-card {
    width: 100%;
    margin-left: 0 !important;
  }

  .pc-portal-card,
  .mobile-portal-card {
    clip-path: polygon(16px 0%, calc(100% - 16px) 0%, 100% 16px, 100% calc(100% - 16px), calc(100% - 16px) 100%, 16px 100%, 0% calc(100% - 16px), 0% 16px);
  }

  .pc-portal-card .realm-chamber-inner,
  .mobile-portal-card .realm-chamber-inner {
    clip-path: polygon(15px 0%, calc(100% - 15px) 0%, 100% 15px, 100% calc(100% - 15px), calc(100% - 15px) 100%, 15px 100%, 0% calc(100% - 15px), 0% 15px);
  }

  .pc-portal-card .rohan-wiki-panel-head,
  .mobile-portal-card .rohan-wiki-panel-head,
  .pc-portal-card .realm-chamber-stage,
  .mobile-portal-card .realm-chamber-stage,
  .pc-portal-card .realm-chamber-footer,
  .mobile-portal-card .realm-chamber-footer {
    padding-left: 16px;
    padding-right: 16px;
  }

  .rohan-subpage-hero {
    height: 175px;
    margin-bottom: 54px;
  }

  .realm-banner-box {
    width: 100%;
    max-width: 320px;
    height: auto;
    aspect-ratio: 408 / 346;
  }

  .rohan-art-top-row {
    justify-content: space-between;
  }
}

@media (max-width: 480px) {
  .rohan-subpage-hero {
    height: 145px;
    margin-bottom: 46px;
  }

  .rohan-subpage-divider-gem,
  .rohan-subpage-divider-gem img {
    width: 92px;
    height: 80px;
  }

  .rohan-subpage-divider-gem .rohan-rmain-canvas {
    width: 108px;
    height: 108px;
  }

  .lang-dropdown-btn {
    padding: 5px 10px;
    font-size: 0.76rem;
    gap: 6px;
  }

  .lang-dropdown-menu {
    width: 260px;
    max-width: calc(100vw - 24px);
  }

  .rohan-subpage-wrap {
    padding: 0 12px 24px;
  }

  .realm-banner-box {
    width: 100%;
    max-width: 275px;
    height: auto;
    aspect-ratio: 408 / 346;
  }

  .rohan-art-top-row {
    gap: 8px;
  }

  .rohan-art-title-row {
    gap: 8px;
  }

  .rohan-art-korean {
    font-size: 21px;
  }

  .rohan-art-title {
    font-size: 16.5px;
    letter-spacing: 0.04em;
  }

  .rohan-art-desc {
    font-size: 13px;
  }

  .AngmarTitle {
    font-size: 0.96rem;
  }

  .AngmarDesc {
    font-size: 0.84rem;
  }
}
