/* MANGA FLOW 1.1 — one paper, one ink, one rhythm. Native hidden states remain authoritative. */

:root {
  --mcf-ink: #292721;
  --mcf-paper: #fffdf5;
  --mcf-ground: #f7f1e4;
  --mcf-yellow: #ffdb59;
  --mcf-coral: #ed705c;
  --mcf-mint: #cde4ce;
  --mcf-radius: 18px;
  --mcf-ease: cubic-bezier(.2,.8,.2,1);
}

.mcf-page .nrh-providers.mcf-single-provider {
  grid-template-columns: minmax(0,1fr);
}

.mcf-page .mcf-reward-waiting {
  margin: 0;
  padding: 12px 16px;
  border: 1px dashed var(--line);
  border-radius: 12px;
  background: var(--ground);
}

.mcf-page .mcf-reward-waiting > summary {
  min-height: 24px;
  color: var(--muted);
}

.mcf-page .mcf-reward-waiting > .nrh-provider {
  margin-top: 14px;
  box-shadow: none;
}

.mcf-page {
  --ux-ink: var(--mcf-ink);
  --ux-paper: var(--mcf-paper);
  --ux-ground: var(--mcf-ground);
  --ux-yellow: var(--mcf-yellow);
  text-rendering: optimizeLegibility;
}

.mcf-page .neko-app {
  --ink: var(--mcf-ink);
  --paper: var(--mcf-paper);
  --ground: var(--mcf-ground);
  --yellow: var(--mcf-yellow);
  --muted: #6c6253;
  --line: #c9bfab;
  --mint: var(--mcf-mint);
  --pink: #f3c2b2;
  font-family: 'Noto Sans TC','PingFang TC','Microsoft JhengHei',sans-serif;
}

.mcf-page .neko-app.nk-night {
  --ink: #f9efd5;
  --paper: #292923;
  --ground: #20211d;
  --yellow: #ffdb59;
  --muted: #d2c9b4;
  --line: #696451;
  --mint: #3e5144;
  --pink: #63443e;
}

.mcf-page .neko-app [hidden],.mcf-page .mcf-flight[hidden] {
  display: none !important;
}

.mcf-page :is(button,a,summary,input,select,textarea) {
  -webkit-tap-highlight-color: transparent;
}

.mcf-page :is(button,a,summary):focus-visible {
  outline: 3px solid #bc4939;
  outline-offset: 4px;
}

.mcf-page .na-content, .mcf-page #nrh-content {
  width: min(1160px,100%);
  padding: 32px 32px 48px;
  margin-inline: auto;
  box-sizing: border-box;
}

.mcf-page .na-view {
  background: radial-gradient(#b2a48b22 .8px,transparent .8px) 0 0/12px 12px,var(--ground);
  scrollbar-gutter: stable;
}

.mcf-page .nk-top {
  height: 82px;
  padding: 0 28px;
  gap: 20px;
  border-bottom: 2px solid var(--ink);
  background: var(--paper);
}

.mcf-page .nk-brand {
  font-size: 28px;
  letter-spacing: -1.4px;
}

.mcf-page .nk-brand small {
  letter-spacing: .04em;
  font-size: 11px;
}

.mcf-page .nk-top-center {
  margin-left: auto;
  margin-right: 24px;
}

.mcf-page .nk-tag {
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--muted);
}

.mcf-page .nk-top-actions {
  gap: 12px;
}

.mcf-page .nrh-top-entry {
  padding: 9px 15px;
  border-radius: 12px;
  color: #292721;
  box-shadow: 3px 3px 0 var(--ink);
  font-size: 13px;
}

.mcf-page .nrh-top-entry small {
  font-size: 11px;
}

.mcf-page .mcf-menu {
  position: relative;
}

.mcf-menu>summary {
  list-style: none;
  border: 2px solid var(--ink);
  padding: 11px 15px;
  min-height: 44px;
  box-sizing: border-box;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.mcf-menu>summary::-webkit-details-marker {
  display: none;
}

.mcf-menu>summary:after {
  content: '＋';
  padding-left: 10px;
}

.mcf-menu[open]>summary {
  background: var(--yellow);
  color: #292721;
}

.mcf-menu[open]>summary:after {
  content: '−';
}

.mcf-menu-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 12px);
  width: 228px;
  display: grid;
  gap: 6px;
  padding: 12px;
  border: 2px solid var(--ink);
  border-radius: 16px;
  background: var(--paper);
  box-shadow: 5px 6px 0 var(--ink);
  z-index: 80;
}

