/* Akira website. Colours are variables; --accent is set from the site editor. */
:root {
  --bg: #0f1015;
  --bg-2: #15161d;
  --card: #1b1c25;
  --card-2: #23242f;
  --border: #2c2d3a;
  --text: #e9e9f1;
  --muted: #9a9bb0;
  --accent: #ff4fa3;
  --accent-2: #8b5cf6;
  --accent-soft: color-mix(in srgb, var(--accent) 18%, transparent);
  --gradient: linear-gradient(120deg, var(--accent), var(--accent-2));
  --success: #3ba55d;
  --danger: #ed4245;
  --warning: #f0b232;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --font: 'Inter', 'Segoe UI', system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--font);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; outline: none; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 0.5em; }
code { background: var(--card-2); padding: 0.1em 0.4em; border-radius: 6px; font-size: 0.9em; }
.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.center { text-align: center; }
.hidden, [hidden] { display: none !important; }

/* ---------- Nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.nav-inner { max-width: 1140px; margin: 0 auto; padding: 12px 20px; display: flex; align-items: center; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 800; font-size: 1.2rem; }
.brand:hover { text-decoration: none; }
.brand img { width: 32px; height: 32px; border-radius: 10px; object-fit: cover; }
.nav-links { display: flex; align-items: center; gap: 4px; flex: 1; }
.nav-links > a { color: var(--muted); padding: 8px 12px; border-radius: 10px; font-weight: 500; }
.nav-links > a:hover, .nav-links > a.active { color: var(--text); background: var(--card); text-decoration: none; }
.nav-spacer { flex: 1; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 0; color: var(--text); font-size: 1.5rem; cursor: pointer; }
.user-chip { display: flex; align-items: center; gap: 8px; background: var(--card); border: 1px solid var(--border); padding: 4px 10px 4px 4px; border-radius: 999px; color: var(--text); cursor: pointer; font: inherit; }
.user-chip img { width: 28px; height: 28px; border-radius: 50%; }
.menu { position: relative; }
.menu-list { position: absolute; right: 0; top: calc(100% + 8px); background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 6px; min-width: 180px; box-shadow: var(--shadow); }
.menu-list a, .menu-list button { display: block; width: 100%; text-align: left; padding: 8px 12px; border-radius: 8px; color: var(--text); background: none; border: 0; font: inherit; cursor: pointer; }
.menu-list a:hover, .menu-list button:hover { background: var(--card-2); text-decoration: none; }

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; background: var(--bg-2); border-bottom: 1px solid var(--border); padding: 12px 20px; }
  .nav-links.open { display: flex; }
  .nav-spacer { display: none; }
  .menu-list { position: static; margin-top: 8px; }
}

/* ---------- Buttons & inputs ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; border-radius: 10px; border: 1px solid var(--border); background: var(--card-2); color: var(--text); font: 600 0.95rem var(--font); cursor: pointer; transition: transform 0.08s, filter 0.15s, background 0.15s; text-decoration: none !important; white-space: nowrap; }
.btn:hover { filter: brightness(1.15); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.btn-primary { background: var(--accent); border-color: transparent; color: #fff; }
.btn-danger { background: var(--danger); border-color: transparent; color: #fff; }
.btn-ghost { background: transparent; }
.btn-sm { padding: 6px 12px; font-size: 0.85rem; }
.btn-lg { padding: 14px 26px; font-size: 1.05rem; }
.discord-btn { background: #5865f2; color: #fff; border-color: transparent; }

input, select, textarea { width: 100%; background: var(--bg-2); border: 1px solid var(--border); color: var(--text); border-radius: 10px; padding: 10px 12px; font: inherit; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: transparent; }
textarea { min-height: 100px; resize: vertical; }
input[type='color'] { width: 48px; height: 42px; padding: 4px; cursor: pointer; }
label { font-weight: 600; }

.switch { position: relative; width: 46px; height: 26px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.switch span { position: absolute; inset: 0; background: var(--border); border-radius: 999px; cursor: pointer; transition: background 0.2s; }
.switch span::after { content: ''; position: absolute; width: 20px; height: 20px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: transform 0.2s; }
.switch input:checked + span { background: var(--success); }
.switch input:checked + span::after { transform: translateX(20px); }
.switch input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- Layout pieces ---------- */
.section { padding: 64px 0; }
.section-title { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 8px; }
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.page-head { padding: 48px 0 24px; }
.container.page-head { padding-left: 20px; padding-right: 20px; } /* .page-head alone removed the container gutter (terms, privacy, cookies) */
.page-head h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: 0.8rem; font-weight: 700; }
.badge.ok { background: color-mix(in srgb, var(--success) 18%, transparent); color: var(--success); }
.badge.bad { background: color-mix(in srgb, var(--danger) 18%, transparent); color: var(--danger); }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--success); display: inline-block; box-shadow: 0 0 0 4px color-mix(in srgb, var(--success) 25%, transparent); }
.dot.off { background: var(--danger); box-shadow: 0 0 0 4px color-mix(in srgb, var(--danger) 25%, transparent); }

/* ---------- Home ---------- */
.hero { padding: 80px 0 60px; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: -40% -10% auto; height: 600px; background: radial-gradient(closest-side, var(--accent-soft), transparent); pointer-events: none; }
.hero-inner { position: relative; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); letter-spacing: -0.02em; }
.hero h1 strong { color: var(--accent); }
.hero p { font-size: 1.15rem; color: var(--muted); max-width: 560px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.hero-image img { border-radius: 20px; box-shadow: var(--shadow); }
.hero-bot { display: grid; place-items: center; }
.hero-bot img { width: 220px; height: 220px; border-radius: 50%; box-shadow: 0 0 0 10px var(--accent-soft), var(--shadow); }
@media (max-width: 820px) { .hero-inner { grid-template-columns: 1fr; } .hero { padding-top: 48px; } }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; }
.stat { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; text-align: center; }
.stat b { display: block; font-size: 1.8rem; }
.stat span { color: var(--muted); font-size: 0.9rem; }

.feature { display: flex; flex-direction: column; gap: 10px; transition: transform 0.15s, border-color 0.15s; }
.feature:hover { transform: translateY(-3px); border-color: var(--accent); }
.feature-icon { font-size: 2rem; }
.feature img { border-radius: 10px; aspect-ratio: 16/9; object-fit: cover; }
.feature p { color: var(--muted); margin: 0; }

