:root {
  --ink: #070505;
  --red: #e11d2e;
  --white: #fff;
  --muted: rgba(255, 255, 255, 0.62);
  --line: rgba(255, 255, 255, 0.18);
  --font-display: "Bebas Neue", sans-serif;
  --font-body: "Outfit", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(225, 29, 46, 0.18), transparent 55%),
    var(--ink);
  color: var(--white);
  font-family: var(--font-body);
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.mp-bar {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(7, 5, 5, 0.92);
}

.mp-brand {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  text-decoration: none;
  color: var(--white);
}

.mp-brand__koji {
  font-family: var(--font-display);
  font-size: 1.55rem;
  letter-spacing: 0.08em;
  line-height: 1;
}

.mp-brand__sushi {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--red);
}

.mp-title {
  margin: 0;
  flex: 1;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.mp-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.mp-link {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mp-link:hover {
  color: var(--white);
}

.mp-cta {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  background: var(--red);
  color: var(--white);
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.mp-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 1rem 1rem 1.4rem;
}

.mp-stage {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  padding: 0.5rem 0 1rem;
}

.mp-loading {
  position: absolute;
  z-index: 2;
  margin: 0;
  padding: 0.85rem 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.65);
  color: var(--muted);
  font-size: 0.85rem;
}

.mp-loading[hidden] {
  display: none !important;
}

.mp-book {
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.55);
}

.mp-book .stf__item,
.mp-book .page,
.mp-book .stf__block,
.mp-page-html {
  background: #0a0a0a !important;
  overflow: hidden;
}

.mp-page-html {
  width: 100%;
  height: 100%;
}

.mp-book img,
.mp-page-html img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  display: block !important;
  user-select: none;
  pointer-events: none;
  background: #0a0a0a;
}

.mp-toolbar {
  flex-shrink: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.65rem 0.85rem;
}

.mp-btn {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  color: var(--white);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.mp-btn:hover {
  background: var(--red);
  border-color: var(--red);
}

.mp-page {
  margin: 0;
  min-width: 4.2rem;
  text-align: center;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.mp-chip,
.mp-chip--link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.5rem;
  padding: 0.5rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
}

.mp-chip:hover,
.mp-chip--link:hover {
  background: rgba(225, 29, 46, 0.85);
  border-color: var(--red);
}

.mp-chip[aria-pressed="true"] {
  border-color: rgba(225, 29, 46, 0.55);
  background: rgba(225, 29, 46, 0.15);
}

.mp-lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
  background: rgba(4, 2, 2, 0.96);
}

.mp-lightbox[hidden] {
  display: none !important;
}

.mp-lightbox__bar {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mp-lightbox__bar p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
}

.mp-lightbox__close {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
  font-size: 1.4rem;
  cursor: pointer;
}

.mp-lightbox__close:hover {
  background: var(--red);
  border-color: var(--red);
}

.mp-lightbox__pdf {
  flex: 1;
  width: 100%;
  border: 0;
  background: #111;
}

@media (max-width: 720px) {
  .mp-bar {
    flex-wrap: wrap;
    padding: 0.75rem 0.9rem;
  }

  .mp-title {
    order: 3;
    flex: 1 1 100%;
    margin-top: 0.15rem;
  }

  .mp-main {
    padding: 0.65rem 0.65rem 1rem;
  }
}
