/* ==========================================================================
   KITA CEMANA // DESIGN SYSTEM
   Color Palette: Warm Apricot Canvas, Ink #14161c, Pop-Pink, Pop-Blue, Pop-Yellow, Pop-Emerald
   Typography: Syne (Display/3D), Plus Jakarta Sans (UI), JetBrains Mono (Codes)
   ========================================================================== */

:root {
  /* Core Pop-Art Colors */
  --bg-canvas: #f8bd74;
  --bg-surface: #ffffff;
  --bg-surface-alt: #fff9f0;
  --ink: #14161c;
  --ink-muted: #525866;
  --ink-subtle: #8a90a0;

  --pop-pink: #fc3068;
  --pop-blue: #2d5efc;
  --pop-yellow: #facc15;
  --pop-emerald: #10b981;
  --pop-purple: #9333ea;
  --pop-orange: #f97316;

  /* UNO Table Felt & Game Colors */
  --table-felt: #059669;
  --table-felt-inner: #10b981;
  --card-red: #ef4444;
  --card-blue: #2d5efc;
  --card-green: #10b981;
  --card-yellow: #facc15;
  --card-black: #14161c;

  /* Borders & Brutalist Hard Shadows */
  --border-thick: 2.5px solid var(--ink);
  --border-thin: 1.5px solid var(--ink);
  --shadow-sm: 2px 2px 0px var(--ink);
  --shadow-md: 4px 4px 0px var(--ink);
  --shadow-lg: 6px 6px 0px var(--ink);
  --shadow-xl: 8px 8px 0px var(--ink);

  /* Fonts - Upright readable display for dark headings; Syne for 3D Pop typography & Brand */
  --font-display: 'Outfit', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-pop3d: 'Syne', sans-serif;
  --font-brand: 'Outfit', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-ui: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Layout Dimensions */
  --sidebar-w: 260px;
  --topbar-h: 64px;
  --mobile-nav-h: 68px;
  --radius-card: 16px;
  --radius-btn: 12px;
  --radius-pill: 999px;
}

/* Reset & Base Setup */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  min-height: 100%;
  overflow-x: clip;
  max-width: 100%;
  width: 100%;
}

body {
  background-color: var(--bg-canvas);
  background-image: radial-gradient(rgba(20, 22, 28, 0.16) 1.5px, transparent 1.5px);
  background-size: 18px 18px;
  font-family: var(--font-ui);
  color: var(--ink);
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  line-height: 1.5;
  overflow-x: clip;
  max-width: 100%;
  width: 100%;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--pop-pink);
  color: #ffffff;
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  touch-action: manipulation;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Accessibility Skip Link */
.skip {
  position: absolute;
  top: -999px;
  left: 16px;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  z-index: 9999;
  border-radius: var(--radius-btn);
  font-weight: 700;
}
.skip:focus {
  top: 16px;
}

/* Ambient Floating Pop-Art Orbs */
.bg-animation-container {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.bg-color-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.3;
  animation: floatOrb 18s ease-in-out infinite alternate;
}

.orb-pink {
  width: 480px;
  height: 480px;
  background: var(--pop-pink);
  top: -100px;
  right: -100px;
  animation-duration: 20s;
}

.orb-blue {
  width: 520px;
  height: 520px;
  background: var(--pop-blue);
  bottom: -150px;
  left: -120px;
  animation-duration: 24s;
}

.orb-yellow {
  width: 360px;
  height: 360px;
  background: var(--pop-yellow);
  top: 40%;
  left: 20%;
  animation-duration: 16s;
}

@keyframes floatOrb {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, -30px) scale(1.08); }
  100% { transform: translate(-30px, 40px) scale(0.95); }
}

/* Ambient Floating Background UNO Cards (Restricted ONLY to UNO page) */
.floating-cards-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  display: none; /* Hidden by default on all other pages */
}

body.page-uno .floating-cards-layer {
  display: block; /* ONLY shown when active route is #uno */
}

.floating-card-bg {
  position: absolute;
  width: 48px;
  height: 72px;
  border-radius: 9px;
  border: 2.5px solid #ffffff;
  box-shadow: 2px 2px 0px rgba(20, 22, 28, 0.45);
  opacity: 0.38;
  animation: floatCardsBg 11s infinite linear;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1.15rem;
  color: #ffffff;
  pointer-events: none;
  user-select: none;
}

.card-float-1 { left: 4%; background: #fc3068; animation-duration: 9.5s; animation-delay: 0s; }
.card-float-2 { left: 12%; background: #2d5efc; animation-duration: 11.5s; animation-delay: -3s; }
.card-float-3 { left: 19%; background: #facc15; color: #14161c; border-color: #14161c; animation-duration: 8.5s; animation-delay: -5s; }
.card-float-4 { left: 27%; background: #10b981; animation-duration: 12.5s; animation-delay: -1s; }
.card-float-5 { left: 35%; background: #14161c; border-color: #fc3068; animation-duration: 14s; animation-delay: -7s; }
.card-float-6 { left: 43%; background: #fc3068; animation-duration: 8s; animation-delay: -2.5s; }
.card-float-7 { left: 51%; background: #2d5efc; animation-duration: 10.5s; animation-delay: -4s; }
.card-float-8 { left: 59%; background: #facc15; color: #14161c; border-color: #14161c; animation-duration: 9s; animation-delay: -6s; }
.card-float-9 { left: 67%; background: #10b981; animation-duration: 13s; animation-delay: -3.5s; }
.card-float-10 { left: 75%; background: #fc3068; animation-duration: 10s; animation-delay: -8s; }
.card-float-11 { left: 82%; background: #2d5efc; animation-duration: 11s; animation-delay: -2s; }
.card-float-12 { left: 90%; background: #facc15; color: #14161c; border-color: #14161c; animation-duration: 10.5s; animation-delay: -10s; }
.card-float-13 { left: 8%; background: #14161c; border-color: #facc15; animation-duration: 13.5s; animation-delay: -12s; }
.card-float-14 { left: 48%; background: #10b981; animation-duration: 8.5s; animation-delay: -9.5s; }

@keyframes floatCardsBg {
  0% { transform: translateY(105vh) rotate(0deg); opacity: 0; }
  12% { opacity: 0.38; }
  85% { opacity: 0.38; }
  100% { transform: translateY(-15vh) rotate(360deg); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .floating-card-bg {
    display: none !important;
  }
}

/* ==========================================================================
   POP-ART 3D CHROMATIC TYPOGRAPHY
   ========================================================================== */
.pop-text-3d {
  font-family: var(--font-pop3d) !important;
  font-weight: 900;
  color: #ffffff;
  -webkit-text-fill-color: #ffffff;
  -webkit-text-stroke: 2.5px var(--ink);
  paint-order: stroke fill;
  text-shadow:
    3px 3px 0px var(--pop-pink),
    6px 6px 0px var(--pop-blue),
    9px 9px 0px var(--ink);
  letter-spacing: 0.02em;
  line-height: 1.15;
}

.pop-text-3d-yellow {
  font-family: var(--font-pop3d) !important;
  font-weight: 900;
  color: var(--pop-yellow);
  -webkit-text-fill-color: var(--pop-yellow);
  -webkit-text-stroke: 2.5px var(--ink);
  paint-order: stroke fill;
  text-shadow:
    3px 3px 0px var(--pop-pink),
    6px 6px 0px var(--pop-blue),
    9px 9px 0px var(--ink);
}

.pop-text-3d-sm {
  font-family: var(--font-pop3d) !important;
  font-weight: 900;
  color: #ffffff;
  -webkit-text-fill-color: #ffffff;
  -webkit-text-stroke: 2px var(--ink);
  paint-order: stroke fill;
  text-shadow:
    2px 2px 0px var(--pop-pink),
    4px 4px 0px var(--pop-blue),
    6px 6px 0px var(--ink);
  line-height: 1.2;
}

/* ==========================================================================
   APP LAYOUT: DESKTOP SIDEBAR + SHELL
   ========================================================================== */
.app-layout {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 100vh;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/* Desktop Sidebar */
.sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  background: #ffffff;
  border-right: var(--border-thick);
  box-shadow: 4px 0 0 rgba(20, 22, 28, 0.06);
  padding: 24px 18px;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  max-height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  z-index: 40;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 20px;
  border-bottom: var(--border-thick);
  margin-bottom: 20px;
  text-decoration: none;
  overflow: hidden;
  max-width: 100%;
}

.brand-avatar {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  max-width: 44px;
  max-height: 44px;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  border: var(--border-thick);
  box-shadow: var(--shadow-sm);
  background: var(--pop-yellow);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: center;
}

.brand-img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  display: block;
}

.brand-fallback {
  font-family: var(--font-brand);
  font-weight: 900;
  font-size: 1.4rem;
  color: var(--ink);
}

.brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand-name {
  font-family: var(--font-brand);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.15;
  white-space: nowrap;
}

.brand-sub {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--pop-blue);
  letter-spacing: 0.08em;
}

/* Sidebar Navigation Links */
#desktop-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  overflow-y: auto;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-btn);
  border: 2px solid transparent;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink-muted);
  transition: all 0.15s ease;
}

.nav-item:hover {
  background: var(--bg-surface-alt);
  color: var(--ink);
  border-color: var(--ink);
  box-shadow: var(--shadow-sm);
  transform: translate(-1px, -1px);
}

.nav-item.active {
  background: var(--pop-yellow);
  color: var(--ink);
  border: var(--border-thick);
  box-shadow: var(--shadow-sm);
  font-weight: 800;
}

.nav-item-icon {
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.nav-item-icon .pop-nav-svg {
  width: 22px;
  height: 22px;
  display: block;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-item:hover .nav-item-icon .pop-nav-svg {
  transform: scale(1.18) rotate(-4deg);
}

.nav-item.active .nav-item-icon .pop-nav-svg {
  transform: scale(1.12);
}

.community-cat-icon .pop-nav-svg {
  width: 42px;
  height: 42px;
  display: block;
}

.nav-divider {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--ink-subtle);
  letter-spacing: 0.12em;
  padding: 14px 14px 4px 14px;
}

.sidebar-foot {
  padding-top: 16px;
  border-top: var(--border-thick);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sidebar-motto {
  font-size: 0.78rem;
  color: var(--ink-muted);
  line-height: 1.35;
}

.sidebar-link {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 800;
  color: var(--pop-blue);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.sidebar-link:hover {
  color: var(--pop-pink);
  text-decoration: underline;
}

/* ==========================================================================
   SHELL & TOPBAR
   ========================================================================== */
.shell {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  min-height: 100vh;
}

.topbar {
  height: var(--topbar-h);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: var(--border-thick);
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 35;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.mobile-brand {
  display: none;
  align-items: center;
  gap: 8px;
}

.mobile-logo-circle {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--pop-yellow);
  border: var(--border-thick);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-brand);
  font-weight: 900;
  font-size: 1.1rem;
}

.mobile-brand-title {
  font-family: var(--font-brand);
  font-weight: 900;
  font-size: 1.15rem;
  color: var(--ink);
}

.badge-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: #ffffff;
  border: var(--border-thin);
  box-shadow: var(--shadow-sm);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--ink);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--pop-emerald);
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulseEmerald 1.8s infinite;
}

@keyframes pulseEmerald {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-btn-monitor {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: #ffffff;
  border: var(--border-thick);
  box-shadow: var(--shadow-sm);
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--ink);
  transition: all 0.15s ease;
}
.nav-btn-monitor:hover {
  background: var(--pop-blue);
  color: #ffffff;
  transform: translate(-1px, -1px);
  box-shadow: var(--shadow-md);
}

.avatar-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--pop-pink);
  border: var(--border-thick);
  box-shadow: var(--shadow-sm);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  font-weight: 900;
  transition: all 0.15s ease;
}
.avatar-pill:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-md);
  background: var(--pop-yellow);
  color: var(--ink);
}

.avatar-status-dot {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--pop-emerald);
  border: 2px solid #ffffff;
}

/* Header Profile Pill & Dropdown */
.header-profile-btn-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid var(--ink);
  box-shadow: 2px 2px 0 var(--ink);
  padding: 0;
  margin: 0;
  overflow: hidden;
  background: var(--pop-yellow);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  flex-shrink: 0;
}
.header-profile-btn-circle:hover {
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0 var(--ink);
}
.header-profile-btn-circle:active {
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0 var(--ink);
}
.header-avatar-img-circle {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 50%;
}

.header-profile-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px 4px 6px;
  border-radius: var(--radius-pill);
  background: var(--bg-surface);
  border: var(--border-thick);
  box-shadow: var(--shadow-sm);
  color: var(--ink);
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.15s ease;
}
.header-profile-pill:hover {
  transform: translate(-1px, -1px);
  box-shadow: var(--shadow-md);
  background: var(--bg-surface-alt);
}
.header-profile-pill:active {
  transform: translate(1px, 1px);
  box-shadow: none;
}

.header-avatar-wrap {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid var(--ink);
  overflow: hidden;
  background: var(--pop-yellow);
  display: flex;
  align-items: center;
  justify-content: center;
}
.header-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.header-username-label {
  max-width: 130px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 800;
}
.header-chevron {
  font-size: 0.75rem;
  color: var(--ink-muted);
  transition: transform 0.2s ease;
}
.header-profile-pill[aria-expanded="true"] .header-chevron {
  transform: rotate(180deg);
}

.header-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 260px;
  background: var(--bg-surface);
  border: var(--border-thick);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  padding: 14px;
  z-index: 1000;
  animation: popDropdownEnter 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes popDropdownEnter {
  from { opacity: 0; transform: translateY(-8px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.dropdown-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.dropdown-avatar-wrap {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--ink);
  overflow: hidden;
  background: var(--pop-yellow);
  flex-shrink: 0;
}
.dropdown-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.dropdown-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.dropdown-info b {
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--ink);
}
.dropdown-handle {
  font-size: 0.78rem;
  color: var(--ink-muted);
  font-family: var(--font-mono);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dropdown-divider {
  height: 1.5px;
  background: var(--ink);
  margin: 10px 0;
  opacity: 0.15;
}
.dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 12px;
  border-radius: 8px;
  border: none;
  background: none;
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  transition: all 0.12s ease;
  text-decoration: none;
}
.dropdown-item:hover {
  background: var(--bg-surface-alt);
  color: var(--pop-blue);
}
.dropdown-item-danger {
  color: var(--pop-pink);
}
.dropdown-item-danger:hover {
  background: #fee2e2;
  color: #dc2626;
}

/* UNO BGM Audio Controls */
.uno-bgm-cluster {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-surface);
  border: var(--border-thin);
  border-radius: var(--radius-pill);
  padding: 3px 10px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink);
  box-shadow: 1.5px 1.5px 0 var(--ink);
}
.uno-bgm-btn {
  background: none;
  border: none;
  font-size: 0.95rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 4px;
  border-radius: 4px;
  line-height: 1;
  transition: transform 0.12s ease;
}
.uno-bgm-btn:hover {
  transform: scale(1.18);
}
.uno-bgm-slider {
  width: 55px;
  height: 5px;
  accent-color: var(--pop-blue);
  cursor: pointer;
}

/* Main Content Container */
main#main {
  flex: 1;
  padding: 32px 32px 48px 32px;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}

/* Site Footer */
.site-footer {
  margin-top: auto;
  border-top: var(--border-thick);
  background: #ffffff;
  padding: 24px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.85rem;
  width: 100%;
  box-sizing: border-box;
}

.pop-footer-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 900;
  display: block;
}

.footer-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  background: var(--pop-yellow);
  border: var(--border-thin);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 800;
}

.footer-note {
  color: var(--ink-muted);
  font-size: 0.8rem;
}

/* ==========================================================================
   POP-ART BUTTONS & TACTILE CONTROLS
   ========================================================================== */
.pop-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-btn);
  border: var(--border-thick);
  box-shadow: var(--shadow-md);
  font-weight: 800;
  font-size: 0.92rem;
  background: #ffffff;
  color: var(--ink);
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
  user-select: none;
}

.pop-btn:hover:not(:disabled) {
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-lg);
}

.pop-btn:active:not(:disabled) {
  transform: translate(2px, 2px);
  box-shadow: var(--shadow-sm);
}

.pop-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.pop-btn-primary {
  background: var(--pop-pink);
  color: #ffffff;
}
.pop-btn-primary:hover:not(:disabled) {
  background: #f41b56;
}

.pop-btn-blue {
  background: var(--pop-blue);
  color: #ffffff;
}
.pop-btn-blue:hover:not(:disabled) {
  background: #1b49e0;
}

.pop-btn-yellow {
  background: var(--pop-yellow);
  color: var(--ink);
}
.pop-btn-yellow:hover:not(:disabled) {
  background: #f5c400;
}

.pop-btn-emerald {
  background: var(--pop-emerald);
  color: #ffffff;
}

.pop-btn-dark {
  background: var(--ink);
  color: #ffffff;
}
.pop-btn-dark:hover:not(:disabled) {
  background: #252833;
}

.pop-btn-outline {
  background: #ffffff;
  color: var(--ink);
}

.pop-btn-sm {
  padding: 6px 14px;
  font-size: 0.82rem;
  border-radius: 8px;
}

.pop-btn-lg {
  padding: 14px 28px;
  font-size: 1.05rem;
  border-radius: 14px;
}

.icon-pop-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-btn);
  border: var(--border-thick);
  box-shadow: var(--shadow-sm);
  background: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 900;
  transition: all 0.12s ease;
}
.icon-pop-btn:hover:not(:disabled) {
  transform: translate(-1px, -1px);
  box-shadow: var(--shadow-md);
  background: var(--pop-yellow);
}
.icon-pop-btn:active:not(:disabled) {
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0 var(--ink);
}

/* Badge Tags & Labels */
.badge-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--pop-yellow);
  border: var(--border-thin);
  box-shadow: 2px 2px 0 var(--ink);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
  line-height: 1.2;
}

.badge-tag-pink {
  background: var(--pop-pink);
  color: #ffffff;
}

.badge-tag-blue {
  background: var(--pop-blue);
  color: #ffffff;
}

/* Page Headers */
.page-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  margin-bottom: 28px;
}

.page-head-main {
  width: 100%;
}

.eyebrow-tag {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--pop-blue);
  letter-spacing: 0.1em;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.page-title {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin: 0 0 10px 0;
}

.page-head-aside {
  font-size: 1rem;
  color: var(--ink-muted, #475569);
  max-width: 840px;
  width: 100%;
  text-align: left;
  line-height: 1.55;
  font-weight: 600;
  margin: 4px 0 0 0;
}

.home-head {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-end;
  padding-bottom: 8px;
  flex-wrap: wrap;
  gap: 16px;
}

.home-head .page-head-main {
  width: auto;
}

.home-head .page-head-aside {
  max-width: 360px;
  text-align: right;
  width: auto;
  margin: 0;
}

/* ==========================================================================
   BERANDA (HOME) VIEW
   ========================================================================== */
.home-section {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.home-head {
  padding-bottom: 8px;
}

.identity-banner {
  background: #ffffff;
  border: var(--border-thick);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-md);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.identity-user {
  display: flex;
  align-items: center;
  gap: 14px;
}

.identity-avatar-box {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--pop-yellow);
  border: var(--border-thick);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.2rem;
  color: var(--ink);
}

.identity-meta b {
  font-size: 1.1rem;
  display: block;
}

.identity-meta p {
  font-size: 0.85rem;
  color: var(--ink-muted);
}

/* Feature Grid: UNO & Cinema Cards */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.feature-card {
  position: relative;
  background: #ffffff;
  border: var(--border-thick);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-lg);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 340px;
  overflow: hidden;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.feature-card-uno {
  background: linear-gradient(135deg, #ffffff 60%, #fff0f5 100%);
}

.feature-card-cinema {
  background: linear-gradient(135deg, #ffffff 60%, #eff6ff 100%);
}

.feature-eyebrow {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.feature-title {
  font-family: var(--font-pop3d) !important;
  font-size: 2.1rem;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 12px;
}

.feature-desc {
  font-size: 0.95rem;
  color: var(--ink-muted);
  line-height: 1.45;
  max-width: 280px;
  margin-bottom: 24px;
}

/* Mini Art Cards for UNO preview */
.art-cards-fan {
  position: absolute;
  right: 20px;
  bottom: 24px;
  width: 140px;
  height: 170px;
  pointer-events: none;
}

.preview-card {
  position: absolute;
  width: 76px;
  height: 110px;
  border-radius: 10px;
  border: 3px solid #ffffff;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 6px;
  color: #ffffff;
  font-weight: 900;
  transition: transform 0.3s ease;
}

.preview-card-1 {
  background: var(--card-blue);
  bottom: 10px;
  right: 48px;
  transform: rotate(-14deg);
  animation: cardFloat1 3.5s ease-in-out infinite;
}

.preview-card-2 {
  background: var(--card-yellow);
  color: var(--ink);
  bottom: 24px;
  right: 28px;
  transform: rotate(4deg);
  animation: cardFloat2 4.0s ease-in-out infinite 0.4s;
}

.preview-card-3 {
  background: var(--card-red);
  bottom: 36px;
  right: 6px;
  transform: rotate(20deg);
  animation: cardFloat3 3.7s ease-in-out infinite 0.8s;
}

@keyframes cardFloat1 {
  0%, 100% { transform: rotate(-14deg) translateY(0); }
  50% { transform: rotate(-19deg) translateY(-8px) translateX(-3px); }
}

@keyframes cardFloat2 {
  0%, 100% { transform: rotate(4deg) translateY(0); }
  50% { transform: rotate(1deg) translateY(-14px); }
}

@keyframes cardFloat3 {
  0%, 100% { transform: rotate(20deg) translateY(0); }
  50% { transform: rotate(25deg) translateY(-10px) translateX(4px); }
}

.feature-card:hover .preview-card-1,
.uno-hero-box:hover .preview-card-1 {
  animation-play-state: paused;
  transform: rotate(-24deg) translate(-10px, -8px);
}

.feature-card:hover .preview-card-2,
.uno-hero-box:hover .preview-card-2 {
  animation-play-state: paused;
  transform: rotate(2deg) translateY(-18px);
}

.feature-card:hover .preview-card-3,
.uno-hero-box:hover .preview-card-3 {
  animation-play-state: paused;
  transform: rotate(28deg) translate(10px, -8px);
}

/* Home Bottom Section */
.home-bottom-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.section-box {
  background: #ffffff;
  border: var(--border-thick);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-md);
  padding: 24px;
}

.section-head-mini {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.section-head-mini h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 900;
}

.mini-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.mini-card {
  background: var(--bg-surface-alt);
  border: var(--border-thick);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: all 0.15s ease;
}

.mini-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-md);
  background: var(--pop-yellow);
}

.mini-symbol {
  font-size: 1.5rem;
}

.mini-card b {
  font-size: 0.9rem;
  line-height: 1.2;
}

.mini-card small {
  font-size: 0.72rem;
  color: var(--ink-muted);
}

.agenda-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border-radius: 10px;
  border: var(--border-thin);
  margin-bottom: 10px;
  background: #ffffff;
}

