

.ico-search { -webkit-mask: url("../icons/search.svg") center / contain no-repeat; mask: url("../icons/search.svg") center / contain no-repeat; }
.ico-home { -webkit-mask: url("../icons/home.svg") center / contain no-repeat; mask: url("../icons/home.svg") center / contain no-repeat; }
.ico-news { -webkit-mask: url("../icons/news.svg") center / contain no-repeat; mask: url("../icons/news.svg") center / contain no-repeat; }
.ico-download { -webkit-mask: url("../icons/download.svg") center / contain no-repeat; mask: url("../icons/download.svg") center / contain no-repeat; }
.ico-bag { -webkit-mask: url("../icons/bag.svg") center / contain no-repeat; mask: url("../icons/bag.svg") center / contain no-repeat; }
.ico-mail { -webkit-mask: url("../icons/mail.svg") center / contain no-repeat; mask: url("../icons/mail.svg") center / contain no-repeat; }
.ico-close { -webkit-mask: url("../icons/close.svg") center / contain no-repeat; mask: url("../icons/close.svg") center / contain no-repeat; }

html.layer-open { overflow: hidden; }
html.layer-open .reticle { opacity: 0; }

.site-header .wrap { flex-wrap: nowrap; }
.header-actions { gap: var(--space-2); }
.header-actions .icon-btn { width: 46px; height: 46px; }
.search-btn .ico { width: 22px; height: 22px; transition: transform 800ms cubic-bezier(.3, 1.5, .4, 1); }
@media (hover: hover) and (pointer: fine) {
  .search-btn:hover .ico { transform: rotate(-18deg) scale(1.18); }
}

.burger, .menu-x { position: relative; }
.burger i, .menu-x i { position: absolute; top: 50%; left: 50%; width: 22px; height: 3px; margin: -1.5px 0 0 -11px; background: currentColor; transform-origin: 100% 50%; transition: transform 800ms var(--ease-out), opacity 300ms ease; }
.burger i:nth-child(1), .menu-x i:nth-child(1) { transform: translate3d(0, -7px, 0); }
.burger i:nth-child(3), .menu-x i:nth-child(3) { transform: translate3d(0, 7px, 0); }
@media (hover: hover) and (pointer: fine) {
  .burger:hover i:nth-child(1) { transform: translate3d(0, -7px, 0) scaleX(.62); }
  .burger:hover i:nth-child(2) { transform: scaleX(.86); }
  .burger:hover i:nth-child(3) { transform: translate3d(0, 7px, 0) scaleX(.38); }
}
.burger:active i { transition-duration: 200ms; }

.dock {
  position: fixed; z-index: 45; inset-inline: 0; bottom: calc(14px + env(safe-area-inset-bottom)); margin-inline: auto;
  width: min(540px, 100% - 24px); display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 6px; isolation: isolate;
  background: var(--p0); border: var(--bw) solid var(--i0); box-shadow: 6px 6px 0 var(--i0);
}
.dock a { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 58px; text-decoration: none; font-size: 13px; font-weight: 800; line-height: 1.5; color: var(--i0); transition: color 450ms var(--ease-out); }
.dock a:focus-visible { outline-offset: -5px; outline-color: var(--ink); }
.dock .ico { width: 24px; height: 24px; transition: transform 800ms cubic-bezier(.3, 1.5, .4, 1); }
.dock a[aria-current="page"] { color: var(--p0); }
.dock a[aria-current="page"] .ico { transform: translate3d(0, -2px, 0) scale(1.14); }
.dock-pill { position: absolute; z-index: 0; inset-block: 6px; inset-inline-start: 6px; width: calc((100% - 12px) / var(--n, 4)); background: var(--i0); transform: translate3d(calc(var(--idx, 0) * -100%), 0, 0); transition: transform 900ms cubic-bezier(.34, 1.38, .4, 1), opacity 400ms ease; }
.dock.none .dock-pill { opacity: 0; }
.dock.dock-init .dock-pill { transition: none; }
@media (hover: hover) and (pointer: fine) {
  .dock a:not([aria-current="page"]):hover .ico { transform: translate3d(0, -4px, 0) rotate(-6deg); }
}
.dock a:active .ico { transform: scale(.82); transition-duration: 150ms; }
.site-footer { padding-bottom: calc(var(--space-6) + 92px + env(safe-area-inset-bottom)); }

.menu, .searchbox { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; overflow: hidden; }
.menu:not([open]), .searchbox:not([open]) { display: none; }
.menu::backdrop, .searchbox::backdrop { background: transparent; }