.mcf-menu:not([open])>.mcf-menu-panel {
  display: none;
}

.mcf-page .mcf-menu-panel>button {
  display: block !important;
  width: 100%;
  text-align: left;
  border: 0;
  background: var(--paper);
  color: var(--ink);
  font-size: 14px;
  padding: 12px;
  border-radius: 9px;
  min-height: 44px;
}

.mcf-menu-panel>button:hover {
  background: var(--ground);
}

.mcf-page .na-nav {
  padding-top: 22px;
  gap: 13px;
  background: var(--paper);
  border-right: 2px solid var(--ink);
}

.mcf-page .na-nav>a {
  border-radius: 17px;
  min-height: 64px;
  transition: background .18s,box-shadow .18s;
}

.mcf-page .na-nav>a[aria-current=page] {
  color: #292721;
  background: var(--yellow);
  box-shadow: 3px 4px 0 var(--ink);
}

.mcf-page .na-nav>a>span:last-child {
  font-size: 12px;
}

.mcf-page .na-feed-heading {
  margin-bottom: 26px;
  gap: 20px;
}

.mcf-page .na-feed-heading :is(h1,h2) {
  font-size: clamp(28px,3.7vw,44px);
  line-height: 1.25;
  letter-spacing: -.045em;
  font-weight: 900;
}

.mcf-page .na-feed-heading p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--muted);
}

.mcf-page .mcf-hero {
  display: grid;
  grid-template-columns: minmax(0,1.4fr) minmax(200px,.8fr);
  align-items: center;
  position: relative;
  isolation: isolate;
  min-height: 315px;
  border: 2px solid var(--ink);
  border-radius: 22px;
  padding: 34px 40px;
  background: var(--paper);
  overflow: hidden;
  margin-bottom: 24px;
}

.mcf-hero:before {
  content: '';
  position: absolute;
  z-index: -1;
  width: 57%;
  height: 160%;
  right: -13%;
  top: -30%;
  transform: rotate(17deg);
  border-left: 2px solid var(--ink);
}

.mcf-hero:after {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0 0 0 50%;
  background: radial-gradient(#29272155 1px,transparent 1px) 0 0/9px 9px;
  mask-image: linear-gradient(90deg,transparent,black);
}

.mcf-hero h1 em {
  font-style: normal;
  position: relative;
  z-index: 0;
}

.mcf-hero h1 em:after {
  content: '';
  position: absolute;
  inset: auto -3px 3px;
  z-index: -1;
  transform: rotate(-2deg);
}

.mcf-page .mcf-hero p {
  max-width: 360px;
  margin-bottom: 20px;
}

.mcf-hero-art {
  position: relative;
  height: 235px;
  display: grid;
  place-items: center;
  align-self: center;
}

.mcf-page .mcf-hero-art>.nk-sprite {
  width: 195px;
  height: 195px;
  position: relative;
  animation: mcf-hover 5s ease-in-out infinite;
  transform-origin: center bottom;
}

.mcf-orbit {
  position: absolute;
  transform: rotate(-20deg);
}

.mcf-hero-burst {
  position: absolute;
  font-weight: 1000;
  color: #292721;
  font-style: italic;
  letter-spacing: -.09em;
}

.mcf-hero-speech {
  position: absolute;
  padding: 9px 15px;
  border: 2px solid #292721;
  background: #fffdf5;
  color: #292721;
  font-weight: 900;
  box-shadow: 3px 3px 0 #292721;
  animation: mcf-speech 5s ease-in-out infinite;
}

.mcf-page :is(.na-primary,.na-small,.nk-button,.nf-button,.nu-button,.mcf-back) {
  min-height: 44px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.4;
  padding: 12px 17px;
  transition: box-shadow .18s,background .18s;
}

.mcf-page :is(.na-primary,.nk-button:not(.secondary)) {
  background: var(--yellow);
  color: #292721;
  border: 2px solid var(--ink);
  box-shadow: 3px 4px 0 var(--ink);
}

.mcf-page .na-primary:hover {
  box-shadow: 5px 6px 0 var(--ink);
}

.mcf-page .na-primary:active {
  box-shadow: 1px 1px 0 var(--ink);
}

.mcf-page #nrh-home-summary .nrh-summary {
  display: grid;
  grid-template-columns: minmax(100px,.9fr) minmax(0,2fr) auto;
  align-items: center;
  gap: 16px;
  padding: 17px 20px;
  border-radius: 16px;
  border: 2px solid var(--ink);
  box-shadow: 3px 4px 0 var(--ink);
  background: var(--paper);
  margin-bottom: 30px;
}

