/* Kella's original portal theme. Page data, controls and authored Wiki canvases
   remain owned by the existing application. Character composition controls: */
:root{--kella-scale:1;--kella-x:0px;--kella-y:0px;--kella-max-height:620px;--kella-crop:contain}
body,body:not([data-route=home]){--bg:#101313;--panel:#191d1d;--panel-2:#202625;--panel-3:#29302d;--text:#eee8d9;--ink:#eee8d9;--muted:#a7aaa0;--line:#aa8a4b38;--gold:#c5a365;--gold-soft:#e1c797;--paper:#191d1d;--paper-soft:#202625;--paper-deep:#29302d;--glass:#202625;--green:#9dc6a8;--blue:#a4bacb;color:var(--text);background:linear-gradient(#101313dd,#101313f7 720px),url('/assets/castle-scenery.png') center top/cover fixed;font:15px/1.6 'Segoe UI',system-ui,sans-serif;color-scheme:dark}
html{scroll-behavior:smooth;scroll-padding-top:100px}*{box-sizing:border-box}body .shell,body .shell:has(.lord-research-workspace){display:block!important;width:100%;max-width:none;margin:0;border:0;background:transparent;min-height:100dvh;box-shadow:none}body main{background:transparent;min-width:0}
body .shell>.sidebar,body[data-route=home] .shell>.sidebar,body:not([data-route=home]) .shell>.sidebar{display:flex!important;position:sticky;top:0;inset-inline:0;transform:none;visibility:visible;width:100%;height:auto;min-height:80px;padding:12px max(24px,calc((100vw - 1320px)/2));flex-direction:row;align-items:center;gap:30px;background:#111515f5;border:0;border-bottom:1px solid #d2b77b26;z-index:95;overflow:visible;box-shadow:0 8px 28px #0002;backdrop-filter:blur(14px)}
body .sidebar .brand{display:flex;min-width:173px;gap:10px;margin:0;padding:0;align-items:center}body .sidebar .brand>div{display:block!important}body .brand-logo{width:42px;height:42px;border:0;border-radius:0;box-shadow:none}body .brand strong,body:not([data-route=home]) .brand strong{font:600 12px/1.5 Georgia,serif;letter-spacing:.08em;color:#ead7ad}body .brand span,body:not([data-route=home]) .brand span{display:block!important;font:10px/1.6 'Segoe UI',sans-serif;color:#969b8e;letter-spacing:.06em}
body .sidebar nav{display:flex;gap:2px;flex:1;align-items:center}body .sidebar nav a,body:not([data-route=home]) .sidebar nav a{font-size:12px;font-weight:500;padding:10px 12px;min-height:42px;white-space:nowrap;color:#b9bcb1;border:0;border-radius:3px;background:transparent}body .sidebar nav a.active,body .sidebar nav a:hover,body:not([data-route=home]) .sidebar nav a.active{color:#eed7a4;background:#c7a76b10;box-shadow:inset 0 -1px #c7a76b}
body .sidebar :is(.nav-icon,.side-footer,.side-spacer,.nav-section-label){display:none!important}body .sidebar .top-actions{display:flex;align-items:center;gap:16px;margin-left:auto;flex-shrink:0}body .sidebar .server-clock{display:flex;flex-direction:column;min-width:88px;text-align:right;background:none;padding:0;border:0}body .server-clock span{font-size:9px;color:#8e978b;letter-spacing:.1em;text-transform:uppercase}body .server-clock strong,body:not([data-route=home]) .server-clock strong{font-size:11px;color:#c5c9bb;font-weight:400;font-variant-numeric:tabular-nums}body .account-menu{margin:0}body .account-menu summary,body[data-route=home] .account-menu summary,body:not([data-route=home]) .account-menu summary{background:#262a22;color:#e1c797;border:1px solid #aa8a4b66;border-radius:3px;padding:10px 14px;font-size:12px;box-shadow:none}body .account-panel,body:not([data-route=home]) .account-panel{background:#1c2220;color:var(--text);border:1px solid #927a4b;box-shadow:0 16px 35px #0008}body .bottom-nav{display:none!important}body .mobile-nav-toggle{display:none!important}
body .content,body:not([data-route=home]) .content{width:calc(100% - 64px);max-width:1320px;padding:32px 0 64px;margin:0 auto;border:0;outline:0;background:none;border-radius:0;box-shadow:none}body[data-route=home] .content{width:100%;max-width:none;padding:0;margin:0}
body :is(h1,h2,h3,h4){text-shadow:none}body :is(.hero h2,.card h3,.card-header h3,.officer-groups h3,.attendance-detail-head h3){color:#e8dac0;text-shadow:none}body .hero h2{font:400 32px/1.25 Georgia,serif}body .hero p{color:var(--muted)}
body :is(.card,.table-wrap,.wiki-card,.calendar-detail-card,.attendance-summary-card,.attendance-group,.training-summary,.training-resource,.profile-stat,.stat,.wiki-inspector,.officer-tool,.event-agenda-row,.lord-tool-card,.lord-speedup-card,.lord-catalog-card,.lord-calc-card,.lord-pair-card,.lord-building-card,.training-calculator-card){background:linear-gradient(135deg,#202522,#181d1c);color:var(--text);border:1px solid var(--line);border-radius:8px;box-shadow:0 12px 30px #0002}body .card .card{background:#171c1988}body :is(.officer-tool strong,.officer-group h3,.calendar-day-number,.training-summary strong,.training-resource strong,.power-value,.metric-selector-value){color:#e5d6b9}body .officer-tool:hover{background:#262d25;border-color:#b69a60}
body :is(.primary,button.primary){display:inline-flex;align-items:center;justify-content:center;gap:22px;min-height:46px;padding:11px 20px;background:linear-gradient(115deg,#d3b777,#b28d4d);color:#1c201a;border:1px solid #d7bc80;border-radius:3px;box-shadow:0 3px 15px #caa65412;text-shadow:none;font:600 13px/1.5 'Segoe UI',sans-serif;text-decoration:none}body :is(.secondary,.auth-button,.profile-top-button,.wiki-format-button,.wiki-tag-button,.training-mode-button){display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:10px 16px;background:#242a23;border:1px solid #b2955b55;color:#e1cdab;box-shadow:none;text-shadow:none;border-radius:3px;font-size:13px}body :is(.primary:hover,.secondary:hover){filter:brightness(1.1);box-shadow:none}body :is(.training-mode-button.active,.wiki-tag-button.active){background:#c5a36530;color:#f2d49c;border-color:#b2955b}body .danger{background:#793b35;color:#fff1ea;text-shadow:none}
body input:not([type=checkbox]):not([type=radio]):not([type=color]),body select,body textarea{background:#121816;color:#e7dfce;border:1px solid #86734780;box-shadow:none;border-radius:4px;min-height:44px}body input::placeholder,body textarea::placeholder{color:#94998e}body label{color:#c7caba}body :is(th,.training-table th){background:#252c26;color:#d4be95;border-color:var(--line)}body td{color:#d2d5c8;border-color:#a58b5522}body tr:hover td{background:#b69b5610}body :is(.badge,.training-tier-badge,.metric-selector,.metric-picker,.training-mode-tabs){background:#242d26;color:#d4c298;border-color:#9d875544}body :is(.metric-button,.metric-picker button){background:#202923;color:#c7cdbd;border-color:#9d875544}
body .calendar-day{background:#1b241f;color:#ddd4bd;border:1px solid #a48a4e44;box-shadow:none}body .calendar-day:hover{background:#2a3428}body .calendar-day.today{background:#3b3e2a;border:1px solid #c3a466;box-shadow:inset 0 0 0 1px #c3a46633}body .calendar-entry{background:#3b4533;color:#e1d1ab;border-color:#928353}body .calendar-entry small{color:#bec6ad}body :is(.power-trend-row,.power-trend-row.top-stat-player){background:#202822;color:#d9ddcf;border-color:#9a815233}
body .wiki-card{display:flex;flex-direction:column;gap:16px}body .wiki-card>div:first-child{flex:1}body .wiki-card .toolbar{margin-top:auto}body .wiki-card>div:first-child>p{display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden}body .wiki-card>.muted{font-size:12px}body .lord-table :is(th,td):first-child{background:#202822}body .lord-research-layout{min-height:0}body .lord-research-tree-scroll{height:65vh;min-height:500px}body :is(.member-modal-panel,.avatar-cropper-panel){background:#1c241f;color:#e7dfce;border-color:#a38b55}body :is(a,button,summary,input,select,textarea):focus-visible{outline:2px solid #e8c981;outline-offset:4px}
/* Hero composition: scenery, coins, original character, then foreground UI. */
.portal-home{overflow:hidden;background:#101514}.portal-hero{position:relative;isolation:isolate;min-height:720px;height:min(800px,calc(100svh - 80px));max-height:900px;padding:90px max(32px,calc((100vw - 1240px)/2));display:flex;align-items:center;border-bottom:1px solid #c5a36535;background:#15211c}.portal-scenery{position:absolute;inset:0;z-index:-2;background:linear-gradient(90deg,#101b19f7 3%,#13211bde 34%,#20302168 70%,#17251ba6),linear-gradient(0deg,#101514 0%,transparent 40%,#13201c88),url('/assets/castle-scenery.png') center 36%/cover no-repeat;filter:saturate(.55)}.portal-hero:after{content:'';position:absolute;inset:0;z-index:-1;pointer-events:none;background:radial-gradient(ellipse at 75% 42%,#d3b46815,transparent 40%)}.portal-hero-copy{position:relative;z-index:4;max-width:570px;width:52%}.portal-eyebrow{font:600 10px/1.6 'Segoe UI',sans-serif;letter-spacing:.2em;color:#b9a575;margin:0 0 22px;display:block}.portal-eyebrow>span{display:inline-block;width:6px;height:6px;border-radius:50%;background:#d2b473;margin-right:9px;box-shadow:0 0 12px #d2b455}.portal-hero h1{font:400 clamp(64px,6.5vw,100px)/.98 Georgia,serif;letter-spacing:.025em;color:#f2ead7;margin:0 0 25px}.portal-hero h1 em{font-style:normal;background:linear-gradient(#f2ddb1,#b28b4a);background-clip:text;-webkit-text-fill-color:transparent}.portal-subtitle{font:400 22px/1.4 Georgia,serif;letter-spacing:.01em;color:#d7c6a4;margin:0 0 21px}.portal-intro{font-size:15px;line-height:1.9;color:#aebcad;margin:0 0 30px}.portal-actions{display:flex;flex-wrap:wrap;gap:12px}.portal-archive-link{display:inline-block;margin-top:23px;color:#b5bba9;font-size:12px;text-decoration:none}.portal-archive-link span{margin-left:15px;color:#d2b778}
.portal-character{position:absolute;right:max(5%,calc((100vw - 1300px)/2));bottom:65px;width:42%;max-width:580px;height:84%;z-index:2;display:flex;align-items:end;justify-content:center}.portal-character:before{content:'';position:absolute;bottom:45px;left:5%;width:90%;height:60%;background:radial-gradient(ellipse,#e0bc5b22,transparent 65%);border-radius:50%;pointer-events:none}.portal-character img{position:relative;display:block;max-height:var(--kella-max-height);height:100%;width:100%;object-fit:var(--kella-crop);object-position:center bottom;transform:translate(var(--kella-x),var(--kella-y)) scale(var(--kella-scale));filter:drop-shadow(0 20px 20px #02090699)}.portal-character-label{position:absolute;bottom:5px;right:0;border-left:1px solid #bea56a66;padding:10px 18px;background:linear-gradient(90deg,#101914e6,#10191400)}.portal-character-label span{display:block;letter-spacing:.2em;font-size:8px;color:#b8ac88}.portal-character-label strong{display:block;font:italic 30px Georgia,serif;color:#e7d5ad}.portal-character-label small{font-size:10px;color:#b9bead}.portal-hero-foot{position:absolute;bottom:20px;left:max(32px,calc((100vw - 1240px)/2));right:max(32px,calc((100vw - 1240px)/2));display:flex;justify-content:space-between;color:#889887;font-size:9px;letter-spacing:.17em;z-index:4}.portal-hero-foot b{color:#b9a06a;padding:0 14px}.portal-hero-foot a{color:#b8bda7;text-decoration:none;font-size:10px;letter-spacing:.04em}
.portal-coins{position:absolute;inset:0;overflow:hidden;pointer-events:none;z-index:3}.portal-coin{position:absolute;left:var(--x);top:var(--y);width:var(--size);height:var(--size);border-radius:50%;display:grid;place-items:center;background:conic-gradient(from 25deg,#92652a,#f5d68d,#b4883c,#775021,#ebca7c,#fbe7b0,#9c7030);border:2px solid #d5b46b;box-shadow:inset 0 0 0 2px #79571f,inset 0 0 0 4px #eed08a,2px 3px 0 #6c4f27,0 7px 18px #070d0a88;animation:portal-drift var(--duration) ease-in-out var(--delay) infinite alternate;opacity:.7}.portal-coin span{font:normal calc(var(--size)*.54) Georgia,serif;color:#ad8037;text-shadow:1px 1px #f8dfa0,-1px -1px #795522}.portal-coin:nth-child(3n){opacity:.27;filter:blur(.6px);z-index:-1}.portal-coin:nth-child(5n){filter:blur(1.2px);opacity:.55}.portal-coin:nth-child(even){animation-direction:alternate-reverse}@keyframes portal-drift{from{transform:translate3d(-5px,12px,0) rotate(-18deg) rotateY(-24deg)}to{transform:translate3d(10px,-18px,0) rotate(28deg) rotateY(35deg)}}.motion-paused .portal-coin{animation-play-state:paused}
.portal-body{max-width:1240px;margin:0 auto;padding:0 32px}.portal-current{position:relative;margin-top:0;padding:28px 180px 28px 28px;border:1px solid #b598583d;border-top:0;background:linear-gradient(110deg,#262c21,#191f1a);border-radius:0 0 6px 6px}.portal-current .portal-eyebrow{margin-bottom:6px;font-size:9px}.portal-current h2{font:400 23px Georgia,serif;margin:0 0 6px;color:#e4d8bf}.portal-current p{font-size:12px;color:#aab29c;margin:0}.portal-current>a{position:absolute;right:30px;top:50%;transform:translateY(-50%);font-size:12px;color:#d0b77d}.portal-section{padding:70px 0 0;scroll-margin-top:100px}.portal-section-heading{display:flex;align-items:end;justify-content:space-between;margin-bottom:26px;gap:20px}.portal-section-heading .portal-eyebrow{margin:0 0 9px;font-size:9px}.portal-section-heading h2,.portal-participation h2{font:400 34px/1.2 Georgia,serif;margin:0;color:#e4d9c3}.portal-section-heading>span,.portal-section-heading>a{font-size:12px;color:#a9af9c}.portal-features{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.portal-feature{position:relative;display:flex;flex-direction:column;align-items:start;min-height:224px;padding:24px;background:linear-gradient(130deg,#222922,#181d1b);border:1px solid #ab8b4b35;border-radius:5px;text-decoration:none;transition:transform .25s,border-color .25s,box-shadow .25s}.portal-feature:hover{transform:translateY(-5px);border-color:#c7a56688;box-shadow:0 12px 24px #0004}.portal-feature img{width:58px;height:58px;object-fit:contain;filter:drop-shadow(0 6px 5px #0006);margin:0 0 22px}.portal-feature strong{font:400 19px/1.3 Georgia,serif;color:#e4d4b4}.portal-feature p{font-size:12px;line-height:1.65;color:#a4af9d;margin:9px 0 0;padding-right:8px}.portal-feature-number{position:absolute;top:20px;right:22px;font:italic 16px Georgia,serif;color:#aa936a55}.portal-feature-arrow{position:absolute;right:20px;bottom:18px;color:#ba9e65;font-size:14px}.portal-chronicle{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}.portal-story{display:block;border-top:1px solid #ac935144;padding:23px 0;text-decoration:none}.portal-story time{font-size:10px;color:#b4a176;letter-spacing:.04em}.portal-story h3{font:400 23px/1.35 Georgia,serif;color:#ddd1b9;margin:14px 0 10px}.portal-story p{color:#a3ac9b;font-size:13px;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.portal-story>span{font-size:11px;color:#c6af7e}.portal-empty{grid-column:1/-1;padding:28px;border:1px solid #aa8d4933;color:#a8b29e;font-size:14px}.portal-community{display:grid;grid-template-columns:1.2fr 1fr;gap:60px;padding-bottom:80px}.portal-participation{padding-top:35px}.portal-participation>p:not(.portal-eyebrow){color:#a5af9c;font-size:14px;line-height:1.8;max-width:35ch;margin:22px 0}.portal-polls article{border-top:1px solid #aa8d4933;margin-top:24px;padding-top:20px}.portal-polls .portal-eyebrow{font-size:8px;margin-bottom:10px}.portal-polls h3{font:400 20px Georgia,serif}.portal-polls a{font-size:12px}.portal-footer{display:flex;align-items:center;gap:15px;padding:30px 0;border-top:1px solid #aa8d4933}.portal-footer strong{font:400 12px Georgia,serif;letter-spacing:.12em;color:#d8c294}.portal-footer p{font-size:11px;margin:2px 0;color:#899880}.portal-footer>a{margin-left:auto;font-size:12px}
.portal-home .showcase-board{position:relative;inset:auto;width:100%;height:auto;min-height:580px;border:1px solid #aa8d4944;background:linear-gradient(145deg,#242d23,#181e1a);padding:26px;border-radius:6px;box-shadow:none;color:#e0d2b3}.portal-home .showcase-board header{text-align:left;position:relative;padding-bottom:15px;border-bottom:1px solid #aa8d4933}.portal-home .showcase-board header>span{font-size:8px;color:#aa9c77}.portal-home .showcase-board h2{font:400 29px Georgia,serif;color:#e7d6b5;margin:10px 0 20px}.portal-home .showcase-board label{color:#a9b399;justify-content:start;font-size:11px}.portal-home .showcase-board select{color:#e2d2b1;background:#151e17;border-color:#8b784d77;font-size:12px;min-height:36px}.portal-home .showcase-players{gap:5px;grid-template-rows:none}.portal-home .showcase-player{padding:12px 9px;gap:16px;border-color:#aa8d4922;background:transparent}.portal-home .champion-info strong{font:500 13px 'Segoe UI',sans-serif;color:#dddcc7}.portal-home .champion-info small{font-size:10px;color:#9ea992}.portal-home .champion-rank{color:#a39169;font-size:13px}.portal-home .showcase-player.gold{background:linear-gradient(90deg,#bd923320,transparent)}.portal-home .showcase-player.silver{background:linear-gradient(90deg,#adbac215,transparent)}.portal-home .showcase-player.bronze{background:linear-gradient(90deg,#b17d3d17,transparent)}.portal-home .champion-score{color:#d6c9a8}.portal-live:empty{display:none}.portal-live{display:flex;justify-content:center;gap:60px;margin-top:40px;padding:25px;border-block:1px solid #aa8d4933}.portal-live strong{display:block;font:400 30px Georgia,serif;color:#dccba4}.portal-live span{font-size:10px;letter-spacing:.1em;color:#929f89}
@media(max-width:1150px){body .shell>.sidebar,body:not([data-route=home]) .shell>.sidebar,body[data-route=home] .shell>.sidebar{gap:14px;padding:12px 20px}body .sidebar nav a,body:not([data-route=home]) .sidebar nav a{padding:10px 8px;font-size:11px}body .sidebar .server-clock{display:none}.portal-hero{min-height:640px}.portal-features{grid-template-columns:repeat(3,minmax(0,1fr))}.portal-character{right:1%;width:46%}.portal-coin:nth-child(n+11){display:none}}
@media(max-width:900px){body .shell>.sidebar,body:not([data-route=home]) .shell>.sidebar,body[data-route=home] .shell>.sidebar{min-height:68px;padding:10px 16px;gap:12px}body .sidebar .brand{flex:1;min-width:0}body .sidebar .brand-logo{width:34px;height:34px}body .brand strong,body:not([data-route=home]) .brand strong{font-size:10px}body .brand span,body:not([data-route=home]) .brand span{font-size:9px}body .mobile-nav-toggle,body:not([data-route=home]) .mobile-nav-toggle{display:block!important;order:3;min-width:42px;height:42px;padding:0;background:#222b23;color:#dfca9e;border:1px solid #aa8d4955;border-radius:3px}body .sidebar nav,body:not([data-route=home]) .sidebar nav{display:none;position:absolute;top:100%;left:0;right:0;padding:16px;background:#18221c;max-height:75dvh;overflow:auto;border-bottom:1px solid #aa8d4955}body.mobile-nav-open .sidebar nav,body.mobile-nav-open:not([data-route=home]) .sidebar nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}body .sidebar nav a,body:not([data-route=home]) .sidebar nav a{font-size:14px;min-height:46px}body .sidebar .top-actions{margin:0;gap:0}body .sidebar .account-menu summary{padding:9px 10px;font-size:11px}body .content,body:not([data-route=home]) .content{width:calc(100% - 32px);padding:25px 0 50px}body[data-route=home] .content{width:100%;padding:0}body .mobile-nav-backdrop{z-index:90}.portal-hero{min-height:640px;height:74svh;padding:65px 32px}.portal-hero h1{font-size:68px}.portal-character{width:46%;height:70%;bottom:64px;right:0}.portal-hero-copy{width:60%}.portal-subtitle{font-size:19px}.portal-intro{font-size:13px}.portal-character-label{right:10px;bottom:0}.portal-character-label small{display:none}.portal-features{grid-template-columns:repeat(2,minmax(0,1fr))}.portal-community{gap:26px;grid-template-columns:1.1fr 1fr}.portal-body{padding:0 24px}.portal-chronicle{gap:18px}.portal-feature{padding:22px}.portal-section-heading h2{font-size:29px}}
@media(max-width:600px){.portal-hero{height:auto;min-height:890px;padding:45px 24px 450px;display:block}.portal-hero-copy{width:100%;max-width:none}.portal-hero h1{font-size:65px;line-height:1.01;margin-bottom:18px}.portal-eyebrow{font-size:8px;margin-bottom:23px;letter-spacing:.17em}.portal-subtitle{font-size:20px;margin-bottom:14px}.portal-intro{font-size:13px;line-height:1.7;margin-bottom:22px}.portal-actions{gap:9px}.portal-actions .primary,.portal-actions .secondary{font-size:11px;padding:11px 13px;gap:12px}.portal-archive-link{font-size:11px;margin-top:17px}.portal-character{height:420px;max-width:340px;width:86%;right:5%;bottom:46px}.portal-character img{max-height:420px}.portal-character-label{right:-4px;bottom:9px}.portal-character-label strong{font-size:25px}.portal-scenery{background:linear-gradient(180deg,#14201fea,#1a2d20aa 45%,#13231a55 65%,#101514),url('/assets/castle-scenery.png') 42% center/auto 100% no-repeat}.portal-hero-foot{left:24px;right:24px;bottom:15px;font-size:7px;letter-spacing:.1em}.portal-hero-foot a{font-size:8px}.portal-coin:nth-child(n+7){display:none}.portal-coin{top:calc(50% + var(--y)/2);width:calc(var(--size)*.7);height:calc(var(--size)*.7);opacity:.6}.portal-coin span{font-size:18px}.portal-body{padding:0 20px}.portal-current{padding:24px 20px}.portal-current h2{font-size:22px}.portal-current>a{position:static;display:inline-block;transform:none;margin-top:15px}.portal-section{padding-top:45px}.portal-section-heading{gap:10px;margin-bottom:20px;align-items:start}.portal-section-heading h2{font-size:27px}.portal-section-heading>span{display:none}.portal-section-heading>a{font-size:10px;white-space:nowrap;margin-top:28px}.portal-features{gap:10px}.portal-feature{padding:18px 15px;min-height:206px}.portal-feature img{width:48px;height:48px;margin-bottom:20px}.portal-feature strong{font-size:17px}.portal-feature p{font-size:11px;padding:0 0 14px}.portal-feature-number{font-size:12px;right:14px;top:16px}.portal-feature-arrow{right:13px;bottom:12px}.portal-chronicle,.portal-community{grid-template-columns:1fr;gap:12px}.portal-story{padding:22px 0}.portal-story h3{font-size:22px}.portal-home .showcase-board{padding:22px 16px;min-height:0;margin:0}.portal-home .showcase-board h2{font-size:26px}.portal-participation{padding:30px 0}.portal-participation h2{font-size:28px}.portal-community{padding-bottom:25px}.portal-footer{gap:10px}.portal-footer img{width:32px;height:32px}.portal-footer strong{font-size:10px}.portal-footer p{font-size:9px}.portal-footer>a{font-size:10px}.portal-live{gap:25px;padding-inline:0}.portal-live strong{font-size:23px}.portal-live span{font-size:8px}body .lord-research-tree-scroll{min-height:420px;height:60vh}body .lord-research-hint{display:none}}
body .wiki-card>div:first-child>p{color:#aeb6a4;font-weight:400}body .wiki-search-count{color:#bda675}body .wiki-card .wiki-tag{background:#383d29;color:#dcc590;border-color:#a98c5355}
.migration-export{display:flex;align-items:center;flex-wrap:wrap;gap:14px;margin:0 0 22px}.migration-export span{font-size:13px;color:#adb69f}.migration-export a{text-decoration:none;padding:10px 16px}
body #migration-form :is(label,summary){color:#cdd4bd!important}body #migration-form :is(input,textarea,select){background:#121b16!important;color:#e4dbc6!important;border-color:#aa8d4966!important}body #migration-form .migration-section{background:linear-gradient(120deg,#222c22,#1a221b)!important;color:#d5d9c5!important;border-color:#a98c5344!important}body .migration-table th,body .migration-table td:first-child{background:#263025!important;color:#dbcfad!important}body .migration-table .selected td{background:#3a4229!important;color:#f0dfb7!important}
@media(max-width:600px){.migration-export{align-items:stretch;flex-direction:column}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.portal-coin{animation:none}.portal-feature{transition:none}.portal-feature:hover{transform:none}}
body .sidebar .brand-logo{background:transparent}.ambient-paused .portal-coin{animation-play-state:paused}
.portal-character img.is-animated{position:absolute;bottom:0;width:145%;height:160%;max-height:none;max-width:none;object-fit:contain}.portal-hero{overflow:hidden}
/* Indigo atmosphere, with coins in place of the reference's particle field. */
body,body:not([data-route=home]){--bg:#11121f;--panel:#1c1e29;--panel-2:#252734;background:radial-gradient(ellipse at 18% 15%,#30254366,transparent 52%),radial-gradient(ellipse at 90% 60%,#19283c77,transparent 60%),#11121f}
body .shell{position:relative;z-index:1}.realm-coins{position:fixed;inset:0;pointer-events:none;overflow:hidden;z-index:0}.realm-coins .portal-coin{opacity:.25}.realm-coins .portal-coin:nth-child(3n){opacity:.12}body[data-route=home] .realm-coins{display:none}
body .shell>.sidebar,body:not([data-route=home]) .shell>.sidebar,body[data-route=home] .shell>.sidebar{background:linear-gradient(115deg,#191526f5,#111724f5);min-height:86px;padding-block:4px}
body .sidebar .brand{gap:4px;text-decoration:none;min-width:190px}body .sidebar .brand picture{display:block;width:62px;height:78px;flex-shrink:0}body .sidebar .brand-logo{width:62px;height:78px;object-fit:contain;filter:drop-shadow(0 2px 7px #d1a84a33)}.kella-wordmark{display:block;font:italic 700 31px/.98 Georgia,serif;letter-spacing:-.04em;background:linear-gradient(#ffefbf,#ba914c);background-clip:text;-webkit-text-fill-color:transparent;transform:rotate(-5deg);padding-bottom:5px}body .sidebar .brand strong{display:block;font-size:8px;letter-spacing:.16em}body .sidebar .brand span{font-size:8px;letter-spacing:.05em}
.portal-home{background:radial-gradient(ellipse at 20% 60%,#30274244,transparent 45%),#11121f}.portal-hero{background:#11121f}.portal-scenery{background:linear-gradient(90deg,#11121fed 2%,#15172bcb 35%,#191c3366 70%,#18172f99),linear-gradient(0deg,#11121f,transparent 48%,#16132699),url('/assets/castle-scenery.png') center 36%/cover no-repeat;filter:saturate(.5)}
.portal-current{background:linear-gradient(110deg,#2a2831,#1d1f2b)}.portal-feature{background:linear-gradient(130deg,#252632,#1a1d28)}.portal-home .showcase-board{background:linear-gradient(145deg,#252632,#1a1d28)}
body :is(.card,.table-wrap,.wiki-card,.calendar-detail-card,.attendance-summary-card,.attendance-group,.training-summary,.training-resource,.profile-stat,.stat,.wiki-inspector,.officer-tool,.event-agenda-row,.lord-tool-card,.lord-speedup-card,.lord-catalog-card,.lord-calc-card,.lord-pair-card,.lord-building-card,.training-calculator-card){background:linear-gradient(135deg,#232530,#191c27)}
body #migration-form .migration-section{background:linear-gradient(120deg,#252632,#1b1e2a)!important}
.portal-home{background:transparent}body[data-route=home] .realm-coins{display:block}
/* User-supplied coin sprite and corrected, undistorted header portrait. */
body .portal-coin{background:url('/assets/gold-coin.png') center/contain no-repeat;border:0;box-shadow:none;border-radius:0;filter:drop-shadow(0 2px 3px #0005)}.portal-coin>span{display:none}
.header-coins{position:absolute;inset:0;overflow:hidden;pointer-events:none;z-index:0}.header-coins .portal-coin{animation-name:header-coin-bounce;opacity:.55}.sidebar>.brand,.sidebar>nav,.sidebar>.top-actions,.sidebar>.mobile-nav-toggle{position:relative;z-index:2}.header-coins+.brand{background:#151724b3;border-radius:8px}.sidebar>nav a,.sidebar>.top-actions{background-color:#141723b8}
@keyframes header-coin-bounce{0%,100%{transform:translate3d(-9px,-8px,0) rotate(-25deg)}50%{transform:translate3d(14px,31px,0) rotate(160deg)}}
body .sidebar .brand picture,body .sidebar .brand-logo{width:72px;height:72px;object-fit:contain;background:transparent}body .sidebar .brand{min-width:196px}.portal-character{width:29%;max-width:370px;height:65%;right:9%;bottom:70px}.portal-character img.is-animated{width:125%;height:140%;max-height:none}.portal-character-label{right:-18px}.portal-hero h1{font-size:clamp(66px,8vw,112px)}
.alliance-calendar{padding:26px!important}.alliance-calendar .card-header{align-items:center!important;flex-direction:row!important;margin-bottom:28px;gap:14px}.alliance-calendar .portal-eyebrow{margin:0 0 5px;font-size:9px}.alliance-calendar .card-header h3{font:400 27px Georgia,serif;margin:0}.calendar-controls{display:flex;gap:7px}.calendar-controls button{min-height:42px;min-width:42px;padding:7px 14px;background:#292c3b;color:#e0c995;border:1px solid #ba9b5b55;border-radius:5px}.calendar-controls button:hover{background:#b5985233}.alliance-calendar .calendar-grid{background:#b598522c;gap:1px;border:1px solid #b5985244;border-radius:8px}.alliance-calendar .calendar-day{background:#1b1e2b!important;min-height:112px!important;padding:12px!important;align-items:stretch}.alliance-calendar .calendar-day:hover{background:#272b3c!important}.alliance-calendar .calendar-day.today{background:#38342c!important;outline:1px solid #d7b96f;outline-offset:-2px}.alliance-calendar .calendar-day-number{font:500 14px 'Segoe UI',sans-serif!important}.alliance-calendar .calendar-offset{background:#141825}.alliance-calendar .calendar-entry{background:#aa874a25;color:#ebd6a7;border-left:2px solid #d5b56a;padding:6px;font-size:12px}.alliance-calendar .calendar-entry small{font-size:10px;color:#bdbbae}.alliance-calendar .calendar-weekdays{font-size:10px;letter-spacing:.1em;padding-bottom:10px;color:#aaa99e}.calendar-hint{font-size:11px;color:#a9acb5;margin:16px 0 0}.calendar-agenda{margin-top:30px}.calendar-agenda .portal-section-heading h2{font:400 24px Georgia,serif;margin:0}.calendar-agenda-item{display:flex;align-items:center;gap:22px;margin-bottom:12px;padding:18px 22px;border:1px solid #aa8a4b44;border-radius:7px;background:#202330;text-decoration:none}.calendar-agenda-item time{flex-shrink:0;min-width:74px;text-align:center;color:#b9b6a6;font-size:10px;border-right:1px solid #aa8a4b44;padding-right:20px}.calendar-agenda-item time strong{display:block;color:#e1c997;font:400 30px Georgia,serif}.calendar-agenda-item h3{font:400 21px Georgia,serif;margin:0 0 5px;color:#e4d4b4}.calendar-agenda-item div>span{font-size:12px;color:#aeb0ae}.calendar-agenda-item>span{margin-left:auto;color:#bea773}
@media(max-width:900px){body .sidebar .brand{min-width:0}body .sidebar .brand picture,body .sidebar .brand-logo{width:58px;height:58px}.header-coins .portal-coin:nth-child(n+19){display:none}.portal-character{width:37%;right:3%}}
@media(max-width:600px){.portal-character{width:64%;height:310px;right:15%;bottom:54px}.portal-character img.is-animated{width:125%;height:140%}.portal-hero{min-height:790px;padding-bottom:330px}.portal-character-label{right:-25px}.portal-character-label span{font-size:7px}.portal-hero h1{font-size:65px}.header-coins .portal-coin:nth-child(n+15){display:none}.header-coins .portal-coin{top:var(--y);width:var(--size);height:var(--size);opacity:.45}.alliance-calendar{padding:15px 10px!important}.alliance-calendar .card-header{gap:12px;margin-bottom:18px}.alliance-calendar .card-header h3{font-size:21px}.calendar-controls{gap:4px}.calendar-controls button{padding:5px 8px;min-width:34px;min-height:40px;font-size:12px}.alliance-calendar .calendar-day{min-height:60px!important;padding:7px 3px!important}.alliance-calendar .calendar-day-number{font-size:12px!important}.alliance-calendar .calendar-entry{display:block;width:7px;height:7px;min-width:7px;min-height:7px;padding:0;border:0;border-radius:50%;background:#dfb959;font-size:0}.alliance-calendar .calendar-entry small{display:none}.alliance-calendar .calendar-day-list{justify-content:center;flex-wrap:wrap}.alliance-calendar .calendar-weekdays{font-size:8px;letter-spacing:0}.calendar-agenda-item{gap:12px;padding:15px 12px}.calendar-agenda-item time{min-width:60px;padding-right:10px}.calendar-agenda-item h3{font-size:18px}.calendar-agenda-item div>span{font-size:10px}}
@media(prefers-reduced-motion:reduce){.header-coins .portal-coin{animation:none}}
body .alliance-calendar .calendar-hint{color:#aeb1be;font-weight:400}body .alliance-calendar .calendar-entry>span{color:#ecd6a4}body .alliance-calendar .calendar-entry{display:flex;flex-direction:column;align-items:stretch;gap:4px;white-space:normal}body .alliance-calendar .calendar-entry>span{font-size:12px;line-height:1.35}body .alliance-calendar .calendar-entry small{white-space:normal;line-height:1.3}
@media(max-width:600px){body .alliance-calendar .calendar-entry>span{display:none}body .alliance-calendar .calendar-entry{display:block}}
body .profile-hub-nav{background:#232633;border-color:#aa8a4b44}body .profile-hub-nav button{background:#1b1e29;color:#d4c8ab;border-color:#aa8a4b44;border-radius:3px}body .profile-hub-nav button.active{background:#b99b5933;color:#f0d494;border-color:#b99b59;box-shadow:none}body .profile-season-card{background:linear-gradient(140deg,#282b39,#1d2330);border-color:#a68d5344;box-shadow:none}body .profile-season-card :is(p,small){color:#acb5b9}body .profile-season-card h4{color:#e0d1b4;text-shadow:none}body .profile-graph-toggle{background:#343640;color:#e3d1ac;border-color:#af935566;box-shadow:none}body .radar-label{fill:#c8d0cd}body .radar-value{fill:#dabb75}body .card>p.muted,body[data-route=profile] .card p{color:#b0b6aa}body .profile-radar-date-select-shell span{color:#b6bcae}
@media(max-width:900px){body .sidebar .brand{min-width:0}body .sidebar .brand picture,body .sidebar .brand-logo{width:48px;height:66px}.kella-wordmark{font-size:27px}body .sidebar .brand strong{font-size:7px}body .sidebar .brand span{display:none!important}.realm-coins .portal-coin:nth-child(n+11){display:none}}
@media(max-width:600px){body .sidebar .server-clock{display:none!important}.portal-character img.is-animated{height:160%;max-height:none}.realm-coins .portal-coin:nth-child(n+7){display:none}.portal-scenery{background:linear-gradient(180deg,#16162aeb,#202541ad 45%,#1b233455 65%,#11121f),url('/assets/castle-scenery.png') 42% center/auto 100% no-repeat}}

/* Dense sprite field stays behind interactive header controls. */
canvas.header-coins{display:block;width:100%;height:100%;opacity:.8;background:radial-gradient(ellipse at 60% 0%,#73552524,transparent 70%)}

/* Softer header sparkle and wider, bouncing coin paths in the main scenery. */
canvas.header-coins{opacity:.32}
body :is(.realm-coins,.portal-coins) .portal-coin{
  animation-name:realm-coin-bounce;animation-timing-function:linear;
  animation-duration:calc(var(--duration) * 1.7);opacity:.32;
  --bounce-x:55px;--bounce-y:75px;
}
body :is(.realm-coins,.portal-coins) .portal-coin:nth-child(3n){opacity:.18}
body :is(.realm-coins,.portal-coins) .portal-coin:nth-child(even){animation-direction:reverse}
@keyframes realm-coin-bounce{
  0%,100%{transform:translate3d(0,0,0) rotate(-15deg)}
  25%{transform:translate3d(var(--bounce-x),calc(-1 * var(--bounce-y)),0) rotate(70deg)}
  50%{transform:translate3d(calc(-1 * var(--bounce-x)),calc(-.3 * var(--bounce-y)),0) rotate(150deg)}
  75%{transform:translate3d(calc(.5 * var(--bounce-x)),var(--bounce-y),0) rotate(250deg)}
}
@media(max-width:600px){body :is(.realm-coins,.portal-coins) .portal-coin{--bounce-x:28px;--bounce-y:42px;opacity:.25}}
@media(prefers-reduced-motion:reduce){body :is(.realm-coins,.portal-coins) .portal-coin{animation:none}}

/* Home calendar, with an independent character column on wide screens. */
.portal-hero{display:grid;grid-template-columns:minmax(260px,1fr) minmax(300px,420px) 220px;gap:32px;padding:60px max(28px,calc((100vw - 1440px)/2));height:auto;min-height:680px;max-height:none}
.portal-hero-copy{width:auto;max-width:430px}.hero-calendar{position:relative;z-index:4;padding:24px;background:#171b2ce8;border:1px solid #b79a5755;border-radius:12px;box-shadow:0 16px 45px #080b1844}
.hero-calendar header{display:flex;align-items:center;justify-content:space-between;gap:10px}.hero-calendar .portal-eyebrow{font-size:8px;margin:0 0 5px}.hero-calendar h2{font:24px Georgia,serif;margin:0;color:#e8d4a9}.hero-calendar button{background:#b59a5915;border:1px solid #b59a5944;border-radius:5px;color:#ddc797;width:30px;height:32px;padding:0;margin-left:4px;font-size:20px}.mini-week,.mini-days{display:grid;grid-template-columns:repeat(7,1fr);text-align:center;gap:4px}.mini-week{margin:22px 0 8px;font-size:10px;color:#9da6b9}.mini-days a{position:relative;display:grid;place-items:center;min-height:35px;text-decoration:none;border-radius:5px;color:#d0d5df;font-size:12px}.mini-days a:hover{background:#c4a76522}.mini-days .today{outline:1px solid #c4a765;color:#f0d490;background:#c4a76515}.mini-days i,.hero-calendar footer i{width:4px;height:4px;border-radius:50%;background:#eac26b}.mini-days i{position:absolute;bottom:3px}.hero-calendar footer{display:flex;justify-content:space-between;margin-top:20px;font-size:10px;color:#a4abba}.hero-calendar footer i{display:inline-block;margin-right:5px}.hero-calendar footer a{color:#d7bd83}
.portal-character{position:relative;right:auto;bottom:auto;align-self:end;width:220px;height:400px;max-width:none;margin-bottom:20px;z-index:2}.portal-character img.is-animated{width:125%;height:140%;max-height:none}.portal-character-label{right:0;bottom:0}.portal-character-label strong{font-size:23px}
@media(max-width:1150px){.portal-hero{grid-template-columns:1fr 1fr;gap:28px;padding:60px 28px 200px}.portal-character{position:absolute;width:155px;height:230px;right:7%;bottom:15px;margin:0}.portal-character-label{display:none}.hero-calendar{padding:20px}.portal-hero h1{font-size:76px}}
@media(max-width:650px){.portal-hero{display:flex;flex-direction:column;align-items:stretch;padding:42px 22px 230px;gap:28px;min-height:0}.portal-hero-copy{width:100%;max-width:none}.portal-hero h1{font-size:64px}.hero-calendar{width:100%;box-sizing:border-box;padding:18px}.hero-calendar h2{font-size:23px}.mini-days a{min-height:33px}.portal-character{width:150px;height:240px;right:calc(50% - 75px);bottom:25px}.portal-character img.is-animated{width:125%;height:140%}.portal-hero-foot{bottom:12px}}

.mobile-feedback{display:none}@media(max-width:900px){body .mobile-feedback{display:flex;align-items:center;gap:7px;position:fixed;right:14px;bottom:calc(14px + env(safe-area-inset-bottom));z-index:40;min-height:44px;padding:0 13px;border:1px solid #c7a45b;border-radius:24px;background:#232639;color:#ead19b;box-shadow:0 3px 15px #0006;text-decoration:none;font-size:12px}body .account-panel .feedback-top-button span{display:block}body .account-panel{max-width:calc(100vw - 28px)}}

/* Small creator companion, separate from the Account menu. */
body [data-action="discord-login"] svg{color:#5865f2;fill:#5865f2}
.creator-companion{position:fixed;right:14px;bottom:calc(12px + env(safe-area-inset-bottom));z-index:40;display:block;width:72px;height:128px;text-decoration:none;filter:drop-shadow(0 3px 5px #0006)}
.creator-companion picture,.creator-companion img{display:block;width:100%;height:100%;object-fit:contain}
.creator-bubble{position:absolute;right:64px;top:18px;white-space:nowrap;padding:7px 10px;border:1px solid #ac9158;border-radius:12px;background:#212535;color:#ead5a8;font:11px/1.2 'Segoe UI',sans-serif;animation:creator-bubble-float 4s ease-in-out infinite}
.creator-bubble:after{content:'';position:absolute;right:-5px;bottom:9px;width:8px;height:8px;background:#212535;border-right:1px solid #ac9158;border-top:1px solid #ac9158;transform:rotate(45deg)}
.creator-companion:hover .creator-bubble{background:#303348}.creator-companion:focus-visible{outline:2px solid #e9c374;outline-offset:4px}
@keyframes creator-bubble-float{0%,100%{transform:translateY(0)}50%{transform:translateY(-4px)}}
@media(max-width:900px){body .account-panel .feedback-top-button{display:flex!important;width:100%;justify-content:flex-start;gap:10px;min-height:44px}body .account-panel .feedback-top-button span{display:block!important}body .account-panel .feedback-top-button em{display:none}body .account-panel .feedback-top-button strong{display:block!important}}
@media(max-width:600px){.creator-companion{width:54px;height:96px;right:8px;bottom:calc(8px + env(safe-area-inset-bottom))}.creator-bubble{right:49px;top:9px;font-size:10px;padding:6px 8px}}
@media(prefers-reduced-motion:reduce){.creator-bubble{animation:none}}

.response-controls{display:flex;gap:16px;align-items:end;margin-bottom:18px;flex-wrap:wrap}.response-controls label{flex:1;min-width:180px}.response-controls select{width:100%;min-height:44px}.response-summary{margin-bottom:18px}.response-summary h3{white-space:pre-wrap;overflow-wrap:anywhere}.response-groups{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:18px}.response-groups ul{list-style:none;padding:0;margin:0}.response-groups li{display:flex;flex-direction:column;gap:4px;padding:12px 0;border-bottom:1px solid #ad945433;overflow-wrap:anywhere}.response-groups small{opacity:.65;font-size:11px}@media(max-width:600px){.response-controls{display:grid;grid-template-columns:1fr}.response-groups{grid-template-columns:1fr}}
