:root {
 --base:#100f0e; --surface:#1a1815; --surface-raised:#25211b; --ink:#f1ece1; --muted:#aaa296;
 --line:#393126; --gold:#dfb66f; --gold-light:#f6dca3; --radius:.25rem; --width:78rem;
}
.home-events { padding-top:3.5rem; }
.event-section-heading { display:flex; align-items:center; justify-content:space-between; gap:1rem; margin-bottom:1.25rem; }
.event-section-heading h2 { font:400 1.75rem Georgia,serif; }
.event-section-heading>span,.event-footnote { color:var(--muted); font-size:.875rem; }
.event-footnote { margin-top:1rem; }
.event-list { list-style:none; padding:0; margin:0; display:grid; gap:.8rem; }
.event-row { display:grid; grid-template-columns:8rem 1fr auto; align-items:center; gap:1.75rem; padding:1.5rem 1.75rem; background:linear-gradient(110deg,#241e17,#181512); border:1px solid #4a3b28; }
.event-next { border-color:#b48a4c; background:radial-gradient(ellipse at 100% 0,#bb82351e,transparent 65%),linear-gradient(110deg,#302619,#1b1712); box-shadow:inset 3px 0 var(--gold); }
.event-time { display:flex; flex-direction:column; gap:.35rem; }
.event-time>span { color:#c3b59f; font-size:.875rem; }
.event-time time { font:400 2.3rem Georgia,serif; font-variant-numeric:tabular-nums; color:var(--gold-light); }
.event-category { display:block; color:var(--gold); font-size:.875rem; margin-bottom:.4rem; }
.event-detail h3 { font-size:1.125rem; font-weight:600; overflow-wrap:anywhere; }
.event-detail p { font-size:.875rem; margin-top:.5rem; }
.event-remaining { min-width:10rem; text-align:right; display:flex; flex-direction:column; gap:.3rem; }
.event-remaining strong { font-size:1.2rem; color:var(--gold-light); font-variant-numeric:tabular-nums; }
.event-remaining>span { font-size:.875rem; color:var(--muted); }
.event-remaining .event-next-label { font-size:.875rem; color:var(--gold); letter-spacing:.06em; margin-bottom:.35rem; }
.event-list-compact { grid-template-columns:repeat(4,minmax(0,1fr)); gap:1rem; }
.event-list-compact .event-row { grid-template-columns:1fr; align-content:start; gap:1.1rem; padding:1.5rem; }
.event-list-compact .event-time { flex-direction:row-reverse; justify-content:space-between; align-items:center; }
.event-list-compact .event-detail { min-height:6rem; }
.event-list-compact .event-remaining { text-align:left; min-width:0; margin-top:auto; border-top:1px solid #6a50324d; padding-top:1rem; }
.event-list-compact .event-next-label { margin:0; }
.events-page { max-width:66rem; }
.events-page .page-heading { margin-bottom:2.5rem; }
@media(max-width:65rem) { .event-list-compact { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:38rem) {
 .nav { flex-wrap:wrap; }
 .event-section-heading { align-items:start; flex-direction:column; }
 .event-row { grid-template-columns:5rem 1fr; gap:1rem; padding:1.25rem; }
 .event-time time { font-size:1.8rem; }
 .event-remaining { grid-column:1/-1; text-align:left; min-width:0; border-top:1px solid #6a50324d; padding-top:1rem; }
 .event-list-compact { grid-template-columns:1fr; }
 .event-list-compact .event-row { grid-template-columns:5rem 1fr; }
 .event-list-compact .event-time { flex-direction:column; align-items:start; }
 .event-list-compact .event-detail { min-height:0; }
}
body { background:radial-gradient(ellipse at 50% 40%,#29201644,transparent 65%),var(--base); }
h1,h2,h3 { text-wrap:balance; }
.site-header { position:relative; z-index:2; background:#100e0df5; border-bottom:1px solid #8b683b65; }
.header-inner { min-height:6.25rem; grid-template-columns:1fr auto 1fr; gap:2rem; }
.brand { grid-column:2; grid-row:1; gap:.7rem; }
.brand img { width:52px; height:52px; }
.brand-name { font:700 1.7rem Georgia,serif; letter-spacing:.1em; text-shadow:0 2px 12px #b87b3840; color:var(--gold-light); }
.brand-name>span { display:block; text-align:center; font:600 .7rem 'Segoe UI',sans-serif; letter-spacing:.6em; margin-top:.15rem; }
.nav { grid-column:1; grid-row:1; gap:.1rem; justify-content:start; }
.nav a { font-size:.875rem; padding:.65rem .6rem; border-radius:0; }
.nav a:first-child,.nav a:last-child { display:none; }
.nav a:hover,.nav a[aria-current] { background:transparent; color:var(--gold-light); }
.header-account { grid-column:3; grid-row:1; display:flex; align-items:center; gap:1.4rem; }
.account-link { font-size:.9rem; color:#d8d0c1; }
.account-link:hover { color:var(--gold-light); }
.button { border-radius:.2rem; letter-spacing:.025em; padding:.7rem 1.25rem; min-height:2.9rem; }
.button-gold { background:linear-gradient(135deg,#f0ce8c,#c19650); border:1px solid #f5d99a; box-shadow:inset 0 0 0 3px #2b201320,0 4px 22px #0004; color:#251b10; }
.button-gold:hover { background:#f1d499; box-shadow:0 0 25px #d6a85c25; }
.button-quiet { background:#18151188; border-color:#8a735650; color:var(--ink); }
.realm-hero { position:relative; min-height:41rem; display:flex; align-items:center; background:linear-gradient(90deg,#100e0de8 0%,#100e0d75 40%,transparent 70%),linear-gradient(0deg,#100f0e,transparent 32%),url('./images/titan-portal-hero.jpg') 63% 35%/cover; border-bottom:1px solid #b58b4830; }
.realm-content { padding-top:3rem; padding-bottom:7rem; position:relative; }
.realm-kicker,.section-kicker { color:var(--gold); font-size:.78rem; font-weight:650; letter-spacing:.18em; margin-bottom:.9rem; }
.realm-kicker { display:flex; align-items:center; gap:1rem; margin-bottom:1.4rem; }
.realm-kicker::before { content:''; width:2.5rem; height:1px; background:var(--gold); }
.realm-hero h1 { font:400 clamp(3rem,5.1vw,5.25rem)/1.06 Georgia,'Times New Roman',serif; letter-spacing:-.035em; text-shadow:0 2px 20px #0008; }
.realm-hero h1 em { color:var(--gold-light); font-weight:400; }
.realm-description { color:#cbc3b7; margin-top:1.5rem; font-size:1rem; line-height:1.8; }
.realm-content .actions { margin-top:1.8rem; gap:.8rem; }
.realm-content .button { min-width:10rem; min-height:3.2rem; }
.hero-caption { position:absolute; bottom:4.5rem; right:0; display:grid; text-align:right; font-size:.75rem; color:#c9b897; gap:.2rem; letter-spacing:.18em; }
.hero-caption span:last-child { letter-spacing:.03em; color:#999084; }
.portal-body { position:relative; margin-top:-2.5rem; }
.realm-shortcuts { display:grid; grid-template-columns:repeat(4,1fr); background:linear-gradient(145deg,#28231c,#171512); border:1px solid #725733; box-shadow:0 12px 35px #0005,inset 0 0 0 4px #171410; }
.realm-shortcuts a { display:flex; align-items:center; gap:1rem; padding:1.5rem 1.3rem; border-right:1px solid #705b323d; transition:background .2s; }
.realm-shortcuts a:last-child { border:0; }
.realm-shortcuts a:hover { background:#a9823620; }
.shortcut-mark { font:2.25rem Georgia,serif; color:var(--gold); width:2.25rem; text-align:center; }
.realm-shortcuts strong { display:block; font-size:.94rem; font-weight:600; }
.realm-shortcuts small { display:block; color:var(--muted); font-size:.875rem; margin-top:.3rem; }
.portal-section-heading { display:flex; justify-content:space-between; align-items:end; gap:1rem; margin-bottom:1.5rem; }
.portal-section-heading h2,.panel-title h2,.realm-invitation h2 { font:400 1.9rem Georgia,serif; letter-spacing:-.025em; }
.portal-section-heading .section-kicker,.panel-title .section-kicker { margin-bottom:.55rem; }
.text-link { color:var(--gold); font-size:.875rem; white-space:nowrap; }
.showcase { padding-top:3.75rem; }
.showcase-grid { display:grid; grid-template-columns:1.4fr 1fr 1fr; gap:1rem; }
.feature-tile { min-height:15rem; display:flex; align-items:end; border:1px solid #5b4633; position:relative; overflow:hidden; background-color:#292019; isolation:isolate; }
.feature-tile::before { content:''; position:absolute; inset:0; z-index:-1; background-position:center; background-size:cover; transition:transform .35s ease; }
.feature-tile::after { content:''; position:absolute; inset:0; z-index:-1; background:linear-gradient(0deg,#0e0c0af5,#15100b35 90%); }
.feature-tile:hover::before { transform:scale(1.04); }
.tile-moradon::before { background-image:url('./images/moradon-art.png'); background-position:center 40%; }
.tile-clans::before { background-image:url('./images/titan-portal-hero.jpg'); background-position:90% center; background-size:auto 170%; }
.tile-armory::before { background-image:url('./images/titan-portal-hero.jpg'); background-position:70% 85%; background-size:auto 190%; }
.feature-tile>div { padding:1.5rem; }
.feature-tile span { color:#e1bc80; font-size:.75rem; font-weight:600; letter-spacing:.1em; }
.feature-tile h3 { font:400 1.65rem Georgia,serif; margin-top:.5rem; }
.feature-tile p { font-size:.875rem; margin-top:.55rem; color:#bcb2a5; }
.portal-columns { display:grid; grid-template-columns:1fr 1.3fr; gap:2.5rem; padding-block:3.5rem; align-items:start; }
.ranking-panel { border:1px solid #57432b; background:linear-gradient(140deg,#29221970,#181512); box-shadow:0 5px 25px #0003; }
.panel-title { padding:1.5rem 1.5rem 1rem; display:flex; justify-content:space-between; align-items:center; }
.panel-title h2 { font-size:1.65rem; }
.panel-crest { font:2.7rem Georgia,serif; color:#a47d45; }
.rank-tabs { display:grid; grid-template-columns:1fr 1fr; padding:0 1.5rem; border-bottom:1px solid var(--line); }
.rank-tabs a { text-align:center; padding:.8rem; font-size:.875rem; color:var(--muted); border-bottom:2px solid transparent; }
.rank-tabs a[aria-current] { color:var(--gold-light); border-color:var(--gold); background:linear-gradient(0deg,#c3954b12,transparent); }
.realm-ranking { list-style:none; padding:0; margin:0; }
.realm-ranking li { display:flex; align-items:center; gap:.8rem; padding:1.05rem 1.5rem; border-bottom:1px solid #352c20; }
.realm-ranking li:first-child { background:linear-gradient(90deg,#ad7c2220,transparent); }
.rank-position { color:#a49882; width:.8rem; font:1rem Georgia,serif; }
.realm-ranking li:first-child .rank-position { color:var(--gold-light); }
.nation-seal { width:2rem; height:2.35rem; flex-shrink:0; display:grid; place-items:center; clip-path:polygon(0 0,100% 0,95% 76%,50% 100%,5% 76%); border-top:1px solid currentColor; background:#483c2a; font:700 1rem Georgia,serif; }
.nation-seal.nation-1 { background:linear-gradient(#6a2821,#271a16); }
.nation-seal.nation-2 { background:linear-gradient(#244e64,#15202b); }
.rank-person { flex:1; min-width:0; }
.rank-person strong { font-size:.9rem; display:block; overflow-wrap:anywhere; }
.rank-person small { display:block; font-size:.8rem; color:var(--muted); margin-top:.2rem; }
.rank-points { text-align:right; color:var(--gold-light); font-size:.9rem; font-variant-numeric:tabular-nums; }
.rank-points small { display:block; font-size:.7rem; letter-spacing:.08em; color:var(--muted); margin-top:.25rem; }
.ranking-empty { padding:3rem 1.5rem; color:var(--muted); }
.panel-bottom-link { display:block; text-align:center; padding:1rem; font-size:.875rem; color:var(--gold); background:#b78a2410; }
.panel-bottom-link:hover { background:#b78a2420; }
.news-panel { padding-top:.5rem; }
.realm-news article { border-top:1px solid var(--line); }
.realm-news article:last-child { border-bottom:1px solid var(--line); }
.realm-news a { display:flex; gap:1.5rem; padding:1.5rem 0; }
.realm-news a:hover h3 { color:var(--gold-light); }
.realm-news time { flex:0 0 4rem; display:flex; align-items:center; flex-direction:column; color:#b0a18a; border-right:1px solid var(--line); padding-right:1rem; }
.realm-news time strong { font:2.3rem Georgia,serif; color:var(--gold-light); }
.realm-news time span { font-size:.75rem; white-space:nowrap; margin-top:.25rem; }
.news-category { color:var(--gold); font-size:.75rem; letter-spacing:.08em; text-transform:uppercase; }
.realm-news h3 { font-size:1.1rem; font-weight:600; margin-top:.4rem; }
.realm-news p { font-size:.875rem; line-height:1.65; margin-top:.6rem; }
.realm-invitation { display:flex; align-items:center; gap:1.5rem; padding:2.5rem; border:1px solid #6c5032; background:radial-gradient(ellipse at 70% 50%,#6c4a251f,transparent),#201b15; margin-bottom:4rem; }
.realm-invitation .section-kicker { margin-bottom:.5rem; }
.realm-invitation p:last-child { font-size:.9rem; margin-top:.7rem; }
.realm-invitation .button { margin-left:auto; }
.site-footer { background:#100e0d; border-color:#4d3c27; }
.footer-brand.brand { font-family:Georgia,serif; font-weight:400; }
.footer-inner { padding-block:1.8rem; }
.page-content { min-height:65vh; }
.page-heading h1,.account-heading h1,.login-heading h1,.article-detail h1 { font-family:Georgia,serif; font-weight:400; color:var(--gold-light); }
.contents-card,.article-card,.table-card,.download-card,.form-card,.update-preview a { background:#1b1814; border-color:var(--line); }
.search-form input,.form-card input { background:#100f0e; border-color:#5e4d36; }
thead th { background:#1b1712; }
@media(min-width:90rem) { .realm-hero { min-height:44rem; } }
@media(max-width:65rem) {
 .header-inner { gap:.75rem; } .header-account { gap:.75rem; } .nav a { padding-inline:.35rem; }
 .realm-shortcuts { grid-template-columns:repeat(2,1fr); } .realm-shortcuts a { padding:1.1rem; border-bottom:1px solid #705b323d; }
 .realm-shortcuts a:nth-child(even) { border-right:0; } .portal-columns { gap:1.5rem; grid-template-columns:1fr 1.1fr; }
 .realm-ranking li { padding-inline:1rem; gap:.5rem; }
}
@media(max-width:55rem) {
 .header-inner { grid-template-columns:1fr auto; padding-block:.8rem; } .brand { grid-column:1; grid-row:1; }
 .header-account { grid-column:2; } .nav { grid-row:2; grid-column:1/-1; justify-content:center; padding-top:.4rem; }
 .nav a { padding-inline:.9rem; } .realm-hero { min-height:36rem; } .showcase-grid { grid-template-columns:repeat(3,1fr); }
 .feature-tile>div { padding:1rem; } .feature-tile h3 { font-size:1.3rem; } .portal-columns { grid-template-columns:1fr; }
 .realm-invitation { flex-wrap:wrap; padding:1.5rem; } .realm-invitation .button { margin-left:0; }
}
@media(max-width:38rem) {
 .brand-name { font-size:1.3rem; } .brand img { width:40px; height:40px; } .header-account { gap:.65rem; }
 .header-account .button { padding-inline:.75rem; font-size:.8rem; } .account-link { font-size:.8rem; }
 .nav a { font-size:.85rem; padding-inline:.65rem; } .realm-hero { min-height:39rem; background-position:65% center; }
 .realm-hero h1 { font-size:3.1rem; } .realm-description { max-width:19rem; } .realm-description br { display:none; }
 .hero-caption { display:none; } .realm-shortcuts a { padding:1rem .7rem; gap:.5rem; }
 .shortcut-mark { font-size:1.6rem; width:1.5rem; } .realm-shortcuts strong { font-size:.8rem; } .realm-shortcuts small { font-size:.75rem; }
 .portal-section-heading { align-items:start; flex-wrap:wrap; } .portal-section-heading h2 { font-size:1.6rem; }
 .showcase { padding-top:2.5rem; } .showcase-grid { grid-template-columns:1fr; } .feature-tile { min-height:13rem; }
 .feature-tile h3 { font-size:1.65rem; } .feature-tile>div { padding:1.5rem; } .realm-news a { gap:1rem; }
 .realm-invitation img { width:54px; height:54px; } .realm-invitation .section-kicker { font-size:.65rem; }
 .realm-invitation h2 { font-size:1.6rem; } .realm-invitation>div { flex:1; }
 .footer-inner { flex-direction:column; align-items:start; } .footer-links { justify-content:start; }
}
.rank-character { display:inline-flex; align-items:center; gap:.85rem; }
.rank-symbol { width:40px; height:40px; object-fit:contain; flex-shrink:0; }
.drop-pagination { display:flex; flex-wrap:wrap; align-items:center; gap:.8rem; justify-content:flex-end; margin-top:1rem; }
.drop-pagination span { color:var(--muted); font-size:.875rem; }
.security-layout { max-width:38rem; }
.security-layout .form-card { display:grid; gap:.7rem; padding:1.5rem; margin-top:1.5rem; }
.security-layout .form-card input { min-width:0; width:100%; }
.security-layout .form-card .field-help { font-size:.8rem; margin-top:-.4rem; }
.security-layout .notice { margin-block:1rem; }
.account-actions { display:flex; flex-wrap:wrap; gap:.7rem; margin-bottom:1.5rem; }