.menu { --ink: var(--p0); --paper: var(--i0); background: var(--paper); color: var(--ink); }
.menu-inner { width: var(--wrap); margin-inline: auto; height: 100%; display: flex; flex-direction: column; overflow-y: auto; overscroll-behavior: contain; padding-bottom: calc(var(--space-5) + env(safe-area-inset-bottom)); }
.menu-top { flex: none; display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); padding-block: var(--space-2); }
.menu-brand { display: inline-flex; align-items: center; gap: var(--space-2); font-weight: 900; font-size: 24px; line-height: 1.4; }
.menu-brand::before { content: ""; width: 34px; height: 34px; background: currentColor; -webkit-mask: url("../icons/gamepad.svg") center / contain no-repeat; mask: url("../icons/gamepad.svg") center / contain no-repeat; flex: none; }
.menu-x { width: 46px; height: 46px; padding: 0; border: var(--bw) solid var(--ink); background: transparent; color: var(--ink); cursor: pointer; }
.menu-x i { transform-origin: 50% 50%; }
.menu.is-in .menu-x i:nth-child(1) { transform: translate3d(0, 0, 0) rotate(45deg); transition-delay: 320ms; }
.menu.is-in .menu-x i:nth-child(2) { transform: scaleX(0); transition-delay: 320ms; }
.menu.is-in .menu-x i:nth-child(3) { transform: translate3d(0, 0, 0) rotate(-45deg); transition-delay: 320ms; }

.menu-links { margin-block: auto; padding-block: var(--space-5); display: flex; flex-direction: column; }
.menu-links a { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center; justify-content: space-between; min-height: clamp(76px, 14dvh, 124px); padding-inline: 6px; border-bottom: var(--bw) solid var(--ink); color: var(--ink); text-decoration: none; font-size: clamp(42px, 11vw, 88px); font-weight: 900; line-height: 1.3; transition: color 350ms ease; }
.menu-links a:first-child { border-top: var(--bw) solid var(--ink); }
.menu-links a::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--ink); transform: scaleY(0); transform-origin: 50% 100%; transition: transform 650ms var(--ease-out); }
.menu-links a::after { content: ""; flex: none; width: .26em; height: .26em; background: currentColor; transform: scale(0) rotate(45deg); transition: transform 700ms cubic-bezier(.3, 1.5, .4, 1); }
.menu-links a[aria-current="page"]::after { transform: scale(1) rotate(45deg); }
.mw { display: block; overflow: hidden; padding-block: .06em; translate: 0 0; transition: translate 600ms var(--ease-out); }
.mt { display: block; transform: translate3d(0, 115%, 0); transition: transform 500ms cubic-bezier(.55, 0, .75, .1); }
.menu.is-in .mt { transform: none; transition: transform 1000ms var(--ease-out) calc(var(--n, 0) * 75ms + 260ms); }
.menu-links a:nth-child(2) .mt { --n: 1; } .menu-links a:nth-child(3) .mt { --n: 2; } .menu-links a:nth-child(4) .mt { --n: 3; } .menu-links a:nth-child(5) .mt { --n: 4; } .menu-links a:nth-child(6) .mt { --n: 5; }
@media (hover: hover) and (pointer: fine) {
  .menu-links a:hover { color: var(--paper); }
  .menu-links a:hover::before { transform: scaleY(1); }
  .menu-links a:hover .mw { translate: -20px 0; }
  .menu-links a:hover::after { transform: scale(1) rotate(135deg); }
}
.menu-links a:active::before { transform: scaleY(1); }
.menu-links a:active { color: var(--paper); }

