/* The game owner's things (November 2026): the Admin Panel (js/ui/admin.js), its ways in (the lobby's crown
   button, the pause card's Admin button) and the owner weapons' gold-and-purple tier. Admins only. */

/* ---------------------------------------------------------------- the Owner tier */

.t-owner {
  --t-bg: linear-gradient(160deg, #8b5cf6 0%, #6d28d9 55%, #4c1d95 100%);
  --t-edge: #ffc23a;
  --t-ink: #fff;
}
.wc.t-owner .wc-name { text-shadow: 0 1px 0 rgba(0, 0, 0, 0.4); }
.wc.t-owner .wc-eq { color: #ffe08a; }
.tier-owner { background: linear-gradient(120deg, #ffc23a, #ffe08a 45%, #ffc23a); color: #3b0764; box-shadow: inset 0 0 0 2px #7c3aed; }
.lo-owner { display: flex; align-items: center; gap: 10px; margin: 0; background: linear-gradient(120deg, #f5f0ff, #fff7dc); font-size: 14px; font-weight: 800; color: #4c1d95; }
.lo-owner .m-ico { width: 32px; height: 32px; flex: none; padding: 6px; border-radius: 10px; background: #ffc23a; color: #3b0764; }

/* ---------------------------------------------------------------- ways in */

/* The lobby: a crown button under the player card. */
.lh-lcol { display: grid; justify-items: start; gap: 12px; min-width: 0; }
.lh-adminbtn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 42px;
  padding: 0 16px 0 8px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, #8b5cf6 0%, #6d28d9 100%);
  color: #fff;
  font-family: var(--display);
  font-size: 20px;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 0 rgba(18, 32, 58, 0.55);
  box-shadow: inset 0 -4px 0 #4c1d95, 0 0 0 3px var(--ink), 0 5px 0 3px var(--ink);
  pointer-events: auto;
  cursor: pointer;
  transition: transform 0.07s ease, box-shadow 0.07s ease;
}
.lh-adminbtn[hidden] { display: none; }
.lh-adminbtn > .m-ico { display: grid; place-items: center; width: 28px; height: 28px; padding: 5px; border-radius: 50%; background: #ffc23a; color: #3b0764; box-shadow: 0 2px 0 rgba(18, 32, 58, 0.45); }
.lh-adminbtn kbd { position: absolute; top: -9px; right: -9px; min-width: 18px; padding: 0 4px; font-size: 10.5px; line-height: 16px; text-shadow: none; box-shadow: 0 0 0 2px var(--ink); }
.lh-adminbtn:active { transform: translateY(4px); box-shadow: inset 0 -2px 0 #4c1d95, 0 0 0 3px var(--ink), 0 1px 0 3px var(--ink); }
@media (hover: hover) { .lh-adminbtn:hover { filter: brightness(1.08); } }
@media (max-width: 760px) {
  .lh-lcol { gap: 10px; }
  .lh-adminbtn { height: 36px; padding: 0 13px 0 6px; font-size: 17px; }
  .lh-adminbtn > .m-ico { width: 25px; height: 25px; padding: 4px; }
}

/* The pause card: Admin, in purple with a crown. */
#pause-admin { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
#pause-admin[hidden] { display: none; }
#pause-admin .m-ico { width: 1.15em; height: 1.15em; color: #ffe08a; }

/* Settings: the tool a link in the Admin Panel points at blinks gold for a moment. */
.ad-flash { animation: ad-flash 1.4s ease-out 1; border-radius: 14px; }
@keyframes ad-flash {
  0%, 40% { box-shadow: 0 0 0 4px #ffc23a, 0 0 0 9px rgba(255, 194, 58, 0.35); }
  100% { box-shadow: 0 0 0 0 rgba(255, 194, 58, 0); }
}

/* ---------------------------------------------------------------- the panel */

.ad .pnl-head {
  background:
    repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.07) 0 16px, transparent 16px 32px),
    linear-gradient(180deg, #8b5cf6 0%, #5b21b6 100%);
  box-shadow: inset 0 -5px 0 rgba(59, 7, 100, 0.45);
}
.ad .pnl-icon { background: #ffc23a; color: #3b0764; }
.ad .pnl-body { display: grid; grid-auto-rows: max-content; align-content: start; gap: 16px; }

.ad-hero {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 18px;
  background: linear-gradient(120deg, #fff7dc, #f3e8ff);
  box-shadow: inset 0 0 0 2px #ffd970;
}
.ad-hero p { margin: 0; font-size: 15px; font-weight: 800; color: #4c1d95; }
.ad-hero b { font-family: var(--display); font-weight: 400; font-size: 19px; color: var(--ink); }
.ad-badge { width: 64px; height: 26px; font-size: 12px; }

/* Powers: a picture, what it does, and the On / Off switch. */
.ad-powers { display: grid; gap: 10px; }
.ad-power {
  --c: var(--purple);
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 16px;
  background: var(--paper-2);
  box-shadow: inset 0 0 0 2px #e6ddff;
}
.ad-power-ico {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 15px;
  background: var(--c);
  color: #fff;
  font-size: 30px;
  box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.18), 0 0 0 3px #ffc23a;
}
.ad-power-ico .m-ico { width: 1em; height: 1em; }
.ad-power-text { min-width: 0; }
.ad-power-text b { display: block; font-family: var(--display); font-weight: 400; font-size: 22px; line-height: 1.05; }
.ad-power-text p { margin: 3px 0 0; font-size: 13px; font-weight: 700; line-height: 1.3; color: var(--muted); }
.ad-switch { flex: none; }

/* Owner weapons: one card each, with Equip. */
.ad-weapons { display: grid; grid-template-columns: repeat(auto-fit, minmax(196px, 1fr)); gap: 12px; }
.ad-weapon {
  display: grid;
  grid-template-rows: auto auto auto 1fr auto;
  gap: 6px;
  padding: 12px;
  border-radius: 18px;
  background: linear-gradient(165deg, #8b5cf6 0%, #6d28d9 60%, #4c1d95 100%);
  color: #fff;
  box-shadow: inset 0 0 0 3px #ffc23a, 0 5px 0 #b8862b;
}
.ad-weapon.is-eq { box-shadow: inset 0 0 0 3px #ffc23a, 0 0 0 4px var(--green), 0 6px 0 4px var(--green-dark); }
.ad-weapon-art { display: block; aspect-ratio: 2 / 1; padding: 6px 10px; border-radius: 12px; background: rgba(255, 255, 255, 0.92); }
.ad-weapon-meta { display: flex; align-items: center; gap: 8px; }
.ad-slot { font-size: 12px; font-weight: 900; letter-spacing: 0.04em; text-transform: uppercase; color: #ffe08a; }
.ad-weapon-name { margin: 0; font-family: var(--display); font-weight: 400; font-size: 22px; line-height: 1.05; text-shadow: 0 2px 0 rgba(18, 32, 58, 0.45); }
.ad-weapon-blurb { margin: 0; font-size: 13px; font-weight: 700; line-height: 1.35; color: #efe7ff; }
.ad-weapon-go { display: flex; align-items: center; min-height: 40px; }
.ad-weapon-go .m-tag { white-space: normal; }
.ad-eq { display: inline-flex; align-items: center; gap: 5px; padding: 6px 12px; border-radius: 999px; background: #d8f8e3; color: var(--green-dark); font-size: 13px; font-weight: 900; text-transform: uppercase; }
.ad-eq .m-ico { width: 15px; height: 15px; }
.ad-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; }
.ad-note { margin: 0; font-size: 13px; font-weight: 800; color: var(--muted); }

/* The owner save's status. */
.ad-save { display: flex; align-items: center; gap: 10px; margin: 0; padding: 10px 14px; border-radius: 14px; background: var(--paper-2); font-size: 14.5px; font-weight: 800; line-height: 1.3; }
.ad-save .m-ico { width: 30px; height: 30px; flex: none; padding: 6px; border-radius: 50%; background: #c8d3e3; color: #fff; }
.ad-save.is-good { background: #e3f9ea; color: #11592e; }
.ad-save.is-good .m-ico { background: var(--green); }
.ad-save.is-info { background: #e8f1ff; color: var(--blue-dark); }
.ad-save.is-info .m-ico { background: var(--blue); }
.ad-save.is-bad { background: #ffe8ea; color: var(--red-dark); }
.ad-save.is-bad .m-ico { background: var(--red); }
.ad-save.is-off { color: var(--ink-2); }
.ad-save.is-off .m-ico { background: #8a97ad; }

.ad-tools { display: flex; flex-wrap: wrap; gap: 10px; }

/* Phones: the switch goes under its words. */
@media (max-width: 560px) {
  .ad-power { grid-template-columns: 44px minmax(0, 1fr); }
  .ad-power-ico { width: 44px; height: 44px; font-size: 26px; border-radius: 13px; }
  .ad-switch { grid-column: 1 / -1; justify-self: stretch; }
  .ad-weapons { grid-template-columns: minmax(0, 1fr); }
  .ad-tools .btn { flex: 1 1 auto; }
}
