:root { color-scheme: dark; --ink: #f5f5f5; --muted: #b8b8b8; --line: #2d2d2d; --gold: #d7b66f; --anchor-offset: 100px; }
* { box-sizing: border-box; }
html { scrollbar-gutter: stable; }
body { margin: 0; background: #050505; color: var(--ink); font-family: 'Pretendard', 'Malgun Gothic', sans-serif; line-height: 1.6; letter-spacing: 0; overflow-x: clip; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; cursor: pointer; }
button:focus-visible, a:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }
button:disabled { cursor: not-allowed; opacity: .45; }
[hidden] { display: none !important; }
main { max-width: 1120px; margin: auto; padding: 40px 24px 64px; }
h1, h2, h3, p { margin: 0; overflow-wrap: anywhere; }
h1 { font-size: 36px; line-height: 1.3; margin: 10px 0 14px; }
h2 { font-size: 21px; line-height: 1.4; }
h3 { font-size: 23px; line-height: 1.4; }
.eyebrow { color: var(--gold); font-size: 14px; }
.heading-meta { display: flex; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; color: var(--muted); font-size: 15px; }
.divider { color: #666; margin: 0 8px; }
.works-section { margin-top: 36px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.section-heading > span { color: var(--muted); font-size: 13px; }
.game-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.game-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: #111; }
.game-thumbnail { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: contain; background: #000; border-bottom: 1px solid var(--line); }
.game-card-body { padding: 20px; }
.game-category { color: var(--gold); font-size: 12px; margin-bottom: 6px; }
.creator { color: #dfe7ff; font-size: 15px; margin-top: 5px; }
.game-description { color: var(--muted); font-size: 14px; margin: 10px 0 18px; }
.play-button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 44px; padding: 10px 20px; background: #fff; border: 0; color: #080808; border-radius: 4px; font-weight: 700; }
.play-button img { width: 18px; height: 18px; }
.play-button:hover { background: #e8e8e8; }
.game-card.is-playing { border-color: var(--gold); }
.pending-section { border-top: 1px solid var(--line); margin-top: 40px; padding-top: 28px; }
.pending-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px 32px; }
.pending-list li { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.pending-list span { color: var(--muted); }
#player { margin-top: 30px; scroll-margin-top: var(--anchor-offset); }
.player-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 12px; }
.playing-info { min-width: 0; }
.playing-info p { color: #dfe7ff; font-size: 14px; }
.player-controls { display: flex; flex-shrink: 0; gap: 8px; }
.icon-button { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border-radius: 4px; border: 1px solid #4a4a4a; background: #111; }
.icon-button img { width: 20px; height: 20px; filter: invert(1); }
.icon-button:hover { background: #292929; }
.game-stage { position: relative; background: #000; width: min(100%, 800px); aspect-ratio: 4 / 3; margin: auto; }
#frame-mount, #frame-mount iframe { width: 100%; height: 100%; border: 0; display: block; }
.player-message { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 18px; text-align: center; padding: 24px; background: #111; color: var(--muted); }
#retry { padding: 8px 18px; background: #fff; color: #080808; border: 0; border-radius: 4px; }
#player:fullscreen { margin: 0; padding: 12px; display: flex; flex-direction: column; background: #050505; height: 100%; }
#player:fullscreen .game-stage { flex: 0 1 auto; width: min(100%, calc((100dvh - 94px) * 4 / 3)); min-height: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
@media (max-width: 620px) {
  main { padding: 28px 16px 44px; }
  h1 { font-size: 28px; }
  h3 { font-size: 21px; }
  .game-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .pending-list { grid-template-columns: 1fr; }
  .section-heading { flex-wrap: wrap; }
  .player-toolbar { flex-wrap: wrap; }
  .playing-info h2 { font-size: 19px; }
}
