:root {
  --paper: #ffffff;
  --surface: #ffffff;
  --ink: #2d2a26;
  --muted: #6f6a64;
  --line: #dfe6dc;
  --green: #4f8757;
  --green-soft: #eef7eb;
  --coral: #ce5d6b;
  --coral-soft: #fff1f3;
  --yellow: #f4c95d;
  --blue: #3e7898;
  --bento-ink: #2a2622;
  --bento-frame: #4b3427;
  --bento-shadow: #a8522a;
  --bento-cream: #fff8df;
  --shadow: 0 18px 42px rgba(40, 53, 39, .10);
}

* {
  box-sizing: border-box;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", sans-serif;
  line-height: 1.75;
  margin: 0;
}

a {
  color: inherit;
}

img,
svg,
object {
  max-width: 100%;
}

.visually-hidden {
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.site-header {
  align-items: center;
  background: #ffd958;
  border-bottom: 4px solid var(--bento-ink);
  display: flex;
  gap: 14px;
  justify-content: space-between;
  min-height: 60px;
  padding: 8px clamp(10px, 2.5vw, 28px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.site-brand {
  align-items: center;
  background: #fff;
  border: 3px solid var(--bento-frame);
  border-radius: 10px;
  box-shadow: 0 3px 0 var(--bento-shadow);
  display: inline-flex;
  flex: 0 0 auto;
  font-weight: 900;
  gap: 8px;
  padding: 4px 10px;
  text-decoration: none;
  white-space: nowrap;
}

.site-brand--icon {
  background: transparent;
  border: 0;
  box-shadow: none;
  gap: 0;
  padding: 0;
}

.site-brand--icon .brand-mark {
  background: transparent;
  border: 0;
  box-shadow: none;
  height: 42px;
  padding: 0;
  width: 42px;
}

.brand-mark {
  align-items: center;
  background: #fff8fb;
  border: 2px solid #188a20;
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  height: 28px;
  justify-content: center;
  overflow: hidden;
  padding: 1px;
  width: 28px;
}

.brand-mark img {
  border-radius: 14px;
  display: block;
  height: 100%;
  object-fit: contain;
  width: 100%;
}

.site-nav {
  align-items: center;
  display: flex;
  gap: 8px;
}

.site-nav a,
.nav-toggle,
.text-link,
.back-link {
  border-radius: 8px;
  text-decoration: none;
}

.site-nav a {
  background: #fff;
  border: 3px solid var(--bento-frame);
  box-shadow: 0 3px 0 var(--bento-shadow);
  color: var(--bento-ink);
  font-weight: 900;
  padding: 6px 12px;
}

.site-nav a[aria-current="page"] {
  background: var(--bento-cream);
  color: var(--bento-ink);
}

.nav-toggle {
  background: #fff;
  border: 3px solid var(--bento-frame);
  display: none;
  font-size: 1.2rem;
  height: 40px;
  width: 44px;
}

main {
  margin: 0 auto;
  max-width: 1240px;
  padding: clamp(22px, 4vw, 50px);
}

main:has(.game-portal) {
  max-width: none;
  padding: 0;
}

.game-portal {
  background:
    radial-gradient(circle at 12px 12px, rgba(255, 122, 77, .14) 0 4px, transparent 5px),
    radial-gradient(circle at 36px 32px, rgba(91, 168, 90, .13) 0 4px, transparent 5px),
    radial-gradient(circle at 24px 48px, rgba(61, 169, 224, .10) 0 3px, transparent 4px),
    linear-gradient(135deg, rgba(255, 245, 248, .9), rgba(246, 255, 247, .86) 52%, rgba(255, 250, 229, .92)),
    #fffdf8;
  background-size: 56px 56px, 56px 56px, 56px 56px, auto, auto;
  min-height: calc(100vh - 60px);
  overflow: hidden;
  padding: 8px clamp(6px, 1.4vw, 12px) 0;
  position: relative;
}

.game-portal::after {
  background: linear-gradient(180deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .34));
  bottom: 0;
  content: "";
  height: 100%;
  left: 0;
  pointer-events: none;
  position: absolute;
  right: 0;
  z-index: 0;
}

.game-portal--wood {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .28), rgba(255, 246, 224, .3)),
    repeating-linear-gradient(90deg, rgba(110, 72, 44, .13) 0 2px, transparent 2px 152px),
    repeating-linear-gradient(12deg, rgba(255, 255, 255, .18) 0 3px, transparent 3px 18px),
    linear-gradient(90deg, #f6d9a8, #ffe9bc 34%, #f1c98e 68%, #ffe2ae);
  background-size: auto, 154px 100%, 56px 56px, auto;
}

.game-portal--wood::after {
  background:
    radial-gradient(ellipse at 22% 18%, rgba(255, 255, 255, .22) 0 12%, transparent 38%),
    radial-gradient(ellipse at 84% 78%, rgba(168, 82, 42, .10) 0 10%, transparent 34%);
}

.game-portal--dots {
  background:
    radial-gradient(circle at 12px 12px, rgba(255, 122, 77, .14) 0 4px, transparent 5px),
    radial-gradient(circle at 36px 32px, rgba(91, 168, 90, .13) 0 4px, transparent 5px),
    radial-gradient(circle at 24px 48px, rgba(61, 169, 224, .10) 0 3px, transparent 4px),
    linear-gradient(135deg, rgba(255, 245, 248, .9), rgba(246, 255, 247, .86) 52%, rgba(255, 250, 229, .92)),
    #fffdf8;
  background-size: 56px 56px, 56px 56px, 56px 56px, auto, auto;
}

.game-portal--dots::after {
  background: linear-gradient(180deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .34));
}

