/* Shared, non-interactive decoration slot. Does not alter cards or prize data. */
.f-selected-heading,.f-draw-card{position:relative}
.f-activity-trim{position:absolute;z-index:4;left:-16px;right:-16px;top:-28px;height:72px;pointer-events:none;user-select:none;overflow:visible}
.f-activity-trim img{display:block;width:100%;height:100%;object-fit:fill;filter:drop-shadow(0 3px 3px #0b071b33)}
.f-event-panel-crown>.f-activity-trim{top:-28px}
.jsha-theme-control{display:grid;grid-template-columns:minmax(190px,280px) minmax(170px,1fr);gap:10px;margin:12px 0;align-items:start}
.jsha-theme-control>label{display:grid;gap:5px;font-size:13px}
.jsha-theme-gallery{grid-column:2;grid-row:1 / span 2;border:1px solid #ded4e7;border-radius:10px;padding:10px;background:#faf8fc}
.jsha-theme-gallery summary{cursor:pointer;font-weight:600;color:#674984;min-height:26px}
.jsha-theme-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(155px,1fr));gap:8px;margin-top:10px;max-height:420px;overflow:auto}
.jsha-theme-grid button{padding:8px 5px;border:1px solid #d8cee2;border-radius:9px;background:linear-gradient(135deg,#30243f,#4e3b60);cursor:pointer;color:#fff;min-height:76px}
.jsha-theme-grid button:hover,.jsha-theme-grid button:focus-visible{outline:2px solid #bc9857;outline-offset:-2px}
.jsha-theme-grid img{width:100%;height:45px;object-fit:fill;display:block}
.jsha-theme-grid span{font-size:12px}
.jsha-theme-current{grid-column:1;position:relative;min-height:64px;border-radius:9px;background:#352641;overflow:hidden;color:#eee;font-size:12px;display:flex;align-items:center;justify-content:center}
.jsha-theme-current .f-activity-trim{top:3px;left:0;right:0;height:60px}
@media(max-width:640px){.f-activity-trim{height:52px;top:-24px;left:-8px;right:-8px}.f-event-panel-crown>.f-activity-trim{top:-24px}.jsha-theme-control{grid-template-columns:1fr}.jsha-theme-gallery{grid-column:1;grid-row:auto}.jsha-theme-current{grid-row:2}.jsha-theme-control select,.jsha-theme-gallery summary{min-height:44px}.jsha-theme-grid{grid-template-columns:1fr 1fr}}

.f-selected-heading:has(>.f-activity-trim),.f-draw-card:has(>.f-activity-trim),.f-draw-card:has(>.f-event-top-decor){overflow:visible}

/* Admin-only theme picker: clear upright label, aligned controls and contained previews. */
.jsha-theme-control{grid-template-columns:minmax(220px,.85fr) minmax(240px,1.15fr);gap:10px 16px;padding:14px 16px;border:1px solid #e5ddeb;border-radius:10px;background:#fcfaff;box-sizing:border-box}
.jsha-theme-control>label,.jsha .jsha-theme-control>label{display:flex;flex-direction:column;align-items:stretch;gap:8px;margin:0;min-width:0;color:#493451;font-family:inherit;font-size:15px;font-weight:600;font-style:normal;line-height:1.5;letter-spacing:0;writing-mode:horizontal-tb;text-orientation:mixed;text-decoration:none;transform:none;text-shadow:none}
.jsha-theme-control select.light-field{display:block;width:100%;min-width:0;max-width:100%;height:42px;min-height:42px;box-sizing:border-box;padding:8px 32px 8px 12px;font-family:inherit;font-size:14px;font-weight:400;line-height:1.5;color:#493451;background-color:#fff;letter-spacing:0;text-overflow:ellipsis}
.jsha-theme-control .jsha-theme-gallery{grid-column:2;grid-row:1 / span 2;min-width:0;padding:0;border:1px solid #e0d5e9;border-radius:8px;background:#fff}
.jsha-theme-gallery summary{display:list-item;box-sizing:border-box;min-height:44px;padding:11px 13px;font-size:14px;font-weight:600;line-height:22px;letter-spacing:0;white-space:normal;overflow-wrap:break-word;color:#624779}
.jsha-theme-gallery summary::marker{color:#9670ad;font-size:12px}
.jsha-theme-gallery[open] summary{border-bottom:1px solid #eee7f2}
.jsha-theme-gallery .jsha-theme-grid{margin:0;padding:10px;grid-template-columns:repeat(auto-fit,minmax(145px,1fr));max-height:320px;box-sizing:border-box}
.jsha-theme-grid button{display:flex;flex-direction:column;align-items:stretch;justify-content:center;gap:5px;min-width:0;line-height:1.4}
.jsha-theme-grid span{display:block;font-size:13px;line-height:1.5;white-space:normal;overflow-wrap:break-word}
.jsha-theme-control .jsha-theme-current{min-height:54px;border:1px solid #e5ddeb;border-radius:8px;background:linear-gradient(135deg,#44334f,#30233c);font-size:13px;font-weight:400;line-height:1.5;letter-spacing:0;padding:0 10px;text-align:center}
.jsha-theme-current .f-activity-trim{top:0;height:54px}
.jsha-theme-control select:focus-visible,.jsha-theme-gallery summary:focus-visible{outline:2px solid #a482bc;outline-offset:2px}
@media(max-width:760px){.jsha-theme-control{grid-template-columns:minmax(0,1fr);padding:12px;gap:10px}.jsha-theme-control .jsha-theme-gallery{grid-column:1;grid-row:3}.jsha-theme-control .jsha-theme-current{grid-column:1;grid-row:2}.jsha-theme-control select.light-field{height:44px;min-height:44px;font-size:16px}.jsha-theme-gallery summary{min-height:44px}.jsha-theme-gallery .jsha-theme-grid{grid-template-columns:repeat(2,minmax(0,1fr));max-height:300px}.jsha-theme-grid button{min-height:82px}}
