/* Minecraft-style UI mockups for the website: chest menus (with item icons +
   hover tooltips), chat and the tab list. Rendered by /mc.js. */
@import url('https://fonts.googleapis.com/css2?family=VT323&display=swap');

.mc-text { font-family: 'VT323', ui-monospace, monospace; letter-spacing: 0.02em; }
.mc-b { font-weight: 700; letter-spacing: 0.06em; }
.mc-i { font-style: italic; }
.mc-u { text-decoration: underline; }
.mc-s { text-decoration: line-through; }

/* --- chest GUI ------------------------------------------------------------ */
.mc-menu-wrap { position: relative; display: inline-block; user-select: none; -webkit-user-select: none; max-width: 100%; }
.mc-chest {
  --s: 36px; /* one slot */
  display: inline-block; padding: 7px 8px 9px; background: #c6c6c6; border-radius: 7px;
  box-shadow: inset 2px 2px 0 #fff, inset -2px -2px 0 #555, 0 0 0 2px #000, 0 30px 60px -20px rgba(0, 0, 0, 0.8);
  image-rendering: pixelated;
}
.mc-chest-title { font-family: 'VT323', monospace; font-size: 21px; line-height: 1; padding: 2px 2px 7px; color: #404040; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mc-chest-title span { text-shadow: none !important; }
.mc-grid { display: grid; grid-template-columns: repeat(9, var(--s)); grid-auto-rows: var(--s); }
.mc-slot {
  position: relative; width: var(--s); height: var(--s); background: #8b8b8b; cursor: pointer;
  box-shadow: inset 2px 2px 0 #373737, inset -2px -2px 0 #fff;
}
.mc-slot.empty { cursor: default; }
.mc-slot:hover::after { content: ""; position: absolute; inset: 2px; background: rgba(255, 255, 255, 0.45); pointer-events: none; z-index: 3; }
.mc-slot.empty:hover::after { display: none; }
.mc-item { position: absolute; inset: 2px; display: block; }
.mc-item img, .mc-item svg { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; }
.mc-flat { position: absolute; inset: 0; background-size: 100% auto; background-repeat: no-repeat; image-rendering: pixelated; }
.mc-tint { position: absolute; inset: 0; background-size: 100% auto; background-blend-mode: multiply; -webkit-mask-size: 100% auto; mask-size: 100% auto; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; image-rendering: pixelated; }
.mc-glint { position: absolute; inset: 0; pointer-events: none; z-index: 2; mix-blend-mode: screen; opacity: 0.75;
  background: linear-gradient(120deg, transparent 20%, rgba(170, 90, 255, 0.85) 38%, transparent 52%, rgba(170, 90, 255, 0.6) 70%, transparent 85%) 0 0 / 300% 300%;
  animation: mc-glint 3.2s linear infinite; -webkit-mask-size: 100% auto; mask-size: 100% auto; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; }
@keyframes mc-glint { from { background-position: 100% 100%; } to { background-position: 0% 0%; } }

.mc-menu-hint { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 12.5px; color: var(--text-dimmer, #73678f); }
.mc-menu-hint kbd { font-family: inherit; font-size: 11px; padding: 1px 6px; border-radius: 5px; border: 1px solid rgba(178, 148, 230, 0.25); color: var(--text-dim, #ab9fca); }

/* --- tooltip (1.8 style: near-black with a purple gradient border) --------- */
.mc-tip {
  position: fixed; z-index: 1000; pointer-events: none; display: none; max-width: 380px;
  padding: 4px 8px 5px; background: rgba(16, 0, 16, 0.94);
  font-family: 'VT323', monospace; font-size: 20px; line-height: 20px; color: #fff; white-space: nowrap;
}
.mc-tip::before { content: ""; position: absolute; inset: 2px; border: 2px solid; border-image: linear-gradient(180deg, rgba(80, 0, 255, 0.55), rgba(40, 0, 127, 0.55)) 1; pointer-events: none; }
.mc-tip .l0 { margin-bottom: 4px; }
.mc-tip.show { display: block; }
.mc-tip .blank { height: 10px; }

/* --- chat ----------------------------------------------------------------- */
.mc-chat { font-family: 'VT323', monospace; font-size: 19px; line-height: 21px; display: flex; flex-direction: column; justify-content: flex-end; gap: 0; }
.mc-chat-line { background: rgba(0, 0, 0, 0.5); padding: 0 8px 1px 6px; color: #fff; white-space: pre-wrap; animation: mc-line-in 0.35s ease-out both; }
.mc-chat-line.cmd { background: rgba(0, 0, 0, 0.62); }
@keyframes mc-line-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.mc-chat-input { margin-top: 6px; background: rgba(0, 0, 0, 0.5); padding: 1px 8px 2px 6px; color: #fff; min-height: 23px; }
.mc-chat-input .caret { display: inline-block; width: 9px; height: 2px; background: #fff; margin-left: 1px; vertical-align: -2px; animation: mc-caret 1s steps(1) infinite; }
@keyframes mc-caret { 50% { opacity: 0; } }

/* --- tab list ------------------------------------------------------------- */
.mc-tab { font-family: 'VT323', monospace; font-size: 19px; line-height: 20px; color: #fff; background: rgba(0, 0, 0, 0.55); padding: 6px 6px 8px; display: inline-block; min-width: 100%; }
.mc-tab-head, .mc-tab-foot { text-align: center; padding: 2px 0 6px; white-space: pre-line; }
.mc-tab-foot { padding: 6px 0 0; }
.mc-tab-rows { display: grid; gap: 1px; }
.mc-tab-row { display: grid; grid-template-columns: 18px var(--cols, 52px 1fr 56px 56px 40px); align-items: center; gap: 0 8px; background: rgba(255, 255, 255, 0.13); padding: 0 6px 0 1px; height: 20px; white-space: nowrap; }
.mc-tab-row.hdr { background: rgba(255, 255, 255, 0.07); }
.mc-tab-row > span { overflow: hidden; text-overflow: ellipsis; }
.mc-tab-row .r { text-align: right; }
.mc-head { width: 16px; height: 16px; image-rendering: pixelated; background-repeat: no-repeat; }
.mc-ping { width: 20px; height: 14px; display: inline-flex; align-items: flex-end; gap: 1px; justify-self: end; }
.mc-ping i { width: 3px; background: #55ff55; box-shadow: 1px 1px 0 #153f15; }
.mc-ping i:nth-child(1) { height: 3px; } .mc-ping i:nth-child(2) { height: 5px; } .mc-ping i:nth-child(3) { height: 7px; } .mc-ping i:nth-child(4) { height: 9px; } .mc-ping i:nth-child(5) { height: 11px; }
.mc-ping.mid i { background: #ffff55; } .mc-ping.mid i:nth-child(5), .mc-ping.mid i:nth-child(4) { background: #555; box-shadow: none; }

/* --- screen frame: a mock game screen around a chat / tab / title ------------- */
.mc-screen {
  position: relative; overflow: hidden; border-radius: 16px; border: 1px solid rgba(178, 148, 230, 0.22);
  background: #1b1430 url('/branding/bg-scene.png') center / cover no-repeat;
  box-shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.8);
}
.mc-screen::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 7, 19, 0.15), rgba(10, 7, 19, 0.55)); }
.mc-screen > * { position: relative; }
.mc-screen .mc-chat { position: absolute; left: 12px; bottom: 12px; right: 12px; max-width: 560px; }
.mc-screen .mc-tab { margin: 16px auto; display: block; width: fit-content; min-width: 0; max-width: calc(100% - 24px); }
.mc-title-text { position: absolute; left: 0; right: 0; top: 34%; text-align: center; font-family: 'VT323', monospace; font-size: 54px; line-height: 1; }
.mc-subtitle-text { position: absolute; left: 0; right: 0; top: calc(34% + 54px); text-align: center; font-family: 'VT323', monospace; font-size: 26px; }
.mc-actionbar { position: absolute; left: 0; right: 0; bottom: 64px; text-align: center; font-family: 'VT323', monospace; font-size: 20px; }

@media (max-width: 560px) {
  .mc-chest { --s: calc((100vw - 76px) / 9); }
  .mc-chest-title { font-size: 17px; }
  .mc-tip { font-size: 17px; line-height: 17px; white-space: normal; max-width: 86vw; }
  .mc-chat { font-size: 16px; line-height: 18px; }
  .mc-tab { font-size: 16px; }
  .mc-title-text { font-size: 38px; }
}
