/* MightBee — Native Platform Storefront, Interactive Webnovel Reader,
   12-Cut Full-Bleed Interactive Webtoon Viewer & Creator Studio Styles (mg-platform.css) */

/* 1. Live Server & Economy Bar in Lobby */
.mb-srv-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 8px 14px;
  background: linear-gradient(90deg, #16151a 0%, #221f29 100%);
  color: #f6f4ef;
  font-size: 11.5px;
  border-bottom: 1px solid rgba(245, 184, 46, 0.22);
  cursor: pointer;
  user-select: none;
}
.mb-srv-left {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  white-space: nowrap;
}
.mb-srv-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.22);
  flex-shrink: 0;
}
.mb-srv-metrics {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
}
.mb-srv-metrics::-webkit-scrollbar { display: none; }
.mb-srv-pill {
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #fde68a;
  font-weight: 600;
  font-size: 11px;
  white-space: nowrap;
}

/* 2. Commercial Storefront Sections inside #mgLobbyView */
.mb-store-showcase {
  padding: 6px 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.mb-store-showcase[hidden],
.mg-room-list[hidden] {
  display: none !important;
}
.mb-sec-hd {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}
.mb-sec-hd h2 {
  margin: 0;
  font-size: 15.5px;
  font-weight: 800;
  color: #141417;
  letter-spacing: -0.02em;
}
.mb-sec-more {
  border: 0;
  background: none;
  color: #8a5a00;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  padding: 2px 4px;
}

/* Horizontal / 2-col Book & Webtoon Cards */
.mb-media-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
}
.mb-media-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid #ece8df;
  border-radius: 14px;
  overflow: hidden;
  text-align: left;
  padding: 0;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(20, 18, 12, 0.05);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}
