/* Menu pages: Discover, room page, profile, friends, settings. */
.page { max-width: 1240px; margin: 0 auto; padding: 1.4rem 1.4rem 3rem; }
.hero { position: relative; overflow: hidden; border-radius: 26px; min-height: 300px; padding: 2.2rem; display: flex; flex-direction: column; justify-content: flex-end; gap: .6rem; background: #0e1830 center/cover no-repeat; border: 1px solid var(--line); isolation: isolate; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(5,7,12,.92) 10%, rgba(5,7,12,.2) 70%); }
.hero h1 { font-size: clamp(1.8rem, 4vw, 3rem); margin: 0; } .hero p { max-width: 560px; color: #d5dbe6; margin: 0 0 .6rem; }
.hero .tags { display: flex; gap: .4rem; }
.tag { font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: .2rem .55rem; border-radius: 999px; background: rgba(255,255,255,.12); }
.section { margin-top: 2.2rem; } .section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: .9rem; } .section-head h2 { font-size: 1.3rem; margin: 0; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; }
.rcard { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; transition: transform .18s, border-color .18s, box-shadow .18s; cursor: pointer; }
.rcard:hover { transform: translateY(-3px); border-color: var(--line2); box-shadow: var(--shadow); }
.rthumb { aspect-ratio: 16/9; background: #1c2230 center/cover no-repeat; position: relative; }
.rthumb .players { position: absolute; left: 8px; bottom: 8px; font-size: .72rem; font-weight: 700; background: rgba(0,0,0,.55); padding: .15rem .5rem; border-radius: 999px; backdrop-filter: blur(6px); }
.rbody { padding: .7rem .85rem .85rem; display: flex; flex-direction: column; gap: .15rem; }
.rname { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .rmeta { font-size: .8rem; color: var(--dim); display: flex; gap: .7rem; }
.empty { padding: 2rem; text-align: center; color: var(--dim); border: 1px dashed var(--line2); border-radius: 18px; }
.layout2 { display: grid; grid-template-columns: 1fr 300px; gap: 1.6rem; align-items: start; }
.side { position: sticky; top: 5rem; display: flex; flex-direction: column; gap: 1rem; }
.flist { display: flex; flex-direction: column; gap: .3rem; }
.frow { display: flex; align-items: center; gap: .7rem; padding: .5rem .55rem; border-radius: 12px; } .frow:hover { background: rgba(255,255,255,.05); }
.frow .fname { font-weight: 600; } .frow .fsub { font-size: .78rem; color: var(--dim); } .frow .grow { min-width: 0; } .frow .grow div { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dot { width: .55rem; height: .55rem; border-radius: 50%; background: var(--dim2); display: inline-block; margin-right: .3rem; } .dot.on { background: var(--good); box-shadow: 0 0 8px var(--good); }
@media (max-width: 900px) { .layout2 { grid-template-columns: 1fr; } .side { position: static; } .page { padding: 1rem .9rem 2rem; } .hero { padding: 1.4rem; min-height: 240px; } }

/* room page */
.room-top { display: grid; grid-template-columns: 1.4fr 1fr; gap: 1.6rem; }
.room-top .rthumb { border-radius: 20px; border: 1px solid var(--line); }
.room-info h1 { font-size: 2rem; } .stats { display: flex; gap: 1.4rem; margin: .8rem 0 1.2rem; } .stats div b { display: block; font-size: 1.2rem; } .stats div span { font-size: .8rem; color: var(--dim); }
.play-btn { font-size: 1.15rem; padding: 1rem 2rem; width: 100%; }
.photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: .7rem; }
.photo { position: relative; border-radius: 14px; overflow: hidden; aspect-ratio: 4/3; background: #1c2230 center/cover; cursor: zoom-in; border: 1px solid var(--line); }
.photo .pcap { position: absolute; left: 0; right: 0; bottom: 0; padding: .4rem .6rem; font-size: .75rem; background: linear-gradient(0deg, rgba(0,0,0,.75), transparent); }
.photo .pdel { position: absolute; top: 6px; right: 6px; }
.upload-tile { display: grid; place-items: center; aspect-ratio: 4/3; border-radius: 14px; border: 1.5px dashed var(--line2); color: var(--dim); cursor: pointer; text-align: center; padding: .6rem; } .upload-tile:hover { border-color: var(--acc); color: var(--text); }
.lightbox img { max-width: 100%; max-height: 78vh; border-radius: 12px; display: block; margin: 0 auto; }
@media (max-width: 860px) { .room-top { grid-template-columns: 1fr; } }

/* profile */
.profile-head { display: flex; gap: 1.4rem; align-items: center; } .profile-head .pfp { width: 96px; height: 96px; font-size: 2rem; }
.avatar-view { width: 100%; aspect-ratio: 1; border-radius: 20px; background: radial-gradient(circle at 50% 40%, #26324a, #0e121a); overflow: hidden; }

/* settings */
.settings { display: grid; grid-template-columns: 240px 1fr; gap: 1.6rem; align-items: start; }
.snav { position: sticky; top: 5rem; display: flex; flex-direction: column; gap: .15rem; }
.snav button { text-align: left; background: none; border: 0; color: var(--dim); font: inherit; font-weight: 600; padding: .6rem .8rem; border-radius: 12px; cursor: pointer; display: flex; gap: .6rem; } .snav button.on, .snav button:hover { background: rgba(255,255,255,.07); color: var(--text); }
.spanel h2 { font-size: 1.4rem; } .sgroup { background: var(--card); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; margin-bottom: 1.2rem; }
.srow { display: flex; align-items: center; gap: 1rem; padding: .95rem 1.1rem; border-bottom: 1px solid var(--line); } .srow:last-child { border-bottom: 0; }
.srow .sl { flex: 1; min-width: 0; } .srow .sl b { display: block; font-weight: 600; } .srow .sl span { font-size: .83rem; color: var(--dim); }
.srow .sc { flex-shrink: 0; display: flex; align-items: center; gap: .6rem; } .srow select.input { width: auto; min-width: 170px; padding: .5rem .8rem; }
.srow input[type=range] { width: 160px; accent-color: var(--acc); } .srow .rv { min-width: 3.6rem; text-align: right; font-variant-numeric: tabular-nums; color: var(--dim); font-size: .85rem; }
.srow input[type=color] { width: 44px; height: 32px; border: 0; background: none; padding: 0; cursor: pointer; }
.switch { position: relative; width: 46px; height: 27px; flex-shrink: 0; } .switch input { position: absolute; opacity: 0; inset: 0; cursor: pointer; margin: 0; z-index: 1; }
.switch i { position: absolute; inset: 0; border-radius: 999px; background: rgba(255,255,255,.16); transition: .2s; } .switch i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 21px; height: 21px; border-radius: 50%; background: #fff; transition: .2s; }
.switch input:checked + i { background: var(--acc); } .switch input:checked + i::after { transform: translateX(19px); } .switch input:focus-visible + i { outline: 2px solid var(--acc); outline-offset: 2px; }
.switch.locked { opacity: .45; } .switch.locked input { cursor: not-allowed; } .srow-locked .sl span { color: var(--warn, #f0b35a); }
.private-val { font-weight: 600; } .private-note { font-size: .8rem; color: var(--dim); margin-top: .15rem; }
.danger-box { border-color: rgba(255,93,108,.35); }
@media (max-width: 820px) {
  .settings { grid-template-columns: 1fr; } .snav { position: static; flex-direction: row; overflow-x: auto; gap: .3rem; padding-bottom: .3rem; } .snav button { white-space: nowrap; }
  .srow { flex-wrap: wrap; } .srow .sc { width: 100%; justify-content: flex-end; } .srow input[type=range] { flex: 1; }
}

/* ===================== Home (revamped) ===================== */
.home2-body #nav { display: none; }                        /* the rail and hero replace the top bar here */
.home2 { display: flex; min-height: 100vh; max-width: none; padding: 0; }
.rail { position: sticky; top: 0; height: 100vh; width: 76px; flex-shrink: 0; display: flex; flex-direction: column; align-items: center; gap: .35rem; padding: .9rem 0; background: rgba(11,13,18,.92); border-right: 1px solid var(--line); z-index: 20; }
.rail a { position: relative; width: 56px; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: .5rem 0; border-radius: 14px; color: var(--dim); font-size: .62rem; font-weight: 600; }
.rail a span { font-size: 1.35rem; line-height: 1; filter: grayscale(.4); }
.rail a em { font-style: normal; }
.rail a:hover { background: rgba(255,255,255,.06); color: var(--text); }
.rail a.on { color: var(--text); background: rgba(79,140,255,.16); } .rail a.on span { filter: none; }
.rail .rail-logo { margin-bottom: .6rem; } .rail .rail-logo .logo-mark { width: 40px; height: 40px; font-size: 1.15rem; }
.rail .pfp { width: 28px; height: 28px; font-size: .7rem; filter: none !important; }
.rail .badge { position: absolute; top: 2px; right: 6px; }
.hmain { flex: 1; min-width: 0; padding: 0 1.6rem 3rem; }
/* hero */
.hhero { position: relative; margin: 0 -1.6rem; min-height: 360px; padding: 1.1rem 1.6rem 1.8rem; overflow: hidden; display: flex; flex-direction: column; isolation: isolate; }
.hhero-bg { position: absolute; inset: -20px; z-index: -2; background-size: 25% 50%; background-repeat: no-repeat; background-position: 0 0, 33% 0, 66% 0, 100% 0, 0 100%, 33% 100%, 66% 100%, 100% 100%; filter: blur(7px) saturate(1.15); transform: scale(1.06); opacity: .6; }
.hhero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(11,13,18,.96) 0%, rgba(11,13,18,.7) 45%, rgba(11,13,18,.35) 100%), linear-gradient(0deg, var(--bg) 0%, transparent 45%); }
.hhero-top { display: flex; align-items: center; justify-content: center; gap: 1rem; position: relative; }
.hsearch { display: flex; align-items: center; width: min(460px, 100%); background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.14); border-radius: 999px; backdrop-filter: blur(12px); }
.hsearch input { flex: 1; min-width: 0; background: none; border: 0; outline: none; color: var(--text); font: inherit; padding: .6rem 1.1rem; }
.hsearch button { background: none; border: 0; color: var(--text); font-size: 1.3rem; padding: 0 1rem; cursor: pointer; }
.hbell { position: absolute; right: 0; font-size: 1.25rem; } .hbell .badge { position: absolute; top: -6px; right: -10px; }
.hhero-text { margin-top: auto; position: relative; z-index: 1; padding-top: 2.5rem; }
.wordmark { display: flex; align-items: center; gap: 0; font-size: clamp(2.6rem, 7vw, 5rem); font-weight: 900; letter-spacing: .02em; line-height: 1; text-shadow: 0 6px 30px rgba(0,0,0,.5); }
.wordmark .logo-mark { width: .92em; height: .92em; border-radius: .22em; font-size: .78em; margin-right: .05em; transform: rotate(-8deg); box-shadow: 0 10px 30px rgba(79,140,255,.45); }
.hhero h1 { font-size: clamp(2rem, 4.4vw, 3rem); margin: .4rem 0 0; line-height: 1.1; }
.hhero p { font-size: clamp(1.05rem, 2vw, 1.5rem); margin: .2rem 0 0; color: #dfe5ef; }
.hhero-avatar { position: absolute; right: 4%; bottom: -46px; width: min(400px, 34vw); z-index: 0; cursor: grab; }
.hhero-avatar canvas { display: block; width: 100% !important; height: auto !important; }
/* sections and rows */
.hsec { margin-top: 1.6rem; }
.hsec-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: .7rem; }
.hsec-head h2 { font-size: 1.35rem; margin: 0; } .hsec-head a { color: var(--text); font-weight: 600; font-size: .95rem; opacity: .85; } .hsec-head a:hover { opacity: 1; }
.hrow-wrap { position: relative; }
.hrow { display: flex; gap: .9rem; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: .4rem; scrollbar-width: none; }
.hrow::-webkit-scrollbar { display: none; }
.hrow > * { scroll-snap-align: start; }
.hrow-btn { position: absolute; top: 38%; transform: translateY(-50%); width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line2); background: rgba(11,13,18,.85); color: var(--text); font-size: 1.5rem; line-height: 1; cursor: pointer; opacity: 0; transition: opacity .2s; z-index: 2; }
.hrow-btn.l { left: -14px; } .hrow-btn.r { right: -14px; }
.hrow-wrap:hover .hrow-btn { opacity: 1; }
.htile { flex: 0 0 248px; display: flex; flex-direction: column; gap: .35rem; }
.ht-img { position: relative; aspect-ratio: 16/10; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); transition: transform .18s, box-shadow .18s; }
.htile:hover .ht-img { transform: translateY(-3px); box-shadow: var(--shadow); }
.ht-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.78) 0%, rgba(0,0,0,0) 55%); }
.ht-tag { position: absolute; top: 8px; left: 8px; z-index: 1; font-size: .68rem; font-weight: 700; background: rgba(0,0,0,.5); padding: .1rem .5rem; border-radius: 999px; backdrop-filter: blur(6px); }
.ht-over { position: absolute; left: 12px; right: 12px; bottom: 10px; z-index: 1; }
.ht-title { font-weight: 800; font-size: 1.12rem; line-height: 1.2; text-shadow: 0 2px 8px rgba(0,0,0,.6); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ht-by { font-size: .75rem; color: #d5dbe6; }
.ht-stats { display: flex; gap: .8rem; font-size: .78rem; color: var(--dim); padding-left: .2rem; }
/* friends */
.hfriends { display: flex; gap: 1.1rem; overflow-x: auto; padding: .2rem .1rem .4rem; scrollbar-width: none; } .hfriends::-webkit-scrollbar { display: none; }
.hfriend { flex: 0 0 82px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: .25rem; }
.hf-pic { position: relative; width: 74px; height: 74px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 1.3rem; color: #fff; border: 2px solid rgba(255,255,255,.12); box-shadow: inset 0 -10px 20px rgba(0,0,0,.25); transition: transform .15s; }
.hfriend:hover .hf-pic { transform: scale(1.05); }
.hf-add { background: rgba(255,255,255,.06); border-style: dashed; font-size: 1.8rem; color: var(--dim); }
.hf-dot { position: absolute; right: -2px; bottom: 2px; width: 22px; height: 22px; border-radius: 50%; background: var(--good); border: 3px solid var(--bg); display: grid; place-items: center; font-size: .6rem; font-style: normal; }
.hf-dot.game { background: var(--acc); }
.hf-name { font-size: .78rem; font-weight: 600; max-width: 82px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hf-sub { font-size: .66rem; color: var(--acc); max-width: 82px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: -.2rem; }
/* phones: no rail (the bottom bar is there), smaller hero */
@media (max-width: 760px) {
  .rail { display: none; }
  .hmain { padding: 0 1rem 6rem; }
  .hhero { margin: 0 -1rem; padding: .9rem 1rem 1.2rem; min-height: 250px; }
  .hhero-avatar { width: 46vw; right: -4%; bottom: -24px; }
  .hbell { display: none; }
  .htile { flex-basis: 70vw; max-width: 280px; }
}

/* moderation */
.mod-card { margin-bottom: .8rem; }
.mod-reason { background: rgba(255,93,108,.14); border: 1px solid rgba(255,93,108,.35); color: #ffb1b9; }
.mod-quote { margin: .6rem 0 0; padding: .5rem .8rem; border-left: 3px solid var(--line2); background: rgba(255,255,255,.04); border-radius: 0 10px 10px 0; font-style: italic; }

/* ===================== Coins, shop and purchases ===================== */
.coin-pill { display: inline-flex; align-items: center; gap: .3rem; padding: .3rem .75rem; border-radius: 999px; background: rgba(255,211,77,.12); border: 1px solid rgba(255,211,77,.35); color: #ffe08a; font-weight: 800; font-size: .9rem; white-space: nowrap; }
.coin-pill:hover { background: rgba(255,211,77,.2); }
.shop-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.shop-top h1 { margin: 0; } .shop-top p { margin: .3rem 0 0; max-width: 620px; }
.shop-wallet { display: flex; flex-direction: column; align-items: flex-end; gap: .5rem; }
.coins-big { font-size: 2rem; font-weight: 900; color: #ffe08a; }
.shop-main { display: grid; grid-template-columns: minmax(260px, 360px) 1fr; gap: 1.2rem; align-items: start; }
.shop-stage { position: sticky; top: 80px; background: radial-gradient(ellipse at 50% 30%, #1d2742, var(--card) 70%); border: 1px solid var(--line); border-radius: 22px; padding: 1rem; }
.shop-preview { aspect-ratio: 1; }
.shop-preview canvas { width: 100% !important; height: 100% !important; }
.shop-pinfo h2 { margin: .4rem 0 .1rem; font-size: 1.3rem; }
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .8rem; }
.skin-card { appearance: none; border: 2px solid var(--line); background: var(--card); color: var(--text); border-radius: 18px; padding: .5rem .5rem .7rem; cursor: pointer; text-align: left; font: inherit; transition: transform .15s, border-color .15s; }
.skin-card:hover { transform: translateY(-2px); } .skin-card.sel { border-color: var(--acc); box-shadow: 0 0 0 3px rgba(79,140,255,.2); }
.skin-art { position: relative; aspect-ratio: 1; border-radius: 13px; display: grid; place-items: center; font-size: 3rem; }
.skin-badge { position: absolute; top: 6px; right: 6px; font-style: normal; font-size: .65rem; font-weight: 800; background: var(--acc); color: #fff; padding: .1rem .45rem; border-radius: 999px; } .skin-badge.own { background: rgba(0,0,0,.55); }
.skin-name { font-weight: 800; margin-top: .45rem; } .skin-price { font-size: .85rem; color: #ffe08a; font-weight: 700; }
@media (max-width: 760px) { .shop-main { grid-template-columns: 1fr; } .shop-stage { position: static; } .shop-wallet { align-items: flex-start; } }
/* purchase dialog */
.buy-back { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 1rem; background: rgba(5,7,12,.7); backdrop-filter: blur(6px); opacity: 0; transition: opacity .2s; }
.buy-back.in { opacity: 1; }
.buy-modal { width: min(440px, 100%); background: var(--card); border: 1px solid var(--line2); border-radius: 22px; padding: 1.3rem; box-shadow: var(--shadow); }
.buy-head { display: flex; gap: .9rem; align-items: center; } .buy-head h2 { margin: 0; font-size: 1.3rem; }
.buy-icon { width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center; font-size: 1.9rem; flex-shrink: 0; }
.buy-label { font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); margin: 1rem 0 .3rem; }
.buy-perks ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .3rem; } .buy-perks li { background: rgba(53,208,127,.08); border: 1px solid rgba(53,208,127,.25); border-radius: 10px; padding: .4rem .7rem; }
.buy-price { margin-top: 1rem; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.buy-price div { display: flex; justify-content: space-between; padding: .5rem .8rem; } .buy-price div + div { border-top: 1px solid var(--line); }
.buy-price b { color: #ffe08a; } .buy-price b.bad { color: var(--bad); }
.buy-note { font-size: .78rem; color: var(--dim); margin: .9rem 0 0; line-height: 1.45; }
.buy-short { font-size: .85rem; color: #ffb1b9; margin: .6rem 0 0; }
.buy-btns { display: flex; gap: .6rem; justify-content: flex-end; margin-top: 1.1rem; } .buy-btns .btn { min-width: 110px; }
.buy-btns .btn[disabled] { opacity: .55; cursor: not-allowed; }
/* game passes on a room page */
.pass-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: .8rem; }
.pass-card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 1rem; display: flex; flex-direction: column; gap: .5rem; }
.pass-card .pc-top { display: flex; gap: .7rem; align-items: center; } .pass-card .buy-icon { width: 46px; height: 46px; font-size: 1.5rem; border-radius: 13px; }
.pass-card ul { margin: 0; padding-left: 1.1rem; color: var(--dim); font-size: .88rem; }
.pass-card .pc-price { color: #ffe08a; font-weight: 800; }
.hcoins { position: absolute; right: 2.4rem; }
@media (max-width: 760px) { .hcoins { right: 0; } }

/* Shop → Emotes */
.emote-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: .7rem; }
.emote-card { border: 1px solid var(--line); border-radius: 14px; background: var(--card, rgba(255,255,255,.04)); overflow: hidden; display: flex; flex-direction: column; }
.emote-card .ec-try { all: unset; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: .25rem; padding: .9rem .5rem .5rem; }
.emote-card .ec-try:hover .ec-icon { transform: scale(1.15); }
.emote-card .ec-icon { font-size: 2rem; transition: transform .15s; }
.emote-card .ec-foot { display: flex; justify-content: center; padding: 0 .5rem .7rem; min-height: 2rem; align-items: center; }
.emote-card .ec-owned { color: #35d07f; font-weight: 700; font-size: .85rem; }

/* AI search results */
.ai-head { display: flex; align-items: baseline; gap: .8rem; flex-wrap: wrap; margin: .4rem 0 1rem; } .ai-head h2 { margin: 0; }
.ai-badge { font-weight: 800; font-size: .8rem; padding: .25rem .65rem; border-radius: 999px; background: linear-gradient(135deg, var(--acc), #a05aff); color: #fff; }
.ai-answer { border: 1px solid var(--line); border-radius: 16px; padding: 1rem 1.1rem; background: linear-gradient(135deg, rgba(79,140,255,.08), rgba(160,90,255,.08)); margin-bottom: 1.1rem; }
.ai-status { display: flex; align-items: center; gap: .7rem; font-weight: 700; }
.ai-status.found { color: var(--dim); font-weight: 600; font-size: .85rem; margin-bottom: .5rem; } .ai-status.bad { color: #ff8a8a; }
.ai-orb { width: 18px; height: 18px; border-radius: 50%; background: conic-gradient(var(--acc), #a05aff, #35d07f, var(--acc)); animation: aiSpin 1s linear infinite; box-shadow: 0 0 18px rgba(124,120,255,.6); }
.ai-status.found .ai-orb { animation: none; width: 10px; height: 10px; box-shadow: none; }
@keyframes aiSpin { to { transform: rotate(1turn); } }
.ai-dots i { font-style: normal; animation: aiDot 1.2s infinite; } .ai-dots i:nth-child(2) { animation-delay: .2s; } .ai-dots i:nth-child(3) { animation-delay: .4s; }
@keyframes aiDot { 0%, 60%, 100% { opacity: .2; } 30% { opacity: 1; } }
.ai-text { line-height: 1.55; }
.ai-caret { display: inline-block; width: .5em; height: 1em; margin-left: 2px; vertical-align: -2px; background: var(--acc); animation: aiDot 1s infinite; border-radius: 2px; }
.ai-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: .9rem; }
.ai-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; color: var(--text); text-decoration: none; background: var(--card, rgba(255,255,255,.04)); animation: aiCard .45s cubic-bezier(.2,1,.35,1) both; transition: transform .15s; }
.ai-card:hover { transform: translateY(-3px); }
@keyframes aiCard { from { opacity: 0; transform: translateY(14px) scale(.97); } }
.ai-img { aspect-ratio: 16 / 9; } .ai-body { padding: .7rem .85rem .9rem; } .ai-name { font-weight: 800; } .ai-by { font-size: .78rem; color: var(--dim); margin: .15rem 0 .4rem; }
.ai-why { font-size: .86rem; line-height: 1.45; }
/* room slideshow (the owner's photos) */
.rthumb.slides { overflow: hidden; }
.rthumb .slide { position: absolute; inset: 0; background: center/cover no-repeat; opacity: 0; transition: opacity .9s ease; }
.rthumb .slide.on { opacity: 1; }
.slide-dots { position: absolute; left: 0; right: 0; bottom: 10px; display: flex; justify-content: center; gap: 6px; z-index: 2; }
.slide-dots button { width: 8px; height: 8px; border-radius: 50%; border: 0; padding: 0; background: rgba(255,255,255,.45); cursor: pointer; transition: .2s; }
.slide-dots button.on { background: #fff; width: 20px; border-radius: 999px; }
/* streams */
.live-pill { display: inline-flex; align-items: center; gap: .3rem; background: #e5263b; color: #fff; font-weight: 800; font-size: .72rem; padding: .25rem .5rem; border-radius: 999px; letter-spacing: .04em; vertical-align: middle; }
.live-pill.sm { font-size: .62rem; padding: .18rem .42rem; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: #fff; display: inline-block; animation: livePulse 1.2s ease-in-out infinite; }
@keyframes livePulse { 50% { opacity: .35; transform: scale(.75); } }
.htile.live .ht-tag { background: #e5263b; color: #fff; }
/* pets */
.pet-wrap { display: grid; grid-template-columns: minmax(220px, 300px) 1fr; gap: 1rem; align-items: start; }
@media (max-width: 760px) { .pet-wrap { grid-template-columns: 1fr; } }
.pet-stage { border-radius: 18px; border: 1px solid var(--line); background: radial-gradient(circle at 50% 70%, #2a3550, #12151c 70%); overflow: hidden; }
.pet-canvas { height: 240px; }
.pet-canvas canvas { display: block; width: 100% !important; height: 100% !important; }
.pet-info { padding: .7rem .9rem .9rem; } .pet-info h3 { margin: 0; }
.pet-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: .5rem; }
.pet-card { display: flex; flex-direction: column; align-items: center; gap: .15rem; padding: .6rem .3rem; border-radius: 14px; border: 1px solid var(--line); background: var(--card); color: var(--text); font: inherit; cursor: pointer; transition: .15s; }
.pet-card:hover { border-color: var(--line2); transform: translateY(-2px); }
.pet-card.sel { border-color: var(--acc); box-shadow: 0 0 0 2px rgba(79,140,255,.35); }
.pet-card .pc-icon { font-size: 1.8rem; } .pet-card b { font-size: .85rem; }
.pet-card .pc-price { font-size: .75rem; color: var(--dim); } .pet-card.own .pc-price { color: var(--good); }
