/* The approved desktop styles provide shared colors, cards, motion, and forms.
   Only this local variant changes its composition with the viewport. */
html,body { min-width:320px; }
.page-shell { width:100%; padding-inline:clamp(22px,4vw,56px); }
.hero {
  --deck-width:366px;
  grid-template-columns:minmax(0,480px) minmax(0,1fr);
  grid-template-rows:1fr auto auto 1fr;
  grid-template-areas:'. profiles' 'headline profiles' 'action profiles' '. profiles';
  column-gap:24px;
  row-gap:0;
}
.hero-copy { grid-area:headline; display:flex; flex-direction:column; align-items:flex-start; min-width:0; }
.hero-location { margin-bottom:20px; padding:8px 12px; font-size:12px; }
.hero-location .icon { width:16px; height:16px; fill:var(--pink); stroke:var(--pink); }
.hero-location .icon use { stroke-width:1.5; }
.hero h1 { min-width:0; }
.hero-copy .intro { max-width:390px; margin-top:22px; font-size:19px; line-height:1.5; }
.hero-action { grid-area:action; min-width:0; }
.discovery { grid-area:profiles; width:100%; }
.deck,.deck-stage { width:var(--deck-width); height:calc(var(--deck-width) * 478 / 366); }
.deck-intro,.swipe-controls { width:var(--deck-width); }
.discovery .location-art { top:calc(var(--deck-width) * 239 / 366 + 23px + var(--deck-intro-space)); }
.click-guide { left:calc(50% + 52px); }
.card-activity { display:inline-flex; align-items:center; gap:6px; max-width:100%; padding:8px 10px; border:1px solid #ffffff35; border-radius:24px; background:#23152565; backdrop-filter:blur(12px); color:#fff; font:500 11px/1.3 'Albert Sans',sans-serif; white-space:nowrap; }
.card-activity .activity-dot { width:6px; height:6px; background:#80eaa5; box-shadow:0 0 8px #80eaa54d; }
.card-heading { display:flex; align-items:center; flex-wrap:wrap; gap:8px; min-width:0; }
.card-heading h2 { margin:0; line-height:1.2; }
.card-category { display:inline-flex; align-items:center; gap:6px; flex:0 0 auto; width:fit-content; margin-top:2px; padding:6px 10px; border:1px solid #ffffff45; border-radius:20px; background:#23152575; color:#fff; font:500 13px/1.3 'Albert Sans',sans-serif; white-space:nowrap; backdrop-filter:blur(10px); }
.card-category .icon { width:15px; height:15px; flex:0 0 15px; color:#ff8cba; }
.card-bio { display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; overflow:hidden; margin:8px 0 0; font:400 15px/1.4 'Albert Sans',sans-serif; color:#fff; text-wrap:pretty; }
.card-swipe-hint { display:none; }
[data-input=swipe] .click-guide { display:none; }
[data-input=swipe] .card-swipe-hint {
  display:flex; align-items:center; justify-content:center; gap:8px;
  position:absolute; left:50%; top:50%; z-index:2;
  width:max-content; max-width:calc(100% - 24px); margin:0; padding:9px 12px;
  border:1px solid #ffffff26; border-radius:14px; background:#20152766;
  backdrop-filter:blur(5px); color:#fff; font:500 12px/20px 'Albert Sans',sans-serif;
  opacity:0; transform:translate(-50%,calc(-50% + 4px)); transition:opacity .4s,transform .4s;
  pointer-events:none;
}
[data-input=swipe] .card-swipe-hint.is-visible { opacity:1; transform:translate(-50%,-50%); }
.card-swipe-hint .icon { width:25px; height:25px; stroke-width:1.4; transform-origin:center 65%; }
.card-swipe-hint.is-visible .icon { animation:swipe-hand-pulse 1.6s ease-in-out 3; }
@keyframes swipe-hand-pulse { 0%,100% { transform:scale(1); } 50% { transform:scale(1.14); } }
.footer-information>summary { list-style:none; }
.footer-information>summary::-webkit-details-marker { display:none; }
.footer-information a,.footer-contact a { overflow-wrap:anywhere; }
.footer-links-desktop { display:flex; align-items:center; justify-content:center; gap:16px; }
.footer-links-mobile { display:none !important; }
.footer-information-desktop { position:relative; width:max-content; margin:0; text-align:center; }
.footer-information-desktop>summary { display:inline-flex !important; align-items:center; justify-content:center; gap:8px; min-height:38px; padding:0 14px; border:0; border-radius:8px; color:var(--ink); cursor:pointer; font-weight:600; list-style:none; text-decoration:underline; text-underline-offset:3px; }
.footer-information-desktop>summary::-webkit-details-marker { display:none; }
.footer-information-desktop>summary::after { content:''; width:7px; height:7px; border-right:1.5px solid currentColor; border-bottom:1.5px solid currentColor; transform:translateY(-2px) rotate(45deg); }
.footer-information-desktop[open]>.footer-information-links { position:absolute; z-index:30; left:50%; bottom:calc(100% + 8px); transform:translateX(-50%); display:flex; flex-direction:column; align-items:stretch; width:max-content; max-width:min(360px,90vw); max-height:60vh; overflow-y:auto; margin:0; padding:8px; gap:0; border:0; border-radius:12px; background:var(--surface); box-shadow:0 12px 30px #24152b20; }
.footer-information-desktop:not([open])>.footer-information-links { display:none !important; }
.footer-information-desktop>.footer-information-links a { display:block; padding:8px 12px; text-align:left; }
.footer-information-links .data-credit { font-size:9px; color:var(--faint); }
.footer-information-links .data-credit-group { display:flex; flex-direction:row; justify-content:center; flex-wrap:wrap; gap:4px 10px; }
.footer-flex { display:flex; flex-wrap:wrap; justify-content:center; align-items:center; gap:10px 20px; margin-bottom:12px; line-height:1.5; }
.footer-company { margin:0px auto 0; }
.footer-company p { margin:0 0 10px; line-height:1.6; }
.footer-copyright { display:block; width:100%; }
.footer-links-desktop .footer-copyright { display:inline-block; width:auto; margin:0; }
#prototype-note { text-align:center; font-family:'Albert Sans',sans-serif; margin:20px 0 24px; }

/* Landscape tablets keep two columns, with proportionate cards and type. */
@media (min-width:900px) and (max-width:1199px) {
  .page-shell { padding-inline:36px; }
  .hero { --deck-width:clamp(296px,32vw,366px); grid-template-columns:minmax(0,1fr) minmax(0,1fr); padding-top:20px; }
  h1 { font-size:clamp(48px,5.1vw,63px); letter-spacing:-2.5px; }
  .city-map-label { left:calc(50% - 170px); }
  .card-info h2 { font-size:29px; }
  .card-info h2 span { font-size:25px; }
}

/* Portrait tablets and phones follow the mobile reading order. */
@media (max-width:899px) {
  .page-shell { max-width:760px; padding-inline:32px; }
  .site-header { height:auto; justify-content:center; padding:34px 0 42px; }
  .brand { width:140px; }
  .hero { --deck-width:330px; display:flex; flex-direction:column; gap:0; max-width:620px; min-height:0; padding:0 0 120px; text-align:center; }
  .hero-copy { order:0; width:100%; align-items:center; }
  .hero-location { margin-bottom:22px; }
  .hero h1 { order:0; width:100%; font-size:clamp(48px,7.2vw,60px); line-height:1.08; letter-spacing:-2.3px; }
  .hero-copy .intro { max-width:360px; margin-top:22px; font-size:18px; }
  .discovery { order:1; margin-top:48px; --deck-intro-space:46px; }
  .deck-intro { margin-bottom:24px; }
  .deck-intro h2 { font-size:16px; letter-spacing:-.2px; }
  .discovery .location-art { width:640px; height:640px; top:calc(var(--deck-width) * 239 / 366 + var(--deck-intro-space)); }
  .city-map-label { display:none; }
  .map-scene-city { display:block; }
  .swipe-controls { grid-template-columns:70px 70px; padding-top:42px; column-gap:32px; }
  .choice-button { min-width:70px; }
  .choice-button>.choice-disc { width:70px; height:70px; }
  .hero-action { order:2; width:100%; margin-top:44px; align-items:center; }
  .hero-action .join-button { width:100%; max-width:335px; min-width:0; }
  .nearby-proof { margin-bottom:28px; }
  .site-footer { padding-top:24px; }
  .footer-links-desktop { display:none !important; }
  .footer-links-mobile { display:flex !important; flex-direction:row; align-items:center; justify-content:center; gap:12px; margin:0 0 0px; }
  .footer-links-mobile a { display:flex; align-items:center; justify-content:center; min-height:38px; line-height:1.5; padding:6px 4px; }
  .footer-copyright { width:auto; margin:0; }
  .footer-company { margin-top:0px; }
  .footer-top { margin-bottom:0; flex-direction:column; gap:16px; font-size:10px; line-height:1.5; }
  .footer-information { width:auto; margin:0; }
  .footer-information>summary { display:flex; align-items:center; justify-content:center; gap:6px; min-height:44px; font-size:12px; text-decoration:underline; text-underline-offset:3px; cursor:pointer; }
  .footer-information>summary .icon { width:12px; height:12px; transform:rotate(90deg); }
  .footer-information[open]>summary .icon { transform:rotate(-90deg); }
  .footer-information nav { flex-direction:column; align-items:center; margin:12px 0 0; gap:0; }
  .footer-information nav a { display:flex; align-items:center; justify-content:center;line-height:1.5; padding:8px 0px; }
  .footer-contact a { min-height:32px; display:inline-flex; align-items:center; }
  .ai-disclosure { line-height:1.5; margin-bottom:16px; }
  .license { max-width:580px; }
  .payments { flex-wrap:wrap; }
  .registration-shell { padding:31px 28px 32px; }
}

@media (max-width:599px) {
  .page-shell { max-width:560px; padding-inline:22px; }
  .site-header { padding:28px 0 32px; }
  .brand { width:120px; }
  .hero { --deck-width:min(282px,calc(100vw - 92px)); padding-bottom:112px; }
  .hero h1 { font-size:clamp(38px,10.8vw,50px); letter-spacing:-1.8px; }
  .hero-copy .intro { max-width:320px; margin-top:20px; font-size:17px; line-height:1.5; }
  .city-word { padding-bottom:5px; }
  .city-word:after { height:2px; }
  .discovery { margin-top:40px; }
  .discovery .location-art { width:540px; height:540px; }
  .profile-card { border-width:3px; border-radius:19px; }
  .profile-card.is-next { transform:translate(19px,8px) rotate(6deg) scale(.97); }
  .profile-card.is-third { transform:translate(-19px,10px) rotate(-7deg) scale(.94); }
  .layer-next { animation-name:mobile-right-drift; }
  .layer-third { animation-name:mobile-left-drift; }
  .card-top { top:13px; left:13px; right:13px; }
  .card-activity { font-size:10px; padding:7px 10px; }
  .card-info { left:17px; right:17px; bottom:21px; }
  .card-info h2 { font-size:27px; }
  .card-info h2 span { font-size:23px; }
  .card-bio { margin-top:8px; font-size:14px; }
  .swipe-controls { grid-template-columns:64px 64px; padding-top:38px; }
  .choice-button { min-width:64px; }
  .choice-button>.choice-disc { width:64px; height:64px; }
  .choice-button .icon { width:27px; height:27px; }
  .hero-action .join-button { min-height:56px; font-size:16px; }
  .nearby-proof-copy p { font-size:16px; }
  .footer-top { gap:8px; }
  .prototype-disclaimer { font-size:9px; }
  #registration { width:min(398px,calc(100% - 24px)); max-height:calc(100dvh - 24px); border-radius:20px; }
  .registration-shell { padding:31px 24px 30px; }
  #registration-title { font-size:21px; }
  #registration-description { font-size:16px; }
}
@keyframes mobile-right-drift { 0%,100% { transform:translate(3px,3px) rotate(.4deg); } 50% { transform:translate(9px,-4px) rotate(1deg); } }
@keyframes mobile-left-drift { 0%,100% { transform:translate(-3px,0) rotate(-.3deg); } 50% { transform:translate(-8px,5px) rotate(-1deg); } }

@media (max-width:359px) {
  .page-shell { padding-inline:16px; }
  .site-header { padding:26px 0 30px; }
  .brand { width:112px; }
  .hero h1 { font-size:36px; letter-spacing:-1.5px; }
  .profile-card img { object-position:var(--narrow-photo-position,var(--photo-position,50% 50%)); }
  .nearby-proof { gap:10px; }
  .nearby-proof-copy p { font-size:14px; gap:7px; }
  .avatar-stack>span { width:36px; height:36px; }
  [data-input=swipe] .card-swipe-hint { font-size:11px; gap:6px; padding-inline:8px; }
  .card-info h2 { font-size:25px; }
  .registration-shell { padding-inline:20px; }
  .birthday-fields { gap:5px; }
  .registration-form select { padding-inline:7px; }
}
@media (prefers-reduced-motion:reduce) {
  .card-swipe-hint,.card-swipe-hint .icon { animation:none!important; transition:none!important; }
}
