/* Wish Tree app pages (/t/CODE, /create, /signin, /my). Same design language as the site (site/seo/site.css, from
   decomytree.link): black page, Poppins, big tight headlines, white pill buttons, the tree with no box on a painted
   ground under falling snow, petals or sparks. Kept separate and small so app pages load fast. */

@font-face { font-family: 'Poppins'; src: url('/assets/fonts/poppins-400.woff') format('woff'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Poppins'; src: url('/assets/fonts/poppins-600.woff') format('woff'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Poppins'; src: url('/assets/fonts/poppins-700.woff') format('woff'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Patrick Hand'; src: url('/assets/fonts/patrick-hand-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }

:root {
  --bg: #0a0a0b; --bg-2: #161618; --bg-3: #222225; --line: rgba(255, 255, 255, 0.14);
  --text: #fff; --text-2: rgba(255, 255, 255, 0.76); --text-3: rgba(255, 255, 255, 0.58);
  --ink: #111113; --butter: #ffd45c; --danger: #ff8a7a; --ok: #7ee2b8; --red: #ff453a;
  --radius-lg: 28px; --radius: 18px;
  --font: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --hand: 'Patrick Hand', 'Segoe Print', 'Comic Sans MS', cursive;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
body { margin: 0; min-height: 100vh; font-family: var(--font); font-size: 1rem; line-height: 1.55; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
main { overflow-x: clip; }

/* ---------- header and footer ---------- */
.bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: min(100% - 32px, 1120px); margin: 0 auto; padding: 14px 0; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.08rem; letter-spacing: -0.02em; text-decoration: none; white-space: nowrap; }
.logo img { width: 34px; height: 34px; border-radius: 10px; }
.bar .btn { min-height: 42px; padding: 0 18px; font-size: 0.95rem; }
.foot { width: min(100% - 32px, 1120px); margin: 56px auto 0; padding: 22px 0 30px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--text-3); font-size: 0.85rem; }
.foot a { text-decoration: none; }
.foot a:hover { color: #fff; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5em; min-height: 52px; padding: 0 26px; border: 0; border-radius: 999px; font-weight: 600; font-size: 1.02rem; line-height: 1.1; text-decoration: none; white-space: nowrap; transition: transform 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease, opacity 0.15s; }
.btn:active { transform: scale(0.97); }
.btn[disabled] { opacity: 0.45; pointer-events: none; }
.btn-white { background: #fff; color: var(--ink); }
.btn-white:hover { background: #ececec; }
.btn-ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.45); }
.btn-ghost:hover { box-shadow: inset 0 0 0 2px #fff; }
.btn-dark { background: var(--bg-2); color: #fff; }
.btn-dark:hover { background: var(--bg-3); }
.btn-lg { min-height: 58px; padding: 0 32px; font-size: 1.1rem; }
.btn-block { width: 100%; }
.link { padding: 0; border: 0; background: none; color: var(--text-2); font-size: 0.95rem; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.link:hover { color: #fff; }
.link.danger { color: var(--danger); }

/* ---------- type ---------- */
.title { margin: 0 0 8px; font-size: clamp(2.1rem, 1.2rem + 4.6vw, 4.4rem); font-weight: 700; line-height: 0.98; letter-spacing: -0.045em; text-wrap: balance; }
.sub { margin: 0; color: var(--text-2); font-size: clamp(1rem, 0.95rem + 0.3vw, 1.15rem); font-weight: 600; text-wrap: balance; }
.sub b { color: var(--butter); font-weight: 600; }
.h2 { margin: 0 0 10px; font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.2rem); font-weight: 700; line-height: 1.05; letter-spacing: -0.03em; text-wrap: balance; }
.muted { color: var(--text-3); }
.small { font-size: 0.88rem; }

/* ---------- the tree on its ground (same numbers as the site's hero) ---------- */
.scene { position: relative; isolation: isolate; overflow: hidden; text-align: center; --ga: 4.571; --gw: max(1000px, 120vw); --gh: calc(var(--gw) / var(--ga)); padding-bottom: calc(var(--gh) * 0.8); }
/* the warm light behind the tree: sized by the scene (not the window) so it always fits inside it and fades out on
   every side before the scene's edge; nothing is cut, so no line shows (user 11-21: "arka tarafta kesiklik var") */
.scene::before { content: ''; position: absolute; left: 50%; bottom: calc(var(--gh) * 0.45); z-index: -1; width: min(900px, 120%); aspect-ratio: 1.6; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(255, 214, 140, 0.14), rgba(255, 214, 140, 0.05) 50%, rgba(255, 214, 140, 0) 70%); -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 35%); mask-image: linear-gradient(180deg, transparent 0, #000 35%); pointer-events: none; }
.scene .ground { position: absolute; left: 50%; bottom: 0; z-index: 0; width: var(--gw); max-width: none; transform: translateX(-50%); -webkit-mask-image: linear-gradient(180deg, #000 50%, transparent 100%); mask-image: linear-gradient(180deg, #000 50%, transparent 100%); }
.stage { --sw: min(560px, 88vw); position: relative; z-index: 1; width: var(--sw); margin: 0 auto calc(min(560px, 88vw) * -0.023); container-type: inline-size; }
.stage { translate: 0 calc(var(--sw) * var(--drop, 0)); }   /* per tree, from scene.js: trunks on the crest */
.stage .tree { width: 100%; aspect-ratio: 1; }
.gifts { position: absolute; inset: 0; margin: 0; padding: 0; list-style: none; }
.gifts li { position: absolute; width: 15%; transform: translate(-50%, -50%); }
.gifts img { width: 100%; filter: drop-shadow(0 3px 4px rgba(0, 0, 0, 0.35)); transform-origin: 50% 0; animation: hang 0.7s cubic-bezier(0.2, 0.9, 0.3, 1.2) both; animation-delay: var(--d, 0s); }
.gifts li.glow img { filter: drop-shadow(0 0 10px rgba(255, 212, 92, 0.9)) drop-shadow(0 3px 4px rgba(0, 0, 0, 0.3)); }
.gifts li.mine::before { content: ''; position: absolute; inset: -18%; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 212, 92, 0.55), rgba(255, 212, 92, 0)); animation: pulse 2.4s ease-in-out infinite; }
.gifts button { display: block; width: 100%; padding: 0; border: 0; background: none; }
.gifts li.unread button::after { content: ''; position: absolute; top: 4%; right: 6%; width: 18%; aspect-ratio: 1; border-radius: 50%; background: var(--butter); box-shadow: 0 0 0 2px var(--bg); }
/* Christmas (user 11-22): string lights ("noel ağacı ışıkları yok", then "buradaki gibi kaliteli yap") and the topper
   ("yılbaşında topper da olmalı"), where app/scripts/art.py measured them on each tree. Lights sit under the gifts; the
   stage makes room above for the topper. */
.stage.topped { margin-top: calc(var(--sw) * 0.05); }
/* String lights: a fine dark green wire, small glossy bulb pictures (scene.js places them), and their glow screened
   onto the branches. Each bulb twinkles at its own pace (--t and --d from scene.js; user 11-22: "ışıklarda animasyon
   olsa daha iyi"): lit most of the time, a slow dip and back, its glow dipping deeper. Both layers are masked with the
   tree's own picture (inline style). */
.lights, .lights-glow { position: absolute; inset: 0; width: 100%; height: 100%; overflow: hidden; pointer-events: none; -webkit-mask-size: 100% 100%; mask-size: 100% 100%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; }
.lights > svg, .lights-glow > svg { display: block; width: 100%; height: 100%; }
.lights-glow { mix-blend-mode: screen; }
.lights-glow circle { animation: twinkle var(--t, 3.6s) ease-in-out var(--d, 0s) infinite; }
.lights .bulb { animation: bulb-twinkle var(--t, 3.6s) ease-in-out var(--d, 0s) infinite; }
.lights .wire { fill: none; stroke: #173a1c; stroke-width: 2.6; stroke-linecap: round; }
@keyframes twinkle { 0%, 35%, 100% { opacity: 1; } 68% { opacity: 0.15; } }
@keyframes bulb-twinkle { 0%, 35%, 100% { opacity: 1; } 68% { opacity: 0.5; } }
@media (prefers-reduced-motion: reduce) { .lights-glow circle, .lights .bulb { animation: none; } }
.topper { position: absolute; z-index: 1; width: 17%; transform: translate(-50%, -100%); filter: drop-shadow(0 3px 4px rgba(0, 0, 0, 0.35)); pointer-events: none; }
/* Picker steps (tree, topper; user 11-22: "kaydırarak olsun, seçili olan üstte toprakla beraber"): the choice big on
   its ground with a round arrow on each side, then a full-width strip that scrolls sideways and snaps. The strip starts
   at the left edge of the content like any list (user 11-22: "liste en soldan gelmeli") and only scrolls to keep the
   chosen card in view. */
.picking .flow-head .title { font-size: clamp(1.9rem, 7.5vw, 2.8rem); }
/* Step 1: what the tree is for, three stacked choices with one of their trees (user 11-22: "ağaç türünü seçerken alt
   alta seçenek olarak göstersin"); a tap moves on to the tree picker. */
.type-list { display: grid; gap: 12px; width: min(100%, 520px); margin: 24px auto 0; }
.type-card { display: flex; align-items: center; gap: 14px; width: 100%; padding: 12px 16px 12px 12px; border: 1px solid var(--line); border-radius: 22px; background: rgba(255, 255, 255, 0.06); color: #fff; text-align: left; -webkit-tap-highlight-color: transparent; transition: background-color 0.15s, border-color 0.15s, transform 0.15s; }
.type-card:hover { background: rgba(255, 255, 255, 0.1); }
.type-card:active { transform: scale(0.98); }
.type-card[aria-pressed='true'] { border-color: var(--butter); box-shadow: inset 0 0 0 1px var(--butter); }
.type-pic { display: grid; place-items: center; flex: none; width: 78px; height: 78px; border-radius: 18px; background: radial-gradient(circle at 50% 70%, rgba(255, 212, 92, 0.16), rgba(255, 255, 255, 0.04) 70%); }
.type-pic img { width: 90%; height: 90%; object-fit: contain; }
.type-text { display: grid; flex: 1; gap: 3px; min-width: 0; }
.type-text b { font-size: 1.15rem; letter-spacing: -0.01em; }
.type-text span { color: var(--text-3); font-size: 0.9rem; line-height: 1.35; }
.type-card .type-go { width: 20px; height: 20px; color: var(--text-3); }
.pick-preview { margin: 6px calc(50% - 50vw) 0; overflow: hidden; touch-action: pan-y; -webkit-user-select: none; user-select: none; }
/* The trunk stands on the hill's crest (user 11-22: "ağaç tam tepede olması gerekmiyor mu"): the trunk sits ~18% of the
   ground's height below its top edge, and the hill's lower part (which fades out anyway) is pushed below the frame, so the
   preview stays short. Rule: padding-bottom = 0.82 x gh - shift. */
/* Everything fits one phone screen (user 11-22: "mobilde alta kalıyor"): the tree's size comes from the screen's height
   as well as its width (100svh: the height with Safari's bars showing), and the hill grows with the tree, so the strip
   and the Next button are never under each other. --tree is the tree's width; each step sets how much room it leaves. */
.pick-preview { --tree: clamp(160px, min(70vw, 100svh - 440px), 330px); }
.pick-preview.with-tabs { --tree: clamp(160px, min(70vw, 100svh - 500px), 330px); }
.pick-preview.when-preview { --tree: clamp(160px, min(70vw, 100svh - 470px), 330px); }
@media (min-width: 700px) {   /* wider screens: more padding and a bigger title above the tree */
  .pick-preview { --tree: clamp(160px, min(70vw, 100svh - 510px), 330px); }
  .pick-preview.with-tabs { --tree: clamp(160px, min(70vw, 100svh - 545px), 330px); }
  .pick-preview.when-preview { --tree: clamp(160px, min(70vw, 100svh - 515px), 330px); }
}
.pick-preview .scene { --gw: max(min(100vw + 40px, var(--tree) * 3), var(--tree) * 2.4, min(100vw + 40px, 700px)); padding-bottom: calc(var(--gh) * 0.42); transition: transform 1.25s cubic-bezier(0.22, 0.8, 0.2, 1); }
.pick-preview .scene .ground { bottom: calc(var(--gh) * -0.4); }
/* where the hill is cut off at the bottom of a frame, it fades out instead of ending in a hard line */
.pick-preview:not(.zoomed), .ready .scene, #app > .scene:not(.owned) { -webkit-mask-image: linear-gradient(180deg, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(180deg, #000 calc(100% - 40px), transparent); }
.pick-preview.zoomed { -webkit-mask-image: linear-gradient(180deg, transparent, #000 36px, #000 72%, transparent); mask-image: linear-gradient(180deg, transparent, #000 36px, #000 72%, transparent); }
/* the warm glow behind the tree, sized to the tree in frames cut to the tree, so the frame's top edge never slices it */
.pick-preview .scene::before, .ready .scene::before, .wish-preview .scene::before, #app > .scene:not(.owned)::before { width: calc(var(--tree) * 2.4); aspect-ratio: 2; }
.pick-preview .stage { --sw: var(--tree); }
.picking .flow-foot, .when .flow-foot { margin-top: 10px; }
.when .flow-head .title { font-size: clamp(1.9rem, 7.5vw, 2.8rem); }
.pick-preview img { -webkit-user-drag: none; }
.strip { position: relative; display: flex; gap: 10px; margin: 8px calc(50% - 50vw) 0; padding: 6px max(16px, calc(50vw - 50%)) 8px; scroll-padding-inline: max(16px, calc(50vw - 50%)); list-style: none; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; scrollbar-width: none; }
.strip::-webkit-scrollbar { display: none; }
.strip li { flex: none; scroll-snap-align: start; }
.pick-stage { position: relative; }
.pick-stage .pick-arrow { position: absolute; top: 46%; z-index: 2; width: 44px; height: 44px; margin-top: -22px; }
.pick-stage .pick-arrow.prev { left: 0; }
.pick-stage .pick-arrow.next { right: 0; }
.pick-arrow svg { width: 22px; height: 22px; }
.strip button { display: grid; justify-items: center; width: 84px; -webkit-tap-highlight-color: transparent; padding: 8px; border: 0; border-radius: var(--radius); background: var(--bg-2); transition: background-color 0.15s, box-shadow 0.15s, transform 0.15s; }
.strip button:hover { background: var(--bg-3); }
.strip button[aria-pressed='true'] { box-shadow: inset 0 0 0 2px var(--butter); background: var(--bg-3); transform: translateY(-2px); }
.strip img { width: 100%; aspect-ratio: 1; }
.tag { position: absolute; left: 50%; top: 100%; transform: translateX(-50%); margin-top: -2px; padding: 0 0.7em; border-radius: 999px; background: #fff; color: #1b1b1b; font-size: clamp(0.6rem, 2.2cqw, 0.8rem); font-weight: 600; line-height: 1.6; white-space: nowrap; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3); }
.mine .tag { background: var(--butter); }
@keyframes hang { from { opacity: 0; transform: translateY(-30%) rotate(-10deg); } 60% { opacity: 1; transform: translateY(4%) rotate(4deg); } to { opacity: 1; transform: none; } }
@keyframes pulse { 50% { opacity: 0.45; transform: scale(0.9); } }

/* falling snow (Christmas), petals (Birthday), sparks (Wish), as on the site */
.snow { position: absolute; inset: 0; z-index: 2; overflow: hidden; pointer-events: none; }
.snow i { position: absolute; top: 0; height: 100%; width: 0; animation: snow-fall var(--t, 11s) linear var(--d, 0s) infinite; will-change: transform; }
.snow i::after { content: ''; position: absolute; top: calc(-1 * var(--s, 4px)); left: 0; width: var(--s, 4px); height: var(--s, 4px); border-radius: 50%; background: #eef5ff; box-shadow: 0 0 5px #eef5ff; opacity: var(--o, 0.8); animation: snow-sway var(--w, 3s) ease-in-out var(--wd, 0s) infinite alternate; }
.snow.petals i::after { width: calc(var(--s) * 2.1); height: calc(var(--s) * 1.3); border-radius: 80% 0 80% 0; background: #ffc9d8; box-shadow: none; animation-name: petal-sway; }
.snow.sparks i::after { width: calc(var(--s) * 0.8); height: calc(var(--s) * 0.8); background: #fff2c4; box-shadow: 0 0 8px 2px rgba(255, 226, 150, 0.55); }
@keyframes snow-fall { 0% { transform: translateY(0); opacity: 0; } 6%, 90% { opacity: 1; } 100% { transform: translateY(100%); opacity: 0; } }
@keyframes snow-sway { from { transform: translateX(calc(-1 * var(--x, 14px))); } to { transform: translateX(var(--x, 14px)); } }
@keyframes petal-sway { from { transform: translateX(calc(-1 * var(--x, 14px))) rotate(-40deg); } to { transform: translateX(var(--x, 14px)) rotate(50deg); } }

/* ---------- tree page ---------- */
.tree-head { position: relative; z-index: 3; width: min(100% - 32px, 760px); margin: 0 auto; padding: clamp(18px, 4vw, 40px) 0 0; text-align: center; }
.tree-head .sub { margin-top: 6px; }
.count-chip { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; padding: 7px 16px; border-radius: 999px; background: var(--bg-2); color: var(--text-2); font-size: 0.92rem; font-weight: 600; }
.count-chip b { color: #fff; }
.count-chip .ic { width: 17px; height: 17px; margin-right: -2px; color: var(--butter); }
.actions { position: relative; z-index: 3; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; width: min(100% - 32px, 760px); margin: -12px auto 0; }
.note { width: min(100% - 32px, 560px); margin: 18px auto 0; color: var(--text-3); font-size: 0.9rem; text-align: center; }

/* owner and reader tools */
.panel { width: min(100% - 32px, 760px); margin: 28px auto 0; padding: clamp(20px, 4vw, 28px); border-radius: var(--radius-lg); background: var(--bg-2); }
.panel + .panel { margin-top: 14px; }
.share { display: flex; gap: 8px; margin: 14px 0 6px; }
.share input { flex: 1; min-width: 0; height: 52px; padding: 0 18px; border: 0; border-radius: 999px; background: var(--bg-3); color: var(--text-2); font-size: 1rem; }
.inbox { margin: 14px 0 0; padding: 0; list-style: none; }
.inbox li { display: grid; grid-template-columns: 52px 1fr auto; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.inbox img { width: 52px; height: 52px; }
.inbox b { display: block; font-weight: 600; }
.inbox small { color: var(--text-3); }
.inbox .tools { display: flex; gap: 10px; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 14px; }

/* ---------- sheets (send flow, letters, dialogs) ---------- */
.sheet { position: fixed; inset: 0; z-index: 40; display: grid; align-items: end; justify-items: center; background: rgba(0, 0, 0, 0.66); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); animation: fade 0.2s ease-out; }
.sheet-in { position: relative; width: min(100%, 560px); max-height: 94vh; max-height: 94dvh; overflow-y: auto; overscroll-behavior: contain; padding: 18px 18px calc(24px + env(safe-area-inset-bottom)); border-radius: 28px 28px 0 0; background: var(--bg); box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.5); animation: up 0.28s cubic-bezier(0.2, 0.9, 0.3, 1); }
.sheet-top { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; margin-bottom: 6px; }
.sheet-top h2 { margin: 0; text-align: center; font-size: 1.15rem; font-weight: 700; letter-spacing: -0.02em; }
.icon-btn { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: var(--bg-2); }
.icon-btn:hover { background: var(--bg-3); }
.icon-btn svg { width: 20px; height: 20px; }
.steps { display: flex; justify-content: center; gap: 6px; margin: 4px 0 16px; }
.steps i { width: 38px; height: 5px; border-radius: 9px; background: var(--bg-3); }
.steps i.on { background: var(--butter); }
.sheet-foot { position: sticky; bottom: calc(-24px - env(safe-area-inset-bottom)); margin: 18px -18px calc(-24px - env(safe-area-inset-bottom)); padding: 14px 18px calc(18px + env(safe-area-inset-bottom)); background: linear-gradient(180deg, rgba(10, 10, 11, 0), var(--bg) 30%); }
.error { margin: 10px 0 0; color: var(--danger); font-size: 0.92rem; font-weight: 600; text-align: center; }
@keyframes up { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes fade { from { opacity: 0; } }

/* the letter (letter.css) inside the app: Poppins where the prototype used Inter */
.envelope { margin-top: 26px; }
.postmark, .letter-mini small { font-family: var(--font) !important; }
.paper textarea { color: var(--ink); }

.toggle { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; padding: 12px 16px; border-radius: var(--radius); background: var(--bg-2); }
.toggle b { display: block; font-weight: 600; }
.toggle small { color: var(--text-3); font-size: 0.85rem; }
.switch { position: relative; flex: none; width: 52px; height: 32px; border: 0; border-radius: 99px; background: var(--bg-3); }
.switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%; background: #fff; transition: transform 0.2s; }
.switch[aria-checked='true'] { background: var(--ok); }
.switch[aria-checked='true']::after { transform: translateX(20px); }

.label { margin: 18px 0 10px; color: var(--text-3); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.gift-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 0; padding: 0; list-style: none; }
.gift-grid button { position: relative; display: grid; place-items: center; width: 100%; aspect-ratio: 1; padding: 8px; border: 0; border-radius: var(--radius); background: var(--bg-2); transition: background-color 0.15s, box-shadow 0.15s; }
.gift-grid button:hover { background: var(--bg-3); }
.gift-grid button[aria-pressed='true'] { background: var(--bg-3); box-shadow: inset 0 0 0 2px var(--butter); }
.gift-grid img { width: 78%; aspect-ratio: 1; }
.gift-grid .price { position: absolute; top: 6px; right: 6px; padding: 1px 7px; border-radius: 99px; background: var(--butter); color: var(--ink); font-size: 0.68rem; font-weight: 700; }
.gift-grid button.soon { opacity: 0.55; cursor: default; }
/* "See it on the tree": the tree on the hill's crest, sized so the wish card and Send stay on one phone screen */
.wish-preview { margin: 0 -18px; }
.wish-preview .scene { --tree: clamp(170px, min(72vw, (100svh - 400px) * 0.8), 380px); --gw: max(min(100vw + 40px, var(--tree) * 3), var(--tree) * 2.4, min(100vw + 40px, 700px)); padding-bottom: calc(var(--gh) * 0.42); -webkit-mask-image: linear-gradient(180deg, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(180deg, #000 calc(100% - 40px), transparent); }
.wish-preview .scene .ground { bottom: calc(var(--gh) * -0.4); }
.wish-preview .stage { --sw: var(--tree); }
.done { text-align: center; padding: 6px 4px 0; }
.done .h2 { margin-top: 6px; }

/* ---------- opening wishes: a full screen on phones, sealed envelopes, letters that slide like cards ---------- */
.reader .sheet-in.reader-in { display: flex; flex-direction: column; width: 100%; height: 100vh; height: 100dvh; max-height: none; padding: 10px 16px calc(16px + env(safe-area-inset-bottom)); border-radius: 0; background: radial-gradient(120% 60% at 50% 0%, #1b1b1f, var(--bg) 62%); }
.reader-top { display: flex; align-items: center; justify-content: space-between; }
.reader-count { padding-left: 6px; color: var(--text-2); font-size: 0.95rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.reader-tools { display: flex; gap: 8px; }   /* the owner's ⋯ (remove, block, report) or a reader's flag, then ✕ */
.reader-stage { flex: 1; display: grid; align-content: center; overflow-x: hidden; overflow-y: auto; padding: 8px 4px 18px; touch-action: pan-y; -webkit-user-select: none; user-select: none; }
.reader-stage > * { will-change: transform; }
.reader-stage img { -webkit-user-drag: none; -webkit-touch-callout: none; pointer-events: none; }
.reader-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 6px; }
.round-btn { display: grid; place-items: center; flex: none; width: 56px; height: 56px; padding: 0; border: 0; border-radius: 50%; background: #fff; color: var(--ink); box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35); transition: transform 0.15s, opacity 0.15s; }
.round-btn:active { transform: scale(0.94); }
.round-btn[disabled] { opacity: 0.22; }
.round-btn svg { width: 24px; height: 24px; }
.dots { display: flex; flex-wrap: wrap; justify-content: center; gap: 7px; max-width: 62%; }
.dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--bg-3); transition: transform 0.2s, background-color 0.2s; }
.dots i.new { background: rgba(255, 212, 92, 0.5); }
.dots i.on { background: #fff; transform: scale(1.3); }
.letter-open { margin-top: 64px; }
.letter-open.card-in { animation: card-in 0.45s cubic-bezier(0.2, 0.9, 0.3, 1); }
@keyframes card-in { from { opacity: 0; transform: translateY(22px) scale(0.96); } }

/* the sealed envelope (colours from letter.css, per tree type): tap -> seal pops, flap opens, letter rises */
.env-wrap { display: grid; justify-items: center; gap: 16px; padding: 24px 0 8px; }
.env-closed { position: relative; width: min(340px, 84vw); aspect-ratio: 1.42; padding: 0; border: 0; background: none; perspective: 1100px; transition: transform 0.2s ease; }
.env-closed:hover { transform: translateY(-3px) rotate(-1deg); }
.env-closed:active { transform: scale(0.98); }
.env-back { position: absolute; inset: 0; border-radius: 16px; background: var(--env-bg); box-shadow: 0 20px 44px rgba(0, 0, 0, 0.5); }
.env-paper { position: absolute; left: 7%; right: 7%; top: 7%; height: 84%; z-index: 1; border-radius: 6px; background: linear-gradient(180deg, var(--paper-top), var(--paper-bottom)); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12); opacity: 0; transition: transform 0.55s cubic-bezier(0.2, 0.9, 0.3, 1) 0.3s, opacity 0s linear 0.2s; }
.env-front { position: absolute; inset: 0; z-index: 2; border-radius: 16px; background: var(--env); clip-path: polygon(0 32%, 50% 64%, 100% 32%, 100% 100%, 0 100%); }
.env-flap { position: absolute; left: 0; right: 0; top: 0; height: 64%; z-index: 3; border-radius: 16px 16px 0 0; background: var(--env-dark); clip-path: polygon(0 0, 100% 0, 50% 100%); transform-origin: 50% 0; transition: transform 0.45s ease-in-out, z-index 0s linear 0.22s; }
.env-seal { position: absolute; left: 50%; top: 64%; z-index: 4; display: grid; place-items: center; width: 76px; height: 76px; margin: -38px 0 0 -38px; border: 3px solid #fff; border-radius: 50%; background: radial-gradient(circle at 50% 40%, #fff, var(--env-soft) 78%); box-shadow: 0 6px 14px rgba(0, 0, 0, 0.3); transition: transform 0.25s ease, opacity 0.25s ease; }
.env-seal img { width: 76%; }
.env-from { position: absolute; left: 0; right: 0; bottom: 9%; z-index: 4; color: #fff; font: 400 23px/1 var(--hand); text-align: center; text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3); }
.env-hint { margin: 0; color: var(--text-3); font-size: 0.92rem; font-weight: 600; animation: hint 1.8s ease-in-out infinite; }
@keyframes hint { 50% { opacity: 0.45; } }
.env-closed.opening { pointer-events: none; animation: env-out 0.28s ease-in 0.56s forwards; }
.env-closed.opening .env-seal { transform: scale(1.35); opacity: 0; }
.env-closed.opening .env-flap { transform: rotateX(180deg); z-index: 0; }
.env-closed.opening .env-paper { transform: translateY(-48%); opacity: 1; }
.env-closed.opening .env-from { opacity: 0; transition: opacity 0.2s; }
@keyframes env-out { to { opacity: 0; transform: translateY(18px) scale(0.95); } }

/* ---------- sharing a link: the link big and tappable, then the ways people send it ---------- */
.share-card { margin-top: 16px; text-align: left; }
.share-card .label { margin: 0 0 8px; }
.link-pill { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; min-height: 56px; padding: 0 18px 0 20px; border: 0; border-radius: 999px; background: var(--bg-3); color: #fff; font-size: 1rem; font-weight: 600; text-align: left; transition: background-color 0.15s; }
.link-pill:hover { background: #2c2c30; }
.link-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }   /* long private links shrink */
.share-ic { display: block; flex: none; width: 22px; height: 22px; }
.share-ic svg { display: block; width: 100%; height: 100%; }
.link-pill .share-ic { color: var(--text-2); }
.share-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(64px, 1fr)); gap: 8px; margin-top: 10px; }
.share-btn { display: grid; justify-items: center; gap: 6px; min-height: 64px; padding: 12px 6px 10px; border: 0; border-radius: var(--radius); background: var(--bg-3); color: #fff; font-size: 0.82rem; font-weight: 600; line-height: 1.1; text-decoration: none; transition: background-color 0.15s, transform 0.15s; }
.share-btn:hover { background: #2c2c30; }
.share-btn:active { transform: scale(0.96); }
.share-btn .share-ic { width: 24px; height: 24px; }
.share-btn.main { background: #fff; color: var(--ink); }
.panel .share-card { margin-top: 14px; }

/* a short burst of confetti, snow or sparks over a new tree */
.burst { position: absolute; inset: 0; z-index: 4; overflow: hidden; pointer-events: none; }
.burst i { position: absolute; top: -14px; width: var(--w); height: calc(var(--w) * 0.45); border-radius: 2px; background: var(--c); opacity: 0; animation: burst var(--t) cubic-bezier(0.25, 0.6, 0.4, 1) var(--d) forwards; }
.burst i.dot { height: var(--w); border-radius: 50%; box-shadow: 0 0 8px var(--c); }
@keyframes burst { 0% { opacity: 1; transform: translate(0, 0) rotate(0deg); } 85% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--x), 640px) rotate(var(--r)); } }

/* ---------- forms ---------- */
.field { display: grid; gap: 6px; margin-top: 16px; text-align: left; }
.field > span { color: var(--text-2); font-size: 0.92rem; font-weight: 600; }
.input { width: 100%; height: 56px; padding: 0 20px; border: 2px solid transparent; border-radius: var(--radius); background: var(--bg-2); color: #fff; font-size: 1.05rem; outline: none; transition: border-color 0.15s; }
.input:focus { border-color: rgba(255, 255, 255, 0.6); }
.input::placeholder { color: var(--text-3); }
.code-input { letter-spacing: 0.4em; font-size: 1.6rem; font-weight: 600; text-align: center; font-variant-numeric: tabular-nums; }
input[type='date'].input { color-scheme: dark; }
/* iOS Safari centres a date's value and sizes the box its own way: line it up with the label like the other fields */
input[type='date'].input { -webkit-appearance: none; appearance: none; display: block; line-height: 52px; text-align: left; }
input[type='date'].input::-webkit-date-and-time-value { text-align: left; }
.choice { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.choice button { min-height: 56px; padding: 10px 14px; border: 0; border-radius: var(--radius); background: var(--bg-2); font-weight: 600; text-align: center; }
.choice button[aria-pressed='true'] { background: #fff; color: var(--ink); }

/* ---------- create ---------- */
.flow { width: min(100% - 32px, 760px); margin: 0 auto; padding: clamp(16px, 4vw, 36px) 0 0; }
.flow-head { text-align: center; }
.flow .steps { margin-bottom: 22px; }
.occasions { display: grid; gap: 12px; margin: 22px 0 0; padding: 0; list-style: none; }
.occasions button { display: grid; grid-template-columns: 96px 1fr; align-items: center; gap: 16px; width: 100%; padding: 14px 20px 14px 14px; border: 0; border-radius: var(--radius-lg); background: var(--bg-2); text-align: left; transition: background-color 0.15s, transform 0.15s; }
.occasions button:hover { background: var(--bg-3); }
.occasions button:active { transform: scale(0.99); }
.occasions img { width: 96px; height: 96px; }
.occasions b { display: block; font-size: 1.25rem; font-weight: 700; letter-spacing: -0.02em; }
.occasions small { color: var(--text-3); font-size: 0.92rem; }
.flow-foot { position: sticky; bottom: 0; z-index: 5; display: flex; gap: 10px; margin-top: 22px; padding: 14px 0 calc(16px + env(safe-area-inset-bottom)); background: linear-gradient(180deg, rgba(10, 10, 11, 0), var(--bg) 35%); }
.flow-foot .btn-white { flex: 1; }
.ready { text-align: center; }
/* the tree on the hill's crest, sized so Share and Open my tree stay on the first screen of a phone */
.ready .scene { --tree: clamp(170px, min(66vw, 100svh - 440px), 340px); --gw: max(min(100vw + 40px, var(--tree) * 3), var(--tree) * 2.4, min(100vw + 40px, 700px)); margin-inline: calc(50% - 50vw); padding-bottom: calc(var(--gh) * 0.42); }
.ready .scene .ground { bottom: calc(var(--gh) * -0.4); }
.ready .stage { --sw: var(--tree); }
.ready-next { margin: 26px 0 6px; }   /* full width, no box: the ground runs off both edges */

/* ---------- sign in, my trees ---------- */
.narrow { width: min(100% - 32px, 460px); margin: 0 auto; padding: clamp(28px, 7vw, 72px) 0 0; text-align: center; }
.cards { display: grid; gap: 12px; margin: 22px 0 0; padding: 0; list-style: none; }
.cards a { display: grid; grid-template-columns: 76px 1fr auto; align-items: center; gap: 14px; padding: 12px 18px 12px 12px; border-radius: var(--radius-lg); background: var(--bg-2); text-decoration: none; transition: background-color 0.15s; }
.cards a:hover { background: var(--bg-3); }
.cards img { width: 76px; height: 76px; }
.cards b { display: block; font-size: 1.05rem; font-weight: 700; letter-spacing: -0.01em; }
.cards small { color: var(--text-3); font-size: 0.88rem; }
.badge { padding: 3px 10px; border-radius: 99px; background: var(--butter); color: var(--ink); font-size: 0.78rem; font-weight: 700; white-space: nowrap; }
.badge.dim { background: var(--bg-3); color: var(--text-2); }
.settings { margin-top: 28px; text-align: left; }
.settings .panel { width: 100%; }
.empty { margin-top: 28px; padding: 28px 20px; border-radius: var(--radius-lg); background: var(--bg-2); }

.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); z-index: 60; width: max-content; max-width: calc(100% - 32px); text-align: center; padding: 12px 20px; border-radius: 999px; background: #fff; color: var(--ink); font-weight: 600; font-size: 0.95rem; box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4); transform: translateX(-50%); animation: up 0.25s ease-out; }

@media (min-width: 700px) {
  .reader .sheet-in.reader-in { width: min(100%, 600px); height: auto; min-height: 640px; max-height: 92vh; border-radius: 28px; }
  .sheet { align-items: center; }
  .sheet-in { border-radius: 28px; max-height: 90vh; }
  .sheet-foot { bottom: -24px; margin-bottom: -24px; padding-bottom: 18px; }
  .gift-grid { grid-template-columns: repeat(6, 1fr); }
  .occasions { grid-template-columns: repeat(3, 1fr); }
  .occasions button { grid-template-columns: 1fr; justify-items: center; padding: 20px 16px 22px; text-align: center; }
  .occasions img { width: 150px; height: 150px; }
}
@media (max-width: 359px) {   /* the smallest phones: keep the header on one line */
  .bar .btn { padding: 0 14px; font-size: 0.88rem; }
  .logo { font-size: 1rem; gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .snow { display: none; }
}

/* ---- The owner's tree page, laid out like Deco My Tree's tree screen (user 11-22: "paylaşım kısmı, mesaj listesi,
   header seçimi my tree'ye benzer olsun"; "alttaki kar veya toprak da olsun"): the name and a gear,
   glass pills over the tree's top corners (the inbox with its count, the days left), arrows on the tree's ground only
   when its gifts fill more than one view, a cream share pill, and glass-card sheets. Gold = the site's butter. */
.ic { display: inline-grid; place-items: center; flex: none; width: 1.15em; height: 1.15em; }
.ic svg { width: 100%; height: 100%; }
.btn .ic { width: 20px; height: 20px; }
.owner-head { position: relative; z-index: 3; width: min(100% - 32px, 760px); margin: 0 auto; padding: 16px 0 0; }
.owner-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tree-switch { display: inline-flex; align-items: center; gap: 6px; min-width: 0; margin: 0; padding: 0; border: 0; background: none; color: #fff; line-height: 1.2; font-size: clamp(1.35rem, 5.8vw, 1.9rem); font-weight: 700; letter-spacing: -0.03em; text-align: left; }
.tree-switch span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tree-switch .ic { width: 22px; height: 22px; color: var(--text-2); }
.owner-head .sub { margin: 2px 0 0; color: var(--text-3); font-size: 0.92rem; text-align: left; }
.owner-head .sub b { color: var(--butter); font-weight: 600; }
/* wide screens: the name block centred over the tree, the gear at the column's right (phones keep My Tree's left-aligned row) */
@media (min-width: 760px) {
  .owner-head { text-align: center; }
  .owner-row { position: relative; justify-content: center; min-height: 46px; }
  .owner-row > .corner-btn { position: absolute; top: 50%; right: 0; transform: translateY(-50%); }
  .owner-row > .corner-btn:active { transform: translateY(-50%) scale(0.94); }
  .owner-head .sub { text-align: center; }
  .tree-switch { font-size: 2.1rem; }
}
.corner-btn { position: relative; display: grid; place-items: center; flex: none; width: 46px; height: 46px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: rgba(10, 10, 11, 0.6); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: #fff; transition: transform 0.15s, opacity 0.15s; }
.corner-btn:active { transform: scale(0.94); }
.corner-btn[disabled] { opacity: 0.32; }
.corner-btn .ic { width: 22px; height: 22px; }
.corner-btn.small { width: 36px; height: 36px; }
.corner-btn.small .ic { width: 18px; height: 18px; }
.corner-row { position: absolute; top: 10px; left: max(16px, calc(50% - 380px)); right: max(16px, calc(50% - 380px)); z-index: 4; display: flex; align-items: center; justify-content: space-between; pointer-events: none; }
.corner-row > * { pointer-events: auto; }
.corner-chip { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; background: rgba(10, 10, 11, 0.6); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: var(--butter); font-size: 0.86rem; font-weight: 700; }
.corner-chip .ic { width: 16px; height: 16px; }
.corner-row .corner-chip { height: 42px; padding: 0 14px; }
/* the inbox over the tree's top-left corner: how many wishes came, and a red NEW when some came since it was opened */
.inbox-chip { position: relative; gap: 7px; color: #fff; font-size: 0.98rem; transition: transform 0.15s, border-color 0.15s; }
.inbox-chip .ic { width: 19px; height: 19px; }
.inbox-chip:active { transform: scale(0.95); }
.inbox-chip.has-new { border-color: rgba(255, 69, 58, 0.6); }
.new-badge { position: absolute; top: -9px; right: -10px; padding: 2px 6px; border-radius: 999px; background: var(--red); color: #fff; font-size: 0.6rem; font-weight: 800; letter-spacing: 0.06em; line-height: 1.35; box-shadow: 0 0 0 2px var(--bg), 0 4px 14px rgba(255, 69, 58, 0.5); animation: badge-in 0.45s cubic-bezier(0.2, 0.9, 0.3, 1.4) 0.3s both; }
@keyframes badge-in { from { opacity: 0; transform: scale(0.4); } }
/* visitors: the tree on the hill's crest, sized so "Hang a wish" is on the first screen of a phone (user 11-22: "UI'da
   bozukluklar var, tespit et ve düzenle") */
#app > .scene:not(.owned) { --tree: clamp(200px, min(88vw, (100svh - 300px) * 0.78), 560px); --gw: max(min(100vw + 40px, var(--tree) * 3), var(--tree) * 2.4, min(100vw + 40px, 700px)); --pb: calc(var(--gh) * 0.42); padding-bottom: var(--pb); }
#app > .scene:not(.owned) .ground { bottom: calc(var(--gh) * -0.4); }
#app > .scene:not(.owned) .stage { --sw: var(--tree); }
/* the owner's tree: the visitors' hill and tree size with room over the tree for the inbox and the days left, a little
   snow under the trunk, then the share pill and the tree link, clear of the phone's toolbar (user 11-22: "butonu biraz
   yukarı almak lazım, alttaki tree link görünsün"). --pb is the snow under the trunk; the ground follows it, so the
   trunk stays on the crest. */
.scene.owned { --tree: clamp(190px, min(88vw, (100svh - 300px) * 0.78), 560px); --gw: max(min(100vw + 40px, var(--tree) * 3), var(--tree) * 2.4, min(100vw + 40px, 700px)); --pb: 66px; padding-bottom: var(--pb); -webkit-mask-image: linear-gradient(180deg, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(180deg, #000 calc(100% - 28px), transparent); }
.scene.owned .ground { bottom: calc(var(--pb) - var(--gh) * 0.82); }
.scene.owned .stage { --sw: var(--tree); margin-top: 44px; }
.scene.owned::before { width: calc(var(--tree) * 2.4); aspect-ratio: 2; }
/* ‹ › on the snow either side of the trunk, only for trees whose gifts fill more than one view (no counter, user 11-22) */
.page-nav { position: absolute; left: 50%; bottom: calc(var(--pb, 60px) - 22px); z-index: 3; display: flex; justify-content: space-between; width: min(var(--tree, 88vw), 100% - 32px); transform: translateX(-50%); pointer-events: none; }
.page-nav > * { pointer-events: auto; }
.page-nav [disabled] { visibility: hidden; }   /* only the way that goes somewhere */
.own-tree .foot { display: none; }   /* your own tree ends with the share pill and its link */
.own-tree .share-sec { padding-bottom: 24px; }
/* the organizer of a card made for someone signs it too */
.own-wish { position: relative; z-index: 3; width: min(100% - 32px, 520px); margin: 0 auto; padding-bottom: 24px; }
/* a sender's own wishes on a tree: each with Edit and Take back until the day */
.mine-list { display: grid; gap: 8px; margin: 12px 0 0; padding: 0; list-style: none; }
.mine-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255, 255, 255, 0.06); }
.mine-row .gift-tile { width: 48px; height: 48px; border-radius: 14px; }
.mine-text { display: grid; flex: 1; min-width: 0; gap: 2px; }
.mine-text b { overflow: hidden; font-size: 0.95rem; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.mine-text small { color: var(--text-3); font-size: 0.8rem; }
.mine-actions { display: flex; flex: none; gap: 12px; }
.share-sec { position: relative; z-index: 3; display: grid; justify-items: center; gap: 10px; width: min(100% - 32px, 520px); margin: -10px auto 0; padding-bottom: 8px; }
/* Your own tree fills the screen (100svh: Safari's bars showing, less the 70px top bar), and the share pill with its
   link sits in the middle of the room left under the hill (user 11-22: "share with your friends kısmını biraz daha
   aşağıya al"): lower on tall phones, right under the hill on short ones, never under Safari's bottom bar. */
.own-tree #app { display: flex; flex-direction: column; min-height: calc(100svh - 70px); }
.own-tree .share-sec { margin-top: auto; margin-bottom: auto; padding-top: 14px; }
.btn-cream { background: #f4f1e8; color: var(--ink); box-shadow: 0 8px 22px rgba(0, 0, 0, 0.45); }
.btn-cream:hover { background: #ebe7da; }
.btn-cream:active { transform: scale(0.98); }
.share-pill { width: 100%; min-height: 56px; font-size: 1.05rem; }
.link-line { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 6px 10px; border: 0; background: none; color: var(--text-3); font-size: 0.86rem; }
.link-line b { overflow: hidden; color: var(--butter); font-weight: 700; letter-spacing: 0.02em; text-overflow: ellipsis; white-space: nowrap; }
.link-line .ic { width: 16px; height: 16px; }
.new-banner { position: fixed; top: calc(12px + env(safe-area-inset-top)); left: 50%; z-index: 30; display: flex; align-items: center; gap: 4px; width: min(100% - 24px, 460px); padding: 8px 6px 8px 10px; border: 1px solid rgba(255, 69, 58, 0.4); border-radius: 20px; background: rgba(22, 22, 24, 0.95); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 14px 34px rgba(0, 0, 0, 0.5); transform: translateX(-50%); animation: drop 0.35s cubic-bezier(0.2, 0.9, 0.3, 1); }
.new-banner-in { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; padding: 0; border: 0; background: none; color: #fff; text-align: left; }
.new-banner-in b { display: block; font-size: 0.95rem; }
.new-banner-in small { color: var(--butter); font-size: 0.82rem; font-weight: 600; }
@keyframes drop { from { opacity: 0; transform: translate(-50%, -20px); } to { opacity: 1; transform: translate(-50%, 0); } }
.new-icon { position: relative; display: grid; place-items: center; flex: none; width: 42px; height: 42px; border-radius: 13px; background: rgba(255, 69, 58, 0.16); color: var(--red); }
.new-icon .ic { width: 22px; height: 22px; }
.new-icon::after { content: ''; position: absolute; top: 6px; right: 6px; width: 9px; height: 9px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 2px #161618; }
.gift-tile { display: grid; place-items: center; flex: none; width: 56px; height: 56px; border-radius: 16px; background: rgba(255, 255, 255, 0.08); }
.gift-tile img { width: 82%; height: 82%; object-fit: contain; }
.gift-tile.small { width: 42px; height: 42px; border-radius: 13px; background: rgba(255, 212, 92, 0.16); color: var(--butter); }
.gift-tile.small .ic { width: 22px; height: 22px; }
.gift-tile.big { width: 72px; height: 72px; border-radius: 22px; background: rgba(255, 212, 92, 0.14); color: var(--butter); }
.gift-tile.big .ic { width: 34px; height: 34px; }
.sheet-title { display: grid; justify-items: center; gap: 2px; text-align: center; }
.sheet-title p { margin: 0; color: var(--text-3); font-size: 0.86rem; }
.sheet-title .tag-gold, .sheet-title .tag-new { margin-top: 4px; }
.sheet-in.sheet-full { height: 100vh; height: 100dvh; max-height: none; border-radius: 0; background: linear-gradient(180deg, #17171b 0%, var(--bg) 55%); }
@media (min-width: 600px) { .sheet-in.sheet-full { height: 92vh; height: 92dvh; border-radius: 28px 28px 0 0; } }
.tag-gold { display: inline-flex; align-items: center; gap: 5px; padding: 2px 10px; border: 1px solid rgba(255, 212, 92, 0.38); border-radius: 999px; background: rgba(255, 212, 92, 0.14); color: var(--butter); font-size: 0.76rem; font-weight: 700; }
.tag-gold.big { padding: 6px 14px; font-size: 0.95rem; }
.inbox-list { display: grid; gap: 10px; margin: 14px 0 0; padding: 0; list-style: none; }
.inbox-list li { position: relative; }
.inbox-row { display: grid; grid-template-columns: 56px minmax(0, 1fr); align-items: center; gap: 12px; width: 100%; padding: 10px 52px 10px 10px; border: 1px solid var(--line); border-radius: 20px; background: rgba(255, 255, 255, 0.06); color: #fff; text-align: left; transition: background-color 0.15s; }
.inbox-row:hover { background: rgba(255, 255, 255, 0.09); }
.inbox-row .who { display: grid; gap: 2px; min-width: 0; }
.inbox-row .name { display: flex; align-items: center; gap: 6px; min-width: 0; font-size: 1rem; font-weight: 700; white-space: nowrap; }
.inbox-row .name-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.inbox-row .name .ic { width: 16px; height: 16px; color: var(--text-3); }
.inbox-row .preview { display: block; overflow: hidden; color: var(--text-3); font-size: 0.84rem; text-overflow: ellipsis; white-space: nowrap; }
.inbox-row .preview .ic { width: 13px; height: 13px; margin-right: 5px; vertical-align: -2px; }
.inbox-row .ago { flex: none; margin-left: auto; padding-left: 8px; color: var(--text-3); font-size: 0.78rem; font-weight: 500; }
.inbox-list li.is-new .inbox-row { border-color: rgba(255, 69, 58, 0.4); background: linear-gradient(90deg, rgba(255, 69, 58, 0.12), rgba(255, 255, 255, 0.05) 65%); }
.tag-glow { flex: none; padding: 1px 6px; border-radius: 6px; background: var(--butter); color: var(--ink); font-size: 0.64rem; font-style: normal; font-weight: 800; letter-spacing: 0.04em; }
.tag-new { flex: none; padding: 1px 6px; border-radius: 6px; background: var(--red); color: #fff; font-size: 0.64rem; font-style: normal; font-weight: 800; letter-spacing: 0.04em; }
.tag-new.big { padding: 3px 11px; border-radius: 999px; font-size: 0.78rem; letter-spacing: 0.02em; }
/* the inbox (user 11-22: "inbox tasarım olarak daha iyi olabilir"): why the words are hidden before the day, the new
   wishes on top under a red New, then the rest */
.inbox-body { display: grid; margin-top: 10px; }
.inbox-note { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid rgba(255, 212, 92, 0.22); border-radius: 18px; background: rgba(255, 212, 92, 0.07); text-align: left; }
.note-lock { display: grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 50%; background: rgba(255, 212, 92, 0.16); color: var(--butter); }
.note-lock .ic { width: 18px; height: 18px; }
.inbox-note b { display: block; font-size: 0.95rem; }
.inbox-note small { display: block; margin-top: 2px; color: var(--text-3); font-size: 0.82rem; line-height: 1.35; }
.inbox-group { display: flex; align-items: center; gap: 7px; margin: 20px 6px 0; color: var(--text-3); font-size: 0.74rem; font-weight: 800; letter-spacing: 0.09em; text-transform: uppercase; }
.inbox-group.is-new { color: var(--red); }
.inbox-group + .inbox-list { margin-top: 8px; }
.red-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 10px rgba(255, 69, 58, 0.7); }
.row-more { position: absolute; top: 50%; right: 8px; display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--text-3); transform: translateY(-50%); }
.row-more:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
.row-more .ic { width: 20px; height: 20px; }
.inbox-empty, .sealed { display: grid; justify-items: center; gap: 10px; padding: 40px 6px 10px; text-align: center; }
.sealed { padding-top: 6px; }
.sealed > .muted { margin: 4px 0 0; }
.inbox-empty h3, .sealed h3 { margin: 6px 0 0; font-size: 1.3rem; letter-spacing: -0.02em; }
.inbox-empty p { margin: 0; color: var(--text-2); }
.sealed .btn { margin-top: 8px; }
.share-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; margin-top: 8px; }
.platforms { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
/* Icon on top, its name under it on one line that shrinks with the screen, so a long name never moves the icons out of
   line (owner 11-22 night: "alttaki yazılar iconları itiyor"). */
.platform { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 6px; min-width: 0; padding: 10px 2px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255, 255, 255, 0.06); color: #fff; font-size: min(0.78rem, 3.1vw); font-weight: 600; line-height: 1.2; }
.platform .ic { flex: none; width: 26px; height: 26px; }
.platform span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.platform[aria-pressed='true'] { border-color: #fff; background: #fff; color: var(--ink); }
.share-card-white { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 20px 18px; border-radius: 24px; background: #fff; color: var(--ink); }
.share-card-white h3 { margin: 0; font-size: 1.15rem; letter-spacing: -0.02em; }
.share-steps { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.share-steps li { position: relative; min-width: 0; padding-left: 42px; color: #3a3a40; font-size: 0.95rem; line-height: 1.4; counter-increment: step; }
.share-steps li::before { content: counter(step); position: absolute; top: -3px; left: 0; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #111113; color: #fff; font-size: 0.9rem; font-weight: 700; }
.share-steps b { color: var(--ink); }
.link-box { display: flex; align-items: center; gap: 8px; margin-top: 8px; padding: 6px 6px 6px 14px; border-radius: 16px; background: #f2f1ee; }
.link-box span { flex: 1; min-width: 0; overflow: hidden; color: #3a3a40; font-size: 0.88rem; text-overflow: ellipsis; white-space: nowrap; }
.copy-btn { flex: none; min-height: 40px; padding: 0 16px; border: 0; border-radius: 999px; background: #111113; color: #fff; font-size: 0.9rem; font-weight: 600; transition: background-color 0.2s; }
.copy-btn.done { background: #10b981; }
.btn-ink { background: #111113; color: #fff; }
.btn-soft { background: #f2f1ee; color: var(--ink); }
.share-card-white .hint { margin: 0; color: #55555c; font-size: 0.92rem; }
.switch-list { display: grid; gap: 10px; margin: 12px 0 0; padding: 0; list-style: none; }
.switch-row { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto auto; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255, 255, 255, 0.06); color: #fff; text-decoration: none; }
.switch-row[aria-current='page'] { border-color: rgba(255, 212, 92, 0.6); }
.switch-row img { width: 48px; height: 48px; }
.switch-row .who { display: grid; min-width: 0; }
.switch-row .name { overflow: hidden; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.switch-row small { color: var(--text-3); font-size: 0.8rem; }
.switch-row .n-gifts { display: inline-flex; align-items: center; gap: 4px; color: var(--text-2); font-size: 0.9rem; font-weight: 700; }
.switch-row .n-gifts .ic { width: 16px; height: 16px; color: var(--butter); }
.tick { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--butter); color: var(--ink); }
.tick .ic { width: 16px; height: 16px; }
.tree-settings { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; margin-top: 12px; }
.set-block { padding: 16px; border: 1px solid var(--line); border-radius: 20px; background: rgba(255, 255, 255, 0.06); }
.set-block h3 { margin: 0 0 4px; font-size: 1.05rem; }
.set-block .btn { margin-top: 12px; }
.set-row { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 0 16px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255, 255, 255, 0.06); color: #fff; font-size: 1rem; font-weight: 600; text-align: left; text-decoration: none; }
.set-row > span:not(.ic) { flex: 1; }
.set-row .ic { width: 20px; height: 20px; }
.set-row.danger { color: var(--danger); }
.set-block .field { margin-top: 12px; }
/* "Continue with Google" over the email form: Google's own button, then an "or" line */
.google-row { display: grid; justify-items: center; gap: 10px; margin: 4px 0 2px; }
.google-btn { display: flex; justify-content: center; width: 100%; min-height: 44px; }
/* Apple's button in its own look (white, black logo and words), the size of Google's large pill */
.apple-btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; max-width: 400px; height: 40px; padding: 0 16px; border: 1px solid #dadce0; border-radius: 999px; background: #fff; color: #000; font: 500 15px/1 -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', Arial, sans-serif; letter-spacing: 0.01em; cursor: pointer; }
.apple-btn svg { width: 18px; height: 18px; margin-top: -2px; }
.apple-btn[disabled] { opacity: 0.7; }
.or-line { display: flex; align-items: center; gap: 12px; width: 100%; margin: 0; color: var(--text-3); font-size: 0.85rem; }
.or-line::before, .or-line::after { content: ''; flex: 1; height: 1px; background: var(--line); }

/* Reports (Community Guidelines: every tree has a Report button; the owner can report any wish): a quiet link under a
   visitor's tree, and a sheet with the reasons, optional details and, for danger, where to get help now. */
.report-line { margin: 26px auto 0; text-align: center; }
.report-line .link { display: inline-flex; align-items: center; gap: 6px; color: var(--text-3); font-size: 0.86rem; font-weight: 500; text-decoration: none; }
.report-line .link:hover { color: var(--text-2); }
.report-line .ic { width: 14px; height: 14px; }
.report-body { display: grid; gap: 10px; margin-top: 8px; text-align: left; }
.report-q { margin: 0; color: var(--text-2); font-size: 0.92rem; font-weight: 600; }
.report-reasons { display: grid; gap: 8px; }
@media (min-width: 520px) { .report-reasons { grid-template-columns: 1fr 1fr; } }
.report-reasons button { min-height: 44px; padding: 9px 14px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255, 255, 255, 0.06); color: #fff; font-size: 0.95rem; font-weight: 600; text-align: left; }
.report-reasons button[aria-checked='true'] { border-color: #fff; background: #fff; color: var(--ink); }
.report-details { height: auto; min-height: 88px; padding: 14px 16px; line-height: 1.45; resize: vertical; }
.report-urgent { margin: 0; padding: 12px 14px; border-radius: 14px; background: rgba(255, 107, 87, 0.14); color: #ffd2c9; font-size: 0.9rem; line-height: 1.45; }
.report-done { display: grid; justify-items: center; gap: 6px; padding: 18px 4px 6px; text-align: center; }
.report-done h3 { margin: 6px 0 0; font-size: 1.2rem; }
.report-done p { margin: 0; }

/* the sealed wish, as a letter on its envelope (letter.css pieces; the type colours come from body.type-*) */
.sealed-letter { justify-self: stretch; margin: 30px 2px 6px; text-align: left; }
.sealed-letter .paper .dear { margin-right: 120px; }
.hidden-msg { position: relative; min-height: 176px; background: var(--rules); }
.hidden-msg::before { content: ''; position: absolute; inset: 10px 4px 22px; border-radius: 6px; background: repeating-linear-gradient(180deg, transparent 0 13px, color-mix(in srgb, var(--ink) 34%, transparent) 13px 21px, transparent 21px 34px); filter: blur(4px); }
.lock-badge { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 6px; text-align: center; color: var(--ink); }
.lock-ring { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: var(--env); color: #fff; box-shadow: 0 6px 14px rgba(0, 0, 0, 0.25); }
.lock-ring .ic { width: 24px; height: 24px; }
.lock-badge b { font: 400 27px/1.1 var(--hand); }
.lock-badge .left { padding: 3px 12px; border-radius: 999px; background: var(--env-soft); color: var(--ink); font-size: 0.85rem; font-weight: 700; }
.sealed-letter .from { display: flex; align-items: baseline; justify-content: flex-end; gap: 8px; margin: 8px 0 0; padding-right: 30px; }
.sealed-letter .from span { color: var(--ink-soft); font: 400 22px var(--hand); }
.sealed-letter .from b { color: var(--ink); font: 400 27px var(--hand); }
/* the story picture next to its steps */
.story-row { display: grid; grid-template-columns: 112px minmax(0, 1fr); align-items: start; gap: 14px; }
.story-pic { display: grid; place-items: center; aspect-ratio: 9 / 16; overflow: hidden; border-radius: 14px; background: #17171c; box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25); }
.story-pic img { width: 100%; height: 100%; object-fit: cover; }
.story-wait { padding: 8px; color: rgba(255, 255, 255, 0.7); font-size: 0.72rem; text-align: center; }
.story-row .share-steps li { padding-left: 36px; font-size: 0.88rem; }
.story-row .share-steps li::before { width: 26px; height: 26px; font-size: 0.8rem; }

/* ---- Centred modals (user 11-22): "Save your tree" (email, then the code box) and "Your tree is ready" (link, copy,
   share, social buttons), in the site's colours: near-black card, white and cream buttons, butter accents. */
.modal { position: fixed; inset: 0; z-index: 45; display: grid; place-items: center; padding: 16px; background: rgba(0, 0, 0, 0.72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: fade 0.2s ease-out; }
.modal-card { position: relative; width: min(100%, 420px); max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); overflow-y: auto; padding: 30px 22px 22px; border: 1px solid var(--line); border-radius: 28px; background: linear-gradient(180deg, #1c1c21, #121214); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6); text-align: center; animation: pop 0.26s cubic-bezier(0.2, 0.9, 0.3, 1.1); }
@keyframes pop { from { opacity: 0; transform: scale(0.94); } to { opacity: 1; transform: none; } }
.modal-x { position: absolute; top: 12px; right: 12px; background: transparent; }
.modal-card h2 { margin: 8px 0 0; font-size: 1.6rem; font-weight: 700; letter-spacing: -0.03em; }
.modal-ic { display: inline-grid; place-items: center; width: 60px; height: 60px; border-radius: 20px; background: rgba(255, 212, 92, 0.14); color: var(--butter); }
.modal-ic .ic { width: 28px; height: 28px; }
.modal-sub { display: inline-flex; align-items: center; gap: 6px; margin: 8px 0 0; color: var(--ok); font-size: 0.86rem; font-weight: 600; }
.modal-sub .ic { width: 16px; height: 16px; }
.modal-text { margin: 10px 0 0; color: var(--text-2); font-size: 0.98rem; line-height: 1.5; }
.modal-form { display: grid; gap: 10px; margin-top: 18px; text-align: left; }
.modal-form .input { border: 1.5px solid var(--line); background: rgba(255, 255, 255, 0.06); }
.modal-form .input:focus { border-color: rgba(255, 255, 255, 0.6); }
.modal-form .input[readonly] { color: var(--text-2); }
.code-box { display: grid; gap: 8px; }
.code-box[hidden] { display: none; }
.code-note { margin: 2px 2px 0; color: var(--text-2); font-size: 0.88rem; }
.modal-form .code-input { letter-spacing: 0.4em; text-align: center; font-size: 1.3rem; font-weight: 700; }
.modal-later { margin-top: 12px; color: var(--text-3); font-size: 0.92rem; }
/* email and password (account.js): the eye shows the password, sign-in and "Forgot password?" one tap away */
.account-form { width: 100%; }
.account-form .modal-form { margin-top: 14px; }
.pw-wrap { position: relative; }
.pw-wrap .input { padding-right: 56px; }
.pw-eye { position: absolute; top: 50%; right: 6px; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--text-3); transform: translateY(-50%); }
.pw-eye:hover, .pw-eye[aria-pressed='true'] { color: #fff; }
.pw-eye .ic { width: 20px; height: 20px; }
.pw-hint { margin: -2px 4px 0; color: var(--text-3); font-size: 0.8rem; text-align: left; }
.account-switch { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 8px; margin: 12px 0 0; color: var(--text-3); font-size: 0.9rem; }
.account-switch .link { color: #fff; font-weight: 600; }
.account-switch [hidden] { display: none; }
.dot-sep { margin-right: 8px; color: var(--text-3); }
.account-lead { margin: 6px 0 0; color: var(--text-2); font-size: 0.95rem; }
.narrow .account-form .modal-form .input { border: 1.5px solid var(--line); background: rgba(255, 255, 255, 0.06); }
.signin-new { margin-top: 22px; }
.modal-terms { margin: 12px 0 0; color: var(--text-3); font-size: 0.8rem; line-height: 1.5; }
.modal-terms a { color: var(--text-2); }
/* Step 5: the terms right under the Save button, on one line at any phone width (owner 11-22 night). */
.modal-terms.one-line { margin-top: 2px; overflow: hidden; font-size: min(0.8rem, 2.85vw); text-overflow: ellipsis; white-space: nowrap; text-wrap: nowrap; }
.ready-art { position: relative; width: 132px; margin: 0 auto; }
.ready-art img:first-child { display: block; width: 100%; }
.ready-art .topper { width: 22%; }
.link-field { display: flex; align-items: center; gap: 10px; width: 100%; margin-top: 18px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255, 255, 255, 0.04); color: #fff; font-size: 1rem; text-align: left; }
.link-field span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.link-field .ic { width: 20px; height: 20px; color: var(--text-3); }
.modal-actions { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 10px; margin-top: 10px; }
.modal-actions .btn { min-height: 54px; padding: 0 16px; }
.btn-outline { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-outline:hover { box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.5); }
.social-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.social { display: grid; justify-items: center; gap: 6px; min-width: 0; color: var(--text-2); font-size: 0.7rem; text-decoration: none; }
.social > span:last-child { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.social-ic { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; color: #fff; transition: transform 0.15s; }
.social:active .social-ic { transform: scale(0.94); }
.social-ic svg { width: 26px; height: 26px; }
.ready-actions { display: grid; gap: 10px; width: min(100%, 420px); margin: 6px auto 0; }
.ready-save { margin-top: 14px; }
/* create flow: occasion tabs over the tree picker, the chosen tree over the date, a short save step */
/* the occasion as one segmented control: one line per label at phone width */
.choice.occasion-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; width: min(100%, 420px); margin: 14px auto 0; padding: 4px; border-radius: 999px; background: var(--bg-2); }
.choice.occasion-tabs button { min-height: 40px; padding: 6px 4px; border-radius: 999px; background: transparent; font-size: 0.9rem; white-space: nowrap; transition: background-color 0.2s, color 0.2s; }
.choice.occasion-tabs button[aria-pressed='true'] { background: #fff; color: var(--ink); }
.sub .line { display: inline-block; }   /* a sentence per line when the text has to wrap */
/* step 3: the chosen tree on its hill, as close as in step 2 (user 11-22: "opening day'de çok uzakta") */
.when-preview { margin-top: 2px; }
.save-step { display: grid; justify-items: center; gap: 10px; width: min(100%, 420px); margin: 18px auto 0; text-align: center; }
.save-step .modal-form { width: 100%; margin-top: 8px; }
.save-text { margin: 0; color: var(--text-2); font-size: 0.98rem; line-height: 1.5; }
.save-text b { color: #fff; }
/* no lone last words in short centred copy */
.modal-text, .modal-terms, .save-text, .ready-save p { text-wrap: balance; }
.save-email { display: block; margin: 2px 0; color: #fff; font-weight: 700; }
.save-step .code-note { text-align: center; }
.set-block .choice button:not([aria-pressed='true']) { background: rgba(255, 255, 255, 0.08); }
/* the wish letter in the sheet: shorter lines on short screens so "Hide my name" never sits under the Next button */
.sheet .paper textarea { min-height: clamp(150px, 100svh - 550px, 238px); }
/* the message a WhatsApp or X share will carry, as a bubble on the white share card */
.share-text { margin: 0; padding: 14px; border-radius: 16px; background: #f2f1ee; color: #3a3a40; font-size: 0.92rem; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
@media (max-height: 640px) {   /* short phones (iPhone SE in Safari): a smaller tree and strip so nothing hides under Next */
  .pick-preview { --tree: clamp(120px, min(70vw, 100svh - 440px), 330px); }
  .pick-preview.with-tabs { --tree: clamp(120px, min(70vw, 100svh - 470px), 330px); }
  .pick-preview.when-preview { --tree: clamp(120px, min(70vw, 100svh - 450px), 330px); }
  .flow { padding-top: 8px; }
  .strip { gap: 8px; margin-top: 4px; padding-top: 4px; padding-bottom: 6px; }
  .type-list { gap: 8px; margin-top: 12px; }
  .type-card { gap: 12px; padding: 8px 12px 8px 8px; border-radius: 18px; }
  .type-pic { width: 58px; height: 58px; border-radius: 14px; }
  .type-text b { font-size: 1.05rem; }
  .type-text span { font-size: 0.84rem; line-height: 1.3; }
  .pick-stage .pick-arrow { width: 38px; height: 38px; margin-top: -19px; }
  .strip button { width: 66px; padding: 6px; }
  .picking .flow-head .title, .when .flow-head .title, .typing .flow-head .title { font-size: 1.65rem; }
  .choice.occasion-tabs { margin-top: 8px; }
  .choice.occasion-tabs button { min-height: 36px; }
  .pick-preview { margin-top: 0; }
  .save-step { margin-top: 6px; gap: 6px; }   /* step 4: the form and "Not now" on the first screen */
  .save-step .modal-ic, .save-step .pw-hint { display: none; }
}
/* sign-in (user 11-22: "çok boşluk var"): the page fills the screen with the footer at the bottom, the form sits in the
   middle, and a wish tree on its meadow stands over it, sized from the screen height */
.page-auth { display: flex; flex-direction: column; min-height: 100svh; }
.page-auth main { flex: 1; display: grid; align-content: center; }
.page-auth .narrow { padding-top: 4px; }
.page-auth .foot { margin-top: 28px; }
.auth-art { --tree: clamp(150px, min(56vw, 100svh - 500px), 250px); --gw: max(min(100vw + 40px, var(--tree) * 3), var(--tree) * 2.4, min(100vw + 40px, 700px)); margin: 0 calc(50% - 50vw) 10px; padding-bottom: calc(var(--gh) * 0.42); -webkit-mask-image: linear-gradient(180deg, #000 calc(100% - 36px), transparent); mask-image: linear-gradient(180deg, #000 calc(100% - 36px), transparent); }
.auth-art .ground { bottom: calc(var(--gh) * -0.4); }
.auth-art .stage { --sw: var(--tree); }
.auth-art::before { width: calc(var(--tree) * 2.4); aspect-ratio: 2; }
@media (max-height: 640px) {   /* sign-in on short phones: a smaller tree so "Forgot password?" stays on the first screen */
  .auth-art { --tree: clamp(96px, min(56vw, 100svh - 500px), 250px); margin-bottom: 4px; }
}
