:root {
  color-scheme: light;
  --ink: #142b49;
  --muted: #647991;
  --blue: #1688e8;
  --aqua: #30c6d8;
  --line: #d9eaf6;
  --surface: #ffffff;
  --snow: #f5fbff;
  --shadow: 0 12px 35px rgb(46 101 154 / 12%);
  font-family: "Trebuchet MS", "Segoe UI", system-ui, sans-serif;
  scroll-behavior: smooth;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: var(--snow); color: var(--ink); }
button, input { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 3px solid #0b87e9; outline-offset: 3px; }
[hidden] { display: none !important; }
.page-shell { width: min(100% - 64px, 1500px); margin-inline: auto; }

.skip-link { position: absolute; z-index: 100; top: -60px; left: 20px; padding: 10px 16px; border-radius: 12px; background: var(--ink); color: white; }
.skip-link:focus { top: 12px; }

.site-header { position: relative; z-index: 5; background: rgb(255 255 255 / 92%); border-bottom: 1px solid #e8f1f9; box-shadow: 0 3px 18px rgb(58 106 157 / 4%); }
.header-inner { min-height: 78px; display: flex; align-items: center; gap: clamp(18px, 3vw, 54px); }
.brand { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 12px; white-space: nowrap; }
.brand-mark { width: 44px; height: 44px; filter: drop-shadow(0 4px 5px rgb(24 137 232 / 15%)); }
.brand-name { font-size: clamp(1.35rem, 2.3vw, 2rem); font-weight: 1000; letter-spacing: -.06em; color: #187feb; line-height: 1; }
.brand-divider { padding-inline: 4px; color: #70c8f6; }
.brand-lite { font-weight: 800; letter-spacing: -.045em; color: #4b9bf1; }
.main-nav { display: flex; align-items: center; gap: 6px; margin-inline: auto; }
.nav-link { display: inline-flex; align-items: center; gap: 10px; padding: 11px 17px; border-radius: 999px; color: #264464; font-size: .98rem; font-weight: 800; white-space: nowrap; transition: background .2s, transform .2s; }
.nav-link:hover { background: #edf8ff; transform: translateY(-1px); }
.nav-link.is-active { background: #d7f1ff; color: #0d477d; }
.nav-link svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.nav-link:first-child svg { fill: currentColor; stroke: none; }
.search-box { flex: 0 1 260px; display: flex; align-items: center; gap: 9px; height: 44px; padding: 0 15px; background: white; border: 1px solid #dceaf5; border-radius: 999px; box-shadow: 0 3px 13px rgb(54 126 188 / 7%); }
.search-box:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px rgb(22 136 232 / 13%); }
.search-box svg { flex: 0 0 20px; width: 20px; height: 20px; fill: none; stroke: #5a7698; stroke-width: 2; stroke-linecap: round; }
.search-box input { width: 100%; min-width: 0; border: none; outline: none; background: transparent; color: var(--ink); font-size: .9rem; }
.search-box input::placeholder { color: #92a7bb; }

.hero { position: relative; overflow: hidden; min-height: 435px; background: linear-gradient(105deg, #fbfdff 3%, #f8fcff 38%, #e9f7ff 70%, #c7e9ff 100%); }
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .52; background-image: radial-gradient(circle at 3% 9%, #c9f7fb 0 3px, transparent 4px), radial-gradient(circle at 51% 16%, #90ddec 0 2px, transparent 3px), radial-gradient(circle at 87% 82%, #fff 0 5px, transparent 6px), linear-gradient(140deg, transparent 84%, rgb(255 255 255 / 52%) 84.2%, transparent 84.6%); background-size: 260px 190px, 330px 240px, 420px 220px, 100% 100%; }
.hero-glow { position: absolute; border-radius: 50%; pointer-events: none; }
.hero-glow-one { width: 530px; height: 530px; right: 22%; top: -260px; background: rgb(174 232 255 / 32%); filter: blur(4px); }
.hero-glow-two { width: 700px; height: 330px; right: -160px; bottom: -165px; background: rgb(43 169 251 / 14%); filter: blur(18px); }
.hero-inner { position: relative; min-height: 435px; display: grid; grid-template-columns: 44% 56%; align-items: center; }
.hero-copy { z-index: 3; padding: 40px 0 48px; }
.hero-kicker { display: inline-flex; align-items: center; gap: 7px; margin-bottom: 12px; color: #40abc9; font-size: .8rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.hero-kicker span { font-size: 1.4rem; }
.hero h1 { max-width: 680px; margin: 0; color: #102a4a; font-family: "Arial Rounded MT Bold", "Trebuchet MS", system-ui, sans-serif; font-size: clamp(3rem, 5.4vw, 5.8rem); font-weight: 1000; letter-spacing: -.065em; line-height: .99; text-wrap: balance; text-shadow: 0 2px 0 rgb(255 255 255 / 35%); }
.hero h1 span { display: block; margin-top: 7px; background: linear-gradient(92deg, #1e88ed 5%, #25c2d4 96%); background-clip: text; -webkit-text-fill-color: transparent; }
.hero-copy p { max-width: 500px; margin: 24px 0 29px; color: #435e7c; font-size: clamp(1rem, 1.5vw, 1.3rem); line-height: 1.42; font-weight: 600; }
.primary-button { display: inline-flex; align-items: center; justify-content: center; gap: 11px; min-height: 56px; padding: 0 25px; border: 1px solid #76d9ff; border-radius: 999px; background: linear-gradient(100deg, #1380e5, #34c9de); box-shadow: 0 8px 17px rgb(20 147 227 / 22%), inset 0 2px 0 rgb(255 255 255 / 56%); color: white; font-size: 1.03rem; font-weight: 900; white-space: nowrap; transition: transform .2s, box-shadow .2s; }
.primary-button:hover { transform: translateY(-3px); box-shadow: 0 11px 23px rgb(20 147 227 / 28%), inset 0 2px 0 rgb(255 255 255 / 56%); }
.primary-button svg { width: 23px; height: 23px; fill: #a7f8ff; stroke: white; stroke-width: 1.5; }
.primary-button span { font-size: 1.4rem; font-weight: 500; }

.hero-art { position: relative; align-self: stretch; min-height: 435px; }
.hero-frame { position: absolute; overflow: hidden; border: 7px solid white; border-radius: 27px; background: #e1f4ff; box-shadow: 0 15px 27px rgb(41 92 153 / 21%); }
.hero-frame img { width: 100%; height: 100%; object-fit: cover; }
.hero-frame-main { z-index: 3; width: min(29vw, 385px); height: min(30vw, 405px); top: -24px; left: 29%; transform: rotate(5deg); }
.hero-frame-side { z-index: 1; width: min(21vw, 265px); height: min(19vw, 240px); top: 20px; left: 6%; transform: rotate(-10deg); }
.hero-frame-angry { z-index: 2; width: min(21vw, 255px); height: min(17vw, 220px); bottom: 4px; left: 5%; transform: rotate(-7deg); }
.hero-frame-dark { z-index: 2; width: min(20vw, 240px); height: min(20vw, 235px); top: 24px; right: -1%; transform: rotate(8deg); }
.hero-chibi { position: absolute; z-index: 4; width: clamp(110px, 12vw, 180px); height: clamp(110px, 12vw, 180px); right: -1%; bottom: -1px; overflow: hidden; border: 6px solid white; border-radius: 35%; box-shadow: 0 10px 21px rgb(35 90 147 / 18%); transform: rotate(8deg); background: white; }
.hero-chibi img { width: 100%; height: 100%; object-fit: cover; }
.hero-spark { position: absolute; z-index: 5; font-size: 2.7rem; color: #64d8f3; filter: drop-shadow(0 2px 2px white); }
.spark-one { top: 8%; left: 36%; }
.spark-two { right: 2%; top: 34%; color: #ffc562; }
.spark-three { right: 19%; bottom: 7%; color: #ff7fac; }

.gallery-section { padding-block: 40px 76px; scroll-margin-top: 18px; }
.gallery-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.heading-title { display: flex; align-items: center; gap: 15px; }
.heading-diamond { width: 26px; height: 40px; flex: 0 0 auto; }
.gallery-heading h2 { margin: 0; font-family: "Arial Rounded MT Bold", "Trebuchet MS", system-ui, sans-serif; font-size: clamp(1.9rem, 2.5vw, 2.6rem); font-weight: 1000; letter-spacing: -.045em; }
.gallery-heading p { margin: 3px 0 0; color: var(--muted); font-size: .91rem; }
.filter-row { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.filter-chip { min-height: 38px; padding: 7px 19px; border: 1px solid transparent; border-radius: 999px; background: #e7f2fb; color: #365171; font-size: .9rem; font-weight: 800; white-space: nowrap; transition: background .18s, transform .18s; }
.filter-chip:hover { background: #d4ecfc; transform: translateY(-1px); }
.filter-chip.is-active { background: #198ced; color: white; box-shadow: 0 5px 12px rgb(24 140 237 / 17%); }
.filter-favorites { display: inline-flex; align-items: center; gap: 5px; }
.results-line { min-height: 22px; margin: 17px 0 11px; color: #7b8fa6; font-size: .81rem; }
.gallery-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.asset-card { position: relative; min-width: 0; overflow: hidden; border: 1px solid #e6f0f8; border-radius: 19px; background: white; box-shadow: 0 5px 19px rgb(40 97 157 / 9%); transition: transform .2s, box-shadow .2s; }
.asset-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.card-open { display: block; width: 100%; padding: 0; border: none; background: white; color: inherit; text-align: left; }
.card-media { position: relative; display: grid; place-items: center; aspect-ratio: 1.17; overflow: hidden; background: linear-gradient(135deg, #eaf8ff, #f9fdff); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.asset-card:hover .card-media img { transform: scale(1.045); }
.card-media.is-chibi img { width: min(83%, 250px); height: min(83%, 250px); object-fit: contain; border-radius: 18px; }
.card-badge { position: absolute; z-index: 1; top: 12px; left: 12px; display: inline-flex; align-items: center; gap: 5px; padding: 5px 9px; border-radius: 999px; background: rgb(20 45 70 / 79%); color: white; font-size: .72rem; font-weight: 900; letter-spacing: .03em; }
.card-badge.light { background: rgb(255 255 255 / 88%); color: #2276ae; }
.card-body { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 69px; padding: 12px 14px; }
.card-title { display: block; overflow: hidden; color: #183454; font-size: .97rem; font-weight: 900; text-overflow: ellipsis; white-space: nowrap; }
.card-subtitle { display: block; margin-top: 4px; color: #8092a5; font-size: .77rem; font-weight: 600; }
.card-arrow { flex: 0 0 auto; color: #5ca8e5; font-size: 1.3rem; }
.favorite-button { position: absolute; z-index: 2; right: 12px; top: 12px; display: grid; place-items: center; width: 35px; height: 35px; padding: 0; border: none; border-radius: 50%; background: rgb(255 255 255 / 94%); box-shadow: 0 2px 9px rgb(26 73 117 / 15%); color: #52799e; font-size: 1.5rem; line-height: 1; transition: transform .2s, color .2s; }
.favorite-button:hover { transform: scale(1.11); }
.favorite-button.is-favorite { color: #f05888; }
.empty-state { padding: 60px 20px; border: 1px dashed #bfdeef; border-radius: 20px; background: white; text-align: center; }
.empty-state > span { display: block; color: #5ccae5; font-size: 3rem; }
.empty-state h3 { margin: 10px 0 5px; font-size: 1.45rem; }
.empty-state p { margin: 0 0 20px; color: var(--muted); }
.text-button { border: 0; background: transparent; color: var(--blue); font-weight: 900; text-decoration: underline; }
.noscript-note { padding: 20px; background: white; border-radius: 15px; }

.about-strip { display: flex; align-items: center; gap: 30px; margin-bottom: 74px; padding: 24px 32px; border: 1px solid #cbeaf7; border-radius: 27px; background: linear-gradient(115deg, #e5f9ff, #f8fdff 56%, #fff9e7); }
.about-illustration { display: grid; place-items: center; flex: 0 0 110px; height: 110px; border-radius: 24px; background: white; box-shadow: 0 5px 15px rgb(35 96 156 / 10%); }
.about-illustration img { width: 100%; height: 100%; object-fit: contain; }
.eyebrow { color: #229cbd; font-size: .76rem; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; }
.about-strip h2 { margin: 4px 0 4px; font-size: clamp(1.3rem, 2vw, 1.8rem); letter-spacing: -.035em; }
.about-strip p { max-width: 680px; margin: 0; color: #607a91; font-size: .91rem; line-height: 1.5; }
.secondary-button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 44px; padding: 0 18px; border: 1px solid #b9def5; border-radius: 999px; background: white; color: #1875bc; font-size: .9rem; font-weight: 900; white-space: nowrap; transition: background .2s, transform .2s; }
.secondary-button:hover { background: #effaff; transform: translateY(-2px); }
.about-strip > .secondary-button { margin-left: auto; }
.site-footer { border-top: 1px solid #e0edf5; background: #eaf6fd; }
.footer-inner { display: flex; justify-content: space-between; gap: 40px; padding-block: 28px; color: #557188; }
.footer-inner strong { color: #2688d5; font-size: 1.13rem; font-weight: 1000; }
.footer-inner p { max-width: 600px; margin: 5px 0 0; font-size: .78rem; line-height: 1.5; }

.asset-dialog { width: min(92vw, 860px); max-height: min(88vh, 850px); padding: 0; overflow: auto; border: 1px solid #daedf8; border-radius: 24px; background: white; box-shadow: 0 25px 90px rgb(9 43 80 / 34%); }
.asset-dialog::backdrop { background: rgb(10 38 67 / 70%); backdrop-filter: blur(5px); }
.dialog-close { position: sticky; z-index: 5; top: 12px; float: right; display: grid; place-items: center; width: 38px; height: 38px; margin: 12px 12px -50px 0; border: 0; border-radius: 50%; background: rgb(255 255 255 / 94%); box-shadow: 0 2px 10px rgb(22 64 106 / 14%); color: #1d496a; font-size: 1.7rem; }
.dialog-media { display: grid; place-items: center; min-height: 340px; max-height: 58vh; overflow: hidden; background: linear-gradient(135deg, #eaf8ff, #fff); }
.dialog-media img { max-width: 100%; max-height: 58vh; object-fit: contain; }
.dialog-content { padding: 21px 28px 27px; }
.dialog-kind { color: #218fc3; font-size: .75rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.dialog-content h2 { margin: 5px 0 4px; font-size: 1.6rem; }
.dialog-content p { margin: 0 0 17px; color: var(--muted); font-size: .86rem; }
.dialog-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.dialog-download { min-height: 45px; padding-inline: 19px; font-size: .89rem; }
.source-link { margin-left: auto; color: #187bbc; font-size: .88rem; font-weight: 900; text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 1160px) {
  .page-shell { width: min(100% - 40px, 1500px); }
  .header-inner { gap: 12px; }
  .brand-name { font-size: 1.45rem; }
  .nav-link { padding-inline: 11px; }
  .hero-inner { grid-template-columns: 47% 53%; }
  .hero h1 { font-size: clamp(2.8rem, 5.5vw, 4.8rem); }
  .gallery-grid { gap: 14px; }
}

@media (max-width: 900px) {
  .header-inner { flex-wrap: wrap; padding-block: 10px; row-gap: 8px; }
  .brand { flex: 1 1 auto; }
  .main-nav { order: 3; width: 100%; justify-content: center; }
  .search-box { flex: 0 1 250px; }
  .hero, .hero-inner, .hero-art { min-height: 400px; }
  .hero-frame-main { width: 33vw; height: 34vw; left: 28%; top: 11px; }
  .hero-frame-side { width: 23vw; height: 22vw; }
  .hero-frame-angry { width: 23vw; height: 19vw; }
  .hero-frame-dark { width: 22vw; height: 22vw; }
  .gallery-heading { align-items: start; flex-direction: column; }
  .filter-row { justify-content: flex-start; }
  .gallery-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .about-strip { gap: 18px; }
  .about-illustration { flex-basis: 90px; height: 90px; }
}

@media (max-width: 650px) {
  .page-shell { width: min(100% - 28px, 1500px); }
  .site-header { position: relative; }
  .header-inner { justify-content: space-between; }
  .brand-mark { width: 34px; height: 34px; }
  .brand-name { font-size: 1.2rem; }
  .search-box { order: 3; flex-basis: 100%; height: 40px; }
  .main-nav { order: 2; width: auto; margin: 0; }
  .nav-link { padding: 8px; font-size: 0; }
  .nav-link svg { width: 21px; height: 21px; }
  .hero { min-height: 645px; }
  .hero-inner { display: flex; flex-direction: column; min-height: 645px; align-items: stretch; }
  .hero-copy { padding: 30px 0 0; }
  .hero-kicker { margin-bottom: 8px; font-size: .68rem; }
  .hero h1 { max-width: 560px; font-size: clamp(2.85rem, 10.5vw, 4.3rem); }
  .hero-copy p { margin: 17px 0 19px; font-size: 1rem; }
  .primary-button { min-height: 50px; padding-inline: 18px; font-size: .89rem; }
  .hero-art { flex: 1; min-height: 260px; margin-inline: -14px; }
  .hero-frame { border-width: 5px; border-radius: 18px; }
  .hero-frame-main { width: min(53vw, 260px); height: min(53vw, 260px); left: 28%; top: 12px; }
  .hero-frame-side { width: min(33vw, 166px); height: min(32vw, 155px); top: 0; left: 1%; }
  .hero-frame-angry { width: min(34vw, 170px); height: min(30vw, 145px); bottom: 20px; left: 2%; }
  .hero-frame-dark { width: min(30vw, 150px); height: min(30vw, 150px); top: 25px; right: -1%; }
  .hero-chibi { width: 108px; height: 108px; right: 1%; bottom: 8px; }
  .spark-one { top: 3%; }
  .spark-two { top: 51%; }
  .gallery-section { padding-block: 32px 55px; }
  .heading-title { align-items: start; gap: 9px; }
  .gallery-heading h2 { font-size: 1.85rem; }
  .filter-row { flex-wrap: nowrap; max-width: calc(100vw - 28px); overflow-x: auto; padding: 3px 1px 8px; justify-content: flex-start; scrollbar-width: thin; }
  .filter-chip { flex: 0 0 auto; min-height: 36px; padding-inline: 14px; font-size: .82rem; }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
  .asset-card { border-radius: 15px; }
  .card-media { aspect-ratio: 1; }
  .card-body { min-height: 62px; padding: 9px 10px; }
  .card-title { font-size: .82rem; }
  .card-subtitle { font-size: .7rem; }
  .favorite-button { width: 31px; height: 31px; top: 7px; right: 7px; }
  .card-badge { top: 8px; left: 8px; padding: 4px 7px; font-size: .65rem; }
  .about-strip { flex-wrap: wrap; margin-bottom: 46px; padding: 19px; }
  .about-illustration { flex-basis: 75px; height: 75px; }
  .about-strip > div:nth-child(2) { flex: 1 1 200px; }
  .about-strip > .secondary-button { margin-left: 0; }
  .footer-inner { flex-direction: column; gap: 11px; padding-block: 25px; }
  .asset-dialog { width: min(95vw, 860px); }
  .dialog-media { min-height: 260px; }
  .dialog-content { padding: 18px; }
  .dialog-actions { gap: 8px; }
  .source-link { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