.gallery { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.gallery figure { margin: 0; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.gallery img { width: 100%; aspect-ratio: 16/10; object-fit: cover; cursor: zoom-in; }
.gallery figcaption { padding: 10px 14px; color: var(--muted); font-size: 0.9rem; }

.cta { text-align: center; padding: 48px 24px; background: linear-gradient(135deg, var(--accent-soft), transparent), var(--card); }

/* ---------- Commands ---------- */
.toolbar { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.toolbar input { max-width: 340px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { padding: 6px 14px; border-radius: 999px; background: var(--card); border: 1px solid var(--border); color: var(--muted); cursor: pointer; font: 600 0.85rem var(--font); }
.chip.active { background: var(--accent); color: #fff; border-color: transparent; }
.command { display: flex; flex-direction: column; gap: 8px; }
.command h3 { font-family: ui-monospace, Consolas, monospace; font-size: 1.05rem; margin: 0; }
.command .opts { display: flex; flex-wrap: wrap; gap: 6px; }
.command .opt { font-size: 0.78rem; padding: 2px 8px; border-radius: 6px; background: var(--card-2); color: var(--muted); font-family: ui-monospace, Consolas, monospace; }
.command .opt.req { color: var(--text); }
.command img { border-radius: 10px; margin-top: 6px; }

/* ---------- Updates / FAQ / prose ---------- */
.update { display: grid; grid-template-columns: 140px 1fr; gap: 24px; padding: 24px 0; border-bottom: 1px solid var(--border); }
.update time { color: var(--muted); font-weight: 600; }
.update img { border-radius: 12px; margin-top: 12px; max-height: 420px; object-fit: cover; }
@media (max-width: 640px) { .update { grid-template-columns: 1fr; gap: 6px; } }
details.faq { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 16px 20px; margin-bottom: 12px; }
details.faq summary { font-weight: 700; cursor: pointer; }
details.faq[open] summary { margin-bottom: 8px; }
.prose { max-width: 780px; }
.prose h1 { font-size: 2.2rem; margin-top: 0.5em; }
.prose h2 { margin-top: 1.4em; }
.prose p, .prose li { color: #d0d0dc; }

/* ---------- Dashboard ---------- */
.servers { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.server { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; padding: 26px 18px; }
.server-icon { width: 80px; height: 80px; border-radius: 22px; background: var(--card-2); display: grid; place-items: center; font-weight: 800; font-size: 1.6rem; overflow: hidden; }
.server-icon img { width: 100%; height: 100%; object-fit: cover; }
.server h3 { font-size: 1rem; margin: 0; word-break: break-word; }
.server.no-bot { opacity: 0.75; }

.dash { display: grid; grid-template-columns: 250px 1fr; gap: 24px; padding: 28px 0 120px; }
.dash-side { position: sticky; top: 80px; align-self: start; display: flex; flex-direction: column; gap: 4px; }
.dash-guild { display: flex; align-items: center; gap: 12px; padding: 8px 8px 18px; }
.dash-guild .server-icon { width: 48px; height: 48px; border-radius: 14px; font-size: 1rem; }
.dash-side a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; color: var(--muted); font-weight: 600; }
.dash-side a:hover { background: var(--card); color: var(--text); text-decoration: none; }
.dash-side a.active { background: var(--accent-soft); color: var(--text); }
.dash-main h2 { font-size: 1.6rem; }
.field { padding: 18px 0; border-bottom: 1px solid var(--border); display: grid; gap: 8px; }
.field:last-child { border-bottom: 0; }
.field-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.field .help { color: var(--muted); font-size: 0.88rem; margin: 0; }
.field .count { color: var(--muted); font-size: 0.8rem; text-align: right; }
.checklist { display: grid; gap: 8px; }
.checklist label { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; background: var(--bg-2); border: 1px solid var(--border); padding: 10px 12px; border-radius: 10px; cursor: pointer; }
.checklist input { width: auto; margin-top: 4px; accent-color: var(--accent); }
.checklist small { display: block; color: var(--muted); }
.picker-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.picker-chip { display: inline-flex; align-items: center; gap: 6px; background: var(--card-2); border: 1px solid var(--border); padding: 4px 6px 4px 10px; border-radius: 999px; font-size: 0.9rem; }
.picker-chip button { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 1rem; line-height: 1; padding: 0 4px; }
.picker-chip i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.color-row { display: flex; gap: 10px; align-items: center; }
.color-row input[type='text'] { max-width: 140px; }
.savebar { position: fixed; left: 50%; bottom: 20px; transform: translate(-50%, 140%); transition: transform 0.25s; z-index: 60; width: min(720px, calc(100% - 32px)); background: var(--card-2); border: 1px solid var(--border); border-radius: 14px; padding: 12px 16px; display: flex; align-items: center; gap: 12px; box-shadow: var(--shadow); }
.savebar.show { transform: translate(-50%, 0); }
.savebar span { flex: 1; font-weight: 600; }
.notice { padding: 12px 16px; border-radius: 12px; background: color-mix(in srgb, var(--warning) 14%, transparent); border: 1px solid color-mix(in srgb, var(--warning) 35%, transparent); margin-bottom: 18px; }
.notice.error { background: color-mix(in srgb, var(--danger) 14%, transparent); border-color: color-mix(in srgb, var(--danger) 35%, transparent); }
@media (max-width: 820px) {
  .dash { grid-template-columns: 1fr; }
  .dash-side { position: static; flex-direction: row; overflow-x: auto; }
  .dash-side a { white-space: nowrap; }
  .dash-guild { display: none; }
}

.dash-group { margin: 14px 12px 4px; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.module-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); margin-top: 18px; }
.module-card { display: flex; flex-direction: column; gap: 6px; color: var(--text); transition: transform 0.15s, border-color 0.15s; }
.module-card:hover { text-decoration: none; transform: translateY(-2px); border-color: var(--accent); }
.module-card .muted { font-size: 0.86rem; }
.module-top { display: flex; justify-content: space-between; align-items: center; }
.module-icon { font-size: 1.6rem; }

/* Item lists (auto-responders, rewards, schedules) */
.items { display: grid; gap: 10px; }
.item { background: var(--bg-2); border: 1px solid var(--border); border-radius: 12px; }
.item summary { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 12px 14px; cursor: pointer; font-weight: 600; }
.item-summary { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item-body { padding: 0 14px 14px; }
.item-body .field { padding: 12px 0; }
.item-tools { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.inline-row { display: flex; gap: 8px; align-items: center; }
.inline-row > input, .inline-row > select { flex: 1; min-width: 0; }
.role-row { display: grid; gap: 8px; padding: 12px; }

/* Builders (embeds, role panels) */
.builder-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.builder { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.builder > .card .field:first-child { padding-top: 0; }
.preview-wrap { position: sticky; top: 90px; }
.builder-card { display: flex; flex-direction: column; gap: 8px; }
@media (max-width: 1000px) { .builder { grid-template-columns: 1fr; } .preview-wrap { position: static; } }

/* Discord-like message preview */
.dc-msg { background: #2b2d31; border-radius: 8px; border-left: 4px solid var(--bar); padding: 14px 16px; display: grid; gap: 10px; color: #dbdee1; font-size: 0.95rem; }
.dc-body { display: flex; gap: 14px; justify-content: space-between; }
.dc-text { min-width: 0; }
.dc-title { font-size: 1.25rem; font-weight: 700; color: #f2f3f5; margin-bottom: 4px; }
.dc-desc p { margin: 0 0 6px; color: #dbdee1; }
.dc-desc ul { margin: 0 0 6px; padding-left: 20px; }
.dc-thumb { width: 80px; height: 80px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }
.dc-image { border-radius: 8px; max-height: 300px; object-fit: cover; width: 100%; }
.dc-footer { font-size: 0.8rem; color: #949ba4; }
.dc-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.dc-btn { background: #4e5058; color: #fff; padding: 6px 14px; border-radius: 6px; font-size: 0.88rem; font-weight: 600; }
.dc-btn.dc-primary { background: #5865f2; }
.dc-btn.dc-success { background: #248046; }
.dc-btn.dc-danger { background: #da373c; }
.dc-select { background: #1e1f22; border: 1px solid #111214; border-radius: 6px; padding: 10px 12px; color: #949ba4; display: flex; justify-content: space-between; width: 100%; }

/* ---------- Editor ---------- */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 20px; }
.editor-item { position: relative; display: grid; gap: 12px; margin-bottom: 14px; }
.editor-item-tools { display: flex; gap: 6px; justify-content: flex-end; }
.image-field { display: grid; grid-template-columns: 96px 1fr; gap: 12px; align-items: center; }
.image-preview { width: 96px; height: 72px; border-radius: 10px; background: var(--bg-2) center/cover no-repeat; border: 1px dashed var(--border); display: grid; place-items: center; color: var(--muted); font-size: 0.75rem; }
.image-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.library { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.library figure { margin: 0; background: var(--bg-2); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.library img { width: 100%; aspect-ratio: 4/3; object-fit: cover; cursor: pointer; }
.library figcaption { display: flex; justify-content: space-between; gap: 6px; padding: 6px 8px; font-size: 0.75rem; color: var(--muted); }

/* ---------- Modal, toasts, loading ---------- */
.modal-back { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.6); display: grid; place-items: center; z-index: 100; padding: 20px; }
.modal { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 22px; width: min(860px, 100%); max-height: 85vh; overflow: auto; }
.modal-img { max-width: 92vw; max-height: 88vh; border-radius: 12px; }
#toasts { position: fixed; right: 20px; bottom: 20px; display: grid; gap: 10px; z-index: 200; }
.toast { background: var(--card-2); border: 1px solid var(--border); border-left: 4px solid var(--success); padding: 12px 16px; border-radius: 10px; box-shadow: var(--shadow); max-width: 360px; animation: slide 0.25s; }
.toast.error { border-left-color: var(--danger); }
@keyframes slide { from { transform: translateY(12px); opacity: 0; } }
.spinner { width: 34px; height: 34px; border: 3px solid var(--border); border-top-color: var(--accent); border-radius: 50%; animation: spin 0.8s linear infinite; margin: 60px auto; }
@keyframes spin { to { transform: rotate(360deg); } }
.skeleton { background: linear-gradient(90deg, var(--card) 25%, var(--card-2) 50%, var(--card) 75%); background-size: 200% 100%; animation: shimmer 1.2s infinite; border-radius: 10px; height: 18px; margin: 12px 0; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); margin-top: 40px; }
.footer-inner { max-width: 1140px; margin: 0 auto; padding: 24px 20px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: var(--muted); font-size: 0.9rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 16px; min-width: 0; }
.footer-links a { color: var(--muted); overflow-wrap: anywhere; }
.footer-made { width: 100%; text-align: center; color: var(--accent); font-size: 0.8rem; }
@media (max-width: 640px) {
  .footer-inner { flex-direction: column; align-items: center; text-align: center; }
  .footer-links { justify-content: center; }
}

/* =====================================================================
   v2.4: hearts, gradients and motion
   ===================================================================== */

/* Heart pattern behind everything, tinted with the accent colour */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: var(--accent);
  opacity: 0.055;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140' viewBox='0 0 140 140'%3E%3Cpath d='M30 46s-14-8.6-18.7-17.4C8.3 22.4 11.9 15 18.8 15c3.9 0 6.4 2.1 7.5 4.3 1.1-2.2 3.6-4.3 7.5-4.3 6.9 0 10.5 7.4 7.5 13.6C36.6 37.4 30 46 30 46z'/%3E%3Cpath transform='rotate(18 104 100)' d='M104 120s-9.4-5.8-12.5-11.7c-2-4.1.4-9.1 5-9.1 2.6 0 4.3 1.4 5 2.9.7-1.5 2.4-2.9 5-2.9 4.6 0 7 5 5 9.1-3.1 5.9-12.5 11.7-12.5 11.7z'/%3E%3Ccircle cx='96' cy='34' r='2.2'/%3E%3Ccircle cx='34' cy='104' r='1.6'/%3E%3C/svg%3E") 0 0 / 140px 140px repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140' viewBox='0 0 140 140'%3E%3Cpath d='M30 46s-14-8.6-18.7-17.4C8.3 22.4 11.9 15 18.8 15c3.9 0 6.4 2.1 7.5 4.3 1.1-2.2 3.6-4.3 7.5-4.3 6.9 0 10.5 7.4 7.5 13.6C36.6 37.4 30 46 30 46z'/%3E%3Cpath transform='rotate(18 104 100)' d='M104 120s-9.4-5.8-12.5-11.7c-2-4.1.4-9.1 5-9.1 2.6 0 4.3 1.4 5 2.9.7-1.5 2.4-2.9 5-2.9 4.6 0 7 5 5 9.1-3.1 5.9-12.5 11.7-12.5 11.7z'/%3E%3Ccircle cx='96' cy='34' r='2.2'/%3E%3Ccircle cx='34' cy='104' r='1.6'/%3E%3C/svg%3E") 0 0 / 140px 140px repeat;
  animation: pattern-drift 80s linear infinite;
}
body.no-hearts::before { display: none; }
@keyframes pattern-drift { to { -webkit-mask-position: 140px 280px; mask-position: 140px 280px; } }

/* Discord emojis in text */
img.emoji { display: inline-block; width: 1.25em; height: 1.25em; vertical-align: -0.25em; object-fit: contain; margin: 0 0.05em; }
h1 img.emoji, h2 img.emoji { width: 1.1em; height: 1.1em; }
.feature-icon img.emoji, .module-icon img.emoji { width: 1.6em; height: 1.6em; }

/* Gradient buttons and text */
.btn-primary { background: var(--gradient); box-shadow: 0 6px 22px color-mix(in srgb, var(--accent) 35%, transparent); }
.btn-primary:hover { filter: brightness(1.1); box-shadow: 0 8px 30px color-mix(in srgb, var(--accent) 50%, transparent); }
.btn-glass { background: color-mix(in srgb, var(--card) 70%, transparent); backdrop-filter: blur(8px); }
.hero h1 strong, .section-title, .cta h2 {
  background: var(--gradient);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shine 8s ease-in-out infinite alternate;
}
.section-title { display: block; }
@keyframes shine { to { background-position: 100% 0; } }
.title-icon { -webkit-text-fill-color: var(--accent); color: var(--accent); font-size: 0.7em; vertical-align: middle; margin-left: 0.3em; }

/* Hero */
.hero { padding: 96px 0 72px; isolation: isolate; }
.hero::before { background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 30%, transparent), transparent), radial-gradient(closest-side at 80% 40%, color-mix(in srgb, var(--accent-2) 25%, transparent), transparent); }
.hero p { margin-top: 18px; }
.hero-note { font-size: 0.9rem; margin-top: 18px !important; }
.badge.pulse { animation: pulse 2.6s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 45%, transparent); } 70%, 100% { box-shadow: 0 0 0 10px transparent; } }
.hero-bot { position: relative; place-items: center; min-height: 300px; }
.hero-bot img { position: relative; z-index: 2; width: 240px; height: 240px; animation: float 6s ease-in-out infinite; box-shadow: 0 0 0 8px var(--bg), 0 0 60px color-mix(in srgb, var(--accent) 55%, transparent); }
.hero-ring { position: absolute; width: 290px; height: 290px; border-radius: 50%; background: conic-gradient(var(--accent), var(--accent-2), var(--accent)); animation: spin 8s linear infinite; filter: blur(1px); opacity: 0.9; }
.hero-heart { position: absolute; z-index: 3; right: calc(50% - 140px); top: 18px; font-size: 2.6rem; color: var(--accent); filter: drop-shadow(0 4px 12px color-mix(in srgb, var(--accent) 60%, transparent)); animation: beat 1.4s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-12px); } }
@keyframes beat { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.18); } 30% { transform: scale(0.98); } 45% { transform: scale(1.1); } }

/* Floating hearts */
.hearts { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: -1; }
.hearts span { position: absolute; bottom: -40px; left: var(--x); font-size: calc(18px * var(--s)); color: var(--accent); opacity: 0; animation: rise var(--d) linear infinite; animation-delay: var(--delay); }
.hearts span:nth-child(3n) { color: var(--accent-2); }
@keyframes rise { 0% { transform: translateY(0) rotate(-10deg); opacity: 0; } 15% { opacity: 0.55; } 100% { transform: translateY(-110vh) rotate(25deg); opacity: 0; } }
.cta { position: relative; overflow: hidden; isolation: isolate; border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--border)); }

/* Command marquee */
.marquee { overflow: hidden; border-block: 1px solid var(--border); background: color-mix(in srgb, var(--bg-2) 80%, transparent); margin-bottom: 36px; -webkit-mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 12px; width: max-content; padding: 12px 0; animation: marquee 70s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item { font-family: ui-monospace, Consolas, monospace; font-size: 0.9rem; color: var(--muted); padding: 4px 12px; border-radius: 999px; background: var(--card); border: 1px solid var(--border); white-space: nowrap; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Stats & cards */
.stat { position: relative; overflow: hidden; transition: transform 0.2s, border-color 0.2s; }
.stat:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent) 50%, var(--border)); }
.stat-icon { display: block; font-size: 1.4rem; margin-bottom: 4px; }
.stat b { background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.feature { position: relative; overflow: hidden; }
.feature::before { content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px; background: var(--gradient); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity 0.25s; pointer-events: none; }
.feature:hover::before { opacity: 1; }
.feature:hover { box-shadow: 0 10px 34px color-mix(in srgb, var(--accent) 22%, transparent); }
.feature-icon { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: var(--accent-soft); font-size: 1.7rem; }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; transition-delay: calc(var(--i, 0) * 60ms); }
.reveal.in { opacity: 1; transform: none; }

/* "See Akira in action" */
.demo { max-width: 860px; margin: 0 auto; }
.demo-tabs { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-bottom: 16px; }
.demo-tabs button { background: var(--card); border: 1px solid var(--border); color: var(--muted); padding: 8px 16px; border-radius: 999px; cursor: pointer; font: 600 0.9rem var(--font); transition: all 0.2s; }
.demo-tabs button[aria-selected="true"] { background: var(--gradient); color: #fff; border-color: transparent; box-shadow: 0 4px 18px color-mix(in srgb, var(--accent) 35%, transparent); }
.demo-screen { background: #313338; border-radius: 16px; border: 1px solid #1e1f22; box-shadow: var(--shadow), 0 0 80px color-mix(in srgb, var(--accent) 12%, transparent); padding: 0 0 18px; min-height: 330px; overflow: hidden; color: #dbdee1; }
.chat-head { padding: 12px 18px; border-bottom: 1px solid #1e1f22; color: #f2f3f5; font-weight: 700; margin-bottom: 8px; }
.chat-msg { display: flex; gap: 14px; padding: 8px 18px; animation: pop 0.35s ease; }
.chat-msg.removed .chat-text { text-decoration: line-through; opacity: 0.55; }
.chat-avatar { width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0; }
.chat-name { font-weight: 600; color: #f2f3f5; margin-bottom: 2px; display: flex; align-items: center; gap: 6px; }
.chat-channel { color: #949ba4; font-weight: 400; font-size: 0.85rem; }
.app-tag { background: #5865f2; color: #fff; font-size: 0.62rem; font-weight: 700; padding: 1px 5px; border-radius: 4px; }
.chat-text { word-break: break-word; }
.chat-note { color: #ed4245; font-size: 0.78rem; margin-top: 2px; }
.chat-system { padding: 8px 18px 8px 72px; color: #949ba4; }
.chat-system strong { color: #f2f3f5; }
.chat-typing { padding: 10px 18px 10px 72px; color: #949ba4; font-size: 0.85rem; display: flex; align-items: center; gap: 3px; }
.chat-typing i { width: 6px; height: 6px; border-radius: 50%; background: #949ba4; animation: typing 1s infinite; }
.chat-typing i:nth-child(2) { animation-delay: 0.15s; }
.chat-typing i:nth-child(3) { animation-delay: 0.3s; margin-right: 6px; }
@keyframes typing { 50% { transform: translateY(-4px); opacity: 0.5; } }
@keyframes pop { from { opacity: 0; transform: translateY(6px); } }
.bot-reply .dc-msg { max-width: 520px; }

/* Emoji picker (site editor) */
.emoji-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 8px; max-height: 50vh; overflow: auto; margin-top: 12px; }
.emoji-grid button { background: var(--bg-2); border: 1px solid var(--border); border-radius: 10px; padding: 8px 4px; cursor: pointer; color: var(--muted); font-size: 0.65rem; display: grid; gap: 4px; justify-items: center; overflow: hidden; }
.emoji-grid button:hover { border-color: var(--accent); color: var(--text); }
.emoji-grid img { width: 32px; height: 32px; object-fit: contain; }

/* Polish */
::selection { background: color-mix(in srgb, var(--accent) 45%, transparent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.nav { border-bottom-color: color-mix(in srgb, var(--accent) 18%, var(--border)); }
.footer { border-top-color: color-mix(in srgb, var(--accent) 18%, var(--border)); }
html { scrollbar-color: color-mix(in srgb, var(--accent) 50%, var(--card)) var(--bg); }

@media (max-width: 820px) {
  .hero { padding-top: 56px; }
  .hero-bot { min-height: 240px; }
  .hero-bot img { width: 180px; height: 180px; }
  .hero-ring { width: 220px; height: 220px; }
  .hero-heart { right: calc(50% - 110px); font-size: 2rem; }
  .demo-screen { min-height: 360px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .hearts { display: none; }
  .reveal { opacity: 1; transform: none; }
}

/* Support page */
.nav-links > a.nav-support { color: var(--accent); font-weight: 700; }
.nav-links > a.nav-support:hover, .nav-links > a.nav-support.active { background: var(--accent-soft); color: var(--text); }
.support-page .section-title { margin-bottom: 18px; }
.support-card { display: flex; flex-direction: column; gap: 8px; color: var(--text); transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s; }
.support-card:hover { text-decoration: none; transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent) 50%, var(--border)); box-shadow: 0 10px 30px color-mix(in srgb, var(--accent) 18%, transparent); }
.support-card.primary { background: linear-gradient(160deg, var(--accent-soft), transparent 70%), var(--card); }
.support-card p { color: var(--muted); margin: 0; flex: 1; }
.support-card .btn { align-self: flex-start; }
.support-icon { font-size: 2rem; }
.goal { margin: 0 auto 40px; max-width: 640px; }
.goal-top { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.goal-bar { height: 14px; border-radius: 999px; background: var(--bg-2); overflow: hidden; border: 1px solid var(--border); }
.goal-bar i { display: block; height: 100%; background: var(--gradient); border-radius: inherit; transition: width 1s ease; }
.goal p { margin: 10px 0 0; font-size: 0.9rem; }
.contact-card { display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; }
.contact-card h3 { margin-bottom: 4px; }
.contact-card p { margin: 0; }
.contact-card > * { min-width: 0; }
.btn-wrap { white-space: normal; overflow-wrap: anywhere; text-align: center; }

/* Icons set in Editor → Icons */
.ic { display: inline-flex; align-items: center; justify-content: center; }
.ic img.emoji, .hero-heart img.emoji, .stat-icon img.emoji, .support-icon img.emoji { margin: 0; }
.stat-icon img.emoji { width: 1.3em; height: 1.3em; }
.hero-heart img.emoji, .support-icon img.emoji { width: 1em; height: 1em; }
.hearts span img.emoji { width: 1em; height: 1em; }

/* Editor: icon list */
.icon-row { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--border); }
.icon-row:last-child { border-bottom: 0; }
.icon-row .icon-preview { width: 44px; height: 44px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--border); display: grid; place-items: center; font-size: 1.4rem; }
.icon-row .icon-preview img.emoji { width: 1.2em; height: 1.2em; margin: 0; }
.icon-row label { display: block; font-size: 0.9rem; margin-bottom: 4px; }
.icon-row .item-tools { flex-wrap: nowrap; }
@media (max-width: 640px) { .icon-row { grid-template-columns: 44px minmax(0, 1fr); } .icon-row .item-tools { grid-column: 2; } }

/* v2.5: message designer */
.var-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.var-chip { font: 600 0.78rem/1 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); border-radius: 999px; padding: 5px 9px; cursor: pointer; transition: transform 0.12s, background 0.12s; }
.var-chip:hover { background: color-mix(in srgb, var(--accent) 22%, transparent); transform: translateY(-1px); }
.preset-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.preview-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 6px; font-size: 0.8rem; }
.dc-msg.dc-plain { border-left-color: transparent; background: #313338; }
.field, .items, .item, .item summary { min-width: 0; }
.field > * { min-width: 0; }
.preview-note { color: var(--muted); font-size: 0.8rem; margin: 8px 0 0; }

/* ---------- Status page (v10) ---------- */
.status-page { padding-top: 40px; display: flex; flex-direction: column; gap: 18px; }
.status-page .stats { margin: 0; }
.card-title { font-size: 1.15rem; margin: 0 0 14px; display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.card-head .card-title { margin-bottom: 4px; }
.status-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 18px; align-items: start; }
.status-side { display: flex; flex-direction: column; gap: 18px; }
@media (max-width: 900px) { .status-grid { grid-template-columns: minmax(0, 1fr); } }

/* Level colours shared by everything on the page */
.lvl-ok { --lvl: var(--success); }
.lvl-slow, .lvl-warn, .lvl-maintenance { --lvl: var(--warning); }
.lvl-down, .lvl-bad, .lvl-incident { --lvl: var(--danger); }
.lvl-info, .lvl-accent { --lvl: var(--accent); }
.lvl-resolved { --lvl: var(--success); }
.lvl-none { --lvl: var(--card-2); }

/* Hero: a glowing orb that breathes in the current status colour */
.status-hero { position: relative; overflow: hidden; display: flex; align-items: center; gap: 28px; padding: 32px; border-color: color-mix(in srgb, var(--lvl) 35%, var(--border)); background: radial-gradient(120% 140% at 0% 50%, color-mix(in srgb, var(--lvl) 16%, transparent), transparent 60%), var(--card); }
.status-hero h1 { font-size: clamp(1.6rem, 3.6vw, 2.4rem); margin-bottom: 6px; }
.status-hero p { margin: 0 0 14px; max-width: 620px; }
.status-orb { position: relative; flex: none; width: 88px; height: 88px; display: grid; place-items: center; }
.status-orb i { position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--lvl); opacity: 0; animation: orb-ring 3s ease-out infinite; }
.status-orb i:nth-child(2) { animation-delay: 1s; }
.status-orb i:nth-child(3) { animation-delay: 2s; }
.status-orb::after { content: ''; width: 34px; height: 34px; border-radius: 50%; background: var(--lvl); box-shadow: 0 0 30px 6px color-mix(in srgb, var(--lvl) 70%, transparent), inset 0 -6px 12px rgba(0, 0, 0, 0.25); animation: orb-breathe 3s ease-in-out infinite; }
.lvl-down .status-orb i { animation-duration: 1.6s; }
@keyframes orb-ring { 0% { transform: scale(0.4); opacity: 0.9; } 100% { transform: scale(1.25); opacity: 0; } }
@keyframes orb-breathe { 50% { transform: scale(0.88); filter: brightness(1.25); } }
.status-meta { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px; border-radius: 999px; background: var(--bg-2); border: 1px solid var(--border); font-size: 0.85rem; font-weight: 600; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lvl); animation: live 1.2s ease-in-out infinite; }
@keyframes live { 50% { opacity: 0.25; } }
@media (max-width: 640px) { .status-hero { flex-direction: column; align-items: flex-start; padding: 24px 20px; gap: 16px; } .status-orb { width: 64px; height: 64px; } .status-orb::after { width: 26px; height: 26px; } }

/* Owner notice on the status page */
.status-notice { border-left: 4px solid var(--lvl); background: linear-gradient(90deg, color-mix(in srgb, var(--lvl) 12%, transparent), transparent 70%), var(--card); }
.status-notice-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.status-notice p:last-child { margin-bottom: 0; }

/* Components */
.comp { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--border); }
.comp:first-of-type { border-top: 0; padding-top: 0; }
.comp-icon { font-size: 1.4rem; text-align: center; }
.comp-copy { display: flex; flex-direction: column; min-width: 0; }
.comp-copy .muted { font-size: 0.85rem; }
.comp-state { display: inline-flex; align-items: center; gap: 6px; font-size: 0.85rem; font-weight: 700; color: var(--lvl); white-space: nowrap; }
.comp-state::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--lvl); box-shadow: 0 0 0 3px color-mix(in srgb, var(--lvl) 25%, transparent); }

/* Uptime bars: 90 days, last 30 on phones */
.uptime-big { font-size: 2rem; color: var(--lvl); }
.uptime-big.lvl-none { color: var(--muted); }
.uptime-bars { display: grid; grid-template-columns: repeat(90, minmax(0, 1fr)); gap: 2px; height: 42px; }
.uptime-bars .bar { all: unset; cursor: pointer; border-radius: 3px; background: var(--lvl); opacity: 0.85; transition: opacity 0.15s, transform 0.15s; }
.uptime-bars .bar.lvl-none { background: var(--card-2); }
.uptime-bars .bar:hover, .uptime-bars .bar:focus-visible { opacity: 1; transform: scaleY(1.12); outline: none; box-shadow: 0 0 0 2px var(--text); }
.uptime-caption { margin: 8px 0 0; font-size: 0.88rem; min-height: 1.4em; }
@media (max-width: 640px) { .uptime-bars { grid-template-columns: repeat(30, minmax(0, 1fr)); } .uptime-bars .bar:nth-child(-n + 60) { display: none; } .ago-90 { display: none; } .ago-30 { display: inline !important; } }

.ago-30 { display: none; }

/* 24 h chart */
.chart-readout { font-size: 1.5rem; margin-bottom: 8px; }
.chart-readout .muted { font-size: 0.9rem; }
.chart-box { position: relative; height: 180px; }
.chart-svg { display: block; width: 100%; height: 100%; overflow: visible; touch-action: pan-y; cursor: crosshair; }
.chart-line { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.chart-grid { stroke: var(--border); stroke-dasharray: 4 6; vector-effect: non-scaling-stroke; }
.chart-cursor { stroke: var(--muted); stroke-width: 1; vector-effect: non-scaling-stroke; }
.chart-marker { position: absolute; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 30%, transparent); pointer-events: none; }
.chart-max, .chart-min { position: absolute; right: 0; font-size: 0.75rem; color: var(--muted); background: color-mix(in srgb, var(--card) 80%, transparent); padding: 0 4px; border-radius: 4px; pointer-events: none; }
.chart-max { top: 0; }
.chart-min { bottom: 0; }
.chart-axis { display: flex; justify-content: space-between; font-size: 0.78rem; margin-top: 6px; }
.chart-empty { padding: 40px 10px; text-align: center; border: 1px dashed var(--border); border-radius: 12px; }

/* Events timeline */
.events { list-style: none; margin: 0; padding: 0; position: relative; }
.events::before { content: ''; position: absolute; left: 17px; top: 8px; bottom: 8px; width: 2px; background: var(--border); }
.event { position: relative; display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 12px; padding: 8px 0; }
.event-icon { position: relative; z-index: 1; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--lvl) 18%, var(--card)); border: 2px solid color-mix(in srgb, var(--lvl) 60%, transparent); font-size: 1rem; }
.event-icon .ic img.emoji { width: 1.1em; height: 1.1em; }
.event-top { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; padding-top: 6px; }
.event-top time { font-size: 0.8rem; white-space: nowrap; }
.event-text { font-size: 0.88rem; }

/* Badge + owner card */
.badge-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 10px 0; border-top: 1px solid var(--border); }
.badge-row img { height: 20px; width: auto; }
.owner-card { border-style: dashed; }
.owner-card .chips { margin-bottom: 10px; }
.owner-card textarea { min-height: 80px; }

/* Status dot in the menu */
.nav-dot { display: inline-block; width: 7px; height: 7px; margin-left: 6px; border-radius: 50%; background: var(--success); vertical-align: middle; box-shadow: 0 0 6px var(--success); }
.nav-dot.off { background: var(--danger); box-shadow: 0 0 6px var(--danger); }

/* Notice banner under the menu on every page */
.site-notice { background: linear-gradient(90deg, color-mix(in srgb, var(--lvl) 22%, var(--bg-2)), var(--bg-2)); border-bottom: 1px solid color-mix(in srgb, var(--lvl) 40%, var(--border)); font-size: 0.92rem; }
.site-notice-inner { max-width: 1140px; margin: 0 auto; padding: 8px 20px; display: flex; align-items: center; gap: 10px; }
.site-notice-inner > b { color: var(--lvl); }
.site-notice-text { flex: 1; min-width: 0; }
.site-notice-close { background: none; border: 0; color: var(--muted); font-size: 1.3rem; line-height: 1; cursor: pointer; padding: 0 4px; }
.site-notice-close:hover { color: var(--text); }
@media (max-width: 640px) { .site-notice-inner { flex-wrap: wrap; } .site-notice-text { flex-basis: 100%; order: 3; } }

/* Commands: click to copy */
.cmd-copy { all: unset; cursor: copy; border-radius: 6px; padding: 0 4px; margin-left: -4px; transition: background 0.15s, color 0.15s; }
.cmd-copy:hover, .cmd-copy:focus-visible { background: var(--accent-soft); color: var(--accent); }

/* Editor → Updates: "Post to Discord" toggle (v11) */
.announce { display: grid; gap: 10px; padding: 12px 14px; border-radius: 12px; background: var(--bg-2); border: 1px dashed var(--border); transition: border-color 0.2s, background 0.2s; }
.announce.on { border-style: solid; border-color: color-mix(in srgb, #5865f2 60%, var(--border)); background: linear-gradient(90deg, color-mix(in srgb, #5865f2 14%, transparent), transparent 70%), var(--bg-2); }
.announce.posted { border-style: solid; border-color: color-mix(in srgb, var(--success) 40%, var(--border)); }
.announce-label { display: grid; gap: 2px; font-weight: 600; min-width: 0; }
.announce-label small { font-weight: 400; font-size: 0.82rem; }
.announce.on .switch input:checked + span { background: #5865f2; }
.announce-error { margin: 0; font-size: 0.88rem; }

/* Support form (Support page, Contact) */
.contact-form-card { display: block; max-width: 760px; margin: 0 auto; position: relative; overflow: hidden; background: linear-gradient(160deg, var(--accent-soft), transparent 55%), var(--card); border-color: color-mix(in srgb, var(--accent) 30%, var(--border)); border-radius: 22px; }
.contact-form { display: grid; gap: 16px; }
.contact-head h3 { margin: 0 0 6px; font-size: 1.25rem; }
.contact-head .muted p { margin: 0; }
.contact-field { display: grid; gap: 6px; min-width: 0; }
.contact-field label { font-weight: 600; font-size: 0.95rem; }
.contact-field .help, .contact-note { color: var(--muted); font-size: 0.85rem; margin: 0; }
.contact-form input, .contact-form select, .contact-form textarea { border-radius: 14px; }
.contact-form textarea { min-height: 150px; }
.contact-form [aria-invalid='true'] { border-color: var(--danger); box-shadow: 0 0 0 3px color-mix(in srgb, var(--danger) 18%, transparent); }
.contact-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 640px) { .contact-row { grid-template-columns: minmax(0, 1fr); } }
.field-error { color: var(--danger); font-size: 0.85rem; font-weight: 600; margin: 0; }
.count { color: var(--muted); font-size: 0.8rem; font-variant-numeric: tabular-nums; }
.count.over { color: var(--danger); font-weight: 700; }
.contact-note code { background: var(--bg-2); padding: 1px 6px; border-radius: 6px; }
.contact-form .btn-primary:disabled { opacity: 0.7; cursor: progress; filter: none; }
/* Honeypot: off screen, never shown to people */
.hp { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.contact-sent { display: grid; justify-items: center; gap: 8px; text-align: center; padding: 18px 8px; animation: slide 0.3s; }
.contact-sent h3 { margin: 0; }
.contact-sent p { margin: 0 0 6px; max-width: 460px; }
.contact-sent-icon { font-size: 2.6rem; color: var(--accent); animation: beat 1.4s ease-in-out 2; }
.contact-sent-icon img.emoji { width: 1em; height: 1em; margin: 0; }

/* =====================================================================
   v2.9.2: a warmer welcome (greeting, steps, help and donate pages)
   ===================================================================== */

/* Small label above titles */
.eyebrow { display: block; margin: 0 0 6px; color: var(--accent); font-size: 0.78rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; }
.eyebrow.center { text-align: center; }
.center-actions { justify-content: center; }
.lead { margin: 0 auto; max-width: 640px; font-size: 1.08rem; color: var(--muted); }
.lead p { margin: 0.4em 0; }

/* Soft glow behind page titles */
.glow-head { position: relative; isolation: isolate; }
.glow-head::before { content: ''; position: absolute; z-index: -1; left: 50%; top: 10px; width: min(560px, 90%); height: 180px; transform: translateX(-50%); background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 22%, transparent), transparent); pointer-events: none; }
.glow-head:not(.center)::before { left: 0; transform: none; }

/* Greeting above the hero headline */
.hello { display: flex; width: fit-content; max-width: 100%; align-items: center; gap: 8px; margin: 18px 0 10px !important; padding: 6px 14px 6px 10px; border-radius: 999px; background: color-mix(in srgb, var(--card) 75%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--border)); color: var(--text) !important; font-size: 1rem !important; font-weight: 600; backdrop-filter: blur(6px); }
.hello strong { color: var(--accent); }
.hello-icon { font-size: 1.2rem; }
.hello-icon img.emoji { width: 1.2em; height: 1.2em; margin: 0; }
.wave { display: inline-block; transform-origin: 70% 70%; animation: wave 2.4s ease-in-out 0.6s 2; }
@keyframes wave { 0%, 60%, 100% { transform: rotate(0); } 10%, 30% { transform: rotate(16deg); } 20% { transform: rotate(-8deg); } 40% { transform: rotate(10deg); } 50% { transform: rotate(-4deg); } }

/* Chips under the hero buttons */
.hero-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 22px 0 0; }
.hero-chips li { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--text); font-size: 0.85rem; font-weight: 600; }
.hero-chips .ic { font-size: 0.9em; }

/* Shine sweep on primary buttons */
.btn-primary { position: relative; overflow: hidden; isolation: isolate; }
.btn-primary::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.28) 50%, transparent 70%); transform: translateX(-120%); transition: transform 0.7s ease; }
.btn-primary:hover::after { transform: translateX(120%); }

