/* Final responsive layer. Shared across public templates, including server-rendered pages.
   Layout breakpoints: compact phone <=600, touch/tablet <=900, desktop >900.
   No global overflow hiding: content and min-content constraints are fixed at their source. */
:root{--tap-size:44px}
.ticker{width:calc(100% - 4px);margin-inline:2px;max-width:100%}
.header,.header-tools,main,main>*,.footer-top>*,.footer-legal>*,.field,.field>*,.account-layout>*,.contact-layout>*,.contact-fields>*,.legal-layout>*{min-width:0}
input,textarea,select{max-width:100%}
.choice-trigger>span{min-width:0;overflow-wrap:anywhere;text-align:left}
.choice-trigger>.icon,.choice-dot{flex-shrink:0}
.choice-option>span:first-child{min-width:0;overflow-wrap:anywhere}
.contact-topics{min-inline-size:0}
.contact-topic-grid,.contact-fields{grid-template-columns:repeat(2,minmax(0,1fr))}
.contact-topic{min-width:0}.contact-topic span{overflow-wrap:anywhere}
.account-section,.login-panel,.account-nav{max-width:100%;min-width:0}
.account-section .button,.auth-method{white-space:normal;overflow-wrap:anywhere;text-align:center}
.legal-doc{min-width:0;overflow-wrap:anywhere}
.legal-doc h1{font-size:clamp(30px,4.5vw,56px);line-height:1.12;letter-spacing:-.035em}
.legal-doc table{display:block;max-width:100%;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-color:var(--purple) var(--panel)}
.legal-doc :is(th,td){min-width:150px;font-size:15px;line-height:1.6}
.legal-nav{min-width:0}.legal-nav a{overflow-wrap:anywhere}
.article-body,.article-head,.article-layout{min-width:0;overflow-wrap:break-word}
.article-body :is(img,video,iframe){max-width:100%}
.article-body pre{max-width:100%;overflow:auto}
.footer-legal p,.footer-top a{overflow-wrap:anywhere}
.sheet-actions{flex-wrap:wrap}
.product-sheet{overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:var(--line) transparent}
.product-sheet:focus-visible{outline:2px solid var(--purple)}
.product-sheet.is-closing::backdrop{animation:responsive-backdrop-out .16s ease-out both}
@keyframes responsive-backdrop-out{to{opacity:0}}

@media(max-width:1100px){
  .header{height:auto;min-height:0;display:flex;flex-wrap:wrap;align-items:center;gap:12px 20px;padding-block:16px}
  .header .logo{flex:none;margin-right:auto}
  .header .city{flex:0 1 200px;margin:0}
  .header .header-tools{display:flex;align-items:center;gap:8px;margin-left:auto}
  .header nav{order:5;flex:0 0 100%;width:100%;min-width:0;display:flex;gap:24px;margin:0;padding:2px 0 4px;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:none;scroll-snap-type:x proximity;white-space:nowrap;mask-image:none}
  .header nav::-webkit-scrollbar{display:none}
  .header nav a{flex:none;display:flex;align-items:center;min-height:40px;scroll-snap-align:start}
  .header nav a[aria-current=page]{color:var(--purple)}
  .legal-layout{grid-template-columns:minmax(0,1fr);gap:28px}
  .legal-nav{position:static;display:flex;flex-wrap:wrap;gap:8px}
  .legal-nav a{border:1px solid var(--line);border-radius:999px;padding:10px 16px;font-size:14px;line-height:1.5;white-space:normal;max-width:100%}
  .legal-nav a[aria-current=page]{border-color:var(--purple);color:var(--purple)}
}

