:root {
  color-scheme: light;
  --pink: #f6abc5;
  --pink-deep: #9f4065;
  --ink: #30252f;
  --muted: #867480;
  --surface: #fff;
  --border: #eedfe6;
  --bg: #fcf8fa;
  --radius: 18px;
}
.log-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.log-category,
.ticket-category,
.voice-channel {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  background: var(--bg);
}
.ticket-categories {
  display: grid;
  gap: 18px;
  margin-bottom: 20px;
}
.ticket-preview {
  border-left: 4px solid var(--pink);
  padding: 22px;
  border-radius: 12px;
  background: var(--bg);
  margin-top: 20px;
}
.ticket-preview strong {
  font-size: 19px;
}
.ticket-preview p {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.ticket-preview-select {
  display: block;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px;
  color: var(--pink-deep);
}
.voice-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}
.voice-channel p {
  margin: 8px 0;
  overflow-wrap: anywhere;
}
.game-showcase .card {
  border-top: 3px solid var(--pink);
}
@media (max-width: 760px) {
  .log-grid {
    grid-template-columns: 1fr;
  }
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: Inter, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-size: 15px;
}
button,
input,
select,
textarea {
  font: inherit;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
a,
input,
select,
textarea {
  outline-offset: 4px;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.55;
}
[hidden] {
  display: none !important;
}
.brand {
  display: flex;
  gap: 10px;
  align-items: center;
  font-weight: 750;
  font-size: 23px;
  letter-spacing: -0.6px;
}
.brand-icon {
  display: grid;
  place-items: center;
  width: 39px;
  height: 39px;
  border-radius: 13px;
  background: var(--pink);
  color: #562d3f;
  font-size: 24px;
  box-shadow: 0 4px 14px #e6abc240;
}
.badge,
.local-badge {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0;
  padding: 7px 10px;
  border-radius: 20px;
  color: var(--pink-deep);
  background: #f9e5ee;
}
.local-badge {
  color: var(--muted);
  background: #f2ebee;
}
.landing-header {
  max-width: 1240px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 34px 42px;
}
.hero {
  max-width: 1240px;
  margin: 55px auto 75px;
  display: grid;
  grid-template-columns: 1.12fr 1fr;
  gap: 55px;
  padding: 20px 42px;
  align-items: center;
  min-height: 480px;
}
.eyebrow {
  color: var(--pink-deep);
  font-size: 10px;
  letter-spacing: 2.2px;
  font-weight: 700;
}
.hero h1 {
  font-size: clamp(38px, 4.7vw, 61px);
  line-height: 1.12;
  letter-spacing: -2.5px;
  font-weight: 650;
  margin: 20px 0;
}
.hero h1 span {
  color: var(--pink-deep);
}
.hero-copy > p {
  max-width: 470px;
  color: var(--muted);
  line-height: 1.75;
  font-size: 16px;
  margin: 20px 0 28px;
}
.hero-copy .hint {
  font-size: 12px;
  margin-top: 18px;
  max-width: 375px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  border: 0;
  border-radius: 10px;
  padding: 12px 20px;
  font-weight: 650;
  font-size: 13px;
  transition:
    background 0.15s,
    transform 0.15s;
}
.button:hover {
  transform: translateY(-1px);
}
.primary {
  background: var(--pink);
  color: #542c3e;
}
.primary:hover {
  background: #ef9cbb;
}
.secondary {
  background: #fff;
  border: 1px solid var(--border);
  color: var(--ink);
}
.large {
  font-size: 14px;
  padding: 16px 25px;
}
.hero-art {
  position: relative;
  min-height: 420px;
  display: grid;
  place-items: center;
}
.orbit {
  position: absolute;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: #f9e9f0;
  box-shadow:
    0 0 0 24px #fcf2f6,
    0 0 0 45px #fff8fb;
}
.flower {
  position: absolute;
  font-size: 160px;
  color: #e7a0bc;
  top: -35px;
  right: -3px;
  transform: rotate(12deg);
}
.art-card {
  position: relative;
  max-width: 350px;
  width: 94%;
  padding: 33px;
  background: #ffffffdf;
  border-radius: 23px;
  border: 1px solid #fff;
  box-shadow: 0 25px 80px #a05a7b20;
  transform: rotate(-4deg);
}
.art-label {
  color: var(--muted);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 2px;
}
.art-card h2 {
  font-size: 24px;
  font-weight: 600;
  margin: 15px 0 30px;
  line-height: 1.3;
}
.art-stat {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
  border-top: 1px solid var(--border);
  color: #776171;
  font-size: 13px;
}
.pill {
  font-size: 10px;
  border-radius: 20px;
  background: #e7f2e9;
  color: #47724d;
  padding: 5px 9px;
}
.floating-chip {
  position: absolute;
  bottom: 28px;
  right: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 15px 23px;
  box-shadow: 0 8px 30px #54344310;
  font-size: 13px;
  transform: rotate(4deg);
}
.landing-footer {
  max-width: 1240px;
  margin: auto;
  padding: 25px 42px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 12px;
}
.shell {
  display: grid;
  grid-template-columns: 245px 1fr;
  min-height: 100vh;
}
.sidebar {
  background: #fff;
  border-right: 1px solid var(--border);
  padding: 30px 21px;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
}
.sidebar .brand {
  padding: 0 8px;
}
.sidebar-caption {
  font-size: 9px;
  letter-spacing: 2px;
  color: var(--muted);
  margin: 40px 10px 15px;
}
.server-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  margin: 5px 9px 8px;
}
select,
input,
textarea {
  width: 100%;
  background: #fff;
  color: var(--ink);
  border: 1px solid #e5d6df;
  border-radius: 9px;
  padding: 11px 12px;
  min-height: 42px;
}
textarea {
  resize: vertical;
  min-height: 90px;
  font-size: 13px;
}
select[multiple] {
  min-height: 115px;
}
input[type='checkbox'] {
  width: 17px;
  min-height: 17px;
  accent-color: var(--pink-deep);
}
input[type='number'] {
  max-width: 170px;
}
nav {
  margin-top: 26px;
  display: grid;
  gap: 7px;
}
nav button {
  border: 0;
  background: transparent;
  color: var(--muted);
  text-align: left;
  padding: 13px;
  border-radius: 9px;
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 16px;
}
nav button span {
  font-size: 13px;
  font-weight: 550;
}
nav button:hover,
nav button.active {
  background: #f9e9f0;
  color: var(--pink-deep);
}
.sidebar-bottom {
  margin-top: auto;
  padding-top: 40px;
}
.bot-note {
  font-size: 11px;
  color: var(--muted);
  display: flex;
  gap: 7px;
  align-items: center;
  margin: 0 10px 18px;
}
.dot {
  width: 6px;
  height: 6px;
  background: #91ab95;
  border-radius: 50%;
}
.quiet {
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 12px;
  padding: 10px;
}
.workspace {
  min-width: 0;
  padding: 0 44px 25px;
  max-width: 1500px;
  width: 100%;
  margin: auto;
}
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 82px;
  border-bottom: 1px solid var(--border);
  font-size: 11px;
  color: var(--muted);
}
.user-info {
  display: flex;
  gap: 11px;
  align-items: center;
  font-size: 12px;
}
.user-info img {
  border-radius: 50%;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 34px 0 27px;
  gap: 15px;
}
.page-heading h1 {
  font-size: 29px;
  font-weight: 650;
  letter-spacing: -1px;
  margin: 9px 0;
}
.page-heading p {
  color: var(--muted);
  font-size: 13px;
  margin: 0;
  line-height: 1.7;
}
.cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 25px;
  min-width: 0;
  margin-bottom: 20px;
}
.cards .card {
  margin-bottom: 0;
}
.card h2 {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 7px;
  letter-spacing: -0.2px;
}
.card > p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.7;
  margin: 0 0 22px;
}
.field {
  display: block;
  margin: 17px 0;
}
.field > span {
  display: block;
  font-size: 12px;
  font-weight: 550;
  margin: 0 0 8px;
}
.field small {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-top: 7px;
  line-height: 1.6;
}
.toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 17px 0;
  border-bottom: 1px solid var(--border);
}
.toggle:last-child {
  border: 0;
}
.toggle strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
}
.toggle small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}
.toggle input {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
.notice {
  background: #fbeff4;
  border: 1px solid var(--border);
  padding: 17px 20px;
  border-radius: 12px;
  color: var(--pink-deep);
  font-size: 12px;
  line-height: 1.65;
  margin-bottom: 20px;
}
.save-bar {
  position: sticky;
  bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fffefef2;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 35px #3222300b;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 15px 20px;
  margin-top: 24px;
  gap: 15px;
  font-size: 12px;
  color: var(--muted);
}
.save-bar > div {
  display: flex;
  gap: 9px;
}
.workspace-footer {
  color: var(--muted);
  font-size: 10px;
  text-align: center;
  margin-top: 40px;
}
.reward-row {
  display: grid;
  grid-template-columns: 95px 1fr 35px;
  gap: 10px;
  margin: 12px 0;
  align-items: center;
}
.remove {
  border: 0;
  background: #f9e9f0;
  border-radius: 8px;
  color: var(--pink-deep);
  height: 35px;
}
.empty {
  padding: 55px 20px;
  text-align: center;
  color: var(--muted);
  line-height: 1.8;
}
.empty h2 {
  color: var(--ink);
}
#status {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: #fff;
  border-radius: 12px;
  padding: 13px 22px;
  max-width: min(90%, 720px);
  z-index: 10;
  font-size: 13px;
  box-shadow: 0 7px 25px #0002;
}
#status.error {
  background: #993d5e;
}
.history-item {
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
}
.history-item strong {
  display: block;
  margin-bottom: 6px;
}
.history-item p {
  line-height: 1.7;
  color: var(--muted);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin: 6px 0;
}
details {
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}
summary {
  cursor: pointer;
  font-size: 13px;
  font-weight: 650;
}
pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.7;
}
.profile-preview {
  max-width: 100%;
  max-height: 180px;
  object-fit: cover;
  border-radius: 12px;
  margin-top: 15px;
}
.permissions-card .field {
  margin-top: 12px;
}
@media (max-width: 1050px) {
  .workspace {
    padding: 0 24px 25px;
  }
  .shell {
    grid-template-columns: 205px 1fr;
  }
  .hero {
    gap: 25px;
  }
  .flower {
    right: 0;
    font-size: 130px;
  }
}
@media (max-width: 760px) {
  .hero {
    grid-template-columns: 1fr;
    margin: 20px auto;
    padding: 20px 25px;
  }
  .hero-art {
    min-height: 350px;
    max-width: 420px;
    width: 100%;
    margin: auto;
  }
  .orbit {
    width: 290px;
    height: 290px;
  }
  .hero h1 {
    font-size: 43px;
  }
  .landing-header {
    padding: 24px;
  }
  .landing-footer {
    padding: 24px;
    gap: 20px;
  }
  .shell {
    grid-template-columns: 1fr;
  }
  .sidebar {
    position: static;
    height: auto;
    padding: 16px 20px;
  }
  .sidebar-caption,
  .sidebar-bottom,
  .server-label {
    display: none;
  }
  .sidebar .brand {
    margin-bottom: 15px;
  }
  nav {
    grid-template-columns: repeat(3, 1fr);
    margin-top: 12px;
    gap: 4px;
  }
  nav button {
    padding: 9px;
    gap: 6px;
  }
  nav button span {
    font-size: 11px;
  }
  .sidebar-bottom {
    display: block;
    margin: 0;
    padding: 0;
  }
  .bot-note {
    display: none;
  }
  .workspace {
    padding: 0 20px 20px;
  }
  .topbar {
    height: 60px;
  }
  .cards {
    grid-template-columns: 1fr;
  }
  .page-heading {
    margin: 25px 0;
  }
  .page-heading h1 {
    font-size: 24px;
  }
  .save-bar {
    flex-direction: column;
    align-items: stretch;
    bottom: 10px;
  }
  .save-bar > div {
    justify-content: space-between;
  }
  .hero-art .flower {
    right: 10px;
    top: -10px;
  }
  .local-badge {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}

.server-hint {
  margin: 10px 8px 0;
  font-size: 11px;
  line-height: 1.5;
  color: var(--muted);
}

img.brand-icon {
  object-fit: contain;
  background: transparent;
}

:root {
  --accent-surface: #f9e9f0;
  --input-border: #e5d6df;
}
:root[data-theme='dark'] {
  color-scheme: dark;
  --pink: #f6abc5;
  --pink-deep: #f6abc5;
  --ink: #f4e7ef;
  --muted: #b8a3b1;
  --surface: #211b25;
  --border: #3c2e3d;
  --bg: #151119;
  --accent-surface: #392333;
  --input-border: #514055;
}
.sidebar,
.card,
input,
select,
textarea,
.server-card {
  background: var(--surface);
  border-color: var(--border);
}
.badge,
nav button:hover,
nav button.active {
  background: var(--accent-surface);
}
.save-bar {
  background: var(--surface);
}
:root[data-theme='dark'] .secondary {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--border);
}
:root[data-theme='dark'] .primary {
  color: #30252f;
}
:root[data-theme='dark'] .notice,
:root[data-theme='dark'] details,
:root[data-theme='dark'] summary {
  background: var(--surface);
  color: var(--ink);
}
.server-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 22px;
}
.server-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 28px 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 8px 30px #0000000a;
}
.server-card h2 {
  font-size: 18px;
  overflow-wrap: anywhere;
}
.server-card p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}
.server-card .button {
  margin-top: auto;
}
.server-icon {
  border-radius: 22px;
  object-fit: cover;
}
.uninstalled .server-icon {
  filter: brightness(0.5) saturate(0.45);
}
#servers-back {
  margin-top: 8px;
}
#theme-toggle {
  font-size: 12px;
}
.page-enter {
  animation: page-enter 260ms ease-out both;
}
@keyframes page-enter {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (prefers-reduced-motion: no-preference) {
  body,
  .sidebar,
  .card,
  .server-card,
  input,
  select,
  textarea {
    transition:
      background-color 180ms ease,
      color 180ms ease,
      border-color 180ms ease;
  }
  .server-card {
    transition:
      transform 180ms ease,
      box-shadow 180ms ease,
      background-color 180ms ease;
  }
  .server-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 36px #00000014;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
@media (max-width: 600px) {
  .topbar {
    align-items: flex-start;
    gap: 12px;
  }
  .user-info {
    flex-wrap: wrap;
  }
  #theme-toggle {
    padding: 8px;
  }
}

:root[data-theme='dark'] #status:not(.error) {
  background: #f6abc5;
  color: #30252f;
}
:root[data-theme='dark'] .remove {
  background: var(--accent-surface);
}