.mcf-page #nrh-home-summary .nrh-wallet {
  margin: 0;
  gap: 12px;
  grid-column: auto;
  grid-row: auto;
}

.mcf-page #nrh-home-summary .nrh-wallet>div {
  padding: 4px 12px;
  background: none;
  border: 0;
  border-left: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
  min-width: 0;
}

.mcf-page #nrh-home-summary .nrh-wallet strong {
  font-size: 22px;
}

.mcf-page #nrh-home-summary .nrh-wallet small {
  font-size: 11px;
}

.mcf-page #nrh-home-summary .nrh-summary>div:first-child small {
  display: block;
  font-size: 11px;
  line-height: 1.7;
  max-width: 145px;
}

.mcf-page #nrh-home-summary .nrh-summary>button {
  font-size: 13px;
  grid-area: auto;
}

.mcf-page .nc-section-title {
  margin: 24px 0 16px;
}

.mcf-page .nc-section-title h2 {
  font-size: 25px;
  letter-spacing: -.03em;
  margin-top: 6px;
}

.mcf-page .nc-section-title .nk-eyebrow {
  font-size: 10px;
  letter-spacing: .12em;
}

.mcf-page .na-search {
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 14px;
  padding: 7px 8px 7px 17px;
  gap: 12px;
}

.mcf-page .na-search>label {
  font-size: 13px;
  white-space: nowrap;
}

.mcf-page .na-search input {
  font-size: 16px;
  min-width: 0;
}

.mcf-page .na-search>button {
  padding: 10px 18px;
  background: var(--yellow);
  color: #292721;
}

.mcf-page :is(.na-filters,.nuix-filter) {
  gap: 8px;
  margin: 16px 0 20px;
}

.mcf-page .na-filters button {
  padding: 9px 14px;
  font-size: 13px;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: var(--paper);
  min-height: 42px;
}

.mcf-page .na-filters button[aria-pressed=true] {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
  box-shadow: none;
}

.mcf-page #na-feed-status:empty {
  display: none;
}

.mcf-page .na-cards {
  gap: 22px;
}

.mcf-page .na-card {
  border: 2px solid var(--ink);
  border-radius: 18px;
  box-shadow: 4px 5px 0 var(--ink);
  background: var(--paper);
  overflow: hidden;
  transition: box-shadow .2s;
}

.mcf-page .na-card:hover {
  box-shadow: 6px 8px 0 var(--ink);
}

.mcf-page .na-card>a {
  display: block;
}

.mcf-page .na-card>a>img,.mcf-page .na-card-art {
  width: 100%;
  height: 185px;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-bottom: 2px solid var(--ink);
}

.mcf-page .na-card-art {
  position: relative;
  background-image: radial-gradient(#29272120 1px,transparent 1px);
  background-size: 9px 9px;
}

.mcf-page .na-card-art .nk-sprite {
  width: 138px;
  height: 138px;
  transition: transform .35s;
}

.mcf-page .na-card:hover .na-card-art .nk-sprite {
  transform: rotate(-7deg) scale(1.07);
}

.mcf-page .na-card-copy {
  padding: 19px 20px;
}

.mcf-page .na-card :is(h2,h3) {
  font-size: 20px;
  line-height: 1.6;
  letter-spacing: -.02em;
  margin: 12px 0 9px;
}

.mcf-page .na-card p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
  min-height: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.mcf-page .na-card small {
  font-size: 12px;
}

.mcf-page .na-chip {
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 800;
}

.mcf-page .na-card-actions {
  padding: 6px 12px;
  background: var(--paper);
  border-top: 1px dashed var(--line);
  min-height: 52px;
}

.mcf-page .na-card-actions>button {
  font-size: 13px;
  min-height: 44px;
}

.mcf-page .na-games {
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 22px;
}

.mcf-page .na-games .na-game {
  position: relative;
  min-height: 240px;
  padding: 24px;
  border: 2px solid var(--ink);
  border-radius: 18px;
  box-shadow: 4px 5px 0 var(--ink);
  background: var(--paper);
  overflow: hidden;
  isolation: isolate;
}

.mcf-page .na-game:before {
  content: '';
  position: absolute;
  inset: 0 0 auto auto;
  width: 140px;
  height: 140px;
  border-radius: 0 0 0 100%;
  background: var(--yellow);
  z-index: -1;
}

.mcf-page .na-game:nth-child(3n+2):before {
  background: var(--pink);
}

.mcf-page .na-game:nth-child(3n):before {
  background: var(--mint);
}

.mcf-page .na-game .nk-sprite {
  width: 100px;
  height: 100px;
  right: 16px;
  top: 18px;
  transition: transform .3s;
}

.mcf-page .na-game:hover .nk-sprite {
  transform: translateY(-7px) rotate(8deg);
}

.mcf-page .na-games .na-game h2 {
  font-size: 24px;
  line-height: 1.5;
  margin: 14px 85px 10px 0;
}

.mcf-page .na-games .na-game p {
  font-size: 14px;
  line-height: 1.8;
  max-width: 95%;
  color: var(--muted);
}

.mcf-page .na-game strong {
  font-size: 14px;
  border-top: 1px dashed var(--line);
  padding-top: 14px;
  display: block;
  margin-top: 20px;
}

.mcf-page .na-game .na-chip {
  max-width: calc(100% - 85px);
  font-size: 11px;
  background: var(--ground);
  color: var(--ink);
}

.mcf-discover {
  margin: 32px 0;
  padding: 25px;
  border: 2px solid var(--ink);
  border-radius: 18px;
  background: var(--paper);
  box-shadow: 4px 5px 0 var(--ink);
}

.mcf-discover h2 {
  font-size: 24px;
  margin: 0 0 7px;
}

.mcf-discover>p {
  font-size: 14px;
  color: var(--muted);
  margin: 0 0 18px;
}

.mcf-discover-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 12px;
}