/* Get started in 3 steps */
.steps-section { padding-bottom: 24px; }
.steps { list-style: none; padding: 0; margin: 32px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 30px 18px; counter-reset: step; position: relative; }
.step { position: relative; padding-top: 30px; text-align: center; display: grid; justify-items: center; align-content: start; gap: 8px; transition: transform 0.2s, box-shadow 0.2s; }
.step:hover { transform: translateY(-4px); box-shadow: 0 12px 34px color-mix(in srgb, var(--accent) 20%, transparent); }
.step h3 { margin: 0; }
.step p { color: var(--muted); margin: 0; }
.step-num { position: absolute; top: -16px; left: 50%; transform: translateX(-50%); width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--gradient); color: #fff; font-weight: 800; box-shadow: 0 0 0 5px var(--bg), 0 6px 18px color-mix(in srgb, var(--accent) 45%, transparent); }
.step-icon { width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center; font-size: 1.7rem; background: var(--accent-soft); }
.step-icon img.emoji { width: 1.6em; height: 1.6em; }
.steps-section .hero-actions { margin-top: 26px; }
@media (min-width: 821px) {
  .steps::before { content: ''; position: absolute; top: 0; left: 16%; right: 16%; border-top: 2px dashed color-mix(in srgb, var(--accent) 40%, transparent); z-index: -1; }
}