.agenda-time {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--pop-blue);
  background: #eff6ff;
  padding: 4px 8px;
  border-radius: 6px;
}

.agenda-info {
  flex: 1;
}

.agenda-info b {
  font-size: 0.9rem;
  display: block;
}

.agenda-info p {
  font-size: 0.78rem;
  color: var(--ink-muted);
}

/* ==========================================================================
   MOST PLAYED SONGS IN CEMANA COLLECTIVE BY ARSINTA BERNYANYI
   ========================================================================== */
.music-top-box {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.music-top-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.music-header-titles {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 0;
}

.music-main-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  margin: 0;
  color: var(--ink);
  line-height: 1.25;
}

.music-curator-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--pop-pink);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.spotify-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #1DB954;
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 0.76rem;
  font-weight: 800;
  padding: 6px 12px;
  border-radius: 999px;
  border: var(--border-thick);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.spotify-pill-btn:hover {
  transform: translate(-1.5px, -1.5px);
  box-shadow: var(--shadow-md);
  filter: brightness(1.05);
  color: #ffffff;
}

.spotify-pill-btn:active {
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0 var(--ink);
}

/* Tabs: All Time vs This Week */
.music-filter-tabs {
  display: flex;
  gap: 8px;
  margin-top: 2px;
  margin-bottom: 2px;
}

.music-tab-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 12px;
  background: #f8fafc;
  border: var(--border-thick);
  border-radius: 10px;
  box-shadow: 2px 2px 0 var(--ink);
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--ink);
  cursor: pointer;
  transition: transform 0.1s ease, box-shadow 0.1s ease, background 0.12s ease;
  user-select: none;
}

.music-tab-btn svg {
  width: 15px !important;
  height: 15px !important;
  max-width: 15px !important;
  max-height: 15px !important;
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
}

.music-tab-btn:hover {
  background: #fef08a;
  transform: translate(-1.5px, -1.5px);
  box-shadow: var(--shadow-hover);
}

.music-tab-btn.active {
  background: var(--pop-yellow);
  box-shadow: 2.5px 2.5px 0 var(--ink);
  transform: translate(0, 0);
}

.music-tab-btn:active {
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0 var(--ink);
}

.music-tab-icon {
  display: inline-flex;
  align-items: center;
}

/* Hero Player Banner matching Image 2 */
.music-hero-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #242833;
  color: #ffffff;
  border: var(--border-thick);
  border-radius: 14px;
  padding: 12px 14px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 10px;
}

.album-collage-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  width: 78px;
  height: 78px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid #ffffff;
  flex-shrink: 0;
  background: #000000;
  box-shadow: 2px 2px 0 rgba(0,0,0,0.4);
}

.collage-tile-img {
  width: 39px;
  height: 39px;
  object-fit: cover;
  display: block;
}

.music-hero-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  min-width: 0;
}

.music-hero-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.music-period-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--pop-yellow);
  text-transform: uppercase;
}

.music-total-plays-badge {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.15);
  padding: 3px 8px;
  border-radius: 999px;
  color: #f1f5f9;
}

.music-hero-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.music-save-spotify-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration: none;
  background: transparent;
  cursor: pointer;
  transition: opacity 0.15s ease, transform 0.1s ease;
}

.music-save-spotify-btn:hover {
  opacity: 0.85;
  transform: translateX(2px);
  color: #1DB954;
}

.spotify-plus-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1.5px solid #ffffff;
  font-size: 0.85rem;
  font-weight: 900;
  line-height: 1;
}

/* Tracklist Rows matching Image 2 */
.music-tracklist {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 520px;
  overflow-y: auto;
  padding-right: 4px;
}

.music-track-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  background: #fffdfa;
  border: 1.8px solid var(--ink);
  border-radius: 10px;
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.1s ease, box-shadow 0.1s ease, background 0.12s ease;
  box-shadow: 1.5px 1.5px 0 var(--ink);
}

.music-track-row:hover {
  background: #fef08a;
  transform: translate(-1px, -1px);
  box-shadow: 2.5px 2.5px 0 var(--ink);
  color: var(--ink);
}

.track-rank-badge {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 900;
  width: 22px;
  text-align: center;
  color: var(--ink-muted);
  flex-shrink: 0;
}

.rank-top-1 {
  color: #b45309;
  font-weight: 900;
}

.rank-top-2 {
  color: #475569;
  font-weight: 900;
}

.rank-top-3 {
  color: #9a3412;
  font-weight: 900;
}

.track-thumb-img {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  object-fit: cover;
  border: var(--border-thin);
  flex-shrink: 0;
}

.track-info-col {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.track-title-line {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.track-title-text {
  font-family: var(--font-display);
  font-size: 0.84rem;
  font-weight: 800;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.track-explicit-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #475569;
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 0.55rem;
  font-weight: 800;
  width: 14px;
  height: 14px;
  border-radius: 2px;
  flex-shrink: 0;
  line-height: 1;
}

.track-artist-text {
  font-size: 0.74rem;
  color: var(--ink-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.track-meta-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.track-duration-text {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--ink-muted);
  font-weight: 700;
}

.track-spotify-icon {
  display: inline-flex;
  align-items: center;
  opacity: 0.75;
  transition: opacity 0.12s ease;
}

.music-track-row:hover .track-spotify-icon {
  opacity: 1;
}

/* Live VC Radar Styles */
.vc-radar-active {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.vc-radar-stats {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f0fdf4;
  border: var(--border-thin);
  border-radius: 10px;
  padding: 8px 12px;
}

.vc-pulse-dot {
  width: 10px;
  height: 10px;
  background: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  animation: vcPulse 1.8s infinite;
  flex-shrink: 0;
}

@keyframes vcPulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.vc-count-text {
  font-size: 0.88rem;
  color: var(--ink);
  flex: 1;
}

.vc-radar-stats #btn-refresh-vc {
  min-width: 52px;
  min-height: 46px;
  width: 52px;
  height: 46px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: var(--border-thick);
  background: #ffffff;
  color: var(--ink);
  box-shadow: 2.5px 2.5px 0 var(--ink);
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.12s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.12s ease, background 0.12s ease;
}

.vc-radar-stats #btn-refresh-vc .reload-svg {
  width: 26px;
  height: 26px;
  display: block;
  margin: auto;
  stroke: var(--ink);
  stroke-width: 3;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.vc-radar-stats #btn-refresh-vc:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-hover);
  background: var(--pop-yellow);
}

.vc-radar-stats #btn-refresh-vc:hover .reload-svg {
  transform: rotate(180deg);
}

.vc-radar-stats #btn-refresh-vc:active {
  transform: translate(1px, 1px);
  box-shadow: var(--shadow-press);
}

.vc-channels-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 220px;
  overflow-y: auto;
}

.vc-channel-card {
  background: var(--bg-surface-alt, #fbf7ee);
  border: var(--border-thick);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.vc-channel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.vc-channel-name {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--ink);
}

.vc-members-flow {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.vc-member-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  border: var(--border-thin);
  border-radius: 999px;
  padding: 3px 8px 3px 4px;
  font-size: 0.76rem;
  font-weight: 700;
  box-shadow: 1px 1px 0 var(--ink);
}

.vc-member-avatar {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--ink);
}

.vc-member-name {
  max-width: 90px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vc-status-icon-live {
  font-size: 0.72rem;
}

.vc-radar-footer {
  margin-top: 4px;
}

.vc-join-btn {
  width: 100%;
  text-align: center;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  height: 44px;
  min-height: 44px;
  max-height: 44px;
  padding: 0 16px;
  font-size: 0.9rem;
  font-weight: 800;
  box-sizing: border-box;
}

.vc-join-btn svg {
  width: 18px !important;
  height: 18px !important;
  max-width: 18px !important;
  max-height: 18px !important;
  flex-shrink: 0 !important;
  display: inline-block !important;
  vertical-align: middle !important;
}

/* Empty VC State */
.vc-radar-empty {
  text-align: center;
  padding: 16px 8px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.vc-empty-icon {
  font-size: 2.2rem;
  line-height: 1;
  background: var(--bg-surface-alt, #fbf7ee);
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: var(--border-thick);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.vc-empty-text b {
  display: block;
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--ink);
  margin-bottom: 4px;
}

.vc-empty-text p {
  font-size: 0.8rem;
  color: var(--ink-muted);
  line-height: 1.4;
  max-width: 360px;
  margin: 0 auto;
}

.vc-empty-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
  margin-top: 4px;
}

/* ==========================================================================
   UNO ARENA 3D: LANDING, LOBBY, GAME TABLE & RESULTS
   ========================================================================== */

/* UNO Landing Screen */
.uno-landing-wrap {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 32px;
  align-items: stretch;
}

.uno-hero-box {
  background: #ffffff;
  border: var(--border-thick);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-lg);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  min-height: 280px;
}

.uno-hero-content {
  position: relative;
  z-index: 2;
  max-width: 320px;
}

.uno-hero-box .art-cards-fan {
  position: absolute;
  right: 28px;
  bottom: 24px;
  width: 150px;
  height: 180px;
  z-index: 1;
  pointer-events: none;
}

.uno-hero-headline {
  font-size: 2.8rem;
  margin-bottom: 14px;
}

.uno-hero-sub {
  font-size: 1.05rem;
  color: var(--ink-muted);
  max-width: 320px;
  line-height: 1.45;
}

/* UNO Mode Choice Stack */
.uno-modes-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mode-choice-btn {
  background: #ffffff;
  border: var(--border-thick);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-md);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 18px;
  text-align: left;
  transition: all 0.15s ease;
}

.mode-choice-btn:hover {
  transform: translate(-3px, -3px);
  box-shadow: var(--shadow-lg);
  background: var(--bg-surface-alt);
}

.mode-choice-btn:active {
  transform: translate(2px, 2px);
  box-shadow: var(--shadow-sm);
}

.mode-choice-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  border: var(--border-thick);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  flex-shrink: 0;
}

.mode-icon-friends { background: var(--pop-pink); color: #fff; }
.mode-icon-bot { background: var(--pop-blue); color: #fff; }
.mode-icon-join { background: var(--pop-yellow); color: var(--ink); }

.mode-choice-text {
  flex: 1;
}

.mode-choice-text b {
  font-size: 1.05rem;
  display: block;
  margin-bottom: 2px;
}

.mode-choice-text p {
  font-size: 0.82rem;
  color: var(--ink-muted);
}

.mode-choice-arrow {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--ink);
}

/* UNO Lobby Screen */
.lobby-layout {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 28px;
}

.lobby-roster-box, .lobby-sidebar-box {
  background: #ffffff;
  border: var(--border-thick);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-lg);
  padding: 28px;
}

.room-code-display {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f1f5f9;
  border: var(--border-thick);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
  padding: 14px 20px;
  margin: 16px 0 24px 0;
}

.room-code-val {
  font-family: var(--font-mono);
  font-size: 1.8rem;
  font-weight: 900;
  letter-spacing: 0.2em;
  color: var(--ink);
}

.roster-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}

.roster-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-radius: 12px;
  border: var(--border-thin);
  box-shadow: var(--shadow-sm);
  background: #ffffff;
}

.roster-user-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.roster-avatar {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: var(--border-thick);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 900;
  font-size: 0.95rem;
}

.avatar-color-1 { background: var(--pop-yellow); color: var(--ink); }
.avatar-color-2 { background: var(--pop-pink); color: #fff; }
.avatar-color-3 { background: var(--pop-blue); color: #fff; }
.avatar-color-4 { background: var(--pop-emerald); color: #fff; }

.roster-user-meta b {
  font-size: 0.95rem;
  display: block;
}

.roster-user-meta small {
  font-size: 0.76rem;
  color: var(--ink-muted);
}

.roster-empty-slot {
  border: 2px dashed #cbd5e1;
  border-radius: 12px;
  padding: 14px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--ink-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* ==========================================================================
   3D TABLETOP & GAME SCREEN (SINGLE VIEWPORT ERGONOMICS)
   ========================================================================== */
.game-viewport {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.game-unified-header {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: #ffffff;
  border: var(--border-thick);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-sm);
  padding: 8px 12px;
  box-sizing: border-box !important;
  font-family: var(--font-ui);
  width: 100%;
}

.game-header-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  flex-wrap: nowrap;
}

.game-header-log-row {
  display: flex;
  align-items: center;
  width: 100%;
  height: 32px;
  min-height: 32px;
  max-height: 32px;
}

.game-header-log-row .hud-bubble-log-box {
  width: 100%;
  max-width: 100%;
  height: 100%;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  background: #f8fafc;
  border: var(--border-thin);
  border-radius: 8px;
  overflow: hidden;
}

.header-cluster-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0 !important;
}

.header-cluster-center {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1 1 auto !important;
  justify-content: flex-start !important;
  min-width: 0 !important;
  flex-wrap: nowrap !important;
  overflow: hidden !important;
}

.header-cluster-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0 !important;
}

.game-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  border: var(--border-thick);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  padding: 6px 14px;
}

.game-top-left, .game-top-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.room-badge-pill {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--bg-surface-alt);
  border: var(--border-thin);
}

/* ==========================================================================
   UNIFIED HUD STATUS BAR (GILIRAN, KARTU AKTIF, LOG DALAM SATU TEMPAT)
   ========================================================================== */
.uno-unified-hud {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  border: var(--border-thick);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  padding: 6px 14px;
  gap: 12px;
  flex-wrap: wrap;
  font-family: var(--font-ui);
}

.hud-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hud-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 800;
  color: var(--ink-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hud-value-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hud-turn-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: var(--bg-surface-alt);
  border: var(--border-thin);
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--ink);
  flex-shrink: 0 !important;
  white-space: nowrap !important;
  transition: all 0.2s ease;
}

.hud-turn-badge.my-turn {
  background: var(--pop-yellow);
  border: var(--border-thick);
  box-shadow: var(--shadow-sm);
  animation: pulseTurn 1.2s infinite alternate;
}

.hud-timer-badge {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 900;
  color: #b45309;
  background: #fef3c7;
  border: 1.5px solid #fde047;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
}

.hud-active-card-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: #ffffff;
  border: var(--border-thick);
  box-shadow: var(--shadow-sm);
  font-size: 0.85rem;
  font-weight: 800;
  flex-shrink: 0 !important;
  white-space: nowrap !important;
}

.hud-color-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--ink);
}

.hud-log-col {
  flex: 1;
  min-width: 220px;
}

.hud-bubble-log-box {
  background: #f8fafc;
  border: var(--border-thin);
  border-radius: 8px;
  padding: 4px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink);
  flex: 1 1 auto;
  min-width: 0;
  max-width: 380px;
  overflow: hidden;
}

.hud-bubble-icon {
  font-size: 1rem;
}

.hud-bubble-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 360px;
}

@keyframes pulseTurn {
  0% { transform: scale(0.98); }
  100% { transform: scale(1.02); }
}

@keyframes discardThrowSlam {
  0% {
    transform: translateY(120px) scale(0.65) rotate(-22deg);
    opacity: 0.3;
    filter: drop-shadow(0 15px 20px rgba(0,0,0,0.45));
  }
  60% {
    transform: translateY(-8px) scale(1.1) rotate(10deg);
    opacity: 1;
  }
  85% {
    transform: translateY(2px) scale(0.98) rotate(4deg);
  }
  100% {
    transform: translateY(0) scale(1) rotate(6deg);
    opacity: 1;
  }
}

.discard-pile-box .uno-card.slam {
  animation: discardThrowSlam 0.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* Table Felt: 3D Oval Stadium (Compact Ergonomic Viewport) */
.tabletop-felt {
  position: relative;
  width: 100%;
  min-height: 220px;
  height: clamp(220px, 32vh, 300px);
  max-height: 300px;
  background: radial-gradient(ellipse at 50% 50%, var(--table-felt-inner) 0%, var(--table-felt) 70%, #064e3b 100%);
  border: 3px solid var(--ink);
  border-radius: 90px;
  box-shadow:
    inset 0 4px 16px rgba(0, 0, 0, 0.4),
    var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.felt-line-inner {
  position: absolute;
  inset: 12px;
  border: 2px dashed rgba(255, 255, 255, 0.25);
  border-radius: 80px;
  pointer-events: none;
}

/* Player Seats positioned on Table as sleek horizontal pill */
.seat-chip {
  position: absolute;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border: var(--border-thick);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  padding: 3px 10px 3px 4px;
  z-index: 10;
  transition: all 0.2s ease;
  max-width: 145px;
  box-sizing: border-box;
}

.seat-chip.active-turn {
  background: var(--pop-yellow) !important;
  box-shadow: 0 0 0 3.5px var(--pop-pink), var(--shadow-md) !important;
  z-index: 25 !important;
}

.seat-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  font-size: 0.72rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--pop-yellow);
  border: 1.5px solid var(--ink);
  flex-shrink: 0;
}

.seat-info-col {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  text-align: left;
  min-width: 0;
}

.seat-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.74rem;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 65px;
}

.seat-card-count {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--ink-muted);
}

.seat-turn-timer {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 900;
  background: var(--pop-pink);
  color: #ffffff;
  padding: 2px 6px;
  border-radius: var(--radius-pill);
}

.seat-me {
  bottom: 12px;
  left: 16px;
}

/* Felt Table Info Bar */
.felt-surface-info {
  position: absolute;
  bottom: 12px;
  right: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  pointer-events: none;
  z-index: 5;
}

.felt-info-pill {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: rgba(20, 22, 28, 0.7);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.felt-info-pill.penalty-active {
  background: var(--pop-pink);
  border-color: #ffffff;
  animation: pulseCatch 0.8s infinite alternate;
}

.seat-avatar {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: var(--border-thick);
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 900;
  font-size: 0.78rem;
}

.seat-name {
  font-size: 0.74rem;
  font-weight: 800;
  max-width: 80px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.seat-card-count {
  font-size: 0.68rem;
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--ink-muted);
}

.seat-turn-timer {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 900;
  color: #b45309;
  background: #fef3c7;
  border: 1.5px solid #facc15;
  padding: 2px 6px;
  border-radius: var(--radius-pill);
}

.catch-uno-btn {
  background: var(--pop-pink);
  color: #ffffff;
  border: 2px solid var(--ink);
  box-shadow: var(--shadow-sm);
  border-radius: 8px;
  padding: 3px 8px;
  font-size: 0.7rem;
  font-weight: 900;
  animation: pulseCatch 1s infinite alternate;
  cursor: pointer;
}

@keyframes pulseCatch {
  0% { transform: scale(0.96); }
  100% { transform: scale(1.04); }
}

/* Center Piles: Draw Deck & Discard */
.center-piles-wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  z-index: 5;
}

.center-piles-wrap .uno-card {
  width: 72px;
  height: 104px;
  border-radius: 10px;
  padding: 4px;
  border-width: 3px;
}

.center-piles-wrap .uno-card-value {
  font-size: 1.7rem;
}

.center-piles-wrap .uno-card-corner-tl,
.center-piles-wrap .uno-card-corner-br {
  font-size: 0.72rem;
}

.draw-pile-box {
  position: relative;
  cursor: pointer;
  transition: transform 0.15s ease;
}
.draw-pile-box:hover {
  transform: translateY(-4px);
}

