/* R2R's website - the game's own Ember Age look (owner 2026-10-24: "website fully within the game's theme ... graphic and
   robust ... really sell R2R"). Fonts are the game's (served from /fonts). */
@import url("/fonts/fonts.css");
:root {
  --bg: #0b0706; --bg2: #140d0a; --panel: rgba(24, 16, 12, .92); --line: rgba(214, 165, 72, .45);
  --gold: #d6a548; --gold-hi: #f2cf6a; --ember: #ff8a3c; --crimson: #8e2418; --crimson-dk: #4a0f0a;
  --text: #f1e3c2; --text2: #c8b08c; --muted: #9a876c; --good: #8fd17a; --bad: #ff8c72;
  --serif: "Cinzel", Georgia, serif; --body: "Crimson Pro", Georgia, serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 18px/1.55 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: var(--gold-hi); } img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; letter-spacing: .02em; margin: 0 0 .4em; line-height: 1.15; }
h2 { font-size: clamp(28px, 4vw, 44px); color: var(--gold-hi); text-shadow: 0 2px 0 #000, 0 0 22px rgba(255, 120, 40, .25); }
h3 { font-size: 22px; color: var(--gold-hi); }
.wrap { width: min(1180px, 100% - 32px); margin: 0 auto; }

/* the bar */
.bar { position: fixed; inset: 0 0 auto; z-index: 50; background: linear-gradient(rgba(10, 6, 5, .95), rgba(10, 6, 5, .75)); border-bottom: 1px solid var(--line); backdrop-filter: blur(6px); }
.bar .wrap { display: flex; align-items: center; gap: 18px; height: 64px; }
.bar .logo img { height: 40px; width: auto; }
.bar nav { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.bar nav a { color: var(--text2); text-decoration: none; font: 600 14px var(--serif); letter-spacing: .08em; text-transform: uppercase; }
.bar nav a:hover { color: var(--gold-hi); }
.bar .links { display: flex; gap: 22px; }
@media (max-width: 760px) { .bar .links { display: none; } .bar nav { gap: 10px; } }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 26px; border-radius: 4px; cursor: pointer;
  font: 700 15px var(--serif); letter-spacing: .1em; text-transform: uppercase; text-decoration: none; color: #fff1d6;
  background: linear-gradient(#a8301e, #5a120c); border: 1px solid var(--gold); box-shadow: 0 0 0 1px #000, 0 4px 16px rgba(0, 0, 0, .6), inset 0 1px 0 rgba(255, 220, 170, .3); }
.btn:hover { filter: brightness(1.15); box-shadow: 0 0 0 1px #000, 0 0 22px rgba(255, 120, 40, .45); }
.btn.gold { background: linear-gradient(#ffd27a, #c4661e); color: #2a1208; border-color: #5a2a0c; }
.btn.ghost { background: rgba(20, 12, 9, .6); }
.btn.small { padding: 7px 14px; font-size: 12px; }
.btn[disabled] { opacity: .45; cursor: default; filter: none; }

/* the hero */
.hero { position: relative; min-height: min(100vh, 960px); display: grid; align-items: center; padding: 100px 0 60px; overflow: hidden; }
.hero .art { position: absolute; inset: 0; background: center / cover no-repeat; transform: scale(1.04); animation: drift 30s ease-in-out infinite alternate; }
@keyframes drift { to { transform: scale(1.1) translate(-1.5%, -1%); } }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8, 5, 4, .92) 0%, rgba(8, 5, 4, .55) 45%, rgba(8, 5, 4, .1) 75%), linear-gradient(transparent 70%, var(--bg)); }
.hero .wrap { position: relative; z-index: 2; }
.hero .crest { width: min(520px, 90%); filter: drop-shadow(0 6px 18px #000); }
.hero p.tag { font-size: clamp(19px, 2.2vw, 24px); max-width: 560px; color: var(--text); text-shadow: 0 2px 6px #000; margin: 14px 0 26px; }
.hero .cta { display: flex; gap: 14px; flex-wrap: wrap; }
.embers { position: absolute; inset: 0; z-index: 1; pointer-events: none; }

/* sections */
section { padding: clamp(60px, 9vw, 110px) 0; position: relative; }
section.alt { background: radial-gradient(ellipse at 50% 0%, rgba(255, 110, 40, .08), transparent 60%), var(--bg2); border-block: 1px solid rgba(214, 165, 72, .15); }
.lede { color: var(--text2); font-size: 20px; max-width: 760px; }
.split { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(26px, 5vw, 64px); align-items: center; }
.split.flip { grid-template-columns: 1.25fr 1fr; } .split.flip > :first-child { order: 2; }
@media (max-width: 860px) { .split, .split.flip { grid-template-columns: 1fr; } .split.flip > :first-child { order: 0; } }
.shot { border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 0 0 1px #000, 0 18px 50px rgba(0, 0, 0, .7), 0 0 40px rgba(255, 110, 40, .08); overflow: hidden; }
.shot img { width: 100%; }
.points { list-style: none; padding: 0; margin: 18px 0 0; }
.points li { padding: 6px 0 6px 30px; position: relative; color: var(--text); }
.points li::before { content: ""; position: absolute; left: 4px; top: 15px; width: 12px; height: 12px; transform: rotate(45deg); background: linear-gradient(var(--gold-hi), var(--ember)); box-shadow: 0 0 8px var(--ember); }
.banner { position: relative; min-height: 440px; display: grid; align-items: end; background: center / cover no-repeat; }
.banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 30%, rgba(8, 5, 4, .9)); }
.banner .wrap { position: relative; z-index: 1; padding-bottom: 46px; }
.banner p { max-width: 640px; font-size: 20px; text-shadow: 0 2px 6px #000; }

/* cards: features, lords, packs */
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 30px; }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 30px; }
@media (max-width: 960px) { .grid3, .grid4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid3, .grid4 { grid-template-columns: 1fr; } }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 22px; box-shadow: 0 0 0 1px #000, 0 10px 30px rgba(0, 0, 0, .5); }
.card .ic { width: 64px; height: 64px; margin-bottom: 10px; filter: brightness(1.2) drop-shadow(0 3px 6px #000); }
.card p { color: var(--text2); margin: 0; }
.lord { text-align: center; padding: 14px; }
.lord img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 4px; border: 1px solid var(--line); margin-bottom: 10px; }
.lord b { font: 700 16px var(--serif); color: var(--gold-hi); display: block; } .lord small { color: var(--muted); }
.fac-ember b { color: #ff9a6a; } .fac-tide b { color: #7fd6e0; } .fac-dawn b { color: #f2d07a; }

/* forms */
.form { max-width: 460px; margin: 0 auto; }
.form label { display: block; font: 600 13px var(--serif); letter-spacing: .08em; text-transform: uppercase; color: var(--text2); margin: 14px 0 6px; }
.form input, .form textarea { width: 100%; padding: 12px 14px; font: 18px var(--body); color: var(--text); background: rgba(8, 5, 4, .7); border: 1px solid var(--line); border-radius: 4px; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--gold-hi); box-shadow: 0 0 0 3px rgba(242, 207, 106, .15); }
.form .btn { width: 100%; margin-top: 20px; }
.msg { margin-top: 14px; min-height: 1.5em; font-weight: 600; } .msg.good { color: var(--good); } .msg.bad { color: var(--bad); }
.inline-form { display: flex; gap: 10px; max-width: 560px; flex-wrap: wrap; }
.inline-form input { flex: 1 1 260px; padding: 13px 16px; font: 18px var(--body); color: var(--text); background: rgba(8, 5, 4, .75); border: 1px solid var(--line); border-radius: 4px; }

/* page shells (sign-in, account, store) */
.page { min-height: 100vh; padding: 110px 0 60px; background: radial-gradient(ellipse at 50% -10%, rgba(255, 110, 40, .14), transparent 55%), var(--bg); }
.page .panel { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: clamp(22px, 4vw, 40px); box-shadow: 0 0 0 1px #000, 0 20px 60px rgba(0, 0, 0, .7); }
.page h1 { font-size: clamp(28px, 4vw, 40px); color: var(--gold-hi); text-align: center; }
.closed-note { text-align: center; padding: 14px; border: 1px solid rgba(255, 120, 80, .5); background: rgba(90, 18, 12, .4); border-radius: 6px; color: #ffc4a8; font-weight: 600; margin: 18px 0; }
.pack { text-align: center; } .pack .n { font: 700 34px var(--serif); color: var(--gold-hi); } .pack .bonus { color: var(--good); font-weight: 600; min-height: 1.4em; }
.pack .usd { font: 700 20px var(--serif); margin: 6px 0 12px; }
.shelf { margin-top: 26px; } .shelf h3 { border-bottom: 1px solid var(--line); padding-bottom: 6px; }
.items { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; margin-top: 10px; }
.item { display: flex; gap: 10px; align-items: center; background: rgba(8, 5, 4, .5); border: 1px solid rgba(214, 165, 72, .25); border-radius: 4px; padding: 8px; }
.item img { width: 42px; height: 42px; object-fit: contain; } .item b { font-size: 15px; display: block; } .item span { color: var(--gold-hi); font-weight: 700; }

/* the foot */
footer { border-top: 1px solid var(--line); padding: 34px 0 44px; color: var(--muted); font-size: 15px; }
footer .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: center; }
footer img { height: 34px; width: auto; opacity: .85; }
.beta-pill { display: inline-block; font: 700 12px var(--serif); letter-spacing: .12em; text-transform: uppercase; color: #ffd27a; border: 1px solid var(--gold); background: rgba(90, 18, 12, .6); padding: 3px 10px; border-radius: 3px; }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s, transform .8s; } .reveal.in { opacity: 1; transform: none; }
[hidden] { display: none !important; }
.hero { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 560px) { .bar .logo img { height: 30px; } .bar .wrap { gap: 8px; } .bar nav a { font-size: 12px; letter-spacing: .04em; } .bar .btn.small { padding: 6px 10px; }
  .hero { padding-top: 90px; } .hero .crest { width: 100%; } }

/* the realm's banner (admin panel > Live) */
.realm-banner { position: fixed; top: 64px; inset-inline: 0; z-index: 49; text-align: center; padding: 7px 16px; font: 600 15px var(--body);
  color: #fff1d6; background: linear-gradient(90deg, rgba(90, 18, 12, .95), rgba(140, 36, 20, .95), rgba(90, 18, 12, .95)); border-bottom: 1px solid var(--gold); }