@media(max-width:900px){
  :is(.account-layout,.profile-fields,.contact-layout,.article-layout:has(.article-aside)){grid-template-columns:minmax(0,1fr)}
  .account-nav{display:flex;flex-wrap:nowrap;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:none;white-space:nowrap;gap:6px;padding:6px;border-radius:999px}
  .account-nav a{flex:none;min-height:44px;display:flex;align-items:center;padding:10px 16px;font-size:14px}
  .account-nav a .icon{display:none}
  .account-section,.account-section:first-child{padding:24px}
  .contact-aside{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}
  .directory-tools{display:flex;flex-wrap:wrap;gap:12px}.directory-tools>*{min-width:0;flex:1 1 220px}
  .event-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .event-card{min-width:0}
  .event-card .like{width:44px;height:44px;min-width:44px}
  .event-card .card-price{max-width:calc(100% - 54px);overflow-wrap:anywhere;font-size:14px}
  .event-card .card-title{font-size:17px;line-height:1.35;letter-spacing:-.3px;overflow-wrap:break-word}
  .category-preview,.category-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .interest-cards{grid-template-columns:repeat(2,minmax(0,1fr))}
  .interest-card{min-width:0}.interest-name{overflow-wrap:break-word}
  .interest-actions{flex-wrap:wrap}
  .app-promo{grid-template-columns:minmax(0,1fr);gap:24px}
  .app-hero,.app-path{gap:28px;grid-template-columns:minmax(0,1fr)}
  .app-hero-visual{min-height:320px;max-width:500px;width:100%;justify-self:center}
  .app-hero-cat{left:0;bottom:0}
  .app-hero h1{font-size:clamp(40px,8vw,72px);letter-spacing:-.045em;line-height:1.02;overflow-wrap:break-word}
  .app-hero-copy>p:not(.section-label){font-size:17px}
  .about-origin,.about-method,.about-visual-language,.about-game-section,.about-final{grid-template-columns:minmax(0,1fr)}
  .about-origin,.about-method,.about-visual-language{gap:28px}
  .about-friction-list{margin-left:0}
  .about-friction-list article{grid-template-columns:minmax(0,1fr);gap:14px}
  .about-game-section{padding:28px;gap:24px}
  .about-game-intro{min-height:280px}
  .about-game-section .taste-game-play{padding:24px;min-width:0}
  .about-page .game-results a{grid-template-columns:48px minmax(0,1fr) 20px}
  .about-page .game-results img{width:48px;height:48px}
  .about-page .game-results small,.about-page .game-results em{font-size:12px}
  .about-page .game-results strong{font-size:14px}
  .about-page .about-manifesto-list h3{font-size:clamp(30px,7.8vw,64px)!important}
  .about-page .about-manifesto-list p{font-size:16px}
  .product-sheet{width:calc(100% - 24px);max-height:calc(100dvh - 24px);padding:28px 22px;border-radius:24px}
  .product-sheet h2{font-size:26px;margin-right:32px;overflow-wrap:break-word}
  .product-sheet .field input,.product-sheet .choice-trigger,main input,main textarea{font-size:16px}
  .choice-trigger,.choice-option,.button,.header-account{min-height:44px}
  .choice-option{padding:14px 16px;gap:14px}
  .sheet-close{width:44px;height:44px;right:12px;top:12px}
  .product-sheet form{gap:18px}
  .product-sheet .sheet-actions{position:sticky;bottom:-28px;padding-block:14px;background:var(--bg);z-index:2}
  .sheet-actions>.button{flex:1}
  .tone-switch button{min-height:44px}
  #toast{width:max-content;max-width:calc(100% - 24px);white-space:normal;overflow-wrap:anywhere;bottom:calc(16px + env(safe-area-inset-bottom))}
  body:has(.feed-list-page) .header{flex-shrink:0;padding-right:0}
  body:has(.feed-list-page) .header-tools{padding-right:52px}
  .feed-list-page .feed-toolbar #feed-open-filters{top:16px;right:max(16px,calc((100vw - 1400px)/2));width:44px;height:44px;padding:12px;min-height:44px}
  .feed-list-page .feed-item-copy{justify-content:flex-start}
  .feed-list-page .feed-item-more{min-height:44px;flex:none;display:inline-flex;align-items:center;padding:8px 0}
  .feed-list-page .feed-item-tags{flex:none}.feed-list-page .feed-tag:last-child{flex-shrink:0}
  .feed-list-page .feed-item-actions{flex:none;padding-bottom:env(safe-area-inset-bottom)}
  .feed-list-page .feed-item-mobile-data{flex:none}
  .feed-list-page .feed-end{max-height:64px;overflow-y:auto;padding:6px 12px;font-size:12px;line-height:1.4}
  .feed-list-page .feed-end p{margin:0}
}