.deck-count-chip {
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: #ffffff;
  border: 2px solid #ffffff;
  box-shadow: var(--shadow-sm);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 800;
  white-space: nowrap;
}

.discard-pile-box {
  position: relative;
}

.discard-pile-box .uno-card {
  transform: rotate(6deg);
  box-shadow: 6px 8px 16px rgba(0, 0, 0, 0.45), var(--shadow-md);
}

.penalty-stack-badge {
  position: absolute;
  top: -14px;
  right: -14px;
  background: var(--pop-pink);
  color: #ffffff;
  border: var(--border-thick);
  box-shadow: var(--shadow-md);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 900;
  animation: pulseCatch 0.8s infinite alternate;
}

/* ==========================================================================
   POP-ART REALISTIC UNO CARDS
   ========================================================================== */
.uno-card {
  width: 88px;
  height: 130px;
  border-radius: 12px;
  padding: 6px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #ffffff;
  border: 3.5px solid #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35), var(--shadow-sm);
  transition: transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.18s ease;
  overflow: hidden;
  flex-shrink: 0;
  user-select: none;
}

.uno-card.card-red {
  background: radial-gradient(circle at 35% 35%, #f87171 0%, #ea3323 70%, #991b1b 100%);
}

.uno-card.card-blue {
  background: radial-gradient(circle at 35% 35%, #38bdf8 0%, #0063b3 70%, #075985 100%);
}

.uno-card.card-green {
  background: radial-gradient(circle at 35% 35%, #4ade80 0%, #16a34a 70%, #166534 100%);
}

.uno-card.card-yellow {
  background: radial-gradient(circle at 35% 35%, #fde047 0%, #eab308 70%, #ca8a04 100%);
  color: var(--ink);
}

.uno-card.card-black {
  background: radial-gradient(circle at 35% 35%, #334155 0%, #0f172a 70%, #020617 100%);
}

.uno-card.card-back {
  background: #14161c;
  border-color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.card-back-oval {
  width: 72%;
  height: 80%;
  border-radius: 50%;
  background: #ea3323;
  transform: rotate(26deg);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.card-back-emblem {
  transform: rotate(-26deg);
  font-family: var(--font-pop3d);
  font-size: 0.95rem;
  font-weight: 900;
  color: #facc15;
  letter-spacing: 0.02em;
  -webkit-text-stroke: 1px #14161c;
  text-shadow: 1.5px 1.5px 0 #14161c;
  white-space: nowrap;
}

.card-corner-top {
  position: absolute;
  top: 5px;
  left: 6px;
  z-index: 5;
  font-size: 0.88rem;
  font-weight: 900;
  line-height: 1;
  font-family: var(--font-display);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.45);
}

.card-corner-bottom {
  position: absolute;
  bottom: 5px;
  right: 6px;
  z-index: 5;
  font-size: 0.88rem;
  font-weight: 900;
  line-height: 1;
  transform: rotate(180deg);
  font-family: var(--font-display);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.45);
}

.card-center-oval {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(24deg);
  width: 60%;
  height: 72%;
  border-radius: 50%;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  z-index: 2;
}

.card-center-symbol {
  transform: rotate(-24deg);
  font-size: 1.5rem;
  font-weight: 900;
  line-height: 1;
  font-family: var(--font-display);
  color: var(--ink);
}

.wild-wheel-mini {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: conic-gradient(
    #ea3323 0deg 90deg,
    #0063b3 90deg 180deg,
    #fed500 180deg 270deg,
    #16a34a 270deg 360deg
  );
  border: 2px solid #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.wild-plus4-lbl {
  font-size: 0.82rem;
  font-weight: 900;
  color: #ffffff;
  text-shadow: 1px 1px 0 #000, -1px -1px 0 #000;
}

/* ==========================================================================
   HAND CARDS DOCK & ACTION CONTROLS (SINGLE SCREEN ERGONOMICS)
   ========================================================================== */
.hand-dock-wrapper {
  background: #ffffff;
  border: var(--border-thick);
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  padding: 8px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hand-dock-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: var(--border-thin);
  padding-bottom: 4px;
}

.hand-dock-header b {
  font-size: 0.88rem;
}

.hand-dock-header span {
  font-size: 0.75rem;
  color: var(--ink-muted);
}

.hand-scroll-track {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow-x: auto;
  overflow-y: visible;
  padding: 8px 10px 2px 10px;
  min-height: 108px;
  height: 114px;
  scroll-behavior: smooth;
  gap: 8px;
}

.hand-scroll-track .uno-card {
  width: 68px;
  height: 98px;
  border-radius: 9px;
  padding: 4px;
  border-width: 2.5px;
}

.hand-scroll-track .uno-card-value {
  font-size: 1.6rem;
}

.hand-scroll-track .uno-card-corner-tl,
.hand-scroll-track .uno-card-corner-br {
  font-size: 0.7rem;
}

.hand-card-btn {
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  transform: rotate(var(--angle, 0deg));
  transition: transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1);
  outline: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
}

.hand-card-btn .uno-card,
.hand-card-btn .uno-card * {
  pointer-events: none !important;
}

.hand-card-btn:hover:not(:disabled) .uno-card {
  transform: translateY(-16px) scale(1.04);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3), var(--shadow-md);
}

.hand-card-btn.selected .uno-card {
  transform: translateY(-26px) scale(1.08);
  box-shadow: 0 0 0 3px var(--pop-yellow), 0 10px 24px rgba(0, 0, 0, 0.4), var(--shadow-lg);
}

.btn-disabled-visual {
  opacity: 0.52 !important;
  cursor: pointer !important;
  filter: grayscale(0.2) !important;
}

.game-status-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 14px;
  border-radius: 8px;
  background: var(--bg-surface-alt);
  border: var(--border-thin);
  font-size: 0.82rem;
  font-weight: 700;
}

.action-note-badge {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--ink-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 400px;
}

/* Action Buttons Dock */
.action-buttons-dock {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.dock-left-actions, .dock-right-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.combo-indicator-badge {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 800;
  padding: 6px 12px;
  border-radius: 8px;
  background: #eff6ff;
  border: 1.5px solid var(--pop-blue);
  color: var(--pop-blue);
}

.uno-call-btn {
  background: #e2e8f0;
  color: #94a3b8;
  border: 2px solid #cbd5e1;
  box-shadow: none;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 10px 18px;
  border-radius: var(--radius-btn);
  cursor: not-allowed;
  transition: all 0.2s ease;
}
.uno-call-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}
.uno-call-btn.uno-declared {
  background: var(--pop-yellow) !important;
  color: var(--ink) !important;
  border: var(--border-thick) !important;
  opacity: 1 !important;
  box-shadow: var(--shadow-sm) !important;
  cursor: default !important;
}
.uno-call-btn.uno-urgent {
  background: #f43f5e !important;
  color: #ffffff !important;
  border: var(--border-thick) !important;
  box-shadow: var(--shadow-md) !important;
  cursor: pointer !important;
  opacity: 1 !important;
  animation: unoUrgentPulse 0.75s infinite alternate !important;
}
@keyframes unoUrgentPulse {
  from { transform: scale(1); box-shadow: 0 0 0 rgba(244, 63, 94, 0.4); }
  to { transform: scale(1.05); box-shadow: 0 0 14px rgba(244, 63, 94, 0.9); }
}

/* Flying Card Animation Effect */
.uno-flying-card {
  position: fixed;
  z-index: 9999;
  width: 70px;
  height: 100px;
  border-radius: 10px;
  border: 2.5px solid var(--ink);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  font-family: var(--font-display);
  font-weight: 900;
  will-change: transform, left, top;
}

.discard-pile-box.slam-bounce {
  animation: discardSlamBounce 0.4s cubic-bezier(0.18, 0.89, 0.32, 1.28);
}
@keyframes discardSlamBounce {
  0% { transform: scale(1); }
  40% { transform: scale(1.15) rotate(4deg); }
  70% { transform: scale(0.96) rotate(-2deg); }
  100% { transform: scale(1) rotate(0deg); }
}

.uno-catch-dock-btn {
  background: #ffffff;
  color: var(--ink);
  border: var(--border-thick);
  box-shadow: var(--shadow-sm);
  font-family: var(--font-ui);
  font-size: 0.92rem;
  font-weight: 800;
  padding: 10px 18px;
  border-radius: var(--radius-btn);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.15s ease;
}

.uno-catch-dock-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  box-shadow: none;
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.uno-catch-dock-btn.active {
  background: var(--pop-pink);
  color: #ffffff;
  border-color: var(--ink);
  box-shadow: var(--shadow-md);
  animation: pulseCatchDock 0.9s infinite alternate;
  cursor: pointer;
  opacity: 1 !important;
}

@keyframes pulseCatchDock {
  0% { transform: scale(0.97); box-shadow: 0 0 0 0 rgba(252, 48, 104, 0.7), var(--shadow-sm); }
  100% { transform: scale(1.03); box-shadow: 0 0 0 4px rgba(250, 204, 21, 0.8), var(--shadow-md); }
}

/* Wild Color Picker Grid */
.wild-color-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 16px;
}

.wild-choice-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 18px;
  border-radius: 12px;
  border: var(--border-thick);
  box-shadow: var(--shadow-md);
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 900;
  color: #ffffff;
  transition: all 0.15s ease;
}

.wild-choice-btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-lg);
}

.wild-red { background: #ea3323; }
.wild-blue { background: #0063b3; }
.wild-green { background: #16a34a; }
.wild-yellow { background: #eab308; color: var(--ink); }

/* UNO Victory / Result Screen */
.result-box {
  background: #ffffff;
  border: var(--border-thick);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-xl);
  padding: 40px 32px;
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
}

.result-star {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 76px;
  height: 76px;
  margin: 0 auto 16px auto;
  background: var(--pop-yellow);
  border: var(--border-thick);
  border-radius: 50%;
  box-shadow: 4px 4px 0px var(--ink);
}

.result-star svg {
  width: 44px;
  height: 44px;
}

.result-title {
  font-size: 2.4rem;
  margin-bottom: 8px;
}

.result-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  text-align: left;
}

.result-table th, .result-table td {
  padding: 12px;
  border-bottom: var(--border-thin);
}

.result-table th {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--ink-muted);
}

/* ==========================================================================
   ID STUDIO / PROFILE VIEW (POP-ART 3D ID CARD)
   ========================================================================== */
.profile-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 32px;
}

.id-card-3d-wrap {
  perspective: 1000px;
  margin-bottom: 20px;
}

.id-card-pop {
  width: 100%;
  max-width: 440px;
  height: 260px;
  background: linear-gradient(135deg, var(--pop-blue) 0%, #1b38b3 100%);
  border: 3.5px solid var(--ink);
  border-radius: 20px;
  box-shadow: var(--shadow-xl);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #ffffff;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease;
}

.id-card-pop:hover {
  transform: rotateY(6deg) rotateX(-4deg) translateY(-4px);
}

.id-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.id-card-body {
  margin-top: auto;
}

.id-card-name {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 900;
  line-height: 1.1;
  text-shadow: 2px 2px 0px rgba(0, 0, 0, 0.3);
}

.id-card-code {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  opacity: 0.9;
  margin-top: 6px;
}

.id-card-stamp {
  position: absolute;
  right: -20px;
  bottom: -20px;
  font-family: var(--font-display);
  font-size: 6rem;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

.stats-three-box {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.stat-item {
  background: #ffffff;
  border: var(--border-thick);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  padding: 14px;
  text-align: center;
}

.stat-item b {
  font-family: var(--font-mono);
  font-size: 1.4rem;
  display: block;
}

.stat-item span {
  font-size: 0.75rem;
  color: var(--ink-muted);
}

.persona-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}

.persona-btn {
  background: #ffffff;
  border: var(--border-thin);
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  padding: 8px 12px;
  font-size: 0.82rem;
  font-weight: 800;
  text-align: left;
}
.persona-btn:hover {
  background: var(--pop-yellow);
}

/* ==========================================================================
   WATCH PARTY, KOMUNITAS & MONITOR
   ========================================================================== */
.watch-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #ffffff;
  border: var(--border-thick);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-sm);
  padding: 10px 18px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.watch-host-info {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
}

.host-request-banner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #fef3c7;
  border: 2px dashed #f59e0b;
  border-radius: 10px;
  padding: 8px 14px;
  font-size: 0.85rem;
  font-weight: 800;
  color: #92400e;
  animation: pulseCatch 1.2s infinite alternate;
}

.watch-container-grid {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 24px;
  align-items: start;
}

.cinema-screen-box {
  background: #ffffff;
  border: var(--border-thick);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cinema-player-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0f172a;
  border-radius: 12px;
  border: var(--border-thick);
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

.cinema-player-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.cinema-meta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 12px;
  background: var(--bg-surface-alt);
  border: var(--border-thin);
  border-radius: 10px;
  flex-wrap: wrap;
}

.cinema-meta-title {
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
}

.watch-submit-box {
  background: #ffffff;
  border: var(--border-thick);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 18px;
}

.watch-queue-card {
  background: #ffffff;
  border: var(--border-thick);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.queue-items-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 280px;
  overflow-y: auto;
  padding-right: 4px;
}

.queue-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--bg-surface-alt);
  border: var(--border-thin);
  border-radius: 10px;
  padding: 8px 12px;
  transition: transform 0.12s ease;
}

.queue-item-row:hover {
  transform: translateX(2px);
  background: #fff;
}

.queue-item-row.pending-row {
  background: #fffbeb;
  border-color: #f59e0b;
}

.queue-item-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.queue-item-title {
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.queue-item-sub {
  font-size: 0.75rem;
  color: var(--ink-muted);
}

.queue-item-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

/* ==========================================================================
   WATCH PARTY LIVE CHAT CARD (SECURE IN-BOUND POSITIONING)
   ========================================================================== */
.watch-chat-card {
  background: #ffffff;
  border: var(--border-thick);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-md);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-sizing: border-box;
}

#cinema-chat-box {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 220px;
  min-height: 120px;
  overflow-y: auto;
  padding-right: 6px;
  box-sizing: border-box;
}

#cinema-chat-form {
  display: flex;
  gap: 8px;
  margin: 6px 0 0 0;
  padding: 0;
  width: 100%;
  box-sizing: border-box;
  align-items: center;
}

#cinema-chat-form .pop-input {
  margin: 0;
  flex: 1;
  min-width: 0;
  padding: 10px 14px;
  font-size: 0.88rem;
  box-sizing: border-box;
}

#cinema-chat-form .pop-btn {
  padding: 10px 18px;
  font-size: 0.9rem;
  flex-shrink: 0;
  box-sizing: border-box;
}

/* ==========================================================================
   PORTAL 2-COLUMN SECTION: INSTAGRAM & CEMANA STORE WEBSITE (EXISTING SITE)
   ========================================================================== */
.portal-two-col-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  width: 100%;
  margin-top: 24px;
}

@media (max-width: 820px) {
  .portal-two-col-grid {
    grid-template-columns: 1fr;
  }
}

.pop-card-col {
  background: #ffffff;
  border: var(--border-thick);
  border-radius: var(--radius-card);
  padding: 22px;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.pop-card-col:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-lg);
}

.col-badge {
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 8px;
  border: var(--border-thin);
}

.col-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin: 0;
}

.col-desc {
  font-size: 0.88rem;
  color: var(--ink-muted);
  line-height: 1.5;
  margin: 0;
  flex: 1;
}

.col-btn-group {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.portal-btn-grid, .store-btn-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
  box-sizing: border-box;
}

.portal-btn-grid .pop-btn,
.store-btn-grid .pop-btn,
.store-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  text-align: center;
  font-size: 0.88rem;
  min-height: 48px;
  height: 48px;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .portal-btn-grid, .store-btn-grid {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
    width: 100% !important;
  }
  .portal-btn-grid .pop-btn,
  .store-btn-grid .pop-btn,
  .store-action-btn {
    width: 100% !important;
    min-height: 48px !important;
    height: 48px !important;
    box-sizing: border-box !important;
    font-size: 0.85rem !important;
  }
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.category-item {
  background: #ffffff;
  border: var(--border-thick);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 220px;
}

/* ==========================================================================
   POP-ART CELESTIAL TAROT SANCTUARY (Theme-Aligned Neo-Brutalist Altar)
   ========================================================================== */
.tarot-sanctuary-wrapper {
  background: #1e1735;
  background-image: 
    radial-gradient(circle at 50% 15%, #2a204a 0%, #171129 65%, #100b1d 100%),
    radial-gradient(rgba(250, 204, 21, 0.15) 1.5px, transparent 1.5px);
  background-size: 100% 100%, 22px 22px;
  border: var(--border-thick);
  border-radius: 28px;
  box-shadow: var(--shadow-xl);
  color: var(--ink);
  padding: 40px 32px;
  position: relative;
  overflow: hidden;
  margin: 10px auto 40px auto;
  box-sizing: border-box;
  max-width: 100%;
  width: 100%;
}

@media (max-width: 768px) {
  .tarot-sanctuary-wrapper {
    padding: 24px 16px;
    border-radius: 20px;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
  }
}

/* Ambient Celestial Stardust */
.tarot-stars-ambient {
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(2px 2px at 30px 40px, #fef08a, transparent),
    radial-gradient(2px 2px at 140px 180px, #ffffff, transparent),
    radial-gradient(1.5px 1.5px at 280px 80px, #facc15, transparent),
    radial-gradient(2px 2px at 420px 290px, #38bdf8, transparent),
    radial-gradient(2.5px 2.5px at 580px 140px, #fbbf24, transparent),
    radial-gradient(1.5px 1.5px at 740px 320px, #ffffff, transparent),
    radial-gradient(2px 2px at 890px 190px, #fef08a, transparent);
  background-repeat: repeat;
  background-size: 960px 480px;
  opacity: 0.6;
  pointer-events: none;
  animation: tarotStarsPulse 5s ease-in-out infinite alternate;
}

@keyframes tarotStarsPulse {
  0% { opacity: 0.4; transform: scale(1); }
  100% { opacity: 0.85; transform: scale(1.02); }
}

/* Main Stage Box */
.tarot-stage-box {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.tarot-celestial-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #14161c;
  background: #facc15;
  border: 2px solid #14161c;
  box-shadow: 2px 2px 0 #14161c;
  padding: 6px 20px;
  border-radius: 999px;
  margin-bottom: 16px;
  text-transform: uppercase;
}

.tarot-altar-hero-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -0.02em;
  margin: 0 0 10px 0;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.6);
}

.tarot-altar-hero-subtitle {
  font-size: 1.02rem;
  color: #e2e8f0;
  max-width: 650px;
  margin: 0 auto;
  line-height: 1.6;
}

.tarot-section-label {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 900;
  color: #facc15;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: left;
  margin: 28px 0 12px 0;
  display: flex;
  align-items: center;
  gap: 8px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.4);
}

/* Topics Grid - Neo-Brutalist Pop-Art Style */
.tarot-topics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.tarot-topic-card {
  background: #ffffff;
  border: var(--border-thick);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-md);
  padding: 18px 20px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  align-items: center;
  gap: 16px;
  text-align: left;
  position: relative;
  user-select: none;
}

.tarot-topic-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-lg);
}

.tarot-topic-card.active {
  background: #fef9c3;
  border-color: #14161c;
  box-shadow: var(--shadow-lg);
  transform: translate(-3px, -3px);
}

.tarot-topic-icon-badge {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid #14161c;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 2px 2px 0 #14161c;
  transition: transform 0.2s ease;
}

.tarot-topic-card.active .tarot-topic-icon-badge {
  transform: scale(1.08) rotate(-4deg);
}

.tarot-topic-info {
  flex: 1;
}

.tarot-topic-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 900;
  color: #14161c;
  margin: 0 0 4px 0;
}

.tarot-topic-desc {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-muted);
  line-height: 1.4;
  margin: 0;
}

.tarot-topic-radio {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #14161c;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.tarot-topic-card.active .tarot-topic-radio {
  background: #facc15;
  box-shadow: inset 0 0 0 3px #14161c;
}

/* Spreads Grid - Neo-Brutalist Pop-Art Style */
.tarot-spreads-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 16px;
}

.tarot-spread-card {
  background: #ffffff;
  border: var(--border-thick);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-md);
  padding: 18px 20px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  text-align: left;
  user-select: none;
}

.tarot-spread-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-lg);
}

.tarot-spread-card.active {
  background: #ede9fe;
  border-color: #14161c;
  box-shadow: var(--shadow-lg);
  transform: translate(-3px, -3px);
}

.tarot-spread-badge {
  font-family: var(--font-display);
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #14161c;
  background: #facc15;
  border: 1.5px solid #14161c;
  padding: 3px 10px;
  border-radius: 6px;
  box-shadow: 1.5px 1.5px 0 #14161c;
}

.tarot-spread-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 900;
  color: #14161c;
  margin: 10px 0 4px 0;
}

.tarot-spread-desc {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--ink-muted);
  margin: 0;
  line-height: 1.45;
}

/* Question Input Card */
.tarot-question-card {
  background: #ffffff;
  border: var(--border-thick);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-md);
  padding: 18px 20px;
  text-align: left;
}