/* Kind words */
.kind { margin: 0; display: grid; gap: 12px; align-content: start; background: linear-gradient(160deg, var(--accent-soft), transparent 60%), var(--card); }
.kind-mark { font-size: 1.6rem; }
.kind blockquote { margin: 0; font-size: 1.02rem; line-height: 1.6; }
.kind figcaption { display: grid; gap: 2px; font-size: 0.9rem; }

.cta-small { margin: 18px 0 0; font-size: 0.92rem; }
.cta-small a { color: var(--muted); }
.cta-small a:hover { color: var(--accent); }

/* Help page */
.quick-grid { margin-top: 8px; }
.quick-grid { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.quick-card { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 14px; color: var(--text); transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s; }
.quick-card:hover { text-decoration: none; transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent) 50%, var(--border)); box-shadow: 0 10px 30px color-mix(in srgb, var(--accent) 18%, transparent); }
.quick-card h3 { margin: 0 0 4px; font-size: 1.05rem; padding-right: 22px; }
.quick-card p { margin: 0; color: var(--muted); font-size: 0.9rem; }
.quick-icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--accent-soft); font-size: 1.35rem; flex-shrink: 0; }
.quick-icon img.emoji { width: 1.3em; height: 1.3em; margin: 0; }
.quick-go { position: absolute; top: 18px; right: 18px; color: var(--accent); font-weight: 800; font-size: 1.2rem; transition: transform 0.2s; }
.quick-card:hover .quick-go { transform: translateX(4px); }
.data-card { display: flex; gap: 16px; align-items: flex-start; margin-top: 18px; }
.data-card h3 { margin: 0 0 4px; }
.data-card p { margin: 0; }
.donate-nudge { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 40px; color: var(--text); background: linear-gradient(120deg, var(--accent-soft), transparent 65%), var(--card); border-color: color-mix(in srgb, var(--accent) 30%, var(--border)); transition: transform 0.2s; }
.donate-nudge:hover { text-decoration: none; transform: translateY(-2px); }
.donate-nudge > div { flex: 1; min-width: 200px; }
.donate-nudge h3 { margin: 0 0 4px; }
.donate-nudge p { margin: 0; }
.faq-more { margin-top: 28px; }
.help-link { margin-top: 36px; }

