* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
  background: #08090d;
  color: #f4f7ff;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

.home {
  min-height: 100vh;
  padding: 40px clamp(18px, 5vw, 72px);
}

.shell {
  max-width: 980px;
  margin: 0 auto;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}

.brand {
  margin: 0;
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 800;
  line-height: 1;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.game {
  display: grid;
  grid-template-columns: 72px 1fr;
  align-items: center;
  gap: 14px;
  min-height: 112px;
  padding: 18px;
  border: 1px solid #283044;
  border-radius: 8px;
  background: #131722;
}

.game:hover {
  border-color: #8dd7ff;
  background: #182033;
}

.game img {
  width: 72px;
  height: 72px;
  border-radius: 8px;
}

.game h2 {
  margin: 0 0 6px;
  font-size: 22px;
  line-height: 1.1;
}

.game span {
  color: #abb7cf;
  font-size: 14px;
}

.player-page {
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background: #050505;
}

.player-nav {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 10;
  display: flex;
  gap: 8px;
}

.player-nav a {
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.5);
  font-size: 14px;
}

.stage {
  width: 100vw;
  height: 100vh;
  display: grid;
  place-items: center;
}

object,
ruffle-object,
ruffle-embed,
ruffle-player {
  width: min(100vw, calc(100vh * 1.375));
  height: min(100vh, calc(100vw / 1.375));
  display: block;
}