.tarot-question-input {
  width: 100%;
  box-sizing: border-box;
  background: var(--bg-surface-alt);
  border: 2px solid #14161c;
  border-radius: 12px;
  padding: 14px 18px;
  color: #14161c;
  font-size: 0.95rem;
  font-weight: 700;
  font-family: var(--font-ui);
  outline: none;
  box-shadow: 2px 2px 0 #14161c;
  transition: all 0.2s ease;
}

.tarot-question-input:focus {
  background: #ffffff;
  border-color: #14161c;
  box-shadow: 4px 4px 0 #14161c;
}

/* Buttons */
.tarot-btn-gold {
  background: linear-gradient(135deg, #facc15 0%, #fbbf24 60%, #f59e0b 100%);
  color: #14161c;
  border: var(--border-thick);
  border-radius: 16px;
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 900;
  padding: 15px 34px;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  transition: all 0.18s ease;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  user-select: none;
}

.tarot-btn-gold:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-lg);
  filter: brightness(1.04);
}

.tarot-btn-gold:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 #14161c;
}

.tarot-btn-large {
  font-size: 1.18rem;
  padding: 16px 42px;
}

.tarot-btn-back {
  background: #ffffff;
  color: #14161c;
  border: 2px solid #14161c;
  box-shadow: 2px 2px 0 #14161c;
  border-radius: 10px;
  padding: 8px 18px;
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tarot-btn-back:hover {
  transform: translate(-1.5px, -1.5px);
  box-shadow: 4px 4px 0 #14161c;
  background: #fef9c3;
}

/* Shuffling Phase & Swinging Pendulum */
.tarot-pendulum-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 6px auto 20px auto;
}

.tarot-pendulum-svg {
  transform-origin: 20px 4px;
  animation: pendulumSwing 2.6s ease-in-out infinite alternate;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.4));
}

@keyframes pendulumSwing {
  0% { transform: rotate(-24deg); }
  100% { transform: rotate(24deg); }
}

.tarot-deck-stack {
  position: relative;
  width: 150px;
  height: 230px;
  margin: 22px auto;
  perspective: 900px;
}

.tarot-card-layer {
  position: absolute;
  inset: 0;
  background: #1b1429;
  border: 2.5px solid #14161c;
  border-radius: 14px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.tarot-card-layer.l1 { animation: shuffleLayer1 2.2s ease-in-out infinite; }
.tarot-card-layer.l2 { animation: shuffleLayer2 2.2s ease-in-out infinite 0.2s; }
.tarot-card-layer.l3 { animation: shuffleLayer3 2.2s ease-in-out infinite 0.4s; }
.tarot-card-layer.l4 { animation: shuffleLayer4 2.2s ease-in-out infinite 0.6s; }

@keyframes shuffleLayer1 {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(-42px, -12px) rotate(-9deg); z-index: 10; }
  50% { transform: translate(0, 0) rotate(0deg); z-index: 1; }
}

@keyframes shuffleLayer2 {
  0%, 100% { transform: translate(2px, 2px) rotate(1deg); }
  35% { transform: translate(44px, -10px) rotate(10deg); z-index: 10; }
  60% { transform: translate(2px, 2px) rotate(1deg); z-index: 2; }
}

@keyframes shuffleLayer3 {
  0%, 100% { transform: translate(-2px, 3px) rotate(-1deg); }
  45% { transform: translate(-28px, 14px) rotate(-7deg); z-index: 10; }
  70% { transform: translate(-2px, 3px) rotate(-1deg); z-index: 3; }
}

@keyframes shuffleLayer4 {
  0%, 100% { transform: translate(3px, -2px) rotate(2deg); }
  55% { transform: translate(34px, 12px) rotate(8deg); z-index: 10; }
  80% { transform: translate(3px, -2px) rotate(2deg); z-index: 4; }
}

.tarot-deck-top-art {
  position: absolute;
  inset: 0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.6);
  z-index: 15;
}

.tarot-breath-indicator {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 24px;
  background: rgba(20, 22, 28, 0.75);
  border-radius: 999px;
  border: 1.5px solid rgba(250, 204, 21, 0.4);
  box-shadow: 2px 2px 0 #14161c;
  margin-top: 14px;
}

.tarot-pulse-ring {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #facc15;
  box-shadow: 0 0 12px #facc15;
  animation: pulseRing 2.2s ease-in-out infinite;
}

@keyframes pulseRing {
  0%, 100% { transform: scale(0.8); opacity: 0.6; }
  50% { transform: scale(1.5); opacity: 1; }
}

.tarot-breath-text {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: #fef08a;
  letter-spacing: 0.02em;
}

/* Card Fan & Slots Phase */
.tarot-stage-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 14px;
}

.tarot-picker-status {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
  color: #14161c;
  background: #ffffff;
  padding: 8px 22px;
  border-radius: 999px;
  border: 2px solid #14161c;
  box-shadow: 3px 3px 0 #14161c;
}

.tarot-altar-cloth {
  background: #251c3d;
  border: 2px dashed rgba(250, 204, 21, 0.45);
  border-radius: 20px;
  padding: 24px 20px;
  margin: 18px 0;
  position: relative;
  box-shadow: inset 0 0 28px rgba(0, 0, 0, 0.45);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.tarot-fan-stage,
.tarot-fan-area {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.tarot-slots-altar {
  display: flex;
  justify-content: center;
  gap: 22px;
  margin: 10px 0 24px 0;
  flex-wrap: wrap;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.tarot-altar-slot {
  width: 145px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.tarot-slot-pos-badge {
  font-family: var(--font-display);
  font-size: 0.76rem;
  font-weight: 800;
  color: #14161c;
  background: #facc15;
  border: 1.5px solid #14161c;
  box-shadow: 1.5px 1.5px 0 #14161c;
  padding: 3px 10px;
  border-radius: 6px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tarot-slot-card-holder {
  width: 116px;
  height: 176px;
  border: 2.5px dashed rgba(250, 204, 21, 0.45);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(20, 22, 28, 0.45);
  transition: all 0.3s ease;
  position: relative;
}

.tarot-altar-slot.filled .tarot-slot-card-holder {
  border: 2.5px solid #14161c;
  box-shadow: 4px 4px 0 #14161c, 0 0 18px rgba(250, 204, 21, 0.3);
  background: transparent;
}

.tarot-slot-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: #cbd5e1;
}

.tarot-slot-placeholder .slot-num {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 900;
  color: #facc15;
  text-shadow: 1px 1px 0 #14161c;
}

.tarot-slot-placeholder .slot-hint {
  font-size: 0.72rem;
  font-weight: 700;
  color: #cbd5e1;
}

.tarot-slot-desc {
  font-size: 0.76rem;
  color: #e2e8f0;
  line-height: 1.35;
  text-align: center;
}

.tarot-slotted-card {
  width: 100%;
  height: 100%;
  border-radius: 12px;
  overflow: hidden;
  animation: popInCard 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popInCard {
  from { transform: scale(0.5) translateY(30px); opacity: 0; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}

/* Fan Area */
.tarot-fan-area {
  margin-top: 18px;
  border-top: 1.5px dashed rgba(250, 204, 21, 0.3);
  padding-top: 20px;
}

.tarot-fan-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  color: #fef08a;
  margin-bottom: 16px;
}

.tarot-fan-container {
  display: flex;
  justify-content: flex-start;
  align-items: flex-end;
  height: 175px;
  padding: 24px 20px 14px 20px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
  scrollbar-width: thin;
  scrollbar-color: rgba(250, 204, 21, 0.4) transparent;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.tarot-fan-container:active {
  cursor: grabbing;
}

.tarot-fan-container::-webkit-scrollbar {
  height: 5px;
}

.tarot-fan-container::-webkit-scrollbar-thumb {
  background: rgba(250, 204, 21, 0.4);
  border-radius: 999px;
}

@media (max-width: 640px) {
  .tarot-stage-topbar {
    gap: 8px !important;
    margin-bottom: 14px !important;
    flex-direction: column !important;
    align-items: center !important;
  }

  .tarot-btn-back {
    padding: 6px 14px !important;
    font-size: 0.8rem !important;
  }

  .tarot-picker-status {
    padding: 6px 14px !important;
    font-size: 0.78rem !important;
    width: 100% !important;
    box-sizing: border-box !important;
    text-align: center !important;
  }

  .tarot-sanctuary-wrapper {
    padding: 16px 8px !important;
    border-radius: 16px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .tarot-altar-cloth {
    padding: 12px 6px !important;
    border-radius: 12px !important;
    margin: 10px 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .tarot-slots-altar {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: stretch !important;
    gap: 4px !important;
    flex-wrap: nowrap !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    margin: 8px 0 16px 0 !important;
  }

  .tarot-altar-slot {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    width: auto !important;
    max-width: 110px !important;
    gap: 3px !important;
    box-sizing: border-box !important;
  }

  .tarot-slot-pos-badge {
    font-size: 0.58rem !important;
    padding: 2px 3px !important;
    letter-spacing: 0 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-width: 100% !important;
  }

  .tarot-slot-card-holder {
    width: 100% !important;
    max-width: 90px !important;
    height: 130px !important;
    border-radius: 8px !important;
    margin: 0 auto;
  }

  .tarot-slot-placeholder .slot-num {
    font-size: 1.2rem !important;
  }

  .tarot-slot-placeholder .slot-hint {
    font-size: 0.55rem !important;
    text-align: center !important;
    line-height: 1.1 !important;
    padding: 0 1px !important;
  }

  .tarot-slot-desc {
    font-size: 0.58rem !important;
    line-height: 1.2 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
  }

  .tarot-fan-area {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .tarot-fan-title {
    font-size: 0.82rem !important;
    margin-bottom: 8px !important;
  }

  .tarot-fan-container {
    height: 155px !important;
    padding: 16px 12px 10px 12px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .tarot-fanned-card {
    width: 52px !important;
    height: 84px !important;
    margin-left: -22px !important;
  }

  .tarot-revealed-cards-grid {
    gap: 14px !important;
    margin: 20px 0 !important;
  }

  .tarot-card-reveal-box {
    width: 140px !important;
  }

  .tarot-card-3d-scene {
    width: 140px !important;
    height: 222px !important;
  }
}

.tarot-fanned-card {
  position: relative;
  width: 66px;
  height: 104px;
  flex: 0 0 auto;
  margin-left: -28px;
  transform-origin: bottom center;
  transform: rotate(var(--card-angle, 0deg));
  transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
}

.tarot-fanned-card:first-child {
  margin-left: 0;
}

.tarot-fanned-card:hover {
  transform: translateY(-28px) scale(1.25) rotate(0deg) !important;
  z-index: 50;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.8), 0 0 16px rgba(250, 204, 21, 0.7);
}

.tarot-fanned-card.selected {
  opacity: 0.12;
  pointer-events: none;
  transform: translateY(-50px) scale(0.6) !important;
}

.fanned-card-inner {
  width: 100%;
  height: 100%;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
}

/* Reveal Phase & 3D Cards */
.tarot-revealed-cards-grid {
  display: flex;
  justify-content: center;
  gap: 26px;
  margin: 30px 0;
  flex-wrap: wrap;
}

.tarot-card-reveal-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 180px;
}

.tarot-slot-title-tag {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 800;
  color: #14161c;
  background: #facc15;
  border: 1.5px solid #14161c;
  box-shadow: 2px 2px 0 #14161c;
  padding: 4px 14px;
  border-radius: 6px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.tarot-card-3d-scene {
  width: 180px;
  height: 285px;
  perspective: 1200px;
}

.tarot-card-3d-body {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.85s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
}

.tarot-card-3d-body.is-flipped {
  transform: rotateY(180deg);
}

.tarot-face-side {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  border-radius: 16px;
  overflow: hidden;
  box-sizing: border-box;
}

.tarot-face-back {
  background: #1b1429;
  border: 3px solid #14161c;
  box-shadow: 6px 6px 0 #14161c;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.tarot-card-back-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(20, 22, 28, 0.45);
  gap: 8px;
  pointer-events: none;
}

.tarot-back-roman {
  font-family: var(--font-mono);
  font-size: 1.6rem;
  font-weight: 900;
  color: #facc15;
  text-shadow: 2px 2px 0 #14161c;
}

.tarot-back-tap-hint {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #ffffff;
  background: rgba(20, 22, 28, 0.85);
  border: 1px solid rgba(250, 204, 21, 0.4);
  padding: 3px 10px;
  border-radius: 999px;
}

.tarot-face-front {
  background: #fffef9;
  transform: rotateY(180deg);
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 3px solid #14161c;
  box-shadow: 6px 6px 0 #14161c;
  color: #14161c;
}

.tarot-front-top-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 4px;
}

.tarot-roman-tag {
  font-family: var(--font-mono);
  font-size: 0.92rem;
  font-weight: 900;
  color: #14161c;
}

.tarot-element-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  background: var(--bg-surface-alt);
  border: 1px solid #14161c;
  padding: 2px 6px;
  border-radius: 4px;
}

.tarot-art-container {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 125px;
  transition: transform 0.4s ease;
}

.card-reversed-visual .tarot-art-container {
  transform: rotate(180deg);
}

.tarot-art-svg {
  width: 105px;
  height: 105px;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.25));
}

.tarot-card-title-en {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 900;
  color: #14161c;
  margin: 0;
  text-align: center;
}

.tarot-card-title-id {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--ink-muted);
  text-align: center;
  margin-top: 2px;
}

/* Card Orientation Arcana Seal (Warm Solar Gold vs Mystic Amethyst) */
.tarot-orientation-seal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  text-align: center;
  margin-top: 6px;
  border: 1.5px solid #14161c;
  box-shadow: 1.5px 1.5px 0 #14161c;
  user-select: none;
}

.tarot-orientation-seal.seal-upright {
  background: #fef08a; /* Warm Solar Gold / Champagne */
  color: #14161c;
}

.tarot-orientation-seal.seal-reversed {
  background: #ede9fe; /* Mystic Twilight Lavender / Amethyst */
  color: #3b0764;
}

/* Mini Orientation Seal for Breakdown Report */
.tarot-mini-seal {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-display);
  font-size: 0.64rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1.2px solid #14161c;
  box-shadow: 1px 1px 0 #14161c;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.tarot-mini-seal.seal-upright {
  background: #fef08a;
  color: #14161c;
}

.tarot-mini-seal.seal-reversed {
  background: #ede9fe;
  color: #3b0764;
}

/* Neatly Arranged Keyword Chips (No Hashtags, Individual Badges) */
.tarot-card-keywords-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 5px;
  margin-top: 10px;
  max-width: 200px;
  margin-left: auto;
  margin-right: auto;
}

.tarot-kw-chip {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-body, -apple-system, BlinkMacSystemFont, sans-serif);
  font-size: 0.68rem;
  font-weight: 700;
  color: #14161c;
  background: #fffdf8;
  border: 1.5px solid #14161c;
  box-shadow: 1.5px 1.5px 0 #14161c;
  border-radius: 999px;
  padding: 3px 8px;
  white-space: nowrap;
  line-height: 1.2;
  transition: transform 0.15s ease;
}

.tarot-kw-chip:hover {
  transform: translateY(-1px);
}

/* Master Synthesis Report - Pop-Art Parchment Style */
.tarot-master-report {
  background: #fffdf8;
  border: var(--border-thick);
  border-radius: 24px;
  box-shadow: var(--shadow-xl);
  padding: 34px 30px;
  margin-top: 36px;
  text-align: left;
  animation: fadeInReport 0.6s ease;
  color: #14161c;
}

@keyframes fadeInReport {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.tarot-report-card {
  background: #ffffff;
  border: 2px solid #14161c;
  border-radius: 18px;
  box-shadow: 4px 4px 0 #14161c;
  padding: 24px 26px;
  margin-bottom: 22px;
}

.tarot-report-card.harmony-card {
  background: #fffbeb;
}

.tarot-report-card.synthesis-card {
  background: #f5f3ff;
}

.tarot-report-card.affirmation-card {
  background: #fef9c3;
  text-align: center;
}

.report-card-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--ink-muted);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.report-card-heading {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 900;
  color: #14161c;
  margin: 0 0 12px 0;
}

.report-card-body {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.65;
  margin: 0;
}

.tarot-breakdown-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.tarot-breakdown-item {
  background: #fff9f0;
  border: 2px solid #14161c;
  border-radius: 14px;
  box-shadow: 3px 3px 0 #14161c;
  padding: 18px 20px;
}

.breakdown-item-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.breakdown-pos-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 800;
  background: #facc15;
  color: #14161c;
  border: 1.5px solid #14161c;
  padding: 2px 8px;
  border-radius: 6px;
  text-transform: uppercase;
  box-shadow: 1.5px 1.5px 0 #14161c;
}

.breakdown-card-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 900;
  color: #14161c;
}

.breakdown-desc {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.6;
}

.report-narrative-text {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.75;
}

.report-narrative-text p {
  margin-bottom: 12px;
}

.affirmation-quote {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 900;
  color: #14161c;
  line-height: 1.55;
  font-style: italic;
  padding: 10px 0;
}

.tarot-report-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.tarot-user-query-pill {
  display: inline-block;
  background: #ffffff;
  border: 2px solid #14161c;
  box-shadow: 2px 2px 0 #14161c;
  padding: 6px 18px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 700;
  color: #14161c;
  margin-top: 8px;
}

/* ==========================================================================
   PANEL MONITOR TELEMETRY & TERMINAL STYLES
   ========================================================================== */
.monitor-container {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.monitor-section-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
  margin-bottom: 12px;
}

.monitor-section-title span:first-child {
  display: flex;
  align-items: center;
  gap: 8px;
}

.monitor-section-sub {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--ink-muted);
}

.grid-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.metric-card {
  background: #ffffff;
  border: var(--border-thick);
  border-radius: 16px;
  padding: 18px 20px;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.metric-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-lg);
}

.metric-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.74rem;
  font-weight: 800;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.metric-value {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--ink);
  line-height: 1.1;
}

.progress-bar-bg {
  height: 10px;
  background: #e2e8f0;
  border: 1.5px solid var(--ink);
  border-radius: 50px;
  overflow: hidden;
  margin: 2px 0;
}

.progress-bar-fill {
  height: 100%;
  border-radius: 50px;
  transition: width 0.4s ease;
}

.metric-sub {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--ink-muted);
}

/* PM2 Fleet Grid */
.grid-fleet {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.fleet-card {
  background: #ffffff;
  border: var(--border-thick);
  border-radius: 16px;
  padding: 16px 18px;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.fleet-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-lg);
}

.fleet-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.fleet-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--ink);
}

