:root {
  --miming-midnight: #050b20;
  --miming-navy: #09183c;
  --miming-sapphire: #1769e8;
  --miming-cyan: #5ee7ff;
  --miming-pearl: #f8fbff;
  --miming-gold: #e8bf65;
  --miming-gold-light: #ffe8a6;
  --miming-ink: #dbe9ff;
  --miming-muted: #91a6c9;
  --miming-panel: rgba(8, 20, 53, .82);
  --miming-line: rgba(151, 210, 255, .28);
  --miming-glow: 0 0 28px rgba(58, 157, 255, .28);
}

html { scroll-behavior: smooth; }

body,
body.custom {
  color: var(--miming-ink) !important;
  background:
    radial-gradient(circle at 50% 0%, rgba(21, 105, 232, .20), transparent 35rem),
    linear-gradient(180deg, #06112f 0%, var(--miming-midnight) 50%, #030714 100%) !important;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  opacity: .2;
  background-image:
    radial-gradient(circle at 15% 30%, #fff 0 1px, transparent 1.5px),
    radial-gradient(circle at 78% 20%, #8eeaff 0 1px, transparent 1.5px),
    radial-gradient(circle at 62% 70%, #fff 0 1px, transparent 1.5px);
  background-size: 170px 170px, 230px 230px, 310px 310px;
}

.loader {
  background: radial-gradient(circle at center, #102c66 0%, #050b20 62%, #02040d 100%) !important;
}

.loader .loader-decoration .icon-logo,
.icon-logo,
img.icon-logo {
  content: url('../img/miming-logo.png');
  width: min(33rem, 82vw) !important;
  height: auto !important;
  filter: drop-shadow(0 10px 25px rgba(0, 0, 0, .55)) drop-shadow(0 0 22px rgba(71, 179, 255, .28));
}

.loading-text { color: #c8dcff !important; letter-spacing: .18em; text-transform: uppercase; }
.loading-bar-background { background: #030817 !important; border: 1px solid rgba(255,255,255,.12); }
.loading-bar { background: linear-gradient(90deg, #1554c4, #66eaff, #f7d77d) !important; box-shadow: 0 0 20px rgba(64, 196, 255, .7); }

header {
  position: relative;
  min-height: clamp(620px, 92vh, 980px);
  overflow: hidden;
  isolation: isolate;
  display: grid;
  place-items: end center;
  background: #07122f url('../img/miming-hero-v1.png') center center / cover no-repeat;
}

header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(1, 6, 21, .14) 0%, transparent 46%, rgba(3, 8, 25, .86) 100%),
    radial-gradient(circle at 50% 42%, transparent 0 17%, rgba(2, 9, 30, .14) 48%, rgba(1, 5, 17, .46) 100%);
}

header::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 160px;
  pointer-events: none;
  background: linear-gradient(transparent, #06112f);
}

header #myVideo { display: none !important; }

.header-overlay2 {
  position: relative !important;
  inset: auto !important;
  z-index: 4;
  width: 100%;
  padding: 0 1rem clamp(3rem, 7vh, 6rem);
}

.header-overlay2::before {
  content: "";
  display: block;
  width: min(690px, 88vw);
  aspect-ratio: 2 / 1;
  margin: 0 auto -1rem;
  background: url('../img/miming-logo.png') center / contain no-repeat;
  filter: drop-shadow(0 16px 25px rgba(0,0,0,.6)) drop-shadow(0 0 32px rgba(57,175,255,.35));
  transform-origin: 50% 58%;
  animation: miming-logo-flight 5.8s ease-in-out infinite, miming-crystal-glow 2.9s ease-in-out infinite;
}

header { animation: miming-sky-drift 24s ease-in-out infinite alternate; }

.header-overlay2::after {
  content: "✦  ·  ✧  ·  ✦  ·  ✧";
  position: absolute;
  left: 50%;
  top: 22%;
  width: min(720px, 92vw);
  color: rgba(193, 240, 255, .72);
  font-size: clamp(10px, 1.3vw, 18px);
  letter-spacing: clamp(1.2rem, 4vw, 3.8rem);
  text-align: center;
  pointer-events: none;
  text-shadow: 0 0 10px #fff, 0 0 24px #43caff;
  transform: translateX(-50%);
  animation: miming-stardust 6.5s linear infinite;
}

@keyframes miming-logo-flight {
  0%, 100% { transform: translateY(0) scale(1) rotate(.001deg); }
  25% { transform: translateY(-8px) scale(1.006) rotate(-.25deg); }
  50% { transform: translateY(-15px) scale(1.012) rotate(.001deg); }
  75% { transform: translateY(-7px) scale(1.006) rotate(.25deg); }
}

@keyframes miming-crystal-glow {
  0%, 100% { filter: drop-shadow(0 16px 25px rgba(0,0,0,.6)) drop-shadow(0 0 22px rgba(57,175,255,.24)); }
  50% { filter: drop-shadow(0 18px 28px rgba(0,0,0,.58)) drop-shadow(0 0 46px rgba(86,213,255,.62)); }
}

@keyframes miming-sky-drift {
  0% { background-position: 48% 50%; }
  100% { background-position: 52% 47%; }
}

@keyframes miming-stardust {
  0% { opacity: 0; transform: translate(-50%, 34px) scale(.9); }
  18% { opacity: .9; }
  72% { opacity: .55; }
  100% { opacity: 0; transform: translate(-50%, -82px) scale(1.12); }
}

.fanpage-box-h,
.fangroup-box-h { z-index: 5; filter: drop-shadow(0 8px 20px rgba(0,0,0,.5)); }

.mb-btnbar { gap: .8rem !important; }
.mb-btn,
.btn-primary,
.btn-success,
.btn-warning {
  color: #fff !important;
  border: 1px solid rgba(137, 220, 255, .56) !important;
  border-radius: 999px !important;
  background: linear-gradient(135deg, #0d3e9c 0%, #1678e8 58%, #43c6ec 100%) !important;
  box-shadow: inset 0 1px rgba(255,255,255,.25), 0 10px 26px rgba(0,75,190,.38), 0 0 18px rgba(54,190,255,.18) !important;
  transition: transform .25s ease, box-shadow .25s ease, filter .25s ease !important;
}

.mb-btn--main {
  color: #091126 !important;
  border-color: var(--miming-gold-light) !important;
  background: linear-gradient(135deg, #fff4c8, #e8b957 55%, #fff1b8) !important;
  box-shadow: inset 0 1px #fff, 0 10px 30px rgba(215,160,52,.35) !important;
}

.mb-btn:hover,
.btn-primary:hover,
.btn-success:hover,
.btn-warning:hover { transform: translateY(-3px); filter: brightness(1.1); box-shadow: 0 15px 34px rgba(18,128,255,.45) !important; }

main,
.prere-show,
.news-show { background: transparent !important; }

.container { position: relative; z-index: 1; }

.card,
.modal-content,
.dropdown-menu,
.news-card,
.intro-page,
.member-box {
  color: var(--miming-ink) !important;
  border: 1px solid var(--miming-line) !important;
  border-radius: 22px !important;
  background: linear-gradient(145deg, rgba(16, 37, 84, .91), rgba(4, 12, 34, .94)) !important;
  box-shadow: inset 0 1px rgba(255,255,255,.07), 0 18px 55px rgba(0,0,0,.34), var(--miming-glow) !important;
  backdrop-filter: blur(18px);
}

.card-title,
.intro-title,
.prere-topline-title,
h1, h2, h3, h4, h5, h6 { color: var(--miming-pearl) !important; }

.intro-badge,
.badge {
  color: #06112d !important;
  border: 1px solid #fff0b0 !important;
  background: linear-gradient(135deg, #fff4c7, var(--miming-gold)) !important;
}

.intro-sub,
.intro-text,
.card-text,
.text-muted { color: var(--miming-muted) !important; }

.hr-soft,
hr { border-color: rgba(107, 184, 255, .25) !important; opacity: 1 !important; }

.form-control,
.form-select,
.input-group-text,
select,
textarea {
  color: #eef7ff !important;
  border-color: rgba(111, 188, 255, .27) !important;
  background-color: rgba(2, 9, 29, .7) !important;
}

.form-control::placeholder,
textarea::placeholder { color: #6f87ad !important; }
.form-control:focus,
.form-select:focus { border-color: var(--miming-cyan) !important; box-shadow: 0 0 0 .2rem rgba(64, 199, 255, .16) !important; }

a { color: #80ddff; }
a:hover { color: var(--miming-gold-light); }

.navbar,
nav {
  border-bottom: 1px solid rgba(130, 201, 255, .2) !important;
  background: rgba(3, 10, 29, .88) !important;
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 35px rgba(0,0,0,.22);
}

.nav-link,
.navbar-brand { color: #e8f3ff !important; }
.nav-link:hover,
.nav-link.active { color: var(--miming-gold-light) !important; }

footer {
  min-height: 170px;
  color: var(--miming-muted) !important;
  border-top: 1px solid rgba(113,190,255,.18);
  background: linear-gradient(180deg, #050b20, #02040d) !important;
}

footer > img { opacity: .09; filter: hue-rotate(150deg) saturate(1.7); }

@media (max-width: 767px) {
  header { min-height: 700px; background-position: 50% center; }
  .header-overlay2::before { width: min(520px, 96vw); margin-bottom: .25rem; }
  .mb-btnbar { padding-inline: .5rem; }
  .mb-btn { min-width: min(320px, 92vw) !important; }
  .fanpage-box-h,
  .fangroup-box-h { transform: scale(.76); transform-origin: top; }
  .card { border-radius: 17px !important; }
}

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

/* Miming-RO 2 Pearl Sky — light presentation */
body,
body.custom {
  color: #20365a !important;
  background:
    radial-gradient(circle at 50% 0%, rgba(91, 184, 255, .22), transparent 36rem),
    linear-gradient(180deg, #fafdff 0%, #edf7ff 48%, #fffaf0 100%) !important;
}

body::before {
  opacity: .35;
  background-image:
    radial-gradient(circle at 15% 30%, #5dbfff 0 1px, transparent 1.5px),
    radial-gradient(circle at 78% 20%, #e5b84e 0 1px, transparent 1.5px),
    radial-gradient(circle at 62% 70%, #70cfff 0 1px, transparent 1.5px);
}

header::after { background: linear-gradient(transparent, #f5fbff); }

main,
.prere-show,
.news-show {
  color: #20365a !important;
  background:
    radial-gradient(circle at 10% 12%, rgba(103, 203, 255, .16), transparent 26rem),
    radial-gradient(circle at 90% 60%, rgba(235, 190, 86, .12), transparent 24rem),
    linear-gradient(180deg, #f5fbff, #ffffff 48%, #eff8ff) !important;
}

.card,
.modal-content,
.dropdown-menu,
.news-card,
.intro-page,
.member-box {
  color: #20365a !important;
  border-color: rgba(63, 139, 207, .20) !important;
  background: linear-gradient(145deg, rgba(255,255,255,.96), rgba(236,247,255,.94)) !important;
  box-shadow: inset 0 1px #fff, 0 18px 45px rgba(42, 94, 145, .13), 0 0 24px rgba(73, 176, 255, .08) !important;
}

.card-title,
.intro-title,
.prere-topline-title,
main h1, main h2, main h3, main h4, main h5, main h6 { color: #102b57 !important; }

.intro-sub,
.intro-text,
.card-text,
.text-muted { color: #60799f !important; }

.form-control,
.form-select,
.input-group-text,
select,
textarea {
  color: #17335d !important;
  border-color: rgba(54, 132, 205, .25) !important;
  background-color: rgba(255,255,255,.88) !important;
}

.form-control::placeholder,
textarea::placeholder { color: #8ca0bd !important; }

.table { color: #294363 !important; --bs-table-bg: transparent !important; }
.table > :not(caption) > * > * { border-color: rgba(48, 126, 194, .16) !important; }

footer {
  color: #7085a3 !important;
  border-top-color: rgba(56,133,199,.18) !important;
  background: linear-gradient(180deg, #eef8ff, #ffffff) !important;
}

footer > img { opacity: .14; filter: hue-rotate(145deg) saturate(1.4) brightness(1.2); }