.mcf-discover-grid>button {
  background: var(--ground);
  color: var(--ink);
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  font-size: 16px;
  font-weight: 800;
  min-height: 78px;
}

.mcf-discover-grid small {
  display: block;
  font-size: 12px;
  font-weight: 400;
  margin-top: 7px;
}

.mcf-discover-grid>button:hover {
  background: var(--yellow);
  color: #292721;
}

.mcf-page .mcf-back {
  display: block;
  margin: 22px 32px 0;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--line);
  font-size: 13px;
  width: max-content;
  max-width: calc(100% - 64px);
}

.mcf-page .mcf-back+.na-content, .mcf-page .mcf-back+#nrh-content {
  padding-top: 20px;
}

.mcf-page :is(.nrh-hero,.nkk-hero,.ns-hero,.nr-hero,.nl-hero,.nf-hero,.na-profile,.na-login,.na-empty,.na-article,.nkk-library-card,.ns-card,.nuix-preferences) {
  border-radius: var(--mcf-radius);
  border-width: 2px;
  box-shadow: 4px 5px 0 var(--ink);
}

.mcf-page :is(.na-article,.nuix-legal,.nd-article,.mca-article) {
  line-height: 1.9;
}

.mcf-page :is(.na-article,.nuix-legal,.nd-article) p {
  font-size: 16px;
  line-height: 1.95;
}

.mcf-page .na-reader-content {
  max-width: 920px;
}

.mcf-page .nuix-disclosure {
  border-radius: 14px;
  border-width: 1.5px;
}

.mcf-page .nuix-disclosure>summary {
  padding: 16px 18px;
  font-size: 15px;
}

.mcf-page .nuix-create-grid {
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.mcf-page .nuix-create-grid button {
  min-height: 90px;
  border: 2px solid var(--ink);
  font-size: 15px;
  border-radius: 14px;
  padding: 18px;
  text-align: left;
}

.mcf-page #nk-dialog {
  border-radius: 22px;
  border: 2px solid var(--ink);
  box-shadow: 7px 9px 0 #16130f77;
  padding: 26px;
  max-width: 620px;
  width: calc(100% - 36px);
}

.mcf-page #nk-dialog h2 {
  font-size: 26px;
  line-height: 1.45;
}

.mcf-page #nk-dialog::backdrop {
  background: #292721aa;
  backdrop-filter: blur(5px);
}

.mcf-page #nk-dialog .nk-dialog-close {
  border-radius: 50%;
  min-width: 44px;
  min-height: 44px;
}

.mcf-page .nk-bubble {
  border-radius: 15px 15px 15px 3px;
  border: 1.5px solid var(--ink);
  line-height: 1.8;
}

.mcf-page .nk-message.mine .nk-bubble {
  border-radius: 15px 15px 3px 15px;
}

.mcf-page .nk-compose-line textarea {
  border-radius: 14px;
  font-size: 16px;
}

.mcf-page .nk-send {
  border-radius: 13px;
  background: var(--yellow);
  color: #292721;
}