/* Donate page: where your support goes */
.uses { max-width: 640px; margin: 28px auto 0; }
.uses h3 { margin: 0 0 12px; text-align: center; }
.uses ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.uses li { display: flex; gap: 10px; align-items: flex-start; padding: 10px 14px; border-radius: 12px; background: var(--bg-2); }
.uses li .ic { flex-shrink: 0; line-height: 1.6; }

/* Page not found */
.notfound { padding-top: 80px; padding-bottom: 60px; }
.notfound-icon { display: inline-block; font-size: 4rem; margin-bottom: 8px; animation: float 5s ease-in-out infinite; }
.notfound-icon img.emoji { width: 1em; height: 1em; }

/* Footer quote */
.footer-quote { width: 100%; margin: 4px 0 0; text-align: center; color: var(--muted); font-style: italic; font-size: 0.88rem; }

/* Menu: Donate as a soft pill */
.nav-links > a.nav-support { background: var(--accent-soft); margin-left: 4px; }
@media (max-width: 820px) { .nav-links > a.nav-support { margin-left: 0; } }

/* .section's padding used to remove the container's side gutter on phones */
.section.container { padding-left: 20px; padding-right: 20px; }
/* Collection gallery (#/collection) */
.col-page { padding-bottom: 48px; }
.col-head h1 { margin-bottom: 6px; }
.col-intro { max-width: 680px; margin: 0 0 8px; }
.col-stats { margin: 0; font-weight: 700; background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; display: inline-block; }
.col-updated { margin: 4px 0 0; font-size: 0.85rem; }
.col-teaser { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; margin-bottom: 14px; border-radius: var(--radius); border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--border)); background: linear-gradient(120deg, color-mix(in srgb, var(--accent) 22%, var(--card)), color-mix(in srgb, var(--accent-2) 22%, var(--card))); }
.col-teaser p { margin: 2px 0 0; color: var(--muted); }
.col-teaser-icon, .col-note-icon { font-size: 1.6rem; line-height: 1; flex: none; }
.col-note { display: flex; gap: 12px; align-items: flex-start; padding: 14px 18px; margin-bottom: 18px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--border); border-left: 4px solid var(--accent); position: relative; overflow: hidden; }
.col-note::after { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 0 0, var(--accent-soft), transparent 55%); pointer-events: none; }
.col-note > div { position: relative; }
.col-controls { display: grid; gap: 10px; margin-bottom: 18px; }
.col-row { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; }
.col-search { max-width: 420px; min-height: 44px; }
.col-label { color: var(--muted); font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; min-width: 52px; }
.col-chip { min-height: 44px; display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; text-decoration: none !important; }
.col-chip:hover { color: var(--text); border-color: color-mix(in srgb, var(--accent) 50%, var(--border)); }
.col-chip.active { background: var(--gradient); color: #fff; box-shadow: 0 4px 16px color-mix(in srgb, var(--accent) 35%, transparent); }
.col-chip-rarity { border-color: color-mix(in srgb, var(--r) 55%, var(--border)); }
.col-chip-rarity::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: var(--r); flex: none; }
.col-chip-rarity.active { background: linear-gradient(120deg, color-mix(in srgb, var(--r) 70%, var(--accent)), var(--accent)); }
.col-chip-soon { opacity: 0.75; border-style: dashed; cursor: help; }
.col-chip-mine.busy { cursor: progress; background: linear-gradient(90deg, var(--card) 25%, var(--card-2) 50%, var(--card) 75%); background-size: 200% 100%; animation: shimmer 1.2s infinite; }
.col-mine-error { margin: 0; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.col-progress { margin-bottom: 18px; display: grid; gap: 10px; }
.col-progress-top { display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline; }
.col-progress-top strong { font-size: 1.15rem; }
.col-bar { height: 12px; border-radius: 999px; background: var(--bg-2); border: 1px solid var(--border); overflow: hidden; }
.col-bar span { display: block; height: 100%; background: var(--gradient); border-radius: inherit; transition: width 0.6s ease; }
.col-per-rarity { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--muted); font-size: 0.9rem; }
.col-per-rarity li { display: inline-flex; align-items: center; gap: 6px; }
.col-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--r); }
.col-progress.complete { border-color: #f1c40f; box-shadow: 0 0 24px rgba(241, 196, 15, 0.25); }
.col-banner { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 12px; background: linear-gradient(120deg, rgba(241, 196, 15, 0.28), color-mix(in srgb, var(--accent) 22%, transparent)); }
.col-banner-icon { font-size: 1.8rem; line-height: 1; }

.col-grid { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 600px) { .col-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 900px) { .col-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1140px) { .col-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.col-grid-empty { grid-template-columns: minmax(0, 1fr) !important; }
.col-empty { text-align: center; padding: 36px 22px; }
.col-empty-icon { font-size: 2.2rem; display: block; margin-bottom: 6px; }

.col-card {
  --r: #99aab5;
  position: relative; overflow: hidden; display: grid; justify-items: center; align-content: start; gap: 4px;
  min-height: 188px; padding: 30px 10px 14px; border-radius: var(--radius); cursor: pointer; text-align: center;
  font: inherit; color: var(--text); border: 2px solid transparent;
  background: linear-gradient(var(--card), var(--card)) padding-box, linear-gradient(150deg, var(--r), color-mix(in srgb, var(--r) 10%, var(--border)) 65%) border-box;
  transition: transform 0.15s, box-shadow 0.2s, filter 0.2s;
}
.col-card:hover { transform: translateY(-3px); box-shadow: 0 10px 26px color-mix(in srgb, var(--r) 30%, transparent); }
.col-card:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.col-card::before { content: ''; position: absolute; inset: 0 0 auto; height: 70px; background: radial-gradient(ellipse at 50% 0, color-mix(in srgb, var(--r) 28%, transparent), transparent 70%); pointer-events: none; }
.col-no { position: absolute; top: 8px; left: 10px; font-size: 0.78rem; font-weight: 800; color: var(--muted); font-variant-numeric: tabular-nums; }
.col-badge { position: absolute; top: 7px; right: 8px; min-width: 26px; padding: 1px 7px; border-radius: 999px; font-size: 0.78rem; font-weight: 800; background: var(--gradient); color: #fff; }
.col-badge.q { background: var(--card-2); color: var(--muted); border: 1px solid var(--border); }
/* v3.1.0: a shiny copy in My collection: sparkle in the corner and a soft golden glow */
.col-shiny { position: absolute; top: 6px; left: 50%; transform: translateX(-50%); font-size: 0.95rem; line-height: 1; }
.col-card.shiny { box-shadow: 0 0 0 1px rgba(241, 196, 15, 0.55), 0 0 18px rgba(241, 196, 15, 0.22); }
@media (prefers-reduced-motion: no-preference) { .col-shiny { animation: col-sparkle 2.4s ease-in-out infinite; } }
@keyframes col-sparkle { 0%, 100% { opacity: 0.55; } 50% { opacity: 1; } }
.col-emoji { font-size: 3rem; line-height: 1.15; position: relative; }
.col-emoji .emoji { width: 1.15em; height: 1.15em; vertical-align: middle; }
.col-name { font-weight: 700; line-height: 1.25; overflow-wrap: anywhere; position: relative; }
.col-rarity { color: var(--r); font-size: 0.8rem; font-weight: 700; position: relative; }
.col-stars { letter-spacing: 1px; white-space: nowrap; }
.col-star .emoji { width: 1em; height: 1em; vertical-align: -2px; }
.col-card.missing { filter: grayscale(0.85); opacity: 0.55; }
.col-card.missing:hover, .col-card.missing:focus-visible { opacity: 0.85; }
.col-skel { cursor: default; background: linear-gradient(90deg, var(--card) 25%, var(--card-2) 50%, var(--card) 75%); background-size: 200% 100%; animation: shimmer 1.2s infinite; border: 2px solid var(--border); }
.col-skel:hover { transform: none; box-shadow: none; }
/* Epic: a gentle glow. Legendary: a soft shimmer that sweeps across */
.col-card.r-epic { box-shadow: 0 0 18px color-mix(in srgb, var(--r) 35%, transparent); animation: col-glow 3.2s ease-in-out infinite; }
.col-card.r-legendary::after, .col-dialog.r-legendary::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 236, 160, 0.28) 50%, transparent 65%); background-size: 250% 100%; animation: col-shimmer 3.6s ease-in-out infinite;
}
.col-card.r-legendary { box-shadow: 0 0 20px color-mix(in srgb, var(--r) 30%, transparent); }
.col-card.missing.r-epic, .col-card.missing.r-legendary { animation: none; box-shadow: none; }
.col-card.missing.r-legendary::after { display: none; }
@keyframes col-glow { 50% { box-shadow: 0 0 28px color-mix(in srgb, var(--r) 55%, transparent); } }
@keyframes col-shimmer { from { background-position: 120% 0; } to { background-position: -120% 0; } }
.col-in { animation: col-in 0.45s ease both; animation-delay: calc(var(--i, 0) * 25ms); }
.col-in.r-epic { animation: col-in 0.45s ease both, col-glow 3.2s ease-in-out 0.5s infinite; animation-delay: calc(var(--i, 0) * 25ms), 0.5s; }
@keyframes col-in { from { opacity: 0; transform: translateY(10px) scale(0.97); } }

