/* Nayumi Studio: all effects are local, keyboard accessible and motion optional. */
:root {
  --bg: #f7f3fa;
  --surface: #ffffff;
  --ink: #34253d;
  --muted: #74627d;
  --border: #e9dfef;
  --pink: #ffb6ce;
  --pink-deep: #984469;
  --accent-surface: #f9e9f2;
  --radius: 22px;
  --studio-shadow: 0 14px 45px #47245408;
}
:root[data-theme='dark'] {
  --bg: #131019;
  --surface: #201a29;
  --ink: #f4eaf8;
  --muted: #b5a6bf;
  --border: #3a2d46;
  --pink-deep: #ffc0d6;
  --accent-surface: #3a2338;
  --studio-shadow: 0 14px 45px #00000020;
}
body {
  background-image:
    radial-gradient(ellipse at 85% 0%, #e78bb51c, transparent 48%),
    radial-gradient(ellipse at 20% 90%, #a28ce51a, transparent 48%);
  background-attachment: fixed;
  line-height: 1.5;
}
.shell {
  grid-template-columns: 260px minmax(0, 1fr);
}
.sidebar {
  background: var(--surface);
  padding: 30px 22px;
  overflow-y: auto;
  scrollbar-width: thin;
}
.sidebar .brand {
  padding-bottom: 25px;
  border-bottom: 1px solid var(--border);
}
.brand-icon {
  border-radius: 50%;
  background: transparent;
  box-shadow:
    0 0 0 3px var(--accent-surface),
    0 8px 25px #ee8cb52b;
  object-fit: cover;
}
.sidebar-caption {
  margin-top: 28px;
  font-weight: 700;
}
.sidebar nav {
  gap: 8px;
}
#nav button {
  min-height: 46px;
  border: 1px solid transparent;
  border-radius: 13px;
  position: relative;
}
#nav button:hover {
  background: var(--accent-surface);
}
#nav button.active {
  background: var(--accent-surface);
  color: var(--pink-deep);
  border-color: var(--border);
}
#nav button.active::after {
  content: '';
  position: absolute;
  right: 12px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--pink-deep);
}
.workspace {
  padding: 0 42px 40px;
}
.topbar {
  min-height: 88px;
}
.user-info {
  border: 1px solid var(--border);
  padding: 6px 8px;
  border-radius: 30px;
  background: var(--surface);
}
.user-info img {
  width: 36px;
  height: 36px;
}
.page-heading {
  margin: 38px 0 28px;
}
.page-heading h1 {
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 750;
  letter-spacing: -1.3px;
}
.page-heading p {
  font-size: 14px;
}
.eyebrow {
  letter-spacing: 2px;
  font-weight: 750;
}
.badge {
  background: var(--accent-surface);
  color: var(--pink-deep);
  border: 1px solid var(--border);
}
.guild-overview {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  background: linear-gradient(120deg, var(--accent-surface), var(--surface) 70%);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 26px 30px;
  margin-bottom: 28px;
  box-shadow: var(--studio-shadow);
  position: relative;
  overflow: hidden;
}
.guild-overview::after {
  content: '✦';
  position: absolute;
  right: 25%;
  top: -65px;
  font-size: 200px;
  color: var(--pink);
  opacity: 0.12;
  pointer-events: none;
}
.overview-identity {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
  z-index: 1;
}
.overview-identity img {
  border-radius: 20px;
  object-fit: cover;
  box-shadow: 0 8px 24px #00000017;
}
.overview-identity h2 {
  margin: 4px 0;
  font-size: 22px;
  overflow-wrap: anywhere;
}
.overview-identity p {
  color: var(--muted);
  font-size: 12px;
  margin: 0;
}
.overview-metrics {
  display: flex;
  gap: 28px;
  z-index: 1;
}
.overview-metric {
  display: grid;
  gap: 4px;
}
.overview-metric strong {
  font-size: 26px;
  color: var(--pink-deep);
}
.overview-metric span {
  font-size: 11px;
  color: var(--muted);
}
.card,
.server-card {
  background: var(--surface);
  box-shadow: var(--studio-shadow);
}
.card {
  padding: 28px;
  border-color: var(--border);
}
.card h2 {
  font-size: 18px;
  font-weight: 700;
}
.card > p {
  font-size: 13px;
}
.field > span {
  font-size: 13px;
  font-weight: 650;
}
input,
select,
textarea {
  background: var(--bg);
  border-color: var(--border);
  border-radius: 12px;
  padding: 13px 14px;
}
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid var(--pink-deep);
  outline-offset: 2px;
}
.toggle {
  padding: 18px 0;
  gap: 18px;
  align-items: center;
}
.toggle input[type='checkbox'] {
  appearance: none;
  flex-shrink: 0;
  width: 44px;
  height: 25px;
  min-height: 25px;
  padding: 0;
  border-radius: 30px;
  background: var(--border);
  position: relative;
  cursor: pointer;
}
.toggle input[type='checkbox']::before {
  content: '';
  position: absolute;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  top: 3px;
  left: 3px;
  background: var(--surface);
  box-shadow: 0 2px 5px #00000025;
}
.toggle input[type='checkbox']:checked {
  background: #bc638d;
  border-color: #bc638d;
}
.toggle input[type='checkbox']:checked::before {
  transform: translateX(19px);
  background: #fff;
}
.button {
  border-radius: 12px;
  min-height: 42px;
  font-weight: 650;
}
.button.primary {
  color: #361c2c;
  background: linear-gradient(120deg, #ffc5dc, #eda0c8);
  border: 1px solid #f7b5d1;
  box-shadow: 0 5px 18px #dc77a527;
}
.button.secondary {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--border);
}
.server-card {
  position: relative;
  padding: 26px;
  min-height: 310px;
  overflow: hidden;
}
.server-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 100px;
  background: linear-gradient(120deg, var(--accent-surface), transparent);
  pointer-events: none;
}
.server-card > * {
  position: relative;
}
.server-card-status {
  font-size: 9px;
  letter-spacing: 1.4px;
  font-weight: 750;
  color: var(--pink-deep);
  margin-bottom: 22px;
}
.server-card h2 {
  margin-bottom: 0;
}
.server-card .button {
  width: 100%;
}
.server-card.uninstalled {
  border-style: dashed;
}
.server-card.uninstalled .server-card-status {
  color: var(--muted);
}
.server-icon {
  box-shadow: 0 8px 24px #00000019;
  border: 3px solid var(--surface);
}
.log-category,
.ticket-category,
.voice-channel,
.ticket-preview {
  background: var(--bg);
  border-color: var(--border);
}
.ticket-preview {
  background: linear-gradient(120deg, var(--accent-surface), var(--bg));
  border-left-width: 4px;
  padding: 25px;
}
.ticket-preview-select {
  background: var(--surface);
  margin-top: 15px;
}
.save-bar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 16px 20px;
  box-shadow: 0 12px 48px #00000020;
  z-index: 5;
}
.workspace-footer {
  padding-top: 24px;
  letter-spacing: 0.4px;
}
.loading-panel > p {
  color: var(--muted);
}
.skeleton-card {
  height: 240px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: linear-gradient(
    100deg,
    var(--surface) 20%,
    var(--accent-surface) 50%,
    var(--surface) 80%
  );
  background-size: 220% 100%;
}
#status {
  border-radius: 16px;
  box-shadow: 0 12px 40px #00000025;
  max-width: min(460px, calc(100vw - 32px));
}
.hero h1 {
  font-weight: 750;
}
.hero-art .art-card {
  box-shadow: 0 24px 70px #bb6c9822;
}
@media (prefers-reduced-motion: no-preference) {
  .card,
  .server-card {
    transition:
      transform 280ms ease,
      box-shadow 280ms ease,
      border-color 280ms ease;
  }
  .toggle input,
  .toggle input::before {
    transition:
      background-color 220ms ease,
      transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
  }
  #nav button {
    transition:
      background-color 200ms ease,
      transform 200ms ease;
  }
  .guild-overview {
    animation: studio-reveal 500ms cubic-bezier(0.22, 1, 0.36, 1) both;
  }
  .page-enter > *,
  .page-enter .cards > .card {
    animation: studio-reveal 500ms cubic-bezier(0.22, 1, 0.36, 1) both;
  }
  .page-enter .cards > :nth-child(2) {
    animation-delay: 70ms;
  }
  .server-grid > :nth-child(5) {
    animation-delay: 160ms;
  }
  .server-grid > :nth-child(6) {
    animation-delay: 200ms;
  }
  .skeleton-card {
    animation: studio-shimmer 1500ms linear infinite;
  }
  .hero-art .orbit {
    animation: studio-breathe 8s ease-in-out infinite;
  }
  .hero-art .flower {
    animation: studio-sway 9s ease-in-out infinite;
  }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .card:hover {
    border-color: var(--pink);
    box-shadow: 0 16px 40px #b5618912;
  }
  .server-card:hover {
    transform: translateY(-6px);
    border-color: var(--pink);
    box-shadow: 0 20px 45px #b5618920;
  }
  #nav button:hover {
    transform: translateX(3px);
  }
}
@keyframes studio-reveal {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes studio-shimmer {
  from {
    background-position: 100% 0;
  }
  to {
    background-position: -100% 0;
  }
}
@keyframes studio-breathe {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.04);
  }
}
@keyframes studio-sway {
  0%,
  100% {
    transform: rotate(-8deg);
  }
  50% {
    transform: rotate(8deg);
  }
}
@media (max-width: 1100px) {
  .guild-overview {
    flex-direction: column;
    align-items: stretch;
  }
  .overview-metrics {
    justify-content: space-between;
  }
  .workspace {
    padding: 0 25px 30px;
  }
  .shell {
    grid-template-columns: 225px minmax(0, 1fr);
  }
}
@media (max-width: 760px) {
  .shell {
    grid-template-columns: 1fr;
  }
  .sidebar {
    height: auto;
    position: static;
    padding: 18px;
  }
  .sidebar .brand {
    padding-bottom: 15px;
  }
  .sidebar nav {
    display: flex;
    overflow-x: auto;
    padding-bottom: 10px;
  }
  #nav button {
    flex-shrink: 0;
    padding-right: 22px;
  }
  .workspace {
    padding: 0 18px 25px;
  }
  .guild-overview {
    padding: 22px;
  }
  .overview-metrics {
    gap: 12px;
  }
  .overview-metric strong {
    font-size: 22px;
  }
  .topbar {
    flex-wrap: wrap;
    padding: 16px 0;
    gap: 12px;
  }
  .user-info {
    flex-wrap: wrap;
  }
  .card {
    padding: 22px;
  }
  .page-heading {
    flex-wrap: wrap;
  }
}
@media (forced-colors: active) {
  .toggle input {
    appearance: auto;
  }
  .toggle input::before {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
/* Sakura edition */
:root {
  --bg: #fff8fc;
  --surface: #fffdff;
  --border: #f0dae8;
  --ink: #482f49;
  --muted: #80677e;
  --pink-deep: #a74472;
  --accent-surface: #ffeaf4;
  --radius: 26px;
}
:root[data-theme='dark'] {
  --bg: #17121f;
  --surface: #251d30;
  --border: #48334f;
  --ink: #faedf8;
  --muted: #c6adc9;
  --pink-deep: #ffbfda;
  --accent-surface: #40263e;
}
body {
  background-image:
    radial-gradient(circle at 80% 10%, #f0a1ce22, transparent 40%),
    radial-gradient(circle at 10% 80%, #b5a1ed18, transparent 40%);
}
.workspace {
  position: relative;
}
.workspace::before {
  content: '✧';
  position: absolute;
  top: 105px;
  right: 28px;
  font-size: 40px;
  color: var(--pink);
  opacity: 0.55;
  pointer-events: none;
}
.sidebar {
  border-right: 1px solid var(--border);
  background: linear-gradient(180deg, var(--surface), var(--bg));
}
.sidebar-caption {
  letter-spacing: 1.1px;
}
.brand {
  font-weight: 800;
}
.brand-icon {
  box-shadow:
    0 0 0 4px var(--accent-surface),
    0 0 0 5px var(--border),
    0 10px 25px #cc619626;
}
#nav button.active {
  background: linear-gradient(100deg, var(--accent-surface), var(--surface));
  box-shadow: 0 4px 15px #d978a411;
}
#nav button.active::after {
  content: '♡';
  width: auto;
  height: auto;
  background: transparent;
  font-size: 15px;
}
.topbar {
  border-bottom-style: dashed;
}
.page-heading h1 {
  font-weight: 800;
  letter-spacing: -1.2px;
}
.page-heading .eyebrow {
  color: var(--pink-deep);
}
.card {
  position: relative;
  border-radius: 26px;
  box-shadow:
    0 8px 0 #eab7d008,
    0 18px 50px #58233c08;
}
.card h2 {
  padding-bottom: 10px;
}
.card h2::after {
  content: '';
  display: block;
  width: 35px;
  height: 3px;
  border-radius: 5px;
  background: linear-gradient(90deg, var(--pink), #cbb9ee);
  margin-top: 12px;
}
.field input,
.field select,
.field textarea {
  border-radius: 14px;
}
.button.primary {
  background: linear-gradient(110deg, #ffc7df, #eab7e8);
  box-shadow:
    0 4px 0 #d58aa41c,
    0 8px 20px #df8bb921;
}
.button.primary:hover {
  box-shadow:
    0 7px 0 #d58aa418,
    0 12px 28px #df8bb92a;
}
.community-welcome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 32px;
  margin: 0 0 28px;
  border: 1px solid var(--border);
  border-radius: 28px;
  background: linear-gradient(110deg, var(--accent-surface), var(--surface));
  position: relative;
  overflow: hidden;
}
.community-welcome::after {
  content: '✿';
  font-size: 180px;
  position: absolute;
  right: 22%;
  bottom: -65px;
  color: var(--pink);
  opacity: 0.22;
  pointer-events: none;
}
.community-welcome h2 {
  font-size: clamp(23px, 2.5vw, 30px);
  max-width: 440px;
  margin: 12px 0;
  letter-spacing: -0.8px;
}
.community-welcome p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  max-width: 410px;
}
.welcome-counts {
  display: flex;
  gap: 28px;
  flex-shrink: 0;
  z-index: 1;
}
.welcome-counts > div {
  display: grid;
  gap: 3px;
}
.welcome-counts strong {
  font-size: 32px;
  color: var(--pink-deep);
}
.welcome-counts span {
  font-size: 11px;
  color: var(--muted);
}
.server-grid {
  gap: 24px;
}
.server-card {
  border-radius: 26px;
  padding: 30px 24px;
  min-height: 335px;
}
.server-card::before {
  height: 145px;
  background: radial-gradient(ellipse at 50% 0%, var(--accent-surface), transparent 80%);
}
.server-card::after {
  content: '✧';
  position: absolute;
  right: 22px;
  top: 61px;
  color: var(--pink-deep);
  opacity: 0.45;
  font-size: 26px;
  pointer-events: none;
}
.server-icon {
  border-radius: 28px;
  transform: rotate(-4deg);
  box-shadow:
    0 0 0 5px var(--accent-surface),
    0 12px 24px #b456901c;
}
.server-card .button {
  border-radius: 15px;
}
.server-card-status {
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface);
  font-size: 8px;
}
.guild-overview {
  padding-right: 105px;
  border-radius: 28px;
}
.guild-overview::after {
  content: '✿';
  opacity: 0.11;
  right: 26%;
}
.overview-charm {
  position: absolute;
  right: 22px;
  top: 26px;
  font-size: 25px;
  color: var(--pink-deep);
  font-weight: 700;
}
.overview-identity img {
  transform: rotate(-4deg);
  border: 3px solid var(--surface);
}
.overview-metric strong {
  font-weight: 800;
}
.kawaii-note {
  border: 1px dashed var(--border);
  border-radius: 20px;
  padding: 18px 12px;
  text-align: center;
  margin-bottom: 20px;
  background: var(--accent-surface);
}
.kawaii-note > span {
  display: block;
  font-size: 26px;
  color: var(--pink-deep);
  margin-bottom: 8px;
}
.kawaii-note strong {
  display: block;
  font-size: 12px;
}
.kawaii-note p {
  margin: 6px 0 0;
  font-size: 10px;
  color: var(--muted);
}
.sidebar-bottom {
  padding-top: 22px;
}
.ticket-preview {
  position: relative;
  border-radius: 18px;
  box-shadow: 0 8px 20px #d676a10c;
}
.ticket-preview strong {
  color: var(--pink-deep);
}
.notice {
  border: 1px dashed var(--border);
  border-radius: 18px;
  background: var(--accent-surface);
  color: var(--ink);
}
.save-bar {
  border-radius: 20px;
}
@media (prefers-reduced-motion: no-preference) {
  .community-welcome {
    animation: studio-reveal 600ms cubic-bezier(0.22, 1, 0.36, 1) both;
  }
  .overview-charm,
  .kawaii-note > span {
    animation: sakura-charm 6s ease-in-out infinite;
  }
  .server-card::after {
    animation: sakura-twinkle 5s ease-in-out infinite;
  }
  .server-icon {
    transition: transform 350ms cubic-bezier(0.22, 1, 0.36, 1);
  }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .server-card:hover .server-icon {
    transform: rotate(3deg) translateY(-3px);
  }
}
@keyframes sakura-charm {
  0%,
  100% {
    transform: translateY(0) rotate(-3deg);
  }
  50% {
    transform: translateY(-4px) rotate(3deg);
  }
}
@keyframes sakura-twinkle {
  0%,
  100% {
    opacity: 0.25;
    transform: scale(0.9);
  }
  50% {
    opacity: 0.7;
    transform: scale(1.15);
  }
}
@media (max-width: 1100px) {
  .guild-overview {
    padding-right: 30px;
  }
  .overview-charm {
    top: 20px;
    right: 16px;
    font-size: 20px;
  }
  .community-welcome {
    align-items: flex-start;
    flex-direction: column;
  }
}
@media (max-width: 760px) {
  .kawaii-note {
    display: none;
  }
  .community-welcome {
    padding: 25px;
  }
  .guild-overview {
    padding: 22px;
  }
  .overview-identity {
    padding-right: 24px;
  }
  .overview-charm {
    font-size: 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
.welcome-preview {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 24px;
  border-radius: 22px;
  background: #ffdfed;
  color: #92496f;
  margin-top: 20px;
}
.welcome-preview[data-palette='lavanda'] {
  background: #e9ddff;
  color: #684e85;
}
.welcome-preview[data-palette='noche'] {
  background: #302039;
  color: #efb5d8;
}
.welcome-preview img {
  border: 3px solid #ffffff80;
  border-radius: 50%;
}
.welcome-preview > div {
  display: grid;
  gap: 6px;
  min-width: 0;
  overflow-wrap: anywhere;
}
.welcome-preview small {
  font-size: 9px;
  letter-spacing: 1px;
}
.welcome-preview strong {
  font-size: 20px;
}
.welcome-preview span {
  font-size: 12px;
}
.expansion-grid {
  align-items: start;
}
