:root {
  color-scheme: light;
  --ink: #192a27;
  --paper: #f6f6ee;
  --green: #d1f879;
  --edge: #b9c2af;
  --credit-color: #536056;
  font-family: "DM Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
body { margin: 0; }
.game-viewport { container-type: inline-size; }
.shell { width: var(--page-shell-width); margin-inline: auto; }
.masthead { box-shadow: inset 0 -1px var(--edge); }
@media (scripting: enabled) {
  #member-menu > a { display:block; width:44px; height:44px; visibility:hidden; }
}
.brand { display: inline-flex; align-items: center; gap: .65rem; font: 900 2rem/1 "Bricolage Grotesque", "Arial Black", Arial, sans-serif; letter-spacing: -.065em; }
.brand-mark {
  position: relative; display: inline-block; width: 2.25rem; height: 1.85rem;
  border: 2px solid var(--ink); border-radius: .48rem .48rem .65rem .65rem;
  background: var(--green); box-shadow: 0 3px 0 var(--ink); transform: rotate(-7deg);
}
.brand-mark::before { content: ""; position: absolute; left: .26rem; top: .42rem; width: .82rem; height: .82rem; background: var(--ink); clip-path: polygon(33% 0,67% 0,67% 33%,100% 33%,100% 67%,67% 67%,67% 100%,33% 100%,33% 67%,0 67%,0 33%,33% 33%); }
.brand-mark::after { content: ""; position: absolute; right: .24rem; top: .43rem; width: .27rem; height: .27rem; border-radius: 50%; background: var(--ink); box-shadow: -.28rem .35rem 0 var(--ink); }
main { padding-block: clamp(2.5rem, 6vw, 5.1rem) 5rem; }
.section-title { display: flex; align-items: baseline; flex-wrap: wrap; gap: .7rem 1.15rem; margin-bottom: clamp(1.3rem, 3vw, 2.1rem); }
h1, h2, p, ul { margin: 0; }
.catalog-intro { flex-basis:100%; line-height:1.7; }
h1 { display: flex; align-items: center; gap: .32em; line-height: 1.2; letter-spacing: -.055em; font-size: clamp(2rem, 4.5vw, 3.5rem); font-weight: 900; }
.grid-icon { width: .42em; height: .42em; flex: none; background: conic-gradient(var(--ink) 0 25%, transparent 0 50%, var(--ink) 0 75%, transparent 0); box-shadow: inset 0 0 0 1px var(--ink); transform: rotate(-7deg); }
.catalog-count { color: #536056; font-size: .875rem; font-weight: 700; }
.games, .facts, .game-tags { padding: 0; list-style: none; }
.games { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.8rem; }
.game { overflow: hidden; border: 2px solid var(--ink); border-radius: 1rem; background: #fffef8; box-shadow: 0 .35rem 0 var(--ink); }
.game:first-child { grid-column: 1 / -1; }
.game article { display: grid; height: 100%; grid-template-rows: auto 1fr; }
.game:first-child article { grid-template-columns: 1.25fr 1fr; grid-template-rows: auto; }
.art { position: relative; border-bottom: 2px solid var(--ink); }
.art img { display: block; width: 100%; aspect-ratio: 1.65; object-fit: cover; }
.game:first-child .art { border-bottom: 0; border-right: 2px solid var(--ink); }
.game:first-child .art img { height: 100%; position: absolute; object-position: center; }
.game-info { display: flex; flex-direction: column; align-items: flex-start; padding: clamp(1.5rem, 3.4vw, 3.2rem); }
.game-tags { display: flex; flex-wrap: wrap; gap: .4rem; }
.game-tags li { padding: .27rem .7rem; color: #3e3068; background: #e8dffa; border-radius: .35rem; font-size: .875rem; font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.1vw, 2.65rem); line-height: 1.25; letter-spacing: -.065em; margin-top: 1rem; overflow-wrap: anywhere; }
.description { margin-block: 1.35rem 1.15rem; font-size: 1rem; line-height: 1.85; }
.description p { line-break:strict; text-wrap:pretty; }
.description p:lang(ja) { white-space:pre-line; word-break:auto-phrase; text-wrap:balance; }
.description p + p { margin-block-start:.65em; }
.facts { display: flex; flex-wrap: wrap; gap: .6rem 1.25rem; margin-bottom: 1.7rem; }
.facts li { display: flex; align-items: center; gap: .45rem; font-size: .94rem; font-weight: 700; }
.person-icon, .clock-icon { display: inline-block; position: relative; width: 1rem; height: 1rem; }
.person-icon::before, .person-icon::after { content: ""; position: absolute; left: 50%; transform: translateX(-50%); border: 1.7px solid currentColor; }
.person-icon::before { width: .32rem; height: .32rem; top: 0; border-radius: 50%; }
.person-icon::after { width: .72rem; height: .32rem; bottom: 0; border-radius: .4rem .4rem .08rem .08rem; }
.clock-icon { border-radius: 50%; border: 1.7px solid currentColor; }
.clock-icon::after { content: ""; position: absolute; left: 43%; top: 14%; width: .22rem; height: .28rem; border-left: 1.5px solid; border-bottom: 1.5px solid; }
.play { margin-top: auto; display: inline-flex; align-items: center; justify-content: center; gap: .7rem; padding: .82rem 2.6rem; min-height: 3.2rem; border: 2px solid var(--ink); border-radius: .55rem; background: var(--green); color: var(--ink); box-shadow: 0 3px 0 var(--ink); text-decoration: none; font-weight: 850; }
.play-icon { border-block: .34rem solid transparent; border-left: .54rem solid currentColor; }
.play:hover { background: #bcf14a; }
.play:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--ink); }
.play:focus-visible { outline: 3px solid #6240a0; outline-offset: 4px; }
.catalog-credit { flex-wrap:wrap; }
.catalog-credit nav { margin-inline-end:10px; }
.catalog-credit nav a { display:inline-flex; align-items:center; min-height:44px; color:inherit; font-size:.9rem; text-underline-offset:.22em; }
.stream-guide { max-width:48rem; line-height:1.8; }
.stream-guide h1 { display:block; font-size:clamp(2rem,4.4vw,3.3rem); line-height:1.25; }
.stream-guide .guide-intro { margin-top:1.15rem; font-size:clamp(1rem,2vw,1.15rem); }
.guide-terms { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); margin:1.6rem 0 1rem; border:2px solid var(--ink); border-radius:14px; background:#ecf5dc; box-shadow:0 4px 0 var(--ink); }
.guide-terms div { padding:clamp(.65rem,2vw,1.4rem); }
.guide-terms div + div { border-inline-start:1px solid #bbcbaa; }
.guide-terms dt { color:#3b5345; font-size:.875rem; font-weight:650; }
.guide-terms dd { margin:.15rem 0 0; font-size:clamp(1.25rem,2.8vw,1.8rem); line-height:1.3; font-weight:800; }
.stream-guide section { margin-top:clamp(2rem,5vw,3rem); }
.stream-guide h2 { margin:0 0 .85rem; font-size:clamp(1.35rem,3vw,1.75rem); }
.stream-guide section p + p { margin-top:.6rem; }
@container (max-width:34rem) {
  .guide-terms { grid-template-columns:1fr; }
  .guide-terms div { display:flex; align-items:center; justify-content:space-between; gap:1rem; padding:.55rem 1rem; }
  .guide-terms div + div { border-inline-start:0; border-top:1px solid #bbcbaa; }
  .guide-terms dd { margin:0; }
}
@media (max-width: 46rem) {
  .brand { font-size: 1.7rem; }
}
@media (max-width: 25rem) {
  .masthead .game-home.brand { font-size: 1.25rem; gap: .4rem; padding-inline: 5px; }
  .masthead .brand-mark { width: 1.8rem; height: 1.6rem; }
}
@container (max-width: 46rem) {
  .games, .game:first-child article { grid-template-columns: minmax(0, 1fr); }
  .game:first-child .art { border-right: 0; border-bottom: 2px solid var(--ink); }
  .game:first-child .art img { position: static; height: auto; aspect-ratio: 1.8; }
  .game-info { padding: 1.35rem; }
  .play { width: 100%; }
}