.fleet-status-pill {
  font-size: 0.7rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 50px;
  border: 1.5px solid var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.status-online { background: #dcfce7; color: #166534; }
.status-offline { background: #fee2e2; color: #991b1b; }

.fleet-stat-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.76rem;
  color: var(--ink-muted);
  border-top: 1px dashed #e2e8f0;
  padding-top: 6px;
}

.fleet-stat-row b {
  color: var(--ink);
  font-family: var(--font-mono);
}

/* Quick Actions Control Panel */
.grid-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.action-card {
  background: #ffffff;
  border: var(--border-thick);
  border-radius: 16px;
  padding: 18px;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
}

.action-header {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.action-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: var(--border-thick);
  box-shadow: 2px 2px 0 var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.action-info {
  flex: 1;
}

.action-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.92rem;
  color: var(--ink);
}

.action-desc {
  font-size: 0.78rem;
  color: var(--ink-muted);
  line-height: 1.35;
  margin-top: 3px;
}

.action-btn-exec {
  width: 100%;
  padding: 10px 14px;
  border-radius: 10px;
  border: var(--border-thick);
  font-weight: 800;
  font-size: 0.82rem;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all 0.12s ease;
  user-select: none;
}

.action-btn-exec:hover {
  transform: translate(-1.5px, -1.5px);
  box-shadow: var(--shadow-md);
}

.action-btn-exec:active {
  transform: translate(1.5px, 1.5px);
  box-shadow: 1px 1px 0 var(--ink);
}

.action-btn-warn { background: #fef08a; color: #854d0e; }
.action-btn-danger { background: #fecaca; color: #991b1b; }
.action-btn-success { background: #bbf7d0; color: #166534; }
.action-btn-primary { background: #bfdbfe; color: #1e40af; }

/* Live Terminal Logs Window */
.log-panel {
  background: #0d1117;
  border: 3px solid #14161c;
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.log-window-bar {
  background: #161b22;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid #21262d;
  user-select: none;
}

.win-dots {
  display: flex;
  gap: 7px;
  align-items: center;
}

.win-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
  box-shadow: inset 0 1px 1px rgba(0,0,0,0.3);
}

.dot-close { background: #ff5f56; border: 1px solid #e0443e; }
.dot-min { background: #ffbd2e; border: 1px solid #dea123; }
.dot-max { background: #27c93f; border: 1px solid #1aab29; }

.window-title {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: #8b949e;
  letter-spacing: 0.03em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.window-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 800;
  color: #3fb950;
}

.win-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3fb950;
  animation: vcPulse 1.8s infinite;
}

.log-header {
  background: #121720;
  padding: 12px 16px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  border-bottom: 2px solid #21262d;
}

.log-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.log-tab {
  background: #1c222d;
  color: #c9d1d9;
  border: 1.5px solid #30363d;
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font-ui);
  transition: all 0.12s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.log-tab:hover {
  background: #283040;
  color: #ffffff;
  transform: translateY(-1px);
}

.log-tab.active {
  background: var(--pop-yellow);
  color: #0f172a;
  border-color: var(--pop-yellow);
  font-weight: 800;
  box-shadow: 2px 2px 0px #000000;
}

.log-tab.success-tab.active {
  background: #34d399;
  color: #064e3b;
  border-color: #34d399;
}

.log-tab.error-tab.active {
  background: #f87171;
  color: #450a0a;
  border-color: #f87171;
}

.log-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.search-input {
  background: #090d16;
  border: 1.5px solid #30363d;
  color: #f0f6fc;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.78rem;
  font-family: var(--font-mono);
  outline: none;
  width: 160px;
  transition: all 0.15s ease;
}

.search-input:focus {
  border-color: #58a6ff;
  width: 200px;
  box-shadow: 0 0 0 2px rgba(88, 166, 255, 0.2);
}

.terminal-body {
  background: #090d16 !important;
  height: 380px;
  overflow-y: auto;
  padding: 14px 18px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 1.6;
  color: #e6edf3;
  scrollbar-width: thin;
  scrollbar-color: #30363d #090d16;
}

.terminal-body::-webkit-scrollbar {
  width: 8px;
}
.terminal-body::-webkit-scrollbar-track {
  background: #090d16;
}
.terminal-body::-webkit-scrollbar-thumb {
  background: #30363d;
  border-radius: 4px;
}

.log-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 4px 6px;
  border-radius: 5px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  word-break: break-all;
  transition: background 0.1s ease;
}

.log-row:hover {
  background: rgba(255, 255, 255, 0.05);
}

.log-time {
  color: #6e7681;
  font-size: 0.74rem;
  font-family: var(--font-mono);
  flex-shrink: 0;
  white-space: nowrap;
}

.log-tag {
  font-size: 0.68rem;
  font-weight: 800;
  padding: 1px 7px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  flex-shrink: 0;
  border: 1px solid transparent;
  white-space: nowrap;
}

.tag-core {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border-color: rgba(56, 189, 248, 0.3);
}

.tag-music {
  background: rgba(192, 132, 252, 0.15);
  color: #c084fc;
  border-color: rgba(192, 132, 252, 0.3);
}

.tag-wa {
  background: rgba(74, 222, 128, 0.15);
  color: #4ade80;
  border-color: rgba(74, 222, 128, 0.3);
}

.tag-info {
  background: rgba(56, 189, 248, 0.1);
  color: #38bdf8;
}

.tag-error {
  background: rgba(248, 113, 113, 0.15);
  color: #f87171;
  border-color: rgba(248, 113, 113, 0.3);
}

.log-msg {
  color: #e6edf3;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  word-break: break-word;
  flex: 1;
  line-height: 1.5;
}

.log-terminal-footer {
  background: #161b22;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #21262d;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: #6e7681;
}

.term-status-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.term-led {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #3fb950;
}

/* ==========================================================================
   INTERACTIVE TOAST & MODAL DIALOG
   ========================================================================== */
#toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--ink);
  color: #ffffff;
  border: var(--border-thick);
  box-shadow: var(--shadow-lg);
  padding: 12px 20px;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 700;
  z-index: 9999;
  transform: translateY(100px);
  opacity: 0;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.2s ease;
  pointer-events: none;
}

#toast.show {
  transform: translateY(0);
  opacity: 1;
}

dialog#modal {
  border: var(--border-thick);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-xl);
  padding: 0;
  background: #ffffff;
  max-width: 540px;
  width: 90vw;
  margin: auto;
  z-index: 9990;
}

dialog#modal::backdrop {
  background: rgba(20, 22, 28, 0.6);
  backdrop-filter: blur(4px);
}

.dialog-head {
  padding: 18px 24px;
  border-bottom: var(--border-thick);
  background: var(--bg-surface-alt);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dialog-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 900;
}

.dialog-close-btn {
  background: transparent;
  border: none;
  font-size: 1.5rem;
  font-weight: 900;
  cursor: pointer;
  line-height: 1;
}

.dialog-content {
  padding: 24px;
}

.pop-input {
  width: 100%;
  padding: 12px 16px;
  border: var(--border-thick);
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
  background: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  outline: none;
  margin: 8px 0 16px 0;
}
.pop-input:focus {
  border-color: var(--pop-blue);
  box-shadow: var(--shadow-md);
}

.field-label {
  font-size: 0.85rem;
  font-weight: 800;
}

.field-note {
  font-size: 0.78rem;
  color: var(--ink-muted);
}

.rules-list {
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 14px;
  font-size: 0.9rem;
}

/* ==========================================================================
   MOBILE NAVIGATION DOCK
   ========================================================================== */
.mobile-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--mobile-nav-h);
  background: #ffffff;
  border-top: var(--border-thick);
  box-shadow: 0 -4px 16px rgba(20, 22, 28, 0.1);
  z-index: 50;
  padding: 0 8px;
  align-items: center;
  justify-content: flex-start;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  gap: 4px;
}

.mobile-nav::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.mobile-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 6px 12px;
  border-radius: 12px;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--ink-muted);
  flex: 0 0 auto;
  white-space: nowrap;
  min-width: 58px;
}

.mobile-nav-btn.active {
  background: var(--pop-yellow);
  color: var(--ink);
  border: 2px solid var(--ink);
  box-shadow: 2px 2px 0 var(--ink);
}

.mobile-nav-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
}

.mobile-nav-icon .pop-nav-svg {
  width: 20px;
  height: 20px;
  display: block;
}

/* Accessibility Focus-Visible & Reduced Motion */
:focus-visible {
  outline: 3px solid var(--pop-blue);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

@media (max-width: 900px) {
  :root {
    --mobile-nav-h: 64px;
    --topbar-h: 56px;
  }

  html, body, .app-layout, .shell, main#main, #app, .home-section {
    max-width: 100% !important;
    width: 100% !important;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
  }

  .sidebar {
    display: none;
  }

  .mobile-brand {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
  }

  .mobile-logo-circle {
    width: 28px !important;
    height: 28px !important;
    flex-shrink: 0 !important;
  }

  .mobile-brand-title {
    font-size: 0.92rem !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    color: var(--ink) !important;
  }

  .topbar-left {
    gap: 6px !important;
    min-width: 0 !important;
    flex: 1 1 auto !important;
  }

  .topbar-right {
    gap: 6px !important;
    flex-shrink: 0 !important;
  }

  .nav-btn-monitor {
    padding: 5px 8px !important;
    font-size: 0.72rem !important;
    white-space: nowrap !important;
  }

  #header-btn-login {
    padding: 5px 10px !important;
    font-size: 0.74rem !important;
    white-space: nowrap !important;
  }

  #header-btn-login svg {
    width: 14px !important;
    height: 14px !important;
  }

  .header-profile-btn-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid var(--ink);
  box-shadow: 2px 2px 0 var(--ink);
  padding: 0;
  margin: 0;
  overflow: hidden;
  background: var(--pop-yellow);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  flex-shrink: 0;
}
.header-profile-btn-circle:hover {
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0 var(--ink);
}
.header-profile-btn-circle:active {
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0 var(--ink);
}
.header-avatar-img-circle {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 50%;
}

.header-profile-pill {
    padding: 3px 8px 3px 4px !important;
    font-size: 0.74rem !important;
  }

  .header-avatar-wrap {
    width: 24px !important;
    height: 24px !important;
  }

  .mobile-nav {
    display: flex;
    height: calc(var(--mobile-nav-h) + env(safe-area-inset-bottom, 0px));
    padding-bottom: env(safe-area-inset-bottom, 0px);
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    justify-content: flex-start !important;
    gap: 6px !important;
    padding-left: 10px !important;
    padding-right: 16px !important;
  }

  .topbar {
    padding: 0 10px !important;
    height: 52px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  main#main {
    padding: 14px 12px calc(var(--mobile-nav-h) + env(safe-area-inset-bottom, 0px) + 20px) 12px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-title {
    font-size: clamp(1.5rem, 5.8vw, 2.2rem) !important;
    word-break: break-word !important;
  }

  .feature-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 16px !important;
    width: 100% !important;
  }

  .feature-card {
    min-width: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
  }

  .home-bottom-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 16px !important;
    width: 100% !important;
  }

  .section-box {
    padding: 16px 14px !important;
    border-radius: 16px !important;
    box-sizing: border-box !important;
    max-width: 100% !important;
    width: 100% !important;
    min-width: 0 !important;
    overflow: hidden !important;
  }

  .music-top-header {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 10px !important;
    width: 100% !important;
    min-width: 0 !important;
  }

  .music-header-titles {
    width: 100% !important;
    min-width: 0 !important;
  }

  .music-main-title {
    font-size: 1.05rem !important;
    line-height: 1.25 !important;
    word-break: break-word !important;
  }

  .spotify-pill-btn {
    width: 100% !important;
    justify-content: center !important;
    box-sizing: border-box !important;
  }

  .music-hero-card {
    padding: 10px 12px !important;
    gap: 10px !important;
    min-width: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .music-hero-info {
    min-width: 0 !important;
    width: 100% !important;
  }

  .music-hero-top-row {
    width: 100% !important;
    gap: 6px !important;
  }

  .music-track-row {
    padding: 8px 8px !important;
    gap: 8px !important;
    min-width: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .track-info-col {
    min-width: 0 !important;
    flex: 1 1 auto !important;
  }

  .track-title-text, .track-artist-text {
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  .music-tracklist {
    max-height: 380px !important;
    min-width: 0 !important;
    width: 100% !important;
  }

  .portal-two-col-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 16px !important;
    width: 100% !important;
  }

  .pop-card-col {
    min-width: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .uno-landing-wrap, .lobby-layout, .profile-layout, .watch-container-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 18px !important;
  }

  .watch-container-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 18px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .watch-container-grid > * {
    min-width: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .cinema-screen-box,
  .watch-submit-box,
  .watch-queue-card,
  .watch-chat-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .cinema-meta-bar {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
  }

  .cinema-meta-title {
    width: 100% !important;
    min-width: 0 !important;
  }

  #cinema-current-title {
    min-width: 0 !important;
    word-break: break-word !important;
  }

  .uno-hero-box {
    padding: 24px 20px;
    min-height: auto;
  }

  .uno-hero-content {
    max-width: 100%;
    margin-bottom: 20px;
  }

  .uno-hero-box .art-cards-fan {
    position: relative;
    right: auto;
    bottom: auto;
    margin: 8px auto 0 auto;
    width: 140px;
    height: 130px;
    display: block;
  }

  .page-head, .home-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 20px;
  }

  .page-head-aside, .home-head .page-head-aside {
    text-align: left;
    max-width: 100%;
    font-size: 0.9rem;
    margin: 4px 0 0 0;
  }

  .grid-metrics {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .grid-fleet, .grid-actions {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  /* UNO Arena Mobile Tuning */
  .game-unified-header {
    padding: 6px 8px !important;
    gap: 6px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .game-header-top-row {
    flex-wrap: wrap !important;
    gap: 6px !important;
    justify-content: space-between !important;
  }

  .game-header-log-row {
    width: 100% !important;
    height: 30px !important;
    min-height: 30px !important;
    max-height: 30px !important;
  }

  .game-header-log-row .hud-bubble-log-box {
    padding: 4px 8px !important;
    font-size: 0.74rem !important;
  }

  .header-cluster-left,
  .header-cluster-center,
  .header-cluster-right {
    min-width: 0 !important;
    width: 100% !important;
    justify-content: space-between !important;
  }

  .hud-turn-badge, .hud-active-card-badge {
    padding: 4px 8px !important;
    font-size: 0.76rem !important;
  }

  .hud-timer-badge {
    font-size: 0.72rem !important;
    padding: 2px 5px !important;
  }

  .tabletop-felt {
    border-radius: 40px !important;
    min-height: 270px !important;
    height: 38vh !important;
    max-height: 360px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .seat-chip {
    padding: 2px 6px 2px 3px !important;
    max-width: 110px !important;
    border-radius: 999px !important;
  }

  .seat-avatar {
    width: 20px !important;
    height: 20px !important;
    font-size: 0.65rem !important;
  }

  .seat-name {
    font-size: 0.68rem !important;
    max-width: 48px !important;
  }

  .seat-card-count {
    font-size: 0.6rem !important;
  }

  .seat-avatar {
    width: 28px;
    height: 28px;
    font-size: 0.75rem;
    border-radius: 8px;
  }

  .seat-name {
    font-size: 0.68rem;
    max-width: 65px;
  }

  .seat-card-count {
    font-size: 0.65rem;
  }

  .seat-turn-timer {
    font-size: 0.68rem;
    padding: 1px 4px;
  }

  .center-piles-wrap {
    gap: 16px;
  }

  .center-piles-wrap .uno-card {
    width: 66px;
    height: 98px;
    padding: 4px;
    border-width: 2.5px;
    border-radius: 9px;
  }

  .center-piles-wrap .card-center-oval {
    width: 44px;
    height: 66px;
  }

  .center-piles-wrap .card-center-symbol {
    font-size: 1.25rem;
  }

  .center-piles-wrap .card-corner-top,
  .center-piles-wrap .card-corner-bottom {
    font-size: 0.75rem;
  }

  .penalty-stack-badge {
    top: -10px;
    right: -10px;
    font-size: 0.8rem;
    padding: 2px 6px;
  }

  .deck-count-chip {
    bottom: -8px;
    font-size: 0.65rem;
    padding: 1px 6px;
  }

  .hand-dock-wrapper {
    padding: 10px 12px;
    gap: 8px;
  }

  .hand-scroll-track {
    justify-content: flex-start !important;
    min-height: 125px;
    padding: 18px 14px 6px 14px !important;
    gap: 6px;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }

  .hand-card-btn .uno-card {
    width: 66px;
    height: 98px;
    padding: 4px;
    border-width: 2.5px;
    border-radius: 9px;
  }

  .hand-card-btn .card-center-oval {
    width: 44px;
    height: 66px;
  }

  .hand-card-btn .card-center-symbol {
    font-size: 1.25rem;
  }

  .hand-card-btn .card-corner-top,
  .hand-card-btn .card-corner-bottom {
    font-size: 0.75rem;
  }

  .hand-card-btn:hover:not(:disabled) .uno-card {
    transform: translateY(-12px) scale(1.02);
  }

  .hand-card-btn.selected .uno-card {
    transform: translateY(-20px) scale(1.05);
  }

  .action-buttons-dock {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .dock-left-actions, .dock-right-actions {
    width: 100%;
    display: flex;
    gap: 8px;
  }

  .dock-left-actions .pop-btn {
    flex: 1;
    padding: 8px 10px;
    font-size: 0.82rem;
    min-height: 44px;
  }

  .dock-right-actions .pop-btn {
    flex: 1;
    padding: 8px 6px;
    font-size: 0.8rem;
    min-height: 44px;
  }

  .combo-indicator-badge {
    width: 100%;
    justify-content: center;
    font-size: 0.75rem;
    padding: 4px 8px;
  }

  /* Beranda Mobile Tuning */
  .identity-banner {
    padding: 12px 16px;
    flex-direction: column;
    align-items: flex-start;
  }

  .identity-banner .pop-btn {
    width: 100%;
  }

  .feature-card {
    min-height: 250px;
    padding: 22px 18px;
  }

  .feature-title {
    font-size: 1.65rem;
  }

  .art-cards-fan {
    width: 90px;
    height: 110px;
    right: 12px;
    bottom: 14px;
  }

  .preview-card {
    width: 50px;
    height: 74px;
    border-radius: 7px;
    padding: 4px;
  }

  .mini-grid {
    gap: 8px;
  }

  .mini-card {
    padding: 10px 6px;
    text-align: center;
    align-items: center;
  }

  .mini-symbol {
    font-size: 1.25rem;
  }

  .mini-card b {
    font-size: 0.74rem;
  }

  .mini-card small {
    display: none;
  }

  /* ID Studio Mobile Tuning */
  .id-card-pop {
    max-width: 100%;
    aspect-ratio: 1.58 / 1;
    height: auto;
    min-height: 190px;
    padding: 16px;
  }

  .id-card-name {
    font-size: 1.35rem;
  }

  .id-card-code {
    font-size: 0.72rem;
  }

  .stats-three-box {
    gap: 8px;
  }

  .stat-item {
    padding: 10px 4px;
  }

  .stat-item b {
    font-size: 0.95rem;
  }

  .stat-item span {
    font-size: 0.65rem;
  }

  /* Table Horizontal Scrolling on Mobile */
  .monitor-logs-table, .result-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    width: 100%;
  }

  .site-footer {
    padding: 16px 14px;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

/* ==========================================================================
   POP-ART SVGS & WATCH PRESETS HELPERS
   ========================================================================== */
.pop-nav-svg {
  width: 20px;
  height: 20px;
  max-width: 20px;
  max-height: 20px;
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

.pop-mode-svg {
  display: block;
  margin: auto;
  width: 28px;
  height: 28px;
}

.pop-clapper-svg {
  display: block;
  width: 44px;
  height: 44px;
}

.pop-svg-tab {
  display: inline-block;
  vertical-align: middle;
  width: 15px;
  height: 15px;
}

.pop-svg-inline {
  display: inline-block;
  vertical-align: middle;
  width: 16px;
  height: 16px;
  max-width: 16px;
  max-height: 16px;
  flex-shrink: 0;
}

.pop-svg-spotify {
  display: inline-block;
  vertical-align: middle;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.pop-svg-arrow {
  display: inline-block;
  vertical-align: middle;
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* Universal Button SVG safety constraint */
.pop-btn svg, .btn svg {
  max-width: 20px;
  max-height: 20px;
  vertical-align: middle;
}

.watch-presets-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 6px 0;
  margin-bottom: 6px;
}

.presets-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--ink-muted);
  text-transform: uppercase;
}

.preset-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: #ffffff;
  border: var(--border-thin);
  border-radius: 999px;
  box-shadow: 1.5px 1.5px 0 var(--ink);
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  white-space: nowrap;
  line-height: 1.2;
  transition: transform 0.1s ease, box-shadow 0.1s ease, background 0.12s ease;
}

.preset-pill-btn svg {
  width: 15px !important;
  height: 15px !important;
  max-width: 15px !important;
  max-height: 15px !important;
  display: inline-block !important;
  vertical-align: middle !important;
  flex-shrink: 0 !important;
}

.preset-pill-icon {
  font-size: 0.85rem;
  line-height: 1;
}

.preset-pill-btn:hover {
  background: var(--pop-yellow);
  transform: translate(-1px, -1px);
  box-shadow: 2px 2px 0 var(--ink);
}

.preset-pill-btn:active {
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0 var(--ink);
}

/* ==========================================================================
   FISHDEX & MANCING LEADERBOARD MODULE
   Neo-brutalist Pop-Art aesthetics for Bot Mancing Integration
   ========================================================================== */

.fishdex-wrapper {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Master Navigation Tabs */
.fishdex-tab-bar {
  display: flex;
  gap: 12px;
  background: var(--bg-surface);
  padding: 8px;
  border-radius: var(--radius-btn);
  border: var(--border-thick);
  box-shadow: var(--shadow-md);
  margin-bottom: 4px;
  flex-wrap: wrap;
}

.fishdex-tab-btn {
  flex: 1;
  min-width: 180px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 20px;
  background: var(--bg-surface-alt);
  border: var(--border-thin);
  border-radius: 8px;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 900;
  color: var(--ink);
  cursor: pointer;
  transition: all 0.15s ease;
}

.fishdex-tab-btn:hover {
  background: var(--pop-yellow);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.fishdex-tab-btn.active {
  background: var(--pop-yellow);
  border: var(--border-thick);
  box-shadow: var(--shadow-sm);
}

#fishdex-content-area {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Biome Selector Box */
.fishdex-control-bar {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: #ffffff;
  padding: 16px;
  border: var(--border-thick);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-md);
  margin-bottom: 16px;
}

@media (min-width: 768px) {
  .fishdex-control-bar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    gap: 16px;
  }
}

.fishdex-select-group {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  width: 100%;
  flex: 1;
  min-width: 0;
}

@media (min-width: 768px) {
  .fishdex-select-group {
    flex-direction: row;
    align-items: center;
    gap: 12px;
  }
}

.fishdex-select-label {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--ink-muted);
  white-space: nowrap;
  letter-spacing: 0.04em;
}

.fishdex-select {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  background: var(--bg-surface-alt);
  border: var(--border-thick);
  border-radius: 10px;
  font-family: var(--font-ui);
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--ink);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  outline: none;
  min-width: 0;
}

.fishdex-select:focus {
  border-color: var(--pop-blue);
}

.fishdex-badge-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  align-self: flex-start;
}

@media (min-width: 768px) {
  .fishdex-badge-wrap {
    align-self: center;
    flex-shrink: 0;
  }
}

/* Biome Info Banner */
.biome-info-card {
  background: linear-gradient(135deg, #fffdf8 0%, #fef3c7 100%);
  border: var(--border-thick);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-md);
  padding: 24px;
  display: flex;
  gap: 24px;
  align-items: center;
}

@media (max-width: 640px) {
  .biome-info-card {
    flex-direction: column;
    text-align: center;
  }
}

.biome-info-emoji,
.biome-info-icon-frame {
  width: 78px;
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.8rem;
  background: #ffffff;
  border: var(--border-thick);
  border-radius: 18px;
  box-shadow: 4px 4px 0 var(--ink);
  flex-shrink: 0;
  padding: 4px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.biome-info-icon-frame:hover {
  transform: translate(-2px, -2px) rotate(-1deg);
  box-shadow: 6px 6px 0 var(--ink);
}

.biome-svg-hero {
  width: 100%;
  height: 100%;
  display: block;
}

/* Quick Biome Interactive Pills */
.fishdex-biome-pills-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 2px 10px 2px;
  margin-top: -6px;
  margin-bottom: 6px;
  scrollbar-width: thin;
}

.biome-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 2px solid var(--ink);
  border-radius: var(--radius-pill);
  box-shadow: 2px 2px 0 var(--ink);
  padding: 5px 12px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 800;
  color: var(--ink);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.biome-pill-btn:hover {
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0 var(--ink);
  background: #fef9c3;
}

.biome-pill-btn.active {
  background: var(--pop-yellow);
  box-shadow: 1px 1px 0 var(--ink);
  transform: translate(1px, 1px);
}

.biome-pill-icon {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.biome-pill-icon svg {
  width: 100%;
  height: 100%;
}

.biome-info-body {
  flex: 1;
}

.biome-level-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--pop-blue);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 900;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  border: var(--border-thin);
  margin-bottom: 8px;
}

.biome-info-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--ink);
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}