:root[data-theme='dark'] .art-card,
:root[data-theme='dark'] .floating-chip {
  background: var(--surface);
  border-color: var(--border);
  color: var(--ink);
}
:root[data-theme='dark'] .art-stat {
  color: var(--muted);
}
:root[data-theme='dark'] .orbit {
  background: #342331;
  box-shadow:
    0 0 0 24px #281d29,
    0 0 0 45px #201923;
}
:root[data-theme='dark'] .local-badge {
  background: var(--accent-surface);
  color: var(--ink);
}
:root[data-theme='dark'] .pill {
  background: #254235;
  color: #bfe7c9;
}
@media (max-width: 600px) {
  .topbar {
    height: auto;
    min-height: 76px;
    padding: 16px 0;
  }
  .landing-header {
    flex-wrap: wrap;
    gap: 14px;
  }
}

/* Movimiento discreto: entrada por tarjetas y controles con respuesta inmediata. */
@media (prefers-reduced-motion: no-preference) {
  .page-enter > .card,
  .page-enter > .cards,
  .page-enter > .notice,
  .server-grid > .server-card {
    animation: nayumi-card-enter 420ms cubic-bezier(0.22, 1, 0.36, 1) both;
  }
  .page-enter > :nth-child(2),
  .server-grid > :nth-child(2) {
    animation-delay: 45ms;
  }
  .page-enter > :nth-child(3),
  .server-grid > :nth-child(3) {
    animation-delay: 90ms;
  }
  .page-enter > :nth-child(4),
  .server-grid > :nth-child(4) {
    animation-delay: 135ms;
  }
  .button,
  #nav button,
  .save-bar button {
    transition:
      transform 160ms ease,
      background-color 200ms ease,
      box-shadow 200ms ease;
  }
  .button:active,
  #nav button:active,
  .save-bar button:active {
    transform: scale(0.97);
  }
  #status:not([hidden]) {
    animation: nayumi-card-enter 220ms ease-out both;
  }
  .hero-art .floating-chip {
    animation: nayumi-float 6s ease-in-out infinite;
  }
  .save-bar {
    animation: nayumi-card-enter 300ms ease-out both;
  }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .button:hover:not(:disabled),
  .save-bar button:hover:not(:disabled) {
    transform: translateY(-2px);
  }
}
.button:focus-visible,
#nav button:focus-visible,
.save-bar button:focus-visible {
  outline: 3px solid var(--pink);
  outline-offset: 4px;
}
@keyframes nayumi-card-enter {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes nayumi-float {
  0%,
  100% {
    transform: translateY(0) rotate(-3deg);
  }
  50% {
    transform: translateY(-8px) rotate(-3deg);
  }
}
