/* Definitive collector layout, scoped above legacy per-game completion rules. */
body.rrdd-adventure #rrddCollectorPanel.rrdd-child-award{
 position:fixed!important;inset:var(--collector-top,52px) 0 auto!important;height:var(--collector-height,calc(100dvh - 52px))!important;max-height:none!important;min-height:0!important;width:100%!important;max-width:none!important;margin:0!important;padding:12px 20px!important;box-sizing:border-box!important;overflow:hidden!important;display:flex!important;flex-direction:column!important;align-items:center!important;gap:8px!important;z-index:90!important;
}
body.rrdd-adventure #rrddCollectorPanel[hidden]{display:none!important}
body.rrdd-adventure #rrddCollectorPanel>h2{display:block!important;flex:none!important;font-size:24px!important;line-height:1.2!important;margin:0!important}
body.rrdd-adventure #rrddCollectorPanel>.rrdd-award-intro,body.rrdd-adventure #rrddCollectorPanel>.device-card-tabs{display:none!important}
body.rrdd-adventure #rrddCollectorPanel .rrdd-completion-layout{
 display:grid!important;grid-template-columns:minmax(0,1fr) minmax(340px,1fr)!important;grid-template-rows:minmax(0,1fr)!important;align-items:stretch!important;justify-content:normal!important;gap:24px!important;width:100%!important;max-width:1100px!important;flex:1 1 0!important;height:0!important;min-height:0!important;max-height:none!important;padding:0!important;margin:0!important;overflow:hidden!important;
}
body.rrdd-adventure #rrddCollectorPanel .rrdd-certificate-preview{
 display:flex!important;position:static!important;inset:auto!important;align-self:stretch!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:8px!important;height:100%!important;max-height:100%!important;min-height:0!important;min-width:0!important;padding:0!important;overflow:hidden!important;container-type:normal!important;
}
body.rrdd-adventure #rrddCollectorPanel .rrdd-card-preview-stage{
 position:relative!important;flex:none!important;width:min(100%,calc(var(--collector-card-height,400px) * .7142857),420px)!important;height:auto!important;max-height:none!important;min-height:0!important;aspect-ratio:5/7!important;margin:0!important;
}
body.rrdd-adventure #rrddCollectorPanel .rrdd-card-preview-stage canvas{display:block!important;width:100%!important;height:auto!important;max-height:none!important;aspect-ratio:5/7!important;box-sizing:border-box!important;object-fit:contain!important}
body.rrdd-adventure #rrddCollectorPanel .adv-award-form{display:flex!important;flex-direction:column!important;justify-content:center!important;align-self:stretch!important;gap:7px!important;min-height:0!important;height:100%!important;max-height:none!important;max-width:none!important;width:100%!important;box-sizing:border-box!important;overflow:auto!important;padding:12px!important;margin:0!important}
body.rrdd-adventure #rrddCollectorPanel .adv-award-form>*{flex-shrink:0}
body.rrdd-adventure #rrddCollectorPanel .adv-award-form{container-type:inline-size}
@container(max-width:440px){body.rrdd-adventure #rrddCollectorPanel .collector-name-keyboard{grid-template-columns:repeat(7,minmax(0,1fr))!important}}
body.rrdd-adventure #rrddCollectorPanel .adv-award-form>h3{white-space:normal!important;font-size:18px!important;line-height:1.2!important;margin:0!important}
body.rrdd-adventure #rrddCollectorPanel .collector-name-keyboard{display:grid!important;grid-template-columns:repeat(10,minmax(0,1fr))!important;gap:5px!important;margin:4px 0!important}
body.rrdd-adventure #rrddCollectorPanel .collector-name-keyboard button{min-width:0!important;min-height:44px!important;height:44px!important;font-size:19px!important;padding:2px!important}
body.rrdd-adventure #rrddCollectorPanel .adv-award-form>label{margin:0!important}
body.rrdd-adventure #rrddCollectorPanel .adv-award-form>.rrdd-share-choice{display:flex!important;font-size:12px!important;line-height:1.3!important;min-height:36px!important}
body.rrdd-adventure #rrddCollectorPanel .adv-award-options{display:flex!important;justify-content:center!important;gap:8px!important;margin:0!important;width:100%!important}
body.rrdd-adventure #rrddCollectorPanel .adv-award-options button,body.rrdd-adventure #rrddCollectorPanel .rrdd-save-certificate{position:static!important;flex:none!important;min-height:44px!important;height:auto!important;width:min(100%,420px)!important;margin:0!important;padding:8px 12px!important;font-size:17px!important;box-sizing:border-box!important}
body.rrdd-adventure #rrddCollectorPanel .rrdd-certificate-status:empty{display:none!important}
body.rrdd-adventure #rrddCollectorPanel .collector-pages,body.rrdd-adventure #rrddCollectorPanel .collector-view-card,body.rrdd-adventure #rrddCollectorPanel .collector-edit-name{display:none!important}
body.rrdd-adventure #rrddCollectorPanel[data-collector-compact=true]{padding:8px 12px max(8px,env(safe-area-inset-bottom))!important;gap:6px!important}
body.rrdd-adventure #rrddCollectorPanel[data-collector-compact=true]>h2{font-size:18px!important}
body.rrdd-adventure #rrddCollectorPanel[data-collector-compact=true] .collector-pages{display:flex!important;gap:8px!important;flex:none!important;width:100%!important;max-width:560px!important}
body.rrdd-adventure #rrddCollectorPanel .collector-pages button{flex:1;min-height:44px;border:2px solid var(--collector-line,#b5d0c3);border-radius:14px;background:#fff9ed;color:var(--collector-ink,#235767);font:bold 14px/1.2 'Trebuchet MS',sans-serif;padding:6px}
body.rrdd-adventure #rrddCollectorPanel .collector-pages button[aria-pressed=true]{background:#ffdc73;border-color:#d4a83c}
body.rrdd-adventure #rrddCollectorPanel[data-collector-compact=true] .rrdd-completion-layout{display:flex!important;flex-direction:column!important;max-width:560px!important;gap:0!important}
body.rrdd-adventure #rrddCollectorPanel[data-collector-compact=true][data-collector-pane=name] .rrdd-certificate-preview,body.rrdd-adventure #rrddCollectorPanel[data-collector-compact=true][data-collector-pane=card] .adv-award-form{display:none!important}
body.rrdd-adventure #rrddCollectorPanel[data-collector-compact=true] .adv-award-form{justify-content:safe center!important;padding:8px!important;gap:5px!important;flex:1 1 0!important}
body.rrdd-adventure #rrddCollectorPanel[data-collector-compact=true] .collector-name-keyboard{grid-template-columns:repeat(7,minmax(0,1fr))!important;gap:4px!important}
body.rrdd-adventure #rrddCollectorPanel[data-collector-compact=true] .adv-award-form>h3{font-size:16px!important}
body.rrdd-adventure #rrddCollectorPanel[data-collector-compact=true] .collector-view-card,body.rrdd-adventure #rrddCollectorPanel[data-collector-compact=true] .collector-edit-name{display:block!important;min-height:44px!important;flex:none!important;width:100%!important;max-width:420px!important;margin:0!important;padding:7px!important}
body.rrdd-adventure #rrddCollectorPanel[data-collector-compact=true] .rrdd-card-preview-stage{width:min(100%,calc(var(--collector-card-height,320px) * .7142857),360px)!important}
body.rrdd-adventure #rrddCollectorPanel[data-collector-compact=true] .rrdd-certificate-preview{flex:1 1 0!important}
@media(max-height:560px){body.rrdd-adventure #rrddCollectorPanel[data-collector-compact=true] .rrdd-certificate-preview{overflow:auto!important;justify-content:flex-start!important}body.rrdd-adventure #rrddCollectorPanel[data-collector-compact=true] .rrdd-card-preview-stage{width:150px!important}body.rrdd-adventure #rrddCollectorPanel>h2{display:none!important}}

/* Make first, confirm second on every device. No Join control appears in the editor. */
body.rrdd-adventure #rrddCollectorPanel .collector-pages{display:flex!important;gap:8px!important;flex:none!important;width:100%!important;max-width:560px!important}
body.rrdd-adventure #rrddCollectorPanel .collector-editor,body.rrdd-adventure #rrddCollectorPanel .collector-confirm{display:contents!important}
body.rrdd-adventure #rrddCollectorPanel[data-collector-pane=name] .collector-confirm,body.rrdd-adventure #rrddCollectorPanel[data-collector-pane=name] .rrdd-save-certificate,body.rrdd-adventure #rrddCollectorPanel[data-collector-pane=card] .collector-editor,body.rrdd-adventure #rrddCollectorPanel[data-collector-pane=card] .adv-award-options,body.rrdd-adventure #rrddCollectorPanel[data-collector-pane=card] .rrdd-card-avatar-arrow{display:none!important}
body.rrdd-adventure #rrddCollectorPanel .collector-view-card,body.rrdd-adventure #rrddCollectorPanel .collector-edit-name{display:block!important;width:100%!important;min-height:44px!important;margin:0!important;padding:8px!important}
body.rrdd-adventure #rrddCollectorPanel .collector-confirm>.rrdd-share-choice{display:flex!important;align-items:center!important;gap:8px!important;font-size:13px!important;line-height:1.35!important;margin:0!important;min-height:40px!important}
body.rrdd-adventure #rrddCollectorPanel .collector-confirm>.rrdd-share-choice input{flex:none;width:22px!important;height:22px!important;min-height:22px!important;margin:0!important}
body.rrdd-adventure #rrddCollectorPanel .collector-mini{display:none!important}
@container(max-width:440px){body.rrdd-adventure #rrddCollectorPanel .collector-name-keyboard{grid-template-columns:repeat(7,minmax(0,1fr))!important}}
body.rrdd-adventure #rrddCollectorPanel[data-collector-compact=true]>h2{display:none!important}
body.rrdd-adventure #rrddCollectorPanel[data-collector-compact=true] .adv-award-form>h3{display:none!important}
body.rrdd-adventure #rrddCollectorPanel[data-collector-compact=true][data-collector-pane=card] .adv-award-form{display:flex!important;height:auto!important;flex:none!important;overflow:visible!important;padding:6px 8px!important}
body.rrdd-adventure #rrddCollectorPanel[data-collector-compact=true] .collector-mini{display:flex!important;align-items:center!important;justify-content:center!important;gap:0!important;height:136px!important;min-height:136px!important;flex:none!important}
body.rrdd-adventure #rrddCollectorPanel[data-collector-compact=true] .collector-mini-card{display:none!important}
body.rrdd-adventure #rrddCollectorPanel[data-collector-compact=true] .collector-mini-controls{display:flex;flex-direction:column;gap:4px;width:240px;max-width:100%}
body.rrdd-adventure #rrddCollectorPanel .collector-mini-avatars{display:flex;align-items:center;justify-content:center;gap:12px}
body.rrdd-adventure #rrddCollectorPanel .collector-mini-avatars button{width:44px;height:44px;min-height:44px!important;border:2px solid #dfb855;border-radius:50%;padding:8px;background:#ffdc73;color:var(--collector-ink,#235767)}
body.rrdd-adventure #rrddCollectorPanel .collector-mini-avatars svg{width:24px;height:24px;display:block}
body.rrdd-adventure #rrddCollectorPanel .collector-mini-avatar{display:block!important;width:48px!important;height:48px!important;border-radius:50%;aspect-ratio:1!important;background:#fff6db;box-shadow:none!important}
body.rrdd-adventure #rrddCollectorPanel[data-collector-compact=true] .collector-mini-avatar{width:88px!important;height:88px!important}
body.rrdd-adventure #rrddCollectorPanel[data-collector-compact=true] .collector-mini .adv-award-options button{min-height:44px!important;font-size:13px!important;padding:6px!important}
body.rrdd-adventure #rrddCollectorPanel[data-collector-compact=true] .collector-name-keyboard{grid-template-columns:repeat(8,minmax(0,1fr))!important;gap:3px!important;margin:0!important}
body.rrdd-adventure #rrddCollectorPanel .collector-editor>label{display:block!important;margin:0!important;font-size:12px!important;line-height:1.2!important}
body.rrdd-adventure #rrddCollectorPanel .collector-editor>label input{margin-top:3px!important;min-height:44px!important;height:44px!important}
@media(max-height:560px){body.rrdd-adventure #rrddCollectorPanel[data-collector-compact=true][data-collector-pane=card] .rrdd-completion-layout{overflow:auto!important}body.rrdd-adventure #rrddCollectorPanel[data-collector-compact=true][data-collector-pane=card] .rrdd-certificate-preview{flex:none!important;height:260px!important}}

/* Local-photo explanation shared by all eight collector cards. */
.rrdd-photo-privacy{box-sizing:border-box;width:min(92vw,460px);max-height:88dvh;overflow:auto;padding:24px;border:2px solid #e5c775;border-radius:24px;background:#fff9ed;color:#214f59;box-shadow:0 14px 42px #193e4b40;text-align:left;font-family:inherit}
.rrdd-photo-privacy::backdrop{background:#153a4c99}
.rrdd-photo-privacy h3{margin:0 0 14px;font-size:24px;line-height:1.2;color:#214f59}
.rrdd-photo-privacy p{font-size:15px;line-height:1.5;margin:12px 0}
.rrdd-photo-privacy-actions{display:grid;gap:10px;margin-top:18px}
.rrdd-photo-privacy-actions button{min-height:48px;border:1px solid #b4cec6;border-radius:14px;background:#e8f2eb;color:#214f59;font:inherit;font-weight:700;padding:10px 14px;cursor:pointer}
.rrdd-photo-privacy-actions button.gold{background:#ffdf72;border-color:#e4bb54}
.rrdd-photo-privacy .rrdd-photo-social{font-size:13px;border-top:1px solid #decfa8;padding-top:14px;margin-top:18px}
.rrdd-photo-social a{color:#205c71;text-decoration:underline;text-underline-offset:3px}
#rrddCollectorPanel .rrdd-photo-privacy-link{background:transparent;border:0;box-shadow:none;font:inherit;font-size:12px;min-height:28px;padding:3px 8px;color:#36616a;text-decoration:underline;cursor:pointer}
#rrddCollectorPanel .rrdd-photo-input-host>.rrdd-photo-status:not(:empty){position:static;width:auto;height:auto;margin:4px 0;padding:0;overflow:visible;clip-path:none;white-space:normal;font-size:12px;line-height:1.3;color:#79502d;flex-basis:100%}
@media(max-height:600px){.rrdd-photo-privacy{padding:16px}.rrdd-photo-privacy h3{font-size:21px}.rrdd-photo-privacy p{margin:8px 0;font-size:13px}}
