/* Neo-brutal overrides for tutorial pages — load after tutorial-shell.css; body needs class .tutorial-neo */
@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;700;900&display=swap");

/* FIX page: kolom konten benar-benar di tengah viewport */
body.tutorial-neo.tutorial-fix-page.tutorial-shell-body {
  display: flex;
  flex-direction: column;
  align-items: center;
}

body.tutorial-neo.tutorial-fix-page.tutorial-shell-wrap {
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.tutorial-neo.tutorial-fix-page .tutorial-fix-column {
  width: 100%;
  max-width: min(48rem, calc(100vw - 1.5rem));
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
  padding: clamp(1rem, 3vw, 1.5rem) clamp(0.75rem, 4vw, 1.5rem) 3rem;
}

body.tutorial-neo.tutorial-shell-body {
  --neo-canvas: #fffdf5;
  --neo-ink: #000000;
  --neo-accent: #ff6b6b;
  --neo-secondary: #ffd93d;
  --neo-muted: #c4b5fd;
  --text-primary: var(--neo-ink);
  --text-secondary: var(--neo-ink);
  --link-color: var(--neo-ink);
  --link-hover: var(--neo-accent);
  --accent-pink: var(--neo-accent);
  --accent-coral: var(--neo-accent);
  --accent-peach: var(--neo-secondary);
  --accent-purple: var(--neo-muted);
  --accent-mint: var(--neo-ink);
  --error-color: var(--neo-accent);
  --success-color: var(--neo-ink);
  --warning-color: var(--neo-secondary);
  --border-color: var(--neo-ink);
  --surface-glass: #ffffff;
  --surface-border: var(--neo-ink);
  --card-bg: #ffffff;
  --font-sans: "Space Grotesk", system-ui, sans-serif;
  --font-display: "Space Grotesk", var(--font-sans);

  margin: 0;
  background: var(--neo-canvas);
  color: var(--neo-ink);
  font-family: var(--font-sans);
  font-weight: 700;
  -webkit-font-smoothing: antialiased;
}

body.tutorial-neo.tutorial-hub-page {
  background: var(--neo-canvas);
}

body.tutorial-neo.tutorial-hub-page::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-color: var(--neo-canvas);
  background-image:
    linear-gradient(to right, rgba(0, 0, 0, 0.07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.07) 1px, transparent 1px);
  background-size: 40px 40px;
}

body.tutorial-neo.tutorial-hub-page::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: radial-gradient(#000 1.2px, transparent 1.2px);
  background-size: 20px 20px;
  opacity: 0.1;
}

body.tutorial-neo .tutorial-shell-top {
  flex-wrap: wrap;
  gap: 0.75rem;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  background: var(--neo-secondary) !important;
  border-bottom: 4px solid #000 !important;
  box-shadow: 0 4px 0 #000;
  margin: calc(-1 * clamp(1rem, 3vw, 1.5rem)) calc(-1 * clamp(0.75rem, 3vw, 1.25rem)) 1.25rem;
  padding: 0.75rem clamp(0.65rem, 3vw, 1.1rem);
}

body.tutorial-neo.tutorial-fix-page .tutorial-fix-column > .tutorial-shell-top {
  margin-left: 0 !important;
  margin-right: 0 !important;
  margin-top: 0 !important;
}

body.tutorial-neo .tutorial-shell-top--inset {
  margin: 0 0 1.25rem;
  border-radius: 0 !important;
  border: 4px solid #000 !important;
  box-shadow: 6px 6px 0 #000;
  background: var(--neo-secondary) !important;
}

body.tutorial-neo .tutorial-back {
  display: inline-flex;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #000 !important;
  text-decoration: none !important;
  padding: 0.5rem 0.85rem;
  border: 3px solid #000;
  background: #fff;
  box-shadow: 4px 4px 0 #000;
  transition: transform 0.1s linear, box-shadow 0.1s linear;
}

body.tutorial-neo .tutorial-back:hover {
  color: #fff !important;
  background: var(--neo-accent);
  transform: translate(-1px, -2px);
  box-shadow: 6px 6px 0 #000;
}

body.tutorial-neo .tutorial-back:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 #000;
}

