@font-face {
  font-family: "Google Sans Flex";
  src: url("/assets/fonts/GoogleSansFlex-Variable.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
}

:root {
  color-scheme: dark;
  font-family: "Google Sans Flex", Arial, sans-serif;
  font-synthesis: none;
  letter-spacing: 0;
  background: #0b0c0d;
  color: #eceeed;
  --bg: #0b0c0d;
  --surface: #17191b;
  --line: #292c2e;
  --muted: #898e90;
  --accent: #c7ed71;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html.custom-page-scrollbar { scrollbar-width: none; }
html.custom-page-scrollbar::-webkit-scrollbar { display: none; }
body { margin: 0; min-width: 320px; background: var(--bg); text-transform: uppercase; }
html.sidebar-open, body.sidebar-open { overflow: hidden; overscroll-behavior: none; }
button, input { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
button:focus-visible, input:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
[hidden] { display: none !important; }
svg { display: block; width: 18px; height: 18px; stroke-width: 1.8; }
i[data-lucide] { display: inline-flex; align-items: center; justify-content: center; font-style: normal; line-height: 1; }
img { display: block; max-width: 100%; }
.page-scrollbar { position: fixed; top: 6px; right: 0; bottom: 6px; z-index: 45; width: 12px; opacity: 0; pointer-events: none; transition: opacity .8s ease; }
.page-scrollbar.is-visible { opacity: 1; }
.page-scrollbar-thumb { position: absolute; top: 0; right: 0; width: 12px; pointer-events: none; touch-action: none; cursor: grab; }
.page-scrollbar-thumb::after { content: ""; position: absolute; top: 0; right: 4px; bottom: 0; width: 3px; border-radius: 2px; background: #53585a; }
.page-scrollbar.is-visible .page-scrollbar-thumb { pointer-events: auto; }
.page-scrollbar.is-dragging .page-scrollbar-thumb { cursor: grabbing; }

.topbar {
  height: 72px;
  display: grid;
  grid-template-columns: 252px minmax(0, 1fr);
  align-items: center;
  gap: 30px;
  padding-right: 34px;
  border-bottom: 0;
  background: #171819;
  position: sticky;
  top: 0;
  z-index: 40;
}
.topbar-start { height: 100%; display: flex; align-items: center; padding-left: 27px; }
.brand { display: inline-flex; align-items: center; gap: 13px; white-space: nowrap; font-size: 22px; font-weight: 750; }
.brand-light { font-weight: 430; color: #c8cbcb; }
.brand-dot { color: var(--accent); }
.brand-mark { width: 50px; height: 50px; flex: none; display: block; }
.brand-mark img { width: 100%; height: 100%; object-fit: contain; }
.search-box { height: 40px; display: flex; align-items: center; gap: 12px; padding: 0 14px; border: 0; border-radius: 6px; background: #090a0b; color: #989fa2; transition: background .2s; }
.search-box:focus-within { background: #101213; box-shadow: inset 0 0 0 1px #4c5355; }
.search-box svg { width: 17px; height: 17px; }
.search-box input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: #eceeed; font-size: 13px; }
.search-box input::placeholder { color: #989fa2; }
.search-box input::-webkit-search-cancel-button { cursor: pointer; }
.sponsor-widget { min-width: 0; display: flex; align-items: center; text-transform: none; }
.sponsor-widget > * { max-width: 100%; }
.sponsor-widget .bmc-btn { min-width: 0 !important; max-width: 100%; height: 40px !important; min-height: 40px; padding: 0 12px !important; border-radius: 6px !important; font-size: 13px !important; line-height: 1 !important; transition: box-shadow .2s cubic-bezier(.2, .8, .2, 1); }
.sponsor-widget .bmc-btn:hover { height: 42px !important; min-height: 42px; padding: 0 13px !important; font-size: 14px !important; box-shadow: 0 8px 18px rgba(0, 0, 0, .24); }
.sponsor-widget .bmc-btn-text { width: auto !important; margin-left: 6px !important; font-size: 13px !important; line-height: 1 !important; }
.sponsor-widget .bmc-btn:hover .bmc-btn-text { font-size: 14px !important; }
.sponsor-widget .bmc-btn svg, .sponsor-widget .bmc-btn img { width: 18px !important; height: 18px !important; }
.sponsor-widget .bmc-btn:hover svg, .sponsor-widget .bmc-btn:hover img { width: 19px !important; height: 19px !important; }
.sponsor-widget noscript a { color: #e2e7e2; font-size: 11px; text-decoration: underline; }
#bmc-wbtn { display: none !important; }
.icon-button { width: 35px; height: 35px; display: inline-flex; align-items: center; justify-content: center; flex: none; border: 0; border-radius: 5px; background: #272b2d; color: #e3e6e4; }
.icon-button:hover { background: #383d3f; }
.mobile-menu { display: none; }

.sidebar { position: fixed; top: 72px; bottom: 0; left: 0; width: 252px; display: flex; flex-direction: column; overflow: hidden; padding: 25px 14px 24px; border-right: 0; background: #121314; z-index: 30; overscroll-behavior: contain; touch-action: pan-y; }
.sidebar > .sidebar-head, .sidebar > .category-button, .sidebar > .sidebar-divider, .sidebar > .sidebar-sponsor { flex-shrink: 0; }
#categoryList { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; touch-action: pan-y; scrollbar-color: #343638 transparent; scrollbar-width: thin; }
.sidebar button:focus-visible, .sidebar a:focus-visible { outline-color: #c4c8c9; }
.sidebar-head { display: flex; justify-content: space-between; gap: 8px; padding: 0 13px 18px; color: #8e9292; font-size: 10px; font-weight: 700; }
.sidebar-head span:last-child { color: #676d6e; font-weight: 500; white-space: nowrap; }
.category-row { position: relative; display: flex; align-items: center; min-width: 0; }
.category-row .category-button { flex: 1; min-width: 0; }
.category-row.has-children .category-name { margin-right: 30px; }
.category-button { width: 100%; height: 47px; display: flex; align-items: center; gap: 11px; padding: 0 12px; border: 0; border-radius: 5px; background: transparent; color: #aeb2b3; text-align: left; font-size: 12px; transition: background .18s, color .18s; }
.category-button:hover { background: #1e2022; color: #f3f4f3; }
.category-button.active { background: #292b2d; color: #f2f3f2; }
.category-button.contains-active { color: #e2e4e4; }
.category-toggle { position: absolute; right: 33px; z-index: 1; width: 30px; height: 39px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 5px; background: transparent; color: #8b9092; transition: background .18s, color .18s; }
.category-toggle:hover { background: #292b2d; color: #eceeee; }
.category-toggle[aria-expanded="true"] { color: #c6caca; }
.category-toggle svg { width: 16px; height: 16px; transition: transform .18s; }
.category-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.category-all-icon { width: 28px; height: 28px; flex: none; display: grid; place-items: center; border-radius: 3px; background: #292b2d; color: #b7bcbf; }
.category-button.active .category-all-icon { background: #3a3d3f; color: #f0f2f2; }
.category-all-icon svg { width: 15px; height: 15px; }
.category-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 550; }
.category-count { flex: none; color: #777d7d; font-size: 11px; font-variant-numeric: tabular-nums; }
.category-button.active .category-count { color: #d2d6d6; }
.subcategory-list { margin: 0 0 3px 16px; padding: 2px 0 3px 8px; }
.subcategory-button { width: 100%; height: 43px; display: flex; align-items: center; gap: 9px; padding: 0 11px 0 9px; border: 0; border-radius: 5px; background: transparent; color: #929899; text-align: left; font-size: 11px; transition: background .18s, color .18s; }
.subcategory-button:hover { background: #1e2022; color: #f3f4f3; }
.subcategory-button.active { background: #292b2d; color: #f2f3f2; }
.subcategory-button.active .category-count { color: #d2d6d6; }
.sidebar-divider { height: 0; margin: 14px 11px; }
.sidebar-sponsor { display: flex; align-items: center; justify-content: center; flex: none; margin-top: 14px; padding: 24px 0 0; }
.sidebar-sponsor .sponsor-widget { width: 100%; justify-content: center; }
.sidebar-backdrop { display: none; touch-action: none; overscroll-behavior: none; }

.gallery-view { min-height: calc(100vh - 72px); margin-left: 252px; }
.content-shell { max-width: none; margin: 0 auto; padding: 27px 28px 40px; }
.texture-grid, .detail-more-grid { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 10px; }
.texture-grid::after, .detail-more-grid::after { content: ""; flex: 1000 0 0; }
.load-more-sentinel { min-height: 46px; display: grid; place-items: center; color: #758078; font-size: 11px; }
.load-more-sentinel[hidden] { display: none; }
.texture-card { position: relative; flex: var(--card-ratio, 1) 1 var(--card-basis, 220px); width: auto; min-width: 0; margin: 0; padding: 0; border: 0; background: transparent; color: inherit; text-align: left; transform-origin: center; transition: transform .28s cubic-bezier(.2, .8, .2, 1), box-shadow .28s cubic-bezier(.2, .8, .2, 1); z-index: 0; }
.texture-card:hover, .texture-card:focus-visible { transform: scale(1.035); z-index: 5; box-shadow: 0 18px 34px rgba(0, 0, 0, .38); }
.texture-card:focus-visible { outline: 2px solid #e2e9e2; outline-offset: 4px; }
.card-image { position: relative; display: block; width: 100%; aspect-ratio: var(--card-ratio, 1); overflow: hidden; border: 1px solid #303435; border-radius: 10px; background: #242628; }
.card-image img { width: 100%; height: 100%; object-fit: contain; }
.transparency-checkerboard {
  --checker-size: 18px;
  background-color: #202324;
  background-image: linear-gradient(45deg, #2b2f30 25%, transparent 25%, transparent 75%, #2b2f30 75%), linear-gradient(45deg, #2b2f30 25%, transparent 25%, transparent 75%, #2b2f30 75%);
  background-position: 0 0, calc(var(--checker-size) / 2) calc(var(--checker-size) / 2);
  background-size: var(--checker-size) var(--checker-size);
}

.detail-view { padding-bottom: 38px; animation: detail-panel-in .26s cubic-bezier(.2, .8, .2, 1) both; }
.detail-dialog { position: relative; display: grid; grid-template-columns: minmax(0, 1.14fr) minmax(210px, .72fr); width: 100%; height: min(650px, calc(100vh - 118px)); min-height: 420px; overflow: hidden; border: 0; border-radius: 10px; background: #16191a; box-shadow: 0 26px 72px rgba(0, 0, 0, .4); }
.detail-close { position: absolute; top: 13px; right: 13px; z-index: 3; background: #272b29; }
.detail-stage { min-width: 0; min-height: 0; display: flex; align-items: center; justify-content: center; position: relative; padding: 24px; background: #0c0d0e; }
.detail-stage.transparency-checkerboard {
  --checker-size: 22px;
  background-color: #202324;
  background-image: linear-gradient(45deg, #2b2f30 25%, transparent 25%, transparent 75%, #2b2f30 75%), linear-gradient(45deg, #2b2f30 25%, transparent 25%, transparent 75%, #2b2f30 75%);
  background-position: 0 0, calc(var(--checker-size) / 2) calc(var(--checker-size) / 2);
  background-size: var(--checker-size) var(--checker-size);
}
.detail-stage img { width: 100%; height: 100%; max-width: 100%; max-height: 100%; object-fit: contain; }
.detail-image-nav { position: absolute; top: 50%; z-index: 2; width: 38px; height: 38px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 5px; background: rgba(24, 27, 27, .86); color: #edf0ed; transform: translateY(-50%); transition: background .18s; }
.detail-image-nav:hover { background: rgba(55, 61, 59, .96); }
.detail-image-nav svg { width: 20px; height: 20px; }
.detail-image-previous { left: 12px; }
.detail-image-next { right: 12px; }
.detail-info { min-width: 0; overflow-y: auto; display: flex; flex-direction: column; padding: 30px 22px 22px; background: #171a1a; }
.section-kicker { color: #9ea4a1; font-size: 10px; font-weight: 760; }
.detail-info h1 { margin: 16px 0 7px; font-size: 20px; line-height: 1.28; font-weight: 680; overflow-wrap: anywhere; }
.detail-file { margin: 0; color: #768279; font-size: 10px; overflow-wrap: anywhere; }
.detail-rule { height: 1px; margin: 20px 0; background: #303632; }
.detail-info dl { margin: 0; }
.detail-info dl > div { display: flex; justify-content: space-between; gap: 14px; padding-bottom: 14px; }
.detail-info dl > div:last-child { padding-bottom: 0; }
.detail-info dt, .detail-tags > span { color: #7f8980; font-size: 10px; }
.detail-info dd { max-width: 145px; margin: 0; color: #d6ddd6; text-align: right; font-size: 10px; overflow-wrap: anywhere; }
.detail-tags > div { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.detail-tags button { padding: 5px 8px; border: 1px solid #3d4b3a; border-radius: 3px; background: #273027; color: #c1d8bc; font-size: 10px; }
.detail-tags button:hover { background: #354135; }
.section-meta { color: #737d78; font-size: 11px; }
.primary-button, .secondary-button { min-height: 39px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 16px; border-radius: 5px; font-size: 12px; font-weight: 660; white-space: nowrap; }
.primary-button { border: 0; background: #1da1f2; color: #000; }
.primary-button:hover { background: #4db5f5; }
.primary-button:focus-visible { outline-color: #1da1f2; }
.primary-button svg { width: 16px; height: 16px; }
.secondary-button { border: 0; background: #272b29; color: #e3ebe0; }
.secondary-button:hover { background: #333a32; }
.detail-actions { width: 100%; display: grid; gap: 9px; margin-top: auto; }
.detail-download { width: 100%; }
.detail-download.disabled { opacity: .45; cursor: default; }
.detail-sponsor { position: relative; isolation: isolate; width: 100%; min-height: 132px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; overflow: hidden; padding: 17px 14px 15px; border: 0; border-radius: 14px; background: linear-gradient(145deg, #ffe327 0%, #ffd500 100%); color: #11130d; text-align: center; text-decoration: none; font-family: "Google Sans Flex", Arial, sans-serif; box-shadow: 0 9px 22px rgba(0, 0, 0, .18); transition: transform .2s, box-shadow .2s, filter .2s; }
.detail-sponsor::after { content: ""; position: absolute; right: -30px; bottom: -44px; z-index: -1; width: 130px; height: 130px; border: 1px solid rgba(255, 255, 255, .25); border-radius: 50%; box-shadow: 0 0 0 14px rgba(255, 255, 255, .08), 0 0 0 28px rgba(255, 255, 255, .06); pointer-events: none; }
.detail-sponsor:hover { transform: translateY(-2px); filter: saturate(1.04); box-shadow: 0 14px 28px rgba(0, 0, 0, .28); }
.detail-sponsor:focus-visible { outline: 2px solid #e2e9e2; outline-offset: 3px; }
.detail-sponsor-question { font-size: 15px; line-height: 1.12; font-weight: 800; letter-spacing: -.02em; text-transform: uppercase; }
.detail-sponsor-subtitle { font-size: 11px; line-height: 1.1; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.detail-sponsor-cta { min-height: 33px; display: inline-flex; align-items: center; gap: 7px; margin-top: 3px; padding: 0 12px; border: 1px solid rgba(17, 19, 13, .18); border-radius: 999px; background: rgba(255, 255, 255, .2); font-size: 12px; line-height: 1; font-weight: 680; text-transform: none; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28); }
.detail-sponsor-cta svg { width: 15px; height: 15px; stroke-width: 2.2; }
.detail-more-grid { margin-top: 16px; }
.empty-state { padding: 100px 20px 120px; color: #929a96; text-align: center; }
.empty-state > svg { width: 33px; height: 33px; margin: 0 auto 18px; color: #6b7565; }
.empty-state h2 { margin: 0 0 8px; color: #e4e8e3; font-size: 19px; }
.empty-state p { margin: 0 0 23px; font-size: 12px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
@keyframes detail-panel-in { from { opacity: 0; transform: translateY(-12px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }

@media (max-width: 1050px) {
  .topbar { grid-template-columns: 230px minmax(0, 1fr); gap: 36px; padding-right: 22px; }
  .sidebar { width: 230px; }
  .gallery-view { margin-left: 230px; }
}
@media (max-width: 830px) {
  .topbar { position: fixed; top: 0; right: 0; left: 0; grid-template-columns: auto minmax(170px, 1fr); gap: 17px; padding: 0 18px; }
  .topbar-start { padding: 0; gap: 11px; }
  .mobile-menu { display: inline-flex; }
  .sidebar { width: min(280px, 82vw); transform: translateX(-100%); transition: transform .24s ease; box-shadow: 20px 0 60px rgba(0, 0, 0, .25); }
  .sidebar.open { transform: translateX(0); }
  .sidebar-backdrop:not([hidden]) { display: block; position: fixed; inset: 72px 0 0; z-index: 25; background: rgba(0, 0, 0, .55); }
  .gallery-view { margin-left: 0; padding-top: 72px; }
}
@media (max-width: 640px) {
  .topbar { height: 112px; grid-template-columns: minmax(0, 1fr); grid-template-rows: 48px 36px; gap: 8px; align-content: center; padding: 6px 13px 10px; }
  .topbar-start { width: 100%; min-height: 48px; }
  .brand { gap: 6px; font-size: 17px; }
  .brand-mark { width: 27px; height: 27px; }
  .mobile-menu { width: 31px; height: 31px; background: transparent; }
  .mobile-menu svg { width: 19px; height: 19px; }
  .search-box { width: 100%; height: 36px; gap: 6px; padding: 0 8px; }
  .search-box input { font-size: 11px; }
  .sponsor-widget .bmc-btn { height: 36px !important; min-height: 36px; padding: 0 10px !important; font-size: 12px !important; }
  .sponsor-widget .bmc-btn-text { font-size: 12px !important; }
  .sponsor-widget .bmc-btn:hover { height: 38px !important; min-height: 38px; padding: 0 11px !important; font-size: 13px !important; }
  .sponsor-widget .bmc-btn:hover .bmc-btn-text { font-size: 13px !important; }
  .sidebar { top: 112px; }
  .sidebar-backdrop:not([hidden]) { inset: 112px 0 0; }
  .gallery-view { min-height: calc(100vh - 112px); padding-top: 112px; }
  .content-shell { padding: 18px 10px 24px; }
  .texture-grid, .detail-more-grid { gap: 8px; }
  .texture-card { flex-basis: var(--card-basis-mobile, 140px); }
  .card-image { border-radius: 8px; }
  .detail-dialog { display: flex; flex-direction: column; height: auto; min-height: 0; }
  .detail-stage { height: min(62vh, 480px); min-height: 250px; flex: none; padding: 18px; }
  .detail-info { min-height: 0; overflow: visible; padding: 22px 18px 18px; }
  .detail-info h1 { margin-top: 12px; font-size: 19px; }
  .detail-info dl > div { padding-bottom: 10px; }
  .detail-rule { margin: 15px 0; }
  .detail-actions { margin-top: 20px; }
  .detail-more-grid { margin-top: 12px; }
}
@media (max-width: 385px) {
  .brand { font-size: 15px; }
  .topbar { gap: 5px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