.biome-info-desc {
  font-size: 0.95rem;
  color: var(--ink-muted);
  line-height: 1.5;
}

.biome-meta-chips {
  display: flex;
  gap: 12px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.biome-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  border: var(--border-thin);
  border-radius: 8px;
  padding: 4px 10px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
}

/* Tier Header / Section */
.fishdex-tier-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 10px;
}

.tier-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px dashed #d1d5db;
  padding-bottom: 8px;
  flex-wrap: wrap;
  gap: 8px;
}

.tier-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.tier-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 900;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  border: var(--border-thick);
  box-shadow: 2px 2px 0 var(--ink);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.pop-tier-svg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pop-spec-svg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  vertical-align: middle;
}

.tier-badge-mythic {
  background: #f59e0b;
  color: #14161c;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.4), 2px 2px 0 var(--ink);
}

.tier-badge-legendary {
  background: #fbbf24;
  color: #14161c;
}

.tier-badge-epic {
  background: #c084fc;
  color: #14161c;
}

.tier-badge-rare {
  background: #60a5fa;
  color: #14161c;
}

.tier-badge-uncommon {
  background: #4ade80;
  color: #14161c;
}

.tier-badge-common {
  background: #cbd5e1;
  color: #14161c;
}

.tier-badge-trash {
  background: #a8a29e;
  color: #14161c;
}

.tier-count-label {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink-muted);
}

/* Mythic Showcase Grid (WITH REAL PHOTOS) */
.fishdex-mythic-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 680px) {
  .fishdex-mythic-grid {
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  }
}

.mythic-card {
  background: #ffffff;
  border: var(--border-thick);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  position: relative;
}

.mythic-card:hover {
  transform: translate(-3px, -3px);
  box-shadow: 8px 8px 0px var(--ink);
}

.mythic-photo-container {
  width: 100%;
  height: 220px;
  background: #14161c;
  position: relative;
  overflow: hidden;
  border-bottom: var(--border-thick);
}

.mythic-photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.mythic-card:hover .mythic-photo-img {
  transform: scale(1.04);
}

.mythic-photo-tag {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #f59e0b;
  color: #14161c;
  border: var(--border-thin);
  border-radius: var(--radius-pill);
  box-shadow: 2px 2px 0 var(--ink);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 900;
  padding: 3px 10px;
}

.mythic-card-body {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.mythic-card-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
}

.mythic-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  background: var(--bg-surface-alt);
  padding: 10px;
  border: var(--border-thin);
  border-radius: 10px;
}

.mythic-stat-item {
  display: flex;
  flex-direction: column;
  text-align: center;
}

.mythic-stat-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--ink-muted);
}

.mythic-stat-val {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 900;
  color: var(--ink);
}

.mythic-lore-box {
  font-size: 0.85rem;
  color: var(--ink-muted);
  line-height: 1.45;
  background: #f8fafc;
  border-left: 3px solid #f59e0b;
  padding: 8px 12px;
  border-radius: 4px;
  font-style: italic;
}

/* Regular Fish Grid (Clean & Structured Text Cards) */
.fishdex-text-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

@media (min-width: 580px) {
  .fishdex-text-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }
}

.fish-text-card {
  background: #ffffff;
  border: var(--border-thick);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.fish-text-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-md);
}

.fish-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.fish-name-group {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.fish-species-badge {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--ink);
  border-radius: 12px;
  box-shadow: 2px 2px 0 var(--ink);
  flex-shrink: 0;
  padding: 4px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.fish-text-card:hover .fish-species-badge,
.mythic-card:hover .fish-species-badge {
  transform: scale(1.08) rotate(-3deg);
  box-shadow: 3px 3px 0 var(--ink);
}

.fish-species-badge .spec-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.fish-species-badge.rarity-mythic {
  background: linear-gradient(135deg, #fef08a 0%, #d8b4fe 100%);
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.45), 2px 2px 0 var(--ink);
}

.fish-species-badge.rarity-legendary {
  background: linear-gradient(135deg, #fef08a 0%, #f59e0b 100%);
}

.fish-species-badge.rarity-epic {
  background: linear-gradient(135deg, #f3e8ff 0%, #c084fc 100%);
}

.fish-species-badge.rarity-rare {
  background: linear-gradient(135deg, #e0f2fe 0%, #38bdf8 100%);
}

.fish-species-badge.rarity-uncommon {
  background: linear-gradient(135deg, #dcfce7 0%, #4ade80 100%);
}

.fish-species-badge.rarity-common {
  background: linear-gradient(135deg, #ffffff 0%, #e2e8f0 100%);
}

.fish-species-badge.rarity-trash {
  background: linear-gradient(135deg, #f1f5f9 0%, #cbd5e1 100%);
}

.fish-card-emoji {
  font-size: 1.4rem;
  flex-shrink: 0;
}

.fish-card-title {
  font-family: var(--font-ui);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fish-specs-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-surface-alt);
  border: var(--border-thin);
  border-radius: 8px;
  padding: 6px 10px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
}

.fish-spec-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 700;
}

.fish-card-lore {
  font-size: 0.8rem;
  color: var(--ink-muted);
  line-height: 1.4;
  margin: 0;
}

/* Leaderboard Sub-Navigation */
.mancing-filter-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.mancing-sort-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: #ffffff;
  border: var(--border-thick);
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--ink);
  cursor: pointer;
  transition: all 0.12s ease;
}

.mancing-sort-btn:hover {
  background: var(--pop-yellow);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.mancing-sort-btn.active {
  background: var(--pop-yellow);
  border-color: var(--ink);
  box-shadow: var(--shadow-md);
}

/* Leaderboard Podium (Top 3) */
.mancing-podium {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 28px;
  align-items: end;
}

@media (max-width: 768px) {
  .mancing-podium {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}

.podium-card {
  background: #ffffff;
  border: var(--border-thick);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-md);
  padding: 20px 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  position: relative;
  box-sizing: border-box;
}

.podium-card.rank-1 {
  background: linear-gradient(180deg, #fef3c7 0%, #ffffff 100%);
  border-color: #d97706;
  box-shadow: var(--shadow-lg);
  order: 2;
  transform: translateY(-8px);
}

.podium-card.rank-2 {
  order: 1;
}

.podium-card.rank-3 {
  order: 3;
}

@media (max-width: 768px) {
  .podium-card {
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .podium-card.rank-1 {
    order: 1 !important;
    transform: none !important;
  }
  .podium-card.rank-2 {
    order: 2 !important;
    transform: none !important;
  }
  .podium-card.rank-3 {
    order: 3 !important;
    transform: none !important;
  }
}

.fishdex-btn-icon,
.mancing-btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.fishdex-btn-icon svg,
.mancing-btn-icon svg {
  display: block;
  filter: drop-shadow(0 1px 0 rgba(20, 22, 28, 0.1));
}

.podium-medal {
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  margin-bottom: 4px;
}

.podium-medal-svg {
  display: block;
  filter: drop-shadow(0 2px 0 rgba(20, 22, 28, 0.2));
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.podium-card:hover .podium-medal-svg {
  transform: translateY(-3px) scale(1.08);
}

.podium-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: var(--border-thick);
  box-shadow: var(--shadow-sm);
  object-fit: cover;
}

.podium-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--ink);
}

.podium-handle {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--ink-muted);
}

.podium-score {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 900;
  color: var(--pop-blue);
  background: var(--bg-surface-alt);
  border: var(--border-thin);
  border-radius: 8px;
  padding: 6px 12px;
  width: 100%;
}

/* Leaderboard List Table (#4+) */
.mancing-table-box {
  background: #ffffff;
  border: var(--border-thick);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.mancing-table-header {
  padding: 14px 20px;
  background: var(--bg-surface-alt);
  border-bottom: var(--border-thin);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mancing-table-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 900;
  color: var(--ink);
}

.mancing-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid #e2e8f0;
  transition: background 0.1s ease;
}

.mancing-row:hover {
  background: #fffbeb;
}

.mancing-row-left {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.mancing-rank-badge {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 900;
  width: 32px;
  color: var(--ink-muted);
  text-align: center;
}

.mancing-user-avatar {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: var(--border-thick);
  object-fit: cover;
  flex-shrink: 0;
}

.mancing-user-meta {
  min-width: 0;
}

.mancing-user-name {
  font-family: var(--font-ui);
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mancing-user-sub {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--ink-muted);
}

.mancing-row-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  flex-shrink: 0;
}

.mancing-main-val {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--ink);
}

.mancing-sub-val {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--ink-muted);
}

@media (max-width: 640px) {
  .mancing-row {
    padding: 10px 12px;
    gap: 8px;
  }
  .mancing-row-left {
    gap: 8px;
  }
  .mancing-user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 8px;
  }
  .mancing-rank-badge {
    width: 24px;
    font-size: 0.9rem;
  }
  .mancing-user-name {
    font-size: 0.88rem;
    max-width: 110px;
  }
  .mancing-main-val {
    font-size: 0.85rem;
  }
}

/* ==========================================================================
   GAME MANCING MODULE (Pop-Art + 16-Bit Pixel Art Game)
   ========================================================================== */

.game-mancing-wrap {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.mancing-hero-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  background: #ffffff;
  padding: 16px 20px;
  border: var(--border-thick);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-md);
}

.mancing-hero-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--ink);
  letter-spacing: 0.02em;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.mancing-hero-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* Player Status Header Bar */
.mancing-player-bar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  background: linear-gradient(135deg, #fffdf8 0%, #fef9c3 100%);
  border: var(--border-thick);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-md);
  padding: 16px 20px;
}

@media (max-width: 640px) {
  .mancing-player-bar {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 14px;
  }
}

.mancing-avatar-col {
  display: flex;
  align-items: center;
  gap: 12px;
}

@media (max-width: 640px) {
  .mancing-avatar-col {
    justify-content: center;
  }
}

.mancing-char-avatar {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  border: var(--border-thick);
  object-fit: cover;
  box-shadow: var(--shadow-sm);
}

.mancing-name-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mancing-char-name {
  font-family: var(--font-ui);
  font-size: 1.05rem;
  font-weight: 900;
  color: var(--ink);
}

.mancing-char-handle {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--ink-muted);
}

.mancing-xp-col {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mancing-xp-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 800;
}

.mancing-xp-bar-bg {
  width: 100%;
  height: 12px;
  background: #ffffff;
  border: var(--border-thin);
  border-radius: 999px;
  overflow: hidden;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}

.mancing-xp-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #3b82f6, #06b6d4);
  border-radius: 999px;
  transition: width 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.mancing-stats-col {
  display: flex;
  gap: 16px;
  align-items: center;
}

@media (max-width: 640px) {
  .mancing-stats-col {
    justify-content: space-around;
  }
}

.mancing-stat-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #ffffff;
  border: var(--border-thin);
  border-radius: 10px;
  padding: 6px 14px;
  box-shadow: var(--shadow-sm);
}

.mancing-stat-pill-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--ink-muted);
}

.mancing-stat-pill-val {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--ink);
}

/* Equipment Configuration Bar (Joran, Perahu, Umpan, Bioma) */
.mancing-equip-card {
  background: #ffffff;
  border: var(--border-thick);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-md);
  padding: 16px 20px;
}

.mancing-equip-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 900;
  color: var(--ink);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mancing-equip-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

@media (max-width: 900px) {
  .mancing-equip-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .mancing-equip-grid {
    grid-template-columns: 1fr;
  }
}

.mancing-equip-box {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--bg-surface-alt);
  border: var(--border-thin);
  border-radius: 10px;
  padding: 10px 12px;
}

.mancing-equip-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--ink-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

.mancing-equip-select {
  width: 100%;
  box-sizing: border-box;
  padding: 8px 10px;
  background: #ffffff;
  border: var(--border-thin);
  border-radius: 8px;
  font-family: var(--font-ui);
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--ink);
  cursor: pointer;
  outline: none;
}

.mancing-equip-select:focus {
  border-color: var(--pop-blue);
}

/* Canvas Area */
.mancing-stage-card {
  background: #ffffff;
  border: var(--border-thick);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.mancing-canvas-wrap {
  width: 100%;
  height: 380px;
  position: relative;
  background: #1e1b4b;
  overflow: hidden;
}

@media (max-width: 600px) {
  .mancing-canvas-wrap {
    height: 290px;
  }
}

#mancing-canvas {
  width: 100%;
  height: 100%;
  display: block;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

/* Floating Banner overlay on canvas */
.mancing-canvas-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(20, 22, 28, 0.75);
  backdrop-filter: blur(4px);
  color: #ffffff;
  padding: 6px 12px;
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 800;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  gap: 6px;
  pointer-events: none;
}

.mancing-canvas-timer {
  position: absolute;
  top: 14px;
  right: 14px;
  background: #facc15;
  color: #14161c;
  padding: 6px 14px;
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 900;
  border: var(--border-thin);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 6px;
  pointer-events: none;
}

/* Master Action Button Row */
.mancing-action-row {
  display: flex;
  gap: 12px;
  padding: 16px 20px;
  background: var(--bg-surface);
  border-top: var(--border-thick);
  flex-wrap: wrap;
}

.mancing-btn-main {
  flex: 2;
  min-width: 220px;
}

.mancing-btn-sell {
  flex: 1;
  min-width: 180px;
}

/* Catch Feed & Log */
.mancing-log-section {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.mancing-log-box {
  background: #ffffff;
  border: var(--border-thick);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-md);
  padding: 16px 20px;
}

.mancing-log-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 900;
  color: var(--ink);
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mancing-feed-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 260px;
  overflow-y: auto;
}

.mancing-feed-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: var(--bg-surface-alt);
  border: var(--border-thin);
  border-radius: 8px;
  animation: popIn 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes popIn {
  from { opacity: 0; transform: translateY(-6px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.mancing-feed-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mancing-feed-emoji {
  font-size: 1.4rem;
}

.mancing-feed-name {
  font-family: var(--font-ui);
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--ink);
}

.mancing-feed-meta {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--ink-muted);
}

.mancing-feed-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mancing-rarity-pill {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 900;
  padding: 2px 8px;
  border-radius: 6px;
  border: 1px solid var(--ink);
  text-transform: uppercase;
}


/* ==============================================================
   MANCING QTE MINIGAME OVERLAY (SIMON SAYS MEMORY MATRIX)
   ============================================================== */
.mancing-qte-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(6px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  overflow-y: auto;
  box-sizing: border-box;
  animation: popIn 0.25s ease-out;
}

.mancing-qte-card {
  margin: auto;
  width: 100%;
  max-width: 480px;
  max-height: 94vh;
  overflow-y: auto;
  background: #ffffff;
  border: 3px solid #14161c;
  border-radius: 16px;
  box-shadow: 6px 6px 0 #14161c;
  padding: 20px;
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-sizing: border-box;
}

.mancing-qte-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 900;
  padding: 4px 12px;
  border-radius: 999px;
  border: 2px solid #14161c;
  text-transform: uppercase;
  margin: 0 auto;
}

.mancing-qte-badge.rare { background: #93c5fd; color: #1e3a8a; }
.mancing-qte-badge.epic { background: #d8b4fe; color: #581c87; }
.mancing-qte-badge.legendary { background: #fde047; color: #78350f; }
.mancing-qte-badge.mythic { background: #fda4af; color: #881337; }

.mancing-qte-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--ink);
  line-height: 1.2;
}

.mancing-qte-subtitle {
  font-size: 0.82rem;
  color: var(--ink-muted);
  font-family: var(--font-mono);
}

.mancing-qte-pattern-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  background: #f8fafc;
  border: 2px dashed #14161c;
  border-radius: 12px;
  min-height: 60px;
}

.mancing-qte-slot {
  width: 44px;
  height: 44px;
  border: 2px solid #14161c;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  background: #ffffff;
  box-shadow: 2px 2px 0 #14161c;
  transition: all 0.15s ease;
}

.mancing-qte-slot.active {
  background: #facc15;
  transform: scale(1.1);
  box-shadow: 3px 3px 0 #14161c;
}

.mancing-qte-slot.matched {
  background: #86efac;
  border-color: #15803d;
}

.mancing-qte-slot.wrong {
  background: #fca5a5;
  border-color: #b91c1c;
}

.mancing-qte-bar-wrap {
  width: 100%;
  height: 8px;
  background: #e2e8f0;
  border: 2px solid #14161c;
  border-radius: 999px;
  overflow: hidden;
}

.mancing-qte-bar-fill {
  height: 100%;
  background: #3b82f6;
  width: 100%;
  transition: width 0.1s linear;
}

.mancing-qte-dpad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  max-width: 220px;
  margin: 6px auto;
}

.mancing-qte-btn {
  aspect-ratio: 1;
  font-size: 1.4rem;
  font-weight: 900;
  border: 2px solid #14161c;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 3px 3px 0 #14161c;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  user-select: none;
  touch-action: manipulation;
  transition: transform 0.05s ease, box-shadow 0.05s ease;
}

.mancing-qte-btn:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 #14161c;
}

.mancing-qte-btn span.qte-label {
  font-size: 0.65rem;
  font-family: var(--font-mono);
  color: var(--ink-muted);
  margin-top: -2px;
}

.mancing-qte-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}

/* Catch Banner Overlay on Stage (Ultra-Smooth Floating Pop-Art Pill) */
.mancing-catch-banner {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translate(-50%, -24px) scale(0.92);
  z-index: 25;
  background: #ffffff;
  border: 3px solid #14161c;
  border-radius: 14px;
  box-shadow: 4px 4px 0 #14161c;
  padding: 10px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  will-change: transform, opacity;
  transition: transform 0.38s cubic-bezier(0.18, 0.89, 0.32, 1.28), opacity 0.28s ease, visibility 0.28s;
  max-width: 90%;
  text-align: left;
}

.mancing-catch-banner.show {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0) scale(1);
}

.mancing-catch-banner-emoji {
  font-size: 2.2rem;
  line-height: 1;
}

.mancing-catch-banner-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.mancing-catch-banner-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 900;
  color: var(--ink);
  line-height: 1.2;
}

.mancing-catch-banner-meta {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink-muted);
}

/* Mobile responsive styles for Mancing QTE */
@media (max-width: 600px) {
  .mancing-qte-overlay {
    padding: 10px;
  }

  .mancing-qte-card {
    margin: auto;
    max-width: 96vw;
    max-height: 96vh;
    padding: 14px 10px;
    gap: 8px;
    border-radius: 14px;
    box-shadow: 4px 4px 0 #14161c;
  }

  .mancing-qte-title {
    font-size: 1.1rem;
  }

  .mancing-qte-pattern-box {
    padding: 8px 4px;
    gap: 4px;
    min-height: 48px;
  }

  .mancing-qte-slot {
    width: 38px;
    height: 38px;
    font-size: 1.2rem;
    border-radius: 8px;
    box-shadow: 1px 1px 0 #14161c;
  }

  .mancing-qte-dpad {
    max-width: 190px;
    gap: 6px;
    margin: 4px auto;
  }

  .mancing-qte-btn {
    font-size: 1.3rem;
  }

  .mancing-qte-btn span.qte-label {
    display: none;
  }

  .mancing-catch-banner {
    top: 8px;
    padding: 6px 12px;
    max-width: 94%;
    gap: 8px;
  }

  .mancing-catch-banner-emoji {
    font-size: 1.7rem;
  }

  .mancing-catch-banner-name {
    font-size: 0.9rem;
  }

  .mancing-catch-banner-meta {
    font-size: 0.7rem;
  }

  .mancing-subaction-row {
    flex-direction: column;
    gap: 10px;
    margin: 14px 0;
  }

  .mancing-fishdex-card {
    max-width: 96vw;
    padding: 14px 10px;
  }

  .mancing-detail-card {
    max-width: 96vw;
    padding: 14px 10px;
  }

  .mancing-detail-img-box {
    max-width: 220px;
    height: 140px;
  }
}

