/* Desk Cats website. Tokens, fonts and basic components come from shared/ui/base.css. */
html { scroll-behavior: smooth; }
body { font-size: 16px; overflow-x: hidden; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.site-head { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(8px); border-bottom: 2px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; gap: 6px 14px; padding-top: 10px; padding-bottom: 10px; flex-wrap: wrap; }
.logo { display: flex; align-items: center; gap: 8px; font: 600 22px var(--head); text-decoration: none; margin-right: auto; }
.logo img { width: 36px; height: 36px; }
.site-head nav { display: flex; gap: 2px; flex-wrap: wrap; }
.site-head nav a { font: 600 14.5px var(--head); text-decoration: none; padding: 6px 12px; border-radius: 999px; border: 2px solid transparent; }
.site-head nav a:hover { border-color: var(--line); }
.site-head nav a[aria-current=page] { background: var(--butter); color: #3D3330; border-color: var(--outline); }
.trail-btn { cursor: pointer; font-size: 16px; background: none; border: 2px solid var(--line); border-radius: 999px; padding: 4px 10px; color: var(--ink); }
.trail-btn[aria-pressed=true] { background: var(--sage); border-color: var(--outline); }
.paw { position: fixed; pointer-events: none; z-index: 50; font-size: 15px; opacity: .55; animation: pawfade 1s ease-out forwards; }
@keyframes pawfade { to { opacity: 0; transform: translateY(6px) scale(.7) rotate(var(--r)); } }

.hero { padding: 64px 0 150px; text-align: center; }
.hero h1 { font-size: clamp(38px, 7vw, 68px); margin: 0 auto 14px; max-width: 13em; letter-spacing: -.01em; }
.hero h1 em { font-style: normal; color: var(--peach); }
.hero p { font-size: 19px; max-width: 34em; margin: 0 auto 26px; color: var(--muted); }
.cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn.big { font-size: 18px; padding: 13px 26px; text-decoration: none; display: inline-block; }
.btn:hover { animation: purr .25s linear 3; }
@keyframes purr { 0%, 100% { translate: 0 0; } 25% { translate: -1px 0; } 75% { translate: 1px 0; } }
h2.sec { font-size: clamp(26px, 4vw, 36px); text-align: center; margin: 56px 0 24px; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; }
.feature { transition: transform .2s; }
.feature:hover { transform: translateY(-4px) rotate(-.6deg); }
.feature .art { height: 110px; display: flex; align-items: flex-end; justify-content: center; background: var(--bg); border-radius: 16px; margin-bottom: 12px; }
.feature .art > * { width: 130px; }
.feature h3 { font-size: 20px; margin-bottom: 4px; }
.feature p { margin: 0; color: var(--muted); font-size: 15px; }
.demo { text-align: center; }
.demo .cta { margin-top: 14px; }
.faq { max-width: 760px; margin: 0 auto; display: grid; gap: 10px; }
.faq details { background: var(--card); border-radius: 16px; padding: 14px 18px; box-shadow: var(--shadow); }
.faq summary { cursor: pointer; font: 600 17px var(--head); }
.faq p { margin: 10px 0 0; color: var(--muted); }
.site-foot { margin-top: 80px; padding: 26px 0 150px; border-top: 2px solid var(--line); text-align: center; color: var(--muted); font-size: 14px; }
.page { padding: 34px 0 20px; }
.page > h1 { font-size: clamp(30px, 5vw, 44px); margin-bottom: 6px; }
.page > .lede { color: var(--muted); font-size: 18px; margin: 0 0 24px; max-width: 44em; }
.prose { max-width: 760px; }
.prose h2 { font-size: 23px; margin-top: 1.5em; }
.prose li { margin-bottom: 6px; }
.prose code { background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; font-size: .9em; }
.note { background: var(--card); border-left: 6px solid var(--butter); border-radius: 12px; padding: 12px 16px; margin: 16px 0; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

/* Cat of the Day */
.cotd { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 26px; align-items: center; }
@media (max-width: 700px) { .cotd { grid-template-columns: 1fr; } }
.cotd .art { background: var(--bg); border-radius: 20px; padding: 22px 16px 6px; }
.cotd h2 { font-size: 30px; margin-bottom: 2px; }
.cotd .tag, .tag { display: inline-block; font: 600 12.5px var(--head); background: var(--butter); color: #3D3330; border-radius: 999px; padding: 2px 11px; }
.cotd blockquote { margin: 14px 0; font-size: 19px; line-height: 1.55; border-left: 6px solid var(--peach); padding-left: 16px; }
.cotd h3 { font-size: 21px; margin: 14px 0 0; }
.soap .ep { border-top: 1px dashed var(--line); padding: 12px 0; }
.soap .ep:first-of-type { border-top: none; }
.soap .ep b { font-family: var(--head); }
.soap .prev { color: var(--muted); font-size: 14px; font-style: italic; }
.soap .cliff { font-weight: 600; color: var(--peach); }
.cast { display: flex; gap: 10px; flex-wrap: wrap; margin: 8px 0 14px; }
.cast figure { margin: 0; width: 86px; text-align: center; font-size: 12px; color: var(--muted); }

/* Trading cards */
.cards-layout { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: 34px; align-items: start; }
@media (max-width: 780px) { .cards-layout { grid-template-columns: 1fr; } }
.holo-wrap { perspective: 900px; display: flex; justify-content: center; padding: 10px 0; }
.holo { --rx: 0deg; --ry: 0deg; --mx: 50%; --my: 50%; position: relative; width: 320px; max-width: 100%; aspect-ratio: 5 / 7; border-radius: 22px; padding: 14px; color: #3D3330;
  background: linear-gradient(160deg, #FFF8EE, #FBE7CF); border: 3px solid #4A3B36; box-shadow: 0 18px 40px rgba(74, 59, 54, .28);
  transform: rotateX(var(--rx)) rotateY(var(--ry)); transition: transform .12s ease-out; transform-style: preserve-3d; display: flex; flex-direction: column; gap: 6px; overflow: hidden; user-select: none; }
.holo:after { content: ''; position: absolute; inset: 0; pointer-events: none; mix-blend-mode: color-dodge; opacity: var(--shine, .35);
  background: radial-gradient(circle at var(--mx) var(--my), rgba(255, 255, 255, .9), transparent 42%),
    repeating-linear-gradient(115deg, rgba(255, 0, 128, .22) 0 8%, rgba(255, 220, 0, .22) 8% 16%, rgba(0, 220, 255, .22) 16% 24%, rgba(140, 90, 255, .22) 24% 32%);
  background-size: 100% 100%, 220% 220%; background-position: 0 0, var(--mx) var(--my); }
.holo.r0:after { --shine: .12; } .holo.r1:after { --shine: .22; } .holo.r2:after { --shine: .34; } .holo.r3:after { --shine: .46; } .holo.r4:after { --shine: .6; }
.holo .hd { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.holo .hd b { font: 600 23px var(--head); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.holo .hd span { font: 600 12px var(--head); background: #4A3B36; color: #FFF8EE; border-radius: 999px; padding: 2px 9px; white-space: nowrap; }
.holo .pic { flex: 1; min-height: 0; border-radius: 14px; border: 2.5px solid #4A3B36; background: linear-gradient(180deg, #CFE6F5, #F9E3C6 70%, #E9C9A0 70%); display: flex; align-items: flex-end; justify-content: center; padding: 0 12px; overflow: hidden; }
.holo .pic > * { width: 88%; max-height: 100%; }
.holo .sub { font-size: 12px; font-weight: 600; opacity: .75; }
.holo .move { background: #fff; border: 2px solid #4A3B36; border-radius: 10px; padding: 5px 9px; font-size: 12.5px; }
.holo .move b { font-family: var(--head); font-size: 14px; }
.holo .st { display: grid; grid-template-columns: 1fr 1fr; gap: 3px 12px; font-size: 11.5px; font-weight: 600; }
.holo .st div { display: grid; grid-template-columns: 64px 1fr 22px; gap: 5px; align-items: center; }
.holo .st i { height: 7px; border-radius: 7px; background: rgba(74, 59, 54, .16); overflow: hidden; display: block; }
.holo .st i b { display: block; height: 100%; background: #F2A28C; border-radius: 7px; }
.picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 8px; max-height: 420px; overflow: auto; padding: 4px; }
.pick { cursor: pointer; background: var(--card); border: 2px solid var(--line); border-radius: 14px; padding: 6px 4px 4px; text-align: center; font-size: 11px; color: var(--muted); }
.pick.on { border-color: var(--outline); background: var(--butter); color: #3D3330; }
.pick .face { width: 52px; height: 52px; margin: 0 auto; border-radius: 50%; overflow: hidden; background: var(--bg); }
.pick span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .holo { transition: none; } .btn:hover { animation: none; } }

.ai-panel summary { cursor: pointer; font: 600 16px var(--head); }
.ai-panel .st-field { display: flex; flex-direction: column; gap: 3px; font-size: 13px; margin: 8px 0; max-width: 420px; }