body.tutorial-neo .glass,
body.tutorial-neo .glass-strong {
  background: #fff !important;
  border: 4px solid #000 !important;
  border-radius: 0 !important;
  box-shadow: 8px 8px 0 #000 !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

body.tutorial-neo .lang-btn,
body.tutorial-neo .flag-btn.lang-btn {
  border-radius: 999px !important;
  border: 3px solid #000 !important;
  background: #fff !important;
  color: #000 !important;
  box-shadow: 3px 3px 0 #000;
  font-weight: 800;
}

body.tutorial-neo .lang-btn.active,
body.tutorial-neo .flag-btn.active {
  background: var(--neo-accent) !important;
  color: #fff !important;
  border-color: #000 !important;
}

body.tutorial-neo .tutorial-page-hero h1,
body.tutorial-neo .tutorial-h1,
body.tutorial-neo #content-id > h1,
body.tutorial-neo #content-en > h1 {
  font-family: var(--font-display) !important;
  font-weight: 900 !important;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  color: #000 !important;
  text-shadow: 5px 5px 0 var(--neo-secondary) !important;
  filter: none !important;
}

body.tutorial-neo .tutorial-page-hero p,
body.tutorial-neo .tutorial-lead,
body.tutorial-neo #content-id > p,
body.tutorial-neo #content-en > p {
  color: #000 !important;
  font-weight: 700;
}

body.tutorial-neo .text-lg,
body.tutorial-neo .text-sm {
  color: inherit;
}

body.tutorial-neo h2,
body.tutorial-neo h3,
body.tutorial-neo .tutorial-h2 {
  color: #000 !important;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: clamp(0.95rem, 2.5vw, 1.1rem) !important;
}

body.tutorial-neo.tutorial-fix-page section.glass > h2:first-child {
  border-bottom: 4px solid #000;
  margin: -1.25rem -1.25rem 1rem !important;
  padding: 0.85rem 1.25rem !important;
  background: var(--neo-muted);
}

@media (min-width: 768px) {
  body.tutorial-neo.tutorial-fix-page section.glass > h2:first-child {
    margin: -1.5rem -1.5rem 1rem !important;
    padding: 0.85rem 1.5rem !important;
  }
}

body.tutorial-neo .text-gray-300,
body.tutorial-neo .text-white,
body.tutorial-neo strong.text-gray-300 {
  color: #000 !important;
}

body.tutorial-neo a:not(.tutorial-back):not(.btn-tutorial-home) {
  color: #000 !important;
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-underline-offset: 2px;
}

body.tutorial-neo a:not(.tutorial-back):not(.btn-tutorial-home):hover {
  color: var(--neo-accent) !important;
}

body.tutorial-neo .code-block-group {
  margin-top: 1rem;
}

body.tutorial-neo .code-block-toolbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 0.5rem;
}

body.tutorial-neo .neo-copy-cmd-btn {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.5rem 0.9rem;
  border: 3px solid #000;
  background: var(--neo-secondary);
  color: #000;
  cursor: pointer;
  box-shadow: 4px 4px 0 #000;
  transition: transform 0.1s linear, box-shadow 0.1s linear;
}

body.tutorial-neo .neo-copy-cmd-btn:hover {
  background: var(--neo-accent);
  color: #fff;
}

body.tutorial-neo .neo-copy-cmd-btn:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 #000;
}

body.tutorial-neo pre.code-block {
  background: var(--neo-muted) !important;
  border: 4px solid #000 !important;
  border-radius: 0 !important;
  color: #000 !important;
  font-weight: 600;
  box-shadow: 6px 6px 0 #000;
  margin-top: 0;
}

body.tutorial-neo .path-box {
  border: 3px solid #000 !important;
  border-radius: 0 !important;
  background: #fff !important;
  color: #000 !important;
  font-weight: 700;
  box-shadow: 4px 4px 0 #000;
  word-break: break-all;
}

body.tutorial-neo .tutorial-online-card {
  background: #fff !important;
  border: 4px solid #000 !important;
  border-radius: 0 !important;
  box-shadow: 8px 8px 0 #000 !important;
  backdrop-filter: none !important;
}

body.tutorial-neo .tutorial-online-card:hover {
  transform: translateY(-4px);
  box-shadow: 12px 12px 0 #000 !important;
}

body.tutorial-neo .tutorial-online-card h3 {
  color: #000 !important;
  font-weight: 900;
  text-transform: uppercase;
}

body.tutorial-neo .tutorial-online-card p,
body.tutorial-neo .tutorial-online-card li {
  color: #000 !important;
}

