/* BILAL R14 · warm fantasy portal. Presentation only; load after all earlier sheets. */
:root {
  color-scheme: dark;
  --bg: #211c19;
  --panel: #2b2420;
  --panel2: #211b18;
  --text: #f4ead5;
  --muted: #c8bcac;
  --accent: #ebc16d;
  --gold: #ebc16d;
  --line: #65513a;
  --blue: #e7bd75;
  --ink: #261706;
  --reino-serif: Georgia, 'Times New Roman', serif;
  --reino-sans: Arial, Helvetica, sans-serif;
  --reino-burgundy: #511f28;
  --reino-community-art: url('/portal/reino-20261128/media/arte-comunidad.webp');
  --reino-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.72' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.055'/%3E%3C/svg%3E");
}
html { background: #191411; }
body {
  margin: 0;
  color: var(--text);
  background-color: var(--bg);
  background-image: radial-gradient(ellipse at 50% 0, #92643c20, transparent 70%), var(--reino-grain);
  background-size: 100% 1100px, 160px 160px;
  font-family: var(--reino-sans);
  font-size: 16px;
  line-height: 1.65;
}
h1, h2, h3 { color: #f9edce; font-family: var(--reino-serif); font-weight: 700; letter-spacing: -.025em; }
h1 { font-size: clamp(36px, 4.7vw, 58px); line-height: 1.08; }
h2 { font-size: clamp(29px, 3.5vw, 43px); line-height: 1.13; }
h3 { font-size: clamp(24px, 2.4vw, 31px); line-height: 1.2; }
p, li, input, select, textarea { font-size: 16px; }
small, .muted { color: var(--muted); }
small { font-size: 14px; }
a { color: #e9c579; }
a:hover { color: #ffe1a0; }
.eyebrow { color: #e6bc6f; font-size: 13px; letter-spacing: .15em; }
.wrap { width: min(1180px, calc(100% - 48px)); min-width: 0; }
.page { min-width: 0; padding: 30px 0 58px; }
#contenido, .wrap > *, .split > *, .form-grid > *, .filter-grid > *, .toolbar > *, .actions > * { min-width: 0; }
:where(a, button, input, select, textarea, summary):focus-visible { outline: 3px solid #ffe1a0; outline-offset: 4px; }
.skip:focus { background: #261a10; color: #fff0cb; }

/* Shared surfaces, controls, account, wiki, ranking and dialogs. */
.panel, .product, .feature-link, .auction-card, .guide-nav, .wiki-categories {
  color: var(--text);
  background: linear-gradient(135deg, #332924, #27211e);
  border: 1px solid #796143;
  border-radius: 6px;
  box-shadow: 0 9px 24px #0b06051a;
}
.panel, .product, .auction-card { padding: clamp(20px, 2.6vw, 30px); }
.panel h2, .panel h3, .product h2, .product h3 { color: #f8e9c9; }
.page-title {
  padding: 38px 30px;
  margin-bottom: 28px;
  border: 1px solid #a0804859;
  border-radius: 5px;
  background: linear-gradient(100deg, #2b2019f2, #251e19df), url('/portal/v12364/map/banner.webp') center / cover;
  box-shadow: inset 0 0 0 4px #17100c33;
}
.page-title h1 { font-family: var(--reino-serif); font-size: clamp(36px, 4.5vw, 54px); }
.page-title h1::after { background: #cba55f; width: 60px; height: 2px; }
.page-title p { color: #d1c5b4; font-size: 16px; }
.page-title .eyebrow { color: #e4bc73; font-size: 13px; }
.button, .button.small, .gemshop-primary, .gemshop-secondary {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 11px 22px;
  border: 1px solid #b79251;
  border-radius: 4px;
  background: linear-gradient(#38291e, #231a15);
  color: #f8e9c9;
  box-shadow: inset 0 0 0 2px #17100e, inset 0 0 0 3px #b18d4540, 0 3px 9px #05020240;
  font: 700 16px/1.4 var(--reino-sans);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  white-space: normal;
}
.button.gold, .button.primary, .gemshop-primary {
  background: linear-gradient(180deg, #f8d988 0%, #e8b54e 38%, #c68d29 100%);
  color: #271705;
  border-color: #f1cb78;
  box-shadow: inset 0 0 0 2px #533613, inset 0 0 0 3px #ffe7a3, 0 4px 13px #05020255;
  text-shadow: 0 1px #ffe8aa99;
}
.button:hover, .button.small:hover, .gemshop-secondary:hover {
  color: #fff1cf;
  background: linear-gradient(#4a3423, #2b1f17);
  border-color: #f1cd85;
  text-decoration: none;
}
.button.gold:hover, .button.primary:hover, .gemshop-primary:hover {
  color: #251604;
  background: linear-gradient(#ffe7a2, #eabe64 45%, #d6a444);
  border-color: #ffe6a1;
}
.button:disabled, .button[aria-disabled='true'] { opacity: .55; }
.button.wide { width: 100%; }
.actions { gap: 12px; }
.field { color: #eddfc8; font-size: 16px; }
input, select, textarea {
  color: #fff1d9;
  background: #1a1512;
  border: 1px solid #8e7859;
  border-radius: 5px;
  min-height: 46px;
  padding: 11px 13px;
  font-family: var(--reino-sans);
  font-size: 16px;
  max-width: 100%;
}
input::placeholder, textarea::placeholder { color: #b7a996; }
input:focus, select:focus, textarea:focus { border-color: #e7bd75; outline-color: #e7bd75; }
input:is(:autofill, :-webkit-autofill) { -webkit-text-fill-color: #f4ead5; box-shadow: 0 0 0 1000px #1a1512 inset; }
input[type='checkbox'], input[type='radio'] { min-height: 0; accent-color: #d8ab56; }
.tabs, .gemshop-tabs { border-color: #80643d; gap: 6px; }
.tabs a, .gemshop-tabs a {
  color: #ded0b9;
  min-height: 46px;
  padding: 10px 15px;
  border-radius: 3px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
}
.tabs a.active, .tabs a:hover, .gemshop-tabs a[aria-current], .gemshop-tabs a:hover {
  color: #ffe0a1;
  background: #c8a05c15;
  border-color: #d5aa60;
}
.table-wrap { width: 100%; max-width: 100%; overflow-x: auto; overscroll-behavior-x: contain; border: 1px solid #796143; border-radius: 5px; scrollbar-color: #9d7b45 #241b15; }
table { width: 100%; color: #eee1cd; font-size: 16px; }
th, td { padding: 14px 16px; border-color: #69563e; font-size: 16px; overflow-wrap: anywhere; word-break: normal; }
th { background: #3b2d23; color: #efce91; font-weight: 700; }
td { background: #2b241e; }
tr:nth-child(even) td { background: #241e1a; }
td:first-child { color: #f4e4c5; }
.empty, .notice { color: #eadfca; background: #33291e; border-color: #ca9f55; border-radius: 4px; }
.error, .warn { background: #3b2621; border-color: #dfae69; }
.stat-list > div, .person-row, details { border-color: #705b42; }
.person-row { color: #f5e7ce; }
.person-row > div:nth-child(2) { min-width: 0; overflow-wrap: anywhere; }
.person-row small { color: #cabeab; font-size: 14px; }
.crest { color: #e6bb6d; background: #34291d; border-color: #9f7c42; }
.gem-number { color: #f0ca77; }
.feature-link { gap: 12px; color: #f8e9c9; }
.feature-link svg { color: #d6af63; }
.feature-link strong { font-family: var(--reino-serif); font-size: 24px; line-height: 1.2; }
.feature-link small { color: #cbbfae; font-size: 16px; }
.feature-link:hover { background: #3a2d22; border-color: #d3ac60; color: #fff0ce; transform: none; }
.guide-nav a, .wiki-categories a { color: #edcf97; font-size: 16px; }
.wiki-categories a.active { color: #ffe4ad; background: #b58a4430; }
.map-wrap { background: #1a1714; border-color: #8c7149; }
.map-status { background: #20190fe8; color: #f4e4c5; }
.map-tools button { min-height: 44px; min-width: 44px; font-size: 16px; }
.vocation-art { background: radial-gradient(ellipse, #9c6d2a2b, transparent 67%); }
.vocation-art img { filter: drop-shadow(0 10px 22px #0007); }
.possession, .ticket-message { background: #251e18; border-color: #796143; }
.possession strong { color: #efdfc0; font-size: 16px; }
.possession small { color: #c8bba9; }
.inventory-tabs .button { font-size: 16px; }
.ticket-message { overflow-wrap: anywhere; }
.ticket-message.staff { border-left-color: #cda158; }
.auction-detail .price { color: #e8bc68; }
.news-date { background: #b88a40; color: #211407; }
.socials .button, .buy-bar .button { min-height: 46px; }
.loading { border-color: #6d5738; border-top-color: #e4bd72; }
#toast, dialog { color: #f4e7ce; background: #2a2019; border: 1px solid #c39d5d; border-radius: 6px; box-shadow: 0 18px 60px #0008; }
dialog { width: min(540px, calc(100vw - 32px)); max-width: calc(100vw - 32px); }
dialog::backdrop { background: #100a07b8; }
.dialog-close { color: #ebd6b0; min-width: 44px; min-height: 44px; }

/* A single navigation remains compatible with the existing menu controller. */
.topbar {
  position: relative;
  display: grid;
  grid-template-columns: 152px minmax(0, 1fr) auto auto;
  grid-template-rows: auto auto;
  align-items: center;
  gap: 7px 18px;
  min-height: 106px;
  padding: 12px max(20px, calc((100vw - 1500px) / 2));
  border-bottom: 2px solid #b18c48;
  background-color: #211a16;
  background-image: linear-gradient(#1b1715b0, #231a14dd), var(--reino-grain);
  box-shadow: 0 4px 15px #08040355;
  z-index: 30;
}
.topbar .brand { grid-column: 1; grid-row: 1 / 3; width: 144px; min-width: 0; margin: 0; padding: 0; background: transparent; align-self: center; justify-self: center; }
.topbar .brand img { width: 144px!important; height: 75px!important; object-fit: contain; }
.topbar > nav { grid-column: 2; grid-row: 1 / 3; display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 0 4px; min-width: 0; padding: 0 14px; border-inline: 1px solid #b08d484d; }
.topbar > nav::after { content: ''; flex: 0 0 100%; height: 1px; order: 1; background: linear-gradient(90deg, #a784423b, transparent); margin: 5px 0; }
.topbar nav > [data-nav-group='main'], .topbar nav > .norian-community { order: 0; }
.topbar nav > [data-nav-group='secondary'] { order: 2; }
.topbar nav > a, .topbar .norian-community summary {
  display: inline-flex;
  align-items: center;
  min-height: 39px;
  padding: 6px 10px;
  color: #eee1c9;
  background: transparent;
  border: 0;
  border-radius: 3px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
  white-space: nowrap;
}
.topbar nav > [data-nav-group='secondary'] { color: #cfbfa6; }
.topbar nav > a:hover, .topbar .norian-community summary:hover, .topbar .norian-community[open] summary { background: #d1ab5d12; color: #ffe3a8; }
.topbar nav > a.active, .topbar nav > a[aria-current='page'] { color: #f9d382; background: #c69b4117; }
.topbar .norian-community { position: relative; padding: 0; border: 0; }
.topbar .norian-community summary::after { color: #d6b576; }
.topbar .norian-community div { background: #2b211a; border-color: #aa854c; border-radius: 4px; padding: 7px; box-shadow: 0 10px 25px #0007; }
.topbar .norian-community div a { color: #eedfc3; font-size: 16px; min-height: 45px; }
.topbar .norian-community div a:is(:hover, :focus-visible, .active) { color: #ffe3a8; background: #b8934c1c; }
.topbar .language { grid-column: 3; grid-row: 1; min-width: 108px; max-width: 128px; min-height: 42px; padding: 6px 9px; font-size: 16px; background: #1c1713; border-color: #a48753; }
.topbar > .reino-gems-nav { grid-column: 4; grid-row: 1; }
.topbar > .play-button { grid-column: 3 / 5; grid-row: 2; display: inline-flex; min-height: 42px; width: 100%; padding: 7px 16px; font-size: 16px; }
.reino-gems-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 42px;
  padding: 7px 15px;
  border: 1px solid #b39558;
  border-radius: 4px;
  background: linear-gradient(#443220, #2d2118);
  color: #ffe0a0;
  box-shadow: inset 0 0 0 2px #1f160e;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  text-decoration: none;
  white-space: nowrap;
}
.reino-gems-nav:hover { background: #513b24; border-color: #ebc875; color: #fff0bc; text-decoration: none; }
.reino-gems-nav svg { width: 20px; height: 20px; }
.topbar .nav-toggle { display: none; color: #f4ddb1; background: #281e16; border: 1px solid #b18f54; border-radius: 4px; min-height: 44px; min-width: 46px; padding: 3px 10px; }
.topbar nav .reino-gems-secondary { color: #f3d59c; }
.topbar nav a.bilal-channel { color: #dbceb8; }

/* The original seasonal artwork and carousel are reused. */
.bilal-hero, .bilal-hero.bilal-navidad {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto;
  min-height: clamp(520px, 43vw, 660px);
  padding: 0;
  background: #201a17;
  border-bottom: 1px solid #d0a762;
  overflow: hidden;
  isolation: isolate;
}
.bilal-hero::after, .bilal-hero.bilal-navidad::after {
  content: '';
  display: block;
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(90deg, #181310f2 0%, #211814d1 27%, #23191050 57%, transparent 85%), linear-gradient(0deg, #211916d9, transparent 32%);
}
.bilal-hero #bilal-scenes, .bilal-navidad #bilal-scenes {
  position: absolute;
  inset: 0;
  grid-area: auto;
  width: 100%;
  height: 100%;
  max-width: none;
  aspect-ratio: auto;
  z-index: 0;
}
.bilal-hero #bilal-scenes .scene, .bilal-hero.bilal-navidad #bilal-scenes [data-navidad-art] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% center;
  animation: none!important;
  transform: none;
}
.bilal-hero > .hero-copy, .bilal-hero.bilal-navidad > .hero-copy {
  position: relative;
  display: block;
  align-self: center;
  grid-area: 1 / 1;
  width: min(660px, 58%);
  max-width: none;
  margin: 0;
  padding: 58px 20px 100px max(48px, calc((100vw - 1180px) / 2));
  pointer-events: auto;
  z-index: 3;
}
.bilal-navidad .navidad-copy { grid-area: auto; padding: 0; min-width: 0; }
.bilal-hero .hero-copy h1, .bilal-navidad .hero-copy .navidad-copy h1 {
  color: #fff0cc;
  font-family: var(--reino-serif);
  font-size: clamp(39px, 4.1vw, 61px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -.035em;
  margin: 0 0 22px;
  max-width: 600px;
  text-shadow: 0 3px 14px #000b;
}
.bilal-hero .hero-copy .eyebrow, .bilal-navidad .hero-copy .navidad-copy .eyebrow { color: #f0c66f; margin: 0 0 17px; font-size: 14px; letter-spacing: .18em; }
.bilal-hero .hero-copy > p, .bilal-navidad .hero-copy .navidad-copy p:last-child { color: #e1d7c7; font-size: 18px; line-height: 1.55; max-width: 520px; margin: 0; text-shadow: 0 2px 8px #000b; }
.bilal-hero .hero-copy > .actions, .bilal-hero.bilal-navidad .hero-copy > .actions {
  position: static;
  grid-area: auto;
  display: flex;
  justify-content: flex-start;
  align-items: stretch;
  gap: 13px;
  margin: 27px 0 0;
  padding: 0;
}
.bilal-hero .hero-copy > .actions .button, .bilal-hero.bilal-navidad .hero-copy > .actions .button {
  min-width: 175px;
  min-height: 54px;
  padding: 12px 23px;
  border-radius: 4px;
  border: 1px solid #f1cb78;
  font: 700 18px/1.25 var(--reino-serif);
  text-transform: uppercase;
  letter-spacing: .015em;
  color: #271705;
  background: linear-gradient(#ffe19a, #e5b44d 42%, #c38c2b);
  box-shadow: inset 0 0 0 2px #58370f, inset 0 0 0 3px #ffe7a3, 0 4px 13px #0008;
}
.bilal-hero .hero-copy > .actions a.button, .bilal-hero.bilal-navidad .hero-copy > .actions a.button {
  color: #ffebc5;
  background: linear-gradient(#3b291f, #211914);
  border-color: #ceab66;
  box-shadow: inset 0 0 0 2px #19110d, inset 0 0 0 3px #b18d454d, 0 4px 13px #0007;
}
.bilal-hero .hero-copy > .actions .button:hover, .bilal-hero.bilal-navidad .hero-copy > .actions .button:hover { background: linear-gradient(#ffedb1, #f1c76a 45%, #d5a447); color: #281904; border-color: #fff0b2; }
.bilal-hero .hero-copy > .actions a.button:hover, .bilal-hero.bilal-navidad .hero-copy > .actions a.button:hover { color: #fff0ca; background: #4a3322; border-color: #f3d392; }
.bilal-hero > .scene-control-layer, .bilal-hero.bilal-navidad > .scene-control-layer {
  position: absolute!important;
  inset: auto!important;
  right: max(28px, calc((100vw - 1180px) / 2))!important;
  bottom: 48px!important;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 14px;
  padding: 0;
  grid-area: auto;
  max-width: none;
  z-index: 4;
}
.bilal-hero .scene-controls { position: static; display: flex; align-items: center; gap: 6px; }
.bilal-hero .scene-controls button, .bilal-navidad .navidad-music, .footer .navidad-music {
  min-height: 44px;
  min-width: 44px;
  padding: 7px 11px;
  border: 1px solid #af8e53;
  border-radius: 4px;
  color: #f1d9a8;
  background: #241b14e8;
  font-size: 16px;
}
.bilal-hero .scene-controls button[aria-pressed='true'] { background: #5a2a25; color: #f8e3be; }
.bilal-hero .scene-controls span { color: #eed9b0; font-size: 16px; }
.bilal-navidad .navidad-links { position: relative; grid-area: auto; padding: 20px 0 0; justify-self: start; }
.bilal-navidad .navidad-links a { background: #312018; color: #f3dcae; border-color: #b68f4b; font-size: 16px; }

/* Burgundy world ribbon and image-led home sections. */
.server-strip {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(1220px, calc(100% - 48px));
  margin: -22px auto 0;
  padding: 22px 24px;
  gap: 10px;
  background-color: #4d1c24;
  background-image: linear-gradient(100deg, #31171dcc, #63232d99, #32171ecc), var(--reino-grain);
  border: 1px solid #c39952;
  border-radius: 4px 4px 11px 11px;
  box-shadow: inset 0 0 0 3px #301717, inset 0 0 0 4px #cfaa6166, 0 10px 30px #0a03034d;
}
.server-strip > div { min-width: 0; padding: 1px 12px; }
.server-strip > div + div { border-left: 1px solid #d9b46759; }
.server-strip strong { color: #f9dca2; font-family: var(--reino-serif); font-size: clamp(25px, 2.4vw, 32px); line-height: 1.25; }
.server-strip :is(a, span) { display: block; margin-top: 6px; color: #ead9bb; font-size: 16px; line-height: 1.3; }
.account-count { font-size: 14px; color: #cdbb9d; margin: 18px auto 0; }
.account-count strong { color: #efcd8e; }
.vida-section-heading { align-items: center; gap: 20px; margin-bottom: 24px; }
.vida-section-heading h2 { color: #f9ebcc; font-family: var(--reino-serif); font-size: clamp(30px, 3.8vw, 46px); line-height: 1.1; }
.vida-section-heading .eyebrow { color: #d2ad6a; font-size: 13px; letter-spacing: .13em; }
.vida-section-heading p:not(.eyebrow) { color: #cbbfae; font-size: 16px; }
.vida-text-link { min-height: 44px; color: #f0c773; font-size: 16px; text-underline-offset: 4px; }
.vida-text-link:hover { color: #ffe3a2; }
.vida-updates { margin: 36px 0 42px; }
.vida-updates-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.vida-update-card { min-width: 0; color: #f0e2c8; background: linear-gradient(135deg, #322820, #29201c); border: 1px solid #bd934f; border-radius: 7px; box-shadow: 0 12px 30px #09040338; padding: 24px; overflow: hidden; }
.vida-update-card:has(.vida-update-content) { padding: 0; }
.vida-update-cover { display: block; width: 100%; aspect-ratio: 2.18; object-fit: cover; object-position: center; margin: 0; background-color: #372b20; border-bottom: 1px solid #ac844a; }
.vida-update-cover img { display: block; width: 100%; height: 100%; aspect-ratio: 2.18; object-fit: cover; }
.vida-update-cover.reino-art-personajes { background-image: var(--reino-community-art); background-size: 300% auto; background-position: 0% 30%; }
.vida-update-content { display: flex; flex-direction: column; align-items: flex-start; flex: 1; width: 100%; min-width: 0; padding: 22px 25px 23px; }
.vida-update-meta { width: 100%; flex-direction: row-reverse; color: #d0c0a5; font-size: 14px; margin-bottom: 11px; }
.vida-update-category { background: #51231d; color: #efcf92; border: 1px solid #a47c42; border-radius: 3px; padding: 2px 10px; font-size: 13px; font-weight: 600; }
.vida-update-card h3 { font-family: var(--reino-serif); font-size: clamp(26px, 2.5vw, 33px); color: #f5e4c2; line-height: 1.13; margin-bottom: 9px; }
.vida-update-card p, .vida-update-detail { color: #d5c8b5; font-size: 16px; }
.vida-update-content > p { margin: 0 0 14px; }
.vida-update-content > .vida-text-link { margin-top: auto; text-decoration: underline; }
.vida-update-card.is-selected { border-color: #f5cc7a; box-shadow: 0 0 0 2px #c4a26126, 0 12px 30px #09040338; }
.vida-release-label { color: #bead94; font-size: 14px; }
.vida-news-page .vida-updates-grid { grid-template-columns: 1fr; }
.vida-news-page .vida-update-card:has(.vida-update-content) { padding: 0; }
.vida-news-page .vida-update-cover { aspect-ratio: 3.1; }
.vida-news-page .vida-update-cover img { aspect-ratio: 3.1; }
.vida-news-page .vida-update-content { padding: 28px; }
.vida-news-page .vida-update-card h3 { font-size: clamp(28px, 3.2vw, 38px); }
.vida-loading-copy, .vida-empty-copy { color: #c8bba5; }
.vida-inline-error { background: #37271f; border-color: #9d7745; border-radius: 5px; }
.reino-community-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 24px 0 42px; }
.reino-community-grid .feature-link {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  position: relative;
  min-width: 0;
  min-height: 230px;
  padding: 24px;
  gap: 7px;
  border: 1px solid #bd9655;
  border-radius: 6px;
  background-image: linear-gradient(0deg, #18100df2, #1c120b14 78%), var(--reino-community-art);
  background-size: 100% 100%, 300% auto;
  background-repeat: no-repeat;
  background-position: center, 0% 30%;
  color: #fff0cc;
  text-shadow: 0 2px 8px #000b;
  box-shadow: 0 7px 22px #0a040433;
  text-decoration: none;
}
.reino-community-grid .feature-link:nth-child(2) { background-position: center, 50% 30%; }
.reino-community-grid .feature-link:nth-child(3) { background-position: center, 100% 30%; }
.reino-community-grid .feature-link:hover { border-color: #ffe1a1; box-shadow: 0 0 0 1px #dbb76a70, 0 10px 24px #09040355; transform: none; }
.reino-community-grid .feature-link > svg { width: 30px; height: 30px; color: #f1c970; }
.reino-community-grid .feature-link strong { font-size: clamp(26px, 2.6vw, 34px); color: #fff0d1; }
.reino-community-grid .feature-link small { font-size: 16px; color: #e6d6be; }
.reino-gems-banner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  margin: 38px 0;
  padding: 27px 30px;
  border: 1px solid #aa8144;
  border-radius: 6px;
  background: radial-gradient(ellipse at 12% 50%, #926d302b, transparent 60%), linear-gradient(100deg, #3b2723, #29211c);
}
.reino-gems-banner .gem-art { width: 80px; height: 80px; margin: 0; }
.reino-gems-banner h2, .reino-gems-banner h3 { margin: 0 0 8px; color: #f5dfb4; }
.reino-gems-banner p { margin: 0; color: #d1c2aa; }
.reino-gems-banner .actions { justify-content: flex-end; }
.rate-strip { border-color: #806441; background: #2c231c; }
.rate-strip > summary { color: #dfc492; font-size: 16px; }
#norian-quests { --nq-gold: #edc779; --nq-ink: #2b211b; }
#norian-quests .nq34-card { border-color: #967343; background: #2c221c; }
#norian-quests .nq34-copy p { color: #cfc0a8; font-size: 16px; }
#norian-quests nav a, #norian-quests .nq34-more summary { font-size: 16px; color: #edc779; }
#norian-play36 { --np-cream: #f7e8c7; --np-muted: #cdbfa9; --np-gold: #e8c276; --np-teal: #edc779; }
#norian-play36 .np36-card, #norian-play36 .np36-people { border-color: #967343; background: #2b211b; }
#norian-play36 .np36-platform { background: #291e16ed; border-color: #bd9555; color: #f7e1b5; }
#norian-play36 .np36-main-link, #norian-play36 .np36-card-link { border-color: #8e7144; color: #e8c276; font-size: 16px; }
#norian-play36 .np36-card-copy > p:not(.np36-kicker), #norian-play36 .np36-intro-copy > p { font-size: 16px; color: #d0c1aa; }
#norian-play36 .np36-note { color: #c1b196; font-size: 14px; }
.device-card, .device-card:nth-child(2), .device-card:nth-child(3) { background: radial-gradient(ellipse at 50% 12%, #b0803533, transparent 65%), #30251e; }

/* Complete character profile, using the existing real-data structure. */
.vida-community-tabs { display: flex; flex-wrap: nowrap; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-color: #9d7b45 #241b15; }
.vida-community-tabs a { flex: 0 0 auto; min-height: 46px; padding: 10px 15px; font-size: 16px; white-space: nowrap; overflow-wrap: normal; }
.vida-character-page .page-title { padding: 32px 28px; }
.vida-character-search { background: #2d241e; border-color: #8e7149; }
.vida-character-search > label { color: #efdbb6; font-size: 16px; }
.vida-character-search > p { font-size: 14px; color: #c4b69f; }
.vida-search-row input { color: #faecd2; background: #1c1612; border-color: #a08457; font-size: 16px; }
.vida-search-row .button { font-size: 16px; }
.vida-search-welcome { background: #2b221a80; border: 1px solid #91714080; border-radius: 6px; padding: 36px 24px; }
.vida-search-welcome > svg { color: #e2b76b; }
.vida-search-welcome h2 { font-family: var(--reino-serif); color: #f4e2be; font-size: clamp(27px, 2.8vw, 34px); }
.vida-search-welcome p { color: #c9bba5; font-size: 16px; }
.vida-welcome-links { font-size: 16px; gap: 18px 28px; }
.vida-welcome-links a { display: inline-flex; align-items: center; min-height: 44px; }
.vida-character-hero { background: radial-gradient(ellipse at 0 0, #81512b42, transparent 70%), linear-gradient(120deg, #392b21, #271f1b); border-color: #bc9557; border-radius: 7px; box-shadow: inset 0 0 0 4px #9c783713; }
.vida-character-crest { background: linear-gradient(#4b3424, #2d2119); border-color: #ba9659; color: #e9c279; border-radius: 7px 7px 20px 20px; }
.vida-character-identity .eyebrow { color: #dcb779; font-size: 12px; }
.vida-character-identity h2 { color: #f7e7c5; font-family: var(--reino-serif); font-size: clamp(31px, 3.8vw, 46px); }
.vida-character-meta { color: #d4c5ac; font-size: 16px; }
.vida-level { color: #efc987; background: #b1843820; border-color: #ba925248; }
.vida-status { color: #c8bba6; background: #201912; border-color: #826946; font-size: 14px; }
.vida-status.is-online { color: #c0d9a3; border-color: #8b9f615c; }
.vida-status.is-online i { background: #a9c782; }
.vida-profile-card { background: linear-gradient(130deg, #352920, #2b221c); border-color: #876b46; border-radius: 6px; }
.vida-card-heading svg { color: #d8b373; }
.vida-card-heading h3 { color: #d0bda0; font-family: var(--reino-sans); font-size: 16px; letter-spacing: 0; }
.vida-card-value { color: #f4dfb9; font-family: var(--reino-serif); font-size: 25px; }
.vida-card-value a { color: #edc579; }
.vida-card-caption, .vida-profile-card .vida-empty-copy { color: #c9baa1; font-size: 16px; }
.vida-houses strong { color: #eed9b2; font-family: var(--reino-serif); font-size: 23px; }
.vida-houses small { color: #bfae94; font-size: 14px; }
.vida-houses li + li { border-color: #7c6340; }
.vida-unavailable { color: #cbb99a; font-size: 16px; }
.vida-deaths-section { background: #2b221c; border-color: #8b6f49; border-radius: 6px; }
.vida-deaths-section .vida-section-heading h2 { color: #f0dfbf; font-family: var(--reino-serif); font-size: clamp(29px, 3vw, 36px); }
.vida-count-label { color: #c8b79a; font-size: 14px; }
.vida-deaths > li { border-color: #705a3e; }
.vida-death-mark { background: #4b2b222e; color: #ceaa7b; border-color: #a4825057; border-radius: 4px; }
.vida-death-heading time { color: #bfae94; font-size: 14px; }
.vida-death-level { color: #e0c193; background: #b58e3c0a; border-color: #ba93564d; font-size: 13px; }
.vida-death-body p { color: #eadbc2; font-size: 16px; }
.vida-death-body .vida-death-secondary { color: #c5b399; font-size: 14px; }
.vida-no-deaths { background: #84704410; border-color: #a1894c4a; border-radius: 5px; }
.vida-no-deaths > svg { color: #d4b874; }
.vida-no-deaths h3 { color: #efdfbd; font-family: var(--reino-serif); font-size: 24px; }
.vida-no-deaths p { color: #c7b79e; font-size: 16px; }
.vida-profile-updated { color: #baa78c; font-size: 14px; }
.vida-search-error { background: #3a2820; border-color: #b68a50; border-radius: 5px; }
.vida-search-error h2 { color: #f2dfb9; font-family: var(--reino-serif); font-size: 30px; }
.vida-search-error p { color: #d4c2a6; font-size: 16px; }

/* Gem purchase, redeem, transfer and account shells keep all existing links. */
.topbar nav .gemshop-nav { color: #f2d194; background: #3e2d1e; border-color: #ad8b50; font-size: 16px; }
.gemshop-card, .gemshop-heading { color: #f3e3c6; background: linear-gradient(110deg, #3d2b21, #2c211c 60%, #32231c); border: 1px solid #ad874a; border-radius: 6px; box-shadow: 0 8px 24px #0b03032e; }
.gemshop-art { background: radial-gradient(ellipse at center, #d1aa442b, transparent 68%), linear-gradient(90deg, #302119e8, #382719d9), url('/portal/v12364/map/banner.webp') center / cover; }
.gemshop-info h2, .gemshop-heading h1 { color: #f7e5be; font-family: var(--reino-serif); font-size: clamp(29px, 3.2vw, 42px); line-height: 1.1; }
.gemshop-info p { color: #d1bea0; font-size: 16px; }
.gemshop-methods { color: #c7b291; font-size: 14px; }
.gemshop-heading a { color: #ebc779; font-size: 16px; }
.gemshop-actions { gap: 10px; }
.gemshop-actions .gemshop-secondary { background: #2c2119; color: #efcd8b; border: 1px solid #9d7942; }
.gemshop-page iframe { background: #211c19; border: 1px solid #7b5e37; border-radius: 5px; width: 100%; max-width: 100%; }
.account-play .button { font-size: 18px; }
#norian-account-wallet { color: #efdbb1; }
#norian-account-wallet .gem-number { color: #efd08b; }
.norian-gem-row small { color: #c8b697; font-size: 14px; }
form.panel[data-community] { background: #2e241c; border-color: #8d7047; color: #f2e1c2; }
form.panel[data-community] label { color: #e8d5b2; }
form.panel[data-community] input { background: #1c1612; border-color: #ab8a58; color: #f6e7cd; }
form.panel[data-community] .button.gold { background: linear-gradient(#f8d988, #d29e3b); border-color: #ecc773; color: #271705; }
form.panel[data-community] [data-result]:not(:empty) { background: #3b2b20; color: #ecd7b1; border-color: #d1a55c; }

.footer {
  background-color: #1a1411;
  background-image: linear-gradient(#211914b3, #160f0cbf), var(--reino-grain);
  border-top: 1px solid #a37e43;
  color: #bfae92;
  padding-top: 34px;
  padding-bottom: 30px;
  gap: 28px;
}
.footer img { width: 174px; height: 88px; object-fit: contain; }
.footer a { color: #dbcaad; font-size: 16px; }
.footer a:hover { color: #f2cc82; }
.footer p { color: #baaa90; }
.footer-note { font-size: 14px; }

@media (max-width: 1250px) and (min-width: 1101px) {
  .topbar { grid-template-columns: 122px minmax(0, 1fr) auto auto; padding-inline: 16px; column-gap: 10px; }
  .topbar .brand, .topbar .brand img { width: 120px!important; }
  .topbar > nav { padding-inline: 8px; }
  .topbar nav > a, .topbar .norian-community summary { padding-inline: 7px; }
  .topbar .language { min-width: 100px; max-width: 112px; }
  .reino-gems-nav { padding-inline: 10px; }
}
@media (max-width: 1100px) {
  .topbar { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; grid-template-rows: auto auto auto; gap: 9px 12px; padding: 9px 18px 12px; min-height: 0; }
  .topbar .brand { grid-column: 1; grid-row: 1; justify-self: start; align-self: center; width: 118px; }
  .topbar .brand img { width: 118px!important; height: 60px!important; }
  .topbar .language { grid-column: 2; grid-row: 1; min-height: 42px; min-width: 108px; width: auto; max-width: 126px; }
  .topbar .nav-toggle { display: block; grid-column: 3; grid-row: 1; }
  .topbar > .reino-gems-nav { grid-column: 1; grid-row: 2; min-height: 44px; }
  .topbar > .play-button { grid-column: 2 / 4; grid-row: 2; display: inline-flex; min-height: 44px; width: 100%; }
  .topbar > nav { display: none; grid-column: 1 / -1; grid-row: 3; padding: 10px 0 0; border: 0; }
  .topbar > nav.open { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; align-items: start; }
  .topbar > nav::after { content: none; }
  .topbar nav > a, .topbar .norian-community summary { min-height: 48px; width: 100%; font-size: 16px; line-height: 1.4; white-space: normal; padding: 11px 12px; border: 1px solid #7f623c; background: #30231a; }
  .topbar nav > [data-nav-group='secondary'] { color: #d8c5a6; background: #281e18; }
  .topbar .norian-community { min-width: 0; align-self: start; }
  .topbar .norian-community[open] { grid-column: 1 / -1; }
  .topbar .norian-community div { position: static; min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); box-shadow: none; margin-top: 7px; gap: 4px; }
  .topbar .norian-community div a { min-height: 46px; font-size: 16px; white-space: normal; }
  .bilal-hero, .bilal-hero.bilal-navidad { min-height: 535px; }
  .bilal-hero > .hero-copy, .bilal-hero.bilal-navidad > .hero-copy { width: min(610px, 66%); padding-left: 34px; }
  .bilal-hero .hero-copy h1, .bilal-navidad .hero-copy .navidad-copy h1 { font-size: clamp(42px, 5vw, 54px); }
  .bilal-hero .hero-copy > .actions .button, .bilal-hero.bilal-navidad .hero-copy > .actions .button { min-width: 155px; padding-inline: 17px; }
  .reino-community-grid { gap: 16px; }
  .reino-community-grid .feature-link { min-height: 220px; padding: 20px; }
  .reino-gems-banner { grid-template-columns: 80px minmax(0, 1fr); }
  .reino-gems-banner .actions { grid-column: 2; justify-content: flex-start; }
}
@media (max-width: 800px) {
  .wrap { width: calc(100% - 32px); }
  .page { padding-top: 22px; padding-bottom: 44px; }
  .page-title { padding: 30px 23px; }
  .section { margin: 36px 0; }
  .panel, .product, .auction-card { padding: 22px; }
  .split, .news-grid, .guide-grid, .wiki-layout { grid-template-columns: minmax(0, 1fr); }
  .wiki-categories { position: static; font-size: 16px; }
  .feature-links, .store-grid, .auction-grid { gap: 14px; }
  .vida-updates-grid { gap: 18px; }
  .vida-update-content { padding: 21px; }
  .reino-community-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .reino-community-grid .feature-link { min-height: 200px; background-position: center, 0% 30%; }
  .reino-community-grid .feature-link:nth-child(2) { background-position: center, 50% 30%; }
  .reino-community-grid .feature-link:nth-child(3) { background-position: center, 100% 30%; }
  .reino-community-grid .feature-link strong { font-size: 31px; }
  .reino-community-grid .feature-link small { font-size: 16px; }
  .vida-profile-grid { grid-template-columns: minmax(0, 1fr); }
  .vida-card-heading h3, .vida-card-caption { font-size: 16px; }
  .footer { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
}
@media (max-width: 700px) {
  .bilal-hero, .bilal-hero.bilal-navidad { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto auto; min-height: 0; padding: 0; overflow: hidden; }
  .bilal-hero::after, .bilal-hero.bilal-navidad::after { display: none; }
  .bilal-hero #bilal-scenes, .bilal-navidad #bilal-scenes { position: relative; inset: auto; grid-area: 1 / 1; width: 100%; height: auto; aspect-ratio: 1.95; overflow: hidden; }
  .bilal-hero #bilal-scenes::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, #251b17, transparent 30%); pointer-events: none; }
  .bilal-hero #bilal-scenes .scene, .bilal-hero.bilal-navidad #bilal-scenes [data-navidad-art] { object-position: 60% center; }
  .bilal-hero > .hero-copy, .bilal-hero.bilal-navidad > .hero-copy { position: relative; grid-area: 2 / 1; width: 100%; max-width: none; padding: 13px 22px 21px; background: linear-gradient(#251b17, #241b16); }
  .bilal-navidad .navidad-copy { padding: 0; grid-area: auto; }
  .bilal-hero .hero-copy .eyebrow, .bilal-navidad .hero-copy .navidad-copy .eyebrow { font-size: 12px; margin-bottom: 12px; letter-spacing: .15em; }
  .bilal-hero .hero-copy h1, .bilal-navidad .hero-copy .navidad-copy h1 { font-size: clamp(35px, 8.5vw, 48px); line-height: 1.04; margin-bottom: 15px; max-width: 540px; }
  .bilal-hero .hero-copy > p, .bilal-navidad .hero-copy .navidad-copy p:last-child { font-size: 16px; line-height: 1.55; color: #d9cbb7; }
  .bilal-hero .hero-copy > .actions, .bilal-hero.bilal-navidad .hero-copy > .actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 23px; gap: 11px; padding: 0; grid-area: auto; }
  .bilal-hero .hero-copy > .actions .button, .bilal-hero.bilal-navidad .hero-copy > .actions .button { width: 100%; min-width: 0; min-height: 54px; padding: 12px 9px; font-size: 17px; }
  .bilal-hero > .scene-control-layer, .bilal-hero.bilal-navidad > .scene-control-layer { position: relative!important; inset: auto!important; right: auto!important; bottom: auto!important; grid-area: 3 / 1; justify-content: flex-end; padding: 0 22px 19px; background: #241b16; }
  .bilal-hero .scene-controls button { min-width: 44px; min-height: 44px; padding: 7px 10px; }
  .bilal-navidad .navidad-links { grid-area: auto; padding: 18px 0 0; display: flex; }
  .server-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); width: calc(100% - 28px); margin: 0 auto; padding: 17px 9px; gap: 0; }
  .server-strip > div { padding: 2px 7px; }
  .server-strip strong { font-size: 24px; }
  .server-strip :is(a, span) { font-size: 16px; line-height: 1.3; }
  .server-strip a { min-height: 44px; display: flex; align-items: center; justify-content: center; }
  .account-count { margin-top: 15px; }
  .vida-section-heading { flex-wrap: wrap; align-items: flex-start; gap: 7px 14px; margin-bottom: 19px; }
  .vida-section-heading h2 { font-size: 34px; }
  .vida-section-heading p:not(.eyebrow) { font-size: 16px; }
  .vida-section-heading .vida-text-link { margin-left: 0; }
  .vida-updates-grid { grid-template-columns: minmax(0, 1fr); }
  .vida-update-cover, .vida-update-cover img { aspect-ratio: 1.9; }
  .vida-update-card h3 { font-size: 29px; }
  .vida-update-meta { gap: 10px; font-size: 14px; }
  .vida-news-page .vida-update-cover, .vida-news-page .vida-update-cover img { aspect-ratio: 1.95; }
  .vida-news-page .vida-update-content { padding: 22px; }
  .reino-gems-banner { grid-template-columns: 55px minmax(0, 1fr); gap: 17px; padding: 23px 20px; }
  .reino-gems-banner .gem-art { width: 52px; height: 62px; }
  .reino-gems-banner h2, .reino-gems-banner h3 { font-size: 29px; }
  .reino-gems-banner .actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: stretch; }
  .reino-gems-banner .actions > * { flex: 1 1 140px; }
  .vida-character-page .page-title { padding: 28px 23px; }
  .vida-character-search { padding: 21px; }
  .vida-search-row { flex-wrap: wrap; }
  .vida-search-row input { flex-basis: 100%; }
  .vida-search-row .button { width: 100%; min-height: 48px; }
  .vida-character-hero { grid-template-columns: 60px minmax(0, 1fr); padding: 23px 20px; gap: 14px; }
  .vida-character-crest { width: 60px; height: 78px; }
  .vida-character-identity h2 { font-size: 32px; }
  .vida-character-identity .eyebrow { font-size: 11px; }
  .vida-character-meta { font-size: 16px; gap: 8px; }
  .vida-status { font-size: 14px; }
  .vida-profile-card { padding: 22px; }
  .vida-deaths-section { padding: 23px 20px; }
  .vida-death-body p { font-size: 16px; }
  .vida-count-label, .vida-profile-updated { font-size: 14px; }
  .gemshop-card { grid-template-columns: 72px minmax(0, 1fr); }
  .gemshop-art { min-height: 155px; }
  .gemshop-art .gem-art { width: 54px; }
  .gemshop-info { padding: 19px 17px 6px; }
  .gemshop-info h2 { font-size: 29px; }
  .gemshop-actions { grid-column: 2; gap: 8px; padding: 8px 16px 18px; flex-direction: column; }
  .gemshop-primary, .gemshop-secondary { font-size: 16px; min-height: 46px; }
  .gemshop-heading { flex-wrap: wrap; padding: 23px; }
  .gemshop-heading div { min-width: 0; }
  .gemshop-heading h1 { font-size: 32px; }
  .gemshop-heading a { font-size: 16px; min-height: 44px; display: inline-flex; align-items: center; }
  .gemshop-tabs a { font-size: 16px; padding: 10px 12px; }
  .footer > div:first-child { grid-column: 1 / -1; }
  .footer img { width: 154px; height: 78px; }
}
@media (max-width: 430px) {
  .topbar { padding-inline: 14px; gap: 9px 10px; }
  .topbar .brand, .topbar .brand img { width: 107px!important; }
  .topbar .brand img { height: 57px!important; }
  .topbar .language { min-width: 105px; max-width: 118px; }
  .topbar > .reino-gems-nav { padding-inline: 10px; font-size: 16px; }
  .topbar nav > a, .topbar .norian-community summary { padding: 11px 10px; font-size: 16px; }
  .wrap { width: calc(100% - 28px); }
  .page-title h1 { font-size: 36px; }
  .panel, .product, .auction-card { padding: 20px; }
  .feature-links, .store-grid, .auction-grid, .filter-grid, .form-grid { grid-template-columns: minmax(0, 1fr); }
  .feature-links[style*='grid-template-columns'] { grid-template-columns: minmax(0, 1fr)!important; }
  .wiki-categories { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bilal-hero > .hero-copy, .bilal-hero.bilal-navidad > .hero-copy { padding-inline: 19px; }
  .bilal-hero .hero-copy h1, .bilal-navidad .hero-copy .navidad-copy h1 { font-size: 36px; }
  .bilal-hero .hero-copy > .actions .button, .bilal-hero.bilal-navidad .hero-copy > .actions .button { font-size: 16px; padding-inline: 7px; }
  .server-strip strong { font-size: 22px; }
  .server-strip :is(a, span) { font-size: 16px; }
  .vida-section-heading h2 { font-size: 32px; }
  .vida-update-content { padding: 21px; }
  .vida-update-card h3 { font-size: 28px; }
  .vida-community-tabs a { font-size: 16px; }
  .vida-character-identity h2 { font-size: 30px; }
  .vida-death-mark { width: 30px; height: 34px; flex-basis: 30px; }
  .vida-deaths > li { gap: 10px; }
  .gemshop-card { grid-template-columns: minmax(0, 1fr); }
  .gemshop-art { grid-row: auto; min-height: 90px; padding: 13px; }
  .gemshop-art .gem-art { width: 58px; }
  .gemshop-info { padding: 20px 21px 7px; }
  .gemshop-actions { grid-column: 1; padding: 12px 21px 21px; }
  .gemshop-tabs { display: flex; flex-wrap: wrap; }
  .gemshop-tabs a { flex: 1 1 130px; justify-content: center; }
  .possession-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .bilal-hero #bilal-scenes .scene, .device-card > img, .vida-character-loading .loading { animation: none!important; }
  .button, .feature-link, .reino-community-grid .feature-link { transition: none!important; }
}

/* Supplemental navigation and complete sitemap. */
.topbar .brand img, .reino-footer-brand img, .reino-checkout > header img { mix-blend-mode: screen; }
.reino-community-more, .reino-gems-links { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 22px; }
.reino-community-more { margin: -22px 0 32px; padding: 0 0 24px; border-bottom: 1px solid #a684494f; }
.reino-community-more a, .reino-gems-links a { display: inline-flex; align-items: center; min-height: 44px; font-size: 16px; color: #edca85; text-decoration: underline; text-underline-offset: 5px; }
.reino-gems-links { margin-top: 13px; }
.footer { grid-template-columns: 1.25fr repeat(4, minmax(0, 1fr)); column-gap: 26px; }
.footer > div { min-width: 0; gap: 5px; }
.footer h2 { font-family: var(--reino-serif); font-size: 24px; letter-spacing: -.015em; color: #f0d5a0; margin: 0 0 14px; }
.footer a { display: flex; align-items: center; min-height: 39px; font-size: 16px; overflow-wrap: anywhere; }
.footer .reino-footer-brand { gap: 13px; }
.footer .reino-footer-brand > a:first-child { display: block; }
.footer .reino-footer-bottom { grid-column: 1 / -1; display: flex; flex-direction: row; align-items: center; flex-wrap: wrap; gap: 8px 24px; margin-top: 16px; padding-top: 23px; border-top: 1px solid #82643b80; }
.footer .reino-footer-bottom .footer-note { flex: 1 1 100%; margin-top: 12px; font-size: 14px; }

/* Standalone purchase/redeem documents and their existing account iframe mode. */
.reino-checkout { background-color: #211b17; color: #f4e6cb; }
.reino-checkout > header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  min-height: 79px;
  padding: 12px max(20px, calc((100% - 930px) / 2));
  background: linear-gradient(#30231a, #221911);
  border-bottom: 1px solid #b18c4b;
}
.reino-checkout > header img { width: 102px; height: 52px; object-fit: contain; }
.reino-checkout > header span { font-size: 13px; letter-spacing: .1em; color: #d6b375; }
.reino-checkout > header select { width: auto; min-width: 112px; min-height: 44px; margin-left: auto; color: #edd8b0; background: #1d1510; border-color: #af8c51; font-size: 16px; }
.reino-checkout main { width: min(970px, 100%); max-width: 970px; min-width: 0; margin: auto; padding: 22px 20px 54px; }
.reino-checkout #stage { min-width: 0; }
.reino-checkout h1 { font-family: var(--reino-serif); color: #f4e1bb; font-size: clamp(35px, 5vw, 49px); line-height: 1.1; margin: 5px 0 14px; }
.reino-checkout h2 { font-family: var(--reino-serif); color: #f1d9ad; font-size: 28px; }
.reino-checkout p, .reino-checkout label, .reino-checkout legend, .reino-checkout select, .reino-checkout input { font-size: 16px; }
.reino-checkout .label { color: #d6b06c; font-size: 13px; }
.reino-checkout #nav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; padding: 0 0 18px; border-bottom: 1px solid #85673c; }
.reino-checkout #nav a { display: inline-flex; align-items: center; min-height: 45px; padding: 9px 16px; border-radius: 4px; background: #2c2119; color: #e5c592; border: 1px solid #947344; font-size: 16px; font-weight: 600; text-decoration: none; }
.reino-checkout #nav a[aria-current='page'] { color: #2b1b07; border-color: #f4cd80; background: linear-gradient(#f1cf89, #c8953c); box-shadow: inset 0 0 0 2px #4c32114d; }
.reino-checkout #nav a:hover { border-color: #edc77b; }
.reino-checkout section { padding: clamp(20px, 3vw, 28px); background: linear-gradient(125deg, #36291f, #2a201a); border: 1px solid #927244; border-radius: 6px; margin: 18px 0; }
.reino-checkout fieldset { min-width: 0; margin: 20px 0; }
.reino-checkout legend { color: #e6cc9d; font-size: 16px; margin-bottom: 9px; }
.reino-checkout label { color: #eedcbc; }
.reino-checkout input, .reino-checkout select { color: #f4e6cb; background: #1b1510; border-color: #a98b5c; border-radius: 5px; min-height: 46px; padding: 10px 13px; }
.reino-checkout .chips { display: flex; flex-wrap: wrap; gap: 12px; }
.reino-checkout .chips label { display: flex; align-items: center; flex: 1 1 132px; min-width: min(132px, 100%); padding: 15px; gap: 12px; border: 1px solid #907044; border-radius: 5px; background: #33261c; color: #ebd7b5; font-size: 16px; cursor: pointer; }
.reino-checkout .chips label:has(input:checked) { color: #fff0cc; background: linear-gradient(120deg, #5a3c21, #3b291b); border-color: #edc574; box-shadow: inset 0 0 0 1px #d6b36b; }
.reino-checkout .chips input { width: 18px; min-width: 18px; height: 18px; min-height: 0; padding: 0; accent-color: #dfb76b; }
.reino-checkout .chips b { color: #f1d59b; font-size: 20px; }
.reino-checkout .chips .price { color: #cdb898; font-size: 16px; }
.reino-checkout .providers .provider { background: #2f241b; border: 1px solid #87673c; border-radius: 4px; padding: 15px 18px; font-size: 16px; }
.reino-checkout .provider b { font-size: 16px; }
.reino-checkout .provider small { color: #ccba9c; font-size: 14px; }
.reino-checkout .note, .reino-checkout #notice:not(:empty) { background: #44301e; color: #efd4a0; border-left: 3px solid #d2aa62; border-radius: 3px; padding: 14px 17px; font-size: 16px; }
.reino-checkout #delivery-help { color: #d1bea0; font-size: 16px; }
.reino-checkout .item { padding: 18px 0; border-color: #81633b; font-size: 16px; }
.reino-checkout .item b { color: #eed7ae; font-size: 18px; }
.reino-checkout .balance { color: #ecc779; font-size: 18px; }
.reino-checkout .code { color: #f3dcaa; background: #1b140f; border: 1px solid #806038; padding: 12px; border-radius: 4px; font-family: ui-monospace, monospace; font-size: 17px; overflow-wrap: anywhere; }
.reino-checkout button, .reino-checkout .btn, .reino-transfer button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 20px;
  color: #291906;
  border: 1px solid #f0c67a;
  border-radius: 4px;
  background: linear-gradient(#f5d68b, #d6a344);
  box-shadow: inset 0 0 0 2px #4c3011, inset 0 0 0 3px #f8dda0a8, 0 3px 9px #13080240;
  font-family: var(--reino-sans);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.45;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
.reino-checkout button:hover, .reino-checkout .btn:hover, .reino-transfer button:hover { background: linear-gradient(#ffe5a3, #e3b45a); color: #251603; border-color: #ffe9b0; }
.reino-checkout .actions { align-items: center; gap: 12px; }
.reino-checkout .actions a { min-height: 44px; display: inline-flex; align-items: center; font-size: 16px; }
.account-checkout .reino-checkout { background: #241b15; }
.account-checkout .reino-checkout main { width: 100%; max-width: 100%; padding: 8px 10px 18px; }
.account-checkout .reino-checkout h1 { font-size: clamp(31px, 4vw, 39px); margin: 8px 0 13px; }
.account-checkout .reino-checkout section { margin: 17px 0; }

/* Standalone transfer form; confirmation and validation visibility stay script-owned. */
.reino-transfer { padding: max(26px, env(safe-area-inset-top)) max(18px, env(safe-area-inset-right)) max(34px, env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left)); }
.reino-transfer main { width: 100%; max-width: 620px; min-width: 0; }
.reino-transfer header { margin: 0 0 25px; padding-bottom: 22px; border-bottom: 1px solid #9c79444d; }
.reino-transfer header > a { display: inline-flex; align-items: center; min-height: 44px; color: #edc67b; font-size: 16px; margin-bottom: 18px; }
.reino-transfer header p { color: #cfbda1; font-size: 16px; }
.reino-transfer h1 { font-family: var(--reino-serif); color: #f6e2ba; font-size: clamp(37px, 6vw, 49px); line-height: 1.08; margin: 8px 0 17px; }
.reino-transfer h2 { font-family: var(--reino-serif); color: #eed5a8; font-size: 29px; }
.reino-transfer form, .reino-transfer #confirmation { background: linear-gradient(130deg, #35281e, #2b211a); border: 1px solid #9f7b46; border-radius: 6px; padding: 25px; }
.reino-transfer label { color: #ecdbbc; font-size: 16px; margin: 20px 0; }
.reino-transfer input, .reino-transfer select { width: 100%; min-height: 48px; color: #f4e7cf; background: #1d1611; border: 1px solid #ad8d5d; border-radius: 5px; font-size: 16px; }
.reino-transfer button { width: 100%; }
.reino-transfer button.secondary { color: #efd8ac; background: linear-gradient(#3c2c20, #2b2118); border-color: #bd9657; box-shadow: inset 0 0 0 2px #1a130f, inset 0 0 0 3px #9d794130; }
.reino-transfer button.secondary:hover { color: #ffe5b4; background: #493322; border-color: #e2b96e; }
.reino-transfer #status { color: #e9d3aa; border-color: #d4aa63; background: #38291c; border-radius: 4px; padding: 15px 18px; font-size: 16px; }
.reino-transfer #balance { color: #eccd8b; font-size: 18px; }
.reino-transfer #summary { color: #f6e3bd; font-size: 18px; }
.reino-checkout [hidden], .reino-transfer [hidden] { display: none!important; }

@media (max-width: 1100px) {
  .footer { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .footer .reino-footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 700px) {
  .footer { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; row-gap: 28px; }
  .footer h2 { font-size: 25px; }
  .footer a { min-height: 44px; font-size: 16px; }
  .footer .reino-footer-bottom { column-gap: 20px; }
  .reino-community-more { gap: 5px 20px; }
  .reino-checkout main { padding: 20px 16px 40px; }
  .reino-checkout > header { padding: 11px 16px; gap: 10px; }
  .reino-checkout > header span { font-size: 12px; }
  .reino-checkout > header select { min-width: 110px; }
  .reino-checkout #nav a { flex: 1 1 130px; justify-content: center; font-size: 16px; }
  .reino-checkout section { padding: 20px; }
  .reino-checkout .chips { gap: 10px; }
  .reino-checkout .chips label { flex-basis: 120px; min-width: min(120px, 100%); padding: 12px; }
  .reino-checkout .chips .price { font-size: 16px; }
  .reino-checkout .actions button, .reino-checkout .actions .btn { flex: 1 1 180px; }
  .account-checkout .reino-checkout main { padding: 4px 8px 14px; }
  .account-checkout .reino-checkout section { padding: 20px 17px; }
  .reino-transfer { padding-inline: 18px; }
  .reino-transfer form, .reino-transfer #confirmation { padding: 22px 20px; }
}
@media (max-width: 380px) {
  .reino-checkout > header img { width: 88px; height: 46px; }
  .reino-checkout > header span { font-size: 11px; letter-spacing: .06em; }
  .reino-checkout > header select { min-width: 102px; padding-inline: 7px; }
}
/* The mobile gem shortcut can wrap its label without widening the viewport. */
.topbar > .reino-gems-nav { min-width: 0; white-space: normal; text-align: center; }
.reino-gems-nav svg { flex: 0 0 20px; }
@media (max-width: 1100px) {
  .topbar > .play-button { align-self: stretch; }
}
/* Desktop already has the permanent gem CTA; the menu shortcut is for mobile. */
@media (min-width: 1101px) {
  .topbar nav > .reino-gems-secondary { display: none; }
}
/* The checkout reports its content height; its border must not subtract 2px. */
#bilal-account-checkout {
  box-sizing: content-box;
  width: calc(100% - 2px);
  max-width: calc(100% - 2px);
}
/* Keep every community and account tab visible on narrow screens. */
@media (max-width: 700px) {
  .reino-portal .tabs,
  .reino-portal .vida-community-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 8px;
    width: 100%;
    max-width: 100%;
    overflow: visible;
  }
  .reino-portal .tabs > a,
  .reino-portal .vida-community-tabs > a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 48px;
    width: 100%;
    padding: 10px 12px;
    white-space: normal;
    overflow-wrap: normal;
    word-break: normal;
    text-align: center;
    font-size: 16px;
  }
}