.game-portal__hero {
  align-items: stretch;
  display: grid;
  gap: clamp(10px, 1.3vw, 16px);
  grid-template-columns: minmax(0, 1fr) minmax(230px, 310px);
  margin: 8px auto 12px;
  max-width: 1130px;
  position: relative;
  z-index: 1;
}

.game-portal__intro {
  align-content: center;
  background:
    radial-gradient(circle at 18% 70%, rgba(91, 168, 90, .14) 0 28%, transparent 29%),
    linear-gradient(90deg, rgba(255, 255, 255, .56), rgba(255, 255, 255, .18));
  border-radius: 18px;
  display: grid;
  min-height: clamp(200px, 18vw, 260px);
  overflow: hidden;
  padding: clamp(16px, 2.6vw, 30px);
  position: relative;
}

.game-portal__watermark {
  bottom: clamp(-42px, -4vw, -20px);
  height: clamp(154px, 22.2vw, 240px);
  left: clamp(2px, 2.8vw, 34px);
  max-width: none;
  object-fit: contain;
  opacity: .24;
  pointer-events: none;
  position: absolute;
  width: clamp(160px, 23vw, 250px);
  z-index: 0;
}

.game-portal__title {
  color: var(--bento-ink);
  font-family: "Hiragino Maru Gothic ProN", "Hiragino Sans", "Yu Gothic", system-ui, sans-serif;
  font-size: clamp(1.6rem, 3.2vw, 2.5rem);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.08;
  margin: 0 0 8px;
  position: relative;
  text-shadow: 0 2px 0 rgba(255, 255, 255, .78);
  z-index: 1;
}

.game-portal__note {
  color: var(--bento-ink);
  font-size: clamp(.82rem, 1.25vw, .98rem);
  font-weight: 800;
  line-height: 1.5;
  margin: 0;
  max-width: min(760px, 100%);
  padding: 0;
  position: relative;
  text-align: left;
  text-shadow: 0 2px 0 rgba(255, 255, 255, .78);
  z-index: 1;
}

.game-portal__desktop-break {
  display: inline;
}

