.cp-tabs .cp-tab { white-space: nowrap; }
.gd { margin-top: 18px; min-width: 0; container-type: inline-size; }
.gd[hidden], .gd-item[hidden] { display: none; }
.gd ul { list-style: none; margin: 0; padding: 0; }
.gd a { color: inherit; text-decoration: none; }
.gd a:focus-visible, .gd button:focus-visible { outline: 3px solid var(--berry); outline-offset: 3px; }

.gd-hero p { margin: 0; color: var(--ink); }
.gd-lab { font-size: .68rem; letter-spacing: .34em; }
.gd-title { font-family: var(--f-display); font-weight: 900; font-size: calc(1.35rem * var(--dz)); line-height: 1.4; word-break: auto-phrase; }
.gd-count { font-size: .86rem; }
.cp.allo .gd-hero p { color: #fff; }

.gd-h { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 0 10px; margin: 28px 0 12px; padding-bottom: 4px;
  border-bottom: 3px solid var(--ink); font-weight: 900; }
.gd-en { width: 100%; font-size: .64rem; letter-spacing: .3em; color: var(--c, var(--blue)); }
.gd-ja { font-family: var(--f-display); font-size: calc(1.02rem * var(--dz)); }
.gd-n { margin-left: auto; padding: 0 12px; background: var(--ink); color: #fff; font-size: .74rem;
  clip-path: polygon(10px 0, 100% 0, 100% 100%, 0 100%); }

.gd-row { position: relative; display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: thin; }
.gd-row > li { flex: 0 0 auto; scroll-snap-align: start; animation: gd-in .5s cubic-bezier(.2, 1, .3, 1) backwards; animation-delay: calc(var(--n) * 45ms); }
.gd-noimg { font-family: var(--f-display); font-size: 3rem; color: var(--blue); display: grid; place-items: center; height: 100%; }

.gd-filter { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.gd-filter button { all: unset; cursor: pointer; padding: 1px 14px; border: 2px solid var(--ink); background: #fff; color: var(--ink); font-size: .76rem; transform: skewX(-14deg); }
.gd-filter button span { display: inline-block; transform: skewX(14deg); }
.gd-filter button[aria-pressed="true"] { background: var(--ink); color: #fff; box-shadow: 3px 3px 0 var(--c, var(--blue)); }
.gd-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 16px; padding-right: 6px !important; }
.gd-item { position: relative; min-width: 0; animation: gd-in .5s cubic-bezier(.2, 1, .3, 1) backwards; animation-delay: calc(var(--n) * 45ms); }
.gd-item::before, .gd-card .gd-cc { clip-path: polygon(0 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%); }
.gd-item::before { content: ""; position: absolute; inset: 0; background: var(--ink); transform: translate(6px, 6px); transition: background-color .2s; }
.gd-item:hover::before { background: var(--c, var(--blue)); }
.gd-card { position: relative; display: block; height: 100%; transition: transform .2s cubic-bezier(.2, 1.4, .4, 1); }
.gd-cc { display: flex; flex-direction: column; height: 100%; background: var(--ink); padding: 2px; color: var(--ink); }
.gd-ph { position: relative; display: block; aspect-ratio: 1; overflow: hidden; background: #e8f1f6; }
.gd-ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.gd-ph.is-cut { background: repeating-conic-gradient(from 45deg, #dcebf2 0 25%, #eef6f9 0 50%) 0 0 / 26px 26px; }
.gd-ph.is-cut img { object-fit: contain; padding: 10px; }
.gd-kind { position: absolute; left: -6px; top: 8px; padding: 0 12px 0 14px; background: var(--ink); color: #fff; font-size: .66rem; transform: skewX(-14deg); }
.gd-body { flex: 1; display: flex; flex-direction: column; gap: 2px; padding: 8px 10px 10px; background: #fff; border-top: 3px solid var(--c, var(--blue)); }
.gd-t { font-size: .8rem; font-weight: 700; line-height: 1.5; word-break: auto-phrase; }
.gd-v { font-size: .7rem; line-height: 1.5; color: #55617c; }
.gd-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 4px; margin-top: auto; padding-top: 8px; }
.gd-go { padding: 0 10px; background: var(--c, var(--blue)); color: #fff; text-shadow: var(--edge); font-size: .66rem; clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%); }
.gd-item.is-wide { grid-column: 1 / -1; }
.gd-item.is-wide .gd-ph { aspect-ratio: 16 / 10; }
.gd-item.is-wide .gd-ph img { object-fit: contain; }
.gd-item.is-wide .gd-t { font-size: .96rem; }

.gd-in { display: flex; flex-direction: column; flex: 1; min-height: 0; position: relative; }
.gd-ph.is-poster { aspect-ratio: 3 / 4; }
.gd-ph.is-poster img { padding: 8px; }
.gd-stands li:only-child { grid-column: 1 / -1; width: min(100%, 270px); justify-self: center; }

.gd-item.is-lux::before, .gd-item.is-lux:hover::before { background: transparent; border: 1px solid var(--ink); transform: translate(6px, 6px); }
.is-lux .gd-card .gd-cc { padding: 7px; background: #0d1220; }
.is-lux .gd-in { background: #0d1220; }
.is-lux .gd-ph { border: 1px solid #fff; }
.is-lux .gd-ph::after { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 34%; transform: skewX(-18deg); pointer-events: none;
  background: linear-gradient(90deg, rgba(255,255,255,.55) 0 62%, transparent 62% 80%, rgba(255,255,255,.4) 80%); transition: transform .55s ease; }
.is-lux .gd-in::before, .is-lux .gd-in::after { content: ""; position: absolute; z-index: 2; width: 18px; height: 18px; pointer-events: none; border: 0 solid #0d1220; }
.is-lux .gd-in::before { left: 5px; top: 5px; border-width: 2px 0 0 2px; }
.is-lux .gd-in::after { right: 5px; top: 5px; border-width: 2px 2px 0 0; }
.is-lux .gd-kind { display: none; }
.is-lux .gd-body { padding: 10px 4px 3px; background: #0d1220; border-top: 0; color: #fff; }
.is-lux .gd-t { letter-spacing: .06em; padding-bottom: 5px; margin-bottom: 3px; border-bottom: 1px solid rgba(255,255,255,.35); }
.is-lux .gd-v { color: #c5ccdb; }
.is-lux .gd-go { padding: 0 12px; background: #fff; color: #0d1220; text-shadow: none; }
.cp.allo .gd-item.is-lux::before { border-color: #8a93a8; }
.cp.allo .is-lux .gd-card .gd-cc { box-shadow: inset 0 0 0 1px #8a93a8; }
@media (hover: hover) { .is-lux .gd-card:hover .gd-ph::after { transform: translateX(520%) skewX(-18deg); } }

.gd-shelf { background: linear-gradient(0deg, #fff 0 74px, var(--ink) 74px 82px, #e3eef5 82px); border: 3px solid var(--ink); }
.gd-shelf .gd-row { align-items: flex-end; padding: 16px 16px 10px; }
.gd-shelf li:only-child { margin-inline: auto; }
.gd-work { display: flex; flex-direction: column; align-items: center; gap: 3px; width: 128px; text-align: center; color: var(--ink) !important; }
.gd-cover { position: relative; display: flex; align-items: flex-end; justify-content: center; width: 100%; height: 164px; margin-bottom: 14px; }
.gd-cover img { max-width: 100%; max-height: 100%; border: 2px solid var(--ink); box-shadow: 6px 0 0 -0px var(--blue-d), 6px 0 0 2px var(--ink); transition: transform .22s cubic-bezier(.2, 1.4, .4, 1); }
.is-game .gd-cover img { width: 100%; height: 100px; object-fit: cover; box-shadow: 4px 4px 0 var(--ink); }
.gd-wk { font-size: .62rem; letter-spacing: .2em; color: var(--c, var(--blue)); font-weight: 700; }
.gd-wt { font-size: .74rem; line-height: 1.45; min-height: 2.9em; word-break: auto-phrase; }
.gd-work .gd-price { background: var(--ink); color: #fff; }

.gd-shop { margin: 28px 0 0; text-align: center; }
.gd-shop a { display: inline-block; padding: 8px 40px; background: #fc4d50; color: #fff; font-weight: 700; border: 2px solid var(--ink); box-shadow: 5px 5px 0 var(--ink); transform: skewX(-14deg); transition: transform .18s; }
.gd-shop span { display: inline-block; transform: skewX(14deg); }
.gd-note { margin: 12px 0 0; text-align: center; font-size: .68rem; color: #6b7690; }

@media (hover: hover) {
  .gd-card:hover { transform: translate(-2px, -3px); }
  .gd-card:hover .gd-ph img { transform: scale(1.06); }
  .gd-work:hover .gd-cover img { transform: translateY(-8px) rotate(-2deg); }
  .gd-shop a:hover { transform: skewX(-14deg) translate(-2px, -2px); }
}
@keyframes gd-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@container (max-width: 300px) {
  .gd-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) { .gd * { animation: none !important; transition: none !important; } }

.cp.allo .gd-h { border-color: #4a5670; }
.cp.allo .gd-n { background: #4a5670; }
.cp.allo .gd-note { color: #9aa6c0; }


.cp.gd-on .cp-rk { display: none; }
@media (max-width: 420px) { .cp-tabs .cp-tab { padding-left: 10px; padding-right: 24px; font-size: .8rem; } }
.gd-peek ul { list-style: none; margin: 0; padding: 10px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.gd-peek p { margin: 10px 0 0; text-align: right; }
.gd-peek button { all: unset; cursor: pointer; box-sizing: border-box; }
.gd-peek button:focus-visible { outline: 3px solid var(--berry); outline-offset: 2px; }
.gd-peek .gd-peek-ph { display: block; width: 100%; aspect-ratio: 1; overflow: hidden; border: 2px solid var(--ink); background: #e8f1f6; }
.gd-peek-ph img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.gd-peek-ph.is-cut img { object-fit: contain; padding: 4px; box-sizing: border-box; }
.gd-peek .gd-peek-go { font-size: .8rem; font-weight: 700; border-bottom: 2px solid var(--c, var(--blue)); line-height: 1.7; }
.cp.allo .gd-peek .gd-peek-ph { border-color: #4a5670; }
@media (hover: hover) { .gd-peek-ph:hover img { transform: scale(1.07); } .gd-peek .gd-peek-go:hover { color: var(--c, var(--blue)); } }
@media (prefers-reduced-motion: reduce) { .gd-peek-ph img { transition: none; } }
