/* Director enrollment: a warm call sheet and a first production fund. */
.director-entry {
  display: inline-flex; align-items: center; gap: 12px; min-height: 38px; padding: 7px 13px;
  background: rgba(24, 18, 12, .72); border: 1px solid rgba(255, 138, 43, .6); border-radius: 2px;
  box-shadow: inset 0 0 18px rgba(255, 138, 43, .04); transition: background .2s, border-color .2s, box-shadow .2s;
}
.director-entry:hover { background: var(--tung-soft); border-color: var(--tung); box-shadow: 0 0 22px rgba(255, 138, 43, .12); }
.director-entry:focus-visible, .enroll-submit:focus-visible, .enroll-secondary:focus-visible, .enroll-close:focus-visible {
  outline: 2px solid var(--paper); outline-offset: 4px;
}
.director-entry-name { max-width: 148px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-family: var(--serif-zh); font-weight: 700; font-size: 14px; letter-spacing: .06em; }
.director-entry-budget { flex: none; font-family: var(--mono); font-size: 11px; color: var(--tung); white-space: nowrap;
  padding-left: 12px; border-left: 1px solid rgba(255, 138, 43, .28); }
.director-entry.enrolled { border-color: var(--line2); }

.credit-host { position: relative; width: max-content; max-width: 100%; }
#landing > .topbar { z-index: 2; }
.hb-wallet { grid-column: 2; grid-row: 1; justify-self: end; }
.hb-wallet .hb-fund { border: 0; padding: 0; color: inherit; background: transparent; }
.hb-wallet [data-credit-summary] { font-size: clamp(16px, 2vw, 24px); }
.credit-panel {
  display: none; position: absolute; z-index: 60; top: 100%; right: 0;
  box-sizing: border-box; width: min(294px, calc(100vw - 32px)); max-height: calc(100dvh - 96px); overflow-y: auto; padding: 18px;
  border: 1px solid var(--line2); border-top: 2px solid var(--tung); border-radius: 3px;
  background: #211d18; color: var(--paper); box-shadow: 0 14px 32px #0009;
  font: 13px/1.5 var(--sans-zh); text-align: left; letter-spacing: normal;
}
.credit-host:not([data-dismissed]):is(:hover, :focus-within) > .credit-panel:not([hidden]) { display: block; }
.credit-panel header, .credit-panel dl div { display: flex; align-items: center; justify-content: space-between; }
.credit-panel header strong { font: 700 17px var(--serif-zh); }
.credit-panel header button { width: 32px; height: 32px; color: var(--tung); border: 1px solid var(--line2); border-radius: 2px; background: transparent; font: 22px/1 var(--mono); }
.credit-panel dl { margin: 10px 0; }
.credit-panel dl div { padding: 7px 0; }
.credit-panel dd { margin: 0; font: 600 18px var(--mono); }
.credit-panel p { color: #b5a99a; font-size: 12px; margin: 6px 0 12px; }
.credit-panel header button span { display: inline-block; }
.credit-panel header button[aria-disabled="true"] span { animation: credit-refresh-spin .8s linear infinite; }
@keyframes credit-refresh-spin { to { transform: rotate(1turn); } }
.credit-panel button:disabled { cursor: default; }
.credit-recharge { width: 100%; padding: 8px; border: 1px solid var(--line2); background: var(--tung-soft); color: var(--tung); }
.credit-panel footer { display: grid; gap: 8px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.credit-panel footer a { padding: 0; text-align: left; color: #b5a99a; text-decoration: none; }

.ad[data-mode="register"] { z-index: 60; }
.ad[data-mode="register"] .ad-scrim {
  background: radial-gradient(ellipse at 35% 52%, rgba(255, 138, 43, .11), transparent 60%), rgba(6, 5, 4, .76);
  backdrop-filter: blur(10px) saturate(.7);
}
.ad[data-mode="register"] .ad-stage {
  top: 50%; bottom: auto; width: min(1060px, 94vw); transform: translate(-50%, -50%); align-items: center;
}
.ad[data-mode="register"] .ad-actor { width: 420px; margin-right: -90px; }
.ad[data-mode="register"] .ad-box { padding: 38px 42px 28px 104px; }
.ad[data-mode="register"] .ad-name { left: 94px; }
.ad[data-mode="register"] .ad-line { font-size: 20px; line-height: 1.8; margin-bottom: 22px; min-height: 3.6em; }
.ad[data-mode="register"] .ad-choices { display: block; }
.ad[data-mode="register"] .ad-keys { display: none; }
.enroll-close { position: absolute; top: 24px; right: 28px; z-index: 3; width: 40px; height: 40px;
  border: 1px solid var(--line2); border-radius: 2px; background: rgba(18, 15, 12, .75); color: var(--dim);
  font: 26px/1 var(--sans-zh); transition: color .2s, border-color .2s; }
.enroll-close:hover { color: var(--tung); border-color: var(--tung); }
.enroll-eyebrow { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 0 0 22px;
  font-family: var(--mono); font-size: 10px; letter-spacing: .18em; color: #b3a18c; }
.enroll-eyebrow span:first-child { color: var(--tung); letter-spacing: .24em; }
.enroll-form label { display: flex; align-items: baseline; flex-wrap: wrap; gap: 12px; font-size: 14px; font-weight: 700; }
.enroll-form label small { font-weight: 400; font-size: 11px; color: #b0a293; }
.enroll-name-field { display: flex; align-items: baseline; gap: 12px; margin-top: 6px; border-bottom: 1px solid var(--line2); }
.enroll-name-field:focus-within { border-bottom-color: var(--tung); box-shadow: 0 1px 0 rgba(255, 138, 43, .2); }
.enroll-name-field input { width: 100%; min-width: 0; padding: 9px 0 13px; background: none; border: 0; outline: none;
  font-family: var(--serif-zh); font-weight: 700; font-size: 27px; letter-spacing: .04em; color: var(--paper); }
.enroll-name-field input::placeholder { font-size: 23px; font-weight: 400; color: #897b6c; }
.enroll-name-field > span { flex: none; color: #b0a293; font-family: var(--serif-zh); font-size: 14px; }
.enroll-fund { position: relative; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center;
  gap: 8px 22px; margin-top: 24px; padding: 18px 20px; border: 1px solid rgba(255, 138, 43, .24);
  background: linear-gradient(115deg, rgba(255, 138, 43, .09), rgba(255, 138, 43, .015)); }
.enroll-fund::before, .enroll-fund::after { content: ""; position: absolute; left: -4px; width: 7px; height: 7px;
  border-radius: 50%; border: 1px solid rgba(255, 138, 43, .24); background: #191510; }
.enroll-fund::before { top: -4px; } .enroll-fund::after { bottom: -4px; }
.enroll-fund > div { display: grid; gap: 7px; }
.enroll-fund > div > span { font-size: 13px; color: #e5c5a4; }
.enroll-fund > div > small { font-family: var(--display); font-weight: 600; font-size: 10px; letter-spacing: .18em; color: #a38b73; }
.enroll-fund strong { display: flex; align-items: baseline; gap: 5px; font-family: var(--display); font-size: 48px;
  font-weight: 600; line-height: 1; letter-spacing: .02em; color: #ffb371; font-variant-numeric: tabular-nums; }
.enroll-fund strong i { font-family: var(--mono); font-size: 21px; font-style: normal; margin-right: 3px; color: #d49c69; }
.enroll-fund strong small { font: 12px var(--sans-zh); margin-left: 3px; color: #bda58c; }
.enroll-note { margin: 13px 0 22px; color: #b3a392; font-family: var(--serif-zh); font-size: 12px; line-height: 1.8; }
.enroll-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 20px; }
.enroll-submit { display: inline-flex; justify-content: space-between; align-items: center; gap: 24px; min-height: 46px;
  padding: 10px 19px; background: var(--tung); border: 1px solid var(--tung); border-radius: 2px; color: #211103;
  font-size: 14px; font-weight: 800; letter-spacing: .04em; box-shadow: 0 6px 24px rgba(255, 138, 43, .15);
  transition: background .2s, box-shadow .2s; }
.enroll-submit span { font-size: 22px; font-weight: 400; line-height: 1; }
.enroll-submit:hover { background: #ffa45b; box-shadow: 0 6px 30px rgba(255, 138, 43, .26); }
.enroll-submit:disabled { opacity: .65; cursor: wait; }
.enroll-secondary { min-height: 44px; padding: 6px 0; background: none; border: 0; color: #b3a392; font-size: 12px; }
.enroll-secondary:hover { color: var(--paper); }
.enroll-footnote { display: block; margin-top: 16px; color: #968676; font-size: 10px; letter-spacing: .06em; }
.enroll-error { margin: 12px 0; color: #ffad96; font-size: 13px; line-height: 1.6; }
.director-pass-name { display: flex; align-items: baseline; flex-wrap: wrap; gap: 12px; }
.director-pass-name h2 { margin: 0; overflow-wrap: anywhere; font-family: var(--serif-zh); font-size: 32px; line-height: 1.5; letter-spacing: .06em; }
.director-pass-name > span { font-family: var(--serif-zh); font-size: 15px; color: #bda58c; }
.enroll-fund.credited { margin-top: 18px; padding-bottom: 28px; }
.fund-stamp { position: absolute; bottom: -8px; right: 16px; padding: 4px 10px; background: #20170f;
  border: 1px solid rgba(255, 138, 43, .55); color: var(--tung); font-family: var(--serif-zh); font-size: 11px;
  letter-spacing: .18em; transform: rotate(-6deg); }
.ad[data-mode="register"][data-enrolled="true"] .director-pass { animation: fund-reveal .65s ease both; }
@keyframes fund-reveal { from { opacity: 0; transform: translateY(12px); } }

@media (max-width: 1120px) { .topbar .engine { display: none; } }
@media (max-width: 900px) {
  .ad[data-mode="register"] .ad-actor { width: 310px; margin-right: -96px; }
  .ad[data-mode="register"] .ad-box { padding-left: 94px; padding-right: 28px; }
  .ad[data-mode="register"] .ad-name { left: 84px; }
  .ad[data-mode="register"] .ad-name span { display: none; }
}
@media (max-width: 760px) {
  .ad[data-mode="register"] .ad-stage { top: auto; left: 0; bottom: 0; width: 100%; transform: none; align-items: stretch; }
  .ad[data-mode="register"] .ad-actor { width: 190px; margin: 0 0 -40px 8px; }
  .ad[data-mode="register"] .ad-box { padding: 28px 22px 24px; max-height: calc(100svh - 160px); overflow-y: auto; }
  .ad[data-mode="register"] .ad-name { position: static; display: inline-flex; margin: -8px 0 10px; }
  .ad[data-mode="register"] .ad-line { font-size: 17px; line-height: 1.75; min-height: 0; margin: 6px 0 20px; }
  .enroll-close { top: 14px; right: 16px; }
  .enroll-eyebrow { margin-bottom: 18px; }
  .enroll-name-field input { font-size: 23px; }
  .enroll-name-field input::placeholder { font-size: 20px; }
  .enroll-fund { margin-top: 20px; padding: 16px; gap: 12px; }
  .enroll-fund strong { font-size: 43px; }
  .enroll-fund > div > small { font-size: 9px; }
  .enroll-note { font-size: 12px; }
  .director-pass-name h2 { font-size: 28px; }
}
@media (max-width: 640px) {
  .topbar .hud-right { gap: 8px; }
  .topbar .mark { gap: 7px; }
  .topbar .mark-k { font-size: 23px; letter-spacing: .2em; }
  .topbar .mark-zh { font-size: 16px; }
  .topbar .vault-link { padding: 6px 8px; font-size: 13px; }
  .topbar .vault-link em { display: none; }
  .topbar .sound-toggle { width: 28px; height: 28px; }
  .director-entry { min-height: 36px; padding: 7px 9px; gap: 7px; }
  .director-entry-name { max-width: 68px; font-size: 12px; }
  .director-entry-budget { padding-left: 7px; font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) { .director-pass { animation: none !important; } }
