/* Booty Bay Booty Call v2. Lagoon night, rum-amber lantern light, sunset coral, sailcloth.
   Fluid scale: everything sizes from the viewport with clamp(), tested 360px to 2560px. */
:root {
  --abyss: #050d11;
  --deep: #0b2229;
  --deep-2: #081a20;
  --deep-3: #113740;
  --panel: rgba(8, 20, 26, 0.86);
  --line: rgba(239, 227, 200, 0.12);
  --line-2: rgba(239, 227, 200, 0.22);
  --gold-line: rgba(214, 170, 92, 0.55);
  --sail: #efe3c8;
  --sail-2: #d8cbb0;
  --muted: #9db3ae;
  --rum: #f0a541;
  --rum-hi: #ffd98a;
  --coral: #e8604c;
  --glass: #3fb8a9;
  --discord: #5865f2;
  --ok: #6fe3a0;
  --warn: #f3c969;
  --radius: 6px;
  --display: "Pirata One", "Times New Roman", serif;
  --body: "Alegreya Sans", system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
  --wrap: min(1360px, 100% - 2 * var(--gutter));
  --fs-0: clamp(15px, 0.35vw + 14px, 17px);
  --fs-1: clamp(17px, 0.45vw + 15px, 20px);
  --fs-2: clamp(20px, 0.8vw + 16px, 26px);
  --fs-3: clamp(28px, 2vw + 18px, 46px);
  --fs-4: clamp(38px, 3.4vw + 20px, 72px);
  --topbar: 68px;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--topbar) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--abyss); color: var(--sail); font: 400 var(--fs-0)/1.55 var(--body); -webkit-font-smoothing: antialiased;
  min-height: 100vh; display: flex; flex-direction: column; overflow-x: hidden;
  background-image: radial-gradient(1400px 700px at 85% -10%, rgba(63, 184, 169, 0.08), transparent 60%), radial-gradient(1000px 600px at -10% 35%, rgba(240, 165, 65, 0.06), transparent 60%);
  background-attachment: fixed;
}
body.no-scroll, body.nav-open { overflow: hidden; }
main { flex: 1; outline: none; }
a { color: var(--rum-hi); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #fff1c4; }
h1, h2, h3, h4 { margin: 0 0 0.4em; line-height: 1.1; font-weight: 800; text-wrap: balance; }
h1 { font: 400 var(--fs-4)/1 var(--display); color: var(--rum-hi); letter-spacing: 0.01em; }
h2 { font: 400 var(--fs-3)/1.05 var(--display); color: var(--rum-hi); }
h3 { font-size: var(--fs-1); }
h4 { font-size: 15px; color: var(--muted); font-weight: 700; margin-top: 1.2em; }
p { margin: 0 0 0.8em; text-wrap: pretty; }
img { max-width: 100%; }
code { font: 600 0.92em ui-monospace, "Cascadia Mono", Consolas, monospace; background: rgba(239, 227, 200, 0.08); padding: 1px 6px; border-radius: 4px; color: var(--rum-hi); }
:focus-visible { outline: 2px solid var(--rum); outline-offset: 2px; border-radius: 3px; }
[hidden] { display: none !important; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--rum); color: #1a0f05; padding: 8px 14px; border-radius: var(--radius); }
.skip:focus { left: 8px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.center { text-align: center; }
.spacer { flex: 1; }
.c-ok { color: var(--ok); }
.wrap { width: var(--wrap); margin-inline: auto; }
.wicon { border-radius: 4px; border: 1px solid rgba(0, 0, 0, 0.7); box-shadow: 0 0 0 1px rgba(214, 170, 92, 0.35); vertical-align: middle; flex: none; }
.wicon.role { border-radius: 50%; }
.avatar { border-radius: 50%; vertical-align: middle; flex: none; background: var(--deep); }
.cname { font-weight: 800; }
.tick { display: inline-grid; place-items: center; width: 18px; height: 18px; margin-left: 6px; border-radius: 50%; background: rgba(111, 227, 160, 0.18); color: var(--ok); font-size: 12px; font-weight: 900; }

/* ------------------------------------------------------------------ the WoW frame: tooltip-dark panel, gold hairline, carved corners */
.frame {
  position: relative; background: linear-gradient(180deg, rgba(14, 33, 41, 0.92), rgba(6, 16, 21, 0.94)); border: 1px solid var(--gold-line); border-radius: 4px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.6), inset 0 0 0 3px rgba(214, 170, 92, 0.08), 0 18px 40px -24px rgba(0, 0, 0, 0.9);
}
.frame::before, .frame::after {
  content: ""; position: absolute; width: 18px; height: 18px; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M1 17V7c0-3.3 2.7-6 6-6h10' fill='none' stroke='%23d6aa5c' stroke-width='1.6'/%3E%3Cpath d='M4 17V9c0-2.8 2.2-5 5-5h8' fill='none' stroke='%23d6aa5c' stroke-opacity='.45'/%3E%3Ccircle cx='4.5' cy='4.5' r='1.6' fill='%23ffd98a'/%3E%3C/svg%3E") no-repeat;
}
.frame::before { top: -1px; left: -1px; }
.frame::after { bottom: -1px; right: -1px; transform: rotate(180deg); }

/* ------------------------------------------------------------------ buttons and controls */
.btn {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center; padding: 10px 18px; border-radius: var(--radius); border: 1px solid var(--line-2);
  background: var(--deep-3); color: var(--sail); font: 800 16px/1.1 var(--body); text-decoration: none; cursor: pointer; white-space: nowrap; transition: background 0.15s, border-color 0.15s, transform 0.08s, box-shadow 0.15s;
}
.btn:hover { background: #164751; color: #fff; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.55; cursor: progress; }
.btn-gold { background: linear-gradient(#ffe3a6, #f0a541 52%, #c3741f); color: #2a1606; border-color: #ffe9b8; text-shadow: 0 1px 0 rgba(255, 240, 200, 0.6); box-shadow: 0 2px 0 #6b3a0d, 0 10px 28px -10px rgba(240, 165, 65, 0.75); }
.btn-gold:hover { background: linear-gradient(#fff0c8, #f7b65c 52%, #d1842c); color: #2a1606; box-shadow: 0 2px 0 #6b3a0d, 0 12px 34px -8px rgba(240, 165, 65, 0.9); }
.btn-discord { background: var(--discord); border-color: #7983f5; color: #fff; }
.btn-discord:hover { background: #4752c4; color: #fff; }
.btn-ghost { background: rgba(5, 13, 17, 0.35); backdrop-filter: blur(4px); }
.btn-ghost:hover { background: rgba(239, 227, 200, 0.1); }
.btn-danger { color: #ff9d8c; border-color: rgba(232, 96, 76, 0.45); }
.btn-danger:hover { color: #ffc2b7; background: rgba(232, 96, 76, 0.12); }
.btn-sm { padding: 6px 12px; font-size: 14px; }
.btn-lg { padding: 14px 24px; font-size: 18px; }
.glyph { flex: none; }
.icon-btn { display: inline-grid; place-items: center; background: transparent; border: 1px solid var(--line); color: var(--sail); border-radius: var(--radius); width: 36px; height: 36px; cursor: pointer; font-size: 17px; line-height: 1; text-decoration: none; }
.icon-btn:hover { background: rgba(239, 227, 200, 0.08); color: #fff; }
.icon-btn.small { width: 26px; height: 26px; font-size: 13px; }
.link { background: none; border: 0; padding: 0; color: var(--rum-hi); font: inherit; font-size: 15px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.mini { background: rgba(239, 227, 200, 0.05); border: 1px solid var(--line); color: var(--sail); border-radius: 4px; padding: 3px 9px; font: 700 13px var(--body); cursor: pointer; }
.mini:hover { border-color: var(--line-2); }
.mini.on { background: rgba(240, 165, 65, 0.18); border-color: var(--rum); color: var(--rum-hi); }
.mini.att { display: inline-flex; gap: 4px; align-items: center; }
.chip { display: inline-flex; align-items: center; gap: 6px; background: transparent; border: 1px solid var(--line-2); color: var(--sail); border-radius: 999px; padding: 6px 14px; font: 700 15px var(--body); cursor: pointer; }
.chip:hover { border-color: var(--rum); }
.chip.on { background: var(--sail); color: var(--abyss); border-color: var(--sail); }
.chip b { font-weight: 900; opacity: 0.7; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.class-chips .chip.on { background: var(--c); border-color: var(--c); color: #111; }
.tag { display: inline-block; font: 800 12px/1 var(--body); letter-spacing: 0.02em; padding: 4px 7px; border-radius: 4px; background: rgba(239, 227, 200, 0.1); color: var(--sail); margin-left: 6px; text-transform: capitalize; vertical-align: middle; }
.tag[style*="--c"] { background: color-mix(in srgb, var(--c) 22%, transparent); color: var(--c); margin-left: 0; }
.tag-ok, .st-accepted { background: rgba(111, 227, 160, 0.15); color: var(--ok); }
.tag-warn, .st-waitlist, .st-pending { background: rgba(243, 201, 105, 0.15); color: var(--warn); }
.st-declined, .tag-pvp { background: rgba(232, 96, 76, 0.16); color: #ff9d8c; }
.tag-raid { background: rgba(240, 165, 65, 0.16); color: var(--rum-hi); }
.tag-event { background: rgba(201, 160, 255, 0.16); color: #d8bcff; }
.tag-news { background: rgba(63, 184, 169, 0.16); color: #7fe0d3; }
.rank { font: 800 12px var(--body); padding: 3px 8px; border-radius: 4px; background: rgba(239, 227, 200, 0.1); }
.rank-gm { background: linear-gradient(#ffd98a, #f0a541); color: #2a1606; }
.rank-officer { background: rgba(63, 184, 169, 0.2); color: #8ef0e2; }
input, select, textarea { width: 100%; font: 400 16px/1.4 var(--body); color: var(--sail); background: rgba(3, 12, 15, 0.8); border: 1px solid var(--line-2); border-radius: var(--radius); padding: 10px 12px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--rum); box-shadow: 0 0 0 3px rgba(240, 165, 65, 0.18); }
textarea { resize: vertical; }
input[type="checkbox"], input[type="radio"] { width: auto; accent-color: var(--rum); }

/* ------------------------------------------------------------------ top bar */
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 60; height: var(--topbar); display: flex; align-items: center; gap: clamp(10px, 2vw, 28px); padding: 0 var(--gutter);
  transition: background 0.25s, box-shadow 0.25s, backdrop-filter 0.25s;
  background: linear-gradient(rgba(3, 9, 12, 0.85), rgba(3, 9, 12, 0));
}
body.scrolled .topbar, body:not([data-page="home"]) .topbar { background: rgba(4, 13, 17, 0.9); backdrop-filter: blur(10px) saturate(1.2); box-shadow: 0 1px 0 var(--gold-line); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--sail); flex: none; }
.brand-crest { filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.8)); }
.brand-name { font: 400 clamp(20px, 1.4vw + 10px, 28px)/1 var(--display); color: var(--rum-hi); white-space: nowrap; text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8); }
.nav { display: flex; gap: 2px; margin-right: auto; align-items: center; }
.nav a { color: var(--sail); text-decoration: none; font-weight: 800; padding: 8px clamp(8px, 0.9vw, 14px); border-radius: var(--radius); white-space: nowrap; text-shadow: 0 1px 6px rgba(0, 0, 0, 0.8); }
.nav a:hover { background: rgba(239, 227, 200, 0.08); color: #fff; }
.nav a.active { color: var(--rum-hi); box-shadow: inset 0 -2px 0 var(--rum); border-radius: 0; }
.nav .nav-cta { border: 1px solid var(--gold-line); margin-left: 6px; }
.account { display: flex; align-items: center; gap: 8px; flex: none; }
.me-chip { display: flex; align-items: center; gap: 8px; color: var(--sail); text-decoration: none; font-weight: 800; padding: 3px 14px 3px 3px; border-radius: 999px; border: 1px solid var(--gold-line); background: rgba(5, 13, 17, 0.5); }
.me-chip:hover { border-color: var(--rum); color: #fff; }
.me-chip span { max-width: 14ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-toggle { display: none; background: none; border: 0; width: 42px; height: 42px; padding: 10px 9px; cursor: pointer; flex: none; }
.nav-toggle span { display: block; height: 2px; background: var(--sail); margin: 5px 0; border-radius: 2px; transition: transform 0.2s, opacity 0.2s; }
body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ------------------------------------------------------------------ hero */
.hero { position: relative; isolation: isolate; min-height: max(100svh, 620px); display: grid; grid-template-rows: 1fr auto; overflow: hidden; }
.hero-compact { min-height: clamp(460px, 62svh, 720px); }
.hero-art { position: absolute; inset: 0; z-index: -3; background: linear-gradient(#071226, #6a2c5e 48%, #0e2a33 60%, #04161b); }
.hero-img { position: absolute; inset: -4%; background: var(--hero-art, none) center 40% / cover no-repeat; animation: kenburns 40s ease-in-out infinite alternate; }
.hero-art::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 80% 70% at 50% 45%, transparent 30%, rgba(3, 9, 12, 0.55) 100%), linear-gradient(180deg, rgba(3, 9, 12, 0.7) 0%, rgba(3, 9, 12, 0.25) 30%, transparent 50%, rgba(3, 9, 12, 0.35) 75%, var(--abyss) 100%); }
@keyframes kenburns { from { transform: scale(1) translate3d(0, 0, 0); } to { transform: scale(1.08) translate3d(-1.5%, -1%, 0); } }
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; display: block; }
.hero-inner { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: calc(var(--topbar) + clamp(12px, 4vh, 48px)) var(--gutter) clamp(20px, 4vh, 48px); gap: clamp(14px, 2.6vh, 28px); }
.sign { position: relative; padding-top: clamp(40px, 7vh, 76px); animation: sign-drop 1.3s cubic-bezier(0.2, 1.35, 0.4, 1) both; }
.sign-board {
  position: relative; padding: clamp(14px, 2.2vh, 24px) clamp(22px, 3.4vw, 52px) clamp(16px, 2.6vh, 28px); border-radius: 10px;
  background: repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.09) 0 2px, transparent 2px 9px), repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.24) 0 1px, transparent 1px 33%), linear-gradient(#5d3c23, #3b2414 60%, #2a180c);
  border: 3px solid #1d1008; box-shadow: inset 0 0 0 2px rgba(255, 210, 150, 0.14), inset 0 -18px 30px rgba(0, 0, 0, 0.45), 0 30px 60px -20px rgba(0, 0, 0, 0.95), 0 0 120px -10px rgba(240, 165, 65, 0.45);
  animation: sign-sway 7s ease-in-out 1.3s infinite; transform-origin: 50% -70px;
}
.sign-board::before, .sign-board::after { content: ""; position: absolute; top: 12px; width: 12px; height: 12px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #ffe2a0, #a5621c 60%, #4a2a0c); box-shadow: 0 1px 2px #000; }
.sign-board::before { left: 14px; } .sign-board::after { right: 14px; }
.sign-rope { position: absolute; top: 0; width: 3px; height: clamp(46px, 8vh, 84px); background: repeating-linear-gradient(170deg, #c9a46a 0 4px, #7a5a33 4px 7px); border-radius: 2px; }
.sign-rope.l { left: 22%; transform: rotate(8deg); transform-origin: top; }
.sign-rope.r { right: 22%; transform: rotate(-8deg); transform-origin: top; }
.sign-title { margin: 0; display: flex; flex-direction: column; font: 400 clamp(46px, min(9vw, 12vh), 128px)/0.88 var(--display); letter-spacing: 0.015em; }
.sign-title span { background: linear-gradient(#fff4cf 10%, #ffd27a 40%, #f0a541 62%, #b0661c 92%); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 2px 0 #3a1f0a) drop-shadow(0 0 18px rgba(255, 190, 100, 0.35)); }
.sign-title span + span { font-size: 0.78em; margin-top: 0.06em; }
.hero-compact .sign-title { font-size: clamp(40px, min(7vw, 9vh), 96px); }
@keyframes sign-drop { from { transform: translateY(-140%) rotate(-6deg); opacity: 0; } 60% { opacity: 1; } to { transform: none; } }
@keyframes sign-sway { 0%, 100% { transform: rotate(-0.8deg); } 50% { transform: rotate(0.8deg); } }
.hero-sub { max-width: 38em; font-size: var(--fs-1); margin: 0; color: #f6ead2; text-shadow: 0 1px 2px #000, 0 0 24px rgba(0, 0, 0, 0.9); padding: 10px 22px; border-radius: 8px; background: rgba(3, 10, 13, 0.55); backdrop-filter: blur(5px); }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.hero-strip { width: var(--wrap); margin: 0 auto clamp(16px, 3vh, 32px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); background: rgba(3, 11, 14, 0.78); border: 1px solid var(--gold-line); border-radius: 6px; backdrop-filter: blur(8px); }
.strip-cell { padding: clamp(10px, 1.6vh, 16px) clamp(14px, 1.6vw, 22px); display: flex; flex-direction: column; gap: 2px; min-width: 0; text-decoration: none; color: var(--sail); text-align: left; }
.strip-cell + .strip-cell { border-left: 1px solid var(--line); }
.strip-k { font-size: 14px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.strip-v { font: 800 var(--fs-1)/1.25 var(--body); display: flex; flex-direction: column; min-width: 0; }
.strip-v small { font-size: 14px; font-weight: 600; color: var(--muted); }
.strip-title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--rum-hi); }
.strip-discord:hover { background: rgba(88, 101, 242, 0.14); }
.cd-inline { font-variant-numeric: tabular-nums; color: var(--rum-hi); }
.cd-inline b { font-weight: 900; }
.dot-online { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #3ba55d; box-shadow: 0 0 0 3px rgba(59, 165, 93, 0.25); margin-right: 7px; vertical-align: 1px; }

/* ------------------------------------------------------------------ landing bands */
.band { position: relative; padding: clamp(56px, 9vw, 120px) 0; }
.band + .band { border-top: 1px solid var(--line); }
.band-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 32px; margin-bottom: clamp(22px, 3vw, 40px); }
.band-head h2 { margin: 0; }
.band-head p { max-width: 46ch; color: var(--sail-2); margin: 0; }
.lede { font-size: var(--fs-1); color: var(--sail-2); max-width: 42ch; }
.crew-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.pillars { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 20px; }
.pillars li { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start; }
.pillars h3 { margin-bottom: 4px; color: #fff3d6; }
.pillars p { color: var(--sail-2); margin: 0; }
.crew-stats { padding: clamp(20px, 3vw, 36px); }
.big-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 24px; margin-bottom: 8px; }
.big-stats b { display: block; font: 400 clamp(40px, 3.4vw + 14px, 64px)/1 var(--display); color: var(--rum-hi); }
.big-stats span { color: var(--muted); font-size: 15px; }
.class-mix { display: flex; height: 14px; border-radius: 7px; overflow: hidden; margin: 6px 0 10px; gap: 2px; }
.class-mix span { min-width: 4px; }
.class-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-weight: 800; margin-bottom: 14px; }
.class-legend span { display: inline-flex; align-items: center; gap: 6px; }

.band-raids { background: linear-gradient(180deg, transparent, rgba(63, 184, 169, 0.05) 40%, transparent); }
.raid-panels { display: grid; gap: clamp(20px, 3vw, 36px); }
.raid-panel { position: relative; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); min-height: clamp(300px, 30vw, 440px); border-radius: 6px; overflow: hidden; border: 1px solid color-mix(in srgb, var(--tint) 45%, transparent); background: #061317; }
.raid-panel.flip { grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); }
.raid-panel.flip .raid-art { order: 2; }
.raid-art { position: relative; background: var(--art) center / cover no-repeat, radial-gradient(circle at 40% 40%, color-mix(in srgb, var(--tint) 45%, #0b2229), #04100f 70%); transition: transform 0.6s ease; }
.raid-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 55%, #061317 100%); }
.raid-panel.flip .raid-art::after { background: linear-gradient(270deg, transparent 55%, #061317 100%); }
.raid-panel:hover .raid-art { transform: scale(1.03); }
.raid-text { position: relative; padding: clamp(22px, 3vw, 44px); display: flex; flex-direction: column; justify-content: center; z-index: 1; }
.raid-text h3 { font: 400 clamp(34px, 2.6vw + 14px, 58px)/0.95 var(--display); color: #fff3d6; margin-bottom: 12px; }
.raid-text p { color: var(--sail-2); max-width: 46ch; }
.raid-size { font-weight: 800; color: var(--tint); margin-bottom: 4px !important; }
.raid-size span { font: 400 30px/1 var(--display); }
.boss-chips { list-style: none; padding: 0; margin: 6px 0 18px; display: flex; flex-wrap: wrap; gap: 6px; }
.boss-chips li { font-size: 14px; padding: 4px 10px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--tint) 45%, transparent); color: var(--sail-2); background: color-mix(in srgb, var(--tint) 8%, transparent); }
.raid-text .btn { align-self: flex-start; }

.timeline { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 1fr); overflow-x: auto; padding-bottom: 8px; position: relative; scrollbar-width: thin; }
.timeline::before { content: ""; position: absolute; left: 0; right: 0; top: 13px; height: 2px; background: linear-gradient(90deg, var(--rum), rgba(240, 165, 65, 0.1)); }
.tl-item { position: relative; display: flex; flex-direction: column; gap: 3px; padding: 34px 20px 8px 0; text-decoration: none; color: var(--sail); }
.tl-item::before { content: ""; position: absolute; top: 6px; left: 0; width: 14px; height: 14px; border-radius: 50%; background: var(--abyss); border: 3px solid var(--c); }
.tl-day { font-weight: 800; color: var(--c); }
.tl-time { font-size: 14px; color: var(--muted); }
.tl-title { font-size: var(--fs-1); font-weight: 800; line-height: 1.2; margin: 4px 0 8px; }
.tl-fill { height: 4px; background: rgba(239, 227, 200, 0.1); border-radius: 2px; max-width: 180px; overflow: hidden; }
.tl-fill span { display: block; height: 100%; background: var(--c); }
.tl-meta { font-size: 14px; color: var(--muted); }
.tl-skel { height: 140px; border-radius: var(--radius); background: linear-gradient(90deg, rgba(239, 227, 200, 0.04), rgba(239, 227, 200, 0.08), rgba(239, 227, 200, 0.04)); background-size: 200% 100%; animation: shimmer 1.5s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

.band-pvp { background: linear-gradient(180deg, rgba(232, 96, 76, 0.07), transparent 70%); }
.bracket-row { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; margin-bottom: clamp(20px, 3vw, 36px); }
.bracket-card { display: flex; flex-direction: column; padding: clamp(14px, 1.4vw, 20px); border-radius: 6px; border: 1px solid rgba(232, 96, 76, 0.35); background: linear-gradient(160deg, rgba(232, 96, 76, 0.1), rgba(6, 16, 21, 0.9)); }
.bracket-card.stamm { border-color: var(--gold-line); background: linear-gradient(160deg, rgba(240, 165, 65, 0.12), rgba(6, 16, 21, 0.9)); }
.bk-n { font: 400 clamp(46px, 3.4vw + 16px, 72px)/0.85 var(--display); color: #ffb3a3; }
.stamm .bk-n { color: var(--rum-hi); }
.bk-l { font-weight: 800; margin-top: 8px; }
.bk-t { font-size: 14px; color: var(--muted); }
.bk-need { font-size: 13px; color: #ffcdbf; margin-top: 6px; }
.bg-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.bg-tile { position: relative; aspect-ratio: 4 / 3; border-radius: 6px; overflow: hidden; display: flex; align-items: flex-end; border: 1px solid var(--line-2);
  background: linear-gradient(180deg, transparent 35%, rgba(3, 9, 12, 0.92)), var(--art) center / cover no-repeat, linear-gradient(135deg, #1a2f36, #0a171b); transition: transform 0.3s; }
.bg-tile:hover { transform: translateY(-3px); }
.bg-tile div { padding: 14px; }
.bg-tile h4 { margin: 0; color: #fff3d6; font-size: var(--fs-1); }
.bg-tile p { margin: 0; font-size: 14px; color: var(--sail-2); }

.news-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 16px; }
.news-item { padding: 18px 20px; }
.news-meta { font-size: 14px; color: var(--muted); display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.news-meta .tag { margin: 0; }
.news-item h3 { color: #fff3d6; }
.news-body { color: var(--sail-2); max-width: 70ch; }
.news { display: flex; flex-direction: column; gap: 14px; }

.band-join { overflow: hidden; text-align: center; background: linear-gradient(180deg, rgba(5, 13, 17, 0.6), rgba(5, 13, 17, 0.85)), var(--art) center / cover no-repeat, radial-gradient(circle at 50% 0%, rgba(240, 165, 65, 0.2), transparent 60%); }
.join-cta h2 { font-size: var(--fs-4); }
.join-cta p { max-width: 52ch; margin: 0 auto 24px; color: var(--sail-2); font-size: var(--fs-1); }

/* ------------------------------------------------------------------ inner pages */
.page { width: var(--wrap); margin: 0 auto; padding: calc(var(--topbar) + clamp(24px, 4vw, 48px)) 0 clamp(48px, 6vw, 80px); }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 22px; flex-wrap: wrap; }
.page-head h1 { margin: 0 0 6px; }
.lead { color: var(--sail-2); max-width: 52ch; margin: 0; font-size: var(--fs-1); }
.head-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.page-hero { position: relative; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px; padding: clamp(22px, 3.4vw, 44px); margin-bottom: 22px; border-radius: 6px; overflow: hidden; border: 1px solid var(--gold-line);
  background: linear-gradient(90deg, rgba(4, 12, 15, 0.95) 0%, rgba(4, 12, 15, 0.7) 55%, rgba(4, 12, 15, 0.35)), var(--art) center 30% / cover no-repeat, linear-gradient(135deg, #12343c, #061115); }
.page-hero h1 { margin: 0 0 8px; }
.hero-stats { display: flex; gap: clamp(14px, 2.4vw, 36px); flex-wrap: wrap; }
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats b { font: 400 clamp(32px, 2vw + 16px, 52px)/1 var(--display); color: var(--rum-hi); }
.hero-stats span { font-size: 14px; color: var(--muted); }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; margin: 0 0 16px; }
.toolbar input[type="search"] { max-width: 300px; }
.toolbar select { width: auto; }
.sticky-tools { position: sticky; top: var(--topbar); z-index: 5; padding: 10px 0; background: linear-gradient(var(--abyss) 70%, transparent); }
.section-title { margin: 48px 0 16px; }
.panel { padding: clamp(16px, 2vw, 24px); margin-bottom: 0; }
.panel h2 { font-size: clamp(26px, 1.4vw + 16px, 36px); margin-bottom: 12px; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.panel-head h2, .panel-head h3 { margin: 0; }
.note { color: var(--muted); font-size: 15px; max-width: 72ch; margin-top: 16px; }
.callout { padding: 14px 18px; border-radius: var(--radius); background: rgba(240, 165, 65, 0.1); border: 1px solid rgba(240, 165, 65, 0.4); margin-bottom: 20px; }
.callout p:last-child { margin: 0; }
.empty { padding: 30px 20px; text-align: center; border: 1px dashed var(--line-2); border-radius: 6px; color: var(--muted); }
.empty-title { font: 400 26px/1.1 var(--display); color: var(--sail); margin-bottom: 6px; }
.loading { display: flex; gap: 8px; justify-content: center; padding: 60px; }
.loading span { width: 10px; height: 10px; border-radius: 50%; background: var(--rum); animation: bob 1s infinite ease-in-out; }
.loading span:nth-child(2) { animation-delay: 0.15s; } .loading span:nth-child(3) { animation-delay: 0.3s; }
@keyframes bob { 0%, 100% { transform: translateY(0); opacity: 0.4; } 50% { transform: translateY(-8px); opacity: 1; } }
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 22px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.tab { display: flex; align-items: center; gap: 8px; padding: 10px 16px; color: var(--muted); text-decoration: none; font-weight: 800; white-space: nowrap; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tab:hover { color: var(--sail); }
.tab.on { color: var(--rum-hi); border-bottom-color: var(--rum); }

/* gate (members only) */
.gate { display: grid; place-items: center; min-height: 70vh; }
.gate-card { max-width: 560px; padding: clamp(24px, 4vw, 44px); text-align: center; }
.gate-card img { margin-bottom: 8px; }
.gate-steps { text-align: left; margin: 0 0 18px; padding-left: 22px; }
.gate-steps li { margin-bottom: 8px; }
.gate-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.gate .form { text-align: left; }

/* ------------------------------------------------------------------ member deck */
.deck { padding: clamp(18px, 2.4vw, 32px) 0 clamp(48px, 6vw, 80px); position: relative; }
.deck-link { margin-bottom: 18px; }
.deck-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.span-2 { grid-column: span 2; }
.deck-ev { display: grid; grid-template-columns: 54px minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 10px 8px; border-top: 1px solid rgba(239, 227, 200, 0.07); text-decoration: none; color: var(--sail); border-left: 3px solid var(--c); padding-left: 12px; }
.deck-ev:hover { background: rgba(239, 227, 200, 0.04); }
.de-date { display: flex; flex-direction: column; align-items: center; line-height: 1; font-size: 13px; color: var(--muted); }
.de-date b { font: 400 30px/1 var(--display); color: var(--sail); }
.de-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.de-title { font-weight: 800; display: flex; align-items: center; gap: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.de-sub { font-size: 14px; color: var(--muted); }
.de-fill { font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.de-fill b { font-size: 18px; color: var(--sail); }
.online-list { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.on-pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px 3px 3px; border-radius: 999px; border: 1px solid var(--line); font-size: 14px; }
.on-pill small { color: var(--muted); }
.my-char { display: flex; align-items: center; gap: 10px; padding: 6px 0; }
.my-char span:not(.tick) { display: flex; flex-direction: column; line-height: 1.2; }
.my-char small { color: var(--muted); font-size: 13px; }
.award { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 4px 0; }

/* ------------------------------------------------------------------ forms, modal, toast */
.form { display: flex; flex-direction: column; gap: 14px; }
.form label { display: flex; flex-direction: column; gap: 5px; font-weight: 800; font-size: 15px; }
.form label.check, label.check { flex-direction: row; align-items: center; gap: 8px; font-weight: 600; }
.checks { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.checks-field { border: 0; padding: 0; margin: 0; }
.checks-field legend { font-weight: 800; font-size: 15px; margin-bottom: 6px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 14px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); gap: 14px; }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 4px; flex-wrap: wrap; }
.hint { color: var(--warn); font-size: 14px; margin: 0; }
.hint:empty { display: none; }
.class-pick { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 6px; }
.class-pick legend { font-weight: 800; font-size: 15px; margin-bottom: 6px; }
.class-opt { flex-direction: column !important; align-items: center; gap: 4px !important; padding: 8px 4px; border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer; font-size: 13px !important; position: relative; }
.class-opt input { position: absolute; opacity: 0; pointer-events: none; }
.class-opt img { border-radius: 4px; }
.class-opt:has(input:checked) { border-color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent); color: var(--c); }
.class-opt:has(input:focus-visible) { outline: 2px solid var(--rum); }
.seg { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.seg-opt { flex-direction: row !important; justify-content: center; text-align: center; padding: 9px 4px; border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer; font-size: 14px !important; position: relative; }
.seg-opt input { position: absolute; opacity: 0; pointer-events: none; }
.seg-opt:has(input:checked).so-accepted { background: rgba(111, 227, 160, 0.16); border-color: var(--ok); color: var(--ok); }
.seg-opt:has(input:checked).so-late { background: rgba(243, 201, 105, 0.16); border-color: var(--warn); color: var(--warn); }
.seg-opt:has(input:checked).so-tentative { background: rgba(127, 178, 255, 0.16); border-color: #7fb2ff; color: #a9c9ff; }
.seg-opt:has(input:checked).so-absent { background: rgba(232, 96, 76, 0.16); border-color: var(--coral); color: #ffad9f; }
.seg-opt:has(input:focus-visible) { outline: 2px solid var(--rum); }
.inline-form { flex-direction: row; flex-wrap: wrap; align-items: center; margin-top: 12px; }
.inline-form > * { width: auto; flex: 1 1 140px; }
.inline-form .btn { flex: 0 0 auto; }
.presets { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.modal-root { position: fixed; inset: 0; z-index: 80; display: none; }
.modal-root.open { display: grid; place-items: center; padding: 16px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(2, 8, 10, 0.78); backdrop-filter: blur(4px); }
.modal { position: relative; width: min(580px, 100%); max-height: calc(100dvh - 32px); overflow: auto; background: linear-gradient(180deg, #0d242c, #071419); border: 1px solid var(--gold-line); border-radius: 6px; box-shadow: 0 30px 80px -20px #000; animation: pop 0.18s ease-out; }
.modal-wide { width: min(820px, 100%); }
@keyframes pop { from { transform: translateY(10px) scale(0.98); opacity: 0; } }
.modal-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: #0d242c; z-index: 1; }
.modal-head h2 { margin: 0; font-size: 30px; }
.modal-body { padding: 20px; }
.toasts { position: fixed; bottom: 20px; right: 20px; left: auto; z-index: 90; display: flex; flex-direction: column; gap: 8px; }
.toast { background: #0f3b37; border: 1px solid var(--glass); color: #e6fffb; padding: 11px 16px; border-radius: var(--radius); box-shadow: 0 10px 30px -10px #000; max-width: min(380px, calc(100vw - 40px)); animation: pop 0.2s; transition: opacity 0.5s, transform 0.5s; }
.toast-err { background: #3a1611; border-color: var(--coral); color: #ffe0da; }
.toast.out { opacity: 0; transform: translateX(20px); }

/* ------------------------------------------------------------------ calendar */
.month-nav { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; }
.month-nav span { min-width: 150px; text-align: center; }
.cal-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 360px); gap: 22px; align-items: start; }
.calendar { overflow: hidden; }
.dow, .days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.dow span { padding: 8px 10px; font-size: 14px; color: var(--muted); font-weight: 800; border-bottom: 1px solid var(--line); }
.day { min-height: clamp(70px, 8vw, 116px); padding: 6px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.day:nth-child(7n) { border-right: 0; }
.day.out { background: rgba(0, 0, 0, 0.2); }
.day.out .day-n { opacity: 0.4; }
.day-n { font-size: 14px; font-weight: 800; color: var(--muted); }
.day.today .day-n { background: var(--rum); color: #2a1606; border-radius: 999px; padding: 0 7px; align-self: flex-start; }
.cal-ev { display: block; font-size: 13px; line-height: 1.25; padding: 3px 5px; border-radius: 4px; text-decoration: none; color: var(--sail); background: color-mix(in srgb, var(--c) 20%, transparent); border-left: 3px solid var(--c); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; position: relative; }
.cal-ev:hover { background: color-mix(in srgb, var(--c) 34%, transparent); color: #fff; }
.cal-ev.cancelled { text-decoration: line-through; opacity: 0.55; }
.cal-ev .mine { position: absolute; right: 4px; top: 6px; width: 6px; height: 6px; border-radius: 50%; background: var(--ok); }
.upnext h2 { font-size: 34px; }
.ev-card { display: grid; grid-template-columns: 58px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px; margin-bottom: 8px; border-radius: 6px; background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--c); text-decoration: none; color: var(--sail); }
.ev-card:hover { border-color: var(--gold-line); border-left-color: var(--c); }
.ev-card.cancelled { opacity: 0.55; }
.ev-date { display: flex; flex-direction: column; align-items: center; line-height: 1.05; font-size: 13px; color: var(--muted); }
.ev-date b { font-size: 26px; color: var(--sail); }
.ev-title { font-weight: 800; margin: 0; display: flex; gap: 6px; align-items: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev-sub { font-size: 14px; color: var(--muted); margin: 0 0 5px; }
.compbar { display: flex; height: 5px; border-radius: 3px; background: rgba(239, 227, 200, 0.08); overflow: hidden; }
.compbar span { display: block; height: 100%; }
.my-status { font-size: 12px; font-weight: 800; padding: 3px 8px; border-radius: 4px; white-space: nowrap; }
.s-accepted { color: var(--ok); background: rgba(111, 227, 160, 0.12); }
.s-late { color: var(--warn); background: rgba(243, 201, 105, 0.12); }
.s-tentative { color: #a9c9ff; background: rgba(127, 178, 255, 0.12); }
.s-absent { color: #ffad9f; background: rgba(232, 96, 76, 0.12); }
.s-none { color: var(--rum-hi); border: 1px solid var(--gold-line); }

/* ------------------------------------------------------------------ event page */
.ev-banner { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: clamp(14px, 2vw, 26px); align-items: center; padding: clamp(18px, 2.6vw, 32px); border-radius: 6px; margin-bottom: 14px; overflow: hidden;
  background: linear-gradient(90deg, rgba(4, 12, 15, 0.96) 15%, rgba(4, 12, 15, 0.6)), var(--art, none) center 35% / cover no-repeat, radial-gradient(600px 240px at 0% 0%, color-mix(in srgb, var(--tint) 30%, transparent), transparent 70%), linear-gradient(120deg, #0d2b33, #08181d);
  border: 1px solid color-mix(in srgb, var(--tint) 50%, transparent); }
.ev-banner-icon .wicon { width: clamp(56px, 6vw, 84px); height: auto; border: 2px solid var(--tint); box-shadow: 0 0 40px -6px var(--tint); border-radius: 10px; }
.ev-banner h1 { margin: 6px 0; font-size: clamp(34px, 3vw + 14px, 64px); }
.ev-kicker { display: flex; gap: 8px; align-items: center; margin: 0; }
.status-pill { font-size: 13px; font-weight: 800; color: var(--muted); }
.status-pill::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; background: var(--ok); }
.st-locked::before { background: var(--warn); } .st-done::before { background: var(--muted); } .st-cancelled::before { background: var(--coral); }
.ev-when { font-size: var(--fs-1); font-weight: 800; margin: 0; }
.ev-leader { color: var(--muted); margin: 4px 0 0; }
.ev-count { text-align: right; }
.cd-label { color: var(--muted); font-size: 14px; display: block; }
.cd { display: flex; gap: 8px; justify-content: flex-end; font-variant-numeric: tabular-nums; }
.cd span { color: var(--muted); font-size: 14px; }
.cd b { font: 400 clamp(32px, 2vw + 16px, 48px)/1 var(--display); color: var(--rum-hi); margin-right: 1px; }
.ev-actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 18px; }
.ev-actions .sep { width: 1px; height: 22px; background: var(--line-2); margin: 0 4px; }
.ev-desc { padding: 16px 20px; background: rgba(239, 227, 200, 0.04); border-left: 3px solid var(--rum); border-radius: 0 var(--radius) var(--radius) 0; margin-bottom: 20px; max-width: 80ch; }
.ev-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 380px); gap: 22px; align-items: start; }
.ev-main > * + * { margin-top: 18px; }
.ev-side { position: sticky; top: calc(var(--topbar) + 14px); display: grid; gap: 16px; }
.ev-side .panel { background: var(--panel); border: 1px solid var(--line); border-radius: 6px; }
.ev-main .panel { background: var(--panel); border: 1px solid var(--line); border-radius: 6px; }
.roster-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.role-col { background: var(--panel); border: 1px solid var(--line); border-top: 3px solid var(--rc); border-radius: 6px; padding: 14px; min-width: 0; }
.role-col h3 { display: flex; align-items: center; gap: 8px; font-size: 17px; }
.count { margin-left: auto; font-weight: 900; color: var(--muted); font-variant-numeric: tabular-nums; }
.count.ok { color: var(--ok); }
.r-row { display: flex; align-items: center; gap: 9px; padding: 6px 4px; border-radius: 5px; flex-wrap: wrap; }
.r-row + .r-row { border-top: 1px solid rgba(239, 227, 200, 0.06); }
.r-row.l-bench { opacity: 0.6; }
.r-name { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.2; }
.r-sub { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lbadge { font-size: 11px; font-weight: 900; padding: 2px 6px; border-radius: 4px; }
.lbadge.conf { background: rgba(111, 227, 160, 0.15); color: var(--ok); }
.lbadge.bench { background: rgba(239, 227, 200, 0.1); color: var(--muted); }
.r-tools { display: flex; gap: 4px; width: 100%; padding-left: 35px; }
.other-list h3 { display: flex; gap: 8px; font-size: 17px; }
.other-list .count { margin-left: 0; }
.pills { display: flex; flex-wrap: wrap; gap: 6px; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 4px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); font-size: 15px; text-decoration: none; color: var(--sail); }
.pill small { color: var(--muted); }
.signup-panel { border-color: var(--gold-line) !important; background: linear-gradient(180deg, rgba(240, 165, 65, 0.1), var(--panel) 55%) !important; }
.signup-panel .link { margin-top: 10px; display: inline-block; }
.comp-big { display: flex; flex-direction: column; gap: 9px; margin-bottom: 16px; }
.comp-row { display: grid; grid-template-columns: 110px 1fr 46px; align-items: center; gap: 10px; font-size: 15px; }
.comp-row b { text-align: right; font-variant-numeric: tabular-nums; }
.meter { height: 8px; border-radius: 4px; background: rgba(239, 227, 200, 0.08); overflow: hidden; }
.meter span { display: block; height: 100%; border-radius: 4px; transition: width 0.4s; }
.class-strip { display: grid; grid-template-columns: repeat(9, 1fr); gap: 4px; margin-bottom: 6px; }
.cls-count { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 14px; }
.cls-count b { color: var(--c); }
.cls-count.zero { opacity: 0.35; }
.utility { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 5px; }
.utility li { display: flex; align-items: center; gap: 9px; font-size: 15px; }
.utility li i { margin-left: auto; font-style: normal; font-size: 13px; font-weight: 900; }
.utility li.ok i { color: var(--ok); }
.utility li.miss { color: var(--muted); }
.utility li.miss img { filter: grayscale(1); opacity: 0.5; }
.utility li.miss i { color: #ff9d8c; }
.sr-list { display: flex; flex-direction: column; }
.sr-row { display: flex; align-items: center; gap: 10px; padding: 5px 0; border-bottom: 1px solid rgba(239, 227, 200, 0.06); flex-wrap: wrap; }
.sr-who { margin-left: auto; font-size: 14px; }
.award-list { display: flex; flex-direction: column; gap: 6px; }

/* ------------------------------------------------------------------ items and loot */
.item { display: inline-flex; align-items: center; gap: 9px; color: var(--q); text-decoration: none; font-weight: 800; min-width: 0; max-width: 100%; }
.item:hover .item-name { text-decoration: underline; }
.item-icon { border-radius: 5px; border: 2px solid color-mix(in srgb, var(--q) 70%, #000); box-shadow: 0 0 12px -3px var(--q); flex: none; }
.item-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.raid-head { display: flex; gap: 18px; align-items: center; padding: clamp(18px, 2.6vw, 32px); border-radius: 6px; margin-bottom: 18px; overflow: hidden;
  background: linear-gradient(90deg, rgba(4, 12, 15, 0.95) 20%, rgba(4, 12, 15, 0.55)), var(--art, none) center 35% / cover no-repeat, linear-gradient(120deg, color-mix(in srgb, var(--tint) 20%, transparent), transparent 70%); border: 1px solid color-mix(in srgb, var(--tint) 45%, transparent); }
.raid-head h2 { margin: 0 0 4px; color: #fff3d6; }
.raid-head p { margin: 0; color: var(--sail-2); max-width: 70ch; }
.loot-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 22px; align-items: start; }
.boss-nav { list-style: none; margin: 0; padding: 0; position: sticky; top: calc(var(--topbar) + 14px); }
.boss-nav a { display: flex; justify-content: space-between; padding: 7px 10px; color: var(--sail); text-decoration: none; border-radius: 5px; font-weight: 700; font-size: 15px; }
.boss-nav a:hover { background: rgba(239, 227, 200, 0.06); }
.boss-nav span { color: var(--muted); }
.boss { margin-bottom: 16px; padding: 16px 18px; background: var(--panel); border: 1px solid var(--line); border-radius: 6px; scroll-margin-top: calc(var(--topbar) + 14px); }
.boss h3 { display: flex; align-items: center; gap: 10px; font-size: 20px; }
.boss-n { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--gold-line); font-size: 14px; color: var(--rum-hi); }
.loot-row { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 2fr) auto auto auto; gap: 12px; align-items: center; padding: 8px 0; border-top: 1px solid rgba(239, 227, 200, 0.06); }
.loot-slot { font-size: 14px; color: var(--muted); }
.loot-note { font-size: 14px; color: #cdbfa4; }
.wanters { display: inline-flex; align-items: center; gap: 2px; font-size: 13px; color: var(--muted); white-space: nowrap; }
.wanters b { color: var(--sail); margin-left: 4px; }
select.wish { width: auto; padding: 4px 8px; font-size: 14px; }
select.wish.on { border-color: var(--rum); color: var(--rum-hi); }
.sets { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr)); gap: 18px; margin-top: 16px; }
.set { background: var(--panel); border: 1px solid var(--line); border-top: 3px solid var(--c); border-radius: 6px; padding: 18px; }
.set header { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.set h3 { margin: 0; color: var(--c); font-size: 21px; text-shadow: 0 0 1px #000; }
.set header p { margin: 0; color: var(--muted); font-size: 14px; }
.bonuses { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.bonuses li { display: grid; grid-template-columns: 26px 1fr; gap: 8px; font-size: 15px; color: #d9e6c7; }
.bonuses b { display: grid; place-items: center; height: 22px; border-radius: 4px; background: rgba(30, 255, 0, 0.12); color: #7dff6a; font-size: 13px; }
.set-items { display: flex; flex-direction: column; gap: 6px; }
.set-item { display: flex; align-items: center; gap: 8px; }
.set-item .item { flex: 1; min-width: 0; }
.set-item > .muted { white-space: nowrap; }
.wh-results { display: flex; flex-direction: column; gap: 4px; max-height: 240px; overflow: auto; }
.wh-results:empty { display: none; }
.wh-hit { display: flex; align-items: center; gap: 8px; padding: 6px 8px; background: transparent; border: 1px solid var(--line); border-radius: 5px; color: var(--sail); font: 700 15px var(--body); cursor: pointer; text-align: left; }
.wh-hit small { margin-left: auto; color: var(--muted); }
.wh-hit.on, .wh-hit:hover { border-color: var(--rum); }
.wh-hit.q4 span { color: #c77dff; } .wh-hit.q3 span { color: #4aa3ff; } .wh-hit.q2 span { color: #3dff2a; } .wh-hit.q5 span { color: #ff9a2e; }

/* ------------------------------------------------------------------ pvp */
.bracket-tabs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; margin-bottom: 22px; }
.btab { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center; text-align: left; padding: 12px 14px; background: var(--panel); border: 1px solid var(--line); border-radius: 6px; color: var(--sail); cursor: pointer; font-family: var(--body); }
.btab-n { grid-row: span 2; font: 400 clamp(34px, 2vw + 16px, 48px)/0.9 var(--display); color: #ffb3a3; }
.btab.stamm .btab-n { color: var(--rum-hi); }
.btab-l { font-weight: 800; font-size: 15px; }
.btab-c { font-size: 13px; color: var(--muted); }
.btab:hover { border-color: var(--line-2); }
.btab.on { border-color: var(--coral); background: linear-gradient(160deg, rgba(232, 96, 76, 0.2), var(--panel)); }
.btab.stamm.on { border-color: var(--rum); background: linear-gradient(160deg, rgba(240, 165, 65, 0.18), var(--panel)); }
.bracket-intro { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-bottom: 20px; flex-wrap: wrap; }
.bracket-intro h2 { margin-bottom: 6px; }
.bracket-intro p { max-width: 62ch; color: var(--sail-2); margin: 0; }
.teams { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 400px), 1fr)); gap: 18px; }
.teams .empty { grid-column: 1 / -1; }
.team { background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.team-head { display: flex; justify-content: space-between; gap: 12px; }
.team-head h3 { font: 400 32px/1 var(--display); color: #fff3d6; margin: 0 0 4px; }
.team-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 0; font-size: 14px; color: var(--muted); }
.team-fill { font-size: 15px; color: var(--muted); white-space: nowrap; }
.team-fill b { font: 400 34px/1 var(--display); color: var(--rum-hi); }
.team-desc, .team-needs { margin: 0; color: var(--sail-2); font-size: 16px; }
.team-needs b { color: #ffb3a3; margin-right: 6px; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; }
.slot { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 6px; border: 1px solid var(--line); min-height: 44px; font-size: 15px; position: relative; min-width: 0; }
.slot span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.slot small { color: var(--muted); font-size: 12px; }
.slot.open { border-style: dashed; color: var(--muted); justify-content: center; }
.slot .icon-btn { margin-left: auto; }
.team-foot { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 12px; margin-top: auto; }

/* ------------------------------------------------------------------ roster */
.roster-charts { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; margin-bottom: 8px; }
.chart-card { padding: 18px 20px; }
.chart-card h2 { font-size: 28px; }
.levelbars { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; height: 150px; align-items: end; }
.lb { display: flex; flex-direction: column; align-items: stretch; justify-content: flex-end; height: 100%; background: none; border: 0; padding: 0; cursor: pointer; color: var(--sail); font-family: var(--body); }
.lb-bar { position: relative; min-height: 4px; background: linear-gradient(180deg, var(--rum-hi), var(--rum) 40%, #8a4d14); border-radius: 4px 4px 0 0; transition: height 0.4s; }
.lb-bar b { position: absolute; top: -20px; left: 0; right: 0; text-align: center; font-size: 13px; }
.lb-l { font-size: 12px; color: var(--muted); margin-top: 6px; text-align: center; }
.lb.on .lb-bar { background: linear-gradient(180deg, #fff, var(--glass)); }
.classbars { display: grid; gap: 4px; }
.cb { display: grid; grid-template-columns: 28px 1fr 28px; gap: 8px; align-items: center; background: none; border: 0; padding: 2px; border-radius: 4px; cursor: pointer; color: var(--sail); font: 800 14px var(--body); }
.cb:hover, .cb.on { background: rgba(239, 227, 200, 0.06); }
.cb-track { height: 8px; border-radius: 4px; background: rgba(239, 227, 200, 0.07); overflow: hidden; }
.cb-track span { display: block; height: 100%; background: var(--c); border-radius: 4px; }
.cb b { text-align: right; color: var(--c); }
.table-wrap { overflow-x: auto; border-radius: 6px; }
.table-wrap:not(.frame) { border: 1px solid var(--line); background: var(--panel); }
.table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table th { text-align: left; font-weight: 800; color: var(--muted); padding: 11px 12px; border-bottom: 1px solid var(--gold-line); white-space: nowrap; }
.table th[data-sort] { cursor: pointer; }
.table th[aria-sort="descending"] { color: var(--rum-hi); }
.table td { padding: 8px 12px; border-bottom: 1px solid rgba(239, 227, 200, 0.06); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: rgba(239, 227, 200, 0.035); }
.table select { width: auto; padding: 4px 8px; }
.rc { display: inline-flex; align-items: center; gap: 9px; white-space: nowrap; }
.rc-name { display: flex; flex-direction: column; line-height: 1.15; }
.rc-name small { font-size: 12px; color: var(--muted); }
.lvl { display: inline-flex; align-items: center; gap: 8px; }
.lvl b { min-width: 2ch; text-align: right; font-variant-numeric: tabular-nums; }
.lvl-bar { width: 56px; height: 5px; border-radius: 3px; background: rgba(239, 227, 200, 0.1); overflow: hidden; }
.lvl-bar span { display: block; height: 100%; background: var(--rum); }
.online-now { color: var(--ok); font-weight: 800; }
.online-now::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); margin-right: 6px; vertical-align: 1px; }
.onote { display: block; color: var(--warn); font-size: 12px; }

/* ------------------------------------------------------------------ my page, join, officers */
.profile-head { display: flex; gap: 18px; align-items: center; padding: 18px 22px; margin-bottom: 16px; }
.profile-head h1 { margin: 0 0 6px; font-size: clamp(34px, 2vw + 18px, 54px); }
.badges { margin: 0; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.badges .tag { margin: 0; }
.link-panel { display: flex; flex-wrap: wrap; gap: 18px 32px; align-items: center; padding: clamp(18px, 2.4vw, 28px); margin-bottom: 16px; background: linear-gradient(120deg, rgba(240, 165, 65, 0.14), rgba(6, 16, 21, 0.94) 60%); }
.link-panel.done { background: linear-gradient(120deg, rgba(111, 227, 160, 0.08), rgba(6, 16, 21, 0.94) 60%); }
.link-text { flex: 1 1 420px; }
.link-text h2 { margin-bottom: 6px; }
.code-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 10px 0; }
.link-code { font-size: clamp(20px, 1.4vw + 12px, 28px); padding: 8px 16px; letter-spacing: 0.06em; border: 1px dashed var(--gold-line); background: rgba(0, 0, 0, 0.35); word-break: break-all; }
.linked { display: flex; flex-wrap: wrap; gap: 8px; }
.me-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.char-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 10px; }
.char-card { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto auto; column-gap: 12px; text-align: left; padding: 12px; border-radius: 6px; border: 1px solid var(--line); border-left: 3px solid var(--c); background: rgba(3, 12, 15, 0.6); color: var(--sail); cursor: pointer; font-family: var(--body); }
.char-card:hover { border-color: var(--gold-line); border-left-color: var(--c); }
.char-card .wicon { grid-row: span 3; }
.cc-name { font-weight: 900; font-size: 18px; color: var(--c); }
.cc-sub { font-size: 14px; color: var(--muted); }
.cc-tags { display: flex; gap: 4px; align-items: center; margin-top: 4px; }
.cc-tags .tag { margin: 0; }
.mini-ev { display: grid; grid-template-columns: 130px 1fr; gap: 2px 12px; padding: 8px 10px; border-left: 3px solid var(--c); margin-bottom: 6px; text-decoration: none; color: var(--sail); background: rgba(239, 227, 200, 0.03); border-radius: 0 5px 5px 0; }
.mini-ev span:first-child { color: var(--muted); font-size: 14px; grid-row: span 2; }
.mini-ev span:last-child { font-size: 14px; }
.app-mini { padding: 8px 0; border-bottom: 1px solid rgba(239, 227, 200, 0.06); display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.app-mini .tag { margin: 0; }
.app-mini .reply { width: 100%; margin: 0; color: var(--sail-2); font-style: italic; }
.wish-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 4px 20px; }
.wish-row { display: flex; gap: 10px; align-items: center; padding: 5px 0; min-width: 0; }
.wish-row .icon-btn { margin-left: auto; }
.join-hero { position: relative; padding: calc(var(--topbar) + clamp(40px, 8vw, 110px)) 0 clamp(40px, 6vw, 80px); background: linear-gradient(180deg, rgba(5, 13, 17, 0.4), var(--abyss)), var(--art) center 30% / cover no-repeat, radial-gradient(circle at 50% 0%, rgba(240, 165, 65, 0.2), transparent 60%); }
.join-hero h1 { margin-bottom: 12px; }
.join-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(24px, 4vw, 60px); padding-bottom: clamp(48px, 6vw, 90px); align-items: start; }
.steps-big { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.steps-big li { display: grid; grid-template-columns: auto 1fr; gap: 16px; }
.step-n { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--gold-line); font: 400 28px/1 var(--display); color: var(--rum-hi); background: rgba(240, 165, 65, 0.08); }
.steps-big h3 { margin: 6px 0 4px; color: #fff3d6; }
.steps-big p { color: var(--sail-2); margin-bottom: 8px; }
.app-card { padding: 18px; margin: 14px 0; }
.app-card header { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; }
.app-card header > div { flex: 1; min-width: 200px; }
.app-card h3 { margin: 0; font-size: 18px; }
.app-card header p { margin: 0; }
.answers { display: grid; grid-template-columns: 180px 1fr; gap: 6px 16px; margin: 0 0 14px; font-size: 15px; }
.answers dt { color: var(--muted); text-transform: capitalize; }
.answers dd { margin: 0; }
.review { display: flex; gap: 8px; flex-wrap: wrap; }
.review input { flex: 1 1 260px; width: auto; }
.sync-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 16px; margin-bottom: 16px; }
.sync-grid + .frame, .frame + .sync-grid { margin-top: 16px; }
.howto { padding-left: 20px; margin: 0 0 16px; }
.howto li { margin-bottom: 8px; }
.key-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.code-line { display: flex; gap: 12px; align-items: center; padding: 6px 0; border-bottom: 1px solid rgba(239, 227, 200, 0.06); flex-wrap: wrap; }
.setup-row { display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.setup-row p { margin: 2px 0 0; color: var(--muted); }
.setup-dot { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; font-weight: 900; }
.setup-row.ok .setup-dot { background: rgba(111, 227, 160, 0.16); color: var(--ok); }
.setup-row.todo .setup-dot { background: rgba(243, 201, 105, 0.16); color: var(--warn); }
.ev-list .ev-card { max-width: 760px; }

/* ------------------------------------------------------------------ footer */
.footer { border-top: 1px solid var(--gold-line); background: #030a0d; padding: clamp(28px, 4vw, 48px) 0; }
.footer-inner { width: var(--wrap); margin: 0 auto; display: grid; grid-template-columns: 1fr auto; gap: 18px 30px; align-items: center; }
.footer-brand { display: flex; gap: 14px; align-items: center; }
.footer-title { font: 400 30px/1 var(--display); color: var(--rum-hi); margin-bottom: 4px; }
.footer p { color: var(--muted); margin: 0; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { color: var(--sail); font-weight: 700; }
.footer-legal { grid-column: 1 / -1; font-size: 13px; }

/* ------------------------------------------------------------------ official artwork layer */
/* torn-paper edge where the hero meets the page */
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: clamp(22px, 3.4vw, 52px); z-index: 1; pointer-events: none; background: var(--abyss);
  -webkit-mask: url(/art/torn-up.png) center bottom / 100% 100% no-repeat; mask: url(/art/torn-up.png) center bottom / 100% 100% no-repeat; }
.hero-strip { position: relative; z-index: 2; }
/* gold filigree between landing bands (from the Forever site) */
.band + .band { border-top: 0; }
.band + .band::before { content: ""; position: absolute; top: 0; left: 50%; width: min(640px, 80vw); aspect-ratio: 1300 / 153; transform: translate(-50%, -50%); background: url(/art/divider.png) center / contain no-repeat; opacity: 0.85; pointer-events: none; }
/* Booty Bay harbour behind "who we are", Stranglethorn skirmish behind PvP */
.band-crew { background: linear-gradient(90deg, var(--abyss) 0%, rgba(5, 13, 17, 0.92) 45%, rgba(5, 13, 17, 0.55) 100%), url(/art/crew.jpg) right center / cover no-repeat; }
.band-pvp { background: linear-gradient(180deg, var(--abyss), rgba(5, 13, 17, 0.8) 25%, rgba(5, 13, 17, 0.86) 75%, var(--abyss)), url(/art/pvp.jpg) center / cover no-repeat; }
.band-raids { background: radial-gradient(1200px 600px at 50% 0%, rgba(63, 184, 169, 0.08), transparent 70%); }
.crew-head { display: flex; align-items: center; gap: 16px; margin-bottom: 8px; }
.crew-head img { width: clamp(56px, 5vw, 84px); height: auto; filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.7)); }
.crew-head h2 { margin: 0; }
.forever-badge { display: block; width: clamp(150px, 14vw, 220px); height: auto; margin: 0 auto 18px; opacity: 0.95; filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.6)); }
.crest-row { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 6px; margin: 4px 0 14px; }
.crest { display: flex; flex-direction: column; align-items: center; gap: 2px; font-weight: 900; color: var(--c); }
.crest img { width: 100%; max-width: 54px; height: auto; filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.7)); }
.crest.zero { opacity: 0.3; filter: grayscale(0.7); }
/* the official gold frame around each raid panel */
.raid-panel { border: 0; }
.raid-panel::before { content: ""; position: absolute; inset: 6px; z-index: 2; pointer-events: none; border: 22px solid transparent; border-image: url(/art/frame-gold.png) 44 stretch; opacity: 0.9; }
.raid-art { min-height: 100%; }
/* art-backed page headers */
.page-hero.art-cal { --art: url(/art/deck.jpg); }
.page-hero.art-pvp { --art: url(/art/pvp.jpg); }
.page-hero.art-loot { --art: url(/art/raid-onyxia.jpg); }
.footer-forever { width: 120px; height: auto; opacity: 0.7; }
.gate-card .gate-crest { width: 84px; height: auto; }

/* ------------------------------------------------------------------ responsive */
@media (max-width: 1180px) {
  .cal-layout, .ev-grid { grid-template-columns: minmax(0, 1fr); }
  .ev-side { position: static; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
  .bracket-row, .bracket-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .loot-row { grid-template-columns: minmax(0, 1fr) auto auto auto; }
  .loot-slot, .loot-note { grid-column: 1; }
  .deck-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1040px) {
  .nav-toggle { display: block; }
  .nav { position: fixed; inset: var(--topbar) 0 0 0; flex-direction: column; align-items: stretch; gap: 4px; padding: 18px var(--gutter); background: rgba(3, 10, 13, 0.97); backdrop-filter: blur(12px); transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity 0.2s, transform 0.2s, visibility 0.2s; overflow-y: auto; }
  body.nav-open .nav { opacity: 1; transform: none; visibility: visible; }
  .nav a { font-size: 20px; padding: 14px 12px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav a.active { box-shadow: inset 3px 0 0 var(--rum); }
  .nav .nav-cta { margin: 10px 0 0; text-align: center; border-radius: var(--radius); }
  .brand { margin-right: auto; }
  .crew-grid, .join-grid { grid-template-columns: minmax(0, 1fr); }
  .raid-panel, .raid-panel.flip { grid-template-columns: minmax(0, 1fr); }
  .raid-panel.flip .raid-art { order: 0; }
  .raid-art { min-height: clamp(200px, 40vw, 320px); }
  .raid-art::after, .raid-panel.flip .raid-art::after { background: linear-gradient(180deg, transparent 50%, #061317 100%); }
  .roster-charts { grid-template-columns: minmax(0, 1fr); }
  .loot-layout { grid-template-columns: minmax(0, 1fr); }
  .boss-nav { display: none; }
  .bg-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .me-chip span { display: none; }
  .me-chip { padding: 3px; }
  .hero-strip { grid-template-columns: minmax(0, 1fr); }
  .strip-cell + .strip-cell { border-left: 0; border-top: 1px solid var(--line); }
  .roster-cols { grid-template-columns: minmax(0, 1fr); }
  .me-grid, .deck-grid { grid-template-columns: minmax(0, 1fr); }
  .span-2 { grid-column: auto; }
  .ev-banner { grid-template-columns: auto minmax(0, 1fr); }
  .ev-count { grid-column: 1 / -1; text-align: left; }
  .cd { justify-content: flex-start; }
  .answers { grid-template-columns: minmax(0, 1fr); }
  .hide-m { display: none; }
  .cal-ev b { display: none; }
  .deck-ev { grid-template-columns: 46px minmax(0, 1fr) auto; }
  .deck-ev .de-fill { display: none; }
  .footer-inner { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .brand-name span { display: none; }
  .bracket-row, .bracket-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bg-strip { grid-template-columns: minmax(0, 1fr); }
  .bg-tile { aspect-ratio: 16 / 9; }
  .seg { grid-template-columns: repeat(2, 1fr); }
  .hide-s { display: none; }
  .big-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .day { min-height: 54px; padding: 3px; }
  .cal-ev { font-size: 0; padding: 0; height: 6px; border-left-width: 0; background: var(--c); }
  .cal-ev .mine { display: none; }
  .slots { grid-template-columns: 1fr 1fr; }
  .levelbars { gap: 4px; }
  .lb-l { font-size: 10px; }
  .class-strip { grid-template-columns: repeat(5, 1fr); }
  .toasts { left: 12px; right: 12px; bottom: 12px; }
  .toolbar input[type="search"] { max-width: none; }
}
@media (max-height: 700px) and (min-width: 761px) {
  .hero { min-height: 640px; }
  .sign { padding-top: 34px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
