  /* 레이아웃: 앱처럼 쓰는 한 줄 단 구성. 파스텔 배너, 아기 일러스트, 입력 카드, 포스터형 썸네일, 순위 목록, 하단 탭 바 */
  :root {
    --outer: #FFF1DE;
    --bg: #FFFDF8;
    --soft: #FFF3E3;
    --chip: #FFEBD2;
    --ink: #3F2F28;
    --muted: #7A6A5F;
    --line: #FBE3C8;
    --brand: #E8543A;
    --brand-text: #D2432B;
    --wood-a: #DDF5CF; --wood-b: #A5E08F;
    --fire-a: #FFE0D6; --fire-b: #FFA58F;
    --earth-a: #FFF3BF; --earth-b: #FFD55A;
    --metal-a: #EBE2FF; --metal-b: #C4AEF7;
    --water-a: #D6F0FF; --water-b: #86CDF3;
    --pink-a: #FFDDEE; --pink-b: #FF9FCB;
    --art-ink: #4A3B32;
    --art-light: #FFFFFF;
    --shadow: 0 6px 18px rgba(140, 99, 80, 0.10);
    --display: "Jua", "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
    --body: "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  }
  * { box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  body { background: var(--outer); color: var(--ink); font-family: var(--body); font-size: 15px; line-height: 1.6; }
  body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); background: var(--bg); z-index: 10; }
  h1, h2, h3, p { margin: 0; }
  button { font: inherit; color: inherit; }
  :focus-visible { outline: 3px solid var(--brand-text); outline-offset: 2px; border-radius: 6px; }
  .pad { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
  .app { max-width: 520px; margin: 0 auto; background: var(--bg); min-height: 100vh; padding-bottom: 92px; }
  section { scroll-margin-top: 64px; }
  svg.baby { display: block; }

  /* 상단 바 */
  .top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 9; background: var(--bg); border-bottom: 1px solid var(--line); height: 58px; display: flex; align-items: center; justify-content: space-between; }
  .logo { display: flex; align-items: center; gap: 8px; text-decoration: none; }
  .logo svg { width: 34px; height: 34px; flex: none; }
  .logo b { font-family: var(--display); font-weight: 400; font-size: 29px; line-height: 1; color: var(--brand-text); letter-spacing: 0.01em; }
  .login { background: none; border: 0; font-weight: 700; font-size: 14px; color: var(--ink); cursor: pointer; padding: 8px 2px; }

  /* 배너 */
  .banner { position: relative; }
  .slides { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
  .slides::-webkit-scrollbar { display: none; }
  .slide {
    flex: 0 0 100%; scroll-snap-align: start; position: relative; overflow: hidden; min-height: 280px; padding-block: 28px 62px;
    display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 8px;
    background: linear-gradient(150deg, var(--a), var(--b)); color: var(--art-ink);
  }
  .slide > * { max-width: 62%; }
  .slide small { font-size: 12.5px; font-weight: 800; letter-spacing: 0.04em; background: var(--art-light); border-radius: 999px; padding: 1px 11px; position: relative; }
  .slide h2 { font-family: var(--display); font-weight: 400; font-size: clamp(31px, 8.6vw, 41px); line-height: 1.14; text-wrap: balance; position: relative; }
  .slide p { font-size: 14px; position: relative; }
  .slide .go { position: relative; margin-top: 8px; background: var(--art-ink); color: #fff; border: 0; border-radius: 999px; padding: 10px 20px; font-weight: 700; cursor: pointer; }
  .slide > .baby { position: absolute; right: max(8px, env(safe-area-inset-right, 0px)); bottom: -12px; width: clamp(112px, 31vw, 156px); height: auto; max-width: none; }
  .slide > .deco { position: absolute; max-width: none; height: auto; opacity: 0.95; }
  .d1 { width: 22px; right: 36%; top: 26px; }
  .d2 { width: 14px; right: 12%; top: 38px; }
  .d3 { width: 18px; right: 6%; top: 74px; }
  .counter { position: absolute; right: max(16px, env(safe-area-inset-right, 0px)); bottom: 14px; background: rgba(58, 47, 54, 0.62); color: #fff; font-size: 12px; font-weight: 700; padding: 2px 11px; border-radius: 999px; font-variant-numeric: tabular-nums; }

  /* 입력 카드 */
  .start { padding-block: 76px 6px; }
  .form-card { position: relative; background: linear-gradient(160deg, #FFE3EA, #FFEEDC); color: #3A2F36; border-radius: 26px; padding: 24px 20px 22px; display: flex; flex-direction: column; gap: 13px; box-shadow: var(--shadow); }
  .peek { position: absolute; right: 24px; top: -66px; width: 92px; height: auto; }
  .form-card h2 { font-family: var(--display); font-weight: 400; font-size: 29px; line-height: 1.15; padding-right: 96px; }
  .form-card .sub { font-size: 14px; margin-top: -6px; opacity: 0.9; }
  .field { display: flex; flex-direction: column; gap: 6px; }
  .field label, .check { font-size: 13px; font-weight: 700; }
  .field input[type="text"], .field input[type="date"], .field select {
    font: inherit; color: #3A2F36; background: #fff; border: 1.5px solid #F4D5D0; border-radius: 14px; padding: 12px 13px; width: 100%; min-width: 0;
  }
  .field input::placeholder { color: #9C8B92; }
  .form-card :focus-visible { outline-color: #D8416B; }
  .check { display: flex; align-items: center; gap: 8px; cursor: pointer; }
  .check input { width: 18px; height: 18px; accent-color: var(--brand); flex: none; }
  .btn { background: var(--brand); color: #fff; border: 0; border-radius: 16px; padding: 14px 16px; font-weight: 800; font-size: 16px; cursor: pointer; }
  .btn:hover { filter: brightness(1.06); }
  .hint { font-size: 12.5px; opacity: 0.85; }
  .err { font-size: 13px; font-weight: 700; color: #3A2F36; background: #FFE27A; border-radius: 8px; padding: 6px 10px; }
  .err:empty { display: none; }

  /* 섹션 제목 */
  .block { padding-block: 32px 0; }
  .sh { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
  .sh h2 { font-size: 21px; font-weight: 800; display: flex; align-items: center; gap: 8px; letter-spacing: -0.01em; min-width: 0; overflow-wrap: anywhere; }
  .new { font-size: 11px; font-weight: 800; color: var(--brand-text); border: 1.5px solid var(--brand-text); border-radius: 5px; padding: 0 5px; line-height: 1.5; flex: none; }
  .flame { width: 20px; height: 20px; flex: none; }
  .more { width: 38px; height: 38px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--bg); display: grid; place-items: center; cursor: pointer; color: var(--muted); flex: none; }
  .more:hover { border-color: var(--ink); color: var(--ink); }
  .more svg { width: 18px; height: 18px; }
  .echo { font-size: 13px; color: var(--muted); }
  .rbaby { width: 56px; height: auto; flex: none; }

  /* 결과 */
  .stack { display: flex; flex-direction: column; gap: 12px; }
  .panel { background: var(--bg); border: 1px solid var(--line); border-radius: 22px; padding: 18px; display: flex; flex-direction: column; gap: 12px; min-width: 0; box-shadow: var(--shadow); }
  .panel h3 { font-size: 17px; font-weight: 800; }
  .kw { display: flex; flex-wrap: wrap; gap: 6px; }
  .kw span { background: var(--chip); border-radius: 999px; padding: 3px 12px; font-size: 13.5px; font-weight: 500; }
  .tip { background: var(--soft); border-radius: 14px; padding: 10px 12px; font-size: 14px; }
  .tip b { display: block; font-size: 12px; letter-spacing: 0.05em; color: var(--muted); margin-bottom: 2px; }
  .note { font-size: 12.5px; color: var(--muted); }
  .bars { display: flex; flex-direction: column; gap: 10px; }
  .bar-row { display: grid; grid-template-columns: 34px 1fr 20px; gap: 10px; align-items: center; }
  .glyph { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-family: var(--display); font-size: 21px; line-height: 1; color: var(--art-ink); padding-top: 2px; }
  .track { background: var(--chip); border-radius: 999px; height: 10px; overflow: hidden; }
  .fill { height: 100%; border-radius: 999px; }
  .num { font-variant-numeric: tabular-nums; font-weight: 800; text-align: right; }


  /* 포스터형 썸네일 */
  .thumb { position: relative; display: block; overflow: hidden; aspect-ratio: 4 / 5; border-radius: 14px; background: linear-gradient(160deg, var(--a), var(--b)); }
  .th-t { position: absolute; left: 8px; right: 8px; top: 10px; font-style: normal; font-family: var(--display); font-size: 15px; line-height: 1.18; color: var(--art-ink); -webkit-text-stroke: 3.5px #fff; paint-order: stroke fill; white-space: pre-line; text-wrap: balance; z-index: 2; }
  .th-g { position: absolute; right: -8px; top: 38%; font-style: normal; font-family: var(--display); font-size: 92px; line-height: 1; color: var(--art-light); opacity: 0.55; }
  .th-b { position: absolute; left: 50%; bottom: -4%; width: 66%; height: auto; transform: translateX(-50%); }
  .thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
  .card { background: none; border: 0; padding: 0; text-align: left; cursor: pointer; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
  .card .t { font-size: 14px; font-weight: 500; line-height: 1.4; overflow-wrap: anywhere; }
  .card .m { font-size: 12.5px; color: var(--muted); }

  /* 탭과 순위 */
  .tabs { display: flex; overflow-x: auto; border-bottom: 1px solid var(--line); scrollbar-width: none; }
  .tabs::-webkit-scrollbar { display: none; }
  .tab { flex: none; background: none; border: 0; border-bottom: 2.5px solid transparent; padding: 11px 14px; font-size: 15px; font-weight: 500; color: var(--muted); cursor: pointer; margin-bottom: -1px; }
  .tab[aria-pressed="true"] { color: var(--brand-text); font-weight: 800; border-bottom-color: var(--brand-text); }
  .ranks { display: grid; grid-template-columns: 1fr; gap: 4px 14px; margin-top: 12px; }
  .rank { display: flex; align-items: center; gap: 10px; width: 100%; background: none; border: 0; padding: 6px 0; text-align: left; cursor: pointer; min-width: 0; }
  .rank .n { flex: none; width: 18px; text-align: center; font-size: 17px; font-weight: 800; }
  .rank .n.top { color: var(--brand-text); }
  .rank .thumb { flex: none; width: 64px; border-radius: 12px; }
  .rank .th-t { font-size: 10px; left: 5px; right: 5px; top: 6px; -webkit-text-stroke: 2.5px #fff; }
  .rank .th-g { font-size: 42px; right: -4px; top: 40%; }
  .rank .tx { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
  .rank .tx b { font-size: 14.5px; font-weight: 500; line-height: 1.4; overflow-wrap: anywhere; }
  .rank .tx span { font-size: 12.5px; color: var(--muted); display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }

  .series { display: block; width: 100%; border: 0; border-radius: 24px; padding: 24px 20px; text-align: left; cursor: pointer; background: linear-gradient(120deg, var(--pink-a), var(--earth-a)); color: var(--art-ink); position: relative; overflow: hidden; }
  .series b { display: block; font-family: var(--display); font-weight: 400; font-size: 30px; line-height: 1.15; }
  .series span { display: block; max-width: 60%; font-size: 13.5px; font-weight: 500; margin-top: 4px; }
  .series .baby { position: absolute; right: 10px; bottom: -22px; width: 112px; height: auto; }

  .points { display: flex; flex-direction: column; gap: 18px; }
  .point { border-top: 2px solid var(--ink); padding-top: 10px; display: flex; flex-direction: column; gap: 4px; }
  .point b { font-size: 16px; }
  .point span { color: var(--muted); font-size: 14px; }
  footer { margin-top: 34px; border-top: 1px solid var(--line); padding-block: 16px 0; color: var(--muted); font-size: 12.5px; }

  /* 하단 탭 바 */
  .tabbar {
    position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: min(520px, 100%); z-index: 9;
    background: var(--bg); border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(4, 1fr);
    padding: 6px max(16px, env(safe-area-inset-right, 0px)) calc(6px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
  }
  .tabbar a { display: flex; flex-direction: column; align-items: center; gap: 2px; text-decoration: none; color: var(--muted); font-size: 11.5px; font-weight: 700; padding: 6px 0; border-radius: 10px; }
  .tabbar svg { width: 26px; height: 26px; fill: currentColor; }
  .tabbar a.on { color: var(--brand-text); }

  .report { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; font-size: 14.5px; }
  html.qopen { overflow: hidden; }
  .quiz { position: fixed; inset: 0; z-index: 20; background: var(--outer); overflow-y: auto; overscroll-behavior: contain; }
  .qwrap { max-width: 520px; margin: 0 auto; background: var(--bg); min-height: 100%; display: flex; flex-direction: column; }
  .qtop { position: sticky; top: 0; z-index: 2; background: var(--bg); display: grid; grid-template-columns: 40px 1fr 48px; align-items: center; gap: 8px; height: calc(58px + env(safe-area-inset-top, 0px)); padding-top: env(safe-area-inset-top, 0px); }
  .qtop b { font-size: 15px; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .qclose { width: 40px; height: 40px; border: 0; background: none; border-radius: 50%; cursor: pointer; display: grid; place-items: center; color: var(--ink); }
  .qclose:hover { background: var(--chip); }
  .qclose svg { width: 22px; height: 22px; }
  .qstep { font-size: 13px; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; text-align: right; }
  .qbar { height: 4px; background: var(--chip); }
  .qbar i { display: block; height: 100%; width: 0; background: var(--brand); border-radius: 0 4px 4px 0; transition: width .25s ease; }
  .qbody { flex: 1; display: flex; flex-direction: column; gap: 16px; padding-block: 26px calc(32px + env(safe-area-inset-bottom, 0px)); outline: none; }
  .qhero { width: 120px; height: auto; align-self: center; }
  .qh { font-family: var(--display); font-weight: 400; font-size: 34px; line-height: 1.2; text-align: center; text-wrap: balance; }
  .qp { text-align: center; color: var(--muted); font-size: 14.5px; }
  .qname { display: flex; flex-direction: column; gap: 6px; }
  .qname label { font-size: 13px; font-weight: 700; }
  .qname input { font: inherit; color: var(--ink); background: var(--bg); border: 1.5px solid var(--line); border-radius: 14px; padding: 12px 13px; width: 100%; min-width: 0; }
  .qname input:focus-visible { outline: 3px solid var(--brand-text); outline-offset: 1px; }
  .qno { font-family: var(--display); font-size: 22px; color: var(--brand-text); }
  .qq { font-size: 22px; font-weight: 800; line-height: 1.4; letter-spacing: -0.01em; text-wrap: balance; }
  .opts { display: flex; flex-direction: column; gap: 10px; }
  .opt { text-align: left; background: var(--bg); border: 1.5px solid var(--line); border-radius: 18px; padding: 14px 16px; font-size: 15px; line-height: 1.5; cursor: pointer; }
  .opt:hover { border-color: var(--brand-text); }
  .opt.sel { background: var(--brand); border-color: var(--brand); color: #fff; }
  .prev { align-self: flex-start; background: none; border: 0; color: var(--muted); font-weight: 700; font-size: 14px; cursor: pointer; padding: 6px 0; }
  .rcard { position: relative; overflow: hidden; border-radius: 26px; padding: 24px 20px 22px; background: linear-gradient(160deg, var(--a), var(--b)); color: var(--art-ink); display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; }
  .rcard .rg { position: absolute; right: -10px; top: -22px; font-family: var(--display); font-size: 170px; line-height: 1; color: var(--art-light); opacity: .4; pointer-events: none; }
  .rcard .baby { width: 104px; height: auto; position: relative; }
  .rcard small { font-size: 13px; font-weight: 700; position: relative; }
  .rcard h2 { font-family: var(--display); font-weight: 400; font-size: 38px; line-height: 1.15; position: relative; }
  .rcard p { font-size: 14.5px; font-weight: 500; position: relative; text-wrap: balance; }
  .ractions { display: flex; flex-direction: column; gap: 8px; }
  .btn.ghost { background: var(--bg); color: var(--ink); border: 1.5px solid var(--line); }
  .toast { position: fixed; left: 50%; bottom: calc(86px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 30; background: var(--ink); color: var(--bg); padding: 10px 18px; border-radius: 999px; font-size: 13.5px; font-weight: 700; max-width: calc(100% - 32px); text-align: center; opacity: 0; pointer-events: none; transition: opacity .2s ease; }
  .toast.on { opacity: 1; }


  @media (min-width: 480px) { .ranks { grid-template-columns: 1fr 1fr; } }
  @media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

  /* 추가 요소 */
  .login { display: inline-flex; align-items: center; gap: 4px; }
  .login svg { width: 18px; height: 18px; }
  .done { color: var(--brand-text); font-weight: 800; }
  .second { font-size: 13.5px; color: var(--muted); text-align: center; }
  .reclist { display: flex; flex-direction: column; gap: 4px; }
  .reclist .rank { padding: 6px 0; }
  .links { display: flex; gap: 14px; flex-wrap: wrap; }
  .links a, .links button { color: var(--muted); font: inherit; background: none; border: 0; padding: 0; text-decoration: underline; cursor: pointer; }

  /* 종이 질감과 슬라이드 화살표, 결과 해시태그 */
  .slide::after, .thumb::after, .rcard::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .07; mix-blend-mode: multiply;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E"); }
  .banner .arrows { position: absolute; left: max(16px, env(safe-area-inset-left, 0px)); bottom: 12px; display: flex; gap: 8px; z-index: 3; }
  .arrow { width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .82); color: #4A3B32; display: grid; place-items: center; cursor: pointer; }
  .arrow:hover { background: #fff; }
  .arrow svg { width: 18px; height: 18px; }
  .tags { position: relative; font-size: 13px; font-weight: 700; opacity: .85; }
  .slide > .baby, .th-b, .rcard .baby, .qhero { filter: drop-shadow(0 0 3px rgba(255, 255, 255, .85)); }
  .rcard .meme { background: rgba(255, 255, 255, .72); border-radius: 14px; padding: 8px 14px; font-size: 14px; font-weight: 700; margin-top: 6px; }
  .rcard .meme::before { content: "“"; } .rcard .meme::after { content: "”"; }

  /* 푸망식 확장: 검색, 선반, 진행률, 마음대학교, O/X */
  .search { display: flex; align-items: center; gap: 10px; background: #fff; border: 1.5px solid var(--line); border-radius: 999px; padding: 0 16px; height: 48px; color: var(--muted); }
  .search svg { width: 20px; height: 20px; flex: none; }
  .search input { flex: 1; min-width: 0; border: 0; background: none; font: inherit; font-size: 15px; color: var(--ink); outline: 0; height: 100%; }
  .search:focus-within { border-color: var(--brand-text); }
  .prog { margin-top: 14px; font-size: 13.5px; color: var(--muted); display: flex; flex-direction: column; gap: 6px; }
  .prog b { color: var(--brand-text); font-size: 16px; }
  .prog .bar { display: inline-block; vertical-align: middle; width: 90px; height: 7px; border-radius: 99px; background: var(--chip); margin-left: 10px; overflow: hidden; }
  .prog .bar i { display: block; height: 100%; background: var(--brand); border-radius: 99px; }
  .shelf .sh { align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
  .sh .sub { font-size: 12.5px; color: var(--muted); }
  .row { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: 6px; scrollbar-width: none; }
  .row::-webkit-scrollbar { display: none; }
  .row .card { flex: none; width: 124px; scroll-snap-align: start; }
  .uni { background: linear-gradient(120deg, var(--pink-a), var(--earth-a)); border-radius: 24px; padding: 20px 18px; display: flex; flex-direction: column; gap: 10px; }
  .uh { display: flex; flex-direction: column; gap: 2px; }
  .uh b { font-family: var(--display); font-weight: 400; font-size: 26px; }
  .uh span { font-size: 13px; color: var(--muted); }
  .ur { display: flex; align-items: center; gap: 10px; background: rgba(255,255,255,.75); border: 0; border-radius: 16px; padding: 12px 14px; text-align: left; cursor: pointer; font: inherit; min-width: 0; }
  .ur i { font-style: normal; font-weight: 800; font-size: 13px; color: var(--brand-text); flex: none; }
  .ur b { flex: 1; font-weight: 500; font-size: 14.5px; line-height: 1.4; min-width: 0; overflow-wrap: anywhere; }
  .ur em { font-style: normal; font-weight: 800; color: var(--brand-text); }
  .ur.ok { background: rgba(255,255,255,.4); }
  .oxrow { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 8px; }
  .oxb { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 20px 8px; border: 2px solid var(--line); background: var(--bg); border-radius: 22px; font: inherit; font-size: 14px; cursor: pointer; color: var(--ink); }
  .oxb b { font-family: var(--display); font-weight: 400; font-size: 44px; line-height: 1; }
  .oxb:disabled { cursor: default; opacity: .6; }
  .oxb.right { opacity: 1; border-color: #8BB586; background: #E6F0DF; }
  .oxb.wrong { opacity: 1; border-color: #D98B84; background: #F9E0DC; }
  .fb { margin-top: 14px; border-radius: 18px; padding: 14px 16px; font-size: 14.5px; line-height: 1.55; }
  .fb p { margin: 4px 0 0; }
  .fb.good { background: #E6F0DF; }
  .fb.bad { background: #F9E8E4; }
  #oxfb .btn { margin-top: 12px; }
  .say { background: var(--chip); border-radius: 22px; padding: 16px 18px; display: flex; flex-direction: column; gap: 4px; }
  .say small { color: var(--muted); font-size: 12.5px; }
  .say b { font-weight: 500; font-size: 15.5px; line-height: 1.55; }
  .h3b { margin-top: 4px; }
  .fit p, .wq { margin: 0; font-size: 14.5px; line-height: 1.55; }
  .wq + .wq { margin-top: 10px; }
  .row { scroll-padding-inline: 16px; }

  /* 더 밝고 다양하게 */
  body { background: linear-gradient(180deg, #FFE9C9, #FFD9E6 60%, #DDF1FF); background-attachment: fixed; }
  .app { box-shadow: 0 0 40px rgba(255, 140, 90, .18); }
  .top { background: #fff; border-bottom: 0; box-shadow: 0 2px 12px rgba(255, 140, 90, .15); }
  .logo b { color: var(--brand-text); }
  .slide { min-height: 300px; background: linear-gradient(140deg, var(--a), var(--b)); }
  .slide::before { content: ""; position: absolute; width: 240px; height: 240px; border-radius: 50%; right: -70px; bottom: -90px; background: rgba(255,255,255,.45); }
  .slide:nth-child(even)::before { left: -80px; right: auto; top: -90px; bottom: auto; width: 200px; height: 200px; }
  .slide small { background: #fff; color: var(--brand-text); }
  .slide .go { background: var(--brand); box-shadow: 0 6px 14px rgba(232, 84, 58, .35); }
  .arrow { background: #fff; }
  .search { border-color: #FFCFA3; box-shadow: 0 4px 14px rgba(255, 150, 90, .14); }
  .prog .bar i { background: linear-gradient(90deg, #FF9F5A, #FF5E8A); }
  .prog b { color: var(--brand-text); }
  .shelf .sh h2 { position: relative; padding-left: 14px; }
  .shelf .sh h2::before { content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; width: 6px; border-radius: 4px; background: var(--sc, var(--brand)); }
  .shelf:nth-child(1) { --sc: #FF6F91; } .shelf:nth-child(2) { --sc: #7B6CF0; } .shelf:nth-child(3) { --sc: #45B86B; }
  .shelf:nth-child(4) { --sc: #FF9F43; } .shelf:nth-child(5) { --sc: #2BA8E0; } .shelf:nth-child(6) { --sc: #E8543A; } .shelf:nth-child(7) { --sc: #9B59D6; }
  /* 선반 변주: 큰 카드, 색 띠, 2열 격자 */
  .shelf.v-big .row .card { width: 188px; }
  .shelf.v-big .thumb { aspect-ratio: 5 / 4; }
  .shelf.v-big .th-t { font-size: 19px; }
  .shelf.v-band { background: linear-gradient(180deg, var(--bandA), var(--bandB)); margin-top: 28px; padding-block: 22px 18px; border-radius: 30px; margin-inline: 8px; }
  .shelf.v-band .sh { margin-bottom: 12px; }
  .shelf.v-band .card .t, .shelf.v-band .card .m { color: var(--ink); }
  .shelf.v-grid .row { display: grid; grid-template-columns: repeat(2, 1fr); overflow: visible; }
  .shelf.v-grid .row .card { width: auto; }
  .shelf.v-grid .thumb { aspect-ratio: 16 / 10; }
  .shelf.v-grid .th-b { width: 40%; left: 74%; }
  .shelf.v-grid .th-t { right: 46%; font-size: 17px; }
  /* 썸네일 모양 변주 */
  .thumb.s1 { border-radius: 20px; }
  .thumb.s2 { border-radius: 70px 70px 18px 18px; }
  .thumb.s3 { border-radius: 26px; border: 4px solid #fff; box-shadow: 0 6px 14px rgba(140, 90, 60, .15); transform: rotate(-1.2deg); }
  .thumb.s4 { border-radius: 18px 44px 18px 44px; }
  .thumb.s2 .th-t { top: 22px; text-align: center; }
  .thumb.s1::before, .thumb.s4::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 20% 90%, rgba(255,255,255,.5) 0 22%, transparent 23%), radial-gradient(circle at 90% 15%, rgba(255,255,255,.4) 0 14%, transparent 15%); }
  .thumb.s3::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(45deg, rgba(255,255,255,.25) 0 8px, transparent 8px 16px); }
  .rank .thumb { transform: none; border-width: 0; box-shadow: none; }
  .rank .thumb.s2 { border-radius: 30px 30px 12px 12px; }
  .rank .n { color: #fff; background: #FFB36B; border-radius: 50%; width: 24px; height: 24px; line-height: 24px; font-size: 13px; }
  .rank .n.top { background: var(--brand); color: #fff; }
  .tabs { border-bottom: 0; gap: 8px; padding-bottom: 12px; }
  .tab { border: 2px solid #FFD3A8; border-radius: 999px; background: #fff; padding: 7px 15px; font-size: 14px; margin: 0; }
  .tab[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }
  .uni { background: linear-gradient(120deg, #FFD6EA, #FFE9A8 55%, #CDEBFB); }
  .ur { background: #fff; }
  .tabbar { background: #fff; box-shadow: 0 -4px 18px rgba(255, 140, 90, .16); }
  .btn { box-shadow: 0 6px 14px rgba(232, 84, 58, .28); }
  .btn.ghost { box-shadow: none; }
  .panel { background: #fff; border-color: #FFE0BF; }
  .point { background: #fff; }

  /* 푸망식 재구성: 흰 바탕, 포스터형 썸네일, 전체 화면 장면, 결과 이미지 카드 */
  body { background: #fff; }
  .app { background: #fff; box-shadow: none; }
  .top { box-shadow: none; border-bottom: 1px solid #F1E7DC; }
  .thumb.pz { aspect-ratio: 3 / 4; border-radius: 14px; border: 0; transform: none; box-shadow: 0 3px 10px rgba(80, 50, 30, .12); background: #eee; }
  .thumb.pz::before, .thumb.pz::after { display: none; }
  .thumb.pz svg.poster { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
  .shelf.v-big .row .card { width: 180px; }
  .shelf.v-big .thumb { aspect-ratio: 3 / 4; }
  .shelf .sh h2::before { display: none; }
  .shelf .sh h2 { padding-left: 0; }
  .row .card { width: 132px; }
  .rank .thumb.pz { width: 64px; border-radius: 10px; }
  .slide { padding: 0; min-height: 0; background: none; display: block; cursor: pointer; aspect-ratio: 300 / 330; }
  .slide::before, .slide::after { display: none; }
  .slide > * { max-width: none; }
  .slide .bposter { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
  .bcap { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 16px 14px; background: linear-gradient(0deg, rgba(40, 25, 20, .55), rgba(40, 25, 20, 0)); color: #fff; display: flex; flex-direction: column; align-items: center; gap: 6px; }
  .bcap small { background: #fff; color: var(--brand-text); border-radius: 999px; padding: 1px 12px; font-size: 12.5px; font-weight: 800; }
  .bcap p { font-size: 14px; font-weight: 700; text-shadow: 0 1px 4px rgba(0,0,0,.4); }
  .bcap .go { margin: 0; }
  .banner .arrows { bottom: auto; top: 50%; left: 0; right: 0; transform: translateY(-50%); justify-content: space-between; padding-inline: 10px; pointer-events: none; }
  .arrow { pointer-events: auto; background: rgba(255,255,255,.85); }
  .counter { top: 12px; bottom: auto; }
  /* 퀴즈 */
  .quiz { background: #fff; }
  .qbg { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; }
  .quiz.plain .qbg { display: none; }
  .qwrap { position: relative; z-index: 1; background: transparent; max-width: 520px; }
  .quiz.plain .qwrap { background: #fff; }
  .qtop { background: transparent; }
  .quiz:not(.plain) .qtop b, .quiz:not(.plain) .qstep { color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,.35); }
  .quiz:not(.plain) .qclose { color: #fff; filter: drop-shadow(0 1px 3px rgba(0,0,0,.4)); }
  .qbar { background: rgba(255,255,255,.4); }
  .qbody { gap: 14px; padding-top: 12px; min-height: calc(100vh - 62px); }
  .qcard { background: #fff; border: 3px solid #5B4638; border-radius: 28px; padding: 22px 20px 24px; text-align: center; box-shadow: 0 8px 0 rgba(91, 70, 56, .18); margin-top: 6px; }
  .qcard .qno { font-size: 20px; color: var(--muted); margin-bottom: 6px; }
  .qcard .qq { font-size: 24px; font-family: var(--display); font-weight: 400; text-wrap: balance; }
  .qmid { width: 150px; height: auto; align-self: center; margin-top: auto; filter: drop-shadow(0 0 3px rgba(255,255,255,.9)); }
  .opts { margin-top: 0; }
  .opt { background: #1E1A19; border: 0; color: #fff; text-align: center; font-weight: 700; border-radius: 12px; padding: 17px 14px; font-size: 15.5px; }
  .opt:hover { background: #3A302D; }
  .opt.sel { background: var(--brand); }
  .prev { align-self: center; background: rgba(255,255,255,.85); border-radius: 999px; padding: 6px 16px; }
  .qposter { border-radius: 24px; overflow: hidden; aspect-ratio: 3 / 4; position: relative; box-shadow: 0 6px 18px rgba(80,50,30,.18); }
  .qposter svg { position: absolute; inset: 0; width: 100%; height: 100%; }
  .btn.blk { background: #1E1A19; border-radius: 12px; padding: 17px; font-size: 17px; box-shadow: none; }
  .oxrow { margin-top: 0; }
  .oxb { background: #fff; }
  #oxfb { margin-top: 0; }
  /* 결과 이미지 */
  .rimg { display: flex; flex-direction: column; gap: 10px; align-items: stretch; }
  .rpic { width: 100%; height: auto; border-radius: 20px; display: block; box-shadow: 0 8px 24px rgba(80,50,30,.2); }
  .rhint { text-align: center; font-size: 13px; color: var(--muted); }
  .rload { aspect-ratio: 3 / 4; border-radius: 20px; background: var(--chip); display: grid; place-items: center; color: var(--muted); font-size: 14px; }

  .slide { aspect-ratio: 300 / 360; }

/* ---- 멀티페이지 공용 ---- */
.skip { position: absolute; left: 8px; top: -60px; background: #1E1A19; color: #fff; padding: 10px 14px; border-radius: 8px; z-index: 30; }
.skip:focus { top: 8px; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.page { padding-top: 14px; padding-bottom: 18px; }
.crumb { font-size: 12.5px; color: var(--muted); margin-bottom: 10px; }
.crumb a { color: var(--muted); } .crumb i { font-style: normal; margin: 0 2px; }
.page h1 { font-size: 24px; line-height: 1.3; margin: 8px 0 8px; font-weight: 800; }
.lead { font-size: 15.5px; color: var(--ink); margin: 0 0 12px; }
.tmeta { font-size: 13px; color: var(--muted); margin: 0 0 12px; }
.tp .qposter { max-width: 320px; margin: 4px auto 14px; }
.tp .btn.blk, .art .btn.blk { display: block; width: 100%; text-align: center; text-decoration: none; }
.prose h2, .art h2 { font-size: 18px; margin: 24px 0 8px; font-weight: 800; }
.prose h3 { font-size: 16px; margin: 0 0 4px; }
.prose p, .art p { margin: 0 0 12px; word-break: keep-all; }
.prose ul, .art ul { padding-left: 20px; margin: 0 0 12px; }
.prose li, .art li { margin-bottom: 4px; }
.rtype { border: 1.5px solid var(--line); border-radius: 16px; padding: 14px; margin-bottom: 10px; background: #fff; }
.rtype .rt { color: var(--brand-text); font-weight: 700; }
.glist { display: grid; gap: 10px; margin: 8px 0 14px; }
.gcard { display: block; text-decoration: none; color: var(--ink); border: 1.5px solid var(--line); border-radius: 16px; padding: 14px; background: #fff; }
.gcard b { display: block; font-size: 15.5px; margin-bottom: 2px; }
.gcard span { font-size: 13.5px; color: var(--muted); }
.relrow { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 8px; }
.relrow .card { width: auto; }
.adbox { margin: 16px 0; text-align: center; min-height: 90px; }
.adbox small { display: block; font-size: 11px; color: var(--muted); }
.coupang { font-size: 12px; color: var(--muted); margin: 8px 0; }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-bottom: 8px; }
.foot a { color: var(--muted); }
.ranks { display: grid; gap: 10px; margin-top: 12px; }

  /* 목록 카드 제목: 통통한 글씨와 분류 표시 */
  .card .t, .rank .tx b { font-family: var(--display); font-weight: 400; font-size: 16px; line-height: 1.25; letter-spacing: -0.01em; color: var(--ink); text-wrap: balance; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .card .m, .rank .tx > span { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 6px; font-size: 12px; color: var(--muted); }
  .card .m .tg, .rank .tx .tg { font-style: normal; font-weight: 700; font-size: 11px; line-height: 1; padding: 4px 8px; border-radius: 999px; background: #FFE9E1; color: var(--brand-text); }
  .card .m em, .rank .tx em { font-style: normal; }
  .card .m .done, .rank .tx .done { font-weight: 700; color: #2E8B57; }
  .shelf.v-band .card .m .tg { background: rgba(255, 255, 255, .85); }
  a.card, a.rank, a.slide { color: inherit; text-decoration: none; }
  a.card:hover .t, a.rank:hover .tx b { color: var(--brand-text); }
  .card .t, .rank .tx b { overflow-wrap: break-word; word-break: keep-all; }

  /* 컴퓨터 화면에서 옆으로 넘기는 화살표 */
  .rw { position: relative; }
  .arw { display: none; position: absolute; top: 74px; z-index: 3; width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--line); background: #fff; color: var(--ink); font-size: 26px; line-height: 1; padding: 0 0 3px; cursor: pointer; box-shadow: 0 3px 10px rgba(80, 50, 30, .18); align-items: center; justify-content: center; }
  .arw:hover { background: var(--brand); border-color: var(--brand); color: #fff; }
  .arw.l { left: 6px; }
  .arw.r { right: 6px; }
  .shelf.v-big .arw { top: 100px; }
  @media (hover: hover) and (pointer: fine) { .arw:not([hidden]) { display: flex; } }