/* ==============================================================
   MANCING SUB-ACTION ROW & FISHDEX / SHOP MODALS
   ============================================================== */
.mancing-svg-icon {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

.mancing-subaction-row {
  display: flex;
  gap: 14px;
  width: 100%;
  margin: 18px 0;
}

.mancing-btn-sub {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 900;
  padding: 12px 16px;
  border: 3px solid var(--ink);
  border-radius: 12px;
  box-shadow: 4px 4px 0 var(--ink);
  background: #ffffff;
  cursor: pointer;
  transition: transform 0.1s, box-shadow 0.1s, background 0.1s;
}

.mancing-btn-sub:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--ink);
  background: #fefce8;
}

.mancing-btn-sub:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--ink);
}

/* Fishdex Overlay & Card */
.mancing-fishdex-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  z-index: 99998;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  overflow-y: auto;
  box-sizing: border-box;
  animation: popIn 0.25s ease-out;
}

.mancing-fishdex-card {
  margin: auto;
  width: 100%;
  max-width: 640px;
  max-height: 92vh;
  background: #ffffff;
  border: 3px solid #14161c;
  border-radius: 18px;
  box-shadow: 6px 6px 0 #14161c;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow-y: auto;
  box-sizing: border-box;
}

.mancing-fishdex-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid var(--border-color, #e2e8f0);
  padding-bottom: 12px;
}

.mancing-fishdex-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--ink);
  line-height: 1.2;
}

.mancing-fishdex-subtitle {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink-muted);
  margin-top: 2px;
}

.mancing-fishdex-filter-box {
  background: #f8fafc;
  border: 2px solid var(--ink);
  border-radius: 12px;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mancing-fishdex-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 50vh;
  overflow-y: auto;
  padding-right: 4px;
}

.mancing-fishdex-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border: 2px solid var(--ink);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 3px 3px 0 var(--ink);
  cursor: pointer;
  transition: transform 0.1s, box-shadow 0.1s, background 0.1s;
}

.mancing-fishdex-item:hover {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 var(--ink);
  background: #fefce8;
}

.mancing-fishdex-item.locked {
  background: #f8fafc;
  border-color: #cbd5e1;
  box-shadow: 2px 2px 0 #94a3b8;
}

.mancing-fishdex-item-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mancing-fishdex-thumb {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
  border: 1.5px solid var(--ink);
  background: #0f172a;
}

.mancing-fishdex-locked-icon {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  border: 1.5px dashed #94a3b8;
  background: #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.mancing-fishdex-item-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  text-align: left;
}

.mancing-fishdex-item-name {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 900;
  color: var(--ink);
}

.mancing-fishdex-item-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--ink-muted);
}

.mancing-btn-lihat {
  padding: 6px 14px !important;
  font-size: 0.8rem !important;
  font-weight: 900 !important;
  border: 2px solid var(--ink) !important;
  border-radius: 10px !important;
  box-shadow: 2px 2px 0 var(--ink) !important;
  background: #ffffff !important;
  white-space: nowrap !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  cursor: pointer !important;
  flex-shrink: 0 !important;
  transition: transform 0.1s, box-shadow 0.1s, background-color 0.1s !important;
}

.mancing-btn-lihat:hover {
  background: #fef08a !important;
  transform: translate(-1px, -1px) !important;
  box-shadow: 3px 3px 0 var(--ink) !important;
}

.mancing-btn-lihat:active {
  transform: translate(1px, 1px) !important;
  box-shadow: 1px 1px 0 var(--ink) !important;
}

#fishdex-btn-close:hover,
#detail-btn-close:hover,
#qte-close-esc-btn:hover,
#qte-victory-esc:hover {
  background: #fee2e2 !important;
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0 var(--ink);
}

#fishdex-btn-close:active,
#detail-btn-close:active,
#qte-close-esc-btn:active,
#qte-victory-esc:active {
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0 var(--ink);
}

/* Fish Detail Modal Overlay */
.mancing-detail-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  z-index: 99999;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  overflow-y: auto;
  box-sizing: border-box;
  animation: popIn 0.25s ease-out;
}

.mancing-detail-card {
  margin: auto;
  width: 100%;
  max-width: 480px;
  max-height: 94vh;
  background: #ffffff;
  border: 3px solid #14161c;
  border-radius: 18px;
  box-shadow: 6px 6px 0 #14161c;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  overflow-y: auto;
  box-sizing: border-box;
  text-align: center;
}

.mancing-detail-img-box {
  width: 100%;
  max-width: 280px;
  height: 180px;
  border: 3px solid var(--ink);
  border-radius: 14px;
  overflow: hidden;
  background: #0f172a;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 4px 4px 0 var(--ink);
}

.mancing-detail-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mancing-detail-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  width: 100%;
  box-sizing: border-box;
}

.stat-cell {
  background: #f8fafc;
  border: 1.5px solid var(--ink);
  border-radius: 10px;
  padding: 8px 10px;
  text-align: left;
  font-family: var(--font-mono);
}

.stat-lbl {
  display: block;
  font-size: 0.65rem;
  color: var(--ink-muted);
  font-weight: 700;
  text-transform: uppercase;
}

.stat-val {
  display: block;
  font-size: 0.88rem;
  font-weight: 900;
  color: var(--ink);
  margin-top: 2px;
}

/* -------------------------------------------------------------
   VOICE CHANNEL BUFF BANNER & BADGES
   ------------------------------------------------------------- */
.mancing-voice-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #ffffff;
  border: 2px solid var(--ink);
  border-radius: 14px;
  padding: 10px 16px;
  box-shadow: 4px 4px 0 var(--ink);
  margin-bottom: 14px;
  transition: all 0.25s ease;
  box-sizing: border-box;
}

.mancing-voice-banner.active {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border-color: #16a34a;
  box-shadow: 4px 4px 0 #16a34a;
}

.mancing-voice-banner.inactive {
  background: #ffffff;
  border-color: var(--ink);
}

.mancing-voice-banner-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.mancing-voice-icon-box {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #f8fafc;
  border: 2px solid var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  box-shadow: 2px 2px 0 var(--ink);
  flex-shrink: 0;
}

.mancing-voice-banner.active .mancing-voice-icon-box {
  background: #22c55e;
  border-color: #15803d;
  box-shadow: 2px 2px 0 #15803d;
  color: #ffffff;
}

.mancing-voice-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 900;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.mancing-voice-sub {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--ink-muted);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pulse-dot-green {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  display: inline-block;
  box-shadow: 0 0 8px #22c55e;
  animation: voicePulse 1.5s infinite;
}

@keyframes voicePulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
  70% { transform: scale(1.15); box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.mancing-canvas-voice {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(22, 163, 74, 0.95);
  color: #ffffff;
  border: 2px solid #ffffff;
  border-radius: 20px;
  padding: 4px 12px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  z-index: 10;
  pointer-events: none;
  animation: popIn 0.3s ease-out;
}

.mancing-voice-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #86efac;
  border-radius: 6px;
  padding: 2px 6px;
  font-size: 0.72rem;
  font-weight: 800;
  margin-left: 6px;
}

@media (max-width: 600px) {
  .mancing-voice-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 12px;
    gap: 10px;
  }
  .mancing-voice-banner-right {
    width: 100%;
    display: flex;
    justify-content: flex-end;
  }
  .mancing-voice-sub {
    white-space: normal;
  }
}

/* ==========================================================================
   PLAYLIST KITA CEMANA - Neo-Brutalist Community Music Curation Styles
   ========================================================================== */

.playlist-page-container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 24px 20px 80px;
}

/* Hero Header */
.playlist-hero {
  margin-bottom: 28px;
}

.playlist-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #facc15;
  color: #14161c;
  border: 2px solid #14161c;
  border-radius: 999px;
  padding: 5px 14px;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.5px;
  box-shadow: 2px 2px 0 #14161c;
  margin-bottom: 12px;
}

.playlist-badge-icon {
  display: flex;
  align-items: center;
}

.playlist-hero-title {
  font-family: var(--font-display, 'Lilita One', 'Impact', sans-serif);
  font-size: clamp(2rem, 4.5vw, 2.9rem);
  color: #14161c;
  line-height: 1.15;
  margin: 0 0 10px 0;
  letter-spacing: -0.5px;
}

.playlist-hero-subtitle {
  color: var(--ink-muted, #475569);
  font-size: 1rem;
  line-height: 1.55;
  max-width: 760px;
  margin: 0;
}

/* Submit Card */
.playlist-submit-card {
  background: #fffdf8;
  border: 2.5px solid #14161c;
  border-radius: 20px;
  box-shadow: 5px 5px 0 #14161c;
  padding: 24px 28px;
  margin-bottom: 32px;
}

.playlist-submit-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 2px dashed #e2e8f0;
}

.playlist-submit-header-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: #ffe978;
  border: 2px solid #14161c;
  box-shadow: 3px 3px 0 #14161c;
  flex-shrink: 0;
}

.disc-spin {
  display: inline-flex;
  animation: discRotation 14s linear infinite;
}

@keyframes discRotation {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.playlist-submit-title {
  font-size: 1.25rem;
  font-weight: 900;
  color: #14161c;
  margin: 0 0 4px 0;
}

.playlist-submit-desc {
  font-size: 0.88rem;
  color: #64748b;
  margin: 0;
  line-height: 1.4;
}

.playlist-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.playlist-form-row {
  display: flex;
  gap: 16px;
}

.playlist-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.playlist-form-group.flex-1 {
  flex: 1;
}

.playlist-label {
  font-size: 0.82rem;
  font-weight: 800;
  color: #14161c;
}

.req-star {
  color: #ef4444;
}

.playlist-input,
.playlist-textarea,
.playlist-sort-select {
  background: #ffffff;
  border: 2px solid #14161c;
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 0.92rem;
  font-family: inherit;
  color: #14161c;
  box-shadow: 2px 2px 0 #14161c;
  outline: none;
  transition: all 0.15s ease;
}

.playlist-input:focus,
.playlist-textarea:focus,
.playlist-sort-select:focus {
  border-color: #3b82f6;
  box-shadow: 3px 3px 0 #14161c;
}

.playlist-textarea {
  resize: vertical;
  min-height: 58px;
}

.playlist-hint {
  font-size: 0.74rem;
  color: #94a3b8;
  margin-top: 2px;
}

.playlist-form-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 4px;
}

.playlist-btn-submit {
  padding: 12px 24px;
  font-size: 0.95rem;
  font-weight: 900;
}

/* Toolbar: Tabs, Search, Sort */
.playlist-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.playlist-tabs {
  display: flex;
  gap: 8px;
}

.playlist-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  border: 2px solid #14161c;
  border-radius: 12px;
  padding: 8px 16px;
  font-size: 0.88rem;
  font-weight: 800;
  color: #14161c;
  cursor: pointer;
  box-shadow: 3px 3px 0 #14161c;
  transition: all 0.15s ease;
}

.playlist-tab:hover {
  background: #f8fafc;
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 #14161c;
}

.playlist-tab.active {
  background: #facc15;
  transform: translate(1px, 1px);
  box-shadow: 2px 2px 0 #14161c;
}

.tab-flame {
  display: flex;
  align-items: center;
}

.playlist-search-sort {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.playlist-search-box {
  position: relative;
  display: flex;
  align-items: center;
}

.playlist-search-icon {
  position: absolute;
  left: 12px;
  display: flex;
  align-items: center;
  pointer-events: none;
  color: #14161c;
}

.playlist-search-input {
  background: #ffffff;
  border: 2px solid #14161c;
  border-radius: 12px;
  padding: 9px 36px 9px 38px;
  font-size: 0.88rem;
  font-family: inherit;
  color: #14161c;
  box-shadow: 2.5px 2.5px 0 #14161c;
  outline: none;
  min-width: 240px;
  transition: all 0.15s ease;
}

.playlist-search-input:focus {
  border-color: #3b82f6;
  box-shadow: 3.5px 3.5px 0 #14161c;
}

.playlist-search-clear {
  position: absolute;
  right: 10px;
  background: none;
  border: none;
  font-size: 0.85rem;
  font-weight: 900;
  color: #94a3b8;
  cursor: pointer;
  padding: 4px;
}

.playlist-search-clear:hover {
  color: #ef4444;
}

.playlist-sort-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.playlist-sort-icon {
  position: absolute;
  left: 10px;
  display: flex;
  align-items: center;
  pointer-events: none;
  z-index: 2;
}

.playlist-sort-select {
  padding: 9px 14px 9px 34px;
  font-size: 0.88rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 2.5px 2.5px 0 #14161c;
}

/* Playlist Cards Grid */
.playlist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(460px, 1fr));
  gap: 24px;
  align-items: start;  /* KEY FIX: prevent row stretch when embed opens */
}

.playlist-card {
  background: #fffdf8;
  border: 2.5px solid #14161c;
  border-radius: 20px;
  box-shadow: 5px 5px 0 #14161c;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.playlist-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0 #14161c;
}

.playlist-card-top {
  display: flex;
  gap: 18px;
  padding: 20px;
  flex: 1;
}

.playlist-thumb-box {
  position: relative;
  width: 120px;
  height: 120px;
  min-width: 120px;
  border-radius: 14px;
  overflow: hidden;
  border: 2px solid #14161c;
  box-shadow: 3px 3px 0 #14161c;
  background: #14161c;
  flex-shrink: 0;
}

.playlist-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.playlist-platform-tag {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 3px 6px;
  font-size: 0.68rem;
  font-weight: 900;
  color: #ffffff;
  border-top: 1.5px solid #14161c;
}

.playlist-platform-tag.badge-spotify {
  background: #1DB954;
}

.playlist-platform-tag.badge-youtube {
  background: #FF0000;
}

.platform-icon {
  display: flex;
  align-items: center;
}

.platform-icon svg {
  width: 13px;
  height: 13px;
}

.playlist-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.playlist-curator-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.curator-avatar-box {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1.5px solid #14161c;
  overflow: hidden;
  background: #ffffff;
  flex-shrink: 0;
}

.curator-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.curator-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: #64748b;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.curator-name {
  font-weight: 800;
  color: #14161c;
}

.playlist-time {
  font-size: 0.72rem;
  color: #94a3b8;
}

.playlist-card-title {
  font-size: 1.15rem;
  font-weight: 900;
  color: #14161c;
  margin: 0 0 6px 0;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.playlist-card-desc {
  font-size: 0.84rem;
  color: #64748b;
  line-height: 1.45;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Card Actions Toolbar */
.playlist-card-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-top: 2px dashed #e2e8f0;
  background: #faf8f2;
}

/* Up/Down Vote Pill */
.playlist-vote-pill {
  display: inline-flex;
  align-items: center;
  border: 2px solid #14161c;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 2px 2px 0 #14161c;
  overflow: hidden;
}

.vote-btn {
  background: none;
  border: none;
  padding: 6px 9px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #14161c;
  transition: all 0.15s ease;
}

.vote-btn:hover {
  background: #f1f5f9;
}

.vote-btn.voted-up {
  background: #10b981 !important;
  color: #ffffff;
}

.vote-btn.voted-down {
  background: #ef4444 !important;
  color: #ffffff;
}

.vote-score {
  font-size: 0.85rem;
  font-weight: 900;
  color: #14161c;
  padding: 0 4px;
  min-width: 22px;
  text-align: center;
}

.vote-score.score-pos {
  color: #15803d;
}

.vote-score.score-neg {
  color: #b91c1c;
}

/* Generic Action Button */
.playlist-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border: 2px solid #14161c;
  border-radius: 10px;
  background: #ffffff;
  font-size: 0.78rem;
  font-weight: 800;
  color: #14161c;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 2px 2px 0 #14161c;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.playlist-action-btn:hover {
  background: #f8fafc;
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0 #14161c;
}

.playlist-action-btn:active {
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0 #14161c;
}

.playlist-action-btn .btn-icon {
  display: flex;
  align-items: center;
}

.playlist-action-btn.btn-listen.listen-spotify {
  background: #1DB954;
  color: #ffffff;
}

.playlist-action-btn.btn-listen.listen-spotify:hover {
  background: #1aa34a;
}

.playlist-action-btn.btn-listen.listen-youtube {
  background: #FF0000;
  color: #ffffff;
}

.playlist-action-btn.btn-listen.listen-youtube:hover {
  background: #d80000;
}

.playlist-action-btn.btn-toggle-embed.embed-active {
  background: #facc15;
}

/* Embed Frame */
.playlist-embed-container {
  padding: 0 16px 16px;
  border-top: 1px solid #e2e8f0;
  background: #faf8f2;
}

.playlist-iframe {
  border-radius: 14px;
  border: 2px solid #14161c;
  box-shadow: 3px 3px 0 #14161c;
  background: #000000;
  display: block;
}

/* Empty & Loading States */
.playlist-loading-state,
.playlist-empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  background: #fffdf8;
  border: 2.5px solid #14161c;
  border-radius: 20px;
  box-shadow: 4px 4px 0 #14161c;
}

.playlist-disc-spinner {
  display: inline-flex;
  animation: discRotation 3s linear infinite;
  margin-bottom: 12px;
}

.playlist-empty-state .empty-icon {
  font-size: 2.8rem;
  margin-bottom: 12px;
}

.playlist-empty-state .empty-title {
  font-size: 1.3rem;
  font-weight: 900;
  color: #14161c;
  margin: 0 0 8px 0;
}

.playlist-empty-state .empty-desc {
  font-size: 0.92rem;
  color: #64748b;
  margin: 0 0 20px 0;
}

/* Comments Modal */
.playlist-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.playlist-modal-backdrop.hidden {
  display: none !important;
}