.menu-foot { flex: none; display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3) var(--space-4); }
.menu-small { display: inline-flex; align-items: center; min-height: 44px; font-weight: 800; color: var(--ink); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.menu.is-in .menu-foot > * { animation: menu-rise 1000ms var(--ease-out) backwards; }
.menu.is-in .menu-foot > :nth-child(1) { animation-delay: 700ms; }
.menu.is-in .menu-foot > :nth-child(2) { animation-delay: 770ms; }
.menu.is-in .menu-foot > :nth-child(3) { animation-delay: 840ms; }
.menu.is-in .menu-foot > :nth-child(4) { animation-delay: 900ms; }
@keyframes menu-rise { from { opacity: 0; transform: translate3d(0, 28px, 0); } }
@media (max-width: 639px) { .menu-foot .btn { flex: 1 1 100%; } }

.searchbox { background: var(--p0); color: var(--i0); }
.sb-inner { width: min(100% - 2 * var(--gutter), 880px); margin-inline: auto; height: 100%; display: flex; flex-direction: column; padding-top: calc(var(--space-5) + env(safe-area-inset-top)); }
.sb-form { flex: none; display: flex; align-items: center; gap: var(--space-4); padding-bottom: var(--space-3); margin: 0; }
.sb-lens { width: 36px; height: 36px; transform: rotate(-80deg) scale(.3); opacity: 0; transition: transform 1100ms cubic-bezier(.3, 1.5, .4, 1) 300ms, opacity 400ms ease 300ms; }
.searchbox.is-in .sb-lens { transform: none; opacity: 1; }
.searchbox.is-busy .sb-lens { animation: lens-scan 900ms ease-in-out infinite; }
@keyframes lens-scan { 0%, 100% { transform: translate3d(0, 0, 0) rotate(0); } 25% { transform: translate3d(-5px, 3px, 0) rotate(-14deg); } 75% { transform: translate3d(5px, -3px, 0) rotate(14deg); } }
.sb-input { flex: 1; min-width: 0; padding: 6px 0; border: 0; border-radius: 0; background: transparent; color: inherit; font: inherit; font-size: clamp(26px, 6.4vw, 50px); font-weight: 900; line-height: 1.6; outline: none; box-shadow: none; -webkit-appearance: none; appearance: none; }
.sb-input::placeholder { color: var(--muted); opacity: 1; }
.sb-input::-webkit-search-cancel-button, .sb-input::-webkit-search-decoration { -webkit-appearance: none; display: none; }
.sb-close { flex: none; opacity: 0; transform: rotate(-90deg) scale(.6); transition: transform 900ms cubic-bezier(.3, 1.5, .4, 1) 450ms, opacity 400ms ease 450ms, background-color 200ms, color 200ms; }
.searchbox.is-in .sb-close { opacity: 1; transform: none; }

.sb-bar { position: relative; flex: none; height: 8px; overflow: hidden; border-block: var(--bw) solid var(--i0); background: var(--tint); }
.sb-bar span { position: absolute; inset: 0; background: var(--i0); transform: scaleX(0); transform-origin: 100% 50%; }
.searchbox.is-in .sb-bar span { transform: scaleX(1); transition: transform 1200ms var(--ease-out) 350ms; }
.sb-bar::after { content: ""; position: absolute; inset: 0 auto 0 0; width: 30%; background: var(--p0); opacity: 0; transform: translate3d(-100%, 0, 0); }
.searchbox.is-busy .sb-bar::after { opacity: 1; animation: bar-sweep 900ms cubic-bezier(.6, 0, .3, 1) infinite; }
@keyframes bar-sweep { to { transform: translate3d(340%, 0, 0); } }
.sb-form:focus-within + .sb-bar { height: 12px; transition: height 300ms var(--ease-out); }

.sb-results { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; margin-inline: -12px; padding: var(--space-5) 12px calc(var(--space-7) + env(safe-area-inset-bottom)); display: grid; align-content: start; gap: var(--space-5); }
.sb-group > h3 { display: flex; align-items: center; gap: var(--space-3); margin-bottom: var(--space-3); font-size: 16px; line-height: 1.6; }
.sb-group > h3 .badge { background: var(--i0); color: var(--p0); }
.sb-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3); }
.sr { position: relative; display: grid; grid-template-columns: 64px 1fr; align-items: center; gap: var(--space-4); padding: 8px 8px 8px var(--space-4); background: var(--p0); border: var(--bw) solid var(--i0); color: var(--i0); text-decoration: none; transition: transform 380ms var(--ease-out), box-shadow 380ms var(--ease-out); }
.sr .thumb { width: 64px; height: 64px; object-fit: cover; background-color: var(--tint); border: var(--bw) solid var(--i0); }
.sr .art { width: 64px; height: 64px; border-bottom: var(--bw) solid var(--i0); border: var(--bw) solid var(--i0); }
.sr .art::before { width: 28px; height: 28px; }
.sr .art::after { width: 16px; height: 16px; }
.sr-title { display: block; font-size: 17px; font-weight: 800; line-height: 1.7; }
.sr-meta { display: block; color: var(--muted); font-size: 13px; line-height: 1.6; }
.sr mark { background: var(--i0); color: var(--p0); padding: 0 3px; }
.sr:hover, .sr:focus-visible, .sr.is-active { transform: translate3d(-3px, -3px, 0); box-shadow: 6px 6px 0 var(--i0); }
.sr:focus-visible { outline: 3px solid var(--i0); outline-offset: 3px; }
.sb-results .sr { animation: sr-in 900ms var(--ease-out) backwards; animation-delay: calc(var(--k, 0) * 60ms); }
@keyframes sr-in { from { opacity: 0; transform: translate3d(0, 26px, 0); clip-path: inset(0 0 100% 0); } }
.sb-results .state { padding-block: var(--space-6); }

