/*
 * RosaMC Account styles. Same design system as rosamc-website (src/app/globals.css:
 * colors, fonts, candy buttons, glossy panels), but its own app layout so it is
 * clearly the account area and not the website.
 * Fonts are self hosted (SIL OFL, see /static/fonts/LICENSE-*.txt).
 */

@font-face {
  font-family: 'Bricolage Grotesque';
  src: url('/static/fonts/bricolage-grotesque.woff2') format('woff2-variations');
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: 'Manrope';
  src: url('/static/fonts/manrope.woff2') format('woff2-variations');
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: 'Space Mono';
  src: url('/static/fonts/space-mono-400.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Space Mono';
  src: url('/static/fonts/space-mono-700.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}

:root {
  --rosa-ink: #140914;
  --rosa-pink: #f5008b;
  --rosa-candy: #ff5bae;
  --rosa-blush: #ffd4e8;
  --rosa-milk: #fff7fb;
  --rosa-plum: #3a1932;
  --rosa-night: #1d0b19;
  --rosa-wine: #2b0f25;
  --rosa-berry: #c2006f;
  --rosa-deep: #8a0050;
  --rosa-petal: #ffe9f3;
  --rosa-shell: #fff1f7;
  --discord: #5865f2;

  --ok: #0f8a5f;
  --ok-bg: #e2f7ee;
  --warn: #9a5b00;
  --warn-bg: #fff2d9;
  --error: #b4002f;
  --error-bg: #ffe3ea;

  --font-display: 'Bricolage Grotesque', ui-sans-serif, system-ui, sans-serif;
  --font-sans: 'Manrope', ui-sans-serif, system-ui, sans-serif;
  --font-mono: 'Space Mono', ui-monospace, monospace;
  --ease-candy: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-tap-highlight-color: transparent;
}

body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--rosa-night);
  color: var(--rosa-ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

::selection {
  background: var(--rosa-pink);
  color: #fff;
}

:focus-visible {
  outline: 3px solid var(--rosa-candy);
  outline-offset: 3px;
}

a {
  color: var(--rosa-pink);
  font-weight: 700;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
}

code {
  font-family: var(--font-mono);
  font-size: 0.86em;
  word-break: break-all;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0;
}

.muted {
  color: rgb(20 9 20 / 0.62);
}
.on-dark .muted {
  color: rgb(255 255 255 / 0.7);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--rosa-pink);
  margin: 0;
}

.accent {
  background-image: linear-gradient(180deg, #ff7ac0 0%, var(--rosa-pink) 55%, #e0007d 100%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

/* ------------------------------------------------------------ auth screen (login, confirmations) */

.auth-body {
  position: relative;
  overflow-x: clip;
  color: #fff;
  background:
    radial-gradient(55% 45% at 85% 0%, rgb(245 0 139 / 0.22) 0%, rgb(245 0 139 / 0) 70%),
    radial-gradient(60% 60% at 0% 100%, rgb(58 21 48 / 0.9) 0%, rgb(58 21 48 / 0) 70%),
    linear-gradient(180deg, #26091f 0%, var(--rosa-night) 100%);
}
.auth-shell {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  padding: 24px clamp(16px, 3vw, 40px) 28px;
}
/* Full width on every screen: lettering in the top left corner, user top right */
.auth-top {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.auth-who {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px 4px 4px;
  border-radius: 9999px;
  background: rgb(255 255 255 / 0.08);
  border: 1px solid rgb(255 255 255 / 0.12);
  font-size: 14px;
  font-weight: 700;
}
.auth-card {
  position: relative;
  width: min(440px, 100%);
  margin: auto 0;
  padding: 56px 28px 28px;
  border-radius: 30px;
  color: var(--rosa-ink);
  background: linear-gradient(180deg, #ffffff 0%, var(--rosa-shell) 100%);
  box-shadow:
    0 0 0 1.5px rgb(255 255 255 / 0.9),
    0 0 0 6px rgb(255 91 174 / 0.18),
    0 10px 0 4px #0b040a,
    0 40px 80px -20px rgb(245 0 139 / 0.35);
}
.auth-card-wide {
  width: min(560px, 100%);
}
@media (min-width: 520px) {
  .auth-card {
    padding: 60px 40px 36px;
  }
}
.auth-logo {
  position: absolute;
  top: -42px;
  left: 50%;
  width: 84px;
  height: 84px;
  transform: translateX(-50%) rotate(-6deg);
  filter: drop-shadow(0 10px 14px rgb(40 5 30 / 0.45));
}
.auth-heading {
  text-align: center;
  margin-bottom: 24px;
}
.auth-heading h1 {
  margin-top: 6px;
  font-size: 30px;
  letter-spacing: -0.035em;
}
.auth-heading .muted {
  margin: 10px 0 0;
  font-size: 15px;
}
.auth-actions {
  display: grid;
  gap: 16px;
}
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgb(20 9 20 / 0.4);
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1.5px;
  background: rgb(245 0 139 / 0.14);
}
.auth-fineprint {
  margin: 22px 0 0;
  text-align: center;
  font-size: 13.5px;
  color: rgb(20 9 20 / 0.55);
}
.bubble {
  display: block;
  pointer-events: none;
  border-radius: 9999px;
  background:
    radial-gradient(circle at 30% 26%, rgb(255 255 255 / 0.95) 0 9%, rgb(255 255 255 / 0) 22%),
    radial-gradient(circle at 70% 78%, rgb(255 160 210 / 0.55) 0 10%, rgb(255 160 210 / 0) 30%),
    radial-gradient(circle at 40% 38%, #ff7fc3 0%, #f7128f 48%, #c0006c 78%, #7c0046 100%);
  box-shadow:
    inset -4px -6px 12px rgb(90 0 50 / 0.35),
    0 8px 18px -6px rgb(120 0 70 / 0.55);
}
.auth-body > .bubble {
  position: absolute;
  z-index: 0;
}
@media (max-width: 640px) {
  .auth-body > .bubble {
    display: none;
  }
}

/* ------------------------------------------------------------ brand */

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.brand:hover {
  text-decoration: none;
}
.brand img {
  display: block;
  width: 112px;
  height: auto;
}

/* ------------------------------------------------------------ app shell (account, admin) */

.app-body {
  background: linear-gradient(180deg, #fff6fa 0%, #ffe4f0 100%) fixed;
}
.app {
  display: grid;
  grid-template-columns: 268px minmax(0, 1fr);
  min-height: 100dvh;
}
.sidebar {
  position: sticky;
  top: 0;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 22px 16px 16px;
  color: #fff;
  background:
    radial-gradient(120% 50% at 100% 0%, rgb(255 60 160 / 0.2) 0%, rgb(255 60 160 / 0) 60%),
    linear-gradient(170deg, #3a1932 0%, #250d20 55%, var(--rosa-night) 100%);
  box-shadow:
    inset -1px 0 0 rgb(255 150 205 / 0.18),
    12px 0 40px -20px rgb(40 5 30 / 0.6);
}
.sidebar .brand {
  padding: 0 6px;
}
.side-nav {
  display: grid;
  gap: 4px;
  align-content: start;
  flex: 1;
  overflow-y: auto;
}
.side-label {
  margin: 14px 10px 6px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgb(255 212 232 / 0.55);
}
.side-label:first-child {
  margin-top: 0;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  color: rgb(255 255 255 / 0.78);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  transition: background 160ms ease, color 160ms ease;
}
.nav-item:hover {
  color: #fff;
  background: rgb(255 255 255 / 0.07);
  text-decoration: none;
}
.nav-item.active {
  color: #fff;
  background: linear-gradient(180deg, #ff6dbb 0%, #f5008b 60%, #db007e 100%);
  box-shadow:
    inset 0 1.5px 0 rgb(255 255 255 / 0.45),
    0 3px 0 #8a0050,
    0 10px 20px -8px rgb(245 0 139 / 0.6);
}
.nav-item .icon {
  width: 19px;
  height: 19px;
}
.side-foot {
  display: grid;
  gap: 10px;
}
.side-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 18px;
  background: rgb(255 255 255 / 0.06);
  border: 1px solid rgb(255 255 255 / 0.1);
}
.side-user-name {
  flex: 1;
  min-width: 0;
  display: grid;
  line-height: 1.25;
}
.side-user-name strong,
.side-user-name span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.side-user-name span {
  font-size: 12.5px;
  color: rgb(255 255 255 / 0.55);
}
.icon-btn {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 12px;
  color: rgb(255 255 255 / 0.8);
  background: rgb(255 255 255 / 0.08);
  cursor: pointer;
}
.icon-btn:hover {
  color: #fff;
  background: rgb(245 0 139 / 0.35);
}

.app-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.main {
  flex: 1;
  width: 100%;
  max-width: 1180px;
  padding: 36px clamp(16px, 4vw, 48px) 56px;
}

/* Players: no sidebar, slim dark top bar and one centered column */
.app-simple {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
.app-top {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px clamp(16px, 4vw, 32px);
  color: #fff;
  background:
    radial-gradient(60% 140% at 100% 0%, rgb(255 60 160 / 0.2) 0%, rgb(255 60 160 / 0) 60%),
    linear-gradient(170deg, #3a1932 0%, var(--rosa-night) 100%);
  box-shadow: 0 12px 30px -18px rgb(40 5 30 / 0.7);
}
.app-top .side-user {
  padding: 4px 4px 4px 4px;
  min-width: 0;
}
.main-narrow {
  max-width: 820px;
  margin: 0 auto;
}
@media (max-width: 560px) {
  .app-top .side-user-name {
    display: none;
  }
}

/* Slim legal footer */
.slim-footer {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  padding: 16px 20px 22px;
  font-size: 12.5px;
}
.slim-footer a {
  color: rgb(20 9 20 / 0.5);
  font-weight: 600;
}
.slim-footer a:hover {
  color: var(--rosa-pink);
}
.slim-footer-dark a {
  color: rgb(255 255 255 / 0.5);
}
.slim-footer-dark a:hover {
  color: #fff;
}
.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.page-head h1 {
  margin-top: 6px;
  font-size: clamp(30px, 4vw, 40px);
  letter-spacing: -0.04em;
  overflow-wrap: anywhere;
}

@media (max-width: 900px) {
  .app {
    grid-template-columns: 1fr;
  }
  .sidebar {
    position: sticky;
    z-index: 20;
    height: auto;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
  }
  .side-nav {
    order: 3;
    flex: 1 1 100%;
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 2px;
  }
  .side-label,
  .side-user-name {
    display: none;
  }
  .nav-item {
    flex: none;
    padding: 8px 12px;
    font-size: 14px;
  }
  .side-foot {
    margin-left: auto;
  }
  .side-user {
    padding: 4px;
    border: 0;
    background: none;
  }
  .main {
    padding-top: 24px;
  }
}

/* ------------------------------------------------------------ layout helpers */

.grid {
  display: grid;
  gap: 20px;
}
@media (min-width: 1100px) {
  .grid-2 {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
  .grid-sidebar {
    grid-template-columns: 1.4fr 1fr;
    align-items: start;
  }
}
.stack {
  display: grid;
  gap: 14px;
}
.row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.spread {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

/* ------------------------------------------------------------ panels */

.panel {
  border-radius: 26px;
  padding: 24px;
  background: linear-gradient(180deg, #ffffff 0%, var(--rosa-shell) 100%);
  box-shadow:
    0 0 0 1.5px rgb(255 255 255 / 0.9),
    0 1px 0 2px rgb(255 190 222 / 0.6),
    0 24px 44px -20px rgb(150 20 90 / 0.35);
}
@media (min-width: 640px) {
  .panel {
    padding: 28px;
  }
}
.panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.panel-head {
  align-items: center;
}
.panel-head h2 {
  font-size: 22px;
  line-height: 1.1;
}

/* Dark framed card (login card, profile header) */
.frame {
  position: relative;
  border-radius: 32px;
  padding: 10px;
  background: var(--rosa-ink);
  box-shadow:
    0 10px 0 #0b040a,
    0 40px 60px -24px rgb(120 10 70 / 0.45);
}
.frame-inner {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  padding: 28px;
  color: #fff;
  background:
    radial-gradient(70% 120% at 100% 0%, rgb(245 0 139 / 0.3) 0%, rgb(245 0 139 / 0) 60%),
    linear-gradient(160deg, #3a1932, #1d0b19);
}
.frame-inner .muted {
  color: rgb(255 255 255 / 0.7);
}
@media (min-width: 640px) {
  .frame-inner {
    padding: 36px;
  }
}

/* ------------------------------------------------------------ dev login */

.dev-login {
  margin-top: 22px;
  padding: 14px 16px;
  border: 2px dashed rgb(245 0 139 / 0.25);
  border-radius: 20px;
}
.dev-login summary {
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--rosa-pink);
}
.dev-login form {
  margin-top: 12px;
}

/* ------------------------------------------------------------ profile header */

.profile {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
@media (min-width: 640px) {
  .profile {
    flex-direction: row;
    align-items: center;
  }
}
.profile-main {
  flex: 1;
  min-width: 0;
}
.profile h2 {
  font-size: clamp(30px, 5vw, 44px);
  line-height: 1;
  letter-spacing: -0.04em;
  overflow-wrap: anywhere;
}
.profile-sub {
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 14.5px;
  color: rgb(255 255 255 / 0.6);
}
.profile .avatar {
  box-shadow:
    0 0 0 5px #fff,
    0 14px 24px -8px rgb(0 0 0 / 0.6);
}

/* ------------------------------------------------------------ avatar, badges */

.avatar {
  display: inline-block;
  flex: none;
  border-radius: 9999px;
  object-fit: cover;
  background: var(--rosa-plum);
}
.avatar-fallback {
  display: inline-grid;
  place-items: center;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  background: radial-gradient(circle at 40% 35%, #ff7fc3 0%, #f7128f 55%, #c0006c 100%);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 9999px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}
.badge-pink {
  color: #fff;
  background: linear-gradient(180deg, #ff6dbb 0%, #f5008b 100%);
}
.badge-muted {
  color: rgb(20 9 20 / 0.65);
  background: rgb(20 9 20 / 0.08);
}
.on-dark .badge-muted,
.frame-inner .badge-muted {
  color: rgb(255 255 255 / 0.75);
  background: rgb(255 255 255 / 0.12);
}
.badge-ok {
  color: var(--ok);
  background: var(--ok-bg);
}
.badge-warn {
  color: var(--warn);
  background: var(--warn-bg);
}
.badge-error {
  color: var(--error);
  background: var(--error-bg);
}

/* ------------------------------------------------------------ buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 22px;
  border: 0;
  border-radius: 9999px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 160ms var(--ease-candy),
    box-shadow 160ms var(--ease-candy),
    filter 160ms ease,
    background 160ms ease;
}
.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}
.btn:active {
  transform: translateY(3px);
}
.btn:disabled {
  opacity: 0.55;
  cursor: progress;
  transform: none;
}
.btn .icon {
  width: 20px;
  height: 20px;
}
.btn-block {
  width: 100%;
}
.btn-small {
  min-height: 36px;
  padding: 0 14px;
  font-size: 13.5px;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(180deg, #ff6dbb 0%, #f5008b 60%, #db007e 100%);
  box-shadow:
    inset 0 1.5px 0 rgb(255 255 255 / 0.5),
    inset 0 -2px 0 rgb(120 0 70 / 0.25),
    0 4px 0 #b10066,
    0 10px 20px -4px rgb(245 0 139 / 0.45);
}
.btn-primary:hover {
  filter: brightness(1.06);
}

/* Big extruded candy button (dark surfaces) */
.btn-candy,
.btn-discord {
  min-height: 64px;
  font-family: var(--font-display);
  font-size: 21px;
  letter-spacing: -0.02em;
  border: 2px solid var(--rosa-ink);
  color: #fff;
}
.btn-candy .icon,
.btn-discord .icon {
  width: 28px;
  height: 28px;
}
.btn-candy {
  background: linear-gradient(180deg, #ff7cc2 0%, #ff2b9c 38%, #f5008b 62%, #d4007a 100%);
  box-shadow:
    inset 0 2px 0 rgb(255 255 255 / 0.55),
    inset 0 -3px 0 rgb(120 0 70 / 0.35),
    0 0 0 3px rgb(255 120 190 / 0.55),
    0 6px 0 3px var(--rosa-ink),
    0 14px 28px rgb(245 0 139 / 0.35);
}
.btn-discord {
  background: linear-gradient(180deg, #7c88ff 0%, #5865f2 60%, #4752c4 100%);
  box-shadow:
    inset 0 2px 0 rgb(255 255 255 / 0.45),
    0 0 0 3px rgb(165 173 255 / 0.45),
    0 6px 0 3px var(--rosa-ink);
}
.btn-candy:hover,
.btn-discord:hover {
  filter: brightness(1.06) saturate(1.05);
}

.btn-ghost {
  color: var(--rosa-ink);
  background: rgb(20 9 20 / 0.07);
}
.btn-ghost:hover {
  background: rgb(20 9 20 / 0.12);
}
.on-dark .btn-ghost,
.frame-inner .btn-ghost,
.sidebar .btn-ghost {
  color: #fff;
  background: rgb(255 255 255 / 0.1);
  border: 1px solid rgb(255 255 255 / 0.18);
}
.on-dark .btn-ghost:hover,
.frame-inner .btn-ghost:hover,
.sidebar .btn-ghost:hover {
  background: rgb(255 255 255 / 0.16);
}
.btn-danger {
  color: var(--error);
  background: var(--error-bg);
}
.btn-danger:hover {
  filter: brightness(0.97);
}

form.inline {
  display: inline;
  margin: 0;
}

/* ------------------------------------------------------------ forms */

label {
  display: grid;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
}
label.check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}
.hint {
  font-size: 13px;
  font-weight: 500;
  color: rgb(20 9 20 / 0.55);
}
input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1.5px solid rgb(20 9 20 / 0.14);
  background: #fff;
  color: var(--rosa-ink);
  font: inherit;
  font-weight: 500;
}
input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--rosa-candy);
  box-shadow: 0 0 0 4px rgb(255 91 174 / 0.2);
}
input[type='checkbox'] {
  width: 18px;
  min-height: 18px;
  accent-color: var(--rosa-pink);
}
.frame-inner input {
  background: rgb(255 255 255 / 0.08);
  border-color: rgb(255 255 255 / 0.18);
  color: #fff;
}
.form-grid {
  display: grid;
  gap: 14px;
}
@media (min-width: 640px) {
  .form-grid-2 {
    grid-template-columns: 1fr 1fr;
  }
}
.form-error {
  margin: 0;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  background: rgb(180 0 47 / 0.35);
  border: 1px solid rgb(255 120 150 / 0.4);
}
.content .form-error {
  color: var(--error);
  background: var(--error-bg);
  border-color: transparent;
}

/* ------------------------------------------------------------ notices */

.notice {
  margin: 0 0 16px;
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 14.5px;
  font-weight: 600;
}
.notice-info {
  color: var(--rosa-deep);
  background: var(--rosa-petal);
  border: 1px solid rgb(245 0 139 / 0.15);
}
.notice-ok {
  color: var(--ok);
  background: var(--ok-bg);
}
.notice-warn {
  color: var(--warn);
  background: var(--warn-bg);
}
.notice-error {
  color: var(--error);
  background: var(--error-bg);
}
.frame-inner .notice-info,
.on-dark .notice-info {
  color: var(--rosa-blush);
  background: rgb(245 0 139 / 0.12);
  border-color: rgb(255 91 174 / 0.4);
}
.frame-inner .notice-warn {
  color: #ffd99a;
  background: rgb(255 180 60 / 0.12);
}
.frame-inner .notice-error {
  color: #ffc2d0;
  background: rgb(180 0 47 / 0.3);
}

/* ------------------------------------------------------------ lists and tables */

.list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgb(255 255 255 / 0.75);
  border: 1.5px solid rgb(245 0 139 / 0.1);
}
.list-item-main {
  min-width: 0;
  flex: 1 1 220px;
}
.list-item-title {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-weight: 800;
}
.list-item-meta {
  font-size: 13px;
  color: rgb(20 9 20 / 0.55);
  font-weight: 500;
}
.empty {
  padding: 16px;
  border-radius: 18px;
  border: 2px dashed rgb(245 0 139 / 0.25);
  background: rgb(255 255 255 / 0.6);
  color: rgb(20 9 20 / 0.55);
  font-weight: 600;
  font-size: 14.5px;
}

.table-wrap {
  overflow-x: auto;
  margin: 0 -8px;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
}
th {
  text-align: left;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 400;
  color: rgb(20 9 20 / 0.5);
  padding: 8px;
  white-space: nowrap;
}
td {
  padding: 10px 8px;
  border-top: 1px solid rgb(245 0 139 / 0.1);
  vertical-align: middle;
}
tr.clickable:hover td {
  background: rgb(255 255 255 / 0.7);
}
td .row {
  gap: 6px;
}
td code {
  word-break: normal;
  white-space: nowrap;
}

.facts {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 8px 16px;
  margin: 0;
  font-size: 14.5px;
}
.facts dt {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgb(20 9 20 / 0.5);
  padding-top: 3px;
}
.facts dd {
  margin: 0;
  min-width: 0;
}

.tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.tabs a {
  padding: 8px 16px;
  border-radius: 9999px;
  font-weight: 800;
  font-size: 14.5px;
  color: var(--rosa-ink);
  background: rgb(255 255 255 / 0.7);
  box-shadow: 0 0 0 1.5px rgb(245 0 139 / 0.12);
}
.tabs a:hover {
  text-decoration: none;
  background: #fff;
}
.tabs a.active {
  color: #fff;
  background: linear-gradient(180deg, #ff6dbb 0%, #f5008b 100%);
  box-shadow: 0 3px 0 #b10066;
}

.searchbar {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
}
.searchbar input {
  flex: 1;
}

details.inline-edit > summary {
  cursor: pointer;
  list-style: none;
}
details.inline-edit > summary::-webkit-details-marker {
  display: none;
}
details.inline-edit[open] > summary {
  margin-bottom: 12px;
}

.icon {
  width: 18px;
  height: 18px;
  flex: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

[hidden] {
  display: none !important;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}

.link-facts {
  margin-bottom: 22px;
  padding: 16px;
  border-radius: 18px;
  background: rgb(255 255 255 / 0.75);
  border: 1.5px solid rgb(245 0 139 / 0.12);
}

/* ------------------------------------------------------------ Minecraft card */

.mc-card {
  display: grid;
  gap: 22px;
}
.mc-main {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}
.mc-head {
  width: 104px;
  height: 104px;
  flex: none;
  border-radius: 22px;
  image-rendering: pixelated;
  background: rgb(255 255 255 / 0.08);
  box-shadow:
    0 0 0 4px rgb(255 255 255 / 0.9),
    0 0 0 8px rgb(245 0 139 / 0.45),
    0 18px 28px -10px rgb(0 0 0 / 0.6);
  transform: rotate(-3deg);
}
.mc-info {
  flex: 1;
  min-width: 0;
}
.mc-name {
  font-size: clamp(30px, 5vw, 42px);
  line-height: 1;
  letter-spacing: -0.04em;
  overflow-wrap: anywhere;
}
.mc-meta {
  margin-top: 10px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  font-size: 14px;
  color: rgb(255 255 255 / 0.65);
}
.server-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 9999px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  background: rgb(255 255 255 / 0.1);
  border: 1px solid rgb(255 255 255 / 0.18);
}
.mc-others {
  display: grid;
  gap: 8px;
  padding-top: 18px;
  border-top: 1px solid rgb(255 255 255 / 0.12);
}
.mc-other {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.mc-other img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  image-rendering: pixelated;
}
.mc-other-name {
  flex: 1;
  min-width: 120px;
  font-weight: 800;
}
.mc-card .hint {
  color: rgb(255 255 255 / 0.55);
  margin: 0;
}
.mc-empty h2 {
  font-size: clamp(26px, 4vw, 34px);
  letter-spacing: -0.035em;
}
.steps {
  list-style: none;
  counter-reset: step;
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.steps li {
  counter-increment: step;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 15.5px;
  color: rgb(255 255 255 / 0.85);
}
.steps li::before {
  content: counter(step);
  flex: none;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  font-family: var(--font-display);
  font-weight: 800;
  color: #fff;
  background: linear-gradient(180deg, #ff6dbb 0%, #f5008b 100%);
  box-shadow: 0 3px 0 #8a0050;
}
.steps code {
  padding: 2px 8px;
  border-radius: 8px;
  background: rgb(255 255 255 / 0.12);
  color: #fff;
}

/* ------------------------------------------------------------ modal */

.modal {
  width: min(420px, calc(100vw - 32px));
  padding: 28px;
  border: 0;
  border-radius: 26px;
  color: var(--rosa-ink);
  background: linear-gradient(180deg, #ffffff 0%, var(--rosa-shell) 100%);
  box-shadow:
    0 0 0 1.5px rgb(255 255 255 / 0.9),
    0 0 0 6px rgb(255 91 174 / 0.18),
    0 40px 80px -20px rgb(40 5 30 / 0.6);
}
.modal::backdrop {
  background: rgb(29 11 25 / 0.6);
  backdrop-filter: blur(4px);
}
.modal h2 {
  font-size: 24px;
}
.modal .muted {
  margin: 0;
}
.modal-wide {
  width: min(600px, calc(100vw - 32px));
  max-height: calc(100dvh - 48px);
  overflow-y: auto;
}
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}
.icon-btn-light {
  font-size: 22px;
  line-height: 1;
  color: var(--rosa-ink);
  background: rgb(20 9 20 / 0.07);
}
.icon-btn-light:hover {
  color: var(--rosa-ink);
  background: rgb(20 9 20 / 0.12);
}

/* ------------------------------------------------------------ audit log */

.filter-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.pill {
  padding: 7px 14px;
  border-radius: 9999px;
  font-size: 14px;
  font-weight: 700;
  color: var(--rosa-ink);
  background: rgb(255 255 255 / 0.8);
  box-shadow: 0 0 0 1.5px rgb(245 0 139 / 0.12);
}
.pill:hover {
  text-decoration: none;
  background: #fff;
}
.pill.active {
  color: #fff;
  background: linear-gradient(180deg, #ff6dbb 0%, #f5008b 100%);
  box-shadow: 0 3px 0 #b10066;
}
.pill-chip {
  margin-left: auto;
  color: var(--rosa-deep);
  background: var(--rosa-petal);
}
table.audit td {
  padding-top: 12px;
  padding-bottom: 12px;
}
.audit-time {
  white-space: nowrap;
  font-size: 13.5px;
  color: rgb(20 9 20 / 0.6);
}
.audit-action {
  font-weight: 700;
  white-space: nowrap;
}
.audit-detail {
  margin-top: 2px;
  font-size: 13px;
  color: rgb(20 9 20 / 0.55);
}
.audit-name {
  color: var(--rosa-ink);
  font-weight: 700;
}
.audit-name:hover {
  color: var(--rosa-pink);
}
.audit-ip {
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgb(20 9 20 / 0.45);
  white-space: nowrap;
}

/* Minecraft heads as avatar fallback: keep the pixels crisp */
.avatar[src^="/mc/head/"] {
  image-rendering: pixelated;
}

/* The lettering grows a little on wide screens so it does not get lost in the corner */
.auth-top .brand img {
  width: clamp(112px, 8vw, 160px);
}