.col-lock { overflow: hidden; }
.col-back { padding: 16px; }
.col-dialog { --r: #99aab5; position: relative; overflow: hidden auto; width: min(460px, 100%); text-align: center; padding: 30px 22px 22px; border: 2px solid transparent; background: linear-gradient(var(--card), var(--card)) padding-box, linear-gradient(150deg, var(--r), var(--border) 70%) border-box; animation: pop 0.2s ease; }
.col-dialog::before { content: ''; position: absolute; inset: 0 0 auto; height: 160px; background: radial-gradient(ellipse at 50% 0, color-mix(in srgb, var(--r) 32%, transparent), transparent 70%); pointer-events: none; }
.col-dialog > * { position: relative; }
.col-dialog h2 { margin: 6px 0 2px; overflow-wrap: anywhere; }
.col-emoji.big { font-size: 5rem; display: block; }
.col-meta { margin: 0 0 12px; color: var(--muted); }
.col-fact { font-size: 1.05rem; margin: 0 0 12px; overflow-wrap: anywhere; }
.col-chance { font-size: 0.9rem; margin: 0 0 12px; }
.col-owned { font-weight: 700; margin: 0 0 14px; color: var(--accent); }
.col-owned.missing { color: var(--muted); }
.col-close { position: absolute; top: 8px; right: 8px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--card-2); color: var(--text); font-size: 1.5rem; line-height: 1; cursor: pointer; z-index: 1; }
.col-close:hover { background: var(--accent-soft); color: var(--accent); }
.col-dialog-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.col-dialog-nav .btn { min-height: 44px; white-space: normal; padding: 8px 10px; font-size: 0.9rem; }
@media (max-width: 640px) {
  .col-page.container { padding: 0 16px 40px; }
  .col-label { min-width: 0; flex-basis: 100%; }
  .col-search { max-width: none; }
  .col-card { min-height: 170px; }
  .col-emoji { font-size: 2.6rem; }
}
@media (prefers-reduced-motion: reduce) {
  .col-in, .col-card.r-epic, .col-dialog, .col-skel, .col-chip-mine.busy { animation: none !important; }
  .col-card.r-legendary::after, .col-dialog.r-legendary::after { animation: none !important; background-position: 50% 0; }
  .col-card, .col-bar span { transition: none !important; }
  .col-card:hover { transform: none; }
}