.mcf-page .nk-room-head {
  border-bottom: 1px solid var(--line);
}

.mcf-page .nk-info-panel {
  background: var(--paper);
}

.mcf-page :is(.nuix-legal,.nsa-page .nsa-card,.nd-panel,.nd-card,.nd-article,.login #loginform,.login #registerform) {
  border-radius: 20px;
  border: 2px solid var(--ux-ink);
  box-shadow: 5px 6px 0 var(--ux-ink);
}

.mcf-page.neko-system,.mcf-page.nuix-page,.mcf-page.nd-page,.mcf-page.nsa-page {
  background: radial-gradient(#b2a48b30 .8px,transparent .8px) 0 0/12px 12px,var(--ux-ground);
}

@keyframes mcf-hover {
  0%,100% {
    transform: translateY(0) rotate(-5deg);
  }
  50% {
    transform: translateY(-9px) rotate(4deg);
  }
}

@keyframes mcf-speech {
  0%,80%,100% {
    transform: rotate(-6deg) translateY(0);
  }
  87% {
    transform: rotate(-3deg) translateY(-4px);
  }
}

/* Keep the native router snapshots transparent so the decorative full-viewport
   transition stays visible. It never intercepts input or waits for content. */
html.mcf-app-document { view-transition-name: none; }
.mcf-page .na-workspace > .na-view { view-transition-name: none; }
html.mcf-app-document::view-transition { pointer-events: none; }
.mcf-page .nk-night .mcf-hero-art {
  --ink: #292721;
}

.mcf-page .nk-night .na-game .na-chip {
  color: var(--ink);
}

.mcf-page .nk-night .na-card-actions {
  color: var(--ink);
}

@media (min-width:1250px) {
  .mcf-page .na-cards {
    grid-template-columns: repeat(3,minmax(0,1fr));
  }
}

@media (max-width:1000px) {
  .mcf-page .nk-top-center {
    display: none;
  }
  .mcf-page .na-content, .mcf-page #nrh-content {
    padding: 25px 24px 40px;
  }
  .mcf-page .mcf-hero {
    padding: 28px;
    grid-template-columns: 1.3fr .8fr;
  }
  .mcf-page .mcf-hero-art>.nk-sprite {
    width: 160px;
    height: 160px;
  }
  .mcf-page #nrh-home-summary .nrh-summary {
    grid-template-columns: 1fr auto;
  }
  .mcf-page #nrh-home-summary .nrh-wallet {
    grid-column: 1/-1;
    grid-row: 2;
  }
  .mcf-page #nrh-home-summary .nrh-summary>button {
    grid-column: 2;
    grid-row: 1;
  }
  .mcf-page #nrh-home-summary .nrh-summary>div:first-child small {
    max-width: none;
  }
}

