@font-face {
  font-family: Margo;
  src: url('./assets/fonts/NotoSans-Regular.ttf') format('truetype');
  font-weight: 400 500;
  font-display: swap;
}
@font-face {
  font-family: Margo;
  src: url('./assets/fonts/NotoSans-Bold.ttf') format('truetype');
  font-weight: 600 900;
  font-display: swap;
}
:root {
  color-scheme: light;
  --ink: #331828;
  --muted: #614758;
  --rose: #9c255a;
  --paper: #fff8f9;
  --line: #d9c1cb;
  font: 100%/1.55 Margo, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
button, input { font: inherit; }
a { color: var(--rose); text-underline-offset: .2em; }
a, button { touch-action: manipulation; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid #a24172; outline-offset: 4px; }
.access-layout {
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  max-width: 1720px;
  margin: 0 auto;
  padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
}
.bloom-poster {
  min-width: 0;
  min-height: 36rem;
  overflow: hidden;
  isolation: isolate;
  position: relative;
  background: radial-gradient(ellipse at 87% 1%, #ffefe7 2%, transparent 52%), linear-gradient(150deg,#ffc5c4 0%,#ffabc8 56%,#c983b3 100%);
  border-radius: 2.2rem .7rem 2.2rem .7rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.bloom-poster::before {
  position: absolute;
  content: '';
  width: 110%;
  aspect-ratio: 1;
  border-radius: 45% 55% 57% 43%;
  border: 1px solid #fff7f8a6;
  transform: translate(-47%, 58%) rotate(18deg);
  pointer-events: none;
}
.wordmark { color: var(--ink); font-family: Georgia, 'Times New Roman', serif; font-weight: bold; font-size: 2.8rem; letter-spacing: -.12em; line-height: 1; }
.wordmark span { color: var(--rose); }
.bloom-poster>.wordmark { position: absolute; z-index: 2; top: 2rem; left: 2.3rem; }
.garden { position: relative; width: 92%; aspect-ratio: 1; display: grid; place-items: center; }
.garden-orbit { position: absolute; border: 1px solid #90305f61; border-radius: 50%; pointer-events: none; }
.orbit-outer { width: 105%; height: 46%; transform: rotate(-28deg); }
.orbit-inner { width: 78%; height: 78%; border-color: #90305f38; }
.orbit-cross { width: 46%; height: 103%; transform: rotate(-44deg); border-color: #fffbf8a3; }
.flower-button { display: grid; place-items: center; width: 70%; aspect-ratio: 1; border-radius: 50%; border: 0; background: none; padding: 0; z-index: 1; }
.flower-float { display: block; width: 100%; animation: access-float 6.8s ease-in-out infinite; }
.flower-hero { display: block; width: 100%; height: auto; filter: drop-shadow(9px 18px 4px #96365630); animation: access-turn 41s linear infinite; }
.flower-button:hover .flower-hero { filter: drop-shadow(12px 22px 5px #9636563d); }
.flower-button.is-blooming { animation: access-bloom 1.2s ease-in-out; }
.orbiting-flower { position: absolute; display: block; }
.orbiting-flower img { width: 100%; height: auto; display: block; animation: access-turn 24s linear infinite reverse; }
.orbiting-small { width: 17%; right: 5%; top: 16%; animation: access-float 4.7s ease-in-out infinite reverse; }
.orbiting-tiny { width: 10%; left: 9%; bottom: 12%; animation: access-float 5.2s ease-in-out infinite; }
.garden-star { position: absolute; color: #66284f; line-height: 1; animation: access-twinkle 4s ease-in-out infinite; }
.star-one { left: 14%; top: 18%; font-size: 2rem; }
.star-two { right: 17%; bottom: 13%; font-size: 2.4rem; animation-delay: -2s; }
.star-three { right: 6%; top: 54%; font-size: 1rem; animation-delay: -.7s; }
.bloom-note { position: absolute; inset-inline: 10%; bottom: 10%; margin: 0; font-size: .92rem; color: #54213e; text-align: center; }
.access-content { min-width: 0; padding: clamp(2rem,6vw,7rem) clamp(1.5rem,6vw,6rem) 1rem; display: flex; flex-direction: column; justify-content: center; }
.access-panel, .access-footer { width: 100%; max-width: 30rem; margin-inline: auto; }
.access-panel { margin-block: auto; }
.access-panel.is-arriving { animation: access-appear .34s ease-out both; }
.mode-choices { display: inline-flex; padding: .24rem; gap: .12rem; border-radius: 2rem; background: #f1e5eb; }
.mode-choices button { border: 0; border-radius: 2rem; padding: .55rem 1.1rem; min-height: 2.65rem; background: transparent; color: #654858; font-size: .9rem; }
.mode-choices button[aria-pressed='true'] { color: var(--ink); background: #fffcfc; box-shadow: 0 2px 7px #4e1f3a1c; }
h1 { color: var(--ink); font-weight: 500; line-height: 1.08; font-size: clamp(2.15rem,4.4vw,3.6rem); letter-spacing: -.062em; overflow-wrap: anywhere; margin: 1.65rem 0 1.8rem; }
.access-description { color: var(--muted); margin: -1rem 0 1.6rem; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.field-row { margin: 0 0 1.05rem; }
.field-row>label { display: block; font-size: .9rem; font-weight: 600; margin-bottom: .42rem; }
.field-row input { width: 100%; min-width: 0; border: 1px solid #cdb2bf; border-radius: .8rem; padding: .85rem 1rem; font-size: 1rem; background: #fff; color: var(--ink); min-height: 3.2rem; }
.field-row input:focus { outline: 2px solid #a33b6e; outline-offset: 1px; }
.field-row input[aria-invalid='true'] { border-color: #a02b40; }
.password-wrap { display: flex; align-items: stretch; border: 1px solid #cdb2bf; background: #fff; border-radius: .8rem; }
.password-wrap:focus-within { outline: 2px solid #a33b6e; outline-offset: 1px; }
.password-wrap input, .password-wrap input:focus { border: 0; outline: 0; background: transparent; }
.reveal, .quiet-button { border: 0; background: none; color: var(--rose); font-size: .9rem; }
.reveal { padding-inline: .9rem; border-radius: .7rem; }
.field-hint { font-size: .82rem; color: var(--muted); margin: .35rem 0 0; }
.policy-check { display: flex; gap: .7rem; align-items: flex-start; margin: 1.2rem 0 1.4rem; font-size: .88rem; color: var(--muted); }
.policy-check input { accent-color: #913256; flex: 0 0 auto; width: 1.12rem; height: 1.12rem; margin: .15rem 0; }
.form-error, .form-status { border-inline-start: 3px solid #a52e4d; border-radius: .35rem; padding: .65rem 1rem; font-size: .9rem; color: #762138; background: #ffe5e9; }
.form-status { color: #334f39; border-color: #68845f; background: #e8f0df; }
.primary-button, .telegram-button { min-height: 3.2rem; display: flex; align-items: center; justify-content: center; gap: .7rem; width: 100%; padding: .78rem 1.2rem; border-radius: .9rem; font-weight: 600; transition: background .15s, transform .15s; text-align: center; }
.primary-button { border: 1px solid var(--ink); background: var(--ink); color: white; }
.primary-button:hover { background: #54233e; }
.primary-button:active, .telegram-button:active { transform: scale(.985); }
.primary-button:disabled, fieldset:disabled button { opacity: .68; cursor: wait; }
.access-links { display: flex; justify-content: center; flex-wrap: wrap; gap: .25rem 1rem; }
#access-code { font-family: ui-monospace, monospace; font-variant-numeric: tabular-nums; letter-spacing: .24em; }
.quiet-button { min-height: 2.8rem; text-decoration: underline; text-underline-offset: 4px; }
.divider { display: flex; align-items: center; gap: .8rem; font-size: .8rem; color: var(--muted); margin: .7rem 0; }
.divider::before, .divider::after { content: ''; height: 1px; background: var(--line); flex: 1; }
.telegram-button { text-decoration: none; color: var(--ink); background: #fff; border: 1px solid #d2b6c5; }
.telegram-button:hover { background: #f6eaf0; }
.paper-plane { width: 1.35rem; height: 1.35rem; background: #317799; clip-path: polygon(0 53%,100% 8%,80% 92%,48% 66%,37% 80%,35% 63%,77% 30%,29% 57%); }
.access-footer { padding-top: clamp(2rem,5vw,5.5rem); text-align: center; font-size: .82rem; }
.access-footer a { color: var(--muted); }
.privacy-page { background: var(--paper); }
.policy-layout { width: min(100% - 2rem, 48rem); margin-inline: auto; padding-block: clamp(1.2rem,5vw,4rem); }
.policy-heading { display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.policy-heading .wordmark { font-size: 2.2rem; }
.policy-heading a { font-size: .9rem; }
.policy-layout article { margin-top: clamp(2.3rem,7vw,5rem); }
.policy-layout h1 { margin-bottom: 1rem; max-width: 42rem; }
.policy-layout .summary { font-size: 1.1rem; color: var(--muted); margin-bottom: 2.2rem; }
.policy-layout h2 { font-size: 1.3rem; font-weight: 600; line-height: 1.3; margin: 2rem 0 .5rem; }
.policy-layout p, .policy-layout ul { margin: .5rem 0 1rem; }
.policy-layout li { margin: .4rem 0; }
.policy-layout section { border-top: 1px solid var(--line); padding-bottom: .4rem; }
.policy-layout [id^='operator-'] { overflow-wrap: anywhere; }
@keyframes access-turn { to { transform: rotate(360deg); } }
@keyframes access-float { 0%,100% {transform: translateY(0) rotate(-4deg)} 50% {transform: translateY(-9px) rotate(3deg)} }
@keyframes access-twinkle { 0%,100% {transform: scale(.75) rotate(-12deg); opacity: .62} 50% {transform: scale(1.06) rotate(8deg); opacity: 1} }
@keyframes access-bloom { 0%,100% {transform: scale(1)} 45% {transform: scale(1.12) rotate(15deg)} 70% {transform: scale(.97) rotate(-5deg)} }
@keyframes access-appear { from {transform: translateY(.45rem); opacity: .55} to {transform: translateY(0); opacity: 1} }
@media(max-width: 760px) {
  .access-layout { grid-template-columns: minmax(0,1fr); min-height: 100svh; padding: 0; }
  .bloom-poster { min-height: 0; height: clamp(7rem,22vw,10rem); border-radius: 0 0 2rem .25rem; justify-content: flex-end; }
  .bloom-poster>.wordmark { top: calc(1.25rem + env(safe-area-inset-top)); left: max(1.4rem, env(safe-area-inset-left)); font-size: 2.4rem; }
  .garden { width: 13rem; margin-inline-end: 9%; }
  .flower-button { width: 50%; }
  .garden-orbit { opacity: .65; }
  .bloom-note { bottom: .6rem; inset-inline: 1.4rem auto; max-width: 44%; font-size: .78rem; }
  .access-content { padding: 1.6rem max(1.25rem,env(safe-area-inset-right)) max(1rem,env(safe-area-inset-bottom)) max(1.25rem,env(safe-area-inset-left)); }
  .access-footer { padding-top: 2rem; }
}
@media(max-width: 365px) {
  .access-content { padding-inline: 1rem; }
  .garden { width: 10rem; margin-inline-end: 5%; }
  .reveal { padding-inline: .55rem; font-size: .8rem; }
}
@media(prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Embedded hosts can set their own foreground and WebKit text fill on every
   label, control and paragraph. Pair each actual surface with its own ink. */
.access-layout, .policy-layout { color-scheme: only light; background-color: #fff8f9; color: #331828; }
.access-layout *, .policy-layout * { -webkit-text-fill-color: currentColor !important; }
.access-panel h1, .access-panel .field-row label, .access-panel input,
.access-panel .telegram-button, .access-layout .wordmark,
.policy-layout .wordmark, .policy-layout h1, .policy-layout h2,
.policy-layout p, .policy-layout ul, .policy-layout li, .policy-layout small { color: #331828 !important; }
.access-layout .access-description, .access-layout .field-hint, .access-layout .policy-check span,
.access-layout .divider span, .access-layout .access-footer a, .policy-layout .summary { color: #614758 !important; }
.access-layout .wordmark span, .policy-layout .wordmark span, .access-panel .policy-check a,
.access-panel .quiet-button, .access-panel .reveal, .policy-layout a { color: #85214d !important; }
.access-panel .mode-choices button { color: #614758 !important; }
.access-panel .mode-choices button[aria-pressed='true'] { color: #331828 !important; background: #fffcfc; }
.access-panel .primary-button { color: #fff !important; background: #331828 !important; }
.access-panel .form-error { color: #762138 !important; background: #ffe5e9 !important; font-weight: 600; }
.access-panel .form-status { color: #304832 !important; background: #e8f0df !important; }
.access-panel .field-row input::placeholder { color: #725866; opacity: 1; }

.access-tools {display:grid;grid-template-columns:minmax(0,1fr) auto;gap:.6rem;align-items:center}
.access-tools .mode-choices {justify-self:start;min-width:0;max-width:100%}
.access-tools .mode-choices button {min-width:0;overflow-wrap:anywhere}
.access-language {grid-column:2;grid-row:1}
.access-layout[dir=rtl] .form-error,.access-layout[dir=rtl] .form-status {text-align:start}
@media (max-width:440px){.access-tools {gap:.4rem}.access-tools .mode-choices button{padding-inline:.62rem}.access-panel h1{overflow-wrap:anywhere}}
