/* EventPhotoDrop — shared native/web neon theme.
   Brand anchors from the original site: Poppins, #2aa8ff and #6cf0ff.
   Keep media untouched: the neon treatment belongs to the interface only. */
:root {
  color-scheme: dark;
  font-family: "Poppins", "Segoe UI", system-ui, sans-serif;
  font-synthesis: none;
  --bg: #080b14;
  --panel: #161a22;
  --panel-raised: #1a2435;
  --text: #edf4ff;
  --muted: #aab8cf;
  --line: #2d425c;
  --primary: #2aa8ff;
  --accent: #6cf0ff;
  --magenta: #ec8cff;
  --danger: #ff9eae;
  --success: #8cebc6;
  --radius: 20px;
  --neon-line: rgba(42, 168, 255, .5);
  --glow: 0 0 0 1px rgba(108, 240, 255, .06), 0 8px 32px rgba(0, 0, 0, .24), 0 0 24px rgba(42, 168, 255, .07);
  /* Compatibility tokens used by shared rendering code. */
  --paper: var(--bg);
  --ink: var(--text);
  --white: var(--panel);
  --yellow: var(--accent);
  --orange: var(--magenta);
  --green: var(--panel-raised);
}

* { box-sizing: border-box; }
html { min-width: 280px; background: var(--bg); scroll-padding-top: 24px; }
html:has(dialog[open]) { overflow: hidden; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  color: var(--text);
  background:
    radial-gradient(ellipse 850px 650px at 0 0, rgba(42, 168, 255, .11), transparent 70%),
    radial-gradient(ellipse 650px 520px at 100% 180px, rgba(184, 85, 230, .07), transparent 70%),
    var(--bg);
  font-family: inherit;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
}
button, input, select, textarea { font: inherit; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
button { color: var(--text); cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .48; box-shadow: none; transform: none; }
a { color: inherit; text-underline-offset: 3px; }
img { max-width: 100%; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}
::selection { color: #07131d; background: var(--accent); }
[hidden] { display: none !important; }
.skip-link {
  position: absolute;
  top: -100px;
  left: 12px;
  z-index: 50;
  padding: 12px 18px;
  border-radius: 8px;
  color: #06141f;
  background: var(--accent);
}
.skip-link:focus { top: 12px; }

/* Shell and shared controls */
.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1328px;
  margin: auto;
  padding: max(24px, env(safe-area-inset-top)) max(40px, env(safe-area-inset-right)) 24px max(40px, env(safe-area-inset-left));
  border-bottom: 1px solid var(--neon-line);
  background: rgba(11, 14, 21, .6);
  box-shadow: 0 1px 20px rgba(42, 168, 255, .035);
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  color: var(--text);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.85px;
  text-decoration: none;
}
.brand-light { color: var(--primary); font-weight: 600; }
.brand small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 2.6px;
}
.brand-mark {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 43px;
  height: 43px;
  border: 1px solid var(--accent);
  border-radius: 12px;
  background: linear-gradient(140deg, #183952, #101b2e);
  box-shadow: inset 0 0 16px rgba(42, 168, 255, .11), 0 0 16px rgba(42, 168, 255, .16);
}
.brand-mark span { position: relative; width: 27px; height: 20px; border: 2px solid var(--accent); border-radius: 5px; }
.brand-mark span::before { content: ""; position: absolute; left: 7px; top: -6px; width: 10px; height: 5px; border: 2px solid var(--accent); border-bottom: 0; border-radius: 2px; }
.brand-mark span::after { content: ""; position: absolute; top: 3px; left: 7px; width: 9px; height: 9px; border: 2px solid var(--accent); border-radius: 50%; }
#account-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.account-name { max-width: 160px; overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.account-avatar { display: inline-grid; place-items: center; width: 34px; height: 34px; margin-right: 8px; border: 1px solid var(--neon-line); border-radius: 11px; color: var(--accent); background: #172c41; font-weight: 700; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  max-width: 100%;
  padding: 12px 21px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  text-align: center;
  text-decoration: none;
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease, transform .15s ease;
}
.btn-primary, .btn-yellow {
  border-color: var(--accent);
  color: #061522;
  background: linear-gradient(115deg, #2aa8ff, #6cf0ff);
  box-shadow: 0 0 18px rgba(42, 168, 255, .17), inset 0 1px 0 rgba(255, 255, 255, .24);
  font-weight: 700;
}
.btn-outline, .btn-white { border-color: var(--neon-line); color: var(--text); background: #142033; }
.btn-quiet { min-height: 42px; padding: 9px 12px; border-color: var(--line); color: var(--muted); background: rgba(19, 26, 39, .55); }
.btn-danger { border-color: #a74c64; color: var(--danger); background: #321b2a; }
.btn-wide { width: 100%; }
.btn-small { min-height: 40px; padding: 9px 12px; font-size: 12px; }
.icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.icon-lg { width: 29px; height: 29px; }
.eyebrow { margin: 0 0 19px; color: var(--accent); font-size: 10px; font-weight: 700; letter-spacing: 2.4px; text-transform: uppercase; }
.eyebrow::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 10px; border-radius: 2px; background: var(--accent); box-shadow: 0 0 10px rgba(108, 240, 255, .55); }

/* Landing: neon-framed, holographic portraits rather than paper cutouts. */
.hero { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); align-items: center; gap: 40px; max-width: 1248px; margin: auto; padding: 72px 40px 58px; }
.hero > div { min-width: 0; }
.hero h1 { max-width: 650px; margin: 0 0 24px; font-size: clamp(42px, 5.4vw, 72px); font-weight: 800; line-height: 1.1; letter-spacing: -3.2px; }
.hero h1 em, .join-layout h2 em { color: var(--accent); font: inherit; font-style: normal; }
.hero-text { max-width: 475px; margin: 0 0 28px; color: var(--muted); font-size: 15px; line-height: 1.9; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-caption { margin-top: 18px; color: var(--muted); font-size: 11px; line-height: 1.7; }
.scrapbook { position: relative; width: 100%; max-width: 465px; height: 400px; margin: auto; isolation: isolate; }
.scrapbook::before {
  content: "";
  position: absolute;
  inset: 25px 20px 25px 25px;
  z-index: -1;
  border: 1px solid rgba(42, 168, 255, .24);
  border-radius: 50%;
  background: repeating-linear-gradient(0deg, transparent 0 29px, rgba(42, 168, 255, .055) 29px 30px), repeating-linear-gradient(90deg, transparent 0 29px, rgba(42, 168, 255, .055) 29px 30px), radial-gradient(ellipse at center, rgba(42, 168, 255, .12), transparent 70%);
  transform: rotate(-12deg);
}
.scrapbook::after { content: "+"; position: absolute; top: 1px; left: 60px; color: var(--primary); font-size: 30px; font-weight: 400; }
.scrapbook .paper-card { position: absolute; top: 25px; left: 8px; width: 206px; padding: 10px 10px 16px; border: 1px solid var(--accent); border-radius: 18px; background: linear-gradient(155deg, #192d43, #101827); box-shadow: 0 18px 40px #0008, 0 0 25px rgba(42, 168, 255, .14), inset 0 0 20px rgba(42, 168, 255, .04); transform: rotate(-8deg); }
.scrapbook .paper-card:nth-child(2) { top: 107px; right: 2px; left: auto; z-index: 2; border-color: var(--magenta); background: linear-gradient(155deg, #30233f, #17172d); box-shadow: 0 18px 40px #0008, 0 0 25px rgba(220, 91, 243, .13); transform: rotate(9deg); }
.face-art { position: relative; height: 189px; overflow: hidden; border: 1px solid #386078; border-radius: 10px; background: radial-gradient(ellipse at 45% 40%, #215776, #142b46 70%); }
.face-art.peach { border-color: #715086; background: radial-gradient(ellipse at 50% 30%, #684176, #302d59 70%); }
.face-art::before { content: ""; position: absolute; top: 45px; left: 18px; width: 144px; height: 144px; border: 1px solid #87e7f4; border-radius: 45% 45% 44% 44%; background: linear-gradient(140deg, #579ba9, #3a6f8a); box-shadow: 0 106px 0 28px #172946; }
.face-art::after { content: ""; position: absolute; top: 20px; left: 26px; width: 138px; height: 76px; border-top: 2px solid #6cd8f5; border-radius: 65% 55% 25% 10%; background: #122239; transform: rotate(-9deg); }
.face-art.peach::before { top: 35px; left: 9px; width: 160px; height: 164px; border-color: #f4b2f6; background: linear-gradient(140deg, #b885c5, #7877b8); box-shadow: 0 108px 0 25px #382b57; }
.face-art.peach::after { top: 21px; left: 7px; width: 164px; height: 70px; border-top-color: #df99fc; background: #30203e; transform: rotate(6deg); }
.face-eyes { position: absolute; top: 103px; left: 46px; z-index: 3; display: flex; gap: 28px; }
.face-eyes i { position: relative; width: 25px; height: 29px; border-radius: 50%; background: #ecfbff; }
.face-eyes i::after { content: ""; position: absolute; top: 9px; left: 9px; width: 10px; height: 14px; border-radius: 50%; background: #10233d; }
.peach .face-eyes { top: 89px; left: 27px; gap: 10px; }
.peach .face-eyes i { width: 58px; height: 58px; box-shadow: 0 0 13px rgba(246, 209, 255, .17); }
.peach .face-eyes i::after { top: 17px; left: 23px; width: 23px; height: 30px; }
.face-smile { position: absolute; top: 153px; left: 68px; z-index: 4; width: 38px; height: 19px; border-radius: 0 0 30px 30px; background: #122039; }
.paper-label { margin: 15px 0 0; color: #dbf9ff; font-size: 11px; font-weight: 600; letter-spacing: .15px; text-align: center; }
.paper-card:nth-child(2) .paper-label { color: #f5d7ff; }
.sticker { position: absolute; top: 22px; right: 12px; z-index: 5; padding: 12px 16px; border: 1px solid var(--accent); border-radius: 7px; color: var(--accent); background: #102538; box-shadow: 0 6px 20px #0005, 0 0 18px rgba(42, 168, 255, .13); font-size: 10px; font-weight: 700; letter-spacing: .7px; transform: rotate(3deg); }
.sticker-bottom { top: auto; right: auto; bottom: 13px; left: 7px; border-color: #986ba7; color: #efd4fa; background: #261e35; font-size: 10px; letter-spacing: 0; transform: rotate(-3deg); }
.scrap-star { position: absolute; bottom: 73px; left: 8px; z-index: 4; color: var(--accent); font-size: 56px; line-height: 1; text-shadow: 0 0 16px #6cf0ff33; transform: rotate(9deg); }
.feature-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 25px; max-width: 1168px; margin: 0 auto 34px; padding: 27px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.feature-item { display: flex; align-items: flex-start; gap: 13px; }
.feature-number { display: flex; padding: 11px; border: 1px solid var(--neon-line); border-radius: 12px; color: var(--accent); background: #132638; box-shadow: inset 0 0 12px #2aa8ff09; }
.feature-item:nth-child(2) .feature-number { border-color: #9760a8; color: var(--magenta); background: #251e36; }
.feature-item h3 { margin: 0 0 5px; font-size: 13px; font-weight: 600; }
.feature-item p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.7; }

/* Home and albums */
.content { max-width: 1248px; margin: auto; padding: 36px 40px 64px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 26px; }
.section-heading > div { min-width: 0; }
.section-heading h2 { margin: 0; font-size: 27px; font-weight: 700; letter-spacing: -.9px; }
.section-heading p { margin: 7px 0 0; color: var(--muted); font-size: 12px; }
.section-label { color: var(--accent); font-size: 10px; font-weight: 600; letter-spacing: 1.7px; text-transform: uppercase; }
.space-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.space-card { position: relative; min-width: 0; padding: 10px; border: 1px solid var(--neon-line); border-radius: var(--radius); background: linear-gradient(155deg, #172235, #111825); box-shadow: var(--glow); text-align: left; transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.space-cover { position: relative; display: grid; place-items: center; height: 188px; overflow: hidden; border-radius: 12px; background: radial-gradient(ellipse at 50% 30%, #244766, #172740 65%); }
.space-cover img { width: 100%; height: 100%; object-fit: cover; }
.space-cover-art { color: #71c8f0; font-size: 70px; font-weight: 700; letter-spacing: -7px; transform: rotate(-8deg); }
.space-kind { position: absolute; top: 12px; left: 12px; padding: 6px 9px; border: 1px solid rgba(108, 240, 255, .45); border-radius: 6px; color: #d7faff; background: rgba(10, 21, 34, .95); font-size: 9px; font-weight: 600; letter-spacing: .65px; }
.space-card h3 { margin: 16px 8px 9px; overflow-wrap: anywhere; font-size: 17px; font-weight: 600; letter-spacing: -.3px; }
.space-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin: 0 8px 11px; color: var(--muted); font-size: 10px; line-height: 1.65; }
.space-meta span:last-child { color: #9ddbf8; }
.welcome-band { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; overflow: hidden; margin-bottom: 36px; padding: 30px 32px; border: 1px solid var(--neon-line); border-radius: var(--radius); background: radial-gradient(ellipse at 85% 0, rgba(42, 168, 255, .16), transparent 65%), linear-gradient(130deg, #172539, #111824 70%); box-shadow: var(--glow); }
.welcome-band::before { content: ""; position: absolute; top: 0; right: 8%; left: 8%; height: 1px; background: linear-gradient(90deg, transparent, var(--accent), transparent); }
.welcome-band > div:first-child { flex: 1; min-width: min(100%, 250px); }
.welcome-band h1 { margin: 0 0 9px; overflow-wrap: anywhere; font-size: 31px; font-weight: 700; letter-spacing: -1px; }
.welcome-band h1 span { color: var(--magenta); }
.welcome-band p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.85; }
.welcome-band .eyebrow { margin-bottom: 13px; color: var(--accent); font-size: 9px; }
.home-camera { min-height: 60px; white-space: nowrap; }
.empty-state { padding: 44px 28px; border: 1px dashed #4b7897; border-radius: var(--radius); background: linear-gradient(145deg, #132031, #111724); text-align: center; }
.empty-state h3 { margin: 16px 0 10px; font-size: 23px; font-weight: 600; letter-spacing: -.6px; }
.empty-state p { max-width: 420px; margin: 0 auto 22px; color: var(--muted); font-size: 13px; line-height: 1.85; }
.empty-icon { display: grid; place-items: center; width: 64px; height: 64px; margin: auto; border: 1px solid var(--neon-line); border-radius: 18px; color: var(--accent); background: #16324a; box-shadow: 0 0 22px rgba(42, 168, 255, .08); }
.album-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 25px; }
.breadcrumb { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; color: var(--muted); font-size: 12px; text-decoration: none; }
.album-heading { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; margin: 26px 0; }
.album-heading > div:first-child { flex: 1; min-width: min(100%, 250px); }
.album-heading h1 { margin: 12px 0 14px; overflow-wrap: anywhere; font-size: clamp(32px, 4.8vw, 50px); font-weight: 700; line-height: 1.18; letter-spacing: -1.8px; }
.album-heading p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.8; }
.pill { display: inline-block; padding: 6px 11px; border: 1px solid #3f748d; border-radius: 7px; color: var(--accent); background: #132b3b; font-size: 9px; font-weight: 600; letter-spacing: .8px; }
.album-capture { display: flex; flex-wrap: wrap; gap: 10px; }
.album-capture .btn { min-height: 54px; }
.album-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px; width: 100%; }
.album-nav { display: flex; gap: 27px; margin-bottom: 25px; border-bottom: 1px solid var(--line); }
.album-nav button { padding: 17px 0; border: 0; border-bottom: 3px solid transparent; color: var(--muted); background: none; font-size: 12px; font-weight: 600; white-space: nowrap; }
.album-nav button[aria-selected="true"] { border-bottom-color: var(--accent); color: var(--accent); }
.album-nav button span { opacity: 1 !important; color: var(--muted); }
.photo-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; }
.photo-card { min-width: 0; padding: 0; overflow: hidden; border: 1px solid #36526d; border-radius: 15px; background: var(--panel); box-shadow: 0 6px 20px #0003; text-align: left; transition: border-color .2s ease, box-shadow .2s ease; }
.photo-image { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: #182436; }
.photo-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.effect-badge { position: absolute; bottom: 10px; left: 10px; max-width: calc(100% - 20px); padding: 5px 8px; border: 1px solid #a47dc0; border-radius: 6px; color: #f7e4ff; background: rgba(35, 20, 51, .95); font-size: 9px; font-weight: 600; }
.photo-info { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px; color: var(--muted); font-size: 10px; }
.photo-info span:first-child { overflow: hidden; color: var(--text); font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.photo-info span:last-child { flex-shrink: 0; }
.photo-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 20px 0 9px; }
.photo-scope { display: inline-flex; padding: 4px; border: 1px solid #45617c; border-radius: 12px; background: #101927; }
.photo-scope button { min-height: 40px; padding: 9px 15px; border: 1px solid transparent; border-radius: 8px; background: transparent; color: var(--muted); font-size: 12px; font-weight: 600; }
.photo-scope button[aria-pressed="true"] { border-color: #64dbef; color: #d9fcff; background: #163c50; }
.gallery-help { margin: 0 0 18px; color: var(--muted); font-size: 11px; line-height: 1.7; }
.mine-badge { position: absolute; top: 9px; left: 9px; display: inline-flex; align-items: center; gap: 5px; padding: 6px 9px; border: 1px solid #6be7f5; border-radius: 8px; color: #e5feff; background: #102b3deb; font-size: 10px; font-weight: 700; box-shadow: 0 2px 12px #0005; }
.mine-badge .icon { width: 14px; height: 14px; }
.selection-mark { position: absolute; top: 9px; right: 9px; display: grid; place-items: center; width: 28px; height: 28px; border: 2px solid #d1f5ff; border-radius: 50%; color: #08131e; background: #102133df; box-shadow: 0 2px 10px #0007; }
.photo-card[aria-pressed="true"] { border-color: #6cf0ff; box-shadow: 0 0 0 2px #6cf0ff, 0 0 20px #2aa8ff30; }
.photo-card[aria-pressed="true"] .selection-mark { background: #6cf0ff; border-color: #6cf0ff; }
.photo-card:disabled { opacity: .4; }
.load-more-photos { margin: 25px 0; text-align: center; }
.photo-selection-bar { position: fixed; z-index: 16; left: 50%; bottom: max(14px, calc(env(safe-area-inset-bottom) + 10px)); display: flex; align-items: center; gap: 10px; width: min(680px, calc(100% - 28px)); padding: 12px; border: 1px solid #5b8fac; border-radius: 17px; background: #121e30f5; box-shadow: 0 10px 50px #000b, 0 0 22px #2aa8ff20; transform: translateX(-50%); }
.photo-selection-bar > div { flex: 1; min-width: 0; }
.photo-selection-bar strong { display: block; color: #e5faff; font-size: 12px; }
.photo-selection-bar > div button { padding: 5px 0; min-height: 32px; border: 0; background: none; color: #83e9f6; font-size: 10px; text-align: left; }
.photo-selection-bar > .btn { min-height: 44px; padding: 10px 13px; font-size: 12px; white-space: nowrap; }
.btn-danger { color: #fff1f5; border: 1px solid #ff8db4; background: linear-gradient(135deg,#84334f,#552e48); box-shadow: 0 0 16px #ff68a41a; }
.delete-summary { display: flex; align-items: center; gap: 15px; margin: 20px 0; padding: 17px; border: 1px solid #99627b; border-radius: 14px; background: #2b2032; }
.delete-summary-icon { display: grid; place-items: center; flex: 0 0 44px; height: 44px; border-radius: 12px; background: #543047; color: #ffb6cd; }
.delete-summary strong { color: #ffcee0; font-size: 18px; }
.delete-summary p { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.delete-review-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.delete-review-actions > .btn { flex: 1; min-height: 50px; }
.prompt-intro { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 22px; }
.prompt-intro h2 { margin: 0; font-size: 22px; }
.prompt-intro .btn { flex-shrink: 0; }
.prompt-card .prompt-description { margin: 0 0 20px; color: #bbc8dd; font-size: 12px; line-height: 1.8; }
.prompt-banner { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 25px; padding: 21px 25px; border: 1px solid #73558e; border-radius: 16px; background: linear-gradient(120deg, #2a2039, #1a2033); }
.prompt-banner p { margin: 7px 0 0; font-size: 14px; font-weight: 600; line-height: 1.7; }
.prompt-banner .section-label { color: var(--magenta); }
.prompt-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.prompt-card { padding: 25px; border: 1px solid #635079; border-radius: 18px; background: linear-gradient(150deg, #231e34, #151c2a); }
.prompt-card .prompt-index { color: var(--magenta); font-size: 40px; font-weight: 700; letter-spacing: -1.5px; }
.prompt-card h3 { margin: 15px 0 20px; font-size: 17px; font-weight: 600; line-height: 1.6; }
.reveal-panel { margin: 20px 0; padding: 40px; border: 1px solid var(--neon-line); border-radius: var(--radius); background: radial-gradient(ellipse at 50% 0, #20364f, #121c2c 70%); text-align: center; }
.reveal-panel p { color: var(--muted); font-size: 13px; line-height: 1.8; }
.reveal-time { margin: 16px 0; color: var(--accent); font-size: 27px; font-weight: 700; }
.members-list { max-width: 650px; }
.member-row { display: flex; align-items: center; gap: 13px; padding: 17px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.member-row > span:nth-child(2) { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.member-row small { color: var(--muted); }
.app-footer { display: flex; justify-content: space-between; gap: 20px; max-width: 1248px; margin: auto; padding: 24px max(40px, env(safe-area-inset-right)) max(32px, env(safe-area-inset-bottom)) max(40px, env(safe-area-inset-left)); border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; line-height: 1.7; }
.app-footer span:last-child { color: #9ddbf8; font-weight: 600; }

/* Loading, offline and failure states remain legible without neon glow. */
.connection-banner { padding: 12px max(16px, env(safe-area-inset-right)) 12px max(16px, env(safe-area-inset-left)); border-bottom: 1px solid #926641; color: #ffddb0; background: #35291d; font-size: 12px; line-height: 1.7; text-align: center; }
.loading-view { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; min-height: 60vh; padding: 24px; color: var(--muted); font-size: 13px; text-align: center; }
.loader { display: inline-block; flex-shrink: 0; width: 24px; height: 24px; border: 2px solid #36516a; border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; }
.loader-light { border-color: #f0faff55; border-top-color: #fff; }
.btn-primary .loader, .btn-yellow .loader { border-color: #10375066; border-top-color: #061522; }
@keyframes spin { to { transform: rotate(360deg); } }
.toast { position: fixed; bottom: max(28px, calc(env(safe-area-inset-bottom) + 12px)); left: 50%; z-index: 100; width: max-content; max-width: calc(100vw - 32px); padding: 15px 20px; border: 1px solid #519cad; border-radius: 13px; color: #dcfbff; background: #142c3b; box-shadow: 0 12px 40px #0008; font-size: 12px; line-height: 1.7; overflow-wrap: anywhere; transform: translateX(-50%); }
.toast.error { border-color: #bd6581; color: #ffdbe3; background: #3a2030; }
.upload-progress { position: sticky; top: max(10px, env(safe-area-inset-top)); z-index: 10; display: flex; align-items: center; gap: 12px; margin-bottom: 20px; padding: 15px 20px; border: 1px solid var(--neon-line); border-radius: 13px; color: #cef5ff; background: #143046; box-shadow: 0 8px 24px #0004; font-size: 12px; line-height: 1.7; }

/* Dialogs, forms and invitations */
dialog { width: min(480px, calc(100% - 28px)); max-height: calc(100dvh - 38px - env(safe-area-inset-top) - env(safe-area-inset-bottom)); padding: 30px; border: 1px solid #5683a8; border-radius: 24px; color: var(--text); background: linear-gradient(145deg, #182336, #101824 70%); box-shadow: 0 25px 100px #000b, 0 0 30px rgba(42, 168, 255, .09); overscroll-behavior: contain; }
dialog::backdrop { background: rgba(2, 6, 14, .8); backdrop-filter: blur(6px); }
dialog.studio { width: min(940px, calc(100% - 28px)); }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 22px; }
.modal-head > div { min-width: 0; }
.modal-head h2 { margin: 0; overflow-wrap: anywhere; font-size: 25px; font-weight: 700; line-height: 1.35; letter-spacing: -.85px; }
.modal-head p { margin: 9px 0 0; color: var(--muted); font-size: 12px; line-height: 1.8; }
.close-modal { display: grid; place-items: center; flex-shrink: 0; width: 42px; height: 42px; padding: 0; border: 1px solid #49637f; border-radius: 12px; color: #d3e4f8; background: #1b2a3d; }
.form-field { display: block; margin: 0 0 18px; font-size: 12px; font-weight: 600; }
.form-field input, .form-field select { display: block; width: 100%; min-width: 0; min-height: 48px; margin-top: 8px; padding: 13px 14px; border: 1px solid #5c7b9a; border-radius: 10px; color: var(--text); background: #0e1724; }
.form-field input::placeholder { color: #93a4bc; opacity: 1; }
.form-field input:focus, .form-field select:focus { border-color: var(--accent); }
.form-field input[type="datetime-local"] { color-scheme: dark; }
.form-field small, .muted-note { display: block; margin: 8px 0; color: var(--muted); font-size: 11px; font-weight: 400; line-height: 1.85; }
.form-error { margin: 12px 0; padding: 12px; border: 1px solid #aa5b72; border-radius: 9px; color: #ffd1dc; background: #341f2c; font-size: 12px; line-height: 1.7; overflow-wrap: anywhere; }
.form-switch { margin: 18px 0 0; color: var(--muted); font-size: 12px; text-align: center; }
.form-switch button { min-height: 40px; padding: 6px; border: 0; color: var(--accent); background: none; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.check-field { display: flex; align-items: flex-start; gap: 10px; margin: 18px 0; font-size: 11px; line-height: 1.8; }
.check-field input { flex-shrink: 0; width: 19px; height: 19px; margin: 1px 0 0; accent-color: var(--primary); }
.invite-cover { display: grid; place-items: center; margin: 20px 0; padding: 24px; border: 1px solid var(--neon-line); border-radius: 16px; background: radial-gradient(ellipse at top, #203b52, #172638 75%); text-align: center; }
.invite-cover h1 { margin: 15px 0 8px; overflow-wrap: anywhere; font-size: 29px; font-weight: 700; line-height: 1.3; letter-spacing: -.9px; }
.invite-cover p { color: var(--muted); font-size: 12px; line-height: 1.8; }
.join-layout { display: grid; grid-template-columns: minmax(0, 1fr) 400px; align-items: center; gap: 70px; max-width: 1060px; margin: auto; padding: 60px 40px; }
.join-layout h2 { margin: 0 0 20px; font-size: clamp(35px, 4.8vw, 55px); font-weight: 700; line-height: 1.2; letter-spacing: -2px; }
.join-layout > div > p:not(.eyebrow) { color: var(--muted); font-size: 14px; line-height: 1.9; }
.join-layout > div > p .icon { color: var(--accent); vertical-align: middle; }
.join-card { min-width: 0; padding: 27px; border: 1px solid var(--neon-line); border-radius: var(--radius); background: #131d2c; box-shadow: var(--glow); }
.join-card .invite-cover { margin: 0 0 24px; }
.qr-image { display: block; width: 210px; height: 210px; max-width: 100%; margin: 22px auto; border: 8px solid #fff; border-radius: 12px; background: #fff; object-fit: contain; }
.copy-field { display: flex; align-items: center; gap: 8px; padding: 8px 8px 8px 13px; border: 1px solid #405b76; border-radius: 12px; background: #0e1724; }
.copy-field input { width: 100%; min-width: 0; border: 0; color: #cadff4; background: none; font-size: 11px; }
.copy-field .btn { flex-shrink: 0; }
.modal-divider { height: 1px; margin: 24px 0; background: var(--line); }

/* Photo studio. Colour previews are local Canvas pixels, never CSS on exports. */
.studio-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 27px; }
.studio-layout > div { min-width: 0; }
.studio-visual { position: sticky; top: 0; align-self: start; }
.studio-preview { position: relative; display: grid; align-self: start; place-items: center; min-height: 280px; overflow: hidden; border: 1px solid #34506a; border-radius: 16px; background: #090f19; }
.studio-preview img { display: block; width: 100%; max-height: 570px; object-fit: contain; }
.studio-preview img:not([src]) { visibility: hidden; }
.studio-preview > canvas, .studio-image-plane > canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.studio-preview[data-zoom] { touch-action: none; user-select: none; -webkit-user-select: none; cursor: zoom-in; }
.studio-preview.is-zoomed { cursor: grab; }
.studio-preview.is-zoomed:active { cursor: grabbing; }
.studio-image-plane { position: relative; width: 100%; min-width: 0; transform-origin: center; will-change: transform; pointer-events: none; }
.studio-zoom-controls { display: flex; align-items: center; justify-content: flex-end; gap: 6px; margin-top: 7px; min-height: 42px; }
.studio-zoom-controls > span { margin-right: auto; color: var(--muted); font-size: 9px; }
.studio-zoom-controls button { display: grid; place-items: center; min-width: 42px; min-height: 42px; padding: 6px; border: 1px solid #48758e; border-radius: 10px; background: #152d40; color: #dffaff; font-size: 18px; font-weight: 600; }
.studio-zoom-controls button[data-zoom="reset"] { font-size: 11px; }
.studio-zoom-controls output { min-width: 34px; color: var(--accent); font-size: 10px; text-align: center; font-variant-numeric: tabular-nums; }
.studio-preview-note { min-height: 36px; margin: 10px 0; line-height: 1.7; }
.preview-tag { position: absolute; top: 12px; left: 12px; max-width: calc(100% - 24px); padding: 6px 9px; overflow-wrap: anywhere; border: 1px solid #6090a9; border-radius: 7px; color: #e7faff; background: rgba(13, 30, 46, .95); font-size: 10px; font-weight: 600; }
.before-after { position: absolute; bottom: 13px; left: 50%; max-width: calc(100% - 24px); min-height: 42px; padding: 10px 16px; border: 1px solid #6ac9e0; border-radius: 10px; color: #e5fbff; background: rgba(14, 34, 49, .96); box-shadow: 0 3px 12px #0006; font-size: 11px; font-weight: 600; white-space: nowrap; transform: translateX(-50%); }
.studio-section { margin-bottom: 22px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.studio-section-heading { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.studio-scroll-hint { color: var(--muted); font-size: 9px; white-space: nowrap; }
.filter-swatches, .effects-list, .face-choices { display: flex; gap: 8px; max-width: 100%; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; scrollbar-color: #426581 #111927; scrollbar-width: thin; padding: 4px 3px 12px; }
.filter-swatches { margin: 12px 0 3px; }
.filter-option { display: flex; flex: 0 0 91px; flex-direction: column; gap: 8px; align-items: stretch; scroll-snap-align: start; min-width: 0; padding: 5px; border: 1px solid #597b98; border-radius: 12px; background: #172235; color: #e5eeff; }
.filter-option canvas { width: 79px; height: 79px; border-radius: 7px; background: linear-gradient(140deg,#26364e,#13202c); }
.filter-option span { display: grid; align-items: center; min-height: 30px; padding: 0 2px 3px; font-size: 10px; font-weight: 600; line-height: 1.5; text-align: center; }
.filter-option[aria-pressed="true"], .face-choice[aria-pressed="true"] { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); background: #163851; color: #edfdff; }
.effects-list { margin: 12px 0 6px; }
.effect-option { position: relative; display: flex; flex: 0 0 98px; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-width: 0; min-height: 96px; padding: 10px 5px; scroll-snap-align: start; border: 1px solid #597b98; border-radius: 13px; background: #172235; font-size: 10px; font-weight: 600; line-height: 1.6; }
.effect-option[aria-pressed="true"] { border-color: var(--accent); color: #edfdff; background: linear-gradient(145deg, #234768, #17354d); box-shadow: inset 0 0 0 1px var(--accent), 0 0 18px rgba(42, 168, 255, .12); }
.effect-option[aria-pressed="true"]::after { content: ""; position: absolute; top: 7px; right: 7px; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.effect-face { font-size: 27px; line-height: 1.2; }
.face-picker-label { margin: 16px 0 8px; font-size: 11px; font-weight: 600; }
.face-choice { flex: 0 0 82px; min-width: 0; padding: 5px; border: 1px solid #597b98; border-radius: 10px; background: #172235; scroll-snap-align: start; }
.face-choice canvas { display: block; width: 70px; height: 70px; border-radius: 6px; background: #26364e; }
.face-choice span { display: block; margin: 7px 0 3px; font-size: 10px; }
.share-look { margin-top: 14px; font-size: 11px; }
.recipe-privacy { text-align: center; }
.range-label { display: flex; justify-content: space-between; margin: 15px 0 10px; font-size: 12px; font-weight: 600; }
.range-label output { color: var(--accent); }
.strength-range { width: 100%; height: 28px; margin: 0; accent-color: var(--accent); cursor: pointer; }
.range-extents { display: flex; justify-content: space-between; margin: 3px 0 15px; color: var(--muted); font-size: 10px; }
.studio-status { display: flex; align-items: center; gap: 12px; margin: 15px 0; padding: 13px; border: 1px solid #426b7a; border-radius: 12px; color: #d5f7f0; background: #152f37; font-size: 11px; line-height: 1.8; }
.studio-status.error { border-color: #aa5b72; color: #ffd1dc; background: #341f2c; }
.studio-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.studio-actions > .btn:first-child { flex: 1 1 0; min-width: 0; padding: 12px 10px; font-size: 11px; }
.studio-actions > .btn-quiet { flex: 0 0 42px; padding: 10px; }
.studio-actions > [data-action=share-photo] { flex: 1 1 0; min-width: 0; padding: 12px 10px; font-size: 11px; }
.studio-actions > [data-action=export-photo] { flex: 1 1 60%; }
.studio-primary-actions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; margin-top: 12px; }
.studio-primary-actions > .btn { display: flex; align-items: center; justify-content: flex-start; gap: 10px; min-width: 0; min-height: 82px; padding: 13px 12px; border-radius: 15px; text-align: left; }
.studio-primary-actions .action-icon { display: grid; place-items: center; flex: 0 0 38px; width: 38px; height: 42px; border-radius: 10px; background: #ffffff24; }
.studio-primary-actions .action-icon .icon { width: 28px; height: 28px; }
.studio-primary-actions strong { display: block; font-size: 14px; line-height: 1.45; }
.studio-primary-actions small { display: block; margin-top: 4px; font-size: 9px; font-weight: 500; line-height: 1.5; }
.studio-save-controls > [data-action=generate] { min-height: 46px; margin-top: 12px; }
.studio-export-hint { margin: 9px 0 10px; color: #b9cada; font-size: 10px; line-height: 1.65; }
.studio-actions > [data-action=delete-photo] { flex: 1 1 auto; min-width: 120px; }
.tester-label { display: block; color: var(--cyan, #6cf0ff); font-size: 8px; letter-spacing: .05em; }
[data-swatch-unavailable=true] { background: linear-gradient(135deg, #133040, #2a1838); }
.studio-source { margin-bottom: 18px; color: var(--muted); font-size: 11px; line-height: 1.85; overflow-wrap: anywhere; }
.export-preview { display: flex; align-items: center; justify-content: center; min-height: 80px; margin: 18px 0; padding: 12px; border: 1px solid #34506a; border-radius: 15px; background: #090f19; }
.export-preview img { max-width: 100%; max-height: 350px; border-radius: 4px; object-fit: contain; }
.export-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.format-picker { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; margin: 18px 0; }
.format-option { min-width: 0; padding: 14px 5px; border: 1px solid #486481; border-radius: 11px; background: #172235; font-size: 11px; font-weight: 600; text-align: center; }
.format-option[aria-pressed="true"] { border-color: var(--accent); color: #edfdff; background: #1d4059; box-shadow: inset 0 0 0 1px var(--accent); }
.format-option small { display: block; margin-top: 5px; color: #b8c7dc; font-size: 9px; font-weight: 400; }
.format-option[aria-pressed="true"] small { color: #d0ebf7; }

/* Native camera and recoverable draft review */
.mobile-camera { display: none; }
.camera-album-list { display: grid; gap: 10px; }
.camera-album-option { display: flex; align-items: center; gap: 14px; width: 100%; padding: 16px; border: 1px solid var(--neon-line); border-radius: 13px; background: #17273c; text-align: left; }
.camera-album-option > .icon { color: var(--accent); }
.camera-album-option > span { flex: 1; min-width: 0; overflow-wrap: anywhere; font-size: 13px; font-weight: 600; }
.camera-album-option small { display: block; margin-top: 7px; color: var(--muted); font-size: 9px; letter-spacing: 1px; }
.camera-destination { overflow-wrap: anywhere; font-size: 12px; line-height: 1.8; }
.camera-preview { display: grid; place-items: center; min-height: 180px; overflow: hidden; border: 1px solid #36556f; border-radius: 16px; background: #080d15; }
.camera-preview img { display: block; width: 100%; max-height: 45dvh; object-fit: contain; }
.camera-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.camera-actions > .btn:not(.btn-wide) { flex: 1; }
.camera-opening-status { display: flex; align-items: center; justify-content: center; gap: 16px; min-height: 130px; }
.camera-opening-status p { font-size: 13px; }
.camera-dialog { width: min(540px, calc(100% - 28px)); }

/* Hover is decorative; keyboard and touch keep explicit focus/pressed states. */
@media (hover: hover) {
  .btn:not(:disabled):hover { border-color: var(--accent); transform: translateY(-1px); }
  .btn-primary:not(:disabled):hover, .btn-yellow:not(:disabled):hover { background: linear-gradient(115deg, #58bdff, #94f6ff); box-shadow: 0 0 24px rgba(42, 168, 255, .24); }
  .btn-outline:not(:disabled):hover, .btn-white:not(:disabled):hover, .btn-quiet:not(:disabled):hover { color: var(--accent); background: #1b3047; }
  .btn-danger:not(:disabled):hover { border-color: #ffa2b5; color: #ffe1e8; background: #4a2334; }
  .space-card:not(:disabled):hover { border-color: var(--accent); box-shadow: var(--glow), 0 0 22px rgba(42, 168, 255, .13); transform: translateY(-3px); }
  .photo-card:not(:disabled):hover { border-color: var(--accent); box-shadow: 0 0 20px rgba(42, 168, 255, .1); }
  .photo-card:not(:disabled):hover img { transform: scale(1.025); }
  .camera-album-option:not(:disabled):hover, .effect-option:not(:disabled):hover, .format-option:not(:disabled):hover, .close-modal:hover { border-color: var(--accent); }
  .breadcrumb:hover { color: var(--accent); }
}
.btn:not(:disabled):active { transform: translateY(1px); }

/* Tablet and phone: comfortable capture controls, no clipped fixed-width grids. */
@media (min-width: 1500px) {
  .hero { padding-top: 90px; padding-bottom: 72px; }
}
@media (max-width: 1000px) {
  .hero { gap: 20px; padding-top: 55px; }
  .hero h1 { font-size: clamp(42px, 5.8vw, 57px); }
  .scrapbook { max-width: 365px; }
  .scrapbook .paper-card { width: 188px; }
  .scrapbook .paper-card:nth-child(2) { top: 123px; }
  .feature-strip { margin-right: 40px; margin-left: 40px; }
  .space-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .photo-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .join-layout { grid-template-columns: minmax(0, 1fr) 360px; gap: 35px; }
}
@media (max-width: 700px) {
  .app-header { gap: 10px; padding: max(18px, env(safe-area-inset-top)) max(20px, env(safe-area-inset-right)) 18px max(20px, env(safe-area-inset-left)); }
  .brand { gap: 9px; font-size: 18px; letter-spacing: -.8px; }
  .brand-mark { width: 36px; height: 38px; border-radius: 10px; }
  .brand small { font-size: 6px; letter-spacing: 2px; }
  .account-name { display: none; }
  #account-actions { gap: 0; }
  .app-header .btn { min-height: 42px; padding: 9px 10px; font-size: 11px; }
  .hero { grid-template-columns: minmax(0, 1fr); gap: 18px; padding: 38px max(24px, env(safe-area-inset-right)) 22px max(24px, env(safe-area-inset-left)); }
  .hero h1 { max-width: 450px; margin-bottom: 21px; font-size: clamp(38px, 10.8vw, 56px); line-height: 1.12; letter-spacing: -2px; }
  .eyebrow { margin-bottom: 17px; font-size: 9px; letter-spacing: 1.7px; }
  .hero-text { margin-bottom: 23px; font-size: 13px; line-height: 1.85; }
  .hero-actions { gap: 9px; }
  .hero-actions .btn { padding: 12px 15px; font-size: 12px; }
  .hero-caption { font-size: 10px; }
  .scrapbook { width: 100%; max-width: 355px; height: 350px; margin: 0 auto; }
  .scrapbook::before { inset: 33px 14px 24px; }
  .scrapbook::after { left: 29px; top: 4px; font-size: 23px; }
  .scrapbook .paper-card { left: 8px; top: 40px; width: 174px; padding: 9px 9px 13px; border-radius: 15px; transform: rotate(-7deg); }
  .scrapbook .paper-card:nth-child(2) { left: auto; right: 8px; top: 102px; transform: rotate(7deg); }
  .face-art { height: 166px; }
  .face-art::before { top: 36px; left: 6px; width: 134px; height: 144px; }
  .face-art::after { left: 9px; top: 17px; width: 132px; }
  .face-eyes { top: 91px; left: 29px; gap: 27px; }
  .face-smile { top: 140px; left: 54px; }
  .face-art.peach::before { top: 29px; left: 0; width: 150px; }
  .face-art.peach::after { left: 0; width: 151px; }
  .peach .face-eyes { top: 84px; left: 14px; gap: 8px; }
  .peach .face-eyes i { width: 54px; height: 54px; }
  .peach .face-eyes i::after { top: 16px; left: 22px; width: 21px; height: 28px; }
  .paper-label { margin-top: 12px; font-size: 9px; }
  .sticker { right: 8px; top: 11px; padding: 9px 12px; font-size: 9px; letter-spacing: .5px; }
  .sticker-bottom { top: auto; right: auto; bottom: 11px; left: 10px; font-size: 9px; letter-spacing: 0; }
  .scrap-star { left: 12px; bottom: 48px; font-size: 42px; }
  .feature-strip { grid-template-columns: minmax(0, 1fr); gap: 23px; margin: 0 24px 18px; padding: 25px 0; }
  .feature-item { align-items: center; }
  .feature-item h3 { font-size: 12px; }
  .feature-item p { font-size: 11px; }
  .feature-number { padding: 10px; }
  .content { padding: 28px max(20px, env(safe-area-inset-right)) max(94px, calc(env(safe-area-inset-bottom) + 80px)) max(20px, env(safe-area-inset-left)); }
  .section-heading { gap: 12px; margin-bottom: 21px; }
  .section-heading h2 { font-size: 23px; letter-spacing: -.8px; }
  .section-heading p { font-size: 11px; line-height: 1.8; }
  .section-heading .btn { flex-shrink: 0; padding: 10px 12px; font-size: 11px; }
  .space-grid { gap: 13px; }
  .space-cover { height: 142px; border-radius: 10px; }
  .space-cover-art { font-size: 52px; }
  .space-card { padding: 7px; border-radius: 16px; }
  .space-card h3 { margin: 13px 4px 8px; font-size: 14px; }
  .space-meta { gap: 5px; margin: 0 4px 9px; font-size: 9px; }
  .space-kind { top: 8px; left: 8px; padding: 5px 7px; font-size: 8px; letter-spacing: .3px; }
  .welcome-band { gap: 14px; margin-bottom: 30px; padding: 24px; }
  .welcome-band h1 { font-size: 27px; }
  .welcome-band p { font-size: 11px; }
  .welcome-band > div:first-child { flex-basis: 100%; }
  .welcome-band .eyebrow { font-size: 8px; letter-spacing: 1.55px; }
  .welcome-band .home-camera { width: 100%; min-height: 56px; }
  .empty-state { padding: 32px 20px; }
  .empty-state h3 { font-size: 20px; }
  .empty-state p { font-size: 12px; }
  .album-heading { display: block; margin: 20px 0; }
  .album-heading h1 { font-size: 36px; letter-spacing: -1.4px; }
  .album-heading p { font-size: 11px; }
  .album-capture { width: 100%; margin-top: 20px; gap: 9px; }
  .album-capture .btn { flex: 1; min-height: 54px; padding: 12px 10px; font-size: 12px; white-space: nowrap; }
  .album-tools { justify-content: flex-start; gap: 8px; margin-top: 15px; }
  .album-tools .btn { min-height: 44px; padding: 10px 12px; font-size: 11px; }
  .album-nav { justify-content: space-between; gap: 14px; margin-bottom: 20px; }
  .album-nav button { padding: 14px 0; font-size: 11px; }
  .photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .photo-card { border-radius: 12px; }
  .photo-info { gap: 5px; padding: 9px 8px; font-size: 9px; }
  .effect-badge { bottom: 7px; left: 7px; max-width: calc(100% - 14px); padding: 5px 7px; font-size: 8px; }
  .prompt-banner { gap: 12px; padding: 16px; }
  .prompt-banner p { font-size: 12px; }
  .prompt-banner .section-label { font-size: 9px; letter-spacing: 1.3px; }
  .prompt-banner .btn { flex-shrink: 0; padding: 10px; font-size: 10px; }
  .prompt-grid { grid-template-columns: minmax(0, 1fr); }
  .prompt-intro { flex-wrap: wrap; gap: 10px; }
  .prompt-intro .btn { width: 100%; }
  .photo-toolbar { gap: 8px; }
  .photo-toolbar > .btn { padding: 11px 10px; font-size: 10px; }
  .photo-scope button { padding: 8px 11px; font-size: 11px; }
  .gallery-help { font-size: 10px; }
  .mine-badge { top: 7px; left: 7px; padding: 5px 7px; font-size: 9px; }
  .selection-mark { top: 7px; right: 7px; width: 27px; height: 27px; }
  .studio-primary-actions > .btn { gap: 8px; min-height: 77px; padding: 11px 9px; }
  .studio-primary-actions .action-icon { flex-basis: 30px; width: 30px; height: 36px; }
  .studio-primary-actions .action-icon .icon { width: 24px; height: 24px; }
  .studio-primary-actions strong { font-size: 12px; }
  .studio-primary-actions small { font-size: 9px; }
  .prompt-card { padding: 22px; }
  .reveal-panel { padding: 25px; }
  .reveal-time { font-size: 23px; }
  .member-row { gap: 10px; font-size: 12px; }
  .app-footer { gap: 15px; padding: 20px max(24px, env(safe-area-inset-right)) max(26px, env(safe-area-inset-bottom)) max(24px, env(safe-area-inset-left)); font-size: 9px; }
  .join-layout { grid-template-columns: minmax(0, 1fr); gap: 23px; padding: 34px 24px; }
  .join-layout h2 { margin-bottom: 14px; font-size: 36px; letter-spacing: -1.5px; }
  .join-layout > div > p:not(.eyebrow) { font-size: 12px; }
  .join-card { padding: 22px; }
  .mobile-camera { position: fixed; right: max(20px, env(safe-area-inset-right)); bottom: max(18px, calc(env(safe-area-inset-bottom) + 12px)); z-index: 12; display: flex; min-height: 54px; padding: 14px 20px; border-radius: 16px; box-shadow: 0 7px 24px #0008, 0 0 24px rgba(42, 168, 255, .2); }
  .studio-layout { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .studio-visual { top: -20px; z-index: 2; padding: 10px 0 2px; background: #111a28; }
  .studio-visual .studio-source { display: none; }
  .studio-preview { min-height: 130px; max-height: 280px; }
  .studio-preview img { max-height: min(32dvh, 260px); }
  .studio-preview-note { min-height: 0; margin: 8px 0 4px; font-size: 9px; }
  .preview-tag { top: 8px; left: 8px; max-width: calc(100% - 16px); font-size: 9px; }
  .before-after { bottom: 8px; min-height: 36px; padding: 8px 12px; font-size: 10px; }
  .modal-head h2 { font-size: 23px; }
  dialog { max-height: calc(100dvh - 24px - env(safe-area-inset-top) - env(safe-area-inset-bottom)); padding: 23px; border-radius: 20px; }
  dialog.studio { padding: 20px; }
  .studio-source { font-size: 11px; }
  .effects-list { margin-top: 10px; }
  .effect-option { min-height: 86px; font-size: 10px; }
  .connection-banner { font-size: 11px; }
  .toast { bottom: max(86px, calc(env(safe-area-inset-bottom) + 78px)); }
  .album-top { gap: 10px; margin-bottom: 18px; }
  .album-top .btn { padding: 9px 10px; font-size: 10px; }
  .camera-actions .btn { min-height: 50px; font-size: 12px; }
  .camera-preview img { max-height: 42dvh; }
}
@media (max-width: 360px) {
  .app-header { padding-right: 14px; padding-left: 14px; }
  .brand { gap: 7px; font-size: 16px; letter-spacing: -.8px; }
  .brand-mark { width: 32px; height: 35px; }
  .brand small { font-size: 5px; letter-spacing: 1.9px; }
  .app-header .btn { padding: 8px; font-size: 10px; }
  .hero { padding-right: 20px; padding-left: 20px; }
  .hero h1 { font-size: 37px; letter-spacing: -1.7px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .scrapbook { height: 342px; }
  .scrapbook .paper-card { width: 162px; left: 8px; }
  .scrapbook .paper-card:nth-child(2) { right: 8px; left: auto; top: 112px; }
  .face-art { height: 161px; }
  .face-art::before { left: 0; }
  .face-art::after { left: 3px; }
  .face-eyes { left: 23px; gap: 26px; }
  .face-smile { left: 48px; }
  .face-art.peach::before { left: -6px; }
  .face-art.peach::after { left: -5px; }
  .peach .face-eyes { left: 8px; }
  .sticker-bottom { bottom: 2px; font-size: 8px; }
  .scrap-star { bottom: 53px; }
  .content { padding-right: 16px; padding-left: 16px; }
  .space-grid { grid-template-columns: minmax(0, 1fr); }
  .space-cover { height: 175px; }
  .space-card h3 { font-size: 16px; }
  .space-meta { font-size: 10px; }
  .section-heading h2 { font-size: 20px; }
  .welcome-band { padding: 21px; }
  .album-heading h1 { font-size: 31px; }
  .album-capture .btn { gap: 6px; font-size: 11px; }
  .prompt-banner { flex-wrap: wrap; }
  .album-nav { gap: 10px; }
  .album-nav button { font-size: 10px; }
  dialog, dialog.studio { padding: 18px; }
  .modal-head { gap: 8px; }
  .modal-head h2 { font-size: 21px; }
  .effects-list, .format-picker { gap: 6px; }
  .effect-option, .format-option { font-size: 9px; }
  .camera-actions > .btn:not(.btn-wide) { flex-basis: 100%; }
  .app-footer { flex-direction: column; gap: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
