/* 🏛 Mythic Vault — the Mythic Token staking shop (src/mtvault, sql/296).
   Drawn in the game's Duelyst-style theme (src/theme): navy glass, cyan neon
   hairlines, chamfered buttons; gold marks Mythic Token, violet marks shards. */
#mtv-root { position: fixed; inset: 0; z-index: 2600; display: none; overflow-y: auto; overscroll-behavior: contain;
  font-family: 'EB Garamond', Georgia, serif; color: #dceaf6;
  background:
    radial-gradient(60% 50% at 50% 0%, rgba(255, 200, 100, 0.16), transparent 70%),
    radial-gradient(70% 60% at 50% 110%, rgba(40, 140, 255, 0.22), transparent 70%),
    linear-gradient(180deg, #081430 0%, #050a18 60%, #03060f 100%); }
#mtv-root.on { display: block; animation: mtvIn .35s ease-out; }
@keyframes mtvIn { from { opacity: 0; } to { opacity: 1; } }
html.mtv-open, html.mtv-open body { overflow: hidden; }
/* the owner's SCP Mythic Vault art (2026-10-14) — the armoured SCP truck under
   the crystal fall. Full-bleed behind the panel, darkened at the centre column
   where the cards sit so the text stays readable; the sides keep the painting. */
.mtv-sky { position: fixed; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(4, 8, 20, .2) 0%, rgba(4, 8, 20, .6) 22%, rgba(4, 8, 20, .68) 50%, rgba(4, 8, 20, .6) 78%, rgba(4, 8, 20, .2) 100%),
    linear-gradient(180deg, rgba(4, 8, 20, .25) 0%, rgba(4, 8, 20, 0) 30%, rgba(4, 8, 20, .45) 100%),
    url('../../assets/artwork/ui/scp-mythic-vault.webp') center 30% / cover no-repeat; }
@media (max-width: 640px) {
  .mtv-sky { background:
    linear-gradient(180deg, rgba(4, 8, 20, .3) 0%, rgba(4, 8, 20, .82) 34%, rgba(4, 8, 20, .9) 100%),
    url('../../assets/artwork/ui/scp-mythic-vault.webp') center top / cover no-repeat; }
}
.mtv-motes { width: 100%; height: 100%; display: block; }
.mtv-panel { position: relative; max-width: 1180px; margin: 0 auto; padding: 22px 20px 60px; }
.mtv-top { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; }
.mtv-back, .mtv-btn, .mtv-tabs button, .mtv-term {
  font-family: 'Rajdhani', 'Cinzel', sans-serif; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: #d8ecf8; cursor: pointer; border: 0;
  clip-path: polygon(8px 0, calc(100% - 8px) 0, 100% 8px, 100% calc(100% - 8px), calc(100% - 8px) 100%, 8px 100%, 0 calc(100% - 8px), 0 8px);
  background: linear-gradient(180deg, rgba(18, 36, 70, .95), rgba(6, 13, 30, .97));
  box-shadow: inset 0 0 0 1.5px rgba(110, 200, 240, .55), inset 0 0 14px rgba(70, 200, 255, .15);
  transition: filter .15s ease; }
