:root {
  --teal: #2a7f7f;
  --teal-dark: #1f5e5e;
  --amber: #e8a020;
  --amber-soft: #f4d59a;
  --warm-bg: #fdf8f0;
  --paper: #ffffff;
  --ink: #2d2a26;
  --ink-soft: #6b655d;
  --rule: #e8dfd1;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
  background: var(--warm-bg);
  color: var(--ink);
  line-height: 1.65;
}
.wrap { max-width: 1180px; margin: 0 auto; padding: 24px 20px 80px; }
.crumbs { font-size: 13px; color: var(--ink-soft); margin-bottom: 16px; }
.crumbs a { color: var(--teal); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

h1.title {
  font-size: 32px;
  margin: 0 0 4px;
  letter-spacing: 0.02em;
}
.byline {
  color: var(--ink-soft);
  font-size: 14px;
  margin-bottom: 28px;
}
.byline strong { color: var(--teal-dark); }

.stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  align-items: start;
}
@media (max-width: 880px) {
  .stage { grid-template-columns: 1fr; }
}

.game-frame {
  background: #000;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.18);
  aspect-ratio: 4 / 3;
}
.game-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.panel {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 22px 22px 18px;
}
.panel h2 {
  margin: 0 0 14px;
  font-size: 17px;
  color: var(--teal-dark);
  border-bottom: 2px solid var(--amber);
  padding-bottom: 6px;
  display: inline-block;
}
.controls { list-style: none; padding: 0; margin: 0; }
.controls li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px dashed var(--rule);
  font-size: 14px;
}
.controls li:last-child { border-bottom: 0; }
.key {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 30px;
  padding: 0 10px;
  background: #f3ede0;
  border: 1px solid #d6caaf;
  border-bottom: 3px solid #b9a87f;
  border-radius: 6px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}
.kbd-desc { flex: 1; color: var(--ink); }

.tip {
  margin-top: 14px;
  padding: 10px 12px;
  background: #fff8e7;
  border-left: 3px solid var(--amber);
  font-size: 12px;
  color: var(--ink-soft);
  border-radius: 4px;
}

.meta { font-size: 12px; color: var(--ink-soft); margin-top: 18px; }
.meta div { margin-bottom: 3px; }

.cta-row {
  margin-top: 26px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.cta {
  display: inline-block;
  padding: 11px 18px;
  border-radius: 999px;
  font-size: 13px;
  text-decoration: none;
  font-weight: 600;
}
.cta.primary {
  background: var(--teal);
  color: #fff;
}
.cta.primary:hover { background: var(--teal-dark); }
.cta.ghost {
  background: transparent;
  color: var(--teal-dark);
  border: 1px solid var(--teal);
}
