/* Hunter Play & Read — estilo base (mobile primeiro) */
:root {
  --bg: #0d0b10; --bg-2: #17131c; --line: #2b2433; --text: #ece6f2; --muted: #a59bb1;
  --accent: #ff7a2f; --accent-2: #8f6bff; --radius: 14px;
  --serif: Georgia, "Times New Roman", serif; --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 var(--sans); }
a { color: inherit; }
img, video { max-width: 100%; display: block; }
[hidden] { display: none !important; }
.page { max-width: 1180px; margin: 0 auto; padding: 0 16px 64px; }

.topbar { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 16px; padding: 12px 16px;
  background: rgb(13 11 16 / .88); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; letter-spacing: .02em; white-space: nowrap; }
.brand__logo { height: 34px; width: auto; }
.brand__name { display: flex; flex-direction: column; line-height: 1; font-size: 1.15rem; }
.brand__name small { font-size: .72rem; font-weight: 500; color: var(--accent); letter-spacing: .04em; margin-top: 3px; }
.topbar__nav { display: flex; gap: 14px; flex: 1; overflow-x: auto; }
.topbar__nav a, .topbar__account { text-decoration: none; color: var(--muted); font-size: .95rem; }
.topbar__nav a:hover, .topbar__account:hover { color: var(--text); }
.topbar__account { border: 1px solid var(--line); padding: 4px 12px; border-radius: 99px; white-space: nowrap; }
@media (max-width: 560px) {
  .topbar { flex-wrap: wrap; row-gap: 6px; }
  .brand { flex: 1; }
  .topbar__nav { order: 3; flex-basis: 100%; }
}

.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .75rem; color: var(--accent); margin: 0 0 8px; }
.eyebrow a { text-decoration: none; }
h1, h2 { font-family: var(--serif); line-height: 1.15; }

.btn { display: inline-flex; align-items: center; gap: 6px; padding: 10px 18px; border-radius: 99px; border: 1px solid var(--line);
  background: var(--bg-2); color: var(--text); font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; }