@media(max-width:600px){
  .wrap{width:calc(100% - 32px)}
  .header{gap:10px 12px;padding-block:12px}
  .header .logo{flex:none}.header .brand-word{width:106px}
  .header .city{flex:1 1 130px;max-width:180px}
  .header .city .choice-trigger{font-size:13px;min-height:44px}
  .header-tools .saved,.header-search{min-height:44px;height:44px}
  .header .header-tools{gap:8px}
  .header nav{gap:22px;padding:0;font-size:14px}
  .header nav a{min-height:44px}
  .header #saved{min-width:44px;padding:8px}
  .header #saved>span:not(:first-child){display:none}
  .page-header{padding-top:28px;padding-bottom:28px}
  .page-header h1{font-size:clamp(32px,9vw,46px);line-height:1.08;letter-spacing:-.04em;overflow-wrap:break-word}
  .page-header>p:not(.section-label){font-size:16px;line-height:1.6}
  .section-heading{align-items:flex-start;gap:14px;flex-direction:column}
  .section-heading h2,.collections h2{font-size:32px;line-height:1.1;letter-spacing:-1px}
  .section-heading>p{font-size:15px}
  .hero .hero-actions{display:flex;flex-wrap:wrap;gap:12px 18px}
  .hero .hero-actions>.button{flex:1 1 100%;justify-content:center}
  .hero .hero-actions .text-button{font-size:14px;gap:8px}
  .hero-art{max-width:100%}
  .feed-invite h2{font-size:clamp(30px,8vw,42px);line-height:1.12;letter-spacing:-1.2px}
  .search-bar{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:14px;padding:16px}
  .search-bar .search-field{grid-column:1/-1;min-width:0;gap:10px}
  .search-bar .date-field{min-width:0;padding-left:0;border-left:0}
  .search-bar .choice-trigger{min-height:44px}
  .search-bar .free{font-size:14px;gap:8px;min-height:44px}
  .search-bar .search-submit{grid-column:1/-1;width:100%;justify-content:center}
  .results-bar{flex-wrap:wrap;gap:8px;margin-block:14px}
  .results-bar>div{max-width:100%;gap:12px}.sort-label .choice-trigger{min-height:44px;font-size:14px}
  .event-grid{gap:24px 12px}
  .event-card{padding:0 0 12px}.event-card .card-title{font-size:16px}
  .event-card .card-meta{display:flex;flex-direction:column;align-items:flex-start;gap:4px;font-size:12px;line-height:1.5}
  .event-card .card-place{font-size:13px}
  .card-cover .card-cover-actions{gap:6px}
  .category-teaser a,.category-preview a{overflow-wrap:break-word}
  .category-preview,.category-grid{gap:10px}
  .category-tile{padding:20px 16px;min-width:0}
  .category-tile h2{font-size:22px;letter-spacing:-.3px}
  .contact-topic-grid,.contact-fields{grid-template-columns:minmax(0,1fr)}
  .contact-topic span{min-height:50px;padding:14px 18px;font-size:16px}
  .contact-aside{grid-template-columns:minmax(0,1fr)}
  .contact-submit{flex-direction:column;align-items:stretch}.contact-submit>.button{width:100%;justify-content:center}
  .contact-submit p{font-size:13px;line-height:1.6}
  .contact-done>div{flex-wrap:wrap;gap:16px}
  .account-page .login-panel{padding:24px}
  .account-section:first-child{padding:24px}
  .login-panel h2{font-size:30px;line-height:1.15;letter-spacing:-1px}
  .login-panel img{max-width:110px;pointer-events:none}
  .auth-method{font-size:15px;padding:14px 16px}
  .interest-cards{grid-template-columns:minmax(0,1fr)}
  .interest-card:has(.interest-cat input:checked){grid-column:auto}
  .interest-cat{min-height:64px}.interest-chips{gap:8px}.interest-chip{min-height:44px}
  .interest-actions>.button{width:100%;justify-content:center}
  .legal-layout{padding-top:28px}.legal-nav{gap:8px}
  .legal-nav a{padding:10px 14px;font-size:13px}
  .legal-doc h1{font-size:clamp(27px,7.8vw,32px);line-height:1.2;hyphens:none}
  .legal-doc h2{font-size:24px;line-height:1.25;letter-spacing:-.4px}
  .legal-doc p,.legal-doc li{font-size:16px;line-height:1.7}
  .legal-notice{padding:18px;border-radius:18px}
  .app-hero-visual{min-height:300px}
  .app-hero-visual .qr-frame{width:190px;padding:14px;max-width:70%;transform:rotate(3deg)}
  .app-hero-visual .qr-frame img{width:100%;height:auto}
  .app-hero-cat{width:62%;left:-4%;max-width:230px}
  .app-landing h2{font-size:32px;letter-spacing:-1px;line-height:1.15}
  .app-ach-grid{gap:12px}.app-ach-grid figure{padding:14px}.app-ach-grid figcaption{font-size:14px}
  .app-gifts{padding:24px;border-radius:24px}.app-store-soon{font-size:14px}
  .app-final>div{width:100%;gap:14px}.app-final .button{width:100%;justify-content:center}
  .about-page .about-hero h1{font-size:clamp(40px,12vw,64px)!important;line-height:1.04;letter-spacing:-.045em!important}
  .about-hero-art{height:350px}.about-page .about-hero-copy>p:not(.section-label){font-size:16px}
  .about-page .about-game-section{padding:20px}.about-page .taste-game-play{padding:20px}
  .about-page .game-options .chip{min-height:44px;font-size:14px}
  .about-page .game-navigation{flex-direction:column;align-items:stretch;gap:12px}
  .about-page .about-origin-copy p,.about-page .about-friction-list p,.about-page .about-visual-copy p{font-size:16px}
  .about-page .about-method-flow>div{max-width:100%;margin-left:0}
  .about-page .about-method-flow span,.about-page .about-roadmap-grid strong{font-size:12px}
  .article-grid{grid-template-columns:minmax(0,1fr)}
  .article-head h1{font-size:36px;line-height:1.12;letter-spacing:-1px}
  .article-lead{font-size:18px}.article-body{font-size:16px;line-height:1.7}
  .footer-top{grid-template-columns:repeat(2,minmax(0,1fr));gap:28px 16px}
  .footer-top>.logo,.footer-top>.footer-slogan{grid-column:1/-1}
  .footer-top a{font-size:14px;min-height:40px;display:flex;align-items:center}
  .footer-top .logo{display:block}
  .footer-legal{display:flex;flex-direction:column;align-items:flex-start;gap:20px;padding-bottom:calc(24px + env(safe-area-inset-bottom))}
  .footer-legal p{font-size:12px;line-height:1.7}
  .tone-switch{gap:8px}.tone-switch>span{width:100%}
  .evp-sticky{gap:8px;padding-left:16px}.evp-sticky .evp-btn{padding-inline:16px;font-size:14px}
  .evp-hero-title{overflow-wrap:break-word}
  .evp-hero-media{left:0;right:0;width:100%;margin-inline:0}
}

