/* DigiPatrika - home page, card maker and admin. Light is warm paper, dark is the night of the baraat. */

:root, [data-theme=light] {
  --bg: #fcefd6; --surface: #fffaf0; --surface-2: #f5e4c2; --field: #fffdf7;
  --line: rgba(96, 44, 12, .18); --text: #33150f; --muted: #7b5a47; --link: #5b2a1c;
  --accent: #8a1626; --accent-2: #a51d30; --accent-ink: #fff3d6; --gold: #9a6912;
  --seal: #a3281b; --seal-ink: #ffd9b8; --ok: #2f7a4d; --err: #b3261e;
  --shadow: 0 14px 34px rgba(110, 60, 10, .16);
}
[data-theme=dark] {
  --bg: #131116; --surface: #1b1821; --surface-2: #24202c; --field: #100e14;
  --line: rgba(255, 255, 255, .11); --text: #f7efe1; --muted: #aaa2b6; --link: #d8d0e2;
  --accent: #7c4dff; --accent-2: #8f66ff; --accent-ink: #ffffff; --gold: #e6c98a;
  --seal: #c23a2a; --seal-ink: #ffe1c4; --ok: #63cf96; --err: #ff9483;
  --shadow: 0 18px 40px rgba(0, 0, 0, .5);
}
:root { --nav-h: 62px; --display: "Rozha One", "Anek Devanagari", Georgia, serif; }

* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--bg); }
body {
  background: var(--bg); color: var(--text);
  font-family: "Figtree", "Anek Devanagari", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
html[lang=mr] body { font-family: "Anek Devanagari", "Figtree", system-ui, sans-serif; font-size: 16.5px; }
a { color: inherit; }
.ic { width: 18px; height: 18px; flex: none; }
.dim { color: var(--muted); }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }

