@font-face{font-family:'Dandan';font-weight:400;font-display:swap;src:url('../cats-dislike-hospital/dandan.woff') format('woff')}
:root{--ink:#4a2f1c;--mute:#8a6f58;--acc:#b5451b}
*{box-sizing:border-box}
html,body{margin:0}
body{min-height:100dvh;color:var(--ink);background:#f3e7d6 url('bg-cream.webp') center top/700px auto repeat;
  font:400 15px/1.6 "Pretendard","Apple SD Gothic Neo","Malgun Gothic",system-ui,sans-serif;-webkit-tap-highlight-color:transparent}
@media (min-width:760px){body{background-size:cover;background-attachment:fixed}}
.wrap{max-width:880px;margin:0 auto;padding:calc(28px + env(safe-area-inset-top)) 18px calc(28px + env(safe-area-inset-bottom));min-height:100dvh;display:flex;flex-direction:column}

/* 머리말 */
header{text-align:center;margin-bottom:8px}
.cats{display:flex;justify-content:center;align-items:flex-end;gap:2px;height:64px;margin-bottom:6px}
.cats img{width:56px;height:56px;object-fit:contain;filter:drop-shadow(0 3px 3px rgba(74,47,28,.18));transform-origin:50% 100%}
.cats img:nth-child(2n){width:48px;height:48px}
.cats img:nth-child(3){width:64px;height:64px}
@media (prefers-reduced-motion:no-preference){
  .cats img{animation:peek .9s cubic-bezier(.2,1.3,.4,1) both}
  .cats img:nth-child(2){animation-delay:.08s}.cats img:nth-child(3){animation-delay:.16s}.cats img:nth-child(4){animation-delay:.24s}.cats img:nth-child(5){animation-delay:.32s}
  @keyframes peek{from{transform:translateY(18px) scale(.8);opacity:0}to{transform:none;opacity:1}}
}
h1{font-family:'Dandan',sans-serif;font-weight:400;font-size:clamp(40px,11vw,58px);line-height:1.05;margin:0;letter-spacing:.02em;text-shadow:0 2px 0 rgba(255,250,240,.9)}
.lead{margin:12px auto 0;max-width:28em;color:var(--mute);font-size:15.5px;line-height:1.65;word-break:keep-all}

/* 첫 화면 선택지 */
.menu{display:grid;gap:14px;justify-items:center;margin:30px 0 10px}
.choice{position:relative;display:flex;align-items:center;justify-content:center;gap:10px;width:min(100%,360px);aspect-ratio:560/185;
  background:center/100% 100% no-repeat;text-decoration:none;color:#5a3a22;font-family:'Dandan',sans-serif;font-size:clamp(19px,5.6vw,23px);
  padding:0 34px 4px;filter:drop-shadow(0 4px 6px rgba(74,47,28,.16));transition:transform .18s cubic-bezier(.2,.8,.2,1)}
.choice img{width:44px;height:auto;flex:none;margin-left:-6px}
.choice.orange{background-image:url('pill-orange.webp');color:#fff6e4;text-shadow:0 1px 1px rgba(120,60,10,.45)}
.choice.cream{background-image:url('pill-cream.webp')}
a.choice:hover{transform:translateY(-3px)}a.choice:active{transform:scale(.97)}
a.choice:focus-visible{outline:3px solid var(--acc);outline-offset:4px;border-radius:40px}
.choice.soon{cursor:default}
.choice.soon span.t{opacity:.62}
.choice .tag{position:absolute;right:22px;top:-6px;font-family:"Pretendard",system-ui,sans-serif;font-size:11.5px;font-weight:700;color:#fff;
  background:#a98a6d;border-radius:999px;padding:1px 9px;text-shadow:none;letter-spacing:0}

/* 하위 화면 */
.back{align-self:flex-start;display:inline-flex;align-items:center;gap:4px;padding:6px 14px 7px;border-radius:999px;background:rgba(255,250,241,.85);
  border:1.5px solid #e3c99c;color:#6d4c33;font-weight:600;font-size:14px;text-decoration:none;margin-bottom:6px}
.back:hover{background:#fff6e4}

/* 게임 카드 */
.games{display:grid;grid-template-columns:1fr;gap:44px;margin:22px 0 10px}
@media (min-width:760px){.games{grid-template-columns:1fr 1fr;gap:26px}}
.card{--s:calc((100vw - 36px) / 900);position:relative;display:block;text-decoration:none;color:inherit;
  border-style:solid;border-color:transparent;border-width:calc(var(--s)*132) calc(var(--s)*126) calc(var(--s)*120);
  border-image:var(--frame) 22% 14% 20% fill / calc(var(--s)*132) calc(var(--s)*126) calc(var(--s)*120) stretch;
  padding:0 0 22px;min-height:calc(var(--s)*600);filter:drop-shadow(0 6px 10px rgba(74,47,28,.14))}
@media (min-width:760px){.card{--s:.454px}}
.card.yellow{--frame:url('frame-yellow.webp')}
.card.lavender{--frame:url('frame-lavender.webp')}
.card .row{display:flex;align-items:center;gap:10px}
.card .icons{flex:none;display:flex}
.card .icons img{width:clamp(44px,13vw,58px);height:auto}
.card .icons img+img{margin-left:-16px}
.card h2{font-family:'Dandan',sans-serif;font-weight:400;font-size:clamp(21px,6vw,27px);line-height:1.15;margin:0;word-break:keep-all}
.card p{margin:10px 0 0;font-size:clamp(12.5px,3.5vw,14px);line-height:1.55;color:#6d4c33;word-break:keep-all}
.meta{display:flex;flex-wrap:wrap;gap:4px;margin-top:6px}
.meta span{font-size:11.5px;font-weight:600;color:#8a4b1c;background:rgba(246,223,174,.85);border-radius:999px;padding:0 8px;line-height:1.7}
.card.lavender .meta span{background:rgba(226,214,240,.9);color:#5f4a86}
.play{position:absolute;left:50%;bottom:calc(var(--s)*-120 - 24px);transform:translateX(-50%);display:grid;place-items:center;
  width:178px;height:70px;padding-top:12px;background:url('btn-orange-ears.webp') center/100% 100% no-repeat;
  font-family:'Dandan',sans-serif;font-size:21px;color:#fff6e4;text-shadow:0 1px 1px rgba(120,60,10,.45);transition:transform .18s cubic-bezier(.2,.8,.2,1)}
.card.lavender .play{background-image:url('btn-cream-ears.webp');color:#5a3a22;text-shadow:none}
.card:hover .play{transform:translateX(-50%) translateY(-3px)}
.card:active .play{transform:translateX(-50%) scale(.96)}
.card:focus-visible{outline:none}
.card:focus-visible .play{outline:3px solid var(--acc);outline-offset:4px;border-radius:30px}

footer{text-align:center;margin-top:auto;padding-top:40px;font-size:12.5px;line-height:1.7;color:var(--mute);word-break:keep-all}
footer p{margin:0}
footer b{display:block;margin-top:4px;font-family:'Dandan',sans-serif;font-weight:400;font-size:14px;color:#5a3a22}
footer .ig{display:inline-block;margin-top:6px;padding:3px 14px 4px;border-radius:999px;background:rgba(255,250,241,.85);border:1.5px solid #e3c99c;
  font-family:'Dandan',sans-serif;font-size:15px;color:#5a3a22;text-decoration:none}
footer .ig:hover{background:#fff6e4}
footer .ig:focus-visible{outline:3px solid var(--acc);outline-offset:3px}
