.resource-delivery-backdrop {
  position: fixed; inset: 0; z-index: 11000; display: flex; align-items: center; justify-content: center;
  padding: 24px; background: rgb(0 0 0 / 78%); backdrop-filter: blur(7px);
}
.resource-delivery-dialog {
  position: relative; width: min(100%, 560px); max-height: calc(100dvh - 48px); overflow: auto;
  box-sizing: border-box; border: 1px solid #565038; border-radius: 18px; padding: 20px 28px 28px;
  background: linear-gradient(150deg, #181d17, #0e120f); color: #f5f3e9;
  box-shadow: 0 24px 100px rgb(0 0 0 / 60%); text-align: center; scrollbar-width: thin; scrollbar-color: #60583b #121810;
}
.resource-delivery-close {
  width: 34px; height: 34px; display: grid; place-items: center; flex: 0 0 auto;
  padding: 0; border: 0; border-radius: 8px; background: transparent; color: #acafa2;
  line-height: 1; cursor: pointer;
}
.resource-delivery-dialog h2 { margin: 22px 0 8px; font-size: 25px; line-height: 1.35; color: #f7f4e8; }
.resource-delivery-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid #343c2e; }
.resource-delivery-brand, .resource-delivery-tools { display: flex; align-items: center; gap: 8px; }
.resource-delivery-brand { color: #dbc686; font-size: 14px; font-weight: 700; white-space: nowrap; }
.resource-delivery-brand img { width: 24px; height: 24px; }
.resource-delivery-tools { gap: 4px; }
.resource-delivery-tools .resource-delivery-saved-link { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 34px; padding: 5px 8px; border: 0; border-radius: 8px; color: #c7bd9b; background: transparent; font-size: 12px; font-weight: 600; text-decoration: none; }
.resource-delivery-tools :is(a, button):hover { color: #f3df9f; background: #262c21; }
.resource-delivery-description { max-width: 400px; margin: 0 auto 16px; color: #acafa2; font-size: 14px; line-height: 1.7; }
.resource-delivery-card { padding: 18px 16px; background: #1b211a; border: 1px solid #3b402e; border-radius: 16px; }
.resource-delivery-provider { margin: 0 0 8px; font-size: 20px; color: #e1cf92; }
.resource-delivery-game { margin: 0 auto 18px; max-width: 340px; overflow-wrap: anywhere; color: #b6b9ab; font-size: 13px; line-height: 1.6; }
.resource-delivery-qr-frame { display: inline-flex; padding: 16px; background: #fff; border-radius: 14px; line-height: 0; }
.resource-delivery-qr { display: block; width: 256px; height: 256px; max-width: 100%; object-fit: contain; image-rendering: pixelated; }
.resource-delivery-code { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px; margin-top: 12px; font-size: 13px; color: #adb3a2; }
.resource-delivery-code strong { font-family: ui-monospace, monospace; font-size: 18px; letter-spacing: .1em; color: #e4cc82; user-select: all; }
.resource-delivery-code button { padding: 6px 12px; border: 1px solid #6d6037; border-radius: 7px; background: #302c1c; color: #e1cc85; font-weight: 600; cursor: pointer; }
.resource-delivery-open { display: block; margin-top: 18px; padding: 14px 18px; background: #d5bd75; color: #15170f; border-radius: 10px; text-decoration: none; font-weight: 750; }
.resource-delivery-dialog :focus-visible, .resolve-verification-dialog :focus-visible { outline: 2px solid #dec982; outline-offset: 4px; }
.resolve-verification-test-notice { padding: 10px 12px; border: 1px solid #80642c; border-radius: 9px; background: #392d16; color: #f2d493 !important; font-size: 12px !important; line-height: 1.6; }
@media (max-width: 600px) {
  .resource-delivery-backdrop { padding: 12px; }
  .resource-delivery-dialog { padding: 28px 14px 20px; border-radius: 18px; max-height: calc(100dvh - 24px); }
  .resource-delivery-dialog h2 { font-size: 24px; }
  .resource-delivery-card { padding: 18px 8px; }
  .resource-delivery-qr-frame { padding: 12px; }
  .resource-delivery-qr { width: 240px; height: 240px; }
}
.resolve-verification-dialog { max-width: 420px; padding: 28px; }
.resolve-verification-dialog h2 { margin: 0 28px 22px; font-size: 23px; line-height: 1.4; }
.resource-request-notice {
  position: fixed; z-index: 12000; left: 50%; top: 84px; transform: translateX(-50%);
  display: flex; align-items: center; gap: 10px; width: max-content; max-width: calc(100vw - 32px);
  box-sizing: border-box; border: 1px solid #655934; border-radius: 10px; padding: 12px 16px;
  background: #1c211b; color: #e9dfbf; font: 14px/1.6 system-ui, sans-serif;
  box-shadow: 0 10px 35px rgb(0 0 0 / 45%);
}
.resource-request-notice .spinner { flex: 0 0 auto; }
.resource-request-error { border-color: #795d42; color: #f1dbbc; }
.resource-request-error button {
  border: 0; padding: 0 3px; background: transparent; color: inherit; font-size: 24px; cursor: pointer;
}
.resource-request-error button:focus-visible { outline: 2px solid #dec982; outline-offset: 3px; }
.resource-request-error .resource-result-recover { padding: 4px 8px; border: 1px solid currentColor; border-radius: 6px; color: inherit; font-size: 12px; line-height: 1.5; text-decoration: none; }
.resource-request-error { flex-wrap: wrap; }
.entry-row > .resource-entry-actions { display: flex; flex-direction: row; align-items: stretch; justify-content: flex-end; gap: 0; width: 140px; min-width: 140px; }
.entry-row .resource-entry-actions > :is(button, a) { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; box-sizing: border-box; border: 1px solid #bca05b; border-radius: 9px; padding: 8px 14px; color: #292618; background: #d5bf7a; font-family: inherit; font-size: 12px; font-weight: 750; line-height: 1.4; text-decoration: none; white-space: nowrap; cursor: pointer; box-shadow: none; }
.entry-row .resource-entry-actions > :is(button, a):hover { background: #e2cc8c; }
.entry-row .resource-entry-actions > .resource-entry-resolve { width: 100%; }
.entry-row .resource-entry-actions > .resource-entry-saved { flex: 1; border-radius: 9px 0 0 9px; }
.entry-row .resource-entry-actions > .resource-entry-renew { flex: 0 0 36px; min-width: 0; width: 36px; padding: 8px; border-left: 0; border-radius: 0 9px 9px 0; }
.entry-row .resource-entry-actions > button:disabled { opacity: .6; cursor: wait; }
.resource-entry-actions > :focus-visible { position: relative; z-index: 1; outline: 2px solid #b89541; outline-offset: 3px; }
.turnstile-load-state { margin: 0 0 12px; color: #afb5a5; font-size: 13px; line-height: 1.6; }
.turnstile-reload { display: block; margin: 12px auto 0; padding: 4px 8px; border: 0; background: transparent; color: #cbb575; font: inherit; font-size: 12px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
html[data-baoku-theme="light"] .resource-delivery-toolbar { border-color: #e7e3d8; }
html[data-baoku-theme="light"] .resource-delivery-backdrop { background: rgb(33 39 32 / 42%); backdrop-filter: none; }
html[data-baoku-theme="light"] .resource-delivery-dialog { color: #252c26; background: #fffefa; border-color: #d4c9ac; box-shadow: 0 12px 40px rgb(42 41 30 / 12%); }
html[data-baoku-theme="light"] .resource-delivery-brand { color: #806018; }
html[data-baoku-theme="light"] .detail-resource-list .entry-row strong { color: #252c26; }
html[data-baoku-theme="light"] .resource-delivery-tools :is(a, button) { color: #626b62; background: transparent; border: 0; }
html[data-baoku-theme="light"] .resource-delivery-tools :is(a, button):hover { color: #806018; background: #f2eee2; }
html[data-baoku-theme="light"] .turnstile-load-state { color: #626b62; }
html[data-baoku-theme="light"] .turnstile-reload { color: #806018; }
@media (max-width: 360px) { .resource-delivery-card { padding-left: 0; padding-right: 0; } }
@media (max-width: 420px) { .entry-row > .resource-entry-actions { grid-column: 1 / -1; width: 100%; } }
@media (max-width: 600px) {
  .resolve-verification-dialog { padding: 26px 18px; }
  .resolve-verification-dialog h2 { font-size: 22px; }
  .resource-request-notice { top: 76px; }
}