@media(min-width:901px){
  .feed-list-page .feed-stage{height:var(--feed-available,calc(100dvh - 240px));min-height:0}
  .feed-list-page .feed-list{padding-block:calc(var(--feed-available,calc(100dvh - 240px)) * .21)}
  .feed-list-page .feed-item{height:calc(var(--feed-available,calc(100dvh - 240px)) * .58);min-height:calc(var(--feed-available,calc(100dvh - 240px)) * .58);flex-basis:calc(var(--feed-available,calc(100dvh - 240px)) * .58)}
  .feed-list-page .feed-explanation{padding-top:min(8vh,60px);max-height:var(--feed-available,calc(100dvh - 240px));overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin}
  .feed-list-page .feed-item-copy{padding:24px 12px 24px 28px;gap:12px}
  .feed-list-page .feed-item-desc{-webkit-line-clamp:2}
  .feed-list-page .feed-item h2{font-size:clamp(22px,2.2vw,34px);-webkit-line-clamp:2}
}

@media(max-height:650px) and (min-width:901px){
  .feed-list-page .feed-item-copy{padding:16px 10px 16px 22px;gap:6px}
  .feed-list-page .feed-item-tags{max-height:26px}.feed-list-page .feed-tag{font-size:12px}
  .feed-list-page .feed-item-desc{display:none}
  .feed-list-page .feed-item-more{min-height:40px;padding:8px 16px}
  .feed-list-page .feed-explanation{padding-top:0}
}

@media(max-width:900px) and (max-height:500px){
  body:has(.feed-list-page){height:auto;min-height:100dvh;overflow:auto;display:block}
  .feed-list-page .feed-stage{height:auto}.feed-list-page .feed-list{height:auto;overflow:visible;scroll-snap-type:none}
  .feed-list-page .feed-item{min-height:400px;height:auto;flex-basis:auto;display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr)}
  .feed-list-page .feed-item-media{height:100%;min-height:400px;order:0}
  .feed-list-page .feed-item-copy{padding:20px;margin:0;min-width:0}
  .feed-list-page .feed-item .feed-item-media::before{inset:0 0 0 auto;height:100%;width:40%;background:linear-gradient(270deg,var(--feed-surface),transparent)}
  .feed-list-page .feed-item-actions{margin-top:12px}.feed-list-page .feed-item-desc{display:none}
  .feed-list-page .feed-end{max-height:none}
}

@media(hover:none),(pointer:coarse){
  .button:hover,.text-button:hover,.event-card:hover,.contact-topic:hover span{transform:none;filter:none}
  .event-card:hover .card-cover img{transform:none}
}
@media(prefers-reduced-motion:reduce){
  .product-sheet,.product-sheet::backdrop,.product-sheet.is-closing::backdrop{animation:none;transition:none}
  .feed-list-page .feed-item{transition:none;animation:none}
}