@media (max-width:720px) {
  .mcf-page .nk-top {
    height: 70px;
    padding: 0 14px;
    gap: 10px;
  }
  .mcf-page .nk-brand {
    font-size: 23px;
    gap: 8px;
  }
  .mcf-page .nk-brand-cat {
    width: 35px;
    height: 35px;
  }
  .mcf-page .nk-brand small {
    font-size: 9px;
  }
  .mcf-page .nk-top-actions {
    gap: 7px;
  }
  .mcf-page .nrh-top-entry {
    padding: 6px 9px;
    font-size: 12px;
    box-shadow: 2px 2px 0 var(--ink);
  }
  .mcf-page .nrh-top-entry small {
    font-size: 9px;
  }
  .mcf-menu>summary {
    padding: 11px 10px;
    font-size: 12px;
  }
  .mcf-menu>summary:after {
    padding-left: 4px;
  }
  .mcf-menu-panel {
    right: 0;
    max-width: calc(100vw - 30px);
  }
  .mcf-page .na-nav {
    padding: 7px 6px max(7px,env(safe-area-inset-bottom));
    gap: 5px;
    border-right: 0;
    border-top: 2px solid var(--ink);
  }
  .mcf-page .na-nav>a {
    min-height: 54px;
    border-radius: 12px;
  }
  .mcf-page .na-nav>a[aria-current=page] {
    box-shadow: 2px 2px 0 var(--ink);
  }
  .mcf-page .na-content, .mcf-page #nrh-content {
    padding: 20px 16px 32px;
  }
  .mcf-page .mcf-hero {
    padding: 24px 20px;
    grid-template-columns: minmax(0,1fr) 88px;
    gap: 5px;
    border-radius: 18px;
    margin-bottom: 20px;
  }
  .mcf-page .mcf-hero p {
    font-size: 13px;
    line-height: 1.8;
    max-width: 245px;
    margin-bottom: 17px;
  }
  .mcf-page .mcf-hero .na-primary {
    white-space: nowrap;
  }
  .mcf-hero:before {
    width: 45%;
    right: -21%;
    top: -20%;
    height: 150%;
    transform: rotate(10deg);
  }
  .mcf-hero:after {
    left: 65%;
  }
  .mcf-hero-art {
    height: 150px;
    align-self: center;
    transform: translateX(-4px);
  }
  .mcf-hero-speech {
    white-space: nowrap;
    box-shadow: 2px 2px 0 #292721;
  }
  .mcf-page #nrh-home-summary .nrh-summary {
    padding: 14px;
    gap: 12px;
    margin-bottom: 27px;
    box-shadow: 3px 3px 0 var(--ink);
  }
  .mcf-page #nrh-home-summary .nrh-summary>div:first-child small {
    font-size: 10px;
    max-width: 145px;
  }
  .mcf-page #nrh-home-summary .nrh-summary>button {
    font-size: 11px;
    padding: 10px;
    min-height: 44px;
  }
  .mcf-page #nrh-home-summary .nrh-wallet {
    gap: 0;
  }
  .mcf-page #nrh-home-summary .nrh-wallet>div {
    padding: 5px 10px;
  }
  .mcf-page #nrh-home-summary .nrh-wallet strong {
    font-size: 20px;
  }
  .mcf-page #nrh-home-summary .nrh-wallet small {
    font-size: 10px;
  }
  .mcf-page .na-search>label {
    display: none;
  }
  .mcf-page .na-search {
    padding-left: 10px;
  }
  .mcf-page .na-search>button {
    font-size: 13px;
    padding: 9px 13px;
  }
  .mcf-page .na-filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 3px 2px 9px;
    scrollbar-width: none;
    gap: 7px;
  }
  .mcf-page .na-filters button {
    flex-shrink: 0;
    font-size: 12px;
    padding: 9px 12px;
  }
  .mcf-page .na-cards {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .mcf-page .na-card>a {
    display: grid;
    grid-template-columns: 110px minmax(0,1fr);
    align-items: stretch;
  }
  .mcf-page .na-card>a>img,.mcf-page .na-card-art {
    height: 100%;
    min-height: 175px;
    aspect-ratio: auto;
    border-bottom: 0;
    border-right: 1.5px solid var(--ink);
  }
  .mcf-page .na-card-art .nk-sprite {
    width: 95px;
    height: 95px;
  }
  .mcf-page .na-card-copy {
    padding: 14px;
  }
  .mcf-page .na-card :is(h2,h3) {
    font-size: 17px;
    margin: 8px 0;
    line-height: 1.55;
  }
  .mcf-page .na-card p {
    font-size: 13px;
    margin: 7px 0;
  }
  .mcf-page .na-card small {
    font-size: 11px;
  }
  .mcf-page .na-card .na-chip {
    font-size: 10px;
    padding: 3px 6px;
  }
  .mcf-page .na-card-actions {
    padding: 5px 12px;
    min-height: 50px;
  }
  .mcf-page .na-card-actions>button {
    font-size: 12px;
  }
  .mcf-page .na-games {
    grid-template-columns: 1fr !important;
    gap: 19px;
  }
  .mcf-page .na-games .na-game {
    min-height: 220px;
    padding: 22px;
  }
  .mcf-page .na-games .na-game h2 {
    font-size: 23px;
  }
  .mcf-page .na-games .na-game p {
    font-size: 14px;
  }
  .mcf-discover {
    padding: 21px;
    margin: 27px 0;
  }
  .mcf-discover-grid {
    grid-template-columns: 1fr;
  }
  .mcf-page .mcf-back {
    margin: 18px 16px 0;
    max-width: calc(100% - 32px);
    font-size: 12px;
  }
  .mcf-page .nuix-create-grid {
    grid-template-columns: 1fr 1fr;
    gap: 9px;
  }
  .mcf-page .nuix-create-grid button {
    min-height: 95px;
    padding: 14px;
    font-size: 14px;
  }
  .mcf-page #nk-dialog {
    padding: 18px;
    width: calc(100% - 24px);
    border-radius: 18px;
  }
  .mcf-page #nk-dialog h2 {
    font-size: 23px;
  }
  .mcf-page .nk-compose-tools .nk-tool {
    font-size: 12px;
  }
  .mcf-page .nuix-header {
    padding: 16px;
  }
  .mcf-page .nuix-legal {
    padding: 22px;
  }
  .mcf-page .mcf-hero h1 em:after {
    height: 10px;
  }
}

