/* =========================================================
   1fbx.com — Free Game Assets (public site, soft UI)
   Palette: #355070 #6d597a #b56576 #e56b6f #eaac8b
   ========================================================= */
:root {
  --navy: #355070;
  --plum: #6d597a;
  --rose: #b56576;
  --coral: #e56b6f;
  --peach: #eaac8b;
  --bg: #efeaee;
  --surface: #f7f4f6;
  --surface-2: #fbf9fa;
  --text: #2b3445;
  --muted: #6f6a78;
  --line: rgba(53, 80, 112, .1);
  --radius: 20px;
  --radius-sm: 14px;
  --shadow: 9px 9px 20px rgba(53, 80, 112, .12), -9px -9px 20px rgba(255, 255, 255, .85);
  --shadow-sm: 4px 4px 10px rgba(53, 80, 112, .11), -4px -4px 10px rgba(255, 255, 255, .9);
  --inset: inset 4px 4px 9px rgba(53, 80, 112, .12), inset -4px -4px 9px rgba(255, 255, 255, .9);
  --font-head: 'Libre Baskerville', Georgia, 'Times New Roman', serif;
  --font-body: 'Inria Serif', Georgia, 'Times New Roman', serif;
  --container: 1360px;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html, body { overflow-x: clip; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font-body); font-size: 18px; line-height: 1.6;
  background-image: radial-gradient(circle at 0 0, rgba(234, 172, 139, .18), transparent 35%), radial-gradient(circle at 100% 30%, rgba(109, 89, 122, .1), transparent 30%);
  background-attachment: fixed;
}
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--navy); line-height: 1.25; margin: 0 0 .6em; }
h1 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem); }
h2 { font-size: 1.35rem; }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
a { color: var(--navy); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--coral); }
img { max-width: 100%; height: auto; }
button { font: inherit; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.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; }
.skip-link { position: absolute; left: -9999px; top: 10px; background: var(--navy); color: #fff; padding: 8px 14px; border-radius: 10px; z-index: 100; }
.skip-link:focus { left: 10px; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
:focus-visible { outline: 3px solid rgba(229, 107, 111, .55); outline-offset: 2px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
main.container { padding-top: 22px; padding-bottom: 40px; min-height: 50vh; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; padding: 14px 0 6px; background: linear-gradient(var(--bg) 70%, rgba(239, 234, 238, 0)); }
.header-inner { display: flex; align-items: center; gap: 20px; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 10px 14px 10px 20px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); flex: none; }
.logo:hover { color: var(--navy); }
.logo-mark { flex: none; transition: transform .4s; }
.logo:hover .logo-mark { transform: rotate(-8deg) scale(1.05); }
.logo-text { font-family: var(--font-head); font-weight: 700; font-size: 1.22rem; letter-spacing: .2px; white-space: nowrap; }

.main-nav { margin-left: auto; }
.menu { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; align-items: center; }
.menu > li { position: relative; }
.menu > li > a { display: inline-flex; align-items: center; gap: 6px; padding: 10px 16px; border-radius: 12px; text-decoration: none; color: var(--text); font-weight: 700; transition: background .15s, box-shadow .15s, color .15s; }
.menu > li > a:hover, .menu > li:hover > a { background: var(--surface-2); box-shadow: var(--shadow-sm); color: var(--navy); }
.menu > li > a.active { background: var(--navy); color: #fff; box-shadow: 0 6px 14px rgba(53, 80, 112, .28); }
.menu .caret { transition: transform .2s; }
.has-mega:hover .caret { transform: rotate(180deg); }
.sub-toggle { display: none; }

/* mega menu (multi-level) */
.mega {
  position: absolute; right: 0; top: calc(100% + 10px); width: min(760px, 92vw); min-height: 280px; max-height: min(460px, calc(100vh - 120px)); display: flex;
  background: var(--surface); border-radius: var(--radius); box-shadow: 0 24px 60px rgba(53, 80, 112, .22), var(--shadow-sm);
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .18s, transform .18s, visibility .18s;
  overflow: hidden;
}
.mega::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
.has-mega:hover > .mega, .has-mega:focus-within > .mega { opacity: 1; visibility: visible; transform: none; }
.mega-mains { list-style: none; margin: 0; padding: 12px; width: 270px; flex: none; max-height: inherit; overflow-y: auto; border-right: 1px solid var(--line); background: var(--surface-2); }
.mega-mains > li > a { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 10px; text-decoration: none; color: var(--text); font-size: .98rem; }
.mega-mains > li.active > a, .mega-mains > li > a:hover { background: #fff; color: var(--navy); box-shadow: var(--shadow-sm); }
.mega-mains > li.active > a { color: var(--coral); }
.count { font-size: .75rem; color: var(--muted); background: rgba(53, 80, 112, .07); padding: 1px 8px; border-radius: 99px; font-family: var(--font-body); }
.mega-subs { display: none; position: absolute; left: 270px; top: 0; right: 0; bottom: 0; padding: 22px 24px; overflow-y: auto; }
.mega-mains > li.active > .mega-subs { display: block; }
.mega-subs ul { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 14px; }
.mega-subs ul a { display: flex; justify-content: space-between; gap: 8px; padding: 8px 10px; border-radius: 10px; text-decoration: none; color: var(--text); font-size: .95rem; }
.mega-subs ul a:hover { background: var(--surface-2); color: var(--coral); }
.mega-all { font-family: var(--font-head); font-weight: 700; text-decoration: none; color: var(--navy); font-size: 1.05rem; }

.hamburger { display: none; margin-left: auto; width: 46px; height: 44px; border: 0; border-radius: 12px; background: var(--surface-2); box-shadow: var(--shadow-sm); cursor: pointer; padding: 0; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--navy); margin: 5px auto; border-radius: 2px; transition: transform .25s, opacity .25s; }
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
  .hamburger { display: block; }
  .header-inner { flex-wrap: wrap; }
  .main-nav { display: none; width: 100%; margin: 4px 0 6px; max-height: calc(100vh - 110px); overflow-y: auto; }
  .main-nav.open { display: block; }
  .menu { flex-direction: column; align-items: stretch; gap: 4px; }
  .menu > li { display: flex; flex-wrap: wrap; align-items: center; }
  .menu > li > a { flex: 1; }
  .menu .caret { display: none; }
  .sub-toggle { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border: 0; border-radius: 10px; background: var(--surface-2); box-shadow: var(--shadow-sm); cursor: pointer; color: var(--navy); }
  .sub-toggle::before { content: "+"; font-size: 1.3rem; line-height: 1; }
  .sub-toggle[aria-expanded="true"]::before { content: "–"; }
  .mega { position: static; width: 100%; height: auto; min-height: 0; max-height: none; opacity: 1; visibility: visible; transform: none; box-shadow: none; background: none; display: none; flex-basis: 100%; overflow: visible; }
  .mega.open { display: block !important; }
  .mega-mains { width: auto; height: auto; overflow: visible; border: 0; background: none; padding: 6px 0 6px 12px; }
  .mega-mains > li { display: flex; flex-wrap: wrap; align-items: center; }
  .mega-mains > li > a { flex: 1; }
  .mega-mains > li.active > a { color: var(--text); box-shadow: none; background: none; }
  .mega-subs, .mega-mains > li.active > .mega-subs { display: none; position: static; padding: 4px 0 8px 14px; flex-basis: 100%; }
  .mega-mains > li.open > .mega-subs { display: block; }
  .mega-subs ul { grid-template-columns: 1fr; margin-top: 6px; }
  .mega-all { font-size: .95rem; }
  .sub-toggle { width: 36px; height: 36px; }
  .menu > li > .sub-toggle { width: 42px; height: 42px; }
}
@media (max-width: 420px) { .logo-text { font-size: 1.05rem; } }

.staff-bar { font-size: .9rem; color: var(--muted); text-align: center; margin-top: 6px; }

/* ---------- ads ---------- */
.ad-slot { max-width: 100%; display: flex; justify-content: center; align-items: center; overflow: hidden; }
.ad-leaderboard { margin-top: 18px; margin-bottom: 4px; max-width: var(--container); }
.ad-leaderboard > * { max-width: 100%; }
.ad-below-asset { margin: 26px 0; }
.ad-rect { margin-bottom: 24px; min-height: 250px; }
.ad-footer { margin-bottom: 18px; }

/* ---------- hero & search ---------- */
.hero { text-align: center; max-width: 900px; margin: 18px auto 34px; }
.hero h1 { margin-bottom: .45em; }
.hero-intro { color: var(--muted); font-size: 1.12rem; max-width: 760px; margin: 0 auto 24px; }
.hero-compact { margin-bottom: 26px; }
.h-page span { color: var(--rose); font-size: .7em; }
.search-form { display: flex; gap: 10px; max-width: 680px; margin: 0 auto; background: var(--surface); padding: 8px; border-radius: 99px; box-shadow: var(--shadow); }
.search-form input { flex: 1; min-width: 0; border: 0; background: var(--surface-2); box-shadow: var(--inset); border-radius: 99px; padding: 13px 22px; font: inherit; font-size: 1.02rem; color: var(--text); outline: none; }
.search-form input:focus { box-shadow: var(--inset), 0 0 0 3px rgba(229, 107, 111, .2); }
.search-form button { display: inline-flex; align-items: center; gap: 8px; border: 0; border-radius: 99px; padding: 0 24px; background: linear-gradient(135deg, var(--coral), var(--rose)); color: #fff; font-weight: 700; cursor: pointer; box-shadow: 0 8px 18px rgba(229, 107, 111, .3); transition: transform .15s; }
.search-form button:hover { transform: translateY(-1px); }
@media (max-width: 520px) { .search-form button span { display: none; } .search-form button { padding: 0 16px; } }

/* ---------- list head & sort tabs ---------- */
.list-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin: 10px 0 20px; }
.list-title { margin: 0; font-size: 1.25rem; }
.sort-tabs { display: inline-flex; gap: 6px; padding: 6px; background: var(--surface); border-radius: 16px; box-shadow: var(--inset); flex-wrap: wrap; }
.sort-tabs a { text-decoration: none; padding: 9px 16px; border-radius: 12px; color: var(--muted); font-weight: 700; font-size: .95rem; transition: all .15s; }
.sort-tabs a:hover { color: var(--navy); }
.sort-tabs a.active { background: var(--surface-2); color: var(--navy); box-shadow: var(--shadow-sm); }
@media (max-width: 560px) { .sort-tabs { width: 100%; } .sort-tabs a { flex: 1; text-align: center; padding: 9px 6px; font-size: .88rem; } }

/* ---------- asset grid ---------- */
.asset-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 22px; }
@media (max-width: 1240px) { .asset-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (max-width: 1060px) { .asset-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 860px) { .asset-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; } }
@media (max-width: 680px) { .asset-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .asset-grid { grid-template-columns: 1fr; } }

.card-asset { position: relative; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; }
.card-asset:hover { transform: translateY(-4px); box-shadow: 12px 14px 26px rgba(53, 80, 112, .17), -8px -8px 18px rgba(255, 255, 255, .9); }
.ca-link { display: block; padding: 10px; text-decoration: none; color: inherit; border-radius: inherit; position: relative; z-index: 1; background: var(--surface); }
.ca-thumb { position: relative; aspect-ratio: 1 / 1; border-radius: 14px; overflow: hidden; background: #e9e1e6; }
.ca-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.card-asset:hover .ca-thumb img { transform: scale(1.05); }
.ca-body { padding: 10px 4px 4px; }
.ca-title { font-family: var(--font-body); font-weight: 700; font-size: 1rem; line-height: 1.3; margin: 0 0 6px; color: var(--text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; }
.card-asset:hover .ca-title { color: var(--navy); }
.ca-meta { display: flex; align-items: center; justify-content: space-between; gap: 6px; font-size: .85rem; color: var(--muted); }
.ca-dl { display: inline-flex; align-items: center; gap: 4px; }

/* featured: animated gradient border + glow + badge */
.card-asset.is-featured { isolation: isolate; }
.card-asset.is-featured::before {
  content: ""; position: absolute; inset: -3px; border-radius: calc(var(--radius) + 3px); z-index: 0;
  background: conic-gradient(from var(--angle, 0deg), var(--coral), var(--peach), var(--plum), var(--navy), var(--rose), var(--coral));
  animation: spin-border 4s linear infinite;
}
.card-asset.is-featured::after {
  content: ""; position: absolute; inset: 8px; border-radius: var(--radius); z-index: -1;
  background: conic-gradient(from var(--angle, 0deg), var(--coral), var(--peach), var(--plum), var(--coral));
  filter: blur(18px); opacity: .45; animation: spin-border 4s linear infinite;
}
.ca-badge { position: absolute; top: 10px; left: 10px; z-index: 2; background: linear-gradient(135deg, var(--coral), var(--rose)); color: #fff; font-size: .75rem; font-weight: 700; padding: 4px 10px; border-radius: 99px; box-shadow: 0 4px 10px rgba(229, 107, 111, .4); letter-spacing: .3px; }
.ca-badge::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .55) 50%, transparent 70%); background-size: 250% 100%; animation: shine 2.6s ease-in-out infinite; }
@property --angle { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@keyframes spin-border { to { --angle: 360deg; } }
@keyframes shine { 0% { background-position: 120% 0; } 60%, 100% { background-position: -120% 0; } }
@media (prefers-reduced-motion: reduce) {
  .card-asset.is-featured::before, .card-asset.is-featured::after, .ca-badge::after { animation: none; }
  .card-asset, .ca-thumb img { transition: none; }
}

/* stars */
.stars { display: inline-flex; gap: 1px; }
.star { width: 14px; height: 14px; position: relative; display: inline-block;
  background: linear-gradient(90deg, var(--peach) var(--fill, 0%), #d9cfd6 var(--fill, 0%));
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.5l2.9 6.1 6.6.8-4.9 4.6 1.3 6.6L12 17.3l-5.9 3.3 1.3-6.6-4.9-4.6 6.6-.8z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.5l2.9 6.1 6.6.8-4.9 4.6 1.3 6.6L12 17.3l-5.9 3.3 1.3-6.6-4.9-4.6 6.6-.8z'/%3E%3C/svg%3E") center / contain no-repeat; }

/* ---------- pagination ---------- */
.pagination { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin: 36px 0 10px; }
.pagination a, .pagination span { min-width: 44px; height: 44px; padding: 0 14px; display: inline-flex; align-items: center; justify-content: center; border-radius: 14px; background: var(--surface); box-shadow: var(--shadow-sm); text-decoration: none; color: var(--navy); font-weight: 700; }
.pagination a:hover { color: var(--coral); }
.pagination .current { background: var(--navy); color: #fff; box-shadow: 0 6px 14px rgba(53, 80, 112, .28); }
.pagination .gap { background: none; box-shadow: none; }

/* ---------- SEO text, rich text ---------- */
.seo-text { max-width: 900px; margin: 46px auto 10px; background: var(--surface); padding: 30px 34px; border-radius: var(--radius); box-shadow: var(--shadow); }
.seo-text.center { text-align: center; }
.rich-text h2 { font-size: 1.3rem; margin-top: 1.2em; }
.rich-text h2:first-child, .rich-text h3:first-child { margin-top: 0; }
.rich-text ul, .rich-text ol { padding-left: 1.3em; text-align: left; }
.rich-text blockquote { margin: 1em 0; padding: 10px 18px; border-left: 4px solid var(--peach); background: var(--surface-2); border-radius: 0 12px 12px 0; }
.rich-text .ql-align-center { text-align: center; } .rich-text .ql-align-right { text-align: right; } .rich-text .ql-align-justify { text-align: justify; }
.rich-text p:last-child { margin-bottom: 0; }

/* ---------- breadcrumbs / category head / chips ---------- */
.breadcrumbs ol { list-style: none; margin: 4px 0 14px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: .92rem; color: var(--muted); }
.breadcrumbs li + li::before { content: "›"; margin-right: 6px; color: var(--rose); }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--coral); }
.cat-head { text-align: center; margin: 8px auto 26px; max-width: 900px; }
.cat-head h1 { margin-bottom: .3em; }
.cat-head h1 span { color: var(--rose); font-size: .7em; }
.cat-icon { display: block; margin: 0 auto 10px; border-radius: 16px; }
.cat-sub { color: var(--muted); margin-bottom: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 99px; background: var(--surface); box-shadow: var(--shadow-sm); text-decoration: none; color: var(--navy); font-size: .92rem; font-weight: 700; }
.chip span { font-size: .75rem; color: var(--muted); font-weight: 400; }
.chip:hover { color: var(--coral); }
.chip-feat { background: linear-gradient(135deg, var(--coral), var(--rose)); color: #fff; }

/* ---------- categories page ---------- */
.cat-grid { columns: 3 300px; column-gap: 24px; }
.cat-card { break-inside: avoid; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px 22px; margin-bottom: 24px; }
.cat-card h2 { display: flex; align-items: center; gap: 10px; font-size: 1.15rem; margin-bottom: 10px; }
.cat-card h2 a { text-decoration: none; }
.cat-card h2 .count { margin-left: auto; }
.cat-card ul { list-style: none; margin: 0; padding: 0; }
.cat-card li { display: flex; justify-content: space-between; gap: 8px; padding: 5px 0; border-top: 1px solid var(--line); font-size: .96rem; }
.cat-card li a { text-decoration: none; color: var(--text); }
.cat-card li a:hover { color: var(--coral); }
.cat-card .is-empty a, .cat-card.is-empty h2 a { color: var(--muted); }

/* ---------- single asset ---------- */
.asset-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 30px; align-items: start; }
@media (max-width: 1000px) { .asset-layout { grid-template-columns: 1fr; } }
.asset-layout > * { min-width: 0; }
.asset-head h1 { margin-bottom: .4em; }
.asset-meta { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; color: var(--muted); font-size: .95rem; margin-bottom: 20px; }
.meta-item { display: inline-flex; align-items: center; }
.meta-item + .meta-item::before { content: "•"; margin-right: 14px; color: var(--peach); }
.gallery-box { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px; }
.gallery-main { border-radius: 14px; overflow: hidden; background: #e9e1e6; display: flex; align-items: center; justify-content: center; aspect-ratio: 16 / 10; }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; display: block; }
.gallery-thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; padding: 4px; }
.gallery-thumbs button { flex: none; width: 84px; height: 84px; padding: 0; border: 0; border-radius: 12px; overflow: hidden; cursor: pointer; box-shadow: var(--shadow-sm); opacity: .7; transition: opacity .15s, outline-color .15s; outline: 3px solid transparent; outline-offset: 0; }
.gallery-thumbs button img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-thumbs button.active, .gallery-thumbs button:hover { opacity: 1; outline-color: var(--coral); }

.download-box { margin-top: 24px; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px 24px; display: grid; grid-template-columns: auto 1fr; gap: 20px 30px; align-items: center; }
@media (max-width: 760px) { .download-box { grid-template-columns: 1fr; text-align: center; } }

.rating-box { text-align: center; }
.rating-stars { display: inline-flex; gap: 4px; }
.rstar { width: 34px; height: 34px; padding: 0; border: 0; cursor: pointer; background: linear-gradient(90deg, var(--peach) var(--fill, 0%), #d9cfd6 var(--fill, 0%));
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.5l2.9 6.1 6.6.8-4.9 4.6 1.3 6.6L12 17.3l-5.9 3.3 1.3-6.6-4.9-4.6 6.6-.8z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.5l2.9 6.1 6.6.8-4.9 4.6 1.3 6.6L12 17.3l-5.9 3.3 1.3-6.6-4.9-4.6 6.6-.8z'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform .15s; }
.rstar:hover { transform: scale(1.15); }
.rating-stars.hovering .rstar { background: #d9cfd6; }
.rating-stars.hovering .rstar.hot { background: var(--coral); }
.rating-stars.busy { pointer-events: none; opacity: .6; }
.rating-text { font-size: .95rem; color: var(--muted); margin-top: 2px; }
.rating-text strong { color: var(--navy); font-family: var(--font-head); font-size: 1.15rem; }
.rating-msg { font-size: .88rem; color: var(--rose); min-height: 1.3em; }

.dl-area { text-align: center; }
.btn-download {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px; width: 100%; max-width: 460px;
  padding: 18px 26px; border: 0; border-radius: 18px; cursor: pointer; color: #fff; font-weight: 700; font-size: 1.15rem;
  background: linear-gradient(135deg, var(--coral), var(--rose) 55%, var(--plum)); background-size: 160% 160%;
  box-shadow: 0 12px 26px rgba(229, 107, 111, .35); transition: transform .15s, box-shadow .15s, background-position .4s;
}
.btn-download small { font-weight: 400; opacity: .9; }
.btn-download:hover { transform: translateY(-2px); background-position: 100% 0; box-shadow: 0 16px 32px rgba(229, 107, 111, .42); }
.btn-download[disabled] { background: #c9bfc6; box-shadow: none; cursor: not-allowed; transform: none; }
.dl-countdown { display: flex; align-items: center; justify-content: center; gap: 16px; text-align: left; padding: 8px 0; }
.dl-countdown[hidden] { display: none; }
.ring { width: 64px; height: 64px; transform: rotate(-90deg); flex: none; }
.ring circle { fill: none; stroke-width: 4; }
.ring-bg { stroke: #e3d9df; }
.ring-fg { stroke: var(--coral); stroke-linecap: round; stroke-dasharray: 119.4; stroke-dashoffset: 0; transition: stroke-dashoffset 1s linear; }
.dl-countdown b { color: var(--coral); font-size: 1.2rem; }
.dl-status { margin-top: 8px; font-size: .95rem; min-height: 1.4em; }
.dl-status.ok { color: #3f8f6b; }
.dl-status.err { color: #c2464b; }
.dl-note { font-size: .85rem; color: var(--muted); margin: 10px 0 0; }

.asset-desc { margin-top: 24px; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px 28px; }
.asset-details { display: grid; grid-template-columns: 140px 1fr; gap: 8px 16px; margin: 24px 0 0; padding-top: 18px; border-top: 1px solid var(--line); font-size: .98rem; }
.asset-details dt { color: var(--muted); }
.asset-details dd { margin: 0; }
.report-line { margin: 22px 0 0; text-align: right; }
.link-btn { background: none; border: 0; color: var(--muted); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; padding: 0; }
.link-btn:hover { color: var(--coral); }

/* sidebar widgets */
.sidebar { position: sticky; top: 110px; }
@media (max-width: 1000px) { .sidebar { position: static; } }
.widget { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; margin-bottom: 24px; }
.widget-title { font-size: 1.1rem; margin-bottom: 14px; }
.widget-center { text-align: center; max-width: 900px; margin: 36px auto 0; }
.widget-center .tag-cloud { justify-content: center; }
.mini-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.mini-card { display: block; text-decoration: none; color: var(--text); font-size: .88rem; line-height: 1.3; font-weight: 700; }
.mini-card img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; display: block; margin-bottom: 6px; box-shadow: var(--shadow-sm); transition: transform .2s; }
.mini-card:hover img { transform: translateY(-2px); }
.mini-card.is-featured img { outline: 2px solid var(--coral); outline-offset: 2px; }
.mini-card:hover { color: var(--coral); }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-cloud a { padding: 6px 12px; border-radius: 99px; background: var(--surface-2); box-shadow: var(--shadow-sm); text-decoration: none; color: var(--navy); font-size: .9rem; transition: all .15s; }
.tag-cloud a::before { content: "#"; color: var(--peach); margin-right: 2px; }
.tag-cloud a:hover { background: var(--navy); color: #fff; }

/* ---------- modal ---------- */
.modal { border: 0; border-radius: 24px; padding: 28px; width: min(520px, 94vw); background: var(--surface); box-shadow: 0 30px 80px rgba(53, 80, 112, .35); color: var(--text); }
.modal::backdrop { background: rgba(43, 52, 69, .45); backdrop-filter: blur(3px); }
.modal h2 { margin-bottom: .3em; }
.modal-close-form { position: absolute; top: 14px; right: 14px; margin: 0; }
.modal-x { width: 38px; height: 38px; border: 0; border-radius: 12px; background: var(--surface-2); box-shadow: var(--shadow-sm); cursor: pointer; font-size: 1.4rem; line-height: 1; color: var(--navy); }
.reasons { border: 0; padding: 0; margin: 14px 0; display: grid; gap: 8px; }
.reasons label { display: flex; gap: 10px; align-items: center; padding: 10px 14px; border-radius: 12px; background: var(--surface-2); box-shadow: var(--shadow-sm); cursor: pointer; }
.reasons input { accent-color: var(--coral); }

/* ---------- forms & buttons ---------- */
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 700; color: var(--navy); margin-bottom: 6px; font-size: .96rem; }
.field input, .field textarea, .field select { width: 100%; font: inherit; font-size: 1rem; color: var(--text); background: var(--surface-2); border: 1px solid transparent; border-radius: var(--radius-sm); padding: 12px 14px; box-shadow: var(--inset); outline: none; }
.field input:focus, .field textarea:focus { border-color: var(--rose); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 24px; border-radius: 14px; border: 0; cursor: pointer; font-weight: 700; text-decoration: none; background: var(--surface); color: var(--navy); box-shadow: var(--shadow-sm); }
.btn-primary { background: linear-gradient(135deg, var(--navy), var(--plum)); color: #fff; box-shadow: 0 8px 18px rgba(53, 80, 112, .3); }
.btn-primary:hover { color: #fff; transform: translateY(-1px); }
.alert { padding: 12px 16px; border-radius: 12px; margin-bottom: 14px; background: var(--surface-2); box-shadow: var(--shadow-sm); border-left: 5px solid var(--navy); }
.alert.success { border-color: #3f8f6b; }
.alert.error { border-color: #c2464b; color: #7d2a2e; }
.form-msg { min-height: 1.4em; margin-bottom: 10px; font-size: .95rem; }
.form-msg.ok { color: #3f8f6b; }
.form-msg.err { color: #c2464b; }
.notice { background: rgba(234, 172, 139, .3); border-radius: 14px; padding: 12px 16px; margin-bottom: 18px; }

/* ---------- static pages ---------- */
.page-narrow { max-width: 980px; margin: 0 auto; }
.panel { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px 30px; }
.panel-soft { background: var(--surface-2); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 26px; align-items: start; }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }
.legal h2 { margin-top: 1.6em; font-size: 1.3rem; }
.legal h3 { margin-top: 1.2em; }
.legal ul { padding-left: 1.3em; }
.legal-updated { color: var(--muted); font-style: italic; }
@media (max-width: 600px) { .panel { padding: 22px 18px; } .seo-text { padding: 22px 20px; } .asset-desc { padding: 22px 18px; } }

/* ---------- empty / 404 / maintenance ---------- */
.empty-state { text-align: center; padding: 50px 20px; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); color: var(--muted); }
.error-page { text-align: center; max-width: 720px; margin: 20px auto 10px; }
.error-art { display: flex; align-items: center; justify-content: center; gap: 10px; font-family: var(--font-head); font-size: clamp(5rem, 14vw, 8.5rem); font-weight: 700; color: var(--navy); line-height: 1; margin-bottom: 20px; }
.error-art span:last-child { color: var(--coral); }
.error-art .logo-mark { animation: float 3s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-10px) rotate(-6deg); } }
.error-page .search-form { margin: 22px auto; }
body.maintenance-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px; }
.maintenance-card { max-width: 560px; text-align: center; background: var(--surface); border-radius: 26px; box-shadow: var(--shadow); padding: 40px 34px; }
.maintenance-card .logo-mark { margin-bottom: 10px; animation: float 3s ease-in-out infinite; }

/* ---------- footer ---------- */
.site-footer { margin-top: 30px; padding: 0 0 26px; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px 28px; }
.footer-brand p { margin: 8px 0 0; color: var(--muted); font-size: .95rem; max-width: 420px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer-nav a { text-decoration: none; color: var(--text); font-weight: 700; font-size: .95rem; }
.footer-nav a:hover { color: var(--coral); }
.footer-bottom { text-align: center; color: var(--muted); font-size: .88rem; margin-top: 16px; }
