/* drops: Admin panel (js/admin-panel.js), the "Playtest" ribbon on unreleased content, the Playtester profile badge. */

/* ---- Playtester badge (profile title) ---- */
.pt-badge { display: inline-flex; align-items: center; margin-left: 12px; padding: 3px 10px; border-radius: 99px; vertical-align: middle;
  font: 800 12px var(--font-ui); letter-spacing: .1em; text-transform: uppercase; color: #10261a; background: linear-gradient(135deg, #7ff0b4, #3cc480);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .25) inset, 0 2px 10px rgba(60, 196, 128, .35); }

/* ---- Playtest ribbon: cards (ui.js cardFace) and store tiles (screens-store.js tile) ---- */
/* a .card is already absolutely placed (battle hand, board, piles): never pull it out of that layout, or a playtest card
   drops out of the hand fan or off the screen. Only the non-card wrappers need a positioning context for the ribbon. */
.pt-card:not(.card), .pt-item { position: relative; }
.pt-ribbon { position: absolute; z-index: 6; top: 21%; left: -6%; padding: 2px 14% 2px 10%; transform: rotate(-12deg); pointer-events: none;
  font: 900 11px var(--font-ui); letter-spacing: .14em; text-transform: uppercase; color: #10261a; white-space: nowrap;
  background: linear-gradient(90deg, #3cc480, #7ff0b4); box-shadow: 0 2px 8px rgba(0, 0, 0, .45); }
.card.tiny .pt-ribbon { font-size: 8px; }
.pt-item .pt-ribbon { top: 10px; left: -4px; transform: rotate(-8deg); padding: 2px 12px; }

/* ---- Admin panel ---- */
.adm { display: grid; gap: 18px; max-width: 1000px; margin: 0 auto; }
.adm-sec { padding: 18px 22px; }
.adm-sec .m-h small { margin-left: 8px; }
.adm-list { display: grid; gap: 12px; margin-top: 12px; }
.adm-drop { display: grid; gap: 8px; padding: 14px 16px; border-radius: 14px; background: rgba(0, 0, 0, .28); border: 1px solid rgba(232, 186, 90, .2); }
.adm-dh { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.adm-dh b { font: 800 18px var(--font-ui); color: #fff; margin-right: 4px; }
.adm-tag { padding: 2px 8px; border-radius: 8px; font: 700 12px var(--font-ui); color: var(--muted); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); }
.adm-tag.mono { font-family: ui-monospace, Consolas, monospace; }
.adm-tag.ovr { color: var(--gold); border-color: rgba(242, 193, 78, .4); }
.adm-state { padding: 2px 10px; border-radius: 99px; font: 800 12px var(--font-ui); letter-spacing: .06em; text-transform: uppercase; }
.adm-state.out { color: #10261a; background: #7ff0b4; }
.adm-state.pt { color: #10261a; background: #f2c14e; }
.adm-state.off { color: #fff; background: rgba(255, 255, 255, .14); }
.adm-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.adm-row > label { min-width: 70px; font: 700 13px var(--font-ui); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.adm-seg { flex: 1 1 320px; max-width: 460px; }
.adm-seg button { min-height: 36px; font: 800 14px var(--font-ui); }
.adm-date { flex: 0 1 240px; min-height: 38px; padding: 4px 10px; border-radius: 10px; color: #fff; background: rgba(0, 0, 0, .4); border: 1px solid rgba(232, 186, 90, .3); font: 600 14px var(--font-ui); color-scheme: dark; }
.adm-help { margin: 0; font-size: 13px; line-height: 1.4; color: var(--muted); }
.adm-drop .adm-reset { justify-self: start; }
.adm-search { display: flex; gap: 10px; margin-top: 12px; }
.adm-search input { flex: 1; min-width: 0; min-height: 38px; padding: 4px 12px; border-radius: 10px; color: #fff; background: rgba(0, 0, 0, .4); border: 1px solid rgba(232, 186, 90, .3); font: 600 15px var(--font-ui); }
.adm-acc { display: flex; align-items: center; gap: 14px; padding: 10px 14px; border-radius: 12px; background: rgba(0, 0, 0, .22); border: 1px solid rgba(190, 160, 255, .12); }
.adm-who { flex: 1; min-width: 0; display: grid; gap: 2px; }
.adm-who b { font: 800 16px var(--font-ui); color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adm-who span { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adm-sws { display: flex; gap: 16px; flex: none; }
.adm-sw span { width: auto; min-width: 70px; }
.adm-sw:disabled { opacity: .5; }

/* portrait: the stage is drawn at about twice the CSS size (see css/portrait-core.css), so everything scales up */
body.portrait .pt-badge { font-size: 20px; padding: 6px 16px; }
body.portrait .adm-sec { padding: 26px 24px; }
body.portrait .adm-dh b { font-size: 30px; }
body.portrait .adm-tag, body.portrait .adm-state { font-size: 20px; padding: 4px 12px; }
body.portrait .adm-row > label { font-size: 21px; min-width: 120px; }
body.portrait .adm-seg { flex: 1 1 100%; max-width: none; }
body.portrait .adm-seg button { min-height: 72px; font-size: 24px; }
body.portrait .adm-date { flex: 1 1 100%; min-height: 72px; font-size: 24px; }
body.portrait .adm-help { font-size: 21px; }
body.portrait .adm-search input { min-height: 72px; font-size: 24px; }
body.portrait .adm-acc { flex-wrap: wrap; padding: 18px; gap: 14px; }
body.portrait .adm-who b { font-size: 28px; } body.portrait .adm-who span { font-size: 21px; }
body.portrait .adm-sws { width: 100%; justify-content: space-between; }
body.portrait .adm-sw { font-size: 22px; }
body.portrait .adm-sw i { width: 86px; height: 46px; } body.portrait .adm-sw i::after { width: 38px; height: 38px; top: 3px; left: 3px; }
body.portrait .adm-sw.on i::after { transform: translateX(40px); }
body.portrait .pt-ribbon { font-size: 18px; }
body.portrait .card.tiny .pt-ribbon { font-size: 12px; }
/* the badge under the calling card (profile header on History / Stats / Account) */
.pt-card-badge { display: table; margin: 8px auto 0; }
/* playtest ribbon: library screens only (Collection, Deck Lab, Store), never on cards in a match */
#game .pt-ribbon, #layer .pt-ribbon { display: none !important; }
