/* ── 토큰 ─────────────────────────────────────── */
:root{
  /* 색은 히어로 캐릭터·씬에서 뽑았다. 동양적인 red/coral 을 주색으로 두고
     금색은 테두리·장식으로만 쓴다. 본문 대비는 전부 4.5:1 이상으로 맞췄다. */
  --bg:#FFF9F1; --bg-2:#FFFDF9; --bg-3:#F8F5EE;
  --surface:#FFFFFF; --surface-2:rgba(255,255,255,.72);
  --ink:#3A2A1C; --ink-2:#6E5A45; --ink-3:#8A7358;
  --line:#EFE3D2; --gold:#C9A227;
  /* 주황이 두 개인 이유: 글자로 쓰는 색과 흰 글씨를 얹는 채움색은
     통과 기준이 다르다. 하나로 합치면 둘 중 하나가 반드시 깨진다.
       --primary 글자  #C0472A on #FFF9F1 = 4.81:1
       --cta     채움  흰 글씨와 대비를 확보한 테라코타 */
  --primary:#C0472A; --primary-soft:#FBEAE4;
  --cta:#A64932; --cta-ink:#FFFFFF;
  --good:#C43D63; --neutral:#C0472A; --caution:#A65F0F;
  --good-bg:#FBE9EE; --neutral-bg:#F9E7DF; --caution-bg:#F8EDD8;
  --r-s:12px; --r-m:16px; --r-l:22px; --r-xl:28px;
  --shadow-s:0 1px 2px rgba(58,42,28,.04), 0 4px 12px rgba(58,42,28,.05);
  --shadow-m:0 2px 4px rgba(58,42,28,.05), 0 12px 28px rgba(58,42,28,.08);
  --font:-apple-system,BlinkMacSystemFont,"Pretendard","Apple SD Gothic Neo",
         "Noto Sans KR","Malgun Gothic",system-ui,sans-serif;
  --pad:20px;
}

@media (prefers-color-scheme:dark){
  :root:not([data-theme="light"]){
    --bg:#17120E; --bg-2:#1C1611; --bg-3:#120E0B;
    --surface:#241D17; --surface-2:rgba(36,29,23,.78);
    --ink:#F5EFE7; --ink-2:#C2B3A2; --ink-3:#95877A;
    --line:#362C23; --gold:#D9B84A;
    --primary:#D6543A; --primary-soft:#3A241C;
    /* 어두운 배경에서는 밝은 면에 어두운 글씨가 정석이다. 흰 글씨를
       유지하면 4.05:1 로 미달이고(기존 상태), 채움을 어둡게 낮추면
       배경에 묻힌다. 밝게 올리고 글씨를 뒤집어 5.83:1 로 맞췄다. */
    --cta:#A64932; --cta-ink:#FFFFFF;
    --good:#F2809E; --neutral:#E8795A; --caution:#E0A852;
    --good-bg:#33202A; --neutral-bg:#3A241C; --caution-bg:#332714;
    --shadow-s:0 1px 2px rgba(0,0,0,.3), 0 4px 12px rgba(0,0,0,.28);
    --shadow-m:0 2px 4px rgba(0,0,0,.34), 0 12px 28px rgba(0,0,0,.4);
  }
}

*{box-sizing:border-box}
html,body{margin:0}
/* display:flex/grid 가 브라우저 기본 [hidden]{display:none} 을 이긴다.
   .mytti·.appbar__me 처럼 flex 인 요소가 hidden 인데도 빈 상자로 남았다. */
[hidden]{display:none !important}
body{
  background:linear-gradient(180deg,var(--bg) 0%,var(--bg-2) 45%,var(--bg-3) 100%);
  background-attachment:fixed;
  color:var(--ink); font-family:var(--font); font-size:16px; line-height:1.6;
  -webkit-text-size-adjust:100%; -webkit-font-smoothing:antialiased;
}

/* PC 에서도 가운데 앱 화면. 결과처럼 정보가 많은 화면만 조금 넓힌다. */
#app{max-width:500px; margin:0 auto; padding:0 var(--pad) 40px}
@media (min-width:760px){
  #app:has(#step-result.is-active),
  #app:has(#step-other.is-active){max-width:620px}
}

/* ── 스텝 전환 ───────────────────────────────── */
.step{display:none; animation:rise .3s cubic-bezier(.2,.7,.3,1) both}
.step.is-active{display:block}
@keyframes rise{from{opacity:0; transform:translateY(10px)} to{opacity:1; transform:none}}
@media (prefers-reduced-motion:reduce){
  .step{animation:none}
  .cast__img,.shrine__god,.stage__char,.bubble,.lines>*{animation:none !important}
}

/* ── 상단바 ─────────────────────────────────── */
.appbar{
  display:flex; align-items:center; justify-content:space-between;
  padding:14px 2px 2px;
}
.appbar__mark{
  font-size:17px; font-weight:700;
  letter-spacing:.18em; color:var(--ink-2);
}
.appbar__me{
  display:flex; align-items:center; gap:7px; min-height:36px; padding:5px 12px 5px 6px;
  border:1px solid var(--line); border-radius:999px; background:var(--surface-2);
  color:var(--ink-2); font:inherit; font-size:13px; font-weight:600; cursor:pointer;
}
.appbar__me img{width:24px; height:24px; object-fit:contain}

/* ── 히어로 ─────────────────────────────────── */
.hero{padding:8px 2px 0; text-align:center}
.hero__today{
  margin:0 0 12px; font-size:13px; font-weight:600; color:var(--ink-3);
  min-height:1em; letter-spacing:-.01em;
}
.hero__today b{color:var(--primary); font-weight:700}
.hero__title{
  margin:0; font-family:'Gowun Batang',var(--font);
  font-size:32px; line-height:1.34; font-weight:700; letter-spacing:-.02em;
}
.hero__sub{margin:10px 0 0; color:var(--ink-2); font-size:14.5px; line-height:1.6}

/* ── 첫 화면 캐릭터 ─────────────────────────── */
/* 열두 마리를 한 줄에 늘어놓으면 마리당 70px 이라 얼굴이 안 읽힌다(실측).
   한 마리를 크게 세우고 둘을 흐리게 옆에 둔다. 뒤의 빛은 CSS 라 이미지
   용량을 안 쓴다.
   합이 100% 를 넘으면 가로 스크롤이 생긴다 — 60 + 28 + 28 - 9 - 9 = 98%. */
.cast{
  position:relative; margin:6px 0 14px;
  display:flex; align-items:flex-end; justify-content:center;
}
.cast::before{
  content:''; position:absolute; left:50%; top:48%; translate:-50% -50%;
  width:100%; aspect-ratio:1;
  background:radial-gradient(circle,
    rgba(255,214,150,.6) 0%, rgba(255,226,183,.3) 44%, transparent 74%);
  pointer-events:none;
}
.cast__stage{position:relative; flex:0 0 auto; width:60%; max-width:230px; z-index:2}
.cast__main{
  display:block; width:100%; height:auto;
  filter:drop-shadow(0 14px 22px rgba(58,42,28,.16));
  animation:castIn .55s cubic-bezier(.2,.7,.3,1) both;
}
/* 조연은 주인공 뒤로 물러나야 한다. 겹쳐 세우고 흐리게 만든다. */
.cast__side{
  flex:0 0 auto; width:28%; max-width:108px; height:auto;
  opacity:.42; filter:blur(1.4px);
  animation:castIn .7s cubic-bezier(.2,.7,.3,1) both;
}
.cast__side:first-child{margin-right:-9%}
.cast__side:last-child{margin-left:-9%}

/* 말풍선은 캐릭터 위에 겹친다. 세로 예산을 한 픽셀도 안 쓴다 —
   360x740 에서 CTA 가 첫 화면 밖으로 밀리면 안 된다. */
.cast__hi{
  position:absolute; right:-14%; top:4%; margin:0; z-index:3;
  max-width:132px; padding:8px 12px;
  background:var(--surface); border:1px solid var(--line);
  border-radius:14px 14px 14px 4px; box-shadow:var(--shadow-s);
  font-size:12.5px; font-weight:600; line-height:1.45; color:var(--ink-2);
  /* 기본값은 한글을 글자 단위로 끊어서 '호랑이신 / 이야' 가 된다.
     keep-all 이면 띄어쓰기에서만 끊긴다 — '안녕! 나는 / 호랑이신이야'. */
  word-break:keep-all;
  animation:hiIn .5s .45s cubic-bezier(.2,.7,.3,1) both;
}
.cast__hi b{color:var(--primary); font-weight:700}
.cast__hi:empty{display:none}
@keyframes castIn{from{opacity:0; transform:scale(.94)} to{opacity:1; transform:none}}
@keyframes hiIn{from{opacity:0; transform:translateY(6px)} to{opacity:1; transform:none}}

/* ── 카드 ───────────────────────────────────── */
.card{
  background:var(--surface); border:1px solid var(--line); border-radius:var(--r-xl);
  padding:18px; box-shadow:var(--shadow-s); margin-bottom:12px;
}
.card__title{
  margin:0 0 10px; text-align:center;
  font-size:14px; font-weight:600; color:var(--ink-2);
}

