:root {
  color-scheme: dark;
  --night: #080b1a;
  --night-2: #11142e;
  --panel: rgba(16, 19, 44, 0.91);
  --panel-deep: rgba(7, 9, 24, 0.96);
  --ink: #fffaf2;
  --muted: #c9c3d6;
  --violet: #8d66eb;
  --violet-bright: #b89aff;
  --aqua: #8ee9e7;
  --gold: #f3c96c;
  --gold-soft: #ffe9ab;
  --danger: #ff9cac;
  --line: rgba(239, 218, 255, 0.17);
  --shadow: 0 26px 80px rgba(2, 3, 13, 0.48);
  --header-height: 76px;
}

* { box-sizing: border-box; }

html {
  min-width: 320px;
  scroll-behavior: smooth;
  background: var(--night);
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 82% 8%, rgba(116, 78, 190, 0.16), transparent 30rem),
    linear-gradient(180deg, var(--night-2), var(--night));
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  overflow-x: hidden;
}

body.map-mode { overflow: hidden; }
body.map-mode .site-header { display: none; }
body.map-mode .view { min-height: 100svh; }

button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
img { display: block; max-width: 100%; }
a { color: inherit; }
[hidden] { display: none !important; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  border-bottom: 1px solid var(--line);
  background: rgba(8, 10, 27, 0.88);
  box-shadow: 0 10px 42px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(18px) saturate(135%);
}

.header-inner {
  width: min(1320px, calc(100% - 34px));
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  text-decoration: none;
}

.brand-emblem,
.map-brand-mark {
  flex: 0 0 auto;
  background: url("../assets/yabureta-emblem.webp") center / cover;
}

.brand-emblem {
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 230, 165, 0.32);
  border-radius: 15px;
  box-shadow: 0 0 24px rgba(140, 103, 237, 0.22);
}

.brand-label { display: grid; line-height: 1.08; }
.brand-label small,
.map-brand-copy small {
  color: var(--gold);
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.brand-label strong,
.map-brand-copy strong {
  overflow: hidden;
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
  letter-spacing: 0.09em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.main-nav { display: flex; align-items: center; gap: 2px; }
.nav-link {
  position: relative;
  padding: 11px 13px;
  color: var(--muted);
  border-radius: 999px;
  font-size: 0.79rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.nav-link:hover { color: white; background: rgba(255, 255, 255, 0.06); transform: translateY(-1px); }
.nav-link[aria-current="page"] { color: var(--gold-soft); background: linear-gradient(135deg, rgba(147, 99, 235, 0.23), rgba(103, 224, 225, 0.1)); }
.nav-link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 17px;
  right: 17px;
  bottom: 5px;
  height: 2px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--violet-bright), var(--aqua));
  box-shadow: 0 0 12px rgba(155, 122, 255, 0.8);
}

.account-area { display: flex; align-items: center; flex: 0 0 auto; }
.account-chip {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 5px 9px 5px 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  text-decoration: none;
}
.account-chip-avatar { width: 34px; height: 34px; object-fit: cover; border-radius: 50%; background: linear-gradient(135deg, var(--violet), #2d7b92); }
.account-chip strong { max-width: 110px; overflow: hidden; font-size: 0.82rem; text-overflow: ellipsis; white-space: nowrap; }
.admin-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 9px var(--gold); }

.view { display: none; min-height: calc(100svh - var(--header-height)); }
.view.is-active { display: block; animation: view-in 320ms ease both; }
@keyframes view-in { from { opacity: 0; } to { opacity: 1; } }

.hero {
  position: relative;
  min-height: min(820px, calc(100svh - var(--header-height)));
  display: grid;
  align-items: center;
  isolation: isolate;
  overflow: hidden;
  background-image:
    linear-gradient(90deg, rgba(5, 7, 19, 0.04) 0%, rgba(5, 7, 19, 0.12) 38%, rgba(8, 10, 28, 0.84) 72%, rgba(7, 9, 24, 0.97) 100%),
    linear-gradient(0deg, #0a0d20 0%, transparent 38%),
    url("../assets/wallpaper-city.webp");
  background-position: center, center, 46% center;
  background-size: cover;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 79% 19%, rgba(255, 231, 160, 0.24) 0 2px, transparent 3px),
    radial-gradient(circle at 88% 35%, rgba(157, 119, 255, 0.35) 0 2px, transparent 3px),
    radial-gradient(circle at 68% 62%, rgba(113, 230, 232, 0.26) 0 1px, transparent 2px);
  background-size: 190px 170px, 260px 220px, 130px 150px;
  animation: glimmer 10s linear infinite;
}

@keyframes glimmer { to { background-position: 190px -170px, -260px 220px, 130px -150px; } }

.hero-inner { width: min(1240px, calc(100% - 36px)); margin: 0 auto; padding: 78px 0 100px; display: flex; justify-content: flex-end; }
.hero-copy { width: min(610px, 100%); text-align: center; filter: drop-shadow(0 9px 28px rgba(0, 0, 0, 0.58)); }
.hero-wordmark { width: min(560px, 92%); margin: 0 auto 16px; }

.season-tag, .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--gold-soft);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.season-tag::before, .season-tag::after, .eyebrow::before { content: ""; width: 28px; height: 1px; background: linear-gradient(90deg, transparent, currentColor); }
.season-tag::after { transform: scaleX(-1); }