@media (min-width: 901px) {
  .game-portal__title {
    font-size: clamp(2.55rem, 3.6vw, 2.875rem);
    margin-bottom: 16px;
  }
}

.lab-note-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .95), rgba(255, 252, 242, .96)),
    #fff;
  border: 1px solid rgba(75, 52, 39, .28);
  border-radius: 18px;
  box-shadow: 0 2px 0 rgba(168, 82, 42, .24);
  color: var(--bento-ink);
  display: grid;
  gap: 8px;
  min-height: 100%;
  padding: 12px;
}

.lab-note-card__head {
  display: grid;
  gap: 4px;
}

.lab-note-card__label {
  align-items: center;
  background: #5ba85a;
  border: 2px solid rgba(255, 255, 255, .9);
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  font-size: .72rem;
  font-weight: 900;
  justify-content: center;
  justify-self: start;
  line-height: 1;
  min-height: 22px;
  padding: 0 10px;
}

.lab-note-list {
  display: grid;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.lab-note-list li {
  background: rgba(255, 255, 255, .72);
  border: 1px solid rgba(91, 168, 90, .25);
  border-radius: 12px;
  display: grid;
  gap: 2px;
  padding: 8px 10px;
}

.lab-note-list time {
  color: #2f8d60;
  font-size: .7rem;
  font-weight: 900;
  line-height: 1.35;
}

.lab-note-list span {
  color: var(--bento-ink);
  font-size: .82rem;
  font-weight: 900;
  line-height: 1.35;
}

.game-board {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .92), rgba(255, 247, 220, .96)),
    repeating-linear-gradient(135deg, rgba(255, 176, 0, .16) 0 8px, rgba(255, 255, 255, .08) 8px 18px);
  border: 2px solid rgba(75, 52, 39, .42);
  border-radius: 22px;
  box-shadow: 0 3px 0 rgba(168, 82, 42, .32), inset 0 0 0 2px rgba(255, 255, 255, .78);
  display: grid;
  gap: clamp(8px, 1vw, 12px);
  grid-template-columns: repeat(5, minmax(140px, 1fr));
  margin: 0 auto clamp(82px, 16vh, 118px);
  max-width: min(1130px, 96vw);
  padding: clamp(8px, 1.2vw, 14px);
  position: relative;
  z-index: 1;
}

.game-board::before {
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 122, 77, .18) 0 14px, transparent 15px),
    radial-gradient(circle at 88% 20%, rgba(91, 168, 90, .16) 0 18px, transparent 19px),
    radial-gradient(circle at 52% 92%, rgba(61, 169, 224, .14) 0 20px, transparent 21px);
  border-radius: 18px;
  content: "";
  inset: 5px;
  pointer-events: none;
  position: absolute;
  z-index: 0;
}

.game-board .game-card--portal {
  background: #fff;
  border: 2px solid color-mix(in srgb, var(--bento-accent, var(--bento-frame)) 72%, #fff);
  border-radius: 16px;
  box-shadow: 0 4px 0 color-mix(in srgb, var(--bento-accent, var(--bento-shadow)) 62%, var(--bento-shadow)), 0 0 0 2px rgba(255, 255, 255, .78);
  min-height: 0;
  overflow: visible;
  padding: 7px 7px 8px;
  position: relative;
  z-index: 1;
}

.game-board .game-card--portal:hover {
  box-shadow: 0 6px 0 color-mix(in srgb, var(--bento-accent, var(--bento-shadow)) 62%, var(--bento-shadow)), 0 0 0 2px rgba(255, 255, 255, .88);
  transform: translateY(-2px);
}

.game-card__pick {
  background: var(--bento-accent, var(--bento-frame));
  border: 2px solid #fff;
  border-radius: 999px;
  box-shadow: 0 2px 0 rgba(0, 0, 0, .13);
  height: 17px;
  position: absolute;
  right: 11px;
  top: -8px;
  transform: rotate(3deg);
  width: 38px;
  z-index: 2;
}

.game-card__pick::after {
  background: rgba(255, 255, 255, .75);
  border-radius: 999px;
  content: "";
  height: 4px;
  left: 8px;
  position: absolute;
  top: 5px;
  width: 16px;
}

.game-card__thumb,
.game-card--portal img {
  display: block;
  width: 100%;
}

.game-card__thumb {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .24), rgba(255, 255, 255, 0)),
    #f5fbff;
  border: 2px solid color-mix(in srgb, var(--bento-accent, var(--bento-frame)) 68%, #fff);
  border-radius: 11px 11px 7px 7px;
  overflow: hidden;
  position: relative;
}