/* ── 연도 선택 ──────────────────────────────── */
.yearpick{display:flex; align-items:center; justify-content:center; gap:14px}
.yearpick__field{position:relative; display:flex; align-items:baseline; justify-content:center}
.yearpick__input{
  width:min(180px,44vw); padding:2px 0; border:0; background:transparent; color:var(--ink);
  font-family:inherit; font-size:44px; font-weight:800; line-height:1.1;
  letter-spacing:-.02em; text-align:center; -moz-appearance:textfield;
}
.yearpick__input::-webkit-outer-spin-button,
.yearpick__input::-webkit-inner-spin-button{-webkit-appearance:none; margin:0}
.yearpick__input:focus-visible{outline:2px solid var(--primary); outline-offset:6px; border-radius:8px}
.yearpick__unit{font-size:20px; font-weight:700; color:var(--ink-3); margin-left:2px}
.yearpick__step{
  flex:0 0 52px; width:52px; height:52px; border-radius:999px;
  border:1px solid var(--line); background:var(--bg-2);
  font-size:24px; font-weight:600; color:var(--ink-2); cursor:pointer;
  transition:transform .12s ease, background .12s ease;
}
.yearpick__step:active{transform:scale(.94); background:var(--line)}

/* 연도를 바꾸면 실시간으로 바뀐다 */
.mytti{
  display:flex; align-items:center; justify-content:center; gap:12px;
  margin-top:12px; padding-top:12px; border-top:1px solid var(--line);
}
.mytti__img{width:56px; height:56px; object-fit:contain}
.mytti__text{display:flex; flex-direction:column; line-height:1.3}
.mytti__label{font-size:12px; color:var(--ink-3)}
.mytti__name{font-size:19px; font-weight:800; letter-spacing:-.02em}

/* ── 토글 카드 ──────────────────────────────── */
.card--toggle{padding:16px 18px}
.toggle{display:flex; align-items:center; gap:14px; cursor:pointer; min-height:48px}
.toggle__text{display:flex; flex-direction:column; gap:2px; flex:1; min-width:0}
.toggle__text strong{font-size:15px; font-weight:600}
.toggle__text span{font-size:12.5px; color:var(--ink-3)}
.toggle input{position:absolute; opacity:0; width:0; height:0}
.toggle__switch{
  flex:0 0 50px; width:50px; height:30px; border-radius:999px;
  background:var(--line); position:relative; transition:background .2s ease;
}
.toggle__switch::after{
  content:''; position:absolute; top:3px; left:3px; width:24px; height:24px;
  border-radius:999px; background:var(--surface); box-shadow:var(--shadow-s);
  transition:transform .22s cubic-bezier(.2,.7,.3,1);
}
.toggle input:checked + .toggle__switch{background:var(--cta)}
.toggle input:checked + .toggle__switch::after{transform:translateX(20px)}
.toggle input:focus-visible + .toggle__switch{outline:2px solid var(--primary); outline-offset:2px}

/* display 토글이 아니라 높이 애니메이션. 갑자기 튀어나오지 않게. */
.expand{display:grid; grid-template-rows:0fr; transition:grid-template-rows .28s ease}
.expand[hidden]{display:none}
.expand.is-open{grid-template-rows:1fr}
.expand__inner{overflow:hidden; min-height:0}
.field{display:block; margin-top:16px}
.field__label{display:block; margin-bottom:8px; font-size:13px; font-weight:600; color:var(--ink-2)}
.input{
  width:100%; padding:14px 16px; background:var(--bg-2); color:var(--ink);
  border:1px solid var(--line); border-radius:var(--r-m); font:inherit; font-size:16px;
}
.input:focus-visible{outline:2px solid var(--primary); outline-offset:1px}
.note{
  margin:12px 0 2px; padding:12px 14px; background:var(--neutral-bg);
  color:var(--ink-2); border-radius:var(--r-s); font-size:13px; line-height:1.6;
}

/* ── 버튼 ───────────────────────────────────── */
.btn{
  display:block; width:100%; min-height:54px; padding:15px 18px;
  border:0; border-radius:18px; font:inherit; font-size:17px; font-weight:700;
  cursor:pointer; transition:transform .12s ease, opacity .12s ease; text-decoration:none; text-align:center;
}
.btn:active{transform:scale(.985)}
.btn--primary{background:var(--cta); color:var(--cta-ink); box-shadow:var(--shadow-m)}
.btn--primary:disabled{opacity:.42; box-shadow:none; cursor:default}
.btn--ghost{
  background:var(--surface); color:var(--ink); border:1px solid var(--line);
  box-shadow:var(--shadow-s);
}
.btn--hero{min-height:58px; font-size:18px; margin-top:4px}
.btn--sm{min-height:46px; font-size:15px; padding:11px 16px}
.cta-dock{position:sticky; bottom:14px; z-index:5}
.assure{
  margin:10px 0 0; text-align:center; font-size:13px; color:var(--ink-2);
  letter-spacing:-.01em; font-weight:600;
}
.assure--sub{margin-top:5px; font-size:11.5px; color:var(--ink-3); font-weight:400}

/* 740px 이하는 세로 예산이 빠듯하다. 캐릭터를 조금 줄이고 여백을 조인다. */
@media (max-height:820px){
  .hero__title{font-size:28px}
  .hero__sub{font-size:14px; margin-top:8px}
  .cast{margin:4px 0 10px}
  .cast__stage{width:54%; max-width:186px}
  .cast__side{width:26%; max-width:88px}
  .cast__hi{font-size:12px; padding:7px 10px; max-width:118px}
  .card{padding:16px; margin-bottom:10px}
  .yearpick__input{font-size:38px}
  .yearpick__step{flex-basis:48px; width:48px; height:48px}
  .btn--hero{min-height:54px}
  /* 연도를 넣으면 '내 띠' 가 붙어 72px 이 늘어난다. 360x740 에서 그만큼이
     모자랐다(실측 -17px). 썸네일과 여백을 한 단계 줄인다. */
  .mytti{margin-top:10px; padding-top:10px; gap:10px}
  .mytti__img{width:44px; height:44px}
  .mytti__name{font-size:17px}
}

/* ── 신을 부르는 중 ─────────────────────────── */
.summon{min-height:70vh; display:flex; flex-direction:column;
        align-items:center; justify-content:center; gap:26px}
.summon__stage{position:relative; width:74%; max-width:300px; aspect-ratio:1;
               display:grid; place-items:center}
.summon__stage::before{
  content:''; position:absolute; inset:-6%;
  background:radial-gradient(circle, rgba(255,208,138,.6) 0%, transparent 66%);
  animation:breathe 2.2s ease-in-out infinite;
}
.summon__img{position:relative; width:100%; height:auto; animation:breathe 2.2s ease-in-out infinite}
@keyframes breathe{0%,100%{opacity:.72; transform:scale(.97)} 50%{opacity:1; transform:scale(1.02)}}
.summon__text{margin:0; color:var(--ink-2); font-size:16px; font-weight:600}
.spark{
  position:absolute; width:7px; height:7px; border-radius:999px;
  background:var(--gold); opacity:0; animation:twinkle 2.6s ease-in-out infinite;
}
.spark--1{top:12%; left:16%; animation-delay:0s}
.spark--2{top:24%; right:12%; animation-delay:.5s}
.spark--3{bottom:22%; left:10%; animation-delay:1s}
.spark--4{bottom:14%; right:20%; animation-delay:1.5s}
@keyframes twinkle{0%,100%{opacity:0; transform:scale(.4)} 50%{opacity:.9; transform:scale(1)}}

/* ── 오늘의 운세 ────────────────────────────── */
.today{padding-top:6px}
.today__date{margin:0; text-align:center; font-size:13px; font-weight:600; color:var(--ink-3)}
.today__kicker{
  margin:4px 0 0; text-align:center;
  font-size:22px; font-weight:700; letter-spacing:.02em;
}
.today__return{
  margin:10px auto 0; width:max-content; max-width:100%; padding:6px 12px;
  border-radius:999px; background:var(--primary-soft); color:var(--primary);
  font-size:13px; font-weight:700;
}
.today__streak{margin:8px 0 0; text-align:center; font-size:12.5px; font-weight:700; color:var(--gold)}

.shrine{position:relative; margin:10px 0 0; padding-bottom:14px; display:grid; place-items:center}
.shrine::before{
  content:''; position:absolute; left:50%; top:44%; translate:-50% -50%;
  width:86%; aspect-ratio:1;
  background:radial-gradient(circle, rgba(255,214,150,.5) 0%, transparent 66%);
}
.shrine__god{
  position:relative; width:74%; max-width:300px; height:auto;
  filter:drop-shadow(0 14px 24px rgba(58,42,28,.16));
  animation:godIn .5s cubic-bezier(.2,.7,.3,1) both;
}
/* 말하기 영상의 첫 장면을 쓴다. 영상과 같은 크기·마스크를 적용해야 전환 때
   네모난 배경이나 캐릭터 위치 차이가 생기지 않는다. */