.mtv-back:hover, .mtv-btn:hover:not(:disabled), .mtv-tabs button:hover, .mtv-term:hover { filter: brightness(1.25); }
.mtv-back { padding: 11px 20px; font-size: 14px; }
.mtv-title { text-align: center; }
.mtv-title h1 { margin: 0; font-family: 'Cinzel', serif; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  font-size: clamp(28px, 4.4vw, 52px);
  background: linear-gradient(180deg, #ffffff 0%, #fff1c8 40%, #ffd572 70%, #d89b2c 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
  filter: drop-shadow(0 2px 0 rgba(0,0,0,.85)) drop-shadow(0 0 24px rgba(255, 200, 90, .35)); }
.mtv-sub { font-style: italic; color: #a9cfe6; font-size: 16px; margin-top: 4px; }
.mtv-bal { text-align: right; padding: 10px 18px; border: 1px solid rgba(255, 213, 114, .45);
  background: linear-gradient(180deg, rgba(40, 30, 8, .7), rgba(12, 9, 3, .8)); box-shadow: 0 0 18px rgba(255, 200, 90, .12); }
.mtv-bal span { display: block; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: #c9b27a; }
.mtv-bal b { font-family: 'Cinzel', serif; font-size: 22px; color: #ffe39a; }
.mtv-banner { margin: 18px 0 0; padding: 12px 18px; text-align: center; font-size: 16px; color: #d8f4ff;
  border: 1px solid rgba(70, 200, 245, .45); background: rgba(6, 18, 40, .75); }
.mtv-tabs { display: flex; justify-content: center; gap: 10px; margin: 22px 0 18px; }
.mtv-tabs button { padding: 10px 22px; font-size: 14px; }
.mtv-tabs button.on { color: #fff; background: linear-gradient(180deg, rgba(20, 90, 130, .95), rgba(6, 34, 60, .97));
  box-shadow: inset 0 0 0 2px #46e3ff, inset 0 0 18px rgba(70, 227, 255, .45); text-shadow: 0 0 8px rgba(70, 227, 255, .7); }
.mtv-n { display: inline-block; min-width: 20px; padding: 0 6px; margin-left: 4px; background: #46e3ff; color: #04121e; }

/* the four tool cards */
.mtv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 18px; }
.mtv-card { position: relative; display: flex; flex-direction: column; padding: 18px 16px 16px; text-align: center;
  border: 1px solid rgba(70, 200, 245, .32);
  background: linear-gradient(180deg, rgba(14, 30, 62, .88), rgba(5, 11, 26, .94));
  box-shadow: inset 0 1px 0 rgba(180, 240, 255, .12), 0 14px 34px rgba(0, 0, 0, .5);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.mtv-card:hover { transform: translateY(-4px); border-color: rgba(127, 236, 255, .75);
  box-shadow: inset 0 1px 0 rgba(180, 240, 255, .12), 0 0 26px rgba(70, 227, 255, .25), 0 18px 40px rgba(0, 0, 0, .55); }
.mtv-card-art { position: relative; height: 118px; display: grid; place-items: center; margin-bottom: 6px; }
.mtv-icon { position: relative; z-index: 1; font-size: 62px; filter: drop-shadow(0 0 18px rgba(255, 210, 120, .55)); animation: mtvFloat 4s ease-in-out infinite; }
.mtv-ring { position: absolute; width: 112px; height: 112px; border-radius: 50%;
  border: 1.5px dashed rgba(255, 213, 114, .55); box-shadow: 0 0 24px rgba(255, 200, 90, .25), inset 0 0 22px rgba(70, 227, 255, .25);
  animation: mtvSpin 22s linear infinite; }
@keyframes mtvFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes mtvSpin { to { transform: rotate(360deg); } }
.mtv-card h3 { margin: 4px 0 4px; font-family: 'Cinzel', serif; font-size: 20px; letter-spacing: .06em; text-transform: uppercase;
  color: #f2fbff; text-shadow: 0 0 14px rgba(70, 227, 255, .35); }
.mtv-what { font-size: 15px; color: #bfe2f4; }
.mtv-what em { color: #8fb0c8; }
.mtv-long { flex: 1; font-size: 14.5px; line-height: 1.45; color: #a9c6dc; margin: 10px 2px 12px; }
.mtv-terms { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.mtv-term { padding: 8px 4px; font-size: 11.5px; display: flex; flex-direction: column; gap: 2px; align-items: center; }
.mtv-term span { font-family: 'Cinzel', serif; font-size: 17px; letter-spacing: .02em; color: #7fecff; text-transform: none; }
.mtv-term.on { color: #fff; box-shadow: inset 0 0 0 2px #46e3ff, inset 0 0 16px rgba(70, 227, 255, .45); }
.mtv-maxline { margin: 10px 0 12px; font-size: 13.5px; color: #c3a9ea; }
.mtv-maxline b { color: #e0ccff; }
.mtv-cta { padding: 13px 10px; cursor: pointer; border: 0;
  font-family: 'Rajdhani', 'Cinzel', sans-serif; font-weight: 700; font-size: 14px; letter-spacing: .1em; text-transform: uppercase; color: #fffbea;
  clip-path: polygon(14px 0, calc(100% - 14px) 0, 100% 50%, calc(100% - 14px) 100%, 14px 100%, 0 50%);
  background: linear-gradient(180deg, rgba(126, 86, 20, .96), rgba(60, 36, 6, .98));
  box-shadow: inset 0 0 0 2px #ffd572, inset 0 0 22px rgba(255, 200, 90, .5); text-shadow: 0 0 8px rgba(255, 210, 110, .7); }
.mtv-cta b { color: #fff; }
.mtv-cta:hover:not(:disabled) { filter: brightness(1.2); }
.mtv-cta:disabled, .mtv-btn:disabled { filter: grayscale(.85) brightness(.6); cursor: not-allowed; }
.mtv-cta.small { padding: 10px 26px; }

/* My Tools */
.mtv-list { display: flex; flex-direction: column; gap: 14px; }
.mtv-stake { display: grid; grid-template-columns: 74px 1fr; gap: 14px; padding: 14px;
  border: 1px solid rgba(70, 200, 245, .3); background: linear-gradient(180deg, rgba(14, 28, 58, .86), rgba(5, 11, 26, .92)); }
.mtv-stake.closed { opacity: .6; }
.mtv-stake-ico { position: relative; width: 74px; height: 74px; display: grid; place-items: center; font-size: 42px;
  border: 1px solid rgba(255, 213, 114, .45); background: radial-gradient(circle, rgba(255, 200, 90, .18), transparent 70%); }
.mtv-lvl { position: absolute; right: -6px; bottom: -6px; padding: 1px 6px; font-family: 'Rajdhani', sans-serif; font-weight: 700; font-size: 12px;
  color: #120a24; background: linear-gradient(180deg, #e0ccff, #9a7ad0); }
.mtv-stake-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-family: 'Cinzel', serif; font-size: 18px; color: #f2fbff; }
.mtv-chip { font-family: 'Rajdhani', sans-serif; font-weight: 700; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; padding: 2px 9px; border: 1px solid; }
.mtv-chip.live { color: #8cff5a; border-color: rgba(140, 255, 90, .55); background: rgba(40, 90, 20, .3); }
.mtv-chip.warn { color: #ffc46b; border-color: rgba(255, 196, 107, .55); }
.mtv-chip.gold { color: #ffe39a; border-color: rgba(255, 213, 114, .65); background: rgba(80, 56, 10, .35); }
.mtv-chip.off { color: #8fa3b5; border-color: rgba(143, 163, 181, .4); }
.mtv-stake-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 6px 0 10px; font-size: 15px; }
.mtv-stake-meta i { font-style: normal; font-family: 'Rajdhani', sans-serif; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #7f9cb5; margin-right: 4px; }
.mtv-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 10px; }
.mtv-act { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px; border: 1px solid rgba(70, 200, 245, .18); background: rgba(4, 10, 24, .45); }
.mtv-act label { width: 100%; font-size: 13.5px; color: #a9c6dc; }
.mtv-act select { flex: 1; min-width: 140px; padding: 7px 8px; font: inherit; font-size: 14px; color: #e4effc;
  background: rgba(4, 10, 24, .85); border: 1px solid rgba(70, 200, 245, .38); border-radius: 2px; }
.mtv-btn { padding: 8px 16px; font-size: 12.5px; }
.mtv-btn.shard { box-shadow: inset 0 0 0 1.5px rgba(196, 160, 255, .75), inset 0 0 14px rgba(150, 110, 240, .3); color: #ece0ff; }
.mtv-btn.danger { box-shadow: inset 0 0 0 1.5px rgba(255, 90, 100, .6), inset 0 0 12px rgba(255, 60, 70, .2); color: #ffd0d0; }
.mtv-foot { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.mtv-empty { padding: 40px 20px; text-align: center; font-size: 17px; color: #a9c6dc; border: 1px dashed rgba(70, 200, 245, .35); }
.mtv-how { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.mtv-how > div { padding: 16px; border: 1px solid rgba(70, 200, 245, .3); background: rgba(8, 18, 40, .8); }
.mtv-how b { font-family: 'Cinzel', serif; font-size: 18px; color: #bff4ff; }
.mtv-how p { margin: 8px 0 0; font-size: 15.5px; line-height: 1.5; color: #b9d4e6; }
@media (max-width: 640px) {
  .mtv-top { grid-template-columns: 1fr; text-align: center; }
  .mtv-bal { text-align: center; }
  .mtv-back { justify-self: start; }
  .mtv-stake { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .mtv-icon, .mtv-ring { animation: none; } }