.hero h1, .page-hero h1, .empty-state h1 {
  margin: 15px 0 17px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.7rem, 6vw, 5.3rem);
  line-height: 0.96;
  letter-spacing: -0.045em;
  text-wrap: balance;
}
.hero h1 span { color: transparent; background: linear-gradient(110deg, #f4e5ff 8%, #c3a5ff 44%, #8be4e5 91%); -webkit-background-clip: text; background-clip: text; }
.hero-lead { max-width: 590px; margin: 0 auto; color: #eee9f6; font-size: clamp(1rem, 1.6vw, 1.16rem); line-height: 1.78; text-wrap: pretty; }
.hero-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 13px;
  background: rgba(11, 14, 35, 0.76);
  box-shadow: 0 12px 32px rgba(4, 5, 15, 0.28);
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
  backdrop-filter: blur(10px);
}
.button:hover { transform: translateY(-2px); border-color: rgba(255, 229, 160, 0.5); box-shadow: 0 16px 40px rgba(4, 5, 15, 0.38); }
.button-primary { color: #101129; border-color: rgba(255, 233, 178, 0.75); background: linear-gradient(115deg, #ffe7a2, #ebc263); box-shadow: 0 14px 38px rgba(238, 191, 92, 0.2); }
.button-violet { border-color: rgba(206, 182, 255, 0.44); background: linear-gradient(115deg, #7d4fce, #4d3f9c); }
.button-small { min-height: 40px; padding: 8px 14px; border-radius: 11px; font-size: 0.82rem; }
.button-wide { width: 100%; }
.text-button { padding: 0; color: var(--gold-soft); border: 0; background: transparent; font-weight: 800; cursor: pointer; }
.text-button.danger { color: var(--danger); }

.section { position: relative; padding: clamp(72px, 9vw, 118px) 0; }
.section-inner { width: min(1160px, calc(100% - 36px)); margin: 0 auto; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 26px; margin-bottom: 35px; }
.section-heading h2, .content-toolbar h2 { margin: 8px 0 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2rem, 4.2vw, 3.6rem); line-height: 1; letter-spacing: -0.035em; }
.section-heading p { max-width: 470px; margin: 0; color: var(--muted); }

.news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.news-card {
  position: relative;
  min-height: 480px;
  overflow: hidden;
  display: flex;
  align-items: end;
  color: white;
  border: 1px solid rgba(222, 205, 255, 0.16);
  border-radius: 24px;
  background: #17172e;
  box-shadow: var(--shadow);
  isolation: isolate;
  text-decoration: none;
  transition: transform 250ms ease, border-color 250ms ease;
}
.news-card:hover { transform: translateY(-6px); border-color: rgba(222, 205, 255, 0.42); }
.news-card-image { position: absolute; inset: 0; z-index: -2; object-fit: cover; width: 100%; height: 100%; transition: transform 600ms ease; }
.news-card:hover .news-card-image { transform: scale(1.035); }
.news-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 25%, rgba(7, 8, 22, 0.22) 45%, rgba(7, 8, 22, 0.97) 89%); }
.news-card-content { width: 100%; padding: 30px 27px; }
.news-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; color: var(--gold-soft); font-size: 0.72rem; font-weight: 900; letter-spacing: 0.12em; text-transform: uppercase; }
.news-card h3 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.4rem, 2vw, 1.78rem); line-height: 1.14; text-wrap: balance; }
.news-card p { margin: 13px 0 0; color: #d8d2e3; font-size: 0.94rem; line-height: 1.55; }
.card-read { display: inline-block; margin-top: 17px; color: var(--gold-soft); font-size: 0.8rem; font-weight: 900; letter-spacing: 0.07em; text-transform: uppercase; }

.video-section { padding-top: 18px; }
.latest-video-card { overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(300px, .75fr); border: 1px solid rgba(224,205,255,.2); border-radius: 28px; background: linear-gradient(145deg, rgba(25,28,59,.97), rgba(9,12,30,.98)); box-shadow: var(--shadow); }
.video-frame { position: relative; min-height: 420px; background: #02030a; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-copy { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: clamp(30px, 5vw, 58px); }
.video-copy h3 { margin: 11px 0 15px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2rem, 3.5vw, 3.15rem); line-height: 1; }
.video-copy p { margin: 0 0 24px; color: var(--muted); }

.discord-wrap { padding: 18px 0 clamp(74px, 10vw, 132px); }
.discord-banner {
  position: relative;
  min-height: 400px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: clamp(34px, 6vw, 74px);
  border: 1px solid rgba(230, 212, 255, 0.2);
  border-radius: 30px;
  background-image: linear-gradient(90deg, rgba(11, 12, 31, 0.05), rgba(11, 12, 31, 0.28) 35%, rgba(11, 12, 31, 0.96) 74%), url("../assets/wallpaper-warrior.webp");
  background-position: center;
  background-size: cover;
  box-shadow: var(--shadow);
}
.discord-copy { width: min(490px, 100%); }
.discord-copy h2 { margin: 8px 0 14px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2rem, 4.4vw, 3.8rem); line-height: 1; letter-spacing: -0.045em; }
.discord-copy p { margin: 0 0 24px; color: #ded8e8; font-size: 1.03rem; }
.site-footer { padding: 28px 18px; color: rgba(229, 222, 240, 0.62); border-top: 1px solid var(--line); background: #080a18; font-size: 0.82rem; text-align: center; }

.page-hero { min-height: 360px; display: grid; align-items: end; background-position: center; background-size: cover; }
.news-page-hero { background-image: linear-gradient(90deg, rgba(7, 9, 22, 0.95), rgba(7, 9, 22, 0.38) 62%, rgba(7, 9, 22, 0.58)), linear-gradient(0deg, #0b0e21, transparent 65%), url("../assets/wallpaper-forest.webp"); }
.community-page-hero { background-image: linear-gradient(90deg, rgba(7, 9, 22, 0.95), rgba(7, 9, 22, 0.35) 60%, rgba(7, 9, 22, 0.64)), linear-gradient(0deg, #0b0e21, transparent 65%), url("../assets/wallpaper-anomaly.webp"); }
.clans-page-hero { background-image: linear-gradient(90deg, rgba(7, 9, 22, 0.96), rgba(7, 9, 22, 0.32) 60%, rgba(7, 9, 22, 0.7)), linear-gradient(0deg, #0b0e21, transparent 65%), url("../assets/wallpaper-warrior.webp"); }
.page-hero-inner { width: min(1160px, calc(100% - 36px)); margin: 0 auto; padding: 78px 0 58px; }
.page-hero h1 { margin-bottom: 12px; font-size: clamp(2.8rem, 6vw, 5rem); }
.page-hero p { max-width: 610px; margin: 0; color: #ded9e7; font-size: 1.05rem; }
.content-section { padding: 55px 0 100px; }
.content-toolbar { display: flex; align-items: end; justify-content: space-between; gap: 22px; margin-bottom: 30px; }
.content-toolbar h2 { font-size: clamp(1.9rem, 3.5vw, 2.8rem); }
.content-toolbar p { margin: 8px 0 0; color: var(--muted); }

.archive-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.archive-card {
  overflow: hidden;
  display: grid;
  grid-template-columns: 42% 1fr;
  min-height: 285px;
  color: white;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(24, 26, 56, 0.97), rgba(11, 13, 32, 0.97));
  box-shadow: 0 20px 55px rgba(2, 3, 12, 0.28);
  text-decoration: none;
  transition: transform 220ms ease, border-color 220ms ease;
}
.archive-card:hover { transform: translateY(-4px); border-color: rgba(220, 195, 255, 0.42); }
.archive-image { width: 100%; height: 100%; min-height: 285px; object-fit: cover; }
.archive-body { display: flex; flex-direction: column; align-items: flex-start; padding: 27px; }
.archive-body h3 { margin: 9px 0; font-family: Georgia, "Times New Roman", serif; font-size: 1.48rem; line-height: 1.16; }
.archive-body p { margin: 0; color: var(--muted); font-size: 0.94rem; line-height: 1.55; }
.archive-date { color: var(--gold); font-size: 0.7rem; font-weight: 900; letter-spacing: 0.13em; text-transform: uppercase; }
.created-chip { display: inline-flex; margin-left: 5px; padding: 3px 7px; color: #e1d2ff; border: 1px solid rgba(187, 152, 255, 0.32); border-radius: 999px; background: rgba(137, 87, 221, 0.16); font-size: 0.62rem; }
.archive-card .card-read { margin-top: auto; padding-top: 17px; }

.danger-button { color: #ffe8ec; border-color: rgba(255,130,151,.42); background: linear-gradient(135deg, rgba(142,35,63,.9), rgba(74,26,53,.92)); }
.clan-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.clan-empty { grid-column: 1 / -1; }
.clan-card { position: relative; min-height: 390px; overflow: hidden; display: flex; align-items: flex-end; color: white; border: 1px solid rgba(226,207,255,.2); border-radius: 27px; background: #11162e; box-shadow: var(--shadow); text-decoration: none; isolation: isolate; transition: transform 220ms ease, border-color 220ms ease; }
.clan-card:hover { transform: translateY(-5px); border-color: rgba(255,226,158,.5); }
.clan-card-cover, .clan-card-shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.clan-card-cover { z-index: -2; object-fit: cover; transition: transform 500ms ease; }
.clan-card:hover .clan-card-cover { transform: scale(1.035); }
.clan-card-shade { z-index: -1; background: linear-gradient(180deg, rgba(4,6,17,.08), rgba(5,7,20,.34) 36%, rgba(6,8,23,.98) 88%); }
.clan-card-body { width: 100%; display: grid; grid-template-columns: 92px 1fr; align-items: end; gap: 18px; padding: 30px; }
.clan-card-avatar { width: 92px; height: 92px; object-fit: cover; border: 4px solid rgba(255,236,184,.88); border-radius: 24px; background: #171a36; box-shadow: 0 12px 32px rgba(0,0,0,.42); }
.clan-state, .membership-chip, .role-chip { display: inline-flex; align-items: center; width: max-content; padding: 4px 9px; color: #2b2109; border-radius: 999px; background: linear-gradient(110deg, #fff0ad, #efc861); font-size: .66rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.clan-card h3 { margin: 7px 0 8px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.7rem, 3vw, 2.45rem); line-height: 1; }
.clan-card p { display: -webkit-box; overflow: hidden; margin: 0; color: #dcd6e5; font-size: .91rem; line-height: 1.5; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.clan-card-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 14px; color: var(--gold-soft); font-size: .72rem; font-weight: 800; }

.clan-view { background: #0b0e21; }
.clan-hero { position: relative; height: min(470px, 48vw); min-height: 330px; overflow: hidden; }
.clan-hero > img, .clan-hero-shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.clan-hero > img { object-fit: cover; }
.clan-hero-shade { background: linear-gradient(180deg, rgba(4,6,16,.16), rgba(5,7,19,.35) 48%, #0b0e21 100%); }
.clan-back { position: absolute; top: 34px; left: max(20px, calc((100% - 1120px) / 2)); z-index: 2; padding: 9px 14px; border: 1px solid rgba(255,234,177,.3); border-radius: 12px; background: rgba(5,10,25,.68); backdrop-filter: blur(10px); }
.clan-shell { width: min(1120px, calc(100% - 36px)); margin: 0 auto; padding-bottom: 110px; }
.clan-identity { position: relative; display: grid; grid-template-columns: 170px minmax(0, 1fr) auto; align-items: end; gap: 24px; margin-top: -96px; padding-bottom: 34px; border-bottom: 1px solid var(--line); }
.clan-avatar { width: 170px; height: 170px; object-fit: cover; border: 7px solid #0b0e21; border-radius: 38px; background: #171a36; box-shadow: 0 18px 46px rgba(0,0,0,.42); }
.clan-identity h1 { margin: 7px 0 8px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.5rem, 6vw, 5rem); line-height: .95; }
.clan-identity p { margin: 0; color: var(--gold-soft); }
.clan-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 10px; padding-bottom: 8px; }
.clan-summary { max-width: 850px; margin: 38px 0 54px; color: #e4deeb; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.1rem, 2vw, 1.35rem); line-height: 1.8; white-space: pre-line; }
.clan-section { margin-top: 58px; }
.clan-panel { padding: 26px; border: 1px solid var(--line); border-radius: 22px; background: linear-gradient(145deg, rgba(25,28,59,.96), rgba(10,13,31,.97)); box-shadow: 0 18px 52px rgba(2,3,12,.24); }
.clan-panel h2, .clan-panel h3 { margin: 7px 0 14px; font-family: Georgia, "Times New Roman", serif; }
.clan-panel h2 { font-size: 2rem; }
.clan-panel h3 { font-size: 1.35rem; }
.clan-join-panel { max-width: 760px; margin: 0 auto 52px; }
.locked-clan-news { padding: 54px 28px; color: var(--muted); border: 1px dashed rgba(255,225,154,.3); border-radius: 24px; background: rgba(13,16,38,.7); text-align: center; }
.locked-clan-news > span { color: var(--gold); font-size: 2rem; }
.locked-clan-news h3 { margin: 9px 0 4px; color: white; font-family: Georgia, "Times New Roman", serif; font-size: 1.7rem; }
.locked-clan-news p { margin: 0; }
.clan-news-list { display: grid; gap: 20px; }
.clan-news-card { overflow: hidden; display: grid; grid-template-columns: minmax(230px, 35%) 1fr; border: 1px solid var(--line); border-radius: 23px; background: linear-gradient(145deg, #191c3a, #0c0f26); box-shadow: 0 18px 50px rgba(2,3,12,.25); }
.clan-news-card > img { width: 100%; height: 100%; min-height: 280px; object-fit: cover; }
.clan-news-copy { padding: 28px; }
.clan-news-card > .clan-news-copy:first-child { grid-column: 1 / -1; }
.clan-news-copy h3 { margin: 9px 0 15px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.65rem, 3vw, 2.35rem); line-height: 1.05; }
.clan-news-body p { margin: 0 0 15px; color: #ded8e7; line-height: 1.7; }
.clan-management-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 20px; }
.clan-members-panel { margin-top: 20px; }
.clan-request { display: grid; grid-template-columns: 1fr auto; gap: 18px; padding: 18px 0; border-top: 1px solid var(--line); }
.clan-request:first-of-type { border-top: 0; }
.clan-request h3 { margin: 5px 0; font-size: 1.05rem; }
.clan-request p { margin: 4px 0; color: var(--muted); font-size: .88rem; }
.request-actions { display: grid; align-content: center; gap: 8px; }
.clan-member-list { display: grid; gap: 9px; }
.clan-member-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 10px 12px; border: 1px solid rgba(229,211,255,.1); border-radius: 15px; background: rgba(4,7,20,.28); }
.clan-member-row > a { min-width: 0; display: flex; align-items: center; gap: 11px; color: white; text-decoration: none; }
.clan-member-row img { width: 45px; height: 45px; object-fit: cover; border-radius: 50%; }
.clan-member-row span span { display: block; }
.clan-member-row small { display: block; color: var(--muted); }
.clan-member-row > div { display: flex; justify-content: flex-end; align-items: center; flex-wrap: wrap; gap: 7px; }
.role-chip { font-size: .59rem; }
.role-chip-violet { color: #fff; background: linear-gradient(110deg, #7046bf, #427a9b); }
.muted-copy { color: var(--muted); }

.article-view { background: #0b0e21; }
.article-hero { position: relative; min-height: 520px; display: flex; align-items: end; overflow: hidden; isolation: isolate; }
.article-hero-image { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.article-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(5, 7, 18, 0.18), rgba(5, 7, 18, 0.45) 45%, #0b0e21 100%), linear-gradient(90deg, rgba(5, 7, 18, 0.75), transparent 70%); }
.article-hero-inner { width: min(900px, calc(100% - 36px)); margin: 0 auto; padding: 85px 0 48px; }
.article-back { display: inline-flex; margin-bottom: 32px; color: var(--gold-soft); font-weight: 800; text-decoration: none; }
.article-hero h1 { max-width: 850px; margin: 11px 0 8px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.6rem, 6vw, 5rem); line-height: 0.98; letter-spacing: -0.045em; text-wrap: balance; }
.article-meta { color: var(--gold-soft); font-size: 0.8rem; font-weight: 900; letter-spacing: 0.13em; text-transform: uppercase; }
.article-body { width: min(820px, calc(100% - 36px)); margin: 0 auto; padding: 60px 0 110px; }
.article-body p { margin: 0 0 24px; color: #e3ddea; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.08rem, 1.8vw, 1.24rem); line-height: 1.9; }
.article-inside-image { width: min(980px, calc(100% - 36px)); max-height: 640px; margin: 20px auto 54px; object-fit: cover; border: 1px solid var(--line); border-radius: 26px; box-shadow: var(--shadow); }
.article-admin-actions { display: flex; justify-content: flex-end; align-items: center; gap: 16px; width: min(820px, calc(100% - 36px)); margin: -70px auto 0; padding-bottom: 60px; }

.community-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.profile-card { overflow: hidden; color: white; border: 1px solid var(--line); border-radius: 24px; background: linear-gradient(145deg, rgba(27, 29, 62, 0.97), rgba(11, 13, 31, 0.97)); box-shadow: 0 22px 62px rgba(2, 3, 12, 0.3); text-decoration: none; transition: transform 220ms ease, border-color 220ms ease; }
.profile-card:hover { transform: translateY(-5px); border-color: rgba(220, 195, 255, 0.42); }
.profile-card-cover { height: 150px; background: linear-gradient(135deg, #472d82, #226b77); object-fit: cover; width: 100%; }
.profile-card-body { position: relative; padding: 52px 23px 25px; }
.profile-card-avatar { position: absolute; top: -44px; left: 22px; width: 82px; height: 82px; object-fit: cover; border: 4px solid #151733; border-radius: 50%; background: linear-gradient(135deg, #8d66eb, #2b7c8d); }
.profile-card h3 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 1.5rem; }
.profile-handle { color: var(--gold); font-size: 0.78rem; }
.profile-card p { min-height: 3em; margin: 11px 0 0; color: var(--muted); font-size: 0.92rem; line-height: 1.5; }
.profile-card-stats { display: flex; gap: 18px; margin-top: 18px; color: #eee8f5; font-size: 0.8rem; font-weight: 800; }

.profile-view { background: #0b0e21; }
.profile-cover { height: min(390px, 42vw); min-height: 250px; background: linear-gradient(135deg, #382469, #1f6570); object-fit: cover; width: 100%; }
.profile-shell { width: min(1080px, calc(100% - 36px)); margin: 0 auto; padding-bottom: 110px; }
.profile-header { position: relative; display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; margin-top: -72px; padding-bottom: 32px; border-bottom: 1px solid var(--line); }
.profile-identity { display: flex; align-items: end; gap: 22px; min-width: 0; }
.profile-avatar { width: 150px; height: 150px; flex: 0 0 auto; object-fit: cover; border: 6px solid #0b0e21; border-radius: 50%; background: linear-gradient(135deg, #8d66eb, #2b7c8d); box-shadow: 0 15px 40px rgba(0,0,0,.35); }
.profile-name { padding-bottom: 12px; }
.profile-name h1 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2rem, 4vw, 3.3rem); line-height: 1; }
.profile-name p { margin: 7px 0 0; color: var(--gold); }
.profile-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 9px; padding-bottom: 12px; }
.profile-bio { max-width: 750px; margin: 29px 0; color: #d9d3e2; font-size: 1.02rem; }
.profile-stats { display: flex; gap: 28px; margin-bottom: 40px; }
.profile-stats strong { display: block; font-size: 1.2rem; }
.profile-stats span { color: var(--muted); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; }
.profile-section { margin-top: 48px; }
.profile-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 22px; }
.profile-section-heading h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 2rem; }
.character-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.character-card { overflow: hidden; display: grid; grid-template-columns: 42% 1fr; min-height: 340px; border: 1px solid var(--line); border-radius: 24px; background: linear-gradient(145deg, #1a1d3d, #0e112a); box-shadow: 0 20px 55px rgba(2,3,12,.26); }
.character-image { width: 100%; height: 100%; min-height: 340px; object-fit: cover; background: linear-gradient(135deg, #422b78, #236576); }
.character-body { display: flex; flex-direction: column; padding: 26px; }
.character-body h3 { margin: 8px 0 2px; font-family: Georgia, "Times New Roman", serif; font-size: 1.65rem; line-height: 1.05; }
.character-meta { color: var(--gold); font-size: 0.76rem; font-weight: 900; letter-spacing: 0.08em; text-transform: uppercase; }
.character-story { margin: 14px 0; color: var(--muted); font-size: 0.9rem; line-height: 1.55; }
.character-extra { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); color: #d8d2e2; font-size: 0.8rem; }
.character-extra strong { color: var(--gold-soft); }
.character-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 14px; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.gallery-item { position: relative; aspect-ratio: 1; overflow: hidden; padding: 0; border: 0; border-radius: 7px; background: #171a34; cursor: pointer; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 300ms ease; }
.gallery-item:hover img { transform: scale(1.05); }
.empty-inline { padding: 36px; color: var(--muted); border: 1px dashed rgba(218,197,255,.23); border-radius: 18px; text-align: center; }

.map-view {
  position: relative;
  height: 100svh;
  min-height: 480px;
  overflow: hidden;
  isolation: isolate;
  cursor: grab;
  touch-action: none;
  user-select: none;
  background: radial-gradient(ellipse at center, #0b4964, #041c2b 60%, #020910);
}
.map-view.is-dragging { cursor: grabbing; }
.map-view.is-placing { cursor: crosshair; }
.map-view::before { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; background: linear-gradient(to bottom, rgba(1, 8, 14, 0.44), transparent 17%, transparent 80%, rgba(1, 7, 13, 0.72)), radial-gradient(ellipse at center, transparent 43%, rgba(0, 7, 13, 0.58) 108%); }
#worldCanvas { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; }
.map-clouds { position: absolute; inset: 0; z-index: 3; overflow: hidden; pointer-events: none; }
.map-cloud { position: absolute; left: -36vw; width: clamp(320px, 34vw, 720px); height: clamp(85px, 12vw, 230px); opacity: .2; filter: blur(16px); background: radial-gradient(ellipse at 22% 62%, rgba(255,255,255,.88) 0 18%, transparent 44%), radial-gradient(ellipse at 50% 42%, rgba(245,252,255,.82) 0 24%, transparent 52%), radial-gradient(ellipse at 78% 64%, rgba(255,255,255,.72) 0 18%, transparent 46%); animation: cloud-cross 44s linear infinite; }
.map-cloud-a { top: 8%; }
.map-cloud-b { top: 42%; width: clamp(280px, 27vw, 560px); opacity: .14; animation-duration: 58s; animation-delay: -31s; }
.map-cloud-c { top: 69%; width: clamp(360px, 40vw, 820px); opacity: .17; animation-duration: 51s; animation-delay: -14s; }
@keyframes cloud-cross { from { transform: translate3d(-12vw, 0, 0); } to { transform: translate3d(158vw, 2vh, 0); } }
.map-overlay { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.continent-label, .map-pin { position: absolute; pointer-events: auto; transform: translate(-50%, -50%); }
.continent-label { padding: 6px 11px; color: #fff4cc; border: 1px solid rgba(255, 233, 171, 0.28); border-radius: 999px; background: rgba(4, 20, 30, 0.62); box-shadow: 0 6px 20px rgba(0,0,0,.32); font-family: Georgia, "Times New Roman", serif; font-size: clamp(0.72rem, 1.2vw, 1rem); font-weight: 900; letter-spacing: 0.08em; text-shadow: 0 2px 8px #000; white-space: nowrap; cursor: pointer; backdrop-filter: blur(7px); transition: color 160ms ease, background 160ms ease, border-color 160ms ease, box-shadow 160ms ease; }
.continent-label:hover, .continent-label.is-selected { color: #2d2206; border-color: #fff2ad; background: linear-gradient(110deg, #fff1aa, #f5bc35); box-shadow: 0 0 30px rgba(255,211,74,.68); }
.map-pin { width: 50px; height: 50px; padding: 4px; color: #1b1730; border: 2px solid #ffe7a1; border-radius: 16px 16px 16px 4px; background: linear-gradient(135deg, #ffe7a1, #caa1ff); box-shadow: 0 8px 24px rgba(0,0,0,.45), 0 0 20px rgba(242,201,108,.2); cursor: pointer; transition: transform 160ms ease; }
.map-pin:hover { transform: translate(-50%, -50%) scale(1.1); }
.map-pin img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px 10px 10px 2px; }
.map-pin.city-pin { display: grid; place-items: center; }
.city-icon { width: 25px; height: 25px; fill: #211638; }
.pin-label { position: absolute; left: 50%; top: calc(100% + 6px); transform: translateX(-50%); padding: 3px 8px; color: white; border-radius: 999px; background: rgba(4,16,27,.78); font-size: 0.68rem; font-weight: 900; letter-spacing: .06em; white-space: nowrap; text-shadow: 0 1px 5px #000; }
.map-brand { position: absolute; top: 20px; left: 22px; z-index: 7; display: flex; align-items: center; gap: 12px; padding: 7px 12px 7px 7px; border: 1px solid rgba(255,232,169,.24); border-radius: 16px; background: rgba(3,20,31,.56); text-decoration: none; filter: drop-shadow(0 5px 16px rgba(0,0,0,.62)); backdrop-filter: blur(10px); transition: background 180ms ease, transform 180ms ease; }
.map-brand:hover { background: rgba(8,39,54,.82); transform: translateY(-1px); }
.map-brand-mark { width: 42px; height: 42px; border: 1px solid rgba(255,232,169,.48); border-radius: 14px; }
.map-brand-copy { display: grid; line-height: 1.15; }
.map-brand-copy strong { font-size: 1.24rem; }
.map-admin-tools { position: absolute; top: 20px; left: 50%; z-index: 8; display: flex; align-items: center; gap: 10px; transform: translateX(-50%); }
.map-admin-hint { padding: 7px 11px; color: var(--gold-soft); border: 1px solid rgba(255,231,169,.24); border-radius: 999px; background: rgba(3,20,31,.76); font-size: .74rem; backdrop-filter: blur(10px); }
.map-controls { position: absolute; right: 18px; bottom: 22px; z-index: 8; display: grid; gap: 8px; }
.map-control { width: 46px; height: 46px; display: grid; place-items: center; padding: 0; color: white; border: 1px solid rgba(238,206,129,.38); border-radius: 13px; background: rgba(3,20,31,.78); box-shadow: 0 10px 30px rgba(0,0,0,.34); font-size: 1.35rem; backdrop-filter: blur(12px); cursor: pointer; }
.map-control:hover { border-color: rgba(255,231,169,.82); background: rgba(10,43,59,.92); }
.map-hint { position: absolute; left: 50%; bottom: 22px; z-index: 7; transform: translateX(-50%); padding: 8px 15px; color: rgba(243,232,205,.78); border: 1px solid rgba(233,196,111,.26); border-radius: 999px; background: rgba(3,20,31,.78); box-shadow: 0 8px 28px rgba(0,0,0,.34); font-size: .78rem; white-space: nowrap; backdrop-filter: blur(12px); pointer-events: none; transition: opacity 300ms ease, transform 300ms ease; }
.map-hint.is-hidden { opacity: 0; transform: translate(-50%, 8px); }
.map-detail { position: absolute; top: 20px; right: 20px; z-index: 10; width: min(360px, calc(100% - 40px)); max-height: calc(100% - 110px); overflow-y: auto; padding: 26px; border: 1px solid rgba(232,212,255,.26); border-radius: 22px; background: rgba(8,13,31,.91); box-shadow: 0 22px 70px rgba(0,0,0,.48); backdrop-filter: blur(18px); opacity: 0; pointer-events: none; transform: translateX(22px); transition: opacity 200ms ease, transform 200ms ease; }
.map-detail.is-open { opacity: 1; pointer-events: auto; transform: translateX(0); }
.map-detail-close { position: absolute; top: 10px; right: 12px; width: 34px; height: 34px; color: white; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,.06); font-size: 1.3rem; cursor: pointer; }
.map-detail-image { display: none; width: 100%; aspect-ratio: 16/9; margin-bottom: 18px; border-radius: 14px; background-position: center; background-size: cover; }
.map-detail-image.has-image { display: block; }
.map-detail-kicker { color: var(--gold); font-size: .7rem; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.map-detail h2 { margin: 7px 0 10px; font-family: Georgia, "Times New Roman", serif; font-size: 2rem; line-height: 1; }
.map-detail p { margin: 0; color: var(--muted); }
.map-detail .text-button { margin-top: 20px; }
.map-loading { position: absolute; inset: 0; z-index: 20; display: grid; place-items: center; background: radial-gradient(circle at center, #0b3a50, #03131f 58%, #020a10); transition: opacity 450ms ease, visibility 450ms; }
.map-loading.is-ready { opacity: 0; visibility: hidden; }
.loading-inner { display: grid; justify-items: center; gap: 16px; color: rgba(243,232,205,.78); font-family: Georgia, "Times New Roman", serif; letter-spacing: .1em; }
.loading-orbit { position: relative; width: 54px; height: 54px; border: 1px solid rgba(231,191,104,.28); border-radius: 50%; animation: orbit 1.4s linear infinite; }
.loading-orbit::after { content: ""; position: absolute; top: 3px; left: 50%; width: 8px; height: 8px; border-radius: 50%; background: var(--gold-soft); box-shadow: 0 0 16px rgba(255,229,164,.76); transform: translateX(-50%); }
@keyframes orbit { to { transform: rotate(360deg); } }

.modal { width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: 20px; color: var(--ink); border: 0; background: rgba(3,4,13,.78); backdrop-filter: blur(13px); }
.modal[open] { display: grid; place-items: center; }
.modal::backdrop { background: transparent; }
.modal-card { position: relative; width: min(560px, 100%); max-height: calc(100svh - 40px); overflow-y: auto; padding: 30px; border: 1px solid rgba(222,204,255,.27); border-radius: 25px; background: linear-gradient(145deg, #1b1d3c, #0d1028); box-shadow: 0 35px 100px rgba(0,0,0,.58); }
.modal-card-large { width: min(720px, 100%); }
.modal-close { position: absolute; top: 14px; right: 14px; z-index: 2; width: 39px; height: 39px; display: grid; place-items: center; padding: 0; color: white; border: 1px solid var(--line); border-radius: 11px; background: rgba(255,255,255,.05); font-size: 1.5rem; cursor: pointer; }
.modal-heading { padding-right: 42px; margin-bottom: 22px; }
.modal-heading h2 { margin: 7px 0 0; font-family: Georgia, "Times New Roman", serif; font-size: 2rem; line-height: 1; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; padding: 5px; margin-bottom: 22px; border: 1px solid var(--line); border-radius: 14px; background: rgba(3,5,17,.42); }
.auth-tab { min-height: 42px; color: var(--muted); border: 0; border-radius: 10px; background: transparent; font-weight: 800; cursor: pointer; }
.auth-tab.is-active { color: #191329; background: linear-gradient(115deg, #ffe7a2, #ebc263); }
.form-stack { display: grid; gap: 17px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.field { display: grid; gap: 7px; }
.field > span { color: #eee9f5; font-size: .84rem; font-weight: 800; }
.field input, .field textarea, .field select { width: 100%; color: white; border: 1px solid rgba(222,205,255,.18); border-radius: 12px; outline: none; background: rgba(7,9,26,.74); transition: border-color 160ms ease, box-shadow 160ms ease; }
.field input, .field select { min-height: 46px; padding: 10px 13px; }
.field textarea { resize: vertical; padding: 12px 13px; line-height: 1.5; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--violet-bright); box-shadow: 0 0 0 3px rgba(151,105,238,.15); }
.file-field input { padding: 8px; }
.field small, .form-note { color: rgba(218,211,230,.65); font-size: .77rem; }
.form-note { margin: 0; text-align: center; }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 4px; }
.image-viewer { background: rgba(2,3,10,.92); }
.image-viewer figure { max-width: min(1100px, 94vw); max-height: 90vh; margin: 0; }
.image-viewer img { max-height: 82vh; margin: auto; border-radius: 14px; object-fit: contain; }
.image-viewer figcaption { margin-top: 12px; color: white; text-align: center; }
.image-close { position: fixed; }

.crop-card { width: min(850px, 100%); }
.crop-help { margin: -7px 0 18px; color: var(--muted); }
.crop-canvas-wrap { width: 100%; overflow: hidden; border: 2px solid rgba(255,226,159,.42); border-radius: 19px; background: #050815; box-shadow: inset 0 0 0 1px rgba(255,255,255,.05), 0 18px 50px rgba(0,0,0,.3); aspect-ratio: 16 / 5; }
.crop-canvas-wrap.is-avatar { width: min(500px, 100%); margin-inline: auto; border-radius: 50%; aspect-ratio: 1; }
#cropCanvas { width: 100%; height: 100%; object-fit: contain; cursor: grab; touch-action: none; }
#cropCanvas.is-dragging { cursor: grabbing; }
.crop-zoom-field { margin-top: 18px; }
.crop-zoom-field input { padding: 0; accent-color: var(--gold); }
.crop-result { display: flex; align-items: center; gap: 12px; padding: 10px 12px; color: var(--gold-soft); border: 1px solid rgba(255,226,159,.22); border-radius: 13px; background: rgba(245,199,99,.06); font-size: .78rem; font-weight: 800; }
.crop-result img { width: 58px; height: 58px; object-fit: cover; border-radius: 50%; }
.crop-result-cover img { width: 105px; height: 44px; border-radius: 8px; }

.submap-viewer { padding: 0; background: rgba(2,6,13,.96); }
.submap-viewer[open] { display: block; }
.submap-shell { width: 100%; height: 100svh; display: grid; grid-template-rows: auto minmax(0, 1fr); }
.submap-header { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 20px; border-bottom: 1px solid rgba(235,213,255,.18); background: rgba(7,13,29,.94); }
.submap-header h2 { margin: 4px 0 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.35rem, 3vw, 2rem); line-height: 1; }
.submap-actions { display: flex; align-items: center; gap: 8px; }
.submap-actions .map-control { position: static; width: 42px; height: 42px; }
.submap-close { position: static; flex: 0 0 auto; }
.submap-stage { min-width: 0; min-height: 0; overflow: auto; display: grid; place-items: start center; padding: 24px; background: radial-gradient(circle at center, #143650, #030b13 72%); }
.submap-stage img { width: 100%; height: auto; object-fit: contain; transform-origin: top center; transition: width 180ms ease; }

.toast { position: fixed; left: 50%; bottom: 24px; z-index: 500; max-width: calc(100% - 32px); padding: 12px 18px; color: white; border: 1px solid rgba(226,211,255,.3); border-radius: 999px; background: rgba(15,18,42,.96); box-shadow: 0 16px 50px rgba(0,0,0,.38); font-size: .86rem; font-weight: 800; opacity: 0; pointer-events: none; transform: translate(-50%, 12px); transition: opacity 180ms ease, transform 180ms ease; }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.empty-state { min-height: calc(100svh - var(--header-height)); display: grid; place-items: center; align-content: center; gap: 15px; padding: 30px; text-align: center; }
.empty-state h1 { max-width: 760px; font-size: clamp(2.5rem, 7vw, 5rem); }
.empty-state .eyebrow { margin: auto; }

:focus-visible { outline: 2px solid var(--gold-soft); outline-offset: 3px; }

@media (max-width: 1060px) {
  .brand-label { display: none; }
  .main-nav { margin-left: auto; }
  .nav-link { padding-inline: 10px; font-size: .72rem; }
  .account-chip strong { display: none; }
  .community-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .character-grid { grid-template-columns: 1fr; }
  .clan-identity { grid-template-columns: 145px minmax(0, 1fr); }
  .clan-avatar { width: 145px; height: 145px; }
  .clan-actions { grid-column: 2; justify-content: flex-start; }
}

@media (max-width: 820px) {
  .hero { min-height: 760px; align-items: end; background-image: linear-gradient(0deg, rgba(7,9,24,.98), rgba(7,9,24,.72) 52%, rgba(7,9,24,.08) 85%), url("../assets/wallpaper-city.webp"); background-position: center, 37% center; }
  .hero-inner { justify-content: center; padding: 310px 0 75px; }
  .news-grid { grid-template-columns: 1fr 1fr; }
  .news-card:last-child { grid-column: 1 / -1; min-height: 390px; }
  .archive-grid { grid-template-columns: 1fr; }
  .discord-banner { align-items: end; min-height: 560px; background-image: linear-gradient(0deg, rgba(11,12,31,.97), rgba(11,12,31,.42) 58%, rgba(11,12,31,.03)), url("../assets/wallpaper-warrior.webp"); }
  .profile-header { align-items: flex-start; flex-direction: column; }
  .profile-actions { padding-left: 172px; margin-top: -70px; }
  .latest-video-card { grid-template-columns: 1fr; }
  .video-frame { min-height: 0; aspect-ratio: 16 / 9; }
  .clan-grid { grid-template-columns: 1fr; }
  .clan-management-grid { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  :root { --header-height: 122px; }
  .site-header { height: var(--header-height); }
  .header-inner { position: relative; width: calc(100% - 20px); height: 66px; align-items: center; }
  .brand-emblem { width: 42px; height: 42px; border-radius: 13px; }
  .main-nav { position: absolute; top: 68px; left: -10px; right: -10px; height: 53px; display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--line); background: rgba(8,10,27,.94); }
  .nav-link { display: grid; place-items: center; padding: 8px 3px; border-radius: 0; font-size: .65rem; }
  .nav-link[aria-current="page"]::after { left: 25%; right: 25%; bottom: 4px; }
  .account-chip { padding: 4px; }
  .account-chip-avatar { width: 34px; height: 34px; }
  .hero { min-height: 700px; }
  .hero-inner { width: calc(100% - 28px); padding-top: 280px; }
  .hero h1 { font-size: clamp(2.45rem, 13vw, 4rem); }
  .section-heading, .content-toolbar { align-items: flex-start; flex-direction: column; }
  .news-grid { grid-template-columns: 1fr; }
  .news-card, .news-card:last-child { grid-column: auto; min-height: 440px; }
  .discord-banner { min-height: 530px; padding: 28px 24px; border-radius: 22px; background-position: 42% center; }
  .archive-card { grid-template-columns: 1fr; }
  .archive-image { min-height: 220px; max-height: 260px; }
  .community-grid { grid-template-columns: 1fr; }
  .profile-cover { min-height: 225px; }
  .profile-shell { width: calc(100% - 24px); }
  .profile-header { margin-top: -56px; }
  .profile-identity { align-items: flex-start; flex-direction: column; gap: 12px; }
  .profile-avatar { width: 112px; height: 112px; }
  .profile-name { padding: 0; }
  .profile-actions { width: 100%; padding: 0; margin: 0; justify-content: flex-start; }
  .profile-actions .button { flex: 1; }
  .character-card { grid-template-columns: 1fr; }
  .character-image { min-height: 280px; max-height: 380px; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .form-grid { grid-template-columns: 1fr; }
  .form-actions { flex-direction: column-reverse; }
  .form-actions .button { width: 100%; }
  .modal { padding: 10px; }
  .modal-card { max-height: calc(100svh - 20px); padding: 25px 20px; border-radius: 19px; }
  .map-brand { top: 12px; left: 12px; }
  .map-brand-copy small { display: none; }
  .map-admin-tools { top: auto; left: 12px; bottom: 62px; transform: none; }
  .map-admin-hint { display: none; }
  .map-controls { right: 12px; bottom: 62px; }
  .map-control { width: 42px; height: 42px; }
  .map-hint { bottom: 12px; max-width: calc(100% - 24px); overflow: hidden; font-size: .68rem; text-overflow: ellipsis; }
  .map-detail { top: auto; left: 12px; right: 12px; bottom: 115px; width: auto; max-height: 52%; transform: translateY(20px); }
  .map-detail.is-open { transform: translateY(0); }
  .continent-label { font-size: .66rem; padding: 5px 8px; }
  .map-pin { width: 44px; height: 44px; }
  .article-hero { min-height: 460px; }
  .latest-video-card { border-radius: 20px; }
  .video-copy { padding: 27px 22px 30px; }
  .submap-header { align-items: flex-start; padding: 12px; }
  .submap-header .eyebrow { display: none; }
  .submap-actions { gap: 5px; }
  .submap-actions .map-control, .submap-close { width: 38px; height: 38px; }
  .submap-stage { padding: 10px; }
  .clan-card { min-height: 430px; }
  .clan-card-body { grid-template-columns: 70px 1fr; gap: 13px; padding: 23px 19px; }
  .clan-card-avatar { width: 70px; height: 70px; border-radius: 19px; }
  .clan-hero { min-height: 290px; }
  .clan-shell { width: calc(100% - 24px); }
  .clan-identity { grid-template-columns: 1fr; align-items: start; margin-top: -65px; }
  .clan-avatar { width: 125px; height: 125px; border-radius: 29px; }
  .clan-actions { grid-column: auto; justify-content: flex-start; }
  .clan-news-card { grid-template-columns: 1fr; }
  .clan-news-card > img { min-height: 220px; max-height: 300px; }
  .clan-request { grid-template-columns: 1fr; }
  .request-actions { display: flex; }
  .clan-member-row { align-items: flex-start; flex-direction: column; }
  .clan-member-row > div { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}