.playlist-modal-content {
  background: #fffdf8;
  border: 3px solid #14161c;
  border-radius: 20px;
  box-shadow: 8px 8px 0 #14161c;
  max-width: 580px;
  width: 100%;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: popModal 0.22s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popModal {
  from {
    opacity: 0;
    transform: scale(0.92) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.playlist-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 2.5px solid #14161c;
  background: #ffffff;
}

.playlist-modal-tag {
  font-size: 0.72rem;
  font-weight: 900;
  color: #fc3068;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.playlist-modal-title {
  font-size: 1.15rem;
  font-weight: 900;
  color: #14161c;
  margin: 2px 0 0 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 380px;
}

.playlist-modal-close {
  background: #ffffff;
  border: 2px solid #14161c;
  border-radius: 10px;
  padding: 6px 12px;
  font-size: 0.82rem;
  font-weight: 900;
  color: #14161c;
  cursor: pointer;
  box-shadow: 2px 2px 0 #14161c;
  transition: all 0.15s ease;
}

.playlist-modal-close:hover {
  background: #fee2e2;
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0 #14161c;
}

.playlist-comments-feed {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-height: 50vh;
}

.comment-bubble-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.comment-avatar-box {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1.8px solid #14161c;
  overflow: hidden;
  background: #facc15;
  flex-shrink: 0;
}

.comment-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.comment-bubble-body {
  background: #ffffff;
  border: 2px solid #14161c;
  border-radius: 14px;
  padding: 10px 14px;
  box-shadow: 2.5px 2.5px 0 #14161c;
  flex: 1;
}

.comment-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

.comment-author-name {
  font-size: 0.85rem;
  font-weight: 900;
  color: #14161c;
}

.comment-timestamp {
  font-size: 0.72rem;
  color: #94a3b8;
}

.comment-text {
  font-size: 0.88rem;
  color: #334155;
  line-height: 1.45;
  margin: 0;
  word-break: break-word;
}

.comments-empty-state {
  text-align: center;
  padding: 40px 16px;
  color: #64748b;
}

.comments-empty-state .empty-icon {
  font-size: 2.2rem;
  margin-bottom: 8px;
}

.playlist-comment-form {
  padding: 16px 24px;
  border-top: 2.5px solid #14161c;
  background: #faf8f2;
}

.comment-input-row {
  display: flex;
  gap: 12px;
  align-items: flex-end;
}

.playlist-comment-input {
  flex: 1;
  background: #ffffff;
  border: 2px solid #14161c;
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 0.88rem;
  font-family: inherit;
  color: #14161c;
  box-shadow: 2px 2px 0 #14161c;
  outline: none;
  resize: none;
}

.playlist-comment-input:focus {
  border-color: #3b82f6;
  box-shadow: 3px 3px 0 #14161c;
}

.comment-send-btn {
  padding: 12px 18px;
  font-size: 0.88rem;
  font-weight: 900;
  white-space: nowrap;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .playlist-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .playlist-form-row {
    flex-direction: column;
    gap: 12px;
  }

  .playlist-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .playlist-search-sort {
    width: 100%;
    flex-direction: column;
  }

  .playlist-search-box,
  .playlist-sort-wrap,
  .playlist-search-input,
  .playlist-sort-select {
    width: 100%;
  }

  .playlist-card-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .playlist-thumb-box {
    width: 100%;
    height: 180px;
    min-width: 0;
  }

  .playlist-card-actions {
    justify-content: stretch;
  }

  .playlist-action-btn {
    flex: 1;
    justify-content: center;
  }

  .playlist-vote-pill {
    width: 100%;
    justify-content: space-around;
  }

  .comment-input-row {
    flex-direction: column;
    align-items: stretch;
  }

  .comment-send-btn {
    width: 100%;
  }
}

/* ==========================================================================
   SPOTIFY EMBED HEIGHT FIX (Change 1)
   ========================================================================== */
.playlist-iframe.iframe-spotify {
  height: 232px !important;
}

/* ==========================================================================
   PLAYLIST LOGIN GATE (Change 8)
   ========================================================================== */
.playlist-login-gate {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 36px 28px;
  text-align: center;
  background: linear-gradient(135deg, #fff9e6 0%, #fff3cc 100%);
  border-radius: 18px;
  border: 2px dashed #facc15;
  margin-top: 16px;
}

.playlist-login-gate-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  margin: 0;
  text-align: center;
  color: var(--ink);
}

.playlist-login-gate-text {
  font-size: 0.95rem;
  color: var(--ink-muted);
  max-width: 540px;
  line-height: 1.6;
  text-align: center;
  margin: 0 auto;
}

.playlist-login-gate-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  margin-top: 6px;
}

/* ==========================================================================
   EDIT / DELETE BUTTONS FOR OWN PLAYLISTS (Change 8)
   ========================================================================== */
.btn-edit-own {
  background: #f0f9ff !important;
  border-color: #3b82f6 !important;
  color: #3b82f6 !important;
}

.btn-edit-own:hover {
  background: #3b82f6 !important;
  color: #fff !important;
}

.btn-delete-own {
  background: #fff5f5 !important;
  border-color: #ef4444 !important;
  color: #ef4444 !important;
}

.btn-delete-own:hover {
  background: #ef4444 !important;
  color: #fff !important;
}

/* Edit modal */
.playlist-edit-modal {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
}

.playlist-edit-modal-content {
  background: #fffdf8;
  border: 3px solid #14161c;
  border-radius: 24px;
  box-shadow: 10px 10px 0 #14161c;
  padding: 32px 36px;
  max-width: 680px !important;
  width: 94% !important;
  box-sizing: border-box;
}

@media (max-width: 600px) {
  .playlist-edit-modal-content {
    padding: 22px 18px !important;
    max-width: 95% !important;
  }
}

/* ==========================================================================
   MANCING FEATURE CARD & ANIMATED CATCH (Change 7)
   ========================================================================== */
.feature-card-mancing {
  background: linear-gradient(135deg, #ffffff 60%, #f0fdf4 100%);
}

.mancing-hero-catch-wrap {
  position: relative;
  width: 90px;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  pointer-events: auto;
}

.mancing-catch-stage {
  position: relative;
  width: 82px;
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: mancingCatchBounce 2.4s ease-in-out infinite;
  transform-origin: 20% 80%;
}

.mancing-hooked-catch-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(3px 4px 0 rgba(20, 22, 28, 0.9));
  animation: mancingFishFlop 1.2s ease-in-out infinite alternate;
  transform-origin: 75% 65%;
}

@keyframes mancingCatchBounce {
  0% {
    transform: translateY(0) rotate(0deg);
  }
  20% {
    transform: translateY(-8px) rotate(-6deg);
  }
  40% {
    transform: translateY(3px) rotate(4deg);
  }
  60% {
    transform: translateY(-6px) rotate(-3deg);
  }
  80% {
    transform: translateY(1px) rotate(2deg);
  }
  100% {
    transform: translateY(0) rotate(0deg);
  }
}

@keyframes mancingFishFlop {
  0% {
    transform: rotate(0deg) scale(1);
  }
  50% {
    transform: rotate(8deg) scale(1.04);
  }
  100% {
    transform: rotate(-7deg) scale(0.97);
  }
}

.mancing-splash-ripple {
  position: absolute;
  bottom: 6px;
  right: 12px;
  border-radius: 50%;
  border: 2px solid #0284c7;
  pointer-events: none;
  opacity: 0;
}

.mancing-splash-ripple.r1 {
  width: 24px;
  height: 10px;
  animation: mancingRippleAnim 1.8s ease-out infinite;
}

.mancing-splash-ripple.r2 {
  width: 32px;
  height: 12px;
  animation: mancingRippleAnim 1.8s ease-out infinite 0.9s;
}

@keyframes mancingRippleAnim {
  0% {
    transform: scale(0.4);
    opacity: 0.9;
  }
  70% {
    transform: scale(1.4);
    opacity: 0.4;
  }
  100% {
    transform: scale(1.9);
    opacity: 0;
  }
}

.mancing-bot-credit {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 8px 12px;
  background: rgba(0,0,0,0.04);
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,0.08);
}

.mancing-bot-avatar-img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #14161c;
}

.mancing-bot-credit-text {
  font-size: 0.78rem;
  color: var(--ink-muted);
}

.pop-btn-green {
  background: #22c55e;
  color: #ffffff;
  border: 2.5px solid #14161c;
  box-shadow: 3px 3px 0 #14161c;
}

.pop-btn-green:hover {
  background: #16a34a;
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 #14161c;
}

.mancing-rod-art {
  font-size: 3rem;
  line-height: 1;
  opacity: 0.7;
}

/* ==========================================================================
   WATCH NOBAR REAL-TIME LIVE CHAT BUBBLES
   ========================================================================== */
.chat-bubble-row {
  background: #f8fafc;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1.5px solid #cbd5e1;
  display: flex;
  flex-direction: column;
  gap: 3px;
  box-sizing: border-box;
}

.chat-bubble-row.chat-is-host {
  background: #fefce8;
  border-color: #f59e0b;
}

.chat-bubble-header {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
}

.chat-bubble-header .chat-sender {
  color: var(--pop-blue, #2563eb);
}

.chat-bubble-row.chat-is-host .chat-sender {
  color: #b45309;
}

.chat-bubble-header .chat-time {
  margin-left: auto;
  font-size: 0.7rem;
  color: #94a3b8;
  font-family: var(--font-mono);
}

.chat-bubble-row .chat-text {
  font-size: 0.84rem;
  margin: 0;
  color: var(--ink, #1e293b);
  word-break: break-word;
  line-height: 1.35;
}

/* ==========================================================================
   CEMANA VAULT & KOLEKSI STYLES (NEO-BRUTALIST POP ART)
   ========================================================================== */
.vault-hero-card {
  background: #ffffff;
  border: var(--border-thick);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-md);
  padding: 24px;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background-image: radial-gradient(#e2e8f0 1.2px, transparent 1.2px);
  background-size: 16px 16px;
}

.vault-hero-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.vault-user-info {
  display: flex;
  align-items: center;
  gap: 16px;
}

.vault-user-avatar {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  border: var(--border-thick);
  box-shadow: 3px 3px 0 #14161c;
  object-fit: cover;
  background: #fef08a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

.vault-balance-pill {
  background: #fef08a;
  border: var(--border-thick);
  border-radius: 14px;
  padding: 10px 20px;
  box-shadow: 4px 4px 0 #14161c;
  display: flex;
  align-items: center;
  gap: 10px;
}

.vault-balance-val {
  font-family: var(--font-mono);
  font-weight: 900;
  font-size: 1.4rem;
  color: #854d0e;
}

.vault-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-top: 4px;
}

.vault-stat-box {
  background: #f8fafc;
  border: var(--border-thin);
  border-radius: 12px;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.vault-stat-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-muted);
}

.vault-stat-val {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--ink);
}

.vault-tabs-bar {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
  border-bottom: var(--border-thick);
  padding-bottom: 14px;
  overflow-x: auto;
}

.vault-tab-btn {
  background: #ffffff;
  border: var(--border-thick);
  border-radius: 12px;
  padding: 10px 18px;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 3px 3px 0 #14161c;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.vault-tab-btn:hover {
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 #14161c;
}

.vault-tab-btn.active {
  background: #facc15;
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 #14161c;
}

.vault-filter-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.vault-filter-btn {
  background: #f1f5f9;
  border: 1.5px solid #14161c;
  border-radius: 8px;
  padding: 6px 14px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.1s ease;
}

.vault-filter-btn.active {
  background: #2563eb;
  color: #ffffff;
  box-shadow: 2px 2px 0 #14161c;
}

.vault-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 20px;
}

.vault-card {
  background: #ffffff;
  border: var(--border-thick);
  border-radius: var(--radius-card);
  padding: 18px;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.vault-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.vault-card.card-equipped {
  border-color: #16a34a;
  background: #f0fdf4;
}

.vault-card.card-locked {
  opacity: 0.82;
  background: #f8fafc;
}

.vault-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.vault-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  border: var(--border-thick);
  background: #fef08a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: 2.5px 2.5px 0 #14161c;
  flex-shrink: 0;
}

.vault-card-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin: 0;
  line-height: 1.25;
}

.vault-card-desc {
  font-size: 0.82rem;
  color: var(--ink-muted);
  margin: 0;
  line-height: 1.4;
  flex: 1;
}

.vault-card-stats {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 8px 10px;
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  font-weight: 700;
}

.vault-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 10px;
  border-top: var(--border-thin);
}

.vault-card-price {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 900;
  color: #b45309;
}

/* Mystery Box Modal Special Animations */
@keyframes lootboxShake {
  0% { transform: rotate(0deg) scale(1); }
  20% { transform: rotate(-8deg) scale(1.05); }
  40% { transform: rotate(8deg) scale(1.05); }
  60% { transform: rotate(-5deg) scale(1.08); }
  80% { transform: rotate(5deg) scale(1.08); }
  100% { transform: rotate(0deg) scale(1); }
}

@keyframes rewardPop {
  0% { transform: scale(0.4); opacity: 0; }
  70% { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

.lootbox-animating {
  animation: lootboxShake 0.6s infinite ease-in-out;
}

.reward-reveal-box {
  animation: rewardPop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

/* Citizen ID Card Preview */
.citizen-id-card {
  background: linear-gradient(135deg, #ffffff 0%, #fef9c3 100%);
  border: var(--border-thick);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 6px 6px 0 #14161c;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  overflow: hidden;
}

.citizen-id-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px dashed #cbd5e1;
  padding-bottom: 12px;
}

.citizen-id-body {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
}

.citizen-id-stamp {
  position: absolute;
  right: 20px;
  bottom: 20px;
  border: 3px solid #dc2626;
  color: #dc2626;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 900;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 8px;
  transform: rotate(-12deg);
  opacity: 0.85;
}

/* Trophy Showcase Grid */
.trophy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.trophy-item-box {
  background: #ffffff;
  border: var(--border-thick);
  border-radius: var(--radius-card);
  padding: 16px;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 14px;
  transition: all 0.15s ease;
}

.trophy-item-box.trophy-locked {
  background: #f1f5f9;
  border-color: #94a3b8;
  opacity: 0.65;
}

.trophy-icon-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: var(--border-thick);
  background: #fef08a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  box-shadow: 2px 2px 0 #14161c;
  flex-shrink: 0;
}

.trophy-item-box.trophy-locked .trophy-icon-circle {
  background: #e2e8f0;
  filter: grayscale(1);
}



/* ==========================================================================
   SAWERIA PAGE STYLES (NEO-BRUTALIST POP ART)
   ========================================================================== */

.saweria-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 24px;
  margin-bottom: 24px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.saweria-card {
  background: var(--bg-surface, #ffffff);
  border: var(--border-thick);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  padding: 24px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.saweria-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 2px dashed rgba(20, 22, 28, 0.15);
  flex-wrap: wrap;
}

.saweria-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  border: var(--border-thin);
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: var(--shadow-sm);
}

.saweria-badge-yellow {
  background: var(--pop-yellow);
  color: var(--ink);
}

.saweria-badge-pink {
  background: var(--pop-pink);
  color: #ffffff;
}

.saweria-badge-blue {
  background: var(--pop-blue);
  color: #ffffff;
}

.saweria-header-sub {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--ink-muted);
  font-weight: 700;
}

/* QR Code Card */
.saweria-qr-card {
  align-items: center;
  text-align: center;
}

.saweria-qr-box {
  background: #fff9ed;
  border: var(--border-thick);
  border-radius: 16px;
  padding: 16px;
  box-shadow: var(--shadow-md);
  margin-bottom: 18px;
  max-width: 290px;
  width: 100%;
  box-sizing: border-box;
}

.saweria-qr-frame {
  position: relative;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: #ffffff;
  border: 2px solid var(--ink);
}

.saweria-qr-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  transition: transform 0.2s ease;
}

.saweria-qr-frame:hover .saweria-qr-img {
  transform: scale(1.02);
}

.saweria-qr-watermark {
  padding: 6px 0 8px 0;
  background: #fff9ed;
  border-top: 1.5px solid var(--ink);
}

.saweria-qr-actions {
  display: flex;
  gap: 12px;
  width: 100%;
  justify-content: center;
  margin-bottom: 20px;
}

.saweria-action-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.85rem;
  padding: 10px 14px;
}

.saweria-scan-guide {
  width: 100%;
  text-align: left;
  background: #f8fafc;
  border: var(--border-thin);
  border-radius: 12px;
  padding: 14px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.scan-step-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.78rem;
  line-height: 1.35;
  color: var(--ink);
}

.scan-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--pop-yellow);
  border: 1.5px solid var(--ink);
  font-weight: 800;
  font-size: 0.72rem;
  flex-shrink: 0;
}

/* Portal Info Card */
.saweria-portal-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--ink);
  margin: 0 0 10px 0;
  line-height: 1.25;
}

.saweria-portal-desc {
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--ink-muted);
  margin: 0 0 20px 0;
}

.saweria-btn-direct {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 20px;
  font-size: 1.05rem;
  font-weight: 900;
  border-radius: 14px;
  text-decoration: none;
  box-shadow: var(--shadow-md);
  margin-bottom: 22px;
  box-sizing: border-box;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
  background: #facc15;
  border: var(--border-thick);
  color: var(--ink);
}

.saweria-btn-direct:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-lg);
  background: #fde047;
}

.saweria-btn-direct:active {
  transform: translate(2px, 2px);
  box-shadow: var(--shadow-sm);
}

.saweria-btn-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 12px;
}

.saweria-btn-ico {
  display: flex;
  align-items: center;
}

.saweria-btn-label {
  flex: 1;
  text-align: left;
  letter-spacing: 0.3px;
}

.saweria-btn-ext {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  opacity: 0.85;
  background: rgba(20, 22, 28, 0.08);
  padding: 4px 10px;
  border-radius: 8px;
  border: 1px solid rgba(20, 22, 28, 0.2);
}

/* Perks Box */
.saweria-perks-box {
  background: #fffdfa;
  border: var(--border-thick);
  border-radius: 14px;
  padding: 16px 18px;
  margin-bottom: 18px;
  box-shadow: var(--shadow-sm);
}

.saweria-perks-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 900;
  color: #b45309;
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}

.saweria-perks-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.saweria-perk-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.perk-ico {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1.5px solid var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 2px 2px 0 var(--ink);
}

.perk-ico-gold {
  background: #fef08a;
}

.perk-ico-pink {
  background: #fce7f3;
}

.perk-ico-blue {
  background: #dbeafe;
}

.perk-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.82rem;
}

.perk-content strong {
  color: var(--ink);
  font-weight: 800;
}

.perk-content span {
  color: var(--ink-muted);
  line-height: 1.35;
}

.saweria-payment-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pay-chip {
  padding: 4px 10px;
  border-radius: 8px;
  border: var(--border-thin);
  background: #f1f5f9;
  font-size: 0.72rem;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--ink);
  box-shadow: 1.5px 1.5px 0 var(--ink);
}

/* 3 Stats Row (Symmetric) */
.saweria-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 24px;
  width: 100%;
  box-sizing: border-box;
}

.saweria-stat-card {
  background: #ffffff;
  border: var(--border-thick);
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-sizing: border-box;
}

.stat-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  border: var(--border-thick);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 2px 2px 0 var(--ink);
}

.stat-gold {
  background: var(--pop-yellow);
}

.stat-pink {
  background: #fce7f3;
}

.stat-blue {
  background: #dbeafe;
}

.stat-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.stat-label {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--ink-muted);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.stat-val {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Riwayat Wall of Gratitude */
.saweria-history-wrapper {
  background: #ffffff;
  border: var(--border-thick);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  padding: 24px;
  box-sizing: border-box;
  width: 100%;
}

.saweria-history-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
  padding-bottom: 16px;
  border-bottom: var(--border-thick);
  flex-wrap: wrap;
}

.saweria-history-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--ink);
  margin: 6px 0 4px 0;
}

.saweria-history-sub {
  font-size: 0.85rem;
  color: var(--ink-muted);
  margin: 0;
}

.saweria-feed-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.saweria-feed-item {
  background: #fffdf8;
  border: var(--border-thick);
  border-radius: 16px;
  padding: 18px;
  box-shadow: var(--shadow-sm);
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-sizing: border-box;
}

.saweria-feed-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.saweria-feed-item.is-vip {
  border-color: #d97706;
  background: #fffbeb;
}

.saweria-donor-avatar {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: var(--border-thick);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 900;
  box-shadow: 2px 2px 0 var(--ink);
  flex-shrink: 0;
}

.avatar-yellow {
  background: var(--pop-yellow);
  color: var(--ink);
}

.avatar-pink {
  background: var(--pop-pink);
  color: #ffffff;
}

.avatar-cyan {
  background: #06b6d4;
  color: #ffffff;
}

.saweria-feed-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.saweria-feed-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.saweria-donor-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.donor-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.donor-name {
  font-size: 1.05rem;
  color: var(--ink);
  font-family: var(--font-display);
}

.perk-vip-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.7rem !important;
  padding: 2px 6px !important;
}

.donor-email {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--ink-subtle);
}

.saweria-amount-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.saweria-amount-pill {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 900;
  color: #047857;
  background: #d1fae5;
  border: 1.5px solid var(--ink);
  padding: 3px 10px;
  border-radius: 8px;
  box-shadow: 1.5px 1.5px 0 var(--ink);
}

.saweria-date {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--ink-muted);
}

.saweria-message-box {
  background: #ffffff;
  border: var(--border-thin);
  border-radius: 12px;
  padding: 12px 16px;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.04);
  position: relative;
}

.quote-sign {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--pop-pink);
  font-weight: 900;
  line-height: 1;
  margin-right: 4px;
}

.quote-sign-close {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--pop-pink);
  font-weight: 900;
  line-height: 1;
  margin-left: 4px;
}

.saweria-message-text {
  font-size: 0.92rem;
  color: var(--ink);
  font-style: italic;
  margin: 0;
  display: inline;
  line-height: 1.45;
}

.saweria-feed-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.74rem;
  color: var(--ink-muted);
  font-family: var(--font-mono);
  flex-wrap: wrap;
}

.verified-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #059669;
  font-weight: 700;
}

.saweria-empty-state {
  text-align: center;
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--ink-muted);
}

.saweria-empty-state .empty-icon {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Responsiveness for Mobile */
@media (max-width: 900px) {
  .saweria-hero-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .saweria-stats-row {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

@media (max-width: 640px) {
  .saweria-hero-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 16px !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .saweria-card {
    padding: 16px !important;
    border-radius: 16px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .saweria-qr-box {
    max-width: 250px !important;
    width: 100% !important;
  }

  .saweria-stats-row {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 12px !important;
    width: 100% !important;
  }

  .saweria-stat-card {
    padding: 14px 16px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .saweria-history-wrapper {
    padding: 16px !important;
    border-radius: 16px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .saweria-feed-item {
    flex-direction: column !important;
    padding: 14px !important;
    gap: 12px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .saweria-donor-avatar {
    width: 38px !important;
    height: 38px !important;
    font-size: 1.1rem !important;
  }

  .saweria-feed-top {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 8px !important;
    width: 100% !important;
  }

  .saweria-amount-wrap {
    align-items: flex-start !important;
  }

  .saweria-btn-inner {
    flex-direction: column !important;
    align-items: center !important;
    gap: 6px !important;
    text-align: center !important;
  }

  .saweria-btn-label {
    text-align: center !important;
  }
}

/* ==========================================================================
   PORTAL TAROT SANCTUARY ACTIVE VIEW STATE
   ========================================================================== */
body.route-tarot-active {
  background-color: #06070a !important;
}

body.route-tarot-active .bg-animation-container {
  opacity: 0 !important;
  pointer-events: none !important;
  transition: opacity 0.4s ease;
}

body.route-tarot-active .site-footer {
  display: none !important;
}

body.route-tarot-active main#main {
  padding: 0 !important;
  max-width: 100% !important;
  width: 100% !important;
  margin: 0 !important;
}

body.route-tarot-active #app {
  width: 100% !important;
  height: 100% !important;
}

body.route-tarot-active .shell {
  background: #06070a !important;
}

body.route-tarot-active .topbar {
  background: rgba(6, 7, 10, 0.88) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  backdrop-filter: blur(12px) !important;
}

body.route-tarot-active .topbar .brand-name,
body.route-tarot-active .topbar .crumb,
body.route-tarot-active .topbar span {
  color: #f1f5f9 !important;
}
