:root {
  --bg-page: #f4f4f1;
  --bg-page-alt: #eeefe8;
  --surface: rgba(255, 255, 255, 0.78);
  --surface-strong: rgba(255, 255, 255, 0.94);
  --surface-inverse: #111111;
  --surface-muted: #f6f5f1;
  --border-soft: rgba(17, 24, 39, 0.08);
  --border-strong: rgba(17, 24, 39, 0.14);
  --text-primary: #171717;
  --text-secondary: #4f4f4a;
  --text-muted: #73726d;
  --accent: #1b57f2;
  --accent-hover: #1548c9;
  --accent-soft: rgba(27, 87, 242, 0.12);
  --success-soft: #e9f7ef;
  --success-text: #1f6d45;
  --warning-soft: #fff4dd;
  --warning-text: #946200;
  --danger-soft: #fdecec;
  --danger-text: #a63f3f;
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --shadow-soft: 0 12px 30px rgba(15, 23, 42, 0.06);
  --shadow-card: 0 24px 60px rgba(15, 23, 42, 0.09);
  --shadow-focus: 0 0 0 4px rgba(27, 87, 242, 0.14);
  --motion-fast: 180ms;
  --motion-base: 320ms;
  --ease-standard: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { min-height: 100%; scroll-behavior: smooth; }
body {
  min-height: 100vh;
  max-width: 100vw;
  overflow-x: hidden;
  margin: 0;
  font-family: "Manrope", ui-sans-serif, system-ui, sans-serif;
  color: var(--text-primary);
  background:
    radial-gradient(circle at top, rgba(255,255,255,.92), transparent 34%),
    linear-gradient(180deg, var(--bg-page), var(--bg-page-alt));
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: none; box-shadow: var(--shadow-focus); }

.site-header {
  position: sticky; top: 0; z-index: 40;
  min-height: 74px; padding: 0 max(24px, calc((100vw - 1180px) / 2));
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  backdrop-filter: blur(24px); background: rgba(244,244,241,.74);
  border-bottom: 1px solid rgba(17,24,39,.06);
}
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 800; letter-spacing: -.04em; font-size: 1.08rem; }
.brand-mark {
  width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center;
  color: #fff; border-radius: 12px; background: linear-gradient(135deg,#151515,#2b2b2b);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12);
}
.site-header nav { display: flex; align-items: center; gap: 8px; padding: 6px; border: 1px solid var(--border-soft); border-radius: 999px; background: rgba(255,255,255,.58); }
.site-header nav > a:not(.button) { padding: 9px 13px; border-radius: 999px; color: var(--text-secondary); font-size: .88rem; font-weight: 600; transition: background var(--motion-fast) var(--ease-standard),color var(--motion-fast) var(--ease-standard); }
.site-header nav > a:not(.button):hover { color: var(--text-primary); background: rgba(17,24,39,.05); }