/* Beta page (#/beta) */
.beta-page { padding-bottom: 48px; }
.beta-sub { margin: 28px 0 12px; font-size: 1.2rem; }
.beta-big { font-size: 2.2rem; line-height: 1; }
.beta-big img.emoji { width: 1em; height: 1em; }
.beta-intro { display: flex; gap: 14px; align-items: flex-start; background: linear-gradient(120deg, rgba(250, 204, 21, 0.16), color-mix(in srgb, var(--accent) 14%, transparent) 70%), var(--card); border-color: rgba(250, 204, 21, 0.35); }
.beta-intro p { margin: 4px 0 0; color: var(--muted); }
.beta-locked { text-align: center; display: grid; justify-items: center; gap: 6px; padding: 32px 22px; background: linear-gradient(160deg, rgba(250, 204, 21, 0.12), transparent 60%), var(--card); }
.beta-locked h2 { margin: 4px 0 0; }
.beta-locked p { margin: 0; max-width: 560px; }
.beta-locked .btn { margin-top: 10px; }
.beta-lock-icon { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; background: rgba(250, 204, 21, 0.14); box-shadow: 0 0 0 8px rgba(250, 204, 21, 0.06); }
.beta-empty { text-align: center; display: grid; justify-items: center; gap: 6px; padding: 30px 22px; }
.beta-empty h2 { margin: 0; }
.beta-empty p { margin: 0; }
.beta-servers { margin-bottom: 14px; }
.beta-server { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 14px 6px 6px; }
.beta-server .server-icon { width: 30px; height: 30px; font-size: 0.7rem; border-radius: 50%; }
.beta-server.active { background: var(--gradient); color: #fff; }
.beta-presets { margin: 4px 0 14px; }
.beta-presets .btn { min-height: 44px; }
.beta-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.beta-feature { border-color: rgba(250, 204, 21, 0.3); }
.beta-feature h3 { margin: 0 0 6px; }
.beta-feature p { margin: 0 0 10px; }
.beta-feature-top { display: flex; gap: 14px; justify-content: space-between; align-items: flex-start; }
.beta-feature-top .switch { flex: none; margin-top: 4px; }
.beta-feature-top .switch input:disabled + span { opacity: 0.6; cursor: progress; }
.beta-meta { display: flex; flex-wrap: wrap; gap: 6px; }
@media (prefers-reduced-motion: no-preference) {
  .beta-lock-icon { animation: beat 2.4s ease-in-out 0.4s 2; }
}
.beta-meta .opt { font-size: 0.78rem; padding: 2px 8px; border-radius: 6px; background: var(--card-2); color: var(--text); font-family: ui-monospace, Consolas, monospace; }

/* Leaderboards (#/leaderboard, v3.0.1). Mobile first; names sit in <bdi> so Arabic names keep the row order. */
.lb-page { padding-bottom: 48px; }
.lb-head h1 { margin-bottom: 6px; }
.lb-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 14px; }
.lb-tab { min-height: 44px; display: inline-flex; align-items: center; gap: 6px; }
.lb-meta { margin: 0 0 14px; font-weight: 700; background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; display: inline-block; }
.lb-name { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; unicode-bidi: isolate; }
.lb-row .lb-name { text-align: left; } /* an all-Arabic name stays next to its rank, not at the far end */
.lb-podium { list-style: none; margin: 0 0 18px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; align-items: end; }
.lb-spot { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px 8px 0; border-radius: var(--radius); background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 20%, var(--card)), color-mix(in srgb, var(--accent-2) 20%, var(--card))); border: 1px solid color-mix(in srgb, var(--accent) 40%, var(--border)); text-align: center; min-width: 0; overflow: hidden; }
.lb-spot .lb-name { max-width: 100%; font-size: 0.95rem; }
.lb-spot-1 { order: 2; padding-top: 22px; box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 55%, transparent), 0 12px 32px -12px var(--accent); }
.lb-spot-2 { order: 1; }
.lb-spot-3 { order: 3; }
.lb-crown { position: absolute; top: 2px; left: 50%; transform: translateX(-50%); font-size: 1.2rem; line-height: 1; }
.lb-avatar { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 1.3rem; color: #fff; background: var(--gradient); box-shadow: 0 0 0 3px var(--card); }
.lb-spot-1 .lb-avatar { width: 64px; height: 64px; font-size: 1.6rem; }
.lb-place { font-weight: 800; color: var(--accent); }
.lb-xp { font-variant-numeric: tabular-nums; color: var(--text); font-weight: 600; white-space: nowrap; }
.lb-level { color: var(--muted); font-size: 0.82rem; white-space: nowrap; }
.lb-step { display: block; width: 100%; margin-top: 8px; height: 10px; background: var(--gradient); opacity: 0.55; }
.lb-spot-1 .lb-step { height: 26px; opacity: 0.85; }
.lb-spot-2 .lb-step { height: 16px; }
.lb-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.lb-row { display: grid; grid-template-columns: 3.2em minmax(0, 1fr) auto auto; gap: 10px; align-items: center; padding: 10px 14px; border-radius: 12px; background: var(--card); border: 1px solid var(--border); min-height: 44px; }
.lb-row:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); }
.lb-rank { font-weight: 800; color: var(--muted); font-variant-numeric: tabular-nums; }
.lb-empty { text-align: center; }
.lb-updated { margin: 14px 0 0; font-size: 0.85rem; }
.lb-hide { margin-top: 18px; color: var(--muted); font-size: 0.9rem; }
@media (max-width: 520px) {
  .lb-row { grid-template-columns: 2.8em minmax(0, 1fr) auto; padding: 10px 12px; }
  .lb-row .lb-level { display: none; }
  .lb-avatar { width: 42px; height: 42px; font-size: 1.1rem; }
  .lb-spot-1 .lb-avatar { width: 52px; height: 52px; }
  .lb-spot .lb-name { font-size: 0.85rem; }
}

/* FAQ (#/faq): search, categories, open and close all, a link per question. Scoped to the page, because
   the editor reuses details.faq for its command notes. */
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.faq-toolbar { display: grid; gap: 10px; margin: 0 0 18px; }
.faq-label { font-weight: 700; }
.faq-search { min-height: 48px; font-size: 1rem; }
.faq-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; }
.faq-count { margin: 0; font-size: 0.9rem; }
.faq-bulk { display: flex; gap: 8px; }
.faq-bulk .btn, .faq-empty-actions .btn { min-height: 40px; }
.faq-chips .chip { min-height: 40px; }
.faq-group { margin-top: 18px; }
.faq-group-title { font-size: 1.15rem; margin: 0 0 10px; color: var(--accent); }
.faq-page details.faq { padding: 0; scroll-margin-top: 96px; transition: border-color 0.15s; }
.faq-page details.faq[open] { border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); }
.faq-page details.faq summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 14px 18px; border-radius: 12px; line-height: 1.4; }
.faq-page details.faq summary::-webkit-details-marker { display: none; }
.faq-page details.faq summary:hover { background: var(--card-2); }
.faq-page details.faq summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.faq-page details.faq[open] summary { margin-bottom: 0; border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.faq-chevron { flex: none; width: 10px; height: 10px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg) translate(-2px, -2px); transition: transform 0.2s ease; }
.faq-page details.faq[open] .faq-chevron { transform: rotate(225deg) translate(-2px, -2px); border-color: var(--accent); }
.faq-answer { padding: 4px 18px 0; }
.faq-tools { display: flex; justify-content: flex-end; padding: 0 12px 10px; }
.faq-link { background: none; border: 0; color: var(--muted); font: 600 0.85rem var(--font); cursor: pointer; padding: 8px 10px; min-height: 36px; border-radius: 8px; }
.faq-link:hover, .faq-link:focus-visible { color: var(--accent); background: var(--accent-soft); }
mark.faq-hit { background: color-mix(in srgb, var(--accent) 35%, transparent); color: inherit; border-radius: 3px; padding: 0 1px; }
.faq-empty { text-align: center; }
.faq-empty p { margin: 0 0 12px; }
.faq-empty-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.lb-share { margin-left: 6px; min-height: 36px; vertical-align: middle; }

/* ---------- Cookie banner, settings & policy ---------- */
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--muted); cursor: pointer; }
.link-btn:hover { color: var(--text); text-decoration: underline; }
.cookie-banner {
  position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 90;
  width: min(980px, calc(100% - 32px)); display: flex; align-items: center; gap: 18px;
  padding: 16px 18px; border-radius: 16px; border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--border));
  background: color-mix(in srgb, var(--card) 92%, transparent); backdrop-filter: blur(14px);
  box-shadow: var(--shadow), 0 0 0 1px rgba(0, 0, 0, 0.2), 0 0 40px color-mix(in srgb, var(--accent) 14%, transparent);
  animation: cookie-in 0.35s ease-out;
}
.cookie-banner::before { content: ''; position: absolute; inset: 0 0 auto; height: 2px; border-radius: 16px 16px 0 0; background: var(--gradient); }
.cookie-banner-text { flex: 1; min-width: 0; }
.cookie-banner-text b { display: block; margin-bottom: 2px; }
.cookie-banner-text p { margin: 0; color: var(--muted); font-size: 0.92rem; }
.cookie-banner-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
@keyframes cookie-in { from { opacity: 0; transform: translate(-50%, 16px); } }
@media (max-width: 760px) {
  .cookie-banner { flex-direction: column; align-items: stretch; gap: 12px; bottom: 10px; width: calc(100% - 20px); padding: 14px; }
  .cookie-banner-text p { font-size: 0.85rem; line-height: 1.45; }
  .cookie-banner-actions .btn { padding: 10px 12px; min-height: 42px; }
  .cookie-banner-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .cookie-banner-actions .btn-primary { grid-column: 1 / -1; grid-row: 1; }
}
.cookie-modal { width: min(680px, 100%); display: flex; flex-direction: column; gap: 14px; }
.cookie-modal h2 { margin: 0 0 4px; }
.cookie-modal .card-head { margin-bottom: 0; flex-wrap: nowrap; }
.cookie-modal .card-head > div { flex: 1; min-width: 0; }
.cookie-presets { display: flex; gap: 8px; flex-wrap: wrap; }
.cookie-presets .chip:hover { color: var(--text); border-color: color-mix(in srgb, var(--accent) 50%, var(--border)); }
.cookie-cat { background: var(--card-2); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; }
.cookie-cat h3 { font-size: 1rem; margin: 0 0 4px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cookie-cat p { margin: 0; font-size: 0.9rem; }
.cookie-cat .field-row { align-items: flex-start; gap: 16px; }
.cookie-cat details { margin-top: 10px; font-size: 0.85rem; }
.cookie-cat summary { cursor: pointer; color: var(--accent); font-weight: 600; }
.cookie-tag { font-size: 0.72rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); }
.cookie-gpc { margin-top: 8px !important; color: var(--warning); }
.cookie-modal-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.cookie-modal-actions .toolbar { margin: 0; }
.cookie-table { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: 0.85rem; }
.cookie-table th, .cookie-table td { text-align: left; padding: 7px 8px; border-bottom: 1px solid var(--border); vertical-align: top; }
.cookie-table th { color: var(--muted); font-weight: 600; }
.cookie-table code { white-space: nowrap; }
.table-scroll { overflow-x: auto; }
.cookie-status { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 20px 0; }
.cookie-status h3 { margin: 0 0 4px; }
.cookie-status p { margin: 0; }
.switch input:disabled + span { cursor: not-allowed; opacity: 0.6; }

