/* ============================================================
   15 — MINECRAFT
   Konsep: voxel world. HUD survival, hotbar, chat log, crafting
   table, inventory, redstone timer, oak sign, day/night.
   ============================================================ */

:root {
  --mc-bg: #141418;
  --mc-panel: #1e1e24;
  --mc-panel-2: #26262e;
  --mc-slot: #2f2f37;
  --mc-line: #08080a;
  --mc-cream: #e9e3d2;
  --mc-soft: #c9c2ae;
  --mc-muted: #9c9585;
  --mc-green: #7ac74f;
  --mc-green-dark: #3f7a2a;
  --mc-gold: #f5c542;
  --mc-red: #e04b4b;
  --mc-redstone: #ff5555;
  --mc-diamond: #5ee0d0;
  --mc-wood: #a9713d;
  --mc-wood-dark: #6b4423;
  --mc-wood-light: #d3a06a;
  --mc-pixel: "Press Start 2P", "Courier New", monospace;
  --mc-body: "VT323", "Courier New", monospace;
  --mc-bevel: inset 3px 3px 0 rgba(255, 255, 255, 0.13), inset -3px -3px 0 rgba(0, 0, 0, 0.55);
  --mc-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

html { scroll-behavior: smooth; scroll-padding-top: 76px; }

body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(180deg, #6fb7ff 0%, #a8d8ff 58%, #dff3ff 100%);
  color: var(--mc-cream);
  font-family: var(--mc-body);
  font-size: 1.25rem;
  line-height: 1.45;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background 0.8s ease;
}
body.mc-night { background: linear-gradient(180deg, #050817 0%, #0d1630 58%, #18233f 100%); }
body.mc-locked { overflow: hidden; }

[hidden] { display: none !important; }

::selection { background: var(--mc-green); color: #10140c; }

/* ================= SKY ================= */
.mc-sky {
  position: fixed; inset: 0; z-index: -1;
  overflow: hidden; pointer-events: none;
}
.mc-sun, .mc-moon {
  position: absolute; width: 58px; height: 58px;
  transition: opacity 0.8s ease, transform 1s var(--mc-ease);
}
.mc-sun {
  top: 9%; right: 10%;
  background: #ffe08a;
  box-shadow: 0 0 0 6px rgba(255, 224, 138, 0.14), 0 0 70px 20px rgba(255, 210, 110, 0.24);
}
.mc-moon {
  top: 8%; right: 12%; width: 48px; height: 48px;
  background: #dfe6ff;
  box-shadow: 0 0 0 5px rgba(223, 230, 255, 0.08), 0 0 50px 12px rgba(180, 200, 255, 0.16);
  opacity: 0;
}
body.mc-night .mc-sun { opacity: 0; transform: translateY(40px); }
body.mc-night .mc-moon { opacity: 1; }
.mc-stars {
  position: absolute; inset: 0; opacity: 0;
  transition: opacity 0.9s ease;
  background-image:
    radial-gradient(1.5px 1.5px at 10% 18%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 26% 9%, #cfd8ff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 43% 24%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 62% 14%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 78% 28%, #cfd8ff 50%, transparent 51%),
    radial-gradient(1px 1px at 90% 10%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 16% 42%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 54% 38%, #cfd8ff 50%, transparent 51%);
}
body.mc-night .mc-stars { opacity: 0.9; }
.mc-cloud {
  position: absolute; width: 92px; height: 26px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 24px -14px 0 rgba(255, 255, 255, 0.86), 58px -8px 0 rgba(255, 255, 255, 0.86);
  transition: background 0.8s, box-shadow 0.8s;
  animation: mcDrift 46s linear infinite;
}
.mc-cloud--a { top: 15%; left: 4%; }
.mc-cloud--b { top: 27%; right: 12%; transform: scale(0.72); animation-duration: 58s; animation-direction: reverse; }
.mc-cloud--c { top: 6%; left: 44%; transform: scale(0.52); opacity: 0.7; animation-duration: 40s; }
.mc-cloud--d { top: 38%; left: 16%; transform: scale(0.62); opacity: 0.55; animation-duration: 64s; animation-direction: reverse; }
body.mc-night .mc-cloud { background: rgba(150, 165, 200, 0.22); box-shadow: 24px -14px 0 rgba(150, 165, 200, 0.22), 58px -8px 0 rgba(150, 165, 200, 0.22); }
@keyframes mcDrift { 50% { transform: translateX(40px); } }

/* ================= GATE ================= */
.mc-gate {
  position: fixed; inset: 0; z-index: 300;
  display: flex; align-items: center; justify-content: center;
  padding: 22px 14px calc(22px + env(safe-area-inset-bottom));
  overflow-y: auto;
  background-color: #5d3b20;
  background-image:
    linear-gradient(90deg, rgba(0, 0, 0, 0.18) 3px, transparent 3px),
    linear-gradient(rgba(0, 0, 0, 0.18) 3px, transparent 3px),
    radial-gradient(circle at 18% 24%, #7a4e2b 2px, transparent 3px),
    radial-gradient(circle at 72% 64%, #7a4e2b 2px, transparent 3px),
    radial-gradient(circle at 44% 82%, #4f3119 2px, transparent 3px);
  background-size: 32px 32px, 32px 32px, 58px 58px, 46px 46px, 64px 64px;
  transition: opacity 0.5s ease, visibility 0.5s;
}
.mc-gate::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 40%, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.68));
  pointer-events: none;
}
.mc-gate.is-out { opacity: 0; visibility: hidden; pointer-events: none; }
.mc-gate__splash {
  position: absolute; z-index: 3; top: 5%; right: 12%;
  font-family: var(--mc-pixel); font-size: clamp(0.42rem, 2vw, 0.7rem);
  color: var(--mc-gold); transform: rotate(-11deg);
  text-shadow: 3px 3px 0 #3a2508;
  white-space: nowrap;
  animation: mcSplash 1.6s ease-in-out infinite;
}
@keyframes mcSplash { 50% { transform: rotate(-11deg) scale(1.07); } }
.mc-gate__card {
  position: relative; z-index: 2;
  width: min(820px, 100%);
  display: grid; grid-template-columns: 1fr;
  background: #2a2a30;
  border: 4px solid #000;
  box-shadow: inset 3px 3px 0 #4c4c55, inset -3px -3px 0 #101013, 10px 10px 0 rgba(0, 0, 0, 0.45);
  animation: mcGateIn 0.6s var(--mc-ease) both;
}
@keyframes mcGateIn {
  from { opacity: 0; transform: translateY(18px) scale(0.98); }
  to { opacity: 1; transform: none; }
}
.mc-gate__thumb { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #101013; }
.mc-gate__thumb img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; filter: saturate(0.9) contrast(1.03); }
.mc-gate__thumb::after {
  content: ""; position: absolute; inset: 0;
  box-shadow: inset 0 0 0 3px rgba(0, 0, 0, 0.4), inset 0 0 70px rgba(0, 0, 0, 0.35);
}
.mc-gate__thumb-tag {
  position: absolute; z-index: 1; left: 10px; top: 10px;
  font-family: var(--mc-pixel); font-size: 0.3rem; letter-spacing: 0.08em;
  color: #fff; background: rgba(0, 0, 0, 0.6); border: 2px solid #000;
  padding: 4px 6px;
}
.mc-gate__thumb-play {
  position: absolute; z-index: 1; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 46px; height: 46px; display: grid; place-items: center;
  background: rgba(0, 0, 0, 0.5); border: 3px solid rgba(255, 255, 255, 0.8);
  color: #fff; font-size: 16px;
}
.mc-gate__body { padding: 20px 18px 18px; }
.mc-gate__label {
  font-family: var(--mc-pixel); font-size: 0.32rem; letter-spacing: 0.1em;
  color: var(--mc-green); margin-bottom: 10px;
}
.mc-gate__title {
  font-family: var(--mc-pixel); font-weight: 400;
  font-size: clamp(1.05rem, 5vw, 1.7rem); line-height: 1.55;
  color: var(--mc-cream);
  text-shadow: 3px 3px 0 #0b0b0d;
  margin-bottom: 8px;
}
.mc-gate__seed {
  font-family: var(--mc-pixel); font-size: 0.3rem; letter-spacing: 0.05em;
  color: var(--mc-muted); margin-bottom: 14px;
}
.mc-gate__seed span { color: var(--mc-gold); }
.mc-gate__meta {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px;
  margin: 0 0 14px;
}
.mc-gate__meta div {
  background: #1c1c21; border: 2px solid #000;
  box-shadow: inset 2px 2px 0 #35353c, inset -2px -2px 0 #0d0d0f;
  padding: 7px 8px;
}
.mc-gate__meta dt {
  font-family: var(--mc-pixel); font-size: 0.24rem; letter-spacing: 0.04em;
  color: var(--mc-muted); margin-bottom: 4px;
}
.mc-gate__meta dd { margin: 0; font-size: 1rem; color: var(--mc-cream); line-height: 1.2; }
.mc-gate__guest {
  background: rgba(0, 0, 0, 0.28); border: 2px solid #000;
  padding: 8px 10px; margin-bottom: 14px;
}
.mc-gate__guest span {
  display: block; font-family: var(--mc-pixel); font-size: 0.24rem;
  letter-spacing: 0.1em; color: var(--mc-muted); margin-bottom: 3px;
}
.mc-gate__guest strong { font-size: 1.1rem; color: var(--mc-green); font-weight: 400; }
.mc-gate__hint {
  margin-top: 10px; font-size: 0.9rem; color: var(--mc-muted);
  text-align: center;
}
.mc-gate__back {
  display: block; width: max-content; margin: 8px auto 0;
  font-size: 0.9rem; color: #b8ae9a; text-decoration: none;
  border-bottom: 1px solid transparent;
}
.mc-gate__back:hover { color: var(--mc-cream); border-color: currentColor; }

/* ================= BUTTONS ================= */
.mc-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 10px 14px;
  background: #7d7d86;
  color: #fff;
  border: 3px solid #000;
  box-shadow: inset 2px 2px 0 #b3b3bc, inset -2px -2px 0 #3a3a42, 3px 3px 0 rgba(0, 0, 0, 0.35);
  font-family: var(--mc-pixel); font-size: 0.4rem; line-height: 1.6;
  letter-spacing: 0.03em; text-decoration: none; cursor: pointer;
  transition: background 0.15s, transform 0.1s, box-shadow 0.1s;
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.5);
}
.mc-btn:hover, .mc-btn:focus-visible { background: #8f8f99; }
.mc-btn:active { transform: translate(2px, 2px); box-shadow: inset 2px 2px 0 #3a3a42, inset -2px -2px 0 #b3b3bc, 1px 1px 0 rgba(0, 0, 0, 0.35); }
.mc-btn--join, .mc-btn--craft {
  background: var(--mc-green-dark);
  box-shadow: inset 2px 2px 0 #7ac74f, inset -2px -2px 0 #244d17, 3px 3px 0 rgba(0, 0, 0, 0.4);
}
.mc-btn--join:hover, .mc-btn--craft:hover { background: #4c8f33; }
.mc-btn--ghost { background: #4a4a52; }
.mc-btn--ghost:hover { background: #5a5a64; }
.mc-btn--sign { background: var(--mc-wood-dark); box-shadow: inset 2px 2px 0 var(--mc-wood), inset -2px -2px 0 #3d2510, 3px 3px 0 rgba(0, 0, 0, 0.3); }
.mc-btn--sign:hover { background: #7d5029; }
.mc-btn--full { width: 100%; }

/* ================= HUD ================= */
.mc-hud {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: calc(54px + env(safe-area-inset-top));
  padding: env(safe-area-inset-top) 10px 0;
  display: flex; align-items: center; gap: 10px;
  background: rgba(14, 14, 17, 0.9);
  backdrop-filter: blur(6px);
  border-bottom: 3px solid #000;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.08);
  opacity: 0; visibility: hidden; transform: translateY(-100%);
  transition: opacity 0.4s, transform 0.4s var(--mc-ease), visibility 0.4s;
}
body.mc-live .mc-hud { opacity: 1; visibility: visible; transform: none; }
.mc-hud__left { display: flex; align-items: center; gap: 8px; flex: 0 1 auto; min-width: 0; }
.mc-bars { display: flex; flex-direction: column; gap: 1px; }
.mc-hearts, .mc-hunger { display: flex; gap: 1px; line-height: 1; }
.mc-hearts span {
  color: #ff4d4d; font-size: 11px;
  text-shadow: 1px 1px 0 #4a0000;
}
.mc-hunger span { font-size: 8px; line-height: 1.2; filter: saturate(0.9); }
.mc-xp { display: flex; align-items: center; gap: 5px; margin-top: 1px; }
.mc-xp__lvl { font-family: var(--mc-pixel); font-size: 0.3rem; color: var(--mc-green); text-shadow: 1px 1px 0 #0a2a06; }
.mc-xp__bar { display: block; width: 70px; height: 4px; background: #222; border: 1px solid #000; }
.mc-xp__bar i { display: block; width: 86%; height: 100%; background: var(--mc-green); }
.mc-hud__brand { flex: 1; text-align: center; min-width: 0; }
.mc-hud__brand strong {
  display: block; font-family: var(--mc-pixel); font-size: 0.42rem;
  color: var(--mc-cream); letter-spacing: 0.04em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mc-hud__brand span {
  display: block; font-size: 0.8rem; color: var(--mc-muted);
  letter-spacing: 0.04em; margin-top: 2px;
}
.mc-hud__right { display: flex; align-items: center; gap: 7px; flex: 0 0 auto; }
.mc-coords { font-size: 0.86rem; color: var(--mc-muted); white-space: nowrap; }
.mc-daybtn {
  padding: 6px 7px;
  background: #2a2a31; color: var(--mc-cream);
  border: 2px solid #000; box-shadow: inset 2px 2px 0 #46464f, inset -2px -2px 0 #131316;
  font-family: var(--mc-pixel); font-size: 0.28rem;
}
.mc-daybtn:hover { background: #35353e; }
.mc-hud__back {
  font-size: 0.84rem; color: var(--mc-muted); text-decoration: none;
  border-bottom: 1px solid transparent; white-space: nowrap;
}
.mc-hud__back:hover { color: var(--mc-cream); border-color: currentColor; }

/* ================= APP / HERO ================= */
.mc-app {
  opacity: 0; visibility: hidden;
  transition: opacity 0.65s ease, visibility 0.65s;
}
body.mc-live .mc-app { opacity: 1; visibility: visible; }
.mc-app main { padding-bottom: 88px; }

.mc-zone {
  position: relative;
  padding: 46px max(16px, calc((100vw - 940px) / 2)) 48px;
}
.mc-zone--hero {
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding-top: calc(104px + env(safe-area-inset-top));
  padding-bottom: 130px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.08) 0%, rgba(0, 0, 0, 0.42) 100%);
}
.mc-zone--hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 54px;
  background-color: #5f8f3e;
  background-image:
    linear-gradient(90deg, rgba(0, 0, 0, 0.22) 3px, transparent 3px),
    linear-gradient(rgba(0, 0, 0, 0.22) 3px, transparent 3px),
    linear-gradient(180deg, #7ac74f 0 8px, transparent 8px);
  background-size: 38px 38px, 38px 38px, 100% 100%;
  border-top: 3px solid #2f4f1d;
  box-shadow: inset 0 10px 0 rgba(255, 255, 255, 0.08);
}
.mc-hero { position: relative; z-index: 2; width: min(760px, 100%); margin: 0 auto; }
.mc-hero__kicker {
  display: inline-block;
  font-family: var(--mc-pixel); font-size: 0.34rem; letter-spacing: 0.12em;
  color: var(--mc-green);
  background: rgba(10, 10, 13, 0.72); border: 2px solid #000;
  box-shadow: inset 2px 2px 0 #34343c, inset -2px -2px 0 #0b0b0d;
  padding: 6px 8px; margin-bottom: 16px;
}
.mc-hero__title {
  font-family: var(--mc-pixel); font-weight: 400;
  font-size: clamp(1.8rem, 9.2vw, 3.6rem); line-height: 1.32;
  color: var(--mc-cream);
  text-shadow: 4px 4px 0 #0b0b0d, 8px 8px 0 rgba(0, 0, 0, 0.25);
  margin-bottom: 12px;
}
.mc-hero__title span { color: var(--mc-green); }
.mc-hero__date {
  font-family: var(--mc-pixel); font-size: 0.42rem; letter-spacing: 0.12em;
  color: var(--mc-gold); margin-bottom: 18px;
  text-shadow: 2px 2px 0 #3a2508;
}
.mc-hero__lead {
  max-width: 54ch; padding: 13px 15px;
  background: rgba(16, 16, 20, 0.82);
  border: 3px solid #000;
  box-shadow: inset 3px 3px 0 #3a3a43, inset -3px -3px 0 #0b0b0d;
  font-size: 1.18rem; line-height: 1.45; color: var(--mc-soft);
  margin-bottom: 14px;
}
.mc-hero__guest { font-size: 1.05rem; color: var(--mc-soft); margin-bottom: 18px; text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.45); }
.mc-hero__guest strong { color: var(--mc-green); font-weight: 400; }
.mc-hero__actions { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 22px; }

.mc-blockwall { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 8px; }
.mc-worldblock {
  position: relative;
  width: 56px; height: 56px;
  border: 3px solid #000;
  box-shadow: inset 3px 3px 0 rgba(255, 255, 255, 0.24), inset -3px -3px 0 rgba(0, 0, 0, 0.4), 4px 4px 0 rgba(0, 0, 0, 0.35);
  image-rendering: pixelated;
  transition: transform 0.15s, opacity 0.25s;
}
.mc-worldblock span {
  position: absolute; left: 0; right: 0; bottom: 2px;
  font-family: var(--mc-pixel); font-size: 0.2rem; letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.9); text-shadow: 1px 1px 0 #000;
}
.mc-worldblock:hover { transform: translateY(-3px); }
.mc-worldblock--grass {
  background-color: #8b5a2b;
  background-image:
    linear-gradient(180deg, #7ac74f 0 14px, transparent 14px),
    radial-gradient(circle at 30% 70%, #6f4522 2px, transparent 3px),
    radial-gradient(circle at 70% 50%, #6f4522 2px, transparent 3px);
  background-size: 100% 100%, 18px 18px, 22px 22px;
}
.mc-worldblock--dirt {
  background-color: #8b5a2b;
  background-image:
    radial-gradient(circle at 25% 30%, #6f4522 2px, transparent 3px),
    radial-gradient(circle at 66% 70%, #a06a37 2px, transparent 3px),
    radial-gradient(circle at 42% 60%, #6f4522 2px, transparent 3px);
  background-size: 18px 18px, 22px 22px, 26px 26px;
}
.mc-worldblock--stone {
  background-color: #8c8c8c;
  background-image:
    linear-gradient(135deg, rgba(255, 255, 255, 0.12) 25%, transparent 25% 50%, rgba(0, 0, 0, 0.12) 50% 75%, transparent 75%);
  background-size: 14px 14px;
}
.mc-worldblock--diamond {
  background-color: #8c8c8c;
  background-image:
    radial-gradient(circle at 25% 30%, #5ee0d0 3px, transparent 4px),
    radial-gradient(circle at 65% 62%, #5ee0d0 3px, transparent 4px),
    radial-gradient(circle at 40% 80%, #5ee0d0 2px, transparent 3px);
}
.mc-worldblock.is-broken { opacity: 0.15; transform: scale(0.7) rotate(4deg); }
.mc-particle {
  position: absolute; z-index: 5; width: 6px; height: 6px;
  background: #d9c9a8; pointer-events: none;
  animation: mcParticle 0.6s ease-out forwards;
}
@keyframes mcParticle {
  from { opacity: 1; transform: translate(0, 0); }
  to { opacity: 0; transform: translate(var(--dx), var(--dy)); }
}
.mc-hero__hint {
  display: inline-block;
  font-size: 0.92rem; color: var(--mc-cream);
  background: rgba(10, 10, 13, 0.72);
  border: 2px solid #000;
  box-shadow: inset 2px 2px 0 #34343c, inset -2px -2px 0 #0b0b0d;
  padding: 4px 9px;
}
.mc-scrollhint {
  position: relative; z-index: 2;
  margin: 22px auto 0; text-align: center;
  font-family: var(--mc-pixel); font-size: 0.28rem; letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.75); text-shadow: 2px 2px 0 #000;
  animation: mcBlink 2s steps(2) infinite;
}
@keyframes mcBlink { 50% { opacity: 0.35; } }

/* ================= PANELS ================= */
.mc-panel {
  position: relative;
  width: 100%; max-width: 940px; margin: 0 auto;
  padding: 16px;
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.012) 0 2px, transparent 2px 4px),
    var(--mc-panel);
  border: 3px solid #000;
  box-shadow: inset 3px 3px 0 #3f3f48, inset -3px -3px 0 #0b0b0d, 8px 8px 0 rgba(0, 0, 0, 0.3);
}
.mc-zone--right .mc-panel { margin-left: auto; max-width: 780px; }
.mc-zone--center .mc-panel { max-width: 680px; }
.mc-panel__head {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center;
  gap: 10px; padding-bottom: 12px; margin-bottom: 14px;
  border-bottom: 2px solid #000;
  box-shadow: 0 2px 0 rgba(255, 255, 255, 0.06);
}
.mc-panel__icon {
  width: 40px; height: 40px; display: grid; place-items: center;
  font-size: 18px; background: var(--mc-panel-2);
  border: 2px solid #000; box-shadow: var(--mc-bevel);
}
.mc-panel__kicker {
  font-family: var(--mc-pixel); font-size: 0.28rem; letter-spacing: 0.06em;
  color: var(--mc-green); margin-bottom: 5px;
}
.mc-panel__head h2 {
  font-family: var(--mc-pixel); font-weight: 400;
  font-size: clamp(0.85rem, 3.8vw, 1.2rem); line-height: 1.5;
  color: var(--mc-cream); text-shadow: 2px 2px 0 #0b0b0d;
}
.mc-panel__meta {
  font-family: var(--mc-pixel); font-size: 0.26rem; letter-spacing: 0.04em;
  color: var(--mc-muted); border: 2px solid #000;
  background: #151519; padding: 4px 5px; white-space: nowrap;
}

/* ================= PLAYER CARDS ================= */
.mc-players { display: grid; gap: 12px; }
.mc-player {
  background: var(--mc-panel-2);
  border: 2px solid #000;
  box-shadow: var(--mc-bevel);
  padding: 12px;
}
.mc-player__top { display: flex; gap: 12px; align-items: flex-start; }
.mc-player__avatar {
  position: relative; flex: 0 0 auto;
  width: 78px; height: 78px;
  border: 3px solid #000; box-shadow: var(--mc-bevel);
  overflow: hidden; background: #101013;
}
.mc-player__avatar img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
.mc-player__status {
  position: absolute; right: 3px; bottom: 3px;
  width: 8px; height: 8px; background: var(--mc-green);
  border: 1px solid #000; box-shadow: 0 0 6px rgba(122, 199, 79, 0.8);
}
.mc-player__id { min-width: 0; flex: 1; }
.mc-player__name {
  font-family: var(--mc-pixel); font-size: 0.55rem; line-height: 1.6;
  color: var(--mc-cream); margin-bottom: 3px;
}
.mc-player__tag {
  font-size: 0.92rem; color: var(--mc-green); letter-spacing: 0.02em;
}
.mc-player__meta { font-size: 0.86rem; color: var(--mc-muted); margin-top: 2px; }
.mc-player__hearts { display: flex; gap: 1px; margin-top: 5px; }
.mc-player__hearts span { color: #ff4d4d; font-size: 10px; text-shadow: 1px 1px 0 #3a0000; }
.mc-player__bio { font-size: 1.05rem; line-height: 1.4; color: var(--mc-soft); margin: 10px 0 9px; }
.mc-player__parents { font-size: 0.92rem; line-height: 1.35; color: var(--mc-muted); border-top: 2px dashed #3a3a43; padding-top: 8px; }
.mc-player__ig {
  display: inline-block; margin-top: 6px;
  font-size: 0.94rem; color: var(--mc-diamond); text-decoration: none;
  border-bottom: 1px solid transparent;
}
.mc-player__ig:hover { border-color: currentColor; }

/* ================= CHAT LOG ================= */
.mc-panel--chat { background-color: #17171b; }
.mc-chatlog {
  max-height: 380px; overflow-y: auto;
  padding: 10px 11px;
  background: #0d0d10;
  border: 2px solid #000;
  box-shadow: inset 2px 2px 0 #2c2c33, inset -2px -2px 0 #060607;
  font-size: 1.1rem; line-height: 1.5;
  scrollbar-width: thin;
}
.mc-chatlog::-webkit-scrollbar { width: 8px; }
.mc-chatlog::-webkit-scrollbar-track { background: #0a0a0c; }
.mc-chatlog::-webkit-scrollbar-thumb { background: #3a3a43; border: 1px solid #000; }
.mc-msg { margin-bottom: 3px; word-wrap: break-word; }
.mc-msg__time { color: #6f6f78; margin-right: 5px; font-size: 0.94rem; }
.mc-msg__name { margin-right: 4px; }
.mc-msg--alya .mc-msg__name { color: #ff9ec4; }
.mc-msg--raka .mc-msg__name { color: #7fdcff; }
.mc-msg--system { color: var(--mc-gold); }
.mc-msg--system .mc-msg__time { color: #6f6f78; }
.mc-msg--guest .mc-msg__name { color: var(--mc-green); }
.mc-msg__text { color: #d8d2c2; }
.mc-msg--system .mc-msg__text { color: var(--mc-gold); }
.mc-chat__date {
  display: flex; align-items: center; gap: 8px;
  margin: 10px 0 7px; font-size: 0.82rem; color: #6f6f78;
  font-family: var(--mc-pixel);
}
.mc-chat__date::before, .mc-chat__date::after {
  content: ""; height: 1px; background: #2a2a31; flex: 1;
}
.mc-chat__hint { margin-top: 9px; font-size: 0.88rem; color: #6f6f78; }
.mc-chat__hint span { color: var(--mc-green); animation: mcBlink 1.2s steps(2) infinite; }

/* ================= CRAFTING ================= */
.mc-craft {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 12px 0 6px;
}
.mc-craft__grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px;
  padding: 5px;
  background: #3a2c1e;
  border: 3px solid #000;
  box-shadow: inset 3px 3px 0 #6b5238, inset -3px -3px 0 #1c130b;
  transition: box-shadow 0.2s;
}
.mc-ing {
  position: relative;
  width: 54px; height: 54px;
  display: grid; place-items: center;
  font-size: 20px;
  background: var(--mc-slot);
  border: 2px solid #000;
  box-shadow: inset 2px 2px 0 #4a4a54, inset -2px -2px 0 #151519;
  color: var(--mc-cream);
}
.mc-ing:hover, .mc-ing:focus-visible { background: #3b3b45; }
.mc-ing__tip {
  position: absolute; left: 50%; bottom: calc(100% + 5px);
  transform: translateX(-50%);
  font-family: var(--mc-pixel); font-size: 0.24rem; line-height: 1.6;
  background: #100e1f; color: var(--mc-cream);
  border: 2px solid #5a4a9a; padding: 4px 5px;
  white-space: nowrap; opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.15s, visibility 0.15s;
  z-index: 4;
}
.mc-ing:hover .mc-ing__tip, .mc-ing:focus-visible .mc-ing__tip { opacity: 1; visibility: visible; }
.mc-craft__arrow {
  font-size: 1.4rem; color: var(--mc-muted);
  font-family: var(--mc-pixel);
}
.mc-craft__out {
  width: 72px; height: 72px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  background: #2a2a31; border: 3px solid #000;
  box-shadow: inset 2px 2px 0 #4a4a54, inset -2px -2px 0 #151519;
  transition: background 0.25s, box-shadow 0.25s, transform 0.25s var(--mc-ease);
}
.mc-craft__q { font-family: var(--mc-pixel); font-size: 0.9rem; color: var(--mc-muted); }
.mc-craft__out small { font-family: var(--mc-pixel); font-size: 0.2rem; color: #6f6f78; }
.mc-craft__out.is-crafted {
  background: #1f3a17;
  box-shadow: inset 2px 2px 0 #4f8a37, inset -2px -2px 0 #0d1f08, 0 0 18px rgba(122, 199, 79, 0.3);
  transform: scale(1.04);
}
.mc-craft__out.is-crafted .mc-craft__q { color: var(--mc-green); font-size: 0.42rem; line-height: 1.5; text-align: center; }
.mc-craft__out.is-crafted small { color: var(--mc-green); }
.mc-craft__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.mc-craft__hint { flex: 1 1 220px; font-size: 0.94rem; color: var(--mc-muted); line-height: 1.35; }
.mc-craft.is-crafting .mc-craft__grid { animation: mcCraftFlash 0.5s ease; }
@keyframes mcCraftFlash {
  0%, 100% { box-shadow: inset 3px 3px 0 #6b5238, inset -3px -3px 0 #1c130b; }
  40% { box-shadow: inset 3px 3px 0 #6b5238, inset -3px -3px 0 #1c130b, 0 0 22px rgba(245, 197, 66, 0.6); }
}
.mc-eventdetails { margin-top: 18px; border-top: 2px dashed #3a3a43; padding-top: 14px; scroll-margin-top: 84px; animation: mcReveal 0.4s var(--mc-ease); }
@keyframes mcReveal { from { opacity: 0; transform: translateY(10px); } }
.mc-eventdetails__date {
  font-family: var(--mc-pixel); font-size: 0.32rem; letter-spacing: 0.06em;
  color: var(--mc-gold); text-align: center; margin-bottom: 12px;
}
.mc-events { display: grid; gap: 10px; }
.mc-event {
  background: var(--mc-panel-2);
  border: 2px solid #000;
  box-shadow: var(--mc-bevel);
  padding: 12px 13px;
}
.mc-event__top { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.mc-event__icon { font-size: 15px; }
.mc-event__name { font-family: var(--mc-pixel); font-size: 0.38rem; letter-spacing: 0.04em; color: var(--mc-green); }
.mc-event__time {
  display: inline-block; font-family: var(--mc-pixel); font-size: 0.28rem;
  color: #10140c; background: var(--mc-gold); border: 2px solid #000;
  padding: 4px 5px; margin-bottom: 7px;
}
.mc-event__venue { font-size: 1.15rem; line-height: 1.25; color: var(--mc-cream); }
.mc-event__addr { font-size: 0.94rem; color: var(--mc-muted); line-height: 1.35; margin: 2px 0 10px; }
.mc-event__actions { display: flex; flex-wrap: wrap; gap: 6px; }
.mc-event__actions .mc-btn { padding: 7px 8px; font-size: 0.26rem; border-width: 2px; }

/* ================= REDSTONE ================= */
.mc-panel--redstone { background-color: #191419; }
.mc-redstone {
  position: relative;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px;
  padding: 18px 4px 20px;
}
.mc-repeater {
  position: relative;
  text-align: center;
  padding: 12px 3px 9px;
  background: #241c24;
  border: 3px solid #000;
  box-shadow: inset 2px 2px 0 #4a3a4a, inset -2px -2px 0 #0e0a0e;
}
.mc-repeater__torch {
  position: absolute; left: 50%; top: -9px;
  width: 8px; height: 10px; transform: translateX(-50%);
  background: var(--mc-redstone);
  border: 2px solid #4a0a0a;
  box-shadow: 0 0 10px rgba(255, 85, 85, 0.8);
  animation: mcTorch 1.6s ease-in-out infinite;
}
@keyframes mcTorch { 50% { opacity: 0.55; box-shadow: 0 0 4px rgba(255, 85, 85, 0.4); } }
.mc-repeater strong {
  display: block;
  font-family: var(--mc-pixel); font-weight: 400;
  font-size: clamp(0.75rem, 4vw, 1.35rem); line-height: 1.3;
  color: var(--mc-redstone); font-variant-numeric: tabular-nums;
  text-shadow: 0 0 8px rgba(255, 85, 85, 0.6), 2px 2px 0 #3a0505;
}
.mc-repeater__label {
  display: block; margin-top: 5px;
  font-family: var(--mc-pixel); font-size: 0.22rem; letter-spacing: 0.04em;
  color: #8a7a86;
}
.mc-redstone__dust {
  position: absolute; left: 4%; right: 4%; bottom: 7px; height: 4px;
  background: repeating-linear-gradient(90deg, #ff5555 0 7px, transparent 7px 12px);
  box-shadow: 0 0 8px rgba(255, 85, 85, 0.4);
  opacity: 0.8;
}
.mc-count__date {
  text-align: center; font-size: 1rem; color: var(--mc-muted);
  margin-top: 4px;
}

/* ================= INVENTORY ================= */
.mc-inventory { display: grid; grid-template-columns: repeat(2, 1fr); gap: 7px; }
.mc-item {
  position: relative; padding: 4px;
  background: var(--mc-slot);
  border: 2px solid #000;
  box-shadow: inset 2px 2px 0 #4a4a54, inset -2px -2px 0 #151519;
  transition: border-color 0.18s, transform 0.2s var(--mc-ease);
}
.mc-item:hover { border-color: #fff; transform: translateY(-2px); }
.mc-item img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border: 1px solid #000; }
.mc-item__count {
  position: absolute; right: 7px; bottom: 7px;
  font-family: var(--mc-pixel); font-size: 0.26rem; color: #fff;
  text-shadow: 1px 1px 0 #000;
}
.mc-item__name {
  display: block; margin-top: 5px; padding: 0 2px;
  font-size: 0.86rem; line-height: 1.2; color: var(--mc-soft);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mc-item:hover .mc-item__name { color: var(--mc-cream); }
.mc-inventory__hint { margin-top: 10px; font-size: 0.9rem; color: var(--mc-muted); }

/* ================= MAP ================= */
.mc-map {
  position: relative; height: 250px; overflow: hidden;
  background: #c2a878;
  border: 3px solid #000;
  box-shadow: inset 2px 2px 0 #e0cba2, inset -2px -2px 0 #6f5a35;
}
.mc-map__terrain { position: absolute; inset: 0; }
.mc-map__water {
  position: absolute; right: -4%; top: -6%; width: 40%; height: 54%;
  background: #5b8fa8;
  box-shadow: inset 0 0 0 4px #4a7a90;
  transform: rotate(-3deg);
}
.mc-map__forest {
  position: absolute; left: 6%; top: 10%; width: 34%; height: 44%;
  background: #5f8f3e;
  background-image:
    radial-gradient(circle at 20% 30%, #4a7330 3px, transparent 4px),
    radial-gradient(circle at 60% 60%, #4a7330 3px, transparent 4px),
    radial-gradient(circle at 80% 25%, #4a7330 3px, transparent 4px);
  background-size: 24px 24px;
  box-shadow: inset 0 0 0 4px #4a7330;
}
.mc-map__path {
  position: absolute; left: 24%; top: 46%; width: 54%; height: 12px;
  background: #e0cba2;
  border-top: 3px dashed #8a7148; border-bottom: 3px dashed #8a7148;
  transform: rotate(14deg);
}
.mc-map__marker {
  position: absolute; left: 64%; top: 40%;
  width: 26px; height: 26px;
  background: #d94a4a; border: 3px solid #fff;
  transform: translate(-50%, -50%) rotate(45deg);
  box-shadow: 0 0 0 3px #6b1f1f, 0 0 0 7px rgba(217, 74, 74, 0.2);
  animation: mcMarker 2.2s ease-in-out infinite;
}
.mc-map__marker i {
  position: absolute; inset: 7px; background: #fff;
  border: 1px solid #6b1f1f;
}
@keyframes mcMarker { 50% { box-shadow: 0 0 0 3px #6b1f1f, 0 0 0 13px rgba(217, 74, 74, 0.06); } }
.mc-map__label {
  position: absolute; left: 50%; top: 58%; transform: translateX(-50%);
  font-family: var(--mc-pixel); font-size: 0.24rem; letter-spacing: 0.04em;
  color: #3a2a12; background: rgba(255, 248, 230, 0.86);
  border: 2px solid #6f5a35; padding: 4px 5px; white-space: nowrap;
}
.mc-map__compass {
  position: absolute; left: 9px; top: 9px;
  width: 26px; height: 26px; display: grid; place-items: center;
  font-family: var(--mc-pixel); font-size: 0.32rem; color: #3a2a12;
  background: rgba(255, 248, 230, 0.86); border: 2px solid #6f5a35;
}
.mc-map__coords {
  position: absolute; left: 9px; bottom: 8px;
  font-family: var(--mc-pixel); font-size: 0.24rem; letter-spacing: 0.03em;
  color: #3a2a12; background: rgba(255, 248, 230, 0.86);
  border: 2px solid #6f5a35; padding: 3px 5px;
}
.mc-loc { margin-top: 14px; }
.mc-loc__tag { font-family: var(--mc-pixel); font-size: 0.28rem; color: var(--mc-gold); margin-bottom: 5px; }
.mc-loc__venue { font-size: 1.35rem; line-height: 1.2; color: var(--mc-cream); }
.mc-loc__address { font-size: 1rem; color: var(--mc-muted); margin: 2px 0 11px; }
.mc-loc__actions { display: flex; flex-wrap: wrap; gap: 7px; }
.mc-loc__actions .mc-btn { padding: 8px 9px; font-size: 0.28rem; }
.mc-loc__note { font-size: 0.9rem; color: var(--mc-muted); margin-top: 10px; line-height: 1.4; }

/* ================= SIGN ================= */
.mc-panel--sign { background-color: #1c1712; }
.mc-sign { max-width: 520px; margin: 0 auto; }
.mc-sign__board {
  position: relative; z-index: 2;
  padding: 18px 16px 20px;
  background-color: var(--mc-wood);
  background-image:
    repeating-linear-gradient(0deg, rgba(90, 56, 24, 0.22) 0 2px, transparent 2px 7px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.12), transparent 30%, rgba(0, 0, 0, 0.12));
  border: 4px solid #4a2e15;
  box-shadow: inset 3px 3px 0 #c98d55, inset -3px -3px 0 #6b4423, 6px 6px 0 rgba(0, 0, 0, 0.35);
  color: #2e1d0e;
}
.mc-sign__title {
  font-family: var(--mc-pixel); font-size: 0.62rem; line-height: 1.6;
  text-align: center; color: #2e1d0e; margin-bottom: 5px;
  text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.25);
}
.mc-sign__lead { font-size: 1rem; text-align: center; color: #4a2e15; margin-bottom: 14px; }
.mc-form { display: grid; gap: 10px; }
.mc-field { display: grid; gap: 3px; }
.mc-field > span { font-family: var(--mc-pixel); font-size: 0.24rem; letter-spacing: 0.03em; color: #4a2e15; }
.mc-field input, .mc-field select, .mc-field textarea {
  width: 100%; padding: 7px 9px;
  background: #f0dfb8;
  border: 2px solid #4a2e15;
  color: #2e1d0e; font-family: var(--mc-body); font-size: 1.1rem;
  outline: 0; -webkit-appearance: none; appearance: none;
  transition: background 0.18s, box-shadow 0.18s;
}
.mc-field select {
  background-image: linear-gradient(45deg, transparent 50%, #4a2e15 50%), linear-gradient(135deg, #4a2e15 50%, transparent 50%);
  background-position: calc(100% - 16px) 52%, calc(100% - 10px) 52%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}
.mc-field input::placeholder, .mc-field textarea::placeholder { color: #8a6a44; }
.mc-field input:focus, .mc-field select:focus, .mc-field textarea:focus {
  background: #fff3d6; box-shadow: 0 0 0 3px rgba(90, 56, 24, 0.28);
}
.mc-field textarea { resize: vertical; min-height: 58px; line-height: 1.3; }
.mc-fieldrow { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mc-form__hint { font-size: 0.86rem; text-align: center; color: #5a3a1c; }
.mc-form__done {
  font-size: 0.98rem; color: #234d16; background: rgba(122, 199, 79, 0.28);
  border: 2px solid #3f7a2a; padding: 7px 8px;
}
.mc-sign__posts {
  display: flex; justify-content: center; gap: 130px;
  height: 54px; margin-top: -2px;
}
.mc-sign__posts i {
  display: block; width: 16px; height: 100%;
  background-color: #6b4423;
  background-image: repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.18) 0 2px, transparent 2px 6px);
  border: 3px solid #4a2e15; border-top: 0;
  box-shadow: inset 2px 0 0 rgba(255, 255, 255, 0.1);
}

/* ================= CLOSING ================= */
.mc-panel--adv { border-color: #000; background: linear-gradient(180deg, #2a2416, #1b1913); }
.mc-adv { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.mc-adv__icon {
  width: 58px; height: 58px; display: grid; place-items: center;
  font-size: 26px; background: #3a2f14;
  border: 3px solid #000; box-shadow: inset 2px 2px 0 #7a6228, inset -2px -2px 0 #1a1408, 0 0 24px rgba(245, 197, 66, 0.2);
}
.mc-adv__kicker { font-family: var(--mc-pixel); font-size: 0.3rem; letter-spacing: 0.08em; color: var(--mc-gold); margin-bottom: 5px; }
.mc-adv__title {
  font-family: var(--mc-pixel); font-weight: 400;
  font-size: clamp(0.85rem, 4vw, 1.25rem); line-height: 1.5;
  color: var(--mc-cream); text-shadow: 2px 2px 0 #0b0b0d;
}
.mc-adv__quote {
  font-size: 1.15rem; line-height: 1.5; color: var(--mc-soft);
  border-top: 2px dashed #4a4230; border-bottom: 2px dashed #4a4230;
  padding: 12px 2px; margin-bottom: 12px;
}
.mc-adv__message { font-size: 1.05rem; line-height: 1.45; color: var(--mc-soft); margin-bottom: 7px; }
.mc-adv__thanks { font-size: 0.98rem; color: var(--mc-muted); }
.mc-adv__hash {
  font-family: var(--mc-pixel); font-size: clamp(0.62rem, 3.2vw, 0.9rem);
  color: var(--mc-gold); margin: 16px 0 12px; text-shadow: 2px 2px 0 #3a2508;
}
.mc-adv__meta {
  display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px;
  font-family: var(--mc-pixel); font-size: 0.24rem; color: var(--mc-muted);
}
.mc-adv__meta span { border: 2px solid #000; background: #151519; padding: 4px 5px; }
.mc-adv__meta span:last-child { color: var(--mc-green); }
.mc-adv__credit { margin-top: 12px; font-size: 0.9rem; color: var(--mc-muted); }
.mc-adv__credit strong { color: var(--mc-cream); font-weight: 400; }

.mc-footer {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px;
  padding: 18px max(16px, calc((100vw - 940px) / 2)) calc(22px + env(safe-area-inset-bottom));
  background: rgba(8, 8, 10, 0.9);
  border-top: 3px solid #000;
  font-size: 0.9rem; color: #7f786a;
}

/* ================= HOTBAR ================= */
.mc-hotbar {
  position: fixed; left: 50%; bottom: calc(10px + env(safe-area-inset-bottom));
  z-index: 120; transform: translateX(-50%) translateY(20px);
  display: flex; gap: 2px; padding: 4px;
  background: rgba(12, 12, 15, 0.94);
  border: 3px solid #000;
  box-shadow: inset 2px 2px 0 #3f3f48, inset -2px -2px 0 #070708, 0 8px 24px rgba(0, 0, 0, 0.4);
  opacity: 0; visibility: hidden;
  transition: opacity 0.4s, visibility 0.4s, transform 0.4s var(--mc-ease);
  max-width: calc(100vw - 10px);
}
body.mc-live .mc-hotbar { opacity: 1; visibility: visible; transform: translateX(-50%); }
.mc-slot {
  position: relative;
  width: 46px; height: 46px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  background: #2b2b33;
  border: 2px solid #000;
  box-shadow: inset 2px 2px 0 #484852, inset -2px -2px 0 #131316;
  color: var(--mc-soft);
  transition: background 0.15s, transform 0.15s, box-shadow 0.15s;
}
.mc-slot:hover { background: #3a3a44; }
.mc-slot.is-active {
  background: #3d3d48;
  border-color: #fff;
  transform: translateY(-4px);
  box-shadow: inset 2px 2px 0 #5a5a66, inset -2px -2px 0 #17171b, 0 0 0 2px #fff, 0 0 14px rgba(255, 255, 255, 0.25);
}
.mc-slot__key {
  position: absolute; left: 2px; top: 1px;
  font-family: var(--mc-pixel); font-size: 0.2rem; color: #8a8a96;
}
.mc-slot.is-active .mc-slot__key { color: #fff; }
.mc-slot__icon { font-size: 16px; line-height: 1.2; filter: saturate(0.95); }
.mc-slot__name {
  font-family: var(--mc-pixel); font-size: 0.17rem; letter-spacing: 0.02em;
  color: #9a9aa6; white-space: nowrap;
}
.mc-slot.is-active .mc-slot__name { color: #fff; }

/* ================= CHAT PANEL ================= */
.mc-chatfab {
  position: fixed; left: 12px; bottom: calc(76px + env(safe-area-inset-bottom));
  z-index: 115;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  background: #2b2b33; border: 3px solid #000;
  box-shadow: inset 2px 2px 0 #4a4a55, inset -2px -2px 0 #101013, 3px 3px 0 rgba(0, 0, 0, 0.35);
  font-size: 17px;
  opacity: 0; visibility: hidden;
  transition: opacity 0.4s, visibility 0.4s, background 0.2s;
}
body.mc-live .mc-chatfab { opacity: 1; visibility: visible; }
.mc-chatfab:hover, .mc-chatfab[aria-expanded="true"] { background: #3d3d48; }
.mc-chatpanel {
  position: fixed; left: 12px; bottom: calc(128px + env(safe-area-inset-bottom));
  z-index: 130;
  width: min(340px, calc(100vw - 24px));
  background: #141418;
  border: 3px solid #000;
  box-shadow: inset 2px 2px 0 #3f3f48, inset -2px -2px 0 #08080a, 6px 6px 0 rgba(0, 0, 0, 0.4);
  animation: mcReveal 0.22s var(--mc-ease);
}
.mc-chatpanel__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 7px 9px; border-bottom: 2px solid #000;
  font-family: var(--mc-pixel); font-size: 0.26rem; color: var(--mc-green);
  background: #1c1c21;
}
.mc-chatpanel__head button {
  background: none; border: 0; color: var(--mc-muted); font-size: 13px; padding: 0 2px;
}
.mc-chatpanel__head button:hover { color: var(--mc-cream); }
.mc-chatpanel__log {
  height: 170px; overflow-y: auto; padding: 8px 9px;
  font-size: 1rem; line-height: 1.4; background: #0d0d10;
  scrollbar-width: thin;
}
.mc-chatpanel__log p { margin-bottom: 3px; color: #cfc9ba; }
.mc-chatpanel__log .name { color: #ff9ec4; margin-right: 4px; }
.mc-chatpanel__log .name--raka { color: #7fdcff; }
.mc-chatpanel__log .name--guest { color: var(--mc-green); }
.mc-chatpanel__log .name--system { color: var(--mc-gold); }
.mc-chatpanel__form { display: flex; border-top: 2px solid #000; }
.mc-chatpanel__form input {
  flex: 1; min-width: 0; background: #0d0d10; border: 0;
  padding: 8px 9px; color: var(--mc-cream); font-family: var(--mc-body);
  font-size: 1rem; outline: 0;
}
.mc-chatpanel__form input::placeholder { color: #6f6f78; }
.mc-chatpanel__form button {
  width: 38px; background: #2b2b33; border: 0; border-left: 2px solid #000;
  color: var(--mc-green); font-size: 14px;
}
.mc-chatpanel__form button:hover { background: #3a3a44; }

/* ================= ACHIEVEMENT + TOAST ================= */
.mc-achieve {
  position: fixed; top: calc(64px + env(safe-area-inset-top)); right: 10px;
  z-index: 220;
  display: flex; align-items: center; gap: 9px;
  width: min(330px, calc(100vw - 20px));
  padding: 9px 10px;
  background: #1c1a12;
  border: 3px solid #000;
  box-shadow: inset 2px 2px 0 #5a4c22, inset -2px -2px 0 #0d0b06, 5px 5px 0 rgba(0, 0, 0, 0.35);
  animation: mcAchieveIn 0.4s var(--mc-ease);
}
@keyframes mcAchieveIn { from { opacity: 0; transform: translateX(30px); } }
.mc-achieve__icon {
  width: 36px; height: 36px; flex: 0 0 auto;
  display: grid; place-items: center; font-size: 18px;
  background: #3a2f14; border: 2px solid #000;
  box-shadow: inset 2px 2px 0 #7a6228, inset -2px -2px 0 #1a1408;
}
.mc-achieve__kicker { font-family: var(--mc-pixel); font-size: 0.24rem; color: var(--mc-gold); margin-bottom: 3px; }
.mc-achieve__title { font-family: var(--mc-pixel); font-size: 0.34rem; line-height: 1.6; color: var(--mc-cream); }
.mc-toast {
  position: fixed; left: 50%; bottom: calc(84px + env(safe-area-inset-bottom));
  z-index: 140; transform: translateX(-50%) translateY(8px);
  padding: 7px 11px;
  background: #101013; border: 2px solid #000;
  box-shadow: inset 2px 2px 0 #3f3f48, inset -2px -2px 0 #070708;
  color: var(--mc-cream); font-size: 0.94rem; text-align: center;
  opacity: 0; transition: opacity 0.2s, transform 0.25s var(--mc-ease);
  pointer-events: none; max-width: calc(100vw - 24px);
}
.mc-toast.is-on { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ================= REVEAL ================= */
[data-reveal] { transform: translateY(14px); transition-duration: 0.7s; }

/* ================= RESPONSIVE ================= */
@media (min-width: 560px) {
  .mc-gate__card { grid-template-columns: 1fr 1fr; }
  .mc-gate__thumb { aspect-ratio: auto; min-height: 100%; }
  .mc-gate__body { padding: 22px 20px 20px; }
  .mc-players { grid-template-columns: 1fr 1fr; }
  .mc-inventory { grid-template-columns: repeat(3, 1fr); }
  .mc-events { grid-template-columns: 1fr 1fr; }
  .mc-sign__posts { gap: 170px; }
  .mc-hotbar { gap: 3px; }
  .mc-slot { width: 50px; height: 50px; }
  .mc-slot__icon { font-size: 18px; }
  .mc-slot__name { font-size: 0.2rem; }
  .mc-craft { gap: 16px; }
  .mc-ing { width: 62px; height: 62px; font-size: 23px; }
  .mc-craft__out { width: 80px; height: 80px; }
}

@media (min-width: 760px) {
  .mc-zone { padding-top: 58px; padding-bottom: 60px; }
  .mc-panel { padding: 20px; }
  .mc-panel__head { gap: 14px; }
  .mc-panel__icon { width: 44px; height: 44px; font-size: 20px; }
  .mc-inventory { grid-template-columns: repeat(4, 1fr); }
  .mc-map { height: 320px; }
  .mc-hotbar { bottom: calc(14px + env(safe-area-inset-bottom)); }
  .mc-slot { width: 54px; height: 54px; }
  .mc-slot__name { font-size: 0.22rem; }
  .mc-hero { max-width: 820px; }
  .mc-hero__lead { font-size: 1.24rem; }
  .mc-ing { width: 68px; height: 68px; }
  .mc-craft__out { width: 86px; height: 86px; }
  .mc-gate__body { padding: 26px 24px 24px; }
  .mc-gate__title { font-size: 1.55rem; }
  .mc-hearts span { font-size: 14px; }
  .mc-hunger span { font-size: 10px; }
  .mc-xp__bar { width: 90px; }
  .mc-hud__brand strong { font-size: 0.48rem; }
}

@media (max-width: 480px) {
  .mc-hud__brand { display: block; }
  .mc-hud__brand strong { font-size: 0.3rem; }
  .mc-hud__brand span { display: none; }
  .mc-coords { display: none; }
  .mc-hud__back { display: none; }
  .mc-hud { gap: 6px; padding-left: 8px; padding-right: 8px; }
  .mc-hearts span:nth-child(n + 6), .mc-hunger span:nth-child(n + 6) { display: none; }
  .mc-xp__bar { width: 46px; }
  .mc-gate__meta { grid-template-columns: 1fr 1fr 1fr; }
  .mc-gate__meta dd { font-size: 0.86rem; }
  .mc-sign__posts { gap: 90px; }
  .mc-panel { padding: 12px; }
  .mc-panel__meta { display: none; }
  .mc-craft { gap: 6px; }
  .mc-ing { width: 46px; height: 46px; font-size: 17px; }
  .mc-craft__out { width: 58px; height: 58px; }
  .mc-craft__q { font-size: 0.7rem; }
  .mc-craft__out.is-crafted .mc-craft__q { font-size: 0.3rem; }
  .mc-craft__arrow { font-size: 1rem; }
  .mc-hotbar { padding: 3px; gap: 1px; }
  .mc-slot { width: 36px; height: 40px; }
  .mc-slot__icon { font-size: 14px; }
  .mc-slot__name { display: none; }
  .mc-slot__key { font-size: 0.16rem; }
  .mc-chatfab { bottom: calc(66px + env(safe-area-inset-bottom)); width: 38px; height: 38px; font-size: 14px; }
  .mc-chatpanel { bottom: calc(112px + env(safe-area-inset-bottom)); }
  .mc-fieldrow { grid-template-columns: 1fr; }
  .mc-player__avatar { width: 66px; height: 66px; }
  .mc-hero__title { font-size: 1.65rem; }
  .mc-map { height: 220px; }
  .mc-map__label { font-size: 0.2rem; }
  .mc-adv__icon { width: 46px; height: 46px; font-size: 20px; }
  .mc-adv__meta { font-size: 0.2rem; }
  .mc-footer { font-size: 0.82rem; }
}

@media (max-width: 360px) {
  .mc-slot { width: 33px; height: 38px; }
  .mc-hearts span { font-size: 9px; }
  .mc-hunger span { font-size: 7px; }
  .mc-ing { width: 42px; height: 42px; }
  .mc-craft__out { width: 52px; height: 52px; }
}

@media (max-height: 700px) {
  .mc-gate { align-items: flex-start; padding-top: 14px; padding-bottom: 14px; }
  .mc-gate__card { margin: 0 auto; }
  .mc-gate__thumb { height: 112px; aspect-ratio: auto; }
  .mc-gate__meta { display: none; }
  .mc-gate__body { padding-top: 14px; }
  .mc-gate__splash { top: 2%; }
}

@media (prefers-reduced-motion: reduce) {
  .mc-cloud, .mc-repeater__torch, .mc-map__marker, .mc-scrollhint,
  .mc-chat__hint span, .mc-gate__splash { animation: none !important; }
  .mc-gate__card, .mc-eventdetails, .mc-chatpanel, .mc-achieve { animation: none; }
  .mc-worldblock:hover, .mc-item:hover, .mc-slot.is-active { transform: none; }
  .mc-particle { display: none; }
}
