/* Debut page (/debut). The page, panel, grid, picker and footer come from garam_marketplace.css,
   garam_auctions.css, garam_market_sell.css and garam_picker_look.css; this is what is its own. */
.debut-page .debut-count { margin:0; font-size:14px; font-weight:600; color:var(--garam-c-096dae,#096dae); }
.debut-page .market-sell-panel { margin-bottom:4px; }

/* The filters over your debuted cards (the Marketplace's panel), shown from the second page on. */
.debut-page .debut-filter-panel { margin-bottom:4px; }
.debut-page .debut-filter-panel[hidden], .debut-page .marketplace-filters label[hidden] { display:none !important; }
.debut-filter-hint { flex:1; min-width:min(205px, 100%); color:var(--market-muted,#527f99); font-size:12px; }

/* A debuted card: its role and level under the name; the favorite is marked on the picture. */
.debut-card-row { gap:6px; }
.debut-role-chip { display:inline-flex; align-items:center; min-width:0; max-width:62%; padding:4px 9px; border-radius:999px;
    overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
    background:var(--market-raised,#eef7fd); border:1px solid var(--market-border,#bbdef5); color:var(--market-ink,#123c5c);
    font-size:12px; font-weight:600; }
.debut-card-row .marketplace-card-owner { font-variant-numeric:tabular-nums; font-weight:600; }
.debut-card.is-favorite { border-color:#e3a008; box-shadow:0 0 0 2px #e3a008, 0 7px 24px rgba(30,62,83,.10); }
/* The copy number sits at the top left of the picture: the favorite mark goes at the bottom. */
.debut-favorite-badge { position:absolute; left:5px; bottom:5px; max-width:calc(100% - 10px); padding:3px 8px; border-radius:7px;
    overflow:hidden; text-overflow:ellipsis; white-space:nowrap; background:#e3a008; color:#3b2a00; font-size:12px; font-weight:600; }

/* A debuted card's moves, in the card details under the buttons (.garam-modal-extra). */
.debut-moves h3 { margin:0 0 10px; color:var(--garam-c-153e5b,#153e5b); font-size:15px; font-weight:700; letter-spacing:-.01em; }
.debut-move-list { display:flex; flex-direction:column; gap:8px; margin:0; padding:0; list-style:none; }
.debut-move { display:flex; flex-direction:column; gap:3px; min-width:0; padding:10px 12px; border-radius:12px;
    background:var(--garam-c-f0f9ff,#f0f9ff); border:1px solid var(--garam-c-c8e5f6,#c8e5f6); }
.debut-move strong { color:var(--garam-c-153e5b,#153e5b); font-size:14px; font-weight:600; overflow-wrap:anywhere; }
.debut-move-figures { color:var(--garam-c-4c7e9c,#4c7e9c); font-size:12px; font-weight:600; font-variant-numeric:tabular-nums; }
.debut-move-effect { color:var(--garam-c-153e5b,#153e5b); font-size:13px; line-height:1.45; overflow-wrap:anywhere; }
.debut-moves-empty { margin:0; color:var(--garam-c-4c7e9c,#4c7e9c); font-size:13px; }
html[data-garam-mode="dark"] body .debut-move { background:var(--garam-dark-raised,#34353c); border-color:var(--garam-dark-border,#45464d); }
html[data-garam-mode="dark"] body .debut-moves h3,
html[data-garam-mode="dark"] body .debut-move strong,
html[data-garam-mode="dark"] body .debut-move-effect { color:var(--garam-dark-text,#f3f4f7); }
html[data-garam-mode="dark"] body .debut-move-figures,
html[data-garam-mode="dark"] body .debut-moves-empty { color:var(--garam-dark-muted,#a5a8b2); }

/* The dialog's second step: the chosen card and its four roles. */
body .debut-role-step { margin-top:16px; }
.debut-role-card { display:flex; align-items:center; gap:16px; padding:12px; border-radius:16px;
    background:var(--market-raised,#eef7fd); border:1px solid var(--market-border,#bbdef5); }
.debut-role-photo { display:block; width:84px; flex:0 0 84px; aspect-ratio:445 / 660; overflow:hidden; border-radius:9px;
    background:var(--market-panel,#fff); }
.debut-role-photo img { display:block; width:100%; height:100%; object-fit:cover; }
.debut-role-copy { display:flex; flex-direction:column; align-items:flex-start; gap:4px; min-width:0; }
.debut-role-copy strong { max-width:100%; overflow-wrap:anywhere; font-size:17px; font-weight:700; color:var(--market-ink,#123c5c); }
.debut-role-copy span { font-size:13px; color:var(--market-muted,#527f99); }
.debut-role-copy code { font-family:ui-monospace, Consolas, monospace; font-size:12px; color:var(--market-muted,#527f99); }
.debut-role-question { margin:20px 0 10px; font-size:15px; font-weight:600; color:var(--market-ink,#123c5c); }
.debut-roles { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; }
.debut-role { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:7px; min-height:92px; padding:12px 8px;
    border:2px solid var(--market-border,#bbdef5); border-radius:16px; background:var(--market-panel,#fff); color:var(--market-ink,#123c5c);
    font:inherit; font-size:14px; font-weight:600; cursor:pointer; transition:transform .15s ease, border-color .15s ease; }
.debut-role span { font-size:26px; line-height:1; }
.debut-role:hover:not(:disabled) { transform:translateY(-2px); }
.debut-role[aria-checked="true"] { border-color:var(--market-accent,#087cce); background:var(--garam-c-e5f5ff,#e5f5ff);
    box-shadow:0 0 0 2px var(--market-accent,#087cce); }
.debut-role:disabled { opacity:.6; cursor:default; }
.debut-role:focus-visible { outline:3px solid var(--garam-c-178fda,#178fda); outline-offset:2px; }
.debut-role-warning { margin:14px 0 0; padding:10px 13px; border-radius:12px; background:#fff6e2; border:1px solid #f0d58e;
    color:#7a5300; font-size:13px; font-weight:500; line-height:1.5; }
body .debut-done-step { margin-top:16px; }

html[data-garam-mode="dark"] body .debut-role-card,
html[data-garam-mode="dark"] body .debut-role-chip { background:var(--garam-dark-raised,#34353c); border-color:var(--garam-dark-border,#45464d);
    color:var(--garam-dark-text,#f3f4f7); }
html[data-garam-mode="dark"] body .debut-role { background:var(--garam-dark-raised,#34353c); border-color:var(--garam-dark-border,#45464d);
    color:var(--garam-dark-text,#f3f4f7); }
html[data-garam-mode="dark"] body .debut-role[aria-checked="true"] { background:var(--garam-dark-hover,#3d3e46); border-color:var(--garam-c-51a8e8,#51a8e8);
    box-shadow:0 0 0 2px var(--garam-c-51a8e8,#51a8e8); }
html[data-garam-mode="dark"] body .debut-role-copy strong,
html[data-garam-mode="dark"] body .debut-role-question { color:var(--garam-dark-text,#f3f4f7); }
html[data-garam-mode="dark"] body .debut-role-copy span,
html[data-garam-mode="dark"] body .debut-role-copy code,
html[data-garam-mode="dark"] body .debut-page .debut-count { color:var(--garam-dark-muted,#a5a8b2); }
html[data-garam-mode="dark"] body .debut-role-photo { background:var(--garam-dark-panel,#23242a); }
html[data-garam-mode="dark"] body .debut-role-warning { background:rgb(227 160 8 / 12%); border-color:rgb(227 160 8 / 45%); color:#f1c76a; }

@media (max-width:560px) {
    .debut-roles { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .debut-role { min-height:78px; }
    .debut-role-photo { width:66px; flex-basis:66px; }
}
@media (prefers-reduced-motion:reduce) {
    .debut-role { transition:none; }
    .debut-role:hover:not(:disabled) { transform:none; }
}