.shrine__god.is-video-poster{
  aspect-ratio:1; object-fit:cover; filter:none;
  -webkit-mask-image:radial-gradient(ellipse 50% 56% at 50% 52%, #000 78%, transparent 100%);
          mask-image:radial-gradient(ellipse 50% 56% at 50% 52%, #000 78%, transparent 100%);
}
@keyframes godIn{from{opacity:0; transform:scale(.85)} to{opacity:1; transform:none}}

/* 말하는 영상. 정지 이미지 위에 겹쳐 두고 재생이 실제로 시작될 때만 바꿔 넣는다.
   영상 배경이 투명이 아니라 호박색(#F9D7AA~#FDECD0)이라 그냥 얹으면 네모가
   보인다. 원형으로 부드럽게 깎으면 이미 깔려 있는 .shrine::before 광원
   (rgba(255,214,150,.5))과 같은 계열이라 라이트에서는 녹아들고, 다크에서는
   신이 나타난 자리처럼 읽힌다.
   레이아웃 높이는 아래 .shrine__god 이 잡는다 — 영상은 떠 있기만 한다. */
.shrine__say{
  position:absolute; left:50%; top:0; translate:-50% 0;
  width:74%; max-width:300px; aspect-ratio:1; height:auto;
  object-fit:cover; opacity:0; transition:opacity .45s ease;
  pointer-events:none;
  /* 가로세로를 따로 준다. circle 로 하면 기본 반경이 '중심에서 모서리까지'라
     퍼센트가 상자보다 커져서 거의 안 깎인다(64% 로 줬더니 변의 78% 가 그대로
     남았다). 세로를 조금 크게 잡아야 머리 끝과 발이 안 잘린다. */
  -webkit-mask-image:radial-gradient(ellipse 50% 56% at 50% 52%, #000 78%, transparent 100%);
          mask-image:radial-gradient(ellipse 50% 56% at 50% 52%, #000 78%, transparent 100%);
}
.shrine__say.is-on{opacity:1}

/* 영상 배경은 투명이 아니라 호박색(#F9D7AA~#FDECD0)이다. 지우려 들지 말고
   뒤에 같은 색 광원을 깔아 가장자리를 녹인다. 여기 이미 있던 광원과 같은
   계열이라, 말하는 동안만 더 크고 진하게 키우면 된다. */
.shrine.has-say-poster::before,.shrine.is-speaking::before{
  width:104%;
  background:radial-gradient(circle closest-side,
    rgba(250,219,181,.92) 0%, rgba(253,236,208,.5) 58%, transparent 78%);
}

/* !important 가 필요하다 — .shrine__god 의 godIn 애니메이션이 fill-mode:both 라
   끝난 뒤에도 opacity:1 을 붙들고 있고, 애니메이션은 보통 선언을 이긴다.
   [hidden] 때와 같은 종류의 문제다. */
.shrine.is-speaking .shrine__god{opacity:0 !important; transition:opacity .45s ease}

/* 다크에서는 호박색 배경을 숨길 방법이 없다 — 밝은 색이 어두운 바탕으로
   사라지는 이상 반드시 밝기 경사가 남는다. 그래서 감추지 않고 '신이 나타난
   자리'로 쓰되, 그대로 두면 원반이 너무 밝아 눈을 때린다. 한 단계 낮추고
   광원도 크림색 대신 따뜻한 갈색으로 바꿔 테마 안에 들어오게 한다. */
@media (prefers-color-scheme:dark){
  :root:not([data-theme="light"]) .shrine__say{filter:brightness(.84) saturate(1.06)}
  :root:not([data-theme="light"]) .shrine.is-speaking::before{
    background:radial-gradient(circle closest-side,
      rgba(198,146,92,.5) 0%, rgba(150,104,60,.26) 58%, transparent 78%);
  }
}

/* 움직임을 줄여 달라고 한 사용자에게는 영상을 아예 띄우지 않는다.
   JS 에서도 막지만, 스크립트가 죽어도 지켜져야 하는 약속이다. */
@media (prefers-reduced-motion:reduce){
  .shrine__say{display:none}
  .shrine.is-speaking .shrine__god{opacity:1}
}
.shrine__badge{
  position:relative; margin-top:-14px; padding:8px 22px; border-radius:999px;
  background:var(--neutral); color:#fff; font-size:16px; font-weight:800;
  box-shadow:var(--shadow-m);
}
[data-grade="대길"] .shrine__badge,[data-grade="길"] .shrine__badge{background:var(--good)}
[data-grade="흉"] .shrine__badge,[data-grade="대흉"] .shrine__badge{background:var(--caution)}

.godname{
  margin:14px 0 0; text-align:center; display:flex; flex-direction:column; gap:3px;
}
.godname__hanja{
  font-size:15px; font-weight:700;
  color:var(--gold); letter-spacing:.24em;
}
.godname__name{font-size:21px; font-weight:800; letter-spacing:-.02em}
.godname__ohang{font-size:13px; color:var(--ink-3)}

/* 말풍선 — 카드와 확실히 구분되어야 "신이 말한다"로 읽힌다 */
.bubble{
  position:relative; margin:20px 0 0; padding:20px 22px;
  background:var(--primary-soft); border-radius:var(--r-xl);
  animation:fadeIn .4s .12s ease both;
}
.bubble::before{
  content:''; position:absolute; top:-9px; left:50%; translate:-50% 0;
  border-left:11px solid transparent; border-right:11px solid transparent;
  border-bottom:10px solid var(--primary-soft);
}
/* 라벨에 캐릭터 얼굴을 넣어야 "누가 말하는지"가 한눈에 읽힌다. */
.bubble__label{
  margin:0 0 8px; display:flex; align-items:center; justify-content:center; gap:6px;
  font-size:12.5px; font-weight:700; color:var(--primary);
}
.bubble__face{width:22px; height:22px; object-fit:contain}
.bubble__text{margin:0; text-align:center; font-size:18px; font-weight:700; line-height:1.55}
@keyframes fadeIn{from{opacity:0} to{opacity:1}}

.duo{display:grid; grid-template-columns:1fr 1fr; gap:12px; margin-top:16px}
.minicard{
  background:var(--surface); border:1px solid var(--line); border-radius:var(--r-l);
  padding:14px 16px; box-shadow:var(--shadow-s);
}
.minicard__label{margin:0 0 6px; font-size:12px; color:var(--ink-3)}
.minicard__value{margin:0; font-size:17px; font-weight:700; letter-spacing:-.01em}
.minicard__value small{margin-left:5px; font-size:11px; font-weight:500; color:var(--ink-3)}
/* 계산값(경진 庚辰)은 보조로 작게. 지우면 "AI가 지어낸 말"로 읽히고,
   앞세우면 명리 사이트처럼 어려워 보인다. */
.minicard__sub{margin:6px 0 0; font-size:11.5px; color:var(--ink-3); letter-spacing:.02em}
.minicard__sub b{font-weight:700; color:var(--gold)}

/* 전문용어는 지우지 않고 2차 정보로 내린다 */
.whybtn{
  display:block; margin:10px auto 0; padding:8px 14px; min-height:36px;
  border:1px solid var(--line); border-radius:999px; background:var(--surface-2);
  color:var(--ink-3); font:inherit; font-size:12.5px; cursor:pointer;
}
.whybtn[aria-expanded="true"]{color:var(--primary); border-color:var(--primary)}
.why{
  margin:10px 0 0; padding:14px 16px; background:var(--neutral-bg);
  border-radius:var(--r-l); font-size:13px; line-height:1.7; color:var(--ink-2);
}
.why b{color:var(--ink); font-weight:700}
.gauge{margin:8px 0 0; font-size:12px; letter-spacing:.16em; color:var(--gold)}

/* 세 문장을 라벨 달린 카드로. 지어낸 항목이 아니라 실제 계산 축이다. */
.lines{display:flex; flex-direction:column; gap:12px; margin-top:16px}
.linecard{
  background:var(--surface); border:1px solid var(--line); border-radius:var(--r-l);
  padding:16px 18px; box-shadow:var(--shadow-s);
  animation:cardIn .4s cubic-bezier(.2,.7,.3,1) both;
}
.linecard:nth-child(2){animation-delay:.06s}
@keyframes cardIn{from{opacity:0; transform:translateY(8px)} to{opacity:1; transform:none}}
.linecard__label{
  margin:0 0 7px; font-size:12.5px; font-weight:700; color:var(--primary);
  display:flex; align-items:center; gap:6px;
}
.linecard__body{margin:0; font-size:15.5px; line-height:1.65; color:var(--ink)}

.today-share{display:grid; grid-template-columns:minmax(0,1fr) auto; gap:9px; margin-top:20px}
.today-share #btn-share-today,.today-share #btn-share-card{margin:0}
.today-share #btn-share-card{min-width:126px}
.interest{margin-top:26px; padding:0; border:0; background:transparent}
.interest__eyebrow{margin:0; font-size:12px; font-weight:700; color:var(--primary)}
.interest__title{margin:4px 0 3px; font-size:17px; letter-spacing:-.02em}
.interest__hint{margin:0; font-size:12.5px; color:var(--ink-3)}
.interest__choices{display:grid; grid-template-columns:1fr 1fr; gap:8px; margin-top:12px}
.interest__choice{min-height:56px; padding:9px 12px; border:1px solid var(--line); border-radius:14px; background:var(--surface); color:var(--ink); font:inherit; text-align:left; cursor:pointer; transition:border-color .16s ease,background .16s ease,transform .12s ease}
.interest__choice:active{transform:scale(.98)}
.interest__choice strong{display:block; font-size:14px}
.interest__choice span{display:block; margin-top:1px; font-size:11px; color:var(--ink-3)}
.interest__choice.is-selected{border-color:var(--primary); background:var(--primary-soft)}
.interest__choice.is-selected strong{color:var(--primary)}
.personal-followup{margin-top:12px; padding:15px 17px; border-radius:var(--r-l); background:var(--neutral-bg)}
.personal-followup__label{display:block; margin-bottom:4px; font-size:12px; font-weight:700; color:var(--primary)}
.personal-followup strong{font-size:14px; line-height:1.6; color:var(--ink)}
.age-note{margin-top:14px; padding:0 2px; color:var(--ink-2)}
.age-note__label{display:block; margin-bottom:3px; font-size:12px; font-weight:700; color:var(--accent)}
.age-note strong{display:block; font-size:13.5px; line-height:1.6; font-weight:500}

.fortune-reaction{margin-top:26px; padding-top:20px; border-top:1px solid var(--line)}
.fortune-reaction__eyebrow{margin:0; font-size:12px; font-weight:700; color:var(--primary)}
.fortune-reaction__title{margin:4px 0 3px; font-size:17px; letter-spacing:-.02em}
.fortune-reaction__hint{margin:0; font-size:12.5px; color:var(--ink-3)}
.fortune-reaction__choices{display:grid; grid-template-columns:repeat(3,1fr); gap:7px; margin-top:12px}
.fortune-reaction__choice{min-height:43px; padding:8px 5px; border:1px solid var(--line); border-radius:12px; background:var(--surface); color:var(--ink-2); font:inherit; font-size:12px; font-weight:700; cursor:pointer; transition:border-color .16s ease,background .16s ease,transform .12s ease}
.fortune-reaction__choice:active{transform:scale(.97)}
.fortune-reaction__choice.is-selected{border-color:var(--primary); background:var(--primary-soft); color:var(--primary)}

/* 이번 주의 흐름과 실제 방문한 날을 한 묶음으로 보여 준다. */
.companion-record{margin-top:28px; padding-top:22px; border-top:1px solid var(--line)}
.companion-record.is-weekly-only{padding-top:0; border-top:0}
.companion-record__eyebrow{margin:0; font-size:12px; font-weight:700; color:var(--primary)}
.companion-record__title{margin:4px 0 14px; font-size:17px; letter-spacing:-.02em}
.fortune-log{margin-top:14px; padding:0; background:transparent; border:0}
.fortune-log__eyebrow{margin:0; font-size:12px; font-weight:700; color:var(--primary)}
.fortune-log__title{margin:4px 0 8px; font-size:15px; letter-spacing:-.02em}
.fortune-log__list{list-style:none; margin:0; padding:0}
.fortune-log__item{padding:11px 0; border-top:1px solid var(--line)}
.fortune-log__item.is-today{margin:0; padding:11px 0; border-radius:0; background:transparent}
.fortune-log__meta{margin:0 0 3px; font-size:12px; font-weight:700; color:var(--ink-3)}
.fortune-log__word{margin:0; font-size:14px; line-height:1.55; color:var(--ink-2)}
.fortune-log__more{display:block; margin:12px auto 0; padding:7px 12px; border:0; background:none; color:var(--primary); font:inherit; font-size:13px; font-weight:700; cursor:pointer; text-decoration:underline; text-underline-offset:3px}

.weekly-message{margin-top:0; padding:15px 16px; border:1px solid rgba(201,151,39,.24); border-radius:16px; background:linear-gradient(135deg,#fffaf0,#fff5e5)}
.weekly-message__eyebrow{margin:0; color:var(--gold); font-size:12px; font-weight:800}
.weekly-message__title{margin:4px 0 8px; font-size:17px; letter-spacing:-.02em}
.weekly-message__text{margin:0; font-size:14.5px; line-height:1.65; color:var(--ink-2)}
.weekly-message__range{margin:9px 0 0; font-size:12px; font-weight:700; color:var(--ink-3)}

.visit-week{margin-top:14px; padding:14px 16px; border:1px solid var(--line); border-radius:16px; background:var(--surface)}
.visit-week__eyebrow{margin:0; font-size:12px; font-weight:700; color:var(--primary)}
.visit-week__title{margin:4px 0 13px; font-size:15px; letter-spacing:-.02em}
.visit-week__days{display:grid; grid-template-columns:repeat(7,1fr); gap:4px; list-style:none; margin:0; padding:0}
.visit-week__day{display:flex; flex-direction:column; align-items:center; gap:6px; color:var(--ink-3); font-size:11px}
.visit-week__label{line-height:1}
.visit-week__dot{width:10px; height:10px; border:1px solid #D9C7B1; border-radius:50%; background:transparent}
.visit-week__day.is-visited{color:var(--primary); font-weight:800}
.visit-week__day.is-visited .visit-week__dot{border-color:var(--primary); background:var(--primary)}
.visit-week__day.is-today .visit-week__dot{box-shadow:0 0 0 3px var(--primary-soft)}
.visit-week__day.is-future{color:#C9BDAE}
.visit-week__day.is-future .visit-week__dot{border-color:#E8DED2}

.seven-report{margin-top:14px; padding:17px 16px; border:1px solid rgba(201,151,39,.32); border-radius:18px; background:linear-gradient(135deg,#FFFBF3,#FFF3DF)}
.seven-report__eyebrow{margin:0; color:var(--gold); font-size:12px; font-weight:800}
.seven-report__title{margin:4px 0 5px; font-size:17px; letter-spacing:-.02em}
.seven-report__summary{margin:0; font-size:13px; line-height:1.55; color:var(--ink-2)}
.seven-report__stats{display:grid; grid-template-columns:1fr 1fr; gap:8px; margin-top:13px}
.seven-report__stat{min-width:0; padding:11px 10px; border-radius:12px; background:rgba(255,255,255,.62)}
.seven-report__stat span{display:block; font-size:10.5px; color:var(--ink-3)}
.seven-report__stat strong{display:block; margin-top:3px; font-size:15px; color:var(--ink)}
.seven-report__message{margin:12px 0 0; padding-top:11px; border-top:1px solid rgba(201,151,39,.22); font-size:13.5px; line-height:1.6; color:var(--ink-2)}

/* 첫 방문을 마친 뒤에도 내일 다시 올 이유를 짧게 남긴다. */
.tomorrow-note{margin-top:16px; padding:16px 18px; border-radius:var(--r-l); background:var(--primary-soft); text-align:center}
.tomorrow-note__label{display:block; margin-bottom:4px; font-size:12px; font-weight:700; color:var(--primary)}
.tomorrow-note strong{font-size:14px; line-height:1.55; color:var(--ink)}
.tomorrow-note small{display:block; margin-top:4px; font-size:11.5px; line-height:1.45; color:var(--ink-3)}
.pwa-install{display:flex; align-items:center; justify-content:space-between; gap:14px; margin-top:12px; padding:14px 16px; border:1px solid var(--line); border-radius:var(--r-l); background:rgba(255,253,250,.92); box-shadow:0 10px 24px rgba(82,47,17,.05)}
.pwa-install__copy{min-width:0}
.pwa-install__copy span,.pwa-install__copy small{display:block; color:var(--ink-3); font-size:11.5px; line-height:1.4}
.pwa-install__copy span{color:var(--primary); font-weight:700}
.pwa-install__copy strong{display:block; margin:2px 0; color:var(--ink); font-size:14px; line-height:1.35}
.pwa-install__button{flex:none; min-height:38px; padding:0 14px; border:0; border-radius:999px; background:var(--primary); color:#fff; font:inherit; font-size:13px; font-weight:700; cursor:pointer}
.pwa-reminder{display:flex; align-items:center; justify-content:space-between; gap:14px; margin-top:12px; padding:14px 16px; border:1px solid rgba(201,151,39,.32); border-radius:var(--r-l); background:linear-gradient(135deg,#fffaf0,#fff4e5)}
@media (max-width:359px){.pwa-install,.pwa-reminder{align-items:flex-start; flex-direction:column}.pwa-install__button{width:100%}}

/* ── 오늘의 궁합 두 장 ──────────────────────── */
.pairs{display:grid; grid-template-columns:1fr 1fr; gap:12px; margin-top:16px}
.pair{
  display:flex; align-items:center; gap:10px; text-align:left; padding:13px;
  border:1px solid transparent; border-radius:var(--r-l); background:var(--surface);
  color:var(--ink); font:inherit; cursor:pointer; box-shadow:var(--shadow-s);
  transition:transform .12s ease;
}
.pair:active{transform:scale(.98)}
.pair--good{background:var(--good-bg)}
.pair--warn{background:var(--caution-bg)}
.pair__img{width:52px; height:52px; object-fit:contain; flex:0 0 52px}
.pair__body{display:flex; flex-direction:column; gap:1px; min-width:0}
.pair__label{font-size:11px; color:var(--ink-3)}
.pair__name{font-size:15px; font-weight:800; letter-spacing:-.02em}
.pair__why{font-size:11.5px; color:var(--ink-2)}
@media (max-width:359px){ .pairs,.duo{grid-template-columns:1fr} }

/* 궁합 유도 — 오늘 운세보다 세면 안 된다 */
.nudge{
  margin-top:16px; padding:16px 18px; background:var(--surface-2);
  border:1px solid var(--line); border-radius:var(--r-l); text-align:center;
}
.nudge__text{margin:0 0 12px; font-size:14px; color:var(--ink-2)}
.linkish{
  display:block; margin:22px auto 0; padding:8px 12px; border:0; background:none;
  color:var(--ink-3); font:inherit; font-size:13px; text-decoration:underline;
  text-underline-offset:3px; cursor:pointer;
}
#btn-share-today{margin-top:18px}
#btn-share-card{margin-top:10px}
#btn-share-result-card{margin-top:10px}
@media (max-width:430px){
  .today-share{grid-template-columns:1fr}
  .today-share #btn-share-card{width:100%; min-width:0}
}

/* ── 상대 띠 고르기 ─────────────────────────── */
.stepbar{position:relative; z-index:5; display:flex; align-items:center; gap:12px; padding:14px 0 18px}
.stepbar__back{
  flex:0 0 42px; width:42px; height:42px; display:grid; place-items:center; border-radius:999px;
  border:1px solid var(--line); background:var(--surface); color:var(--ink);
  font-size:19px; cursor:pointer; text-decoration:none;
}
.stepbar__title{font-size:18px; font-weight:700; letter-spacing:-.02em}

.grid{display:grid; grid-template-columns:repeat(3,1fr); gap:12px}
@media (min-width:560px){ .grid{grid-template-columns:repeat(4,1fr)} }
.tile{
  position:relative; display:flex; flex-direction:column; align-items:center; gap:4px;
  padding:14px 6px 12px; border:1.5px solid var(--line); border-radius:var(--r-l);
  background:var(--surface); color:var(--ink); font:inherit; cursor:pointer;
  box-shadow:var(--shadow-s); transition:transform .14s ease, border-color .14s ease;
}
.tile img{width:60px; height:60px; object-fit:contain}
.tile__name{font-size:13px; font-weight:700}
.tile__years{font-size:10px; color:var(--ink-3); letter-spacing:-.02em}
.tile:hover{border-color:var(--primary)}
.tile:active,.tile.is-picked{transform:scale(1.04); border-color:var(--primary)}
.tile.is-picked::after{
  content:'✓'; position:absolute; top:6px; right:8px;
  width:20px; height:20px; border-radius:999px; background:var(--primary); color:#fff;
  font-size:12px; line-height:20px; text-align:center;
}

/* ── 궁합 결과 ──────────────────────────────── */
.result{padding-bottom:8px; text-align:center}
.stage{position:relative; display:flex; align-items:flex-end; justify-content:center; gap:2px}
.stage::before{
  content:''; position:absolute; left:50%; top:48%; translate:-50% -50%;
  width:92%; aspect-ratio:1.4;
  background:radial-gradient(ellipse, rgba(255,214,150,.45) 0%, transparent 68%);
}
.stage__char{
  position:relative; width:44%; max-width:190px; height:auto;
  filter:drop-shadow(0 12px 20px rgba(58,42,28,.15));
  animation:godIn .5s cubic-bezier(.2,.7,.3,1) both;
}
.stage__char--b{animation-delay:.1s}
.stage__heart{
  position:relative; align-self:center; font-size:26px; color:var(--good);
  margin:0 -4px 18px;
}
.stage__badge{
  display:inline-block; margin-top:-6px; padding:8px 22px; border-radius:999px;
  background:var(--neutral); color:#fff; font-size:16px; font-weight:800;
  box-shadow:var(--shadow-m); position:relative;
}
[data-tier="good"] .stage__badge{background:var(--good)}
[data-tier="caution"] .stage__badge{background:var(--caution)}
.stars{margin:12px 0 0; font-size:17px; letter-spacing:.18em; color:var(--gold)}
.trait{margin:16px 0 0; color:var(--ink-2); font-size:14px}
.headline{margin:8px 0 0; font-size:23px; font-weight:800; letter-spacing:-.03em; line-height:1.35}
.summary{margin:12px 0 0; color:var(--ink-2); font-size:15px; line-height:1.7}
.tags{list-style:none; display:flex; flex-wrap:wrap; justify-content:center; gap:8px;
      margin:16px 0 0; padding:0}
.tags li{
  padding:6px 13px; border-radius:999px; background:var(--neutral-bg);
  color:var(--ink-2); font-size:13px; font-weight:600;
}
.panel{
  margin-top:12px; padding:16px 18px; text-align:left;
  background:var(--surface); border:1px solid var(--line); border-radius:var(--r-l);
  box-shadow:var(--shadow-s);
}
.panel:first-of-type{margin-top:22px}
.panel__label{margin:0 0 6px; font-size:12.5px; font-weight:700; color:var(--primary)}
.panel__body{margin:0; font-size:15px; line-height:1.65}
.panel--love{background:var(--good-bg); border-color:transparent}
.panel--love .panel__label{color:var(--good)}
.panel--tip{background:var(--neutral-bg); border-color:transparent}
.panel--muted .panel__label{color:var(--ink-3)}
.result .btn{margin-top:14px}
.result .btn--primary{margin-top:24px}

/* ── 푸터 ───────────────────────────────────── */
.foot{margin-top:40px; padding-top:22px; border-top:1px solid var(--line); text-align:center}
.foot__mark{
  margin:0; font-size:15px;
  letter-spacing:.2em; color:var(--ink-3);
}
.foot__note{margin:8px 0 0; font-size:12px; color:var(--ink-3); line-height:1.6}
.foot__privacy{margin:12px auto 0; max-width:360px; color:var(--ink-3); font-size:11.5px; line-height:1.65}
.foot__privacy summary{display:inline-block; cursor:pointer; text-decoration:underline; text-underline-offset:3px}
.foot__privacy p{margin:8px 0 0}

/* ── 공유 시트 ──────────────────────────────── */
.sheet{
  position:fixed; inset:0; z-index:20; display:flex; align-items:center;
  justify-content:center; padding:20px; background:rgba(30,20,12,.62);
}
.sheet[hidden]{display:none}
.sheet__panel{
  width:100%; max-width:340px; max-height:calc(100dvh - 40px); overflow:auto;
  background:var(--surface); border-radius:var(--r-xl); padding:16px; box-shadow:var(--shadow-m);
}
.sheet__title{margin:1px 0 10px; text-align:center; color:var(--ink-2); font-size:14px; font-weight:700}
.sheet__panel canvas{width:100%; height:auto; max-height:58dvh; border-radius:var(--r-m); display:block; margin:auto}
.sheet__actions{display:flex; flex-direction:column; gap:8px; margin-top:14px}
.sheet__actions .btn{width:100%}
.sheet__actions #btn-close{min-height:38px; padding:8px 14px; border:0; background:transparent; color:var(--ink-3); box-shadow:none; font-size:14px}

/* ── 신전 리디자인 ─────────────────────────────
   첫 화면은 기능 설명보다 세계관을 먼저 보여준다. 배경은 한 장의 세로 씬을
   쓰고, 단체 컷·개인 신·등급별 표정은 각 단계에서 한 번씩만 등장시킨다. */
#step-self{padding-bottom:8px}
#step-self::before{
  content:''; position:fixed; z-index:-1; inset:0;
  background:linear-gradient(180deg,rgba(255,249,241,.12),var(--bg) 88%),
    url('../scenes/temple-bg.webp') center top/cover no-repeat;
  opacity:.58; pointer-events:none;
}
.temple-hero{
  position:relative; isolation:isolate; min-height:440px; overflow:hidden;
  margin:0 calc(var(--pad) * -1) -12px; padding:34px var(--pad) 0;
  border-radius:0 0 36px 36px;
  background:linear-gradient(180deg,rgba(52,28,11,.04),rgba(255,246,232,.35) 46%,rgba(255,249,241,.96)),
    url('../scenes/temple-bg.webp') center 38%/cover no-repeat;
  box-shadow:0 18px 45px rgba(99,57,21,.1);
}
.temple-hero::before{
  content:''; position:absolute; z-index:-1; inset:0;
  background:radial-gradient(ellipse 80% 45% at 50% 100%,rgba(255,216,142,.7),transparent 70%);
}
.temple-hero__cast{
  position:absolute; z-index:-1; width:min(680px,132%); height:auto; left:50%; bottom:-2px;
  translate:-50% 0; filter:drop-shadow(0 18px 18px rgba(58,35,12,.2));
  pointer-events:none; user-select:none;
}
.hero{position:relative; max-width:280px; padding:0; text-align:left}
.hero__eyebrow{
  display:inline-block; margin:0 0 12px; padding:5px 11px; border:1px solid rgba(105,66,25,.16);
  border-radius:999px; background:rgba(255,251,244,.6); color:#77512d;
  font-size:11px; font-weight:700; letter-spacing:.1em;
}
.hero__today{margin:0 0 8px; min-height:0; color:#7D6146; font-size:12px; letter-spacing:.01em}
.hero__title{font-size:34px; line-height:1.18; color:#382112; text-wrap:balance}
.hero__title em{font-style:normal; color:var(--primary)}
.hero__sub{margin-top:12px; color:#5D4735; font-size:14px; line-height:1.62}
.entry-panel{position:relative; z-index:2; margin-top:0}
.entry-panel .card{
  border-color:rgba(255,255,255,.8); background:rgba(255,253,249,.88);
  backdrop-filter:blur(14px); box-shadow:0 12px 30px rgba(91,53,23,.1);
}
.entry-panel .card--year{padding:18px 18px 16px}
.entry-panel .card__title{font-size:13px; color:var(--ink-2)}
.entry-panel .yearpick{margin-top:7px}
.entry-panel .card--toggle{margin-top:10px}
.entry-panel .cta-dock{margin-top:14px}
.entry-panel .btn--hero{
  min-height:58px; border-radius:18px; letter-spacing:-.02em;
  box-shadow:0 10px 22px rgba(195,61,20,.25);
}
.entry-panel .assure{color:#6E5A45}

/* 결과는 신전에서 개인 신을 만난 뒤 받는 편지처럼, 입력 화면보다 조용하게. */
.today,.result{position:relative; isolation:isolate}
.today::before,.result::before{
  content:''; position:absolute; z-index:-1; top:-60px; left:50%; translate:-50% 0; pointer-events:none;
  width:calc(100% + 40px); height:310px; opacity:.15;
  background:url('../scenes/temple-bg.webp') center 36%/cover no-repeat;
  mask-image:linear-gradient(#000 0%,transparent 88%);
}
.today__kicker{
  display:table; width:max-content; margin:7px auto 0; padding:5px 11px;
  border-radius:999px; background:rgba(255,250,242,.85); color:var(--primary);
  font-size:12px; letter-spacing:.08em; white-space:nowrap;
}
.shrine{margin-top:0}
.shrine::before{background:radial-gradient(circle,rgba(255,207,120,.52),rgba(255,229,190,.2) 46%,transparent 70%)}
.bubble{border:1px solid rgba(194,71,42,.08); box-shadow:0 10px 26px rgba(105,55,22,.06)}
.minicard,.linecard,.panel,.pair{border-color:rgba(113,74,38,.1); box-shadow:0 8px 22px rgba(84,48,17,.055)}
.stage::before{background:radial-gradient(ellipse,rgba(255,205,111,.52) 0%,transparent 68%)}

@media (min-width:760px){
  body[data-screen="self"] #app{max-width:1120px; padding-left:32px; padding-right:32px}
  body[data-screen="self"] #step-self{display:grid; grid-template-columns:minmax(460px,1.3fr) minmax(360px,.7fr); align-items:center; gap:0; min-height:calc(100vh - 80px)}
  body[data-screen="self"] #step-self::before{background-position:center 26%; opacity:.68}
  body[data-screen="self"] .temple-hero{min-height:660px; margin:0 -20px 0 0; padding:74px 0 0 52px; border-radius:36px 0 0 36px}
  body[data-screen="self"] .temple-hero__cast{width:min(800px,113%); left:56%; bottom:0}
  body[data-screen="self"] .hero{max-width:380px}
  body[data-screen="self"] .hero__title{font-size:49px}
  body[data-screen="self"] .hero__sub{font-size:16px}
  body[data-screen="self"] .entry-panel{margin:0 0 0 -12px; padding:28px; border-radius:28px; background:rgba(255,250,243,.72); backdrop-filter:blur(12px); box-shadow:0 16px 48px rgba(82,47,17,.11)}
  body[data-screen="self"] .entry-panel .card--year{padding:23px}
  body[data-screen="self"] .entry-panel .yearpick__input{font-size:34px}
}

/* 배경 원화가 햇빛 장면이라, OS 다크 모드가 켜져 있어도 첫인상은 같은
   따뜻한 신전 톤으로 유지한다. 다크 변수가 이미지와 겹치면 대비가 무너진다. */
@media (prefers-color-scheme:dark){
  :root{
    --bg:#FFF9F1; --bg-2:#FFFDF9; --bg-3:#F8F5EE;
    --surface:#FFFFFF; --surface-2:rgba(255,255,255,.72);
    --ink:#3A2A1C; --ink-2:#6E5A45; --ink-3:#8A7358;
    --line:#EFE3D2; --gold:#C9A227; --primary:#C0472A; --primary-soft:#FBEAE4;
    --cta:#A64932; --cta-ink:#FFFFFF; --good:#C43D63; --neutral:#C0472A;
    --caution:#A65F0F; --good-bg:#FBE9EE; --neutral-bg:#F9E7DF; --caution-bg:#F8EDD8;
    --shadow-s:0 1px 2px rgba(58,42,28,.04),0 4px 12px rgba(58,42,28,.05);
    --shadow-m:0 2px 4px rgba(58,42,28,.05),0 12px 28px rgba(58,42,28,.08);
  }
  #step-self::before{opacity:.58}
  .temple-hero{background-blend-mode:normal; opacity:1}
  .hero__title{color:#382112}
  .hero__sub,.hero__today{color:#5D4735}
  .hero__eyebrow{background:rgba(255,251,244,.6); border-color:rgba(105,66,25,.16); color:#77512d}
  .entry-panel{background:transparent}
}

/* 데스크톱은 배경을 한 장의 무대로만 쓴다. 고정 배경까지 겹치면 장면이
   두 번 보이고 제목과 캐릭터가 충돌한다. */
@media (min-width:760px){
  body[data-screen="self"] #step-self::before{display:none}
  body[data-screen="self"] .temple-hero{
    min-height:700px; margin:0; padding:62px 0 0 48px; overflow:hidden;
    border-radius:32px 0 0 32px;
    background-position:center 47%;
  }
  body[data-screen="self"] .temple-hero__cast{
    width:min(720px,94%); left:72%; bottom:8px;
  }
  body[data-screen="self"] .hero{
    z-index:1; max-width:350px; padding:22px 24px 24px;
    border:1px solid rgba(255,255,255,.62); border-radius:24px;
    background:linear-gradient(135deg,rgba(255,253,247,.9),rgba(255,247,234,.62));
    box-shadow:0 12px 34px rgba(71,40,14,.12); backdrop-filter:blur(8px);
  }
  body[data-screen="self"] .hero__title{font-size:43px; line-height:1.15}
  body[data-screen="self"] .entry-panel{
    z-index:3; align-self:center; margin:0 0 0 -1px; padding:30px;
    border-radius:0 28px 28px 0; background:#FFF9F1;
    box-shadow:0 16px 44px rgba(63,35,12,.14); backdrop-filter:none;
  }
  body[data-screen="self"] .entry-panel .card{background:#fffdfa}
}

/* 모바일에서는 소개글과 단체 컷을 같은 좌표에 겹치지 않는다. 먼저 신전을
   소개하고, 그 아래에서 열두 신을 보여 준 다음 입력으로 이어지는 순서다. */
@media (max-width:759px){
  .temple-hero{
    min-height:570px; padding-top:26px;
    background-position:center 34%;
  }
  .temple-hero__cast{
    width:104%; left:50%; bottom:-5px;
  }
  .hero{
    max-width:calc(100% - 8px); padding:16px 17px 18px;
    border:1px solid rgba(255,255,255,.66); border-radius:20px;
    background:linear-gradient(135deg,rgba(255,253,247,.94),rgba(255,247,234,.76));
    box-shadow:0 10px 24px rgba(71,40,14,.1); backdrop-filter:blur(7px);
  }
  .hero__eyebrow{margin-bottom:7px}
  .hero__today{margin-bottom:6px}
  .hero__title{font-size:30px; line-height:1.16}
  .hero__sub{margin-top:9px; font-size:13px}
  body[data-screen="self"] .foot{display:none}
}

/* ── 오늘의 신전 편지 ──────────────────────────
   결과는 카드 목록이 아니라, 신이 건네는 한 장의 편지를 읽는 흐름이다.
   말풍선 → 계산의 근거 → 두 가지 조언 → 오늘의 관계 순으로 밀도를 낮춘다. */
.screenback{
  position:relative; z-index:5; display:flex; align-items:center; gap:7px; min-height:36px; margin:4px 0 4px;
  padding:6px 9px; border:0; border-radius:999px; background:transparent;
  color:#80664D; font:inherit; font-size:12px; font-weight:700; cursor:pointer; text-decoration:none; pointer-events:auto;
}
.screenback:hover{background:rgba(255,255,255,.55)}
.screenback:focus-visible{outline:2px solid var(--primary); outline-offset:2px}

/* 내 신전은 새로운 세계가 아니라, 오늘까지 쌓인 기록을 조용히 모아 보는 방이다. */
.my-shrine{padding-top:10px}
.my-shrine__eyebrow{margin:0; color:var(--primary); font-size:12px; font-weight:800}
.my-shrine__profile{display:grid; grid-template-columns:128px minmax(0,1fr); align-items:center; gap:12px; margin-top:5px}
.my-shrine__profile img{display:block; width:128px; height:128px; object-fit:contain; filter:drop-shadow(0 10px 15px rgba(58,42,28,.12))}
.my-shrine__hanja{margin:0; color:var(--gold); font-size:17px; font-weight:700}
.my-shrine__profile h1{margin:1px 0 2px; font-size:27px; letter-spacing:-.04em}
.my-shrine__profile div > p:last-child{margin:0; font-size:13px; color:var(--ink-2)}
.shrine-stats{display:grid; grid-template-columns:repeat(3,1fr); gap:7px; margin-top:13px}
.shrine-stats div{padding:12px 8px; border:1px solid var(--line); border-radius:14px; background:var(--surface); text-align:center}
.shrine-stats span,.shrine-reactions__stats span{display:block; font-size:10.5px; color:var(--ink-3)}
.shrine-stats strong{display:block; margin-top:2px; font-size:16px; color:var(--ink)}
.shrine-section{margin-top:24px; padding-top:20px; border-top:1px solid var(--line)}
.shrine-section__eyebrow{margin:0; color:var(--primary); font-size:12px; font-weight:800}
.shrine-section h2{margin:4px 0 11px; font-size:17px; letter-spacing:-.02em}
.shrine-recent{list-style:none; margin:0; padding:0; border:1px solid var(--line); border-radius:16px; background:var(--surface)}
.shrine-recent li{display:grid; grid-template-columns:42px minmax(0,1fr); gap:8px; padding:12px 13px; border-top:1px solid var(--line)}
.shrine-recent li:first-child{border-top:0}
.shrine-recent li span{font-size:12px; font-weight:700; color:var(--ink-3)}
.shrine-recent li strong{font-size:13px; font-weight:600; line-height:1.55; color:var(--ink-2)}
.shrine-recent li.is-empty{display:block; color:var(--ink-3); font-size:13px; text-align:center}
.shrine-reactions__stats{display:grid; grid-template-columns:repeat(3,1fr); gap:7px}
.shrine-reactions__stats div{padding:12px 6px; border-radius:14px; background:var(--primary-soft); text-align:center}
.shrine-reactions__stats strong{display:block; margin-top:2px; font-size:19px; color:var(--primary)}
@media (max-width:359px){.my-shrine__profile{grid-template-columns:106px minmax(0,1fr)}.my-shrine__profile img{width:106px;height:106px}}

.today{padding-top:14px}
.today__date{font-size:12px; letter-spacing:.04em}
.godname{margin-top:8px}
.godname__name{font-size:24px}
.bubble{
  margin-top:22px; padding:23px 24px 24px; border:1px solid #F1D7CC;
  border-radius:24px; background:linear-gradient(135deg,#FFF8F2,#FCEBE4);
  box-shadow:none;
}
.bubble::before{left:50%; border-bottom-color:#FFF7F0}
.bubble__label{justify-content:flex-start; margin-bottom:11px; color:#C84A2D; font-size:13px}
.bubble__text{text-align:left; font-family:'Gowun Batang',var(--font); font-size:21px; line-height:1.58}
.relationship-note{margin-top:12px; padding:13px 15px; border-left:3px solid var(--gold); border-radius:0 14px 14px 0; background:#FFF8EC}
.relationship-note__label{display:block; margin-bottom:4px; font-size:12px; font-weight:800; color:#A76B18}
.relationship-note strong{display:block; font-size:13.5px; line-height:1.6; color:var(--ink-2)}
.duo{
  gap:0; overflow:hidden; margin-top:18px; border:1px solid #EEE5DA;
  border-radius:22px; background:#FFFEFC; box-shadow:0 8px 22px rgba(84,48,17,.045);
}
.minicard{padding:17px 18px; border:0; border-radius:0; box-shadow:none; background:transparent}
.minicard + .minicard{border-left:1px solid #EEE5DA}
.minicard__label{font-size:12px; color:#92775D}
.minicard__value{font-size:18px}
.whybtn{
  margin-top:13px; border-color:#DCC9B4; background:transparent; color:#80664D;
  outline:none; box-shadow:none;
}
.whybtn:focus{outline:none; box-shadow:none}
.whybtn:focus-visible{outline:2px solid var(--primary); outline-offset:3px}
.lines{gap:0; margin-top:26px; border-top:1px solid #EDE3D6}
.linecard{
  padding:20px 4px 21px; border:0; border-radius:0; background:transparent;
  box-shadow:none; border-bottom:1px solid #EDE3D6;
}
.linecard__label{margin-bottom:8px; color:#C84A2D; font-size:13px}
.linecard__body{font-size:17px; line-height:1.64}
.pairs{gap:10px; margin-top:23px}
.pair{padding:12px; border:1px solid transparent; border-radius:18px; box-shadow:none}
.pair--good,.pair--warn{background:#FAF6EF; border-color:#EAE0D2; border-radius:14px}
.pair--good .pair__label{color:#975064}
.pair--warn .pair__label{color:#856020}
.pair__img{width:48px; height:48px; flex-basis:48px}
.pair__label{font-size:10.5px}
.pair__name{font-size:16px}
#btn-share-today{margin-top:22px; min-height:48px; border-radius:12px; font-size:15px}
.nudge{
  display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); align-items:center; gap:16px;
  margin-top:32px; padding:22px 0 0; border:0; border-top:1px solid #E9DECF;
  border-radius:0; background:transparent; text-align:left;
}
.nudge__art{
  display:block; width:100%; height:auto; aspect-ratio:3/2; object-fit:contain; pointer-events:none;
  -webkit-mask-image:radial-gradient(ellipse closest-side,#000 72%,transparent 100%);
  mask-image:radial-gradient(ellipse closest-side,#000 72%,transparent 100%);
}
.nudge__copy{min-width:0}
.nudge__caption{display:block; margin-top:4px; color:var(--ink-2); font-size:10px; line-height:1.5; word-break:keep-all}
.nudge__text{margin:0 0 8px; font-size:16px; line-height:1.55; color:#6A503A; word-break:keep-all}
.nudge .btn--ghost{
  display:inline-flex; width:auto; gap:10px; min-height:44px; padding:5px 0; border:0;
  border-radius:0; background:transparent; color:#3A2A1C; box-shadow:none; font-size:14px;
}
@media (max-width:359px){
  .nudge{gap:8px}
  .nudge__text{font-size:14px}
  .nudge .btn--ghost{font-size:13px; gap:5px}
}

@media (max-width:359px){
  .bubble__text{font-size:19px}
  .minicard{padding:14px}
}

/* ── 신을 만나는 장면 ────────────────────────── */
.arrival__stage{position:relative; isolation:isolate; aspect-ratio:1; width:100%; max-width:420px; margin:12px auto}
.arrival__stage video,.arrival__stage img{display:block; width:100%; height:100%; object-fit:contain}
/* 처음부터 네 모서리가 카드 배경에 녹도록 타원형으로 처리한다. 직선형
   마스크처럼 영상 캔버스의 사각 윤곽이 드러나지 않으며, 시간에 따라
   바뀌지 않는다. 아래쪽 받침대는 중심을 조금 낮춰 선명하게 남긴다. */
.arrival__stage video{
  -webkit-mask-image:radial-gradient(ellipse 62% 72% at 50% 58%,#000 54%,rgba(0,0,0,.78) 68%,rgba(0,0,0,.28) 84%,transparent 100%);
  mask-image:radial-gradient(ellipse 62% 72% at 50% 58%,#000 54%,rgba(0,0,0,.78) 68%,rgba(0,0,0,.28) 84%,transparent 100%);
}
#appear-title{min-height:3em; margin-top:6px; color:var(--ink-2); font-size:12px; line-height:1.5; word-break:keep-all}
.mytti .arrival__stage{width:136px; height:136px; flex:0 0 136px; margin:0}
.mytti__text{min-width:0; max-width:150px}
#self-result{min-height:152px; box-sizing:border-box}
/* 입력이 비어 있어도 같은 공간을 확보해 아래 버튼이 움직이지 않는다. */
#self-result[hidden]{display:flex!important; visibility:hidden}
@media (max-width:359px){
  .mytti .arrival__stage{width:112px; height:112px; flex-basis:112px}
}

/* 소개와 영상은 문서 흐름에 나란히 두어 작은 화면에서도 겹치지 않는다. */
body[data-screen="self"] .temple-hero{
  min-height:0; margin:0; padding:22px 18px; border-radius:28px;
}
body[data-screen="self"] .hero{max-width:none; margin:0}
.hero-media{
  display:grid; align-items:center;
  width:100%; max-width:420px; margin:12px auto 0;
}
body[data-screen="self"] .hero-media .temple-hero__cast{
  grid-area:1 / 1; position:relative; inset:auto; z-index:auto; translate:none;
  width:100%; height:auto; aspect-ratio:1; object-fit:contain; margin:0; filter:none;
}
.hero-media [hidden]{display:none!important}
body[data-screen="self"] .entry-panel{min-width:0; margin:16px 0 0}
@media (min-width:760px){
  body[data-screen="self"] #step-self{
    grid-template-columns:minmax(0,1.15fr) minmax(0,1fr); gap:24px;
  }
  body[data-screen="self"] .entry-panel{margin:0; padding:18px; border-radius:28px}
  body[data-screen="self"] .hero__title{font-size:clamp(30px,3.5vw,43px)}
}

/* 모든 화면의 버튼은 테라코타와 크림·브라운을 공유한다. */
.btn--primary,.entry-panel .btn--hero,#btn-share-today,.result .btn--primary{
  background:var(--cta); color:var(--cta-ink);
  box-shadow:0 5px 14px rgba(102,61,39,.12);
}
.btn--ghost{background:#FFF9F1; color:#6E5A45; border-color:#DCC9B3; box-shadow:none}
.screenback,.btn--text{color:#6E5A45; background:transparent; box-shadow:none}
.btn--primary:disabled,.entry-panel .btn--hero:disabled,#btn-share-today:disabled,.result .btn--primary:disabled{
  background:#E8DDCE; color:#766653; opacity:1; box-shadow:none; cursor:default;
}
.summon{
  position:relative; isolation:isolate; min-height:calc(100vh - 88px); overflow:hidden;
  justify-content:center; padding:48px 20px 72px; border-radius:0 0 34px 34px;
  background:linear-gradient(180deg,rgba(255,249,239,.2),rgba(255,249,241,.93)),
    url('../scenes/temple-bg.webp') center 42%/cover no-repeat;
}
.summon::before{
  content:''; position:absolute; z-index:-1; inset:0;
  background:radial-gradient(circle at 50% 48%,rgba(255,215,139,.74),transparent 29%),
             linear-gradient(180deg,transparent 52%,rgba(255,249,241,.88));
}
.summon__eyebrow{
  margin:0 0 12px; padding:5px 11px; border:1px solid rgba(125,81,38,.18);
  border-radius:999px; background:rgba(255,253,247,.7); color:#795631;
  font-size:11px; font-weight:700; letter-spacing:.08em;
}
.summon__stage{width:min(84%,360px); max-width:none; margin:0; filter:drop-shadow(0 18px 18px rgba(80,46,15,.16))}
.summon__stage::before{width:116%; background:radial-gradient(circle,rgba(255,239,199,.96),rgba(255,205,113,.33) 42%,transparent 71%)}
.summon__stage.is-watching::before{
  width:124%; background:radial-gradient(circle closest-side,
    rgba(250,219,181,.92) 0%,rgba(253,236,208,.52) 58%,transparent 78%);
}
/* 정지 sazu 컷은 영상이 재생될 수 없을 때만 보인다. 평상시에는 서로 다른
   행동의 컷이 이어지지 않도록 watching fortune 영상만 소환 장면을 채운다. */
.summon__img{opacity:0; animation:none; transition:opacity .18s ease}
.summon__watch{
  position:absolute; inset:0; z-index:2; width:100%; height:100%; object-fit:contain;
  opacity:0; pointer-events:none; transition:opacity .24s ease;
  /* 영상의 호박색 배경을 투명처럼 보이게 만드는 게 아니라, 가장자리를
     광원으로 녹인다. 결과 화면의 say 영상과 동일한 처리다. */
  -webkit-mask-image:radial-gradient(ellipse 50% 56% at 50% 52%,#000 78%,transparent 100%);
          mask-image:radial-gradient(ellipse 50% 56% at 50% 52%,#000 78%,transparent 100%);
}
.summon__watch.is-on{opacity:1}
.summon__stage.has-fallback .summon__img{opacity:1; animation:godArrival 1.8s cubic-bezier(.2,.7,.3,1) infinite alternate}
.summon__text{
  margin-top:16px; padding:10px 16px; border-radius:999px; background:rgba(255,253,248,.75);
  color:#65462E; font-size:16px; font-weight:700;
  box-shadow:0 8px 20px rgba(87,50,15,.08);
}
@keyframes godArrival{from{transform:translateY(4px) scale(.985)} to{transform:translateY(-8px) scale(1.015)}}

/* ── 궁합 이야기 ────────────────────────────── */
.result{padding-top:6px; text-align:left}
.result::before{
  content:''; position:absolute; z-index:-1; top:-72px; left:50%; translate:-50% 0; pointer-events:none;
  width:calc(100% + 40px); height:360px; opacity:.16;
  background:url('../scenes/temple-bg.webp') center 30%/cover no-repeat;
  mask-image:linear-gradient(#000 0%,transparent 90%);
}
.result__eyebrow{
  margin:0 0 2px; text-align:center; color:#92704D;
  font-size:12px; font-weight:700; letter-spacing:.12em;
}
.stage{margin-top:2px; min-height:215px}
.stage::before{width:100%; aspect-ratio:1.65; background:radial-gradient(ellipse,rgba(255,213,132,.54),transparent 69%)}
.stage__char{width:43%; max-width:205px; filter:drop-shadow(0 13px 18px rgba(58,42,28,.16))}
.stage__heart{width:34px; height:34px; display:grid; place-items:center; align-self:center; margin:0 -2px 18px;
  border-radius:999px; background:#FFF9F1; box-shadow:0 5px 14px rgba(93,50,22,.1); color:#C84A2D; font-size:20px}
.stage__badge{display:table; margin:-12px auto 0; padding:7px 18px; font-size:14px; box-shadow:none}
.stars{margin:10px 0 0; text-align:center; font-size:14px}
.trait{margin:22px 0 0; text-align:center; color:#8B6E51; font-size:14px}
.headline{margin:7px 0 0; text-align:center; font-size:27px; line-height:1.35}
.summary{max-width:420px; margin:12px auto 0; text-align:center; font-size:15px; line-height:1.7}
.tags{justify-content:flex-start; margin:19px 0 0; gap:6px}
.tags li{padding:4px 10px; background:transparent; border:1px solid #E9D8C4; color:#876A4D; font-size:12px}
.tags + .panel{margin-top:22px}
.panel{
  margin-top:0; padding:19px 4px 20px; border:0; border-radius:0; border-top:1px solid #EADFD2;
  background:transparent; box-shadow:none;
}
.panel:first-of-type{margin-top:21px}
.panel__label{margin-bottom:8px; color:#C84A2D; font-size:13px}
.panel__body{font-size:16px; line-height:1.65}
.panel--love{padding:21px 20px; border:1px solid #F0D6DC; border-radius:22px; background:#FFF2F5}
.panel--love .panel__label{color:#C43D63}
.panel--tip{background:transparent}
.panel--muted{color:#7F6853}
.result .btn--primary{min-height:58px; margin-top:23px; border-radius:18px}
.result .btn--ghost{border-radius:16px}

@media (prefers-reduced-motion:reduce){.summon__img{animation:none}}

/* ── 분석 동의 ─────────────────────────────── */
.foot__analytics{
  margin:10px 0 0; padding:0; border:0; background:transparent; color:var(--ink-3);
  font:inherit; font-size:11.5px; text-decoration:underline; text-underline-offset:3px; cursor:pointer;
}
.analytics-consent{
  position:fixed; z-index:40; inset:0; display:grid; place-items:end center;
  padding:20px; background:rgba(30,20,12,.36);
}
.analytics-consent[hidden]{display:none}
.analytics-consent__panel{
  width:min(100%,440px); padding:24px; border:1px solid var(--line); border-radius:28px;
  background:var(--surface); box-shadow:var(--shadow-m);
}
.analytics-consent__eyebrow{margin:0; color:var(--primary); font-size:13px; font-weight:700}
.analytics-consent h2{margin:7px 0 0; font-size:21px; letter-spacing:-.03em}
.analytics-consent__panel > p:not(.analytics-consent__eyebrow){margin:12px 0 0; color:var(--ink-2); font-size:14px; line-height:1.65}
.analytics-consent__actions{display:grid; gap:8px; margin-top:20px}
.analytics-consent__close{padding:5px; border:0; background:transparent; color:var(--ink-3); font:inherit; font-size:13px; cursor:pointer}

/* 첫 경험을 막지 않는 하단 안내. 선택 전에도 입력과 탐색은 계속할 수 있다. */
.analytics-consent{
  inset:auto 0 max(16px, env(safe-area-inset-bottom)); display:block; padding:0 var(--pad);
  background:transparent; pointer-events:none;
}
.analytics-consent__panel{
  width:min(100%,520px); margin:0 auto; padding:18px 20px; border-radius:22px;
  box-shadow:0 16px 42px rgba(58,42,28,.22); pointer-events:auto;
}
.analytics-consent h2{font-size:18px}
.analytics-consent__panel > p:not(.analytics-consent__eyebrow){margin-top:7px; font-size:13px}
.analytics-consent__actions{grid-template-columns:1fr 1fr; gap:8px; margin-top:14px}
.analytics-consent__actions .btn{min-height:46px; padding:10px 12px; font-size:14px}
.analytics-consent__close{grid-column:1 / -1}
@media (max-width:380px){.analytics-consent__actions{grid-template-columns:1fr}.analytics-consent__close{grid-column:auto}}

/* 결과를 본 뒤에만 이어지는 인라인 선택 카드. 첫 화면의 집중을 방해하지 않는다. */
.analytics-consent{
  position:static; z-index:auto; display:block; padding:0; margin:20px 0 0;
  background:transparent; pointer-events:auto;
}
.analytics-consent__panel{
  width:auto; margin:0; padding:17px 18px; border-radius:20px; background:var(--neutral-bg);
  border:1px solid var(--line); box-shadow:none;
}
.analytics-consent__eyebrow{font-size:12px}
.analytics-consent h2{font-size:17px}
.analytics-consent__panel > p:not(.analytics-consent__eyebrow){font-size:12.5px}
.analytics-consent__actions{display:flex; flex-wrap:wrap; margin-top:13px}
.analytics-consent__actions .btn{width:auto; min-height:40px; padding:8px 14px; font-size:13px}
.analytics-consent__close{margin-left:auto; padding:8px 4px; border:0; background:transparent; color:var(--ink-3); font:inherit; font-size:12px; cursor:pointer}
.analytics-consent.is-floating{
  position:fixed; z-index:40; inset:auto var(--pad) max(16px, env(safe-area-inset-bottom)); margin:0;
}
.analytics-consent.is-floating .analytics-consent__panel{
  width:min(100%,440px); margin:0 auto; background:var(--surface); box-shadow:0 16px 42px rgba(58,42,28,.22);
}
@media (max-width:380px){.analytics-consent__actions{display:grid; grid-template-columns:1fr 1fr}.analytics-consent__close{margin-left:0}}

/* 운세 결과 안의 분석 선택: 본문을 방해하지 않는 보조 카드 */
.analytics-consent{margin-top:14px}
.analytics-consent__panel{padding:13px 14px; border-radius:16px}
.analytics-consent h2{margin:0; font-size:15px; line-height:1.35; letter-spacing:-.02em}
.analytics-consent__panel > p:not(.analytics-consent__eyebrow){margin-top:3px; font-size:12px; line-height:1.5}
.analytics-consent__actions{margin-top:9px; gap:7px}
.analytics-consent__actions .btn{min-height:34px; padding:6px 11px; font-size:12px}
.analytics-consent__close{padding:6px 3px; font-size:11px}
.analytics-consent.is-floating .analytics-consent__panel{padding:16px 17px}
.analytics-consent.is-floating h2{font-size:17px}
.analytics-consent.is-floating .analytics-consent__panel > p:not(.analytics-consent__eyebrow){margin-top:7px; font-size:13px}
.analytics-consent.is-floating .analytics-consent__actions .btn{min-height:40px; padding:8px 14px; font-size:13px}

/* 분석 선택은 콘텐츠 카드가 아닌, 한 줄짜리 보조 설정 행으로 표시한다. */
.analytics-consent{margin-top:12px}
.analytics-consent__panel{display:flex; align-items:center; gap:14px; padding:10px 13px; border-radius:14px; background:#fffdfa; border-color:var(--line); box-shadow:none}
.analytics-consent h2.sr-only{position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0}
.analytics-consent__panel > p:not(.analytics-consent__eyebrow){flex:1; margin:0; color:var(--ink-3); font-size:12px; line-height:1.45}
.analytics-consent__actions{flex:none; flex-wrap:nowrap; margin:0; gap:6px}
.analytics-consent__actions .btn{min-height:32px; padding:5px 10px; font-size:12px; white-space:nowrap}
.analytics-consent.is-floating .analytics-consent__panel{display:block; padding:16px 17px}
.analytics-consent.is-floating h2.sr-only{position:static; width:auto; height:auto; padding:0; margin:0; overflow:visible; clip:auto; white-space:normal; font-size:17px}
.analytics-consent.is-floating .analytics-consent__panel > p:not(.analytics-consent__eyebrow){margin-top:7px; font-size:13px}
.analytics-consent.is-floating .analytics-consent__actions{margin-top:13px}
@media (max-width:620px){
  .analytics-consent__panel{display:block; padding:11px 12px}
  .analytics-consent__panel > p:not(.analytics-consent__eyebrow){font-size:11.5px}
  .analytics-consent__actions{margin-top:8px}
}