.btn--primary { background: linear-gradient(135deg, var(--accent), #e24a3b); border-color: transparent; color: #1a0d05; }
.btn--ghost { background: transparent; }
.btn:disabled { opacity: .5; cursor: default; }
.btn--like.is-on { color: #ff5d7a; border-color: #ff5d7a; }

.hero { display: grid; gap: 24px; padding: 32px 0; align-items: center; }
.hero h1 { font-size: clamp(2rem, 6vw, 3.4rem); margin: 0 0 12px; }
.hero p { color: var(--muted); max-width: 52ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.hero__covers { display: flex; gap: 12px; }
.hero__covers img { width: 50%; aspect-ratio: 3/4; object-fit: cover; border-radius: var(--radius); box-shadow: 0 20px 50px rgb(0 0 0 / .5); }
.hero__covers img:nth-child(2) { transform: translateY(24px) rotate(2deg); }
@media (min-width: 820px) { .hero { grid-template-columns: 1.1fr 1fr; padding: 56px 0; } }

.shelf { margin-top: 32px; }
.shelf__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.shelf__head h1, .shelf__head h2 { margin: 0; }
.shelf__head p { color: var(--muted); margin: 0; width: 100%; }
.browse { display: grid; gap: 12px; margin-bottom: 18px; }
.browse__search { width: 100%; padding: 12px 16px; border-radius: 99px; border: 1px solid var(--line); background: var(--bg-2); color: var(--text); font: inherit; }
.browse__search:focus { outline: none; border-color: var(--accent); }
.browse__cats { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
@media (min-width: 700px) { .browse__cats { flex-wrap: wrap; overflow: visible; } }
.chip { flex: none; border: 1px solid var(--line); background: transparent; color: var(--muted); padding: 6px 14px; border-radius: 99px; font: inherit; font-size: .9rem; cursor: pointer; }
.chip.is-on { background: var(--text); color: var(--bg); border-color: var(--text); }
.chip:disabled { opacity: .35; cursor: default; }
.chip__count { font-size: .75rem; opacity: .6; margin-left: 2px; }
.browse__empty { color: var(--muted); text-align: center; padding: 32px 0; }
.shelf__more { color: var(--accent); text-decoration: none; font-weight: 600; }

.grid { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 700px) { .grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .grid { grid-template-columns: repeat(4, 1fr); } }
/* Jogos: capas deitadas 16:10. Histórias: capas de livro 2:3, mais colunas. */
.grid--games .card__cover { aspect-ratio: 16/10; }
.grid--stories { grid-template-columns: repeat(3, 1fr); }
.grid--stories .card__cover { aspect-ratio: 2/3; }
@media (min-width: 700px) { .grid--stories { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1000px) { .grid--stories { grid-template-columns: repeat(6, 1fr); } }
.card { position: relative; display: block; border-radius: var(--radius); overflow: hidden; background: var(--bg-2); text-decoration: none;
  border: 1px solid var(--line); transition: transform .15s, border-color .15s; }
.card:hover { transform: translateY(-3px); border-color: var(--accent); }
.card__cover { width: 100%; aspect-ratio: 3/4; object-fit: cover; }
.card--soon { opacity: .6; }
.card__badge { position: absolute; top: 8px; left: 8px; font-size: .72rem; font-weight: 700; padding: 3px 8px; border-radius: 99px; background: rgb(0 0 0 / .7); }
.card__body { display: block; padding: 10px 12px 12px; }
.card__title { display: block; font-size: .95rem; line-height: 1.3; }
.card__meta { display: flex; justify-content: space-between; gap: 8px; color: var(--muted); font-size: .8rem; margin-top: 4px; }

.cta { margin-top: 56px; padding: 28px; border-radius: var(--radius); border: 1px dashed var(--line); text-align: center; }
.cta p { color: var(--muted); }

.work__hero { position: relative; display: grid; gap: 20px; padding: 28px 0; isolation: isolate; }
.work__hero::before { content: ""; position: absolute; inset: 0 -50vw; z-index: -1; background: var(--cover) center/cover;
  filter: blur(40px) brightness(.35); opacity: .8; }
.work__cover { width: min(260px, 70%); border-radius: var(--radius); box-shadow: 0 20px 50px rgb(0 0 0 / .6); }
.work__info h1 { margin: 0 0 8px; font-size: clamp(1.7rem, 5vw, 2.8rem); }
.work__tagline { font-size: 1.1rem; }
.work__creator { color: var(--muted); }
.work__actions { margin-top: 16px; }
@media (min-width: 760px) { .work__hero { grid-template-columns: 260px 1fr; align-items: end; } .work__cover { width: 100%; } }
.work__content { max-width: 860px; }
.media { width: 100%; border-radius: var(--radius); margin: 24px 0; }
.gallery { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); margin: 16px 0; }
.gallery figure { margin: 0; }
.gallery img { border-radius: 10px; aspect-ratio: 1; object-fit: cover; width: 100%; }
.gallery figcaption { font-size: .8rem; color: var(--muted); margin-top: 4px; }

.toc__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 32px; }
.toc__head h2 { margin: 0; }
.lang-switch { display: flex; gap: 6px; }
.lang-switch__btn { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 99px; border: 1px solid var(--line);
  background: transparent; color: var(--muted); font: inherit; font-size: .9rem; text-decoration: none; cursor: pointer; }
.lang-switch__btn span { font-size: 1.2rem; line-height: 1; }
.lang-switch__btn:hover { color: var(--text); }
.lang-switch__btn.is-on { border-color: var(--accent); color: var(--text); background: rgb(255 122 47 / .12); }
.chapter__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.chapter__top .eyebrow { margin: 0; }
.toc__list { list-style: none; padding: 0; display: grid; gap: 10px; }
.toc__list a { display: flex; gap: 12px; align-items: center; text-decoration: none; padding: 8px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg-2); }
.toc__list a:hover { border-color: var(--accent); }
.toc__list img { width: 96px; aspect-ratio: 16/10; object-fit: cover; border-radius: 8px; flex: none; }
.toc__list small { display: block; color: var(--muted); }

.chapter { max-width: 720px; margin: 0 auto; padding-top: 24px; }
.chapter h1 { font-size: clamp(1.6rem, 5vw, 2.4rem); }
.chapter__image { border-radius: var(--radius); margin-bottom: 24px; }
.chapter__text { font: 1.12rem/1.8 var(--serif); }
.chapter__nav { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin: 40px 0; }

.social { max-width: 860px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); }
.social__bar { display: flex; align-items: center; gap: 12px; }
.social__hint { color: var(--muted); font-size: .9rem; }
.social__form { display: grid; gap: 8px; margin-bottom: 16px; }
.social__form textarea, .account input { width: 100%; padding: 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg-2); color: var(--text); font: inherit; }
.social__form .btn { justify-self: end; }
.social__list { list-style: none; padding: 0; display: grid; gap: 10px; }
.comment { padding: 12px 14px; border-radius: 12px; background: var(--bg-2); }
.comment p { margin: 0; white-space: pre-wrap; }
.comment__head { color: var(--muted); font-size: .85rem; margin-bottom: 4px !important; }
.comment__del { background: none; border: 0; color: var(--muted); cursor: pointer; text-decoration: underline; font-size: .8rem; }
.comment--empty { color: var(--muted); }

.account { max-width: 560px; margin: 40px auto; }
.account__email { display: flex; gap: 8px; margin: 14px 0; flex-wrap: wrap; }
.account__email input { flex: 1 1 220px; }
.account__msg, .account__off { color: var(--muted); }
.steps li { margin-bottom: 8px; }

.footer { border-top: 1px solid var(--line); text-align: center; color: var(--muted); font-size: .85rem; padding: 24px 16px; }

/* Likes (corações) */
.likes { color: var(--muted); font-size: .85rem; white-space: nowrap; text-decoration: none; }
.likes.is-liked { color: #ff5d7a; }
.likes--big { font-size: 1rem; margin-left: 10px; }
.toc__list .likes { display: block; margin-top: 4px; }
.btn--like { gap: 10px; white-space: nowrap; flex: none; }
.btn--like.is-on { color: #ff5d7a; border-color: #ff5d7a; background: rgb(255 93 122 / .1); }
.btn--like.is-on .likes { color: inherit; }
.btn--like.pop { animation: like-pop .35s ease; }
@keyframes like-pop { 40% { transform: scale(1.15); } }
.social__soon { color: var(--muted); }