.chips { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-bottom: var(--space-6); }
.chip { position: relative; isolation: isolate; overflow: hidden; min-height: 44px; padding: 6px var(--space-5); border: var(--bw) solid var(--i0); background: var(--p0); color: var(--i0); font: inherit; font-size: 16px; font-weight: 800; cursor: pointer; transition: color 450ms var(--ease-out); }
.chip::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--i0); transform: scaleX(0); transform-origin: 100% 50%; transition: transform 700ms var(--ease-out); }
.chip[aria-pressed="true"] { color: var(--p0); }
.chip[aria-pressed="true"]::before { transform: scaleX(1); }
@media (hover: hover) and (pointer: fine) { .chip[aria-pressed="false"]:hover::before { transform: scaleX(.16); } }

.card .dl-tag { position: absolute; z-index: 1; inset-block-start: 0; inset-inline-end: 0; width: 44px; height: 44px; display: grid; place-items: center; background: var(--ink); color: var(--paper); overflow: hidden; }
.card .dl-tag .ico { width: 22px; height: 22px; }
@media (hover: hover) and (pointer: fine) { .card:hover .dl-tag .ico { animation: dl-drop 900ms var(--ease-out); } }
@keyframes dl-drop { 0% { transform: translate3d(0, -170%, 0); } 100% { transform: none; } }
.card .dl-stats { margin-top: auto; padding-top: var(--space-2); display: flex; flex-wrap: wrap; gap: 2px var(--space-4); color: var(--muted); font-size: 14px; line-height: 1.7; }
.card .dl-stats strong { color: var(--ink); }

@media (max-width: 639px) {
  .site-header .brand { order: 0; }
  .header-actions { order: 0; }
  .card .dl-tag { width: 32px; height: 32px; }
  .card .dl-tag .ico { width: 16px; height: 16px; }
  .grid .card .dl-stats { padding-top: 0; font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  .dock-pill, .dock .ico, .mt, .mw, .menu-links a::before, .menu-links a::after, .sb-lens, .sb-close, .sb-bar span, .chip::before { transition: none !important; }
  .menu.is-in .menu-foot > *, .sb-results .sr, .searchbox.is-busy .sb-lens, .searchbox.is-busy .sb-bar::after { animation: none !important; }
  .menu .mt, .menu.is-in .mt { transform: none; }
}

.preview-bar { position: fixed; inset-inline: 0; inset-block-start: 0; z-index: 90; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 6px 12px; background: var(--ink); color: var(--paper); font-size: 13px; line-height: 1.6; text-align: center; pointer-events: none; }
.preview-bar span:last-child { opacity: .75; }
.preview-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--paper); animation: preview-pulse 1.8s ease-in-out infinite; }
body.is-preview { padding-block-start: 30px; }
body.is-preview .site-header { top: 30px; }
@keyframes preview-pulse { 50% { opacity: .25; transform: scale(.7); } }
@media (max-width: 599px) { .preview-bar span:last-child { display: none; } }
@media (prefers-reduced-motion: reduce) { .preview-dot { animation: none; } }

.pushbar {
  position: fixed; z-index: 44; inset-inline: 0; margin-inline: auto; width: min(540px, 100% - 24px);
  bottom: calc(110px + env(safe-area-inset-bottom));
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: var(--space-3); padding: 12px 14px;
  background: #ffe14d; color: #000; border: var(--bw) solid #000; box-shadow: 6px 6px 0 #000;
  transform: translate3d(0, 220%, 0); opacity: 0; transition: transform 520ms cubic-bezier(.22, 1, .36, 1), opacity 260ms ease;
}
.pushbar.is-in { transform: none; opacity: 1; }
.pushbar-ico { width: 34px; height: 34px; background: #000; -webkit-mask: url("../icons/bell.svg") center / 70% no-repeat; mask: url("../icons/bell.svg") center / 70% no-repeat; }
.pushbar-text { font-size: 15px; font-weight: 800; line-height: 1.7; }
.pushbar-btn { min-height: 44px; padding: 6px 16px; border: var(--bw) solid #000; background: #000; color: #ffe14d; font: inherit; font-size: 15px; font-weight: 900; cursor: pointer; white-space: nowrap; }
.pushbar-btn:active { transform: translate(2px, 2px); }
.pushbar.is-busy .pushbar-btn { opacity: .6; pointer-events: none; }
.pushbar.is-ok { background: #7bf0a3; }
.pushbar.is-blocked { background: #ffb4a8; }
html.has-pushbar #main { padding-bottom: 96px; }
@media (max-width: 520px) {
  .pushbar { grid-template-columns: auto 1fr; }
  .pushbar-btn { grid-column: 1 / -1; width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .pushbar { transition: opacity 200ms ease; transform: none; } }
