/*
  60-gates.css — v46.0 the way in as full-screen pages (design/settings/
  Main, Password, Who, DMLock). 09-gates.css drew them as cream cards over
  the dimmed app; the boards draw each as a dark page, centred, 420px wide.
*/

.player-gate { z-index: 280; background: #1f1712; align-items: flex-start; justify-content: center; overflow-y: auto; padding: 0; }
.player-gate .player-panel, .player-gate .access-panel {
  width: 100%; max-width: 420px; margin: 0 auto; box-sizing: border-box;
  min-height: 100dvh; display: flex; flex-direction: column; align-items: stretch;
  padding: 40px 16px 24px; border: 0; border-radius: 0; background: none; box-shadow: none; color: #f1e4c4; text-align: center;
}
.player-gate .player-panel::before { display: none; }
.player-gate .gate-eyebrow { margin: 6px 0 0; font-size: 13px; font-weight: 700; letter-spacing: 0; text-transform: none; color: #e8c069; }
.player-gate .player-panel h2 { margin: 4px 0 6px; font-size: 24px; font-weight: 700; line-height: 1.2; color: #f1e4c4; text-shadow: none; }
.player-gate .gate-help, .player-gate .player-panel .row-sub { margin: 0 0 18px; font-size: 14px; line-height: 1.45; color: #bfae8c; }
.player-gate .player-help { margin: 14px 0 0; font-size: 13px; line-height: 1.45; color: #bfae8c; display: block; }
.gate-logo { align-self: center; width: 72px; height: 72px; border-radius: 18px; }
.gate-version { margin: auto 0 0; padding-top: 24px; font-size: 12px; color: #8f8574; }

/* Choose a campaign */
.player-gate .campaign-list { display: flex; flex-direction: column; gap: 10px; text-align: left; }
.player-gate .campaign-choice {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 64px; padding: 10px 12px;
  border: 1px solid #3a2a1d; border-radius: 16px; background: #2a1e15; color: #f1e4c4; box-shadow: none; font: inherit; text-align: left; cursor: pointer;
}
.player-gate .campaign-choice[aria-current="true"] { border-color: #6e5b40; }
.player-gate .campaign-choice:hover { border-color: #c18a2a; box-shadow: none; }
.player-gate .campaign-choice .chev { margin-left: auto; color: #bfae8c; font-size: 20px; }
.gate-badge { flex-shrink: 0; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: #c18a2a; color: #1f1712; font-size: 17px; font-weight: 800; }
.gate-badge-lg { width: 56px; height: 56px; border-radius: 16px; font-size: 24px; }
.gate-camp-text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.gate-camp-name { font-size: 16px; font-weight: 700; color: #f1e4c4; }
.gate-camp-sub { font-size: 13px; color: #bfae8c; }

/* Party password, DM password */
.gate-head { display: flex; justify-content: center; margin-top: 8px; }
.player-gate #accessForm, .player-gate #dmLockForm { display: flex; flex-direction: column; gap: 10px; text-align: left; }
.gate-label { font-size: 13px; font-weight: 700; color: #bfae8c; }
.gate-field { position: relative; }
.player-gate .access-input,
#accessGate input.access-input, #dmLockGate input.access-input {
  width: 100%; box-sizing: border-box; min-height: 52px; padding: 0 48px 0 14px; border-radius: 14px;
  border: 1px solid #6e5b40; background: #2a1e15; color: #f1e4c4; font: inherit; font-size: 17px;
}
.player-gate #dmLockPassword { padding-right: 14px; }
#accessGate input.access-input:focus, #dmLockGate input.access-input:focus { background: #2a1e15; color: #f1e4c4; }
.player-gate .access-input:focus-visible { outline: 2px solid #e8c069; outline-offset: 2px; border-color: #e8c069; }
#accessGate input.access-input[aria-invalid="true"] { border-color: #e0705c; }
.gate-eye { position: absolute; top: 4px; right: 4px; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; background: none; color: #bfae8c; cursor: pointer; }
.gate-eye[aria-pressed="true"] { color: #e8c069; }
.player-gate .access-error { margin: 0; font-size: 14px; color: #f0a48c; }
.player-gate .access-submit { min-height: 52px; margin: 4px 0 0; border: 0; border-radius: 14px; background: #c18a2a; color: #1f1712; font-size: 17px; font-weight: 700; box-shadow: none; }
.player-gate .dm-lock-cancel {
  margin: auto auto 0; padding: 24px 0 0; min-height: 44px; border: 0; background: none; box-shadow: none;
  color: #e8c069; font-size: 15px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px;
}
.player-gate #dmLockForm .dm-lock-cancel { margin-top: 18px; }

/* DM password */
.player-gate .gate-crest { display: flex; flex-direction: column; align-items: center; gap: 6px; margin-top: 8px; }
.player-gate .gate-crest .gate-lock svg { display: block; stroke: currentColor; width: 28px; height: 28px; }
.gate-lock { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 999px; background: #845c0f; color: #f1e4c4; }
.gate-seat { font-size: 14px; font-weight: 700; color: #e8c069; }
.player-gate .gate-crest h2 { margin-top: 6px; }

/* Who's playing? */
.player-gate .player-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.player-gate .gate-player {
  display: flex; flex-direction: column; align-items: center; gap: 8px; min-height: 0; padding: 14px 6px 12px;
  border: 1px solid #3a2a1d; border-radius: 16px; background: #2a1e15; color: #f1e4c4; box-shadow: none; font: inherit; cursor: pointer;
}
.player-gate .gate-player:hover { border-color: #c18a2a; box-shadow: none; }
.gate-face { display: grid; place-items: center; width: 56px; height: 56px; overflow: hidden; border-radius: 999px; color: #1f1712; font-size: 22px; font-weight: 800; }
.gate-face img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.gate-player-name { max-width: 100%; font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gate-dm-card {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 64px; margin-top: 12px; padding: 10px 12px;
  border: 1px solid #6e5b40; border-radius: 16px; background: #2a1e15; color: #f1e4c4; font: inherit; text-align: left; cursor: pointer;
}
.gate-dm-card[hidden] { display: none; }
.gate-dm-card .chev { margin-left: auto; color: #bfae8c; font-size: 20px; }
.gate-dm-lock { flex-shrink: 0; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 999px; background: #845c0f; color: #f1e4c4; }
.player-gate .campaign-choice:focus-visible, .player-gate .gate-player:focus-visible, .gate-dm-card:focus-visible, .gate-eye:focus-visible, .player-gate .dm-lock-cancel:focus-visible, .player-gate .access-submit:focus-visible { outline: 2px solid #e8c069; outline-offset: 2px; }
