@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Italiana&display=swap');

:root { color-scheme: light; --paper: #fbf6f2; --ink: #382329; --muted: #816c73; --accent: #8c3349; --line: #e9dbd9; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: 'DM Sans', sans-serif; -webkit-font-smoothing: antialiased; }
body::before { content: ''; position: fixed; inset: 0; z-index: -1; background: radial-gradient(ellipse at 50% 3%, #ecd0d780 0, transparent 55%), radial-gradient(ellipse at 95% 95%, #eddfce70 0, transparent 45%); }
button, input { font: inherit; }
a { color: inherit; }
button, a, summary { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
.page { min-height: 100svh; width: min(100%, 460px); padding: max(64px, env(safe-area-inset-top)) 28px max(28px, env(safe-area-inset-bottom)); margin: auto; display: flex; flex-direction: column; }
.profile, .gate { text-align: center; margin: auto 0; padding: 24px 0 56px; }
.portrait { position: relative; width: 154px; height: 154px; margin: 0 auto 38px; border: 1px solid #d8b9c0; border-radius: 50%; padding: 5px; }
.portrait img, .photo-placeholder { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.portrait img { object-position: 50% 28%; }
.photo-placeholder { display: grid; place-items: center; background: #eddde0; }
.photo-placeholder svg { width: 72px; fill: none; stroke: #b9959f; stroke-width: 1; }
.portrait-spark { position: absolute; right: -5px; bottom: 7px; border-radius: 50%; font-size: 34px; width: 38px; line-height: 38px; background: var(--paper); color: var(--accent); }
.eyebrow { font-size: 9px; font-weight: 600; letter-spacing: 2.5px; margin: 0 0 15px; color: var(--muted); }
h1 { font-family: 'Italiana', Georgia, serif; font-weight: 400; font-size: clamp(44px, 11vw, 60px); line-height: 1.1; letter-spacing: -1.6px; margin: 0; overflow-wrap: anywhere; }
.tagline { margin: 15px 0 38px; font-size: 15px; color: var(--muted); }
.primary { width: 100%; min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 25px; border: 0; border-radius: 18px; background: var(--accent); color: white; font-size: 15px; font-weight: 600; text-decoration: none; box-shadow: 0 9px 25px #74324b16; transition: transform .18s, filter .18s; cursor: pointer; }
.primary:hover { filter: brightness(1.08); transform: translateY(-2px); }
.primary svg { width: 21px; height: 21px; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.primary:disabled { opacity: .45; cursor: default; justify-content: center; transform: none; }
.micro { font-size: 11px; color: var(--muted); line-height: 1.6; margin: 13px 0 0; }
.browser-help { margin-top: 25px; padding: 12px; border: 0; background: none; font-size: 12px; line-height: 1.8; color: var(--muted); cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }
.browser-dialog { position: fixed; inset: 100px 0 20px; width: min(420px, calc(100% - 32px)); height: fit-content; max-height: calc(100svh - 120px); max-height: calc(100dvh - 120px); margin: auto; padding: 52px 26px 25px; border: 1px solid var(--line); border-radius: 26px; background: var(--paper); color: var(--ink); box-shadow: 0 24px 80px #25141c38; }
.browser-dialog::backdrop { background: #21191eb8; backdrop-filter: blur(5px); }
.dialog-close { position: absolute; top: 5px; right: 6px; width: 44px; height: 44px; border: 0; background: none; font-size: 28px; color: var(--muted); cursor: pointer; }
.menu-hint { position: fixed; top: 6px; right: max(17px, env(safe-area-inset-right)); display: flex; align-items: flex-end; gap: 9px; color: var(--paper); pointer-events: none; filter: drop-shadow(0 2px 5px #21191e50); }
.menu-hint span { padding-bottom: 2px; font-size: 14px; font-weight: 500; }
.menu-hint strong { font-size: 20px; letter-spacing: 2px; }
.menu-hint svg { width: 52px; height: 64px; overflow: visible; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.browser-dialog .eyebrow { font-size: 9px; }
.browser-dialog h2 { margin: 0 0 16px; font-size: 25px; line-height: 1.2; letter-spacing: -.6px; }
.browser-dialog p, .browser-steps { font-size: 14px; line-height: 1.65; }
.browser-dialog #browser-description { color: var(--muted); }
.browser-steps { padding-left: 23px; margin: 22px 0 12px; }
.browser-steps li { padding-left: 6px; margin-bottom: 16px; }
.browser-steps li::marker { color: var(--accent); font-weight: 700; }
.browser-dialog .menu-note { font-size: 11px; color: var(--muted); margin: 0 0 24px; }
.browser-retry { min-height: 56px; padding: 17px 19px; font-size: 13px; }
.browser-dialog .text-button { display: block; margin: 10px auto 0; font-size: 13px; min-height: 44px; }
.browser-dialog .copy-status { font-size: 12px; color: var(--muted); text-align: center; }
.text-button { border: none; background: none; padding: 10px; color: var(--accent); cursor: pointer; }
.copy-status:empty { display: none; }
.copy-fallback { width: 100%; padding: 10px; border: 1px solid var(--line); border-radius: 8px; background: white; }
footer { text-align: center; color: var(--muted); font-size: 10px; letter-spacing: .3px; }
footer span { display: block; font-size: 24px; color: #bd96a0; margin-bottom: 10px; }
.age-mark { margin: 0 auto 30px; width: 78px; height: 78px; display: flex; align-items: center; justify-content: center; border: 1px solid #dbbbc3; border-radius: 50%; font-family: 'Italiana', Georgia, serif; font-size: 36px; color: var(--accent); }
.age-mark span { font-size: 24px; }
.gate h1 { font-family: 'DM Sans', sans-serif; font-size: clamp(27px, 7vw, 32px); font-weight: 600; line-height: 1.25; letter-spacing: -.7px; }
.gate-description { max-width: 295px; margin: 23px auto 30px; font-size: 14px; line-height: 1.8; color: var(--muted); }
.leave { display: inline-block; min-height: 48px; padding: 16px; margin-top: 12px; border: 0; background: none; cursor: pointer; font-size: 13px; color: var(--muted); text-decoration: underline; text-underline-offset: 4px; }
.gate-status:empty { display: none; }
@media (max-width: 360px) { .page { padding-inline: 22px; } .eyebrow { letter-spacing: 1.7px; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