/* ---------- Analytics (owner) ---------- */
.an-page { padding-bottom: 20px; }
.an-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.an-head p { margin: 0; }
.an-tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.an-live { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 0.85rem; font-weight: 600; }
.an-live i { width: 9px; height: 9px; border-radius: 50%; background: var(--border); }
.an-live i.on { background: var(--success); box-shadow: 0 0 0 4px color-mix(in srgb, var(--success) 25%, transparent); animation: an-pulse 2s infinite; }
@keyframes an-pulse { 50% { box-shadow: 0 0 0 7px color-mix(in srgb, var(--success) 0%, transparent); } }
.an-body { display: flex; flex-direction: column; gap: 18px; transition: opacity 0.2s; }
.an-body.loading { opacity: 0.5; pointer-events: none; }
.an-stats { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); margin: 0; }
.an-stats .stat b { font-size: 1.6rem; }
.an-bar { fill: var(--accent); transition: opacity 0.12s; }
.an-bar.dim { opacity: 0.35; }
.an-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px; }
.an-list .card-title { font-size: 1rem; }
.an-table { width: 100%; border-collapse: separate; border-spacing: 0 4px; font-size: 0.9rem; }
.an-table th { text-align: left; color: var(--muted); font-weight: 600; font-size: 0.78rem; padding: 0 10px; }
.an-table th:not(:first-child), .an-table td:not(:first-child) { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.an-table td { padding: 7px 10px; }
.an-table tbody tr { background: linear-gradient(90deg, var(--accent-soft) var(--w, 0%), transparent var(--w, 0%)); }
.an-table tbody td:first-child { border-radius: 8px 0 0 8px; max-width: 0; width: 100%; }
.an-table tbody td:last-child { border-radius: 0 8px 8px 0; }
.an-name { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); }
.an-table small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.75rem; }
.an-pages .an-table td:first-child { min-width: 160px; }
.an-empty { padding: 48px 22px; }
.an-empty-icon { font-size: 2.6rem; margin: 0; }
.an-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 0.85rem; }
@media (max-width: 640px) { .an-grid { grid-template-columns: 1fr; } .an-head { align-items: flex-start; } }
@media (prefers-reduced-motion: reduce) { .cookie-banner, .an-live i.on { animation: none; } }

/* ---------- Announcements (#/announce) ---------- */
.ann-page .small, .ann-page small { font-size: 0.82rem; }
.ann-templates { align-items: center; margin-top: 14px; }
.ann-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 18px; align-items: start; margin-bottom: 48px; }
.ann-side { display: flex; flex-direction: column; gap: 18px; position: sticky; top: 84px; max-height: calc(100vh - 100px); overflow-y: auto; scrollbar-width: thin; }
.ann-compose { padding-top: 6px; }
.ann-compose .field { padding: 14px 0; }
.ann-compose textarea { min-height: 150px; resize: vertical; }
.ann-editing { margin: 14px 0 4px; }
.ann-actions { padding-top: 16px; }
.chip:disabled { opacity: 0.4; cursor: not-allowed; }
.chip.chip-loud.active { background: var(--danger); }
.btn.loading { opacity: 0.6; pointer-events: none; }
.danger-text { color: var(--danger); }

.ann-swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.ann-swatch { position: relative; width: 38px; height: 38px; border-radius: 50%; border: 2px solid var(--border); cursor: pointer; padding: 0;
  background: radial-gradient(circle at 30% 28%, color-mix(in srgb, #fff 45%, var(--sw)), var(--sw) 55%, color-mix(in srgb, #000 35%, var(--sw)));
  transition: transform 0.15s, box-shadow 0.2s; }
.ann-swatch:hover { transform: translateY(-2px) scale(1.06); }
.ann-swatch.active { border-color: #fff; box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--sw), 0 0 22px color-mix(in srgb, var(--sw) 60%, transparent); }
.ann-swatch-tag { position: absolute; left: 50%; bottom: -16px; transform: translateX(-50%); font-size: 0.62rem; color: var(--muted); font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.ann-swatches:has(.ann-swatch-tag) { padding-bottom: 14px; }

.ann-buttons { display: grid; gap: 8px; }
.ann-button-row { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr) auto; gap: 8px; align-items: center; }
.ann-when { display: grid; gap: 10px; }
.ann-picker { max-width: 280px; color-scheme: dark; }

/* The preview: a Discord message with a Components V2 container */
.ann-preview { background: #313338; border-radius: 12px; padding: 16px 14px; border: 1px solid #1e1f22; }
.ann-dc { display: flex; gap: 14px; }
.ann-dc-avatar { width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0; object-fit: cover; }
.ann-dc-main { min-width: 0; flex: 1; display: grid; gap: 6px; align-content: start; }
.ann-dc-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 0.9rem; }
.ann-dc-meta b { color: #f2f3f5; }
.ann-dc-meta .muted { font-size: 0.75rem; color: #949ba4; }
.ann-dc-app { background: #5865f2; color: #fff; font-size: 0.62rem; font-weight: 700; padding: 1px 5px; border-radius: 4px; }
.ann-dc-ping { justify-self: start; background: rgba(88, 101, 242, 0.3); color: #c9cdfb; border-radius: 4px; padding: 0 3px; font-weight: 600; font-size: 0.95rem; }
.ann-dc-box { gap: 8px; transition: border-color 0.25s; }
.ann-dc-sub { font-size: 0.75rem; color: #949ba4; }
.ann-dc-sub .emoji { width: 1em; height: 1em; }
.ann-dc-box .dc-title { margin: 0; }
.ann-dc-box .dc-desc { overflow-wrap: anywhere; }
.ann-dc-box .dc-desc :is(h1, h2, h3) { margin: 6px 0; color: #f2f3f5; font-size: 1.05rem; }
.ann-dc-box .dc-desc code { background: #1e1f22; padding: 1px 4px; border-radius: 4px; font-size: 0.85em; }
.ann-dc-hr { border: 0; border-top: 1px solid #3f4147; margin: 2px 0; width: 100%; }

.ann-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ann-item { position: relative; display: grid; gap: 6px; padding: 12px 14px 12px 18px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--border); overflow: hidden; }
.ann-item::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--bar); }
.ann-item.current { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.ann-item-top { display: flex; align-items: center; gap: 8px; min-width: 0; }
.ann-item-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.ann-status { flex-shrink: 0; font-size: 0.7rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; padding: 2px 8px; border-radius: 999px; background: var(--card-2); color: var(--muted); }
.ann-status.ok { background: color-mix(in srgb, var(--success) 20%, transparent); color: var(--success); }
.ann-status.warn { background: color-mix(in srgb, var(--warning) 20%, transparent); color: var(--warning); }
.ann-status.bad { background: color-mix(in srgb, var(--danger) 20%, transparent); color: var(--danger); }

@media (max-width: 900px) {
  .ann-grid { grid-template-columns: minmax(0, 1fr); }
  .ann-side { position: static; max-height: none; overflow: visible; }
}
@media (max-width: 520px) {
  .ann-button-row { grid-template-columns: minmax(0, 1fr) auto; }
  .ann-button-row input[type="url"] { grid-column: 1; grid-row: 2; }
}
.ann-extras { display: grid; gap: 10px; }
.ann-flags { display: flex; flex-wrap: wrap; gap: 6px; }
.ann-flag { font-size: 0.75rem; font-weight: 700; padding: 2px 9px; border-radius: 999px; background: var(--card-2); color: var(--muted); }
.ann-flag.ok { background: color-mix(in srgb, var(--success) 18%, transparent); color: var(--success); }
.ann-flag.warn { background: color-mix(in srgb, var(--warning) 18%, transparent); color: var(--warning); }
.ann-flag.accent { background: var(--accent-soft); color: var(--accent); }

/* Announcement banner across the site: brand gradient with a slow light sweep */
.site-notice-ann { position: relative; overflow: hidden; background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 26%, var(--bg-2)), color-mix(in srgb, var(--accent-2) 18%, var(--bg-2)) 60%, var(--bg-2)); }
.site-notice-ann::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, 0.07) 50%, transparent 70%); transform: translateX(-100%); animation: ann-sweep 7s ease-in-out infinite; }
.site-notice-ann .site-notice-inner { position: relative; z-index: 1; }
.site-notice-ann .site-notice-inner > b { color: var(--text); white-space: nowrap; }
@keyframes ann-sweep { 0%, 55% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
@media (prefers-reduced-motion: reduce) { .site-notice-ann::after { animation: none; display: none; } }
