/* Page layout styles. They sit in the `page` layer, under the design system (public/ds.css), which owns how components look. */
@layer page, ds;
@layer page {
/* Netflix-style layout layer. Loaded last; keeps the existing lime-on-dark brand palette. */
:root{--nf-pad:clamp(28px,3.3vw,72px);--nf-card:clamp(210px,17.4vw,320px);--nf-panel:#1a1c19}
html{scroll-padding-top:80px}

/* ───── Header ───── */
.header{position:fixed;height:68px;padding:0 var(--nf-pad);gap:34px;border-bottom:0;background:#000000;transition:box-shadow .35s ease}
.header.scrolled{box-shadow:0 1px 0 #ffffff14,0 8px 24px #0006}
.brand{font-size:28px;letter-spacing:-1.6px}
.header nav{gap:20px}
.nav-link{padding:0;font-size:14px;color:#e5e5e5;transition:color .2s}
.nav-link:hover{color:#a3a3a3}
.nav-link.active{color:#fff;font-weight:700}
.nav-link.active:after{display:none}
.upload-button{background:var(--lime);border:0;color:#17210e;font-weight:700;font-size:13px;padding:9px 16px}
.upload-button:hover{background:#d3ff7c}
.header-actions{gap:18px}

/* ───── Hero billboard ───── */
.hero-carousel{--hero-gutter:var(--nf-pad);--hero-width:calc(100% - var(--hero-gutter) * 2);position:relative;margin-top:76px;overflow:hidden;padding:1px 0}
.hero{box-sizing:border-box;margin:0 auto;width:var(--hero-width);height:auto;min-height:0;max-height:none;aspect-ratio:2.9;border-radius:24px;display:flex;align-items:flex-end;background:#000000;isolation:isolate;box-shadow:none}
.hero-peek{position:absolute;top:1px;bottom:1px;width:var(--hero-width);border-radius:24px;background-color:#203b32;background-position:center;background-size:cover;padding:0;overflow:hidden;color:#fff;filter:brightness(.65);transition:filter .2s}
.hero-peek:hover,.hero-peek:focus-visible{filter:brightness(1)}
.hero-peek-prev{right:calc(50% + var(--hero-width) / 2 + 12px)}
.hero-peek-next{left:calc(50% + var(--hero-width) / 2 + 12px)}
.hero-peek span{position:absolute;top:50%;transform:translateY(-50%);font:300 64px/1 'DM Sans',sans-serif}
.hero-peek-prev span{right:8px}.hero-peek-next span{left:8px}
.hero .hero-art{top:8%;left:50%;width:46%;height:84%;opacity:1}
.hero .hero-art>img{width:auto;height:85%;max-width:90%;object-fit:contain;aspect-ratio:1;transform:rotate(-9deg)}
.hero[data-feature="dayflow"] .hero-art>img{width:auto;height:95%;aspect-ratio:auto;transform:rotate(8deg)}
.hero[data-feature="fishing"] .hero-image{background-position:center 48%;background-size:cover}
.hero-grain,.hero-image-caption,.hero-bottom-note{display:none}
.hero-shade{background:linear-gradient(77deg,#000000d9 0%,#000000a0 30%,#00000018 62%,transparent 100%),linear-gradient(0deg,#000000b8 0%,#00000060 22%,transparent 46%),linear-gradient(180deg,#00000066 0%,transparent 16%)}
.hero-content{margin:0 0 0 clamp(24px,2.3vw,48px);padding:0 0 clamp(28px,2.5vw,52px);max-width:min(600px,60%)}
.hero h1{font-size:clamp(46px,7vw,92px);letter-spacing:clamp(2px,.45vw,7px);font-weight:700;margin:10px 0 0;text-shadow:0 4px 30px #0009}
.hero h1 span{font-size:clamp(11px,1.1vw,14px);letter-spacing:5px;margin:12px 0 0 2px}
.hero-kicker{margin-top:18px;font-size:13px;letter-spacing:1.5px}
.hero-description{font-size:clamp(14px,1.3vw,18px);line-height:1.65;color:#fff;margin:16px 0 14px;text-shadow:0 1px 10px #000a}
.hero-meta{font-size:12px}
.hero-buttons{margin-top:20px;gap:12px}
.hero-buttons .primary-button,.hero-buttons .secondary-button{min-height:46px;padding:0 26px;font-size:clamp(14px,1.15vw,17px);border-radius:999px}
.hero .secondary-button{background:#6d6d6eb3;color:#fff;border:0;backdrop-filter:none}
.hero .secondary-button:hover{background:#6d6d6e66}
.hero .primary-button:hover{background:#d3ff7c}
.hero-save{width:46px;height:46px;border:2px solid #ffffff80;background:#2a2a2a99}
.hero-save:hover{border-color:#fff}
.hero-side{right:clamp(24px,3vw,56px);bottom:32px;padding:0;background:none;border-radius:0;border-left:0;gap:0;z-index:4}
.hero-side>span{display:none}.slide-lines{gap:8px}.slide-lines button{width:14px;height:24px}.slide-lines button:after{width:9px;height:9px;top:8px;left:3px;border-radius:50%;background:#ffffff65}.slide-lines button.selected:after{background:#fff}

/* ───── Rows pulled up over the billboard ───── */
.discovery{max-width:none;padding:0 var(--nf-pad) 40px;margin-top:28px;position:relative;z-index:2}
.discovery-top{display:none}
.nf-home .discovery>.filter-bar,.nf-home .discovery>.row-heading,.nf-home #project-row,.nf-home #fresh-section,.nf-home #upcoming-section{display:none}
.nf-rows{margin:0 calc(-1 * var(--nf-pad));position:relative;z-index:3}
body:not(.nf-home) .nf-rows{display:none}
.nf-row{position:relative;margin-bottom:34px;z-index:1}
.nf-row:hover,.nf-row:focus-within{z-index:6}
.nf-row-title{margin:0 var(--nf-pad);padding-bottom:10px;position:relative;z-index:7;font-size:clamp(17px,1.5vw,22px);font-weight:700;letter-spacing:-.3px;color:#e5e5e5}
.nf-row-wrap{position:relative;--nf-hover-top:8px;--nf-hover-bottom:44px}
.nf-scroller{display:flex;gap:6px;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x proximity;scrollbar-width:none;padding:var(--nf-hover-top) var(--nf-pad) var(--nf-hover-bottom);margin:calc(-1 * var(--nf-hover-top)) 0 calc(-1 * var(--nf-hover-bottom));scroll-padding-left:var(--nf-pad)}
.nf-scroller::-webkit-scrollbar{display:none}
.nf-arrow{position:absolute;top:var(--nf-hover-top);bottom:var(--nf-hover-bottom);width:max(var(--nf-pad),46px);z-index:8;border:0;color:#fff;font-size:44px;line-height:1;display:grid;place-items:center;opacity:0;transition:opacity .2s;cursor:pointer}
.nf-arrow.prev{left:0;background:linear-gradient(90deg,#000000e0,transparent)}
.nf-arrow.next{right:0;background:linear-gradient(270deg,#000000e0,transparent)}
.nf-row:hover .nf-arrow{opacity:1}
.nf-arrow:hover{color:var(--lime)}

/* ───── Cards (poster 16:9). A card stays where it is on hover: rows never cover the heading or the row below ───── */
.project-card{flex:0 0 var(--nf-card);min-width:0;scroll-snap-align:start}
.card-open{overflow:visible;border-radius:6px}
.card-art{aspect-ratio:16/9;border-radius:6px;border:0}
.card-info{position:absolute;top:calc(100% - 1px);left:0;right:0;z-index:3;background:var(--nf-panel);border-radius:0 0 6px 6px;padding:12px 14px 14px;box-shadow:0 18px 30px #000a;opacity:0;visibility:hidden;transition:opacity .2s ease .1s}
.card-title{font-size:15px}
.card-subtitle{font-size:12px;color:#a9ada3;white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.card-metrics{display:flex;justify-content:space-between;gap:8px;font-size:11px;color:#a9ada3;margin-top:9px}
.card-rating{color:var(--lime)}
.card-bottom{font-size:11px;color:#8d9385;margin-top:10px}
.card-availability{font-size:11px}
@media(hover:hover){
  .card-art{transition:box-shadow .15s ease,filter .15s ease}
  .project-card:hover .card-art,.project-card:focus-within .card-art{box-shadow:0 0 0 2px #ffffffb8;filter:brightness(1.08)}
}
.card-open:hover .art-main{transform:none}

/* Top 10 */
.nf-ranked{flex:0 0 auto;display:flex;align-items:flex-end;scroll-snap-align:start}
.nf-ranked .project-card{flex:0 0 clamp(190px,15vw,280px)}
.nf-rank{font:800 clamp(100px,10vw,170px)/.78 'Space Grotesk',sans-serif;letter-spacing:-.09em;color:#000000;-webkit-text-stroke:3px #7a8570;margin-right:6px;padding-left:4px;pointer-events:none;user-select:none}

/* Browse / search results grid */
body:not(.nf-home) .discovery{margin-top:-40px;padding-top:56px}
body:not(.nf-home) .project-row{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:34px 12px;overflow:visible;scroll-snap-type:none;padding:6px 0 20px}
body:not(.nf-home) .project-card{flex:none}
body:not(.nf-home) .row-controls .arrow-button{display:none}
body:not(.nf-home) .card-info{position:static;opacity:1;visibility:visible;background:none;box-shadow:none;padding:10px 2px 0}
body:not(.nf-home) .card-bottom{display:none}
.filter-bar{border-bottom:0}
.row-heading h3{font-size:clamp(17px,1.5vw,22px);font-weight:700}

/* No-hover (touch) devices: always show a compact title under the poster */
@media(hover:none){
  .card-info{position:static;opacity:1;visibility:visible;background:none;box-shadow:none;padding:8px 2px 0}
  .card-subtitle,.card-metrics,.card-bottom{display:none}
  .nf-scroller{padding-bottom:20px;margin-bottom:0}
  .nf-arrow{display:none}
}

/* ───── Detail modal ───── */
.modal-close{background:#181a17;border-color:#ffffff30}

/* ───── Footer & misc ───── */
footer{margin:0 var(--nf-pad);border-top:1px solid #ffffff14}
.creator-banner{background:linear-gradient(100deg,#1d2616,#161a14);border-color:#34402a}

/* ───── Tablet / mobile ───── */
@media(max-width:850px){
  :root{--nf-card:clamp(150px,44vw,260px);--nf-pad:24px}
  .header{height:auto;flex-wrap:wrap;align-content:center;padding-top:10px;padding-bottom:4px;gap:8px 16px}
  .header nav{position:static;order:3;width:100%;height:36px;overflow-x:auto;scrollbar-width:none;gap:20px}
  .header nav::-webkit-scrollbar{display:none}
  .nav-link{padding:8px 0;font-size:13px}
  .hero-carousel{margin-top:112px}
  .hero{margin:0 auto;aspect-ratio:2.3;min-height:280px;height:auto;border-radius:18px}
  .hero-content{padding-bottom:28px;max-width:70%}
  .hero .hero-art{left:52%;width:46%;opacity:.8}
  .hero-side{bottom:20px;right:20px}
  .hero-peek{border-radius:18px}
  .hero-peek span{font-size:44px}
  .discovery{margin-top:22px}
  .nf-rank{font-size:96px}
}
@media(max-width:600px){
  .header-actions .upload-button{padding:8px 11px;font-size:12px}
  .hero-buttons .primary-button,.hero-buttons .secondary-button{padding:0 18px;min-height:44px}
  :root{--nf-pad:16px}
  .hero{aspect-ratio:1.65;min-height:225px}
  .hero-content{margin-left:20px;padding:24px 0 44px;max-width:92%}
  .hero .hero-art{left:48%;width:52%;height:70%;top:4%;opacity:.65}
  .hero[data-feature="dayflow"] .hero-art{top:4%}
  .hero-shade{background:linear-gradient(90deg,#000a,transparent),linear-gradient(0deg,#07120ee6,transparent 95%)}
  .hero .hero-description{font-size:12px;line-height:1.65;max-width:25em;margin-top:10px}
  .hero .hero-buttons{margin-top:16px;gap:8px}
  .hero .hero-buttons .primary-button,.hero .hero-buttons .secondary-button{font-size:12px;min-height:36px;padding:0 14px}
  .hero .hero-save{width:36px;height:36px;font-size:22px}
  .hero .hero-side{bottom:12px;right:14px}
  .hero-peek-prev{right:calc(50% + var(--hero-width) / 2 + 6px)}
  .hero-peek-next{left:calc(50% + var(--hero-width) / 2 + 6px)}
  .hero-peek span{display:none}
}

.hero-image{border-radius:inherit}
body:not(.nf-home) .discovery{margin-top:28px;padding-top:0}

/* ───── Minimal pass: remove secondary information, keep title / art / one action ───── */
.beta,.section-kicker,.hero .eyebrow,.hero-kicker,.hero h1 span,.hero-meta,.hero-art-caption,.water-ring,
.card-top-tag,.card-category,.card-metrics,.card-bottom,
.banner-orbit,.creator-banner p,
.community-heading p,.community-guidelines,
footer p,.filter-symbol,.filter>span:not(.filter-symbol),.discovery-top,.catalog-status:empty{display:none!important}

/* Nav & header */
.header nav{gap:22px}
.nav-link{font-size:14px;font-weight:500;color:#cfd2c8}
.nav-link.active{color:#fff}
.upload-button{padding:8px 14px;font-weight:600}

/* Banner: title, one short line, two actions */
.hero h1{font-size:clamp(44px,6vw,80px);letter-spacing:clamp(1px,.3vw,4px);margin:0}
.hero-description{font-size:clamp(14px,1.2vw,17px);color:#e6e8e0;margin:14px 0 0;max-width:30em}
.hero-buttons{margin-top:22px}
.hero-save{border-width:1px;background:transparent}
.hero{box-shadow:none;border:1px solid var(--ds-border-strong,#ffffff29)}
@media(max-width:600px){.hero h1{font-size:34px;letter-spacing:-1px}}

/* Rows: fewer chrome, more air */
.nf-row{margin-bottom:44px}
.nf-row-title{font-size:clamp(16px,1.3vw,19px);font-weight:600;color:#f1f3ea;padding-bottom:12px}
.card-art{border:0}
.card-save{opacity:0;transition:opacity .2s}
.project-card:hover .card-save,.project-card:focus-within .card-save,.card-save.saved{opacity:1}
.card-info{padding:12px 14px 14px}
.card-title{font-size:14px}
.card-subtitle{font-size:12px;-webkit-line-clamp:2}
body:not(.nf-home) .card-info{padding:10px 2px 0}
.nf-arrow{font-size:36px}

/* Browse bar */
.filter{border-color:transparent;background:#ffffff0d;color:#cfd2c8;font-size:13px;padding:8px 16px}
.filter.active{background:var(--lime);color:#17210e}
.sort-label span{display:none}

/* Detail: cover, title, description, creator, actions */

/* Creator banner / community / footer */
.creator-banner{background:#171916;border:1px solid #ffffff10;padding:26px 30px}
.creator-banner h2{font-size:19px;margin:0}
.community-section{padding-top:56px}
footer{padding:22px 0 28px;border-top:1px solid #ffffff10}
footer>span{margin-left:auto}

.no-chatgpt #chatgpt-sign-in{display:none}

/* Button alignment: text at line-height 1, icons drawn in CSS so font fallbacks can't shift them */
.upload-button,.hero-buttons .primary-button,.hero-buttons .secondary-button{display:inline-flex;align-items:center;justify-content:center;line-height:1}
.upload-button{gap:7px}
.upload-button span,.hero-save::before{font-size:0;margin:0;width:11px;height:11px;flex-shrink:0;background:linear-gradient(currentColor,currentColor) center/100% 2px no-repeat,linear-gradient(currentColor,currentColor) center/2px 100% no-repeat}
.play-icon{font-size:0;width:10px;height:12px;flex-shrink:0;background:currentColor;clip-path:polygon(0 0,100% 50%,0 100%)}
.info-icon{font-size:0;position:relative;flex-shrink:0;width:18px;height:18px;border-width:1.5px}
.info-icon::before,.info-icon::after{content:'';position:absolute;left:50%;width:2px;margin-left:-1px;background:currentColor;border-radius:1px}
.info-icon::before{top:3px;height:2px}
.info-icon::after{top:6.5px;height:6px}
.hero-save{position:relative;font-size:0}
.hero-save::before{content:'';position:absolute;inset:0;margin:auto;width:40%;height:40%}
.hero-save.saved::before{width:22%;height:38%;background:none;border:solid currentColor;border-width:0 2px 2px 0;transform:translateY(-12%) rotate(45deg)}

/* Arrows (banner + rows): one CSS chevron so both look the same and font metrics can't push them off-center */
.nf-arrow{font-size:0}
.nf-arrow::before,.hero-peek span{content:'';position:absolute;inset:0;margin:auto;width:16px;height:16px;border:solid currentColor;border-width:0 0 3px 3px;font-size:0;transform:translateX(3px) rotate(45deg)}
.nf-arrow.next::before,.hero-peek-next span{transform:translateX(-3px) rotate(-135deg)}
/* Banner arrow sits at the same x as the row arrows: centered in the side gutter (peek is offset 12px from the banner) */
.hero-peek span{left:auto;right:auto}
.hero-peek-prev span{right:max(4px,calc(var(--nf-pad) / 2 - 20px))}
.hero-peek-next span{left:max(4px,calc(var(--nf-pad) / 2 - 20px))}
/* Dim the peek image without dimming the arrow, so it's as bright as the row arrows */
.hero-peek{box-sizing:border-box;border:1px solid var(--ds-border,#ffffff1a);filter:none;box-shadow:inset 0 0 0 100vmax #00000059;transition:box-shadow .2s}
.hero-peek:hover,.hero-peek:focus-visible{filter:none;box-shadow:inset 0 0 0 100vmax #0000}
.hero-peek:hover span{color:var(--lime)}

/* Rows: on desktop, N cards fill exactly the banner width (scroller content box = banner width) */
@media(min-width:851px){
  .nf-scroller{--nf-cols:5;--nf-gap:6px;gap:var(--nf-gap)}
  .nf-scroller>.project-card,.nf-scroller>.nf-tile{flex-basis:calc((100% - (var(--nf-cols) - 1) * var(--nf-gap)) / var(--nf-cols))}
}
@media(min-width:851px) and (max-width:1200px){
  .nf-scroller{--nf-cols:4}
}

/* Community board: its own view from the 커뮤니티 nav, not stacked under the home rows */
body:not(.community-view) #community-section{display:none}
body.community-view .hero-carousel,body.community-view #discover,body.community-view .creator-banner{display:none}
body.community-view .community-section{margin-top:76px;border-top:0}

/* Row tiles (community posts, empty-category placeholders): same footprint as a project card */
.nf-tile{flex:0 0 var(--nf-card);aspect-ratio:16/9;min-width:0;scroll-snap-align:start;box-sizing:border-box;border-radius:6px;background:var(--nf-panel);border:1px solid #ffffff12;padding:18px 20px;display:flex;flex-direction:column;align-items:flex-start;gap:8px;text-align:left;color:#e9ece4;overflow:hidden}
.nf-tile strong{font-size:16px;line-height:1.35;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.nf-tile p{margin:0;font-size:12.5px;line-height:1.6;color:#a3a99c;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.nf-tile-kicker{font-size:11px;font-weight:700;color:var(--lime)}
.nf-tile-meta{margin-top:auto;font-size:11.5px;color:#8b9185}
.nf-post-tile:hover{background:#22251f;filter:none}
.nf-empty-tile{justify-content:center;border-style:dashed}
.nf-empty-tile .secondary-button{margin-top:6px;min-height:36px;padding:0 14px;font-size:12px}
.nf-row-more{margin-left:12px;background:none;font-size:13px;font-weight:600;color:#9aa192}
.nf-row-more:hover{color:var(--lime)}

/* ───── Modals: neutral black surface to match the page ───── */
.modal{background:#141414;border:1px solid #ffffff14;border-radius:16px;box-shadow:0 40px 120px #000c}
.modal::backdrop{background:#000000b8;backdrop-filter:blur(6px)}
.modal-close{width:34px;height:34px;border:0;background:#ffffff0f;color:#cfcfcf;font-size:0}
.modal-close:hover{background:#ffffff1f;color:#fff;filter:none}
.modal-close::before,.modal-close::after{content:'';position:absolute;inset:0;margin:auto;width:14px;height:1.6px;border-radius:1px;background:currentColor;transform:rotate(45deg)}
.modal-close::after{transform:rotate(-45deg)}

/* Compact gate modals: sign-in, and the upload dialog while logged out */
.modal-badge{display:none}
.auth-modal{width:440px;padding:48px 36px 32px;text-align:center}
.auth-modal .modal-close .modal-close{position:absolute;top:16px;right:16px;float:none;margin:0;transform:none}
.auth-modal .modal-badge .modal-badge{display:grid;place-items:center;width:52px;height:52px;margin:0 auto 22px;border-radius:14px;background:#c3f5681a;color:var(--lime);box-shadow:inset 0 0 0 1px #c3f56833}
.modal-badge svg{width:26px;height:26px}
.auth-modal .section-kicker .section-kicker{display:none}
.auth-modal h2 h2{font-size:24px;line-height:1.35;letter-spacing:-.6px;margin:0 0 10px}
.auth-modal>p .form-intro{font-size:14px;line-height:1.7;color:#a1a1a1;margin:0 0 28px}
.upload-auth{padding:0;margin:0;background:none;border:0}
.upload-auth p{display:none}
.upload-auth .primary-button{width:100%;min-height:50px;border-radius:10px;font-size:15px}
.upload-auth small,.auth-modal>small{display:block;margin-top:20px;font-size:12px;line-height:1.7;color:#7a7a7a;text-align:center}
.google-sign-in{min-height:50px;border-radius:10px;background:#fff;color:#1f1f1f;font-size:15px;font-weight:600;gap:12px}
.google-sign-in:hover{background:#ececec;filter:none}
.google-mark{width:20px;height:20px;flex-shrink:0}
.auth-divider{display:flex;align-items:center;gap:12px;margin:16px 0;font-size:12px;color:#6b6b6b}
.auth-divider::before,.auth-divider::after{content:'';flex:1;height:1px;background:#ffffff14}
.no-chatgpt .auth-divider:not(.email-divider){display:none}
.chatgpt-sign-in{margin-top:0;min-height:50px;border-radius:10px;background:#1f1f1f;border:1px solid #ffffff1a;color:#f1f1f1;font-size:15px;font-weight:600}
.chatgpt-sign-in:hover{background:#2a2a2a}
@media(max-width:600px){
  .auth-modal{padding:44px 22px 26px}
  .auth-modal h2 h2{font-size:21px}
}

/* Operator notice strip (set in /admin); pushes the fixed header and page down */
.site-notice{position:fixed;top:0;left:0;right:0;z-index:30;height:36px;padding:0 var(--nf-pad);display:flex;align-items:center;justify-content:center;background:var(--lime);color:#17210e;font-size:13px;font-weight:600;line-height:1}
.site-notice>*{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.site-notice a:hover{text-decoration:underline}
body.has-notice .header{top:36px}
body.has-notice main{padding-top:36px}

/* Header link to /admin, shown only to operators */
.admin-link{display:inline-flex;align-items:center;height:30px;padding:0 11px;border-radius:999px;border:1px solid #c3f56855;color:var(--lime);font-size:12.5px;font-weight:600;white-space:nowrap}
.admin-link:hover{background:#c3f56814}
/* no room beside the menu on narrower screens: there the studio is one step away through 내 계정 */
@media(max-width:1240px){.studio-link{display:none}}

/* Footer legal links */
.footer-legal{font-size:12px;color:#8b8b8b;white-space:nowrap}
.footer-legal b{font-weight:600;color:#b5b5b5}
.footer-legal:hover,.footer-legal:hover b{color:#fff}

/* Operator-made banner: the uploaded image is the full backdrop (no floating art) */
.hero[data-feature="custom"] .hero-image{background-color:#111;background-position:center;background-size:cover;background-repeat:no-repeat}
.hero[data-feature="custom"] .hero-art{display:none}

/* ───── Category pages: same rows as home, grouped by genre ───── */
.nf-cat-head{margin:0 var(--nf-pad) 30px;padding:8px 0 0;position:relative;z-index:7}
.nf-cat-kicker{display:block;font:600 11px/1 'DM Sans',sans-serif;letter-spacing:3px;color:var(--lime)}
.nf-cat-head h2{margin:12px 0 8px;font-size:clamp(34px,4.4vw,60px);line-height:1.05;letter-spacing:-1.5px;color:#fff}
.nf-cat-head p{margin:0;font-size:15px;color:#a3a3a3}
.nf-cat-chips{display:flex;gap:8px;margin-top:22px;overflow-x:auto;scrollbar-width:none;padding-bottom:2px}
.nf-cat-chips::-webkit-scrollbar{display:none}
.nf-cat-chips button{flex:0 0 auto;display:inline-flex;align-items:center;gap:7px;height:36px;padding:0 15px;border-radius:999px;background:#ffffff0f;border:1px solid #ffffff1f;color:#e6e6e6;font-size:13.5px;font-weight:600;line-height:1}
.nf-cat-chips button span{font-size:11.5px;font-weight:600;color:#8d8d8d}
.nf-cat-chips button:hover{background:#ffffff1c;border-color:#ffffff40;filter:none}
.nf-row-count{margin-left:8px;font-size:13px;font-weight:600;color:#7d7d7d}
.nf-row{scroll-margin-top:96px}
body.has-notice .nf-row{scroll-margin-top:132px}

/* Community page rows above the full board */
body:not(.community-view) #community-discovery{display:none}
body.community-view #community-rows{display:block}
body.community-view .community-discovery{margin-top:0;padding-top:92px}
/* The old board section stays in the DOM for community.js (the home feeds read its list) but is never shown */
#community-section{display:none!important}
.nf-cat-action{position:absolute;right:0;top:34px;min-height:44px;padding:0 20px;border-radius:999px;font-size:14px}


@media(max-width:850px){
  body.community-view .community-discovery{padding-top:118px}
  .nf-cat-head{margin-bottom:24px;padding-top:14px}
  .nf-cat-head p{font-size:13.5px}
}

/* 'cover' slides: the work's thumbnail as a tilted card over a blurred copy of itself */
.hero[data-feature="cover"]{overflow:hidden}
.hero[data-feature="cover"] .hero-image{background-color:#111;background-position:center;background-size:cover;filter:blur(38px) brightness(.4) saturate(1.25);transform:scale(1.25)}
.hero[data-feature="cover"] .hero-art{left:47%;width:48%}
.hero[data-feature="cover"] .hero-art>img{width:100%;height:auto;max-width:640px;max-height:100%;aspect-ratio:16/9;object-fit:cover;border-radius:18px;transform:rotate(-4deg);box-shadow:0 30px 80px #000b}
@media(max-width:600px){.nf-cat-action{position:static;margin:0 0 16px;min-height:38px;font-size:13px}}


/* Modals still scroll (wheel, touch, keyboard) but don't show a scrollbar */
.modal{scrollbar-width:none;-ms-overflow-style:none}
.modal::-webkit-scrollbar{display:none}

/* ───── Body block editor ───── */
.content-blocks{display:flex;flex-direction:column;gap:10px;margin:10px 0}
.cblock{border-radius:10px;border:1px solid #ffffff1a;background:#0e0e0e;padding:8px 10px 10px}
.cblock-bar{display:flex;align-items:center;gap:4px;margin-bottom:6px}
.cblock-bar span{margin-right:auto;font-size:11.5px;font-weight:700;letter-spacing:.5px;color:var(--lime)}
.cblock-bar button{width:28px;height:28px;border-radius:7px;background:#ffffff0d;color:#cfcfcf;font-size:12px;line-height:1}
.cblock-bar button:hover:not(:disabled){background:#ffffff1f;filter:none}
.cblock input,.cblock textarea{margin-top:0}
.cblock-heading input{font-weight:700;font-size:15px}
.cblock-image img{display:block;width:100%;max-height:320px;object-fit:contain;border-radius:8px;background:#000;margin-bottom:8px}
.content-add{display:flex;flex-wrap:wrap;gap:8px}
.content-add .secondary-button{min-height:38px;padding:0 14px;font-size:13px}

/* Website tech chips; creator link in the panel */
.nf-stack-chips{margin:0 var(--nf-pad) 26px;align-items:center}
.nf-stack-chips>span{flex:0 0 auto;font-size:12.5px;font-weight:600;color:#8d8d8d;margin-right:4px}

/* VIBEFLIX email accounts in the sign-in dialog: login / signup / password reset */
.email-auth{display:flex;flex-direction:column;gap:10px;text-align:left}
.email-auth-tabs{display:grid;grid-template-columns:1fr 1fr;padding:3px;border-radius:10px;background:#0b0b0b;border:1px solid #ffffff1a}
.email-auth-tabs button{height:36px;border-radius:8px;color:#9a9a9a;font-size:13.5px;font-weight:600}
.email-auth-tabs button[aria-selected=true]{background:#ffffff18;color:#fff}
.email-auth label{display:block;margin:0;font-size:12.5px;font-weight:600;color:#bdbdbd}
.email-auth input{display:block;width:100%;height:46px;margin-top:6px;padding:0 14px;border-radius:10px;background:#0b0b0b;border:1px solid #ffffff24;color:#f1f1f1;font-size:14.5px}
.email-auth input:focus{border-color:var(--lime);outline:none}
.email-auth .for-login,.email-auth .for-signup,.email-auth .for-reset{display:none}
.email-auth[data-mode=login] .for-login,.email-auth[data-mode=signup] .for-signup,.email-auth[data-mode=reset] .for-reset{display:block}
.email-auth[data-mode=reset] .email-auth-tabs{display:none}
.email-auth .email-submit{width:100%;min-height:50px;border-radius:10px;font-size:15px;margin-top:2px}
.email-auth-links{display:flex;justify-content:center}
.email-auth-links button{font-size:12.5px;color:#9a9a9a;text-decoration:underline;text-underline-offset:3px}
.email-auth-links button:hover{color:#fff}
.email-auth-note{margin:0;padding:10px 12px;border-radius:10px;background:#c3f56814;color:#dfe9cf;font-size:13px;line-height:1.6}
.email-auth-note .text-button{color:var(--lime);font-weight:700;text-decoration:underline}
.email-auth .email-auth-tabs button,.email-auth .email-auth-links button{background:transparent;border:0;min-height:0;box-shadow:none;width:auto}
.email-auth .email-auth-tabs button{width:100%}
.email-auth .email-auth-tabs button[aria-selected=true]{background:#ffffff1f}

/* Terms consent: one line in the sign-up form, and a one-time step for first logins */
.email-auth .consent-line{display:none;font-weight:400;font-size:12.5px;line-height:1.6;color:#bdbdbd}
.email-auth[data-mode=signup] .consent-line{display:flex;gap:8px;align-items:flex-start}
.consent-line input{flex:0 0 auto;width:16px;height:16px;margin:3px 0 0;accent-color:var(--lime)}
.consent-line a{color:var(--lime);text-decoration:underline;text-underline-offset:3px}.consent-line small{color:#8d8d8d}
.auth-modal.consenting>:not(.modal-close):not(.modal-badge):not(#auth-consent-step){display:none!important}
.auth-consent-step{display:flex;flex-direction:column;gap:12px;text-align:left}
.auth-consent-step h3{margin:0;font-size:20px;color:#fff;text-align:center}
.auth-consent-step p{margin:0;color:#bdbdbd;font-size:14px;text-align:center}
.auth-consent-step .consent-line{display:flex;gap:8px;align-items:flex-start;font-size:13.5px;color:#e6e6e6;padding:12px 14px;border-radius:10px;background:#ffffff08;border:1px solid #ffffff1a}
.auth-consent-step .primary-button{width:100%;min-height:50px;border-radius:10px;font-size:15px}
.auth-consent-step .text-button{align-self:center;color:#9a9a9a;background:transparent}
.email-auth[data-mode=signup] .consent-line,.auth-consent-step .consent-line{display:block}
.consent-line input{display:inline-block;vertical-align:-3px;margin:0 6px 0 0}

/* ───── Mobile polish (≤600px) ───── */
.profile-admin-link{display:flex;justify-content:center;margin:0 0 18px;min-height:42px;border-radius:10px}
[data-safety-controls]{display:flex;flex-wrap:wrap;gap:6px 16px;margin-top:14px}
.project-social-actions{flex-wrap:wrap;row-gap:8px}
.project-social-actions>*{white-space:nowrap}
@media(max-width:600px){
  /* Header: logo and icons on one row — search, alerts, a round “＋” upload button and the profile */
  .header-actions{gap:12px}
  .header .avatar:not([hidden]){display:grid;place-items:center;width:30px;height:30px;font-size:13px}
  .header-actions .upload-button{font-size:0;width:32px;height:32px;padding:0;border-radius:50%;justify-content:center;gap:0}
  .header-actions .upload-button span{width:12px;height:12px}
  .admin-link,.sign-out-link{display:none}
  .hero-carousel{margin-top:100px}

  /* Hero: keep the art clear of the title and copy */
  .hero .hero-art{left:56%;width:44%;height:56%;top:6%;opacity:.55}
  .hero .hero-description{max-width:100%}

  /* Row tiles (posts, empty states): taller so titles and excerpts fit */
  .nf-tile{aspect-ratio:auto;min-height:170px;padding:14px 15px;gap:6px}
  .nf-scroller>.nf-tile,.nf-tile{flex:0 0 min(72vw,280px)}
  .nf-tile strong{font-size:14.5px}
  .nf-tile p{font-size:12.5px}

  /* Search / saved / filtered grid must fit the screen */
  body:not(.nf-home) .project-row{grid-template-columns:repeat(auto-fill,minmax(min(160px,100%),1fr));gap:22px 10px}

  /* “만들었다면…” banner and footer */
  .creator-banner{flex-direction:column;align-items:stretch;gap:14px;padding:20px}
  .creator-banner h2{font-size:17px;line-height:1.45}
  .creator-banner>.primary-button{margin-left:0;width:100%;justify-content:center}
  footer{flex-wrap:wrap;gap:10px 16px;padding-bottom:36px}
  footer>span{margin-left:0;order:9;width:100%}

  /* Preview modal: close button above the cover; actions in a tidy grid */

  /* Dialog titles never run under the close button */
  .modal h2{padding-right:40px}
  .auth-modal h2{padding-right:0}
}
body:not(.nf-home) .project-row{margin-right:0}

/* Continue watching: a card with a resume link under it, same footprint as other cards */
.nf-recent{flex:0 0 var(--nf-card);min-width:0;display:flex;flex-direction:column;gap:6px;scroll-snap-align:start}
.nf-recent .project-card{flex:none;width:100%}
@media(min-width:851px){.nf-scroller>.nf-recent{flex-basis:calc((100% - (var(--nf-cols) - 1) * var(--nf-gap)) / var(--nf-cols))}}
.nf-continue{display:flex;align-items:center;gap:6px;min-height:36px;padding:0 12px;border-radius:6px;background:#c3f5681a;border:1px solid #c3f56833;color:var(--lime);font-size:13px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.nf-continue:hover{background:#c3f5682b}
.nf-row-sub{margin:-6px var(--nf-pad) 10px;color:#9aa192;font-size:13.5px;line-height:1.5}
/* Operator-checked community links */
.verified-chip{display:inline-flex;align-items:center;gap:4px;margin-left:8px;padding:2px 8px;border-radius:999px;background:#c3f5681f;color:var(--lime);font-size:11px;font-weight:700}


/* First visit: what this place is, in one paragraph, with three ways in */
/* Followed creators' news */
.nf-feed-tile{position:relative;justify-content:flex-end;background:linear-gradient(180deg,#0000 0%,#000c 75%),var(--bg,none) center/cover,var(--nf-panel)}
.nf-feed-tile strong{color:#fff}
/* 성인 소재 covers stay blurred in lists */
.card-art.mature .art-main{filter:blur(18px) saturate(.6)}
.card-art{position:relative}
.mature-label{position:absolute;left:10px;top:10px;padding:3px 9px;border-radius:999px;background:#000b;border:1px solid #ffb44766;color:#ffc46b;font-size:11.5px;font-weight:700}
a.post-open,a.nf-post-tile{color:inherit;text-decoration:none}
a.card-open,a.fresh-card{color:inherit;text-decoration:none}
}

/* Thumbnails are pictures only — the title is printed under each card, never drawn into the art in a font.
   Built-in works keep their picture, centred; works without a cover use ds.css .cover-ph. */
@layer page {
.art-koiworld{display:flex;align-items:center;justify-content:center;background:radial-gradient(circle at 50% 42%,#3aa39b,#135560 74%)}
.art-icon{position:relative;z-index:1;height:72%;aspect-ratio:1;object-fit:cover;border-radius:22%;box-shadow:0 14px 34px #0005}
.art-main .screen-frame{left:50%;top:16%;width:30%;translate:-50% 0}
.art-godoftop .tower-visual{left:40%}
.sample-label{position:absolute;left:8px;top:8px;z-index:2;padding:2px 8px;border-radius:999px;background:#000a;color:#e6e6e6;font-size:11px;font-weight:700;letter-spacing:.2px}
/* Desktop rows: the title sits under each poster. Touch screens and list pages show the title line (.card-info) instead. */
.card-caption{display:none}
@media(hover:hover){
  .nf-home .card-open{position:relative}
  .nf-home .card-caption{display:block;position:absolute;left:0;right:0;top:100%;padding:9px 2px 0;font-size:14px;font-weight:600;color:#e5e5e5;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;pointer-events:none}
  .nf-home .project-card:hover .card-caption,.nf-home .project-card:focus-within .card-caption{color:#fff}
  .nf-home .nf-row{margin-bottom:64px}
}
}

/* Reserve space for the title caption before the separate continue link. */
@media (min-width:851px) and (hover:hover) and (pointer:fine){.nf-home .nf-recent:has(.nf-continue) .project-card{margin-bottom:32px}}
