/* Cover Art Studio (/cover-art): game-cover style poster from the customer's photos. Classes start with cvr- */

/* Hero: a slow sunset sky, a striped sun and a moving grid floor */
.cvr-hero { position: relative; overflow: hidden; padding: 34px 0 46px; color: #fff; background: linear-gradient(180deg, #2a1150 0%, #6d2f8f 38%, #e2589f 72%, #ff9d6c 100%); background-size: 100% 200%; animation: cvr-sky 14s ease-in-out infinite alternate; }
@keyframes cvr-sky { from { background-position: 0 0; } to { background-position: 0 100%; } }
.cvr-hero-sky { position: absolute; inset: 0; pointer-events: none; }
.cvr-sun { position: absolute; right: 8%; top: 50%; width: 260px; height: 260px; border-radius: 50%; transform: translateY(-50%); background: linear-gradient(180deg, #ffe08a 0%, #ff9b6a 55%, #f0569c 100%); -webkit-mask: repeating-linear-gradient(180deg, #000 0 16px, transparent 16px 22px); mask: repeating-linear-gradient(180deg, #000 0 16px, transparent 16px 22px); opacity: .85; animation: cvr-sun 6s ease-in-out infinite alternate; }
@keyframes cvr-sun { from { transform: translateY(-46%); } to { transform: translateY(-54%); } }
.cvr-hero-sky::after { content: ""; position: absolute; left: -10%; right: -10%; bottom: 0; height: 42%; background-image: linear-gradient(rgba(255,255,255,.22) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.22) 1px, transparent 1px); background-size: 44px 44px; transform: perspective(260px) rotateX(58deg); transform-origin: bottom; animation: cvr-floor 2.4s linear infinite; -webkit-mask: linear-gradient(transparent, #000 70%); mask: linear-gradient(transparent, #000 70%); }
@keyframes cvr-floor { to { background-position: 0 44px; } }
.cvr-hero-in { position: relative; }
.cvr-crumbs, .cvr-crumbs a { color: rgba(255,255,255,.85); }
.cvr-crumbs li[aria-current] { color: #fff; }
.cvr-kicker { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; background: rgba(20,6,40,.35); }
.cvr-hero h1 { margin: 12px 0 8px; max-width: 640px; font-size: clamp(30px, 5vw, 52px); line-height: 1.05; font-weight: 800; color: #fff; text-shadow: 0 3px 0 #1b0b2e, 0 8px 24px rgba(27,11,46,.45); }
.cvr-hero h1 em { font-style: normal; background: linear-gradient(90deg, #8ecbff, #ffd3f0, #ffe08a); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none; filter: drop-shadow(0 3px 0 #1b0b2e); }
.cvr-hero p { max-width: 560px; margin: 0; font-size: 16px; color: rgba(255,255,255,.92); }
@media (prefers-reduced-motion: reduce) { .cvr-hero, .cvr-sun, .cvr-hero-sky::after { animation: none; } }

/* The studio */
.cvr-page { padding-top: 22px; padding-bottom: 40px; }
.cvr-studio { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; }
.cvr-stage { position: sticky; top: 90px; }
.cvr-canvas-wrap { position: relative; max-width: 560px; margin: 0 auto; border-radius: 10px; overflow: hidden; box-shadow: 0 18px 40px rgba(43,23,69,.28); background: #2c1745; }
.cvr-canvas { display: block; width: 100%; height: auto; touch-action: none; cursor: grab; user-select: none; -webkit-user-select: none; }
.cvr-canvas:active { cursor: grabbing; }
.cvr-drop, .cvr-busy { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 18px; font-weight: 700; color: #fff; background: rgba(43,23,69,.72); pointer-events: none; }
.cvr-drop { border: 3px dashed #ffd43b; border-radius: 10px; }
.cvr-drop[hidden], .cvr-busy[hidden] { display: none; }
.cvr-spin { width: 22px; height: 22px; border: 3px solid rgba(255,255,255,.35); border-top-color: #fff; border-radius: 50%; animation: cvr-spin .8s linear infinite; }
@keyframes cvr-spin { to { transform: rotate(360deg); } }
.cvr-tip { display: flex; justify-content: center; gap: 8px; margin: 10px 0 0; font-size: 13px; color: var(--muted, #6b7280); text-align: center; }
.cvr-only-phone { display: none; }
@media (hover: none) { .cvr-only-pc { display: none; } .cvr-only-phone { display: inline; } }

.cvr-side { display: grid; gap: 14px; }
.cvr-card { padding: 16px; border: 1px solid #ece6f3; border-radius: 14px; background: #fff; box-shadow: 0 4px 14px rgba(43,23,69,.06); }
.cvr-card h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font-size: 17px; }
.cvr-card h2 > span { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; font-size: 13px; color: #fff; background: linear-gradient(135deg, #7d4fe8, #e85fb6); }
.cvr-card h2 small { margin-left: auto; font-size: 12.5px; font-weight: 600; color: var(--muted, #6b7280); }
.cvr-wide { width: 100%; justify-content: center; }
.cvr-hint { margin: 8px 0 0; font-size: 12.5px; color: var(--muted, #6b7280); }
.cvr-label { display: block; margin: 0 0 6px; font-size: 13px; font-weight: 600; }
.cvr-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.cvr-grow { flex: 1; justify-content: center; }
.cvr-box-tools { margin-top: 14px; padding: 12px; border-radius: 12px; background: #faf6ff; }
.cvr-box-tools[hidden] { display: none; }
.cvr-box-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; }
.cvr-warn { font-size: 12px; font-weight: 600; color: #b45309; }
.cvr-warn[hidden] { display: none; }
.cvr-range { display: flex; align-items: center; gap: 10px; margin-top: 10px; color: #7d4fe8; }
.cvr-range input { flex: 1; accent-color: #d9489f; }
.cvr-range-txt { font-size: 12px; font-weight: 600; color: var(--muted, #6b7280); }
.cvr-title-in { width: 100%; padding: 10px 12px; border: 1px solid #dcd3ea; border-radius: 10px; font: 600 18px/1.3 Poppins, sans-serif; resize: none; }
.cvr-title-in:focus, .cvr-badge-in:focus { outline: 2px solid #d9489f; outline-offset: 1px; }
.cvr-switch { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 14px; cursor: pointer; }
.cvr-switch input { width: 18px; height: 18px; accent-color: #7d4fe8; }
.cvr-badge-row { margin-top: 10px; }
.cvr-badge-row[hidden] { display: none; }
.cvr-badge-in { width: 110px; padding: 8px 12px; border: 1px solid #dcd3ea; border-radius: 10px; font: 700 20px 'Alfa Slab One', Georgia, serif; text-align: center; color: #7d4fe8; }
.cvr-finishes { display: grid; gap: 8px; }
.cvr-finish { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid #e3dbef; border-radius: 10px; cursor: pointer; }
.cvr-finish:has(input:checked) { border-color: #d9489f; background: #fff3fa; }
.cvr-finish input { accent-color: #d9489f; }
.cvr-finish span { flex: 1; font-size: 14px; }
.cvr-finish b { font-size: 14px; }
.cvr-qty-row { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.cvr-qty-row .cvr-label { margin: 0; }
.cvr-qty { width: 80px; }
.cvr-total { margin-left: auto; font-size: 20px; }
.cvr-msg { margin: 10px 0 0; padding: 8px 10px; border-radius: 8px; font-size: 13.5px; color: #166534; background: #ecfdf3; }
.cvr-msg.is-error { color: #b91c1c; background: #fef2f2; }
.cvr-msg[hidden] { display: none; }

/* Big view */
.cvr-view { position: fixed; inset: 0; z-index: 2000; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(14,6,24,.92); }
.cvr-view[hidden] { display: none; }
.cvr-view-box { width: min(100%, 720px); height: 100%; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.cvr-view-box img { max-width: 100%; max-height: 100%; }
.cvr-view-x { position: absolute; top: 14px; right: 14px; z-index: 2; width: 44px; height: 44px; border: 0; border-radius: 50%; font-size: 20px; color: #fff; background: rgba(255,255,255,.15); cursor: pointer; }

/* Below the studio */
.cvr-info { margin-top: 40px; }
.cvr-info h2 { font-size: 22px; margin: 26px 0 14px; }
.cvr-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.cvr-steps > div { padding: 16px; border-radius: 14px; background: linear-gradient(160deg, #f6efff, #fff1f7); }
.cvr-steps i { font-size: 22px; color: #d9489f; }
.cvr-steps b { display: block; margin: 8px 0 4px; }
.cvr-steps p { margin: 0; font-size: 14px; color: var(--muted, #6b7280); }
.cvr-faq details { padding: 12px 14px; border: 1px solid #ece6f3; border-radius: 12px; margin-bottom: 8px; background: #fff; }
.cvr-faq summary { font-weight: 600; cursor: pointer; }
.cvr-faq p { margin: 8px 0 0; color: var(--muted, #6b7280); }
.cvr-small { margin-top: 18px; font-size: 12px; color: var(--muted, #6b7280); }

@media (max-width: 960px) {
    .cvr-studio { grid-template-columns: 1fr; }
    .cvr-stage { position: static; }
    .cvr-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cvr-sun { width: 160px; height: 160px; right: -30px; opacity: .55; }
}
@media (max-width: 560px) {
    .cvr-hero { padding: 22px 0 30px; }
    .cvr-canvas-wrap { max-width: 100%; }
    .cvr-steps { grid-template-columns: 1fr; }
}

/* What goes behind the title: the VI logo, own letters or nothing */
.cvr-badge-label { margin-top: 14px; }
.cvr-badge-pick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.cvr-badge-pick label { cursor: pointer; }
.cvr-badge-pick input { position: absolute; opacity: 0; pointer-events: none; }
.cvr-badge-pick span { display: grid; justify-items: center; gap: 4px; padding: 8px 4px; border: 1px solid #e3dbef; border-radius: 10px; font-size: 12.5px; font-weight: 600; text-align: center; }
.cvr-badge-pick img { width: 40px; height: 30px; object-fit: contain; }
.cvr-badge-pick i, .cvr-badge-abc { display: grid; place-items: center; height: 30px; font-size: 20px; color: #7d4fe8; }
.cvr-badge-abc { font-family: 'Alfa Slab One', Georgia, serif; font-weight: 400; }
.cvr-badge-pick input:checked + span { border-color: #d9489f; background: #fff3fa; }
.cvr-badge-pick input:focus-visible + span { outline: 2px solid #d9489f; outline-offset: 1px; }

.cvr-range[hidden] { display: none; }

/* Title: line up left, centre or right; drag it on the poster */
.cvr-align { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 10px; }
.cvr-align button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 4px; border: 1px solid #e3dbef; border-radius: 10px; font: inherit; font-size: 13px; font-weight: 600; color: var(--text, #1f2937); background: #fff; cursor: pointer; }
.cvr-align button[aria-pressed="true"] { border-color: #d9489f; color: #b0247a; background: #fff3fa; }
.cvr-move-hint { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.cvr-link { padding: 0; border: 0; font: inherit; font-weight: 600; color: #b0247a; background: none; text-decoration: underline; cursor: pointer; }
.cvr-canvas.is-moving { cursor: move; }
.cvr-keep { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }

/* Hero with a sample made in the studio */
.cvr-hero-in.has-sample { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 30px; align-items: center; }
.cvr-hero-in.has-sample + .cvr-sun, .cvr-hero:has(.has-sample) .cvr-sun { right: 2%; }
.cvr-hero-go { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; padding: 12px 20px; border-radius: 999px; font-weight: 700; color: #2a1150; background: #ffe08a; text-decoration: none; box-shadow: 0 6px 0 #c2410c33, 0 10px 24px rgba(27,11,46,.35); transition: transform .2s; }
.cvr-hero-go:hover { transform: translateY(-2px); color: #2a1150; }
.cvr-hero-sample { position: relative; margin: 0; transform: rotate(4deg); animation: cvr-float 5s ease-in-out infinite alternate; }
.cvr-hero-sample img { display: block; width: 100%; height: auto; border: 6px solid #fff; border-radius: 6px; box-shadow: 0 22px 48px rgba(27,11,46,.5); }
.cvr-hero-sample figcaption { position: absolute; left: -14px; bottom: 18px; padding: 6px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; color: #fff; background: #d9489f; box-shadow: 0 6px 16px rgba(27,11,46,.35); }
@keyframes cvr-float { from { transform: rotate(4deg) translateY(0); } to { transform: rotate(2deg) translateY(-8px); } }
@media (prefers-reduced-motion: reduce) { .cvr-hero-sample { animation: none; } }
@media (max-width: 760px) {
    .cvr-hero-in.has-sample { grid-template-columns: minmax(0, 1fr) 120px; gap: 14px; }
    .cvr-hero-sample img { border-width: 3px; }
    .cvr-hero-sample figcaption { display: none; }
}
@media (max-width: 420px) { .cvr-hero-in.has-sample { grid-template-columns: minmax(0, 1fr) 96px; } }