/* ---------- top bar ---------- */
.nav { position: sticky; top: 0; z-index: 20; height: var(--nav-h); background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.home .nav { position: fixed; left: 0; right: 0; border-bottom-color: transparent; }
.nav-inner { max-width: 1180px; height: 100%; margin: 0 auto; padding: 0 28px; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.brand { display: flex; align-items: center; gap: 9px; font: 400 23px/1 var(--display); text-decoration: none; }
.mark { width: 30px; height: 30px; }
.nav-right { display: flex; align-items: center; gap: 16px; font-size: 15px; font-weight: 500; color: var(--link); }
.nav-right a { text-decoration: none; }
.nav-right a:hover { color: var(--accent); }
.pill { display: inline-grid; place-items: center; min-height: 36px; padding: 0 13px; font: inherit; color: var(--text); background: transparent; border: 1px solid var(--line); border-radius: 999px; cursor: pointer; }
.theme-btn { width: 36px; padding: 0; }
[data-theme=light] .theme-btn .sun, [data-theme=dark] .theme-btn .moon { display: none; }

/* ---------- page frames ---------- */
main.narrow { max-width: 440px; margin: 0 auto; padding: 40px 20px 60px; }
main.wide { max-width: 1000px; margin: 0 auto; padding: 30px 20px 70px; }
.page-title { font: 400 clamp(27px, 4.6vw, 38px)/1.25 var(--display); }
.sub-title { font: 400 23px/1.3 var(--display); margin: 34px 0 14px; }
.lead { color: var(--muted); margin: 8px 0 20px; max-width: 60ch; }
.title-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 14px; }
.stack { display: grid; gap: 16px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 20px; }
.panel h2 { font: 400 21px/1.3 var(--display); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hint { color: var(--muted); font-size: 14px; }
.foot { border-top: 1px solid var(--line); padding: 26px 20px 34px; text-align: center; color: var(--link); font-size: 14px; display: grid; gap: 4px; }

/* ---------- forms ---------- */
label { display: grid; gap: 6px; font-size: 14.5px; color: var(--link); }
input:not([type=radio]):not([type=checkbox]):not([type=file]), textarea, select {
  width: 100%; padding: 12px 13px; font: inherit; font-size: 16px; color: var(--text);
  background: var(--field); border: 1px solid var(--line); border-radius: 8px;
}
input:focus, textarea:focus { border-color: var(--accent-2); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-2) 22%, transparent); }
textarea { resize: vertical; line-height: 1.6; }
input::placeholder { color: color-mix(in srgb, var(--muted) 70%, transparent); }
[data-theme=dark] input[type=date], [data-theme=dark] input[type=time] { color-scheme: dark; }
.field-label { font-size: 14.5px; color: var(--link); margin-bottom: 8px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 17px; cursor: pointer; text-decoration: none;
  font: inherit; font-weight: 600; font-size: 15px; color: var(--text);
  background: var(--surface); border: 1px solid var(--line); border-radius: 8px;
}
.btn:hover { border-color: var(--accent-2); }
.btn-main { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn-main:hover { background: var(--accent-2); border-color: var(--accent-2); }
.btn-big { min-height: 54px; padding: 0 26px; font-size: 17px; }
.btn-quiet { background: transparent; border-color: transparent; color: var(--muted); padding: 0 10px; font-weight: 500; }
.btn-wa { background: #1f8f4e; border-color: #1f8f4e; color: #fff; }
.btn-wa:hover { background: #24a35a; border-color: #24a35a; }
.btn:disabled { opacity: .45; cursor: default; }
.btn.is-set { border-color: var(--ok); color: var(--ok); }
.btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.btn-row.end { justify-content: flex-end; margin-top: 6px; }

.note { padding: 12px 15px; border-radius: 8px; margin-bottom: 16px; font-size: 15px; }
.note-ok { background: color-mix(in srgb, var(--ok) 13%, transparent); border: 1px solid color-mix(in srgb, var(--ok) 50%, transparent); }
.note-err { background: color-mix(in srgb, var(--err) 10%, transparent); border: 1px solid color-mix(in srgb, var(--err) 50%, transparent); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: block; }
.chip input { position: absolute; opacity: 0; }
.chip span, .chip-link { display: block; padding: 8px 17px; cursor: pointer; text-decoration: none; border: 1px solid var(--line); border-radius: 999px; color: var(--link); background: var(--surface); }
.chip input:checked + span, .chip-link.on { background: var(--text); color: var(--bg); border-color: var(--text); }
.chip input:focus-visible + span { outline: 2px solid var(--accent-2); outline-offset: 2px; }
.chip-btn, .wording-btn { font: inherit; color: var(--link); text-align: left; cursor: pointer; background: transparent; border: 1px dashed color-mix(in srgb, var(--gold) 70%, transparent); }
.chip-btn { padding: 6px 13px; border-radius: 999px; font-size: 14.5px; }
.wording { display: grid; gap: 8px; }
.wording-btn { padding: 11px 14px; border-radius: 8px; font-size: 15px; line-height: 1.55; }
.chip-btn:hover, .wording-btn:hover { color: var(--text); border-style: solid; border-color: var(--accent-2); }

/* ---------- the card code ---------- */
.code-strip {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 6px 22px;
  margin: 0 0 24px; padding: 14px 18px; border-radius: 10px;
  background: var(--surface-2); border: 1px dashed color-mix(in srgb, var(--gold) 80%, transparent);
}
.code-strip span { display: block; font-size: 13px; color: var(--muted); }
.code-strip strong, .code-chip { font: 600 21px/1.2 ui-monospace, "SF Mono", Menlo, Consolas, monospace; letter-spacing: .06em; color: var(--text); white-space: nowrap; }
.code-chip { font-size: 14.5px; margin-right: 8px; }
.code-strip p { font-size: 14px; color: var(--muted); }
.mine-top { display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: center; }
.code-form { display: flex; gap: 10px; margin-bottom: 12px; max-width: 470px; }
.code-in { font: 600 21px/1.2 ui-monospace, "SF Mono", Menlo, Consolas, monospace !important; letter-spacing: .08em; text-transform: uppercase; }
.new-card { display: grid; justify-items: center; gap: 10px; padding: 26px 34px; text-align: center; text-decoration: none; border-radius: 12px; color: #fff3d6; background: linear-gradient(rgba(74, 12, 22, .35), rgba(74, 12, 22, .6)), url(../img/paper-maroon.jpg) center / 420px; box-shadow: var(--shadow); }
.new-card img { filter: drop-shadow(0 5px 6px rgba(0, 0, 0, .4)); transition: transform .3s; }
.new-card:hover img { transform: rotate(14deg) scale(1.06); }
.new-card span { display: grid; font-size: 14px; color: #ecd6a8; }
.new-card strong { font: 400 21px/1.3 var(--display); color: #fff3d6; }

/* ---------- card maker ---------- */
.steps { display: flex; gap: 4px; list-style: none; margin-bottom: 22px; }
.steps li { flex: 1; }
.steps a, .steps span { display: flex; align-items: center; gap: 8px; padding: 9px 6px; text-decoration: none; color: var(--muted); font-size: 15px; font-weight: 500; border-bottom: 2px solid var(--line); }
.steps b { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--line); font: 600 13px/1 "Figtree", sans-serif; }
.steps .on a, .steps .on span { color: var(--text); border-color: var(--accent); }
.steps .on b { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.steps .done b { border-color: var(--ok); color: var(--ok); }

.ev-row { margin-bottom: 14px; display: grid; gap: 14px; }
.ev-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ev-grid .span2 { grid-column: span 2; }
.map-dlg { width: min(680px, 94vw); padding: 16px; margin: auto; color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.map-dlg::backdrop { background: rgba(0, 0, 0, .65); }
.map-head { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin-bottom: 12px; }
#map { height: min(56vh, 420px); border-radius: 8px; margin-bottom: 12px; background: #ddd; }

.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; }
.photo-grid figure { position: relative; aspect-ratio: 1; border-radius: 8px; overflow: hidden; background: #000; }
.photo-grid figure:first-child { outline: 3px solid var(--gold); outline-offset: -3px; }
.photo-grid img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-grid figure button { position: absolute; top: 5px; right: 5px; width: 32px; height: 32px; display: grid; place-items: center; cursor: pointer; color: #fff; background: rgba(0, 0, 0, .6); border: 0; border-radius: 8px; }
.photo-add { aspect-ratio: 1; display: grid; place-content: center; justify-items: center; gap: 6px; cursor: pointer; text-align: center; border: 1.5px dashed color-mix(in srgb, var(--gold) 80%, transparent); border-radius: 8px; color: var(--link); font-size: 14px; }
.photo-add.busy { opacity: .5; pointer-events: none; }
#photoCount { margin-top: 12px; }

.publish { display: grid; grid-template-columns: 300px 1fr; gap: 30px; align-items: start; }
.preview-phone { width: 300px; aspect-ratio: 9 / 18; border-radius: 30px; padding: 8px; background: #0b090d; box-shadow: var(--shadow); }
.preview-phone iframe { width: 100%; height: 100%; border: 0; border-radius: 23px; background: #4a0c16; }
.plan-list { display: grid; gap: 10px; }
.plan { display: block; cursor: pointer; }
.plan input { position: absolute; opacity: 0; }
.plan-body { display: grid; gap: 4px; padding: 14px 16px; background: var(--surface); border: 1.5px solid var(--line); border-radius: 10px; }
.plan-top { display: flex; justify-content: space-between; align-items: baseline; font-size: 19px; color: var(--text); }
.plan-top strong { font: 400 21px/1.2 var(--display); }
.plan-top b { font: 700 21px/1 "Figtree", sans-serif; }
.plan-facts { color: var(--link); font-size: 14.5px; }
.plan-rec { color: var(--ok); font-size: 14px; }
.plan-why { color: var(--err); font-size: 14px; }
.plan.off { cursor: default; }
.plan.off .plan-body { opacity: .55; }
.plan input:checked + .plan-body { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 9%, var(--surface)); }
.plan input:focus-visible + .plan-body { outline: 2px solid var(--accent-2); outline-offset: 2px; }

/* ---------- decorate step ---------- */
.decorate { display: grid; grid-template-columns: 300px 1fr; gap: 34px; align-items: start; }
.decorate .preview-phone { position: sticky; top: calc(var(--nav-h) + 14px); }
.pick { border: 0; }
.pick legend { font: 400 20px/1.3 var(--display); margin-bottom: 10px; }
.pick-row { display: flex; flex-wrap: wrap; gap: 10px; }
.pick label { display: block; cursor: pointer; }
.pick input { position: absolute; opacity: 0; }
.pick span { display: grid; justify-items: center; gap: 7px; min-width: 92px; padding: 12px 12px 10px; text-align: center; font-size: 14.5px; color: var(--link); background: var(--surface); border: 1.5px solid var(--line); border-radius: 10px; }
.pick i { display: block; width: 52px; height: 52px; border-radius: 50%; box-shadow: inset 0 0 0 2px rgba(236, 201, 111, .75); }
.pick .thumb { width: 44px; height: 58px; object-fit: cover; object-position: 50% 15%; border-radius: 4px; }
.pick u { display: block; width: 44px; height: 44px; background-size: 600% 100%; background-position: 0 0; }
.pick b { font-size: 24px; font-weight: 400; line-height: 1.2; color: var(--text); }
.pick-font b { font-weight: inherit; }
.pick input:checked + span { border-color: var(--accent); color: var(--text); background: color-mix(in srgb, var(--accent) 9%, var(--surface)); }
.pick input:focus-visible + span { outline: 2px solid var(--accent-2); outline-offset: 2px; }

/* ---------- opens meter ---------- */
.meter { height: 8px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.meter i { display: block; width: var(--fill); height: 100%; border-radius: 99px; background: var(--ok); }
.opens { margin: 0 0 22px; display: grid; gap: 8px; color: var(--muted); }
.opens strong { color: var(--text); font: 400 24px/1 var(--display); }
.opens a { color: var(--accent); margin-left: 6px; }
[data-theme=dark] .opens a { color: var(--gold); }
.opens.low .meter i { background: var(--err); }
.opens.low b { color: var(--err); font-weight: 600; margin-right: 4px; }

/* ---------- my cards ---------- */
.card-list { display: grid; gap: 4px; }
.my-card { display: grid; grid-template-columns: 74px 1fr; gap: 18px; align-items: start; padding: 20px 0; border-top: 1px solid var(--line); }
.mini-env { display: grid; place-items: center; width: 74px; height: 52px; border-radius: 4px; background: url(../img/envelope-maroon.jpg) center / cover; box-shadow: 0 6px 12px rgba(0, 0, 0, .25); transform: rotate(-4deg); }
.my-card h3 { font: 400 22px/1.3 var(--display); }
.my-card p { color: var(--muted); font-size: 14.5px; margin: 4px 0 12px; }
.tag { display: inline-block; padding: 2px 9px; margin-right: 6px; border-radius: 999px; background: var(--surface-2); color: var(--text); font-size: 12.5px; font-weight: 600; }
.tag-live { background: color-mix(in srgb, var(--ok) 20%, transparent); color: var(--ok); }
td form, .btn-row form { display: inline; }

/* ---------- share page ---------- */
.share-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.span-all { grid-column: 1 / -1; }
.copy-row { display: flex; gap: 8px; }
.copy-row input { min-width: 0; }
.guest-box, .slug-form { padding-top: 16px; border-top: 1px solid var(--line); }
.slug-in { display: flex; align-items: center; background: var(--field); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.slug-in em { padding-left: 12px; font-style: normal; color: var(--muted); font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 55%; }
.slug-in input { border: 0 !important; background: transparent !important; padding-left: 2px !important; box-shadow: none !important; }
.qr-stage { display: grid; place-items: center; padding: 6px; }
#qrCanvas { cursor: pointer; width: min(100%, 300px); height: auto; border-radius: 10px; box-shadow: var(--shadow); }
.dl-list { display: grid; gap: 8px; }
.dl-list .btn { justify-content: flex-start; padding: 10px 14px; text-align: left; }
.dl-list span { display: grid; }
.dl-list small { color: var(--muted); font-weight: 400; font-size: 13.5px; }
.big-count strong { font: 400 34px/1 var(--display); }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 500; white-space: nowrap; }

/* ---------- admin ---------- */
.admin-nav { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 22px; }
.admin-nav a { padding: 8px 14px; border-radius: 999px; text-decoration: none; color: var(--link); border: 1px solid var(--line); font-size: 14.5px; }
.admin-nav a.on { background: var(--text); color: var(--bg); border-color: var(--text); }
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 20px; }
.stat { padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
.stat b { display: block; font: 400 30px/1.15 var(--display); }
.stat span { color: var(--muted); font-size: 14px; }
.plan-edit { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px; align-items: end; }
.checks { display: flex; flex-wrap: wrap; gap: 14px; }
.checks label { display: flex; align-items: center; gap: 6px; }

/* ---------- home ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; overflow: hidden; display: grid; align-items: center; }
[data-theme=dark] .hero { background: radial-gradient(60% 55% at 72% 48%, rgba(124, 77, 255, .16), transparent 70%); }
.hero-inner { width: 100%; max-width: 1180px; margin: 0 auto; padding: calc(var(--nav-h) + 26px) 28px 40px; display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 40px; }
.copy { max-width: 560px; position: relative; z-index: 2; }
.hero h1 { font: 400 clamp(40px, 5vw, 70px)/1.18 var(--display); }
html[lang=en] .hero h1 { line-height: 1.05; letter-spacing: -.01em; }
.sub { margin-top: 16px; color: var(--muted); font-size: clamp(17px, 1.5vw, 20.5px); line-height: 1.65; max-width: 30em; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 22px; }

/* The maker on the home page: two names, a colour, a seal. */
.maker { margin-top: 26px; max-width: 520px; }
.maker-names { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.maker-names input { font: 400 24px/1.3 var(--display) !important; padding: 10px 14px !important; }
.maker-pick { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 26px; margin-top: 16px; }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.swatches label { display: block; cursor: pointer; }
.swatches input { position: absolute; opacity: 0; }
.swatches i { display: block; width: 38px; height: 38px; border-radius: 50%; box-shadow: 0 0 0 2px var(--bg), 0 0 0 3px var(--line); transition: transform .15s; }
.swatches img { display: block; width: 42px; height: auto; opacity: .55; transition: transform .15s, opacity .15s; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .3)); }
.swatches input:checked + i { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--gold); transform: scale(1.1); }
.swatches input:checked + img { opacity: 1; transform: scale(1.14) rotate(8deg); }
.swatches input:focus-visible + i, .swatches input:focus-visible + img { outline: 2px solid var(--accent-2); outline-offset: 4px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
button.btn-try { border: 0; cursor: pointer; font-family: inherit; }

.stage { position: relative; display: grid; justify-items: center; perspective: 1300px; }
.stage::before { content: ""; position: absolute; inset: -8% -14%; border-radius: 50%; z-index: -1; background: radial-gradient(closest-side, color-mix(in srgb, var(--gold) 26%, transparent), transparent); }
[data-theme=dark] .stage::before { background: radial-gradient(closest-side, rgba(124, 77, 255, .3), transparent); }
.hero-phone { width: min(296px, 78vw); aspect-ratio: 9 / 18.2; padding: 9px; border-radius: 40px; background: #0b090d; box-shadow: var(--shadow), 0 40px 70px rgba(0, 0, 0, .28), inset 0 0 0 1.5px rgba(255, 255, 255, .14); transform: rotateY(-4deg) rotate(1.5deg); transform-style: preserve-3d; will-change: transform; }
.hero-phone iframe { width: 100%; height: 100%; border: 0; border-radius: 31px; background: #3f0a13; }
.tap-note { margin-top: 14px; font-size: 14.5px; color: var(--muted); }
.btn-try { display: inline-flex; align-items: center; justify-content: center; height: 58px; padding: 0 34px; border-radius: 8px; background: var(--accent); color: var(--accent-ink); font-weight: 600; font-size: 19px; text-decoration: none; transition: transform .2s, background .2s; }
.btn-try:hover { transform: translateY(-2px); background: var(--accent-2); }
.code-link { color: var(--link); font-size: 15.5px; text-underline-offset: 4px; }
.no-login { margin-top: 16px; color: var(--muted); font-size: 15px; }
.no-login b { color: var(--text); font-weight: 600; }

.art { position: relative; margin: -30px -60px -30px 0; perspective: 1200px; }
.art img.hero-img { display: block; width: 100%; height: auto; will-change: transform;
  -webkit-mask: radial-gradient(ellipse 50% 50% at 50% 50%, #000 62%, transparent 100%); mask: radial-gradient(ellipse 50% 50% at 50% 50%, #000 62%, transparent 100%); }
[data-theme=light] .art .for-dark, [data-theme=dark] .art .for-light { display: none; }
/* A price stamp, pressed on at an angle like the rubber stamp on a printed patrika's wrapper. */
.stamp {
  position: absolute; left: 6%; bottom: 13%; z-index: 2; width: 118px; height: 118px; display: grid; place-content: center; text-align: center;
  border-radius: 50%; transform: rotate(-11deg); color: var(--accent); font-size: 13px; line-height: 1.25;
  border: 2px solid currentColor; outline: 1px dashed currentColor; outline-offset: -8px; background: color-mix(in srgb, var(--bg) 82%, transparent);
}
[data-theme=dark] .stamp { color: var(--gold); }
.stamp b { display: block; font: 400 31px/1 var(--display); }

.rise { opacity: 0; transform: translateY(16px); animation: rise .9s cubic-bezier(.2, .7, .2, 1) forwards; }
.d1 { animation-delay: .05s; } .d2 { animation-delay: .18s; } .d3 { animation-delay: .3s; }
@keyframes rise { to { opacity: 1; transform: none; } }

.band { padding: 84px 0; }
.band + .band { border-top: 1px solid var(--line); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 28px; }
.band h2 { font: 400 clamp(28px, 3.4vw, 44px)/1.25 var(--display); max-width: 17em; }
.band .lead { font-size: 18px; margin-top: 14px; }

/* Try it: the sample card in a phone, seal still on. */
.try { display: grid; grid-template-columns: 1fr 1.05fr; gap: 50px; align-items: center; }
.try.flip { grid-template-columns: 1.05fr 1fr; }
.scene { display: block; width: 100%; height: auto; border-radius: 12px; box-shadow: var(--shadow); }
.scene text { font-family: "Rozha One", "Anek Devanagari", serif; }
.packs { list-style: none; margin-top: 24px; }
.packs li { padding: 14px 0; border-top: 1px solid var(--line); color: var(--muted); }
.packs strong { display: block; color: var(--text); font-weight: 600; font-size: 18px; }
.try-phone { width: 330px; aspect-ratio: 9 / 18.4; padding: 9px; border-radius: 38px; background: #0b090d; box-shadow: var(--shadow), 0 0 0 1px var(--line); transform: rotate(2deg); }
.try-phone iframe { width: 100%; height: 100%; border: 0; border-radius: 30px; background: #4a0c16; }
.try ol { list-style: none; margin-top: 30px; display: grid; gap: 22px; counter-reset: s; }
.try ol li { display: grid; grid-template-columns: 54px 1fr; gap: 6px; counter-increment: s; }
.try ol li::before { content: counter(s); font: 400 44px/1 var(--display); color: var(--gold); }
.try ol li h3 { font-size: 19.5px; font-weight: 600; }
.try ol li p { color: var(--muted); }

.wrap.two { display: grid; grid-template-columns: 1.2fr .8fr; gap: 60px; align-items: start; }
.gets { list-style: none; margin-top: 26px; }
.gets li { display: grid; grid-template-columns: 26px 1fr; gap: 14px; padding: 17px 0; border-top: 1px solid var(--line); }
.gets .ic { width: 22px; height: 22px; color: var(--accent); margin-top: 3px; }
.gets strong { display: block; font-weight: 600; font-size: 18px; }
.gets span { color: var(--muted); }
.gets span strong { color: var(--text); }
.delete-note { padding: 30px 28px; color: #f3e2bb; border-radius: 6px; transform: rotate(1.2deg); box-shadow: var(--shadow); background: linear-gradient(rgba(74, 12, 22, .4), rgba(74, 12, 22, .62)), url(../img/paper-maroon.jpg) center / 460px; outline: 1px solid rgba(236, 201, 111, .55); outline-offset: -9px; }
.delete-note h3 { font: 400 25px/1.3 var(--display); color: #fff3d6; margin-bottom: 10px; }

.price-table { margin: 30px 0 16px; border-top: 1px solid var(--line); }
.price-row { display: grid; grid-template-columns: 310px 1fr; gap: 24px; padding: 19px 0; border-bottom: 1px solid var(--line); align-items: center; }
.pr-name { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; }
.pr-name strong { font: 400 27px/1.2 var(--display); }
.pr-name small { font: 500 14.5px/1 "Anek Devanagari", "Figtree", sans-serif; color: var(--muted); }
.pr-name b { font: 700 28px/1 "Figtree", sans-serif; color: var(--accent); }
[data-theme=dark] .pr-name b { color: var(--gold); }
.pr-facts { color: var(--link); font-size: 16px; line-height: 1.7; }
.pr-facts span:not(:last-child)::after { content: ","; margin-right: 6px; }
.plan-foot { color: var(--muted); margin-bottom: 28px; max-width: 60ch; }

.last { text-align: center; color: #fff3d6; background: linear-gradient(rgba(60, 9, 18, .45), rgba(60, 9, 18, .75)), url(../img/paper-maroon.jpg) center / 520px; }
.last img { width: 96px; height: auto; filter: drop-shadow(0 8px 10px rgba(0, 0, 0, .45)); transform: rotate(9deg); }
.last h2 { margin: 16px auto 26px; color: #fff3d6; }
.last .btn-try { background: #ecc96f; color: #3f0a13; }
.last .btn-try:hover { background: #f6dc93; }

/* ---------- small screens ---------- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; padding: calc(var(--nav-h) + 18px) 20px 34px; gap: 26px; }
  .stage { order: -1; }
  .hero-phone { width: min(250px, 66vw); border-radius: 34px; padding: 7px; }
  .hero-phone iframe { border-radius: 27px; }
  .maker { margin: 20px auto 0; text-align: left; }
  .maker-pick, .no-login { justify-content: center; text-align: center; }
  .art { margin: 0 -40px; }
  .decorate { grid-template-columns: 1fr; justify-items: center; }
  .decorate > .stack { width: 100%; }
  .decorate .preview-phone { position: static; width: min(250px, 70vw); }
  .copy { margin: 0 auto; }
  .sub { margin: 14px auto 0; }
  .hero-cta { justify-content: center; margin-top: 22px; }
  .try, .wrap.two, .two-col, .share-grid, .mine-top { grid-template-columns: 1fr; }
  .try, .try.flip { gap: 28px; justify-items: center; grid-template-columns: 1fr; }
  .try.flip .scene { order: -1; }
  .try > div { width: 100%; }
  .wrap.two { gap: 40px; }
  .band { padding: 58px 0; }
  .price-row { grid-template-columns: 1fr; gap: 8px; }
  .publish { grid-template-columns: 1fr; justify-items: center; }
  .publish > .stack { width: 100%; }
  .preview-phone { width: min(280px, 80vw); }
  .stat-row { grid-template-columns: 1fr 1fr; }
  .code-strip { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .nav-inner, .wrap { padding: 0 16px; }
  .nav-right { gap: 9px; font-size: 14px; }
  .brand { font-size: 20px; gap: 7px; }
  .mark { width: 26px; height: 26px; }
  .pill { padding: 0 10px; min-height: 34px; }
  .theme-btn { width: 34px; }
  main.wide { padding: 22px 14px 56px; }
  .panel { padding: 16px; }
  .btn-try { height: 54px; padding: 0 28px; font-size: 18px; }
  .maker-names input { font-size: 21px !important; }
  .pick span { min-width: 78px; padding: 10px 8px 8px; }
  .my-card { grid-template-columns: 56px 1fr; gap: 14px; }
  .mini-env { width: 56px; height: 40px; }
  .mini-env img { width: 26px; height: auto; }
  .steps li:not(.on) { flex: 0 0 auto; }
  .steps li:not(.on) a, .steps li:not(.on) span { font-size: 0; gap: 0; padding: 9px 7px; }
  .steps .on a, .steps .on span { font-size: 15px; }
  .code-form, .copy-row { flex-wrap: wrap; }
  .code-form input, .copy-row input { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .rise { animation: none; opacity: 1; transform: none; }
  .btn-try, .new-card img { transition: none; }
}

/* ---------- home: the designs, shown with real screenshots of the sample card ---------- */
.kinds { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.maker:not(:has(input[value=simple]:checked)) .for-simple { display: none; }
.design-big { display: grid; grid-template-columns: auto 1fr; gap: clamp(24px, 5vw, 70px); align-items: center; margin-top: 34px; }
.design-shots { display: flex; padding: 14px 0 26px; }
.design-shots img { width: clamp(132px, 17vw, 208px); height: auto; border-radius: 18px; border: 5px solid #23161a; box-shadow: 0 18px 34px rgba(40, 14, 6, .28); }
.design-shots img:first-child { transform: rotate(-4deg); }
.design-shots img + img { margin: 30px 0 0 -34px; transform: rotate(3deg); }
.design-kind { color: var(--gold); font-size: 15.5px; }
.design-big h3 { font: 400 clamp(38px, 5vw, 64px)/1.15 var(--display); }
.design-about { max-width: 46ch; margin-top: 10px; color: var(--muted); font-size: 17.5px; }
.design-price { margin-top: 12px; font: 700 19px/1 "Figtree", sans-serif; color: var(--text); }
.design-go { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.design-sub { margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--line); font: 400 26px/1.3 var(--display); }
.design-row { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; margin-top: 20px; }
.design-row img { width: 100%; height: auto; aspect-ratio: 390 / 560; object-fit: cover; object-position: 50% 42%; border-radius: 10px; border: 1px solid var(--line); transition: transform .2s; }
.design-row a:hover img { transform: translateY(-4px); }
.design-row h4 { margin-top: 10px; font-size: 16.5px; font-weight: 600; }
.design-row .design-price { margin-top: 5px; font-size: 14.5px; font-weight: 500; color: var(--muted); }
.design-row .design-go { gap: 4px 14px; margin-top: 7px; font-size: 14.5px; }
.design-row .design-go a { color: var(--accent); text-underline-offset: 3px; }
.fn-pills { list-style: none; display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.fn-pills li { display: flex; align-items: center; gap: 10px; padding: 6px 20px 6px 6px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-size: 16.5px; }
.fn-pills img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; }
@media (max-width: 900px) {
  .design-big { grid-template-columns: 1fr; justify-items: start; }
  .design-row { grid-template-columns: repeat(3, 1fr); }
  .kinds { justify-content: center; }
}
@media (max-width: 520px) {
  .design-row { grid-template-columns: repeat(2, 1fr); gap: 22px 14px; }
  .design-shots { justify-self: center; }
  .fn-pills { gap: 8px; }
  .fn-pills li { font-size: 15px; padding-right: 14px; }
  .fn-pills img { width: 38px; height: 38px; }
}
/* a story brings its own colours and door, so those choices step aside */
.decorate:not(:has(input[name="look[format]"][value=simple]:checked)) :is(.pick-colour, .pick-seal, .pick-couple) { display: none; }
.panel-h { font: 400 21px/1.3 var(--display); }
.pick-music .song-pick { display: flex; flex-flow: row nowrap; align-items: center; gap: 14px; position: relative; margin-top: 14px; padding: 14px 16px; border: 2px dashed var(--line); border-radius: 14px; background: var(--surface); cursor: pointer; }
.pick-music .song-pick:hover, .pick-music .song-pick:focus-within { border-color: var(--accent); }
.pick-music .song-pick.has { border-style: solid; border-color: var(--ok); }
.pick-music .song-pick svg { width: 30px; height: 30px; flex: none; fill: none; stroke: var(--accent); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.pick-music .song-pick span { flex: 1; min-width: 0; display: grid; gap: 2px; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; text-align: left; }
.pick-music .song-pick strong { font-weight: 600; }
.pick-music .song-pick small { font-size: 13.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pick-music .song-pick b { flex: none; padding: 8px 16px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-weight: 600; font-size: 14.5px; }
.pick-music .song-pick input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.song-play { display: block; width: 100%; margin-top: 10px; }
.qr-label { margin: 14px 0 6px; font-size: 14.5px; color: var(--muted); }
.design-price small { margin-left: 8px; font-weight: 400; font-size: 14.5px; color: var(--muted); }
.design-big + .design-big { margin-top: 46px; padding-top: 40px; border-top: 1px solid var(--line); }
@media (min-width: 901px) { .design-big.flip .design-shots { order: 2; } .design-big.flip { grid-template-columns: 1fr auto; } }
.lang-pick { appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 13px; font-size: 14.5px; max-width: 108px; }
.lang-pick option { color: #222; background: #fff; }
.decorate:has(input[name="look[format]"][value=simple]:checked) .pick-reveal { display: none; }
.foot-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; }
.foot-links a { color: var(--link); text-underline-offset: 3px; }
.legal h2 { margin-top: 26px; font: 400 23px/1.3 var(--display); }
.legal p, .legal li { margin-top: 8px; color: var(--link); }
.legal ul { padding-left: 20px; }
.wallet { font: 700 34px/1 "Figtree", sans-serif; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.qr-tap { text-align: center; max-width: 34ch; margin: 8px auto 0; }

/* ---------- header and footer, dressed with the patrika's own artwork ---------- */
.nav-right a { white-space: nowrap; }
.lang-wrap { display: inline-flex; align-items: center; gap: 6px; padding: 0 8px 0 11px; cursor: pointer; }
.lang-wrap .ic { width: 16px; height: 16px; flex: none; }
.lang-pick { appearance: none; -webkit-appearance: none; max-width: 92px; padding: 0 4px 0 0; border: 0; background: transparent; font: inherit; font-size: 14.5px; color: var(--text); cursor: pointer; text-overflow: ellipsis; }
.lang-pick:focus { outline: none; }
.lang-wrap:focus-within { outline: 2px solid var(--accent-2); outline-offset: 2px; }
.nav-cta { padding: 9px 17px; border-radius: 999px; background: var(--accent); color: var(--accent-ink) !important; font-weight: 600; }
.nav-cta:hover { background: var(--accent-2); }
@media (max-width: 900px) { .nav-link { display: none; } }
@media (max-width: 600px) { .nav-cta, .theme-btn { display: none; } .lang-pick { max-width: 76px; } }
/* a marigold and mango-leaf toran hangs under the header on the home page */
.toran { position: absolute; top: var(--nav-h); left: 0; right: 0; z-index: 5; height: clamp(40px, 5vw, 66px); pointer-events: none;
  background: url(../img/toran.webp) center top / auto 100% repeat-x; filter: drop-shadow(0 4px 4px rgba(70, 24, 0, .2)); }
.foot { position: relative; overflow: hidden; display: block; padding: 58px 28px 26px; text-align: left; font-size: 15px; color: #f1dfbd; border-top: 0;
  background: linear-gradient(rgba(58, 9, 17, .7), rgba(36, 5, 11, .9)), url(../img/paper-maroon.jpg) center / 520px; box-shadow: inset 0 1px 0 rgba(236, 201, 111, .4); }
[data-theme=dark] .foot { background: linear-gradient(#1b1622, #110e16); }
.foot-corner { position: absolute; top: 12px; left: 12px; width: clamp(70px, 9vw, 124px); aspect-ratio: 1; opacity: .5; background: linear-gradient(160deg, #f4dc93, #c9973a);
  -webkit-mask: url(../img/corner.webp) left top / contain no-repeat; mask: url(../img/corner.webp) left top / contain no-repeat; }
.foot-corner.r { left: auto; right: 12px; transform: scaleX(-1); }
.foot-in { position: relative; max-width: 1120px; margin: 0 auto; display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 30px 48px; }
.foot .brand { color: #fff3d6; }
.foot-brand p { max-width: 34ch; margin-top: 12px; color: #dcc7a2; }
.foot nav { display: grid; align-content: start; gap: 7px; }
.foot h3 { margin-bottom: 4px; font: 400 19px/1.3 var(--display); color: #ecc96f; }
.foot nav a { color: #f1dfbd; text-decoration: none; width: max-content; max-width: 100%; }
.foot nav a:hover { color: #ecc96f; text-decoration: underline; text-underline-offset: 4px; }
.foot-note { max-width: 1120px; margin: 34px auto 0; padding-top: 18px; border-top: 1px solid rgba(236, 201, 111, .22); text-align: center; font-size: 13.5px; color: #d2bb95; }
.foot-firm { margin-top: 4px; text-align: center; font-size: 13px; color: #b39c7a; }
@media (max-width: 720px) { .foot { padding: 64px 22px 24px; } .foot-in { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }

/* ---------- download cards ---------- */
.kit .crumb a { display: inline-flex; align-items: center; gap: 6px; color: var(--link); }
.kit .crumb svg { width: 18px; height: 18px; }
.kit-bar { display: grid; gap: 18px; margin: 22px 0 26px; }
.kit-bar .pick-row span i { display: inline-block; width: 22px; height: 22px; margin-right: 8px; border-radius: 50%; vertical-align: -5px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15); }
.kit-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 26px 22px; align-items: start; }
.kit-grid figure { margin: 0; }
.kit-grid canvas { display: block; width: 100%; height: auto; border-radius: 8px; box-shadow: var(--shadow); }
.kit-grid figcaption { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; font-weight: 600; }
.kit-grid figcaption span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kit-grid figcaption .btn { flex: none; padding: 7px 14px; font-size: 14.5px; }
.kit .btn-row { margin-top: 30px; }
.kit-link { margin: 0 0 18px; }
@media (max-width: 560px) { .kit-grid { grid-template-columns: repeat(2, 1fr); gap: 20px 12px; } .kit-grid figcaption { flex-direction: column; align-items: stretch; text-align: center; } }

/* download cards on the home page */
.card-fan { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(12px, 2.4vw, 28px); margin-top: 30px; }
.card-fan figure { margin: 0; }
.card-fan img { display: block; width: 100%; height: auto; border-radius: 10px; box-shadow: 0 14px 30px -14px rgba(60, 12, 20, .55); }
.card-fan figure:nth-child(odd) img { transform: rotate(-1.4deg); }
.card-fan figure:nth-child(even) img { transform: rotate(1.2deg); }
.card-fan figcaption { margin-top: 12px; text-align: center; font-weight: 600; }
.card-fan-go { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 28px; }
.card-fan-go span { color: var(--muted); }
@media (max-width: 700px) {
  .card-fan { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 62%; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 4px 16px; margin-inline: -4px; }
  .card-fan figure { scroll-snap-align: center; }
}

/* save-the-date maker */
.sd-two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 380px); gap: clamp(24px, 4vw, 56px); align-items: start; margin-top: 26px; }
.sd-names { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.sd-form label { display: block; }
.sd-side { position: sticky; top: calc(var(--nav-h) + 18px); }
.sd-card.kit-grid { grid-template-columns: 1fr; }
.sd-card figcaption span { display: none; }
.sd-card figcaption .btn { flex: 1; padding: 13px 18px; font-size: 16px; background: var(--accent); color: #fff; border-color: var(--accent); }
.sd-card figcaption .btn:disabled { opacity: .45; cursor: not-allowed; }
.sd-need { margin-top: 10px; text-align: center; font-size: 14.5px; color: var(--muted); }
.sd-next { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 30px; margin-top: 54px; padding: 24px 26px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.sd-next h2 { font: 400 26px/1.25 var(--display); }
.sd-next p { margin-top: 4px; color: var(--muted); }
@media (max-width: 820px) {
  .sd-two { grid-template-columns: 1fr; }
  .sd-side { position: static; order: -1; max-width: 300px; margin: 0 auto; width: 100%; }
}
@media (max-width: 420px) { .sd-names { grid-template-columns: 1fr; } }
.sd .pick span { min-width: 84px; }
.sd .pick i { width: 40px; height: 40px; }

/* video maker */
.kit-grid figcaption .kit-vid { background: transparent; }
.sd-card figcaption { flex-wrap: wrap; }
.sd-card figcaption .kit-vid { flex: 1 1 100%; background: transparent; color: var(--accent); border-color: var(--accent); }
.vid-open { overflow: hidden; }
.vid-box { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 16px; background: rgba(24, 6, 10, .88); }
.vid-in { display: grid; justify-items: center; gap: 12px; width: min(100%, 360px); color: #fff3d6; text-align: center; }
.vid-in canvas { display: block; height: min(64vh, 560px); width: auto; max-width: 100%; aspect-ratio: 9 / 16; border-radius: 10px; box-shadow: 0 20px 50px -20px #000; }
.vid-say { font-weight: 600; }
.vid-note { font-size: 14px; opacity: .85; }
.vid-note:empty { display: none; }
.vid-bar { width: 100%; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .18); overflow: hidden; }
.vid-bar i { display: block; height: 100%; width: 0; background: #e9c46a; }
.vid-go { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.vid-go .btn:not(.btn-main) { background: transparent; color: #fff3d6; border-color: rgba(255, 243, 214, .5); }

/* the patrika video */
.film .crumb a { display: inline-flex; align-items: center; gap: 6px; color: var(--link); }
.film .crumb svg { width: 18px; height: 18px; }
.film-two { display: grid; grid-template-columns: minmax(220px, 330px) minmax(0, 1fr); gap: clamp(24px, 5vw, 64px); align-items: start; margin-top: 18px; }
.film-screen { position: sticky; top: calc(var(--nav-h) + 18px); }
.film-screen canvas { display: block; width: 100%; height: auto; border-radius: 14px; background: #1c0a0e; box-shadow: 0 24px 50px -24px rgba(60, 12, 20, .7); }
.film-screen .vid-bar { margin-top: 10px; background: var(--line); }
.film-screen .vid-bar i { background: var(--accent); }
.film-song .song-pick { display: flex; align-items: center; gap: 14px; position: relative; margin-top: 14px; padding: 14px 16px; border: 2px dashed var(--line); border-radius: 14px; background: var(--surface); cursor: pointer; }
.film-song .song-pick[hidden] { display: none; }
.film-song .song-pick.has { border-style: solid; border-color: var(--ok); }
.film-song .song-pick svg { width: 30px; height: 30px; flex: none; fill: none; stroke: var(--accent); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.film-song .song-pick span { display: grid; gap: 2px; min-width: 0; padding: 0; border: 0; background: none; text-align: left; justify-items: start; }
.film-song .song-pick b { font-size: 16px; font-weight: 600; overflow-wrap: anywhere; }
.film-song .song-pick small { color: var(--muted); font-size: 13.5px; }
.film-song .song-pick input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.film-song .pick-row span { min-width: 0; padding: 11px 16px; }
.film-go { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.film-go .btn svg { width: 18px; height: 18px; margin-right: 6px; vertical-align: -3px; }
.film-say { color: var(--muted); }
@media (max-width: 760px) {
  .film-two { grid-template-columns: 1fr; }
  .film-screen { position: static; max-width: 250px; margin: 0 auto; width: 100%; }
}

/* sign-in window */
.nav-out { font-size: 14px; color: var(--muted); }
.auth-pop { position: fixed; inset: 0; margin: auto; padding: 0; border: 0; background: transparent; max-width: min(94vw, 780px); width: 100%; overflow: visible; }
.auth-pop::backdrop { background: rgba(30, 6, 12, .72); backdrop-filter: blur(3px); }
.auth { display: grid; grid-template-columns: 0.85fr 1fr; border-radius: 18px; overflow: hidden; background: var(--surface); color: var(--text); box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .7); }
.auth-art { position: relative; display: grid; align-items: end; min-height: 440px; padding: 26px; color: #fff3d6;
  background: linear-gradient(180deg, rgba(58, 13, 20, .05) 30%, rgba(58, 13, 20, .92) 82%), url(../img/wada/hero.jpg) 50% 30% / cover; }
.auth-toran { position: absolute; left: 0; right: 0; top: 0; height: 74px; background: url(../img/toran.webp) 50% 0 / auto 100% repeat-x; }
.auth-art div { display: grid; gap: 4px; }
.auth-art .mark { width: 34px; height: 34px; margin-bottom: 6px; }
.auth-art b { font: 400 30px/1.15 var(--display); }
.auth-art span { font-size: 15px; line-height: 1.5; opacity: .92; max-width: 26ch; }
.auth-form { position: relative; display: grid; align-content: center; gap: 14px; padding: 34px 30px 26px; }
.auth-form label { display: block; font-size: 14.5px; color: var(--link); }
.auth-x { position: absolute; right: 10px; top: 10px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: transparent; cursor: pointer; color: var(--muted); }
.auth-x svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin-bottom: 4px; border-radius: 999px; background: color-mix(in srgb, var(--accent) 9%, var(--bg)); }
.auth-tabs button { padding: 9px 10px; border: 0; border-radius: 999px; background: transparent; font: inherit; font-weight: 600; color: var(--link); cursor: pointer; }
.auth-tabs button[aria-selected=true] { background: var(--accent); color: var(--accent-ink); }
.auth-hint { display: none; margin-top: 5px; font-size: 13px; color: var(--muted); }
.auth[data-mode=in] .auth-name, .auth[data-mode=in] [data-for=up], .auth[data-mode=up] [data-for=in] { display: none; }
.auth[data-mode=up] .auth-hint { display: block; }
.auth-go { width: 100%; justify-content: center; padding: 13px 18px; font-size: 16px; margin-top: 4px; }
.auth-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; font-size: 14px; }
.auth-foot a { color: var(--link); }
.auth-main { max-width: 820px; margin: 0 auto; padding: clamp(18px, 5vw, 54px) 16px 60px; }
.auth-main .auth { margin-top: 12px; }
@media (max-width: 640px) {
  .auth { grid-template-columns: 1fr; }
  .auth-art { min-height: 150px; padding: 18px 20px; background-position: 50% 22%; }
  .auth-art span { display: none; }
  .auth-art b { font-size: 24px; }
  .auth-toran { height: 48px; }
  .auth-form { padding: 22px 20px 20px; }
}

/* video and download cards, on the share page */
.extras { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 22px 0 28px; }
.extra { position: relative; display: grid; align-content: end; gap: 6px; min-height: 290px; padding: 120px 24px 22px; border-radius: 16px; overflow: hidden; text-decoration: none; color: #fff6e2;
  background: linear-gradient(180deg, rgba(20, 6, 10, .05) 20%, rgba(28, 8, 14, .9) 78%), var(--art) 50% 28% / cover; box-shadow: 0 18px 40px -22px rgba(60, 12, 20, .8); transition: transform .2s; }
.extra:hover { transform: translateY(-3px); }
.extra strong { font: 400 clamp(26px, 3.2vw, 34px)/1.15 var(--display); }
.extra em { font-style: normal; font-size: 15px; line-height: 1.5; opacity: .92; max-width: 40ch; }
.extra b { justify-self: start; margin-top: 8px; padding: 9px 18px; border-radius: 999px; background: #f1cf7c; color: #3a0d14; font-weight: 700; font-size: 15px; }
.extra-tag { position: absolute; right: 16px; top: 16px; padding: 6px 13px; border-radius: 999px; background: #fff6e2; color: #6b1524; font-weight: 700; font-size: 15px; }
.extra-play { position: absolute; left: 24px; top: 22px; display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: rgba(255, 246, 226, .92); }
.extra-play svg { width: 28px; height: 28px; fill: #7a1a2b; }
.extra-fan { position: absolute; left: 22px; top: 14px; display: flex; }
.extra-fan img { width: 74px; height: auto; border-radius: 5px; box-shadow: 0 8px 18px -8px #000; margin-right: -16px; }
.extra-fan img:nth-child(1) { transform: rotate(-9deg); }
.extra-fan img:nth-child(2) { transform: translateY(-4px); z-index: 1; }
.extra-fan img:nth-child(3) { transform: rotate(9deg); }
@media (max-width: 700px) { .extras { grid-template-columns: 1fr; } .extra { min-height: 250px; } }