@media (max-width:370px) {
  .mcf-page .nk-brand small {
    display: none;
  }
  .mcf-page .nk-brand {
    font-size: 21px;
  }
  .mcf-page .nk-brand-cat {
    width: 30px;
    height: 32px;
  }
  .mcf-page .mcf-hero {
    grid-template-columns: minmax(0,1fr) 70px;
    padding: 23px 16px;
  }
  .mcf-page .na-card>a {
    grid-template-columns: 95px minmax(0,1fr);
  }
}

@media (prefers-reduced-motion:reduce) {
  .mcf-page *,.mcf-page *:before,.mcf-page *:after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  ::view-transition-group(*),::view-transition-old(*),::view-transition-new(*) {
    animation: none !important;
  }
}

html[data-neko-motion=reduced] .mcf-page *,html[data-neko-motion=reduced] .mcf-page *:before,html[data-neko-motion=reduced] .mcf-page *:after {
  animation: none !important;
  transition: none !important;
  scroll-behavior: auto !important;
}

@media print {
  .mcf-flight,.mcf-menu,.mcf-back {
    display: none !important;
  }
  .mcf-page * {
    box-shadow: none !important;
    animation: none !important;
  }
}

/* Compact desktop wallet, stable accents and a clearly visible keyboard focus. */

@media (min-width:1001px) {
  .mcf-page #nrh-home-summary .nrh-summary>.nk-button {
    grid-column: 3;
    grid-row: 1;
    width: auto;
  }
  .mcf-page #nrh-home-summary .nrh-summary>.nrh-wallet {
    grid-column: 2;
    grid-row: 1;
  }
}

.mcf-page .na-games .na-game>.nk-sprite {
  position: absolute;
}

.mcf-page .na-games .na-game {
  padding-top: 26px;
}

.mcf-page .na-games .na-game>strong {
  width: 100%;
}

.mcf-page .na-feed-heading h2[tabindex]:focus:not(:focus-visible),.mcf-page .na-feed-heading h1[tabindex]:focus:not(:focus-visible) {
  outline: none;
}

@media (min-width:721px) {
  .mcf-page .mcf-back {
    margin-inline-start: max(32px,calc((100% - 1160px)/2 + 32px));
  }
}

/* High contrast comic cover, shared accents and clear section landmarks. */

.mcf-page .mcf-hero {
  border-width: 3px;
  box-shadow: 7px 8px 0 var(--ink);
}

.mcf-page .mcf-hero .nk-eyebrow {
  display: inline-block;
  width: max-content;
  max-width: 100%;
  padding: 7px 10px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 4px;
  font-size: 10px;
  letter-spacing: .06em;
  transform: rotate(-1.5deg);
}

.mcf-page .mcf-hero h1 {
  font-size: clamp(36px,4.7vw,60px);
  line-height: 1.24;
  letter-spacing: -.055em;
  margin: 20px 0;
}

.mcf-page .mcf-hero h1 em {
  color: #bb3929;
  text-shadow: 2px 2px 0 #ffdb59;
}

.mcf-page .nk-night .mcf-hero h1 em {
  color: #ffb099;
  text-shadow: 2px 2px 0 #292721;
}

.mcf-hero h1 em:after {
  height: 11px;
  bottom: 2px;
  background: var(--yellow);
}

.mcf-page .mcf-hero .na-primary {
  background: #292721;
  color: #fffdf5;
  box-shadow: 4px 5px 0 var(--mcf-coral);
  border-color: #292721;
  padding: 14px 20px;
}

.mcf-page .mcf-hero .na-primary:hover {
  box-shadow: 6px 7px 0 var(--mcf-coral);
}

