:root {
  --ink: #2d246a;
  --ink-soft: #635a91;
  --muted: #8e86b2;
  --white: #ffffff;
  --surface: rgba(255, 255, 255, .9);
  --surface-strong: #ffffff;
  --lilac-50: #f8f6ff;
  --lilac-100: #f0ecff;
  --lilac-200: #ded7ff;
  --lilac-300: #c7bcff;
  --lilac-400: #a995ff;
  --lilac-500: #8b72f1;
  --lilac-600: #7255df;
  --lilac-700: #5537b9;
  --aqua: #59cbd1;
  --aqua-soft: #dffafb;
  --orange: #ff9b50;
  --danger: #d95676;
  --shadow: 0 20px 60px rgba(75, 55, 155, .14);
  --shadow-soft: 0 10px 30px rgba(75, 55, 155, .1);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --shell: min(1360px, calc(100vw - 40px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 6%, rgba(185, 169, 255, .48), transparent 25%),
    radial-gradient(circle at 91% 22%, rgba(98, 211, 214, .25), transparent 24%),
    linear-gradient(155deg, #f8f5ff 0%, #f6f4ff 48%, #eefcff 100%);
  font-family: Inter, ui-rounded, "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.5;
}
body.modal-open { overflow: hidden; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }

.shell { width: var(--shell); margin-inline: auto; }
.ambient { position: fixed; z-index: -3; border-radius: 50%; filter: blur(20px); pointer-events: none; }
.ambient--one { width: 320px; height: 320px; top: 150px; left: -130px; background: rgba(169, 149, 255, .25); }
.ambient--two { width: 300px; height: 300px; right: -100px; top: 520px; background: rgba(85, 203, 209, .18); }
.starfield { position: fixed; inset: 0; z-index: -2; opacity: .55; pointer-events: none; background-image: radial-gradient(circle, rgba(109, 85, 223, .28) 1px, transparent 1.5px); background-size: 78px 78px; mask-image: linear-gradient(to bottom, #000, transparent 85%); }

.site-header {
  position: sticky;
  top: 14px;
  z-index: 50;
  min-height: 76px;
  margin-top: 14px;
  padding: 10px 14px 10px 18px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  border: 1px solid rgba(109, 85, 223, .12);
  border-radius: 24px;
  background: rgba(255, 255, 255, .86);
  box-shadow: 0 14px 40px rgba(71, 48, 151, .12);
  backdrop-filter: blur(20px);
}
.brand { display: inline-flex; align-items: center; gap: 11px; min-width: max-content; }
.brand__avatar { width: 50px; aspect-ratio: 1; padding: 3px; border-radius: 50%; background: linear-gradient(135deg, var(--aqua), var(--lilac-400)); box-shadow: 0 5px 18px rgba(78, 194, 203, .3); }
.brand__avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.brand__wordmark { font-weight: 950; font-size: clamp(1.25rem, 2vw, 1.85rem); letter-spacing: .035em; color: var(--lilac-600); }
.brand__spark { color: var(--lilac-400); font-size: 1.45rem; }
.main-nav { display: flex; justify-content: center; align-items: center; gap: 8px; }
.nav-link { display: inline-flex; gap: 7px; align-items: center; padding: 10px 11px; border-radius: 12px; color: #554b88; font-weight: 800; font-size: .87rem; transition: .2s ease; }
.nav-link:hover { color: var(--lilac-700); background: var(--lilac-100); transform: translateY(-1px); }
.auth-actions, .account-actions { display: flex; align-items: center; gap: 8px; }
.button { border: 0; border-radius: 13px; padding: 11px 16px; font-weight: 900; cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.button:hover { transform: translateY(-1px); }
.button--ghost { border: 1px solid rgba(112, 84, 218, .18); background: #fff; color: var(--lilac-700); box-shadow: 0 6px 15px rgba(74, 51, 159, .06); }
.button--solid { color: white; background: linear-gradient(135deg, var(--lilac-500), var(--lilac-700) 70%, var(--aqua)); box-shadow: 0 8px 20px rgba(102, 75, 214, .24); }
.account-chip { display: flex; align-items: center; gap: 9px; padding: 5px 10px 5px 6px; border: 1px solid rgba(110, 88, 207, .12); border-radius: 15px; background: #fff; cursor: pointer; }
.account-chip > span:last-child { display: grid; text-align: left; line-height: 1.1; }
.account-chip small { color: var(--muted); font-size: .66rem; }
.account-chip strong { max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .86rem; }
.account-avatar { width: 37px; height: 37px; }
.icon-button { width: 42px; height: 42px; border: 1px solid rgba(110, 88, 207, .12); border-radius: 13px; background: #fff; color: var(--lilac-600); cursor: pointer; font-size: 1.1rem; }
.menu-button { display: none; width: 44px; height: 44px; justify-self: end; border: 0; border-radius: 13px; background: var(--lilac-100); padding: 11px; cursor: pointer; }
.menu-button span { display: block; height: 2px; margin: 4px 0; border-radius: 5px; background: var(--lilac-700); }

main { padding: 72px 0 30px; }
.hero { display: grid; grid-template-columns: minmax(0, .9fr) minmax(460px, 1.1fr); gap: clamp(35px, 6vw, 90px); align-items: center; min-height: 575px; padding: 18px 5% 62px; }
.hero__copy { position: relative; }
.eyebrow { display: flex; align-items: center; gap: 11px; color: var(--lilac-600); font-size: .76rem; letter-spacing: .17em; font-weight: 950; }
.eyebrow span { display: inline-block; width: 48px; height: 1px; background: linear-gradient(90deg, transparent, var(--lilac-400)); }
.eyebrow span:last-child { transform: scaleX(-1); }
h1 { margin: 19px 0 20px; font-size: clamp(3rem, 5.6vw, 5.55rem); letter-spacing: -.055em; line-height: .95; color: #312575; }
h1 em { color: var(--lilac-500); font-style: normal; }
.hero__copy > p { max-width: 650px; margin: 0; color: var(--ink-soft); font-size: 1.08rem; }
.hero-pills { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 25px; }
.hero-pills span { padding: 8px 11px; border: 1px solid rgba(117, 89, 222, .1); border-radius: 999px; background: rgba(255,255,255,.72); color: #5f5690; font-size: .75rem; font-weight: 800; }
.juno-approved-card { position: relative; width: min(460px, 100%); margin-top: 30px; display: grid; grid-template-columns: 118px 1fr; align-items: center; gap: 17px; padding: 13px 18px 13px 13px; border: 1px solid rgba(91, 202, 210, .36); border-radius: 24px; background: linear-gradient(135deg, rgba(255,255,255,.93), rgba(238,249,255,.82)); box-shadow: var(--shadow-soft); overflow: hidden; }
.juno-approved-card::after { content: ""; position: absolute; inset: auto -35px -65px auto; width: 150px; height: 150px; border-radius: 50%; background: rgba(137, 112, 241, .1); }
.juno-approved-card__art { width: 118px; height: 118px; padding: 4px; border-radius: 50%; background: linear-gradient(145deg, var(--aqua), var(--lilac-400), #fff); box-shadow: 0 7px 24px rgba(84, 194, 203, .28); }
.juno-approved-card__art img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; object-position: center 28%; }
.mini-label, .profile-eyebrow { color: var(--lilac-600); font-size: .66rem; font-weight: 950; letter-spacing: .13em; }
.juno-approved-card strong { display: block; margin: 3px 0 4px; font-size: 1.1rem; }
.juno-approved-card p { margin: 0; color: var(--ink-soft); font-size: .8rem; }

.panel { position: relative; border: 1px solid rgba(112, 84, 218, .12); border-radius: var(--radius-xl); background: var(--surface); box-shadow: var(--shadow); backdrop-filter: blur(18px); }
.upload-card { padding: clamp(22px, 3vw, 35px); border-color: rgba(112, 84, 218, .28); }
.panel-corner { position: absolute; width: 70px; height: 24px; top: 14px; opacity: .6; border-top: 1px solid var(--aqua); }
.panel-corner--tl { left: 17px; border-left: 1px solid var(--aqua); border-radius: 14px 0 0; }
.panel-corner--tr { right: 17px; border-right: 1px solid var(--aqua); border-radius: 0 14px 0 0; }
.section-kicker { color: var(--lilac-600); font-weight: 950; letter-spacing: .09em; font-size: .8rem; }
.section-kicker span { color: var(--aqua); }
.login-gate { min-height: 340px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 32px; text-align: center; }
.login-gate__icon { display: grid; place-items: center; width: 68px; height: 68px; border-radius: 50%; color: white; font-size: 1.5rem; background: linear-gradient(145deg, var(--lilac-400), var(--aqua)); box-shadow: 0 12px 32px rgba(105, 83, 215, .24); }
.login-gate strong { margin-top: 17px; font-size: 1.15rem; }
.login-gate p { max-width: 390px; margin: 7px 0 18px; color: var(--ink-soft); font-size: .84rem; }
.drop-zone { min-height: 152px; margin-top: 20px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 22px; border: 1.5px dashed rgba(121, 93, 224, .45); border-radius: 19px; background: linear-gradient(145deg, #fbfaff, #f3f9ff); text-align: center; cursor: pointer; transition: .2s ease; }
.drop-zone:hover, .drop-zone.is-dragging { border-color: var(--aqua); background: var(--aqua-soft); transform: translateY(-2px); }
.upload-orb { display: grid; place-items: center; width: 49px; height: 49px; margin-bottom: 3px; border-radius: 50%; color: #fff; background: linear-gradient(135deg, var(--lilac-400), var(--lilac-600)); font-weight: 950; }
.drop-zone strong { color: var(--lilac-600); }
.drop-zone strong small { color: var(--ink-soft); font-weight: 600; }
.drop-zone > span:last-child { color: var(--muted); font-size: .72rem; }
.field { position: relative; margin-top: 14px; }
.field textarea { width: 100%; min-height: 86px; resize: vertical; border: 1px solid rgba(110, 88, 207, .18); border-radius: 16px; padding: 16px 55px 16px 44px; color: var(--ink); background: #fff; outline: none; }
.field textarea:focus, input:focus, textarea:focus, select:focus { border-color: var(--lilac-400) !important; box-shadow: 0 0 0 4px rgba(139, 114, 241, .1); }
.field__icon { position: absolute; top: 16px; left: 15px; color: var(--lilac-500); font-weight: 900; }
.counter { position: absolute; right: 13px; bottom: 10px; color: var(--muted); font-size: .68rem; }
.consent { display: grid; grid-template-columns: 19px minmax(0, 1fr); align-items: start; gap: 10px; }
.consent input[type="checkbox"], .visibility-switch input[type="checkbox"] { appearance: none; width: 18px; min-width: 18px; height: 18px; min-height: 18px; margin: 1px 0 0; padding: 0; border: 1.5px solid var(--lilac-300); border-radius: 5px; background: white; cursor: pointer; }
.consent input[type="checkbox"]:checked, .visibility-switch input[type="checkbox"]:checked { border-color: var(--lilac-600); background: var(--lilac-600); box-shadow: inset 0 0 0 4px #fff; }
.compact-consent { margin: 12px 2px; color: var(--ink-soft); font-size: .75rem; }
.primary-button { width: 100%; min-height: 54px; border: 0; border-radius: 15px; color: white; background: linear-gradient(100deg, var(--lilac-500), var(--lilac-700) 58%, var(--aqua)); font-weight: 950; letter-spacing: .04em; cursor: pointer; box-shadow: 0 10px 24px rgba(96, 73, 205, .24); transition: .2s ease; }
.primary-button:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(96, 73, 205, .3); }
.form-note { margin: 11px 0 0; color: var(--muted); font-size: .68rem; text-align: center; }

.clips-section, .forum-section { padding: clamp(20px, 3vw, 35px); margin-bottom: 28px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 25px; margin-bottom: 20px; }
.section-heading p { margin: 5px 0 0; color: var(--ink-soft); font-size: .84rem; }
.sort-tabs { display: flex; gap: 5px; padding: 4px; border-radius: 12px; background: var(--lilac-100); }
.sort-tab, .forum-filter { border: 0; border-radius: 9px; padding: 8px 12px; background: transparent; color: var(--ink-soft); font-weight: 850; font-size: .75rem; cursor: pointer; }
.sort-tab.is-active, .forum-filter.is-active { color: var(--lilac-700); background: white; box-shadow: 0 4px 12px rgba(65, 43, 145, .08); }
.clip-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.clip-card { overflow: hidden; border: 1px solid rgba(112, 84, 218, .12); border-radius: 20px; background: #fff; box-shadow: var(--shadow-soft); }
.clip-media { position: relative; aspect-ratio: 16 / 9; background: linear-gradient(135deg, #dcd5ff, #dff9fa); overflow: hidden; }
.clip-media video { width: 100%; height: 100%; object-fit: contain; background: #19152d; }
.duration { position: absolute; right: 9px; bottom: 8px; padding: 3px 6px; border-radius: 6px; color: white; background: rgba(24, 18, 50, .74); font-size: .61rem; font-weight: 900; }
.clip-body { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 13px; }
.creator-avatar { width: 39px; height: 39px; border: 0; cursor: pointer; }
.clip-info { min-width: 0; }
.clip-info h3 { margin: 0 0 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .92rem; }
.creator-row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; color: var(--muted); font-size: .67rem; }
.profile-name-button { border: 0; padding: 0; color: var(--lilac-700); background: transparent; font-weight: 900; cursor: pointer; }
.profile-name-button:hover { text-decoration: underline; }
.profile-links { display: inline-flex; gap: 4px; }
.profile-link { display: inline-flex; align-items: center; padding: 2px 6px; border-radius: 999px; color: #fff; background: var(--lilac-600); font-size: .59rem; font-weight: 850; }
.vote-button { min-width: 56px; height: 43px; display: flex; align-items: center; justify-content: center; gap: 5px; border: 1px solid rgba(70, 189, 194, .28); border-radius: 12px; color: #278e93; background: var(--aqua-soft); font-weight: 950; cursor: pointer; }
.vote-button.is-voted { color: white; background: linear-gradient(135deg, var(--aqua), var(--lilac-500)); }
.comments-toggle, .forum-replies-toggle { width: 100%; display: flex; align-items: center; gap: 8px; padding: 10px 13px; border: 0; border-top: 1px solid rgba(112, 84, 218, .08); color: var(--ink-soft); background: #fbfaff; font-size: .72rem; font-weight: 850; cursor: pointer; }
.comments-toggle .toggle-arrow, .forum-replies-toggle span:last-child { margin-left: auto; }
.comments-panel, .forum-replies { padding: 12px; border-top: 1px solid rgba(112, 84, 218, .08); background: #fcfbff; }
.comments-list, .forum-replies-list { display: grid; gap: 9px; max-height: 260px; overflow-y: auto; }
.comment { display: grid; grid-template-columns: auto 1fr; gap: 8px; }
.comment__avatar, .reply-avatar { width: 31px; height: 31px; }
.comment__bubble, .forum-reply__bubble { padding: 8px 10px; border-radius: 12px; background: #f2efff; }
.comment__head, .forum-reply__head { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; margin-bottom: 3px; font-size: .65rem; }
.comment__head time, .forum-reply__head time { margin-left: auto; color: var(--muted); font-size: .58rem; }
.comment__bubble p, .forum-reply__bubble p { margin: 0; color: #51497f; font-size: .72rem; overflow-wrap: anywhere; }
.comment-form, .forum-reply-form { display: grid; grid-template-columns: 1fr auto; gap: 7px; margin-top: 10px; }
.comment-form input, .forum-reply-form input { min-width: 0; border: 1px solid rgba(112, 84, 218, .16); border-radius: 10px; padding: 9px 10px; outline: none; }
.comment-form button, .forum-reply-form button { border: 0; border-radius: 10px; padding: 8px 12px; color: white; background: var(--lilac-600); font-weight: 850; cursor: pointer; }
.comment-login-note, .forum-login-note { margin: 8px 0 0; color: var(--muted); font-size: .68rem; text-align: center; }
.empty-state { min-height: 220px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; border: 1px dashed rgba(112, 84, 218, .2); border-radius: 20px; background: rgba(247, 245, 255, .7); }
.empty-state > span { color: var(--lilac-400); font-size: 2rem; }
.empty-state strong { margin-top: 5px; }
.empty-state p { margin: 3px 0 0; color: var(--muted); font-size: .78rem; }

.forum-heading { margin-bottom: 14px; }
.forum-toolbar { overflow-x: auto; margin-bottom: 16px; padding-bottom: 3px; }
.forum-filters { width: max-content; display: flex; gap: 5px; padding: 4px; border-radius: 13px; background: var(--lilac-100); }
.forum-list { display: grid; gap: 12px; }
.forum-topic { border: 1px solid rgba(112, 84, 218, .11); border-radius: 18px; background: white; overflow: hidden; box-shadow: 0 8px 24px rgba(70, 47, 153, .06); }
.forum-topic__top { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 13px; padding: 16px; }
.forum-author-avatar { width: 46px; height: 46px; border: 0; cursor: pointer; }
.forum-topic__content { min-width: 0; }
.forum-topic__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; color: var(--muted); font-size: .67rem; }
.forum-topic__meta time { margin-left: auto; }
.forum-category-chip { padding: 3px 7px; border-radius: 999px; color: var(--lilac-700); background: var(--lilac-100); font-weight: 900; }
.forum-topic h3 { margin: 8px 0 4px; font-size: 1rem; }
.forum-topic__body { margin: 0; color: var(--ink-soft); font-size: .79rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.forum-topic__footer { display: flex; border-top: 1px solid rgba(112, 84, 218, .08); }
.forum-replies-toggle { border-top: 0; }
.delete-forum-topic { border: 0; padding: 0 15px; color: var(--danger); background: #fff8fa; font-size: .7rem; font-weight: 900; cursor: pointer; }
.forum-reply { display: grid; grid-template-columns: auto 1fr; gap: 8px; }

.profile-promo { display: grid; grid-template-columns: 210px 1fr; align-items: center; gap: 32px; padding: 28px 36px; margin-bottom: 28px; overflow: hidden; }
.profile-promo__visual { position: relative; width: 180px; aspect-ratio: 1; padding: 6px; border-radius: 50%; background: linear-gradient(145deg, var(--aqua), var(--lilac-400), white); box-shadow: 0 15px 40px rgba(75, 184, 198, .24); }
.profile-promo__visual img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; object-position: center 25%; }
.profile-promo__ring { position: absolute; inset: -18px; border: 1px solid rgba(139, 114, 241, .22); border-radius: 50%; }
.profile-promo h2 { margin: 7px 0 8px; font-size: clamp(1.5rem, 3vw, 2.35rem); letter-spacing: -.03em; }
.profile-promo p { max-width: 780px; margin: 0 0 17px; color: var(--ink-soft); }
.bottom-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 28px; }
.giveaway-card, .social-card { padding: 24px; }
.giveaway-status { min-height: 150px; margin-top: 15px; display: flex; align-items: center; justify-content: center; gap: 18px; padding: 20px; border: 1px dashed rgba(137, 104, 235, .25); border-radius: 17px; text-align: center; background: linear-gradient(145deg, #fbfaff, #f8fdff); }
.giveaway-status p { margin: 4px 0 0; color: var(--muted); font-size: .75rem; }
.twinkle { color: var(--lilac-400); }
.social-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; margin-top: 15px; }
.social-button { min-width: 0; min-height: 118px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; border: 1px solid rgba(112, 84, 218, .1); border-radius: 16px; background: #fff; box-shadow: 0 8px 20px rgba(71, 48, 151, .06); cursor: pointer; }
.social-button strong { font-size: .74rem; }
.social-button small { color: var(--muted); font-size: .6rem; }
.social-logo { width: 35px; height: 35px; }
.social-logo svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.8; }
.social-button--tiktok { color: #171323; }
.social-button--tiktok svg, .social-button--twitch svg, .social-button--discord svg { fill: currentColor; stroke: none; }
.social-button--instagram { color: #d94a91; }
.social-button--twitch { color: #7b45d9; }
.social-button--twitch .inner-lines { fill: none; stroke: white; stroke-width: 1.5; }
.social-button--discord { color: #5865f2; }
.social-button .fill-dot { fill: currentColor; stroke: none; }
.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 35px 4px 50px; color: var(--muted); font-size: .72rem; }
.footer-brand { display: flex; align-items: center; gap: 8px; color: var(--lilac-600); font-weight: 950; }
.footer-brand img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }

.avatar-surface { display: grid; place-items: center; flex: none; overflow: hidden; border-radius: 50%; color: white; font-weight: 950; background: linear-gradient(145deg, var(--lilac-500), var(--lilac-700) 62%, var(--aqua)); box-shadow: inset 0 1px 0 rgba(255,255,255,.4); background-size: cover; background-position: center; }
.avatar-surface.has-image { color: transparent; }
.role-chip { display: inline-flex; align-items: center; width: max-content; padding: 4px 8px; border-radius: 999px; color: var(--lilac-700); background: var(--lilac-100); font-size: .64rem; font-weight: 950; text-transform: uppercase; letter-spacing: .06em; }
.role-chip--small { padding: 2px 6px; font-size: .53rem; }
.role-chip[data-role="admin"] { color: #fff; background: linear-gradient(135deg, var(--lilac-600), #4c2da4); }
.role-chip[data-role="supporter"] { color: #197e83; background: var(--aqua-soft); }
.role-chip[data-role="editor"] { color: #915522; background: #fff0df; }
.role-chip[data-role="youtuber"] { color: #bd2944; background: #ffe7eb; }
.role-chip[data-role="streamer"] { color: #7140bc; background: #eee4ff; }

.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 14px; opacity: 0; pointer-events: none; transition: opacity .18s ease; }
.modal.is-visible { opacity: 1; pointer-events: auto; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(39, 29, 88, .48); backdrop-filter: blur(8px); }
.modal__panel { position: relative; width: min(620px, calc(100vw - 28px)); max-height: calc(100dvh - 28px); overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; padding: 28px; border: 1px solid rgba(112, 84, 218, .15); border-radius: 28px; background: rgba(255,255,255,.98); box-shadow: 0 30px 90px rgba(40, 27, 98, .34); transform: translateY(12px) scale(.985); transition: transform .18s ease; }
.modal.is-visible .modal__panel { transform: none; }
.modal__panel::-webkit-scrollbar { width: 9px; }
.modal__panel::-webkit-scrollbar-thumb { border: 3px solid transparent; border-radius: 99px; background: rgba(112, 84, 218, .3); background-clip: padding-box; }
.modal__close { position: sticky; z-index: 3; top: 0; float: right; width: 39px; height: 39px; margin: -8px -8px 0 8px; border: 0; border-radius: 12px; color: var(--lilac-600); background: var(--lilac-100); font-size: 1.3rem; cursor: pointer; }
.modal-brand { display: flex; align-items: center; gap: 8px; color: var(--lilac-600); font-weight: 950; letter-spacing: .08em; }
.modal-brand img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.modal__panel h2 { margin: 20px 0 4px; font-size: 1.55rem; }
.modal-intro { margin: 0 0 19px; color: var(--muted); font-size: .78rem; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; padding: 5px; border-radius: 14px; background: var(--lilac-100); }
.auth-tab { min-height: 41px; border: 0; border-radius: 10px; color: var(--ink-soft); background: transparent; font-weight: 900; cursor: pointer; }
.auth-tab.is-active { color: var(--lilac-600); background: white; box-shadow: 0 5px 14px rgba(76, 51, 160, .09); }
.auth-form, .profile-form { display: grid; gap: 14px; margin-top: 18px; }
.auth-form label, .profile-form > label, .service-fields label { min-width: 0; display: grid; gap: 5px; color: #50477e; font-size: .72rem; font-weight: 850; }
.auth-form input, .auth-form textarea, .auth-form select, .profile-form input, .profile-form textarea, .profile-form select { width: 100%; min-width: 0; border: 1px solid rgba(112, 84, 218, .18); border-radius: 13px; padding: 12px 13px; color: var(--ink); background: #fcfbff; outline: none; }
.auth-form textarea, .profile-form textarea { min-height: 100px; resize: vertical; }
.register-grid, .profile-fields-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; min-width: 0; }
.auth-consent { width: 100%; margin: 0; padding: 12px 13px; border: 1px solid rgba(112, 84, 218, .12); border-radius: 13px; color: var(--ink-soft); background: var(--lilac-50); font-size: .72rem; font-weight: 650; overflow: hidden; }
.auth-consent span { min-width: 0; overflow-wrap: anywhere; }
.demo-account { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 13px; border: 1px dashed rgba(112, 84, 218, .22); border-radius: 13px; background: #f9f7ff; }
.demo-account > div { min-width: 0; display: grid; }
.demo-account small { color: var(--muted); font-size: .67rem; }
.demo-account button { flex: none; border: 0; border-radius: 9px; padding: 8px 10px; color: var(--lilac-700); background: white; font-weight: 900; cursor: pointer; }
.profile-modal-panel { width: min(790px, calc(100vw - 28px)); }
.profile-header { display: flex; align-items: center; gap: 16px; padding-right: 45px; }
.profile-avatar-button { position: relative; flex: none; width: 82px; height: 82px; padding: 0; border: 0; border-radius: 50%; background: transparent; cursor: pointer; }
.profile-avatar { width: 82px; height: 82px; font-size: 1.55rem; }
.profile-avatar-edit { position: absolute; left: 50%; bottom: -4px; transform: translateX(-50%); padding: 3px 8px; border-radius: 999px; color: white; background: var(--lilac-700); font-size: .57rem; font-weight: 900; }
.profile-header h2 { margin: 3px 0 0; }
.profile-header p { margin: 0 0 6px; color: var(--muted); font-size: .7rem; }
.field-help { justify-self: end; color: var(--muted); font-size: .64rem; font-weight: 650; }
.connected-service { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 13px; padding: 15px; border: 1px solid rgba(112, 84, 218, .11); border-radius: 17px; background: #fbfaff; }
.service-logo { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 13px; background: white; box-shadow: 0 7px 17px rgba(67, 42, 151, .08); }
.service-logo svg { width: 27px; height: 27px; }
.service-logo--tiktok svg { fill: #171323; }
.service-logo--battlenet { color: #249fc0; }
.service-logo--battlenet svg { fill: none; stroke: currentColor; stroke-width: 2.5; }
.service-fields { min-width: 0; display: grid; gap: 11px; }
.service-fields > div { display: grid; }
.service-fields > div small { color: var(--muted); font-size: .68rem; }
.visibility-switch { grid-template-columns: 18px minmax(0, 1fr) !important; align-items: start; gap: 8px !important; font-weight: 650 !important; }
.privacy-note { display: grid; gap: 2px; padding: 12px 14px; border-radius: 13px; color: #317f84; background: var(--aqua-soft); font-size: .7rem; }
.achievements-section, .admin-tools { margin-top: 22px; padding-top: 20px; border-top: 1px solid rgba(112, 84, 218, .12); }
.achievements-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.achievements-heading h3 { margin: 3px 0 0; }
.achievements-heading > strong { padding: 6px 9px; border-radius: 999px; color: var(--lilac-700); background: var(--lilac-100); font-size: .72rem; }
.achievement-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin-top: 13px; }
.achievement-card { position: relative; display: grid; grid-template-columns: 37px 1fr auto; align-items: center; gap: 9px; padding: 11px; border: 1px solid rgba(112, 84, 218, .1); border-radius: 14px; opacity: .56; background: #faf9ff; }
.achievement-card.is-unlocked { opacity: 1; border-color: rgba(84, 199, 205, .25); background: linear-gradient(145deg, #fff, #effcfc); }
.achievement-card__icon { display: grid; place-items: center; width: 37px; height: 37px; border-radius: 12px; color: var(--lilac-700); background: var(--lilac-100); font-weight: 950; }
.achievement-card strong { font-size: .74rem; }
.achievement-card p { margin: 1px 0; color: var(--ink-soft); font-size: .62rem; }
.achievement-card small { color: var(--muted); font-size: .57rem; }
.achievement-card__state { color: var(--aqua); font-weight: 950; }
.admin-tools > p { color: var(--muted); font-size: .7rem; }
.admin-user-list { display: grid; gap: 8px; }
.admin-user-row { display: grid; grid-template-columns: auto minmax(0, 1fr) 150px; align-items: center; gap: 10px; padding: 10px; border: 1px solid rgba(112, 84, 218, .1); border-radius: 13px; background: #fbfaff; }
.admin-user-row .avatar-surface { width: 37px; height: 37px; }
.admin-user-row strong { display: block; font-size: .75rem; }
.admin-user-row small { color: var(--muted); font-size: .62rem; }
.admin-user-row select { min-width: 0; border: 1px solid rgba(112, 84, 218, .16); border-radius: 10px; padding: 8px; color: var(--ink); background: white; }
.public-profile-panel { width: min(580px, calc(100vw - 28px)); }
.public-profile-hero { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 17px; padding-right: 45px; }
.public-profile-avatar { width: 92px; height: 92px; font-size: 1.65rem; }
.public-profile-hero h2 { margin: 7px 0 4px; }
.public-profile-hero p { margin: 0; color: var(--ink-soft); font-size: .8rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.public-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.public-link-button { display: inline-flex; align-items: center; gap: 6px; padding: 9px 11px; border: 1px solid rgba(112, 84, 218, .13); border-radius: 11px; color: var(--lilac-700); background: var(--lilac-50); font-size: .72rem; font-weight: 900; }
.public-achievements { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 16px; padding-top: 16px; border-top: 1px solid rgba(112, 84, 218, .1); }
.public-badge { padding: 6px 8px; border-radius: 999px; color: #4d4775; background: #f1effb; font-size: .63rem; font-weight: 850; }
.forum-post-panel { width: min(610px, calc(100vw - 28px)); }
.toast { position: fixed; z-index: 200; left: 50%; bottom: 25px; max-width: min(420px, calc(100vw - 30px)); transform: translate(-50%, 20px); padding: 11px 16px; border-radius: 13px; color: white; background: #31236e; box-shadow: 0 15px 35px rgba(39, 26, 96, .3); opacity: 0; pointer-events: none; transition: .2s ease; text-align: center; font-size: .76rem; font-weight: 800; }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 1120px) {
  .site-header { grid-template-columns: auto auto 1fr; }
  .main-nav { position: absolute; top: calc(100% + 8px); left: 0; right: 0; display: none; padding: 10px; border: 1px solid rgba(112, 84, 218, .12); border-radius: 18px; background: rgba(255,255,255,.97); box-shadow: var(--shadow); }
  .main-nav.is-open { display: grid; grid-template-columns: repeat(5, 1fr); }
  .menu-button { display: block; }
  .auth-actions, .account-actions { justify-self: end; }
  .hero { grid-template-columns: 1fr 1fr; padding-inline: 1%; gap: 28px; }
  .clip-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  :root { --shell: min(100% - 24px, 720px); }
  .site-header { top: 8px; margin-top: 8px; min-height: 66px; padding: 8px 10px; gap: 8px; }
  .brand__avatar { width: 43px; }
  .brand__wordmark { font-size: 1.22rem; }
  .brand__spark { display: none; }
  .auth-actions .button--ghost { display: none; }
  .auth-actions .button { padding: 9px 11px; font-size: .72rem; }
  .account-chip > span:last-child { display: none; }
  .account-chip { padding: 4px; }
  .main-nav.is-open { grid-template-columns: 1fr 1fr; }
  .nav-link { justify-content: center; }
  main { padding-top: 38px; }
  .hero { grid-template-columns: 1fr; min-height: 0; padding: 20px 0 40px; }
  .hero__copy { text-align: center; }
  .eyebrow, .hero-pills { justify-content: center; }
  .hero__copy > p, .juno-approved-card { margin-inline: auto; }
  .juno-approved-card { text-align: left; }
  .clip-grid { grid-template-columns: 1fr; }
  .profile-promo { grid-template-columns: 130px 1fr; gap: 22px; padding: 24px; }
  .profile-promo__visual { width: 125px; }
  .bottom-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  h1 { font-size: clamp(2.75rem, 14vw, 4rem); }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 12px; }
  .forum-heading .button { width: 100%; }
  .juno-approved-card { grid-template-columns: 92px 1fr; padding: 11px; }
  .juno-approved-card__art { width: 92px; height: 92px; }
  .profile-promo { grid-template-columns: 1fr; text-align: center; }
  .profile-promo__visual { margin-inline: auto; }
  .social-grid { grid-template-columns: repeat(2, 1fr); }
  .site-footer { flex-direction: column; text-align: center; }
  .modal { padding: 7px; }
  .modal__panel { width: calc(100vw - 14px); max-height: calc(100dvh - 14px); padding: 20px 16px; border-radius: 21px; }
  .register-grid, .profile-fields-grid { grid-template-columns: 1fr; }
  .profile-header { align-items: flex-start; }
  .profile-avatar-button, .profile-avatar { width: 68px; height: 68px; }
  .connected-service { grid-template-columns: 1fr; }
  .service-logo { width: 40px; height: 40px; }
  .achievement-grid { grid-template-columns: 1fr; }
  .admin-user-row { grid-template-columns: auto 1fr; }
  .admin-user-row select { grid-column: 1 / -1; width: 100%; }
  .public-profile-hero { grid-template-columns: 1fr; text-align: center; }
  .public-profile-avatar { margin-inline: auto; }
  .public-profile-hero .role-chip { margin-inline: auto; }
  .public-links, .public-achievements { justify-content: center; }
  .forum-topic__meta time { width: 100%; margin-left: 0; }
}

/* Final polish and deployment-ready additions */
.environment-notice {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding: 10px 13px;
  border: 1px solid rgba(112, 84, 218, .13);
  border-radius: 15px;
  color: #554b88;
  background: rgba(255,255,255,.86);
  box-shadow: 0 8px 25px rgba(71,48,151,.07);
  font-size: .72rem;
}
.environment-notice strong { color: var(--lilac-700); }
.environment-notice button { width: 28px; height: 28px; border: 0; border-radius: 9px; color: var(--lilac-700); background: var(--lilac-100); cursor: pointer; }

.groups-section { margin-bottom: 28px; padding: clamp(20px, 3vw, 35px); scroll-margin-top: 110px; }
.groups-summary { padding: 7px 10px; border-radius: 999px; color: var(--lilac-700); background: var(--lilac-100); font-size: .7rem; font-weight: 900; white-space: nowrap; }
.group-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; }
.group-card { min-width: 0; display: grid; grid-template-rows: auto 1fr auto; gap: 10px; padding: 16px; border: 1px solid rgba(112,84,218,.11); border-radius: 18px; background: linear-gradient(150deg,#fff,#f9f7ff 72%,#f0fcfc); box-shadow: 0 9px 24px rgba(71,48,151,.07); }
.group-card__top { display: flex; align-items: center; gap: 10px; }
.group-card__icon { display: grid; place-items: center; width: 42px; height: 42px; flex: none; border-radius: 13px; color: #fff; background: linear-gradient(145deg,var(--lilac-500),var(--aqua)); font-size: 1.05rem; font-weight: 950; }
.group-card h3 { margin: 0; font-size: .9rem; }
.group-card__members { display: block; color: var(--muted); font-size: .62rem; }
.group-card p { margin: 0; color: var(--ink-soft); font-size: .72rem; }
.group-card button { width: 100%; border: 1px solid rgba(112,84,218,.14); border-radius: 11px; padding: 9px 10px; color: var(--lilac-700); background: #fff; font-weight: 900; cursor: pointer; }
.group-card button.is-joined { color: #fff; border-color: transparent; background: linear-gradient(135deg,var(--lilac-500),var(--aqua)); }
.group-card button:disabled { opacity: .65; cursor: default; }
.public-groups-section { margin-top: 17px; padding-top: 15px; border-top: 1px solid rgba(112,84,218,.1); }
.public-groups { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 9px; }
.public-group-chip { padding: 6px 9px; border-radius: 999px; color: #317f84; background: var(--aqua-soft); font-size: .65rem; font-weight: 900; }
.profile-data-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.button--danger { border: 1px solid rgba(217,86,118,.18); color: var(--danger); background: #fff8fa; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.footer-links a { color: var(--lilac-700); font-weight: 800; }
.footer-links a:hover { text-decoration: underline; }

/* Hard override: prevent the registration checkbox from ever becoming a full-width form field. */
.auth-form .auth-consent {
  display: grid !important;
  grid-template-columns: 18px minmax(0, 1fr) !important;
  align-items: start !important;
  gap: 10px !important;
  width: 100% !important;
  min-width: 0 !important;
  overflow: visible !important;
}
.auth-form .auth-consent input[type="checkbox"] {
  appearance: none !important;
  display: block !important;
  width: 18px !important;
  min-width: 18px !important;
  max-width: 18px !important;
  height: 18px !important;
  min-height: 18px !important;
  max-height: 18px !important;
  margin: 1px 0 0 !important;
  padding: 0 !important;
  border: 1.5px solid var(--lilac-300) !important;
  border-radius: 5px !important;
  background: #fff !important;
  box-shadow: none !important;
}
.auth-form .auth-consent input[type="checkbox"]:checked {
  border-color: var(--lilac-600) !important;
  background: var(--lilac-600) !important;
  box-shadow: inset 0 0 0 4px #fff !important;
}
.auth-consent a { color: var(--lilac-700); text-decoration: underline; }
.modal__panel, .auth-modal-panel, .register-form, .register-grid { min-width: 0; max-width: 100%; overflow-x: hidden; }
.modal__panel * { max-width: 100%; }
.modal__panel input, .modal__panel textarea, .modal__panel select { box-sizing: border-box; }

@media (max-width: 1180px) {
  .main-nav.is-open { grid-template-columns: repeat(3, 1fr); }
  .group-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 820px) {
  .environment-notice { grid-template-columns: 1fr auto; }
  .environment-notice strong { grid-column: 1; }
  .environment-notice span { grid-column: 1; }
  .environment-notice button { grid-column: 2; grid-row: 1 / span 2; }
  .site-footer { flex-direction: column; text-align: center; }
}
@media (max-width: 560px) {
  .group-grid { grid-template-columns: 1fr; }
  .groups-summary { white-space: normal; }
  .profile-data-actions { display: grid; grid-template-columns: 1fr; }
  .profile-data-actions .button { width: 100%; }
  .footer-links { gap: 8px 12px; }
}
@media (max-width: 820px) {
  .main-nav.is-open { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