.mb-media-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(20, 18, 12, 0.1);
}
.mb-media-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  background: #19181d;
  overflow: hidden;
}
.mb-media-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.mb-media-tag {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 3px 7px;
  border-radius: 6px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: -0.01em;
  background: rgba(16, 16, 20, 0.84);
  color: #facc15;
  backdrop-filter: blur(4px);
}
.mb-media-rate {
  position: absolute;
  bottom: 7px;
  right: 7px;
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 10.5px;
  font-weight: 700;
  background: rgba(16, 16, 20, 0.78);
  color: #ffffff;
}
.mb-media-body {
  padding: 10px 11px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mb-media-genre {
  font-size: 11px;
  font-weight: 700;
  color: #9a6700;
}
.mb-media-title {
  font-size: 13.5px;
  font-weight: 800;
  color: #141417;
  line-height: 1.32;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.mb-media-hook {
  font-size: 11.5px;
  color: #5c5b63;
  line-height: 1.42;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.mb-media-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 3px;
}
.mb-media-chips span {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 5px;
  background: #f5f2ea;
  color: #49463e;
}

/* Studio Promo Card in Lobby */
.mb-studio-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 15px;
  border-radius: 14px;
  background: linear-gradient(135deg, #1b1812 0%, #2c2312 100%);
  color: #fdfaf2;
  border: 1px solid rgba(250, 204, 21, 0.35);
  cursor: pointer;
  text-align: left;
}
.mb-studio-banner-txt b {
  display: block;
  font-size: 14px;
  color: #fde047;
  margin-bottom: 3px;
}
.mb-studio-banner-txt span {
  display: block;
  font-size: 12px;
  color: #e5e0d5;
  line-height: 1.45;
}
.mb-studio-banner-cta {
  flex-shrink: 0;
  padding: 8px 12px;
  border-radius: 999px;
  background: #facc15;
  color: #181408;
  font-size: 12px;
  font-weight: 800;
}

/* =========================================================
   3. NATIVE INTERACTIVE WEBNOVEL READER (#mgNovelView)
   ========================================================= */
.mg-novel-view {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  overflow: clip;
  background: #fbf8f1;
  color: #1f1d1a;
  position: relative;
}
.mg-novel-view[hidden] { display: none !important; }
.mg-novel-view[data-paper="white"] { background: #ffffff; color: #161618; }
.mg-novel-view[data-paper="sepia"] { background: #f3ead8; color: #2b2318; }
.mg-novel-view[data-paper="night"] { background: #15161a; color: #e6e3dc; }

.mb-nv-topbar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: max(10px, env(safe-area-inset-top)) 12px 10px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  background: inherit;
  z-index: 12;
  flex: none;
}
.mg-novel-view[data-paper="night"] .mb-nv-topbar {
  border-bottom-color: rgba(255, 255, 255, 0.1);
}
.mb-nv-back, .mb-nv-toolbtn {
  border: 1px solid rgba(120, 110, 90, 0.25);
  background: transparent;
  color: inherit;
  border-radius: 8px;
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.mb-nv-top-title {
  flex: 1;
  min-width: 0;
  font-size: 13.5px;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mb-nv-prog {
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 2.5px;
  background: #d99b00;
  width: 0%;
  transition: width 0.12s linear;
}

.mb-nv-prefs {
  padding: 10px 14px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  background: rgba(0, 0, 0, 0.03);
}
.mb-nv-prefs[hidden] { display: none !important; }
.mb-nv-pref-grp {
  display: flex;
  align-items: center;
  gap: 5px;
}
.mb-nv-pref-grp button {
  border: 1px solid rgba(120, 110, 90, 0.3);
  background: transparent;
  color: inherit;
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
}
.mb-nv-pref-grp button.on {
  background: #d99b00;
  color: #fff;
  border-color: #d99b00;
}

.mb-nv-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
  padding: 0 0 48px;
}

.mb-nv-hero {
  display: flex;
  gap: 14px;
  padding: 18px 20px 14px;
  border-bottom: 1px solid rgba(120, 110, 90, 0.16);
}
.mb-nv-cover {
  width: 78px;
  height: 108px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}
.mb-nv-meta {
  flex: 1;
  min-width: 0;
}
.mb-nv-genre {
  font-size: 11.5px;
  font-weight: 700;
  color: #b47800;
  margin-bottom: 3px;
}
.mg-novel-view[data-paper="night"] .mb-nv-genre { color: #facc15; }
.mb-nv-h1 {
  margin: 0 0 4px;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.3;
}
.mb-nv-author {
  font-size: 12px;
  opacity: 0.78;
  margin-bottom: 7px;
}
.mb-nv-statrow {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 11.5px;
  font-weight: 700;
}
.mb-nv-bm {
  border: 1px solid rgba(180, 120, 0, 0.4);
  background: rgba(250, 204, 21, 0.14);
  color: inherit;
  border-radius: 999px;
  padding: 3px 9px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.mb-nv-eplist {
  display: flex;
  gap: 6px;
  padding: 10px 20px;
  overflow-x: auto;
  border-bottom: 1px solid rgba(120, 110, 90, 0.14);
  scrollbar-width: none;
}
.mb-nv-eplist::-webkit-scrollbar { display: none; }
.mb-nv-epbtn {
  flex-shrink: 0;
  border: 1px solid rgba(120, 110, 90, 0.28);
  background: transparent;
  color: inherit;
  padding: 6px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.mb-nv-epbtn.on {
  background: #1f1d1a;
  color: #fbf8f1;
  border-color: #1f1d1a;
}
.mg-novel-view[data-paper="night"] .mb-nv-epbtn.on {
  background: #facc15;
  color: #15161a;
  border-color: #facc15;
}

.mb-nv-manuscript {
  padding: 24px 22px 12px;
  font-family: 'Noto Serif KR', Georgia, serif;
  font-size: 16.5px;
  line-height: 1.98;
  letter-spacing: -0.01em;
}
.mg-novel-view[data-font="sans"] .mb-nv-manuscript {
  font-family: 'Pretendard Variable', Pretendard, -apple-system, sans-serif;
}
.mg-novel-view[data-size="sm"] .mb-nv-manuscript { font-size: 15px; }
.mg-novel-view[data-size="lg"] .mb-nv-manuscript { font-size: 18.5px; line-height: 2.04; }

.mb-nv-ep-heading {
  margin: 0 0 22px;
  padding-bottom: 14px;
  border-bottom: 1px dashed rgba(120, 110, 90, 0.25);
}
.mb-nv-ep-heading h2 {
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.38;
}
.mb-nv-ep-heading span {
  font-size: 12px;
  opacity: 0.68;
  font-family: 'Pretendard Variable', Pretendard, sans-serif;
}

.mb-nv-para-wrap {
  position: relative;
  margin: 0 0 20px;
}
.mb-nv-para {
  margin: 0;
  text-align: justify;
  word-break: keep-all;
}
.mb-nv-para.coauthored {
  padding-left: 13px;
  border-left: 3px solid #d99b00;
}
.mb-nv-coauth-zone {
  margin: 22px 0 18px;
  padding: 15px 16px 12px;
  border-radius: 12px;
  border-left: 3.5px solid #d99b00;
  background: rgba(217, 155, 0, 0.065);
}
.mg-novel-view[data-paper="night"] .mb-nv-coauth-zone {
  background: rgba(250, 204, 21, 0.08);
}
.mb-nv-coauth-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
  font-family: 'Pretendard Variable', Pretendard, sans-serif;
  font-size: 11.5px;
  font-weight: 800;
  color: #a86f00;
}
.mg-novel-view[data-paper="night"] .mb-nv-coauth-head {
  color: #fde047;
}
.mb-nv-coauth-dir {
  margin: 0 0 12px;
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(120, 100, 50, 0.08);
  font-family: 'Pretendard Variable', Pretendard, sans-serif;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.45;
  opacity: 0.88;
}
.mb-nv-skip-type {
  border: 1px solid rgba(180, 125, 0, 0.4);
  background: rgba(250, 204, 21, 0.18);
  color: inherit;
  border-radius: 999px;
  padding: 2px 9px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}
.mb-nv-caret {
  display: inline-block;
  margin-left: 2px;
  color: #d99b00;
  font-weight: 900;
  animation: mbNvCaretBlink 0.72s steps(2, start) infinite;
}
@keyframes mbNvCaretBlink {
  to { opacity: 0; }
}
.mb-nv-para-cmt {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-left: 6px;
  padding: 1px 7px;
  border-radius: 999px;
  border: 1px solid rgba(180, 130, 20, 0.32);
  background: rgba(250, 204, 21, 0.12);
  color: inherit;
  font-family: 'Pretendard Variable', Pretendard, sans-serif;
  font-size: 11px;
  font-weight: 700;
  vertical-align: middle;
  cursor: pointer;
  opacity: 0.85;
}
.mb-nv-para-cmt:hover { opacity: 1; background: rgba(250, 204, 21, 0.28); }

.mb-nv-lore-term {
  border: 0;
  background: rgba(217, 155, 0, 0.14);
  color: inherit;
  font: inherit;
  font-weight: 700;
  padding: 0 3px;
  border-bottom: 2px dotted #c98a00;
  border-radius: 3px;
  cursor: pointer;
}
.mb-nv-lore-box {
  margin: 10px 0 14px;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(217, 155, 0, 0.1);
  border-left: 3px solid #d99b00;
  font-family: 'Pretendard Variable', Pretendard, sans-serif;
  font-size: 13px;
  line-height: 1.55;
}
.mb-nv-lore-box b {
  display: block;
  font-size: 12px;
  color: #9e6c00;
  margin-bottom: 3px;
}
.mg-novel-view[data-paper="night"] .mb-nv-lore-box b { color: #fde047; }

/* AI Scene Illustration Card inside Novel */
.mb-nv-illust-card {
  margin: 22px 0;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid rgba(180, 140, 50, 0.3);
  background: rgba(0, 0, 0, 0.03);
  font-family: 'Pretendard Variable', Pretendard, sans-serif;
  text-align: center;
}
.mb-nv-illust-btn {
  width: 100%;
  padding: 11px 14px;
  border-radius: 10px;
  border: 1px dashed #c98a00;
  background: rgba(250, 204, 21, 0.12);
  color: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}
.mb-nv-illust-img {
  width: 100%;
  border-radius: 10px;
  display: block;
  margin-bottom: 8px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.22);
}
.mb-nv-illust-cap {
  font-size: 11.5px;
  opacity: 0.76;
}

/* Live Co-Author Narrative Rift inside Novel */
.mb-nv-rift {
  margin: 26px 0;
  padding: 16px;
  border-radius: 14px;
  border: 1.5px solid rgba(217, 155, 0, 0.45);
  background: rgba(250, 204, 21, 0.08);
  font-family: 'Pretendard Variable', Pretendard, sans-serif;
}
.mb-nv-rift-kicker {
  font-size: 11px;
  font-weight: 800;
  color: #b47800;
  margin-bottom: 5px;
}
.mg-novel-view[data-paper="night"] .mb-nv-rift-kicker { color: #fde047; }
.mb-nv-rift-q {
  font-size: 14px;
  font-weight: 800;
  line-height: 1.45;
  margin: 0 0 11px;
}
.mb-nv-rift-choices {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 10px;
}
.mb-nv-rift-choice {
  text-align: left;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(140, 110, 40, 0.3);
  background: rgba(255, 255, 255, 0.72);
  color: #1b1916;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.45;
  cursor: pointer;
}
.mg-novel-view[data-paper="night"] .mb-nv-rift-choice {
  background: rgba(255, 255, 255, 0.07);
  color: #f3f0e8;
}
.mb-nv-rift-choice:hover {
  border-color: #d99b00;
}
.mb-nv-rift-form {
  display: flex;
  gap: 6px;
}
.mb-nv-rift-form input {
  flex: 1;
  min-width: 0;
  padding: 9px 11px;
  border-radius: 9px;
  border: 1px solid rgba(140, 110, 40, 0.35);
  background: rgba(255, 255, 255, 0.88);
  color: #161618;
  font-size: 12.5px;
}
.mb-nv-rift-form button {
  padding: 9px 13px;
  border-radius: 9px;
  border: 0;
  background: #1f1d1a;
  color: #fde047;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}

.mb-nv-inner-note {
  margin: 14px 0 18px;
  padding: 12px 14px;
  border-radius: 11px;
  background: rgba(30, 27, 22, 0.92);
  color: #f7f3e8;
  font-family: 'Pretendard Variable', Pretendard, sans-serif;
  font-size: 12.5px;
  line-height: 1.55;
}
.mb-nv-inner-note b {
  color: #fde047;
  display: block;
  margin-bottom: 3px;
}

.mb-nv-foot-actions {
  padding: 16px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-family: 'Pretendard Variable', Pretendard, sans-serif;
}
.mb-nv-next-btn {
  width: 100%;
  padding: 13px 16px;
  border-radius: 12px;
  border: 0;
  background: #facc15;
  color: #171409;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}
.mb-nv-talk-btn {
  width: 100%;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid rgba(120, 110, 90, 0.35);
  background: transparent;
  color: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

/* =========================================================
   4. NATIVE 12-CUT FULL-BLEED INTERACTIVE WEBTOON (#mgWebtoonView)
   ========================================================= */
.mg-webtoon-view {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  overflow: clip;
  background: #0d0d10;
  color: #f5f5f7;
  position: relative;
}
.mg-webtoon-view[hidden] { display: none !important; }

.mb-wt-topbar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: max(10px, env(safe-area-inset-top)) 12px 10px;
  background: rgba(13, 13, 16, 0.96);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 15;
  flex: none;
}
.mb-wt-back, .mb-wt-bgm {
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
}
.mb-wt-bgm.playing {
  background: #facc15;
  color: #141208;
  border-color: #facc15;
}
.mb-wt-title {
  flex: 1;
  min-width: 0;
  font-size: 13.5px;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mb-wt-prog {
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 2.5px;
  background: #facc15;
  width: 0%;
}

.mb-wt-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
  background: #09090b;
}

.mb-wt-hero {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: #141418;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.mb-wt-hero img {
  width: 56px;
  height: 74px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}
.mb-wt-hero-txt {
  flex: 1;
  min-width: 0;
}
.mb-wt-hero-txt span {
  font-size: 11px;
  color: #facc15;
  font-weight: 700;
}
.mb-wt-hero-txt h2 {
  margin: 2px 0 4px;
  font-size: 15.5px;
  font-weight: 800;
}
.mb-wt-hero-txt p {
  margin: 0;
  font-size: 11.5px;
  color: #b8b8c2;
  line-height: 1.4;
}

/* Zero-margin full-bleed comic strip */
.mb-wt-strip {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0;
  background: #050507;
}
.mb-wt-cut {
  position: relative;
  width: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: #0e0e12;
  border-bottom: 4px solid #050507;
}
.mb-wt-cut-img {
  width: 100%;
  height: auto;
  display: block;
  user-select: none;
}
.mb-wt-cut-no {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.52);
  color: rgba(255, 255, 255, 0.72);
  font-size: 10px;
  font-weight: 700;
  pointer-events: none;
}

/* Authentic Comic Speech Balloons & Narration Boxes */
.mb-wt-bub {
  position: absolute;
  max-width: 76%;
  z-index: 4;
  line-height: 1.42;
  font-size: 13px;
  word-break: keep-all;
  white-space: pre-line;
}
.mb-wt-bub.pos-top-left { top: 4.5%; left: 5%; }
.mb-wt-bub.pos-top-right { top: 4.5%; right: 5%; }
.mb-wt-bub.pos-mid-left { top: 42%; left: 5%; }
.mb-wt-bub.pos-mid-right { top: 42%; right: 5%; }
.mb-wt-bub.pos-bot-left { bottom: 5%; left: 5%; }
.mb-wt-bub.pos-bot-right { bottom: 5%; right: 5%; }

.mb-wt-bub.kind-narration {
  background: rgba(252, 250, 244, 0.95);
  color: #151518;
  border: 1.5px solid #18181b;
  padding: 8px 12px;
  border-radius: 3px;
  font-family: 'Noto Serif KR', Georgia, serif;
  font-size: 12.5px;
  font-weight: 600;
  box-shadow: 2px 3px 0 rgba(0, 0, 0, 0.34);
}
.mb-wt-bub.kind-speech {
  background: #ffffff;
  color: #111114;
  border: 2px solid #141417;
  padding: 10px 14px;
  border-radius: 22px;
  font-weight: 700;
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.35);
}
.mb-wt-bub.kind-speech.tail-left::after {
  content: '';
  position: absolute;
  bottom: -9px;
  left: 20px;
  border-width: 9px 8px 0 4px;
  border-style: solid;
  border-color: #ffffff transparent transparent transparent;
  filter: drop-shadow(0 2px 0 #141417);
}
.mb-wt-bub.kind-speech.tail-right::after {
  content: '';
  position: absolute;
  bottom: -9px;
  right: 20px;
  border-width: 9px 4px 0 8px;
  border-style: solid;
  border-color: #ffffff transparent transparent transparent;
  filter: drop-shadow(0 2px 0 #141417);
}
.mb-wt-bub.kind-thought {
  background: rgba(24, 24, 30, 0.88);
  color: #f4f1ea;
  border: 1.5px dashed rgba(250, 204, 21, 0.72);
  padding: 9px 13px;
  border-radius: 18px;
  font-size: 12.5px;
  font-weight: 600;
  backdrop-filter: blur(4px);
}
.mb-wt-bub.kind-shout {
  background: #fffbeb;
  color: #111114;
  border: 2.5px solid #dc2626;
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 900;
  box-shadow: 3px 4px 0 #111114;
}
.mb-wt-spk {
  display: block;
  font-size: 10.5px;
  font-weight: 800;
  color: #9a6700;
  margin-bottom: 2px;
}
.mb-wt-bub.kind-thought .mb-wt-spk { color: #fde047; }

.mb-wt-sfx {
  position: absolute;
  z-index: 3;
  font-size: 20px;
  font-weight: 900;
  color: #fde047;
  text-shadow: -2px -2px 0 #111, 2px -2px 0 #111, -2px 2px 0 #111, 2px 2px 0 #111, 0 4px 10px rgba(0, 0, 0, 0.6);
  transform: rotate(-7deg);
  pointer-events: none;
}
.mb-wt-sfx.pos-top-left { top: 14%; left: 7%; }
.mb-wt-sfx.pos-top-right { top: 14%; right: 7%; }
.mb-wt-sfx.pos-mid-left { top: 48%; left: 7%; }
.mb-wt-sfx.pos-mid-right { top: 48%; right: 7%; }

/* On-Cut Touch Hotspot */
.mb-wt-hotspot-btn {
  position: absolute;
  transform: translate(-50%, -50%);
  z-index: 6;
  max-width: min(84%, 280px);
  padding: 8px 13px;
  border-radius: 999px;
  border: 2px solid #fde047;
  background: rgba(16, 15, 12, 0.88);
  color: #fde047;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 0 0 6px rgba(250, 204, 21, 0.25), 0 6px 18px rgba(0, 0, 0, 0.6);
  white-space: normal;
}
.mb-wt-hotspot-card {
  margin: 0;
  padding: 14px 16px;
  background: linear-gradient(180deg, #1d1910 0%, #141418 100%);
  border-top: 1px solid rgba(250, 204, 21, 0.45);
  border-bottom: 1px solid rgba(250, 204, 21, 0.45);
  color: #f8f5ec;
  font-size: 12.5px;
  line-height: 1.55;
}
.mb-wt-hotspot-card b {
  display: block;
  color: #fde047;
  font-size: 13px;
  margin-bottom: 4px;
}

/* Live Cut Speech-Bubble Director Dock */
.mb-wt-director {
  padding: 16px;
  background: #17161d;
  border-top: 2px solid #facc15;
  border-bottom: 2px solid #facc15;
}
.mb-wt-dir-hd {
  font-size: 11.5px;
  font-weight: 800;
  color: #facc15;
  margin-bottom: 4px;
}
.mb-wt-dir-p {
  margin: 0 0 10px;
  font-size: 13px;
  color: #f1eff7;
  line-height: 1.45;
}
.mb-wt-dir-sugs {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 9px;
}
.mb-wt-dir-sug {
  text-align: left;
  padding: 9px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: #f8f8fa;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.mb-wt-dir-sug:hover { border-color: #facc15; }
.mb-wt-dir-form {
  display: flex;
  gap: 6px;
}
.mb-wt-dir-form input {
  flex: 1;
  min-width: 0;
  padding: 9px 11px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: #0d0d11;
  color: #fff;
  font-size: 12.5px;
}
.mb-wt-dir-form button {
  padding: 9px 13px;
  border-radius: 9px;
  border: 0;
  background: #facc15;
  color: #161306;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}
.mb-wt-dir-result {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 9px;
  background: rgba(250, 204, 21, 0.12);
  color: #fef08a;
  font-size: 12px;
  line-height: 1.45;
}

/* Webtoon Episode Footer: Rating, Next Preview, After-Talk & BEST Comments */
.mb-wt-footer {
  padding: 20px 16px 36px;
  background: #121216;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.mb-wt-rate-card, .mb-wt-next-card, .mb-wt-cmt-card {
  padding: 15px;
  border-radius: 13px;
  background: #1b1b22;
  border: 1px solid rgba(255, 255, 255, 0.09);
}
.mb-wt-rate-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.mb-wt-rate-score {
  font-size: 20px;
  font-weight: 900;
  color: #facc15;
}
.mb-wt-rate-btn {
  padding: 8px 13px;
  border-radius: 999px;
  border: 0;
  background: #facc15;
  color: #161306;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}
.mb-wt-cmt-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}
.mb-wt-cmt-item {
  padding: 11px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 12.5px;
  line-height: 1.48;
}
.mb-wt-cmt-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
  font-size: 11.5px;
}
.mb-wt-best {
  display: inline-block;
  padding: 1px 5px;
  border-radius: 4px;
  background: #ef4444;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  margin-right: 5px;
}
.mb-wt-like-btn {
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: transparent;
  color: #d4d4dc;
  border-radius: 6px;
  padding: 2px 7px;
  font-size: 11px;
  cursor: pointer;
}

/* =========================================================
   5. NATIVE CREATOR STUDIO & 70% REVENUE SIMULATOR (#mgStudioView)
   ========================================================= */
.mg-studio-view {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  overflow: clip;
  background: #f8f6f0;
  color: #171614;
}
.mg-studio-view[hidden] { display: none !important; }

.mb-st-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
  padding: 16px 16px 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.mb-st-card {
  background: #ffffff;
  border: 1px solid #e7e2d6;
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 3px 12px rgba(20, 18, 12, 0.04);
}
.mb-st-card h3 {
  margin: 0 0 6px;
  font-size: 15.5px;
  font-weight: 800;
}
.mb-st-sub {
  margin: 0 0 12px;
  font-size: 12.5px;
  color: #5c5952;
  line-height: 1.48;
}
.mb-st-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}
.mb-st-preset {
  border: 1px solid #dfd8c8;
  background: #faf7ef;
  color: #3d3930;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
}
.mb-st-textarea {
  width: 100%;
  box-sizing: border-box;
  min-height: 76px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #d6cfc0;
  font: inherit;
  font-size: 13px;
  resize: vertical;
  margin-bottom: 10px;
}
.mb-st-row {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}
.mb-st-row select, .mb-st-row input {
  flex: 1;
  min-width: 0;
  padding: 8px 10px;
  border-radius: 9px;
  border: 1px solid #d6cfc0;
  font-size: 12.5px;
  background: #fff;
}
.mb-st-submit {
  width: 100%;
  padding: 13px;
  border-radius: 11px;
  border: 0;
  background: #181611;
  color: #fde047;
  font-size: 13.5px;
  font-weight: 800;
  cursor: pointer;
}

.mb-st-rev-highlight {
  margin-top: 12px;
  padding: 13px 14px;
  border-radius: 12px;
  background: #191712;
  color: #faf6ec;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.mb-st-rev-highlight strong {
  font-size: 19px;
  color: #fde047;
}

/* Shared Slide-up Drawer (Paragraph Comments, 1:1 Character After-Talk, Server HUD) */
.mb-drawer-dim {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 14, 0.62);
  z-index: 90;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.mb-drawer-dim[hidden] { display: none !important; }
.mb-drawer {
  width: 100%;
  max-width: 480px;
  max-height: min(82dvh, calc(100dvh - 24px));
  background: #ffffff;
  color: #161618;
  border-radius: 18px 18px 0 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  overflow: clip;
  box-shadow: 0 -10px 34px rgba(0, 0, 0, 0.32);
}
.mb-drawer-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 16px;
  border-bottom: 1px solid #ece8df;
  font-size: 14px;
}
.mb-drawer-close {
  border: 0;
  background: #f2efe8;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 16px;
  cursor: pointer;
}
.mb-drawer-bd {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 14px 16px 20px;
}