.mcf-hero:before {
  background: linear-gradient(145deg,#ffdf61 55%,#ffc24d 55%);
}

.mcf-orbit {
  border: 3px solid #292721;
  width: 230px;
  height: 205px;
  border-radius: 46% 54% 49% 51%;
  box-shadow: 10px 10px 0 #ed705c;
  background: radial-gradient(#29272125 1px,transparent 1px) 0 0/8px 8px,#fffdf5;
}

.mcf-hero-burst {
  top: -18px;
  right: 0;
  font-size: 60px;
  z-index: 2;
  text-shadow: 3px 3px 0 #fffdf5;
  transform: rotate(11deg);
}

.mcf-hero-speech {
  font-size: 13px;
  left: 1%;
  bottom: -7px;
  z-index: 2;
  border-radius: 4px;
  transform: rotate(-5deg);
}

.mcf-page .mcf-hero-art>.nk-sprite {
  z-index: 1;
  filter: drop-shadow(4px 7px 0 #29272140);
}

.mcf-page .nc-section-title h2:before {
  content: '';
  display: inline-block;
  vertical-align: middle;
  width: 9px;
  height: 25px;
  margin-right: 12px;
  background: var(--mcf-coral);
  transform: skew(-12deg);
  box-shadow: 4px 0 0 var(--yellow);
}

.mcf-page .mcf-menu-panel>button:disabled {
  opacity: .55;
  cursor: default;
}

.mcf-page .na-card .na-chip {
  background: var(--yellow);
  color: #292721;
  border: 1px solid #292721;
}

.mcf-page .na-game:focus-visible {
  outline-offset: 6px;
}

html[data-neko-motion=reduced]::view-transition-group(*),html[data-neko-motion=reduced]::view-transition-old(*),html[data-neko-motion=reduced]::view-transition-new(*) {
  animation: none !important;
}

html[data-mcf-paused] .mcf-page * {
  animation-play-state: paused !important;
}

@media (max-width:1000px) {
  .mcf-orbit {
    width: 180px;
    height: 170px;
  }
  .mcf-hero-burst {
    font-size: 48px;
  }
}

@media (max-width:720px) {
  .mcf-page .mcf-hero {
    min-height: 295px;
    box-shadow: 4px 5px 0 var(--ink);
  }
  .mcf-page .mcf-hero .nk-eyebrow {
    font-size: 7px;
    padding: 6px;
    letter-spacing: 0;
    white-space: normal;
    max-width: calc(100% + 60px);
  }
  .mcf-page .mcf-hero h1 {
    font-size: 32px;
    margin: 18px 0;
    line-height: 1.35;
  }
  .mcf-page .mcf-hero .na-primary {
    font-size: 12px;
    padding: 12px;
  }
  .mcf-hero h1 em:after {
    height: 8px;
  }
  .mcf-orbit {
    width: 104px;
    height: 112px;
    box-shadow: 5px 6px 0 #ed705c;
    border-width: 2px;
  }
  .mcf-hero-burst {
    font-size: 31px;
    top: -12px;
    right: -5px;
  }
  .mcf-hero-speech {
    font-size: 9px;
    bottom: -5px;
    left: -11px;
    padding: 6px;
  }
  .mcf-page .mcf-hero-art>.nk-sprite {
    width: 105px;
    height: 105px;
  }
}

@media (max-width:370px) {
  .mcf-page .mcf-hero h1 {
    font-size: 28px;
  }
  .mcf-page .mcf-hero .na-primary {
    font-size: 11px;
    padding: 11px;
  }
  .mcf-orbit {
    width: 87px;
    height: 95px;
  }
  .mcf-page .mcf-hero-art>.nk-sprite {
    width: 90px;
    height: 90px;
  }
  .mcf-hero-speech {
    font-size: 8px;
    left: -16px;
  }
}





/* 1.2.2: retain browsing navigation on short screens; native typing/chat stays compact. */
@media (max-height: 520px) {
  .mcf-menu-panel {
    box-sizing: border-box;
    max-height: calc(100vh - 150px);
    max-height: calc(100dvh - 150px);
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
  }
}
@media (max-width: 720px) and (max-height: 520px) {
  .mcf-page #neko-app.nk-compact:not(.na-compact-nav):not([data-mcf-view="chat"]):not([data-mcf-view="editor"]) .na-nav { display: flex; }
  .mcf-page #neko-app.nk-compact:not(.na-compact-nav):not([data-mcf-view="chat"]):not([data-mcf-view="editor"]) .na-workspace { padding-bottom: var(--mcs-nav-height, 74px); }
  .mcf-page #neko-app.nk-compact:not(.na-compact-nav):not([data-mcf-view="chat"]):not([data-mcf-view="editor"]) .nk-top { display: flex; height: 54px; }
}
@media (min-width: 721px) and (max-height: 520px) {
  .mcf-page .na-nav { overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; padding-block: 10px; gap: 6px; }
  .mcf-page .na-nav > a { min-height: 54px; flex-shrink: 0; }
  .mcf-page .na-nav-foot { display: none; }
}
