:root {
	--ink: #2d2119;
	--muted: #67523f;
	--gold: #e4c58a;
	--bronze: #967143;
	--wine: #742b22;
	--serif: Georgia, 'Times New Roman', serif;
	--sans: system-ui, sans-serif;
	--paper-surface: var(--paper-grain, url('../images/grain.svg')), radial-gradient(ellipse at 55% 18%, #fff4d8, #eddbb8 80%, #e8d0a5);
	--frame-shadow: 0 6px 20px #07050355;
}

*, *::before, *::after { box-sizing: border-box; }
html { scrollbar-gutter: stable; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--paper-grain, url('../images/grain.svg')), radial-gradient(ellipse at 50% 0, #513227, transparent 57%), linear-gradient(#201916, #141411 65%); color: var(--ink); font: .94rem/1.6 var(--sans); }
main { flex: 1; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; font-family: var(--serif); line-height: 1.16; }
p { margin: 0; }
:focus-visible { outline: 2px solid #9a4b28; outline-offset: 3px; }
.portal:focus-visible { outline: none; }
.site-header :focus-visible, .site-footer :focus-visible, .hero-lightbox :focus-visible { outline-color: #ffe1a3; }
.wrap { width: min(1340px, calc(100% - 48px)); margin-inline: auto; }
.skip { position: fixed; z-index: 10; top: 12px; left: 12px; padding: 8px 16px; transform: translateY(-150%); background: var(--gold); color: var(--ink); }
.skip:focus { transform: translateY(0); }
.icon { flex: none; width: 1.15rem; height: 1.15rem; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
.diamond { flex: none; display: inline-block; width: .42rem; height: .42rem; transform: rotate(45deg); background: currentColor; }
.eyebrow { display: flex; align-items: center; gap: .55rem; color: var(--wine); font-size: .69rem; font-weight: 750; letter-spacing: .16em; text-transform: uppercase; }

.site-header { padding-top: 10px; background: linear-gradient(#281916, #28191600); }
.masthead { position: relative; isolation: isolate; display: grid; place-items: center; width: 100%; min-width: 100%; aspect-ratio: 1714 / 476; max-height: calc(1160px * 476 / 1714); padding: 1rem; border: 1px solid #a68047; border-bottom: 0; background: linear-gradient(0deg, #1d100c91, transparent 42%), #241610 var(--banner-desktop, url('../images/banner.jpg')) center / 100% 100% no-repeat; box-shadow: var(--frame-shadow); }
.masthead::before, .masthead::after { position: absolute; z-index: -1; top: 6px; width: clamp(40px, 7vw, 84px); aspect-ratio: 1; background: var(--ornament-corner, url('../images/corner.svg')) center / contain no-repeat; content: ''; pointer-events: none; }
.masthead::before { left: 6px; }
.masthead::after { right: 6px; transform: scaleX(-1); }
.wordmark { display: grid; justify-items: center; width: fit-content; padding: .65rem 1.5rem 1rem; color: #f5d38e; text-align: center; text-transform: uppercase; filter: drop-shadow(0 2px 2px #100b07) drop-shadow(0 8px 14px #0b100e); }
.wordmark strong { color: #f7d89b; font: 700 clamp(3.2rem, 7.4vw, 7.05rem)/.83 var(--serif); letter-spacing: -.045em; text-shadow: 0 1px #fff1c3, 0 3px #82502b, 0 6px #291511; }
.wordmark > span { display: flex; align-items: center; gap: .6rem; margin-top: .85rem; padding-left: .36em; color: #ffdf9e; font: 700 clamp(.85rem, 1.8vw, 1.35rem)/1 var(--serif); letter-spacing: .36em; }
.wordmark > span::before, .wordmark > span::after { width: clamp(18px, 4.2vw, 53px); height: 1px; background: linear-gradient(90deg, #e8c07a00, #e8c07a); content: ''; }
.wordmark > span::after { transform: scaleX(-1); }
.wordmark:is(:hover, :focus-visible) { filter: drop-shadow(0 2px 2px #100b07) drop-shadow(0 8px 14px #0b100e) drop-shadow(0 0 12px #d9ad5b4d); }
.wordmark:is(:hover, :focus-visible) strong { color: #fff0c7; text-shadow: 0 1px #fff7dc, 0 3px #9e693b, 0 6px #291511, 0 0 20px #e8bc6866; }
.wordmark:is(:hover, :focus-visible) > span { color: #ffedbd; text-shadow: 0 0 10px #e8bc6859; }
.main-nav { position: relative; z-index: 2; display: flex; align-items: stretch; min-height: 53px; border: 1px solid #a67c46; border-bottom-color: #674a2f; background: linear-gradient(#6f2d23, #461e19 68%, #331713); box-shadow: inset 0 1px #efd8a536, var(--frame-shadow); color: #f3e3c6; font: 700 .98rem/1.2 var(--serif); }
.main-nav > a, .nav-rankings-toggle { display: flex; justify-content: center; align-items: center; gap: .45rem; flex: 1; padding: .75rem .5rem; border-right: 1px solid #9d704b59; text-align: center; }
.main-nav > a:is(:hover, [aria-current]), .nav-rankings-toggle:is(:hover, [aria-expanded='true'], .is-current) { background: linear-gradient(#95513a, #57271d); color: #ffdea2; }
.main-nav > a:is(:hover, [aria-current]) { box-shadow: inset 0 -2px #d5a460; }
.nav-rankings { position: relative; z-index: 1; display: flex; flex: 1; }
.nav-rankings-toggle { width: 100%; border: 0; border-right: 1px solid #9d704b59; background: none; color: inherit; cursor: pointer; }
.nav-rankings-toggle::after { width: .38em; height: .38em; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: translateY(-.12em) rotate(45deg); content: ''; }
.nav-rankings-toggle[aria-expanded='true']::after { transform: translateY(.08em) rotate(225deg); }
.nav-rankings-links { position: absolute; top: calc(100% - 1px); left: 0; min-width: max(100%, 8.25rem); border: 1px solid #8e6546; border-top: 0; border-radius: 0 0 4px 4px; background: linear-gradient(#57271d, #3d1c16); box-shadow: 0 6px 14px #1c0e0b66; text-align: center; opacity: 0; visibility: hidden; pointer-events: none; }
.nav-rankings-toggle[aria-expanded='true'] + .nav-rankings-links { opacity: 1; visibility: visible; pointer-events: auto; }
.nav-rankings-links a { display: block; padding: .65rem .8rem; }
.nav-rankings-links a + a { border-top: 1px solid #9d704b59; }
.nav-rankings-links a:is(:hover, :focus-visible, [aria-current]) { background: #804432; color: #ffdea2; }
.nav-rankings-links a:focus-visible { outline-offset: -3px; }
.main-nav .nav-download { position: relative; flex: 0 1 175px; border-inline-start: 1px solid #9b7b48; color: #f8e7bd; background: linear-gradient(#3e5949, #253b31); }
.main-nav .nav-download:is(:hover, :focus-visible, [aria-current]) { color: #fff1cb; background: linear-gradient(#506d57, #324d3e); box-shadow: inset 0 -2px #9dc58b; }
.main-nav .nav-register { position: relative; flex: 0 1 205px; border-right: 0; color: #2f1d13; background: linear-gradient(#e8c587, #bc8749); }
.main-nav .nav-register:is(:hover, :focus-visible, [aria-current]) { color: #2f1d13; background: linear-gradient(#f7d69a, #d4a465); box-shadow: inset 0 -2px #ffe7a8; }

.portal { --panel-gap: 16px; display: grid; grid-template-columns: minmax(218px, 1fr) minmax(0, 3.3fr) minmax(232px, 1.1fr); grid-template-areas: 'start center community'; gap: var(--panel-gap); align-items: start; padding-block: 22px 42px; }
.portal-side, .portal-center { display: grid; gap: var(--panel-gap); min-width: 0; }
.portal-start { grid-area: start; }
.portal-center { grid-area: center; }
.portal-community { grid-area: community; }
.paper, .side-box { min-width: 0; border: 1px solid var(--bronze); background: var(--paper-surface); box-shadow: inset 0 0 0 3px #a7793f2e, var(--frame-shadow); }
.paper { padding: clamp(1rem, 2.4vw, 1.65rem); }
.welcome { padding-top: .4rem; }
.paper-heading { margin-bottom: .65rem; padding-bottom: .4rem; border-bottom: 1px solid #b59158; text-align: center; }
.paper-heading h1 { color: #38241a; font-size: clamp(1.5rem, 2.7vw, 2.3rem); }
.hero-lead { max-width: 44rem; margin: .1rem auto .9rem; color: #4e3828; font: italic clamp(1.02rem, 1.7vw, 1.18rem)/1.55 var(--serif); text-align: center; text-wrap: balance; }
.hero-lead em, .welcome-copy em { font-style: normal; font-weight: 700; color: var(--wine); }
.hero-gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .5rem; user-select: none; }
.hero-shot { display: block; border: 1px solid #825932; outline: 1px solid #b58a50; outline-offset: 2px; background: #16120f; cursor: zoom-in; }
.hero-shot img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; -webkit-user-drag: none; }
.hero-lightbox { width: fit-content; max-width: min(96vw, 1200px); max-height: 94vh; margin: auto; padding: 0; border: 0; background: transparent; overflow: visible; }
.hero-lightbox::backdrop { background: #0c0908d4; }
.hero-frame { position: relative; padding: .7rem; border: 1px solid #9a7044; background: #16110e var(--paper-grain, url('../images/grain.svg')); box-shadow: inset 0 0 0 1px #efd3a266, inset 0 0 0 5px #120e0c, inset 0 0 0 6px #c9a15a99, 0 20px 48px #070503d0; }
.hero-lightbox img { display: block; max-width: min(90vw, 1120px); max-height: 84vh; width: auto; height: auto; border: 1px solid #5c3e2a; }
.hero-lightbox img.is-fading { opacity: 0; }
.hero-nav, .hero-lightbox-close { position: absolute; z-index: 1; display: grid; place-items: center; margin: 0; padding: 0; border: 1px solid #e4c58a99; border-radius: 2px; background: #1a120eb8; box-shadow: inset 0 0 0 1px #f1d39a40; color: #f6e4c4; cursor: pointer; }
.hero-nav { top: 50%; width: 2.2rem; height: 3rem; transform: translateY(-50%); }
.hero-prev { left: 1.2rem; }
.hero-next { right: 1.2rem; }
.hero-prev .icon { transform: scaleX(-1); }
.hero-lightbox-close { top: 1.2rem; right: 1.2rem; width: 2rem; height: 2rem; }
.hero-nav .icon { width: 1.05rem; height: 1.05rem; }
.hero-lightbox-close .icon { width: .9rem; height: .9rem; }
:is(.hero-nav, .hero-lightbox-close):is(:hover, :focus-visible) { color: #fff8ec; border-color: #f6e0b4; background: #2c1d16e6; box-shadow: inset 0 0 0 1px #f8e2b8aa, 0 0 14px #e4c58a73; }
.welcome-copy { margin: 1.15rem 0 0; padding-top: .95rem; border-top: 1px solid #c4a36e; color: #4a3426; font-size: 1rem; line-height: 1.75; text-align: center; }
.server-facts { margin-top: 1.15rem; }
.server-facts .eyebrow { justify-content: center; gap: .85rem; margin-bottom: .85rem; color: #38241a; font: 700 clamp(1.05rem, 1.8vw, 1.28rem)/1 var(--serif); letter-spacing: .14em; }
.server-facts .eyebrow::before, .server-facts .eyebrow::after { flex: 1; height: 1px; background: #b59158; content: ''; }
.server-facts ul { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .55rem; margin: 0; padding: 0; list-style: none; }
.server-facts li { position: relative; display: grid; justify-items: center; gap: .35rem; padding: .85rem .4rem .75rem; overflow: hidden; border: 1px solid #b59158; background: linear-gradient(#fff8ea, #f3e2c4); box-shadow: inset 0 0 0 1px #f8e7c8; text-align: center; }
.server-facts li:is(:hover, :focus-within) { border-color: #8d6236; background: linear-gradient(#fffdf6, #edd4a4); box-shadow: inset 0 0 0 1px #f8e2b8, 0 8px 16px #6a432422; }
.server-facts .fact-label { display: flex; align-items: center; justify-content: center; gap: .4rem; color: #4e3424; font: 700 .84rem/1.15 var(--serif); letter-spacing: .03em; }
.server-facts .fact-label::before, .server-facts .fact-label::after { flex: none; width: .55rem; height: 1px; background: #b59158; content: ''; }
.server-facts strong { display: inline-flex; align-items: center; justify-content: center; color: var(--wine); font: 700 1.15rem/1 var(--serif); font-variant-numeric: lining-nums; }
.server-facts .rate-mark { font-size: 1em; font-weight: 700; line-height: 1; }
.server-story { margin-top: 1.1rem; color: #4a3426; font-size: .94rem; line-height: 1.8; text-align: center; }
.server-story p + p { margin-top: .75rem; }
.server-story strong { color: var(--wine); font-weight: 700; }
.adventure-close { margin-top: 1.35rem; padding-top: .2rem; text-align: center; }
.adventure-close h2 { display: flex; align-items: center; justify-content: center; gap: .85rem; color: #38241a; font: 700 clamp(1.15rem, 2vw, 1.45rem)/1.2 var(--serif); }
.adventure-close h2::before, .adventure-close h2::after { flex: 1; height: 1px; background: #b59158; content: ''; }
.adventure-close p { margin: .75rem 0 0; color: #4a3426; font-size: 1rem; line-height: 1.7; }
.adventure-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; margin-top: .95rem; }

.box-title { display: flex; align-items: center; gap: .45rem; min-height: 39px; padding: .55rem .65rem; border-bottom: 1px solid #916b42; box-shadow: inset 0 1px #ddba7155, inset 0 -2px #2f13146b; background: linear-gradient(#7a3428, #4a201a); color: #ffebc6; font-size: .99rem; }
.side-content { padding: .7rem .65rem; color: var(--muted); font-size: .83rem; }
.side-content > p { margin-bottom: .5rem; }
.login-panel { padding: .8rem; }
.login-panel fieldset { margin: 0; gap: .65rem; }
.login-panel .field label { color: var(--ink); font-size: .81rem; }
.login-panel .field input { min-height: 39px; }
.login-panel .button { width: 100%; justify-content: space-between; }
.login-panel .notice { margin-bottom: .75rem; font-size: .77rem; }
.account-greeting { display: flex; align-items: center; gap: .6rem; padding: .62rem; border: 1px solid #b59158; background: linear-gradient(125deg, #fff6df, #ead0a2); color: #65462e; box-shadow: inset 0 0 0 2px #fff0cd80; line-height: 1.3; }
.account-greeting-mark { display: grid; place-items: center; flex: none; width: 2rem; height: 2rem; border: 1px solid #865536; background: linear-gradient(#7a3428, #4a201a); color: #ffebc6; box-shadow: inset 0 0 0 1px #ddba7166; }
.account-greeting-mark .icon { width: 1.15rem; height: 1.15rem; }
.account-greeting strong { display: block; color: var(--wine); font: 750 1.04rem/1.3 var(--serif); overflow-wrap: anywhere; }
.account-summary { margin-top: .55rem; border-block: 1px solid #c4a36e; background: #fff5df80; color: #61442c; }
.account-summary p { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .15rem .45rem; padding: .43rem .55rem; }
.account-summary p + p { border-top: 1px solid #d2b687; }
.account-summary strong { color: #623023; }
.account-balance strong { font-variant-numeric: tabular-nums; }
.account-links { display: grid; gap: .42rem; margin: .65rem 0; }
.account-links .button, .login-panel .account-logout, .account-characters .account-character-link { min-height: 36px; padding: .43rem .55rem; font-size: .8rem; }
.account-links .account-link, .account-characters .account-character-link { border-color: #ad844e; background: linear-gradient(#f8e8c7, #e8c994); color: #4b3020; box-shadow: inset 0 0 0 1px #fff3d7a6; }
.account-link:is(:hover, :focus-visible) { border-color: #916135; background: linear-gradient(#fff2d6, #eed1a0); }
.account-link[aria-current] { border-color: #916135; background: linear-gradient(#f6dfb3, #e4bc81); color: #61291e; box-shadow: inset 3px 0 #a57941, inset 0 0 0 1px #fff0cd80; }
.forgot-login { display: block; width: fit-content; margin: .7rem auto 0; padding: .12rem .15rem; border: 0; background: none; color: #6a3a2c; font: 700 .76rem/1.3 var(--serif); text-align: center; text-decoration: underline; text-decoration-color: #b59158; text-decoration-thickness: 1px; text-underline-offset: .18em; text-wrap: balance; }
.forgot-login + .forgot-login { margin-top: .2rem; }
.forgot-login:is(:hover, :focus-visible), .forgot-login[aria-current] { color: var(--wine); text-decoration-color: var(--wine); }
.kingdoms { margin: 0; padding: 0; list-style: none; }
.kingdoms li + li { border-top: 1px solid #d0b588; }
.kingdom-link { display: flex; align-items: center; gap: .55rem; padding: .62rem .35rem; color: var(--ink); font: 700 .89rem/1.2 var(--serif); }
.kingdoms .kingdom-link { padding: .72rem 1rem; }
.kingdom-link .icon { width: .95rem; height: .95rem; margin-left: auto; color: var(--wine); }
.kingdom-link:hover, .kingdom-link[aria-current] { background: #dfbf855c; color: var(--wine); }
.kingdom-mark { flex: none; width: 13px; height: 15px; border: 1px solid #6a3d22; border-radius: 1px 1px 6px 6px; background: var(--kingdom-color); box-shadow: inset 0 0 0 1px #f1daa586; }
.kingdom-flag { flex: none; width: 34.5px; height: 21px; }
.shinsoo { --kingdom-color: #a33e32; }
.chunjo { --kingdom-color: #ba8c33; }
.jinno { --kingdom-color: #415a80; }
.kingdom-page { container: kingdom / inline-size; min-width: 0; overflow: hidden; border: 1px solid var(--bronze); border-top: 3px solid var(--kingdom-color); background: var(--paper-surface); box-shadow: inset 0 0 0 3px #a7793f2e, var(--frame-shadow); }
.kingdom-hero { border-bottom: 1px solid #a7824b; background: #281b16; }
.kingdom-panorama { overflow: hidden; }
.kingdom-art { display: block; width: 100%; height: auto; }
.kingdom-identity { display: flex; align-items: center; gap: 1rem; padding: .8rem clamp(.75rem, 3cqi, 1.35rem); border-top: 1px solid #b5915880; background: linear-gradient(105deg, var(--kingdom-color), #281914 82%); background: linear-gradient(105deg, color-mix(in srgb, var(--kingdom-color) 58%, #21150f), #281914 82%); }
.kingdom-emblem { flex: none; width: clamp(42px, 10cqi, 62px); height: auto; aspect-ratio: 69 / 42; object-fit: contain; }
.kingdom-identity h1 { color: #ffe7b6; font-size: clamp(1.65rem, 6cqi, 2.35rem); text-shadow: 0 2px 4px #120b08; }
.kingdom-motto { margin-top: .2rem; color: #f2dfbc; font-size: .8rem; line-height: 1.4; }
.kingdom-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; border-bottom: 1px solid #c4a36e; background: #dec09650; }
.kingdom-facts > div { min-width: 0; padding: .55rem clamp(.55rem, 3cqi, 1.35rem); }
.kingdom-facts > div + div { border-left: 1px solid #c4a36e80; }
.kingdom-facts dt, .kingdom-village .kingdom-village-label { margin-bottom: .15rem; color: #765537; font-size: .62rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.kingdom-facts dd { margin: 0; color: #4b2e20; font: 700 .92rem/1.4 var(--serif); overflow-wrap: anywhere; }
.kingdom-body { display: grid; gap: 1.1rem; padding: clamp(.85rem, 3cqi, 1.35rem); }
.kingdom-body h2 { display: flex; align-items: center; gap: .6rem; margin-bottom: .55rem; color: #6a3024; font-size: 1.04rem; }
.kingdom-body h2::before { flex: none; width: .34rem; height: .34rem; background: var(--kingdom-color); transform: rotate(45deg); content: ''; }
.kingdom-body h2::after { flex: 1; height: 1px; background: linear-gradient(90deg, #b5915899, #b5915800); content: ''; }
.kingdom-story p { color: #513e2c; font-size: .86rem; line-height: 1.75; }
.kingdom-story p + p { margin-top: .65rem; }
.kingdom-villages { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem; }
.kingdom-villages h2 { grid-column: 1 / -1; margin: 0; }
.kingdom-village { padding: .65rem .75rem; border: 1px solid #b5915866; border-left: 2px solid var(--kingdom-color); background: #fff8e888; }
.kingdom-village + .kingdom-village { background: #dec09637; }
.kingdom-village h3 { margin-bottom: .3rem; color: #4b2e20; font-size: .99rem; }
.kingdom-village p { color: #5c4936; font-size: .78rem; line-height: 1.6; }
@container kingdom (max-width: 420px) {
	.kingdom-villages { grid-template-columns: minmax(0, 1fr); }
}
.top-badge { margin-left: auto; padding: .15rem .38rem; border: 1px solid #e5b77980; border-radius: 2px; color: #ffe4a9; font: 700 .66rem/1.2 var(--sans); white-space: nowrap; }
.mini-ranking { font-size: .79rem; }
.mini-ranking thead { background: #e6ce9f; color: #63432f; font-size: .65rem; }
.mini-ranking :is(th, td) { padding: .33rem .5rem; text-align: center; }
.mini-ranking td:first-child { font-weight: 700; }
.empire-flag { position: relative; display: block; width: 34.5px; height: 21px; margin-inline: auto; }
.empire-flag img { width: 34.5px; height: 21px; max-width: none; }
.empire-flag::after { content: ''; position: absolute; inset: 0; box-sizing: border-box; border: 1px solid transparent; box-shadow: inset 0 0 0 1px transparent; pointer-events: none; }
:is(.ranking-characters, .ranking-guilds) .empire-flag { transform: scale(1.15); }

@media (hover: hover) {
	:is(.field input[type='search'], .login-panel .field input):enabled:hover:not(:focus), .registration-form .field input:enabled:hover:not(:focus, [aria-invalid]) { border-color: #a57941; background-color: #fff2d8; outline-color: #b5915833; box-shadow: inset 2px 0 #a57941, inset 0 1px 3px #6a43241f; }
	.mini-ranking tbody tr:hover, :is(.ranking-characters, .ranking-guilds) tbody tr:hover, .download-specs > div:hover, .account-details > div:hover, .account-friends-list li:hover, .kingdoms .kingdom-link:is(:hover, :focus-visible) { background-color: #ddbb7970; box-shadow: inset 2px 0 #a57941; }
	.empire-flag:hover::after { border-color: #ffe7a8; box-shadow: inset 0 0 0 1px #a57941; }
	.team-card:hover, .account-characters > li:hover { border-color: #9c713e; background: linear-gradient(120deg, #fff7e2, #e8cb96); box-shadow: inset 3px 0 #a57941, inset 0 0 0 1px #fff1d4, 0 3px 8px #6a43241a; }
	.team-card-lead:hover { box-shadow: inset 3px 0 var(--wine), inset 0 0 0 1px #fff1d4, 0 3px 8px #6a43241a; }
}

.button { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; min-height: 42px; padding: .58rem .78rem; border: 1px solid #875c34; border-radius: 2px; font-size: .85rem; font-weight: 750; text-align: center; cursor: pointer; }
.button-gold { background: linear-gradient(#f1d39a, #d8ae6d); color: #352318; box-shadow: inset 0 0 0 1px #f5ddad; }
.button-gold:hover { background: #f7daa2; }
.button-ghost { border-color: #865536; background: linear-gradient(#763328, #51241c); color: #fff0d4; box-shadow: inset 0 0 0 1px #e1b37946; }
.button-ghost:hover { background: #81382a; }
.button:disabled { opacity: .56; cursor: not-allowed; }
.login-panel .button .icon, .registration-form .button .icon, .text-link .icon { width: .9rem; height: .9rem; }
.text-link { display: inline-flex; align-items: center; gap: .36rem; width: fit-content; color: var(--wine); font-size: .85rem; font-weight: 750; }
.text-link:hover { color: #421711; text-decoration: underline; text-underline-offset: .22em; }

.subpage { padding: clamp(1rem, 2.7vw, 2.2rem); border: 1px solid var(--bronze); background: var(--paper-surface); box-shadow: inset 0 0 0 3px #a7793f2e, var(--frame-shadow); }
.section-heading { margin-bottom: 1.45rem; padding-bottom: 1rem; border-bottom: 1px solid #b59158; }
.section-heading h1 { margin-top: .45rem; color: #38241a; font-size: clamp(1.95rem, 4.6vw, 3.45rem); overflow-wrap: anywhere; }
.section-heading > p:not(.eyebrow) { max-width: 60ch; margin-top: .55rem; color: var(--muted); }
.content-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: .9rem; align-items: start; }
.panel { min-width: 0; padding: clamp(.85rem, 2.4vw, 1.55rem); border: 1px solid #b59158; border-radius: 2px; background: #fff5dd75; box-shadow: inset 0 0 0 2px #f9edcf87; }
.panel h2 { color: #41261b; font-size: clamp(1.25rem, 2.5vw, 1.65rem); }
.panel p:not(.eyebrow) { margin-top: .55rem; color: var(--muted); }
.notice { padding: .65rem .8rem; border: 1px solid #b28950; border-radius: 2px; background: #eddbb6; }
.panel .notice { margin-block: .8rem; }
.panel .notice.error, .login-panel .notice.error, .registration-panel .notice.error { border-color: #a95340; color: #782619; background: #f4d8c6; }
.notice.success { margin-top: 0; border-color: #7b986a; background: #e5e8cc; }
.notice strong { color: var(--ink); }

fieldset { display: grid; gap: .8rem; margin: 1rem 0 0; padding: 0; border: 0; min-width: 0; }
fieldset .button { justify-self: start; margin-top: .25rem; }
.field { display: grid; gap: .25rem; }
.field label { font-size: .89rem; font-weight: 700; }
.field input { width: 100%; min-height: 42px; padding: .42rem .65rem; border: 1px solid #a28258; border-radius: 2px; color: var(--ink); background: #fffaf0; }
:is(.field input[type='search'], .login-panel .field input:where(:enabled)), .registration-form .field input { border-color: #b59158; background-color: #fff8ea; outline: 2px solid transparent; outline-offset: 2px; box-shadow: inset 0 0 0 0 #a5794100, inset 0 1px 3px #6a43241f; caret-color: var(--wine); }
:is(.field input[type='search'], .login-panel .field input):focus, .registration-form .field input:focus { border-color: #916b42; background-color: #fffaf0; outline-color: #b5915880; box-shadow: inset 3px 0 var(--wine), inset 0 1px 3px #6a43241f; }
.field input:disabled { background: #eaddc5; }
.field input[aria-invalid] { border-color: #a6382a; }
.field small { color: var(--muted); font-size: .78rem; }
.field input[aria-invalid] + small { color: #8d2e24; }
.calendar { min-width: 0; overflow: hidden; border: 1px solid var(--bronze); background: var(--paper-surface); box-shadow: inset 0 0 0 3px #a7793f2e, var(--frame-shadow); }
.calendar-heading { display: flex; align-items: center; gap: .4rem; min-height: 48px; padding: .45rem .6rem; border-bottom: 1px solid #916b42; background: linear-gradient(#7a3428, #4a201a); box-shadow: inset 0 1px #ddba7155, inset 0 -2px #2f13146b; color: #ffebc6; }
.calendar-heading h1 { flex: 1; min-width: 0; text-align: center; font-size: clamp(.95rem, 2vw, 1.2rem); }
.calendar-nav, .calendar-today, .calendar-close { display: grid; place-items: center; flex: none; min-width: 32px; height: 32px; padding: .3rem .45rem; border: 1px solid #c69b5b66; background: #f5ddad0d; color: #f3dfba; cursor: pointer; }
.calendar-heading button:is(:hover, :focus-visible), .calendar-close:is(:hover, :focus-visible) { border-color: #d5af70; background: #f5ddad26; color: #fff2d5; }
.calendar-heading button:focus-visible, .calendar-close:focus-visible { outline-color: #ffe1a3; outline-offset: 2px; }
.calendar-prev .icon { rotate: 180deg; }
.calendar-today { font-size: .73rem; }
.calendar-viewport { position: relative; overflow: hidden; isolation: isolate; }
.calendar-grid { width: 100%; border-collapse: collapse; table-layout: fixed; }
.calendar-page-copy { position: absolute; top: 0; left: 0; z-index: 1; pointer-events: none; }
.calendar-page-copy thead { visibility: hidden; }
.calendar-page-copy tbody { background: var(--paper-surface); }
.calendar-grid th { padding: .5rem .15rem; border-bottom: 1px solid #a7824b; background: linear-gradient(#ead3a7, #dfc18c); box-shadow: inset 0 1px #fff2d380; color: #422b1d; font: 750 .82rem/1.4 var(--sans); text-align: center; }
.calendar-grid th:nth-last-child(-n+2) { color: #6a211a; }
.calendar-grid td { height: 84px; padding: .25rem; border-right: 1px solid #b5915859; border-bottom: 1px solid #b5915859; vertical-align: top; }
.calendar-grid td:last-child { border-right: 0; }
.calendar-grid tr:last-child td { border-bottom: 0; }
.calendar-day.is-weekend { background: #dec09637; }
.calendar-day.is-outside { background: #9671430f; }
.calendar-day.is-outside .calendar-day-number { color: #96714399; }
.calendar-day:hover { background: #ddbb7970; box-shadow: inset 0 2px #b59158; }
.calendar-day-number { display: grid; place-items: center; width: 1.45rem; height: 1.45rem; margin: 0 0 .15rem auto; color: #6d5038; font-size: .73rem; font-weight: 650; }
.calendar-day.is-today .calendar-day-number { border: 1px solid #a7824b; border-radius: 50%; background: linear-gradient(#7a3428, #4a201a); box-shadow: 0 1px 3px #6a432433; color: #ffebc6; }
.calendar-day-events { display: grid; gap: .15rem; }
.calendar-event { display: flex; flex-wrap: wrap; align-items: center; gap: 0 .25rem; width: 100%; min-width: 0; padding: .15rem .25rem; border: 1px solid #a7824b66; border-left: 2px solid #742b22; background: linear-gradient(#f5dfb1, #e4bd7d); color: #6a3024; font-size: .66rem; line-height: 1.5; text-align: left; cursor: pointer; }
.calendar-event.is-holiday { border-left-color: #967143; background: #dec09659; color: #765537; }
.calendar-event:is(:hover, :focus-visible) { border-color: #a7824b; background: #f7daa2; box-shadow: inset 0 0 0 1px #fff2d380; }
.calendar-event-time { flex: none; font-size: .59rem; font-weight: 750; }
.calendar-event-name { flex: 1 1 2rem; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.calendar-more { justify-self: start; padding: .1rem .2rem; border: 0; background: none; color: #742b22; font-size: .62rem; cursor: pointer; }
.calendar-more:is(:hover, :focus-visible) { color: #a57941; text-decoration: underline; }
.calendar-dialog { width: min(32rem, calc(100% - 24px)); max-height: 85vh; margin: auto; padding: 0; border: 1px solid var(--bronze); background: var(--paper-surface); color: var(--ink); box-shadow: var(--frame-shadow); }
.calendar-dialog::backdrop { background: #1c100c99; }
.calendar-dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .7rem .85rem; border-bottom: 1px solid #916b42; background: linear-gradient(#7a3428, #4a201a); color: #ffebc6; }
.calendar-dialog-heading h2 { font-size: 1rem; line-height: 1.5; }
.calendar-details { display: grid; gap: .7rem; padding: .85rem; }
.calendar-detail { padding: .7rem .8rem; border: 1px solid #b5915880; border-left: 2px solid #742b22; background: #fff8e866; overflow-wrap: anywhere; }
.calendar-detail.is-holiday { border-left-color: #967143; }
.calendar-detail h3 { color: #6a3024; font-size: 1rem; }
.calendar-detail-time { margin-top: .3rem; color: #967143; font-size: .73rem; font-weight: 650; }
.calendar-description, .calendar-location { margin-top: .55rem; color: #765537; font-size: .8rem; line-height: 1.7; white-space: pre-line; }
.download-client, .download-note { min-width: 0; overflow: hidden; border: 1px solid #a7824b; background: linear-gradient(#fff8ea, #f3e2c4); box-shadow: inset 0 0 0 1px #f8e7c8; }
.download-note { background: var(--paper-surface); }
.download-client-head { flex-wrap: wrap; }
.download-client-head > div { flex: 1 1 8rem; min-width: 0; }
.download-client-head h2 { color: inherit; font-size: inherit; overflow-wrap: anywhere; }
.download-size { padding: .15rem .45rem; border: 1px solid #c99b5a80; color: #f4dbb1; font-size: .75rem; line-height: 1.2; }
.download-client-body { padding: 1.1rem; color: #4a3426; }
.download-mirrors { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); gap: .75rem; }
.download-mirror { display: flex; align-items: center; gap: .7rem; min-width: 0; min-height: 76px; padding: .85rem; border: 1px solid #a67b40; background: linear-gradient(#f5dfb1, #e4bd7d); box-shadow: inset 0 0 0 2px #fff2d36b, 0 2px 3px #6a43241a; color: #40281b; text-align: left; cursor: pointer; }
.download-mirror-icon { display: grid; place-items: center; flex: none; width: 2.2rem; height: 2.2rem; }
.download-mirror-icon img { width: 2rem; height: 2rem; object-fit: contain; }
.download-mirror-copy { display: grid; gap: .15rem; flex: 1; min-width: 0; }
.download-mirror strong { font: 700 1.05rem/1.2 var(--serif); overflow-wrap: anywhere; }
.download-mirror small { color: #65472e; font-size: .73rem; line-height: 1.4; }
.download-mirror > .icon { flex: none; width: .95rem; height: .95rem; }
.download-mirror:not(:disabled, [aria-disabled='true']):is(:hover, :focus-visible) { border-color: #80532d; background: linear-gradient(#ffeac2, #edcb91); box-shadow: inset 0 0 0 2px #fff4db, 0 3px 8px #6a432429; }
:is(.login-panel, .registration-form) .button-gold { opacity: 1; }
.download-mirror:is(:disabled, [aria-disabled='true']), :is(.login-panel, .registration-form) .button-gold { border-color: #bc9b6c; background: linear-gradient(#eee0c5, #e0cba5); color: #756047; box-shadow: inset 0 0 0 2px #f8edda73; }
.download-mirror:is(:disabled, [aria-disabled='true']), :is(.login-panel, .registration-form) .button-gold[aria-disabled='true'], .team-join[aria-disabled='true'] { cursor: not-allowed; }
.download-mirror:is(:disabled, [aria-disabled='true']) small { color: #756047; }
.download-mirror:is(:disabled, [aria-disabled='true']):where(:hover, :focus-visible), :is(.login-panel, .registration-form) .button-gold:where(:hover, :focus-visible) { background: #f7daa2; }
.download-mirror.is-unavailable, :is(.login-panel, .registration-form) .button-gold.is-unavailable, .team-contact .team-join.is-unavailable { border-color: #b96a57; background: linear-gradient(#f5e3d9, #edd0c4); color: #756047; box-shadow: inset 0 0 0 2px #faeee273, 0 0 0 2px #a6382a14; }
:is(.login-panel .button-gold, .registration-submit):not(:disabled, [aria-disabled='true']), .registration-submit.is-submitting { border-color: #9b6d38; background: linear-gradient(#fbe7bc, #ebc78d 58%, #dbaf6c); color: #432818; box-shadow: inset 0 1px #fff2d5, inset 0 0 0 2px #fff0cc73, 0 2px 5px #6a43242e; }
:is(.login-panel .button-gold, .registration-submit):not(:disabled, [aria-disabled='true']):is(:hover, :focus-visible) { border-color: #855728; background: linear-gradient(#fff0ce, #edc88c); box-shadow: inset 0 0 0 2px #fff3d8, 0 3px 8px #6a432438; }
:is(.login-panel .button-gold, .registration-submit):not(:disabled, [aria-disabled='true']):active { background: linear-gradient(#e5bd7f, #f1d39a); box-shadow: inset 0 2px 4px #6a43243d; }
.download-runtime { display: flex; flex-wrap: wrap; align-items: center; gap: .85rem; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid #c4a36e; }
.download-runtime-copy { flex: 1 1 16rem; min-width: 0; }
.download-runtime h3 { color: #41261b; font-size: 1rem; overflow-wrap: anywhere; }
.download-runtime p { margin-top: .35rem; color: var(--muted); font-size: .8rem; line-height: 1.65; }
.download-runtime .button { flex: none; max-width: 100%; font-size: .78rem; }
.download-details { margin-top: 1.25rem; }
.download-client > .box-title, .download-note > .box-title, .ranking-panel > .box-title, .team-roster > .box-title, .registration-panel > .box-title { min-height: 48px; padding: .65rem .9rem; font-size: .95rem; }
.download-specs { margin: 0; padding: 0; }
.download-specs div { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.7fr); align-items: baseline; gap: .35rem .85rem; padding: .55rem 1.05rem; }
.download-specs dt { margin: 0; color: #765537; font: 700 .76rem/1.5 var(--serif); overflow-wrap: anywhere; }
.download-specs dd { margin: 0; color: #38241a; font-size: .8rem; line-height: 1.5; overflow-wrap: anywhere; }
.team-page { padding-bottom: clamp(.75rem, 1.8vw, 1.15rem); }
.team-roster { min-width: 0; overflow: hidden; border: 1px solid #a7824b; background: var(--paper-surface); box-shadow: inset 0 0 0 1px #f8e7c8; }
.team-heading h1 { min-width: 0; color: inherit; font-size: inherit; overflow-wrap: anywhere; }
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); gap: .6rem; padding: .7rem; }
.team-card { position: relative; display: grid; grid-template-columns: clamp(3.25rem, 6vw, 4rem) minmax(0, 1fr); align-items: center; gap: .3rem .6rem; min-width: 0; padding: .6rem; border: 1px solid #b59158; background: linear-gradient(120deg, #fffaec, #efdab4); box-shadow: inset 0 0 0 2px #fff1d480; }
.team-card::after { position: absolute; top: 5px; right: 5px; width: 20px; height: 20px; background: var(--ornament-corner, url('../images/corner.svg')) center / contain no-repeat; opacity: .6; transform: scaleX(-1); content: ''; pointer-events: none; }
.team-card-lead { border-color: #9c6b43; background: linear-gradient(120deg, #f7e6c5, #efdab4); box-shadow: inset 3px 0 var(--wine), inset 0 0 0 1px #fff1d4; }
.team-portrait { position: relative; display: grid; place-items: center; grid-column: 1; grid-row: 1 / span 2; align-self: stretch; min-height: 4rem; overflow: hidden; border: 1px solid #ae8248; background: linear-gradient(135deg, #fbebc9, #d8b676); box-shadow: inset 0 0 0 2px #fff2d3a6, inset 0 -6px 12px #8b5d2a14; }
.team-character { position: absolute; inset: 3px; width: calc(100% - 6px); height: calc(100% - 6px); object-fit: cover; }
.team-character-empty { display: grid; place-items: center; color: #a28662; }
.team-presence { position: absolute; right: 2px; bottom: 2px; z-index: 1; display: inline-flex; align-items: center; gap: .2rem; padding: .12rem .22rem; border: 1px solid #d8bc83a6; border-radius: 2px; background: #261c15e8; color: #f4e4c5; box-shadow: 0 1px 3px #21130b66; font: 700 .5rem/1.3 var(--sans); white-space: nowrap; }
.team-presence::before { flex: none; width: .3rem; height: .3rem; border-radius: 50%; background: #9e8e7a; content: ''; }
.team-presence.is-online::before { background: #9dc58b; box-shadow: 0 0 4px #9dc58b55; }
.team-presence.is-offline::before { background: #c47d69; }
.team-member { display: flex; align-items: center; gap: .75rem; grid-column: 2; grid-row: 1; align-self: start; min-width: 0; }
.team-identity { flex: 1; min-width: 0; }
.team-member h2 { margin: 0; color: #38241a; font-size: clamp(1rem, 1.6vw, 1.2rem); line-height: 1.25; overflow-wrap: anywhere; }
.team-role { margin-top: .2rem; color: #765537; font: 700 .64rem/1.5 var(--serif); letter-spacing: .035em; overflow-wrap: anywhere; }
.team-personal-motto { flex: 1.5; min-width: 0; margin: 0; color: #6a3a2c; font: italic .85rem/1.55 var(--serif); text-align: center; text-wrap: balance; overflow-wrap: anywhere; }
.team-discord { display: flex; flex-wrap: wrap; grid-column: 2; grid-row: 2; align-self: end; align-items: center; gap: .15rem .35rem; margin: 0; padding-top: .25rem; border-top: 1px solid #b5915866; color: #765537; font-size: .73rem; line-height: 1.5; overflow-wrap: anywhere; }
.team-discord a { color: var(--wine); font-weight: 650; text-decoration: underline; text-decoration-color: #b59158; text-underline-offset: .2em; }
.team-discord a:is(:hover, :focus-visible) { color: #421711; text-decoration-color: var(--wine); }
.team-discord-empty { color: var(--muted); font-style: italic; }
.team-discord-copy { min-width: 4rem; min-height: 24px; margin-left: auto; padding: .15rem .4rem; border: 1px solid #b59158; border-radius: 2px; background: linear-gradient(#f5e4bf, #e6cca0); color: #6a4324; font: 700 .68rem/1.2 var(--sans); cursor: pointer; }
.team-discord-copy:where(:hover, :focus-visible) { border-color: #916b42; background: #f7daa2; }
.team-discord-copy:disabled { cursor: wait; }
.team-discord-copy.is-copied { border-color: #7b986a; background: #e5e8cc; color: #4c653d; }
.team-discord-copy.is-copy-error { border-color: #a95340; background: #f4d8c6; color: #782619; }
.team-copy-buffer { position: fixed; top: 0; left: -9999px; width: 1px; height: 1px; padding: 0; border: 0; opacity: 0; pointer-events: none; }
.team-empty { margin: 1rem; padding: 1.2rem .9rem; border: 1px solid #c4a36e80; background: #fff5dd75; color: var(--muted); font-size: .85rem; text-align: center; }
.team-contact { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: .5rem .85rem; margin-top: .85rem; padding: .95rem 1.1rem; overflow: hidden; border: 1px solid #b59158; background: linear-gradient(120deg, #fff8e8, #edd7af); box-shadow: inset 0 0 0 2px #fff1d480; }
.team-contact::before, .team-contact::after { position: absolute; width: 18px; height: 18px; background: var(--ornament-corner, url('../images/corner.svg')) center / contain no-repeat; opacity: .5; content: ''; pointer-events: none; }
.team-contact::before { top: 4px; left: 4px; }
.team-contact::after { right: 4px; bottom: 4px; transform: rotate(180deg); }
.team-contact h2 { display: flex; align-items: center; gap: .75rem; grid-column: 1 / -1; color: #6a3024; font-size: 1rem; }
.team-contact h2::after { flex: 1; height: 1px; background: linear-gradient(90deg, #b59158, #b5915800); content: ''; }
.team-contact p { margin: 0; color: #6d5038; font-size: .81rem; line-height: 1.7; }
.team-contact strong { color: var(--wine); font-weight: 650; }
.team-contact .team-join { min-height: 38px; margin-top: 0; padding: .5rem .9rem; border-color: #4752c4; border-radius: 4px; background: #5865f2; color: #fff; box-shadow: inset 0 1px #ffffff26, 0 2px 5px #373e8533; font-size: .8rem; }
.team-contact .team-join:where(:hover, :focus-visible):not(:disabled, [aria-disabled='true']) { border-color: #3c45a5; background: #4752c4; box-shadow: inset 0 1px #ffffff26, 0 3px 8px #373e854d; }
.team-contact .team-join:where([aria-disabled='true']):where(:hover, :focus-visible) { background: #6370f4; }
.team-join .icon { width: .9rem; height: .9rem; }
.team-motto { margin: 1.15rem 0 0; padding: .95rem .75rem .1rem; border-top: 1px solid #b59158; color: #6a3a2c; font: italic clamp(.95rem, 1.5vw, 1.05rem)/1.7 var(--serif); text-align: center; text-wrap: balance; }
.team-motto p { max-width: 52ch; margin-inline: auto; }

.registration-panel { min-width: 0; overflow: hidden; border: 1px solid #a7824b; background: var(--paper-surface); box-shadow: inset 0 0 0 1px #f8e7c8; }
.registration-body { padding: clamp(.9rem, 2vw, 1.25rem); }
.registration-body > .notice { margin-bottom: 1rem; font-size: .83rem; }
.registration-email-note { margin: 0 0 .85rem; padding: .65rem .85rem; border: 1px solid #742b2240; border-top: 2px solid #742b2266; background: #fff7e580; color: #704d3d; font-size: .79rem; line-height: 1.7; text-align: center; }
.registration-email-note strong { color: #64281f; font-weight: 700; }
.registration-security { margin-bottom: 1rem; padding: .65rem .8rem; border: 1px solid #b7a07a80; background: #fff8e855; }
.registration-security-heading { padding: 0 .25rem .45rem; }
.registration-security h2 { margin: 0; color: #513b2a; font-size: .95rem; }
.registration-security-list { display: grid; gap: .15rem; margin: 0; padding: 0; list-style: none; }
.registration-security-list li { position: relative; padding: .3rem .55rem .3rem 1.15rem; background: #b5915812; color: #604c36; font-size: .77rem; line-height: 1.7; }
.registration-security-list li::before { position: absolute; top: .96em; left: .5rem; width: .27rem; height: .27rem; border-radius: 50%; background: #a57941; content: ''; }
.registration-fields { --registration-gap: 1rem; --registration-field-gap: .35rem; --registration-label-line: 1.2rem; --registration-input-height: 44px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); align-items: start; gap: var(--registration-gap); margin: 0; }
.registration-pin { grid-column: 1; }
.registration-password-field { position: relative; }
.registration-form .password-match:empty { display: none; }
.registration-form .field { gap: var(--registration-field-gap); }
.registration-form .field label { color: #4b2e20; font: 700 .85rem/var(--registration-label-line) var(--serif); }
.registration-form .required-mark { margin-inline-start: .25em; color: #a6382a; font-size: .85em; }
.registration-form .field input { min-height: var(--registration-input-height); padding: .55rem .7rem; }
.registration-form .field input:where(:enabled) { border-color: #ac906b; background-color: #fffdf7; }
.registration-form .field input::placeholder { color: #7e6a51; font-size: .75rem; opacity: 1; }
.registration-form .field input[aria-invalid] { border-color: #a6382a; background-color: #fff1e5; box-shadow: inset 3px 0 #a6382a, inset 0 1px 3px #6a43241f; }
.registration-form .field small { font-size: .73rem; line-height: 1.5; }
.registration-secret { position: relative; }
.registration-secret input { display: block; }
.registration-secret.has-password-toggle input { padding-inline-end: 3.15rem; }
.registration-secret.has-password-check input { padding-inline-end: 4.15rem; }
.registration-secret.has-password-toggle input::-ms-reveal { display: none; }
.registration-secret + small { color: #8d2e24; }
.registration-signup #password-help { margin-top: .5rem; }
.registration-secret-controls { position: absolute; inset: 0 .2rem 0 auto; display: flex; align-items: center; gap: .1rem; }
.registration-password-toggle { display: grid; place-items: center; width: 2.5rem; height: 100%; padding: 0; border: 0; background: transparent; color: #765537; cursor: pointer; }
.registration-password-toggle:is(:hover, :focus-visible, [aria-pressed='true']) { color: var(--wine); }
.registration-password-toggle:focus-visible { outline-offset: -4px; }
.registration-password-toggle .icon { width: 1.1rem; height: 1.1rem; }
.registration-password-toggle[hidden], .registration-password-check[hidden], .registration-password-toggle[aria-pressed='false'] .icon + .icon, .registration-password-toggle[aria-pressed='true'] .icon:first-child { display: none; }
.registration-password-check { color: #526d3c; }
.registration-password-check .icon { width: .9rem; height: .9rem; }
.password-strength { --strength-color: #7e725b; position: absolute; top: calc(100% + var(--registration-field-gap)); right: 0; left: 0; }
.password-strength[data-strength='1'] { --strength-color: #a95340; }
.password-strength[data-strength='2'] { --strength-color: #98702d; }
.password-strength[data-strength='3'] { --strength-color: #5f7b48; }
.password-strength-bars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .25rem; }
.password-strength-bars span { height: 5px; border: 1px solid #b5915866; background: #b5915826; box-shadow: inset 0 1px #ffffff40; }
.password-strength[data-strength='1'] .password-strength-bars span:first-child, .password-strength[data-strength='2'] .password-strength-bars span:nth-child(-n+2), .password-strength[data-strength='3'] .password-strength-bars span { border-color: var(--strength-color); background: var(--strength-color); }
.password-match { min-height: 1.4em; color: #a95340; font-size: .66rem; line-height: 1.4; }
.password-match.is-match { color: #526d3c; }
.registration-signup .password-match { color: #8d2e24; font-size: .73rem; }
.registration-signup .password-match.is-match { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.registration-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; grid-column: 1 / -1; margin-top: .3rem; padding-top: 1rem; border-top: 1px solid #b5915880; }
.registration-actions .button { min-width: min(100%, 12.5rem); margin-top: 0; }
.registration-captcha { display: grid; justify-items: center; gap: .45rem; min-width: 0; }
.registration-captcha > [data-recaptcha] { display: flex; justify-content: center; width: 100%; max-width: 304px; min-height: 78px; }
.registration-captcha > [data-recaptcha].is-compact { max-width: 164px; min-height: 144px; }
.registration-captcha > small { color: #8d2e24; font-size: .73rem; line-height: 1.5; text-align: center; }
.registration-footer { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem 1rem; grid-column: 1 / -1; padding-top: .85rem; border-top: 1px solid #b5915866; }
.registration-captcha-overlay { position: fixed; z-index: 20; inset: 0; display: grid; place-items: center; padding: .75rem; background: #1c100caa; }
.registration-captcha-overlay[hidden] { display: none; }
.registration-captcha-popup { position: relative; width: min(100%, 22rem); max-height: 100%; overflow: auto; padding: 2.35rem .85rem .85rem; border: 1px solid var(--bronze); background: var(--paper-surface); box-shadow: var(--frame-shadow); }
.registration-captcha-close { position: absolute; top: .3rem; right: .4rem; display: grid; place-items: center; width: 2rem; height: 2rem; padding: 0; border: 0; background: transparent; color: #765537; cursor: pointer; }
.registration-captcha-close:is(:hover, :focus-visible) { background: #b5915826; color: var(--wine); }
.registration-captcha-loading { margin-bottom: .5rem; color: var(--muted); font-size: .78rem; text-align: center; }
.registration-captcha-message { color: #8d2e24; font-size: .78rem; }
.registration-footer .registration-submit { position: relative; justify-content: space-between; min-width: min(100%, 12.5rem); margin: 0 0 0 auto; }
.registration-footer .registration-submit.is-submitting:disabled { cursor: wait; filter: none; transform: none; }
.registration-submit.is-submitting .icon { visibility: hidden; }
.registration-submit.is-submitting::after { position: absolute; right: .7rem; width: .85rem; height: .85rem; border: 2px solid #9b6d3855; border-top-color: #765537; border-radius: 50%; content: ''; }
.recovery-form .registration-fields { grid-template-columns: minmax(0, 1fr); }
.recovery-intro { margin: 0 0 1rem; padding: .65rem .85rem; border-left: 2px solid #a57941; background: linear-gradient(90deg, #ecd6a34d, #fff8e81a); box-shadow: inset 0 1px #fff8e880; color: #604733; font-size: .83rem; line-height: 1.8; text-align: center; text-wrap: pretty; }
.registration-delivery { margin-bottom: 1rem; color: #67523f; font-size: .83rem; line-height: 1.8; }
.registration-delivery strong { color: #6a3024; }
.activation-body > h2 { margin-bottom: .65rem; color: #6a3024; font-size: 1.25rem; }
.activation-body > p { color: #67523f; font-size: .85rem; line-height: 1.8; }
.activation-body > .notice { margin-top: .85rem; }
.registration-success-heading { display: flex; align-items: center; gap: .8rem; margin-bottom: 1rem; }
.registration-success-heading h2 { color: #41261b; font-size: clamp(1.15rem, 2vw, 1.5rem); }
.registration-seal { display: grid; place-items: center; flex: none; width: 2.75rem; height: 2.75rem; border: 1px solid #8a9561; background: linear-gradient(#eef0d7, #d7dfb7); box-shadow: inset 0 0 0 2px #fbf8e66b; color: #536740; }
.registration-seal .icon { width: 1.6rem; height: 1.6rem; }
.registration-details { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); gap: .75rem; margin: 0; }
.registration-details > div { min-width: 0; padding: .85rem; border: 1px solid #b59158; background: linear-gradient(#fff8ea, #f0ddba); box-shadow: inset 0 0 0 1px #fff2d3; }
.registration-details dt { margin-bottom: .35rem; color: #765537; font: 700 .75rem/1.4 var(--serif); }
.registration-details dd { margin: 0; color: #41261b; font: 700 1.1rem/1.4 var(--serif); overflow-wrap: anywhere; }
.registration-details code { color: var(--wine); font-size: 1.15rem; letter-spacing: .12em; }
.registration-reminder { margin-block: .9rem 1rem; color: var(--muted); font-size: .8rem; line-height: 1.65; }

.ranking-panel { padding: 0; background: var(--paper-surface); }
.ranking-search { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; padding: .8rem clamp(.65rem, 2.8vw, 1.45rem); border-bottom: 1px solid #c4a36e; background: linear-gradient(#fff8ea, #f3e2c4); }
.ranking-search .field { display: flex; align-items: center; gap: .55rem; flex: 1 1 16rem; }
.ranking-search .field label { white-space: nowrap; }
.ranking-search .field input { flex: 1; width: auto; min-width: 0; }
.ranking-search .button { flex: none; min-height: 42px; }
:is(.ranking-characters, .ranking-guilds) .ranking-empty { font-weight: 400; text-align: center; }
.pagination { padding: 1rem clamp(.65rem, 2.8vw, 1.45rem); }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; font-variant-numeric: tabular-nums; }
th, td { padding: .65rem clamp(.45rem, 2.45vw, 1.4rem); }
thead { color: #f9e4bd; background: #5e291f; font-size: .73rem; letter-spacing: .06em; text-transform: uppercase; }
tbody tr, .download-specs div + div { border-top: 1px solid #d2b687; }
tbody tr:nth-child(even), .download-specs > :nth-child(even) { background: #dec09637; }
tbody td { color: var(--muted); }
tbody th { overflow-wrap: anywhere; }
:is(.ranking-characters, .ranking-guilds) { min-width: 40rem; table-layout: fixed; }
:is(.ranking-characters, .ranking-guilds) :is(th, td) { padding-inline: .55rem; text-align: center; overflow-wrap: anywhere; }
:is(.ranking-characters, .ranking-guilds) thead th:first-child { width: 8%; }
:is(.ranking-characters, .ranking-guilds) thead th:last-child { width: 18%; }
.ranking-characters thead th:nth-child(2) { width: 28%; }
.ranking-characters thead th:nth-child(3) { width: 9%; }
.ranking-characters thead th:nth-child(4) { width: 18%; }
.ranking-characters thead th:nth-child(5) { width: 19%; }
.ranking-guilds thead th:nth-child(2), .ranking-guilds thead th:nth-child(3) { width: 22%; }
.ranking-guilds thead th:nth-child(4) { width: 9%; }
.ranking-guilds thead th:nth-child(5) { width: 21%; }
:is(.ranking-characters, .ranking-guilds) tbody td:first-child { font-weight: 700; }
.ranking-name { display: grid; grid-template-columns: 1.75rem minmax(0, 1fr); align-items: center; gap: .45rem; width: min(100%, 10rem); margin-inline: auto; text-align: left; translate: 1.75rem 0; }
.ranking-name > span:last-child { grid-column: 2; min-width: 0; }
.ranking-portrait { display: grid; place-items: center; flex: none; width: 1.75rem; height: 1.75rem; border: 1px solid #ae8248; background: linear-gradient(135deg, #fbebc9, #d8b676); box-shadow: inset 0 0 0 1px #fff2d3a6; }
.ranking-portrait img { width: 1.5rem; height: 1.5rem; object-fit: contain; }
.account-view { min-width: 0; border: 1px solid #a7824b; background: var(--paper-surface); }
.account-view > .box-title { min-height: 48px; padding: .65rem .9rem; font-size: .95rem; }
.account-view-body { padding: clamp(.75rem, 2.6vw, 1.25rem); }
.account-view-body > p { color: var(--muted); }
.account-details-view { padding: 0; }
.account-details { margin: 0; }
.account-details > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); align-items: center; gap: .65rem; min-height: 44px; padding: .6rem clamp(.75rem, 2.6vw, 1.4rem); }
.account-details > div + div, .account-friends-list li + li { border-top: 1px solid #d2b687; }
.account-details > :nth-child(even), .account-friends-list li:nth-child(even) { background-color: #dec09637; }
.account-details dt { color: #765537; font-size: .83rem; }
.account-details dd { margin: 0; color: #522b20; font-weight: 700; text-align: right; overflow-wrap: anywhere; }
.account-contact-form, .account-email-value { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: .35rem .5rem; }
.account-contact-form .field { position: relative; flex: 1 1 7rem; min-width: 0; }
.account-contact-form .field input, :is(.account-contact-form, .account-email-value) .button { min-height: 36px; font-size: .81rem; }
:is(.account-contact-form, .account-email-value) .button { flex: none; inline-size: 5rem; padding: .35rem .4rem; }
.account-contact-form input.has-save-result { padding-inline-end: 2.15rem; }
.account-contact-result { position: absolute; inset-inline-end: .5rem; top: 50%; display: grid; place-items: center; width: 1.25rem; height: 1.25rem; transform: translateY(-50%); border: 1px solid #9dbd89; border-radius: 50%; background: #e8f3dd; color: #2f6b3e; box-shadow: 0 0 6px #52894135; pointer-events: none; }
.account-contact-result.is-error { border-color: #c98e7c; background: #f6e0d7; color: #9b3227; box-shadow: 0 0 6px #a6382a2e; }
.account-contact-result svg { width: .9rem; height: .9rem; }
.account-contact-form [hidden] { display: none; }
.account-contact-form .account-contact-password, .account-email-label, .account-email-error, .account-email-notice { flex-basis: 100%; text-align: start; }
.account-email-label { color: #522b20; font-weight: 700; }
.account-email-error { color: #8d2e24; font-size: .83rem; }
.account-email-notice { color: #43582c; font-size: .8rem; }
.account-current-email { display: grid; justify-items: center; gap: .12rem; margin: 0; padding: .6rem .9rem; background: linear-gradient(90deg, #efdbb5, #fff7e4, #efdbb5); box-shadow: inset 0 1px #fff9ed; text-align: center; }
.account-current-email dt { color: #765537; font-size: .76rem; }
.account-current-email dd { min-width: 0; max-width: 100%; margin: 0; color: var(--wine); font: 750 1.06rem/1.35 var(--serif); overflow-wrap: anywhere; }
.account-email-change { padding: .6rem clamp(.75rem, 2.2vw, 1rem); border-top: 1px solid #d2b687; }
.account-email-change .account-contact-form { max-width: 30rem; margin-inline: auto; row-gap: .25rem; }
.support-body, .support-form, .support-thread { display: grid; gap: .75rem; }
.support-body h2 { color: var(--wine); font-size: 1.05rem; overflow-wrap: anywhere; }
.support-body .notice.error { border-color: #a95340; background: #f4d8c6; color: #782619; }
.support-tabs, .support-actions { display: flex; flex-wrap: wrap; gap: .45rem; }
.support-tabs .button, .support-actions .button { min-height: 36px; padding: .35rem .65rem; }
.support-tabs .account-link, .support-actions .account-link { border-color: #ad844e; }
.support-new { padding-bottom: .85rem; border-bottom: 1px solid #c4a36e; }
.support-guidance { color: var(--wine); font-weight: 650; text-align: center; }
.support-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr)); gap: .65rem; }
.support-form :is(select, textarea) { width: 100%; min-height: 42px; padding: .42rem .65rem; border: 1px solid #a28258; border-radius: 2px; background: #fffaf0; color: var(--ink); font: inherit; }
.support-form textarea { resize: vertical; }
.support-tickets { margin: 0; padding: 0; border-block: 1px solid #d2b687; list-style: none; }
.support-tickets li + li { border-top: 1px solid #d2b687; }
.support-tickets li:nth-child(even) { background-color: #dec09637; }
.support-tickets a, .support-ticket-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .35rem .65rem; }
.support-tickets a { padding: .6rem .7rem; overflow-wrap: anywhere; }
.support-tickets a:is(:hover, :focus-visible) { background-color: #ddbb7970; box-shadow: inset 2px 0 #a57941; }
.support-tickets small { display: block; color: var(--muted); }
.support-status { display: inline-block; padding: .12rem .38rem; border: 1px solid #c4a36e; background: #f4e1b8; color: #684524; font-size: .74rem; font-weight: 750; }
.support-status-answered { border-color: #9fa978; background: #e4ebcc; color: #43582c; }
.support-status-closed { border-color: #b4a893; background: #e8decc; color: #665c4d; }
.support-meta { font-size: .83rem; }
.support-message { padding: .65rem .8rem; border: 1px solid #d2b687; background: #fff6e5; }
.support-message.is-staff { border-inline-start: 3px solid var(--wine); background: #f6e6c9; }
.support-message header { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .25rem .5rem; margin-bottom: .25rem; color: var(--wine); font-size: .83rem; }
.support-message time { color: var(--muted); }
.support-message p { white-space: pre-wrap; overflow-wrap: anywhere; }
.account-details-empire { display: inline-flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: .25rem .5rem; }
.account-details-empire .empire-flag { flex: none; margin: 0; }
.account-deletion-code { color: var(--wine); letter-spacing: .06em; }
.account-characters { display: grid; gap: .42rem; margin: 0; padding: 0; list-style: none; container-type: inline-size; }
.account-characters > li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: .6rem; min-width: 0; padding: .6rem .75rem; border: 1px solid #c4a36e; background: linear-gradient(115deg, #fff7e5, #efdbb5); box-shadow: inset 0 0 0 1px #fff2d7a6; }
.account-characters .ranking-portrait { width: 2rem; height: 2rem; color: var(--wine); }
.account-character-name { display: grid; color: #522b20; line-height: 1.35; overflow-wrap: anywhere; }
.account-character-name small { color: #765537; }
.account-character-level { padding: .14rem .43rem; border: 1px solid #c4a36e; background: #fff4db; color: #65452c; font-size: .75rem; font-weight: 700; white-space: nowrap; }
.account-character-link .icon { width: .8rem; height: .8rem; }
.account-character-heading { display: flex; align-items: center; justify-content: center; gap: .65rem; padding: .7rem clamp(.75rem, 2.6vw, 1.4rem); border-bottom: 1px solid #d2b687; color: var(--wine); text-align: center; }
.account-character-heading h2 { font-size: 1.2rem; overflow-wrap: anywhere; }
.character-rank { display: inline-block; padding: .12rem .48rem; border: 1px solid #c4a36e; border-inline-start: 3px solid var(--rank-accent); background: #fff4db; color: var(--rank-ink); font-size: .81rem; }
.character-rank-chivalrous { --rank-accent: #00d0db; --rank-ink: #005a61; }
.character-rank-noble { --rank-accent: #4938ff; --rank-ink: #352396; }
.character-rank-good { --rank-accent: #6c5eff; --rank-ink: #49339b; }
.character-rank-friendly { --rank-accent: #aea7fa; --rank-ink: #5d487d; }
.character-rank-neutral { --rank-accent: #e0dfe8; --rank-ink: #61574e; }
.character-rank-aggressive { --rank-accent: #ff6b21; --rank-ink: #873805; }
.character-rank-deceitful { --rank-accent: #ed2b00; --rank-ink: #982c13; }
.character-rank-malicious { --rank-accent: #ff4242; --rank-ink: #a5292b; }
.character-rank-cruel { --rank-accent: #ff1c1c; --rank-ink: #931b20; }
.account-friends { border-top: 1px solid #c4a36e; }
.account-friends h2 { padding: .4rem clamp(.75rem, 2.6vw, 1.4rem); border-bottom: 1px solid #d2b687; background: linear-gradient(#f6e7c7, #ecd3a7); color: var(--wine); font-size: .9rem; }
.account-friends p { padding: .35rem clamp(.75rem, 2.6vw, 1.4rem); color: var(--muted); font-size: .83rem; }
.account-friends-list { margin: 0; padding: 0; color: #522b20; font-size: .85rem; font-weight: 700; list-style: none; overflow-wrap: anywhere; }
.account-friends-list li { display: flex; flex-wrap: wrap; align-items: center; gap: .2rem .45rem; min-height: 36px; padding: .2rem clamp(.75rem, 2.6vw, 1.4rem); }
.account-friends-list.is-scrollable { max-height: 144px; overflow-y: auto; scrollbar-color: #916135 #efdbb4; scrollbar-width: thin; scrollbar-gutter: stable; }
.account-friends-list.is-scrollable:focus-visible { outline-offset: -2px; }
.account-character-footer { padding: .65rem clamp(.75rem, 2.6vw, 1.4rem); border-top: 1px solid #d2b687; }
@container (max-width: 22rem) {
	.account-characters > li { grid-template-columns: auto minmax(0, 1fr) auto; }
	.account-character-link { grid-column: 2 / -1; justify-self: end; }
}
.pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .55rem 1.1rem; border-top: 1px solid #c4a36e; color: var(--muted); font-size: .85rem; }

.site-footer { border-top: 1px solid #634c35; background: #191511; }
.footer-inner { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: .85rem; min-height: 72px; padding-block: .8rem; }
.footer-inner p { color: #e1cba6; font-size: .8rem; }
.content-rating { display: flex; align-items: center; gap: .4rem; justify-self: end; }
.content-rating img { height: 52px; width: auto; }

@media (max-width: 960px) {
	.portal { grid-template-columns: minmax(0, 1fr) minmax(165px, 31%); grid-template-areas: 'center start' 'center community'; align-content: start; }
	.content-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 620px) {
	.kingdom-identity { gap: .7rem; }
	.calendar-grid td { height: 72px; padding: .15rem; }
	.calendar-event { padding: .15rem; font-size: .6rem; }
	.calendar-event-time { display: none; }
	.calendar-heading { gap: .3rem; padding-inline: .4rem; }
	.registration-fields { grid-template-columns: minmax(0, 1fr); }
	.registration-actions .button { width: 100%; }
	.registration-footer .registration-submit { width: 100%; }
	.wrap { width: calc(100% - 24px); }
	.masthead { padding: .45rem; background-image: linear-gradient(0deg, #1d100c91, transparent 42%), var(--banner-mobile, url('../images/banner-mobile.jpg')); background-position: center, center; }
	.wordmark { padding: .3rem 0 .4rem; }
	.wordmark strong { font-size: clamp(1.7rem, 9vw, 3.2rem); }
	.wordmark > span { margin-top: .35rem; }
	.main-nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); font-size: .86rem; }
	.main-nav > a, .nav-rankings-toggle { padding: .55rem .45rem; min-height: 39px; }
	.nav-rankings-links { width: 100%; min-width: 0; }
	.nav-rankings-links a { padding-inline: .35rem; }
	.portal, .team-grid { grid-template-columns: minmax(0, 1fr); }
	.portal { --panel-gap: 12px; grid-template-areas: 'center' 'start' 'community'; padding-block: 12px 28px; }
	.portal-community { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
	.hero-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.server-facts ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.footer-inner { grid-template-columns: minmax(0, 1fr); justify-items: center; padding-block: 1.15rem; }
	.content-rating { justify-self: center; }
}

@media (max-width: 430px) {
	.portal-community { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: no-preference) {
	.support-tickets a { transition: background-color .18s ease, box-shadow .18s ease; }
	.account-contact-result { animation: contact-result-pop .36s cubic-bezier(.2, .75, .3, 1) both; }
	.account-contact-result path { stroke-dasharray: 1; animation: contact-result-draw .24s .1s ease-out both; }
	@keyframes contact-result-pop { from { opacity: 0; transform: translateY(-50%) scale(.55); } 70% { opacity: 1; transform: translateY(-50%) scale(1.12); } to { opacity: 1; transform: translateY(-50%) scale(1); } }
	@keyframes contact-result-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
	.kingdom-art { transition: transform .6s ease-out; }
	.kingdom-panorama:hover .kingdom-art { transform: scale(1.025); }
	@keyframes calendar-reveal { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
	@keyframes calendar-backdrop { from { opacity: 0; } to { opacity: 1; } }
	@keyframes calendar-dismiss { from { opacity: 1; transform: translateY(0); } to { opacity: 0; transform: translateY(5px); } }
	@keyframes calendar-backdrop-dismiss { from { opacity: 1; } to { opacity: 0; } }
	.calendar { animation: calendar-reveal .3s ease-out; }
	.calendar-dialog[open] { animation: calendar-reveal .22s ease-out; }
	.calendar-dialog[open]::backdrop { animation: calendar-backdrop .2s ease-out; }
	.calendar-dialog[open].is-closing { animation: calendar-dismiss .22s ease-in forwards; }
	.calendar-dialog[open].is-closing::backdrop { animation: calendar-backdrop-dismiss .2s ease-in forwards; }
	.calendar-day, .calendar-day-number, .calendar-event, .calendar-heading button, .calendar-close { transition: background-color .2s ease, border-color .2s ease, box-shadow .2s ease, filter .2s ease, transform .2s ease; }
	.calendar-event:is(:hover, :focus-visible), .calendar-heading button:is(:hover, :focus-visible), .calendar-close:is(:hover, :focus-visible) { filter: brightness(1.07); transform: translateY(-1px); }
	.calendar-event:active, .calendar-heading button:active, .calendar-close:active { transform: translateY(0); }
	.calendar-day:hover .calendar-day-number { transform: translateY(-1px); }
	.password-strength-bars span { transition: background-color .2s ease, border-color .2s ease; }
	@keyframes registration-submit-spin { to { transform: rotate(1turn); } }
	.registration-submit.is-submitting::after { animation: registration-submit-spin .65s linear infinite; }
	.registration-captcha-popup { animation: calendar-reveal .2s ease-out; }
	.wordmark { transition: filter .28s ease, translate .28s ease; }
	.wordmark strong, .wordmark > span { transition: color .28s ease, text-shadow .28s ease; }
	.wordmark > span::before, .wordmark > span::after { transition: scale .28s ease; }
	.wordmark:is(:hover, :focus-visible) { translate: 0 -2px; }
	.wordmark:is(:hover, :focus-visible) > span::before, .wordmark:is(:hover, :focus-visible) > span::after { scale: 1.12 1; }
	.mini-ranking tbody tr, :is(.ranking-characters, .ranking-guilds) tbody tr, .download-specs > div, .account-details > div, .account-friends-list li, .kingdoms .kingdom-link { transition: background-color .18s ease, box-shadow .18s ease; }
	.team-card, .account-characters > li { transition: border-color .18s ease, box-shadow .18s ease, filter .18s ease, transform .18s ease; }
	.team-card:hover, .account-characters > li:is(:hover, :focus-within) { filter: brightness(1.07); transform: translateY(-1px); }
	.empire-flag::after { transition: border-color .18s ease, box-shadow .18s ease; }
	@keyframes reveal { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }
	@keyframes nav-shine { from { background-position: 100% 0; } to { background-position: 0 0; } }
	.nav-download { --nav-shine-color: #b8eba570; }
	:is(.nav-register, .nav-download):is(:hover, :focus-visible)::after { position: absolute; inset: 0; background: linear-gradient(110deg, transparent 42%, var(--nav-shine-color, #fff3cf70) 50%, transparent 58%) 100% 0 / 250% 100% no-repeat; animation: nav-shine .65s ease-out both; content: ''; pointer-events: none; }
	.wordmark, .portal-center, .portal-side { animation: reveal .38s ease-out both; }
	.hero-lightbox[open] .hero-frame { animation: hero-open .46s cubic-bezier(.16, .84, .32, 1) both; }
	.hero-lightbox[open]::backdrop { animation: hero-veil .4s ease-out both; }
	.hero-lightbox.is-closing .hero-frame { animation: hero-close .28s cubic-bezier(.4, 0, .84, .32) both; }
	.hero-lightbox.is-closing::backdrop { animation: hero-veil-out .28s ease-in both; }
	.hero-lightbox img { transition: opacity .16s ease; }
	.hero-nav, .hero-lightbox-close { transition: color .18s ease, background-color .18s ease, border-color .18s ease, box-shadow .18s ease; }
	.server-facts li { transition: transform .24s ease, border-color .24s ease, background .24s ease, box-shadow .24s ease; }
	.server-facts li:is(:hover, :focus-within) { transform: translateY(-3px); }
	.server-facts li:is(:hover, :focus-within)::after { position: absolute; inset: 0; background: linear-gradient(110deg, transparent 42%, #fff3cf70 50%, transparent 58%) 100% 0 / 250% 100% no-repeat; animation: nav-shine .7s ease-out both; content: ''; pointer-events: none; }
	.download-mirror, :is(.login-panel, .registration-form) .button-gold, .team-contact .team-join { transition: border-color .18s ease, box-shadow .18s ease, color .18s ease, filter .18s ease, transform .18s ease; }
	.download-mirror.is-unavailable, :is(.login-panel, .registration-form) .button-gold.is-unavailable, .team-contact .team-join.is-unavailable { animation: download-shake .36s ease; }
	@keyframes download-shake { 0%, 100% { transform: translateX(0); } 20%, 60% { transform: translateX(-3px); } 40%, 80% { transform: translateX(3px); } }
	@keyframes hero-open { from { opacity: 0; transform: translateY(16px) scale(.94); } to { opacity: 1; transform: none; } }
	@keyframes hero-close { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateY(16px) scale(.94); } }
	@keyframes hero-veil { from { opacity: 0; } to { opacity: 1; } }
	@keyframes hero-veil-out { from { opacity: 1; } to { opacity: 0; } }
	.main-nav a, .nav-rankings-toggle, .button { transition: box-shadow .18s ease, color .18s ease, filter .18s ease, transform .18s ease; }
	.nav-rankings-toggle::after { transition: transform .18s ease; }
	.nav-rankings-links { transform: scaleY(.94); transform-origin: top; transition: opacity .2s ease-out, transform .2s ease-out, visibility 0s linear .2s; }
	.nav-rankings-toggle[aria-expanded='true'] + .nav-rankings-links { transform: scaleY(1); transition-delay: 0s; }
	.button:not(:disabled):is(:hover, :focus-visible), .download-mirror:is(:hover, :focus-visible), :is(.login-panel, .registration-form) .button-gold:is(:hover, :focus-visible) { filter: brightness(1.07); transform: translateY(-1px); }
	.button:not(:disabled):active, .download-mirror:active, :is(.login-panel, .registration-form) .button-gold:active { transform: translateY(0); }
	:is(.text-link, .kingdom-link, .login-panel .button-gold:not(:disabled, [aria-disabled='true'])) .icon { transition: transform .18s ease; }
	:is(.text-link, .kingdom-link, .login-panel .button-gold:not(:disabled, [aria-disabled='true'])):is(:hover, :focus-visible) .icon { transform: translateX(3px); }
	.forgot-login { transition: color .18s ease, text-decoration-color .18s ease; }
	.field input { transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease; }
	:is(.field input[type='search'], .login-panel .field input), .registration-form .field input { transition: border-color .22s ease, background-color .22s ease, outline-color .25s ease, box-shadow .25s ease; }
	.field input:focus-visible { border-color: #90623a; box-shadow: 0 0 0 3px #b78b4f30; }
}