body.tutorial-neo .tutorial-step-num {
  border: 4px solid #000;
  background: var(--neo-accent) !important;
  color: #fff !important;
  box-shadow: 4px 4px 0 #000;
}

body.tutorial-neo .tutorial-callout-warn-top {
  background: var(--neo-secondary) !important;
  border: 4px solid #000 !important;
  border-radius: 0 !important;
  box-shadow: 8px 8px 0 #000;
}

body.tutorial-neo .tutorial-callout-warn-top h3 {
  color: #000 !important;
}

body.tutorial-neo .tutorial-callout-warn-top p {
  color: #000 !important;
}

body.tutorial-neo .btn-tutorial-home {
  border-radius: 0 !important;
  border: 4px solid #000 !important;
  background: var(--neo-accent) !important;
  box-shadow: 6px 6px 0 #000 !important;
  color: #fff !important;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 900 !important;
}

body.tutorial-neo .btn-tutorial-home:hover {
  transform: translate(-1px, -2px);
  box-shadow: 8px 8px 0 #000 !important;
  filter: none !important;
}

body.tutorial-neo .tutorial-page-footer {
  border-top: 4px solid #000;
  color: #000;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

body.tutorial-neo .warning-box,
body.tutorial-neo .info-box,
body.tutorial-neo .success-box {
  border-radius: 0 !important;
  border: 4px solid #000 !important;
  background: #fff !important;
  box-shadow: 6px 6px 0 #000;
}

body.tutorial-neo .warning-box {
  border-left: 8px solid var(--neo-accent) !important;
}

body.tutorial-neo .info-box {
  border-left: 8px solid var(--neo-muted) !important;
}

body.tutorial-neo .success-box {
  border-left: 8px solid var(--neo-secondary) !important;
}

body.tutorial-neo .tutorial-shell-wrap,
body.tutorial-neo .tutorial-page-frame {
  max-width: min(48rem, calc(100vw - 1.25rem)) !important;
  padding-left: clamp(0.65rem, 4vw, 1.25rem) !important;
  padding-right: clamp(0.65rem, 4vw, 1.25rem) !important;
  padding-bottom: 3rem !important;
}

body.tutorial-neo .tutorial-shell-wide {
  max-width: min(80rem, calc(100vw - 1.25rem)) !important;
}

body.tutorial-neo .tutorial-img {
  border-radius: 0 !important;
  border: 4px solid #000 !important;
  box-shadow: 8px 8px 0 #000;
}

body.tutorial-neo .tutorial-img-wrap,
body.tutorial-neo .tutorial-online-card .tutorial-img-wrap {
  border: 4px solid #000 !important;
  border-radius: 0 !important;
}

body.tutorial-neo .step-card:hover {
  box-shadow: 8px 8px 0 #000 !important;
}

body.tutorial-neo .available-game {
  background: #fff !important;
  border: 4px solid #000 !important;
  border-left: 10px solid #000 !important;
  box-shadow: 4px 4px 0 #000;
}

body.tutorial-neo .unavailable-game {
  background: #fff !important;
  border: 4px solid #000 !important;
  border-left: 10px solid var(--neo-accent) !important;
  box-shadow: 4px 4px 0 #000;
}

body.tutorial-neo .category-card {
  border: 4px solid #000 !important;
  border-radius: 0 !important;
  box-shadow: 6px 6px 0 #000 !important;
  background: #fff !important;
}

body.tutorial-neo .category-card:hover {
  transform: translateY(-3px);
  box-shadow: 10px 10px 0 #000 !important;
}

body.tutorial-neo .rounded-sm,
body.tutorial-neo .rounded-lg {
  border-radius: 0 !important;
}

body.tutorial-neo .rounded-full,
body.tutorial-neo [class*="rounded-full"] {
  border-radius: 9999px !important;
}

@media (max-width: 639px) {
  body.tutorial-neo .tutorial-shell-top {
    justify-content: center;
    text-align: center;
  }

  body.tutorial-neo ol,
  body.tutorial-neo ul {
    padding-left: 1.25rem;
  }

  body.tutorial-neo pre.code-block {
    font-size: 0.68rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.tutorial-neo .tutorial-online-card:hover,
  body.tutorial-neo .category-card:hover,
  body.tutorial-neo .tutorial-back:hover {
    transform: none;
  }
}

:focus-visible {
  outline: 3px solid #000;
  outline-offset: 2px;
}
