/* Kot: a small kitten maid's tea room. Cream, pink and honey, cards with cat ears, lace, paw prints and
   tea. Every picture is drawn for this panel. */

html:has(.theme-kot) { color-scheme: only light; background: #fff6ee; }

.theme-kot {
  --bg: #fff6ee;
  --bg-soft: #ffeef0;
  --card: rgb(255 253 250 / .95);
  --card-edge: #eebccb;
  --text: #3d2629;
  --muted: #6d4d55;
  --accent: #a82f5d;
  --accent-ink: #ffffff;
  --good: #2e7a45;
  --warn: #87580a;
  --bad: #b3213f;
  --pink: #f4a9c4;
  --pink-deep: #e0658f;
  --honey: #f6c667;
  --radius: 22px;
  --round: "Trebuchet MS", "Nunito", "Segoe UI", sans-serif;
  background: transparent; color: var(--text);
}

.theme-kot .backdrop { position: fixed; inset: 0; z-index: -2; pointer-events: none; background: #fff6ee url("kot-backdrop-1.svg") center bottom / cover no-repeat; }

.theme-kot h1, .theme-kot h2, .theme-kot h3, .theme-kot .brand-text strong { font-family: var(--round); font-weight: 800; }
.theme-kot code { background: #ffe3ec; color: #7c1f45; border-radius: 8px; }
.theme-kot h2 code { background: none; padding: 0; }

/* the top bar ends in a lace edge, like a maid's apron */
.theme-kot .topbar { position: relative; z-index: 3; background: var(--pink); border-bottom: 0; padding-block: 12px; margin-bottom: 18px; }
.theme-kot .topbar::after {
  content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 17px; pointer-events: none;
  background:
    radial-gradient(circle at 15px 1px, #fff 4px, transparent 4.600px) 0 0 / 30px 17px repeat-x,
    radial-gradient(circle at 15px 0, var(--pink) 14px, #fffaf7 14.600px 16.200px, transparent 16.800px) 0 0 / 30px 17px repeat-x;
}
.theme-kot .brand, .theme-kot .user-chip { color: #3d1426; }
.theme-kot .brand-text strong { font-size: 1.3rem; }
.theme-kot .brand-text small { color: #55213a; }
.theme-kot .brand-icon { width: 44px; height: 44px; border-radius: 16px; background: #fff; padding: 2px; }
.theme-kot .avatar-fallback { background: #fff; color: #a82f5d; font-weight: 700; }
.theme-kot .topbar .btn-ghost { background: #fffaf7; border-color: #fffaf7; color: #7c1f45; }

/* headings: a steaming cup of tea beside each page */
.theme-kot .hud-tag { display: inline-flex; align-items: center; gap: 8px; background: #ffe3ec; color: #8d2450; border-radius: 999px; padding: 3px 12px; letter-spacing: .03em; text-transform: none; font-family: var(--round); font-size: .88rem; }
.theme-kot .hud-tag::before { content: ""; width: 16px; height: 16px; background: url("kot-paw-1.svg") center / contain no-repeat; }
.theme-kot .page-head { position: relative; align-items: center; padding-right: 116px; min-height: 104px; margin-bottom: 26px; }
.theme-kot .page-head::after { content: ""; position: absolute; right: 8px; top: 0; width: 98px; height: 98px; background: url("kot-cup-1.svg") center / contain no-repeat; }
.theme-kot .page-head h1 { font-size: clamp(1.9rem, 4.4vw, 2.7rem); line-height: 1.1; color: #7c1f45; margin: 8px 0; }
.theme-kot .lead { color: #5a3d45; font-size: 1.04rem; }

/* cards are kittens: two ears on every sheet */
.theme-kot .panel, .theme-kot .form-card, .theme-kot .server-card, .theme-kot .fatal-card {
  position: relative; background: var(--card); border: 2px solid var(--card-edge); border-radius: var(--radius); box-shadow: 0 10px 24px -12px rgb(150 60 90 / .34);
}
.theme-kot .panel, .theme-kot .form-card, .theme-kot .fatal-card { margin-top: 24px; padding: 20px; }
.theme-kot .panel::before, .theme-kot .form-card::before, .theme-kot .server-card::before, .theme-kot .fatal-card::before {
  content: ""; position: absolute; left: 22px; top: -26px; width: 92px; height: 27px; background: url("kot-ears-1.svg") center bottom / 100% auto no-repeat; pointer-events: none; transform-origin: 50% 100%; transition: transform .2s;
}
.theme-kot .stat-grid, .theme-kot .card-grid, .theme-kot .server-grid, .theme-kot .feature-grid { row-gap: 30px; }
.theme-kot .server-grid { padding-top: 24px; }
.theme-kot .nav-card:hover::before, .theme-kot .server-card:hover::before { transform: scaleY(1.22); }
.theme-kot .callout { background: #fff3d6; border: 2px dashed #e6b656; border-radius: 18px; }
.theme-kot .callout-error { background: #ffe4e6; border-color: var(--bad); }
.theme-kot .flash { background: #fffdfa; border: 2px solid var(--card-edge); border-left: 8px solid var(--muted); border-radius: 16px; }
.theme-kot .flash-ok { border-left-color: #6fb07f; }
.theme-kot .flash-warning { border-left-color: var(--honey); }
.theme-kot .flash-error { border-left-color: var(--bad); }

/* numbers */
.theme-kot .stat-label { font-family: var(--round); font-weight: 700; color: #8d2450; font-size: .92rem; }
.theme-kot .stat-value { font-family: var(--round); font-weight: 800; font-size: 2rem; }
.theme-kot .pulse { width: 20px; height: 20px; border-radius: 0; background: #b98a98; -webkit-mask: url("kot-paw-1.svg") center / contain no-repeat; mask: url("kot-paw-1.svg") center / contain no-repeat; }
.theme-kot .stat-online .pulse { background: #3f9d5c; }
.theme-kot .stat-offline .pulse { background: var(--bad); }

/* the rail */
.theme-kot .rail-group { font-family: var(--round); text-transform: none; letter-spacing: 0; font-size: .9rem; color: #8d2450; font-weight: 700; }
.theme-kot .rail-nav a { border-radius: 999px; padding: 9px 14px; color: #3d2629; transition: background-color .15s; }
.theme-kot .rail-nav a:hover { background: #ffe3ec; }
.theme-kot .rail-nav a[aria-current="page"] { background: var(--pink) url("kot-paw-1.svg") right 14px center / 18px no-repeat; color: #3d1426; box-shadow: 0 6px 14px -8px rgb(150 60 90 / .7); font-weight: 700; }
.theme-kot .rail-nav a[aria-current="page"] .rail-index { color: #6b1a3d; }
.theme-kot .rail-index, .theme-kot .server-index, .theme-kot .hud-index { font-family: var(--round); color: #a82f5d; letter-spacing: 0; }
.theme-kot .rail-guild img, .theme-kot .server-icon { border-radius: 20px; }
.theme-kot .server-initials { background: #ffe3ec; color: #a82f5d; font-family: var(--round); font-weight: 800; }

/* servers, chips and badges */
.theme-kot .server-card { padding: 16px; transition: transform .18s; }
.theme-kot .server-card:hover, .theme-kot .nav-card:hover { transform: translateY(-3px); border-color: var(--pink-deep); }
.theme-kot .badge { border-color: var(--card-edge); background: #fff; }
.theme-kot .badge-owner { background: var(--honey); border-color: #dda53b; color: #4a3002; }
.theme-kot .tag, .theme-kot .role-chip { background: #ffeaf1; border-color: var(--card-edge); }
.theme-kot .status-ok, .theme-kot .state-on { background: #e4f5e6; }

/* buttons and fields */
.theme-kot .btn { border-radius: 999px; padding: 10px 20px; font-family: var(--round); font-weight: 700; background: #fff; border: 2px solid var(--card-edge); color: #7c1f45; transition: transform .15s, background-color .15s; }
.theme-kot .btn-primary { background: var(--pink); border-color: var(--pink-deep); color: #3d1426; box-shadow: 0 4px 0 var(--pink-deep); }
.theme-kot .btn-primary::before { content: ""; width: 18px; height: 18px; background: url("kot-paw-1.svg") center / contain no-repeat; }
.theme-kot .btn-primary:hover { transform: translateY(-2px) rotate(-1deg); background: #f8bdd2; }
.theme-kot .btn-ghost:hover { background: #ffe3ec; }
.theme-kot .btn-danger { color: var(--bad); border-color: #e59aa8; background: #fff; }
.theme-kot .btn-danger:hover { background: #ffe4e6; }
.theme-kot .btn-small { padding: 6px 14px; }
.theme-kot .btn-large { padding: 15px 30px; font-size: 1.12rem; }
.theme-kot :is(input:not([type="checkbox"]):not([type="radio"]), select, textarea) { background: #fff; color: #3d2629; border: 2px solid var(--card-edge); border-radius: 14px; }
.theme-kot :focus-visible { outline: 3px solid #a82f5d; outline-offset: 2px; }
.theme-kot :is(input[type="checkbox"], input[type="radio"]) { accent-color: var(--pink-deep); }
.theme-kot .preview { background: #fff8ef; border-left-color: var(--pink-deep); border-radius: 14px; }
.theme-kot .sub-card, .theme-kot .field-group { border-radius: 18px; }
.theme-kot .row-remove, .theme-kot .chip-remove { color: var(--bad); }

/* the front page: the kitten brings the tea */
.theme-kot.is-home .hero { min-height: 50vh; display: grid; align-content: center; padding: 24px min(40%, 440px) 24px 0; background: url("kot-hero-1.svg") right center / min(36%, 400px) auto no-repeat; }
.theme-kot.is-home .display { font-size: clamp(2.2rem, 5vw, 3.7rem); line-height: 1.08; color: #7c1f45; max-width: 14ch; margin: 10px 0 14px; }
.theme-kot.is-home .lead { font-size: 1.1rem; }
.theme-kot .footer { color: #4a2d33; }

@media (max-width: 760px) {
  .theme-kot .page-head { padding-right: 0; min-height: 0; }
  .theme-kot .page-head::after { display: none; }
  .theme-kot.is-home .hero { padding: 240px 0 20px; background-position: center top; background-size: 230px auto; }
}
@media (prefers-reduced-motion: reduce) { .theme-kot *, .theme-kot *::before { transition: none !important; } }