.game-card__thumb::after {
  background: linear-gradient(90deg, rgba(255, 176, 0, .14), rgba(255, 255, 255, .12), rgba(240, 106, 34, .12));
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.game-board .game-card--portal img {
  aspect-ratio: 16 / 8.4;
  object-fit: cover;
}

.game-board .game-card--portal strong {
  color: #f05f24;
  font-family: "Hiragino Maru Gothic ProN", "Hiragino Sans", "Yu Gothic", system-ui, sans-serif;
  font-size: clamp(.78rem, 1.25vw, 1rem);
  font-weight: 900;
  line-height: 1.18;
  padding: 6px 2px 3px;
  text-align: center;
  text-shadow: 1px 1px 0 #fff2b8;
}

.game-board .game-card--portal .game-card__category {
  align-self: center;
  background: color-mix(in srgb, var(--bento-accent, var(--bento-frame)) 17%, #fff);
  border: 1px solid color-mix(in srgb, var(--bento-accent, var(--bento-frame)) 55%, #fff);
  border-radius: 999px;
  color: #606060;
  display: inline-flex;
  font-size: .68rem;
  font-weight: 900;
  justify-content: center;
  line-height: 1.2;
  margin: 0 auto;
  max-width: 100%;
  min-width: 58px;
  padding: 2px 9px;
  text-align: center;
}

.section-kicker {
  color: var(--blue);
  display: inline-block;
  font-size: .74rem;
  font-weight: 800;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.works-shelf {
  align-items: stretch;
  display: grid;
  gap: clamp(18px, 3vw, 30px);
  grid-template-columns: minmax(420px, 1fr) minmax(300px, 360px);
}

.works-shelf > * {
  min-width: 0;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: clamp(260px, 36vw, 400px);
  padding: clamp(28px, 4.8vw, 56px) 0 24px;
}

.hero-copy h1 {
  font-family: "Hiragino Maru Gothic ProN", "Hiragino Sans", "Yu Gothic", system-ui, sans-serif;
  font-size: clamp(2.25rem, 3.8vw, 3.6rem);
  font-weight: 900;
  letter-spacing: 0;
  line-height: .9;
  margin: 0;
  max-width: 760px;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.hero-copy p {
  color: var(--muted);
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  margin: 18px 0 0;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.primary-link,
.quiet-link {
  align-items: center;
  border-radius: 8px;
  display: inline-flex;
  font-weight: 800;
  min-height: 42px;
  padding: 8px 14px;
  text-decoration: none;
}

.primary-link {
  background: var(--ink);
  color: #fff;
}

.quiet-link {
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink);
}

.featured-work {
  justify-self: end;
  max-width: 360px;
  min-width: 0;
  overflow: hidden;
  padding-left: clamp(18px, 3vw, 28px);
  width: 100%;
}

.featured-work > .section-kicker {
  margin: 0 0 10px;
}

.shelf-section {
  padding-top: 18px;
}

.shelf-section--games {
  grid-column: 1 / -1;
}

.shelf-section--posts {
  grid-column: 1 / 2;
}

.shelf-section--profile {
  grid-column: 2 / 3;
}

.shelf-heading {
  align-items: end;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin-bottom: 14px;
}

.shelf-heading h2 {
  font-size: clamp(1.55rem, 2.5vw, 2.4rem);
  line-height: 1.2;
  margin: 0;
}

.game-strip {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.works-shelf .game-card {
  border: 1px solid #d4ded1;
  box-shadow: none;
}

.featured-game-panel {
  background: var(--surface);
  border: 1px solid #cfd9cc;
  border-radius: 8px;
  box-shadow: 0 6px 14px rgba(40, 53, 39, .065);
  display: block;
  inline-size: 100%;
  max-width: 100%;
  padding: 12px;
  text-decoration: none;
  transition: box-shadow .18s ease, transform .18s ease;
}

.featured-game-panel:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.featured-game-panel img {
  aspect-ratio: 16 / 7;
  border-radius: 2px;
  display: block;
  object-fit: cover;
  width: 100%;
}

.featured-game-copy {
  display: grid;
  gap: 7px 12px;
  grid-template-columns: minmax(0, 1fr) minmax(120px, auto);
  margin-top: 10px;
  min-width: 0;
}

.featured-game-copy strong {
  display: block;
  font-size: clamp(1.08rem, 1.45vw, 1.28rem);
  grid-column: 1 / -1;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.featured-game-copy p {
  color: var(--ink);
  font-size: .84rem;
  grid-column: 1 / -1;
  line-height: 1.68;
  margin: 0;
}

.featured-game-tags {
  align-self: center;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
}

.featured-game-tags span {
  background: #f7faf5;
  border: 1px solid #d5dfd2;
  border-radius: 6px;
  color: var(--muted);
  font-size: .72rem;
  font-weight: 800;
  padding: 2px 7px;
}

.featured-game-tags span:first-child {
  color: var(--green);
}

.featured-game-button {
  align-items: center;
  background: var(--coral);
  border-radius: 6px;
  color: #fff;
  display: flex;
  font-size: .88rem;
  font-weight: 900;
  justify-content: space-between;
  margin-top: 0;
  min-height: 38px;
  padding: 8px 12px;
}

.profile-strip {
  align-items: center;
  display: grid;
  gap: 14px;
  grid-template-columns: 74px minmax(0, 1fr) auto;
}

.profile-strip h2 {
  line-height: 1.25;
  margin: 0;
}

.profile-strip p {
  color: var(--muted);
  margin: 4px 0 0;
}

.home-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: 1.3fr .9fr;
}

.home-title {
  align-self: end;
}

.home-title h1,
.page-lead h1,
.profile-copy h1,
.article-header h1 {
  line-height: 1.25;
  margin: 0;
}

.home-title h1 {
  font-size: clamp(2rem, 4vw, 3.7rem);
  max-width: 820px;
}

.home-title p,
.page-lead p,
.profile-copy p,
.home-panel p {
  color: var(--muted);
  margin: 10px 0 0;
}

.home-feature {
  grid-row: span 2;
}

.home-panel,
.post-card,
.game-card,
.profile-links a,
.count-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.home-panel {
  padding: 20px;
}

.home-panel--games {
  grid-column: 1 / -1;
}

.section-head {
  align-items: center;
  display: flex;
  gap: 14px;
  justify-content: space-between;
  margin-bottom: 14px;
}

.section-head h2,
.home-panel h2 {
  margin: 0;
}

.text-link,
.back-link {
  color: var(--coral);
  font-weight: 800;
}

.mini-game-grid,
.game-library,
.post-grid {
  display: grid;
  gap: 14px;
}

.blog-layout {
  align-items: start;
  display: grid;
  gap: clamp(18px, 3vw, 28px);
  grid-template-columns: minmax(0, 1fr) minmax(240px, 300px);
}

.blog-tools {
  display: grid;
  gap: 14px;
  position: sticky;
  top: 84px;
}

.blog-tool-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  padding: 16px;
}

.blog-tool-panel h2,
.blog-tool-panel label {
  color: var(--ink);
  font-size: .94rem;
  font-weight: 900;
  line-height: 1.35;
  margin: 0;
}

.blog-tool-panel input {
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  min-height: 42px;
  padding: 8px 10px;
  width: 100%;
}

.blog-filter-list {
  display: grid;
  gap: 7px;
}

.blog-filter-list button {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  font: inherit;
  font-size: .88rem;
  font-weight: 800;
  justify-content: space-between;
  min-height: 36px;
  padding: 6px 10px;
  text-align: left;
}

.blog-filter-list button[aria-pressed="true"] {
  background: var(--green-soft);
  border-color: #c8e2c5;
  color: var(--green);
}

.blog-filter-list span {
  color: var(--muted);
  font-size: .78rem;
  margin-left: 8px;
}

.post-card[hidden] {
  display: none;
}

.blog-empty {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  margin: 0;
  padding: 18px;
}

.mini-game-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.game-library {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.post-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.game-card,
.post-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  position: relative;
  text-decoration: none;
  transition: box-shadow .18s ease, transform .18s ease;
}

.game-card:hover,
.post-card:hover,
.profile-links a:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.game-card img,
.post-card img,
.article-cover {
  aspect-ratio: 16 / 9;
  display: block;
  object-fit: cover;
  width: 100%;
}

.game-card strong,
.post-card strong {
  display: block;
  font-size: 1rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
  padding: 8px 12px 0;
}

.game-card span:not(.pill),
.post-card span:not(.post-meta) {
  color: var(--muted);
  display: block;
  font-size: .88rem;
  line-height: 1.6;
  padding: 2px 12px 14px;
}

.game-card--featured {
  height: auto;
}

.game-card--featured strong {
  font-size: 1.35rem;
}

.pill {
  background: var(--green-soft);
  border: 1px solid #d4e9d2;
  border-radius: 999px;
  color: var(--green);
  font-size: .74rem;
  font-weight: 800;
  left: 10px;
  padding: 3px 9px;
  position: absolute;
  top: 10px;
}

.compact-post-list {
  display: grid;
  gap: 10px;
}

.compact-post-list a {
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 2px;
  padding-bottom: 10px;
  text-decoration: none;
}

.compact-post-list a:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.compact-post-list span,
.post-meta {
  color: var(--blue);
  font-size: .78rem;
  font-weight: 800;
}

.profile-mini {
  align-items: center;
  display: grid;
  gap: 14px;
  grid-template-columns: 90px 1fr;
}

.sprout-mini svg {
  display: block;
}

.page-lead {
  margin-bottom: 24px;
  max-width: 760px;
}

.page-lead h1,
.profile-copy h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.page-lead--split {
  align-items: end;
  display: flex;
  justify-content: space-between;
  max-width: none;
}

.count-box {
  display: grid;
  min-width: 128px;
  padding: 18px;
  text-align: center;
}

.count-box strong {
  color: var(--coral);
  font-size: 2rem;
  line-height: 1;
}

.profile-page {
  align-items: center;
  display: grid;
  gap: clamp(24px, 5vw, 56px);
  grid-template-columns: minmax(220px, 360px) 1fr;
}

.profile-art {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(18px, 4vw, 34px);
}

.profile-art svg {
  display: block;
  height: auto;
}

.profile-links {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 22px;
}

.profile-links a {
  display: grid;
  gap: 2px;
  padding: 14px;
  text-decoration: none;
}

.profile-links span {
  color: var(--muted);
  font-size: .86rem;
}

.game-shell {
  display: grid;
  gap: 18px;
}

.game-shell__header {
  display: grid;
  gap: 6px;
}

.game-shell__header h1 {
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.25;
  margin: 0;
}

.game-shell__header p,
.game-shell__notice {
  color: var(--muted);
  margin: 0;
}

.game-shell__frame {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  min-height: min(72vh, 720px);
  overflow: hidden;
}

.game-shell__frame iframe {
  border: 0;
  display: block;
  height: min(72vh, 720px);
  min-height: 560px;
  width: 100%;
}

.game-shell__open {
  align-items: center;
  background: var(--coral);
  border-radius: 8px;
  color: #fff;
  display: inline-flex;
  font-weight: 900;
  justify-self: start;
  min-height: 42px;
  padding: 8px 14px;
  text-decoration: none;
}

.article {
  margin: 0 auto;
  max-width: 840px;
}

.back-link {
  display: inline-block;
  margin-bottom: 18px;
}

.article-header {
  margin-bottom: 20px;
}

.article-header h1 {
  font-size: clamp(1.9rem, 4vw, 3.1rem);
  margin-top: 6px;
}

.article-cover {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-bottom: 28px;
}

.article-body {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(20px, 4vw, 42px);
}

.article-body h2 {
  border-left: 5px solid var(--yellow);
  line-height: 1.45;
  margin-top: 2.1em;
  padding-left: 12px;
}

.article-body p {
  margin: 1.1em 0;
}

.article-body img {
  border-radius: 8px;
  height: auto;
}

.article-body figure {
  margin: 22px 0;
}

.article-body figcaption {
  color: var(--muted);
  font-size: .84rem;
  text-align: center;
}

.wp-block-file {
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: 22px 0;
  overflow: hidden;
  padding: 12px;
}

.wp-block-file object {
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 420px;
}

.wp-block-file__button {
  background: var(--green);
  border-radius: 8px;
  color: #fff;
  display: inline-block;
  font-weight: 800;
  margin-left: 8px;
  padding: 7px 12px;
  text-decoration: none;
}

.site-footer {
  align-items: center;
  border-top: 1px solid var(--line);
  color: var(--muted);
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin: 34px clamp(18px, 4vw, 48px) 0;
  padding: 24px 0 34px;
}

.site-footer p {
  font-weight: 800;
  margin: 0;
}

.site-footer nav {
  display: flex;
  gap: 14px;
}

@media (max-width: 900px) {
  .works-shelf,
  .home-grid,
  .blog-layout,
  .profile-page,
  .game-portal__hero {
    grid-template-columns: 1fr;
  }

  .blog-tools {
    position: static;
  }

  .profile-page {
    gap: 18px;
  }

  .profile-art {
    justify-self: center;
    max-width: 180px;
    padding: 10px;
  }

  .featured-work {
    padding-left: 0;
    padding-top: 18px;
  }

  .featured-game-copy {
    grid-template-columns: 1fr;
  }

  .shelf-section--posts,
  .shelf-section--profile {
    grid-column: 1 / -1;
  }

  .home-feature {
    grid-row: auto;
  }

  .game-strip,
  .game-board,
  .mini-game-grid,
  .game-library,
  .post-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .site-header {
    min-height: 64px;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .site-nav {
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    display: none;
    left: 0;
    padding: 10px 18px 16px;
    position: absolute;
    right: 0;
    top: 64px;
  }

  .site-nav[data-open="true"] {
    display: flex;
  }

  main {
    padding: 22px 16px;
  }

  .game-shell__frame,
  .game-shell__frame iframe {
    min-height: 520px;
  }

  .hero-copy {
    min-height: 0;
    padding: 24px 0 8px;
  }

  .hero-copy h1 {
    font-size: clamp(1.85rem, 8.5vw, 2.35rem);
  }

  .home-title h1 {
    font-size: 2rem;
  }

  .game-portal__title,
  .game-portal__note {
    text-align: center;
  }

  .game-portal__desktop-break {
    display: none;
  }

  .game-strip,
  .game-board,
  .mini-game-grid,
  .game-library,
  .post-grid,
  .profile-links {
    grid-template-columns: 1fr;
  }

  .profile-strip {
    align-items: start;
    grid-template-columns: 68px 1fr;
  }

  .profile-strip > .text-link {
    grid-column: 2;
  }

  .page-lead--split,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .profile-mini {
    grid-template-columns: 72px 1fr;
  }
}