.button {
  min-height: 42px; padding: 0 18px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid transparent; border-radius: 999px; cursor: pointer; font-weight: 700; font-size: .9rem;
  transition: transform var(--motion-fast) var(--ease-standard),background var(--motion-fast) var(--ease-standard),box-shadow var(--motion-fast) var(--ease-standard);
}
.button:active:not(:disabled) { transform: scale(.97); }
.button-primary { background: var(--surface-inverse); color: #fff; box-shadow: 0 12px 24px rgba(17,17,17,.14); }
.button-primary:hover { background: #292929; transform: translateY(-1px); }
.button-quiet { background: rgba(255,255,255,.7); color: var(--text-primary); border-color: var(--border-soft); }
.button-quiet:hover { background: rgba(255,255,255,.94); }
.button-muted { background: var(--surface-muted); border-color: var(--border-soft); color: var(--text-muted); cursor: not-allowed; }
.button-large { min-height: 50px; padding: 0 24px; }
.button-full { width: 100%; margin-top: 20px; border-radius: var(--radius-sm); }

.hero { min-height: 750px; padding: 110px 24px 70px; display: flex; flex-direction: column; align-items: center; text-align: center; position: relative; overflow: hidden; }
.hero-glow { position: absolute; inset: -260px auto auto 50%; width: 740px; height: 600px; transform: translateX(-50%); border-radius: 50%; background: rgba(27,87,242,.12); filter: blur(90px); pointer-events: none; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); font-size: .72rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.eyebrow > span { width: 18px; height: 2px; background: currentColor; border-radius: 99px; }
.hero h1, .section h2, .community-panel h2, .auth-card h1, .account-heading h1 { margin: 20px 0; font-weight: 800; line-height: .98; letter-spacing: -.065em; }
.hero h1 { max-width: 1000px; font-size: clamp(3.5rem,8vw,7.5rem); }
.hero h1 em { color: var(--accent); font-style: normal; }
.hero-copy { max-width: 680px; margin: 0; color: var(--text-secondary); font-size: 1.08rem; line-height: 1.75; }
.hero-actions { display: flex; gap: 10px; margin: 34px 0 72px; }
.server-strip { width: min(880px,100%); display: grid; grid-template-columns: repeat(3,1fr); overflow: hidden; border: 1px solid rgba(255,255,255,.9); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-soft); backdrop-filter: blur(20px); text-align: left; }
.server-strip > div { padding: 22px 27px; display: grid; grid-template-columns: auto 1fr; column-gap: 10px; border-right: 1px solid var(--border-soft); }
.server-strip > div:last-child { border: 0; }
.server-strip strong { font-size: .88rem; }
.server-strip small { grid-column: 2; margin-top: 2px; color: var(--text-muted); }
.status-dot,.large-status i { width: 8px; height: 8px; margin-top: 6px; border-radius: 50%; background: #e0a523; box-shadow: 0 0 0 4px rgba(224,165,35,.13); }

.section { max-width: 1180px; margin: auto; padding: 110px 0; }
.section-heading { display: flex; justify-content: space-between; align-items: end; margin-bottom: 54px; }
.section h2,.community-panel h2 { margin: 14px 0 0; font-size: clamp(2.7rem,5vw,4.7rem); }
.feature-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.feature-grid article,.account-card { padding: 34px; border: 1px solid rgba(255,255,255,.9); border-radius: var(--radius-lg); background: var(--surface-strong); box-shadow: var(--shadow-soft); }
.feature-number { color: var(--accent); font-size: .75rem; font-weight: 800; }
.feature-grid h3 { margin: 54px 0 10px; font-size: 1.45rem; letter-spacing: -.04em; }
.feature-grid p,.community-panel p,.account-card p { color: var(--text-secondary); line-height: 1.75; }
.community-panel { max-width: 1180px; margin: 30px auto 120px; padding: 64px; display: grid; grid-template-columns: 1.35fr 1fr; gap: 80px; align-items: end; border: 1px solid rgba(255,255,255,.85); border-radius: var(--radius-xl); background: linear-gradient(135deg,rgba(255,255,255,.92),rgba(238,240,248,.88)); box-shadow: var(--shadow-card); }
.community-panel p { margin: 0 0 27px; font-size: 1.04rem; }
.site-footer { max-width: 1180px; margin: auto; padding: 28px 0; display: flex; justify-content: space-between; border-top: 1px solid var(--border-soft); color: var(--text-muted); font-size: .75rem; }

.auth-shell { width: 100%; min-height: calc(100vh - 150px); padding: 72px 20px; display: grid; grid-template-columns: minmax(0,1fr); place-items: center; }
.auth-card { width: 100%; max-width: min(440px,calc(100vw - 40px)); min-width: 0; padding: 38px; border: 1px solid rgba(255,255,255,.92); border-radius: var(--radius-lg); background: var(--surface-strong); box-shadow: var(--shadow-card); backdrop-filter: blur(20px); }
.auth-card-wide { max-width: 570px; }
.auth-card h1 { margin-bottom: 9px; font-size: 2.35rem; }
.auth-card > p { margin-top: 0; color: var(--text-secondary); }
.auth-card form { margin-top: 28px; }
.auth-card label:not(.check) { display: block; margin: 17px 0 7px; font-size: .78rem; font-weight: 700; }
.label-row { display: flex; align-items: end; justify-content: space-between; }
.label-row label { margin-bottom: 7px!important; }
.label-row a,.auth-foot a { color: var(--accent); font-size: .78rem; font-weight: 700; }
.auth-card input:not([type=checkbox]) { width: 100%; height: 48px; padding: 0 14px; border: 1px solid var(--border-soft); border-radius: var(--radius-sm); background: rgba(255,255,255,.8); color: var(--text-primary); outline: none; transition: border-color var(--motion-fast) var(--ease-standard),box-shadow var(--motion-fast) var(--ease-standard),background var(--motion-fast) var(--ease-standard); }
.auth-card input:focus { border-color: var(--accent); background: #fff; box-shadow: var(--shadow-focus); }
.check { display: flex; align-items: flex-start; gap: 9px; margin-top: 18px; color: var(--text-secondary); font-size: .78rem; }
.check input { margin-top: 3px; accent-color: var(--accent); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field-error,.validation { display: block; margin-top: 5px; color: var(--danger-text); font-size: .74rem; }
.field-error:empty,.validation:empty { display: none; }
.validation ul { padding-left: 18px; }
.auth-foot { margin: 25px 0 0!important; text-align: center; font-size: .8rem; }
.success-panel { display: flex; flex-direction: column; gap: 3px; margin: 24px 0; padding: 16px; border-radius: var(--radius-sm); background: var(--success-soft); color: var(--success-text); }
.success-panel span { color: var(--text-secondary); font-size: .8rem; }
.center { text-align: center; }
.center .button { margin-top: 18px; }

.account-shell { max-width: 1080px; min-height: calc(100vh - 150px); margin: auto; padding: 90px 24px; }
.account-heading h1 { margin-bottom: 8px; font-size: 3.4rem; }
.account-heading p { color: var(--text-secondary); }
.account-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 44px; }
.account-card > span { color: var(--accent); font-size: .7rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.account-card h2 { margin: 14px 0; font-size: 1.65rem; letter-spacing: -.04em; }
dl { margin: 25px 0 0; }
dl > div { display: flex; justify-content: space-between; padding: 12px 0; border-top: 1px solid var(--border-soft); font-size: .8rem; }
dt { color: var(--text-muted); } dd { margin: 0; } .good { color: var(--success-text); } .warn { color: var(--warning-text); }
.large-status { display: flex; align-items: center; gap: 10px; margin: 20px 0; color: var(--warning-text); }
.large-status i { margin: 0; }
.text-button { padding: 20px 0; border: 0; background: none; color: var(--text-muted); cursor: pointer; }
.text-button:hover { color: var(--text-primary); }

@media (max-width: 1220px) { .section,.community-panel,.site-footer { margin-left: 24px; margin-right: 24px; } }
@media (max-width: 760px) {
  .site-header { padding: 0 18px; gap: 12px; } .site-header nav > a:not(.button) { display: none; }
  .site-header nav { flex: 0 0 auto; }
  .hero { min-height: auto; padding-top: 90px; } .hero h1 { font-size: 3.4rem; }
  .hero-actions { width: 100%; max-width: 360px; flex-direction: column; margin-bottom: 48px; }
  .server-strip,.feature-grid,.community-panel,.account-grid { grid-template-columns: 1fr; }
  .server-strip > div { border-right: 0; border-bottom: 1px solid var(--border-soft); }
  .section { padding: 80px 0; } .section-heading { display: block; }
  .community-panel { padding: 38px 27px; gap: 18px; }
  .site-footer { display: grid; gap: 8px; }
  .form-grid { grid-template-columns: 1fr; } .auth-card { padding: 28px 22px; }
}
@media (prefers-reduced-motion:reduce) { * { scroll-behavior: auto!important; transition: none!important; } }

/* ArcheLoot: dark high-fantasy skin */
:root {
  --bg-page: #080c0e;
  --bg-page-alt: #101718;
  --surface: rgba(15, 22, 22, .82);
  --surface-strong: rgba(18, 25, 24, .94);
  --surface-inverse: #c99a4d;
  --surface-muted: #1a2221;
  --border-soft: rgba(226, 190, 119, .14);
  --border-strong: rgba(226, 190, 119, .3);
  --text-primary: #f1eadb;
  --text-secondary: #b9b4a8;
  --text-muted: #85877f;
  --accent: #d5a857;
  --accent-hover: #edc77c;
  --accent-soft: rgba(213, 168, 87, .13);
  --success-soft: rgba(61, 113, 81, .2);
  --success-text: #8ec7a0;
  --warning-soft: rgba(197, 143, 52, .16);
  --warning-text: #dcb86f;
  --danger-soft: rgba(156, 61, 52, .18);
  --danger-text: #e79688;
  --shadow-soft: 0 18px 45px rgba(0, 0, 0, .28);
  --shadow-card: 0 28px 80px rgba(0, 0, 0, .42);
  --shadow-focus: 0 0 0 4px rgba(213, 168, 87, .18);
}

body {
  color: var(--text-primary);
  background:
    radial-gradient(circle at 78% 8%, rgba(76, 111, 98, .16), transparent 31%),
    radial-gradient(circle at 15% 56%, rgba(158, 112, 45, .09), transparent 28%),
    linear-gradient(180deg, #090d0f 0%, #111817 58%, #080c0d 100%);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  opacity: .2;
  pointer-events: none;
  background-image: repeating-linear-gradient(115deg, transparent 0 18px, rgba(255,255,255,.012) 19px 20px);
}

.site-header {
  background: rgba(7, 11, 12, .78);
  border-bottom-color: rgba(221, 182, 107, .13);
  box-shadow: 0 8px 30px rgba(0,0,0,.18);
}

.brand-mark {
  color: #17120a;
  background: linear-gradient(145deg, #f0cd83, #9e6b2e);
  border: 1px solid rgba(255, 228, 171, .38);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.28), 0 5px 20px rgba(188,132,52,.18);
}

.site-header nav {
  border-color: rgba(224,185,112,.15);
  background: rgba(17,24,24,.72);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.025);
}

.site-header nav > a:not(.button) { color: #aaa99f; }
.site-header nav > a:not(.button):hover { color: #f3e8d2; background: rgba(213,168,87,.09); }

.button-primary {
  color: #181208;
  background: linear-gradient(180deg, #e5bd70, #b98236);
  border-color: #e7c47e;
  box-shadow: 0 12px 28px rgba(178,119,41,.23), inset 0 1px 0 rgba(255,255,255,.3);
}

.button-primary:hover { color: #100c06; background: linear-gradient(180deg,#f0cd86,#c89343); }
.button-quiet { color: #e6dece; background: rgba(18,27,27,.75); border-color: var(--border-strong); }
.button-quiet:hover { background: rgba(35,46,44,.92); border-color: rgba(226,190,119,.42); }
.button-muted { color: #747870; background: #161d1d; border-color: rgba(255,255,255,.06); }

.hero {
  min-height: 820px;
  justify-content: center;
  padding-top: 120px;
  isolation: isolate;
  background-image:
    linear-gradient(180deg, rgba(5,9,11,.38) 0%, rgba(7,11,12,.54) 52%, #0e1414 100%),
    linear-gradient(90deg, rgba(4,8,10,.44), transparent 48%, rgba(4,8,10,.32)),
    url('/images/archeloot-world.png');
  background-position: center;
  background-size: cover;
}

.hero::after {
  position: absolute;
  inset: auto 0 0;
  height: 150px;
  z-index: -1;
  content: "";
  background: linear-gradient(transparent, #0e1414);
}

.hero-glow { width: 820px; height: 520px; background: rgba(195,139,57,.1); filter: blur(110px); }
.eyebrow { color: #e2b86b; text-shadow: 0 2px 18px rgba(0,0,0,.8); }
.hero h1 { max-width: 1060px; color: #f6efe2; text-shadow: 0 4px 34px rgba(0,0,0,.72); }
.hero h1 em { color: #e4b65f; text-shadow: 0 3px 24px rgba(107,62,14,.62); }
.hero-copy { color: #d2cec4; text-shadow: 0 2px 14px rgba(0,0,0,.9); }

.server-strip {
  border-color: rgba(224,187,117,.25);
  background: rgba(8,14,15,.78);
  box-shadow: 0 22px 55px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.035);
}
.server-strip > div { border-color: rgba(224,187,117,.13); }
.server-strip small { color: #8e918b; }
.status-dot,.large-status i { background: #d0a04c; box-shadow: 0 0 0 4px rgba(208,160,76,.12), 0 0 18px rgba(208,160,76,.32); }

.section { position: relative; }
.section::before {
  position: absolute;
  top: 65px;
  left: 0;
  width: 72px;
  height: 1px;
  content: "";
  background: linear-gradient(90deg,var(--accent),transparent);
}
.feature-grid article,.account-card {
  border-color: rgba(224,187,117,.15);
  background: linear-gradient(145deg,rgba(24,33,31,.94),rgba(12,18,18,.94));
  box-shadow: var(--shadow-soft), inset 0 1px 0 rgba(255,255,255,.025);
}
.feature-grid article { position: relative; overflow: hidden; }
.feature-grid article::after {
  position: absolute;
  right: -35px;
  bottom: -35px;
  width: 110px;
  height: 110px;
  border: 1px solid rgba(213,168,87,.1);
  border-radius: 50%;
  content: "";
}
.feature-number { color: #d8a956; }
.feature-grid p,.community-panel p,.account-card p { color: var(--text-secondary); }

.community-panel {
  border-color: rgba(224,187,117,.2);
  background:
    radial-gradient(circle at 15% 25%,rgba(166,116,45,.14),transparent 34%),
    linear-gradient(135deg,rgba(25,34,32,.98),rgba(10,16,17,.98));
  box-shadow: var(--shadow-card), inset 0 1px 0 rgba(255,255,255,.035);
}

.site-footer { border-color: rgba(224,187,117,.11); color: #73766f; }

.auth-shell { position: relative; }
.auth-shell::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background: radial-gradient(circle at 50% 30%,rgba(159,112,48,.13),transparent 34%);
}
.auth-card {
  border-color: rgba(226,190,119,.2);
  background: linear-gradient(145deg,rgba(24,32,30,.97),rgba(11,17,18,.97));
  box-shadow: var(--shadow-card), inset 0 1px 0 rgba(255,255,255,.035);
}
.auth-card input:not([type=checkbox]) {
  color: #f3ecdf;
  background: rgba(5,10,11,.62);
  border-color: rgba(222,188,123,.16);
}
.auth-card input:focus { background: rgba(8,13,14,.92); border-color: var(--accent); }
.check { color: #a4a49c; }
.success-panel { border: 1px solid rgba(115,174,134,.18); }
.account-heading p { color: var(--text-secondary); }
.text-button { color: #85877f; }
.text-button:hover { color: #e7decd; }

@media (hover:hover) and (pointer:fine) {
  .feature-grid article { transition: transform 180ms var(--ease-standard),border-color 180ms var(--ease-standard); }
  .feature-grid article:hover { transform: translateY(-3px); border-color: rgba(226,190,119,.29); }
}
